c1.popads.net
Open in
urlscan Pro
2a02:6ea0:c700::4
Public Scan
URL:
http://c1.popads.net/pop.js
Submission: On June 10 via manual from ES — Scanned from ES
Submission: On June 10 via manual from ES — Scanned from ES
Form analysis
0 forms found in the DOMText Content
(function(g,e,n){function P(a,b,c,d,f){null==e.body&&(e.body=e.createElement("body"));null==e.head&&(e.head=e.createElement("head"));var h=e.createElement("style");h.innerHTML="#a_timer_oYvwGmQc,#a_title_nEYjMupI,.a_close_nEYjMupI{top:0;right:0;height:30px;line-height:30px;text-align:center}.top-left_vUTDnibMkZJIvuTH{position:fixed;top:0;left:0}.bottom-left_vUTDnibMkZJIvuTH{position:fixed;bottom:0;left:0}.top-right_vUTDnibMkZJIvuTH{position:fixed;top:0;right:0}.bottom-right_vUTDnibMkZJIvuTH{position:fixed;bottom:0;right:0}.top-center_vUTDnibMkZJIvuTH{position:fixed;top:0;left:50%;transform:translateX(-50%)}.bottom-center_vUTDnibMkZJIvuTH{position:fixed;bottom:0;left:50%;transform:translateX(-50%)}.c_window_xEucqIjg{z-index:9999999;overflow:hidden;position:fixed;background-color:#FFF;margin:20px;padding:0;border:1px solid #ccc;border-radius:5px;-webkit-box-shadow:0 0 5px 1px rgba(153,153,153,.5);-moz-box-shadow:0 0 5px 1px rgba(153,153,153,.5);box-shadow:0 0 5px 1px rgba(153,153,153,.5)}#alink_overlay_EPXdyaUf{position:absolute;z-index:1;background:rgba(0,0,0,0);cursor:pointer}#a_iframe_DwTGCjTm{z-index:-1;padding:0!important}.a_close_nEYjMupI{position:absolute;color:rgba(0,0,0,.3);width:30px;font-size:30px}#a_title_nEYjMupI{position:absolute;color:rgba(0,0,0,1);font-size:18px}.a_close_nEYjMupI a{text-decoration:none!important}#a_timer_oYvwGmQc{position:absolute;color:rgba(0,0,0,.3);width:30px;font-size:30px}.a_close_nEYjMupI:focus,.a_close_nEYjMupI:hover{color:#000;cursor:pointer}.a_open_rrTmtfGj{display:block}.a_hide_qkasklrO{display:none}"; e.head.appendChild(h);e.getElementById("c_window_xEucqIjg")&&(clearTimeout(timedis),e.getElementById("c_window_xEucqIjg").remove());h=e.createElement("div");h.id="c_window_xEucqIjg";e.body.appendChild(h);e.getElementById("c_window_xEucqIjg").classList.add("c_window_xEucqIjg");h.innerHTML='<div style="height:30px;"><span id="a_title_nEYjMupI">Advertisement</span><span class="a_close_nEYjMupI a_hide_qkasklrO" data-alink="data-alink" id="a_close_nEYjMupI" data-dismiss_OLjQnDvi="c_xEucqIjg"><a href="#" data-alink="data-alink" data-dismiss_OLjQnDvi="c_xEucqIjg" style="text-decoration: none!important; color: rgba(0,0,0,0.3);">×</span></a><span id="a_timer_oYvwGmQc">5</span></div><div id="alink_overlay_EPXdyaUf" alink="alink"></div>'; e.getElementById("c_window_xEucqIjg").classList.add(b+"_vUTDnibMkZJIvuTH");b=e.createElement("iframe");h=e.getElementById("c_window_xEucqIjg");var l=e.getElementById("a_title_nEYjMupI"),m=e.getElementById("alink_overlay_EPXdyaUf");h.style.width=c;var q=c.search(/px/i),D=d.search(/px/i),G=(Math.max(e.documentElement.clientWidth,g.innerWidth||0),Math.max(e.documentElement.clientHeight,g.innerHeight||0));if(-1==q?(m.style.width="100%",b.style.width="100%",l.style.width="100%"):(m.style.width=c,b.style.width= c,l.style.width=c),-1==D)b.style.height="100%",m.style.height="96%",h.style.height=d;else{l=function(p){p.matches};q=function(){Math.max(e.documentElement.clientWidth,g.innerWidth||0);Math.max(e.documentElement.clientHeight,g.innerHeight||0)<A&&(e.getElementById("c_window_xEucqIjg").style.top="0")};D=d.split("px")[0];var A=Number(D)+30;m.style.height=d;b.style.height=d;h.style.height=A+"px";c=c.split("px")[0];d=Number(c)+40;g.onresize=q;g.onload=q;m=e.createElement("style");if(m.innerHTML="@media all and (max-width: "+ d+"px){#c_window_xEucqIjg{position:fixed;top:0!important;left:0;right:0;width:90%!important;margin:10px auto auto!important;text-align:center}.bottom-center_vUTDnibMkZJIvuTH,.top-center_vUTDnibMkZJIvuTH{left:0!important;right:0!important;transform:none!important}#a_iframe_DwTGCjTm{width:100%!important;}#alink_overlay_EPXdyaUf{width:90%!important;height:90%!important},.bottom-right_vUTDnibMkZJIvuTH {top:0px!important;} }",e.head.appendChild(m),matchMedia)c=g.matchMedia("(min-width: "+c+"px)"),c.addListener(l), l(c);g.matchMedia("(orientation: landscape)").matches&&G<A&&(e.getElementById("c_window_xEucqIjg").style.top="0");g.addEventListener("orientationchange",function(){g.matchMedia("(orientation:landscape)").matches||G<A&&(e.getElementById("c_window_xEucqIjg").style.top="0")})}b.src=a;b.name="a_iframe_DwTGCjTm";b.id="a_iframe_DwTGCjTm";b.frameBorder="0";b.scrolling="no";b.sandbox="allow-forms allow-scripts";h.appendChild(b);e.getElementById("c_window_xEucqIjg").classList.add("a_open_rrTmtfGj");e.getElementById("a_iframe_DwTGCjTm").src= a;var B=5,k=setInterval(function(){B--;e.getElementById("a_timer_oYvwGmQc").textContent=B;0>=B&&clearInterval(k)},1E3);timedis=setTimeout(function(){e.getElementById("a_close_nEYjMupI").classList.remove("a_hide_qkasklrO");e.getElementById("a_timer_oYvwGmQc").classList.add("a_hide_qkasklrO")},5E3);e.addEventListener("click",function(p){clearInterval(k);var v=5;k=setInterval(function(){v--;e.getElementById("a_timer_oYvwGmQc").textContent=v;0>=v&&clearInterval(k)},1E3);var C=(p=p||g.event).target||p.srcElement; if(C.hasAttribute("data-dismiss_OLjQnDvi")&&"c_xEucqIjg"==C.getAttribute("data-dismiss_OLjQnDvi")){var w=e.getElementById("c_window_xEucqIjg");e.getElementById("c_window_xEucqIjg").classList.add("a_hide_qkasklrO");w.classList.remove("a_open_rrTmtfGj");e.getElementById("c_window_xEucqIjg").remove();p.preventDefault()}C.hasAttribute("data-alink")&&(w=e.getElementById("c_window_xEucqIjg"),e.getElementById("c_window_xEucqIjg").classList.add("a_hide_qkasklrO"),w.classList.remove("a_open_rrTmtfGj"),p.preventDefault()); C.hasAttribute("alink")&&(w=e.getElementById("c_window_xEucqIjg"),e.getElementById("c_window_xEucqIjg").classList.add("a_hide_qkasklrO"),w.classList.remove("a_open_rrTmtfGj"),g.open(f,"_blank").focus())},!1)}Function.prototype.bind||(Function.prototype.bind=function(a){if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var b=Array.prototype.slice.call(arguments,1),c=this,d=function(){},f=function(){return c.apply(this instanceof d&&a?this:a,b.concat(Array.prototype.slice.call(arguments)))};d.prototype=this.prototype;f.prototype=new d;return f});if(!x)var x={_cookieLockSet:function(a){var b="1";a&&(b="0");try{return localStorage.setItem("PopJSLock",b),!0}catch(d){}a=new Date;var c=6E4;a.setTime(a.getTime()+c);c="expires="+a.toUTCString();e.cookie="PopJSLock="+b+";"+c+";path=/";return!0},_cookieLockGet:function(){var a=!1;try{return localStorage.PopJSLock&&(a="1"==localStorage.PopJSLock),localStorage.setItem("PopJSLock","0"), a}catch(f){}for(var b=decodeURIComponent(e.cookie).split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1);0==d.indexOf("PopJSLock=")&&"1"==d.substring(10,d.length)&&(a=!0)}a&&this._cookieLockSet(!0);return a},_windowOpen:function(a,b){var c=""+Math.random();"msie"==this.cap.env.b&&9>=this.cap.env.v&&(c="");c=b?this.iframewin.open("about:blank",c,b):this.iframewin.open("about:blank",c);if(this.settings.openernull)try{c.opener=null}catch(d){}try{c.location.replace(a)}catch(d){}return c}, _openTabup:function(a){return this._windowOpen(a)},_openTabunder:function(a){if(0==this.cap.tabunder)this._openTabup(a);else{this._cookieLockSet(!1);var b=this._openTabup(e.location.href);this.ti=setInterval(function(){if(b)try{e.location.replace(a)}catch(c){clearInterval(this.ti)}}.bind(this),10)}return!0},_getOptString:function(){return optstring="top="+(g.screenY||0)+",left="+(g.screenX||0)+",width="+(0==g.outerWidth?99999:g.outerWidth||g.screen.width)+",height="+(0==g.outerHeight?99999:g.outerHeight|| g.screen.height)+",status=0,location=1,toolbar=1,menubar=1,resizable=1,scrollbars=1"},_openPopup:function(a){return this._windowOpen(a,this._getOptString())},_openPopunderSafari:function(a){function b(c,d,f){var h=e.createElement("iframe");h.style="display:none;";e.body.appendChild(h);var l=h.contentWindow.document.createElement("script");l.type="text/javascript";l.innerHTML="window.parent = window.top = window.frameElement = null;window.mkp = function(url, name, opts) {var popWin = window.open(url, name, opts);try {popWin.opener = null} catch (e) {}return popWin;};"; h.contentWindow.document.body.appendChild(l);c=h.contentWindow.mkp(c,d,f);e.body.removeChild(h);return c}g.name=""+Math.random();a=b(a,""+Math.random(),this._getOptString());b("",g.name,"");g.name=null;return a},_openPopunderBlur:function(a){a=this._openPopup(a);try{e.focus()}catch(b){}g.focus();a.blur();return a},_openPopunderFF:function(a){var b;setTimeout(function(){b=this._openPopup(a);"about:blank"==a&&(this.prepop=b)}.bind(this),0);setTimeout(function(){var c=g.open("about:blank","_self");c&& !c.closed&&c.focus()},0);return!0},_getPopunderCRResident:function(a){var b=n.width,c=n.height;return"<body>\t\t<script>\t\ts1i=0;s2i=0;dc=0;focuscount=0;\t\tif (navigator.oscpu) window.resizeTo(1,1); \t\tfunction posred(){window.resizeTo(1,1);if (window.screenY>100) window.moveTo(0,0); else window.moveBy("+b+","+c+")};\t\tfunction dance(){dc++;if (dc<3) return !1;if (s1i==0 ){s1i=window.setInterval(function(){ posred(); }, 50);}posred();window.clearInterval(s2i);document.onmousemove=null;};\t\tdocument.onmousemove=dance;\t\tfunction phash(){return window.screenX+','+window.screenY+','+window.outerWidth+','+window.outerHeight};\t\tphashc=phash();s2i=setInterval(function(){if (phashc!=phash()) {dance();phashc=phash()}; },100);\t\tvar deploy=function()\t\t{\t\t\tdc=0;window.clearInterval(s1i);window.clearInterval(s2i);document.onmousemove=null;\t\t\twindow.moveTo(0,0);\t\t\twindow.resizeTo("+ b+","+c+");\t\t\tif (window.name.match(/^https?:\\/\\//)) { window.location.replace(window.name); } else {window.name='ready';}\t\t};window.onblur=deploy;window.onfocus=function(){window.focuscount=1};setTimeout(function(){if (window.focuscount==0) deploy();}, 1000);setTimeout(function(){if (window.name.match(/^https?:\\/\\//)) deploy();}, "+a+")\x3c/script>"},_getPopunderCROptionsString:function(){var a=n.width,b=n.height;g.MSInputMethodContext&&e.documentMode&&(a-=200,b-=200);a="popup=1,top="+b+ ",left="+a+",width=1,height=1";this.settings.openernull&&(a+=",noopner");return a},_openPopunderCRPre:function(a){var b=this._getPopunderCRResident(a);a=this.iframewin.open("about:blank","",this._getPopunderCROptionsString());if(this.settings.openernull)try{a.opener=null}catch(c){}try{a.document.open(),a.document.write(b),a.document.close()}catch(c){}return a},_openPopunderCRPost:function(a){"ready"==this.prepop.name?this.prepop.location.replace(a):this.prepop.name=a},_getMinipopStatus:function(a){if(!a|| a.closed||!a.location)return"closed";try{var b=a.name}catch(c){b="error"}return"error"==b?"success":""==b?"waiting":"ready"==b?"prepopready":"redirecting"},_openPopunderCR:function(a,b){var c=this._getPopunderCRResident(b);var d=this.iframewin.open("about:blank",a,this._getPopunderCROptionsString());if(this.settings.openernull)try{d.opener=null}catch(f){}try{d.document.open(),d.document.write(c),d.document.close()}catch(f){}return d},_openPopunderIE11:function(a){this.tw=this._openPopup(a);this.focusInterval&& clearInterval(this.focusInterval);this.runs=0;this.focusInterval=setInterval(function(){try{this.tw&&(this.tw.blur(),this.tw.opener.focus(),g.self.focus(),g.focus(),e.focus())}catch(b){}this.runs++;10<this.runs&&this.focusInterval&&clearInterval(this.focusInterval)}.bind(this),100);return this.tw},_detectBrowser:function(a){var b,c;var d="desktop";if(c=a.match(/^Mozilla\/5\.0 \([^\)]+\) AppleWebKit\/[0-9\.]+ \(KHTML, like Gecko\) Chrome\/([0-9]+)[0-9\.]+ Safari\/[0-9\.]+$/)){var f="chrome";var h= c[1]}if(c=a.match(/(Firefox|OPR)\/([0-9]+)/))f=c[1].toLowerCase(),h=c[2];if(c=a.match(/rv:([0-9]+)\.0\) like Gecko/))f="msie",h=c[1];if(c=a.match(/MSIE ([0-9]+)/))f="msie",h=c[1];a.match(/Windows NT/)&&(b="windows");if(c=a.match(/([0-9]+)(_([0-9]+)){0,} like Mac OS X/))b="ios",f="safari",h=c[1],d="mobile";if(c=a.match(/(CrOS)\/([0-9]+)/))f="chrome",h=c[2],d="mobile";if(c=a.match(/(Edge?)\/([0-9]+)/))f=c[1].toLowerCase(),h=c[2];if(c=a.match(/\(KHTML, like Gecko\) Version\/([0-9]+)/))f="safari",h=c[1]; a.match(/Macintosh; Intel Mac OS X /)&&(b="macosx");a.match(/Android|like Mac OS X|Mobile|Phone/)&&(d="mobile");a.match(/^Mozilla\/5\.0 \(Linux; Android/)&&(b="android");return{o:b,b:f,v:h,f:d,i:g!=g.top}},_getBrowserCapabilities:function(){var a=this._detectBrowser(navigator.userAgent),b=!1,c=!0,d=!0;punderminipop=!1;"desktop"==a.f?("chrome"==a.b&&(b=!0),"firefox"==a.b&&(b=!0),"msie"==a.b&&11>a.v&&(b=!0),"msie"==a.b&&11==a.v&&(b=!0),"safari"==a.b&&(b=!0),"edg"==a.b&&(b=!0)):d=c=!1;1==a.i&&(d=!1); punderminipop="msie"==a.b&&11==a.v||"edg"==a.b||"chrome"==a.b||"firefox"==a.b&&85<=a.v;return{env:a,popup:c,popunder:b,tabup:!0,tabunder:d,punderminipop:punderminipop}},_openPopunder:function(a,b){var c=this.cap.env;return"desktop"==c.f?this.cap.punderminipop?(this.minipopmon=!0,this._openPopunderCR(a,b)):"firefox"==c.b?this._openPopunderFF(a):"msie"==c.b&&11>c.v?this._openPopunderBlur(a):"safari"==c.b?this._openPopunderSafari(a):"edge"==c.b&&this.cap.tabunder?this._openTabunder(a):this._openPopup(a): this.cap.tabunder?this._openTabunder(a):this._openTabup(a)},_prepopOpen:function(a){this.prepop=this.cap.punderminipop?this._openPopunderCRPre(a):this._openPopunder("about:blank")},_prepopReady:function(){return!(!this.prepop||this.prepop.closed||!this.prepop.location)},_prepopUse:function(a,b){b.onbeforeopen instanceof Function?a=b.onbeforeopen(a):this.settings.onbeforeopen instanceof Function&&(a=this.settings.onbeforeopen(a));try{if(this.cap.punderminipop?this._openPopunderCRPost(a):this.prepop.location.replace(a), this.prepop=!1,b.onafteropen instanceof Function)b.onafteropen(a);else if(this.settings.onafteropen instanceof Function)this.settings.onafteropen(a)}catch(c){return!1}return!0},_prepopClose:function(){try{this.prepop.close()}catch(a){return!1}return!0},_openAd:function(a,b){b.onbeforeopen instanceof Function?a=b.onbeforeopen(a):this.settings.onbeforeopen instanceof Function&&(a=this.settings.onbeforeopen(a));var c=b.type;"popunder"!=c||this.cap.popunder||(c="tabup");"tabunder"!=c||this.cap.tabunder|| (c="popup");"popup"!=c||this.cap.popup||(c="tabup");"tabup"!=c||this.cap.tabup||(c="popup");var d;"popunder"==c?d=this._openPopunder(a,b.crtimeout||this.settings.crtimeout):"popup"==c?d=this._openPopup(a):"tabup"==c?d=this._openTabup(a):"tabunder"==c&&(d=this._openTabunder(a));if(b.onafteropen instanceof Function)b.onafteropen();else if(this.settings.onafteropen instanceof Function)this.settings.onafteropen();return d},abortPop:function(){this._prepopReady()&&this._prepopClose();this.catchalldiv&& this._removeCatchAllDiv();this.settings.prepop=!1},_minipopCheck:function(a){if(this.minipopmon){var b=this._getMinipopStatus(this.minipopmontw);if("prepopready"==b||"success"==b||"redirecting"==b){if("redirecting"==b||"success"==b)this.urls.shift(),this.minipopmon=!1}else"closed"==b&&(this.minipopmon=!1);a&&setInterval(this._minipopCheck.bind(this),100,!0)}},_onExecute:function(a){a=a||g.event;if("click"==a.type||"mouseup"==a.type||"mousedown"==a.type){var b=!1;"which"in a?b=3==a.which:"button"in a&&(b=2==a.button);if(b)return!1}if(this.userActivation)try{if(!this.iframewin.navigator.userActivation.isActive)return!1}catch(c){}this._minipopCheck(!1);if(0==this.urls.length&&this.settings.prepop&&!this._prepopReady())return this.settings.prepop=!1,this._prepopOpen(this.settings.crtimeout),!0;this.catchalldiv&&0==this.urls.length&&this._removeCatchAllDiv();if(0==this.urls.length)return!1;this.settings.prepop=!1;a=this.urls[0];this.minipopmon=!1;a=this._openAd(a.url,a.options);console.log(a);if(this.minipopmon)this.minipopmontw= a,this._minipopCheck(!0),this.catchalldiv&&2>this.urls.length&&this._removeCatchAllDiv();else if(a||this.settings.ignorefailure)console.log("shifting url"),this.urls.shift();this.catchalldiv&&0==this.urls.length&&this._removeCatchAllDiv()},_userActivationHandler:function(){var a=!1;try{a=navigator.userActivation.isActive}catch(b){}try{a||(a=this.iframewin.navigator.userActivation.isActive)}catch(b){}a&&this._onExecute({type:"uah"})},_onMouseDownHandler:function(a){a=a.target||a.srcElement||a.toElement; if(this._prepopReady())return!1;var b=!1;if(this.minipopmontw){var c=this._getMinipopStatus(this.minipopmontw);"waiting"==c&&(b=!0);"prepopready"==c&&(b=!0)}if(b||"A"!=a.tagName)return!1;if(a.popjsoriginalhref&&0==this.urls.length)return a.href=a.popjsoriginalhref,delete a.popjsoriginalhref,a.target="_blank",!1;if("_blank"!=a.target&&0<e.getElementsByTagName("BASE").length&&"_blank"!=(e.getElementsByTagName("BASE")[0].target||"").toLowerCase()||0==this.urls.length)return!1;a.popjsoriginalhref=a.href; a.href="#";a.target=""},_onBeforeUnloadHandler:function(){this._prepopReady()&&this._prepopClose()},_isCatchAllNeeded:function(){function a(b){b=e.getElementsByTagName(b);for(var c=0;c<b.length;c++)if(100<(b.item(c).clientHeight||b.item(c).offsetHeight||0)||100<(b.item(c).clientWidth||b.item(c).offsetWidth||0))return!0;return!1}return a("IFRAME")||a("VIDEO")||a("OBJECT")},_removeCatchAllDiv:function(){this.catchalldiv.parentNode.removeChild(this.catchalldiv);delete this.catchalldiv},_createCatchAllDiv:function(){if(0== e.getElementsByTagName("body").length)return!1;var a=e.createElement("div");a.style="position: fixed; display: block; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0); z-index: 300000;";e.addEventListener?("desktop"!=this.cap.env.f&&"ios"==this.cap.env.o&&a.addEventListener("touchend",this._onExecute.bind(this)),a.addEventListener("click",this._onExecute.bind(this))):a.attachEvent("onclick",this._onExecute.bind(this));e.getElementsByTagName("body")[0].appendChild(a); this.catchalldiv=a;return!0},_deployCatchAll:function(){this.settings.catchalldiv&&(this._isCatchAllNeeded()&&!this.catchalldiv?this._createCatchAllDiv():this.catchallmon||(this.catchallmon=setInterval(function(){this.catchalldiv?clearInterval(this.catchallmon):this._isCatchAllNeeded()&&(clearInterval(this.catchallmon),this._createCatchAllDiv())}.bind(this),500)))},init:function(a){if(this._cookieLockGet())return!1;iframe=e.createElement("iframe");iframe.src="javascript:false";iframe.style.display= "none";iframe.width="0";iframe.height="0";where=e.getElementsByTagName("script")[0];where.parentNode.insertBefore(iframe,where);this.iframewin=win=iframe.contentWindow||iframe;this.userActivation=!0;try{win.navigator.userActivation.isActive}catch(b){this.userActivation=!1}this.cap=this._getBrowserCapabilities();this.urls=[];this.settings={};this.settings.prepop=(a.prepop||!1)&&this.cap.popunder;this.settings.crtimeout=a.crtimeout||6E4;this.settings.targetblankhandler=a.targetblankhandler||!0;this.settings.onbeforeopen= a.onbeforeopen;this.settings.onafteropen=a.onafteropen;this.settings.ignorefailure=a.ignorefailure||!1;this.settings.catchalldiv=a.catchalldiv||!this.userActivation;this.minipopmon=!1;this.settings.openernull=!0;this._deployCatchAll();this.userActivation&&setInterval(this._userActivationHandler.bind(this),50);e.addEventListener?("desktop"!=this.cap.env.f&&"ios"==this.cap.env.o&&e.addEventListener("touchend",this._onExecute.bind(this)),e.addEventListener("click",this._onExecute.bind(this)),this.settings.targetblankhandler&& e.addEventListener("mousedown",this._onMouseDownHandler.bind(this)),this.settings.prepop&&g.addEventListener("beforeunload",this._onBeforeUnloadHandler.bind(this))):(e.attachEvent("onclick",this._onExecute.bind(this)),this.settings.targetblankhandler&&e.attachEvent("onmousedown",this._onMouseDownHandler.bind(this)),this.settings.prepop&&g.attachEvent("onbeforeunload",this._onBeforeUnloadHandler.bind(this)))},addUrl:function(a,b){if(!a.match(/^https?:\/\//)||!this.cap)return!1;var c=!1;this._prepopReady()&& ("popunder"==b.type?this._prepopUse(a,b)&&(c=!0):this._prepopClose());c||this.settings.ignorefailure||(this.urls.push({url:a,options:b}),this._deployCatchAll())}};var H={a:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var b="",c=0;for(a=H.b(a);c<a.length;){var d=a.charCodeAt(c++);var f=a.charCodeAt(c++);var h=a.charCodeAt(c++);var l=d>>2;d=(3&d)<<4|f>>4;var m=(15&f)<<2|h>>6;var q=63&h;isNaN(f)?m=q=64:isNaN(h)&&(q=64);b=b+this.a.charAt(l)+this.a.charAt(d)+this.a.charAt(m)+ this.a.charAt(q)}return b},decode:function(a){var b="",c=0;for(a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");c<a.length;){var d=this.a.indexOf(a.charAt(c++));var f=this.a.indexOf(a.charAt(c++));var h=this.a.indexOf(a.charAt(c++));var l=this.a.indexOf(a.charAt(c++));d=d<<2|f>>4;f=(15&f)<<4|h>>2;var m=(3&h)<<6|l;b+=String.fromCharCode(d);64!=h&&(b+=String.fromCharCode(f));64!=l&&(b+=String.fromCharCode(m))}return H.c(b)},b:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;c<a.length;c++){var d=a.charCodeAt(c); 128>d?b+=String.fromCharCode(d):127<d&&2048>d?(b+=String.fromCharCode(d>>6|192),b+=String.fromCharCode(63&d|128)):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128),b+=String.fromCharCode(63&d|128))}return b},c:function(a){var b="",c=0;for(c1=c2=0;c<a.length;){var d=a.charCodeAt(c);128>d?(b+=String.fromCharCode(d),c++):191<d&&224>d?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((31&d)<<6|63&c2),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((15&d)<<12|(63& c2)<<6|63&c3),c+=3)}return b}};!function(a,b,c){"undefined"!=typeof module&&module.exports?module.exports=c(b,a):"function"==typeof define&&define.amd?define("detect-zoom",function(){return c(b,a)}):a[b]=c(b,a)}(g,"detectZoom",function(){var a=function(){return g.devicePixelRatio||1},b=function(){return{zoom:1,devicePxPerCssPx:1}},c=function(){var k=Math.round(n.deviceXDPI/n.logicalXDPI*100)/100;return{zoom:k,devicePxPerCssPx:k*a()}},d=function(){var k=Math.round(e.documentElement.offsetHeight/g.innerHeight* 100)/100;return{zoom:k,devicePxPerCssPx:k*a()}},f=function(){var k=Math.round(g.outerWidth/g.innerWidth*100)/100;return{zoom:k,devicePxPerCssPx:k*a()}},h=function(){var k=Math.round(e.documentElement.clientWidth/g.innerWidth*100)/100;return{zoom:k,devicePxPerCssPx:k*a()}},l=function(){var k=(90==Math.abs(g.orientation)?n.height:n.width)/g.innerWidth;return{zoom:k,devicePxPerCssPx:k*a()}},m=function(){var k=e.createElement("div");k.innerHTML="1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0";k.setAttribute("style", "font: 100px/1em sans-serif; -webkit-text-size-adjust: none; text-size-adjust: none; height: auto; width: 1em; padding: 0; overflow: visible;".replace(/;/g," !important;"));var p=e.createElement("div");p.setAttribute("style","width:0; height:0; overflow:hidden; visibility:hidden; position: absolute;".replace(/;/g," !important;"));p.appendChild(k);e.body.appendChild(p);k=1E3/k.clientHeight;return k=Math.round(100*k)/100,e.body.removeChild(p),{zoom:k,devicePxPerCssPx:k*a()}},q=function(){var k=A("min--moz-device-pixel-ratio", "",0,10,20,1E-4);return k=Math.round(100*k)/100,{zoom:k,devicePxPerCssPx:k}},D=function(){return{zoom:q().zoom,devicePxPerCssPx:a()}},G=function(){var k=g.top.outerWidth/g.top.innerWidth;return k=Math.round(100*k)/100,{zoom:k,devicePxPerCssPx:k*a()}},A=function(k,p,v,C,w,Q){function J(y,K,L){var I=(y+K)/2;return 0>=L||K-y<Q?I:M("("+k+":"+I+p+")").matches?J(I,K,L-1):J(y,I,L-1)}var M,N,E,z;g.matchMedia?M=g.matchMedia:(N=e.getElementsByTagName("head")[0],E=e.createElement("style"),N.appendChild(E),z= e.createElement("div"),z.className="mediaQueryBinarySearch",z.style.display="none",e.body.appendChild(z),M=function(y){E.sheet.insertRule("@media "+y+"{.mediaQueryBinarySearch {text-decoration: underline} }",0);y="underline"==getComputedStyle(z,null).textDecoration;return E.sheet.deleteRule(0),{matches:y}});v=J(v,C,w);return z&&(N.removeChild(E),e.body.removeChild(z)),v},B=function(){var k=b;return isNaN(n.logicalXDPI)||isNaN(n.systemXDPI)?g.navigator.msMaxTouchPoints?k=d:!g.chrome||g.opera||0<=navigator.userAgent.indexOf(" Opera")? 0<Object.prototype.toString.call(g.HTMLElement).indexOf("Constructor")?k=h:"orientation"in g&&"webkitRequestAnimationFrame"in g?k=l:"webkitRequestAnimationFrame"in g?k=m:0<=navigator.userAgent.indexOf("Opera")?k=G:g.devicePixelRatio?k=D:.001<q().zoom&&(k=q):k=f:k=c,k}();return{zoom:function(){return B().zoom},device:function(){return B().devicePxPerCssPx}}});"use strict";H=g.Base64;var R=e.currentScript,F=null,u={log:function(a){}},r={_set:function(a,b,c,d,f){var h=c||"";h&&("number"===typeof h?(c= new Date,c.setTime(c.getTime()+1E3*h)):c=h,h=";expires="+c.toUTCString());e.cookie=a+"="+escape(""+b)+h+(f?";domain="+f:"")+";path="+(d||"/")},_get:function(a){return(a=e.cookie.match(new RegExp(a+"=[^;]+","i")))?decodeURIComponent(a[0].split("=")[1]):null},_remove:function(a){this._set(a,0,new Date(0))}},t={_available:null,_isAvailable:function(){if(null===this._available)try{g.localStorage.setItem("localStorageTest",1),g.localStorage.removeItem("localStorageTest"),this._available=!0}catch(a){this._available= !1}return this._available},_set:function(a,b){this._isAvailable()?g.localStorage.setItem(a,b):r._set(a,b)},_get:function(a){try{return this._isAvailable()?g.localStorage.getItem(a):r._get(a)}catch(b){return null}},_remove:function(a){this._isAvailable()?g.localStorage.removeItem(a):r._remove(a)}};var O={_inventory:{},_config:{_siteId:0,_minBid:0,_popPerDay:0,_popDelay:0,_inpagePerDay:0,_inpageDelay:0,_defaultDelay:0,_blockedCountries:!1,_default:!1,_defaultType:"popunder",_defaultPerDay:0,_useOverlay:!0, _trafficType:0,_popunderFailover:"tabup",_prepop:null===r._get("_popprepop"),_adscorebp:null,_adscorept:null,_adscoreak:"QpUJAAAAAAAAGu98Hdz1l_lcSZ2rY60Ajjk9U1c"},_init:function(){var a=this;this._loadConfig();this._isDelayBetweenExpired()&&x.init({prepop:this._config._prepop,catchalldiv:this._config._useOverlay,onafteropen:function(){a._updateFiredCount()}});this._adscoreDeploy()},_adscoreDeploy:function(){var a=this,b=0,c=0,d=this._config;if(a._config._adscorebp)a._checkInventory(a._config._adscorebp); else if("function"===typeof AdscoreInit){u.log("adscore already exists");try{AdscoreInit(a._config._adscoreak,{sub_id:d._siteId,callback:function(f){a._checkInventory(f.signature||"e2 "+f.error)}})}catch(f){a._checkInventory("e4 "+f.message)}}else b=setInterval(function(){var f=["re","adsco"];f.push(f[1][3]);var h="https://"+f.reverse().join(".")+"/";if(e.body){clearInterval(b);var l=e.createElement("script");l.src=h;try{l.onerror=function(){l.src==h?l.src="https://"+Math.round(Math.pow(52292.244664, 2))+"/a.js":(clearTimeout(c),a._checkInventory("e1"))}}catch(m){}l.onload=function(){clearTimeout(c);try{AdscoreInit(a._config._adscoreak,{sub_id:d._siteId,callback:function(m){a._checkInventory(m.signature||"e2 "+m.error)}})}catch(m){a._checkInventory("e4 "+m.message)}};e.body.appendChild(l);c=setTimeout(function(){a._checkInventory("e3")},8E3)}},100)},_checkInventory:function(a){u.log("CI "+a);var b=this,c=0,d=this._config,f,h;d._adscorept&&d._adscorept(a);try{clearTimeout(F)}catch(l){}F=setTimeout(function(){u.log("Retimer fired"); b._adscoreDeploy()},6E5);u.log("Retimer deployed "+F);c=setInterval(function(){var l="//serve.popads.net/c";if(e.body){clearInterval(c);h={_:encodeURIComponent(a),v:4,siteId:d._siteId,minBid:d._minBid,popundersPerIP:d._popPerDay+","+d._inpagePerDay,blockedCountries:d._blockedCountries||"",documentRef:encodeURIComponent(e.referrer),s:b._getScreenData()};for(f in h)h.hasOwnProperty(f)&&(l+=(-1<l.indexOf("?")?"&":"?")+f+"="+(h[f]||""));var m=e.createElement("script");m.src=l;try{m.onerror=function(){x.abortPop(); R.onerror()}}catch(q){}e.body.appendChild(m)}},100)},_parseFloatingBanner:function(a){0<this._config._inpageDelayPerDay&&this._getFiredCount("inpage")>=this._config._inpageDelayPerDay?u.log("Floating aborted due to delay"):this._isDelayBetweenExpired("inpage")&&(this._updateFiredCount("inpage"),P(a.url,a.position,a.width,a.height,a.clickurl))},_parseInventory:function(a){this._inventory=a||{};this._preparePop()},_preparePopDefault:function(){if(!1===this._config._default||""==this._config._default|| 0<this._config._defaultPerDay&&this._getFiredCount("fallback")>=this._config._defaultPerDay)u.log("Default aborted due to delay or nonset"),x.abortPop(),r._set("_popprepop",1,21600);else{var a=this._config._popunderFailover;x._prepopReady()&&(a="popunder");if(/^https?:\/\//.test(this._config._default))this._isDelayBetweenExpired()&&x.addUrl(this._config._default,{type:a,onbeforeopen:function(c){try{clearTimeout(F)}catch(d){}return c}});else{this._updateFiredCount("fallback");a=H.decode(this._config._default); a=("<script>"+a+"\x3c/script>").replace(/^\s*<script[^>]*>|<\/script>\s*$/g,"");var b=e.createElement("script");b.type="text/javascript";b.text=a;e.body.appendChild(b)}}},_preparePopInventory:function(){var a=this;0<this._config._popPerDay&&this._getFiredCount()>=this._config._popPerDay?u.log("Pop aborted due to popPerDay"):this._isDelayBetweenExpired()&&x.addUrl(this._inventory.url,{type:this._inventory.type,onbeforeopen:function(b){try{clearTimeout(F)}catch(c){}return b+"&s="+a._getScreenData()+ "&v=&m="}})},_getScreenData:function(){try{var a=g.detectZoom.zoom();return[n.width,n.height,a,n.width*a,n.height*a,g.self!=g.top?"1":"0"].join()}catch(b){return""}},_getFiredCount:function(a){var b="_popfired"+(a||""),c=b+"_expires";c=t._isAvailable()?t._get("_spop"+c):r._get(c);var d=0;c&&((new Date).getTime()<c&&(d=t._isAvailable()?t._get("_spop"+b):r._get(b)),d=parseInt(d,10)||0,isNaN(d)&&(d=0));u.log("getFiredCount for "+(a||"")+" is "+d);return d},_updateFiredCount:function(a){u.log("Updating fired count for "+ (a||""));var b="_popfired"+(a||""),c=b+"_expires",d=t._isAvailable()?t._get("_spop"+c):r._get(c),f=d?d:(new Date).getTime()+864E5;d=(new Date).getTime()<d?this._getFiredCount(a):0;t._isAvailable()&&(t._set("_spop"+b,d+1),t._set("_spop"+c,f),t._set("_spoplastOpenAt",new Date));r._set(b,d+1,new Date(f));r._set(c,(new Date(f)).toUTCString(),new Date(f));r._set("lastOpenAt_"+(a||""),(new Date).getTime(),86400)},_getLastOpenAt:function(a){return(a=t._isAvailable()?t._get("_spoplastOpenAt_"+(a||"")):r._get("lastOpenAt_"+ (a||"")))?new Date(a):null},_isDelayBetweenExpired:function(a,b){var c=this._getLastOpenAt(a);return!c||(new Date(c.getTime()+1E3*(b||this._config._popDelay))).getTime()<(new Date).getTime()},_preparePop:function(){""!=this._inventory.url?(this._preparePopInventory(),r._remove("_popprepop")):this._preparePopDefault()},_loadConfig:function(){var a=g._pop||[],b=this._config,c;for(c=0;c<a.length;c++){var d=a[c][0];var f=a[c][1];switch(d){case "siteId":case "delayBetween":case "defaultPerIP":case "trafficType":if(f= parseInt(f,10),isNaN(f))continue}switch(d){case "siteId":b._siteId=f;break;case "minBid":b._minBid=f;break;case "popundersPerIP":b._popPerDay=f;break;case "delayBetween":b._popDelay=f;break;case "blockedCountries":b._blockedCountries=f;break;case "default":b._default=f;break;case "defaultType":b._defaultType=f;break;case "defaultPerIP":b._defaultPerDay=f;break;case "topmostLayer":b._useOverlay=f;break;case "trafficType":b._trafficType=f;break;case "popunderFailover":b._popunderFailover=f;break;case "prepop":b._prepop= f;break;case "adscorebp":b._adscorebp=f;break;case "adscorept":b._adscorept=f;break;case "adscoreak":b._adscoreak=f;break;case "inpagePerIP":b._inpagePerDay=f;break;case "inpageDelayBetween":b._inpageDelay=f;break;case "defaultDelayBetween":b._defaultDelay=f}}}};O._init();g._pao={parse:function(a){O._parseInventory(a)},fbparse:function(a){O._parseFloatingBanner(a)}}})(window,window.document,window.screen);