forked from bombastictranz/bombastictranz
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.19.8.489.js.download
1 lines (1 loc) · 216 KB
/
main.19.8.489.js.download
1
__IASScope.__IntegralASExec=__IASScope.__IntegralASExec||{},__IASScope.__IntegralASExec["19.8.489"]=__IASScope.__IntegralASExec["19.8.489"]||{},__IASScope.__IntegralASExec["19.8.489"].initialize=function(e,t,n){class r{constructor(){this.logs=[]}add({storeModelName:e,key:t,value:n,timeStamp:r}){this.logs.push({storeModelName:e,key:t,value:n,timeStamp:r})}getHistory(){return this.logs}logHistory(){}}class i{constructor({storeModelName:e}){this.storeModelName=e,this.storeModelHistory=new r}set(e,t,n={locked:!0}){try{Object.defineProperty(this,e,{value:t,writable:!n.locked,configurable:!1}),this.storeModelHistory.add({storeModelName:this.storeModelName,key:e,value:t,timeStamp:Date.now()})}catch(e){}}get(e){return this[e]}getHistory(){return this.storeModelHistory.getHistory()}logHistory(){this.storeModelHistory.logHistory()}}class o extends i{constructor(){super({storeModelName:"jsConfigRequest"}),this.contentType="",this.url="",this.verificationParameters={},this.contentType=""}buildRequestUrlFromParameters({contextNode:e,omidParameters:t}){this.setParameters({contextNode:e,omidParameters:t}),this.buildRequestUrl({contextNode:e})}setParameters({contextNode:t,omidParameters:n}){if(n)if("string"==typeof n)try{const e=JSON.parse(n);this.set("verificationParameters",e,{locked:!1})}catch(e){}else this.set("verificationParameters",n,{locked:!1});else{const n=null==t?void 0:t.dataAttributes,r=(null==n?void 0:n.iasParameters)||e.iasParameters;if("string"==typeof r)try{this.set("verificationParameters",JSON.parse(r),{locked:!1})}catch(e){}else void 0!==r&&this.set("verificationParameters",r,{locked:!1})}this.set("contentType",this.verificationParameters.contentType||"",{locked:!1})}buildRequestUrl({contextNode:t}={}){const n=(({contextNode:t,verificationParameters:n}={})=>{var r;const i=null==t?void 0:t.queryParameters,o=null==i?void 0:i.get("iasConfigHost");let s=null;const a=null==n?void 0:n.config;if(a)s=/iasProxyPartnerId=([\d]+)/g.exec(a);else try{const e=(null===(r=null==t?void 0:t.srcUrl)||void 0===r?void 0:r.href)||"",n=decodeURIComponent(e);s=/iasProxyPartnerId=([\d]+)/g.exec(n)}catch(e){}const c=null==s?void 0:s[1];return e.proxyPartnerId=c,(null==n?void 0:n.host)||o||{37103:"https://vfw.amazon-adsystem.com/ias/ivt/j",2:"https://g.bing.com/p/tpv-ias"}[c]||"https://jsconfig.adsafeprotected.com"})({contextNode:t,verificationParameters:this.verificationParameters}),r=(({contextNode:e,verificationParameters:t}={})=>{let n=null==t?void 0:t.config;if(!n)try{const t=null==e?void 0:e.srcUrl;if(t.href.includes("/jload")){const t=(null==e?void 0:e.queryParameters).get("anId");t&&(n=`/jload/${t}`)}else{const e=/iasConfig=([^&#]*)/g.exec(t.href)||/config=([^&#]*)/g.exec(t.href);e&&"string"==typeof e[1]&&(n=decodeURIComponent(e[1]))}}catch(e){}return n})({contextNode:t,verificationParameters:this.verificationParameters});if(r){const i=(({host:e,path:t,queryParams:n,adSessionId:r})=>{const i=t.includes("?");let o=`${e}/jsconfig${t}`;return n&&(o+=`${i?"&":"?"}${n}`),r&&(o+=`&adSessionId=${r}`),o})({host:n,path:r,adSessionId:e.adSessionId,queryParams:null==t?void 0:t.staticFwjsMacros});this.set("url",i,{locked:!1})}}}var s;!function(e){e.Iframe="i",e.Script="s"}(s||(s={}));class a extends i{constructor({defaultBootstrapperConfig:e}){super({storeModelName:"measurementConfig"}),this.set("adRefreshThreshold",e.adRefreshThreshold),this.set("birthdate",e.birthdate),this.set("isResolved",e.isResolved,{locked:!1}),this.set("perfBirth",e.perfBirth),this.set("staticMode",e.staticMode),this.set("useFIF",e.useFIF)}}const c=({url:e})=>{let t;const n=["config","iasConfig"];return e&&e.includes("fw.js")&&(n.forEach((t=>{e&&(e=(({url:e,queryParamName:t})=>{const n=new URL(e).search,r=new URLSearchParams(n);r.delete(t);const i=new URL(e);return i.search=r.toString(),i.toString()})({url:e,queryParamName:t}))})),e.includes("?")&&(t=e.split("?")[1])),t};class u extends i{constructor({contextNodeElement:e}){const t=new URL(e.src);super({storeModelName:"contextNode"}),this.set("element",e),this.set("srcUrl",t),this.set("path",t.pathname),this.set("protocol",t.protocol),this.set("dataAttributes",e.dataset),this.set("queryParameters",t.searchParams),this.set("staticFwjsMacros",c({url:t.href}))}}const d=new class{addModel(e){try{Object.defineProperty(this,e.storeModelName,{value:e,writable:!1,configurable:!1,enumerable:!0})}catch(e){}return this[e.storeModelName]}getHistory(){return Object.keys(this).reduce(((e,t)=>{const n=this[t].getHistory();return e.concat(n)}),[])}logHistory(){}};function g(){"use strict";var t,n;e.executedContinueMain||(e.executedContinueMain=!0,e.perf.markStart(_),M(e).verifyContextNode(),t=function(t,n,r,i,o,s,a,c,u,g,l){var E,p;try{new gi({contextNode:e.contextNode,features:u,bootstrapper:e}).start()}catch(e){o.add(T.ERROR_CODES.AD_SERVER_POST_IMPRESSION_MACRO)}e.perf.markStart(S),e[x.B11]="1"===e[x.AD_HEIGHT]&&"1"===e.adWidth?"true":"false",e[x.CNOD]=e[x.CONTEXT_NODE]?"true":"false",h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:d.measurementConfig.mainBirthdate},x.MAIN_FUNCTION_STARTED_NOW,{type:T.IMPRESSION_EVENT});var m=e.hasOwnProperty("origMobOrTab")?e.origMobOrTab:e.mobOrTab;h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:m?"1":"0"},x.BOOTSTRAPPER_MOB_OR_TAB,{type:T.IMPRESSION_EVENT}),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:e.app?"1":"0"},x.BOOTSTRAPPER_APP,{type:T.IMPRESSION_EVENT}),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:e.mobAppWebview?"1":"0"},x.BOOTSTRAPPER_MOB_APP_WEBVIEW,{type:T.IMPRESSION_EVENT}),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:d.measurementConfig.tagDeliveryType},x.TAG_DELIVERY_TYPE,{type:T.IMPRESSION_EVENT});var I="undefined"!=typeof navigator?navigator.userAgent:"",A=h.getAggregator().request(U.MOBILE_APP);!(A&&A.isMobileAppEnvironment&&A.isMobileAppEnvironment())&&I.indexOf("IMDb-flg")>-1&&(h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:"1"},x.MOBILE_APP_ENVIRONMENT,{type:T.IMPRESSION_EVENT}),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:"a_imdb"},x.MATCHED_MOBILE_APP_DETECTION_RULE,{type:T.IMPRESSION_EVENT}));f(r,i,u,o);try{s.isApplicable(a,u,g)&&s.start(),p=c.detectTopURL(),u.on("exch")&&(new Ne).createInstance(o,i).parse(p),(E=Jr()).isApplicable(u)&&E.start(u),g.usesGroupMCustomMetric()&&k(),l.start()}catch(e){o.add(T.ERROR_CODES.IMPRESSION_LEADUP)}return e.perf.markEnd(S),p}((n=function(){var t,n,r,i,o,s,a,c,u,d,g,l={};e.perf.markStart(D);var f=h.getAggregator();(function(){var t,n,r;r=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),t=r.app&&r.isDisplay&&!r.isWeb,(n=e.mobFwUrl&&e.mobFwUrl.indexOf("/blocking/")>-1)&&r.isLimitedSandbox&&"1"===e.adWidth&&"1"===e[x.AD_HEIGHT]&&(r.isLimitedSandbox=!1);t&&n&&(r.delayingViewabilityEvents=!0);"app"!==r.environment&&!0!==e.mobAppWebview||(e.origMobOrTab=e[x.MOB_OR_TAB],e[x.MOB_OR_TAB]=!0)})(),l.mFeatures=f.request(U.FEATURES),l.mFeatures||(l.mFeatures=f.provide(U.FEATURES,Me()));e.integration&&l.mFeatures.setReportedBootstrapFeatures("intblk","integration");e.autotagSizeSet&&l.mFeatures.setReportedBootstrapFeatures("ats","autotagSizeSet");e.encodeInvalidUrlChars=!Ae.isDomless()&&l.mFeatures.on("encodeInvalidUrlChars"),f.provide(U.MOBILE_APP,(function(){return t=t||new ar(l.mFeatures)})),f.provide(U.CONTEXT,Ae),l.mBrowser=f.provide(U.BROWSER,(new le).createInstance()),l.mErrors=f.request(U.ERRORS),l.mIds=f.provide(U.IDS,be()),l.iOutput=Q(f),f.request(U.JSONP),l.mComm=f.request(U.COMMUNICATION),l.viewabilityMeasurement=new Xt(zt(l.mIds),l.mFeatures,l.mBrowser).create(),function(e,t){if(e&&e.queuedOutputItems)for(var n=0;n<e.queuedOutputItems.length;n++)t.trigger(L.ADD_OUTPUT_ITEM,{output:e.queuedOutputItems[n].value},e.queuedOutputItems[n].code,{type:T.IMPRESSION_EVENT})}(f.request(U.OMID_AD_SESSION_CONTEXT),f),l.mFeatures.on("swapids")&&(e.oid=e.asid,e.asid=l.mIds.unq);return l.mAdTalk=(new ct).createInstance(l.mFeatures),n=H(),r=qe(f),i=f.provide(U.PAGE,(new Be).createInstance()),l.mAncestorOrigins=ue(),l.mPageUrls=f.provide(U.PAGE_URLS,(new He).createInstance(l.mAncestorOrigins,We)),o=f.provide(U.SCREEN_EVENTS,Ke()),s=we(l.mBrowser),g=function(t,n){return!Ae.isVideo()||Ae.isOmid()||Ae.isInMobiMraidVideo()?{}:yr(e.videoId,t,n)}(l.mFeatures,o),l.mVideo=f.provide(U.VIDEO,g),Pr(Lr.build()),a=(new ir).createInstance(l.mErrors,s,l.mFeatures),c=(new Z).createInstance(a,l.mErrors,i,Ae),u=f.provide(U.JOB_FACTORY,Le()),l.mDataTransfer=Se(a,l.mErrors,l.mFeatures,l.mIds,l.iOutput,l.mBrowser,o,n),d=ge(l.mErrors,l.mFeatures,f,r),l.mMode=xe(d,l.mFeatures,l.viewabilityMeasurement.isImmediate()),l.mViewability=f.provide(U.VIEWABILITY,Cn(j(),l.viewabilityMeasurement,l.mBrowser,l.mDataTransfer,l.mFeatures,f,l.iOutput,c,o,l.mVideo)),function(t,n,r,i){var o=function(t){var n=new In(t,Ae),r=new mn,i=new Tn(t,Ae),o=hn(t,Ae),s=new _n(e,Ae,t).resolve(),a=[n],c=[];o.applies()&&a.push(o);i.applies()&&a.push(i);r.applies(t,Ae)&&a.push(r);m(s).each((function(e,t){a.push(new An(t,Ae)),c.push(t.id)})),c.length>0&&(h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:c.join(".")},x.METRIC_ID_EVENT_CALL,{type:T.IMPRESSION_EVENT}),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:c},x.METRIC_ID_LIST,{type:T.DT_CODES.UNLOAD,asION:!0}));return a}(t);h.getAggregator().provide(U.VIEWABILITY_DEFINITIONS,o),m(o).map(function(e,t,n,r){return function(i,o){var s,a,c,u=yn(o,t),d=pn(n,e,o.rts).getCallbacks(),g=X(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId));return o.sendOtherwiseInViewSignal&&(c=yn(o,t,o.sendOtherwiseInViewSignal),a=X(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId,o.sendOtherwiseInViewSignal))),o.rtsCallbacks=d,o.thresholdType===T.GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE?s=Nn(u,o,g,Ae.isVideo()):(s=Rn(u,oe(o.minUnit),g),o.sendOtherwiseInViewSignal&&Rn(c,oe(o.minUnit),a,o.sendOtherwiseInViewSignal).start()),s.start(),s}}(t,n,r,i))}(l.mFeatures,l.mViewability,r,u),l.loopDelay=Dt(),l.renderDetector=P(),l.mDataTransfer.setViewabilityMod(l.mViewability),e.perf.markEnd(D),l}()).mDataTransfer,n.mViewability,n.mAdTalk,n.iOutput,n.mErrors,n.mAncestorOrigins,n.mBrowser,n.mPageUrls,n.mFeatures,Ae,n.renderDetector),function(t,n,r,i,o,s,a,c,u){try{Yr(t,n,r,i,o,s,a).send(c),m.isFunction(u.triggerInitializationEvents)&&u.triggerInitializationEvents()}catch(t){__IntegralASDiagnosticCall("impsend",t,e)}}(n.mErrors,n.mFeatures,n.mIds,n.mMode,n.iOutput,n.mBrowser,n.mViewability,t,n.mVideo),function(t,n,r,i,o,s,a,c,u,d,g,f,E){try{e.perf.markStart(v),(p=Mr()).start(),p.addFieldTypes([T.DT_SLOT.IM,T.DT_SLOT.FF,T.DT_SLOT.ENVIRONMENT,T.DT_SLOT.FF_EXP]),function(e,t,n,r){var i=Rt(e,t,n);i.isApplicable(r)&&i.start()}(t,n,r,i),function(e,t,n,r,i,o){e.bootstrapOn("getTpl")&&e.on("usetpl")&&de(t,n,r,i,o).init()}(i,o,s,a,n,c),function(t,n,r,i,o,s,a,c,u){var d;"true"!==e.minimizeCalls&&(d=(new Date).getTime(),We.execAtEndOfThread((function(){l(t,n,r,i,d,o,s,a,c,u)})))}(c,u,d,a,i,o,s,n,f),function(e){e&&e.start&&e.start()}(g),((e,t)=>{if(!e.isDomless()){const n=Zr();let r=["sca","xsca","rsrch"];e&&e.isAMZN()&&(r=[]),n.start(r,t)}})(E,i),ae(),h.runTier(T.TIERS.VIEWABILITY),function(t){var n=wr();n.isApplicable(t)&&(n.start(),Ur.recordBlockingTime(),e.perf.mark(O),Ur.setupOnLoadTracking(),Ur.setupBrowserDelayTracking())}(i),e.perf.markEnd(v)}catch(e){a.add(T.ERROR_CODES.POST_IMPRESSION)}var p}(n.mBrowser,n.mIds,n.mViewability,n.mFeatures,n.mComm,n.mDataTransfer,n.mErrors,n.iOutput,n.loopDelay,n.mAdTalk,n.viewabilityMeasurement,n.mAncestorOrigins,Ae),e.perf.markEnd(_))}function l(t,n,r,i,o,s,a,c,u,d){try{if(e.perf.markStart(R),e.tpiLookupURL)Pe(a,c).init(e.tpiLookupURL);Ae.isDomless()||d.isStarted()&&d.sendOriginList(),h.runAll(),We.execAtEndOfThread((function(){!function(t,n,r,i,o,s){var a;try{e.perf.markStart(N),a={output:(new Date).getTime()-o},t.addItem(a,"sinceFw",{type:T.DT_CODES.ADTALK}),m.isDef(n.loopStarted())&&t.addItem({output:n.loopStarted()},"readyFired",{type:T.DT_CODES.ADTALK}),e.perf.markEnd(N),e.isSplitMode&&(u=e.protocol+"://"+e.sp_cdnScripts.main,e.perf.markResource(y,u)),e.impUrl&&e.perf.markResource(C,e.impUrl),c=e.perf.getData(),h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.IM,x.PERFORMANCE,m(c).toION()),r.isApplicable(Ae)&&r.sendAdTalkCall()}catch(e){i.add(T.ERROR_CODES.ADTALK_DELAY)}var c,u}(t,n,r,i,o)})),e.perf.markEnd(R)}catch(e){i.add(T.ERROR_CODES.EVENT_LOOP_ONE)}}function f(e,t,n,r){var i;try{e.isApplicable(Ae)&&(e.start(),t.addItem(e.getFrameMap(),"fm"),n.on("fm2")&&t.addItem(e.getFrameMapIncludingPeerCase(),"fm2"),n.on("idMap")&&(i=e.getIdMap())&&t.addItem(i,"idMap"))}catch(e){r.add(T.ERROR_CODES.ADTALK_GENERAL)}}function E(t){var n=t&&t.sca,r=t&&t.xsca,i=t&&t.w,o=t&&t.h;return function(t){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:Ae.getTagTime()},x.STATIC_CONFIG_RESPONSE_TIME,{type:T.IMPRESSION_EVENT});var s="string"==typeof t?JSON.parse(t):t;if(Object.assign)Object.assign(e,s);else for(var a in s)e[a]=s[a];d.measurementConfig.set("isResolved",!0),e.sp_cdnScripts=e.sp_cdnScripts||{},n&&(e.sp_cdnScripts.sca=n),r&&(e.sp_cdnScripts.xsca=r),i&&o&&(e.adWidth=i,e.adHeight=o,e.autotagSizeSet=!0),g()}}const p=()=>{var e;(null===(e=d.measurementConfig)||void 0===e?void 0:e.isResolved)?g():(()=>{var e,t,n;const r=null===(e=d.jsConfigRequest)||void 0===e?void 0:e.url,i=null===(t=d.jsConfigRequest)||void 0===t?void 0:t.contentType,o=null===(n=d.jsConfigRequest)||void 0===n?void 0:n.verificationParameters;if(r){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:Ae.getTagTime()},x.STATIC_CONFIG_REQUEST_TIME,{type:T.IMPRESSION_EVENT});const e="cbName";"application/json"===i?h.getAggregator().trigger(L.GET_JSON,r,E(o)):h.getAggregator().trigger(L.JSONP,r,E(o),!1,e)}})()};var m=function(e){"use strict";return new I(e)},I=function(e){"use strict";this.iterable=e};I.prototype.isObj=function(e){"use strict";var t="object"==typeof this.iterable,n=null===this.iterable,r=t&&!n,i=!this.isArray()&&r;return e?r:i},I.prototype.isArray=function(){"use strict";return this.iterable instanceof Array},I.prototype.isEmpty=function(e){"use strict";return 0===this.keys(e).length},I.prototype.each=function(e,t){"use strict";var n=this.iterable;if(n.length===+n.length)for(var r=0,i=n.length;r<i;++r)e(r,n[r]);else for(var o in n)(n.hasOwnProperty(o)||t)&&e(o,n[o])},I.prototype.map=function(e,t){"use strict";var n=[];return this.each((function(r,i){var o=e(r,i);(void 0!==o||t)&&(n[n.length]=o)})),n},I.prototype.stringify=function(e,t){"use strict";t=t||",";var n=[];return this.each((function(t,r){var i=e(t,r);m.isDef(i)&&n.push(i)})),n.join(t)},I.prototype.toION=function(e,t){"use strict";var n,r="[",i="]";return t=t||0,e=e||{},++t>4?"object":!this.isObj(!0)||this.iterable.hasOwnProperty("toString")?""+this.iterable:(this.isArray()?n=this.map((function(n,r){return m(r).toION(e,t)})):(r="{",i="}",n=this.map((function(n,r){var i="string"==typeof n&&-1!==n.indexOf("NULL"),o=m(r).toION(e,t);return i?o:(e[n]||n)+":"+o}))),r+n.join(",")+i)},I.prototype.compareTo=function(e){"use strict";var t=!1;return this.each((function(n,r){e[n]!==r&&(t||(t={}),t[n]=r)})),t},I.prototype.toParams=function(e){"use strict";return this.stringify((function(e,t){return"string"==typeof e&&-1!==e.indexOf("NULL")?t:e+":"+t}),e)},I.prototype._privateMixin=function(e,t,n){"use strict";var r;for(r in t)m.isDef(t[r])&&(n||t.hasOwnProperty(r))&&(e[r]=t[r]);return e},I.prototype.mapToObj=function(e){"use strict";var t={},n=this;return this.each((function(r,i){var o=e(r,i);m(o).isObj()&&n._privateMixin(t,o)})),t},I.prototype.invert=function(){"use strict";return this.mapToObj((function(e,t){var n={};return n[t]=e,n}))},I.prototype.mixin=function(e,t){"use strict";return this._privateMixin(this.iterable,e,t)},I.prototype.find=function(e){"use strict";var t;return this.each((function(n,r){e(n,r)&&(t=r)})),t},I.prototype.findFirst=function(e){"use strict";var t,n;return this.each((function(r,i){!n&&e(r,i)&&(t=i,n=!0)})),t},I.prototype.keys=function(e){"use strict";var t=[];return this.each((function(e){t.push(e)}),e),t},I.prototype.asStrings=function(){"use strict";var e={};return this.each((function(t,n){e[t]=""+n})),e},I.prototype.selectProperties=function(e){"use strict";var t={},n=this;return m(e).each((function(e,r){m.isDef(n.iterable[r])&&(t[r]=n.iterable[r])})),t},I.prototype.filter=function(e,t){"use strict";return this.map((function(t,n){var r;return(m.isUndef(e)||m.resolve(e,t,n))&&(r=n),r}),t)},I.prototype.toArray=function(){"use strict";return this.map((function(e,t){return t}))},I.prototype.JSONStringify=function(){"use strict";var e,n,r=!1;return t.Prototype&&t.Prototype.Version&&-1===t.Prototype.Version.indexOf("1.7")&&(r=!0),r&&(n=Array.prototype.toJSON,delete Array.prototype.toJSON),e=JSON.stringify(this.iterable),r&&(Array.prototype.toJSON=n),e},I.prototype.contains=function(e){"use strict";var t=m(this.iterable).findFirst((function(t,n){return e===n}));return m.isDef(t)},m.toBase=function(e,t){"use strict";var n,r=e<0,i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),o=[];e=r?-e:e;do{n=e%t,o.push(i[n]),e=(e-n)/t}while(e>0);return o=o.reverse().join(""),r?"-"+o:o},m.isDef=function(e){"use strict";return void 0!==e},m.isUndef=function(e){"use strict";return!m.isDef(e)},m.isBool=function(e){"use strict";return"boolean"==typeof e},m.noop=function(){},m.identity=function(e){"use strict";return e},m.isFunction=function(e){"use strict";return"function"==typeof e},m.isStr=function(e){"use strict";return"string"==typeof e},m.useIfDef=function(e){"use strict";return!!m.isDef(e)&&e},m.stringifyTriState=function(e){"use strict";return!0===e?1:!1===e?0:"na"},m.getNum=function(e){"use strict";var t=parseInt(e);return isFinite(t)||(t=-1),t},m.resolve=function(e,...t){return m.isFunction(e)?e.apply({},t):e},m.flatJSONParse=function(e){"use strict";for(var t,n,r,i=/"(\w+)":(\d+|(?:"([^"]*)"))/g,o={},s=i.exec(e);s;)t=s[1],n=s[3],r=s[2],o[t]=n||+r,s=i.exec(e);return o},m.debounce=function(e,n,r){"use strict";var i,o=r||t;return function(...t){var r=this,s=t;o.clearTimeout(i),i=o.setTimeout((function(){i=null,e.apply(r,s)}),n)}},m.last=function(e){"use strict";return e[e.length-1]},m.collapseArgsIntoHash=function(e,t){"use strict";var n={};return t?n[e]=t:n=e,n},m.fromBoolToNum=function(e){"use strict";return e?1:0},m.isNumeric=function(e){"use strict";return m.isDef(e)&&null!==e&&!isNaN(e)},m.fromNodeListToArray=function(e){"use strict";return Array.prototype.slice.call(e)},m.encodeInvalidUrlChars=function(e,t){"use strict";var n={$:"%24","[":"%5B","]":"%5D","{":"%7B","}":"%7D","|":"%7C"},r=e;return t&&"string"==typeof e&&(r=(r=e.replace(/%(?![0-9A-F][0-9A-F])/gi,"%25")).replace(/\$|\[|\]|\{|\}|\|/gi,(function(e){return n[e]}))),r};var h=function(){"use strict";var e,t={},n=[],r=[],i=function(){var e={},t=m(arguments).toArray();return t.unshift(e),r.push(t),e},o=function(r,i,o,s,a){var c,u,d,g=function(){if(!c){var t=[];c=!0,i=["features","browser","context"],0===n.length&&(n=m(i).map((function(t,n){return e.request(n)}))),a.emits&&(r.events=new j),a.applies&&!a.applies.apply(a,n)||(u=!0,(t=m(o).map((function(t,n){return e.request(n)}),!0)).push(r),m(r).mixin(s.apply({},t)))}var i};return d=(a=a||{}).tier,m.isDef(d)&&(t[d]=t[d]||new K,t[d].push(g)),e.provide(i,(function(){var e;return g(),u&&(e=r),e})),r};return i.runAll=function(){var e=m(t).keys().sort((function(e,t){return e-t}));m(e).each((function(e,t){i.runTier(t)}))},i.runTier=function(e){t[e].run(),delete t[e]},i.startSystem=function(){e=e||new Y,m(r).each((function(e,t){o.apply({},t)}))},i.getAggregator=function(){return e},i}();const T={MRC_LARGE_AD_SIZE:242500,IN_VIEW:"inView",OUT_OF_VIEW:"outOfView",PARTIAL_VIEW_PLUS:"partialViewPlus",PARTIAL_VIEW_MINUS:"partialViewMinus",NA:"na",PIV_NA:-1,DT_CODES:{ADTALK:"a",DIAGNOSTIC:"b",PERFORMANCE:"e",THIRD_PARTY:"i",LARGE_BILLABLE:"l",VIDEO_EVENTS:"m",PING:"p",FULLY_INVIEW:"pf",QUARTILE_FULLY_INVIEW:"qf",SCA:"s",POS_INVIEW:"t",UNLOAD:"u",VIEWABILITY_READY:"v",EXTERNAL:"x",CUSTOM:"c",XSCA:"xs",ADSERVER_MACROS:"as"},DT_SLOT:{IM:"im",FF:"sca",FF_EXP:"xsca",ENVIRONMENT:"env"},DETECTION_METHODS:{AD_PLACEHOLDER:"s",AD_HUNT:"a",IFRAME:"i",VIDEO:"v",MRAID:"m",OMID:"o1",MUTATION:"c",SPECIFIED_AD:"sp",SPECIFIED_AD_COMPOUND:"spc",BUSTED_IFRAME_FLASHTALKING:"bf",BUSTED_IFRAME_YIELDMO:"by",BUSTED_IFRAME_SIZMEK:"bs",VENDOR_CELTRA:"vc"},ENGAGEMENT:{CLICKS:"clks",HOVER:"hov"},OUT_OF_VIEW_REASONS:{GEOM:"l",OBSTRUCTION:"o",FOCUS:"f",COLLAPSED:"c",HIDDEN:"h",RENDER:"r",VIDEO:"v",WINDOW:"w"},PERF_TIMELINE_TRACKER_CONFIG:{VANS:{TYPE:"vans",COUNT:4},WRAPPERS:{JS:{TYPE:"jswrapper",COUNT:15},AS:{TYPE:"flwrapper",COUNT:9}},RENDER:{TYPE:"render",COUNT:2,CODE:"tdr"}},ERROR_CODES:{GET_AD_DIMENSIONS:"a",AD_SLOT_ID:"A",AD_SERVER_POST_IMPRESSION_MACRO:"A2",BAPI_CALLBACK:"b",BROWSER_NOT_HTML5_COMPATIBLE:"B",ADTALK_GENERAL:"c",COCOA_GONE:"C",CLICK_TRACK:"Q",GET_SCREEN_LOC_GET_DIMENSIONS:"d",ADTALK_DUBIOUS:"D",IMPRESSION_PERFORMANCE:"e",POST_IMPRESSION:"E",ADTALK_DELAY:"f",VIDEO_IN_IFRAME_DIMS_CALC:"F",GDPR:"g",INIT_ADS_MANAGER:"G",PHONE_HOME:"h",FEATURE_SCRIPT:"H",HIDDEN:"H1",HIDDEN2:"H2",UID_GENERATION:"i",IMPRESSION_URLS:"I",NOT_VPAID_EVENT_OBJECT:"j",JSINFO:"J",KILL_IT:"k",NO_RESPONSE_XML:"K",LOCATION_DETAILS:"l",IMPRESSION_LEADUP:"L",MESSAGE_LISTENER:"m",MOBILE_APP:"M",AT_INIT:"N",AUTOPLAY_DETECTION:"n",ANCESTOR_ORIGINS:"o",EVENT_LOOP_ONE:"O",GET_SCREEN_LOC_PIV_CALC:"p",PLUGIN_PARSING:"P",NO_ORIGINAL_VAST:"q",AD_REFRESH:"r",AD_ERROR:"R",GET_ELEM_STYLE:"s",AT_SEND:"S",ADS_MANAGER_START_AD:"t",NO_COMPANION_AD_XML:"T",NO_VIDEO_AD_INTERFACE:"u",UNRECOGNIZED_EVENT_TYPE:"U",ENVIRONMENT:"v",CHECK_SCREEN_LOC:"V",GET_WIN_DIMENSIONS:"w",AC_WATCHER:"W",EXCHANGE_PARSING:"x",SCA:"X",BUSTED_IFRAME_IN_IO:"y",FLASH_API_ACCESS:"z",XSCA:"Z"},BROWSERS:{WEBKIT:"w",OPERA:"o",GECKO:"g",CHROME:"c",MSEDGE:"e",IE:"i",DOMLESS:"d"},MEDIA_TYPE_CODE:"mtp",MEDIA_TYPE:{DISPLAY:"display",DISPLAY_CODE:"d",VIDEO:"video",VIDEO_CODE:"v"},MEASUREMENT_STRATEGY:{DISPLAY:"display",VIDEO:"video"},TIERS:{PRE_IMPRESSION_FRAUD:4,VIEWABILITY:7,ENVIRONMENT:8},IMPRESSION_EVENT:"impression",DATA_TRANSFER_EVENT:"dt",CALLBACK_IDENTIFIER:"data-ias-callback",AD_IDENTIFIER:"data-integralas-id",IAS_DETECTOR:"iasdetector",CONTAINER_GEOMETRY_MEASUREMENT_CHANGED:"containerGeometryMeasurementChanged",OMID_GEOMETRY_MEASUREMENT_CHANGED:"omidGeometryChanged",VIEWABILITY_IN_VIEW_THRESHOLDS_INTERSECTION_OBSERVER:[0,.01,.2,.25,.3,.5,.7,.75,.8,.99,1],VIEWABILITY_IN_VIEW_THRESHOLDS_MOBILE_GRID:[0,.1,.2,.25,.3,.4,.5,.6,.7,.75,.8,.9,1],GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE:"grpmMobPassThru",REFERRER_POLICY:"no-referrer-when-downgrade",RENDER:{CREATIVE_NODE_TYPES:["CANVAS","EMBED","IMG","OBJECT","PICTURE","SVG","VIDEO"],CONTAINER_NODE_TYPES:["A","DIV","IFRAME","INS"],WIDTH_THRESHOLD:20,HEIGHT_THRESHOLD:20,STATUS:{OTHER:"0",DETECTED:"1"},DETAILS:{ENVIRONMENT:"env",OTHER:"na"},DIAGNOSTIC:{BROKEN_IMAGE:"bi",UNQUALIFIED_SIZE:"us",QUALIFIED_SIZE:"qs",STYLED_NODE:"sn",TEXT_NODE:"tn",DOCUMENT_READY:"dr",LOAD_FIRED:"lf",CONTENT_STYLED:"cs",MRAID_DEFAULT:"md",MRAID_READY:"mr",MRAID_LOADING:"ml",MRAID_UNKNOWN:"mu",OMID_RENDERED:"or",OMID_UNRENDERED:"ou"}},RTS_KEY_FOR_VQ:"qiv",UNIQUE_ID_TOKEN:"[IAS_ASID]"};var A="mf",_="cm",D="in",S="pr",v="po",O="bl",R="lo",N="lt",y="md",C="id",M=function(e){"use strict";return{verifyContextNode:function(){!(__IASScope.isDomless||e.contextNode&&null!==e.contextNode.parentNode)&&(e.contextNode=function(){var t,r=n.getElementsByTagName("script"),i=r.length,o=r[i-1],s=e.scriptUrl;try{for(;--i>=0;)if((t=r[i]).src&&0===t.src.indexOf(s)&&null===t.getAttribute("data-ias-script-tag")){o=t,t.setAttribute("data-ias-script-tag","found");break}}catch(e){}return o}())}}},w=function(){"use strict";var t,n=["STYLE","SCRIPT","HEAD","META"],r=T.RENDER.CREATIVE_NODE_TYPES.concat(T.RENDER.CONTAINER_NODE_TYPES),i=0,o=d.measurementConfig.useFIF&&Ae.friendlyIframe||Ae.isSpecifiedAd(),s=0,a=[],c=function(t){var n,r,o=t,s=t,a=Ae.friendly?We.getTop().document.body:e.contextNode.ownerDocument.body;for(;i<3;){if(a&&o===a){s=o,i=3;break}Oe.isWindow(o)&&(r=void 0,r="["+T.AD_IDENTIFIER+"-"+e.asid+"]",n=Oe.crossQuerySelector(r),o=m.isDef(n)?n:o),s=o=m.isDef(o)&&o.parentNode||o,i++}return s},u=function(e){var t=function(e){var t,i,o=[],s=e&&e.getElementsByTagName&&e.getElementsByTagName("*"),a=s&&s.length;if(s)for(var c=0;c<a;c++)i=(t=s[c])&&t.nodeName&&t.nodeName.toUpperCase(),!t.children||0!==t.children.length||m(r).contains(i)||m(n).contains(i)||m(o).contains(i)||o.push(i);return o}(e);return r.concat(t)},g=function(t){var n,r=o?c(t):t;return Oe.isWindow(r)?n=function(t){var n;try{n=t.document}catch(t){n=e.contextNode.ownerDocument}return n}(r):"IFRAME"===Oe.getNodeName(r)?(a.push(t),n=t.contentWindow.document):n=r,n},l=function(n){var r,i=Oe.isNodeXDomainIframe(n)||Oe.isNodeCreative(n),o=!n;if(t=o?e.contextNode.parentNode:n,i||o)(r=a.length)>0&&(s<r?s=r:(s=0,a=[])),h.getAggregator().trigger(L.EVALUATE_CREATIVE_FINDER_RESULT,n);else{var c=g(n),d=u(c);new b(d,a).searchDescendants(c)}};return h.getAggregator().on(L.CREATIVE_FINDER_BATCH_COMPLETED,l),{find:l,getClosestContainerName:function(){return Oe.getNodeName(t)}}},b=function(t,n){"use strict";var r=t,i=function(e){var t=0,r=null,i=-1;function o(e){if(o=e,s=Oe.getNodeName(o),a=Oe.isNodeCreative(o)||"IFRAME"===s,s&&a&&!Oe.isEmptyFriendlyFrame(e)){var t=Oe.getNodeArea(e);t>i&&!m(n).contains(e)&&(r=e,i=t)}var o,s,a}e.length&&h.getAggregator().request("useYieldSearch")?function n(){do{o(e[t]),t+=1}while(t%500!=0&&t<e.length);t<e.length?We.execAtEndOfThread(n,0):h.getAggregator().trigger(L.CREATIVE_FINDER_BATCH_COMPLETED,r)}():function(){for(;t<e.length;t++)o(e[t]);h.getAggregator().trigger(L.CREATIVE_FINDER_BATCH_COMPLETED,r)}()};return{searchDescendants:function(t){var n=t||e.contextNode.parentNode,o=Oe.collectCandidateElements(n,r);i(o)}}},P=function(){"use strict";var e,t=!1,n=!1,r=!1,i={status:T.RENDER.STATUS.OTHER,details:T.RENDER.DETAILS.OTHER},o={status:T.RENDER.STATUS.DETECTED,details:T.RENDER.DETAILS.ENVIRONMENT},s="rend",a="renddet",c=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),u=function(){var e=!1;return Ae.isOmid()&&c&&c.useOMID13Logic&&(e=!0),e},d=function(){t=!0,r=!0},g=function(n){var r=e.build(),o=n.status||i.status,c=r||i.details;o===T.RENDER.STATUS.DETECTED&&h.getAggregator().trigger(L.PERF_CHECKPOINT,{type:T.PERF_TIMELINE_TRACKER_CONFIG.RENDER.TYPE,timestamp:We.now(),code:T.PERF_TIMELINE_TRACKER_CONFIG.RENDER.CODE}),t&&o===T.RENDER.STATUS.DETECTED?(h.getAggregator().trigger(L.ADD_THROTTLED_OUTPUT_ITEM,s,o),h.getAggregator().trigger(L.ADD_THROTTLED_OUTPUT_ITEM,a,c)):(h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:o},s),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:c},a))},l=function(){var t=c&&!!c.isVideo,r=!u()||c&&!!c.videoStartArrived,i=!u()||c&&!!c.geometryArrived,s=!c.omidEarlyExit||c.omidImpressionArrived,a=!(c.omidEarlyExit&&u())||c.omidLoadedArrived;return!(n||!i||!s||!a||t&&!r)&&(h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:Ae.getTagTime()},"oren"),h.getAggregator().trigger(L.ELIGIBLE_RENDER),e.save(T.RENDER.DETAILS.ENVIRONMENT),e.save(T.RENDER.DIAGNOSTIC.OMID_RENDERED),h.getAggregator().trigger("adRendered"),g(o),n=!0,!0)};return{start:function(){var t=!1;h.getAggregator().trigger(L.PERF_CHECKPOINT,{type:T.PERF_TIMELINE_TRACKER_CONFIG.RENDER.TYPE,timestamp:We.now(),code:x.INITIAL}),h.getAggregator().on(L.AD_RENDERED,(function(){t=!0})),h.getAggregator().provide(U.AD_RENDER_STATUS,(function(){return t})),h.getAggregator().provide(U.USE_YIELD_SEARCH,(function(){return r})),e=new W,new B,h.getAggregator().on(L.IMPRESSION_SENT,d),u()||c.omidEarlyExit?l()||(e.save(T.RENDER.DETAILS.ENVIRONMENT),e.save(T.RENDER.DIAGNOSTIC.OMID_UNRENDERED),g(i),h.getAggregator().on("omidrendgeoupdate",(function(){l()})),h.getAggregator().on(L.OMID_REND_VIDEO_START,(function(){l()})),c.omidEarlyExit&&(h.getAggregator().on("omidimpressionarrived",(function(){l()})),h.getAggregator().on("omidloadedarrived",(function(){l()})))):Ae.isOmid()||Ae.isVideo()?(h.getAggregator().trigger(L.ELIGIBLE_RENDER),e.save(o.details),h.getAggregator().trigger("adRendered"),g(o)):(g(i),V(g,i,e))}}};const V=function(e,t,n){h.getAggregator().on(L.PRIMARY_AD_FOUND,(function(r){let i;const o=w();let s=!0;const a="data-ias-rend-bi",c=function(e){e&&(e.status="1"),h.getAggregator().trigger("adRendered")},u=function(e){let t=!0;const r=m.isDef(e.naturalWidth)?e.naturalHeight*e.naturalWidth:0,i=getComputedStyle(e),o=0===e.src.length&&Xe.contains(i.content,"url"),s=e.getAttribute&&e.getAttribute(a);return r>0&&!o&&(t=!1),"false"===s&&(n.save("cs"),t=!1),o&&!s&&function(e,t){n.save("cs");const r=/url(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t.content),i=r&&r[1],o=Oe.createImage(),s=e;o.onload=function(){o.naturalHeight*o.naturalWidth>0&&s.setAttribute&&s.setAttribute(a,!1)},o.src=i,s.setAttribute(a,!0)}(e,i),t},d=function(){i?We.clearInterval(i):s=!1};h.getAggregator().on(L.EVALUATE_CREATIVE_FINDER_RESULT,(function(r){let i;Oe.isNodeXDomainIframe(r)?(d(),t=function(t){const r={},i="readystatechange",o="load",s=We.getDoc(),a="complete"===s.readyState,u=function(a){const d=a&&a.type;(d===i&&"complete"===a.target.readyState||d===o)&&(c(r),n.saveNode(t),"readystatechange"===d?n.save("dr"):"load"===d&&n.save("lf"),e(r),_e.removeEvent(t,o,u),_e.removeEvent(s,i,u))};return a?(c(r),n.saveNode(t),n.save("dr")):(_e.addEvent(t,o,u,void 0),_e.addEvent(s,i,u,void 0)),r}(r)):r?(function(e){let t=!1;const r=Oe.getRect(e);return e&&"IMG"===Oe.getNodeName(e)&&u(e)&&(t=!0,n.save("bi")),!t&&r.width>=20&&r.height>=20}(r)&&(c(t),d()),n.saveNode(r)):(i=o.getClosestContainerName()||n.getAdNodeName(r)||t.details,n.save(i)),e(t)}));const g=function(){const e=r&&r.getAdNode();try{o.find(e)}catch(e){h.getAggregator().trigger(L.RENDER_DIAG,e)}},l=h.getAggregator().request(U.MOBILE_APP);l&&l.isMobileAppEnvironment&&l.isMobileAppEnvironment()&&Ae.isMraid()?function(e,n){const r=We.getWindow().mraid,i=r&&r.getState&&r.getState(),o="ready",s=t,a=function(){_e.removeEvent(r,o,a),n.save("env"),n.save("mr"),h.getAggregator().trigger("adRendered"),e({status:"1"})};n.save("env"),"default"===i?(h.getAggregator().trigger("adRendered"),n.save("md"),s.status="1"):"loading"===i?(_e.addEvent(r,o,a,void 0),n.save("ml")):(_e.addEvent(r,o,a,void 0),n.save("mu")),e(s)}(e,n):(g(),s&&(i=We.setInterval(g,500))),h.getAggregator().trigger(L.ELIGIBLE_RENDER)}))};var L,F,U,x,W=function(){"use strict";var e=[],t=[],n=function(e){var t;if(Oe.isWindow(e))t="WINDOW";else if(Oe.isNodeXDomainIframe(e))t="XIFRAME";else try{t=Oe.getNodeName(e)}catch(e){r("nen")}return t},r=function(t){e.push(t)};return{build:function(){var n=[];return m(t).each((function(e,t){n.push(t)})),m(e).each((function(e,t){n.push(t)})),t=[],e=[],n.join(".")},getAdNodeName:n,save:r,saveNode:function(e){try{var i=e&&n(e),o=e&&Oe.getRect(e),s=e&&Oe.hasBackgroundImage(e),a=e&&e.children&&0===e.children.length,c=e&&e.innerText&&e.innerText.length>0,u=a&&c,d=o&&o.width>=T.RENDER.WIDTH_THRESHOLD&&o.height>=T.RENDER.HEIGHT_THRESHOLD?T.RENDER.DIAGNOSTIC.QUALIFIED_SIZE:T.RENDER.DIAGNOSTIC.UNQUALIFIED_SIZE;t.push(i),t.push(d),s&&t.push(T.RENDER.DIAGNOSTIC.STYLED_NODE),u&&t.push(T.RENDER.DIAGNOSTIC.TEXT_NODE)}catch(e){r("sne")}}}},B=function(t){"use strict";var n,r=!1,i=!1,o="1",s="0",a=function(){r=!0,u()},c=function(e){n=e,u()},u=function(){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:!n&&r?o:s},x.MEASURABLE_FOR_RENDER),n&&n.message&&!i&&(__IntegralASDiagnosticCall("renderloop",n,e),h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.ENVIRONMENT,"rle",1),i=!0)};h.getAggregator().on(L.ELIGIBLE_RENDER,a),h.getAggregator().on(L.RENDER_DIAG,c),u()},G=function(){"use strict";return{applies:function(e,t){var n=h.getAggregator().request(U.MOBILE_APP);return(e.browserIs(T.BROWSERS.CHROME)||e.isAndroidWebViewBrowser()||e.browserIs(T.BROWSERS.WEBKIT)||e.browserIs(T.BROWSERS.MSEDGE))&&!n.isMobileAppEnvironment()&&e.hasIntersectionObserver()}}},k=function(){"use strict";var e,t,n=!1,r=h.getAggregator().request(U.PAGE),i=function(){!n&&t&&e&&!r.isHidden()&&(n=!0,h.getAggregator().trigger(L.SEND_DT,T.DT_CODES.LARGE_BILLABLE))};h.getAggregator().on(L.PRIMARY_AD_FOUND,(function(t){e=t.getDims().area()>=T.MRC_LARGE_AD_SIZE,i()})),h.getAggregator().on(L.IMPRESSION_SENT,(function(){t=!0,i()})),r.onHiddenChange(i)},H=function(){"use strict";var e=[],t={},n={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h",omidObstructions:"oobs"},r={omidObstructions:["sl","percentInView","reason"]};h.getAggregator().on(L.NEW_SCREEN_EVENT,(function(r){var o=m(r).selectProperties(m(n).keys()),s=m(o).asStrings(),a=m(s).compareTo(t);(a=i(a))&&JSON.stringify(a)!==JSON.stringify({})&&(a.t=Ae.getTagTime(),e.push(a)),m(t).mixin(s)}));var i=function(e){return m(r).each((function(t,n){var r=!1;m(n).each((function(t,n){e[n]&&(r=!0)})),!1===r&&delete e[t]})),e};return{toString:function(){return m(e).toION(n)}}},Y=function(){"use strict";var e=new $,t=new j;return m(e).mixin(t)};!function(e){e.AD_COMPONENT_ADDED="adComponentAdded",e.AD_COMPONENT_CLICKED="adComponentClicked",e.AD_COMPONENT_TOUCH_END="adComponentTouchedEnd",e.AD_COMPONENT_TOUCH_START="adComponentTouchStart",e.AD_COMPONENT_MOUSED_OVER="adComponentMousedOver",e.AD_COMPONENT_MOUSED_OUT="adComponentMousedOut",e.AD_COMPONENT_REMOVED="adComponentRemoved",e.AD_IMPRESSION="adImpression",e.AD_RENDERED="adRendered",e.AD_SESSION_COMPLETE="adSessionComplete",e.AD_USER_INTERACTION="adUserInteraction",e.AD_VIDEO_COMPLETE="adVideoComplete",e.AD_VIDEO_START="adVideoStart",e.ADD_OUTPUT_ITEM="addOutputItem",e.ADD_THROTTLED_OUTPUT_ITEM="addThrottledOutputItem",e.ADD_THROTTLED_PROP="addThrottledProp",e.BLUR="blur",e.CREATIVE_FINDER_BATCH_COMPLETED="creativeFinderBatchCompleted",e.DEFERRED_AD_SESSION_READY="deferredAdSessionReady",e.DELAYED_VIEWABILITY_READY="delayedViewabilityReady",e.DELAYED_VIEWABILITY_READY_CALL_ONLY="delayedViewabilityReadyCallOnly",e.ELIGIBLE_RENDER="eligiblerender",e.END_AD_SESSION="endAdSession",e.ERROR="error",e.EVALUATE_CREATIVE_FINDER_RESULT="evaluateCreativeFinderResult",e.EXEC="exec",e.GET_JSON="getJSON",e.IMPRESSION_SENT="impressionsent",e.INTERNALLY_GENERATED_GEOMETRY_EVENT="internallyGeneratedGeometryEvent",e.IO_PIV_CHANGE="IOPivChange",e.JSONP="jsonp",e.MARK_TIME="markTime",e.MEASURABLE="measurable",e.MEASURE_TIME="measureTime",e.NEW_SCREEN_EVENT="newScreenEvent",e.NEW_STATE="newState",e.NODES_ADDED="nodesAdded",e.NOTIFY="notify",e.OMID_AD_DURATION="omidAdDuration",e.OMID_IMPRESSION_ARRIVED="omidimpressionarrived",e.OMID_LOADED_ARRIVED="omidloadedarrived",e.OMID_REND_GEO_UPDATE="omidrendgeoupdate",e.OMID_REND_VIDEO_START="omidrendvideostart",e.PERF_CHECKPOINT="perfCheckpoint",e.PRIMARY_AD_FOUND="primaryadfound",e.RENDER_DIAG="renderdiag",e.SEND="send",e.SEND_DIAG="sendDiag",e.SEND_DT="sendDt",e.SEND_MIN_DT="sendMinDt",e.START_VIEWABILITY_LOOP="startViewabilityLoop",e.STOP_AD_TALK="stopAdTalk",e.UNLOAD="unload",e.VIDEO_BLOCK_RESULT="videoBlockResult",e.VIDEO_QUARTILE_EVENT="videoQuartileEvent"}(L||(L={})),function(e){e.BEFORE_UNLOAD="beforeunload"}(F||(F={})),function(e){e.AD_NODE="adNode",e.AD_PROXY="adProxy",e.AD_RENDER_STATUS="adRenderStatus",e.AD_SLOT_IDS="adSlotIds",e.AD_TALK_EVENT_AGGREGATOR="adTalkEventAggregator",e.AD_TALK_MESSAGE="adTalkMessage",e.AD_TALK_MESSAGE_COLLECTION="adTalkMessageCollection",e.BROWSER="browser",e.COMMUNICATION="mComm",e.CONTEXT="context",e.ERRORS="mErrors",e.FEATURES="features",e.FRAME_COLLECTION="frameCollection",e.ID_MAP_MODULE="idMapModule",e.IDS="ids",e.IFRAME_CALCULATOR_HELPER="iframeCalculatorHelper",e.INTER_FRAME_QUERY_SELECTOR="interFrameQuerySelector",e.JOB_FACTORY="jobFactory",e.JSONP="mJsonp",e.MOBILE_APP="mobileApp",e.OMID_AD_SESSION_CONTEXT="omidAdSessionContext",e.OMID_AS_VERIFICATION_PARAMS="omidAdSessionVerificationParameters",e.OMID_VERIFICATION_CLIENT="omidVerificationClient",e.PAGE="mPage",e.PAGE_URLS="pageUrls",e.SCREEN_EVENTS="mScreenEvents",e.USE_YIELD_SEARCH="useYieldSearch",e.VIDEO="video",e.VIDEO_VERSION="videoVersion",e.VIEWABILITY="viewability",e.VIEWABILITY_DEFINITIONS="viewabilityDefinitions"}(U||(U={})),function(e){e.AD_HEIGHT="adHeight",e.AD_WIDTH="adWidth",e.APP_SDKS_DETECTED="sdk",e.B11="b11",e.BAD_URL_NO_PERIOD="bunp",e.BAPI_CLIENT="bapiClient",e.BOOTSTRAPPER_APP="app",e.BOOTSTRAPPER_MOB_APP_WEBVIEW="maw",e.BOOTSTRAPPER_MOB_OR_TAB="mot",e.BROWSER_IS="browserIs",e.CNOD="cnod",e.CONTEXT_NODE="contextNode",e.CUSTOM_METRIC_IN_VIEW_REASON="cmr",e.GEOMETRY_EVENTS_RECEIVED="og",e.INITIAL="initial",e.LENGTH="length",e.MAIN_FUNCTION_STARTED_NOW="mtim",e.MAPP1_EXCLUSION_LIST_MATCH="xlu",e.MATCHED_MOBILE_APP_DETECTION_RULE="drul",e.MEASURABLE_FOR_RENDER="rmeas",e.METRIC_ID="metricId",e.METRIC_ID_EVENT_CALL="scm",e.METRIC_ID_LIST="metricIdList",e.MISMATCH_OF_INTEGRATED_BLOCKING_TAG_TYPES="smm",e.MOB_APP_WEBVIEW="mobAppWebview",e.MOB_OR_TAB="mobOrTab",e.MOB_APP="app",e.MOBILE_APP_ENVIRONMENT="mapp",e.MOBILE_FW_URL="mobFwUrl",e.MRAID_INJECTION_STATUS="mi",e.OMID_APP_MEASUREMENT="oam",e.OMID_RENDERED_INDICATION="oren",e.OMID_SESSION_ERROR="oser",e.OMID_SESSION_FINISH="osef",e.ORIGINAL_MOB_OR_TAB="origMobOrTab",e.PERFORMANCE="prf",e.PLUGIN_DECODED="pd",e.PLUGIN_LIST="pl",e.SAFEFRAME="sf",e.SAFEFRAME_HOSTURL="sfhu",e.SAFEFRAME_INVALID_HOSTURL="sfiv",e.SLID="slid",e.STATIC_CONFIG_REQUEST_TIME="scq",e.STATIC_CONFIG_RESPONSE_TIME="scs",e.STATIC_IMPRESSION_RFW_CALL_REQUEST_TIME="siq",e.STATIC_IMPRESSION_RFW_CALL_RESPONSE_TIME="sis",e.TAG_DELIVERY_TYPE="tdt",e.THIRD_PARTY_DATA_LOOKUP="tpiLookup",e.VIDEO_BREAK_POSITION="vbp",e.VIDEO_CHANNEL="vc",e.VIDEO_PLAYER_STATE="vps"}(x||(x={}));const j=function(){"use strict";const e={},t={},n=function(e,n){t[e]=t[e]||[],t[e].push(n)},r=function(t,n){const r=e[t];r&&r.run.apply({},n)},i=function(e,n,r){let i=t[e];if(i&&0!==i)return r&&(i=i.slice(0,1)),m(i).each((function(e,t){n.apply({},t)})),!0},o=function(t,n,r){e[t]=e[t]||new K,e[t].push(n,r)};return{on:function(e,t){let n={};t?n[e]=t:n=e,m(n).each(o),m(n).each(i)},once:function(e,t){i(e,t,!0)||o(e,t,1)},trigger:function(e){const t=m(arguments).toArray();t.shift(),r(e,t)},persistentTrigger:function(e){const t=m(arguments).toArray();t.shift(),n(e,t),r(e,t)}}};var q=function(){"use strict";var e=function(t,n,r){var i,o,s=n.length,a=Oe.isWindow(t)?t.frames:Oe.getChildWindowsOf(t);if(r&&r(t,n),a&&a.length){for(i=0;i<a.length;i++)(o=a[i])&&Oe.isWindow(o)&&(n[s]=i,e(o,n,r));n.pop()}},t=function(t,n){try{e(n||top,[0],t)}catch(e){}};return{traverse:t,getFrames:function(e,n){var r=[];return t((function(e){Oe.isWindow(e)&&function(e,t){var n,r=!0;for(n=0;n<e.length;n++)if(e[n]===t){r=!1;break}return r}(r,e)&&r.push(e)}),n),m(r).filter(e)}}};const K=function(){"use strict";const e=[];return{push:function(t,n){let r=0;n=n||Number.MAX_VALUE;e[e.length]=function(){r<n&&(r++,t.apply({},arguments))}},run:function(){const t=arguments;m(e).each((function(e,n){n.apply({},t)}))}}};var X=function(e){"use strict";var t={};return{doEligibleJobs:function(n){m(e).each((function(e,r){var i=r&&r.getTime();m.isDef(i)&&n>=i&&!t[i]&&(r.getTask().call(),t[i]=!0)}))}}},z=function(){"use strict";var e,n=new J;return{listen:function(r,i,o){e=function(e){!function(e,t,r,i){var o,s,a,c;if(JSON&&JSON.parse)try{o=JSON.parse(e.data),s=e.source,c=m.noop,t(o)&&(i&&(a=i(s,o))&&(c=function(){n.send((function(){return a}),s)}),r(e,o,c))}catch(e){o&&h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.MESSAGE_LISTENER)}}(e,r,i,o)},_e.addEvent(t,"message",e)},stop:function(){e&&_e.removeEvent(t,"message",e),e=null}}},J=function(){"use strict";return{send:function(e,t){if(JSON&&JSON.stringify){var n=function(e){return m(e).isObj()?[e]:(new q).getFrames(e)}(t);m(n).each((function(t,n){var r,i=m.resolve(e,n)||{};i.sentTime=We.now(),r=function(e){return m(e).mapToObj((function(e,t){var n;return m.isFunction(t)||((n={})[e]=t),n}))}(i),n.postMessage(m(r).JSONStringify(),"*")}))}}}},Q=function(e){"use strict";var t=0,n={},r=function(e,n,r){if(m.isUndef(e.output))throw new Error("item with id "+n+' must have "output" method');this.item=e,this.id=n||++t,this.props=r||{},this.output=function(){var t=m.resolve(e.output);return this.props.asION&&(t=m(t).toION()),t}},i=function(e){var t,r,i=[];for(t in n)n.hasOwnProperty(t)&&(r=e(t,n[t]))&&i.push(r);return i},o=function(e,t,i){i="string"!=typeof(i=i||t)?i:{};var o=m(e.output).isObj()&&!i.asION,s=function(e,t,i){var o=new r(e,t,i);n[o.id]=o};o?m(e.output).each((function(e,t){s({output:t},e,i)})):s(e,t,i)};return e.on(L.ADD_OUTPUT_ITEM,(function(e,t,n){o(e,t,n)})),{addItem:o,filterOutput:function(e,t){return i((function(n,r){var i,o=r.props;e(o)&&(i=r.output(),o.encode&&(n=encodeURIComponent(n),i=encodeURIComponent(i)),m.isFunction(t)?t(n,i):t[n]=i)}))},iterate:i,cleanup:function(){i((function(e,t){t.props.flagForRemoval&&delete n[e]}))},getItem:function(e){return n[e]}}};const $=function(){"use strict";const e={},t=(t,n)=>{e[t]=n};return{request:function(t){let n;const r=e[t],i=m(arguments).toArray();return i.shift(),m.isUndef(r)||(n=m.isFunction(r)?r.apply({},i):r),n},provide:(e,n)=>(n?t(e,n):m(e).each(t),n)}};var Z=function(){"use strict";return{createInstance:function(e,t,n,r){return Ae.isDomless()?new te:new ee(e,t,n,r)}}},ee=function(e,t,n,r){"use strict";var i,o=function(e,t){return{viewState:T.NA,posViewState:T.NA,embedded:Ae.embedded,winDimensions:e,adDimensions:t}};return{collect:function(){var t=e.find(),s=t.getOutOfViewReasons(),a=n.isHidden(),c=r.isDeviceTypeGroupMobile()&&i?i:ve(Oe.calcWinDims()),u=t.getDims();return i=c,t.hasAd()&&c.hasValidDims()&&u.hasValidDims()?(!0===a&&s.push(T.OUT_OF_VIEW_REASONS.FOCUS),{winDimensions:c,adDimensions:u,containerDimensions:t.getContainerDims(),method:t.getDetectionMethod(),viewState:s.length?T.OUT_OF_VIEW:t.getViewState(),viewStateIgnoringRender:t.getViewStateIgnoringRender(),percentInView:t.getPercentInView(),percentInViewIgnoringRender:t.getPercentInViewIgnoringRender(),reason:s.join("."),obstructed:m.stringifyTriState(t.isObstructed()),isHidden:m.stringifyTriState(t.isHidden()),tabHidden:m.stringifyTriState(a),posViewState:t.getViewState(),adCompCount:t.getComponentCount(),sliceStatus:t.getSliceStatus()}):o(c,u)}}},te=function(){"use strict";return{collect:function(){return{}}}},ne=function(e){"use strict";e=e||m.identity;var t=[],n=We.now(),r=function(){var e=We.now();t.length&&(t[t.length-1].duration+=e-n,n=e)};return{clear:function(){r(),t=[]},fastForward:r,get:function(){return t},hasAlwaysBeen:function(e){return 1===t.length&&t[0].state===e},addState:function(n){var i=t[t.length-1],o=e(n);r(),0!==t.length&&o===i.state||t.push({state:o,duration:0})}}};const re=function(e,t){"use strict";const n=e||1;let r,i=0,o=0,s=0;return{start:()=>{i%n==0&&(r=We.now())},stop:()=>{const e=r||t;i%n==0&&(s+=We.now()-e,o++),i++},getTime:()=>s,getCount:()=>o}};var ie=function(){"use strict";var e,t=0,n=0,r=new j(!0),i=function(){e&&(t++,r.trigger(t),n>t?We.execAtEndOfThread(i):o())},o=function(){e=!1,t=0};return{onTick:function(e,t){var i=m.collapseArgsIntoHash(e,t);m(i).each((function(e,t){e=parseInt(e),n=e>n?e:n})),r.on(i)},start:function(){e||(e=!0,We.execAtEndOfThread(i))},kill:o,isActive:function(){return e}}},oe=function(e){"use strict";var t,n=0,r=Ae.getTagTime(),i=0,o=!1;return{getTotalTime:function(){return i},stop:function(){n=0,r=Ae.getTagTime(),o=!1},mark:function(){t=o?Ae.getTagTime()-r:0,(n+=t)>=e&&(i+=n-t<e?n:t),r=Ae.getTagTime(),o=!0}}};const se=function(t,n){"use strict";let r=t||e.adsafeSrc||e.requrl;r&&0===r.indexOf("http")||(r=0===r.indexOf("//")?e.protocol+":"+r:e.protocol+"://"+r);const i=/((http|https):\/\/(([^\/\.]*)\.([^\/]*)))(?:\/(.[^?]*)\??(.+)?)*/.exec(r)||[],o=i[1]?i[1]:"",s=i[2]?i[2]:"",a=i[3]?i[3]:"";let c=i[4]?i[4]:"",u=i[5]?i[5]:"",d=t&&i[6]?i[6]:"",g=i[7]&&n?i[7]:"";const l={},f=function(e){return"string"==typeof e&&(c=e),c},E=function(e){return"string"==typeof e&&(u=e),u},p=function(t,n){const r=t+"="+m(n).toION();return m.encodeInvalidUrlChars(r,e.encodeInvalidUrlChars)},I=function(){const e=m(l).isEmpty()?"":m(l).stringify(p,"&");return"?"+g+(g&&e?"&"+e:e)};g=g?g.replace(/&$/,""):"";return{appendToParamValue:function(e,t){let r,i,o,s;const a=l[e];a?l[e]=a+t:n&&g.length&&(r=g.split(e),s=r.length>1,s&&(i=r[1].split("&")[0],o=[r[0],i].join(e),g=g.replace(o,o+t)))},fullDom:o,hostname:a,sub:f,master:E,setParam:function(e,t){l[e]=l[e]||{},"string"==typeof t||"number"==typeof t?l[e]=t:m(l[e]).mixin(t)},path:function(e){d=e},toString:function(){const e=f()?f()+".":"",t=d?"/"+d:"",n=g||!m(l).isEmpty()?I():"";return s+"://"+e+E()+t+n}}};var ae=function(){"use strict";var e=function(e){var t=[];return m(e).each((function(e,n){t.concat(n).join("").length<=400&&t.push(n)})),t},t=function(e){var t=Oe.getAncestorNodes(e);return m(t).map(n)},n=function(e,t){var n;return t&&t.id&&(n=t.id.replace(/[^\w-_.>\/]/g,"")),n};return function(){var n,r;try{return Ae.friendly&&!Ae.isMobileApp()&&((n=h.getAggregator().request("adSlotIds"))?r=n:(n=function(){var n,r;return(n=Oe.getOurNodeInTop())&&(r=t(n)),r&&e(r)}(),n&&(h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:n},x.SLID,{type:T.DT_CODES.ADTALK,asION:!0}),h.getAggregator().provide("adSlotIds",n),r=n))),r}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.AD_SLOT_ID)}}()},ce={name:"AdRefreshDetection",dependencies:[],creator:function(){"use strict";var t=[15,30,45,60,90],n={start:function(){var t=this,n=e.asid,r=this.getChanId(),i=e&&e.contextNode&&e.contextNode.nextSibling&&e.contextNode.nextSibling.id;n&&r&&(this.recordAdSlotImpression(n,r,i,(function(e,n){e?h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.AD_REFRESH):t.sendRefreshSession(n)})),t.registerInternalViewabilityListener(r,i))},adRefreshIntervalIsValid:function(e){return-1!==t.indexOf(e)},getChanId:function(){for(var t,n=e.reqquery.split("&"),r=/(\S+)=(\S+)/g,i=0;i<n.length;i+=1){r.lastIndex=0;var o=r.exec(n[i]);o&&3===o.length&&"chanId"===o[1]&&(t=o[2])}return t},sendRefreshSession:function(e){var t=(0===e.refreshCount?"self":e.refreshSessionId)+"."+e.refreshCount;h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.ENVIRONMENT,"ar",t)},recordAdSlotImpression:function(e,t,n,r){var i=We.getTop(),o={requestTop:"recordAdSlotImpression",asid:e,adUnitId:t,cacheId:n};window.addEventListener("message",(function(e){if(/refreshSession/g.test(e.data))try{var t=e&&e.data&&JSON.parse(e.data);r(null,t)}catch(e){r(e)}}),!1),i.postMessage(JSON.stringify(o),"*")},registerInternalViewabilityListener:function(e,t){var n=this,r=d.measurementConfig.adRefreshThreshold&&parseInt(d.measurementConfig.adRefreshThreshold)||null,i=We.getTop();r&&this.adRefreshIntervalIsValid(r)&&h.getAggregator().on(L.SEND_DT,(function(o,s){o===T.DT_CODES.PING&&s===r&&(We.execAtEndOfThread((function(){i.postMessage(JSON.stringify({requestTop:"refreshAd",adUnitId:e,cacheId:t}),"*")})),n.sendAutoRefreshProp(r))}))},sendAutoRefreshProp:function(e){h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.ENVIRONMENT,"ir",e),h.getAggregator().trigger(L.AD_SESSION_COMPLETE)}};return Ae.isRefreshable((function(e,t){var r;if(!e&&t)try{(r=JSON.parse(t)).isRefreshable&&r.adServerName&&n.start()}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.AD_REFRESH)}})),n},settings:{tier:T.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return n.isPossiblyRefreshable()}}},ue=function(){"use strict";var e,t,n=function(e,t){return-1!==t.indexOf("https")&&(t+="*"),t.replace(/^https?:\/\//,"")},r=function(){if(h.getAggregator().request(U.AD_NODE))return parseFloat(h.getAggregator().request(U.VIDEO_VERSION))};return{isApplicable:function(e,t,n){return!function(e){return e.isVideo()&&!(e.isMraid()||e.isOmid())&&r()<3.7}(n)&&e.hasAncestorOrigins&&e.hasAncestorOrigins()&&t.on("ancestor")&&n.xDomainIframe},isStarted:function(){return!!t},start:function(){try{e=We.getWindow().location.ancestorOrigins,t=!0}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.ANCESTOR_ORIGINS)}},getMyFrameDepth:function(){return e&&e.length||0},getTopDomain:function(){return m.last(e)},sendOriginList:function(){var t;t="ao:"+(e?m(e).map(n).reverse():[]).join(","),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:t},x.THIRD_PARTY_DATA_LOOKUP,{type:T.DT_CODES.THIRD_PARTY,standalone:!0,encode:!0}),h.getAggregator().trigger(L.SEND_DT,T.DT_CODES.THIRD_PARTY)}}},de=function(t,n,r,i,o){"use strict";var s=function(e,t,n){o.addItem({output:e+"."+t+"."+n},"ctpl")},a=function(e){try{n.diagnostic("c");var o=e.length,a=0,c=0;s(o,0,0),m(e).each((function(e,n){t.send(function(e){return e.replace("%%CBS%%",i.getCacheBustId())}(n),(function(){s(o,a,++c)}),!0),s(o,++a,c)}))}catch(e){r.add(T.ERROR_CODES.AT_SEND)}};return{init:function(){try{var n=(new se).fullDom;"/"!==n.slice(-1)&&(n+="/"),n+="tpl?asId="+e.asid,t.jsonp(n,a)}catch(e){r.add(T.ERROR_CODES.AT_INIT)}}}},ge=function(t,n,r,i){"use strict";return{enabled:"true"===e.useBapiCallback,callback:function(n){r.trigger(L.SEND_DIAG);try{"true"===e.accountForSadImps&&i.measure(n),e._onAPIResult&&e._onAPIResult(n)}catch(e){t.add(T.ERROR_CODES.BAPI_CALLBACK),r.trigger(L.SEND_DIAG,"bapiClient")}}}},le=function(){"use strict";return{createInstance:function(e,t,n,r){return Ae.isDomless()?new Ee:new fe}}},fe=function(){"use strict";var e=T.BROWSERS,t=function(){var t="u",n=We.getWindow();try{m.isDef(n.opr)&&n.opr.addons||m.isDef(n.opera)&&m.isDef(n.opera.buildNumber)?t=e.OPERA:m.isDef(n.mozInnerScreenY)?t=e.GECKO:m.isDef(n.chrome)&&m.isDef(n.chrome.csi)?t=e.CHROME:m.isDef(n.msWriteProfilerMark)&&m.isDef(n.crypto)?t=e.MSEDGE:m.isDef(n.WebKitPoint)?t=e.WEBKIT:(m.isDef(n.attachEvent)||m.isDef(n.msCrypto))&&(t=e.IE)}catch(e){}return t},n=function(){var t=We.getWindow(),n=m.isDef(t.navigator)&&t.navigator.userAgent?t.navigator.userAgent.toLowerCase():"";return n.indexOf(" opr/")>-1?e.OPERA:n.indexOf("firefox")>-1?e.GECKO:n.indexOf("edg")>-1?e.MSEDGE:n.indexOf("chrome")>-1?e.CHROME:n.indexOf("webkit")>-1?e.WEBKIT:n.indexOf("msie")>-1?e.IE:encodeURIComponent(n)||"_"},r=function(){var e=!1,t=We.getWindow();return m.isDef(t.navigator)&&m.isDef(t.navigator.userAgent)&&(e=t.navigator.userAgent),e};return{browserIs:function(e){return t()===e},hasIntersectionObserver:function(){return"function"==typeof IntersectionObserver},hasMutationObserver:function(){return"function"==typeof MutationObserver},hasResizeObserver:function(){return"function"==typeof ResizeObserver},hasAncestorOrigins:function(){var e=We.getWindow().location;return!(!e||!e.ancestorOrigins)},hasPostMessage:function(){var e=We.getWindow();return!(!e||!m.isFunction(e.postMessage))},getBrowserType:t,getBrowserTypeByUA:n,getUserAgent:r,params:function(){return{br:t(),bru:n(),an:(e=T.NA,r=We.getWindow(),m.isDef(r.navigator)&&m.isDef(r.navigator.appName)&&(e=r.navigator.appName.toLowerCase()[0]),e)};var e,r},isAndroidWebViewBrowser:function(){var e=r();return Xe.contains(e,"Android")&&m(["Line","SamsungBrowser","FB_IAB","Silk"]).findFirst((function(t,n){return Xe.contains(e,n)}))},getIOSVersion:function(){var e,t,n,i=r();return i&&(e=i.match(/OS\s\d+/))&&e.length>0&&(n=(t=e.toString().match(/\d+/))&&t.length>0&&parseInt(t.toString())),n}}},Ee=function(){"use strict";var e=function(){return!1};return{getBrowserType:()=>"u",getBrowserTypeByUA:()=>"d",getIOSVersion:()=>{},params:()=>({br:"u",bru:"d",an:T.NA}),browserIs:e,getUserAgent:e,hasPostMessage:e,hasAncestorOrigins:e,hasIntersectionObserver:e,hasMutationObserver:e,isAndroidWebViewBrowser:e}},pe=function(){"use strict";return{createInstance:function(e,t){return Ae.isDomless()?new he(t):new Ie(e,t)}}},me=function(){"use strict";var t;return{isApplicable:function(n){var r=!(!(t=h.getAggregator().request("omidAdSessionContext")).app||!t.isDisplay||t.isWeb),i=n&&n.indexOf("/blocking/")>-1&&!Ae.integratedBlockingApplies(n),o=1!=e.forceNoIframe;return r&&i&&o},deployBlockingScriptIntoIframe:function(n){t=h.getAggregator().request("omidAdSessionContext");var r,i="iasbi"+e.asid,o=function(t,n){var r,i,o,s=e[x.CONTEXT_NODE].parentNode,a="about:blank",c=e.adWidth&&e.adWidth>0?e.adWidth:0,u=e[x.AD_HEIGHT]&&e[x.AD_HEIGHT]>0?e[x.AD_HEIGHT]:0,d=We.getDoc().getElementsByTagName("ins"),g=0,l=0;d&&d.length>0&&(o=d[0],g=parseInt(o.style.width),l=parseInt(o.style.height));var f=g||c||window.innerWidth,E=l||u||window.innerHeight;return"complete"===We.getDoc().readyState&&(e.forceAppend="true"),"true"===e.forceAppend?((r=We.getDoc().createElement("IFRAME")).id=t,r.src=a,s.appendChild(r)):We.getDoc().write('<iframe id="'+t+'" src="'+a+'"></iframe>'),(i=We.getDoc().getElementById(t))&&(i.style.width=f+"px",i.style.height=E+"px",i.scrolling="no",i.frameborder=0,i.style.position="absolute",i.style.padding=i.style.margin=i.style.border="0px"),i}(i);o&&(r=o.contentWindow.document)&&(r.open().write(function(e,t){var n,r="",i="",o=We.getDoc().getElementsByTagName("ins");if(o&&o.length>0){n=o[0],r="<ins";for(var s=0;s<n.attributes.length;s++)r+=" "+n.attributes[s].nodeName+'="'+n.attributes[s].nodeValue+'"';r+=">",i="</ins>"}return'<!doctype html><html><head></head><body style="margin:0px;border:0px;padding:0px;font-size:0px"><script>var IASid = "'+e+'", largestSize = 0;var IASmonitorDom = function () { var DOM_MONITOR_PERIOD = 100; var i, us, thisSize, thisWidth, thisHeight; var elems = document.body.getElementsByTagName("*"); for (i = 0; i < elems.length; i++) { if (elems[i].tagName && elems[i].tagName.toLowerCase() === "ins") continue; thisWidth = elems[i].offsetWidth; thisHeight = elems[i].offsetHeight; thisSize = thisWidth * thisHeight; if (thisSize > largestSize) { largestSize = thisSize; us = parent.document.getElementById(IASid); if (us) { us.setAttribute("CreativeLoaded","true"); if (elems[i].style.left !== "") { us.style.left = elems[i].style.left; elems[i].style.left = "0px"; } if (elems[i].style.top !== "") { us.style.top = elems[i].style.top; elems[i].style.top = "0px"; } } } } setTimeout(IASmonitorDom, DOM_MONITOR_PERIOD);};setTimeout(IASmonitorDom,50);<\/script>'+r+'<script src="'+t+'" referrerpolicy="'+T.REFERRER_POLICY+'"><\/script>'+i+"</body></html>"}(i,n)),r.close())}}},Ie=function(r,i){"use strict";var o=function(t,r,i,o){var s,a;const c=Te({url:r});r=c||r,"script"!==t?((a=n.createElement("DIV")).innerHTML=i,s=a.childNodes[0]):((s=n.createElement("SCRIPT")).src=r,o&&(s.onload=o)),e[x.CONTEXT_NODE].parentNode.appendChild(s)},s=function(r,i,s){var a,c,u,d="",g=function(e){const t=Te({url:e});return' src="'+(e=t||e)+'"'}(i),l=' referrerpolicy="'+T.REFERRER_POLICY+'"';Ae.doesPageAllowAppendedScripts()&&s&&(c="__IntegralASEventLoadHandler_"+e.asid.replace(/-/g,""),t[c]=s,d=function(e){return' onload="'+e+" && "+e+'()"'}(c)),u={script:['<script type="text/javascript"',d,g,l,"><\/script>"],iframe:['<iframe width="100%" height="100%" frameborder="0" vspace="0" hspace="0" scrolling="no" marginheight="0" marginwidth="0"',d,g,l,"></iframe>"],img:["<img",d,g,l,"/>"]}[r].join(""),Ae.isOmid()?(a=new me).isApplicable(i)?a.deployBlockingScriptIntoIframe(i):o(r,i,u,s):("loading"!==We.getDoc().readyState&&(e.forceAppend="true"),"true"===e.forceAppend?o(r,i,u,s):n.write(u))},a=function(e,t,n){var r,i=!n&&_e.getXHR2();const o=Te({url:e});e=o||e,i?(i.open("POST",e),i.onreadystatechange=function(){4===i.readyState&&200===i.status&&t&&t()},i.send()):(r=Oe.createImage(),t&&(r.onload=t),r.src=e.toString())},c=function(e,t){var n=_e.getXHR2();const r=Te({url:e});e=r||e,n&&(n.open("GET",e),n.onreadystatechange=function(){if(4===n.readyState&&200===n.status&&t)try{var e=JSON.parse(n.responseText);t(e)}catch(e){return}},n.send())},u=function(t,r,i,o){var s="text/javascript",a=We.getDoc(),c=a&&"loading"===a.readyState,u=d&&d.measurementConfig&&d.measurementConfig.staticMode,g=n.createElement("script");const l=Te({url:t});if(i=i||e[x.CONTEXT_NODE].parentNode,t=l||t,g.type=s,g.src=t,g.referrerPolicy=T.REFERRER_POLICY,r&&(g.onload=r),o&&(g.setAttribute("defer",""),g.setAttribute("async","")),u&&c){const e=`<script type="${s}" src="${t}"><\/script>`;a.write(e)}else m.isDef(i)&&i.appendChild(g)},g=function(t){if(m.isFunction(t))t({iasImpId:e.asid});else if(t&&"string"==typeof t){var n=new se(t,!0).toString();a(n,void 0,!0)}},l=function(e,t,n,r){u(i.wrap(e,t,n,r))};return h.getAggregator().on({addNode:s,send:a,exec:u,notify:g,getJSON:c,jsonp:l}),{addNode:s,send:a,exec:u,notify:g,getJSON:c,jsonp:l}},he=function(t){"use strict";var n=function(e,t){t=t||e,e=arguments.length>1?e:"script";const n=Te({url:t});t=n||t,t=encodeURI(t);var r=h.getAggregator().request("omidVerificationClient");r["script"===e?"injectJavaScriptResource":"sendUrl"](t,(function(){}))},r=function(e,t){const n=Te({url:e});e=n||e,e=encodeURI(e),h.getAggregator().request("omidVerificationClient").sendUrl(e.toString(),t||function(){})},i=function(e,t){var n=h.getAggregator().request("omidVerificationClient");const r=Te({url:e});e=r||e,e=encodeURI(e),n.injectJavaScriptResource(e,t||function(){})},o=function(t){if(m.isFunction(t))t({iasImpId:e.asid});else if(t&&"string"==typeof t){var n=new se(t,!0).toString();r(n)}},s=function(e,n,r,o){i(t.wrap(e,n,r,o))};return h.getAggregator().on({addNode:n,send:r,exec:i,notify:o,jsonp:s}),{addNode:n,send:r,exec:i,notify:o,jsonp:s}};const Te=({url:t})=>{const n=e.iasProxyPartnerDomain;let r,i,o;if("string"==typeof t)i=t;else try{i=t.toString()}catch(e){}if(i&&(o=i.includes("jsconfig.adsafeprotected.com/jsconfig"),Ae.isMSFT()&&!o&&n&&"string"==typeof n)){r=`https://${n}${encodeURIComponent(i)}`}return r};var Ae=function(t){"use strict";var n="undefined"==typeof window,r=function(){return n},i=void 0!==t&&"undefined"!=typeof top&&t!==top,o=function(){var e=!1;if(r())e=!0;else try{e=!!top.document}catch(e){}return e}(),s=function(){return r()||m.isDef(We.getWindow().mraid)},a=function(){return!r()&&m.isDef(We.getWindow().mraid)},c=function(){var e=!1;if(!r()){var t=We.getWindow().inmobi,n=t&&t.IASDocumentVideoBuffer,i=t&&n&&m.isFunction(n.addVideoEventListener);e=a()&&!!i}return e},u=function(){return-1!==e.mode.indexOf("jsvid")||(t=h.getAggregator(),n=t.request(U.OMID_VERIFICATION_CLIENT),r=!1,i=t.request(U.OMID_AD_SESSION_CONTEXT),n&&i&&(r=i.mediaType===T.MEDIA_TYPE.VIDEO),r)||c();var t,n,r,i},g=function(){return!1===e.fwMonitoring||"false"===e.fwMonitoring},l=function(){return e[x.MOB_OR_TAB]},f=function(t){if(!1===m(e.customViewability).isArray())return!1;return m(e.customViewability).filter((function(e,n){return Xe.contains(n.id,t)})).length>0},E=function(){return e.use100v},p=function(){return f("grpm")||E()},I=function(){return m.isStr(e.iasProxyPartnerDomain)&&-1!==e.iasProxyPartnerDomain.indexOf("bing")};return{embedded:i,friendly:o,isFriendlyToParent:function(e){var t,n;if(r())t=!0;else{try{n=se(e.document.referrer).hostname===e.location.hostname}catch(e){}t=n}return t},friendlyIframe:i&&o,xDomainIframe:i&&!o,getTagTime:function(){return We.now()-d.measurementConfig.birthdate},getPageTime:function(){var e=T.NA;return!r()&&m.isDef(t.chrome)&&m.isDef(t.chrome.csi)&&m.isFunction(t.chrome.csi)&&(e=We.round(t.chrome.csi().pageT)),e},isVideo:u,isMobileApp:s,isSpecifiedAd:function(){var t=!1;if(!r()){var n=m.isFunction(e.contextNode.getAttribute)&&e.contextNode.getAttribute("data-ias-container")||e._cl_adpath;t=n&&m.isStr(n)}return t},isCompoundAd:function(){var t=!1;if(!r()){var n=e._cl_adpath,i=/\[(.*)\]/.exec(n);t=null!==i&&0!==i[1].length&&i[1].split(",").length>1}return t},isOmid:function(){var t=h.getAggregator().request(U.OMID_VERIFICATION_CLIENT);return t&&t.isSupported()&&!e.videoId},isOmidNative:function(){return(new an).accepts()},isOmidSandboxedEnvironment:function(){return(new an).accepts()},isOmidForWeb:function(){return(new Lt).accepts()},isDomless:r,isBustedIframe:function(){var e=!1;return r()||(e=void 0!==Hn()),e},isMraid:a,isSafeFrame:function(){var e=!1;return r()||(e=m(We.getWindow().$sf).isObj(!1)&&m(We.getWindow().$sf.ext).isObj(!1)),e},isInMobiMraidVideo:c,isDeviceTypeGroupMobile:l,usesIASFullyInViewCustomMetric:function(){return f("fiv")||E()||!p()},usesGroupMCustomMetric:p,isCeltra:function(){var e=!1;return r()||(e=jn().isApplicable()),e},usesGroupMCustomMetricMobilePassThru:function(){return p()&&l()},usesZeroPivCustomMetric:function(){if(!1===m(e.customViewability).isArray())return!1;return m(e.customViewability).filter((function(e,t){return m(t.thresholds).findFirst((function(e,t){return 0===t.piv}))})).length>0},isRefreshable:function(e){try{var t=We.getTop();window.addEventListener("message",(function(t){/isRefreshable/g.test(t.data)&&e(null,t&&t.data)}),!1),t.postMessage(JSON.stringify({requestTop:"isRefreshable"}),"*")}catch(t){e(t)}},isPossiblyRefreshable:function(){return!r()&&!s()&&!u()&&i&&"jload"===e.mode},integratedBlockingApplies:function(t){var n,r,i,o,s=!1;e.contextNode&&m.isFunction(e.contextNode.getAttribute)&&(n=e.contextNode.getAttribute("data-ias-check-tag"),r=e.contextNode.getAttribute("data-ias-check-done"),o=(i=e.contextNode.getAttribute(T.CALLBACK_IDENTIFIER.toString()))&&m.isFunction(We.getWindow()[i]));var a=m.isDef(JSON)&&m.isFunction(JSON.parse),c=e.integration&&(t.indexOf("skeleton.js")>0||t.indexOf("/internal/")>0),u=!0===e.fwMonitoring||"true"===e.fwMonitoring;return a&&c&&("true"===n&&"true"!==r&&o?(s=!0,u&&h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:"imgb"},x.MISMATCH_OF_INTEGRATED_BLOCKING_TAG_TYPES,{type:"impression"})):(s=!1,u||h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:"ibgm"},x.MISMATCH_OF_INTEGRATED_BLOCKING_TAG_TYPES,{type:"impression"}))),s},isBlocking:g,isBlockingSizmekTag:function(){return g()&&Xe.contains(e.scriptUrl,"bs.serving-sys.com")},isAMZN:function(){return m.isStr(e.iasProxyPartnerDomain)&&-1!==e.iasProxyPartnerDomain.indexOf("amazon")},isMSFT:I,isPageOnShadowDomWhitelist:function(){var t=!1;return I()&&(t=!0),m.isStr(e.iasProxyPartnerDomain)&&-1!==e.iasProxyPartnerDomain.indexOf("integral.local")&&(t=!0),t},doesPageAllowAppendedScripts:function(){var e=!0;return I()&&(e=!1),e}}}(t),_e={addEvent:function(e,t,n,r){"use strict";m.isDef(e.addEventListener)&&("mouseenter"===t?e.addEventListener("mouseover",_e.mouseEnter(n),r):"mouseleave"===t?e.addEventListener("mouseout",_e.mouseEnter(n),r):e.addEventListener(t,n,r))},removeEvent:function(e,t,n){"use strict";m.isDef(e.removeEventListener)&&("mouseenter"===t?(t="mouseover",n=_e.mouseEnter):"mouseleave"===t&&(t="mouseout",n=_e.mouseEnter),e.removeEventListener(t,n))},mouseEnter:function(e){"use strict";var t=this;return function(n){var r=n.relatedTarget;this===r||t.isAChildOf(this,r)||e.call(this,n)}},isAChildOf:function(e,t){"use strict";if(e===t)return!1;for(;t&&t!==e;)t=t.parentNode;return t===e},getStyle:function(e,t,r){"use strict";var i,o="";if(r=r||"",n.defaultView&&n.defaultView.getComputedStyle){try{i=n.defaultView.getComputedStyle(e,r)}catch(e){}o=i?i.getPropertyValue(t):o}else e.currentStyle&&(t=t.replace(/\-(\w)/g,(function(e,t){return t.toUpperCase()})),o=e.currentStyle[t]);return o},getXHR2:function(e,n){"use strict";var r,i;return m.isDef(t.XMLHttpRequest)?"withCredentials"in(i=new XMLHttpRequest)&&(r=i):m.isDef(XDomainRequest)&&(r=new XDomainRequest),r},whenReady:function(e,t){"use strict";if(Ae.isDomless())We.setTimeout((function(){e()}),50);else{var r,i,o=t||(Ae.xDomainIframe?n:We.getTop().document),s=this;r=e,i=function(){r(!0)},m.isFunction(n.addEventListener)?"complete"==o.readyState||"loaded"==o.readyState||"interactive"==o.readyState?We.execAtEndOfThread(i):s.addEvent(o,"DOMContentLoaded",i,!1):function(e){var t=We.setInterval((function(){o.body&&(We.clearInterval(t),e())}),50)}(r)}},isSandboxed:function(e){"use strict";var t,n=We.getWindow(),r=!1;if("sandbox"in We.getDoc().createElement("iframe")){try{t=n.frameElement}catch(e){}r=t?t.hasAttribute("sandbox"):function(){var t=!1,n=We.getDoc();if(e.browserIs(T.BROWSERS.CHROME))try{n.domain="hol@#3+~"}catch(e){/Assignment is forbidden for sandboxed iframes/.test(e.message)&&(t=!0)}return t}()}return r},styleElement:function(e,t){"use strict";if(e&&m(e.style).isObj()&&m(t).isObj()){var n="";m(t).each((function(e,t){n+=e+": "+t+" !important;"})),e.style.cssText=n}},nodeIsAbsolutelyPositioned:function(e){"use strict";return"absolute"===_e.getStyle(e,"position")||e.style&&"absolute"===e.style.position}},De=function(e){"use strict";var t,n,r,i,o,s=De.callTypeCounter,a=[T.DT_CODES.ADTALK],c={UNLOAD:-1,ADTALK:-2,VIEWABILITY_READY:-3,VIDEO_EVENTS:-4,DIAGNOSTIC:-5,THIRD_PARTY:-6,QUARTILE_FULLY_INVIEW:-7,LARGE_BILLABLE:-8,SCA:-10,ADSERVER_MACROS:-11};return i=(t={},n=T.DT_CODES,m(["UNLOAD","ADTALK","VIEWABILITY_READY","VIDEO_EVENTS","DIAGNOSTIC","THIRD_PARTY","QUARTILE_FULLY_INVIEW","LARGE_BILLABLE","SCA","ADSERVER_MACROS"]).each((function(e,r){t[n[r]]=c[r]})),t)[e],o=s&&s[e],m.isDef(o)&&0!==o&&m(a).contains(e)&&(i=i+"."+o),r=s[e],s[e]=m.isDef(r)?r+1:1,{callType:e,enumerator:i}};De.callTypeCounter={};var Se=function(t,n,r,i,o,s,a,c){"use strict";var u=0,d=0,g=!1,l=function(t,n,s,c,l,f){s=s||!r.on("postDts");var E=t===T.DT_CODES.DIAGNOSTIC||t===T.DT_CODES.ADTALK||t===T.DT_CODES.SCA||t===T.DT_CODES.XSCA||t===T.DT_CODES.EXTERNAL||t===T.DT_CODES.LARGE_BILLABLE||t===T.DT_CODES.ADSERVER_MACROS;if(i.impressionIsIdentifiable()&&(E||"n"!==a.getCurrentLoc()))try{var A=e.dtBaseURL,_=new se(A,!0),D=We.now();h.getAggregator().trigger("preSendDt",t),A||(_.path(T.DATA_TRANSFER_EVENT),r.on("usedtdomain")&&_.sub(T.DATA_TRANSFER_EVENT)),p(_,t,n),l&&l.field&&_.setParam(l.field,l.value),c||I(_,t),h.getAggregator().trigger("send",_,(function(){d+=1,u=We.now()-D,m.isFunction(f)&&f()}),s),t===T.DT_CODES.UNLOAD&&(g=!0),o.cleanup()}catch(e){__IntegralASDiagnosticCall("dt-"+t,e),h.getAggregator().trigger("error",T.ERROR_CODES.PHONE_HOME)}},f=function(){if(!g){var e=T.DT_CODES.UNLOAD;l(e,-1,!0)}},E=function(t,n){var i={bapi:"a",bapiClient:"b",jload:"c",jss:"d",jsi:"e"},o=e.mode,s=i[t]||i[o];n=n||o+"Diag",r.on(n)&&s&&l(T.DT_CODES.DIAGNOSTIC,-5,!0,!0,{field:"bkp",value:s})},p=function(t,n,r){var s=new De(n),a=m.isDef(r)?r:s.enumerator;t.setParam("asId",e.asid);var c={c:i.getCacheBustId(),pingTime:a,time:Ae.getTagTime(),type:n};o.filterOutput((function(e){var t=e.minDt&&(!e.type||e.type===n);return t&&e.oneTime&&(e.flagForRemoval=!0),t}),c),t.setParam("tv",c)},I=function(t,i){var g,l,f={};o.filterOutput((function(e){return e.standalone&&!e.minDt&&e.type===i}),(function(e,n){t.setParam(e,n.replace(/%3A/g,":"))})),a.fastForward(),function(e){return e===T.DT_CODES.CUSTOM||e===T.DT_CODES.UNLOAD||e===T.DT_CODES.VIDEO_EVENTS||e===T.DT_CODES.FULLY_INVIEW||e===T.DT_CODES.PING||e===T.DT_CODES.VIEWABILITY_READY||e===T.DT_CODES.ADTALK}(i)&&(f.clog=c,Ae.isVideo()&&(l=Ae.isOmid()?"omidVideoEventsString":"videoEventsString",(g=h.getAggregator().request(l))&&!g.isEmpty()&&(f.ve=g))),i===T.DT_CODES.UNLOAD&&(f.ndt=d),-1!==e.mode.indexOf("jsvid")&&(f.vv=h.getAggregator().request("videoVersion")),f.NULL1=r.output(),f.NULL2=a.stringify(10),f.em=Ae.embedded,f.fr=Ae.friendly,f.e=n.toString(),f.tt=e.mode,f.dtt=u,o.filterOutput((function(e){var t=!(e.standalone||e.minDt||e.type&&e.type!==i);return t&&e.oneTime&&(e.flagForRemoval=!0),t}),f),t.setParam("tv",f),t.setParam("br",s.getBrowserType())};return h.getAggregator().on({sendDt:function(e,t,n){var r;l(e,m.resolve(t),r,r,r,n)},sendMinDt:function(e,t){l(e,t,void 0,!0)},sendDiag:E,updateDtCount:function(){d++},unload:f}),{send:l,unload:f,diagnostic:E,setViewabilityMod:function(e){e}}},ve=function(e){"use strict";var n,r={},i=!1,o=function(e){return 1===e.nodeType},s=function(){var t=o(e)?Oe.nodeIsHidden(e):0===e.width||0===e.height;return!i&&t},a=function(){var e={};return m(r).each((function(t,n){e[t]=We.round(n)})),e},c=function(e){return m.isNumeric(e)||m.isUndef(e)},u=function(){return We.round(r.width)*We.round(r.height)};return e!==t.parent&&(o(e)?m.isDef(e.getBoundingClientRect)&&(n=Oe.getRect(e),m(r).mixin({x:m.useIfDef(n.x)||n.scrX,y:m.useIfDef(n.y)||n.scrY,scrX:n.scrX,scrY:n.scrY,width:n.width,height:n.height})):r=e),{hasValidDims:function(){return c(r.scrX)&&c(r.scrY)&&m.isNumeric(r.width)&&m.isNumeric(r.height)},toString:function(){var e=a();return[e.scrX,e.scrY,e.width,e.height].join(".")},getRounded:a,getRoundedGeometry:function(){var e={};return m(r).each((function(t,n){e[t]="x"===t||"y"===t||"width"===t||"height"===t?We.round(n):n})),e},set:function(e,t){r[e]=t},isHidden:s,treatAsPlaceholder:function(){i=!0},area:u,isMrcLarge:function(){return u()>=T.MRC_LARGE_AD_SIZE},isOneByOne:function(){return s()&&u()<=1}}},Oe={findElementsWithSize:function(e){"use strict";var t=[],n=function(e){Oe.getNodeArea(e)<1?m(e.children).each((function(e,t){n(t)})):t.push(e)};return n(e),t},nodeIsHidden:function(e){"use strict";var t=this.getRect(e),n=0!==parseInt(_e.getStyle(e,"width"))&&0===t.width,r=0===t.width||0===t.height,i="hidden"===_e.getStyle(e,"visibility");return n||r||i},calcWinDims:function(){"use strict";var e,t,n;try{t=Oe.browserWindowPosition(),n=Oe.windowSize(),e={scrX:We.round(t.scrX),scrY:We.round(t.scrY),width:We.round(n.width),height:We.round(n.height)}}catch(t){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.GET_WIN_DIMENSIONS),e={}}return e},windowSize:function(){"use strict";var e,n,r,i={};if(Ae.isDomless())return{width:0,height:0};if(Ae.friendly)if(n=(e=top.document).documentElement,r=e.body,m.isDef(top.innerWidth))i.width=top.innerWidth,i.height=top.innerHeight;else if(m.isDef(n.clientWidth))i.width=n.clientWidth,i.height=n.clientHeight;else{if(!m.isDef(r.clientWidth))throw i.width=i.height=0,"";i.width=r.clientWidth,i.height=r.clientHeight}else m.isDef(t.outerWidth)&&(i.width=t.outerWidth,i.height=t.outerHeight);return i},browserWindowPosition:function(){"use strict";var e=0,n=0;e=t.screenX,n=t.screenY;return h.getAggregator().request(U.BROWSER).browserIs(T.BROWSERS.GECKO)&&-8==e&&-8==n&&(e+=8,n+=8),{scrX:e,scrY:n}},getNodeArea:function(e){"use strict";var t=-1;if(e){var n=Oe.getRect(e);t=n.width*n.height}return t},getRect:function(e){"use strict";var t={},n=Oe.browserWindowPosition(),r=e.getBoundingClientRect();return m.isUndef(r.x)&&(t.x=r.left,t.y=r.top),m.isUndef(r.width)&&(t.width=r.right-r.left,t.height=r.bottom-r.top),m(t).mixin(r,!0),t.scrX=n.scrX+t.x,t.scrY=n.scrY+t.y,t},getPlaceholderSpan:function(){"use strict";var e=n.createElement("span");return m(e.style).mixin({width:"0px",height:"0px",display:"block",overflow:"hidden",visibiility:"hidden"}),e.innerHTML=".",e},createImage:function(){"use strict";var e=Ae.friendly&&We.getTop().Image;return m.isFunction(e)?new e:new Image},createHiddenIframe:function(e){"use strict";var t=We.getDoc().createElement("iframe"),n=e?{display:"none"}:{width:"0px",height:"0px",border:"0",position:"absolute",top:"-10000px",left:"-10000px"};return _e.styleElement(t,n),t},tagNameIs:function(e,t){"use strict";return e.tagName.toUpperCase()===t.toUpperCase()},getClippedDimensions:function(e,t){"use strict";var r,i,o,s,a,c=1e4,u=1e4,d=_e.nodeIsAbsolutelyPositioned(e);if(a=!Oe.tagNameIs(e,"OBJECT"),null!==e.parentNode&&!d&&a&&!Oe.tagNameIs(t,"BODY")){s=e;do{s=s.parentNode,i=!Oe.tagNameIs(s,"OBJECT"),o="inline"!==_e.getStyle(s,"display"),i&&o&&(c=(r=Oe.getRect(s)).width<c?r.width:c,u=r.height<u?r.height:u)}while(s.parentNode!==n&&s!==t)}return{width:We.round(c),height:We.round(u)}},hasBackgroundImage:function(e){var t=_e.getStyle(e,"background-image");return""!==t&&"none"!==t},isEmptyFriendlyFrame:function(e){try{var t,n=!1;if(e&&e.document){var r=e&&"IFRAME"===e.nodeName&&e.contentDocument;r&&((t=r.body)&&t.childElementCount<1)&&(n=!0)}return n}catch(e){return!1}},findChildWithLargestContent:function(e,t){var n=h.getAggregator().request(U.MOBILE_APP).isMobileAppEnvironment(),r=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),i=r&&r.hasOwnProperty("ignoreDivAsCandidate"),o=this.hasBackgroundImage,s=null,a=function(t){var n,r,s,a=null,c=-1;if(t.length)for(n=0,r=t.length;n<r;n++){var u=t[n],d=Oe.getNodeArea(u),g=!((s=u).parentNode===e&&"DIV"===s.nodeName&&!o(s)&&("0"===_e.getStyle(s,"opacity")||"hidden"===_e.getStyle(s,"visibility")||function(){var e,t,n=s.childNodes;for(e=0;e<n.length;e++)1===n[e].nodeType&&(t=!0);return!t}()));g&&i&&"DIV"===u.nodeName&&(g=!1);var l=Oe.isEmptyFriendlyFrame(u);d>c&&g&&!l&&(a=u,c=d)}return a&&(a.hasValidSizeForMobileApp=c>1),a}(Oe.collectCandidateElements(e,t||"iframe,img,a,object,embed,div".split(",")));return a&&((s=function(t){for(var r,o,s=t;t.parentNode!==e&&"inline"!==_e.getStyle(t.parentNode,"display");)(!n||(r=t.parentNode,o=void 0,o=!0,("visible"===_e.getStyle(r,"overflow")||"visible"===_e.getStyle(r,"overflowX")&&"visible"===_e.getStyle(r,"overflowY"))&&(o=!1),o&&Oe.getNodeArea(t.parentNode)>0))&&(n&&i&&"DIV"===t.parentNode.nodeName||(s=t.parentNode)),t=t.parentNode;return s}(a)).hasValidSizeForMobileApp=a.hasValidSizeForMobileApp),s},screenSize:function(){"use strict";if(Ae.isDomless())return{width:0,height:0};var e={width:-1,height:-1};try{m.isDef(t.screen)&&(e={width:t.screen.width,height:t.screen.height})}catch(e){}return e},calcMonDims:function(){"use strict";var e=m(Oe.screenSize()).mixin({scrX:0,scrY:0});return m.isDef(screen.availLeft)&&(e={scrX:t.screen.availLeft,scrY:t.screen.availTop,width:t.screen.availWidth,height:t.screen.availHeight}),e},getOurIFrameInTop:function(){"use strict";for(var e,t=We.getTop(),n=We.getWindow();n!=t;)n=(e=n).parent;return e},getOurNodeInTop:function(){"use strict";var t,n;return Ae.friendly&&(t=Ae.embedded?(n=Oe.getOurIFrameInTop())&&n.frameElement:e.contextNode),t},getAncestorNodes:function(e){"use strict";var t=[],n=e.ownerDocument&&e.ownerDocument.documentElement,r=e;if(n)for(;r.parentNode!==n;)t.push(r),r=r.parentNode;return t},getTagsNamed:function(e,t){"use strict";var n,r=t||We.getDoc();try{n=r.getElementsByTagName(e)}catch(e){n=null}return n},containsScriptTagWithSrc:function(e){"use strict";return!!m(Oe.getTagsNamed("script")).findFirst((function(t,n){var r=n.src;return m.isFunction(e)?e(r):r===e}))},contains:function(e,t){"use strict";var n=!1;try{n=m.isDef(e)&&m.isFunction(e.contains)&&e.contains(t)}catch(e){}return n},querySelector:function(e,t){"use strict";var n;try{n=e.querySelector(t)}catch(e){n=null}return n},nodeIsInWindow:function(e,t){"use strict";return e.ownerDocument&&(e.ownerDocument.defaultView||e.ownerDocument.parentWindow)===t},setAttributeOf:function(e,t,n){"use strict";e&&m.isFunction(e.setAttribute)&&e.setAttribute(t,n)},removeAttributeOf:function(e,t){"use strict";e&&m.isFunction(e.removeAttribute)&&e.removeAttribute(t)},crossQuerySelector:function(t,n){"use strict";var r,i,o=[e.contextNode.parentNode,We.getDoc()];if(Ae.friendly&&o.push(We.getTop().document),n&&Ae.embedded)try{o.push(We.getWindow().frameElement.ownerDocument)}catch(e){}return m(o).each((function(e,n){try{i=Oe.querySelector(n,t)}catch(e){}!r&&i&&(r=i)})),r},getNodeName:function(e){"use strict";return e&&e.nodeName},isWindow:function(e){"use strict";var t=!1;try{t=e&&"object"==typeof e&&"setInterval"in e}catch(e){t=!0}return!!t},getChildWindowsOf:function(e){"use strict";var t=[],n=Oe.getTagsNamed("iframe",e);return n&&(t=m(n).map((function(e,t){return t.contentWindow}))),t},getFrameId:function(){"use strict";var e=We.getWindow().frameElement;return e&&e.id},isViewportVisible:function(e,t){"use strict";var n=e.innerWidth,r=e.innerHeight,i=n*r>t.width*t.height,o=n>t.width&&r>t.height;return i&&o},getTagName:function(e){"use strict";return e.tagName.toLowerCase()},getAttribute:function(e,t){"use strict";return e.getAttribute(t)},attributeMatches:function(e,t,n){"use strict";var r=e&&Oe.getAttribute(e,t);return n.test(r)},isImageTag:function(e){"use strict";return e&&e.src&&Oe.tagNameIs(e,"img")},getDimensionFromStyle:function(e){"use strict";var t,n=_e.getStyle(e,"width"),r=_e.getStyle(e,"height");return n&&r&&(t={width:m.getNum(n),height:m.getNum(r)}),t},getDimensionFromAttributes:function(e){"use strict";var t,n=Oe.getAttribute(e,"width"),r=Oe.getAttribute(e,"height");return n&&r&&(t={width:m.getNum(n),height:m.getNum(r)}),t},traverseAndFindFirstMatchingNode:function e(t,n){"use strict";var r,i,o;if(n(t))i=t;else if(o=t.children)for(r=0;r<o.length&&!(i=e(o[r],n));r++);return i},getFirstChildElement:function(e){"use strict";return e&&e.children&&e.children[0]},isClippable:function(e,t){"use strict";var n=!0,r="fixed"===_e.getStyle(e,"position"),i=!("hidden"===_e.getStyle(t,"overflow"))&&!r;return Ae.isSpecifiedAd()&&(r||i)&&(n=!1),n},isNodeCreative:function(e){"use strict";var t=Oe.getNodeName(e),n=e&&e.children&&0===e.children.length,r=e&&e.innerText&&e.innerText.length>0,i=n&&r,o=t&&-1!==T.RENDER.CREATIVE_NODE_TYPES.indexOf(t.toUpperCase());return!!t&&!!(o||Oe.hasBackgroundImage(e)||i)},getElementsDocument:function(e){"use strict";return e.ownerDocument||e},getElementsWindow:function(e){"use strict";var t=Oe.getElementsDocument(e);return t.defaultView||t.parentWindow||e},elementIsEmbedded:function(e){"use strict";return Oe.getElementsWindow(e)!==We.getTop()},getParent:function(e){"use strict";return e.parentNode||e.parent},isNodeXDomainIframe:function(e){"use strict";var t=!1;if(e&&"IFRAME"===Oe.getNodeName(e))try{t=!e.contentWindow.document}catch(e){t=!0}return t},isElement:function(e){"use strict";return 1===e.nodeType},collectCandidateElements:function(e,t){var n,r,i,o,s=[],a=t,c=Ae.isPageOnShadowDomWhitelist();for(n=0,r=a.length;n<r;n++){var u=a[n].toLowerCase(),d=e.getElementsByTagName&&e.getElementsByTagName(u);if(c){var g=e.querySelectorAll&&e.querySelectorAll(u);g&&g.values&&(d=[...new Set([...d,...g.values()])])}if(d&&d.length)for(i=0,o=d.length;i<o;i++)s.push(d[i])}return s}},Re=function(){"use strict";var e={},t=function(t){m.isDef(e[t])?e[t]++:e[t]=1};return h.getAggregator().on("error",(function(e){var n=m(e).isObj()?e.errorCode:e;t(n)})),{list:e,add:t,toString:function(){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n);return t},hasErrors:function(){for(var t in e)return!0;return!1}}},Ne=function(){"use strict";return{createInstance:function(e,t){return Ae.isDomless()?new Ce:new ye(e,t)}}},ye=function(t,n){"use strict";var r=function(t){var n=[];if(!(t&&t instanceof Array))throw new Error("Unexpected data type in ExchangeParser.getUrlList");return(n=m(t).map((function(e,t){return t.val}))).push(e.adsafeSrc,e.requrl,e.reqquery),n};return{parse:function(i){try{var o,s=r(i),a=s&&s.length&&s.join("|"),c=e.exchList;a&&(o=m(c).map((function(e,t){return a.indexOf(Xe.rot(t))>=0?e:void 0}))).length&&n.addItem({output:o.join(".")},"ex",{type:T.IMPRESSION_EVENT})}catch(e){t.add(T.ERROR_CODES.EXCHANGE_PARSING)}}}},Ce=function(){"use strict";return{parse:function(e){}}};const Me=function(){"use strict";const t={},n=function(n){let r,i,o,s;return m.isUndef(t[n])&&(r=e.jsFeatures,t[n]=!1,-1!==r.indexOf(n)&&(i=new RegExp(n+"(?=$|,)|"+n+":(?!,|$)(.?\\d*(?=,|$))").exec(r),i&&(o=i[1],s=!o,t[n]=s||o>100*We.random()))),t[n]},r={es:"everySecond",sc:"usesca",ha:"usehaps",fgad:"forceKeepGoogleAdNode"},i={fif:"useFIF",gmnp:"groupm_native_publisher",for:"forceAppend",b11:x.B11,cnod:x.CNOD},o=function(t){const n=e[t];return m(["integration"]).contains(t)?!!n:!0===n||"true"===n||m.isFunction(n)};m(r).each((function(e,t){n(t)}));return{on:n,bootstrapOn:o,bootstrapperHas:function(t){const n=m.isStr(t)?[t]:t;return m(n).map((function(t,n){const r=n;if(r&&m.isDef(e[r]))return 1})).length===n.length},getEnabledScriptUrl:function(t){const r=n("use"+t),i=e.sp_cdnScripts&&e.sp_cdnScripts[t];return r&&i},setReportedBootstrapFeatures:function(e,t){i[e]=t},reportedBootstrapFeatures:i,output:function(){return m(function(){const e=m(r).mapToObj((function(e,n){const r={};return r[e]=m.fromBoolToNum(t[n]),r})),n=m(i).mapToObj((function(e,t){const n={};return n[e]=m.fromBoolToNum(o(t)),n}));return n.gm=m.fromBoolToNum(Ae.usesGroupMCustomMetric()),m(e).mixin(n)}()).toParams()}}};var we=function(){"use strict";T.BROWSERS;var e=function(e,t){var n=e.getRounded(),r=t.getRounded(),i=Math.max(n.scrX,r.scrX),o=Math.max(n.scrY,r.scrY),s=Math.min(n.scrX+n.width,r.scrX+r.width)-i,a=Math.min(n.scrY+n.height,r.scrY+r.height)-o;return ve({scrX:i,scrY:o,width:s>0?s:0,height:a>0?a:0})};return{calcInitialViewState:function(e,t){var n,r=T.NA;return n=t?{IN_VIEW:65,OUT_OF_VIEW:25,PARTIAL_VIEW:30}:{IN_VIEW:75,OUT_OF_VIEW:25,PARTIAL_VIEW:50},m.isDef(e)&&e!==T.NA&&e>-1&&(r=e>=n.IN_VIEW?T.IN_VIEW:e<=n.OUT_OF_VIEW?T.OUT_OF_VIEW:e>=n.PARTIAL_VIEW?T.PARTIAL_VIEW_PLUS:T.PARTIAL_VIEW_MINUS),r},calcPercentInView:function(t,n,r,i){var o=0,s=t;return t.hasValidDims()&&!t.isHidden()&&(m([n,r,i]).each((function(t,n){n.hasValidDims()&&(s=e(s,n))})),o=We.round(s.area()/t.area()*100)),o}}},be=function(){"use strict";var n,r,i,o=!1;r=function(){var e="";try{for(var n,r=t.Uint32Array&&t.crypto&&t.crypto.getRandomValues;e.length<32;)r?(n=new Uint32Array(1),t.crypto.getRandomValues(n),e+=n[0].toString(16)):e+=(16*We.random()|0).toString(16);e=e.slice(0,32)}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.UID_GENERATION)}return e}(),(i=[]).push(r.slice(0,8)),i.push(r.slice(8,12)),i.push(r.slice(12,16)),i.push(r.slice(16,20)),i.push(r.slice(20)),n=i.join("-");var s=function(){return e.anId};return{getAsid:function(){return e.asid},getAnId:s,getCacheBustId:function(){var e=new Date,t=Date.parse("Jan 1 "+e.getFullYear()),n=e.getTime()-t;return m.toBase(n,62)},getFwId:function(){return s()||e.advEntityId+"-"+e.pubEntityId},impressionIsIdentifiable:function(e){return e&&(o=!0),o},unq:n}},Pe=function(e,t){"use strict";return{init:function(n){e.jsonp(n,(function(e){t.send(T.DT_CODES.THIRD_PARTY,void 0,!1,!0,{field:"tpiLookup",value:e})}),!1,"callback")}}},Ve=function(e,t,n,r,i){"use strict";return{getTime:function(){return 1e3*e.getTimeInViewInSeconds()},getTask:function(){return i?function(){var n=h.getAggregator().request("adRenderStatus"),i=r||t,o=e.getTimeInViewInSeconds();n||h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.ENVIRONMENT,"nr_"+i,o)}:function(){var i=e.getTimeInViewInSeconds(),o=e.getTimeInViewForRts();m.isDef(r)&&(h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:r},x.METRIC_ID,{type:t}),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:"t"},x.CUSTOM_METRIC_IN_VIEW_REASON,{type:t})),h.getAggregator().trigger(L.SEND_DT,t,i),n[o]&&n[o]()}}}},Le=function(){"use strict";return{createPingJobs:function(e,t,n,r,i){return m(t.getTimeThresholds()).map((function(t,o){return new Ve(o,e,n,r,i)}))}}},Fe=function(){var e,t=[],n=function(e){var t="type",n="t",r="timestamp";return{type:e["tp"]||e[t]||"",time:e[n]||e[r]&&e[r]-d.measurementConfig.birthdate||""}},r=function(){e||(e=h.getAggregator().request("viewabilityDefinitions")),e&&0==t.length&&m(e).each((function(e,n){n.qivThreshold&&t.push(n)}))},i=function(e,t){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:e.metricId},x.METRIC_ID,{type:T.DT_CODES.CUSTOM}),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:"q"},x.CUSTOM_METRIC_IN_VIEW_REASON,{type:T.DT_CODES.CUSTOM}),h.getAggregator().trigger(L.SEND_DT,T.DT_CODES.CUSTOM,t),e.rtsCallbacks&&m.isFunction(e.rtsCallbacks[T.RTS_KEY_FOR_VQ])&&e.rtsCallbacks[T.RTS_KEY_FOR_VQ]()};return{init:function(){r(),h.getAggregator().on(L.VIDEO_QUARTILE_EVENT,(function(e){var o,s,a,c,u;r(),o=new n(e),a=(s=["_","firstQuartile","midpoint","thirdQuartile","complete"]).indexOf(m(s).findFirst((function(e,t){return-1!==o.type.toLowerCase().indexOf(t.toLowerCase())}))),c=h.getAggregator().request(U.SCREEN_EVENTS).getCurrentEvent(),u=Math.floor(o.time/1e3),m(t).each((function(e,t){var n=t.qivThreshold.indexOf(a);-1!==n&&t.isInView(c)&&t.qivThreshold.length>0&&(t.qivThreshold.splice(n,1),0==t.qivThreshold.length&&i(t,u))}))}))}}},Ue=function(){"use strict";var n=function(){var t=e.asid;return"__IntegralAS_"+(t&&t.replace(/\-/g,"")||"")+"_"+We.round(1e4*Math.random())};return{wrap:function(e,r,i,o){var s,a,c,u=n();return function(e,t){return new RegExp(t).test(e)}(e=""+e,o=o||"ias_callback")&&(s=function(e,t){return new RegExp("("+t+"=)(.[^&]*)").exec(e)[0]}(e,o),a=s.split("=")[1],c=Xe.stringToFn(a),e=function(e,t){return-1!==e.indexOf(t+"&")&&(t+="&"),e.replace(t,"")}(e,s)),t[u]=function(e){r(e),i&&c&&c(e),t[u]=void 0},e=function(e,t,n){var r=e.indexOf("?"),i=t+"="+n;return-1===r?e+"?"+i:(r++,e.slice(0,r)+i+"&"+e.slice(r))}(e,o,u),e},wrapToGlobal:function(e){var r=n();return t[r]=function(n){e(n),t[r]=void 0},r}}},xe=function(t,n,r){"use strict";var i=function(t,n){var r,i=t;return n&&(r=","+m(n).stringify((function(e,t){return e+":"+t}),","),(i=se(t,!0)).appendToParamValue("adsafe_jsinfo",m.encodeInvalidUrlChars(r,e.encodeInvalidUrlChars)),i=i.toString()),i},o={jss:{isFW:!0,nodeType:Ae.doesPageAllowAppendedScripts()?"script":"img"},rjss:{isFW:!0,onloadCallback:jr,impressionMethod:function(e){if(Ae.isAMZN()&&Ae.isBlocking()&&d.measurementConfig.staticMode)h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:!0},"ablk"),h.getAggregator().trigger("jsonp",e+"&format=jsonp",(e=>{let{nodeType:t,creativeUrl:n}=e;t="unknown"===t?"script":t,h.getAggregator().trigger("addNode",t,n)}),!1,"cbName");else{const t=d.measurementConfig.tagDeliveryType===s.Iframe?"iframe":Ae.doesPageAllowAppendedScripts()?"script":"img";h.getAggregator().trigger("addNode",t,e,jr)}}},jsi:{isFW:!0,nodeType:"iframe"},rjsi:{isFW:!0,nodeType:"iframe"},jload:{impressionMethod:function(e){t.enabled?h.getAggregator().trigger("jsonp",e,t.callback,!0):h.getAggregator().trigger("send",e,(function(){jr(),h.getAggregator().trigger("sendDiag")}),!n.on("postMon"))}},bapi:{impressionMethod:function(e){var n=t.enabled?t.callback:m.noop,r=!!t.enabled;h.getAggregator().trigger("jsonp",e,n,r)}},jsapi:{isFW:!0,impressionMethod:function(e){var n=t.enabled?t.callback:m.noop,r=!!t.enabled;h.getAggregator().trigger("jsonp",e,n,r)}},jsvid:{manualDefer:!0,impressionMethod:function(r){h.getAggregator().on("adImpression",(function(o,s){var a;try{a=i(r,s),t.enabled?h.getAggregator().trigger("jsonp",a,t.callback,!0):h.getAggregator().trigger("send",a,m.noop,!n.on("postMon"))}catch(t){__IntegralASDiagnosticCall("jsvidimp",t,e)}}))}},fwjsvid:{isFW:!0,manualDefer:!0,impressionMethod:function(t){var n="false"===e.fwMonitoring;n&&h.getAggregator().trigger("jsonp",function(e){var t;return(t=e.split("/"))[3]="db2",t[4]="video",t.join("/")}(t),(function(e){h.getAggregator().trigger("videoBlockResult",e)})),h.getAggregator().on("adImpression",(function(r,o){var s,a;try{n&&((a=r)&&m.isBool(a.integral_didBlock)&&a.integral_timeToDecision>=0)&&(t=function(e){var n="$1$2,abc:"+(e.integral_didBlock?1:0)+",abct:"+e.integral_timeToDecision;return t.replace(/(adsafe_jsinfo=)([^&]*)/,n)}(r)),s=i(t,o),h.getAggregator().trigger("send",s,m.noop,!0)}catch(t){__IntegralASDiagnosticCall("fwjsvidimp",t,e)}}))}},jspix:{nodeType:"img"}};return new function(){var t=o[e.mode],n=!!t.isFW,i=function(t){var n;return n=h.getAggregator().request("mobileApp").isMobileAppEnvironment()&&e.mobFwUrl?e.mobFwUrl:t?e.adsafeSrc:e.requrl,t||(n+="?"+e.reqquery),n}(n),s=i.indexOf("BEGIN__ADSAFE"),a=-1!==s,c=a?i.slice(s):"";return{isFW:n,baseUrl:a?i.slice(0,s):function(e){var t=-1===e.indexOf("?")?"?":"&";return e+t}(i),macroUrl:c,sendImpression:function(e){var n=function(){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:Ae.getTagTime()},x.STATIC_IMPRESSION_RFW_CALL_REQUEST_TIME),t.nodeType?h.getAggregator().trigger("addNode",t.nodeType,e,t.onloadCallback):t.impressionMethod(e)};r||t.manualDefer?n():t.manualDefer||h.getAggregator().on("adImpression",(function(){n()}))}}}},We={execAtEndOfThread:function(e){"use strict";We.setTimeout(e,0)},now:function(){"use strict";return(new Date).getTime()},random:function(){"use strict";return Math.random()},round:function(e){"use strict";return Math.round(e)},ceil:function(e){"use strict";return Math.ceil(e)},floor:function(e){"use strict";return Math.floor(e)},min:function(){"use strict";return Math.min.apply(null,arguments)},max:function(){"use strict";return Math.max.apply(null,arguments)},getWindow:function(){"use strict";return t},getTimeoutScope:function(){"use strict";return Ae.isDomless()&&Ae.isOmid()?h.getAggregator().request(U.OMID_VERIFICATION_CLIENT):t},setInterval:function(e,t){"use strict";return We.getTimeoutScope().setInterval(e,t)},setTimeout:function(e,t){"use strict";return We.getTimeoutScope().setTimeout(e,t)},clearInterval:function(e){"use strict";We.getTimeoutScope().clearInterval(e)},clearTimeout:function(e){"use strict";We.getTimeoutScope().clearTimeout(e)},getMaxNumber:function(){"use strict";return Number.MAX_VALUE},getTop:function(){"use strict";return Ae.isDomless(),top},getDoc:function(){"use strict";return Ae.isDomless(),n},getIntersectionObserver:function(e,t){"use strict";return Ae.isDomless(),new IntersectionObserver(e,t)},getMutationObserver:function(e){"use strict";return Ae.isDomless(),new MutationObserver(e)},getResizeObserver:function(e){"use strict";return Ae.isDomless(),new ResizeObserver(e)},pow:function(e,t){"use strict";return Math.pow(e,t)}},Be=function(){"use strict";return{createInstance:function(){return Ae.isDomless()?new ke:new Ge}}},Ge=function(){"use strict";var e,t,n,r,i=!1,o=!1,s=(h.getAggregator().request(U.FEATURES),new K),a=function(){return m.isDef(e.prop)?We.getDoc()[e.prop]:null};return t="hidden",n="visibilitychange",r=We.getDoc(),m.isUndef(r.hidden)?m(["moz","ms","webkit"]).each((function(e,o){var s=o+"Hidden";m.isDef(r[s])&&(t=s,n=o+n,i=!0)})):i=!0,e=i?{prop:t,event:n}:{},{isHidden:a,onHiddenChange:function(t){var n,r;s.push(t),o||(o=!0,n=We.getWindow(),r=function(){s.run(a())},_e.addEvent(n,"focus",r,!0),_e.addEvent(n,"blur",r,!0),e.event&&_e.addEvent(We.getDoc(),e.event,r,!0))},supportsVisAPI:function(){return i}}},ke=function(){"use strict";return{isHidden:function(){return!1},onHiddenChange:function(e){},supportsVisAPI:function(){return!0}}},He=function(){"use strict";return{createInstance:function(e,t){return Ae.isDomless()?new je:new Ye(e,t)}}},Ye=function(n,r){"use strict";var i,o=function(e){var t=[["ab","about%3A"],["da","data%3A"],["js","javascript%3A"],["fi","file%3A"],["uu","uuid-in-package"],["cx","chrome-extension%3A"],["lo","http%3A%2F%2Flocalhost"],["lo","https%3A%2F%2Flocalhost"]];if("string"==typeof e&&"null"!==e&&""!==e&&"undefined"!==e){for(var n=0;n<t.length;n++)if(e.startsWith(t[n][1]))return"";if(-1===e.indexOf("."))return h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:e.substring(0,40)},x.BAD_URL_NO_PERIOD,{type:T.IMPRESSION_EVENT}),""}return e},s=function(){var s={};try{s.a=encodeURIComponent(top.location.href)}catch(e){}try{s.b=encodeURIComponent(parent.location.href)}catch(e){}if(Ae.embedded){try{s.c=encodeURIComponent(parent.document.referrer)}catch(e){}try{s.e=encodeURIComponent(t.document.referrer)}catch(e){}}try{"jsi"!==e.mode&&(s.d=encodeURIComponent(t.location.href))}catch(e){}try{s.f=encodeURIComponent(e.jsref)}catch(e){}try{var a=r.getWindow();s.q=encodeURIComponent(a.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.location.href||"")}catch(e){}try{n.isStarted()&&n.getMyFrameDepth()>1&&(s.g=encodeURIComponent(n.getTopDomain())),n.isStarted()&&Ae.xDomainIframe&&1===n.getMyFrameDepth()&&(s.y=encodeURIComponent(n.getTopDomain()))}catch(e){}var c="not-set";try{if(Ae.isSafeFrame()){var u=r.getWindow(),d=u&&u.$sf&&u.$sf.ext&&u.$sf.ext.hostURL,g="function"==typeof d&&d();if("string"==typeof g){c=encodeURIComponent(g);var l=!1;"function"==typeof URL?(new URL(g),l=!0):g.startsWith("http")&&(l=!0),l?(s.x=c,h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:c},x.SAFEFRAME_HOSTURL,{type:T.IMPRESSION_EVENT})):h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:c},x.SAFEFRAME_INVALID_HOSTURL,{type:T.IMPRESSION_EVENT})}}}catch(e){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:c},x.SAFEFRAME_INVALID_HOSTURL,{type:T.IMPRESSION_EVENT})}s=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=o(e[t]);(""===n||"null"===n||"undefined"===n||null===n||m.isUndef(n))&&delete e[t]}return e}(s),s=function(e){var t,n,r={};for(n in e)e.hasOwnProperty(n)&&(t=e[n],m.isUndef(r[t])?r[t]=n:r[t]+=n);var i={};for(n in r)r.hasOwnProperty(n)&&(i[t=r[n]]=n);return i}(s);var f=[];for(var E in s)s.hasOwnProperty(E)&&f.push({key:E,val:s[E]});return f.sort((function(e,t){return e.val.length>t.val.length?1:e.val.length<t.val.length?-1:0})),i=f,f};return{detectTopURL:s,getDetectedURLs:function(){return i||s()}}},je=function(){"use strict";return{detectTopURL:function(){return[]},getDetectedURLs:function(){return[]}}},qe=function(t){"use strict";var n=!1;return{measure:function(r){(n=0===r.rsa)&&t.trigger("notify",e._onSuspicious)},skipAsFraudulent:function(){return n}}},Ke=function(){"use strict";var e,t,n,r=[],i={},o={sl:"n"},s=0,a={i:0,o:0,n:0,pp:0,pm:0},c=function(e){var t=h.getAggregator().request(U.FEATURES);if(t&&t.on("recoverOmidLostTime")){var n=a.ri;a.ri=n?n+e:e}},u=function(e,t){var n=new ne(t);return i[e]=n,n},d=function(e,t){return(t=t||"")+{inView:"i",outOfView:"o",na:"n",partialViewMinus:"pm",partialViewPlus:"pp"}[e]},g=function(){m(o).each((function(e,t){var i=r.length?n-s:n;a[t]+=i})),s=n},l=function(e){r.length&&g(),m(e).each((function(e,t){var n,r;n=t,(r=o[e])!==n&&"n"===r&&(a[n]+=a.n),o[e]=t})),r.length||g()},f=function(e){T.NA;var r,o=e.adDimensions?e.adDimensions.getRounded():{width:0,height:0},s=function(e){var t,n={},r=e.winDimensions,i=e.adDimensions;return m.isDef(r)&&r.hasValidDims()&&(n.wc=r),m.isDef(i)&&i.hasValidDims()&&(n.ac=i,n.am=e.method,n.cc=e.containerDimensions),m({piv:"percentInView",obst:"obstructed",th:"tabHidden",reas:"reason"}).each((function(t,r){var i=e[r];m.isDef(i)&&(n[t]=i)})),""===(t=m(n).toParams())?"":","+t}(e),a=e.omidObstructions,c={sl:d(e.viewState)};return n=Ae.getTagTime(),l(c),c.t=n,r=m({toString:function(){return m(i).each((function(e,t){t.fastForward()})),"{"+m(c).toParams()+this.details+this.breakdowns+"}"},details:s,breakdowns:{piv:[],as:[],toString:function(){var e="",t=function(e,t){return t.duration+"~"+t.state};return e+="piv:["+m(this.piv).stringify(t)+"]",",bkn:{"+(e+=",as:["+m(this.as).stringify(t)+"]")+"}"}}}).mixin(c),m(r).mixin(e),r.width=o.width,r.height=o.height,m.isUndef(r.percentInView)&&(r.percentInView=T.PIV_NA),m.isUndef(r.reason)&&(r.reason=""),m.isDef(a)&&""!==a&&(r.omidObstructions=a),t=r,r};return function(){u("piv",(function(e){var t,n=e.percentInView,r=[1,25,30,50,75];return 100===n||0===n?t=n:(m(r).each((function(e,i){m.isUndef(t)&&n<i&&(t=r[e-1])})),m.isUndef(t)&&(t=r[r.length-1])),t})),u("as",(function(e){var t=T.NA,n=e.adDimensions?e.adDimensions.getRounded():{width:t,height:t};return n.width+"."+n.height}));var e=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT);e&&e.recoveredTime>-1&&c(e.recoveredTime)}(),{fastForward:function(){n=Ae.getTagTime(),g()},registerLocation:function(t){var n,s=!1;return o.sl==d(t.viewState)&&r.length?(n=new f(t),r[r.length-1].details=n.details):(n=new f(t),r.push(n),e=t.viewState,s=!0),h.getAggregator().trigger(L.NEW_SCREEN_EVENT,n),m(i).each((function(e,t){-1!=="piv|as".indexOf(e)?(s&&t.clear(),t.addState(n),r[r.length-1].breakdowns[e]=t.get()):t.addState(n)})),n},stringify:function(e){var t="";return r.length&&(t=m({slTimes:"{"+m(a).toParams()+"}",slEvents:"["+r.slice(-e).join(",")+"]",slEventCount:r.length}).toParams()),t},createViewabilityTracker:u,getCurrentLoc:function(){return d(e)},getCurrentEvent:function(){return t},setRecoveredTimeInSlTimes:c}},Xe={hashCode:function(e){"use strict";var t,n,r=0;if(0===e.length)return r;for(t=0,n=e.length;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r},rot:function(e){"use strict";return e.replace(/[a-zA-Z]/g,(function(e){return String.fromCharCode((e<="Z"?90:122)>=(e=e.charCodeAt(0)+13)?e:e-26)}))},stringToFn:function(e){"use strict";var n,r,i=t,o=e.split(".");for(n=0;n<o.length;n++)if(r=i,i=i[o[n]],m.isUndef(i)||n===o.length-1&&!m.isFunction(i))return!1;return function(){i.apply(r,arguments)}},stringToProp:function(e){"use strict";var t,n=We.getWindow(),r=e.split(".");for(t=0;t<r.length&&(n,n=n[r[t]],!m.isUndef(n));t++);return n},contains:function(e,t){"use strict";return!!m.isStr(e)&&-1!==e.indexOf(t)},trim:function(e){"use strict";return m.isFunction(e.trim)?e.trim():e.replace(" ","")}};const ze=function(){"use strict";const e=function(){const e=function(e){return e&&e.width&&e.width>30&&e.height&&e.height>30},t=function(t){const n=Oe.getDimensionFromAttributes(t);return e(n)};return{hasValidDimensions:function(n){return t(n)||function(t){const n=Oe.getDimensionFromStyle(t);return e(n)}(n)},hasValidDimentionAttributes:t}}(),t=/GoogleActiveViewElement/,n=/DfaVisibilityIdentifier_/,r=/doubleclick.net\/pcs\/click?/,i=/_blank/,o=function(e){const t=e&&Oe.tagNameIs(e,"a"),n=Oe.attributeMatches(e,"href",r),o=Oe.attributeMatches(e,"target",i);return t&&n&&o},s=function(e){const r=Oe.tagNameIs(e,"div"),i=Oe.attributeMatches(e,"class",t),o=Oe.attributeMatches(e,"id",n);return r&&i&&o};return{getDFPGoogleDiv:function(e){return Oe.traverseAndFindFirstMatchingNode(e,s)},getClickableImage:function(t){let n,r;const i=Oe.traverseAndFindFirstMatchingNode(t,o);return i&&(r=Oe.getFirstChildElement(i),Oe.isImageTag(r)&&e.hasValidDimentionAttributes(r)&&(n=r)),n},getNodeMatchingMinimumSize:function(t){return Oe.traverseAndFindFirstMatchingNode(t,e.hasValidDimensions)}}},Je=function(){"use strict";const e=ze(),t=function(e,t){t.tag=Oe.getTagName(e),t.size=Oe.getDimensionFromAttributes(e)||Oe.getDimensionFromStyle(e)};return{getDFPValue:function(n){let r;const i=e.getDFPGoogleDiv(n);return r=i?function(n){let r,i;const o={type:0};return n&&(o.type=1,r=e.getClickableImage(n),r?(o.type=2,t(r,o)):(i=e.getNodeMatchingMinimumSize(n),i&&(o.type=3,t(i,o)))),o}(i):function(n){const r={type:0},i=e.getNodeMatchingMinimumSize(n);return i&&(r.type=4,t(i,r)),r}(n),r}}},Qe={name:"hB",dependencies:[],creator:function(){"use strict";try{const e=We.getWindow(),t=We.getTop(),n=!(!t||!t.document)&&Object.getOwnPropertyNames(t),r=()=>{var t,n;const r=null==e?void 0:e.navigator,i=null===(t=null==r?void 0:r.userAgentData)||void 0===t?void 0:t.brands;return(null===(n=null==i?void 0:i.map((e=>null==e?void 0:e.brand)))||void 0===n?void 0:n.includes("HeadlessChrome"))||!1},i={cdcP:m.stringifyTriState(n&&-1!==n.indexOf("cdc_adoQpoasnfa76pfcZLmcfl_Promise")),cdcA:m.stringifyTriState(n&&-1!==n.indexOf("cdc_adoQpoasnfa76pfcZLmcfl_Array")),cdcS:m.stringifyTriState(n&&-1!==n.indexOf("cdc_adoQpoasnfa76pfcZLmcfl_Symbol")),cyp:m.stringifyTriState(n&&-1!==n.indexOf("Cypress")),wd:m.stringifyTriState(m.isDef(e.navigator.webdriver)&&!0===e.navigator.webdriver),uaHC:m.stringifyTriState(e.navigator.userAgent.length>0&&-1!==e.navigator.userAgent.indexOf("HeadlessChrome")),chHC:m.stringifyTriState(r())},o=1,s=e=>m(e).contains(o),a=function(e){h.getAggregator().trigger("addThrottledProp","sca","hbs",m(e).toION())};s(i)&&a(i)}catch(e){}},settings:{tier:4,applies:function(){"use strict";return!0}}},$e={name:"viewport",dependencies:[],creator:function(){"use strict";const e={width:4,height:4},t=function(t){return!Oe.isViewportVisible(t,e)},n=function(e,r){return e!==r&&t(e)?e:e!==r&&Ae.isFriendlyToParent(e)?n(e.parent,r):void 0},r=function(){const e=We.getWindow();return n(e,We.getWindow().top)},i=function(){return void 0!==r()};return{MIN_VISIBLE_DIM:e,isHidden:i,isCurrentIframeTheHiddenFrame:function(){let e;const n=We.getWindow();return t(n)?e=!0:i()&&(e=!1),e},getWindowWithHiddenViewport:r}}},Ze=function(e){"use strict";let t,n;const r=function(r){t=e.setInterval(r,100),n=e.setTimeout((function(){i()}),42e4)},i=function(){t&&(e.clearInterval(t),t=null),n&&(e.clearTimeout(n),n=null)};return{onResize:function(t){let n=e.innerWidth,o=e.innerHeight,s=!1;r((function(){const r=function(){const t=e.innerWidth,r=e.innerHeight;return t!==n||r!==o}();r&&(s=!0),s&&!r&&(t(),i(),s=!1),n=e.innerWidth,o=e.innerHeight}))}}},et={name:"AS_Finder",dependencies:["viewport"],creator:function(e,t){"use strict";let n;const r=function(){try{!function(r){let i;const o={};r!==n&&(i=m.stringifyTriState(r),o.res1=i,o.ps=i,o.ts=We.now(),o.psfr=m.stringifyTriState(e.isCurrentIframeTheHiddenFrame()),t.events.trigger("newState",o)),n=r}(e.isHidden())}catch(e){h.getAggregator().trigger("error",T.ERROR_CODES.HIDDEN2)}};return{start:function(){e.isHidden()&&(r(),function(){const t=e.getWindowWithHiddenViewport();t&&Ze(t).onResize(r)}())}}},settings:{emits:!0,applies:function(e,t,n){"use strict";return n.embedded&&!n.isBustedIframe()&&!n.isSpecifiedAd()}}},tt={name:"hA",dependencies:["AS_Finder"],creator:function(t){"use strict";let n=0;const r=function(e,t){h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.FF,e,m(t).toION())},i=function(e){n<2&&r("ha1",e),n++};!function(){let n,o;if(Ae.embedded)try{o=e.contextNode.parentNode,n=Je().getDFPValue(o),r("dfp",function(e){const t={};return t.df=e.type,e.size&&(t.sz=e.size.width+"."+e.size.height),e.tag&&(t.dom=e.tag),t}(n)),n.size&&t&&(t.events.on("newState",i),t.start())}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.HIDDEN)}}()},settings:{tier:T.TIERS.PRE_IMPRESSION_FRAUD,applies:function(e){"use strict";return e.on("usehaps")}}},nt={name:"thresholdDetector",dependencies:[],creator:function(){"use strict";return{create:(e,t,n)=>{let r;let i=t();const o=()=>{const o=t();o!==i&&!0&&(n(e,o),We.clearInterval(r)),i=o};i&&(n(e,i),r=We.setInterval(o,50))}}}},rt={name:"invisibleAds",dependencies:["thresholdDetector"],creator:function(t){"use strict";const n={width:4,height:4},r=()=>{const e=_e.getStyle(We.getWindow().frameElement,"opacity");return parseFloat(e)<.2},i=()=>"hidden"===_e.getStyle(We.getWindow().frameElement,"visibility"),o=(e,t)=>{const n={res1:m.stringifyTriState(t)};h.getAggregator().trigger(L.ADD_THROTTLED_PROP,"sca",e,m(n).toION())};try{const s=e.contextNode.parentNode,a=Je().getDFPValue(s);Oe.isViewportVisible(We.getWindow(),n)&&2===a.type&&(r()&&t.create("ha2",r,o),i()&&t.create("ha3",i,o))}catch(e){}},settings:{tier:4,applies:function(e,t,n){"use strict";return n.embedded&&!n.isBustedIframe()&&!n.isSpecifiedAd()}}};var it=function(e,n,r,i){"use strict";var o,s,a=0,c=0,u=e&&e.body,d=!1,g=function(){if((o=Math.round(Oe.getNodeArea(e.body)))>=i){for(var t,n,s=o+20*o/100,u=e.querySelectorAll("iframe"),d=m.fromNodeListToArray(u);d.length&&(c<s||a<r);)t=d.shift(),(n=Math.round(Oe.getNodeArea(t)))>=i&&(a++,c+=n);c>=s&&a>=r&&l()}},l=function(){var e={va:o,bia:c,bin:a};h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.FF,n,m(e).toION()),d=!0};u&&(We.execAtEndOfThread(g),!d&&m.isDef(t.MutationObserver)&&(s=new MutationObserver((function(e){d?s.disconnect():We.execAtEndOfThread((function(){m(e).each((function(e,t){if(t.addedNodes.length){var n=t.addedNodes[0];n&&Oe.isElement(n)&&Oe.tagNameIs(n,"IFRAME")&&m.debounce(g,10)}}))}))}))).observe(e.body,{attributes:!1,childList:!0,characterData:!1}))},ot={name:"BS_InApp",dependencies:[],creator:function(){"use strict";var e=We.getWindow().document,t=e&&e.body;h.getAggregator().request(U.MOBILE_APP).isMobileAppEnvironment()&&t&&at.isValidMobileAdSize(e.body)&&it(e,"bs1",3,100)},settings:{tier:T.TIERS.VIEWABILITY,applies:function(e,t,n){"use strict";var r=n.isOmid()||n.isMraid(),i=!n.isDomless()&&n.friendly&&!n.embedded;return e.on("bas")&&r&&i&&e.bootstrapOn("app")}}},st={name:"BS_Browser",dependencies:[],creator:function(){"use strict";var e=We.getWindow().document,t=e.body?Math.round(Oe.getNodeArea(e.body)):null;!h.getAggregator().request(U.MOBILE_APP).isMobileAppEnvironment()&&t&&it(e,"bs2",10,t)},settings:{tier:T.TIERS.VIEWABILITY,applies:function(e,t,n){"use strict";var r=!e.bootstrapOn("app")&&!n.isDomless();return e.on("bbs")&&n.embedded&&r}}};const at={isValidMobileAdSize:e=>{const t=Oe.getRect(e);return m([{width:320,height:50},{width:300,height:250},{width:336,height:280},{width:300,height:250},{width:728,height:90},{width:468,height:60},{width:336,height:280}]).find(((e,n)=>n.width===t.width&&n.height===t.height))}};var ct=function(){"use strict";return{createInstance:function(e){return Ae.isDomless()?new dt:new ut(e)}}},ut=function(e){"use strict";var n,r,i,o=new Y,s=new q,a=new Et(o),c=new lt,u=new At,d=new ht(o,e),g=function(){return m.isUndef(i)&&(i=new mt(o)),i};return{isApplicable:function(e){return m.isDef(t.JSON)&&m.isDef(t.postMessage)&&(!e.isOmidNative()||e.isOmidForWeb())},start:function(){o.provide({frameCollection:function(){return a},adProxy:function(){return u},adTalkMessage:function(e){return new gt(e,o)},adTalkMessageCollection:function(){return c},idMapModule:g,interFrameQuerySelector:function(e){return new It(e)}}),s.traverse(a.addFrame),d.startListening(),d.sendToKnownFrames(),h.getAggregator().once(L.STOP_AD_TALK,(function(){d.stopListening()})),h.getAggregator().provide(U.AD_TALK_EVENT_AGGREGATOR,o)},sendAdTalkCall:d.sendAdTalkCall,getFrameMap:function(){return m.isUndef(n)&&(n=new pt(o)),n},getFrameMapIncludingPeerCase:function(){return m.isUndef(r)&&(r=new pt(o,!0)),r},getIdMap:g}};const dt=function(){"use strict";return{isApplicable:()=>!1,start:()=>{}}};var gt=function(t,n){"use strict";var r,i=n.request(U.AD_PROXY).myIdCard,o=n.request(U.FRAME_COLLECTION).getMe().getStringifiedPosition();r=h.getAggregator().request(U.FEATURES).on("swapids")?e.oid:e.asid;var s,a;return{messageContent:t||{},srcAsid:e.asid,srcTagId:i.tagId,srcIsEmbedded:Ae.embedded,srcIsFriendly:Ae.friendly,srcBirthdate:d.measurementConfig.birthdate,iasCommonId:r.split("-")[2],nodeSelector:Ae.friendly?"["+T.AD_IDENTIFIER+"-"+e.asid+"]":'iframe[src*="'+((a=(s=We.getWindow()).location&&s.location.href)&&a.replace(/^https?\:\/\//i,""))+'"]',positionStr:o,version:"0.1"}},lt=function(){"use strict";var e={};return{add:function(t){var n=t&&t.srcAsid;n&&(e[n]=t)},map:function(t){return m(e).map(t)},has:function(t){var n=t&&t.srcAsid;return e[n]}}},ft=function(e,n,r,i){"use strict";var o,s=e==t;(o={position:n.slice(0),id:n.join("-"),isMe:s,isLeaf:!e.frames.length,adProxies:s?r:[],selfDescription:void 0,unifiedId:d.measurementConfig.birthdate,srcIsEmbedded:i?i.srcIsEmbedded:void 0,inbox:i?[i]:[]}).getDomObj=function(){return e},o.getStringifiedPosition=function(){return m(o.position).map((function(e,t){return m.toBase(Number(t)+1,36)})).join("")},o.isValidForMapping=function(){return o.isLeaf||o.isMe||m.isDef(o.selfDescription)};var a=function(e,t){return!m(e).find((function(e,n){return n.adSafeId&&n.adSafeId===t.adSafeId}))};return o.addInformationFromSrc=function(e,t){var n,r,i,s;n=t,r=o.adProxies,i=n.adProxies,s=[],r.length&&i.length?m(i).each((function(e,t){a(r,t)&&s.push(t)})):s=i,o.adProxies=r.concat(s),function(e){m(o.inbox).find((function(t,n){return n.srcAsid&&n.srcAsid===e.srcAsid}))||o.inbox.push(e)}(e),o.srcIsEmbedded=e.srcIsEmbedded,o.selfDescription=t},o},Et=function(e){"use strict";var t=[],n={},r={noMe:!0};return{addFrame:function(i,o,s){var a=e.request(U.AD_PROXY).getAll(),c=new ft(i,o,a,s);return t.push(c),n[c.id]=c,c.isMe&&(r=c),c},getFrame:function(e){return n[e]},list:t,dictionary:n,getMe:function(){return r}}},pt=function(t,n){"use strict";var r=function(e,t){var r=t.adProxies,s="";if(t.isValidForMapping())return s+=n?o(r,t.getStringifiedPosition()):i(r,t)},i=function(e,t){var n="";return n+=t.getStringifiedPosition(),n+=t.isMe?"*":"",n+=e.length?"."+e[0].tagId:""},o=function(e,t){var n="";return e.length?n+=m(e).stringify((function(e,n){return s(n,t)}),"|"):n+=t,n},s=function(t,n){return n+(e.asid===t.adSafeId?"*":"")+"."+t.tagId};return{output:function(){var e=t.request(U.FRAME_COLLECTION),n=m(e.list).stringify(r,"|");return m.toBase(e.getMe().unifiedId,62)+"+"+n}}},mt=function(t){"use strict";var n=t.request(U.FRAME_COLLECTION).getMe().getStringifiedPosition(),r=e.contextNode.parentNode,i=t.request(U.INTER_FRAME_QUERY_SELECTOR,r),o=function(e){var t=!1,o=!Ae.embedded,s="BODY"!==Oe.getNodeName(r)&&"HEAD"!==Oe.getNodeName(r),a=e.srcIsEmbedded&&!function(e){var t="0.1"!==e.version,n=e.nodeSelector&&-1===e.nodeSelector.indexOf(T.AD_IDENTIFIER);return t?n:!e.srcIsFriendly}(e);return t=o&&s&&!a?!!function(e){return i.queryFor(e.nodeSelector)}(e):!!function(e){var t=e.positionStr,r=e.srcIsEmbedded&&Ae.embedded,i=0===n.indexOf(t)||0===t.indexOf(n);return r&&i}(e),t};return{output:function(){var r,i,s=n+"*";return(i=t.request(U.AD_TALK_MESSAGE_COLLECTION).map((function(t,n){var r;return t!==e.asid&&o(n)&&(r=function(e){return e.positionStr+"."+e.srcAsid+"."+e.transferDuration+"_"+e.srcTagId}(n)),r}))).push(s),r=i.join("|"),r.length>120&&(r=function(e){return e&&e.substr(0,120)+".of"+e.length}(r),h.getAggregator().trigger(L.STOP_AD_TALK)),r},isCandidateForMyIdMap:o}},It=function(e){"use strict";var t=new q,n=function(e,t){return Oe.querySelector(function(e){var t=e,n="IFRAME"===Oe.getNodeName(e),r=Oe.isWindow(e);return n?t=e.contentWindow.document:r&&(t=e.document),t}(e),t)};return{queryFor:function(r){var i=null;return r&&(i=function(r,i){var o,s,a;try{(s=n(r,i))||(o=t.getFrames(!0,e),m(o).findFirst((function(e,t){return a=n(t,i)})))}catch(e){}return s||a||null}(e,r)),i}}},ht=function(t){"use strict";var n,r,i=!1,o=h.getAggregator().request(U.FEATURES);r=o.on("swapids")?e.oid:e.asid;var s=function(n){var i=r.split("-")[2],o=!t.request(U.AD_TALK_MESSAGE_COLLECTION).has(n)&&n.srcAsid!==e.asid;return n.hasOwnProperty("messageContent")&&i===n.iasCommonId&&o},a=function(){var e=t.request(U.FRAME_COLLECTION).getMe(),n={self:e,unifiedId:e.unifiedId};return t.request(U.AD_TALK_MESSAGE,n)},c=function(){var e=T.DT_CODES.ADTALK;t.request(U.FRAME_COLLECTION);i||(i=!0),h.getAggregator().trigger(L.SEND_DT,e)},u=function(e,n,r){var o,s,a,u,d,g,l;try{o=t.request(U.FRAME_COLLECTION),s=t.request(U.AD_TALK_MESSAGE_COLLECTION),a=n.messageContent.self,s.add(n),g=o.getMe(),l=a,g.unifiedId>l.unifiedId&&(g.unifiedId=l.unifiedId),n.transferDuration=function(e){return We.now()-e.sentTime}(n),u=o.getFrame(a.id),d=u,m.isUndef(d)||m.isUndef(d.selfDescription)?((u=u||o.addFrame(e.source,a.id.split("-"),n)).addInformationFromSrc(n,a),r()):u.addInformationFromSrc(n,a),i&&t.request(U.ID_MAP_MODULE).isCandidateForMyIdMap(n)&&c()}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.ADTALK_DUBIOUS)}};return{sendAdTalkCall:c,sendToKnownFrames:function(){(new J).send(a)},startListening:function(){(n=new z).listen(s,u,a)},stopListening:function(){n&&n.stop()},validateMessage:s,processMessage:u,createMessage:a}},Tt=function(){"use strict";var e=h.getAggregator().request(U.IDS),t=e.getAsid();return{tagId:e.getFwId(),adSafeId:t}},At=function(){"use strict";var e,t=[],n=function(e){var n=new Tt(e);return t.push(n),n};return e=n(),{createNew:n,getAll:function(){return t},myIdCard:e}},_t=function(e,t){"use strict";var n,r,i=T.NA,o=i,s=!1,a=!1,c=!1,u=!t,d=h.getAggregator().request(U.BROWSER),g=function(e,t){(function(e){var t=h.getAggregator().request(U.MOBILE_APP);return(e.browserIs(T.BROWSERS.CHROME)||e.isAndroidWebViewBrowser()||e.browserIs(T.BROWSERS.WEBKIT)||e.browserIs(T.BROWSERS.MSEDGE))&&!t.isMobileAppEnvironment()&&e.hasResizeObserver()})(d)&&We.getResizeObserver((function(n,r){var i=n.pop();i.contentRect.height*i.contentRect.width>0&&(t.unobserve(e),t.observe(e),r.disconnect())})).observe(e)},l=function(){var t=We.getIntersectionObserver((function(e,t){var r=e.pop(),s=r.intersectionRect.width*r.intersectionRect.height/(r.boundingClientRect.width*r.boundingClientRect.height)*100;isNaN(s)&&(g(r.target,t),s=0),i=Math.min(s,100),n=r.boundingClientRect,i!==o&&We.execAtEndOfThread((function(){h.getAggregator().trigger(L.IO_PIV_CHANGE,i)})),o=i}),{threshold:T.VIEWABILITY_IN_VIEW_THRESHOLDS_INTERSECTION_OBSERVER});u&&We.execAtEndOfThread((function(){i===T.NA&&(i=0)})),t.observe(f(e)),u&&We.execAtEndOfThread((function(){Ae.isBustedIframe()||h.getAggregator().trigger(L.DELAYED_VIEWABILITY_READY)})),s=!0},f=function(t){if(!m.isUndef(t)){if(c){var n=e.document,i=n.createElement("div");m(i.style).mixin({position:"absolute",width:"100%",opacity:"0",height:"100%",zIndex:-999,top:"0px",left:"0px"}),i[T.IAS_DETECTOR]=!0,n.body.appendChild(i),t=i}return r=t,t}};return{start:function(){var t=function(){var t;try{e.document&&(c=!0,t={bodyElement:e.document.body,document:e.document})}catch(e){a=!0}return t}();t&&null!==t.bodyElement?l():t&&t.document?_e.whenReady(l,t.document):a?h.getAggregator().request("errors").add(T.ERROR_CODES.BUSTED_IFRAME_IN_IO):l()},isReady:function(){return i!==T.NA},isStarted:function(){return s},getAdNodeDimensions:function(){var e;return n&&(e=ve({scrX:void 0,scrY:void 0,width:n.width,height:n.height})),e},getObservedNode:function(){return r},getPiv:function(){return i}}},Dt=function(){"use strict";var e=!1;return _e.whenReady((function(){h.getAggregator().trigger(L.START_VIEWABILITY_LOOP),e=!0})),{loopStarted:function(){return e}}},St={name:"loopDelay",dependencies:[],creator:Dt,settings:{applies:function(e,t,n){"use strict";return e.bootstrapOn("allowViewability")},tier:T.TIERS.VIEWABILITY}},vt=function(){"use strict";return{start:function(e){h.getAggregator().on(L.MEASURABLE,(function(){e()}))},isApplicable:function(e,t){return!t.browserIs(T.BROWSERS.WEBKIT)||!e.isImmediatelyMeasurable()}}},Ot=function(){"use strict";return{start:function(e){e()},isApplicable:function(e){return e.isImmediatelyMeasurable()}}},Rt=function(t,n,r){"use strict";var i=!1,o=function(){try{n.impressionIsIdentifiable()&&!i?(i=!0,h.getAggregator().trigger(L.NOTIFY,e._onMeasurable)):n.impressionIsIdentifiable()||__IntegralASDiagnosticCall("rtsmeas_imp_not_iden",{},e)}catch(t){__IntegralASDiagnosticCall("rtsmeas_send_noti_error",t,e)}};return{start:function(){try{var n,i=[yt(),Nt(),Ot(),vt()];(n=m(i).findFirst((function(e,n){return n.isApplicable(r,t)})))?n.start(o):__IntegralASDiagnosticCall("rtsmeas_no_chosen_strategy",{},e)}catch(t){__IntegralASDiagnosticCall("rtsmeas_start_error",t,e)}},isApplicable:function(t){return t.bootstrapOn("useViewabilityNotification")&&m.isDef(e._onMeasurable)}}},Nt=function(){"use strict";return{start:function(e){var t,n;(t=h.getAggregator(),n=[L.AD_IMPRESSION,L.MEASURABLE],{onAll:function(e){var r={};m(n).each((function(i,o){t.on(o,(function(){r[o]=1,m(r).keys().length===n.length&&(r={},e())}))}))}}).onAll((function(){e()}))},isApplicable:function(e,t){var n=t.getIOSVersion()>=9;return(!t.browserIs(T.BROWSERS.WEBKIT)||n)&&Ae.isVideo()}}},yt=function(){"use strict";return{start:function(e){h.getAggregator().once(L.AD_IMPRESSION,(function(){e()}))},isApplicable:function(e){return e.isImmediatelyMeasurable()&&Ae.isVideo()}}},Ct=function(e,t,n){"use strict";var r=["rjss","jss","jload"];return{accepts:function(){var e=m.isDef(m(r).find((function(e,t){return t===n})));return t.accepts()&&t.isMediaType(T.MEDIA_TYPE.DISPLAY)&&e},isImmediate:function(){return!0},isMediaType:t.isMediaType,supportsAdContainerGeometry:function(){return t.supportsAdContainerGeometry()},start:function(){}}},Mt=function(t){"use strict";var n=We.getWindow(),r=n&&n.omid3p,i=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),o=!!(t&&t.isSupported&&t.isSupported()),s=!!(r&&m.isFunction(r.registerSessionObserver)&&m.isFunction(r.addEventListener));return{accepts:function(){return(o||s)&&!e.videoId&&!e._cl_adpath},isMediaType:function(e){return e===i.mediaType},supportsAdContainerGeometry:function(){return!0}}},wt=function(e,t,n){"use strict";var r,i=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),o=i.isHtml&&i.isWeb,s=We.getWindow(),a=s&&s.omid3p,c=!!(a&&m.isFunction(a.registerSessionObserver)&&m.isFunction(a.addEventListener))?a:e;r=o?["rjss","jss","jload","jsvid","fwjsvid"]:["rjss","jss","jload"];return{accepts:function(){var e=m.isDef(m(r).find((function(e,t){return t===n})));return t.accepts()&&t.isMediaType(T.MEDIA_TYPE.VIDEO)&&e},isImmediate:function(){return!0},isMediaType:t.isMediaType,supportsAdContainerGeometry:function(){return t.supportsAdContainerGeometry()},start:function(){c.addEventListener("start",(function(e){h.getAggregator().trigger(L.AD_IMPRESSION)}))}}},bt=function(e){"use strict";return{resolve:function(){return m(e).findFirst((function(e,t){return t.environment.accepts()}))}}},Pt=function(n){"use strict";var r=!1,i=!1,o=!1,s=!1,a=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT);a.queuedOutputItems=[],a.cachedEvents=[],a.cachedGeometryEventsReceived=!1,a.cachedVideoEventsReceived=!1,a.recoveredTime=-1;var c=new _r,u=h.getAggregator().request(U.OMID_AS_VERIFICATION_PARAMS),g=h.getAggregator().request(U.FEATURES),l=We.getWindow(),f=l&&l.omid3p,E=!!(f&&m.isFunction(f.registerSessionObserver)&&m.isFunction(f.addEventListener))?f:n,I=!1;a.omidEarlyExit=!1,a.mediaType="display";var A=!1,_=function(e,t){a.queuedOutputItems.push({code:e,value:t})},D=function(e,t,n){h.getAggregator().trigger(e,t,n)},S=function(e){h.getAggregator().trigger(e)},v=function(){r&&i&&(!s||o)&&(t.omidSupported=!0,a.hasOwnProperty("impressionType")&&_("oiet",a.impressionType),a.hasOwnProperty("creativeType")&&_("oct",a.creativeType),a.underEvaluation&&_("oef",!0),a.exitedOASRS=!0,I=!0,d&&d.jsConfigRequest&&d.jsConfigRequest.buildRequestUrlFromParameters&&d.jsConfigRequest.buildRequestUrlFromParameters({contextNode:d.contextNode,omidParameters:u&&u.IAS&&Object.keys(u.IAS).length>0?u.IAS:u}),p())},O=function(t){function n(){return Ae.isOmidForWeb()||t.data.hasOwnProperty("supportsLoadedEvent")&&("true"===t.data.supportsLoadedEvent||!0===t.data.supportsLoadedEvent)&&"string"==typeof t.data.creativeType&&""!==t.data.creativeType}var c="0";if("sessionStart"===t.type){a.adSessionType=t.data.context.adSessionType||"undefined",a.environment=t.data.context.environment,a.accessMode=t.data.context.accessMode||"limited",a.omidNativeInfo=t.data.context.omidNativeInfo,a.omidJsInfo=t.data.context.omidJsInfo,a.deviceInfo=t.data.context.deviceInfo,a.app=t.data.context.app,a.supports=t.data.context.supports,a.app&&"string"==typeof a.app.appId&&a.app.appId.toLowerCase().indexOf("pandora")>-1&&(a.ignoreDivAsCandidate=!0),t.data.hasOwnProperty("contentUrl")&&(a.contentUrl=t.data.contentUrl),t.data.context.hasOwnProperty("underEvaluation")&&(a.underEvaluation=t.data.context.underEvaluation),a.isJavaScript="javascript"===a.adSessionType,a.isNative="native"===a.adSessionType||"javascript"===a.adSessionType,a.isLimitedSandbox="app"===a.environment?Ae.embedded:"full"!==t.data.context.accessMode,a.isHtml="html"===t.data.context.adSessionType,a.isWeb="web"===t.data.context.environment,a.partnerName=a.omidNativeInfo&&a.omidNativeInfo.partnerName&&a.omidNativeInfo.partnerName.toLowerCase(),u=t.data.verificationParameters,a.isOmidForWebEnvironment=a.isHtml&&a.isWeb,a.element=t.data.context.videoElement||t.data.context.slotElement||null,n()?(s=!0,a.useOMID13Logic=!0,_("ohand","13"),E.addEventListener("video",N),E.addEventListener("media",N)):_("ohand","12"),a.isOmidForWebEnvironment||(a.integratedBlocking=d.measurementConfig.isResolved&&Ae.integratedBlockingApplies(e.mobFwUrl),a.integratedBlocking&&g&&g.on("exitOASRSEarly")&&(a.omidEarlyExit=!0,c="1",a.omidEarlyExit&&e.mobFwUrl.indexOf("xmtp=v")>-1&&(a.mediaType="video")),!t.data.mediaType||"display"!==t.data.mediaType&&"video"!==t.data.mediaType||(a.mediaType=t.data.mediaType)),a.omidEarlyExit&&(i=!0,_("omtp",a.mediaType),n()&&(o=!0),"video"===a.mediaType&&(a.isVideo=!0),a.isNativeVideo=a.isNative&&a.isVideo,a.isDisplay="display"===a.mediaType),"audio"===t.data.creativeType&&(a.accessMode="limited",a.isLimitedSandbox=!0);for(var l,f,p,m=[{root:"omidNativeInfo",code:"onpn",field:"partnerName"},{root:"omidNativeInfo",code:"onpv",field:"partnerVersion"},{root:"omidJsInfo",code:"ojpn",field:"partnerName"},{root:"omidJsInfo",code:"ojpv",field:"partnerVersion"},{root:"omidJsInfo",code:"osev",field:"serviceVersion"},{root:"omidJsInfo",code:"oscv",field:"sessionClientVersion"},{root:"app",code:"applv",field:"libraryVersion"},{root:"app",code:"appid",field:"appId"},{root:"deviceInfo",code:"dty",field:"deviceType"},{root:"deviceInfo",code:"osn",field:"os"},{root:"deviceInfo",code:"osv",field:"osVersion"}],h=0;h<m.length;h++)l=m[h].root,f=m[h].field,p=m[h].code,"object"==typeof a[l]&&void 0!==a[l][f]&&_(p,a[l][f]);_("oast",a.adSessionType),_("oacm",a.accessMode),_("oenv",a.environment),a.hasOwnProperty("contentUrl")&&_("ocon",encodeURIComponent(a.contentUrl||"")),_("oerl",c),_("oses",Ae.getTagTime()),r=!0,v()}if("sessionError"===t.type){var T="string"==typeof t.data.errorType?t.data.errorType:"NoErrType",A="string"==typeof t.data.message?t.data.message:"NoMessage",S=T+"_"+encodeURIComponent(A);I?D(L.ADD_OUTPUT_ITEM,{output:S},x.OMID_SESSION_ERROR):_(x.OMID_SESSION_ERROR,S)}},R=function(e){e.type===T.IMPRESSION_EVENT&&(a.omidImpressionArrived=!0,S(L.OMID_IMPRESSION_ARRIVED),a.mediaType="web"===a.environment?e.data.mediaType||"video":e.data.mediaType,_("omtp",a.mediaType),"audio"===e.data.creativeType&&(a.accessMode="limited",a.isLimitedSandbox=!0),_("oimp",Ae.getTagTime()),"video"===e.data.mediaType&&(a.isVideo=!0),function(e){return e.data.adView&&(e.data.viewport||a.isWeb)}(e)&&(a.impressionViewabilityMeasurement={type:"geometryChange",data:{viewport:e.data.viewport,adView:e.data.adView},timestamp:e.timestamp},void 0===a.geometryArrived&&c.checkForViewAttachmentBasedOnAdSessionType(a,e.data.adView)&&(a.geometryArrived=!0,S(L.OMID_REND_GEO_UPDATE))),e.data.hasOwnProperty("impressionType")&&!o&&(a.impressionType=e.data.impressionType),a.isNativeVideo=a.isNative&&"video"===e.data.mediaType,a.isDisplay="display"===e.data.mediaType,i=!0,v())},N=function(e){if(e&&"start"===e.type)return a.videoStartArrived=!0,void S(L.OMID_REND_VIDEO_START);"loaded"!==e.type||a.omidLoadedArrived||(_("oloa",Ae.getTagTime()),o=!0,a.omidLoadedArrived=!0,S(L.OMID_LOADED_ARRIVED),e.data.hasOwnProperty("creativeType")&&(a.creativeType=e.data.creativeType),"audio"===a.creativeType&&(a.accessMode="limited",a.isLimitedSandbox=!0),e.data.hasOwnProperty("impressionType")&&(a.impressionType=e.data.impressionType),!0===a.omidEarlyExit&&(A||(D(L.ADD_THROTTLED_OUTPUT_ITEM,"oiet",a.impressionType),D(L.ADD_THROTTLED_OUTPUT_ITEM,"oct",a.creativeType),A=!0)),v())},y=function(e){e&&e.data&&e.data.interactionType&&"click"===e.data.interactionType&&Yt.omid.trackClick()};return{start:function(){E.registerSessionObserver(O,"IAS"),E.addEventListener(T.IMPRESSION_EVENT,R),E.addEventListener(L.AD_USER_INTERACTION,y)}}},Vt=function(){"use strict";return{accepts:function(){return!0}}},Lt=function(){"use strict";var e=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),t=h.getAggregator().request(U.OMID_VERIFICATION_CLIENT),n=new Mt(t),r=e.isHtml&&e.isWeb;return{accepts:function(){return n.accepts()&&r}}},Ft=function(){"use strict";return{start:function(){p()}}};const Ut=({jsInfoCode:e,output:t,errorCode:n})=>{try{h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:t},e),h.getAggregator().trigger(L.SEND_DT,T.DT_CODES.PERFORMANCE)}catch(e){h.getAggregator().trigger(L.ERROR,n)}};class xt{constructor(){this.mousedOver=!1,this.clicked=!1}mouseOver(){this.mousedOver=!0}mouseOut(){this.mousedOver=!1}click(){this.clicked=!0}isMousedOver(){return this.mousedOver}wasClicked(){return this.clicked}}class Wt{constructor({tagStartTime:e,adState:t}){this.initClickTracking=({clickSource:e})=>{this.clickData[e]||(this.clickData[e]=[])},this.getClicks=({clickSource:e})=>this.clickData[e],this.setupTrackAndBroadcastClick=({clientX:e,clientY:t,clickSource:n})=>{const r=[e,t,Ae.getTagTime()];this.getClicks({clickSource:n}).push(r),Ut({output:m(this.clickData).toION(),errorCode:"Q",jsInfoCode:"clks"})},this.trackClick=({event:e,clickSource:t})=>{const{clientX:n,clientY:r}=e;this.adState.click(),this.setupTrackAndBroadcastClick({clientX:n,clientY:r,clickSource:t})},this.trackBlur=({clickSource:e})=>{this.setupTrackAndBroadcastClick({clientX:-1,clientY:-1,clickSource:e})},this.trackTouch=({clientX:e,clientY:t,clickSource:n})=>{this.setupTrackAndBroadcastClick({clientX:e,clientY:t,clickSource:n})},this.trackOmidClick=()=>{this.initClickTracking({clickSource:"om"}),this.trackClick({event:{clientX:0,clientY:0},clickSource:"om"})},this.isProxyClick=()=>!this.adState.wasClicked()&&this.adState.isMousedOver()&&n.activeElement instanceof HTMLIFrameElement,this.trackBlurClick=()=>{if(this.isProxyClick()){const e="blr";this.adState.mouseOut(),this.initClickTracking({clickSource:e}),this.trackBlur({clickSource:e})}},this.trackAdComponentClick=e=>{this.initClickTracking({clickSource:"ac"}),this.trackClick({event:e,clickSource:"ac"})},this.trackMobileTouchStart=e=>{if(e.changedTouches&&e.changedTouches[0]){const t=e.changedTouches[0];this.mobileTouchTimer.startTimer();const{clientX:n,clientY:r}={clientX:Math.round(null==t?void 0:t.clientX),clientY:Math.round(null==t?void 0:t.clientY)};this.mobileTouchX=n,this.mobileTouchY=r}},this.trackMobileTouchEnd=e=>{const t=this.mobileTouchTimer.endTimer();if(this.mobileTouchTimer.startTimer(),t&&t<=200&&this.mobileTouchX&&this.mobileTouchY&&e.changedTouches&&e.changedTouches[0]){const t=e.changedTouches[0],{clientX:n,clientY:r}={clientX:Math.round(t.clientX),clientY:Math.round(t.clientY)},i=Math.abs(n-this.mobileTouchX),o=Math.abs(r-this.mobileTouchY),s=10;if(i<=s&&o<=s){const e="mt";this.initClickTracking({clickSource:e}),this.trackTouch({clientX:n,clientY:r,clickSource:e})}}},this.clickData={},this.tagStartTime=e,this.adState=t,this.mobileTouchTimer=new kt,this.mobileTouchTimer.startTimer()}}class Bt{constructor({adState:e,tagStartTime:t}){this.trackAdComponentMouseOver=()=>{this.adState.mouseOver(),this.hoverData.timeToFirstHover||(this.hoverData.timeToFirstHover=Ae.getTagTime()),this.hoverData.hoverCount+=1,this.hoverTimer.startTimer(),Ut({output:m(this.hoverData.getData()).toION(),errorCode:"he",jsInfoCode:"hov"})},this.trackAdComponentMouseOut=()=>{this.adState.mouseOut();const e=this.hoverTimer.endTimer();(e||0===e)&&(this.hoverData.totalHoverTime+=e,Ut({output:m(this.hoverData.getData()).toION(),errorCode:"he",jsInfoCode:"hov"}))},this.adState=e,this.tagStartTime=t,this.hoverData=new Gt,this.hoverTimer=new kt}}class Gt{constructor(){this.getData=()=>[this.timeToFirstHover,this.hoverCount,this.totalHoverTime],this.hoverCount=0,this.totalHoverTime=0,this.timeToFirstHover=0}}class kt{constructor(){this.startTime=0}startTimer(){this.startTime=(new Date).getTime()}endTimer(){let e;return this.startTime&&(e=(new Date).getTime()-this.startTime),this.startTime=0,e}}const{birthdate:Ht}=e,Yt=new class{constructor({tagStartTime:e}){this.finalizeAllCollectedData=()=>{this.hover.trackAdComponentMouseOut()},this.adState=new xt,this.tagStartTime=e,this.click=new Wt({tagStartTime:e,adState:this.adState}),this.hover=new Bt({tagStartTime:e,adState:this.adState})}get adComponent(){return{trackClick:this.click.trackAdComponentClick,trackBlur:this.click.trackBlurClick,trackMouseOver:this.hover.trackAdComponentMouseOver,trackMouseOut:this.hover.trackAdComponentMouseOut}}get mobile(){return{trackTouchEnd:this.click.trackMobileTouchEnd,trackTouchStart:this.click.trackMobileTouchStart}}get omid(){return{trackClick:this.click.trackOmidClick}}}({tagStartTime:Ht});var jt=function(e,n){"use strict";var r="videoPlaybackEvent",i=[],o=(new Date).getTime(),s=0,a=1,c=0,u=!1,g=new Fe,l=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),f=We.getWindow(),E=f&&f.omid3p,p=!!(E&&m.isFunction(E.registerSessionObserver)&&m.isFunction(E.addEventListener))?E:e,I=!1,A=!1,_={isEmpty:function(){return 0===i.length},toString:function(){for(var e="{vEventCount:"+i.length+",vEvents:[",t=0;t<i.length;t++){var n=i[t];e+=(t>0?",{":"{")+"t:"+n.t+",rt:"+n.rt+",tp:"+n.tp+",sl:"+n.sl+",ad_duration:"+n.ad_duration+",volume:"+n.volume+",devol:"+n.devol+"}"}return e+="]}"}},D=function(){u=!0},S=function(e){var g,f,E,p="start|firstQuartile|midpoint|thirdQuartile|resume|bufferFinish",_="complete|pause|bufferStart|skipped";if(-1!==("|"+p+"|"+_+"|playerStateChange|loaded|volumeChange|").indexOf("|"+e.type+"|"))try{var D,S="",v=e.hasOwnProperty("timestamp")?e.timestamp:(new Date).getTime(),O=v-(d.measurementConfig.birthdate||v+1),R="n",N=!1;switch(e.type){case"start":S=L.AD_VIDEO_START,l.videoStartArrived=!0,h.getAggregator().trigger(L.OMID_REND_VIDEO_START),o=v,(c=e.data.duration||"0")>1e3&&(c/=1e3),s=null!=e.data.mediaPlayerVolume?e.data.mediaPlayerVolume:e.data.videoPlayerVolume,a=null!=e.data.deviceVolume?e.data.deviceVolume:1;break;case"volumeChange":S="volumeChanged",s=null!=e.data.mediaPlayerVolume?e.data.mediaPlayerVolume:e.data.videoPlayerVolume,a=null!=e.data.deviceVolume?e.data.deviceVolume:1;break;case"firstQuartile":case"midpoint":case"thirdQuartile":case"complete":S="adVideo"+e.type.substring(0,1).toUpperCase()+e.type.substring(1),N=!0,h.getAggregator().trigger(L.VIDEO_QUARTILE_EVENT,e);break;case"pause":case"bufferStart":S="pauseAd";break;case"resume":case"bufferFinish":S="resumeAd";break;case"skipped":S="adSkipped"}if(s=s>0&&s<.1?.1:parseInt(10*s)/10,a=a>0&&a<.1?.1:parseInt(10*a)/10,""!==S){var y=h.getAggregator().request(U.SCREEN_EVENTS);y&&(R=y.getCurrentLoc()||R),i.push({t:v-o,rt:O,tp:S,sl:R,ad_duration:c,volume:s,devol:a})}if("loaded"===e.type&&m.isDef(e.data)){var C=["preroll","midroll","postroll","standalone"].indexOf(e.data.position),M=-1!==C?C+1:void 0,w=[];!0===e.data.autoPlay?w.push("autoplayed"):w.push("clicktoplay"),!0===e.data.skippable&&w.push("skippable"),"fullscreen"===e.data.state&&w.push("fullscreen");var b=w.join(".");!0===u?(m.isDef(M)&&h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.ENVIRONMENT,x.VIDEO_BREAK_POSITION,M),h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.ENVIRONMENT,x.VIDEO_PLAYER_STATE,b)):(m.isDef(M)&&h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:M},x.VIDEO_BREAK_POSITION,{type:T.IMPRESSION_EVENT}),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:b},x.VIDEO_PLAYER_STATE,{type:T.IMPRESSION_EVENT}))}if("start"===e.type&&(h.getAggregator().trigger(L.OMID_AD_DURATION,{ad_duration:c}),l.adDuration=c),"playerStateChange"===e.type?D="fullscreen"===e.data.state?"AdEnteredFullscreen":"AdExitedFullscreen":-1!==p.indexOf(e.type)?(D="AdPlaying",A=!0):-1!==_.indexOf(e.type)&&(D="AdPaused",A=!1),"audio"===l.creativeType&&""!==S){var P=(g=T.RENDER.WIDTH_THRESHOLD,f=T.RENDER.HEIGHT_THRESHOLD,(E={type:"geometryChange",timestamp:v,internallyGenerated:!0,treatAsCached:I,data:{viewport:{width:g,height:f},adView:{measuringElement:!1,percentageInView:100,geometry:{x:0,y:0,width:g,height:f,obstructions:[],reasons:[]},reasons:[]}}}).data.adView.onScreenGeometry=E.data.adView.containerGeometry=E.data.adView.onScreenContainerGeometry=E.data.adView.geometry,E);A&&0!==a&&0!==s||(P.data.adView.geometry.width=P.data.adView.geometry.height=0,P.data.adView.percentageInView=0),h.getAggregator().trigger(L.INTERNALLY_GENERATED_GEOMETRY_EVENT,P)}I&&"loaded"!==e.type&&(l.cachedVideoEventsReceived=!0,"start"===e.type&&(l.cachedStartEventIndex=l.cachedEvents.length),l.cachedEvents.push(e)),m.isDef(D)&&n.trigger(r,{eventType:D,eventData:null}),N&&h.getAggregator().trigger(L.SEND_DT,T.DT_CODES.VIDEO_EVENTS)}catch(e){__IntegralASDiagnosticCall("omidvideo",e,t.bootstrapper)}};return{start:function(){h.getAggregator().on(L.IMPRESSION_SENT,D),h.getAggregator().provide({omidVideoEventsString:_}),I=!0,"audio"===l.creativeType?p.addEventListener("media",S):p.addEventListener("video",S),I=!1,l.cachedVideoEventsChecked=!0,l.cachedVideoEventsReceived&&l.processCachedEvents(),g.init()},addVideoPlaybackEventListener:function(e){n.on(r,e)}}},qt=function(e,t){"use strict";var n="measurementChanged",r=!1,i=function(e){return e>=50},o=function(e){var o=e.percentageInView;r=!0,e.viewState=function(e){return i(e)?T.IN_VIEW:T.OUT_OF_VIEW}(o),e.outOfViewReason=i(o)?"":T.OUT_OF_VIEW_REASONS.GEOM,t.trigger(n,e)};return{start:function(){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:T.MEDIA_TYPE.DISPLAY_CODE},T.MEDIA_TYPE_CODE,{type:T.IMPRESSION_EVENT}),e.addScreenLocationChangedListener(o),e.start()},getStrategyName:function(){return T.MEASUREMENT_STRATEGY.DISPLAY},addMeasurementChangedListener:function(e){t.on(n,e)},isMeasurable:function(){return r}}},Kt=function(e,t,n){"use strict";var r=m.isDef(e)?e.environment:void 0,i=m.isDef(e)?e.measurementStrategy:void 0,o=function(){return m.isDef(i)};m.isDef(t)&&t.start();return{hasMeasurementStrategy:o,getScreenLocationInfo:function(e){return t.create(e)},isImmediate:function(){return!o()||r.isImmediate()},isMeasurable:function(){return!!o()&&i.isMeasurable()},isMediaType:function(e){return!!o()&&r.isMediaType(e)},supportsAdContainerGeometry:function(){return e.environment.supportsAdContainerGeometry()},start:function(){o()&&r.start()},requiresDelayedViewabilityEvent:function(){o()&&t.requiresDelayedViewabilityEvent()}}},Xt=function(e,t,n){"use strict";var r=h.getAggregator().request(U.MOBILE_APP);return{create:function(){var t=[];t=(t=t.concat(e.getOmidMeasurementStrategies())).concat(e.getMraidMeasurementStrategies());var n=new Jt(t).resolve();n||h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:"0"},x.OMID_APP_MEASUREMENT,{type:T.IMPRESSION_EVENT});var i=new Qt(n);return new Kt(n,i,r.isMobileAppEnvironment())}}},zt=function(t){"use strict";var n=h.getAggregator().request(U.MOBILE_APP);return{getOmidMeasurementStrategies:function(){var t=h.getAggregator().request(U.OMID_VERIFICATION_CLIENT),n=new Mt(t),r=[];if(n.accepts()){var i=new an,o=new un,s=new Lt,a=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),c=new sn(t,new j),u=[{environment:i,measurementStrategy:new cn(t,new j)},{environment:s,measurementStrategy:new dn(new xn,We.getWindow(),new j)},{environment:o,measurementStrategy:new ln(new qn,We.getWindow(),new j)}],d=new Jt(u).resolve(),g=d?d.measurementStrategy:{},l=new nn(new on(new pr),new pr,a.isHtml),f=new Ct(t,n,e.mode),E=new rn(c,g,new j,l),p=new wt(t,n,e.mode),m=new gn(c,g,new jt(t,new j),new j,l);r.push({environment:f,measurementStrategy:E}),r.push({environment:p,measurementStrategy:m})}return r},getMraidMeasurementStrategies:function(){var e=[],t=n.isSafeToInjectMraid(),r=new fn(We.getWindow(),t,n.isMobileAppEnvironment());if(r.accepts()){var i,o=h.getAggregator().request("context"),s=new Zt(We.getWindow(),o),a=new En(We.getWindow(),new j);if(s.accepts()){var c=new en(We.getWindow(),new j);i={environment:s,measurementStrategy:new $t(a,c,new j)}}else{i={environment:r,measurementStrategy:new qt(a,new j)}}e.push(i)}return e}}},Jt=function(e){"use strict";return{resolve:function(){var t=m(e).findFirst((function(e,t){return t.environment.accepts()}));if(m.isDef(t))return t}}},Qt=function(e){"use strict";var t,n=!1,r={winDimensions:ve({scrX:0,scrY:0,width:0,height:0}),adDimensions:ve({scrX:0,scrY:0,width:0,height:0}),containerDimensions:ve({scrX:0,scrY:0,width:0,height:0}),method:T.NA,viewState:T.NA,percentInView:T.PIV_NA,reason:"",obstructed:T.NA,isHidden:T.NA,tabHidden:T.NA,posViewState:T.NA,adCompCount:1},i=function(e){return e?new ve({scrX:e.x,scrY:e.y,width:e.width,height:e.height}):ve({scrX:0,scrY:0,width:0,height:0})},o=function(e){t={winDimensions:i(e.windowDimensions),adDimensions:i(e.adDimensions),containerDimensions:i(e.containerDimensions),method:e.detectionMethod||T.NA,viewState:e.viewState||T.NA,percentInView:m.isDef(e.percentageInView)?e.percentageInView:T.PIV_NA,reason:e.outOfViewReason||"",obstructed:m.stringifyTriState(e.isObstructed),isHidden:T.NA,tabHidden:T.NA,posViewState:e.viewState||T.NA,adCompCount:1,shouldDelegateToDomBasedViewability:e.shouldDelegateToDomBasedViewability,sliceStatus:e.sliceStatus,isVideoPlaying:e.isVideoPlaying,isVideoPlayingInFullscreen:e.isVideoPlayingInFullscreen,isSoundOn:e.isSoundOn};var r=e.omidObstructions;m.isDef(r)&&""!==r&&(t.omidObstructions=r),e.isMeasurable&&(!0,n&&(n=!1,h.getAggregator().trigger(L.DELAYED_VIEWABILITY_READY)))};return{create:function(n){var i=r;return m.isDef(t)&&(e.environment.supportsAdContainerGeometry()?i=t:t.shouldDelegateToDomBasedViewability?(i=n).method=t.method:(0===t.percentInView||t.percentInView>=75)&&(i=t)),i},start:function(){var t;m.isDef(e)&&m.isDef(e.measurementStrategy)&&((t=e.measurementStrategy).addMeasurementChangedListener(o),t.start())},requiresDelayedViewabilityEvent:function(){n=!0}}},$t=function(e,t,n){"use strict";var r,i,o,s,a="measurementChanged",c=!1,u=!1,d=!1,g=function(e){return e<50},l=function(){if(!m.isUndef(i)){var e,t,l=[];c?(u?(t=!1,e=100):(t=s,e=o),g(e)&&l.push(T.OUT_OF_VIEW_REASONS.GEOM)):(t=!1,e=0,l.push(T.OUT_OF_VIEW_REASONS.VIDEO)),d=!0,i.shouldDelegateToDomBasedViewability=t,i.percentageInView=e,i.viewState=function(e){return g(e)?T.OUT_OF_VIEW:T.IN_VIEW}(e),i.outOfViewReason=l.join("."),r=i,n.trigger(a,r)}},f=function(e){i=e,o=e.percentageInView,s=e.shouldDelegateToDomBasedViewability,l()},E=function(e){var t=e.eventType;"AdEnteredFullscreen"===t?u=!0:"AdExitedFullscreen"===t?u=!1:-1!=="AdStarted|AdVideoStart|AdPlaying".indexOf(t)?c=!0:-1!=="AdSkipped|AdUserClose|AdPaused|AdVideoComplete|AdStopped".indexOf(t)&&(c=!1),l()};return{start:function(){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:T.MEDIA_TYPE.VIDEO_CODE},T.MEDIA_TYPE_CODE,{type:T.IMPRESSION_EVENT}),e.addScreenLocationChangedListener(f),e.start(),t.addVideoPlaybackEventListener(E),t.start()},getStrategyName:function(){return T.MEASUREMENT_STRATEGY.VIDEO},addMeasurementChangedListener:function(e){n.on(a,e)},isMeasurable:function(){return d}}},Zt=function(e,t){"use strict";return{accepts:function(){return t.isInMobiMraidVideo()},isImmediate:function(){return!1},supportsAdContainerGeometry:function(){return!1},start:function(){try{var t;e.inmobi.IASDocumentVideoBuffer.addVideoEventListener((function(e){"AdVideoStart"!==e.type||t||(t=!0,h.getAggregator().trigger(L.AD_IMPRESSION))}))}catch(e){}}}},en=function(e,t){"use strict";var n="inMobiMraidVideoPlaybackEvent",r=function(e){try{var r=e.type;t.trigger(n,{eventType:r})}catch(e){}};return{start:function(){try{e.inmobi.IASDocumentVideoBuffer.addVideoEventListener(r)}catch(e){}},addVideoPlaybackEventListener:function(e){t.on(n,e)}}};const tn=(e,t)=>{let n=[],r=0,i=0;if(e&&t&&"number"==typeof e.x&&"number"==typeof e.y&&"number"==typeof e.width&&"number"==typeof e.height){const o=e.x,s=e.x+e.width,a=e.y,c=e.y+e.height;for(;r<t.length;r++){const u=t[r];if(u&&"number"==typeof u.x&&"number"==typeof u.y&&"number"==typeof u.width&&"number"==typeof u.height){const t=u.x,r=u.x+u.width,d=u.y,g=u.y+u.height;if(t>=s||r<=o||d>=c||g<=a)continue;t<o&&(u.x=e.x,u.width=u.width-(o-t)),r>s&&(u.width=u.width-(r-s)),d<a&&(u.y=e.y,u.height=u.height-(a-d)),g>c&&(u.height=u.height-(g-c)),n[i]=u,i++}}}else t&&(n=t);return n};var nn=function(e,t,n){"use strict";var r=function(e,t){var n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),i=Math.min(e.x+e.width,t.x+t.width)-n,o=Math.min(e.y+e.height,t.y+t.height)-r;return{x:n,y:r,width:i>0?i:0,height:o>0?o:0}},i=function(e,t,n){var i=r(t,e);return r(n,{x:0,y:0,width:i.width,height:i.height})},o=function(e,t){var n=Ae.isOmidForWeb(),r=!Ae.isOmidSandboxedEnvironment(),i=n&&r;return{x:i?t.x:e.x+t.x,y:i?t.y:e.y+t.y,width:t.width,height:t.height}},s=function(e,t){return{x:t.x-e.x,y:t.y-e.y,width:t.width,height:t.height}};function a(e,t,n){var r=s(t,n),o=i(e,t,r);return o.width*o.height}var c=function(e){return u(e)?T.IN_VIEW:T.OUT_OF_VIEW},u=function(e){return e>=50};return{calculateGeometricMeasurement:function(r,d){if(m.isDef(r)&&m.isDef(d)){var g,l,f=r.viewport,E=r.computedAdContainer,p=E.obstructions,I=r.omidObstructions,h=p&&p.length>0,A=r.originalAdContainer,_=d.adGeometry,D=d.adFound,S=r.detectionMethod,v=0,O={x:0,y:0,width:f.width,height:f.height},R=o(A,_),N=r.outOfViewReason,y=0,C=0,M=h||!1,w=_.width*_.height<=1;return n&&w&&(N=function(e,t){var n=e||"";return t||-1!==n.indexOf(T.OUT_OF_VIEW_REASONS.GEOM)||(n=T.OUT_OF_VIEW_REASONS.GEOM+(""!==n?"."+n:"")),n}(N,D=!1)),D&&r.percentageInView>0?(y=a(O,E,R),C=h?function(t,n,r,a){var c=s(n,r),u=i(t,n,c),d=o(n,u);return e.calculateObstructedArea(d,a)}(O,E,R,p):0,v=Math.round((y-C)/(R.width*R.height)*100),h&&0===C&&(M=!1),l=function(n,r,i,o){var s,c,u,d,g=0,l=t.getConfig(i).numberOfSlices,f=We.floor(i.height/l)||1,E=[],p=o?e.getObstructionStatusBySlice(l):[];for(g=0;g<l;g++)d=i.y+f*g,g==l-1&&(f=i.y+i.height-d),c=a(n,r,s={x:i.x,y:d,width:i.width,height:f})/(s.width*s.height)==1,E.push(c);if(o)for(u=We.min(p.length,l),g=0;g<u;g++)E[g]=E[g]&&!p[g];return E}(O,E,new ve(R).getRoundedGeometry(),M)):l=t.getConfig(_).defaultSliceArray,g={windowDimensions:O,containerDimensions:A,adDimensions:R,percentageInView:v,viewState:c(v),outOfViewReason:u(v)?"":N||T.OUT_OF_VIEW_REASONS.GEOM,detectionMethod:S,isObstructed:M,sliceStatus:l},m.isDef(I)&&""!==I&&(g.omidObstructions=I),g}}}},rn=function(e,t,n,r){"use strict";var i,o,s,a="geometryMeasurementChanged",c=function(){if(m.isDef(i)&&m.isDef(o)){var e=r.calculateGeometricMeasurement(i,o);e.isMeasurable=!0,s=!0,n.trigger(a,e)}},u=function(e){i=e,c()},d=function(e){o=e,c()};return{start:function(){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:T.MEDIA_TYPE.DISPLAY_CODE},T.MEDIA_TYPE_CODE,{type:T.IMPRESSION_EVENT}),e.addAdContainerGeometryMeasurementChangedListener(u),e.start(),t.addAdGeometryMeasurementChangedListener(d),t.start()},addMeasurementChangedListener:function(e){n.on(a,e)},getStrategyName:function(){return T.MEASUREMENT_STRATEGY.DISPLAY},isMeasurable:function(){return s}}},on=function(e){"use strict";var t,n=[],r=function(e,t){for(var n=o(e,t),r=n.x-e.x,i=n.y-e.y,s=r+n.width,a=i+n.height,c=Math.round(r);c<Math.round(s);c++)for(var u=Math.round(i);u<Math.round(a);u++)void 0!==e.matrix[c]&&void 0===e.matrix[c][u]&&(e.matrix[c][u]=1,e.obscuredPixelCount+=1);return e},i=function(e){for(var t=Math.round(e.width),n=Math.round(e.height),r=new Array(t),i=0;i<t;i++)r[i]=new Array(n);return{matrix:r,obscuredPixelCount:0,x:Math.round(e.x),y:Math.round(e.y),width:t,height:n}},o=function(e,t){var n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),i=Math.min(e.x+e.width,t.x+t.width)-n,o=Math.min(e.y+e.height,t.y+t.height)-r;return{x:n,y:r,width:i>0?i:0,height:o>0?o:0}},s=function(e,t,n){return e+(t-n)},a=function(e,t,n,r){return e==t||n===r-1},c=function(t){if(m.isUndef(t.matrix)||0===t.matrix.length)return[];for(var n=0,r=!1,i=t.matrix[0].length,o=t.matrix.length,c=e.getConfig({height:i}).numberOfSlices,u=We.floor(i/c)||1,d=[],g=0;g<i;g++){r=!1;for(var l=0;l<o;l++)if(1===t.matrix[l][g]){r=!0;break}n++,r&&(g=s(g,u,n),n=u),a(n,u,g,i)&&(d.push(r),n=0,r=!1)}return d};return{calculateObstructedArea:function(e,o){var s,a=o&&o.length>0,u=a?i(e):{},d=0,g=0;if(a){for(;d<o.length;d++)s=o[d],u=r(u,s);g=u.obscuredPixelCount,t=c(u)}else t=n;return g},getObstructionStatusBySlice:function(){return t}}},sn=function(t,n){"use strict";var r=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT);r.geometryChangeEvents=[];var i=null,o=!1,s=We.getWindow(),a=s&&s.omid3p,c=!!(a&&m.isFunction(a.registerSessionObserver)&&m.isFunction(a.addEventListener))?a:t,u=new _r,g=!1,l=!1,f=function(){var t=We.getDoc().getElementById("iasbi"+e.asid);t&&t.hasAttribute("CreativeLoaded")?(r.delayingViewabilityEvents=!1,o=!1,i&&(E(i),i=null)):We.setTimeout(f,50)},E=function(e){if(e&&"geometryChange"===e.type&&e.data&&e.data.adView){var t=e.data.adView;if(t.onScreenGeometry&&t.onScreenGeometry.obstructions&&t.onScreenGeometry.obstructions.length>0&&(t.onScreenGeometry.obstructions=tn(t.geometry,t.onScreenGeometry.obstructions),0===t.onScreenGeometry.obstructions.length&&t.reasons.indexOf("obstructed")>-1&&(t.reasons=t.reasons.filter((e=>"obstructed"!==e)))),t.onScreenContainerGeometry&&t.onScreenContainerGeometry.obstructions&&t.onScreenContainerGeometry.obstructions.length>0&&(t.onScreenContainerGeometry.obstructions=tn(t.geometry,t.onScreenContainerGeometry.obstructions),0===t.onScreenContainerGeometry.obstructions.length&&t.reasons.indexOf("obstructed")>-1&&(t.reasons=t.reasons.filter((e=>"obstructed"!==e)))),"audio"!==r.creativeType||e.internallyGenerated){var s=g||e.treatAsCached;s&&(r.cachedGeometryEventsReceived||(r.cachedFirstGeometricIndex=r.cachedEvents.length),r.cachedGeometryEventsReceived=!0,r.cachedEvents.push(e));var a=!!(t.measuringElement&&t.containerGeometry&&t.onScreenContainerGeometry),c=r.cachedStartEventIndex;if(!s&&r.unrecoveredPlayTime&&c>-1&&t.percentageInView>=50&&"audio"!==r.creativeType){var l=We.now()-r.cachedEvents[c].timestamp,E=h.getAggregator().request(U.SCREEN_EVENTS);E&&E.setRecoveredTimeInSlTimes&&E.setRecoveredTimeInSlTimes(l)}if(r.geometryChangeEvents.length<10&&(r.geometryChangeEvents.push(e.timestamp-d.measurementConfig.birthdate+"."+t.percentageInView),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:r.geometryChangeEvents.join("_")},x.GEOMETRY_EVENTS_RECEIVED)),r.delayingViewabilityEvents)i=e,o||(o=!0,f());else{var I=[];t.onScreenGeometry&&t.onScreenGeometry.obstructions&&t.onScreenGeometry.obstructions.length>0&&(!a||t.onScreenContainerGeometry.obstructions&&0!==t.onScreenContainerGeometry.obstructions.length||(t.onScreenContainerGeometry.obstructions=t.onScreenGeometry.obstructions),t.reasons&&t.reasons.indexOf("obstructed")>-1&&t.percentageInView<100&&(t.onScreenGeometry.obstructions=t.onScreenGeometry.obstructions.slice(0,4),m(t.onScreenGeometry.obstructions).each((function(e,t){I.push(Math.round(t.x)+"."+Math.round(t.y)+"."+Math.round(t.width)+"."+Math.round(t.height))}))));var A=Ae.isOmidForWeb()?Oe.calcWinDims():{width:0,height:0},_=new ve(e.data.viewport||A),D=new ve(a?t.containerGeometry:t.geometry||{x:0,y:0,width:0,height:0}),S=new ve(a?t.onScreenContainerGeometry:t.onScreenGeometry||{x:0,y:0,width:0,height:0}),v={viewport:_.getRoundedGeometry(),originalAdContainer:D.getRoundedGeometry(),computedAdContainer:S.getRoundedGeometry(),percentageInView:t.percentageInView,detectionMethod:T.DETECTION_METHODS.OMID,outOfViewReason:p(t.reasons),omidObstructions:I.join("_")};void 0===r.geometryArrived&&u.checkForViewAttachmentBasedOnAdSessionType(r,e.data.adView)&&(r.geometryArrived=!0,h.getAggregator().trigger("omidrendgeoupdate")),n.trigger(T.CONTAINER_GEOMETRY_MEASUREMENT_CHANGED,v)}}}},p=function(e){var t={inactive:T.OUT_OF_VIEW_REASONS.FOCUS,viewport:T.OUT_OF_VIEW_REASONS.GEOM,clipped:T.OUT_OF_VIEW_REASONS.GEOM,obstructed:T.OUT_OF_VIEW_REASONS.OBSTRUCTION,backgrounded:T.OUT_OF_VIEW_REASONS.FOCUS,notFound:T.OUT_OF_VIEW_REASONS.HIDDEN,hidden:T.OUT_OF_VIEW_REASONS.HIDDEN,noWindowFocus:T.OUT_OF_VIEW_REASONS.WINDOW},n=[];return e?(m(e).each((function(e,r){var i=t[r];i&&n.indexOf(n)<0&&n.push(i)})),n.join(".")):""};r.processCachedEvents=function(){if(!l){var e="video"===r.mediaType,t=r.supports&&r.supports.join().indexOf("clid")>-1,n="limited"===r.accessMode,i="full"===r.accessMode,o=n||i&&t,s=!e||r.cachedVideoEventsChecked,a=r.cachedGeometryEventsChecked;if(o&&a&&s&&r.cachedEvents.length>0){var c="o",u="o",d=0,g=0,f=0,E=!e,p=!1,m=We.now();if(e){var I=r.cachedStartEventIndex,T=r.cachedFirstGeometricIndex,A=r.cachedEvents[T],_=r.cachedEvents[I];A&&_&&A.timestamp>_.timestamp&&(A.timestamp=_.timestamp)}for(var D=0;D<r.cachedEvents.length;D++){for(var S=m,v=-1,O=0;O<r.cachedEvents.length;O++)!r.cachedEvents[O].alreadyOrdered&&r.cachedEvents[O].timestamp<S&&(S=r.cachedEvents[O].timestamp,v=O);if(-1!==v){var R=r.cachedEvents[v];R.alreadyOrdered=!0,"geometryChange"===R.type&&R.data&&R.data.adView?(d=R.data.adView.percentageInView,p=!0):E="start|firstQuartile|midpoint|thirdQuartile|resume|bufferFinish".indexOf(R.type)>-1,u=d&&d>=50&&E?"i":"o","o"===c&&"i"===u?g=R.timestamp:"i"===c&&"o"===u?f+=R.timestamp-g:"i"===c&&"i"===u&&(f+=R.timestamp-g,g=R.timestamp),c=u}}if(l=!0,"i"===c?f+=m-g:e&&!p&&r.cachedStartEventIndex>-1&&(r.unrecoveredPlayTime=!0),f>0){"audio"===r.creativeType&&(f=Math.min(f,m-A.timestamp)),r.recoveredTime=f;var N=h.getAggregator().request(U.SCREEN_EVENTS);N&&N.setRecoveredTimeInSlTimes&&(N.setRecoveredTimeInSlTimes(f),r.recoveredTime=-1)}}}};return{start:function(){g=!0,void 0!==r.impressionViewabilityMeasurement&&E(r.impressionViewabilityMeasurement),c.addEventListener("geometryChange",E),g=!1,r.cachedGeometryEventsChecked=!0,r.cachedGeometryEventsReceived&&r.processCachedEvents(),h.getAggregator().on(L.INTERNALLY_GENERATED_GEOMETRY_EVENT,E)},addAdContainerGeometryMeasurementChangedListener:function(e){n.on(T.CONTAINER_GEOMETRY_MEASUREMENT_CHANGED,e)},translateOmidOutOfViewReasons:p}},an=function(){"use strict";var e=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT);return{accepts:function(){return e&&(e.isNative||e.isLimitedSandbox)}}},cn=function(t,n){"use strict";var r=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),i=null,o=!1,s=We.getWindow(),a=s&&s.omid3p,c=!!(a&&m.isFunction(a.registerSessionObserver)&&m.isFunction(a.addEventListener))?a:t,u=new _r,d=function(){var t=We.getDoc().getElementById("iasbi"+e.asid);t&&t.hasAttribute("CreativeLoaded")?(r.delayingViewabilityEvents=!1,o=!1,i&&(g(i),i=null)):We.setTimeout(d,50)},g=function(e){if(e&&"geometryChange"===e.type&&e.data&&e.data.adView&&("audio"!==r.creativeType||e.internallyGenerated)){var t=e.data.adView;if(t.onScreenGeometry&&t.onScreenGeometry.obstructions&&t.onScreenGeometry.obstructions.length>0&&(t.onScreenGeometry.obstructions=tn(t.geometry,t.onScreenGeometry.obstructions),0===t.onScreenGeometry.obstructions.length&&t.reasons.indexOf("obstructed")>-1&&(t.reasons=t.reasons.filter((e=>"obstructed"!==e)))),t.onScreenContainerGeometry&&t.onScreenContainerGeometry.obstructions&&t.onScreenContainerGeometry.obstructions.length>0&&(t.onScreenContainerGeometry.obstructions=tn(t.geometry,t.onScreenContainerGeometry.obstructions),0===t.onScreenContainerGeometry.obstructions.length&&t.reasons.indexOf("obstructed")>-1&&(t.reasons=t.reasons.filter((e=>"obstructed"!==e)))),r.delayingViewabilityEvents)i=e,o||(o=!0,d());else{var s=e.data.adView.geometry,a=e.data.adView.containerGeometry,c=!!s,g=e.data.adView.measuringElement&&!!a,l=new ve({x:c&&g?s.x-a.x:0,y:c&&g?s.y-a.y:0,width:c?s.width:0,height:c?s.height:0}).getRoundedGeometry();l,void 0===r.geometryArrived&&u.checkForViewAttachmentBasedOnAdSessionType(r,e.data.adView)&&(r.geometryArrived=!0,h.getAggregator().trigger("omidrendgeoupdate")),n.trigger(T.OMID_GEOMETRY_MEASUREMENT_CHANGED,{adGeometry:l,adFound:c})}}};return{start:function(){void 0!==r.impressionViewabilityMeasurement&&g(r.impressionViewabilityMeasurement),c.addEventListener("geometryChange",g),h.getAggregator().on(L.INTERNALLY_GENERATED_GEOMETRY_EVENT,g)},addAdGeometryMeasurementChangedListener:function(e){n.on(T.OMID_GEOMETRY_MEASUREMENT_CHANGED,e)}}},un=function(){"use strict";var e=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT);return{accepts:function(){return e&&!e.isNative}}},dn=function(e,t,n){"use strict";var r;var i=function(){var t,i,o,s=e.find(),a=!1;m.isDef(s)&&null!==s?(o=!0,t={x:(i=s.getBoundingClientRect()).x||i.left,y:i.y||i.top,width:i.width,height:i.height},s.hasOwnProperty("adWasClipped")&&(t.adWasClipped=!0)):(r&&(a=!0,t={x:0,y:0,width:0,height:0}),o=!1),(o&&function(e){return!m.isDef(r)||!1!==m(e).compareTo(r)}(t)||a)&&(r=t,n.trigger(T.OMID_GEOMETRY_MEASUREMENT_CHANGED,{adGeometry:t,adFound:o}))};return{start:function(){i(),t.setInterval(i,50)},addAdGeometryMeasurementChangedListener:function(e){n.on(T.OMID_GEOMETRY_MEASUREMENT_CHANGED,e)}}},gn=function(e,t,n,r,i){"use strict";var o,s,a,c,u,d="videoGeometryMeasurementChanged",g=!1,l=!1,f=function(){if(!(m.isUndef(s)||m.isUndef(a)||m.isUndef(c))){u=!0;var e=i.calculateGeometricMeasurement(s,a),t=g&&l,n=g&&e.percentageInView>=50,f={windowDimensions:e.windowDimensions,containerDimensions:e.containerDimensions,adDimensions:e.adDimensions,percentageInView:e.percentageInView,detectionMethod:e.detectionMethod,isMeasurable:!0,isObstructed:e.isObstructed,sliceStatus:e.sliceStatus,isVideoPlaying:g,isVideoPlayingInFullscreen:t,isSoundOn:!0},E=e.omidObstructions;m.isDef(E)&&""!==E&&(f.omidObstructions=E),t&&(f.percentageInView=100),t||n?f.viewState=T.IN_VIEW:(f.viewState=T.OUT_OF_VIEW,f.outOfViewReason=e.outOfViewReason||T.OUT_OF_VIEW_REASONS.VIDEO),o=f,r.trigger(d,o)}},E=function(e){s=e,f()},p=function(e){a=e,f()},I=function(e){c=e;var t=e.eventType;"AdEnteredFullscreen"===t?l=!0:"AdExitedFullscreen"===t?l=!1:-1!=="AdStarted|AdVideoStart|AdPlaying".indexOf(t)?g=!0:-1!=="AdSkipped|AdUserClose|AdPaused|AdVideoComplete|AdStopped|AdError".indexOf(t)&&(g=!1),f()};return{start:function(){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:T.MEDIA_TYPE.VIDEO_CODE},T.MEDIA_TYPE_CODE,{type:T.IMPRESSION_EVENT}),e.addAdContainerGeometryMeasurementChangedListener(E),e.start(),t.addAdGeometryMeasurementChangedListener(p),t.start(),n.addVideoPlaybackEventListener(I),n.start()},getStrategyName:function(){return T.MEASUREMENT_STRATEGY.VIDEO},addMeasurementChangedListener:function(e){r.on(d,e)},isMeasurable:function(){return u}}},ln=function(e,t,n){"use strict";var r;var i=function(){var t,i,o,s=e.find(),a=!1;m.isDef(s)?(o=!0,t={x:(i=s.getBoundingClientRect()).left,y:i.top,width:i.width,height:i.height},s.hasOwnProperty("adWasClipped")&&(t.adWasClipped=!0)):(r&&(a=!0,t={x:0,y:0,width:0,height:0}),o=!1),(o&&function(e){return!m.isDef(r)||!1!==m(e).compareTo(r)}(t)||a)&&(r=t,n.trigger(T.OMID_GEOMETRY_MEASUREMENT_CHANGED,{adGeometry:t,adFound:o}))};return{start:function(){i(),t.setInterval(i,50)},addAdGeometryMeasurementChangedListener:function(e){n.on(T.OMID_GEOMETRY_MEASUREMENT_CHANGED,e)}}},fn=function(e,t,n){"use strict";return{accepts:function(){var r=m(e.mraid).isObj();return n&&(r||t)},isImmediate:function(){return!0},supportsAdContainerGeometry:function(){return!1},start:function(){}}},En=function(e,t){"use strict";var n="mraidScreenLocationChanged",r="mraid.js",i=!1,o=function(){var r,i,o;try{r=e.mraid.isViewable()?100:0;var s={x:0,y:0,width:0,height:0};o=100===r?[!0]:[!1],i={windowDimensions:s,adDimensions:s,containerDimensions:s,shouldDelegateToDomBasedViewability:!1,isMeasurable:!0,isObstructed:!1,isHidden:!1,percentageInView:r,detectionMethod:T.DETECTION_METHODS.MRAID,sliceStatus:o},t.trigger(n,i)}catch(e){}},s=function(){var t=e.mraid;!0,o(),t.addEventListener("viewableChange",o)},a=function(){var t=e.mraid;(function(){var t=e.mraid;return m(t).isObj()&&m.isFunction(t.isViewable)})()&&(i=!0,"loading"===t.getState()?t.addEventListener("ready",(function(){s()})):s())},c=function(){i||a()};return{start:function(){var t;t=!0,(m.isDef(e.mraid)||Oe.containsScriptTagWithSrc(r))&&(t=!1),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:m.stringifyTriState(t)},x.MRAID_INJECTION_STATUS,{type:T.IMPRESSION_EVENT}),t?h.getAggregator().trigger(L.EXEC,r,c):a()},addScreenLocationChangedListener:function(e){t.on(n,e)}}},pn=function(e,t,n){"use strict";var r={};return n&&m(n).map((function(n,i){var o,s;r[n]=(o=i,s=m.noop,t.bootstrapOn("useViewabilityNotification")&&(s=function(){e.skipAsFraudulent()||h.getAggregator().trigger(L.NOTIFY,o)}),s)})),{getCallbacks:function(){return r}}},mn=function(){"use strict";var t=new Dn({tiv:[1e4]}),n=m([T.IN_VIEW,T.PARTIAL_VIEW_PLUS]);return{timeInViewThresholds:t,type:T.DT_CODES.FULLY_INVIEW,rts:{},isInView:function(e){var t=We.max(e.fullPercentInView||0,e.percentInView);return n.contains(e.viewState)&&100===t},applies:function(t,n){return t.on("abcAudit")&&925955==e.anId&&n.usesIASFullyInViewCustomMetric()},minUnit:1e3,shouldIncludeSound:!1}},In=function(t,n){"use strict";var r,i,o,s=t.on("everySecond"),a=n.isVideo(),c=[1e3,2e3,3e3,4e3,5e3,6e3,7e3,8e3,9e3,1e4,11e3,12e3,13e3,14e3,15e3],u=[1e3,5e3,15e3,3e4,45e3,6e4,9e4],d=[2e3,5e3,15e3],g=function(e,t){var n=t?"viewStateIgnoringRender":"viewState";return-1!==(T.IN_VIEW+"|"+T.PARTIAL_VIEW_PLUS).indexOf(e[n])};return s?(r=new Dn({tiv:c}),i=c[0]):a?(r=new Dn({tiv:d}),i=d[0]):(r=new Dn({tiv:u}),i=u[0]),(o={5e3:e._onInViewMRC5,15e3:e._onInViewMRC15})[i]=e._onInViewMRC,{timeInViewThresholds:r,type:T.DT_CODES.PING,rts:o,isInView:g,isInViewIgnoringRender:function(e){return g(e,!0)},applies:!0,minUnit:1e3,shouldIncludeSound:!1,sendOtherwiseInViewSignal:!0}},hn=function(e,t){"use strict";var n,r=e.on("everySecond"),i=t.isVideo(),o=t.usesIASFullyInViewCustomMetric(),s=function(e){var t=We.max(e.fullPercentInView||0,e.percentInView);return-1!==(T.IN_VIEW+"|"+T.PARTIAL_VIEW_PLUS).indexOf(e.viewState)&&100===t};return n=new Dn(r?{tiv:[1e3,2e3,3e3,4e3,5e3,6e3,7e3,8e3,9e3,1e4,11e3,12e3,13e3,14e3,15e3]}:i?{tiv:[2e3,5e3,15e3]}:{tiv:[1e3,5e3,15e3]}),h.getAggregator().provide("isFullyInViewProvider",{isFullyInView:s}),{timeInViewThresholds:n,type:T.DT_CODES.FULLY_INVIEW,isInView:s,applies:function(){return o},minUnit:1e3,shouldIncludeSound:!1}},Tn=function(t,n){"use strict";return{timeInViewThresholds:new Dn({tiv:[0]}),type:T.DT_CODES.FULLY_INVIEW,rts:{0:e._onInViewFull},isInView:function(e){var t=We.max(e.fullPercentInView||0,e.percentInView);return-1!==(T.IN_VIEW+"|"+T.PARTIAL_VIEW_PLUS).indexOf(e.viewState)&&100===t},applies:function(){return n.usesGroupMCustomMetric()},minUnit:1e3,shouldIncludeSound:!1}},An=function(t,n){"use strict";var r,i,o,s,a,c,u=We.getMaxNumber(),d=n.isVideo(),g=t.id,l=t.sound&&"on"===t.sound,f=!(t.soundExcl&&"groupm_native"===t.soundExcl&&e.groupm_native_publisher)&&l,E=function(e,n){if(!e.adDimensions)return!1;var r,i,o,s,a=n?"percentInViewIgnoringRender":"percentInView",c=e.adDimensions.area(),g=1===e.tabHidden,l=We.max(e.fullPercentInView||0,e[a]);return r=m(t.thresholds).findFirst((function(e,t){if(i=t.lb||0,o=t.ub||u,c>=i&&c<=o)return!0})),s=!g&&l>=r.piv,function(e){return e.method==T.DETECTION_METHODS.AD_PLACEHOLDER}(e)&&function(e){return 0===e.tiv}(t)&&(s=!1),d&&(s=s&&e.isVideoPlaying,f&&(s=s&&e.isSoundOn)),s};return r=new Dn(t),i=t.qiv,o={},m.isDef(e.rts)&&m.isDef(e.rts[g])&&(a=r&&m.isFunction(r.getTimeThresholds)&&r.getTimeThresholds()[0],c=m.isDef(a)?m.isFunction(a.getTimeInViewForRts)&&a.getTimeInViewForRts():T.RTS_KEY_FOR_VQ,o[c]=e.rts[g]),s=t.minunit?1e3*t.minunit:1e3,{timeInViewThresholds:r,qivThreshold:i,type:T.DT_CODES.CUSTOM,rts:o,isInView:E,isInViewIgnoringRender:function(e){return E(e,!0)},metricId:g,minUnit:s,thresholdType:t.thresholdType,shouldIncludeSound:f,sendOtherwiseInViewSignal:!0}},_n=function(e,t,n){"use strict";var r="groupmCM",i=t.isVideo()?"video":"display",o=t.isMobileApp()?"app":"web",s=t.isDeviceTypeGroupMobile()?"mobile":"desktop",a=m(e.customViewability).isArray()&&e.customViewability.length>0,c=n.on("customMetric"),u=n.on(r),d=function(e,t){var n,a,c,d;return n=m(t.mediaTypes).contains(i),a=m(t.distributionChannels).contains(o),c=!m.isDef(t.deviceGroups)||m(t.deviceGroups).contains(s),d=!Xe.contains(t.id,"fiv"),Xe.contains(t.id,r)&&(d=u),d&&n&&a&&c};return{resolve:function(){var t,n=[];return c&&a&&(t=m(e.customViewability).filter(d),m(t).each((function(e,t){n.push(t)}))),n}}},Dn=function(e){"use strict";var t=[];if(m(e.tiv).isArray())m(e.tiv).each((function(e,n){t.push(new vn(n))}));else if("string"==typeof e.tiv){var n=e.tiv.split("|"),r=new Sn;t.push(new On(r,parseInt(n[1].replace("%")))),t.push(new vn(1e3*parseInt(n[0])))}else m.isDef(e.tiv)&&t.push(new vn(1e3*e.tiv));return{getTimeThresholds:function(){return t}}},Sn=function(){"use strict";var e=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT).adDuration||-1,t=function(t){if(!n()){var r=m.isDef(t.ad_duration)?t.ad_duration:t.adRemainingTime;(function(e){return void 0!==e&&e>0})(r)&&(e=Math.ceil(r))}},n=function(){return e>0};return h.getAggregator().on({omidAdDuration:t,adVideoStart:t,adDurationChange:t}),{getAdDuration:function(){return e},isVideoDurationResolved:n}},vn=function(e){"use strict";var t,n=0;return e>0&&(n=e/1e3),t=1e3*n,{getTimeInViewInSeconds:function(){return n},getTimeInViewForRts:function(){return t}}},On=function(e,t){"use strict";var n=0,r=!1,i=function(e){n=0,t>0&&e>0&&(n=We.ceil(e*(t/100)))};return i(15),{getTimeInViewInSeconds:function(){return!r&&e.isVideoDurationResolved()&&(r=!0,i(e.getAdDuration())),n},getTimeInViewForRts:function(){return 0}}},Rn=function(e,t,n,r){"use strict";var i=r?"isInViewIgnoringRender":"isInView",o=function(r){e[i](r)?(t.mark(),n.doEligibleJobs(t.getTotalTime())):t.stop()};return{start:function(){e.addMeasurementChangedListener(o)}}},Nn=function(e,t,n,r){"use strict";var i,o,s,a,c,u,d=function(e,t){return!t&&e},g=function(e,t,n,r){return!!r||!t&&(e||r)&&n},l=function(e){var d,l=0,E=1===e.tabHidden,p=e.isVideoPlaying,I=e.isSoundOn,h=e.isVideoPlayingInFullscreen;m(e.sliceStatus).each((function(e,t){s(t,E,p,h)?i[e].mark():i[e].stop(),a[e]=i[e].getTotalTime()})),f("slcVt",a),r&&(m(e.sliceStatus).each((function(e,t){!function(e,t,n,r,i){return g(e,t,n,r)&&i}(t,E,p,h,I)?o[e].stop():o[e].mark(),c[e]=o[e].getTotalTime()})),f("slcVtVol",c)),u=r&&t&&t.shouldIncludeSound?c:a,d=m(u).findFirst((function(e,t){return l=Math.max(l,t),t<=0})),m.isUndef(d)&&n.doEligibleJobs(l)},f=function(e,t){var n={};n[e]=t,h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:n},{minDt:!1})},E=function(e){m.isUndef(e.sliceStatus)||(i||function(e){!i&&e.sliceStatus&&(i=[],o=[],a=[],c=[],m(e.sliceStatus).each((function(e){i.push(new oe(1)),a.push(0),r&&(o.push(new oe(1)),c.push(0))})))}(e),l(e))};return{start:function(){s=r?g:d,e.addMeasurementChangedListener(E)}}},yn=function(e,t,n){"use strict";return{isInView:e.isInView,isInViewIgnoringRender:e.isInViewIgnoringRender,addMeasurementChangedListener:function(e){t.addMeasurementChangedListener(e,n)}}},Cn=function(e,t,n,r,i,o,s,a,c,u){"use strict";var d="measurementChanged",g=!1,l=Ae.isVideo(),f=o.request(U.MOBILE_APP),E=G().applies(n,i),p=n.browserIs(T.BROWSERS.GECKO)||E,m=Ae.xDomainIframe&&!p,I=new re(10),h=function(){i.on("viewabilityready")&&!g&&(r.send(T.DT_CODES.VIEWABILITY_READY),o.trigger(L.MEASURABLE),g=!0)};o.on(L.DELAYED_VIEWABILITY_READY,(function(){A(),h()})),o.on(L.DELAYED_VIEWABILITY_READY_CALL_ONLY,h);var A=function(n){n=n||!1;try{var r,i;I.start(),t.hasMeasurementStrategy()?i=(f.isMobileAppEnvironment()||Ae.isOmidNative())&&t.supportsAdContainerGeometry()?t.getScreenLocationInfo({},n):t.getScreenLocationInfo(a.collect(),n):(i=a.collect(),f.isMobileAppEnvironment()?(i.viewState=T.NA,i.method=T.NA,i.percentInView=T.NA):m&&(i.viewState=T.NA,i.percentInView=T.PIV_NA),l&&u.setVideoSpecificScreenEventFields(i)),r=c.registerLocation(i),n||e.trigger(d,i),I.stop();var g=We.round(I.getTime()/I.getCount());return s.addItem({output:g},"lt",{type:T.DT_CODES.UNLOAD}),r}catch(e){o.trigger(L.ERROR,T.ERROR_CODES.CHECK_SCREEN_LOC)}};return{checkScreenLoc:A,stringifyPingTimes:function(){return i.on("everySecond")?"1-2-3-4-5-6-7-8-9-10-11-12-13-14-15":l?"2-5-15":"1-5-15"},isImmediatelyMeasurable:function(){var e=Ae.xDomainIframe,r=e&&n.browserIs(T.BROWSERS.WEBKIT),i=e&&n.browserIs(T.BROWSERS.MSEDGE),o=!r&&!i&&!(e&&E);return f.isMobileAppEnvironment()?t.isMeasurable():o},requiresDelayedViewabilityEvent:function(){f.isMobileAppEnvironment()&&t.hasMeasurementStrategy()&&t.requiresDelayedViewabilityEvent()},addMeasurementChangedListener:function(t){e.on(d,t)}}},Mn={name:"viewabilityLoopLifecycle",dependencies:[U.VIEWABILITY,U.FEATURES,U.CONTEXT,U.BROWSER],creator:function(n,r,i,o){"use strict";var s,a=wn(i),c=[new Pn,new bn(a)],u=function(e){"sessionFinish"===e.type&&(h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:Ae.getTagTime()},x.OMID_SESSION_FINISH),h.getAggregator().trigger(L.AD_SESSION_COMPLETE))},d=function(){var e,t=h.getAggregator().request(U.MOBILE_APP).isMobileAppEnvironment();h.getAggregator().request(U.IDS).impressionIsIdentifiable()&&(s=function(e,t){var n,r=t,i=function(t){n||(t&&e(),n=We.setInterval(e,r))},o=function(t){n&&(t&&e(),We.clearInterval(n),n=null)};return{start:i,stop:o,updateFrequency:function(e,t){r=e,n&&(o(),i(t))}}}(n.checkScreenLoc,a.getPollingFrequency()),(e=m(c).findFirst((function(e,t){return t.applies(o,r,i)?t:void 0})))?e.start(s):s.start(!0),Ae.isOmid()?h.getAggregator().request(U.OMID_VERIFICATION_CLIENT).registerSessionObserver(u,"IAS"):g(t?"MOBILE_APP_TEST_EVENT_AD_SESSION_COMPLETE":"beforeunload"))},g=function(e){_e.addEvent(t,e,(function(){h.getAggregator().trigger(L.AD_SESSION_COMPLETE)}),!1)},l=function(){i.isVideo()&&!i.isOmid()&&f(),h.getAggregator().trigger(L.UNLOAD),s&&s.stop(),h.getAggregator().trigger(L.END_AD_SESSION),h.getAggregator().trigger(L.STOP_AD_TALK)},f=function(){var t=new De(T.DT_CODES.VIDEO_EVENTS);h.getAggregator().trigger(L.SEND_DT,t.callType,t.enumerator,(function(){var t={id:e.videoId,msg:"unloadComplete",messageType:"misc"};We.getWindow().postMessage(JSON.stringify(t),"*")}))};h.getAggregator().once(L.START_VIEWABILITY_LOOP,d),h.getAggregator().once(L.AD_SESSION_COMPLETE,l)},settings:{tier:T.TIERS.VIEWABILITY}},wn=function(e){"use strict";return{getPollingFrequency:function(){return e.isVideo()?200:100},getOptimizedPollingFrequency:function(){return 1e3}}},bn=function(e){"use strict";var t,n,r,i,o,s=!0,a=function(c){if(r&&!o&&c<1)return o=!0,void We.setTimeout((function(){a(c)}),1e3);i=c<1,!n&&i?(n=!0,t.updateFrequency(e.getOptimizedPollingFrequency(),s)):n&&!i&&(n=!1,t.updateFrequency(e.getPollingFrequency(),s))},c=function(e){a(e.percentInView)};return{applies:function(e,t,n){var i=t.on("viewabilityOptimization");return r=n.usesZeroPivCustomMetric(),i},start:function(e){(t=e).start(s),h.getAggregator().on(L.IO_PIV_CHANGE,a),h.getAggregator().on(L.NEW_SCREEN_EVENT,c)}}},Pn=function(){"use strict";var e,t,n,r=!0,i=!1,o=function(s){return n&&!i&&s<1?(i=!0,void We.setTimeout((function(){o(s)}),1e3)):(s<1?(e||t.stop(r),e=!0):e&&(e=!1,t.start(r)),e)},s=function(){t.start(r)};return{applies:function(e,t,r){n=r.usesZeroPivCustomMetric();var i=G();return t.on("viewabilityOptimization")&&i.applies(e,t,r)&&r.isDeviceTypeGroupMobile()},start:function(e){(t=e).start(r),h.getAggregator().on(L.IO_PIV_CHANGE,o),h.getAggregator().on(L.NODES_ADDED,s)}}},Vn=function(r,i,o,s,a,c){"use strict";var u,d,g,l,f,E,p,I,A,_,D=Oe.getElementsWindow(i),S=(Oe.getElementsDocument(i),h.getAggregator().provide(U.IFRAME_CALCULATOR_HELPER,rr(D)),$n(i,s)),v=T.AD_IDENTIFIER+"-"+e.asid,O=!1,R=ve({}),N=Ae.isDeviceTypeGroupMobile(),y=Ae.usesGroupMCustomMetricMobilePassThru(),C=function(){return u||(u=S.calcDims(i,s,g),e.autotagSizeSet&&e.adWidth>1&&e.adHeight>1&&(u.set("width",e.adWidth),u.set("height",e.adHeight)),M()?w(u):o===T.DETECTION_METHODS.AD_PLACEHOLDER&&u.treatAsPlaceholder()),u},M=function(){return o===T.DETECTION_METHODS.VIDEO&&Ae.embedded},w=function(e){var t=new ve(i).getRounded();try{e.set("width",t.width),e.set("height",t.height)}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.VIDEO_IN_IFRAME_DIMS_CALC)}},b=function(){return!1},P=function(){var e,n=x(),i=S.getClippedDims&&(M()||Ae.isCeltra());return n?d=g.getPiv():m.isUndef(d)&&(e=!N&&(Ae.friendly||m.isDef(t.mozInnerScreenX))&&a.on("offscreen"),I=C(),p=new ve(Oe.calcWinDims()),E=new ve(e?Oe.calcMonDims():{}),A=i?S.getClippedDims():R,d=r.calcPercentInView(I,p,E,A)),d},V=function(){return r.calcInitialViewState(P())},F=function(){return i!==t&&C().isHidden()},x=function(){var e=Ae.xDomainIframe&&O,t=N&&O&&g.isReady();return Ae.isPageOnShadowDomWhitelist()||e||t};return function(){var e=We.getWindow(),t=We.getDoc(),n=i===e,s=t.body,a=h.getAggregator(),c=new G,u=a.request(U.BROWSER),d=a.request(U.FEATURES),E=a.request(U.CONTEXT),p=!Ae.xDomainIframe,m=n&&s?t.body:i;if(_=Ae.friendlyIframe?e.frameElement:m,_e.addEvent(m,"click",(function(e){h.getAggregator().trigger(L.AD_COMPONENT_CLICKED,e)})),_e.addEvent(window,"blur",(function(e){h.getAggregator().trigger(L.BLUR,e)})),_e.addEvent(m,"touchstart",(function(e){h.getAggregator().trigger(L.AD_COMPONENT_TOUCH_START,e)})),_e.addEvent(m,"touchend",(function(e){h.getAggregator().trigger(L.AD_COMPONENT_TOUCH_END,e)})),_e.addEvent(m,"mouseover",(function(e){h.getAggregator().trigger(L.AD_COMPONENT_MOUSED_OVER,e)})),_e.addEvent(m,"mouseout",(function(e){h.getAggregator().trigger(L.AD_COMPONENT_MOUSED_OUT,e)})),c.applies(u,d,E)){if((g=_t(i,p)).start(),O=!0,y&&o!==T.DETECTION_METHODS.AD_PLACEHOLDER){var I=new Er(C().getRounded()),A=new Tr,D=new Ar(g.getObservedNode(),A);l=new mr(I.getSlices(),D)}}else y&&(f=new Ir(r))}(),{mark:function(){Oe.setAttributeOf(_,v,"")},cleanup:function(){Oe.removeAttributeOf(_,v)},isNode:function(e){return i===e},isHidden:F,isObstructed:b,getDims:C,getPercentInView:P,getLocationState:V,getOnPageViewability:function(){return F()?T.OUT_OF_VIEW:V()},getDetectionMethod:function(){return o},getContainerDims:function(){return S.allowsOptimization?u:ve(s)},refresh:function(){u=void 0,d=void 0,E=void 0,p=void 0,I=void 0,A=void 0,c&&function(){var e,r;if(!Ae.isDomless()&&(r=i.parentNode)){for(;i!==t&&r&&r!==n&&!e;)e=r===s,r=r.parentNode;e||(s=i.parentNode)}}()},getAdNode:function(){return i},getSliceStatus:function(){var e;return l&&l.isReadyToMeasure()?e=l.getSliceStatus():Ae.friendly&&f&&m.isDef(I)&&(e=f.getSliceStatus(I,p,E,A)),e}}},Ln=function(e,t){"use strict";var n,r=[],i=m([]),o=function(){return r[0]&&r[0].getDetectionMethod()===T.DETECTION_METHODS.AD_PLACEHOLDER},s=function(s,a,c,u){var d,g=o()||0===r.length,l=Vn(e,s,a,c,t,u);o()&&(d=r.shift(),i=m(r),d.cleanup(),n=void 0),r.push(l),i=m(r),g&&l.mark(),g&&a!==T.DETECTION_METHODS.AD_PLACEHOLDER&&h.getAggregator().trigger(L.PRIMARY_AD_FOUND,l)},a=function(){if(n)return n;var e,t=!1,r=0,o=0;return i.each((function(n,i){var s,a=i.getDims();a.hasValidDims()&&(e=i.getPercentInView(),t=e!==T.NA,s=a.area(),r+=s,o+=e/100*s)})),n={totalArea:r,totalInView:o,hasMeasurement:t}},c=function(e){var t=h.getAggregator().request(U.AD_RENDER_STATUS);return!e&&!t},u=function(e){var t,n=a();return t=n.hasMeasurement?We.round(n.totalInView/n.totalArea*100):T.PIV_NA,(isNaN(t)||c(e))&&(t=0),t},d=function(n){var r=t.bootstrapOn(x.MOB_OR_TAB),i=a().totalArea>=T.MRC_LARGE_AD_SIZE&&t.on("largeAd")&&!r&&!Ae.isVideo();return e.calcInitialViewState(u(n),i)},g=function(e){var t=-1;return i.each((function(n,r){r.isNode(e)&&(t=n)})),t},l=function(e){return function(){return r[0]&&r[0][e]()}};return h.getAggregator().on(L.AD_COMPONENT_ADDED,(function(e){m(e).each((function(e,t){-1===g(t)&&s(t,T.DETECTION_METHODS.MUTATION)}))})),h.getAggregator().on(L.AD_COMPONENT_REMOVED,(function(e){m(e).each((function(e,t){var n=g(t);n>-1&&r.splice(n,1)}))})),{getDims:l("getDims"),isObstructed:l("isObstructed"),getDetectionMethod:l("getDetectionMethod"),getContainerDims:l("getContainerDims"),getViewState:d,getViewStateIgnoringRender:function(){return d(!0)},getPercentInView:u,getPercentInViewIgnoringRender:function(){return u(!0)},isHidden:l("isHidden"),isUsingPlaceholder:o,hasAd:function(){return!!r.length},refresh:function(){n=void 0,i.each((function(e,t){t.refresh()}))},addAdComponent:s,clearCollection:function(){i.each((function(e,t){t.cleanup()})),r=[],i=m([]),n=void 0},getOutOfViewReasons:function(e){var t,i=[],o=r[0],s=T.OUT_OF_VIEW_REASONS;return o&&(t=n||d(),c(e)?i.push(s.RENDER):t!==T.OUT_OF_VIEW&&t!==T.PARTIAL_VIEW_MINUS||i.push(s.GEOM),o.isHidden()&&i.push(s.HIDDEN),o.isObstructed()&&i.push(s.OBSTRUCTION)),i},getComponentCount:function(){return r.length},getComponents:function(){return r},getSliceStatus:l("getSliceStatus")}},Fn=function(){"use strict";var e,t,n,r=function(e){e?e&&n&&(We.execAtEndOfThread((function(){h.getAggregator().trigger(L.DELAYED_VIEWABILITY_READY_CALL_ONLY)})),n=!1):n=!0};return{detectionMethod:function(){return t&&t.detectionMethod},isApplicable:function(e){return e.isBustedIframe()},find:function(){t=t||Hn();var n=Oe.crossQuerySelector(Hn().getCssSelector(),!0);return e=n?n.parentNode:e,r(n),n},getAdContainer:function(){return e},allowForAdContainerChange:!0}},Un=function(t,n){"use strict";var r,i=t||e.contextNode.parentNode,o=Oe.findChildWithLargestContent(i,n);return Oe.getNodeArea(o)>1&&!o[T.IAS_DETECTOR]&&(r=o),r},xn=function(){"use strict";var e=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT);return{usePlaceholder:!0,detectionMethod:T.DETECTION_METHODS.OMID,isApplicable:function(){return Ae.isOmidForWeb()&&!Ae.isOmidNative()},find:function(){return e.element||e.queuedOutputItems.push({code:"oea",value:!0}),e.element},getAdContainer:function(){return e.element&&e.element.parentNode},allowForAdContainerChange:!0}},Wn=function(){"use strict";return{detectionMethod:T.DETECTION_METHODS.IFRAME,find:function(){return t},isApplicable:function(){return Ae.embedded},getAdContainer:function(){return e.contextNode.parentNode},allowForAdContainerChange:!0}},Bn=function(){"use strict";var e,t=We.getDoc().scripts,n=function(){return e||(e=m(t).findFirst((function(e,t){return Xe.contains(t.src,"servedby.flashtalking")}))),e};return{detectionMethod:T.DETECTION_METHODS.BUSTED_IFRAME_FLASHTALKING,isApplicable:function(e,t){return t.on("bustediframe")&&e.embedded&&void 0!==n()},getCssSelector:function(){var t,r=function(){var t,r=e||n();return r&&r.src&&(t=r.src.match(/;(\d+);/)[1]),t}(),i="#ftdiv"+r,o="#ftframe"+r;try{t=m([i,o]).findFirst((function(e,t){return Oe.crossQuerySelector(t,true)}))}catch(e){}return t}}},Gn=function(){"use strict";var e="_tpi";return{isApplicable:function(t,n){var r;try{r=Oe.getFrameId()}catch(e){}return n.on("yieldmo")&&r&&Xe.contains(r,e)&&Oe.crossQuerySelector("[data-href*='ads.yieldmo.com']",!0)},getCssSelector:function(){return"[id='"+Oe.getFrameId().replace(e,"")+"']"},detectionMethod:T.DETECTION_METHODS.BUSTED_IFRAME_YIELDMO}},kn=function(){"use strict";var e,t,n=We.getDoc(),r=function(){var t,r,i="ebDiv";return e||(r=(t=Oe.querySelector(n,"div[id*='ebDiv']"))&&t.id,e=r&&r.split(i)[1]),e},i=function(){var e=Oe.crossQuerySelector("iframe[id*='ebAd'][id$='"+r()+"']",!0);return e&&e.id},o=function(){var e,n;return t||(e=i()?i():(n=Oe.crossQuerySelector("iframe[id*='ebBannerIFrame_'][id$='"+r()+"']",!0))&&n.id,t=e&&"#"+e),t};return{detectionMethod:T.DETECTION_METHODS.BUSTED_IFRAME_SIZMEK,isApplicable:function(e,t){var n,i,s=We.getWindow(),a=e.friendlyIframe&&We.getWindow().frameElement,c=a&&ve(a).isOneByOne(),u=(n=["bs.serving-sys.com/BurstingPipe/adServer","secure-ds.serving-sys.com/BurstingCachedScripts"],i=We.getDoc().scripts,m(i).findFirst((function(e,t){return m(n).findFirst((function(e,n){return Xe.contains(t.src,n)}))}))),d=s.EBG&&s.EBG.ads&&!m(s.EBG.ads).isEmpty();return t.on("sizmek")&&u&&d&&c&&r()&&o()},getCssSelector:o}},Hn=function(){"use strict";var e,t=h.getAggregator().request(U.FEATURES);return e||(e=[kn(),Gn(),Bn()]),m(e).findFirst((function(e,n){return n.isApplicable(Ae,t)}))},Yn=function(){"use strict";var e,t=function(){We.execAtEndOfThread((function(){h.getAggregator().trigger(L.DELAYED_VIEWABILITY_READY_CALL_ONLY)}))};return{usePlaceholder:!1,detectionMethod:T.DETECTION_METHODS.VENDOR_CELTRA,isApplicable:function(e,t){return t.on("celtra")&&e.isCeltra()},find:function(){var n,r=jn().find();return r&&r.celtra&&r.celtra.loaded&&(n=r.celtra.viewabilityObservee,e=Oe.getElementsWindow(n).frameElement||n.parentNode,t()),n},getAdContainer:function(){return e},allowForAdContainerChange:!1}},jn=function(){"use strict";var t,n="celtra-ad-v3",r="celtra-ad-v4",i=function(){var i,o=e.contextNode.parentNode;return o&&(Xe.contains(o.className,n)||Xe.contains(o.className,r))?t=o:(i=o&&(Oe.querySelector(o,".celtra-ad-v3")||Oe.querySelector(o,".celtra-ad-v4")))&&(t=i),t};return{find:i,isApplicable:function(){return void 0!==i()}}},qn=function(){"use strict";var t=h.getAggregator().request(U.MOBILE_APP);return{usePlaceholder:!0,detectionMethod:T.DETECTION_METHODS.AD_HUNT,isApplicable:t.isMobileAppEnvironment,find:function(){return(e=Oe.findChildWithLargestContent(We.getDoc().body))&&e.hasValidSizeForMobileApp&&!e[T.IAS_DETECTOR]?e:void 0;var e},getAdContainer:function(){return e.contextNode.parentNode},allowForAdContainerChange:!0}};const Kn=new class{constructor(){this.cachedIsFoundOnPage=!1}getDocument(){let e;try{e=We.getDoc()}catch(e){}return e}get isIE11(){const e=this.getDocument();return e&&e.documentMode}hasBrowserSupport(){let e=!1;const t=this.getDocument(),n=!Ae.isDomless(),r=!(this.isIE11||!t||"function"!=typeof t.body.attachShadow);return n&&r&&(e=!0),e}isFoundOnPage(e){const t=We.getDoc(),n=e||t.body;let r=!1;if(this.cachedIsFoundOnPage)r=!0;else if(this.hasBrowserSupport())if(n.shadowRoot)r=!0,this.cachedIsFoundOnPage=!0;else{const e=n.querySelectorAll("*");for(let t=0;t<e.length;t++){const n=e[t];if(n&&n.shadowRoot){r=!0,this.cachedIsFoundOnPage=!0;break}}}else r=!1;return r}querySelector({customRootElement:e,selector:t}){const n=We.getDoc(),r=e||n.body;let i;const o=e=>{const n=t&&t.replace("#","");if(!i)for(let t=0;t<e.length;t++){const r=e[t];r&&r.id===n&&(i=r),r&&r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*"))}};return r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*")),o(r.querySelectorAll("*")),i}};var Xn=function(){"use strict";var t,n=function(e){var t=m.isFunction(e.contextNode.getAttribute)&&e.contextNode.getAttribute("data-ias-container");return t&&"#"+t||e._cl_adpath},r=function(){var t=h.getAggregator().request(U.FEATURES),n=e&&4===e.integration;return!t.on("forceKeepGoogleAdNode")||!n};return{getAdSelectorId:n,detectionMethod:T.DETECTION_METHODS.SPECIFIED_AD,isApplicable:function(){return Ae.isSpecifiedAd()},find:function(){var i=n(e),o=Oe.crossQuerySelector(i),s=Ae.isPageOnShadowDomWhitelist(),a=function(e){return r()&&Oe.getNodeArea(e)<1}(o);return o?(t=Oe.getParent(o),a&&(t=o,o=Oe.findElementsWithSize(o))):s&&Kn.isFoundOnPage()&&(o=Kn.querySelector({selector:i}),t=Oe.getParent(o)),o},getAdContainer:function(){return t},allowForAdContainerChange:!0,shouldValidateAdNode:r}},zn=function(){"use strict";var t;return{detectionMethod:T.DETECTION_METHODS.SPECIFIED_AD_COMPOUND,isApplicable:function(){return Ae.isCompoundAd()},find:function(){var n,r,i=[];return(n=e._cl_adpath,/\[(.*)\]/.exec(n)[1].split(",")).forEach((function(e){(r=Oe.crossQuerySelector(e))&&(t=Oe.getParent(r),Oe.getNodeArea(r)<1&&(t=r,r=Oe.findElementsWithSize(r))),i.push(r)})),i},getAdContainer:function(){return t},allowForAdContainerChange:!0}},Jn=function(){"use strict";return{usePlaceholder:!0,detectionMethod:T.DETECTION_METHODS.AD_HUNT,isApplicable:function(){return!0},find:Un,getAdContainer:function(){return e.contextNode.parentNode},allowForAdContainerChange:!0}},Qn=function(){"use strict";return{detectionMethod:T.DETECTION_METHODS.VIDEO,find:h.getAggregator().request(U.VIDEO).findAdNode,isApplicable:Ae.isVideo,getAdContainer:function(){return e.contextNode.parentNode},allowForAdContainerChange:!0}},$n=function(e,t){"use strict";var n,r,i=[tr(),er(),Zn()];return r=m(i).findFirst((function(n,r){return r.isApplicable(e,t)})),(n=nr()).isApplicable(t)&&(n.setBaseStrategy(r),r=n),r},Zn=function(){"use strict";return{calcDims:function(e,t){var n,r,i=new ve(e);return Oe.isClippable(e,t)&&(n=Oe.getClippedDimensions(e,t),r=i.getRounded(),i.set("height",n.height<r.height?n.height:r.height||1),i.set("width",n.width<r.width?n.width:r.width||1)),i},allowsOptimization:!1,isApplicable:function(e){var t=(Ae.isSpecifiedAd()||Ae.isBustedIframe())&&Oe.nodeIsInWindow(e,We.getTop()),n=!Oe.elementIsEmbedded(e);return t||n}}},er=function(){"use strict";var e=h.getAggregator().request(U.IFRAME_CALCULATOR_HELPER);return{calcDims:e.calcDims,getClippedDims:e.getClippedDims,allowsOptimization:!0,isApplicable:function(e){return!(Ae.isSpecifiedAd()||Ae.isBustedIframe())&&Oe.elementIsEmbedded(e)}}},tr=function(){"use strict";var e=h.getAggregator().request(U.IFRAME_CALCULATOR_HELPER);return{calcDims:function(t){var n=e.calcDims(),r=new ve(t).getRounded();return n.set("height",r.height),n.set("width",r.width),n},getClippedDims:e.getClippedDims,allowsOptimization:!1,isApplicable:function(e,t){var n=(Ae.isSpecifiedAd()||Ae.isBustedIframe())&&Ae.embedded&&!Oe.nodeIsInWindow(t,We.getTop()),r=Ae.isCeltra()&&Oe.elementIsEmbedded(e);return n||r}}},nr=function(){"use strict";var e;return{calcDims:function(t,n,r){var i=m.isDef(r)?r.getAdNodeDimensions():void 0;return e&&m.isUndef(i)&&(i=e.calcDims(t,n)),i},isApplicable:function(e){var t=G(),n=h.getAggregator(),r=n.request(U.BROWSER),i=n.request(U.FEATURES),o=n.request(U.CONTEXT),s=Ae.isPageOnShadowDomWhitelist();return(o.isDeviceTypeGroupMobile()||s)&&t.applies(r,i,o)},allowsOptimization:!1,setBaseStrategy:function(t){e=t}}},rr=function(e){"use strict";e=e||We.getWindow();var t=function(n,r){n=n||e,r=r||{top:0,left:0,width:We.getMaxNumber(),height:We.getMaxNumber()};for(var i,o=n.parent.frames,s=!1,a=0,c=o.length;a<c;a++)if(o[a]==n){i=o[a],s=!0;break}if(s){var u=Oe.getRect(i.frameElement);r.left+=u.left,r.top+=u.top;try{r.width=We.min(r.width,u.width),r.height=We.min(r.height,u.height)}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.GET_AD_DIMENSIONS)}n!==We.getTop()&&t(n.parent,r)}return r},n=function(){var n,r,i,o,s,a,c,u,d,g,l,f={};try{g=We.getMaxNumber(),l=We.getMaxNumber(),Ae.friendly?(a=(o=t()).left,c=o.top,g=o.width,l=o.height,u=(s=Oe.browserWindowPosition()).scrX+a,d=s.scrY+c):m.isDef(e.mozInnerScreenX)&&(u=We.round(e.mozInnerScreenX),d=We.round(e.mozInnerScreenY)),f={scrX:u,scrY:d,iFrameClippingWidth:g,iFrameClippingHeight:l},m.isDef(e.innerWidth)?(r=e.innerWidth,i=e.innerHeight):e.frameElement&&m.isDef(e.frameElement.clientWidth)&&(r=e.frameElement.clientWidth,i=e.frameElement.clientHeight),n={width:r,height:i},f.height=n.height,f.width=n.width}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.GET_AD_DIMENSIONS)}return f};return{calcDims:function(){return new ve(n())},getClippedDims:function(){var e=n();return new ve({scrX:e.scrX,scrY:e.scrY,width:e.iFrameClippingWidth,height:e.iFrameClippingHeight})}}},ir=function(){"use strict";return{createInstance:function(e,t,n){return Ae.isDomless()?new sr:new or(e,t,n)}}},or=function(r,i,o){"use strict";var s,a,c=h.getAggregator().request(U.BROWSER),u=e&&e.contextNode&&e.contextNode.parentNode?e.contextNode.parentNode:null,d=Ln(i,o),g=function(){var e,t,n,r;s=s||function(e,t){var n=[zn(),Xn()],r=[xn(),qn(),Qn(),Fn(),Yn(),Wn(),Jn()],i=n.concat(r);return m(i).findFirst((function(n,r){return r.isApplicable(e,t)}))}(Ae,o),e=s.find(),Ae.friendlyIframe&&Ae.isBlockingSizmekTag()&&I(e),!e&&s.usePlaceholder?(l(),E()):e&&(n=m(e).isArray()?e:[e],t=s.getAdContainer(),r=s.allowForAdContainerChange,m(n).each((function(e,n){d.addAdComponent(n,m.resolve(s.detectionMethod),t,r)})))},l=function(){var t;d.hasAd()||(t=Oe.getPlaceholderSpan(),u.insertBefore(t,e.contextNode.nextSibling),d.addAdComponent(t,T.DETECTION_METHODS.AD_PLACEHOLDER,Oe.getParent(t)))},f=function(e,t){var n=!1;m(e).each((function(e,t){t.addedNodes&&t.addedNodes.length>0&&(n=!0)})),n&&(h.getAggregator().trigger(L.NODES_ADDED),t.disconnect())},E=function(){Ae.isDeviceTypeGroupMobile()&&c.hasMutationObserver()&&We.getMutationObserver(f).observe(u,{childList:!0})},p=function(e,t){var n,r=!1;m(e).each((function(e,t){switch(t.type){case"childList":m(t.addedNodes).each((function(e,t){t.nodeName&&"script"===t.nodeName.toLowerCase()&&(r=!0)}));break;case"attributes":t.target.height*t.target.width<=1&&(r=!0)}})),r&&((n=kn()).isApplicable(Ae,o)&&(t.disconnect(),s=Fn(),d.clearCollection(),h.getAggregator().trigger(L.NODES_ADDED)),setTimeout((function(){n.isApplicable(Ae,o)&&(t.disconnect(),s=Fn(),d.clearCollection(),h.getAggregator().trigger(L.NODES_ADDED))}),0))},I=function(e){var t,n;if(!a&&c.hasMutationObserver()&&Oe.isWindow(e))try{a=We.getMutationObserver(p),t=e&&e.frameElement,n=e&&e.document&&e.document.body,a.observe(t,{attributes:!0,attributeFilter:["height","width"]}),a.observe(n,{childList:!0,subtree:!0})}catch(e){}};return function(e){var r=!1;if(!m.isUndef(t.MutationObserver)){var i=new t.MutationObserver((function(e){We.execAtEndOfThread((function(){r&&m(e).each((function(e,t){t.addedNodes.length&&h.getAggregator().trigger(L.AD_COMPONENT_ADDED,t.addedNodes),t.removedNodes.length&&h.getAggregator().trigger(L.AD_COMPONENT_REMOVED,t.removedNodes)}))}))})),o=function(){r=!0,We.setTimeout((function(){r=!1}),40)};h.getAggregator().on(L.AD_COMPONENT_CLICKED,o),h.getAggregator().on(L.AD_COMPONENT_TOUCH_END,o),h.getAggregator().on(L.AD_COMPONENT_MOUSED_OVER,o),h.getAggregator().on(L.AD_COMPONENT_CLICKED,Yt.adComponent.trackClick),h.getAggregator().on(L.AD_COMPONENT_MOUSED_OVER,Yt.adComponent.trackMouseOver),h.getAggregator().on(L.AD_COMPONENT_MOUSED_OUT,Yt.adComponent.trackMouseOut),h.getAggregator().on(L.AD_COMPONENT_TOUCH_END,Yt.mobile.trackTouchEnd),h.getAggregator().on(L.AD_COMPONENT_TOUCH_START,Yt.mobile.trackTouchStart),h.getAggregator().on(L.BLUR,Yt.adComponent.trackBlur),_e.addEvent(t,F.BEFORE_UNLOAD,Yt.finalizeAllCollectedData,!1),_e.whenReady((function(){try{i.observe(n.body,{attributes:!0,childList:!0,characterData:!0})}catch(t){e.add(T.ERROR_CODES.AC_WATCHER)}}),We.getDoc())}}(r),{find:function(){return d.isUsingPlaceholder()||!d.hasAd()?g():d.refresh(),d},getDetectionMethod:function(){}}},sr=function(){"use strict";var e=function(){return null};return{find:e,getDetectionMethod:e}},ar=function(e){"use strict";var t=new gr,n=new lr,r="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",i=function(){var e,t=["FBAN","FBAV","Twitter","Instagram","Flipboard","Snapchat","LinkedInApp","Pinterest"],n=!1;for(e=0;e<t.length;e++)if(r.indexOf(t[e].toLowerCase())>-1){n=!0,h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:t[e].substring(0,2)},x.MAPP1_EXCLUSION_LIST_MATCH,{type:T.IMPRESSION_EVENT});break}return n};return function(){var r="",o=h.getAggregator().request(U.OMID_AD_SESSION_CONTEXT),s=Ae.isDomless()||o&&"app"===o.environment,a=o&&"web"===o.environment,c=e.bootstrapOn(x.MOB_OR_TAB),u=e.bootstrapOn(x.MOB_APP_WEBVIEW),d=e.bootstrapOn(x.MOB_APP),g=c&&u||d;try{s||!a&&g&&!i()?(r=t.detect(),t.hasDetectedMobileApp()&&("s_serv"!==r&&"u_cars"!==r||(fr[fr.length-1].detectionRules.userAgent[0]="/"),n.detect(),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:"1"},x.MOBILE_APP_ENVIRONMENT,{type:T.IMPRESSION_EVENT}),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:r},x.MATCHED_MOBILE_APP_DETECTION_RULE,{type:T.IMPRESSION_EVENT}))):a&&h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:"a_oweb"},x.MATCHED_MOBILE_APP_DETECTION_RULE,{type:T.IMPRESSION_EVENT})}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.MOBILE_APP)}}(),{excludedByUserAgent:i,isMobileAppEnvironment:function(){return t.hasDetectedMobileApp()},isSafeToInjectMraid:function(){return n.isSafeToInjectMraid()}}};const cr={url:{STRINGIFIED_METHOD:"u",detect:function(r){"use strict";if(Ae.isDomless())return!1;const i=We.getWindow().location.href,o=[i];try{o.push(top.location.href)}catch(e){}try{o.push(parent.location.href)}catch(e){}if(Ae.embedded){try{o.push(parent.document.referrer)}catch(e){}try{o.push(n.referrer)}catch(e){}}try{"jsi"!==e.mode&&o.push(t.location.href)}catch(e){}try{o.push(e.jsref)}catch(e){}return o.sort((function(e,t){return e.length>t.length?1:e.length<t.length?-1:0})),!!m(r).findFirst((function(e,t){let n,r,s=!1;const a="mobfox"===t?o:[i];for(r=0;r<a.length;r++){n=a[r];const e="string"==typeof t?[t]:t;if(m(e).isArray()&&e)for(let t=0;t<e.length&&(s=n.indexOf(e[t])>-1,!1!==s);t++);if(s)break}return s}))}},userAgent:{STRINGIFIED_METHOD:"a",detect:function(e){"use strict";return!Ae.isDomless()&&!!m(e).findFirst((function(e,t){let n,r=!1;const i=We.getWindow();return m.isDef(i.navigator)&&m.isDef(i.navigator.userAgent)&&(n=i.navigator.userAgent,r=n&&-1!==n.indexOf(t)),r}))}},javascript:{STRINGIFIED_METHOD:"j",detect:function(e){"use strict";return!!m(e).findFirst((function(e,t){let n=!1;return n=m.isDef(Xe.stringToProp(t)),n}))}},scriptSrc:{STRINGIFIED_METHOD:"s",detect:function(e){"use strict";return!Ae.isDomless()&&!!m(e).findFirst((function(e,t){return Oe.containsScriptTagWithSrc((function(e){let n=!1;return n=m.isDef(e)&&-1!==e.indexOf(t),n}))}))}}},ur=function(){"use strict";const e=function(e,t){let n;const r=cr[e];return r.detect(t)&&(n=r.STRINGIFIED_METHOD),n};return{process:function(t){return m(t).map(e).join("")}}};var dr=[{STRINGIFIED_APPDET:"omid",detectionRules:{javascript:["omidSupported"]}},{STRINGIFIED_APPDET:"file",detectionRules:{url:["file:"],scriptSrc:["file:"]}},{STRINGIFIED_APPDET:"cont",detectionRules:{url:["content:"]}},{STRINGIFIED_APPDET:"appl",detectionRules:{url:["applewebdata:"]}},{STRINGIFIED_APPDET:"adma",detectionRules:{javascript:["ADMARVEL"]}},{STRINGIFIED_APPDET:"admb",detectionRules:{userAgent:["afma-sdk"],url:["afma-sdk"]}},{STRINGIFIED_APPDET:"imbi",detectionRules:{javascript:["InmobiObj"]}},{STRINGIFIED_APPDET:"mopb",detectionRules:{url:["ads.mopub.com"],javascript:["mopubFinishLoad"]}},{STRINGIFIED_APPDET:"pand",detectionRules:{javascript:["PandoraApp"]}},{STRINGIFIED_APPDET:"sads",detectionRules:{javascript:["mraid.sasSendMessage"]}},{STRINGIFIED_APPDET:"ogry",detectionRules:{url:["ogury.io"],scriptSrc:["OguryFR"]}},{STRINGIFIED_APPDET:"cnvt",detectionRules:{url:["adsx.greystripe.com/openx/www/delivery/ia.php"]}},{STRINGIFIED_APPDET:"mobf",safeToInjectMraid:!0,detectionRules:{url:["mobfox"]}},{STRINGIFIED_APPDET:"innr",detectionRules:{url:["inner-active.mobi"]}},{STRINGIFIED_APPDET:"apnx",detectionRules:{javascript:["anjam"]}},{STRINGIFIED_APPDET:"aers",detectionRules:{userAgent:["AerServ"]}},{STRINGIFIED_APPDET:"tapj",detectionRules:{url:[["tapjoyads","app_id"]]}},{STRINGIFIED_APPDET:"quan",detectionRules:{userAgent:["QuantcastSDK"]}},{STRINGIFIED_APPDET:"cars",safeToInjectMraid:!0,detectionRules:{url:[["carsales",".android"],["carsales",".ios"]]}},{STRINGIFIED_APPDET:"mrai",detectionRules:{javascript:["mraid"]}}],gr=function(){"use strict";var t,n=function(e,t){var n,r=ur().process(t.detectionRules);return r&&(n=r+"_"+t.STRINGIFIED_APPDET),n};return{detect:function(){return""===(t=(t=m(dr).map(n)).length>0?t[0]:"")&&e.hasOwnProperty("serverSideAppDetection")&&0!==e.serverSideAppDetection.length&&(t="s_serv"),t},hasDetectedMobileApp:function(){return void 0!==t&&""!==t}}},lr=function(){"use strict";var e=[],t=[],n=function(t,n){var r,i=ur().process(n.detectionRules);return i&&(e.push(n.STRINGIFIED_SDK+"*"+i),r=n),r};return{detect:function(){return(t=m(fr).map(n)).length>0&&h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:function(){return e.join(".")}},x.APP_SDKS_DETECTED,{type:T.IMPRESSION_EVENT}),t.length>0},isSafeToInjectMraid:function(){return 1===t.length&&m.isDef(t[0].safeToInjectMraid)&&t[0].safeToInjectMraid}}},fr=[{STRINGIFIED_SDK:"adma",safeToInjectMraid:!0,detectionRules:{javascript:["ADMARVEL"],url:["AdMarvel"]}},{STRINGIFIED_SDK:"admb",safeToInjectMraid:!0,detectionRules:{userAgent:["afma-sdk"],url:["afma-sdk"]}},{STRINGIFIED_SDK:"imbi",safeToInjectMraid:!0,detectionRules:{javascript:["InmobiObj"]}},{STRINGIFIED_SDK:"mmed",detectionRules:{url:["mmsdk"],scriptSrc:["mmsyscache"]}},{STRINGIFIED_SDK:"mopb",safeToInjectMraid:!0,detectionRules:{javascript:["mopubFinishLoad"],url:["ads.mopub.com"]}},{STRINGIFIED_SDK:"pand",detectionRules:{javascript:["PandoraApp"]}},{STRINGIFIED_SDK:"ambe",safeToInjectMraid:!0,detectionRules:{url:["amobee"]}},{STRINGIFIED_SDK:"smat",safeToInjectMraid:!0,detectionRules:{javascript:["smaato_bridge"]}},{STRINGIFIED_SDK:"afrm",safeToInjectMraid:!0,detectionRules:{javascript:["Adform"]}},{STRINGIFIED_SDK:"vrve",safeToInjectMraid:!0,detectionRules:{javascript:["vrvsdk"]}},{STRINGIFIED_SDK:"sads",detectionRules:{javascript:["mraid.sasSendMessage"],url:["smartadserver.com"]}},{STRINGIFIED_SDK:"ogry",safeToInjectMraid:!0,detectionRules:{url:["ogury.io"],scriptSrc:["OguryFR"]}},{STRINGIFIED_SDK:"cnvt",detectionRules:{url:["adsx.greystripe.com/openx/www/delivery/ia.php"]}},{STRINGIFIED_SDK:"mobf",safeToInjectMraid:!0,detectionRules:{url:["mobfox"]}},{STRINGIFIED_SDK:"innr",detectionRules:{url:["inner-active.mobi"]}},{STRINGIFIED_SDK:"apnx",detectionRules:{javascript:["anjam"]}},{STRINGIFIED_SDK:"aers",safeToInjectMraid:!0,detectionRules:{userAgent:["AerServ"]}},{STRINGIFIED_SDK:"tapj",detectionRules:{url:[["tapjoyads","app_id"]]}},{STRINGIFIED_SDK:"quan",detectionRules:{userAgent:["QuantcastSDK"]}},{STRINGIFIED_SDK:"mrad",safeToInjectMraid:!0,detectionRules:{userAgent:["unmatchabledetectionstring"]}}],Er=function(e){"use strict";var t=[],n=function(e,t,n){return new hr(0,e,n,n+t)};return function(){if(e.height<10)t.push({geometry:new hr(0,e.width,0,e.height),percentageInViewContribution:100,isInView:!1});else for(var r,i=Math.floor(e.height),o=i%10,s=(i-o)/10,a=0;a<10;a++){var c=a<o?s+1:s,u={geometry:n(e.width,c,r||0),percentageInViewContribution:10,isInView:!1};t.push(u),r=u.geometry.value().bottomY}}(),{getSlices:function(){return t}}},pr=function(){"use strict";var e,t=T.VIEWABILITY_IN_VIEW_THRESHOLDS_MOBILE_GRID.length,n=T.VIEWABILITY_IN_VIEW_THRESHOLDS_MOBILE_GRID,r=[];return{getConfig:function(i){if(e)return e;i.height<t&&(t=1,n=[100]);for(var o=0;o<t;o++)r.push(!1);return e={numberOfSlices:t,defaultSliceArray:r,percentInViewSliceArray:n}}}},mr=function(e,t){"use strict";var n={mbrd:!1,mbvs:[],mbe:"n",mbv:9,mbs:[],mbm:1,mbivs:[]},r=function(e,t){var n,r=0,i=function(e,t){var n=[],r=e.geometry.value();return m(t).each((function(t,i){if(e.geometry.doesIntersect(i)){var o=i.value(),s=Math.max(r.leftX,o.leftX),a=Math.min(r.rightX,o.rightX),c=Math.max(r.topY,o.topY),u=Math.min(r.bottomY,o.bottomY);n.push(new hr(s,a,c,u))}})),n}(e,t);return m(i).each((function(e,t){n=t.value(),r+=n.area})),r},i=function(t){m(e).each((function(e,n){n.isInView=r(n,t)>=n.geometry.value().area}))};return t.addListener(i),{getPercentInView:function(){var t=function(){var t=0;return n.mbs=[],m(e).each((function(e,r){n.mbs.push(r.isInView),r.isInView&&(t+=r.percentageInViewContribution)})),t}();return n.mbrd=1,t!==n.mbp&&n.mbivs.push([Ae.getTagTime(),t]),n.mbp=t,t},removePixels:function(){void 0!==t&&t.stop()},getPixelStateForDebug:function(){return n.mbm=1,n.mbpr=[],n.mbir=[],m(e).each((function(e,t){n.mbpr.push(T.NA),n.mbir.push(!1)})),n},isReadyToMeasure:function(){return!0},getSliceStatus:function(){var t=[];return m(e).each((function(e,n){t.push(n.isInView)})),t}}},Ir=function(e){"use strict";var t=pr();return{getSliceStatus:function(n,r,i,o){var s,a=[],c=n.getRounded(),u=c.height,d=c.scrY,g=new ve({scrX:c.scrX,width:c.width}),l=t.getConfig(c).numberOfSlices;g.set("height",We.floor(u/l));for(var f=0;f<l;f++)g.set("scrY",We.ceil(d+u/l*f)),s=100===e.calcPercentInView(g,r,i,o),a.push(s);return a}}},hr=function(e,t,n,r){"use strict";var i=Math.ceil(e),o=Math.ceil(t),s=Math.ceil(n),a=Math.ceil(r),c=o-i,u=a-s,d=c*u,g=function(){return{leftX:i,rightX:o,topY:s,bottomY:a,width:c,height:u,area:d}};return{value:g,doesIntersect:function(e){var t=g(),n=e.value();return n.leftX<t.rightX&&n.rightX>t.leftX&&n.topY<t.bottomY&&n.bottomY>t.topY}}},Tr=function(){"use strict";return{createInstance:function(e,t){return new IntersectionObserver(e,t)}}},Ar=function(e,t){"use strict";var n,r=[],i=[],o=function(e,t){-1===e.indexOf(t)&&e.push(t)},s=function(e){var t,n=function(){var e=[];return m(i).each((function(t,n){var r=n.value();o(e,r.topY),o(e,r.bottomY)})),e=e.sort((function(e,t){return e-t}))}();i=[];for(var r=0;n.length>r&&(t=r,n.length!==t+1);r++){var s=n[r],a=n[r+1];i.push(new hr(0,e,s,a))}},a=function(e,t){i.push(e),s(t),m(r).each((function(e,t){t(i)}))},c=function(){n.unobserve(e),n.disconnect()};return(n=t.createInstance((function(e){var t,n,r,i,o,s,u=e.pop(),d=u.boundingClientRect,g=d.width,l=u.intersectionRatio,f=u.intersectionRect,E=(t=d,r=(n=f).left-t.left,i=r+n.width,o=n.top-t.top,s=o+n.height,new hr(r,i,o,s));a(E,g),1===l&&c()}),{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]})).observe(e),{addListener:function(e){r.push(e)}}},_r=function(){"use strict";var e=function(e){var t=!1;return Dr.forEach((function(n){e===n.PARTNER_NAME&&(t=!0)})),t},t=function(t,r){return t.omidNativeInfo&&t.omidNativeInfo.partnerName&&e(t.omidNativeInfo.partnerName)?r&&n(r.onScreenContainerGeometry):r&&n(r.onScreenGeometry)},n=function(e){return e&&e.hasOwnProperty("x")&&e.hasOwnProperty("y")&&e.hasOwnProperty("width")&&e.hasOwnProperty("height")};return{detect:e,checkAdViewGeometryBasedOnWhitelist:t,checkGeometryObject:n,checkForViewAttachmentBasedOnAdSessionType:function(e,n){if(n&&n.reasons&&n.reasons.indexOf("notFound")<0&&e.adSessionType&&(e.adSessionType.indexOf("native")>-1||e.adSessionType.indexOf("javascript")>-1||e.adSessionType.indexOf("html")>-1&&t(e,n)))return!0}}},Dr=[{PARTNER_NAME:"IAB"},{PARTNER_NAME:"IAS"},{PARTNER_NAME:"com.integralads.omid.iassdk"}],Sr=function(){"use strict";return{listenForResult:function(){h.getAggregator().on(L.VIDEO_BLOCK_RESULT,(function(t){var n=h.getAggregator().request(U.AD_NODE),r=!1,i="blockAd"+e.videoId;"failed"===t.action&&(r=!0),n&&m.isDef(n.blockAd)?n.blockAd(r):n&&m.isDef(n[i])&&n[i](r)}))}}};const vr=function(){"use strict";const e=[];return{registerEvent:(t,n)=>{const r=function(e,t){var n;const r=h.getAggregator().request("videoTranslator").translate(e.messageType),i=(e=>{const t=e.eventData||{},n=m({}).mixin(t);return n.ext_passthrough&&delete n.ext_passthrough,n})(e),o=(e=>{let t;const n=e.eventData&&e.eventData.ext_passthrough,r=(e,t)=>{const n={};return n[`x_${e}`]=t,n};return n&&(t=m(n).mapToObj(r)),t})(e),s=null===(n=d.measurementConfig)||void 0===n?void 0:n.birthdate,a={t:e.time-s,tp:r,sl:t};m(a).mixin(i),m(a).mixin(o);const c=m({indicatesPlaying:()=>-1!=="showAd|adImpression|adVideoStart|resumeAd".indexOf(r),indicatesNotPlaying:()=>-1!=="adVideoComplete|adStopped|stopAd|pauseAd".indexOf(r),indicatesFullscreen:()=>{const e=We.getWindow();return!("resizeAd"!==r&&"initAd"!==r||"fullscreen"!==i.viewMode&&i.width!==e.screen.width)},indicatesNormalSize:()=>"resizeAd"===r&&"normal"===i.viewMode,indicatesQuartile:()=>-1!=="adVideoFirstQuartile|adVideoMidpoint|adVideoThirdQuartile|adVideoComplete".indexOf(r),indicatesCompletion:()=>-1!=="adStopped|adVideoComplete|adSkipped|adError".indexOf(r),getVolume:e=>e.getVolumeFromContext(i),updateScreenLoc:e=>{a.sl=e,c.sl=e},trigger:()=>{"adImpression"===r?h.getAggregator().persistentTrigger(r,i,o):h.getAggregator().trigger(r,i,o)},toString:()=>"{"+m(a).toParams()+"}"}).mixin(a);return c}(t,n);return e.push(r),r},toString:()=>"{"+m({vEventCount:e.length,vEvents:"["+e.join(",")+"]"}).toParams()+"}",isEmpty:()=>0===e.length}};var Or=function(){"use strict";var e,t,n,r=function(r){n=m.isDef(r)?0===r:n,t&&n&&e.addState({isFullyInView:function(){return!1}})},i=function(){e&&e.hasAlwaysBeen(!0)&&h.getAggregator().trigger(L.SEND_DT,T.DT_CODES.QUARTILE_FULLY_INVIEW)},o=function(){t=!0,r()},s=function(e){var t=(new Nr).getVolumeFromContext(e);r(t)};return{isApplicable:function(e){return e.usesGroupMCustomMetric()},start:function(n){h.getAggregator().on({adVideoStart:o,adImpression:o,volumeChanged:s,adVideoMidpoint:i}),e=n.createViewabilityTracker("mpt",(function(e){var n=h.getAggregator().request("isFullyInViewProvider");return!t||n&&n.isFullyInView(e)}))}}},Rr=function(){"use strict";var e={AdPaused:"pauseAd",AdVolumeChange:"volumeChanged",AdPlaying:"resumeAd"};return{translate:function(t){var n=t.charAt(0).toLowerCase()+t.slice(1);return t in e&&(n=e[t]),n}}};const Nr=function(){"use strict";return{getVolumeFromContext:e=>{let t,n=-1;return m.isDef(e)&&(m.isDef(e.volume)?n=e.volume:m.isDef(e.adVolume)&&(n=e.adVolume)),-1!==n&&(t=n),t}}};var yr=function(t,n,r){"use strict";var i,o,s,a="IASid"+t,c="getIasVidBridgeVersion"+t,u=[],d=T.OUT_OF_VIEW,g=!1,l=!1,f=!1,E=!0,p=new vr,I=Or(),A=new Sr,_=new Nr,D=new Fe,S=function(e){var t;return g=!0,t=v(e),u.push(t),s&&y(),t},v=function(e){var n,i,o={};try{o=JSON.parse(unescape(e&&e.data?e.data:e))}catch(e){o={}}return o.id==t&&((n=p.registerEvent(o,r.getCurrentLoc())).indicatesPlaying()?(l=!0,d=!!f&&T.IN_VIEW):n.indicatesNotPlaying()?(l=!1,d=T.OUT_OF_VIEW):n.indicatesFullscreen()?(f=!0,d=l?T.IN_VIEW:T.OUT_OF_VIEW):n.indicatesNormalSize()&&(f=!1,d=!l&&T.OUT_OF_VIEW),(i=parseFloat(n.getVolume(_)))>0?E=!0:0===i&&(E=!1)),n},O=function(){i||(m(["*[data-integralas-vid-"+t+"]",".integral-vid-"+t,"ias-ad","object","embed"]).findFirst((function(e,t){var n=We.getDoc().querySelectorAll(t);return i=function(e){return m(m(e).toArray()).findFirst((function(e,t){return m.isFunction(t[a])}))}(n),i})),!i&&n.on("novidnodeerr")&&Math.random()<.1&&__IntegralASDiagnosticCall("novidnode",{message:"node not found*10"},e));return i},R=function(){var n=O();return n&&!g&&function(n){var r,i,o=Ue().wrapToGlobal(S);try{i=n[c]||n.getIasVidBridgeVersion,r=m.isFunction(i)&&"2"===i.call(n)?unescape(n[a].call(n,t,o)):unescape(n[a].call(n,t)),g=!0,function(e){m.isStr(e)&&(h.getAggregator().provide("vc",(function(){return e})),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:e},x.VIDEO_CHANNEL,{type:T.IMPRESSION_EVENT}))}(r||"n")}catch(t){__IntegralASDiagnosticCall("handshakefailure",t,e)}}(n),n},N=function(e){var t=_.getVolumeFromContext(e);E=!!m.isDef(t)&&t>0},y=function(){D.init(),m(u).each((function(e,t){t&&(m.isUndef(t.sl)&&t.updateScreenLoc(r.getCurrentLoc()),t.trigger(),t.indicatesCompletion()&&h.getAggregator().trigger(L.AD_SESSION_COMPLETE),t.indicatesQuartile()&&(t.tp!==L.AD_VIDEO_COMPLETE&&h.getAggregator().trigger(L.SEND_DT,T.DT_CODES.VIDEO_EVENTS),h.getAggregator().trigger(L.VIDEO_QUARTILE_EVENT,t)))})),u=[],s=!0},C=function(){return f&&l};return _e.addEvent(We.getWindow(),"message",(function(e){S(e)})),h.getAggregator().on({volumeChanged:N}),h.getAggregator().provide({videoEventsString:p,videoVersion:function(){var e,t=R();try{e=t.getVersion()}catch(t){e=-1,h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.NO_VIDEO_AD_INTERFACE)}return e},videoTranslator:function(){return o=o||new Rr},adNode:R}),R(),A.listenForResult(),I.isApplicable(Ae)&&I.start(r),{findAdNode:R,getViewStateOverride:function(){return d},isHandshakeComplete:function(){return g},triggerInitializationEvents:y,setVideoSpecificScreenEventFields:function(e){var t=e.viewState===T.NA;if(e.isVideoPlaying=!0,e.isSoundOn=E,e.isVideoPlayingInFullscreen=!1,d){if(d===T.OUT_OF_VIEW){var n=e.reason?e.reason.split("."):[];n[n.length]=T.OUT_OF_VIEW_REASONS.VIDEO,e.reason=n.join(".")}e.viewState=t?e.viewState:d,e.isVideoPlaying=d===T.IN_VIEW}C()&&(e.percentInView=100,e.isVideoPlayingInFullscreen=!0)}}},Cr=function(){"use strict";var e=T.PERF_TIMELINE_TRACKER_CONFIG.WRAPPERS.AS.COUNT;return new Vr(T.PERF_TIMELINE_TRACKER_CONFIG.WRAPPERS.AS.TYPE,e)},Mr=function(){"use strict";var e,t,n={},r=0,i=function(n){(n||e)&&(r+=5,t.onTick(r,(function(){e?i():h.getAggregator().trigger("sendDt",T.DT_CODES.PERFORMANCE)})),e=!1)},o=function(){t=new ie,r=0,i(!0),t.start()},s=function(r,i,s,a){var c=n[r];a?(m.isDef(c[i])||(c[i]=[]),c[i].push(s)):c[i]=s,t&&t.isActive()||o(),e=!0},a=function(n,r,i){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:r},n,i),t&&t.isActive()||o(),e=!0},c=function(t){m(n).each((function(r,i){!function(t,r){var i=n[t],o={type:r,oneTime:!0,minDt:!0,asION:!0};m(i).isEmpty()||(h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:i},t,o),n[t]={}),e=!1}(r,t)}))};return{start:function(){h.getAggregator().on("preSendDt",(function(e){c(e),t&&t.kill()})),h.getAggregator().on("addThrottledProp",s),h.getAggregator().on("addThrottledOutputItem",a)},addFieldTypes:function(e){m(e).each((function(e,t){n[t]={}}))}}},wr=function(){"use strict";var e={},t=function(t){return!e[t]&&(e[t]=new re(1,d.measurementConfig.birthdate)),e[t]},n=function(e){t(e).start()},r=function(e){var n=t(e);n.stop(),h.getAggregator().trigger("addThrottledProp","im",e,n.getTime())};return{start:function(){h.getAggregator().on({markTime:n,measureTime:r})},isApplicable:function(e){return e.on("pIntervals")}}},br=function(){"use strict";var e=T.PERF_TIMELINE_TRACKER_CONFIG.WRAPPERS.JS.COUNT;return new Vr(T.PERF_TIMELINE_TRACKER_CONFIG.WRAPPERS.JS.TYPE,e)},Pr=function(e){"use strict";var t={},n=e instanceof Array&&e.length>0;return n&&(m(e).each((function(e,n){var r;t[(r=n).getType()]=r})),h.getAggregator().on(L.PERF_CHECKPOINT,(function(e){var n=t[e.type];if(n)try{n.addPoint(e),n.isFinished()&&h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.IM,"pci",n.toString())}catch(e){}}))),h.getAggregator().provide("perfActive",(function(){return n})),{isActive:n}},Vr=function(e,t){"use strict";var n=0,r=[],i=function(){var e,t={};return r.sort((function(e,t){return e.timestamp-t.timestamp})),m(r).each((function(r,i){e&&(t[i.code]=i.timestamp-e),i.timestamp,r===n&&(e=i.timestamp)})),t};return{addPoint:function(e){r.push(e)},toString:function(){return m(i()).toION()},getType:function(){return e},setBaseOrdinal:function(e){n=e},isFinished:function(){return r.length===t}}},Lr=function(){"use strict";function e(){}return e.build=function(){var e,t=[];t.push((e=T.PERF_TIMELINE_TRACKER_CONFIG.RENDER.COUNT,new Vr(T.PERF_TIMELINE_TRACKER_CONFIG.RENDER.TYPE,e)));var n,r=(n=h.getAggregator().request("vc"))?{jv3:Fr,av3:Fr,jvw:br,avw:Cr}[n]:void 0;return r&&t.push(r()),t},e}(),Fr=function(){"use strict";var e=T.PERF_TIMELINE_TRACKER_CONFIG.VANS.COUNT;return new Vr(T.PERF_TIMELINE_TRACKER_CONFIG.VANS.TYPE,e)},Ur={IDS:{BLOCK_TIME:"pBlk",ON_LOAD:"pLoad",IN_BROWSER_DELAY:"pWait"},recordBlockingTime:function(){"use strict";h.getAggregator().trigger(L.MEASURE_TIME,Ur.IDS.BLOCK_TIME)},setupOnLoadTracking:function(){"use strict";_e.addEvent(t,"load",(function(){h.getAggregator().trigger(L.MEASURE_TIME,Ur.IDS.ON_LOAD)}))},setupBrowserDelayTracking:function(){"use strict";var e=new ie;e.onTick({4:function(){h.getAggregator().trigger(L.MARK_TIME,Ur.IDS.IN_BROWSER_DELAY)},5:function(){h.getAggregator().trigger(L.MEASURE_TIME,Ur.IDS.IN_BROWSER_DELAY)}}),e.start()}},xr={isFrameworkAvailable:function(e,t){var n,r,i=We.getTop(),o=We.getWindow();try{n=i[e]}catch(e){for(;!r;){try{o.frames[t]&&(r=o.frames[t].parent)}catch(e){}if(o===i)break;o=o.parent}}return n||r},getMessageHandler:function(e,t){var n=xr.getCallId(),r=function(i){try{i&&i.data&&i.data[e]&&i.data[e].callId===n&&i.data[e].returnValue&&(t(i.data[e].returnValue),_e.removeEvent(We.getWindow(),"message",r))}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.GDPR)}};return r},getCallId:function(){return"ias_"+e.asid},send:function(e,t){h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.ENVIRONMENT,e,t)}},Wr={name:"CCPAConsentDetector",dependencies:[],creator:function(){"use strict";var e;function t(e){e&&xr.send("ccd",m(e).toION())}e=xr.isFrameworkAvailable("__uspapi","__uspapiLocator"),xr.send("cca",!!e),e&&function(e){var n,r;m.isFunction(e)?e("getUSPData",1,t):(n={__uspapiCall:{command:"getUSPData",version:1,callId:xr.getCallId()}},r=xr.getMessageHandler("__uspapiReturn",t),_e.addEvent(We.getWindow(),"message",r),e.postMessage(n,"*"))}(e)},settings:{tier:T.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return t.hasPostMessage()&&!n.isDomless()}}},Br={name:"GDPRConsentDetector",dependencies:[],creator:function(){"use strict";var e,t=278;function n(e){var t=m.isDef(e)&&m.isDef(e.vendorConsents)&&m.isDef(e.vendorConsents[278])?e.vendorConsents[278]:void 0,n={appl:m.stringifyTriState(e.gdprApplies),cnst:m.stringifyTriState(t),glbl:m.stringifyTriState(e.hasGlobalScope),mtdt:encodeURIComponent(e.metadata)},r=e&&e.tcString;h.getAggregator().provide("tcString",(function(){return r})),xr.send("gcd",m(n).toION())}e=xr.isFrameworkAvailable("__cmp","__cmpLocator"),xr.send("gca",!!e),e&&function(e){var r,i;m.isFunction(e)?e("getVendorConsents",[t],n):(r={__cmpCall:{command:"getVendorConsents",parameter:[t],callId:xr.getCallId()}},i=xr.getMessageHandler("__cmpReturn",n),_e.addEvent(We.getWindow(),"message",i),e.postMessage(r,"*"))}(e)},settings:{tier:T.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return t.hasPostMessage()&&!n.isDomless()}}};const Gr={name:"GDPRV2ConsentDetector",dependencies:[],creator:function(){const e=e=>{const t=m.isDef(e)&&m.isDef(e.vendor)&&m.isDef(e.vendor.consents)&&m.isDef(e.vendor.consents[278])?e.vendor.consents[278]:void 0,n={appl:m.stringifyTriState(e.gdprApplies),cnst:m.stringifyTriState(t)};xr.send("gcd2",m(n).toION())};(()=>{const t=xr.isFrameworkAvailable("__tcfapi","__tcfapiLocator");xr.send("gca2",!!t),t&&(t=>{let n,r;if(m.isFunction(t))try{t("addEventListener",2,e)}catch(n){try{t("getTCData",2,e)}catch(e){}}else n={__tcfapiCall:{command:"addEventListener",callId:xr.getCallId(),version:2}},r=xr.getMessageHandler("__tcfapiReturn",e),_e.addEvent(We.getWindow(),"message",r),t.postMessage(n,"*")})(t)})()},settings:{tier:T.TIERS.ENVIRONMENT,applies:(e,t,n)=>t.hasPostMessage()&&!n.isDomless()}};var kr={name:"postMessageDetector",dependencies:[],creator:function(){"use strict";var t,n=!1,r="pmdetector"+e.asid,i=function(e){(e&&e.data)===r&&(n=!0)};t=We.getWindow(),_e.addEvent(t,"message",i),t.postMessage(r,"*"),We.execAtEndOfThread((function(){h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.IM,"pom",m.stringifyTriState(n)),_e.removeEvent(t,"message",i)}))},settings:{tier:T.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return e.on("pmdetect")&&t.hasPostMessage()}}},Hr={name:"safeFrameDetector",dependencies:[],creator:function(){"use strict";h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.IM,x.SAFEFRAME,m.stringifyTriState(Ae.isSafeFrame()))},settings:{tier:T.TIERS.ENVIRONMENT,applies:function(e,t,n){"use strict";return e.on("sfdetect")}}},Yr=function(t,n,r,i,o,s,a){"use strict";var c="adsafe_jsinfo=",u=function(e,t){return isNaN(e)||e<0||""===e?t:e},d=function(e){return"&"===e.slice(-1)?"":"&"},g=function(g){var l=i.baseUrl,f=u(e.sp_imp_maxLength,2e3);if(Ae.integratedBlockingApplies(l)&&(l=function(t){var n=h.getAggregator().request("mobileApp"),r=n&&n.isMobileAppEnvironment&&n.isMobileAppEnvironment(),i=t+"adContainerId="+e.contextNode.getAttribute("data-ias-container")+"&cbFunctionName="+e.contextNode.getAttribute(T.CALLBACK_IDENTIFIER.toString());i=r?i.replace("monitoring","blocking"):i.replace("skeleton.js",e.integration+".js");var o=e.protocol+":"+e.staticServer+e.integration+"a.js",s=e.protocol+":"+e.staticServer+e.integration+".js";return i+"&true_pb="+encodeURIComponent(e.passback)+(r?"&redirectUrl="+encodeURIComponent(s):"")+(r?"&passback=":"&adsafe_pb=")+encodeURIComponent(o)+"&"}(l)),l=l.replace(T.UNIQUE_ID_TOKEN,e.asid),l+=function(r,i,o){var s,a=u(e.sp_imp_jsInfo_minLength,0),d="";try{(s=i-r-a)>0&&(d+=zr(o,s,c.length,n.on("partialUrls")).join("&"))}catch(e){t.add(T.ERROR_CODES.IMPRESSION_URLS)}return d}(l.length,f,g),l+=d(l),l+=function(e,i){var u="";try{u+=qr(i-e,c,t,n,r,o,s,a,i)}catch(e){t.add(T.ERROR_CODES.JSINFO),u+="adsafe_jsinfo=e:"+t.toString()}return u}(l.length,f),i.macroUrl&&(l+=d(l),l+=i.macroUrl),e.staticFwjsMacros&&(l+=d(l),l+=e.staticFwjsMacros),Ae.isAMZN()&&-1===l.indexOf("gdpr_consent")){var E=h.getAggregator().request("tcString");m.isDef(E)&&(l+=d(l),l+="gdpr_consent="+E)}return l};return{send:function(t){try{var n=g(t);e.impUrl=n,i.sendImpression(n),h.getAggregator().trigger("impressionsent"),function(){if(e.rts&&e.rts.tracked){var t=e.rts.tracked;h.getAggregator().trigger("notify",t)}}()}catch(t){__IntegralASDiagnosticCall("impsend",t,e)}}}},jr=function(){try{var n,r,i,o,s,a,c=e.perf;h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:Ae.getTagTime()},x.STATIC_IMPRESSION_RFW_CALL_RESPONSE_TIME);c.markEnd("ec"),n=c.getEnd("ec"),r=t.performance&&"function"==typeof t.performance.getEntriesByName&&t.performance.getEntriesByName(e.impUrl)[0],i=function(t){var n=c.getStart("bd"),r=c.getStart(y);return e.jsDoSplit?Math.round(t-n):Math.round(t-r)}(n),o=function(e){return Math.round(e&&e.duration)}(r),s=function(e,t){var n=t&&t.responseEnd;return Math.round(e-n)}(n,r),m.isNumeric(i)&&m.isNumeric(o)&&m.isNumeric(s)&&(a={ttecl:i,ecd:o,tsecr:s},h.getAggregator().trigger("addThrottledProp",T.DT_SLOT.IM,"imprf",m(a).toION()))}catch(e){h.getAggregator().trigger("error",T.ERROR_CODES.IMPRESSION_PERFORMANCE)}},qr=function(t,n,r,i,o,s,a,c,u){"use strict";var d,g,l,f,E;return function(r){var i=m.encodeInvalidUrlChars(r.primary.join(","),e.encodeInvalidUrlChars),s=n,a=0,c=function(e){return s.length+e.length+5<=t},u=function(e){if(e)return","+e};return c(i)?(s+=u(i),o.impressionIsIdentifiable(!0),m(r.secondary).each((function(t,n){var r=m.encodeInvalidUrlChars(n,e.encodeInvalidUrlChars);c(r)?s+=u(r):a+=1}))):a+=r.primary.length,s+=",ov:"+a}((f={viewState:T.NA},E=f,Ae.isDomless()?E=c.checkScreenLoc(!0)||f:i.on("impFailSafe")?We.getDoc().body&&(E=c.checkScreenLoc(!0)||f):m.isDef(We.getDoc().body)&&(E=c.checkScreenLoc(!0)),c.isImmediatelyMeasurable()||c.requiresDelayedViewabilityEvent(),d=Kr((l=E).viewState,o,i),g=Xr(l,r,i,o,s,a,c,u),h.getAggregator().trigger("eligiblerender"),{primary:d,secondary:g}))},Kr=function(t,n,r){"use strict";var i=h.getAggregator().request("mPage");return["id:"+e.asid,"c:"+n.getCacheBustId(),"sl:"+t,"em:"+Ae.embedded,"fr:"+Ae.friendly,"thd:"+m.stringifyTriState(i.supportsVisAPI())]},Xr=function(t,n,r,i,o,s,a,c){"use strict";const{measurementConfig:u}=d;var g,l="NotFound",f=[];f.push("mn:"+e.mn),f.push("rg:"+e.region),e.iasProxyPartnerDomain&&f.push("ipp:"+encodeURIComponent(e.iasProxyPartnerDomain)),f.push("pt:"+function(){var e=a.stringifyPingTimes();return t.viewState!==T.NA&&(e+=t.details),e}()),f.push("mu:"+c),f.push(m(s.params()).toParams()),r.on("mrcAudit")&&!Ae.isDomless()&&f.push("dvs:"+We.getDoc().visibilityState),o.iterate((function(e,t){var n=!t.props||m.isUndef(t.props.type),r=!t.props||t.props.type===T.IMPRESSION_EVENT;(n||r)&&f.push(e+":"+t.output())})),n.toString()&&f.push("e:"+n.toString()),f.push(r.output()),f.push("tt:"+e.mode),f.push("et:"+(We.now()-u.birthdate)),e.perf.mark("si"),r.on("swapids")?f.push("oid:"+e.oid):f.push("uid:"+i.unq),f.push("v:19.8.489"),f.push("sp:"+(e.isSplitMode?1:0)),f.push("st:"+(u.staticMode?1:0)),f.push("fwm:"+("true"===e.fwMonitoring?1:0)),r.on("resolution")&&(f.push("wr:"+m(Oe.windowSize()).toArray().join(".")),f.push("sr:"+m(Oe.screenSize()).toArray().join(".")));var E=/iasProxyPartnerId=([\d]+)/g.exec(e.scriptUrl),p=E&&E[1],I=e.proxyPartnerId||p||"";return I&&f.push("ppi:"+I),g=function(){var t,n="ias_xpc",r=String(e.scriptUrl).toLowerCase(),i=r.indexOf(n);if(i>-1){var o=r.substring(i+n.length+1),s=o.indexOf("&");t=s>-1?o.substring(0,s):o}else t=l;return t||""}(),l!==g&&f.push("x_xpc:"+g),f},zr=function(e,t,n,r){"use strict";var i,o,s="adsafe_url=",a="&adsafe_type=",c=[],u=function(e){return-1!==e.key.indexOf("q")||-1!==e.key.indexOf("g")},d=function(e){var i,o,u,d=e.val,g=e.key,l=(o=g,u=s.length+a.length+c.join("&").length+o.length+n,t-u);r&&l<d.length&&l>0&&(d=d.substr(0,l)),(d.length||""===e.val||""===e.type)&&function(e){var n=c.join("&").length;return e.length+n<=t}(i=s+d+a+g)&&c.push(i)};return e&&e.length&&(i=m(e).map((function(e,t){if(u(t))return t})),o=m(e).map((function(e,t){if(!u(t))return t})),m(i.concat(o)).each((function(e,t){d(t)}))),c},Jr=function(){"use strict";return{isApplicable:function(e){var t=We.getWindow();return!(!t.navigator||!t.navigator.plugins)},start:function(e){var t,n,r,i=We.getWindow(),o=ei(i.navigator.plugins),s=o.hash();n=s.join("."),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:n},x.PLUGIN_LIST,{type:T.IMPRESSION_EVENT}),s.length&&(t=o.decode(s),r=t.join("."),h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,{output:r},x.PLUGIN_DECODED,{type:T.DT_CODES.ADTALK}))}}},Qr=function(e,t){"use strict";return{start:function(){try{var n=$r(),r=n.getMethodName(e),i=new se(t.getEnabledScriptUrl(e));new ti((o=We.getDoc()).body||o.head||o.documentElement,i).getWindow()[r]=n.getMethod(t)}catch(e){h.getAggregator().trigger(L.ERROR,T.ERROR_CODES.FEATURE_SCRIPT)}var o}}},$r=function(){"use strict";var t=function(t,n,r){t===e.asid&&(r.unshift(n),h.getAggregator().trigger.apply(null,r))};return{getMethod:function(n){return function(r){var i={asid:e.asid,constant:T,features:n,context:Ae,dtBaseURL:e.dtBaseURL,spg:ni};"function"==typeof r&&r(t,i)}},getMethodName:function(e){return"register_"+e}}},Zr=function(){"use strict";return{start:function(e,t){m(e).each((function(e,n){t.getEnabledScriptUrl(n)&&Qr(n,t).start()}))}}},ei=function(e){"use strict";var t=function(e){return e.filename.replace(/\.plugin$/,"")};return{hash:function(){for(var n,r,i,o=0,s=e.length,a=[];o<s;o++)r=t(e[o]),i=Xe.hashCode(r),n=m.toBase(i,62).slice(-4),a.push(n);return a},decode:function(n){var r,i;return r=We.floor(We.random()*n.length),i=encodeURIComponent(t(e[r])),[n[r],i]}}},ti=function(t,n){"use strict";var r,i=function(){return"about:blank"};return function(n){var o;(r=Oe.createHiddenIframe()).setAttribute("src",i()),r.setAttribute("class","_ntnrjf7826-hj"),(t||e.contextNode.parentNode).appendChild(r),o=function(e){return e.contentWindow.document}(r);var s=["<head></head>",'<body onload="',"var d = document;","var s = d.createElement('script');","d.getElementsByTagName('head')[0].","appendChild(s).src","='"+n+"'\">"].join("");o.open().write(s),o.close()}(n),{getWindow:function(){return r.contentWindow}}},ni=function(t){"use strict";var n=new z;n.listen((function(n){return n&&n.scaInfoOriginatorASID&&n.scaInfoOriginatorASID!==e.asid&&n.cache&&t.allExpectedKeysPresent(n.cache)}),(function(e,r){n.stop(),We.setTimeout((function(){t.isDtCallAlreadySent()||(h.getAggregator().trigger(L.ADD_THROTTLED_PROP,T.DT_SLOT.FF,"spg",r.scaInfoOriginatorASID),m(r.cache).each((function(e,n){t.addToCache(e,n)})))}),We.round(1e3*We.random()))})),h.getAggregator().on("addToSpg",(function(e,n){t.addToCache(n,e),t.isFull()&&(t.sendToOtherTags(),We.setTimeout(t.sendToOtherTags,1300),We.setTimeout(t.sendToOtherTags,3200))}))},ri={name:"spg",dependencies:["spgCache"],creator:ni,settings:{tier:T.TIERS.PRE_IMPRESSION_FRAUD,applies:function(e,t,n){"use strict";return e.on("spg")}}},ii={name:"spgCache",dependencies:[],creator:function(){"use strict";var t=["asp","ch","fsc","mvn","no","sd"],n={},r=!1,i=function(){return o(n)},o=function(e){return m(e).keys().sort().toString()===t.toString()},s=function(){r||(r=!0,m(n).each((function(e,t){h.getAggregator().trigger(L.ADD_OUTPUT_ITEM,t,e,{type:T.DT_CODES.SCA,minDt:!0,sendOnce:!0})})),h.getAggregator().trigger(L.SEND_MIN_DT,T.DT_CODES.SCA))};return{allExpectedKeysPresent:o,isDtCallAlreadySent:function(){return r},addToCache:function(e,t){t&&t.output&&!i()&&(n[e]=t),i()&&s()},isFull:i,sendToOtherTags:function(){(new J).send({scaInfoOriginatorASID:e.asid,cache:n})}}},settings:{}},oi=function(){for(var e=[Br,Wr,Gr,st,ot,et,tt,Qe,rt,nt,$e,kr,Hr,ce,St,Mn,ii,ri],t=0;t<e.length;t+=1)h(e[t].name,e[t].dependencies,e[t].creator,e[t].settings)};const si=new RegExp("^(ft|ftias)_?.*_(\\d+)$"),ai="?iasend?",ci=({aggregator:e,ftInstance:t,macros:n})=>{try{const r=(({ftInstance:e,macros:t})=>{const n=Object.keys(t),r=n.map((e=>`${e}=${t[e]}`)).join("&")+ai;let i=e.replaceMacros(r);const o=i.indexOf(ai);return o>0&&(i=i.substring(0,o)),i.split("&").reduce(((e,t)=>{const r=t.split("="),i=r?r[0]:void 0,o=r?r[1]:void 0;return i&&n.includes(i)&&i&&o&&(e[i]=o),e}),{})})({ftInstance:t,macros:n});for(const[t,n]of Object.entries(r)){const r="string"==typeof n?n:"number"==typeof n?n.toString():n;e.trigger(L.ADD_OUTPUT_ITEM,{output:r},t,{type:T.DT_CODES.ADSERVER_MACROS,standalone:!0})}Object.keys(r).length>0&&e.trigger(L.SEND_DT,T.DT_CODES.ADSERVER_MACROS)}catch(e){}},ui=({checkInterval:e,collectorTimeout:t,aggregator:n,macros:r,contextNode:i,scopedWindow:o})=>{const s=We.setInterval((()=>{const e=(({contextNode:e,scopedWindow:t})=>{var n;const r=null===(n=null==e?void 0:e.getAttribute(T.CALLBACK_IDENTIFIER.toString()))||void 0===n?void 0:n.match(si);if(!r||r.length<3)return;const i=r[2],o=t?t[`ft${i}`]:null;return o&&"function"==typeof o.replaceMacros?o:void 0})({contextNode:i,scopedWindow:o});e&&(We.clearInterval(s),ci({aggregator:n,ftInstance:e,macros:r}))}),e);We.setTimeout((()=>{We.clearInterval(s)}),t)};class di{constructor({macros:e,collectorTimeout:t,checkInterval:n,aggregator:r,scopedWindow:i}){this.macros={},this.collectorTimeout=5e3,this.checkInterval=500,this.aggregator=h.getAggregator(),this.collectorTimeout=null!=t?t:this.collectorTimeout,this.checkInterval=null!=n?n:this.checkInterval,this.aggregator=r||this.aggregator,this.scopedWindow=i||("undefined"!=typeof window?window:void 0),this.macros=e||this.macros}applies({contextNode:e,features:t}){var n;const r=null!=this.scopedWindow,i=null!=t&&1==t.on("ftPostRedirectMacros"),o=null!=e&&null!=e.getAttribute(T.CALLBACK_IDENTIFIER.toString())&&si.test(null!==(n=null==e?void 0:e.getAttribute(T.CALLBACK_IDENTIFIER.toString()))&&void 0!==n?n:"");return!!(r&&i&&o)}start({contextNode:e}){this.aggregator.on(L.IMPRESSION_SENT,(()=>{ui({checkInterval:this.checkInterval,collectorTimeout:this.collectorTimeout,aggregator:this.aggregator,macros:this.macros,contextNode:e,scopedWindow:this.scopedWindow})}))}}class gi{constructor({contextNode:e,features:t,bootstrapper:n,macroCollector:r}){this.contextNode=e,this.features=t,this.macroCollectors=r||[new di({macros:n.ftMacros})]}start(){for(const e of this.macroCollectors)e.applies({contextNode:this.contextNode,features:this.features})&&e.start({contextNode:this.contextNode})}}try{!function(){"use strict";var t,n,r,i,c,g,l;try{(()=>{var t;const n=new a({defaultBootstrapperConfig:e});let r,i=s.Script;if(d.addModel(n),n.set("mainBirthdate",n.birthdate?(new Date).getTime()-n.birthdate:-1),Ae.isDomless()||(i=We.getWindow().location.href.includes("fw.html")?s.Iframe:s.Script),n.set("tagDeliveryType",i),!Ae.isDomless()&&m.isDef(e.contextNode)){const t=e.contextNode;r=new u({contextNodeElement:t}),d.addModel(r)}const c=new o;d.addModel(c),null===(t=d.jsConfigRequest)||void 0===t||t.buildRequestUrlFromParameters({contextNode:r})})()}catch(e){}e.perf.markStart(A),oi(),h.startSystem();var f=h.getAggregator();i={},c={},f.provide({[U.OMID_AD_SESSION_CONTEXT]:i}),f.provide({[U.OMID_AS_VERIFICATION_PARAMS]:c}),d.measurementConfig.isResolved&&f.provide(U.FEATURES,Me()),t=Re(),n=Ue(),r=(new pe).createInstance(t,n),f.provide({[U.ERRORS]:t,[U.JSONP]:n,[U.COMMUNICATION]:r}),g=__IASOmidVerificationClient,f.provide({[U.OMID_VERIFICATION_CLIENT]:g}),l=[{environment:Mt(g),adSessionReadyStrategy:Pt(g)},{environment:Vt(),adSessionReadyStrategy:Ft()}],new bt(l).resolve().adSessionReadyStrategy.start(),e.perf.markEnd(A)}()}catch(t){__IntegralASDiagnosticCall("initialize",t,e)}};