e0fededdd56b17bacc4b773ed2c827b31f23b766b118ac35ec2edefba5f96356

Source Code:

/* eslint-disable spaced-comment */
(function() {
  'Copyright © 2013-2019 Confiant Inc. All rights reserved.';
  'v3.202005111129';
  var g=window;function confiantAutoRFCb(t,e,n,r,o,i){if(n&&i){var a=confiantTryToGetConfig((i.dfp?"gpt":i.prebid&&"prebid")||i.ast&&"ast");if(!a.isAR)return;if(a.arC="number"==typeof a.arC&&NaN!==a.arC?a.arC:3,g.confiantRefreshSlots=g.confiantRefreshSlots||{},i.dfp||i.prebid){var s=(i.dfp||i.prebid).s;if(g.confiantRefreshSlots[s]=g.confiantRefreshSlots[s]||0,g.confiantRefreshSlots[s]<a.arC){var f=function(t){for(var e=g.googletag.pubads().getSlots(),n=0,r=e.length;n<r;++n){var o=e[n];if(o.getSlotElementId()===t)return o}return null}(s);if(g.googletag){var c=window[a.prebidNameSpace];if(i.prebid&&((d=c)&&d.que&&d.requestBids&&d.setTargetingForGPTAsync)){function l(){g.confiantRefreshSlots[s]+=1,c.requestBids({timeout:1e4,adUnitCodes:[s],bidsBackHandler:function(){c.setTargetingForGPTAsync([s]),g.googletag.pubads().refresh([f])}})}2==a.devMode?setTimeout(l,Math.ceil(1e4*Math.random())):c.que.push(l)}else g.googletag.pubads().refresh([f]),g.confiantRefreshSlots[s]+=1}else console.log("Confiant slot auto refresh can not be completed. No googletag object found.")}}if(i.ast){var u=i.htmlid||i.placementElementId;g.confiantRefreshSlots[u]=g.confiantRefreshSlots[u]||0,g.confiantRefreshSlots[u]<a.arC&&(i.refreshAd(),g.confiantRefreshSlots[u]+=1)}}var d}function confiantTryToGetConfig(t){var e,n,r,o,i=document.currentScript?document.currentScript.getAttribute("id"):function(){try{throw new Error}catch(t){for(var e=function(t){return t.sourceURL?t.sourceURL:t.fileName?t.fileName:t.stack.split("\n").filter(function(t){return 0<=t.indexOf("http")})[0]}(t),n=document.querySelectorAll("script"),r=[],o=0,i=n.length;o<i;++o)n[o].src&&0<=e.indexOf(n[o].src)&&r.push(n[o]);return 1===r.length?r[0].getAttribute("id"):null}}(),a=window.confiant;if(a&&(o=i,n=(r=a)&&o&&r[o]?a[i].settings:a.settings),n){if(!n.callback)try{e=window.top.confiant,n.callback=e.settings.callback}catch(t){}return n}if(window._clrm&&window._clrm[t])return window._clrm[t];throw new Error("Confiant failed to init: no configuration is provided. Please contact us at support@confiant.com")}
  var config = confiantTryToGetConfig();
  config.cdt_version=config.cdt_version||"202005111129";var bucket=config.cdt_version+"/wrap.js",fastlyBaseUrl="https://confiant-integrations.freetls.fastly.net/cdt/";config.adMap=config.adMap||{};var clientReportingHash="#audit";function locationHasChanged(){~window.location.hash.indexOf(clientReportingHash)&&!config.wasDiagnosticToolActivated&&(config.wasDiagnosticToolActivated=!0,getDiagnosticTool())}function getDiagnosticTool(){var t=fastlyBaseUrl+bucket,a=document.createElement("script");a.src=t,document.getElementsByTagName("head")[0].appendChild(a)}config.hashListenerAttached||window.addEventListener("hashchange",locationHasChanged,!1),config.hashListenerAttached=!0,config.wasDiagnosticToolActivated=config.wasDiagnosticToolActivated||!1,window.addEventListener("message",function(t){if(t.data.includes&&t.data.includes("diagnostic_tool_context"))try{var a=t.data.replace("diagnostic_tool_context","");a=JSON.parse(a),config["adMap"][a.s]=a}catch(t){console.log("Confiant:"+t)}});
  function confiantWrap(a,b,c,d,e,f,g){'v2.202005111128';function h(a){for(var b in l)if(b===a&&l[b])return l[b];return null}function i(a){if("string"!=typeof a)return a;var b=a.match(/[^\u0000-\u024F\u1E00-\u1EFF\u2C60-\u2C7F\uA720-\uA7FF]/g);if(!b)return a;for(var c=0;c<b.length;c++)a=a.replace(b[c],encodeURIComponent(b[c]));return a}function j(a){return a=i(a),(s(a)||"")[y]("/","_")[y]("+","-")}function k(b,c,e,g){var h=D+t(b)+"&d="+c,i="err__"+1*new Date;q[i]=g;var j="<"+w+' type="text/java'+w+'">window["'+d+'"]={};'+'window["'+d+'"]["tpid"]="'+b+'";'+'window["'+d+'"]["'+b+'"]='+r.stringify(e)+";"+"</"+w+">",k="<"+w+" on"+z+'="void('+i+'())" '+x+'="'+h+'" type="text/java'+w+'" ></'+w+">";f&&(k="<"+w+" on"+z+'="void('+i+'())" '+'" type="text/java'+w+'" >'+unescape(f)+"</"+w+">"),a[B](j+k)}var l=b.adserverTargeting,m=b.bidder,n=null,o=b.size;g=g||{},f=f||null;var p=g.devMode,q=a.parentWindow||a.defaultView,r=q.JSON,s=q.btoa,t=q.encodeURIComponent;if(!r||!s)return!1;var u="t",v="i",w="script",x="src",y="replace",z="error",A="stringify",B="wr"+v+u+"e";c.indexOf("http")<0&&(c="https://"+c);var C,D=c+"/?wrapper="+t(d)+"&tpid=";C=h("oz_winner")||"ozone"===m?{k:{hb_bidder:[h("oz_winner")],hb_size:[o]}}:{k:{hb_bidder:[m],hb_size:[o]}};var E=!1,F=!(!window._clrm||!window._clrm.gpt),G=!(!window.confiant||!window.confiant.settings),H=window.confiant||window._clrm||{};return F||G||H.isListener||(H.isListener=!0,function(){function a(a){var b="cb";if("string"==typeof a.data&&a.data.indexOf(b+d)>-1){var c=a.data.substr(b.length+d.length),f=atob(c),g=window.JSON.parse(f);try{e.apply(this,g)}catch(a){console.log("Custom callback failed with an error: "+a)}"undefined"!=typeof confiantAutoRFCb&&confiantAutoRFCb.apply(null,g)}}if(window.addEventListener)try{window.top.addEventListener("message",a,!1)}catch(b){window.addEventListener("message",a,!1)}else window.top.attachEvent("onmessage",a)}()),function(){try{n=j(d+"/"+C.k.hb_bidder[0]+":"+C.k.hb_size[0]);var c={wh:n,wd:r.parse(r[A](C)),wr:0};2===p&&(c.cb=1e3*Math.random());var f={prebid:{adId:b.adId,cpm:b.cpm,s:b.adUnitCode},tp_crid:b.creativeId},h=!1;try{h=!!q.frameElement.getAttribute("data-forced-sandbox")}catch(a){}var i={d:c,t:escape(b.ad),isE:!0,cb:e,id:f,isFSb:h,devMode:p,isPerf:g.isPerf,isLS:g.isLS};k(n,j(r[A](c)),i,function(){a[B](b.ad)})}catch(a){E=!0;var c={property_id:d,uh:n||"wt_not_established",url:window.location.href||window.top.location.href||document.url||"url not found",label:"confiantWrap_initialize",msg:a.message},l=new XMLHttpRequest;l.open("POST","https://protected-by.clarium.io/werror",!0),l.send(s(r.stringify(c)))}}(),a.close(),!E}
  var Caspr=function(l,e,u,p,t){this.CONSTANTS={MATCHING_STYLE_1:1,MATCHING_STYLE_2:2,MATCHING_STYLE_3:3,MATCHING_STYLE_4:4},this.log_sample=void 0===l.ls||l.ls,this.rules=("string"==typeof l&&l.length&&(l=JSON.parse(atob(l))),l&&l.m?l.m:[]),this.masterReset=!0,this.cmpPrivacyString=null,"rs"in l&&(this.masterReset=l.rs),this.frames=[],this.cajsPresent=!1,this.tagSource=e||"",this.trackers=["iframe","object","a"],this.hasBeenUndone=!1,this.adserverDomain="/* @echo DOMAIN */",this.submitEndpoint="/log",this.targetId=null,this.prefixedTpid=u&&""!==u?u:null,this.submitted=!1,this.doneWithSandbox=!1,this.version=l.v?l.v:0,this.window=window,this.replaceWithHTML=null,this.isDfpOnPageIntegration=!1,this.isForcedSandboxing=!1,this.inAppSuccessCallback=null,this.devMode=0,this.supportLandingPageBlocking=!1,this.isAst=!1,this.isSSP=!1,this.isIEorEdgeorFF=window.navigator.userAgent.match(/(Trident\/7.0)|(edge|Firefox)/i),this.isLoadEventFired=!1;var A=this.shouldMonitorAllNestedFrames=!1,o=.0025,a=.05,n=.5,d=.0025,c=[],h=!1,f=9,i="7GPxwkHfdSwn-OphtKZwIPivffk",r="d",s="t";function m(i,e){var t,n=function(){var e=0<Object.keys(window[i]).length?Object.keys(window[i]):null;if(!e)return null;for(var t=0;t<e.length;t++)if("tpid"!=e[t])return e[t];return null}(window);if(!n)throw Error("Unable to find confiant context object. Please contact support@confiant.com.");return t=window[i][n],window[i][e]=t}t&&(this.adserverDomain=t),this.wrapperArg=p,this.wrapper=p,this.errors=[],this.blockingData=null,this.do_undo=void 0===l.du||!!l.du,this.replace=void 0!==l.re?unescape(l.re):"",this.backupFunctions={},this.targetId=p&&p.uniqueHash&&0<p.uniqueHash.length?p.uniqueHash:u,this.dom={findings:[],parentHTML:"",getRootElement:function(){return document.body},getHeadElement:function(){return document.head},walkTheDOM:function(e,t){for(t(e),e=e.firstChild;e;)this.walkTheDOM(e,t),e=e.nextSibling;return this.parentHTML},traverseAd:function(e){if(e){var n=this;return this.parentHTML=e.outerHTML,this.walkTheDOM(e,function(e){if(1==e.nodeType){if(e.contentWindow)try{var t=e.contentWindow.document.getElementsByTagName("html")[0],i=t&&t.innerHTML||"";n.parentHTML=n.parentHTML.replace(e.outerHTML,"<head></head><body></body>"==i?e.outerHTML:e.outerHTML.replace("</iframe>",i+"</iframe>"))}catch(e){H(e)||P(e,{label:"traverseAd"})}try{"SCRIPT"==e.tagName&&e.outerHTML&&(~e.outerHTML.indexOf("Caspr")||~e.outerHTML.indexOf('window["'+E())||e.outerHTML.match(/err__[\d]{13}\(\)/)||-1<!!e.outerHTML.indexOf('["tpid"]=')||-1<!!e.outerHTML.indexOf("goog_safeframe_hlt"))&&(n.parentHTML=n.parentHTML.replace(e.outerHTML,""))}catch(e){P(e,{label:"traverseAd_2"})}}})}}},this.wrapper={_data:{},augmentRequest:function(e){return(e=e||{}).wr=this._data.wr,e.wh=this._data.wh,e.wd=this._data.wd,e},init:function(e){var t=m(u,"%%TP_IDENTIFIER%%");t.u=1*new Date,this._data=t[r],e.tagSource=t[s],t.isE&&(e.tagSource=unescape(e.tagSource),e.isDfpOnPageIntegration=!0),this._tag=e.tagSource,e.isSafeFrame=t.isSfrm,e.isSandboxedSafeframe=t.isSfrm&&t.isSb,e.isForcedSandboxing=t.isFSb,e.inAppSuccessCallback=t.successCallback,e.devMode=t.devMode||0,e.isSSP=t.isSSP,e.cmpPrivacyString=t.cmpString||null}},this.creativeWrapper={init:function(e){var t=m(p.uniqueHash,p.tpIdentifier);t.u=1*new Date,e.tagSource=t.t,t.isE&&(e.tagSource=unescape(e.tagSource),e.isDfpOnPageIntegration=!0);var i=p.uniqueHash;"function"!=typeof t.cb&&(t.cb=null),e.cb=t.cb?t.cb:function(){try{window.top.postMessage("cb"+i+btoa(JSON.stringify(Array.prototype.slice.call(arguments))),"*")}catch(e){window.parent.postMessage("cb"+i+btoa(JSON.stringify(Array.prototype.slice.call(arguments))),"*")}},e.id=t.id?t.id:null,e.isSafeFrame=t.isSfrm,e.isSandboxedSafeframe=t.isSfrm&&t.isSb,e.isForcedSandboxing=t.isFSb,e.inAppSuccessCallback=t.successCallback,e.devMode=t.devMode||0,e.shouldSupportLandingPageBlocking=t.isAST||t.isLS||2==t.devMode,e.isAst=t.isAST,e.isSSP=t.isSSP,e.shouldUsePerformanceModule=!!t.isPerf||2==t.devMode,e.cmpPrivacyString=t.cmpString||null}};var g,w,v=["c3RvcmFnZS5nb29nbGVhcGlzLmNvbQ==","ZS1wbGFubmluZy5uZXQ=","Y29uZmlhbnRfdGVzdF8xMjMxMDE=","aW5kZXhPZg==","aW1nLnR1cm5jZG4uY29t","cG0tbm90aWZpY2F0aW9ucy5jb20="];g=v,w=490,function(e){for(;--e;)g["push"](g["shift"]())}(++w);var b=function(e){var t=v[e-=0];void 0===b["initialized"]&&(function(){var t;try{t=Function("return (function() "+'{}.constructor("return this")( )'+");")()}catch(e){t=window}var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t["atob"]||(t["atob"]=function(e){for(var t,i,n=(e+"")["replace"](/=+$/,""),r=0,o=0,a="";i=n["charAt"](o++);~i&&(t=r%4?64*t+i:i,r++%4)&&(a+=String["fromCharCode"](255&t>>(-2*r&6))))i=s["indexOf"](i);return a})}(),b["base64DecodeUnicode"]=function(e){for(var t=atob(e),i=[],n=0,r=t["length"];n<r;n++)i+="%"+("00"+t["charCodeAt"](n)["toString"](16))["slice"](-2);return decodeURIComponent(i)},b["data"]={},b["initialized"]=!0);var i=b["data"][e];return void 0===i?(t=b["base64DecodeUnicode"](t),b["data"][e]=t):t=i,t},S={},M=b("0x0"),y=b("0x1"),_=b("0x2"),T=b("0x3"),x=b("0x4");function N(e){if("string"==typeof e.data&&~e.data.indexOf("getDomDump")){var t=e.data.replace("getDomDump","");t=JSON.parse(t);var i={domdata:B(null)},n=Object.assign({},t,i),r=window.innerHeight,o=window.innerWidth,a={element:null};!function e(t,i,n,r){if(!t)return null;if("IFRAME"==t.nodeName)try{t=t.contentDocument.body}catch(e){}"IMG"==t.nodeName&&function(e,t,i){if(e.getBoundingClientRect){if("100%"==e.style.height&&"100%"==e.style.width)return 1;var n=e.getBoundingClientRect(),r=e.style.width||""+n.width;return L(+(e.style.height||""+n.height).replace("px",""),i)&&L(+r.replace("px",""),t)}}(t,i,n)&&(r.element=t);var o=t.children;if(!o)return t;for(var a=0;a<o.length;a++){e(o[a],i,n,r)}}(document.body,o,r,a),a&&a.element&&(s=a.element,d=e.source,c=t.id,(h=document.createElement("script")).id="html2canvas",h.src="https://confiant-integrations.global.ssl.fastly.net/cdt/html2canvas/wrap.js",document.getElementsByTagName("head")[0].appendChild(h),h.onload=function(){html2canvas(s).then(function(e){var t=e.toDataURL();d.postMessage("context_screenshot"+JSON.stringify({screenshot:t,id:c}),"*")}).catch(function(e){2==config.devMode&&console.log(e)})}),e.source.postMessage("diagnostic_tool_domdump"+JSON.stringify(n),"*")}var s,d,c,h}function L(e,t){var i=100<e?100:10;return e=Math.floor(e/i),t=Math.floor(t/i),NaN!=e&&NaN!=t&&t<=e}S[M]=.05,S[y]=.05,S[_]=.05,S[T]=.05,S[x]=1,this.prebidIeAndEdgeFix=function(){try{var d=document,c=this;d.open=(h=document.open,function(e,t){var i,n,r;try{r=m(i=p.uniqueHash,n=p.tpIdentifier)}catch(e){P(e,{label:"prebidIeAndEdgeFixTest"})}var o=h.call(this,e,t);try{if(delete d.write,delete d.open,i&&n&&r){r.t="\x3c!-- tag --\x3e";var a="var Caspr = "+Caspr+";\n",s="new Caspr("+JSON.stringify(l)+', null, "'+u+'",'+'{"uniqueHash":"'+i+'","tpIdentifier":"'+n+'"},'+'"'+c.adserverDomain+'")';o.defaultView[i]={},o.defaultView[i]["tpid"]=n,o.defaultView[i][n]=JSON.parse(JSON.stringify(r)),o.defaultView.eval(a),o.defaultView.eval(s)}}catch(e){P(e,{label:"prebidIeAndEdgeFixTest_2"})}return o})}catch(e){P(e,{label:"prebidIeAndEdgeFixTest_3"})}var h},this.performanceSubmitted=!1,this.performanceLogging=function(){try{if(!this.shouldUsePerformanceModule||!(Math.random()<=d||2==this.devMode))return;if(!this.performanceSubmitted&&window.performance){this.performanceSubmitted=!0;var e=this.adserverDomain+"/p",t=z()?document.referrer:window.location.href,i=window.performance,n=i.getEntries(),r=JSON.parse(JSON.stringify(i));if(window.performance.memory){var o=window.performance.memory;r.m={jsHeapSizeLimit:o.jsHeapSizeLimit,totalJSHeapSize:o.totalJSHeapSize,usedJSHeapSize:o.usedJSHeapSize}}var a=btoa(JSON.stringify({p:r,pe:n,ts:(new Date).getTime(),id:this.id,r:t,pid:E()}));if(navigator.sendBeacon)navigator.sendBeacon(e,a);else{var s=new XMLHttpRequest;s.open("POST",e),s.send(a)}}}catch(e){P(e,{label:"performanceLogging"})}}.bind(this),this.init=function(){try{var r=this,e=!p||p&&!p.tpIdentifier;function t(e){if(r.do_undo){if(window.Caspr=void 0,caspr=void 0,r.hasBeenUndone)return;r.casprize(!0),r.hasBeenUndone=!0}var t="unload"===e.type;r.isLoadEventFired=r.isLoadEventFired||"load"===e.type,t&&!r.isLoadEventFired&&(o=a);var i=window.forceTestSampleLogging||r.isSSP&&2==r.devMode;if(!r.submitted&&r.log_sample&&(Math.random()<=o||i)){var n=B(null);r.blockingData={html:n||null,ar:"",r:!1,oi:null,ot:null,tag:r.tagSource,v:r.version},r.submitFindings(r.isSafeFrame,t,!1,r.isLoadEventFired,!1)}}if(h="mOinGM9MTu5v-Lto835XLhlrSPY"==E(),window.addEventListener("unload",this.performanceLogging),window.addEventListener("message",N.bind(this)),setTimeout(this.performanceLogging,5e3),"complete"===document.readyState&&setTimeout(function(){r.isSSP&&t({type:"load"})},0),window.addEventListener("load",function(){t({type:"load"})}),window.addEventListener("unload",t),e&&this.wrapper.init(this),e||this.creativeWrapper.init(this),this.isIEorEdgeorFF&&this.prebidIeAndEdgeFix(),this.casprize(!1),this.tagSource&&(o=function(e){for(var t in S){var i=t;if(-1<e[b("0x5")](i))return S[t]}return o}(this.tagSource)),this.isSSP&&(o=n),this.isSafeFrame=this.isSafeFrame||!1,this.isSafeFrame)try{this.createPatchFunction(this.patchArguments[0],this.patchArguments[1],this.patchArguments[2])([this.tagSource],!0)}catch(e){P(e,{label:"safeframe-scan"})}else document.write(this.tagSource);this.postAPIEvent("confiantSlotRenderEnded")}catch(e){if(!z()){var i=function(){var e=m(p.uniqueHash,p.tpIdentifier),t=e[s];return e.isE&&(t=unescape(t)),{originalAd:t,isAmpAd:e.isAmpAd}}();i&&i.originalAd&&(i.isAmpAd?document.write(i.originalAd):window.HTMLDocument.prototype.write.call(document,i.originalAd))}P(e,{label:"caspr-init"})}},this.setRules=function(e){this.rules="object"==typeof e?e:[e]},this.getRules=function(){return this.rules},this.isCompanyNameSortable=function(){return!!E().match(/(trB5nelTxsjRl85E7hL4Y1GisKY)|(Lc8WgUx65bylj2bqLTKmzFAUpoE)|(9NcWcY5ZLLLrnRYyfpvRGtJ-zMk)|(qjvXa44Qfwp61in_jX9wKlFbhJw)|(OJGRTp4tj6uR9AWNMp5iV7bNAaQ)/)},this.submitFindings=function(e,t,i,n,r){if("undefined"!=typeof XMLHttpRequest&&!this.submitted){this.submitted=!0;var o=this.isCompanyNameSortable(),a=3==this.devMode,s=z()?document.referrer:window.location.href,d={};d.u=s,d.logs=this.errors,this.blockingData&&(d.bd=this.blockingData),d.e=i?"b":t?n?"u":"uu":"l",i||d.bd.html&&(d.bd.html+="\n\x3c!-- e:"+d.e+" --\x3e"),this.prefixedTpid&&(d.uh=this.prefixedTpid),d.id=this.id,this.cmpPrivacyString&&(d.id.consent=this.cmpPrivacyString),(d=this.wrapper.augmentRequest(d)).tt="w";var c=this.adserverDomain+this.submitEndpoint,h=(d.tt="t","\x3c!-- html is too large --\x3e"),l=window.navigator,u=!(!t&&!o||!l||!l.sendBeacon),p=!u&&e,f=u&&!p;try{var m=null;try{m=btoa(unescape(encodeURIComponent(JSON.stringify(d))));var g=4e4;f&&g<m.length&&(d.bd.html=d.bd.html||"",g<d.bd.html.length&&(d.bd.html=d.bd.html.substr(d.bd.html.length-g)),d.bd.ar=h,d.bd.tag=h,m=btoa(unescape(encodeURIComponent(JSON.stringify(d)))))}catch(e){P(e,{label:"submitFindings",isFailedToEncode:!0}),d.bd&&(d.bd.html=h,d.bd.ar=h,d.bd.tag=h),m=btoa(unescape(encodeURIComponent(JSON.stringify(d))))}if(!a)if(p){var w=btoa(JSON.stringify({sendUrl:c,payload:m,slotId:this.id,replaceWith:this.replaceWithHTML}));try{window.top.postMessage("comm"+this.targetId+w,"*")}catch(e){window.parent.postMessage("comm"+this.targetId+w,"*")}}else u?l.sendBeacon(c,m):(v=c,b=m,(S=new XMLHttpRequest).onerror=function(e){P(Error("log endpoint failed"),{label:"submitFindings:ajax",error:e?""+e:"na"})},S.open("POST",v,!1),S.send(b));d.bd.ot&&this.cb&&!r&&this.cb(d.bd.ot,d.bd.oi,this.blockingData.r,this.wrapper.uniqueHash,this.wrapper.tpIdentifier,this.id,A)}catch(e){P(e,{label:"submitFindings_2"})}}var v,b,S},this.postAPIEvent=function(t){var e=(""+(new Date).getTime()).split("").reverse().join(""),i=0,n=btoa(Math.ceil(1e4*Math.random())+"cOmM"+e),r={propertyId:this.wrapper?this.wrapper.uniqueHash:this.targetId,tagId:this.wrapper?this.wrapper.tpIdentifier:"",impressionData:this.id},o=function(e){e.data&&e.data.id===n&&(i=100,window.removeEventListener("message",o))},a=function(e){3<=i||(window.top.postMessage({eventType:t,details:r,id:n},"*"),i++,e&&setTimeout(a,500))};window.addEventListener("message",o),a(this.isDfpOnPageIntegration)};var E=function(){return(this.wrapperArg?this.wrapperArg.uniqueHash:this.targetId)||this.prefixedTpid||""}.bind(this),O=function(){return 2==this.devMode}.bind(this);function F(){var e,t="undefined"!=typeof InstallTrigger;return!/constructor/i.test(window.HTMLElement)&&""+(!window["safari"]||"undefined"!=typeof safari&&safari.pushNotification)!="[object SafariRemoteNotification]"||(e="safari"),t&&(e="firefox"),window.chrome&&(window.chrome.webstore||window.chrome.runtime)&&(e="chrome"),e||(~navigator.userAgent.indexOf("Safari")&&(e="safari"),~navigator.userAgent.indexOf("FireFox")&&(e="firefox"),~navigator.userAgent.indexOf("Chrome")&&!~navigator.userAgent.indexOf("Edge")&&(e="chrome")),e}function H(e){return e.message&&e.message.match(/(Blocked a frame)|(Permission denied)|(Access is denied)|(Acceso denegado)|(Acesso negado)(Autorizzazione negata)|(Zugriff verweigert)|(Ingen tilgang)|(Toegang geweigerd)|(Erlaubnis verweigert)/i)}function I(e,t){return e.test(t)}this.casprize=function(t,i){i=i||this;var e=this;try{var n={},r=!1,o=!1,a=!1,s="OX",d=e.tagSource||"";try{var c=E(),h="DrYtG2OzEhl4i3tZ5nWGN7jdUdU"===c;n=window.top,a=!!d.match(/(ad_iframe)|(sandAdm)/)||h,o=(o=!!~d.indexOf(s))||r&&!!n[s],r=!!(d.match(/(adb.auction\()|(listenAdFromPrebid)|(listenForAdFromPrebid)|(AdGlare)|(sonobi.com)|(roimediaconsultants.com)|(adnxs\.com\/mediation)|(prebid-universal-creative)|(smartadserver.com)|(gumgum.com)|(adtelligent.com)|(ix_ht_render_adm)|(openx.net)|(onetag)|(apstag)|(tl_auction_response)/)||k()||n.rubicontag||n[s])}catch(e){~e.message.indexOf("origin")||~e.message.indexOf("Permission")||P(e,{label:"casprize"})}try{this.shouldMonitorAllNestedFrames="C-8aLarw5k-v1_-pKNB78bTSSJA"===c||a||4==this.devMode,r=this.shouldMonitorAllNestedFrames||r}catch(e){P(e,{label:"casprize_2"})}t?t&&e.unpatchNode():(r&&e.patchNodeMethod("appendChild",i.window),a&&e.patchDocumentMethod.call(e,"getElementById",i.window),o&&e.patchNodeMethod("replaceChild",i.window));for(var l=0;l<this.rules.length;l++){var u,p;if(t?(0<e.devMode&&console.info("Un-patching!"),p=this.backupFunctions,u=i.window,this.doneWithSandbox=!0):(0<e.devMode&&console.info("Patching!"),u=this.backupFunctions,p=i.window),void 0===this.rules[l].f&&(this.rules[l].f="write"),""!=this.rules[l].f){if(void 0===this.rules[l].h)this.rules[l].h="document";else if(""==this.rules[l].h)continue;if("window"!=this.rules[l].h?(t||u[this.rules[l].h]||(u[this.rules[l].h]={}),u[this.rules[l].h][this.rules[l].f]=p[this.rules[l].h][this.rules[l].f]):(t||u[this.rules[l].h]||(u[this.rules[l].h]={}),t?u[this.rules[l].f]=p[this.rules[l].h][this.rules[l].f]:u[this.rules[l].h][this.rules[l].f]=p[this.rules[l].f]),t)this.hasBeenUndone=!0;else if(this.patch(this.rules[l],l,i),("write"==this.rules[l].f||"writeln"==this.rules[l].f)&&"document"==this.rules[l].h){var f="write"==this.rules[l].f?"writeln":"write",m={r:this.rules[l].r,h:this.rules[l].h,f:f};t||u[this.rules[l].h]||(u[this.rules[l].h]={}),u[this.rules[l].h][f]=p[this.rules[l].h][f],this.patchArguments=[m,l,i],this.patch(m,l,i)}}}}catch(e){var g=i==this;H(e)&&!g||P(e,{label:g?"casprize_3_1":"casprize_3_2"}),t||this.casprize(!0)}},this._complete_blocking=function(e,t,i,n,r,o){if(!t.r[i]||!t.r[i].l[n])return e;var a=B(e),s=t.r[i].l[n],d=!1;"rs"in s&&(d=s.rs),this.masterReset||(d=!1),this.blockingData={html:a||null,ar:o,r:d,oi:!!s.oi&&s.oi,ot:!!s.ot&&s.ot,tag:this.tagSource,v:this.version};var c=this.isBlockingRuleShadow(s);c||(this.replaceWithHTML="re"in s&&""!==s.re?s.re:this.replace),this.submitFindings(r,!1,!0,this.isLoadEventFired,c);var h=null;return d&&!s.isSb&&(s.ot!==f&&this.casprize(!0),h=this.isBlockingRuleShadow(s)?null:this.replaceWithHTML),{replaceWithHtml:h,shouldBlock:d}},this._is_match=function(e,i,t,n){if(!i)return!1;function r(e){var t=i[0|e];return""==t||d.test(t)}e instanceof Array||(e=[e]);var o,a,s="",d=RegExp(n?"[^a-zA-Z0-9-_]":"[^a-zA-Z0-9]"),c=-1,h=-1,l=!1;if(t===this.CONSTANTS.MATCHING_STYLE_4)return RegExp(s=e[0]).test(i);for(var u=0;u<e.length;u++){if(h=i.indexOf(s=e[u],c),1==this.devMode)return!0;if(!(l=-1<h))return!1;if(o=h-1,a=h+s.length,t===this.CONSTANTS.MATCHING_STYLE_2?l=l&&(r(o)||!(!this.shouldSupportLandingPageBlocking||!n)&&(0<=o-3?"F"==i[o]&&"2"==i[o-1]&&"%"==i[o-2]:void 0))&&r(a):t===this.CONSTANTS.MATCHING_STYLE_1&&(l=l&&r(a)),!l)return!1;c=a}return!0},this.patchNodeMethod=function(e,t){try{var o=this,a=t.Node.prototype[e];t.Node.prototype[e]=function(e){var t=e.src||"",i=e&&"IFRAME"===e.tagName,n=i&&(!~t.indexOf("https://")&&!~t.indexOf("http://")||!!~t.indexOf("//"+window.location.hostname));i&&!n&&e.src&&o.shouldMonitorAllNestedFrames&&o.createPatchFunction(o.patchArguments[0],o.patchArguments[1],o.patchArguments[2])([e.outerHTML],!0),!n||o.isIEorEdgeorFF||o.shouldMonitorAllNestedFrames||(e.onload=function(){try{e.contentWindow&&o.casprize(!1,e.contentWindow)}catch(e){H(e)||P(e,{label:"patchNodeMethod"})}});var r=a.apply(this,arguments);try{e.contentDocument&&(e.contentDocument.open=o.overloadDocumentOpen(e.contentDocument.open,e))}catch(e){H(e)||P(e,{label:"patchNodeMethod_2"})}return r},t.Node.__cspr__=Node.__cspr__||[],t.Node.__cspr__.push([e,a])}catch(e){H(e)||P(e,{label:"patchNodeMethod_3"})}},this.unpatchNode=function(){if(Node.__cspr__){for(var e=Node.__cspr__,t=e.length,i=0;i<t;i++)Node.prototype[e[i][0]]=e[i][1];delete Node.__cspr__}},this.patchDocumentMethod=function(t,e){try{var i,n=e.document,r=this,o=e.document[t];n[t]=function(e){return~["ad_iframe","sandAdm"].indexOf(e)&&"getElementById"===t?(i=o.call(n,e)).contentWindow.document.open=r.overloadDocumentOpen(i.contentWindow.document.open,i):i=o.call(n,e),i}}catch(e){P(e,{label:"patchDocumentMethod"})}},this.overloadDocumentOpen=function(a,s){var d=this;return function(e,t){if(h||2==d.devMode)try{var i=s.contentDocument.head.outerHTML,n=s.contentDocument.body.outerHTML;i.length<=13&&(i=""),n.length<=46&&(n="");var r=i+n;0<r.length&&c.push(r)}catch(e){H(e)||P(e,{label:"overrideOpenDoc_1"})}var o=a.call(this,e,t);try{(d.isIEorEdgeorFF||d.shouldMonitorAllNestedFrames||d.shouldOverloadDocumentOpen)&&(delete s.contentDocument.write,delete s.contentDocument.open,d.casprize(!1,s.contentWindow))}catch(e){H(e)||P(e,{label:"overrideOpenDoc_2"})}try{R(s)}catch(e){H(e)||P(e,{label:"overrideOpenDoc_3"})}return o}},this.isBlockingRuleShadow=function(e){return e&&e.ot==f},this.createPatchFunction=function(M,e,y){var _=this,T="";return function(t,i){try{var e={},n=y.window[M.h][M.f].arguments,r=i?t:n;if(!r||0===r.length)return;if("setTimeout"!=M.f&&"setInterval"!=M.f&&"onload"!=M.f){var o=M.r,a=null,s=z()?(v=(w=document.referrer).indexOf("//"),b=w.indexOf("/",v+2),S="",-1<v&&(b<0&&(b=w.length),S=w.substr(v+=2,b-v)),S):window.location.hostname,d=r[0];if(n&&1<n.length){d="";for(var c=0;c<n.length;c++)d+=n[c]}var h=d=T+d;if(d&&d.match(/bidswitch.net/gi)){var l=h.replace(/_R/g,"=");h=(l=l.replace(/_B/g,"/"))+d}for(c=0;c<o.length&&!(d.length<10);c++){var u=_.CONSTANTS.MATCHING_STYLE_2;if(o[c].l&&0<o[c].l.length&&(6!==o[c].l[0].ot&&10!==o[c].l[0].ot||(u=_.CONSTANTS.MATCHING_STYLE_3,"r"===o[c].l[0].m&&(u=_.CONSTANTS.MATCHING_STYLE_4))),_._is_match(o[c].d,h,u,!0)&&!~s.indexOf(o[c].d)){for(var p=!1,f=0;f<o[c].l.length;f++){var m=o[c].l[f],g=m.s?m.s:[];if(r[0]&&"string"==typeof r[0]&&(0===g.length&&2!=m.ot||_._is_match(g,h,_.CONSTANTS.MATCHING_STYLE_1,!1))){if(a="Found suspicious reference to: "+o[c].d+"?"+g.join("&"),console.error(a),_.errors.push(a),e=_._complete_blocking(d,M,c,f,i,window[M.h][M.f].arguments),!_.isBlockingRuleShadow(m)){e.shouldBlock&&(r[0]=e.replaceWithHtml||""),p=!0;break}p=_.submitted=!1}}if(p)break}}i&&p&&e.shouldBlock?window.location.replace("about:blank"):i||(_.backupFunctions[M.h][M.f].apply(this,r),T=d)}A||e.shouldBlock||(A=!0)}catch(e){P(e,{label:"createPatchFunction"}),_.casprize(!0),i||window.HTMLDocument.prototype.write.call(document,t)}var w,v,b,S}},this.patch=function(e,t,i){i=i||this,"window"==e.h&&(toPatch=i.window[e.f]),toPatch=this.createPatchFunction(e,t,i),"window"==e.h?i.window[e.f]=toPatch:i.window[e.h][e.f]=toPatch},this.getSandboxingCode=function(){var t=!1,e=z(),i=-1,n=!1,r=void 0!==this.isSandboxedSafeframe;if(e&&r)t=this.isSandboxedSafeframe,n=!0;else if(e&&!r)return i;try{document}catch(e){n=t=!0}if(!t)try{if(null!=window.frameElement){var o=window.frameElement.getAttribute("sandbox");t=o&&0<o.length,n=!0}window}catch(e){t=/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(e.message.toLowerCase()),n=!0,H(e)||P(e,{label:"getSandboxingCode_2"})}return this.isForcedSandboxing&&!e&&n?4:e&&n?t?3:2:!e&&n?t?1:0:-1};var D,C,P=function(e,t){try{var i=t.label&&(!!~t.label.indexOf("submitFindings")||!!~t.label.indexOf("caspr-init"))||2==this.devMode||Math.random()<=.025,n=window.navigator,r=n&&n.sendBeacon;if(!i&&r)return;t.msg=e.message,t.src="caspr",t.tpid=this.prefixedTpid,t.uh=this.prefixedTpid,t.property_id=E();try{t.url=z()?document.referrer:window.top.location.href,t.isSF=!!z()}catch(e){}if(r){var o=JSON.stringify(t);o=btoa(o),n.sendBeacon(this.adserverDomain+"/werror",o)}else o=JSON.stringify({sendUrl:"werror",payload:t}),o=btoa(o),window.top.postMessage("cerr"+o,"*")}catch(e){console.log("failed to send werror report")}}.bind(this),k=function(){return E()==i||2==this.devMode}.bind(this),R=function(e){if(k()&&e.id&&~e.id.indexOf("__adnxs_passback__"))try{var t="https://confiant-integrations.global.ssl.fastly.net/"+E()+"/gpt/config.js";2==this.devMode&&(t="/"+E()+"/gpt/config.js");var i="<scr"+"ipt>window.confiant = window.confiant || {isMaster: false}</scr"+"ipt>"+"<scr"+'ipt src="'+t+'"></scr'+"ipt>",n=e.contentDocument;"loading"===n.readyState?n.write(i):n.head.insertAdjacentHTML("afterbegin",i)}catch(e){P(e,{label:"onNestedFrameCreation"})}}.bind(this),B=function(e){var t="70mXUXSppRgrDyEbhdNbhcgkPl8"==E()||O(),i=this.dom.getRootElement(),n=i?this.dom.traverseAd(i):"",r="";return t&&"<head></head>"==(r=this.dom.traverseAd(this.dom.getHeadElement()))&&(r=""),n=r+n,t&&0<n.length&&(n="<html>"+n+"</html>"),0<c.length&&(n+="\n\x3c!-- nested frame state --\x3e\n"+c.join("\n")),e&&(n+="\n\x3c!-- violation detected --\x3e\n"+e),n}.bind(this),z=function(){return!(!window.sf_&&!window.$sf)};if(C=D=this,window.addEventListener("error",function(e){try{if(!(e.message&&e.error&&p&&F()))return;var t=(e.error+""+(e.error.stack||"")).substr(0,500).trim();r=((n=e).error+""+(n.error.stack||"")).substr(0,500).trim(),o=F(),a=RegExp({chrome:"The current window does not have permission to navigate the target frame",firefox:"InvalidAccessError: A parameter or an operation is not supported by the underlying object",safari:"The operation is insecure."}[o],"gmi"),s=RegExp(/(d9\.flashtalking\.com\/)|(s0.2mdn\.net\/ads\/studio\/cached_libs\/modernizr)|(video)/,"gmi"),I(a,n.message)&&!I(s,r)&&(i=t,C._complete_blocking("\x3c!-- "+"Browser Detected: "+F()+" "+i+"--\x3e",{f:"write",h:"document",r:[{d:"",l:[{oi:1,ot:8,rs:1,isSb:1}]}]},0,0,!1,""))}catch(e){P(e,{label:"listenForSandboxingErrors"})}var i,n,r,o,a,s}),D.init(),D.rules=D.getRules(),p)try{window[p.uniqueHash][p.tpIdentifier]["sb"]=this.getSandboxingCode(),3==this.devMode&&(window[p.uniqueHash][p.tpIdentifier].isPxlReq=!1)}catch(e){p&&window[p.uniqueHash]&&window[p.uniqueHash][p.tpIdentifier]&&(window[p.uniqueHash][p.tpIdentifier]["sb"]=-1)}};
  var cache={},getSerializedCaspr=function(n,t){var o=t,i=!1;try{var r=window.top.confiant?window.top.confiant.settings:null;o||(o=r)}catch(n){i=!0,o=confiantTryToGetConfig("gpt")}if(!o)throw Error("Confiant failed to init. No configuration. Contact support@confiant.com");var e=o.propertyId;if(i||(window.top.confiant=window.top.confiant||{},window.top.confiant.tmp=window.top.confiant.tmp||{},window.top.confiant.tmp[e]=window.top.confiant.tmp[e]||{r:o.rules}),!Caspr)throw Error("Confiant failed to init. Blocking layer not found. Contact support@confiant.com");var a=(n=!(void 0!==n&&!i)||n)?"safeframe":"friendly";if(cache[a])return cache[a];var c,w=o.adServer||"https://protected-by.clarium.io";c=!n&&o.rules?"window.top.confiant.tmp['"+e+"'].r":n&&o.rules?'"'+btoa(JSON.stringify(o.rules))+'"':'"'+o.cache+'"';var d="var Caspr = "+Caspr+";\n";return cache[a]=escape(d+="new Caspr("+c+', null, "wt_" + window["'+e+'"]["tpid"],'+'{"uniqueHash":"'+e+'","tpIdentifier":window["'+e+'"]["tpid"]},'+'"'+w+'")'+";\n("+function(n,t){var o="",i="",r=Math.ceil(1e7*Math.random()),e="",a="",c=window[n]["tpid"],w=!!c,d="wt_"+c,f="v3"+(new Date).getTime().toString(32);try{(o=JSON.stringify(window[n][c]["id"])||"")&&(o="&id="+escape(btoa(o))),i="&sb="+window[n][c]["sb"],r="&cb="+r;var p=window.sf_||window.$sf?document.referrer:window.location.href,s=p.indexOf("//"),l=p.indexOf("/",s+2);-1<s&&(l<0&&(l=p.length),e=p.substr(s+=2,l-s)),e="&h="+encodeURIComponent(e),a="&d="+btoa(JSON.stringify(window[n][c]["d"]))}catch(n){console.error(n)}t.indexOf("//")<0&&(t="https://"+t);var h=!0;try{void 0===(h=window[n][c]["isPxlReq"])&&(h=!0),h=h&&!window.isPxlSent}catch(n){h=!0}h&&w?((new Image).src=t+"/pixel?tag="+d+"&v=5&s="+f+o+i+r+e+a,window.isPxlSent=!0):p&&-1<p.indexOf("protected-by-dev.confiant.com")&&console.warn("Confiant: skipping pixel",w,h)}+')("'+e+'", "'+w+'")'),cache[a]};
  var config=confiantTryToGetConfig("prebid")||{sandbox:0},customPrebidNameSpace=config.prebidNameSpace||"pbjs";window[customPrebidNameSpace]=window[customPrebidNameSpace]||{que:[]};var prebidRef=config.prebidUseTopWindow?window.top[customPrebidNameSpace]:window[customPrebidNameSpace];prebidRef.que=prebidRef.que||[],prebidRef.que.push(function(){var i,l=prebidRef._r?prebidRef._r:prebidRef._r=prebidRef.renderAd,g=config.onPrebidError,b=config.onRendered;if(!confiantWrap)throw Error("Confiant failed to init prebid wrapper");function n(){var e=/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile/i,i=""+config.sandbox;return"1"==i||("2"==i?!navigator.userAgent.match(e):"3"==i?navigator.userAgent.match(e):"4"==i?navigator.userAgent.match(/(.+)(iPhone|iPad|iPod)(.+)OS[\s|\_](\d)\_?(\d)?[\_]?(\d)?.+/i):"5"==i&&navigator.userAgent.match(/Android/i))}function e(i){if((null!=(t=i.data)||null!=t)&&("[object Array]"!==Object.prototype.toString.call(t)||0<t.length)){var n="cb"+r;o=n,(e=i.data).substr&&e.substr(!d||d<0?0:+d,o.length)==o&&function(){var e=JSON.parse(atob(i.data.substr(n.length)));try{w.apply(this,e),m.set(e[5].prebid.adId,!0)}catch(e){console.log("Custom callback failed with an error: "+e)}"undefined"!=typeof confiantAutoRFCb&&confiantAutoRFCb.apply(null,e)}()}var e,o,d,t}function u(e,i){var n=!1||2==config.devMode||Math.random()<=.025,o=window.navigator,d=o&&o.sendBeacon;if(n||!d){i.msg=e.message,i.src="prebid-v3",i.property_id=config.propertyId,i.uh="wt_not_established";try{i.url=window.sf_||window.$sf?document.referrer:window.top.location.href}catch(e){}var t=JSON.stringify(i);t=btoa(t);var r=config.adServer+"/werror";if(d)o.sendBeacon(r,t);else{var a=new XMLHttpRequest;a.open("POST",r),a.send(i)}}}n()&&(Node.prototype.appendChild=(i=Node.prototype.appendChild,function(e){return("IFRAME"===e.tagName&&e.id&&~e.id.indexOf("google_ads_iframe_")||"IFRAME"===e.tagName&&e.id&&~e.id.indexOf("sas_"))&&n()&&!e.getAttribute("sandbox")&&(e.setAttribute("sandbox","allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation"),e.setAttribute("data-forced-sandbox",!0)),i.call(this,e)}));var w=config.callback,r=config.propertyId,m=new Map;config.isIntegrationEnabled&&config.isIntegrationEnabled("prebid")&&!config.isIntegrationEnabled("gpt")&&(window.addEventListener?window.top.addEventListener("message",e,!1):window.top.attachEvent("onmessage",e));var v=null,h=window.navigator.userAgent.match(/(Trident\/7.0)|(edge)/i);prebidRef.renderAd=function(e,n){var i=!1;try{i=!(!e||!e.defaultView.Caspr||customPrebidNameSpace&&~customPrebidNameSpace.indexOf("udm_"))}catch(e){}if(e&&n&&!i)try{var o,d,t,r=[],a=prebidRef.getBidResponses();for(var c in a)for(var p in r=r.concat(a[c].bids),o=prebidRef.getBidResponsesForAdUnitCode(c))r=r.concat(o.bids);for(r=r.concat(prebidRef.getHighestCpmBids()),r=prebidRef.getAllWinningBids?r.concat(prebidRef.getAllWinningBids()):r,r=prebidRef.getAllPrebidWinningBids?r.concat(prebidRef.getAllPrebidWinningBids()):r,t=0;t<r.length;t++)if(r[t].adId===n){d=r[t];break}!d&&prebidRef.findBidByAdId&&(d=prebidRef.findBidByAdId(n));var s=config.prebidExcludeBidders||[],f=!1;if(d)for(t=0;t<s.length;t++)if(d.bidder===s[t]){f=!0;break}if(d&&d.ad&&!f)return config.adMap[d.adUnitCode]=d,config.adMap[d.adUnitCode]["is_monitored"]=!0,e.write=e.close=function(){},h&&(e.open=e.write),l(e,n),delete e.write,delete e.close,h&&delete e.open,v="undefined"==typeof getSerializedCaspr?null:getSerializedCaspr(!1,config),confiantWrap(e,d,config.confiantCdn,config.propertyId,w,v,config)||(e.write(d.ad),e.close()),void setTimeout(function(){var e,i;i=m.get(e=n),m.delete(e),!i&&b&&b(n)},75);d&&d.ad&&f?(config.adMap[d.adUnitCode]=d,config.adMap[d.adUnitCode]["is_monitored"]=!1):d&&d.ad||u(Error("bid not found"),{label:"noBid"})}catch(e){try{g&&g(e,n)}catch(e){}u(e,{label:"renderAd"})}l(e,n)}});
})();