Files
recipe-importer/mindmegette-alt-example/mindmegette_alt_files/ado.js.download
T
2026-02-24 20:24:09 +01:00

1 line
93 KiB
Plaintext

!function(){"use strict";var t="4.8.0",n=window,i=document,r=window.location.search.indexOf("adodebugmode=true")>=0,e={UNPREFIXED_ID_LENGTH:46,PREFIX:"ado-",PREFIX_LEN:4,PREFIXED_ID_LEN:50},o={COOKIE:{NAME:"ao-fpgad",PATH:"/",MAX_AGE:33696e3},MIN_CHECK_INTERVAL:288e5,POST_MESSAGE_TIMEOUT:3e4,IFRAME_PATH:"files/html/test-cookie.html",TEST_COMMAND:"check-3rd-party-support",TEST_COOKIE_NAME:"ao_cookie_support_check"},s={NAME:"AO-OPT-OUT",VALUE:"1",MAX_AGE:15552e4};function u(t,i){n[t]=i}var a="aolpdata",c=document.currentScript,f=["ado.icorp.ro","ro.adocean.pl","protvmd.adocean.pl"];function h(){return new URL(c.src).hostname}var d,l=function(t){return void 0===t},v=function(t){return"function"==typeof t},p=function(t){return t&&"object"==typeof t},m=function(t){return"string"==typeof t},w={error:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return console.error.apply(console,["[xado]:"].concat(t)),this},warn:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return console.warn.apply(console,["[xado]:"].concat(t)),this},debug:function(t){for(var n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return"number"!=typeof t&&(n.unshift(t),t=6),this.t(t)&&console.debug.apply(console,["[xado]:"].concat(n)),this},preserve:function(t,n,i){this.t(t)&&((window["_xadoDEBUG"]||(window["_xadoDEBUG"]={}))[n]=i);return this},t:function(t){if("undefined"==typeof URLSearchParams)return!1;var n=new URLSearchParams(document.location.search.substring(1)),i=parseInt(n.get("adodebug"),10);return!isNaN(i)&&i>=t}},g={isUrl:function(t){if("string"!=typeof t)return!1;t.match(/^\/\//)?t="http:"+t:t.match(/^https?:\/\//)||(t="http://"+t);try{return new URL(t),!0}catch(t){return!1}},isObject:p,isString:m,isFunction:v,isUndefined:l,parseBooleanObject:function(t){if(l(t)||null===t)return null;var n=t;return"string"==typeof t&&(n=parseInt(t,10),isNaN(n)&&(n="true"===(t=t.toLowerCase()))),!!n},log:w,newURL:function(t,n,i){return void 0===i&&(i=""),t+"//"+n+("/"!==n.slice(-1)&&i?"/":"")+i},newPromise:function(){var t,n;return{promise:new Promise((function(i,r){t=i,n=r})),resolve:t,reject:n}},filterDuplicates:function(t){for(var n={},i=[],r=0,e=t;r<e.length;r+=1){var o=e[r];n[o]||(i.push(o),n[o]=!0)}return i},sleep:function(t,n){return void 0===n&&(n=null),new Promise((function(i){setTimeout((function(){return i(n)}),t)}))}},y={$toString:Object.prototype.toString,$hasOwnProperty:Object.prototype.hasOwnProperty,isString:function(t){return"[object String]"===y.$toString.call(t)},isNumber:function(t){return"[object Number]"===y.$toString.call(t)},isFunction:function(t){return"[object Function]"===y.$toString.call(t)},isArray:Array.isArray||function(t){return"[object Array]"===y.$toString.call(t)},isNaN:function(t){return y.isNumber(t)&&t!==+t},isObject:function(t){var n=typeof t;return"function"===n||"object"===n&&!!t},isUndefined:function(t){return void 0===t},i:function(t,n){for(var i=0;i<t.length;i++)if(t[i]===n)return i;return-1},changeEventListener:function(t,i,r,e){if(y.isArray(r))for(var o=0;o<r.length;o++)y.changeEventListener(t,i,r[o],e);else n.addEventListener?i[t?"addEventListener":"removeEventListener"](r,e,!1):n.attachEvent&&i[t?"attachEvent":"detachEvent"]("on"+r,e)},o:function(t,n,i){y.changeEventListener(!0,t,n,i)},u:function(t,n,i){y.changeEventListener(!1,t,n,i)},isMSIE:(d=null,function(){return null===d&&(d=/\bMSIE\b/i.test(navigator.userAgent)),d}),escapeScriptString:function(t){return y.escapeScriptCode(t.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\n"))},escapeScriptCode:function(t){return t.replace(/<\/script/g,"<\\/script")},getBody:function(t){var n=t.getElementsByTagName("body");return n.length?n[0]:null},checkAligment:function(t,n){return n.getComputedStyle?n.getComputedStyle(t,null).textAlign:t.currentStyle.textAlign},getTimestamp:function(){return(new Date).getTime()},consoleError:function(t,n){if(console&&console.error){var i="";y.isUndefined(n)||(i="Error while processing javascript: \n"+n+"\n\n"),y.isString(t)?i+=t:(i+=t.message,t.stack&&(i+="\n"+t.stack)),console.error(i)}},pushOnJSExecStack:function(t){setTimeout(t,1)},doDOMParseFromHtmlString:function(t){return t=t||"<body></body>",(new DOMParser)["parseFromString"](t,"text/html")},isDocumentFragmentEmpty:function(t){return!t["firstChild"]&&""===t["textContent"]},buildSafeHtmlId:function(t){return t.replace(/[^a-zA-Z0-9_-]/,"_")},narrowClone:function(t){var n={};if(t)for(var i in t)y.$hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n},narrowExtend:function(t,n){for(var i in n)y.$hasOwnProperty.call(n,i)&&(t[i]=n[i])},any:function(t,n){for(var i in t)if(y.$hasOwnProperty.call(t,i)){var r=n(i,t[i]);if(r)return r}return!1},empty:function(t){return!!t&&!y.any(t,(function(){return!0}))}},b=function(){this.masters={}};b.prototype.add=function(t,n){y.isUndefined(this.masters[t])&&(this.masters[t]={}),this.masters[t][n]=1},b.prototype.l=function(t){for(var n in this.masters)this.masters.hasOwnProperty(n)&&t(n,this.masters[n])},b.prototype.getMasterSlaves=function(t){return this.masters[t]?y.narrowClone(this.masters[t]):{}},b.prototype.getMasterIds=function(t){var n=[];switch(this.l((function(i,r){r.hasOwnProperty(t)&&n.push(i)})),n.length){case 0:return;case 1:return n[0];default:return n}},b.prototype.hasSlaves=function(t){return!y.empty(this.masters[t])},b.prototype.isSlave=function(t){var n;return this.l((function(i,r){n|=r[t]})),n};var _=function(){this.slaveValues={}};_.prototype.setValue=function(t,n){return!(!y.isString(n)&&!y.isNumber(n))&&(this.slaveValues[t]=""+n,!0)},_.prototype.getValue=function(t){return this.slaveValues[t]},_.prototype.getMasterValue=function(){var t="";for(var n in this.slaveValues)this.slaveValues.hasOwnProperty(n)&&(t+=(t?",":"")+n+":"+this.slaveValues[n]);return t},_.prototype.merge=function(t){y.narrowExtend(this.slaveValues,t.slaveValues)};var I=0,A={lptype:1,nc:1,gdpr_consent:1,gdpre:1,gdpr:1},E=function(){this.vars={},this.varPriorities={}};E.prototype.setVar=function(t,n){return I++,!!y.isUndefined(A[t])&&(y.isString(n)||y.isNumber(n)?(this.vars[t]=""+n,this.varPriorities[t]=I,!0):n instanceof _&&(y.$hasOwnProperty.call(this.vars,t)&&this.vars[t]instanceof _?this.vars[t].merge(n):this.vars[t]=n,!0))},E.prototype.getVar=function(t){return this.vars[t]},E.prototype.setVarsFromConfig=function(t){I++;var n=t["vars"];if(y.isObject(n)){if(n)for(var i in n)n.hasOwnProperty(i)&&y.isUndefined(A[i])&&(y.isString(n[i])||y.isNumber(n[i]))&&(this.vars[i]=n[i],this.varPriorities[i]=I)}else if(y.isString(n))for(var r=n.replace(/[&/]+/g,"/").replace(/^\//,"").replace(/\/$/,"").split("/"),e=0;e<r.length;e++){var o=r[e].split("=");y.isUndefined(A[o[0]])&&(this.vars[o[0]]=o[1]?o[1]:"",this.varPriorities[o[0]]=I)}},E.prototype.getUrlVars=function(){var t="";for(var n in this.vars)if(this.vars.hasOwnProperty(n)){var i=this.vars[n];i instanceof _&&(i=i.getMasterValue()),t+="/"+n+"="+i}return t},E.prototype.merge=function(t){for(var n in t.vars)y.$hasOwnProperty.call(t.vars,n)&&(y.$hasOwnProperty.call(this.vars,n)&&this.varPriorities[n]<t.varPriorities[n]||!y.$hasOwnProperty.call(this.vars,n))&&(this.vars[n]=t.vars[n])};var S=function(t){this.v=t};S.prototype.getWin=function(){return this.v},S.prototype.getAdo=function(){return this.getWin().parent["ado"]},S.prototype.beginCreative=function(){},S.prototype.endExternal=function(){},S.prototype["_configurePreview"]=function(t){this.getAdo()["_configurePreview"](t)},S.prototype.closeLivePreview=function(){this.getAdo()["closeLivePreview"]()},S.prototype["_setFPGad"]=function(){for(var t,n=[],i=arguments.length;i--;)n[i]=arguments[i];(t=this.getAdo())["_setFPGad"].apply(t,n)};var O="_second_phase",C="received",D="completed",F="empty",x="hasAd",R="remove",M="begin",k="stop",T="register_onready",P="adserver_emissions",N="adserver_emissions2",L="readystatechange",U="load",j="DOMSubtreeModified",H="DOMContentLoaded",$=function(t){this.v=t,this.p=null,this.m=null,this.g=null,this.features={stringResponse:!0,passback:!0}};$.prototype["_registerPassback"]=function(t,n,i,r){this.p=r,this.m=i,this.g=n},$.prototype.executePassback=function(){this.v.parent["AOFIF"]["outside"]["_executePassbackFromInside"](this.v,this.g)},$.prototype["_runPassbackCode"]=function(){this.p.call(this.v)},$.prototype.getPassbackCustomData=function(){return this.m},$.prototype.onReady=function(t){this.v.parent["AOFIF"]["outside"]["_registerOnReady"](this.v,t)},$.prototype.stopSlave=function(t,n){this.v.parent["ado"]["stopSlave"](t,n)},$.prototype.beginCreative=function(t){this.v.parent["AOFIF"]["outside"]["_triggerEvent"](this.v,M,{value:{adserverEmissions:[this.v[P],this.v[N]],placementId:t["id"]}})},$.prototype.endExternal=function(){},$.prototype.sendHits=function(t){this.v.parent.ado.sendHits(t)};var G=function(t){this.v=t};G.prototype.getDoc=function(){return this.v.document},G.prototype.getWin=function(){return this.v},G.prototype["_getMaster"]=function(t){var n=this.getDoc().createElement("script");n.src=t;var i=y.isMSIE()?L:U,r=this,e=!1,o=function(){if(w.debug(3,"communicator onMasterLoad",n.readyState),!(e||n.readyState&&!/^loaded|complete$/.test(n.readyState))){y.u(n,i,o),e=!0;var t=r.getWin();t.parent["AOFIF"]["outside"]["_addMasterResponse"](t,t["AOCodes"])}};y.o(n,i,o),y.getBody(this.getDoc()).appendChild(n)};var B=function(t){this.observe=function(n){var i=n.document,r=y.getTimestamp(),e=[j,L],o=this,s=function(){o._?y.u(i,e,s):(t(n),o.useTimeoutFallback&&y.getTimestamp()-r<5e3&&setTimeout(s,100))};y.isUndefined(n.MutationObserver)?y.isUndefined(n.MutationEvent)?(this.useTimeoutFallback=!0,s()):y.o(i,e,s):(this.I=new n.MutationObserver(s)).observe(i,{childList:!0,subtree:!0,characterData:!0,attributes:!0})},this.disconnect=function(){this.I&&this.I.disconnect(),this._=!0}},z=function(t){var n;try{n=function(t){var n=y.getBody(t);if(n){var i={};if(i.w=Math.max(n.scrollWidth,n.offsetWidth),w.debug(3,"WIDTH",i.w,n.scrollWidth,t.scrollWidth,n.offsetWidth,t.offsetWidth,t.clientWidth),i.h=n.offsetHeight,w.debug(3,"HEIGHT",i.h,n.scrollHeight,t.scrollHeight,n.offsetHeight,t.offsetHeight,t.clientHeight),!y.isNaN(i.w)&&!y.isNaN(i.h))return i}return null}(t.document)}catch(t){return}w.debug(3,"updateDimensions",n),n&&function(t,n,i){var r=t.frameElement;r.width=n,r.height=i}(t,n.w,n.h)},J=function(t,n,i){var r=t.getWin();r.parent["AOFIF"]["outside"]["_triggerEvent"](r,n,i)},V=function(t,n){this.v=t,this.A=n,this.I=null};V.prototype.getWin=function(){return this.v},V.prototype["_execAd"]=function(t){if(!this.v["AOFIF"]["_isClosed"]){J(this,"prepared",{value:!0});var n=this.v.document;t=y.escapeScriptCode(t),n.open("text/html","replace"),n.write('<!DOCTYPE html>\n<html>\n <body style="margin:0; border:0; padding:0; background-color:transparent; text-align: {$ALIGN};">\n <script>\n AOFIF = window.frameElement.AOFIF;\n inDapIF = inAOFIF = inFIF = true;\n AOFIF.inside._watchDimensions(window);\n ado = new parent.AOFIF.AdoInside(window);\n xado = parent.AOFIF.createXADOPublicApiProxy(window);\n if (!AOFIF._isClosed) {\n {$CODE}\n }\n <\/script>\n <script>\n if (!AOFIF._isClosed) { \n AOFIF.inside._setRendered();\n }\n <\/script>\n </body>\n</html>'.replace("{$ALIGN}",this.A).replace("{$CODE}",t));setTimeout((function(){try{n.close()}catch(t){}}),n.attachEvent?4e3:0),function(t,n){J(t,"processed",{value:n})}(this,!0)}},V.prototype["_watchDimensions"]=function(t){(this.I=new B(z)).observe(t)},V.prototype["_stopWatchingDimensions"]=function(){this.I.disconnect()},V.prototype["_setRendered"]=function(){J(this,"rendered",{value:!0})};var K,Q,X,q={S:new RegExp(O+"$"),O:function(t){return t.match(q.S)},C:function(t){t.width=t.height=0,t.style.display="none"},D:function(t){q.C(t),y.pushOnJSExecStack((function(){t.parentNode&&t.parentNode.removeChild(t)}))}},W=(window,document,Q=null,(X=function(t){this.resolveListeners=[],this.rejectListeners=[],this.single=t})[K="prototype"].when=function(t){for(var n=this,i=t.length,r=i,e=new Array(i),o=function(){r||n.isRejected()||n.resolve.call(n,e)},s=function(t){return function(n){r--,e[t]=n,o()}},u=function(t){n.reject.call(n,t)},a=0;a<i;a++)t[a].then(s(a)).fail(u);return o(),n},X[K].then=function(t){return this.isResolved()?t.apply(Q,this.result):this.resolveListeners.push(t),this},X[K].fail=function(t){return this.isRejected()?t.apply(Q,this.rejected):this.rejectListeners.push(t),this},X[K].always=function(t){return this.isResolved()?t.apply(Q,this.result):this.isRejected()?t.apply(Q,this.rejected):(this.resolveListeners.push(t),this.rejectListeners.push(t)),this},X[K].fireCallbacks=function(t,n){for(var i=n.length,r=0;r<i;r++)n[r].apply(Q,t)},X[K].resolve=function(){if(!this.isFrozen()){var t=this.result=arguments;this.fireCallbacks(t,this.resolveListeners)}},X[K].reject=function(){if(!this.isFrozen()){var t=this.rejected=arguments;this.fireCallbacks(t,this.rejectListeners)}},X[K].isResolved=function(){return!y.isUndefined(this.result)},X[K].isRejected=function(){return!y.isUndefined(this.rejected)},X[K].isFrozen=function(){return this.single&&(this.isResolved()||this.isRejected())},X[K].getResult=function(){return this.result},X),Y=!0,Z=function(){};Z.prototype={sequenceMasterQueue:[],lateRegisteredSlaves:[],addMasterToQueue:function(t){w.debug(5,"added master: "+t);var n={masterInastanceId:t,rendered:new W(Y),loaded:new W(Y),sequenceSlaveQueue:[]};this.sequenceMasterQueue.push(n);var i=this.sequenceMasterQueue.length-1;return{master:n,index:i,isFirst:0===i}},addSlaveToQueue:function(t,n){w.debug(5,"added slave "+n+" (master: "+t+")");var i=this.getQueuedMasterData(t),r={slaveInastanceId:n,rendered:new W(Y)};return i||(i=this.addMasterToQueue(t)),i.master.loaded.isResolved()?this.lateRegisteredSlaves.push(r):i.master.sequenceSlaveQueue.push(r),r},getQueuedMasterData:function(t){for(var n=0;n<this.sequenceMasterQueue.length;n++){var i=this.sequenceMasterQueue[n];if(i.masterInastanceId===t)return{master:i,index:n,isFirst:0===n}}},getQueuedSlaveData:function(t,n){for(var i=t.master.sequenceSlaveQueue,r=0;r<i.length;r++)if(i[r].slaveInastanceId===n)return{slave:i[r],index:r,isFirst:0===r,isLast:function(){return r===i.length-1}}},getLateSlaveByInastanceId:function(t){for(var n=0;n<this.lateRegisteredSlaves.length;n++)if(this.lateRegisteredSlaves[n].slaveInastanceId===t)return this.lateRegisteredSlaves[n]},isLateSlaveRunning:function(){var t=this.lateRegisteredSlaves[0];return!(!t||!t.isRunning)},getNextMasterToRun:function(){for(var t=0;t<this.sequenceMasterQueue.length;t++){var n=this.sequenceMasterQueue[t];if(n.loaded.isResolved()&&!n.rendered.isResolved())return n}},runNextLateSlave:function(){var t=this,n=t.lateRegisteredSlaves[0];n&&(w.debug(5,"late slave "+n.slaveInastanceId+" is running"),n.isRunning=!0,n.rendered.then((function(){t.lateRegisteredSlaves.shift();var n=t.getNextMasterToRun();n?n.callback():t.runNextLateSlave()})),n.callback())},handleSlaveCallback:function(t,n,i){var r=this.getLateSlaveByInastanceId(n);if(r)r.callback=i;else{var e=this.getQueuedMasterData(t),o=this.getQueuedSlaveData(e,n);if(o.isFirst)w.debug(5,"first slave "+n+" for master "+t+" is running"),i();else{var s=e.master.sequenceSlaveQueue[o.index-1];s.rendered.then((function(){w.debug(5,"slave "+n+" for master "+t+" is running; waited for "+s.slaveInastanceId),i()}))}o.isLast()&&o.slave.rendered.then((function(){w.debug(5,"master "+e.master.masterInastanceId+" marked as rendered"),e.master.rendered.resolve()}))}},handleMasterResponse:function(t,n){var i=this,r=i.getQueuedMasterData(t);if(r.master.loaded.resolve(),w.debug(5,"master "+t+" loaded"),r.master.rendered.then((function(){var t=i.sequenceMasterQueue[r.index+1];(!t||t&&!t.loaded.isResolved())&&(i.isLateSlaveRunning()||i.runNextLateSlave())})),i.isLateSlaveRunning())r.callback=n;else if(r.isFirst)w.debug(5,"first master "+t+" is running"),n();else{var e=i.sequenceMasterQueue[r.index-1];e.rendered.then((function(){w.debug(5,"master "+t+" is running; waited for "+e.masterInastanceId),n()}))}},markMasterAsRendered:function(t){w.debug(5,"master "+t+" marked as rendered"),this.getQueuedMasterData(t).master.rendered.resolve()},markSlaveAsRendered:function(t,n){if(w.debug(5,"slave "+n+" marked as rendered"),this.isLateSlaveRunning())this.lateRegisteredSlaves[0].rendered.resolve();else{var i=this.getQueuedMasterData(t);this.getQueuedSlaveData(i,n).slave.rendered.resolve()}},removeSlave:function(t,n){var i=this.getLateSlaveByInastanceId(n);if(i)i.rendered.resolve();else{var r=this.getQueuedMasterData(t),e=this.getQueuedSlaveData(r,n);e.slave.rendered.resolve(),r.master.sequenceSlaveQueue.splice(e.index,1)}},removeMaster:function(t){for(var n=this.getQueuedMasterData(t),i=n.master.sequenceSlaveQueue,r=0;r<i.length;r++)this.removeSlave(t,i[r].slaveInastanceId);this.sequenceMasterQueue.splice(n.index,1)}};var tt,nt,it,rt,et={},ot={},st={},ut={},at={},ct={},ft={},ht=new Z,dt=function(t){return et[t]},lt={},vt=function(t){for(var n in lt)if(lt.hasOwnProperty(n)&&lt[n]&&lt[n].iframe&&lt[n].iframe.contentWindow===t.frameElement.contentWindow)return lt[n];return!1},pt=function(){var t=i.createElement("iframe");return(t.frameElement||t).style.cssText="border:0;overflow:hidden;display:block;position:relative;",t.src="javascript:false",t.scrolling="no",t["seamless"]="seamless",t.frameBorder="0",t["allowtransparency"]="true",t},mt=[],wt=(tt=!1,function(t,n,r){return!tt&&y.getBody(i)&&(tt=!0),tt?(gt(),0):(mt.unshift((function(){n.apply(t,r)})),yt(),1)}),gt=(nt=!1,function(){var t;if(!nt){for(nt=!0;t=mt.pop();)w.debug(5,"runSyncQueue running...",mt.length+1),t();nt=!1}}),yt=(it=!1,rt=[L,U,H],function(){if(!it){var t=function(){y.getBody(i)&&(y.u(i,rt,t),gt())};y.o(i,rt,t),it=!0}}),bt=function(t){_t(t)?n["ado"]["placement"](t):n["ado"]["slave"](t["orgId"],t)},_t=function(t){return t["_isSimplePlacement"]},It=function(t){n["ado"]["master"](t)},At=function(){return n["ado"]["elems"]},Et=function(t){return(t[1]?y.escapeScriptCode(t[1].code)+";\n":"")+y.escapeScriptCode(t[0].code)},St=function(t,n,i){for(var r=0;r<t.length;r++){var e=t[r];q.O(e)||n(e,i)}},Ot=function(t,n,i,r){for(var e in n)-1===y.i(t,e)&&n.hasOwnProperty(e)&&!q.O(e)&&i(e,r)},Ct=function(t,n){return at[t]&&at[t][n]},Dt=function(){return n["ado"]["fif"]["sequential"]},Ft=function(){return n["ado"]["fif"]["force"]},xt=function(t){return!!t.iframe},Rt=function(t,n,i,r,e){if(Gt(t,n,i,r),e){var o=e.changeStateEventListners;if(o)for(var s=0;s<o.length;s++)o[s](t,n,i,r)}},Mt=function(t,n,i){Rt(t,n,x,i),Rt(t,n,F,!1),Rt(t,n,C,!0)},kt=function(t,n){var i=st[t]||[],r=ut[t]||[];St(i,(function(i){var r=ft[i];y.isUndefined(n[r])||Mt(i,t,!n[r]["isEmpty"])})),function(t,n,i){for(var r in n)-1===y.i(t,r)&&n.hasOwnProperty(r)&&!q.O(r)&&i(r)}(r,n,(function(i){y.isUndefined(n[i])||Mt(i,t,!n[i]["isEmpty"])}))},Tt={},Pt={},Nt=function(t,n){var i=st[t]||[];i.length?(St(i,(function(i){var r=ft[i];!function(t,n,i,r){y.isUndefined(Pt[t])&&(Pt[t]={});var e=Pt[t];y.isUndefined(e[n])||e[n]([i,r])}(t,i,n[r],n[r+O])})),function(t,n){for(var i in t)t.hasOwnProperty(i)&&!q.O(i)&&n(i)}(n,(function(i){!function(t,n,i,r){y.isUndefined(Tt[t])&&(Tt[t]={}),Tt[t][n]=[i,r]}(t,i,n[i],n[i+O])}))):Dt()&&ht.markMasterAsRendered(t)},Lt=function(t,r){if(!wt(window,Lt,[t,r])){var e=i.getElementById(t["id"]);if(e){var o=pt(),s=t["id"];t["_isPassback"]&&(s+=O),o.width=e.offsetWidth,o.height=e.offsetHeight,w.debug(5,"initial dimensions",o.width,o.height),lt[s]={iframe:o,config:t},e.style.display="block",e.appendChild(o);var u=o.contentWindow.document,a=y.checkAligment(e,n);u.open();var c='<body onload="setTimeout(onload, 0);" style="margin:0; border:0; padding:0; background-color:transparent; text-align:'+a+";\">\n <script>\n function onload() {\n inDapIF = inAOFIF = inFIF = true;\n AOFIF = { inside: new parent.AOFIF.Inside(window, '"+a+"') };\n window.frameElement.AOFIF = AOFIF;\n var code = '"+y.escapeScriptString(r)+"';\n AOFIF.inside._execAd(code);\n }\n <\/script>\n </body>\n ";u.write(c),u.close()}else w.debug(2,t["id"]+" not found!")}},Ut=function(t){var n=lt[t].iframe,i=n.contentWindow;i["AOFIF"]["_isClosed"]=!0,i["AOFIF"]["inside"]["_stopWatchingDimensions"](i),q.D(n),lt[t]=void 0},jt=function(t){return t["myMasterInstanceId"]?t["myMasterInstanceId"]:t["id"]},Ht=function(t){return t["id"]},$t=function(t){return t["isSlave"]()||t["isPlacement"]()},Gt=null,Bt=function(t){return t["code"]=t["_isPassback"]=void 0,t},zt=function(t){var n=function(n){Jt(t,n)};Rt(t,null,R,!0,dt(t)),function(t,n){for(var i in lt)if(lt.hasOwnProperty(i)){var r=lt[i];r&&!q.O(i)&&jt(r.config)==t&&n(i,lt[i])}}(t,n),function(t,n){var i=At();for(var r in i){var e=i[r];i.hasOwnProperty(r)&&$t(e)&&jt(e["config"])==t&&n(Ht(e["config"]),e)}}(t,n),function(t){y.isUndefined(Tt[t])||(Tt[t]={})}(t),Dt()&&ht.removeMaster(t),delete st[t]},Jt=function(t,n){!function(t,n){var i=Pt[t];i&&i[n]&&(i[n]=void 0)}(t,n);var i=y.i(st[t],n);-1!==i&&(st[t][i]=void 0),lt[n]?Ut(n):function(t){At()[t]["emptyDOMElement"]()}(n),lt[n+O]&&Ut(n+O),function(t){ot[t]=void 0}(n)},Vt=function(t,n){if(t)for(var i=0;i<t.length;i++){var r=dt(t[i]);if(r&&xt(r))return void Kt(t[i],r,n,t)}},Kt=function(t,n,i,r){n.changeStateEventListners.push((function(n,e,o,s){o===D&&s&&t===n&&setTimeout((function(){i._refresh.apply(i,r)}),1)}))},Qt=function(){};Qt.prototype._setDefaultStateChangeHandler=function(t){Gt=t},Qt.prototype._addSimplePlacement=function(t,n){this._addMaster(t,n),this._addSlave(t)},Qt.prototype._addMaster=function(t,r){w.debug(5,"_addMaster");var e=n["AOFIF"]["outside"];if(!wt(e,e._addMaster,[t,r])){w.debug(5,"_addMaster real");var o=pt();o.width=0,o.height=0;var s=t["id"];et[s]={iframe:o,config:t,emitUrlGetter:r,changeStateEventListners:[]},ht.getQueuedMasterData(s)||ht.addMasterToQueue(s),y.getBody(i).appendChild(o);var u=o.contentWindow.document;u.open();var a='<body onload="onload();" style="margin:0;border:0;padding:0;">\n <script type="text/javascript">\n inAOFIFcom = true;\n AOFIF = { communicator: new parent.AOFIF.Communicator(window) };\n ado = new parent.AOFIF.AdoCommunicator(window);\n function onload() {\n AOFIF.communicator._getMaster(\''+y.escapeScriptString(r(t))+"');\n }\n <\/script>\n </body>\n ";u.write(a),u.close()}},Qt.prototype._addSlave=function(t){var i=n["AOFIF"]["outside"];if(!wt(i,i._addSlave,[t])){var r=jt(t),e=t["id"],o=ft[e]=t["clearId"];st[r]=st[r]||[],st[r].push(e),ut[r]=ut[r]||[],-1==y.i(ut[r],o)&&ut[r].push(o);var s=ht.addSlaveToQueue(r,e);!function(t,n,i,r){y.isUndefined(Pt[t])&&(Pt[t]={}),y.isUndefined(Tt[t])&&(Tt[t]={});var e,o=Tt[t],s=Pt[t];s[i]=function(n){r(t,i,n)},y.isUndefined(o[n])||(e=o[n],Ct(t,n)?Rt(i,t,k,!0):Mt(i,t,!e[0]["isEmpty"]),s[i](e))}(r,o,e,(function(n,i,r){ot[i]=r[1];var e=function(){y.isUndefined(r[0])?s.rendered.resolve():Ct(n,o)?(ct[n][i]=t,s.rendered.resolve()):Ft()||r[0]["fifVersionReady"]?Lt(t,Et(r)):function(t,n){w.debug(3,"fallback slave"),t["code"]=Et(n),bt(t)}(t,r)};Dt()?ht.handleSlaveCallback(n,i,e):e()}))}},Qt.prototype._refresh=function(t){var n=Array.prototype.slice.call(arguments);if(!wt(this,this._refresh.bind(this),n)){var i=dt(t);if(i){if(!Vt(n,this)){for(var r=[],e=At(),o=function(t,n){var i=n.id;y.isUndefined(lt[t])?y.isUndefined(e[t])?ct[i]&&ct[i][t]&&r.push(ct[i][t]):r.push(e[t]["config"]):r.push(lt[t].config)},s=function(t,n){var i=n.id,o=e[t];e.hasOwnProperty(t)&&$t(o)&&jt(o["config"])==i&&r.push(o["config"])},u=0;u<n.length;u++){var a=n[u],c={id:a},f=st[a]||[];St(f,o,c),Ot(f,e,s,c)}for(var h=0;h<n.length;h++)zt(n[h]);_t(i.config)||It(Bt(i.config));for(var d=0;d<r.length;d++)r[d]["_refresh"]=!0,bt(Bt(r[d]))}}else y.consoleError("could not refresh - unregistered id")}},Qt.prototype._markSlaveAsRendered=function(t,n){Dt()&&ht.markSlaveAsRendered(t,n)},Qt.prototype._triggerEvent=function(t,n,i){var r=vt(t);if(r){w.debug(5,"outside event",n,i);var e=jt(r.config),o=r.config["id"];Rt(o,e,n,i.value)}else w.debug(5,"drop outside event",n,i)},Qt.prototype._getIframeById=function(t){return lt[t]?lt[t].iframe:void 0},Qt.prototype._executePassbackFromInside=function(t,n){var i=vt(t);i?(q.C(i.iframe),this._executePassback(i.config,n)):w.debug(5,"drop passback")},Qt.prototype._executePassback=function(t,n){t["_isPassback"]=!0;var i=ot[t["id"]];i&&(t["code"]=i.code,Ft()||i["fifVersionReady"]?(t["code"]+="\nado._runPassbackCode();",Lt(t,t["code"])):(t["code"]=y.escapeScriptCode(t["code"]+'ado.executePassback("'+n+'", "'+t["id"]+'");'),bt(t)))},Qt.prototype._addMasterResponse=function(t,n){var i=function(t){for(var n in et)if(et.hasOwnProperty(n)&&et[n].iframe&&et[n].iframe.contentWindow===t.frameElement.contentWindow)return et[n];return!1}(t);if(i){n=y.isUndefined(n)?{}:function(t){var n={};for(var i in t)for(var r in n[i]={},t[i])n[i][r]=t[i][r];return n}(n);var r=i.config["id"];!function(t){at[t]={},ct[t]={}}(r),kt(r,n),Rt(r,null,C,n,i),kt(r,n);var e=function(){Nt(r,n)};Dt()?ht.handleMasterResponse(r,e):e(),q.D(t.frameElement),Rt(r,null,D,!0,i),function(t){et[t].changeStateEventListners=[],et[t].iframe=void 0}(r)}else w.debug(5,"drop outside add master response",n)},Qt.prototype._stopSlave=function(t,n){!function(t,n){at[t]||(at[t]={}),ct[t]||(ct[t]={}),at[t][n]=!0;var i=st[t]||[];St(i,(function(i){(n=ft[i]&&!lt[i])&&Rt(i,t,k,!0)}))}(t,n)},Qt.prototype._registerOnReady=function(t,n){if(!y.isUndefined(t)){var i=vt(t);if(i){var r,e=Ht(i.config),o=(r=i.config)["myMaster"]?r["myMaster"]:r["clearId"];Rt(e,o,T,n)}else w.debug(5,"drop outside register onReady")}};var Xt=Qt.prototype;Xt["_addMaster"]=Xt._addMaster,Xt["_addSlave"]=Xt._addSlave,Xt["_triggerEvent"]=Xt._triggerEvent,Xt["_executePassbackFromInside"]=Xt._executePassbackFromInside,Xt["_executePassback"]=Xt._executePassback,Xt["_addSimplePlacement"]=Xt._addSimplePlacement,Xt["_addMasterResponse"]=Xt._addMasterResponse,Xt["_getIframeById"]=Xt._getIframeById,Xt["_setDefaultStateChangeHandler"]=Xt._setDefaultStateChangeHandler,Xt["_markSlaveAsRendered"]=Xt._markSlaveAsRendered,Xt["_refresh"]=Xt._refresh,Xt["_stopSlave"]=Xt._stopSlave,Xt["_registerOnReady"]=Xt._registerOnReady;var qt={versions:"1.0.0",AdoCommunicator:S,AdoInside:$,Communicator:G,communicator:new G(n),Inside:V,Outside:Qt,outside:new Qt,createXADOPublicApiProxy:function(t){var n={defineModule:3,syncExecuteModule:1},i=window.xado;function r(r){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];var s=n[r];return p(e[s])||(e[s]={}),e[s].targetWindow=t,i[r].apply(i,e)}return new Proxy(i,{get:function(t,e){return e in n?r.bind(i,e):t[e]}})}};function Wt(t,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),!t||"undefined"==typeof URLSearchParams)return null;var r=null;return function(t){void 0===t&&(t=null);var n=window,i=n;if(t){if(t(i)===Yt)return i}if("undefined"==typeof Set)return i;var r=new Set([n]);for(;n.self!==n.parent&&!r.has(n.parent);){n=n.parent,r.add(n);try{if(n.document,i=n,t)if(t(i)===Yt)return i}catch(t){}}}((function(n){var e=new URLSearchParams(n.location.search);if((r=e.get(t))||!i)return Yt})),r&&n?encodeURIComponent(r):r}u("AOFIF",qt);var Yt=-99999;var Zt="2";function tn(t){if(!t||"string"!=typeof t||t===Zt)return!1;try{for(var n=atob(decodeURIComponent(t)),i={},r=0,e=n.split("&");r<e.length;r+=1){var o=e[r].split("=");2===o.length&&(i[o[0]]=i[o[1]])}return"kid"in i||"oid"in i}catch(t){return!1}}var nn=function(){};nn.prototype={enabledEmiters:{},url:"",disableUrl:"",emiterCountryCode:"en",translation:null,overlayFunction:null,overlayDelay:0,configured:!1,disabled:!0};var rn,en=1,on=[/\/vbscript$/i,/\/adtag$/i,/\/octet-stream$/i,/\/css$/i,/^image\//i],sn=function(t,n,i,r){i&&(r=!1),this.placeid=en++,this.noDisplay=!!i,this.fragments=[],this.adoElement=t,!0===r?this.buildClearBeforeInsertRange():this.clearBeforeInsert=r};sn.prototype={doc:null,fragments:null,adoElement:null,onFirstLoadHandler:null,clearBeforeInsert:!1,placeHolderElement:null,noDisplay:!1,getPlaceId:function(){return y.buildSafeHtmlId("ao-place-"+this.adoElement["config"]["clearId"]+"-"+this.placeid)},buildFromFragment:function(t){this.doc=y.doDOMParseFromHtmlString(),this.body=y.getBody(this.doc);try{this.body.appendChild(t)}catch(t){y.consoleError(t)}},insertPreScriptFragmentIntoMainDocument:function(){if(!this.noDisplay){var t=i.getElementById(this.getPlaceId());if(t){this.appendMainFragmentStyles();var n=this.doc.createRange();n.selectNodeContents(this.body);var r=t.parentNode,e=n.cloneContents();this.shouldClearContainerBeforeInsert(e)&&this.clearBeforeInsert?(this.clearBeforeInsert.deleteContents(),this.adoElement["DOMElement"]&&(this.adoElement["DOMElement"].style.display="block"),r.appendChild(e),this.clearBeforeInsert=!1):r.insertBefore(e,t),r.removeChild(t)}}},appendMainFragmentStyles:function(){for(var t=this.doc.getElementsByTagName("style"),r=0;r<t.length;r++){var e=t[r].innerHTML;if(e){var o=i.createElement("style");o.setAttribute("type","text/css"),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(i.createTextNode(e)),n["ado"]["head"].appendChild(o)}}},extractAndStoreNextFragments:function(t){if(t!==this.body){var n=this.doc.createRange();n.selectNodeContents(t.parentNode),n.setStartAfter(t);var i=n.extractContents();if(i){var r=new an(this.adoElement,i,this.noDisplay);n.insertNode(r.createPlaceHolderElement(this.doc)),this.fragments.push(r)}this.extractAndStoreNextFragments(t.parentNode)}},dispatchNextFragment:function(t){var n=this.fragments.shift();if(n){var i=this;n.dispatch((function(){i.dispatchNextFragment(t)}),this.clearBeforeInsert)}else t&&t()},evalScript:function(t,n,i,r){(void 0===r&&(r=null),this.isScriptExecutable(t))?t.getAttribute("src")?this.processSrcScript(t,n,r):n(this.processInlineScript(t)):n("",++i)},isScriptExecutable:function(t){var n=t.getAttribute("language"),i=t.getAttribute("type");if("vbscript"==n)return!1;for(var r=0,e=on;r<e.length;r+=1){if(e[r].test(i))return!1}return!0},processSrcScript:function(t,i,r){void 0===r&&(r=null);var e=function(){this.onFirstLoadHandler&&this.onFirstLoadHandler(),i(this.getWriteBuffer())}.bind(this),o=t.getAttribute("src"),s=t.getAttribute("charset"),u=(r?document.getElementById(r):null)||this.adoElement["DOMElement"];n["ado"]["loadScript"](o,e,s,u)},processInlineScript:function(t){var i=t.innerHTML,r="";i=this.removeJsDecorations(i);try{n["ado"]["evaluate"](i),r=this.getWriteBuffer()}catch(t){y.consoleError(t,i)}return r},removeJsDecorations:function(t){return t.replace("/*<![CDATA[*/","").replace("<![CDATA[","").replace("/* <![CDATA[ */","").replace("/* ]]> */","").replace("/*]]>*/","").replace("\x3c!--","").replace("//--\x3e","").replace("//]]>--\x3e","").replace(/\/\*.*?\*\//g,"")},removeHtmlComments:function(t){return t.replace(/<!\s*--.*?--\s*>/gm,"")},removeNoscriptContent:function(t){return t.replace(/<noscript(?:\s[^>]*)?>[\s\S]*?<\/noscript>/gim,"")},getWriteBuffer:function(){var t=this.adoElement["tmpBuff"];return this.adoElement["tmpBuff"]="",t||""},shouldClearContainerBeforeInsert:function(t){for(var n=0,i=!1;n<t.childNodes.length&&!i;n++){var r=t.childNodes[n];switch(r.nodeType){case Node.ELEMENT_NODE:i=!r.nodeName.match(/^(?:script|ao:placeholder)$/i);break;case Node.COMMENT_NODE:i=!!/[\n\r]/.test(r.nodeValue);break;default:i=!0}}return i},setClearBeforeInsert:function(t){y.isUndefined(t)||(this.clearBeforeInsert=t)},buildClearBeforeInsertRange:function(){var t=this.clearBeforeInsert=i.createRange(),n=this.adoElement["DOMElement"];t.selectNodeContents(n)}};var un,an=function(t,r,e,o){var s=new sn(t,r,e,o);this.onFirstLoad=function(t){s.onFirstLoadHandler=t},this.createPlaceHolderElement=function(t){var n=(t=t||i).createElement("ao:placeholder");return n.id=s.getPlaceId(),n},this.dispatch=function(t,n,i){void 0===i&&(i=0),s.setClearBeforeInsert(n);var r=s.doc.getElementsByTagName("script");if(r.length>i){var e=r[i],o=new an(s.adoElement,null,s.noDisplay),u=o.createPlaceHolderElement(s.doc);s.extractAndStoreNextFragments(e),e.getAttribute("src")?e.parentNode.replaceChild(u,e):e.parentNode.insertBefore(u,e.nextSibling),s.insertPreScriptFragmentIntoMainDocument(),s.evalScript(e,(function(n,i){o.buildFromString(n),o.dispatch((function(){s.dispatchNextFragment(t)}),s.clearBeforeInsert,i)}),i,u.id)}else s.insertPreScriptFragmentIntoMainDocument(),t&&t()},this.buildFromString=function(t){t=s.removeHtmlComments(t),t=s.removeNoscriptContent(t);try{s.doc=y.doDOMParseFromHtmlString("<body>"+t+"</body>"),s.body=y.getBody(s.doc)}catch(t){y.consoleError(t)}},this["dispatch"]=this.dispatch,this["createPlaceHolderElement"]=this.createPlaceHolderElement,this["onFirstLoad"]=this.onFirstLoad,this["onFirstInsert"]=this.onFirstInsert,null===r||y.isUndefined(r)||(r instanceof n.DocumentFragment||r instanceof n.Element?s.buildFromFragment(r):this.buildFromString(r))};an.checkFeatures=function(){if(y.isUndefined(rn)&&(rn=!1,!(y.isUndefined(n.DocumentFragment)||y.isUndefined(n["DOMParser"])||y.isUndefined(i.createRange))))try{var t=y.doDOMParseFromHtmlString();rn=!(!t||!t.childNodes)}catch(t){}return rn};var cn=function(t,n,i){un["ado"][n].apply(t,i)},fn=function(t){var n=un["ado"];for(var i in t)if(t.hasOwnProperty(i)&&n.hasOwnProperty(i)&&y.isFunction(n[i])){cn(n,i,t[i]);break}},hn=function(t,n){un=t,n=n||[],this.queue=n.slice(),n.length&&n[0].hasOwnProperty("config")&&this.runCmdQueue()};hn.prototype={isRunning:!1,push:function(){var t=arguments;if(this.isRunning||arguments.length&&arguments[0].hasOwnProperty("config"))for(var n=0;n<arguments.length;n++)fn(t[n]);else this.queue.push.apply(this.queue,arguments)},runCmdQueue:function(){var t;if(!this.isRunning)for(this.isRunning=!0;t=this.queue.shift();)fn(t)},getPublicInterface:function(){var t=this;return{push:function(){t.push.apply(t,arguments)}}}};var dn=function(){this.cmdQueue=null};dn.prototype.initCmdQueue=function(t){t["adocf"]=t["adocf"]||{},this.cmdQueue=new hn(t,t["adocf"]["cmd"]),t["adocf"]["cmd"]=this.cmdQueue.getPublicInterface()},dn.prototype.runCmdQueue=function(){this.cmdQueue&&this.cmdQueue.runCmdQueue()};var ln={version:t,previewConfig:new function(){var t=new nn;this["setup"]=function(n){var i=window["ado"];i["previewEnabled"][n.host]=t.enabledEmiters[n["host"]]=!0,i["previewUrl"]=t.url="",i["previewDisableUrl"]=t.disableUrl=n["disableUrl"],i["emiterCountryCode"]=t.emiterCountryCode=n["emiterCountryCode"],i["translate"]=t.translation=n["translation"],i["addOverlay"]=t.overlayFunction=n["overlayFunction"],t.overlayDelay=n["overlayDelay"],t.configured=!0,setTimeout((function(){t.overlayFunction(document,i)}),t.overlayDelay)},this["getPreviewUrl"]=function(){return this.setupFromAdo(),t.url},this.isPreviewEnabledForUrl=function(n){return this.setupFromAdo(),t.enabledEmiters[n]},this["isPreviewEnabledForUrl"]=this.isPreviewEnabledForUrl,this["isPreview2Enabled"]=function(){return!t.disabled},this["setDisabled"]=function(n){return t.disabled=!!n},this["getPreviewDisableUrl"]=function(n){this.setupFromAdo();var i=tn(Wt(a,!0));if(i){var r=new URL(n);r.searchParams.set(a,Zt),n=r.toString()}return t.disableUrl?t.disableUrl+"?url="+encodeURIComponent(encodeURIComponent(n)):i?n:null},this["getTranslation"]=function(){return this.setupFromAdo(),t.translation[t.emiterCountryCode]||t.translation["en"]},this.setupFromAdo=function(){var n=window["ado"],i=n["previewEnabled"];for(var r in i)i.hasOwnProperty(r)&&(t.enabledEmiters[r]=i[r]);t.url=n["previewUrl"],t.disableUrl=n["previewDisableUrl"],t.emiterCountryCode=n["emiterCountryCode"],t.translation=n["translate"],t.overlayFunction=n["addOverlay"]},this["setupFromAdo"]=this.setupFromAdo,this["getLPType"]=function(){return t.configured?"2":"1"}},WriteDocument:an,adocf:new dn};u("Ado",ln);var vn={ado:null,initialize:function(t){this.ado=t},resolveId:function(t,n){for(var i in this.ado.elems){var r=this.ado.elems[i].config;if(r)if(n){if(r.orgId===t||r.orgId==="ado-"+t)return i}else if((r.orgId===t||r.orgId==="ado-"+t)&&!1===this.ado.elems[i].begin)return i}return!1},createUUID:function(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var i=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==n?i:3&i|8).toString(16)}))},trimAdoPrefix:function(t){return t.length!==e.UNPREFIXED_ID_LENGTH&&0===t.indexOf(e.PREFIX)?t.substring(e.PREFIX_LEN,e.PREFIXED_ID_LEN):t},addAdoPrefix:function(t){return t.length===e.UNPREFIXED_ID_LENGTH?e.PREFIX+t:t}},pn={LOAD:"load",DOMCONTENTLOADED:"DOMContentLoaded",F:{DOMContentLoaded:null,load:null},onReady:function(t,n){var i;if(void 0===n&&(n=null),t===this.DOMCONTENTLOADED)i=["interactive","complete"];else{if(t!==this.LOAD)throw new Error("Unknown type: "+t);i=["complete"]}if(i.indexOf(document.readyState)>-1)return n?void setTimeout(n,1):Promise.resolve();if(this.R(t),!n){var r=g.newPromise(),e=r.promise,o=r.resolve;return this.F[t].push(o),e}this.F[t].push(n)},documentReady:function(){return this.onReady(this.DOMCONTENTLOADED)},R:function(t){var n=this;if(1===this.F[t])throw new Error("Event "+t+" already fired");if(null===this.F[t]){this.F[t]=[];var i=function(){window.removeEventListener(t,i),n.M(t)};window.addEventListener(t,i)}},M:function(t){for(var n=0,i=this.F[t];n<i.length;n+=1){var r=i[n];try{r()}catch(t){g.log.error(t)}}this.F[t]=1}},mn=function(){function t(t){void 0===t&&(t=document),this.document=t,this.keywords=[],this.foundKeywords=[],this.config={},this.initialized=!1}return t.prototype.initialize=function(n,i){var r=this;return void 0===i&&(i=!0),this.initialized?Promise[i?"reject":"resolve"](t.ALREADY_INITIALIZED):(this.config=this.k(n),this.initialized=!0,this.fetch(n).then((function(){return pn.documentReady()})).then((function(){return r.scanPage(),console.log("Ready: ",r.foundKeywords),t.INITIALIZED})).catch((function(t){if(g.log.error(t),i)throw new Error(t)})))},t.prototype.isValidConfig=function(t){return g.isObject(t)&&g.isUrl(t.domain)&&g.isString(t.fileID)},t.prototype.fetch=function(){var n=this;return this.isValidConfig(this.config)?fetch(this.T(this.config)).then((function(t){return t.json()})).then((function(t){n.keywords=t,g.log.debug(4,"Defined keyword list:",t).preserve(4,"keywordsMatching-list",t)})):Promise.reject(t.INVALID_CONFIG)},t.prototype.scanPage=function(){if(this.document.body&&this.keywords.length){var t=this.document.body.innerText;this.config.caseInsensitive&&(t=t.toLowerCase());for(var n=0,i=this.config.sentPatternsLimit,r=[],e=0,o=this.keywords;e<o.length;e+=1){var s=o[e],u=void 0,a=void 0;if(g.isObject(s)&&g.isString(s.pattern)&&g.isString(s.keyword)&&(u=s.pattern,a=s.keyword,this.config.caseInsensitive&&(u=u.toLowerCase()),t.indexOf(u)>-1&&(r.push(a),++n>=i))){g.log.debug(2,"Limit of found patterns has been reached.");break}}this.foundKeywords=r,g.log.debug(3,"Found keywords: "+r.join(", ")).preserve(4,"keywordsMatching-found",r)}},t.prototype.getFound=function(){return this.foundKeywords},t.prototype.T=function(t){var n=t.domain+"/files/user_data/context_patterns/k_"+t.fileID+".json";return n.match(/^(https?:)?\/\//i)||(n="//"+n),n},t.prototype.k=function(t){return t.sentPatternsLimit=parseInt(t.sentPatternsLimit),(isNaN(t.sentPatternsLimit)||t.sentPatternsLimit<1)&&(t.sentPatternsLimit=50),t},t}();mn.INITIALIZED=1,mn.ALREADY_INITIALIZED=2,mn.INVALID_CONFIG="[KeywordsMatching]: Invalid config provided.";var wn=function(t){this.xado=t,this.xado.adoAPI.getDestructorObject=this.xado.publicAPI.getDestructorObject=this.getDestructorObject.bind(this)};function gn(t){return void 0===t&&(t=window),t["_adoGlobal"]||(t["_adoGlobal"]={}),t["_adoGlobal"].tmp||(t["_adoGlobal"].tmp={}),t["_adoGlobal"].tmp}function yn(t){p(t["_adoGlobal"])||(t["_adoGlobal"]={});var n=t["_adoGlobal"];return p(n["xado-modules"])||(n["xado-modules"]={}),n["xado-modules"]}wn.prototype.getDestructorObject=function(t){if(!t)return null;var n=vn.resolveId(t,!0),i=this.xado.ado.elems[n];if(!i)return null;var r=i.getDestructor();return r||(r={removed:!1,remove:function(){}},i.registerDestructor(r),r)},wn.prototype.destroy=function(t){if(t.destructor){var n=t.destructor;t.destructor=null,n.removed||(n.removed=!0,n.remove())}this.P(t)},wn.prototype.P=function(t){t.DOMElement&&(t.DOMElement.innerHTML="",t.DOMElement.style.display="none")};var bn={tmp:gn(),globalModules:null,modules:{},resourcesUrl:function(){var t;document.currentScript&&(t=document.currentScript.src);var n=document.createElement("a");return n.href=t,n.protocol+"//"+n.host+"/files/js/"}(),initialize:function(t){var n=function(){for(var t=window,n=t,i=[t];t!==window.parent&&(t=window.parent,!i.find((function(n){return n===t})));){i.push(t);try{t.document,n=t}catch(t){}}return n}();this.globalModules=yn(n),t.publicAPI.defineModule=this.defineModule.bind(this),t.publicAPI.syncExecuteModule=this.syncExecuteModule.bind(this),t.publicAPI.executeModule=this.executeModule.bind(this)},defineModule:function(t,n,i,r){var e;if(void 0===i&&(i=!1),void 0===r&&(r={}),e=r.targetWindow&&r.targetWindow!==window?yn(r.targetWindow):i?this.modules:this.globalModules,t in e){if(v(e[t].resolve)){var o=e[t].resolve;e[t].resolve=null,o(n)}}else e[t]=n},syncExecuteModule:function(t,n){var i;void 0===n&&(n={});for(var r=[],e=arguments.length-2;e-- >0;)r[e]=arguments[e+2];if(n.targetWindow&&n.targetWindow!==window)(i=this).N.apply(i,[t,n].concat(r));else{var o=n.local?this.modules:this.globalModules,s=function(){return o[t].apply(o,r)},u=vn.createUUID();this.tmp[u]=s,v(o[t])||document.write('<script src="'+this.L(n)+t+'_gao_lib.js"><\/script>'),document.write('\n <script>\n window._adoGlobal["tmp"]["'+u+'"]();\n window._adoGlobal["tmp"]["'+u+'"] = undefined;\n <\/script>\n ')}},executeModule:function(t,n){void 0===n&&(n={});for(var i=[],r=arguments.length-2;r-- >0;)i[r]=arguments[r+2];var e=n.local?this.modules:this.globalModules;if(p(e[t]))e[t].promise.then((function(t){return t.apply(void 0,i)}));else{var o,s,u,a=document.createElement("script");a.src=""+this.L(n)+t+"_gao_lib.js",document.body.appendChild(a),o=new Promise((function(t,n){s=t,u=n})),e[t]={resolve:s,promise:o},a.addEventListener("error",(function(){e[t]=void 0,u()}))}},N:function(t,n){void 0===n&&(n={});for(var i=[],r=arguments.length-2;r-- >0;)i[r]=arguments[r+2];var e=n.targetWindow,o=yn(e),s=function(){return o[t].apply(o,i)},u=vn.createUUID(),a=gn(e);a[u]=s;var c=e.document;c.write('<script src="'+this.L(n)+t+'_gao_lib.js"><\/script>'),c.write('\n <script>\n window._adoGlobal["tmp"]["'+u+'"]();\n window._adoGlobal["tmp"]["'+u+'"] = undefined;\n <\/script>\n ')},L:function(t){var n=t.url||this.resourcesUrl;return"/"!==n.charAt(n.length-1)&&(n+="/"),n}},_n={API_LOCATOR_NAME:"__cmpLocator",FUNCTION_NAME:"__cmp",GEMIUS_VENDOR_ID:328,REQUIRED_PURPOSES:[1,2,3],STORAGE_KEY:"_ao_consent_data"},In={API_LOCATOR_NAME:"__tcfapiLocator",FUNCTION_NAME:"__tcfapi",GEMIUS_VENDOR_ID:328,REQUIRED_PURPOSES:[1,2,3,4,7,8,9,10],STORAGE_KEY:"_ao_consent_data_v2"},An=32423,En=function(){this.isAvailable=!1,this.cmpWindow=null,this.version=null,this.callbacks={},this.U()};En.j=function(){var t=window,n=null,i=null;do{t=t.parent;try{if(t.frames[In.API_LOCATOR_NAME]||t.frames[_n.API_LOCATOR_NAME]){n=t,i=t.frames[In.API_LOCATOR_NAME]?In:_n;break}}catch(t){}}while(t!==window.top);return{cmpWindow:n,cmpVersion:i}},En.prototype.getCurrentValue=function(t){if(!this.isAvailable)return setTimeout((function(){return t(null)})),null;this.version===In?this.H(t):this.$(t)},En.prototype.H=function(t){var n=this.G.bind(this,t);this.cmpWindow===window?window[In.FUNCTION_NAME]("addEventListener",2,n):this.B("addEventListener",(function(t){return n(t.returnValue,t.success)}),{oneTime:!1})},En.prototype.G=function(t,n,i){return i?"tcloaded"===n.eventStatus||"useractioncomplete"===n.eventStatus?(t(n),this.cmpWindow===window?window[In.FUNCTION_NAME]("removeEventListener",2,(function(){}),n.listenerId):this.B("removeEventListener",(function(){}),{parameter:n.listenerId}),An):void 0:(t(null),An)},En.prototype.$=function(t){this.cmpWindow===window?__cmp("getConsentData",null,(function(n,i){var r=null;i&&n&&"object"==typeof n&&"string"==typeof n.consentData&&(r={consentString:n.consentData,gdprApplies:n.gdprApplies}),t(r)})):this.B("getConsentData",(function(n){"success"in n||(n.success=!0);var i=null,r=n.returnValue;n.success&&r&&"string"==typeof r.consentData&&(i={consentString:r.consentData,gdprApplies:r.gdprApplies}),t(i)}))},En.prototype.U=function(){if("function"==typeof window[In.FUNCTION_NAME])this.isAvailable=!0,this.cmpWindow=window,this.version=In;else if("function"==typeof window[_n.FUNCTION_NAME])this.isAvailable=!0,this.cmpWindow=window,this.version=_n;else{var t=this.constructor.j(),n=t.cmpWindow,i=t.cmpVersion;n&&(this.isAvailable=!0,this.cmpWindow=n,this.version=i,this.J())}},En.prototype.B=function(t,n,i){void 0===i&&(i={});var r=i.parameter;void 0===r&&(r=void 0);var e=i.version;void 0===e&&(e=2);var o=i.oneTime;void 0===o&&(o=!0);var s=Math.random()+"";this.callbacks[s]={function:n,oneTime:o};var u=this.version===In?"__tcfapiCall":"__cmpCall",a={};a[u]={command:t,callId:s},void 0!==r&&(a[u].parameter=r),this.version===In&&(a[u].version=e),this.cmpWindow.postMessage(a,"*")},En.prototype.J=function(){var t=this;window.addEventListener("message",(function(n){var i=t.V(n);if(i.__cmpReturn){var r=i.__cmpReturn;t.K(r.callId,r)}else if(i.__tcfapiReturn){var e=i.__tcfapiReturn;t.K(e.callId,e)}}),!1)},En.prototype.V=function(t){var n={};if(t.data)if("object"==typeof t.data)n=t.data;else if("string"===t.data)try{n=JSON.parse(t.data)}catch(t){n={}}return n},En.prototype.K=function(t){for(var n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];if(this.callbacks[t]){var r=this.callbacks[t];r.oneTime&&delete this.callbacks[t],r.function.apply(r,n)===An&&delete this.callbacks[t]}};var Sn=void 0!==window.Symbol?Symbol():Math.random(),On=function(t,n){if(t!==Sn)throw new Error("Cannot construct singleton");this.X=n,this.q=new En,this.W=null,this.Y=null,this.Z=null,this.tt=!1,this.nt=[],this.q.isAvailable&&(this.X&&this.it(),this.q.getCurrentValue(this.rt.bind(this)))};On.getInstance=function(t){void 0===t&&(t=!0);var n="_aoConsentBuffer"+(t?"":"_withoutCache");return window[n]||(window[n]=new On(Sn,t)),window[n]},On.et=function(t,n){t&&"object"==typeof t&&window.localStorage.setItem(n.STORAGE_KEY,JSON.stringify(t))},On.prototype.getVendorConsentString=function(){return this.Y},On.prototype.getVendorConsentData=function(){return this.Z},On.prototype.getResolvedConsentData=function(t){void 0===t&&(t={});var n=null,i=null,r=(t=this.ot(t)).gdprApplies;return!1!==r&&(t.gdprConsent?(i=t.gdprConsent,r=!0):this.isCmpAvailable()?!0===r||!1!==this.W?(null===(i=this.getVendorConsentString())&&(n=!1),r=!0):!1===this.W&&(r=!1):t.consent&&(n=t.consent.value,r=!0)),{consent:n,consentString:i,consentData:this.getVendorConsentData(),gdprApplies:r,version:this.q.version,cmpResponded:this.tt}},On.prototype.getConsentHitPart=function(t){var n="";return null!==t.consent&&(n+="/nc="+(t.consent?0:1)),null!==t.consentString&&(n+="/gdpr_consent="+t.consentString),null!==t.gdprApplies&&null!==t.consentString&&(n+="/gdpr="+(t.gdprApplies?1:0)),n},On.prototype.isCmpAvailable=function(){return this.q.isAvailable},On.prototype.onCmpResponse=function(t,n){var i=this;if(this.tt)setTimeout(t,0);else{var r=null,e=function(){null!==r&&(clearTimeout(r),r=null),t()};r=setTimeout((function(){var n=i.nt.indexOf(e);n>-1&&i.nt.splice(n,1),t()}),n),this.nt.push(e)}},On.prototype.it=function(){var t=window.localStorage.getItem(this.q.version.STORAGE_KEY);if(t){var n=JSON.parse(t);this.st(n)}},On.prototype.st=function(t){this.W=t.gdprApplies;try{this.q.version===In?(this.Y=t.tcString,this.Z=t):(this.Y=t.consentString,this.Z=null)}catch(t){this.Z=null,this.Y=null}},On.prototype.rt=function(t){if(t&&"object"==typeof t&&(this.X&&this.constructor.et(t,this.q.version),this.st(t),this.tt=!0,null!==this.nt)){for(var n=function(){var t=r[i];setTimeout((function(){return t(!0)}),0)},i=0,r=this.nt;i<r.length;i+=1)n();this.nt=null}},On.prototype.ot=function(t){var n={gdprConsent:null,consent:null,gdprApplies:null};return"gdprConsent"in t&&"string"==typeof t.gdprConsent&&(n.gdprConsent=t.gdprConsent),"consent"in t&&"boolean"==typeof t.consent&&(n.consent={value:t.consent}),"gdprApplies"in t&&"boolean"==typeof t.gdprApplies&&(n.gdprApplies=t.gdprApplies),n};var Cn="function"==typeof Promise&&"finally"in Promise.prototype&&"function"==typeof fetch,Dn={EVT_LOAD:"load",EVT_DOMCONTENTLOADED:"DOMContentLoaded",RF_HEADER_BIDDING:"hb",RF_KEYWORDS_LIST:"km",RF_CLIENT_HINTS:"ch",RF_CMP:"cmp",ready:!1,flags:{},flagRemoveTS:{},add:function(t){this.flags[t]=!0,this.ready=!1},remove:function(t){if(!this.flags[t])return!1;for(var n in this.flags[t]=!1,this.flagRemoveTS[t]=Date.now(),this.flags)if(this.flags[n])return!0;return w.debug("Start-flags: ready=true"),this.ready=!0,!0},get:function(t){return this.flags[t]},init:function(){this.flags[Dn.EVT_LOAD]=l(window.adocf)||!window.adocf.useDOMContentLoaded,this.flags[Dn.EVT_DOMCONTENTLOADED]=!this.flags[Dn.EVT_LOAD]}};function Fn(t,n,i){void 0===n&&(n=""),void 0===i&&(i="/");var r=n?";domain=."+n:"";document.cookie=t+"="+r+";path="+i+";expires=Thu, 01 Jan 1970 00:00:00 GMT"}function xn(t){var n=document.cookie.replace(new RegExp("(?:(?:^|.*;\\s*)"+t+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1");return decodeURIComponent(n)}function Rn(t,n,i){void 0===i&&(i={});var r=i.maxAge;void 0===r&&(r=0);var e=i.domain;void 0===e&&(e="");var o=i.path;void 0===o&&(o="/");var s=i.sameSite;void 0===s&&(s="Lax");var u=new Date;u.setTime(u.getTime()+1e3*r);var a=r?"expires="+u.toUTCString()+";":"",c=e?";domain="+e:"",f=encodeURIComponent(n),h="SameSite="+s+";"+("None"===s?"Secure;":"");document.cookie=t+"="+f+c+";path="+o+";"+a+h}function Mn(t){var n=""+Math.random(),i=o.TEST_COOKIE_NAME+Math.round(1e3*Math.random());Rn(i,n,{domain:t,maxAge:2});var r=n===xn(i);return Fn(i,t),r}var kn={ut:null,initialize:function(t){if(!t||!0!==t.gdprApplies||null!==t.consent&&t.consent)return w.debug(2,"RUIDManager","initialized with consent"),void(this.ut=!0);var n=t.consentData;if(n&&n.purpose&&n.purpose.consents&&n.vendor&&n.vendor.consents&&In.REQUIRED_PURPOSES.every((function(t){return!0===n.purpose.consents[t]}))&&n.vendor.consents[In.GEMIUS_VENDOR_ID])return w.debug(2,"RUIDManager","initialized with consent (cmp)"),void(this.ut=!0);w.debug(2,"RUIDManager","initialized with no consent"),this.ut=!1},get:function(){if(!this.ut)return w.debug(2,"RUIDManager","No consent provided, returning null"),null;var t=xn("__gfp_ruid_pub");return!t||t.startsWith("-")?(w.debug(2,"RUIDManager","No RUID cookie found, returning null"),null):(w.debug(2,"RUIDManager","RUID cookie found, returning value",t),t)}},Tn={ado:null,consentHitPart:"",resourceName:"ad",protocol:"https:",attachReferrer:!1,characterEncoding:!0,fpcEnabled:null,ruidEnabled:null,defaultServer:"",cookieDomain:null,accountId:null,setAdoRef:function(t){this.ado=this.mode.ado=t},set:function(t){var n=this,i=this.ado;"old"!==t.mode&&"new"!==t.mode&&(g.log.warn("Unsupported ado mode (switching to mode new)"),t.mode="new"),i.mode=t.mode,p(t.fif)&&("old"!==i.mode?(i.fif.enabled=!!t.fif.enabled,i.fif.force=!!t.fif.force,i.fif.sequential=!!t.fif.sequential,i.features.passback=!0):t.fif.enabled&&g.log.error("FIF support disabled - not supported in mode sync/old")),this.attachReferrer=!0===t.attachReferrer,this.characterEncoding=!!t.characterEncoding,this.xml=t.xml,t.protocol?this.protocol=t.protocol:/ipla|HbbTV/i.test(navigator.userAgent)?this.protocol=location.protocol:this.protocol="https:","string"==typeof t.resourceName&&t.resourceName&&(this.resourceName=t.resourceName),"fpc"in t&&(this.fpcEnabled=!0===t.fpc||"auto"===t.fpc&&"auto"),this.fpcEnabled&&!Cn&&(this.fpcEnabled=!1,w.debug(1,"FPC disabled, unsupported browser")),"ruid"in t&&(this.ruidEnabled=!0===t.ruid),"string"==typeof t.accountId&&t.accountId&&(this.accountId=encodeURIComponent(t.accountId.slice(0,100))),Cn&&this.ct(t.cookieDomain),this.defaultServer=t.defaultServer||"",r&&Array.isArray(t.fpcDefaultEmitters)&&f.push.apply(f,t.fpcDefaultEmitters);var e="auto"===t.cmpAwaitMs?1e4:parseInt(t.cmpAwaitMs,10);this.ft({gdprApplies:g.parseBooleanObject(t.gdprApplies),gdprConsent:t.gdprConsent,consent:g.parseBooleanObject(t.consent),cmpAwaitMs:"new"===t.mode&&e>=0?e:0},(function(t){n.ruidEnabled&&kn.initialize(t)}))},mode:{ado:null,assertBuffered:function(){if(!this.isAsync())throw new Error("Not supported")},is:function(t){if(!l(this.ado))return this.ado.mode===t},isAsync:function(){return this.is("async")||this.is("new")},isSync:function(){return this.is("sync")||this.is("old")},isFIF:function(){if(!l(this.ado))return this.ado.fif.enabled},isSequential:function(){return this.isFIF()&&this.ado.fif.sequential}},preview:{isEnabled:function(){return ln.previewConfig.isPreview2Enabled()},getType:function(){return ln.previewConfig.getLPType()}},fpcEnabledAsAutoByDefault:function(){if(!c||"undefined"==typeof URL)return w.debug("FPC can't be enabled by default because scriptTag or URL api not available"),!1;var t=h(),n=f.includes(t);return w.debug("(FPC) Emitter: "+t+", is in whitelist?: "+n),n},ft:function(t,n){var i=this;void 0===n&&(n=null);var r=On.getInstance(t.cmpAwaitMs<=0),e=r.getResolvedConsentData(t);t.cmpAwaitMs>0&&r.isCmpAvailable()&&!e.cmpResponded?(Dn.add(Dn.RF_CMP),r.onCmpResponse((function(){var e=r.getResolvedConsentData(t);i.consentHitPart=r.getConsentHitPart(e),n&&n(e),i.ado.ready(Dn.RF_CMP)}),t.cmpAwaitMs)):(this.consentHitPart=r.getConsentHitPart(e),n&&n(e))},ct:function(t){if("string"==typeof t&&t&&"HOC"!==t){if("SLD"===t)return this.cookieDomain=this.ht(),void w.debug(3,"Cookie domain is set to SLD: "+this.cookieDomain);if(!window.location.hostname.includes(t))return w.error('Provided cookieDomain ("'+t+'") is invalid, as a fallback host only cookie is used.'),void(this.cookieDomain=null);this.cookieDomain=t,w.debug(3,"Cookie domain is set to: "+this.cookieDomain)}else this.cookieDomain=null},ht:function(){return window.location.hostname.split(".").slice(-2).join(".")}},Pn=function t(n,i){void 0===i&&(i={});var r=i.styles;void 0===r&&(r=t.HIDDEN);var e=i.appendToBody;void 0===e&&(e=!1);var o=i.id;if(void 0===o&&(o=null),o&&document.getElementById(o))throw new Error(t.ALREADY_EXISTS);this.element=document.createElement("iframe"),this.element.src=n,this.listener=null,this.requests={},r===t.HIDDEN&&this.dt(),o&&(this.element.id=o),e&&document.body.appendChild(this.element)};Pn.prototype.sendMessage=function(t,n){void 0===n&&(n=0),this.listener||this.R(),t["_reqID"]=vn.createUUID();var i=g.newPromise(),r=i.promise,e=i.resolve,o=i.reject;return this.requests[t["_reqID"]]={resolve:e,reject:o},this.element.contentWindow.postMessage(t,"*"),n&&(this.requests[t["_reqID"]].timeout=setTimeout(this.lt.bind(this,t["_reqID"]),n)),r},Pn.prototype.appendToBody=function(){return this.append(document.body)},Pn.prototype.append=function(t){var n=g.newPromise(),i=n.promise,r=n.resolve;return this.element.addEventListener("load",r),t.appendChild(this.element),i},Pn.prototype.remove=function(){this.element.parentNode.removeChild(this.element)},Pn.prototype.dt=function(){var t={display:"block",width:"0",height:"0",border:"none",margin:"0 auto"};for(var n in t)this.element.style[n]=t[n]},Pn.prototype.R=function(){window.addEventListener("message",this.vt.bind(this))},Pn.prototype.vt=function(t){if(t.source===this.element.contentWindow){var n=t.data;if(this.requests[n["_reqID"]]){var i=this.requests[n["_reqID"]];delete this.requests[n["_reqID"]],delete n["_reqID"],i.timeout&&clearTimeout(i.timeout),i.resolve(n)}}},Pn.prototype.lt=function(t){var n=this.requests[t];delete this.requests[t],n.reject("timeout")},Pn.HIDDEN="hidden",Pn.DEFAULT="default",Pn.ALREADY_EXISTS="iframe already exists";var Nn={wt:null,setOptOut:function(){Rn(s.NAME,s.VALUE,{maxAge:s.MAX_AGE,domain:Tn.cookieDomain}),this.wt=!0},disableOptOut:function(){Fn(s.NAME,Tn.cookieDomain)},isOptOutEnabled:function(){return"boolean"!=typeof this.wt&&this.gt(),w.debug("Opt-out:",this.wt),this.wt},gt:function(){var t=xn(s.NAME);this.wt=t===s.VALUE}},Ln={enabled:!1,initialized:!1,initialize:function(){this.initialized||(this.initialized=!0,Nn.isOptOutEnabled()?this.enabled=!1:!0===Tn.fpcEnabled||"auto"===Tn.fpcEnabled?!0===Tn.fpcEnabled||"string"==typeof Tn.defaultServer&&Tn.defaultServer?this.enable():w.error("trying to enable fpc without providing default server, ignoring"):Tn.fpcEnabledAsAutoByDefault()&&!1!==Tn.fpcEnabled&&(w.debug('Setting fpc to "auto" by default because of emitter domain: '+h()),this.enable(!0)))},enable:function(t){if(void 0===t&&(t=null),this.isFPCookieSupported()&&!Nn.isOptOutEnabled()){if("auto"===Tn.fpcEnabled||t){var n=this.yt();n.fpcRequired&&(this.enabled=!0),this.bt(n.checkTS)&&this._t()}else this.enabled=!0;w.debug(5,"fpc enabled:",this.enabled)}else w.debug(1,"First party cookie not supported or opt-out set.")},get:function(){var t=this.yt();return t.fpgad?t.fpgad:""},set:function(t,n){if(!Nn.isOptOutEnabled()){var i=this.yt();!i.fpgadModTS||n>=i.fpgadModTS?(i.fpgad=t,i.fpgadModTS=n,this.It(i)):w.debug(3,"Dropped fpgad update: current TS: "+i.fpgadModTS+" > requestedTS: "+n)}},isFPCookieSupported:function(){return!!navigator.cookieEnabled},removeUserData:function(t){void 0===t&&(t=!1);var n=this.yt();"fpgad"in n&&(t?this.At():(n.fpgad="",n.fpgadModTS=0,this.It(n)))},bt:function(t){return"number"!=typeof t||t<Date.now()-o.MIN_CHECK_INTERVAL},_t:function(){var t,n=this;w.debug(3,"3rd party support check started"),pn.documentReady().then((function(){var n=Tn.defaultServer||new URL(c.src).host;if(!n)throw new Error("Couldn't determine emitter domain");return(t=new Pn(g.newURL(Tn.protocol,n,o.IFRAME_PATH),{id:""})).appendToBody()})).then((function(){return t.sendMessage({cmd:o.TEST_COMMAND},o.POST_MESSAGE_TIMEOUT)})).then((function(t){var i=n.yt();i.fpcRequired=!t.testResult,i.checkTS=Date.now(),n.It(i),w.debug(3,"3rd party check result - supported: ",t.testResult)})).catch((function(t){w.error(t)}))},yt:function(){var t={},n=xn(o.COOKIE.NAME);if(!n)return t;try{t=JSON.parse(n)}catch(t){w.error("Failed to decode value of fp")}return t},It:function(t){var n=t.domain||Tn.cookieDomain;!n&&Tn.fpcEnabledAsAutoByDefault()&&(n=function(){for(var t=window.location.hostname.split("."),n=1;n<t.length&&n<4;++n){var i=t.slice(-n-1).join(".");if(Mn(i))return i}return!1}()),t.domain=n,Rn(o.COOKIE.NAME,JSON.stringify(t),{maxAge:o.COOKIE.MAX_AGE,path:o.COOKIE.PATH,domain:n}),w.debug(6,"Setting cookie "+o.COOKIE.NAME+" with data:",t)},At:function(){Fn(o.COOKIE.NAME,Tn.cookieDomain,o.COOKIE.PATH)}};function Un(t,n,i){void 0===n&&(n="&"),void 0===i&&(i=!0);var r=function(t){return t&&t.length?t.map((function(t){return String(t).replace(/\|/g,"_")})).join("|"):""}(t).substring(0,1999);return i&&!r?"":n+"inner="+encodeURIComponent(r)}var jn={architecture:"arch",platform:"pm",model:"model",platformVersion:"pver",bitness:"bits"},Hn={mobile:"mobile",wow64:"wow64"},$n={formFactor:"formf"},Gn=["architecture","model","platform","platformVersion","bitness","mobile","wow64","formFactor","brands","fullVersionList"],Bn={DISABLE:"_disable_",RESOLVED:1,TIMEOUT:-3,Et:"_ao_chints",St:null,Ot:null,Ct:!1,Dt:!1,get:function(){return this.Dt||this.initialize(),this.St},hasFullData:function(){return this.Ct},hintsApiAvailable:function(){return this.Ot},initialize:function(t){var n=this;if(void 0===t&&(t=""),this.Dt)return Promise.resolve(this.RESOLVED);if(this.Dt=!0,w.debug("Client-hints: initializing"),t===this.DISABLE)return this.Dt=!0,w.debug("Client-hints: disable as requested"),Promise.resolve(this.RESOLVED);if("object"!=typeof navigator.userAgentData||"function"!=typeof navigator.userAgentData.getHighEntropyValues)return w.debug("Client-hints: unavailable"),this.Ot=!1,Promise.resolve(this.RESOLVED);this.Ot=!0,this.Ft()||this.xt();var i=function(t){return t&&"object"==typeof t?(n.St=n.Rt(t),n.Ct=!0,w.debug("Client-hints: loaded new definition: "+JSON.stringify(n.St,null,4)),window.localStorage.setItem(n.Et,JSON.stringify(n.St)),n.RESOLVED):(w.debug("Client-hints: fetch failed"),n.RESOLVED)};return Promise.race([navigator.userAgentData.getHighEntropyValues(Gn).then(i,i.bind(null,!1)),g.sleep(1e3,this.TIMEOUT)])},Rt:function(t){var n=[];if(!t||"object"!=typeof t)return null;for(var i in jn)if(i in t){var r=String(t[i]);r.length>0&&n.push("_ch_"+jn[i]+"="+r.substr(0,50))}for(var e in Hn)e in t&&n.push("_ch_"+Hn[e]+"="+(t[e]?"1":"0"));for(var o in $n)o in t&&Array.isArray(t[o])&&t[o].length&&n.push("_ch_"+$n[o]+"="+t[o].join(","));var s=null;if(t["fullVersionList"]instanceof Array?s=t["fullVersionList"]:t["brands"]instanceof Array&&(s=t["brands"]),s){var u=JSON.stringify(s),a=new RegExp('^\\[|\\]$|"brand":|"version":',"g");n.push("_ch_brands="+u.replace(a,"").substr(0,500))}return n.length?n:null},Ft:function(){try{var t=window.localStorage.getItem(this.Et);return t?(this.St=JSON.parse(t),this.Ct=!0,w.debug("Client-hints: loaded from cache: "+JSON.stringify(this.St,null,4)),!0):(w.debug("Client-hints: cache miss"),!1)}catch(t){return w.debug("Client-hints: loading from cache failed: "+t),!1}},xt:function(){this.St=this.Rt(navigator.userAgentData),w.debug("Client-hints: loaded low entropy data: "+JSON.stringify(this.St,null,4))}},zn={txt:"txt",xml:"xml",js:"js",json:"json"},Jn=function(t,n){this.keywordsMatching=t,this.masterVars=n};Jn.prototype.getAdRequestURL=function(t){var n="",i=zn[t.contentType]||"js";if(n=Tn.protocol+"//"+t.server,n+="/_"+Date.now(),n+="/"+Tn.resourceName+"."+i+"?id="+vn.trimAdoPrefix(t.orgId),n+="/adov=4.8.0/x="+screen.width+"/y="+screen.height,n+=this.Mt(t.keys),n+=Tn.mode.isSync()?this.kt(t.vars):this.masterVars[t.id].getUrlVars(),n+=Tn.ado.makeCluster(t.clusters),Tn.mode.isFIF()&&(n+="/adoisfif=2"),Tn.preview.isEnabled()){n+="/lptype="+Tn.preview.getType();var r=Wt(a,!0);r&&tn(r)?n+="/aolpdata="+r:r&&r!==Zt&&w.debug("lpData found but not valid, found value: "+r)}if(Ln.enabled&&(n+="/fpgad="+Ln.get()),Tn.accountId&&(n+="/aoaccid="+Tn.accountId),Tn.ruidEnabled){var e=kn.get();e&&(n+="/aouserid="+e)}return t.master&&t.slaveIds&&(n+="/slaves="+this.Tt(t.slaveIds)),n+=Tn.consentHitPart,Cn&&(n+=Un(Bn.get(),"/")),Tn.attachReferrer&&(n+="/href="+encodeURIComponent(window.location.href.substring(0,500))),w.debug("AdRequestConstructor: new url constructed: "+n),n},Jn.prototype.Tt=function(t){for(var n=[],i=0,r=t;i<r.length;i+=1){var e=r[i];"string"!=typeof e||e.length<10?w.warn("Invalid ID encountered: "+e+", skipping."):n.push(e.slice(-10))}return g.filterDuplicates(n).join(",")},Jn.prototype.Mt=function(t){m(t)?t=t.split(","):Array.isArray(t)||(t=[]),t=t.concat(this.keywordsMatching.getFound());var n="";if(p(t)&&t.length>0){for(var i in t)m(t[i])&&(Tn.characterEncoding?n+=","+this.Pt(t[i].toLowerCase()):n+=","+t[i].toLowerCase());n="/key="+n.slice(1)}return n},Jn.prototype.Pt=function(t){return encodeURIComponent(t).replace(/[!'()]/g,(function(t){return"%"+t.charCodeAt(0).toString(16)})).replace(/[*]/g,(function(){return"%2A"}))},Jn.prototype.kt=function(t){var n="";if(p(t))for(var i in t)(m(t[i])||"number"==typeof t[i])&&(n+="/"+i+"="+t[i]);else m(t)&&(n="/"+t.replace(/&/g,"/").replace(/^\//,"").replace(/\/$/,""));return this.Nt(n)},Jn.prototype.Nt=function(t){var n=t.replace(/\/(lptype|nc|gdpr[ce]?)=[^/]*/g,"");return t!==n&&g.log.warn("Some vars have been dropped because they are reserved for internal use (requested: "+t+", sent: "+n+")"),n};var Vn,Kn,Qn={replaceTS:function(t){return t.split("[TIMESTAMP]").join(Date.now())},addFPGad:function(t){return t.match(/[&/;]$/)||(t+="&"),t+"fpgad="+Ln.get()},dispatch:function(t){for(var n=0,i=t;n<i.length;n+=1){var r=i[n];Array.isArray(r)||(r=[r]),this.dispatchHitChain(r)}},dispatchHitChain:function(t){if(t.length){for(var n=[],i=[],r=0,e=t;r<e.length;r+=1){var o=e[r];if("object"==typeof o){if(!o.url)continue;if("commit"===o.type)if(Ln.enabled)n.push(o.url);else{var s=o.url;s.match(/[&/;]$/)||(s+="&"),s+="url=",i.push(s)}else w.error("Unknown hit type: "+o.type+" for url: "+o.url+", skipped.")}else i.push(o)}this.Lt(i);for(var u=0,a=n;u<a.length;u+=1){var c=a[u];this.Ut(c)}}},Lt:function(t){var n=this.jt(t);n&&(window.navigator.sendBeacon&&window.navigator.sendBeacon(n,"")||(new Image(1,1).src=n),w.debug(6,"Dispatched hit:",n))},Ut:function(t){var n=this,i=this.addFPGad(this.replaceTS(t));fetch(i).then((function(t){if(!t.ok)throw new Error("Bad response status: "+t.status);return t.json()})).then((function(t){if(!n.Ht(t)){if(""===t.fpgad&&"0"===t.fpgadModTS)return void w.debug(2,"Received empty fpgad width fpgadModTS == 0, ignoring.");throw new Error("Bad response data received: "+JSON.stringify(t,null,4))}t.fpgadModTS=parseInt(t.fpgadModTS,10),Ln.set(t.fpgad,t.fpgadModTS)})).catch((function(t){return w.error(t)})),w.debug(6,"Dispatched hit:",i)},Ht:function(t){return!(!t||"object"!=typeof t)&&(!isNaN(parseInt(t.fpgadModTS,10))&&t.fpgad&&"string"==typeof t.fpgad)},jt:function(t){if(!(t=t.filter((function(t){return t}))).length)return"";for(var n="",i=t.length-1;i>0;--i)n=encodeURIComponent(this.replaceTS(t[i])+n);return n=this.replaceTS(t[0])+n}},Xn={ado:null,xado:null,config:function(t){var n=this;if("object"!=typeof t||!t)throw new Error("config method expect object, "+typeof t+" provided");if(Tn.set(t),Ln.initialize(),t.hb&&Dn.add(Dn.RF_HEADER_BIDDING),Cn){if(!1!==t.chints){var i=Bn.initialize();Bn.hintsApiAvailable()&&!Bn.hasFullData()&&"old"!==this.ado.mode&&(Dn.add(Dn.RF_CLIENT_HINTS),i.finally((function(){return n.ado.ready(Dn.RF_CLIENT_HINTS)})))}else Bn.initialize(Bn.DISABLE);this.xado.keywordsMatching.isValidConfig(t.contextPatterns)&&(Dn.add(Dn.RF_KEYWORDS_LIST),w.debug(3,"Keywords matching enabled.").preserve(4,"keywordsMatching",!0),this.xado.keywordsMatching.initialize(t.contextPatterns).finally((function(){return n.ado.ready(Dn.RF_KEYWORDS_LIST)})))}ln.adocf.runCmdQueue()},sendHits:function(t){Array.isArray(t)||(t=[]),Qn.dispatch(t)},_setFPGad:function(t,n){n=parseInt(n,10),!isNaN(n)&&"string"==typeof t&&t?Ln.set(t,n):w.debug(3,"Bad fpgad params provided: value: "+t+", modificationTS: "+n)},removeUserData:function(){Ln.removeUserData()},disableUserData:function(){Ln.removeUserData(!0),Nn.setOptOut()},enableUserData:function(){Nn.disableOptOut()},getLivePreviewToken:function(){return Wt(a,!0,!0)}},qn={ado:null,version:t,Ado:ln,AOFIF:qt,util:g,idUtils:vn,keywordsMatching:new mn,url:null,config:Tn,destructorManager:null,adoVars:{},startFlags:Dn,loadUtils:pn,adoAPI:Xn,publicAPI:{},catchPrivateAdoObject:function(t,n){this.adoVars[t]=n},publishAdoAPI:function(){var t=this,n=function(n){t.ado[n]=function(){for(var i,r=[],e=arguments.length;e--;)r[e]=arguments[e];return(i=t.adoAPI)[n].apply(i,r)}};for(var i in t.adoAPI)n(i)},initializePublicAPI:function(){var n=Array.isArray(window.xado)?window.xado:[],i=this.publicAPI;i.version=t,window.xado=i;for(var r=function(){var t=o[e];v(i[t.cmd])&&setTimeout((function(){Array.isArray(t.args)?i[t.cmd].apply(i,t.args):void 0!==t.args?i[t.cmd](t.args):i[t.cmd]()}))},e=0,o=n;e<o.length;e+=1)r()},initializeSelf:function(t){this.ado=t,this.adoAPI.ado=this.ado,this.adoAPI.xado=this,this.config.setAdoRef(this.ado),this.idUtils.initialize(this.ado),this.destructorManager=new wn(this),this.url=new Jn(this.keywordsMatching,this.adoVars["_masterVars"]),bn.initialize(this)},start:function(t,n,i){window.AOFIF&&qt.outside._setDefaultStateChangeHandler(i),window.AdoElement=n;var r=window.ado=this.ado=new t;l(r.head)&&(r.head=document.head),this.initializePublicAPI(),this.publishAdoAPI(),this.Ado.adocf.initCmdQueue(window),this.startFlags.init(),window.adocf&&window.adocf.useDOMContentLoaded?pn.onReady(pn.DOMCONTENTLOADED,(function(){return r.ready(Dn.EVT_DOMCONTENTLOADED)})):pn.onReady(pn.LOAD,(function(){return r.ready(Dn.EVT_LOAD)}))}},Wn=window,Yn=document,Zn=Wn,ti="Not supported!",ni=[],ii=[],ri=[],ei={},oi={},si={},ui={},ai={},ci={add:function(t,n){l(this[t])&&(this[t]=[]),this[t].push(n),hi[n]=t},getFirst:function(t){if(t=Pi(t),!l(this[t]))return this[t][0]},getLast:function(t){if(t=Pi(t),!l(this[t]))return this[t][this[t].length-1]},getFirstInMasterInstance:function(t,n){if(this[t])for(var i=0;i<this[t].length;i++){var r=ci[t][i];if(ui[r]&&ui[r].masterInstanceId==n)return r}}},fi={},hi={},di=new b,li={},vi=navigator.userAgent.toLowerCase(),pi={version:(vi.match(/.+(?:rv|it|ra|ie)[/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(vi),opera:/opera/.test(vi),msie:/msie/.test(vi)&&!/opera/.test(vi),mozilla:/mozilla/.test(vi)&&!/(compatible|webkit)/.test(vi)},mi=function(){if(!Tn.mode.isAsync())throw ti},wi=function(t){var n=arguments;for(var i in t)if(t.hasOwnProperty(i))try{t[i].apply(Zn,Array.prototype.slice.call(n,1))}catch(t){w.error(t)}},gi=function(t,n){Ni(si,t,n)},yi=function(t,n){var i=hi[n]?n:fi[n];return i&&_i(i)&&ui[i].received?Tn.mode.isFIF()?!(!ui[t]||ui[t].masterInstanceId!=i)&&ui[t].hasAd:!!Zn[t]&&!Zn[t].isEmpty:null},bi=function(t,n){if(!t)return null;if(n&&n!=t){if(!_i(n)||!ui[n].received)return null;if(Ii(t,n)){var i=hi[t];return yi(i)}}else if(!_i(t)||!ui[t].received||!ui[t].isSimplePlacement())return null;return ui[t].hasAd},_i=function(t){return hi[t]&&ui[t]},Ii=function(t,n){return ui[t]&&ui[t].masterInstanceId!=n},Ai=function(t){return!!t.code},Ei=function(t){var n=ui[t];n.received=n.begun=n.processed=n.rendered=0,n.hasAd=n.empty=null},Si=function(t){ui[t].parentId=null,ui[t].childIds={}},Oi=function(t){l(ui[t])&&Di(t),ui[t].parentId=null},Ci=function(t){if(l(ui[t]))Di(t);else{for(var n in ui[t].childIds)Ei(n),Si(n);ui[t].childIds={}}},Di=function(t){ui[t]=new Ui(t)},Fi=function(t){var n=ui[t.id];n.clearId=t.clearId,n.orgId=t.orgId,n["_isBuffer"]=!!t["_isBuffer"],n["_isMaster"]=!!t.master,n["_isSimplePlacement"]=!!t["_isSimplePlacement"],n.onServerEmissionCallbacks={onServerEmission:t.onServerEmission,onServerEmissionEmpty:t.onServerEmissionEmpty}},xi=function(t){t.onLoad&&(t.onLoad=!1,w.warn("OnLoad callback is not supported in FIF mode, use onEmit instead."))},Ri=function(t,n){var i=function(){v(t.onServerEmissionEmpty)&&t.onServerEmissionEmpty()};if(p(n)){var r=0;for(var e in n)v(n[e])||r++;r>ado.adserverEmissions?(ado.adserverEmissions++,v(t.onServerEmission)&&t.onServerEmission()):i()}else i()},Mi=function(t){v(t.config.onLoad)&&(t.onLoad(),t.onLoad=!1)},ki=function(t){var n=t.id;l(ui[n])?Di(n):t.slave||Ai(t)||Ei(n),ui[n].fifFallback=Ai(t),Fi(t)},Ti=function(t){if(!ado.getById(t.id)){var n=ado.getById(t.orgId);n&&(n.id=t.id)}},Pi=function(t){return vn.trimAdoPrefix(t)},Ni=function(t,n,i){mi(),l(t[n])&&(t[n]=[]),t[n].push(i)},Li=function(t){return t?((n=hi[t])?i=t:(n=hi[i=vn.addAdoPrefix(t)])||(n=hi[i=vn.trimAdoPrefix(t)])||(n=i,i=null),{zoneId:n,instanceId:i,orgId:i&&ui[i]?ui[i].orgId:null}):null;var n,i},Ui=function(t){this.id=t,ui[t]=this,Ei(t),Si(t),this["_isBuffer"]=this["_isMaster"]=this["_isSimplePlacement"]=null,this.onServerEmissionCallbacks={},this.masterId=null,this.masterInstanceId=null;var n=Li(t);this.clearId=n.zoneId,this.instanceId=n.instanceId,this.buildMasterVars()};(Kn=Ui.prototype).setMasterIds=function(t,n){this.masterId=t,this.masterInstanceId=n},Kn.buildMasterVars=function(){var t=this.id,n=this.clearId;li[n]?(this.vars=li[n],li[n]=void 0,li[t]&&this.vars.merge(li[t])):li[t]?this.vars=li[t]:this.vars=new E,li[t]=this.vars},Kn.anySlave=function(t,n){var i,r,e,o;if(this.isMaster())for(e in ui)if((r=ui[e]).isSlave()&&r.masterInstanceId==this.id&&((o=hi[r.id])||n&&r.received)&&(i=t.call(Zn,r.id,o||r.id)))return i},Kn.eachSlave=function(t,n){this.anySlave((function(){t.apply(this,arguments)}),n)},Kn.eachSlaveWithUnregistered=function(t){this.eachSlave(t,!0)},Kn.hasSlaves=function(){return this.isMaster()?di.hasSlaves(hi[this.id]):0},Kn.isBuffer=function(){return this["_isBuffer"]},Kn.isSlave=function(){return this.masterId},Kn.isMaster=function(){return this["_isMaster"]},Kn.isMasterlike=function(){return this.isMaster()||this.isSimplePlacement()},Kn.isSimplePlacement=function(){return this["_isSimplePlacement"]},Kn.processOnEmit=function(t){wi(ni,this.clearId,this.id,t)},Kn.processOnBeforeRenderAd=function(){wi(ii,this.clearId,this.id)},Kn.processOnAfterRenderAd=function(){wi(ri,this.clearId,this.id)},Kn.processOnReady=function(t){wi(si[this.instanceId],this.clearId,t),si[this.instanceId]=[]},Kn.processOnAd=function(t){if(!l(ei[this.clearId])){var n,i=null,r=this.instanceId,e=this.masterInstanceId||this.instanceId;this.rendered?i=(n=this.hasAd)?t:null:hi[this.id]?n=!1:(n=!1,r=e=null),wi(ei[this.clearId],n,i,r,e)}},Kn.processOnMaster=function(){l(oi[this.clearId])||wi(oi[this.clearId],this.id)},Kn.setReceived=function(t){this.received||(this.received=1,this.isMasterlike()&&(fi[this.clearId]=this.instanceId),this.eachSlave((function(t){ui[t].received||(Ei(t),ui[t].setHasAd(!1),ui[t].setEmpty(!0),ui[t].setReceived())})),this.isSlave()||this.isBuffer()||this.processOnEmit(t),this.isMaster()&&this.checkRendered())},Kn.setBegun=function(){this.begun=1},Kn.setProcessed=function(){this.processed||(this.processed=1)},Kn.setRendered=function(){var t;this.rendered||(this.rendered=1,this.isBuffer()||(t=Tn.mode.isFIF()&&!this.isFifFallback()?qt.outside["_getIframeById"](this.id):ado.elems[this.id].DOMElement,this.hasAd&&(this.processOnReady(t),this.processOnAfterRenderAd(),this.processOnAd(t)),this.processOnAd4EmptiesAndUnregistered(),this.isSlave()?(ui[this.masterInstanceId].checkRendered(),Tn.mode.isFIF()&&qt.outside["_markSlaveAsRendered"](this.masterInstanceId,this.id)):this.isSimplePlacement()&&Tn.mode.isFIF()&&qt.outside["_markSlaveAsRendered"](this.id,this.id)))},Kn.checkRendered=function(){this.anySlave((function(t){return!ui[t].rendered&&!ui[t].empty}))||(this.rendered=1,this.processOnAd4EmptiesAndUnregistered(),this.processOnMaster())},Kn.setHasAd=function(t){this.hasAd=!!t},Kn.setEmpty=function(t){this.empty=t},Kn.registerNestedAd=function(t){this.childIds[t]=1,l(ui[t])&&Di(t),ui[t].parentId=this.id},Kn.hasUnrenderedNestedAds=function(){if(this.hasSlaves())return this.anySlave((function(t){return ui[t].hasUnrenderedNestedAds()}));for(var t in this.childIds)if(l(ui[t])||!ui[t].rendered)return 1;return 0},Kn.isNested=function(){return!!this.parentId},Kn["_endNestedAd"]=function(){this.hasSlaves()||this.hasUnrenderedNestedAds()||(this.setRendered(),this.parentId&&ui[this.parentId]["_endNestedAd"](this.id))},Kn.processOnAd4EmptiesAndUnregistered=function(){this.hasSlaves()?this.anySlave((function(t){return ui[t].hasAd&&!ui[t].rendered}))||this.eachSlaveWithUnregistered((function(t){ui[t].hasAd&&hi[t]||ui[t].processOnAd(null)})):this.hasAd||this.masterId||this.processOnAd(null)},Kn.isFifFallback=function(){return!!this.fifFallback},Kn.processOnServerEmission=function(t){Ri(this.onServerEmissionCallbacks,t)};var ji=function(t){this.config=t,this.destructor=null,Ti(t),ki(t);var n=t.id,i=ui[n],r=this;this.loadingLib=!1,this.buff=ado.placeholder,this.tmpBuff="",this.onLoad=t.onLoad,this.DOMElement={},this.DOMElementBufor="",this.regs={scriptBegin:/^\s*<script\b((?:\s+[\w_:][-\w_.:]*\s*(?:=\s*(?:"[^"]*"|'[^']*'|[^\s"'>][^\s>]*))?)*)[^\w>]*>/i,scriptEnd:/(<\/script(?![\w:.-])[^>]*>)/i,attr:/([\w:][-\w.:]*(?![-\w.:]))(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>][^\s>]*)))?/g},this.getDestructor=function(){return this.destructor||null},this.registerDestructor=function(t){this.destructor=t},this.destroy=function(){qn.destructorManager.destroy(this)},this.myWrite=function(t){r.tmpBuff+=t},this.myWriteln=function(t){r.myWrite(t+"\n")},this.isMaster=function(){return this.config.master},this.isSlave=function(){return this.config.slave},this.isPlacement=function(){return this.config["_isSimplePlacement"]},this.initBuffor=function(){ado.busy=!0,l(Wn.gao)&&(Wn.gao={}),Wn.gao.busy=!0,Vn=this,Wn.document.open=function(){},Wn.document.close=function(){},Yn.write=r.myWrite,Yn.writeln=r.myWriteln},this.rewriteBuffor=function(){-1!==this.buff.indexOf(ado.placeholder)?this.buff=r.buff.replace(ado.placeholder,(function(){return r.tmpBuff})):this.buff=this.tmpBuff+this.buff,this.tmpBuff=""},this.preDispatch=function(){if(p(this.config)&&this.config.id&&(this.config.server||Tn.defaultServer)&&"http"===Tn.protocol.substr(0,4))if(this.config.server||(this.config.server=Tn.defaultServer),this.getDOMElement(),this.emptyDOMElement(),this.DOMElementBufor="",this.isSlave()||this.makeUrl(),this.appendRedirUrl(),Tn.mode.isSync()||!ado.isBrowserSupport())Yn.write("<script type='text/javascript'>ado['_modeOldCurrentElement'] = ado.elems['"+t.id+"'];<\/script>"),Yn.write("<script type='text/javascript' src='"+r.config.url+"'><\/script>"),v(t.onLoad)&&(t.onLoad=!1);else if(this.initBuffor(),this.config.code)this.appendScriptCode(this.config.code);else{this.appendScript(this.config.url,null,!0,(function(){var t=r.config.id;r.isMaster()&&(Ei(t),i.eachSlave((function(n,i){if(function(t){return t===ci.getFirst(hi[t])}(t)||!ui[n].rendered){Ei(n);var r=l(Zn[i]);ui[n].setHasAd(!r&&!Zn[i].isEmpty),ui[n].setEmpty(r),ui[n].setReceived()}}))),r.isPlacement()&&null===i.empty&&(i.setHasAd(0),i.setEmpty(1)),i.setReceived()}))}},this.execUsingWriteDocument=function(t,n){this.getDOMElement();var i=this.isMaster();i||this.DOMElement||(w.warn("AdoElement "+this.config.orgId+" has no div element!"),i=!0);var r=new ln.WriteDocument(this,t,i,!0);if(i){if(!this.isMaster())return this.postDispatch(),void(this.buff=this.tmpBuff="")}else this.appendWDPlaceholder(r);n&&r.onFirstLoad(n),r.dispatch(function(){Mi(this),this.postDispatch(),this.buff=this.tmpBuff=""}.bind(this))},this.appendWDPlaceholder=function(t){this.DOMElement.appendChild(t.createPlaceHolderElement())},this.postDispatch=function(){this.flushDOMBufor(),i.setProcessed(),this.isMaster()||i.hasUnrenderedNestedAds()||(i.setRendered(),i.isNested()&&ado.endNestedAd(this.config.id)),ado.busy=!1,l(Wn.gao)&&(Wn.gao={}),Wn.gao.busy=!1,Vn=null,ado.start()||Wn.gao.beginMonitorNext&&Wn.gao.beginMonitorNext()};var e,o,s;this.dispatch=function(){if(ln.WriteDocument.checkFeatures())return this.execUsingWriteDocument(this.buff);this.deleteComment();var t,n=this;if(this.regs.scriptBegin.test(this.buff)){t=this.regs.scriptBegin.exec(r.buff);var i=this.processAttributes(t[1]);!function(t){if(!l(t.defer))return!1;var n="",i="";t.language&&(n=t.language.toLowerCase()),t.type&&(i=t.type.split(";")[0]);var r=[/\/vbscript$/i,/\/adtag$/i,/\/octet-stream$/i,/\/css$/i,/^image\//i];if("vbscript"==n)return!1;for(var e=0;e<r.length;e++)if(r[e].test(i))return!1;return!0}(i)?this.skipScript(t):i.src?this.processSrcScript(t,i.src,i.charset):this.processInlineScript(t)}else{if(!this.regs.scriptBegin.test(this.buff)){if(t=/<script/i.exec(this.buff)){var e=this.buff.indexOf(t[0]);this.DOMElement=ado.getById(this.config.id),this.DOMElement&&this.addToDOMElement(this.buff.substr(0,e).replace(ado.placeholder,"")),this.buff=this.buff.substr(e),this.dispatch()}else n.DOMElement&&(n.addToDOMElement(r.buff.replace(ado.placeholder,"")),n.buff=""),Mi(n),n.postDispatch()}}},this.deleteComment=function(){for(var t=/<!\s*--(.*?)(--\s*>)/m;t.test(r.buff);)r.buff=r.buff.replace(t,"")},this.skipScript=function(){var t=this.regs.scriptEnd.exec(r.buff);this.buff=ado.placeholder+this.buff.substr(t.index+t[0].length),r.dispatch()},this.processSrcScript=function(t,n,i){this.buff=r.buff.substr(t[0].length);var e=this.regs.scriptEnd.exec(r.buff);this.buff=ado.placeholder+this.buff.substr(e.index+e[0].length),this.appendScript(n,i)},this.appendScriptCode=function(t){this.buff="<script>"+t+"<\/script>",this.dispatch()},this.appendScript=function(t,n,i,e){if(ln.WriteDocument.checkFeatures()){var o=Yn.createElement("script");o.src=t,this.execUsingWriteDocument(o,e)}else{this.loadingLib=!0,ado.loadScript(t,(function(){r.loadingLib=!1,v(e)&&e(),r.rewriteBuffor(),r.dispatch()}),n)}},this.onServerEmission=function(t){Ri(this.config,t)},this.processInlineScript=function(t){if(!r.loadingLib){this.buff=this.buff.substr(t[0].length);var n=this.regs.scriptEnd.exec(r.buff);if(n){var i=this.buff.substr(0,n.index);this.buff=ado.placeholder+this.buff.substr(n.index+n[0].length),i=(i=(i=(i=(i=(i=(i=(i=(i=i.replace("/*<![CDATA[*/","")).replace("<![CDATA[","")).replace("/* <![CDATA[ */","")).replace("/* ]]> */","")).replace("/*]]>*/","")).replace("\x3c!--","")).replace("//--\x3e","")).replace("//]]>--\x3e","")).replace(/\/\*.*?\*\//g,"");try{ado.evaluate(i)}catch(t){w.error(t)}}else this.buff="",w.error("Missing script closing tag.");this.rewriteBuffor(),this.dispatch()}},this.processAttributes=function(t){for(var n,i={};n=r.regs.attr.exec(t);){var e=null;n[4]?e=n[4]:n[3]?e=n[3]:n[2]&&(e=n[2]),i[n[1].toLowerCase()]=e}return i},this.getDOMElement=function(){this.DOMElement=ado.getById(this.config.id),this.DOMElement},this.emptyDOMElement=function(){this.DOMElement&&(this.DOMElement.innerHTML="",this.DOMElement.style.display="none")},this.flushDOMBufor=function(){this.insertToDOMElement(this.DOMElementBufor),this.DOMElementBufor=""},this.addToDOMElement=function(t){this.DOMElementBufor+=t},this.insertToDOMElement=function(t){this.DOMElement&&""!==t&&(this.DOMElement.style.display="block",t=t.replace(/<style>((?:.|\s)*?)<\/style>/g,(function(t,n){var i=Yn.createElement("style");return i.setAttribute("type","text/css"),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(Yn.createTextNode(n)),ado.head.appendChild(i),""})),this.DOMElement.innerHTML=t)},this.makeUrl=function(){this.config.url=qn.url.getAdRequestURL(this.config)},this.appendRedirUrl=function(){this.config.redir&&""!==this.config.redir&&"<%%REDIR%%>"!=this.config.redir&&(this.config.url=this.config.url+"/redir="+this.config.redir)},this["_registerPassback"]=function(t,n,i){e=i,o=n,s=t};this.executePassback=function(t){if(i.isFifFallback()&&!this.config["_isPassback"])qt.outside["_executePassback"](this.config,s);else if(v(e)){var n=document.getElementById(t);n&&n.style&&(n.style.display="none"),r=t,o=function(t){e.call(Wn),t.rewriteBuffor(),t.dispatch()},u=function(){var t=new ji({id:r,clearId:r,orgId:r,_isBuffer:!0});Wn.AdoElems=Wn.AdoElems||[],Wn.AdoElems.push(t),t.getDOMElement(),t.initBuffor(),o(t)},pn.onReady(pn.DOMCONTENTLOADED,(function(){!qn.startFlags.ready||ado.busy||!l(Wn.gao)&&Wn.gao.busy?ado.queue.unshift((function(){u()})):u()}))}var r,o,u},this.getPassbackCustomData=function(){return o}};l(Wn.ado)&&qn.start((function(){this.features={stringResponse:!0,passback:!1},this.version=t,this["_modeOldCurrentElement"]=null;var n=function(t){return t.orgId||(t.id=""+t.id,t.clearId=Pi(t.id),t.orgId=t.id,t.id=t.id+""+ado.iterator++,ci.add(t.clearId,t.id)),t};this.elems={},this.urlsMapping=[],this.masterSlaves=[],this.queue=[],this.iterator=0,this.busy=!1,this.placeholder="__MARKER__",this.mode="old",this.fif={enabled:!1,force:!1,sequential:!1},this.previewUrl="",this["_getPreviewUrl"]=function(){return ln.previewConfig.getPreviewUrl()},this.previewEnabled=[],this["_getPreviewDisableUrl"]=function(t){return ln.previewConfig.getPreviewDisableUrl(t)},this["_getPreviewOverlayTranslation"]=function(){return ln.previewConfig.getTranslation()},this.tmp=[],this.adserverEmissions=0,this.browser=pi,qn.catchPrivateAdoObject("_masterVars",li),qn.initializeSelf(this),this.resolvId=function(t,n){return vn.resolveId(t,n)},this.addAdoPrefix=function(t){return t.id=vn.addAdoPrefix(t.id),t},this.trimAdoPrefix=function(t){return vn.trimAdoPrefix(t)},this.beginCreative=function(t){if(Tn.mode.isAsync()&&Vn){if(Vn.config["_isBuffer"]||Vn.config.clearId===t.id){var n=ui[Vn.config.id];n.setHasAd(!t.isEmpty),n.setEmpty(0),n.setReceived(),t.isEmpty||n.processOnBeforeRenderAd(),Vn.onServerEmission(window.adserver_emissions2),n.setBegun()}return Vn}if(Tn.mode.isSync()&&ado["_modeOldCurrentElement"])return ado["_modeOldCurrentElement"].onServerEmission(window.adserver_emissions2),ado["_modeOldCurrentElement"].config._hasAd=!t.isEmpty,ado["_modeOldCurrentElement"]},this.beginExternal=function(){},this.endExternal=function(){};var i=function(t,n){if(Tn.mode.isAsync()&&!qn.startFlags.ready&&ado.isBrowserSupport()||ado.busy||!l(Wn.gao)&&Wn.gao.busy){n.push(!0);var i=function(){ado[t].apply(ado,n)};return i.fnName=t,ado.queue.unshift(i),1}return 0};this.beginNestedAd=function(t){Tn.mode.isSync()||Tn.mode.isFIF()||ui[Vn.config.id].registerNestedAd(t)},this.endNestedAd=function(t){Tn.mode.isSync()||Tn.mode.isFIF()||ui[t].hasUnrenderedNestedAds()||ui[Vn.config.id]["_endNestedAd"](t)},this.refresh=function(t){i("refresh",[t])||(Tn.mode.isFIF()?r(t):e(t,this.masterSlaves))};var r=function(t){var n=Pi(t),i=ci.getFirst(n);ui[i].isSimplePlacement()?qt.outside["_refresh"](i):qt.outside["_refresh"].apply(qt.outside,ci[n])},e=function(t,n){var i=ado.resolvId(t,!0);if(i){var r=ado.elems[i];if(Tn.mode.isAsync()&&ui[r.config.id].hasUnrenderedNestedAds()){var e=function(){ado.refresh(t)};e.fnName="refresh",ado.queue.unshift(e)}if(r.isMaster()){for(var o in ado.master(r.config),n[r.config.orgId]=[],ado.elems)if(p(ado.elems[o])&&ado.elems[o].config.slave&&ado.elems[o].config.myMaster===r.config.orgId){var s=ado.elems[o].config;ado.elems[o].destroy(),s["_refresh"]=!0,ado.slave(s.orgId,s)}}else r.destroy(),ado.placement(r.config)}else w.error("could not refresh - unregistered id")};this.placement=function(t,r){if(t.id&&(t.server||Tn.defaultServer)){if(t["_isSimplePlacement"]=!0,t["_refresh"]=!1,t.server||(t.server=Tn.defaultServer),n(t),li[t.clearId]||(li[t.clearId]=new E),li[t.clearId].setVarsFromConfig(t),Wn.AOFIF&&qt.outside&&!Ai(t)&&Tn.mode.isFIF())return xi(t),Ti(t),Di(t.id),Fi(t),si[t.id]=[],void qt.outside["_addSimplePlacement"](t,qn.url.getAdRequestURL.bind(qn.url));!Tn.mode.isAsync()&&!Tn.mode.isFIF()||r||(Ci(t.id),Vn&&ui[Vn.config.id].begun?ado.beginNestedAd(t.id):Oi(t.id)),i("placement",[t])||(this.elems[t.id]=new ji(t),si[t.id]=[],this.elems[t.id].preDispatch())}},this.master=function(t){if(t.master=!0,t.slaveIds=Array.isArray(t.slaveIds)?t.slaveIds:null,n(t),li[t.clearId]||(li[t.clearId]=new E),li[t.clearId].setVarsFromConfig(t),Wn.AOFIF&&qt.outside&&Tn.mode.isFIF())return xi(t),ki(t),void qt.outside["_addMaster"](t,qn.url.getAdRequestURL.bind(qn.url));i("master",[t])||(Tn.mode.isAsync()&&ui[t.id]&&ui[t.id].eachSlave((function(t,n){if(Zn[n])try{delete Zn[n]}catch(t){Zn[n]=void 0}})),l(this.masterSlaves[t.orgId])&&(this.masterSlaves[t.orgId]=[]),this.elems[t.id]=new ji(t),this.elems[t.id].preDispatch())},this.slave=function(t,r,e){if(t&&m(t)&&""!==t&&r&&r.myMaster)if(r.id||(r.id=t),r.slave=!0,n(r),e||Ai(r)||(r.myMasterInstanceId=r["_refresh"]?ci.getFirst(r.myMaster):ci.getLast(r.myMaster)),r["_refresh"]=!1,r.myMasterInstanceId){if(!Tn.mode.isAsync()&&!Tn.mode.isFIF()||e||(l(ui[r.id])&&Di(r.id),ui[r.id].setMasterIds(r.myMaster,r.myMasterInstanceId),di.add(r.myMaster,r.clearId),Vn&&ui[Vn.config.id].begun?ado.beginNestedAd(r.id):Oi(r.id),Ci(r.id)),Wn.AOFIF&&Wn.AOFIF.outside&&!Ai(r)&&Tn.mode.isFIF())return xi(r),Ti(r),ki(r),ui[r.id].masterId=r.myMaster,si[r.id]=[],void qt.outside["_addSlave"](r);i("slave",[t,r])||(p(this.masterSlaves[r.myMaster])||(this.masterSlaves[r.myMaster]=[]),this.masterSlaves[r.myMaster].push(t),this.elems[r.id]=new ji(r),this.elems[r.id].getDOMElement(),this.elems[r.id].emptyDOMElement(),Tn.mode.isSync()||!this.isBrowserSupport()?(Yn.write("<script type='text/javascript'>if(typeof "+r.orgId+"=='function'){ado['_modeOldCurrentElement'] = ado.elems['"+r.id+"'];"+r.orgId+"();}<\/script>"),v(r.onLoad)&&(r.onLoad(),r.onLoad=!1)):this.slaveStart(r))}else w.warn("Slave "+t+" dropped - there is no registered master with id "+r.myMaster)},this.slaveStart=function(t){if(si[t.id]=[],t.code||v(Zn[t.orgId])){var n=this.elems[t.id],i=t.code?t.code:t.orgId+"()";i="<script>"+i+"<\/script>",n.buff=i,n.begin=!1,n.initBuffor(),n.dispatch()}else ado.start()},this.preview=function(t){!1!==t.enabled&&ln.previewConfig.setDisabled(!1)},this["_configurePreview"]=function(t){ln.previewConfig.setup(t)},this.turnOnPreview=function(){ln.previewConfig.setDisabled(!1)},this.turnOffPreview=function(){ln.previewConfig.setDisabled(!0)},this.getByTag=function(t,n){return n||(n=0),ado.getAllByTag(t)[n]},this.getAllByTag=function(t){var n=[];return Yn.all?n=Yn.all.tags(t):Yn.getElementsByTagName?n=Yn.getElementsByTagName(t):Yn.layers&&(n=Yn.layers[t]),n},this.bind=function(t,n,i){t.addEventListener?t.addEventListener(n,i,!1):t.attachEvent&&t.attachEvent("on"+n,i)},this.isBrowserSupport=function(){return!!(Yn.createElement&&Yn.appendChild&&Yn.getElementById)},this.evaluate=function(t){Wn.eval(t)},this.loadScript=function(t,n,i,r){var e=!1,o=Yn.createElement("script"),s=t.indexOf("javascript:");if(-1!==t.indexOf("javascript:")){var u=t.substr(s);return ado.evaluate(u),void n(this)}var a=function(){e||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(e=!0,n(this))};pi.msie?o.onreadystatechange=a:o.onload=a,o.src=t,l(i)||null===i||(o.charset=i),(ado.busy||!l(Wn.gao)&&Wn.gao.busy)&&-1!=o.src.indexOf("redot.js")&&(pi.msie?o.onreadystatechange=function(){}:o.onload=function(){},setTimeout((function(){a()}),1)),r&&"object"==typeof r&&r.parentNode?r.parentNode.insertBefore(o,r.nextSibling):ado.head.appendChild(o)},this.makeCluster=function(t){var n=this;if(this.a={1:"1000000000000000000",2:"2000000000000000000",3:"4000000000000000000",4:"8000000000000000000",5:"6100000000000000000",6:"2300000000000000000",7:"4600000000000000000",8:"8210000000000000000",9:"6520000000000000000",10:"2150000000000000000",11:"4201000000000000000",12:"8402000000000000000",13:"6904000000000000000",14:"2918000000000000000",15:"4836100000000000000",16:"8672300000000000000",17:"6355600000000000000",18:"2701310000000000000",19:"4412620000000000000",20:"8824250000000000000",21:"6758401000000000000",22:"2517902000000000000",23:"4034914000000000000",24:"8068838000000000000",25:"6127776100000000000",26:"2344553300000000000",27:"4688017600000000000",28:"8277124310000000000",29:"6545348620000000000",30:"2190786350000000000",31:"4281473701000000000",32:"8463847412000000000",33:"6927694924000000000",34:"2954399858000000000",35:"4819689717100000000",36:"8638379534300000000",37:"6376749178600000000",38:"2743598347310000000",39:"4496097784720000000",40:"8883185579450000000",41:"6777261159901000000",42:"2555523209912000000",43:"4011156408934000000",44:"8022203906978000000",45:"6144406812957100000",46:"2388802734815300000",47:"4667714478630700000",48:"8235538847370410000",49:"6560176794741820000",50:"2131243599492650000",51:"4262486099985211000",52:"8425863189971522000",53:"6940737269953054000",54:"2990474529917009000",55:"4891849058934108100",56:"8693698107978206300",57:"6397297304957502700",58:"2785585708815114410",59:"4471171516730328820",60:"8843243032570646750",61:"6796486064051292511",62:"2593963129003485032",63:"4097837248106861164"},this.c="",this.res=function(t,i){var r=[],e=[];for(var o in i)i.hasOwnProperty(o)&&(i[o]<0?e.push(-i[o]):r.push(i[o]));return"/ADD_"+t+"="+n.conv(r)+"/REM_"+t+"="+n.conv(e)},this.conv=function(t){var i=new n.wy;for(var r in t)t.hasOwnProperty(r)&&n.a[t[r]]&&i.add(n.a[t[r]]);return i.get()},this.wy=function(){var t=this;this.value="0000000000000000000",this.add=function(n){for(var i=!1,r="",e=0;e<n.length;e++){var o=parseInt(n.charAt(e))+parseInt(t.value.charAt(e));i&&(o++,i=!1),2==(o=""+o).length&&(i=!0,o=o.charAt(1)),r+=o}t.value=r},this.get=function(){for(var n="",i=t.value.length-1;i>=0;i--)n+=t.value.charAt(i);var r=/0*([1-9][0-9]*)/.exec(n);return r?r[1]:"0"}},p(t))for(var i in t)t.hasOwnProperty(i)&&(this.c+=this.res(i,t[i]));return this.c},this.getById=function(t){return Yn.getElementById(t)},this.closeLivePreview=function(){if(Wt(a,!0)!==Zt){var t=ado["_getPreviewDisableUrl"](Wn.location.href);t&&(Wn.location=t)}},this.start=function(){return qn.startFlags.ready?ado.queue.length>0&&function(t){var n=ado.queue.pop();if(v(n))return n(),!0}():ado.queue.length>0};var o=function(t,n){mi(),t.push(n)};this.onEmit=function(t){o(ni,t)},this.onBeforeRenderAd=function(t){o(ii,t)},this.onAfterRenderAd=function(t){o(ri,t)},this.onReady=function(t){var n=Vn&&Vn.config.id;n&&gi(n,t)},this.onAd=function(t,n){t=vn.trimAdoPrefix(t),Ni(ei,t,n)},this.onMaster=function(t,n){mi(),t=vn.trimAdoPrefix(t),l(oi[t])&&(oi[t]=[]),oi[t].push(n)},this.stopSlave=function(t,n){if(Tn.mode.isSync()||!Tn.mode.isFIF()||!ado.fif.sequential)throw ti;var i=ci.getLast(n);l(i)?w.error("stopSlave: unknown masterId"):qt.outside["_stopSlave"](i,t)},this.isAd=function(t,n){return mi(),function(t,n){if(!t)return null;var i,r,e=Li(t),o=Li(n),s=!n||n==t,u=!s&&n!=o.instanceId,a=t!=e.instanceId;if(s)return bi(a?fi[e.zoneId]:e.instanceId);if(a){if(r=u?fi[o.zoneId]:o.instanceId,!(i=ci.getFirstInMasterInstance(e.zoneId,r)))return yi(e.zoneId,r)}else i=e.instanceId,r=u?ui[i]?ui[i].masterInstanceId:null:o.instanceId;return r?ui[i]&&ui[i].masterId!=o.zoneId?null:bi(i,r):null}(t,n)},this["_registerPassback"]=function(t,n,i,r){if(ado.features.passback){var e=Tn.mode.isAsync()?Vn:ado["_modeOldCurrentElement"];e&&e.config.clearId===t?(ai[n]=e,e["_registerPassback"](n,i,r)):w.error("Can not register passback for "+t+" - this element is not currently executed.")}},this.executePassback=function(t,n){var r=ai[t];r&&(i("executePassback",[t,n])||r.executePassback(n))},this.getPassbackCustomData=function(t){var n=ai[t];return n?n.getPassbackCustomData():"undefined"},this.ready=function(t){qn.startFlags.remove(t)&&ado.start()},this["_getMaster"]=function(t){mi();var n=di.getMasterIds(t);return n||ci.getFirst(t)&&(n=t),n};var s=function(t){var n,i=t.instanceId||ci.getLast(t.zoneId);return i&&li[i]?n=li[i]:li[t.zoneId]?n=li[t.zoneId]:(n=new E,li[t.zoneId]=n),n};this.setMasterVar=function(t,n,i){mi();var r,e=Li(t),o=di.getMasterIds(Li.zoneId);if(o){var u=o.length>1?o[0]:o,a=ci.getLast(u);r=li[a]}else r=s(e);return r.setVar(n,i)},this.setSlaveVar=function(t,n,i,r){mi();var e=Li(t),o=s(e),u=o.getVar(i);u instanceof _||(u=new _,o.setVar(i,u)),u.setValue(n,r)}}),ji,(function(t,n,i,r){var e=t!=n&&n,o=!n,s=t==n;ui[t]||(Di(t),e&&(ui[t].masterId=hi[n],ui[t].masterInstanceId=n));var u=ui[t];switch(i){case"register_onready":gi(t,r);break;case"received":r&&(s?!0!==r&&u.setReceived(r):u.setReceived(o?r:"undefined"));break;case"remove":o&&(Ei(t),u.eachSlaveWithUnregistered((function(t){Ei(t)})));break;case"prepared":r&&ui[t].hasAd&&u.processOnBeforeRenderAd();break;case"processed":r&&u.setProcessed();break;case"rendered":r&&u.setRendered();break;case"hasAd":u.setHasAd(r);break;case"empty":u.setEmpty(r);break;case"stop":u.begun||(u.setHasAd(!1),u.setEmpty(!0));break;case"begin":p(Wn.adserver_emissions)||(Wn.adserver_emissions={}),p(Wn.adserver_emissions2)||(Wn.adserver_emissions2={});var a=function(t,n){for(var i in t){var r=t[i];!0!==r&&!1!==r||(n[i]=r)}},c=r.adserverEmissions;a(c[0],Wn.adserver_emissions),a(c[1],Wn.adserver_emissions2),(u["_isBuffer"]||u.clearId===r.placementId)&&u.processOnServerEmission(Wn.adserver_emissions2)}}))}();