/*! copyright 2025 Aditude, Inc - Prebid - production - Updated: 2025-07-12T10:56:33.086Z, v1.4.0, htl-injector-component 09b75fb9d0c48c33160f 140b0be986f442650fa0 */ (self.tudeChunk=self.tudeChunk||[]).push([[9576,30704,35807,37890,45301,49339,72210,81665,88039],{659:function(e,t,r){var i=r(51873),n=Object.prototype,o=n.hasOwnProperty,s=n.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var i=!0}catch(e){}var n=s.call(e);return i&&(t?e[a]=r:delete e[a]),n}},1882:function(e,t,r){var i=r(72552),n=r(23805);e.exports=function(e){if(!n(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2853:function(e,t,r){"use strict";r.d(t,{E3:function(){return s},VC:function(){return a}});var i=r(14900),n=r(77467),o=r(9337);r.g.TUDE_SERVE_LOADED=!1;let s=(e="latest")=>{r.g.TUDE_SERVE_LOADED||document.querySelector("script[data-tudeserve]")||(r.g.TUDE_SERVE_LOADED=!0,(0,i.loadTudeServe)(e,"production"),l())},a=e=>{d().cmd.push(e)},d=()=>(window.tudeserve=window.tudeserve||{cmd:[]},window.tudeserve),l=()=>{a(e=>{e.events().on("bid_won",({bid:e,slot:t})=>{t.bids.filter(t=>t!==e).forEach(e=>{var t,r;if("amazon"===e.source&&(null==(t=e.sourceData)?void 0:t.amzniid)){let t=e.sourceData.slotID,r=e.sourceData.amzniid;(0,n.BI)({slotID:t,amzniid:r})}"prebid"===e.source&&(null==(r=e.sourceData)?void 0:r.adId)&&(e.sourceData.isRequesting=!1)})}),(0,o.Su)()&&(e.events().on("viewable",({bid:e,slot:t})=>{(0,o.Su)()&&(0,o.bf)("impressionViewable",{adServer:"tudeserve",adUnitPath:t.adUnit,bidder:e.bidder,cpm:e.amount,slotElementId:t.elementId,source:e.source,currency:e.currency,mediaType:e.mediaType})}),e.events().on("no_bid",({slot:e})=>{(0,o.Su)()&&(0,o.bf)("unfilledImpression",{adServer:"tudeserve",adUnitPath:e.adUnit,slotElementId:e.elementId})}),e.events().on("bid_won",({bid:e,slot:t})=>{(0,o.Su)()&&(0,o.bf)("bidWon",{adServer:"tudeserve",adUnitPath:t.adUnit,bidder:e.bidder,cpm:e.amount,slotElementId:t.elementId,source:e.source,currency:e.currency,mediaType:e.mediaType})}),e.events().on("request",({slot:e})=>{(0,o.Su)()&&(0,o.bf)("slotRequested",{adServer:"tudeserve",adUnitPath:e.adUnit,slotElementId:e.elementId})}),e.events().on("impression",({bid:e,slot:t})=>{(0,o.Su)()&&(0,o.bf)("impression",{adServer:"tudeserve",adUnitPath:t.adUnit,bidder:e.bidder,cpm:e.amount,slotElementId:t.elementId,source:e.source,currency:e.currency,mediaType:e.mediaType})}))})};d()},3656:function(e,t,r){e=r.nmd(e);var i=r(9325),n=r(89935),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?i.Buffer:void 0,d=a?a.isBuffer:void 0;e.exports=d||n},4417:function(e){"use strict";e.exports=function(e,t){return(t||(t={}),e&&(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes))?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e}},4509:function(e,t,r){var i=r(12651);e.exports=function(e){return i(this,e).has(e)}},4901:function(e,t,r){var i=r(72552),n=r(30294),o=r(40346),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&n(e.length)&&!!s[i(e)]}},5789:function(e,t,r){"use strict";r.d(t,{I:function(){return s},U:function(){return o}});var i=r(79989),n=r(86964).Promise;async function o(e,{intervalMs:t=200,maxTries:r=20}={}){let n=0;for(;n{document.addEventListener("DOMContentLoaded",()=>e(!0))})}},6262:function(e,t,r){"use strict";r.d(t,{G:function(){return n}});var i=r(10667);function n(e,t){if(Array.isArray(e)&&e.length)for(let r=e.length-1;r>=0;r--)try{t(e[r])||e.splice(r,1)}catch(e){(0,i.A)().error("filterArrayInPlace error in filter",e)}return e}t.A=n},7723:function(e,t,r){"use strict";r.d(t,{f:function(){return h}});var i=r(74547),n=r(6262),o=r(22188),s=r(87594),a=r(18238),d=r(52093),l=r(10667);let u={};a.A.sub("wrapperConfigOnInit",e=>(u=e.AMAZON_HASH_MAP||{},e));let c=(0,o.b)(),h=e=>(d.U.push(()=>{let t=d.U.getSlotListByDivIds(e);t.length>0?(s.B.emit(i.qY.BEFORE_AD_SERVER_REQUEST,{slots:t}),t.forEach(e=>{var r,i,o,a;let d=null==e?void 0:e.getSlotElementId(),l=null==e?void 0:e.getTargetingMap(),h=function(e){try{return c.adUnits.find(t=>t.code===e)}catch(e){}return!1}(d),p=String((null==e||null==(r=e.getTargeting("hb_pb"))?void 0:r[0])||"").trim(),f=!!(p&&Number(p)),g=!!(null==e||null==(i=e.getTargeting("amziid"))?void 0:i[0]),m=null==e||null==(o=e.getTargeting("hb_bidder"))?void 0:o[0],b=null==e||null==(a=e.getTargeting("amznbid"))?void 0:a[0],v=u[b],y=null==e?void 0:e.getAdUnitPath(),w=document.getElementById(d),A=[];v&&A.push(v),isNaN(Number(p))||A.push(p);let I=Math.max(...A),S={adSlot:w,adUnitPath:y,slot:e,divId:d,prebidUnit:h,hasPrebidBid:f,hbBidder:m,hasBid:g||f,prebidBid:Number(p),amazonBidHash:b,targetingMap:l,amazonBid:v,highBid:I,remove:()=>{(0,n.A)(t,t=>t!==e)}};s.B.emit("gpt.beforeAdServerRequest",S)}),t.length&&d.U.refresh(t)):(0,l.A)().error("Cannot find slots to refresh",e)}),!0)},8555:function(e,t,r){"URLSearchParams"in window||r.e(3212).then(r.t.bind(r,48318,23))},9325:function(e,t,r){var i=r(34840),n="object"==typeof self&&self&&self.Object===Object&&self;e.exports=i||n||Function("return this")()},9589:function(e,t,r){"use strict";r.d(t,{EF:function(){return l},EP:function(){return c},Pq:function(){return a},T:function(){return u},X9:function(){return h},jC:function(){return f},ot:function(){return p}});var i=r(27286),n=r(72179);let o=new Map,s=1;function a(e){if(o.has(e.auctionId))return d(o.get(e.auctionId));{o.set(e.auctionId,s),setTimeout(()=>{o.delete(e.auctionId)},8e3);let t=o.get(e.auctionId);return s++,d(t)}}function d(e){return e<=5?"<=5":e<=20?"6-20":e<=40?"21-40":e<=80?"41-80":"81+"}function l(){let e=new Date().getHours();return e<=2?"0to2":e<=7?"3to7":e<=11?"8to11":e<=18?"12to18":"18+"}function u(e){return()=>"US"===e?"US":["CA","GB","AU","NZ"].includes(e)?"CA/UK/AU/NZ":n.Wp.includes(e)?"EU":n.Q2.includes(e)?"LATAM":"ROW"}function c(){let e=(0,i.HN)();return"desktop-chrome"===e?"Desktop-Chrome":"desktop-not-chrome"===e?"Desktop-NotChrome":"android"===e?"Android":"ios"===e?"iOS":"Other"}function h(e){return e.bidder}function p(e){return t=>{var r,i;return null!=(i=null==e||null==(r=e.find(e=>e.divIds.includes(t.adUnitCode)))?void 0:r.name)?i:"*"}}let f=(e,t)=>Array.from(e).reduce((e,r)=>r===t?e+1:e,0)},10392:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},10540:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},11331:function(e,t,r){var i=r(72552),n=r(28879),o=r(40346),s=Object.prototype,a=Function.prototype.toString,d=s.hasOwnProperty,l=a.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=i(e))return!1;var t=n(e);if(null===t)return!0;var r=d.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&a.call(r)==l}},11490:function(e,t,r){"use strict";r.r(t),r.d(t,{setPrivacySettings:function(){return o}});var i=r(18238),n=r(85222);let o=e=>{let{personalizedAds:t}=e;n.A.onReady(()=>{n.A.setState({personalizedAds:t})}),window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(()=>{window.googletag.pubads().setPrivacySettings({nonPersonalizedAds:!t})})};i.A.sub("tudePublicFunctions",({tude:e})=>(e.setPrivacySettings=o,{tude:e}))},12651:function(e,t,r){var i=r(74218);e.exports=function(e,t){var r=e.__data__;return i(t)?r["string"==typeof t?"string":"hash"]:r.map}},12749:function(e,t,r){var i=r(81042),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:n.call(t,e)}},14547:function(e,t,r){"use strict";r.d(t,{Ky:function(){return p}});var i=r(26589),n=r(15900),o=r(70041),s=r(56765),a=r(29754),d=r(45638),l=r(92126),u=r(16947),c=r(49234),h=r(86964).Promise;class p{static create(e,t){let r=new p(e,t),n=async()=>{if("number"==typeof r._options.timeout&&r._options.timeout>c.TK)throw RangeError(`The \`timeout\` option cannot be greater than ${c.TK}`);await h.resolve();let e=await r._fetch();for(let t of r._options.hooks.afterResponse){let i=await t(r.request,r._options,r._decorateResponse(e.clone()));i instanceof globalThis.Response&&(e=i)}if(r._decorateResponse(e),!e.ok&&r._options.throwHttpErrors){let t=new i.H(e,r.request,r._options);for(let e of r._options.hooks.beforeError)t=await e(t);throw t}if(r.request.bodyUsed||await r.request.body?.cancel(),r._options.onDownloadProgress){if("function"!=typeof r._options.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!c.b0)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");return(0,o.mD)(e.clone(),r._options.onDownloadProgress)}return e},s=r._options.retry.methods.includes(r.request.method.toLowerCase())?r._retry(n):n();for(let[e,i]of Object.entries(c.hT))s[e]=async()=>{r.request.headers.set("accept",r.request.headers.get("accept")||i);let n=await s;if("json"===e){if(204===n.status||0===(await n.clone().arrayBuffer()).byteLength)return"";if(t.parseJson)return t.parseJson(await n.text())}return n[e]()};return s}request;abortController;_retryCount=0;_input;_options;constructor(e,t={}){if(this._input=e,this._options={...t,headers:(0,s.lF)(this._input.headers,t.headers),hooks:(0,s.XN)({beforeRequest:[],beforeRetry:[],beforeError:[],afterResponse:[]},t.hooks),method:(0,a.q)(t.method??this._input.method??"GET"),prefixUrl:String(t.prefixUrl||""),retry:(0,a.U)(t.retry),throwHttpErrors:!1!==t.throwHttpErrors,timeout:t.timeout??1e4,fetch:t.fetch??globalThis.fetch.bind(globalThis)},"string"!=typeof this._input&&!(this._input instanceof URL||this._input instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if(this._options.prefixUrl&&"string"==typeof this._input){if(this._input.startsWith("/"))throw Error("`input` must not begin with a slash when using `prefixUrl`");this._options.prefixUrl.endsWith("/")||(this._options.prefixUrl+="/"),this._input=this._options.prefixUrl+this._input}if(c.xM){let e=this._options.signal??this._input.signal;this.abortController=new globalThis.AbortController,this._options.signal=e?AbortSignal.any([e,this.abortController.signal]):this.abortController.signal}if(c.xr&&(this._options.duplex="half"),void 0!==this._options.json&&(this._options.body=this._options.stringifyJson?.(this._options.json)??JSON.stringify(this._options.json),this._options.headers.set("content-type",this._options.headers.get("content-type")??"application/json")),this.request=new globalThis.Request(this._input,this._options),this._options.searchParams){let e="string"==typeof this._options.searchParams?this._options.searchParams.replace(/^\?/,""):new URLSearchParams(this._options.searchParams).toString(),t=this.request.url.replace(/(?:\?.*?)?(?=#|$)/,"?"+e);(c.zq&&this._options.body instanceof globalThis.FormData||this._options.body instanceof URLSearchParams)&&!(this._options.headers&&this._options.headers["content-type"])&&this.request.headers.delete("content-type"),this.request=new globalThis.Request(new globalThis.Request(t,{...this.request}),this._options)}if(this._options.onUploadProgress){if("function"!=typeof this._options.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");if(!c.xr)throw Error("Request streams are not supported in your environment. The `duplex` option for `Request` is not available.");this.request.body&&(this.request=(0,o.AY)(this.request,this._options.onUploadProgress))}}_calculateRetryDelay(e){if(this._retryCount++,this._retryCount>this._options.retry.limit||e instanceof n.M)throw e;if(e instanceof i.H){if(!this._options.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this._options.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now());let r=this._options.retry.maxRetryAfter??e;return ethis._options.parseJson(await e.text())),e}async _retry(e){try{return await e()}catch(r){let t=Math.min(this._calculateRetryDelay(r),c.TK);if(this._retryCount<1)throw r;for(let e of(await (0,l.A)(t,{signal:this._options.signal}),this._options.hooks.beforeRetry))if(await e({request:this.request,options:this._options,error:r,retryCount:this._retryCount})===c.ds)return;return this._retry(e)}}async _fetch(){for(let e of this._options.hooks.beforeRequest){let t=await e(this.request,this._options);if(t instanceof Request){this.request=t;break}if(t instanceof Response)return t}let e=(0,u.I)(this.request,this._options),t=this.request;return(this.request=t.clone(),!1===this._options.timeout)?this._options.fetch(t,e):(0,d.A)(t,e,this.abortController,this._options)}}},14900:function(e,t){(function(e){"use strict";let t,r={Verbose:3,Advanced:2,None:0,Standard:1},i=r.None,n=new URL(window.location.href).searchParams.get("aditude_debug"),o=r.None;switch(n){case"3":o=r.Verbose;break;case"2":case"99":o=r.Advanced;break;case"1":case"true":o=r.Standard;break;default:o=r.None}let s=(e,t)=>{console[e](...t)},a=(e,t)=>{let r=[].slice.call(e),{label:i,prefix:n}=t;n&&r.unshift(n);let o=[],s=[];function a(e){return`display: inline-block; color: #fff; font-size: 9px; background: ${e}; padding: 1px 4px; border-radius: 0; margin-right: 1px;`}return s.push("%ctudeserve"),i.text.length>0&&s.push(`%c${i.text}`),i.text.length>0&&o.push(a(i.color)),o.push(a("green")),o.forEach(e=>{r.unshift(e)}),r.unshift(s.join("")),r},d=(e,t={})=>{let r=t.type??"log",n=t.label??{text:"",color:"#339933"},d=t.level??i;return(...e)=>{d<=o&&s(r,a(e,{prefix:"",label:n}))}},l=d("log",{label:{text:"log",color:"#61B321"},level:r.Standard}),u=d("error",{type:"error",label:{text:"error",color:"red"},level:r.Standard}),c=d("verbose",{label:{text:"verbose",color:"#61B321"},level:r.Verbose});class h{slotId;bidder;source;amount;mediaType;sourceData;currency="USD";constructor(e){this.slotId=e.slotId,this.bidder=e.bidder??e.source,this.source=e.source,this.amount=e.amount,this.mediaType=e.mediaType??"unknown",this.sourceData=e.sourceData,this.currency=e.currency??"USD",c("Bid created",this)}toJson(){return{slotId:this.slotId,source:this.source,bidder:this.bidder,amount:this.amount,currency:this.currency,mediaType:this.mediaType,sourceData:this.sourceData}}}class p{adUnit;elementId;sizes;keyValues;#e=[];constructor(e,t,r,i){this.adUnit=e,this.elementId=t,this.sizes=r,this.keyValues=i,l("Slot created",this)}getElement(){return document.getElementById(this.elementId)}get bids(){return this.#e}set bids(e){c("setting bids to slot",{slot:this,bids:e}),this.#e=e}clearBids(){this.#e=[]}}let f=(e,t)=>new CustomEvent(`tudeserve_${e}`,{detail:t}),g=(e,t)=>{e.dispatchEvent(t),c(`event:${t.type.replace("tudeserve_","")} dispatched`,t.detail)};class m{on(e,t){window.addEventListener(`tudeserve_${e}`,e=>{t(e.detail)}),c(`event:${e} listener registered`)}}let b=(e,t,r)=>{let i,n=0;new IntersectionObserver((e,o)=>{e.forEach(e=>{e.isIntersecting?i=setInterval(()=>{(n+=100)>1e3&&(g(window,f("viewable",{slot:t,bid:r})),o.unobserve(e.target),clearInterval(i))},100):clearInterval(i)})},{root:null,rootMargin:"0px 0px 0px 0px",threshold:.5}).observe(e)},v=new Uint8Array(16),y=[];for(let e=0;e<256;++e)y.push((e+256).toString(16).slice(1));var w={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};class A{timings={};addTiming(e,t){this.timings[e]=t??Date.now()}getTiming(e){return this.timings[e]}}class I{id;results=[];slots=[];tt=new A;status="init";constructor(e){this.id=function(e,r,i){if(w.randomUUID&&!e)return w.randomUUID();let n=(e=e||{}).random||(e.rng||function(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(v)})();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return y[e[t+0]]+y[e[t+1]]+y[e[t+2]]+y[e[t+3]]+"-"+y[e[t+4]]+y[e[t+5]]+"-"+y[e[t+6]]+y[e[t+7]]+"-"+y[e[t+8]]+y[e[t+9]]+"-"+y[e[t+10]]+y[e[t+11]]+y[e[t+12]]+y[e[t+13]]+y[e[t+14]]+y[e[t+15]]}(n)}(),this.slots=e??[],this.logTiming("init"),c("Request created",this)}nextStep(){switch(this.status){case"init":this.status="requested",this.logTiming("requested");break;case"requested":this.status="complete",this.logTiming("complete");break;default:u("Request already ended",this)}}addResult(e){this.results.push(e)}logTiming(e){this.tt.addTiming(e)}getTimings(){let e=this.tt.getTiming("init"),t=this.tt.getTiming("requested"),r=this.tt.getTiming("complete");return{startToRequest:t&&e?t-e:null,requestToComplete:r&&t?r-t:null,startToComplete:r&&e?r-e:null}}}let S=e=>{if(e){if(!Array.isArray(e))throw u("Slot inputs must be an array of Slot objects or element ID strings",e),Error("Slot inputs must be an array of Slot objects or element ID strings");for(let t of e)if("string"!=typeof t&&("object"!=typeof t||!(t instanceof p)))throw u("Slot inputs must be an array of Slot objects or element ID strings",e),Error("At least one of the slot inputs is not a Slot object or element ID string")}return c("valid request input",e),!0},E=e=>{let t=document.createElement("iframe");return t.id=`tudeserve-frame--${e.elementId}`,t.name=t.id,t.setAttribute("width","1"),t.setAttribute("height","1"),t.setAttribute("scrolling","no"),t.setAttribute("frameBorder","0"),t.style.background="#fff",t.sandbox.add("allow-forms","allow-pointer-lock","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts","allow-top-navigation-by-user-activation","allow-presentation"),t.addEventListener("load",()=>{t.contentWindow?.document.body&&(t.contentWindow.document.body.style.margin="0px")}),t},_=window._tudePbjsGlobal||"pbjs";window[_]=window[_]||{que:[]},window[_].que=window[_].que||[];let T=window[_],O={createBid:e=>new h(e),createRequest:e=>new I(e)};class P{slots=[];add(e,t,r,i){return this.updateOrCreate(e,t,r,i)}updateOrCreate(e,t,r,i){let n=this.slots.find(e=>e.elementId===t);return n?(n.adUnit!==e&&(n.adUnit=e),n.sizes=r,n.keyValues=i):(n=new p(e,t,r,i),this.slots.push(n)),n}getSlots(){return this.slots}getSlotByElementId(e){return this.slots.find(t=>t.elementId===e)}getSlotByAdUnit(e){return this.slots.find(t=>t.adUnit===e)}getSlotBySize(e,t){return this.slots.find(r=>r.sizes.some(r=>r[0]===e&&r[1]===t))}}class C{slotsService;constructor(){this.slotsService=new P,c("AdsService created")}factory(){return O}get slots(){return this.slotsService}request(e){c("Request start",e),S(e);let t=new I(e);if(c("Requesting slots: ",t.slots),0===t.slots.length)return void u("No slots to request",t);let r=t.slots.filter(e=>"string"==typeof e?!!this.slotsService.getSlotByElementId(e)||(u("Slot not found: ",e),t.addResult(`#${e} > outcome:slot_not_found`),!1):e instanceof p||(u("Invalid slot object: ",e),!1)).map(e=>"string"==typeof e?this.slotsService.getSlotByElementId(e):e);t.nextStep(),r.forEach(e=>{if(g(window,f("request",{slot:e})),!e.getElement()){u("Slot element not found"),t.addResult(`#${e.elementId} > outcome:sloterror`);return}let r=function(e){if(0!==e.length)return e.filter(e=>"number"==typeof e.amount&&e.amount>0).reduce((e,t)=>t.amount>e.amount?t:e,e[0])}(e.bids);if(!r){u("No bid found for slot: ",e),g(window,f("no_bid",{slot:e})),t.addResult(`#${e.elementId} > outcome:no_bid`);return}g(window,f("bid_won",{bid:r,slot:e}));let i=`#${e.elementId} > source:${r.source}, bidder:${r.bidder}, amt:${r.amount.toFixed(5)} > outcome:`;try{let n=this.render(r,e);return n?t.addResult(`${i}:rendered`):t.addResult(`${i}:error`),n}catch(e){t.addResult(`${i}:error`),u("Failed to render ad",e)}}),t.nextStep(),t.results.forEach(e=>{l(e)}),l("request complete",t.getTimings())}render(e,t){c("Render start",{slot:t,bid:e}),g(window,f("render_start",{bid:e,slot:t}));let r=t.getElement();if(!r)return u("Slot element not found"),t.clearBids(),!1;let{source:i}=e,n=function(e,t,r){if(c("building creative",{demandSource:e,slot:t,bid:r}),!t.getElement())return u("Slot element not found"),!1;let i=document.createElement("div");i.classList.add("tudeserve-wrap"),i.style.textAlign="center",i.id=`tudeserve-slot--${t.elementId}`;try{let n;switch(e){case"amazon":c("rendering amazon ad",{slot:t,bid:r}),n=function(e,t,r){let i=encodeURIComponent(window.location.href),n={kvMap:JSON.stringify(r),url:JSON.stringify(i),bidType:"openAuction",cv:"v2.0.0"},o=E(e);return setTimeout(()=>{window.apstag?.renderImp?.(o.contentWindow?.document,r.amzniid,n)}),o}(t,0,r.sourceData);break;case"prebid":c("rendering prebid ad",{slot:t,bid:r}),n=function(e,t,r){let i=E(e);return setTimeout(()=>{T.que.push(()=>{T.renderAd(i.contentWindow?.document,r.adId)})}),i}(t,0,r.sourceData);break;default:return u("Unknown demand source to render: ",e),!1}return i.appendChild(n),i}catch(e){return u(e),!1}}(i,t,e);return n?(r.innerHTML="",r.appendChild(n),g(window,f("impression",{bid:e,slot:t})),t.clearBids(),b(r,t,e),c("Render end",{slot:t,bid:e}),t):(u("Failed to build creative"),t.clearBids(),!1)}}let D=(e,t=!1,r=!1,i=[])=>{let n=document.createElement("script");t?n.async=!0:n.async=!1,r&&(n.defer=!0),i.forEach(e=>{n.setAttribute(`data-${e.key}`,e.value)}),n.src=e,document.head.appendChild(n)};e.AdRequest=I,e.Bid=h,e.TudeServe=class{#t;#r;cmd;constructor(){this.#t=new C,this.#r=new m,this.cmd={push:e=>{e(this)}},l("TudeServe created",this)}ads(){return this.#t}events(){return this.#r}},e.loadTudeServe=(e="latest",t="production")=>{D(`${("production"===t?"https://cw-static.aditude.io/tudeserve":"http://localhost:3001/static")??"https://cw-static.aditude.io/tudeserve"}/${"production"===t?e:"index"}.js?b=0.0.72-2024-06-09T22:55:13.730Z`,!0,!1,[{key:"tudeserve",value:"1"}])}})(t)},14974:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},15900:function(e,t,r){"use strict";r.d(t,{M:function(){return i}});class i extends Error{request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.name="TimeoutError",this.request=e}}},16547:function(e,t,r){var i=r(43360),n=r(75288),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var s=e[t];o.call(e,t)&&n(s,r)&&(void 0!==r||t in e)||i(e,t,r)}},16947:function(e,t,r){"use strict";r.d(t,{I:function(){return n}});var i=r(49234);let n=(e,t)=>{let r={};for(let n in t)n in i.Pu||n in i.iA||n in e||(r[n]=t[n]);return r}},17670:function(e,t,r){var i=r(12651);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=+!!t,t}},18859:function(e,t,r){"use strict";let i,n,o;r.d(t,{V:function(){return f}});var s=r(67259),a=r(10667),d=r(56175),l=r(86964).Promise;let u={gdpr:{country:"GB",region:"ENG",city:"London",postalCode:"W1B"},ccpa:{country:"US",region:"CA",city:"San Francisco",postalCode:"94107"},none:{country:"US",region:"IL",city:"Chicago",postalCode:"60007"}},c="aditude_geo";if((0,s.P3)(c)){let e=(0,s.P3)(c);u[e]&&(i=u[e])}let h=!1,p=new l(e=>{o=e});async function f(e="https://geo-location.prebid.cloud/v1/geo"){if(i)return i;if(n||h)return p;let t=window.localStorage.getItem("cwgl");if(t){let e=window.localStorage.getItem("cwglt");((0,s.P3)("aditude_nocache")||!e||Date.now()-parseInt(e)>36e5)&&(t=!1)}if(t)n=JSON.parse(t),o(n);else{h=!0;try{let t=await d.Ay.get(e||"https://geo-location.prebid.cloud/v1/geo",{timeout:3e3}).json();window.localStorage.setItem("cwgl",JSON.stringify(t)),window.localStorage.setItem("cwglt",JSON.stringify(Date.now())),n=t,o(n)}catch(e){(0,a.A)().error(e),o(n)}}return p}},19570:function(e,t,r){var i=r(37334),n=r(93243),o=r(83488);e.exports=n?function(e,t){return n(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o},20999:function(e,t,r){var i=r(69302),n=r(36800);e.exports=function(e){return i(function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&n(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++i{if(!e.installedModules.includes("priceFloors"))return void this.error('"priceFloors" module is not installed, aborting');this.props.forceFloors?e.setConfig({floors:this.floorConfig}):e.mergeConfig({floors:this.floorConfig})})}async start(){var e,t,r;let n=await (0,i.JJ)(),o=null!=(e=this.props.schema)?e:{divIdGroup:(0,a.ot)(this.props.divIdGroups),deviceCode:a.EP,countryBucket:(0,a.T)(n),countCode:a.Pq,hourCode:a.EF,bidder:a.X9},s=["gptSlot","mediaType","size",...Object.keys(o=function(e){for(var t=1;t{let t=(0,a.jC)(e,"|");t!==s.length-1&&this.warn(`Invalid key: ${e} has ${t} parts but expected ${s.length-1}`)}),this.floorConfig={additionalSchemaFields:o,currency:null!=(t=this.props.currency)?t:"USD",data:{schema:{fields:s},values:this.props.values,default:null!=(r=this.props.default)?r:0}},this.mergeFloorsConfig()}constructor(e){super(e,"PrebidFloors"),d(this,"floorConfig",{})}}d(l,"componentName","prebid-floors"),(0,n.h)(l),t.default=l},21549:function(e,t,r){var i=r(22032),n=r(63862),o=r(66721),s=r(12749),a=r(35749);function d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{this.onChangeListeners.forEach(e=>{e()})}),this.store=e}static isEnabled(){return this.enabled}static onChange(e){this.onChangeListeners.push(e)}static enableUserId(){this.enabled=!0}static disableUserId(){this.enabled=!1}}r(i,"store",void 0),r(i,"enabled",!1),r(i,"onChangeListeners",[]),t.A=i},24739:function(e,t,r){var i=r(26025);e.exports=function(e){var t=this.__data__,r=i(t,e);return r<0?void 0:t[r][1]}},25279:function(e,t,r){"use strict";let i;r.d(t,{A:function(){return a}});var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o=new Uint8Array(16),s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));var a=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();let a=(e=e||{}).random??e.rng?.()??function(){if(!i){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(o)}();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=a[e];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(a)}},25314:function(e,t,r){"use strict";r.r(t),r.d(t,{AdPlaceholder:function(){return d}});var i=r(18134),n=r(54240),o=r(2853),s=r(87594);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class d extends n.A{getLoggerColor(){return"#FF7276"}getInitialState(){return{}}start(){s.B.on("gpt.slotRenderEnded",({sizes:e,filled:t,adSlot:r})=>{if(r&&!t){let[t,i]=(null==e?void 0:e.find(e=>(null==e?void 0:e[0])*(null==e?void 0:e[1])>=500))||[120,50];r.innerHTML=`
AD PLACEHOLDER
`}}),"v2"===this.adserver&&(0,o.VC)(e=>{e.events().on("no_bid",({slot:e})=>{let{sizes:t}=e,r=e.getElement();if(!r)return;let[i,n]=(null==t?void 0:t.find(e=>(null==e?void 0:e[0])*(null==e?void 0:e[1])>=500))||[120,50];r.innerHTML=`
AD PLACEHOLDER
`})})}constructor(e){super(e,"AdPlaceholder"),a(this,"adserver",void 0),this.adserver=e.adserver}}a(d,"componentName","ad-placeholder"),(0,i.h)(d),t.default=d},26025:function(e,t,r){var i=r(75288);e.exports=function(e,t){for(var r=e.length;r--;)if(i(e[r][0],t))return r;return -1}},26589:function(e,t,r){"use strict";r.d(t,{H:function(){return i}});class i extends Error{response;request;options;constructor(e,t,r){let i=e.status||0===e.status?e.status:"",n=e.statusText||"",o=`${i} ${n}`.trim();super(`Request failed with ${o?`status code ${o}`:"an unknown error"}: ${t.method} ${t.url}`),this.name="HTTPError",this.response=e,this.request=t,this.options=r}}},27301:function(e){e.exports=function(e){return function(t){return e(t)}}},27534:function(e,t,r){var i=r(72552),n=r(40346);e.exports=function(e){return n(e)&&"[object Arguments]"==i(e)}},28879:function(e,t,r){e.exports=r(74335)(Object.getPrototypeOf,Object)},29754:function(e,t,r){"use strict";r.d(t,{U:function(){return s},q:function(){return n}});var i=r(49234);let n=e=>i.E1.includes(e)?e.toUpperCase():e,o={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3},s=(e={})=>{if("number"==typeof e)return{...o,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");return{...o,...e}}},29817:function(e){e.exports=function(e){return this.__data__.has(e)}},30085:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.A=/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j)?null:class{onComplete(e){this.onCompleteHandler=e}addBidder(e){this.bidders[e]=!1}setBidderStatus(e,t){this.bidders[e]=t,this._syncBidderChange()}complete(){return!!this.onCompleteHandler&&!this.queued&&(this.onCompleteHandler(),this.queued=!0,this.timing.end=Date.now(),!0)}_syncBidderChange(){Object.keys(this.bidders).filter(e=>!this.bidders[e]).length<1&&this.complete()}constructor(){i(this,"queued",void 0),i(this,"bidders",void 0),i(this,"timing",void 0),i(this,"onCompleteHandler",void 0),this.queued=!1,this.bidders={},this.timing={start:Date.now()},this.onCompleteHandler=!1}}},30294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},30361:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var i=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e(e.magicAnchor=this.makeAnchor,{tude:e})),this.autoTrigger&&this.makeAnchor(),A.U.addEventListener("slotRenderEnded",e=>{if(e.slot.getSlotElementId()===this.divId){let t=document.getElementById(`${this.divId}--wrapper`);if(t){let r=t.querySelector(".tude-label");if(e.isEmpty)t.classList.remove("tude-ad-filled"),r&&r.remove(),googletag.pubads().clear([e.slot]);else if(t.classList.add("tude-ad-filled"),this.adLabel&&!r){let e=this.createLabel("Advertisement");t.style.display="block",t.insertBefore(e,t.firstChild)}}}})}constructor(e){var t,r;super(e,"MagicAnchor"),I(this,"css",{}),I(this,"target","body"),I(this,"baseDivId","pb-slot-anchor"),I(this,"divId","pb-anchor"),I(this,"addDesktopPadding",!0),I(this,"closeButton",!1),I(this,"adLabel",!1),I(this,"autoTrigger",!1),I(this,"createLabel",e=>{let t=document.createElement("span");return t.innerText=e,t.style.color="grey",t.style.position="relative",t.style.width="100%",t.style.textAlign="center",t.style.fontSize="12px",t.classList.add("tude-label"),t}),I(this,"makeAnchor",()=>{if(this.log("Magic Anchor called"),!document.getElementById(`${this.divId}--wrapper`)){let e=S(`${this.divId}--wrapper`),t=S(`${this.divId}--wrapper-inner`),r=S(this.divId),i=document.querySelector(this.target);if(e.classList.add("aditude-div-wrapper"),e.classList.add("tude-anchor-wrapper-outer"),"auto"===this.css.bottom&&void 0!==this.css.top&&e.classList.add("rail-style"),t.classList.add("tude-anchor-wrapper-inner"),r.classList.add("tude-anchor-slot"),t.appendChild(r),e.appendChild(t),Object.keys(this.css).forEach(t=>{e.style[t]=this.css[t]}),this.closeButton){let r=document.createElement("div");r.classList.add("tude-anchor-close-button"),r.setAttribute("aria-label","Close"),r.tabIndex=0,r.onclick=()=>e.remove(),t.appendChild(r)}i.appendChild(e),this.addDesktopPadding&&document.body&&(document.body.style.paddingBottom="90px")}(0,b.A)({baseDivId:this.baseDivId,divId:this.divId},!0)}),this.target=e.target||this.target,this.baseDivId=e.baseDivId||this.baseDivId,this.divId=e.divId||this.divId,this.closeButton=null!=(t=e.closeButton)?t:this.closeButton,this.addDesktopPadding=void 0!==e.addDesktopPadding?e.addDesktopPadding:this.addDesktopPadding,this.autoTrigger=null!=(r=e.autoTrigger)?r:this.autoTrigger,this.css=function(e){for(var t=1;t{let r="https://dn0qt3r0xannq.cloudfront.net";return(-1!==e.indexOf("vendor/")||-1!==t.indexOf("vendor/"))&&(r="https://dn0qt3r0xannq.cloudfront.net"),r+e+t},a=(e,t,r=!1,i=!1,n=[])=>{let o=document.createElement("script");r?o.async=!0:o.async=!1,i&&(o.defer=!0),n.forEach(e=>{o.setAttribute("data-"+e.key,e.value)}),o.src=e,document[t].appendChild(o)},d=(e,t=!1)=>{let r=document.createElement("link");t&&(r.id=t),r.rel="stylesheet",r.type="text/css",r.href=e,r.media="all",document.getElementsByTagName("head")[0].appendChild(r)},l=e=>{e.forEach(e=>{(void 0===e.trigger||!e.trigger||e.trigger())&&(void 0===e.type||"js"===e.type?a(e.url,e.appendTo,e.async||!1,e.defer||!1,e.dataAttributes||[]):d(e.url,e.id))})};t.Ay=l},34840:function(e,t,r){e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},34858:function(e,t,r){"use strict";var i=r(44558),n=r(10667),o=r(67259);t.A=function(e,t=!1,r=!1){if("true"===(0,o.P3)("disable_refresh"))return void(0,n.A)().warn("Refresh disabled by URL param");(0,i.TT)().then(i=>{i.cmd.push(function(){r&&(0,n.A)().log(r,e),Array.isArray(e)||(e=[e]),e.forEach(e=>{var t,r;t=function(e){for(var t=1;t({name:"prebid",createConfig(e){let t;try{let r=e.find(e=>{var t,r,i;return(null==e?void 0:e.name)==="pubProvidedId"&&(null==e||null==(i=e.params)||null==(r=i.eids)||null==(t=r[0])?void 0:t.source)}),i=e.find(e=>(null==e?void 0:e.name)==="sharedId");!globalThis.__tude_iiq_enabled&&(r?t=r.params.eids[0].source:i&&(t="pubcid.org"))}catch(e){}return{ppid:t,userIds:e}}});var d=r(85914),l=r.n(d),u=r(90031),c=r.n(u),h=r(10667);let p=(0,h.A)("UserID").setLabel("UserId","pink"),f={"33acrossId":"pid",fabrickId:"apiKey",hadronId:"partnerId",id5Id:"partner",identityLink:"pid",pairId:"liveramp",unifiedId:"partner",lotamePanoramaId:"clientId",liveIntentId:"publisherId",connectId:"pixelId",uid2:"uid2Token"},g={"33acrossId":{name:"33acrossId",storage:{name:"33acrossId",type:"html5",expires:90,refreshInSeconds:28800},modifyBidderConfig(e,t,r){let i={};return Object.keys(i).forEach(t=>{r[t]&&(e.params[i[t]]=r[t])}),e}},connectId:{name:"connectId",modifyBidderConfig(e,t,r){let i={_email:"he",_ppid:"puid"};return Object.keys(i).forEach(t=>{r[t]&&(e.params[i[t]]=r[t])}),e}},criteo:{name:"criteo"},fabrickId:{name:"fabrickId",storage:{name:"pbjs_fabrickId",type:"cookie",expires:7},modifyBidderConfig(e,t,r){let i={_email:"e",_phone:"p",_ipv4:"i4",_ipv6:"i6",_idfa:"m",_ifa:"ia",_ifv:"iv"};return Object.keys(i).forEach(t=>{r[t]&&(e.params[i[t]]=r[t])}),e}},hadronId:{name:"hadronId",storage:{name:"hadronId",type:"html5"},modifyBidderConfig(e,t,r){let i={};return Object.keys(i).forEach(t=>{r[t]&&(e.params[i[t]]=r[t])}),e}},id5Id:{name:"id5Id",storage:{name:"id5id",type:"html5",expires:90,refreshInSeconds:28800},modifyBidderConfig(e,t,r){let i=["_email","_phone"],n={_email:"1",_phone:"2",_ipv4:"10",_ipv6:"11",_idfa:"6",_ifv:"14",_ua:"12"},o="";Object.keys(n).forEach(e=>{if(r[e]){let t=r[e];i.includes(e)||(t=encodeURIComponent(t)),o+=n[e]+"="+t+"&"}}),e.params.pd=o.slice(0,-1);try{e.params.pd=function(e){if(!e)return"";try{let t=c().encode(e);return l().encode(t)}catch(e){return(0,h.A)().error("Error encoding string:",e),""}}(e.params.pd)}catch(e){p.error(e)}return e}},identityLink:{name:"identityLink",storage:{name:"idl_env",type:"html5",expires:15,refreshInSeconds:1800},modifyBidderConfig(e,t,r){let i={};return Object.keys(i).forEach(t=>{r[t]&&(e.params[i[t]]=r[t])}),e}},liveIntentId:{name:"liveIntentId",storage:{name:"__tamLIResolveResult",type:"html5",expires:1},modifyBidderConfig(e,t,r,i){return"prebid"===i&&(e.params=e.params||{},r._email&&(e.params.emailHash=r._email),r._ipv4&&(e.params.ipv4=r._ipv4),r._ipv6&&(e.params.ipv6=r._ipv6),e.params.fpid={strategy:"html5",name:"li_fpid"},e.params.userAgent=navigator.userAgent,e.params.requestedAttributesOverrides={uid2:!0,medianet:!0,magnite:!0,bidswitch:!0,pubmatic:!0,openx:!0,sovrn:!0,index:!0,thetradedesk:!0,sharethrough:!0,sonobi:!0,vidazoo:!0,zetassp:!0,triplelift:!0,fpid:!0}),e}},lotamePanoramaId:{name:"lotamePanoramaId"},pairId:{name:"pairId"},pubProvidedId:{name:"pubProvidedId",props:{eids:[]},modifyBidderConfig(e,t,r,i){if("prebid"===i&&(r._ppid||r._email)){let t=[];r._email&&t.push({id:r._email,atype:3,ext:{stype:64===String(r._email).length?"hemsha256":"hemmd5"}}),r._md5email&&t.push({id:r._md5email,atype:3,ext:{stype:"hemmd5"}}),r._ppid&&t.push({id:r._ppid,atype:1,ext:{stype:"ppuid"}}),e.params.eids[0]={source:window.location.hostname,uids:t}}return e}},sharedId:{name:"sharedId",storage:{name:"_sharedid",type:"cookie",expires:365}},unifiedId:{name:"unifiedId",storage:{name:"pbjs-unifiedid",type:"cookie",expires:60}},uid2:{name:"uid2",modifyBidderConfig(e,t,r,i){let n=s.A.apply("userId.uid2.includeEmail",!0,e=>!!(null==e||e));if("prebid"===i&&(e.params=e.params||{},0===Object.keys(e.params.uid2Token||{}).length&&e.params.serverPublicKey&&e.params.subscriptionId&&n&&r._email&&"string"==typeof r._email)){let t=r._email;64===t.length&&(t=function(e=""){let t=[];for(let r=0;rString.fromCharCode(e)).join(""))}(t)),44===t.length&&(e.params.emailHash=t)}return e}},amxId:{name:"amxId",storage:{name:"amxId",type:"html5",expires:1}}};function m(e){for(var t=1;t{let t=e.module,r=e.storage||{},i=e.extraParams||{},n=e.key||null,{name:o,props:s={},modifyBidderConfig:a,storage:d={}}=g[t],l=f[t],u={name:o,configs:{prebid:{name:o,params:m({},n&&l?{[l]:n}:{},i,s),storage:m({},d,r)}},convert(e,t){let r=this.configs[t];return!!r&&("function"==typeof a&&(r=a(r,this,e,t)),r)}};return 0===Object.keys(u.configs.prebid.params).length&&delete u.configs.prebid.params,0===Object.keys(u.configs.prebid.storage).length&&delete u.configs.prebid.storage,u};var v=r(51804),y=r(44558),w=r(5789),A=r(22188),I=r(87594),S=r(52093),E=r(86964).Promise;function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let T=(0,h.A)("UserID"),O={_email:!1,_phone:!1,_ipv4:!1,_ipv6:!1,_idfa:!1,_ifa:!1,_ifv:!1,_ppid:!1,_ua:null!=(i=window.navigator.userAgent)&&i,_md5email:!1};class P{restoreCachedValues(){let e=[];Object.entries(this._storageKeys).forEach(([t,r])=>{let i=this._userIdData[t];i||(this._userIdData[t]=localStorage.getItem(r)||i,this._userIdData[t]!==i&&e.push(t))}),e.length&&T.advancedLog("restored from storage:",e.join(", "))}saveCachedValues(){Object.entries(this._storageKeys).forEach(([e,t])=>{let r=this._userIdData[e];r&&"string"==typeof r&&localStorage.setItem(t,r)})}clearCachedValues(){Object.values(this._storageKeys).forEach(e=>{localStorage.removeItem(e)})}onChange(e){this.onChangeHandler=e}emitChange(e){var t;this.onChangeHandler(),I.B.emit("UserId.setIdProfile.onChange",{input:e,data:this._userIdData}),I.B.emit("UserId.setIdProfile.afterRun",e);let r=(0,A.b)();null==r||null==(t=r.refreshUserIds)||t.call(r)}setBiddersWithUserId(e){this._bidders=e}setUserIdModules(e){this._userIdModules=e}enableAmazonEmail(){this.amazon=!0,T.log("Amazon Email enabled")}setIdProfile(e){T.log("User Id profile set from client",e);let t=JSON.stringify(this._userIdData);this._userIdData={_email:(null==e?void 0:e.e)||this._userIdData._email,_phone:(null==e?void 0:e.p)||this._userIdData._phone,_ipv4:(null==e?void 0:e.i4)||this._userIdData._ipv4,_ipv6:(null==e?void 0:e.i6)||this._userIdData._ipv6,_idfa:(null==e?void 0:e.idfa)||this._userIdData._idfa,_ifa:(null==e?void 0:e.ifa)||this._userIdData._ifa,_ifv:(null==e?void 0:e.ifv)||this._userIdData._ifv,_ppid:(null==e?void 0:e.ppid)||this._userIdData._ppid,_ua:(null==e?void 0:e.ua)||this._userIdData._ua,_md5email:(null==e?void 0:e.e_md5)||this._userIdData._md5email},this.restoreCachedValues();let r=t!==JSON.stringify(this._userIdData);r&&this.saveCachedValues(),this.amazon&&this.sendToAmazon(),"string"==typeof(null==e?void 0:e.ppid)&&S.U.setPublisherProvidedId(e.ppid),r&&this.emitChange(e)}resetIdProfile(){var e;T.log("User Id profile reset");let t=(0,A.b)(),r=!!(this._userIdData._ppid||this._userIdData._email),i=JSON.stringify(this._userIdData)!==JSON.stringify(O);this._userIdData=O,this.clearCachedValues(),this.amazon&&(0,w.U)("apstag",{}).then(()=>{var e,t;null==(e=(t=window.apstag).dpa)||e.call(t),T.log("amazon token deleted")}),r&&(T.log("gpt ppid reset"),S.U.setPublisherProvidedId("")),T.log("prebid user ids refreshed"),null==t||null==(e=t.refreshUserIds)||e.call(t),I.B.emit("UserId.resetIdProfile.afterRun"),i&&this.emitChange({})}getPublicFunctions(){return{setIdProfile:this.setIdProfile.bind(this),resetIdProfile:this.resetIdProfile.bind(this)}}toConfig(e){let t=this._bidders.find(t=>t.name===e);if(!t)return!1;let r=[];return this._userIdModules.forEach(e=>{let i=e.convert(this._userIdData,t.name);i&&r.push(i)}),!(r.length<1)&&t.createConfig(r)}constructor(){_(this,"_userIdData",O),_(this,"_bidders",[]),_(this,"_userIdModules",[]),_(this,"_storageKeys",{_email:"cw-cache.user-id.hem-sha256",_md5email:"cw-cache.user-id.hem-md5",_ppid:"cw-cache.user-id.ppid"}),_(this,"amazon",!1),_(this,"amazonPubId",void 0),_(this,"onChangeHandler",()=>{}),_(this,"enableAmazonBetaApi",async()=>{let e=(0,A.b)(),{AMAZON_PUB_ID:t}=await y.rI.getConfig();if(!t)return T.warn("Amazon pub id not found for beta api"),!1;e.que.push(()=>{e.getUserIdsAsync&&e.getUserIdsAsync().then(()=>{T.log("User Ids enabled for API"),({accountID:t,record:function(e,t){return new E((r,i)=>{var n,o;window._aps.get(this.accountID).queue.push(new CustomEvent(e,{detail:(n=function(e){for(var t=1;t{if(!this._userIdData._email||"string"!=typeof this._userIdData._email)return;let e={hashedRecords:[{type:"email",record:this._userIdData._email}]};T.log("Sending token to Amazon",e),(0,w.U)("apstag",{}).then(()=>{window.apstag.rpa(e,()=>{T.log("Amazon token sent",e)})})});let e=JSON.stringify(this._userIdData);this.restoreCachedValues(),e!==JSON.stringify(this._userIdData)&&this.emitChange({})}}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class D extends o.A{getLoggerColor(){return"pink"}getInitialState(){return{}}start(){let e=new P;e.setBiddersWithUserId([a()]);let{userModules:t}=this.props;return e.setUserIdModules(t.map(e=>b(e))),v.y.setStore(e),v.y.enableUserId(),!1!==this.props.enableAmazonEmail&&e.enableAmazonEmail(),this.props.enableAmazonBetaApi&&e.enableAmazonBetaApi(),this.publicFunctions=e.getPublicFunctions()||{},s.A.sub("tudePublicFunctions",({tude:e})=>(Object.entries(this.publicFunctions).forEach(t=>{let[r,i]=t;e[r]=i}),{tude:e})),this.publicFunctions}constructor(e){super(e,"UserId"),C(this,"userModules",void 0),C(this,"defaultUserModules",[{module:"sharedId"},{module:"fabrickId",key:"2254903614"},{module:"id5Id",key:1016},{module:"33acrossId",key:"0015a00002qqhgFAAQ"},{module:"pubProvidedId"},{module:"criteo"}]),C(this,"publicFunctions",void 0),this.userModules=e.userModules,this.defaultUserModules.length&&this.defaultUserModules.filter(e=>null==e?void 0:e.module).filter(e=>!this.userModules.find(t=>t.module===e.module)).filter(t=>!(e.disabledModules||[]).includes(t.module)).forEach(e=>{this.userModules.push(e)})}}C(D,"componentName","user-id"),(0,n.h)(D);var U=D},36800:function(e,t,r){var i=r(75288),n=r(64894),o=r(30361),s=r(23805);e.exports=function(e,t,r){if(!s(r))return!1;var a=typeof t;return("number"==a?!!(n(r)&&o(t,r.length)):"string"==a&&t in r)&&i(r[t],e)}},37167:function(e,t,r){var i=r(4901),n=r(27301),o=r(86009),s=o&&o.isTypedArray;e.exports=s?n(s):i},37217:function(e,t,r){var i=r(80079),n=r(51420),o=r(90938),s=r(63605),a=r(29817),d=r(80945);function l(e){var t=this.__data__=new i(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=a,l.prototype.set=d,e.exports=l},37241:function(e,t,r){var i=r(70695),n=r(72903),o=r(64894);e.exports=function(e){return o(e)?i(e,!0):n(e)}},37334:function(e){e.exports=function(e){return function(){return e}}},37828:function(e,t,r){e.exports=r(9325).Uint8Array},39344:function(e,t,r){var i=r(23805),n=Object.create;e.exports=function(){function e(){}return function(t){if(!i(t))return{};if(n)return n(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}()},40295:function(e,t,r){"use strict";r.d(t,{y:function(){return i}});let i={START:"plugin.start"}},40346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},41113:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},42824:function(e,t,r){var i=r(87805),n=r(93290),o=r(71961),s=r(23007),a=r(35529),d=r(72428),l=r(56449),u=r(83693),c=r(3656),h=r(1882),p=r(23805),f=r(11331),g=r(37167),m=r(14974),b=r(69884);e.exports=function(e,t,r,v,y,w,A){var I=m(e,r),S=m(t,r),E=A.get(S);if(E)return void i(e,r,E);var _=w?w(I,S,r+"",e,t,A):void 0,T=void 0===_;if(T){var O=l(S),P=!O&&c(S),C=!O&&!P&&g(S);_=S,O||P||C?l(I)?_=I:u(I)?_=s(I):P?(T=!1,_=n(S,!0)):C?(T=!1,_=o(S,!0)):_=[]:f(S)||d(S)?(_=I,d(I)?_=b(I):(!p(I)||h(I))&&(_=a(S))):T=!1}T&&(A.set(S,_),y(_,S,v,w,A),A.delete(S)),i(e,r,_)}},43360:function(e,t,r){var i=r(93243);e.exports=function(e,t,r){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},43977:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});let i=e=>null!==e&&"object"==typeof e},44558:function(e,t,r){"use strict";let i,n,o,s,a;r.d(t,{rI:function(){return eQ},GJ:function(){return e0},TT:function(){return eX},Xp:function(){return e1}}),r(11490),r(8555);var d,l,u,c=r(18238),h=r(10667);c.A.sub("prebidAdUnitConfig",e=>{var t,r;let{adUnit:i}=e;return i&&(null==i||null==(r=i.mediaTypes)||null==(t=r.banner)?void 0:t.sizes)&&(i.mediaTypes.banner.sizes=i.mediaTypes.banner.sizes.filter(e=>{let t=e.includes("fluid");return t&&(0,h.A)().log(`Removing size ${e} from ${i.slot}`),!t})),e});var p=r(22188);c.A.sub("wrapperConfigOnInit",e=>{let t;try{Object.keys(e.AD_UNITS).find(r=>!!e.AD_UNITS[r].find(e=>!!((null==e?void 0:e.bids)||[]).find(e=>"adagio"===e.bidder&&(t=e,!0))))}catch(e){}return c.A.sub("prebidGlobalConfig",e=>{let r=(0,p.b)();return r.que.push(()=>{var i,n,o,s,a;if(t&&(null==t||null==(i=t.params)?void 0:i.organizationId)&&(null==t||null==(n=t.params)?void 0:n.site)&&(r.version||"").startsWith("v9")&&r.installedModules.includes("adagioBidAdapter")&&r.installedModules.includes("adagioRtdProvider")){e.realTimeData=null!=(o=e.realTimeData)?o:{auctionDelay:100,dataProviders:[]};let r=e.realTimeData;r.dataProviders=r.dataProviders||[],r.dataProviders.find(e=>"adagio"===e.name)||((0,h.A)().advancedLog("Auto-configuring adagioRtdModule for prebid v9"),r.dataProviders.push({name:"adagio",params:{organizationId:null==(s=t.params)?void 0:s.organizationId,site:null==(a=t.params)?void 0:a.site}}))}}),e}),e});var f=r(25279),g=r(74547),m=r(24510),b=r(51804),v=r(85222),y=r(87594),w=r(52093),A=r(46817);let I={COMPLETED:"completed",NOT_STARTED:"not_started",STARTED:"started"},S=()=>Date.now();var E=class{push(e){this.reqs.push(e)}getByRecent(){return this.reqs.sort((e,t)=>e.startedAt!(e.status===I.COMPLETED&&S()-e.completedAt>1e4)&&!0)}constructor(){this.reqs=[]}};class _{formatBids(e){return e.filter(e=>void 0===e.status).map(e=>({adId:e.adId,adUnitCode:e.adUnitCode,bidder:e.bidder,cpm:e.cpm,creativeId:e.creativeId,requestId:e.requestId,status:e.status,statusMessage:e.statusMessage}))}constructor({adUnit:e,adUnitCode:t,divId:r,baseDivId:i},n){this.adUnitCode=t,this.adUnit=e,this.divId=r,this.baseDivId=i,this.pbjsGlobalName=n,this.bidderMatches=[],this.index=_.num,_.num++}}"num"in _?Object.defineProperty(_,"num",{value:0,enumerable:!0,configurable:!0,writable:!0}):_.num=0;class T{addUnit({adUnit:e,adUnitCode:t,divId:r,baseDivId:i}){this.units.push(new _({adUnit:e,adUnitCode:t,divId:r,baseDivId:i},this.pbjsGlobalName))}getTimings(){return{deltas:{e2e:this.completedAt-this.createdAt,steps:{"0_createdStarted":this.startedAt-this.createdAt,"1_startedCompleted":this.completedAt-this.startedAt}}}}markAsStarted(){this.status=I.STARTED,this.startedAt=S(),y.B.emit(g.qY.AUCTION_START,{auctionId:this.auctionId,ids:this.units.map(e=>({adUnit:e.adUnit,adUnitCode:e.adUnitCode,divId:e.divId}))})}markAsCompleted(){this.status=I.COMPLETED,this.completedAt=S()}constructor(e,t){this.status=I.NOT_STARTED,this.createdAt=S(),this.startedAt=!1,this.completedAt=!1,this.units=[],this.auctionId=t,this.index=T._num,this.pbjsGlobalName=e,T._num++}}function O(e,t){if(void 0===e)throw TypeError("attempted to "+t+" private static field before its declaration")}function P(e,t,r){return U(e,t),O(r,"get"),r.get?r.get.call(e):r.value}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e){for(var t=1;te.find(e=>{let r=!0;return e.slot&&t.slot&&(r=Array.isArray(e.slot)?e.slot.includes(t.slot):e.slot===t.slot),r&&(e.code===t.divId||e.code===t.adUnit)});class N{static setGlobalName(e){this.globalName=e}static getGlobalInstance(){return window[this.globalName]=window[this.globalName]||{},window[this.globalName].que=window[this.globalName].que||[],window[this.globalName]}static setBidderSettings(e){let t=N.getGlobalInstance(),r=t.bidderSettings||{};t.bidderSettings=D({standard:{storageAllowed:!0}},r,e)}static registerSignalSources(){if(N.registerSignalSourcesCalled)return;N.registerSignalSourcesCalled=!0;let e=N.getGlobalInstance();e.que.push(()=>{e.getUserIdsAsync&&e.getUserIdsAsync().then(()=>{let t=Array.from(new Set(e.getUserIdsAsEids().map(e=>e.source)));if(t&&t.length){let r=r=>((null==(r=r||{})?void 0:r.encryptedSignalSources)||((r=r||{}).encryptedSignalSources={sources:[{source:t,encrypt:!1}]},e.mergeConfig({userSync:r})),r);r(e.getConfig("userSync")),e.getConfig("userSync",e=>r(null==e?void 0:e.userSync)),w.U.push(()=>e.registerSignalSources())}})})}setListenersForUserIdChanges(){m.A.onChange(()=>{this.syncUserIdConfig()}),b.A.onChange(()=>{this.syncUserIdConfig()})}syncUserIdConfig(){let e,{userSync:t}=this.config.PREBID_CONFIG,r="User Id";if(m.A.isEnabled()&&m.A.store?e=m.A:b.A.isEnabled()&&b.A.store&&(e=b.A,r="User Id V2"),!e)return;let i=e.store.toConfig("prebid");if(i){j(`Syncing ${r} config for prebid`,e.store),t=D({},t,i);let n=N.getGlobalInstance();n.que.push(()=>{let e=n.getConfig("userSync.userIds")||[];if(e.length){let r=t.userIds||[];e.forEach(e=>{r.every(t=>t.name!==e.name)&&r.push(e)}),t.userIds=r}n.setConfig({userSync:t})})}else(0,h.A)(R).warn(`${r} profile or modules were empty`,e.store)}forceTriggerPrebidUserSyncs(){let e=N.getGlobalInstance();e.que.push(()=>{j("calling prebid triggerUserSyncs"),e.setConfig({userSync:{enableOverride:!0}}),e.triggerUserSyncs(),e.setConfig({userSync:{enableOverride:!1}}),e.getUserIdsAsync().then(e=>j("user ids all complete:",e))})}isTudeServe(){return["v2","tude"].includes(this.config.AD_SERVER)}constructor(e){C(this,"config",void 0),C(this,"requestBidsWithoutSlots",e=>{let{mappings:t,adUnits:r,cb:i,auctionState:n={}}=e,{PREBID_GLOBAL:o,PREBID_TIMEOUT:s,PREBID_SIZES_OVERRIDE:a}=this.config,d=N.getGlobalInstance(),l=(0,f.A)(),u=new T(o,l);if(!v.A.canReceivePersonalizedAds()){(0,h.A)(R).warn("Prebid will not run because personalized ads are turned off"),i({adUnitCodes:[],bids:{},req:!1});return}let p=t.filter(e=>B(r,e)).map(e=>{var t;let i=Object.assign({},B(r,e));i.code=e.divId,(null==(t=i.mediaTypes)?void 0:t.banner)&&(a&&e.prebidSizes&&(i.mediaTypes.banner.sizes=e.prebidSizes),i.mediaTypes.banner.sizes=c.A.apply("prebidSizes",{code:i.code,adUnit:e.adUnit,baseDivId:e.baseDivId,sizes:i.mediaTypes.banner.sizes},({sizes:e})=>e));let n={adUnitCode:(i=c.A.apply("prebidAdUnitConfig",{adUnit:i,adUnits:r,baseDivId:e.baseDivId,divId:e.divId},({adUnit:e})=>e)).code,adUnit:e.adUnit,divId:e.divId,baseDivId:e.baseDivId};return u.addUnit(n),i}),m=c.A.apply("prebidAdUnits",{prebidAdUnits:p,adUnits:r,mappings:t},({prebidAdUnits:e})=>e);if(m.length<1)return(0,h.A)(R).error("No prebid ad unit matches for ",t),!1;m.forEach(e=>{y.B.emit(`pbjs.beforeRequest.${e.code}`,e)});let b=m.map(e=>e.code);x.push(u),x.garbageCollect(),d.que.push(()=>{var e,t;j(g.dN.PREBID_REQUEST_STARTING,b,{requestableUnits:p}),u.markAsStarted(),d.removeAdUnit(m.map(e=>e.code)),d.addAdUnits(m);let r=this.isTudeServe();d.requestBids((e=D({},{timeout:s,adUnitCodes:b,auctionId:l}),t=t={bidsBackHandler:e=>{n.timedout||r||d.setTargetingForGPTAsync(b),u.markAsCompleted(),i({adUnitCodes:b,bids:e,req:u})}},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r.push.apply(r,i)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e))})});let{BID_MODIFIERS:t,PREBID_CACHE:r,PREBID_CACHE_DISABLE_MOVING_BIDDERS:i,PREBID_SECURE_SIGNALS:n,PREBID_SINGLETON:o,PREBID_EARLY_USERSYNC:s}=e;if(o){if(P(N,N,M))return P(N,N,M);var a=N,d=N,l=M,u=this;if(U(a,d),O(l,"set"),l.set)l.set.call(a,u);else{if(!l.writable)throw TypeError("attempted to set read only private field");l.value=u}}this.config=e,(m.A.isEnabled()&&m.A.store||b.A.isEnabled()&&b.A.store)&&(b.A.isEnabled()?j("User Id V2 sync service is enabled for Prebid"):j("User Id sync service is enabled for Prebid"),this.syncUserIdConfig(),this.setListenersForUserIdChanges(),s&&o&&this.forceTriggerPrebidUserSyncs()),r&&(0,A.A)({PREBID_CACHE_DISABLE_MOVING_BIDDERS:i,BID_MODIFIERS:t,AD_SERVER:e.AD_SERVER}),n&&N.registerSignalSources()}}C(N,"globalName","pbjs"),C(N,"registerSignalSourcesCalled",!1);var M={writable:!0,value:void 0};function L(e,t){if(void 0===e)throw TypeError("attempted to "+t+" private static field before its declaration")}function k(e,t,r){return z(e,t),L(r,"get"),r.get?r.get.call(e):r.value}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F(e){for(var t=1;t{var t;return(null==e?void 0:e.s2sConfig)&&!(null==e||null==(t=e.s2sConfig)?void 0:t.timeout)&&(null==e?void 0:e.bidderTimeout)&&(e.s2sConfig.timeout=Math.max(500,e.bidderTimeout-250)),function(e={}){if((null==e?void 0:e.eventHistoryTTL)!==void 0&&(null==e?void 0:e.minBidCacheTTL)!==void 0)return;let t=(0,p.b)();t.que.push(()=>{setTimeout(()=>{var i,n;if(Object.keys(r.g.assertive||{}).length||window._assertiveInitialized)return;let o={eventHistoryTTL:null!=(i=e.eventHistoryTTL)?i:15,minBidCacheTTL:null!=(n=e.minBidCacheTTL)?n:0};(0,h.A)().advancedLog("configuring prebid to clear events and expired bids",o),t.setConfig(o)},15e3)})}(e),e});class V extends Error{constructor(e,t){super(e),q(this,"context",void 0),this.context=t,this.name="PrebidOptimizationError"}}let $=(0,h.A)("Prebid-V2").setLabel("Pb2","#2B65EC"),H=(()=>{let e=new Map;return async(...t)=>{let r=t[0];if("string"==typeof r&&e.has(r))return e.get(r);let i=$.log(...t);return"string"==typeof r&&e.set(r,i),i}})(),W=(s=null,{getInstance:()=>(s||(s=new E),s)});(a=!1,()=>{if(!a)try{window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],a=!0}catch(e){throw new V("Failed to initialize Google Tag Manager",{error:e})}})();let Z=(()=>{let e=new Map,t=0;return(r,i)=>{try{let n=Date.now();n-t>5e3&&(e.clear(),t=n);let o=`${r}_${i}`;if(e.has(o))return e.get(o);for(let t of W.getInstance().getByRecent().filter(e=>e.status===I.STARTED)){let n=t.units.find(e=>e.adUnitCode===r&&!e.bidderMatches.includes(i));if(n)return n.bidderMatches.push(i),e.set(o,n),n}return e.set(o,null),null}catch(e){return $.error("Error in matchAdUnitCodeToDivId:",e),null}}})(),Y=(()=>{let e=new Map,t=0;return(r,i)=>{try{let n=r.length+r.reduce((e,t)=>e+t.code.length,0);n!==t&&(e.clear(),r.forEach(t=>{e.set(t.code,t)}),t=n);let o=e.get(i.divId)||e.get(i.adUnit);return o||(o=r.find(e=>{let t=!0;return e.slot&&i.slot&&(t=Array.isArray(e.slot)?e.slot.includes(i.slot):e.slot===i.slot),t&&(e.code===i.divId||e.code===i.adUnit)})),o}catch(e){throw new V("Error matching mapping to ad unit",{mapping:i,error:e})}}})();class J{initialize(){if(!this.isInitialized)try{let{BID_MODIFIERS:e,PREBID_CACHE:t,PREBID_CACHE_DISABLE_MOVING_BIDDERS:r,PREBID_SECURE_SIGNALS:i,PREBID_SINGLETON:n,PREBID_EARLY_USERSYNC:o}=this.config,s=[];this.isUserIdServiceEnabled()&&(b.A.isEnabled()?H("User Id V2 sync service is enabled for Prebid"):H("User Id sync service is enabled for Prebid"),s.push(this.syncUserIdConfig(),this.setListenersForUserIdChanges()),o&&n&&s.push(this.forceTriggerPrebidUserSyncs())),t&&(0,A.A)({PREBID_CACHE_DISABLE_MOVING_BIDDERS:Array.isArray(r)?r:[],BID_MODIFIERS:e,AD_SERVER:this.config.AD_SERVER}),i&&J.registerSignalSources(),this.isInitialized=!0}catch(e){throw new V("Failed to initialize OptimizedPrebidBidder",{error:e})}}static setGlobalName(e){this.globalName=e}static getGlobalInstance(){let e=this.globalName;return window[e]?window[e].que||(window[e].que=[]):window[e]={que:[]},window[e]}static setBidderSettings(e){try{let t=J.getGlobalInstance();t.bidderSettings=F({standard:{storageAllowed:!0}},t.bidderSettings,e)}catch(t){throw new V("Failed to set bidder settings",{settings:e,error:t})}}static registerSignalSources(){if(!J.registerSignalSourcesCalled){J.registerSignalSourcesCalled=!0;try{let e=J.getGlobalInstance();e.que.push(()=>{e.getUserIdsAsync&&e.getUserIdsAsync().then(()=>{let t=e.getUserIdsAsEids()||[],r=[...new Set(t.map(e=>e.source))];if(0===r.length)return;let i=(e={})=>(null==e?void 0:e.encryptedSignalSources)?e:G(F({},e),{encryptedSignalSources:{sources:[{source:r,encrypt:!1}]}}),n=e.getConfig("userSync"),o=i(n);e.mergeConfig({userSync:o}),e.getConfig("userSync",t=>{let r=i(null==t?void 0:t.userSync);r!==(null==t?void 0:t.userSync)&&e.mergeConfig({userSync:r})}),w.U.push(()=>e.registerSignalSources())}).catch(e=>{$.error("Failed to register signal sources:",e)})})}catch(e){throw new V("Failed to register signal sources",{error:e})}}}setListenersForUserIdChanges(){let e=()=>this.syncUserIdConfig();this.userIdChangeListeners.has(e)||(m.A.onChange(e),b.A.onChange(e),this.userIdChangeListeners.add(e))}syncUserIdConfig(){try{let{userSync:e}=this.config.PREBID_CONFIG||{},t=this.getActiveUserIdService();if(!t)return;let r=t.store.toConfig("prebid");if(!r){let e=t===b.A?"User Id V2":"User Id";$.warn(`${e} profile or modules were empty`,t.store);return}H(`Syncing ${t===b.A?"User Id V2":"User Id"} config for prebid`,t.store),e=F({},e,r);let i=J.getGlobalInstance();i.que.push(()=>{try{let t=i.getConfig("userSync.userIds")||[];if(t.length>0){let r=[...e.userIds||[]],i=new Set(r.map(e=>e.name));t.forEach(e=>{i.has(e.name)||r.push(e)}),e.userIds=r}i.setConfig({userSync:e})}catch(e){$.error("Error setting user sync config:",e)}})}catch(e){throw new V("Failed to sync user ID config",{error:e})}}getActiveUserIdService(){return m.A.isEnabled()&&m.A.store?m.A:b.A.isEnabled()&&b.A.store?b.A:null}forceTriggerPrebidUserSyncs(){let e=J.getGlobalInstance();e.que.push(()=>{try{H("calling prebid triggerUserSyncs"),e.setConfig({userSync:{enableOverride:!0}}),e.triggerUserSyncs(),e.setConfig({userSync:{enableOverride:!1}}),e.getUserIdsAsync().then(e=>H("user ids all complete:",e)).catch(e=>$.error("Error getting user IDs:",e))}catch(e){$.error("Error triggering user syncs:",e)}})}processRequestableUnits(e,t,r,i){let n=[];for(let s of e)try{var o;let e=Y(t,s);if(!e)continue;let a=G(F({},e),{code:s.divId});if(null==(o=a.mediaTypes)?void 0:o.banner){i&&s.prebidSizes&&(a.mediaTypes.banner.sizes=s.prebidSizes);try{let e=c.A.apply("prebidSizes",{code:a.code,adUnit:s.adUnit,baseDivId:s.baseDivId,sizes:a.mediaTypes.banner.sizes},({sizes:e})=>e);a.mediaTypes.banner.sizes=Array.isArray(e)?e:a.mediaTypes.banner.sizes}catch(e){$.error("Error applying prebidSizes filter:",e)}}let d=c.A.apply("prebidAdUnitConfig",{adUnit:a,adUnits:t,baseDivId:s.baseDivId,divId:s.divId},({adUnit:e})=>e),l={adUnitCode:d.code,adUnit:s.adUnit,divId:s.divId,baseDivId:s.baseDivId};r.addUnit(l),n.push(d)}catch(e){$.error("Error processing requestable unit:",e,{mapping:s})}return n}applyPrebidFilters(e,t,r){try{return c.A.apply("prebidAdUnits",{prebidAdUnits:e,adUnits:t,mappings:r},({prebidAdUnits:e})=>e)}catch(t){return $.error("Error applying prebid filters:",t),e}}constructor(e){let t,r;if(q(this,"config",void 0),q(this,"userIdChangeListeners",new Set),q(this,"isInitialized",!1),q(this,"isUserIdServiceEnabled",(t=null,()=>(null===t&&(t=!!(m.A.isEnabled()&&m.A.store)||!!(b.A.isEnabled()&&b.A.store)),t))),q(this,"isTudeServe",(r=null,()=>(null===r&&(r=["v2","tude"].includes(this.config.AD_SERVER||"")),r))),q(this,"requestBidsWithoutSlots",e=>{let{mappings:t,adUnits:r,cb:i,auctionState:n={}}=e,{PREBID_GLOBAL:o,PREBID_TIMEOUT:s,PREBID_SIZES_OVERRIDE:a}=this.config;try{if(!(null==t?void 0:t.length))throw new V("No mappings provided",{params:e});if(!(null==r?void 0:r.length))throw new V("No ad units provided",{params:e});if(!i||"function"!=typeof i)throw new V("Invalid callback function",{params:e});let d=J.getGlobalInstance(),l=(0,f.A)(),u=new T(o,l);if(!v.A.canReceivePersonalizedAds())return $.warn("Prebid will not run because personalized ads are turned off"),i({adUnitCodes:[],bids:{},req:!1}),!1;let c=this.processRequestableUnits(t,r,u,a);if(0===c.length)return $.error("No prebid ad unit matches for",t),!1;let h=this.applyPrebidFilters(c,r,t);h.forEach(e=>{try{y.B.emit(`pbjs.beforeRequest.${e.code}`,e)}catch(t){$.error(`Error emitting event for unit ${e.code}:`,t)}});let p=h.map(e=>e.code),m=W.getInstance();return m.push(u),m.garbageCollect(),d.que.push(()=>{try{H(g.dN.PREBID_REQUEST_STARTING,p,{requestableUnits:c}),u.markAsStarted(),d.removeAdUnit(p),d.addAdUnits(h);let e=this.isTudeServe();d.requestBids(G(F({},{timeout:s,adUnitCodes:p,auctionId:l}),{bidsBackHandler:t=>{try{n.timedout||e||d.setTargetingForGPTAsync(p),u.markAsCompleted(),i({adUnitCodes:p,bids:t,req:u})}catch(e){$.error("Error in bidsBackHandler:",e),i({adUnitCodes:[],bids:{},req:!1})}}}))}catch(e){$.error("Error in prebid request execution:",e),u.markAsCompleted(),i({adUnitCodes:[],bids:{},req:!1})}}),!0}catch(e){return $.error("Error in requestBidsWithoutSlots:",e),i({adUnitCodes:[],bids:{},req:!1}),!1}}),e.PREBID_SINGLETON){if(k(J,J,K))return k(J,J,K);var i=J,n=J,o=K,s=this;if(z(i,n),L(o,"set"),o.set)o.set.call(i,s);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=s}}this.config=F({},e),this.initialize()}}q(J,"globalName","pbjs"),q(J,"registerSignalSourcesCalled",!1);var K={writable:!0,value:null};c.A.sub("prebidGlobalConfig",e=>{try{return(null==e?void 0:e.s2sConfig)&&!e.s2sConfig.timeout&&e.bidderTimeout&&(e.s2sConfig.timeout=Math.max(500,e.bidderTimeout-250)),function(e={}){if(void 0===e.eventHistoryTTL||void 0===e.minBidCacheTTL)try{let t=(0,p.b)();t.que.push(()=>{let i=setTimeout(()=>{try{var i,n;if(Object.keys(r.g.assertive||{}).length>0||window._assertiveInitialized)return;let o={eventHistoryTTL:null!=(i=e.eventHistoryTTL)?i:15,minBidCacheTTL:null!=(n=e.minBidCacheTTL)?n:0};(0,h.A)().advancedLog("configuring prebid to clear events and expired bids",o),t.setConfig(o)}catch(e){$.error("Error in prebid clear events configuration:",e)}},15e3);"undefined"!=typeof window&&window.addEventListener("beforeunload",()=>{clearTimeout(i)},{once:!0})})}catch(e){$.error("Error setting up prebid clear events:",e)}}(e),e}catch(t){return $.error("Error in prebidGlobalConfig filter:",t),e}});var Q=r(4413),X=r(67259);let ee="true"==(0,X.P3)("pbjsv2")?100:1,et=100-ee,{PrebidBidderTest:er,matchAdUnitCodeToDivIdTest:ei}=(0,Q.J)({name:`20250625-prebid-v2-test-${ee}-${et}`,tracking:"custom_116",variants:[{name:"test",value:{PrebidBidderTest:J,matchAdUnitCodeToDivIdTest:Z},percent:ee},{name:"control",value:{PrebidBidderTest:N,matchAdUnitCodeToDivIdTest:(e,t)=>{let r=null;return x.getByRecent().filter(e=>e.status===I.STARTED).forEach(i=>{let n=i.units.filter(r=>r.adUnitCode===e&&!1!==r.bidderMatches.includes(t));if(n.length>0)return r=n[0],n[0].bidderMatches.push(t),!1}),r}},percent:et}]});var en=/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j)?null:er,eo=r(99406),es=r(75208),ea=r(36016);let ed=(0,h.A)("ay-revenue").setLabel("Predictions"),el=.8,eu="USD",ec=[{name:"2RPS",rps:.02},{name:"6RPS",rps:.06},{name:"10RPS",rps:.1},{name:"15RPS",rps:.15},{name:"20RPS",rps:.2},{name:"25RPS",rps:.25}],eh=!1,ep="assertive_predictedRevenue";function ef(){let e;ef.hasRan||(ef.hasRan=!0,window.addEventListener(ep,()=>{e="yes",ea.A.setTargeting({tude_revpr:e})}),w.U.addEventListener("slotRenderEnded",()=>{setTimeout(()=>{e||(e="no",ea.A.setTargeting({tude_revpr:e}))},1e3)}))}var eg={addImpCPMTrackingEvents:(e=el,t=eu)=>{ed.log(g.dN.ADDING_FB_PURCHASE_TRACKING),ef(),window.addEventListener(ep,function(r){if(void 0===window.fbq)return void ed.warn("No FB pixel on the page to record Purchase events");try{let i=r.data.meta.impressionUUID,n=r.data.predictedRevenueCPM.impression*e;fbq("track","Purchase",{currency:t,value:n,transactionId:i}),ed.advancedLog("Facebook (FB) event triggered",{event:"Purchase",value:n,type:"impression"})}catch(e){ed.error(e)}},!1)},addRPSTrackingEvents:(e=ec,t=eu,r=eh,i=!1)=>{ed.log(g.dN.ADDING_FB_RPS_TRACKING),ef(),window.addEventListener(ep,function(n){if(void 0===window.fbq)return void ed.warn("No FB pixel on the page to record RPS events");try{let o=n.data.meta.impressionUUID,s=n.data.predictedRevenueCPM.session/1e3;ed.advancedLog("Session revenue updated",{sessionRev:s}),e.forEach(e=>{let n="tude-fb-rps-"+e.name,a=function(e){let t=new RegExp("".concat(e,"=([^;]+)(?:;|$)")).exec(document.cookie);return t?JSON.parse(t[1]):[]}(n);s>e.rps&&!a.includes(e.rps)&&(fbq("trackCustom",e.name,{currency:t,value:e.rps,transactionId:o}),a.push(e.rps),document.cookie="".concat(n,"=").concat(JSON.stringify(a),"; path=/; samesite=lax; max-age=").concat(1800),ed.advancedLog("Facebook (FB) event triggered",{event:e.name,value:e.rps,type:"rps"}),r&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"RPS",rpsValue:i?parseInt(100*e.rps):e.rps})))})}catch(e){ed.error(e)}},!1)},useServerSideAyPredictions:()=>{ep="assertive_predictedRevenueServer"}};if(!/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j))var em=r(69837);var eb=r(34858),ev=/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j)?null:({divMapping:e,forceRender:t=!1,inViewOnly:r=!0,cb:i})=>{document.addEventListener("visibilitychange",()=>{!document.hidden&&((0,em.A)(document.getElementById(e.divId))||!r)&&(i&&i(),(0,eb.A)(e,t,"Triggering Activity Refresh"))})};if(!/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j))var ey=r(71309);function ew(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let eA="timedRefresh";async function eI(...e){(0,h.A)(eA).log(...e)}async function eS(...e){(0,h.A)(eA).advancedLog(...e)}(0,h.A)(eA).setLabel("Timed Refresh","#FFD700");var eE=/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j)?null:class{startTimer(){this.isPaused&&(this.isPaused=!1,eI(`Started timed refresh for ${this.mapping.divId} at ${this.activeViewSeconds}/${this.targetSeconds} seconds`),this.interval=setInterval(()=>{this.activeViewSeconds+=1,eS([this.mapping.divId],`at ${this.activeViewSeconds} seconds`),this.activeViewSeconds===this.targetSeconds&&this.refresh()},1e3))}refresh(){eI("Triggering timed refresh",this.mapping),this.onTimedRefresh(this.mapping),(0,eb.A)(this.mapping),this.reset()}reset(){setTimeout(()=>this.activeViewSeconds=0,500)}pauseTimer(){this.isPaused||(this.isPaused=!0,eI(`Timed refresh paused for ${this.mapping.divId} at ${this.activeViewSeconds} seconds`),clearInterval(this.interval))}constructor(e,{onTimedRefresh:t,onActivityRefresh:r}){var i,n,o;ew(this,"activeViewSeconds",0),ew(this,"interval",void 0),ew(this,"isPaused",!0),ew(this,"mapping",void 0),ew(this,"onActivityRefresh",void 0),ew(this,"onTimedRefresh",void 0),ew(this,"targetSeconds",void 0),this.mapping=e,this.onActivityRefresh=r,this.onTimedRefresh=t,this.targetSeconds=null==(i=e.refresh)?void 0:i.seconds,eI(`Watching for timed refresh of ${this.targetSeconds} seconds for ${e.divId}`),(null==(n=e.refresh)?void 0:n.activityRefresh)&&ev({divMapping:e,forceRender:!1,inViewOnly:!0,cb:()=>{this.reset(),r(e)}}),(null==(o=e.refresh)?void 0:o.activeView)?(0,ey.A)({viewablePercent:50,divId:e.divId,inViewCb:()=>this.startTimer(),outOfViewCb:()=>this.pauseTimer()}):this.startTimer()}};let e_={onTimedRefresh:void 0,onActivityRefresh:void 0};var eT=/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j)?null:(e,t)=>new eE(e,function(e){for(var t=1;tt.name===e)}static usePlugin(e,t){let r={props:{}},{PLUGINS:i}=t;i&&i[e.name]&&"object"==typeof i[e.name]&&(r=i[e.name]),e.setConfig(r.props),e.trigger(eP.y.START),this.plugins.push(e),e.ready=!0,e.trigger("ready"),(0,h.A)("Plugin").log("Plugin "+e.name+" has been loaded",r)}static async onReady(e,t){let r=this.getPluginByName(e);r&&(r.ready?t(r):r.on("ready",()=>t(r)))}}u=[],(l="plugins")in eC?Object.defineProperty(eC,l,{value:u,enumerable:!0,configurable:!0,writable:!0}):eC[l]=u;var eD=/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j)?null:eC,eU=r(7723);if(!/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j))var eR=r(30085);var ej=r(6262),ex=/^(22(251|440)|4(0687|1726|2003|7389)|6(2110|6432|6779|8181|8222|9138)|7(492|6607|8143|8530|9818)|8((1|93)07|7938)|9(5(472|611|968)|6056|9971)|11696|17176|32109|51932)$/.test(r.j)?null:e=>{let t=e.getGlobalInstance();t.que.push(()=>{t.onEvent("auctionEnd",function(e){let t=(0,h.A)("Bid Response");console.group("Bids Received"),console.log("Ad Units",e.adUnitCodes),e.bidsReceived.length>0?console.table(e.bidsReceived,["bidder","cpm","size","timeToRespond"]):t.warn("No bids!"),console.groupEnd()}),t.onEvent("adRenderFailed",function(e){console.error("ad render error",e)})})},eB=r(27286);function eN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eM=class{add(e){if("number"!=typeof e||!Number.isFinite(e))throw Error("Value must be a finite number");this.count++,this.total+=e,this.average=this.total/this.count,this.max=1===this.count?e:Math.max(this.max,e),this.min=!1===this.min?e:Math.min(this.min,e),this.list.push(e)}constructor(){eN(this,"count",void 0),eN(this,"total",void 0),eN(this,"average",void 0),eN(this,"max",void 0),eN(this,"min",void 0),eN(this,"list",void 0),this.count=0,this.total=0,this.average=0,this.max=0,this.min=!1,this.list=[]}};(0,h.A)("speed").setLabel("Speed","#888");var eL=r(36783),ek=r(2853),eq=r(28519),eF=r(85487),eG=r(55364),ez=r.n(eG),eV=r(86964).Promise;function e$(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eH(e){for(var t=1;ti=e),eJ=new eV(e=>n=e),eK=new eV(e=>o=e);class eQ{static init(){window[this.globalName]=window[this.globalName]||{},window[this.globalName].cmd=window[this.globalName].cmd||[],i(window[this.globalName])}static async getInstance(){return eY}static async getConfig(){return eJ}static async getAdUnits(){return eK}}async function eX(){return eQ.getInstance()}async function e0(){return eQ.getAdUnits()}e$(eQ,"globalName","tude");let e1=(e,t,i,{getCurrentDeviceAdUnits:s,getCloneOfUnits:a},d,l=!1,u=!1,f={},A=!1)=>{i=c.A.apply("wrapperConfigOnInit",i,e=>e),n(i),o(s((0,eB.ZI)())),d=c.A.apply("bidModifiersOnInit",d,e=>e);let{AMAZON_BIDDING:I,GLOBAL_NAME:S,PREBID_BIDDER_SETTINGS:E,INIT_GTAG_EARLY:_,INITIAL_USER_STATE:T,DEBUG:O,GPT_SRA:P,GPT_COLLAPSE_EMPTY_DIVS:C,GPT_LAZYLOAD_ENABLED:D,GPT_LAZYLOAD_FETCH_MARGIN:U,GPT_LAZYLOAD_RENDER_MARGIN:R,GPT_LAZYLOAD_MOBILE_SCALING:j,GPT_FORCE_SAFEFRAMES:x,GPT_SET_CENTERING:B,GPT_DISABLE_INITIAL_LOAD:N,PREBID_ALIASES:M,PREBID_CONFIG:L,PREBID_TIMEOUT:k,PREBID_EARLY_USERSYNC:q}=i;T&&v.A.setState(T),eQ.globalName=S,eQ.init(),m.A.isEnabled()||b.A.isEnabled()||(0,eq.x)(eL.default,{userModules:[]}),O&&(0,h.A)().enable(),(0,h.A)().advancedLog(g.dN.SCRIPT_STARTED,i),en.setGlobalName(i.PREBID_GLOBAL),d?en.setBidderSettings(eH({},d(),E)):en.setBidderSettings(eH({},E)),(0,h.A)().isEnabled()&&ex(en);let F=!1,G=null,z=null,V=[],$={collapseEmptyDivs:C,enableSingleRequest:P,setForceSafeFrame:x,setCentering:B,disableInitialLoad:!1!==N,enableLazyLoad:!!D&&{fetchMarginPercent:U,renderMarginPercent:R,mobileScaling:j}};function H(e,t={}){t&&"object"==typeof t&&w.U.setSlotTargeting(e,t);let r=i.GOOGLE_TARGETING_PARAMS||{};w.U.setSlotTargeting(e,r)}function W(e){w.U.push(function(){w.U.init($),e.forEach(e=>{let t=z||c.A.apply("gamAdUnitName",e.adUnit,e=>e),r=c.A.apply("gamSizes",{adUnit:t,divId:e.divId,baseDivId:e.baseDivId,targeting:e.targeting,sizes:e.sizes},({sizes:e})=>e);H(w.U.defineGptSlot({adUnit:t,sizes:r,divId:e.divId}),eW(eH({},e.targeting),{baseDivId:e.baseDivId}))})})}_&&w.U.init($),w.U.addAllEventListeners(),w.U.addEventListener("slotRenderEnded",e=>{let t=e.slot.getSlotElementId(),r=e.isEmpty?"generic.ad.unfilled":"generic.ad.filled";y.B.emit(r,{id:t})}),(0,ek.VC)(e=>{e.events().on("no_bid",e=>{let t=e.slot.elementId;y.B.emit("generic.ad.unfilled",{id:t})}),e.events().on("bid_won",e=>{let t=e.slot.elementId;y.B.emit("generic.ad.filled",{id:t})})});let Z={};(i.URL_TARGETING_PARAMS||[]).forEach(e=>{let t=(0,X.P3)(e);t&&(Z[e]=t)}),Object.keys(Z).length&&ea.A.setTargeting(Z),I&&("aps"===i.AMAZON_SDK?(eo.A.setConfig(i),es.A.getInstance({accountId:String(i.AMAZON_PUB_ID),timeout:i.PREBID_TIMEOUT,deals:i.AMAZON_DEALS,useSafeFrames:i.GPT_FORCE_SAFEFRAMES||i.AMAZON_SAFE_FRAMES||!1,wrapperConfig:i})):eo.A.loadLibrary({pubID:i.AMAZON_PUB_ID,bidTimeout:i.PREBID_TIMEOUT,deals:i.AMAZON_DEALS,useSafeFrames:i.GPT_FORCE_SAFEFRAMES||i.AMAZON_SAFE_FRAMES||!1,wrapperConfig:i,params:i.AMAZON_PARAMS,signals:i.AMAZON_SIGNALS})),M.length>0&&(L.userSync=eH({},L.userSync,{aliasSyncEnabled:!0}));let Y=c.A.apply("prebidGlobalConfig",eH({bidderTimeout:k},L),e=>e),J=en.getGlobalInstance();J.que.push(()=>{let e=s(G);M.length>0&&M.map(e=>{J.aliasBidder(e.bidder,e.alias,e.options)}),J.setConfig(Y),(0,h.A)().log(g.dN.CONFIG_ESTABLISHED,{config:Y,adUnits:e})}),q&&new en(i),w.U.push(()=>{let e=en.getGlobalInstance();e.que.push(()=>{e.setTargetingForGPTAsync(),(0,h.A)().log(g.dN.SERVER_INITIALIZED)})});let K=!1;i.ASSERTIVE_YIELD.predictions&&(i.ASSERTIVE_YIELD.serverSidePredictions&&eg.useServerSideAyPredictions(),i.EVENTS_AY_FB_PURCHASE_ENABLED&&eg.addImpCPMTrackingEvents(i.EVENTS_AY_FB_PURCHASE_MODIFIER||.8),i.EVENTS_AY_FB_RPS_ENABLED&&eg.addRPSTrackingEvents(i.EVENTS_AY_FB_RPS_MAP,i.CURRENCY,i.EVENTS_AY_RPS_GTM_ENABLED,i.EVENTS_AY_RPS_GTM_WHOLE_NUMBERS));let Q=e=>{let t=[];return e.filter(e=>{for(let r=0;r"v2"===i.AD_SERVER;ee()&&(0,ek.E3)();let et=e=>{K=K||{};let t=G||(0,eB.ZI)();(0,h.A)().log(g.dN.DIV_TO_PREBID_AD_UNIT_MAP_SETTING,e),e.forEach(e=>{var r;let i;if(!e.divId)return(0,h.A)().error(g.dN.NO_DIV_ID_GIVEN_TO_MAP,e),!1;e.prebidAdUnit||(0,h.A)().warn(g.dN.NO_PREBID_AD_UNIT_GIVEN_TO_MAP,e);let n=!1;if(a(s(t)).forEach(t=>{if(!(null==e?void 0:e.gamOnly)&&t.code===e.prebidAdUnit){let{amazon:e,mediaTypes:r,code:i,disableAmazonBidding:o,allowLazyDestroy:s,safeframe:a}=t;return n={amazon:e,code:i,allowLazyDestroy:s,disableAmazonBidding:o,safeframe:a,sizes:r.banner?r.banner.sizes:[[1,1]]},!0}}),e.gamSizes?i=Q(e.gamSizes):((0,h.A)().warn(g.dN.NO_GAM_SIZES_GIVEN,e),n&&(i=Q(n.sizes))),!i)return!1;if(e.device){if(Array.isArray(e.device)&&!e.device.includes(t)||"string"==typeof e.device&&e.device!==t)return!1}else if(!n)return!1;K[e.divId]={amazon:null==n?void 0:n.amazon,allowLazyDestroy:null==(r=null==n?void 0:n.allowLazyDestroy)||r,disableAmazonBidding:null==n?void 0:n.disableAmazonBidding,prebidAdUnit:e.prebidAdUnit,gamOnly:(null==e?void 0:e.gamOnly)||!1,gamSizes:i,prebidSizes:e.prebidSizes,safeframe:null==n?void 0:n.safeframe,slot:e.slot,targeting:e.targeting}}),!F&&(F=!0,V.length>0&&V.forEach(function(e){"function"==typeof e&&new eV(t=>{e(),t()})}))},er=e=>{if(ee()&&((0,ek.VC)(t=>{e.forEach(e=>{let{divId:r,adUnit:n,sizes:o,targeting:s,safeframe:a}=e;t.ads().slots.add(n,r,o,s,null!=a?a:i.GPT_FORCE_SAFEFRAMES)}),(0,h.A)().log("slots",t.ads().slots)}),!(null==i?void 0:i.TUDESERVE_GPT_FALLBACK)))return;e.forEach(e=>{let t=w.U.getSlotByDivId(e.divId);t&&H(t,Object.assign({},i.GOOGLE_TARGETING_PARAMS,e.targeting))});let t=w.U.getAllSlotDivIds();if(t.length<1)return W(e.map(e=>{let{divId:t,adUnit:r,sizes:i,targeting:n,baseDivId:o}=e;return{divId:t,adUnit:r,sizes:i,targeting:n,baseDivId:o}})),!0;let r=e.filter(e=>!t.includes(e.divId)).map(e=>{let{divId:t,adUnit:r,sizes:i,targeting:n,baseDivId:o}=e;return{divId:t,adUnit:r,sizes:i,targeting:n,baseDivId:o}});r.length&&W(r)};async function ed(e=[],t=!0){(0,h.A)().log(g.dN.DESTROYING_DIVS,e),t&&e.forEach(e=>{let t=document.getElementById(e);if(t){let e=t.offsetHeight,r=document.createElement("div");r.classList.add("tude-destruct-placeholder"),r.style="min-height:"+e+"px;background:#f3f3f3;border-radius:4px;",r.setAttribute("data-div-id",t.id),t.after(r),t.remove()}}),w.U.push(()=>{let t=w.U.getSlotListByDivIds(e);t.length>0?((0,h.A)().log(g.dN.DESTROYING_GPT_SLOTS,t.map(e=>e.getSlotElementId())),w.U.destroySlots(t)):(0,h.A)().warn(g.dN.DESTROYING_NO_GPT_SLOTS)})}let el=e=>e.filter(e=>!!e.baseDivId&&!!K[e.baseDivId]||((0,h.A)().error('Missing a base prebid mapping for base "'+e.baseDivId+'"'),!1)).map(e=>{let{amazon:t,allowLazyDestroy:r,disableAmazonBidding:i,gamOnly:n,gamSizes:o,prebidAdUnit:s,prebidSizes:a,safeframe:d,targeting:l,timedRefresh:u,slot:c,lazy:h}=K[e.baseDivId],p={};return l&&"object"==typeof l&&(p=eH({},l)),e.targeting&&(p=ez()(p,e.targeting)),eW(eH({},e),{adUnit:s,amazon:t,allowLazyDestroy:r,disableAmazonBidding:i,gamOnly:n,sizes:o,prebidSizes:a||o,safeframe:d,targeting:p,timedRefresh:u,slot:c,lazy:h})}),eu=(e,t)=>{if(!F)return V.push(()=>{eu(e,t)}),!1;if(!e||!K[e])return(0,h.A)().error('Missing a base prebid mapping for base "'+e+'"'),!1;w.U.init($);let{prebidAdUnit:r}=K[e],{targeting:n}=K[e],{CUSTOM_DIVS:o}=i;r=o.some(t=>t.divId===e&&!t.excludePathOverride)&&z?z:c.A.apply("gamAdUnitName",r,e=>e);let s=()=>{(0,h.A)().log("Calling interstitial slot",[e,r]);let i=!1;w.U.push(function(){let o=googletag.enums.OutOfPageFormat.INTERSTITIAL;"string"==typeof t&&(o=t),"BOTTOM_ANCHOR"===t&&(o=googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR),"TOP_ANCHOR"===t&&(o=googletag.enums.OutOfPageFormat.TOP_ANCHOR);let s={baseDivId:e,prebidAdUnit:r,gamEnumOopType:o,targeting:n};if(y.B.emit("baseWrapper.beforeDefineOutOfPageSlot",s),i=w.U.defineOutOfPageSlot(s.prebidAdUnit,s.gamEnumOopType)){H(i,n),i=c.A.apply("interstitialBeforeLoad",i,e=>e);let{INTERSTITIAL_CONFIG:t}=s;if(t){var a,d;i.setConfig({interstitial:{triggers:{navBar:null!=(a=t.navbar)&&a,unhideWindow:null!=(d=t.unhideWindow)&&d}}})}(0,h.A)().log("Interstitial initalized with GPT",[e,r]),(0,h.A)().log("Rendering interstitial",[e,r]),w.U.refresh([i])}else(0,h.A)().error("Device does not support interstitials",[e,r])})},{INTERSTITIAL_DELAY:a}=i;return a?setTimeout(()=>{s()},a):s(),!0};async function ec(e,t){(0,h.A)().log("Render triggered",e,{speed:Date.now()-t.timing.start}),eZ.record("requestToRender",Date.now()-t.timing.start),(0,eU.f)(e),y.B.emit(g.qY.AFTER_REQUEST,{divIds:e})}async function eh(e,t,r){let n=e.map(e=>e.divId),o=new eR.A;if(o.onComplete(()=>{ec(n,o)}),t.length<1)return o.complete(),!0;t.forEach(e=>{o.addBidder(e)});let d=e.filter(e=>!1!==e.adUnit);if(t.includes("prebid")){let t=new en(i);(0,h.A)().log(g.dN.PREBID_BIDS_REQUESTING,e.map(e=>e.divId)),t.requestBidsWithoutSlots({mappings:d,adUnits:a(s(G)),cb:({adUnitCodes:e,bids:t,req:r})=>{null!==t&&void 0!=t&&"object"==typeof t&&((0,h.A)().log(g.dN.PREBID_BIDS_RECEIVED,e,{bids:t,timing:r?r.getTimings():null}),(0,h.A)().isAdvanced()&&Object.keys(t).forEach(e=>{t[e].bids.forEach(e=>{eZ.record("bidder."+e.bidderCode,e.timeToRespond)})})),o.setBidderStatus("prebid",!0)}})}if(t.includes("amazon")){let e;("aps"===i.AMAZON_SDK?es.A.getInstance({accountId:String(i.AMAZON_PUB_ID)}):new eo.A).requestBids({slots:d.map(e=>{let{adUnit:t,amazon:r,divId:i,sizes:n}=e;return r?eH({slotName:z||t,sizes:n,slotID:i},r):{slotID:i,slotName:z||t,sizes:n}})},!0,e=>{!1!==e&&(0,h.A)("Amazon").log(g.dN.AMAZON_BIDS_RECEIVED,n,{bids:e}),o.setBidderStatus("amazon",!0)})}let l=e.filter(e=>!1!==e.adUnit).map(e=>{let{divId:t,baseDivId:r}=e;return{divId:t,baseDivId:r}});y.B.emit(g.qY.BIDS_REQUESTED,{divIds:n,divToBaseMaps:r,filteredMappings:l});let{FAILSAFE_TIMEOUT:u}=i;setTimeout(()=>{o.complete()&&(0,h.A)().log(g.dN.REQUEST_TIMED_OUT,o,n)},u)}let ep=[],ef=(e,t=!1)=>{if((0,h.A)().log("refreshAdsViaDivMappings called",{divToBaseMaps:e,forceRender:t}),!Array.isArray(e))return(0,h.A)().error("Expected an array of div mappings. Received the following.",e),!1;let r=Array.from(new Set((e=e.map(e=>(e.metadata=e.metadata||{},e.metadata.forceRenderFromCall=t,(null==e?void 0:e.divId)&&"string"==typeof e.divId&&(e.divId=e.divId.trim()),(null==e?void 0:e.baseDivId)&&"string"==typeof e.baseDivId&&(e.baseDivId=e.baseDivId.trim()),e))).map(e=>e.divId)));if(r.length!==e.length){let t={before:e};t.after=e=r.map(t=>e.find(e=>e.divId===t)),(0,h.A)().warn("duplicate divIds passed to refreshAdsViaDivMappings(), normalized configs",t)}i.GOOGLE_PAGE_URL&&e.forEach(e=>{e.pageUrl&&w.U.setPageUrl(e.pageUrl)}),i.ADVANCED_TIMED_REFRESH.enabled&&e.forEach(e=>{e.refresh&&!ep.includes(e.divId)&&(ep.push(e.divId),eT(e,i.ADVANCED_TIMED_REFRESH.advancedTimedRefreshConfig))});let{FORCE_RENDER_OVERRIDE:n}=i;if(n&&(t=n),!F)return V.push(()=>{ef(e,t)}),!1;y.B.emit(g.qY.BEFORE_REFRESH,e),e.forEach(r=>{y.B.emit(`baseWrapper.beforeRefresh.${r.baseDivId}`,{mapping:r,remove:()=>{(0,ej.A)(e,e=>e.divId!==r.divId)},forceRender:t})});let o=el(e),d=o.map(e=>e.divId);if(o.length<1)return(0,h.A)().warn("Not refreshing because divs do not have mappings",r),!1;function u(t,r,{AMAZON_BIDDING:n,AMAZON_OUTSTREAM_SUPPORT:o,AMAZON_PUB_ID:d,AMAZON_SDK:l}){if((0,h.A)().log("Starting bid request from function",t,r),t.length<1)return;y.B.emit(g.qY.BEFORE_REQUEST,{divIds:t,mappings:r});let u=[],f=[];r.forEach(e=>{y.B.emit(`baseWrapper.beforeRequest.${e.baseDivId}`,{mapping:e,remove:()=>{u.push(e.divId),f.push(e.divId)}})}),r=r.filter(e=>!u.includes(e.divId)),t=t.filter(e=>!f.includes(e)),u.length=0,f.length=0,er(r),y.B.emit(g.qY.AFTER_CREATE_SLOTS,{divIds:t,mappings:r}),r.forEach(e=>{y.B.emit(`baseWrapper.afterCreateSlots.${e.baseDivId}`,{mapping:e,remove:()=>{u.push(e.divId),f.push(e.divId)}})}),r=r.filter(e=>!u.includes(e.divId)),t=t.filter(e=>!f.includes(e));let m=r.filter(e=>e.gamOnly);m.length>0&&((0,h.A)().log("Requesting GAM only units",m),eh(m,[],e));let b=r.filter(e=>!e.gamOnly),v=b.map(e=>e.divId);if(b.length<1)return y.B.emit(g.qY.BIDS_REQUESTED,{divIds:t,divToBaseMaps:e,filteredMappings:r.filter(e=>!1!==e.adUnit).map(e=>{let{divId:t,baseDivId:r}=e;return{divId:t,baseDivId:r}})}),!0;let w={queued:!1,prebid:!1,timedout:!1,timeoutHandle:void 0,timing:{start:Date.now()}};function A(e){return clearTimeout(w.timeoutHandle),!w.queued&&((w.queued=!0,(0,h.A)().log("Render triggered",e,{speed:Date.now()-w.timing.start}),eZ.record("requestToRender",Date.now()-w.timing.start),ee())?((0,ek.VC)(t=>{t.ads().request(e)}),e):void((0,eU.f)(e),y.B.emit(g.qY.AFTER_REQUEST,{divIds:e})))}if(n&&(w.amazon=!1),b=b.filter(e=>!1!==e.adUnit),ee()&&(0,ek.VC)(e=>{e.ads().slots.getSlots().filter(e=>v.includes(e.elementId)).forEach(e=>{e.clearBids()})}),n&&b.length>0){let e;e="aps"===l?es.A.getInstance({accountId:String(d)}):new eo.A;let t=c.A.apply("amazonAuctionMappings",b,e=>e).filter(e=>!e.disableAmazonBidding).map(e=>{let{slot:t,adUnit:r,amazon:i,divId:n,sizes:d}=e,l={slotID:n,slotName:z||r,sizes:d};if(o){var u,c,h;let{mediaTypes:e={}}=a(s(G||(0,eB.ZI)())).find(e=>{if(e.slot===t||Array.isArray(e.slot)&&e.slot.includes(t))return!0})||{};if((null==e||null==(u=e.video)?void 0:u.context)==="outstream"){let t=(null==e||null==(c=e.video)?void 0:c.playerSize)||[[640,480]];t&&Array.isArray(t)&&2==t.length&&!Array.isArray(t[0])&&(t=[t]),(null==e||null==(h=e.banner)?void 0:h.sizes)||(l=eW(eH({},l),{mediaType:"video",sizes:t}))}}return i&&(l=eH({},l,i)),l}),r=c.A.apply("amazonAuctionSlots",t,e=>e);r.length?e.requestBids({slots:r,auctionState:w},!0,e=>{!1!==e&&(e.length>0?(0,h.A)("Amazon").log(g.dN.AMAZON_BIDS_RECEIVED,v,e):(0,h.A)("Amazon").warn("No Amazon bids received for",v)),!w.timedout&&(ee()&&(0,ek.VC)(e=>{r.forEach(t=>{let r=e.ads().slots.getSlotByElementId(t.slotID),i=r&&(0,eO.c$)({slotID:t.slotID});if(r&&i){var n;let o=(0,eO.iC)(i),s=e.ads().factory().createBid({amount:(0,eO.UN)(o.amznbid)||0,slotId:r.elementId,source:"amazon",mediaType:null!=(n=null==t?void 0:t.mediaType)?n:"banner",sourceData:o,currency:"USD"});r.bids.push(s)}})}),w.amazon=!0,w.prebid&&A(v))}):w.amazon=!0}let I=new en(i);(0,h.A)("Prebid").log(g.dN.PREBID_BIDS_REQUESTING,b.map(e=>e.divId)),I.requestBidsWithoutSlots({mappings:b,adUnits:a(s(G)),auctionState:w,cb:({adUnitCodes:e,bids:t,req:r})=>{null!==t&&void 0!=t&&"object"==typeof t&&((0,h.A)("Prebid").log(g.dN.PREBID_BIDS_RECEIVED,e,{bids:t,timing:r?r.getTimings():null}),(0,h.A)().isAdvanced()&&Object.keys(t).forEach(e=>{t[e].bids.forEach(e=>{eZ.record("bidder."+e.bidderCode,e.timeToRespond)})})),ee()&&(0,ek.VC)(e=>{for(let n of r.units)try{var t,i;let r=null==(t=J.getHighestCpmBids(n.adUnitCode))?void 0:t[0];if(r&&r.adId){let t=e.ads().slots.getSlotByElementId(n.divId);if(t){let n=e.ads().factory().createBid({amount:r.cpm,bidder:r.bidder,slotId:t.elementId,source:"prebid",mediaType:null!=(i=null==r?void 0:r.mediaType)?i:"banner",sourceData:r,currency:r.currency||"USD"});t.bids.push(n)}}}catch(e){(0,h.A)().error(e)}}),w.timedout||(w.prebid=!0,(!n||w.amazon)&&A(v))}});let S=r.filter(e=>!1!==e.adUnit).map(e=>{let{divId:t,baseDivId:r}=e;return{divId:t,baseDivId:r}});y.B.emit(g.qY.BIDS_REQUESTED,{divIds:t,divToBaseMaps:e,filteredMappings:S});let E=400;try{E=(0,p.b)().getConfig("timeoutBuffer")||E}catch(e){}w.timeoutHandle=setTimeout(()=>{if(w.timedout=!0,ee())w.prebid||(0,h.A)().log(g.dN.REQUEST_TIMED_OUT,w,v),A(v);else{if(!1===w.prebid)try{(0,p.b)().setTargetingForGPTAsync(v)}catch(e){}!1!==A(v)&&(0,h.A)().log(g.dN.REQUEST_TIMED_OUT,w,v)}},i.PREBID_TIMEOUT+E+100)}let f=l;("function"!=typeof f||t)&&(f=function(e,t,r,i){i(e,t,r)});let m=()=>{if(i.DIV_CHECK_ON_REQUEST){let e=d.filter(e=>!document.getElementById(e));e.length>0&&((0,h.A)().warn("Requested Div Ids do not exist on page",e),d=d.filter(e=>document.getElementById(e)),o=o.filter(e=>d.includes(e.divId)))}f(d,o,i,u)};return ee()?(0,ek.VC)(()=>m()):w.U.push(()=>m()),!0},em=e=>{eF.A.do("device-type-change",async()=>{let t=Object.keys(g.Xr).find(t=>g.Xr[t]===e);t&&e!==G?((0,h.A)().log(g.dN.SETTING_DEVICE_TYPE,e),G=e):t&&G===e?(0,h.A)().log(g.dN.SETTING_SAME_DEVICE_TYPE,G):(0,h.A)().error(g.dN.DEVICE_TYPE_NOT_SUPPORTED,e,g.Xr)})},eb=e=>{if(!e||"object"!=typeof e)throw Error("Object not set in first arg for setPageTargeting");(0,h.A)().log("setPageTargeting invoked",e),eF.A.do("setPageTargeting",()=>{ea.A.setTargeting(e)},e),(null==f?void 0:f.setVideoPageTargeting)&&f.setVideoPageTargeting(e)},ev=eH({},i.FLAGS),ey=e=>{if("object"!=typeof e)return!1;ev=eH({},ev,e)};function ew(e){var t,n,o;let s=(null==(o=i.PLUGINS)||null==(n=o.FixedAdInjection)||null==(t=n.props)?void 0:t.placements)||[];e.enabled&&(e.viewableShowHide&&s.forEach(t=>{e.viewableShowHide.baseDivsToHide.includes(t.baseDivId)&&(t.viewableShowHide={target:e.viewableShowHide.target})}),r.e(67823).then(r.bind(r,97016)))}let eA=e=>{eD.usePlugin(e,i)},eI=e=>{z=e.endsWith("/")?e.slice(0,-1):e,(0,h.A)().log("Setting Ad Unit Path Override",z)},eS=e=>{e()},eE=!1,e_=setInterval(()=>{if(eE||!i.WAIT_FOR_CMP||"function"==typeof __tcfapi||"function"==typeof __uspapi){i.WAIT_FOR_CMP&&(0,h.A)().log("CMP check passed. Starting wrapper.",{isDev:!1,isUsp:"function"==typeof __uspapi,isGdpr:"function"==typeof __tcfapi,isSkip:eE});let e=window[S]||{};e.cmd=e.cmd||[];let t=[];Array.isArray(e.cmd)&&(t=[...e.cmd]),(0,h.A)().log("Queue to process soon",t),Object.assign(window[S],c.A.apply("tudePublicFunctions",{tude:eW(eH({},f),{cmd:{push:eS},destroyAds:ed,interstitial:eu,matchAdUnitCodeToDivId:ei,refreshAdsViaDivMappings:ef,registerPlugin:eA,setAdInjectionConfig:ew,setAdUnitPath:eI,setBasePrebidMappings:et,setDeviceType:em,setFeatureFlags:ey,setPageTargeting:eb})},({tude:e})=>e)),y.B.emit(g.qY.GLOBAL_SET,window[S]),(0,h.A)().log("window."+S+" established"),eF.A.do("before-process-queue",async()=>{}),t.length>0&&((0,h.A)().log(g.dN.QUEUE_PROCESSING),t.forEach(function(e){"function"==typeof e&&new eV(t=>{e(),t()}).catch(e=>(0,h.A)().error(e))}),(0,h.A)().log(g.dN.QUEUE_PROCESSED)),!1!==u&&(et(u),y.B.emit(g.qY.BASE_DIV_MAPPINGS_SET,K)),A&&"function"==typeof A&&A(ev),e_&&(clearInterval(e_),e_=!1)}},50);setTimeout(function(){e_&&((0,h.A)().log(g.dN.CMP_NEVER_LOADED),eE=!0)},12e3),(0,h.A)("baseWrapper").setLabel("Wrapper has loaded","red").log({buildTime:"2025-07-12T10:45:15.269Z",buildTimeEST:new Date("2025-07-12T10:45:15.269Z").toLocaleString("en-US",{timeZone:"America/New_York",hour:"2-digit",minute:"2-digit",hour12:!1,month:"2-digit",day:"2-digit"}),device:(0,eB.ZI)(),environment:"production",name:e,version:t.toString().replaceAll('"',"")})}},45083:function(e,t,r){var i=r(1882),n=r(87296),o=r(23805),s=r(47473),a=/^\[object .+?Constructor\]$/,d=Object.prototype,l=Function.prototype.toString,u=d.hasOwnProperty,c=RegExp("^"+l.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||n(e))&&(i(e)?c:a).test(s(e))}},45638:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});var i=r(15900),n=r(86964).Promise;async function o(e,t,r,o){return new n((n,s)=>{let a=setTimeout(()=>{r&&r.abort(),s(new i.M(e))},o.timeout);o.fetch(e,t).then(n).catch(s).then(()=>{clearTimeout(a)})})}},46817:function(e,t,r){"use strict";let i,n;r.d(t,{A:function(){return C},w:function(){return D}});var o=r(9337),s=r(22188),a=r(87594),d=r(52093),l=r(10667);function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){for(var t=1;t{var t,r,n,o;let s=null==e?void 0:e[0];(null==s?void 0:s.dynamicRevShare)&&["aditude.io","aditude.com"].includes(null==s||null==(o=s.schain)||null==(n=o.config)||null==(r=n.nodes)||null==(t=r[0])?void 0:t.asi)&&(i=s.dynamicRevShare),null==g||g()}),m={buckets:[{max:5,increment:.5}]},b={buckets:[{max:20,increment:.1}]},v={buckets:[{max:20,increment:.01}]},y={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},w={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};class A{enable(){this.enabled||(this.enabled=!0,this.pbjs.que.push(()=>{this.setTargetingForGPTAsyncOriginal||(this.setTargetingForGPTAsyncOriginal=this.pbjs.setTargetingForGPTAsync),this.getHighestCpmBidsOriginal||(this.getHighestCpmBidsOriginal=this.pbjs.getHighestCpmBids),this.pbjs.getHighestCpmBids=this.getHighestCpmBids.bind(this),this.pbjs.setTargetingForGPTAsync=this.setTargetingForGPTAsync.bind(this),this.originalUseBidCache=this.pbjs.getConfig("useBidCache"),this.pbjs.setConfig({useBidCache:!0})}),this.logger.advancedLog("enabled"))}getMediaTypes(e){var t,r;let i=null!=(r=null==(t=this.pbjs.adUnits)?void 0:t.filter(t=>t.code===e))?r:[],n=!!(null==i?void 0:i.find(e=>{var t;return null==(t=e.mediaTypes)?void 0:t.banner})),o=!!(null==i?void 0:i.find(e=>{var t;return null==(t=e.mediaTypes)?void 0:t.video})),s=o&&!!(null==i?void 0:i.find(e=>{var t,r;return(null==(r=e.mediaTypes)||null==(t=r.video)?void 0:t.context)==="outstream"})),a=o&&!!(null==i?void 0:i.find(e=>{var t,r;return(null==(r=e.mediaTypes)||null==(t=r.video)?void 0:t.context)==="instream"}));return{isBanner:n,isMultiformat:n&&s,isVideo:o,isOutstream:s,isInstream:a}}dynamicRevShareBattle(e,t){var r,n,o;if(!this.isDynamicRevShareEnabled())return e;let s=(0,l.A)("dynamic-rev-share").setLabel("DynamicRevShare","crimson");if(t.originalCurrency!==t.currency||t.currency!==e.currency)throw Error("currency mismatch");if(Math.floor(100*t.originalCpm)=Math.floor(100*b)){let r=t.cpm;return t[this.dynamicRevShareOriginalBidKey]=t.cpm,t.cpm=b,this.updatePriceBucketsForBid(t),s.advancedLog("aditude demand wins",{oldCpm:r,newCpm:b,pubCpm:e.cpm},t),this.sendDynamicRevShareEvent("tude-win",t.adUnitCode,t,y),t}return s.advancedLog("pub demand wins",e),this.sendDynamicRevShareEvent("tude-lose",t.adUnitCode,t,y),e}sendDynamicRevShareEvent(e,t,r,i){var n;let s=d.U.getSlotByDivId(t),a={adServer:"v2"===this.adServer?"tudeserve":"googletag",adUnitPath:(null==s||null==(n=s.getAdUnitPath)?void 0:n.call(s))||t,slotElementId:t,slotId:t},l={source:"dynamic-rev-share:"+e,mediaType:r.mediaType,currency:r.currency||"USD",originalCurrency:r.originalCurrency||"USD",cpm:r.cpm,originalCpm:r.originalCpm,bidder:r.bidder,adapterCode:r.adapterCode||r.bidder,adId:r.adId},u=c({event:e},i);(0,o.yM)("outError",h(c({},a,l),{message:JSON.stringify(u)}))}updatePriceBucketsForBid(e){var t,r,i,n,o,s,a,d,l,u;if(!(null==e?void 0:e.cpm))return;let c=null!=(u=null==(t=(r=this.pbjs).getConfig)?void 0:t.call(r,"mediaTypePriceGranularity"))?u:{},h=(null==(i=(n=this.pbjs).getConfig)?void 0:i.call(n,"currency.granularityMultiplier"))||1,p=null==(o=(s=this.pbjs).getConfig)?void 0:o.call(s,"customPriceBucket"),f=null==(d=(l=this.pbjs).getAllBidRequests)||null==(a=d.call(l).find(t=>t.bidId===e.requestId))?void 0:a.mediaTypes,g=this.getMediaTypeGranularity(e.mediaType,f,c),A=parseFloat(null==e?void 0:e.cpm),I={low:this.getCpmStringValue(A,m,h),med:this.getCpmStringValue(A,b,h),high:this.getCpmStringValue(A,v,h),auto:this.getCpmStringValue(A,w,h),dense:this.getCpmStringValue(A,y,h),custom:this.getCpmStringValue(A,null!=g?g:p,h)};e.pbLg=I.low,e.pbMg=I.med,e.pbHg=I.high,e.pbAg=I.auto,e.pbDg=I.dense,e.pbCg=I.custom}isEmpty(e){return!e||(Array.isArray(e)||"string"==typeof e?!(e.length>0):Object.keys(e).length<=0)}isValidPriceConfig(e){if(this.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}getCpmStringValue(e,t,r){let i="";if(Number.isNaN(e)||!this.isValidPriceConfig(t))return i;let n=t.buckets.reduce((e,t)=>e.max>t.max?e:t,{max:0}),o=0,s=t.buckets.find(t=>{if(e>n.max*r){let e=t.precision;void 0===e&&(e=2),i=(t.max*r).toFixed(e)}else{if(e<=t.max*r&&e>=o*r)return t.min=o,t;o=t.max}});return s&&(i=this.getCpmTarget(e,s,r)),i}getCpmTarget(e,t,r){let i,n,o=void 0!==t.precision?t.precision:2,s=t.increment*r,a=t.min*r,d=Math.floor,l=this.pbjs.getConfig("cpmRoundingFunction");"function"==typeof l&&(d=l);let u=Math.pow(10,o+2),c=(e*u-a*u)/(s*u);try{i=d(c)*s+a}catch(e){n=!0}return(n||"number"!=typeof i)&&(i=Math.floor(c)*s+a),(i=Number(i.toFixed(10))).toFixed(o)}getMediaTypeGranularity(e,t,r){let i="video";if(e&&r){if(e===i){var n,o;let e=null!=(o=null==t||null==(n=t[i])?void 0:n.context)?o:"instream";if(r[`${i}-${e}`])return r[`${i}-${e}`]}return r[e]}}getHighestCpmBids(e,t={}){this.logger.advancedLog("Prebid - Invoking custom pbjs.getHighestCpmBids",{adUnitCode:e,options:t});let r=this.getAdUnitCodes(e),i=[];return r.forEach(e=>{var r;let n=this.getAllUnusedBidsForCode(e,t);n.forEach(t=>{t.adUnitCodeOriginal=t.adUnitCodeOriginal||t.adUnitCode,t.adUnitCode=e}),this.maybeAdjustForDynamicRevShare(e,n);let o=null==(r=this.pbjs.getTargetingManager().getWinningBids(e,n))?void 0:r[0],s={from:void 0};o&&(this.pbjs.getAuctionManager().setStatusForBids(o.adId,f.BID_STATUS.BID_TARGETING_SET),o.isRequesting=e,i.push(o),o.adUnitCode!==o.adUnitCodeOriginal&&(s.from=o.adUnitCodeOriginal)),this.logger.advancedLog(e,h(c({highBid:o},s),{bids:n})),n.forEach(e=>{e.adUnitCodeOriginal&&e.adId!==(null==o?void 0:o.adId)&&(e.adUnitCode=e.adUnitCodeOriginal)})}),i}setTargetingForGPTAsync(e,t,r={}){if(this.logger.advancedLog("Prebid - Invoking custom pbjs.setTargetingForGPTAsync",{adUnit:e,customSlotMatching:t}),!(d.U.getGlobal().pubads&&d.U.getGlobal().pubads().getSlots)){this.logger.error("window.googletag is not defined on the page, deferring"),d.U.push(()=>{this.setTargetingForGPTAsync(e,t)});return}return this.getMajorPrebidVersion()>=9?this.setTargetingForGPTAsyncModern(e,t,r):this.setTargetingForGPTAsyncLegacy(e,t,r)}isDynamicRevShareEnabled(){return!!((null==i?void 0:i.enabled)&&(null==i?void 0:i.fees)&&this.bidModifiers)}maybeAdjustForDynamicRevShare(e,t){var r;if(!this.isDynamicRevShareEnabled())return;let i=null==(r=this.pbjs.getTargetingManager().getWinningBids(e,t))?void 0:r[0];if((null==i?void 0:i.isAditudeDemand)===!1&&(null==i?void 0:i.cpm)){let e=t.filter(e=>e.isAditudeDemand&&e.originalCpm>i.cpm).sort((e,t)=>e.originalCpm>t.originalCpm||e.originalCpm===t.originalCpm&&e.responseTimestamp!0===e.isAditudeDemand);if(null==e?void 0:e.cpm)try{this.dynamicRevShareBattle(i,e)}catch(e){}}}revertDynamicRevShareChanges(e){(null==e?void 0:e[this.dynamicRevShareOriginalBidKey])&&(this.logger.advancedLog("DynamicRevShare resetting: ",{current:e.cpm,resettingTo:e[this.dynamicRevShareOriginalBidKey],bid:e}),e.cpm=e[this.dynamicRevShareOriginalBidKey],this.updatePriceBucketsForBid(e)),delete e[this.dynamicRevShareOriginalBidKey]}setTargetingForGPTAsyncModern(e,t,r={}){let i=this.getAdUnitCodes(e),n=this.pbjs.getAuctionManager().getBidsReceived().filter(T),o="__tmp_disable__";i.forEach(e=>{let i=this.getAllUnusedBidsForCode(e,r);n.forEach(t=>{t.adUnitCodeOriginal=t.adUnitCodeOriginal||t.adUnitCode,i.includes(t)||t.adUnitCode!==e||(t.adUnitCode=o+t.adUnitCode)}),i.forEach(t=>{t.adUnitCodeOriginal=t.adUnitCodeOriginal||t.adUnitCode,t.adUnitCode=e}),this.maybeAdjustForDynamicRevShare(e,i);let s="",a=t=>{var r;return s=null==t||null==(r=t[e])?void 0:r.hb_adid};this.pbjs.onEvent("setTargeting",a),this.pbjs.getTargetingManager().setTargetingForGPT(e,t),this.pbjs.offEvent("setTargeting",a),a=void 0,s||this.logger.advancedLog(e,{hidghBid:void 0,bids:i}),i.filter(e=>e.adUnitCodeOriginal&&e.adId!==s).forEach(e=>e.adUnitCode=e.adUnitCodeOriginal),n.filter(e=>{var t,r;return e.adUnitCodeOriginal&&(null==(r=e.adUnitCode)||null==(t=r.startsWith)?void 0:t.call(r,o))}).forEach(e=>e.adUnitCode=e.adUnitCodeOriginal),n.find(t=>{if(s&&t.adId===s){t.isRequesting=e;let r=t.adUnitCode!==t.adUnitCodeOriginal?{from:t.adUnitCodeOriginal}:{};return this.logger.advancedLog(e,h(c({highBid:t},r),{bids:i})),!0}return!1})})}setTargetingForGPTAsyncLegacy(e,t,r={}){let i={};this.getAdUnitCodes(e).forEach(e=>{var t;let n=this.getAllUnusedBidsForCode(e,r);n.forEach(t=>{t.adUnitCodeOriginal=t.adUnitCodeOriginal||t.adUnitCode,t.adUnitCode=e}),this.maybeAdjustForDynamicRevShare(e,n);let o=this.pbjs.getTargetingManager().getAllTargeting(e,n),s=null==o||null==(t=o[e])?void 0:t.hb_adid;if(s){this.pbjs.getAuctionManager().setStatusForBids(s,f.BID_STATUS.BID_TARGETING_SET);let t=this.pbjs.getAuctionManager().findBidByAdId(s)||{};t.isRequesting=e;let r=t.adUnitCode!==t.adUnitCodeOriginal?{from:t.adUnitCodeOriginal}:{};this.logger.advancedLog(e,h(c({highBid:t},r),{bids:n}))}else this.logger.advancedLog(e,{hidghBid:void 0,bids:n});Object.assign(i,o),n.forEach(e=>{e.adUnitCodeOriginal&&e.adId!==s&&(e.adUnitCode=e.adUnitCodeOriginal)})}),this.pbjs.getTargetingManager().resetPresetTargeting(e,t),this.pbjs.getTargetingManager().setTargetingForGPT(i,t),this.pbjs.getEventsManager().emit(f.EVENTS.SET_TARGETING,i)}getBidFromGamSlot(e){var t;let r=(null==e?void 0:e.getTargetingMap())||{},i=null==r||null==(t=r.hb_adid)?void 0:t[0];return i?this.pbjs.getAuctionManager().findBidByAdId(i):void 0}getAllUnusedBidsForCode(e,t={}){var r;let i,n=null==(r=this.pbjs.adUnits)?void 0:r.filter(t=>t.code===e);if(!n.length)return this.logger.warn("no adUnit found for code:",e),[];let o=new Set,s=new Set;n.forEach(e=>{var t,r;Object.keys(e.mediaTypes||{}).forEach(e=>{o.add(e)}),((null==e||null==(r=e.mediaTypes)||null==(t=r.banner)?void 0:t.sizes)||[]).filter(e=>(null==e?void 0:e[0])*(null==e?void 0:e[1])>=2500).map(e=>e.join("x")).forEach(e=>s.add(e))}),o.size||o.add("banner");let a={},d={},l=this.getAllRelatedCodes(e),u=e=>{if(null==t?void 0:t.bidFilter)try{return t.bidFilter(e)}catch(e){this.logger.error(e)}return!0};return this.pbjs.getAuctionManager().getBidsReceived().filter(t=>{if(!T(t)||!u(t)||("string"==typeof t.isRequesting&&(void 0===d[t.isRequesting]&&(d[t.isRequesting]=!!document.getElementById(t.isRequesting)),!1===d[t.isRequesting]&&(t.isRequesting=!1)),this.disableBidMovingForBidders.includes(t.bidderCode)&&t.adUnitCode!==e))return!1;let r=t.mediaType||"banner";if(t.isRequesting&&t.isRequesting!==e)return!1;if(this.revertDynamicRevShareChanges(t),l.has(t.adUnitCode)&&o.has(r))return!0;try{if(o.has("banner")&&"banner"===r&&s.has(t.size)&&(a[t.bidderCode]=a[t.bidderCode]||n.filter(e=>{var t;return(null==e||null==(t=e.mediaTypes)?void 0:t.banner)&&1===Object.keys((null==e?void 0:e.mediaTypes)||{}).length}).filter(e=>{var r,i;return null==(i=e.bids)||null==(r=i.find)?void 0:r.call(i,e=>e.bidder===t.bidderCode)}).map(e=>e.bids||[]).reduce((e,t)=>e.concat(t),[]).map(e=>O(null==e?void 0:e.params)),a[t.bidderCode].length)){let e=(i=i||this.pbjs.getAllBidRequests()).find(e=>e.bidId===t.requestId);if(e){let r=O(null==e?void 0:e.params);if(a[t.bidderCode].includes(r))return!0}}}catch(e){}return!1}).sort((e,t)=>e.cpm>t.cpm||e.cpm===t.cpm&&e.responseTimestampt.add(e)):t.add(e);let i=this.pbjs.adUnits.filter(e=>t.has(e.code));return i.length?(i.forEach(e=>{this.getSlotsFromAdUnit(e).forEach(e=>r.add(e))}),this.pbjs.adUnits.forEach(e=>{this.getSlotsFromAdUnit(e).find(e=>r.has(e))&&t.add(e.code)})):this.logger.warn(`no unit found for ${JSON.stringify(e)}`),t}getAdUnitCodes(e){var t;return"string"==typeof e?[e].filter(Boolean).filter(I):Array.isArray(e)?e.filter(Boolean).filter(I):(null==(t=this.pbjs.getAuctionManager())?void 0:t.getAdUnitCodes())||[]}getMajorPrebidVersion(){if(this.majorPrebidVersion)return this.majorPrebidVersion;try{var e,t;let r=Number(null==(t=String(this.pbjs.version).split("."))||null==(e=t[0])?void 0:e.replace(/[^0-9]/g,""));if(!Number.isNaN(r)&&r>0)return this.majorPrebidVersion=r,r}catch(e){}return 0}constructor({BID_MODIFIERS:e={},PREBID_CACHE_DISABLE_MOVING_BIDDERS:t=[],AD_SERVER:r}){u(this,"enabled",!1),u(this,"logger",(0,l.A)("bid-caching").setLabel("BidCaching")),u(this,"originalUseBidCache",void 0),u(this,"setTargetingForGPTAsyncOriginal",void 0),u(this,"getHighestCpmBidsOriginal",void 0),u(this,"disableBidMovingForBidders",[]),u(this,"bidModifiers",void 0),u(this,"dynamicRevShareOriginalBidKey",Symbol.for("_drsOriginalCpm")),u(this,"majorPrebidVersion",void 0),u(this,"pbjs",void 0),u(this,"adServer",void 0),this.pbjs=(0,s.b)(),this.bidModifiers=e,this.disableBidMovingForBidders=t||[],this.adServer=r,this.pbjs.que.push(()=>{if(!["getAllBidRequests","getAllBidResponses","getAuctionManager","getEventsManager","getTargetingManager"].every(e=>this.pbjs[e]))return void this.logger.warn("prebid not built with aditude custom module, disabling feature");this.enable(),this.pbjs.getConfig("ttlBuffer",e=>{p="number"==typeof e.ttlBuffer?e.ttlBuffer:p}),this.pbjs.getEventsManager().on(f.EVENTS.BID_WON,e=>{e.isRequesting&&(e.isRequesting=!1)}),d.U.addEventListener("slotRenderEnded",e=>{if(!this.enabled)return;let t=e.slot.getSlotElementId(),r=this.getBidFromGamSlot(e.slot)||{};if(r.isRequesting===t)if(e.isEmpty)r.isRequesting=!1;else{let t=window.console.warn;window.console.warn=()=>{};let i=e.slot.getHtml();window.console.warn=t,i&&(i.match(/(ucTag\.renderAd|pbjs\.renderAd|prebid-universal-creative)/i)||(r.isRequesting=!1))}}),d.U.addEventListener("slotOnload",e=>{if(!this.enabled)return;let t=e.slot.getSlotElementId(),r=this.getBidFromGamSlot(e.slot)||{};r.isRequesting===t&&setTimeout(()=>{(null==r?void 0:r.isRequesting)&&(r.isRequesting=!1)},500)})})}}function I(e,t,r){return r.indexOf(e)===t}function S(e){var t;return e.responseTimestamp+(e.ttl-((t="ttlBuffer",Object.prototype.hasOwnProperty.call(e,t))?e.ttlBuffer:p))*1e3>new Date().getTime()}function E(e){return e&&(e.status&&![f.BID_STATUS.RENDERED].includes(e.status)||!e.status)}function _(e){return!e.getStatusCode||e.getStatusCode()===f.STATUS.GOOD}function T(e){return[_,S,E].every(t=>t(e))}function O(e){return JSON.stringify(e,P)}function P(e,t){return t instanceof Object&&!(t instanceof Array)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t}function C(e){n=n||new A(e)}function D(){return n}},47473:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},48655:function(e,t,r){var i=r(26025);e.exports=function(e){return i(this.__data__,e)>-1}},49234:function(e,t,r){"use strict";r.d(t,{E1:function(){return a},OQ:function(){return u},Pu:function(){return p},TK:function(){return l},b0:function(){return o},ds:function(){return c},hT:function(){return d},iA:function(){return h},xM:function(){return n},xr:function(){return i},zq:function(){return s}});let i=(()=>{let e=!1,t=!1,r="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),n="function"==typeof globalThis.AbortController,o="function"==typeof globalThis.ReadableStream,s="function"==typeof globalThis.FormData,a=["get","post","put","patch","head","delete"],d={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*"},l=0x7fffffff,u=new TextEncoder().encode("------WebKitFormBoundaryaxpyiPgbbPti10Rw").length,c=Symbol("stop"),h={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,prefixUrl:!0,retry:!0,timeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0},p={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,dispatcher:!0,duplex:!0,priority:!0}},49653:function(e,t,r){var i=r(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},51420:function(e,t,r){var i=r(80079);e.exports=function(){this.__data__=new i,this.size=0}},51804:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{y:function(){return n}});class n{static setStore(e){e.onChange(()=>{this.onChangeListeners.forEach(e=>{e()})}),this.store=e}static isEnabled(){return this.enabled}static onChange(e){this.onChangeListeners.push(e)}static enableUserId(){this.enabled=!0}static disableUserId(){this.enabled=!1}}i(n,"enabled",!1),i(n,"onChangeListeners",[]),i(n,"store",void 0),t.A=n},51811:function(e){var t=Date.now;e.exports=function(e){var r=0,i=0;return function(){var n=t(),o=16-(n-i);if(i=n,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},51873:function(e,t,r){e.exports=r(9325).Symbol},53012:function(e,t,r){"use strict";r.r(t),r.d(t,{HtlInjector:function(){return O}});var i=r(44558),n=r(74547),o=r(34858),s=r(67259),a=r(9337),d=r(18134),l=r(76065),u=r(54240),c=r(22188),h=r(68854),p=r(87594),f=r(18238),g=r(85487),m=r(52093),b=r(25314),v=r(83349),y=r(32744),w=r(21151),A=r(97866),I=r(86964).Promise;function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(){return new I(e=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>e(!0)):e(!0)})}function _(e,t={}){return new I((r,i)=>{let n=document.createElement("script");n.src=e,Object.entries(t).forEach(([e,t])=>{n.setAttribute(e,t)}),n.onload=r,n.onerror=i,document.head.appendChild(n)})}function T(e,t){let r=t.trim().replace(/^\/|\/$/g,""),i=r.startsWith(e)?r:`${e}/${r}`;return`/${i}`}class O extends u.A{getLoggerColor(){return"#FA7246"}getInitialState(){return{}}cleanUpQueue(e){this.log("Processing queue"),e.forEach(e=>{new I(t=>{e(),t()}).catch(e=>{this.error("Error processing queue",e)})})}hasTargetClass(e){if(!e||e.classList&&e.classList.contains("tude-ads"))return!1;if(e.classList&&this.selectors.some(({selector:t})=>{try{let r=t.startsWith(".")?t.slice(1):t;return e.classList.contains(r)}catch(e){return this.error(`Invalid selector: ${t}`),!1}}))return!0;for(let t of Array.from(e.children))if(this.hasTargetClass(t))return!0;return!1}handleNewNode(e){e instanceof Element&&this.hasTargetClass(e)&&(this.log("New element with target class added:",e),this.addAditudeAds())}startObserver(){new MutationObserver(async e=>{await new I(e=>setTimeout(()=>e(!0),0)),e.forEach(e=>{if("attributes"===e.type&&"class"===e.attributeName){let t=e.target;t instanceof Element&&this.hasTargetClass(t)&&(this.log("Element with target class added:",t),this.addAditudeAds())}"childList"===e.type&&e.addedNodes.forEach(e=>{p.B.emit("htlbid.mutation.childList",e),this.handleNewNode(e)})})}).observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["class"]})}exposeMethod(e,t){if(this.methodsToExpose.has(e))return void this.error(`Method ${e} already exists on the HtlWrapperInstance`);this.methodsToExpose.set(e,t)}assignMethodsToGlobal(){this.methodsToExpose.forEach((e,t)=>{Object.assign(window[this.htlGlobalName],{[t]:e})})}createWrapperInstance(){this.log("creating wrapper instance",this.htlGlobalName);let e=globalThis[this.htlGlobalName]=globalThis[this.htlGlobalName]||{};e.cmd=e.cmd||[],e.clientVersion="3.1.2",e.state={},e.state.targeting={},e.enableServices=()=>{};let t=Array.isArray(e.cmd)?[...e.cmd]:[];e.cmd.push=e=>e(),this.assignMethodsToGlobal(),this.cleanUpQueue(t)}setAdUnitPathOverride(e){window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.setAdUnitPath(e)})}handleAdUnitPathOverride(e,t){let r=null==e?void 0:e.getAttribute("data-unit");r&&(this.adUnitPathOverrideMap[t]=r,this.log("adunit path override ",this.adUnitPathOverrideMap))}async getGamId(){var e;let t=null==(e=(await i.rI.getAdUnits()).find(e=>e.code))?void 0:e.code;this.gamId=function(e){let t=e.match(/^\/([\d,]+)/);return t?t[1]:""}(t)}addAditudeAds(){this.selectors.forEach(e=>{var t;let r=e.selector,i=e.forceRender,n=e.sticky,o=e.interstitial,s=e.oop,a=null!=(t=e.inPlace)&&t;if(o){window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.interstitial(r)});return}let d=document.querySelectorAll(r);d&&0!==d.length&&(this.log(d),d.forEach(e=>{if(e.classList.contains("tude-ads"))return void this.log("node is already a tude-ads node",e);if(function(e,t){if(!(e instanceof Element))throw Error("Invalid parent element provided.");return e.querySelectorAll(`:scope > .${t}`).length}(e,`${this.htlGlobalNamePrefix}-ad`)>0)return void this.log("node has htlad children",e);e.classList.add("tude-ads");let t=a&&e.id?e.id:r.replace(".htlad-","");this.divCountMap[t]=this.divCountMap[t]||0;let o=this.divCountMap[t];this.divCountMap[t]++,o>0&&!(a&&e.id)&&(t+=`-${o}`);let d=a?e:document.createElement("div");if(d.id=t,d.classList.add(`${this.htlGlobalNamePrefix}-ad`),this.handleAdUnitPathOverride(e,t),n)return void(0,h.Ay)(y.default,{baseDivId:r,closeButton:n.closable,autoTrigger:!0,customCss:{zIndex:0x5f5e0ff},divId:t});if(s){e.appendChild(d),window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.interstitial(r,t)});return}this.baseDivIdMap.push({baseDivId:r,divId:t,forceRender:i});let l=e.getAttribute("data-targeting"),u=l&&function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(l)?`targeting: ${l}`:"",c=document.createElement("script");c.type="text/javascript",c.text=` window.tude = window.tude || { cmd: [] }; tude.cmd.push(function() { tude.refreshAdsViaDivMappings([ { divId: '${t}', baseDivId: '${r}', ${u} } ], ${i}); }); `,d.appendChild(c),a||e.appendChild(d)}))})}setupEventListeners(){p.B.on("gpt.beforeAdServerRequest",({slot:e,divId:t})=>{this.divRefreshCounter[t]=this.divRefreshCounter[t]||0,e.setTargeting("htl_refresh",String(this.divRefreshCounter[t])),e.setTargeting("cw_div_refresh",String(this.divRefreshCounter[t])),this.divRefreshCounter[t]++}),p.B.on("baseWrapper.beforeRefresh.#",({mapping:e,remove:t,forceRender:r})=>{if(!r)return;let{divId:i}=e,n=document.getElementById(i);n&&!function(e,t=5){let r=0;for(;e&&r{let r=t.divId;e[r]=t.adUnit;let i=this.adUnitPathOverrideMap[r]?T(this.gamId,this.adUnitPathOverrideMap[r]):t.adUnit;t.adUnit=i}),p.B.on("baseWrapper.beforeDefineOutOfPageSlot",e=>{let t=e.gamEnumOopType,r=this.adUnitPathOverrideMap[t]?T(this.gamId,this.adUnitPathOverrideMap[t]):e.prebidAdUnit;e.prebidAdUnit=r}),p.B.on("baseWrapper.afterCreateSlots.#",({mapping:t})=>{let r=t.divId;t.adUnit=e[r]}),p.B.on(n.qY.BASE_DIV_MAPPINGS_SET,()=>{p.B.emit("htlbid.newPage")})}async start(){let e;f.A.sub("tudePublicFunctions",({tude:e})=>(e.customJs=this.customJs,{tude:e})),this.exposeMethod("addBidsToPrebidGroup",(e,...t)=>{this.log(`addBidsToPrebidGroup - method called with Group Name: ${e}, Bids:`,t),m.U.push(()=>{let r=(0,c.b)();r.que.push(()=>{r.onEvent("beforeRequestBids",r=>{Array.isArray(r)&&r.forEach(r=>{var i;if(!(null==r?void 0:r.code)||!Array.isArray(r.bids))return;let n=null==(i=this.slots)?void 0:i.find(e=>r.code.endsWith(e.name));if(!n||!Array.isArray(n.prebidGroups))return;let o=function(e){let t=window.innerWidth||document.documentElement.clientWidth;return e.filter(e=>e.viewport[0]<=t).reduce((e,t)=>!e||t.viewport[0]>e.viewport[0]?t:e,null)}(n.prebidGroups);(null==o?void 0:o.groups.includes(e))&&t.forEach(t=>{if(!(null==t?void 0:t.bidder))return;let i=r.bids.find(e=>e.bidder===t.bidder);if(i){let e=Object.keys(i.params),r=Object.keys(t.params),n=e.filter(e=>!r.includes(e));n.length>0&&(this.warn(`addBidsToPrebidGroup - Keys not found in newBid.params for bidder "${t.bidder}". Missing keys are:`,n),this.warn("addBidsToPrebidGroup - Present keys in newBid.params:",r))}else this.warn(`addBidsToPrebidGroup - userIds not set on the new bid for bidder "${t.bidder}" this was added to prebid group "${e}". UserIds, if set, might be incompabtible with bidder.`);let n=i?{userId:null==i?void 0:i.userId,userIdAsEids:null==i?void 0:i.userIdAsEids}:{};r.bids.push(function(e){for(var t=1;t{window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.setPageTargeting({[e]:t})})}),this.exposeMethod("clearTargeting",e=>{this.log(`htl bid clearTargeting called, ${e}`),m.U.clearTargeting(e)}),this.exposeMethod("forceRefresh",e=>{if(this.log("htlbid forceRefresh called"),!e){window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.refreshAllAds()});return}"string"==typeof e&&(e=[e]);let t=[];e.forEach(e=>{let r=this.baseDivIdMap.find(t=>t.divId===e);t.push(r)}),(0,o.A)(t)}),this.exposeMethod("newPage",()=>(this.log("htlbid newpage called"),p.B.emit("htlbid.newPage"),I.resolve())),this.exposeMethod("reloadSlot",e=>{this.log("htlbid reloadSlot called");let t=this.baseDivIdMap.find(t=>t.baseDivId===this.normalizeHtlSlotIdentifier(e));return t?(0,o.A)([t],null==t?void 0:t.forceRender):this.warn(`No baseDivId found in method "reloadSlot" using slotIdentifier = ${e}`),I.resolve()}),this.exposeMethod("reloadAllSlots",()=>{this.log("htlbid reloadAllSlots called"),window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.refreshAllAds()})}),this.exposeMethod("refresh",()=>{this.log("htlbid refresh called"),window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.refreshAllAds()})}),this.exposeMethod("unloadSlot",e=>{this.warn("htlbid unloadSlot called",e)}),this.exposeMethod("unloadAllSlots",()=>{this.warn("htlbid unloadAllSlots called")}),this.exposeMethod("unloadSlotsInside",()=>{this.warn("htlbid unloadSlotsInside called")}),this.exposeMethod("reloadSlotsInside",e=>{this.log("htlbid reloadSlotsInside called",e),window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.refreshAllAds()})}),this.exposeMethod("setFirstPartyData",e=>{this.log("htlbid setFirstPartyData called"),window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.setFirstPartyData(e)})}),this.exposeMethod("setUserData",(e,t)=>{this.log("htlbid setUserData called",{data:e,userIds:t}),window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.setIdProfile({p:e.p,e:e.hem256})})}),this.exposeMethod("defineSlot",(e,t,r)=>{this.log("htlbid defineSlot called"),m.U.push(()=>{m.U.defineGptSlot({adUnit:e,sizes:t,divId:r})})}),this.exposeMethod("pubads",()=>(this.log("htlbid pubads called"),{setTargeting:(e,t)=>{window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.setPageTargeting({[e]:t})})},setPublisherProvidedId:e=>{window.tude=window.tude||{cmd:[]},window.tude.cmd.push(()=>{window.tude.setIdProfile({ppid:e})})},addEventListener:(e,t)=>{this.log("htlbid pubads addEventListener called",e),m.U.addEventListener(e,t)},disableInitialLoad:()=>{this.log("htlbid pubads disableInitialLoad called")},clearTargeting:e=>{this.log(`htl bid pubads clearTargeting called, ${e}`),m.U.clearTargeting(e)}})),g.A.before("init","start-htl",async()=>{await t});let t=new I(t=>{e=t});!0===this.autoStartLayouts&&e(),this.exposeMethod("layout",()=>{this.log("htlbid layout called"),e()}),this.setupEventListeners(),this.createWrapperInstance(),this.startObserver(),this.addAditudeAds(),(0,h.Ay)(l.default,{}),await this.getGamId()}constructor(e){super(e,"HtlInjector"),S(this,"selectors",void 0),S(this,"slots",void 0),S(this,"autoStartLayouts",!1),S(this,"htlGlobalName","htlbid"),S(this,"htlGlobalNamePrefix","htl"),S(this,"baseDivIdMap",[]),S(this,"methodsToExpose",new Map),S(this,"divCountMap",{}),S(this,"adUnitPathOverrideMap",{}),S(this,"gamId",void 0),S(this,"divRefreshCounter",{}),S(this,"baseDivRefreshCounter",{}),S(this,"firstPageViewFired",!1),S(this,"pageviewUrl",void 0),S(this,"firePixelRequest",e=>{if(!e)return void this.error("HTLBID.firePixelRequest - url is invalid.");this.log(`HTLBID.firePixelRequest - Firing pixel request for ${e}`),window.fetch(e,{cache:"no-store",method:"GET",mode:"no-cors"}).catch(e=>{this.error("loadPageviewPixel - Error:",e)})}),S(this,"addPixelImage",e=>{if(!e)return void this.error("HTLBID.addPixelImage - url is invalid.");let t=()=>{setTimeout(()=>{this.log(`HTLBID.addPixelImage - Adding pixel image for ${e}`);let t=document.createElement("img");t.width=0,t.height=0,t.style.cssText="height: 0; width: 0; border: 0; display: none;",t.src=e,t.alt=".",document.body.appendChild(t)},1e3)};"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t)}),S(this,"customJs",e=>{let t={pageview:"htlbid.newPage"};this.log("customJs called"),e({main:{cmd:[],slots:[],onEvent:(e,r)=>{p.B.on(t[e],r)}},events:{on:()=>{}},domContentLoaded:E,loadScript:_,useAditudePrebidFloors:e=>{try{if(e.values&&"object"==typeof e.values&&Object.keys(e.values).length>0){var t;(0,h.Ay)(w.default,{values:e.values,default:null!=(t=e.default)?t:0,forceFloors:!0})}else this.warn("No/Incorrect values provided for aditude prebid floors",e)}catch(e){this.error("Error using aditude prebid floors",e)}}})}),S(this,"normalizeHtlSlotIdentifier",e=>e.startsWith(".")?e:`.${this.htlGlobalNamePrefix}ad-${e}`),this.autoStartLayouts=e.autoStartLayouts||!1,this.selectors=e.selectors,this.slots=e.slots||[],this.htlGlobalNamePrefix=e.htlbidGlobal||this.htlGlobalNamePrefix,this.htlGlobalName=this.htlGlobalNamePrefix+"bid",this.pageviewUrl=e.pageviewUrl,"true"===(0,s.P3)("ad_dev")&&(0,h.Ay)(b.default,{}),(0,h.Ay)(v.default,{}),(0,h.Ay)(A.default,{}),p.B.on("htlbid.newPage",()=>{this.firstPageViewFired?(this.firePixelRequest(this.pageviewUrl),(0,a.gi)()):(this.addPixelImage(this.pageviewUrl),this.firstPageViewFired=!0)})}}S(O,"componentName","htl-injector"),(0,d.h)(O),t.default=O},53661:function(e,t,r){var i=r(63040),n=r(17670),o=r(90289),s=r(4509),a=r(72949);function d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{let t=(t,r)=>i.Ky.create(t,(0,o.sT)(e,r));for(let r of n.E1)t[r]=(t,n)=>i.Ky.create(t,(0,o.sT)(e,n,{method:r}));return t.create=e=>s((0,o.sT)(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),s((0,o.sT)(e,t))),t.stop=n.ds,t};t.Ay=s()},56449:function(e){e.exports=Array.isArray},56757:function(e,t,r){var i=r(91033),n=Math.max;e.exports=function(e,t,r){return t=n(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=n(o.length-t,0),d=Array(a);++s{for(let t of e)if((!(0,i.G)(t)||Array.isArray(t))&&void 0!==t)throw TypeError("The `options` argument must be an object");return d({},...e)},o=(e={},t={})=>{let r=new globalThis.Headers(e),i=t instanceof globalThis.Headers;for(let[e,n]of new globalThis.Headers(t).entries())i&&"undefined"===n||void 0===n?r.delete(e):r.set(e,n);return r};function s(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:d(e[r]??[],t[r]??[])}let a=(e={},t={})=>({beforeRequest:s(e,t,"beforeRequest"),beforeRetry:s(e,t,"beforeRetry"),afterResponse:s(e,t,"afterResponse"),beforeError:s(e,t,"beforeError")}),d=(...e)=>{let t={},r={},n={};for(let s of e)if(Array.isArray(s))Array.isArray(t)||(t=[]),t=[...t,...s];else if((0,i.G)(s)){for(let[e,r]of Object.entries(s))(0,i.G)(r)&&e in t&&(r=d(t[e],r)),t={...t,[e]:r};(0,i.G)(s.hooks)&&(n=a(n,s.hooks),t.hooks=n),(0,i.G)(s.headers)&&(r=o(r,s.headers),t.headers=r)}return t}},59350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},63040:function(e,t,r){var i=r(21549),n=r(80079),o=r(68223);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||n),string:new i}}},63605:function(e){e.exports=function(e){return this.__data__.get(e)}},63702:function(e){e.exports=function(){this.__data__=[],this.size=0}},63862:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}},64894:function(e,t,r){var i=r(1882),n=r(30294);e.exports=function(e){return null!=e&&n(e.length)&&!i(e)}},66721:function(e,t,r){var i=r(81042),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},68223:function(e,t,r){e.exports=r(56110)(r(9325),"Map")},69302:function(e,t,r){var i=r(83488),n=r(56757),o=r(32865);e.exports=function(e,t){return o(n(e,t,i),e+"")}},69837:function(e,t){"use strict";t.A=function(e,t=50){if(!e)return!1;let{top:r,bottom:i,left:n,right:o}=e.getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight,a=window.innerWidth||document.documentElement.clientWidth,d=(o-n)*(i-r);return 0===d?r0&&n0:Math.max(0,Math.min(i,s)-Math.max(r,0))*Math.max(0,Math.min(o,a)-Math.max(n,0))/d*100>=t}},69884:function(e,t,r){var i=r(21791),n=r(37241);e.exports=function(e){return i(e,n(e))}},70041:function(e,t,r){"use strict";r.d(t,{AY:function(){return s},mD:function(){return o}});var i=r(49234);let n=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[r,n]of e)t+=i.OQ,t+=new TextEncoder().encode(`Content-Disposition: form-data; name="${r}"`).length,t+="string"==typeof n?new TextEncoder().encode(n).length:n.size;return t}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength;if("string"==typeof e)return new TextEncoder().encode(e).length;if(e instanceof URLSearchParams)return new TextEncoder().encode(e.toString()).length;if("byteLength"in e)return e.byteLength;if("object"==typeof e&&null!==e)try{let t=JSON.stringify(e);return new TextEncoder().encode(t).length}catch{}return 0},o=(e,t)=>{let r=Number(e.headers.get("content-length"))||0,i=0;return 204===e.status?(t&&t({percent:1,totalBytes:r,transferredBytes:i},new Uint8Array),new Response(null,{status:e.status,statusText:e.statusText,headers:e.headers})):new Response(new ReadableStream({async start(n){let o=e.body.getReader();async function s(){let{done:e,value:a}=await o.read();if(e)return void n.close();t&&(i+=a.byteLength,t({percent:0===r?0:i/r,transferredBytes:i,totalBytes:r},a)),n.enqueue(a),await s()}t&&t({percent:0,transferredBytes:0,totalBytes:r},new Uint8Array),await s()}}),{status:e.status,statusText:e.statusText,headers:e.headers})},s=(e,t)=>{let r=n(e.body),i=0;return new Request(e,{duplex:"half",body:new ReadableStream({async start(n){let o=e.body instanceof ReadableStream?e.body.getReader():new Response("").body.getReader();async function s(){let{done:e,value:a}=await o.read();if(e){t&&t({percent:1,transferredBytes:i,totalBytes:Math.max(r,i)},new Uint8Array),n.close();return}i+=a.byteLength;let d=0===r?0:i/r;(r{window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(()=>{window.googletag.pubads().addEventListener("slotVisibilityChanged",n=>{n.slot.getSlotElementId()===t&&(n.inViewPercentage>=e?r&&r():i&&i())})})}},71961:function(e,t,r){var i=r(49653);e.exports=function(e,t){var r=t?i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},72179:function(e,t,r){"use strict";r.d(t,{DK:function(){return u},JJ:function(){return h},Q2:function(){return d},VM:function(){return c},Wp:function(){return s}});var i=r(10667),n=r(18859);let o="https://geo-location.prebid.cloud/v1/geo",s=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB","GF","GP","MQ","ME","YT","RE","MF","GI","AX","PM","GL","BL","SX","AW","CW","WF","PF","NC","TF","AI","BM","IO","VG","KY","FK","MS","PN","SH","GS","TC","AD","LI","MC","SM","VA","JE","GG","GI","CH"],a=/^(2(1582|4728|5312|5839|9479|9676)|3(96[38]9|0861|1351|785)|4(0554|273|5999|8618)|8(0647|2432|2927|3730|6808|7134)|9(0909|5127|541)|10783|19363|55030|59402|61269|68660|73878)$/.test(r.j)?["AD","AE","AF","AL","AM","AO","AT","AX","AZ","BA","BE","BF","BG","BH","BI","BJ","BV","BW","BY","CD","CF","CG","CH","CI","CM","CV","CY","CZ","DE","DJ","DK","DZ","EE","EG","EH","ER","ES","ET","FI","FO","FR","GA","GB","GE","GG","GH","GI","GL","GM","GN","GQ","GR","GW","HR","HU","IE","IL","IM","IQ","IR","IS","IT","JE","JO","KE","KM","KW","KZ","LB","LI","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MK","ML","MR","MT","MU","MW","MZ","NA","NE","NG","NL","NO","OM","PL","PS","PT","QA","RE","RO","RS","RU","RW","SA","SC","SD","SE","SH","SI","SK","SL","SM","SN","SO","SS","ST","SY","SZ","TD","TG","TN","TR","TZ","UA","UG","VA","YE","YT","ZA","ZM","ZW"]:null,d=["AR","BO","BR","CL","CO","CR","CU","DO","EC","GT","HN","MX","NI","PA","PE","PY","SV","UY","VE"],l=[...s,"US","CA"];async function u(){let e;try{e=await (0,n.V)(o)}catch(e){(0,i.A)().error(e)}return l.includes(e.country)}async function c(){try{let e=await h();return a.includes(e)}catch(e){(0,i.A)().error(e)}return!1}async function h(){let e;try{e=await (0,n.V)(o)}catch(e){(0,i.A)().error(e)}return(0,i.A)().log("Country Found:",null==e?void 0:e.country),null==e?void 0:e.country}},72428:function(e,t,r){var i=r(27534),n=r(40346),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable;e.exports=i(function(){return arguments}())?i:function(e){return n(e)&&s.call(e,"callee")&&!a.call(e,"callee")}},72552:function(e,t,r){var i=r(51873),n=r(659),o=r(59350),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?n(e):o(e)}},72903:function(e,t,r){var i=r(23805),n=r(55527),o=r(90181),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return o(e);var t=n(e),r=[];for(var a in e)"constructor"==a&&(t||!s.call(e,a))||r.push(a);return r}},72949:function(e,t,r){var i=r(12651);e.exports=function(e,t){var r=i(this,e),n=r.size;return r.set(e,t),this.size+=+(r.size!=n),this}},74218:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},74335:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},75208:function(e,t,r){"use strict";var i=r(74547),n=r(33386),o=r(85222),s=r(10667),a=r(86964).Promise;function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let l=(0,s.A)("Amazon"),u={};window._aps=window._aps||new Map;let c={};class h{get accountId(){return this._accountId}get aps(){return this._aps}static getInstance({accountId:e="",timeout:t,deals:r,videoAdServer:i,useSafeFrames:n,wrapperConfig:o}){return c[e]||(c[e]=new h({accountId:e,timeout:t,deals:r,videoAdServer:i,useSafeFrames:n,wrapperConfig:o})),c[e]}read(e){return this.aps.store.get(e)}record(e,t){return new a((r,i)=>{var n,o;this.aps.queue.push(new CustomEvent(e,{detail:(n=function(e){for(var t=1;t!e.includes("fluid");e.forEach(e=>{let{display:t,video:r}=e.multiFormatProperties||{};return[e,t,r].forEach(e=>{(null==e?void 0:e.sizes)&&(e.sizes=e.sizes.filter(n))}),e.multiFormatProperties||e.mediaType||(e.mediaType="display"),e}),l.log(i.dN.AMAZON_BIDS_REQUESTING,{slots:e});let s=this.wrapperConfig.PREBID_TIMEOUT?this.wrapperConfig.PREBID_TIMEOUT:this.timeout,a=e.map(e=>e.slotID);this.record("ad/slot/define",{slots:e}),this.record("ad/targeting/fetch",{itemIds:a,timeout:s}).then(()=>{if(t){var e;null==(e=this.read("ad/attachTargeting"))||e({itemIds:a,adServer:"googletag"})}let i=a.map(e=>{let t=Object.fromEntries(this.read("ad/targeting").get(e));return t.slotID=e,t.amznsz&&(t.size=t.amznsz),t});try{r(i)}catch(e){l.error("error with custom bidHandler",{slotIds:a,bids:i},e)}})}constructor({accountId:e="",timeout:t,deals:r,videoAdServer:o,useSafeFrames:s,wrapperConfig:a}){var c,h,p,f,g,m,b;d(this,"_aps",void 0),d(this,"_accountId",""),d(this,"timeout",3e3),d(this,"deals",!1),d(this,"videoAdServer","DFP"),d(this,"useSafeFrames",!1),d(this,"wrapperConfig",void 0),b=e,window._aps.has(b)||window._aps.set(b,{queue:[],store:new Map}),u[b]||(b?(0,n.k0)(`https://config.aps.amazon-adsystem.com/configs/${b}`,i.Lk.HEAD,!0,!0):l.error("no accont id passed, not loading account config",{accountId:b}),u[b]=!0),u.publisherJs||((0,n.k0)("https://client.aps.amazon-adsystem.com/publisher.js",i.Lk.HEAD,!0,!0),u.publisherJs=!0),this.wrapperConfig=a,this._accountId=String(null!=(f=null!=e?e:null==(c=this.wrapperConfig)?void 0:c.AMAZON_PUB_ID)?f:""),this._aps=window._aps.get(this.accountId),this.timeout=null!=(g=null!=t?t:null==(h=this.wrapperConfig)?void 0:h.PREBID_TIMEOUT)?g:this.timeout,this.deals=null!=(m=null!=r?r:null==(p=this.wrapperConfig)?void 0:p.AMAZON_DEALS)?m:this.deals,this.videoAdServer=null!=o?o:this.videoAdServer,this.useSafeFrames=null!=s?s:this.useSafeFrames,l.log(i.dN.AMAZON_LIBRARY_LOADED,{aps:!0,accountId:this._accountId,timeout:this.timeout,deals:this.deals,videoAdServer:this.videoAdServer,useSafeFrames:this.useSafeFrames})}}t.A=h},75288:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},76065:function(e,t,r){"use strict";r.r(t),r.d(t,{TaboolaAutoTagId:function(){return l},default:function(){return u}});var i=r(18134),n=r(54240),o=r(44558),s=r(22188);let a=async(e,t)=>!!(null==t?void 0:t.length)&&!!e.length&&e.every(e=>t.some(t=>{var r;return null==(r=t.bids)?void 0:r.some(t=>t.bidder===e)}));function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.A{getInitialState(){return{}}setTaboolaTagIdFromGPID(){let e=(0,s.b)();e.cmd.push(()=>{e.onEvent("beforeRequestBids",e=>{e.forEach(e=>{var t,r;let i=null==e||null==(r=e.ortb2Imp)||null==(t=r.ext)?void 0:t.gpid;i&&e.bids.filter(e=>{var t;return e.bidder===this.taboolaBidderName&&!(null==(t=e.params)?void 0:t.tagId)}).forEach(e=>e.params.tagId=i)})})})}async start(){let e=await o.rI.getAdUnits(),t=[this.taboolaBidderName];await a(t,e)&&(await o.rI.getInstance(),this.setTaboolaTagIdFromGPID())}constructor(){super({},"TaboolaAutoTagId"),d(this,"taboolaBidderName","taboola")}}d(l,"componentName","taboola-auto-tagid"),(0,i.h)(l);var u=l},76314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",i=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),i&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),i&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,i,n,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=r),n&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=n):u[4]="".concat(n)),t.push(u))}},t}},77467:function(e,t,r){"use strict";r.d(t,{Ab:function(){return u},BI:function(){return c},D6:function(){return p},UN:function(){return a},c$:function(){return h},iC:function(){return l},u0:function(){return d}});var i=r(18238),n=r(52093),o=r(86964).Promise;let s={};function a(e="",t=s){return e.includes("testBid")?20:t[e.replace(/^(v_|o_)/,"")]}function d(){var e,t,r;return null==(r=window)||null==(t=r.apstag)||null==(e=t.debug)?void 0:e.call(t,"getState")}function l(e){var t;return(null==e||null==(t=e.newBidObject)?void 0:t.targeting)||{}}function u(e,t){let r=h({slotID:e});if(r){let i=l(r);t||(t=n.U.getSlotByDivId(e)),t?(Object.keys(i).forEach(e=>{t.setTargeting(e,i[e])}),r.bidState="SET"):r.bidState="EXPOSED"}return r}function c({slotID:e,amzniid:t}){var r,i,n,o;let s=null==(o=d())||null==(n=o.slotBids)||null==(i=n[e])||null==(r=i.find)?void 0:r.call(i,e=>e.bidObject.amzniid===t);s&&"RENDERED"!==s.bidState&&(s.bidState="EXPOSED")}function h({slotID:e}){let t,r=Date.now(),i=d()||void 0;if(!i)return;let n=(i.slotBids||{})[e]||[];if(!n.length)return;Object.keys(s).length&&n.filter(e=>{var t;return!e.cpm&&(null==e||null==(t=e.bidConfig)?void 0:t.amznbid)}).forEach(e=>{e.cpm=a(e.bidConfig.amznbid,s),e.host&&(e.host=e.host.replace("http://","https://"),String(e.host).match(/^https?:\/\//)||(e.host="https://"+e.host))});let o=n.filter(e=>["NEW","EXPOSED"].includes(e.bidState)).filter(e=>{if(!e.responseTimestamp&&Array.isArray(i.AAXReqs)){let t=i.AAXReqs.find(t=>t.bidReqID===e.bidReqID);e.responseTimestamp=(null==t?void 0:t.resTs)||(null==t?void 0:t.responseTimestamp)}return!(e.responseTimestamp&&Math.floor((r-e.responseTimestamp)/1e3)>120)});return(t=o.find(e=>a(e.bidConfig.amznbid,s)>0)?o.sort((e,t)=>(e.cpm||0)>(t.cpm||0)?-1:1).find(e=>{var t;return null==(t=e.bidConfig)?void 0:t.amzniid}):[...o].reverse().find(e=>e.bidConfig.amzniid))&&(t.bidState="SET"),t}function p(e){return globalThis._aps=globalThis._aps||new Map,globalThis._aps.has(e)||globalThis._aps.set(e,{queue:[],store:new Map}),{accountID:e,record:function(e,t){return new o((r,i)=>{var n,o;globalThis._aps.get(this.accountID).queue.push(new CustomEvent(e,{detail:(n=function(e){for(var t=1;t(s=e.AMAZON_HASH_MAP,e))},77659:function(e){"use strict";var t={};e.exports=function(e,r){var i=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!i)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(r)}},78096:function(e){e.exports=function(e,t){for(var r=-1,i=Array(e);++rsetTimeout(t,e))}},80079:function(e,t,r){var i=r(63702),n=r(70080),o=r(24739),s=r(48655),a=r(31175);function d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t*{pointer-events:auto}.tude-anchor-wrapper-outer .tude-anchor-wrapper-inner{display:inline-block;position:relative}@media(max-width: 640px){.tude-anchor-wrapper-outer .tude-anchor-wrapper-inner{display:block;width:100%;max-width:100vw;background:#fff}.tude-anchor-wrapper-outer .tude-anchor-wrapper-inner .tude-anchor-close-button{inset:0 5px auto auto}}.tude-anchor-wrapper-outer .tude-anchor-close-button{display:none;cursor:pointer;position:absolute;width:20px;height:20px;margin:0;inset:0 0 auto auto;transform:translate(0, calc(-100% - 5px))}.tude-anchor-wrapper-outer .tude-anchor-close-button:before{content:"";position:absolute;z-index:0;inset:0;border-radius:100px;background:#fff;box-shadow:0 0 3px 0 rgba(0,0,0,.25)}.tude-anchor-wrapper-outer .tude-anchor-close-button:after{content:"";position:absolute;inset:2px;z-index:1;background-color:#333;-webkit-mask-size:100%;-webkit-mask-position:center center;-webkit-mask-repeat:no-repeat;mask-size:100%;mask-position:center center;mask-repeat:no-repeat;-webkit-mask-image:var(--tude-anchor-close-icon);mask-image:var(--tude-anchor-close-icon)}.tude-anchor-wrapper-outer.tude-ad-filled .tude-anchor-close-button{display:block;opacity:0;animation:.33s forwards tudeMagicAnchorFadeIn;animation-delay:2s}.tude-anchor-wrapper-outer.rail-style .tude-anchor-wrapper-inner{display:block}.tude-anchor-wrapper-outer.rail-style .tude-anchor-close-button{inset:0 auto auto 100%;transform:translate(5px, 0)}@media(max-width: 640px){.tude-anchor-wrapper-outer.rail-style{left:0;top:auto;bottom:0;width:100%}.tude-anchor-wrapper-outer.rail-style .tude-anchor-close-button{inset:0 5px auto auto;transform:translate(0, calc(-100% - 5px))}}@keyframes tudeMagicAnchorFadeIn{0%{opacity:0}100%{opacity:1}}',""]),t.A=u},83221:function(e){e.exports=function(e){return function(t,r,i){for(var n=-1,o=Object(t),s=i(t),a=s.length;a--;){var d=s[e?a:++n];if(!1===r(o[d],d,o))break}return t}}},83349:function(e,t,r){"use strict";r.r(t),r.d(t,{FirstPartyData:function(){return p}});var i,n,o=r(55364),s=r.n(o),a=r(77467),d=r(44558),l=r(18134),u=r(54240),c=r(22188),h=r(18238);class p extends u.A{getInitialState(){return{ortb2:{}}}syncConfigs(){let{ortb2:e}=this.state,t=(0,c.b)();t.cmd.push(()=>{t.setConfig({ortb2:e});let r=()=>{t.offEvent("auctionInit",r)};t.onEvent("auctionInit",r)})}start(){let e=(e,t=!1)=>{if(!e)return this.error("Data object is required");if("object"!=typeof e||Array.isArray(e))return this.error("Data must be an object");if(t){let{ortb2:t}=this.state;this.setState(s()(t,e))}else this.setState({ortb2:e})};this.onStateChange(()=>this.syncConfigs(),["ortb2"]),h.A.sub("tudePublicFunctions",({tude:t})=>(t.setFirstPartyData=e,{tude:t})),this.syncConfigs()}async syncAmazon(){let e=await d.rI.getConfig(),{ortb2:t}=this.state;if("string"!=typeof e.AMAZON_PUB_ID||!e.AMAZON_BIDDING||!Object.keys(t||{}).length)return;f(e.AMAZON_SIGNALS,{ortb2:t});let r=e.AMAZON_PUB_ID,i=f(e.AMAZON_SIGNALS,{ortb2:t}),n=(0,c.b)(),o=(0,a.D6)(r);try{let e=o.read("ad/context")||{};f(e,null==i?void 0:i.ortb2),f(e,{user:{eids:n.getUserIdsAsEids()}}),o.record("ad/signals/define",e),o.record("ad/context",e)}catch(e){}}constructor(e){var t,r;super(e,"FirstPartyData"),(null==(t=this.props)?void 0:t.initialData)&&this.setState({ortb2:null==(r=this.props)?void 0:r.initialData}),h.A.sub("wrapperConfigOnInit",e=>{let{ortb2:t}=this.state;return e.AMAZON_SIGNALS=e.AMAZON_SIGNALS||{},f(e.AMAZON_SIGNALS,{ortb2:t}),e})}}function f(e,t){if(void 0===t)return e;try{for(let r in t)if(r in t){if(void 0===t[r])continue;!(Array.isArray(e[r])||Array.isArray(t[r]))&&t[r]instanceof Object&&e[r]instanceof Object?e[r]=f(e[r],t[r]):e[r]=t[r]}}catch(e){}return e}n="first-party-data",(i="componentName")in p?Object.defineProperty(p,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):p[i]=n,(0,l.h)(p),t.default=p},83488:function(e){e.exports=function(e){return e}},83693:function(e,t,r){var i=r(64894),n=r(40346);e.exports=function(e){return n(e)&&i(e)}},85072:function(e){"use strict";var t=[];function r(e){for(var r=-1,i=0;in)})}class s{addBefore(e){this.before.push(e)}addAfter(e){this.after.push(e)}async triggerBefore(e){await this.trigger(o(this.before,"order"),e)}async triggerAfter(e){await this.trigger(o(this.after,"order"),e)}async trigger(e,t){for(let r of e)await r.callback(t)}constructor(){n(this,"name",void 0),n(this,"before",[]),n(this,"after",[])}}var a=new class{before(e,t,r,i=0){this.hooks[e]||(this.hooks[e]=new s,this.hooks[e].name=e),this.hooks[e].addBefore({name:t,callback:r,order:i})}after(e,t,r,i=0){this.hooks[e]||(this.hooks[e]=new s,this.hooks[e].name=e),this.hooks[e].addAfter({name:t,callback:r,order:i})}async dispatch(e,t){if(!this.hooks[e])return void(0,i.A)().advancedLog('No hooks registered for "'+e+'"',this.hooks);try{await this.hooks[e].triggerBefore(t)}catch(e){(0,i.A)().error(e)}try{await this.hooks[e].triggerAfter(t)}catch(e){(0,i.A)().error(e)}}async do(e,t,r={},n=!1){if(!this.hooks[e]){(0,i.A)().advancedLog('No hooks registered for "'+e+'"',this.hooks),(0,i.A)().advancedLog(`Hook "${e}" main action executing`);try{await t()}catch(e){(0,i.A)().error(e)}(0,i.A)().advancedLog(`Hook "${e}" main action executed`);return}try{await this.hooks[e].triggerBefore(r)}catch(e){(0,i.A)().error(e)}(0,i.A)().advancedLog(`Hook "${e}" main action executing`);try{await t()}catch(e){(0,i.A)().error(e)}(0,i.A)().advancedLog(`Hook "${e}" main action executed`);try{await this.hooks[e].triggerAfter(r)}catch(e){(0,i.A)().error(e)}n&&delete this.hooks[e]}constructor(){var e,t;t={},(e="hooks")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t}}},85914:function(e,t,r){var i,n,o,s,a,d,l;e=r.nmd(e),e&&e.exports,(n="object"==typeof r.g&&r.g).global===n||n.window,(o=function(e){this.message=e}).prototype=Error(),o.prototype.name="InvalidCharacterError",s=function(e){throw new o(e)},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,r,i,n=e.length%3,o="",d=-1,l=e.length-n;++d>18&63)+a.charAt(i>>12&63)+a.charAt(i>>6&63)+a.charAt(63&i);return 2==n?(i=(t=e.charCodeAt(d)<<8)+(r=e.charCodeAt(++d)),o+=a.charAt(i>>10)+a.charAt(i>>4&63)+a.charAt(i<<2&63)+"="):1==n&&(i=e.charCodeAt(d),o+=a.charAt(i>>2)+a.charAt(i<<4&63)+"=="),o},decode:function(e){var t,r,i=(e=String(e).replace(d,"")).length;i%4==0&&(i=(e=e.replace(/==?$/,"")).length),(i%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var n=0,o="",l=-1;++l>(-2*n&6)));return o},version:"1.0.0"},void 0===(i=(function(){return l}).call(t,r,t,e))||(e.exports=i)},86009:function(e,t,r){e=r.nmd(e);var i=r(34840),n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,s=o&&o.exports===n&&i.process,a=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},86649:function(e,t,r){e.exports=r(83221)()},87296:function(e,t,r){var i,n=r(55481),o=(i=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},87805:function(e,t,r){var i=r(43360),n=r(75288);e.exports=function(e,t,r){(void 0===r||n(e[t],r))&&(void 0!==r||t in e)||i(e,t,r)}},89935:function(e){e.exports=function(){return!1}},90031:function(e,t){!function(e){var t,r,i,n=String.fromCharCode;function o(e){for(var t,r,i=[],n=0,o=e.length;n=55296&&t<=56319&&n=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function a(e,t){return n(e>>t&63|128)}function d(){if(i>=r)throw Error("Invalid byte index");var e=255&t[i];if(i++,(192&e)==128)return 63&e;throw Error("Invalid continuation byte")}e.version="3.0.0",e.encode=function(e){for(var t=o(e),r=t.length,i=-1,d="";++i>6&31|192):(0xffff0000&e)==0?(s(e),t=n(e>>12&15|224)+a(e,6)):(0xffe00000&e)==0&&(t=n(e>>18&7|240)+a(e,12)+a(e,6)),t+=n(63&e|128)}(t[i]);return d},e.decode=function(e){r=(t=o(e)).length,i=0;for(var a,l=[];!1!==(a=function(){var e,n,o,a;if(i>r)throw Error("Invalid byte index");if(i==r)return!1;if(e=255&t[i],i++,(128&e)==0)return e;if((224&e)==192){if((a=(31&e)<<6|(n=d()))>=128)return a;throw Error("Invalid continuation byte")}if((240&e)==224){if((a=(15&e)<<12|(n=d())<<6|(o=d()))>=2048)return s(a),a;throw Error("Invalid continuation byte")}if((248&e)==240&&(n=d(),(a=(7&e)<<18|n<<12|(o=d())<<6|d())>=65536&&a<=1114111))return a;throw Error("Invalid UTF-8 detected")}());)l.push(a);for(var u,c=l.length,h=-1,p="";++h65535&&(u-=65536,p+=n(u>>>10&1023|55296),u=56320|1023&u),p+=n(u);return p}}(t)},90181:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},90289:function(e,t,r){var i=r(12651);e.exports=function(e){return i(this,e).get(e)}},90938:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},91033:function(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},92126:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});var i=r(86964).Promise;async function n(e,{signal:t}){return new i((r,i)=>{function n(){clearTimeout(o),i(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",n,{once:!0}));let o=setTimeout(()=>{t?.removeEventListener("abort",n),r()},e)})}},93243:function(e,t,r){var i=r(56110);e.exports=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},93290:function(e,t,r){e=r.nmd(e);var i=r(9325),n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,s=o&&o.exports===n?i.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,i=a?a(r):new e.constructor(r);return e.copy(i),i}},97825:function(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){var i,n,o;i="",r.supports&&(i+="@supports (".concat(r.supports,") {")),r.media&&(i+="@media ".concat(r.media," {")),(n=void 0!==r.layer)&&(i+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),i+=r.css,n&&(i+="}"),r.media&&(i+="}"),r.supports&&(i+="}"),(o=r.sourceMap)&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(i,t,e.options)},remove:function(){!function(e){if(null!==e.parentNode)e.parentNode.removeChild(e)}(t)}}}},97866:function(e,t,r){"use strict";r.r(t),r.d(t,{RefreshAllAds:function(){return u},default:function(){return c}});var i=r(74547);let n=(e,t)=>{if(t<=0)throw Error("Chunk length must be a positive number");let r=[],i=0,n=e.length;for(;i(e.refreshAllAds=this.makeRefreshAllAds(this.chunkSize,this.globalName),{tude:e}))}constructor(e){super(e,"RefreshAllAds"),l(this,"mappings",[]),l(this,"chunkSize",5),l(this,"globalName","tude"),l(this,"excludeBaseDivIds",[]),l(this,"mergeWithExistingMappings",e=>{e.forEach(e=>{this.mappings.filter(t=>t.divId===e.divId).length>0||this.mappings.push(e)})}),l(this,"makeRefreshAllAds",(e=5,t="tude")=>(a.B.on(i.qY.BIDS_REQUESTED,({filteredMappings:e})=>{this.excludeBaseDivIds.length>0&&(e=e.filter(e=>!this.excludeBaseDivIds.includes(e.baseDivId))),this.mergeWithExistingMappings(e)}),async()=>{if(0===this.mappings.length)return this.log("refreshAllAds called but no mappings exist yet"),!1;this.log("refreshAllAds triggered",this.mappings),n(this.mappings,e).forEach(e=>{window[t].refreshAdsViaDivMappings(e,!0)})})),this.chunkSize=e.chunkSize||this.chunkSize,this.globalName=e.globalName||this.globalName,this.excludeBaseDivIds=e.excludeBaseDivIds||this.excludeBaseDivIds,d.A.sub("wrapperConfigOnInit",e=>{try{Object.keys(e.AD_UNITS||{}).forEach(t=>{(e.AD_UNITS[t]||[]).forEach(t=>{let r=Object.keys(t.mediaTypes||{}),i=e.SLOT_PREFIX+t.slot;1!==r.length||(null==r?void 0:r[0])!=="video"||this.excludeBaseDivIds.includes(i)||this.excludeBaseDivIds.push(i)})})}catch(e){this.error("RefreshAllAds error parsing ad units",e)}return e})}}l(u,"componentName","refresh-all-ads"),(0,o.h)(u);var c=u},99406:function(e,t,r){"use strict";let i;r.d(t,{A:function(){return S}});var n=r(74547),o=r(33386),s=r(86964).Promise;let a=({pubID:e,bidTimeout:t,adServer:r="googletag",deals:i,useSafeFrames:n=!1,videoAdServer:o,params:s,signals:a={}})=>{!function(e,t,r,i,n,o,s){t[e]||(t[e]={init:function(){a("i",arguments)},fetchBids:function(){a("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},dpa:function(){a("di",arguments)},rpa:function(){a("ri",arguments)},upa:function(){a("ui",arguments)},_Q:[]},(o=r.createElement(i)).async=!0,o.src=n,(s=r.getElementsByTagName(i)[0]).parentNode.insertBefore(o,s));function a(r,i){t[e]._Q.push([r,i])}}("apstag",window,document,"script","//c.amazon-adsystem.com/aax2/apstag.js"),window.apstag.init({pubID:e,adServer:r,deals:i,videoAdServer:o,bidTimeout:t,useSafeFrames:n,params:s,signals:a})},d=({pubID:e,bidTimeout:t,adServer:r="googletag",deals:i,useSafeFrames:a=!1,videoAdServer:d,params:l,signals:u={}})=>((0,o.k0)(`https://config.aps.amazon-adsystem.com/configs/${e}`,n.Lk.HEAD,!0),(0,o.k0)("https://client.aps.amazon-adsystem.com/publisher.js",n.Lk.HEAD,!0),window.aps=((t=e)=>{let r=window._aps=window._aps||new Map;r.has(t)||r.set(t,{queue:[],store:new Map});let i={accountID:t,record:function(e,t){return new s((i,n)=>{var o,s;r.get(this.accountID).queue.push(new CustomEvent(e,{detail:(o=function(e){for(var t=1;t!e.includes("fluid");class w{static setConfig(e){i=e}isTudeServe(){return["v2","tude"].includes(null==i?void 0:i.AD_SERVER)}static loadLibrary({pubID:e="",bidTimeout:t=3e3,deals:r=!1,videoAdServer:o="DFP",useSafeFrames:s=!1,params:l,wrapperConfig:c,signals:f={}}){i=c;let g={pubID:e,bidTimeout:t,deals:r,videoAdServer:o,useSafeFrames:s,params:l,signals:f};(null==c?void 0:c.AMAZON_BOOTSTRAP)==="hybrid"?d(g):a(g),m(this,w,I,!0),(0,h.A)(v).log(n.dN.AMAZON_LIBRARY_LOADED,g),(null==i?void 0:i.AMAZON_BID_CACHING)&&((0,h.A)(v).advancedLog("bid caching enabled"),u.B.on("gpt.slotRenderEnded",e=>{var t,r,n;let o=e.divId,s=e.targetingMap,a=e.amzniid,d=(0,p.u0)(),{AMAZON_HASH_MAP:l={}}=i||{};if(a){let t=e.isAmazonWin;((null==d||null==(n=d.slotBids)?void 0:n[o])||[]).forEach(r=>{let{bidConfig:i}=r;if(t&&i.amzniid===a){r.bidState="RENDERED";let t=(0,p.UN)(i.amznbid,l)||"?";(0,h.A)(v).advancedLog("bidWon",{slotID:o,bid:r,cpm:t});try{let t=document.getElementById(o),r=String(i.size).split("x").map(Number);if(E(r)||(r=function(e=[],t=1e3){return e.filter(e=>E(e)&&e[0]*e[1]>=t).sort((e,t)=>e[0]*e[1]-t[0]*t[1]).find(e=>e)}(e.sizes)),t&&E(r)){let[e,i]=r;t.querySelectorAll('[id*="google_ads_iframe"]').forEach(t=>{t.hasAttribute("width")&&(t.setAttribute("width",String(e)),t.setAttribute("height",String(i))),t.style.setProperty("width",`${e}px`),t.style.setProperty("height",`${i}px`)})}}catch(e){(0,h.A)(v).error("Error trying to size an amazon bid win",e)}}let n=i.amzniid===a,s="RENDERED"===r.bidState,d="SET"===r.bidState;(n&&!s||!n&&d)&&(r.bidState="EXPOSED")})}let u=[];((null==d||null==(r=d.targetingKeys)||null==(t=r[o])?void 0:t.length)?d.targetingKeys[o]:Object.keys(s).filter(e=>e.startsWith("amzn"))).forEach(t=>{s[t]&&e.slot.clearTargeting(t)})}))}getGlobal(){return window.apstag=window.apstag||{}}requestBids(e,t,r=()=>{}){let{auctionState:o={}}=e;if(delete e.auctionState,e.slots=e.slots.map(e=>{let{display:t,video:r}=e.multiFormatProperties||{};return[e,t,r].forEach(e=>{(null==e?void 0:e.sizes)&&(e.sizes=e.sizes.filter(y))}),e}),(0,h.A)(v).log(n.dN.AMAZON_BIDS_REQUESTING,e),!e.slots)return(0,h.A)(v).error(n.dN.AMAZON_MISSING_FIELD,"slots"),!1;if(!l.A.canReceivePersonalizedAds()){(0,h.A)(v).warn("Amazon will not run because personalized ads are turned off"),r(!1);return}i.PREBID_TIMEOUT&&(e.timeout=i.PREBID_TIMEOUT);let s=this.getGlobal();s.fetchBids(e,n=>{if(t&&!o.timedout&&!this.isTudeServe())if(null==i?void 0:i.AMAZON_BID_CACHING)try{!function({apsRequestConfig:e,bidResponses:t}){var r;let n=null!=(r=i.AMAZON_CACHE_TTL)?r:120,{slots:o=[]}=e,s=o.map(e=>e.slotID),a=(0,p.u0)(),d=a.slotBids||{},l=Date.now(),u=t.filter(e=>e.amzniid).map(e=>e.amzniid);s.forEach(e=>{let t=d[e]||[],r=t.find(e=>{var t;return u.includes(null==e||null==(t=e.bidConfig)?void 0:t.amzniid)});r&&(r.responseTimestamp=l),c.U.push(()=>{let r=c.U.getSlotByDivId(e);if(!r)return;let i=(0,p.Ab)(e,r);if(!i||!i.newBidObject)return void(0,h.A)(v).advancedLog("no bid",{slotID:e,bids:t,BID_TTL:n});let o=Object.keys((null==a?void 0:a.bidReqs)||{}).length;if(!o)return;let s=String(o-1),d=!1;o&&i.bidReqID!==s&&(d=!0),(0,h.A)(v).advancedLog("bid",{slotID:e,cached:d,bid:i,cpm:i.cpm||"?",currentBidReqID:s,bids:t,BID_TTL:n})})})}({apsRequestConfig:e,bidResponses:n})}catch(e){(0,h.A)(v).advancedLog("cache error, falling back to apstag.setDisplayBids()",e),c.U.push(()=>{s.setDisplayBids()})}else c.U.push(()=>{s.setDisplayBids()});r(n)})}constructor(){let{AMAZON_SINGLETON:e}=i||{};if(e&&g(w,w,A))return g(w,w,A);e&&m(w,w,A,this)}}var A={writable:!0,value:void 0},I={writable:!0,value:void 0},S=w;function E(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}}}]);