/* prebid.js v8.42.0 Updated: 2024-04-04 Modules: paapi, rtdModule, adpod, userId, consentManagement, dfpAdServerVideo, rubiconBidAdapter, ixBidAdapter, teadsBidAdapter, appnexusBidAdapter, criteoBidAdapter, smartadserverBidAdapter, adagioBidAdapter, adagioAnalyticsAdapter, criteoIdSystem, sharedIdSystem, identityLinkIdSystem, outbrainBidAdapter, iasRtdProvider, utiqSystem, priceFloors, currency, smilewantedBidAdapter, tripleliftBidAdapter, fledgeForGpt, pubmaticBidAdapter, videoModule */ if(window.pbjs&&window.pbjs.libLoaded)try{window.pbjs.getConfig("debug")&&console.warn("Attempted to load a copy of Prebid.js that clashes with the existing 'pbjs' instance. Load aborted.")}catch(e){}else (function(){ (()=>{var e,t={5789:(e,t,n)=>{n.d(t,{A4:()=>c,J7:()=>u,Pg:()=>l});var i=n(1580),r=n(1069),o=n(433),s=n(5901);const a=(0,n(7873).m)(),d="outstream";function c(e){const{url:t,config:n,id:c,callback:u,loaded:l,adUnitCode:f,renderNow:g}=e;this.url=t,this.config=n,this.handlers={},this.id=c,this.renderNow=g,this.loaded=l,this.cmd=[],this.push=e=>{"function"==typeof e?this.loaded?e.call():this.cmd.push(e):(0,r.vV)("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||(()=>{this.loaded=!0,this.process()}),this.render=function(){const e=arguments,n=()=>{this._render?this._render.apply(this,e):(0,r.JE)("No render function was provided, please use .setRender on the renderer")};!function(e){const t=a.adUnits,n=(0,s.I6)(t,(t=>t.code===e));if(!n)return!1;const i=(0,o.A)(n,"renderer"),r=!!(i&&i.url&&i.render),d=(0,o.A)(n,"mediaTypes.video.renderer"),c=!!(d&&d.url&&d.render);return!!(r&&!0!==i.backupOnly||c&&!0!==d.backupOnly)}(f)?g?n():(this.cmd.unshift(n),(0,i.R)(t,d,this.callback,this.documentContext)):((0,r.JE)(`External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ${f}`),n())}.bind(this)}function u(e){return!(!e||!e.url&&!e.renderNow)}function l(e,t,n){let i=null;e.config&&e.config.documentResolver&&(i=e.config.documentResolver(t,document,n)),i||(i=document),e.documentContext=i,e.render(t,e.documentContext)}c.install=function(e){let{url:t,config:n,id:i,callback:r,loaded:o,adUnitCode:s,renderNow:a}=e;return new c({url:t,config:n,id:i,callback:r,loaded:o,adUnitCode:s,renderNow:a})},c.prototype.getConfig=function(){return this.config},c.prototype.setRender=function(e){this._render=e},c.prototype.setEventHandlers=function(e){this.handlers=e},c.prototype.handleVideoEvent=function(e){let{id:t,eventName:n}=e;"function"==typeof this.handlers[n]&&this.handlers[n](),(0,r.OG)(`Prebid Renderer event for id ${t} type ${n}`)},c.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,r.vV)("Error processing Renderer command: ",e)}}},6811:(e,t,n)=>{n.d(t,{DL:()=>u,Ml:()=>r,Ue:()=>i,VJ:()=>f,hE:()=>l,hq:()=>c,mo:()=>d,qX:()=>o,uc:()=>a,yl:()=>s});const i="accessDevice",r="syncUser",o="enrichUfpd",s="enrichEids",a="fetchBids",d="reportAnalytics",c="transmitEids",u="transmitUfpd",l="transmitPreciseGeo",f="transmitTid"},3441:(e,t,n)=>{n.d(t,{s:()=>r});var i=n(9684);const r=(0,n(2604).ZI)((e=>i.Ay.resolveAlias(e)))},5569:(e,t,n)=>{n.d(t,{Tn:()=>a,fW:()=>o,tW:()=>r,tp:()=>i,zu:()=>s});const i="prebid",r="bidder",o="userId",s="rtd",a="analytics"},2604:(e,t,n)=>{n.d(t,{Dk:()=>s,Ii:()=>o,TQ:()=>g,XG:()=>u,ZI:()=>p,Zw:()=>c,bt:()=>l,e3:()=>f,iK:()=>a,q7:()=>d});var i=n(5569),r=n(9214);const o="component",s=o+"Type",a=o+"Name",d="adapterCode",c="storageType",u="configName",l="syncType",f="syncUrl",g="_config";function p(e){return function(t,n,r){const c={[s]:t,[a]:n,[o]:`${t}.${n}`};return t===i.tW&&(c[d]=e(n)),h(Object.assign(c,r))}}const h=(0,r.A_)("sync",(e=>e))},3066:(e,t,n)=>{n.d(t,{$V:()=>g,$p:()=>m,Vx:()=>d,ZP:()=>h,l7:()=>a,nl:()=>l,p4:()=>p,uD:()=>f});var i=n(433),r=n(3272),o=n(5139),s=n(6811);const a=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((e=>`user.${e}`)).concat("device.ext.cdep"),d=["user.eids","user.ext.eids"],c=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"];function u(e){return Object.assign({get(){},run(e,t,n,i,r){const o=n&&n[i];if(g(o)&&r()){const e=this.get(o);void 0===e?delete n[i]:n[i]=e}}},e)}function l(e){return e.forEach((e=>{e.paths=e.paths.map((e=>{const t=e.split("."),n=t.pop();return[t.length>0?t.join("."):null,n]}))})),function(t,n){const r=[];for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a{if(!1!==t[e.name])for(const[o,s]of e.paths){const a=null==o?n:(0,i.A)(n,o);if(r.push(e.run(n,o,a,s,d.bind(null,e))),!1===t[e.name])return}})),r.filter((e=>null!=e))}}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i0)}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.io;return function(n){return!t(e,n)}}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;return[{name:s.DL,paths:a,applies:p(s.DL,e)},{name:s.hq,paths:d,applies:p(s.hq,e)},{name:s.hE,paths:c,applies:p(s.hE,e),get:e=>Math.round(100*(e+Number.EPSILON))/100},{name:s.VJ,paths:["source.tid"],applies:p(s.VJ,e)}].map(u)}const m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;const t=l(h(e)),n=l(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;return[{name:s.hq,paths:["userId","userIdAsEids"],applies:p(s.hq,e)},{name:s.VJ,paths:["ortb2Imp.ext.tid"],applies:p(s.VJ,e)}].map(u)}(e));return function(e){const i={};return{ortb2:n=>(t(i,n,e),n),bidRequest:t=>(n(i,t,e),t)}}}();(0,o.qB)(s.VJ,"enableTIDs config",(()=>{if(!r.$W.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},5139:(e,t,n)=>{n.d(t,{io:()=>s,qB:()=>o});var i=n(1069),r=n(2604);const[o,s]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.h0)("Activity control:");const t={};function n(e){return t[e]=t[e]||[]}function o(t,n,i,o){let s;try{s=i(o)}catch(i){e.logError(`Exception in rule ${n} for '${t}'`,i),s={allow:!1,reason:i}}return s&&Object.assign({activity:t,name:n,component:o[r.Ii]},s)}const s={};function a(t){let{activity:n,name:i,allow:r,reason:o,component:a}=t;const d=`${i} ${r?"allowed":"denied"} '${n}' for '${a}'${o?":":""}`,c=s.hasOwnProperty(d);if(c&&clearTimeout(s[d]),s[d]=setTimeout((()=>delete s[d]),1e3),!c){const t=[d];o&&t.push(o),(r?e.logInfo:e.logWarn).apply(e,t)}}return[function(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const o=n(e),s=o.findIndex((e=>{let[t]=e;return r=0&&o.splice(e,1)}},function(e,t){let i,r;for(const[s,d,c]of n(e)){if(i!==s&&r)break;i=s;const n=o(e,d,c,t);if(n){if(!n.allow)return a(n),!1;r=n}}return r&&a(r),!0}]}()},9075:(e,t,n)=>{n.d(t,{BS:()=>k,Uc:()=>A,_0:()=>I,bw:()=>B,vW:()=>w});var i=n(1069),r=n(433),o=n(5023),s=n(3018),a=n(3272),d=n(5789),c=n(1371),u=n(7314),l=n(6031),f=n(9214),g=n(2449);const{AD_RENDER_FAILED:p,AD_RENDER_SUCCEEDED:h,STALE_RENDER:m,BID_WON:b}=s.qY,{EXCEPTION:y}=s.as;function v(e){let{reason:t,message:n,bid:r,id:s}=e;const a={reason:t,message:n};r&&(a.bid=r,a.adId=r.adId),s&&(a.adId=s),(0,i.vV)(`Error rendering ad (id: ${s}): ${n}`),o.emit(p,a)}function E(e){let{doc:t,bid:n,id:i}=e;const r={doc:t};n&&(r.bid=n),i&&(r.adId=i),o.emit(h,r)}function A(e,t){switch(e.event){case s.qY.AD_RENDER_FAILED:v({bid:t,id:t.adId,reason:e.info.reason,message:e.info.message});break;case s.qY.AD_RENDER_SUCCEEDED:E({doc:null,bid:t,id:t.adId});break;default:(0,i.vV)(`Received event request for unsupported event: '${e.event}' (adId: '${t.adId}')`)}}function w(e,t,n){let{resizeFn:i,fireTrackers:r=g.vO}=n;if("resizeNativeHeight"===e.action)i(e.width,e.height);else r(e,t)}const C={[s.nl.ll]:A};C[s.nl.s6]=w;const T=(0,f.A_)("sync",(function(e,t){const{ad:n,adUrl:r,cpm:o,originalCpm:s,width:a,height:d}=e,c={AUCTION_PRICE:s||o,CLICKTHROUGH:t?.clickUrl||""};return{ad:(0,i.gM)(n,c),adUrl:(0,i.gM)(r,c),width:a,height:d}})),I=(0,f.A_)("sync",(function(e){let{renderFn:t,resizeFn:n,bidResponse:i,options:r}=e;if(i.mediaType===c.G_)return void v({reason:s.as.iV,message:"Cannot render video ad",bid:i,id:i.adId});const o=T(i,r);t(Object.assign({adId:i.adId},o));const{width:a,height:d}=o;null!=(a??d)&&n(a,d)}));function B(e){let{renderFn:t,resizeFn:n,adId:d,options:c,bidResponse:l,doc:f}=e;if(null!=l){if(l.status!==s.tl.Un||((0,i.JE)(`Ad id ${d} has been rendered before`),o.emit(m,l),!(0,r.A)(a.$W.getConfig("auctionOptions"),"suppressStaleRender"))){try{I({renderFn:t,resizeFn:n,bidResponse:l,options:c,doc:f})}catch(e){v({reason:s.as.og,message:e.message,id:d,bid:l})}u.n.addWinningBid(l),o.emit(b,l)}}else v({reason:s.as.Y7,message:`Cannot find ad '${d}'`,id:d})}function k(e,t,n){let r;function o(e,n){v(Object.assign({id:t,bid:r},{reason:e,message:n}))}function a(t,n){e.defaultView&&e.defaultView.frameElement&&(t&&(e.defaultView.frameElement.width=t),n&&(e.defaultView.frameElement.height=n))}const d=(c={resizeFn:a},function(e,t,n){C.hasOwnProperty(e)&&C[e](t,n,c)});var c;try{t&&e?(r=u.n.findBidByAdId(t),e!==document||(0,i.al)()?B({renderFn:function(t){t.ad?(e.write(t.ad),e.close(),E({doc:e,bid:r,adId:r.adId})):(0,l.H)(r).then((n=>n(t,{sendMessage:(e,t)=>d(e,t,r),mkFrame:i.hw},e.defaultView))).then((()=>E({doc:e,bid:r,adId:r.adId})),(e=>{o(e?.reason||s.as.og,e?.message),e?.stack&&(0,i.vV)(e)}));const n=document.createComment(`Creative ${r.creativeId} served by ${r.bidder} Prebid.js Header Bidding`);(0,i._s)(n,e,"html")},resizeFn:a,adId:t,options:{clickUrl:n?.clickThrough},bidResponse:r,doc:e}):o(s.as.iV,"renderAd was prevented from writing to the main document.")):o(s.as.hD,"missing "+(t?"doc":"adId"))}catch(e){o(y,e.message)}}I.before((function(e,t){const{bidResponse:n,doc:i}=t;(0,d.J7)(n.renderer)?((0,d.Pg)(n.renderer,n,i),E({doc:i,bid:n,id:n.adId}),e.bail()):e(t)}),100)},272:(e,t,n)=>{n.d(t,{e:()=>s});var i=n(433);let r={};function o(e,t,n){let i=function(e,t){let n=r[e]=r[e]||{bidders:{}};return t?n.bidders[t]=n.bidders[t]||{}:n}(e,n);return i[t]=(i[t]||0)+1,i[t]}let s={incrementRequestsCounter:function(e){return o(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,t){return o(e,"requestsCounter",t)},incrementBidderWinsCounter:function(e,t){return o(e,"winsCounter",t)},getRequestsCounter:function(e){return(0,i.A)(r,`${e}.requestsCounter`)||0},getBidderRequestsCounter:function(e,t){return(0,i.A)(r,`${e}.bidders.${t}.requestsCounter`)||0},getBidderWinsCounter:function(e,t){return(0,i.A)(r,`${e}.bidders.${t}.winsCounter`)||0}}},9684:(e,t,n)=>{n.d(t,{Ay:()=>V,pX:()=>q});var i=n(1069),r=n(433),o=n(2449),s=n(9115),a=n(8044),d=n(3272),c=n(9214),u=n(5901),l=n(272),f=n(7934),g=n(6916),p=n(5023),h=n(3018),m=n(6894),b=n(7314),y=n(5569),v=n(5139),E=n(6811),A=n(2604),w=n(3066);const C="pbsBidAdapter",T={CLIENT:"client",SERVER:"server"},I={isAllowed:v.io,redact:w.$p};let B={},k=B.bidderRegistry={},O=B.aliasRegistry={},S=[];d.$W.getConfig("s2sConfig",(e=>{e&&e.s2sConfig&&(S=(0,i.cy)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var U={};const R=(0,A.ZI)((e=>B.resolveAlias(e)));const j=(0,c.A_)("sync",(function(e){let{bidderCode:t,auctionId:n,bidderRequestId:o,adUnits:s,src:a,metrics:d}=e;return s.reduce(((e,s)=>{const c=s.bids.filter((e=>e.bidder===t));return null==t&&0===c.length&&null!=s.s2sBid&&c.push({bidder:null}),e.push(c.reduce(((e,t)=>{const c=null==(t=Object.assign({},t,{ortb2Imp:(0,i.D9)({},s.ortb2Imp,t.ortb2Imp)},(0,i.SH)(s,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?s.mediaTypes:t.mediaTypes;return(0,i.wD)(c)?t=Object.assign({},t,{mediaTypes:c}):(0,i.vV)(`mediaTypes is not correctly configured for adunit ${s.code}`),e.push(Object.assign({},t,{adUnitCode:s.code,transactionId:s.transactionId,adUnitId:s.adUnitId,sizes:(0,r.A)(c,"banner.sizes")||(0,r.A)(c,"video.playerSize")||[],bidId:t.bid_id||(0,i.s0)(),bidderRequestId:o,auctionId:n,src:a,metrics:d,bidRequestsCount:l.e.getRequestsCounter(s.code),bidderRequestsCount:l.e.getBidderRequestsCounter(s.code,t.bidder),bidderWinsCount:l.e.getBidderWinsCounter(s.code,t.bidder)})),e}),[])),e}),[]).reduce(i.Bq,[]).filter((e=>""!==e))}),"getBids");const _=(0,c.A_)("sync",(function(e,t){let{getS2SBidders:n=q}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return e;{const i=n(t);return e.filter((e=>i.has(e.bidder)))}}),"filterBidsForAdUnit");const $=(0,c.A_)("sync",((e,t)=>e),"setupAdUnitMediaTypes");function q(e){(0,i.cy)(e)||(e=[e]);const t=new Set([null]);return e.filter((e=>e&&e.enabled)).flatMap((e=>e.bidders)).forEach((e=>t.add(e))),t}const D=(0,c.A_)("sync",(function(e,t){let{getS2SBidders:n=q}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n(t);return(0,i.ZA)(e).reduce(((e,t)=>(e[r.has(t)?T.SERVER:T.CLIENT].push(t),e)),{[T.CLIENT]:[],[T.SERVER]:[]})}),"partitionBidders");function x(e,t){const n=k[e],i=n?.getSpec&&n.getSpec();if(i&&i[t]&&"function"==typeof i[t])return[i,i[t]]}function N(e,t,n,r){try{(0,i.fH)(`Invoking ${e}.${t}`);for(var o=arguments.length,s=new Array(o>4?o-4:0),a=4;a5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6?arguments[6]:void 0;c=(0,m.BO)(c),p.emit(h.qY.BEFORE_REQUEST_BIDS,e),(0,o.nk)(e),e.forEach((e=>{(0,i.Qd)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((e=>!e.bidder||I.isAllowed(E.uc,R(y.tW,e.bidder))))})),e=$(e,s);let{[T.CLIENT]:l,[T.SERVER]:b}=D(e,S);d.$W.getConfig("bidderSequence")===d.Ov&&(l=(0,i.k4)(l));const v=(0,f.EN)();let w=[];const B=a.global||{},O=a.bidder||{};function U(e,t){const r=I.redact(null!=t?t:R(y.tW,e.bidderCode)),o=Object.freeze(r.ortb2((0,i.D9)({source:{tid:n}},B,O[e.bidderCode])));return e.ortb2=o,e.bids=e.bids.map((e=>(e.ortb2=o,r.bidRequest(e)))),e}S.forEach((r=>{const o=function(e){return R(y.tp,C,{[A.XG]:e.configName})}(r);if(r&&r.enabled&&I.isAllowed(E.uc,o)){let{adUnits:s,hasModuleBids:a}=function(e,t){let n=(0,i.Go)(e),r=!1;return n.forEach((e=>{const n=e.bids.filter((e=>e.module===C&&e.params?.configName===t.configName));1===n.length?(e.s2sBid=n[0],r=!0,e.ortb2Imp=(0,i.D9)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):n.length>1&&(0,i.JE)('Multiple "module" bids for the same s2s configuration; all will be ignored',n),e.bids=_(e.bids,t).map((e=>(e.bid_id=(0,i.s0)(),e)))})),n=n.filter((e=>0!==e.bids.length||null!=e.s2sBid)),{adUnits:n,hasModuleBids:r}}(e,r),d=(0,i.lk)();(0===b.length&&a?[null]:b).forEach((e=>{const a=(0,i.s0)(),u=c.fork(),l=U({bidderCode:e,auctionId:n,bidderRequestId:a,uniquePbsTid:d,bids:j({bidderCode:e,auctionId:n,bidderRequestId:a,adUnits:(0,i.Go)(s),src:h.RW.xM,metrics:u}),auctionStart:t,timeout:r.timeout,src:h.RW.xM,refererInfo:v,metrics:u},o);0!==l.bids.length&&w.push(l)})),s.forEach((e=>{let t=e.bids.filter((e=>(0,u.I6)(w,(t=>(0,u.I6)(t.bids,(t=>t.bidId===e.bid_id))))));e.bids=t})),w.forEach((e=>{void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=s.filter((e=>e.bids.length>0||null!=e.s2sBid)))}))}}));let q=function(e){let t=(0,i.Go)(e);return t.forEach((e=>{e.bids=_(e.bids,null)})),t=t.filter((e=>0!==e.bids.length)),t}(e);return l.forEach((e=>{const o=(0,i.s0)(),a=c.fork(),d=U({bidderCode:e,auctionId:n,bidderRequestId:o,bids:j({bidderCode:e,auctionId:n,bidderRequestId:o,adUnits:(0,i.Go)(q),labels:s,src:"client",metrics:a}),auctionStart:t,timeout:r,refererInfo:v,metrics:a}),u=k[e];u||(0,i.vV)(`Trying to make a request for bidder that does not exist: ${e}`),u&&d.bids&&0!==d.bids.length&&w.push(d)})),w.forEach((e=>{g.mW.getConsentData()&&(e.gdprConsent=g.mW.getConsentData()),g.t6.getConsentData()&&(e.uspConsent=g.t6.getConsentData()),g.ad.getConsentData()&&(e.gppConsent=g.ad.getConsentData())})),w}),"makeBidRequests"),B.callBids=function(e,t,n,r,o,s,c){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(!t.length)return void(0,i.JE)("callBids executed with no bidRequests. Were they filtered by labels or sizing?");let[l,f]=t.reduce(((e,t)=>(e[Number(void 0!==t.src&&t.src===h.RW.xM)].push(t),e)),[[],[]]);var g=[];f.forEach((e=>{for(var t=-1,n=0;n{if(e&&g[m]&&q(e).has(g[m].bidderCode)){const t=(0,a.g4)(s,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0);let d=e.bidders;const l=k[e.adapter];let b=g[m].uniquePbsTid,y=g[m].adUnitsS2SCopy,v=f.filter((e=>e.uniquePbsTid===b));if(l){let o={ad_units:y,s2sConfig:e,ortb2Fragments:u};if(o.ad_units.length){let e=v.map((e=>(e.start=(0,i.vE)(),function(t){t||c(e.bidderRequestId),r.apply(e,arguments)})));const s=(0,i.ZA)(o.ad_units).filter((e=>d.includes(e)));(0,i.OG)(`CALLING S2S HEADER BIDDERS ==== ${s.length>0?s.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only'}`),v.forEach((e=>{p.emit(h.qY.BID_REQUESTED,{...e,tid:e.auctionId})})),l.callBids(o,f,n,(t=>e.forEach((e=>e(t)))),t)}}else(0,i.vV)("missing "+e.adapter);m++}})),l.forEach((e=>{e.start=(0,i.vE)();const t=k[e.bidderCode];d.$W.runWithBidder(e.bidderCode,(()=>{(0,i.OG)("CALLING BIDDER"),p.emit(h.qY.BID_REQUESTED,e)}));let u=(0,a.g4)(s,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0);const l=r.bind(e);try{d.$W.runWithBidder(e.bidderCode,t.callBids.bind(t,e,n,l,u,(()=>c(e.bidderRequestId)),d.$W.callbackWithBidder(e.bidderCode)))}catch(t){(0,i.vV)(`${e.bidderCode} Bid Adapter emitted an uncaught error when parsing their bidRequest`,{e:t,bidRequest:e}),l()}}))},B.videoAdapters=[],B.registerBidAdapter=function(e,t){let{supportedMediaTypes:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&t?"function"==typeof e.callBids?(k[t]=e,g.o2.register(y.tW,t,e.getSpec?.().gvlid),(0,u.mK)(n,"video")&&B.videoAdapters.push(t),(0,u.mK)(n,"native")&&o.mT.push(t)):(0,i.vV)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):(0,i.vV)("bidAdapter or bidderCode not specified")},B.aliasBidAdapter=function(e,t,n){if(void 0===k[t]){let r=k[e];if(void 0===r){const n=[];S.forEach((i=>{if(i.bidders&&i.bidders.length){const r=i&&i.bidders;i&&(0,u.mK)(r,t)?O[t]=e:n.push(e)}})),n.forEach((e=>{(0,i.vV)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{let a,d=function(e){let t=[];return(0,u.mK)(B.videoAdapters,e)&&t.push("video"),(0,u.mK)(o.mT,e)&&t.push("native"),t}(e);if(r.constructor.prototype!=Object.prototype)a=new r.constructor,a.setBidderCode(t);else{let o=r.getSpec(),d=n&&n.gvlid;null!=o.gvlid&&null==d&&(0,i.JE)(`Alias '${t}' will NOT re-use the GVL ID of the original adapter ('${o.code}', gvlid: ${o.gvlid}). Functionality that requires TCF consent may not work as expected.`);let c=n&&n.skipPbsAliasing;a=(0,s.xb)(Object.assign({},o,{code:t,gvlid:d,skipPbsAliasing:c})),O[t]=e}B.registerBidAdapter(a,t,{supportedMediaTypes:d})}catch(t){(0,i.vV)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,i.OG)('alias name "'+t+'" has been already specified.')},B.resolveAlias=function(e){let t,n=e;for(;O[n]&&(!t||!t.has(n));)n=O[n],(t=t||new Set).add(n);return n},B.registerAnalyticsAdapter=function(e){let{adapter:t,code:n,gvlid:r}=e;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,U[n]={adapter:t,gvlid:r},g.o2.register(y.Tn,n,r)):(0,i.vV)(`Prebid Error: Analytics adaptor error for analytics "${n}"\n analytics adapter must implement an enableAnalytics() function`):(0,i.vV)("Prebid Error: analyticsAdapter or analyticsCode not specified")},B.enableAnalytics=function(e){(0,i.cy)(e)||(e=[e]),e.forEach((e=>{const t=U[e.provider];t&&t.adapter?I.isAllowed(E.mo,R(y.Tn,e.provider,{[A.TQ]:e}))&&t.adapter.enableAnalytics(e):(0,i.vV)(`Prebid Error: no analytics adapter found in registry for '${e.provider}'.`)}))},B.getBidAdapter=function(e){return k[e]},B.getAnalyticsAdapter=function(e){return U[e]},B.callTimedOutBidders=function(e,t,n){t=t.map((t=>(t.params=(0,i.SB)(e,t.adUnitCode,t.bidder),t.timeout=n,t))),t=(0,i.$z)(t,"bidder"),Object.keys(t).forEach((e=>{W(e,"onTimeout",t[e])}))},B.callBidWonBidder=function(e,t,n){t.params=(0,i.SB)(n,t.adUnitCode,t.bidder),l.e.incrementBidderWinsCounter(t.adUnitCode,t.bidder),W(e,"onBidWon",t)},B.callBidBillableBidder=function(e){W(e.bidder,"onBidBillable",e)},B.callSetTargetingBidder=function(e,t){W(e,"onSetTargeting",t)},B.callBidViewableBidder=function(e,t){W(e,"onBidViewable",t)},B.callBidderError=function(e,t,n){W(e,"onBidderError",{error:t,bidderRequest:n})},B.callDataDeletionRequest=(0,c.A_)("sync",(function(){for(var e=arguments.length,t=new Array(e),n=0;n!O.hasOwnProperty(e))).forEach((e=>{const n=x(e,r);if(null!=n){const i=b.n.getBidsRequested().filter((t=>function(e){const t=new Set;for(;O.hasOwnProperty(e)&&!t.has(e);)t.add(e),e=O[e];return e}(t.bidderCode)===e));N(e,r,...n,i,...t)}})),Object.entries(U).forEach((e=>{let[n,o]=e;const s=o?.adapter?.[r];if("function"==typeof s)try{s.apply(o.adapter,t)}catch(e){(0,i.vV)(`error calling ${r} of ${n}`,e)}}))}));const V=B},9115:(e,t,n)=>{function i(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}n.d(t,{xb:()=>I,a$:()=>T});var r=n(9684),o=n(3272),s=n(3597),a=n(8230),d=n(2449),c=n(3895),u=n(3018),l=n(5023),f=n(5901),g=n(1069),p=n(9214),h=n(7314),m=n(2693),b=n(6894),y=n(5139),v=n(3441),E=n(5569),A=n(6811);const w=["cpm","ttl","creativeId","netRevenue","currency"],C=["auctionId","transactionId"];function T(e){const t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function n(e){const n=I(e);r.Ay.registerBidAdapter(n,e.code,t)}n(e),Array.isArray(e.aliases)&&e.aliases.forEach((t=>{let i,o,s=t;(0,g.Qd)(t)&&(s=t.code,i=t.gvlid,o=t.skipPbsAliasing),r.Ay.aliasRegistry[s]=e.code,n(Object.assign({},e,{code:s,gvlid:i,skipPbsAliasing:o}))}))}function I(e){return Object.assign(new i(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:t,callBids:function(n,i,a,p,T,I){if(!Array.isArray(n.bids))return;const k=function(e){if((0,y.io)(A.VJ,(0,v.s)(E.tW,e)))return{bidRequest:e=>e,bidderRequest:e=>e};function t(e,t,n){return C.includes(t)?null:Reflect.get(e,t,n)}function n(e,t){const n=new Proxy(e,t);return Object.entries(e).filter((e=>{let[t,n]=e;return"function"==typeof n})).forEach((t=>{let[i,r]=t;return n[i]=r.bind(e)})),n}const i=(0,g.Bj)((e=>n(e,{get:t})),(e=>e.bidId));return{bidRequest:i,bidderRequest:e=>n(e,{get:(n,r,o)=>"bids"===r?e.bids.map(i):t(n,r,o)})}}(n.bidderCode),U={};function R(e,t){const n=(0,b.BO)(t.metrics);n.checkpoint("addBidResponse"),U[e]=!0,n.measureTime("addBidResponse.validate",(()=>function(e,t){let{index:n=h.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(){let e=Object.keys(t);return w.every((n=>(0,f.mK)(e,n)&&!(0,f.mK)([void 0,null],t[n])))}function r(e){return`Invalid bid from ${t.bidderCode}. Ignoring bid: ${e}`}if(!e)return(0,g.JE)("No adUnitCode was supplied to addBidResponse."),!1;if(!t)return(0,g.JE)(`Some adapter tried to add an undefined bid for ${e}.`),!1;if(!i())return(0,g.vV)(r(`Bidder ${t.bidderCode} is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params.`)),!1;if("native"===t.mediaType&&!(0,d.Bm)(t,{index:n}))return(0,g.vV)(r("Native bid missing some required properties.")),!1;if("video"===t.mediaType&&!(0,c.vk)(t,{index:n}))return(0,g.vV)(r("Video bid does not have required vastUrl or renderer property")),!1;if("banner"===t.mediaType&&!function(e,t){let{index:n=h.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((t.width||0===parseInt(t.width,10))&&(t.height||0===parseInt(t.height,10)))return t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),!0;const i=n.getBidRequest(t),r=n.getMediaTypes(t),o=i&&i.sizes||r&&r.banner&&r.banner.sizes,s=(0,g.kK)(o);if(1===s.length){const[e,n]=s[0].split("x");return t.width=parseInt(e,10),t.height=parseInt(n,10),!0}return!1}(e,t,{index:n}))return(0,g.vV)(r("Banner bids require a width and height")),!1;return!0}(e,t)))?i(e,t):i.reject(e,t,u.Tf.uY)}const j=[];function _(){a(),o.$W.runWithBidder(e.code,(()=>{l.emit(u.qY.BIDDER_DONE,n),t(j,n.gdprConsent,n.uspConsent,n.gppConsent)}))}const $=S(n).measureTime("validate",(()=>n.bids.filter((t=>function(t){if(!e.isBidRequestValid(t))return(0,g.JE)(`Invalid bid sent to bidder ${e.code}: ${JSON.stringify(t)}`),!1;return!0}(k.bidRequest(t))))));if(0===$.length)return void _();const q={};$.forEach((e=>{q[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),B(e,$.map(k.bidRequest),k.bidderRequest(n),p,I,{onRequest:e=>l.emit(u.qY.BEFORE_BIDDER_HTTP,n,e),onResponse:t=>{T(e.code),j.push(t)},onPaapi:e=>{const t=q[e.bidId];t?O(t,e.config):(0,g.JE)("Received fledge auction configuration for an unknown bidId",e)},onError:(t,i)=>{i.timedOut||T(e.code),r.Ay.callBidderError(e.code,i,n),l.emit(u.qY.BIDDER_ERROR,{error:i,bidderRequest:n}),(0,g.vV)(`Server call for ${e.code} failed: ${t} ${i.status}. Continuing without bids.`)},onBid:t=>{const n=q[t.requestId];if(n){if(t.adapterCode=n.bidder,function(e,t){let n=m.u.get(t,"allowAlternateBidderCodes")||!1,i=m.u.get(t,"allowedAlternateBidderCodes");if(e&&t&&t!==e&&(i=(0,g.cy)(i)?i.map((e=>e.trim().toLowerCase())).filter((e=>!!e)).filter(g.hj):i,!n||(0,g.cy)(i)&&"*"!==i[0]&&!i.includes(e)))return!0;return!1}(t.bidderCode,n.bidder))return(0,g.JE)(`${t.bidderCode} is not a registered partner or known bidder of ${n.bidder}, hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.`),void i.reject(n.adUnitCode,t,u.Tf.yu);t.originalCpm=t.cpm,t.originalCurrency=t.currency,t.meta=t.meta||Object.assign({},t[n.bidder]);const e=Object.assign((0,s.O)(u.XQ.y,n),t,(0,g.Up)(n,C));R(n.adUnitCode,e)}else(0,g.JE)(`Bidder ${e.code} made bid for unknown request ID: ${t.requestId}. Ignoring.`),i.reject(null,t,u.Tf.gq)},onCompletion:_})}});function t(t,n,i,r){k(e,t,n,i,r)}}const B=(0,p.A_)("sync",(function(e,t,n,i,r,o){let{onRequest:s,onResponse:a,onPaapi:d,onError:c,onBid:u,onCompletion:l}=o;const f=S(n);l=f.startTiming("total").stopBefore(l);let p=f.measureTime("buildRequests",(()=>e.buildRequests(t,n)));if(!p||0===p.length)return void l();Array.isArray(p)||(p=[p]);const h=(0,g.U6)(l,p.length);p.forEach((t=>{const n=f.fork();function o(e){null!=e&&(e.metrics=n.fork().renameWith()),u(e)}const l=r((function(i,r){b();try{i=JSON.parse(i)}catch(e){}i={body:i,headers:{get:r.getResponseHeader.bind(r)}},a(i);try{i=n.measureTime("interpretResponse",(()=>e.interpretResponse(i,t)))}catch(t){return(0,g.vV)(`Bidder ${e.code} failed to interpret the server's response. Continuing without bids`,null,t),void h()}let s;i&&(0,g.cy)(i.fledgeAuctionConfigs)?(i.fledgeAuctionConfigs.forEach(d),s=i.bids):s=i,s&&((0,g.cy)(s)?s.forEach(o):o(s)),h()})),p=r((function(e,t){b(),c(e,t),h()}));s(t);const b=n.startTiming("net");function w(n){const i=t.options;return Object.assign(n,i,{browsingTopics:!(i?.hasOwnProperty("browsingTopics")&&!i.browsingTopics)&&((m.u.get(e.code,"topicsHeader")??!0)&&(0,y.io)(A.DL,(0,v.s)(E.tW,e.code)))})}switch(t.method){case"GET":i(`${t.url}${function(e){if(e)return`?${"object"==typeof e?(0,g.bL)(e):e}`;return""}(t.data)}`,{success:l,error:p},void 0,w({method:"GET",withCredentials:!0}));break;case"POST":i(t.url,{success:l,error:p},"string"==typeof t.data?t.data:JSON.stringify(t.data),w({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,g.JE)(`Skipping invalid request from ${e.code}. Request type ${t.type} must be GET or POST`),h()}}))}),"processBidderRequests"),k=(0,p.A_)("async",(function(e,t,n,i,s){const d=o.$W.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(d||!r.Ay.aliasRegistry[e.code])){let r=o.$W.getConfig("userSync.filterSettings"),d=e.getUserSyncs({iframeEnabled:!(!r||!r.iframe&&!r.all),pixelEnabled:!(!r||!r.image&&!r.all)},t,n,i,s);d&&(Array.isArray(d)||(d=[d]),d.forEach((t=>{a.zt.registerSync(t.type,e.code,t.url)})),a.zt.bidderDone(e.code))}}),"registerSyncs"),O=(0,p.A_)("sync",((e,t)=>{}),"addComponentAuction");function S(e){return(0,b.BO)(e.metrics).renameWith((t=>[`adapter.client.${t}`,`adapters.client.${e.bidderCode}.${t}`]))}},1580:(e,t,n)=>{n.d(t,{R:()=>a});var i=n(5901),r=n(1069);const o=new WeakMap,s=["debugging","adloox","criteo","outstream","adagio","spotx","browsi","brandmetrics","justtag","tncId","akamaidap","ftrackId","inskin","hadron","medianet","improvedigital","azerionedge","aaxBlockmeter","confiant","arcspan","airgrid","clean.io","a1Media","geoedge","mediafilter","qortex","dynamicAdBoost","contxtful","id5","lucead"];function a(e,t,n,a,d){if(!t||!e)return void(0,r.vV)("cannot load external script without url and moduleCode");if(!(0,i.mK)(s,t))return void(0,r.vV)(`${t} not whitelisted for loading external JavaScript`);a||(a=document);const c=f(a,e);if(c)return n&&"function"==typeof n&&(c.loaded?n():c.callbacks.push(n)),c.tag;const u=o.get(a)||{},l={loaded:!1,tag:null,callbacks:[]};return u[e]=l,o.set(a,u),n&&"function"==typeof n&&l.callbacks.push(n),(0,r.JE)(`module ${t} is loading external JavaScript`),function(t,n,i,o){i||(i=document);var s=i.createElement("script");s.type="text/javascript",s.async=!0;const a=f(i,e);a&&(a.tag=s);s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,n())}:s.onload=function(){n()};s.src=t,o&&(0,r.Bg)(s,o);return(0,r._s)(s,i),s}(e,(function(){l.loaded=!0;try{for(let e=0;e{n.d(t,{RD:()=>f,g4:()=>l});var i=n(3272),r=n(1069);const o={fetch:window.fetch.bind(window),makeRequest:(e,t)=>new Request(e,t),timeout(e,t){const n=new AbortController;let i=setTimeout((()=>{n.abort(),(0,r.vV)(`Request timeout after ${e}ms`,t),i=null}),e);return{signal:n.signal,done(){i&&clearTimeout(i)}}}},s="GET",a="POST",d="Content-Type";function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t,n)=>{let r;null==e||null!=n?.signal||i.$W.getConfig("disableAjaxTimeout")||(r=o.timeout(e,t),n=Object.assign({signal:r.signal},n));let s=o.fetch(t,n);return null!=r?.done&&(s=s.finally(r.done)),s};return null==t&&null==n||(r=(e=>function(i,r){const o=new URL(null==i?.url?i:i.url,document.location).origin;let s=e(i,r);return t&&t(o),n&&(s=s.finally((()=>n(o)))),s})(r)),r}function u(e,t){let{status:n,statusText:i="",headers:o,url:s}=e,a=0;function c(e){if(0===a)try{a=(new DOMParser).parseFromString(t,o?.get(d)?.split(";")?.[0])}catch(t){a=null,e&&e(t)}return a}return{readyState:XMLHttpRequest.DONE,status:n,statusText:i,responseText:t,response:t,responseType:"",responseURL:s,get responseXML(){return c(r.vV)},getResponseHeader:e=>o?.has(e)?o.get(e):null,toJSON(){return Object.assign({responseXML:c()},this)},timedOut:!1}}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=c(e,{request:t,done:n});return function(e,t,n){!function(e,t){const{success:n,error:i}="object"==typeof t&&null!=t?t:{success:"function"==typeof t?t:()=>null,error:(e,t)=>(0,r.vV)("Network error",e,t)};e.then((e=>e.text().then((t=>[e,t])))).then((e=>{let[t,r]=e;const o=u(t,r);t.ok||304===t.status?n(r,o):i(t.statusText,o)}),(e=>i("",Object.assign(u({status:0},""),{reason:e,timedOut:"AbortError"===e?.name}))))}(i(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n.method||(t?a:s);if(i===s&&t){const i=(0,r.Dl)(e,n);Object.assign(i.search,t),e=(0,r.c$)(i)}const c=new Headers(n.customHeaders);c.set(d,n.contentType||"text/plain");const u={method:i,headers:c};return i!==s&&t&&(u.body=t),n.withCredentials&&(u.credentials="include"),n.browsingTopics&&isSecureContext&&(u.browsingTopics=!0),o.makeRequest(e,u)}(e,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),t)}}const f=l();c()},1657:(e,t,n)=>{n.d(t,{AA:()=>B,HN:()=>Z,UZ:()=>k,ZV:()=>z,mO:()=>F,mX:()=>_,v8:()=>N});var i=n(1069),r=n(433),o=n(6833),s=n(2449),a=n(8693),d=n(5789),c=n(3272),u=n(8230),l=n(9214),f=n(5901),g=n(3895),p=n(1371),h=n(7314),m=n(2693),b=n(5023),y=n(9684),v=n(3018),E=n(5555),A=n(6894),w=n(7176),C=n(7873);const{syncUsers:T}=u.zt,I="started",B="inProgress",k="completed";b.on(v.qY.BID_ADJUSTMENT,(function(e){!function(e){let t=(0,w.y)(e.cpm,e);t>=0&&(e.cpm=t)}(e)}));const O=4,S={},U={},R=[],j=(0,C.m)();function _(e){let{adUnits:t,adUnitCodes:n,callback:a,cbTimeout:u,labels:l,auctionId:m,ortb2Fragments:w,metrics:C}=e;C=(0,A.BO)(C);const _=t,W=l,V=n,P=m||(0,i.lk)(),M=u,F=new Set,z=(0,E.v)();let L,J,K,Y,Q=[],Z=a,X=[],te=[],ne=[],ie=[],re=[];function oe(){return{auctionId:P,timestamp:L,auctionEnd:J,auctionStatus:Y,adUnits:_,adUnitCodes:V,labels:W,bidderRequests:X,noBids:ne,bidsReceived:te,bidsRejected:Q,winningBids:ie,timeout:M,metrics:C,seatNonBids:re}}function se(e){if(e?b.emit(v.qY.AUCTION_TIMEOUT,oe()):clearTimeout(K),void 0===J){let n=[];e&&((0,i.OG)(`Auction ${P} timedOut`),n=X.filter((e=>!F.has(e.bidderRequestId))).flatMap((e=>e.bids)),n.length&&b.emit(v.qY.BID_TIMEOUT,n)),Y=k,J=Date.now(),C.checkpoint("auctionEnd"),C.timeBetween("requestBids","auctionEnd","requestBids.total"),C.timeBetween("callBids","auctionEnd","requestBids.callBids"),z.resolve(),b.emit(v.qY.AUCTION_END,oe()),x(_,(function(){try{if(null!=Z){const t=te.filter((e=>V.includes(e.adUnitCode))).reduce(ee,{});Z.apply(j,[t,e,P]),Z=null}}catch(e){(0,i.vV)("Error executing bidsBackHandler",null,e)}finally{n.length&&y.Ay.callTimedOutBidders(t,n,M);let e=c.$W.getConfig("userSync")||{};e.enableOverride||T(e.syncDelay)}}))}}function ae(){c.$W.resetBidder(),(0,i.fH)(`Bids Received for Auction with id: ${P}`,te),Y=k,se(!1)}function de(e){F.add(e)}function ce(e){e.forEach((e=>{var t;t=e,X=X.concat(t)}));let t={},n={bidRequests:e,run:()=>{K=setTimeout((()=>se(!0)),M),Y=B,b.emit(v.qY.AUCTION_INIT,oe());let n=function(e,t){let{index:n=h.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=0,u=!1,l=new Set,m={};function y(){a--,u&&0===a&&e()}function A(e,t,n){return m[t.requestId]=!0,function(e,t){let{index:n=h.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.getBidderRequest(e),o=n.getAdUnit(e),s=r&&r.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,i.vE)(),requestTimestamp:e.requestTimestamp||s,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:t}),null!=o?.ttlBuffer&&(e.ttlBuffer=o.ttlBuffer);e.timeToRespond=e.responseTimestamp-e.requestTimestamp}(t,e),a++,n(y)}function w(e,a){A(e,a,(e=>{let u=function(e){let{index:t=h.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b.emit(v.qY.BID_ADJUSTMENT,e);const n=t.getBidRequest(e)?.renderer||t.getAdUnit(e).renderer,i=e.mediaType,r=t.getMediaTypes(e),s=r&&r[i];var a=s&&s.renderer,u=null;a&&a.url&&a.render&&(!0!==a.backupOnly||!e.renderer)?u=a:n&&n.url&&n.render&&(!0!==n.backupOnly||!e.renderer)&&(u=n);u&&(e.renderer=d.A4.install({url:u.url,config:u.options}),e.renderer.setRender(u.render));const l=G(e.mediaType,r,c.$W.getConfig("mediaTypePriceGranularity")),f=(0,o.j)(e.cpm,"object"==typeof l?l:c.$W.getConfig("customPriceBucket"),c.$W.getConfig("currency.granularityMultiplier"));return e.pbLg=f.low,e.pbMg=f.med,e.pbHg=f.high,e.pbAg=f.auto,e.pbDg=f.dense,e.pbCg=f.custom,e}(a);b.emit(v.qY.BID_ACCEPTED,u),u.mediaType===p.G_?function(e,t,n){let{index:o=h.n.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=!0;const a=(0,r.A)(o.getMediaTypes({requestId:t.originalRequestId||t.requestId,adUnitId:t.adUnitId}),"video"),d=a&&(0,r.A)(a,"context"),u=a&&(0,r.A)(a,"useCacheKey");c.$W.getConfig("cache.url")&&(u||d!==g.H6)&&(!t.videoCacheKey||c.$W.getConfig("cache.ignoreBidderCacheKey")?(s=!1,H(e,t,n,a)):t.vastUrl||((0,i.vV)("videoCacheKey specified but not required vastUrl for video bid"),s=!1));s&&(N(e,t),n())}(t,u,e):((0,s.l6)(u)&&(0,s.gs)(u,n.getAdUnit(u)),N(t,u),e())}))}function C(e,n,r){return A(e,n,(e=>{n.rejectionReason=r,(0,i.JE)(`Bid from ${n.bidder||"unknown bidder"} was rejected: ${r}`,n),b.emit(v.qY.BID_REJECTED,n),t.addBidRejected(n),e()}))}function T(){let n=this,r=t.getBidRequests();const o=c.$W.getConfig("auctionOptions");if(l.add(n),o&&!(0,i.Im)(o)){const e=o.secondaryBidders;e&&!r.every((t=>(0,f.mK)(e,t.bidderCode)))&&(r=r.filter((t=>!(0,f.mK)(e,t.bidderCode))))}u=r.every((e=>l.has(e))),n.bids.forEach((e=>{m[e.bidId]||(t.addNoBid(e),b.emit(v.qY.NO_BID,e))})),u&&0===a&&e()}return{addBidResponse:function(){function e(e,t){$.call({dispatch:w},e,t,(()=>{let n=!1;return i=>{n||(C(e,t,i),n=!0)}})())}return e.reject=C,e}(),adapterDone:function(){q(E.k.resolve()).finally((()=>T.call(this)))}}}(ae,this);y.Ay.callBids(_,e,n.addBidResponse,n.adapterDone,{request(e,n){u(S,n),u(t,e),U[e]||(U[e]={SRA:!0,origin:n}),t[e]>1&&(U[e].SRA=!1)},done(e){S[e]--,R[0]&&a(R[0])&&R.shift()}},M,de,w)}};function a(e){let t=!0,n=c.$W.getConfig("maxRequestsPerOrigin")||O;return e.bidRequests.some((e=>{let i=1,r=void 0!==e.src&&e.src===v.RW.xM?"s2s":e.bidderCode;return U[r]&&(!1===U[r].SRA&&(i=Math.min(e.bids.length,n)),S[U[r].origin]+i>n&&(t=!1)),!t})),t&&e.run(),t}function u(e,t){void 0===e[t]?e[t]=1:e[t]++}a(n)||((0,i.JE)("queueing auction due to limited endpoint capacity"),R.push(n))}return b.on(v.qY.SEAT_NON_BID,(e=>{var t;e.auctionId===P&&(t=e.seatnonbid,re=re.concat(t))})),{addBidReceived:function(e){te=te.concat(e)},addBidRejected:function(e){Q=Q.concat(e)},addNoBid:function(e){ne=ne.concat(e)},callBids:function(){Y=I,L=Date.now();let e=C.measureTime("requestBids.makeRequests",(()=>y.Ay.makeBidRequests(_,L,P,M,W,w,C)));(0,i.fH)(`Bids Requested for Auction with id: ${P}`,e),C.checkpoint("callBids"),e.length<1?((0,i.JE)("No valid bid requests returned for auction"),ae()):D.call({dispatch:ce,context:this},e)},addWinningBid:function(e){const n=t.find((t=>t.adUnitId===e.adUnitId));ie=ie.concat(e),(0,i.Wz)(e),y.Ay.callBidWonBidder(e.adapterCode||e.bidder,e,t),n&&!n.deferBilling&&y.Ay.callBidBillableBidder(e)},setBidTargeting:function(e){y.Ay.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:()=>ie,getAuctionStart:()=>L,getAuctionEnd:()=>J,getTimeout:()=>M,getAuctionId:()=>P,getAuctionStatus:()=>Y,getAdUnits:()=>_,getAdUnitCodes:()=>V,getBidRequests:()=>X,getBidsReceived:()=>te,getNoBids:()=>ne,getNonBids:()=>re,getFPD:()=>w,getMetrics:()=>C,end:z.promise}}const $=(0,l.A_)("sync",(function(e,t,n){this.dispatch.call(null,e,t)}),"addBidResponse"),q=(0,l.A_)("sync",(e=>e),"responsesReady"),D=(0,l.A_)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),x=(0,l.A_)("async",(function(e,t){t&&t()}),"bidsBackCallback");function N(e,t){!function(e){let t;const n=!0===m.u.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(n||e.dealId)&&(t=function(e,t){let{index:n=h.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return{};const i=n.getBidRequest(t);var r={};const o=Z(t.mediaType,e);X(r,o,t,i),e&&m.u.getOwn(e,v.iD.DY)&&(X(r,m.u.ownSettingsFor(e),t,i),t.sendStandardTargeting=m.u.get(e,"sendStandardTargeting"));t.native&&(r=Object.assign({},r,(0,s.Zj)(t)));return r}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},t)}(t),(0,A.BO)(t.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(t),b.emit(v.qY.BID_RESPONSE,t)}const W=e=>{(0,a.t)(e.map((e=>e.bidResponse)),(function(t,n){n.forEach(((n,r)=>{const{auctionInstance:o,bidResponse:s,afterBidAdded:d}=e[r];t?(0,i.JE)(`Failed to save to the video cache: ${t}. Video bid must be discarded.`):""===n.uuid?(0,i.JE)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(s.videoCacheKey=n.uuid,s.vastUrl||(s.vastUrl=(0,a.M)(s.videoCacheKey)),N(o,s),d())}))}))};let V,P;c.$W.getConfig("cache",(e=>{V="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,P="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));const M=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,n=[[]],i=!1;const r=e=>e();return function(o,s,a){const d=P>0?e:r;n[n.length-1].length>=V&&n.push([]),n[n.length-1].push({auctionInstance:o,bidResponse:s,afterBidAdded:a}),i||(i=!0,d((()=>{n.forEach(t),n=[[]],i=!1}),P))}}(),H=(0,l.A_)("async",(function(e,t,n,i){M(e,t,n)}),"callPrebidCache");function G(e,t,n){if(e&&n){if(e===p.G_){const e=(0,r.A)(t,`${p.G_}.context`,"instream");if(n[`${p.G_}-${e}`])return n[`${p.G_}-${e}`]}return n[e]}}const F=function(e){let{index:t=h.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=G(e.mediaType,t.getMediaTypes(e),c.$W.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&n?"string"==typeof n?n:"custom":c.$W.getConfig("priceGranularity")},z=e=>t=>{const n=e||F(t);return n===v.UE.Q8?t.pbAg:n===v.UE.O0?t.pbDg:n===v.UE.$L?t.pbLg:n===v.UE.E_?t.pbMg:n===v.UE.RY?t.pbHg:n===v.UE.Q4?t.pbCg:void 0},L=()=>e=>e.creativeId?e.creativeId:"",J=()=>e=>e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:"",K=()=>e=>e.meta&&(e.meta.networkId||e.meta.networkName)?(0,r.A)(e,"meta.networkName")||(0,r.A)(e,"meta.networkId"):"",Y=()=>e=>e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:"";function Q(e,t){return{key:e,val:"function"==typeof t?function(e,n){return t(e,n)}:function(e){return(0,i._W)(e,t)}}}function Z(e,t){const n=v.xS,o=Object.assign({},m.u.settingsFor(null));if(o[v.iD.DY]||(o[v.iD.DY]=function(){const e=v.xS;return[Q(e.BIDDER,"bidderCode"),Q(e.AD_ID,"adId"),Q(e.PRICE_BUCKET,z()),Q(e.SIZE,"size"),Q(e.DEAL,"dealId"),Q(e.SOURCE,"source"),Q(e.FORMAT,"mediaType"),Q(e.ADOMAIN,J()),Q(e.ACAT,Y()),Q(e.DSP,K()),Q(e.CRID,L())]}()),"video"===e){const e=o[v.iD.DY].slice();if(o[v.iD.DY]=e,[n.UUID,n.CACHE_ID].forEach((t=>{void 0===(0,f.I6)(e,(e=>e.key===t))&&e.push(Q(t,"videoCacheKey"))})),c.$W.getConfig("cache.url")&&(!t||!1!==m.u.get(t,"sendStandardTargeting"))){const t=(0,i.Dl)(c.$W.getConfig("cache.url"));void 0===(0,f.I6)(e,(e=>e.key===n.CACHE_HOST))&&e.push(Q(n.CACHE_HOST,(function(e){return(0,r.A)(e,`adserverTargeting.${n.CACHE_HOST}`)?e.adserverTargeting[n.CACHE_HOST]:t.hostname})))}}return o}function X(e,t,n,r){var o=t[v.iD.DY];return n.size=n.getSize(),(o||[]).forEach((function(o){var s=o.key,a=o.val;if(e[s]&&(0,i.JE)("The key: "+s+" is being overwritten"),(0,i.fp)(a))try{a=a(n,r)}catch(e){(0,i.vV)("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&s!==v.xS.DEAL&&s!==v.xS.ACAT&&s!==v.xS.DSP&&s!==v.xS.CRID||!(0,i.xQ)(a)&&null!=a?e[s]=a:(0,i.fH)("suppressing empty key '"+s+"' from adserver targeting")})),e}function ee(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},7314:(e,t,n)=>{n.d(t,{n:()=>f});var i=n(1069),r=n(1657);function o(e){Object.assign(this,{getAuction(t){let{auctionId:n}=t;if(null!=n)return e().find((e=>e.getAuctionId()===n))},getAdUnit(t){let{adUnitId:n}=t;if(null!=n)return e().flatMap((e=>e.getAdUnits())).find((e=>e.adUnitId===n))},getMediaTypes(e){let{adUnitId:t,requestId:n}=e;if(null!=n){const e=this.getBidRequest({requestId:n});if(null!=e&&(null==t||e.adUnitId===t))return e.mediaTypes}else if(null!=t){const e=this.getAdUnit({adUnitId:t});if(null!=e)return e.mediaTypes}},getBidderRequest(t){let{requestId:n,bidderRequestId:i}=t;if(null!=n||null!=i){let t=e().flatMap((e=>e.getBidRequests()));return null!=i&&(t=t.filter((e=>e.bidderRequestId===i))),null==n?t[0]:t.find((e=>e.bids&&null!=e.bids.find((e=>e.bidId===n))))}},getBidRequest(t){let{requestId:n}=t;if(null!=n)return e().flatMap((e=>e.getBidRequests())).flatMap((e=>e.bids)).find((e=>e&&e.bidId===n))}})}var s=n(3018),a=n(6894),d=n(7046),c=n(7863),u=n(3272);const l="minBidCacheTTL";const f=function(){let e=null;const t=(0,d.H)({startTime:e=>e.end.then((()=>e.getAuctionEnd())),ttl:t=>null==e?null:t.end.then((()=>1e3*Math.max(e,...t.getBidsReceived().map(c.L))))});(0,c.u)((()=>{null!=e&&t.refresh()})),u.$W.getConfig(l,(n=>{const i=e;e=n?.[l],e="number"==typeof e?e:null,i!==e&&t.refresh()}));const n={onExpiry:t.onExpiry};function f(e){for(const n of t)if(n.getAuctionId()===e)return n}function g(){return t.toArray().flatMap((e=>e.getBidsReceived()))}return n.addWinningBid=function(e){const t=(0,a.BO)(e.metrics);t.checkpoint("bidWon"),t.timeBetween("auctionEnd","bidWon","render.pending"),t.timeBetween("requestBids","bidWon","render.e2e");const n=f(e.auctionId);n?(e.status=s.tl.Un,n.addWinningBid(e)):(0,i.JE)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:e=>e.getAuctionStatus()===r.UZ},getAdUnitCodes:{post:i.hj}}).forEach((e=>{let[i,{name:r=i,pre:o,post:s}]=e;const a=null==o?e=>e[r]():e=>o(e)?e[r]():[],d=null==s?e=>e:e=>e.filter(s);n[i]=()=>d(t.toArray().flatMap(a))})),n.getAllBidsForAdUnitCode=function(e){return g().filter((t=>t&&t.adUnitCode===e))},n.createAuction=function(e){const n=(0,r.mX)(e);return function(e){t.add(e)}(n),n},n.findBidByAdId=function(e){return g().find((t=>t.adId===e))},n.getStandardBidderAdServerTargeting=function(){return(0,r.HN)()[s.iD.DY]},n.setStatusForBids=function(e,t){let i=n.findBidByAdId(e);if(i&&(i.status=t),i&&t===s.tl.ht){const e=f(i.auctionId);e&&e.setBidTargeting(i)}},n.getLastAuctionId=function(){const e=t.toArray();return e.length&&e[e.length-1].getAuctionId()},n.clearAllAuctions=function(){t.clear()},n.index=new o((()=>t.toArray())),n}()},7863:(e,t,n)=>{n.d(t,{L:()=>a,u:()=>d});var i=n(3272),r=n(1069);let o=1;const s=[];function a(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:o)}function d(e){s.push(e)}i.$W.getConfig("ttlBuffer",(e=>{if("number"==typeof e.ttlBuffer){const t=o;o=e.ttlBuffer,t!==o&&s.forEach((e=>e(o)))}else(0,r.vV)("Invalid value for ttlBuffer",e.ttlBuffer)}))},2693:(e,t,n)=>{n.d(t,{u:()=>a});var i=n(433),r=n(1069),o=n(7873),s=n(3018);const a=new class{constructor(e,t){this.getSettings=e,this.defaultScope=t}get(e,t){let n=this.getOwn(e,t);return void 0===n&&(n=this.getOwn(null,t)),n}getOwn(e,t){return e=this.#e(e),(0,i.A)(this.getSettings(),`${e}.${t}`)}getScopes(){return Object.keys(this.getSettings()).filter((e=>e!==this.defaultScope))}settingsFor(e){return(0,r.D9)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}ownSettingsFor(e){return e=this.#e(e),this.getSettings()[e]||{}}#e(e){return null==e?this.defaultScope:e}}((()=>(0,o.m)().bidderSettings||{}),s.iD.iS)},3597:(e,t,n)=>{n.d(t,{O:()=>o});var i=n(1069);function r(e){let{src:t="client",bidder:n="",bidId:r,transactionId:o,adUnitId:s,auctionId:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var d=t,c=e||0;Object.assign(this,{bidderCode:n,width:0,height:0,statusMessage:function(){switch(c){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}(),adId:(0,i.s0)(),requestId:r,transactionId:o,adUnitId:s,auctionId:a,mediaType:"banner",source:d}),this.getStatusCode=function(){return c},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,adUnitId:this.adUnitId,auctionId:this.auctionId}}}function o(e,t){return new r(e,t)}},3272:(e,t,n)=>{n.d(t,{$W:()=>g,Ov:()=>c});var i=n(6833),r=n(5901),o=n(1069),s=n(433),a=n(3018);const d="TRUE"===(0,o.Ez)(a.M).toUpperCase(),c="random",u={};u[c]=!0,u.fixed=!0;const l=c,f={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};const g=function(){let e,t,n,a=[],c=null;function g(){function s(e){return c[e].val}function a(e,t){c[e].val=t}e={};const c={publisherDomain:{set(e){null!=e&&(0,o.JE)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),a("publisherDomain",e)}},priceGranularity:{val:f.MEDIUM,set(e){h(e)&&("string"==typeof e?a("priceGranularity",p(e)?e:f.MEDIUM):(0,o.Qd)(e)&&(a("customPriceBucket",e),a("priceGranularity",f.CUSTOM),(0,o.OG)("Using custom price granularity")))}},customPriceBucket:{val:{},set(){}},mediaTypePriceGranularity:{val:{},set(e){null!=e&&a("mediaTypePriceGranularity",Object.keys(e).reduce(((t,n)=>(h(e[n])?"string"==typeof e?t[n]=p(e[n])?e[n]:s("priceGranularity"):(0,o.Qd)(e)&&(t[n]=e[n],(0,o.OG)(`Using custom price granularity for ${n}`)):(0,o.JE)(`Invalid price granularity for media type: ${n}`),t)),{}))}},bidderSequence:{val:l,set(e){u[e]?a("bidderSequence",e):(0,o.JE)(`Invalid order: ${e}. Bidder Sequence was not set.`)}},auctionOptions:{val:{},set(e){(function(e){if(!(0,o.Qd)(e))return(0,o.JE)("Auction Options must be an object"),!1;for(let t of Object.keys(e)){if("secondaryBidders"!==t&&"suppressStaleRender"!==t)return(0,o.JE)(`Auction Options given an incorrect param: ${t}`),!1;if("secondaryBidders"===t){if(!(0,o.cy)(e[t]))return(0,o.JE)(`Auction Options ${t} must be of type Array`),!1;if(!e[t].every(o.O8))return(0,o.JE)(`Auction Options ${t} must be only string`),!1}else if("suppressStaleRender"===t&&!(0,o.Lm)(e[t]))return(0,o.JE)(`Auction Options ${t} must be of type boolean`),!1}return!0})(e)&&a("auctionOptions",e)}}};let g={debug:d,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,timeoutBuffer:400,disableAjaxTimeout:false,maxNestedIframes:10};function p(e){return(0,r.I6)(Object.keys(f),(t=>e===f[t]))}function h(e){if(!e)return(0,o.vV)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)p(e)||(0,o.JE)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,o.Qd)(e)&&!(0,i.q)(e))return(0,o.vV)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}Object.defineProperties(g,Object.fromEntries(Object.entries(c).map((e=>{let[t,n]=e;return[t,Object.assign({get:s.bind(null,t),set:a.bind(null,t),enumerable:!0},n)]})))),t&&A(Object.keys(t).reduce(((e,n)=>(t[n]!==g[n]&&(e[n]=g[n]||{}),e)),{})),t=g,n={}}function p(){if(c&&n&&(0,o.Qd)(n[c])){let e=n[c];const i=new Set(Object.keys(t).concat(Object.keys(e)));return(0,r.A6)(i).reduce(((n,i)=>(void 0===e[i]?n[i]=t[i]:void 0===t[i]?n[i]=e[i]:(0,o.Qd)(e[i])?n[i]=(0,o.D9)({},t[i],e[i]):n[i]=e[i],n)),{})}return Object.assign({},t)}const[h,m]=[p,function(){const e=p();return Object.defineProperty(e,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),e}].map((e=>function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){const t=arguments.length<=0?void 0:arguments[0];return t?(0,s.A)(e(),t):p()}return E(...arguments)})),[b,y]=[m,h].map((e=>function(){let t=e(...arguments);return t&&"object"==typeof t&&(t=(0,o.Go)(t)),t}));function v(n){if(!(0,o.Qd)(n))return void(0,o.vV)("setConfig options must be an object");let i=Object.keys(n),r={};i.forEach((i=>{let s=n[i];(0,o.Qd)(e[i])&&(0,o.Qd)(s)&&(s=Object.assign({},e[i],s));try{r[i]=t[i]=s}catch(e){(0,o.JE)(`Cannot set config for property ${i} : `,e)}})),A(r)}function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t;if("string"!=typeof e&&(i=e,e="*",n=t||{}),"function"!=typeof i)return void(0,o.vV)("listener must be a function");const r={topic:e,callback:i};return a.push(r),n.init&&i("*"===e?m():{[e]:m(e)}),function(){a.splice(a.indexOf(r),1)}}function A(e){const t=Object.keys(e);a.filter((e=>(0,r.mK)(t,e.topic))).forEach((t=>{t.callback({[t.topic]:e[t.topic]})})),a.filter((e=>"*"===e.topic)).forEach((t=>t.callback(e)))}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{!function(e){if(!(0,o.Qd)(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,o.Qd)(e.config))throw"setBidderConfig bidder options must contain a config object"}(e),e.bidders.forEach((i=>{n[i]||(n[i]={}),Object.keys(e.config).forEach((r=>{let s=e.config[r];if((0,o.Qd)(s)){const e=t?o.D9:Object.assign;n[i][r]=e({},n[i][r]||{},s)}else n[i][r]=s}))}))}catch(e){(0,o.vV)(e)}}function C(e,t){c=e;try{return t()}finally{T()}}function T(){c=null}return g(),{getCurrentBidder:function(){return c},resetBidder:T,getConfig:m,getAnyConfig:h,readConfig:b,readAnyConfig:y,setConfig:v,mergeConfig:function(e){if(!(0,o.Qd)(e))return void(0,o.vV)("mergeConfig input must be an object");const t=(0,o.D9)(p(),e);return v({...t}),t},setDefaults:function(n){(0,o.Qd)(e)?(Object.assign(e,n),Object.assign(t,n)):(0,o.vV)("defaults must be an object")},resetConfig:g,runWithBidder:C,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var n=arguments.length,i=new Array(n),r=0;r{n.d(t,{B1:()=>s,SL:()=>p,ad:()=>u,et:()=>l,mW:()=>d,o2:()=>f,t6:()=>c});var i=n(1069),r=n(5555),o=n(3272);const s=Object.freeze({});Object.freeze({});class a{#t;#n;#i;#r;#o=!0;#s;generatedTime;hashFields;constructor(){this.reset()}#a(e){this.#r=!0,this.#n=e,this.#i.resolve(e)}reset(){this.#i=(0,r.v)(),this.#t=!1,this.#n=null,this.#r=!1,this.generatedTime=null}enable(){this.#t=!0}get enabled(){return this.#t}get ready(){return this.#r}get promise(){return this.#r?r.k.resolve(this.#n):(this.#t||this.#a(null),this.#i.promise)}setConsentData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,i.vE)();this.generatedTime=t,this.#o=!0,this.#a(e)}getConsentData(){return this.#n}get hash(){return this.#o&&(this.#s=(0,i.PB)(JSON.stringify(this.#n&&this.hashFields?this.hashFields.map((e=>this.#n[e])):this.#n)),this.#o=!1),this.#s}}const d=new class extends a{hashFields=["gdprApplies","consentString"];getConsentMeta(){const e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,i.O8)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}},c=new class extends a{getConsentMeta(){const e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}},u=new class extends a{hashFields=["applicableSections","gppString"];getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},l=(()=>{function e(){return!!o.$W.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset(){},get promise(){return r.k.resolve(e())},get hash(){return e()?"1":"0"}}})(),f=function(){const e={},t={},n={};return{register(i,r,o){o&&((e[r]=e[r]||{})[i]=o,t.hasOwnProperty(r)?t[r]!==o&&(t[r]=n):t[r]=o)},get(i){const r={modules:e[i]||{}};return t.hasOwnProperty(i)&&t[i]!==n&&(r.gvlid=t[i]),r}}}(),g={gdpr:d,usp:c,gpp:u,coppa:l};const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;return e=Object.entries(e),Object.assign({get promise(){return r.k.all(e.map((e=>{let[t,n]=e;return n.promise.then((e=>[t,e]))}))).then((e=>Object.fromEntries(e)))},get hash(){return(0,i.PB)(e.map((e=>{let[t,n]=e;return n.hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((t=>{return[t,(n=t,function(){return Object.fromEntries(e.map((e=>{let[t,i]=e;return[t,i[n]()]})))})];var n}))))}()},6833:(e,t,n)=>{n.d(t,{j:()=>f,q:()=>p});var i=n(5901),r=n(1069),o=n(3272);const s=2,a={buckets:[{max:5,increment:.5}]},d={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},u={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},l={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=""),{low:""===i?"":g(e,a,n),med:""===i?"":g(e,d,n),high:""===i?"":g(e,c,n),auto:""===i?"":g(e,l,n),dense:""===i?"":g(e,u,n),custom:""===i?"":g(e,t,n)}}function g(e,t,n){let a="";if(!p(t))return a;const d=t.buckets.reduce(((e,t)=>e.max>t.max?e:t),{max:0});let c=0,u=(0,i.I6)(t.buckets,(t=>{if(e>d.max*n){let e=t.precision;void 0===e&&(e=s),a=(t.max*n).toFixed(e)}else{if(e<=t.max*n&&e>=c*n)return t.min=c,t;c=t.max}}));return u&&(a=function(e,t,n){const i=void 0!==t.precision?t.precision:s,a=t.increment*n,d=t.min*n;let c=Math.floor,u=o.$W.getConfig("cpmRoundingFunction");"function"==typeof u&&(c=u);let l,f,g=Math.pow(10,i+2),p=(e*g-d*g)/(a*g);try{l=c(p)*a+d}catch(e){f=!0}(f||"number"!=typeof l)&&((0,r.JE)("Invalid rounding function passed in config"),l=Math.floor(p)*a+d);return l=Number(l.toFixed(10)),l.toFixed(i)}(e,u,n)),a}function p(e){if((0,r.Im)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;let t=!0;return e.buckets.forEach((e=>{e.max&&e.increment||(t=!1)})),t}},6031:(e,t,n)=>{n.d(t,{H:()=>a,k:()=>s});var i=n(5555),r=n(1069),o=n(4595);const s=(0,n(9214).A_)("sync",(function(e){return o.G})),a=function(){const e={};return function(t){const n=s(t);return e.hasOwnProperty(n)||(e[n]=new i.k((e=>{const t=(0,r.CA)();t.srcdoc=`