/* Ascendeum build - on prebid.js v9.12.0 Site: loladigital Updated: 2024-09-27T09:05:05 Modules: userId, schain, 33acrossIdSystem, id5IdSystem, appnexusBidAdapter, yieldmoBidAdapter, openxBidAdapter, medianetBidAdapter, sovrnBidAdapter, kargoBidAdapter, pubmaticBidAdapter, tripleliftBidAdapter, criteoBidAdapter, adfBidAdapter, teadsBidAdapter, adagioBidAdapter, adyoulikeBidAdapter, richaudienceBidAdapter, smartadserverBidAdapter, ixBidAdapter, rubiconBidAdapter, sharethroughBidAdapter */ 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(){ (self.pbjsChunk=self.pbjsChunk||[]).push([[826],{8623:()=>{var e=window.pbjs||{};function a(e,a){a||(a=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var d=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(a);return d?d[2]?decodeURIComponent(d[2].replace(/\+/g," ")):"":null}e.que=e.que||[],window.pbjs=e;a("indexTest");function d(){return window.screen.width||window.innerWidth||window.document.documentElement.clientWidth||Math.min(window.innerWidth,window.document.documentElement.clientWidth)||window.innerWidth||window.document.documentElement.clientWidth||window.document.getElementsByTagName("body")[0].clientWidth}var r=1800,s=970,i=800,t="xl";d(){p("",!0)}),d.timeout),I=[],c=[];if(d.els.forEach((e=>{let r=function(e,d){let r={code:e.id,unit:"",mediaTypes:{banner:{sizes:[]}},bids:[]};if(d.site_code,!e.dataset.size)return!1;if(!e.dataset.location)return!1;let s=!1;if(n.filter((e=>e.site_code.toLowerCase()==d.site_code.toLowerCase())).forEach((a=>{a.unit.toLowerCase()==e.dataset.size.toLowerCase()&&a.location.toLowerCase()==e.dataset.location.toLowerCase()&&(adunitMap=a,s=!0)})),!s)return!1;r.mediaTypes.banner.sizes=adunitMap.sizes[t],r.unit=adunitMap.unit;let i=adunitMap.sizes[t].map((e=>e[0]+"x"+e[1])),m=adunitMap.bids.filter((e=>!(e.size&&i.indexOf(e.size[0]+"x"+e.size[1])<0)));return r.bids=m,"true"==a("testbids")&&(r.bids=[{bidder:"appnexus",params:{placementId:"13144370"}}]),r}(e,d.config);r&&(I.push(r),c.push(e.id))})),o){var z=I.map((e=>({slotID:e.code,slotName:m.gam_id+"/"+m.gam_parent+"/"+m.site_code+"_"+e.unit,sizes:e.mediaTypes.banner.sizes})));apstag.fetchBids({slots:z,timeout:d.timeout},(function(e){p("a9")}))}e.que.push((function(){e.bidderSettings={standard:{storageAllowed:!0}},e.requestBids({timeout:d.timeout,adUnits:I,bidsBackHandler:function(e){p("prebid")}})}))}}},e=>{e.O(0,[823,270],(()=>{return a=8623,e(e.s=a);var a}));e.O()}]); (()=>{var r,t={265:(r,t,n)=>{function e(r,t,n,e,o){for(t=t.split?t.split("."):t,e=0;ee})},1432:r=>{f.SYNC=1,f.ASYNC=2,f.QUEUE=4;var t=Object.freeze({useProxy:!0,ready:0}),n=new WeakMap,e="2,1,0"===[1].reduce((function(r,t,n){return[r,t,n]}),2).toString()?Array.prototype.reduce:function(r,t){var n,e=Object(this),o=e.length>>>0,i=0;if(t)n=t;else{for(;i{function e(r,t,n){t.split&&(t=t.split("."));for(var e,o,i=0,f=t.length,u=r;ie})},8812:(r,t,n)=>{function e(r){var t,n,o;if(Array.isArray(r)){for(n=Array(t=r.length);t--;)n[t]=(o=r[t])&&"object"==typeof o?e(o):o;return n}if("[object Object]"===Object.prototype.toString.call(r)){for(t in n={},r)"__proto__"===t?Object.defineProperty(n,t,{value:e(r[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(o=r[t])&&"object"==typeof o?e(o):o;return n}return r}n.d(t,{Y:()=>e})}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.m=t,r=[],e.O=(t,n,o,i)=>{if(!n){var f=1/0;for(l=0;l=i)&&Object.keys(e.O).every((r=>e.O[r](n[a])))?n.splice(a--,1):(u=!1,i0&&r[l-1][2]>i;l--)r[l]=r[l-1];r[l]=[n,o,i]},e.n=r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},e.d=(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},e.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),(()=>{var r={602:0};e.O.j=t=>0===r[t];var t=(t,n)=>{var o,i,f=n[0],u=n[1],a=n[2],c=0;if(f.some((t=>0!==r[t]))){for(o in u)e.o(u,o)&&(e.m[o]=u[o]);if(a)var l=a(e)}for(t&&t(n);ce(4102)));o=e.O(o)})(); (self.pbjsChunk=self.pbjsChunk||[]).push([[823],{5706:(e,t,n)=>{n.d(t,{Pd:()=>u,Th:()=>c,_U:()=>l});var i=n(5730),r=n(4358),o=n(265),s=n(4614);const a=(0,n(8640).R)(),d="outstream";function c(e){const{url:t,config:n,id:o,callback:s,loaded:a,adUnitCode:c,renderNow:u}=e;this.url=t,this.config=n,this.handlers={},this.id=o,this.renderNow=u,this.loaded=a,this.cmd=[],this.push=e=>{"function"==typeof e?this.loaded?e.call():this.cmd.push(e):(0,r.H)("Commands given to Renderer.push must be wrapped in a function")},this.callback=s||(()=>{this.loaded=!0,this.process()}),this.render=function(){const e=arguments,n=()=>{this._render?this._render.apply(this,e):(0,r.yN)("No render function was provided, please use .setRender on the renderer")};f(c)?((0,r.yN)(`External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ${c}`),n()):u?n():(this.cmd.unshift(n),(0,i.B)(t,d,this.callback,this.documentContext))}.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)}function f(e){const t=a.adUnits,n=(0,s.sE)(t,(t=>t.code===e));if(!n)return!1;const i=(0,o.Z)(n,"renderer"),r=!!(i&&i.url&&i.render),d=(0,o.Z)(n,"mediaTypes.video.renderer"),c=!!(d&&d.url&&d.render);return!!(r&&!0!==i.backupOnly||c&&!0!==d.backupOnly)}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.ji)(`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.H)("Error processing Renderer command: ",e)}}},4947:(e,t,n)=>{n.d(t,{EL:()=>o,Jt:()=>l,K$:()=>r,S1:()=>i,UE:()=>s,e:()=>d,g0:()=>u,oK:()=>c,x$:()=>a});const i="accessDevice",r="syncUser",o="enrichEids",s="fetchBids",a="reportAnalytics",d="transmitEids",c="transmitUfpd",u="transmitPreciseGeo",l="transmitTid"},286:(e,t,n)=>{n.d(t,{T:()=>r});var i=n(1453);const r=(0,n(6310).Oj)((e=>i.ZP.resolveAlias(e)))},9633:(e,t,n)=>{n.d(t,{UL:()=>r,_U:()=>s,wu:()=>i,y2:()=>o});const i="prebid",r="bidder",o="userId",s="analytics"},6310:(e,t,n)=>{n.d(t,{$k:()=>s,Hw:()=>g,IV:()=>f,JR:()=>o,Ki:()=>d,Oj:()=>p,Qf:()=>u,bL:()=>c,bp:()=>a,cx:()=>l});var i=n(9633),r=n(2797);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.UL&&(c[d]=e(n)),h(Object.assign(c,r))}}const h=(0,r.z3)("sync",(e=>e))},571:(e,t,n)=>{n.d(t,{oB:()=>o,xD:()=>s});var i=n(4358),r=n(6310);const[o,s]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.qp)("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.JR]},s)}const s={},a=1e3;function d(t){let{activity:n,name:i,allow:r,reason:o,component:d}=t;const c=`${i} ${r?"allowed":"denied"} '${n}' for '${d}'${o?":":""}`,u=s.hasOwnProperty(c);if(u&&clearTimeout(s[c]),s[c]=setTimeout((()=>delete s[c]),a),!u){const t=[c];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,a,c]of n(e)){if(i!==s&&r)break;i=s;const n=o(e,a,c,t);if(n){if(!n.allow)return d(n),!1;r=n}}return r&&d(r),!0}]}()},3667:(e,t,n)=>{n.d(t,{E$:()=>O,Lj:()=>k,Ps:()=>w,XD:()=>S,YC:()=>E,nI:()=>j,oc:()=>C,tV:()=>U});var i=n(4358),r=n(265),o=n(2021),s=n(2200),a=n(3193),d=n(5706),c=n(4679),u=n(1176),l=n(8099),f=n(2797),g=n(59),p=n(8792),h=n(1453);const{AD_RENDER_FAILED:m,AD_RENDER_SUCCEEDED:b,STALE_RENDER:y,BID_WON:v}=s.FP,{EXCEPTION:T}=s.q_,E=(0,f.z3)("sync",(function(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Z.resolve();return t.then((t=>t??u.K.findBidByAdId(e))).catch((()=>{}))})),w=(0,f.z3)("sync",(function(e){o.j8(v,e),u.K.addWinningBid(e)}));function I(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.H)(`Error rendering ad (id: ${s}): ${n}`),o.j8(m,a)}function A(e){let{doc:t,bid:n,id:i}=e;const r={doc:t};n&&(r.bid=n),i&&(r.adId=i),h.ZP.callAdRenderSucceededBidder(n.adapterCode||n.bidder,n),o.j8(b,r)}function C(e,t){switch(e.event){case s.FP.AD_RENDER_FAILED:I({bid:t,id:t.adId,reason:e.info.reason,message:e.info.message});break;case s.FP.AD_RENDER_SUCCEEDED:A({doc:null,bid:t,id:t.adId});break;default:(0,i.H)(`Received event request for unsupported event: '${e.event}' (adId: '${t.adId}')`)}}function O(e,t,n){let{resizeFn:i,fireTrackers:r=g.e6}=n;if("resizeNativeHeight"===e.action)i(e.width,e.height);else r(e,t)}const B={[s.X3.EVENT]:C};B[s.X3.NATIVE]=O;const k=(0,f.z3)("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.No)(n,c),adUrl:(0,i.No)(r,c),width:a,height:d}})),R=(0,f.z3)("sync",(function(e){let{renderFn:t,resizeFn:n,bidResponse:i,options:r}=e;if(i.mediaType===c.pX)return void I({reason:s.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:"Cannot render video ad",bid:i,id:i.adId});const o=k(i,r);t(Object.assign({adId:i.adId},o));const{width:a,height:d}=o;null!=(a??d)&&n(a,d)}));function S(e){let{renderFn:t,resizeFn:n,adId:d,options:c,bidResponse:u,doc:l}=e;if(null!=u){if(u.status!==s.UE.RENDERED||((0,i.yN)(`Ad id ${d} has been rendered before`),o.j8(y,u),!(0,r.Z)(a.vc.getConfig("auctionOptions"),"suppressStaleRender"))){try{R({renderFn:t,resizeFn:n,bidResponse:u,options:c,doc:l})}catch(e){I({reason:s.q_.EXCEPTION,message:e.message,id:d,bid:u})}w(u)}}else I({reason:s.q_.CANNOT_FIND_AD,message:`Cannot find ad '${d}'`,id:d})}function U(e,t,n){let r;function o(e,n){I(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){B.hasOwnProperty(e)&&B[e](t,n,c)});var c;function u(t){t.ad?(e.write(t.ad),e.close(),A({doc:e,bid:r,adId:r.adId})):(0,l.W)(r).then((n=>n(t,{sendMessage:(e,t)=>d(e,t,r),mkFrame:i.Vz},e.defaultView))).then((()=>A({doc:e,bid:r,adId:r.adId})),(e=>{o(e?.reason||s.q_.EXCEPTION,e?.message),e?.stack&&(0,i.H)(e)}));const n=document.createComment(`Creative ${r.creativeId} served by ${r.bidder} Prebid.js Header Bidding`);(0,i.jC)(n,e,"html")}try{t&&e?e!==document||(0,i.yL)()?E(t).then((i=>{r=i,S({renderFn:u,resizeFn:a,adId:t,options:{clickUrl:n?.clickThrough},bidResponse:i,doc:e})})):o(s.q_.PREVENT_WRITING_ON_MAIN_DOCUMENT,"renderAd was prevented from writing to the main document."):o(s.q_.MISSING_DOC_OR_ADID,"missing "+(t?"doc":"adId"))}catch(e){o(T,e.message)}}function j(){if(!window.frames[s.vX])if(document.body){const e=(0,i.$u)();e.name=s.vX,document.body.appendChild(e)}else window.requestAnimationFrame(j)}R.before((function(e,t){const{bidResponse:n,doc:i}=t;(0,d.Pd)(n.renderer)?((0,d._U)(n.renderer,n,i),A({doc:i,bid:n,id:n.adId}),e.bail()):e(t)}),100)},1453:(e,t,n)=>{n.d(t,{ZP:()=>de,uV:()=>ne});var i=n(4358),r=n(265),o=n(59),s=n(5339),a=n(8928),d=n(3193),c=n(2797),u=n(4614);let l={};function f(e,t,n){let i=function(e,t){let n=l[e]=l[e]||{bidders:{}};return t?n.bidders[t]=n.bidders[t]||{}:n}(e,n);return i[t]=(i[t]||0)+1,i[t]}function g(e){return f(e,"requestsCounter")}function p(e){return l?.[e]?.requestsCounter||0}function h(e,t){return l?.[e]?.bidders?.[t]?.requestsCounter||0}function m(e,t){return l?.[e]?.bidders?.[t]?.winsCounter||0}var b=n(5102),y=n(4516),v=n(2021),T=n(2200),E=n(9128),w=n(1176),I=n(9633),A=n(571),C=n(4947),O=n(6310);function B(e){if(!e)return null;let t=e.split(".").map(Number);if(4!=t.length)return null;let n=[];for(let e=0;e<4;e++){let t=Math.max(0,Math.min(8,24-8*e));n.push(255<<8-t&255)}return t.map(((e,t)=>e&n[t])).join(".")}function k(e){if(!e)return null;let t=e.split(":").map((e=>parseInt(e,16)));for(t=t.map((e=>isNaN(e)?0:e));t.length<8;)t.push(0);if(8!=t.length)return null;let n=[];for(let e=0;e<8;e++){let t=Math.max(0,Math.min(16,64-16*e));n.push(65535<<16-t&65535)}return t.map(((e,t)=>e&n[t])).map((e=>e.toString(16))).join(":")}const R=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((e=>`user.${e}`)).concat("device.ext.cdep"),S=["user.eids","user.ext.eids"],U=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"],j=["device.ip"],D=["device.ipv6"];function N(e){return Object.assign({get(){},run(e,t,n,i,r){const o=n&&n[i];if(function(e){return null!=e&&("object"!=typeof e||Object.keys(e).length>0)}(o)&&r()){const e=this.get(o);void 0===e?delete n[i]:n[i]=e}}},e)}function _(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.Z)(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 P(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:A.xD;return function(n){return!t(e,n)}}function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.xD;return[{name:C.e,paths:["userId","userIdAsEids"],applies:q(C.e,e)},{name:C.Jt,paths:["ortb2Imp.ext.tid"],applies:q(C.Jt,e)}].map(N)}function $(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.xD;return[{name:C.oK,paths:R,applies:q(C.oK,e)},{name:C.e,paths:S,applies:q(C.e,e)},{name:C.g0,paths:U,applies:q(C.g0,e),get:e=>Math.round(100*(e+Number.EPSILON))/100},{name:C.g0,paths:j,applies:q(C.g0,e),get:e=>B(e)},{name:C.g0,paths:D,applies:q(C.g0,e),get:e=>k(e)},{name:C.Jt,paths:["source.tid"],applies:q(C.Jt,e)}].map(N)}const H=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.xD;const t=_($(e)),n=_(x(e));return function(e){const i={};return{ortb2:n=>(t(i,n,e),n),bidRequest:t=>(n(i,t,e),t)}}}();(0,A.oB)(C.Jt,"enableTIDs config",(()=>{if(!d.vc.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}));const F="pbsBidAdapter",M={CLIENT:"client",SERVER:"server"},L={isAllowed:A.xD,redact:H};let z={},G=z.bidderRegistry={},W=z.aliasRegistry={},V=[];d.vc.getConfig("s2sConfig",(e=>{e&&e.s2sConfig&&(V=(0,i.kJ)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var Z={};const K=(0,O.Oj)((e=>z.resolveAlias(e)));function J(e){return K(I.wu,F,{[O.Qf]:e.configName})}const Q=(0,c.z3)("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 u=null==(c=Object.assign({},c,{ortb2Imp:(0,i.Ee)({},s.ortb2Imp,c.ortb2Imp)},(0,i.iG)(s,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?s.mediaTypes:c.mediaTypes;return(0,i.FS)(u)?c=Object.assign({},c,{mediaTypes:u}):(0,i.H)(`mediaTypes is not correctly configured for adunit ${s.code}`),"client"===a&&function(e,t){f(e,"requestsCounter",t)}(s.code,t),e.push(Object.assign({},c,{adUnitCode:s.code,transactionId:s.transactionId,adUnitId:s.adUnitId,sizes:(0,r.Z)(u,"banner.sizes")||(0,r.Z)(u,"video.playerSize")||[],bidId:c.bid_id||(0,i._d)(),bidderRequestId:o,auctionId:n,src:a,metrics:d,bidRequestsCount:p(s.code),bidderRequestsCount:h(s.code,c.bidder),bidderWinsCount:m(s.code,c.bidder)})),e}),[])),e}),[]).reduce(i.xH,[]).filter((e=>""!==e))}),"getBids");const X=(0,c.z3)("sync",(function(e,t){let{getS2SBidders:n=ne}=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");function Y(e,t){let n=(0,i.I8)(e),r=!1;return n.forEach((e=>{const n=e.bids.filter((e=>e.module===F&&e.params?.configName===t.configName));1===n.length?(e.s2sBid=n[0],r=!0,e.ortb2Imp=(0,i.Ee)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):n.length>1&&(0,i.yN)('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,i._d)(),e)))})),n=n.filter((e=>0!==e.bids.length||null!=e.s2sBid)),{adUnits:n,hasModuleBids:r}}function ee(e){let t=(0,i.I8)(e);return t.forEach((e=>{e.bids=X(e.bids,null)})),t=t.filter((e=>0!==e.bids.length)),t}const te=(0,c.z3)("sync",((e,t)=>e),"setupAdUnitMediaTypes");function ne(e){(0,i.kJ)(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 ie=(0,c.z3)("sync",(function(e,t){let{getS2SBidders:n=ne}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n(t);return(0,i.pP)(e).reduce(((e,t)=>(e[r.has(t)?M.SERVER:M.CLIENT].push(t),e)),{[M.CLIENT]:[],[M.SERVER]:[]})}),"partitionBidders");function re(e,t){const n=G[e],i=n?.getSpec&&n.getSpec();if(i&&i[t]&&"function"==typeof i[t])return[i,i[t]]}function oe(e,t,n,r){try{(0,i.PN)(`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.Bf)(c),v.j8(T.FP.BEFORE_REQUEST_BIDS,e),(0,o.Fb)(e),e.forEach((e=>{(0,i.PO)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((e=>!e.bidder||L.isAllowed(C.UE,K(I.UL,e.bidder)))),g(e.code)})),e=te(e,s);let{[M.CLIENT]:l,[M.SERVER]:f}=ie(e,V);d.vc.getConfig("bidderSequence")===d.FD&&(l=(0,i.TV)(l));const p=(0,b.nH)();let h=[];const m=a.global||{},w=a.bidder||{};function A(e,t){const r=L.redact(null!=t?t:K(I.UL,e.bidderCode)),o=Object.freeze(r.ortb2((0,i.Ee)({source:{tid:n}},m,w[e.bidderCode])));return e.ortb2=o,e.bids=e.bids.map((e=>(e.ortb2=o,r.bidRequest(e)))),e}V.forEach((r=>{const o=J(r);if(r&&r.enabled&&L.isAllowed(C.UE,o)){let{adUnits:s,hasModuleBids:a}=Y(e,r),d=(0,i.DO)();(0===f.length&&a?[null]:f).forEach((e=>{const a=(0,i._d)(),u=c.fork(),l=A({bidderCode:e,auctionId:n,bidderRequestId:a,uniquePbsTid:d,bids:Q({bidderCode:e,auctionId:n,bidderRequestId:a,adUnits:(0,i.I8)(s),src:T.os.SRC,metrics:u}),auctionStart:t,timeout:r.timeout,src:T.os.SRC,refererInfo:p,metrics:u},o);0!==l.bids.length&&h.push(l)})),s.forEach((e=>{let t=e.bids.filter((e=>(0,u.sE)(h,(t=>(0,u.sE)(t.bids,(t=>t.bidId===e.bid_id))))));e.bids=t})),h.forEach((e=>{void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=s.filter((e=>e.bids.length>0||null!=e.s2sBid)))}))}}));let O=ee(e);return l.forEach((e=>{const o=(0,i._d)(),a=c.fork(),d=A({bidderCode:e,auctionId:n,bidderRequestId:o,bids:Q({bidderCode:e,auctionId:n,bidderRequestId:o,adUnits:(0,i.I8)(O),labels:s,src:"client",metrics:a}),auctionStart:t,timeout:r,refererInfo:p,metrics:a}),u=G[e];u||(0,i.H)(`Trying to make a request for bidder that does not exist: ${e}`),u&&d.bids&&0!==d.bids.length&&h.push(d)})),h.forEach((e=>{y.rp.getConsentData()&&(e.gdprConsent=y.rp.getConsentData()),y.nX.getConsentData()&&(e.uspConsent=y.nX.getConsentData()),y.TJ.getConsentData()&&(e.gppConsent=y.TJ.getConsentData())})),h}),"makeBidRequests"),z.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.yN)("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===T.os.SRC)].push(t),e)),[[],[]]);var g=[];f.forEach((e=>{for(var t=-1,n=0;n{if(e&&g[p]&&ne(e).has(g[p].bidderCode)){const t=(0,a.OI)(s,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0);let d=e.bidders;const l=G[e.adapter];let h=g[p].uniquePbsTid,m=g[p].adUnitsS2SCopy,b=f.filter((e=>e.uniquePbsTid===h));if(l){let o={ad_units:m,s2sConfig:e,ortb2Fragments:u,requestBidsTimeout:s};if(o.ad_units.length){let e=b.map((e=>(e.start=(0,i.AB)(),function(t){t||c(e.bidderRequestId),r.apply(e,arguments)})));const s=(0,i.pP)(o.ad_units).filter((e=>d.includes(e)));(0,i.ji)(`CALLING S2S HEADER BIDDERS ==== ${s.length>0?s.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only'}`),b.forEach((e=>{v.j8(T.FP.BID_REQUESTED,{...e,tid:e.auctionId})})),l.callBids(o,f,n,(t=>e.forEach((e=>e(t)))),t)}}else(0,i.H)("missing "+e.adapter);p++}})),l.forEach((e=>{e.start=(0,i.AB)();const t=G[e.bidderCode];d.vc.runWithBidder(e.bidderCode,(()=>{(0,i.ji)("CALLING BIDDER"),v.j8(T.FP.BID_REQUESTED,e)}));let u=(0,a.OI)(s,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0);const l=r.bind(e);try{d.vc.runWithBidder(e.bidderCode,t.callBids.bind(t,e,n,l,u,(()=>c(e.bidderRequestId)),d.vc.callbackWithBidder(e.bidderCode)))}catch(t){(0,i.H)(`${e.bidderCode} Bid Adapter emitted an uncaught error when parsing their bidRequest`,{e:t,bidRequest:e}),l()}}))},z.videoAdapters=[],z.registerBidAdapter=function(e,t){let{supportedMediaTypes:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&t?"function"==typeof e.callBids?(G[t]=e,y.qh.register(I.UL,t,e.getSpec?.().gvlid),(0,u.q9)(n,"video")&&z.videoAdapters.push(t),(0,u.q9)(n,"native")&&o.Sg.push(t)):(0,i.H)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):(0,i.H)("bidAdapter or bidderCode not specified")},z.aliasBidAdapter=function(e,t,n){if(void 0===G[t]){let r=G[e];if(void 0===r){const n=[];V.forEach((i=>{if(i.bidders&&i.bidders.length){const r=i&&i.bidders;i&&(0,u.q9)(r,t)?W[t]=e:n.push(e)}})),n.forEach((e=>{(0,i.H)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{let a,d=function(e){let t=[];return(0,u.q9)(z.videoAdapters,e)&&t.push("video"),(0,u.q9)(o.Sg,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.yN)(`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.PZ)(Object.assign({},o,{code:t,gvlid:d,skipPbsAliasing:c})),W[t]=e}z.registerBidAdapter(a,t,{supportedMediaTypes:d})}catch(t){(0,i.H)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,i.ji)('alias name "'+t+'" has been already specified.')},z.resolveAlias=function(e){let t,n=e;for(;W[n]&&(!t||!t.has(n));)n=W[n],(t=t||new Set).add(n);return n},z.registerAnalyticsAdapter=function(e){let{adapter:t,code:n,gvlid:r}=e;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,Z[n]={adapter:t,gvlid:r},y.qh.register(I._U,n,r)):(0,i.H)(`Prebid Error: Analytics adaptor error for analytics "${n}"\n analytics adapter must implement an enableAnalytics() function`):(0,i.H)("Prebid Error: analyticsAdapter or analyticsCode not specified")},z.enableAnalytics=function(e){(0,i.kJ)(e)||(e=[e]),e.forEach((e=>{const t=Z[e.provider];t&&t.adapter?L.isAllowed(C.x$,K(I._U,e.provider,{[O.Hw]:e}))&&t.adapter.enableAnalytics(e):(0,i.H)(`Prebid Error: no analytics adapter found in registry for '${e.provider}'.`)}))},z.getBidAdapter=function(e){return G[e]},z.getAnalyticsAdapter=function(e){return Z[e]},z.callTimedOutBidders=function(e,t,n){t=t.map((t=>(t.params=(0,i.S0)(e,t.adUnitCode,t.bidder),t.timeout=n,t))),t=(0,i.vM)(t,"bidder"),Object.keys(t).forEach((e=>{se(e,"onTimeout",t[e])}))},z.callBidWonBidder=function(e,t,n){var r,o;t.params=(0,i.S0)(n,t.adUnitCode,t.bidder),r=t.adUnitCode,o=t.bidder,f(r,"winsCounter",o),se(e,"onBidWon",t)},z.callBidBillableBidder=function(e){se(e.bidder,"onBidBillable",e)},z.callSetTargetingBidder=function(e,t){se(e,"onSetTargeting",t)},z.callBidViewableBidder=function(e,t){se(e,"onBidViewable",t)},z.callBidderError=function(e,t,n){se(e,"onBidderError",{error:t,bidderRequest:n})},z.callAdRenderSucceededBidder=function(e,t){se(e,"onAdRenderSucceeded",t)},z.callDataDeletionRequest=(0,c.z3)("sync",(function(){for(var e=arguments.length,t=new Array(e),n=0;n!W.hasOwnProperty(e))).forEach((e=>{const n=re(e,r);if(null!=n){const i=w.K.getBidsRequested().filter((t=>ae(t.bidderCode)===e));oe(e,r,...n,i,...t)}})),Object.entries(Z).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.H)(`error calling ${r} of ${n}`,e)}}))}));const de=z},5339:(e,t,n)=>{function i(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}n.d(t,{PZ:()=>C,dX:()=>A});var r=n(1453),o=n(3193),s=n(9626),a=n(1974),d=n(59),c=n(154),u=n(2200),l=n(2021),f=n(4614),g=n(4358),p=n(2797),h=n(1176),m=n(5975),b=n(9128),y=n(571),v=n(286),T=n(9633),E=n(4947);const w=["cpm","ttl","creativeId","netRevenue","currency"],I=["auctionId","transactionId"];function A(e){const t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function n(e){const n=C(e);r.ZP.registerBidAdapter(n,e.code,t)}n(e),Array.isArray(e.aliases)&&e.aliases.forEach((t=>{let i,o,s=t;(0,g.PO)(t)&&(s=t.code,i=t.gvlid,o=t.skipPbsAliasing),r.ZP.aliasRegistry[s]=e.code,n(Object.assign({},e,{code:s,gvlid:i,skipPbsAliasing:o}))}))}function C(e){return Object.assign(new i(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:t,callBids:function(n,i,a,p,A,C){if(!Array.isArray(n.bids))return;const O=function(e){if((0,y.xD)(E.Jt,(0,v.T)(T.UL,e)))return{bidRequest:e=>e,bidderRequest:e=>e};function t(e,t,n){return I.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.HP)((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),k={};function j(e,t){const n=(0,b.Bf)(t.metrics);n.checkpoint("addBidResponse"),k[e]=!0,n.measureTime("addBidResponse.validate",(()=>function(e,t){let{index:n=h.K.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(){let e=Object.keys(t);return w.every((n=>(0,f.q9)(e,n)&&!(0,f.q9)([void 0,null],t[n])))}function r(e){return`Invalid bid from ${t.bidderCode}. Ignoring bid: ${e}`}if(!e)return(0,g.yN)("No adUnitCode was supplied to addBidResponse."),!1;if(!t)return(0,g.yN)(`Some adapter tried to add an undefined bid for ${e}.`),!1;if(!i())return(0,g.H)(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.r4)(t,{index:n}))return(0,g.H)(r("Native bid missing some required properties.")),!1;if("video"===t.mediaType&&!(0,c.Dn)(t,{index:n}))return(0,g.H)(r("Video bid does not have required vastUrl or renderer property")),!1;if("banner"===t.mediaType&&!S(e,t,{index:n}))return(0,g.H)(r("Banner bids require a width and height")),!1;return!0}(e,t)))?i(e,t):i.reject(e,t,u.Gw.INVALID)}const D=[];function N(){a(),o.vc.runWithBidder(e.code,(()=>{l.j8(u.FP.BIDDER_DONE,n),t(D,n.gdprConsent,n.uspConsent,n.gppConsent)}))}const _=U(n).measureTime("validate",(()=>n.bids.filter((t=>function(t){if(!e.isBidRequestValid(t))return(0,g.yN)(`Invalid bid sent to bidder ${e.code}: ${JSON.stringify(t)}`),!1;return!0}(O.bidRequest(t))))));if(0===_.length)return void N();const P={};_.forEach((e=>{P[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),B(e,_.map(O.bidRequest),O.bidderRequest(n),p,C,{onRequest:e=>l.j8(u.FP.BEFORE_BIDDER_HTTP,n,e),onResponse:t=>{A(e.code),D.push(t)},onPaapi:e=>{const t=P[e.bidId];t?R(t,e):(0,g.yN)("Received fledge auction configuration for an unknown bidId",e)},onError:(t,i)=>{i.timedOut||A(e.code),r.ZP.callBidderError(e.code,i,n),l.j8(u.FP.BIDDER_ERROR,{error:i,bidderRequest:n}),(0,g.H)(`Server call for ${e.code} failed: ${t} ${i.status}. Continuing without bids.`)},onBid:t=>{const n=P[t.requestId];if(n){if(t.adapterCode=n.bidder,function(e,t){let n=m.S.get(t,"allowAlternateBidderCodes")||!1,i=m.S.get(t,"allowedAlternateBidderCodes");if(e&&t&&t!==e&&(i=(0,g.kJ)(i)?i.map((e=>e.trim().toLowerCase())).filter((e=>!!e)).filter(g.tT):i,!n||(0,g.kJ)(i)&&"*"!==i[0]&&!i.includes(e)))return!0;return!1}(t.bidderCode,n.bidder))return(0,g.yN)(`${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.Gw.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.m)(u.Q_.GOOD,n),t,(0,g.ei)(n,I));j(n.adUnitCode,e)}else(0,g.yN)(`Bidder ${e.code} made bid for unknown request ID: ${t.requestId}. Ignoring.`),i.reject(null,t,u.Gw.INVALID_REQUEST_ID)},onCompletion:N})}});function t(t,n,i,r){k(e,t,n,i,r)}}const O=["bids","paapi"],B=(0,p.z3)("sync",(function(e,t,n,i,r,o){let{onRequest:s,onResponse:a,onPaapi:d,onError:c,onBid:u,onCompletion:l}=o;const f=U(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.yx)(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.H)(`Bidder ${e.code} failed to interpret the server's response. Continuing without bids`,null,t),void h()}let s,c;i&&!Object.keys(i).some((e=>!O.includes(e)))?(s=i.bids,c=i.paapi):s=i,(0,g.kJ)(c)&&c.forEach(d),s&&((0,g.kJ)(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.S.get(e.code,"topicsHeader")??!0)&&(0,y.xD)(E.oK,(0,v.T)(T.UL,e.code)))})}switch(t.method){case"GET":i(`${t.url}${function(e){if(e)return`?${"object"==typeof e?(0,g.Re)(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.yN)(`Skipping invalid request from ${e.code}. Request type ${t.type} must be GET or POST`),h()}}))}),"processBidderRequests"),k=(0,p.z3)("async",(function(e,t,n,i,s){const d=o.vc.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(d||!r.ZP.aliasRegistry[e.code])){let r=o.vc.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.k_.registerSync(t.type,e.code,t.url)})),a.k_.bidderDone(e.code))}}),"registerSyncs"),R=(0,p.z3)("sync",((e,t)=>{}),"addPaapiConfig");function S(e,t){let{index:n=h.K.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.sF)(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}function U(e){return(0,b.Bf)(e.metrics).renameWith((t=>[`adapter.client.${t}`,`adapters.client.${e.bidderCode}.${t}`]))}},5730:(e,t,n)=>{n.d(t,{B:()=>a});var i=n(4614),r=n(4358);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","symitridap","wurfl","justtag","tncId","ftrackId","id5"];function a(e,t,n,a,d){if(!t||!e)return void(0,r.H)("cannot load external script without url and moduleCode");if(!(0,i.q9)(s,t))return void(0,r.H)(`${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.yN)(`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.D9)(s,o);return(0,r.jC)(s,i),s}(e,(function(){l.loaded=!0;try{for(let e=0;e{n.d(t,{G:()=>i});const i=(0,n(2797).z3)("sync",(()=>{}))},8928:(e,t,n)=>{n.d(t,{OI:()=>g,he:()=>h,hj:()=>p});var i=n(3193),r=n(4358);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.H)(`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(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.en)(e,n);Object.assign(i.search,t),e=(0,r.Q2)(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),n.keepalive&&(u.keepalive=!0),o.makeRequest(e,u)}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]:{},r=(t,n)=>{let r;null==e||null!=n?.signal||i.vc.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 l(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.H)},getResponseHeader:e=>o?.has(e)?o.get(e):null,toJSON(){return Object.assign({responseXML:c()},this)},timedOut:!1}}function f(e,t){const{success:n,error:i}="object"==typeof t&&null!=t?t:{success:"function"==typeof t?t:()=>null,error:(e,t)=>(0,r.H)("Network error",e,t)};return e.then((e=>e.text().then((t=>[e,t])))).then((e=>{let[t,r]=e;const o=l(t,r);t.ok||304===t.status?n(r,o):i(t.statusText,o)}),(e=>i("",Object.assign(l({status:0},""),{reason:e,timedOut:"AbortError"===e?.name}))))}function g(){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=u(e,{request:t,done:n});return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};f(i(c(e,n,r)),t)}}const p=g(),h=u()},1176:(e,t,n)=>{n.d(t,{K:()=>ne});var i=n(4358),r=n(265),o=n(6463),s=n(59),a=n(8928),d=n(3193);function c(e,t){return`\n \n \n prebid.org wrapper\n \n ${(t=t&&(Array.isArray(t)?t:[t]))?t.map((e=>``)).join(""):""}\n \n \n \n `}function u(e){let{index:t=ne.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.vastXml?e.vastXml:c(e.vastUrl,e.vastImpUrl),i=t.getAuction(e),r=Number(e.ttl)+15;let o={type:"xml",value:n,ttlseconds:r};return d.vc.getConfig("cache.vasttrack")&&(o.bidder=e.bidder,o.bidid=e.requestId,o.aid=e.auctionId),null!=i&&(o.timestamp=i.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(o.key=e.customCacheKey),o}function l(e){return{success:function(t){let n;try{n=JSON.parse(t).responses}catch(t){return void e(t,[])}n?e(null,n):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(t,n){e(new Error(`Error storing video ad in the cache: ${t}: ${JSON.stringify(n)}`),[])}}}const f={store:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.OI;const i={puts:e.map(u)},r=n(d.vc.getConfig("cache.timeout"));r(d.vc.getConfig("cache.url"),l(t),JSON.stringify(i),{contentType:"text/plain",withCredentials:!0})}};function g(e){const t=e.map((e=>e.bidResponse));f.store(t,(function(n,r){var o;n?(o=n,(0,i.H)(`Failed to save to the video cache: ${o}. Video bids will be discarded:`,t)):e.length!==r.length?(0,i.H)(`expected ${e.length} cache IDs, got ${r.length} instead`):r.forEach(((t,n)=>{const{auctionInstance:r,bidResponse:o,afterBidAdded:s}=e[n];var a;""===t.uuid?(0,i.yN)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(o.videoCacheKey=t.uuid,o.vastUrl||(o.vastUrl=(a=o.videoCacheKey,`${d.vc.getConfig("cache.url")}?uuid=${a}`)),F(r,o),s())}))}))}let p,h;d.vc.getConfig("cache",(e=>{p="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,h="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]:g,n=[[]],i=!1;const r=e=>e();return function(o,s,a){const d=h>0?e:r;n[n.length-1].length>=p&&n.push([]),n[n.length-1].push({auctionInstance:o,bidResponse:s,afterBidAdded:a}),i||(i=!0,d((()=>{n.forEach(t),n=[[]],i=!1}),h))}}();var b=n(5706),y=n(1974),v=n(2797),T=n(4614),E=n(154),w=n(4679),I=n(5975),A=n(2021),C=n(1453),O=n(2200),B=n(8792),k=n(9128);var R=n(8640);const{syncUsers:S}=y.k_,U="completed";A.on(O.FP.BID_ADJUSTMENT,(function(e){!function(e){let t=function(e,t,n){let{index:r=ne.index,bs:o=I.S}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=n||r.getBidRequest(t);const s=t?.adapterCode,a=t?.bidderCode||n?.bidder,d=o.get(t?.adapterCode,"adjustAlternateBids"),c=o.getOwn(a,"bidCpmAdjustment")||o.get(d?s:a,"bidCpmAdjustment");if(c&&"function"==typeof c)try{return c(e,Object.assign({},t),n)}catch(e){(0,i.H)("Error during bid adjustment",e)}return e}(e.cpm,e);t>=0&&(e.cpm=t)}(e)}));const j={},D={},N=[],_=(0,R.R)();function P(e){let{adUnits:t,adUnitCodes:n,callback:r,cbTimeout:o,labels:a,auctionId:c,ortb2Fragments:u,metrics:l}=e;l=(0,k.Bf)(l);const f=t,g=a,p=n,h=c||(0,i.DO)(),m=o,b=new Set,y=(0,B.P)();let v,E,I,R,P=[],L=r,W=[],V=[],Z=[],K=[],J=[];function X(){return{auctionId:h,timestamp:v,auctionEnd:E,auctionStatus:R,adUnits:f,adUnitCodes:p,labels:g,bidderRequests:W,noBids:Z,bidsReceived:V,bidsRejected:P,winningBids:K,timeout:m,metrics:l,seatNonBids:J}}function Y(e){if(e?A.j8(O.FP.AUCTION_TIMEOUT,X()):clearTimeout(I),void 0===E){let n=[];e&&((0,i.ji)(`Auction ${h} timedOut`),n=W.filter((e=>!b.has(e.bidderRequestId))).flatMap((e=>e.bids)),n.length&&A.j8(O.FP.BID_TIMEOUT,n)),R=U,E=Date.now(),l.checkpoint("auctionEnd"),l.timeBetween("requestBids","auctionEnd","requestBids.total"),l.timeBetween("callBids","auctionEnd","requestBids.callBids"),y.resolve(),A.j8(O.FP.AUCTION_END,X()),H(f,(function(){try{if(null!=L){const t=V.filter((e=>p.includes(e.adUnitCode))).reduce(Q,{});L.apply(_,[t,e,h]),L=null}}catch(e){(0,i.H)("Error executing bidsBackHandler",null,e)}finally{n.length&&C.ZP.callTimedOutBidders(t,n,m);let e=d.vc.getConfig("userSync")||{};e.enableOverride||S(e.syncDelay)}}))}}function ee(){d.vc.resetBidder(),(0,i.PN)(`Bids Received for Auction with id: ${h}`,V),R=U,Y(!1)}function te(e){b.add(e)}function ie(e){e.forEach((e=>{var t;t=e,W=W.concat(t)}));let t={},n={bidRequests:e,run:()=>{I=setTimeout((()=>Y(!0)),m),R="inProgress",A.j8(O.FP.AUCTION_INIT,X());let n=function(e,t){let{index:n=ne.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,o=!1,a=new Set,c={};function u(){r--,o&&0===r&&e()}function l(e,t,n){return c[t.requestId]=!0,z(t,e),r++,n(u)}function f(e,i){l(e,i,(e=>{let r=G(i);A.j8(O.FP.BID_ACCEPTED,r),r.mediaType===w.pX?M(t,r,e):((0,s.ub)(r)&&(0,s.kH)(r,n.getAdUnit(r)),F(t,r),e())}))}function g(e,n,r){return l(e,n,(e=>{n.rejectionReason=r,(0,i.yN)(`Bid from ${n.bidder||"unknown bidder"} was rejected: ${r}`,n),A.j8(O.FP.BID_REJECTED,n),t.addBidRejected(n),e()}))}function p(){let n=this,s=t.getBidRequests();const u=d.vc.getConfig("auctionOptions");if(a.add(n),u&&!(0,i.xb)(u)){const e=u.secondaryBidders;e&&!s.every((t=>(0,T.q9)(e,t.bidderCode)))&&(s=s.filter((t=>!(0,T.q9)(e,t.bidderCode))))}o=s.every((e=>a.has(e))),n.bids.forEach((e=>{c[e.bidId]||(t.addNoBid(e),A.j8(O.FP.NO_BID,e))})),o&&0===r&&e()}return{addBidResponse:function(){function e(e,t){q.call({dispatch:f},e,t,(()=>{let n=!1;return i=>{n||(g(e,t,i),n=!0)}})())}return e.reject=g,e}(),adapterDone:function(){x(B.Z.resolve()).finally((()=>p.call(this)))}}}(ee,this);C.ZP.callBids(f,e,n.addBidResponse,n.adapterDone,{request(e,n){o(j,n),o(t,e),D[e]||(D[e]={SRA:!0,origin:n}),t[e]>1&&(D[e].SRA=!1)},done(e){j[e]--,N[0]&&r(N[0])&&N.shift()}},m,te,u)}};function r(e){let t=!0,n=d.vc.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((e=>{let i=1,r=void 0!==e.src&&e.src===O.os.SRC?"s2s":e.bidderCode;return D[r]&&(!1===D[r].SRA&&(i=Math.min(e.bids.length,n)),j[D[r].origin]+i>n&&(t=!1)),!t})),t&&e.run(),t}function o(e,t){void 0===e[t]?e[t]=1:e[t]++}r(n)||((0,i.yN)("queueing auction due to limited endpoint capacity"),N.push(n))}return A.on(O.FP.SEAT_NON_BID,(e=>{var t;e.auctionId===h&&(t=e.seatnonbid,J=J.concat(t))})),{addBidReceived:function(e){V=V.concat(e)},addBidRejected:function(e){P=P.concat(e)},addNoBid:function(e){Z=Z.concat(e)},callBids:function(){R="started",v=Date.now();let e=l.measureTime("requestBids.makeRequests",(()=>C.ZP.makeBidRequests(f,v,h,m,g,u,l)));(0,i.PN)(`Bids Requested for Auction with id: ${h}`,e),l.checkpoint("callBids"),e.length<1?((0,i.yN)("No valid bid requests returned for auction"),ee()):$.call({dispatch:ie,context:this},e)},addWinningBid:function(e){const n=t.find((t=>t.adUnitId===e.adUnitId));K=K.concat(e),(0,i.R_)(e),C.ZP.callBidWonBidder(e.adapterCode||e.bidder,e,t),n&&!n.deferBilling&&C.ZP.callBidBillableBidder(e)},setBidTargeting:function(e){C.ZP.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:()=>K,getAuctionStart:()=>v,getAuctionEnd:()=>E,getTimeout:()=>m,getAuctionId:()=>h,getAuctionStatus:()=>R,getAdUnits:()=>f,getAdUnitCodes:()=>p,getBidRequests:()=>W,getBidsReceived:()=>V,getNoBids:()=>Z,getNonBids:()=>J,getFPD:()=>u,getMetrics:()=>l,end:y.promise}}const q=(0,v.z3)("sync",(function(e,t,n){!function(e){const t=d.vc.getConfig("maxBid");return!t||!e.cpm||t>=Number(e.cpm)}(t)?n(O.Gw.PRICE_TOO_HIGH):this.dispatch.call(null,e,t)}),"addBidResponse"),x=(0,v.z3)("sync",(e=>e),"responsesReady"),$=(0,v.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),H=(0,v.z3)("async",(function(e,t){t&&t()}),"bidsBackCallback");function F(e,t){!function(e){let t;const n=!0===I.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(n||e.dealId)&&(t=function(e,t){let{index:n=ne.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return{};const i=n.getBidRequest(t);var r={};const o=K(t.mediaType,e);J(r,o,t,i),e&&I.S.getOwn(e,O.k2.ADSERVER_TARGETING)&&(J(r,I.S.ownSettingsFor(e),t,i),t.sendStandardTargeting=I.S.get(e,"sendStandardTargeting"));t.native&&(r=Object.assign({},r,(0,s.Ur)(t)));return r}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},t)}(t),(0,k.Bf)(t.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(t),A.j8(O.FP.BID_RESPONSE,t)}function M(e,t,n){let{index:o=ne.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=!0;const a=(0,r.Z)(o.getMediaTypes({requestId:t.originalRequestId||t.requestId,adUnitId:t.adUnitId}),"video"),c=a&&(0,r.Z)(a,"context"),u=a&&(0,r.Z)(a,"useCacheKey");d.vc.getConfig("cache.url")&&(u||c!==E.gZ)&&(!t.videoCacheKey||d.vc.getConfig("cache.ignoreBidderCacheKey")?(s=!1,L(e,t,n,a)):t.vastUrl||((0,i.H)("videoCacheKey specified but not required vastUrl for video bid"),s=!1)),s&&(F(e,t),n())}const L=(0,v.z3)("async",(function(e,t,n,i){m(e,t,n)}),"callPrebidCache");function z(e,t){let{index:n=ne.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.AB)(),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}function G(e){let{index:t=ne.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};A.j8(O.FP.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,c=null;a&&a.url&&a.render&&(!0!==a.backupOnly||!e.renderer)?c=a:n&&n.url&&n.render&&(!0!==n.backupOnly||!e.renderer)&&(c=n),c&&(e.renderer=b.Th.install({url:c.url,config:c.options}),e.renderer.setRender(c.render));const u=W(e.mediaType,r,d.vc.getConfig("mediaTypePriceGranularity")),l=(0,o.D)(e.cpm,"object"==typeof u?u:d.vc.getConfig("customPriceBucket"),d.vc.getConfig("currency.granularityMultiplier"));return e.pbLg=l.low,e.pbMg=l.med,e.pbHg=l.high,e.pbAg=l.auto,e.pbDg=l.dense,e.pbCg=l.custom,e}function W(e,t,n){if(e&&n){if(e===w.pX){const e=(0,r.Z)(t,`${w.pX}.context`,"instream");if(n[`${w.pX}-${e}`])return n[`${w.pX}-${e}`]}return n[e]}}const V=e=>t=>{const n=e||function(e){let{index:t=ne.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=W(e.mediaType,t.getMediaTypes(e),d.vc.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&n?"string"==typeof n?n:"custom":d.vc.getConfig("priceGranularity")}(t);return n===O.Ql.AUTO?t.pbAg:n===O.Ql.DENSE?t.pbDg:n===O.Ql.LOW?t.pbLg:n===O.Ql.MEDIUM?t.pbMg:n===O.Ql.HIGH?t.pbHg:n===O.Ql.CUSTOM?t.pbCg:void 0};function Z(e,t){return{key:e,val:"function"==typeof t?function(e,n){return t(e,n)}:function(e){return(0,i.NA)(e,t)}}}function K(e,t){const n=Object.assign({},I.S.settingsFor(null));if(n[O.k2.ADSERVER_TARGETING]||(n[O.k2.ADSERVER_TARGETING]=[Z(O.TD.BIDDER,"bidderCode"),Z(O.TD.AD_ID,"adId"),Z(O.TD.PRICE_BUCKET,V()),Z(O.TD.SIZE,"size"),Z(O.TD.DEAL,"dealId"),Z(O.TD.SOURCE,"source"),Z(O.TD.FORMAT,"mediaType"),Z(O.TD.ADOMAIN,(e=>e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:"")),Z(O.TD.ACAT,(e=>e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:"")),Z(O.TD.DSP,(e=>e.meta&&(e.meta.networkId||e.meta.networkName)?(0,r.Z)(e,"meta.networkName")||(0,r.Z)(e,"meta.networkId"):"")),Z(O.TD.CRID,(e=>e.creativeId?e.creativeId:""))]),"video"===e){const e=n[O.k2.ADSERVER_TARGETING].slice();if(n[O.k2.ADSERVER_TARGETING]=e,[O.TD.UUID,O.TD.CACHE_ID].forEach((t=>{void 0===(0,T.sE)(e,(e=>e.key===t))&&e.push(Z(t,"videoCacheKey"))})),d.vc.getConfig("cache.url")&&(!t||!1!==I.S.get(t,"sendStandardTargeting"))){const t=(0,i.en)(d.vc.getConfig("cache.url"));void 0===(0,T.sE)(e,(e=>e.key===O.TD.CACHE_HOST))&&e.push(Z(O.TD.CACHE_HOST,(function(e){return(0,r.Z)(e,`adserverTargeting.${O.TD.CACHE_HOST}`)?e.adserverTargeting[O.TD.CACHE_HOST]:t.hostname})))}}return n}function J(e,t,n,r){var o=t[O.k2.ADSERVER_TARGETING];return n.size=n.getSize(),(o||[]).forEach((function(o){var s=o.key,a=o.val;if(e[s]&&(0,i.yN)("The key: "+s+" is being overwritten"),(0,i.LQ)(a))try{a=a(n,r)}catch(e){(0,i.H)("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&s!==O.TD.DEAL&&s!==O.TD.ACAT&&s!==O.TD.DSP&&s!==O.TD.CRID||!(0,i.jH)(a)&&null!=a?e[s]=a:(0,i.PN)("suppressing empty key '"+s+"' from adserver targeting")})),e}function Q(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}function X(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 Y=n(1841),ee=n(8833);const te="minBidCacheTTL";const ne=function(){let e=null;const t=(0,Y.Z)({startTime:e=>e.end.then((()=>e.getAuctionEnd())),ttl:t=>null==e?null:t.end.then((()=>1e3*Math.max(e,...t.getBidsReceived().map(ee.N))))});(0,ee.l)((()=>{null!=e&&t.refresh()})),d.vc.getConfig(te,(n=>{const i=e;e=n?.minBidCacheTTL,e="number"==typeof e?e:null,i!==e&&t.refresh()}));const n={onExpiry:t.onExpiry};function r(e){for(const n of t)if(n.getAuctionId()===e)return n}function o(){return t.toArray().flatMap((e=>e.getBidsReceived()))}return n.addWinningBid=function(e){const t=(0,k.Bf)(e.metrics);t.checkpoint("bidWon"),t.timeBetween("auctionEnd","bidWon","render.pending"),t.timeBetween("requestBids","bidWon","render.e2e");const n=r(e.auctionId);n?(e.status=O.UE.RENDERED,n.addWinningBid(e)):(0,i.yN)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:e=>e.getAuctionStatus()===U},getAdUnitCodes:{post:i.tT}}).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 o().filter((t=>t&&t.adUnitCode===e))},n.createAuction=function(e){const n=P(e);return function(e){t.add(e)}(n),n},n.findBidByAdId=function(e){return o().find((t=>t.adId===e))},n.getStandardBidderAdServerTargeting=function(){return K()[O.k2.ADSERVER_TARGETING]},n.setStatusForBids=function(e,t){let i=n.findBidByAdId(e);if(i&&(i.status=t),i&&t===O.UE.BID_TARGETING_SET){const e=r(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 X((()=>t.toArray())),n}()},8833:(e,t,n)=>{n.d(t,{N:()=>a,l:()=>d});var i=n(3193),r=n(4358);let o=1;const s=[];function a(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:o)}function d(e){s.push(e)}i.vc.getConfig("ttlBuffer",(e=>{if("number"==typeof e.ttlBuffer){const t=o;o=e.ttlBuffer,t!==o&&s.forEach((e=>e(o)))}else(0,r.H)("Invalid value for ttlBuffer",e.ttlBuffer)}))},5975:(e,t,n)=>{n.d(t,{S:()=>a});var i=n(265),r=n(4358),o=n(8640),s=n(2200);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.Z)(this.getSettings(),`${e}.${t}`)}getScopes(){return Object.keys(this.getSettings()).filter((e=>e!==this.defaultScope))}settingsFor(e){return(0,r.Ee)({},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.R)().bidderSettings||{}),s.k2.BD_SETTING_STANDARD)},9626:(e,t,n)=>{n.d(t,{m:()=>o});var i=n(4358);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;function u(){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"}}Object.assign(this,{bidderCode:n,width:0,height:0,statusMessage:u(),adId:(0,i._d)(),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)}},3193:(e,t,n)=>{n.d(t,{FD:()=>u,vc:()=>m});var i=n(6463),r=n(4614),o=n(4358),s=n(265),a=n(2200);const d="TRUE"===(0,o.ak)(a.f).toUpperCase(),c={},u="random",l={};l[u]=!0,l.fixed=!0;const f=u,g={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},p="*";function h(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=t?{priceGranularity:g.MEDIUM,customPriceBucket:{},mediaTypePriceGranularity:{},bidderSequence:f,auctionOptions:{}}:{};function s(e){return n[e]}function a(t,i){n.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0}),n[t]=i}const d={publisherDomain:{set(e){null!=e&&(0,o.yN)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),a("publisherDomain",e)}},priceGranularity:{set(e){u(e)&&("string"==typeof e?a("priceGranularity",c(e)?e:g.MEDIUM):(0,o.PO)(e)&&(a("customPriceBucket",e),a("priceGranularity",g.CUSTOM),(0,o.ji)("Using custom price granularity")))}},customPriceBucket:{},mediaTypePriceGranularity:{set(e){null!=e&&a("mediaTypePriceGranularity",Object.keys(e).reduce(((t,n)=>(u(e[n])?"string"==typeof e?t[n]=c(e[n])?e[n]:s("priceGranularity"):(0,o.PO)(e)&&(t[n]=e[n],(0,o.ji)(`Using custom price granularity for ${n}`)):(0,o.yN)(`Invalid price granularity for media type: ${n}`),t)),{}))}},bidderSequence:{set(e){l[e]?a("bidderSequence",e):(0,o.yN)(`Invalid order: ${e}. Bidder Sequence was not set.`)}},auctionOptions:{set(e){p(e)&&a("auctionOptions",e)}}};return Object.defineProperties(e,Object.fromEntries(Object.entries(d).map((e=>{let[t,i]=e;return[t,Object.assign({get:s.bind(null,t),set:a.bind(null,t),enumerable:n.hasOwnProperty(t),configurable:!n.hasOwnProperty(t)},i)]})))),e;function c(e){return(0,r.sE)(Object.keys(g),(t=>e===g[t]))}function u(e){if(!e)return(0,o.H)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)c(e)||(0,o.yN)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,o.PO)(e)&&!(0,i.t)(e))return(0,o.H)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}function p(e){if(!(0,o.PO)(e))return(0,o.yN)("Auction Options must be an object"),!1;for(let t of Object.keys(e)){if("secondaryBidders"!==t&&"suppressStaleRender"!==t)return(0,o.yN)(`Auction Options given an incorrect param: ${t}`),!1;if("secondaryBidders"===t){if(!(0,o.kJ)(e[t]))return(0,o.yN)(`Auction Options ${t} must be of type Array`),!1;if(!e[t].every(o.d8))return(0,o.yN)(`Auction Options ${t} must be only string`),!1}else if("suppressStaleRender"===t&&!(0,o.jn)(e[t]))return(0,o.yN)(`Auction Options ${t} must be of type boolean`),!1}return!0}}const m=function(){let e,t,n,i=[],a=null;function u(){e={};let i=h({debug:d,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3,userSync:{topics:c}});t&&T(Object.keys(t).reduce(((e,n)=>(t[n]!==i[n]&&(e[n]=i[n]||{}),e)),{})),t=i,n={}}function l(){if(a&&n&&(0,o.PO)(n[a])){let e=n[a];const i=new Set(Object.keys(t).concat(Object.keys(e)));return(0,r.Oc)(i).reduce(((n,i)=>(void 0===e[i]?n[i]=t[i]:void 0===t[i]?n[i]=e[i]:(0,o.PO)(e[i])?n[i]=(0,o.Ee)({},t[i],e[i]):n[i]=e[i],n)),{})}return Object.assign({},t)}const[f,g]=[l,function(){const e=l();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.Z)(e(),t):l()}return v(...arguments)})),[m,b]=[g,f].map((e=>function(){let t=e(...arguments);return t&&"object"==typeof t&&(t=(0,o.I8)(t)),t}));function y(n){if(!(0,o.PO)(n))return void(0,o.H)("setConfig options must be an object");let i=Object.keys(n),r={};i.forEach((i=>{let s=n[i];(0,o.PO)(e[i])&&(0,o.PO)(s)&&(s=Object.assign({},e[i],s));try{r[i]=t[i]=s}catch(e){(0,o.yN)(`Cannot set config for property ${i} : `,e)}})),T(r)}function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t;if("string"!=typeof e&&(r=e,e=p,n=t||{}),"function"!=typeof r)return void(0,o.H)("listener must be a function");const s={topic:e,callback:r};return i.push(s),n.init&&r(e===p?g():{[e]:g(e)}),function(){i.splice(i.indexOf(s),1)}}function T(e){const t=Object.keys(e);i.filter((e=>(0,r.q9)(t,e.topic))).forEach((t=>{t.callback({[t.topic]:e[t.topic]})})),i.filter((e=>e.topic===p)).forEach((t=>t.callback(e)))}function E(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{i(e),e.bidders.forEach((i=>{n[i]||(n[i]=h({},!1)),Object.keys(e.config).forEach((r=>{let s=e.config[r];const a=n[i][r];if((0,o.PO)(s)&&(null==a||(0,o.PO)(a))){const e=t?o.Ee:Object.assign;n[i][r]=e({},a||{},s)}else n[i][r]=s}))}))}catch(e){(0,o.H)(e)}function i(e){if(!(0,o.PO)(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.PO)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function w(e,t){a=e;try{return t()}finally{I()}}function I(){a=null}return u(),{getCurrentBidder:function(){return a},resetBidder:I,getConfig:g,getAnyConfig:f,readConfig:m,readAnyConfig:b,setConfig:y,mergeConfig:function(e){if(!(0,o.PO)(e))return void(0,o.H)("mergeConfig input must be an object");const t=(0,o.Ee)(l(),e);return y({...t}),t},setDefaults:function(n){(0,o.PO)(e)?(Object.assign(e,n),Object.assign(t,n)):(0,o.H)("defaults must be an object")},resetConfig:u,runWithBidder:w,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,{NO:()=>g,TJ:()=>c,VP:()=>u,nX:()=>d,qh:()=>l,rp:()=>a});var i=n(4358),r=n(8792),o=n(3193);Object.freeze({});class s{#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.P)(),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.Z.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.AB)();this.generatedTime=t,this.#o=!0,this.#a(e)}getConsentData(){return this.#n}get hash(){return this.#o&&(this.#s=(0,i._R)(JSON.stringify(this.#n&&this.hashFields?this.hashFields.map((e=>this.#n[e])):this.#n)),this.#o=!1),this.#s}}const a=new class extends s{hashFields=["gdprApplies","consentString"];getConsentMeta(){const e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,i.d8)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}},d=new class extends s{getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},c=new class extends s{hashFields=["applicableSections","gppString"];getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},u=(()=>{function e(){return!!o.vc.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset(){},get promise(){return r.Z.resolve(e())},get hash(){return e()?"1":"0"}}})(),l=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}}}(),f={gdpr:a,usp:d,gpp:c,coppa:u};const g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;function t(t){return function(){return Object.fromEntries(e.map((e=>{let[n,i]=e;return[n,i[t]()]})))}}return e=Object.entries(e),Object.assign({get promise(){return r.Z.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._R)(e.map((e=>{let[t,n]=e;return n.hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((e=>[e,t(e)]))))}()},2200:(e,t,n)=>{n.d(t,{FP:()=>s,FY:()=>f,Gw:()=>h,Q_:()=>o,Ql:()=>c,TD:()=>u,UE:()=>p,V1:()=>m,X3:()=>T,aI:()=>d,f:()=>r,k2:()=>i,kF:()=>l,oF:()=>y,os:()=>g,q_:()=>a,s$:()=>b,vX:()=>E,zA:()=>v});const i={PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},r="pbjs_debug",o={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"},u={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"},l={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"},f={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"},g={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"},h={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"},m={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"],T={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"},E="__pb_locator__"},6463:(e,t,n)=>{n.d(t,{D:()=>l,t:()=>g});var i=n(4614),r=n(4358),o=n(3193);const s={buckets:[{max:5,increment:.5}]},a={buckets:[{max:20,increment:.1}]},d={buckets:[{max:20,increment:.01}]},c={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 l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=""),{low:""===i?"":f(e,s,n),med:""===i?"":f(e,a,n),high:""===i?"":f(e,d,n),auto:""===i?"":f(e,u,n),dense:""===i?"":f(e,c,n),custom:""===i?"":f(e,t,n)}}function f(e,t,n){let s="";if(!g(t))return s;const a=t.buckets.reduce(((e,t)=>e.max>t.max?e:t),{max:0});let d=0,c=(0,i.sE)(t.buckets,(t=>{if(e>a.max*n){let e=t.precision;void 0===e&&(e=2),s=(t.max*n).toFixed(e)}else{if(e<=t.max*n&&e>=d*n)return t.min=d,t;d=t.max}}));return c&&(s=function(e,t,n){const i=void 0!==t.precision?t.precision:2,s=t.increment*n,a=t.min*n;let d=Math.floor,c=o.vc.getConfig("cpmRoundingFunction");"function"==typeof c&&(d=c);let u,l,f=Math.pow(10,i+2),g=(e*f-a*f)/(s*f);try{u=d(g)*s+a}catch(e){l=!0}(l||"number"!=typeof u)&&((0,r.yN)("Invalid rounding function passed in config"),u=Math.floor(g)*s+a);return u=Number(u.toFixed(10)),u.toFixed(i)}(e,c,n)),s}function g(e){if((0,r.xb)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;let t=!0;return e.buckets.forEach((e=>{e.max&&e.increment||(t=!1)})),t}},8099:(e,t,n)=>{n.d(t,{W:()=>a,m:()=>s});var i=n(8792),r=n(4358),o=n(8304);const s=(0,n(2797).z3)("sync",(function(e){return o._})),a=function(){const e={};return function(t){const n=s(t);return e.hasOwnProperty(n)||(e[n]=new i.Z((e=>{const t=(0,r.$u)();t.srcdoc=`