(()=>{"use strict";var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();const t={tagConfigUrl:"https://na.nawpush.com/tags",version:"3.97.0",devModeQueryStringParameter:"adm_is_dev",adManagerWindowNamespace:"AdManager",helpersWindowNamespace:"_CAdM",overrideConfigWindowNamespace:"__adm_override",tagIdIdentifier:"data-admpid",noAutostartIdentifier:"data-admman",customDomainIdentifier:"data-custom-domain",devMode:!window.location.search.includes("_adm_debug=1"),auctionUrl:"https://ssp.zog.link/get/",initTrackingUrl:"https://metricswpsh.com",subCookieName:"source",subQueryStringKey1:"promo",subQueryStringKey2:"source",vastProxyAuctionRoute:"/a/",vastProxyWrappedUrlPath:"/c/",adManagerTrackingProxyPath:"/api/track",sentryDSNUrl:"MISSING_ENV_VAR".SENTRY_DSN,buildEnv:"production",buildUrl:"https://js.wpadmngr.com/static/adManager",isMB:!!parseInt("0",10),sharedStorageUrl:"https://storage.multstorage.com/log/count.html",keywordsServiceUrl:"https://ntvpforever.com/keywords"};class n{constructor(e,t=!1){this.logPrefix=e,this.silentMode=t}info(...e){!this.silentMode&&console.info(`%c [${this.logPrefix}] -`,"color:cyan",...e)}warn(...e){!this.silentMode&&console.warn(`%c [${this.logPrefix}] -`,"color:orange",...e)}error(...e){console.error(`%c [${this.logPrefix}] -`,"color:red",...e)}}function r(e,t,n,r,i){const o=new Error(e);return o.config=t,n&&(o.code=n),o.request=r,o.response=i,o.isHttpError=!0,o.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},o}function i(e,t){var n;if(null!=e)if("object"!=typeof e&&(e=[e]),n=e,"[object Array]"===Object.prototype.toString.call(n))for(let n=0,r=e.length;n{let o=`${e}${n}=${encodeURIComponent(t[n])}`;return r!==i.length-1&&(o+="&"),o}),"");return`${e}?${n}`}(c,e.params),!0),s.timeout=e.timeout,s.onreadystatechange=function(){if(!s||4!==s.readyState)return;if(0===s.status&&(!s.responseURL||0!==s.responseURL.indexOf("file:")))return;const i="getAllResponseHeaders"in s?s.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return n?{...e,[n?.toLowerCase()]:r}:e}),{}):null;const o={data:e.responseType&&"text"!==e.responseType?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:i,config:e,request:s};!function(e,t,n){!n.status||n.status>=200&&n.status<300?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,o),s=null},s.onabort=function(){s&&(n(r("Request aborted",e,"ECONNABORTED",s)),s=null)},s.onerror=function(){n(r("Network Error",e,null,s)),s=null},s.ontimeout=function(){let t=`timeout of ${e.timeout}ms exceeded`;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(r(t,e,"ECONNABORTED",s)),s=null},"setRequestHeader"in s&&i(a,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete a[t]:s.setRequestHeader(t,e)})),void 0!==e.withCredentials&&(s.withCredentials=!!e.withCredentials),e.responseType)try{s.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}o||(o=null),s.send(o)}))}function a(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}const s=new class{constructor(e){this.defaults={timeout:0}}dispatchRequest(e){var t;return null!==(t=e.data)&&"object"==typeof t&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/json;charset=utf-8",e.data=JSON.stringify(e.data)),o(e).then((function(e){return e.data=a(e.data),e}),(function(e){return e&&e.response&&(e.response.data=a(e.response.data)),Promise.reject(e)}))}get(e,t={}){return this.dispatchRequest({...t,url:e,method:"get"})}post(e,t={},n={}){return this.dispatchRequest({...n,url:e,method:"post",data:n.data?n.data:t})}};function c(e){return"[object Array]"===Object.prototype.toString.call(e)}function u(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(let n=0,r=e.length;n0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=i+n?(i=a,[4,w(0)]):[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return++o,[3,1];case 4:return[2,r]}}))}))}function S(e){e.then(void 0,(function(){}))}function k(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function _(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function x(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function C(e,t){return 0===(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=A(e=_(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=A(e=_(e,[3301882366,444984403]),[0,e[0]>>>1])}function P(e){return parseInt(e)}function I(e){return parseFloat(e)}function E(e,t){return"number"==typeof e&&isNaN(e)?t:e}function O(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}function N(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function D(e,t,n){var r=Object.keys(e).filter((function(e){return!function(e,t){for(var n=0,r=e.length;n=4}function L(){var e=window,t=navigator;return O(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function U(){var e=window,t=navigator;return O(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}var F={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var $={fonts:function(){var e=this;return M((function(t,n){var r=n.document;return f(e,void 0,void 0,(function(){var e,t,n,i,o,a,s,c,u,l,d;return g(this,(function(h){switch(h.label){case 0:return(e=r.body).style.fontSize="48px",(t=r.createElement("div")).style.setProperty("visibility","hidden","important"),n={},i={},o=function(e){var n=r.createElement("span"),i=n.style;return i.position="absolute",i.top="0",i.left="0",i.fontFamily=e,n.textContent="mmMwWLliI0O&1",t.appendChild(n),n},a=function(e,t){return o("'".concat(e,"',").concat(t))},s=function(){for(var e={},t=function(t){e[t]=j.map((function(e){return a(t,e)}))},n=0,r=R;n')}((function(e,t){for(var n={},r={},i=0,o=Object.keys(F);i=3||n.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&n.push(i.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return E(I(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return E(P(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return E(P(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var r,i=(r=(new Date).getFullYear(),-Math.max(I(new Date(r,0,1).getTimezoneOffset()),I(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(Math.abs(i))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(H()||(e=window,t=navigator,O(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!H())))try{return!!window.indexedDB}catch(e){return!0}},platform:function(){var e,t=navigator.platform;return"MacIntel"!==t||!U()||O(["safari"in(e=window),!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3?t:function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return O(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone"},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",n=0,r=Object.keys(e).sort();n`
`)).join(""),t.setAttribute("style","width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;"),document.body.appendChild(t);for(const t of e)if(!document.querySelector(`#${t}`))return!0;return!1}();return document.querySelectorAll("._adbchkr").forEach((e=>document.body.removeChild(e))),e}async function G({useScriptLoadCheck:e=!0}={}){if(window.self!==window.top)return!1;const t=J(),n=e&&await new Promise((e=>{const t=document.createElement("script");t.async=!0,t.src="https://js.capndr.com/advertising.js",t.onload=()=>e(!1),t.onerror=()=>e(!0),document.head.appendChild(t)}));return n||t}function K(e){return"string"==typeof e}const Q={write:function(e,t,n,r,i,o){const a=[];a.push(`${e}=${encodeURIComponent(t)}`),"number"==typeof n&&a.push("expires="+new Date(n).toUTCString()),K(r)&&a.push("path="+r),K(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}};function Y(e){const t="0123456789abcdef";function n(e){let n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,a){return r(function(e,t){return e<>>32-t}(r(r(t,e),r(i,a)),o),n)}function o(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function a(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function c(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}let u;const l=function(e){let t;const n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t>2]|=e.charCodeAt(t)<>2]|=128<localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{X.set("__try",1),X.get("__try"),X.remove("__try")}catch(e){X=Z}const ee=X;class te{constructor(){this.localStoreKey="_ytbaсс",this.betweenUpdateDelayMins=60,this.authStatus=!1,this.nextUpdate=null}lazyAccountCheck(){return!!this.authStatus||(this.detectYouTubeAuth().then((e=>{this.setYoutubeAuthMarker(e,e?null:Date.now())})).catch((()=>null)),!1)}setYoutubeAuthMarker(e,t=null){this.authStatus=e,this.nextUpdate=t,ee.set(this.localStoreKey,JSON.stringify({authStatus:e,nextUpdate:t}))}isUpdatePossible(){return!this.nextUpdate||function(e,t){if(!e||!t)return null;const n=60*t*1e3;return Date.now()-e>n}(this.nextUpdate,this.betweenUpdateDelayMins)}loadYoutubeAuthMarker(){const e=ee.get(this.localStoreKey);if(e)try{const t=JSON.parse(e);this.authStatus=t.authStatus,this.nextUpdate=t.nextUpdate}catch(e){}}detectYouTubeAuth(){const e=document.createElement("img");return e.referrerPolicy="no-referrer",e.src="https://accounts.google.com/ServiceLogin?passive=true&continue=https%3A%2F%2Fm.youtube.com%2Ffavicon.ico&uilel=3&hl=en&service=youtube",new Promise((t=>{e.onload=()=>{t(!0)},e.onerror=()=>{t(!1)}}))}}function ne(e){const t="0123456789abcdef";function n(e){let n,r="";for(n=0;n<=3;n++)r+=t.charAt(e>>8*n+4&15)+t.charAt(e>>8*n&15);return r}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,a){return r(function(e,t){return e<>>32-t}(r(r(t,e),r(i,a)),o),n)}function o(e,t,n,r,o,a,s){return i(t&n|~t&r,e,t,o,a,s)}function a(e,t,n,r,o,a,s){return i(t&r|n&~r,e,t,o,a,s)}function s(e,t,n,r,o,a,s){return i(t^n^r,e,t,o,a,s)}function c(e,t,n,r,o,a,s){return i(n^(t|~r),e,t,o,a,s)}let u;const l=function(e){let t;const n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t>2]|=e.charCodeAt(t)<>2]|=128<sessionStorage.setItem(e,t),get:e=>sessionStorage.getItem(e),remove:e=>sessionStorage.removeItem(e)};try{ce.set("__try",1),ce.get("__try"),ce.remove("__try")}catch(e){ce=se}const ue=ce;var le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{};var de,he,pe=(de=function(e,t){!function(n,r){var i="function",o="undefined",a="object",s="string",c="major",u="model",l="name",d="type",h="vendor",p="version",m="architecture",f="console",g="mobile",v="tablet",w="smarttv",b="wearable",y="embedded",S="Amazon",k="Apple",_="ASUS",x="BlackBerry",C="Browser",A="Chrome",T="Firefox",P="Google",I="Huawei",E="LG",O="Microsoft",N="Motorola",D="Opera",M="Samsung",j="Sharp",R="Sony",H="Xiaomi",L="Zebra",U="Facebook",F="Chromium OS",$="Mac OS",q=function(e){for(var t={},n=0;n0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;d+=2}},J=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var i=0;i2&&(e[u]="iPad",e[d]=v),e},this.getEngine=function(){var e={};return e[l]=r,e[p]=r,W.call(e,w,y.engine),e},this.getOS=function(){var e={};return e[l]=r,e[p]=r,W.call(e,w,y.os),S&&!e[l]&&b&&"Unknown"!=b.platform&&(e[l]=b.platform.replace(/chrome os/i,F).replace(/macos/i,$)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return w},this.setUA=function(e){return w=typeof e===s&&e.length>350?B(e,350):e,this},this.setUA(w),this};Q.VERSION="1.0.35",Q.BROWSER=q([l,p,c]),Q.CPU=q([m]),Q.DEVICE=q([u,h,d,f,g,w,v,b,y]),Q.ENGINE=Q.OS=q([l,p]),e.exports&&(t=e.exports=Q),t.UAParser=Q;var Y=typeof n!==o&&(n.jQuery||n.Zepto);if(Y&&!Y.ua){var Z=new Q;Y.ua=Z.getResult(),Y.ua.get=function(){return Z.getUA()},Y.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"==typeof window?window:le)},de(he={exports:{}},he.exports),he.exports);function me(){const e=(new pe).getResult();return e.device.type=e.device.type||"desktop",e}const fe={write:function(e,t,n,r,i,o){const a=[];a.push(`${e}=${encodeURIComponent(t)}`),"number"==typeof n&&a.push("expires="+new Date(n).toUTCString()),ie(r)&&a.push("path="+r),ie(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}},ge="source",ve="promo",we="source";const be=new ae;let ye={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{ye.set("__try",1),ye.get("__try"),ye.remove("__try")}catch(e){ye=be}const Se=ye;let ke="_adm_erd";const _e="_adm_erdso";let xe="_session-key";const Ce="_session-key_so";function Ae(e,t){let n;try{n=window.top!==window&&window.location.origin===window.top.location.origin&&3826===t}catch{n=!1}ke=n?_e:ke,xe=n?Ce:xe;const{referrer:r}=document,i=Se.get(xe),o=r.split("/")[2]||"";let a="";return i?e===i?a=Se.get(ke):e!==i&&(a=o,Se.set(xe,e)):(a=o,Se.set(xe,e)),Se.set(ke,a),a}function Te(){const e="cb_acce",t=Se.get(e)||0;return t||window.addEventListener("devicemotion",(t=>{null!==t.accelerationIncludingGravity.x&&Se.set(e,1)})),Number(t)}function Pe(){const e="cb_gyro",t=Se.get(e)||0;return t||window.addEventListener("deviceorientation",(t=>{null!==t.alpha&&Se.set(e,1)})),Number(t)}function Ie(e){const t=e.components.plugins.value?.reduce(((e,t)=>(e.push(t.name),e)),[]),n=e.components.languages.value?.reduce(((e,t)=>(t.forEach((t=>{e.includes(t)||e.push(t)})),e)),[]);return{plugins:t||[],languages:n||[],fonts:e.components.fonts.value||[],fontPreferences:e.components.fontPreferences.value||{},platform:e.components.platform.value||"",colorDepth:e.components.colorDepth.value||0,deviceMemory:e.components.deviceMemory.value||0,hardwareConcurrency:e.components.hardwareConcurrency.value||0,indexedDB:e.components.indexedDB.value||!1,sessionStorage:e.components.sessionStorage.value||!1,localStorage:e.components.localStorage.value||!1,cookiesEnabled:e.components.cookiesEnabled.value||!1,colorGamut:e.components.colorGamut.value||""}}function Ee(e,t,n,r,i){const o=new Error(e);return o.config=t,n&&(o.code=n),o.request=r,o.response=i,o.isHttpError=!0,o.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},o}function Oe(e){return new Promise((function(t,n){let r=e.data;const i=e.headers;let o=new XMLHttpRequest;const a=(s=e.baseURL,c=e.url,s&&!function(e){return/^([a-z][a-z\d\\+\-\\.]*:)?\/\//i.test(e)}(c)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(s,c):c);var s,c;if(o.open(e.method.toUpperCase(),function(e,t){if(!t)return e;const n=Object.keys(t).reduce(((e,n,r,i)=>{let o=`${e}${n}=${encodeURIComponent(t[n])}`;return r!==i.length-1&&(o+="&"),o}),"");return`${e}?${n}`}(a,e.params),!0),o.timeout=e.timeout,o.onreadystatechange=function(){if(!o||4!==o.readyState)return;if(0===o.status&&(!o.responseURL||0!==o.responseURL.indexOf("file:")))return;const r="getAllResponseHeaders"in o?o.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return n?{...e,[n?.toLowerCase()]:r}:e}),{}):null;const i={data:e.responseType&&"text"!==e.responseType?o.response:o.responseText,status:o.status,statusText:o.statusText,headers:r,config:e,request:o};!function(e,t,n){!n.status||n.status>=200&&n.status<300?e(n):t(Ee("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,i),o=null},o.onabort=function(){o&&(n(Ee("Request aborted",e,"ECONNABORTED",o)),o=null)},o.onerror=function(){n(Ee("Network Error",e,null,o)),o=null},o.ontimeout=function(){let t=`timeout of ${e.timeout}ms exceeded`;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Ee(t,e,"ECONNABORTED",o)),o=null},"setRequestHeader"in o&&oe(i,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete i[t]:o.setRequestHeader(t,e)})),void 0!==e.withCredentials&&(o.withCredentials=!!e.withCredentials),e.responseType)try{o.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}r||(r=null),o.send(r)}))}function Ne(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}const De=new class{constructor(e){this.defaults={timeout:0}}dispatchRequest(e){var t;return null!==(t=e.data)&&"object"==typeof t&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/json;charset=utf-8",e.data=JSON.stringify(e.data)),Oe(e).then((function(e){return e.data=Ne(e.data),e}),(function(e){return e&&e.response&&(e.response.data=Ne(e.response.data)),Promise.reject(e)}))}get(e,t={}){return this.dispatchRequest({...t,url:e,method:"get"})}post(e,t={},n={}){return this.dispatchRequest({...n,url:e,method:"post",data:n.data?n.data:t})}};function Me(e,t){if(!e||!t)return null;const n=60*t*1e3;return Date.now()-e>n}function je(){return new Promise((function(e,t){let n="Unknown";function r(t){e({isPrivate:t,browserName:n})}function i(e){return e===eval.toString().length}function o(){void 0!==navigator.maxTouchPoints?function(){try{const e=window.indexedDB.open("test",1);e.onupgradeneeded&&(e.onupgradeneeded=function(e){const t=e.target.result;try{t.createObjectStore("test",{autoIncrement:!0}).put(new Blob),r(!1)}catch(e){/BlobURLs are not yet supported/.test(e.message)?r(!0):r(!1)}}),r(!1)}catch(e){r(!1)}}():function(){const e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch(e){return r(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch(e){return r(!0)}r(!1)}()}function a(){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(e,t){r(t{return t=e,Se.remove(Re),void Se.set(He,JSON.stringify({fpValue:t.fp,fpValueStr:t.fp_str,createdAt:Date.now()}));var t})),n}const Fe={utm_source:"utm1",utm_medium:"utm2",utm_campaign:"utm3",utm_content:"utm4",campaign:"camp"};const $e={devModeQueryStringParameter:"adm_is_dev",utm_mapping:!1,iabcat:25,iab_extended:"25-3",label:1,script_defer:!1,tagId:null,default_keywords:[]};function qe({visitorId:e,isAdBlock:t,sessionId:n,isTubeSite:r,fingerprint:i,userAgentData:o={},tagAbVersion:a="a",magmaClickResolverEnable:s,config:c=$e,v2:u=0,siteId:l=null}){const d=function(){const e=location.search.split("?");return e[e.length-1].split("&").reduce(((e,t)=>{const[n,r]=t.split("=");return n&&(e[n]=r),e}),{})}(),h=Boolean(window.web3||window.ethereum),p=function(){const{title:e}=document,t=document.head.querySelector("meta[name=keywords]"),n=document.head.querySelector("meta[name=description]");let r=e;return[t,n].forEach((e=>{r+=e?` ${e.content}`:""})),r.trim().replace(/\s?[,.:;!?/|&-]?\s/g,(e=>"&"===e||"|"===e?"":","))}(),m=function(e,t,n={}){const r="_tp_",i={};return e.forEach((e=>{const o=Se.get(r+e),a=t[e]||t[Fe[e]]||t[n[e]];i[e]=a||o||"",a&&Se.set(r+e,a)})),i}(["utm_source","utm_medium","utm_campaign","utm_content","campaign"],d,c.utm_mapping);let f=function(e){let t=0;return null!==fe.read(ge)&&(t=fe.read(ge)),[ve,we].forEach((n=>{e[n]&&(fe.write(ge,e[n],Date.now()+31536e6),t=e[n])})),Number(t)}(d);s&&0===f&&m.campaign&&(m.utm_source="mck",m.utm_medium=m.campaign,m.utm_campaign=l,f=Number(l));const g=function(){try{const e="topsids";if("browsingTopics"in document&&document?.featurePolicy?.allowsFeature("browsing-topics")){document.browsingTopics().then((t=>{const n=t.map((e=>e.topic));Se.set(e,JSON.stringify(n))}));const t=Se.get(e);return t&&JSON.parse(t)||[]}return[]}catch{return[]}}(),v=Ue(c.tagId,i);return{userId:e,isAdBlock:t,isMetaMaskActive:h,isSslProtocol:"https:"===window.location.protocol,resolution:[+(screen&&screen.width||window.outerWidth),+(screen&&screen.height||window.outerHeight)],labels:ue.get("labels")||"",sub:f,title:window.document.title,tags:"",debugMode:"1"===d[c.devModeQueryStringParameter],holdableQSParams:m,qs:d,ua:me(),timezone:Math.trunc((new Date).getTimezoneOffset()/-60),timezoneOlson:window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone,entryReferrerDomain:Ae(n,c.tagId),magmaSourceId:fe.read("magma_source"),keywords:encodeURIComponent(p),isAccelerometer:Te(),isGyroscope:Pe(),isTubeSite:r,fingerprintParams:Ie(i),page:encodeURIComponent(window.location.href).replace(/%2F/g,"/"),userAgentData:o,visitorId:v?v.fp:null,visitorIdString:v?v.fp_str:"",v2:u,iabCategory:c.iabcat,iabCategoryExtended:c.iab_extended,mainCategory:c.label,scriptDefer:c.script_defer,tagAbVersion:a,defaultKeywords:c.default_keywords,topics:g}}const Ve=new class{constructor(){this.state={}}set(e,t){this.state[e]=t}get(e){return this.state[e]||null}remove(e){delete this.state[e]}};let ze={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{ze.set("__try",1),ze.get("__try"),ze.remove("__try")}catch(e){ze=Ve}const Be=ze;class We{constructor(e){this.iframeUrl=e,this.iframe=null,this.iframeLoaded=!1,this.eventsQueue=[],this.messagesQueue={}}init(){this.iframe=document.createElement("iframe"),this.iframe.style.display="none",this.iframe.src=this.iframeUrl,document.body.appendChild(this.iframe),this.iframe.onload=()=>{this.iframeLoaded=!0,this.eventsQueue.forEach((e=>{this.iframe.contentWindow.postMessage(e,"*")})),this.eventsQueue=[]},window.addEventListener("message",(e=>this.handleIframeResponse(e.data)))}handleIframeResponse({messageId:e,value:t}){e&&this.messagesQueue[e]&&(this.messagesQueue[e].resolve(t),clearTimeout(this.messagesQueue[e].rejectTimeout),delete this.messagesQueue[e])}send(e,t,n){return new Promise(((r,i)=>{const o=(Math.random()+1).toString(36).substring(5);this.iframeLoaded?this.iframe.contentWindow.postMessage({action:e,messageId:o,key:t,value:n},"*"):this.eventsQueue.push({action:e,messageId:o,key:t,value:n}),this.messagesQueue[o]={resolve:e=>r(e),rejectTimeout:setTimeout((()=>i(new Error("iFrame did not respond"))),50)}}))}async set(e,t){Be.set(e,JSON.stringify(t)),await this.send("SET",e,t)}async get(e){return await this.synchronize(e)}async remove(e){Be.remove(e),await this.send("REMOVE",e),await this.synchronize(e)}clear(){return this.send("CLEAR")}async synchronize(e){let t,n;try{t=await this.send("GET",e);const r=Be.get(e)||null;n=r?JSON.parse(r):null}catch(e){n=null}if(!t&&n){try{await this.send("SET",e,n)}catch(e){}return n}return t?(Be.set(e,JSON.stringify(t)),t):null}}function Je(e,t,n,r,i){const o=new Error(e);return o.config=t,n&&(o.code=n),o.request=r,o.response=i,o.isHttpError=!0,o.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},o}function Ge(e,t){var n;if(null!=e)if("object"!=typeof e&&(e=[e]),n=e,"[object Array]"===Object.prototype.toString.call(n))for(let n=0,r=e.length;n{let o=`${e}${n}=${encodeURIComponent(t[n])}`;return r!==i.length-1&&(o+="&"),o}),"");return`${e}?${n}`}(a,e.params),!0),o.timeout=e.timeout,o.onreadystatechange=function(){if(!o||4!==o.readyState)return;if(0===o.status&&(!o.responseURL||0!==o.responseURL.indexOf("file:")))return;const r="getAllResponseHeaders"in o?o.getAllResponseHeaders().split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return n?{...e,[n?.toLowerCase()]:r}:e}),{}):null;const i={data:e.responseType&&"text"!==e.responseType?o.response:o.responseText,status:o.status,statusText:o.statusText,headers:r,config:e,request:o};!function(e,t,n){!n.status||n.status>=200&&n.status<300?e(n):t(Je("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,i),o=null},o.onabort=function(){o&&(n(Je("Request aborted",e,"ECONNABORTED",o)),o=null)},o.onerror=function(){n(Je("Network Error",e,null,o)),o=null},o.ontimeout=function(){let t=`timeout of ${e.timeout}ms exceeded`;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Je(t,e,"ECONNABORTED",o)),o=null},"setRequestHeader"in o&&Ge(i,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete i[t]:o.setRequestHeader(t,e)})),void 0!==e.withCredentials&&(o.withCredentials=!!e.withCredentials),e.responseType)try{o.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}r||(r=null),o.send(r)}))}function Qe(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}const Ye=new class{constructor(e){this.defaults={timeout:0}}dispatchRequest(e){var t;return null!==(t=e.data)&&"object"==typeof t&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/json;charset=utf-8",e.data=JSON.stringify(e.data)),Ke(e).then((function(e){return e.data=Qe(e.data),e}),(function(e){return e&&e.response&&(e.response.data=Qe(e.response.data)),Promise.reject(e)}))}get(e,t={}){return this.dispatchRequest({...t,url:e,method:"get"})}post(e,t={},n={}){return this.dispatchRequest({...n,url:e,method:"post",data:n.data?n.data:t})}},Ze="_kwrds",Xe={keywords:{},pages_count:0};class et{constructor(e){this.keywordsHistory=Xe,this.sharedStorage=e}mapForAuction(e){const t={keywords:[],pages_count:e.pages_count};return t.keywords=Object.keys(e.keywords).map((t=>({keyword:t,counter:e.keywords[t].length||0}))),t}mapForManager(e){const t=Date.now();return{keywords:e.reduce(((e,n)=>(e[n]||(e[n]=[]),e[n].push(t),e)),{}),pages_count:1}}filterHistoryFromExpired(e){const t=new Set,{keywords:n}=e;return Object.keys(n).forEach((e=>{const r=n[e];n[e]=r.filter((e=>{const n=e+2592e5{n[e]||(n[e]=[]),n[e].push(...t)})),n}async getCurrentHistory(){if(!this.keywordsHistory.pages_count){const e=await this.getFromStorage();this.keywordsHistory=e}return this.mapForAuction(this.keywordsHistory)}async asyncProcessKeywords(e,t){try{const n=await this.getFromAuctionAndMap(e,t),r=await this.getFromStorage(),i=this.mergeKeywords(r.keywords,n.keywords),o=r.pages_count+n.pages_count;this.keywordsHistory={keywords:i,pages_count:o},this.sharedStorage.set(Ze,JSON.stringify(this.keywordsHistory)).catch((()=>null))}catch{return null}}async getFromStorage(){const e=await this.sharedStorage.get(Ze).catch((()=>null));let t;try{t=JSON.parse(e)||Xe,t=this.filterHistoryFromExpired(t)}catch{t=Xe}return t}async getFromAuctionAndMap(e,t){const{data:n}=await Ye.post(e,{ad_tags:t}).catch((()=>({})));let r=Xe;return n&&n.keywords&&n.keywords.length&&(r=this.mapForManager(n.keywords)),r}}function tt(e,t){return e.replace(".js",{modern:".m.js",legacy:".l.js"}[t])}var nt=["inpage","native","calendar","popunder"],rt=[360974],it=["inpage","native","push","popunder","resale-popunder","banner","extension","calendar","interstitial","direct_link"],ot="noModule"in document.createElement("script");function at(e){var{label:t,iabcat:n,isPhpLoaderActive:r,adFormats:i,hashHelpers:o,isAdBlock:a,legacySpotsExtend:s,hashService:u}=e;return i.map((e=>{var{createHashPath:i}=o,l=ot?"modern":"legacy",d=e.assets["".concat(l,"_js")],p=null!=d?d:function(e,t,n){return!it.includes(e.type)||n?e.assets.js:e.assets.js.map((e=>e.includes(".m.js")||e.includes(".l.js")?e:tt(e,t)))}(e,l,r);e.assets.js=p.map((t=>{var n={src:t,type:l};return!r&&i&&nt.includes(e.type)&&(n.src=u.convertToHashedUrl(n.src,i)),n}));var m=s[e.type];return e.spots=e.spots.map(((o,s)=>(o.config.label=t,o.config.iabcat=n,o.config.adm_loader=!!i||r,"banner"===e.type&&"1x1"===o.config.options.size&&(o.delay_ms=3e3),rt.includes(o.config.spot_id)&&"in_stream_ad"===e.type&&(o.delay_ms=24e4),a&&"popunder"===e.type&&(o.config.options.bind_to=null,o.config.options.ignore_to=null),i&&"popunder"===e.type&&(o.config.scripts.interstitial=u.convertToHashedUrl(o.config.scripts.interstitial)),m?c(m)&&m[s]?h(o,m[s]):h(o,m):o))),e}))}const st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",ct=new Uint8Array(256);for(let e=0;e<64;e++)ct[st.charCodeAt(e)]=e;ct[45]=62,ct[95]=63;const ut=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],lt=((e=>{const t={};e.forEach(((e,n)=>t[e]=n))})(ut),String.fromCharCode.bind(String),e=>{let t,n,r,i,o="";const a=e.length%3;for(let a=0;a255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=ut[t>>18&63]+ut[t>>12&63]+ut[t>>6&63]+ut[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o});class dt{constructor(e){var{wrappedUrlPath:t}=e;this.wrappedUrlPath=t}extendedEncode(e){return p(lt(e),{sw:"gu1",Sw:"gu2",sW:"gu3",SW:"gu4"})}wrapVastUrl(e,t){var n=e.includes("http")?e:"https://".concat(e);return"".concat(n).concat(this.wrappedUrlPath).concat(this.extendedEncode(t))}}const ht=new class{constructor(){this.state={}}set(e,t){this.state[e]=t}get(e){return this.state[e]||null}remove(e){delete this.state[e]}};let pt={set:(e,t)=>localStorage.setItem(e,t),get:e=>localStorage.getItem(e),remove:e=>localStorage.removeItem(e)};try{pt.set("__try",1),pt.get("__try"),pt.remove("__try")}catch(e){pt=ht}const mt=pt;function ft(e,t){return Math.floor(Math.random()*(t-e)+e)}var gt="__adm_user_id";function vt(){var e=mt.get(gt);if(e)return e;var t=ft(1,0x10000000000000000);return mt.set(gt,t),String(t)}window.__adFormats=window.__adFormats||{},window.__formatsGetters=window.__formatsGetters||{};const wt=window.__adFormats,bt=window.__formatsGetters;function yt(e,t){if(wt[e])return t(wt[e]);bt[e]||(bt[e]=[]),bt[e].push(t)}function St(e){return e[Math.floor(Math.random()*e.length)]}function kt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object.keys(e).filter((t=>{var n=e[t];return!(!c(n)||!n.length)||!!u(n)&&Object.keys(n).filter((e=>void 0!==n[e])).length}));return r.length?r.every((n=>t[n]&&t[n](e[n]))):n}function _t(e,t){var{env:n,Logger:r}=t,i=function(e){var{ua:t,qs:n,entryReferrerDomain:r}=e;return{platforms:e=>e.includes(t.device.type||"desktop"),browsers:e=>e.includes(t.browser.name),urls:e=>e.some((e=>window.location.href.includes(e))),ls:e=>Object.keys(e).every((t=>localStorage.getItem(t)===e[t])),ss:e=>Object.keys(e).every((t=>localStorage.getItem(t)===e[t])),qs:e=>Object.keys(e).every((t=>n[t]===e[t])),cookies:e=>(e=Array.isArray(e)?e:[e]).some((e=>Object.keys(e).every((t=>e[t]===Q.read(t))))),vars:e=>Object.keys(e).every((t=>window[t]===e[t])),entry_referrer:e=>e.some((e=>(":direct:"===e||""===e)&&""===r||e&&r.includes(e)))}}(n);return e.filter((e=>e.ignore&&e.ignore.length&&e.ignore.some((e=>kt(e,i)))?(r.warn("spot was excluded by ignore rules",e),!1):!e.bind||!e.bind.length||e.bind.some((t=>{var n=kt(t,i,!0);return n||r.warn("spot was not bind by conditions",e),n}))))}function xt(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}class Ct{constructor(e){this.script=e}start(){return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){xt(o,r,i,a,s,"next",e)}function s(e){xt(o,r,i,a,s,"throw",e)}a(void 0)}))}}((function*(){return!1}))()}runScript(){var e=document.createElement("div");return e.innerHTML=this.script,e.childNodes.forEach((e=>{var t=e.cloneNode(!0);if("SCRIPT"===e.nodeName){for(var n=document.createElement("script"),r=0;r{if(!t)return mt.remove(jt),e;try{var n=JSON.parse(mt.get(jt));if(n&&n.ttl+Pt>Date.now())return[e[n.version]]}catch(e){mt.remove(jt)}var r=(e=>Math.floor(Math.random()*e.length))(e);return mt.set(jt,JSON.stringify({version:r,ttl:Date.now()})),[e[r]]};function Ht(e,t,n){var r=It[t];if(!e||!r)return null;var i=r[n];return"".concat(e.protocol,"//").concat(i.replace("$domain",e.host))}function Lt(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t{var n,r,i=Ft(Ft({},t),{},{autostart:null===(n=null!==(r=t.autostart)&&void 0!==r?r:e.autostart)||void 0===n||n});return e.customDomain&&e.isTagCD&&(i.config.primary_auction_url=Ht(e.customDomain,e.type,"auction")),i})).filter((e=>e.autostart));r.length&&(e.loadAssets(),e.provideSpotsToLibrary(r))}}))()}runSpot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{spot_id:t}=e;if(t){var n=this.spots.find((e=>e.config.spot_id===t));n&&(e=Ft(Ft({},n),e)),this.filterSpots([n]).length&&(this.loadAssets(),yt(this.connectionName,(t=>{this.Logger.info("Run ".concat(this.type," spot"),e),this.provideSpotToLibrary(e,t)})))}}provideSpotsToLibrary(e){var t=t=>e.forEach((e=>this.provideSpotToLibrary(e,t)));yt(this.connectionName,(e=>t(e)));try{new Event("try"),window.addEventListener(this.connectionName,(e=>{"function"==typeof e._init&&t(e._init)}),!1)}catch(e){var n=window[this.connectionName];"function"!=typeof n&&(n=function(e,t,r){n._list.forEach((n=>{"function"==typeof n&&n(e,t,r)}))}),n._list||(n._list=[]),n._list.push((e=>{"function"==typeof e&&t(e)})),window[this.connectionName]=n}}applySpotConfigTests(e){var t,n,r=null==e||null===(t=e.options)||void 0===t?void 0:t.split_test;if(null==e||null===(n=e.options)||void 0===n||!n.has_split_tests||!r)return e;var i=ft(1,100),o=St(e.test_options);return r.traffic_volumet(o,this.env,this.providedDependencies,i);n?setTimeout(a,n):a()}filterSpots(e){return _t(e,{env:this.env,Logger:this.Logger})}loadAssets(){if(!this.isAssetsLoaded){this.isAssetsLoaded=!0;var e=this.jsLinks;"inpage"===this.type&&(e=Rt(this.jsLinks,this.isSplitTestActive));var t=document.querySelector("head, body");e.forEach((e=>{if(this.customDomain&&this.isTagCD)!function(e){var{node:t,scriptRecord:n,scriptDefer:r,customSrc:i}=e;if(!document.querySelector('[src="'.concat(n.src,'"]'))){var o=document.createElement("script");o.src=tt(i,n.type),r?o.defer=!0:o.async=!0,o.onerror=()=>{var e=document.createElement("script");e.src=n.src,r?e.defer=!0:e.async=!0,t.append(e)},t.append(o)}}({node:t,scriptRecord:e,scriptDefer:this.env.scriptDefer,customSrc:Ht(this.customDomain,this.type,"js")});else{var n=function(e,t){if(document.querySelector('[src="'.concat(e.src,'"]')))return null;var n=document.createElement("script");return n.src=e.src,t?n.defer=!0:n.async=!0,n}(e,this.env.scriptDefer);n&&t.appendChild(n)}}))}}}function Vt(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}class zt{constructor(e){var{hashedDomain:t}=e;this.hashedDomain=t,this.proxyPathname="/api/senddata",this.proxyIpv4Pathname="/api/ipv4check"}fetchCreatives(e){var t=this;return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Vt(o,r,i,a,s,"next",e)}function s(e){Vt(o,r,i,a,s,"throw",e)}a(void 0)}))}}((function*(){var{type:n,params:r,proxyDomain:i,proxyPathname:o,requestType:a="POST"}=e,c=i||t.hashedDomain,u=o||t.proxyPathname,l="".concat(c).concat(u,"?"),d=lt(r);"GET"===a&&(l+="?site=".concat(n,"&tail=").concat(lt(r)));var h={url:l,method:a.toLowerCase()};"POST"===a&&(h.data={site:n,tail:d});var{data:p}=yield s.dispatchRequest(h);return p}))()}sendIpv4Check(e){var{proxyDomain:t,proxyPathname:n,params:r}=e,i=t||this.hashedDomain,o=n||this.proxyIpv4Pathname;s.get("".concat(i).concat(o,"?mark=").concat(lt(r)))}}const Bt=new class{constructor(){this.state={}}set(e,t){this.state[e]=t}get(e){return this.state[e]||null}remove(e){delete this.state[e]}};let Wt={set:(e,t)=>sessionStorage.setItem(e,t),get:e=>sessionStorage.getItem(e),remove:e=>sessionStorage.removeItem(e)};try{Wt.set("__try",1),Wt.get("__try"),Wt.remove("__try")}catch(e){Wt=Bt}const Jt=Wt;class Gt{constructor(){this.SESSION_KEY="a_s_ts",this.SESSION_KEY_DATA="_ses_dt",this.initialSessionId=mt.get("lastId")||"",this.localStorageExpiresMS=6e4,this.sessionState={id:null,startTs:null}}isSessionTheSame(){return this.initialSessionId===this.getSessionId()}replaceLastSessionData(){var e=this.getSessionId();mt.set("lastId",e),this.initialSessionId=e}getItem(e){if(!this.isSessionTheSame())return this.replaceLastSessionData(),this.removeItem(this.SESSION_KEY_DATA),null;try{var t=mt.get(this.SESSION_KEY_DATA),n=JSON.parse(t);return"object"==typeof n?n[e]:null}catch(e){return null}}setItem(e,t){var n;this.isSessionTheSame()||(this.replaceLastSessionData(),this.removeItem(this.SESSION_KEY_DATA));try{var r,i=null!==(r=mt.get(this.SESSION_KEY_DATA))&&void 0!==r?r:"{}";n=JSON.parse(i)}catch(e){n={}}n[e]=t,mt.set(this.SESSION_KEY_DATA,JSON.stringify(n))}removeItem(e){mt.remove(e)}getFromStorage(e){try{var t=e.get(this.SESSION_KEY),n=JSON.parse(t);return"object"==typeof n?n:null}catch(e){return null}}setToStorage(e,t){e.set(this.SESSION_KEY,JSON.stringify(t))}startSession(){var e=Date.now(),t=this.getFromStorage(Jt),n=this.getFromStorage(mt);!t&&n&&n.startTs+this.localStorageExpiresMS>e&&(this.setToStorage(Jt,n),t=n),this.sessionState=t||{id:Math.random().toString(36).substring(2),startTs:e},t||(this.setToStorage(Jt,this.sessionState),this.setToStorage(mt,this.sessionState))}getDurationTime(e){var t=Date.now()-this.sessionState.startTs;return"min"===e?Number((t/1e3/60).toFixed(2)):t}getSessionId(){return this.sessionState.id}}var Kt="_admSptsInVw";class Qt{constructor(){this.spotsInView=window[Kt]||[],window[Kt]=this.spotsInView,this.deviceType=null,this.setWidgetPosition=(e,t)=>{e.positionOffset=t?10+t.positionOffset+t.widgetNode.offsetHeight:10,e.position.includes("top")&&(e.widgetNode.style.top="".concat(e.positionOffset,"px")),e.position.includes("bottom")&&(e.widgetNode.style.bottom="".concat(e.positionOffset,"px"))}}placeToPosition(e){var{spotId:t,widgetNode:n,position:r}=e;this.spotsInView.push({spotId:t,widgetNode:n,position:r}),this.reposition(r)}removeFromPosition(e,t){var n=this.spotsInView.filter((t=>t.spotId!==e));this.spotsInView.splice(0,this.spotsInView.length,...n),this.reposition(t)}reposition(e){var t=this.spotsInView.filter((t=>"mobile"===this.deviceType?t.position.split("-")[0]===e.split("-")[0]:t.position===e));t.forEach(((e,n)=>{this.setWidgetPosition(e,t[n-1])}))}}function Yt(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Zt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Yt(o,r,i,a,s,"next",e)}function s(e){Yt(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Xt=[1411,1410],en="pxlsStrSnt",tn="pxlsSnt";function nn(e){return mt.get(e)}function rn(e){mt.set(e,"1")}function on(e){return an.apply(this,arguments)}function an(){return an=Zt((function*(e){e&&Xt.forEach((t=>function(e){var t=document.createElement("iframe");t.referrerPolicy="no-referrer",t.src=e,t.width="1px",t.height="1px",t.setAttribute("allowtransparency",!0),t.setAttribute("style","padding:0;margin:0;border:0;position:absolute;width:1px!important;height:1px!important;top:0!important;"),t.marginheight="0",t.marginwidth="0",document.body.appendChild(t)}("https://s.uuidksinc.net/match/".concat(t,"/?remote_uid=").concat(e))))})),an.apply(this,arguments)}function sn(){return(sn=Zt((function*(e){var t;if(e)return nn(en)||nn(tn)?void(nn(tn)&&Math.random()<.5&&(on(e),rn(en),t=tn,mt.remove(t))):(on(e),void rn(en))}))).apply(this,arguments)}class cn{constructor(){this.generalParameters={imp:[{secure:"https:"===window.location.protocol?1:0,ext:{v2:!1,tag_ab:"",mm:0,st:0,ad_tags:""},pext:{},banner:{w:0,h:0}}],site:{id:"",cat:[],page:""},device:{w:0,h:0},ext:{dt:Date.now()},user:{fp:0,id:""}}}fillGeneralParameters(e){var{iabCategoryExtended:t,visitorId:n,userId:r,isMetaMask:i,sessionTime:o,tagAbVersion:a,publisherKeywords:s,cloaking:c,width:u,height:l,userAgentData:d}=e,h=window.top!==window.self;this.generalParameters.site.cat[0]=t,this.generalParameters.site.page=h?document.referrer:document.URL,this.generalParameters.user.fp=n,this.generalParameters.user.id=r,this.generalParameters.imp[0].ext.v2=c,this.generalParameters.imp[0].ext.mm=i,this.generalParameters.imp[0].ext.tag_ab=a,this.generalParameters.imp[0].ext.st=o,this.generalParameters.imp[0].ext.ad_tags=s,this.generalParameters.device.w=u,this.generalParameters.device.h=l,this.generalParameters.user.ua_data=d}createRequestData(e){var t=this.generalParameters,n=h(t.imp[0].ext,e.imp[0].ext),r=h(t.imp[0].pext,e.imp[0].pext),i=e.imp[0].banner||null;return t.imp[0].ext=n,t.imp[0].pext=r,t.imp[0].banner=i,t.fp_params=e.fp_params||null,t.site.id=e.site.id,t}}function un(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ln(){return dn.apply(this,arguments)}function dn(){return dn=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){un(o,r,i,a,s,"next",e)}function s(e){un(o,r,i,a,s,"throw",e)}a(void 0)}))}}((function*(){if(!navigator.userAgentData||!navigator.userAgentData.getHighEntropyValues)return null;try{return yield navigator.userAgentData.getHighEntropyValues(["uaFullVersion","architecture","bitness","brands","mobile","model","platform","platformVersion","fullVersionList","wow64"])}catch(e){return null}})),dn.apply(this,arguments)}var hn="t_v_a";function pn(){var e="";try{e=JSON.parse(mt.get(hn))}catch(e){}if(e&&e.ttl+6048e5>Date.now())return e.version;var t=St(["a","b","c","d"]);return mt.set(hn,JSON.stringify({version:t,ttl:Date.now()})),t}var mn="in_stream_ad",fn="popunder";class gn{constructor(){this.handlers=[]}init(){document.addEventListener("click",(e=>this.handleClick(e)))}addHandler(e){this.handlers.push(e)}removeHandler(e){this.handlers=this.handlers.filter((t=>t!==e))}handleClick(e){this.handlers.forEach((t=>t(e)))}}function vn(e){if(!e)return"";var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"v2":"v1";return"".concat(e.protocol,"//").concat(t,".").concat(e.host,"/tags")}function wn(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function bn(){return bn=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){wn(o,r,i,a,s,"next",e)}function s(e){wn(o,r,i,a,s,"throw",e)}a(void 0)}))}}((function*(e,t,n,r){var i=encodeURIComponent(window.location.href).replace(/%2F/g,"/"),o="tag_id=".concat(e,"&timezone_olson=").concat(t,"&version_name=").concat(n,"&page=").concat(i),a="https://notification.tubecup.net/tags";if(!r||!["c","d"].includes(n))try{var{data:c}=yield s.get("".concat(a,"?").concat(o));return c}catch(e){return null}var u=vn(r,!0);try{var{data:l}=yield s.get("".concat(u,"?").concat(o));return l}catch(e){try{var{data:d}=yield s.get("".concat(a,"?").concat(o));return d}catch(e){return null}}})),bn.apply(this,arguments)}var yn=function(){function e(e,t){var n,r,i=this;this.LSfield="usCC",this.handler=function(e){i.clickHandler(),i.emptyClicksHandler(e)},this.globalClickHandler=e,this.sessionService=t;var o=this.sessionService.getItem(this.LSfield);this.clickCount=null!==(n=null==o?void 0:o.cls)&&void 0!==n?n:0,this.emptyClicks=null!==(r=null==o?void 0:o.emt)&&void 0!==r?r:0,this.setHandler()}return e.prototype.setHandler=function(){this.globalClickHandler.addHandler(this.handler)},e.prototype.clickHandler=function(){this.firstActionTS||(this.firstActionTS=Date.now()),this.clickCount+=1,this.saveToLS()},e.prototype.emptyClicksHandler=function(e){var t=e.target,n=t.parentElement,r=["a","input","img","svg","path","label","button","video","textarea"],i=["button","textbox"],o=!1;[t,n,null==n?void 0:n.parentElement].forEach((function(e){e&&!o&&(r.includes(e.tagName.toLowerCase())||e.className.match(/btn|button|jw-|player-/gi)||e.hasAttribute("contenteditable")||i.includes(e.getAttribute("role")||""))&&(o=!0)})),o||(this.emptyClicks+=1,this.saveToLS())},e.prototype.saveToLS=function(){var e={cls:this.clickCount,emt:this.emptyClicks};this.sessionService.setItem(this.LSfield,e)},Object.defineProperty(e.prototype,"count",{get:function(){return this.clickCount||0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emptyCount",{get:function(){return this.emptyClicks||0},enumerable:!1,configurable:!0}),e}(),Sn=function(){function e(e){var t=this;this.isTracking=!1,this.LSfield="maxScP",this.maxScrollPercentage=0,this.prevPixelScrolled=0,this.totalPixelScrolled=0,this.totalPercentScrolled=0,this.computeScrollPercentage=function(){var e=window.pageYOffset||document.documentElement.scrollTop,n=document.documentElement.scrollHeight-window.innerHeight,r=e;return t.totalPixelScrolled+=Math.round(Math.abs(r-t.prevPixelScrolled)),t.totalPercentScrolled=Math.round(t.totalPixelScrolled/n*100),t.prevPixelScrolled=r,Math.round(Math.min(100,Math.max(0,r/n*100)))},this.sessionService=e;var n=this.sessionService.getItem(this.LSfield)||{};this.maxScrollPercentage=n.maxScrollPercentage||0,this.totalPercentScrolled=n.totalPercentScrolled||0,this.totalPixelScrolled=n.totalPixelScrolled||0,setTimeout((function(){return t.startTracking()}),100)}return e.prototype.throttle=function(e,t){var n,r;return function(){for(var i=[],o=0;o{this.sessionService.setItem(this.ClickCounterLSfield,this.clickCount+=1)}))}get count(){var e;return null!==(e=this.sessionService.getItem(this.ClickCounterLSfield))&&void 0!==e?e:0}}function xn(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Cn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){xn(o,r,i,a,s,"next",e)}function s(e){xn(o,r,i,a,s,"throw",e)}a(void 0)}))}}class An{constructor(){this.storageKey="_shrdstrg"}init(){}setToStorage(e){mt.set(this.storageKey,JSON.stringify(e))}getFromStorage(){try{return JSON.parse(mt.get(this.storageKey)||"{}")}catch(e){return{}}}set(e,t){var n=this;return Cn((function*(){var r=n.getFromStorage();r[e]=t,n.setToStorage(r)}))()}get(e){var t=this;return Cn((function*(){return t.getFromStorage()[e]}))()}remove(e){var t=this;return Cn((function*(){var n=t.getFromStorage();delete n[e],t.setToStorage(n)}))()}clear(){var e=this;return Cn((function*(){e.setToStorage({})}))()}}function Tn(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=document.createElement("div");return n.style="".concat(e),t&&(n.className=t),n}var In="#qrrc";function En(){return En=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Tn(o,r,i,a,s,"next",e)}function s(e){Tn(o,r,i,a,s,"throw",e)}a(void 0)}))}}((function*(e,t){if(e&&t){var n=yield function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;return new Promise((r=>{var i=0,o=setInterval((()=>{var a=document.querySelector(e);a&&(clearInterval(o),r(a)),(i+=t)>=n&&(clearInterval(o),r(null))}),t)}))}(In);if(n){var r=t.slice(-6).split("").map((e=>Number(e))),i=Pn("width: 60px; height: 10px; overflow: hidden;"),[o,a]=function(e){var t="width: 60px; height: 5px; overflow: hidden; display: flex; justify-content: space-between",n=Pn(t),r=Pn(t);return e.forEach((e=>{var t=e<=5;e%2==0?n.appendChild(Pn("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):n.appendChild(Pn("width: 8px; height: 4px; background-color: white","_whiteSquare")),t?r.appendChild(Pn("width: 8px; height: 4px; background-color: black; opacity: 0.6","_blackSquare")):r.appendChild(Pn("width: 8px; height: 4px; background-color: white","_whiteSquare"))})),[n,r]}(r);i.appendChild(o),i.appendChild(a),n.appendChild(i)}}})),En.apply(this,arguments)}function On(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Nn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){On(o,r,i,a,s,"next",e)}function s(e){On(o,r,i,a,s,"throw",e)}a(void 0)}))}}class Dn{constructor(){this.tagId=null,this.tagAbVersion=pn(),this.siteId=null,this.magmaClickResolverEnable=!1,this.adFormats=[],this.env=null,this.cloakingConfig=null,this.SessionService=new Gt,this.SessionService.startSession(),this.PositionService=new Qt,this.HashService=new re,this.AuctionService=new cn,this.Logger=new n("AdManager",t.devMode),this.ytAuthDetector=new te,this.ytAuthDetector.loadYoutubeAuthMarker(),this.oScript=null,this.globalClickHandler=new gn,this.clickCounter=new _n(this.globalClickHandler,this.SessionService),this.metrics=new kn(this.SessionService,this.globalClickHandler),this.customDomain=null,this.globalClickHandler.init(),this.providedDependencies={GlobalClickHandler:this.globalClickHandler,ClickCounter:this.clickCounter,VastProxyService:new dt({wrappedUrlPath:t.vastProxyWrappedUrlPath}),hashGenerator:{md5:Y,getDate:this.HashService.getDateForHash,generateCdnDomain:()=>this.HashService.generateCdnDomain(),generateAuctionUrl:e=>this.HashService.generateAuctionUrl(e),generateNativeAuctionUrl:()=>this.HashService.generateNativeAuctionUrl(),convertToHashedUrl:e=>this.HashService.convertToHashedUrl(e)},DisplayAdblockService:new zt({hashedDomain:this.HashService.generateHashedProxyDomain()}),metrics:this.metrics.trackers,SessionService:this.SessionService,PositionService:this.PositionService,AuctionService:this.AuctionService,cookies:Q,ytAuthDetector:this.ytAuthDetector},this.hashHelpers={},this.Logger.info("version ".concat(t.version)),this._paramReconciler={},this.isTagCD=["c","d"].includes(this.tagAbVersion),this.tagIdsLiteVersion=[123481,114039,83975,26075,41577]}addReconsileParams(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this._paramReconciler[t]=e[t])}getLocalConfig(){var e=window["{{CONFIG_ADM}}"];return this.getActualConfig(e)}getActualConfig(e){return e.tag_configs?e.tag_configs[this.tagAbVersion]:e}loadCustomTagConfig(e,t){var n=this;return Nn((function*(){var r,i=vn(n.customDomain);try{r=yield s.get("".concat(i,"/").concat(e,"?version_name=").concat(n.tagAbVersion)).then((e=>e.data))}catch(i){r=yield s.get("".concat(t,"/").concat(e,"?version_name=").concat(n.tagAbVersion)).then((e=>e.data))}return r}))()}loadTagConfig(e){var n=this;return Nn((function*(){var{createHashTagUrl:r}=n.hashHelpers,i=r?r():t.tagConfigUrl;return n.customDomain&&n.isTagCD?n.loadCustomTagConfig(e,i):s.get("".concat(i,"/").concat(e,"?version_name=").concat(n.tagAbVersion)).then((e=>e.data))}))()}runFormatSpot(e,t){var n=this.adFormats.find((t=>t.type===e));n?n.runSpot(t):this.Logger.warn("AdFormat ".concat(n," no found in config"))}getConfigHelpers(e){var t=t=>e.adformats.find((e=>e.type===t));return{findFormat:t,addSpotToFormat:(e,n)=>{var r=t(e);r&&r.spots.push(n)},findFormatSpot:(e,n)=>{var r=t(e);return r&&r.spots.length?r.spots.find((e=>e.config.spot_id===n)):(this.Logger.warn("Spot ".concat(n," doesn't exist in config")),{config:{},ignore:[],bind:[]})}}}push(e){"function"==typeof e&&e()}enableMagmaClickResolver(e){if(!e)throw Error("siteId - must be passed for magma click resolver proper work");this.magmaClickResolverEnable=!0,this.siteId=e}changeAdFormatOrder(e,t){var n=this.adFormats.findIndex((t=>t.type===e));if(-1!==n){var[r]=this.adFormats.splice(n,1);this.adFormats.splice(t,0,r)}}runAdFormats(){this.adFormats.length&&(this.Logger.info("run tag formats"),10149===this.tagId&&this.changeAdFormatOrder(mn,0),[23106,58635].includes(this.tagId)&&this.changeAdFormatOrder(fn,0),this.adFormats=this.adFormats.map((e=>{var t=new qt(e,this.env,this.providedDependencies,this.Logger,this.tagId,this.tagAbVersion,this.oScript,this.customDomain);return t.start(),t})))}ph(){var e=this;this.hashHelpers={createHashPath:function(){return e.HashService.createHashPath(...arguments)},createHashTagUrl:function(){return e.HashService.createHashTagUrl(...arguments)},domainHashed:function(){return e.HashService.generateCdnDomain(...arguments)},date:function(){return e.HashService.getDateForHash(...arguments)},md5:Y}}getAdformatsUrls(){return this.adFormats.flatMap((e=>{var t=e.assets.js.map((e=>{var{src:t}=e;return t}));return"in_stream_ad"===e.type?[...Object.values(e.spots[0].config.scripts),...t]:t}))}initializeSharedStorageAndKeywordsManager(e){this.isDonnyFriendly=e=>("31134"===this.env.qs.promo||"10146"===this.env.qs.campaign)&&e,this.isDonnyFriendly(e)?this.SharedStorage=new An:this.SharedStorage=new We(t.sharedStorageUrl),this.SharedStorage.init(),this.KeywordsManager=new et(this.SharedStorage),this.providedDependencies.KeywordsManager=this.KeywordsManager,this.providedDependencies.SharedStorage=this.SharedStorage}init(){var e=arguments,n=this;return Nn((function*(){var r=e.length>0&&void 0!==e[0]?e[0]:n.tagId,i=e.length>1?e[1]:void 0;if(!r)throw new Error("[Admanager] - method init accept only string | number | object param");var o=Date.now(),a=performance.now(),l=u(r);n.tagId=u(r)?r.tagId:r;var d=l?n.getActualConfig(r):n.loadTagConfig(r),h=n.tagIdsLiteVersion.includes(Number(n.tagId)),p=t.isMB||l&&d.is_tnet||h,[m,f,g,v]=yield Promise.all([d,W().then((e=>e.get())).then((e=>e)),ln(),G({useScriptLoadCheck:!p})]);if(!u(m)||!c(m.adformats))throw new Error("[Admanager] - tag config must be object type and its adformats field must be an array type");var w=!!m.is_tnet,b=window.Intl&&Intl.DateTimeFormat().resolvedOptions().timeZone;m.v2&&(n.cloakingConfig=yield function(e,t,n,r){return bn.apply(this,arguments)}(m.tagId,b,n.tagAbVersion,n.customDomain));var y,S,k=n.cloakingConfig||m;n.env=qe({visitorId:f.visitorId,isAdBlock:v,sessionId:n.SessionService.getSessionId(),isTubeSite:w,fingerprint:f,userAgentData:g,tagAbVersion:(y=n.tagAbVersion,S=k.testId,S?"".concat(y,"_").concat(S):"".concat(y)),magmaClickResolverEnable:n.magmaClickResolverEnable,config:k,v2:n.cloakingConfig?1:0,siteId:n.siteId}),n.env.isMB=t.isMB,n.env.loadedAt=o,n.oScript=k.o_script,n.initializeSharedStorageAndKeywordsManager(w),"b"!==n.tagAbVersion||h||n.KeywordsManager.asyncProcessKeywords(t.keywordsServiceUrl,n.env.keywords).catch(null),h||function(e){sn.apply(this,arguments)}(n.env.visitorIdString),function(e,t){En.apply(this,arguments)}(w,n.env.visitorIdString),n.PositionService.deviceType=n.env.ua.device.type,n.AuctionService.fillGeneralParameters({iabCategoryExtended:"IAB".concat(n.env.iabCategoryExtended),visitorId:n.env.visitorId,isMetaMask:n.env.sessionTime,tagAbVersion:n.env.tagAbVersion,sessionTime:n.SessionService.getDurationTime("min"),publisherKeywords:n.env.keywords,cloaking:n.env.v2,width:n.env.resolution[0],height:n.env.resolution[1],userId:n.env.userId,userAgentData:g});var _=n.HashService.generateHashedProxyDomain(),x=(w||t.isMB?null:n.HashService.generateMetricHashDomain())||t.initTrackingUrl,C=performance.now();n.adFormats=at({tagId:n.tagId,label:k.label,iabcat:k.iabcat,isPhpLoaderActive:!!k.adm_loader,adFormats:k.adformats,hashHelpers:n.hashHelpers,isAdBlock:n.env.isAdBlock,hashedProxyDomain:_,legacySpotsExtend:n._paramReconciler,hashService:n.HashService,tagAbVersion:n.tagAbVersion,isTubeSite:w}),i&&i(),function(e,n){var{label:r,subId:i,userId:o,timezone:a,adManagerVersion:c,tagId:u,screenResolution:l,isAdBlock:d,timezoneOlson:h,utmSource:p,utmMedium:m,utmCampaign:f,utmContent:g,isMetaMaskActive:v,initToStartLatency:w,isCloaking:b,isCloakingResponseEmpty:y,userKeywords:S}=n,k={wl:r,subid:i,user_id:o,timezone:a,ver:c,tag_id:Number(u),screen_resolution:l.join("x"),adblock:Number(d),timezone_olson:h,utm_source:p,utm_medium:m,utm_campaign:f,utm_content:g,mm:Number(v),init_start_latency:Number(w),is_v2:Number(b),is_v2_empty:Number(y),user_keywords:S},_="/in/track?data=".concat(lt(JSON.stringify(k))),x="".concat(e).concat(_),C="".concat(t.initTrackingUrl).concat(_);s.get(x).catch((()=>{s.get(C)}))}(x,{label:k.label,subId:n.env.sub,userId:vt(),timezone:n.env.timezone,adManagerVersion:t.version,tagId:k.tagId||0,screenResolution:n.env.resolution,isAdBlock:n.env.isAdBlock,timezoneOlson:n.env.timezoneOlson,utmSource:n.env.holdableQSParams.utm_source,utmMedium:n.env.holdableQSParams.utm_medium,utmCampaign:n.env.holdableQSParams.utm_campaign,utmContent:n.env.holdableQSParams.utm_content,isMetaMaskActive:n.env.isMetaMaskActive,initToStartLatency:((C-a)/1e3).toFixed(2),isCloaking:m.v2||!1,isCloakingResponseEmpty:n.cloakingConfig,userKeywords:n.env.keywords});var A=new Mt({oScript:n.oScript});yield A.start(),n.runAdFormats()}))()}}var Mn=document.querySelector("script[".concat(t.tagIdIdentifier,"]")),jn=Array.isArray(window[t.adManagerWindowNamespace])?window[t.adManagerWindowNamespace]:[];if(window[t.adManagerWindowNamespace]=window[t.adManagerWindowNamespace]instanceof Dn||new Dn,window.a3klsam=window[t.adManagerWindowNamespace],window[t.adManagerWindowNamespace]._paramReconciler=window[t.overrideConfigWindowNamespace]||{},jn.forEach((e=>e())),Mn){var Rn=Mn.getAttribute(t.tagIdIdentifier);Mn.removeAttribute(t.tagIdIdentifier);var Hn=Mn.hasAttribute(t.noAutostartIdentifier),Ln=Mn.hasAttribute(t.customDomainIdentifier);if(Rn&&(window[t.adManagerWindowNamespace].tagId=Rn),Ln){var Un=new URL(Mn.getAttribute("src"));window[t.adManagerWindowNamespace].customDomain={host:Un.host.replace("ajs.",""),protocol:Un.protocol}}Rn&&!Hn&&window[t.adManagerWindowNamespace].init()}})();