(function() {
    var ref = encodeURIComponent((parent !== window) ? document.referrer : document.location);
    
        const us_privacy = dianomi_tag_params_0xABF9B21A42204933B1436F656BD19DE1["us_privacy"] ?? "";
        const gpp = dianomi_tag_params_0xABF9B21A42204933B1436F656BD19DE1["gpp"] ?? "";
        const gpp_sid = dianomi_tag_params_0xABF9B21A42204933B1436F656BD19DE1["gpp_sid"] ?? "";
        
        
            const l = document.createElement("img");
            let url = "https://idsync.rlcdn.com/425276.gif?partner_uid=1257d7010dc0718a154ca3a915523fc0";
            
            if (0) {
                url += "&ct=4&cv=" + encodeURIComponent(dianomi_tag_params_0xABF9B21A42204933B1436F656BD19DE1["consent_string"] ?? '');
            } else if (us_privacy != "" && us_privacy != "null") {
                url += "&us_privacy=" + encodeURIComponent(us_privacy);
            } else if (gpp != "" && gpp != "null") {
                url += "&gpp=" + encodeURIComponent(gpp);
            }
            if (gpp_sid != "" && gpp_sid != "null") {
                url += "&gpp_sid=" + encodeURIComponent(gpp_sid);
            }
            l.src = url;
            l.height=0;l.width=0;l.style="display:none; visibility: hidden";
            document.body.appendChild(l);
        
        var r = new XMLHttpRequest();
        r.withCredentials = true;
        var s ="r=" + ref;
        if (!(typeof dianomi_tag_params_0xABF9B21A42204933B1436F656BD19DE1 === "undefined")) {

            const gdpr = 0;
            const gdpr_consent = encodeURIComponent(dianomi_tag_params_0xABF9B21A42204933B1436F656BD19DE1["consent_string"] ?? '');

            let isDev = !!""

            function getEmptyIframe() {
                let frame = document.createElement('iframe');
                frame.setAttribute('frameborder', 0);
                frame.setAttribute('scrolling', 'no');
                frame.setAttribute('marginheight', 0);
                frame.setAttribute('marginwidth', 0);
                frame.setAttribute('TOPMARGIN', 0);
                frame.setAttribute('LEFTMARGIN', 0);
                frame.setAttribute('allowtransparency', 'true');
                frame.setAttribute('width', 0);
                frame.setAttribute('height', 0);
                frame.style = 'border: 0px; display: none;';
                return frame;
            }
            if (dianomi_tag_params_0xABF9B21A42204933B1436F656BD19DE1["include_rtb"] === 2) {
                let cookieSyncIframe = getEmptyIframe();
                cookieSyncIframe.id = 'dianomi-cookie-sync-iframe';
                let cookieSyncIframeURL = `https://${ isDev ? 'dev' : 'www'}.dianomi.com/prebid/cookie_sync.html?`;
                cookieSyncIframeURL += 'gdpr=' + gdpr + '&gdpr_consent=' + gdpr_consent;
                cookieSyncIframeURL += '&args=us_privacy:' + us_privacy, "gpp:" + gpp;
                cookieSyncIframeURL += '&bidders=adf,rubicon,grid,adform,pubmatic,amx,dianomi,appnexus';
                cookieSyncIframe.src = cookieSyncIframeURL;
                document.body.appendChild(cookieSyncIframe);
            }
        }
        

    

    })();
