/*! For license information please see mol-adverts-delayed.js.LICENSE.txt */ (()=>{var __webpack_modules__={6485(e,t,n){"use strict";n.d(t,{Ay:()=>l});var i=n(692);const r={},o=(e,t)=>{let n=(e.match(t)||[])[1]||"";return n=n.split(/[._]/g),{build:parseInt(n[2]||-1,10),major:parseInt(n[0]||-1,10),minor:parseInt(n[1]||-1,10)}},s=()=>{const e=navigator.userAgent;r.ua=e,r.isWindows=Boolean(e.match(/Windows Phone|iemobile|WPDesktop/i));try{r.isIPad=(Boolean(e.match(/iPad/i))||"iPad"===navigator.platform||"MacIntel"===navigator.platform&&"ontouchend"in document)&&!r.isWindows}catch(e){r.isIPad=!1}r.isIDevice=(Boolean(e.match(/(iPad|iPhone|iPod)/i))||r.isIPad)&&!r.isWindows,r.isIPhone=Boolean(e.match(/iPhone/i))&&!r.isWindows,r.isAndroid=Boolean(e.match(/Android/i))&&!r.isWindows,r.isChrome=Boolean(e.match(/Chrome/i)),r.isFirefox=Boolean(e.match(/Firefox/i)),r.isKindleSilk=Boolean(e.match(/Silk|Kindle/i)),r.isAndroidPhone=r.isAndroid&&Boolean(e.match(/Mobile/i)),r.isAndroidTablet=r.isAndroid&&!Boolean(e.match(/Mobile/i)),r.isMobile=r.isIDevice||r.isAndroid||r.isWindows,r.isAndroidStock=r.isAndroid&&!r.isChrome&&!r.isFirefox&&!r.isKindleSilk;try{r.isIDevice?(r.mobileName=e.match(/(iPad|iPhone|iPod)/i)?e.match(/(iPad|iPhone|iPod)/i)[0]:"iPad",r.mobileVersion=o(e,/OS ((?:\d+[._]?)+)/i)):r.isAndroid?(r.mobileName="Android",r.mobileVersion=o(e,/Android ((?:\d+[._]?)+)/i)):r.isWindows?(r.mobileName="Windows Phone",r.mobileVersion=o(e,/Windows Phone ((?:\d+[._]?)+)/i)):(r.mobileName=null,r.mobileVersion={build:-1,major:-1,minor:-1})}catch(e){i.logger.error("Failed to parse mobile name and version",e),r.mobileName="unknown"}},a=()=>(i.logger.warn('"getZoom" function has been deprecated as it does not provide reliable values'),screen.deviceXDPI&&screen.logicalXDPI?screen.deviceXDPI/screen.logicalXDPI:document.width?document.width/window.innerWidth:screen.width&&window.innerWidth?screen.width/window.innerWidth:Math.max(document.documentElement.clientWidth,document.body.offsetWidth,document.body.scrollWidth)/(window.innerWidth||document.documentElement.clientWidth)),d=()=>window.matchMedia?window.matchMedia("(orientation:landscape)").matches:(window.innerWidth||document.documentElement.clientWidth)>(window.innerHeight||document.documentElement.clientHeight);try{s(),r.isAndroidStock&&(i.logger.debug("Executing Android Stock browser Orientation bug fix"),window.addEventListener("orientationchange",()=>{const e=document.querySelector("meta[name=viewport]");if(e){const t=e.getAttribute("content");e.setAttribute("content","width=10000, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"),setTimeout(()=>{e.setAttribute("content",t)},0)}}))}catch(e){i.logger.error("Error parsing user agent",e)}const l={deviceData:r,disableScroll:()=>{document.body.style.overflow="hidden",document.ontouchmove=e=>e.preventDefault()},enableScroll:()=>{document.body.style.overflow="auto",document.ontouchmove=()=>!0},getMobileVersion:()=>r.mobileVersion,getZoom:a,isAndroid:()=>r.isAndroid,isAndroidPhone:()=>r.isAndroidPhone,isAndroidStock:()=>r.isAndroidStock,isAndroidTablet:()=>r.isAndroidTablet,isChrome:()=>r.isChrome,isFirefox:()=>r.isFirefox,isIDevice:()=>r.isIDevice,isIPad:()=>r.isIPad,isIPhone:()=>r.isIPhone,isKindleSilk:()=>r.isKindleSilk,isLandscape:d,isMobile:()=>r.isMobile,isPortrait:()=>!d(),isWindows:()=>r.isWindows,isZoomed:()=>a()>1,onTouchEnd:e=>(setTimeout(e,400),e()),parseUserAgent:s,setupMobileClass:()=>{if(i.logger.warn('"setupMobileClass" has been deprecated and "features detection" should be prefered over "device detection"'),r.mobileName){const e=r.mobileName.toLowerCase().replace(/ /,"-");document.body.classList.add(e)}}}},3068(e,t,n){"use strict";n.r(t),n.d(t,{AD_ATTRIBUTE:()=>d,TAGS_ATTRIBUTE:()=>l,addLoadListener:()=>u,onAdLoaded:()=>w,parse:()=>g,refreshAdvert:()=>y,refreshAdvertsWithNewTags:()=>b,requestAdvert:()=>m,requestDelayedAdvert:()=>_,reset:()=>S,stringify:()=>h});var i=n(7007),r=n(490),o=n(7989),s=n(6381);const a=n(3352),d="data-adverts-ad",l="data-adverts-tags",c=n(5923),u=n(4918),p=(0,r.hM)("AdsRenderer"),h=a.stringify,g=a.parse;function f(){return i}function m(e){if(p("requestAdvert",e.pos,e),["gpt","oop","gptOOP"].some(t=>e.slotTypes.includes(t))){if(e.id){const t=document.getElementById(e.id);t&&(t.setAttribute(d,a.stringify(e)),t.matches(".adHolder *")||t.classList.contains("dmg-ads-ad")||t.classList.add("adHolder"))}return f().requestAd(e)}p("unsupported slot type, bailing",e.pos,e.slotTypes)}function y(e){f().refreshAdvert(e)}function b(e,t){const n=e.map(v).filter(Boolean).map(e=>e.ad);f().refreshAdvertsWithNewTags(n,t)}function v(e){const t=document.getElementById(e);if(t){const e=t.getAttribute(d),n=t.getAttribute(l);let i,r,s;if(e)return r=a.parse(e),i=(0,o.get)(r.pos)||r,s=n?a.parse(n):null,{ad:i,tags:s,container:t}}return null}async function _(e){}function w(e){for(let t=0,n=c.length;tw(t)),I.on("refresh ads",e=>{let{ids:t,plugins:n}=e;return b(t,n)})},4918(e,t,n){const i=n(5923);e.exports=function(e){"function"==typeof e&&i.push(e)}},5923(e){e.exports=[]},7007(e,t,n){"use strict";n.r(t),n.d(t,{name:()=>v,refreshAdvert:()=>m,refreshAdvertsWithNewTags:()=>y,requestAd:()=>f,reset:()=>b});var i=n(6381),r=n(1776),o=n(1900),s=n(490),a=n(9004),d=n(2511);function l(e,t){t("formTags",e);const n=e.flat().map(e=>e?e.tags?e.tags:e:{});return(0,a.x5)(n.reduce((e,t)=>({...e,...Array.isArray(t)&&t.reduce((e,t)=>({...e,...t}),{})||t}),{}))}async function c(e,t,n){const i=await((e,t,n)=>new Promise((i,o)=>{const s=`${t.pos}_${d.ph.inc(`collect-targeting-banner-${t.pos}`)}`,a=(0,r.Jt)(`auction.maxTime.${t.pos}`)??(0,r.Jt)("auction.maxTime",2e3),l=[];let c=!1;const u=e.openStream({message:["get tags",{slot:t,timeout:a-100,auctionId:s}],timeout:a,controlHandler:n=>{let{type:i,...r}=n;e.emit("auction event",t.pos,i,r)}}),p=new Promise(e=>{u.on("end",e)}),h=t.promiseToWait?t.promiseToWait.then(()=>{t.promiseToWait=void 0}):Promise.resolve();n?.("auction start",{pos:t.pos,auctionId:s,timeout:a,waiting:!!t.promiseToWait}),u.on("data",e=>{l.push(e)}).on("error",e=>{c||(c=!0,n?.("auction error",{pos:t.pos,auctionId:s,error:e?.message}),o(e))}),Promise.all([p,h]).then(()=>{c||(c=!0,e.emit("auction event",t.pos,"end"),n?.("auction end",{pos:t.pos,auctionId:s,tagsCount:l.length}),i(l))}).catch(e=>{c||(c=!0,n?.("auction end error",{pos:t.pos,auctionId:s,error:e?.message}),o(e))})}))(e,n,t),o=await e.invokeAll("get tags based on tags",i);return[{...l(i,t),...o.reduce((e,t)=>({...e,...t}),{})}]}const u=i.Ay.broker("DfpServer"),p=(0,s.hM)("DfpServer");let h={};u.on("destroy slot",e=>{delete h[e]});let g=Promise.resolve();async function f(e){if(!(0,r.Jt)("tagsManager.useChannel")){if(h[e.pos])return h[e.pos];u.emit("start bidding",e.pos);let t=[];if(e.skipHeaderBiders)p("skipping header biders for",e.pos);else{p("starting auction for",e.pos);const n=(0,r.Jt)("auction.maxTime",2e3),[i]=await Promise.all([c(u,p,e),(0,o.s5)(n,[g])]);t=i,p("auction ended for",e.pos,t),u.emit("bidding ended",e.pos)}return u.emit("slot ready for ad",e,t),{tags:t}}u.emit("collect ad targeting",e)}function m(e){u.emit("bidding ended",e.pos),u.emit("gpt refreshAdvert",e.pos)}function y(e,t){const n=[];e.forEach(async t=>{if(p("starting auction for",t.pos),(0,r.Jt)("tagsManager.useChannel"))u.emit("collect ad targeting for refresh",t);else{const i=await c(u,p,t);n.push({ad:t,tags:i}),p("auction ended for",t.pos,i),u.emit("bidding ended",t.pos),n.length===e.length&&u.emit("slot ready to refresh",n)}})}function b(){h={}}u.on("set page level targeting",e=>{p("new page level targeting:",e),g=g.then(()=>e).then(()=>{})}),u.on("slot ready for ad",(e,t)=>{h[e.pos]={tags:t}});const v="DfpServer"},2121(e,t,n){"use strict";n.r(t),n.d(t,{pseudoPositions:()=>m});var i=n(6381),r=n(9873),o=n(7989),s=n(7480),a=n(2348),d=n(490);function l(e,t){if(Array.isArray(e))e.forEach(t);else{if("object"!=typeof e||null===e)throw new Error(`dont know how to iterate on ${e}`);for(const[n,i]of Object.entries(e))t(i,n)}}const{onBodyAvailable:c}=n(7485),u=i.Ay.broker("DfpAsyncHandler"),p=(0,d.hM)("dfpAsyncHandler"),h={},g={},f=["sky_right_top","sky_left_top","mpu_top","billboard","sticky_banner"],m=new Set(["native","mpu_puff_others","puff_ad_others","mpu_mobile_others","mpu_factbox","mpu_mobile_factbox"]);function y(e,t){if(e&&e.slots&&e.slots.length)return e.slots.forEach(function(i){const r=document.getElementById(i.slot.getSlotElementId()),o=!!r&&!r.classList.contains("watermark");var s;i.slot.addService(googletag.pubads()).setTargeting("pos",e.dfpPos||e.pos).setCollapseEmptyDiv(o,o&&function(e){const t="billboard"===e&&"home"===(n.g.PageCriteria.channel||"").slice(-4);return!f.includes(e)&&!t}(e.pos)),e.targeting&&l(e.targeting,(e,t)=>{i.slot.setTargeting(t,e)}),e.custom&&e.custom.length&&(s=i.slot,e.custom,l(function(e){Object.keys(e).forEach(function(t){s.setTargeting(t,e[t])})})),"number"==typeof window.orientation&&i.slot.setTargeting("orientation",MobileUtils.isLandscape()?"landscape":"portrait"),MobileUtils.isMobile()&&i.slot.setTargeting("lat",PageCriteria.latitude||"").setTargeting("lon",PageCriteria.longitude||""),p(`setting targeting for pos: ${e.pos}`,t),function(e,t){t.forEach(function(t){t&&"object"==typeof t&&Object.keys(t).forEach(function(n){e.setTargeting(n,t[n]+"")})})}(i.slot,t)}),e}u.on("api message","metadata",e=>{p("metadata api call:",e);const{ico:t,...n}=e;t&&(n.referrer=t),u.emit("set page level targeting",n)}),u.on({message:"prepare to refresh ads",sync:!0},e=>{const t=googletag.pubads().getSlots().reduce((e,t)=>{const n=t.getTargeting("pos")[0];return e[n]=e[n]||t,e},{});e.map(e=>({pos:e,slot:t[e]})).forEach(e=>{let{pos:t,slot:n}=e;n?n.clearTargeting?n.clearTargeting():console.warn("-----\x3e NO slot.clearTargeting when refreshing ads",t):console.warn("-----\x3e NO SLOT to clear targeting when refreshing ads",t)})}),u.on("slot ready for ad",(e,t)=>{!function(e,t){e.parentId=e.parentId||e.id,e.slots=e.slots||[],e.slots.forEach(function(t){t.parentId=t.parentId||t.id||e.parentId}),b(function(){!function(e){const t=(0,o.get)(e.pos)||e;t&&t.slots&&t.slots.length?e.slots=t.slots:_(e)}(e),y(e,t)}),b(function(){e.slots.forEach(t=>{u.emit("request slot",{pos:e.pos,slotType:t.type,type:e.type,parentId:t.parentId,adUnit:e.adUnit,slot:t.slot})})})}(e,t)});const b=e=>googletag.cmd.push(e);u.on("set slot state",(e,t)=>{const n=g[e];n?n.molAd.state=t:h[e]=t}),u.on("request slot",e=>{"gptSlot"===e.slotType&&(g[e.pos]=e.slot),e.slot.molAd={pos:e.pos,type:e.type,slotType:e.slotType,parentId:e.parentId,adUnit:e.adUnit,state:h[e.pos]},delete h[e.pos],u.invoke("googletag.display",e.parentId,e.slot),u.emit("ad requested",e.pos)}),u.on("slot ready to refresh",function(e){e.forEach(e=>y(e.ad,e.tags)),S(e.map(e=>e.ad))}),u.on("destroy slot",e=>{const t=(0,o.get)(e);t?.slots?.length&&(googletag.destroySlots(t.slots.map(e=>e.slot)),delete t.slots)});const v={gpt:function(e){const t=(0,s.CA)(e),n=e.sizeMapping,i=e.id,r=e.adUnit;p("define slot for",e.pos,{sizes:t,sizeMapping:n,adUnit:r,id:i});const o=googletag.defineSlot(r,t,i);if(!o)throw new k(e);e.sizeMapping&&function(e,t){const n=t.reduce((e,t)=>{let[n,i]=t;return e.addSize(n,i)},googletag.sizeMapping());e.defineSizeMapping(n.build())}(o,e.sizeMapping),e.slots.push({type:"gptSlot",slot:o,parentId:e.id}),u.emit("slot created",e,o)},gptOOP:function(e){const t=e.slotTypes.includes("gpt")?function(e){const t=e.parentId+"-oop";if(document.getElementById(t))return t;const n=document.getElementById(e.parentId),i=document.createElement("div");return i.id=t,n?n.parentNode.insertBefore(i,n.nextSibling):c(function(){document.body.appendChild(i)}),t}(e):e.parentId,n=(0,s.CA)(e),i=e.sizeMapping,r=e.adUnit;p("define oop slot for",e.pos,{sizes:n,sizeMapping:i,adUnit:r,id:t});const o=googletag.defineOutOfPageSlot(r,t);if(!o)throw new k(e);e.slots.push({type:"oopGptSlot",slot:o,parentId:t})}};function _(e){return e.adUnit=e.adUnit||(0,r.A)(e.pos),e.slots=e.slots||[],p(`${e.pos}: creating slots using slotTypes definition`),e.slotTypes.forEach(t=>{const n=v[t];n&&n(e)}),u.emit("update description",e.pos,e),e.slots.length&&y(e,[]),e}const w=e=>{let{slot:{molAd:{pos:t,parentId:n}}}=e;return n&&"string"==typeof n&&n.includes("-oop")?`${t}-oop`:t};function I(e){m.has(e)||b(function(){const t=(0,o.get)(e);t&&!t.slots?.length&&t.earlyBidding&&_(t)})}function S(e){const t=e.map(function(e){return T(e.pos)});u.invoke("googletag.pubads.refresh",t)}function T(e){return g[e]}u.on("prepare gpt slot",I),u.on("slots initialized",e=>{var t;t=e,b(function(){const e=googletag.pubads();e.set("page_url",location.hostname+location.pathname).setTargeting("article",adArticleId).setTargeting("environment",adEnvironment).setTargeting("country",PageCriteria.geo.toLowerCase()).addEventListener("slotRequested",e=>e.slot.molAd&&u.emit("dfp slot requested",w(e),e)).addEventListener("slotRenderEnded",e=>e.slot.molAd&&u.emit("ad rendered",w(e),e)).addEventListener("slotOnload",e=>e.slot.molAd&&u.emit("ad loaded",e,w(e))).addEventListener("impressionViewable",e=>e.slot.molAd&&u.emit("ad viewable",w(e),e)).addEventListener("slotVisibilityChanged",e=>e.slot.molAd&&u.emit("slot visibility changed",w(e),e)).addEventListener("slotResponseReceived",e=>e.slot.molAd&&u.emit("slot response received",w(e),e)).setCentering(PageCriteria.isMobile&&!PageCriteria.isTablet),a.fX.testmode&&e.setTargeting("testmode",a.fX.testmode),u.emit("gpt initialized",googletag)}),t.forEach(I),b(function(){googletag.pubads().enableAsyncRendering(),googletag.enableServices()})}),u.on("gpt refreshAdvert",e=>{!function(e){const t=T(e);t&&(t.setTargeting("refresh","true"),u.invoke("googletag.pubads.refresh",[t]))}(e)}),u.on("gpt refreshAdverts",e=>{S(e)});class k extends Error{constructor(e){super(`Could not create a slot. googletag.defineSlot returned null. Probably because it has already been defined. Pos: ${e.pos}. ID: ${e.id}`)}}},3352(module){const omit=function(e,t){const n={};if(t=t||[],"object"==typeof e)for(const i in e)e.hasOwnProperty(i)&&-1===t.indexOf(i)&&(n[i]=DM.molFeMiniLodash.clone(e[i]));return n},stringify=function(e){return jsonStringify(omit(e,["slots"]))};var jsonStringify=JSON&&"function"==typeof JSON.stringify?JSON.stringify:function(e){switch(typeof e){case"string":return'"'+e.replace(/("|\\)/g,"\\$1")+'"';case"boolean":case"number":return e.toString();case"object":if("[object Array]"===Object.prototype.toString.call(e))return"["+e.map(stringify).join(",")+"]";if(e)return"{"+Object.keys(e).map(function(t){return stringify(t)+":"+stringify(e[t])}).join(",")+"}";case"undefined":case"function":return"null"}};const parse=JSON&&"function"==typeof JSON.parse?JSON.parse:function(value){return eval("data="+value)};module.exports={stringify,parse}},8210(e,t,n){const i=n(3796),r=function(e,t){this.eventsMap={},this.eventName=e,this.getDomCallback=t,this.domElement={};const n=this;DM.later("DOM_READY",function(){a.call(n)})};function o(e){const t=this.eventsMap[e];this.domElement[e]=this.getDomCallback(e),null!==this.domElement[e]&&this.on(this.domElement[e],this.eventName,function(e){e.stopPropagation();const n=MobileUtils.isLandscape()?"landscape":"portrait";t.call(this,n)})}function s(e){i.getElementById(e)?e in this.eventsMap&&o.call(this,e):delete this.eventsMap[e]}function a(){for(const e in this.eventsMap)s.call(this,e)}r.on=function(e,t,n){e.addEventListener(t,n)},r.fireEvent=document.createEvent?function(e,t){const n=e.ownerDocument.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}:function(e,t){const n=e.ownerDocument.createEventObject();n.eventType=t,e.fireEvent("on"+n.eventType,n)},r.prototype={constructor:r,registerEvent:function(e,t){this.eventsMap[e]=t,s.call(this,e)},getEvent:function(e){return this.eventsMap[e]},on:r.on,fireEvent:r.fireEvent},e.exports=r},8730(e,t,n){const i=n(8210),r=n(3796),o="data-impression-url",s="data-ted-tracking",a=new i("onImpression",function(e){return function(e){return r.getElementById(e)}(e)});e.exports={DATA_IMPRESSION_URL:o,onImpression:function(){a.registerEvent.apply(a,arguments)},registerImpression:function(e,t){const n=Array.prototype.filter.call(r.getAdContainer(e).getElementsByTagName("div"),function(e){return e.getAttribute(o)});n.length&&(function(e){const t=e.getAttribute(o);(new Image).src=t,e.getAttribute(s)&&(DM.later?DM.later("bundle",function(){DM.pageEvents.fireEvent(DM.pageEvents.PAGE_AD_DISPLAYED,{type:"dfp-impression"})}):DM.pageEvents.fireEvent(DM.pageEvents.PAGE_AD_DISPLAYED,{type:"dfp-impression"}))}(n[0]),function(e){setTimeout(function(){!function(){a.fireEvent.apply(a,arguments)}(e,"onImpression"),e.getAttribute(s)&&(DM.later?DM.later("bundle",function(){DM.pageEvents.fireEvent(DM.pageEvents.PAGE_AD_DISPLAYED,{type:"3rd-party-impression"})}):DM.pageEvents.fireEvent(DM.pageEvents.PAGE_AD_DISPLAYED,{type:"3rd-party-impression"}))},0)}(n[0]),t.call(this,e))}}},2144(e,t,n){"use strict";n.d(t,{Ai:()=>r,FF:()=>u,HV:()=>o,Z:()=>c,k4:()=>d,sb:()=>a,su:()=>p,wg:()=>s,x1:()=>i,yU:()=>l});const i=(e,t,n)=>{const i=new Array(n.length);let r=0;for(let o=0,{length:s}=n;o{const n=t.indexOf(e);return-1===n?t:[...t.slice(0,n),...t.slice(n+1)]},o=e=>e[e.length-1],s=e=>void 0===e?[]:Array.isArray(e)?e:[e],a=e=>{const t=new Set(e);return Array.from(t)},d=e=>{let t=e.length;const n=[...e];for(;t;){const e=Math.floor(Math.random()*t--),i=n[t];n[t]=n[e],n[e]=i}return n};function l(e,t){return e.map((e,n)=>[e,t[n]])}function c(e,t){const n=[...e];return n.sort((e,n)=>e[t]-n[t]),n}function u(e,t){const n=new Set(t);return e.filter(e=>!n.has(e))}const p=e=>e.find(e=>void 0!==e)},1900(e,t,n){"use strict";n.d(t,{G0:()=>h,Mi:()=>c,O9:()=>f,QZ:()=>o,nz:()=>s,s5:()=>l,tN:()=>d,uz:()=>g,v6:()=>p,wR:()=>r});class i extends Error{constructor(e){super(`Exceeded ${e}`)}}const r=e=>new Promise(t=>setTimeout(t,e)),o=e=>new Promise(t=>0===e?t(u(void 0,10)):setTimeout(t,e)),s=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new i(e);throw await o(e),t},a=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new i(e);throw await r(e),t},d=(e,t,n)=>Promise.race([t,a(e,n)]),l=async(e,t)=>{const n=[],i=[];return await Promise.race([r(e),Promise.all(t.map(e=>e.then(e=>n.push(e)).catch(e=>i.push(e))))]),{errors:i,results:n}};function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;const o=Date.now(),s=a=>Promise.resolve(e()).then(e=>{if(e)return e;if(Date.now()-os(a+1))}throw new i(n)});return s(0)}const u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return new Promise(n=>{n(t?u(e,t-1):e)})};function p(){let e,t,n=!1;return{isSettled:()=>n,promise:new Promise((n,i)=>{e=i,t=n}),reject(t){n||(n=!0,e(t))},resolve(e){n||(n=!0,t(e))}}}async function h(e,t,n){let i=e;return await Promise.all(n.map(e=>e.then(e=>{i=t(i,e)}))),i}async function g(){for(var e=arguments.length,t=new Array(e),n=0;n{n=new AbortController;const{signal:r}=n;if(await t(r),r.aborted)return;const o=setTimeout(i,e);r.addEventListener("abort",()=>clearTimeout(o))};return{start:i,stop(){n?.abort()}}}},9143(e,t,n){"use strict";n.d(t,{EY:()=>d,MR:()=>l,jG:()=>h,q2:()=>c});var i=n(2144);function r(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function o(e,t,n){return e.set(a(e,t),n),n}function s(e,t){return e.get(a(e,t))}function a(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}const d=e=>{if("function"==typeof Event)return new e.constructor(e.type,e);{const t=document.createEvent("Event");return t.initEvent(e.type,e.bubbles,e.cancelable),t}};function l(e,t,n){return e.on(t,n),()=>e.off(t,n)}function c(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}var u=new WeakMap,p=new WeakMap;class h{constructor(){r(this,u,[]),r(this,p,[])}on(e,t,n){return this.add(l(e,t,n))}one(e,t,n){return this.add(function(e,t,n){return e.one(t,n),()=>e.off(t,n)}(e,t,n))}onDispose(e){s(p,this).push(e)}addEventListener(e,t,n,i){return this.add(c(e,t,n,i))}add(e){return s(u,this).push(()=>{this.remove(e),e()}),e}remove(e){o(u,this,(0,i.Ai)(e,s(u,this)))}onBrokerEvent(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;ro.cancel())}onceBrokerEvent(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;ro.cancel())}dispose(){try{for(const e of s(u,this))e();for(const e of s(p,this))e()}catch(e){console.error(e)}finally{o(u,this,[]),o(p,this,[])}}}},9637(e,t,n){"use strict";function i(e,t){let n,i=0,r=!1;const o=s=>{if(r){i=s,clearTimeout(n),r=!1;const a=!n;n=setTimeout(o,t),e(a)}else n=void 0};return()=>{r=!0;const e=Date.now&&Date.now()||(new Date).getTime();(!n||e-i>=t)&&o(e)}}n.d(t,{$G:()=>a,Ai:()=>i,Ed:()=>d,Gr:()=>r,l$:()=>s,sg:()=>o});const r=e=>{let t,n=!1;return function(){return n||(n=!0,t=e(...arguments)),t}},o=(e,t)=>{let n,i;const r=function(){for(var r=arguments.length,o=new Array(r),s=0;s{n=void 0,e(...i),i=void 0},t)};return r.callNow=function(){n&&(clearTimeout(n),n=void 0);for(var t=arguments.length,r=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return function*(){let n=1;for(;;)yield Math.min(t,Math.max(e,Math.round(n++**2/10)))}()}},6381(e,t,n){"use strict";n.d(t,{Ay:()=>_,I$:()=>m,Nn:()=>v,QY:()=>u,eC:()=>c});var i=n(1900),r=n(2144),o=n(4053),s=n(9642),a=n.n(s),d=n(9004);function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}class c{constructor(e,t){var n,i,r,o=this;n=this,r=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i{const i=[...n,function(){for(var e=arguments.length,n=new Array(e),i=0;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i2?n-2:0),r=2;r1?t-1:0),i=1;i1?t-1:0),i=1;ie(),this.firedMessages=new Set,this.system=this.broker("MessageBus"),this.emitImmediately=this.emitImmediately.bind(this),this.showUncaughtErrors=!0,this.globalTimeoutOverride=void 0,this.logCall=()=>{}}queuePublish(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;oa(e(t,...r))),s}queueStream(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r{e(t,...i).pipe(a)}),s}broker(e){return new c(this,e)}emit(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r1?t-1:0),i=1;i3?r-3:0),s=3;s{try{if(this.interceptors.length){const s=this.interceptors.filter(e=>!1!==this.doesMessageMatch(e.msg,o));let a=!1;const d=function(){const r=s.shift();for(var l=arguments.length,c=new Array(l),u=0;u0?c:o,r?r.cancelled?d(...o):(a=!0,i.logCall(e,t,r.broker,o,!0),i.callInterceptor(r.callback,o,d,r.broker)):(a&&i.logCall(e,t,void 0,o,!0,!0),n(e,t,o))};r(d())}else r(n(e,t,o))}catch(e){s(e)}})}callInterceptor(e,t,n,i){return e(t,n)}emitImmediately(e,t,n){return Promise.all(this.subscriptions.reduce((i,r)=>{if(r.expectReturn||r.requiresChannel)return i;const o=this.doesMessageMatch(r.msg,n);return!1!==o&&i.push(this.callSubscriber(e,t,r,o,n)),i},[]))}callSubscriber(e,t,n,i,r){const o=r.slice(i);return new Promise((i,s)=>{const a=()=>{try{this.logCall(e,t,n.broker,r),i(n.callback.apply(n.broker,o))}catch(e){"error"===r[0]?(console.error("Exception thrown while handling error for",r,e),s(e)):(this.system.emit("error",...r,e),s(e))}};n.sync?a():this.dispatcher(a)})}addSubscription(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const s=t[t.length-1],a=t.splice(0,t.length-1);return this.subscribe(e,a,s,n,i,r,o)}on(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i2?n-2:0),r=2;r1?n-1:0),r=1;r({subscription:t,matchCount:this.doesMessageMatch(t.msg,e.message)})).filter(e=>!1!==e.matchCount)}callFilteredSubscription(e,t,n,i){let{message:r,map:o}=n,{matchCount:s,subscription:a}=i;const d=this.callSubscriber(e,t,a,s,r);return o&&a.expectReturn?o(d,a):d}callFilteredSubscriptions(e,t,n,i){return i.reduce((i,r,o)=>{if(r.subscription.requiresChannel){if(n.messageBusChannel){const i=[...n.message];i.splice(r.matchCount,0,{channel:n.messageBusChannel.channel(`${i[0]}-${o}`)}),this.callFilteredSubscription(e,t,{message:i},r)}}else{const o=this.callFilteredSubscription(e,t,n,r);r.subscription.expectReturn&&i.push(o)}return i},[])}async invoke(e,t){var n=this;const r=async function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;oe.subscription.expectReturn);if(!a)return Promise.reject(new h(r));d.length>0&&console.warn("Total of",d.length+1,"endpoints registered for message",r);const l=n.callInterceptors(e,"invoke",(e,t,i)=>n.callFilteredSubscription(e,t,{...s,message:i},a),...s.message);return void 0!==s.timeout?Promise.race([l,(0,i.nz)(s.timeout)]):l};for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a1?t-1:0),o=1;o{const r={...s,message:i},o=n.getSubscriptionsInterestedIn(r).filter(e=>{let{subscription:{requiresChannel:t}}=e;return!t});s.controlHandler&&s.controlHandler({type:"interested endpoint",endpoints:o.reduce((e,t)=>{let{subscription:{broker:{id:n},expectReturn:i,unbounded:r}}=t;return i&&!r?[...e,n]:e},[])});const a=n.callFilteredSubscriptions(e,t,r,o);return s.subscriptionsCalledCallback&&s.subscriptionsCalledCallback(o),a},...s.message);let d=a?a.filter(e=>e):[];const l=[];d=d.map(e=>e.then(e=>{l.push(e)},e=>{if(s.catch)try{s.catch(e)}catch(e){n.system.emit("error",e)}else n.system.emit("error",e)}));let c=Promise.all(d).then(e=>e.filter(e=>e));return void 0!==s.timeout&&(c=Promise.race([c,(0,i.QZ)(s.timeout)])),c.then(()=>l)};for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];const d=t[0],l="object"==typeof d?(0,r.wg)(d.message):t,c="object"==typeof d&&!!d.sync;if(n&&"function"!=typeof n)throw new Error(`Callback has to be a function, but a "${typeof n}" was passed`);const u={broker:e,msg:l,callback:n,sync:c,expectReturn:i,isStream:o,unbounded:s,cancel:()=>{this.subscriptions=(0,r.Ai)(u,this.subscriptions)},requiresChannel:a};return this.subscriptions.push(u),u}hasSubscriber(e){return-1!==this.subscriptions.findIndex(t=>{let{msg:[n]}=t;return n===e})}interceptOnce(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r2?n-2:0),r=2;r{a.cancelled=!0,this.interceptors=this.interceptors.filter(e=>e!==a)}}start(){var e=this;let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];for(this.system.on("error",function(){e.showUncaughtErrors&&console.error(...arguments)}),this.started=!0;this.queued.length;)this.queued.shift()?.();this.system.emit("system ready"),t&&n.g.DM?.later?.go?.("mol-adverts")}setDispatcher(e){this.dispatcher=e}getDispatcher(){return this.dispatcher}registerStream(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1?t-1:0),i=1;i1?n-1:0),s=1;s{c||0!==--u||(c=!0,l.push(null))};return void 0!==d.timeout&&((0,i.QZ)(d.timeout).then(()=>{!c&&l.push(null),c=!0}),delete d.timeout),t.invokeAll(e,{...d,map:(e,n)=>{let{broker:i,unbounded:s}=n;return s||u++,e.then(e=>{const t=e instanceof a().Readable?e:o.ci(e?[e]:[]);t.on("data",e=>!c&&l.push(e)),s||t.on("end",()=>{d.controlHandler&&d.controlHandler({type:"stream done",endpoint:i.id}),p()})},e=>{d.emitErrors?l.emit("error",e):t.system.emit("error",...r,e),s||p()})},subscriptionsCalledCallback:()=>{c||0!==u||(c=!0,l.push(null))}}),l};for(var r=arguments.length,s=new Array(r>1?r-1:0),d=1;d0&&void 0!==arguments[0]?arguments[0]:{};return o.uh(e)}createTransformObjectStream(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.M7(e)}collectStreamAsPromise(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1?n-1:0),o=1;oe.subscription.expectReturn),d=t.callInterceptors(e,"invokeChainMutable",(e,n,i)=>new Promise(o=>{const d=[...i],l=d.pop();o(a.reduce(async(i,o)=>{const a=await i,{matchCount:l,subscription:c}=o;return t.callSubscriber(e,n,c,l,[...d,a]).catch(e=>(s.onError&&s.onError(e,r),t.system.emit("error",...r,e),a))},Promise.resolve(l)))}),...s.message);return void 0!==s.timeout?Promise.race([d,(0,i.nz)(s.timeout)]):d};for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s1?t-1:0),i=1;i1?t-1:0),r=1;r{const r={...s,message:n},o=i.getSubscriptionsInterestedIn(r).filter(e=>{let{subscription:{requiresChannel:t}}=e;return t}),a=i.callFilteredSubscriptions(e,t,r,o);return s.subscriptionsCalledCallback&&s.subscriptionsCalledCallback(o),a},...s.message),o};for(var a=arguments.length,d=new Array(a>2?a-2:0),l=2;l{let[i,r]=t;return"object"==typeof r&&null!==r?e(r,n[i]):n[i]===r})}(this.filter,e)}}function m(e){return new f(e)}var y=new WeakMap;class b extends g{constructor(e){var t,n;super(),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,y,void 0),n=e,(t=y).set(l(t,this),n)}matches(e){return(0,d.Gv)(e)&&(t=y,t.get(l(t,this))).every(t=>t in e);var t}}function v(e){return new b(e)}const _=new u},4662(e,t,n){"use strict";n.r(t),n.d(t,{BrokerChannel:()=>f,MessageBusChannel:()=>g});var i=n(2144),r=n(6381),o=n(1900);function s(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function a(e,t){return e.get(l(e,t))}function d(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var c=new WeakMap,u=new WeakMap,p=new WeakMap,h=new WeakMap;class g extends r.QY{constructor(){var e,t,n;super(),s(this,c,[]),s(this,u,(0,o.v6)()),s(this,p,void 0),e=this,n=e=>{const t=new f(this,e);return a(c,this).push(t),t},(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t="channel"))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,s(this,h,e=>{d(c,this,(0,i.Ai)(e,a(c,this))),a(c,this).length||(this.subscriptions=[],a(u,this).resolve())}),d(p,this,this.broker("control")),a(p,this).on("channel.close",a(h,this))}close(e){this.emit(e,"channel.close",e)}untilAllClosed(){return a(u,this).promise}}class f extends r.eC{constructor(e,t){super(e,t),this.bus=e}close(){this.bus.close(this)}}},1670(e,t,n){"use strict";function i(){const e=document.cookie.indexOf("x-loc=");if(-1===e)return;const t=document.cookie.indexOf(";",e);if(-1===t)return;const n=document.cookie.substring(e+6,t);return n.length>0&&"none"!==n.toLowerCase()?n:void 0}n.d(t,{$:()=>i})},9004(e,t,n){"use strict";n.d(t,{AQ:()=>y,D8:()=>v,Gv:()=>p,I6:()=>c,Im:()=>s,NC:()=>g,Sm:()=>f,Tj:()=>h,Up:()=>r,_M:()=>d,cJ:()=>o,mQ:()=>m,ns:()=>a,s:()=>b,x5:()=>u});var i=n(2144);function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((t,i)=>(n.ignoreUndefined&&!(i in e)||(t[i]=e[i]),t),{})}function o(e,t){const n={...e};for(const e of(0,i.wg)(t))delete n[e];return n}function s(e){for(const t in e)return!1;return!0}const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.g;for(const n of e)void 0===t[n]&&(t[n]={}),t=t[n];return t},d=(e,t)=>n=>{if(t&&(0,i.FF)(Object.keys(n),Object.keys(e)).length)return!1;for(const t in e){const i=e[t];if("function"==typeof i&&!i(n[t]))return!1}return!0};function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(const n in e)if(l(e,n)&&t(e[n],n))return e[n]}function u(e){const t={};return Object.keys(e).forEach(n=>{const i=e[n];p(i)?t[n]=u(i):void 0!==i&&(t[n]=i)}),t}function p(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function h(e,t){const n={};for(const i in e)l(e,i)&&(n[i]=t(e[i],i));return n}function g(e){return e instanceof HTMLElement||e instanceof WeakMap||e instanceof Function||e instanceof Error||p(e)&&"function"==typeof e.then}function f(e){let t=0;const n="___MARK_",i={};return JSON.parse(JSON.stringify(e,function(e,r){if(g(r)){const e=t++;return i[e]=r,`${n}${e}`}return r}),function(e,t){return"string"==typeof t&&t.startsWith(n)?i[t.substr(8)]:t})}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function y(e){const t=new Date;return t.setMonth(t.getMonth()+e),t}function b(e,t){return[e[t],o(e,[t])]}function v(e,t){return t.every(t=>t in e)}},4053(e,t,n){"use strict";n.d(t,{Kv:()=>s,M7:()=>l,T0:()=>g,Tj:()=>p,ci:()=>c,gV:()=>o,h1:()=>u,pb:()=>h,uh:()=>d,vC:()=>a});var i=n(9642),r=n.n(i);const o=e=>new Promise((t,n)=>{const i=[];e.on("data",e=>i.push(e)),e.on("end",()=>t(i)),e.on("error",e=>n(e))}),s=()=>{const e=new(r().Readable)({objectMode:!0,read(){}}),t=new(r().Writable)({objectMode:!0,write(t,n,i){e.push(t),i()},final(t){e.push(null),t()}});return[e,t]},a=(e,t)=>d({start(){e.on("data",e=>this.push(e)).on("end",()=>{this.push(null),t()}).on("error",e=>{console.log("------\x3e STREAM Error",e),this.destroy(e),t(e)})}}),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new(r().Readable)({objectMode:!0,read(){}});return e.start&&e.start.apply(t),t},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(r().Transform)({objectMode:!0,...e})},c=e=>{let t=0;return new(r().Readable)({objectMode:!0,read(){e.length&&this.push(e[t++]),t===e.length&&this.push(null)}})},u=e=>{const t=d();let n=e.length;return n?(e.forEach(e=>{const i=e=>t.push(e),r=()=>{0===--n&&t.push(null)},o=e=>t.emit("error",e);e.on("data",i).on("end",r).on("error",o);const s=(e.off||e.removeListener).bind(e);t.on("close",()=>{s("data",i),s("end",r),s("error",o)})}),t):(t.push(null),t)},p=(e,t)=>d({start(){e.on("data",e=>this.push(t(e))).on("end",()=>{this.push(null)}).on("error",e=>this.destroy(e))}}),h=(e,t)=>d({start(){e.on("data",e=>{t(e)&&this.push(e)}).on("end",()=>{this.push(null)}).on("error",e=>this.destroy(e))}}),g=(e,t)=>{const n=d(),i=e=>n.push(e);t.on("data",i);let r=!1;const o=(t.off||t.removeListener).bind(t);e.on("end",()=>{r||(o("data",i),r=!0),n.push(null)});const s=u([e,n]);return s.on("close",()=>{r||(o("data",i),r=!0)}),s}},3598(e,t,n){"use strict";function i(e){const t=r(new URL(e).search.substring(1));return t?{specific:r(t.prev_scp),cust_params:r(t.cust_params)}:{}}function r(e){return e&&Object.fromEntries(e.split("&").map(e=>e.split("=").map(decodeURIComponent)))||void 0}function o(e,t){const n=e.startsWith("?"),i=e.substr(n?1:0).split("&").filter(e=>e.split("=")[0]!==t).join("&");return i?`${n?"?":""}${i}`:""}function s(e){let t=0;if(0===e.length)return t;for(let n=0;ni,ks:()=>o,tW:()=>s})},7480(e,t,n){"use strict";n.d(t,{CA:()=>i,O$:()=>a,nq:()=>r,uj:()=>s,w1:()=>o,y:()=>d});const i=e=>e.size||DM.molFeMiniLodash.map((e.type||"").split(","),e=>DM.molFeMiniLodash.map(e.split("x"),Number));function r(e,t,n){const i=e=>Array.isArray(e)&&2===e.length;if(!((r=e)&&Array.isArray(r)&&r.length&&r.every(e=>e&&i(e)&&i(e[0])&&Array.isArray(e[1])&&e[1].every(i))))return t;var r;const o=(e=>e.sort((e,t)=>t[0][0]-e[0][0]))([...e]),[s,a]=n,d=o.find(e=>{let[[t,n]]=e;return s>=t&&a>=n});return d&&d[1]||t}function o(e){return t=e,Array.isArray(t)&&Array.isArray(t[0])?e.reduce((e,t)=>{let[n,i]=e;return Array.isArray(t)?[Math.max(n,t[0]),Math.max(i,t[1])]:[n,i]},[0,0]):e;var t}function s(e){return e.map(e=>`${e[0]}x${e[1]}`).join("|")}function a(e,t){return t.reduce((t,n)=>{const i=new RegExp(n.replace(/\*/g,".*"));return t.push(...Object.keys(e).filter(e=>i.exec(e))),t},[])}function d(e){return e&&{creativeId:e.creativeId||e.sourceAgnosticCreativeId,lineItemId:e.lineItemId||e.sourceAgnosticLineItemId,advertiserId:e.advertiser,campaignId:e.campaignId,companyId:e.companyIds}}},9873(e,t,n){"use strict";n.d(t,{A:()=>a,l:()=>d});var i=n(1776),r=n(9666);const o="/5765/dm.video/dm_video_home/preroll",s=(0,i.Jt)("adUnit.excludeSponsoredCondition",!1);function a(e,t){const n=(0,i.Jt)("dfpAccountCode",5765),r=function(e,t,n){if(e)try{return e.replace("{{networkCode}}",t.toString()).replace("{{pos}}",n)}catch(e){console.error()}}((0,i.Jt)("gpt.adUnit"),n,e);return r||l(e,t)}function d(e,t){return l(e,t)}function l(e,t){const a=(0,i.Jt)("dfpAccountCode",5765),d=n.g.dartSiteId,l=n.g.PageCriteria.sponsored&&!s?"dm_dmnative":"money"===n.g.adAreaId?`${n.g.adAreaSiteId}_${n.g.adAreaSiteId}${n.g.adAreaId}_${n.g.adSubareaId}${n.g.adPageType}`:`${n.g.adAreaSiteId}_${n.g.adAreaSiteId}${n.g.adAreaId}_${n.g.adAreaId}${n.g.adPageType}`,{autoplay:c=!1,fbiaEmbed:u=!1,flyaway:p=!1,isMobile:h=!1,offset:g=0,original:f=!1,syndicationService:m=!1,videoAdServerUrl:y="https://pubads.g.doubleclick.net/gampad/ads?iu=%2F5765%2Fdm.video%2Fdm_video_home/preroll"}=t||{},b=(0,i.Jt)("videoDescription.verticalvideo.adUnit");switch(e){case"video":return(0,r.Y)(n.g.adAreaId?`/${a}/dm.video/dm_video_${n.g.adAreaId}/${0===g?"preroll":"midroll"}`:function(e){try{return new URL(e).searchParams.get("iu")||o}catch(e){console.error(e)}return o}(y),{autoplay:c,fbiaEmbed:u,flyaway:p,isMobile:h,original:f,syndicationService:m});case"jwplayer":return`/${a}/dm.chromelessvideo/${(0,i.Jt)("players.chromeless.dmplayer.v3.adUnitNameLevel2","dm_dmros_ros")}/${(0,i.Jt)("players.chromeless.dmplayer.v3.adRoll",[]).find(e=>e.offset===g)?.pos||"preroll"}`;case"verticalvideo":return b?`/${a}/${b}`:`/${a}/${n.g.adAreaSiteId}.${e}/${n.g.adAreaSiteId}_${n.g.adAreaSiteId}${n.g.adAreaId}_${n.g.adSubareaId}`;case"hero":return`/${a}/${(0,i.Jt)("videoDescription.hero.adUnit","dm.video.hero")}`;default:return`/${a}/${d}/${l}/${e}`}}},2348(e,t,n){"use strict";n.d(t,{$M:()=>b,$R:()=>I,G_:()=>y,MO:()=>u,N0:()=>w,O:()=>_,Qr:()=>g,Ri:()=>d,TV:()=>c,YC:()=>o,Yj:()=>p,Yw:()=>f,fX:()=>s,j1:()=>S,jy:()=>h,pr:()=>v,pz:()=>m});var i=n(3598);function r(e){return window["inner"+e]||document.documentElement["client"+e]||document.body["client"+e]}function o(){let{usePixelRatio:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e&&window.devicePixelRatio||1;return{width:r("Width")*t,height:r("Height")*t}}const s=(()=>{let e={};try{e=window.location.search.substr(1).split("&").reduce((e,t)=>{let[n,i]=t.split("=");switch(n=decodeURIComponent(n),!0){case n.startsWith("!"):e[n.substr(1)]=!1;break;case n.endsWith("[]"):n=n.substr(0,n.length-2),e[n]=!i||decodeURIComponent(i).split(",");break;case n.endsWith("[0]"):n=n.substr(0,n.length-3),e[n]=!i||decodeURIComponent(i).split(",");break;case/\[[-+]\]$/.test(n):e[n]=[...e[n]||[],...(i||"").split(",").map(decodeURIComponent)];break;default:e[n]=i?decodeURIComponent(i):"string"!=typeof i||i}return e},{})}catch(t){console.error("ads",t),e={}}return e})(),a=/(%[0-9A-Z]{2})+/g,d=e=>{let t;const n=`; ${document.cookie}`.split(`; ${e}=`);if(n.length>1){const e=n.pop().split(";").shift();t='"'===e.charAt(0)?e.slice(1,-1):e,t=t.replace(a,decodeURIComponent)}return t},l=e=>{const t=new Date;switch(typeof e){case"undefined":return t.setMonth(t.getMonth()+1),t;case"number":return t.setDate(t.getDate()+e),t;case"string":return new Date(e);case"function":return l(e());case"object":if(e instanceof Date)return e;if(null===e)return l();default:throw new Error("Invalid expire time when setting cookie")}},c=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",r=arguments.length>4?arguments[4]:void 0,o=`${e}=${t};expires=${l(n).toUTCString()};path=${i}`;r&&(o+=`;domain=${r}`),document.cookie=o},u=(e,t)=>{const n=`${e}Expire`,i=l(d(n)).toUTCString();c(e,t,i),c(n,i,i)},p=(e,t,n)=>{c(e,"","Thu, 01 Jan 1970 00:00:01 GMT",t,n)};function h(){const e=/(Windows\s*[a-zA-Z]*)\s+([^;\s)]+)/i.exec(navigator.userAgent);return e&&"windows nt"===e[1].toLowerCase()&&parseFloat(e[2])>=6.4}const g="Microsoft Internet Explorer"===navigator.appName||!(!navigator.userAgent.match(/Trident/)&&!navigator.userAgent.match(/rv:11/)),f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),m=/(?:iPod|iPhone|iPad).*(?:OS)/i.test(navigator.userAgent),y=/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9.]+)(:?\s|$)/.test(navigator.userAgent),b=/Firefox\/([0-9.]+)(?:\s|$)/.test(navigator.userAgent),v=/Edge\/([0-9._]+)/.test(navigator.userAgent);function _(){try{if(/iP(hone|od|ad)/.test(navigator.platform)){const e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]}}catch(e){console.error(e)}return[-1,-1,-1]}function w(e){const{origin:t,pathname:r,search:o}=n.g.location,s=`${t}${r}${(0,i.ks)(o,e)}`;window.history.pushState(null,"",s)}function I(e){const t=e.getBoundingClientRect(),n=document.body,i=document.documentElement,r=window.pageYOffset||i.scrollTop||n.scrollTop,o=window.pageXOffset||i.scrollLeft||n.scrollLeft,s=i.clientTop||n.clientTop||0,a=i.clientLeft||n.clientLeft||0,d=t.top+r-s,l=t.left+o-a;return{top:Math.round(d),left:Math.round(l)}}function S(){return n.g.performance?.getEntriesByType?.("navigation")?.[0]}},73(e,t,n){"use strict";n.d(t,{o:()=>s});var i=n(1919),r=n.n(i),o=n(9605);function s(e){const t=s("cmp.framework","cmp.frameworkByGeo"),n=s("cmp.legislation","cmp.legislationByGeo"),i=s("cmp.renderConfig.layerTwo.ccpaFrameworkText","cmp.renderConfig.layerTwo.ccpaFrameworkTextByGeo");return{getCMPFramework:t,getCMPLegislation:n,getCCPAFrameworkText:i,isUsingCMPFramework:async function(e,n){return n===await t(e)},hasCMPLegislation:async function(e){return!!await n(e)}};function s(t,n){return r()(async i=>{const r=i.getConfig(t);if(r)return r;const[s,a]=await Promise.all([(0,o.e)(i),i.getConfig(n)||e?.().then(e=>e.cmpFallbackConfig[n]).catch(e=>(console.error(e),{}))]);return a?.[`${s.geo}-${s.region}`]??a?.[s.geo]})}}},8692(e,t,n){"use strict";n.d(t,{G3:()=>d,Hr:()=>s,KR:()=>o,NH:()=>a,n4:()=>r});var i=n(73);const{getCMPFramework:r,getCMPLegislation:o,getCCPAFrameworkText:s,isUsingCMPFramework:a,hasCMPLegislation:d}=(0,i.o)(()=>n.e(674).then(n.bind(n,8674)))},3790(e,t,n){"use strict";n.r(t);var i=n(9637),r=n(2348),o=n(6381),s=n(2511),a=n(1554),d=n.n(a);const l=o.Ay.broker("debug-output"),c=window.PageCriteria&&window.PageCriteria.pageViewId||(0,s.zE)();r.fX.adsDebugRemotePersist&&localStorage.setItem("dmg.ads.debug.label",r.fX.adsDebugRemotePersist);const u=localStorage.getItem("dmg.ads.debug.label"),p=r.fX.adsDebugRemote||r.fX["ac.adsDebugRemote"]||n.g.adverts?.config?.adsDebugRemote||u,h=r.fX.adsBugReport||r.fX["ac.adsBugReport"]||n.g.adverts?.config?.adsBugReport||u,g="boolean"!=typeof p&&p;let f=[],m=0;const y=(0,i.sg)(()=>{l.emit("send to bidmax",{_:{topic:"debug"},type:"multi",pvid:c,label:g,eventId:m++,payload:f}),f=[]},1e3),b=[];function v(e){b.push(e)}function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const n of b)try{const i=n(e,t);if(void 0!==i)return i}catch(e){console.error("Error in object replacer",e)}return function(e){if("string"==typeof e&&e.length>4048)return`[truncated ${e.length} bytes string: ${e.slice(0,100)}...]`;if(e instanceof Map){const t=Array.from(e,e=>{let[t,n]=e;return[w(t),n]});return Object.fromEntries(t)}if(e instanceof Set)return Array.from(e);if(e instanceof WeakMap||e instanceof WeakSet)return e.toString();if(e instanceof Error)return{type:"Error",message:e.message,stack:e.stack};if(e instanceof HTMLElement){const{id:n,src:i,classList:r}=e;return`HTMLElement[<${e.tagName.toLowerCase()} ${t={id:n,src:i,class:[...r].join(" ")},Object.entries(t).map(e=>{let[t,n]=e;return null==n||""===n?"":`${t}="${n}"`}).filter(Boolean).join(" ")}/>]`}var t;return function(e){return"object"==typeof Node?e instanceof Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName}(e)?"[DOM Node]":void 0}(e)}function w(e){return"object"==typeof e?_(e):e}function I(e){try{return JSON.stringify(e,(e,t)=>_(t)||t)}catch(e){return"[error serializing value: "+e.message+"]"}}v((e,t)=>{if("object"==typeof e&&null!==e){if(t.has(e))return"[circular reference]";t.add(e)}});const S=(e,t)=>{f.push({type:e,timestamp:(new Date).toISOString(),payload:t}),f.length>=100?y.callNow():y()},T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{if(void 0===e)return e;if(e.length>1e4)return"[object too long: "+e.length+"]";try{return JSON.parse(e)}catch(t){k.error("Error parsing",e,t)}})}),k[e](...n)},k={log:console.log,warn:console.warn,error:console.error,info:console.info};p&&(l.on("register remote debug object replacer",v),console.log=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let{reason:t}=e;console.error("[PromiseRejectionUncaught]",{reason:t})}),l.on("send remote debug",S),l.on("system ready",()=>{const{config:e}=n.g.adverts;S("config",{config:e})}),l.once("dom ready",()=>{n.g.PageCriteria&&S("PageCriteria",n.g.PageCriteria),n.g.pagemeta&&S("pagemeta",n.g.pagemeta),l.invoke("get page level analytics").then(e=>S("bidmax",e))})),h&&l.once("dom ready",()=>{const e=document.createElement("div");e.innerHTML=d()(),document.body.appendChild(e);const t=e.querySelector("#debugRemoteButtonText"),n=t.querySelector("textarea");t.querySelector("button").addEventListener("click",e=>{e.preventDefault(),S("bugreport",{log:[n.value]}),console.info("bugreport",n.value),n.value="",t.style.display="none"}),u&&(window.leaveRemoteDebug.style.display="block",window.leaveRemoteDebug.addEventListener("click",e=>{e.preventDefault(),localStorage.removeItem("dmg.ads.debug.label"),location.reload()}))})},6703(e,t,n){"use strict";n.d(t,{io:()=>r,yL:()=>i});const i="yes",r="no"},9605(e,t,n){"use strict";n.d(t,{e:()=>r});var i=n(1919);const r=n.n(i)()(async e=>{let{pageGeoInfo:t,pageCriteria:n}=e;if(n?.geo&&n?.region)return{geo:n.geo,region:n.region};const i=await t();return{geo:i.Country,region:i.REGION_CODE}})},490(e,t,n){"use strict";n.d(t,{dK:()=>o,hM:()=>s});var i=n(2348),r=n(2862);const o=function(){let e=new Set;if(i.fX.adsDebug)e=new Set(((!0===i.fX.adsDebug?"all":i.fX.adsDebug)||"").toLowerCase().split(","));else if(localStorage.getItem("dmg.ads.debug.label"))e=new Set(["all"]);else{const t=i.fX["ac.adsDebug"]||n.g.adverts?.config?.adsDebug;"boolean"==typeof t?e=new Set(["all"]):Array.isArray(t)&&(e=new Set(t.map(e=>e.toLowerCase())))}return e}();function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,r.h)(""+e,t,n,o)}},2862(e,t,n){"use strict";n.d(t,{h:()=>r});var i=n(2144);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[`%c${e}`,o()],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;t||(t=[`%c${e}`,o()]);const d=a.has("all")||a.has(e.toLowerCase()),l=d?console.log.bind(console,...(0,i.wg)(t)):()=>{};return l.debugName=e,l.label=t,l.enabled=d,l.log=c("log"),l.trace=c("trace"),l.debug=c("debug"),l.info=c("info"),l.warn=c("warn"),l.error=c("error",!0),l.table=d?function(){l("Table:"),console.table(...arguments)}:()=>{},l.group=d?e=>console.group(s(t,e)):()=>{},l.groupCollapsed=d?e=>console.groupCollapsed(s(t,e)):()=>{},l.groupEnd=d?()=>console.groupEnd():()=>{},l.time=d?e=>console.time(s(t,e)):()=>{},l.timeEnd=d?e=>console.timeEnd(s(t,e)):()=>{},l.timer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";const t=Date.now();return l(e),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"end";return l.info(e,Date.now()-t+"ms")}},l.extend=s=>{const[d,...l]=(0,i.wg)(t),c=n+1;return r(e,[`${d} %c${s}`,...l,o(c)],c,a)},l;function c(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:d)&&"function"==typeof console[e]?console[e].bind(console,...(0,i.wg)(t)):()=>{}}}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=Math.min(100,35+10*e);return`display: inline-block; color: hsl(0deg, 0%, ${e<5?100:Math.max(0,100-10*e)}%); background: hsl(214deg 100% ${t}%); padding: 1px 4px; border-radius: 3px;`}function s(e,t){const n=t?[...e,t]:e;return[n[0].replace(/^%c/g,""),...n.slice(1)].filter(e=>!e.startsWith("display: inline-block;")).join(" / ").replace(/%c/g,"")}},2511(e,t,n){"use strict";function i(e,t){return e.get(o(e,t))}function r(e,t,n){return e.set(o(e,t),n),n}function o(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{E:()=>u,pX:()=>s,ph:()=>h,yT:()=>a,zE:()=>d});const s=2147483647;function a(e,t){const n=t-e+1+e;return Math.floor(Math.random()*n)}function d(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){return function(e){const t=16*Math.random()|0;return"x"===e?t:3&t|8}(e).toString(16)})}function l(e,t){if(null==e)return;let n=e/(t/100);return n>99&&(n=99),n<0&&(n=0),Math.round(n)}const c=/(.*)P(\d+)(s|k|m|mb|gb|ms|px)$/;function u(e,t){const{cap:n}=function(e){const t=e.match(c),[,n,i,r]=t||[],o=function(e,t){return{m:e=>60*e*1e3,s:e=>1e3*e,k:e=>1e3*e,mb:e=>1e6*e,gb:e=>1e9*e,ms:e=>e,px:e=>e}[t](e)}(Number(i),r);return{fieldName:n,period:i,unit:r,cap:o}}(e);return{[e]:l(t,n)}}var p=new WeakMap;class h{static get(e,t){return o(h,this,g)._[e]=o(h,this,g)._[e]||new h(t),o(h,this,g)._[e]}static inc(e,t){return this.get(e,t).inc()}static dec(e,t){return this.get(e,t).dec()}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;var t,n,i;i=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=p),n.set(t,i),r(p,this,e)}get value(){return i(p,this)}inc(){var e;return r(p,this,(e=i(p,this),++e))}dec(){var e;return r(p,this,(e=i(p,this),--e))}}var g={_:{}}},9363(e,t,n){"use strict";function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=n=>String.prototype.split.call(t,n).filter(Boolean).reduce((e,t)=>null!=e?e[t]:e,e),r=i(/[,[\]]+?/)||i(/[,[\].]+?/);return void 0===r||r===e?n:r}n.d(t,{A:()=>i})},5755(e,t,n){"use strict";function i(){for(var e=arguments.length,t=new Array(e),n=0;nr(e,t))}function r(e,t){if(e===t)return e;const n=typeof t;if("undefined"===n)return e;const i=Array.isArray(t);if(null===t||"string"===n||"number"===n||"boolean"===n||"function"===n||!i&&"object"===n&&null!==t&&t.constructor!==Object)return t;if(null===e)return r(void 0,t);const o=typeof e,s=Array.isArray(e);if(n!==o)return s?e:"function"===o&&"object"===n?(Object.entries(t).forEach(t=>{let[n,i]=t;e[n]=i}),e):"undefined"===o?i?r([],t):"object"===n?r({},t):t:"undefined"===n?e:t;if(s){const n=e.length,i=t.length;let o;for(o=0;o{let[n]=e,[i]=t;return n.localeCompare(i)}),d=a.length,l=Object.entries(e).sort((e,t)=>{let[n]=e,[i]=t;return n.localeCompare(i)});let c=0;for(const[t,n]of l){let i,o,s=-1;for(;s<0&&ci})},4775(e,t,n){"use strict";function i(e,t,n){const i=Array.isArray(t)?t:t.match(/([^[.\]])+/g)||[];for(let t=e,r=0;ri})},7579(e,t,n){"use strict";var i=n(490),r=n(2348);(r.fX.adsDebugRemote||r.fX["ac.adsDebugRemote"]||n.g.adverts.config&&n.g.adverts.config.adsDebugRemote||localStorage.getItem("dmg.ads.debug.label")||r.fX.adsDebugRemotePersist)&&n(3790),(0,i.hM)("bootstrap").log("loading",window.location.href)},1817(e,t,n){const i=n(2736);function r(e){if(!e)throw new TypeError("Missing videoAdServerUrl");this.base_url=e,this.params={env:"vp",gdfp_req:1,impl:"s",output:"xml_vast4",unviewed_position_start:1,hl:"en"}}r.encodeCustomParams=function(e){if("object"==typeof e)return Object.keys(e).forEach(t=>{const n=e[t];Array.isArray(n)?e[t]=n.join(","):e[t]=n}),encodeURIComponent(i.objToQueryString(e));throw new TypeError("encodeCustomParams only accepts an object map of key value pairs.")},r.prototype.iu=function(e){if(!/^\/[a-zA-z0-9\-_.~]+(\/[a-zA-z0-9\-_.~]+)*/.test(e))throw new TypeError("'iu' param must follow format: /network_id/directory_tree.../ad_unit");return this.params.iu=encodeURIComponent(e),this},r.prototype.sz=function(e){if(!/^[0-9]+x[0-9]+/.test(e))throw new TypeError("'sz' param must follow format like: 300x400.");return this.params.sz=e,this},r.prototype.url=function(e){return this.params.url=encodeURIComponent(i.urlParts(e).href),this},r.prototype.correlator=function(e){if("number"==typeof e&&!isNaN(e))return this.params.correlator=e,this;throw new TypeError("the passed correlator is not a number")},r.prototype.description_url=function(e){return this.params.description_url=encodeURIComponent(i.urlParts(e).href),this},r.prototype.hl=function(e){return this.params.hl=e,this},r.prototype.ciu_szs=function(e){return this.params.ciu_szs=e,this},r.prototype.scp=function(e){return this.params.scp=e,this},r.prototype.cust_params=function(e){return this.params.cust_params=r.encodeCustomParams(e),this},r.prototype.setRequestNonPersonalizedAds=function(e){return e&&(this.params.npa=1),this},r.prototype.setRestrictDataProcessing=function(e){return e&&(this.params.rdp=1),this},r.prototype.setPpid=function(e){return e&&(this.params.ppid=e),this},r.prototype.scor=function(e){if("number"==typeof e&&!isNaN(e))return this.params.scor=e,this;throw new TypeError("the passed scor is not a number")},r.prototype.addParam=function(e,t){return this.params[e]=t,this},r.prototype.build=function(){const e=this.params;return["env","gdfp_req","impl","output","unviewed_position_start","hl","url","correlator","description_url"].forEach(t=>{if(!e[t])throw new TypeError("Error building url, missing required param '"+t+"'")}),this.base_url+"?"+i.objToQueryString(this.params)},e.exports=r},2357(e){e.exports=e=>{const t=(e=>{const{cust_params:t,domain:n,embed:i,flyaway:r,muted:o,screen:s,source:a,title:d,videoId:l,videoStarts:c}=e,u="number"==typeof e.duration?e.duration/1e3:0,p={length:u>120?120:30*Math.floor(u/30),videoWidth:s.width,videoHeight:s.height,play:c,embed:i,ttid:l,domain:n,flyaway:r,s:o?"off":"on"};d&&(p.videoTitle=d.replace(/\s/g,"_").replace(/[^_\w]/g,"")),a&&(p.video=a.replace(/\s/g,"_")),window.adEnvironment&&(p.environment=window.adEnvironment);const h=t||{};return Object.keys(h).forEach(e=>{p[e]=h[e]}),p.sz=s.width+"x"+s.height,p})({...e,cust_params:{...e.cust_params}});return{customParams:t}}},9666(e,t,n){"use strict";function i(e,t){const{autoplay:n=!1,fbiaEmbed:i=!1,flyaway:r=!1,isMobile:o=!1,original:s=!1,syndicationService:a=!1}=t;let d=e;i&&-1===d.indexOf("dm.videofb")||"fbia"===a&&-1===d.indexOf("dm.videofb")?d=d.replace(/dm\.video/g,"dm.videofb"):"gamp"===a&&-1===d.indexOf("dm.videoamp")?d=d.replace(/dm\.video/g,"dm.videoamp"):o&&s&&!n&&!r&&(d=d.replace(/dm\.video/g,"dm.video.original"));let l="";return n&&(l+="ap"),r&&(l+="fa"),l.length&&(d=d.replace(/(dm\.video)([^&]+)?/,"$1$2_"+l)),d}n.d(t,{Y:()=>i})},2736(e,t,n){const i=n(8323),r=document.createElement("a"),o=document.documentMode,s={appendGeolocation:function(e){try{return s.appendKeyToURL(e,"geo",window.PageCriteria.geo)}catch(t){return e}},appendKeyToURL:function(e,t,n){let i;i=/\?/.test(e)?"&":"?",i+=t+"="+encodeURIComponent(n.toString());const r=e.split("#");return 2===r.length?r[0]+i+"#"+r[1]:r[0]+i},objToQueryString:function(e){const t=[];return i.forEach(e,(e,n)=>{t.push(n+"="+e)}),t.join("&")},queryStringToObj:function(e,t){if(t=i.isFunction(t)?t:function(){return!0},!("string"==typeof e||e instanceof String))return{};const n=(e=e.trim().replace(/^\?/,"")).split("&"),r={};return i.forEach(n,e=>{let n,i,o;""!==e&&(i=e.split("="),n=i[0],o=i[1],t(n,o)&&(r[n]=o))}),r},urlParts:function(e){let t,n=e;return o&&(r.setAttribute("href",n),n=r.href,/(.*):(\d+)/.test(r.host)&&(t=r.host.split(":"),r.host=t[0],r.port=t[1])),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:i.isNotEmptyString(r.port)?r.port:80,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}};e.exports=s},8323(e){function t(e){return"function"==typeof e}const n={forEach:function e(n,i,r){let o,s;if(n)if(t(n))for(o in n)"prototype"===o||"length"===o||"name"===o||n.hasOwnProperty&&!n.hasOwnProperty(o)||i.call(r,n[o],o,n);else if(a=n,"[object Array]"===Object.prototype.toString.call(a)){const e="object"!=typeof n;for(o=0,s=n.length;or});var i=n(6846);async function r(e,t){return t??=(await(0,i.yx)("getUSPData"))?.uspString||i.Pv,{isConsented:!await e()||t===i.Pv}}},6363(e,t,n){"use strict";n.d(t,{F:()=>s});var i=n(6846);const r="__uspapi",o={getUSPData:"__cachedUSPData"};async function s(e){let{getConfig:t,localBroker:s,log:a,shouldConsentManagementBeEnforced:d}=e;const l=t("cmp.cachedCommands",o);a("cachedCMPCommands",l,d),d&&function(e,t){try{const n=localStorage.getItem(e.getUSPData)||"{}";if(n){const{uspString:r}=JSON.parse(n);(0,i.WX)(r)||(t("invalid consent string for cmp enforced region, clearing cache",r),localStorage.removeItem(e.getUSPData))}}catch(e){t.error(e)}}(l,a),n.g[r]=n.g[r]||((e,t,i)=>{a(e,t);const o=l[e],s=o&&localStorage.getItem(o);if(s){const t=JSON.parse(s);a(`using cached value for cmd: ${e}, value:`,t),i(JSON.parse(s),!0)}else n.g[r].a.push([e,t,i])}),n.g[r].a=n.g[r].a||[],s.emit("provision cmp created",Object.values(o).every(e=>null!==localStorage.getItem(e)))}},6846(e,t,n){"use strict";n.d(t,{AT:()=>c,Eo:()=>s,Pv:()=>r,Vg:()=>l,WX:()=>a,v1:()=>o,yx:()=>d});const i="__uspapi",r="1YNN",o="1YYN",s="__cachedUSPData",a=e=>!(!e||"1---"===e),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((r,o)=>{n.g[i](e,t,(n,s)=>{s?r(n):o(new Error(`Failed to call ${i}()(${e}, ${t})`))})})},l=(e,t)=>{n.g[i](e,null,(e,n)=>{n&&t(e)})},c=e=>e("ccpa.gpc.forced",navigator.globalPrivacyControl)&&e("ccpa.gpc.signal.enabled",!1)},2326(e,t,n){"use strict";n.d(t,{E:()=>a,Z:()=>s});var i=n(7485),r=n(9004);const o="\n.mpu_puff_wrapper.watermark,\n.adHolder.watermark,\n#mobile-content .adHolder.watermark,\n#content .billboard-container.watermark,\n.dmg-ads,\n.mol-ads-label-container {\n display: none;\n}\n";function s(e){e("slots.enabled",{}),(0,i.appendStyle)(o)}function a(e,t,n){t("slots.enabled",(0,r.Up)(e("slots.enabled",{}),n)),(0,i.appendStyle)(o)}},7017(e,t,n){"use strict";var i=n(4024),r=n(3025);(0,i.F3)("userIds.dmgid",{ccpa:{enabledIfDissent:!0},gdpr:{enabledIfDissent:!0},run:function(e){let{broker:t,getConfig:n,log:i,doc:o,localStorage:s}=e;if(function(e){return new URL(e.href).hostname.endsWith(".com")}(location))return void i("bailing");const a=n("userIds.dmgid.url","https://www.dailymail.com/dmgid/{userId}");i("dmgid plugin loaded",{urlTemplate:a}),t.once("sync userId","bidmaxId",async(e,t,n)=>{if(!e)return void i("No bidmaxId provided, skipping iframe creation");const d=s.getItem(r.E),l=encodeURIComponent(JSON.stringify({bidmaxId:e,createdAt:n}));let c=a.replace("{userId}",l);if(d&&(c=`${c}?dmg-migration-permutiveId=${d}`),i("Creating hidden iframe for dmgid:",c),!o.body)return void i("Document body not available, skipping iframe creation");const u=o.createElement("iframe");u.src=c,u.style.cssText="width: 1px; height: 1px; border: 0; position: absolute; left: -9999px; top: -9999px; visibility: hidden;",u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex","-1");try{o.body.appendChild(u),i("Hidden iframe created and appended to body"),s.setItem("dmg.migration.cookie-set","true")}catch(e){i.error("Error creating iframe:",e)}})}})},3508(e,t,n){"use strict";n.d(t,{j:()=>r,z:()=>o});var i=n(2348);const r="dmg.user.id";function o(){try{const e=localStorage.getItem(r);if(e){const{id:t}=JSON.parse(e);if(t)return s(),t}}catch(e){}const e=function(){const e=function(){const e=i.fX.dm;if("string"==typeof e){const t=e.trim();if(a.test(t))return t}if(Array.isArray(e)){const t=e.find(e=>"string"==typeof e&&a.test(e.trim()));if(t)return t.trim()}return null}();return s(),e??null}()??crypto.randomUUID(),t=JSON.stringify({id:e,createdAt:(new Date).toISOString()});try{localStorage.setItem(r,t)}catch(e){}return e}function s(){const e=new URL(location.href);e.searchParams.delete("dm"),history.replaceState(null,"",e)}const a=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i},4454(e,t,n){"use strict";n.d(t,{k:()=>r});var i=n(7480);const r=e=>{if(e.fullWidth){const t=document.documentElement.clientWidth,[n,r]=(0,i.w1)(e.size);return[t,e.useHeightAspectRatio?r/n*t:r]}const t=e.sizeMapping?(0,i.nq)(e.sizeMapping,e.sizes||e.size,[document.documentElement.clientWidth,document.documentElement.clientHeight]):e.sizes||e.size,[n,r]=(0,i.w1)(t);return[n,r]}},1776(e,t,n){"use strict";n.d(t,{Jt:()=>u,Ts:()=>h,hZ:()=>p,th:()=>g});var i=n(9363),r=n(4775),o=n(2348),s=n(2144),a=n(3751),d=n(490),l=n(5755);window.adverts??={},window.adverts.config??={};const c=(0,d.hM)("config"),u=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};return"plugins.enabled"!==e||n||console.error(new Error('setConfig("plugins.enabled") should be avoided; use addPlugins/removePlugins or pass { silent: true } when updating the list intentionally')),(0,r.A)(window.adverts.config,e,t)};function h(){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.adverts.config;window.adverts.config=Object.entries(e).reduce((e,t)=>{let[n,i]=t;try{if((0,a.Et)(i)){const t=(0,a.nm)(i);void 0!==t&&(0,r.A)(e,n,t)}else(0,r.A)(e,n,i)}catch(e){console.error(e)}return e},{})}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.adverts.config),function(){const e=JSON.parse(localStorage.getItem("mol-ads-control-panel-config")||"null");"object"==typeof e&&null!==e&&(0,l.A)(window.adverts.config,e)}(),g(),function(e){if("string"!=typeof e.setPlugin)return;const t=e=>["on","true","1","enabled"].includes(e),[n,i,r]=e.setPlugin.split(",").reduce((e,n)=>{let[i,r,o]=e;const[s,a]=n.split(":");if(void 0===a)return[i,r,o];if(s.includes("*")){const[e,n]=s.split("*");!t(a)&&""===n&&o.push(e)}else t(a)?i.add(s):r.add(s);return[i,r,o]},[new Set([]),new Set([]),[]]),o=u("plugins.enabled",[]).filter(e=>!((e=>r.some(t=>e.includes(t))&&!n.has(e))(e)||i.has(e))),s=o.indexOf("debug.setPlugin")+1;o.splice(s,0,...n),p("plugins.enabled",[...new Set(o)],{silent:!0})}(o.fX)}const g=()=>{Object.entries(o.fX).forEach(e=>{let[t,n]=e;if(t.startsWith("ac."))if(t.endsWith("[+]")){const e=t.substring(3,t.length-3);p(e,(0,s.sb)(u(e,[]).concat(n)))}else if(t.endsWith("[-]")){const e=t.substring(3,t.length-3);p(e,u(e,[]).filter(e=>!n.includes(e)))}else if(t.endsWith("{}")){const e=t.substring(3,t.length-2);p(e,(e=>{try{return JSON.parse(e)}catch(e){return c.error(e),{}}})(n))}else p(t.slice(3),(e=>""===e||"boolean"==typeof e?e:isNaN(e)?(e=>{const t="true"===e;return"false"===e||t?t:e})(e):parseFloat(e))(n))})}},1864(e,t,n){"use strict";(0,n(1776).Ts)()},3751(e,t,n){"use strict";n.d(t,{Et:()=>c,nm:()=>l});var i=n(2348),r=n(9004),o=n(2144),s=n(9363),a=n(6485),d=n(3581);function l(e){let{__targeting:t}=e;return((0,o.wg)(t).find(u)||{}).payload}function c(e){return"object"==typeof e&&!!e?.__targeting}const u=(0,r._M)({browser:p(function(e){switch(e){case"chrome":return i.G_;case"edge":return i.pr;case"ie":return i.Qr;case"firefox":return i.$M;case"safari":return i.Yw;default:return!1}}),cookie:p(function(e){return Object.entries(e).every(e=>{let[t,n]=e;return n.includes((0,i.Ri)(t)||"")})}),device:p(function(e){switch(e){case"tablet":return a.Ay.isIPad()||a.Ay.isAndroidTablet();case"desktop":return!a.Ay.isMobile()}}),iOSVersion:p(function(e){let{min:t,max:n}=e;const[r]=(0,i.O)();return(void 0===t||t<=r)&&(void 0===n||n>=r)}),minInnerWindowHeight:p(function(e){return window.innerHeight>=e}),minInnerWindowWidth:p(function(e){return window.innerWidth>=e}),minDocumentWidth:p(function(e){return document.documentElement.clientWidth>=e}),pageCriteria:p(function(){const e=(0,r._M)((0,r.Tj)(window.PageCriteria||{},e=>p(Array.isArray(e)?t=>e.includes(t):t=>t===e)),!0);return t=>e((0,r.cJ)(t,"payload"))}()),timeRange:p(function(e){let{end:t,start:n}=e;const i=new Date,r=t&&h(t)<=i,o=n&&h(n)>i;return!r&&!o}),globalContext:p(function(e){let{prop:t,op:i,value:r}=e;const a=(0,s.A)(n.g,t);switch(i){case"includes":return"string"==typeof a?a.includes(r):(0,o.wg)(a).includes(r);case"startsWith":return"string"==typeof a&&a.startsWith(r);case"anyOf":{const e=new Set(r);return Array.isArray(a)?a.some(t=>e.has(t)):e.has(a)}}}),topWindow:p(function(e){return e?window.top===window:window.top!==window}),paywalled:p(function(e){return e===(0,d.H)({pageCriteria:n.g.PageCriteria,win:n.g})}),entitlements:p(function(e){const t=n.g.getPaywallEntitlements?.();return t?.includes?.(e)}),localStorage:p(function(e){return Object.entries(e).every(e=>{let[t,n]=e;return n.includes(localStorage.getItem(t)||"")})}),performanceNavigationType:p(function(e){return n.g.performance?.getEntriesByType?.("navigation")?.[0]?.type===e}),document:p(function(e){let{prop:t,op:n,value:i}=e;const r=(0,s.A)(document,t);switch(n){case"includes":return"string"==typeof r?r===i:(0,o.wg)(r).includes(i);case"startsWith":return"string"==typeof r&&r.startsWith(i);case"anyOf":{const e=new Set(i);return Array.isArray(r)?r.some(t=>e.has(t)):e.has(r)}case"notEmpty":return!!r}})});function p(e){return t=>void 0===t||(Array.isArray(t)?t.some(e):e(t))}function h(e){const[t,n,i]=e.split(":").map(Number),r=new Date;return r.setHours(t),r.setMinutes(n),r.setSeconds(i),r}},4369(e,t,n){"use strict";n.d(t,{default:()=>s});var i=n(6485);const r=(0,n(490).hM)("context"),o=(async()=>{const e="https://cmp.dmgmediaprivacy.co.uk/locationjson.html";try{return(await fetch(e)).json()}catch(t){r.warn("error loading",e)}})(),s={device:i.Ay.isAndroidTablet()||i.Ay.isIPad()&&!i.Ay.isIPhone()?"tablet":i.Ay.isMobile()?"mobile":"desktop",pageGeoInfo:()=>o}},7485(e,t,n){"use strict";n.r(t),n.d(t,{appendStyle:()=>m,closest:()=>g,contains:()=>y,createIframe:()=>S,elementReady:()=>o,generateQuerySelector:()=>P,getElementBottomOffset:()=>d,getElementComputedHeight:()=>w,getElementComputedWidth:()=>_,getElementScaledHeight:()=>v,getElementWidthScale:()=>I,getOffset:()=>a,getPageSize:()=>p,getParent:()=>b,getRelativeContainer:()=>c,getVisibleText:()=>T,getWindow:()=>u,insertAfter:()=>k,isElement:()=>f,iterateViewablePixels:()=>C,loaded:()=>s,onBodyAvailable:()=>i,outerHeight:()=>A,topHeight:()=>E,untilBodyAvailable:()=>r,walk:()=>h});const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;t.body?e():n.g.requestAnimationFrame(()=>{i(e,t)})},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return new Promise(t=>i(t,e))},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return new Promise((i,r)=>{let o=!1;setTimeout(()=>{o=!0},t);const s=()=>{const a=document.querySelector(e);a?i(a):o?r(new Error(`Element "${e}" not found after ${t}ms`)):setTimeout(()=>s(),n)};s()})},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return new Promise(t=>{["complete","loaded","interactive"].includes(e.readyState)?t():e.addEventListener("DOMContentLoaded",t)})},a=e=>{let t,n,i={top:0,left:0};const r=e&&e.ownerDocument;if(r)return t=r.documentElement,e.getBoundingClientRect&&(i=e.getBoundingClientRect()),n=u(r),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}};function d(e){return a(e).top+w(e)}const l=e=>{const t=getComputedStyle(e).getPropertyValue("position");return["relative","absolute"].includes(t)},c=e=>h(e,l,e=>e.parentNode),u=e=>{let t=null;return e&&(e===e.window?t=e:9===e.nodeType?t=e.defaultView||e.parentWindow:e.ownerDocument&&(t=e.ownerDocument.defaultView||e.ownerDocument.parentWindow)),t},p=()=>[document.body.scrollWidth,window.innerHeight+window.scrollMaxY,window.innerWidth,window.innerHeight],h=(e,t,n)=>{let i=e;for(;i;){if(t(i))return i;i=n(i)}},g=(e,t)=>h(e,t,e=>{let{parentNode:t}=e;return t!==document&&t}),f=e=>e&&1===e.nodeType,m=e=>{if(!e)return;const t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:"textContent"in t?t.textContent=e:t.innerText=e,(document.body||document.head).appendChild(t)},y=(e,t)=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,b=(e,t)=>h(e,e=>e.matches(t),e=>e.parentNode),v=e=>(e=>{const t=getComputedStyle(e),n=t.getPropertyValue("transform");if(n&&"none"!==n){const e=n.split("(")[1].split(")")[0].split(",");return parseFloat(e[3])}const i=t.getPropertyValue("zoom");return parseFloat(i||1)})(e)*w(e),_=e=>parseInt(getComputedStyle(e).getPropertyValue("width")),w=e=>parseInt(getComputedStyle(e).getPropertyValue("height")),I=e=>{const t=_(e);return _(document.body)/t};function S(e){let{content:t,insertMethod:n=e=>{document.body.appendChild(e)},width:i=0,height:r=0,log:o=()=>{}}=e;const s=document.createElement("iframe");return s.border="0",s.style.width=`${i}px`,s.style.height=`${r}px`,s.style.border="none",o("inserting iframe"),n(s),o("writing iframe content",s),s.contentDocument.open(),s.contentDocument.domain=document.domain,s.contentDocument.write(t),s.contentDocument.close(),s}function T(e){window.getSelection().removeAllRanges();const t=document.createRange();t.selectNode(e),window.getSelection().addRange(t);const n=window.getSelection().toString().trim();return window.getSelection().removeAllRanges(),n}function k(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function A(e){const t=getComputedStyle(e);return E(e)+parseInt(t.getPropertyValue("margin-bottom"))}function E(e){const t=getComputedStyle(e);return parseInt(t.getPropertyValue("height"))+parseInt(t.getPropertyValue("margin-bottom"))}function*C(e,t){let n=x(e);for(let i=0;i<=n.width/t;i++)for(let r=0;r<=n.height/t;r++)n=x(e),yield{x:n.x+i*t,y:n.y+r*t,boundingRect:n}}function x(e){const t=e.getBoundingClientRect(),{start:n,end:i}=D(t,"left","right","innerWidth"),{start:r,end:o}=D(t,"top","bottom","innerHeight");return{...t,x:n,left:n,y:r,top:r,right:i,bottom:o,width:i-n,height:o-r}}function D(e,t,n,i){return{start:e[t]<0?0:e[t],end:e[n]>window[i]?window[i]:e[n]}}function P(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if("HTML"===e.tagName)return n||"HTML";let i=e.tagName;if(e.id&&(i+=e.id.match(/[^a-z0-9_-]/i)?`[id="${e.id}"]`:`#${e.id}`),e.classList.forEach(e=>{i+=`.${e}`}),"AD-SLOT"===e.tagName)i+=`[position="${e.getAttribute("position")}"]`;else if("IFRAME"===e.tagName){const t=e.src;if(t){const e=new URL(t);i+=`[src^="${e.origin}${e.pathname}"]`}}return i=n?`${i} > ${n}`:i,(t.full||!e.id&&"AD-SLOT"!==e.tagName)&&e.parentElement?P(e.parentElement,t,i):i}},8705(e,t,n){"use strict";n.d(t,{x:()=>c});var i=n(1900),r=n(2348),o=n(1670),s=n(1776),a=n(3508);const d=(0,i.Mi)(()=>window.RTA?.ids,300,3e3).then(e=>e.user||e.visit?{rta:{user:e.user,visit:e.visit}}:{}).catch(()=>({})).then(e=>{const{PageCriteria:t={},pagemeta:i={}}=window;return{account:"mol",adsFreeUser:n.g.isAdFreeEntitled?.(),articleId:t.articleId,bidmaxId:(0,a.z)(),channel:t.channel,configVersion:(0,s.Jt)("__generated.commit.sha"),bundle:"facade",cmVersion:(0,s.Jt)("__generated.rulesJs.version"),cmCluster:(0,s.Jt)("__generated.rulesJs.cluster"),device:t.device,embed:!0,event_type:"bidmax",fbapp:!!t.fbapp,geo:t.geo,isMobile:t.isMobile,isTablet:t.isTablet,office:(0,o.$)(),pageType:t.pageType,pageViewId:t.pageViewId,referrer:document.referrer,sponsored:t.sponsored,subchannel:t.subchannel,timeAtSend:0,type_version:2,url:location.href,version:r.fX.bidmax||i.adsBundleVersion||"absent",...e}});let l={};function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(arguments.length>1?arguments[1]:void 0)||!!(0,s.Jt)("bidmax.dispatcher.useCurrentUrl");return d.then(i=>new Promise((r,o)=>{const a=new XMLHttpRequest,d=t?`${n.g.location.origin}${n.g.location.pathname}`:(0,s.Jt)("bidmax.dispatcher.url","//crta.dailymail.co.uk");a.open("POST",d,!0),a.addEventListener("abort",o),a.addEventListener("error",o),a.addEventListener("load",r),a.setRequestHeader("Content-Type","text/plain"),a.send(JSON.stringify({...i,...l,...e,timestamp:Date.now()}))})).catch(e=>console.error(e))}},7913(e,t,n){void 0===n.g.adverts&&(n.g.adverts={}),n.g.adverts.queue=n.g.adverts.queue||[],n.g.DM=n.g.DM||{}},4024(e,t,n){"use strict";n.d(t,{F3:()=>o,sd:()=>s,xy:()=>a});const i=(0,n(490).hM)("plugin-registry"),r={};function o(e,t){i("registering plugin:",e),r[e]=t}function s(e){return r[e]}function a(){return{...r}}},766(e,t,n){"use strict";n.r(t),n.d(t,{DELAYED:()=>d,IMMEDIATE:()=>s,LAZY:()=>a,getEnabledRenderedSlots:()=>m,getEnabledSlots:()=>y,getLoadingSettings:()=>f,initEmergencyRules:()=>I,initSlots:()=>_,isAdEnabled:()=>h,resetSlots:()=>v,setSupportedSlots:()=>w});var i=n(2348),r=n(9004);(0,n(4024).F3)("adListLoader",{ccpa:{enabledIfDissent:!0},gdpr:{enabledIfDissent:!0},init:function(e){let{broker:t,getConfig:i,setConfig:s,log:a}=e;const d=(_=i("slots.enabled",{}),!(w=b)||w&&(0,r.Im)(w)?_:Object.entries(w).reduce((e,t)=>{let[n,i]=t;return i?e[n]={}:delete e[n],e},_)),h=Object.keys(d),f=new Set(h),m=u.filter(e=>!f.has(e)),y=h.reduce((e,t)=>({...e,[t]:g(a,d[t])}),{}),v=i("slotDescription",{});var _,w;l=h.filter(e=>!v[e]||!!v[e].id),c=m,o=y,a("Enabled slots: ",l),a("Disabled slots: ",c),a("Loading settings: ",o),s("slots.enabled",y),t.emit("slots initialized",l),p(c,!1),p(l,!0),t.on("system ready",()=>{n.g.DM.later("DOM_READY",()=>{document.write=document.writeln=e=>{try{throw new Error(e)}catch(e){a("Error: there was an attempt to document.write in a rendered page: ",e)}}})}),t.on("set slots enabled",(e,t)=>{p(e,t)})}});let o={};const s="immediate",a="lazy",d="delayed";let l=[],c=[];const u=["adx_page_skins","adx_tracking","banner_top","billboard","bvp_puff_26","bvp_puff_29","half_mpu_top","inread_player","inread_player_mw","inread_player_top","intro_ad","leader_bottom","leader_lower_middle","leader_middle","leader_top","leader_very_bottom","leader_wide","mpu_bottom","mpu_bottom_right","mpu_channel","mpu_home","mpu_middle","mpu_mobile","mpu_mobile_bottom","mpu_mobile_lower_middle","mpu_mobile_top","mpu_mobile_upper_middle","mpu_puff_10","mpu_puff_15","mpu_puff_20","mpu_puff_30","mpu_puff_45","mpu_puff_5","mpu_top","network_banner","para_top","puff_ad_3","puff_ad_6","puff_ad_9","sky_left_bottom","sky_left_top","sky_right_bottom","sky_right_top","sticky_banner","video_ad","video_carousel"],p=function(e,t){e.forEach(e=>{const n=`molads_${e}_on`,i=`molads_${e}_off`;document.documentElement.classList.add(t?n:i),document.documentElement.classList.remove(t?i:n)})},h=e=>{const t=e&&(e.dfpPos||e.pos);return!(window.disableAds&&!i.fX.ignoreDisableAds)&&(!t||!u.includes(t)||l.includes(t))},g=(e,t)=>{let{loadingOffset:n,loadingTrigger:i,loadingType:r=s,gamOffset:o,scrolledPastOffset:l}=t;const c={type:r||s,trigger:i,offset:isNaN(n)?0:Number(n),gamOffset:isNaN(o)?void 0:Number(o),scrolledPastOffset:isNaN(l)?void 0:Number(l)};return c.type===s||c.type===d||c.type===a&&c.trigger||(e("Unknown loading type or invalid loading trigger, falling back to immediate loading :",c),c.type=s),c},f=e=>o[e]||{type:s,trigger:void 0,offset:0},m=()=>l.slice(),y=m,b=(i.fX.setSlot&&i.fX.setSlot.split(",")||[]).reduce((e,t)=>{const[n,i]=t.split(":").map(e=>e.trim());return e[n]="on,true,1,enabled".includes(i||"true"),e},{}),v=()=>{l=[],c=[]},_=()=>{},w=e=>{},I=()=>{}},1379(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>init});var uuid__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3870);const showThankYouMessage=(getConfig,log)=>{try{log("Showing thank you message"),eval(getConfig("abe.thankYouMessage.js","DM.later('bundle', function(){window.top.DM.molFeAdblockerDialog.thanks()})"))}catch(e){console.error(e)}};function init(e){let{broker:t,getConfig:n,log:i}=e;const r=JSON.parse(localStorage.getItem("mol.abe.data")||"{}"),o=new Promise(e=>{t.once("ad block detection result",o=>{let{adblocker:s}=o;s&&(void 0===r.v&&(r.i=(new Date).toISOString(),r.v=2,r.u=(0,uuid__WEBPACK_IMPORTED_MODULE_0__.A)(),r.n=!0),r.v++,r.l=(new Date).toISOString(),localStorage.setItem("mol.abe.data",JSON.stringify(r))),r.i&&(i(s?"Ad blocker detected":"No ad blocker detected"),s||r.c&&!(r.cr.l),o.then(e=>s=e);const a=e=>({[r.n?"exabd2":"exabd"]:!!e});t.emit("set page level targeting",a(s.exabd)),t.emit("set page level targeting",o.then(e=>{let{exabd:t}=e;return a(t)})),t.register("call for page analytics",()=>s)}init.ccpa={enabledIfDissent:!0},init.gdpr={enabledIfDissent:!0}},3796(e,t,n){"use strict";n.r(t),n.d(t,{appendStyles:()=>O,default:()=>q,enableSlot:()=>x,getAdContainer:()=>N,getElementById:()=>R,getElementContainerById:()=>E,getElementOrIframeById:()=>S,isEmpty:()=>A,log:()=>P,nativeLoaded:()=>D,openAd:()=>L});var i=n(3068),r=n(766),o=n(6381);const s=n(4918),a=n(3352),d=n(3796);let l;o.Ay.broker("NativeRenderer").on("system ready",()=>{const e=window.location.href.match(/[&?]enable_native=([^&]+)/),t=e&&e[1];if(t){const e=r.initSlots;r.initSlots=function(n){n[t]={enabled:!0,state:"on"},e.apply(r,arguments)}}l=t,s(function(e){if(!e.isEmpty){const t=e.slot,n=t&&t.molAd;"native_"===n.pos.slice(0,7)&&"_dfp"===n.pos.slice(-4)&&c(n)}})});function c(e){const t=document.getElementById(e.parentId),n=d.getAdContainer(t);let i=!1;function r(){if(!i){i=!0;try{!function(e,t,n){const i=document.createElement("div");i.innerHTML=n;const r=i.childNodes;if("none"!==t.style.display){t.style.display="none";let n,i=t;const o=t.parentNode,s=e.pos.replace(/_dfp$/,"");for(let e=r.length;e--;)n=r[e],1===n.nodeType&&"SCRIPT"!==n.nodeName&&(o.insertBefore(n,t),i=n);const a=i,d=i;d&&a.hasAttribute("data-track-module")&&DM&&DM.externalLinkTracker&&(d.setAttribute("data-track-type","cl"),DM.externalLinkTracker(a.id,"cl")),l&&window.opener&&window.opener!==window&&window.opener.postMessage&&(window.addEventListener("message",u.bind(null,i,s)),p(window.opener,"isLoaded",!0,s))}}(e,t,n.body.innerHTML)}catch(e){console.error("Error moving native article: ",e)}}}n.body&&((n.defaultView||n.parentWindow).addEventListener("load",r),setTimeout(r,2e3))}function u(e,t,n){if("\f\t"===n.data.slice(0,2)){const i="data-native-ad-field";let r;try{r=a.parse(n.data.slice(2))}catch(e){console.error("Invalid message",e)}if(r&&r.type){const o=[].slice.call(e.querySelectorAll("["+i+"]"));let s;switch(r.type){case"getValues":s=o.map(function(e){return{name:e.getAttribute(i),value:e.textContent}});break;case"setValues":o.forEach(function(e){const t=e.getAttribute(i);t in r.values&&(e.textContent=r.values[t])})}s&&p(n.source,r.type,s,t,n.origin)}}}function p(e,t,n,i,r){const o={type:"response",query:t,position:i,value:n};e.postMessage("\f\t"+a.stringify(o),r||"*")}s(function(e){if(!e.isEmpty){const t=e.slot,n=t&&t.molAd;"native_"===n.pos.slice(0,7)&&"_dfp"===n.pos.slice(-4)&&c(n)}});var h=n(7485),g=n(490);function f(e){return this.subscriptions[e]||(this.subscriptions[e]=[]),this.subscriptions[e]}class m{constructor(){this.subscriptions={}}clone(){return{emit:this.emit.bind(this),off:this.off.bind(this),on:this.on.bind(this),once:this.once.bind(this)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;ie(...n))}off(e,t){const n=f.call(this,e);if(t){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}else n.length=0}on(e,t){f.call(this,e).push(t)}once(e,t){var n=this;const i=function(){n.off(e,i),t(...arguments)};this.on(e,i)}}var y=n(7989),b=n(7480),v=n(2144);const _=(e,t)=>{let n;try{n=e.contentDocument||e.contentWindow.document}catch(e){}return n||t},w=e=>t=>{const n=t&&_(t);return n&&n.getElementById(e)},I=e=>{const t=(e||document).getElementsByTagName("iframe");return Array.prototype.filter.call(t,T)},S=e=>{const t=w(e);return k(I(),e=>t(e)&&e)},T=e=>e.id&&"google_ads_iframe_"===e.id.slice(0,18),k=(e,t)=>{for(let n=0,i=e.length;n{const t=document.getElementById(e),n=["a","iframe","object","img","video"];let i=!0;if(t)for(let e=n.length;i&&e--;)i=!t.getElementsByTagName(n[e]).length;return i},E=e=>{const t=S(e),n=/\badHolder\b/;if(!t)return;let i=t;for(;i&&!n.test(i.className||"");)i=i.parentNode;return i||(i=t),i},C=(e,t)=>{P("Disabling",t);const n=document.documentElement,i="molads_"+t;if("billboard"===t){B("billboard",P.extend("watermark")),e.emit("unstick position","billboard");const{DM:t}=window;t&&t.Rotator&&t.Rotator.initMiniCarousel()}n.classList.add(`collapse-${t}`),n.classList.remove(i+"_on"),n.classList.add(i+"_off")},x=e=>{const t="molads_"+e,n=document.documentElement;n.classList.remove(t+"_off"),n.classList.add(t+"_on")},D=(e,t,n)=>{const r=k(I(),t=>t.contentWindow.name===e.name);if(r){const e=(0,h.closest)(r,e=>e.hasAttribute(i.AD_ATTRIBUTE));if(e){const t=i.parse(e.getAttribute(i.AD_ATTRIBUTE)||"{}");t&&c(t)}}},P=(0,g.hM)("ad-integrator"),O=e=>{const t=e.match(/]*\sclass="?integrate"?[^>]*>[^\f]*?<\/style>/gi);for(let e=0,n=t?t.length:0;e")+1,-8))},R=e=>{let t=null;const n=I(),i=w(e);for(let e=0;!t&&e{P(`collapseAd("#${t}")`);const n=(0,y.getById)(t);if(n)return void C(e,n.pos);P.warn("collapseAd - cannot find description of slot with id:",t);const r=E(t);if(r){P("collapsing",t);const n=i.parse(r.getAttribute(i.AD_ATTRIBUTE)||"{}");n&&n.pos?C(e,n.pos):r.style.display="none"}else P.warn("collapseAd: id",t,"is unknown")};function U(e,t){for(const n of(0,b.O$)((0,y.allDescriptions)(),(0,v.wg)(t)))P(`collapseAd({ pos: "${n}" })`),C(e,n)}const N=e=>{const t=I(e)[0];return t?_(t,document):e},L=e=>{const t=E(e),n=i.parse(t.getAttribute(i.AD_ATTRIBUTE)||"{}");n&&n.pos?x(n.pos):(t.style.height="auto",t.style.display="block")};function B(e,t){const n=(0,y.get)(e);if(!n)return void t.warn("Cannot find description");const i=document.getElementById(n.id);if(!i)return void t.warn("Cannot find element");const r=(0,h.closest)(i,e=>e.classList.contains("watermark"));r?(t("removing watermark",r),r.classList.remove("watermark")):t.warn("Couldn't find an watermarked element")}const j=e=>{let{broker:t}=e;n.g.addEventListener("message",e=>{let{data:n}=e;if("object"==typeof n&&"string"==typeof n.func)switch(P("received message",n),n.func){case"molads.addSkinToPage":return t.emit("add skin to page",n);case"molads.addSkinLabel":return t.emit("add skin label to page");case"molads.disableSticky":return t.emit("disable sticky position",n.pos)}});const i=new m;let r=[];t.on("external subscription",function(){return i.on(...arguments)}),n.g.adverts.getRendered=()=>r,n.g.AdIntegrator=n.g.AdIntegrator||{},n.g.adverts.collapseAd=n.g.AdIntegrator.collapseAd=M.bind(null,t),n.g.adverts.collapseAdByPos=n.g.AdIntegrator.collapseAdByPos=U.bind(null,t),n.g.AdIntegrator.disableSlot=C.bind(null,t),t.on("ad rendered",(e,t)=>{t.isEmpty||(r.push(t.slot.molAd),i.emit("rendered",t),i.emit("rendered."+e,t))}),t.on("destroy slot",e=>{r=r.filter(t=>t.pos!==e)}),t.on("remove watermark",e=>{B(e,P.extend("remove watermark").extend(e))}),t.on("collapseAdByPos",e=>U(t,e))},q=j;j.isAdsFreeSupported=!0,j.ccpa={enabledIfDissent:!0},j.gdpr={enabledIfDissent:!0},j.disableIfNoAdsServable=!0},3960(e,t,n){"use strict";n.d(t,{AT:()=>b,GF:()=>p,H1:()=>g,I9:()=>y,Pv:()=>a,WX:()=>m,XW:()=>f,af:()=>c,v1:()=>d,x2:()=>h,xJ:()=>s,yx:()=>l,zy:()=>u});var i=n(8692),r=n(9637),o=n(1776);const s="mol.ads.cmp.consent",a="1YNN",d="1YYN",l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((n,i)=>{h()(e,t,(r,o)=>{o?n(r):i(new Error(`Failed to call __cmp(${e}, ${t})`))})})},c=(0,r.Gr)(()=>l("hasConsentedToAll")),u=(0,r.Gr)(()=>l("hasChoiceBeenMade")),p=async e=>await(0,i.NH)(e,"uspapi")&&(0,o.Jt)("ccpa.scriptBaseUrl")&&(0,o.Jt)("plugins.enabled").includes("cmp")&&(0,o.Jt)("cmp.enable.userAgents",[".*"]).some(e=>navigator.userAgent.match(new RegExp(e))),h=()=>n.g.__uspapi,g=e=>n.g.__uspapi=e,f=()=>"yes"===localStorage.getItem("mol.ads.cmp.consent"),m=()=>null!==localStorage.getItem("mol.ads.cmp.consent"),y=()=>!m(),b=()=>(0,o.Jt)("ccpa.gpc.forced",navigator.globalPrivacyControl)&&(0,o.Jt)("ccpa.gpc.signal.enabled",!1)},3025(e,t,n){"use strict";n.d(t,{E:()=>i});const i="permutive-id"},3827(e,t,n){"use strict";n.d(t,{u:()=>r});var i=n(9004);function r(e,t,n){for(const i of n)if(i["config-changes"])for(const[n,r]of Object.entries(i["config-changes"]))r.omit&&o(e,t,n,r.omit)}function o(e,t,n,r){const o=e(n);(0,i.Gv)(o)&&t(n,(0,i.cJ)(o,r))}},5379(e,t,n){"use strict";n.d(t,{x:()=>i});const i=(e,t,n,i)=>{const r=((e,t)=>t.map(t=>(e.extend(t.testName).extend(t.name)("loading config:",t.config||{}),t.config||[])).reduce((e,t)=>e.concat(t),[]).filter(e=>e).reduce((e,t)=>(Object.entries(t).forEach(t=>{let[n,i]=t;e[n]=i}),e),{}))(e,i);Object.entries(r).forEach(e=>{let[t,i]=e;n(t,i)})}},3925(e,t,n){"use strict";n.d(t,{H:()=>i});const i=(e,t,n,i,r)=>{let o=t("plugins.enabled",[]),s=[],a=[];i.forEach(t=>{const n=e.extend(t.testName).extend(t.name);Array.isArray(t.plugins)?(n("adding plugins:",t.plugins),s=[...s,...t.plugins]):"object"==typeof t.plugins&&(Array.isArray(t.plugins.add)&&(n("adding plugins:",t.plugins.add),s=[...s,...t.plugins.add]),Array.isArray(t.plugins.remove)&&(n("removing plugins:",t.plugins.remove),a=[...a,...t.plugins.remove]))});const d=o.indexOf(r)+1;o.splice(d,0,...s);const l=new Set(a);o=o.filter(e=>!l.has(e)),n("plugins.enabled",[...new Set(o)],{silent:!0})}},3641(e,t,n){"use strict";n.d(t,{W:()=>r});var i=n(5147);function r(e,t){o(e.extend("localStorage"),t,"user",localStorage),o(e.extend("sessionStorage"),t,"session",sessionStorage)}function o(e,t,n,r){const o=function(e,t){const n=t.reduce((t,n)=>(n.scope===e&&t.push((0,i.Fv)(n,"")),t),[]);return{isTestStorageKeyNoLongerRequired:e=>e.startsWith(i.Tz)&&n.every(t=>!e.startsWith(t))}}(n,t);for(const t of function*(e){for(let t=0;td,Tz:()=>r,UQ:()=>c});var i=n(2348);const r="mol.ads.mvt.tests",o="apl.sk.op",s=e=>{let[t,n]=e;return{...n,name:t}},a=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/^(-?[0-9.]+)\s*(%?)$/);if(e){let t=parseFloat(e[1]);return"%"===e[2]&&(t/=100),t}return 0};function d(e,t){return`${r}.${e.$hash||e.name}.${t}`}function l(e){return Math.round(1e4*e)/1e4}function c(e,t){if(!window.adsMVTResults){const n={},r={},c=Object.entries(t).map(s).filter(e=>e.scenarios).map(e=>({...e,scenarios:Object.entries(e.scenarios).map(t=>{let[n,i]=t;return{...s([n,i]),testName:e.name}})})),p=u();(0,i.TV)(o,"",new Date(0),"/",window.location.hostname);const h=c.reduce((t,s)=>{const c=s.scope||"page",p="page"===c?n:"session"===c?sessionStorage:localStorage,h=e.extend(s.name),g=function(e,t){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=d(t,"selected");let o=t.forceScenario;if(o&&!t.scenarios.find(e=>e.name===o))return e.warn(`Test "${t.name}" has a forceScenario "${o}" that is not defined in the scenarios`),void(o=void 0);o&&e.info(`Test "${t.name}" is forced to use scenario "${o}"`);const s=o||i[r],c=s&&t.scenarios.find(e=>e.name===s),u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=d(e,"probabilityDraw"),i=e.size||e.scenarios.reduce((e,t)=>{let{size:n}=t;return e+a(String(n))},0),r=l(Math.min(Math.max(0,a(String(i))),1));let o=Number(t[n]);return isNaN(o)&&(o=Math.random(),t[n]=o.toString()),o{let{size:t}=e;return"number"==typeof t});if(t.scenarios.length===o.length){const e=Math.random();let t=0;n=o.find(n=>{let{size:i}=n;return t+=i,l(t)>e})}else o.length&&e.warn(`Test "${t.name}" has some scenarios with size and some without, falling back to global scope size`),n=t.scenarios[Math.floor(Math.random()*t.scenarios.length)];n&&(i[r]=n.name)}return n}}(h,s,p);if(g){!function(e,t,n){const i=e.setCookie??t.setCookie;if(!0===i)e.setCookie={name:t.name,value:e.name};else if("string"==typeof i)if(i.includes("=")){const[t,n]=i.split("=");e.setCookie={name:t,value:n}}else e.setCookie={name:i,value:e.name};else"object"==typeof i&&(e.setCookie={name:i.name,value:i.value});!0===t.applyOnlyIfCookieNameExists?e.setCookie?e.requiredCookieName=e.setCookie.name:n("Invalid MVT configuration. applyOnlyIfCookieNameExists is true but setCookie is not defined"):"string"==typeof t.applyOnlyIfCookieNameExists&&(e.requiredCookieName=t.applyOnlyIfCookieNameExists),n("MVT scenario",e)}(g,s,h);const e=function(e){return!e.requiredCookieName||!!(0,i.Ri)(e.requiredCookieName)}(g);return function(e,t){const n=u();if(!e.setCookie)return!0;t("Applying cookie",e.setCookie),(0,i.TV)(e.setCookie.name,e.setCookie.value,new Date((new Date).getFullYear()+1,0,1),"/",window.location.hostname),(0,i.TV)(o,[e.setCookie.name,...n].join(","),new Date((new Date).getFullYear()+1,0,1),"/",window.location.hostname)}(g,h),e?(r[s.name]=g.name,[...t,g]):(h("Cookie "+g.requiredCookieName+" is required but not set. Removing Scenario."),t)}return t},[]);!function(e,t){const n=u();e.filter(e=>-1===n.indexOf(e)).forEach(e=>{t("Removing expired cookie",e),(0,i.Yj)(e,"/",window.location.hostname)}),0===n.length&&(t("MVT Cookie Expired."),(0,i.Yj)(o,"/",window.location.hostname))}(p,e),window.adsMVTResults={pageStorage:n,selectedScenarios:r,scenarios:h,tests:c}}return window.adsMVTResults}function u(){const e=document.cookie.split(";").filter(e=>e.trim().startsWith(o));return e.length?e.map(e=>e.split("=")[1]).filter(e=>!!e):[]}},3581(e,t,n){"use strict";function i(e){let{win:t}=e;const n=t.getPaywallStatus;return n&&n()||"invalid"}n.d(t,{H:()=>i})},7989(e,t,n){"use strict";n.r(t),n.d(t,{allDescriptions:()=>u,get:()=>l,getById:()=>c});var i=n(2348),r=n(9873),o=n(9004);(0,n(4024).F3)("slots.descriptions",{ccpa:{enabledIfDissent:!0},gdpr:{enabledIfDissent:!0},isAdsFreeSupported:!0,init:function(e){let{getConfig:t,setConfig:n,log:i}=e;const o=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(e=>{let[t,n]=e;return`${t}x${n}`}).join(",")},a=Object.entries(t("slotDescription",{})).reduce((e,n)=>{let[s,a]=n;const l=t(`slotDescription.${s}.earlyBidding`,!0);return a.conditionalSizes&&(i("conditionalSizes found",s,a),function(e){e.conditionalSizes?.wideSkies&&e.conditionalSizes?.sizes&&d&&(e.size=e.conditionalSizes.sizes)}(a)),{...e,[s]:["openweb","googleAdSense","amazon","widgets"].some(e=>a?.slotTypes?.includes(e))?{id:s,pos:s,...a}:{type:o(a.size),adUnit:(0,r.A)(a.unit||s),pos:s,parentId:a.id,slots:[],slotTypes:["gpt"],earlyBidding:l,...a}}},{});i("descriptionsFromSlotDescription",a),s={...s,...a},n("slotDescriptions.initial",s)},run:function(e){let{broker:t,getConfig:n}=e;s=n("slotDescriptions.initial"),t.on("update description",(e,n)=>{s[e]=n,t.emit("slot descriptions updated",s)}),t.emit("slot descriptions updated",s)}});let s={};const{width:a}=(0,i.YC)(),d=a>1580,l=e=>{const t=s[e];return t&&!t.pos&&(t.pos=e),t};function c(e){return(0,o.I6)(s,t=>t.id===e)}const u=()=>s},2174(e,t,n){"use strict";n.d(t,{Cl:()=>m,V_:()=>s,XQ:()=>y,Z:()=>l,et:()=>u,gF:()=>h,q_:()=>r,sQ:()=>p,uL:()=>g});var i=n(1776);const r="mol.ads.cmp.tcf.cache",o="dmg.ads.consentOrPay",s="mol-reject-all",a=h(),d=n.g.DM?.userId,l=e=>d&&!!(e||h())?.includes?.(s),c=(0,i.Jt)("tcfv2.consentOrPay.enabled",!1),u=()=>{const e=d&&c&&`${o}.${function(e){let t=`${e}`;return h().includes(s)&&(t+="."+s),t}(d)}.tcf.cache`;return d&&c?e:r},p=()=>{const e=u();return e.startsWith(o)?(e=>e.replace(/^(dmg\.ads\.consentOrPay\.)([^.]+)(\..*)/,"$1$3"))(e):e};function h(){return n.g.getPaywallEntitlements?.()||[]}const g=()=>a,f=["/embed/gamp-video/","/v1/amp-video"],m=e=>f.some(t=>e.location.pathname.startsWith(t));function y(){return{tcfv2Version:(0,i.Jt)("tcfv2.version",""),tcfv2UiVersion:(0,i.Jt)("tcfv2.uiVersion","")}}window.self,window.top},3458(e,t,n){"use strict";var i=n(2174),r=n(1776),o=n(9143),s=(n(6703),n(490)),a=(n(2492),n(9637));const d=(0,s.hM)("tcfv2-v2").extend("stub");window,new o.jG;const l=(0,a.Gr)(()=>!(0,r.Jt)("tcfv2.consentOrPay.enabled",!1)||!n.g.getPaywallEntitlementsMightChange());(0,a.Gr)(()=>{d("consentOrPay: canUseCache",l()),d("creating");let e={};if(l()){const t=localStorage.getItem((0,i.et)());t&&(e=JSON.parse(t))}return e})},2917(e,t,n){"use strict";n.d(t,{U:()=>i});const i=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;rn.g.__tcfapi(e,2,function(){return t(...arguments)},...i))}},2492(e,t,n){"use strict";n.d(t,{D:()=>o});var i=n(2917);const r={iab:async e=>(await(0,i.U)("consentedVendors")).includes(e),google:async e=>{const t=await(0,i.U)("getCustomVendorsConsents");return t[e]?.consent},nrv:async e=>{const t=await(0,i.U)("getNonRegisteredVendorsConsents");return t[e]?.consent}},o=async e=>{const{vendorRegistry:t,vendorId:n}=e,i=r[t];if(i){const e="string"==typeof n?parseInt(n):n;return isNaN(e)?{errorMsg:"invalid vendorId"}:await i(e)?{isConsented:!0}:{isConsented:!1}}return{errorMsg:"vendorRegistry not recognised, valid values are 'iab'|'google'|'nrv'"}}},467(e,t,n){"use strict";n.d(t,{f:()=>s});var i=n(3598),r=n(2348),o=n(6644);function s(e){const t=localStorage.getItem("mol.ads.watchdog");let n;try{n=t&&JSON.parse(t)}catch(t){e("error parsing last state",t)}return{ps:n,nt:(0,r.j1)()?.type||"unknown",st:o.S,u:(0,i.tW)(window.location.href)}}},4806(e,t,n){"use strict";n.d(t,{mH:()=>o});const i=(0,n(490).hM)("pre-render-plugin-registry"),r={};function o(e,t){i("registering sync plugin:",e),r[e]=t}},6644(e,t,n){"use strict";n.d(t,{S:()=>i});const i=Date.now()},3189(e,t,n){var i=n(1857),r=[];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['(()=>{let e,t,s,n,r,o,a,i=!0,c=!1,d=!1;const p=new Set,m=new Set,l=()=>Date.now()-r,y={pong(e){t=Date.now(),a=e.scripts.sort()},inactive(){o&&(i=!1,clearInterval(o),o=null)},active(){v()},init(t){const{tolerance:o,data:a,startTime:i,version:c,url:d}=t;e=o,r=i,n=d.startsWith("//")?`https:${d}`:d,s={...a,type:"events",event_type:"bidmax",type_version:2,timeAtSend:l(),version:c},v()},prebidWon(e){p.add(e.bidder),e.advertiserDomains.forEach(e=>m.add(e))},visibilitychange(e){d=e.hidden}};function v(){o||(i=!0,t=Date.now(),o=setInterval(()=>{postMessage({cmd:"ping"}),i&&Date.now()-t>e&&(c||(console.log("Page unresponsive detected, notifying server"),function(e){let{body:t,headers:s}=e;try{const e=new XMLHttpRequest;e.open("POST",n,!0),Object.entries(s).forEach(t=>{let[s,n]=t;return e.setRequestHeader(s,n)}),e.send(JSON.stringify({...t,reqType:"xhr"}))}catch(e){console.error(e)}}({headers:{"Content-type":"text/plain"},body:{...s,payload:[{type:"custom",payload:{module:"page-unresponsive-detection",event:"unresponsive",bidders:[...p],advertiserDomains:[...m],hidden:d,scripts:a},timeAtSend:l()}]}}),c=!0))},1e3))}onmessage=async e=>{let{data:{cmd:t,...s}}=e;const n=y[t];if(n)try{await n(s)}catch(e){postMessage({cmd:"error",error:e}),console.error("Error executing command:",e)}else postMessage({cmd:"error",error:`Unknown command: ${t}`}),console.error(`Unknown command: ${t}`)},addEventListener("message",function(e){var t,s=e.data,n=s.type,r=s.method,o=s.id,a=s.params;"RPC"===n&&r&&((t=__webpack_exports__[r])?Promise.resolve().then(function(){return t.apply(__webpack_exports__,a)}):Promise.reject("No such method")).then(function(e){postMessage({type:"RPC",id:o,result:e})}).catch(function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:o,error:t})})}),postMessage({type:"RPC",method:"ready"})})();\n//# sourceMappingURL=3420c6932951db9b7212.worker.js.map'])),{name:"[fullhash].worker.js"});return URL.revokeObjectURL(URL.createObjectURL(new Blob(['(()=>{let e,t,s,n,r,o,a,i=!0,c=!1,d=!1;const p=new Set,m=new Set,l=()=>Date.now()-r,y={pong(e){t=Date.now(),a=e.scripts.sort()},inactive(){o&&(i=!1,clearInterval(o),o=null)},active(){v()},init(t){const{tolerance:o,data:a,startTime:i,version:c,url:d}=t;e=o,r=i,n=d.startsWith("//")?`https:${d}`:d,s={...a,type:"events",event_type:"bidmax",type_version:2,timeAtSend:l(),version:c},v()},prebidWon(e){p.add(e.bidder),e.advertiserDomains.forEach(e=>m.add(e))},visibilitychange(e){d=e.hidden}};function v(){o||(i=!0,t=Date.now(),o=setInterval(()=>{postMessage({cmd:"ping"}),i&&Date.now()-t>e&&(c||(console.log("Page unresponsive detected, notifying server"),function(e){let{body:t,headers:s}=e;try{const e=new XMLHttpRequest;e.open("POST",n,!0),Object.entries(s).forEach(t=>{let[s,n]=t;return e.setRequestHeader(s,n)}),e.send(JSON.stringify({...t,reqType:"xhr"}))}catch(e){console.error(e)}}({headers:{"Content-type":"text/plain"},body:{...s,payload:[{type:"custom",payload:{module:"page-unresponsive-detection",event:"unresponsive",bidders:[...p],advertiserDomains:[...m],hidden:d,scripts:a},timeAtSend:l()}]}}),c=!0))},1e3))}onmessage=async e=>{let{data:{cmd:t,...s}}=e;const n=y[t];if(n)try{await n(s)}catch(e){postMessage({cmd:"error",error:e}),console.error("Error executing command:",e)}else postMessage({cmd:"error",error:`Unknown command: ${t}`}),console.error(`Unknown command: ${t}`)},addEventListener("message",function(e){var t,s=e.data,n=s.type,r=s.method,o=s.id,a=s.params;"RPC"===n&&r&&((t=__webpack_exports__[r])?Promise.resolve().then(function(){return t.apply(__webpack_exports__,a)}):Promise.reject("No such method")).then(function(e){postMessage({type:"RPC",id:o,result:e})}).catch(function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:o,error:t})})}),postMessage({type:"RPC",method:"ready"})})();\n//# sourceMappingURL=3420c6932951db9b7212.worker.js.map']))),i(e,r),e}},7306(e,t,n){var i=n(1857),r=[];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['(()=>{"use strict";const e=e=>void 0===e?[]:Array.isArray(e)?e:[e];function t(a){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[`%c${a}`,o()],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;i||(i=[`%c${a}`,o()]);const r=l.has("all")||l.has(a.toLowerCase()),c=r?console.log.bind(console,...e(i)):()=>{};return c.debugName=a,c.label=i,c.enabled=r,c.log=m("log"),c.trace=m("trace"),c.debug=m("debug"),c.info=m("info"),c.warn=m("warn"),c.error=m("error",!0),c.table=r?function(){c("Table:"),console.table(...arguments)}:()=>{},c.group=r?e=>console.group(n(i,e)):()=>{},c.groupCollapsed=r?e=>console.groupCollapsed(n(i,e)):()=>{},c.groupEnd=r?()=>console.groupEnd():()=>{},c.time=r?e=>console.time(n(i,e)):()=>{},c.timeEnd=r?e=>console.timeEnd(n(i,e)):()=>{},c.timer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";const t=Date.now();return c(e),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"end";return c.info(e,Date.now()-t+"ms")}},c.extend=n=>{const[r,...c]=e(i),m=s+1;return t(a,[`${r} %c${n}`,...c,o(m)],m,l)},c;function m(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r)&&"function"==typeof console[t]?console[t].bind(console,...e(i)):()=>{}}}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=Math.min(100,35+10*e);return`display: inline-block; color: hsl(0deg, 0%, ${e<5?100:Math.max(0,100-10*e)}%); background: hsl(214deg 100% ${t}%); padding: 1px 4px; border-radius: 3px;`}function n(e,t){const o=t?[...e,t]:e;return[o[0].replace(/^%c/g,""),...o.slice(1)].filter(e=>!e.startsWith("display: inline-block;")).join(" / ").replace(/%c/g,"")}let a=Number.MAX_SAFE_INTEGER,i={},s="",l={maxInterval:2e3,ReportMissingAck:!1,ReportAck:!1},r=t("timekeeper.worker",[],0,new Set);const c={},m=e=>{r.log("clear",e),delete c[e]};let d;const p=()=>{d&&clearTimeout(d);const e=Date.now();let t=l.maxInterval;Object.entries(c).forEach(o=>{let[n,a]=o;const i=Math.floor((e-a.scheduleTimestamp)/a.delay),s=(a.lastInvokeTimestamp||0)-(a.ackTimestamp||0);a.ackTimestamp&&s>8e3&&(function(e){e.logger.warn("ack missing",{id:e.id,type:e.type,delay:e.delay,lastInvokeTimestamp:e.lastInvokeTimestamp,ackTimestamp:e.ackTimestamp,scheduleTimestamp:e.scheduleTimestamp,invokeCount:e.invokeCount})}(a),l.ReportMissingAck&&u("timekeeper.missingAck",{delay:s},a));const r=Math.floor(a.delay-(e-(a.lastInvokeTimestamp||0)));if(t=Math.min(t,r),i>(a.invokeCount||0))a.invokeCount=i,a.lastInvokeTimestamp=Date.now(),postMessage({cmd:"invoke",id:n,ivkId:a.invokeCount}),"interval"!==a.type&&m(n);else{const t=a.lastInvokeTimestamp||a.scheduleTimestamp;a.logger.log("next invokation in",Math.floor((a.delay-(e-t))/1e3),{expectedInvokations:i,scheduleTimestamp:a.scheduleTimestamp,lastInvokationTime:t,invokeCount:a.invokeCount})}}),r.log("next iteration in",Math.floor(t/1e3),{minDelay:t,scheduledTriggers:c});const o=Math.max(t,0);a=Date.now()+o,d=setTimeout(p,o)};function u(e,t,o){i&&function(e){let{body:t,headers:o}=e;try{const e=new XMLHttpRequest;e.open("POST",s,!0),Object.entries(o).forEach(t=>{let[o,n]=t;return e.setRequestHeader(o,n)}),e.send(JSON.stringify({...t,reqType:"xhr"}))}catch(e){console.error(e)}}({headers:{"Content-type":"text/plain"},body:{...i,timeAtSend:Date.now(),payload:[{type:"custom",payload:{module:"timekeeper",event:e,id:o.id,type:o.type,delay:o.delay,lastInvokeTimestamp:o.lastInvokeTimestamp,ackTimestamp:o.ackTimestamp,scheduleTimestamp:o.scheduleTimestamp,invokeCount:o.invokeCount,...t},timeAtSend:Date.now()}]}})}onmessage=e=>{const{cmd:o,args:n}=e.data;switch(o){case"initialize":r=t("timekeeper",void 0,0,new Set(n.logger)).extend("worker"),r.log("init",n),l=n,s=n.bidmaxUrl.startsWith("//")?`https:${n.bidmaxUrl}`:n.bidmaxUrl,i={};break;case"bidmax setup":i={...n.pageAnalytics||{},type:"events",event_type:"bidmax",type_version:2,version:n.bidmaxVersion};break;case"schedule":(e=>{const t=c[e.id]||{};c[e.id]={...t,...e,invokeCount:t.invokeCount||0,scheduleTimestamp:t.scheduleTimestamp||Date.now(),lastInvokeTimestamp:t.lastInvokeTimestamp||Date.now(),logger:(e.meta?.loggerData?r.extend((e.meta?.loggerData||[]).join(":")):r).extend(e.id)},a-Date.now()>e.delay&&(r.log("force wallclock tick",{nextIterationTime:a,now:Date.now(),args:e}),p())})(n);break;case"clear":m(n.id);break;case"ack":(e=>{const t=c[e.id];if(!t)return;const o=Date.now(),n=Math.floor((o-t.scheduleTimestamp)/t.delay);c[e.id].ackTimestamp=Date.now(),c[e.id].logger.log("ack",c[e.id],{mainThreaddelay:(t.ackTimestamp||0)-(t.lastInvokeTimestamp||0),expectedInvokations:n,invokeCount:t.invokeCount}),l.ReportAck&&u("timekeeper.ack",{mainThreadDelay:(t.ackTimestamp||0)-(t.lastInvokeTimestamp||0)},c[e.id]),"timeout"===t.type&&m(e.id)})(n)}},addEventListener("message",function(e){var t,o=e.data,n=o.type,a=o.method,i=o.id,s=o.params;"RPC"===n&&a&&((t=__webpack_exports__[a])?Promise.resolve().then(function(){return t.apply(__webpack_exports__,s)}):Promise.reject("No such method")).then(function(e){postMessage({type:"RPC",id:i,result:e})}).catch(function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:i,error:t})})}),postMessage({type:"RPC",method:"ready"})})();\n//# sourceMappingURL=017ea2bf313656c120fa.worker.js.map'])),{name:"[fullhash].worker.js"});return URL.revokeObjectURL(URL.createObjectURL(new Blob(['(()=>{"use strict";const e=e=>void 0===e?[]:Array.isArray(e)?e:[e];function t(a){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[`%c${a}`,o()],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;i||(i=[`%c${a}`,o()]);const r=l.has("all")||l.has(a.toLowerCase()),c=r?console.log.bind(console,...e(i)):()=>{};return c.debugName=a,c.label=i,c.enabled=r,c.log=m("log"),c.trace=m("trace"),c.debug=m("debug"),c.info=m("info"),c.warn=m("warn"),c.error=m("error",!0),c.table=r?function(){c("Table:"),console.table(...arguments)}:()=>{},c.group=r?e=>console.group(n(i,e)):()=>{},c.groupCollapsed=r?e=>console.groupCollapsed(n(i,e)):()=>{},c.groupEnd=r?()=>console.groupEnd():()=>{},c.time=r?e=>console.time(n(i,e)):()=>{},c.timeEnd=r?e=>console.timeEnd(n(i,e)):()=>{},c.timer=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";const t=Date.now();return c(e),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"end";return c.info(e,Date.now()-t+"ms")}},c.extend=n=>{const[r,...c]=e(i),m=s+1;return t(a,[`${r} %c${n}`,...c,o(m)],m,l)},c;function m(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r)&&"function"==typeof console[t]?console[t].bind(console,...e(i)):()=>{}}}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const t=Math.min(100,35+10*e);return`display: inline-block; color: hsl(0deg, 0%, ${e<5?100:Math.max(0,100-10*e)}%); background: hsl(214deg 100% ${t}%); padding: 1px 4px; border-radius: 3px;`}function n(e,t){const o=t?[...e,t]:e;return[o[0].replace(/^%c/g,""),...o.slice(1)].filter(e=>!e.startsWith("display: inline-block;")).join(" / ").replace(/%c/g,"")}let a=Number.MAX_SAFE_INTEGER,i={},s="",l={maxInterval:2e3,ReportMissingAck:!1,ReportAck:!1},r=t("timekeeper.worker",[],0,new Set);const c={},m=e=>{r.log("clear",e),delete c[e]};let d;const p=()=>{d&&clearTimeout(d);const e=Date.now();let t=l.maxInterval;Object.entries(c).forEach(o=>{let[n,a]=o;const i=Math.floor((e-a.scheduleTimestamp)/a.delay),s=(a.lastInvokeTimestamp||0)-(a.ackTimestamp||0);a.ackTimestamp&&s>8e3&&(function(e){e.logger.warn("ack missing",{id:e.id,type:e.type,delay:e.delay,lastInvokeTimestamp:e.lastInvokeTimestamp,ackTimestamp:e.ackTimestamp,scheduleTimestamp:e.scheduleTimestamp,invokeCount:e.invokeCount})}(a),l.ReportMissingAck&&u("timekeeper.missingAck",{delay:s},a));const r=Math.floor(a.delay-(e-(a.lastInvokeTimestamp||0)));if(t=Math.min(t,r),i>(a.invokeCount||0))a.invokeCount=i,a.lastInvokeTimestamp=Date.now(),postMessage({cmd:"invoke",id:n,ivkId:a.invokeCount}),"interval"!==a.type&&m(n);else{const t=a.lastInvokeTimestamp||a.scheduleTimestamp;a.logger.log("next invokation in",Math.floor((a.delay-(e-t))/1e3),{expectedInvokations:i,scheduleTimestamp:a.scheduleTimestamp,lastInvokationTime:t,invokeCount:a.invokeCount})}}),r.log("next iteration in",Math.floor(t/1e3),{minDelay:t,scheduledTriggers:c});const o=Math.max(t,0);a=Date.now()+o,d=setTimeout(p,o)};function u(e,t,o){i&&function(e){let{body:t,headers:o}=e;try{const e=new XMLHttpRequest;e.open("POST",s,!0),Object.entries(o).forEach(t=>{let[o,n]=t;return e.setRequestHeader(o,n)}),e.send(JSON.stringify({...t,reqType:"xhr"}))}catch(e){console.error(e)}}({headers:{"Content-type":"text/plain"},body:{...i,timeAtSend:Date.now(),payload:[{type:"custom",payload:{module:"timekeeper",event:e,id:o.id,type:o.type,delay:o.delay,lastInvokeTimestamp:o.lastInvokeTimestamp,ackTimestamp:o.ackTimestamp,scheduleTimestamp:o.scheduleTimestamp,invokeCount:o.invokeCount,...t},timeAtSend:Date.now()}]}})}onmessage=e=>{const{cmd:o,args:n}=e.data;switch(o){case"initialize":r=t("timekeeper",void 0,0,new Set(n.logger)).extend("worker"),r.log("init",n),l=n,s=n.bidmaxUrl.startsWith("//")?`https:${n.bidmaxUrl}`:n.bidmaxUrl,i={};break;case"bidmax setup":i={...n.pageAnalytics||{},type:"events",event_type:"bidmax",type_version:2,version:n.bidmaxVersion};break;case"schedule":(e=>{const t=c[e.id]||{};c[e.id]={...t,...e,invokeCount:t.invokeCount||0,scheduleTimestamp:t.scheduleTimestamp||Date.now(),lastInvokeTimestamp:t.lastInvokeTimestamp||Date.now(),logger:(e.meta?.loggerData?r.extend((e.meta?.loggerData||[]).join(":")):r).extend(e.id)},a-Date.now()>e.delay&&(r.log("force wallclock tick",{nextIterationTime:a,now:Date.now(),args:e}),p())})(n);break;case"clear":m(n.id);break;case"ack":(e=>{const t=c[e.id];if(!t)return;const o=Date.now(),n=Math.floor((o-t.scheduleTimestamp)/t.delay);c[e.id].ackTimestamp=Date.now(),c[e.id].logger.log("ack",c[e.id],{mainThreaddelay:(t.ackTimestamp||0)-(t.lastInvokeTimestamp||0),expectedInvokations:n,invokeCount:t.invokeCount}),l.ReportAck&&u("timekeeper.ack",{mainThreadDelay:(t.ackTimestamp||0)-(t.lastInvokeTimestamp||0)},c[e.id]),"timeout"===t.type&&m(e.id)})(n)}},addEventListener("message",function(e){var t,o=e.data,n=o.type,a=o.method,i=o.id,s=o.params;"RPC"===n&&a&&((t=__webpack_exports__[a])?Promise.resolve().then(function(){return t.apply(__webpack_exports__,s)}):Promise.reject("No such method")).then(function(e){postMessage({type:"RPC",id:i,result:e})}).catch(function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:i,error:t})})}),postMessage({type:"RPC",method:"ready"})})();\n//# sourceMappingURL=017ea2bf313656c120fa.worker.js.map']))),i(e,r),e}},1324(e,t,n){var i=n(1857),r=[];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['(()=>{let e;onmessage=t=>{let{data:s}=t;if("setPattern"===s.cmd)e=new RegExp(s.pattern);else if("testMatch"===s.cmd){const{id:t,href:a}=s,n=e.test(a);postMessage({id:t,match:n})}},addEventListener("message",function(e){var t,s=e.data,a=s.type,n=s.method,o=s.id,r=s.params;"RPC"===a&&n&&((t=__webpack_exports__[n])?Promise.resolve().then(function(){return t.apply(__webpack_exports__,r)}):Promise.reject("No such method")).then(function(e){postMessage({type:"RPC",id:o,result:e})}).catch(function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:o,error:t})})}),postMessage({type:"RPC",method:"ready"})})();\n//# sourceMappingURL=ed80e7e2c49deae0e55a.worker.js.map'])),{name:"[fullhash].worker.js"});return URL.revokeObjectURL(URL.createObjectURL(new Blob(['(()=>{let e;onmessage=t=>{let{data:s}=t;if("setPattern"===s.cmd)e=new RegExp(s.pattern);else if("testMatch"===s.cmd){const{id:t,href:a}=s,n=e.test(a);postMessage({id:t,match:n})}},addEventListener("message",function(e){var t,s=e.data,a=s.type,n=s.method,o=s.id,r=s.params;"RPC"===a&&n&&((t=__webpack_exports__[n])?Promise.resolve().then(function(){return t.apply(__webpack_exports__,r)}):Promise.reject("No such method")).then(function(e){postMessage({type:"RPC",id:o,result:e})}).catch(function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:o,error:t})})}),postMessage({type:"RPC",method:"ready"})})();\n//# sourceMappingURL=ed80e7e2c49deae0e55a.worker.js.map']))),i(e,r),e}},4641(e,t,n){"use strict";const i=n(6709),r=n(2191),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=d,t.SlowBuffer=function(e){return+e!=e&&(e=0),d.alloc(+e)},t.INSPECT_MAX_BYTES=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,d.prototype),t}function d(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let i=a(n);const r=i.write(e,t);return r!==n&&(i=i.slice(0,r)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(X(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return d.from(i,t,n);const r=function(e){if(d.isBuffer(e)){const t=0|g(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?a(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return d.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),a(e<0?0:0|g(e))}function p(e){const t=e.length<0?0:0|g(e.length),n=a(t);for(let i=0;i=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function f(e,t){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;let r=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return i?-1:H(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function y(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function b(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=d.from(t,i)),d.isBuffer(t))return 0===t.length?-1:v(e,t,n,i,r);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,i,r){let o,s=1,a=e.length,d=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,d/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){let i=-1;for(o=n;oa&&(n=a-d),o=n;o>=0;o--){let n=!0;for(let i=0;ir&&(i=r):i=r;const o=t.length;let s;for(i>o/2&&(i=o/2),s=0;s>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function k(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);const i=[];let r=t;for(;r239?4:t>223?3:t>191?2:1;if(r+s<=n){let n,i,a,d;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[r+1],128==(192&n)&&(d=(31&t)<<6|63&n,d>127&&(o=d));break;case 3:n=e[r+1],i=e[r+2],128==(192&n)&&128==(192&i)&&(d=(15&t)<<12|(63&n)<<6|63&i,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:n=e[r+1],i=e[r+2],a=e[r+3],128==(192&n)&&128==(192&i)&&128==(192&a)&&(d=(15&t)<<18|(63&n)<<12|(63&i)<<6|63&a,d>65535&&d<1114112&&(o=d))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),r+=s}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",i=0;for(;ii.length?(d.isBuffer(t)||(t=d.from(t)),t.copy(i,r)):Uint8Array.prototype.set.call(i,t,r);else{if(!d.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(i,r)}r+=t.length}return i},d.byteLength=f,d.prototype._isBuffer=!0,d.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(d.prototype[o]=d.prototype.inspect),d.prototype.compare=function(e,t,n,i,r){if(X(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),l=this.slice(i,r),c=e.slice(t,n);for(let e=0;e>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}const r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return I(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function C(e,t,n){let i="";n=Math.min(e.length,n);for(let r=t;ri)&&(n=i);let r="";for(let i=t;in)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,i,r,o){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function M(e,t,n,i,r){F(t,i,r,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function U(e,t,n,i,r){F(t,i,r,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function N(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,i,o){return t=+t,n>>>=0,o||N(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function B(e,t,n,i,o){return t=+t,n>>>=0,o||N(e,0,n,8),r.write(e,t,n,i,52,8),n+8}d.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||O(e,t,this.length);let i=this[e],r=1,o=0;for(;++o>>=0,t>>>=0,n||O(e,t,this.length);let i=this[e+--t],r=1;for(;t>0&&(r*=256);)i+=this[e+--t]*r;return i},d.prototype.readUint8=d.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readBigUInt64LE=Q(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const i=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,r=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(i)+(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const i=t*2**24+65536*this[++e]+256*this[++e]+this[++e],r=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(i)<>>=0,t>>>=0,n||O(e,t,this.length);let i=this[e],r=1,o=0;for(;++o=r&&(i-=Math.pow(2,8*t)),i},d.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||O(e,t,this.length);let i=t,r=1,o=this[e+--i];for(;i>0&&(r*=256);)o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},d.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readBigInt64LE=Q(function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const i=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<>>=0,t||O(e,4,this.length),r.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),r.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),r.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),r.read(this,e,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(e,t,n,i){e=+e,t>>>=0,n>>>=0,i||R(this,e,t,n,Math.pow(2,8*n)-1,0);let r=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,i||R(this,e,t,n,Math.pow(2,8*n)-1,0);let r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},d.prototype.writeUint8=d.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeBigUInt64LE=Q(function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=Q(function(e){return U(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t>>>=0,!i){const i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}let r=0,o=1,s=0;for(this[t]=255&e;++r>>=0,!i){const i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}let r=n-1,o=1,s=0;for(this[t+r]=255&e;--r>=0&&(o*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/o|0)-s&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeBigInt64LE=Q(function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=Q(function(e){return U(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,i){if(!d.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r=i+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function F(e,t,n,i,r,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(o+1)}${i}`:`>= -(2${i} ** ${8*(o+1)-1}${i}) and < 2 ** ${8*(o+1)-1}${i}`:`>= ${t}${i} and <= ${n}${i}`,new j.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||z(t,e.length-(n+1))}(i,r,o)}function V(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,n){if(Math.floor(e)!==e)throw V(e,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}q("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),q("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),q("ERR_OUT_OF_RANGE",function(e,t,n){let i=`The value of "${e}" is out of range.`,r=n;return Number.isInteger(n)&&Math.abs(n)>2**32?r=$(String(n)):"bigint"==typeof n&&(r=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(r=$(r)),r+="n"),i+=` It must be ${t}. Received ${r}`,i},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function H(e,t){let n;t=t||1/0;const i=e.length;let r=null;const o=[];for(let s=0;s55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,i){let r;for(r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const K=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const i=16*n;for(let r=0;r<16;++r)t[i+r]=e[n]+e[r]}return t}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},9973(e,t,n){"use strict";n.r(t),n.d(t,{liveIntentIdSubmodule:()=>Dt,reset:()=>At,setEventFiredFlag:()=>Et,storage:()=>It});var i=n(1825),r=n(3600),o=n(7120),s=n(2245);const a=new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","i"),d=!!String.prototype.trim;function l(e,t){return null!=e?t(e):e}function c(e){return"object"==typeof e?JSON.stringify(e):""+e}function u(e){return null!=e}function p(e){return!!e&&a.test(g(e))}function h(e){return"[object Array]"===Object.prototype.toString.call(e)}function g(e){return d?(""+e).trim():(""+e).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function f(e){return"string"==typeof e}function m(e,t){return f(e)&&f(t)&&g(e.toLowerCase())===g(t.toLowerCase())}function y(e){return!!e&&"object"==typeof e&&!h(e)}function b(e){return y(e)}function v(e){return!!e&&"function"==typeof e}function _(e){return function(e,t){return new Date((new Date).getTime()+e*t)}(e,864e5)}function w(e,t,n){if(y(t)){let i;return i="message"in t&&"string"==typeof t.message?new Error(n||t.message):new Error(n),i.name=e,"stack"in t&&"string"==typeof t.stack&&(i.stack=t.stack),"lineNumber"in t&&"number"==typeof t.lineNumber&&(i.lineNumber=t.lineNumber),"columnNumber"in t&&"number"==typeof t.columnNumber&&(i.columnNumber=t.columnNumber),i}{const t=Error(n);return t.name=e,t}}const I="li_errors";class S{data;constructor(e){const t=parseInt(e.toString())||5;this.data={h:{},q:{},size:t}}on(e,t,n){const i={callback:t.bind(n),unbound:t};return this.data={...this.data,h:{...this.data.h,[e]:[...this.data.h[e]||[],i]}},(this.data.q[e]||[]).forEach(e=>t.call(n,e)),this}once(e,t,n){const i=this.data.q[e]||[];if(i.length>0)return t.call(n,i[0]),this;{const i=r=>{this.off(e,i),t.call(n,r)};return i._=t,this.on(e,i,n)}}emit(e,t){(this.data.h[e]||[]).forEach(e=>e.callback(t));const n=this.data.q[e]||[];return this.data={...this.data,q:{...this.data.q,[e]:[...n.lengthe.unbound!==t)||[];if(i.length)this.data={...this.data,h:{...this.data.h,[e]:i}};else{const{[e]:t,...n}=this.data.h;this.data={...this.data,h:n}}return this}emitErrorWithMessage(e,t,n){const i=w(e,n,t);return this.emit(I,i)}emitError(e,t){const n=w(e,t);return this.emit(I,n)}}for(var T=[],k=0;k<64;)T[k]=0|4294967296*Math.sin(++k%Math.PI);function A(e){var t,n,i,r=[t=1732584193,n=4023233417,~t,~n],o=[],s=unescape(encodeURI(e))+"€",a=s.length;for(e=--a/4+2|15,o[--e]=8*a;~a;)o[a>>2]|=s.charCodeAt(a)<<8*a--;for(k=s=0;k>4]+T[s]+~~o[k|15&[s,5*s+1,3*s+5,7*s][a]])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+s++%4])|i>>>-a),t,n])t=0|a[1],n=a[2];for(s=4;s;)r[--s]+=a[s]}for(e="";s<32;)e+=(r[s>>3]>>4*(1^s++)&15).toString(16);return e}function E(e){var t,n,i,r,o,s=[],a=[n=1732584193,i=4023233417,~n,~i,3285377520],d=[],l=unescape(encodeURI(e))+"€",c=l.length;for(d[e=--c/4+2|15]=8*c;~c;)d[c>>2]|=l.charCodeAt(c)<<8*~c--;for(t=c=0;t>2]+((l=n[0])<<5|l>>>27),l,i<<30|i>>>2,r,o])l=s[c-3]^s[c-8]^s[c-14]^s[c-16],i=n[1],r=n[2],o=n[3];for(c=5;c;)a[--c]+=n[c]}for(l="";c<40;)l+=(a[c>>3]>>4*(7-c++)&15).toString(16);return l}for(var C,x=18,D=[],P=[];x>1;x--)for(C=x;C<320;)D[C+=x]=1;function O(e,t){return 4294967296*Math.pow(e,1/t)|0}for(C=0;C<64;)D[++x]||(P[C]=O(x,2),D[C++]=O(x,3));function R(e,t){return e>>>t|e<<-t}function M(e){var t=P.slice(x=C=0,8),n=[],i=unescape(encodeURI(e))+"€",r=i.length;for(n[e=--r/4+2|15]=8*r;~r;)n[r>>2]|=i.charCodeAt(r)<<8*~r--;for(r=[];x>>10)+r[C-7]+(R(i=r[C-15],7)^R(i,18)^i>>>3)+r[C-16])+O.pop()+(R(i=O[4],6)^R(i,11)^R(i,25))+(i&O[5]^~i&O[6])+D[C++];for(C=8;C;)t[--C]+=O[C]}for(i="";C<64;)i+=(t[C>>3]>>4*(7-C++)&15).toString(16);return i}class U{url;timeout;calls;eventBus;retries;constructor(e){this.url=e.collectorUrl??"https://rp.liadm.com",this.timeout=e.ajaxTimeout??0,this.calls=e.callHandler,this.eventBus=e.eventBus,this.retries=e.ajaxRetries??3}callBakers(e){try{const t=JSON.parse(e).bakers;if(h(t))for(let e=0;e{const i=r=>{const o=e.asHeaders();this.calls.ajaxGet(n,e=>{t.onLoad&&v(t.onLoad)&&t.onLoad(),this.callBakers(e)},n=>{r<=0?(this.sendPixel(e,t),this.eventBus.emitError("AjaxFailed",n)):i(r-1)},this.timeout,o)};i(this.retries)},t.onPreSend)}sendPixel(e,t={}){this.sendState(e,"p",e=>this.calls.pixelGet(e,t.onLoad),t.onPreSend)}}const N="_li_duid",L=[];function B(e){return e>=0&&e<64?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e]:void 0}function j(e){const t=function(e){e=`${e}`;for(let t=0;t255)return null;let t="";for(let n=0;n>2,i[1]=(3&e.charCodeAt(n))<<4,e.length>n+2?(i[1]|=e.charCodeAt(n+1)>>4,i[2]=(15&e.charCodeAt(n+1))<<2,i[2]|=e.charCodeAt(n+2)>>6,i[3]=63&e.charCodeAt(n+2)):e.length>n+1&&(i[1]|=e.charCodeAt(n+1)>>4,i[2]=(15&e.charCodeAt(n+1))<<2);for(let e=0;eString.fromCharCode(parseInt("0x"+t,16)));try{t=window&&v(window.btoa)?window.btoa:j}catch(e){t=j}return t(n).replace(q,F)}const z=new Map([[32,"md5"],[40,"sha1"],[64,"sha256"]]);function W(e){const t=H(e);return!!t&&z.has(t.length)}function H(e){const t=e.match(/(\s+)?[a-f0-9]{32,64}(\s+)?/gi);return t&&t.map(g)[0]}function G(e){const t=e.toLowerCase();return{md5:A(t),sha1:E(t),sha256:M(t)}}function J(e){return/\S+(@|%40)\S+\.\S+/.test(e)}function X(e){return/\S+(@|%40)\S+\.\S+/.test(e)}function Y(e){const t=e.match(/\S+(@|%40)\S+\.\S+/);return t&&t.map(g)[0]}function K(e){const t=function(e){const t=[],n=new RegExp("([\\w\\d.+-]+(@|%40)[\\w\\d-]+.[\\w\\d.-]+)","g");let i=n.exec(e);for(;i;)t.push(g(i[1])),i=n.exec(e);return t}(e),n=[];let i=e;for(let e=0;eZ(ne(e))):Z(ne(n))}}function te(e){let t,n,i;const r={};return e&&-1!==(t=e.indexOf("?"))&&(n=e.slice(t+1))&&(-1===(i=n.indexOf("#"))||(n=n.slice(0,i)))?(n.split("&").forEach(function(e){if(e){let t;const n=e.split("=");t=n[0];const i=2===n.length?n[1]:"true";if("[]"===t.slice(-2)&&(t=t.slice(0,-2)),t in r){const e=r[t];h(e)?e.push(i):r[t]=[e,i]}else r[t]=i}}),r):r}function ne(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)}class ie{hash;host;hostname;pathname;port;protocol;search;constructor(e){const t=e.match(/^(https?\:\/\/)?(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(null===t)throw new TypeError(`Failed to parse URL: ${e}`);this.protocol=t[1]||"",this.host=t[2]||"",this.hostname=t[3]||"",this.port=t[4]||"",this.pathname=t[5]||"",this.search=t[6]||"",this.hash=t[7]||""}toString(){return`${this.protocol}${this.host}${this.pathname}${this.search}${this.hash}`}}const re=["items","itemids"],oe=["email","emailhash","hash","hashedemail"];function se(e){const t={};return Object.keys(e).forEach(n=>{const i=n.toLowerCase(),r=e[n];re.indexOf(i)>-1&&h(r)&&r.length>10?t[n]=r.slice(0,10):t[n]=r}),t}class ae{tuples;constructor(e=[]){this.tuples=e}add(e,t,n={}){const{stripEmpty:i=!0,prepend:r=!1}=n;return""===e||i&&""===t?this:r?(this.tuples.unshift([e,t]),this):(this.tuples.push([e,t]),this)}addOptional(e,t,n={}){return u(t)?this.add(e,t,n):this}addParamsMap(e){return Object.keys(e).forEach(t=>{const n=e[t];u(n)&&(h(n)?n.forEach(e=>this.add(t,e)):this.add(t,n))}),this}copy(){return new ae(this.tuples.slice())}filteredCopy(e){return new ae(this.tuples.filter(([t,n])=>e(t,n)))}toQueryString(){let e="";return this.tuples.forEach(([t,n])=>{const i=0===e.length?"?":"&";e=`${e}${i}${encodeURIComponent(t)}=${encodeURIComponent(n)}`}),e}}function de(e){return null===e?"":e}function le(e){if(0!==e.length){const t=new ie(e);return t.pathname="",t.search="",t.toString()}}const ce=["setemail","setemailhash","sethashedemail"];class ue{data;constructor(e,t,n,i){const r=ue.safeFiddle(e,t,i);n&&(r.errorDetails=n),this.data=r}static safeFiddle(e,t,n){try{return function(e,t){const n={};function i(e){return y(e)?e:{}}function r(e){return Object.keys(e)}const o=i(e),s=i(t);return r(o).forEach(e=>{n[e]=o[e]}),r(s).forEach(e=>{n[e]=s[e]}),n}(e,function(e){return b(e)?{...function(e){const t={eventSource:e};for(const n of Object.keys(e)){const i=n.toLowerCase();if(oe.indexOf(i)>-1){const i=g(c(e[n])),r=Y(i),o=H(i);if(r){const e=G(ne(r));t.hashedEmail=[e.md5,e.sha1,e.sha256];break}if(o&&W(o)){t.hashedEmail=[o.toLowerCase()];break}}}return"string"==typeof e.userAgent&&(t.providedUserAgent=e.userAgent),"string"==typeof e.ipv4&&(t.providedIPV4=e.ipv4),"string"==typeof e.ipv6&&(t.providedIPV6=e.ipv6),t}(e),eventSource:se(e)}:{}}(JSON.parse(JSON.stringify(t))))}catch(e){return console.error(e),null!=n&&n.emitErrorWithMessage("StateCombineWith","Error while extracting event data",e),{}}}static fromEvent(e,t,n){return new ue(e,t,void 0,n)}static fromError(e,t,n){return new ue(e,{},t,n)}setHashedEmail(e){this.data.hashedEmail=e}getHashedEmail(){return this.data.hashedEmail||[]}sendsPixel(){const e=y(this.data.eventSource)?this.data.eventSource:{},t=Object.keys(e).filter(e=>"eventname"===e.toLowerCase()||"event"===e.toLowerCase()),n=t&&t.length>=1&&t[0],i=n&&g(e[n]);return!i||-1===ce.indexOf(i.toLowerCase())}asHeaders(){return this.data.providedUserAgent?{"X-LI-Provided-User-Agent":this.data.providedUserAgent}:{}}asQuery(){const e=this.data,t=(new ae).addOptional("aid",e.appId).addOptional("did",e.distributorId).addOptional("se",l(e.eventSource,e=>V(JSON.stringify(e,Q)))).addOptional("duid",e.liveConnectId).addOptional("tv",e.trackerVersion);if(u(e.pageUrl)){const[n,i,r]=function(e){if(void 0===e.pageUrl||0===e.pageUrl.length)return["",!1,[]];if(function(e){return!(void 0!==e.urlCollectionMode&&"full"!==e.urlCollectionMode||void 0!==e.queryParametersFilter&&""!==e.queryParametersFilter)}(e))return[e.pageUrl,!1,[]];const t=new ie(e.pageUrl),n=function(e){const t=te(e),n=[];return Object.keys(t).forEach(e=>{n.push([e,ee(t,e)])}),n}(t.search),i=function(e,t){return"no_path"===t.urlCollectionMode&&e.pathname.length>1}(t,e),r=function(e,t){if(void 0===t.queryParametersFilter||""===t.queryParametersFilter)return[];const n=new RegExp(t.queryParametersFilter);return e.map(e=>e[0]).filter(e=>n.test(e))}(n,e);return i&&(t.pathname="/"),r.length>0&&(t.search=function(e,t){const n=e.filter(e=>-1===t.indexOf(e[0])).map(e=>`${e[0]}=${e[1]}`);return n.length>0?`?${n.join("&")}`:""}(n,r)),[t.toString(),i,r]}(e);t.add("pu",n).addOptional("pu_rp",i?"1":void 0).add("pu_rqp",r.join(","))}return t.addOptional("ae",l(e.errorDetails,e=>V(JSON.stringify(e)))),h(e.retrievedIdentifiers)&&e.retrievedIdentifiers.forEach(e=>t.add(`ext_${e.name}`,e.value)),h(e.hashesFromIdentifiers)&&e.hashesFromIdentifiers.forEach(e=>t.add("scre",`${e.md5},${e.sha1},${e.sha256}`)),t.addOptional("li_did",e.decisionIds?.join(",")).addOptional("e",e.hashedEmail?.join(",")).addOptional("us_privacy",e.usPrivacyString).addOptional("wpn",e.wrapperName).addOptional("gdpr",l(e.gdprApplies,e=>e?"1":"0")).addOptional("gdpr_consent",e.gdprConsent).addOptional("refr",e.referrer).addOptional("gpp_s",e.gppString).addOptional("gpp_as",e.gppApplicableSections?.join(",")).addOptional("cd",e.cookieDomain).addOptional("ic",de(e.resolvedIdCookie),{stripEmpty:!1}).addOptional("c",e.contextElements).addOptional("pip",l(e.providedIPV4,e=>V(e))).addOptional("pip6",l(e.providedIPV6,e=>V(e))),t}}function pe(e=window){return me(()=>e.top.document.referrer)}function he(e=window){const t=me(()=>e.location.ancestorOrigins)||[],n=[];let i,r=e;for(;r!==top;)n.push(r),r=r.parent;n.push(r);for(let e=n.length-1;e>=0&&!i;e--)i=me(()=>n[e].location.href),0!==e&&(i||(i=me(()=>n[e-1].document.referrer)),i||(i=t[e-1]));return i}function ge(e,t,n){if(!e&&t&&""!==t&&n){const e=function(e,t){const n=window.document.querySelectorAll(e);let i="";for(let e=0;e({...e,privacyMode:!!e.gdprApplies||(e.gppApplicableSections??[]).indexOf(2)>-1});function we(e,t){if(e&&e.appId&&e.distributorId){const n=e.distributorId;delete e.distributorId,t.emitError("AppIdAndDistributorIdPresent",new Error(`Event contains both appId: ${e.appId} and distributorId: ${n}. Ignoring distributorId`))}return e}const Ie="idCookie";class Se{eventBus;calls;idexConfig;externalIds;source;publisherId;url;timeout;extraAttributes;requestedAttributes;query;privacyMode;resolvedIdCookie;generateIdCookie;peopleVerifiedId;pageUrl;constructor(e,t,n){const i=e||{identityResolutionConfig:{}};this.eventBus=n,this.calls=t,this.idexConfig=i.identityResolutionConfig||{},this.extraAttributes=this.idexConfig.extraAttributes||{},this.externalIds=i.retrievedIdentifiers||[],this.source=this.idexConfig.source||"unknown",this.publisherId=this.idexConfig.publisherId||"any",this.url=this.idexConfig.url||"https://idx.liadm.com/idex",this.timeout=this.idexConfig.ajaxTimeout||i.ajaxTimeout||5e3,this.requestedAttributes=this.idexConfig.requestedAttributes||L,this.privacyMode=i.privacyMode??!1,this.resolvedIdCookie=i.resolvedIdCookie,this.generateIdCookie="generated"===this.idexConfig.idCookieMode,this.peopleVerifiedId=i.peopleVerifiedId,this.pageUrl=i.pageUrl,this.query=(new ae).addOptional("duid",i.peopleVerifiedId).addOptional("us_privacy",i.usPrivacyString).addOptional("gdpr",l(i.gdprApplies,e=>e?1:0)).addOptional("gdpr_consent",i.gdprConsent).addOptional("did",i.distributorId).addOptional("gpp_s",i.gppString).addOptional("gpp_as",i.gppApplicableSections?.join(",")).addOptional("cd",i.cookieDomain).addOptional("ic",de(i.resolvedIdCookie),{stripEmpty:!1}).addOptional("pu",l(i.pageUrl,le)).addOptional("pip",l(this.extraAttributes.ipv4,e=>V(e))).addOptional("pip6",l(this.extraAttributes.ipv6,e=>V(e))),this.externalIds.forEach(e=>{this.query.add(e.name,e.value)}),this.requestedAttributes.forEach(e=>{this.query.add("resolve",e)})}attributeResolutionAllowed(e){return"uid2"===e?!this.privacyMode:e!==Ie}filterParams(e){return e.filteredCopy((e,t)=>"resolve"!==e||!!f(t)&&this.attributeResolutionAllowed(t))}enrichExtraIdentifiers(e,t){const n=t.tuples.filter(([e])=>"resolve"===e).map(([,e])=>e),i={...e};var r;return r=Ie,n.indexOf(r)>-1&&(this.generateIdCookie&&this.peopleVerifiedId?i[Ie]=this.peopleVerifiedId:this.resolvedIdCookie&&(i[Ie]=this.resolvedIdCookie)),i}responseReceived(e,t){return(n,i)=>{let r={};if(n)try{const e=JSON.parse(n);y(e)&&(r=e)}catch(e){console.error("Error parsing response",e),this.eventBus.emitError("IdentityResolverParser",e)}const o=function(e){if(y(e)&&"getResponseHeader"in e&&v(e.getResponseHeader)){const t=e.getResponseHeader("expires");if(t)return new Date(t)}}(i);e(this.enrichExtraIdentifiers(r,t),{expiresAt:o})}}buildUrl(e){return`${this.url}/${this.source}/${this.publisherId}${this.filterParams(e).toQueryString()}`}getUrl(e){const t=this.query.copy().addParamsMap(e??{});return this.buildUrl(t)}resolve(e,t,n){try{const i=this.query.copy().addParamsMap(n??{});this.calls.ajaxGet(this.buildUrl(i),this.responseReceived(e,i),t,this.timeout)}catch(e){console.error("IdentityResolve",e),t&&v(t)&&t(e),this.eventBus&&this.eventBus.emitError("IdentityResolve",e)}}}function Te(e=5){return function(e){return new S("number"==typeof e&&e>=0?e:5)}(e)}function ke(e){const t=window[e].eventBus||window.__li__evt_bus;return v((n=t).emitErrorWithMessage)&&v(n.emitError)||(n.emitErrorWithMessage=function(e,t,i={}){const r=w(e,t,i);return n.emit(I,r)},n.emitError=function(e,t){return n.emitErrorWithMessage(e,t.message,t)}),t;var n}const Ae="_li_dcdm_c";function Ee(e){const t=e.getCookie(Ae);if(t)return t;const n=document.domain||document.location&&document.location.host||window&&window.location&&window.location.host||"localhost",i=n.split(".");for(let t=i.length;t>0;t--){const n=`.${i.slice(t-1,i.length).join(".")}`;if(e.setCookie(Ae,n,void 0,"Lax",n),e.getCookie(Ae))return n}return`.${n}`}const Ce="disabled",xe=e=>{const t=e.privacyMode?Ce:e.storageStrategy||"cookie";return{...e,storageStrategy:t}},De=_(30),Pe="lidids.",Oe=(e,t,n)=>n.indexOf(e)===t,Re=e=>e&&g(e).length>0;const Me="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Ue=Math.pow(2,48)-1,Ne=function(){const e="undefined"!=typeof window?window:null,t=e&&(e.crypto||e.msCrypto);return t?()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]/255}:()=>Math.random()}();function Le(){let e=Math.floor(32*Ne());return 32===e&&(e=31),Me.charAt(e)}function Be(){return function(e,t){if(e>Ue)throw function(e){const t=new Error(e);return t.source="Ulid",t}("cannot encode time greater than "+Ue);let n,i="";for(;t>0;t--)n=e%32,i=Me.charAt(n)+i,e=(e-n)/32;return i}(Date.now(),10)+function(e){let t="";for(;e>0;e--)t=Le()+t;return t}(16)}const je="_lc2_fpi";function qe(e){try{const t=1*e;return isNaN(t)?void 0:t}catch{}}function $e(e){try{return f(e)&&e.length&&e.length>120?`${e.substr(0,120)}...`:`${e}`}catch{}}const Fe=()=>{};class Ve{obj;name;errors;eventBus;constructor(e,t,n){this.obj=e,this.name=t,this.errors=[],this.eventBus=n}wrap(e){if(y(this.obj)){const t=this.obj[e];if(v(t))return(...n)=>{try{return t.call(this.obj,...n)}catch(t){this.eventBus.emitErrorWithMessage(this.name,`Failed calling ${e}`,t)}}}return this.errors.push(e),Fe}reportErrors(){this.errors.length>0&&this.eventBus.emitErrorWithMessage(this.name,`The functions '${JSON.stringify(this.errors)}' were not provided`)}}const ze=()=>{};function We(e,t,n){return m(t,Ce)?ze:e.wrap(n)}function He(e,t,n){return m(t,"none")?ze:We(e,t,n)}class Ge{minimalFunctions;constructor(e,t){this.minimalFunctions={getCookie:We(t,e,"getCookie"),getDataFromLocalStorage:We(t,e,"getDataFromLocalStorage"),localStorageIsEnabled:He(t,e,"localStorageIsEnabled")}}static make(e,t,n){const i=new Ve(t,"ReadOnlyStorageHandler",n),r=new Ge(e,i);return i.reportErrors(),r}localStorageIsEnabled(){return!!this.minimalFunctions.localStorageIsEnabled()}getCookie(e){return this.minimalFunctions.getCookie(e)||null}getDataFromLocalStorage(e){return this.minimalFunctions.getDataFromLocalStorage(e)||null}}class Je extends Ge{storageStrategy;functions;constructor(e,t){super(e,t),this.storageStrategy=e,this.functions={setCookie:He(t,e,"setCookie"),removeDataFromLocalStorage:He(t,e,"removeDataFromLocalStorage"),setDataInLocalStorage:He(t,e,"setDataInLocalStorage"),findSimilarCookies:We(t,e,"findSimilarCookies")}}static make(e,t,n){const i=new Ve(t,"StorageHandler",n),r=new Je(e,i);return i.reportErrors(),r}setCookie(e,t,n,i,r){this.functions.setCookie(e,t,n,i,r)}setDataInLocalStorage(e,t){this.functions.setDataInLocalStorage(e,t)}removeDataFromLocalStorage(e){this.functions.removeDataFromLocalStorage(e)}findSimilarCookies(e){return this.functions.findSimilarCookies(e)||[]}}class Xe extends Error{constructor(e){super(e),this.name="ParseError"}}class Ye{handler;cookieDomain;eventBus;constructor(e){this.handler=e.storageHandler,this.cookieDomain=e.cookieDomain,this.eventBus=e.eventBus}deleteCookie(e){this.handler.setCookie(e,"",new Date(0),"Lax",this.cookieDomain)}parseMetaRecord(e){const t=JSON.parse(e);if(!y(t))throw new Xe("Meta record is not an object");let n;if("e"in t&&(n=new Date(t.e),isNaN(n.getTime())))throw new Xe("Invalid expiresAt");if(!("w"in t))throw new Xe("Missing writtenAt");const i=new Date(t.w);if(isNaN(i.getTime()))throw new Xe("Invalid writtenAt");return{expiresAt:n,writtenAt:i}}serializeMetaRecord(e){let t;return e.expiresAt&&(t=e.expiresAt.getTime()),JSON.stringify({w:e.writtenAt.getTime(),e:t})}getCookieRecord(e,t){const n=this.handler.getCookie(t);if(!n||0===n.length)return null;let i;try{i=this.parseMetaRecord(n)}catch(n){return this.eventBus.emitErrorWithMessage("Cache","Failed reading meta from cookies",n),this.deleteCookie(e),this.deleteCookie(t),null}const r=i.expiresAt;if(r&&r.getTime()<=Date.now())return null;const o=this.handler.getCookie(e);return o?{data:o,meta:i}:null}getLSRecord(e,t){const n=this.handler.getDataFromLocalStorage(t);if(!n||0===n.length)return null;let i;try{i=this.parseMetaRecord(n)}catch(n){return this.eventBus.emitErrorWithMessage("Cache","Failed reading meta from ls",n),this.handler.removeDataFromLocalStorage(e),this.handler.removeDataFromLocalStorage(t),null}const r=i.expiresAt;if(r&&r.getTime()<=Date.now())return this.handler.removeDataFromLocalStorage(e),this.handler.removeDataFromLocalStorage(t),null;const o=this.handler.getDataFromLocalStorage(e);return o?{data:o,meta:i}:null}get(e){const t=Ke(e),n=this.getCookieRecord(e,t),i=this.getLSRecord(e,t);return n&&i?n.meta.writtenAt.getTime()===i.meta.writtenAt.getTime()?n:n.meta.writtenAt>i.meta.writtenAt?(this.handler.setDataInLocalStorage(e,n.data),this.handler.setDataInLocalStorage(t,this.serializeMetaRecord(n.meta)),n):(this.handler.setCookie(e,i.data,i.meta.expiresAt,"Lax",this.cookieDomain),this.handler.setCookie(t,this.serializeMetaRecord(i.meta),i.meta.expiresAt,"Lax",this.cookieDomain),i):n?(this.handler.setDataInLocalStorage(e,n.data),this.handler.setDataInLocalStorage(t,this.serializeMetaRecord(n.meta)),n):i?(this.handler.setCookie(e,i.data,i.meta.expiresAt,"Lax",this.cookieDomain),this.handler.setCookie(t,this.serializeMetaRecord(i.meta),i.meta.expiresAt,"Lax",this.cookieDomain),i):null}set(e,t,n){const i=Ke(e),r=this.serializeMetaRecord({writtenAt:new Date,expiresAt:n});this.handler.setDataInLocalStorage(e,t),this.handler.setDataInLocalStorage(i,r);const o=n||_(730);this.handler.setCookie(e,t,o,"Lax",this.cookieDomain),this.handler.setCookie(i,r,o,"Lax",this.cookieDomain)}}function Ke(e){return`${e}_meta`}const Qe=()=>{};function Ze(e,t,n){return t?Qe:e.wrap(n)}class et{functions;constructor(e,t,n){const i=new Ve(e,"CallHandler",t);this.functions={ajaxGet:Ze(i,n,"ajaxGet"),pixelGet:Ze(i,n,"pixelGet")},i.reportErrors()}ajaxGet(e,t,n,i,r){this.functions.ajaxGet(e,t,n,i,r)}pixelGet(e,t){this.functions.pixelGet(e,t)}}function tt(e){return t=>"cookie"===t.idCookie?.strategy&&"string"==typeof t.idCookie?.name?{...t,resolvedIdCookie:e.getCookie(t.idCookie.name)}:"localStorage"===t.idCookie?.strategy&&"string"==typeof t.idCookie?.name?{...t,resolvedIdCookie:e.getDataFromLocalStorage(t.idCookie.name)}:t}const nt={};function it(e,t,n,i){if(e&&y(e))if("config"in e)i.emitErrorWithMessage("StrayConfig","Received a config after LC has already been initialised",new Error(JSON.stringify(e)));else{const r=ue.fromEvent(n,e,i);r.getHashedEmail().length>0?nt.hashedEmail=r.getHashedEmail():nt.hashedEmail&&r.setHashedEmail(nt.hashedEmail);const o=()=>i.emit("pre_lips","0"),s=()=>i.emit("lips",n);t.sendAjax(r,{onPreSend:o,onLoad:s})}else i.emitErrorWithMessage("EventNotAnObject","Received event was not an object",new Error(e))}function rt(e,t,n,i){try{const o={...we(e,i),identifiersToResolve:e.identifiersToResolve||[],contextSelectors:e.contextSelectors||"",contextElementsLength:e.contextElementsLength||0},s=(r=xe(_e(o)),{...r,pageUrl:he(),referrer:pe(),contextElements:ge(r.privacyMode,r.contextSelectors,r.contextElementsLength)}),a=new et(n,i,s.privacyMode),d=Je.make(s.storageStrategy,t,i),l=function(e){return t=>({...t,cookieDomain:Ee(e)})}(d)(s),c=new Ye({storageHandler:d,eventBus:i,cookieDomain:l.cookieDomain}),u=tt(d)(function(e,t){return n=>{let i;const r=e.get(je);if(r)i=r.data;else{const r=t.getCookie(je);if(r)e.set(je,r),i=r;else{const t=`${function(e,t=12){return E(e.replace(/^\./,"")).substring(0,t)}(n.cookieDomain)}--${Be()}`.toLocaleLowerCase();e.set(je,t),i=e.get(je)?.data}}return i&&t.setDataInLocalStorage(N,i),{...n,liveConnectId:i,peopleVerifiedId:i}}}(c,d)(function(e,t){return n=>{function i(e,n){try{return n()}catch(n){return t.emitErrorWithMessage("DecisionsResolve",e,n),[]}}const r=i("Error while extracting new decision ids",()=>{return[].concat(n.pageUrl&&(e=n.pageUrl,ee(te(e),"li_did"))||[]).map(g).filter(Re).filter(p).filter(Oe);var e}),o=i("Error while retrieving stored decision ids",()=>e.findSimilarCookies(Pe).map(g).filter(Re).filter(p));return r.forEach(i=>{try{(r=i)&&e.setCookie(`${Pe}${r}`,r,De,"Lax",n.cookieDomain)}catch(e){t.emitErrorWithMessage("DecisionsResolve","Error while storing new decision id",e)}var r}),{...n,decisionIds:r.concat(o).filter(Oe)}}}(d,i)(function(e,t){return n=>{try{return{...n,...be(ye(n.identifiersToResolve),e)}}catch(e){return t.emitError("IdentifiersEnricher",e),{...n,retrievedIdentifiers:[],hashesFromIdentifiers:[]}}}}(d,i)(l)))),f=new U({collectorUrl:o.collectorUrl,ajaxTimeout:o.ajaxTimeout,eventBus:i,callHandler:a});!function(e,t,n){try{n.on(I,i=>{const r=ue.fromError(e,function(e){return b(e)?{message:$e(e.message)||"",name:$e(e.name)||"",stackTrace:$e(e.stack),lineNumber:qe(e.lineNumber),columnNumber:qe(e.columnNumber),fileName:$e(e.fileName)}:{message:"Unknown message",name:"Unknown name"}}(i),n);t.sendPixel(r)})}catch(e){console.error("handlers.error.register",e)}}(u,f,i);const m=new Se(u,a,i),y=(...e)=>function(e,t,n,i){try{e.forEach(e=>{const r=e;h(r)?r.forEach(e=>it(e,t,n,i)):it(r,t,n,i)})}catch(e){console.error("Error sending events",e),i.emitErrorWithMessage("LCPush","Failed sending an event",e)}}(e,f,u,i);return{push:y,fire:()=>y({}),peopleVerifiedId:u.peopleVerifiedId,ready:!0,resolve:m.resolve.bind(m),resolutionCallUrl:m.getUrl.bind(m),config:o,eventBus:i,storageHandler:d,cache:c}}catch(e){console.error(e),i.emitErrorWithMessage("LCConstruction","Failed to build LC",e)}var r}function ot(e,t,n,i){const r=y(e)&&e||{},o=i||Te();let s;try{s=r.globalVarName?function(e,t,n,i){const r=window[e.globalVarName]||[],o=function(e){try{if(window&&window[e.globalVarName]&&window[e.globalVarName].ready){const t=window[e.globalVarName].config&&function(e,t){if(e.appId!==t.appId||e.wrapperName!==t.wrapperName||e.collectorUrl!==t.collectorUrl)return{appId:[e.appId,t.appId],wrapperName:[e.wrapperName,t.wrapperName],collectorUrl:[e.collectorUrl,t.collectorUrl]}}(window[e.globalVarName].config,e);if(t){const n=new Error;n.name="ConfigSent",n.message="Additional configuration received";const i=ke(e.globalVarName);window[e.globalVarName].eventBus=i,i.emitErrorWithMessage("LCDuplication",JSON.stringify(t),n)}return window[e.globalVarName]}}catch(e){console.error("Could not initialize error bus")}}(e)||rt(e,t,n,i)||r;if(h(r))for(let e=0;ee.config.globalVarName===o.config.globalVarName).length&&window.liQ_instances.push(o),o}(r,t,n,o):function(e,t,n,i){const r=rt(e,t,n,i);return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(r),r}(r,t,n,o)}catch(e){console.error(e),o.emitErrorWithMessage("LCConstruction","Failed to build LC",e)}return s}function st(e,t){const n=h(e)?e:c(e).split(","),i=[];for(let e=0;e{try{return{...n,retrievedIdentifiers:st(n.identifiersToResolve,e)}}catch(e){return t.emitError("IdentifiersEnrich",e),{...n,retrievedIdentifiers:[]}}}}(a,i)(tt(a)(function(e,t){return n=>{try{return{...n,peopleVerifiedId:n.peopleVerifiedId||e.getDataFromLocalStorage(N)||void 0}}catch(e){return t.emitError("PeopleVerifiedEnrich",e),n}}}(a,i)(s))),c=new Se(l,d,i);return{push:e=>r(e),fire:()=>r({}),peopleVerifiedId:l.peopleVerifiedId,ready:!0,resolve:c.resolve.bind(c),resolutionCallUrl:c.getUrl.bind(c),config:o,eventBus:i,storageHandler:a}}catch(e){console.error(e)}}function dt(e,t,n,i){const r=y(e)&&e||{},o=i||Te();try{return r.globalVarName?function(e,t,n,i){const r=window[e.globalVarName]=window[e.globalVarName]||[],o=at(e,t,n,i,r.push.bind(r));return window.liQ_instances=window.liQ_instances||[],0===window.liQ_instances.filter(e=>e.config.globalVarName===o.config.globalVarName).length&&window.liQ_instances.push(o),o}(r,t,n,o):function(e,t,n,i){const r=at(e,t,n,i,()=>{});return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(r),r}(r,t,n,o)}catch(e){console.error(e)}return{}}const lt=function(e,t,n,i,r){const o="minimal"===i,s=r||Te();return(o?dt:ot)(y(e)&&e||{},t,n,s)};var ct=n(8638),ut=n(3421),pt=n(5240),ht=n(9114),gt=n(9032);const ft="liveIntentId",mt="liveintent.com",yt={nonId:!0};function bt(e){const t={},n=e.nonId||e.unifiedId;return t.lipb=n?{...e,lipbid:n}:e,delete t.lipb?.unifiedId,e.uid2&&(t.uid2={id:e.uid2,ext:{provider:mt}}),e.bidswitch&&(t.bidswitch={id:e.bidswitch,ext:{provider:mt}}),e.triplelift&&(t.triplelift={id:e.triplelift,ext:{provider:mt}}),e.zetassp&&(t.zetassp={id:e.zetassp,ext:{provider:mt}}),e.medianet&&(t.medianet={id:e.medianet,ext:{provider:mt}}),e.magnite&&(t.magnite={id:e.magnite,ext:{provider:mt}}),e.index&&(t.index={id:e.index,ext:{provider:mt}}),e.openx&&(t.openx={id:e.openx,ext:{provider:mt}}),e.pubmatic&&(t.pubmatic={id:e.pubmatic,ext:{provider:mt}}),e.sovrn&&(t.sovrn={id:e.sovrn,ext:{provider:mt}}),e.thetradedesk&&(t.lipb={...t.lipb,tdid:e.thetradedesk},t.tdid={id:e.thetradedesk,ext:{rtiPartner:"TDID",provider:(0,ht.EN)().domain||mt}},delete t.lipb.thetradedesk),e.sharethrough&&(t.sharethrough={id:e.sharethrough,ext:{provider:mt}}),e.sonobi&&(t.sonobi={id:e.sonobi,ext:{provider:mt}}),e.vidazoo&&(t.vidazoo={id:e.vidazoo,ext:{provider:mt}}),e.nexxen&&(t.nexxen={id:e.nexxen,ext:{provider:mt}}),t}function vt(e){if(void 0===window.liModuleEnabled&&e.activatePartialTreatment){const e=(0,gt.Et)(window.liTreatmentRate)?window.liTreatmentRate:.95;window.liModuleEnabled=Math.random(){(0,r.g4)(i)(e,{success:t,error:n},void 0,{method:"GET",withCredentials:!0,customHeaders:o})},pixelGet:(e,t)=>(0,i.triggerPixel)(e,t)};let Tt=!1,kt=null;function At(){window&&window.liQ_instances&&(window.liQ_instances.forEach(e=>e.eventBus.off(wt,Et)),window.liQ_instances=[]),Dt.setModuleMode(null),Tt=!1,kt=null}function Et(){Tt=!0}function Ct(e){if(kt)return kt;const t={publisherId:(e=e||{}).publisherId||"any",requestedAttributes:(n=e.requestedAttributesOverrides,i="object"==typeof n?{...yt,...n}:yt,Object.entries(i).flatMap(e=>{let[t,n]=e;return"boolean"==typeof n&&n?[t]:[]})),extraAttributes:{ipv4:e.ipv4,ipv6:e.ipv6}};var n,i;e.url&&(t.url=e.url),t.ajaxTimeout=e.ajaxTimeout||5e3;const r=function(e){const t={};return(e=e||{}).appId&&(t.appId=e.appId),e.fpiStorageStrategy&&(t.storageStrategy=e.fpiStorageStrategy),e.fpiExpirationDays&&(t.expirationDays=e.fpiExpirationDays),e.collectorUrl&&(t.collectorUrl=e.collectorUrl),t.ajaxTimeout=e.ajaxTimeout||5e3,t}(e.liCollectConfig);!r.appId&&e.distributorId?(r.distributorId=e.distributorId,t.source=e.distributorId):t.source=e.partner||"prebid",r.wrapperName="prebid",r.trackerVersion="10.23.0",r.identityResolutionConfig=t,r.identifiersToResolve=e.identifiersToResolve||[],r.fireEventDelay=e.fireEventDelay;const s=o.t6.getConsentData();s&&(r.usPrivacyString=s);const a=o.mW.getConsentData();a&&(r.gdprApplies=a.gdprApplies,r.gdprConsent=a.consentString);const d=o.ad.getConsentData();d&&(r.gppString=d.gppString,r.gppApplicableSections=d.applicableSections),kt=Dt.getInitializer()(r,It,St);const l=function(e){const t={};let n=!1;if("string"==typeof e.emailHash&&(n=!0,t.emailHash=e.emailHash),"string"==typeof e.ipv4&&(n=!0,t.ipv4=e.ipv4),"string"==typeof e.ipv6&&(n=!0,t.ipv6=e.ipv6),"string"==typeof e.userAgent&&(n=!0,t.userAgent=e.userAgent),n)return t}(e);return null!=l&&kt.push(l),kt}function xt(){if(!Tt&&kt){const e=kt.config.fireEventDelay||500;setTimeout(()=>{window.liQ_instances.forEach(e=>e.eventBus.once(wt,Et)),!Tt&&kt&&kt.fire()},e)}}const Dt={moduleMode:"standard",name:ft,gvlid:148,setModuleMode(e){this.moduleMode=e},getInitializer(){return(e,t,n)=>lt(e,t,n,this.moduleMode)},decode(e,t){const n=t&&t.params||{};return vt(n),kt||Ct(n),xt(),function(e,t){return t.activatePartialTreatment?window.liModuleEnabled?bt(e):{}:bt(e)}(e,n)},getId(e){const t=e&&e.params||{};vt(t);const n=Ct(t);if(n)return xt(),{callback:function(e){n.resolve(t=>{e(t)},t=>{(0,i.logError)(`${ft}: ID fetch encountered an error: `,t),e()})}}},primaryIds:["libp"],eids:_t};(0,s.bz)("userId",Dt)},5240(e,t,n){"use strict";n.d(t,{M:()=>i});const i={tdid:{source:"adserver.org",atype:1,getValue:function(e){return e.id?e.id:e},getUidExt:function(e){return{rtiPartner:"TDID",...e.ext}}}}},2857(e,t,n){"use strict";n.d(t,{A4:()=>d,J7:()=>l,Pg:()=>c});var i=n(9320),r=n(1825),o=n(4709),s=n(3421);const a=(0,o.m)();function d(e){const{url:t,config:n,id:o,callback:d,loaded:l,adUnitCode:c,renderNow:u}=e;this.url=t,this.config=n,this.handlers={},this.id=o,this.renderNow=u,this.adUnitCode=c,this.loaded=l,this.cmd=[],this.push=e=>{"function"==typeof e?this.loaded?e.call():this.cmd.push(e):(0,r.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=d||(()=>{this.loaded=!0,this.process()}),this.render=function(){const e=arguments,n=()=>{this._render?this._render.apply(this,e):(0,r.logWarn)("No render function was provided, please use .setRender on the renderer")};!function(e){const t=a.adUnits.find(t=>t.code===e);if(!t)return!1;const n=t?.renderer,i=!!(n&&n.url&&n.render),r=t?.mediaTypes?.video?.renderer,o=!!(r&&r.url&&r.render);return!!(i&&!0!==n.backupOnly||o&&!0!==r.backupOnly)}(c)?u?n():(this.cmd.unshift(n),(0,i.R)(t,s.tp,"outstream",this.callback,this.documentContext)):((0,r.logWarn)(`External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ${c}`),n())}.bind(this)}function l(e){return!(!e||!e.url&&!e.renderNow)}function c(e,t,n){let i=null;e.config&&e.config.documentResolver&&(i=e.config.documentResolver(t,document,n)),i||(i=document),e.documentContext=i,e.render(t,e.documentContext)}d.install=function(e){let{url:t,config:n,id:i,callback:r,loaded:o,adUnitCode:s,renderNow:a}=e;return new d({url:t,config:n,id:i,callback:r,loaded:o,adUnitCode:s,renderNow:a})},d.prototype.getConfig=function(){return this.config},d.prototype.setRender=function(e){this._render=e},d.prototype.setEventHandlers=function(e){this.handlers=e},d.prototype.handleVideoEvent=function(e){let{id:t,eventName:n}=e;"function"==typeof this.handlers[n]&&this.handlers[n](),(0,r.logMessage)(`Prebid Renderer event for id ${t} type ${n}`)},d.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,r.logError)(`Error processing Renderer command on ad unit '${this.adUnitCode}':`,e)}}},9071(e,t,n){"use strict";n.d(t,{DL:()=>c,Ml:()=>r,Ue:()=>i,VJ:()=>p,hE:()=>u,hq:()=>l,mo:()=>d,pY:()=>h,qX:()=>o,uc:()=>a,yg:()=>g,yl:()=>s});const i="accessDevice",r="syncUser",o="enrichUfpd",s="enrichEids",a="fetchBids",d="reportAnalytics",l="transmitEids",c="transmitUfpd",u="transmitPreciseGeo",p="transmitTid",h="loadExternalScript",g="accessRequestCredentials"},1029(e,t,n){"use strict";n.d(t,{s:()=>r});var i=n(1737);const r=(0,n(6440).ZI)(e=>i.Ay.resolveAlias(e))},3421(e,t,n){"use strict";n.d(t,{Tn:()=>a,fW:()=>o,tW:()=>r,tp:()=>i,zu:()=>s});const i="prebid",r="bidder",o="userId",s="rtd",a="analytics"},6440(e,t,n){"use strict";n.d(t,{Dk:()=>s,Ez:()=>c,Ii:()=>o,OI:()=>u,TQ:()=>f,U3:()=>y,XG:()=>p,ZI:()=>m,Zw:()=>l,bt:()=>h,e3:()=>g,iK:()=>a,q7:()=>d});var i=n(3421),r=n(2245);const o="component",s=o+"Type",a=o+"Name",d="adapterCode",l="storageType",c="storageKey",u="write",p="configName",h="syncType",g="syncUrl",f="_config";function m(e){return function(t,n,r){const l={[s]:t,[a]:n,[o]:`${t}.${n}`};return t===i.tW&&(l[d]=e(n)),y(Object.assign(l,r))}}const y=(0,r.A_)("sync",e=>e)},588(e,t,n){"use strict";n.d(t,{Vx:()=>d,l7:()=>a,p4:()=>m,$V:()=>f,ZP:()=>y,$p:()=>b,uD:()=>g});var i=n(724),r=n(7692),o=n(3175),s=n(9071);const a=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map(e=>`user.${e}`).concat("device.ext.cdep"),d=["user.eids","user.ext.eids"],l=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"],c=["device.ip"],u=["device.ipv6"];function p(e){return Object.assign({get(){},run(e,t,n,i,r){const o=n&&n[i];if(f(o)&&r()){const e=this.get(o);void 0===e?delete n[i]:n[i]=e}}},e)}function h(e){return e.forEach(e=>{e.paths=e.paths.map(e=>{const t=e.split("."),n=t.pop();return[t.length>0?t.join("."):null,n]})}),function(t,n){const r=[];for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a{if(!1!==t[e.name])for(const[o,s]of e.paths){const a=null==o?n:(0,i.A)(n,o);if(r.push(e.run(n,o,a,s,d.bind(null,e))),!1===t[e.name])return}}),r.filter(e=>null!=e)}}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.io;return function(n){return!t(e,n)}}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;return[{name:s.DL,paths:a,applies:m(s.DL,e)},{name:s.hq,paths:d,applies:m(s.hq,e)},{name:s.hE,paths:l,applies:m(s.hE,e),get:e=>Math.round(100*(e+Number.EPSILON))/100},{name:s.hE,paths:c,applies:m(s.hE,e),get:e=>function(e){if(!e)return null;const t=e.split(".").map(Number);if(4!==t.length)return null;const n=[];for(let e=0;e<4;e++){const t=Math.max(0,Math.min(8,24-8*e));n.push(255<<8-t&255)}return t.map((e,t)=>e&n[t]).join(".")}(e)},{name:s.hE,paths:u,applies:m(s.hE,e),get:e=>function(e){if(!e)return null;let t=e.split(":").map(e=>parseInt(e,16));for(t=t.map(e=>isNaN(e)?0:e);t.length<8;)t.push(0);if(8!==t.length)return null;const n=[];for(let e=0;e<8;e++){const t=Math.max(0,Math.min(16,64-16*e));n.push(65535<<16-t&65535)}return t.map((e,t)=>e&n[t]).map(e=>e.toString(16)).join(":")}(e)},{name:s.VJ,paths:["source.tid","source.ext.tidSource"],applies:m(s.VJ,e)}].map(p)}const b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;const t=h(y(e)),n=h(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;return[{name:s.hq,paths:["userId","userIdAsEids"],applies:m(s.hq,e)},{name:s.VJ,paths:["ortb2Imp.ext.tid","ortb2Imp.ext.tidSource"],applies:m(s.VJ,e)}].map(p)}(e));return function(e){const i={};return{ortb2:n=>(t(i,n,e),n),bidRequest:t=>(n(i,t,e),t)}}}();(0,o.qB)(s.VJ,"enableTIDs config",()=>{if(!r.$W.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}})},3175(e,t,n){"use strict";n.d(t,{io:()=>s,qB:()=>o});var i=n(1825),r=n(6440);const[o,s]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.prefixLog)("Activity control:");const t={};function n(e){return t[e]=t[e]||[],t[e]}function o(t,n,i,o){let s;try{s=i(o)}catch(i){e.logError(`Exception in rule ${n} for '${t}'`,i),s={allow:!1,reason:i}}return s&&Object.assign({activity:t,name:n,component:o[r.Ii]},s)}const s={};function a(t){let{activity:n,name:i,allow:r,reason:o,component:a}=t;const d=`${i} ${r?"allowed":"denied"} '${n}' for '${a}'${o?":":""}`,l=s.hasOwnProperty(d);if(l&&clearTimeout(s[d]),s[d]=setTimeout(()=>delete s[d],1e3),!l){const t=[d];o&&t.push(o),(r?e.logInfo:e.logWarn).apply(e,t)}}return[function(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const o=n(e),s=o.findIndex(e=>{let[t]=e;return r=0&&o.splice(e,1)}},function(e,t){let i,r;for(const[s,d,l]of n(e)){if(i!==s&&r)break;i=s;const n=o(e,d,l,t);if(n){if(!n.allow)return a(n),!1;r=n}}return r&&a(r),!0}]}()},71(e,t,n){"use strict";n.d(t,{$A:()=>k,BS:()=>F,Hh:()=>B,Pk:()=>j,Uc:()=>x,XO:()=>V,bw:()=>M,n6:()=>A,qn:()=>U,vB:()=>q,vW:()=>D,vd:()=>O});var i=n(1825),r=n(5195),o=n(1533),s=n(7692),a=n(2857),d=n(5415),l=n(9612),c=n(866),u=n(2245),p=n(6501),h=n(1737),g=n(7074),f=n(9801),m=n(4817),y=n(6087),b=n(359);const{AD_RENDER_FAILED:v,AD_RENDER_SUCCEEDED:_,STALE_RENDER:w,BID_WON:I,EXPIRED_RENDER:S}=o.qY,{EXCEPTION:T}=o.as,k=(0,u.A_)("sync",function(e,t,n){n(l.n.findBidByAdId(e))}),A=(0,u.A_)("sync",function(e){((0,m.$T)(e.eventtrackers)[m.RO]?.[m.Ni]||[]).forEach(e=>(0,i.triggerPixel)(e)),r.Ic(I,e),l.n.addWinningBid(e)});function E(e){let{reason:t,message:n,bid:o,id:s}=e;const a={reason:t,message:n};o&&(a.bid=o,a.adId=o.adId),s&&(a.adId=s),(0,i.logError)(`Error rendering ad (id: ${s}): ${n}`),r.Ic(v,a)}function C(e){let{doc:t,bid:n,id:i}=e;const o={doc:t,bid:n,adId:i};h.Ay.callAdRenderSucceededBidder(n.adapterCode||n.bidder,n),r.Ic(_,o)}function x(e,t){switch(e.event){case o.qY.AD_RENDER_FAILED:E({bid:t,id:t.adId,reason:e.info.reason,message:e.info.message});break;case o.qY.AD_RENDER_SUCCEEDED:C({doc:null,bid:t,id:t.adId});break;case o.qY.BROWSER_INTERVENTION:!function(e){const{bid:t,intervention:n}=e;h.Ay.callOnInterventionBidder(t.adapterCode||t.bidder,t,n),r.Ic(o.qY.BROWSER_INTERVENTION,e)}({bid:t,adId:t.adId,intervention:e.intervention});break;default:(0,i.logError)(`Received event request for unsupported event: '${e.event}' (adId: '${t.adId}')`)}}function D(e,t,n){let{resizeFn:i,fireTrackers:r=p.vO}=n;"resizeNativeHeight"===e.action?i(e.width,e.height):r(e,t)}const P={[o.nl.EVENT]:x};P[o.nl.NATIVE]=D;const O=(0,u.A_)("sync",function(e,t){const{ad:n,adUrl:r,cpm:o,originalCpm:s,width:a,height:d,instl:l}=e,c={AUCTION_PRICE:s||o,CLICKTHROUGH:t?.clickUrl||""};return{ad:(0,i.replaceMacros)(n,c),adUrl:(0,i.replaceMacros)(r,c),width:a,height:d,instl:l}}),R=(0,u.A_)("sync",function(e){let{renderFn:t,resizeFn:n,bidResponse:r,options:s,doc:a,isMainDocument:l=a===document&&!(0,i.inIframe)()}=e;const c=r.mediaType===d.G_;if(l||c)return void E({reason:o.as.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:c?"Cannot render video ad without a renderer":"renderAd was prevented from writing to the main document.",bid:r,id:r.adId});const u=O(r,s);t(Object.assign({adId:r.adId},u));const{width:p,height:h}=u;null!=(p??h)&&n(p,h)});function M(e){let{renderFn:t,resizeFn:n,adId:a,options:d,bidResponse:l,doc:c}=e;B(l,()=>{if(null!=l){if((l.status!==o.tl.RENDERED||((0,i.logWarn)(`Ad id ${a} has been rendered before`),r.Ic(w,l),!s.$W.getConfig("auctionOptions")?.suppressStaleRender))&&(f.uW.isBidNotExpired(l)||((0,i.logWarn)(`Ad id ${a} has been expired`),r.Ic(S,l),!s.$W.getConfig("auctionOptions")?.suppressExpiredRender)))try{R({renderFn:t,resizeFn:n,bidResponse:l,options:d,doc:c})}catch(e){E({reason:o.as.EXCEPTION,message:e.message,id:a,bid:l})}}else E({reason:o.as.CANNOT_FIND_AD,message:`Cannot find ad '${a}'`,id:a})})}function U(e){const t=(0,g.BO)(e.metrics);t.checkpoint("bidRender"),t.timeBetween("bidWon","bidRender","render.deferred"),t.timeBetween("auctionEnd","bidRender","render.pending"),t.timeBetween("requestBids","bidRender","render.e2e"),e.status=o.tl.RENDERED}R.before(function(e,t){const{bidResponse:n,doc:i}=t;(0,a.J7)(n.renderer)?((0,a.Pg)(n.renderer,n,i),C({doc:i,bid:n,id:n.adId}),e.bail()):e(t)},100);const N=new WeakMap,L=new WeakSet;function B(e,t){null!=e?(N.set(e,t),e.deferRendering||q(e),j(e)):t()}function j(e){L.has(e)||(L.add(e),A(e))}function q(e){const t=N.get(e);t&&(t(),U(e),N.delete(e))}let $=!1;s.$W.getConfig("auctionOptions",e=>{$=e.auctionOptions?.legacyRender??!1});const F=(0,y.o1)(()=>!$,function(e,t,n){let r;function s(e,n){E(Object.assign({id:t,bid:r},{reason:e,message:n}))}function a(t,n){const i=e.defaultView?.frameElement;i&&(t&&(i.width=t,i.style.width&&(i.style.width=`${t}px`)),n&&(i.height=n,i.style.height&&(i.style.height=`${n}px`)))}const d=(l={resizeFn:a},function(e,t,n){P.hasOwnProperty(e)&&P[e](t,n,l)});var l;function u(e){return new b.U9(t=>{"loading"===e.readyState?e.addEventListener("DOMContentLoaded",t):t()})}function p(t){t.ad&&$?(e.write(t.ad),e.close(),C({doc:e,bid:r,id:r.adId})):b.U9.all([(0,c.HH)(r),u(e)]).then(n=>{let[o]=n;return o(t,{sendMessage:(e,t)=>d(e,t,r),mkFrame:i.createIframe},e.defaultView)}).then(()=>C({doc:e,bid:r,id:r.adId}),e=>{s(e?.reason||o.as.EXCEPTION,e?.message),e?.stack&&(0,i.logError)(e)});const n=document.createComment(`Creative ${r.creativeId} served by ${r.bidder} Prebid.js Header Bidding`);(0,i.insertElement)(n,e,"html")}try{t&&e?k(t,!0,i=>{r=i,M({renderFn:p,resizeFn:a,adId:t,options:{clickUrl:n?.clickThrough},bidResponse:i,doc:e})}):s(o.as.MISSING_DOC_OR_ADID,"missing "+(t?"doc":"adId"))}catch(e){s(T,e.message)}});function V(){if(!window.frames[o.IY])if(document.body){const e=(0,i.createInvisibleIframe)();e.name=o.IY,document.body.appendChild(e)}else window.requestAnimationFrame(V)}},9587(e,t,n){"use strict";function i(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}n.d(t,{A:()=>i})},1737(e,t,n){"use strict";n.d(t,{Ay:()=>re,pX:()=>Q,K5:()=>G});var i=n(9032),r=n(1825),o=n(6501),s=n(5797),a=n(3600),d=n(7692),l=n(2245);const c="requests",u="wins",p="auctions";let h={};function g(e,t){const n=h[e]=h[e]||{bidders:{}};return t?(n.bidders[t]=n.bidders[t]||{},n.bidders[t]):n}function f(e,t){return function(n,i){const r=g(n,t&&i);return r[e]=(r[e]??0)+1,r[e]}}function m(e,t){return function(n,i){return g(n,t&&i)[e]??0}}const y=f(c,!1),b=f(c,!0),v=f(u,!0),_=f(p,!1),w=m(c,!1),I=m(c,!0),S=m(u,!0),T=m(p,!1);var k=n(9114),A=n(7120),E=n(5195),C=n(1533),x=n(7074),D=n(9612),P=n(3421),O=n(3175),R=n(9071),M=n(6440),U=n(588),N=n(4817),L=n(4709);const B="pbsBidAdapter",j={CLIENT:"client",SERVER:"server"},q={isAllowed:O.io,redact:U.$p},$={},F={},V={};let z=[];d.$W.getConfig("s2sConfig",e=>{e&&e.s2sConfig&&(z=(0,i.cy)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])});const W=(0,M.ZI)(e=>ee.resolveAlias(e));function H(e){return e.configName??e.name}function G(e){return W(P.tp,B,{[M.XG]:H(e)})}const J=["nativeParams","nativeOrtbRequest","renderer"];function X(e){let{bidderCode:t,auctionId:n,bidderRequestId:o,adUnits:s,src:a,metrics:d,getTid:l}=e;return s.reduce((e,s)=>{const c=s.bids.filter(e=>e.bidder===t);return null==t&&0===c.length&&null!=s.s2sBid&&c.push({bidder:null}),e.push(c.reduce((e,c)=>{const[u,p]=l(c.bidder,s.transactionId,c.ortb2Imp?.ext?.tid??s.ortb2Imp?.ext?.tid),h=null==(c=Object.assign({},c,{ortb2Imp:(0,r.mergeDeep)({},s.ortb2Imp,c.ortb2Imp,{ext:{tid:u,tidSource:p}})},(0,i.SH)(s,J))).mediaTypes?s.mediaTypes:c.mediaTypes;return(0,r.isValidMediaTypes)(h)?c=Object.assign({},c,{mediaTypes:h}):(0,r.logError)(`mediaTypes is not correctly configured for adunit ${s.code}`),"client"===a&&b(s.code,t),e.push(Object.assign({},c,{adUnitCode:s.code,transactionId:s.transactionId,adUnitId:s.adUnitId,sizes:h?.banner?.sizes||h?.video?.playerSize||[],bidId:c.bid_id||(0,r.generateUUID)(),bidderRequestId:o,auctionId:n,src:a,metrics:d,auctionsCount:T(s.code),bidRequestsCount:w(s.code),bidderRequestsCount:I(s.code,c.bidder),bidderWinsCount:S(s.code,c.bidder),deferBilling:!!s.deferBilling})),e},[])),e},[]).reduce(r.flatten,[]).filter(e=>""!==e)}const Y=(0,l.A_)("sync",function(e,t){let{getS2SBidders:n=Q}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return e;{const i=n(t);return e.filter(e=>{if(!i.has(e.bidder))return!1;if(null==e.s2sConfigName)return!0;const n=H(t);return(Array.isArray(e.s2sConfigName)?e.s2sConfigName:[e.s2sConfigName]).includes(n)})}},"filterBidsForAdUnit"),K=(0,l.A_)("sync",(e,t)=>e,"setupAdUnitMediaTypes");function Q(e){(0,i.cy)(e)||(e=[e]);const t=new Set([null]);return e.filter(e=>e&&e.enabled).flatMap(e=>e.bidders).forEach(e=>t.add(e)),t}const Z=(0,l.A_)("sync",function(e,t){let{getS2SBidders:n=Q}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n(t);return(0,r.getBidderCodes)(e).reduce((e,t)=>(e[i.has(t)?j.SERVER:j.CLIENT].push(t),e),{[j.CLIENT]:[],[j.SERVER]:[]})},"partitionBidders"),ee={bidderRegistry:$,analyticsRegistry:V,aliasRegistry:F,makeBidRequests:(0,l.A_)("sync",function(e,t,n,s,a){let l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6?arguments[6]:void 0;c=(0,x.BO)(c),E.Ic(C.qY.BEFORE_REQUEST_BIDS,e),(0,o.nk)(e),e.map(e=>e.code).filter(r.uniques).forEach(_);let{[j.CLIENT]:u,[j.SERVER]:p}=Z(e,z);const h=new Set;e.forEach(e=>{(0,i.Qd)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter(e=>!e.bidder||q.isAllowed(R.uc,W(P.tW,e.bidder,{isS2S:p.includes(e.bidder)&&!u.includes(e.bidder)}))),e.bids.forEach(e=>{h.add(e.bidder)}),y(e.code)}),u=u.filter(e=>h.has(e)),p=p.filter(e=>h.has(e)),e=K(e,a),d.$W.getConfig("bidderSequence")===d.Ov&&(u=(0,r.shuffle)(u));const g=(0,k.EN)(),f=[],m=l.global||{},b=l.bidder||{},v=function(){let e,t;return d.$W.getConfig("consistentTIDs")?(e="pbjsStable",t=e=>e):(e="pbjs",t=(()=>{const e={};return(t,n)=>(e.hasOwnProperty(n)||(e[n]={}),e[n].hasOwnProperty(t)||(e[n][t]=`u${(0,r.generateUUID)()}`),e[n][t])})()),function(n,i,r){return[r??t(i,n),null!=r?"pub":e]}}();function w(e,t){const n=q.redact(null!=t?t:W(P.tW,e.bidderCode)),[i,o]=v(e.bidderCode,e.auctionId,b[e.bidderCode]?.source?.tid??m.source?.tid),s=Object.freeze(n.ortb2((0,r.mergeDeep)({},m,b[e.bidderCode],{source:{tid:i,ext:{tidSource:o}}})));return e.ortb2=s,e.bids=e.bids.map(e=>(e.ortb2=s,n.bidRequest(e))),e}const I=(0,L.m)();function S(e){return I.pageViewIdPerBidder.has(e)||I.pageViewIdPerBidder.set(e,(0,r.generateUUID)()),I.pageViewIdPerBidder.get(e)}z.forEach(o=>{const s=G(o);if(o&&o.enabled&&q.isAllowed(R.uc,s)){const{adUnits:a,hasModuleBids:d}=function(e,t){let n=(0,i.Go)(e),o=!1;return n.forEach(e=>{const n=e.bids.filter(e=>e.module===B&&e.params?.configName===H(t));1===n.length?(e.s2sBid=n[0],o=!0,e.ortb2Imp=(0,r.mergeDeep)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):n.length>1&&(0,r.logWarn)('Multiple "module" bids for the same s2s configuration; all will be ignored',n),e.bids=Y(e.bids,t).map(e=>(e.bid_id=(0,r.getUniqueIdentifierStr)(),e))}),n=n.filter(e=>!(t.filterBidderlessCalls&&1===e.bids.length&&null==e.bids[0].bidder||0===e.bids.length&&null==e.s2sBid)),{adUnits:n,hasModuleBids:o}}(e,o),l=(0,r.generateUUID)();(0===p.length&&d?[null]:p).forEach(e=>{const d=(0,r.generateUUID)(),u=S(e),p=c.fork(),h=w({bidderCode:e,auctionId:n,bidderRequestId:d,pageViewId:u,uniquePbsTid:l,bids:X({bidderCode:e,auctionId:n,bidderRequestId:d,adUnits:(0,i.Go)(a),src:C.RW.SRC,metrics:p,getTid:v}),auctionStart:t,timeout:o.timeout,src:C.RW.SRC,refererInfo:g,metrics:p,alwaysHasCapacity:o.alwaysHasCapacity},s);0!==h.bids.length&&f.push(h)}),a.forEach(e=>{const t=e.bids.filter(e=>f.find(t=>t.bids.find(t=>t.bidId===e.bid_id)));e.bids=t}),f.forEach(e=>{void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=a.filter(e=>e.bids.length>0||null!=e.s2sBid))})}});const T=function(e){let t=(0,i.Go)(e);return t.forEach(e=>{e.bids=Y(e.bids,null)}),t=t.filter(e=>0!==e.bids.length),t}(e);return u.forEach(e=>{const o=(0,r.generateUUID)(),a=S(e),d=c.fork(),l=$[e],u=w({bidderCode:e,auctionId:n,pageViewId:a,bidderRequestId:o,bids:X({bidderCode:e,auctionId:n,bidderRequestId:o,adUnits:(0,i.Go)(T),src:"client",metrics:d,getTid:v}),auctionStart:t,timeout:s,refererInfo:g,metrics:d,src:"client",alwaysHasCapacity:l?.getSpec?.().alwaysHasCapacity});l||(0,r.logError)(`Trying to make a request for bidder that does not exist: ${e}`),l&&u.bids&&0!==u.bids.length&&f.push(u)}),f.forEach(e=>{A.mW.getConsentData()&&(e.gdprConsent=A.mW.getConsentData()),A.t6.getConsentData()&&(e.uspConsent=A.t6.getConsentData()),A.ad.getConsentData()&&(e.gppConsent=A.ad.getConsentData())}),f},"makeBidRequests"),callBids(e,t,n,i,o,s,l){let c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(!t.length)return void(0,r.logWarn)("callBids executed with no bidRequests. Were they filtered by labels or sizing?");const[u,p]=t.reduce((e,t)=>(e[Number(void 0!==t.src&&t.src===C.RW.SRC)].push(t),e),[[],[]]);var h=[];p.forEach(e=>{for(var t=-1,n=0;n{if(e&&h[g]&&Q(e).has(h[g].bidderCode)){const t=(0,a.g4)(s,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),d=e.bidders,u=$[e.adapter],f=h[g].uniquePbsTid,m=h[g].adUnitsS2SCopy,y=p.filter(e=>e.uniquePbsTid===f);if(u){const o={ad_units:m,s2sConfig:e,ortb2Fragments:c,requestBidsTimeout:s};if(o.ad_units.length){const e=y.map(e=>(e.start=(0,r.timestamp)(),function(t){t||l(e.bidderRequestId);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;od.includes(e));(0,r.logMessage)(`CALLING S2S HEADER BIDDERS ==== ${s.length>0?s.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only'}`),y.forEach(e=>{E.Ic(C.qY.BID_REQUESTED,{...e,tid:e.auctionId})}),u.callBids(o,p,n,t=>e.forEach(e=>e(t)),t)}}else(0,r.logError)("missing "+e.adapter);g++}}),u.forEach(e=>{e.start=(0,r.timestamp)();const t=$[e.bidderCode];d.$W.runWithBidder(e.bidderCode,()=>{(0,r.logMessage)("CALLING BIDDER"),E.Ic(C.qY.BID_REQUESTED,e)});const c=(0,a.g4)(s,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),u=i.bind(e);try{d.$W.runWithBidder(e.bidderCode,t.callBids.bind(t,e,n,u,c,()=>l(e.bidderRequestId),d.$W.callbackWithBidder(e.bidderCode)))}catch(t){(0,r.logError)(`${e.bidderCode} Bid Adapter emitted an uncaught error when parsing their bidRequest`,{e:t,bidRequest:e}),u()}})},videoAdapters:[],registerBidAdapter(e,t){let{supportedMediaTypes:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&t?"function"==typeof e.callBids?($[t]=e,A.o2.register(P.tW,t,e.getSpec?.().gvlid),n.includes("video")&&ee.videoAdapters.push(t),n.includes("native")&&o.mT.push(t)):(0,r.logError)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):(0,r.logError)("bidAdapter or bidderCode not specified")},aliasBidAdapter(e,t,n){if(void 0===$[t]){const i=$[e];if(void 0===i){const n=[];z.forEach(i=>{if(i.bidders&&i.bidders.length){const r=i&&i.bidders;i&&r.includes(t)?F[t]=e:n.push(e)}}),n.forEach(e=>{(0,r.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")})}else try{let a;const d=function(e){const t=[];return ee.videoAdapters.includes(e)&&t.push("video"),o.mT.includes(e)&&t.push("native"),t}(e);if(i.constructor.prototype!==Object.prototype)a=new i.constructor,a.setBidderCode(t);else{const{useBaseGvlid:o=!1}=n||{},d=i.getSpec(),l=o?d.gvlid:n?.gvlid;null==l&&null!=d.gvlid&&(0,r.logWarn)(`Alias '${t}' will NOT re-use the GVL ID of the original adapter ('${d.code}', gvlid: ${d.gvlid}). Functionality that requires TCF consent may not work as expected.`);const c=n&&n.skipPbsAliasing;a=(0,s.xb)(Object.assign({},d,{code:t,gvlid:l,skipPbsAliasing:c})),F[t]=e}ee.registerBidAdapter(a,t,{supportedMediaTypes:d})}catch(t){(0,r.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,r.logMessage)('alias name "'+t+'" has been already specified.')},resolveAlias(e){let t,n=e;for(;F[n]&&(!t||!t.has(n));)n=F[n],(t=t||new Set).add(n);return n},registerAnalyticsAdapter(e){let{adapter:t,code:n,gvlid:i}=e;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,V[n]={adapter:t,gvlid:i},A.o2.register(P.Tn,n,i)):(0,r.logError)(`Prebid Error: Analytics adaptor error for analytics "${n}"\n analytics adapter must implement an enableAnalytics() function`):(0,r.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},enableAnalytics(e){(0,i.cy)(e)||(e=[e]),e.forEach(e=>{const t=V[e.provider];t&&t.adapter?q.isAllowed(R.mo,W(P.Tn,e.provider,{[M.TQ]:e}))&&t.adapter.enableAnalytics(e):(0,r.logError)(`Prebid Error: no analytics adapter found in registry for '${e.provider}'.`)})},getBidAdapter:e=>$[e],getAnalyticsAdapter:e=>V[e],callTimedOutBidders(e,t,n){t=t.map(t=>(t.params=(0,r.getUserConfiguredParams)(e,t.adUnitCode,t.bidder),t.timeout=n,t)),t=(0,r.groupBy)(t,"bidder"),Object.keys(t).forEach(e=>{ie(e,"onTimeout",t[e])})},callBidWonBidder(e,t,n){t.params=(0,r.getUserConfiguredParams)(n,t.adUnitCode,t.bidder),v(t.adUnitCode,t.bidder),ie(e,"onBidWon",t)},triggerBilling:(()=>{const e=new WeakSet;return t=>{e.has(t)||(e.add(t),((0,N.$T)(t.eventtrackers)[N.OA]?.[N.Ni]||[]).forEach(e=>r.internal.triggerPixel(e)),ie(t.bidder,"onBidBillable",t))}})(),callSetTargetingBidder(e,t){ie(e,"onSetTargeting",t)},callBidViewableBidder(e,t){ie(e,"onBidViewable",t)},callBidderError(e,t,n){ie(e,"onBidderError",{error:t,bidderRequest:n})},callAdRenderSucceededBidder(e,t){ie(e,"onAdRenderSucceeded",t)},callOnInterventionBidder(e,t,n){ie(e,"onIntervention",{bid:t,intervention:n})},callDataDeletionRequest:(0,l.A_)("sync",function(){for(var e=arguments.length,t=new Array(e),n=0;n!F.hasOwnProperty(e)).forEach(e=>{const n=te(e,i);if(null!=n){const r=D.n.getBidsRequested().filter(t=>function(e){const t=new Set;for(;F.hasOwnProperty(e)&&!t.has(e);)t.add(e),e=F[e];return e}(t.bidderCode)===e);ne(e,i,...n,r,...t)}}),Object.entries(V).forEach(e=>{let[n,o]=e;const s=o?.adapter?.[i];if("function"==typeof s)try{s.apply(o.adapter,t)}catch(e){(0,r.logError)(`error calling ${i} of ${n}`,e)}})})};function te(e,t){const n=$[e],i=n?.getSpec&&n.getSpec();if(i&&i[t]&&"function"==typeof i[t])return[i,i[t]]}function ne(e,t,n,i){try{(0,r.logInfo)(`Invoking ${e}.${t}`);for(var o=arguments.length,s=new Array(o>4?o-4:0),a=4;aD,JS:()=>O,a$:()=>T,eI:()=>k,fn:()=>P,xb:()=>A});var i=n(9587),r=n(1737),o=n(7692),s=n(641),a=n(6370),d=n(6501),l=n(7187),c=n(1533),u=n(5195),p=n(1825),h=n(9032),g=n(2245),f=n(9612),m=n(8025),y=n(7074),b=n(3175),v=n(1029),_=n(3421),w=n(9071);const I=["cpm","ttl","creativeId","netRevenue","currency"],S={auctionId:e=>e.ortb2?.source?.tid,transactionId:e=>e.ortb2Imp?.ext?.tid};function T(e){const t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function n(e){const n=A(e);r.Ay.registerBidAdapter(n,e.code,t)}n(e),Array.isArray(e.aliases)&&e.aliases.forEach(t=>{let i,o,s=t;(0,h.Qd)(t)&&(s=t.code,i=t.gvlid,o=t.skipPbsAliasing),r.Ay.aliasRegistry[s]=e.code,n(Object.assign({},e,{code:s,gvlid:i,skipPbsAliasing:o}))})}const k=(0,p.memoize)(e=>{let{bidderCode:t}=e;const n=(0,b.io)(w.VJ,(0,v.s)(_.tW,t));function i(e,t,i){return S.hasOwnProperty(t)?n?S[t](e):null:Reflect.get(e,t,i)}function r(e,t){const n=new Proxy(e,t);return Object.entries(e).filter(e=>{let[t,n]=e;return"function"==typeof n}).forEach(t=>{let[i,r]=t;n[i]=r.bind(e)}),n}const o=(0,p.memoize)(e=>r(e,{get:i}),e=>e.bidId);return{bidRequest:o,bidderRequest:e=>r(e,{get:(t,n,r)=>"bids"===n?e.bids.map(o):i(t,n,r)})}});function A(e){return Object.assign((0,i.A)(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:t,callBids:function(n,i,a,d,l,g){if(!Array.isArray(n.bids))return;const f=k(n),b={},v=[];function _(){a(),o.$W.runWithBidder(e.code,()=>{u.Ic(c.qY.BIDDER_DONE,n),t(v,n.gdprConsent,n.uspConsent,n.gppConsent)})}const w=O(n).measureTime("validate",()=>n.bids.filter(t=>{return n=f.bidRequest(t),!!e.isBidRequestValid(n)||((0,p.logWarn)(`Invalid bid sent to bidder ${e.code}: ${JSON.stringify(n)}`),!1);var n}));if(0===w.length)return void _();const I={};w.forEach(e=>{I[e.bidId]=e}),C(e,w,n,d,g,{onRequest:e=>u.Ic(c.qY.BEFORE_BIDDER_HTTP,n,e),onResponse:t=>{l(e.code),v.push(t)},onPaapi:e=>{const t=I[e.bidId];t?D(t,e):(0,p.logWarn)("Received fledge auction configuration for an unknown bidId",e)},onError:(t,i)=>{i.timedOut||l(e.code),r.Ay.callBidderError(e.code,i,n),u.Ic(c.qY.BIDDER_ERROR,{error:i,bidderRequest:n}),(0,p.logError)(`Server call for ${e.code} failed: ${t} ${i.status}. Continuing without bids.`,{bidRequests:w})},onBid:t=>{const n=I[t.requestId],r=t;if(n){if(r.adapterCode=n.bidder,function(e,t){const n=m.u.get(t,"allowAlternateBidderCodes")||!1;let i=m.u.get(t,"allowedAlternateBidderCodes");return!!(e&&t&&t!==e&&(i=(0,h.cy)(i)?i.map(e=>e.trim().toLowerCase()).filter(e=>!!e).filter(p.uniques):i,!n||(0,h.cy)(i)&&"*"!==i[0]&&!i.includes(e)))}(t.bidderCode,n.bidder))return(0,p.logWarn)(`${t.bidderCode} is not a registered partner or known bidder of ${n.bidder}, hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.`),void i.reject(n.adUnitCode,t,c.Tf.BIDDER_DISALLOWED);r.originalCpm=t.cpm,r.originalCurrency=t.currency,r.meta=t.meta||Object.assign({},t[n.bidder]),r.deferBilling=n.deferBilling,r.deferRendering=r.deferBilling&&(t.deferRendering??"function"!=typeof e.onBidBillable);const o=Object.assign((0,s.O)(n),r,(0,p.pick)(n,Object.keys(S)));!function(e,t){const n=(0,y.BO)(t.metrics);n.checkpoint("addBidResponse"),b[e]=!0,n.measureTime("addBidResponse.validate",()=>P(e,t))?i(e,t):i.reject(e,t,c.Tf.INVALID)}(n.adUnitCode,o)}else(0,p.logWarn)(`Bidder ${e.code} made bid for unknown request ID: ${t.requestId}. Ignoring.`),i.reject(null,t,c.Tf.INVALID_REQUEST_ID)},onCompletion:_})}});function t(t,n,i,r){x(e,t,n,i,r)}}const E=["bids","paapi"],C=(0,g.A_)("async",function(e,t,n,i,r,o){let{onRequest:s,onResponse:a,onPaapi:d,onError:l,onBid:u,onCompletion:g}=o;const f=O(n);g=f.startTiming("total").stopBefore(g);const y=k(n);let I=f.measureTime("buildRequests",()=>e.buildRequests(t.map(y.bidRequest),y.bidderRequest(n)));if(Array.isArray(I)||(I=[I]),!I||0===I.length)return void g();const S=(0,p.delayExecution)(g,I.length);I.forEach(t=>{const n=f.fork();function o(e){null!=e&&(e.metrics=n.fork().renameWith()),u(e)}const g=r(function(i,r){I();try{i=JSON.parse(i)}catch(e){}i={body:i,headers:{get:r.getResponseHeader.bind(r)}},a(i);try{i=n.measureTime("interpretResponse",()=>e.interpretResponse(i,t))}catch(t){return(0,p.logError)(`Bidder ${e.code} failed to interpret the server's response. Continuing without bids`,null,t),void S()}let s,l;i&&!Object.keys(i).some(e=>!E.includes(e))?(s=i.bids,l=i.paapi):s=i,(0,h.cy)(l)&&l.forEach(d),s&&((0,h.cy)(s)?s.forEach(o):o(s)),S()}),y=r(function(e,t){I(),l(e,t),S()});s(t);const I=n.startTiming("net"),T="TRUE"===(0,p.getParameterByName)(c.M).toUpperCase()||(0,p.debugTurnedOn)();function k(n){const i=t.options;return Object.assign(n,i,{browsingTopics:!(i?.hasOwnProperty("browsingTopics")&&!i.browsingTopics)&&(m.u.get(e.code,"topicsHeader")??!0)&&(0,b.io)(w.DL,(0,v.s)(_.tW,e.code)),suppressTopicsEnrollmentWarning:i?.hasOwnProperty("suppressTopicsEnrollmentWarning")?i.suppressTopicsEnrollmentWarning:!T})}switch(t.method){case"GET":i(`${t.url}${A=t.data,A?`?${"object"==typeof A?(0,p.parseQueryStringParameters)(A):A}`:""}`,{success:g,error:y},void 0,k({method:"GET",withCredentials:!0}));break;case"POST":const n=t.options?.endpointCompression,r=e=>{let{url:t,payload:n}=e;i(t,{success:g,error:y},n,k({method:"POST",contentType:"text/plain",withCredentials:!0}))};n&&T&&(0,p.logWarn)(`Skipping GZIP compression for ${e.code} as debug mode is enabled`),n&&!T&&(0,p.isGzipCompressionSupported)()?(0,p.compressDataWithGZip)(t.data).then(e=>{const n=new URL(t.url);n.searchParams.has("gzip")||n.searchParams.set("gzip","1"),r({url:n.href,payload:e})}):r({url:t.url,payload:"string"==typeof t.data?t.data:JSON.stringify(t.data)});break;default:(0,p.logWarn)(`Skipping invalid request from ${e.code}. Request type ${t.method} must be GET or POST`),S()}var A})},"processBidderRequests"),x=(0,g.A_)("async",function(e,t,n,i,s){const d=o.$W.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(d||!r.Ay.aliasRegistry[e.code])){let r=e.getUserSyncs({iframeEnabled:a.zt.canBidderRegisterSync("iframe",e.code),pixelEnabled:a.zt.canBidderRegisterSync("image",e.code)},t,n,i,s);r&&(Array.isArray(r)||(r=[r]),r.forEach(t=>{a.zt.registerSync(t.type,e.code,t.url)}),a.zt.bidderDone(e.code))}},"registerSyncs"),D=(0,g.A_)("sync",(e,t)=>{},"addPaapiConfig");function P(e,t){let{index:n=f.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(e){return`Invalid bid from ${t.bidderCode}. Ignoring bid: ${e}`}return e?t?function(){const e=Object.keys(t);return I.every(n=>e.includes(n)&&![void 0,null].includes(t[n]))}()?"native"!==t.mediaType||(0,d.Bm)(t,{index:n})?"video"!==t.mediaType||(0,l.vk)(t,{index:n})?!("banner"===t.mediaType&&!function(e,t){let{index:n=f.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((t.width||0===parseInt(t.width,10))&&(t.height||0===parseInt(t.height,10)))return t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),!0;if(null!=t.wratio&&null!=t.hratio)return t.wratio=parseInt(t.wratio,10),t.hratio=parseInt(t.hratio,10),!0;const i=n.getBidRequest(t),r=n.getMediaTypes(t),o=i&&i.sizes||r&&r.banner&&r.banner.sizes,s=(0,p.parseSizesInput)(o);if(1===s.length){const[e,n]=s[0].split("x");return t.width=parseInt(e,10),t.height=parseInt(n,10),!0}return!1}(e,t,{index:n})&&((0,p.logError)(i("Banner bids require a width and height")),1)):((0,p.logError)(i("Video bid does not have required vastUrl or renderer property")),!1):((0,p.logError)(i("Native bid missing some required properties.")),!1):((0,p.logError)(i(`Bidder ${t.bidderCode} is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params.`)),!1):((0,p.logWarn)(`Some adapter tried to add an undefined bid for ${e}.`),!1):((0,p.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}function O(e){return(0,y.BO)(e.metrics).renameWith(t=>[`adapter.client.${t}`,`adapters.client.${e.bidderCode}.${t}`])}},9320(e,t,n){"use strict";n.d(t,{R:()=>l});var i=n(9071),r=n(1029),o=n(3175),s=n(1825);const a=new WeakMap,d=["debugging","outstream","aaxBlockmeter","adagio","adloox","arcspan","airgrid","browsi","brandmetrics","clean.io","humansecurityMalvDefense","humansecurity","confiant","contxtful","hadron","mediafilter","medianet","azerionedge","a1Media","geoedge","qortex","dynamicAdBoost","51Degrees","symitridap","wurfl","nodalsAi","anonymised","optable","oftmedia","justtag","tncId","ftrackId","id5"];function l(e,t,n,l,c,u){if(!(0,o.io)(i.pY,(0,r.s)(t,n)))return;if(!n||!e)return void(0,s.logError)("cannot load external script without url and moduleCode");if(!d.includes(n))return void(0,s.logError)(`${n} not whitelisted for loading external JavaScript`);c||(c=document);const p=f(c,e);if(p)return l&&"function"==typeof l&&(p.loaded?l():p.callbacks.push(l)),p.tag;const h=a.get(c)||{},g={loaded:!1,tag:null,callbacks:[]};return h[e]=g,a.set(c,h),l&&"function"==typeof l&&g.callbacks.push(l),(0,s.logWarn)(`module ${n} is loading external JavaScript`),function(t,n,i,r){i||(i=document);var o=i.createElement("script");o.type="text/javascript",o.async=!0;const a=f(i,e);return a&&(a.tag=o),o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,n())}:o.onload=function(){n()},o.src=t,r&&(0,s.setScriptAttributes)(o,r),(0,s.insertElement)(o,i),o}(e,function(){g.loaded=!0;try{for(let e=0;em,g4:()=>f,hd:()=>y});var i=n(9071),r=n(1029),o=n(3175),s=n(7692),a=n(2245),d=n(1825);const l={fetch:window.fetch.bind(window),makeRequest:(e,t)=>new Request(e,t),timeout(e,t){const n=new AbortController;let i=setTimeout(()=>{n.abort(),(0,d.logError)(`Request timeout after ${e}ms`,t),i=null},e);return{signal:n.signal,done(){i&&clearTimeout(i)}}}},c="GET",u="Content-Type",p=(0,a.A_)("async",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e.withCredentials&&(e.withCredentials=t&&n?(0,o.io)(i.yg,(0,r.s)(t,n)):(0,d.hasDeviceAccess)()),e},"processRequestOptions");function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=(t,n)=>{let o;null==e||null!=n?.signal||s.$W.getConfig("disableAjaxTimeout")||(o=l.timeout(e,t),n=Object.assign({signal:o.signal},n)),p(n,i,r);let a=l.fetch(t,n);return null!=o?.done&&(a=a.finally(o.done)),a};return null==t&&null==n||(o=(e=>function(i,r){const o=new URL(null==i?.url?i:i.url,document.location).origin;let s=e(i,r);return t&&t(o),n&&(s=s.finally(()=>n(o))),s})(o)),o}function g(e,t){let n,{status:i,statusText:r="",headers:o,url:s}=e;function a(e){if(void 0===n)try{n=(new DOMParser).parseFromString(t,o?.get(u)?.split(";")?.[0])}catch(t){n=null,e&&e(t)}return n}return{readyState:XMLHttpRequest.DONE,status:i,statusText:r,responseText:t,response:t,responseType:"",responseURL:s,get responseXML(){return a(d.logError)},getResponseHeader:e=>o?.has(e)?o.get(e):null,toJSON(){return Object.assign({responseXML:a()},this)},timedOut:!1}}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=h(e,{request:t,done:n},arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0);return function(e,t,n){!function(e,t){const{success:n,error:i}="object"==typeof t&&null!=t?t:{success:"function"==typeof t?t:()=>null,error:(e,t)=>(0,d.logError)("Network error",e,t)};e.then(e=>e.text().then(t=>[e,t])).then(e=>{let[t,r]=e;const o=g(t,r);t.ok||304===t.status?n(r,o):i(t.statusText,o)},e=>i("",Object.assign(g({status:0},""),{reason:e,timedOut:"AbortError"===e?.name})))}(i(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n.method||(t?"POST":c);if(i===c&&t){const i=(0,d.parseUrl)(e,n);Object.assign(i.search,t),e=(0,d.buildUrl)(i)}const r=new Headers(n.customHeaders);r.set(u,n.contentType||"text/plain");const o={method:i,headers:r};return i!==c&&t&&(o.body=t),n.withCredentials&&(o.credentials="include"),isSecureContext&&(["browsingTopics","adAuctionHeaders"].forEach(e=>{n[e]&&(o[e]=!0)}),null!=n.suppressTopicsEnrollmentWarning&&(o.suppressTopicsEnrollmentWarning=n.suppressTopicsEnrollmentWarning)),n.keepalive&&(o.keepalive=!0),l.makeRequest(e,o)}(e,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),t)}}const m=f(),y=h()},2230(e,t,n){"use strict";n.d(t,{UZ:()=>U,v8:()=>H,NE:()=>q,HN:()=>K,mX:()=>$});var i=n(1825),r=n(9032),o=n(1093),s=n(6501),a=n(3600),d=n(7692),l=n(9612);const c=new Map;function u(e){return e.vastXml?e.vastXml:`\n \n \n prebid.org wrapper\n \n ${(t=(t=e.vastImpUrl)&&(Array.isArray(t)?t:[t]))?t.map(e=>``).join(""):""}\n \n \n \n `;var t}const p=(e,t,n)=>{e.videoCacheKey=n||(0,i.generateUUID)(),e.vastUrl||(e.vastUrl=t)},h=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.g4;const i={puts:e.map(e=>function(e){let{index:t=l.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=u(e),i=t.getAuction(e),r={type:"xml",value:n,ttlseconds:Number(e.ttl)+15};return d.$W.getConfig("cache.vasttrack")&&(r.bidder=e.bidder,r.bidid=e.requestId,r.aid=e.auctionId),null!=i&&(r.timestamp=i.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(r.key=e.customCacheKey),r}(e))};n(d.$W.getConfig("cache.timeout"))(d.$W.getConfig("cache.url"),function(e){return{success:function(t){let n;try{n=JSON.parse(t).responses}catch(t){return void e(t,[])}n?e(null,n):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(t,n){e(new Error(`Error storing video ad in the cache: ${t}: ${JSON.stringify(n)}`),[])}}}(t),JSON.stringify(i),{contentType:"text/plain",withCredentials:!0})};function g(e){const t=e.map(e=>e.bidResponse);h(t,function(n,r){var o;n?(o=n,(0,i.logError)(`Failed to save to the video cache: ${o}. Video bids will be discarded:`,t)):e.length!==r.length?(0,i.logError)(`expected ${e.length} cache IDs, got ${r.length} instead`):r.forEach((t,n)=>{const{auctionInstance:r,bidResponse:o,afterBidAdded:s}=e[n];""===t.uuid?(0,i.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(p(o,function(e){return`${d.$W.getConfig("cache.url")}?uuid=${e}`}(t.uuid),t.uuid),H(r,o),s())})})}let f,m,y;d.$W.getConfig("cache",e=>{let{cache:t}=e;f="number"==typeof t.batchSize&&t.batchSize>0?t.batchSize:1,m="number"==typeof t.batchTimeout&&t.batchTimeout>0?t.batchTimeout:0,t.useLocal&&!y&&(y=l.n.onExpiry(e=>{e.getBidsReceived().forEach(e=>{const t=c.get(e.videoCacheKey);t&&t.startsWith("blob")&&URL.revokeObjectURL(t),c.delete(e.videoCacheKey)})}))});const b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,n=[[]],i=!1;const r=e=>e();return function(o,s,a){const d=m>0?e:r;n[n.length-1].length>=f&&n.push([]),n[n.length-1].push({auctionInstance:o,bidResponse:s,afterBidAdded:a}),i||(i=!0,d(()=>{n.forEach(t),n=[[]],i=!1},m))}}();var v=n(2857),_=n(6370),w=n(2245),I=n(7187),S=n(5415),T=n(8025),k=n(5195),A=n(1737),E=n(1533),C=n(359),x=n(7074),D=n(4236),P=n(4709),O=n(698),R=n(6555);const{syncUsers:M}=_.zt,U="completed";k.on(E.qY.BID_ADJUSTMENT,function(e){!function(e){const t=(0,D.y)(e.cpm,e);t>=0&&(e.cpm=t)}(e)});const N={},L={},B=[],j=(0,P.m)(),q=(0,w.A_)("sync",e=>{});function $(e){let{adUnits:t,adUnitCodes:n,callback:r,cbTimeout:a,labels:h,auctionId:g,ortb2Fragments:f,metrics:m}=e;m=(0,x.BO)(m);const y=t,b=h,_=n,w=g||(0,i.generateUUID)(),T=a,D=new Set,P=(0,C.v6)(),$=(0,C.v6)();let Y=[],K=r,Q=[];const ee=(0,O.H)({startTime:e=>e.responseTimestamp,ttl:e=>null==(0,R.S9)()?null:1e3*Math.max((0,R.S9)(),e.ttl)});let te,ne,ie,re,oe=[],se=[],ae=[];function de(){return{auctionId:w,timestamp:te,auctionEnd:ne,auctionStatus:re,adUnits:y,adUnitCodes:_,labels:b,bidderRequests:Q,noBids:oe,bidsReceived:ee.toArray(),bidsRejected:Y,winningBids:se,timeout:T,metrics:m,seatNonBids:ae}}function le(e){if(e?k.Ic(E.qY.AUCTION_TIMEOUT,de()):clearTimeout(ie),void 0===ne){let n=[];e&&((0,i.logMessage)(`Auction ${w} timedOut`),n=Q.filter(e=>!D.has(e.bidderRequestId)).flatMap(e=>e.bids),n.length&&k.Ic(E.qY.BID_TIMEOUT,n)),re=U,ne=Date.now(),m.checkpoint("auctionEnd"),m.timeBetween("requestBids","auctionEnd","requestBids.total"),m.timeBetween("callBids","auctionEnd","requestBids.callBids"),P.resolve(),k.Ic(E.qY.AUCTION_END,de()),W(y,function(){try{if(null!=K){const t=ee.toArray().filter(e=>_.includes(e.adUnitCode)).reduce(Z,{});K.apply(j,[t,e,w]),K=null}}catch(e){(0,i.logError)("Error executing bidsBackHandler",null,e)}finally{n.length&&A.Ay.callTimedOutBidders(t,n,T);const e=d.$W.getConfig("userSync")??{};e.enableOverride||M(e.syncDelay)}})}}function ce(){d.$W.resetBidder(),(0,i.logInfo)(`Bids Received for Auction with id: ${w}`,ee.toArray()),re=U,le(!1)}function ue(e){D.add(e)}function pe(e){e.forEach(e=>{var t;t=e,Q=Q.concat(t)});const t={},n={bidRequests:e,run:()=>{q(this),ie=setTimeout(()=>le(!0),T),re="inProgress",k.Ic(E.qY.AUCTION_INIT,de());const n=function(e,t){let{index:n=l.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,a=!1;const h=new Set,g={};function f(){r--,a&&0===r&&e()}function m(e,t,n){return g[t.requestId]=!0,function(e,t){let{index:n=l.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n.getAdUnit(e);J(e,{index:n}),Object.assign(e,{cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:t}),null!=i?.ttlBuffer&&(e.ttlBuffer=i.ttlBuffer)}(t,e),r++,n(f)}function y(e,r){m(e,r,e=>{const a=function(e){let{index:t=l.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k.Ic(E.qY.BID_ADJUSTMENT,e);const n=t.getAdUnit(e);e.instl=1===n?.ortb2Imp?.instl;const i=t.getBidRequest(e)?.renderer||n.renderer,r=e.mediaType,s=t.getMediaTypes(e),a=s&&s[r];var c=a&&a.renderer,u=null;!c||!c.render||!0===c.backupOnly&&e.renderer?!i||!i.render||!0===i.backupOnly&&e.renderer||(u=i):u=c,u&&(e.renderer=v.A4.install({url:u.url,config:u.options,renderNow:null==u.url}),e.renderer.setRender(u.render));const p=X(e.mediaType,s,d.$W.getConfig("mediaTypePriceGranularity")),h=(0,o.j)(e.cpm,"object"==typeof p?p:d.$W.getConfig("customPriceBucket"),d.$W.getConfig("currency.granularityMultiplier"));return e.pbLg=h.low,e.pbMg=h.med,e.pbHg=h.high,e.pbAg=h.auto,e.pbDg=h.dense,e.pbCg=h.custom,e}(r);k.Ic(E.qY.BID_ACCEPTED,a),a.mediaType===S.G_||a.mediaType===S.FY?function(e,t,n){let{index:r=l.n.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=!0;const s=r.getMediaTypes({requestId:t.originalRequestId||t.requestId,adUnitId:t.adUnitId})?.video,a=s&&s?.context,h=s&&s?.useCacheKey,{useLocal:g,url:f,ignoreBidderCacheKey:m}=d.$W.getConfig("cache")||{};g?(e=>{const t=u(e),n=URL.createObjectURL(new Blob([t],{type:"text/xml"}));p(e,n),c.set(e.videoCacheKey,n)})(t):f&&(h||a!==I.H6)&&(!t.videoCacheKey||m?(o=!1,G(e,t,n,s)):t.vastUrl||((0,i.logError)("videoCacheKey specified but not required vastUrl for video bid"),o=!1)),o&&(H(e,t),n())}(t,a,e):((0,s.l6)(a)&&(0,s.gs)(a,n.getAdUnit(a)),H(t,a),e())})}function b(e,n,r){return m(e,n,e=>{n.rejectionReason=r,(0,i.logWarn)(`Bid from ${n.bidder||"unknown bidder"} was rejected: ${r}`,n),k.Ic(E.qY.BID_REJECTED,n),t.addBidRejected(n),e()})}function _(){let n=t.getBidRequests();const o=d.$W.getConfig("auctionOptions");if(h.add(this),o&&!(0,i.isEmpty)(o)){const e=o.secondaryBidders;e&&!n.every(t=>e.includes(t.bidderCode))&&(n=n.filter(t=>!e.includes(t.bidderCode)))}a=n.every(e=>h.has(e)),this.bids.forEach(e=>{g[e.bidId]||(J(e),t.addNoBid(e),k.Ic(E.qY.NO_BID,e))}),a&&0===r&&e()}return{addBidResponse:function(){function e(e,t){F.call({dispatch:y},e,t,(()=>{let n=!1;return i=>{n||(b(e,t,i),n=!0)}})())}return e.reject=b,e}(),adapterDone:function(){V(C.U9.resolve()).finally(()=>_.call(this))}}}(ce,this);A.Ay.callBids(y,e,n.addBidResponse,n.adapterDone,{request(e,n){a(N,n),a(t,e),L[e]||(L[e]={SRA:!0,origin:n}),t[e]>1&&(L[e].SRA=!1)},done(e){N[e]--,B[0]&&r(B[0])&&B.shift()}},T,ue,f),$.resolve()}};function r(e){let t=!0;const n=d.$W.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some(e=>{let i=1;const r=void 0!==e.src&&e.src===E.RW.SRC?"s2s":e.bidderCode;return!(e.alwaysHasCapacity&&!d.$W.getConfig("forceMaxRequestsPerOrigin")||(L[r]&&(!1===L[r].SRA&&(i=Math.min(e.bids.length,n)),N[L[r].origin]+i>n&&(t=!1)),t))}),t&&e.run(),t}function a(e,t){void 0===e[t]?e[t]=1:e[t]++}r(n)||((0,i.logWarn)("queueing auction due to limited endpoint capacity"),B.push(n))}return(0,R.lc)(()=>ee.refresh()),k.on(E.qY.SEAT_NON_BID,e=>{var t;e.auctionId===w&&(t=e.seatnonbid,ae=ae.concat(t))}),{addBidReceived:function(e){ee.add(e)},addBidRejected:function(e){Y=Y.concat(e)},addNoBid:function(e){oe=oe.concat(e)},callBids:function(){re="started",te=Date.now();const e=m.measureTime("requestBids.makeRequests",()=>A.Ay.makeBidRequests(y,te,w,T,b,f,m));(0,i.logInfo)(`Bids Requested for Auction with id: ${w}`,e),m.checkpoint("callBids"),e.length<1?((0,i.logWarn)("No valid bid requests returned for auction"),ce()):z.call({dispatch:pe,context:this},e)},addWinningBid:function(e){se=se.concat(e),A.Ay.callBidWonBidder(e.adapterCode||e.bidder,e,t),e.deferBilling||A.Ay.triggerBilling(e)},setBidTargeting:function(e){A.Ay.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:()=>se,getAuctionStart:()=>te,getAuctionEnd:()=>ne,getTimeout:()=>T,getAuctionId:()=>w,getAuctionStatus:()=>re,getAdUnits:()=>y,getAdUnitCodes:()=>_,getBidRequests:()=>Q,getBidsReceived:()=>ee.toArray(),getNoBids:()=>oe,getNonBids:()=>ae,getFPD:()=>f,getMetrics:()=>m,end:P.promise,requestsDone:$.promise,getProperties:de}}const F=(0,w.u2)((0,w.A_)("async",function(e,t,n){!function(e){const t=d.$W.getConfig("maxBid");return!t||!e.cpm||t>=Number(e.cpm)}(t)?n(E.Tf.PRICE_TOO_HIGH):this.dispatch.call(null,e,t)},"addBidResponse")),V=(0,w.A_)("sync",e=>e,"responsesReady"),z=(0,w.A_)("sync",function(e){this.dispatch.call(this.context,e)},"addBidderRequests"),W=(0,w.A_)("async",function(e,t){t&&t()},"bidsBackCallback");function H(e,t){!function(e){let t;const n=!0===T.u.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(n||e.dealId)&&(t=function(e,t){let{index:n=l.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return{};const i=n.getBidRequest(t);var r={};return Q(r,K(t.mediaType,e),t,i),e&&T.u.getOwn(e,E.iD.ADSERVER_TARGETING)&&(Q(r,T.u.ownSettingsFor(e),t,i),t.sendStandardTargeting=T.u.get(e,"sendStandardTargeting")),r}(e.bidderCode,e)),e.adserverTargeting=Object.assign(e.adserverTargeting||{},t)}(t),(0,x.BO)(t.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(t),k.Ic(E.qY.BID_RESPONSE,t)}const G=(0,w.A_)("async",function(e,t,n,i){b(e,t,n)},"callPrebidCache");function J(e){let{index:t=l.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.getBidderRequest(e),r=n&&n.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,i.timestamp)(),requestTimestamp:e.requestTimestamp||r}),e.timeToRespond=e.responseTimestamp-e.requestTimestamp}function X(e,t,n){if(e&&n){if(e===S.G_){const e=t?.[S.G_]?.context??"instream";if(n[`${S.G_}-${e}`])return n[`${S.G_}-${e}`]}return n[e]}}function Y(e,t){return{key:e,val:"function"==typeof t?function(e,n){return t(e,n)}:function(e){return e[t]}}}function K(e,t){const n=Object.assign({},T.u.settingsFor(null));if(n[E.iD.ADSERVER_TARGETING]||(n[E.iD.ADSERVER_TARGETING]=[Y(E.xS.BIDDER,"bidderCode"),Y(E.xS.AD_ID,"adId"),Y(E.xS.PRICE_BUCKET,e=>{const t=r||function(e){let{index:t=l.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=X(e.mediaType,t.getMediaTypes(e),d.$W.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&n?"string"==typeof n?n:"custom":d.$W.getConfig("priceGranularity")}(e);return t===E.UE.AUTO?e.pbAg:t===E.UE.DENSE?e.pbDg:t===E.UE.LOW?e.pbLg:t===E.UE.MEDIUM?e.pbMg:t===E.UE.HIGH?e.pbHg:t===E.UE.CUSTOM?e.pbCg:void 0}),Y(E.xS.SIZE,"size"),Y(E.xS.DEAL,"dealId"),Y(E.xS.SOURCE,"source"),Y(E.xS.FORMAT,"mediaType"),Y(E.xS.ADOMAIN,e=>e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:""),Y(E.xS.ACAT,e=>{const t=e?.meta?.primaryCatId;return Array.isArray(t)?t[0]||"":t||""}),Y(E.xS.DSP,e=>e.meta&&(e.meta.networkId||e.meta.networkName)?e?.meta?.networkName||e?.meta?.networkId:""),Y(E.xS.CRID,e=>e.creativeId?e.creativeId:"")]),"video"===e){const e=n[E.iD.ADSERVER_TARGETING].slice();if(n[E.iD.ADSERVER_TARGETING]=e,[E.xS.UUID,E.xS.CACHE_ID].forEach(t=>{void 0===e.find(e=>e.key===t)&&e.push(Y(t,"videoCacheKey"))}),d.$W.getConfig("cache.url")&&(!t||!1!==T.u.get(t,"sendStandardTargeting"))){const t=(0,i.parseUrl)(d.$W.getConfig("cache.url"));void 0===e.find(e=>e.key===E.xS.CACHE_HOST)&&e.push(Y(E.xS.CACHE_HOST,function(e){return e?.adserverTargeting?.[E.xS.CACHE_HOST]||t.hostname}))}}var r;return n}function Q(e,t,n,o){var s=t[E.iD.ADSERVER_TARGETING];return n.size=n.getSize(),(s||[]).forEach(function(s){var a=s.key,d=s.val;if(e[a]&&(0,i.logWarn)("The key: "+a+" is being overwritten"),(0,r.fp)(d))try{d=d(n,o)}catch(e){(0,i.logError)("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&a!==E.xS.DEAL&&a!==E.xS.ACAT&&a!==E.xS.DSP&&a!==E.xS.CRID||!(0,i.isEmptyStr)(d)&&null!=d?e[a]=d:(0,i.logInfo)("suppressing empty key '"+a+"' from adserver targeting")}),e}function Z(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},9612(e,t,n){"use strict";n.d(t,{n:()=>c});var i=n(1825),r=n(2230);function o(e){Object.assign(this,{getAuction(t){let{auctionId:n}=t;if(null!=n)return e().find(e=>e.getAuctionId()===n)},getAdUnit(t){let{adUnitId:n}=t;if(null!=n)return e().flatMap(e=>e.getAdUnits()).find(e=>e.adUnitId===n)},getMediaTypes(e){let{adUnitId:t,requestId:n}=e;if(null!=n){const e=this.getBidRequest({requestId:n});if(null!=e&&(null==t||e.adUnitId===t))return e.mediaTypes}else if(null!=t){const e=this.getAdUnit({adUnitId:t});if(null!=e)return e.mediaTypes}},getBidderRequest(t){let{requestId:n,bidderRequestId:i}=t;if(null!=n||null!=i){let t=e().flatMap(e=>e.getBidRequests());return null!=i&&(t=t.filter(e=>e.bidderRequestId===i)),null==n?t[0]:t.find(e=>e.bids&&null!=e.bids.find(e=>e.bidId===n))}},getBidRequest(t){let{requestId:n}=t;if(null!=n)return e().flatMap(e=>e.getBidRequests()).flatMap(e=>e.bids).find(e=>e&&e.bidId===n)},getOrtb2(e){return this.getBidderRequest(e)?.ortb2||this.getAuction(e)?.getFPD()?.global?.ortb2}})}var s=n(1533),a=n(7074),d=n(698),l=n(6555);const c=function(){const e=(0,d.H)({startTime:e=>e.end.then(()=>e.getAuctionEnd()),ttl:e=>null==(0,l.S9)()?null:e.end.then(()=>1e3*Math.max((0,l.S9)(),...e.getBidsReceived().map(e=>e.ttl)))});(0,l.lc)(()=>e.refresh());const t={onExpiry:e.onExpiry};function n(t){for(const n of e)if(n.getAuctionId()===t)return n}function c(){return e.toArray().flatMap(e=>e.getBidsReceived())}return t.addWinningBid=function(e){const t=(0,a.BO)(e.metrics);t.checkpoint("bidWon"),t.timeBetween("auctionEnd","bidWon","adserver.pending"),t.timeBetween("requestBids","bidWon","adserver.e2e");const r=n(e.auctionId);r?r.addWinningBid(e):(0,i.logWarn)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:e=>e.getAuctionStatus()===r.UZ},getAdUnitCodes:{post:i.uniques}}).forEach(n=>{let[i,{name:r=i,pre:o,post:s}]=n;const a=null==o?e=>e[r]():e=>o(e)?e[r]():[],d=null==s?e=>e:e=>e.filter(s);t[i]=()=>d(e.toArray().flatMap(a))}),t.getAllBidsForAdUnitCode=function(e){return c().filter(t=>t&&t.adUnitCode===e)},t.createAuction=function(t){const n=(0,r.mX)(t);return function(t){e.add(t)}(n),n},t.findBidByAdId=function(e){return c().find(t=>t.adId===e)},t.getStandardBidderAdServerTargeting=function(){return(0,r.HN)()[s.iD.ADSERVER_TARGETING]},t.setStatusForBids=function(e,i){const r=t.findBidByAdId(e);if(r&&(r.status=i),r&&i===s.tl.BID_TARGETING_SET){const e=n(r.auctionId);e&&e.setBidTargeting(r)}},t.getLastAuctionId=function(){const t=e.toArray();return t.length&&t[t.length-1].getAuctionId()},t.clearAllAuctions=function(){e.clear()},t.index=new o(()=>e.toArray()),t}()},6555(e,t,n){"use strict";n.d(t,{S9:()=>c,cT:()=>l,lc:()=>u});var i=n(7692),r=n(1825);const o="minBidCacheTTL";let s=1,a=null;const d=[];function l(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:s)}function c(){return a}function u(e){d.push(e)}i.$W.getConfig("ttlBuffer",e=>{"number"==typeof e.ttlBuffer?s=e.ttlBuffer:(0,r.logError)("Invalid value for ttlBuffer",e.ttlBuffer)}),i.$W.getConfig(o,e=>{const t=a;a=e?.[o],a="number"==typeof a?a:null,t!==a&&d.forEach(e=>e(a))})},8025(e,t,n){"use strict";n.d(t,{u:()=>a});var i=n(1825),r=n(724),o=n(4709),s=n(1533);const a=new class{constructor(e,t){this.getSettings=e,this.defaultScope=t}get(e,t){let n=this.getOwn(e,t);return void 0===n&&(n=this.getOwn(null,t)),n}getOwn(e,t){return e=this.#e(e),(0,r.A)(this.getSettings(),`${e}.${t}`)}getScopes(){return Object.keys(this.getSettings()).filter(e=>e!==this.defaultScope)}settingsFor(e){return(0,i.mergeDeep)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}ownSettingsFor(e){return e=this.#e(e),this.getSettings()[e]||{}}#e(e){return null==e?this.defaultScope:e}}(()=>(0,o.m)().bidderSettings||{},s.iD.BD_SETTING_STANDARD)},641(e,t,n){"use strict";n.d(t,{O:()=>o});var i=n(1825);function r(){let{src:e="client",bidder:t="",bidId:n,transactionId:r,adUnitId:o,auctionId:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var a=e;Object.assign(this,{bidderCode:t,width:0,height:0,adId:(0,i.getUniqueIdentifierStr)(),requestId:n,transactionId:r,adUnitId:o,auctionId:s,mediaType:"banner",source:a}),this.getSize=function(){return this.width+"x"+this.height}}function o(e){return new r(e)}},9776(e,t,n){"use strict";n.d(t,{rT:()=>o,k:()=>i,uP:()=>r});function i(){return"pbjs"}function r(){return true}function o(){return"https://cdn.jsdelivr.net/npm/prebid.js@10.23.0/dist/chunks/"}},7692(e,t,n){"use strict";n.d(t,{$W:()=>f,Ov:()=>c});var i=n(1093),r=n(1825),o=n(724),s=n(9032),a=n(1533);const d="TRUE"===(0,r.getParameterByName)(a.M).toUpperCase(),l={},c="random",u={};u[c]=!0,u.fixed=!0;const p=c,h={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};function g(e){const t=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?{}:{priceGranularity:h.MEDIUM,customPriceBucket:{},mediaTypePriceGranularity:{},bidderSequence:p,auctionOptions:{}},n=(()=>{const e=["secondaryBidders","suppressStaleRender","suppressExpiredRender","legacyRender"],t=["secondaryBidders"],n=[].concat(e).concat(t);return function(i){if(!(0,s.Qd)(i))return(0,r.logWarn)("Auction Options must be an object"),!1;for(const o of Object.keys(i)){if(!n.includes(o))return(0,r.logWarn)(`Auction Options given an incorrect param: ${o}`),!1;if(t.includes(o)){if(!(0,s.cy)(i[o]))return(0,r.logWarn)(`Auction Options ${o} must be of type Array`),!1;if(!i[o].every(s.O8))return(0,r.logWarn)(`Auction Options ${o} must be only string`),!1}else if(e.includes(o)&&!(0,s.Lm)(i[o]))return(0,r.logWarn)(`Auction Options ${o} must be of type boolean`),!1}return!0}})();function o(e){return t[e]}function a(n,i){t.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0}),t[n]=i}const d={publisherDomain:{set(e){null!=e&&(0,r.logWarn)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),a("publisherDomain",e)}},priceGranularity:{set(e){c(e)&&("string"==typeof e?a("priceGranularity",l(e)?e:h.MEDIUM):(0,s.Qd)(e)&&(a("customPriceBucket",e),a("priceGranularity",h.CUSTOM),(0,r.logMessage)("Using custom price granularity")))}},customPriceBucket:{},mediaTypePriceGranularity:{set(e){null!=e&&a("mediaTypePriceGranularity",Object.keys(e).reduce((t,n)=>(c(e[n])?"string"==typeof e?t[n]=l(e[n])?e[n]:o("priceGranularity"):(0,s.Qd)(e)&&(t[n]=e[n],(0,r.logMessage)(`Using custom price granularity for ${n}`)):(0,r.logWarn)(`Invalid price granularity for media type: ${n}`),t),{}))}},bidderSequence:{set(e){u[e]?a("bidderSequence",e):(0,r.logWarn)(`Invalid order: ${e}. Bidder Sequence was not set.`)}},auctionOptions:{set(e){n(e)&&a("auctionOptions",e)}}};return Object.defineProperties(e,Object.fromEntries(Object.entries(d).map(e=>{let[n,i]=e;return[n,Object.assign({get:o.bind(null,n),set:a.bind(null,n),enumerable:t.hasOwnProperty(n),configurable:!t.hasOwnProperty(n)},i)]}))),e;function l(e){return Object.keys(h).find(t=>e===h[t])}function c(e){if(!e)return(0,r.logError)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)l(e)||(0,r.logWarn)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,s.Qd)(e)&&!(0,i.q)(e))return(0,r.logError)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}}const f=function(){const e=[];let t,n,i,a=null;function c(){t={};const e=g({debug:d,bidderTimeout:3e3,enableSendAllBids:!0,useBidCache:!1,deviceAccess:!0,disableAjaxTimeout:!1,maxNestedIframes:10,maxBid:5e3,userSync:{topics:l}});n&&b(Object.keys(n).reduce((t,i)=>(n[i]!==e[i]&&(t[i]=e[i]||{}),t),{})),n=e,i={}}function u(){if(a&&i&&(0,s.Qd)(i[a])){const e=i[a],t=new Set([...Object.keys(n),...Object.keys(e)]),o={};for(const i of t){const t=n[i],a=e[i];o[i]=void 0===a?t:void 0===t?a:(0,s.Qd)(a)?(0,r.mergeDeep)({},t,a):a}return o}return{...n}}const[p,h]=[u,function(){const e=u();return Object.defineProperty(e,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),e}].map(t=>function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){const e=arguments.length<=0?void 0:arguments[0];return e?(0,o.A)(t(),e):u()}return function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n;if("string"!=typeof t&&(o=t,t="*",i=n||{}),"function"!=typeof o)return void(0,r.logError)("listener must be a function");const s={topic:t,callback:o};return e.push(s),i.init&&o("*"===t?h():{[t]:h(t)}),function(){e.splice(e.indexOf(s),1)}}(...arguments)}),[f,m]=[h,p].map(e=>function(){let t=e(...arguments);return t&&"object"==typeof t&&(t=(0,s.Go)(t)),t});function y(e){if(!(0,s.Qd)(e))return void(0,r.logError)("setConfig options must be an object");const i=Object.keys(e),o={};i.forEach(i=>{let a=e[i];(0,s.Qd)(t[i])&&(0,s.Qd)(a)&&(a=Object.assign({},t[i],a));try{o[i]=n[i]=a}catch(e){(0,r.logWarn)(`Cannot set config for property ${i} : `,e)}}),b(o)}function b(t){const n=Object.keys(t);e.filter(e=>n.includes(e.topic)).forEach(e=>{e.callback({[e.topic]:t[e.topic]})}),e.filter(e=>"*"===e.topic).forEach(e=>e.callback(t))}function v(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{!function(e){if(!(0,s.Qd)(e))throw new Error("setBidderConfig bidder options must be an object");if(!Array.isArray(e.bidders)||!e.bidders.length)throw new Error("setBidderConfig bidder options must contain a bidders list with at least 1 bidder");if(!(0,s.Qd)(e.config))throw new Error("setBidderConfig bidder options must contain a config object")}(e),e.bidders.forEach(n=>{i[n]||(i[n]=g({},!1)),Object.keys(e.config).forEach(o=>{const a=e.config[o],d=i[n][o];if((0,s.Qd)(a)&&(null==d||(0,s.Qd)(d))){const e=t?r.mergeDeep:Object.assign;i[n][o]=e({},d||{},a)}else i[n][o]=a})})}catch(e){(0,r.logError)(e)}}function _(e,t){a=e;try{return t()}finally{w()}}function w(){a=null}return c(),{getCurrentBidder:function(){return a},resetBidder:w,getConfig:h,getAnyConfig:p,readConfig:f,readAnyConfig:m,setConfig:y,mergeConfig:function(e){if(!(0,s.Qd)(e))return void(0,r.logError)("mergeConfig input must be an object");const t=(0,r.mergeDeep)(u(),e);return y({...t}),t},setDefaults:function(e){(0,s.Qd)(t)?(Object.assign(t,e),Object.assign(n,e)):(0,r.logError)("defaults must be an object")},resetConfig:c,runWithBidder:_,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var n=arguments.length,i=new Array(n),o=0;oa,SL:()=>v,ad:()=>f,et:()=>m,mW:()=>h,o2:()=>y,t6:()=>g});var i=n(1825),r=n(9032),o=n(359),s=n(7692);const a=Object.freeze({}),d="gdpr",l="gpp",c="usp",u="coppa";class p{#t;#n;#i;#r;#o=!0;#s;constructor(){this.reset()}#a(e){this.#r=!0,this.#n=e,this.#i.resolve(e)}reset(){this.#i=(0,o.v6)(),this.#t=!1,this.#n=null,this.#r=!1,this.generatedTime=null}enable(){this.#t=!0}get enabled(){return this.#t}get ready(){return this.#r}get promise(){return this.#r?o.U9.resolve(this.#n):(this.#t||this.#a(null),this.#i.promise)}setConsentData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.timestamp)();this.generatedTime=t,this.#o=!0,this.#a(e)}getConsentData(){return this.#t?this.#n:null}get hash(){return this.#o&&(this.#s=(0,i.cyrb53Hash)(JSON.stringify(this.#n&&this.hashFields?this.hashFields.map(e=>this.#n[e]):this.#n)),this.#o=!1),this.#s}}const h=new class extends p{hashFields=["gdprApplies","consentString"];getConsentMeta(){const e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,r.O8)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}},g=new class extends p{getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},f=new class extends p{hashFields=["applicableSections","gppString"];getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},m=(()=>{function e(){return!!s.$W.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset(){},get promise(){return o.U9.resolve(e())},get hash(){return e()?"1":"0"}}})(),y=function(){const e={},t={},n={};return{register(i,r,o){o&&((e[r]=e[r]||{})[i]=o,t.hasOwnProperty(r)?t[r]!==o&&(t[r]=n):t[r]=o)},get(i){const r={modules:e[i]||{}};return t.hasOwnProperty(i)&&t[i]!==n&&(r.gvlid=t[i]),r}}}(),b={[d]:h,[c]:g,[l]:f,[u]:m},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;const t=Object.entries(e);return Object.assign({get promise(){return o.U9.all(t.map(e=>{let[t,n]=e;return n.promise.then(e=>[t,e])})).then(e=>Object.fromEntries(e))},get hash(){return(0,i.cyrb53Hash)(t.map(e=>{let[t,n]=e;return n.hash}).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map(e=>{return[e,(n=e,function(){return Object.fromEntries(t.map(e=>{let[t,i]=e;return[t,i[n]()]}))})];var n})))}()},1533(e,t,n){"use strict";n.d(t,{IY:()=>_,M:()=>r,RW:()=>p,Tf:()=>g,UE:()=>d,Zh:()=>c,_B:()=>b,as:()=>s,cA:()=>a,h0:()=>f,iD:()=>i,jO:()=>m,nl:()=>v,oA:()=>y,qY:()=>o,tl:()=>h,x5:()=>u,xS:()=>l});const i={PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},r="pbjs_debug",o={AUCTION_INIT:"auctionInit",AUCTION_TIMEOUT:"auctionTimeout",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_REJECTED:"bidRejected",NO_BID:"noBid",SEAT_NON_BID:"seatNonBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",BIDDER_ERROR:"bidderError",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",BEFORE_BIDDER_HTTP:"beforeBidderHttp",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",AD_RENDER_SUCCEEDED:"adRenderSucceeded",TCF2_ENFORCEMENT:"tcf2Enforcement",AUCTION_DEBUG:"auctionDebug",BID_VIEWABLE:"bidViewable",STALE_RENDER:"staleRender",EXPIRED_RENDER:"expiredRender",BILLABLE_EVENT:"billableEvent",BID_ACCEPTED:"bidAccepted",RUN_PAAPI_AUCTION:"paapiRunAuction",PBS_ANALYTICS:"pbsAnalytics",PAAPI_BID:"paapiBid",PAAPI_NO_BID:"paapiNoBid",PAAPI_ERROR:"paapiError",BEFORE_PBS_HTTP:"beforePBSHttp",BROWSI_INIT:"browsiInit",BROWSI_DATA:"browsiData",BROWSER_INTERVENTION:"browserIntervention"},s={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},a={bidWon:"adUnitCode"},d={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},l={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host",ADOMAIN:"hb_adomain",ACAT:"hb_acat",CRID:"hb_crid",DSP:"hb_dsp",VERSION:"hb_ver"},c={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_HOST:"hb_cache_host",VERSION:"hb_ver"},u={title:"hb_native_title",body:"hb_native_body",body2:"hb_native_body2",privacyLink:"hb_native_privacy",privacyIcon:"hb_native_privicon",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",displayUrl:"hb_native_displayurl",cta:"hb_native_cta",rating:"hb_native_rating",address:"hb_native_address",downloads:"hb_native_downloads",likes:"hb_native_likes",phone:"hb_native_phone",price:"hb_native_price",salePrice:"hb_native_saleprice",rendererUrl:"hb_renderer_url",adTemplate:"hb_adTemplate"},p={SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},h={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},g={INVALID:"Bid has missing or invalid properties",INVALID_REQUEST_ID:"Invalid request ID",BIDDER_DISALLOWED:"Bidder code is not allowed by allowedAlternateBidderCodes / allowUnknownBidderCodes",FLOOR_NOT_MET:"Bid does not meet price floor",CANNOT_CONVERT_CURRENCY:"Unable to convert currency",DSA_REQUIRED:"Bid does not provide required DSA transparency info",DSA_MISMATCH:"Bid indicates inappropriate DSA rendering method",PRICE_TOO_HIGH:"Bid price exceeds maximum value"},f={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},m={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},y={ICON:1,MAIN:3},b=["privacyIcon","clickUrl","adTemplate","rendererUrl","type"],v={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event",INTERVENTION:"Prebid Intervention"},_="__pb_locator__"},1093(e,t,n){"use strict";n.d(t,{j:()=>c,q:()=>p});var i=n(1825),r=n(7692);const o={buckets:[{max:5,increment:.5}]},s={buckets:[{max:20,increment:.1}]},a={buckets:[{max:20,increment:.01}]},d={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},l={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=""),{low:""===i?"":u(e,o,n),med:""===i?"":u(e,s,n),high:""===i?"":u(e,a,n),auto:""===i?"":u(e,l,n),dense:""===i?"":u(e,d,n),custom:""===i?"":u(e,t,n)}}function u(e,t,n){let o="";if(!p(t))return o;const s=t.buckets.reduce((e,t)=>e.max>t.max?e:t,{max:0});let a=0;const d=t.buckets.find(t=>{if(e>s.max*n){let e=t.precision;void 0===e&&(e=2),o=(t.max*n).toFixed(e)}else{if(e<=t.max*n&&e>=a*n)return t.min=a,t;a=t.max}});return d&&(o=function(e,t,n){const o=void 0!==t.precision?t.precision:2,s=t.increment*n,a=t.min*n;let d=Math.floor;const l=r.$W.getConfig("cpmRoundingFunction");"function"==typeof l&&(d=l);const c=Math.pow(10,o+2),u=(e*c-a*c)/(s*c);let p,h;try{p=d(u)*s+a}catch(e){h=!0}return(h||"number"!=typeof p)&&((0,i.logWarn)("Invalid rounding function passed in config"),p=Math.floor(u)*s+a),p=Number(p.toFixed(10)),p.toFixed(o)}(e,d,n)),o}function p(e){if((0,i.isEmpty)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;let t=!0;return e.buckets.forEach(e=>{e.max&&e.increment||(t=!1)}),t}},866(e,t,n){"use strict";n.d(t,{xh:()=>s,HH:()=>d,kj:()=>a});var i=n(359),r=n(1825),o=n(2245);const s=3,a=(0,o.A_)("sync",function(e){return'(()=>{"use strict";const e="Prebid Event",n="browserIntervention";window.render=function(t,r,i){let{ad:o,adUrl:s,width:d,height:c,instl:h}=t,{mkFrame:l,sendMessage:a}=r;if(function(){const t=window;if("ReportingObserver"in t)try{new t.ReportingObserver(t=>{var r;r=t[0],a(e,{event:n,intervention:r})},{buffered:!0,types:["intervention"]}).observe()}catch(e){}}(),!o&&!s){const e=new Error("Missing ad markup or URL");throw e.reason="noAd",e}{if(null==c){const e=i.document?.body;[e,e?.parentElement].filter(e=>null!=e?.style).forEach(e=>{e.style.height="100%"})}const e=i.document,n={width:d??"100%",height:c??"100%"};if(s&&!o?n.src=s:n.srcdoc=o,e.body.appendChild(l(e,n)),h&&i.frameElement){const e=i.frameElement.style;e.width=d?`${d}px`:"100vw",e.height=c?`${c}px`:"100vh"}}}})();'}),d=function(){const e={};return function(t){const n=a(t);return e.hasOwnProperty(n)||(e[n]=new i.U9(e=>{const i=(0,r.createInvisibleIframe)();i.srcdoc=`\n