/* prebid.js v9.1.0 Updated: 2024-06-20 Modules: adfBidAdapter, openxBidAdapter, pubmaticBidAdapter, rubiconBidAdapter, consentManagementTcf, gptPreAuction, tcfControl, schain, bidViewability */ 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 r,t={70433:(r,t,e)=>{function n(r,t,e,n,o){for(t=t.split?t.split("."):t,n=0;nn})},68128:r=>{ /* * @license MIT * Fun Hooks v0.9.10 * (c) @snapwich */ u.SYNC=1,u.ASYNC=2,u.QUEUE=4;var t="fun-hooks";var e=Object.freeze({useProxy:!0,ready:0}),n=new WeakMap,o="2,1,0"===[1].reduce((function(r,t,e){return[r,t,e]}),2).toString()?Array.prototype.reduce:function(r,t){var e,n=Object(this),o=n.length>>>0,i=0;if(t)e=t;else{for(;i{function n(r,t,e){t.split&&(t=t.split("."));for(var n,o,i=0,f=t.length,u=r;in})},45751:(r,t,e)=>{function n(r){var t,e,o;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(o=r[t])&&"object"==typeof o?n(o):o;return e}if("[object Object]"===Object.prototype.toString.call(r)){for(t in e={},r)"__proto__"===t?Object.defineProperty(e,t,{value:n(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(o=r[t])&&"object"==typeof o?n(o):o;return e}return r}e.d(t,{Q:()=>n})}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.m=t,r=[],n.O=(t,e,o,i)=>{if(!e){var f=1/0;for(l=0;l=i)&&Object.keys(n.O).every((r=>n.O[r](e[a])))?e.splice(a--,1):(u=!1,i0&&r[l-1][2]>i;l--)r[l]=r[l-1];r[l]=[e,o,i]},n.n=r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return n.d(t,{a:t}),t},n.d=(r,t)=>{for(var e in t)n.o(t,e)&&!n.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),n.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),n.r=r=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},(()=>{var r={39673:0};n.O.j=t=>0===r[t];var t=(t,e)=>{var o,i,f=e[0],u=e[1],a=e[2],c=0;if(f.some((t=>0!==r[t]))){for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(a)var l=a(n)}for(t&&t(e);cn(42627)));o=n.O(o)})(); (self.pbjsChunk=self.pbjsChunk||[]).push([[60802],{95789:(e,t,n)=>{n.d(t,{A4:()=>c,J7:()=>l,Pg:()=>u});var r=n(41580),i=n(91069),o=n(70433),s=n(15901);const a=(0,n(7873).m)(),d="outstream";function c(e){const{url:t,config:n,id:c,callback:l,loaded:u,adUnitCode:g,renderNow:f}=e;this.url=t,this.config=n,this.handlers={},this.id=c,this.renderNow=f,this.loaded=u,this.cmd=[],this.push=e=>{"function"==typeof e?this.loaded?e.call():this.cmd.push(e):(0,i.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=l||(()=>{this.loaded=!0,this.process()}),this.render=function(){const e=arguments,n=()=>{this._render?this._render.apply(this,e):(0,i.logWarn)("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 r=(0,o.A)(n,"renderer"),i=!!(r&&r.url&&r.render),d=(0,o.A)(n,"mediaTypes.video.renderer"),c=!!(d&&d.url&&d.render);return!!(i&&!0!==r.backupOnly||c&&!0!==d.backupOnly)}(g)?f?n():(this.cmd.unshift(n),(0,r.R)(t,d,this.callback,this.documentContext)):((0,i.logWarn)(`External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ${g}`),n())}.bind(this)}function l(e){return!(!e||!e.url&&!e.renderNow)}function u(e,t,n){let r=null;e.config&&e.config.documentResolver&&(r=e.config.documentResolver(t,document,n)),r||(r=document),e.documentContext=r,e.render(t,e.documentContext)}c.install=function(e){let{url:t,config:n,id:r,callback:i,loaded:o,adUnitCode:s,renderNow:a}=e;return new c({url:t,config:n,id:r,callback:i,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,i.logMessage)(`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,i.logError)("Error processing Renderer command: ",e)}}},76811:(e,t,n)=>{n.d(t,{DL:()=>l,Ml:()=>i,Ue:()=>r,VJ:()=>g,hE:()=>u,hq:()=>c,mo:()=>d,qX:()=>o,uc:()=>a,yl:()=>s});const r="accessDevice",i="syncUser",o="enrichUfpd",s="enrichEids",a="fetchBids",d="reportAnalytics",c="transmitEids",l="transmitUfpd",u="transmitPreciseGeo",g="transmitTid"},83441:(e,t,n)=>{n.d(t,{s:()=>i});var r=n(11445);const i=(0,n(2604).ZI)((e=>r.Ay.resolveAlias(e)))},45569:(e,t,n)=>{n.d(t,{Tn:()=>a,fW:()=>o,tW:()=>i,tp:()=>r,zu:()=>s});const r="prebid",i="bidder",o="userId",s="rtd",a="analytics"},2604:(e,t,n)=>{n.d(t,{Dk:()=>s,Ii:()=>o,TQ:()=>f,U3:()=>m,XG:()=>l,ZI:()=>p,Zw:()=>c,bt:()=>u,e3:()=>g,iK:()=>a,q7:()=>d});var r=n(45569),i=n(16833);const o="component",s=o+"Type",a=o+"Name",d="adapterCode",c="storageType",l="configName",u="syncType",g="syncUrl",f="_config";function p(e){return function(t,n,i){const c={[s]:t,[a]:n,[o]:`${t}.${n}`};return t===r.tW&&(c[d]=e(n)),m(Object.assign(c,i))}}const m=(0,i.A_)("sync",(e=>e))},3066:(e,t,n)=>{n.d(t,{$V:()=>f,$p:()=>h,Vx:()=>d,ZP:()=>m,l7:()=>a,nl:()=>u,p4:()=>p,uD:()=>g});var r=n(70433),i=n(43272),o=n(95139),s=n(76811);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 l(e){return Object.assign({get(){},run(e,t,n,r,i){const o=n&&n[r];if(f(o)&&i()){const e=this.get(o);void 0===e?delete n[r]:n[r]=e}}},e)}function u(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 i=[];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,r.A)(n,o);if(i.push(e.run(n,o,a,s,d.bind(null,e))),!1===t[e.name])return}})),i.filter((e=>null!=e))}}function g(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0)}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.io;return function(n){return!t(e,n)}}function m(){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(l)}const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;const t=u(m(e)),n=u(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(l)}(e));return function(e){const r={};return{ortb2:n=>(t(r,n,e),n),bidRequest:t=>(n(r,t,e),t)}}}();(0,o.qB)(s.VJ,"enableTIDs config",(()=>{if(!i.$W.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},95139:(e,t,n)=>{n.d(t,{io:()=>s,qB:()=>o});var r=n(91069),i=n(2604);const[o,s]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.prefixLog)("Activity control:");const t={};function n(e){return t[e]=t[e]||[]}function o(t,n,r,o){let s;try{s=r(o)}catch(r){e.logError(`Exception in rule ${n} for '${t}'`,r),s={allow:!1,reason:r}}return s&&Object.assign({activity:t,name:n,component:o[i.Ii]},s)}const s={};function a(t){let{activity:n,name:r,allow:i,reason:o,component:a}=t;const d=`${r} ${i?"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),(i?e.logInfo:e.logWarn).apply(e,t)}}return[function(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const o=n(e),s=o.findIndex((e=>{let[t]=e;return i=0&&o.splice(e,1)}},function(e,t){let r,i;for(const[s,d,c]of n(e)){if(r!==s&&i)break;r=s;const n=o(e,d,c,t);if(n){if(!n.allow)return a(n),!1;i=n}}return i&&a(i),!0}]}()},29075:(e,t,n)=>{n.d(t,{$A:()=>E,BS:()=>R,Uc:()=>w,_0:()=>B,bw:()=>k,n6:()=>A,vW:()=>C,vd:()=>O});var r=n(91069),i=n(70433),o=n(75023),s=n(78969),a=n(43272),d=n(95789),c=n(71371),l=n(67314),u=n(46031),g=n(16833),f=n(12449),p=n(25555);const{AD_RENDER_FAILED:m,AD_RENDER_SUCCEEDED:h,STALE_RENDER:b,BID_WON:y}=s.qY,{EXCEPTION:v}=s.as,E=(0,g.A_)("sync",(function(e){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.k.resolve()).then((t=>t??l.n.findBidByAdId(e))).catch((()=>{}))})),A=(0,g.A_)("sync",(function(e){o.emit(y,e),l.n.addWinningBid(e)}));function I(e){let{reason:t,message:n,bid:i,id:s}=e;const a={reason:t,message:n};i&&(a.bid=i,a.adId=i.adId),s&&(a.adId=s),(0,r.logError)(`Error rendering ad (id: ${s}): ${n}`),o.emit(m,a)}function T(e){let{doc:t,bid:n,id:r}=e;const i={doc:t};n&&(i.bid=n),r&&(i.adId=r),o.emit(h,i)}function w(e,t){switch(e.event){case s.qY.AD_RENDER_FAILED:I({bid:t,id:t.adId,reason:e.info.reason,message:e.info.message});break;case s.qY.AD_RENDER_SUCCEEDED:T({doc:null,bid:t,id:t.adId});break;default:(0,r.logError)(`Received event request for unsupported event: '${e.event}' (adId: '${t.adId}')`)}}function C(e,t,n){let{resizeFn:r,fireTrackers:i=f.vO}=n;if("resizeNativeHeight"===e.action)r(e.width,e.height);else i(e,t)}const S={[s.nl.EVENT]:w};S[s.nl.NATIVE]=C;const O=(0,g.A_)("sync",(function(e,t){const{ad:n,adUrl:i,cpm:o,originalCpm:s,width:a,height:d}=e,c={AUCTION_PRICE:s||o,CLICKTHROUGH:t?.clickUrl||""};return{ad:(0,r.replaceMacros)(n,c),adUrl:(0,r.replaceMacros)(i,c),width:a,height:d}})),B=(0,g.A_)("sync",(function(e){let{renderFn:t,resizeFn:n,bidResponse:r,options:i}=e;if(r.mediaType===c.G_)return void I({reason:s.as.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:"Cannot render video ad",bid:r,id:r.adId});const o=O(r,i);t(Object.assign({adId:r.adId},o));const{width:a,height:d}=o;null!=(a??d)&&n(a,d)}));function k(e){let{renderFn:t,resizeFn:n,adId:d,options:c,bidResponse:l,doc:u}=e;if(null!=l){if(l.status!==s.tl.RENDERED||((0,r.logWarn)(`Ad id ${d} has been rendered before`),o.emit(b,l),!(0,i.A)(a.$W.getConfig("auctionOptions"),"suppressStaleRender"))){try{B({renderFn:t,resizeFn:n,bidResponse:l,options:c,doc:u})}catch(e){I({reason:s.as.EXCEPTION,message:e.message,id:d,bid:l})}A(l)}}else I({reason:s.as.CANNOT_FIND_AD,message:`Cannot find ad '${d}'`,id:d})}function R(e,t,n){let i;function o(e,n){I(Object.assign({id:t,bid:i},{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){S.hasOwnProperty(e)&&S[e](t,n,c)});var c;function l(t){t.ad?(e.write(t.ad),e.close(),T({doc:e,bid:i,adId:i.adId})):(0,u.H)(i).then((n=>n(t,{sendMessage:(e,t)=>d(e,t,i),mkFrame:r.createIframe},e.defaultView))).then((()=>T({doc:e,bid:i,adId:i.adId})),(e=>{o(e?.reason||s.as.EXCEPTION,e?.message),e?.stack&&(0,r.logError)(e)}));const n=document.createComment(`Creative ${i.creativeId} served by ${i.bidder} Prebid.js Header Bidding`);(0,r.insertElement)(n,e,"html")}try{t&&e?e!==document||(0,r.inIframe)()?E(t).then((r=>{i=r,k({renderFn:l,resizeFn:a,adId:t,options:{clickUrl:n?.clickThrough},bidResponse:r,doc:e})})):o(s.as.PREVENT_WRITING_ON_MAIN_DOCUMENT,"renderAd was prevented from writing to the main document."):o(s.as.MISSING_DOC_OR_ADID,"missing "+(t?"doc":"adId"))}catch(e){o(v,e.message)}}B.before((function(e,t){const{bidResponse:n,doc:r}=t;(0,d.J7)(n.renderer)?((0,d.Pg)(n.renderer,n,r),T({doc:r,bid:n,id:n.adId}),e.bail()):e(t)}),100)},10201:(e,t,n)=>{n.d(t,{U:()=>s});var r=n(7873),i=n(91069);const o=(0,r.m)();function s(e,t){o.adServers=o.adServers||{},o.adServers[e]=o.adServers[e]||{},Object.keys(t).forEach((n=>{o.adServers[e][n]?(0,i.logWarn)(`Attempting to add an already registered function property ${n} for AdServer ${e}.`):o.adServers[e][n]=t[n]}))}},69759:(e,t,n)=>{function r(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}n.d(t,{A:()=>r})},11445:(e,t,n)=>{n.d(t,{S1:()=>B,Ay:()=>z,tS:()=>x,pX:()=>P,Mf:()=>M,K5:()=>q,Gs:()=>W});var r=n(91069),i=n(70433),o=n(12449),s=n(57377),a=n(68044),d=n(43272),c=n(16833),l=n(15901);let u={};function g(e,t,n){let r=function(e,t){let n=u[e]=u[e]||{bidders:{}};return t?n.bidders[t]=n.bidders[t]||{}:n}(e,n);return r[t]=(r[t]||0)+1,r[t]}function f(e){return(0,i.A)(u,`${e}.requestsCounter`)||0}function p(e,t){return(0,i.A)(u,`${e}.bidders.${t}.requestsCounter`)||0}function m(e,t){return(0,i.A)(u,`${e}.bidders.${t}.winsCounter`)||0}var h=n(27934),b=n(16916),y=n(75023),v=n(78969),E=n(16894),A=n(67314),I=n(45569),T=n(95139),w=n(76811),C=n(2604),S=n(3066);const O="pbsBidAdapter",B={CLIENT:"client",SERVER:"server"},k={isAllowed:T.io,redact:S.$p};let R={},U=R.bidderRegistry={},D=R.aliasRegistry={},_=[];d.$W.getConfig("s2sConfig",(e=>{e&&e.s2sConfig&&(_=(0,r.isArray)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var j={};const $=(0,C.ZI)((e=>R.resolveAlias(e)));function q(e){return $(I.tp,O,{[C.XG]:e.configName})}const N=(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,c)=>{const l=null==(c=Object.assign({},c,{ortb2Imp:(0,r.mergeDeep)({},s.ortb2Imp,c.ortb2Imp)},(0,r.getDefinedParams)(s,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?s.mediaTypes:c.mediaTypes;return(0,r.isValidMediaTypes)(l)?c=Object.assign({},c,{mediaTypes:l}):(0,r.logError)(`mediaTypes is not correctly configured for adunit ${s.code}`),"client"===a&&function(e,t){g(e,"requestsCounter",t)}(s.code,t),e.push(Object.assign({},c,{adUnitCode:s.code,transactionId:s.transactionId,adUnitId:s.adUnitId,sizes:(0,i.A)(l,"banner.sizes")||(0,i.A)(l,"video.playerSize")||[],bidId:c.bid_id||(0,r.getUniqueIdentifierStr)(),bidderRequestId:o,auctionId:n,src:a,metrics:d,bidRequestsCount:f(s.code),bidderRequestsCount:p(s.code,c.bidder),bidderWinsCount:m(s.code,c.bidder)})),e}),[])),e}),[]).reduce(r.flatten,[]).filter((e=>""!==e))}),"getBids");const x=(0,c.A_)("sync",(function(e,t){let{getS2SBidders:n=P}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return e;{const r=n(t);return e.filter((e=>r.has(e.bidder)))}}),"filterBidsForAdUnit");const W=(0,c.A_)("sync",((e,t)=>e),"setupAdUnitMediaTypes");function P(e){(0,r.isArray)(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 M=(0,c.A_)("sync",(function(e,t){let{getS2SBidders:n=P}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n(t);return(0,r.getBidderCodes)(e).reduce(((e,t)=>(e[i.has(t)?B.SERVER:B.CLIENT].push(t),e)),{[B.CLIENT]:[],[B.SERVER]:[]})}),"partitionBidders");function G(e,t){const n=U[e],r=n?.getSpec&&n.getSpec();if(r&&r[t]&&"function"==typeof r[t])return[r,r[t]]}function L(e,t,n,i){try{(0,r.logInfo)(`Invoking ${e}.${t}`);for(var o=arguments.length,s=new Array(o>4?o-4:0),a=4;a5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6?arguments[6]:void 0;c=(0,E.BO)(c),y.emit(v.qY.BEFORE_REQUEST_BIDS,e),(0,o.nk)(e),e.forEach((e=>{(0,r.isPlainObject)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((e=>!e.bidder||k.isAllowed(w.uc,$(I.tW,e.bidder)))),g(e.code,"requestsCounter")})),e=W(e,s);let{[B.CLIENT]:u,[B.SERVER]:f}=M(e,_);d.$W.getConfig("bidderSequence")===d.Ov&&(u=(0,r.shuffle)(u));const p=(0,h.EN)();let m=[];const A=a.global||{},T=a.bidder||{};function C(e,t){const i=k.redact(null!=t?t:$(I.tW,e.bidderCode)),o=Object.freeze(i.ortb2((0,r.mergeDeep)({source:{tid:n}},A,T[e.bidderCode])));return e.ortb2=o,e.bids=e.bids.map((e=>(e.ortb2=o,i.bidRequest(e)))),e}_.forEach((i=>{const o=q(i);if(i&&i.enabled&&k.isAllowed(w.uc,o)){let{adUnits:s,hasModuleBids:a}=function(e,t){let n=(0,r.deepClone)(e),i=!1;return n.forEach((e=>{const n=e.bids.filter((e=>e.module===O&&e.params?.configName===t.configName));1===n.length?(e.s2sBid=n[0],i=!0,e.ortb2Imp=(0,r.mergeDeep)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):n.length>1&&(0,r.logWarn)('Multiple "module" bids for the same s2s configuration; all will be ignored',n),e.bids=x(e.bids,t).map((e=>(e.bid_id=(0,r.getUniqueIdentifierStr)(),e)))})),n=n.filter((e=>0!==e.bids.length||null!=e.s2sBid)),{adUnits:n,hasModuleBids:i}}(e,i),d=(0,r.generateUUID)();(0===f.length&&a?[null]:f).forEach((e=>{const a=(0,r.getUniqueIdentifierStr)(),l=c.fork(),u=C({bidderCode:e,auctionId:n,bidderRequestId:a,uniquePbsTid:d,bids:N({bidderCode:e,auctionId:n,bidderRequestId:a,adUnits:(0,r.deepClone)(s),src:v.RW.SRC,metrics:l}),auctionStart:t,timeout:i.timeout,src:v.RW.SRC,refererInfo:p,metrics:l},o);0!==u.bids.length&&m.push(u)})),s.forEach((e=>{let t=e.bids.filter((e=>(0,l.I6)(m,(t=>(0,l.I6)(t.bids,(t=>t.bidId===e.bid_id))))));e.bids=t})),m.forEach((e=>{void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=s.filter((e=>e.bids.length>0||null!=e.s2sBid)))}))}}));let S=function(e){let t=(0,r.deepClone)(e);return t.forEach((e=>{e.bids=x(e.bids,null)})),t=t.filter((e=>0!==e.bids.length)),t}(e);return u.forEach((e=>{const o=(0,r.getUniqueIdentifierStr)(),a=c.fork(),d=C({bidderCode:e,auctionId:n,bidderRequestId:o,bids:N({bidderCode:e,auctionId:n,bidderRequestId:o,adUnits:(0,r.deepClone)(S),labels:s,src:"client",metrics:a}),auctionStart:t,timeout:i,refererInfo:p,metrics:a}),l=U[e];l||(0,r.logError)(`Trying to make a request for bidder that does not exist: ${e}`),l&&d.bids&&0!==d.bids.length&&m.push(d)})),m.forEach((e=>{b.mW.getConsentData()&&(e.gdprConsent=b.mW.getConsentData()),b.t6.getConsentData()&&(e.uspConsent=b.t6.getConsentData()),b.ad.getConsentData()&&(e.gppConsent=b.ad.getConsentData())})),m}),"makeBidRequests"),R.callBids=function(e,t,n,i,o,s,c){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(!t.length)return void(0,r.logWarn)("callBids executed with no bidRequests. Were they filtered by labels or sizing?");let[u,g]=t.reduce(((e,t)=>(e[Number(void 0!==t.src&&t.src===v.RW.SRC)].push(t),e)),[[],[]]);var f=[];g.forEach((e=>{for(var t=-1,n=0;n{if(e&&f[p]&&P(e).has(f[p].bidderCode)){const t=(0,a.g4)(s,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0);let d=e.bidders;const u=U[e.adapter];let m=f[p].uniquePbsTid,h=f[p].adUnitsS2SCopy,b=g.filter((e=>e.uniquePbsTid===m));if(u){let o={ad_units:h,s2sConfig:e,ortb2Fragments:l,requestBidsTimeout:s};if(o.ad_units.length){let e=b.map((e=>(e.start=(0,r.timestamp)(),function(t){t||c(e.bidderRequestId),i.apply(e,arguments)})));const s=(0,r.getBidderCodes)(o.ad_units).filter((e=>d.includes(e)));(0,r.logMessage)(`CALLING S2S HEADER BIDDERS ==== ${s.length>0?s.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only'}`),b.forEach((e=>{y.emit(v.qY.BID_REQUESTED,{...e,tid:e.auctionId})})),u.callBids(o,g,n,(t=>e.forEach((e=>e(t)))),t)}}else(0,r.logError)("missing "+e.adapter);p++}})),u.forEach((e=>{e.start=(0,r.timestamp)();const t=U[e.bidderCode];d.$W.runWithBidder(e.bidderCode,(()=>{(0,r.logMessage)("CALLING BIDDER"),y.emit(v.qY.BID_REQUESTED,e)}));let l=(0,a.g4)(s,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0);const u=i.bind(e);try{d.$W.runWithBidder(e.bidderCode,t.callBids.bind(t,e,n,u,l,(()=>c(e.bidderRequestId)),d.$W.callbackWithBidder(e.bidderCode)))}catch(t){(0,r.logError)(`${e.bidderCode} Bid Adapter emitted an uncaught error when parsing their bidRequest`,{e:t,bidRequest:e}),u()}}))},R.videoAdapters=[],R.registerBidAdapter=function(e,t){let{supportedMediaTypes:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&t?"function"==typeof e.callBids?(U[t]=e,b.o2.register(I.tW,t,e.getSpec?.().gvlid),(0,l.mK)(n,"video")&&R.videoAdapters.push(t),(0,l.mK)(n,"native")&&o.mT.push(t)):(0,r.logError)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):(0,r.logError)("bidAdapter or bidderCode not specified")},R.aliasBidAdapter=function(e,t,n){if(void 0===U[t]){let i=U[e];if(void 0===i){const n=[];_.forEach((r=>{if(r.bidders&&r.bidders.length){const i=r&&r.bidders;r&&(0,l.mK)(i,t)?D[t]=e:n.push(e)}})),n.forEach((e=>{(0,r.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{let a,d=function(e){let t=[];return(0,l.mK)(R.videoAdapters,e)&&t.push("video"),(0,l.mK)(o.mT,e)&&t.push("native"),t}(e);if(i.constructor.prototype!=Object.prototype)a=new i.constructor,a.setBidderCode(t);else{let o=i.getSpec(),d=n&&n.gvlid;null!=o.gvlid&&null==d&&(0,r.logWarn)(`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})),D[t]=e}R.registerBidAdapter(a,t,{supportedMediaTypes:d})}catch(t){(0,r.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,r.logMessage)('alias name "'+t+'" has been already specified.')},R.resolveAlias=function(e){let t,n=e;for(;D[n]&&(!t||!t.has(n));)n=D[n],(t=t||new Set).add(n);return n},R.registerAnalyticsAdapter=function(e){let{adapter:t,code:n,gvlid:i}=e;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,j[n]={adapter:t,gvlid:i},b.o2.register(I.Tn,n,i)):(0,r.logError)(`Prebid Error: Analytics adaptor error for analytics "${n}"\n analytics adapter must implement an enableAnalytics() function`):(0,r.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},R.enableAnalytics=function(e){(0,r.isArray)(e)||(e=[e]),e.forEach((e=>{const t=j[e.provider];t&&t.adapter?k.isAllowed(w.mo,$(I.Tn,e.provider,{[C.TQ]:e}))&&t.adapter.enableAnalytics(e):(0,r.logError)(`Prebid Error: no analytics adapter found in registry for '${e.provider}'.`)}))},R.getBidAdapter=function(e){return U[e]},R.getAnalyticsAdapter=function(e){return j[e]},R.callTimedOutBidders=function(e,t,n){t=t.map((t=>(t.params=(0,r.getUserConfiguredParams)(e,t.adUnitCode,t.bidder),t.timeout=n,t))),t=(0,r.groupBy)(t,"bidder"),Object.keys(t).forEach((e=>{F(e,"onTimeout",t[e])}))},R.callBidWonBidder=function(e,t,n){var i,o;t.params=(0,r.getUserConfiguredParams)(n,t.adUnitCode,t.bidder),i=t.adUnitCode,o=t.bidder,g(i,"winsCounter",o),F(e,"onBidWon",t)},R.callBidBillableBidder=function(e){F(e.bidder,"onBidBillable",e)},R.callSetTargetingBidder=function(e,t){F(e,"onSetTargeting",t)},R.callBidViewableBidder=function(e,t){F(e,"onBidViewable",t)},R.callBidderError=function(e,t,n){F(e,"onBidderError",{error:t,bidderRequest:n})},R.callDataDeletionRequest=(0,c.A_)("sync",(function(){for(var e=arguments.length,t=new Array(e),n=0;n!D.hasOwnProperty(e))).forEach((e=>{const n=G(e,i);if(null!=n){const r=A.n.getBidsRequested().filter((t=>function(e){const t=new Set;for(;D.hasOwnProperty(e)&&!t.has(e);)t.add(e),e=D[e];return e}(t.bidderCode)===e));L(e,i,...n,r,...t)}})),Object.entries(j).forEach((e=>{let[n,o]=e;const s=o?.adapter?.[i];if("function"==typeof s)try{s.apply(o.adapter,t)}catch(e){(0,r.logError)(`error calling ${i} of ${n}`,e)}}))}));const z=R},57377:(e,t,n)=>{n.d(t,{JN:()=>k,a$:()=>w,fn:()=>R,xb:()=>C});var r=n(69759),i=n(11445),o=n(43272),s=n(93597),a=n(38230),d=n(12449),c=n(63895),l=n(78969),u=n(75023),g=n(15901),f=n(91069),p=n(16833),m=n(67314),h=n(12693),b=n(16894),y=n(95139),v=n(83441),E=n(45569),A=n(76811);const I=["cpm","ttl","creativeId","netRevenue","currency"],T=["auctionId","transactionId"];function w(e){const t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function n(e){const n=C(e);i.Ay.registerBidAdapter(n,e.code,t)}n(e),Array.isArray(e.aliases)&&e.aliases.forEach((t=>{let r,o,s=t;(0,f.isPlainObject)(t)&&(s=t.code,r=t.gvlid,o=t.skipPbsAliasing),i.Ay.aliasRegistry[s]=e.code,n(Object.assign({},e,{code:s,gvlid:r,skipPbsAliasing:o}))}))}function C(e){return Object.assign(new r.A(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:t,callBids:function(n,r,a,d,c,g){if(!Array.isArray(n.bids))return;const p=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 T.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[r,i]=t;return n[r]=i.bind(e)})),n}const r=(0,f.memoize)((e=>n(e,{get:t})),(e=>e.bidId));return{bidRequest:r,bidderRequest:e=>n(e,{get:(n,i,o)=>"bids"===i?e.bids.map(r):t(n,i,o)})}}(n.bidderCode),m={};const I=[];function w(){a(),o.$W.runWithBidder(e.code,(()=>{u.emit(l.qY.BIDDER_DONE,n),t(I,n.gdprConsent,n.uspConsent,n.gppConsent)}))}const C=U(n).measureTime("validate",(()=>n.bids.filter((t=>function(t){if(!e.isBidRequestValid(t))return(0,f.logWarn)(`Invalid bid sent to bidder ${e.code}: ${JSON.stringify(t)}`),!1;return!0}(p.bidRequest(t))))));if(0===C.length)return void w();const S={};C.forEach((e=>{S[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),O(e,C.map(p.bidRequest),p.bidderRequest(n),d,g,{onRequest:e=>u.emit(l.qY.BEFORE_BIDDER_HTTP,n,e),onResponse:t=>{c(e.code),I.push(t)},onPaapi:e=>{const t=S[e.bidId];t?k(t,e):(0,f.logWarn)("Received fledge auction configuration for an unknown bidId",e)},onError:(t,r)=>{r.timedOut||c(e.code),i.Ay.callBidderError(e.code,r,n),u.emit(l.qY.BIDDER_ERROR,{error:r,bidderRequest:n}),(0,f.logError)(`Server call for ${e.code} failed: ${t} ${r.status}. Continuing without bids.`)},onBid:t=>{const n=S[t.requestId];if(n){if(t.adapterCode=n.bidder,function(e,t){let n=h.u.get(t,"allowAlternateBidderCodes")||!1,r=h.u.get(t,"allowedAlternateBidderCodes");if(e&&t&&t!==e&&(r=(0,f.isArray)(r)?r.map((e=>e.trim().toLowerCase())).filter((e=>!!e)).filter(f.uniques):r,!n||(0,f.isArray)(r)&&"*"!==r[0]&&!r.includes(e)))return!0;return!1}(t.bidderCode,n.bidder))return(0,f.logWarn)(`${t.bidderCode} is not a registered partner or known bidder of ${n.bidder}, hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.`),void r.reject(n.adUnitCode,t,l.Tf.BIDDER_DISALLOWED);t.originalCpm=t.cpm,t.originalCurrency=t.currency,t.meta=t.meta||Object.assign({},t[n.bidder]);const e=Object.assign((0,s.O)(l.XQ.GOOD,n),t,(0,f.pick)(n,T));!function(e,t){const n=(0,b.BO)(t.metrics);n.checkpoint("addBidResponse"),m[e]=!0,n.measureTime("addBidResponse.validate",(()=>R(e,t)))?r(e,t):r.reject(e,t,l.Tf.INVALID)}(n.adUnitCode,e)}else(0,f.logWarn)(`Bidder ${e.code} made bid for unknown request ID: ${t.requestId}. Ignoring.`),r.reject(null,t,l.Tf.INVALID_REQUEST_ID)},onCompletion:w})}});function t(t,n,r,i){B(e,t,n,r,i)}}const S=["bids","paapi"],O=(0,p.A_)("sync",(function(e,t,n,r,i,o){let{onRequest:s,onResponse:a,onPaapi:d,onError:c,onBid:l,onCompletion:u}=o;const g=U(n);u=g.startTiming("total").stopBefore(u);let p=g.measureTime("buildRequests",(()=>e.buildRequests(t,n)));if(!p||0===p.length)return void u();Array.isArray(p)||(p=[p]);const m=(0,f.delayExecution)(u,p.length);p.forEach((t=>{const n=g.fork();function o(e){null!=e&&(e.metrics=n.fork().renameWith()),l(e)}const u=i((function(r,i){b();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:i.getResponseHeader.bind(i)}},a(r);try{r=n.measureTime("interpretResponse",(()=>e.interpretResponse(r,t)))}catch(t){return(0,f.logError)(`Bidder ${e.code} failed to interpret the server's response. Continuing without bids`,null,t),void m()}let s,c;r&&!Object.keys(r).some((e=>!S.includes(e)))?(s=r.bids,c=r.paapi):s=r,(0,f.isArray)(c)&&c.forEach(d),s&&((0,f.isArray)(s)?s.forEach(o):o(s)),m()})),p=i((function(e,t){b(),c(e,t),m()}));s(t);const b=n.startTiming("net");function I(n){const r=t.options;return Object.assign(n,r,{browsingTopics:!(r?.hasOwnProperty("browsingTopics")&&!r.browsingTopics)&&((h.u.get(e.code,"topicsHeader")??!0)&&(0,y.io)(A.DL,(0,v.s)(E.tW,e.code)))})}switch(t.method){case"GET":r(`${t.url}${function(e){if(e)return`?${"object"==typeof e?(0,f.parseQueryStringParameters)(e):e}`;return""}(t.data)}`,{success:u,error:p},void 0,I({method:"GET",withCredentials:!0}));break;case"POST":r(t.url,{success:u,error:p},"string"==typeof t.data?t.data:JSON.stringify(t.data),I({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,f.logWarn)(`Skipping invalid request from ${e.code}. Request type ${t.type} must be GET or POST`),m()}}))}),"processBidderRequests"),B=(0,p.A_)("async",(function(e,t,n,r,s){const d=o.$W.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(d||!i.Ay.aliasRegistry[e.code])){let i=o.$W.getConfig("userSync.filterSettings"),d=e.getUserSyncs({iframeEnabled:!(!i||!i.iframe&&!i.all),pixelEnabled:!(!i||!i.image&&!i.all)},t,n,r,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"),k=(0,p.A_)("sync",((e,t)=>{}),"addPaapiConfig");function R(e,t){let{index:n=m.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function r(e){return`Invalid bid from ${t.bidderCode}. Ignoring bid: ${e}`}return e?t?function(){let e=Object.keys(t);return I.every((n=>(0,g.mK)(e,n)&&!(0,g.mK)([void 0,null],t[n])))}()?"native"!==t.mediaType||(0,d.Bm)(t,{index:n})?"video"!==t.mediaType||(0,c.vk)(t,{index:n})?!("banner"===t.mediaType&&!function(e,t){let{index:n=m.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 r=n.getBidRequest(t),i=n.getMediaTypes(t),o=r&&r.sizes||i&&i.banner&&i.banner.sizes,s=(0,f.parseSizesInput)(o);if(1===s.length){const[e,n]=s[0].split("x");return t.width=parseInt(e,10),t.height=parseInt(n,10),!0}return!1}(e,t,{index:n}))||((0,f.logError)(r("Banner bids require a width and height")),!1):((0,f.logError)(r("Video bid does not have required vastUrl or renderer property")),!1):((0,f.logError)(r("Native bid missing some required properties.")),!1):((0,f.logError)(r(`Bidder ${t.bidderCode} is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params.`)),!1):((0,f.logWarn)(`Some adapter tried to add an undefined bid for ${e}.`),!1):((0,f.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}function U(e){return(0,b.BO)(e.metrics).renameWith((t=>[`adapter.client.${t}`,`adapters.client.${e.bidderCode}.${t}`]))}},41580:(e,t,n)=>{n.d(t,{R:()=>a});var r=n(15901),i=n(91069);const o=new WeakMap,s=["debugging","outstream","improvedigital","showheroes-bs","aaxBlockmeter","adagio","adloox","akamaidap","arcspan","airgrid","browsi","brandmetrics","clean.io","confiant","contxtful","hadron","mediafilter","medianet","azerionedge","a1Media","geoedge","qortex","dynamicAdBoost","51Degrees","justtag","tncId","ftrackId","id5"];function a(e,t,n,a,d){if(!t||!e)return void(0,i.logError)("cannot load external script without url and moduleCode");if(!(0,r.mK)(s,t))return void(0,i.logError)(`${t} not whitelisted for loading external JavaScript`);a||(a=document);const c=g(a,e);if(c)return n&&"function"==typeof n&&(c.loaded?n():c.callbacks.push(n)),c.tag;const l=o.get(a)||{},u={loaded:!1,tag:null,callbacks:[]};return l[e]=u,o.set(a,l),n&&"function"==typeof n&&u.callbacks.push(n),(0,i.logWarn)(`module ${t} is loading external JavaScript`),function(t,n,r,o){r||(r=document);var s=r.createElement("script");s.type="text/javascript",s.async=!0;const a=g(r,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,i.setScriptAttributes)(s,o);return(0,i.insertElement)(s,r),s}(e,(function(){u.loaded=!0;try{for(let e=0;e{n.d(t,{Q:()=>r});const r=(0,n(16833).A_)("sync",(()=>{}))},68044:(e,t,n)=>{n.d(t,{RD:()=>g,g4:()=>u,hd:()=>f});var r=n(43272),i=n(91069);const o={fetch:window.fetch.bind(window),makeRequest:(e,t)=>new Request(e,t),timeout(e,t){const n=new AbortController;let r=setTimeout((()=>{n.abort(),(0,i.logError)(`Request timeout after ${e}ms`,t),r=null}),e);return{signal:n.signal,done(){r&&clearTimeout(r)}}}},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]:{},i=(t,n)=>{let i;null==e||null!=n?.signal||r.$W.getConfig("disableAjaxTimeout")||(i=o.timeout(e,t),n=Object.assign({signal:i.signal},n));let s=o.fetch(t,n);return null!=i?.done&&(s=s.finally(i.done)),s};return null==t&&null==n||(i=(e=>function(r,i){const o=new URL(null==r?.url?r:r.url,document.location).origin;let s=e(r,i);return t&&t(o),n&&(s=s.finally((()=>n(o)))),s})(i)),i}function l(e,t){let{status:n,statusText:r="",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:r,responseText:t,response:t,responseType:"",responseURL:s,get responseXML(){return c(i.logError)},getResponseHeader:e=>o?.has(e)?o.get(e):null,toJSON(){return Object.assign({responseXML:c()},this)},timedOut:!1}}function u(){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 r=c(e,{request:t,done:n});return function(e,t,n){!function(e,t){const{success:n,error:r}="object"==typeof t&&null!=t?t:{success:"function"==typeof t?t:()=>null,error:(e,t)=>(0,i.logError)("Network error",e,t)};e.then((e=>e.text().then((t=>[e,t])))).then((e=>{let[t,i]=e;const o=l(t,i);t.ok||304===t.status?n(i,o):r(t.statusText,o)}),(e=>r("",Object.assign(l({status:0},""),{reason:e,timedOut:"AbortError"===e?.name}))))}(r(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.method||(t?a:s);if(r===s&&t){const r=(0,i.parseUrl)(e,n);Object.assign(r.search,t),e=(0,i.buildUrl)(r)}const c=new Headers(n.customHeaders);c.set(d,n.contentType||"text/plain");const l={method:r,headers:c};return r!==s&&t&&(l.body=t),n.withCredentials&&(l.credentials="include"),n.browsingTopics&&isSecureContext&&(l.browsingTopics=!0),n.keepalive&&(l.keepalive=!0),o.makeRequest(e,l)}(e,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),t)}}const g=u(),f=c()},81657:(e,t,n)=>{n.d(t,{AA:()=>S,HN:()=>X,UZ:()=>O,ZV:()=>H,mO:()=>z,mX:()=>_,sR:()=>j,v8:()=>x,w1:()=>q});var r=n(91069),i=n(70433),o=n(86833),s=n(12449),a=n(68693),d=n(95789),c=n(43272),l=n(38230),u=n(16833),g=n(15901),f=n(63895),p=n(71371),m=n(67314),h=n(12693),b=n(75023),y=n(11445),v=n(78969),E=n(25555),A=n(16894),I=n(57176),T=n(7873);const{syncUsers:w}=l.zt,C="started",S="inProgress",O="completed";b.on(v.qY.BID_ADJUSTMENT,(function(e){!function(e){let t=(0,I.y)(e.cpm,e);t>=0&&(e.cpm=t)}(e)}));const B=4,k={},R={},U=[],D=(0,T.m)();function _(e){let{adUnits:t,adUnitCodes:n,callback:a,cbTimeout:l,labels:u,auctionId:h,ortb2Fragments:I,metrics:T}=e;T=(0,A.BO)(T);const _=t,W=u,P=n,M=h||(0,r.generateUUID)(),G=l,z=new Set,H=(0,E.v)();let V,K,J,Y,Q=[],X=a,Z=[],te=[],ne=[],re=[],ie=[];function oe(){return{auctionId:M,timestamp:V,auctionEnd:K,auctionStatus:Y,adUnits:_,adUnitCodes:P,labels:W,bidderRequests:Z,noBids:ne,bidsReceived:te,bidsRejected:Q,winningBids:re,timeout:G,metrics:T,seatNonBids:ie}}function se(e){if(e?b.emit(v.qY.AUCTION_TIMEOUT,oe()):clearTimeout(J),void 0===K){let n=[];e&&((0,r.logMessage)(`Auction ${M} timedOut`),n=Z.filter((e=>!z.has(e.bidderRequestId))).flatMap((e=>e.bids)),n.length&&b.emit(v.qY.BID_TIMEOUT,n)),Y=O,K=Date.now(),T.checkpoint("auctionEnd"),T.timeBetween("requestBids","auctionEnd","requestBids.total"),T.timeBetween("callBids","auctionEnd","requestBids.callBids"),H.resolve(),b.emit(v.qY.AUCTION_END,oe()),N(_,(function(){try{if(null!=X){const t=te.filter((e=>P.includes(e.adUnitCode))).reduce(ee,{});X.apply(D,[t,e,M]),X=null}}catch(e){(0,r.logError)("Error executing bidsBackHandler",null,e)}finally{n.length&&y.Ay.callTimedOutBidders(t,n,G);let e=c.$W.getConfig("userSync")||{};e.enableOverride||w(e.syncDelay)}}))}}function ae(){c.$W.resetBidder(),(0,r.logInfo)(`Bids Received for Auction with id: ${M}`,te),Y=O,se(!1)}function de(e){z.add(e)}function ce(e){e.forEach((e=>{var t;t=e,Z=Z.concat(t)}));let t={},n={bidRequests:e,run:()=>{J=setTimeout((()=>se(!0)),G),Y=S,b.emit(v.qY.AUCTION_INIT,oe());let n=function(e,t){let{index:n=m.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=0,l=!1,u=new Set,h={};function y(){a--,l&&0===a&&e()}function A(e,t,n){return h[t.requestId]=!0,function(e,t){let{index:n=m.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n.getBidderRequest(e),o=n.getAdUnit(e),s=i&&i.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,r.timestamp)(),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 I(e,a){A(e,a,(e=>{let l=function(e){let{index:t=m.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,r=e.mediaType,i=t.getMediaTypes(e),s=i&&i[r];var a=s&&s.renderer,l=null;a&&a.url&&a.render&&(!0!==a.backupOnly||!e.renderer)?l=a:n&&n.url&&n.render&&(!0!==n.backupOnly||!e.renderer)&&(l=n);l&&(e.renderer=d.A4.install({url:l.url,config:l.options}),e.renderer.setRender(l.render));const u=F(e.mediaType,i,c.$W.getConfig("mediaTypePriceGranularity")),g=(0,o.j)(e.cpm,"object"==typeof u?u:c.$W.getConfig("customPriceBucket"),c.$W.getConfig("currency.granularityMultiplier"));return e.pbLg=g.low,e.pbMg=g.med,e.pbHg=g.high,e.pbAg=g.auto,e.pbDg=g.dense,e.pbCg=g.custom,e}(a);b.emit(v.qY.BID_ACCEPTED,l),l.mediaType===p.G_?function(e,t,n){let{index:o=m.n.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=!0;const a=(0,i.A)(o.getMediaTypes({requestId:t.originalRequestId||t.requestId,adUnitId:t.adUnitId}),"video"),d=a&&(0,i.A)(a,"context"),l=a&&(0,i.A)(a,"useCacheKey");c.$W.getConfig("cache.url")&&(l||d!==f.H6)&&(!t.videoCacheKey||c.$W.getConfig("cache.ignoreBidderCacheKey")?(s=!1,L(e,t,n,a)):t.vastUrl||((0,r.logError)("videoCacheKey specified but not required vastUrl for video bid"),s=!1));s&&(x(e,t),n())}(t,l,e):((0,s.l6)(l)&&(0,s.gs)(l,n.getAdUnit(l)),x(t,l),e())}))}function T(e,n,i){return A(e,n,(e=>{n.rejectionReason=i,(0,r.logWarn)(`Bid from ${n.bidder||"unknown bidder"} was rejected: ${i}`,n),b.emit(v.qY.BID_REJECTED,n),t.addBidRejected(n),e()}))}function w(){let n=this,i=t.getBidRequests();const o=c.$W.getConfig("auctionOptions");if(u.add(n),o&&!(0,r.isEmpty)(o)){const e=o.secondaryBidders;e&&!i.every((t=>(0,g.mK)(e,t.bidderCode)))&&(i=i.filter((t=>!(0,g.mK)(e,t.bidderCode))))}l=i.every((e=>u.has(e))),n.bids.forEach((e=>{h[e.bidId]||(t.addNoBid(e),b.emit(v.qY.NO_BID,e))})),l&&0===a&&e()}return{addBidResponse:function(){function e(e,t){j.call({dispatch:I},e,t,(()=>{let n=!1;return r=>{n||(T(e,t,r),n=!0)}})())}return e.reject=T,e}(),adapterDone:function(){$(E.k.resolve()).finally((()=>w.call(this)))}}}(ae,this);y.Ay.callBids(_,e,n.addBidResponse,n.adapterDone,{request(e,n){l(k,n),l(t,e),R[e]||(R[e]={SRA:!0,origin:n}),t[e]>1&&(R[e].SRA=!1)},done(e){k[e]--,U[0]&&a(U[0])&&U.shift()}},G,de,I)}};function a(e){let t=!0,n=c.$W.getConfig("maxRequestsPerOrigin")||B;return e.bidRequests.some((e=>{let r=1,i=void 0!==e.src&&e.src===v.RW.SRC?"s2s":e.bidderCode;return R[i]&&(!1===R[i].SRA&&(r=Math.min(e.bids.length,n)),k[R[i].origin]+r>n&&(t=!1)),!t})),t&&e.run(),t}function l(e,t){void 0===e[t]?e[t]=1:e[t]++}a(n)||((0,r.logWarn)("queueing auction due to limited endpoint capacity"),U.push(n))}return b.on(v.qY.SEAT_NON_BID,(e=>{var t;e.auctionId===M&&(t=e.seatnonbid,ie=ie.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=C,V=Date.now();let e=T.measureTime("requestBids.makeRequests",(()=>y.Ay.makeBidRequests(_,V,M,G,W,I,T)));(0,r.logInfo)(`Bids Requested for Auction with id: ${M}`,e),T.checkpoint("callBids"),e.length<1?((0,r.logWarn)("No valid bid requests returned for auction"),ae()):q.call({dispatch:ce,context:this},e)},addWinningBid:function(e){const n=t.find((t=>t.adUnitId===e.adUnitId));re=re.concat(e),(0,r.callBurl)(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:()=>re,getAuctionStart:()=>V,getAuctionEnd:()=>K,getTimeout:()=>G,getAuctionId:()=>M,getAuctionStatus:()=>Y,getAdUnits:()=>_,getAdUnitCodes:()=>P,getBidRequests:()=>Z,getBidsReceived:()=>te,getNoBids:()=>ne,getNonBids:()=>ie,getFPD:()=>I,getMetrics:()=>T,end:H.promise}}const j=(0,u.A_)("sync",(function(e,t,n){!function(e){const t=c.$W.getConfig("maxBid");return!t||!e.cpm||t>=Number(e.cpm)}(t)?n(v.Tf.PRICE_TOO_HIGH):this.dispatch.call(null,e,t)}),"addBidResponse"),$=(0,u.A_)("sync",(e=>e),"responsesReady"),q=(0,u.A_)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),N=(0,u.A_)("async",(function(e,t){t&&t()}),"bidsBackCallback");function x(e,t){!function(e){let t;const n=!0===h.u.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(n||e.dealId)&&(t=function(e,t){let{index:n=m.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return{};const r=n.getBidRequest(t);var i={};const o=X(t.mediaType,e);Z(i,o,t,r),e&&h.u.getOwn(e,v.iD.ADSERVER_TARGETING)&&(Z(i,h.u.ownSettingsFor(e),t,r),t.sendStandardTargeting=h.u.get(e,"sendStandardTargeting"));t.native&&(i=Object.assign({},i,(0,s.Zj)(t)));return i}(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,i)=>{const{auctionInstance:o,bidResponse:s,afterBidAdded:d}=e[i];t?(0,r.logWarn)(`Failed to save to the video cache: ${t}. Video bid must be discarded.`):""===n.uuid?(0,r.logWarn)("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)),x(o,s),d())}))}))};let P,M;c.$W.getConfig("cache",(e=>{P="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,M="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));const G=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=[[]],r=!1;const i=e=>e();return function(o,s,a){const d=M>0?e:i;n[n.length-1].length>=P&&n.push([]),n[n.length-1].push({auctionInstance:o,bidResponse:s,afterBidAdded:a}),r||(r=!0,d((()=>{n.forEach(t),n=[[]],r=!1}),M))}}(),L=(0,u.A_)("async",(function(e,t,n,r){G(e,t,n)}),"callPrebidCache");function F(e,t,n){if(e&&n){if(e===p.G_){const e=(0,i.A)(t,`${p.G_}.context`,"instream");if(n[`${p.G_}-${e}`])return n[`${p.G_}-${e}`]}return n[e]}}const z=function(e){let{index:t=m.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=F(e.mediaType,t.getMediaTypes(e),c.$W.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&n?"string"==typeof n?n:"custom":c.$W.getConfig("priceGranularity")},H=e=>t=>{const n=e||z(t);return n===v.UE.AUTO?t.pbAg:n===v.UE.DENSE?t.pbDg:n===v.UE.LOW?t.pbLg:n===v.UE.MEDIUM?t.pbMg:n===v.UE.HIGH?t.pbHg:n===v.UE.CUSTOM?t.pbCg:void 0},V=()=>e=>e.creativeId?e.creativeId:"",K=()=>e=>e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:"",J=()=>e=>e.meta&&(e.meta.networkId||e.meta.networkName)?(0,i.A)(e,"meta.networkName")||(0,i.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,r.getValue)(e,t)}}}function X(e,t){const n=Object.assign({},h.u.settingsFor(null));if(n[v.iD.ADSERVER_TARGETING]||(n[v.iD.ADSERVER_TARGETING]=[Q(v.xS.BIDDER,"bidderCode"),Q(v.xS.AD_ID,"adId"),Q(v.xS.PRICE_BUCKET,H()),Q(v.xS.SIZE,"size"),Q(v.xS.DEAL,"dealId"),Q(v.xS.SOURCE,"source"),Q(v.xS.FORMAT,"mediaType"),Q(v.xS.ADOMAIN,K()),Q(v.xS.ACAT,Y()),Q(v.xS.DSP,J()),Q(v.xS.CRID,V())]),"video"===e){const e=n[v.iD.ADSERVER_TARGETING].slice();if(n[v.iD.ADSERVER_TARGETING]=e,[v.xS.UUID,v.xS.CACHE_ID].forEach((t=>{void 0===(0,g.I6)(e,(e=>e.key===t))&&e.push(Q(t,"videoCacheKey"))})),c.$W.getConfig("cache.url")&&(!t||!1!==h.u.get(t,"sendStandardTargeting"))){const t=(0,r.parseUrl)(c.$W.getConfig("cache.url"));void 0===(0,g.I6)(e,(e=>e.key===v.xS.CACHE_HOST))&&e.push(Q(v.xS.CACHE_HOST,(function(e){return(0,i.A)(e,`adserverTargeting.${v.xS.CACHE_HOST}`)?e.adserverTargeting[v.xS.CACHE_HOST]:t.hostname})))}}return n}function Z(e,t,n,i){var o=t[v.iD.ADSERVER_TARGETING];return n.size=n.getSize(),(o||[]).forEach((function(o){var s=o.key,a=o.val;if(e[s]&&(0,r.logWarn)("The key: "+s+" is being overwritten"),(0,r.isFn)(a))try{a=a(n,i)}catch(e){(0,r.logError)("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,r.isEmptyStr)(a)&&null!=a?e[s]=a:(0,r.logInfo)("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}},67314:(e,t,n)=>{n.d(t,{n:()=>g});var r=n(91069),i=n(81657);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:r}=t;if(null!=n||null!=r){let t=e().flatMap((e=>e.getBidRequests()));return null!=r&&(t=t.filter((e=>e.bidderRequestId===r))),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(78969),a=n(16894),d=n(67046),c=n(27863),l=n(43272);const u="minBidCacheTTL";const g=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()})),l.$W.getConfig(u,(n=>{const r=e;e=n?.[u],e="number"==typeof e?e:null,r!==e&&t.refresh()}));const n={onExpiry:t.onExpiry};function g(e){for(const n of t)if(n.getAuctionId()===e)return n}function f(){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=g(e.auctionId);n?(e.status=s.tl.RENDERED,n.addWinningBid(e)):(0,r.logWarn)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:e=>e.getAuctionStatus()===i.UZ},getAdUnitCodes:{post:r.uniques}}).forEach((e=>{let[r,{name:i=r,pre:o,post:s}]=e;const a=null==o?e=>e[i]():e=>o(e)?e[i]():[],d=null==s?e=>e:e=>e.filter(s);n[r]=()=>d(t.toArray().flatMap(a))})),n.getAllBidsForAdUnitCode=function(e){return f().filter((t=>t&&t.adUnitCode===e))},n.createAuction=function(e){const n=(0,i.mX)(e);return function(e){t.add(e)}(n),n},n.findBidByAdId=function(e){return f().find((t=>t.adId===e))},n.getStandardBidderAdServerTargeting=function(){return(0,i.HN)()[s.iD.ADSERVER_TARGETING]},n.setStatusForBids=function(e,t){let r=n.findBidByAdId(e);if(r&&(r.status=t),r&&t===s.tl.BID_TARGETING_SET){const e=g(r.auctionId);e&&e.setBidTargeting(r)}},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}()},27863:(e,t,n)=>{n.d(t,{L:()=>a,u:()=>d});var r=n(43272),i=n(91069);let o=1;const s=[];function a(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:o)}function d(e){s.push(e)}r.$W.getConfig("ttlBuffer",(e=>{if("number"==typeof e.ttlBuffer){const t=o;o=e.ttlBuffer,t!==o&&s.forEach((e=>e(o)))}else(0,i.logError)("Invalid value for ttlBuffer",e.ttlBuffer)}))},12693:(e,t,n)=>{n.d(t,{u:()=>a});var r=n(70433),i=n(91069),o=n(7873),s=n(78969);const a=new class{constructor(e,t){this.getSettings=e,this.defaultScope=t}get(e,t){let n=this.getOwn(e,t);return void 0===n&&(n=this.getOwn(null,t)),n}getOwn(e,t){return e=this.#e(e),(0,r.A)(this.getSettings(),`${e}.${t}`)}getScopes(){return Object.keys(this.getSettings()).filter((e=>e!==this.defaultScope))}settingsFor(e){return(0,i.mergeDeep)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}ownSettingsFor(e){return e=this.#e(e),this.getSettings()[e]||{}}#e(e){return null==e?this.defaultScope:e}}((()=>(0,o.m)().bidderSettings||{}),s.iD.BD_SETTING_STANDARD)},93597:(e,t,n)=>{n.d(t,{O:()=>o});var r=n(91069);function i(e){let{src:t="client",bidder:n="",bidId:i,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,r.getUniqueIdentifierStr)(),requestId:i,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 i(e,t)}},43272:(e,t,n)=>{n.d(t,{$W:()=>p,Ov:()=>l});var r=n(86833),i=n(15901),o=n(91069),s=n(70433),a=n(78969);const d="TRUE"===(0,o.getParameterByName)(a.M).toUpperCase(),c={},l="random",u={};u[l]=!0,u.fixed=!0;const g=l,f={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};const p=function(){let e,t,n,a=[],l=null;function p(){function s(e){return l[e].val}function a(e,t){l[e].val=t}e={};const l={publisherDomain:{set(e){null!=e&&(0,o.logWarn)("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",m(e)?e:f.MEDIUM):(0,o.isPlainObject)(e)&&(a("customPriceBucket",e),a("priceGranularity",f.CUSTOM),(0,o.logMessage)("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]=m(e[n])?e[n]:s("priceGranularity"):(0,o.isPlainObject)(e)&&(t[n]=e[n],(0,o.logMessage)(`Using custom price granularity for ${n}`)):(0,o.logWarn)(`Invalid price granularity for media type: ${n}`),t)),{}))}},bidderSequence:{val:g,set(e){u[e]?a("bidderSequence",e):(0,o.logWarn)(`Invalid order: ${e}. Bidder Sequence was not set.`)}},auctionOptions:{val:{},set(e){(function(e){if(!(0,o.isPlainObject)(e))return(0,o.logWarn)("Auction Options must be an object"),!1;for(let t of Object.keys(e)){if("secondaryBidders"!==t&&"suppressStaleRender"!==t)return(0,o.logWarn)(`Auction Options given an incorrect param: ${t}`),!1;if("secondaryBidders"===t){if(!(0,o.isArray)(e[t]))return(0,o.logWarn)(`Auction Options ${t} must be of type Array`),!1;if(!e[t].every(o.isStr))return(0,o.logWarn)(`Auction Options ${t} must be only string`),!1}else if("suppressStaleRender"===t&&!(0,o.isBoolean)(e[t]))return(0,o.logWarn)(`Auction Options ${t} must be of type boolean`),!1}return!0})(e)&&a("auctionOptions",e)}}};let p={debug:d,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,timeoutBuffer:400,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3,userSync:{topics:c}};function m(e){return(0,i.I6)(Object.keys(f),(t=>e===f[t]))}function h(e){if(!e)return(0,o.logError)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)m(e)||(0,o.logWarn)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,o.isPlainObject)(e)&&!(0,r.q)(e))return(0,o.logError)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}Object.defineProperties(p,Object.fromEntries(Object.entries(l).map((e=>{let[t,n]=e;return[t,Object.assign({get:s.bind(null,t),set:a.bind(null,t),enumerable:!0},n)]})))),t&&I(Object.keys(t).reduce(((e,n)=>(t[n]!==p[n]&&(e[n]=p[n]||{}),e)),{})),t=p,n={}}function m(){if(l&&n&&(0,o.isPlainObject)(n[l])){let e=n[l];const r=new Set(Object.keys(t).concat(Object.keys(e)));return(0,i.A6)(r).reduce(((n,r)=>(void 0===e[r]?n[r]=t[r]:void 0===t[r]?n[r]=e[r]:(0,o.isPlainObject)(e[r])?n[r]=(0,o.mergeDeep)({},t[r],e[r]):n[r]=e[r],n)),{})}return Object.assign({},t)}const[h,b]=[m,function(){const e=m();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):m()}return A(...arguments)})),[y,v]=[b,h].map((e=>function(){let t=e(...arguments);return t&&"object"==typeof t&&(t=(0,o.deepClone)(t)),t}));function E(n){if(!(0,o.isPlainObject)(n))return void(0,o.logError)("setConfig options must be an object");let r=Object.keys(n),i={};r.forEach((r=>{let s=n[r];(0,o.isPlainObject)(e[r])&&(0,o.isPlainObject)(s)&&(s=Object.assign({},e[r],s));try{i[r]=t[r]=s}catch(e){(0,o.logWarn)(`Cannot set config for property ${r} : `,e)}})),I(i)}function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t;if("string"!=typeof e&&(r=e,e="*",n=t||{}),"function"!=typeof r)return void(0,o.logError)("listener must be a function");const i={topic:e,callback:r};return a.push(i),n.init&&r("*"===e?b():{[e]:b(e)}),function(){a.splice(a.indexOf(i),1)}}function I(e){const t=Object.keys(e);a.filter((e=>(0,i.mK)(t,e.topic))).forEach((t=>{t.callback({[t.topic]:e[t.topic]})})),a.filter((e=>"*"===e.topic)).forEach((t=>t.callback(e)))}function T(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{!function(e){if(!(0,o.isPlainObject)(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.isPlainObject)(e.config))throw"setBidderConfig bidder options must contain a config object"}(e),e.bidders.forEach((r=>{n[r]||(n[r]={}),Object.keys(e.config).forEach((i=>{let s=e.config[i];if((0,o.isPlainObject)(s)){const e=t?o.mergeDeep:Object.assign;n[r][i]=e({},n[r][i]||{},s)}else n[r][i]=s}))}))}catch(e){(0,o.logError)(e)}}function w(e,t){l=e;try{return t()}finally{C()}}function C(){l=null}return p(),{getCurrentBidder:function(){return l},resetBidder:C,getConfig:b,getAnyConfig:h,readConfig:y,readAnyConfig:v,setConfig:E,mergeConfig:function(e){if(!(0,o.isPlainObject)(e))return void(0,o.logError)("mergeConfig input must be an object");const t=(0,o.mergeDeep)(m(),e);return E({...t}),t},setDefaults:function(n){(0,o.isPlainObject)(e)?(Object.assign(e,n),Object.assign(t,n)):(0,o.logError)("defaults must be an object")},resetConfig:p,runWithBidder:w,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var n=arguments.length,r=new Array(n),i=0;i{n.d(t,{B1:()=>s,SL:()=>p,ad:()=>l,et:()=>u,mW:()=>d,o2:()=>g,t6:()=>c});var r=n(91069),i=n(25555),o=n(43272);const s=Object.freeze({});class a{#t;#n;#r;#i;#o=!0;#s;generatedTime;hashFields;constructor(){this.reset()}#a(e){this.#i=!0,this.#n=e,this.#r.resolve(e)}reset(){this.#r=(0,i.v)(),this.#t=!1,this.#n=null,this.#i=!1,this.generatedTime=null}enable(){this.#t=!0}get enabled(){return this.#t}get ready(){return this.#i}get promise(){return this.#i?i.k.resolve(this.#n):(this.#t||this.#a(null),this.#r.promise)}setConsentData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.timestamp)();this.generatedTime=t,this.#o=!0,this.#a(e)}getConsentData(){return this.#n}get hash(){return this.#o&&(this.#s=(0,r.cyrb53Hash)(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,r.isStr)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}},c=new class extends a{getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},l=new class extends a{hashFields=["applicableSections","gppString"];getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},u=(()=>{function e(){return!!o.$W.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset(){},get promise(){return i.k.resolve(e())},get hash(){return e()?"1":"0"}}})(),g=function(){const e={},t={},n={};return{register(r,i,o){o&&((e[i]=e[i]||{})[r]=o,t.hasOwnProperty(i)?t[i]!==o&&(t[i]=n):t[i]=o)},get(r){const i={modules:e[r]||{}};return t.hasOwnProperty(r)&&t[r]!==n&&(i.gvlid=t[r]),i}}}(),f={gdpr:d,usp:c,gpp:l,coppa:u};const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return e=Object.entries(e),Object.assign({get promise(){return i.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,r.cyrb53Hash)(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,r]=e;return[t,r[n]()]})))})];var n}))))}()},78969:(e,t,n)=>{n.d(t,{M:()=>i,RW:()=>f,Tf:()=>m,UE:()=>c,XQ:()=>o,Zh:()=>u,_B:()=>v,as:()=>a,cA:()=>d,h0:()=>h,iD:()=>r,jO:()=>b,nl:()=>E,oA:()=>y,qY:()=>s,tl:()=>p,x5:()=>g,xS:()=>l});const r={PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},i="pbjs_debug",o={GOOD:1},s={AUCTION_INIT:"auctionInit",AUCTION_TIMEOUT:"auctionTimeout",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_REJECTED:"bidRejected",NO_BID:"noBid",SEAT_NON_BID:"seatNonBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",BIDDER_ERROR:"bidderError",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",BEFORE_BIDDER_HTTP:"beforeBidderHttp",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",AD_RENDER_SUCCEEDED:"adRenderSucceeded",TCF2_ENFORCEMENT:"tcf2Enforcement",AUCTION_DEBUG:"auctionDebug",BID_VIEWABLE:"bidViewable",STALE_RENDER:"staleRender",BILLABLE_EVENT:"billableEvent",BID_ACCEPTED:"bidAccepted",RUN_PAAPI_AUCTION:"paapiRunAuction",PAAPI_BID:"paapiBid",PAAPI_NO_BID:"paapiNoBid",PAAPI_ERROR:"paapiError"},a={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},d={bidWon:"adUnitCode"},c={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},l={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host",ADOMAIN:"hb_adomain",ACAT:"hb_acat",CRID:"hb_crid",DSP:"hb_dsp"},u={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_HOST:"hb_cache_host"},g={title:"hb_native_title",body:"hb_native_body",body2:"hb_native_body2",privacyLink:"hb_native_privacy",privacyIcon:"hb_native_privicon",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",displayUrl:"hb_native_displayurl",cta:"hb_native_cta",rating:"hb_native_rating",address:"hb_native_address",downloads:"hb_native_downloads",likes:"hb_native_likes",phone:"hb_native_phone",price:"hb_native_price",salePrice:"hb_native_saleprice",rendererUrl:"hb_renderer_url",adTemplate:"hb_adTemplate"},f={SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},p={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},m={INVALID:"Bid has missing or invalid properties",INVALID_REQUEST_ID:"Invalid request ID",BIDDER_DISALLOWED:"Bidder code is not allowed by allowedAlternateBidderCodes / allowUnknownBidderCodes",FLOOR_NOT_MET:"Bid does not meet price floor",CANNOT_CONVERT_CURRENCY:"Unable to convert currency",DSA_REQUIRED:"Bid does not provide required DSA transparency info",DSA_MISMATCH:"Bid indicates inappropriate DSA rendering method",PRICE_TOO_HIGH:"Bid price exceeds maximum value"},h={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},b={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},y={ICON:1,MAIN:3},v=["privacyIcon","clickUrl","sendTargetingKeys","adTemplate","rendererUrl","type"],E={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"}},86833:(e,t,n)=>{n.d(t,{j:()=>g,q:()=>p});var r=n(15901),i=n(91069),o=n(43272);const s=2,a={buckets:[{max:5,increment:.5}]},d={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},l={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},u={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function g(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":f(e,a,n),med:""===r?"":f(e,d,n),high:""===r?"":f(e,c,n),auto:""===r?"":f(e,u,n),dense:""===r?"":f(e,l,n),custom:""===r?"":f(e,t,n)}}function f(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,l=(0,r.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 l&&(a=function(e,t,n){const r=void 0!==t.precision?t.precision:s,a=t.increment*n,d=t.min*n;let c=Math.floor,l=o.$W.getConfig("cpmRoundingFunction");"function"==typeof l&&(c=l);let u,g,f=Math.pow(10,r+2),p=(e*f-d*f)/(a*f);try{u=c(p)*a+d}catch(e){g=!0}(g||"number"!=typeof u)&&((0,i.logWarn)("Invalid rounding function passed in config"),u=Math.floor(p)*a+d);return u=Number(u.toFixed(10)),u.toFixed(r)}(e,l,n)),a}function p(e){if((0,i.isEmpty)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;let t=!0;return e.buckets.forEach((e=>{e.max&&e.increment||(t=!1)})),t}},46031:(e,t,n)=>{n.d(t,{H:()=>a,k:()=>s});var r=n(25555),i=n(91069),o=n(34595);const s=(0,n(16833).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 r.k((e=>{const t=(0,i.createInvisibleIframe)();t.srcdoc=`