ads.sportslocalmedia.com
Open in
urlscan Pro
2606:4700:10::6816:c4e
Public Scan
URL:
https://ads.sportslocalmedia.com/slm.prebid.ilparkingv2.js
Submission: On October 24 via api from IT — Scanned from IT
Submission: On October 24 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,i,n,r,o,a,s,d,l,c,u,p,m,f,g,h,v,b,y,w,I,A,T,x=Object.defineProperty,k=e=>{throw TypeError(e)},C=(e,t,i)=>((e,t,i)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i),_=(e,t,i)=>t.has(e)||k("Cannot "+i),E=(e,t,i)=>(_(e,t,"read from private field"),i?i.call(e):t.get(e)),S=(e,t,i)=>t.has(e)?k("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),B=(e,t,i,n)=>(_(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),U=(e,t,i)=>(_(e,t,"access private method"),i);function P(e,t,i,n){if("function"!=typeof i)throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(t)?t.reverse().reduce(((t,i)=>P.bind(null,e,i,t,n)),i)():Promise.resolve().then((()=>e.registry[t]?e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,n)),i)():i(n)))}function R(e,t,i,n){const r=n;e.registry[i]||(e.registry[i]=[]),"before"===t&&(n=(e,t)=>Promise.resolve().then(r.bind(null,t)).then(e.bind(null,t))),"after"===t&&(n=(e,t)=>{let i;return Promise.resolve().then(e.bind(null,t)).then((e=>(i=e,r(i,t)))).then((()=>i))}),"error"===t&&(n=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>r(e,t)))),e.registry[i].push({hook:n,orig:r})}function V(e,t,i){if(!e.registry[t])return;const n=e.registry[t].map((e=>e.orig)).indexOf(i);-1!==n&&e.registry[t].splice(n,1)}const N=Function.bind,j=N.bind(N);function O(e,t,i){const n=j(V,null).apply(null,i?[t,i]:[t]);e.api={remove:n},e.remove=n,["before","error","after","wrap"].forEach((n=>{const r=i?[t,n,i]:[t,n];e[n]=e.api[n]=j(R,null).apply(null,r)}))}const D=new{Singular:function(){const e=Symbol("Singular"),t={registry:{}},i=P.bind(null,t,e);return O(i,t,e),i},Collection:function(){const e={registry:{}},t=P.bind(null,e);return O(t,e),t}}.Collection;const F=new class{constructor(e){this.subscribers=[],this.state=e}setState(e){return this.state=Object.assign(Object.assign({},this.state),"function"==typeof e?e(this.state):e),Promise.all(this.subscribers.map((e=>e(this.state))))}getAdUnits(){return Object.values(this.state.adUnits)}subscribe(e){this.subscribers.push(e)}unsubscribe(e){this.subscribers=this.subscribers.filter((t=>t!==e))}getAdUnitsById(e){return e.map((e=>this.state.adUnits[e]))}getAdUnitById(e){return this.state.adUnits[e]}getAdUnitByHtml(e){return this.getAdUnits().find((t=>t.htmlId===e))}}({adUnits:{},metaAdUnits:{}}),q=(e,t,i=[])=>(Object.keys(e).forEach((n=>{if(0===i.length||i.length>0&&-1!==i.indexOf(n)){if("object"==typeof e[n]&&!Array.isArray(e[n])&&void 0!==t[n])return q(e[n],t[n]);t[n]=-1===Object.keys(t).indexOf(n)?e[n]:t[n]}})),t);const M=()=>"true"===(e=>{const t=new RegExp(`[\\?&]${e}=([^&#]*)`).exec(null===window||void 0===window?void 0:window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))})("slmpbjs_debug"),z=()=>null!==localStorage.getItem("akcelo_demo");const L=()=>{let e=!1;var t;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e},$=(e,t=null)=>{const i=[];if("string"==typeof e)return e;if(0===e.length)return"nosize";return Array.isArray(e)&&e.forEach((e=>{i.push(function(e,t){let i=null;return t&&"native"===t?"native":"string"==typeof e?e:(2===e.length&&(i=`${e[0]}x${e[1]}`),i&&t&&"video"===t?"video-".concat(i):i||"unknown")}(e,t))})),i},Z=()=>({url:"https://ads.sportslocalmedia.com/akceloOutstream.js",render:e=>{new window.AkceloOutstream(e)}}),W=(e=80,t=!1,i=1)=>{const n=`slm-close-${Math.random().toString(36).substring(2,15)}`,r=document.createElement("div");r.setAttribute("id",n),r.classList.add("slm-close"),r.setAttribute("title","Close");const o=(e-20)/2*i,a=(e-40)/2*i;return r.innerHTML=`\n <style>\n #${n}::before {position:absolute;content:"";top:-${o}px;right:-${a}px;width:${e}px;height:${e}px;border-radius:50%;pointer-events:all;}\n </style>\n <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve"\n width="20" height="20" viewBox="0 0 20 20" style="cursor:pointer;position:relative;display:inline;width:20px;margin-bottom:0;">\n <g transform="matrix(0.0569703,0,0,0.0569703,-4.6066465,-4.6398328)">\n <circle style="fill:#373737;fill-opacity:1;stroke-width:18.90076828" cx="258.31042" cy="257.79587" r="161.54251" />\n <path style="fill:#fffffd;fill-opacity:1;stroke-width:0.6150254" d="m 169.41211,156.49219 c -10.496,0.0497 -17.51765,14.20672 -9.88477,22.04101\n 7.85367,8.42001 16.59855,15.99758 24.44716,24.46542 18.54871,18.54359 37.07296,37.11162 55.62902,55.64786 -27.35069,28.13628 -56.58081,54.64717\n -82.52735,84.03321 -4.80727,10.6808 9.79299,23.17713 19.35156,15.85937 11.18603,-9.25489 20.38437,-20.64133 31.12591,-30.40129 16.93264,-16.93265\n 33.86528,-33.86529 50.79792,-50.79793 28.1346,27.34154 54.64725,56.59829 84.05469,82.53907 10.67333,4.77287 23.14434,-9.80942 15.8418,-19.35547\n -9.25182,-11.19086 -20.6499,-20.38132 -30.40521,-31.12982 -16.93264,-16.93264 -33.86528,-33.86528 -50.79792,-50.79792 27.30512,-27.92294\n 56.11138,-54.51613 82.27539,-83.52148 5.21946,-10.52229 -8.42434,-23.47032 -18.50586,-16.69531 -7.93114,4.84596 -12.68507,13.31658 -19.97314,18.98074\n -20.84814,20.84691 -41.69629,41.69383 -62.54443,62.54074 -28.17478,-27.33485 -54.61388,-56.67303 -84.11719,-82.51562 -1.50233,-0.63096\n -3.13851,-0.93953 -4.76758,-0.89258 z" />\n </g>\n </svg>\n `,t&&(r.style.display="none"),r},Y=(e="0",t="0")=>{const i=document.createElement("iframe");return i.width=e,i.height=t,i.style.border="0",i.setAttribute("scrolling","no"),i.setAttribute("marginheight","0"),i.setAttribute("marginwidth","0"),i.setAttribute("topmargin","0"),i.setAttribute("leftmargin","0"),i.setAttribute("allowtransparency","true"),i};class G{constructor(e){this.additionalPrefix=e,this.isDebugOn=M()}getInitialPrefix(){return this.additionalPrefix?`%cAkcelo Ads | ${this.additionalPrefix}`:"%cAkcelo Ads"}getDecoration(e){return`display: inline-block; color: #fff; background: ${e}; padding: 1px 4px; border-radius: 3px;`}debug(...e){this.isDebugOn&&console.debug(`${this.getInitialPrefix()}%cDEBUG`,this.getDecoration("#034154"),this.getDecoration("#C2B2B4"),...e)}info(...e){this.isDebugOn&&console.info(`${this.getInitialPrefix()}%cINFO`,this.getDecoration("#034154"),this.getDecoration("#2176AE"),...e)}warn(...e){this.isDebugOn&&console.warn(`${this.getInitialPrefix()}%cWARNING`,this.getDecoration("#034154"),this.getDecoration("#FFBC0A"),...e)}error(...e){this.isDebugOn&&console.error(`${this.getInitialPrefix()}%cERROR`,this.getDecoration("#034154"),this.getDecoration("#D7263D"),...e)}}const H=["smartadserver"],Q=["teads","seedtag","gumgum","sublime","invibes"],J=["skin","its"],K="akcelo_session_id",X="akcelo_capping",ee="akcelo_fp",te="akcelo:load",ie="akcelo:gamRequest",ne="akcelo:bidRequest",re={AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_WON:"bidWon",NO_BID:"noBid"},oe="bidResponse",ae="bidRejected",se="noBid",de="running",le="bidTimeout",ce="forbidden",ue="4",pe="5",me="6",fe="7",ge=["CH","UZ","EC","AX","GT","PA","ID","CA","SV","HN","VN","PE","US","AE","RO","BE","LU","BD","KM","GR","BR","TH","CR","PH","GE"],he=["KG","HU","KN","NO","NZ","MX","LT","DE","FR","CZ","CO","LI","CL","MY","SK","AR","UA","ES","IE","JP","BL","AT","GB","NL","MD","EE","KR","TR","RS","KZ","ET","LS","GF","PL","PT","IT","UY","IN","MC","GP","ZA","LV","SG","EG","JM","QA","PK","AM","PY","BB","BS","SA","TW","MZ","DO","TZ","BA","AZ","ME","HK","NI","AO","MO","OM","SE","IL","HR"],ve=new G("Config Manager");const be=new class{constructor(){this.config={adUnits:[],params:{}},this.adUnits=new Map,this.metaAdUnits=new Map,this.defaultSharedParams={},this.defaultSetupParams={gamMode:"allowed",gdprApplies:!0,allowedDomains:[],siteId:0,refresh:{enabled:!1,capping:12,timeout:3e4},userSync:{amxId:!0,id5Id:!0,pairId:!0,criteoId:!0,teadsId:!0,sharedId:!0},contextTargeting:{userVisitDuration:{VERY_LOW:0,LOW:10,MEDIUM:20,HIGH:30,VERY_HIGH:60},pageVisitDuration:{VERY_LOW:0,LOW:10,MEDIUM:20,HIGH:30,VERY_HIGH:60}},loadGoogleExoticSlots:!0},this.defaultAdUnitParams={multipleSpawn:!1,partners:{adExchange:{enabled:!1,allowAtRefresh:!1},openBidding:{enabled:!0}}}}load(e){var t,i,n,r,o;ve.info("Processing config",e),this.config=e;const a=Object.assign(Object.assign({},this.defaultSharedParams),this.defaultSetupParams),s=Object.assign(Object.assign({},this.defaultSharedParams),this.defaultAdUnitParams);return this.config.params=q(a,this.config.params||{}),this.config.adUnits=null===(t=this.config.adUnits)||void 0===t?void 0:t.filter((e=>{var t,i;return e.params=q(s,e.params||{}),e.type&&-1!==J.indexOf(e.type)&&((null===(i=null===(t=e.params)||void 0===t?void 0:t.refresh)||void 0===i?void 0:i.enabled)||(e.params=e.params||{refresh:{}},e.params.refresh=e.params.refresh||{},e.params.refresh.enabled=!1)),e.params=q(this.config.params||{},e.params||{},["gamMode","refresh"]),this.isAdUnitDeviceCompatible(e)})),null===(i=this.config.adUnits)||void 0===i||i.forEach((e=>{z()&&e.bids&&(e.bids=[{bidder:"akcelo-demo",params:{}}]),this.adUnits.set(e.id,e)})),this.config.metaAdUnits=null===(n=this.config.metaAdUnits)||void 0===n?void 0:n.filter((e=>this.isAdUnitDeviceCompatible(e))),null===(r=this.config.metaAdUnits)||void 0===r||r.forEach((e=>{this.metaAdUnits.set(e.id,e)})),null===(o=this.config.params.setupOverrides)||void 0===o||o.forEach((e=>e())),D("loadConfig",(e=>(this.config=e,this.config)),this.config)}getAdUnitConfigByHtmlId(e){var t,i;const n=null!==(i=null===(t=F.state.adUnits[e])||void 0===t?void 0:t.ref)&&void 0!==i?i:e;return this.adUnits.get(n)}getAdUnitsConfigById(e=[]){return e.map((e=>this.adUnits.get(e)))}isAdUnitDeviceCompatible(e){return!e.device||"desktop"===e.device&&!L()||"mobile"===e.device&&L()}};var ye=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))};const we=new G("Consent Manager");const Ie=new class{constructor(){this.consentType="notavailable",this.cmpId=0,this.tcfPolicyVersion=0,we.info("Module initialization")}loadConsent(){return ye(this,void 0,void 0,(function*(){var e;if(!1!==(null===(e=be.config.params)||void 0===e?void 0:e.gdprApplies))try{const e=yield this.getTCData();this.consentType=this.getConsentTypeByTCData(e),this.cmpId=e.cmpId,this.tcfPolicyVersion=e.tcfPolicyVersion}catch(t){we.error(t),this.consentType="notavailable"}else this.consentType="notrequired"}))}getConsentType(){return this.consentType}getCmpId(){return this.cmpId}getTcfPolicyVersion(){return this.tcfPolicyVersion}getConsentTypeByTCData(e){const t=this.arePersonalizedAdsAllowed(e),i=this.areNonPersonalizedAdsAllowed(e);let n="accepted";return t||(n=i?"limited":"refused"),e.gdprApplies?n:"notrequired"}getTCData(){return new Promise(((e,t)=>{this.onTcfApiLoaded().then((()=>{this.onConsentReady((t=>e(t)))}),(()=>t(new Error("No __tcfapi found on window"))))}))}arePersonalizedAdsAllowed(e){return!e.gdprApplies||e.gdprApplies&&e.purpose.consents&&e.purpose.legitimateInterests&&!0===e.purpose.consents[1]&&!0===e.purpose.consents[3]&&!0===e.purpose.consents[4]&&(!0===e.purpose.consents[2]&&!0===e.purpose.consents[7]&&!0===e.purpose.consents[9]&&!0===e.purpose.consents[10]||e.purpose.legitimateInterests[2]&&e.purpose.legitimateInterests[7]&&e.purpose.legitimateInterests[9]&&e.purpose.legitimateInterests[10])}areNonPersonalizedAdsAllowed(e){return e.gdprApplies&&e.purpose.legitimateInterests&&e.purpose.legitimateInterests[2]&&e.purpose.legitimateInterests[7]&&e.purpose.legitimateInterests[9]&&e.purpose.legitimateInterests[10]}onTcfApiLoaded(e=5e3){return new Promise(((t,i)=>{let n;const r=setTimeout((()=>{clearInterval(n),i()}),e);n=window.setInterval((()=>{void 0!==this.getTcfApi()&&(clearInterval(n),clearTimeout(r),t())}),100)}))}onConsentReady(e){this.getTcfApi()("addEventListener",2,((t,i)=>{!i||(null==t?void 0:t.gdprApplies)&&"useractioncomplete"!==(null==t?void 0:t.eventStatus)&&"tcloaded"!==(null==t?void 0:t.eventStatus)||(this.getTcfApi()("removeEventListener",2,(()=>{}),t.listenerId),e(t))}))}getTcfApi(){if(window.__tcfapi)return window.__tcfapi;const{cmpFrame:e,cmpFunction:t}=this.findCmp();return"function"==typeof t?(we.info("Detected CMP inside the current iframe"),window.__tcfapi=t,window.__tcfapi):e&&e!==window?(we.info("Detected CMP not accessible inside the current iframe. Creating a __tcfapi wrapper"),window.__tcfapi=this.createCmpWrapperInIframe(e),window.__tcfapi):void 0}createCmpWrapperInIframe(e){const t={};return window.addEventListener("message",(e=>{const i="string"==typeof e.data?JSON.parse(e.data):e.data;if(i.__tcfapiReturn&&i.__tcfapiReturn.callId){const e=i.__tcfapiReturn;Object.keys(t).includes(e.callId)&&t[e.callId](e.returnValue,e.success)}}),!1),(i,n,r,...o)=>{const a=`${Math.random()}`,s={__tcfapiCall:{command:i,version:n,parameter:o,callId:a}};t[a]=r,e.postMessage(s,"*")}}findCmp(){let e,t,i=window;for(;;){try{if("function"==typeof i.__tcfapi){t=i.__tcfapi,e=i;break}}catch(n){}try{if(i.frames.__tcfapiLocator){e=i;break}}catch(n){}if(i===window.top)break;i=i.parent}return{cmpFrame:e,cmpFunction:t}}},Ae=new G("Core");function Te(e){return Ae.info("RemoveAdUnit",e),D("destroyAdUnit",(e=>{F.setState((t=>{t.adUnits[e.htmlId].isDestroyed=!0}))}),{htmlId:e})}function xe(e){let t,i;"string"==typeof e?(t=e,i=e):(t=e.id,i=e.code);document.getElementById(t)?function(e,t){var i,n,r;Ae.info("AddAdUnit",e,t);let o=!1,a=null===(i=be.config.adUnits)||void 0===i?void 0:i.find((e=>e.id===t));if(a||(o=!0,a=null===(n=be.config.metaAdUnits)||void 0===n?void 0:n.find((e=>e.id===t))),!a)return Ae.info("Ignoring adUnit, wasn't able to find corresponding configuration",e,t),null;if(window.slmadshb=window.slmadshb||{que:[]},window.slmadshb.displayCalls=window.slmadshb.displayCalls||[],window.slmadshb.displayCalls.includes(e)){if(o||!(null===(r=a.params)||void 0===r?void 0:r.multipleSpawn))return Ae.warn(`Display already called for htmlId ${e}, ignoring it.`),null;Te(e)}window.slmadshb.displayCalls.push(e),o?D("addMetaAdUnit",(i=>{F.setState((n=>{i.metaAdUnit&&(n.metaAdUnits[e]={htmlId:e,ref:t,slmadsId:i.metaAdUnit.slmadsId,isDestroyed:!1})}))}),{htmlId:e,metaAdUnit:a}):D("addAdUnit",(i=>{F.setState((n=>{var r,o;i.adUnit&&(n.adUnits[e]={htmlId:e,ref:t,slmadsId:i.adUnit.slmadsId,adUnitPath:i.adUnit.adUnitPath||null,isCapped:i.isCapped,isReadyToRequest:!1,isReadyToRender:!(null===(o=null===(r=i.adUnit.params)||void 0===r?void 0:r.lazyLoad)||void 0===o?void 0:o.enabled),isDestroyed:!1})}))}),{htmlId:e,adUnit:a,isCapped:!1})}(t,i):Ae.warn("Display ignored, couldn't find the corresponding HTMLElement",t)}performance.mark(te);const ke=e=>{if(Ae.info("Initialization"),window.slmadshb=window.slmadshb||{},window.slmadshb.que=window.slmadshb.que||[],window.slmadshb.events=window.slmadshb.events||[],window.slmadshb.eventsTriggers=window.slmadshb.eventsTriggers||[],window.slmadshb.onEvent=(e,t)=>{window.slmadshb.events.push({name:e,callback:t}),window.slmadshb.eventsTriggers.forEach((i=>{i.name===e&&t(i.param)}))},window.slmadshb.triggerEvent=(e,t)=>{window.slmadshb.eventsTriggers.push({name:e,param:t}),window.slmadshb.events.forEach((i=>{i.name===e&&i.callback(t)}))},window.global=window,!window.slmadshb.loaded)return window.slmadshb.loaded=!0,be.load(e),window.slmadshb.openAdTool=()=>{document.body&&(document.body.appendChild(document.createElement("div")).id="akcelo-adtool",document.body.appendChild(document.createElement("script")).src="//ads.sportslocalmedia.com/slm.adtool2.app.js")},(localStorage.getItem("akcelo_bookmarklet")||localStorage.getItem("akcelo_publisher_bookmarklet"))&&document.body&&(document.body.appendChild(document.createElement("div")).id="akcelo-adtool",document.body.appendChild(document.createElement("script")).src=localStorage.getItem("akcelo_bookmarklet")?"//ads.sportslocalmedia.com/slm.adtool2.app.js":"//ads.sportslocalmedia.com/slm.adtool.publisher.js"),Ie.loadConsent().then((()=>D("coreInit",(()=>{function e(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(t){Ae.error("Error processing command",t)}}window.slmadshb.processQueue=()=>{window.slmadshb.que.forEach(e)},window.slmadshb.setup=be.config,window.slmadshb.display=xe,window.slmadshb.que.push=e,window.slmadshb.processQueue()}))));Ae.error("Multiple init detected, make sure to call the script only once")};function Ce(e,t,i){return e&&e.includes(t,i)||!1}function _e(e,t,i){return e&&e.find(t,i)}function Ee(e,t,i){return e&&e.findIndex(t,i)}const Se=2,Be={buckets:[{max:5,increment:.5}]},Ue={buckets:[{max:20,increment:.1}]},Pe={buckets:[{max:20,increment:.01}]},Re={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},Ve={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function Ne(e,t,i){let n="";if(!je(t))return n;const r=t.buckets.reduce(((e,t)=>e.max>t.max?e:t),{max:0});let o=0,a=_e(t.buckets,(t=>{if(e>r.max*i){let e=t.precision;void 0===e&&(e=Se),n=(t.max*i).toFixed(e)}else{if(e<=t.max*i&&e>=o*i)return t.min=o,t;o=t.max}}));return a&&(n=function(e,t,i){const n=void 0!==t.precision?t.precision:Se,r=t.increment*i,o=t.min*i;let a=Math.floor,s=pt.getConfig("cpmRoundingFunction");"function"==typeof s&&(a=s);let d,l,c=Math.pow(10,n+2),u=(e*c-o*c)/(r*c);try{d=a(u)*r+o}catch(p){l=!0}(l||"number"!=typeof d)&&(ei("Invalid rounding function passed in config"),d=Math.floor(u)*r+o);return d=Number(d.toFixed(10)),d.toFixed(n)}(e,a,i)),n}function je(e){if(gi(e)||!e.buckets||!Array.isArray(e.buckets))return!1;let t=!0;return e.buckets.forEach((e=>{e.max&&e.increment||(t=!1)})),t}const Oe={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"},De={GOOD:1},Fe={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"},qe={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},Me="low",ze="medium",Le="high",$e="auto",Ze="dense",We="custom",Ye={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"},Ge={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"},He={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"},Qe={SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},Je={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},Ke={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"},Xe={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},et={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},tt={ICON:1,MAIN:3},it=["privacyIcon","clickUrl","sendTargetingKeys","adTemplate","rendererUrl","type"],nt={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"},rt="__pb_locator__",ot="TRUE"===si("pbjs_debug").toUpperCase(),at={},st="random",dt={};dt[st]=!0,dt.fixed=!0;const lt=st,ct={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},ut="*";const pt=function(){let e,t,i,n=[],r=null;function o(){function n(e){return o[e].val}function r(e,t){o[e].val=t}e={};const o={publisherDomain:{set(e){null!=e&&ei("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),r("publisherDomain",e)}},priceGranularity:{val:ct.MEDIUM,set(e){d(e)&&("string"==typeof e?r("priceGranularity",s(e)?e:ct.MEDIUM):mi(e)&&(r("customPriceBucket",e),r("priceGranularity",ct.CUSTOM),Kt("Using custom price granularity")))}},customPriceBucket:{val:{},set(){}},mediaTypePriceGranularity:{val:{},set(e){null!=e&&r("mediaTypePriceGranularity",Object.keys(e).reduce(((t,i)=>(d(e[i])?"string"==typeof e?t[i]=s(e[i])?e[i]:n("priceGranularity"):mi(e)&&(t[i]=e[i],Kt(`Using custom price granularity for ${i}`)):ei(`Invalid price granularity for media type: ${i}`),t)),{}))}},bidderSequence:{val:lt,set(e){dt[e]?r("bidderSequence",e):ei(`Invalid order: ${e}. Bidder Sequence was not set.`)}},auctionOptions:{val:{},set(e){(function(e){if(!mi(e))return ei("Auction Options must be an object"),!1;for(let t of Object.keys(e)){if("secondaryBidders"!==t&&"suppressStaleRender"!==t)return ei(`Auction Options given an incorrect param: ${t}`),!1;if("secondaryBidders"===t){if(!ui(e[t]))return ei(`Auction Options ${t} must be of type Array`),!1;if(!e[t].every(ci))return ei(`Auction Options ${t} must be only string`),!1}else if("suppressStaleRender"===t&&!fi(e[t]))return ei(`Auction Options ${t} must be of type boolean`),!1}return!0})(e)&&r("auctionOptions",e)}}};let a={debug:ot,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3,userSync:{topics:at}};function s(e){return _e(Object.keys(ct),(t=>e===ct[t]))}function d(e){if(!e)return ti("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)s(e)||ei("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if(mi(e)&&!je(e))return ti("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}Object.defineProperties(a,Object.fromEntries(Object.entries(o).map((([e,t])=>[e,Object.assign({get:n.bind(null,e),set:r.bind(null,e),enumerable:!0},t)])))),t&&p(Object.keys(t).reduce(((e,i)=>(t[i]!==a[i]&&(e[i]=a[i]||{}),e)),{})),t=a,i={}}function a(){if(r&&i&&mi(i[r])){let e=i[r];return function(){return Array.from.apply(Array,arguments)}(new Set(Object.keys(t).concat(Object.keys(e)))).reduce(((i,n)=>(void 0===e[n]?i[n]=t[n]:void 0===t[n]?i[n]=e[n]:mi(e[n])?i[n]=en({},t[n],e[n]):i[n]=e[n],i)),{})}return Object.assign({},t)}const[s,d]=[a,function(){const e=a();return Object.defineProperty(e,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),e}].map((e=>function(...t){if(t.length<=1&&"function"!=typeof t[0]){const i=t[0];return i?At(e(),i):a()}return function(e,t,i={}){let r=t;"string"!=typeof e&&(r=e,e=ut,i=t||{});if("function"!=typeof r)return void ti("listener must be a function");const o={topic:e,callback:r};n.push(o),i.init&&r(e===ut?d():{[e]:d(e)});return function(){n.splice(n.indexOf(o),1)}}(...t)})),[l,c]=[d,s].map((e=>function(...t){let i=e(...t);return i&&"object"==typeof i&&(i=Bi(i)),i}));function u(i){if(!mi(i))return void ti("setConfig options must be an object");let n=Object.keys(i),r={};n.forEach((n=>{let o=i[n];mi(e[n])&&mi(o)&&(o=Object.assign({},e[n],o));try{r[n]=t[n]=o}catch(a){ei(`Cannot set config for property ${n} : `,a)}})),p(r)}function p(e){const t=Object.keys(e);n.filter((e=>Ce(t,e.topic))).forEach((t=>{t.callback({[t.topic]:e[t.topic]})})),n.filter((e=>e.topic===ut)).forEach((t=>t.callback(e)))}function m(e,t=!1){try{!function(e){if(!mi(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(!mi(e.config))throw"setBidderConfig bidder options must contain a config object"}(e),e.bidders.forEach((n=>{i[n]||(i[n]={}),Object.keys(e.config).forEach((r=>{let o=e.config[r];if(mi(o)){const e=t?en:Object.assign;i[n][r]=e({},i[n][r]||{},o)}else i[n][r]=o}))}))}catch(n){ti(n)}}function f(e,t){r=e;try{return t()}finally{g()}}function g(){r=null}return o(),{getCurrentBidder:function(){return r},resetBidder:g,getConfig:d,getAnyConfig:s,readConfig:l,readAnyConfig:c,setConfig:u,mergeConfig:function(e){if(!mi(e))return void ti("mergeConfig input must be an object");const t=en(a(),e);return u({...t}),t},setDefaults:function(i){mi(e)?(Object.assign(e,i),Object.assign(t,i)):ti("defaults must be an object")},resetConfig:o,runWithBidder:f,callbackWithBidder:function(e){return function(t){return function(...i){if("function"==typeof t)return f(e,t.bind(this,...i));ei("config.callbackWithBidder callback is not a function")}}},setBidderConfig:m,getBidderConfig:function(){return i},mergeBidderConfig:function(e){return m(e,!0)}}}();function mt(e){var t,i,n;if(Array.isArray(e)){for(i=Array(t=e.length);t--;)i[t]=(n=e[t])&&"object"==typeof n?mt(n):n;return i}if("[object Object]"===Object.prototype.toString.call(e)){for(t in i={},e)"__proto__"===t?Object.defineProperty(i,t,{value:mt(e[t]),configurable:!0,enumerable:!0,writable:!0}):i[t]=(n=e[t])&&"object"==typeof n?mt(n):n;return i}return e}const ft=0,gt=1,ht=class r{constructor(i){if(S(this,e),S(this,t),"function"!=typeof i)throw new Error("resolver not a function");const n=[],r=[];let[o,a]=[ft,gt].map((e=>function(t){if(e===ft&&"function"==typeof(null==t?void 0:t.then))t.then(o,a);else if(!n.length)for(n.push(e,t);r.length;)r.shift()()}));try{i(o,a)}catch(s){a(s)}B(this,e,n),B(this,t,r)}static timeout(e=0){return new r((t=>{0===e?t():setTimeout(t,e)}))}then(i,n){const r=E(this,e);return new this.constructor(((e,o)=>{const a=()=>{let t=r[1],[a,s]=r[0]===ft?[i,e]:[n,o];if("function"==typeof a){try{t=a(t)}catch(d){return void o(d)}s=e}s(t)};r.length?a():E(this,t).push(a)}))}catch(e){return this.then(null,e)}finally(e){let t;return this.then((i=>(t=i,e())),(i=>(t=this.constructor.reject(i),e()))).then((()=>t))}static race(e){return new this(((t,r)=>{U(this,i,n).call(this,e,((e,i)=>e?t(i):r(i)))}))}static all(e){return new this(((t,r)=>{let o=[];U(this,i,n).call(this,e,((e,t,i)=>e?o[i]=t:r(t)),(()=>t(o)))}))}static allSettled(e){return new this((t=>{let r=[];U(this,i,n).call(this,e,((e,t,i)=>r[i]=e?{status:"fulfilled",value:t}:{status:"rejected",reason:t}),(()=>t(r)))}))}static resolve(e){return new this((t=>t(e)))}static reject(e){return new this(((t,i)=>i(e)))}};e=new WeakMap,t=new WeakMap,i=new WeakSet,n=function(e,t,i){let n=e.length;function r(){t.apply(this,arguments),--n<=0&&i&&i()}0===e.length&&i?i():e.forEach(((e,t)=>this.resolve(e).then((e=>r(!0,e,t)),(e=>r(!1,e,t)))))},S(ht,i);let vt=ht;function bt({promiseFactory:e=e=>new vt(e)}={}){function t(e){return t=>e(t)}let i,n;return{promise:e(((e,t)=>{i=e,n=t})),resolve:t(i),reject:t(n)}}const yt=window,wt=yt.slmpbjs=yt.slmpbjs||{};function It(){return wt}function At(e,t,i,n,r){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:r;return e===r?i:e}function Tt(e,t,i){t.split&&(t=t.split("."));for(var n,r,o=0,a=t.length,s=e;o<a&&"__proto__"!==(r=t[o++])&&"constructor"!==r&&"prototype"!==r;)s=s[r]=o===a?i:typeof(n=s[r])==typeof t?n:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}wt.cmd=wt.cmd||[],wt.que=wt.que||[],yt===window&&(yt._pbjsGlobals=yt._pbjsGlobals||[],yt._pbjsGlobals.push("slmpbjs"));var xt="String",kt="Function",Ct="Number",_t="Object",Et="Boolean",St=Object.prototype.toString;let Bt,Ut=Boolean(window.console),Pt=Boolean(Ut&&window.console.log),Rt=Boolean(Ut&&window.console.info),Vt=Boolean(Ut&&window.console.warn),Nt=Boolean(Ut&&window.console.error);const jt=It();function Ot(...e){null!=Bt&&Bt(...e)}const Dt={checkCookieSupport:Di,createTrackPixelIframeHtml:function(e,t=!0,i=""){if(!e)return"";t&&(e=encodeURI(e));i&&(i=`sandbox="${i}"`);return`<iframe ${i} id="${Mt()}"\n frameborder="0"\n allowtransparency="true"\n marginheight="0" marginwidth="0"\n width="0" hspace="0" vspace="0" height="0"\n style="height:0px;width:0px;display:none;"\n scrolling="no"\n src="${e}">\n </iframe>`},getWindowSelf:Ht,getWindowTop:Gt,canAccessWindowTop:Jt,getWindowLocation:Qt,insertUserSyncIframe:Ai,insertElement:yi,isFn:li,triggerPixel:Ii,logError:ti,logWarn:ei,logMessage:Kt,logInfo:Xt,parseQS:Hi,formatQS:Qi,deepEqual:Xi};let Ft={};var qt=function(){var e=0;return function(){return++e}}();function Mt(){return qt()+Math.random().toString(16).substr(2)}function zt(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,zt)}function Lt(e){return"string"==typeof e?e.split(/\s*,\s*/).map((e=>e.match(/^(\d+)x(\d+)$/i))).filter((e=>e)).map((([e,t,i])=>[parseInt(t,10),parseInt(i,10)])):Array.isArray(e)?Yt(e)?[e]:e.filter(Yt):[]}function $t(e){return Lt(e).map(Zt)}function Zt(e){return e[0]+"x"+e[1]}function Wt(e){return{w:e[0],h:e[1]}}function Yt(e){return ui(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function Gt(){return window.top}function Ht(){return window.self}function Qt(){return window.location}function Jt(){try{if(Dt.getWindowTop().location.href)return!0}catch(e){return!1}}function Kt(){ri()&&Pt&&console.log.apply(console,ni(arguments,"MESSAGE:"))}function Xt(){ri()&&Rt&&console.info.apply(console,ni(arguments,"INFO:"))}function ei(){ri()&&Vt&&console.warn.apply(console,ni(arguments,"WARNING:")),Ot(Fe.AUCTION_DEBUG,{type:"WARNING",arguments:arguments})}function ti(){ri()&&Nt&&console.error.apply(console,ni(arguments,"ERROR:")),Ot(Fe.AUCTION_DEBUG,{type:"ERROR",arguments:arguments})}function ii(e){function t(t){return function(...i){t(e,...i)}}return{logError:t(ti),logWarn:t(ei),logMessage:t(Kt),logInfo:t(Xt)}}function ni(e,t){e=[].slice.call(e);let i=pt.getCurrentBidder();return t&&e.unshift(t),i&&e.unshift(n("#aaa")),e.unshift(n("#3b88c3")),e.unshift("%cPrebid"+(i?`%c${i}`:"")),e;function n(e){return`display: inline-block; color: #fff; background: ${e}; padding: 1px 4px; border-radius: 3px;`}}function ri(){return!!pt.getConfig("debug")}const oi=(()=>{const e={border:"0px",hspace:"0",vspace:"0",marginWidth:"0",marginHeight:"0",scrolling:"no",frameBorder:"0",allowtransparency:"true"};return(t,i,n={})=>{const r=t.createElement("iframe");return Object.assign(r,Object.assign({},e,i)),Object.assign(r.style,n),r}})();function ai(){return oi(document,{id:Mt(),width:0,height:0,src:"about:blank"},{display:"none",height:"0px",width:"0px",border:"0px"})}function si(e){return Hi(Qt().search)[e]||""}function di(e,t){return St.call(e)==="[object "+t+"]"}function li(e){return di(e,kt)}function ci(e){return di(e,xt)}const ui=Array.isArray.bind(Array);function pi(e){return di(e,Ct)}function mi(e){return di(e,_t)}function fi(e){return di(e,Et)}function gi(e){return!e||(ui(e)||ci(e)?!(e.length>0):Object.keys(e).length<=0)}function hi(e){return ci(e)&&(!e||0===e.length)}function vi(e,t){if(li(null==e?void 0:e.forEach))return e.forEach(t,this);Object.entries(e||{}).forEach((([e,i])=>t.call(this,i,e)))}function bi(e,t){return li(null==e?void 0:e.includes)&&e.includes(t)}function yi(e,t,i,n){let r;t=t||document,r=i?t.getElementsByTagName(i):t.getElementsByTagName("head");try{if(r=r.length?r:t.getElementsByTagName("body"),r.length){r=r[0];let t=n?null:r.firstChild;return r.insertBefore(e,t)}}catch(o){}}function wi(e,t){let i=null;return new vt((n=>{const r=function(){e.removeEventListener("load",r),e.removeEventListener("error",r),null!=i&&window.clearTimeout(i),n()};e.addEventListener("load",r),e.addEventListener("error",r),null!=t&&(i=window.setTimeout(r,t))}))}function Ii(e,t,i){const n=new Image;t&&Dt.isFn(t)&&wi(n,i).then(t),n.src=e}function Ai(e,t,i){let n=Dt.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),r=document.createElement("div");r.innerHTML=n;let o=r.firstChild;t&&Dt.isFn(t)&&wi(o,i).then(t),Dt.insertElement(o,document,"html",!0)}function Ti(e,t=encodeURI){if(!e)return"";let i='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return i+='<img src="'+t(e)+'"></div>',i}function xi(e){return Array.from(e.matchAll(/\$({[^}]+})/g)).map((e=>e[1])).reduce(((e,t)=>e.replace("$"+encodeURIComponent(t),"$"+t)),encodeURI(e))}function ki(e,t,i){return i.indexOf(e)===t}function Ci(e,t){return e.concat(t)}function _i(e=jt.adUnits){return e.map((e=>e.bids.map((e=>e.bidder)).reduce(Ci,[]))).reduce(Ci,[]).filter((e=>void 0!==e)).filter(ki)}function Ei(){if(window.googletag&&li(window.googletag.pubads)&&li(window.googletag.pubads().getSlots))return!0}function Si(e){let t=e.length;for(;t>0;){let i=Math.floor(Math.random()*t);t--;let n=e[t];e[t]=e[i],e[i]=n}return e}function Bi(e){return mt(e)||{}}function Ui(){try{return Dt.getWindowSelf()!==Dt.getWindowTop()}catch(e){return!0}}function Pi(){if(!Ui())return!1;const e=Dt.getWindowSelf();return!(!e.$sf||!e.$sf.ext)}function Ri(){try{const e=Ht();return"function"==typeof e.$sf.ext.geom?e.$sf.ext.geom():void 0}catch(e){return void ti("Error getting SafeFrame geometry",e)}}function Vi(e,t){if(e)return Object.entries(t).reduce(((e,[t,i])=>e.replace(new RegExp("\\$\\{"+t+"\\}","g"),i||"")),e)}function Ni(){return(new Date).getTime()}function ji(e){var t;let i=-1;const n=(e=e||Ht()).performance;if((null==(t=e.performance)?void 0:t.timing)&&e.performance.timing.navigationStart>0){const e=n.timing.domLoading-n.timing.navigationStart;e>0&&(i=e)}return i}function Oi(){return!1!==pt.getConfig("deviceAccess")}function Di(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function Fi(e,t){if(t<1)throw new Error(`numRequiredCalls must be a positive number. Got ${t}`);let i=0;return function(){i++,i===t&&e.apply(this,arguments)}}function qi(e,t){return e.reduce((function(e,i){return(e[i[t]]=e[i[t]]||[]).push(i),e}),{})}function Mi(e,t){return t.filter((t=>e[t])).reduce(((t,i)=>Object.assign(t,{[i]:e[i]})),{})}function zi(e,t,i){return e.filter((e=>e.code===t)).flatMap((e=>e.bids)).filter((e=>e.bidder===i)).map((e=>e.params||{}))}function Li(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}const $i=(e,t)=>e.getAdUnitPath()===t||e.getSlotElementId()===t;const Zi=Number.isInteger.bind(Number);function Wi(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>void 0!==t)))}function Yi(e,t){return"object"!=typeof e?{}:t.reduce(((i,n,r)=>{if("function"==typeof n)return i;let o=n,a=n.match(/^(.+?)\sas\s(.+?)$/i);a&&(n=a[1],o=a[2]);let s=e[n];return"function"==typeof t[r+1]&&(s=t[r+1](s,i)),void 0!==s&&(i[o]=s),i}),{})}function Gi(e,t){return ui(e)&&(!t||e.length===t)&&e.every((e=>Zi(e)))}function Hi(e){return e?e.replace(/^\?/,"").split("&").reduce(((e,t)=>{let[i,n]=t.split("=");return/\[\]$/.test(i)?(i=i.replace("[]",""),e[i]=e[i]||[],e[i].push(n)):e[i]=n||"",e}),{}):{}}function Qi(e){return Object.keys(e).map((t=>Array.isArray(e[t])?e[t].map((e=>`${t}[]=${e}`)).join("&"):`${t}=${e[t]}`)).join("&")}function Ji(e,t){let i=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?i.href=e:i.href=decodeURIComponent(e);let n=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:i.href,protocol:(i.protocol||"").replace(/:$/,""),hostname:i.hostname,port:+i.port,pathname:i.pathname.replace(/^(?!\/)/,"/"),search:n?i.search:Dt.parseQS(i.search||""),hash:(i.hash||"").replace(/^#/,""),host:i.host||window.location.host}}function Ki(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?`:${e.port}`:""))+(e.pathname||"")+(e.search?`?${Dt.formatQS(e.search||"")}`:"")+(e.hash?`#${e.hash}`:"")}function Xi(e,t,{checkTypes:i=!1}={}){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||i&&e.constructor!==t.constructor)return!1;{const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n){if(!t.hasOwnProperty(r))return!1;if(!Xi(e[r],t[r],{checkTypes:i}))return!1}return!0}}function en(e,...t){if(!t.length)return e;const i=t.shift();if(mi(e)&&mi(i))for(const n in i)mi(i[n])?(e[n]||Object.assign(e,{[n]:{}}),en(e[n],i[n])):ui(i[n])?e[n]?ui(e[n])&&i[n].forEach((t=>{let i=1;for(let r=0;r<e[n].length;r++)if(Xi(e[n][r],t)){i=0;break}i&&e[n].push(t)})):Object.assign(e,{[n]:[...i[n]]}):Object.assign(e,{[n]:i[n]});return en(e,...t)}function tn(e,t=0){let i=function(e,t){if(li(Math.imul))return Math.imul(e,t);var i=(4194303&e)*(t|=0);return 4290772992&e&&(i+=(4290772992&e)*t|0),0|i},n=3735928559^t,r=1103547991^t;for(let o,a=0;a<e.length;a++)o=e.charCodeAt(a),n=i(n^o,2654435761),r=i(r^o,1597334677);return n=i(n^n>>>16,2246822507)^i(r^r>>>13,3266489909),r=i(r^r>>>16,2246822507)^i(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString()}function nn(e){try{return JSON.stringify(e)}catch(t){return""}}function rn(e,t=function(e){return e}){const i=new Map,n=function(){const n=t.apply(this,arguments);return i.has(n)||i.set(n,e.apply(this,arguments)),i.get(n)};return n.clear=i.clear.bind(i),n}function on(e,t){for(let i,n=0;n<e.length;n++)if(i=At(e[n],t),i)return i}const an={fetch:window.fetch.bind(window),makeRequest:(e,t)=>new Request(e,t),timeout(e,t){const i=new AbortController;let n=setTimeout((()=>{i.abort(),ti(`Request timeout after ${e}ms`,t),n=null}),e);return{signal:i.signal,done(){n&&clearTimeout(n)}}}},sn="GET",dn="POST",ln="Content-Type";function cn(e=3e3,{request:t,done:i}={}){let n=(t,i)=>{let n;null==e||null!=(null==i?void 0:i.signal)||pt.getConfig("disableAjaxTimeout")||(n=an.timeout(e,t),i=Object.assign({signal:n.signal},i));let r=an.fetch(t,i);return null!=(null==n?void 0:n.done)&&(r=r.finally(n.done)),r};return null==t&&null==i||(n=(e=>function(n,r){const o=new URL(null==(null==n?void 0:n.url)?n:n.url,document.location).origin;let a=e(n,r);return t&&t(o),i&&(a=a.finally((()=>i(o)))),a})(n)),n}function un({status:e,statusText:t="",headers:i,url:n},r){let o=0;function a(e){var t,n;if(0===o)try{o=(new DOMParser).parseFromString(r,null==(n=null==(t=null==i?void 0:i.get(ln))?void 0:t.split(";"))?void 0:n[0])}catch(a){o=null,e&&e(a)}return o}return{readyState:XMLHttpRequest.DONE,status:e,statusText:t,responseText:r,response:r,responseType:"",responseURL:n,get responseXML(){return a(ti)},getResponseHeader:e=>(null==i?void 0:i.has(e))?i.get(e):null,toJSON(){return Object.assign({responseXML:a()},this)},timedOut:!1}}function pn(e=3e3,{request:t,done:i}={}){const n=cn(e,{request:t,done:i});return function(e,t,i,r={}){!function(e,t){const{success:i,error:n}="object"==typeof t&&null!=t?t:{success:"function"==typeof t?t:()=>null,error:(e,t)=>ti("Network error",e,t)};e.then((e=>e.text().then((t=>[e,t])))).then((([e,t])=>{const r=un(e,t);e.ok||304===e.status?i(t,r):n(e.statusText,r)}),(e=>n("",Object.assign(un({status:0},""),{reason:e,timedOut:"AbortError"===(null==e?void 0:e.name)}))))}(n(function(e,t,i={}){const n=i.method||(t?dn:sn);if(n===sn&&t){const n=Ji(e,i);Object.assign(n.search,t),e=Ki(n)}const r=new Headers(i.customHeaders);r.set(ln,i.contentType||"text/plain");const o={method:n,headers:r};return n!==sn&&t&&(o.body=t),i.withCredentials&&(o.credentials="include"),i.browsingTopics&&isSecureContext&&(o.browsingTopics=!0),i.keepalive&&(o.keepalive=!0),an.makeRequest(e,o)}(e,i,r)),t)}}const mn=pn(),fn=cn(),gn=15;function hn(e,{index:t=Xo.index}={}){const i=e.vastXml?e.vastXml:(n=e.vastUrl,r=e.vastImpUrl,`<VAST version="3.0">\n <Ad>\n <Wrapper>\n <AdSystem>prebid.org wrapper</AdSystem>\n <VASTAdTagURI><![CDATA[${n}]]></VASTAdTagURI>\n ${(r=r&&(Array.isArray(r)?r:[r]))?r.map((e=>`<Impression><![CDATA[${e}]]></Impression>`)).join(""):""}\n <Creatives></Creatives>\n </Wrapper>\n </Ad>\n </VAST>`);var n,r;const o=t.getAuction(e);let a={type:"xml",value:i,ttlseconds:Number(e.ttl)+gn};return pt.getConfig("cache.vasttrack")&&(a.bidder=e.bidder,a.bidid=e.requestId,a.aid=e.auctionId),null!=o&&(a.timestamp=o.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(a.key=e.customCacheKey),a}const vn={store:function(e,t,i=pn){const n={puts:e.map(hn)};i(pt.getConfig("cache.timeout"))(pt.getConfig("cache.url"),function(e){return{success:function(t){let i;try{i=JSON.parse(t).responses}catch(n){return void e(n,[])}i?e(null,i):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(t,i){e(new Error(`Error storing video ad in the cache: ${t}: ${JSON.stringify(i)}`),[])}}}(t),JSON.stringify(n),{contentType:"text/plain",withCredentials:!0})}};function bn(e){const t=e.map((e=>e.bidResponse));vn.store(t,(function(i,n){i?ti(`Failed to save to the video cache: ${i}. Video bids will be discarded:`,t):e.length!==n.length?ti(`expected ${e.length} cache IDs, got ${n.length} instead`):n.forEach(((t,i)=>{const{auctionInstance:n,bidResponse:r,afterBidAdded:o}=e[i];var a;""===t.uuid?ei("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(r.videoCacheKey=t.uuid,r.vastUrl||(r.vastUrl=(a=r.videoCacheKey,`${pt.getConfig("cache.url")}?uuid=${a}`)),jo(n,r),o())}))}))}let yn,wn;pt.getConfig("cache",(e=>{yn="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,wn="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));const In=((e=setTimeout,t=bn)=>{let i=[[]],n=!1;const r=e=>e();return function(o,a,s){const d=wn>0?e:r;i[i.length-1].length>=yn&&i.push([]),i[i.length-1].push({auctionInstance:o,bidResponse:a,afterBidAdded:s}),n||(n=!0,d((()=>{i.forEach(t),i=[[]],n=!1}),wn))}})(),An=new WeakMap,Tn=["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 xn(e,t,i,n,r){if(!t||!e)return void ti("cannot load external script without url and moduleCode");if(!Ce(Tn,t))return void ti(`${t} not whitelisted for loading external JavaScript`);n||(n=document);const o=d(n,e);if(o)return i&&"function"==typeof i&&(o.loaded?i():o.callbacks.push(i)),o.tag;const a=An.get(n)||{},s={loaded:!1,tag:null,callbacks:[]};return a[e]=s,An.set(n,a),i&&"function"==typeof i&&s.callbacks.push(i),ei(`module ${t} is loading external JavaScript`),function(t,i,n,r){n||(n=document);var o=n.createElement("script");o.type="text/javascript",o.async=!0;const a=d(n,e);a&&(a.tag=o);o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,i())}:o.onload=function(){i()};o.src=t,r&&function(e,t){Object.entries(t).forEach((([t,i])=>e.setAttribute(t,i)))}(o,r);return yi(o,n),o}(e,(function(){s.loaded=!0;try{for(let e=0;e<s.callbacks.length;e++)s.callbacks[e]()}catch(e){ti("Error executing callback","adloader.js:loadExternalScript",e)}}),n,r);function d(e,t){const i=An.get(e);return i&&i[t]?i[t]:null}}const kn=It(),Cn="outstream";function _n(e){const{url:t,config:i,id:n,callback:r,loaded:o,adUnitCode:a,renderNow:s}=e;this.url=t,this.config=i,this.handlers={},this.id=n,this.renderNow=s,this.loaded=o,this.cmd=[],this.push=e=>{"function"==typeof e?this.loaded?e.call():this.cmd.push(e):ti("Commands given to Renderer.push must be wrapped in a function")},this.callback=r||(()=>{this.loaded=!0,this.process()}),this.render=function(){const e=arguments,i=()=>{this._render?this._render.apply(this,e):ei("No render function was provided, please use .setRender on the renderer")};!function(e){const t=_e(kn.adUnits,(t=>t.code===e));if(!t)return!1;const i=At(t,"renderer"),n=!!(i&&i.url&&i.render),r=At(t,"mediaTypes.video.renderer"),o=!!(r&&r.url&&r.render);return!!(n&&!0!==i.backupOnly||o&&!0!==r.backupOnly)}(a)?s?i():(this.cmd.unshift(i),xn(t,Cn,this.callback,this.documentContext)):(ei(`External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ${a}`),i())}.bind(this)}_n.install=function({url:e,config:t,id:i,callback:n,loaded:r,adUnitCode:o,renderNow:a}){return new _n({url:e,config:t,id:i,callback:n,loaded:r,adUnitCode:o,renderNow:a})},_n.prototype.getConfig=function(){return this.config},_n.prototype.setRender=function(e){this._render=e},_n.prototype.setEventHandlers=function(e){this.handlers=e},_n.prototype.handleVideoEvent=function({id:e,eventName:t}){"function"==typeof this.handlers[t]&&this.handlers[t](),Kt(`Prebid Renderer event for id ${e} type ${t}`)},_n.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){ti("Error processing Renderer command: ",e)}};r=new WeakSet,o=function(e){return null==e?this.defaultScope:e};const En=new class{constructor(e,t){S(this,r),this.getSettings=e,this.defaultScope=t}get(e,t){let i=this.getOwn(e,t);return void 0===i&&(i=this.getOwn(null,t)),i}getOwn(e,t){return e=U(this,r,o).call(this,e),At(this.getSettings(),`${e}.${t}`)}getScopes(){return Object.keys(this.getSettings()).filter((e=>e!==this.defaultScope))}settingsFor(e){return en({},this.ownSettingsFor(null),this.ownSettingsFor(e))}ownSettingsFor(e){return e=U(this,r,o).call(this,e),this.getSettings()[e]||{}}}((()=>It().bidderSettings||{}),Oe.BD_SETTING_STANDARD),Sn="prebid",Bn="bidder",Un="userId",Pn="rtd",Rn="analytics";function Vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nn(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var i=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),i} /* * @license MIT * Fun Hooks v0.9.10 * (c) @snapwich */zn.SYNC=1,zn.ASYNC=2,zn.QUEUE=4;var jn="fun-hooks";var On=Object.freeze({useProxy:!0,ready:0}),Dn=new WeakMap,Fn="2,1,0"===[1].reduce((function(e,t,i){return[e,t,i]}),2).toString()?Array.prototype.reduce:function(e,t){var i,n=Object(this),r=n.length>>>0,o=0;if(t)i=t;else{for(;o<r&&!(o in n);)o++;i=n[o++]}for(;o<r;)o in n&&(i=e(i,n[o],o,n)),o++;return i};function qn(e,t){return Array.prototype.slice.call(e,t)}var Mn=Object.assign||function(e){return Fn.call(qn(arguments,1),(function(e,t){return t&&Object.keys(t).forEach((function(i){e[i]=t[i]})),e}),e)};function zn(e){var t,i={},n=[];function r(e,t){return"function"==typeof e?d.call(null,"sync",e,t):"string"==typeof e&&"function"==typeof t?d.apply(null,arguments):"object"==typeof e?o.apply(null,arguments):void 0}function o(e,t,i){var n=!0;void 0===t&&(t=Object.getOwnPropertyNames(e),n=!1);var r={},o=["constructor"];do{(t=t.filter((function(t){return!("function"!=typeof e[t]||-1!==o.indexOf(t)||t.match(/^_/))}))).forEach((function(t){var n=t.split(":"),o=n[0],a=n[1]||"sync";if(!r[o]){var s=e[o];r[o]=e[o]=d(a,s,i?[i,o]:void 0)}})),e=Object.getPrototypeOf(e)}while(n&&e);return r}function a(e){var r=Array.isArray(e)?e:e.split(".");return Fn.call(r,(function(i,o,a){var d=i[o],l=!1;return d||(a===r.length-1?(t||n.push((function(){l||console.warn(jn+": referenced '"+e+"' but it was never created")})),i[o]=s((function(e){i[o]=e,l=!0}))):i[o]={})}),i)}function s(e){var t=[],i=[],n=function(){},r={before:function(e,i){return a.call(this,t,"before",e,i)},after:function(e,t){return a.call(this,i,"after",e,t)},getHooks:function(e){var n=t.concat(i);"object"==typeof e&&(n=n.filter((function(t){return Object.keys(e).every((function(i){return t[i]===e[i]}))})));try{Mn(n,{remove:function(){return n.forEach((function(e){e.remove()})),this}})}catch(r){console.error("error adding `remove` to array, did you modify Array.prototype?")}return n},removeAll:function(){return this.getHooks().remove()}},o={install:function(r,o,a){this.type=r,n=a,a(t,i),e&&e(o)}};return Dn.set(r.after,o),r;function a(e,r,o,a){var s={hook:o,type:r,priority:a||10,remove:function(){var r=e.indexOf(s);-1!==r&&(e.splice(r,1),n(t,i))}};return e.push(s),e.sort((function(e,t){return t.priority-e.priority})),n(t,i),this}}function d(i,r,o){var d=r.after&&Dn.get(r.after);if(d){if(d.type!==i)throw jn+": recreated hookable with different type";return r}var l,c,u=o?a(o):s(),p={get:function(e,t){return u[t]||Reflect.get.apply(Reflect,arguments)}};return t||n.push(m),e.useProxy&&"function"==typeof Proxy&&Proxy.revocable?c=new Proxy(r,p):(c=function(){return p.apply?p.apply(r,this,qn(arguments)):r.apply(this,arguments)},Mn(c,u)),Dn.get(c.after).install(i,c,(function(e,t){var n,r=[];e.length||t.length?(e.forEach(o),n=r.push(void 0)-1,t.forEach(o),l=function(e,t,o){var a,s=0,d="async"===i&&"function"==typeof o[o.length-1]&&o.pop();function l(e){"sync"===i?a=e:d&&d.apply(null,arguments)}function c(e){if(r[s]){var n=qn(arguments);return c.bail=l,n.unshift(c),r[s++].apply(t,n)}"sync"===i?a=e:d&&d.apply(null,arguments)}return r[n]=function(){var n=qn(arguments,1);"async"===i&&d&&(delete c.bail,n.push(c));var r=e.apply(t,n);"sync"===i&&c(r)},c.apply(null,o),a}):l=void 0;function o(e){r.push(e.hook)}m()})),c;function m(){!t&&("sync"!==i||e.ready&zn.SYNC)&&("async"!==i||e.ready&zn.ASYNC)?"sync"!==i&&e.ready&zn.QUEUE?p.apply=function(){var e=arguments;n.push((function(){c.apply(e[1],e[2])}))}:p.apply=function(){throw jn+": hooked function not ready"}:p.apply=l}}return(e=Mn({},On,e)).ready?r.ready=function(){t=!0,function(e){for(var t;t=e.shift();)t()}(n)}:t=!0,r.get=a,r}const Ln=Vn(zn);let $n=Ln({ready:Ln.SYNC|Ln.ASYNC|Ln.QUEUE});const Zn=bt();$n.ready=(()=>{const e=$n.ready;return function(){try{return e.apply($n,arguments)}finally{Zn.resolve()}}})();const Wn=Zn.promise,Yn=$n.get;const Gn={};function Hn(e,t,{postInstallAllowed:i=!1}={}){$n("async",(function(n){n.forEach((e=>t(...e))),i&&(Gn[e]=t)}),e)([])}function Qn(e,...t){const i=Gn[e];if(i)return i(...t);Yn(e).before(((e,i)=>{i.push(t),e(i)}))}const Jn="component",Kn=Jn+"Type",Xn=Jn+"Name",er="adapterCode",tr="storageType",ir="configName",nr="syncType",rr="syncUrl",or="_config";function ar(e){return function(t,i,n){const r={[Kn]:t,[Xn]:i,[Jn]:`${t}.${i}`};return t===Bn&&(r[er]=e(i)),sr(Object.assign(r,n))}}const sr=$n("sync",(e=>e));const[dr,lr]=function(e=ii("Activity control:")){const t={};function i(e){return t[e]=t[e]||[]}function n(t,i,n,r){let o;try{o=n(r)}catch(a){e.logError(`Exception in rule ${i} for '${t}'`,a),o={allow:!1,reason:a}}return o&&Object.assign({activity:t,name:i,component:r[Jn]},o)}const r={};function o({activity:t,name:i,allow:n,reason:o,component:a}){const s=`${i} ${n?"allowed":"denied"} '${t}' for '${a}'${o?":":""}`,d=r.hasOwnProperty(s);if(d&&clearTimeout(r[s]),r[s]=setTimeout((()=>delete r[s]),1e3),!d){const t=[s];o&&t.push(o),(n?e.logInfo:e.logWarn).apply(e,t)}}return[function(e,t,n,r=10){const o=i(e),a=o.findIndex((([e])=>r<e)),s=[r,t,n];return o.splice(a<0?o.length:a,0,s),function(){const e=o.indexOf(s);e>=0&&o.splice(e,1)}},function(e,t){let r,a;for(const[s,d,l]of i(e)){if(r!==s&&a)break;r=s;const i=n(e,d,l,t);if(i){if(!i.allow)return o(i),!1;a=i}}return a&&o(a),!0}]}(),cr="accessDevice",ur="syncUser",pr="enrichUfpd",mr="enrichEids",fr="fetchBids",gr="reportAnalytics",hr="transmitEids",vr="transmitUfpd",br="transmitPreciseGeo",yr="transmitTid",wr=ar((e=>Ps.resolveAlias(e))),Ir="html5",Ar="cookie";let Tr=[];function xr({moduleName:e,moduleType:t}={},{isAllowed:i=lr}={}){function n(n,r){let o=e;const a=pt.getCurrentBidder();a&&t===Bn&&Ps.aliasRegistry[a]===e&&(o=a);return n({valid:i(cr,wr(t,o,{[tr]:r}))})}function r(e,t,i){if(!i||"function"!=typeof i)return n(e,t);Tr.push((function(){let r=n(e,t);i(r)}))}function o(e){const t=e.charAt(0).toUpperCase()+e.substring(1),i=()=>window[e],n=function(t){return r((function(t){if(t&&t.valid)try{return!!i()}catch(n){ti(`${e} api disabled`)}return!1}),Ir,t)};return{[`has${t}`]:n,[`${e}IsEnabled`]:e=>r((function(e){if(e&&e.valid)try{return i().setItem("prebid.cookieTest","1"),"1"===i().getItem("prebid.cookieTest")}catch(t){}finally{try{i().removeItem("prebid.cookieTest")}catch(t){}}return!1}),Ir,e),[`setDataIn${t}`]:(e,t,o)=>r((function(r){r&&r.valid&&n()&&i().setItem(e,t)}),Ir,o),[`getDataFrom${t}`]:(e,t)=>r((function(t){return t&&t.valid&&n()?i().getItem(e):null}),Ir,t),[`removeDataFrom${t}`]:(e,t)=>r((function(t){t&&t.valid&&n()&&i().removeItem(e)}),Ir,t)}}return{setCookie:function(e,t,i,n,o,a){return r((function(r){if(r&&r.valid){const r=o&&""!==o?` ;domain=${encodeURIComponent(o)}`:"",a=i&&""!==i?` ;expires=${i}`:"",s=null!=n&&"none"==n.toLowerCase()?"; Secure":"";document.cookie=`${e}=${encodeURIComponent(t)}${a}; path=/${r}${n?`; SameSite=${n}`:""}${s}`}}),Ar,a)},getCookie:function(e,t){return r((function(t){if(t&&t.valid){let t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null}),Ar,t)},cookiesAreEnabled:function(e){return r((function(e){return!(!e||!e.valid)&&Di()}),Ar,e)},...o("localStorage"),...o("sessionStorage"),findSimilarCookies:function(e,t){return r((function(t){if(t&&t.valid){const t=[];if(Oi()){const i=document.cookie.split(";");for(;i.length;){const n=i.pop();let r=n.indexOf("=");r=r<0?n.length:r;decodeURIComponent(n.slice(0,r).replace(/^\s+/,"")).indexOf(e)>=0&&t.push(decodeURIComponent(n.slice(r+1)))}}return t}}),Ar,t)}}}function kr({moduleType:e,moduleName:t,bidderCode:i}={}){function n(){throw new Error("Invalid invocation for getStorageManager: must set either bidderCode, or moduleType + moduleName")}return i?((e&&e!==Bn||t)&&n(),e=Bn,t=i):t&&e||n(),xr({moduleType:e,moduleName:t})}function Cr(e){return xr({moduleName:e,moduleType:Sn})}dr(cr,"deviceAccess config",(function(){if(!Oi())return{allow:!1}})),dr(cr,"bidderSettings.*.storageAllowed",(function(e,t=En){if(e[Kn]!==Bn)return;let i=t.get(e[er],"storageAllowed");if(i&&!0!==i){const t=e[tr];i=Array.isArray(i)?i.some((e=>e===t)):i===t}else i=!!i;return i?void 0:{allow:i}}));const _r={syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:500};pt.setDefaults({userSync:Bi(_r)});const Er=Cr("usersync");const Sr=function(e){let t={},i={image:[],iframe:[]},n=new Set,r={},o={image:!0,iframe:!1},a=e.config;function s(){if(a.syncEnabled&&e.browserSupportsCookies){try{!function(){if(!o.iframe)return;d(i.iframe,(e=>{let[t,n]=e;var r,o;Kt(`Invoking iframe user sync for bidder: ${t}`),Ai(n),o=t,(r=i).image=r.image.filter((e=>e[0]!==o))}))}(),function(){if(!o.image)return;d(i.image,(e=>{let[t,i]=e;Kt(`Invoking image pixel user sync for bidder: ${t}`),Ii(i)}))}()}catch(t){return ti("Error firing user syncs",t)}i={image:[],iframe:[]}}}function d(e,t){Si(e).forEach(t)}function l(e,t){let i=a.filterSettings;if(function(e,t){if(e.all&&e[t])return ei(`Detected presence of the "filterSettings.all" and "filterSettings.${t}" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.`),!1;let i=e.all?e.all:e[t],n=e.all?"all":t;if(!i)return!1;let r=i.filter,o=i.bidders;if(r&&"include"!==r&&"exclude"!==r)return ei(`UserSync "filterSettings.${n}.filter" setting '${r}' is not a valid option; use either 'include' or 'exclude'.`),!1;if("*"!==o&&!(Array.isArray(o)&&o.length>0&&o.every((e=>ci(e)&&"*"!==e))))return ei(`Detected an invalid setup in userSync "filterSettings.${n}.bidders"; use either '*' (to represent all bidders) or an array of bidders.`),!1;return!0}(i,e)){o[e]=!0;let n=i.all?i.all:i[e],r="*"===n.bidders?[t]:n.bidders;return{include:(e,t)=>!Ce(e,t),exclude:(e,t)=>Ce(e,t)}[n.filter||"include"](r,t)}return!o[e]}return pt.getConfig("userSync",(e=>{if(e.userSync){let t=e.userSync.filterSettings;mi(t)&&(t.image||t.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}a=Object.assign(a,e.userSync)})),e.regRule(ur,"userSync config",(e=>{if(!a.syncEnabled)return{allow:!1,reason:"syncs are disabled"};if(e[Kn]===Bn){const i=e[nr],n=e[Xn];if(!t.canBidderRegisterSync(i,n))return{allow:!1,reason:`${i} syncs are not enabled for ${n}`}}})),t.registerSync=(t,o,s)=>n.has(o)?Kt(`already fired syncs for "${o}", ignoring registerSync call`):a.syncEnabled&&ui(i[t])?o?0!==a.syncsPerBidder&&Number(r[o])>=a.syncsPerBidder?ei(`Number of user syncs exceeded for "${o}"`):void(e.isAllowed(ur,wr(Bn,o,{[nr]:t,[rr]:s}))&&(i[t].push([o,s]),r=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(r,o))):ei("Bidder is required for registering sync"):ei(`User sync type "${t}" not supported`),t.bidderDone=n.add.bind(n),t.syncUsers=(e=0)=>{if(e)return setTimeout(s,Number(e));s()},t.triggerUserSyncs=()=>{a.enableOverride&&t.syncUsers()},t.canBidderRegisterSync=(e,t)=>!a.filterSettings||!l(e,t),t}(Object.defineProperties({config:pt.getConfig("userSync"),isAllowed:lr,regRule:dr},{browserSupportsCookies:{get:function(){return!/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)&&Er.cookiesAreEnabled()}}})),Br="outstream",Ur="instream",Pr=new Map([["mimes",e=>Array.isArray(e)&&e.length>0&&e.every((e=>"string"==typeof e))],["minduration",Zi],["maxduration",Zi],["startdelay",Zi],["maxseq",Zi],["poddur",Zi],["protocols",Gi],["w",Zi],["h",Zi],["podid",ci],["podseq",Zi],["rqddurs",Gi],["placement",Zi],["plcmt",Zi],["linearity",Zi],["skip",e=>[1,0].includes(e)],["skipmin",Zi],["skipafter",Zi],["sequence",Zi],["slotinpod",Zi],["mincpmpersec",pi],["battr",Gi],["maxextended",Zi],["minbitrate",Zi],["maxbitrate",Zi],["boxingallowed",Zi],["playbackmethod",Gi],["playbackend",Zi],["delivery",Gi],["pos",Zi],["api",Gi],["companiontype",Gi],["poddedupe",Gi]]);function Rr(e,t){var i;const n=null==(i=null==e?void 0:e.mediaTypes)?void 0:i.video;mi(n)?null!=n&&Object.entries(n).forEach((([t,i])=>{if(!Pr.has(t))return;Pr.get(t)(i)||(delete n[t],ei(`Invalid prop in adUnit "${e.code}": Invalid value for mediaTypes.video.${t} ORTB property. The property has been removed.`))})):ei("validateOrtbVideoFields: videoParams must be an object.")}const Vr=$n("sync",(function(e,t,i,n,r){return i&&(r||n!==Br)?pt.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):(ti('\n This bid contains only vastXml and will not work when a prebid cache url is not specified.\n Try enabling prebid cache with slmpbjs.setConfig({ cache: {url: "..."} });\n '),!1):!(n===Br&&!r)||!!(e.renderer||t&&t.renderer||i.renderer)}),"checkVideoBidSetup"),Nr="native",jr="video",Or="banner",Dr="adpod";let Fr=null,qr=0,Mr=[];function zr(e,t){const i=qr;let n=setTimeout((()=>{qr===i&&null==Fr?e():null!=Fr?Mr.push({callback:e,startTime:i,setTimerId(e){n=e}}):n=zr(e,qr-i)()}),t);return()=>n}function Lr({startTime:e=Ni,ttl:t=()=>null,monotonic:i=!1,slack:n=5e3}={}){const r=new Map,o=[],a=[],s=i?e=>a.push(e):e=>a.splice(function(e,t,i=e=>e){let n=0,r=e.length&&e.length-1;const o=i(t);for(;r-n>1;){const t=n+Math.round((r-n)/2);o>i(e[t])?n=t:r=t}for(;e.length>n&&o>i(e[n]);)n++;return n}(a,e,(e=>e.expiry)),0,e);let d,l;function c(){if(l&&clearTimeout(l),a.length>0){const e=Ni();d=Math.max(e,a[0].expiry+n),l=zr((()=>{const e=Ni();let t=0;for(const i of a){if(i.expiry>e)break;o.forEach((e=>{try{e(i.item)}catch(t){ti(t)}})),r.delete(i.item),t++}a.splice(0,t),l=null,c()}),d-e)}else l=null}function u(i){const r={},o=p;let a;const[u,m]=Object.entries({start:e,delta:t}).map((([e,t])=>{let u;return function(){const m=u={};vt.resolve(t(i)).then((t=>{m===u&&(r[e]=t,o===p&&null!=r.start&&null!=r.delta&&(a=r.start+r.delta,s(f),(null==l||d>a+n)&&c()))}))}})),f={item:i,refresh:m,get expiry(){return a}};return u(),m(),f}let p={};return{[Symbol.iterator]:()=>r.keys(),add(e){!r.has(e)&&r.set(e,u(e))},clear(){a.length=0,c(),r.clear(),p={}},toArray:()=>Array.from(r.keys()),refresh(){a.length=0,c();for(const e of r.values())e.refresh()},onExpiry:e=>(o.push(e),()=>{const t=o.indexOf(e);t>=0&&o.splice(t,1)})}}document.addEventListener("visibilitychange",(function(){document.hidden?Fr=Date.now():(qr+=Date.now()-(Fr??0),Fr=null,Mr.forEach((({callback:e,startTime:t,setTimerId:i})=>i(zr(e,qr-t)()))),Mr=[])}));const $r="eventHistoryTTL";let Zr=null;const Wr=Lr({monotonic:!0,ttl:()=>Zr});pt.getConfig($r,(e=>{const t=Zr;e=null==e?void 0:e[$r],Zr="number"==typeof e?1e3*e:null,t!==Zr&&Wr.refresh()}));let Yr=Array.prototype.slice,Gr=Array.prototype.push,Hr=Object.values(Fe);const Qr={bidWon:"adUnitCode"},Jr=function(){let e={},t={};function i(e){return Hr.includes(e)}return t.has=i,t.on=function(t,n,r){if(i(t)){let i=e[t]||{que:[]};r?(i[r]=i[r]||{que:[]},i[r].que.push(n)):i.que.push(n),e[t]=i}else ti("Wrong event name : "+t+" Valid event names :"+Hr)},t.emit=function(t){!function(t,i){Kt("Emitting event for: "+t);let n=i[0]||{},r=n[Qr[t]],o=e[t]||{que:[]};var a=Object.keys(o);let s=[];Wr.add({eventType:t,args:n,id:r,elapsedTime:window.performance&&window.performance.now&&window.performance.now()||0}),r&&a.includes(r)&&Gr.apply(s,o[r].que),Gr.apply(s,o.que),(s||[]).forEach((function(e){if(e)try{e.apply(null,i)}catch(n){ti("Error executing handler:","events.js",n,t)}}))}(t,Yr.call(arguments,1))},t.off=function(t,i,n){let r=e[t];gi(r)||gi(r.que)&&gi(r[n])||n&&(gi(r[n])||gi(r[n].que))||(n?(r[n].que||[]).forEach((function(e){let t=r[n].que;e===i&&t.splice(t.indexOf(e),1)})):(r.que||[]).forEach((function(e){let t=r.que;e===i&&t.splice(t.indexOf(e),1)})),e[t]=r)},t.get=function(){return e},t.addEvents=function(e){Hr=Hr.concat(e)},t.getEvents=function(){return Wr.toArray().map((e=>Object.assign({},e)))},t}();var Kr;Kr=Jr.emit.bind(Jr),Bt=Kr;const{on:Xr,off:eo,get:to,getEvents:io,emit:no,addEvents:ro,has:oo}=Jr,ao="performanceMetrics",so=window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now(),lo=new WeakMap;function co({now:e=so,mkNode:t=mo,mkTimer:i=po,mkRenamer:n=e=>e,nodes:r=lo}={}){return function(){return function o(a,s=e=>({forEach(t){t(e)}})){s=n(s);const d=(l="timestamps",function(e){return a.dfWalk({visit(t,i){const n=i[l];if(n.hasOwnProperty(e))return n[e]}})});var l;function c(e,t){const i=s(e);a.dfWalk({follow:(e,t)=>t.propagate&&(!e||!e.stopPropagation),visit(e,n){i.forEach((i=>{null==e?n.metrics[i]=t:(n.groups.hasOwnProperty(i)||(n.groups[i]=[]),n.groups[i].push(t))}))}})}function u(t){return i(e,(e=>c(t,e)))}function p(){let e={};return a.dfWalk({visit(t,i){e=Object.assign({},!t||t.includeGroups?i.groups:null,i.metrics,e)}}),e}const m={startTiming:u,measureTime:function(e,t){return u(e).stopAfter(t)()},measureHookTime:function(e,t,i){const n=u(e);return i(function(e){const t=n.stopBefore(e);return t.bail=e.bail&&n.stopBefore(e.bail),t.stopTiming=n,t.untimed=e,t}(t))},checkpoint:function(t){a.timestamps[t]=e()},timeSince:function(t,i){const n=d(t),r=null!=n?e()-n:null;return null!=i&&c(i,r),r},timeBetween:function(e,t,i){const n=d(e),r=d(t),o=null!=n&&null!=r?r-n:null;return null!=i&&c(i,o),o},setMetric:c,getMetrics:p,fork:function({propagate:e=!0,stopPropagation:i=!1,includeGroups:n=!1}={}){return o(t([[a,{propagate:e,stopPropagation:i,includeGroups:n}]]),s)},join:function(e,{propagate:t=!0,stopPropagation:i=!1,includeGroups:n=!1}={}){const o=r.get(e);null!=o&&o.addParent(a,{propagate:t,stopPropagation:i,includeGroups:n})},newMetrics:function(){return o(a.newSibling(),s)},renameWith:function(e){return o(a,e)},toJSON:()=>p()};return r.set(m,a),m}(t([]))}}function uo(e,t,i){return function(){t&&t();try{return e.apply(this,arguments)}finally{i&&i()}}}function po(e,t){const i=e();let n=!1;function r(){n||(t(e()-i),n=!0)}return r.stopBefore=e=>uo(e,r),r.stopAfter=e=>uo(e,null,r),r}function mo(e){return{metrics:{},timestamps:{},groups:{},addParent(t,i){e.push([t,i])},newSibling:()=>mo(e.slice()),dfWalk({visit:t,follow:i=()=>!0,visited:n=new Set,inEdge:r}={}){let o;if(!n.has(this)){if(n.add(this),o=t(r,this),null!=o)return o;for(const[a,s]of e)if(i(r,s)&&(o=a.dfWalk({visit:t,follow:i,visited:n,inEdge:s}),null!=o))return o}}}}const fo=(()=>{const e=function(){},t=()=>({}),i={forEach:e},n=()=>null;n.stopBefore=e=>e,n.stopAfter=e=>e;const r=Object.defineProperties({dfWalk:e,newSibling:()=>r,addParent:e},Object.fromEntries(["metrics","timestamps","groups"].map((e=>[e,{get:t}]))));return co({now:()=>0,mkNode:()=>r,mkRenamer:()=>()=>i,mkTimer:()=>n,nodes:{get:e,set:e}})()})();let go=!0;function ho(e){return go&&e||fo}pt.getConfig(ao,(e=>{go=!!e[ao]}));const vo=(()=>{const e=co();return function(){return go?e():fo}})();function bo(e,t){return function(i,n){return function(r,...o){const a=this;return ho(t.apply(a,o)).measureHookTime(e+i,r,(function(e){return n.call(a,e,...o)}))}}}const yo=bo("requestBids.",(e=>e.metrics)),wo=bo("addBidResponse.",((e,t)=>t.metrics));function Io(e,t,i,{index:n=Xo.index,bs:r=En}={}){i=i||n.getBidRequest(t);const o=null==t?void 0:t.adapterCode,a=(null==t?void 0:t.bidderCode)||(null==i?void 0:i.bidder),s=r.get(null==t?void 0:t.adapterCode,"adjustAlternateBids"),d=r.getOwn(a,"bidCpmAdjustment")||r.get(s?o:a,"bidCpmAdjustment");if(d&&"function"==typeof d)try{return d(e,Object.assign({},t),i)}catch(l){ti("Error during bid adjustment",l)}return e}const{syncUsers:Ao}=Sr,To="started",xo="inProgress",ko="completed";Xr(Fe.BID_ADJUSTMENT,(function(e){!function(e){let t=Io(e.cpm,e);t>=0&&(e.cpm=t)}(e)}));const Co=4,_o={},Eo={},So=[],Bo=It();function Uo({adUnits:e,adUnitCodes:t,callback:i,cbTimeout:n,labels:r,auctionId:o,ortb2Fragments:a,metrics:s}){s=ho(s);const d=e,l=r,c=t,u=o||zt(),p=n,m=new Set,f=bt();let g,h,v,b,y=[],w=i,I=[],A=[],T=[],x=[],k=[];function C(){return{auctionId:u,timestamp:g,auctionEnd:h,auctionStatus:b,adUnits:d,adUnitCodes:c,labels:l,bidderRequests:I,noBids:T,bidsReceived:A,bidsRejected:y,winningBids:x,timeout:p,metrics:s,seatNonBids:k}}function _(t){if(t?no(Fe.AUCTION_TIMEOUT,C()):clearTimeout(v),void 0===h){let i=[];t&&(Kt(`Auction ${u} timedOut`),i=I.filter((e=>!m.has(e.bidderRequestId))).flatMap((e=>e.bids)),i.length&&no(Fe.BID_TIMEOUT,i)),b=ko,h=Date.now(),s.checkpoint("auctionEnd"),s.timeBetween("requestBids","auctionEnd","requestBids.total"),s.timeBetween("callBids","auctionEnd","requestBids.callBids"),f.resolve(),no(Fe.AUCTION_END,C()),No(d,(function(){try{if(null!=w){const e=A.filter((e=>c.includes(e.adUnitCode))).reduce(Yo,{});w.apply(Bo,[e,t,u]),w=null}}catch(n){ti("Error executing bidsBackHandler",null,n)}finally{i.length&&Ps.callTimedOutBidders(e,i,p);let t=pt.getConfig("userSync")||{};t.enableOverride||Ao(t.syncDelay)}}))}}function E(){pt.resetBidder(),Xt(`Bids Received for Auction with id: ${u}`,A),b=ko,_(!1)}function S(e){m.add(e)}function B(e){e.forEach((e=>{var t;t=e,I=I.concat(t)}));let t={},i={bidRequests:e,run:()=>{v=setTimeout((()=>_(!0)),p),b=xo,no(Fe.AUCTION_INIT,C());let i=function(e,t,{index:i=Xo.index}={}){let n=0,r=!1,o=new Set,a={};function s(){n--,r&&0===n&&e()}function d(e,t,i){return a[t.requestId]=!0,function(e,t,{index:i=Xo.index}={}){const n=i.getBidderRequest(e),r=i.getAdUnit(e),o=n&&n.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||Ni(),requestTimestamp:e.requestTimestamp||o,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:t}),null!=(null==r?void 0:r.ttlBuffer)&&(e.ttlBuffer=r.ttlBuffer);e.timeToRespond=e.responseTimestamp-e.requestTimestamp}(t,e),n++,i(s)}function l(e,n){d(e,n,(e=>{let r=function(e,{index:t=Xo.index}={}){var i;no(Fe.BID_ADJUSTMENT,e);const n=(null==(i=t.getBidRequest(e))?void 0:i.renderer)||t.getAdUnit(e).renderer,r=e.mediaType,o=t.getMediaTypes(e),a=o&&o[r];var s=a&&a.renderer,d=null;s&&s.url&&s.render&&(!0!==s.backupOnly||!e.renderer)?d=s:n&&n.url&&n.render&&(!0!==n.backupOnly||!e.renderer)&&(d=n);d&&(e.renderer=_n.install({url:d.url,config:d.options}),e.renderer.setRender(d.render));const l=Do(e.mediaType,o,pt.getConfig("mediaTypePriceGranularity")),c=function(e,t,i=1){let n=parseFloat(e);return isNaN(n)&&(n=""),{low:""===n?"":Ne(e,Be,i),med:""===n?"":Ne(e,Ue,i),high:""===n?"":Ne(e,Pe,i),auto:""===n?"":Ne(e,Ve,i),dense:""===n?"":Ne(e,Re,i),custom:""===n?"":Ne(e,t,i)}}(e.cpm,"object"==typeof l?l:pt.getConfig("customPriceBucket"),pt.getConfig("currency.granularityMultiplier"));return e.pbLg=c.low,e.pbMg=c.med,e.pbHg=c.high,e.pbAg=c.auto,e.pbDg=c.dense,e.pbCg=c.custom,e}(n);no(Fe.BID_ACCEPTED,r),r.mediaType===jr?function(e,t,i,{index:n=Xo.index}={}){let r=!0;const o=At(n.getMediaTypes({requestId:t.originalRequestId||t.requestId,adUnitId:t.adUnitId}),"video"),a=o&&At(o,"context"),s=o&&At(o,"useCacheKey");pt.getConfig("cache.url")&&(s||a!==Br)&&(!t.videoCacheKey||pt.getConfig("cache.ignoreBidderCacheKey")?(r=!1,Oo(e,t,i,o)):t.vastUrl||(ti("videoCacheKey specified but not required vastUrl for video bid"),r=!1));r&&(jo(e,t),i())}(t,r,e):(Ca(r)&&function(e,t){var i;const n=null==t?void 0:t.nativeOrtbRequest,r=null==(i=e.native)?void 0:i.ortb;if(n&&r){const t=function(e,t){const i={},n=(null==t?void 0:t.assets)||[];i.clickUrl=e.link.url,i.privacyLink=e.privacy;for(const o of(null==e?void 0:e.assets)||[]){const e=n.find((e=>o.id===e.id));o.title?i.title=o.title.text:o.img?i[e.img.type===tt.MAIN?"image":"icon"]={url:o.img.url,width:o.img.w,height:o.img.h}:o.data&&(i[Aa[Ta[e.data.type]]]=o.data.value)}i.impressionTrackers=[];let r=[];e.imptrackers&&i.impressionTrackers.push(...e.imptrackers);for(const o of(null==e?void 0:e.eventtrackers)||[])o.event===ka.impression&&o.method===xa.img&&i.impressionTrackers.push(o.url),o.event===ka.impression&&o.method===xa.js&&r.push(o.url);r=r.map((e=>`<script async src="${e}"><\/script>`)),(null==e?void 0:e.jstracker)&&r.push(e.jstracker);r.length&&(i.javascriptTrackers=r.join("\n"));return i}(r,n);Object.assign(e.native,t)}["rendererUrl","adTemplate"].forEach((i=>{var n;const r=null==(n=null==t?void 0:t.nativeParams)?void 0:n[i];r&&(e.native[i]=ja(r))}))}(r,i.getAdUnit(r)),jo(t,r),e())}))}function c(e,i,n){return d(e,i,(e=>{i.rejectionReason=n,ei(`Bid from ${i.bidder||"unknown bidder"} was rejected: ${n}`,i),no(Fe.BID_REJECTED,i),t.addBidRejected(i),e()}))}function u(){let i=this,s=t.getBidRequests();const d=pt.getConfig("auctionOptions");if(o.add(i),d&&!gi(d)){const e=d.secondaryBidders;e&&!s.every((t=>Ce(e,t.bidderCode)))&&(s=s.filter((t=>!Ce(e,t.bidderCode))))}r=s.every((e=>o.has(e))),i.bids.forEach((e=>{a[e.bidId]||(t.addNoBid(e),no(Fe.NO_BID,e))})),r&&0===n&&e()}return{addBidResponse:function(){function e(e,t){Po.call({dispatch:l},e,t,(()=>{let i=!1;return n=>{i||(c(e,t,n),i=!0)}})())}return e.reject=c,e}(),adapterDone:function(){Ro(vt.resolve()).finally((()=>u.call(this)))}}}(E,this);Ps.callBids(d,e,i.addBidResponse,i.adapterDone,{request(e,i){r(_o,i),r(t,e),Eo[e]||(Eo[e]={SRA:!0,origin:i}),t[e]>1&&(Eo[e].SRA=!1)},done(e){_o[e]--,So[0]&&n(So[0])&&So.shift()}},p,S,a)}};function n(e){let t=!0,i=pt.getConfig("maxRequestsPerOrigin")||Co;return e.bidRequests.some((e=>{let n=1,r=void 0!==e.src&&e.src===Qe.SRC?"s2s":e.bidderCode;return Eo[r]&&(!1===Eo[r].SRA&&(n=Math.min(e.bids.length,i)),_o[Eo[r].origin]+n>i&&(t=!1)),!t})),t&&e.run(),t}function r(e,t){void 0===e[t]?e[t]=1:e[t]++}n(i)||(ei("queueing auction due to limited endpoint capacity"),So.push(i))}return Xr(Fe.SEAT_NON_BID,(e=>{var t;e.auctionId===u&&(t=e.seatnonbid,k=k.concat(t))})),{addBidReceived:function(e){A=A.concat(e)},addBidRejected:function(e){y=y.concat(e)},addNoBid:function(e){T=T.concat(e)},callBids:function(){b=To,g=Date.now();let e=s.measureTime("requestBids.makeRequests",(()=>Ps.makeBidRequests(d,g,u,p,l,a,s)));Xt(`Bids Requested for Auction with id: ${u}`,e),s.checkpoint("callBids"),e.length<1?(ei("No valid bid requests returned for auction"),E()):Vo.call({dispatch:B,context:this},e)},addWinningBid:function(t){const i=e.find((e=>e.adUnitId===t.adUnitId));x=x.concat(t),function({source:e,burl:t}){e===Qe.SRC&&t&&Dt.triggerPixel(t)}(t),Ps.callBidWonBidder(t.adapterCode||t.bidder,t,e),i&&!i.deferBilling&&Ps.callBidBillableBidder(t)},setBidTargeting:function(e){Ps.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:()=>x,getAuctionStart:()=>g,getAuctionEnd:()=>h,getTimeout:()=>p,getAuctionId:()=>u,getAuctionStatus:()=>b,getAdUnits:()=>d,getAdUnitCodes:()=>c,getBidRequests:()=>I,getBidsReceived:()=>A,getNoBids:()=>T,getNonBids:()=>k,getFPD:()=>a,getMetrics:()=>s,end:f.promise}}const Po=$n("sync",(function(e,t,i){!function(e){const t=pt.getConfig("maxBid");return!t||!e.cpm||t>=Number(e.cpm)}(t)?i(Ke.PRICE_TOO_HIGH):this.dispatch.call(null,e,t)}),"addBidResponse"),Ro=$n("sync",(e=>e),"responsesReady"),Vo=$n("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),No=$n("async",(function(e,t){t&&t()}),"bidsBackCallback");function jo(e,t){!function(e){let t;const i=!0===En.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(i||e.dealId)&&(t=function(e,t,{index:i=Xo.index}={}){if(!t)return{};const n=i.getBidRequest(t);var r={};const o=Zo(t.mediaType,e);Wo(r,o,t,n),e&&En.getOwn(e,Oe.ADSERVER_TARGETING)&&(Wo(r,En.ownSettingsFor(e),t,n),t.sendStandardTargeting=En.get(e,"sendStandardTargeting"));t.native&&(r=Object.assign({},r,function(e,{index:t=Xo.index}={}){let i={};const n=t.getAdUnit(e),r=!1!==At(n,"nativeParams.sendTargetingKeys"),o=function(e){const t={};At(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((e=>{t[e]=`hb_native_${e}`}));return{...He,...t}}(n),a={...e.native,...e.native.ext};return delete a.ext,Object.keys(a).forEach((t=>{const a=o[t];let s=ja(e.native[t])||ja(At(e,`native.ext.${t}`));if("adTemplate"===t||!a||!s)return;let d=At(n,`nativeParams.${t}.sendId`);if("boolean"!=typeof d&&(d=At(n,`nativeParams.ext.${t}.sendId`)),d){s=`${a}:${e.adId}`}let l=At(n,`nativeParams.${t}.sendTargetingKeys`);"boolean"!=typeof l&&(l=At(n,`nativeParams.ext.${t}.sendTargetingKeys`));("boolean"==typeof l?l:r)&&(i[a]=s)})),i}(t)));return r}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},t)}(t),ho(t.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(t),no(Fe.BID_RESPONSE,t)}const Oo=$n("async",(function(e,t,i,n){In(e,t,i)}),"callPrebidCache");function Do(e,t,i){if(e&&i){if(e===jr){const e=At(t,`${jr}.context`,"instream");if(i[`${jr}-${e}`])return i[`${jr}-${e}`]}return i[e]}}const Fo=e=>e=>{const t=((e,{index:t=Xo.index}={})=>{const i=Do(e.mediaType,t.getMediaTypes(e),pt.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&i?"string"==typeof i?i:"custom":pt.getConfig("priceGranularity")})(e);return t===$e?e.pbAg:t===Ze?e.pbDg:t===Me?e.pbLg:t===ze?e.pbMg:t===Le?e.pbHg:t===We?e.pbCg:void 0},qo=()=>e=>e.creativeId?e.creativeId:"",Mo=()=>e=>e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:"",zo=()=>e=>e.meta&&(e.meta.networkId||e.meta.networkName)?At(e,"meta.networkName")||At(e,"meta.networkId"):"",Lo=()=>e=>e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:"";function $o(e,t){return{key:e,val:"function"==typeof t?function(e,i){return t(e,i)}:function(e){return function(e,t){return e[t]}(e,t)}}}function Zo(e,t){const i=Object.assign({},En.settingsFor(null));if(i[Oe.ADSERVER_TARGETING]||(i[Oe.ADSERVER_TARGETING]=[$o(Ye.BIDDER,"bidderCode"),$o(Ye.AD_ID,"adId"),$o(Ye.PRICE_BUCKET,Fo()),$o(Ye.SIZE,"size"),$o(Ye.DEAL,"dealId"),$o(Ye.SOURCE,"source"),$o(Ye.FORMAT,"mediaType"),$o(Ye.ADOMAIN,Mo()),$o(Ye.ACAT,Lo()),$o(Ye.DSP,zo()),$o(Ye.CRID,qo())]),"video"===e){const e=i[Oe.ADSERVER_TARGETING].slice();if(i[Oe.ADSERVER_TARGETING]=e,[Ye.UUID,Ye.CACHE_ID].forEach((t=>{void 0===_e(e,(e=>e.key===t))&&e.push($o(t,"videoCacheKey"))})),pt.getConfig("cache.url")&&(!t||!1!==En.get(t,"sendStandardTargeting"))){const t=Ji(pt.getConfig("cache.url"));void 0===_e(e,(e=>e.key===Ye.CACHE_HOST))&&e.push($o(Ye.CACHE_HOST,(function(e){return At(e,`adserverTargeting.${Ye.CACHE_HOST}`)?e.adserverTargeting[Ye.CACHE_HOST]:t.hostname})))}}return i}function Wo(e,t,i,n){var r=t[Oe.ADSERVER_TARGETING];return i.size=i.getSize(),(r||[]).forEach((function(r){var o=r.key,a=r.val;if(e[o]&&ei("The key: "+o+" is being overwritten"),li(a))try{a=a(i,n)}catch(s){ti("bidmanager","ERROR",s)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&o!==Ye.DEAL&&o!==Ye.ACAT&&o!==Ye.DSP&&o!==Ye.CRID||!hi(a)&&null!=a?e[o]=a:Xt("suppressing empty key '"+o+"' from adserver targeting")})),e}function Yo(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}function Go(e){Object.assign(this,{getAuction({auctionId:t}){if(null!=t)return e().find((e=>e.getAuctionId()===t))},getAdUnit({adUnitId:t}){if(null!=t)return e().flatMap((e=>e.getAdUnits())).find((e=>e.adUnitId===t))},getMediaTypes({adUnitId:e,requestId:t}){if(null!=t){const i=this.getBidRequest({requestId:t});if(null!=i&&(null==e||i.adUnitId===e))return i.mediaTypes}else if(null!=e){const t=this.getAdUnit({adUnitId:e});if(null!=t)return t.mediaTypes}},getBidderRequest({requestId:t,bidderRequestId:i}){if(null!=t||null!=i){let n=e().flatMap((e=>e.getBidRequests()));return null!=i&&(n=n.filter((e=>e.bidderRequestId===i))),null==t?n[0]:n.find((e=>e.bids&&null!=e.bids.find((e=>e.bidId===t))))}},getBidRequest({requestId:t}){if(null!=t)return e().flatMap((e=>e.getBidRequests())).flatMap((e=>e.bids)).find((e=>e&&e.bidId===t))}})}let Ho=1;const Qo=[];function Jo(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:Ho)}pt.getConfig("ttlBuffer",(e=>{if("number"==typeof e.ttlBuffer){const t=Ho;Ho=e.ttlBuffer,t!==Ho&&Qo.forEach((e=>e(Ho)))}else ti("Invalid value for ttlBuffer",e.ttlBuffer)}));const Ko="minBidCacheTTL";const Xo=function(){let e=null;const t=Lr({startTime:e=>e.end.then((()=>e.getAuctionEnd())),ttl:t=>null==e?null:t.end.then((()=>1e3*Math.max(e,...t.getBidsReceived().map(Jo))))});var i;i=()=>{null!=e&&t.refresh()},Qo.push(i),pt.getConfig(Ko,(i=>{const n=e;e=null==i?void 0:i[Ko],e="number"==typeof e?e:null,n!==e&&t.refresh()}));const n={onExpiry:t.onExpiry};function r(e){for(const i of t)if(i.getAuctionId()===e)return i}function o(){return t.toArray().flatMap((e=>e.getBidsReceived()))}return n.addWinningBid=function(e){const t=ho(e.metrics);t.checkpoint("bidWon"),t.timeBetween("auctionEnd","bidWon","render.pending"),t.timeBetween("requestBids","bidWon","render.e2e");const i=r(e.auctionId);i?(e.status=Je.RENDERED,i.addWinningBid(e)):ei("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:e=>e.getAuctionStatus()===ko},getAdUnitCodes:{post:ki}}).forEach((([e,{name:i=e,pre:r,post:o}])=>{const a=null==r?e=>e[i]():e=>r(e)?e[i]():[],s=null==o?e=>e:e=>e.filter(o);n[e]=()=>s(t.toArray().flatMap(a))})),n.getAllBidsForAdUnitCode=function(e){return o().filter((t=>t&&t.adUnitCode===e))},n.createAuction=function(e){const i=Uo(e);return function(e){t.add(e)}(i),i},n.findBidByAdId=function(e){return o().find((t=>t.adId===e))},n.getStandardBidderAdServerTargeting=function(){return Zo()[Oe.ADSERVER_TARGETING]},n.setStatusForBids=function(e,t){let i=n.findBidByAdId(e);if(i&&(i.status=t),i&&t===Je.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 Go((()=>t.toArray())),n}(),ea=$n("sync",(function(e){return'(()=>{"use strict";window.render=function({ad:d,adUrl:e,width:i,height:r},{mkFrame:n},o){if(!d&&!e)throw{reason:"noAd",message:"Missing ad markup or URL"};{const s=o.document,t={width:i,height:r};e&&!d?t.src=e:t.srcdoc=d,s.body.appendChild(n(s,t))}}})();'})),ta=function(){const e={};return function(t){const i=ea(t);return e.hasOwnProperty(i)||(e[i]=new vt((e=>{const t=ai();t.srcdoc=`<script>${i}<\/script>`,t.onload=()=>e(t.contentWindow.render),document.body.appendChild(t)}))),e[i]}}(),{AD_RENDER_FAILED:ia,AD_RENDER_SUCCEEDED:na,STALE_RENDER:ra,BID_WON:oa}=Fe,{EXCEPTION:aa}=qe,sa=$n("sync",(function(e,t=!0,i=vt.resolve()){return i.then((t=>t??Xo.findBidByAdId(e))).catch((()=>{}))})),da=$n("sync",(function(e){no(oa,e),Xo.addWinningBid(e)}));function la({reason:e,message:t,bid:i,id:n}){const r={reason:e,message:t};i&&(r.bid=i,r.adId=i.adId),n&&(r.adId=n),ti(`Error rendering ad (id: ${n}): ${t}`),no(ia,r)}function ca({doc:e,bid:t,id:i}){const n={doc:e};t&&(n.bid=t),i&&(n.adId=i),Ps.callAdRenderSucceededBidder(t.adapterCode||t.bidder,t),no(na,n)}function ua(e,t){switch(e.event){case Fe.AD_RENDER_FAILED:la({bid:t,id:t.adId,reason:e.info.reason,message:e.info.message});break;case Fe.AD_RENDER_SUCCEEDED:ca({doc:null,bid:t,id:t.adId});break;default:ti(`Received event request for unsupported event: '${e.event}' (adId: '${t.adId}')`)}}function pa(e,t,{resizeFn:i,fireTrackers:n=Ua}){if("resizeNativeHeight"===e.action)i(e.width,e.height);else n(e,t)}const ma={[nt.EVENT]:ua};ma[nt.NATIVE]=pa;const fa=$n("sync",(function(e,t){const{ad:i,adUrl:n,cpm:r,originalCpm:o,width:a,height:s}=e,d={AUCTION_PRICE:o||r,CLICKTHROUGH:(null==t?void 0:t.clickUrl)||""};return{ad:Vi(i,d),adUrl:Vi(n,d),width:a,height:s}})),ga=$n("sync",(function({renderFn:e,resizeFn:t,bidResponse:i,options:n}){if(i.mediaType===jr)return void la({reason:qe.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:"Cannot render video ad",bid:i,id:i.adId});const r=fa(i,n);e(Object.assign({adId:i.adId},r));const{width:o,height:a}=r;null!=(o??a)&&t(o,a)}));function ha({renderFn:e,resizeFn:t,adId:i,options:n,bidResponse:r,doc:o}){if(null!=r){if(r.status!==Je.RENDERED||(ei(`Ad id ${i} has been rendered before`),no(ra,r),!At(pt.getConfig("auctionOptions"),"suppressStaleRender"))){try{ga({renderFn:e,resizeFn:t,bidResponse:r,options:n,doc:o})}catch(a){la({reason:qe.EXCEPTION,message:a.message,id:i,bid:r})}da(r)}}else la({reason:qe.CANNOT_FIND_AD,message:`Cannot find ad '${i}'`,id:i})}function va(e,t,i){let n;function r(e,i){la(Object.assign({id:t,bid:n},{reason:e,message:i}))}function o(t,i){e.defaultView&&e.defaultView.frameElement&&(t&&(e.defaultView.frameElement.width=t),i&&(e.defaultView.frameElement.height=i))}const a=(s={resizeFn:o},function(e,t,i){ma.hasOwnProperty(e)&&ma[e](t,i,s)});var s;function d(t){t.ad?(e.write(t.ad),e.close(),ca({doc:e,bid:n,adId:n.adId})):ta(n).then((i=>i(t,{sendMessage:(e,t)=>a(e,t,n),mkFrame:oi},e.defaultView))).then((()=>ca({doc:e,bid:n,adId:n.adId})),(e=>{r((null==e?void 0:e.reason)||qe.EXCEPTION,null==e?void 0:e.message),(null==e?void 0:e.stack)&&ti(e)}));yi(document.createComment(`Creative ${n.creativeId} served by ${n.bidder} Prebid.js Header Bidding`),e,"html")}try{t&&e?e!==document||Ui()?sa(t).then((r=>{n=r,ha({renderFn:d,resizeFn:o,adId:t,options:{clickUrl:null==i?void 0:i.clickThrough},bidResponse:r,doc:e})})):r(qe.PREVENT_WRITING_ON_MAIN_DOCUMENT,"renderAd was prevented from writing to the main document."):r(qe.MISSING_DOC_OR_ADID,"missing "+(t?"doc":"adId"))}catch(l){r(aa,l.message)}}function ba(){if(!window.frames[rt])if(document.body){const e=ai();e.name=rt,document.body.appendChild(e)}else window.requestAnimationFrame(ba)}ga.before((function(e,t){const{bidResponse:i,doc:n}=t;var r;(r=i.renderer)&&(r.url||r.renderNow)?(!function(e,t,i){let n=null;e.config&&e.config.documentResolver&&(n=e.config.documentResolver(t,document,i)),n||(n=document),e.documentContext=n,e.render(t,e.documentContext)}(i.renderer,i,n),ca({doc:n,bid:i,id:i.adId}),e.bail()):e(t)}),100);const ya=[],wa=Object.keys(He).map((e=>He[e])),Ia={image:{ortb:{ver:"1.2",assets:[{required:1,id:1,img:{type:3,wmin:100,hmin:100}},{required:1,id:2,title:{len:140}},{required:1,id:3,data:{type:1}},{required:0,id:4,data:{type:2}},{required:0,id:5,img:{type:1,wmin:20,hmin:20}}]},image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}},Aa=za(Xe),Ta=za(et),xa={img:1,js:2,1:"img",2:"js"},ka={impression:1,"viewable-mrc50":2,"viewable-mrc100":3,"viewable-video50":4};function Ca(e){return e.native&&"object"==typeof e.native}function _a(e){if(e&&e.type&&function(e){if(!e||!Ce(Object.keys(Ia),e))return ti(`${e} nativeParam is not supported`),!1;return!0}(e.type)&&(e=Ia[e.type]),!e||!e.ortb||Sa(e.ortb))return e}function Ea(e){e.forEach((e=>{const t=e.nativeParams||At(e,"mediaTypes.native");t&&(e.nativeParams=_a(t)),e.nativeParams&&(e.nativeOrtbRequest=e.nativeParams.ortb||function(e){if(!e&&!mi(e))return void ti("Native assets object is empty or not an object: ",e);const t={ver:"1.2",assets:[]};for(let i in e){if(it.includes(i))continue;if(!He.hasOwnProperty(i)){ti(`Unrecognized native asset code: ${i}. Asset will be ignored.`);continue}if("privacyLink"===i){t.privacy=1;continue}const n=e[i];let r=0;n.required&&fi(n.required)&&(r=Number(n.required));const o={id:t.assets.length,required:r};if(i in Xe)o.data={type:et[Xe[i]]},n.len&&(o.data.len=n.len);else if("icon"===i||"image"===i){if(o.img={type:"icon"===i?tt.ICON:tt.MAIN},n.aspect_ratios)if(ui(n.aspect_ratios))if(n.aspect_ratios.length){const{min_width:e,min_height:t}=n.aspect_ratios[0];Zi(e)&&Zi(t)?(o.img.wmin=e,o.img.hmin=t):ti("image.aspect_ratios min_width or min_height are invalid: ",e,t);const i=n.aspect_ratios.filter((e=>e.ratio_width&&e.ratio_height)).map((e=>`${e.ratio_width}:${e.ratio_height}`));i.length>0&&(o.img.ext={aspectratios:i})}else ti("image.aspect_ratios was passed, but it's empty:",n.aspect_ratios);else ti("image.aspect_ratios was passed, but it's not a an array:",n.aspect_ratios);n.sizes&&(2===n.sizes.length&&Zi(n.sizes[0])&&Zi(n.sizes[1])?(o.img.w=n.sizes[0],o.img.h=n.sizes[1],delete o.img.hmin,delete o.img.wmin):ti("image.sizes was passed, but its value is not an array of integers:",n.sizes))}else"title"===i?o.title={len:n.len||140}:"ext"===i&&(o.ext=n,delete o.required);t.assets.push(o)}return t}(e.nativeParams))}))}function Sa(e){const t=e.assets;if(!Array.isArray(t)||0===t.length)return ti("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",t),!1;const i=t.map((e=>e.id));return t.length!==new Set(i).size||i.some((e=>e!==parseInt(e,10)))?(ti("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):e.hasOwnProperty("eventtrackers")&&!Array.isArray(e.eventtrackers)?(ti("ortb.eventtrackers is not an array. Eventtrackers: ",e.eventtrackers),!1):t.every((e=>function(e){if(!mi(e))return ti("asset must be an object. Provided asset: ",e),!1;if(e.img){if(!pi(e.img.w)&&!pi(e.img.wmin))return ti("for img asset there must be 'w' or 'wmin' property"),!1;if(!pi(e.img.h)&&!pi(e.img.hmin))return ti("for img asset there must be 'h' or 'hmin' property"),!1}else if(e.title){if(!pi(e.title.len))return ti("for title asset there must be 'len' property defined"),!1}else if(e.data){if(!pi(e.data.type))return ti("for data asset 'type' property must be a number"),!1}else if(e.video&&!(Array.isArray(e.video.mimes)&&Array.isArray(e.video.protocols)&&pi(e.video.minduration)&&pi(e.video.maxduration)))return ti("video asset is not properly configured"),!1;return!0}(e)))}function Ba(e,{index:t=Xo.index}={}){var i;const n=t.getAdUnit(e);if(!n)return!1;let r=n.nativeOrtbRequest;return function(e,t){if(!At(e,"link.url"))return ti("native response doesn't have 'link' property. Ortb response: ",e),!1;let i=t.assets.filter((e=>1===e.required)).map((e=>e.id)),n=e.assets.map((e=>e.id));const r=i.every((e=>Ce(n,e)));r||ti(`didn't receive a bid with all required assets. Required ids: ${i}, but received ids in response: ${n}`);return r}((null==(i=e.native)?void 0:i.ortb)||Ma(e.native,r),r)}function Ua(e,t){const i=t.native.ortb||qa(t.native);return"click"===e.action?function(e,t=null,{fetchURL:i=Ii}={}){var n,r;if(t){const n=(e.assets||[]).filter((e=>e.link)).reduce(((e,t)=>(e[t.id]=t.link,e)),{}),o=(null==(r=e.link)?void 0:r.clicktrackers)||[];let a=n[t],s=o;a&&(s=a.clicktrackers||[]),s.forEach((e=>i(e)))}else((null==(n=e.link)?void 0:n.clicktrackers)||[]).forEach((e=>i(e)))}(i,null==e?void 0:e.assetId):function(e,{runMarkup:t=e=>function(e){if(!e)return;const t=ai();var i;Dt.insertElement(t,document,"body"),(i=t.contentWindow.document).open(),i.write(e),i.close()}(e),fetchURL:i=Ii}={}){const n=(e.eventtrackers||[]).filter((e=>e.event===ka.impression));let{img:r,js:o}=n.reduce(((e,t)=>(xa.hasOwnProperty(t.method)&&e[xa[t.method]].push(t.url),e)),{img:[],js:[]});e.imptrackers&&(r=r.concat(e.imptrackers));r.forEach((e=>i(e))),o=o.map((e=>`<script async src="${e}"><\/script>`)),e.jstracker&&(o=o.concat([e.jstracker]));o.length&&t(o.join("\n"))}(i),e.action}function Pa(e,t,i=!1){let n=[];return Object.entries(e).filter((([e,n])=>n&&(!1===i&&"ext"===e||null==t||t.includes(e)))).forEach((([e,r])=>{!1===i&&"ext"===e?n.push(...Pa(r,t,!0)):(i||He.hasOwnProperty(e))&&n.push({key:e,value:ja(r)})})),n}function Ra(e,t,i){var n,r;const o={...Mi(e.native,["rendererUrl","adTemplate"]),assets:Pa(e.native,i),nativeKeys:He};return e.native.ortb?o.ortb=e.native.ortb:(null==(r=null==(n=t.mediaTypes)?void 0:n.native)?void 0:r.ortb)&&(o.ortb=Ma(e.native,t.nativeOrtbRequest)),o}function Va(e,t,i,{index:n=Xo.index}={}){const r={message:"assetResponse",adId:e.adId};let o=fa(t).native;return o?(r.native=Object.assign({},o),r.renderer=ea(t),null!=i&&(o.assets=o.assets.filter((({key:e})=>i.includes(e))))):o=Ra(t,n.getAdUnit(t),i),Object.assign(r,o)}const Na=Object.fromEntries(Object.entries(He).map((([e,t])=>[t,e])));function ja(e){return(null==e?void 0:e.url)||e}function Oa(e,t){for(;e&&t&&e!==t;)e>t?e-=t:t-=e;return e||t}function Da(e){if(!Sa(e))return;const t={};for(const i of e.assets){if(i.title){const e={required:!!i.required&&Boolean(i.required),len:i.title.len};t.title=e}else if(i.img){const e={required:!!i.required&&Boolean(i.required)};if(i.img.w&&i.img.h)e.sizes=[i.img.w,i.img.h];else if(i.img.wmin&&i.img.hmin){const t=Oa(i.img.wmin,i.img.hmin);e.aspect_ratios=[{min_width:i.img.wmin,min_height:i.img.hmin,ratio_width:i.img.wmin/t,ratio_height:i.img.hmin/t}]}i.img.type===tt.MAIN?t.image=e:t.icon=e}else if(i.data){let e=Object.keys(et).find((e=>et[e]===i.data.type)),n=Object.keys(Xe).find((t=>Xe[t]===e));t[n]={required:!!i.required&&Boolean(i.required)},i.data.len&&(t[n].len=i.data.len)}e.privacy&&(t.privacyLink={required:!1})}return t}function Fa(e){{if(!e||!ui(e))return e;if(!e.some((e=>{var t;return null==(t=((null==e?void 0:e.mediaTypes)||{})[Nr])?void 0:t.ortb})))return e;let t=Bi(e);for(const e of t)e.mediaTypes&&e.mediaTypes[Nr]&&e.mediaTypes[Nr].ortb&&(e.mediaTypes[Nr]=Object.assign(Yi(e.mediaTypes[Nr],it),Da(e.mediaTypes[Nr].ortb)),e.nativeParams=_a(e.mediaTypes[Nr]));return t}}function qa(e){const t={link:{},eventtrackers:[]};return Object.entries(e).forEach((([e,i])=>{switch(e){case"clickUrl":t.link.url=i;break;case"clickTrackers":t.link.clicktrackers=Array.isArray(i)?i:[i];break;case"impressionTrackers":(Array.isArray(i)?i:[i]).forEach((e=>{t.eventtrackers.push({event:ka.impression,method:xa.img,url:e})}));break;case"javascriptTrackers":t.jstracker=Array.isArray(i)?i.join(""):i;break;case"privacyLink":t.privacy=i}})),t}function Ma(e,t){const i={...qa(e),assets:[]};function n(e,n){let r=t.assets.find(e);null!=r&&(r=Bi(r),n(r),i.assets.push(r))}return Object.keys(e).filter((t=>!!e[t])).forEach((t=>{const i=ja(e[t]);switch(t){case"title":n((e=>null!=e.title),(e=>{e.title={text:i}}));break;case"image":case"icon":const e="image"===t?tt.MAIN:tt.ICON;n((t=>null!=t.img&&t.img.type===e),(e=>{e.img={url:i}}));break;default:t in Xe&&n((e=>null!=e.data&&e.data.type===et[Xe[t]]),(e=>{e.data={value:i}}))}})),i}function za(e){var t={};for(var i in e)t[e[i]]=i;return t}function La(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}function $a(e,{src:t="client",bidder:i="",bidId:n,transactionId:r,adUnitId:o,auctionId:a}={}){var s=t,d=e||0;Object.assign(this,{bidderCode:i,width:0,height:0,statusMessage:function(){switch(d){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:Mt(),requestId:n,transactionId:r,adUnitId:o,auctionId:a,mediaType:"banner",source:s}),this.getStatusCode=function(){return d},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 Za(e,t){return new $a(e,t)}const Wa=["cpm","ttl","creativeId","netRevenue","currency"],Ya=["auctionId","transactionId"];function Ga(e){const t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function i(e){const i=Ha(e);Ps.registerBidAdapter(i,e.code,t)}i(e),Array.isArray(e.aliases)&&e.aliases.forEach((t=>{let n,r,o=t;mi(t)&&(o=t.code,n=t.gvlid,r=t.skipPbsAliasing),Ps.aliasRegistry[o]=e.code,i(Object.assign({},e,{code:o,gvlid:n,skipPbsAliasing:r}))}))}function Ha(e){return Object.assign(new La(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:t,callBids:function(i,n,r,o,a,s){if(!Array.isArray(i.bids))return;const d=function(e){if(lr(yr,wr(Bn,e)))return{bidRequest:e=>e,bidderRequest:e=>e};function t(e,t,i){return Ya.includes(t)?null:Reflect.get(e,t,i)}function i(e,t){const i=new Proxy(e,t);return Object.entries(e).filter((([e,t])=>"function"==typeof t)).forEach((([t,n])=>i[t]=n.bind(e))),i}const n=rn((e=>i(e,{get:t})),(e=>e.bidId));return{bidRequest:n,bidderRequest:e=>i(e,{get:(i,r,o)=>"bids"===r?e.bids.map(n):t(i,r,o)})}}(i.bidderCode);function l(e,t){const i=ho(t.metrics);i.checkpoint("addBidResponse"),i.measureTime("addBidResponse.validate",(()=>function(e,t,{index:i=Xo.index}={}){function n(){let e=Object.keys(t);return Wa.every((i=>Ce(e,i)&&!Ce([void 0,null],t[i])))}function r(e){return`Invalid bid from ${t.bidderCode}. Ignoring bid: ${e}`}if(!e)return ei("No adUnitCode was supplied to addBidResponse."),!1;if(!t)return ei(`Some adapter tried to add an undefined bid for ${e}.`),!1;if(!n())return ti(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&&!Ba(t,{index:i}))return ti(r("Native bid missing some required properties.")),!1;if("video"===t.mediaType&&!function(e,{index:t=Xo.index}={}){const i=At(t.getMediaTypes(e),"video"),n=i&&At(i,"context"),r=i&&At(i,"useCacheKey"),o=t.getAdUnit(e);return Vr(e,o,i,n,r)}(t,{index:i}))return ti(r("Video bid does not have required vastUrl or renderer property")),!1;if("banner"===t.mediaType&&!function(e,t,{index:i=Xo.index}={}){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 n=i.getBidRequest(t),r=i.getMediaTypes(t),o=$t(n&&n.sizes||r&&r.banner&&r.banner.sizes);if(1===o.length){const[e,i]=o[0].split("x");return t.width=parseInt(e,10),t.height=parseInt(i,10),!0}return!1}(0,t,{index:i}))return ti(r("Banner bids require a width and height")),!1;return!0}(e,t)))?n(e,t):n.reject(e,t,Ke.INVALID)}const c=[];function u(){r(),pt.runWithBidder(e.code,(()=>{no(Fe.BIDDER_DONE,i),t(c,i.gdprConsent,i.uspConsent,i.gppConsent)}))}const p=es(i).measureTime("validate",(()=>i.bids.filter((t=>function(t){if(!e.isBidRequestValid(t))return ei(`Invalid bid sent to bidder ${e.code}: ${JSON.stringify(t)}`),!1;return!0}(d.bidRequest(t))))));if(0===p.length)return void u();const m={};p.forEach((e=>{m[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),Ja(e,p.map(d.bidRequest),d.bidderRequest(i),o,s,{onRequest:e=>no(Fe.BEFORE_BIDDER_HTTP,i,e),onResponse:t=>{a(e.code),c.push(t)},onPaapi:e=>{const t=m[e.bidId];t?Xa(t,e):ei("Received fledge auction configuration for an unknown bidId",e)},onError:(t,n)=>{n.timedOut||a(e.code),Ps.callBidderError(e.code,n,i),no(Fe.BIDDER_ERROR,{error:n,bidderRequest:i}),ti(`Server call for ${e.code} failed: ${t} ${n.status}. Continuing without bids.`)},onBid:t=>{const i=m[t.requestId];if(i){if(t.adapterCode=i.bidder,function(e,t){let i=En.get(t,"allowAlternateBidderCodes")||!1,n=En.get(t,"allowedAlternateBidderCodes");if(e&&t&&t!==e&&(n=ui(n)?n.map((e=>e.trim().toLowerCase())).filter((e=>!!e)).filter(ki):n,!i||ui(n)&&"*"!==n[0]&&!n.includes(e)))return!0;return!1}(t.bidderCode,i.bidder))return ei(`${t.bidderCode} is not a registered partner or known bidder of ${i.bidder}, hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.`),void n.reject(i.adUnitCode,t,Ke.BIDDER_DISALLOWED);t.originalCpm=t.cpm,t.originalCurrency=t.currency,t.meta=t.meta||Object.assign({},t[i.bidder]);const e=Object.assign(Za(De.GOOD,i),t,Yi(i,Ya));l(i.adUnitCode,e)}else ei(`Bidder ${e.code} made bid for unknown request ID: ${t.requestId}. Ignoring.`),n.reject(null,t,Ke.INVALID_REQUEST_ID)},onCompletion:u})}});function t(t,i,n,r){Ka(e,t,i,n,r)}}const Qa=["bids","paapi"],Ja=$n("sync",(function(e,t,i,n,r,{onRequest:o,onResponse:a,onPaapi:s,onError:d,onBid:l,onCompletion:c}){const u=es(i);c=u.startTiming("total").stopBefore(c);let p=u.measureTime("buildRequests",(()=>e.buildRequests(t,i)));if(!p||0===p.length)return void c();Array.isArray(p)||(p=[p]);const m=Fi(c,p.length);p.forEach((t=>{const i=u.fork();function c(e){null!=e&&(e.metrics=i.fork().renameWith()),l(e)}const p=r((function(n,r){g();try{n=JSON.parse(n)}catch(l){}n={body:n,headers:{get:r.getResponseHeader.bind(r)}},a(n);try{n=i.measureTime("interpretResponse",(()=>e.interpretResponse(n,t)))}catch(u){return ti(`Bidder ${e.code} failed to interpret the server's response. Continuing without bids`,null,u),void m()}let o,d;n&&!Object.keys(n).some((e=>!Qa.includes(e)))?(o=n.bids,d=n.paapi):o=n,ui(d)&&d.forEach(s),o&&(ui(o)?o.forEach(c):c(o)),m()})),f=r((function(e,t){g(),d(e,t),m()}));o(t);const g=i.startTiming("net");function h(i){const n=t.options;return Object.assign(i,n,{browsingTopics:!((null==n?void 0:n.hasOwnProperty("browsingTopics"))&&!n.browsingTopics)&&((En.get(e.code,"topicsHeader")??!0)&&lr(vr,wr(Bn,e.code)))})}switch(t.method){case"GET":n(`${t.url}${function(e){if(e)return`?${"object"==typeof e?function(e){let t="";for(var i in e)e.hasOwnProperty(i)&&(t+=i+"="+encodeURIComponent(e[i])+"&");return t=t.replace(/&$/,""),t}(e):e}`;return""}(t.data)}`,{success:p,error:f},void 0,h({method:"GET",withCredentials:!0}));break;case"POST":n(t.url,{success:p,error:f},"string"==typeof t.data?t.data:JSON.stringify(t.data),h({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:ei(`Skipping invalid request from ${e.code}. Request type ${t.type} must be GET or POST`),m()}}))}),"processBidderRequests"),Ka=$n("async",(function(e,t,i,n,r){const o=pt.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(o||!Ps.aliasRegistry[e.code])){let o=pt.getConfig("userSync.filterSettings"),a=e.getUserSyncs({iframeEnabled:!(!o||!o.iframe&&!o.all),pixelEnabled:!(!o||!o.image&&!o.all)},t,i,n,r);a&&(Array.isArray(a)||(a=[a]),a.forEach((t=>{Sr.registerSync(t.type,e.code,t.url)})),Sr.bidderDone(e.code))}}),"registerSyncs"),Xa=$n("sync",((e,t)=>{}),"addPaapiConfig");function es(e){return ho(e.metrics).renameWith((t=>[`adapter.client.${t}`,`adapters.client.${e.bidderCode}.${t}`]))}let ts={};function is(e,t,i){let n=function(e,t){let i=ts[e]=ts[e]||{bidders:{}};return t?i.bidders[t]=i.bidders[t]||{}:i}(e,i);return n[t]=(n[t]||0)+1,n[t]}function ns(e,t){return At(ts,`${e}.bidders.${t}.requestsCounter`)||0}function rs(e,t){return At(ts,`${e}.bidders.${t}.winsCounter`)||0}function os(e,t=window){if(!e)return e;if(/\w+:\/\//.exec(e))return e;let i=t.location.protocol;try{i=t.top.location.protocol}catch(n){}return/^\/\//.exec(e)?i+e:`${i}//${e}`}function as(e,{noLeadingWww:t=!1,noPort:i=!1}={}){try{e=new URL(os(e))}catch(n){return}return e=i?e.hostname:e.host,t&&e.startsWith("www.")&&(e=e.substring(4)),e}function ss(e){try{const t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(t){}return null}const ds=function(e,t=window){if(t.top!==t)return e;let i,n,r;return function(){const o=ss(t.document),a=t.location.href;return i===o&&a===n||(i=o,n=a,r=e()),r}}((ls=window,function(){const e=[],t=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(t){}}(ls),i=pt.getConfig("maxNestedIframes");let n,r,o,a,s=!1,d=0,l=!1,c=!1,u=!1;do{const i=n,a=c;let p,m=!1,f=null;c=!1,n=n?n.parent:ls;try{p=n.location.href||null}catch(g){m=!0}if(m)if(a){const e=i.context;try{f=e.sourceUrl,r=f,u=!0,l=!0,n===ls.top&&(s=!0),e.canonicalUrl&&(o=e.canonicalUrl)}catch(g){}}else{ei("Trying to access cross domain iframe. Continuing without referrer and location");try{const e=i.document.referrer;e&&(f=e,n===ls.top&&(s=!0))}catch(g){}!f&&t&&t[d-1]&&(f=t[d-1],n===ls.top&&(u=!0)),f&&!l&&(r=f)}else{if(p&&(f=p,r=f,l=!1,n===ls.top)){s=!0;const e=ss(n.document);e&&(o=e)}n.context&&n.context.sourceUrl&&(c=!0)}e.push(f),d++}while(n!==ls.top&&d<i);e.reverse();try{a=ls.top.document.referrer}catch(g){}const p=s||u?r:null,m=pt.getConfig("pageUrl")||o||null;let f=pt.getConfig("pageUrl")||p||os(m,ls);return p&&p.indexOf("?")>-1&&-1===f.indexOf("?")&&(f=`${f}${p.substring(p.indexOf("?"))}`),{reachedTop:s,isAmp:l,numIframes:d-1,stack:e,topmostLocation:r||null,location:p,canonicalUrl:m,page:f,domain:as(f)||null,ref:a||null,legacy:{reachedTop:s,isAmp:l,numIframes:d-1,stack:e,referer:r||null,canonicalUrl:m}}}));var ls;const cs=Object.freeze({});class us{constructor(){S(this,p),S(this,a),S(this,s),S(this,d),S(this,l),S(this,c,!0),S(this,u),C(this,"generatedTime"),C(this,"hashFields"),this.reset()}reset(){B(this,d,bt()),B(this,a,!1),B(this,s,null),B(this,l,!1),this.generatedTime=null}enable(){B(this,a,!0)}get enabled(){return E(this,a)}get ready(){return E(this,l)}get promise(){return E(this,l)?vt.resolve(E(this,s)):(E(this,a)||U(this,p,m).call(this,null),E(this,d).promise)}setConsentData(e,t=Ni()){this.generatedTime=t,B(this,c,!0),U(this,p,m).call(this,e)}getConsentData(){return E(this,s)}get hash(){return E(this,c)&&(B(this,u,tn(JSON.stringify(E(this,s)&&this.hashFields?this.hashFields.map((e=>E(this,s)[e])):E(this,s)))),B(this,c,!1)),E(this,u)}}a=new WeakMap,s=new WeakMap,d=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,p=new WeakSet,m=function(e){B(this,l,!0),B(this,s,e),E(this,d).resolve(e)};const ps=new class extends us{constructor(){super(...arguments),C(this,"hashFields",["gdprApplies","consentString"])}getConsentMeta(){const e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:ci(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}},ms=new class extends us{getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},fs=new class extends us{constructor(){super(...arguments),C(this,"hashFields",["applicableSections","gppString"])}getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},gs=(()=>{function e(){return!!pt.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset(){},get promise(){return vt.resolve(e())},get hash(){return e()?"1":"0"}}})(),hs=function(){const e={},t={},i={};return{register(n,r,o){o&&((e[r]=e[r]||{})[n]=o,t.hasOwnProperty(r)?t[r]!==o&&(t[r]=i):t[r]=o)},get(n){const r={modules:e[n]||{}};return t.hasOwnProperty(n)&&t[n]!==i&&(r.gvlid=t[n]),r}}}(),vs={gdpr:ps,usp:ms,gpp:fs,coppa:gs};const bs=function(e=vs){return e=Object.entries(e),Object.assign({get promise(){return vt.all(e.map((([e,t])=>t.promise.then((t=>[e,t]))))).then((e=>Object.fromEntries(e)))},get hash(){return tn(e.map((([e,t])=>t.hash)).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((t=>{return[t,(i=t,function(){return Object.fromEntries(e.map((([e,t])=>[e,t[i]()])))})];var i}))))}(),ys=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((e=>`user.${e}`)).concat("device.ext.cdep"),ws=["user.eids","user.ext.eids"],Is=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"];function As(e){return Object.assign({get(){},run(e,t,i,n,r){const o=i&&i[n];if(ks(o)&&r()){const e=this.get(o);void 0===e?delete i[n]:i[n]=e}}},e)}function Ts(e){return e.forEach((e=>{e.paths=e.paths.map((e=>{const t=e.split("."),i=t.pop();return[t.length>0?t.join("."):null,i]}))})),function(t,i,...n){const r=[],o=xs(t,...n);return e.forEach((e=>{if(!1!==t[e.name])for(const[n,a]of e.paths){const s=null==n?i:At(i,n);if(r.push(e.run(i,n,s,a,o.bind(null,e))),!1===t[e.name])return}})),r.filter((e=>null!=e))}}function xs(e,...t){return function(i){return e.hasOwnProperty(i.name)||(e[i.name]=!!i.applies(...t)),e[i.name]}}function ks(e){return null!=e&&("object"!=typeof e||Object.keys(e).length>0)}function Cs(e,t=lr){return function(i){return!t(e,i)}}function _s(e=lr){return[{name:vr,paths:ys,applies:Cs(vr,e)},{name:hr,paths:ws,applies:Cs(hr,e)},{name:br,paths:Is,applies:Cs(br,e),get:e=>Math.round(100*(e+Number.EPSILON))/100},{name:yr,paths:["source.tid"],applies:Cs(yr,e)}].map(As)}const Es=function(e=lr){const t=Ts(_s(e)),i=Ts(function(e=lr){return[{name:hr,paths:["userId","userIdAsEids"],applies:Cs(hr,e)},{name:yr,paths:["ortb2Imp.ext.tid"],applies:Cs(yr,e)}].map(As)}(e));return function(e){const n={};return{ortb2:i=>(t(n,i,e),i),bidRequest:t=>(i(n,t,e),t)}}}();dr(yr,"enableTIDs config",(()=>{if(!pt.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}));const Ss="pbsBidAdapter",Bs={CLIENT:"client",SERVER:"server"},Us={isAllowed:lr,redact:Es};let Ps={},Rs=Ps.bidderRegistry={},Vs=Ps.aliasRegistry={},Ns=[];pt.getConfig("s2sConfig",(e=>{e&&e.s2sConfig&&(Ns=ui(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var js={};const Os=ar((e=>Ps.resolveAlias(e)));const Ds=$n("sync",(function({bidderCode:e,auctionId:t,bidderRequestId:i,adUnits:n,src:r,metrics:o}){return n.reduce(((n,a)=>{const s=a.bids.filter((t=>t.bidder===e));return null==e&&0===s.length&&null!=a.s2sBid&&s.push({bidder:null}),n.push(s.reduce(((n,s)=>{const d=null==(s=Object.assign({},s,{ortb2Imp:en({},a.ortb2Imp,s.ortb2Imp)},Mi(a,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?a.mediaTypes:s.mediaTypes;var l;return!function(e){const t=["banner","native","video"],i=["instream","outstream","adpod"];return!!Object.keys(e).every((e=>Ce(t,e)))&&(!e.video||!e.video.context||Ce(i,e.video.context))}(d)?ti(`mediaTypes is not correctly configured for adunit ${a.code}`):s=Object.assign({},s,{mediaTypes:d}),"client"===r&&function(e,t){is(e,"requestsCounter",t)}(a.code,e),n.push(Object.assign({},s,{adUnitCode:a.code,transactionId:a.transactionId,adUnitId:a.adUnitId,sizes:At(d,"banner.sizes")||At(d,"video.playerSize")||[],bidId:s.bid_id||Mt(),bidderRequestId:i,auctionId:t,src:r,metrics:o,bidRequestsCount:(l=a.code,At(ts,`${l}.requestsCounter`)||0),bidderRequestsCount:ns(a.code,s.bidder),bidderWinsCount:rs(a.code,s.bidder)})),n}),[])),n}),[]).reduce(Ci,[]).filter((e=>""!==e))}),"getBids");const Fs=$n("sync",(function(e,t,{getS2SBidders:i=Ms}={}){if(null==t)return e;{const n=i(t);return e.filter((e=>n.has(e.bidder)))}}),"filterBidsForAdUnit");const qs=$n("sync",((e,t)=>e),"setupAdUnitMediaTypes");function Ms(e){ui(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 zs=$n("sync",(function(e,t,{getS2SBidders:i=Ms}={}){const n=i(t);return _i(e).reduce(((e,t)=>(e[n.has(t)?Bs.SERVER:Bs.CLIENT].push(t),e)),{[Bs.CLIENT]:[],[Bs.SERVER]:[]})}),"partitionBidders");function Ls(e,t){const i=Rs[e],n=(null==i?void 0:i.getSpec)&&i.getSpec();if(n&&n[t]&&"function"==typeof n[t])return[n,n[t]]}function $s(e,t,i,n,...r){try{Xt(`Invoking ${e}.${t}`),pt.runWithBidder(e,n.bind(i,...r))}catch(o){ei(`Error calling ${t} of ${e}`)}}function Zs(e,t,i){if((null==i?void 0:i.src)!==Qe.SRC){const n=Ls(e,t);null!=n&&$s(e,t,...n,i)}}Ps.makeBidRequests=$n("sync",(function(e,t,i,n,r,o={},a){a=ho(a),no(Fe.BEFORE_REQUEST_BIDS,e),Ea(e),e.forEach((e=>{mi(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((e=>!e.bidder||Us.isAllowed(fr,Os(Bn,e.bidder)))),is(e.code,"requestsCounter")})),e=qs(e,r);let{[Bs.CLIENT]:s,[Bs.SERVER]:d}=zs(e,Ns);pt.getConfig("bidderSequence")===st&&(s=Si(s));const l=ds();let c=[];const u=o.global||{},p=o.bidder||{};function m(e,t){const n=Us.redact(null!=t?t:Os(Bn,e.bidderCode)),r=Object.freeze(n.ortb2(en({source:{tid:i}},u,p[e.bidderCode])));return e.ortb2=r,e.bids=e.bids.map((e=>(e.ortb2=r,n.bidRequest(e)))),e}Ns.forEach((n=>{const r=function(e){return Os(Sn,Ss,{[ir]:e.configName})}(n);if(n&&n.enabled&&Us.isAllowed(fr,r)){let{adUnits:o,hasModuleBids:s}=function(e,t){let i=Bi(e),n=!1;return i.forEach((e=>{const i=e.bids.filter((e=>{var i;return e.module===Ss&&(null==(i=e.params)?void 0:i.configName)===t.configName}));1===i.length?(e.s2sBid=i[0],n=!0,e.ortb2Imp=en({},e.s2sBid.ortb2Imp,e.ortb2Imp)):i.length>1&&ei('Multiple "module" bids for the same s2s configuration; all will be ignored',i),e.bids=Fs(e.bids,t).map((e=>(e.bid_id=Mt(),e)))})),i=i.filter((e=>0!==e.bids.length||null!=e.s2sBid)),{adUnits:i,hasModuleBids:n}}(e,n),u=zt();(0===d.length&&s?[null]:d).forEach((e=>{const s=Mt(),d=a.fork(),p=m({bidderCode:e,auctionId:i,bidderRequestId:s,uniquePbsTid:u,bids:Ds({bidderCode:e,auctionId:i,bidderRequestId:s,adUnits:Bi(o),src:Qe.SRC,metrics:d}),auctionStart:t,timeout:n.timeout,src:Qe.SRC,refererInfo:l,metrics:d},r);0!==p.bids.length&&c.push(p)})),o.forEach((e=>{let t=e.bids.filter((e=>_e(c,(t=>_e(t.bids,(t=>t.bidId===e.bid_id))))));e.bids=t})),c.forEach((e=>{void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=o.filter((e=>e.bids.length>0||null!=e.s2sBid)))}))}}));let f=function(e){let t=Bi(e);return t.forEach((e=>{e.bids=Fs(e.bids,null)})),t=t.filter((e=>0!==e.bids.length)),t}(e);return s.forEach((e=>{const o=Mt(),s=a.fork(),d=m({bidderCode:e,auctionId:i,bidderRequestId:o,bids:Ds({bidderCode:e,auctionId:i,bidderRequestId:o,adUnits:Bi(f),labels:r,src:"client",metrics:s}),auctionStart:t,timeout:n,refererInfo:l,metrics:s}),u=Rs[e];u||ti(`Trying to make a request for bidder that does not exist: ${e}`),u&&d.bids&&0!==d.bids.length&&c.push(d)})),c.forEach((e=>{ps.getConsentData()&&(e.gdprConsent=ps.getConsentData()),ms.getConsentData()&&(e.uspConsent=ms.getConsentData()),fs.getConsentData()&&(e.gppConsent=fs.getConsentData())})),c}),"makeBidRequests"),Ps.callBids=(e,t,i,n,r,o,a,s={})=>{if(!t.length)return void ei("callBids executed with no bidRequests. Were they filtered by labels or sizing?");let[d,l]=t.reduce(((e,t)=>(e[Number(void 0!==t.src&&t.src===Qe.SRC)].push(t),e)),[[],[]]);var c=[];l.forEach((e=>{for(var t=-1,i=0;i<c.length;++i)if(e.uniquePbsTid===c[i].uniquePbsTid){t=i;break}t<=-1&&c.push(e)}));let u=0;Ns.forEach((e=>{if(e&&c[u]&&Ms(e).has(c[u].bidderCode)){const t=pn(o,r?{request:r.request.bind(null,"s2s"),done:r.done}:void 0);let d=e.bidders;const p=Rs[e.adapter];let m=c[u].uniquePbsTid,f=c[u].adUnitsS2SCopy,g=l.filter((e=>e.uniquePbsTid===m));if(p){let r={ad_units:f,s2sConfig:e,ortb2Fragments:s,requestBidsTimeout:o};if(r.ad_units.length){let e=g.map((e=>(e.start=Ni(),function(t){t||a(e.bidderRequestId),n.apply(e,arguments)})));const o=_i(r.ad_units).filter((e=>d.includes(e)));Kt(`CALLING S2S HEADER BIDDERS ==== ${o.length>0?o.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only'}`),g.forEach((e=>{no(Fe.BID_REQUESTED,{...e,tid:e.auctionId})})),p.callBids(r,l,i,(t=>e.forEach((e=>e(t)))),t)}}else ti("missing "+e.adapter);u++}})),d.forEach((e=>{e.start=Ni();const t=Rs[e.bidderCode];pt.runWithBidder(e.bidderCode,(()=>{Kt("CALLING BIDDER"),no(Fe.BID_REQUESTED,e)}));let s=pn(o,r?{request:r.request.bind(null,e.bidderCode),done:r.done}:void 0);const d=n.bind(e);try{pt.runWithBidder(e.bidderCode,t.callBids.bind(t,e,i,d,s,(()=>a(e.bidderRequestId)),pt.callbackWithBidder(e.bidderCode)))}catch(l){ti(`${e.bidderCode} Bid Adapter emitted an uncaught error when parsing their bidRequest`,{e:l,bidRequest:e}),d()}}))},Ps.videoAdapters=[],Ps.registerBidAdapter=function(e,t,{supportedMediaTypes:i=[]}={}){var n;e&&t?"function"==typeof e.callBids?(Rs[t]=e,hs.register(Bn,t,null==(n=e.getSpec)?void 0:n.call(e).gvlid),Ce(i,"video")&&Ps.videoAdapters.push(t),Ce(i,"native")&&ya.push(t)):ti("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):ti("bidAdapter or bidderCode not specified")},Ps.aliasBidAdapter=function(e,t,i){if(void 0===Rs[t]){let r=Rs[e];if(void 0===r){const i=[];Ns.forEach((n=>{if(n.bidders&&n.bidders.length){const r=n&&n.bidders;n&&Ce(r,t)?Vs[t]=e:i.push(e)}})),i.forEach((e=>{ti('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{let n,o=function(e){let t=[];return Ce(Ps.videoAdapters,e)&&t.push("video"),Ce(ya,e)&&t.push("native"),t}(e);if(r.constructor.prototype!=Object.prototype)n=new r.constructor,n.setBidderCode(t);else{let o=r.getSpec(),a=i&&i.gvlid;null!=o.gvlid&&null==a&&ei(`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 s=i&&i.skipPbsAliasing;n=Ha(Object.assign({},o,{code:t,gvlid:a,skipPbsAliasing:s})),Vs[t]=e}Ps.registerBidAdapter(n,t,{supportedMediaTypes:o})}catch(n){ti(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else Kt('alias name "'+t+'" has been already specified.')},Ps.resolveAlias=function(e){let t,i=e;for(;Vs[i]&&(!t||!t.has(i));)i=Vs[i],(t=t||new Set).add(i);return i},Ps.registerAnalyticsAdapter=function({adapter:e,code:t,gvlid:i}){e&&t?"function"==typeof e.enableAnalytics?(e.code=t,js[t]={adapter:e,gvlid:i},hs.register(Rn,t,i)):ti(`Prebid Error: Analytics adaptor error for analytics "${t}"\n analytics adapter must implement an enableAnalytics() function`):ti("Prebid Error: analyticsAdapter or analyticsCode not specified")},Ps.enableAnalytics=function(e){ui(e)||(e=[e]),e.forEach((e=>{const t=js[e.provider];t&&t.adapter?Us.isAllowed(gr,Os(Rn,e.provider,{[or]:e}))&&t.adapter.enableAnalytics(e):ti(`Prebid Error: no analytics adapter found in registry for '${e.provider}'.`)}))},Ps.getBidAdapter=function(e){return Rs[e]},Ps.getAnalyticsAdapter=function(e){return js[e]},Ps.callTimedOutBidders=function(e,t,i){t=qi(t=t.map((t=>(t.params=zi(e,t.adUnitCode,t.bidder),t.timeout=i,t))),"bidder"),Object.keys(t).forEach((e=>{Zs(e,"onTimeout",t[e])}))},Ps.callBidWonBidder=function(e,t,i){var n,r;t.params=zi(i,t.adUnitCode,t.bidder),n=t.adUnitCode,r=t.bidder,is(n,"winsCounter",r),Zs(e,"onBidWon",t)},Ps.callBidBillableBidder=function(e){Zs(e.bidder,"onBidBillable",e)},Ps.callSetTargetingBidder=function(e,t){Zs(e,"onSetTargeting",t)},Ps.callBidViewableBidder=function(e,t){Zs(e,"onBidViewable",t)},Ps.callBidderError=function(e,t,i){Zs(e,"onBidderError",{error:t,bidderRequest:i})},Ps.callAdRenderSucceededBidder=function(e,t){Zs(e,"onAdRenderSucceeded",t)},Ps.callDataDeletionRequest=$n("sync",(function(...e){const t="onDataDeletionRequest";Object.keys(Rs).filter((e=>!Vs.hasOwnProperty(e))).forEach((i=>{const n=Ls(i,t);if(null!=n){const r=Xo.getBidsRequested().filter((e=>function(e){const t=new Set;for(;Vs.hasOwnProperty(e)&&!t.has(e);)t.add(e),e=Vs[e];return e}(e.bidderCode)===i));$s(i,t,...n,r,...e)}})),Object.entries(js).forEach((([i,n])=>{var r;const o=null==(r=null==n?void 0:n.adapter)?void 0:r[t];if("function"==typeof o)try{o.apply(n.adapter,e)}catch(a){ti(`error calling ${t} of ${i}`,a)}}))}));const Ws=["request","imp","bidResponse","response"],[Ys,Gs,Hs,Qs]=Ws,[Js,Ks]=["default","pbs"],Xs=new Set(Ws);const{registerOrtbProcessor:ed,getProcessors:td}=function(){const e={};return{registerOrtbProcessor({type:t,name:i,fn:n,priority:r=0,dialects:o=[Js]}){if(!Xs.has(t))throw new Error(`ORTB processor type must be one of: ${Ws.join(", ")}`);o.forEach((o=>{e.hasOwnProperty(o)||(e[o]={}),e[o].hasOwnProperty(t)||(e[o][t]={}),e[o][t][i]={priority:r,fn:n}}))},getProcessors:t=>e[t]||{}}}(),id=Cr("fpdEnrichment"),nd=rn((function(e=window.location.host){if(!id.cookiesAreEnabled())return e;const t=e.split(".");if(2===t.length)return e;let i,n,r=-2;const o=`_rdc${Date.now()}`,a="writeable";do{i=t.slice(r).join(".");let e=new Date(Ni()+1e4).toUTCString();id.setCookie(o,a,e,"Lax",i,void 0);id.getCookie(o,void 0)===a?(n=!1,id.setCookie(o,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,i,void 0)):(r+=-1,n=Math.abs(r)<=t.length)}while(n);return i})),rd=["architecture","bitness","model","platformVersion","fullVersionList"],od=["brands","mobile","platform"],ad=function(e=(e=>null==(e=window.navigator)?void 0:e.userAgentData)()){const t=e&&od.some((t=>void 0!==e[t]))?Object.freeze(dd(1,e)):null;return function(){return t}}(),sd=function(e=(e=>null==(e=window.navigator)?void 0:e.userAgentData)()){const t={},i=new WeakMap;return function(n=rd){if(!i.has(n)){const e=Array.from(n);e.sort(),i.set(n,e.join("|"))}const r=i.get(n);if(!t.hasOwnProperty(r))try{t[r]=e.getHighEntropyValues(n).then((e=>gi(e)?null:Object.freeze(dd(2,e)))).catch((()=>null))}catch(o){t[r]=vt.resolve(null)}return t[r]}}();function dd(e,t){function i(e,t){const i={brand:e};return ci(t)&&!hi(t)&&(i.version=t.split(".")),i}const n={source:e};return t.platform&&(n.platform=i(t.platform,t.platformVersion)),(t.fullVersionList||t.brands)&&(n.browsers=(t.fullVersionList||t.brands).map((({brand:e,version:t})=>i(e,t)))),void 0!==t.mobile&&(n.mobile=t.mobile?1:0),["model","bitness","architecture"].forEach((e=>{const i=t[e];ci(i)&&(n[e]=i)})),n}const ld=["dooh","app","site"];function cd(e){return function(t){return ld.reduce(((i,n)=>(ud(t,n)&&(null!=i?(ei(`${e} specifies both '${i}' and '${n}'; dropping the latter.`),delete t[n]):i=n),i)),null),t}}function ud(e,t){return null!=e[t]&&Object.keys(e[t]).length>0}const pd={getRefererInfo:ds,findRootDomain:nd,getWindowTop:Gt,getWindowSelf:Ht,getHighEntropySUA:sd,getLowEntropySUA:ad},md=cd("FPD"),fd=$n("sync",(e=>{const t=[e,hd().catch((()=>null)),vt.resolve("cookieDeprecationLabel"in navigator&&lr(cr,wr(Sn,"cdep"))&&navigator.cookieDeprecationLabel.getValue()).catch((()=>null))];return vt.all(t).then((([e,t,i])=>{const n=pd.getRefererInfo();if(Object.entries(bd).forEach((([t,i])=>{const r=i(e,n);r&&Object.keys(r).length>0&&(e[t]=en({},r,e[t]))})),t&&Tt(e,"device.sua",Object.assign({},t,e.device.sua)),i){const t={cdep:i};Tt(e,"device.ext",Object.assign({},t,e.device.ext))}e=md(e);for(let r of ld)if(ud(e,r)){e[r]=en({},yd(e,n),e[r]);break}return e}))}));function gd(e){try{return e(pd.getWindowTop())}catch(t){return e(pd.getWindowSelf())}}function hd(){const e=pt.getConfig("firstPartyData.uaHints");return Array.isArray(e)&&0!==e.length?pd.getHighEntropySUA(e):vt.resolve(pd.getLowEntropySUA())}function vd(e){return Mi(e,Object.keys(e))}const bd={site(e,t){if(!ld.filter((e=>"site"!==e)).some(ud.bind(null,e)))return vd({page:t.page,ref:t.ref})},device:()=>gd((e=>{var t;const i=e.screen.width,n=e.screen.height,r=e.innerWidth||e.document.documentElement.clientWidth||e.document.body.clientWidth,o=e.innerHeight||e.document.documentElement.clientHeight||e.document.body.clientHeight,a={w:i,h:n,dnt:Li()?1:0,ua:e.navigator.userAgent,language:e.navigator.language.split("-").shift(),ext:{vpw:r,vph:o}};return(null==(t=e.navigator)?void 0:t.webdriver)&&Tt(a,"ext.webdriver",!0),a})),regs(){const e={};gd((e=>e.navigator.globalPrivacyControl))&&Tt(e,"ext.gpc",1);const t=pt.getConfig("coppa");return"boolean"==typeof t&&(e.coppa=t?1:0),e}};function yd(e,t){var i,n,r;const o=as(t.page,{noLeadingWww:!0}),a=null==(r=null==(n=null==(i=gd((e=>e.document.querySelector("meta[name='keywords']"))))?void 0:i.content)?void 0:n.replace)?void 0:r.call(n,/\s/g,"");return vd({domain:o,keywords:a,publisher:vd({domain:pd.findRootDomain(o)})})}const wd=0,Id=1,Ad=2;const Td=2;let xd,kd,Cd,_d,Ed,Sd,Bd=!1,Ud=!1;const Pd={iab:function({onSuccess:e,onError:t,onEvent:i}){const n=function({apiName:e,apiVersion:t,apiArgs:i=["command","callback","parameter","version"],callbackArgs:n=["returnValue","success"],mode:r=wd},o=window){const a={},s=`${e}Call`,d=`${e}Return`;function l(e){var t;const i="string"==typeof e.data&&e.data.includes(d)?JSON.parse(e.data):e.data;if(null==(t=null==i?void 0:i[d])?void 0:t.callId){const e=i[d];a.hasOwnProperty(e.callId)&&a[e.callId](...n.map((t=>e[t])))}}const[c,u]=function(){let t,i=o,n=!1;for(;null!=i;){try{if("function"==typeof i[e]){t=i,n=!0;break}}catch(r){}try{if(i.frames[`${e}Locator`]){t=i;break}}catch(r){}if(i===o.top)break;i=i.parent}return[t,n]}();if(!c)return;function p(e){return e=Object.assign({version:t},e),i.map((t=>[t,e[t]]))}function m(e,t,i,n){const o="function"==typeof e;return function(a,s){n&&n(),r!==Id&&(null==s||s?t:i)(o?void 0:a),o&&e.apply(this,arguments)}}let f;return u?f=function(t={}){return new vt(((i,n)=>{const o=c[e](...p({...t,callback:t.callback||r===Ad?m(t.callback,i,n):void 0}).map((([e,t])=>t)));(r===Id||null==t.callback&&r===wd)&&i(o)}))}:(o.addEventListener("message",l,!1),f=function(e,t=!1){return new vt(((i,n)=>{const o=Math.random().toString(),d={[s]:{...Object.fromEntries(p(e).filter((([e])=>"callback"!==e))),callId:o}};a[o]=m(null==e?void 0:e.callback,i,n,(t||null==(null==e?void 0:e.callback))&&(()=>{delete a[o]})),c.postMessage(d,"*"),r===Id&&i()}))}),Object.assign(f,{isDirect:u,close(){!u&&o.removeEventListener("message",l)}})}({apiName:"__tcfapi",apiVersion:Td,apiArgs:["command","version","callback","parameter"]});if(!n)return t("TCF2 CMP not found.");n.isDirect?Xt("Detected CMP API is directly accessible, calling it now..."):Xt("Detected CMP is outside the current iframe where Prebid.js is located, calling it now...");n({command:"addEventListener",callback:function(n,r){Xt("Received a response from CMP",n),r?(i(n),!1!==n.gdprApplies&&"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||Od(n,{onSuccess:e,onError:t})):t("CMP unable to register callback function. Please check CMP setup.")}})},static:function({onSuccess:e,onError:t}){Od(_d,{onSuccess:e,onError:t})}};function Rd(e){let t,i,n=!1,r=null,o=!1;function a(e){null!=r&&clearTimeout(r),n||null==e||(0===e?t():r=setTimeout(t,e))}function s(t,i,r,...o){a(null),n=!0,ps.setConsentData(t),"function"==typeof e&&e(i,r,...o)}if(!Ce(Object.keys(Pd),xd))return void s(null,!1,`CMP framework (${xd}) is not a supported framework. Aborting consentManagement module and resuming auction.`);const d={onSuccess:e=>s(e,!1),onError:function(e,...t){s(null,!0,e,...t)},onEvent:function(e){i=e,o||(o=!0,null!=Ed&&a(Ed))}};t=()=>{const e=e=>{s(e,!1,(o?"Timeout waiting for user action on CMP":"CMP did not load")+", continuing auction...")};Od(i,{onSuccess:e,onError:()=>e(Dd(void 0))})},Pd[xd](d),null!=Ed&&o||a(kd)}const Vd=(Nd=()=>Sd,jd=Rd,yo("gdpr",(function(e,t){var i;i=function(i,n,...r){if(n){let e=ei;i&&(e=ti,n=`${n} Canceling auction as per consentManagement config.`),e(n,...r)}i?(e.stopTiming(),"function"==typeof t.bidsBackHandler?t.bidsBackHandler():ti("Error executing bidsBackHandler")):e.call(this,t)},Nd()?(Xt("User consent information already known. Pulling internally stored information..."),i(!1)):jd(i)})));var Nd,jd;function Od(e,{onSuccess:t,onError:i}){!function(){const t=e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:Cd,i=e&&e.tcString;return!("boolean"==typeof t&&(!0!==t||i&&ci(i)))}()?t(Dd(e)):i("CMP returned unexpected value during lookup process.",e)}function Dd(e){return Sd={consentString:e?e.tcString:void 0,vendorData:e||void 0,gdprApplies:e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:Cd},e&&e.addtlConsent&&ci(e.addtlConsent)&&(Sd.addtlConsent=e.addtlConsent),Sd.apiVersion=Td,Sd}pt.getConfig("consentManagement",(e=>function(e){(e=e&&(e.gdpr||e.usp||e.gpp?e.gdpr:e))&&"object"==typeof e?(ci(e.cmpApi)?xd=e.cmpApi:(xd="iab",Xt("consentManagement config did not specify cmp. Using system default setting (iab).")),pi(e.timeout)?kd=e.timeout:(kd=1e4,Xt("consentManagement config did not specify timeout. Using system default setting (10000).")),Ed=pi(e.actionTimeout)?e.actionTimeout:null,Cd=!0===e.defaultGdprScope,Bd=!!e.dsaPlatform,Xt("consentManagement module has been activated..."),"static"===xd&&(mi(e.consentData)?(_d=e.consentData,null!=(null==_d?void 0:_d.getTCData)&&(_d=_d.getTCData),kd=0):ti("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),Ud||It().requestBids.before(Vd,50),Ud=!0,ps.enable(),Rd()):ei("consentManagement (gdpr) config not defined, exiting consent manager")}(e.consentManagement))),fd.before((function(e,t){return e(t.then((e=>{const t=ps.getConsentData();return t&&("boolean"==typeof t.gdprApplies&&Tt(e,"regs.ext.gdpr",t.gdprApplies?1:0),Tt(e,"user.ext.consent",t.consentString)),Bd&&Tt(e,"regs.ext.dsa.dsarequired",3),e})))})),ed({type:Ys,name:"gdprAddtlConsent",fn:function(e,t){var i;const n=null==(i=t.gdprConsent)?void 0:i.addtlConsent;n&&"string"==typeof n&&Tt(e,"user.ext.ConsentedProvidersSettings.consented_providers",n)}});const Fd={purpose:{},feature:{}},qd={purpose:!1,feature:"specialFeatureOptins"},Md={storage:{type:"purpose",default:{purpose:"storage",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]},id:1},basicAds:{type:"purpose",id:2,default:{purpose:"basicAds",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}},personalizedAds:{type:"purpose",id:4},measurement:{type:"purpose",id:7},transmitPreciseGeo:{type:"feature",id:1}},zd=new Set,Ld=new Set,$d=new Set,Zd=new Set,Wd=new Set,Yd=new Set;let Gd=!1,Hd=!1;const Qd=[Bn,Un,Rn,Pn],Jd="TCF2",Kd=[],Xd=[2],el=[2,7,9,10];function tl(e,t,i,n){var r,o;const a=At(e,`vendorData.${t}`);return!!(null==(r=null==a?void 0:a.consents)?void 0:r[i])||n&&!!(null==(o=null==a?void 0:a.legitimateInterests)?void 0:o[i])}function il(e,t,i,n){let r;if(!1!==qd[t])r=!!At(e,`vendorData.${qd[t]}.${i}`);else{const[t,o]=n===cs?["publisher",el]:["purpose",Xd];r=tl(e,t,i,o.includes(i))}return{purpose:r,vendor:tl(e,"vendor",n,Xd.includes(i))}}function nl(e,t,i,n){const r=Md[e.purpose];if((e.vendorExceptions||[]).includes(i))return!0;const o=e.enforceVendor&&!(n===cs||(e.softVendorExceptions||[]).includes(i)),{purpose:a,vendor:s}=il(t,r.type,r.id,n);return(!e.enforcePurpose||a)&&(!o||s)}function rl(e,t,i=null,n=()=>null){return function(r){const o=ps.getConsentData(),a=r[Xn];if(function(e,t,i){return null==e&&ps.enabled?(ei(`Attempting operation that requires purpose ${t} consent while consent data is not available${i?` (module: ${i})`:""}. Assuming no consent was given.`),!0):e&&e.gdprApplies}(o,e,a)){const e=function(e,t,i){if(t){const n=pt.getConfig("gvlMapping");if(n&&n[t])return n[t];if(e===Sn)return cs;{let{gvlid:n,modules:r}=hs.get(t);if(null==n&&Object.keys(r).length>0)for(const i of Qd)if(r.hasOwnProperty(i)){n=r[i],i!==e&&ei(`Multiple GVL IDs found for module '${t}'; using the ${i} module's ID (${n}) instead of the ${e}'s ID (${r[e]})`);break}return null==n&&i&&(n=i()),n||null}}return null}(r[Kn],a,n(r));let s=!!t(o,a,e);if(!s)return i&&i.add(a),{allow:s}}}}function ol(e,t=null,i=()=>null){return rl(e,((t,i,n)=>!!nl(Fd.purpose[e],t,i,n)),t,i)}function al(e){return function(t){if(t[Kn]!==Sn)return e(t)}}const sl=(e=>function(t){if(t[Kn]!==Sn||Hd)return e(t)})(ol(1,zd)),dl=ol(1,zd),ll=ol(1,zd),cl=al(ol(2,Ld)),ul=ol(7,$d,(e=>function(e,t){var i;const n=Ps.getAnalyticsAdapter(e);return(i=>{if("function"!=typeof i)return i;try{return i.call(n.adapter,t)}catch(r){ti(`Error invoking ${e} adapter.gvlid()`,r)}})(null==(i=null==n?void 0:n.adapter)?void 0:i.gvlid)}(e[Xn],e[or]))),pl=ol(4,Zd),ml=al((()=>{const e=rl("2-10",(function(e,t,i){var n,r,o,a;for(let s=2;s<=10;s++){if(null==(r=null==(n=Fd.purpose[s])?void 0:n.vendorExceptions)?void 0:r.includes(t))return!0;const{purpose:d,vendor:l}=il(e,"purpose",s,i);if(d&&(l||(null==(a=null==(o=Fd.purpose[s])?void 0:o.softVendorExceptions)?void 0:a.includes(t))))return!0}return!1}),Wd),t=ol(4,Wd);return function(){var i;return((null==(i=Fd.purpose[4])?void 0:i.eidsRequireP4Consent)?t:e).apply(this,arguments)}})()),fl=rl("Special Feature 1",((e,t,i)=>nl(Fd.feature[1],e,t,i)),Yd);function gl(e){let t;return Ei()&&(t=_e(window.googletag.pubads().getSlots(),function(e){return t=>$i(t,e)}(e))),t}function hl(e){const t=gl(e);return t?{gptSlot:t.getAdUnitPath(),divId:t.getSlotElementId()}:{}}Xr(Fe.AUCTION_END,(function(){const e=function(e){return Array.from(e.keys()).filter((e=>null!=e))},t={storageBlocked:e(zd),biddersBlocked:e(Ld),analyticsBlocked:e($d),ufpdBlocked:e(Zd),eidsBlocked:e(Wd),geoBlocked:e(Yd)};no(Fe.TCF2_ENFORCEMENT,t),[zd,Ld,$d,Zd,Wd,Yd].forEach((e=>e.clear()))})),pt.getConfig("consentManagement",(e=>function(e){let t=At(e,"gdpr.rules");t||ei("TCF2: enforcing P1 and P2 by default"),t=Object.fromEntries((t||[]).map((e=>[e.purpose,e]))),Hd=!!At(e,"strictStorageEnforcement"),Object.entries(Md).forEach((([e,i])=>{Fd[i.type][i.id]=t[e]??i.default})),Gd||(null!=Fd.purpose[1]&&(Gd=!0,Kd.push(dr(cr,Jd,sl)),Kd.push(dr(ur,Jd,dl)),Kd.push(dr(mr,Jd,ll))),null!=Fd.purpose[2]&&Kd.push(dr(fr,Jd,cl)),null!=Fd.purpose[4]&&Kd.push(dr(vr,Jd,pl),dr(pr,Jd,pl)),null!=Fd.purpose[7]&&Kd.push(dr(gr,Jd,ul)),null!=Fd.feature[1]&&Kd.push(dr(br,Jd,fl)),Kd.push(dr(hr,Jd,ml)))}(e.consentManagement)));const vl=["IAB_AUDIENCE_1_1","IAB_CONTENT_2_2"];function bl(e,t,i){return t.flatMap((t=>At(e,t)||[])).filter((e=>{var t;return(null==(t=e.ext)?void 0:t.segtax)===i})).flatMap((e=>{var t;return null==(t=e.segment)?void 0:t.map((e=>e.id))})).filter((e=>e)).filter(ki)}function yl(e,t){return e===t?0:e<t?-1:1}function wl(e=e=>e){return(t,i)=>yl(e(t),e(i))}function Il(e=yl){return(t,i)=>-e(t,i)||0}function Al(...e){return function(t,i){for(const n of e){const e=n(t,i);if(0!==e)return e}return 0}}function Tl(e=yl){return function(e=yl){return(t,i)=>e(i,t)<0?i:t}(Il(e))}const xl=wl((e=>e.cpm)),kl=wl((e=>e.responseTimestamp)),Cl=Tl(Al(xl,Il(wl((e=>e.timeToRespond))))),_l=Tl(Al(xl,Il(kl)));function El(e,t,i,n=!0){if(t===i)return e;let r=e;try{r=It().convertCurrency(e,t,i)}catch(o){if(!n)throw o}return r}const Sl={NOT_FOUND:"not_found",RANDOM:"random"},Bl="Price Floors",Ul=pn(1e4),Pl=Symbol();let Rl=[Pl,"gptSlot","adUnitCode","size","domain","mediaType"],Vl=!1,Nl=!1,jl={},Ol=[],Dl={};const Fl=(()=>{let e;return function(){return null==e&&(e=Ji(ds().topmostLocation,{noDecodeWholeURL:!0}).hostname),e}})();function ql(e,t,{index:i=Xo.index}={}){return(null==e?void 0:e.adUnitCode)||i.getAdUnit(t).code}let Ml={[Pl]:()=>"*",size:(e,t)=>function(e){if(Yt(e))return Zt(e)}(t.size)||"*",mediaType:(e,t)=>t.mediaType||"banner",gptSlot:(e,t)=>function(e,{index:t=Xo.index}={}){const i=t.getAdUnit({adUnitId:e});return"gam"===At(i,"ortb2Imp.ext.data.adserver.name")&&i.ortb2Imp.ext.data.adserver.adslot}((e||t).adUnitId)||hl(ql(e,t)).gptSlot,domain:Fl,adUnitCode:(e,t)=>ql(e,t)};function zl(e,t,i={}){var n;let r=function(e,t,i){return e.length?e.reduce(((e,n)=>{let r=Ml[n](t,i)||"*";return e.push("*"===r?["*"]:[r.toLowerCase(),"*"]),e}),[]):[]}(At(e,"schema.fields")||[],t,i);if(!r.length)return{matchingFloor:void 0};let o=r.map((e=>e[0])).join("-"),a=At(e,`matchingInputs.${o}`);if(a)return{...a};let s=(d=r,l=At(e,"schema.delimiter")||"|",d.reduce(((e,t)=>{let i=[];return e.map((e=>{t.map((t=>{i.push(e+l+t)}))})),i})).sort(((e,t)=>e.split("*").length-t.split("*").length)));var d,l;let c=_e(s,(t=>e.values.hasOwnProperty(t))),u={floorMin:e.floorMin||0,floorRuleValue:e.values[c],matchingData:s[0],matchingRule:c===(null==(n=e.meta)?void 0:n.defaultRule)?void 0:c};const p=At(t,"ortb2Imp.ext.prebid.floors.floorMin");return"number"==typeof p&&(u.floorMin=p),u.matchingFloor=Math.max(u.floorMin,u.floorRuleValue),Tt(e,`matchingInputs.${o}`,{...u}),u}function Ll(e,t,i){return parseFloat(Io(e,{...t,cpm:e},i))}const $l={banner:e=>At(e,"mediaTypes.banner.sizes")||[],video:e=>At(e,"mediaTypes.video.playerSize")||[],native:e=>At(e,"mediaTypes.native.image.sizes")?[At(e,"mediaTypes.native.image.sizes")]:[]};function Zl(e={currency:"USD",mediaType:"*",size:"*"}){let t=this,i=Dl[t.auctionId];if(!i||i.skipped)return{};e=function(e,t){let i=Object.keys(e.mediaTypes||{});return"*"===t.mediaType&&1===i.length&&(t.mediaType=i[0]),"*"===t.size&&-1!==i.indexOf(t.mediaType)&&$l[t.mediaType]&&1===$l[t.mediaType](e).length&&(t.size=$l[t.mediaType](e)[0]),t}(t,e);let n=zl(i.data,{...t},{mediaType:e.mediaType,size:e.size}),r=e.currency||i.data.currency;if(n.matchingFloor&&r!==i.data.currency)try{n.matchingFloor=It().convertCurrency(n.matchingFloor,i.data.currency,r)}catch(s){ei(`${Bl}: Unable to get currency conversion for getFloor for bidder ${t.bidder}. You must have currency module enabled with defaultRates in your currency config`),r=i.data.currency}if(i.enforcement.bidAdjustment&&n.matchingFloor){const e=En.get(t.bidder,"inverseBidAdjustment");if(e)n.matchingFloor=e(n.matchingFloor,t);else{let e=Ll(n.matchingFloor,null,t);n.matchingFloor=e?function(e,t){const i=Math.pow(10,10);return e*i/(t*i)*(e*i)/i}(n.matchingFloor,e):n.matchingFloor}}return n.matchingFloor?{floor:(o=n.matchingFloor,a=4,Math.ceil((parseFloat(o)*Math.pow(10,a)).toFixed(1))/Math.pow(10,a)),currency:r}:{};var o,a}function Wl(e,t){let i=Bi(e);return i.schema.delimiter=e.schema.delimiter||"|",i.values=function(e,t){let i=e.schema.fields,n=e.schema.delimiter,r=t&&-1===i.indexOf("adUnitCode")&&i.unshift("adUnitCode");return Object.keys(e.values).reduce(((i,o)=>(i[(r?`${t}${n}${o}`:o).toLowerCase()]=e.values[o],i)),{})}(i,t),i.currency=i.currency||"USD",i}function Yl(e,t){let i=Bi(jl);if(2===At(i,"data.floorsSchemaVersion")){let{modelGroups:e,...t}=i.data;i.data=Object.assign(t,function(e,t){let i=Math.floor(Math.random()*t+1);for(let n=0;n<e.length;n++)if(i-=e[n].modelWeight,i<=0)return e[n]}(e,t.modelWeightSum))}let n=0===Object.keys(At(i,"data.values")||{}).length;if(i.data=n?function(e){const t=e.find((e=>{var t;return null!=(null==(t=e.floors)?void 0:t.schema)}));return e.reduce(((e,i)=>{var n,r;if(null!=(null==(n=i.floors)?void 0:n.schema)&&!Xi(i.floors.schema,null==(r=null==t?void 0:t.floors)?void 0:r.schema))return ti(`${Bl}: adUnit '${i.code}' declares a different schema from one previously declared by adUnit '${t.code}'. Floor config for '${i.code}' will be ignored.`),e;const o=Object.assign({},null==t?void 0:t.floors,{values:void 0},i.floors);if(Jl(o))if(e.values){let t=Wl(o,i.code).values;Object.assign(e.values,t)}else(e=Wl(o,i.code)).location="adUnit";else null!=i.floors&&ei(`adUnit '${i.code}' provides an invalid \`floor\` definition, it will be ignored for floor calculations`,i);return e}),{})}(e):Wl(i.data),0===Object.keys(At(i,"data.values")||{}).length)i.skipped=!0,i.skippedReason=Sl.NOT_FOUND;else{const e=si("pbjs_skipRate")||(At(i,"data.skipRate")??i.skipRate),t=100*Math.random()<parseFloat(e);i.skipped=t,t&&(i.skippedReason=Sl.RANDOM)}return i.hasOwnProperty("floorMin")&&(i.data.floorMin=i.floorMin),function(e,t,i){const n=function(e){var t,i;const{data:n,enforcement:r}=e;return(null==(t=null==n?void 0:n.noFloorSignalBidders)?void 0:t.length)>0?n.noFloorSignalBidders:(null==(i=null==r?void 0:r.noFloorSignalBidders)?void 0:i.length)>0?r.noFloorSignalBidders:[]}(t);e.forEach((e=>{e.bids.forEach((e=>{const r=n.some((t=>t===e.bidder));t.skipped||r?(r&&Xt(`noFloorSignal to ${e.bidder}`),delete e.getFloor):e.getFloor=Zl,e.auctionId=i,e.floorData={noFloorSignaled:r,skipped:t.skipped,skipRate:At(t,"data.skipRate")??t.skipRate,skippedReason:t.skippedReason,floorMin:t.floorMin,modelVersion:At(t,"data.modelVersion"),modelWeight:At(t,"data.modelWeight"),modelTimestamp:At(t,"data.modelTimestamp"),location:At(t,"data.location","noData"),floorProvider:t.floorProvider,fetchStatus:jl.fetchStatus}}))}))}(e,i,t),i}function Gl(e){e.hasExited||(Ol=Ol.filter((t=>t.timer!==e.timer)),e.reqBidsConfigObj.auctionId=e.reqBidsConfigObj.auctionId||zt(),Dl[e.reqBidsConfigObj.auctionId]=Yl(e.reqBidsConfigObj.adUnits||It().adUnits,e.reqBidsConfigObj.auctionId),e.nextFn.apply(e.context,[e.reqBidsConfigObj]),e.hasExited=!0)}function Hl(e){return e=function(e){var t,i;if(pi(e.default)){let n="*";const r=((null==(t=e.schema)?void 0:t.fields)||[]).length;r?n=Array(r).fill("*").join((null==(i=e.schema)?void 0:i.delimiter)||"|"):Tt(e,"schema.fields",[Pl]),e.values=e.values||{},null==e.values[n]&&(e.values[n]=e.default,e.meta={defaultRule:n})}return e}(e),!!function(e){if(Array.isArray(e)&&e.length>0){if(e.every((e=>Rl.includes(e))))return!0;ti(`${Bl}: Fields received do not match allowed fields`)}return!1}(At(e,"schema.fields"))&&(t=e,i=e.schema.fields.length,n=e.schema.delimiter||"|","object"==typeof t.values&&(t.values=Object.keys(t.values).reduce(((e,r)=>(function(e,t,i,n){return"string"==typeof e&&e.split(n).length===i&&"number"==typeof t}(r,t.values[r],i,n)&&(e[r]=t.values[r]),e)),{}),Object.keys(t.values).length>0));var t,i,n}const Ql={1:e=>Hl(e),2:e=>!(!Array.isArray(e.modelGroups)||0===e.modelGroups.length)&&(e.modelWeightSum=0,e.modelGroups.every((t=>!("number"!=typeof t.modelWeight||!Hl(t))&&(e.modelWeightSum+=t.modelWeight,!0))))};function Jl(e){return"object"==typeof e&&(e.floorsSchemaVersion=e.floorsSchemaVersion||1,"function"!=typeof Ql[e.floorsSchemaVersion]?(ti(`${Bl}: Unknown floorsSchemaVersion: `,e.floorsSchemaVersion),!1):Ql[e.floorsSchemaVersion](e))}function Kl(e,t){if(e&&"object"==typeof e&&Jl(e))return Xt(`${Bl}: A ${t} set the auction floor data set to `,e),{...e,location:t};ti(`${Bl}: The floors data did not contain correct values`,e)}const Xl=yo("priceFloors",(function(e,t){const i={reqBidsConfigObj:t,context:this,nextFn:e,haveExited:!1,timer:null};jl.auctionDelay>0&&Vl?(i.timer=setTimeout((()=>{ei(`${Bl}: Fetch attempt did not return in time for auction`),jl.fetchStatus="timeout",Gl(i)}),jl.auctionDelay),Ol.push(i)):Gl(i)}));function ec(){Ol.forEach((e=>{clearTimeout(e.timer),Gl(e)})),Ol=[]}function tc(e){let t;Vl=!1,jl.fetchStatus="success";try{t=JSON.parse(e)}catch(n){t=e}const i=Kl(t,"fetch");i&&(jl.data=i,jl.skipRate=pi(i.skipRate)?i.skipRate:jl.skipRate,jl.floorProvider=i.floorProvider||jl.floorProvider),ec()}function ic(e){Vl=!1,jl.fetchStatus="error",ti(`${Bl}: Fetch errored with: `,e),ec()}function nc(e){var t;jl=Yi(e,["floorMin","enabled",e=>!1!==e,"auctionDelay",e=>e||0,"floorProvider",t=>At(e,"data.floorProvider",t),"endpoint",e=>e||{},"skipRate",()=>isNaN(At(e,"data.skipRate"))?e.skipRate||0:e.data.skipRate,"enforcement",e=>Yi(e||{},["enforceJS",e=>!1!==e,"enforcePBS",e=>!0===e,"floorDeals",e=>!0===e,"bidAdjustment",e=>!1!==e,"noFloorSignalBidders",e=>e||[]]),"additionalSchemaFields",e=>{return"object"==typeof e&&Object.keys(e).length>0?(t=e,void Object.keys(t).forEach((e=>{-1===Rl.indexOf(e)&&"function"==typeof t[e]&&(Rl.push(e),Ml[e]=t[e])}))):void 0;var t},"data",e=>e&&Kl(e,"setConfig")||void 0]),jl.enabled?((t=jl.endpoint).url&&!Vl?"GET"!==(t.method||"GET")?ti(`${Bl}: 'GET' is the only request method supported at this time!`):(Ul(t.url,{success:tc,error:ic},null,{method:"GET"}),Vl=!0):Vl&&ei(`${Bl}: A fetch is already occuring. Skipping.`),Nl||(Xr(Fe.AUCTION_END,(e=>{setTimeout((()=>delete Dl[e.auctionId]),3e3)})),It().requestBids.before(Xl,50),Yn("addBidResponse").before(rc,ri()?4:50),Nl=!0)):(Xt(`${Bl}: Turning off module`),jl={},Dl={},Yn("addBidResponse").getHooks({hook:rc}).remove(),It().requestBids.getHooks({hook:Xl}).remove(),Nl=!1)}const rc=wo("priceFloors",(function(e,t,i,n){var r;let o=Dl[i.auctionId];if(!o||!i||o.skipped)return e.call(this,t,i,n);const a=Xo.index.getBidRequest(i);let s,d=zl(o.data,a,{...i,size:[i.width,i.height]});if(!d.matchingFloor)return 0!==d.matchingFloor&&ei(`${Bl}: unable to determine a matching price floor for bidResponse`,i),e.call(this,t,i,n);let l=o.data.currency.toUpperCase(),c=i.currency||"USD";if(l===c.toUpperCase())s=i.cpm;else if(i.originalCurrency&&l===i.originalCurrency.toUpperCase())s=i.originalCpm;else try{s=It().convertCurrency(i.cpm,c.toUpperCase(),l)}catch(u){return ti(`${Bl}: Unable do get currency conversion for bidResponse to Floor Currency. Do you have Currency module enabled? ${i}`),e.call(this,t,i,n)}return s=Ll(s,i,a),function(e,t,i,n){i.floorData={floorValue:t.matchingFloor,floorRule:t.matchingRule,floorRuleValue:t.floorRuleValue,floorCurrency:e.data.currency,cpmAfterAdjustments:n,enforcements:{...e.enforcement},matchedFields:{}},e.data.schema.fields.forEach(((n,r)=>{let o=t.matchingData.split(e.data.schema.delimiter)[r];i.floorData.matchedFields[n]=o}))}(o,d,i,s),function(e,t,i){let n=!1!==At(e,"enforcement.enforceJS"),r=!0===At(e,"enforcement.floorDeals")||!i.dealId,o=i.floorData.cpmAfterAdjustments<t.matchingFloor;return n&&o&&r}(o,d,i)?(n(Ke.FLOOR_NOT_MET),void ei(`${Bl}: ${i.bidderCode}'s Bid Response for ${t} was rejected due to floor not met (adjusted cpm: ${null==(r=null==i?void 0:i.floorData)?void 0:r.cpmAfterAdjustments}, floor: ${null==d?void 0:d.matchingFloor})`,i)):e.call(this,t,i,n)}));pt.getConfig("floors",(e=>nc(e.floors))),ed({type:Gs,name:"bidfloor",fn:function(e,t,i){if("function"==typeof t.getFloor){let r,o;try{({currency:r,floor:o}=t.getFloor({currency:i.currency||pt.getConfig("currency.adServerCurrency")||"USD",mediaType:i.mediaType||"*",size:"*"}))}catch(n){return void ei("Cannot compute floor for bid",t)}o=parseFloat(o),null==r||null==o||isNaN(o)||Object.assign(e,{bidfloor:o,bidfloorcur:r})}}}),ed({type:Gs,name:"extPrebidFloors",fn:function(e,t,i){var n,r,o,a,s,d,l,c,u,p;if(null!=e.bidfloor){let{floorMinCur:t,floorMin:m}=i.reqContext.floorMin||{};null==t&&(t=e.bidfloorcur);const f=(null==(o=null==(r=null==(n=e.ext)?void 0:n.prebid)?void 0:r.floors)?void 0:o.floorMinCur)||(null==(s=null==(a=e.ext)?void 0:a.prebid)?void 0:s.floorMinCur)||t,g=(null==(c=null==(l=null==(d=e.ext)?void 0:d.prebid)?void 0:l.floors)?void 0:c.floorMin)||(null==(p=null==(u=e.ext)?void 0:u.prebid)?void 0:p.floorMin),h=El(e.bidfloor,e.bidfloorcur,t),v=!(!g||!f)&&El(g,f,t),b=v&&v<h?v:h;Tt(e,"ext.prebid.floors.floorMin",b),(null==m||m>b)&&(m=b),i.reqContext.floorMin={floorMin:m,floorMinCur:t}}},dialects:[Ks],priority:-1}),ed({type:Ys,name:"extPrebidFloors",fn:function(e,t,i){var n,r,o;Nl&&Tt(e,"ext.prebid.floors.enabled",(null==(o=null==(r=null==(n=e.ext)?void 0:n.prebid)?void 0:r.floors)?void 0:o.enabled)||!1),(null==i?void 0:i.floorMin)&&en(e,{ext:{prebid:{floors:i.floorMin}}})},dialects:[Ks]});const oc={env:"vp",gdfp_req:1,output:"vast",unviewed_position_start:1},ac={protocol:"https",host:"securepubads.g.doubleclick.net",pathname:"/gampad/ads"},sc=It();const dc=$n("sync",(()=>{}));var lc=[];const cc=20,uc="targetingControls.allowTargetingKeys",pc="targetingControls.addTargetingKeys",mc=`Only one of "${uc}" or "${pc}" can be set`,fc=Object.keys(Ye).map((e=>Ye[e]));let gc={isActualBid:e=>e.getStatusCode()===De.GOOD,isBidNotExpired:e=>e.responseTimestamp+1e3*Jo(e)>Ni(),isUnusedBid:e=>e&&(e.status&&!Ce([Je.RENDERED],e.status)||!e.status)};function hc(e){return!Object.values(gc).some((t=>!t(e)))}const vc=$n("sync",(function(e,t,i=0,n=!1){if(!n){const n=[],r=pt.getConfig("sendBidsControl.dealPrioritization");let o=qi(e,"adUnitCode");return Object.keys(o).forEach((e=>{let a=[],s=qi(o[e],"bidderCode");Object.keys(s).forEach((e=>a.push(s[e].reduce(t)))),i>0?(a=r?a.sort(bc(!0)):a.sort(((e,t)=>t.cpm-e.cpm)),n.push(...a.slice(0,i))):n.push(...a)})),n}return e}));function bc(e=!1){return function(t,i){return void 0!==t.adserverTargeting.hb_deal&&void 0===i.adserverTargeting.hb_deal?-1:void 0===t.adserverTargeting.hb_deal&&void 0!==i.adserverTargeting.hb_deal?1:e?i.cpm-t.cpm:i.adserverTargeting.hb_pb-t.adserverTargeting.hb_pb}}function yc(e,t,i=()=>window.googletag.pubads().getSlots()){return i().reduce(((e,i)=>{const n=li(t)&&t(i);return Object.keys(e).filter(li(n)?n:function(e){return t=>$i(e,t)}(i)).forEach((t=>e[t].push(i))),e}),Object.fromEntries(e.map((e=>[e,[]]))))}const wc=function(e){let t={},i={};function n(e,t){return e.adserverTargeting&&t&&(ui(t)&&Ce(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t)}function r(t){return"string"==typeof t?[t]:ui(t)?t:e.getAdUnitCodes()||[]}function o(){let t=e.getBidsReceived();if(pt.getConfig("useBidCache")){const e=pt.getConfig("bidCacheFilterFunction");"function"==typeof e&&(t=t.filter((t=>i[t.adUnitCode]===t.auctionId||!!e(t))))}else t=t.filter((e=>i[e.adUnitCode]===e.auctionId));return t=t.filter((e=>At(e,"video.context")!==Dr)).filter(hc),t.forEach((e=>(e.latestTargetedAuctionId=i[e.adUnitCode],e))),vc(t,_l)}function a(){return e.getStandardBidderAdServerTargeting().map((e=>e.key)).concat(fc).filter(ki)}function s(e,t,i,n){return Object.keys(t.adserverTargeting).filter(d()).forEach((i=>{e.length&&e.filter(function(e){return function(i){return i.adUnitCode===t.adUnitCode&&i.adserverTargeting[e]}}(i)).forEach(function(e){return function(i){ui(i.adserverTargeting[e])||(i.adserverTargeting[e]=[i.adserverTargeting[e]]),i.adserverTargeting[e]=i.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(ki),delete t.adserverTargeting[e]}}(i))})),e.push(t),e}function d(){let e=a();return e=e.concat(wa),function(t){return-1===e.indexOf(t)}}function l(e){return{[e.adUnitCode]:Object.keys(e.adserverTargeting).filter(d()).map((t=>({[t.substring(0,cc)]:[e.adserverTargeting[t]]})))}}function c(e,t){return t.map((t=>({[`${t}_${e.bidderCode}`.substring(0,cc)]:[e.adserverTargeting[t]]})))}return t.setLatestAuctionForAdUnit=function(e,t){i[e]=t},t.resetPresetTargeting=function(e,t){if(Ei()){const i=r(e);let n=lc.reduce(((e,t)=>(e[t]=null,e)),{});Object.values(yc(i,t)).forEach((e=>{e.forEach((e=>e.updateTargetingFromMap(n)))}))}},t.resetPresetTargetingAST=function(e){r(e).forEach((function(e){const t=window.apntag.getTag(e);if(t&&t.keywords){const i=Object.keys(t.keywords),n={};i.forEach((e=>{Ce(lc,e.toLowerCase())||(n[e]=t.keywords[e])})),window.apntag.modifyTag(e,{keywords:n})}}))},t.getAllTargeting=function(i,d=o()){const u=r(i);var p=function(e,i){let n=t.getWinningBids(e,i),r=a();return n=n.map((e=>({[e.adUnitCode]:Object.keys(e.adserverTargeting).filter((t=>void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===r.indexOf(t))).reduce(((t,i)=>{const n=[e.adserverTargeting[i]],r={[i.substring(0,cc)]:n};if(i===Ye.DEAL){const o=`${i}_${e.bidderCode}`.substring(0,cc),a={[o]:n};return[...t,r,a]}return[...t,r]}),[])}))),n}(u,d).concat(function(e,t){return t.filter((t=>Ce(e,t.adUnitCode))).map((e=>Object.assign({},e))).reduce(s,[]).map(l).filter((e=>e))}(u,d)).concat(pt.getConfig("enableSendAllBids")?function(e,t){const i=fc.concat(wa),r=pt.getConfig("sendBidsControl.bidLimit"),o=vc(t,Cl,r),a=pt.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),s=a?a.map((e=>Ye[e])):i;return o.map((t=>{if(n(t,e))return{[t.adUnitCode]:c(t,i.filter((e=>void 0!==t.adserverTargeting[e]&&-1!==s.indexOf(e))))}})).filter((e=>e))}(u,d):function(e,t){if(!0===pt.getConfig("targetingControls.alwaysIncludeDeals")){const i=fc.concat(wa);return vc(t,Cl).map((t=>{if(t.dealId&&n(t,e))return{[t.adUnitCode]:c(t,i.filter((e=>void 0!==t.adserverTargeting[e])))}})).filter((e=>e))}return[]}(u,d)).concat(function(t){function i(e){return At(e,Oe.ADSERVER_TARGETING)}function n(e){const t=i(e);return Object.keys(t).map((function(e){return ci(t[e])&&(t[e]=t[e].split(",").map((e=>e.trim()))),ui(t[e])||(t[e]=[t[e]]),{[e]:t[e]}}))}return e.getAdUnits().filter((e=>Ce(t,e.code)&&i(e))).map((e=>({[e.code]:n(e)})))}(u));p.map((e=>{Object.keys(e).map((t=>{e[t].map((e=>{-1===lc.indexOf(Object.keys(e)[0])&&(lc=Object.keys(e).concat(lc))}))}))}));const m=Object.keys(Object.assign({},Ge,He));let f=pt.getConfig(uc);const g=pt.getConfig(pc);if(null!=g&&null!=f)throw new Error(mc);f=null!=g?m.concat(g):f||m,Array.isArray(f)&&f.length>0&&(p=function(e,t){const i=Object.assign({},Ye,He),n=Object.keys(i),r={};return Xt(`allowTargetingKeys - allowed keys [ ${t.map((e=>i[e])).join(", ")} ]`),e.map((e=>{const o=Object.keys(e)[0],a=e[o].filter((e=>{const o=Object.keys(e)[0],a=0===n.filter((e=>0===o.indexOf(i[e]))).length||_e(t,(e=>{const t=i[e];return 0===o.indexOf(t)}));return r[o]=!a,a}));e[o]=a})),Xt(`allowTargetingKeys - removed keys [ ${Object.keys(r).filter((e=>r[e])).join(", ")} ]`),e.filter((e=>e[Object.keys(e)[0]].length>0))}(p,f)),p=function(e){let t=e.map((e=>({[Object.keys(e)[0]]:e[Object.keys(e)[0]].map((e=>({[Object.keys(e)[0]]:e[Object.keys(e)[0]].join(",")}))).reduce(((e,t)=>Object.assign(t,e)),{})}))).reduce((function(e,t){var i=Object.keys(t)[0];return e[i]=Object.assign({},e[i],t[i]),e}),{});return t}(p);const h=pt.getConfig("targetingControls.auctionKeyMaxChars");return h&&(Xt(`Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ${h} characters. Running checks on auction keys...`),p=function(e,t){let i=Bi(e),n=Object.keys(i).map((e=>({adUnitCode:e,adserverTargeting:i[e]}))).sort(bc());return n.reduce((function(e,n,r,o){let a=(s=n.adserverTargeting,Object.keys(s).reduce((function(e,t){return e+`${t}%3d${encodeURIComponent(s[t])}%26`}),""));var s;r+1===o.length&&(a=a.slice(0,-3));let d=n.adUnitCode,l=a.length;return l<=t?(Xt(`AdUnit '${d}' auction keys comprised of ${l} characters. Deducted from running threshold; new limit is ${t-=l}`,i[d]),e[d]=i[d]):ei(`The following keys for adUnitCode '${d}' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ${l}, the current allotted amount was ${t}.\n`,i[d]),r+1===o.length&&0===Object.keys(e).length&&ti("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e}),{})}(p,h)),u.forEach((e=>{p[e]||(p[e]={})})),p},pt.getConfig("targetingControls",(function(e){null!=At(e,uc)&&null!=At(e,pc)&&ti(mc)})),t.setTargetingForGPT=$n("sync",(function(i,n){let r=t.getAllTargeting(i),o=Object.fromEntries(lc.map((e=>[e,null])));Object.entries(yc(Object.keys(r),n)).forEach((([e,t])=>{t.forEach((t=>{Object.keys(r[e]).forEach((t=>{let i=r[e][t];"string"==typeof i&&-1!==i.indexOf(",")&&(i=i.split(",")),r[e][t]=i})),Kt(`Attempting to set targeting-map for slot: ${t.getSlotElementId()} with targeting-map:`,r[e]),t.updateTargetingFromMap(Object.assign({},o,r[e]))}))})),Object.keys(r).forEach((t=>{Object.keys(r[t]).forEach((i=>{"hb_adid"===i&&e.setStatusForBids(r[t][i],Je.BID_TARGETING_SET)}))})),t.targetingDone(r),no(Fe.SET_TARGETING,r)}),"setTargetingForGPT"),t.targetingDone=$n("sync",(function(e){return e}),"targetingDone"),t.getWinningBids=function(e,t=o()){const i=r(e);return t.filter((e=>Ce(i,e.adUnitCode))).filter((e=>!0===En.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0)).map((e=>e.adUnitCode)).filter(ki).map((e=>t.filter((t=>t.adUnitCode===e?t:null)).reduce(Cl)))},t.setTargetingForAst=function(e){let i=t.getAllTargeting(e);try{t.resetPresetTargetingAST(e)}catch(n){ti("unable to reset targeting for AST"+n)}Object.keys(i).forEach((e=>Object.keys(i[e]).forEach((t=>{if(Kt(`Attempting to set targeting for targetId: ${e} key: ${t} value: ${i[e][t]}`),ci(i[e][t])||ui(i[e][t])){let n={},r=/pt[0-9]/;t.search(r)<0?n[t.toUpperCase()]=i[e][t]:n[t]=i[e][t],window.apntag.setKeywords(e,n,{overrideKeyValue:!0})}}))))},t.isApntagDefined=function(){if(window.apntag&&li(window.apntag.setKeywords))return!0},t}(Xo),Ic={ri:ds};function Ac(e,t,i){return At(t,`${i}.description_url`)||encodeURIComponent(Ic.ri().page)}function Tc(e,t,i){const n=e&&e.adserverTargeting||{};let r={};const o=t&&t.adUnit;if(o){let e=wc.getAllTargeting(o.code);r=e?e[o.code]:{}}const a=Object.assign({},{hb_uuid:e&&e.videoCacheKey},{hb_cache_id:e&&e.videoCacheKey},r,n);no(Fe.SET_TARGETING,{[o.code]:a});const s=At(t,"params.cust_params"),d=Object.assign({},a,s);let l=encodeURIComponent(Qi(d));return i&&(l=i+"%26"+l),l}pt.getConfig("brandCategoryTranslation.translationFile")&&Yn("registerAdserver").before((function(e){e.call(this,"dfp")})),function(e,t){sc.adServers=sc.adServers||{},sc.adServers[e]=sc.adServers[e]||{},Object.keys(t).forEach((i=>{sc.adServers[e][i]?ei(`Attempting to add an already registered function property ${i} for AdServer ${e}.`):sc.adServers[e][i]=t[i]}))}("dfp",{buildVideoUrl:function(e){var t,i,n,r,o;if(!e.params&&!e.url)return void ti("A params object or a url is required to use slmpbjs.adServers.dfp.buildVideoUrl");const a=e.adUnit,s=e.bid||wc.getWinningBids(a.code)[0];let d={};if(e.url&&(d=Ji(e.url,{noDecodeWholeURL:!0}),gi(e.params)))return function(e,t,i){const n=Ac(t,e,"search");n&&(e.search.description_url=n);return e.search.cust_params=Tc(t,i,e.search.cust_params),Ki(e)}(d,s,e);const l={correlator:Date.now(),sz:$t(At(a,"mediaTypes.video.playerSize")).join("|"),url:encodeURIComponent(location.href)},c=d.search,u=c&&c.sz;u&&(l.sz=u+"|"+l.sz);let p=Tc(s,e,c&&c.cust_params);const m=Object.assign({},oc,d.search,l,e.params,{cust_params:p}),f=Ac(s,e,"params");if(f&&(m.description_url=f),((e,t)=>{e&&("boolean"==typeof e.gdprApplies&&(t.gdpr=Number(e.gdprApplies)),e.consentString&&(t.gdpr_consent=e.consentString),e.addtlConsent&&(t.addtl_consent=e.addtlConsent))})(ps.getConsentData(),m),!m.ppid){const e=dc();null!=e&&(m.ppid=e)}const g=null==(i=null==(t=e.adUnit)?void 0:t.mediaTypes)?void 0:i.video;Object.entries({plcmt:()=>null==g?void 0:g.plcmt,min_ad_duration:()=>pi(null==g?void 0:g.minduration)?1e3*g.minduration:null,max_ad_duration:()=>pi(null==g?void 0:g.maxduration)?1e3*g.maxduration:null,vpos(){const e=null==g?void 0:g.startdelay;if(pi(e))return-2===e?"postroll":-1===e||e>0?"midroll":"preroll"},vconp:()=>Array.isArray(null==g?void 0:g.playbackmethod)&&g.playbackmethod.every((e=>7===e))?"2":void 0,vpa(){if(Array.isArray(null==g?void 0:g.playbackmethod)){const e=g.playbackmethod.some((e=>3===e)),t=g.playbackmethod.some((e=>[1,2,4,5,6].includes(e)));if(e&&!t)return"click";if(t&&!e)return"auto"}},vpmute(){if(Array.isArray(null==g?void 0:g.playbackmethod)){const e=g.playbackmethod.some((e=>[2,6].includes(e))),t=g.playbackmethod.some((e=>[1,3,4,5].includes(e)));if(e&&!t)return"1";if(t&&!e)return"0"}}}).forEach((([e,t])=>{if(!m.hasOwnProperty(e)){const i=t();null!=i&&(m[e]=i)}}));const h=function(e){return Object.entries({[vl[0]]:bl(e,["user.data"],4),[vl[1]]:bl(e,ld.map((e=>`${e}.content.data`)),6)}).map((([e,t])=>t.length?{taxonomy:e,values:t}:null)).filter((e=>e))}((null==(n=Xo.index.getBidRequest(e.bid||{}))?void 0:n.ortb2)??(null==(o=null==(r=Xo.index.getAuction(e.bid||{}))?void 0:r.getFPD())?void 0:o.global));return h.length&&(m.ppsj=btoa(JSON.stringify({PublisherProvidedTaxonomySignals:h}))),Ki(Object.assign({},ac,d,{search:m}))}});const xc=Cr("categoryTranslation"),kc="iabToFwMappingkey",Cc="iabToFwMappingkeyPub",_c=1,Ec=$n("async",(function(e){let t;"freewheel"===e&&(t="https://cdn.jsdelivr.net/gh/prebid/category-mapping-file@1/freewheel-mapping.json",Bc("https://cdn.jsdelivr.net/gh/prebid/category-mapping-file@1/freewheel-mapping.json",kc))}),"registerAdserver");Wn.then((()=>Ec()));const Sc=wo("categoryTranslation",(function(e,t,i,n){if(!i)return e.call(this,t,i,n);if(!pt.getConfig("adpod.brandCategoryExclusion"))return e.call(this,t,i,n);let r=pt.getConfig("brandCategoryTranslation.translationFile")?Cc:kc;if(i.meta&&!i.meta.adServerCatId){let e=xc.getDataFromLocalStorage(r);if(e){try{e=JSON.parse(e)}catch(o){ti("Failed to parse translation mapping file")}i.meta.primaryCatId&&e.mapping&&e.mapping[i.meta.primaryCatId]?i.meta.adServerCatId=e.mapping[i.meta.primaryCatId].id:i.meta.adServerCatId=void 0}else ti("Translation mapping data not found in local storage")}e.call(this,t,i,n)}));function Bc(e,t){!function(e,t,i=15){0===e.getHooks({hook:t}).length&&e.before(t,i)}(Po,Sc,50);let i=xc.getDataFromLocalStorage(t);try{i=i?JSON.parse(i):void 0,(!i||Ni()>i.lastUpdated+24*_c*60*60*1e3)&&mn(e,{success:e=>{try{(e=JSON.parse(e)).lastUpdated=Ni(),xc.setDataInLocalStorage(t,JSON.stringify(e))}catch(i){ti("Failed to parse translation mapping file")}},error:()=>{ti("Failed to load brand category translation file.")}})}catch(n){ti("Failed to parse translation mapping file")}}pt.getConfig("brandCategoryTranslation",(e=>function(e){e.translationFile&&Bc(e.translationFile,Cc)}(e.brandCategoryTranslation)));const Uc="Invalid schain object found: ",Pc=" should be a string",Rc=" should be an Integer",Vc=" should be an object",Nc=" should be an Array",jc={STRICT:"strict",RELAXED:"relaxed",OFF:"off"},Oc=[];function Dc(e,t){let i=jc.STRICT;if(function(e){return!(void 0===e||!mi(e)&&(ti(Uc+"the following schain config will not be used as schain is not an object.",e),1))}(e)){if(ci(e.validation)&&-1!=Oc.indexOf(e.validation)&&(i=e.validation),i===jc.OFF)return e.config;if(function(e,t){let i="Detected something wrong within an schain config:",n="";function r(e){n+="\n"+e}function o(){!0===t?ti(i,e,n):ei(i,e,n)}if(!mi(e)&&(r("schain.config"+Vc),o(),t))return!1;if(pi(e.complete)&&Zi(e.complete)||r("schain.config.complete"+Rc),ci(e.ver)||r("schain.config.ver"+Pc),e.hasOwnProperty("ext")&&(mi(e.ext)||r("schain.config.ext"+Vc)),ui(e.nodes))e.nodes.forEach(((e,t)=>{ci(e.asi)||r(`schain.config.nodes[${t}].asi`+Pc),ci(e.sid)||r(`schain.config.nodes[${t}].sid`+Pc),pi(e.hp)&&Zi(e.hp)||r(`schain.config.nodes[${t}].hp`+Rc),e.hasOwnProperty("rid")&&(ci(e.rid)||r(`schain.config.nodes[${t}].rid`+Pc)),e.hasOwnProperty("name")&&(ci(e.name)||r(`schain.config.nodes[${t}].name`+Pc)),e.hasOwnProperty("domain")&&(ci(e.domain)||r(`schain.config.nodes[${t}].domain`+Pc)),e.hasOwnProperty("ext")&&(mi(e.ext)||r(`schain.config.nodes[${t}].ext`+Vc))}));else if(r("schain.config.nodes"+Nc),o(),t)return!1;return!(n.length>0&&(o(),t))}(e.config,!(i!==jc.STRICT)))return e.config;ti(Uc+`due to the 'strict' validation setting, this schain config will not be passed to bidder '${t}'. See above error for details.`)}return null}function Fc(e,t){const i=pt.getConfig("schain"),n=pt.getBidderConfig();t.forEach((e=>{let t=e.bidderCode,r=function(e){return n[e]&&n[e].schain||i}(t);e.bids.forEach((e=>{let i=Dc(r,t);i&&(e.schain=Bi(i))}))})),e(t)}vi(jc,(e=>Oc.push(e))),Ps.makeBidRequests.after(Fc),ed({type:Ys,name:"sourceExtSchain",fn:function(e,t,i){if(!At(e,"source.ext.schain")){const t=At(i,"bidRequests.0.schain");t&&Tt(e,"source.ext.schain",t)}}});const qc="teadsId",Mc="_tfpvi",zc={GDPR_DOESNT_APPLY:0,CMP_NOT_FOUND_OR_ERROR:22,GDPR_APPLIES_PUBLISHER:12},Lc={GDPR_DOESNT_APPLY:0,CMP_NOT_FOUND:220,GDPR_APPLIES_PUBLISHER_CLASSIC:120},$c=kr({moduleType:Un,moduleName:qc});Qn("userId",{name:qc,gvlid:132,decode:e=>({teadsId:e}),getId:(e,t)=>({callback:function(i){const n=function(e,t){const i=function(e){var t;const i=null==(t=null==e?void 0:e.params)?void 0:t.pubId,n="PUB_";if(pi(i))return n+i.toString();if(ci(i)&&parseInt(i))return n+i;return""}(e),n=function(){const e=$c.cookiesAreEnabled(null)?$c.getCookie(Mc,null):null;return ci(e)?e:""}(),r=function(e){const t=null==e?void 0:e.gdprApplies;return!0===t?zc.GDPR_APPLIES_PUBLISHER:!1===t?zc.GDPR_DOESNT_APPLY:zc.CMP_NOT_FOUND_OR_ERROR}(t),o=function(e){const t=null==e?void 0:e.consentString;return ci(t)?t:""}(t),a=function(e){return ci(e)?e:""}(null==ms?void 0:ms.getConsentData()),s=function(e){switch(e){case zc.GDPR_DOESNT_APPLY:return Lc.GDPR_DOESNT_APPLY;case zc.CMP_NOT_FOUND_OR_ERROR:return Lc.CMP_NOT_FOUND;case zc.GDPR_APPLIES_PUBLISHER:return Lc.GDPR_APPLIES_PUBLISHER_CLASSIC;default:return-1}}(r),d={analytics_tag_id:i,tfpvi:n,gdpr_consent:o,gdpr_status:r,gdpr_reason:s,ccpa_consent:a,sv:"prebid-v1"},l="https://at.teads.tv/fpc",c=new URLSearchParams;for(const u in d)c.append(u,d[u]);return l+"?"+c.toString()}(e,t);mn(n,{success:(e,t)=>{if(t&&200===t.status)if(ci(e)&&!gi(e)){const t=24*365*60*60*1e3,r=(n=t,new Date(Ni()+n).toUTCString());$c.setCookie(Mc,e,r),i(e)}else $c.setCookie(Mc,"","Thu, 01 Jan 1970 00:00:01 GMT"),i();else Xt(`${qc}: Server error while fetching ID`),i();var n},error:e=>{ti(`${qc}: ID fetch encountered an error`,e),i()}},void 0,{method:"GET"})}})});const Zc=new Map;function Wc(e){const t={};function i(e){var i;const n=JSON.stringify([null==(i=e.source)?void 0:i.toLowerCase(),e.ext]);t.hasOwnProperty(n)?t[n].uids.push(...e.uids):t[n]=e}return Object.entries(e).forEach((([e,t])=>{t=Array.isArray(t)?t:[t];("pubProvidedId"===e?Bi(t):t.map((t=>function(e,t){const i=Zc.get(t);if(i&&e){let t={};t.source=li(i.getSource)?i.getSource(e):i.source;const n=li(i.getValue)?i.getValue(e):e;if(ci(n)){const r={id:n,atype:i.atype};if(li(i.getUidExt)){const t=i.getUidExt(e);t&&(r.ext=t)}if(t.uids=[r],li(i.getEidExt)){const n=i.getEidExt(e);n&&(t.ext=n)}return t}}return null}(t,e)))).filter((e=>null!=e)).forEach(i)})),Object.values(t)}const Yc="User ID",Gc=Ar,Hc=Ir,Qc="_pbjs_id_optout",Jc=Cr("userId"),Kc={isAllowed:lr};let Xc,eu,tu,iu,nu,ru,ou=!1,au=[],su=[],du={},lu=[];const cu=(()=>{let e;return()=>(null==e&&(e=vo()),e)})();function uu(e){return cu().fork().renameWith((t=>[`userId.mod.${t}`,`userId.mods.${e}.${t}`]))}function pu(e,t){t=t||e.storageMgr;const i="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,n=e.config.storage.name;return function(e,r,o){t.setCookie(n+(e||""),r,o,"Lax",i)}}function mu(e,t){const i=e.config.storage;try{const n=new Date(Date.now()+864e5*i.expires).toUTCString(),r=mi(t)?JSON.stringify(t):t;e.enabledStorageTypes.forEach((t=>{switch(t){case Gc:!function(e,t,i){const n=e.config.storage,r=pu(e);r(null,t,i),r("_cst",Vu(),i),"number"==typeof n.refreshInSeconds&&r("_last",(new Date).toUTCString(),i)}(e,r,n);break;case Hc:!function(e,t,i){const n=e.config.storage,r=e.storageMgr;r.setDataInLocalStorage(`${n.name}_exp`,i),r.setDataInLocalStorage(`${n.name}_cst`,Vu()),r.setDataInLocalStorage(n.name,encodeURIComponent(t)),"number"==typeof n.refreshInSeconds&&r.setDataInLocalStorage(`${n.name}_last`,(new Date).toUTCString())}(e,r,n)}}))}catch(n){ti(n)}}function fu(e){zu(e),e.enabledStorageTypes.forEach((t=>{switch(t){case Gc:!function(e){const t=pu(e,Jc),i=new Date(Date.now()-864e5).toUTCString();["","_last","_cst"].forEach((e=>{try{t(e,"",i)}catch(n){ti(n)}}))}(e);break;case Hc:!function(e){["","_last","_exp","_cst"].forEach((t=>{try{Jc.removeDataFromLocalStorage(e.config.storage.name+t)}catch(i){ti(i)}}))}(e)}}))}function gu(e){let t=Ft.setEidPermissions;"function"==typeof t&&ui(e)&&t(function(e){let t=[];return e.filter((e=>mi(e.idObj)&&Object.keys(e.idObj).length)).forEach((e=>{Object.keys(e.idObj).forEach((i=>{const n=Zc.get(i)||{};At(e,"config.bidders")&&Array.isArray(e.config.bidders)&&n.source&&t.push({source:n.source,bidders:e.config.bidders})}))})),t}(e))}function hu(e,t=void 0){const i=e.config.storage,n=t?`${i.name}_${t}`:i.name;let r;try{e.enabledStorageTypes.find((t=>{switch(t){case Gc:r=function(e,t){return e.storageMgr.getCookie(t)}(e,n);break;case Hc:r=function(e,t){const i=e.storageMgr,n=e.config.storage,r=i.getDataFromLocalStorage(`${n.name}_exp`);return""===r?i.getDataFromLocalStorage(t):r&&new Date(r).getTime()-Date.now()>0?decodeURIComponent(i.getDataFromLocalStorage(t)):void 0}(e,n)}return!!r})),"string"==typeof r&&"{"===r.trim().charAt(0)&&(r=JSON.parse(r))}catch(o){ti(o)}return r}function vu(e,t,i){t=cu().fork().startTiming("userId.callbacks.total").stopBefore(t);const n=Fi((()=>{clearTimeout(eu),t()}),e.length);e.forEach((function(e){const t=uu(e.submodule.name).startTiming("callback").stopBefore(n);try{e.callback((function(n){n?(e.config.storage&&mu(e,n),e.idObj=e.submodule.decode(n,e.config),ju(bu(i))):Xt(`${Yc}: ${e.submodule.name} - request id responded with an empty value`),t()}),hu.bind(null,e))}catch(r){ti(`Error in userID module '${e.submodule.name}':`,r),t()}e.callback=void 0}))}function bu(e){return Array.isArray(e)&&e.length?wu(e):{}}function yu(e,t,i){return Object.fromEntries(Object.entries(e.reduce(((e,n)=>{const r=t(n);return r&&Object.keys(r).forEach((t=>{var o;const a=null==(o=du[t])?void 0:o.indexOf(i(n)),s={priority:pi(a)?a:-1,value:r[t]};if(e[t]){const i=s.priority>e[t].priority?s:e[t];e[t]=i}else e[t]=s})),e}),{})).map((([e,t])=>[e,t.value])))}function wu(e){return yu(e.filter((e=>mi(e.idObj)&&Object.keys(e.idObj).length)),(e=>e.idObj),(e=>e.submodule.name))}function Iu(e,t){[e].some((e=>!Array.isArray(e)||!e.length))||e.forEach((e=>{e.bids&&ui(e.bids)&&e.bids.forEach((e=>{const i=function(e,t){return Array.isArray(e)&&e.length&&t?wu(e.filter((e=>!e.config.bidders||!ui(e.config.bidders)||Ce(e.config.bidders,t)))):{}}(t,e.bidder);Object.keys(i).length&&(e.userId=i,e.userIdAsEids=Wc(i))}))}))}const Au={};let Tu;function xu(e=_u()||[]){const t=nu&&e.find((e=>e.source===nu));if(t&&"string"==typeof At(t,"uids.0.id")){const e=t.uids[0].id.replace(/[\W_]/g,"");if(e.length>=32&&e.length<=150)return e;ei(`User ID - Googletag Publisher Provided ID for ${nu} is not between 32 and 150 characters - ${e}`)}}const ku=yo("userId",(function(e,t,{delay:i=vt.timeout,getIds:n=Ru}={}){vt.race([n().catch((()=>null)),i(iu)]).then((()=>{Iu(t.adUnits||It().adUnits,Xc),cu().join(ho(t.metrics),{propagate:!1,includeGroups:!0}),e.call(this,t)}))}));function Cu(){return bu(Xc)}function _u(){return Wc(Cu())}function Eu(e){return Wc(function(e,t){if(!Array.isArray(e)||!e.length)return{};const i=wu(e),n=Object.keys(i).find((e=>{const i=Zc.get(e);return(null==i?void 0:i.source)===t||li(null==i?void 0:i.getSource)&&i.getSource()===t}));return n?{[n]:i[n]}:[]}(Xc,e))[0]}function Su(e,t,i){return Tu().then((()=>{let n={};if(li(i)){Xt(`${Yc} - Getting encrypted signal from custom function : ${i.name} & source : ${e} `);const t=i(e);n[e]=t?Bu(t):null}else{const i=Eu(e);Xt(`${Yc} - Getting encrypted signal for eids :${JSON.stringify(i)}`),gi(i)||(n[i.source]=!0===t?Bu(i):i.uids[0].id)}return Xt(`${Yc} - Fetching encrypted eids: ${n[e]}`),n[e]}))}function Bu(e,t=1){let i="";if(1===t)i="object"==typeof e?window.btoa(JSON.stringify(e)):window.btoa(e);return`${t}||${i}`}function Uu(){if(!Ei())return;window.googletag.secureSignalProviders=window.googletag.secureSignalProviders||[];const e=pt.getConfig("userSync.encryptedSignalSources");if(e){const t=e.registerDelay||0;setTimeout((()=>{e.sources&&e.sources.forEach((({source:e,encrypt:t,customFunc:i})=>{e.forEach((e=>{window.googletag.secureSignalProviders.push({id:e,collectorFunction:()=>Su(e,t,i)})}))}))}),t)}else ei(`${Yc} - ESP : encryptedSignalSources config not defined under userSync Object`)}function Pu({submoduleNames:e}={},t){return Tu({refresh:!0,submoduleNames:e}).then((()=>(t&&li(t)&&t(),Cu())))}function Ru(){return Tu().then((()=>Cu()),(e=>e===Au?Promise.resolve().then(Ru):(ti("Error initializing userId",e),vt.reject(e))))}function Vu(){let e=Number(bs.hash);const t=[];for(;e>0;)t.push(String.fromCharCode(255&e)),e>>>=8;return btoa(t.join())}function Nu(e,t,i){const n=ps.getConsentData();if(e.config.storage){let i,r=hu(e),o=!1;if("number"==typeof e.config.storage.refreshInSeconds){const t=new Date(hu(e,"last"));o=t&&Date.now()-t.getTime()>1e3*e.config.storage.refreshInSeconds}if(!r||o||t||function(e){const t=hu(e,"cst");return!t||t!==Vu()}(e)){const t=Object.assign({enabledStorageTypes:e.enabledStorageTypes},e.config);i=e.submodule.getId(t,n,r)}else"function"==typeof e.submodule.extendId&&(i=e.submodule.extendId(e.config,n,r));mi(i)&&(i.id&&(mu(e,i.id),r=i.id),"function"==typeof i.callback&&(e.callback=i.callback)),r&&(e.idObj=e.submodule.decode(r,e.config))}else if(e.config.value)e.idObj=e.config.value;else{const t=e.submodule.getId(e.config,n,void 0);mi(t)&&("function"==typeof t.callback&&(e.callback=t.callback),t.id&&(e.idObj=e.submodule.decode(t.id,e.config)))}ju(bu(i))}function ju(e=Cu()){if(e&&nu){const t=xu(Wc(e));t&&(Ei()?window.googletag.pubads().setPublisherProvidedId(t):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(t)}))))}}function Ou(e,t,i=!1){return cu().fork().measureTime("userId.init.modules",(function(){if(!t.length)return[];if(t.forEach((e=>zu(e))),!(t=t.filter((e=>(!e.config.storage||!!e.enabledStorageTypes.length)&&Kc.isAllowed(mr,wr(Un,e.config.name))))).length)return ei(`${Yc} - no ID module configured`),[];const n=t.reduce(((e,n)=>uu(n.submodule.name).measureTime("init",(()=>{try{Nu(n,i,t),e.push(n)}catch(r){ti(`Error in userID module '${n.submodule.name}':`,r)}return e}))),[]);return n.length&&gu(n),n.forEach(Du.bind(null,e)),n}))}function Du(e,t){let i=!1;for(let n=0;n<e.length;n++)if(t.config.name.toLowerCase()===e[n].config.name.toLowerCase()){i=!0,e[n]=t;break}i||e.push(t)}function Fu(e){var t,i;return(null==(i=null==(t=null==e?void 0:e.storage)?void 0:t.type)?void 0:i.trim().split(/\s*&\s*/))||[]}function qu(e){function t(e,...t){ei(`Invalid userSync.userId config: ${e}`,...t)}return Array.isArray(e)?e.filter((e=>{if(!(null==e?void 0:e.name))return t('must specify "name"',e);if(e.storage){if(!e.storage.name||!e.storage.type)return t('must specify "storage.name" and "storage.type"',e);if(!function(e){return Fu(e).every((e=>Mu.has(e)))}(e))return t('invalid "storage.type"',e);["expires","refreshInSeconds"].forEach((i=>{let n=e.storage[i];null!=n&&"number"!=typeof n&&(n=Number(n),isNaN(n)?(t(`storage.${i} must be a number and will be ignored`,e),delete e.storage[i]):e.storage[i]=n)}))}return!0})):(null!=e&&t("must be an array",e),[])}const Mu=new Set([Hc,Gc]);function zu(e){if(e.enabledStorageTypes)return;const t=Fu(e.config);e.enabledStorageTypes=t.filter((t=>{switch(t){case Hc:return function(e){return!(!e.storageMgr.localStorageIsEnabled()||Jc.getDataFromLocalStorage(Qc)&&(Xt(`${Yc} - opt-out localStorage found, storage disabled`),1))}(e);case Gc:return function(e){return!(!e.storageMgr.cookiesAreEnabled()||Jc.getCookie(Qc)&&(Xt(`${Yc} - opt-out cookie found, storage disabled`),1))}(e)}return!1}))}function Lu(){var e;e=lu,Zc.clear(),Object.entries(yu(e,(e=>e.eids),(e=>e.name))).forEach((([e,t])=>Zc.set(e,t)));const t=qu(su);if(!t.length)return;const i=lu.filter((e=>!_e(au,(t=>t.name===e.name))));au.splice(0,au.length),i.map((e=>{const i=_e(t,(t=>t.name&&(t.name.toLowerCase()===e.name.toLowerCase()||e.aliasName&&t.name.toLowerCase()===e.aliasName.toLowerCase())));return i&&e.name!==i.name&&(i.name=e.name),i?{submodule:e,config:i,callback:void 0,idObj:void 0,storageMgr:kr({moduleType:Un,moduleName:i.name})}:null})).filter((e=>null!==e)).forEach((e=>au.push(e))),!ou&&au.length&&(It().requestBids.before(ku,40),Ps.callDataDeletionRequest.before($u),dc.after((e=>e(xu()))),Xt(`${Yc} - usersync config updated for ${au.length} submodules: `,au.map((e=>e.submodule.name))),ou=!0)}function $u(e,...t){Xt("UserID: received data deletion request; deleting all stored IDs..."),au.forEach((e=>{if("function"==typeof e.submodule.onDataDeletionRequest)try{e.submodule.onDataDeletionRequest(e.config,e.idObj,...t)}catch(i){ti(`Error calling onDataDeletionRequest for ID submodule ${e.submodule.name}`,i)}fu(e)})),e.apply(this,t)}function Zu(e){return function(){return Promise.resolve(e.apply(this,arguments))}}!function(e,{delay:t=vt.timeout}={}){nu=void 0,au=[],su=[],ou=!1,Xc=[],Tu=function({delay:e=vt.timeout}={}){const t=bt(),i=bt();let n,r,o=!1;function a(e){return r=cu().fork(),null!=n&&n.reject(Au),n=bt(),vt.race([e,n.promise]).finally(r.startTiming("userId.total"))}let s=Xc,d=au;function l(e){return function(...t){if(s===Xc&&d===au)return e(...t)}}function c(){return bs.promise.finally(r.startTiming("userId.init.consent"))}let u=a(vt.all([Wn,t.promise]).then(c).then(l((()=>{Ou(s,d)}))).then((()=>i.promise.finally(r.startTiming("userId.callbacks.pending")))).then(l((()=>{const e=s.filter((e=>li(e.callback)));if(e.length)return new vt((t=>vu(e,t,s)))}))));return function({refresh:n=!1,submoduleNames:r=null,ready:p=!1}={}){return p&&!o&&(o=!0,t.resolve(),iu>0?i.resolve():Xr(Fe.AUCTION_END,(function t(){eo(Fe.AUCTION_END,t),e(tu).then(i.resolve)}))),n&&o&&(u=a(u.catch((()=>null)).then(c).then(l((()=>{const e=Ou(s,d.filter((e=>null==r||r.includes(e.submodule.name))),!0).filter((e=>null!=e.callback));if(e.length)return new vt((t=>vu(e,t,s)))}))))),u}}({delay:t}),null!=ru&&ru(),lu=[],ru=e.getConfig("userSync",(e=>{const t=e.userSync;t&&(nu=t.ppid,t.userIds&&(su=t.userIds,tu=pi(t.syncDelay)?t.syncDelay:_r.syncDelay,iu=pi(t.auctionDelay)?t.auctionDelay:_r.auctionDelay,Lu(),function(e,t){if(e){const i={},n=new Map(t.map((e=>e.submodule.aliasName?[e.submodule.aliasName,e.submodule.name]:[])));Object.keys(e).forEach((t=>{const r=ui(e[t])?[...e[t]].reverse():[];i[t]=r.map((e=>n.has(e)?n.get(e):e))})),du=i}else du={}}(t.idPriority,au),Tu({ready:!0})))})),It().getUserIds=Cu,It().getUserIdsAsEids=_u,It().getEncryptedEidsForSource=Zu(Su),It().registerSignalSources=Uu,It().refreshUserIds=Zu(Pu),It().getUserIdsAsync=Zu(Ru),It().getUserIdsAsEidBySource=Eu}(pt),Hn("userId",(function(e){e.findRootDomain=nd,_e(lu,(t=>t.name===e.name))||(lu.push(e),hs.register(Un,e.name,e.gvlid),Lu(),Tu({refresh:!0,submoduleNames:[e.name]}))}),{postInstallAllowed:!0}),ed({type:Ys,name:"userExtEids",fn:function(e,t,i){var n,r;const o=At(i,"bidRequests.0.userIdAsEids");o&&Object.keys(o).length>0&&Tt(e,"user.ext.eids",o.concat((null==(r=null==(n=e.user)?void 0:n.ext)?void 0:r.eids)||[]))}});const Wu="id5id",Yu="User ID - ID5 submodule: ",Gu="id5-sync.com",Hu=kr({moduleType:Un,moduleName:"id5Id"}),Qu={name:"id5Id",gvlid:131,decode(e,t){let i,n,r={};if(!e||"string"!=typeof e.universal_uid)return;i=e.universal_uid,r=e.ext||r,n=e.publisherTrueLinkId;let o={id5id:{uid:i,ext:r}};mi(r.euid)&&(o.euid={uid:r.euid.uids[0].id,source:r.euid.source,ext:{provider:Gu}}),n&&(o.trueLinkId={uid:n});switch(At(e,"ab_testing.result")){case"control":Xt(Yu+"A/B Testing - user is in the Control Group: ID5 ID is NOT exposed"),Tt(o,"id5id.ext.abTestingControlGroup",!0);break;case"error":ti(Yu+"A/B Testing ERROR! controlGroupPct must be a number >= 0 and <= 1");break;case"normal":Xt(Yu+"A/B Testing - user is NOT in the Control Group"),Tt(o,"id5id.ext.abTestingControlGroup",!1)}return Xt(Yu+"Decoded ID",o),o},getId(e,t,i){if(!function(e){if(!e||!e.params||!e.params.partner)return ti(Yu+"partner required to be defined"),!1;const t=e.params.partner;if("string"==typeof t||t instanceof String){let i=parseInt(t);if(isNaN(i)||i<0)return ti(Yu+"partner required to be a number or a String parsable to a positive integer"),!1;e.params.partner=i}else if("number"!=typeof t)return ti(Yu+"partner required to be a number or a String parsable to a positive integer"),!1;if(!e.storage||!e.storage.type||!e.storage.name)return ti(Yu+"storage required to be set"),!1;e.storage.name!==Wu&&ei(Yu+`storage name recommended to be '${Wu}'.`);return!0}(e))return;if(!Xu(t))return void Xt(Yu+"Skipping ID5 local storage write because no consent given.");return{callback:function(n){new Ju(e,t,i,ms.getConsentData(),fs.getConsentData()).execute().then((e=>{n(e)})).catch((e=>{ti(Yu+"getId fetch encountered an error",e),n()}))}}},extendId:(e,t,i)=>Xu(t)?(Xt(Yu+"using cached ID",i),i&&(i.nbPage=Ku(i)),i):(Xt(Yu+"No consent given for ID5 local storage writing, skipping nb increment."),i),eids:{id5id:{getValue:function(e){return e.uid},source:Gu,atype:1,getUidExt:function(e){if(e.ext)return e.ext}},euid:{getValue:function(e){return e.uid},getSource:function(e){return e.source},atype:3,getUidExt:function(e){if(e.ext)return e.ext}},trueLinkId:{getValue:function(e){return e.uid},getSource:function(e){return"true-link-id5-sync.com"},atype:1,getUidExt:function(e){if(e.ext)return e.ext}}}};class Ju{constructor(e,t,i,n,r){S(this,f),this.submoduleConfig=e,this.gdprConsentData=t,this.cacheIdObj=i,this.usPrivacyData=n,this.gppData=r}async execute(){const e=U(this,f,y).call(this);if(!U(this,f,g).call(this))return U(this,f,b).call(this,e);try{return await U(this,f,h).call(this,e)}catch(t){return ti(Yu+"Error while performing ID5 external module flow. Continuing with regular flow.",t),U(this,f,b).call(this,e)}}}function Ku(e){return e&&void 0!==e.nbPage?e.nbPage+1:1}function Xu(e){const t=e&&"boolean"==typeof e.gdprApplies&&e.gdprApplies,i=At(e,"vendorData.purpose.consents.1"),n=At(e,`vendorData.vendor.consents.${131..toString()}`);return!!(!t||i&&n)}f=new WeakSet,g=function(){return"string"==typeof this.submoduleConfig.params.externalModuleUrl},h=async function(e){await async function(e){return new vt(((t,i)=>{if(window.id5Prebid)t();else try{xn(e,"id5",t)}catch(n){i(n)}}))}(this.submoduleConfig.params.externalModuleUrl);const t=await e;return U(this,f,v).call(this).fetchId5Id(t,this.submoduleConfig.params,ds(),this.gdprConsentData,this.usPrivacyData,this.gppData)},v=function(){return window.id5Prebid&&window.id5Prebid.integration},b=async function(e){const t=await e,i=await U(this,f,w).call(this,t.extensionsCall),n=await U(this,f,I).call(this,t.fetchCall,i);return U(this,f,T).call(this,n)},y=async function(){let e=this.submoduleConfig.params.configUrl||"https://id5-sync.com/api/config/prebid";const t=await fn(e,{method:"POST",body:JSON.stringify({...this.submoduleConfig,bounce:!0}),credentials:"include"});if(!t.ok)throw new Error("Error while calling config endpoint: ",t);const i=await t.json();return Xt(Yu+"config response received from the server",i),i},w=async function(e){if(void 0===e)return;const t=e.url,i=e.method||"GET",n="GET"===i?void 0:JSON.stringify(e.body||{}),r=await fn(t,{method:i,body:n});if(!r.ok)throw new Error("Error while calling extensions endpoint: ",r);const o=await r.json();return Xt(Yu+"extensions response received from the server",o),o},I=async function(e,t){const i=e.url,n=e.overrides||{},r=JSON.stringify({...U(this,f,A).call(this),...n,extensions:t}),o=await fn(i,{method:"POST",body:r,credentials:"include"});if(!o.ok)throw new Error("Error while calling fetch endpoint: ",o);const a=await o.json();return Xt(Yu+"fetch response received from the server",a),a},A=function(){const e=this.submoduleConfig.params,t=this.gdprConsentData&&"boolean"==typeof this.gdprConsentData.gdprApplies&&this.gdprConsentData.gdprApplies?1:0,i=ds(),n=this.cacheIdObj?this.cacheIdObj.signature:void 0,r=Ku(this.cacheIdObj),o=window.id5Bootstrap?window.id5Bootstrap.getTrueLinkInfo():{booted:!1},a={partner:e.partner,gdpr:t,nbPage:r,o:"pbjs",tml:i.topmostLocation,ref:i.ref,cu:i.canonicalUrl,top:i.reachedTop?1:0,u:i.stack[0]||window.location.href,v:"9.10.0",storage:this.submoduleConfig.storage,localStorage:Hu.localStorageIsEnabled()?1:0,true_link:o};!t||void 0===this.gdprConsentData.consentString||gi(this.gdprConsentData.consentString)||hi(this.gdprConsentData.consentString)||(a.gdpr_consent=this.gdprConsentData.consentString),void 0===this.usPrivacyData||gi(this.usPrivacyData)||hi(this.usPrivacyData)||(a.us_privacy=this.usPrivacyData),this.gppData&&(a.gpp_string=this.gppData.gppString,a.gpp_sid=this.gppData.applicableSections),void 0===n||hi(n)||(a.s=n),void 0===e.pd||hi(e.pd)||(a.pd=e.pd),void 0===e.provider||hi(e.provider)||(a.provider=e.provider);const s=e.abTesting||{enabled:!1};return s.enabled&&(a.ab_testing={enabled:!0,control_group_pct:s.controlGroupPct}),a},T=function(e){try{e.privacy&&window.id5Bootstrap&&window.id5Bootstrap.setPrivacy&&window.id5Bootstrap.setPrivacy(e.privacy)}catch(t){ti(Yu+"Error while writing privacy info into local storage.",t)}return e},Qn("userId",Qu);const ep=kr({moduleType:Un,moduleName:"sharedId"}),tp="cookie",ip="html5",np="_pubcid_optout",rp="PublisherCommonId";function op(e,t){if(t===tp)return ep.getCookie(e);if(t===ip&&ep.hasLocalStorage()){const t=ep.getDataFromLocalStorage(`${e}_exp`);if(!t)return ep.getDataFromLocalStorage(e);if(new Date(t).getTime()-Date.now()>0)return ep.getDataFromLocalStorage(e)}}function ap(e,t){return function(i,n){t?sp(t,e,(()=>{i(n()||e)}))():i(e)}}function sp(e,t="",i){if(!e)return;const n=Ji(e);n.search.id=encodeURIComponent("pubcid:"+t);const r=Ki(n);return function(){Ii(r,i)}}function dp(){return!!(ep.cookiesAreEnabled()&&op(np,tp)||ep.hasLocalStorage()&&op(np,ip))}var lp,cp;Qn("userId",{name:"sharedId",aliasName:"pubCommonId",gvlid:cs,decode(e,t){if(dp())return void Xt("PubCommonId decode: Has opted-out");Xt(" Decoded value PubCommonId "+e);return{pubcid:e}},getId:function(e={},t,i){if(dp())return void Xt("PubCommonId: Has opted-out");if(gs.getCoppa())return void Xt("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");const{params:{create:n=!0,pixelUrl:r}={}}=e;let o=i;if(!o){try{"object"==typeof window[rp]&&(o=window[rp].getId())}catch(a){}o||(o=n&&Oi()?zt():void 0)}return{id:o,callback:ap(o,r)}},extendId:function(e={},t,i){if(dp())return Xt("PubCommonId: Has opted-out"),{id:void 0};if(gs.getCoppa())return void Xt("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");const{params:{extend:n=!1,pixelUrl:r}={}}=e;if(n){if(r){return{callback:sp(r,i)}}return{id:i}}},domainOverride:(lp=ep,cp="sharedId",function(){const e=document.domain.split("."),t=`_gd${Date.now()}_${cp}`;for(let i,n,r=0;r<e.length;r++){const o=e.slice(r).join(".");if(lp.setCookie(t,"1",void 0,void 0,o),n=lp.getCookie(t),lp.setCookie(t,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,o),"1"!==n)return i;i=o}}),eids:{pubcid:{source:"pubcid.org",atype:1}}});const up="criteo",pp=kr({moduleType:Un,moduleName:up}),mp="cto_bidid",fp="cto_bundle",gp="html5",hp="cookie",vp=new Date(0).toString(),bp=new Date(Ni()+33696e6).toString();function yp(e,t=!1){const i=Ji(e,{noDecodeWholeURL:!0});return t?`${i.hostname}`:`${i.protocol}://${i.hostname}${i.port?":"+i.port:""}/`}function wp(e,t){var i,n;return(null==(i=null==e?void 0:e.storage)?void 0:i.type)===gp?pp.getDataFromLocalStorage(t):(null==(n=null==e?void 0:e.storage)?void 0:n.type)===hp?pp.getCookie(t):pp.getCookie(t)||pp.getDataFromLocalStorage(t)}function Ip(e,t,i,n){var r,o;t&&i&&((null==(r=null==e?void 0:e.storage)?void 0:r.type)===gp?pp.setDataInLocalStorage(t,i):((null==(o=null==e?void 0:e.storage)?void 0:o.type)===hp||pp.setDataInLocalStorage(t,i),Ap(t,i,bp,n,!0)))}function Ap(e,t,i,n,r){const o=n.split(".");for(let s=0;s<o.length;++s){const n=o.slice(o.length-s-1,o.length).join(".");try{if(pp.setCookie(e,t,i,null,"."+n),r){const i=pp.getCookie(e);if(i&&i===t)break}}catch(a){}}}function Tp(e,t,i){var n,r,o,a;const s=(void 0===(null==(n=null==e?void 0:e.storage)?void 0:n.type)||(null==(r=null==e?void 0:e.storage)?void 0:r.type)===hp)&&pp.cookiesAreEnabled(),d=(void 0===(null==(o=null==e?void 0:e.storage)?void 0:o.type)||(null==(a=null==e?void 0:e.storage)?void 0:a.type)===gp)&&pp.localStorageIsEnabled(),l=yp(ds().page),c=yp(document.location.href,!0),u="undefined"!=typeof criteo_pubtag,p=function(e,t,i,n,r,o,a){let s=`https://gum.criteo.com/sid/json?origin=prebid${e?"&topUrl="+encodeURIComponent(e):""}${t?"&domain="+encodeURIComponent(t):""}${i?"&bundle="+encodeURIComponent(i):""}${n?"&info="+encodeURIComponent(n):""}${r?"&cw=1":""}${a?"&pbt=1":""}${o?"&lsw=1":""}`;const d=ms.getConsentData();d&&(s+=`&us_privacy=${encodeURIComponent(d)}`);const l=ps.getConsentData();l&&(s=s+""+(l.consentString?"&gdprString="+encodeURIComponent(l.consentString):""),s=s+"&gdpr="+(!0===l.gdprApplies?1:0));const c=fs.getConsentData();return c&&(s=s+""+(c.gppString?"&gpp="+encodeURIComponent(c.gppString):""),s=s+""+(c.applicableSections?"&gpp_sid="+encodeURIComponent(c.applicableSections):"")),s}(l,c,t.bundle,t.dnaBundle,s,d,u),m={success:t=>{const n=JSON.parse(t);if(n.pixels&&n.pixels.forEach((t=>function(e,t,i){i.writeBundleInStorage&&i.bundlePropertyName&&i.storageKeyName?mn(i.pixelUrl,{success:n=>{if(n){const r=JSON.parse(n);r&&r[i.bundlePropertyName]&&Ip(e,i.storageKeyName,r[i.bundlePropertyName],t)}},error:e=>{ti("criteoIdSystem: unable to sync user id",e)}},void 0,{method:"GET",withCredentials:!0}):Ii(i.pixelUrl)}(e,c,t))),n.acwsUrl){("string"==typeof n.acwsUrl?[n.acwsUrl]:n.acwsUrl).forEach((e=>Ii(e)))}else n.bundle&&Ip(e,fp,n.bundle,c);if(n.bidId){Ip(e,mp,n.bidId,c);const t={criteoId:n.bidId};i(t)}else Ap(r=mp,"",vp,c,!0),pp.removeDataFromLocalStorage(r),i();var r},error:e=>{ti("criteoIdSystem: unable to sync user id",e),i()}};mn(p,m,void 0,{method:"GET",contentType:"application/json",withCredentials:!0})}Qn("userId",{name:up,gvlid:91,decode:e=>e,getId(e){let t=function(e){return{bundle:wp(e,fp),dnaBundle:wp(e,"cto_dna_bundle"),bidId:wp(e,mp)}}(e);return{id:t.bidId?{criteoId:t.bidId}:void 0,callback:i=>Tp(e,t,i)}},eids:{criteoId:{source:"criteo.com",atype:1}}});const xp="identityLink",kp=kr({moduleType:Un,moduleName:xp}),Cp="_lr_env";function _p(e,t,i){const n={success:e=>{let i;if(e)try{i=JSON.parse(e)}catch(n){Xt(n)}t(i&&i.envelope?i.envelope:"")},error:e=>{Xt("identityLink: identityLink: ID fetch encountered an error",e),t()}};i.notUse3P||kp.getCookie("_lr_retry_request")||(!function(){let e=new Date;e.setTime(e.getTime()+36e5),kp.setCookie("_lr_retry_request","true",e.toUTCString())}(),Xt("identityLink: A 3P retrieval is attempted!"),Ep(!1),mn(e,n,void 0,{method:"GET",withCredentials:!0}))}function Ep(e){let t=new Date;t.setTime(t.getTime()+2592e6),kp.setCookie("_lr_env_src_ats",e,t.toUTCString())}Qn("userId",{name:xp,gvlid:97,decode:e=>({idl_env:e}),getId(e,t){const i=e&&e.params||{};if(!i||"string"!=typeof i.pid)return void ti("identityLink: requires partner id to be defined");const n=t&&"boolean"==typeof t.gdprApplies&&t.gdprApplies?1:0,r=n?t.consentString:"";if(n&&(!r||""===r))return void Xt("identityLink: Consent string is required to call envelope API.");const o=fs.getConsentData(),a=!(!o||!o.gppString)&&o.gppString,s=!!(o&&o.gppString&&o.applicableSections.length>0&&-1!==o.applicableSections[0])&&o.applicableSections[0],d=a&&s,l=`https://api.rlcdn.com/api/identity/envelope?pid=${i.pid}${n?"&ct=4&cv="+r:""}${d?"&gpp="+a+"&gpp_sid="+s:""}`;let c;return c=function(e){if(window.ats&&window.ats.retrieveEnvelope)Xt("identityLink: ATS exists!"),window.ats.retrieveEnvelope((function(t){t?(Xt("identityLink: An envelope can be retrieved from ATS!"),Ep(!0),e(JSON.parse(t).envelope)):_p(l,e,i)}));else{let t=function(){let e=kp.getCookie(Cp)||kp.getDataFromLocalStorage(Cp);return e?window.atob(e):void 0}();t?(Xt("identityLink: LiveRamp envelope successfully retrieved from storage!"),e(JSON.parse(t).envelope)):_p(l,e,i)}},{callback:c}},eids:{idl_env:{source:"liveramp.com",atype:3}}});const Sp="pairId",Bp="pairId",Up=kr({moduleType:Un,moduleName:Sp});function Pp(e){return Up.localStorageIsEnabled()?Up.getDataFromLocalStorage(e):null}function Rp(e){return Up.cookiesAreEnabled()?Up.getCookie(e):null}Qn("userId",{name:Sp,gvlid:755,decode:e=>e&&Array.isArray(e)?{pairId:e}:void 0,getId(e){const t=Pp(Bp)||Rp(Bp);let i=[];if(t&&"string"==typeof t)try{i=i.concat(JSON.parse(atob(t)))}catch(r){Xt(r)}const n=e&&e.params||{};if(n&&n.liveramp){let e=n.liveramp.storageKey||"_lr_pairId";const t=Pp(e)||Rp(e);if(t)try{const e=atob(t);if(e){const t=JSON.parse(e);t&&"object"==typeof t&&t.envelope?i=i.concat(t.envelope):Xt("Pairid: Parsed object is not valid or does not contain envelope")}else Xt("Pairid: Decoded value is empty")}catch(r){Xt("Pairid: Error parsing JSON: ",r)}else Xt("Pairid: liverampValue for pairId from storage is empty or null")}if(0!=i.length)return{id:i};Xt("PairId not found.")},eids:{pairId:{source:"google.com",atype:571187}}});const Vp=kr({bidderCode:"amx"}),Np=/\.com?\.\w{2,4}$/,jp=/^\s*<\??(?:vast|xml)/i,Op="https://1x1.a-mo.net/",Dp=Op+"hbx/",Fp=Op+"e",qp="__amuidpb";const Mp=(e,t)=>e.concat(At(t,`${Or}.sizes`,[])||[]).concat(At(t,`${jr}.sizes`,[])||[]).sort(((e,t)=>t[0]*t[1]-e[0]*e[1]))[0];function zp(e,t){return null==e?[]:e.map(t).reduce(((e,t)=>null!=t&&e.concat(t)),[])}function Lp(e){return null!=(t=e.adm)&&jp.test(t)?jr:Or;var t}const $p=(e,t)=>null==e||typeof e===t;function Zp(e){const t=e.hostname.split("."),i=t.slice(t.length-(Np.test(e.hostname)?3:2)).join(".");return btoa(i).replace(/=+$/,"")}const Wp=encodeURIComponent;function Yp(){try{return Vp.getDataFromLocalStorage(qp)}catch(e){return null}}function Gp(e){const t=[];return Object.keys(e||{}).forEach((i=>{t.push(Wp(i)+"="+Wp(String(e[i])))})),Wp(t.join("&"))}function Hp(e){const t={};return vi(e,(e=>{t[e.bidId]=function(e){const t=Mp(e.sizes,e.mediaTypes)||[0,0],i=e.mediaType===jr||jr in e.mediaTypes,n=i||t[1]>100,r=At(e,"params.tagId"),o=null!=e.params&&"string"==typeof e.params.adUnitId&&""!==e.params.adUnitId?e.params.adUnitId:e.adUnitCode,a=[e.sizes,At(e,`mediaTypes.${Or}.sizes`,[])||[],At(e,`mediaTypes.${jr}.sizes`,[])||[]],s=At(e,`mediaTypes.${jr}`,{})||{},d={au:o,av:n,vd:s,vr:i,ms:a,aw:t[0],ah:t[1],tf:0,sc:e.schain||{},f:Kp(Xp(e)),rtb:e.ortb2Imp};"string"==typeof r&&r.length>0&&(d.i=r);return d}(e)})),t}const Qp=(e,t)=>Ii(`${Dp}g_${e}?${Qi({...t,ts:Date.now(),eid:Mt()})}`),Jp=0;function Kp(e){return"number"==typeof e&&isFinite(e)&&e>0?e:Jp}function Xp(e){if(!li(e.getFloor))return At(e,"params.floor",Jp);try{return e.getFloor({currency:"USD",mediaType:"*",size:"*",bidRequest:e}).floor}catch(t){return ti("call to getFloor failed: ",t),Jp}}function em(e,t,i){return At(e,"refererInfo."+t,i)}function tm(e,t){if(null==e)return!1;const i=e[t];return null!=i&&(!!("*"===i.bidders||ui(i.bidders)&&-1!==i.bidders.indexOf("amx"))&&(null==i.filter||"include"===i.filter))}function im(){const e=pt.getConfig("userSync");if(null==e)return{d:0,l:0,t:0,e:!0};const t={d:e.syncDelay,l:e.syncsPerBidder,t:0,e:e.syncEnabled};return tm(e.filterSettings,"all")?(t.t=0,t):(tm(e.filterSettings,"iframe")&&(t.t|=2),tm(e.filterSettings,"image")&&(t.t|=1),t)}function nm(e){var t,i;return null!=(null==e?void 0:e.gppConsent)?e.gppConsent:(null==(i=null==(t=null==e?void 0:e.ortb2)?void 0:t.regs)?void 0:i.gpp)??{gppString:"",applicableSections:""}}function rm(e){if(null==e.refererInfo)return{r:"",t:!1,c:"",l:0,s:[]};const t=e.refererInfo;return{r:t.topmostLocation,t:t.reachedTop,l:t.numIframes,s:t.stack,c:t.canonicalUrl}}function om(e){return!(null==e?void 0:e.gdprApplies)||!0===At(e,"vendorData.purpose.consents.1")}Ga({code:"amx",gvlid:737,supportedMediaTypes:[Or,jr],isBidRequestValid:e=>$p(At(e,"params.endpoint",null),"string")&&$p(At(e,"params.tagId",null),"string"),buildRequests(e,t){const i=Ji((null==(n=t.refererInfo)?void 0:n.topmostLocation)||window.location.href);var n;const r=At(e[0],"params.tagId",null),o=At(e[0],"params.testMode",0),a=null!=e[0]?e[0]:{bidderRequestsCount:0,bidderWinsCount:0,bidRequestsCount:0};var s,d;return{data:{a:zt(),B:0,b:i.host,brc:a.bidderRequestsCount||0,bwc:a.bidderWinsCount||0,trc:a.bidRequestsCount||0,tm:(d=o,!0===d||1===d||"true"===d),V:"9.10.0",vg:"slmpbjs",i:o&&null!=r?r:Zp(i),l:{},f:.01,cv:"pba1.3.4",st:"prebid",h:screen.height,w:screen.width,gs:At(t,"gdprConsent.gdprApplies",""),gc:At(t,"gdprConsent.consentString",""),gpp:nm(t),u:em(t,"page",i.href),do:em(t,"site",i.hostname),re:em(t,"ref"),am:Yp(),usp:t.uspConsent||"1---",smt:1,d:"",m:Hp(e),cpp:pt.getConfig("coppa")?1:0,fpd2:t.ortb2,tmax:t.timeout,amp:em(t,"isAmp",null),ri:rm(t),sync:im(),eids:(s=e.reduce(((e,t)=>(null==t||null==t.userIdAsEids||vi(t.userIdAsEids,(t=>{null!=t&&(e[t.source]=t)})),e)),{}),null!=Object.values?Object.values(s):Object.keys(s).map((e=>s[e])))},method:"POST",browsingTopics:!0,url:At(e[0],"params.endpoint","https://prebid.a-mo.net/a/c"),withCredentials:!0}},getUserSyncs(e,t,i,n,r){const o={url:`https://prebid.a-mo.net/isyn?${Qi({gdpr_consent:Wp((null==i?void 0:i.consentString)||""),gdpr:Wp((null==i?void 0:i.gdprApplies)?1:0),us_privacy:Wp(n||""),gpp:Wp((null==r?void 0:r.gppString)||""),gpp_sid:Wp((null==r?void 0:r.applicableSections)||"")})}`,type:"iframe"};if(null==t||0===t.length)return e.iframeEnabled?[o]:[];const a=[];let s=!1;return vi(t,(function({body:t}){null!=t&&null!=t.p&&t.p.hreq&&vi(t.p.hreq,(function(t){const i=-1!==t.indexOf("__st=iframe")?"iframe":"image";(e.iframeEnabled||"image"===i)&&(s=s||"iframe"===i||-1!==t.indexOf("cchain"),a.push({url:t,type:i}))}))})),!s&&a.length<2&&a.push(o),a},interpretResponse(e,t){const i=e.body;if(null==i||"string"==typeof i)return[];i.am&&"string"==typeof i.am&&function(e){try{Vp.setDataInLocalStorage(qp,e)}catch(t){}}(i.am);const n=pt.getConfig("bidderSettings"),r=!!((null==n?void 0:n.amx)??(null==n?void 0:n.standard)??{}).allowAlternateBidderCodes;return zp(Object.keys(i.r),(e=>zp(i.r[e],(i=>i.b.map((i=>{const n=Lp(i),o=i.adm;if(null==o)return null;const a=function(e,t,i){if(null!=e.w&&e.w>1&&null!=e.h&&e.h>1)return[e.w,e.h];const n=t.m[i];return null==n?[0,0]:[n.aw,n.ah]}(i,t.data,e),s=n===Or?240:300,{bc:d,ds:l}=i.ext??{};return{...null!=d&&r?{bidderCode:d}:{},requestId:e,cpm:i.price,width:a[0],height:a[1],creativeId:i.crid,currency:"USD",netRevenue:!0,[n===jr?"vastXml":"ad"]:o,meta:{advertiserDomains:i.adomain,mediaType:n,...null!=l?{demandSource:l}:{}},mediaType:n,ttl:"number"==typeof i.exp?i.exp:s}})))).filter((e=>null!=e))))},onSetTargeting(e){null!=e&&Qp("pbst",{A:e.bidder,w:e.width,h:e.height,bid:e.adId,c1:e.mediaType,np:e.cpm,aud:e.requestId,a:e.adUnitCode,c2:Gp(e.adserverTargeting),cn3:e.timeToRespond})},onTimeout(e){if(null==e||!e.length)return;let t=null;const i=e.map((e=>{const i=e.params||{},n=function(e){return null==e.sizes||0===e.sizes.length?[0,0]:e.sizes[0]}(e),{domain:r,page:o,ref:a}=null!=e.ortb2&&null!=e.ortb2.site?e.ortb2.site:{};return null==t&&(t={do:r,u:o,U:Yp(),re:a,V:"9.10.0",vg:"slmpbjs"}),{A:e.bidder,mid:i.tagId,a:i.adunitId||e.adUnitCode,bid:e.bidId,n:"g_pbto",aud:e.transactionId,w:n[0],h:n[1],cn:e.timeout,cn2:e.bidderRequestsCount,cn3:e.bidderWinsCount}})),n=JSON.stringify({c:t,e:i});fn(Fp,{body:n,keepalive:!0,withCredentials:!0,method:"POST"}).catch((e=>{}))},onBidWon(e){null!=e&&Qp("pbwin",{A:e.bidder,w:e.width,h:e.height,bid:e.adId,C:e.mediaType===Or?0:1,np:e.cpm,a:e.adUnitCode})}});const am={1:"IAB20-3",2:"IAB18-5",3:"IAB10-1",4:"IAB2-3",5:"IAB19-8",6:"IAB22-1",7:"IAB18-1",8:"IAB12-3",9:"IAB5-1",10:"IAB4-5",11:"IAB13-4",12:"IAB8-7",13:"IAB9-7",14:"IAB7-1",15:"IAB20-18",16:"IAB10-7",17:"IAB19-18",18:"IAB13-6",19:"IAB18-4",20:"IAB1-5",21:"IAB1-6",22:"IAB3-4",23:"IAB19-13",24:"IAB22-2",25:"IAB3-9",26:"IAB17-18",27:"IAB19-6",28:"IAB1-7",29:"IAB9-30",30:"IAB20-7",31:"IAB20-17",32:"IAB7-32",33:"IAB16-5",34:"IAB19-34",35:"IAB11-5",36:"IAB12-3",37:"IAB11-4",38:"IAB12-3",39:"IAB9-30",41:"IAB7-44",42:"IAB7-1",43:"IAB7-30",50:"IAB19-30",51:"IAB17-12",52:"IAB19-30",53:"IAB3-1",55:"IAB13-2",56:"IAB19-30",57:"IAB19-30",58:"IAB7-39",59:"IAB22-1",60:"IAB7-39",61:"IAB21-3",62:"IAB5-1",63:"IAB12-3",64:"IAB20-18",65:"IAB11-2",66:"IAB17-18",67:"IAB9-9",68:"IAB9-5",69:"IAB7-44",71:"IAB22-3",73:"IAB19-30",74:"IAB8-5",78:"IAB22-1",85:"IAB12-2",86:"IAB22-3",87:"IAB11-3",112:"IAB7-32",113:"IAB7-32",114:"IAB7-32",115:"IAB7-32",118:"IAB9-5",119:"IAB9-5",120:"IAB9-5",121:"IAB9-5",122:"IAB9-5",123:"IAB9-5",124:"IAB9-5",125:"IAB9-5",126:"IAB9-5",127:"IAB22-1",132:"IAB1-2",133:"IAB19-30",137:"IAB3-9",138:"IAB19-3",140:"IAB2-3",141:"IAB2-1",142:"IAB2-3",143:"IAB17-13",166:"IAB11-4",175:"IAB3-1",176:"IAB13-4",182:"IAB8-9",183:"IAB3-5"},sm=["user.keywords"].concat(ld.flatMap((e=>["keywords","content.keywords"].map((t=>`${e}.${t}`)))));function dm(e,...t){return function(...e){const t=new Set;return e.filter((e=>e)).flatMap((e=>Array.isArray(e)?e:e.split(","))).map((e=>e.replace(/^\s*/,"").replace(/\s*$/,""))).filter((e=>e)).forEach((e=>t.add(e))),Array.from(t.keys())}(...sm.map((t=>At(e,t))),...t)}const lm={526:"1plusX",527:"1plusX",541:"captify_segments",540:"perid"},cm=["user.data"].concat(ld.map((e=>`${e}.content.data`)));function um(e,t,i){return null==t?i:ci(t)?t:pi(t)?t.toString():void ei("Unsuported type for param: "+e+" required type: String")}function pm(e){const t={};return e.forEach((e=>{if(-1!==e.indexOf("=")){let i=e.split("="),n=i[0],r=i[1];t.hasOwnProperty(n)?t[n].push(r):t[n]=[r]}else t.hasOwnProperty(e)||(t[e]=[])})),t}function mm(...e){return function(e,t="keywords"){const i=[];return vi(e,((e,n)=>{if(ui(e)){let i=[];vi(e,(e=>{((e=um(t+"."+n,e))||""===e)&&i.push(e)})),e=i}else{if(!ci(e=um(t+"."+n,e)))return;e=[e]}e=e.filter((e=>""!==e));const r={key:n};e.length>0&&(r.value=e),i.push(r)})),i}(en(...e.map((e=>Object.fromEntries(Object.entries(e||{}).map((([e,t])=>[e,pi(t)||ci(t)?[t]:t])))))))}function fm(e,...t){return mm(function(e){return pm(dm(e))}(e),function(e){let t={};return cm.forEach((i=>{(At(e,i)||[]).forEach((e=>{const i=lm[At(e,"ext.segtax")];i&&e.segment.forEach((e=>{t[i]?t[i].push(e.id):t[i]=[e.id]}))}))})),t}(e),...t)}function gm(e){return e.replace(/(?:^|\.?)([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")}function hm(e,t){return Object.keys(e).forEach((i=>{var n,r;t[i]&&(li(e[i])?t[i]=e[i](t[i]):t[i]=(n=e[i],r=t[i],"string"===n?r&&r.toString():"number"===n?Number(r):r),isNaN(t[i])&&delete t.key)})),t}function vm(e,t){let i=[];for(let n=0;n<Math.ceil(e.length/t);n++){let r=n*t,o=r+t;i.push(e.slice(r,o))}return i}const bm="appnexus",ym="https://ib.adnxs.com/ut/v3/prebid",wm="https://ib.adnxs-simple.com/ut/v3/prebid",Im=["id","minduration","maxduration","skippable","playback_method","frameworks","context","skipoffset"],Am=["minduration","maxduration","skip","skipafter","playbackmethod","api","startdelay","placement","plcmt"],Tm=["age","externalUid","external_uid","segments","gender","dnt","language"],xm=["geo","device_id"],km=["enabled","dongle","member_id","debug_timeout"],Cm={apn_debug_dongle:"dongle",apn_debug_member_id:"member_id",apn_debug_timeout:"debug_timeout"},_m={playback_method:{unknown:0,auto_play_sound_on:1,auto_play_sound_off:2,click_to_play:3,mouse_over:4,auto_play_sound_unknown:5},context:{unknown:0,pre_roll:1,mid_roll:2,post_roll:3,outstream:4,"in-banner":5,"in-feed":6,interstitial:7,accompanying_content_pre_roll:8,accompanying_content_mid_roll:9,accompanying_content_post_roll:10}},Em={body:"description",body2:"desc2",cta:"ctatext",image:{serverName:"main_image",requiredParams:{required:!0}},icon:{serverName:"icon",requiredParams:{required:!0}},sponsoredBy:"sponsored_by",privacyLink:"privacy_link",salePrice:"saleprice",displayUrl:"displayurl"},Sm="<script",Bm=/\/\/cdn\.adnxs\.com\/v|\/\/cdn\.adnxs\-simple\.com\/v/,Um="trk.js",Pm=kr({bidderCode:bm}),Rm=new Map([[1,"Mobile/Tablet - General"],[2,"Personal Computer"],[3,"Connected TV"],[4,"Phone"],[5,"Tablet"],[6,"Connected Device"],[7,"Set Top Box"],[8,"OOH Device"]]);function Vm(e){var t;const i={};Object.keys(e.params).forEach((t=>{let i=gm(t);i!==t&&(e.params[i]=e.params[t],delete e.params[t])})),i.sizes=Nm(e.sizes),i.primary_size=i.sizes[0],i.ad_types=[],i.uuid=e.bidId,e.params.placement_id?i.id=parseInt(e.params.placement_id,10):i.code=e.params.inv_code;const n=si("ast_override_div");if(ci(n)&&""!==n){const t=decodeURIComponent(n).split(",").find((t=>t.startsWith(`${e.adUnitCode}:`)));if(t){const e=t.split(":")[1];e&&(i.force_creative_id=parseInt(e,10))}}i.allow_smaller_sizes=e.params.allow_smaller_sizes||!1,i.use_pmt_rule="boolean"==typeof e.params.use_payment_rule?e.params.use_payment_rule:"boolean"==typeof e.params.use_pmt_rule&&e.params.use_pmt_rule,i.prebid=!0,i.disable_psa=!0;let r=function(e){if(!li(e.getFloor))return e.params.reserve?e.params.reserve:null;let t=e.getFloor({currency:"USD",mediaType:"*",size:"*"});if(mi(t)&&!isNaN(t.floor)&&"USD"===t.currency)return t.floor;return null}(e);if(r&&(i.reserve=r),e.params.position)i.position={above:1,below:2}[e.params.position]||0;else{let t=At(e,"mediaTypes.banner.pos")||At(e,"mediaTypes.video.pos");0!==t&&1!==t&&3!==t||(i.position=3===t?2:t)}e.params.traffic_source_code&&(i.traffic_source_code=e.params.traffic_source_code),e.params.private_sizes&&(i.private_sizes=Nm(e.params.private_sizes)),e.params.supply_type&&(i.supply_type=e.params.supply_type),e.params.pub_click&&(i.pubclick=e.params.pub_click),e.params.ext_inv_code&&(i.ext_inv_code=e.params.ext_inv_code),e.params.publisher_id&&(i.publisher_id=parseInt(e.params.publisher_id,10)),e.params.external_imp_id&&(i.external_imp_id=e.params.external_imp_id);const o=mm(ci(a=At(e,"ortb2Imp.ext.data.keywords"))&&""!==a?pm(a.split(/\s*(?:,)\s*/)):{},null==(t=e.params)?void 0:t.keywords);var a;o.length>0&&(i.keywords=o);let s=At(e,"ortb2Imp.ext.gpid")||At(e,"ortb2Imp.ext.data.pbadslot");if(s&&(i.gpid=s),(e.mediaType===Nr||At(e,`mediaTypes.${Nr}`))&&(i.ad_types.push(Nr),0===i.sizes.length&&(i.sizes=Nm([1,1])),e.nativeParams)){const t=function(e){const t={};return Object.keys(e).forEach((i=>{const n=Em[i]&&Em[i].serverName||Em[i]||i,r=Em[i]&&Em[i].requiredParams;t[n]=Object.assign({},r,e[i]);if(!(n!==Em.image.serverName&&n!==Em.icon.serverName)&&t[n].sizes){let e=t[n].sizes;(Gi(e)||ui(e)&&e.length>0&&e.every((e=>Gi(e))))&&(t[n].sizes=Nm(t[n].sizes))}n===Em.privacyLink&&(t.privacy_supported=!0)})),t}(e.nativeParams);i[Nr]={layouts:[t]}}{const t=At(e,`mediaTypes.${jr}`),n=At(e,"mediaTypes.video.context");i.hb_source=t&&"adpod"===n?7:1,(e.mediaType===jr||t)&&i.ad_types.push(jr),(e.mediaType===jr||t&&"outstream"!==n)&&(i.require_asset_url=!0),e.params.video&&(i.video={},Object.keys(e.params.video).filter((e=>Ce(Im,e))).forEach((t=>{switch(t){case"context":case"playback_method":let n=e.params.video[t];n=ui(n)?n[0]:n,i.video[t]=_m[t][n];break;case"frameworks":break;default:i.video[t]=e.params.video[t]}})),e.params.video.frameworks&&ui(e.params.video.frameworks)&&(i.video_frameworks=e.params.video.frameworks)),t&&(i.video=i.video||{},Object.keys(t).filter((e=>Ce(Am,e))).forEach((e=>{switch(e){case"minduration":case"maxduration":"number"!=typeof i.video[e]&&(i.video[e]=t[e]);break;case"skip":"boolean"!=typeof i.video.skippable&&(i.video.skippable=1===t[e]);break;case"skipafter":"number"!=typeof i.video.skipoffset&&(i.video.skippoffset=t[e]);break;case"playbackmethod":if("number"!=typeof i.video.playback_method){let n=t[e];n=ui(n)?n[0]:n,n>=1&&n<=4&&(i.video.playback_method=n)}break;case"api":if(!i.video_frameworks&&ui(t[e])){let n=t[e].map((e=>{let t=4===e?5:5===e?4:e;if(t>=1&&t<=5)return t})).filter((e=>e));i.video_frameworks=n}break;case"startdelay":case"plcmt":case"placement":if("number"!=typeof i.video.context){const e=t.plcmt,n=t.placement,r=t.startdelay,o=function(e,t){if(!e)return;if(2===e){if(void 0===t)return;if(0===t)return"accompanying_content_pre_roll";if(-1===t)return"accompanying_content_mid_roll";if(-2===t)return"accompanying_content_post_roll"}else{if(3===e)return"interstitial";if(4===e)return"outstream"}}(e,r)||function(e){if(!e)return;if(2===e)return"in-banner";if(3===e)return"outstream";if(4===e)return"in-feed";if(5===e)return"intersitial"}(n)||function(e){if(!e)return;if(0===e)return"pre_roll";if(-1===e)return"mid_roll";if(-2===e)return"post_roll"}(r);i.video.context=_m.context[o]}}}))),e.renderer&&(i.video=Object.assign({},i.video,{custom_renderer_present:!0}))}return e.params.frameworks&&ui(e.params.frameworks)&&(i.banner_frameworks=e.params.frameworks),At(e,`mediaTypes.${Or}`)&&i.ad_types.push(Or),0===i.ad_types.length&&delete i.ad_types,i}function Nm(e){let t=[],i={};if(ui(e)&&2===e.length&&!ui(e[0]))i.width=parseInt(e[0],10),i.height=parseInt(e[1],10),t.push(i);else if("object"==typeof e)for(let n=0;n<e.length;n++){let r=e[n];i={},i.width=parseInt(r[0],10),i.height=parseInt(r[1],10),t.push(i)}return t}function jm(e){return!!e.params.user}function Om(e){return!!parseInt(e.params.member,10)}function Dm(e){if(e.params)return!!e.params.app}function Fm(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function qm(e){return!!e.debug}function Mm(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===Dr}function zm(e){let t=!1;const i=e.params,n=e.params.video;return i.frameworks&&ui(i.frameworks)&&(t=Ce(e.params.frameworks,6)),!t&&n&&n.frameworks&&ui(n.frameworks)&&(t=Ce(e.params.video.frameworks,6)),t}function Lm(e,t,i){gi(e.video)&&(e.video={}),e.video[t]=i}function $m(e,t){!function(e){try{const t=document.getElementById(e).querySelectorAll("div[id^='google_ads']");t[0]&&t[0].style.setProperty("display","none")}catch(t){}}(e.adUnitCode),function(e){try{const t=document.getElementById(e).querySelectorAll("script[id^='sas_script']");t[0].nextSibling&&"iframe"===t[0].nextSibling.localName&&t[0].nextSibling.style.setProperty("display","none")}catch(t){}}(e.adUnitCode),e.renderer.push((()=>{((null==t?void 0:t.defaultView)||window).ANOutstreamVideo.renderAd({tagId:e.adResponse.tag_id,sizes:[e.getSize().split("x")],targetId:e.adUnitCode,uuid:e.adResponse.uuid,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},Zm.bind(null,e))}))}function Zm(e,t,i){e.renderer.handleVideoEvent({id:t,eventName:i})}Ga({code:bm,gvlid:32,aliases:[{code:"appnexusAst",gvlid:32},{code:"emxdigital",gvlid:183},{code:"emetriq",gvlid:213},{code:"pagescience",gvlid:32},{code:"gourmetads",gvlid:32},{code:"matomy",gvlid:32},{code:"featureforward",gvlid:32},{code:"oftmedia",gvlid:32},{code:"adasta",gvlid:32},{code:"beintoo",gvlid:618},{code:"projectagora",gvlid:1032},{code:"stailamedia",gvlid:32},{code:"uol",gvlid:32},{code:"adzymic",gvlid:723}],supportedMediaTypes:[Or,jr,Nr],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.placement_id||e.params.member&&(e.params.invCode||e.params.inv_code))},buildRequests:function(e,t){var i,n,r,o,a,s;const d=(e=Fa(e)).map(Vm),l=_e(e,jm);let c={};!0===pt.getConfig("coppa")&&(c={coppa:!0}),l&&Object.keys(l.params.user).filter((e=>Ce(Tm,e))).forEach((e=>{let t=gm(e);if("segments"===e&&ui(l.params.user[e])){let i=[];l.params.user[e].forEach((e=>{pi(e)?i.push({id:e}):mi(e)&&i.push(e)})),c[t]=i}else"segments"!==e&&(c[t]=l.params.user[e])}));const u=_e(e,Dm);let p;u&&u.params&&u.params.app&&(p={},Object.keys(u.params.app).filter((e=>Ce(xm,e))).forEach((e=>p[e]=u.params.app[e])));const m=_e(e,Fm);let f;m&&m.params&&u.params.app&&u.params.app.id&&(f={appid:m.params.app.id});let g={},h={};const v=Pm.getCookie("apn_prebid_debug")||null;if(v)try{g=JSON.parse(v)}catch(k){ti("AppNexus Debug Auction Cookie Error:\n\n"+k)}else{Object.keys(Cm).forEach((e=>{let t=si(e);ci(t)&&""!==t&&(g[Cm[e]]=t,g.enabled=!0)})),g=hm({member_id:"number",debug_timeout:"number"},g);const t=_e(e,qm);t&&t.debug&&(g=t.debug)}g&&g.enabled&&Object.keys(g).filter((e=>Ce(km,e))).forEach((e=>{h[e]=g[e]}));const b=_e(e,Om),y=b?parseInt(b.params.member,10):0,w=e[0].schain,I=_e(e,zm),A={tags:[...d],user:c,sdk:{source:"pbjs",version:"9.10.0"},schain:w};I&&(A.iab_support={omidpn:"Appnexus",omidpv:"9.10.0"}),y>0&&(A.member_id=y),u&&(A.device=p),m&&(A.app=f),(null==(i=null==t?void 0:t.ortb2)?void 0:i.device)&&(A.device=A.device||{},en(A.device,function(e){const t={useragent:e.ua,devicetype:Rm.get(e.devicetype),make:e.make,model:e.model,os:e.os,os_version:e.osv,w:e.w,h:e.h,ppi:e.ppi,pxratio:e.pxratio};return Object.keys(t).reduce(((e,i)=>(t[i]&&(e[i]=t[i]),e)),{})}(t.ortb2.device)));let T=fm(Bi(t&&t.ortb2),Bi(pt.getConfig("appnexusAuctionKeywords"))||{});if(T.length>0&&(A.keywords=T),pt.getConfig("adpod.brandCategoryExclusion")&&(A.brand_category_uniqueness=!0),h.enabled&&(A.debug=h,Xt("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(h,null,4))),t&&t.gdprConsent&&(A.gdpr_consent={consent_string:t.gdprConsent.consentString,consent_required:t.gdprConsent.gdprApplies},t.gdprConsent.addtlConsent&&-1!==t.gdprConsent.addtlConsent.indexOf("~"))){let e=t.gdprConsent.addtlConsent,i=e.substring(e.indexOf("~")+1);A.gdpr_consent.addtl_consent=i.split(".").map((e=>parseInt(e,10)))}if(t&&t.uspConsent&&(A.us_privacy=t.uspConsent),(null==t?void 0:t.gppConsent)?A.privacy={gpp:t.gppConsent.gppString,gpp_sid:t.gppConsent.applicableSections}:(null==(r=null==(n=null==t?void 0:t.ortb2)?void 0:n.regs)?void 0:r.gpp)&&(A.privacy={gpp:t.ortb2.regs.gpp,gpp_sid:t.ortb2.regs.gpp_sid}),t&&t.refererInfo){let e={rd_ref:encodeURIComponent(t.refererInfo.topmostLocation),rd_top:t.refererInfo.reachedTop,rd_ifs:t.refererInfo.numIframes,rd_stk:t.refererInfo.stack.map((e=>encodeURIComponent(e))).join(",")},i=t.refererInfo.canonicalUrl;ci(i)&&""!==i&&(e.rd_can=i),A.referrer_detection=e}_e(e,Mm)&&e.filter(Mm).forEach((e=>{const t=function(e,t){const{durationRangeSec:i,requireExactDuration:n}=t.mediaTypes.video,r=function(e){const{adPodDurationSec:t,durationRangeSec:i,requireExactDuration:n}=e,r=Math.min(...i),o=Math.floor(t/r);return n?Math.max(o,i.length):o}(t.mediaTypes.video),o=Math.max(...i),a=e.filter((e=>e.uuid===t.bidId));let s=function(e,t){let i=[];for(let n=0;n<t;n++){let t=mi(e)?Bi(e):e;i.push(t)}return i}(...a,r);if(n){const e=vm(s,Math.ceil(r/i.length));i.forEach(((t,i)=>{e[i].map((e=>{Lm(e,"minduration",t),Lm(e,"maxduration",t)}))}))}else s.map((e=>Lm(e,"maxduration",o)));return s}(d,e),i=A.tags.filter((t=>t.uuid!==e.bidId));A.tags=[...i,...t]}));if(e[0].userId){let t=[];e[0].userIdAsEids.forEach((e=>{!e||!e.uids||e.uids.length<1||e.uids.forEach((i=>{let n={source:e.source,id:i.id};"adserver.org"==e.source?n.rti_partner="TDID":"uidapi.com"==e.source&&(n.rti_partner="UID2"),t.push(n)}))})),t.length&&(A.eids=t)}if(null==(s=null==(a=null==(o=null==t?void 0:t.ortb2)?void 0:o.regs)?void 0:a.ext)?void 0:s.dsa){const e=t.ortb2.regs.ext.dsa,i={};if(["dsarequired","pubrender","datatopub"].forEach((t=>{pi(e[t])&&(i[t]=e[t])})),ui(e.transparency)&&e.transparency.every((e=>mi(e)))){const t=[];e.transparency.forEach((e=>{ci(e.domain)&&""!=e.domain&&ui(e.dsaparams)&&e.dsaparams.every((e=>pi(e)))&&t.push(e)})),t.length>0&&(i.transparency=t)}gi(i)||(A.dsa=i)}d[0].publisher_id&&(A.publisher_id=d[0].publisher_id);const x=function(e,t){let i=[],n={withCredentials:!0},r=ym;om(null==t?void 0:t.gdprConsent)||(r=wm);"TRUE"!==si("apn_test").toUpperCase()&&!0!==pt.getConfig("apn_test")||(n.customHeaders={"X-Is-Test":1});if(e.tags.length>15){const o=Bi(e);vm(e.tags,15).forEach((e=>{o.tags=e;const a=JSON.stringify(o);i.push({method:"POST",url:r,data:a,bidderRequest:t,options:n})}))}else{const o=JSON.stringify(e);i={method:"POST",url:r,data:o,bidderRequest:t,options:n}}return i}(A,t);return x},interpretResponse:function(e,{bidderRequest:t}){e=e.body;const i=[];if(!e||e.error){let n=`in response for ${t.bidderCode} adapter`;return e&&e.error&&(n+=`: ${e.error}`),ti(n),i}if(e.tags&&e.tags.forEach((e=>{const n=(r=e)&&r.ads&&r.ads.length&&_e(r.ads,(e=>e.rtb));var r;if(n){if((!0===En.get(t.bidderCode,"allowZeroCpmBids")?n.cpm>=0:n.cpm>0)&&Ce(this.supportedMediaTypes,n.ad_type)){const r=function(e,t,i){const n=function(e,t){if(e)return t.flatMap((e=>e.bids)).find((t=>["bidId","adId","bid_id"].some((i=>t[i]===e))))}(e.uuid,[i]),r=Mt(),o={adId:r,requestId:e.uuid,cpm:t.cpm,creativeId:t.creative_id,dealId:t.deal_id,currency:"USD",netRevenue:!0,ttl:300,adUnitCode:n.adUnitCode,appnexus:{buyerMemberId:t.buyer_member_id,dealPriority:t.deal_priority,dealCode:t.deal_code}};t.adomain&&(o.meta=Object.assign({},o.meta,{advertiserDomains:[t.adomain]}));t.advertiser_id&&(o.meta=Object.assign({},o.meta,{advertiserId:t.advertiser_id}));t.dsa&&(o.meta=Object.assign({},o.meta,{dsa:t.dsa}));function a(e){return{ver:"1.0",complete:0,nodes:[{bsid:e.buyer_member_id.toString()}]}}t.buyer_member_id&&(o.meta=Object.assign({},o.meta,{dchain:a(t)}));t.brand_id&&(o.meta=Object.assign({},o.meta,{brandId:t.brand_id}));if(t.rtb.video){Object.assign(o,{width:t.rtb.video.player_width,height:t.rtb.video.player_height,vastImpUrl:t.notify_url,ttl:3600});switch(At(n,"mediaTypes.video.context")){case Dr:const n=am[t.brand_category_id]?am[t.brand_category_id]:null;o.meta=Object.assign({},o.meta,{primaryCatId:n});const r=t.deal_priority;o.video={context:Dr,durationSeconds:Math.floor(t.rtb.video.duration_ms/1e3),dealTier:r},o.vastUrl=t.rtb.video.asset_url;break;case Br:if(o.adResponse=e,o.adResponse.ad=o.adResponse.ads[0],o.adResponse.ad.video=o.adResponse.ad.rtb.video,o.vastXml=t.rtb.video.content,t.renderer_url){const n=_e(i.bids,(t=>t.bidId===e.uuid));let r=At(n,"mediaTypes.video.renderer.options");r||(r=At(n,"renderer.options")),o.renderer=function(e,t,i={}){const n=_n.install({id:t.renderer_id,url:t.renderer_url,config:i,loaded:!1,adUnitCode:e});try{n.setRender($m)}catch(r){ei("Prebid Error calling setRender on renderer",r)}return n.setEventHandlers({impression:()=>Kt("AppNexus outstream video impression event"),loaded:()=>Kt("AppNexus outstream video loaded event"),ended:()=>{Kt("AppNexus outstream renderer video event"),document.querySelector(`#${e}`).style.display="none"}}),n}(o.adUnitCode,t,r)}break;case Ur:o.vastUrl=t.notify_url+"&redir="+encodeURIComponent(t.rtb.video.asset_url)}}else if(t.rtb[Nr]){const e=t.rtb[Nr];let i;if(function(e){if(!e||""===e)return!1;let t=e.match(Bm),i=null!=t&&t.length>=1,n=e.match(Um),r=null!=n&&n.length>=1;return e.startsWith(Sm)&&r&&i}(t.viewability.config)){let e="pbjs_adid="+r+";pbjs_auc="+n.adUnitCode;i=t.viewability.config.replace("dom_id=%native_dom_id%",e)}let a=e.javascript_trackers;null==a?a=i:ci(a)?a=[a,i]:a.push(i),o[Nr]={title:e.title,body:e.desc,body2:e.desc2,cta:e.ctatext,rating:e.rating,sponsoredBy:e.sponsored,privacyLink:e.privacy_link,address:e.address,downloads:e.downloads,likes:e.likes,phone:e.phone,price:e.price,salePrice:e.saleprice,clickUrl:e.link.url,displayUrl:e.displayurl,clickTrackers:e.link.click_trackers,impressionTrackers:e.impression_trackers,video:e.video,javascriptTrackers:a},e.main_img&&(o.native.image={url:e.main_img.url,height:e.main_img.height,width:e.main_img.width}),e.icon&&(o.native.icon={url:e.icon.url,height:e.icon.height,width:e.icon.width})}else{Object.assign(o,{width:t.rtb.banner.width,height:t.rtb.banner.height,ad:t.rtb.banner.content});try{if(t.rtb.trackers)for(let e=0;e<t.rtb.trackers[0].impression_urls.length;e++){const i=Ti(t.rtb.trackers[0].impression_urls[e]);o.ad+=i}}catch(s){ti("Error appending tracking pixel",s)}}return o}(e,n,t);r.mediaType=function(e){const t=e.ad_type;return t===jr?jr:t===Nr?Nr:Or}(n),i.push(r)}}})),e.debug&&e.debug.debug_info){let t="AppNexus Debug Auction for Prebid\n\n"+e.debug.debug_info;t=t.replace(/(<td>|<th>)/gm,"\t").replace(/(<\/td>|<\/th>)/gm,"\n").replace(/^<br>/gm,"").replace(/(<br>\n|<br>)/gm,"\n").replace(/<h1>(.*)<\/h1>/gm,"\n\n===== $1 =====\n\n").replace(/<h[2-6]>(.*)<\/h[2-6]>/gm,"\n\n*** $1 ***\n\n").replace(/(<([^>]+)>)/gim,""),Kt("https://console.appnexus.com/docs/understanding-the-debug-auction"),Kt(t)}return i},getUserSyncs:function(e,t,i,n,r){if(e.iframeEnabled&&om(i))return[{type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html"}]}});const Wm="ix",Ym=[Or,jr,Nr],Gm=50,Hm=[144,144],Qm={JPY:1},Jm={PBJS:"p",IX:"x"},Km={SITE:["id","name","domain","cat","sectioncat","pagecat","page","ref","search","mobile","privacypolicy","publisher","content","keywords","ext"],USER:["id","buyeruid","yob","gender","keywords","customdata","geo","data","ext"]},Xm={"liveramp.com":"idl","netid.de":"NETID","neustar.biz":"fabrickId","zeotap.com":"zeotapIdPlus","uidapi.com":"UID2","adserver.org":"TDID"},ef=["lipbid","criteoId","merkleId","parrableId","connectid","tapadId","quantcastId","pubProvidedId","pairId"],tf=["mimes","minduration","maxduration"],nf=["mimes","minduration","maxduration","protocols","protocol","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext","playerSize","w","h","plcmt"],rf=`${Wm}_features`,of=kr({bidderCode:Wm}),af={REQUESTED_FEATURE_TOGGLES:["pbjs_enable_multiformat","pbjs_allow_all_eids"],featureToggles:{},isFeatureEnabled:function(e){return At(this.featureToggles,`features.${e}.activated`,!1)},getFeatureToggles:function(){if(of.localStorageIsEnabled()){const e=function(e){try{return JSON.parse(e)}catch(t){}}(of.getDataFromLocalStorage(rf));At(e,"expiry")&&e.expiry>=(new Date).getTime()?this.featureToggles=e:this.clearFeatureToggles()}},setFeatureToggles:function(e){const t=e.body,i=new Date,n=At(t,"ext.features");n&&(this.featureToggles={expiry:i.setHours(i.getHours()+1),features:n},of.localStorageIsEnabled()&&of.setDataInLocalStorage(rf,JSON.stringify(this.featureToggles)))},clearFeatureToggles:function(){this.featureToggles={},of.localStorageIsEnabled()&&of.removeDataFromLocalStorage(rf)}};let sf=0,df="",lf="",cf=!1;const uf=2;function pf(e){const t=mf(e,jr),i=At(e,"mediaTypes.video"),n=At(e,"params.video");if(bf(i,n).length)return{};t.video=n?Bi(e.params.video):{};let r=At(e,"ortb2Imp.ext.tid");r&&Tt(t,"ext.tid",r),function(e,t){if(At(t,"mediaTypes.video.context")===Br){let i=At(t,"mediaTypes.video.renderer");if(i||(i=At(t,"renderer")),At(t,"schain",!1))e.displaymanager="pbjs_wrapper";else if(i&&"object"==typeof i){if(void 0!==i.url){let t="";try{t=new URL(i.url).hostname}catch{return}t.includes("js-sec.indexww")?e.displaymanager="ix":e.displaymanager=i.url}}else e.displaymanager="ix"}}(t,e),kf(t,e);for(const a in i)-1===nf.indexOf(a)||t.video.hasOwnProperty(a)||(t.video[a]=i[a]);if(t.video.minduration>t.video.maxduration)return ti(`IX Bid Adapter: video minduration [${t.video.minduration}] cannot be greater than video maxduration [${t.video.maxduration}]`),{};const o=n&&n.context||i&&i.context;if(function(e){e.video.hasOwnProperty("plcmt")&&(!Zi(e.video.plcmt)||e.video.plcmt<1||e.video.plcmt>4)&&(ei(`IX Bid Adapter: video.plcmt [${e.video.plcmt}] must be an integer between 1-4 inclusive`),delete e.video.plcmt)}(t),o&&!t.video.hasOwnProperty("placement")&&(o===Ur?t.video.placement=1:o===Br?At(n,"playerConfig.floatOnScroll")?t.video.placement=5:(t.video.placement=3,cf=!0):ei(`IX Bid Adapter: Video context '${o}' is not supported`)),!t.video.w||!t.video.h){const i=yf(At(t,"video.playerSize"))||yf(At(e,"params.size"));if(!i)return ei("IX Bid Adapter: Video size is missing in [mediaTypes.video]"),{};t.video.w=i[0],t.video.h=i[1]}return ff(e,t,jr),t}function mf(e,t){const i={};if(i.id=e.bidId,jf()&&At(e,"params.externalId")&&Tt(i,"ext.externalID",e.params.externalId),At(e,`params.${t}.siteId`)&&!isNaN(Number(e.params[t].siteId)))switch(t){case Or:Tt(i,"ext.siteID",e.params.banner.siteId.toString());break;case jr:Tt(i,"ext.siteID",e.params.video.siteId.toString());break;case Nr:Tt(i,"ext.siteID",e.params.native.siteId.toString())}else e.params.siteId&&Tt(i,"ext.siteID",e.params.siteId.toString());return!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id||Tt(i,"ext.sid",String(e.params.id)),i}function ff(e,t,i){let n=null,r=null;if(e.params.bidFloor&&e.params.bidFloorCur&&(n={floor:e.params.bidFloor,currency:e.params.bidFloorCur}),li(e.getFloor)){let n="*",o="*";if(i&&bi(Ym,i)){const{w:e,h:r}=t[i];n=i,o=[e,r]}try{r=e.getFloor({mediaType:n,size:o})}catch(a){ei("priceFloors module call getFloor failed, error : ",a)}}let o=!1;r?(t.bidfloor=r.floor,t.bidfloorcur=r.currency,Tt(t,"ext.fl",Jm.PBJS),o=!0):n&&(t.bidfloor=n.floor,t.bidfloorcur=n.currency,Tt(t,"ext.fl",Jm.IX),o=!0),o&&(i==Or?(Tt(t,"banner.ext.bidfloor",t.bidfloor),Tt(t,"banner.ext.fl",t.ext.fl)):i==jr?(Tt(t,"video.ext.bidfloor",t.bidfloor),Tt(t,"video.ext.fl",t.ext.fl)):(Tt(t,"native.ext.bidfloor",t.bidfloor),Tt(t,"native.ext.fl",t.ext.fl)))}function gf(e,t,i){var n;const r={},o=!(!At(e,"exp")||!Zi(e.exp)),a=At(e,"dealid")||At(e,"ext.dealid");Qm.hasOwnProperty(t)?r.cpm=e.price/Qm[t]:r.cpm=e.price/100,r.requestId=e.impid,a&&(r.dealId=a),r.netRevenue=true,r.currency=t,r.creativeId=e.hasOwnProperty("crid")?e.crid:"-",e.mtype!=uf||(!e.ext||e.ext.vasturl)&&e.ext?e.ext&&e.ext.vasturl&&(r.vastUrl=e.ext.vasturl):r.vastXml=e.adm;let s=null;if("string"==typeof e.adm&&"{"===e.adm[0]&&"}"===e.adm[e.adm.length-1])try{s=JSON.parse(e.adm)}catch(d){ei("adm looks like JSON but failed to parse: ",d)}return e.ext&&e.ext.vasturl||e.mtype==uf?(r.width=i.video.w,r.height=i.video.h,r.mediaType=jr,r.mediaTypes=i.mediaTypes,r.ttl=o?e.exp:3600):s&&s.native?(r.native={ortb:s.native},r.width=e.w?e.w:1,r.height=e.h?e.h:1,r.mediaType=Nr,r.ttl=o?e.exp:3600):(r.ad=e.adm,r.width=e.w,r.height=e.h,r.mediaType=Or,r.ttl=o?e.exp:300),r.meta={},r.meta.networkId=At(e,"ext.dspid"),r.meta.brandId=At(e,"ext.advbrandid"),r.meta.brandName=At(e,"ext.advbrand"),e.adomain&&e.adomain.length>0&&(r.meta.advertiserDomains=e.adomain),(null==(n=e.ext)?void 0:n.dsa)&&(r.meta.dsa=e.ext.dsa),r}function hf(e){return Array.isArray(e)&&2===e.length&&Zi(e[0])&&Zi(e[1])}function vf(e=[],t=[]){if(hf(e))return e[0]===t[0]&&e[1]===t[1];for(let i=0;i<e.length;i++)if(e[i][0]===t[0]&&e[i][1]===t[1])return!0;return!1}function bf(e,t){const i=[];e||ei("IX Bid Adapter: mediaTypes.video is the preferred location for video params in ad unit");for(let s of tf){const n=e&&e.hasOwnProperty(s),r=t&&t.hasOwnProperty(s);n||r||i.push(`IX Bid Adapter: ${s} is not included in either the adunit or params level`)}const n=e&&e.hasOwnProperty("protocol"),r=e&&e.hasOwnProperty("protocols"),o=t&&t.hasOwnProperty("protocol"),a=t&&t.hasOwnProperty("protocols");return n||r||o||a||i.push("IX Bid Adapter: protocol/protcols is not included in either the adunit or params level"),i}function yf(e=[]){return hf(e)?e:!!hf(e[0])&&e[0]}function wf(e,t,i){if(!e)return;return{..._e(i,(t=>t.bidId===e)),..._e(t,(t=>t.id===e))}}function If(e,t,i,n){let r=function(e){let t=[],i={};if(ui(e))for(const n of e){const e=Xm.hasOwnProperty(n.source);if(At(n,"uids.0")&&(i[n.source]=!0,e&&""!==Xm[n.source]&&(n.uids[0].ext={rtiPartner:Xm[n.source]}),t.push(n),t.length>=Gm))break}return{toSend:t,seenSources:i}}(At(e,"0.userIdAsEids")),o=r.toSend;window.headertag&&"function"==typeof window.headertag.getIdentityInfo&&function(e,t){let i=window.headertag.getIdentityInfo();if(i&&"object"==typeof i)for(const n in i){if(e.length>=Gm)return;if(i.hasOwnProperty(n)){let r=i[n];!r.responsePending&&r.data&&"object"==typeof r.data&&Object.keys(r.data).length&&!t.seenSources[r.data.source]&&e.push(r.data)}}}(o,r);const a=[];let s=function(e){const t={};return t.id=e[0].bidderRequestId.toString(),t.site={},t.ext={},t.ext.source="prebid",t.ext.ixdiag={},t.ext.ixdiag.ls=of.localStorageIsEnabled(),t.imp=[],t.at=1,t}(e);s=function(e,t){t.length>0&&(e.ext.features={},t.forEach((t=>{e.ext.features[t]={activated:af.isFeatureEnabled(t)}})));return e}(s,af.REQUESTED_FEATURE_TOGGLES);let d=function(e,t){var i=e.map((e=>e.adUnitCode)).filter(((e,t,i)=>i.indexOf(e)===t));let n=At(e,"0.userIdAsEids",[]),r={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"9.10.0",userIds:_f(e[0]),url:window.location.href.split("?")[0],vpd:cf,ae:t,eidLength:n.length};for(let o of i){let t=e.filter((e=>e.adUnitCode===o))[0];At(t,"mediaTypes")&&(Object.keys(t.mediaTypes).length>1&&r.mfu++,At(t,"mediaTypes.native")&&r.nu++,At(t,"mediaTypes.banner")&&r.bu++,"outstream"===At(t,"mediaTypes.video.context")&&(r.ou++,Nf(t)&&(r.ren=!0)),"instream"===At(t,"mediaTypes.video.context")&&r.iu++,r.allu++)}return r}(e,At(t,"paapi.enabled"));for(let u in d)s.ext.ixdiag[u]=d[u];s=function(e,t,i,n,r){var o,a;const s=At(t,"timeout");s&&(e.ext.ixdiag.tmax=s);pt.getConfig("userSync")&&(e.ext.ixdiag.syncsPerBidder=pt.getConfig("userSync").syncsPerBidder);e.ext.ixdiag.imps=Object.keys(i).length,e.source={tid:null==(a=null==(o=null==t?void 0:t.ortb2)?void 0:o.source)?void 0:a.tid},n[0].schain&&(e.source.ext={},e.source.ext.schain=n[0].schain);r.length>0&&(e.user={},e.user.eids=r);document.referrer&&""!==document.referrer&&(e.site.ref=document.referrer);return e}(s,t,i,e,o),s=function(e,t){if(t){t.gdprConsent&&(df=t.gdprConsent,df.hasOwnProperty("gdprApplies")&&(e.regs={ext:{gdpr:df.gdprApplies?1:0}}),df.hasOwnProperty("consentString")&&(e.user=e.user||{},e.user.ext={consent:df.consentString||""},df.hasOwnProperty("addtlConsent")&&df.addtlConsent&&(e.user.ext.consented_providers_settings={addtl_consent:df.addtlConsent}))),t.uspConsent&&(Tt(e,"regs.ext.us_privacy",t.uspConsent),lf=t.uspConsent);const i=At(t,"refererInfo.page");i&&(e.site.page=i),t.gppConsent&&(Tt(e,"regs.gpp",t.gppConsent.gppString),Tt(e,"regs.gpp_sid",t.gppConsent.applicableSections))}pt.getConfig("coppa")&&Tt(e,"regs.coppa",1);return e}(s,t),e[0].params.siteId&&(sf=e[0].params.siteId);const l=Object.keys(i);let c=!1;for(let u=0;u<l.length&&!(a.length>=4);u++){s=Af(i,l,s,u);const n=At(t,"ortb2")||{},r={...n.site||n.context};r.page=Tf(t);const o={...n.user};gi(n)||c||(s=xf(t,s,n,r,o),s.site=en({},s.site,r),s.user=en({},s.user,o),c=!0),s=Cf(i,s,l,u);const d=u===l.length-1;if(s=Mf(s),s=Df(s),s=Ff(s),d){let t="https://htlb.casalemedia.com/openrtb/pbjs?";0!==sf&&(t+=`s=${sf}`),jf()&&(t+=0!==sf?"&":"",t+=`p=${pt.getConfig("exchangeId")}`),a.push({method:"POST",url:t,data:Bi(s),option:{contentType:"text/plain"},validBidRequests:e}),s.imp=[],c=!1}}return a}function Af(e,t,i,n){const r=e[t[n]],{missingImps:o=[],ixImps:a=[]}=r,s={ixImps:a,missingBannerImpressions:o},d=Object.keys(s).map((e=>s[e])).filter((e=>Array.isArray(e))).reduce(((e,t)=>e.concat(...t)),[]),l=e[t[n]].gpid,c=e[t[n]].dfp_ad_unit_code,u=e[t[n]].tid,p=e[t[n]].sid,m=e[t[n]].ae,f=e[t[n]].paapi,g=d.filter((e=>Or in e)),h=d.filter((e=>!(Or in e)));if(g.length>0){const r=g.reduce(((e,t)=>(e[t.adunitCode]||(e[t.adunitCode]=[]),e[t.adunitCode].push(t),e)),{});for(const o in r){const a=r[o],{id:s,banner:{topframe:d}}=a[0];let g=At(a[0],"ext.externalID");const h={id:s,banner:{topframe:d,format:a.map((({banner:{w:e,h:t},ext:i})=>({w:e,h:t,ext:i})))}};for(let e=0;e<h.banner.format.length;e++)null!=h.banner.format[e].ext&&(null!=h.banner.format[e].ext.sid&&delete h.banner.format[e].ext.sid,null!=h.banner.format[e].ext.externalID&&delete h.banner.format[e].ext.externalID),"bidfloor"in a[e]&&(h.banner.format[e].ext.bidfloor=a[e].bidfloor),"{}"===JSON.stringify(h.banner.format[e].ext)&&delete h.banner.format[e].ext;const v=e[t[n]].pos;Zi(v)&&(h.banner.pos=v),(c||l||u||p||m||g||f)&&(h.ext={},h.ext.dfp_ad_unit_code=c,h.ext.gpid=l,h.ext.tid=u,h.ext.sid=p,h.ext.externalID=g,1==m&&(h.ext.ae=1,h.ext.paapi=f)),"bidfloor"in a[0]&&(h.bidfloor=a[0].bidfloor),"bidfloorcur"in a[0]&&(h.bidfloorcur=a[0].bidfloorcur);const b=e[t[n]].adUnitFPD;b&&Tt(h,"ext.data",b),i.imp.push(h)}}return h.length>0&&h.forEach((e=>{if(l&&Tt(e,"ext.gpid",l),i.imp.length>0){let t=!1;i.imp.forEach(((n,r)=>{e.id===n.id&&jr in e?(n.video=e.video,n.video.ext=Object.assign({},e.video.ext,e.ext),At(n,"video.ext.bidfloor",!1)&&At(n,"bidfloor",!1)&&n.video.ext.bidfloor<n.bidfloor&&(n.bidfloor=n.video.ext.bidfloor),!At(n,"ext.siteID",!1)&&At(e,"video.ext.siteID")&&(Tt(n,"ext.siteID",e.video.ext.siteID),Tt(i,"ext.ixdiag.usid",!0)),t=!0):e.id===n.id&&Nr in e&&(n.native=e.native,n.native.ext=Object.assign({},e.native.ext,e.ext),At(n,"native.ext.bidfloor",!1)&&At(n,"bidfloor",!1)&&n.native.ext.bidfloor<n.bidfloor&&(n.bidfloor=n.native.ext.bidfloor),!At(n,"ext.siteID",!1)&&At(e,"native.ext.siteID",!1)&&(Tt(n,"ext.siteID",e.native.ext.siteID),Tt(i,"ext.ixdiag.usid",!0)),t=!0)})),t||i.imp.push(e)}else i.imp.push(e)})),i}function Tf(e){const t=e&&e.bidderCode||"ix",i=pt.getConfig(t);let n="";if(n=At(e,"ortb2.site.page")?e.ortb2.site.page:At(e,"refererInfo.page"),i&&"object"==typeof i.firstPartyData){return function(e,t,i){let n;try{n=new URL(t)}catch(o){ei(`IX Bid Adapter: Invalid URL set in ortb2.site.page: ${t}. Using referer URL instead.`),n=new URL(At(e,"refererInfo.page"))}const r=new URLSearchParams(n.search);for(const[a,s]of Object.entries(i))r.has(a)||r.append(a,s);return n.search=r.toString(),n.toString()}(e,n,i.firstPartyData)}return n}function xf(e,t,i,n,r){var o;if(t.ext.ixdiag.fpd=!0,Object.keys(n).forEach((e=>{-1===Km.SITE.indexOf(e)&&delete n[e]})),Object.keys(r).forEach((e=>{-1===Km.USER.indexOf(e)&&delete r[e]})),i.device){const e={...i.device.sua};gi(e)||Tt(t,"device.sua",e)}if(i.hasOwnProperty("regs")&&!e.gppConsent&&(i.regs.hasOwnProperty("gpp")&&"string"==typeof i.regs.gpp&&Tt(t,"regs.gpp",i.regs.gpp),i.regs.hasOwnProperty("gpp_sid")&&Array.isArray(i.regs.gpp_sid)&&Tt(t,"regs.gpp_sid",i.regs.gpp_sid),null==(o=i.regs.ext)?void 0:o.dsa)){const e=i.regs.ext.dsa,n={};if(["dsarequired","pubrender","datatopub"].forEach((t=>{pi(e[t])&&(n[t]=e[t])})),ui(e.transparency)){const t=[];e.transparency.forEach((e=>{mi(e)&&ci(e.domain)&&""!=e.domain&&ui(e.dsaparams)&&e.dsaparams.every((e=>pi(e)))&&t.push(e)})),t.length>0&&(n.transparency=t)}gi(n)||Tt(t,"regs.ext.dsa",n)}return t}function kf(e,t){const i=At(t,"ortb2Imp.ext.data");i&&Tt(e,"ext.data",i)}function Cf(e,t,i,n,r,o){const a=e[i[n]].pbadslot,s=e[i[n]].tagId,d=e[i[n]].adUnitCode,l=e[i[n]].divId;return(a||s||d||l)&&(t.ext.ixdiag.pbadslot=a,t.ext.ixdiag.tagid=s,t.ext.ixdiag.adunitcode=d,t.ext.ixdiag.divId=l),t}function _f(e){const t=e.userId||{};return ef.filter((e=>t[e]))}function Ef(e,t){if(t)for(let i=0;i<e.length;i++){const n=e[i];if(t[0]===n[0]&&t[1]===n[1]){e.splice(i,1);break}}}function Sf(e,t){const i=function(e){const t=mf(e,Nr),i=e.nativeOrtbRequest;i.eventtrackers=[{event:1,methods:[1,2]}],i.privacy=1,t.native={request:JSON.stringify(i),ver:"1.2"};let n=At(e,"ortb2Imp.ext.tid");return n&&Tt(t,"ext.tid",n),kf(t,e),ff(e,t,Nr),t}(e);if(0!=Object.keys(i).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(i),t[e.adUnitCode].gpid=At(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=At(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=At(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=At(e,"params.tagId");const n=e.adUnitCode,r=document.getElementById(n)?n:hl(n).divId;t[e.adUnitCode].adUnitCode=n,t[e.adUnitCode].divId=r}}function Bf(e,t){const i=pf(e);if(0!=Object.keys(i).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(i),t[e.adUnitCode].gpid=At(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=At(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=At(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=At(e,"params.tagId");const n=e.adUnitCode,r=document.getElementById(n)?n:hl(n).divId;t[e.adUnitCode].adUnitCode=n,t[e.adUnitCode].divId=r}}function Uf(e,t,i,n){let r=function(e){const t=mf(e,Or);t.banner={},t.adunitCode=e.adUnitCode;const i=At(e,"params.size");return i&&(t.banner.w=i[0],t.banner.h=i[1]),t.banner.topframe=Ui()?0:1,ff(e,t,Or),t}(e);const o=vf(At(e,"mediaTypes.banner.sizes"),At(e,"params.size"));i.hasOwnProperty(e.adUnitCode)||(i[e.adUnitCode]={}),i[e.adUnitCode].gpid=At(e,"ortb2Imp.ext.gpid"),i[e.adUnitCode].dfp_ad_unit_code=At(e,"ortb2Imp.ext.data.adserver.adslot"),i[e.adUnitCode].tid=At(e,"ortb2Imp.ext.tid"),i[e.adUnitCode].pbadslot=At(e,"ortb2Imp.ext.data.pbadslot"),i[e.adUnitCode].tagId=At(e,"params.tagId"),i[e.adUnitCode].pos=At(e,"mediaTypes.banner.pos");if(At(n,"paapi.enabled")){const t=At(e,"ortb2Imp.ext.ae"),n=At(e,"ortb2Imp.ext.paapi");n&&(i[e.adUnitCode].paapi=n),t&&(Zi(t)?i[e.adUnitCode].ae=t:ei("error setting auction environment flag - must be an integer"))}const a=At(e,"ortb2Imp.ext.data");a&&(i[e.adUnitCode].adUnitFPD=a);const s=At(e,"params.id");!s||"string"!=typeof s&&"number"!=typeof s||(i[e.adUnitCode].sid=String(s));const d=e.adUnitCode,l=document.getElementById(d)?d:hl(d).divId;i[e.adUnitCode].adUnitCode=d,i[e.adUnitCode].divId=l,o&&(i[e.adUnitCode].hasOwnProperty("ixImps")||(i[e.adUnitCode].ixImps=[]),i[e.adUnitCode].ixImps.push(r)),function(e,t,i){if(t.hasOwnProperty(e.adUnitCode)){let i=[];t[e.adUnitCode].hasOwnProperty("missingSizes")&&(i=t[e.adUnitCode].missingSizes),Ef(i,e.params.size),t[e.adUnitCode].missingSizes=i}else if(At(e,"mediaTypes.banner.sizes")){let n=Bi(e.mediaTypes.banner.sizes);Ef(n,e.params.size);let r={missingSizes:n,impression:i};t[e.adUnitCode]=r}}(e,t,r)}function Pf(e,t,i){const n=Bi(t);return n.banner.w=i[0],n.banner.h=i[1],ff(e,n,Or),n}function Rf(e){e.renderer.push((function(){const t=e.adUnitCode,i=document.getElementById(t)?t:hl(t).divId;i?window.createIXPlayer(i,e):ei(`IX Bid Adapter: adUnitCode: ${i} not found on page.`)}))}function Vf(e,t){const i=_n.install({id:e,url:t,loaded:!1});try{i.setRender(Rf)}catch(n){return ei("Prebid Error calling setRender on renderer",n),null}return t?i:(ei("Outstream renderer URL not found"),null)}function Nf(e){if("outstream"!==At(e,"mediaTypes.video.context"))return!1;let t=At(e,"mediaTypes.video.renderer");t||(t=At(e,"renderer"));return!!("object"!=typeof t||!t.url||!t.render)||t.backupOnly}function jf(){let e=pt.getConfig("exchangeId");return!("number"!=typeof e||!isFinite(e))||!("string"!=typeof e||""===e.trim()||!isFinite(Number(e)))}function Of(e,t){let i="",n="0";return df&&df.hasOwnProperty("gdprApplies")&&(n=df.gdprApplies?"1":"0"),df&&df.hasOwnProperty("consentString")&&(i=df.consentString||""),"https://dsum.casalemedia.com/pbusermatch?origin=prebid"+(0!==sf?"&site_id="+sf.toString():"")+"&p="+e.toString()+"&i="+t.toString()+"&gdpr="+n+"&gdpr_consent="+i+"&us_privacy="+(lf||"")}function Df(e){return e.imp.forEach(((t,i)=>{const n=t.ext;if(null==n)return e;qf(t)<2||Object.keys(n).forEach((r=>{if(Or in t){const o=t.banner.ext;if(void 0!==o&&void 0!==o[r]&&o[r]==n[r]&&delete e.imp[i].banner.ext[r],void 0!==t.banner.format)for(let a=0;a<t.banner.format.length;a++)null!=t.banner.format[a].ext&&null!=t.banner.format[a].ext[r]&&t.banner.format[a].ext[r]==n[r]&&delete e.imp[i].banner.format[a].ext[r]}if(jr in t){const o=t.video.ext;void 0!==o&&void 0!==o[r]&&o[r]==n[r]&&delete e.imp[i].video.ext[r]}if(Nr in t){const o=t.native.ext;void 0!==o&&void 0!==o[r]&&o[r]==n[r]&&delete e.imp[i].native.ext[r]}}))})),e}function Ff(e){return e.imp.forEach(((t,i)=>{if(null==t.ext)return e;if(!(qf(t)<2)){if(Or in t){const n=t.banner.ext;if(void 0!==n&&void 0!==n.siteID&&delete e.imp[i].banner.ext.siteID,void 0!==t.banner.format)for(let r=0;r<t.banner.format.length;r++)void 0!==t.banner.format[r].ext&&void 0!==t.banner.format[r].ext.siteID&&(Tt(e.imp[i],"ext.siteID",t.banner.format[r].ext.siteID),Tt(e,"ext.ixdiag.usid",!0),delete e.imp[i].banner.format[r].ext.siteID)}if(jr in t){const n=t.video.ext;void 0!==n&&void 0!==n.siteID&&delete e.imp[i].video.ext.siteID}if(Nr in t){const n=t.native.ext;void 0!==n&&void 0!==n.siteID&&delete e.imp[i].native.ext.siteID}}})),e}function qf(e){let t=0;return void 0!==e.banner&&(t+=1),void 0!==e.video&&(t+=1),void 0!==e.native&&(t+=1),t}function Mf(e){return null==e.device&&(e.device={}),e.device.h=window.screen.height,e.device.w=window.screen.width,e}Ga({code:Wm,gvlid:10,supportedMediaTypes:Ym,isBidRequestValid:function(e){const t=At(e,"params.video"),i=At(e,"params.size"),n=At(e,"mediaTypes.banner.sizes"),r=At(e,"mediaTypes.video"),o=At(e,"mediaTypes.video.playerSize"),a=e.params.hasOwnProperty("bidFloor"),s=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!bi(Ym,e.mediaType))return ei("IX Bid Adapter: media type is not supported."),!1;if(At(e,"mediaTypes.banner")&&!n)return!1;if(i){const t=yf(i);if(!t)return ti("IX Bid Adapter: size has invalid format."),!1;if(!vf(e.sizes,t)&&!vf(o,t)&&!vf(n,t))return ti("IX Bid Adapter: bid size is not included in ad unit sizes or player size."),!1}if(!jf()&&null==e.params.siteId)return ti("IX Bid Adapter: Invalid configuration - either siteId or exchangeId must be configured."),!1;if(void 0!==e.params.siteId){if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return ti("IX Bid Adapter: siteId must be string or number type."),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return ti("IX Bid Adapter: siteId must valid value"),!1}if((a||s)&&!(a&&s&&(d=e.params.bidFloor,l=e.params.bidFloorCur,Boolean("number"==typeof d&&"string"==typeof l&&l.match(/^[A-Z]{3}$/)))))return ti("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format."),!1;var d,l;if(r&&t){const i=pf(e).video,n=bf(r,t);if(At(e,"mediaTypes.video.context")===Br&&Nf(e)&&i){const e=[At(i,"w"),At(i,"h")];if(!(e[0]>=Hm[0]&&e[1]>=Hm[1]))return ti(`IX Bid Adapter: ${e} is an invalid size for IX outstream renderer`),!1}if(n.length)return n.forEach((e=>{ti(e)})),!1}return function(e){return void 0===At(e,"mediaTypes.native")||e.nativeOrtbRequest&&Array.isArray(e.nativeOrtbRequest.assets)&&e.nativeOrtbRequest.assets.length>0}(e)},resetSiteID:function(){sf=0},buildRequests:function(e,t){const i=[],n={},r={},o={},a={};af.getFeatureToggles(),e.forEach((e=>{const i=Object.keys(At(e,"mediaTypes",{}));for(const s in i)switch(i[s]){case Or:Uf(e,a,n,t);break;case jr:Bf(e,r);break;case Nr:Sf(e,o);break;default:ei(`IX Bid Adapter: ad unit mediaTypes ${s} is not supported`)}}));for(let d in a)if(a.hasOwnProperty(d)){let t=a[d].missingSizes;n.hasOwnProperty(d)||(n[d]={}),n[d].hasOwnProperty("missingImps")||(n[d].missingImps=[],n[d].missingCount=0);let i=a[d].impression;for(let r=0;r<t.length;r++){let o=Pf(e[0],i,t[r]);n[d].missingImps.push(o),n[d].missingCount++}}let s=[];return Object.keys(n).length>0&&s.push(n),Object.keys(r).length>0&&s.push(r),Object.keys(o).length>0&&s.push(o),af.isFeatureEnabled("pbjs_enable_multiformat")?i.push(...If(e,t,function(e){const t={};return e.forEach((e=>{Object.keys(e).forEach((i=>{Object.keys(t).includes(i)?t[i].hasOwnProperty("ixImps")&&e[i].hasOwnProperty("ixImps")?t[i].ixImps=[...t[i].ixImps,...e[i].ixImps]:t[i].hasOwnProperty("missingImps")&&e[i].hasOwnProperty("missingImps")?t[i].missingImps=[...t[i].missingImps,...e[i].missingImps]:e[i].hasOwnProperty("ixImps")?t[i].ixImps=e[i].ixImps:e[i].hasOwnProperty("missingImps")&&(t[i].missingImps=e[i].missingImps):t[i]=e[i]}))})),t}(s))):(Object.keys(n).length>0&&i.push(...If(e,t,n)),Object.keys(r).length>0&&i.push(...If(e,t,r)),Object.keys(o).length>0&&i.push(...If(e,t,o))),i},interpretResponse:function(e,t){const i=[];let n=null,r=At(e,"body.ext.protectedAudienceAuctionConfigs")||[];if(af.setFeatureToggles(e),!e.hasOwnProperty("body"))return i;const o=e.body,a=o.seatbid||[];for(let l=0;l<a.length;l++){if(!a[l].hasOwnProperty("bid"))continue;const e=a[l].bid,r=t.data;for(let a=0;a<e.length;a++){const s=wf(e[a].impid,r.imp,t.validBidRequests);if(n=gf(e[a],o.cur,s),n.mediaType===jr&&Nf(s)){const t=At(o,"ext.videoplayerurl");if(n.renderer=Vf(e[a].bidId,t),!n.renderer)continue}i.push(n)}if(At(r,"ext.ixdiag.err")&&of.localStorageIsEnabled())try{of.removeDataFromLocalStorage("ixdiag")}catch(s){ti("ix can not clear ixdiag from localStorage.")}}if(!(Array.isArray(r)&&r.length>0))return i;r=r.filter((e=>!!function(e){return"object"==typeof e&&null!==e}(e)||(ei("Malformed auction config detected:",e),!1)));try{return{bids:i,paapi:r}}catch(d){return ei("Error attaching AuctionConfigs",d),i}},getUserSyncs:function(e,t){const i=[];let n=null;if(t.length>0&&(n=At(t[0],"body.ext.publishersyncsperbidderoverride")),void 0!==n&&0==n)return[];if(e.iframeEnabled)i.push({type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"});else{let e=null;pt.getConfig("userSync")&&(e=pt.getConfig("userSync").syncsPerBidder),0===e&&(e=n),e=n&&(0===e||e)?n>e?e:n:1;for(let t=0;t<e;t++)i.push({type:"image",url:Of(e,t)})}return i}});const zf="medianet",Lf="trustedstack",$f="https://prebid.media.net/video/bundle.js",Zf={NOT_DETERMINED:0,ABOVE_THE_FOLD:1,BELOW_THE_FOLD:2},Wf="client_timeout",Yf="client_bid_won",Gf="client_set_targeting",Hf="client_bidder_error";let Qf;window.mnet=window.mnet||{},window.mnet.queue=window.mnet.queue||[];const Jf=[{code:Lf,gvlid:1288}];function Kf(){try{return window.top.document.referrer}catch(e){return document.referrer}}function Xf(e,t){const i=t.refererInfo;let n={domain:(e=e||{}).domain||i.domain,page:e.page||i.page,ref:e.ref||Kf(),topMostLocation:i.topmostLocation,isTop:e.isTop||i.reachedTop};return Object.assign(n,function(){if(Qf)return Qf;let e=eg('link[rel="canonical"]',"href"),t=eg('meta[property="og:url"]',"content"),i=eg('meta[name="twitter:url"]',"content");return Qf=Object.assign({},e&&{canonical_url:e},t&&{og_url:t},i&&{twitter_url:i}),Qf}())}function eg(e,t){let i=function(e,t){try{let i=Gt().document.querySelector(e);if(null!==i&&i[t])return i[t]}catch(i){}}(e,t);return i&&function(e){let t=Gt().document.createElement("a");return t.href=e,t.href}(i)}function tg(e,t){return e.filter((e=>e.type===t))}function ig(e){return{w:parseInt(e[0],10),h:parseInt(e[1],10)}}function ng(e,t){const i=At(e,"params"),n=At(t,"gdprConsent"),r=At(t,"uspConsent"),o=At(e,"userId"),a=At(e,"schain")||{},s=pg.getWindowSize(),d=!(!n||!n.gdprApplies),l=!!r,c=!!pt.getConfig("coppa");return Object.assign({},{customer_id:i.cid},{prebid_version:"v9.10.0"},{gdpr_applies:d},d&&{gdpr_consent_string:n.consentString||""},{usp_applies:l},l&&{usp_consent_string:r||""},{coppa_applies:c},-1!==s.w&&-1!==s.h&&{screen:s},o&&{user_id:o},It().medianetGlobals.analyticsEnabled&&{analytics:!0},!gi(a)&&{schain:a})}function rg(e,t){var i,n,r,o,a;let s={id:e.bidId,transactionId:null==(n=null==(i=e.ortb2Imp)?void 0:i.ext)?void 0:n.tid,ext:{dfp_id:e.adUnitCode,display_count:e.bidRequestsCount},all:e.params};e.ortb2Imp&&(s.ortb2Imp=e.ortb2Imp);let d=At(e,"mediaTypes.banner.sizes")||[];const l=At(e,"mediaTypes.video")||{},c=At(e,"params.video")||{},u=Object.assign({},c,l);var p;if(gi(u)||(s.video=u),d.length>0&&(s.banner=ui(p=d)&&2===p.length&&!ui(p[0])?[ig(p)]:p.map((e=>ig(e)))),e.nativeParams)try{s.native=JSON.stringify(e.nativeParams)}catch(h){ti(`${zf} : Incorrect JSON : bidRequest.nativeParams`)}e.params.crid&&(s.tagid=e.params.crid.toString());let m=parseFloat(e.params.bidfloor||e.params.bidFloor);m&&(s.bidfloor=m);const f=function(e){let t=document.getElementById(e);if(!t&&-1!==e.indexOf("/")){const{divId:i}=hl(e);ci(i)&&(t=document.getElementById(i))}if(t&&t.getBoundingClientRect){const e=t.getBoundingClientRect();let i={};return i.top_left={y:e.top,x:e.left},i.bottom_right={y:e.bottom,x:e.right},i}return null}(e.adUnitCode);if(f&&s.banner&&0!==s.banner.length){let e=function(e){return{top_left:{x:e.top_left.x+window.pageXOffset,y:e.top_left.y+window.pageYOffset},bottom_right:{x:e.bottom_right.x+window.pageXOffset,y:e.bottom_right.y+window.pageYOffset}}}(f);s.ext.coordinates=e,s.ext.viewability=sg(f.top_left,ag(s.banner)),sg(e.top_left,ag(s.banner))>.5?s.ext.visibility=Zf.ABOVE_THE_FOLD:s.ext.visibility=Zf.BELOW_THE_FOLD}else s.ext.visibility=Zf.NOT_DETERMINED;const g=function(e){let t=[];"function"==typeof e.getFloor&&[Or,jr,Nr].forEach((i=>{e.mediaTypes.hasOwnProperty(i)&&(i==Or?e.mediaTypes.banner.sizes.forEach((n=>{og(e,i,n,t)})):og(e,i,"*",t))}));return t}(e);return g&&g.length>0&&(s.bidfloors=g),(null==(r=t.paapi)?void 0:r.enabled)&&(s.ext.ae=null==(a=null==(o=null==e?void 0:e.ortb2Imp)?void 0:o.ext)?void 0:a.ae),s}function og(e,t,i,n){let r=e.getFloor({currency:"USD",mediaType:t,size:i});i.length>1&&(r.size=i),r.mediaType=t,n.push(r)}function ag(e){return e.reduce(((e,t)=>t.h*t.w<e.h*e.w?t:e))}function sg(e,t){let i=t.w*t.h,n=pg.getWindowSize(),r={x:e.x+t.w,y:e.y+t.h};return 0===i||-1===n.w||-1===n.h?0:function(e,t,i,n){if(e.x>n.x||t.x<i.x||e.y>n.y||t.y<i.y)return 0;return(Math.min(t.x,n.x)-Math.max(e.x,i.x))*(Math.min(t.y,n.y)-Math.max(e.y,i.y))}(e,r,{x:0,y:0},{x:n.w,y:n.h})/i}function dg(e,t){const i=Bi(e),n=At(t,"0.userIdAsEids");return n&&Tt(i,"user.ext.eids",n),i}function lg(e,t){const i={};return ui(t)||(t=[]),t.forEach((e=>{let t=function(e){const t={};t.acid=e.auctionId||"",t.crid=At(e,"params.crid")||At(e,"params.0.crid")||e.adUnitCode||"",t.ext=nn(e.ext)||"";const i=Bi(e);return delete i.ad,delete i.vastXml,t.rawobj=nn(i),t}(e);Object.keys(t).forEach((e=>{i[e]=i[e]||[],i[e].push(encodeURIComponent(t[e]))}))})),Object.assign({},function(e){const t={},i=ds();return t.logid="kfk",t.evtid="projectevents",t.project="prebid",t.pbver="9.10.0",t.cid=It().medianetGlobals.cid||"",t.dn=encodeURIComponent(i.domain||""),t.requrl=encodeURIComponent(i.page||""),t.event=e.name||"",t.value=e.value||"",t.rd=e.related_data||"",t}(e),i)}function cg(e,t){const i=lg(e,t);var n,r;n="https://navvy.media.net/log",r=Qi(i),mn(n,{success:()=>{},error:()=>{}},r,{method:"POST",keepalive:!0})}function ug(e){const t=At(e,"context")||"",i=At(e,"vto");"outstream"==t&&i&&(e.renderer=function(){const e=_n.install({url:$f});return e.setRender((function(e){window.mnet.queue.push((function(){const t={width:e.width,height:e.height,vastTimeout:e.vto,maxAllowedVastTagRedirects:e.mavtr,allowVpaid:e.avp,autoPlay:e.ap,preload:e.pl,mute:e.mt},i=e.dfp_id,n=hl(i).divId||i;window.mnet.mediaNetoutstreamPlayer(e,n,t)}))})),e}())}It().medianetGlobals=It().medianetGlobals||{};const pg={code:zf,gvlid:142,aliases:Jf,supportedMediaTypes:[Or,Nr,jr],isBidRequestValid:function(e){return e.params?e.params.cid&&ci(e.params.cid)&&!hi(e.params.cid)?(Object.assign(It().medianetGlobals,!It().medianetGlobals.cid&&{cid:e.params.cid}),!0):(ti(`${zf} : cid should be a string`),!1):(ti(`${zf} : Missing bid parameters`),!1)},buildRequests:function(e,t){let i=function(e,t){return{site:Xf(e[0].params.site,t),ext:ng(e[0],t),id:e[0].auctionId,imp:e.map((e=>rg(e,t))),ortb2:dg(t.ortb2,e),tmax:t.timeout}}(e=Fa(e),t);return{method:"POST",url:(n=t.bidderCode,r=i.ext.customer_id,(n===Lf?"https://prebid.trustedstack.com/rtb/trustedstack":"https://prebid.media.net/rtb/prebid")+"?cid="+encodeURIComponent(r)),data:JSON.stringify(i)};var n,r},interpretResponse:function(e,t){let i=[];if(!e||!e.body)return Xt(`${zf} : response is empty`),i;let n=e.body.bidList;ui(n)&&0!==n.length?(i=n.filter((e=>function(e){return!1===e.no_bid&&parseFloat(e.cpm)>0}(e))),i.forEach(ug)):Xt(`${zf} : no bids`);const r=At(e,"body.ext.paApiAuctionConfigs")||[],o=At(e,"body.ext.igi")||[];return 0===r.length&&0===o.length?i:(o.length>0&&r.push(...o.map((({igs:e})=>e||[])).flat()),{bids:i,paapi:r})},getUserSyncs:function(e,t){let i=!gi(n=t)&&n[0].body&&n[0].body.ext&&ui(n[0].body.ext.csUrl)?n[0].body.ext.csUrl:[];var n;return e.iframeEnabled?tg(i,"iframe"):e.pixelEnabled?tg(i,"image"):void 0},onTimeout:e=>{try{cg({name:Wf,value:e.length,related_data:e[0].timeout||pt.getConfig("bidderTimeout")},e)}catch(t){}},onBidWon:e=>{try{cg({name:Yf,value:e.cpm},[e])}catch(t){}},onSetTargeting:e=>{try{let t={name:Gf,value:e.cpm};pt.getConfig("enableSendAllBids")||cg(t,[e])}catch(t){}},onBidderError:({error:e,bidderRequest:t})=>{try{cg({name:Hf,related_data:`timedOut:${e.timedOut}|status:${e.status}|message:${e.reason.message}`},t.bids)}catch(i){}},clearPageMeta:function(){Qf=void 0},getWindowSize:function(){return{w:window.screen.width||-1,h:window.screen.height||-1}}};Ga(pg);const mg="https://onetag-sys.com/usync/",fg="onetag",gg=kr({bidderCode:fg});function hg(e){return void 0!==e.mediaTypes&&void 0!==e.mediaTypes.video}function vg(e,t){if(e===Or)return xg(t).length>0;if(e===jr&&hg(t)){const e=t.mediaTypes.video.context;if("outstream"===e||"instream"===e)return Tg(t).length>0}return!1}function bg(e){try{return void 0!==e.document.hidden?e.document.hidden:void 0!==e.document.msHidden?e.document.msHidden:void 0!==e.document.webkitHidden?e.document.webkitHidden:null}catch(t){return null}}function yg(e){const t=function(){let e=window,t=window.parent;try{for(;e!==e.parent;)t=e.parent,t.location.href,e=e.parent}catch(i){}return e}();return{location:At(e,"refererInfo.page",null),referrer:At(e,"refererInfo.ref",null),stack:At(e,"refererInfo.stack",[]),numIframes:At(e,"refererInfo.numIframes",0),wWidth:t.innerWidth,wHeight:t.innerHeight,oWidth:t.outerWidth,oHeight:t.outerHeight,sWidth:t.screen.width,sHeight:t.screen.height,aWidth:t.screen.availWidth,aHeight:t.screen.availHeight,sLeft:"screenLeft"in t?t.screenLeft:t.screenX,sTop:"screenTop"in t?t.screenTop:t.screenY,xOffset:t.pageXOffset,yOffset:t.pageYOffset,docHidden:bg(t),docHeight:t.document.body?t.document.body.scrollHeight:null,hLength:history.length,timing:Ag(),version:{prebid:"9.10.0",adapter:"1.1.1"}}}function wg(e){const t=e.filter((e=>hg(e))).map((e=>{const t={};return Ig.call(t,e),t.context=e.mediaTypes.video.context,t.playerSize=Tg(e),t.mediaTypeInfo=Bi(e.mediaTypes.video),t.type=jr,t.priceFloors=Cg(e,jr,t.playerSize),t})),i=e.filter((e=>vg(Or,e))).map((e=>{const t={};return Ig.call(t,e),t.sizes=xg(e),t.type=Or,t.mediaTypeInfo=Bi(e.mediaTypes.banner),t.priceFloors=Cg(e,Or,t.sizes),t}));return t.concat(i)}function Ig(e){const t=e.params;this.adUnitCode=e.adUnitCode,this.bidId=e.bidId,this.bidderRequestId=e.bidderRequestId,this.auctionId=At(e,"ortb2.source.tid"),this.transactionId=At(e,"ortb2Imp.ext.tid"),this.gpid=At(e,"ortb2Imp.ext.gpid")||At(e,"ortb2Imp.ext.data.pbadslot"),this.pubId=t.pubId,this.ext=t.ext,this.ortb2Imp=At(e,"ortb2Imp"),t.pubClick&&(this.click=t.pubClick),t.dealId&&(this.dealId=t.dealId);const i=function(e){const t=document.getElementById(e);try{const{top:e,left:i,width:n,height:r}=t.getBoundingClientRect();let o=t.ownerDocument.defaultView;const a={top:e+o.pageYOffset,left:i+o.pageXOffset,width:n,height:r};let s=o.frameElement;for(;null!=s;){const{top:e,left:t}=s.getBoundingClientRect();a.top+=e+o.pageYOffset,a.left+=t+o.pageXOffset,o=o.parent,s=o.frameElement}return a}catch(i){return null}}(e.adUnitCode);i&&(this.coords=i)}function Ag(){try{if(null!=window.performance&&null!=window.performance.timing){const e={},t=window.performance.timing;return e.pageLoadTime=t.loadEventEnd-t.navigationStart,e.connectTime=t.responseEnd-t.requestStart,e.renderTime=t.domComplete-t.domLoading,e}}catch(e){return null}return null}function Tg(e){const t=e.mediaTypes.video.playerSize;return void 0!==t&&Array.isArray(t)&&t.length>0?kg(t):[]}function xg(e){if(void 0!==e.mediaTypes&&void 0!==e.mediaTypes.banner&&void 0!==e.mediaTypes.banner.sizes&&Array.isArray(e.mediaTypes.banner.sizes)&&e.mediaTypes.banner.sizes.length>0)return kg(e.mediaTypes.banner.sizes);return!hg(e)&&e.sizes&&Array.isArray(e.sizes)?kg(e.sizes):[]}function kg(e){const t=[];for(let i=0;i<e.length;i++){const n=e[i];t.push({width:n[0],height:n[1]})}return t}function Cg(e,t,i){const n=[];return"function"==typeof e.getFloor&&i.forEach((i=>{const r=e.getFloor({currency:"EUR",mediaType:t||"*",size:[i.width,i.height]});r.size=Bi(i),r.floor||(r.floor=null),n.push(r)})),n}Ga({code:fg,gvlid:241,supportedMediaTypes:[Or,jr],isBidRequestValid:function(e){return void 0!==e&&void 0!==e.params&&"string"==typeof e.params.pubId&&(vg(Or,e)||vg(jr,e))},buildRequests:function(e,t){var i;const n={bids:wg(e),...yg(t)};t&&t.gdprConsent&&(n.gdprConsent={consentString:t.gdprConsent.consentString,consentRequired:t.gdprConsent.gdprApplies,addtlConsent:t.gdprConsent.addtlConsent}),t&&t.gppConsent&&(n.gppConsent={consentString:t.gppConsent.gppString,applicableSections:t.gppConsent.applicableSections}),t&&t.uspConsent&&(n.usPrivacy=t.uspConsent),t&&t.ortb2&&(n.ortb2=t.ortb2),e&&0!==e.length&&e[0].userIdAsEids&&(n.userId=e[0].userIdAsEids),e&&0!==e.length&&e[0].schain&&function(e){let t=!1;const i=["asi","sid","hp"];if(!e||!e.nodes)return t;t=e.nodes.reduce(((e,t)=>e?i.every((e=>t.hasOwnProperty(e))):e),!0),t||ti("OneTag: required schain params missing");return t}(e[0].schain)&&(n.schain=e[0].schain);try{gg.hasLocalStorage()&&(n.onetagSid=gg.getDataFromLocalStorage("onetag_sid"))}catch(o){}const r=navigator.connection||navigator.webkitConnection;return n.networkConnectionType=r&&r.type?r.type:null,n.networkEffectiveConnectionType=r&&r.effectiveType?r.effectiveType:null,n.fledgeEnabled=Boolean(null==(i=null==t?void 0:t.paapi)?void 0:i.enabled),{method:"POST",url:"https://onetag-sys.com/prebid-request",data:JSON.stringify(n)}},interpretResponse:function(e,t){const i=e.body,n=[],r=JSON.parse(t.data);if(!i||i.nobid&&!0===i.nobid)return n;if(!(i.fledgeAuctionConfigs||i.bids&&Array.isArray(i.bids)&&0!==i.bids.length))return n;if(Array.isArray(i.bids)&&i.bids.forEach((e=>{const t={requestId:e.requestId,cpm:e.cpm,width:e.width,height:e.height,creativeId:e.creativeId,dealId:null==e.dealId?e.dealId:"",currency:e.currency,netRevenue:e.netRevenue||!1,mediaType:e.mediaType,meta:{mediaType:e.mediaType,advertiserDomains:e.adomain},ttl:e.ttl||300};if(e.dsa&&(t.meta.dsa=e.dsa),e.mediaType===Or)t.ad=e.ad;else if(e.mediaType===jr){const{context:i,adUnitCode:n}=_e(r.bids,(t=>t.bidId===e.requestId&&t.type===jr));i===Ur?(t.vastUrl=e.vastUrl,t.videoCacheKey=e.videoCacheKey):i===Br&&(t.vastXml=e.ad,t.vastUrl=e.vastUrl,e.rendererUrl&&(t.renderer=function(e,t={}){const i=_n.install({id:e.requestId,url:e.rendererUrl,config:t,adUnitCode:e.adUnitCode,loaded:!1});try{i.setRender((({renderer:t,width:i,height:n,vastXml:r,adUnitCode:o})=>{t.push((()=>{window.onetag.Player.init({...e,width:i,height:n,vastXml:r,nodeId:o,config:t.getConfig()})}))}))}catch(n){}return i}({...e,adUnitCode:n})))}n.push(t)})),i.fledgeAuctionConfigs&&Array.isArray(i.fledgeAuctionConfigs)){const e=i.fledgeAuctionConfigs;return{bids:n,paapi:e}}return n},getUserSyncs:function(e,t,i,n,r){let o=[],a="";return i&&("boolean"==typeof i.gdprApplies&&(a+="&gdpr="+(i.gdprApplies?1:0)),"string"==typeof i.consentString&&(a+="&gdpr_consent="+i.consentString)),r&&"string"==typeof r.gppString&&(a+="&gpp_consent="+r.gppString),n&&"string"==typeof n&&(a+="&us_privacy="+n),e.iframeEnabled&&o.push({type:"iframe",url:mg+"?cb="+(new Date).getTime()+a}),e.pixelEnabled&&o.push({type:"image",url:mg+"?tag=img"+a}),o}});const _g="outbrain",Eg="USD",Sg={0:"title",2:"icon",3:"image",5:"sponsoredBy",4:"body",1:"cta"},Bg={title:{id:0,name:"title"},icon:{id:2,type:1,name:"img"},image:{id:3,type:3,name:"img"},sponsoredBy:{id:5,name:"data",type:1},body:{id:4,name:"data",type:2},cta:{id:1,type:12,name:"data"}},Ug="https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js",Pg=kr({bidderCode:_g});function Rg(e){return(t=e.nativeParams,i=(e,t)=>{const i=Bg[t],n={required:1&e.required};if(i){let t,r,o,a;n.id=i.id;let s=e.aspect_ratios;if(s&&s[0]&&(s=s[0],t=s.min_width||0,r=s.ratio_height*t/s.ratio_width|0),e.sizes){const t=e.sizes.flat();o=parseInt(t[0],10),a=parseInt(t[1],10)}return n[i.name]={len:e.len,type:i.type,wmin:t,hmin:r,w:o,h:a},n}},li(null==t?void 0:t.map)?t.map(i):Object.entries(t||{}).map((([e,n])=>i(n,e,t)))).filter(Boolean);var t,i}function Vg(e){return"video"===e.mediaType||!!At(e,"mediaTypes.video")}Ga({code:_g,gvlid:164,supportedMediaTypes:[Nr,Or,jr],isBidRequestValid:e=>"object"==typeof e.params&&("string"==typeof At(e,"params.publisher.id")&&((!e.params.tagid||"string"==typeof e.params.tagid)&&(!(e.params.bcat&&("object"!=typeof e.params.bcat||!e.params.bcat.every((e=>"string"==typeof e))))&&(!(e.params.badv&&("object"!=typeof e.params.badv||!e.params.badv.every((e=>"string"==typeof e))))&&(!!pt.getConfig("outbrain.bidderUrl")&&(!(!e.nativeParams&&!e.sizes)||function(e){const t=At(e,"mediaTypes.video");if(!t)return!1;if(!Array.isArray(t.playerSize))return!1;if(""==t.context)return!1;return!0}(e))))))),buildRequests:(e,t)=>{e=Fa(e);const i=t.ortb2||{},n=t.refererInfo.page,r=navigator.userAgent,o=on(e,"params.test"),a=on(e,"params.publisher"),s=i.bcat||on(e,"params.bcat"),d=i.badv||on(e,"params.badv"),l=on(e,"userIdAsEids"),c=i.wlang,u=Eg,p=pt.getConfig("outbrain.bidderUrl"),m=t.timeout,f=e.map(((e,t)=>{var i;e.netRevenue="net";const n={id:t+1+""};if(e.params.tagid&&(n.tagid=e.params.tagid),e.nativeParams?n.native={request:JSON.stringify({assets:Rg(e)})}:Vg(e)?n.video=function(e){const t=e.mediaTypes.video.playerSize.flat();return{w:parseInt(t[0],10),h:parseInt(t[1],10),protocols:e.mediaTypes.video.protocols,playbackmethod:e.mediaTypes.video.playbackmethod,mimes:e.mediaTypes.video.mimes,skip:e.mediaTypes.video.skip,delivery:e.mediaTypes.video.delivery,api:e.mediaTypes.video.api,minbitrate:e.mediaTypes.video.minbitrate,maxbitrate:e.mediaTypes.video.maxbitrate,minduration:e.mediaTypes.video.minduration,maxduration:e.mediaTypes.video.maxduration,startdelay:e.mediaTypes.video.startdelay,placement:e.mediaTypes.video.placement,plcmt:e.mediaTypes.video.plcmt,linearity:e.mediaTypes.video.linearity}}(e):n.banner={format:null==(i=e.sizes)?void 0:i.map((e=>function(e){if(Yt(e))return Wt(e)}(e)))},"function"==typeof e.getFloor){const t=function(e,t){const i=e.getFloor({currency:Eg,mediaType:t,size:"*"});if("object"==typeof i&&i.currency===Eg&&!isNaN(parseFloat(i.floor)))return parseFloat(i.floor);return null}(e,e.nativeParams?Nr:Or);t&&(n.bidfloor=t)}return n})),g={id:t.bidderRequestId,site:{page:n,publisher:a},device:(null==i?void 0:i.device)||{ua:r},source:{fd:1},cur:[u],tmax:m,imp:f,bcat:s,badv:d,wlang:c,ext:{prebid:{channel:{name:"pbjs",version:"9.10.0"}}}};o&&(g.is_debug=!!o,g.test=1);const h=Pg.getDataFromLocalStorage("OB-USER-TOKEN");return h&&Tt(g,"user.ext.obusertoken",h),At(t,"gdprConsent.gdprApplies")&&(Tt(g,"user.ext.consent",t.gdprConsent.consentString),Tt(g,"regs.ext.gdpr",1&t.gdprConsent.gdprApplies)),t.uspConsent&&Tt(g,"regs.ext.us_privacy",t.uspConsent),!0===pt.getConfig("coppa")&&Tt(g,"regs.coppa",1&pt.getConfig("coppa")),t.gppConsent?(Tt(g,"regs.ext.gpp",t.gppConsent.gppString),Tt(g,"regs.ext.gpp_sid",t.gppConsent.applicableSections)):At(t,"ortb2.regs.gpp")&&(Tt(g,"regs.ext.gpp",t.ortb2.regs.gpp),Tt(g,"regs.ext.gpp_sid",t.ortb2.regs.gpp_sid)),l&&Tt(g,"user.ext.eids",l),{method:"POST",url:p,data:JSON.stringify(g),bids:e}},interpretResponse:(e,{bids:t})=>{if(!e.body)return[];const{seatbid:i,cur:n}=e.body,r=i.map((e=>e.bid)).flat().reduce(((e,t)=>(e[t.impid-1]=t,e)),[]);return t.map(((e,t)=>{const i=r[t];if(i){let t=Or;e.nativeParams?t=Nr:Vg(e)&&(t=jr);const r={requestId:e.bidId,cpm:i.price,creativeId:i.crid,ttl:360,netRevenue:"net"===e.netRevenue,currency:n,mediaType:t,nurl:i.nurl};if(t===Nr)r.native=function(e){const{assets:t,link:i,privacy:n,eventtrackers:r}=JSON.parse(e.adm),o={clickUrl:i.url,clickTrackers:i.clicktrackers||void 0};t.forEach((e=>{const t=Sg[e.id],i=t&&e[Bg[t].name];i&&(o[t]=i.text||i.value||{url:i.url,width:i.w,height:i.h})})),n&&(o.privacyLink=n);r&&(o.impressionTrackers=[],r.forEach((e=>{if(1===e.event)switch(e.method){case 1:o.impressionTrackers.push(e.url);break;case 2:o.javascriptTrackers=`<script src="${e.url}"><\/script>`}})));return o}(i);else if(t===Or)r.ad=i.adm,r.width=i.w,r.height=i.h;else if(t===jr){r.vastXml=i.adm;At(e,"mediaTypes.video.context")===Br&&(r.renderer=function(e){let t={},i=Ug,n=function(e){e.renderer.push((()=>{window.ANOutstreamVideo.renderAd({sizes:e.sizes,targetId:e.adUnitCode,adResponse:{content:e.vastXml}})}))},r=At(e,"mediaTypes.video.renderer");r||(r=At(e,"renderer"));r&&(t=r.options,i=r.url,n=r.render);const o=_n.install({id:e.adUnitCode,url:i,config:t,adUnitCode:e.adUnitCode,loaded:!1});try{o.setRender(n)}catch(a){ei("Prebid Error calling setRender on renderer",a)}return o}(e))}return r.meta={},i.adomain&&i.adomain.length>0&&(r.meta.advertiserDomains=i.adomain),r}})).filter(Boolean)},getUserSyncs:(e,t,i,n,r)=>{const o=[];let a=pt.getConfig("outbrain.usersyncUrl"),s=[];return e.pixelEnabled&&a&&(i&&(s.push("gdpr="+(1&i.gdprApplies)),s.push("gdpr_consent="+encodeURIComponent(i.consentString||""))),n&&s.push("us_privacy="+encodeURIComponent(n)),r&&(s.push("gpp="+encodeURIComponent(r.gppString)),s.push("gpp_sid="+encodeURIComponent(r.applicableSections.join(",")))),o.push({type:"image",url:a+(s.length?"?"+s.join("&"):"")})),o},onBidWon:e=>{var t,i;e.nurl&&mn((t=e.nurl,i=e.originalCpm,Vi(t,{AUCTION_PRICE:i})))}});const Ng=new WeakMap;const jg={1:Or,2:jr,4:Nr};const Og={[Ys]:{fpd:{priority:99,fn(e,t){en(e,t.ortb2)}},onlyOneClient:{priority:-99,fn:cd("ORTB request")},props:{fn(e,t){Object.assign(e,{id:e.id||zt(),test:e.test||0});const i=parseInt(t.timeout,10);isNaN(i)||(e.tmax=i)}}},[Gs]:{fpd:{priority:99,fn(e,t){en(e,t.ortb2Imp)}},id:{fn(e,t){e.id=t.bidId}},banner:{fn:function(e,t,i){if(i.mediaType&&i.mediaType!==Or)return;const n=At(t,"mediaTypes.banner");if(n){const t={topframe:!0===Ui()?0:1};n.sizes&&(t.format=Lt(n.sizes).map(Wt)),n.hasOwnProperty("pos")&&(t.pos=n.pos),e.banner=en(t,e.banner)}}},pbadslot:{fn(e){var t,i,n,r;const o=null==(i=null==(t=e.ext)?void 0:t.data)?void 0:i.pbadslot;o&&"string"==typeof o||null==(r=null==(n=e.ext)?void 0:n.data)||delete r.pbadslot}}},[Hs]:{mediaType:{priority:99,fn:function(e,t,i){if(e.mediaType)return;const n=i.mediaType;if(!n&&!jg.hasOwnProperty(t.mtype))throw new Error("Cannot determine mediaType for response");e.mediaType=n||jg[t.mtype]}},banner:{fn:function({createPixel:e=e=>Ti(decodeURIComponent(e),xi)}={}){return function(t,i){t.mediaType===Or&&(i.adm&&i.nurl?(t.ad=i.adm,t.ad+=e(i.nurl)):i.adm?t.ad=i.adm:i.nurl&&(t.adUrl=i.nurl))}}()},props:{fn(e,t,i){var n,r;Object.entries({requestId:null==(n=i.bidRequest)?void 0:n.bidId,seatBidId:t.id,cpm:t.price,currency:i.ortbResponse.cur||i.currency,width:t.w,height:t.h,dealId:t.dealid,creative_id:t.crid,creativeId:t.crid,burl:t.burl,ttl:t.exp||i.ttl,netRevenue:i.netRevenue}).filter((([e,t])=>void 0!==t)).forEach((([t,i])=>e[t]=i)),e.meta||(e.meta={}),t.adomain&&(e.meta.advertiserDomains=t.adomain),(null==(r=t.ext)?void 0:r.dsa)&&(e.meta.dsa=t.ext.dsa)}}}};function Dg(...e){const t=e.shift(),i=e.length>1?Dg(...e):e[0];return Object.fromEntries(Ws.map((e=>[e,Object.assign({},t[e],i[e])])))}Og[Gs].native={fn:function(e,t,i){var n;if(i.mediaType&&i.mediaType!==Nr)return;let r=t.nativeOrtbRequest;r&&(r=Object.assign({},i.nativeRequest,r),(null==(n=r.assets)?void 0:n.length)?e.native=en({},{request:JSON.stringify(r),ver:r.ver},e.native):ei("mediaTypes.native is set, but no assets were specified. Native request skipped.",t))}},Og[Hs].native={fn:function(e,t){if(e.mediaType===Nr){let i;if(i="string"==typeof t.adm?JSON.parse(t.adm):t.adm,!mi(i)||!Array.isArray(i.assets))throw new Error("ORTB native response contained no assets");e.native={ortb:i}}}},Og[Gs].video={fn:function(e,t,i){if(i.mediaType&&i.mediaType!==jr)return;const n=At(t,"mediaTypes.video");if(!gi(n)){const t=Object.fromEntries(Object.entries(n).filter((([e])=>Pr.has(e))));if(n.playerSize){const e=Lt(n.playerSize).map(Wt);e.length>1&&ei("video request specifies more than one playerSize; all but the first will be ignored"),Object.assign(t,e[0])}e.video=en(t,e.video)}}},Og[Hs].video={fn:function(e,t,i){e.mediaType===jr&&(At(i.imp,"video.w")&&At(i.imp,"video.h")&&([e.playerWidth,e.playerHeight]=[i.imp.video.w,i.imp.video.h]),t.adm&&(e.vastXml=t.adm),t.nurl&&(e.vastUrl=t.nurl))}};const Fg=rn((()=>Dg(Og,td(Js)))),qg={[Or]:"banner",[Nr]:"native",[jr]:"video"};const Mg={[Ys]:{extPrebid:{fn:function(e,t){var i;Tt(e,"ext.prebid",en({auctiontimestamp:t.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}},null==(i=e.ext)?void 0:i.prebid)),pt.getConfig("debug")&&(e.ext.prebid.debug=!0)}},extPrebidChannel:{fn:function(e){var t,i;Tt(e,"ext.prebid.channel",Object.assign({name:"pbjs",version:It().version},null==(i=null==(t=e.ext)?void 0:t.prebid)?void 0:i.channel))}},extPrebidAliases:{fn:function(e,t,i,{am:n=Ps}={}){var r;if(n.aliasRegistry[t.bidderCode]){const i=n.bidderRegistry[t.bidderCode];if(!i||!i.getSpec().skipPbsAliasing){Tt(e,`ext.prebid.aliases.${t.bidderCode}`,n.aliasRegistry[t.bidderCode]);const o=pt.getConfig(`gvlMapping.${t.bidderCode}`)||(null==(r=null==i?void 0:i.getSpec)?void 0:r.call(i).gvlid);o&&Tt(e,`ext.prebid.aliasgvlids.${t.bidderCode}`,o)}}}}},[Gs]:{params:{fn:function(e,t){let i=t.params;i&&Tt(e,`ext.prebid.bidder.${t.bidder}`,i)}},adUnitCode:{fn:function(e,t){const i=t.adUnitCode;i&&Tt(e,"ext.prebid.adunitcode",i)}}},[Hs]:{mediaType:{fn:function(e,t,i){var n,r;let o=i.mediaType;o||(o=jg.hasOwnProperty(t.mtype)?jg[t.mtype]:null==(r=null==(n=t.ext)?void 0:n.prebid)?void 0:r.type,qg.hasOwnProperty(o)||(o=Or)),e.mediaType=o},priority:99},videoCache:{fn:function(e,t){if(e.mediaType===jr){let{cacheId:i,url:n}=At(t,"ext.prebid.cache.vastXml")||{};if(!i||!n){const{hb_uuid:e,hb_cache_host:r,hb_cache_path:o}=At(t,"ext.prebid.targeting")||{};e&&r&&o&&(i=e,n=`https://${r}${o}?uuid=${e}`)}i&&n&&Object.assign(e,{videoCacheKey:i,vastUrl:n})}},priority:-10},bidderCode:{fn(e,t,i){var n;e.bidderCode=i.seatbid.seat,e.adapterCode=At(t,"ext.prebid.meta.adaptercode")||(null==(n=i.bidRequest)?void 0:n.bidder)||e.bidderCode}},pbsBidId:{fn(e,t){const i=At(t,"ext.prebid.bidid");ci(i)&&(e.pbsBidId=i)}},adserverTargeting:{fn(e,t){const i=At(t,"ext.prebid.targeting");mi(i)&&(e.adserverTargeting=i)}},extPrebidMeta:{fn(e,t){e.meta=en({},At(t,"ext.prebid.meta"),e.meta)}},pbsWurl:{fn(e,t){const i=At(t,"ext.prebid.events.win");ci(i)&&(e.pbsWurl=i)}}},[Qs]:{serverSideStats:{fn(e,t,i){Object.entries({errors:"serverErrors",responsetimemillis:"serverResponseTimeMs"}).forEach((([e,n])=>{const r=At(t,`ext.${e}.${i.bidderRequest.bidderCode}`);r&&(i.bidderRequest[n]=r,i.bidRequests.forEach((e=>e[n]=r)))}))}}}},zg=rn((()=>Dg(Fg(),Mg,td(Ks)))),Lg="https://video-outstream.rubiconproject.com/apex-2.2.1.js";let $g=pt.getConfig("rubicon")||{};pt.getConfig("rubicon",(e=>{en($g,e.rubicon)}));var Zg={1:"468x60",2:"728x90",5:"120x90",7:"125x125",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",17:"240x400",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",39:"750x100",40:"750x200",41:"750x300",42:"2x4",43:"320x50",44:"300x50",48:"300x300",53:"1024x768",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",64:"580x500",65:"640x480",66:"930x600",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",85:"300x120",90:"548x150",94:"970x310",95:"970x100",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",105:"250x800",108:"320x240",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",144:"980x600",145:"980x150",152:"1000x250",156:"640x320",159:"320x250",179:"250x600",195:"600x300",198:"640x360",199:"640x200",213:"1030x590",214:"980x360",221:"1x1",229:"320x180",230:"2000x1400",232:"580x400",234:"6x6",251:"2x2",256:"480x820",257:"400x600",258:"500x200",259:"998x200",261:"480x480",264:"970x1000",265:"1920x1080",274:"1800x200",278:"320x500",282:"320x400",288:"640x380",484:"720x1280",524:"1x2",548:"500x1000",550:"980x480",552:"300x200",558:"640x640",562:"300x431",564:"320x431",566:"320x300",568:"300x150",570:"300x125",572:"250x350",574:"620x891",576:"610x877",578:"980x552",580:"505x656",622:"192x160",632:"1200x450",634:"340x450"};vi(Zg,((e,t)=>Zg[e]=t));const Wg=function({context:e={},processors:t=Fg,overrides:i={},imp:n,request:r,bidResponse:o,response:a}={}){const s=new WeakMap;function d(e,n,r,o){let a;return function(){return null==a&&(a=function(){let a=r.bind(this,function(e,t={}){if(!Ng.has(e)){const t=Object.entries(e);t.sort(((e,t)=>(e=e[1].priority||0)===(t=t[1].priority||0)?0:e>t?-1:1)),Ng.set(e,t.map((([e,t])=>[e,t.fn])))}const i=Ng.get(e).filter((([e])=>!t.hasOwnProperty(e)||t[e])).map((function([e,i]){return t.hasOwnProperty(e)?t[e].bind(this,i):i}));return function(){const e=Array.from(arguments);i.forEach((t=>{t.apply(this,e)}))}}(t()[e]||{},i[e]||{}));return n&&(a=n.bind(this,a)),function(){try{return a.apply(this,arguments)}catch(e){o.call(this,e,...arguments)}}}()),a.apply(this,arguments)}}const l=d(Gs,n,(function(e,t,i){const n={};return e(n,t,i),n}),(function(e,t,i){ti("Error while converting bidRequest to ORTB imp; request skipped.",{error:e,bidRequest:t,context:i})})),c=d(Ys,r,(function(e,t,i,n){const r={imp:t};return e(r,i,n),r}),(function(e,t,i,n){throw ti("Error while converting to ORTB request",{error:e,imps:t,bidderRequest:i,context:n}),e})),u=d(Hs,o,(function(e,t,i){const n={};return e(n,t,i),n}),(function(e,t,i){ti("Error while converting ORTB seatbid.bid to bidResponse; bid skipped.",{error:e,bid:t,context:i})})),p=d(Qs,a,(function(e,t,i,n){const r={bids:t};return e(r,i,n),r}),(function(e,t,i,n){throw ti("Error while converting from ORTB response",{error:e,bidResponses:t,ortbResponse:i,context:n}),e}));return{toORTB({bidderRequest:t,bidRequests:i,context:n={}}){i=i||t.bids;const r={req:Object.assign({bidRequests:i},e,n),imp:{}};r.req.impContext=r.imp;const o=i.map((i=>{const o=Object.assign({bidderRequest:t,reqContext:r.req},e,n),a=l(i,o);if(null!=a){if(a.hasOwnProperty("id"))return Object.assign(o,{bidRequest:i,imp:a}),r.imp[a.id]=o,a;ti("Converted ORTB imp does not specify an id, ignoring bid request",i,a)}})).filter(Boolean),a=c(o,t,r.req);return r.req.bidderRequest=t,null!=a&&s.set(a,r),a},fromORTB({request:e,response:t}){const i=s.get(e);if(null==i)throw new Error("ortbRequest passed to `fromORTB` must be the same object returned by `toORTB`");function n(t,i={}){return Object.assign(t,{ortbRequest:e},i)}const r=Object.fromEntries((e.imp||[]).map((e=>[e.id,e]))),o=(t.seatbid||[]).flatMap((e=>(e.bid||[]).map((o=>{if(r.hasOwnProperty(o.impid)&&i.imp.hasOwnProperty(o.impid))return u(o,n(i.imp[o.impid],{imp:r[o.impid],seatbid:e,ortbResponse:t}));ti("ORTB response seatbid[].bid[].impid does not match any imp in request; ignoring bid",o)})))).filter(Boolean);return p(o,t,n(i.req))}}}({request(e,t,i,n){var r,o;const{bidRequests:a}=n,s=e(t,i,n);var d;s.cur=["USD"],s.test=pt.getConfig("debug")?1:0,Tt(s,"ext.prebid.cache",{vastxml:{returnCreative:!0===$g.returnVast}}),Tt(s,"ext.prebid.bidders",{rubicon:{integration:$g.int_type||"pbjs"}}),Tt(s,"ext.prebid.targeting.pricegranularity",{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:(d=pt).getConfig("customPriceBucket")&&d.getConfig("customPriceBucket").buckets}[d.getConfig("priceGranularity")]});let l=It().installedModules;!l||l.length&&-1===l.indexOf("rubiconAnalyticsAdapter")||Tt(s,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),function(e,t,i){var n,r;let o={};const a=dm(i,...t.map((e=>e.params.keywords)));t.forEach((t=>{var i,n,r,a,s;const d={user:{ext:{data:{...t.params.visitor}}},site:{ext:{data:{...t.params.inventory}}}},l=e.imp.find((e=>{var t,i,n,r,o;return null==(o=null==(r=null==(n=null==(i=null==(t=e.ext)?void 0:t.prebid)?void 0:i.bidder)?void 0:n.rubicon)?void 0:r.video)?void 0:o.language}));l&&(d.site.content={language:null==(s=null==(a=null==(r=null==(n=null==(i=l.ext)?void 0:i.prebid)?void 0:n.bidder)?void 0:r.rubicon)?void 0:a.video)?void 0:s.language}),o=en(o,t.ortb2||{},d);const c=pt.getConfig("user.id");o.user.id=o.user.id||c})),en(e,o),a&&a.length&&Tt(e,"site.keywords",a.join(","));null==(r=null==(n=null==e?void 0:e.ext)?void 0:n.prebid)||delete r.storedrequest}(s,a,i.ortb2),null==(o=null==(r=null==s?void 0:s.ext)?void 0:r.prebid)||delete o.storedrequest,!0===$g.disableFloors&&delete s.ext.prebid.floors;return a.filter((e=>"object"==typeof e.floorData)).length>0&&(s.ext.prebid.floors={enabled:!1}),s},imp(e,t,i){var n,r;const o=Xg(t);if(o.includes(Or)&&1==o.length)return;const a=e(t,i);return a.id=t.adUnitCode,delete a.banner,"atf"===t.params.position&&a.video&&(a.video.pos=1),"btf"===t.params.position&&a.video&&(a.video.pos=3),null==(r=null==(n=a.ext)?void 0:n.prebid)||delete r.storedrequest,!0===t.params.bidonmultiformat&&o.length>1&&Tt(a,"ext.prebid.bidder.rubicon.formats",o),function(e,t){"USD"!=t.bidfloorcur&&(delete t.bidfloor,delete t.bidfloorcur);if(!t.bidfloor){let i=parseFloat(At(e,"params.floor"));isNaN(i)||(t.bidfloor=i,t.bidfloorcur="USD")}}(t,a),a},bidResponse(e,t,i){var n;const r=e(t,i);r.meta.mediaType=At(t,"ext.prebid.type");const{bidRequest:o}=i;let[a,s]="outstream"===(null==(n=o.mediaTypes.video)?void 0:n.context)?Qg(o,jr):[void 0,void 0];return r.width=t.w||a||r.playerWidth||0,r.height=t.h||s||r.playerHeight||0,r.mediaType===jr&&"outstream"===o.mediaTypes.video.context&&(r.renderer=function(e){const t=_n.install({id:e.adId,url:$g.rendererUrl||Lg,config:$g.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{t.setRender(Hg)}catch(i){ei("Prebid Error calling setRender on renderer",i)}return t}(r)),At(t,"ext.bidder.rp.advid")&&Tt(r,"meta.advertiserId",t.ext.bidder.rp.advid),r},context:{netRevenue:!1!==$g.netRevenue,ttl:360},processors:zg}),Yg={code:"rubicon",gvlid:52,supportedMediaTypes:[Or,jr,Nr],isBidRequestValid:function(e){let t=!0;if("object"!=typeof e.params)return!1;for(let r=0,o=["accountId","siteId","zoneId"];r<o.length;r++)if(e.params[o[r]]=parseInt(e.params[o[r]]),isNaN(e.params[o[r]]))return ti("Rubicon: wrong format of accountId or siteId or zoneId."),!1;let i=Xg(e,!0);if(!i.length)return!1;i.includes(jr)&&(t=function(e){let t=!0,i=Object.prototype.toString.call([]),n=Object.prototype.toString.call(0);var r={mimes:i,protocols:i,linearity:n};return Object.keys(r).forEach((function(i){Object.prototype.toString.call(At(e,"mediaTypes.video."+i))!==r[i]&&(t=!1,ti("Rubicon: mediaTypes.video."+i+" is required and must be of type: "+r[i]))})),t}(e));const n=[Or,Nr].filter((e=>i.includes(e))).length>0;return n?t&&n:t},buildRequests:function(e,t){let i,n=[],r=[];if(i=e.filter((e=>{const t=Xg(e)||[],{length:i}=t,{bidonmultiformat:n,video:r}=e.params||{};return 1===i&&(t.includes(jr)||t.includes(Nr))||2===i&&!t.includes(Or)||r&&t.includes(jr)||n&&(t.includes(jr)||t.includes(Nr))})),i&&i.length){const e=Wg.toORTB({bidRequests:i,bidderRequest:t});r.push({method:"POST",url:`https://${$g.videoHost||"prebid-server"}.rubiconproject.com/openrtb2/auction`,data:e,bidRequest:i})}const o=e.filter((e=>{const t=Xg(e)||[],{bidonmultiformat:i,video:n}=e.params||{};return t.includes(Or)&&(1===t.length||i||!i&&!n||!i&&n&&!t.includes(jr))}));if(!0!==$g.singleRequest)n=r.concat(o.map((e=>{const i=Yg.createSlotParams(e,t);return{method:"GET",url:`https://${$g.bannerHost||"fastlane"}.rubiconproject.com/a/api/fastlane.json`,data:Yg.getOrderedParams(i).reduce(((e,t)=>{const n=i[t];return ci(n)&&""!==n||pi(n)?`${e}${th(t,n)}&`:e}),"")+`slots=1&rand=${Math.random()}`,bidRequest:e}})));else{const e=o.reduce(((e,t)=>((e[t.params.siteId]=e[t.params.siteId]||[]).push(t),e)),{}),i=10;n=r.concat(Object.keys(e).reduce(((n,r)=>{var o,a;return(o=e[r],a=i,o.map(((e,t)=>t%a==0?o.slice(t,t+a):null)).filter((e=>e))).forEach((e=>{const i=Yg.combineSlotUrlParams(e.map((e=>Yg.createSlotParams(e,t))));n.push({method:"GET",url:`https://${$g.bannerHost||"fastlane"}.rubiconproject.com/a/api/fastlane.json`,data:Yg.getOrderedParams(i).reduce(((e,t)=>{const n=i[t];return ci(n)&&""!==n||pi(n)?`${e}${th(t,n)}&`:e}),"")+`slots=${e.length}&rand=${Math.random()}`,bidRequest:e})})),n}),[]))}return n},getOrderedParams:function(e){const t=/^tg_v/,i=/^tg_i/,n=/^eid_|^tpid_/,r=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","gpp","gpp_sid","rp_schain"].concat(Object.keys(e).filter((e=>n.test(e)))).concat(["x_liverampidl","ppuid","rf","p_geo.latitude","p_geo.longitude","kw"]).concat(Object.keys(e).filter((e=>t.test(e)))).concat(Object.keys(e).filter((e=>i.test(e)))).concat(["tk_flint","x_source.tid","l_pb_bid_id","p_screen_res","o_ae","o_cdep","rp_floor","rp_secure","tk_user_key"]);return r.concat(Object.keys(e).filter((e=>-1===r.indexOf(e))))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];const t=e.reduce((function(t,i,n){return Object.keys(i).forEach((function(r){t.hasOwnProperty(r)||(t[r]=new Array(e.length)),t[r].splice(n,1,i[r])})),t}),{}),i=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(t).forEach((function(e){const n=t[e].join(";"),r=n.match(i);t[e]=r?r[1]:n})),t},createSlotParams:function(e,t){var i,n,r,o,a,s,d,l,c,u,p,m;e.startTime=(new Date).getTime();const f=e.params,g=Qg(e,"banner"),[h,v]=f.latLong||[],b={account_id:f.accountId,site_id:f.siteId,zone_id:f.zoneId,size_id:g[0],alt_size_ids:g.slice(1).join(",")||void 0,rp_floor:(f.floor=parseFloat(f.floor))>=.01?f.floor:void 0,rp_secure:"1",tk_flint:`${$g.int_type||"pbjs_lite"}_v9.10.0`,"x_source.tid":null==(n=null==(i=t.ortb2)?void 0:i.source)?void 0:n.tid,"x_imp.ext.tid":null==(o=null==(r=e.ortb2Imp)?void 0:r.ext)?void 0:o.tid,l_pb_bid_id:e.bidId,o_cdep:null==(d=null==(s=null==(a=e.ortb2)?void 0:a.device)?void 0:s.ext)?void 0:d.cdep,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:f.userId,"p_geo.latitude":isNaN(parseFloat(h))?void 0:parseFloat(h).toFixed(4),"p_geo.longitude":isNaN(parseFloat(v))?void 0:parseFloat(v).toFixed(4),"tg_fl.eid":e.code,rf:Gg(e,t)};if("function"==typeof e.getFloor&&!$g.disableFloors){let t;try{t=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(I){ti("Rubicon: getFloor threw an error: ",I)}b.rp_hard_floor="object"!=typeof t||"USD"!==t.currency||isNaN(parseInt(t.floor))?void 0:t.floor}!0===f.bidonmultiformat&&At(e,"mediaTypes")&&Object.keys(e.mediaTypes).length>1&&(b.p_formats=Object.keys(e.mediaTypes).join(","));let y={1:"atf",3:"btf"}[At(e,"mediaTypes.banner.pos")]||"";b.p_pos="atf"===f.position||"btf"===f.position?f.position:y;const w=pt.getConfig("user.id");return w&&(b.ppuid=w),(null==(c=null==(l=null==e?void 0:e.ortb2Imp)?void 0:l.ext)?void 0:c.ae)&&(b.o_ae=1),function(e,t){var i,n,r,o,a,s,d;if(!1===$g.readTopics)return;let l=[1,2,5,6,7,507].concat((null==(i=$g.sendSiteSegtax)?void 0:i.map((e=>Number(e))))||[]),c=[4,508].concat((null==(n=$g.sendUserSegtax)?void 0:n.map((e=>Number(e))))||[]),u=(null==(o=null==(r=e.ortb2)?void 0:r.user)?void 0:o.data)||[],p=(null==(d=null==(s=null==(a=e.ortb2)?void 0:a.site)?void 0:s.content)?void 0:d.data)||[];u.forEach(Jg(t,"v",c)),p.forEach(Jg(t,"i",l))}(t,b),e.userIdAsEids&&e.userIdAsEids.forEach((e=>{try{if("adserver.org"===e.source)b.tpid_tdid=e.uids[0].id,b["eid_adserver.org"]=e.uids[0].id;else if("liveintent.com"===e.source)b["tpid_liveintent.com"]=e.uids[0].id,b["eid_liveintent.com"]=e.uids[0].id,e.ext&&Array.isArray(e.ext.segments)&&e.ext.segments.length&&(b["tg_v.LIseg"]=e.ext.segments.join(","));else if("liveramp.com"===e.source)b.x_liverampidl=e.uids[0].id;else if("id5-sync.com"===e.source)b["eid_id5-sync.com"]=`${e.uids[0].id}^${e.uids[0].atype}^${e.uids[0].ext&&e.uids[0].ext.linkType||""}`;else{const t="rubiconproject.com"===e.source?e.uids[0].id:`${e.uids[0].id}^${e.uids[0].atype||""}`;b[`eid_${e.source}`]=t}if(!b.ppuid){const t=_e(e.uids,(e=>e.ext&&"ppuid"===e.ext.stype));t&&t.id&&(b.ppuid=t.id)}}catch(I){ei("Rubicon: error reading eid:",e,I)}})),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(b.gdpr=Number(t.gdprConsent.gdprApplies)),b.gdpr_consent=t.gdprConsent.consentString),t.uspConsent&&(b.us_privacy=encodeURIComponent(t.uspConsent)),(null==(u=t.gppConsent)?void 0:u.gppString)&&(b.gpp=t.gppConsent.gppString,b.gpp_sid=null==(m=null==(p=t.gppConsent)?void 0:p.applicableSections)?void 0:m.toString()),b.rp_maxbids=t.bidLimit||1,function(e,t,i){const n={user:{ext:{data:{...e.params.visitor}}},site:{ext:{data:{...e.params.inventory}}}};e.params.keywords&&(n.site.keywords=ui(e.params.keywords)?e.params.keywords.join(","):e.params.keywords);let r=en({},e.ortb2||{},n);At(e.ortb2Imp,"ext");let o=At(e.ortb2Imp,"ext.data")||{};const a=At(e,"ortb2Imp.ext.gpid"),s=At(r,"regs.ext.dsa"),d={user:[4],site:[1,2,5,6]},l={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},c=function(e,t,i){return"data"===t&&Array.isArray(e)?e.filter((e=>e.segment&&At(e,"ext.segtax")&&d[i]&&-1!==d[i].indexOf(At(e,"ext.segtax")))).map((e=>{let t=e.segment.filter((e=>e.id)).reduce(((e,t)=>(e.push(t.id),e)),[]);if(t.length>0)return t.toString()})).toString():("object"!=typeof e||Array.isArray(e))&&void 0!==e?Array.isArray(e)?e.filter((e=>{if("object"!=typeof e&&void 0!==e)return e.toString();ei("Rubicon: Filtered value: ",e,"for key",t,": Expected value to be string, integer, or an array of strings/ints")})).toString():e.toString():void 0},u=function(e,t,n,r=!0){let o=c(e,n,t),a=l[n]&&r?`${l[n]}`:"data"===n?`${l[t]}iab`:`${l[t]}${n}`;i[a]=i[a]?i[a].concat(",",o):o};{["site","user"].forEach((e=>{Object.keys(r[e]).forEach((t=>{"site"===e&&"content"===t&&r[e][t].data?u(r[e][t].data,e,"data"):"ext"!==t?u(r[e][t],e,t):r[e][t].data&&Object.keys(r[e].ext.data).forEach((t=>{u(r[e].ext.data[t],e,t,!1)}))}))})),Object.keys(o).forEach((e=>{"adserver"!==e?u(o[e],"site",e):"gam"===o[e].name&&u(o[e].adslot,name,e)})),a&&(i.p_gpid=a),s&&Object.keys(s).length&&Yi(s,["dsainfo",e=>i.dsainfo=e,"dsarequired",e=>i.dsarequired=e,"pubrender",e=>i.dsapubrender=e,"datatopub",e=>i.dsadatatopubs=e,"transparency",e=>{Array.isArray(e)&&e.length&&(i.dsatransparency=e.reduce(((e,t)=>{const i=t.domain||"";if(!i)return e;const n=t.dsaparams||t.params;return Array.isArray(n)&&0!==n.length?(e&&(e+="~~"),e+`${i}~${n.join("_")}`):e}),""))}]),i["tg_i.pbadslot"]&&delete i["tg_i.dfp_ad_unit_code"];const e=At(r,"device.sua");e&&!1!==$g.chEnabled&&Yi(e,["architecture",e=>i.m_ch_arch=e,"bitness",e=>i.m_ch_bitness=e,"browsers",e=>{var t,n;if(!Array.isArray(e))return;const[r,o]=e.reduce(((e,t)=>{var i,n,r;return e[0].push(`"${null==t?void 0:t.brand}"|v="${null==(i=null==t?void 0:t.version)?void 0:i[0]}"`),e[1].push(`"${null==t?void 0:t.brand}"|v="${null==(r=null==(n=null==t?void 0:t.version)?void 0:n.join)?void 0:r.call(n,".")}"`),e}),[[],[]]);i.m_ch_ua=null==(t=null==r?void 0:r.join)?void 0:t.call(r,","),i.m_ch_full_ver=null==(n=null==o?void 0:o.join)?void 0:n.call(o,",")},"mobile",e=>i.m_ch_mobile=`?${e}`,"model",e=>i.m_ch_model=e,"platform",e=>{var t,n;i.m_ch_platform=null==e?void 0:e.brand,i.m_ch_platform_ver=null==(n=null==(t=null==e?void 0:e.version)?void 0:t.join)?void 0:n.call(t,".")}])}}(e,0,b),!0===pt.getConfig("coppa")&&(b.coppa=1),e.schain&&eh(e.schain)&&(b.rp_schain=Yg.serializeSupplyChain(e.schain)),b},serializeSupplyChain:function(e){if(!eh(e))return"";const{ver:t,complete:i,nodes:n}=e;return`${t},${i}!${Yg.serializeSupplyChainNodes(n)}`},serializeSupplyChainNodes:function(e){const t=["asi","sid","hp","rid","name","domain"];return e.map((e=>t.map((t=>encodeURIComponent(e[t]||""))).join(","))).join("!")},interpretResponse:function(e,t){var i;e=e.body;const{data:n}=t;if(!e||"object"!=typeof e)return[];if(e.seatbid){const t=At(e,"ext.errors.rubicon");Array.isArray(t)&&t.length>0&&ei("Rubicon: Error in video response");return Wg.fromORTB({request:n,response:e}).bids}let r,o=e.ads,a=0;const{bidRequest:s}=t;if("object"==typeof s&&!Array.isArray(s)&&Xg(s).includes(jr)&&"object"==typeof o&&(o=o[s.adUnitCode]),!Array.isArray(o)||o.length<1)return[];let d=o.reduce(((t,i,n)=>{if(i.impression_id&&r===i.impression_id?a++:r=i.impression_id,"ok"!==i.status)return t;const o=Array.isArray(s)?s[n-a]:s;if(o&&"object"==typeof o){let e={requestId:o.bidId,currency:"USD",creativeId:i.creative_id||`${i.network||""}-${i.advertiser||""}`,cpm:i.cpm||0,dealId:i.deal,ttl:360,netRevenue:!1!==$g.netRevenue,rubicon:{advertiserId:i.advertiser,networkId:i.network},meta:{advertiserId:i.advertiser,networkId:i.network,mediaType:Or}};i.creative_type&&(e.mediaType=i.creative_type),i.dsa&&Object.keys(i.dsa).length&&(e.meta.dsa=i.dsa),i.adomain&&(e.meta.advertiserDomains=Array.isArray(i.adomain)?i.adomain:[i.adomain]),i.creative_type===jr?(e.width=o.params.video.playerWidth,e.height=o.params.video.playerHeight,e.vastUrl=i.creative_depot_url,e.impression_id=i.impression_id,e.videoCacheKey=i.impression_id):(e.ad=(d=i.script,`<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='${i.impression_id}'>\n<script type='text/javascript'>${d}<\/script>\n</div>\n</body>\n</html>`),[e.width,e.height]=Zg[i.size_id].split("x").map((e=>Number(e)))),e.rubiconTargeting=(Array.isArray(i.targeting)?i.targeting:[]).reduce(((e,t)=>(e[t.key]=t.values[0],e)),{rpfl_elemid:o.adUnitCode}),t.push(e)}else ti(`Rubicon: bidRequest undefined at index position:${n}`,s,e);var d;return t}),[]).sort(((e,t)=>(t.cpm||0)-(e.cpm||0))),l=null==(i=e.component_auction_config)?void 0:i.map((e=>({config:e,bidId:e.bidId})));return l?{bids:d,paapi:l}:d},getUserSyncs:function(e,t,i,n,r){var o;if(!ih&&e.iframeEnabled){let e={};return i&&("boolean"==typeof i.gdprApplies&&(e.gdpr=Number(i.gdprApplies)),"string"==typeof i.consentString&&(e.gdpr_consent=i.consentString)),n&&(e.us_privacy=encodeURIComponent(n)),(null==r?void 0:r.gppString)&&(e.gpp=r.gppString,e.gpp_sid=null==(o=r.applicableSections)?void 0:o.toString()),e=Object.keys(e).length?`?${Qi(e)}`:"",ih=!0,{type:"iframe",url:`https://${$g.syncHost||"eus"}.rubiconproject.com/usync.html`+e}}}};function Gg(e,t){let i;return i=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?i.replace(/^http:/i,"https:"):i}function Hg(e){const t=document.getElementById(e.adUnitCode);!function(e){const t=e.querySelector("div[id^='google_ads']");t&&t.style.setProperty("display","none")}(t),function(e){const t=e.querySelector("script[id^='sas_script']"),i=t&&t.nextSibling;i&&"iframe"===i.localName&&i.style.setProperty("display","none")}(t);const i={align:"center",position:"append",closeButton:!1,label:void 0,collapse:!0,...e.renderer.getConfig()};e.renderer.push((()=>{window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:i.align,position:i.position},closeButton:i.closeButton,label:i.label,collapse:i.collapse})}))}function Qg(e,t){let i=e.params;if(t===jr){let t=[];return i.video&&i.video.playerWidth&&i.video.playerHeight?t=[i.video.playerWidth,i.video.playerHeight]:Array.isArray(At(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?t=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(t=e.sizes[0]),t}let n=[];return Array.isArray(i.sizes)?n=i.sizes:void 0!==At(e,"mediaTypes.banner.sizes")?n=Kg(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?n=Kg(e.sizes):ei("Rubicon: no sizes are setup or found"),function(e){const t=[15,2,9];return e.sort(((e,i)=>{const n=t.indexOf(e),r=t.indexOf(i);return n>-1||r>-1?-1===n?1:-1===r?-1:n-r:e-i}))}(n)}function Jg(e,t,i){return n=>{var r,o;const a=Number(null==(r=n.ext)?void 0:r.segtax);i.includes(a)&&(e[`tg_${t}.tax${a}`]=null==(o=n.segment)?void 0:o.map((e=>e.id)).join(","))}}function Kg(e){return $t(e).reduce(((e,t)=>{let i=parseInt(Zg[t],10);return i&&e.push(i),e}),[])}function Xg(e,t=!1){let i=[];if(function(e){let t=void 0!==At(e,`mediaTypes.${jr}`),i=void 0!==At(e,`mediaTypes.${Or}`),n=void 0!==At(e,"params.bidonmultiformat"),r="object"!=typeof At(e,"params.video");return!(!t||!n)||(i&&r&&(t=!1),t&&r&&Tt(e,"params.video",{}),t)}(e)){if(-1===["outstream","instream"].indexOf(At(e,`mediaTypes.${jr}.context`)))return t&&ti("Rubicon: mediaTypes.video.context must be outstream or instream"),i;if(Qg(e,jr).length<2)return t&&ti("Rubicon: could not determine the playerSize of the video"),i;t&&Kt("Rubicon: making video request for adUnit",e.adUnitCode),i.push(jr)}if(void 0!==At(e,`mediaTypes.${Nr}`)&&i.push(Nr),void 0!==At(e,`mediaTypes.${Or}`)){if(0===Qg(e,Or).length)return t&&ti("Rubicon: could not determine the sizes for banner request"),i;t&&Kt("Rubicon: making banner request for adUnit",e.adUnitCode),i.push(Or)}return i}function eh(e){let t=!1;const i=["asi","sid","hp"];return e.nodes?(t=e.nodes.reduce(((e,t)=>e?i.every((e=>t.hasOwnProperty(e))):e),!0),t||ti("Rubicon: required schain params missing"),t):t}function th(e,t){return"rp_schain"===e?`rp_schain=${t}`:`${e}=${encodeURIComponent(t)}`}var ih=!1;Ga(Yg);const nh={code:"smartadserver",gvlid:45,aliases:["smart"],supportedMediaTypes:[Or,jr],isBidRequestValid:function(e){return!!(e.params&&e.params.siteId&&e.params.pageId&&e.params.formatId)},serializeSupplyChain:function(e){if(!e||!e.nodes)return null;const t=["asi","sid","hp","rid","name","domain"];return`${e.ver},${e.complete}!`+e.nodes.map((e=>t.map((t=>e[t]?encodeURIComponent(e[t]):"")).join(","))).join("!")},adaptBannerSizes:function(e){return e.map((e=>({w:e[0],h:e[1]})))},fillPayloadForVideoBidRequest:function(e,t,i){const n=t.playerSize[0],r={maxbitrate:"vbrmax",maxduration:"vdmax",minbitrate:"vbrmin",minduration:"vdmin",placement:"vpt",plcmt:"vplcmt",skip:"skip"};e.mediaType=jr,e.isVideo="instream"===t.context,e.videoData={};for(const[o,a]of Object.entries(r))e.videoData={...e.videoData,...this.getValuableProperty(a,t[o])};e.videoData={...e.videoData,...this.getValuableProperty("playerWidth",n[0]),...this.getValuableProperty("playerHeight",n[1]),...this.getValuableProperty("adBreak",this.getStartDelayForVideoBidRequest(t,i)),...this.getValuableProperty("videoProtocol",this.getProtocolForVideoBidRequest(t,i)),...Gi(t.api)&&t.api.length?{iabframeworks:t.api.toString()}:{},...Gi(t.playbackmethod)&&t.playbackmethod.length?{vpmt:t.playbackmethod}:{}}},getValuableProperty:function(e,t){return"string"==typeof e&&Zi(t)&&t?{[e]:t}:{}},getProtocolForVideoBidRequest:function(e,t){return void 0!==t&&t.protocol?t.protocol:void 0!==e&&Array.isArray(e.protocols)?Math.max.apply(Math,e.protocols):null},getStartDelayForVideoBidRequest:function(e,t){if(null==t?void 0:t.startDelay)return t.startDelay;if(null==e?void 0:e.startdelay){if(e.startdelay>0||-1==e.startdelay)return 2;if(-2==e.startdelay)return 3}return 1},createServerRequest:function(e,t){return{method:"POST",url:(void 0!==t?t:"https://prg.smartadserver.com")+"/prebid/v1",data:JSON.stringify(e),options:{browsingTopics:!1}}},buildRequests:function(e,t){const i=pt.getConfig("currency.adServerCurrency"),n=At(t,"ortb2.user.data",pt.getAnyConfig("ortb2.user.data")),r=At(t,"ortb2.site.content.data",pt.getAnyConfig("ortb2.site.content.data"));return e.reduce(((e,o)=>{var a,s;let d={siteid:o.params.siteId,pageid:o.params.pageId,formatid:o.params.formatId,currencyCode:i,targeting:o.params.target&&""!==o.params.target?o.params.target:void 0,buid:o.params.buId&&""!==o.params.buId?o.params.buId:void 0,appname:o.params.appName&&""!==o.params.appName?o.params.appName:void 0,ckid:o.params.ckId||0,tagId:o.adUnitCode,pageDomain:t&&t.refererInfo&&t.refererInfo.page?t.refererInfo.page:void 0,transactionId:null==(s=null==(a=o.ortb2Imp)?void 0:a.ext)?void 0:s.tid,timeout:pt.getConfig("bidderTimeout"),bidId:o.bidId,prebidVersion:"9.10.0",schain:nh.serializeSupplyChain(o.schain),sda:n,sdc:r};const l=At(o,"ortb2Imp.ext.gpid")||At(o,"ortb2Imp.ext.data.pbadslot");l&&(d.gpid=l),t&&(t.gdprConsent&&(d.addtl_consent=t.gdprConsent.addtlConsent,d.gdpr_consent=t.gdprConsent.consentString,d.gdpr=t.gdprConsent.gdprApplies),t.gppConsent&&(d.gpp=t.gppConsent.gppString,d.gpp_sid=t.gppConsent.applicableSections),t.uspConsent&&(d.us_privacy=t.uspConsent)),o&&o.userIdAsEids&&(d.eids=o.userIdAsEids),t&&t.uspConsent&&(d.us_privacy=t.uspConsent);const c=At(o,"mediaTypes.banner"),u=At(o,"mediaTypes.video"),p=u&&("instream"===u.context||"outstream"===u.context);if(c||p){let t;if(c){if(t=Or,d.sizes=nh.adaptBannerSizes(c.sizes),p){let t=Bi(d);nh.fillPayloadForVideoBidRequest(t,u,o.params.video),t.bidfloor=o.params.bidfloor||nh.getBidFloor(o,i,jr),e.push(nh.createServerRequest(t,o.params.domain))}}else t=jr,nh.fillPayloadForVideoBidRequest(d,u,o.params.video);d.bidfloor=o.params.bidfloor||nh.getBidFloor(o,i,t),e.push(nh.createServerRequest(d,o.params.domain))}else e.push({});return e}),[])},interpretResponse:function(e,t){const i=[];let n=e.body;try{if(n&&!n.isNoAd&&(n.ad||n.adUrl)){const e=JSON.parse(t.data);let r={requestId:e.bidId,cpm:n.cpm,width:n.width,height:n.height,creativeId:n.creativeId,dealId:n.dealId,currency:n.currency,netRevenue:n.isNetCpm,ttl:n.ttl,dspPixels:n.dspPixels,meta:{advertiserDomains:n.adomain?n.adomain:[]}};e.mediaType===jr?(r.mediaType=jr,r.vastUrl=n.adUrl,r.vastXml=n.ad,r.content=n.ad):(r.adUrl=n.adUrl,r.ad=n.ad),i.push(r)}}catch(r){ti("Error while parsing smart server response",r)}return i},getBidFloor:function(e,t,i){if(!li(e.getFloor))return 0;const n=e.getFloor({currency:t||"USD",mediaType:i,size:"*"});return mi(n)&&!isNaN(n.floor)?n.floor:0},getUserSyncs:function(e,t){const i=[];return e.iframeEnabled&&t.length>0&&null!=t[0].body.cSyncUrl?i.push({type:"iframe",url:t[0].body.cSyncUrl}):e.pixelEnabled&&t.length>0&&void 0!==t[0].body.dspPixels&&t[0].body.dspPixels.forEach((function(e){i.push({type:"image",url:e})})),i}};function rh(e){return Object.assign({wp:!0,run(e,t,i,n,r){const o=i&&i.hasOwnProperty(n),a=o?i[n]:void 0,s=o&&null!=a&&"object"==typeof a?Bi(a):a;return function(){const i=null==t?e:At(e,t),d=i&&ks(i[n]),l=d?i[n]:void 0;!o&&d&&r()?delete i[n]:o===d&&l===a&&Xi(l,s)||!r()||Tt(e,(null==t?[]:[t]).concat(n).join("."),s)}}},e)}Ga(nh);const oh=function(e=lr){return function(e){const t={},i=[];e.forEach((e=>{e.wp&&i.push(e),e.get&&e.paths.forEach((i=>{let n=t;i.split(".").forEach((e=>{n.children=n.children||{},n.children[e]=n.children[e]||{},n=n.children[e]})),n.rule=e}))}));const n=Ts(i);function r(e,t,i){return new Proxy(e,{get(e,n,o){const a=Reflect.get(e,n,o);if(t.hasOwnProperty(n)){const{children:e,rule:o}=t[n];if(e&&null!=a&&"object"==typeof a)return r(a,e,i);if(o&&ks(a)&&i(o))return o.get(a)}return a}})}return function(e,...i){const o={};return{obj:r(e,t.children||{},xs(o,...i)),verify:(a=n(o,e,...i),function(){a.forEach((e=>e()))})};var a}}(_s(e).concat(function(e=lr){return[{name:mr,paths:ws,applies:Cs(mr,e)},{name:pr,paths:ys,applies:Cs(pr,e)}].map(rh)}(e)))}();const ah=function(e=oh){return function(t,i){t.global=t.global||{},t.bidder=t.bidder||{};const n=new Set(Object.keys(t.bidder)),r=[];function o(t){const n=e(t,i);return r.push(n.verify),n.obj}const a={global:o(t.global),bidder:Object.fromEntries(Object.entries(t.bidder).map((([e,t])=>[e,o(t)])))};return{obj:a,verify(){Object.entries(a.bidder).filter((([e])=>!n.has(e))).forEach((([n,r])=>{const o={},a=e(o,i);en(a.obj,r),a.verify(),t.bidder[n]=o})),r.forEach((e=>e()))}}}}(),sh=ar((e=>Ps.resolveAlias(e)));let dh,lh,ch=[],uh=[],ph=[];const mh=function(){let e=!1;return function(){e||(Object.entries({[Fe.AUCTION_INIT]:["onAuctionInitEvent"],[Fe.AUCTION_END]:["onAuctionEndEvent",vh],[Fe.BID_RESPONSE]:["onBidResponseEvent"],[Fe.BID_REQUESTED]:["onBidRequestEvent"],[Fe.BID_ACCEPTED]:["onBidAcceptedEvent"]}).forEach((([e,[t,i]])=>{Xr(e,(e=>{i&&i(e),uh.forEach((i=>{try{i[t]&&i[t](e,i.config,lh)}catch(n){ti(`RTD provider '${i.name}': error in '${t}':`,n)}}))}))})),e=!0)}}();function fh(){return{gdpr:ps.getConsentData(),usp:ms.getConsentData(),gpp:fs.getConsentData(),coppa:!!pt.getConfig("coppa")}}function gh(){lh=fh();let e=[];ph.forEach((t=>{const i=_e(ch,(e=>e.name===t.name));i&&i.init&&i.init(t,lh)&&e.push(Object.assign(i,{config:t}))})),uh=e,Xt(`Real time data module enabled, using submodules: ${uh.map((e=>e.name)).join(", ")}`)}const hh=yo("rtd",(function(e,t){lh=fh();const i=[],n=[];uh.forEach((e=>{if("function"!=typeof e.getBidRequestData)return;i.push(e);const t=e.config;t&&t.waitForIt&&n.push(e)}));const r=n.length&&dh.auctionDelay&&dh.auctionDelay>0;let o,a=n.length,s=!1;const d=[];if(!i.length)return c();function l(){s||(this.config&&this.config.waitForIt&&a--,0===a&&setTimeout(c,0))}function c(){s||(s=!0,clearTimeout(o),d.forEach((e=>e())),e.call(this,t))}o=setTimeout(c,r?dh.auctionDelay:0),i.forEach((e=>{const i=ah(t.ortb2Fragments||{},sh(Pn,e.name));d.push(i.verify),e.getBidRequestData({...t,ortb2Fragments:i.obj},l.bind(e),e.config,lh)}))}));function vh(e){const t=uh.filter((e=>"function"==typeof e.getTargetingData));if(!t.length)return;const i=e.adUnitCodes;if(!i)return;let n=[];for(let o=t.length-1;o>=0;o--){const r=t[o].getTargetingData(i,t[o].config,lh,e);r&&"object"==typeof r?n.push(r):ei("invalid getTargetingData response for sub module",t[o].name)}const r=function(e){if(!Array.isArray(e)||!e.length)return{};return e.reduce(((e,t)=>{for(let i in t)if(t.hasOwnProperty(i))if(e.hasOwnProperty(i)){const n=t[i];for(let t in n)n.hasOwnProperty(t)&&(e[i][t]=n[t])}else e[i]=t[i];return e}),{})}(n);return e.adUnits.forEach((e=>{const t=e.code&&r[e.code];t&&(Xt("RTD set ad unit targeting of",t,"for",e),e[Oe.ADSERVER_TARGETING]=Object.assign(e[Oe.ADSERVER_TARGETING]||{},t))})),e.adUnits}function bh(e,...t){uh.forEach((e=>{if("function"==typeof e.onDataDeletionRequest)try{e.onDataDeletionRequest(e.config)}catch(t){ti(`Error executing ${e.name}.onDataDeletionRequest`,t)}})),e.apply(this,t)}Hn("realTimeData",(function(e){return ch.push(e),hs.register(Pn,e.name,e.gvlid),function(){const t=ch.indexOf(e);t>=0&&(ch.splice(t,1),gh())}})),function(e){const t=e.getConfig("realTimeData",(({realTimeData:e})=>{e.dataProviders?(t(),dh=e,ph=e.dataProviders,mh(),Yn("startAuction").before(hh,20),Ps.callDataDeletionRequest.before(bh),gh()):ti("missing parameters for real time module")}))}(pt);const yh="SirdataRTDModule",wh="sirdata.com",Ih="Sirdata RTD: ",Ah="SDDAN",Th=ds().domain||window.location.hostname,xh=kr({moduleType:Pn,moduleName:yh}),kh=Ps.aliasRegistry||{},Ch={criteo:27443,openx:30342,pubmatic:30345,smaato:27520,triplelift:27518,yahoossp:30339,rubicon:27452,appnexus:27446,gourmetads:33394,mediasquare:27878,smartadserver:27440,proxistore:27484,ix:27248,sdRtdForGpt:27449,smilewanted:28690,taboola:33379,ttd:33382,zeta_global:33385,teads:33388,conversant:33391,improvedigital:33397,invibes:33400,sublime:33403,rtbhouse:33406,zeta_global_ssp:33385},_h={id5:"id5-sync.com",id5id:"id5-sync.com",id5_id:"id5-sync.com",pubprovided_id:"pubProvidedId",ppid:"pubProvidedId","first-id.fr":"pubProvidedId",sharedid:"pubcid.org",publishercommonid:"pubcid.org","pubcid.org":"pubcid.org"};let Eh={partnerId:1,key:1,actualUrl:ds().stack.pop()||ds().page,cookieAccessGranted:!1,setGptKeyValues:!0,contextualMinRelevancyScore:30,preprod:!1,authorizedEids:["pubProvidedId","id5-sync.com","pubcid.org"],avoidPostContent:!1,sirdataDomain:"cookieless-data.com",bidders:[]};function Sh(e,t,i,n){const r=i.split(".");let o=new Date;o.setTime(o.getTime()+31536e6);for(let s=0;s<r.length;++s){const i=r.slice(r.length-s-1).join(".");try{if(xh.setCookie(e,t,o.toUTCString(),"Lax","."+i),xh.getCookie(e,null)===t)return!0}catch(a){ti(Ih,a)}}return!1}function Bh(e,t){if(gi(e))return t;if(gi(t))return e;const i=[],n=e=>{e.forEach((e=>{if(e.uids){const t=Ee(i,(function(t){return t.source===e.source}));-1!==t?e.uids.forEach((e=>{i[t].uids.some((t=>t.id===e.id))||i[t].uids.push(e)})):i.push({...e,uids:[...e.uids]})}}))};return n(e),n(t),i}function Uh(e,t){if(!e||!t)return!1;try{let i=document.implementation.createHTMLDocument("");i.documentElement.innerHTML=document.documentElement.innerHTML,i=function(e){if(e&&e.documentElement.textContent&&e.documentElement.textContent.length>500){const t=["div","span","a","article","section","p","h1","h2","body","b","u","i","big","mark","ol","small","strong","blockquote","nav","menu","li","ul","ins","head","title","main","var","table","caption","colgroup","col","tr","td","th","summary","details","dl","dt","dd"],i=e=>{Array.from(e.childNodes).reverse().forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&(i(e),Array.from(e.attributes).forEach((t=>{"class"!==t.name||/^(main|article|product)/.test(t.value)?"id"!==t.name&&e.removeAttribute(t.name):e.removeAttribute(t.name)})),e.innerHTML.trim()&&t.includes(e.tagName.toLowerCase())||e.remove())}))},n=e=>{Array.from(e.childNodes).reverse().forEach((e=>{e.nodeType===Node.ELEMENT_NODE?(n(e),e.innerHTML.trim()||e.remove()):e.nodeType!==Node.TEXT_NODE||e.textContent.trim()||e.remove()}))};i(e.documentElement),n(e.documentElement),e.documentElement.innerHTML=function(e){return[/\b(?:\d{4}[ -]?){3}\d{4}\b/g,/\b\d{10,12}\b/g,/\b\d{5}\d{5}\d{11}\d{2}\b/g,/\b(\d{3}-\d{2}-\d{4}|\d{9}|\d{13}|\d{2} \d{2} \d{2} \d{3} \d{3} \d{3})\b/g,/\b[A-Z]{1,2}\d{6,9}\b/g,/\b(\d{8,10}|\d{3}-\d{3}-\d{3}-\d{3}|\d{2} \d{2} \d{2} \d{3} \d{3})\b/g,/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,/(\+?\d{1,3}[-.\s]?)?(\(?\d{2,3}\)?[-.\s]?)(\d{2}[-.\s]?){3,4}\d{2}/g].forEach((t=>{e=e.replace(t,"")})),e}(e.documentElement.innerHTML);let r=e.documentElement.innerHTML;r=r.replace(/<!--[\s\S]*?(?:-->|$)/g,""),r=r.replace(/\s+/g," "),r=r.replace(/>\s+</g,"><"),e.documentElement.innerHTML=r}return e}(i);const n=(new XMLSerializer).serializeToString(i.documentElement);if(n&&n.length>300&&n.length<3e5){const i=`https://contextual.sirdata.io/api/v1/push/contextual?post_content_token=${e}&url=${encodeURIComponent(t)}`;"sendBeacon"in navigator?navigator.sendBeacon(i,n):mn(i,{},n,{contentType:"text/plain",method:"POST",withCredentials:!1,referrerPolicy:"unsafe-url",crossOrigin:!0})}}catch(i){return ti(Ih,i),!1}return!0}function Ph(e,t,i,n,r){try{gi(i.segments)||(n?Rh(e,t,"user",i.segments,n):Vh(e,t,"user.ext.data",{sd_rtd:{segments:i.segments}})),gi(i.categories)||(r?Rh(e,t,"site",i.categories,r):Vh(e,t,"site.ext.data",{sd_rtd:{categories:i.categories}})),gi(i.categories_score)||r||Vh(e,t,"site.ext.data",{sd_rtd:{categories_score:i.categories_score}})}catch(o){ti(Ih,o)}return!0}function Rh(e,t,i,n,r){try{let o=[{name:wh,segment:n.map((e=>({id:e})))}];r&&(o[0].ext={segtax:r});let a="site"===i?{site:{content:{data:o}}}:{user:{data:o}};t&&(a={[t]:a}),en(e,a)}catch(o){ti(Ih,o)}return!0}function Vh(e,t,i,n){try{if(gi(n))return!1;let r={};Tt(r,i,n),t&&(r={[t]:r}),en(e,r)}catch(r){ti(Ih,r)}return!0}function Nh(e,t,i){let n={segments:[],categories:[],categories_score:{}};t="number"==typeof t?t:30;const{cattaxid:r,segtaxid:o,segments:a}=e,s=e.contextual_categories||{};try{if(s)for(let e in s)if(s.hasOwnProperty(e)&&s[e]){let o=s[e];o>=t&&!n.categories.includes(e)&&("27440"===i&&r?n.categories.push(`${i}cc${e}`):(n.categories.push(e.toString()),n.categories_score[e]=o))}}catch(d){ti(Ih,d)}try{if(a)for(let e in a)if(a.hasOwnProperty(e)&&a[e]){let t=a[e].toString();"27440"===i&&o?n.segments.push(`${i}us${t}`):n.segments.push(t)}}catch(d){ti(Ih,d)}return n}function jh(e,t,i,n,r,o,a,s){var d,l,c,u,p;if(o&&(null==(d=Eh.bidders[o])?void 0:d.customFunction)&&"function"==typeof(null==(l=Eh.bidders[o])?void 0:l.customFunction))return function(e,t,i,n,r){try{"function"==typeof e&&e(t,i,n,r)}catch(o){ti(Ih,o)}return!0}(Eh.bidders[o].customFunction,a,t,e,r);if(!i||o){let t=Nh(e,Eh.contextualMinRelevancyScore,Eh.partnerId.toString());Ph(null==(c=n.ortb2Fragments)?void 0:c.bidder,r.bidder,t,e.segtaxid,e.cattaxid)}if(!gi(e.shared_taxonomy)){let i=o&&(null==(u=Eh.bidders[o])?void 0:u.curationId)||Ch[s];if(i&&e.shared_taxonomy[i]){let o=Nh(e.shared_taxonomy[i],Eh.contextualMinRelevancyScore,i.toString());gi(o)||(Ph(null==(p=n.ortb2Fragments)?void 0:p.bidder,r.bidder,o,e.shared_taxonomy[i].segtaxid,e.shared_taxonomy[i].cattaxid),en(t,o))}}return t}Qn("realTimeData",{name:yh,gvlid:53,init:function(e){if(Xt(Ih,e),"object"!=typeof e.params||!e.params.key)return!1;if("object"==typeof e.params.authorizedEids&&Array.isArray(e.params.authorizedEids)){const t=new Set(e.params.authorizedEids.map((e=>{const t=e.toLowerCase().replace(/\s+/g,"_");return _h[t]||t})));e.params.authorizedEids=Array.from(t)}else delete e.params.authorizedEids;return"object"==typeof e.params.bidders&&Array.isArray(e.params.bidders)||delete e.params.bidders,delete e.params.sirdataDomain,Eh=Object.assign({},Eh,e.params),!0},getBidRequestData:function(e,t,i,n){Xt(Ih,"get Segments And Categories");const r=e&&e.adUnits||It().adUnits;if(!r)return Xt(Ih,"no ad unit, RTD processing is useless"),void t();const o=!!At(n,"gdpr.gdprApplies")&&n.gdpr.gdprApplies,a=Eh.preprod?"kvt-preprod":"kvt";let s,d="";if(Oi()&&!n.coppa&&(gi(n.usp)||-1===n.usp||"1"===n.usp[0]&&"N"!==n.usp[1]&&"Y"!==n.usp[2])&&(!o||At(n,"gdpr.vendorData.vendor.consents")&&n.gdpr.vendorData.vendor.consents[53]&&At(n,"gdpr.vendorData.purpose.consents")&&n.gdpr.vendorData.purpose.consents[1]&&(n.gdpr.vendorData.purpose.consents[2]||n.gdpr.vendorData.purpose.consents[3])&&n.gdpr.vendorData.purpose.consents[4])&&(gi(n.gpp)||n.gpp.gppString)&&Di()){if(Eh.sirdataDomain="sddan.com",Eh.cookieAccessGranted=!0,o&&At(n,"gdpr.consentString"))d=`&gdpr=${o}&gdpr_consent=${n.gdpr.consentString}`;else if(gi(n.usp)){if(At(n,"gpp.gppString")){const e=At(n,"gpp.applicableSections")?`&gpp_sid=${n.gpp.applicableSections.join(",")}`:"";d=`&gpp=${n.gpp.gppString}${e}`}}else d=`&ccpa_consent=${n.usp.toString()}`;if(s=function(){let e=xh.getCookie(Ah,null),t=xh.getDataFromLocalStorage(Ah,null);return!e||t&&e===t?t&&!e&&(Sh(Ah,t,Th),e=t):xh.setDataInLocalStorage(Ah,e,null),e?[{source:"sddan.com",uids:[{id:e,atype:1}]}]:null}(),!gi(Eh.authorizedEids)&&"function"==typeof It().getUserIds){let e={};const t=Eh.authorizedEids,i=It().getUserIds(),n=It().getUserIdsAsEids(),r=-1!==t.indexOf("pubProvidedId");if(r&&!gi(i.pubProvidedId)&&(e=Bh(e,i.pubProvidedId)),!r||t.length>1){const i=n.filter((e=>t.includes(e.source)));gi(i)||(e=Bh(e,i))}gi(e)||(s=Bh(s,e))}}const l=`https://${a}.${Eh.sirdataDomain}/api/v1/public/p/${Eh.partnerId.toString()}/d/${Eh.key.toString()}/s?callback=&allowed_post_content=${!Eh.avoidPostContent}${d}${Eh.actualUrl?`&url=${encodeURIComponent(Eh.actualUrl)}`:""}`,c=gi(s)?"GET":"POST",u=gi(s)?null:JSON.stringify({external_ids:s});try{mn(l,{success:function(i,n){if(200===n.status)try{const n=JSON.parse(i);n&&n.segments?function(e,t,i,n){var r,o;Xt(Ih,"Dispatch Segments And Categories");const a=Eh.contextualMinRelevancyScore||30;let s=Nh(t,a,"");const d=Eh.bidders.length>0;if(!gi(t.global_taxonomy))for(let u in t.global_taxonomy){let i;gi(t.global_taxonomy[u])||(i=Nh(t.global_taxonomy[u],Eh.contextualMinRelevancyScore,""),gi(i)||Ph(null==(r=e.ortb2Fragments)?void 0:r.global,"",i,t.global_taxonomy[u].segtaxid,t.global_taxonomy[u].cattaxid))}if(void 0!==window.googletag&&Eh.setGptKeyValues)try{const e=Eh.gptCurationId||Ch.sdRtdForGpt;let i=[...s.segments,...s.categories];if(e&&(null==(o=t.shared_taxonomy)?void 0:o[e])){const n=Nh(t.shared_taxonomy[e],Eh.contextualMinRelevancyScore,"");i=[...i,...n.segments,...n.categories]}window.googletag.cmd.push((()=>{window.googletag.pubads().getSlots().forEach((e=>{void 0!==e.setTargeting&&i.length>0&&e.setTargeting("sd_rtd",i)}))}))}catch(c){ti(Ih,c)}i.forEach((i=>{var n;return null==(n=i.bids)?void 0:n.forEach((n=>{var r,o;const a=Ee(Eh.bidders,(function(e){return e.bidder===n.bidder}));try{const l=kh[n.bidder]||n.bidder;if("appnexus"===l){let c=jh(t,s,d,e,n,a,i,l);c.segments.length>0&&Vh(null==(r=e.ortb2Fragments)?void 0:r.bidder,n.bidder,"user.keywords",`sd_rtd=${c.segments.join(",sd_rtd=")}`),c.categories.length>0&&Vh(null==(o=e.ortb2Fragments)?void 0:o.bidder,n.bidder,"site.content.keywords",`sd_rtd=${c.categories.join(",sd_rtd=")}`)}else jh(t,s,d,e,n,a,i,l)}catch(c){ti(Ih,c)}}))})),n(),"sddan.com"===Eh.sirdataDomain&&(!gi(t.sddan_id)&&Eh.cookieAccessGranted&&(l=t.sddan_id)&&(l=encodeURI(l.toString()),Sh(Ah,l,Th),xh.setDataInLocalStorage(Ah,l,null)),Eh.avoidPostContent||!Eh.actualUrl||Ui()||gi(t.post_content_token)||function(e){if("function"!=typeof e)return!1;try{document.readyState&&"loading"!==document.readyState?e():"function"==typeof document.addEventListener&&document.addEventListener("DOMContentLoaded",e)}catch(c){e()}}((()=>Uh(t.post_content_token,Eh.actualUrl))));var l}(e,n,r,t):t()}catch(o){t(),ti(Ih,"unable to parse Sirdata data"+o)}else 204===n.status&&t()},error:function(){t(),ti(Ih,"unable to get Sirdata data")}},u,{contentType:"text/plain",method:c,withCredentials:Eh.cookieAccessGranted,referrerPolicy:"unsafe-url",crossOrigin:!0})}catch(p){ti(Ih,p)}}});let Oh="";function Dh(e){let t;if(e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes&&(t=e.mediaTypes.banner.sizes),null!=t)return t.map((e=>({w:e[0],h:e[1]})))}function Fh(e){let t="display";return void 0!==e.sizes&&e.sizes.forEach((function(e){("1800"==e[0]&&"1000"==e[1]||"1"==e[0]&&"1"==e[1])&&(t="skin")})),null!=e.mediaTypes&&null!=e.mediaTypes.video&&(t="video"),t}function qh(e){let t;return t="video"==Fh(e)?{format:e.mediaTypes.video.context,playerSize:e.mediaTypes.video.playerSize,mimes:e.mediaTypes.video.mimes}:{format:"banner"},t}function Mh(e){let t=[];return e&&e.userId&&(zh(e,t,"id5-sync.com",At(e,"userId.id5id.uid")),zh(e,t,"pubcommon",At(e,"userId.pubcid")),zh(e,t,"criteo.com",At(e,"userId.criteoId")),zh(e,t,"liveramp.com",At(e,"userId.idl_env")),zh(e,t,"liveintent.com",At(e,"userId.lipb.lipbid")),zh(e,t,"adserver.org",At(e,"userId.tdid"))),t}function zh(e,t,i,n){ci(n)&&t.push({userId:n,source:i})}function Lh(e){e.renderer.push((()=>{!function(e){let t=`${e.vastXml}`,i={config:null!=e.params[0].player?{end:null!=e.params[0].player.end?e.params[0].player.end:"close",init:null!=e.params[0].player.init?e.params[0].player.init:"close",skin:null!=e.params[0].player.skin?e.params[0].player.skin:"light"}:{end:"close",init:"close",skin:"light"},pid:e.params[0].pid,adUnit:e.adUnitCode};window.raParams(i,t,!0)}(e)}))}function $h(){let e="";return void 0!==window.screen&&(e=window.screen.width+"x"+window.screen.height),e}function Zh(e){let t="";return null!=At(e,"ortb2Imp.ext.data.pbadslot")&&(t=At(e,"ortb2Imp.ext.data.pbadslot")),t}function Wh(e,t){try{let i;if(null!=e.params.bidfloor)i=e.params.bidfloor;else if("function"==typeof e.getFloor){i=e.getFloor({currency:null!=t.getConfig("floors.data.currency")?t.getConfig("floors.data.currency"):"USD",mediaType:"object"==typeof e.mediaTypes.banner?"banner":"video",size:"*"}).floor}return i}catch(i){return 0}}function Yh(e){var t,i,n,r,o,a;return(null==(n=null==(i=null==(t=null==e?void 0:e.ortb2)?void 0:t.regs)?void 0:i.ext)?void 0:n.dsa)?null==(a=null==(o=null==(r=null==e?void 0:e.ortb2)?void 0:r.regs)?void 0:o.ext)?void 0:a.dsa:null}function Gh(){return Jt()?Gt():Ht()}Ga({code:"richaudience",gvlid:108,aliases:["ra"],supportedMediaTypes:[Or,jr],isBidRequestValid:function(e){return!!(e.params&&e.params.pid&&e.params.supplyType)},buildRequests:function(e,t){return e.map((e=>{var i,n,r,o,a={bidfloor:Wh(e,pt),ifa:e.params.ifa,pid:e.params.pid,supplyType:e.params.supplyType,currencyCode:pt.getConfig("currency.adServerCurrency"),auctionId:e.auctionId,bidId:e.bidId,BidRequestsCount:e.bidRequestsCount,bidder:e.bidder,bidderRequestId:e.bidderRequestId,tagId:e.adUnitCode,sizes:Dh(e),referer:void 0!==t.refererInfo.page?encodeURIComponent(t.refererInfo.page):null,numIframes:void 0!==t.refererInfo.numIframes?t.refererInfo.numIframes:null,transactionId:null==(n=null==(i=e.ortb2Imp)?void 0:i.ext)?void 0:n.tid,timeout:t.timeout||600,user:Mh(e),demand:Fh(e),videoData:qh(e),scr_rsl:$h(),cpuc:void 0!==window.navigator?window.navigator.hardwareConcurrency:null,kws:dm(t.ortb2,e.params.keywords).join(","),schain:e.schain,gpid:Zh(e),dsa:Yh(e),userData:At(e,"ortb2.user.data")};Oh=void 0!==t.refererInfo.page?encodeURIComponent(t.refererInfo.page):null,a.gdpr_consent="",a.gdpr=!1,t&&t.gdprConsent&&(void 0!==t.gdprConsent.gdprApplies&&(a.gdpr=t.gdprConsent.gdprApplies),void 0!==t.gdprConsent.consentString&&(a.gdpr_consent=t.gdprConsent.consentString)),(null==t?void 0:t.gppConsent)?a.privacy={gpp:t.gppConsent.gppString,gpp_sid:t.gppConsent.applicableSections}:(null==(o=null==(r=null==t?void 0:t.ortb2)?void 0:r.regs)?void 0:o.gpp)&&(a.privacy={gpp:t.ortb2.regs.gpp,gpp_sid:t.ortb2.regs.gpp_sid});return{method:"POST",url:"https://shb.richaudience.com/hb/",data:JSON.stringify(a)}}))},interpretResponse:function(e,t){const i=[];var n=e.body;if(n){var r={requestId:JSON.parse(t.data).bidId,cpm:n.cpm,width:n.width,height:n.height,creativeId:n.creative_id,mediaType:n.media_type,netRevenue:n.netRevenue,currency:n.currency,ttl:n.ttl,meta:n.adomain,dealId:n.dealId};if("video"===n.media_type){r.vastXml=n.vastXML;try{null!=r.vastXml&&("outstream"!=JSON.parse(t.data).videoData.format&&"banner"!=JSON.parse(t.data).videoData.format||(r.renderer=_n.install({id:t.bidId,adunitcode:t.tagId,loaded:!1,config:n.media_type,url:"https://cdn3.richaudience.com/prebidVideo/player.js"})),r.renderer.setRender(Lh))}catch(o){r.ad=n.adm}}else r.ad=n.adm;i.push(r)}return i},getUserSyncs:function(e,t,i,n,r){var o,a;const s=[];var d,l=Math.floor(9999999999*Math.random()),c="",u="",p="";return d=function(e){try{let t=null,i={};return null!=e.getConfig("userSync").filterSettings&&void 0!==e.getConfig("userSync").filterSettings&&(t=e.getConfig("userSync").filterSettings,null!=t.iframe&&void 0!==t.iframe&&(i.raiIframe="richaudience"==t.iframe.bidders||"*"==t.iframe.bidders?t.iframe.filter:"exclude"),null!=t.image&&void 0!==t.image&&(i.raiImage="richaudience"==t.image.bidders||"*"==t.image.bidders?t.image.filter:"exclude")),i}catch(t){return null}}(pt),i&&"string"==typeof i.consentString&&void 0!==i.consentString&&(u=`consentString=${i.consentString}`),(null==r?void 0:r.gppString)&&(null==(o=null==r?void 0:r.applicableSections)?void 0:o.length)&&(p="gpp="+encodeURIComponent(r.gppString),p+="&gpp_sid="+encodeURIComponent(null==(a=null==r?void 0:r.applicableSections)?void 0:a.join(","))),e.iframeEnabled&&"exclude"!=d.raiIframe&&(c="https://sync.richaudience.com/dcf3528a0b8aa83634892d50e91c306e/?ord="+l,""!=u&&(c+=`&${u}`),""!=p&&(c+=`&${p}`),s.push({type:"iframe",url:c})),e.pixelEnabled&&null!=Oh&&0==s.length&&"exclude"!=d.raiImage&&(c=`https://sync.richaudience.com/bf7c142f4339da0278e83698a02b0854/?referrer=${Oh}`,""!=u&&(c+=`&${u}`),""!=p&&(c+=`&${p}`),s.push({type:"image",url:c})),s},onTimeout:function(e){let t=function(e){let{params:t,timeout:i}=e[0],n="https://s.richaudience.com/err/?ec=6&ev=[timeout_publisher]&pla=[placement_hash]&int=PREBID&pltfm=&node=&dm=[domain]";n=n.replace("[timeout_publisher]",i),n=n.replace("[placement_hash]",t[0].pid),null!=document.location.host&&(n=n.replace("[domain]",document.location.host));return n}(e);t&&Ii(t)}});const Hh=function(){const e=Gh();return e.ADAGIO=e.ADAGIO||{},e.ADAGIO.pageviewId=e.ADAGIO.pageviewId||zt(),e.ADAGIO.adUnits=e.ADAGIO.adUnits||{},e.ADAGIO.pbjsAdUnits=e.ADAGIO.pbjsAdUnits||[],e.ADAGIO.queue=e.ADAGIO.queue||[],e.ADAGIO.versions=e.ADAGIO.versions||{},e.ADAGIO.versions.pbjs="9.10.0",e.ADAGIO.windows=e.ADAGIO.windows||[],e.ADAGIO.isSafeFrameWindow=Pi(),e.ADAGIO}(),Qh="Adagio:",Jh=[Or,Nr,jr],Kh="adagio",Xh=`https://${Kh}.bbvms.com/r/$RENDERER.js`;const ev={canAccessWindowTop:Jt,getAdagioNs:function(){return Hh},getDevice:function(){const e=navigator.language?"language":"userLanguage";return{userAgent:navigator.userAgent,language:navigator[e],dnt:Li()?1:0,geo:{},js:1}},getSite:function(e){const{refererInfo:t}=e;return{domain:as(t.topmostLocation)||"",page:t.topmostLocation||"",referrer:t.ref||Ht().document.referrer||"",top:t.reachedTop}},getRefererInfo:ds,hasRtd:function(){return(pt.getConfig("realTimeData.dataProviders")||[]).find((e=>"adagio"===e.name))},isRendererPreferredFromPublisher:function(e){const t=At(e,"renderer"),i=!!(t&&t.url&&t.render),n=At(e,"mediaTypes.video.renderer"),r=!!(n&&n.url&&n.render);return!!(i&&!0!==t.backupOnly||r&&!0!==n.backupOnly)}};function tv(e){const t=At(e,"mediaTypes.video",{}),i=At(e,"params.video",{}),n={};if(Array.isArray(t.playerSize)){const e=Array.isArray(t.playerSize[0])?t.playerSize[0]:t.playerSize;n.w=e[0],n.h=e[1]}const r={...n,...t,...i};r.context&&r.context===Br&&(r.playerName=function(e){return ev.isRendererPreferredFromPublisher(e)?"other":"adagio"}(e)),e.mediaTypes.video=r,Rr(e)}function iv(e){if(!e.admNative||!Array.isArray(e.admNative.assets))return void ti(`${Qh} Invalid native response`);const t={};e.admNative.assets.forEach((e=>{if(e.title)t.title=e.title.text;else if(e.data)!function(e){const i={1:"sponsoredBy",2:"body",3:"rating",4:"likes",5:"downloads",6:"price",7:"salePrice",8:"phone",9:"address",10:"body2",11:"displayUrl",12:"cta"};i.hasOwnProperty(e.type)&&"string"==typeof e.value&&(t[i[e.type]]=e.value)}(e.data);else if(e.img)if(1===e.img.type)t.icon={url:e.img.url,width:e.img.w,height:e.img.h};else t.image={url:e.img.url,width:e.img.w,height:e.img.h}})),e.admNative.link&&(e.admNative.link.url&&(t.clickUrl=e.admNative.link.url),Array.isArray(e.admNative.link.clicktrackers)&&(t.clickTrackers=e.admNative.link.clicktrackers)),Array.isArray(e.admNative.eventtrackers)?(t.impressionTrackers=[],e.admNative.eventtrackers.forEach((e=>{if(1===e.event)switch(e.method){case 1:t.impressionTrackers.push(e.url);break;case 2:const i=`<script async src="${e.url}"><\/script>`;t.javascriptTrackers?t.javascriptTrackers+=`\n${i}`:t.javascriptTrackers=i}}))):(t.impressionTrackers=Array.isArray(e.admNative.imptrackers)?e.admNative.imptrackers:[],e.admNative.jstracker&&(t.javascriptTrackers=e.admNative.jstracker)),e.admNative.privacy&&(t.privacyLink=e.admNative.privacy),e.admNative.ext&&(t.ext={},e.admNative.ext.bvw&&(t.ext.adagio_bvw=e.admNative.ext.bvw)),e.native=t}function nv(e,t){if(e.params=e.params||{},e.params[t])return;const i=pt.getConfig("adagio")||{},n=e.ortb2,r=i[t]||At(n,`site.ext.data.${t}`,null);if(r){if(Array.isArray(r))return void(r.length&&(e.params[t]=r[0].toString()));e.params[t]=r.toString()}}function rv(e){const t=pt.getConfig("adagio")||{};e.params=e.params||{},t.siteId&&(e.params.organizationId=t.siteId.split(":")[0],e.params.site=t.siteId.split(":")[1]),e.params.placement=At(e,"ortb2Imp.ext.data.placement",e.params.placement),e.params.placement||!0!==t.useAdUnitCodeAsPlacement&&!0!==e.params.useAdUnitCodeAsPlacement||(e.params.placement=e.adUnitCode),e.params.adUnitElementId=At(e,"ortb2Imp.ext.data.divId",e.params.adUnitElementId),e.params.adUnitElementId||(!0===t.useAdUnitCodeAsAdUnitElementId||!0===e.params.useAdUnitCodeAsAdUnitElementId?e.params.adUnitElementId=e.adUnitCode:e.params.adUnitElementId=function(e){const t=hl(e);if(t.divId)return t.divId}(e.adUnitCode)),nv(e,"pagetype"),nv(e,"category")}const ov={bootstrapPlayer:function(e){const t=e.outstreamRendererCode,i={code:e.adUnitCode};if(e.vastXml?i.vastXml=e.vastXml:e.vastUrl&&(i.vastUrl=e.vastUrl),!e.vastXml&&!e.vastUrl)return void ti(`${Qh} no vastXml or vastUrl on bid`);if(!window.bluebillywig||!window.bluebillywig.renderers||!window.bluebillywig.renderers.length)return void ti(`${Qh} no BlueBillywig renderers found!`);const n=this.getRendererId(Kh,t),r={};e.skipOffset&&(r.skipOffset=e.skipOffset.toString());const o=window.bluebillywig.renderers.find((e=>e._id===n));if(!o)return void ti(`${Qh} couldn't find a renderer with ID ${n}`);const a=document.getElementById(e.adUnitCode);o.bootstrap(i,a,r)},newRenderer:function(e,t){const i=Xh.replace("$RENDERER",t),n=_n.install({url:i,loaded:!1,adUnitCode:e});try{n.setRender(this.outstreamRender)}catch(r){ti(`${Qh} error trying to setRender`,r)}return n},outstreamRender:function(e){e.renderer.push((()=>{ov.bootstrapPlayer(e)}))},getRendererId:function(e,t){return`${e}-${t}`}};Ga({code:"adagio",gvlid:617,supportedMediaTypes:Jh,isBidRequestValid:e=>(e.params=e.params||{},rv(e),!!(e.params.organizationId&&e.params.site&&e.params.placement)||(ei(`${Qh} at least one required param is missing.`),!1)),buildRequests(e,t){e=Fa(e);const i="https:"===location.protocol?1:0,n=ev.getDevice(),r=ev.getSite(t),o=ev.getAdagioNs().pageviewId,a=function(e){if(!At(e,"gdprConsent"))return!1;const{apiVersion:t,gdprApplies:i,consentString:n,allowAuctionWithoutConsent:r}=e.gdprConsent;return Wi({apiVersion:t,consentString:n,consentRequired:i?1:0,allowAuctionWithoutConsent:r?1:0})}(t)||{},s=function(e){return!!At(e,"uspConsent")&&{uspConsent:e.uspConsent}}(t)||{},d={required:!0===pt.getConfig("coppa")?1:0},{gpp:l,gpp_sid:c}=At(t,"ortb2.regs",{}),u=At(e[0],"schain");const p=function(e){if(At(e,"userIdAsEids"))return e.userIdAsEids}(e[0])||[],m=At(pt.getConfig("userSync"),"syncEnabled")&&Sr.canBidderRegisterSync("iframe","adagio"),f=At(t,"ortb2.regs.ext.dsa"),g=At(t,"ortb2.site.ext.data.adg_rtd.session",{});Object.keys(g).length||(Xt(Qh,"No session data provided. A new session is be generated."),g.new=!0,g.rnd=Math.random());const h=At(t,"ortb2.site.ext.data.adg_rtd.uid")||zt(),v=e.map((e=>{const t=Bi(e);if(t.auctionId=h,t.params.splitKeyword&&(ci(t.params.splitKeyword)||pi(t.params.splitKeyword)?t.params.splitKeyword=t.params.splitKeyword.toString():(delete t.params.splitKeyword,ei(Qh,"The splitKeyword param have been removed because the type is invalid, accepted type: number or string."))),t.params.organizationId=t.params.organizationId.toString(),t.params.dataLayer)if(ci(t.params.dataLayer)||pi(t.params.dataLayer)||ui(t.params.dataLayer)||li(t.params.dataLayer))ei(Qh,"The dataLayer param is invalid, only object is accepted as a type."),delete t.params.dataLayer;else{let e=!1;t.params.dl=t.params.dataLayer,delete t.params.dataLayer,Object.keys(t.params.dl).forEach((i=>{t.params.dl[i]&&(ci(t.params.dl[i])||pi(t.params.dl[i])?t.params.dl[i]=t.params.dl[i].toString():(e=!0,delete t.params.dl[i]))})),e&&ei(Qh,"Some parameters of the dataLayer property have been removed because the type is invalid, accepted type: number or string.")}const i=function(e){if(!li(e.getFloor))return!1;const t=[],i=(i,n)=>{const r=e.getFloor({currency:"USD",mediaType:i,size:n});t.push(Wi({mt:i,s:ui(n)?`${n[0]}x${n[1]}`:void 0,f:isNaN(r.floor)||"USD"!==r.currency?void 0:r.floor}))};return Object.keys(e.mediaTypes).forEach((t=>{if(-1!==Jh.indexOf(t)){const n=t===jr?"playerSize":"sizes";e.mediaTypes[t][n]&&e.mediaTypes[t][n].length?ui(e.mediaTypes[t][n][0])?e.mediaTypes[t][n].forEach((e=>{i(t,[e[0],e[1]])})):i(t,[e.mediaTypes[t][n][0],e.mediaTypes[t][n][1]]):i(t,"*")}})),t}(e);if(ui(i)&&i.length){if(t.floors=i,At(t,"mediaTypes.banner")){const e=t.mediaTypes.banner,i=(e=[])=>{const i={size:e,floor:null},n=t.floors.filter((e=>e.mt===Or)),r=n.find((t=>t.s===e.join("x")));return i.floor=n?r?r.f:n[0].f:null,i};t.mediaTypes.banner.bannerSizes=ui(e.sizes[0])?e.sizes.map((e=>i(e))):i(e.sizes)}if(At(t,"mediaTypes.video")){const e=t.mediaTypes.video,i=t.floors.filter((e=>e.mt===jr)),n=e.playerSize&&ui(e.playerSize[0])?e.playerSize[0]:e.playerSize,r=n?i.find((e=>e.s===n.join("x"))):void 0;t.mediaTypes.video.floor=i?r?r.f:i[0].f:null}if(At(t,"mediaTypes.native")){const e=t.floors.filter((e=>e.mt===Nr));e.length&&(t.mediaTypes.native.floor=e[0].f)}}At(t,"mediaTypes.video")&&tv(t);const n=At(t,"ortb2Imp.ext.gpid")||At(t,"ortb2Imp.ext.data.pbadslot");n&&(t.gpid=n);const r={...At(t,"ortb2.site.ext.data.adg_rtd.features",{}),print_number:(t.bidderRequestsCount||1).toString(),adunit_position:At(t,"ortb2Imp.ext.data.adg_rtd.adunit_position",null)};t.features=Object.entries(r).reduce(((e,[t,i])=>(null==i||(e[t]=i),e)),{}),delete t.params.siteId;return{adUnitCode:t.adUnitCode,auctionId:t.auctionId,bidder:t.bidder,bidId:t.bidId,params:t.params,features:t.features,gpid:t.gpid,mediaTypes:t.mediaTypes,nativeParams:t.nativeParams,score:t.score,transactionId:t.transactionId}})),b=v.reduce(((e,t)=>{const i=t.params.organizationId;return e[i]=e[i]||[],e[i].push(t),e}),{});e.forEach((e=>{e.params.pageviewId=o}));return Object.keys(b).map((e=>({method:"POST",url:"https://mp.4dex.io/prebid",data:{organizationId:e,hasRtd:ev.hasRtd()?1:0,secure:i,device:n,site:r,pageviewId:o,adUnits:b[e],data:{session:g},regs:{gdpr:a,coppa:d,ccpa:s,gpp:l||"",gppSid:c||[],dsa:f},schain:u,user:{eids:p},prebidVersion:"9.10.0",usIfr:m},options:{contentType:"text/plain"}})))},interpretResponse(e,t){let i=[];try{const n=e.body;n&&(n.data&&ev.hasRtd()&&ev.getAdagioNs().queue.push({action:"ssp-data",ts:Date.now(),data:n.data}),n.bids&&n.bids.forEach((e=>{const n=_e(t.data.adUnits,(t=>t.bidId===e.requestId));if(n){if(e.meta=At(e,"meta",{}),e.meta.mediaType=e.mediaType,e.meta.advertiserDomains=Array.isArray(e.aDomain)&&e.aDomain.length?e.aDomain:[],e.mediaType===jr){const t=At(n,"mediaTypes.video.context");if(!e.vastUrl&&e.vastXml&&(e.vastUrl="data:text/xml;charset=utf-8;base64,"+window.btoa(e.vastXml.replace(/\\"/g,'"'))),t===Br){if(e.outstreamRendererCode=At(n,"params.rendererCode","renderer"),At(n,"mediaTypes.video.skip")){const t=At(n,"mediaTypes.video.skipafter",5);e.skipOffset=t}e.renderer=ov.newRenderer(e.adUnitCode,e.outstreamRendererCode)}}e.mediaType===Nr&&iv(e),e.site=n.params.site,e.placement=n.params.placement,e.pagetype=n.params.pagetype,e.category=n.params.category}i.push(e)})))}catch(n){ti(n)}return i},getUserSyncs(e,t){if(!t.length||""===t[0].body||!t[0].body.userSyncs)return!1;return t[0].body.userSyncs.map((e=>({type:"p"===e.t?"image":"iframe",url:e.u})))}});const av="adagio",sv="https://script.4dex.io/a/latest/adagio.js",dv="code",lv="gpid",cv=kr({moduleType:Pn,moduleName:av}),{logError:uv,logWarn:pv}=ii("AdagioRtdProvider:"),mv=new Set,fv=function(){const e={session:{}};return{init:()=>{cv.getDataFromLocalStorage("adagio",(t=>{const{rnd:i,new:n=!1,vwSmplg:r,vwSmplgNxt:o,lastActivityTime:a,id:s,testName:d,testVersion:l,initiator:c}=hv.getSessionFromLocalStorage(t),u="snippet"===c?n:(e=>{const t=Date.now();return!pi(e)||t-e>18e5})(a);e.session={rnd:i,new:u,...void 0!==r&&{vwSmplg:r},...void 0!==o&&{vwSmplgNxt:o},...void 0!==a&&{lastActivityTime:a},...void 0!==s&&{id:s},...void 0!==d&&{testName:d},...void 0!==l&&{testVersion:l},...void 0!==c&&{initiator:c}},"snippet"!==c&&(u||d)&&(e.session.new=!0,e.session.id=zt(),e.session.rnd=Math.random(),delete e.session.testName,delete e.session.testVersion),hv.getAdagioNs().queue.push({action:"session",ts:Date.now(),data:{session:{...e.session}}})}))},get:function(){return e.session}}}(),gv=function(){const e={initialized:!1,data:{}};return{reset:function(){e.initialized=!1,e.data={}},get:function(){const t=Gh();return e.initialized||(e.data={page_dimensions:yv().toString(),viewport_dimensions:wv().toString(),user_timestamp:(Math.floor((new Date).getTime()/1e3)-60*(new Date).getTimezoneOffset()).toString(),dom_loading:ji(t).toString()},e.initialized=!0),{...e.data}}}}(),hv={getAdagioNs:function(){return Hh},getSession:function(){return fv},getFeatures:function(){return gv},getGuard:function(){return mv},isAdagioBidder:function(e){return!!e&&(e+Ps.aliasRegistry[e]).toLowerCase().includes("adagio")},getSessionFromLocalStorage:function(e){const t={new:!0,rnd:Math.random()},i=JSON.parse(e,(function(e,t){if("_"!==e.charAt(0)||""===e)return t}));return i&&i.session?i.session:t}};const vv={name:av,gvlid:617,init:function(e,t){var i,n;return ci(null==(i=e.params)?void 0:i.organizationId)&&ci(null==(n=e.params)?void 0:n.site)?(hv.getAdagioNs().hasRtd=!0,hv.getSession().init(),function(e){const t=new Set(["impressionViewable","slotRenderEnded","slotVisibilityChanged"]),i=new Set(["noad","setHeaderBiddingWinner"]),n=new Set(["adLoaded"]),r=Ht();Array.isArray(hv.getAdagioNs().windows)||(hv.getAdagioNs().windows=[]);let o=hv.getAdagioNs().windows.find((e=>e.self===r));o||(o={self:r},hv.getAdagioNs().windows.push(o));const a=(e,t,i,n,o)=>{try{if(i.adserver===n)return;r[e]=r[e]||{},r[e][t]=r[e][t]||[],o()}catch(a){uv(a)}};a("googletag","cmd",r,"gpt",(()=>{r.googletag.cmd.push((()=>{t.forEach((e=>{r.googletag.pubads().addEventListener(e,(t=>{hv.getAdagioNs().queue.push({action:"gpt-event",data:{eventName:e,args:t,_window:r},ts:Date.now()})}))})),o.adserver="gpt"}))})),a("sas","cmd",r,"sas",(()=>{r.sas.cmd.push((()=>{i.forEach((e=>{r.sas.events.on(e,(t=>{hv.getAdagioNs().queue.push({action:"sas-event",data:{eventName:e,args:t,_window:r},ts:Date.now()})}))})),o.adserver="sas"}))})),a("apntag","anq",r,"ast",(()=>{r.apntag.anq.push((()=>{n.forEach((e=>{r.apntag.onEvent(e,(()=>{hv.getAdagioNs().queue.push({action:"ast-event",data:{eventName:e,args:arguments,_window:r},ts:Date.now()})}))})),o.adserver="ast"}))}))}(e),function(e){cv.localStorageIsEnabled((t=>{t&&xn(sv,av,void 0,void 0,{id:`adagiojs-${Mt()}`,"data-pid":e.params.organizationId})}))}(e),!0):(uv("organizationId is required and must be a string."),!1)},getBidRequestData:function(e,t,i){const n=At(i,"params",{}),{site:r}=e.ortb2Fragments.global,o=hv.getFeatures().get(),a={uid:zt(),pageviewId:Hh.pageviewId,features:{...o},session:{...fv.get()}};Tt(r,"ext.data.adg_rtd",a),(e.adUnits||It().adUnits||[]).forEach((e=>{e.ortb2Imp=e.ortb2Imp||{};const t=At(e,"ortb2Imp");let i=At(t,"ext.data.divId");i||(i=hl(e.code).divId,Tt(t,"ext.data.divId",i||e.code));const o=function(e){if(!Pi()&&!Jt())return"";const t={x:0,y:0};if(Pi()){const{self:e}=Ri()||{};if(!e)return"";t.x=Math.round(e.t),t.y=Math.round(e.l)}else try{const i=Gt(),n=i.document;let r;if(!0===Ui()){const t=Ht();r=bv(t.document.getElementById(e),t)}else r=i.document.getElementById(e);if(!r)return"";let o=r.getBoundingClientRect();const a=n.documentElement,s=n.body,d=n.clientTop||s.clientTop||0,l=n.clientLeft||s.clientLeft||0,c=i.pageYOffset||a.scrollTop||s.scrollTop,u=i.pageXOffset||a.scrollLeft||s.scrollLeft,p=i.getComputedStyle(r,null);"none"===p.display&&pv("The element is hidden. The slot position cannot be computed."),t.x=Math.round(o.left+u-l),t.y=Math.round(o.top+c-d)}catch(i){return uv(i),""}return`${t.x}x${t.y}`}(i);if(Tt(t,"ext.data.adg_rtd.adunit_position",o),!At(t,"ext.data.placement")){const{placementSource:i=""}=n;switch(i.toLowerCase()){case dv:Tt(t,"ext.data.placement",e.code);break;case lv:Tt(t,"ext.data.placement",At(t,"ext.gpid"));break;default:pv("`ortb2Imp.ext.data.placement` is missing and `params.definePlacement` is not set in the config.")}}const a=e.bids.find((e=>hv.isAdagioBidder(e.bidder)));if(a){let e=!1;!At(r,"ext.data.pagetype")&&a.params.pagetype&&(Tt(r,"ext.data.pagetype",a.params.pagetype),e=!0),!At(r,"ext.data.category")&&a.params.category&&(Tt(r,"ext.data.category",a.params.category),e=!0);let i=!1;At(t,"ext.data.placement")||a.params.placement&&(Tt(t,"ext.data.placement",a.params.placement),i=!0),e&&pv("`pagetype` and `category` must be defined in the FPD `ortb2.site.ext.data` object. Relying on `adUnits[].bids.adagio.params` is deprecated."),i&&pv("`placement` must be defined in the FPD `adUnits[].ortb2Imp.ext.data` object. Relying on `adUnits[].bids.adagio.params` is deprecated.")}})),t()},onBidRequestEvent:function(e,t,i){setTimeout((()=>{e.bids.forEach((e=>{const i=At(e,"ortb2.site.ext.data.adg_rtd.uid");if(!i)return void uv("The `uid` is required to store the request in the ADAGIO namespace.");const n=`${e.adUnitCode}-${i}`;hv.getGuard().has(n)||(hv.getGuard().add(n),function(e,t){try{const{bidder:i,adUnitCode:n,mediaTypes:r,params:o,auctionId:a,bidderRequestsCount:s,ortb2:d,ortb2Imp:l}=e,{organizationId:c,site:u}=t.params,p=At(d,"site.ext.data",{}),m={bidder:i,adUnitCode:n,mediaTypes:r,params:o,auctionId:a,bidderRequestsCount:s,ortb2:p,ortb2Imp:At(l,"ext.data",{}),localPbjs:"slmpbjs",localPbjsRef:It(),organizationId:c,site:u};hv.getAdagioNs().queue.push({action:"store",ts:Date.now(),data:m})}catch(i){uv(i)}}(e,t))}))}),1)}};function bv(e,t){try{if(Gt()===t)return e.getAttribute("id")||e.setAttribute("id",`adg-${Mt()}`),e;{const i=t.frameElement,n=i.getBoundingClientRect(),r=e.getBoundingClientRect();return n.width===r.width&&n.height===r.height&&bv(i,t.parent)}}catch(i){return pv(i),!1}}function yv(){if(Pi()||!Jt())return"";const e=Gt(),t=e.document.querySelector("body");if(!t)return"";const i=e.document.documentElement;return`${Math.max(t.scrollWidth,t.offsetWidth,i.clientWidth,i.scrollWidth,i.offsetWidth)}x${Math.max(t.scrollHeight,t.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)}`}function wv(){if(!Pi()&&!Jt())return"";const e={w:0,h:0};if(Pi()){const{win:t}=Ri()||{};if(!t)return"";e.w=Math.round(t.w),e.h=Math.round(t.h)}else{const t=Gt();e.w=t.innerWidth,e.h=t.innerHeight}return`${e.w}x${e.h}`}Qn("realTimeData",vv);var Iv={};const Av=Nn(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Tv={};!function(e){var t=/[|\\{}()[\]^$+*?.]/g,i=Object.prototype.hasOwnProperty,n=function(e,t){return i.apply(e,[t])};e.escapeRegExpChars=function(e){return e?String(e).replace(t,"\\$&"):""};var r={"&":"&","<":"<",">":">",'"':""","'":"'"},o=/[&<>'"]/g;function a(e){return r[e]||e}function s(){return Function.prototype.toString.call(this)+';\nvar _ENCODE_HTML_RULES = {\n "&": "&"\n , "<": "<"\n , ">": ">"\n , \'"\': """\n , "\'": "'"\n }\n , _MATCH_HTML = /[&<>\'"]/g;\nfunction encode_char(c) {\n return _ENCODE_HTML_RULES[c] || c;\n};\n'}e.escapeXML=function(e){return null==e?"":String(e).replace(o,a)};try{"function"==typeof Object.defineProperty?Object.defineProperty(e.escapeXML,"toString",{value:s}):e.escapeXML.toString=s}catch(d){console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}e.shallowCopy=function(e,t){if(t=t||{},null!=e)for(var i in t)n(t,i)&&"__proto__"!==i&&"constructor"!==i&&(e[i]=t[i]);return e},e.shallowCopyFromList=function(e,t,i){if(i=i||[],t=t||{},null!=e)for(var r=0;r<i.length;r++){var o=i[r];if(void 0!==t[o]){if(!n(t,o))continue;if("__proto__"===o||"constructor"===o)continue;e[o]=t[o]}}return e},e.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}},e.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,(function(e){return e[1].toUpperCase()}))},e.createNullProtoObjWherePossible="function"==typeof Object.create?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}},e.hasOwnOnlyObject=function(t){var i=e.createNullProtoObjWherePossible();for(var r in t)n(t,r)&&(i[r]=t[r]);return i}}(Tv);const xv="3.1.10";!function(e){ /** * @file Embedded JavaScript templating engine. {@link http://ejs.co} * @author Matthew Eernisse <mde@fleegix.org> * @author Tiancheng "Timothy" Gu <timothygu99@gmail.com> * @project EJS * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0} */ var t=Av,i=Av,n=Tv,r=!1,o=xv,a="locals",s=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],d=s.concat("cache"),l=/^\uFEFF/,c=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;function u(i,n){var r;if(n.some((function(n){return r=e.resolveInclude(i,n,!0),t.existsSync(r)})))return r}function p(t,i){var n,r=t.filename,o=arguments.length>1;if(t.cache){if(!r)throw new Error("cache option requires a filename");if(n=e.cache.get(r))return n;o||(i=m(r).toString().replace(l,""))}else if(!o){if(!r)throw new Error("Internal EJS error: no file name or template provided");i=m(r).toString().replace(l,"")}return n=e.compile(i,t),t.cache&&e.cache.set(r,n),n}function m(t){return e.fileLoader(t)}function f(i,r){var o=n.shallowCopy(n.createNullProtoObjWherePossible(),r);if(o.filename=function(i,n){var r,o,a=n.views,s=/^[A-Za-z]+:\\|^\//.exec(i);if(s&&s.length)i=i.replace(/^\/*/,""),r=Array.isArray(n.root)?u(i,n.root):e.resolveInclude(i,n.root||"/",!0);else if(n.filename&&(o=e.resolveInclude(i,n.filename),t.existsSync(o)&&(r=o)),!r&&Array.isArray(a)&&(r=u(i,a)),!r&&"function"!=typeof n.includer)throw new Error('Could not find the include file "'+n.escapeFunction(i)+'"');return r}(i,o),"function"==typeof r.includer){var a=r.includer(i,o.filename);if(a&&(a.filename&&(o.filename=a.filename),a.template))return p(o,a.template)}return p(o)}function g(e,t,i,n,r){var o=t.split("\n"),a=Math.max(n-3,0),s=Math.min(o.length,n+3),d=r(i),l=o.slice(a,s).map((function(e,t){var i=t+a+1;return(i==n?" >> ":" ")+i+"| "+e})).join("\n");throw e.path=d,e.message=(d||"ejs")+":"+n+"\n"+l+"\n\n"+e.message,e}function h(e){return e.replace(/;(\s*$)/,"$1")}function v(t,i){var r=n.hasOwnOnlyObject(i),o=n.createNullProtoObjWherePossible();this.templateText=t,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",o.client=r.client||!1,o.escapeFunction=r.escape||r.escapeFunction||n.escapeXML,o.compileDebug=!1!==r.compileDebug,o.debug=!!r.debug,o.filename=r.filename,o.openDelimiter=r.openDelimiter||e.openDelimiter||"<",o.closeDelimiter=r.closeDelimiter||e.closeDelimiter||">",o.delimiter=r.delimiter||e.delimiter||"%",o.strict=r.strict||!1,o.context=r.context,o.cache=r.cache||!1,o.rmWhitespace=r.rmWhitespace,o.root=r.root,o.includer=r.includer,o.outputFunctionName=r.outputFunctionName,o.localsName=r.localsName||e.localsName||a,o.views=r.views,o.async=r.async,o.destructuredLocals=r.destructuredLocals,o.legacyInclude=void 0===r.legacyInclude||!!r.legacyInclude,o.strict?o._with=!1:o._with=void 0===r._with||r._with,this.opts=o,this.regex=this.createRegex()}e.cache=n.cache,e.fileLoader=t.readFileSync,e.localsName=a,e.promiseImpl=new Function("return this;")().Promise,e.resolveInclude=function(e,t,n){var r=i.dirname,o=i.extname,a=(0,i.resolve)(n?t:r(t),e);return o(e)||(a+=".ejs"),a},e.compile=function(e,t){return t&&t.scope&&(r||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),r=!0),t.context||(t.context=t.scope),delete t.scope),new v(e,t).compile()},e.render=function(e,t,i){var r=t||n.createNullProtoObjWherePossible(),o=i||n.createNullProtoObjWherePossible();return 2==arguments.length&&n.shallowCopyFromList(o,r,s),p(o,e)(r)},e.renderFile=function(){var t,i,r,o=Array.prototype.slice.call(arguments),a=o.shift(),s={filename:a};return"function"==typeof arguments[arguments.length-1]&&(t=o.pop()),o.length?(i=o.shift(),o.length?n.shallowCopy(s,o.pop()):(i.settings&&(i.settings.views&&(s.views=i.settings.views),i.settings["view cache"]&&(s.cache=!0),(r=i.settings["view options"])&&n.shallowCopy(s,r)),n.shallowCopyFromList(s,i,d)),s.filename=a):i=n.createNullProtoObjWherePossible(),function(t,i,n){var r;if(!n){if("function"==typeof e.promiseImpl)return new e.promiseImpl((function(e,n){try{e(r=p(t)(i))}catch(o){n(o)}}));throw new Error("Please provide a callback function")}try{r=p(t)(i)}catch(o){return n(o)}n(null,r)}(s,i,t)},e.Template=v,e.clearCache=function(){e.cache.reset()},v.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"},v.prototype={createRegex:function(){var e="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",t=n.escapeRegExpChars(this.opts.delimiter),i=n.escapeRegExpChars(this.opts.openDelimiter),r=n.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,i).replace(/>/g,r),new RegExp(e)},compile:function(){var e,t,r,o=this.opts,a="",s="",d=o.escapeFunction,l=o.filename?JSON.stringify(o.filename):"undefined";if(!this.source){if(this.generateSource(),a+=' var __output = "";\n function __append(s) { if (s !== undefined && s !== null) __output += s }\n',o.outputFunctionName){if(!c.test(o.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");a+=" var "+o.outputFunctionName+" = __append;\n"}if(o.localsName&&!c.test(o.localsName))throw new Error("localsName is not a valid JS identifier.");if(o.destructuredLocals&&o.destructuredLocals.length){for(var u=" var __locals = ("+o.localsName+" || {}),\n",p=0;p<o.destructuredLocals.length;p++){var m=o.destructuredLocals[p];if(!c.test(m))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(u+=",\n "),u+=m+" = __locals."+m}a+=u+";\n"}!1!==o._with&&(a+=" with ("+o.localsName+" || {}) {\n",s+=" }\n"),s+=" return __output;\n",this.source=a+this.source+s}e=o.compileDebug?"var __line = 1\n , __lines = "+JSON.stringify(this.templateText)+"\n , __filename = "+l+";\ntry {\n"+this.source+"} catch (e) {\n rethrow(e, __lines, __filename, __line, escapeFn);\n}\n":this.source,o.client&&(e="escapeFn = escapeFn || "+d.toString()+";\n"+e,o.compileDebug&&(e="rethrow = rethrow || "+g.toString()+";\n"+e)),o.strict&&(e='"use strict";\n'+e),o.debug&&console.log(e),o.compileDebug&&o.filename&&(e=e+"\n//# sourceURL="+l+"\n");try{if(o.async)try{r=new Function("return (async function(){}).constructor;")()}catch(y){throw y instanceof SyntaxError?new Error("This environment does not support async/await"):y}else r=Function;t=new r(o.localsName+", escapeFn, include, rethrow",e)}catch(y){throw y instanceof SyntaxError&&(o.filename&&(y.message+=" in "+o.filename),y.message+=" while compiling ejs\n\n",y.message+="If the above error is not helpful, you may want to try EJS-Lint:\n",y.message+="https://github.com/RyanZim/EJS-Lint",o.async||(y.message+="\n",y.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),y}var h=o.client?t:function(e){return t.apply(o.context,[e||n.createNullProtoObjWherePossible(),d,function(t,i){var r=n.shallowCopy(n.createNullProtoObjWherePossible(),e);return i&&(r=n.shallowCopy(r,i)),f(t,o)(r)},g])};if(o.filename&&"function"==typeof Object.defineProperty){var v=o.filename,b=i.basename(v,i.extname(v));try{Object.defineProperty(h,"name",{value:b,writable:!1,enumerable:!1,configurable:!0})}catch(y){}}return h},generateSource:function(){this.opts.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,"\n").replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var e=this,t=this.parseTemplateText(),i=this.opts.delimiter,n=this.opts.openDelimiter,r=this.opts.closeDelimiter;t&&t.length&&t.forEach((function(o,a){var s;if(0===o.indexOf(n+i)&&0!==o.indexOf(n+i+i)&&(s=t[a+2])!=i+r&&s!="-"+i+r&&s!="_"+i+r)throw new Error('Could not find matching close tag for "'+o+'".');e.scanLine(o)}))},parseTemplateText:function(){for(var e,t=this.templateText,i=this.regex,n=i.exec(t),r=[];n;)0!==(e=n.index)&&(r.push(t.substring(0,e)),t=t.slice(e)),r.push(n[0]),t=t.slice(n[0].length),n=i.exec(t);return t&&r.push(t),r},_addOutput:function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=(e=(e=(e=e.replace(/\\/g,"\\\\")).replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/"/g,'\\"'),this.source+=' ; __append("'+e+'")\n'},scanLine:function(e){var t,i=this.opts.delimiter,n=this.opts.openDelimiter,r=this.opts.closeDelimiter;switch(t=e.split("\n").length-1,e){case n+i:case n+i+"_":this.mode=v.modes.EVAL;break;case n+i+"=":this.mode=v.modes.ESCAPED;break;case n+i+"-":this.mode=v.modes.RAW;break;case n+i+"#":this.mode=v.modes.COMMENT;break;case n+i+i:this.mode=v.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+i+i,n+i)+'")\n';break;case i+i+r:this.mode=v.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+i+r,i+r)+'")\n';break;case i+r:case"-"+i+r:case"_"+i+r:this.mode==v.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=0===e.indexOf("-")||0===e.indexOf("_");break;default:if(this.mode){switch(this.mode){case v.modes.EVAL:case v.modes.ESCAPED:case v.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf("\n")&&(e+="\n")}switch(this.mode){case v.modes.EVAL:this.source+=" ; "+e+"\n";break;case v.modes.ESCAPED:this.source+=" ; __append(escapeFn("+h(e)+"))\n";break;case v.modes.RAW:this.source+=" ; __append("+h(e)+")\n";break;case v.modes.COMMENT:break;case v.modes.LITERAL:this._addOutput(e)}}else this._addOutput(e)}this.opts.compileDebug&&t&&(this.currentLine+=t,this.source+=" ; __line = "+this.currentLine+"\n")}},e.escapeXML=n.escapeXML,e.__express=e.renderFile,e.VERSION=o,e.name="ejs","undefined"!=typeof window&&(window.ejs=e)}(Iv);function kv(e){var t,i;return!e.id||"its"!==e.type||"outofpage"===e.sizes||(!!(null===(i=null===(t=null==e?void 0:e.params)||void 0===t?void 0:t.interstitial)||void 0===i?void 0:i.allowFirstPage)||!function(e){const t=sessionStorage.getItem(ee);if(t)try{return!JSON.parse(t).includes(e)}catch(i){return!0}return!0}(e.id))}new class{constructor(){D.after("loadConfig",((e,t)=>{var i;const n=this.getParams(null===(i=t.params)||void 0===i?void 0:i.placeholder);n.allowIcon&&this.renderIcon(),n.allowWatermark&&this.renderWatermark()})),D.after("renderAds",((e,t)=>{t.ids.forEach((e=>{const t=document.getElementById(e);t&&this.remove(t)}))})),D.after("passback",((e,t)=>{const i=document.getElementById(t.adUnit.id);i&&this.remove(i)}))}getParams(e){return Object.assign(Object.assign({},{allowIcon:!1,allowWatermark:!1}),e)}renderWatermark(){document.querySelectorAll(".akcelo-placeholder").forEach((e=>{e.dataset.disableWatermark||(e.innerHTML+=Iv.render('<div class="akcelo-watermark" style="position:absolute;bottom:0;right:0;background:rgba(255,255,255,0.5);padding:2px 4px;z-index:2;">\n <a href="https://akcelo.io" target="blank" rel="nofollow" style="text-decoration:none;display:flex;align-items:center;font-family:Roboto, sans-serif;font-size:8px;color:#000;">\n <span style="line-height:10px;">Powered by</span>\n <img rel="preload" src="https://ads.sportslocalmedia.com/akcelo_logo.svg" alt="Akcelo logo" style="height:8px;margin-left:3px;"/>\n </a>\n</div>\n'))}))}renderIcon(){document.querySelectorAll(".akcelo-placeholder").forEach((e=>{e.innerHTML+=Iv.render('<style>\n .akcelo-placeholder:not(.akcelo-loaded)::after {\n content: \'\' !important;\n border: none !important;\n }\n @keyframes fadeAnimationAkcelo {\n 0% {\n filter: grayscale(1);\n opacity: 0.5;\n scale: 0.75;\n }\n 50% {\n filter: grayscale(0);\n opacity: 0.75;\n scale: 1;\n }\n 100% {\n filter: grayscale(1);\n opacity: 0.5;\n scale: 0.75;\n }\n }\n</style>\n<div class="akcelo-icon" style="position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:0;background:#f9f9f9;border-radius:.5rem;padding:6px;">\n <img rel="preload" src="https://ads.sportslocalmedia.com/akcelo_icon.svg" alt="Akcelo icon" style="height:32px;animation: fadeAnimationAkcelo 2s infinite;"/>\n</div>\n')}))}remove(e){var t,i;if(null==e?void 0:e.classList.contains("akcelo-placeholder")){e.classList.add("akcelo-loaded");const t=e.querySelector(".akcelo-icon");t&&t.remove()}if(null===(t=null==e?void 0:e.parentElement)||void 0===t?void 0:t.classList.contains("akcelo-placeholder")){e.parentElement.classList.add("akcelo-loaded");const t=null===(i=e.parentElement)||void 0===i?void 0:i.querySelector(".akcelo-icon");t&&t.remove()}}};const Cv=new G("Capping Manager"),_v=[];new class{constructor(){Cv.info("Module initialization"),D.before("addAdUnit",(e=>{var t;if(e.isCapped=!1,kv(e.adUnit)||(!function(e){let t=[];const i=sessionStorage.getItem(ee);if(i)try{t=JSON.parse(i)}catch(n){console.error(`Fail to parse ${ee}`)}t.includes(e)||t.push(e),sessionStorage.setItem(ee,JSON.stringify(t))}(e.adUnit.id),e.isCapped=!0),(null===(t=e.adUnit.params)||void 0===t?void 0:t.capping)&&!e.isCapped){const t=this.getOrCreateCappingState(e.adUnit.id,{count:e.adUnit.params.capping.count,timeout:e.adUnit.params.capping.timeout});0===(null==t?void 0:t.capping)&&(e.isCapped=!0)}})),D.before("adUnitRendered",(e=>{const t=this.getCappingState(e.id);t&&-1===_v.indexOf(e.id)&&(_v.push(e.id),t.capping>0&&this.updateCappingState(e.id,t.capping-1,t.expiry,t.timeout))}))}getCappingState(e){var t;const i=JSON.parse(localStorage.getItem(X)||"{}"),n=JSON.parse(sessionStorage.getItem(X)||"{}");return void 0!==i[e]?{capping:i[e].capping,expiry:i[e].expiry,timeout:null===(t=i[e])||void 0===t?void 0:t.timeout}:void 0!==n[e]?{capping:n[e],expiry:null,timeout:null}:null}updateCappingState(e,t,i=null,n=null){if(i){const r=JSON.parse(localStorage.getItem(X)||"{}");r[e]={capping:t,expiry:i},n&&(r[e].timeout=n),localStorage.setItem(X,JSON.stringify(r))}else{const i=JSON.parse(sessionStorage.getItem(X)||"{}");i[e]=t,sessionStorage.setItem(X,JSON.stringify(i))}}createCappingState(e,t,i=null,n=null){if(i){const r=JSON.parse(localStorage.getItem(X)||"{}");r[e]={capping:t,expiry:i,timeout:n},localStorage.setItem(X,JSON.stringify(r))}else{const i=JSON.parse(sessionStorage.getItem(X)||"{}");i[e]=t,sessionStorage.setItem(X,JSON.stringify(i))}}getOrCreateCappingState(e,t){const i=Date.now();let n=t.count;const r=t.timeout?t.timeout:null;let o=null;r&&!(-1===r)&&(o=i+r);const a=this.getCappingState(e);if(a){if(a.expiry){if(!(a.expiry<=i||r&&a.timeout!==r))return{capping:a.capping,expiry:a.expiry};this.updateCappingState(e,n,o,r)}else n=a.capping;return{capping:n}}return this.createCappingState(e,n,o,r),{capping:n,expiry:o}}};class Ev{constructor(e,t){this.remaining=t,this.callback=e,this.delay=t,this.resume()}pause(){window.clearTimeout(this.timerId),this.remaining-=Date.now()-(this.start||0)}resume(){this.start=Date.now(),window.clearTimeout(this.timerId),this.timerId=window.setTimeout(this.callback,this.remaining)}reset(){this.remaining=this.delay,this.resume()}}class Sv{constructor(e,t=200){this.items=[],this.url=e,this.timer=t}send(e){this.sendAll([e])}batchThenSend(e){return!!e&&(this.items.push(e),0===this.timer?this.flush():void(1===this.items.length&&setTimeout((()=>this.flush()),this.timer)))}flush(){0!==this.items.length&&(this.sendAll(this.items),this.reset())}sendAll(e){const t=JSON.stringify(e),i=new XMLHttpRequest;i.open("POST",this.url,!0),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(t)}reset(){this.items=[]}}for(var Bv,Uv=[],Pv=0;Pv<256;++Pv)Uv.push((Pv+256).toString(16).slice(1));var Rv=new Uint8Array(16);function Vv(){if(!Bv&&!(Bv="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bv(Rv)}const Nv={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function jv(e,t,i){if(Nv.randomUUID&&!t&&!e)return Nv.randomUUID();var n=(e=e||{}).random||(e.rng||Vv)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(Uv[e[t+0]]+Uv[e[t+1]]+Uv[e[t+2]]+Uv[e[t+3]]+"-"+Uv[e[t+4]]+Uv[e[t+5]]+"-"+Uv[e[t+6]]+Uv[e[t+7]]+"-"+Uv[e[t+8]]+Uv[e[t+9]]+"-"+Uv[e[t+10]]+Uv[e[t+11]]+Uv[e[t+12]]+Uv[e[t+13]]+Uv[e[t+14]]+Uv[e[t+15]]).toLowerCase()}(n)}const Ov=new class{constructor(){this.sessionId=sessionStorage.getItem(K)||"",this.sessionId||(this.sessionId=jv(),sessionStorage.setItem(K,this.sessionId)),this.pageviewId=jv(),window.slmadshb=window.slmadshb||{que:[]},window.slmadshb.akceloIds={sessionId:this.sessionId,pageviewId:this.pageviewId}}};var Dv=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))};const Fv=()=>Dv(void 0,void 0,void 0,(function*(){return new Promise((e=>{const t=()=>{const t=document.createElement("ins");t.className="AdSense",t.style.display="block",t.style.position="absolute",t.style.top="-1px",t.style.height="1px",document.body.appendChild(t);const i=!t.clientHeight;document.body.removeChild(t),e(i)};try{t()}catch(i){document.addEventListener("DOMContentLoaded",t)}}))})),qv=new G("Analytics Engagement"),Mv="akcl_eng";const zv=new class{constructor(){this.maxScrollY=0,this.startTime=Date.now(),this.isEngaged=this.isTabActive(),this.lastEngagedTime=this.startTime,this.engagementDuration=0,document.addEventListener("visibilitychange",(()=>{qv.debug(`Visibility changed [active=${this.isTabActive()}]`),this.isTabActive()?this.setEngaged():this.setNotEngaged()})),window.addEventListener("scroll",(()=>{window.scrollY>this.maxScrollY&&(this.maxScrollY=window.scrollY)}))}getStats(){const e=Date.now(),t=this.engagementDuration+(this.isEngaged?e-this.lastEngagedTime:0),i=this.maxScrollY/(document.body.scrollHeight-window.innerHeight)*100;return{visitDuration:(e-this.startTime)/1e3,engagementDuration:t/1e3,scrollDepth:Math.round((n=i||0,r=0,o=100,Math.max(r,Math.min(o,n))))};var n,r,o}saveStats(){const e=this.getStats(),t=this.loadStats();return t.push(e),localStorage.setItem(Mv,JSON.stringify(t)),e}loadStats(){const e=localStorage.getItem(Mv);try{return e?JSON.parse(e):[]}catch(t){return localStorage.removeItem(Mv),[]}}reset(){this.maxScrollY=0,this.startTime=Date.now(),this.isEngaged=this.isTabActive(),this.lastEngagedTime=Date.now(),this.engagementDuration=0}setEngaged(){qv.debug("The user is engaged"),this.isEngaged=!0,this.lastEngagedTime=Date.now()}setNotEngaged(){qv.debug("The user is not engaged"),this.isEngaged=!1,this.engagementDuration+=Date.now()-this.lastEngagedTime}isTabActive(){return!document.hidden}};var Lv=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))};const $v=new G("Event Analytics");const Zv=new class{constructor(){this.eventsLogger=new Sv("https://logs2.sportslocalmedia.com/events"),this.requestedHtmlIds=[],this.requestedMetaSlmadsIds=[],this.eventLogQueue=[],this.eventLogIsStarted=!1,$v.info("Module initialization");const e=function(){const e=navigator.userAgent;let t;function i(t,i=1){const n=e.match(t);return n&&n.length>1&&n[i]||""}return/opera|opr/i.test(e)?t={name:"Opera",type:"opera",version:i(/version\/(\d+(\.\d+)?)/i)||i(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/msie|trident/i.test(e)?t={name:"Internet Explorer",type:"msie",version:i(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(e)?t={name:"Microsft Edge",type:"msedge",version:i(/edge\/(\d+(\.\d+)?)/i)}:/chrome|crios|crmo/i.test(e)?t={name:"Google Chrome",type:"chrome",version:i(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/firefox/i.test(e)?t={name:"Firefox",type:"firefox",version:i(/(?:firefox)[ \/](\d+(\.\d+)?)/i)}:!/like android/i.test(e)&&/android/i.test(e)?t={name:"Android",type:"android",version:i(/version\/(\d+(\.\d+)?)/i)}:/safari/i.test(e)?t={name:"Safari",type:"safari",version:i(/version\/(\d+(\.\d+)?)/i)}:(t={name:i(/^(.*)\/(.*) /),version:i(/^(.*)\/(.*) /,2)},t.type=t.name.toLowerCase().replace(/\s/g,"")),t}(),t=L()?"mobile":"desktop";let i=null;var n;void 0!==window.navigator&&(i=void 0===window.navigator.userAgentData?window.navigator.platform:window.navigator.userAgentData.platform),D.after("loadConfig",(n=>Lv(this,void 0,void 0,(function*(){var r,o,a;(null===(r=null==n?void 0:n.params)||void 0===r?void 0:r.siteId)&&(this.context={device:t,abtest:null===(o=window.slmadshb.abtest)||void 0===o?void 0:o.versionName,siteId:null===(a=null==n?void 0:n.params)||void 0===a?void 0:a.siteId,sessionId:Ov.sessionId,pageviewId:Ov.pageviewId,os:i,browser:e.name,path:window.location.pathname},this.processQueue(),this.setupPageView())})))),D.after("bidsRequest",((e,t)=>{t.ids.forEach((e=>{var t;if(!this.requestedHtmlIds.includes(e)){const i=F.state.adUnits[e],n=null===(t=be.config.adUnits)||void 0===t?void 0:t.find((e=>e.id===(null==i?void 0:i.ref)));(null==n?void 0:n.slmadsId)&&this.logEvent("adcall",{data:{slmads_id:n.slmadsId.toString()}}),this.requestedHtmlIds.push(e)}}))})),D.after("addMetaAdUnit",((e,t)=>{const{slmadsId:i}=t.metaAdUnit;this.requestedMetaSlmadsIds.includes(i)||(this.logEvent("adcall",{data:{meta_slmads_id:i.toString()}}),this.requestedMetaSlmadsIds.push(i))})),Math.random()<=.01&&(n=()=>this.logTroubleshoot(),"loading"!==document.readyState?n():document.addEventListener&&document.addEventListener("DOMContentLoaded",(()=>n()))),window.addEventListener("message",(e=>{if("akcelo-click"===e.data.event){const t=e.data.data||{};this.eventsLogger.send(Object.assign(Object.assign({eventType:"click"},this.context),{data:t}))}})),window.addEventListener("beforeunload",(()=>{this.logVisit()}))}logVisit(){if(this.eventLogIsStarted){if(this.context){const e=zv.saveStats();fetch("https://logs2.sportslocalmedia.com/events",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign(Object.assign({eventType:"visit"},this.context),{data:{duration:e.visitDuration.toString(),engagementDuration:e.engagementDuration.toString(),scrollDepth:e.scrollDepth.toString()}})),keepalive:!0})}}else this.eventLogQueue.push({eventType:"visit"})}logEvent(e,t={}){$v.info("Logging event",e,t),this.eventLogIsStarted?(t.data&&Object.keys(t.data).forEach((e=>{t.data&&(t.data[e]=t.data[e].toString())})),this.eventsLogger.batchThenSend(Object.assign(Object.assign({eventType:e},this.context),t))):this.eventLogQueue.push({eventType:e,extraContext:t})}logPerformances(){var e,t,i,n;if(!this.eventLogIsStarted)return void this.eventLogQueue.push({eventType:"performance"});if(Math.random()>.04)return;let r,o;window.navigator.connection&&(r=null===(t=null===(e=window.navigator)||void 0===e?void 0:e.connection)||void 0===t?void 0:t.effectiveType,o=null===(n=null===(i=window.navigator)||void 0===i?void 0:i.connection)||void 0===n?void 0:n.downlink);try{const e=performance.measure("akcelo:fromStartToLoad",void 0,te),t=performance.measure("akcelo:fromLoadToFirstBid",te,ne),i=performance.measure("akcelo:fromLoadToAdManagerRequest",te,ie);void 0!==e&&(this.logEvent("performance",{data:{connection_type:r||"",connection_downlink:(null==o?void 0:o.toString())||"",from_start_to_load:Math.ceil(e.duration).toString(),from_load_to_first_bid:(Math.ceil(null==t?void 0:t.duration)||0).toString(),from_load_to_ad_manager_request:(Math.ceil(null==i?void 0:i.duration)||0).toString()}}),performance.clearMarks(te),performance.clearMarks(ie),performance.clearMarks(ne),performance.clearMeasures("akcelo:fromStartToLoad"),performance.clearMeasures("akcelo:fromLoadToFirstBid"),performance.clearMeasures("akcelo:fromLoadToAdManagerRequest"))}catch(a){$v.error("Error during performance measure",a)}}logTroubleshoot(){if(!this.eventLogIsStarted)return void this.eventLogQueue.push({eventType:"troubleshoot"});const e=document.createElement("script");e.src="https://ads.sportslocalmedia.com/slm.adtool.troubleshoot.js",e.onload=()=>Lv(this,void 0,void 0,(function*(){var e,t;if(!(null===(t=null===(e=window.slmadshb)||void 0===e?void 0:e.checkService)||void 0===t?void 0:t.check))return;const i=yield window.slmadshb.checkService.check();if(i){i.filter((e=>"PASSED"!==e.status)).forEach((e=>{var t,i,n,r,o;const a={data:{slmads_id:null!==(n=null===(i=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.slmadsId)||void 0===i?void 0:i.toString())&&void 0!==n?n:"",severity:(null===(r=e.severity)||void 0===r?void 0:r.toLowerCase())||"",status:(null===(o=e.status)||void 0===o?void 0:o.toLowerCase())||"",code:e.code}};(null==e?void 0:e.data)&&(a.data.extra=JSON.stringify(e.data)),this.logEvent("troubleshoot",a)}))}})),document.head.appendChild(e)}setupPageView(){return Lv(this,void 0,void 0,(function*(){return Ie.loadConsent().then((()=>Lv(this,void 0,void 0,(function*(){if(!(yield Fv())){const e=Ie.getConsentType(),t=Ie.getCmpId(),i=Ie.getTcfPolicyVersion();this.logEvent("pageview",{data:{consent:e,cmp_id:t.toString(),tcf_policy_version:i.toString()}});let n=window.location.hostname+window.location.pathname;new MutationObserver((()=>{const i=window.location.hostname+window.location.pathname;i!==n&&(n=i,this.logVisit(),zv.reset(),this.context&&(this.context.path=window.location.pathname),this.logEvent("pageview",{data:{consent:e,cmp_id:t.toString()}}))})).observe(document,{subtree:!0,childList:!0})}}))))}))}processQueue(){this.eventLogIsStarted||(this.eventLogIsStarted=!0,this.eventLogQueue.forEach((e=>{switch(e.eventType){case"visit":this.logVisit();break;case"performance":this.logPerformances();break;case"troubleshoot":this.logTroubleshoot();break;default:this.logEvent(e.eventType,e.extraContext)}})),this.eventLogQueue=[])}},Wv=new G("Auction Manager");const Yv=new class{constructor(){this.bidderModules=[],this.renderModules=[],this.readyToRequestAdUnits=[],this.requestAdUnitsDelay=100,this.requestAdUnitsTimer=null,this.isFirstAdRender=!0,Wv.info("Module initialization")}registerBidderModule(e){this.bidderModules.push(e),this.sortByPriority(this.bidderModules)}registerRenderModule(e){this.renderModules.push(e),this.sortByPriority(this.renderModules)}addAdUnitReadyToRequest(e){var t,i,n,r,o,a;const s=F.state.adUnits[e];s.isReadyToRequest=!0;const d=null!==(t=null==s?void 0:s.ref)&&void 0!==t?t:e;if(!(null===(r=null===(n=null===(i=be.adUnits.get(d))||void 0===i?void 0:i.params)||void 0===n?void 0:n.lazyLoad)||void 0===r?void 0:r.enabled)||s.isReadyToRender)return this.readyToRequestAdUnits.push(e),(null===(o=window.slmadshb)||void 0===o?void 0:o.enableSlotsBulk)?this.requestAdUnitsTimer?this.requestAdUnitsTimer.reset():this.requestAdUnitsTimer=new Ev((()=>{this.requestBids(this.readyToRequestAdUnits),this.requestAdUnitsTimer=null}),(null===(a=window.slmadshb)||void 0===a?void 0:a.requestAdUnitsDelay)||this.requestAdUnitsDelay):this.requestBids([e]),D("adUnitReady",(()=>{}),{htmlId:e})}isAdUnitRenderCompatible(e){var t,i,n;const r=null!==(i=null===(t=F.state.adUnits[e])||void 0===t?void 0:t.ref)&&void 0!==i?i:e;return"video"!==(null===(n=be.adUnits.get(r))||void 0===n?void 0:n.type)}requestBids(e){return D("bidsRequest",(t=>{Wv.info("Requesting bids",t.ids);const i=[];this.readyToRequestAdUnits=[],this.bidderModules.forEach((n=>{"prebid"===n.name?t.ids.forEach((e=>{i.push(n.requestBids([e]))})):i.push(n.requestBids(e))})),Promise.all(i).then((()=>{this.renderAds(t.ids)}))}),{ids:e})}renderAds(e){return Wv.info("Rendering ads",e),D("adRequest",(e=>{let t=[...e.ids.filter((e=>this.isAdUnitRenderCompatible(e)))];this.renderModules.forEach((e=>{const i=t.filter((t=>e.canRender(t)));i.length>0&&(e.prepareRenderAds(i),D("renderAds",(()=>{e.renderAds(i),i.forEach((e=>{F.state.adUnits[e].isReadyToRequest=!1})),this.isFirstAdRender&&(Zv.logPerformances(),this.isFirstAdRender=!1)}),{ids:i})),t=t.filter((e=>!i.includes(e)))}));const i=[];t.forEach((e=>{var t,n;i.push(null!==(n=null===(t=F.state.adUnits[e])||void 0===t?void 0:t.ref)&&void 0!==n?n:e)}));be.getAdUnitsConfigById(i).forEach((e=>{var t,i,n;if(e.params&&("function"==typeof(null===(t=e.params)||void 0===t?void 0:t.passbackCallback)||(null===(n=null===(i=e.params.partners)||void 0===i?void 0:i.sublime)||void 0===n?void 0:n.enabled)))return D("passback",(e=>{Wv.info("Passback ad unit",e.adUnit)}),{adUnit:e})}))}),{ids:e,options:{}})}sortByPriority(e){e.sort(((e,t)=>t.priority-e.priority))}},{REQUEST:Gv,RESPONSE:Hv,NATIVE:Qv,EVENT:Jv}=nt,Kv={[Gv]:function(e,t,i){ha({renderFn(t){e(Object.assign({message:Hv,renderer:ea(i)},t))},resizeFn:eb(t.adId,i),options:t.options,adId:t.adId,bidResponse:i})},[Jv]:function(e,t,i){if(null==i)return void ti(`Cannot find ad '${t.adId}' for x-origin event request`);if(i.status!==Je.RENDERED)return void ei(`Received x-origin event request without corresponding render request for ad '${i.adId}'`);return ua(t,i)}};function Xv(){window.addEventListener("message",(function(e){!function(e){var t=e.message?"message":"data",i={};try{i=JSON.parse(e[t])}catch(n){return}if(i&&i.adId&&i.message&&Kv.hasOwnProperty(i.message))sa(i.adId,i.message===nt.REQUEST).then((t=>{var n,r;Kv[i.message]((n=i.adId,r=function(e){return null==e.origin&&0===e.ports.length?function(){const e="Cannot post message to a frame with null origin. Please update creatives to use MessageChannel, see https://github.com/prebid/Prebid.js/issues/7870";throw ti(e),new Error(e)}:e.ports.length>0?function(t){e.ports[0].postMessage(JSON.stringify(t))}:function(t){e.source.postMessage(JSON.stringify(t),e.origin)}}(e),function(e,...t){return r(Object.assign({},e,{adId:n}),...t)}),i,t)}))}(e)}),!1)}function eb(e,t){return function(i,n){!function({adId:e,adUnitCode:t,width:i,height:n}){function r(e){return e?e+"px":"100%"}function o(i){let n=a(e,t),r=document.getElementById(n);return r&&r.querySelector(i)}function a(e,t){return Ei()?s(e):function(){if(window.apntag&&li(window.apntag.getTag))return!0}()?d(t):t}function s(e){const t=_e(window.googletag.pubads().getSlots(),(t=>_e(t.getTargetingKeys(),(i=>Ce(t.getTargeting(i),e)))));return t?t.getSlotElementId():null}function d(e){let t=window.apntag.getTag(e);return t&&t.targetId}["div","iframe"].forEach((e=>{let a=o(e+':not([style*="display: none"])');if(a){let e=a.style;e.width=r(i),e.height=r(n)}else ti(`Unable to locate matching page element for adUnitCode ${t}. Can't resize it to ad's dimensions. Please review setup.`)}))}({...t,width:i,height:n,adId:e})}}Object.assign(Kv,{[Qv]:function(e,t,i){if(null==i)return void ti(`Cannot find ad for x-origin event request: '${t.adId}'`);i.status!==Je.RENDERED&&da(i);switch(t.action){case"assetRequest":e(function(e,t){const i=e.assets.map((e=>Na[e]));return Va(e,t,i)}(t,i));break;case"allAssetRequest":e(function(e,t){return Va(e,t,null)}(t,i));break;default:pa(t,i,{resizeFn:eb(t.adId,i)})}}});const tb="__slmpbjs_debugging__";function ib(){return It().installedModules.includes("debugging")}function nb(e){return new vt((t=>{xn(e,"debugging",t)}))}function rb({alreadyInstalled:e=ib,script:t=nb}={}){let i=null;return function(){return null==i&&(i=new vt(((i,n)=>{setTimeout((()=>{if(e())i();else{const e="https://cdn.jsdelivr.net/npm/prebid.js@9.10.0/dist/debugging-standalone.js";Kt(`Debugging module not installed, loading it from "${e}"...`),It()._installDebugging=!0,t(e).then((()=>{It()._installDebugging({DEBUG_KEY:tb,hook:$n,config:pt,createBid:Za,logger:ii("DEBUG:")})})).then(i,n)}}))}))),i}}const ob=function({load:e=rb(),hook:t=Yn("requestBids")}={}){let i=null,n=!1;function r(e,...t){return(i||vt.resolve()).then((()=>e.apply(this,t)))}function o(){t.getHooks({hook:r}).remove(),n=!1}return{enable:function(){n||(i=e(),t.before(r,99),n=!0)},disable:o,reset:function(){i=null,o()}}}();pt.getConfig("debugging",(function({debugging:e}){(null==e?void 0:e.enabled)?ob.enable():ob.disable()}));const ab=It(),{triggerUserSyncs:sb}=Sr,{ADD_AD_UNITS:db,REQUEST_BIDS:lb,SET_TARGETING:cb}=Fe,ub={bidWon:function(e){if(!Xo.getBidsRequested().map((e=>e.bids.map((e=>e.adUnitCode)))).reduce(Ci).filter(ki).includes(e))return void ti('The "'+e+'" placement is not defined.');return!0}};function pb(e,t){let i=[];return ui(e)&&(t?e.length===t:e.length>0)&&(e.every((e=>Gi(e,2)))?i=e:Gi(e,2)&&i.push(e)),i}function mb(e){const t=Bi(e),i=t.mediaTypes.banner,n=pb(i.sizes);return n.length>0?(i.sizes=n,t.sizes=n):(ti("Detected a mediaTypes.banner object without a proper sizes field. Please ensure the sizes are listed like: [[300, 250], ...]. Removing invalid mediaTypes.banner object from request."),delete t.mediaTypes.banner),t}function fb(e){const t=Bi(e),i=t.mediaTypes.video;if(i.playerSize){let e="number"==typeof i.playerSize[0]?2:1;const n=pb(i.playerSize,e);n.length>0?(2===e&&Xt("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),i.playerSize=n,t.sizes=n):(ti("Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete t.mediaTypes.video.playerSize)}return Rr(t),t}function gb(e){var t;function i(t){return ti(`Error in adUnit "${e.code}": ${t}. Removing native request from ad unit`,e),delete r.mediaTypes.native,r}function n(e){for(const t of["sendTargetingKeys","types"])if(o.hasOwnProperty(t)){const i=e(t);if(i)return i}}const r=Bi(e),o=r.mediaTypes.native;if(o.ortb){if(null==(t=o.ortb.assets)?void 0:t.some((e=>!pi(e.id)||e.id<0||e.id%1!=0)))return i("native asset ID must be a nonnegative integer");if(n((e=>i(`ORTB native requests cannot specify "${e}"`))))return r;const e=Object.keys(He).filter((e=>He[e].includes("hb_native_"))),a=Object.keys(o).filter((t=>e.includes(t)));a.length>0&&(ti(`when using native OpenRTB format, you cannot use legacy native properties. Deleting ${a} keys from request.`),a.forEach((e=>delete r.mediaTypes.native[e])))}else n((e=>`mediaTypes.native.${e} is deprecated, consider using native ORTB instead`));return o.image&&o.image.sizes&&!Array.isArray(o.image.sizes)&&(ti("Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request."),delete r.mediaTypes.native.image.sizes),o.image&&o.image.aspect_ratios&&!Array.isArray(o.image.aspect_ratios)&&(ti("Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete r.mediaTypes.native.image.aspect_ratios),o.icon&&o.icon.sizes&&!Array.isArray(o.icon.sizes)&&(ti("Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request."),delete r.mediaTypes.native.icon.sizes),r}function hb(e,t){let i=At(e,`mediaTypes.${t}.pos`);if(!pi(i)||isNaN(i)||!isFinite(i)){let i=`Value of property 'pos' on ad unit ${e.code} should be of type: Number`;ei(i),no(Fe.AUCTION_DEBUG,{type:"WARNING",arguments:i}),delete e.mediaTypes[t].pos}return e}function vb(e){const t=t=>`adUnit.code '${e.code}' ${t}`,i=e.mediaTypes,n=e.bids;return null==n||ui(n)?null==n&&null==e.ortb2Imp?(ti(t("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):i&&0!==Object.keys(i).length?(null==e.ortb2Imp||null!=n&&0!==n.length||(e.bids=[{bidder:null}],Kt(t("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),e):(ti(t("does not define a 'mediaTypes' object. This is a required field for the auction, so this adUnit has been removed.")),null):(ti(t("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}!function(){let e=null;try{e=window.sessionStorage}catch(t){}if(null!==e){let i=ob,n=null;try{n=e.getItem(tb)}catch(t){}null!==n&&i.enable()}}(),ab.bidderSettings=ab.bidderSettings||{},ab.libLoaded=!0,ab.version="v9.10.0",Xt("Prebid.js v9.10.0 loaded"),ab.installedModules=ab.installedModules||[],ab.adUnits=ab.adUnits||[],ab.triggerUserSyncs=sb;const bb={validateAdUnit:vb,validateBannerMediaType:mb,validateSizes:pb};Object.assign(bb,{validateNativeMediaType:gb}),Object.assign(bb,{validateVideoMediaType:fb});const yb=$n("sync",(function(e){const t=[];return e.forEach((e=>{if(null==(e=vb(e)))return;const i=e.mediaTypes;let n,r,o;i.banner&&(n=mb(e),i.banner.hasOwnProperty("pos")&&(n=hb(n,"banner"))),i.video&&(r=fb(n||e),i.video.hasOwnProperty("pos")&&(r=hb(r,"video"))),i.native&&(o=gb(r||(n||e)));const a=Object.assign({},n,r,o);t.push(a)})),t}),"checkAdUnitSetup");function wb(e){e.forEach((e=>function(e){var t;const i=null==(t=null==e?void 0:e.mediaTypes)?void 0:t.video;null!=i&&null==i.plcmt&&(i.context===Br||[2,3,4].includes(i.placement)?i.plcmt=4:i.context!==Br&&[2,6].includes(i.playbackmethod)&&(i.plcmt=2))}(e)))}function Ib(e){const t=Xo[e]().filter((e=>Xo.getAdUnitCodes().includes(e.adUnitCode))),i=Xo.getLastAuctionId();return t.map((e=>e.adUnitCode)).filter(ki).map((e=>t.filter((t=>t.auctionId===i&&t.adUnitCode===e)))).filter((e=>e&&e[0]&&e[0].adUnitCode)).map((e=>({[e[0].adUnitCode]:{bids:e}}))).reduce(((e,t)=>Object.assign(e,t)),{})}ab.getAdserverTargetingForAdUnitCodeStr=function(e){if(Xt("Invoking slmpbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=ab.getAdserverTargetingForAdUnitCode(e);return(i=t)&&Object.getOwnPropertyNames(i).length>0?Object.keys(i).map((e=>`${e}=${encodeURIComponent(i[e])}`)).join("&"):""}var i;Kt("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},ab.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){const t=Xo.getAllBidsForAdUnitCode(e).filter(hc);return t.length?t.reduce(Cl):{}}Kt("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},ab.getAdserverTargetingForAdUnitCode=function(e){return ab.getAdserverTargeting(e)[e]},ab.getAdserverTargeting=function(e){return Xt("Invoking slmpbjs.getAdserverTargeting",arguments),wc.getAllTargeting(e)},ab.getConsentMetadata=function(){return Xt("Invoking slmpbjs.getConsentMetadata"),bs.getConsentMeta()},ab.getNoBids=function(){return Xt("Invoking slmpbjs.getNoBids",arguments),Ib("getNoBids")},ab.getNoBidsForAdUnitCode=function(e){return{bids:Xo.getNoBids().filter((t=>t.adUnitCode===e))}},ab.getBidResponses=function(){return Xt("Invoking slmpbjs.getBidResponses",arguments),Ib("getBidsReceived")},ab.getBidResponsesForAdUnitCode=function(e){return{bids:Xo.getBidsReceived().filter((t=>t.adUnitCode===e))}},ab.setTargetingForGPTAsync=function(e,t){Xt("Invoking slmpbjs.setTargetingForGPTAsync",arguments),Ei()?wc.setTargetingForGPT(e,t):ti("window.googletag is not defined on the page")},ab.setTargetingForAst=function(e){Xt("Invoking slmpbjs.setTargetingForAn",arguments),wc.isApntagDefined()?(wc.setTargetingForAst(e),no(cb,wc.getAllTargeting())):ti("window.apntag is not defined on the page")},ab.renderAd=$n("async",(function(e,t,i){Xt("Invoking slmpbjs.renderAd",arguments),Kt("Calling renderAd with adId :"+t),va(e,t,i)})),ab.removeAdUnit=function(e){if(Xt("Invoking slmpbjs.removeAdUnit",arguments),!e)return void(ab.adUnits=[]);let t;t=ui(e)?e:[e],t.forEach((e=>{for(let t=ab.adUnits.length-1;t>=0;t--)ab.adUnits[t].code===e&&ab.adUnits.splice(t,1)}))},ab.requestBids=function(){const e=$n("async",(function({bidsBackHandler:e,timeout:t,adUnits:i,adUnitCodes:n,labels:r,auctionId:o,ttlBuffer:a,ortb2:s,metrics:d,defer:l}={}){no(lb);const c=t||pt.getConfig("bidderTimeout");Xt("Invoking slmpbjs.requestBids",arguments),n&&n.length?i=i.filter((e=>Ce(n,e.code))):n=i&&i.map((e=>e.code));const u={global:en({},pt.getAnyConfig("ortb2")||{},s||{}),bidder:Object.fromEntries(Object.entries(pt.getBidderConfig()).map((([e,t])=>[e,t.ortb2])).filter((([e,t])=>null!=t)))};return fd(vt.resolve(u.global)).then((t=>(u.global=t,Ab({bidsBackHandler:e,timeout:c,adUnits:i,adUnitCodes:n,labels:r,auctionId:o,ttlBuffer:a,ortb2Fragments:u,metrics:d,defer:l}))))}),"requestBids");return t=e,i=function(t={}){let i=t.adUnits||ab.adUnits;return t.adUnits=ui(i)?i.slice():[i],t.metrics=vo(),t.metrics.checkpoint("requestBids"),t.defer=bt({promiseFactory:e=>new Promise(e)}),e.call(this,t),t.defer.promise},Object.defineProperties(i,Object.fromEntries(["before","after","getHooks","removeAll"].map((e=>[e,{get:()=>t[e]}])))),i;var t,i}();const Ab=$n("async",(function({bidsBackHandler:e,timeout:t,adUnits:i,ttlBuffer:n,adUnitCodes:r,labels:o,auctionId:a,ortb2Fragments:s,metrics:d,defer:l}={}){const c=Ms(pt.getConfig("s2sConfig")||[]);function u(t,i,n){if("function"==typeof e)try{e(t,i,n)}catch(r){ti("Error executing bidsBackHandler",null,r)}l.resolve({bids:t,timedOut:i,auctionId:n})}wb(i),i=ho(d).measureTime("requestBids.validate",(()=>yb(i)));const p={};if(i.forEach((e=>{var t,i;const r=Object.keys(e.mediaTypes||{banner:"banner"}),o=e.bids.map((e=>e.bidder)),a=Ps.bidderRegistry,s=o.filter((e=>!c.has(e)));e.adUnitId=zt();const d=null==(i=null==(t=e.ortb2Imp)?void 0:t.ext)?void 0:i.tid;d&&(p.hasOwnProperty(e.code)?ei(`Multiple distinct ortb2Imp.ext.tid were provided for twin ad units '${e.code}'`):p[e.code]=d),null==n||e.hasOwnProperty("ttlBuffer")||(e.ttlBuffer=n),s.forEach((t=>{const i=a[t],n=i&&i.getSpec&&i.getSpec(),o=n&&n.supportedMediaTypes||["banner"];r.some((e=>Ce(o,e)))||(ei(function(e,t){const i=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return`\n ${e.code} is a ${i} ad unit\n containing bidders that don't support ${i}: ${t}.\n This bidder won't fetch demand.\n `}(e,t)),e.bids=e.bids.filter((e=>e.bidder!==t)))}))})),i&&0!==i.length){i.forEach((e=>{var t,i;const n=(null==(i=null==(t=e.ortb2Imp)?void 0:t.ext)?void 0:i.tid)||p[e.code]||zt();p.hasOwnProperty(e.code)||(p[e.code]=n),e.transactionId=n,Tt(e,"ortb2Imp.ext.tid",n)}));const e=Xo.createAuction({adUnits:i,adUnitCodes:r,callback:u,cbTimeout:t,labels:o,auctionId:a,ortb2Fragments:s,metrics:d});let n=i.length;n>15&&Xt(`Current auction ${e.getAuctionId()} contains ${n} adUnits.`,i),r.forEach((t=>wc.setLatestAuctionForAdUnit(t,e.getAuctionId()))),e.callBids()}else Kt("No adUnits configured. No bids requested."),u()}),"startAuction");ab.requestBids.before((function(e,t){function i(e){for(var t;t=e.shift();)t()}i(Tr),i(Tb),e.call(this,t)}),49),ab.addAdUnits=function(e){Xt("Invoking slmpbjs.addAdUnits",arguments),ab.adUnits.push.apply(ab.adUnits,ui(e)?e:[e]),no(db)},ab.onEvent=function(e,t,i){Xt("Invoking slmpbjs.onEvent",arguments),li(t)?!i||ub[e].call(null,i)?Xr(e,t,i):ti('The id provided is not valid for event "'+e+'" and no handler was set.'):ti('The event handler provided is not a function and was not set on event "'+e+'".')},ab.offEvent=function(e,t,i){Xt("Invoking slmpbjs.offEvent",arguments),i&&!ub[e].call(null,i)||eo(e,t,i)},ab.getEvents=function(){return Xt("Invoking slmpbjs.getEvents"),io()},ab.registerBidAdapter=function(e,t){Xt("Invoking slmpbjs.registerBidAdapter",arguments);try{Ps.registerBidAdapter(e(),t)}catch(i){ti("Error registering bidder adapter : "+i.message)}},ab.registerAnalyticsAdapter=function(e){Xt("Invoking slmpbjs.registerAnalyticsAdapter",arguments);try{Ps.registerAnalyticsAdapter(e)}catch(t){ti("Error registering analytics adapter : "+t.message)}},ab.createBid=function(e){return Xt("Invoking slmpbjs.createBid",arguments),Za(e)};const Tb=[],xb=$n("async",(function(e){e&&!gi(e)?(Xt("Invoking slmpbjs.enableAnalytics for: ",e),Ps.enableAnalytics(e)):ti("slmpbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");ab.enableAnalytics=function(e){Tb.push(xb.bind(this,e))},ab.aliasBidder=function(e,t,i){Xt("Invoking slmpbjs.aliasBidder",arguments),e&&t?Ps.aliasBidAdapter(e,t,i):ti("bidderCode and alias must be passed as arguments","slmpbjs.aliasBidder")},ab.aliasRegistry=Ps.aliasRegistry,pt.getConfig("aliasRegistry",(e=>{"private"===e.aliasRegistry&&delete ab.aliasRegistry})),ab.getAllWinningBids=function(){return Xo.getAllWinningBids()},ab.getAllPrebidWinningBids=function(){return Xo.getBidsReceived().filter((e=>e.status===Je.BID_TARGETING_SET))},ab.getHighestCpmBids=function(e){return wc.getWinningBids(e)},ab.clearAllAuctions=function(){Xo.clearAllAuctions()},ab.markWinningBidAsUsed=function(e){const t=kb(e,"Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function.");t.length>0&&Xo.addWinningBid(t[0])};const kb=(e,t)=>{let i=[];return e.adUnitCode&&e.adId?i=Xo.getBidsReceived().filter((t=>t.adId===e.adId&&t.adUnitCode===e.adUnitCode)):e.adUnitCode?i=wc.getWinningBids(e.adUnitCode):e.adId?i=Xo.getBidsReceived().filter((t=>t.adId===e.adId)):ei(t),i};function Cb(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(t){ti("Error processing command :","prebid.js",t)}}))}ab.getConfig=pt.getAnyConfig,ab.readConfig=pt.readAnyConfig,ab.mergeConfig=pt.mergeConfig,ab.mergeBidderConfig=pt.mergeBidderConfig,ab.setConfig=pt.setConfig,ab.setBidderConfig=pt.setBidderConfig,ab.que.push((()=>Xv())),ab.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(t){ti("Error processing command :",t.message,t.stack)}else ti("Commands written into slmpbjs.cmd.push must be wrapped in a function")},ab.que.push=ab.cmd.push,ab.processQueue=function(){ba(),$n.ready(),Cb(ab.que),Cb(ab.cmd)},ab.triggerBilling=e=>{const t=kb(e,"Improper use of triggerBilling. It requires a bid with at least an adUnitCode or an adId to function."),i=t.find((t=>t.requestId===e.requestId))||t[0];if(t.length>0&&i)try{Ps.callBidBillableBidder(i)}catch(n){ti("Error when triggering billing :",n)}else ei("The bid provided to triggerBilling did not match any bids received.")};const _b=4;let Eb,Sb=[],Bb={},Ub=!1,Pb=!0,Rb="USD";var Vb=!1,Nb={};let jb,Ob={},Db=bt();function Fb(e){if(Eb="https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$","object"==typeof e.rates&&(Nb.conversions=e.rates,Ub=!0,Pb=!1),"object"==typeof e.defaultRates&&(jb=e.defaultRates,Nb.conversions=jb,Ub=!0),"string"==typeof e.adServerCurrency){Xt("enabling currency support",arguments),Rb=e.adServerCurrency,e.conversionRateFile&&(Xt("currency using override conversionRateFile:",e.conversionRateFile),Eb=e.conversionRateFile);const t=Eb.indexOf("$$TODAY$$");if(-1!==t){const e=new Date;let i=`${e.getMonth()+1}`,n=`${e.getDate()}`;i.length<2&&(i=`0${i}`),n.length<2&&(n=`0${n}`);const r=`${e.getFullYear()}${i}${n}`;Eb=`${Eb.substring(0,t)}${r}${Eb.substring(t+9,Eb.length)}`}Bb={},Vb||(Vb=!0,It().convertCurrency=(e,t,i)=>parseFloat(e)*Wb(t,i),Yn("addBidResponse").before(Lb,100),Yn("responsesReady").before(zb),Xr(Fe.AUCTION_TIMEOUT,$b),Xr(Fe.AUCTION_INIT,Mb),Mb())}else Xt("disabling currency support"),Vb&&(Yn("addBidResponse").getHooks({hook:Lb}).remove(),Yn("responsesReady").getHooks({hook:zb}).remove(),eo(Fe.AUCTION_TIMEOUT,$b),eo(Fe.AUCTION_INIT,Mb),delete It().convertCurrency,Rb="USD",Bb={},Vb=!1,Ub=!1,Pb=!0,Nb={},Ob={},Db=bt());"object"==typeof e.bidderCurrencyDefault&&(Ob=e.bidderCurrencyDefault)}function qb(e){jb?(ei(e),ei("Currency failed loading rates, falling back to currency.defaultRates")):ti(e)}function Mb(){Pb?(Pb=!1,Ub=!1,mn(Eb,{success:function(e){try{Nb=JSON.parse(e),Xt("currencyRates set to "+JSON.stringify(Nb)),Bb={},Ub=!0,Zb()}catch(t){qb("Failed to parse currencyRates response: "+e)}},error:function(...e){qb(...e),Ub=!0,Zb(),Pb=!0}})):Zb()}function zb(e,t){e(t.then((()=>Db.promise)))}pt.getConfig("currency",(e=>Fb(e.currency)));const Lb=wo("currency",(function(e,t,i,n){if(!i)return e.call(this,t,i,n);let r=i.bidderCode||i.bidder;if(Ob[r]){let e=Ob[r];i.currency&&e!==i.currency?ei(`Currency default '${r}: ${e}' ignored. adapter specified '${i.currency}'`):i.currency=e}if(i.currency||(ei('Currency not specified on bid. Defaulted to "USD"'),i.currency="USD"),i.getCpmInNewCurrency=function(e){return(parseFloat(this.cpm)*Wb(this.currency,e)).toFixed(3)},i.currency===Rb)return e.call(this,t,i,n);Sb.push([e,this,t,i,n]),Vb&&!Ub||Zb()}));function $b({auctionId:e}){Sb=Sb.filter((([t,i,n,r,o])=>{if(r.auctionId!==e)return!0;o(Ke.CANNOT_CONVERT_CURRENCY)}))}function Zb(){for(;Sb.length>0;){const[t,i,n,r,o]=Sb.shift();if(void 0!==r&&"currency"in r&&"cpm"in r){let t=r.currency;try{let e=Wb(t);1!==e&&(r.cpm=(parseFloat(r.cpm)*e).toFixed(4),r.currency=Rb)}catch(e){ei("getCurrencyConversion threw error: ",e),o(Ke.CANNOT_CONVERT_CURRENCY);continue}}t.call(i,n,r,o)}Db.resolve()}function Wb(e,t=Rb){var i,n=null;let r=`${e}->${t}`;if(r in Bb)Kt("Using conversionCache value "+(n=Bb[r])+" for "+r);else if(!1===Vb){if("USD"!==e)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");n=1}else if(e===t)n=1;else if(e in Nb.conversions){if(!(t in(i=Nb.conversions[e])))throw new Error("Specified adServerCurrency in config '"+t+"' not found in the currency rates file");Xt("getCurrencyConversion using direct "+e+" to "+t+" conversionRate "+(n=i[t]))}else if(t in Nb.conversions){if(!(e in(i=Nb.conversions[t])))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");Xt("getCurrencyConversion using reciprocal "+e+" to "+t+" conversionRate "+(n=Yb(1/i[e],_b)))}else{var o=Object.keys(Nb.conversions)[0];if(!(e in Nb.conversions[o]))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");var a=1/Nb.conversions[o][e];if(!(t in Nb.conversions[o]))throw new Error("Specified adServerCurrency in config '"+t+"' not found in the currency rates file");Xt("getCurrencyConversion using intermediate "+e+" thru "+o+" to "+t+" conversionRate "+(n=Yb(a*Nb.conversions[o][t],_b)))}return r in Bb||(Kt("Adding conversionCache value "+n+" for "+r),Bb[r]=n),n}function Yb(e,t){var i=1;for(let n=0;n<t;n++)i+="0";return Math.round(e*i)/i}ed({type:Ys,name:"currency",fn:function(e,t,i){Vb&&(e.cur=e.cur||[i.currency||Rb])}});class Gb{constructor(){this.priority=1,this.name="base_module"}}class Hb extends Gb{constructor(e){super(),this.name=e,Yv.registerBidderModule(this)}}const Qb='<!doctype html>\n<html>\n<head>\n <script src="https://cdn.jsdelivr.net/npm/prebid-universal-creative@1.15.0/dist/<%= hb_format %>.js"><\/script>\n</head>\n<body leftMargin="0" topMargin="0" marginwidth="0" marginheight="0">\n<script>\n var ucTagData = {};\n ucTagData.adServerDomain = "";\n ucTagData.pubUrl = "<%= pubUrl %>";\n ucTagData.hbPb = "<%= hb_pb %>";\n ucTagData.hbFormat = "<%= hb_format %>";\n ucTagData.adId = "<%= hb_adid %>";\n ucTagData.requestAllAssets = true;\n\n try {\n ucTag.renderAd(document, ucTagData);\n } catch (e) {\n console.log(e);\n }\n<\/script>\n</body>\n</html>\n';class Jb extends Gb{constructor(){super(),window.slmadshb=window.slmadshb||{},window.slmadshb.que=window.slmadshb.que||[],window.slmadshb.que.push((()=>{Yv.registerRenderModule(this)}))}renderAds(e){}prepareRenderAds(e){}canRender(e){}}const Kb=new G("Prebid Renderer");new class extends Jb{constructor(){super(...arguments),this.priority=1}renderAds(e){Kb.info("Render Ads",e),e.forEach((e=>{var t,i;const n=null!==(i=null===(t=F.state.adUnits[e])||void 0===t?void 0:t.ref)&&void 0!==i?i:e,r=window.slmpbjs.getAdserverTargetingForAdUnitCode(e);if(null==r?void 0:r.hb_adid){const t=be.adUnits.get(n);if(!t)return void Kb.error(`Failed to find ad unit ${e} (ref: ${n})`);Kb.debug("Rendering Prebid ad",t,r);const[i,o]=this.getBidSize(t,r),a=this.shouldUseSafeFrame(r);return this.renderAd(e,r,i,o,a),D("adUnitRendered",(e=>{Kb.info("Ad unit rendered",e)}),{id:e})}}))}canRender(e){const t=window.slmpbjs.getAdserverTargetingForAdUnitCode(e);return!!(null==t?void 0:t.hb_adid)}renderAd(e,t,i,n,r){var o,a;const s=Y(i.toString(),n.toString());if(r&&(null===(o=window.top)||void 0===o?void 0:o.location.href)){let e=`//ads.sportslocalmedia.com/sf.html?pubUrl=${encodeURIComponent(window.top.location.href)}`;t&&Object.keys(t).length>0&&(e+="&",e+=Object.keys(t).map((e=>`${e}=${t[e]}`)).join("&")),s.src=e}"video"===t.hb_format&&(s.style.height="0"),s.id=t.hb_adid||"",s.setAttribute("sandbox","allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation");const d=document.getElementById(e);if(d){1!==n?d.style.height=`${n}px`:d.style.removeProperty("height");if(d.getElementsByTagName("div")[0]){const t=document.createElement("div");t.id=`${e}-iframe-container`,t.style.margin="auto",d.innerHTML="",d.appendChild(t),t.appendChild(s)}else d.innerHTML="",d.appendChild(s);if(t.pubUrl=window.location.href,null===(a=s.contentWindow)||void 0===a?void 0:a.document)if("banner"===t.hb_format&&t.hb_adid)window.slmpbjs.renderAd(s.contentWindow.document,t.hb_adid);else{const e=Iv.render(Qb,t);s.contentWindow.document.write(e),s.contentWindow.document.close()}}}getBidSize(e,t){var i;let n,r;if(t.hb_format&&"video"===t.hb_format)e.type&&"bannervideo"!==e.type&&"carousel"!==e.type||!(null===(i=e.mediaTypes.video)||void 0===i?void 0:i.playerSize)?(n=0,r=0):(n=e.mediaTypes.video.playerSize[0][0],r=e.mediaTypes.video.playerSize[0][1]);else if(t.hb_format&&"native"===t.hb_format){let t=0,i=0,o=0;"object"==typeof e.sizes&&e.sizes.forEach((e=>{"fluid"!==e&&e[0]*e[1]>o&&(o=e[0]*e[1],[t,i]=e)})),n=t,r=i}else{const e=t.hb_size.split("x");n=Number(e[0]),r=Number(e[1])}return[n,r]}shouldUseSafeFrame(e){return"native"!==e.hb_format&&H.includes((null==e?void 0:e.hb_bidder)||"")}};const Xb={renderNow:!0,render:e=>{var t;const{height:i,width:n,ad:r,adUrl:o,adUnitCode:a}=e;if(!i||!n)return;const s=document.getElementById(a);if(s&&(r||o)){const e=Y(i.toString(),n.toString());e.style.overflow="hidden",e.src="about:blank",s.innerHTML="",s.appendChild(e);const a=null===(t=null==e?void 0:e.contentWindow)||void 0===t?void 0:t.document;if(void 0===a)return;if(r)a.write(r),a.close();else if(o){const e=Y(i.toString(),n.toString());e.style.overflow="hidden",e.src=o,a.body.append(e)}!function(e,t,i){if(e.defaultView&&e.defaultView.frameElement){const n=e.defaultView.frameElement;n.width=t,n.height=i}}(a,n.toString(),i.toString())}}},ey=new G("Prebid"),ty={smartadserver:[Or,jr],rubicon:[Or,jr,Nr],ix:[Or,jr,Nr],pubmatic:[Or,jr,Nr],adyoulike:[Or,jr,Nr],richaudience:[Or,jr]};new class extends Hb{constructor(){super("prebid"),this.cachedFloorModel=new Map,this.cachedFloor=new Map,ey.info("Module initialization"),z()&&Promise.resolve().then((()=>Nw)),window.slmpbjs=window.slmpbjs||{que:[]},window.slmpbjs.que.push((()=>{window.slmpbjs.onEvent("bidRequested",(e=>{e.bids.forEach(this.getFloorDataFromBid.bind(this))})),window.slmpbjs.onEvent("bidWon",(e=>{var t,i,n,r,o;let a,s=!1;"video"===e.mediaType&&(s=!0,a=3e4);const d={teads:L()?6e4:5e4,seedtag:32e3,optidigital:3e4,richaudience:3e4,invibes:45e3,rtbhouse:3e4};-1!==Object.keys(d).indexOf(e.bidder)&&(s=!0,a=d[e.bidder]);const{config:l}=be;let c;const u=be.getAdUnitsConfigById([e.adUnitCode]);u.length>0&&(c=u[0]),s&&a&&(null===(t=l.params)||void 0===t?void 0:t.refresh)&&l.params.refresh.enabled&&l.params.refresh.visibleTimeout&&l.params.refresh.timeout&&window.slmadshb.refresh.alterRefreshTimeoutTemporarily(e.adUnitCode,a,(null===(n=null===(i=null==c?void 0:c.params)||void 0===i?void 0:i.refresh)||void 0===n?void 0:n.visibleTimeout)?c.params.refresh.visibleTimeout:l.params.refresh.visibleTimeout,(null===(o=null===(r=null==c?void 0:c.params)||void 0===r?void 0:r.refresh)||void 0===o?void 0:o.timeout)?c.params.refresh.timeout:l.params.refresh.timeout)}));const e=()=>{performance.mark(ne),window.slmpbjs.offEvent("bidRequested",e)};window.slmpbjs.onEvent("bidRequested",e)})),D.after("loadConfig",(()=>{var e,t,i,n,r,o,a,s,d,l,c,u,p,m,f,g,h,v,b,y,w,I;const A={enableSendAllBids:!1,targetingControls:{allowTargetingKeys:["BIDDER","AD_ID","PRICE_BUCKET","SIZE","DEAL","FORMAT"]},useBidCache:!0,bidderTimeout:null!==(n=null===(i=L()?null===(e=be.config.params)||void 0===e?void 0:e.mobileParams:null===(t=be.config.params)||void 0===t?void 0:t.desktopParams)||void 0===i?void 0:i.prebidTimeout)&&void 0!==n?n:1e3,priceGranularity:{buckets:[{precision:2,min:0,max:30,increment:.01}]},currency:{adServerCurrency:null!==(o=null===(r=be.config.params)||void 0===r?void 0:r.currency)&&void 0!==o?o:"EUR",defaultRates:{USD:{EUR:.91}}},outbrain:{bidderUrl:"https://b1h-euc1.zemanta.com/api/bidder/prebid/bid/",usersyncUrl:"https://b1h-euc1.zemanta.com/usersync/prebid/"},cache:{url:"https://prebid-cache.sportslocalmedia.com/cache",ignoreBidderCacheKey:!0},maxRequestsPerOrigin:10,minBidCacheTTL:null===(a=be.config.params)||void 0===a?void 0:a.minBidCacheTTL,eventHistoryTTL:null===(s=be.config.params)||void 0===s?void 0:s.eventHistoryTTL,userSync:{userIds:this.getUserIdsConfig(),auctionDelay:50,syncDelay:3e3,syncsPerBidder:5,aliasSyncEnabled:!0,filterSettings:{iframe:{bidders:"*",filter:"include"}},topics:{maxTopicCaller:0,bidders:[{bidder:"pubmatic",iframeURL:"https://ads.pubmatic.com/AdServer/js/topics/topics_frame.html"},{bidder:"improvedigital",iframeURL:"https://hb.360yield.com/privacy-sandbox/topics.html"},{bidder:"onetag",iframeURL:"https://onetag-sys.com/static/topicsapi.html"},{bidder:"openx",iframeURL:"https://pa.openx.net/topics_frame.html"}]}},paapi:{enabled:!!be.config.params.enablePaapi,defaultForSlots:1,gpt:{autoconfig:!0}},enableTIDs:!0};if((null===(d=be.config.params)||void 0===d?void 0:d.gvlMapping)&&(A.gvlMapping=be.config.params.gvlMapping),(null===(l=be.config.params)||void 0===l?void 0:l.gdprApplies)&&(A.consentManagement=this.getConsentManagementConfig()),(null===(c=be.config.params)||void 0===c?void 0:c.identityLinkPID)&&A.userSync.userIds.push({name:"identityLink",params:{pid:be.config.params.identityLinkPID,notUse3P:!1},storage:{type:"cookie",name:"idl_env",expires:15,refreshInSeconds:1800}}),(null===(u=be.config.params)||void 0===u?void 0:u.schain)&&(A.schain={validation:"strict",config:null===(p=be.config.params)||void 0===p?void 0:p.schain}),A.realTimeData=(null===(m=be.config.params)||void 0===m?void 0:m.realTimeData)||{auctionDelay:1e3},!1!==window.slmadshb.enableSirdata&&(A.realTimeData.dataProviders=A.realTimeData.dataProviders||[],A.realTimeData.dataProviders.push({name:"SirdataRTDModule",waitForIt:!0,params:{partnerId:38419,key:85}})),be.config.adUnits.some((e=>{var t;return null===(t=e.bids)||void 0===t?void 0:t.some((e=>"adagio"===e.bidder))}))){A.realTimeData.dataProviders=A.realTimeData.dataProviders||[];const e=be.config.adUnits.map((e=>{var t,i;return null===(i=null===(t=e.bids)||void 0===t?void 0:t.find((e=>{var t,i;return"adagio"===e.bidder&&(null===(t=e.params)||void 0===t?void 0:t.organizationId)&&(null===(i=e.params)||void 0===i?void 0:i.site)})))||void 0===i?void 0:i.params})).find((e=>!!e)),t=null==e?void 0:e.organizationId,i=null==e?void 0:e.site;t&&i&&A.realTimeData.dataProviders.push({name:"adagio",params:{organizationId:t,site:i}})}const T=L()?null===(g=null===(f=be.config.params)||void 0===f?void 0:f.mobileParams)||void 0===g?void 0:g.floors:null===(v=null===(h=be.config.params)||void 0===h?void 0:h.desktopParams)||void 0===v?void 0:v.floors;T&&(A.floors=Object.assign(Object.assign({},T),{additionalSchemaFields:{id:e=>{var t;return null===(t=F.getAdUnitsById([e.adUnitCode])[0])||void 0===t?void 0:t.ref},bidder:e=>e.bidder,countryGroup:()=>{var e;return(null===(e=window.slmadshb.context)||void 0===e?void 0:e.countryCode)?ge.includes(window.slmadshb.context.countryCode)?"HIGH":he.includes(window.slmadshb.context.countryCode)?"AVERAGE":"LOW":"AVERAGE"}}}));const x=L()?null===(y=null===(b=be.config.params)||void 0===b?void 0:b.mobileParams)||void 0===y?void 0:y.sizeConfig:null===(I=null===(w=be.config.params)||void 0===w?void 0:w.desktopParams)||void 0===I?void 0:I.sizeConfig;x&&(A.sizeConfig=x),window.slmpbjs.que.push((()=>{window.slmpbjs.setConfig(A),window.slmpbjs.bidderSettings=Object.assign({standard:{storageAllowed:!0}},(e=>{const t={};return e&&e.prebidBidAdjustments&&e.prebidBidAdjustments.forEach((e=>{e.bidder&&"function"==typeof e.adjustment&&(t[e.bidder]={bidCpmAdjustment:e.adjustment})})),t})(be.config.params))}))})),D.after("addAdUnit",((e,t)=>{t.isCapped||(window.slmpbjs.que.push((()=>{const{adUnit:e}=t;if(e.bids){const i=mt(e);i.code=t.htmlId;const n=this.getSplittedAdUnits(i);n.length>0?window.slmpbjs.addAdUnits(n):window.slmpbjs.addAdUnits([i])}})),t.adUnit.adUnitPath||Yv.addAdUnitReadyToRequest(t.htmlId))})),D.after("coreInit",(()=>{window.slmadshb.getAdUnitFloor=e=>{var t;return(null===(t=this.cachedFloor.get(e))||void 0===t?void 0:t.toFixed(2))||null},window.slmadshb.getAdUnitFloorModel=e=>this.cachedFloorModel.get(e)||null})),D.before("renderAds",(({ids:e})=>this.beforeRenderAds(e))),window.slmpbjs.processQueue()}getConsentManagementConfig(){return{gdpr:{cmpApi:"iab",timeout:3e4,defaultGdprScope:!0,rules:[{purpose:"storage",enforcePurpose:!1,enforceVendor:!1},{purpose:"basicAds",enforcePurpose:!1,enforceVendor:!1}]}}}getUserIdsConfig(){var e;const t=[];return(null===(e=be.config.params)||void 0===e?void 0:e.userSync)&&(be.config.params.userSync.sharedId&&t.push({name:"sharedId",storage:{name:"sharedid",type:"html5",expires:365}}),be.config.params.userSync.teadsId&&t.push({name:"teadsId",params:{pubId:17023}}),be.config.params.userSync.pairId&&t.push({name:"pairId",params:{liveramp:{}},storage:{name:"pairId",type:"cookie",expires:15,refreshInSeconds:1800}}),be.config.params.userSync.criteoId&&t.push({name:"criteo"}),be.config.params.userSync.id5Id&&t.push({name:"id5Id",params:{partner:1},storage:{name:"id5id",type:"html5",expires:365,refreshInSeconds:14400}})),t}getFloorDataFromBid(e){if("object"==typeof e.floorData&&this.cachedFloorModel.set(e.adUnitCode,e.floorData.modelVersion),e.getFloor){const t=e.getFloor({currency:"EUR"});"number"==typeof t.floor&&this.cachedFloor.set(e.adUnitCode,(e=>{let t=0;if(e<.1)t=.01;else if(e<.5)t=.02;else if(e<4)t=.05;else{if(!(e<6))return 6;t=.5}const i=1/t;return e<Math.round(e*i)/i?Math.round((e-t)*i)/i:Math.round(e*i)/i})(t.floor))}}requestBids(e){return new Promise((t=>{window.slmpbjs.que.push((()=>{window.slmpbjs.requestBids({adUnitCodes:e,bidsBackHandler:(e,i,n)=>{ey.info("BidsBackHandler",e,i,n),void 0!==e?(Object.values(e).forEach((e=>{e.bids.forEach((e=>{(Q.includes(e.bidderCode)||"richaudience"===e.bidderCode&&"video"!==e.mediaType)&&(e.renderer=Xb)}))})),t()):t()}})}))}))}getBids(e){const t=[];return e.forEach((e=>{var i,n,r;if(F.getAdUnitsById([e])[0]){const o=window.slmpbjs.getHighestUnusedBidResponseForAdUnitCode(e);0!==Object.keys(o).length&&t.push({provider:"prebid",cpm:null!==(i=o.cpm)&&void 0!==i?i:0,width:null!==(n=o.width)&&void 0!==n?n:1,height:null!==(r=o.height)&&void 0!==r?r:1,prebidTargeting:o.adserverTargeting})}})),t}getSplittedAdUnits(e){var t;const i=[];if(!e.bids)return[];function n(e,t){let i=[];if(!Object.keys(e.mediaTypes).includes(t)||!e.bids)return[];const n=Object.keys(ty).filter((e=>-1!==ty[e].indexOf(t)));return i=e.bids.filter((e=>{var i,r,o;const a=-1!==n.indexOf(e.bidder),s=void 0!==(null===(i=null==e?void 0:e.params)||void 0===i?void 0:i.mediaType)?t.toUpperCase()===(null===(o=null===(r=null==e?void 0:e.params)||void 0===r?void 0:r.mediaType)||void 0===o?void 0:o.toUpperCase()):"BANNER"===t.toUpperCase();return a&&s})),i}const r=typeof e.bids.find((e=>void 0!==ty[e.bidder])),o=(null===(t=Object.keys(e.mediaTypes))||void 0===t?void 0:t.length)>1;if(r&&o){const t=n(e,Or),r=n(e,Nr),o=n(e,jr),a=mt(e);if(e.bids=e.bids.filter((e=>-1===Object.keys(ty).indexOf(e.bidder))),i.push(e),t.length>0){const e=mt(a);delete e.mediaTypes.video,delete e.mediaTypes.native,e.bids=t,i.push(e)}if(r.length>0){const e=mt(a);delete e.mediaTypes.video,delete e.mediaTypes.banner,e.bids=r,i.push(e)}if(o.length>0){const e=mt(a);delete e.mediaTypes.banner,delete e.mediaTypes.native,e.bids=o,i.push(e)}}return i}beforeRenderAds(e){return new Promise((t=>{window.slmpbjs.que.push((()=>{window.slmpbjs.setTargetingForGPTAsync(e),t()}))}))}};var iy=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))};const ny=new G("Google Tag");window.googletag=window.googletag||{cmd:[]},window.googletag.cmd=window.googletag.cmd||[];const ry=new Map;new class extends Jb{constructor(){super(),this.priority=10,this.adUnitSlots={},this.adRequests={},this.isFirstGamRequest=!0,this.slotHasA9Bids=e=>{const t=e.getTargeting("amznbid")||[];return t.length>0&&!["1","2","3","50jqbk"].includes(t[0])},this.monkeyPatchGPTDisplay=()=>{var e;if(!(null===(e=be.config.params)||void 0===e?void 0:e.loadGoogleExoticSlots))return void ny.info("loadGoogleExoticSlots option is disabled");const t=[];be.adUnits.forEach((e=>{void 0!==e.adUnitPath&&t.push(e.adUnitPath)})),window.googletag.cmd.push((()=>{const e=window.googletag,i=e.display;e.display=function(...n){i.apply(e,n);(()=>{const e=window.googletag.pubads().getSlots().filter((e=>-1===t.indexOf(e.getAdUnitPath())&&(!ry.has(e.getSlotElementId())||!1===ry.get(e.getSlotElementId()))));e.length>0&&(e.forEach((e=>{ry.set(e.getSlotElementId(),!0)})),googletag.pubads().refresh(e))})()}}))},ny.info("Module initialization"),window.googletag.apiReady||function(){var e;const t=document.createElement("script");t.async=!0,t.type="text/javascript",t.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js";const i=document.getElementsByTagName("script")[0];null===(e=null==i?void 0:i.parentNode)||void 0===e||e.insertBefore(t,i)}(),D.after("loadConfig",(()=>iy(this,void 0,void 0,(function*(){window.googletag.pubadsReady||window.googletag.cmd.push((()=>{var e;window.googletag.pubads().disableInitialLoad(),(null===(e=be.config.params)||void 0===e?void 0:e.enableSingleRequest)&&window.googletag.pubads().enableSingleRequest(),window.googletag.enableServices()})),this.loadExoticSlots(),this.monkeyPatchGPTDisplay()})))),D.after("addAdUnit",((e,t)=>{var i;t.adUnit.adUnitPath&&t.htmlId&&t.adUnit.sizes&&!t.isCapped&&(t.adUnit.type&&-1!==["video","incontentvideo"].indexOf(t.adUnit.type)?Yv.addAdUnitReadyToRequest(t.htmlId):"outofpage"===t.adUnit.sizes?this.createOutOfPageSlot(t.adUnit.adUnitPath,t.htmlId):this.createSlot(t.adUnit.adUnitPath,t.htmlId,t.adUnit.sizes,null===(i=t.adUnit.params)||void 0===i?void 0:i.sizeMapping))})),D.before("coreInit",(()=>{var e;"limited"===Ie.consentType&&(null===(e=be.config.params)||void 0===e?void 0:e.limitedConsentGamProtection)&&be.adUnits.forEach((e=>{var t;e.type&&["cornervideo","instream-video","avp","standalone-video","akcelo-video"].includes(e.type)||"allowed"!==(null===(t=e.params)||void 0===t?void 0:t.gamMode)||(e.params.gamMode="a9only",ny.debug(`Setting ad unit ${e.id} to a9only mode`))}))})),this.setupEvents()}loadExoticSlots(){var e;if(!(null===(e=be.config.params)||void 0===e?void 0:e.loadGoogleExoticSlots))return void ny.info("LoadExoticSlots call skipped (loadGoogleExoticSlots option is disabled)");const t=[];be.adUnits.forEach((e=>{void 0!==e.adUnitPath&&t.push(e.adUnitPath)})),window.googletag.cmd.push((()=>{const e=googletag.pubads().getSlots().filter((e=>-1===t.indexOf(e.getAdUnitPath())&&(!ry.has(e.getSlotElementId())||!1===ry.get(e.getSlotElementId()))));e.length>0&&(e.forEach((e=>{ry.set(e.getSlotElementId(),!0)})),googletag.pubads().refresh(e))}))}renderAds(e){ny.info("Render ads",e),this.isFirstGamRequest&&(performance.mark(ie),this.isFirstGamRequest=!1);const t=e.filter((e=>this.adUnitSlots[e])).map((e=>this.adUnitSlots[e]));t.length>0&&window.googletag.cmd.push((()=>{try{this.getExtraTargeting().forEach(((e,t)=>{window.googletag.pubads().setTargeting(t,e)})),window.googletag.pubads().refresh(t)}catch(e){ny.error("Failed to set extra targeting",e),window.googletag.pubads().refresh(t)}}))}prepareRenderAds(e){e.forEach((e=>{var t,i,n,r,o,a,s,d,l,c,u,p,m,f;((null===(t=be.config.params)||void 0===t?void 0:t.gamDelayAddService)||"outofpage"===(null===(i=be.adUnits.get(e))||void 0===i?void 0:i.sizes))&&window.googletag.cmd.push((()=>{var t;null===(t=this.adUnitSlots[e])||void 0===t||t.addService(window.googletag.pubads())}));const g=null!==(r=null===(n=F.state.adUnits[e])||void 0===n?void 0:n.ref)&&void 0!==r?r:e,h=document.getElementById(e);if(h&&h.style.removeProperty("height"),Object.keys(this.adRequests).includes(e)&&(this.adRequests[e]+=1),this.adUnitSlots[e])if(window.slmadshb.getAdUnitFloor&&window.slmadshb.getAdUnitFloor(e)&&this.adUnitSlots[e].setTargeting("slm_floor",window.slmadshb.getAdUnitFloor(e)||"0.00"),this.adUnitSlots[e].setTargeting("slmadshb_r",this.adRequests[e]>1?"true":"false"),(null===(a=null===(o=be.config.params)||void 0===o?void 0:o.refresh)||void 0===a?void 0:a.targeting)&&this.adUnitSlots[e].setTargeting("slmadshb_r_custom",this.adRequests[e]>1?be.config.params.refresh.targeting.true:be.config.params.refresh.targeting.false),this.adUnitSlots[e].setTargeting("slmadshb_ob",(null===(c=null===(l=null===(d=null===(s=be.adUnits.get(g))||void 0===s?void 0:s.params)||void 0===d?void 0:d.partners)||void 0===l?void 0:l.openBidding)||void 0===c?void 0:c.enabled)?"true":"false"),null===(f=null===(m=null===(p=null===(u=be.adUnits.get(g))||void 0===u?void 0:u.params)||void 0===p?void 0:p.partners)||void 0===m?void 0:m.adExchange)||void 0===f?void 0:f.enabled){const t=1===this.adRequests[e]||this.isAllowedAtRefresh(e)?"true":"false";this.adUnitSlots[e].setTargeting("slmadshb_adx",t)}else this.adUnitSlots[e].setTargeting("slmadshb_adx","false")}))}canRender(e){var t,i,n;const r=null!==(i=null===(t=F.state.adUnits[e])||void 0===t?void 0:t.ref)&&void 0!==i?i:e,o=be.adUnits.get(r),a=!!this.adUnitSlots[e]&&this.slotHasA9Bids(this.adUnitSlots[e]),s=0===this.adRequests[e]||this.isAllowedAtRefresh(e);return(null===(n=null==o?void 0:o.params)||void 0===n?void 0:n.gamMode)!==ce&&(a||s)}isAllowedAtRefresh(e){var t,i,n,r,o,a,s,d,l;const c=null!==(i=null===(t=F.state.adUnits[e])||void 0===t?void 0:t.ref)&&void 0!==i?i:e,u=be.adUnits.get(c);return!0===(null===(o=null===(r=null===(n=null==u?void 0:u.params)||void 0===n?void 0:n.partners)||void 0===r?void 0:r.adExchange)||void 0===o?void 0:o.allowAtRefresh)||void 0!==u&&!0===(null===(d=null===(s=null===(a=null==u?void 0:u.params)||void 0===a?void 0:a.partners)||void 0===s?void 0:s.adExchange)||void 0===d?void 0:d.allowAtPassback)&&window.slmpbjs&&!(null===(l=window.slmpbjs.getAdserverTargetingForAdUnitCode(e))||void 0===l?void 0:l.hb_adid)}createSlot(e,t,i,n){ny.info("CreateSlot",e,t,i),window.googletag.cmd.push((()=>{var r,o,a,s,d,l,c;const u=googletag.pubads().getSlots().filter((i=>i.getAdUnitPath()===e&&i.getSlotElementId()===t)),[p]=u,m=null!=p?p:window.googletag.defineSlot(e,i,t);if(m){if(n){const e=window.googletag.sizeMapping();n.forEach((t=>{Array.isArray(t.vs)&&Array.isArray(t.ss)&&e.addSize(t.vs,t.ss)})),m.defineSizeMapping(e.build())}(null===(r=be.config.params)||void 0===r?void 0:r.gamDelayAddService)||m.addService(window.googletag.pubads()),window.googletag.display(t),this.adUnitSlots[t]=m,this.adRequests[t]=0;const e=null!==(a=null===(o=F.state.adUnits[t])||void 0===o?void 0:o.ref)&&void 0!==a?a:t;m.setTargeting("slmadshb_ob",(null===(c=null===(l=null===(d=null===(s=be.adUnits.get(e))||void 0===s?void 0:s.params)||void 0===d?void 0:d.partners)||void 0===l?void 0:l.openBidding)||void 0===c?void 0:c.enabled)?"true":"false")}Yv.addAdUnitReadyToRequest(t)}))}createOutOfPageSlot(e,t){ny.info("Create OutOfPage Slot",e,t);const i=be.adUnits.get(t);window.googletag.cmd.push((()=>{var n,r,o,a,s,d;let l;if("sticky"===(null==i?void 0:i.type)?l=window.googletag.defineOutOfPageSlot(e,googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR):"rewarded"===(null==i?void 0:i.type)?(l=window.googletag.defineOutOfPageSlot(e,googletag.enums.OutOfPageFormat.REWARDED),googletag.pubads().addEventListener("rewardedSlotReady",(e=>{e.makeRewardedVisible(),D("adUnitRendered",(e=>{ny.info("Ad unit rendered",e)}),{id:i.id})}))):l=window.googletag.defineOutOfPageSlot(e,googletag.enums.OutOfPageFormat.INTERSTITIAL),l){this.adUnitSlots[t]=l,this.adRequests[t]=0;const e=null!==(r=null===(n=F.state.adUnits[t])||void 0===n?void 0:n.ref)&&void 0!==r?r:t;l.setTargeting("slmadshb_ob",(null===(d=null===(s=null===(a=null===(o=be.adUnits.get(e))||void 0===o?void 0:o.params)||void 0===a?void 0:a.partners)||void 0===s?void 0:s.openBidding)||void 0===d?void 0:d.enabled)?"true":"false")}Yv.addAdUnitReadyToRequest(t)}))}setupEvents(){window.googletag.cmd.push((()=>{window.googletag.pubads().addEventListener("slotRenderEnded",(e=>{var t,i;const n=e.slot.getTargeting("amzniid");n.length>0&&-1!==e.slot.getHtml().indexOf(n[0])&&window.slmadshb.triggerEvent("apsRenderImp",n[0]);const r=e.slot.getSlotElementId();ny.info("event.slot.getSlotElementId()",e.slot.getSlotElementId());const o=null!==(i=null===(t=F.state.adUnits[r])||void 0===t?void 0:t.ref)&&void 0!==i?i:r,a=be.adUnits.get(o);if(a)return e.isEmpty?D("passback",(e=>(ny.info("Passback ad unit",e.adUnit),a.id)),{adUnit:a}):D("adUnitRendered",(e=>{ny.info("Ad unit rendered",e)}),{id:a.id})}))}))}getExtraTargeting(){var e,t,i,n,r,o;const a=new Map,s=Ie.getConsentType();a.set("slmadshb_consent",s);const d=zv.loadStats();if(d.length>=3){const s=null===(t=null===(e=be.config.params)||void 0===e?void 0:e.contextTargeting)||void 0===t?void 0:t.userVisitDuration;if(s){const e=d.map((e=>e.visitDuration)).reduce(((e,t)=>e+t),0)/d.length,t=this.findDurationTargeting(s,e);t&&(a.set("user_duration",t),ny.info(`Set user duration targeting [${t}]`))}const l=null===(n=null===(i=be.config.params)||void 0===i?void 0:i.contextTargeting)||void 0===n?void 0:n.pageVisitDuration,c=null===(o=null===(r=window.slmadshb.setup.params)||void 0===r?void 0:r.contextTargeting)||void 0===o?void 0:o.pagesInfos;if(l&&c){const e=Object.keys(c).find((e=>new RegExp(`^${e}$`).test(window.location.pathname)));if(e){const t=this.findDurationTargeting(l,c[e]);t&&(a.set("page_duration",t),ny.info(`Set page duration targeting [${t}]`))}}}return a}findDurationTargeting(e,t){const i=Object.keys(e).filter((i=>t>e[i])).sort(((t,i)=>e[i]-e[t]));return i.length>0?i[0]:null}};var oy=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))};const ay=new G("Amazon");let sy;new class extends Hb{constructor(){super("amazon"),this.DEFAULT_PUB_ID="8a83e099-851b-4737-9ca3-c7092ea4fc9f",this.DEFAULT_AD_SERVER="googletag",this.DEFAULT_TIMEOUT=2e3,this.MAPPING={},this.a9Bids=new Map,ay.info("Module initialization"),D.after("loadConfig",(e=>{var t,i,n,r,o,a;const s=(null===(i=null===(t=e.params)||void 0===t?void 0:t.amazon)||void 0===i?void 0:i.pubID)||this.DEFAULT_PUB_ID,d=(null===(r=null===(n=e.params)||void 0===n?void 0:n.amazon)||void 0===r?void 0:r.adServer)||this.DEFAULT_AD_SERVER;return this.MAPPING=this.readConfig(null===(o=e.params.amazon)||void 0===o?void 0:o.config),this.load(s,d,null===(a=e.params)||void 0===a?void 0:a.schain),e})),window.slmadshb=window.slmadshb||[],window.slmadshb.getA9VideoBid=e=>{var t,i,n,r,o,a;let s;const d=null!==(i=null===(t=F.state.adUnits[e])||void 0===t?void 0:t.ref)&&void 0!==i?i:e,l=null===(a=null===(o=null===(r=null===(n=be.adUnits.get(d))||void 0===n?void 0:n.params)||void 0===r?void 0:r.partners)||void 0===o?void 0:o.amazon)||void 0===a?void 0:a.videoSlot;if(l){const e=Array.from(this.a9Bids.values()).filter((e=>e.slotID===l&&!1===e.used));e.length>0&&(s=e[0])}else ay.error("Unable to find video slotId for adUnit",e);return s},window.slmadshb.markA9VideoBidAsUsed=e=>{const t=this.a9Bids.get(e);t&&(t.used=!0)},D.before("renderAds",(()=>{window.apstag.setDisplayBids()}))}requestBids(e){return oy(this,void 0,void 0,(function*(){ay.info(`Request bids ${e}`);const t=Ie.getConsentType();if(0===e.length||"accepted"!==t)return Promise.resolve();const i=F.getAdUnitsById(e),n=this.getDisplayRequest(i),r=this.fetchBids(n),o=this.getVideoRequest(i),a=this.fetchBids(o);yield Promise.all([r,a])}))}getBids(e){ay.info("getBids",e);const t=[];return e.forEach((e=>{this.a9Bids.forEach((i=>{var n;if(i&&i.slotID===e&&!1===i.used){const[e,r]=i.amznsz.split("x");t.push({cpm:null!==(n=this.MAPPING[i.amznbid])&&void 0!==n?n:0,provider:"amazon",width:Number(e),height:Number(r),a9Targeting:i})}}))})),t}getDisplayRequest(e){const t=[];return e.forEach((e=>{var i,n,r,o;const a=be.adUnits.get(e.ref);if(void 0!==a){const s=null===(n=null===(i=a.params)||void 0===i?void 0:i.partners)||void 0===n?void 0:n.amazon;(null==s?void 0:s.enabled)&&a.adUnitPath&&a.mediaTypes&&(null===(r=a.mediaTypes.banner)||void 0===r?void 0:r.sizes)&&a.mediaTypes.banner.sizes.length>0&&(void 0!==s.videoSlot&&!0===s.outstream||t.push({slotID:e.htmlId,sizes:null===(o=a.mediaTypes.banner)||void 0===o?void 0:o.sizes,slotName:a.adUnitPath}))}})),{slots:t,mediaType:"banner"}}getVideoRequest(e){const t=[];return e.forEach((e=>{var i,n,r;const o=be.adUnits.get(e.ref);if(void 0!==o){const e=null===(n=null===(i=o.params)||void 0===i?void 0:i.partners)||void 0===n?void 0:n.amazon;if((null==e?void 0:e.enabled)&&o.mediaTypes.video&&e.videoSlot){const{videoSlot:i}=e;if(!0===e.outstream){const e=(null===(r=o.mediaTypes.banner)||void 0===r?void 0:r.sizes)||o.mediaTypes.video.sizes;t.push({slotID:i,mediaType:"multi-format",multiFormatProperties:{display:{sizes:e},video:{sizes:o.mediaTypes.video.sizes}}})}else t.push({slotID:i,mediaType:"video"})}}})),{slots:t,mediaType:"video"}}fetchBids(e){return new Promise((t=>{var i,n,r;if(e.slots.length>0){const o={slots:e.slots,timeout:(null===(n=null===(i=window.slmpbjs)||void 0===i?void 0:i.getConfig())||void 0===n?void 0:n._bidderTimeout)||this.DEFAULT_TIMEOUT},a=i=>{var n;null===(n=window.apstag)||void 0===n||n.setDisplayBids(),i.forEach((e=>{e.used=!1,""!==e.amzniid&&this.a9Bids.set(e.amzniid,e)})),ay.info(`Bids fetched for ${e.mediaType}`),t()};null===(r=window.apstag)||void 0===r||r.fetchBids(o,a)}else ay.debug(`No slots available for ${e.mediaType}`),t()}))}load(e,t,i){var n,r;this.setUpApsTag();const o={pubID:e,adServer:t,isSelfServePub:!0,videoAdServer:"DFP"};void 0!==i&&(o.schain=i),null===(n=window.apstag)||void 0===n||n.init(o),null===(r=window.slmadshb)||void 0===r||r.onEvent("apsRenderImp",(e=>{const t=this.a9Bids.get(e);t&&(window.slmadshb.triggerEvent("apsBidWon",t),this.a9Bids.delete(e))}))}readConfig(e){if(!e)return{};const t="abcdefghijklmnopqrstuvwxyzabcdefghijklmABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLM",i=e.replace(/[a-zA-Z]/gi,(e=>t[t.indexOf(e)+13]));return JSON.parse(atob(i))}setUpApsTag(){!function(e,t,i,n,r,o,a){function s(i,n){t[e]._Q.push([i,n])}t[e]||(t[e]={init(){s("i",arguments)},fetchBids(){s("f",arguments)},setDisplayBids(){},targetingKeys:()=>[],_Q:[]},(o=i.createElement(n)).async=!0,o.src="//c.amazon-adsystem.com/aax2/apstag.js",(a=i.getElementsByTagName(n)[0]).parentNode.insertBefore(o,a))}("apstag",window,document,"script")}};class dy{constructor(e){this.adUnits=new Map,sy=e,sy.info("Module initialization"),window.slmadshb=window.slmadshb||{},window.slmadshb.refresh=this}init(e){this.initListeners(e),this.startRefresh()}initListeners(e){(null==e?void 0:e.onlyWhenTabIsActive)&&document.addEventListener("visibilitychange",(()=>{"visible"===document.visibilityState?this.startRefresh():this.stopRefresh()})),window.addEventListener("message",(t=>{const i=(i,n)=>{var r;"boolean"==typeof(null===(r=null==n?void 0:n.refresh)||void 0===r?void 0:r.enabled)&&(n.refresh.enabled?this.enableAdUnitRefresh(i,performance.now()):this.disableAdUnitRefresh(i)),n.refresh.timeout&&this.updateAdUnitTimeout(i,t.data.slmadshb.refresh.timeout),n.refresh.delay&&(this.updateAdUnitTimeout(i,t.data.slmadshb.refresh.delay),setTimeout((()=>{"number"==typeof e.timeout&&this.updateAdUnitTimeout(i,e.timeout)}),n.refresh.delay))};t.data&&t.data.slmadshb&&(t.data.slmadshb.adUnitPath?F.getAdUnits().forEach((e=>{e.adUnitPath===t.data.slmadshb.adUnitPath&&i(e.htmlId,t.data.slmadshb)})):t.data.slmadshb.adUnitId&&i(t.data.slmadshb.adUnitId,t.data.slmadshb))}),!1)}getAdUnitCapping(e){var t,i,n,r;return"video"===(null==e?void 0:e.type)?(null===(i=null===(t=e.params)||void 0===t?void 0:t.refresh)||void 0===i?void 0:i.capping)||256:(null===(r=null===(n=null==e?void 0:e.params)||void 0===n?void 0:n.refresh)||void 0===r?void 0:r.capping)||10}addAdUnitToState(e,t){this.adUnits.has(e)?sy.warn("addAdUnitToState",`adUnit with this htmlId already exists (${e})`):this.adUnits.set(e,t)}removeAdUnitFromState(e){this.adUnits.has(e)?this.adUnits.delete(e):sy.warn("removeAdUnitFromState",`adUnit does not exists (${e})`)}enableAdUnitRefresh(e,t){if(sy.info("AutoRefresh enabled",e),this.adUnits.has(e)){const i=this.adUnits.get(e);i&&!i.enabled&&i.refreshCount<=i.capping&&(i.enabled=!0,i.lastRefreshedAt=t)}}disableAdUnitRefresh(e){if(sy.info("AutoRefresh disabled",e),this.adUnits.has(e)){const t=this.adUnits.get(e);t&&(t.enabled=!1)}}updateAdUnitTimeout(e,t){if(sy.info("AdUnit timeout updated",{id:e,timeout:t}),this.adUnits.has(e)){const i=this.adUnits.get(e);i&&(i.timeout=t)}}refreshAdUnit(e,t){t||(t=performance.now());const i=this.adUnits.get(e);i?(sy.info(`Refreshing adUnit ${e} after ${Math.floor(t-i.lastRefreshedAt)}ms`),i.lastRefreshedAt=t,i.refreshCount+=1):sy.info(`Refreshing adUnit ${e}`),Yv.addAdUnitReadyToRequest(e)}startRefresh(){sy.info("Refresh started"),this.intervalId||(this.intervalId=window.setInterval((()=>{const e=performance.now(),t=this.getAdUnitIdsToRefresh(e);t.length>0&&t.forEach((t=>{this.refreshAdUnit(t,e)}))}),1e3))}stopRefresh(){sy.info("Refresh stopped"),clearInterval(this.intervalId),this.intervalId=void 0}alterRefreshTimeoutTemporarily(e,t,i,n){if(this.adUnits.has(e)){const r=this.adUnits.get(e);r&&(r.timeout=t,r.visibleTimeout=t,setTimeout((()=>{r.timeout=null!=n?n:i,r.visibleTimeout=i}),t),sy.info(`Altering refresh temporarily on ${e}`,t,i,n))}}}const ly=e=>{var t;if(e){if(e.yieldGroupIds)return"ebda";const i=null===(t=be.config.params)||void 0===t?void 0:t.advertisersMapping;if(i){if(i.Amazon===e.advertiserId)return"a9";if(i.Prebid===e.advertiserId)return"prebid";if(i.Google&&i.Google!==e.advertiserId&&!e.isBackfill)return"direct"}if(!e.lineItemId)return"adx"}return"unknown"},cy=new G("Viewability"),uy=window.IntersectionObserver&&window.IntersectionObserverEntry&&window.IntersectionObserverEntry.prototype&&"intersectionRatio"in window.IntersectionObserverEntry.prototype;new class{constructor(){this.displayDuration=1e3,this.displayThreshold=.5,this.bids=new Map,this.matchedBids=[],uy?(cy.info("Module initialization"),D.after("loadConfig",((e,t)=>{t.params.viewability&&(t.params.viewability.duration&&(this.displayDuration=t.params.viewability.duration),t.params.viewability.threshold&&(this.displayThreshold=t.params.viewability.threshold)),this.init()}))):cy.info("Module initialization skipped (IntersectionObserverAPI not available)")}init(){this.observer=new IntersectionObserver(this.observerCallback.bind(this),{threshold:this.displayThreshold}),window.slmpbjs=window.slmpbjs||{que:[]},window.slmpbjs.que.push((()=>{window.slmpbjs.onEvent("adRenderSucceeded",(({bid:e})=>{var t;this.bids.set(e.adUnitCode,e);const i=document.getElementById(e.adUnitCode);i&&(null===(t=this.observer)||void 0===t||t.observe(i))}))})),window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((()=>{window.googletag.pubads().addEventListener("impressionViewable",(e=>{var t;if(e.slot.getOutOfPage())return void cy.info(`Skipping viewable event for outofpage ${e.slot.getAdUnitPath()}`);const i=ly(e.slot.getResponseInformation());let n=null;const r=e.slot.getTargeting("slm_floor");r.length>0&&(n=parseFloat(r[0]));const o=document.getElementById(e.slot.getSlotElementId());o&&(null===(t=this.observer)||void 0===t||t.unobserve(o)),this.markImpressionAsViewed(e.slot.getSlotElementId(),!0,{google:{adUnitPath:e.slot.getAdUnitPath(),bidderCode:i,floor:n}})}))}))}observerCallback(e){e.forEach((e=>{e.isIntersecting?e.target.tracker||(e.target.tracker=setTimeout((()=>{var t;this.markImpressionAsViewed(e.target.id),null===(t=this.observer)||void 0===t||t.unobserve(e.target),e.target.tracker=null}),this.displayDuration)):e.target.tracker&&clearTimeout(e.target.tracker)}))}markImpressionAsViewed(e,t=!1,i={}){let n=null;if(this.bids.has(e)&&(n=this.bids.get(e),n)){if(-1!==this.matchedBids.indexOf(n.requestId))return;this.matchedBids.push(n.requestId)}document.dispatchEvent(new CustomEvent("impressionViewable",{detail:Object.assign({adUnitCode:e,isGoogle:t,bid:n},i)}))}};const py=new G("SmartRefresh");new class extends dy{constructor(){super(py),D.after("adUnitReady",((e,t)=>{var i,n,r,o,a,s;if(this.adUnits.has(t.htmlId))return;const d=F.state.adUnits[t.htmlId],l=be.adUnits.get(d.ref);if(t.htmlId&&!d.isCapped){const e={enabled:(null===(n=null===(i=null==l?void 0:l.params)||void 0===i?void 0:i.refresh)||void 0===n?void 0:n.enabled)||!1,timeout:(null===(o=null===(r=null==l?void 0:l.params)||void 0===r?void 0:r.refresh)||void 0===o?void 0:o.timeout)||3e4,visibleTimeout:(null===(s=null===(a=null==l?void 0:l.params)||void 0===a?void 0:a.refresh)||void 0===s?void 0:s.visibleTimeout)||12e3,capping:this.getAdUnitCapping(l),refreshCount:0,isVisible:!1,lastRefreshedAt:performance.now()};this.addAdUnitToState(t.htmlId,e)}})),D.before("destroyAdUnit",(e=>{e.htmlId&&this.removeAdUnitFromState(e.htmlId)})),D.after("loadConfig",((e,t)=>{var i;this.init((null===(i=null==t?void 0:t.params)||void 0===i?void 0:i.refresh)||{})}))}initListeners(e){super.initListeners(e),document.addEventListener("impressionViewable",(e=>{try{this.onViewableImpression(e)}catch(t){py.error(t)}}))}onViewableImpression(e){if(e.detail&&this.adUnits.has(e.detail.adUnitCode)){const t=this.adUnits.get(e.detail.adUnitCode);t&&(t.isVisible=!0)}}getAdUnitIdsToRefresh(e){return Array.from(this.adUnits.keys()).filter((t=>{const i=this.adUnits.get(t);if(i&&i.enabled&&i.lastRefreshedAt&&i.refreshCount<i.capping){const t=e-i.lastRefreshedAt;if(i.isVisible){const e=t>i.visibleTimeout;return e&&(i.isVisible=!1),e}return t>i.timeout}return!1}))}};class my{constructor(e,t){this.adUnitId=e,this.config=t,this.defaultSize=[320,480],this.initialize()}initialize(){this.getElements(),this.createElements(),this.applyElementsStyle()}createElements(){var e,t;if(this.itsFrame||(this.itsFrame=document.createElement("div"),this.itsFrame.setAttribute("id","slm_its")),this.scalerFrame||(this.scalerFrame=document.createElement("ins"),this.scalerFrame.setAttribute("id","slm_its_scaler")),this.itsCloseClickProtection||(this.itsCloseClickProtection=document.createElement("DIV"),this.itsCloseClickProtection.id="slm_its_cp",this.itsFrame.appendChild(this.itsCloseClickProtection)),this.scalerFrame&&!this.closeButton){const e=this.itsFrame.querySelector(".slm-close");null!==e&&(this.closeButton=e)}this.itsFrame.appendChild(this.scalerFrame),this.adUnitId&&(this.adFrame=document.getElementById(this.adUnitId),null!==this.adFrame&&!1===(null===(e=this.config)||void 0===e?void 0:e.appendInBody)?null===(t=this.adFrame.parentNode)||void 0===t||t.insertBefore(this.itsFrame,this.adFrame):(null===this.adFrame&&(this.adFrame=document.createElement("div"),this.adFrame.setAttribute("id",this.adUnitId)),document.body.appendChild(this.itsFrame)),this.scalerFrame.appendChild(this.adFrame))}getElements(){var e,t,i;this.itsFrame=null!==(e=document.getElementById("slm_its"))&&void 0!==e?e:void 0,this.scalerFrame=null!==(t=document.getElementById("slm_its_scaler"))&&void 0!==t?t:void 0,this.itsCloseClickProtection=null!==(i=document.getElementById("slm_its_cp"))&&void 0!==i?i:void 0}createCloseButton(e=1){var t,i,n;this.closeButton||(this.closeButton=W(80,!1,e),this.closeButton.style.position="relative",this.closeButton.style.paddingRight="10px",this.closeButton.style.textAlign="right",this.closeButton.style.visibility="hidden",this.closeButton.style.zIndex="2147483647","hover"===(null===(t=this.config)||void 0===t?void 0:t.closeButtonPosition)?(this.closeButton.style.height="0px",this.closeButton.style.top="10px"):(this.closeButton.style.paddingTop="10px",this.closeButton.style.paddingBottom="3px"),null===(i=this.scalerFrame)||void 0===i||i.insertBefore(this.closeButton,null===(n=this.scalerFrame)||void 0===n?void 0:n.firstChild))}applyElementsStyle(){this.itsFrame&&this.scalerFrame&&(this.itsFrame.style.width="100vw",this.itsFrame.style.height=`${window.top?window.top.innerHeight:window.innerHeight}px`,this.itsFrame.style.position="fixed",this.itsFrame.style.textAlign="initial",this.itsFrame.style.top="0",this.itsFrame.style.left="0",this.itsFrame.style.zIndex="2147483647",this.itsFrame.style.display="none",this.itsFrame.style.backgroundColor="rgba(0, 0, 0, 0.8)",this.scalerFrame.style.width=`${this.defaultSize[0]}px`,this.scalerFrame.style.height=`${this.defaultSize[1]}px`,this.scalerFrame.style.display="block",this.scalerFrame.style.position="relative",this.scalerFrame.style.border="0px",this.scalerFrame.style.top="50%",this.scalerFrame.style.left="50%",this.scalerFrame.style.background="transparent",this.scalerFrame.style.transform="translate(-50%, -50%)",this.adFrame&&(this.adFrame.style.width=`${this.defaultSize[0]}px`,this.adFrame.style.height=`${this.defaultSize[1]}px`,this.adFrame.style.display="block",this.adFrame.style.position="relative"))}renderElements(e=null){var t,i,n;let r=null;if(!document.getElementById("slm_its")||!this.itsFrame||!this.scalerFrame)return!1;if(e&&e[0]>2&&e[1]>2&&(this.scalerFrame.style.width=`${e[0]}px`,"out"===(null===(t=this.config)||void 0===t?void 0:t.closeButtonPosition)?this.scalerFrame.style.height=`${e[1]+35}px`:this.scalerFrame.style.height=`${e[1]}px`,this.adFrame&&(this.adFrame.style.width=`${e[0]}px`,this.adFrame.style.height=`${e[1]}px`)),this.itsFrame.style.display="block",document.body.style.overflow="hidden",document.body.parentElement&&(document.body.parentElement.style.overflow="hidden"),null===(i=this.config)||void 0===i?void 0:i.automaticScaling){const t=document.querySelector(`[id='${this.adUnitId}'] iframe`);if(t&&e){!t.style.width&&!t.style.height&&e[0]<=2&&e[1]<=2&&(t.style.width=`${this.defaultSize[0]}px`,t.style.height=`${this.defaultSize[1]}px`);const i=Math.max(e[0],t.style.width?parseInt(t.style.width,10):0,parseInt(t.getAttribute("width")||"0",10)),n=Math.max(e[1],t.style.height?parseInt(t.style.height,10):0,parseInt(t.getAttribute("height")||"0",10)),o=Math.max((n+(this.closeButton?this.closeButton.offsetHeight:0))/(.8*this.itsFrame.offsetHeight),i/this.itsFrame.offsetWidth);r=e[0]/o/e[0],this.scalerFrame.style.transform=`translateY(-50%) translateX(-50%) scale(${r})`}}if(this.itsCloseClickProtection&&(this.itsCloseClickProtection.style.position="absolute",this.itsCloseClickProtection.style.width="72px",this.itsCloseClickProtection.style.height="72px",this.itsCloseClickProtection.style.background="transparent",this.itsCloseClickProtection.style.pointerEvents="all"),this.createCloseButton(null!=r?r:void 0),this.closeButton){const e=this.closeButton.querySelector("svg");e&&(null===(n=this.config)||void 0===n?void 0:n.automaticScaling)&&r&&r<1&&(e.style.transform=`scale(${1/r})`);const t=null==e?void 0:e.getBoundingClientRect();this.itsCloseClickProtection&&t&&(this.itsCloseClickProtection.style.left=t.x+t.width/2-36+"px",this.itsCloseClickProtection.style.top=t.y+t.width/2-36+"px");const i=()=>{var e;let t=500;"number"==typeof(null===(e=this.config)||void 0===e?void 0:e.closeButtonDelay)&&(t=Math.min(3e3,this.config.closeButtonDelay)),setTimeout((()=>{this.closeButton&&(this.closeButton.style.visibility="visible")}),t)};if(this.config.closeButtonWaitForViewability){const e=setTimeout((()=>{i()}),5e3);document.addEventListener("impressionViewable",(t=>{t.detail.adUnitCode===this.adUnitId&&(clearTimeout(e),i())}))}else i();this.closeButton.onclick=()=>{var e;document.body.parentElement&&(document.body.parentElement.style.overflow="visible"),document.body.style.overflow="visible",this.config.onClose&&this.config.onClose(this.adUnitId),this.itsFrame&&(this.itsFrame.style.background="transparent",this.itsFrame.style.pointerEvents="none"),this.adFrame&&(this.adFrame.style.display="none"),null===(e=this.closeButton)||void 0===e||e.remove(),this.closeButton=void 0,setTimeout((()=>{this.itsFrame&&(this.itsFrame.style.display="none",this.itsFrame.remove())}),2e3)}}return!0}}function fy(e,t){window.slmpbjs=window.slmpbjs||{},window.slmpbjs.que=window.slmpbjs.que||[],window.slmpbjs.que.push((()=>{window.slmpbjs.onEvent("bidWon",(i=>{i.adUnitCode===e&&t([i.width,i.height],null,i.bidderCode)}))})),window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push((()=>{window.googletag.pubads().addEventListener("slotRenderEnded",(i=>i.slot.getSlotElementId()===e&&!i.isEmpty&&("string"!=typeof i.size&&t(i.size,i.creativeId))))}))}const gy=new G("Interstitial");new class{constructor(){this.renderers=new Map,gy.info("Module initialization"),D.before("addAdUnit",(e=>{var t;"its"===e.adUnit.type&&"outofpage"!==e.adUnit.sizes&&(this.renderers.set(e.htmlId,new my(e.htmlId,this.getInterstitialParams(null===(t=e.adUnit.params)||void 0===t?void 0:t.interstitial))),fy(e.htmlId,(t=>{var i;gy.debug("Rendering ITS",e.htmlId),null===(i=this.renderers.get(e.htmlId))||void 0===i||i.renderElements(t)})))}))}getInterstitialParams(e){const t={automaticScaling:!0,appendInBody:!0,closeButtonDelay:1250,closeButtonPosition:"out",closeButtonWaitForViewability:!1,onClose:e=>{gy.info("ITS has been closed",e)}};return e?Object.assign(Object.assign({},t),e):t}};const hy=new G("Sticky Renderer");class vy{constructor(e,t){this.uniqId=Math.random().toString(36).substring(2,16),this.adUnitId=e,this.params=t,this.getElements(),this.stickyFrame||(this.stickyFrame=document.createElement("DIV"),this.stickyFrame.id=`slm_sticky_${this.uniqId}`,this.stickyFrame.classList.add("slm_sticky"),this.stickyFrame.style.position=this.params.target?"absolute":"fixed",this.stickyFrame.style.display="none");let i=document.body;if(this.params.target){const e=document.querySelector(this.params.target);e?i=e:hy.warn("Missing target",this.params.target)}if(i.insertBefore(this.stickyFrame,i.firstChild),this.stickyInnerFrame||(this.stickyInnerFrame=document.createElement("DIV"),this.stickyInnerFrame.id=`slm_sticky_container_${this.uniqId}`,this.stickyInnerFrame.classList.add("slm_sticky_container")),this.stickyFrame.appendChild(this.stickyInnerFrame),this.stickyParallaxFrame=document.createElement("DIV"),this.stickyParallaxFrame.id=`slm_sticky_parallax_${this.uniqId}`,this.stickyParallaxFrame.classList.add("slm_sticky_parallax"),this.stickyInnerFrame.appendChild(this.stickyParallaxFrame),this.adUnitId){const e=document.getElementById(this.adUnitId);e?this.adFrame=e:(this.adFrame=document.createElement("DIV"),this.adFrame.setAttribute("id",this.adUnitId),this.adFrame.dataset.akceloLoaded="1"),this.stickyParallaxFrame.appendChild(this.adFrame)}!1!==this.params.closeButton&&(this.closeButton=this.createCloseButton(),this.stickyInnerFrame.appendChild(this.closeButton))}getElements(){var e,t;this.stickyFrame=null!==(e=document.getElementById(this.params.useUniqId?`slm_sticky_${this.uniqId}`:"slm_sticky"))&&void 0!==e?e:void 0,this.stickyInnerFrame=null!==(t=document.getElementById(this.params.useUniqId?`slm_sticky_container_${this.uniqId}`:"slm_sticky_container"))&&void 0!==t?t:void 0}renderElements(e){var t,i,n,r,o;if(this.adFrame&&e)if(e[0]<=1&&e[1]<=1)this.adFrame.style.width="auto",this.adFrame.style.height="auto";else if(this.params.autoScale&&e[1]>this.params.autoScale.maxHeight){const t=window.innerWidth/e[0],i=this.params.autoScale.maxHeight/e[1],n=Math.min(t,i);this.adFrame.style.width=e[0]*n+"px",this.adFrame.style.height=e[1]*n+"px",this.adFrame.style.maxHeight=`${this.params.autoScale.maxHeight}px`;const r=this.adFrame.querySelector("iframe:first-of-type");r&&(r.style.scale=n.toString(),r.style.transformOrigin=n>1?"top":"top left")}else this.adFrame.style.width=`${e[0]}px`,this.adFrame.style.height=`${e[1]}px`;if(this.stickyFrame&&(this.stickyFrame.style.display="block",this.stickyFrame.style.padding="0",this.stickyFrame.style.margin="0 auto",this.stickyFrame.style.overflow="visible",this.stickyFrame.style.textAlign="center",this.stickyFrame.style.whiteSpace="nowrap",this.stickyFrame.style.zIndex=`${this.params.zIndex||1e4}`,this.params.fullWidth&&(this.stickyFrame.style.width="100%"),this.params.mainBackground&&(this.stickyFrame.style.backgroundColor=this.params.mainBackground)),(null===(t=this.params.parallax)||void 0===t?void 0:t.enabled)&&this.adFrame){const{maxHeight:e}=this.params.parallax;this.stickyFrame&&(this.stickyFrame.style.maxHeight=`${e}px`),this.stickyParallaxFrame.style.overflow="hidden";let t=0,i=window.scrollY;const n=90-this.stickyParallaxFrame.clientHeight,r=(t,i)=>{this.adFrame&&(this.adFrame.clientHeight<=e?this.adFrame.style.transform="translate(0px, 0px)":this.adFrame.style.transform=`translate(${t}px, ${i}px)`)},o=()=>{t=Math.max(n,(window.scrollY-i)/window.innerHeight*n),t>0&&(t=0,i=window.scrollY),r(0,t)};this.adFrame.clientHeight>e?(window.addEventListener("scroll",o),r(0,t)):window.removeEventListener("scroll",o)}this.stickyInnerFrame&&(this.stickyInnerFrame.style.display="inline-block",this.stickyInnerFrame.style.verticalAlign="top",this.stickyInnerFrame.style.marginLeft="0px",this.stickyInnerFrame.style.position="relative",this.stickyInnerFrame.style.maxWidth="100%",this.params.adBackground&&(this.stickyInnerFrame.style.backgroundColor=this.params.adBackground)),this.adFrame&&(this.adFrame.style.margin="0 auto",this.adFrame.style.textAlign="center",this.adFrame.style.maxWidth="100%",this.adFrame.style.overflow="hidden",this.adFrame.style.lineHeight="0"),this.closeButton&&(this.closeButton.style.display="inline-block");const a=[];return this.stickyFrame&&((null===(i=this.params.position)||void 0===i?void 0:i.includes("top"))?this.stickyFrame.style.top=`${this.params.yOffset}px`:(null===(n=this.params.position)||void 0===n?void 0:n.includes("bottom"))?this.stickyFrame.style.bottom=`${this.params.yOffset}px`:(this.stickyFrame.style.top="50%",a.push("translateY(-50%)")),(null===(r=this.params.position)||void 0===r?void 0:r.includes("left"))?this.stickyFrame.style.left="0":(null===(o=this.params.position)||void 0===o?void 0:o.includes("right"))?this.stickyFrame.style.right="0":(this.stickyFrame.style.left="50%",a.push("translateX(-50%)")),this.stickyFrame.style.margin=`${this.params.margin}px`,this.params.scale&&(this.params.scale=Math.min(Math.max(.5,this.params.scale),1.5),a.push(`scale(${this.params.scale})`),this.closeButton&&(this.closeButton.style.transform=`scale(${1/this.params.scale})`),this.params.position&&(this.stickyFrame.style.transformOrigin=`${this.params.position.replace("-"," ")}`)),a.length>0&&(this.stickyFrame.style.transform=a.join(" "))),!0}createCloseButton(){var e,t;const i=W();switch(i.style.position="absolute",this.params.closeButtonPosition){case"top-left":(null===(e=this.params.position)||void 0===e?void 0:e.includes("top"))?(i.style.top="0",i.style.left="-25px"):(i.style.top="-25px",i.style.left="0");break;case"top-right":(null===(t=this.params.position)||void 0===t?void 0:t.includes("top"))?(i.style.top="0",i.style.right="-25px"):(i.style.top="-25px",i.style.right="0");break;case"bottom-left":i.style.bottom="-25px",i.style.left="0";break;case"bottom-right":i.style.bottom="-25px",i.style.right="0";break;case"left":i.style.top="0",i.style.left="-25px";break;default:i.style.top="0",i.style.right="-25px"}return i.onclick=()=>{this.stickyFrame&&(this.stickyFrame.style.display="none",this.stickyFrame.remove()),this.params.onClose&&this.params.onClose(this.adUnitId)},i}}const by=new G("Sticky");new class{constructor(){this.renderers=new Map,by.info("Module initialization"),D.before("addAdUnit",(e=>{"sticky"===e.adUnit.type&&(by.debug("Creating sticky renderer",e.htmlId),this.renderers.set(e.htmlId,new vy(e.htmlId,this.getStickyParams(e.adUnit.params))),fy(e.htmlId,(t=>{var i;by.debug("Rendering sticky",e.htmlId),null===(i=this.renderers.get(e.htmlId))||void 0===i||i.renderElements(t)})))}))}getStickyParams(e){const t={fullWidth:!1,mainBackground:L()?"#FFFFFF":"transparent",adBackground:L()?"transparent":"rgba(0, 0, 0, 0.7)",position:"bottom",closeButtonPosition:"top-right",yOffset:0,margin:0,scale:1,useUniqId:!0,onClose:e=>{by.info("Sticky has been closed",e)}};return(null==e?void 0:e.sticky)?Object.assign(Object.assign({},t),e.sticky):t}};const yy=new G("Passback");class wy{constructor(){this.adUnitIds=new Set,yy.info("Module initialization"),D.before("passback",(e=>this.passbackProcess(e.adUnit)))}static getInstance(){return wy.instance||(wy.instance=new wy),wy.instance}passbackProcess(e){e&&this.callPassback(e)}callPassback(e){var t,i,n,r,o;if(this.adUnitIds.has(e.id))yy.error("Passback already called for this adUnit, skipping",e.id);else{if((null===(n=null===(i=null===(t=e.params)||void 0===t?void 0:t.partners)||void 0===i?void 0:i.sublime)||void 0===n?void 0:n.enabled)&&(null===(r=e.params)||void 0===r?void 0:r.partners.sublime.zoneId)){yy.info("Sublime passback",e.params.partners.sublime.zoneId);const t=document.createElement("script");t.setAttribute("id","sublime"),t.setAttribute("type","text/javascript"),t.setAttribute("src",`https://sac.ayads.co/sublime/${e.params.partners.sublime.zoneId}`),window.top&&(window.top.document.body.appendChild(t),"function"==typeof window.top.slmadsSkinUninstall&&window.top.slmadsSkinUninstall()),this.adUnitIds.add(e.id)}void 0!==(null===(o=e.params)||void 0===o?void 0:o.passbackCallback)&&(yy.info("Call passbackCallback",e),e.params.passbackCallback(),this.adUnitIds.add(e.id))}}reset(){yy.info("Resetting adUnitIds"),this.adUnitIds.clear()}}wy.instance=null;const Iy=wy.getInstance();class Ay{constructor(e){this.adUnitId=e,this.passbackCalled=!1}onBidsRequested(){}callPassback(){if(!this.passbackCalled){this.passbackCalled=!0;const e=be.getAdUnitsConfigById([this.adUnitId]);e.length>0&&Iy.callPassback(e[0])}}destroy(e=!1){}}const Ty=new G("Akcelo Video");class xy extends Ay{constructor(e,t=!1){var i,n,r,o,a,s,d;if(super(e),this.lineItemMapping={},this.bids=[],this.currentBid=null,this.isLoaded=!1,this.isReadyToRender=!1,this.isFirstBidsRequested=!1,this.isWaiting=!1,this.isPaused=!1,this.isDestroyed=!1,this.isAdPlaying=!1,this.hasWaitingBids=!1,this.videoCount=0,this.isFirstVideoContentAdRequest=!0,this.isFraudDetected=!1,this.refreshInterval=null,this.totalImpressionCallCount=0,this.totalImpressionCount=0,this.videoImpressionCount=0,Ty.info("Module initialization"),window.slmpbjs=window.slmpbjs||{adUnits:[]},this.adUnitConfig=window.slmpbjs.adUnits.find((e=>e.id===this.adUnitId)),this.config=this.getConfig(null===(n=null===(i=this.adUnitConfig)||void 0===i?void 0:i.params)||void 0===n?void 0:n.video),this.config.provider="DAILYMOTION",this.analyticsContext={slmads_id:(null!==(o=null===(r=this.adUnitConfig)||void 0===r?void 0:r.slmadsId)&&void 0!==o?o:0).toString(),format:null!==(s=null===(a=this.config.mode)||void 0===a?void 0:a.toLowerCase())&&void 0!==s?s:"corner",player:"AKCELO"},this.config.skipVideoForPassback)return Ty.info("Skipping video for Passback"),void this.destroy(!0);t&&this.onBidsRequested(),Zv.logEvent("video_init",{data:this.analyticsContext}),null===(d=window.slmadshb.refresh)||void 0===d||d.disableAdUnitRefresh(this.adUnitId),this.loadPlayer((()=>{Ty.info("Player loaded"),this.loadLineItemsMapping();const e=setInterval((()=>{void 0!==window.AkceloPlayer&&(clearInterval(e),this.isLoaded=!0,this.isReadyToRender||this.onReadyToRender())}),100)}))}getConfig(e){const t={debug:M(),autoplay:!0,mode:"CORNER",position:"BOTTOM_RIGHT",allowNoAd:!1,disablePassbackOnClose:!1,skipVideoForPassback:!1,closeButtonMode:"AFTER_DELAY",closeButtonPosition:"TOP_RIGHT",closeButtonPositionMode:"OUTSIDE",closeButtonDelay:30,closeButtonPlayerDisposalMode:"INSTANT",visibilityProtectionEnabled:!1,fullscreen:!0,allowAdsWhilePlayingContent:!0,disabledGoogleTagKeys:[],dailymotion:{allowBids:!0,allowBidsAtFirstcall:!0,allowControlsDuringAd:!1,allowMultipleVideos:!0,playerId:"PIP"===(null==e?void 0:e.mode)?"xfiuc":"xdfdz",syndicationKey:"123503",refresh:{enabled:!0,capping:5}}};let i=t;return e&&(i=q(t,e)),i}getBids(){const e=[],t=window.slmpbjs.getBidResponsesForAdUnitCode(this.adUnitId);return t.bids&&t.bids.forEach((t=>{t.cpm&&t.adId&&t.cpm>0&&"renderer"!==t.status&&e.push(t)})),[...new Set([...this.bids,...e.sort(((e,t)=>t.cpm-e.cpm))])]}loadPlayer(e){if(void 0!==window.AkceloPlayer||window.AkceloPlayerLoading)e();else{const t=document.createElement("script");t.src="//ads.slmads.com/akcelo-player.js",t.onload=e,document.head.appendChild(t),window.AkceloPlayerLoading=!0}}loadLineItemsMapping(){var e,t;fetch(`//ads.sportslocalmedia.com/mapping/${(null!==(t=null===(e=this.adUnitConfig)||void 0===e?void 0:e.adUnitPath)&&void 0!==t?t:"/4490027/Akcelo_Video").split("/")[1].split(",")[0]}.json`).then((e=>{e.text().then((e=>{this.lineItemMapping=JSON.parse(e)}))})).catch((e=>{Ty.error("Failed to fetch line items mapping",e)}))}onReadyToRender(){var e,t,i,n,r,o,a,s;if(!this.isLoaded||!this.isFirstBidsRequested)return;if(this.isReadyToRender=!0,Ty.info("Rendering player"),!this.config.allowNoAd){const i=document.createElement("style");i.innerText=".v-vlite{opacity: 0;}.v-vlite.visible{opacity: 1;}",null===(t=null===(e=document.getElementById(this.adUnitId))||void 0===e?void 0:e.parentElement)||void 0===t||t.appendChild(i)}this.bids=this.getBids(),this.hasWaitingBids=this.bids.filter((e=>!e.rendered&&!e.used)).length>0;const d=null===(i=document.getElementById(this.adUnitId))||void 0===i?void 0:i.getAttribute("video-id");d&&(this.config.dailymotion.videoId=d);const l=null===(n=document.getElementById(this.adUnitId))||void 0===n?void 0:n.getAttribute("subtitles");if(l&&(this.config.dailymotion.subtitlesLang=l),-1!==[88,103,111,180,594].indexOf(window.slmadshb.setup.params.siteId)&&this.config.dailymotion.playlistId){const e={x7dwbi:{A:"x7tp4z",B:"x7tp53"},x7dprf:{A:"x80r6q",B:"x80r6s"}},t=window.slmadshb.getAdUnitFloorModel(this.adUnitId);if(t){const i="video_cpm_divided_2"===t?"B":"A";this.config.dailymotion.playlistId=e[this.config.dailymotion.playlistId][i]}}if(this.config.dailymotion.customParams=this.getDailymotionCustomParams(this.config.dailymotion.allowBids),(null===(r=this.config.dailymotion.refresh)||void 0===r?void 0:r.adjustBasedOnEngagement)&&window.googletag&&window.googletag.pubads){const e=window.googletag.pubads().getTargeting("page_duration")[0]||null,t=window.googletag.pubads().getTargeting("user_duration")[0]||null,i=e?null===(o=window.slmadshb.setup.params.contextTargeting)||void 0===o?void 0:o.pageVisitDuration[e]:null,n=t?null===(a=window.slmadshb.setup.params.contextTargeting)||void 0===a?void 0:a.userVisitDuration[t]:null;let r=15;i&&n?r=(i+n)/2:i?r=i:n&&(r=n);const d=15,l=Math.min(Math.floor(r/d),null!==(s=this.config.dailymotion.refresh.capping)&&void 0!==s?s:5);if(this.config.dailymotion.refresh.capping=l,Ty.info("Updated capping based on engagement to",l),0===l)return Ty.info("Capping set to 0, skipping to passback, if available"),void this.destroy(!0)}if("AFTER_AD"===this.config.closeButtonPlayerDisposalMode){const e=document.getElementById(this.adUnitId),t=document.createElement("div");t.id=`${this.adUnitId}_outer_container`,t.style.display="flex",t.style.justifyContent="center",t.style.alignItems="center",t.style.background="white",t.style.width="100%",t.style.height=L()?"200px":"250px",document.body.appendChild(t);const i=document.createElement("div");i.id=`${this.adUnitId}_container`,i.style.display="table",t.appendChild(i),e&&i.appendChild(e)}this.player=new window.AkceloPlayer(`#${this.adUnitId}`,this.config,this.onPlayerReady.bind(this))}onPlayerReady(){var e,t,i,n,r,o,a,s,d,l,c,u,p;Zv.logEvent("video_ready",{data:this.analyticsContext}),Zv.logEvent("video_imp_req",{data:Object.assign(Object.assign({},this.analyticsContext),{refresh:this.totalImpressionCallCount.toString()})}),this.totalImpressionCallCount+=1,null===(e=this.player)||void 0===e||e.on("PlayerStart",(()=>{var e;this.config.allowNoAd&&(document.dispatchEvent(new Event("AkceloVideoVisible")),null===(e=this.player)||void 0===e||e.playerInstance.elements.outerContainer.classList.add("visible"))})),null===(t=this.player)||void 0===t||t.on("AdImpression",this.onAdImpression.bind(this)),null===(i=this.player)||void 0===i||i.on("AdStart",(e=>{var t,i;this.isAdPlaying=!0,D("adUnitRendered",(e=>{Ty.info("Ad unit rendered",e)}),{id:this.adUnitId}),null===(t=window.slmadshb.refresh)||void 0===t||t.enableAdUnitRefresh(this.adUnitId,performance.now()),this.config.allowNoAd||(document.dispatchEvent(new Event("AkceloVideoVisible")),null===(i=this.player)||void 0===i||i.playerInstance.elements.outerContainer.classList.add("visible")),!e.detail.isDM&&this.refreshInterval&&clearInterval(this.refreshInterval)})),null===(n=this.player)||void 0===n||n.on("AdEnd",(()=>{var e;this.isAdPlaying=!1,null===(e=this.player)||void 0===e||e.requestAd(this.getDailymotionCustomParams(this.config.dailymotion.allowBids),!0)})),null===(r=this.player)||void 0===r||r.on("AdError",(e=>{var t;this.isAdPlaying=!1,null===(t=window.slmadshb.refresh)||void 0===t||t.enableAdUnitRefresh(this.adUnitId,performance.now()),e.detail.errorCode&&Zv.logEvent("video_error",{data:Object.assign(Object.assign({},this.analyticsContext),{error_code:e.detail.errorCode.toString()})}),!e.detail.isDM&&this.isFraudDetected?this.destroy(!0):e.detail.errorType&&e.detail.errorMessage&&"NO_ADS"===e.detail.errorType&&-1!==e.detail.errorMessage.indexOf("viewing context")&&(Zv.logEvent("video_error",{data:Object.assign(Object.assign({},this.analyticsContext),{error_code:fe})}),this.isFraudDetected=!0)})),null===(o=this.player)||void 0===o||o.on("VideoStart",(e=>{var t,i,n,r,o,a,s;this.videoCount=null!==(i=null===(t=null==e?void 0:e.detail)||void 0===t?void 0:t.videoIndex)&&void 0!==i?i:0;const d=null!==(r=null===(n=this.config.dailymotion.refresh)||void 0===n?void 0:n.capping)&&void 0!==r?r:5;0!==this.totalImpressionCount||this.config.allowNoAd||(null===(o=this.config.dailymotion.refresh)||void 0===o?void 0:o.enabled)&&!(this.videoCount>=d)||1===(null===(a=null==e?void 0:e.detail)||void 0===a?void 0:a.videoIndex)&&this.isFraudDetected?(null===(s=this.config.dailymotion.refresh)||void 0===s?void 0:s.stopOnNoBid)&&0===this.totalImpressionCount&&(Ty.info("Stopping video because of noBid"),this.destroy(!0)):this.destroy(!0)})),null===(a=this.player)||void 0===a||a.on("VideoEnd",(()=>{var e,t;this.isWaiting=!0,this.isFirstVideoContentAdRequest=!0,null===(e=window.slmadshb.refresh)||void 0===e||e.disableAdUnitRefresh(this.adUnitId),this.config.dailymotion.allowMultipleVideos&&(0!==this.videoImpressionCount||this.config.allowNoAd&&"CORNER"!==this.config.mode)?null===(t=this.player)||void 0===t||t.requestAd(this.getDailymotionCustomParams(this.config.dailymotion.allowBids),!0):this.destroy(!0),this.videoImpressionCount=0})),null===(s=this.player)||void 0===s||s.on("VideoPlay",(e=>{var t,i,n,r,o,a,s,d,l,c;this.isWaiting=!1,this.isPaused=!1;const u=null!==(i=null===(t=this.config.dailymotion.refresh)||void 0===t?void 0:t.capping)&&void 0!==i?i:5;!this.config.allowAdsWhilePlayingContent||(null===(n=this.config.dailymotion.refresh)||void 0===n?void 0:n.enabled)&&!((null===(r=null==e?void 0:e.detail)||void 0===r?void 0:r.videoIndex)>=u-1)||1===(null===(o=null==e?void 0:e.detail)||void 0===o?void 0:o.videoIndex)&&this.isFraudDetected||(null===(a=window.slmadshb.refresh)||void 0===a||a.enableAdUnitRefresh(this.adUnitId,performance.now()),this.isFirstVideoContentAdRequest&&(this.requestAd(),this.isFirstVideoContentAdRequest=!1),this.refreshInterval=window.setInterval((()=>{this.requestAd()}),null!==(c=null===(l=null===(d=null===(s=this.adUnitConfig)||void 0===s?void 0:s.params)||void 0===d?void 0:d.refresh)||void 0===l?void 0:l.timeout)&&void 0!==c?c:5e3))})),null===(d=this.player)||void 0===d||d.on("VideoPause",(()=>{var e;this.isPaused=!0,null===(e=window.slmadshb.refresh)||void 0===e||e.enableAdUnitRefresh(this.adUnitId,performance.now())})),null===(l=this.player)||void 0===l||l.on("VideoDestroy",(()=>{this.destroy(!0)})),null===(c=this.player)||void 0===c||c.on("CallPassback",(()=>{this.callPassback()})),null===(u=this.player)||void 0===u||u.on("HeavyAdIntervention",(()=>{Ty.warn("Heavy Ad Intervention occurred, destroying player"),Zv.logEvent("video_error",{data:Object.assign(Object.assign({},this.analyticsContext),{error_code:me})}),this.destroy(!0)})),null===(p=this.player)||void 0===p||p.on("close",(()=>{this.destroy(!this.config.disablePassbackOnClose)})),document.addEventListener("AkceloVideoVisible",(()=>{if(!this.config.visibilityProtectionEnabled)return;const e=document.getElementById(this.adUnitId);if(!e)return;const t=e.closest(".v-vlite .v-container");if(!t)return;let i=!0;setInterval((()=>{const e=t.getBoundingClientRect(),n=[[e.left+10,e.top+10],[e.left+10,(e.top+e.bottom)/2],[e.left+10,e.bottom-10],[(e.left+e.right)/2,e.top+10],[(e.left+e.right)/2,(e.top+e.bottom)/2],[(e.left+e.right)/2,e.bottom-10],[e.right-10,e.top+10],[e.right-10,(e.top+e.bottom)/2],[e.right-10,e.bottom-10]],r=[];n.forEach((e=>{r.push(t.contains(document.elementFromPoint(e[0],e[1])))})),r.filter(Boolean).length<r.length/2?(i&&this.onPlayerVisibilityChange(!1),i=!1):(i||this.onPlayerVisibilityChange(!0),i=!0)}),500)}))}onPlayerVisibilityChange(e){var t,i;this.isDestroyed||(e?null===(t=this.player)||void 0===t||t.playerInstance.play():null===(i=this.player)||void 0===i||i.playerInstance.pause(),Zv.logEvent("alert",{data:{type:"hidden_video",player:"akcelo",visible:e?"true":"false"}}))}onAdImpression(e){var t,i,n,r;const o={adUnit:this.adUnitId,slmadsId:null!==(i=null===(t=this.adUnitConfig)||void 0===t?void 0:t.slmadsId)&&void 0!==i?i:0,refresh:this.totalImpressionCount>0,mediaType:"video",bidderCode:"unknown",cpm:null,floor:0,size:""};if(e)if(e.detail.isDM)if(this.lineItemMapping)if(null!==e.detail.adData.adAdvertiserName||null!==e.detail.adData.adCompanion)o.bidderCode="dm";else if(null!==e.detail.adData.adCreativeAdId&&(Number.isNaN(parseInt(e.detail.adData.adCreativeId||"",10))||e.detail.adData.adCreativeAdId.length>16))o.bidderCode="adx";else if(null!==e.detail.adData.adCreativeAdId&&null!==e.detail.adData.adCreativeId)if(-1!==Object.keys(this.lineItemMapping).indexOf(e.detail.adData.adCreativeAdId)){const t=this.lineItemMapping[e.detail.adData.adCreativeAdId].toFixed(2),i=null!==(n=this.bids.filter((e=>e.adserverTargeting.hb_pb.toString()===t.toString()))[0])&&void 0!==n?n:null;i?(o.bidderCode=i.bidderCode,o.cpm=parseFloat(i.cpm.toString()),o.size=`video-${i.size}`,i.used=!0,this.hasWaitingBids=this.bids.filter((e=>!e.rendered&&!e.used)).length>0):(o.bidderCode="a9",o.cpm=parseFloat(t))}else o.bidderCode="direct";else Zv.logEvent("video_error",{data:Object.assign(Object.assign({},this.analyticsContext),{error_code:ue})});else Zv.logEvent("video_error",{data:Object.assign(Object.assign({},this.analyticsContext),{error_code:pe})});else if(null!==e.detail.adData){const t=e.detail.adData.getAdSystem().toLowerCase(),i=e.detail.adData.getWrapperAdSystems();"amazon"===t?o.bidderCode="a9":-1!==i.indexOf("AdSense/AdX")?o.bidderCode="adx":-1!==i.indexOf("prebid.org wrapper")?null!==this.currentBid&&(o.bidderCode=null===(r=this.currentBid)||void 0===r?void 0:r.bidderCode,o.cpm=parseFloat(this.currentBid.cpm.toString()),o.size=`video-${this.currentBid.size}`,this.currentBid.used=!0,this.currentBid=null,this.hasWaitingBids=this.bids.filter((e=>!e.rendered&&!e.used)).length>0):o.bidderCode="direct"}""!==o.bidderCode&&document.dispatchEvent(new CustomEvent("videoImpression",{detail:o})),Zv.logEvent("video_imp",{data:Object.assign(Object.assign({},this.analyticsContext),{refresh:this.totalImpressionCallCount.toString(),previous_imps:this.totalImpressionCount.toString()})}),this.totalImpressionCount+=1,this.videoImpressionCount+=1}onBidsRequested(){this.isFirstBidsRequested=!0,this.isReadyToRender?(this.bids=this.getBids(),this.hasWaitingBids=this.bids.filter((e=>!e.rendered&&!e.used)).length>0):this.onReadyToRender()}getVastUrl(e=!0){var t,i,n,r,o,a,s,d,l,c,u,p,m,f;this.bids.length>0&&(this.currentBid=null!==(t=this.bids.filter((e=>!e.rendered&&!e.used))[0])&&void 0!==t?t:null);const g={adUnit:this.adUnitConfig,params:{iu:null!==(n=null===(i=this.adUnitConfig)||void 0===i?void 0:i.adUnitPath)&&void 0!==n?n:"/4490027/Akcelo_Video",cust_params:{player:"AKCELO",slmadsId:null===(r=this.adUnitConfig)||void 0===r?void 0:r.slmadsId,slmadshb_adx:(null!==(l=null===(d=null===(s=null===(a=null===(o=this.adUnitConfig)||void 0===o?void 0:o.params)||void 0===a?void 0:a.partners)||void 0===s?void 0:s.adExchange)||void 0===d?void 0:d.enabled)&&void 0!==l&&l).toString(),slmadshb_ob:(null!==(f=null===(m=null===(p=null===(u=null===(c=this.adUnitConfig)||void 0===c?void 0:c.params)||void 0===u?void 0:u.partners)||void 0===p?void 0:p.openBidding)||void 0===m?void 0:m.enabled)&&void 0!==f&&f).toString(),refresh_idx:this.totalImpressionCount},ltd:0,output:"vast",vpa:"auto",vpmute:1,plcmt:2,tfcd:0}};if(e&&(this.currentBid&&(window.slmpbjs.markWinningBidAsUsed({adId:this.currentBid.adId}),g.bid=this.currentBid),window.slmadshb.getA9VideoBid)){const e=window.slmadshb.getA9VideoBid(this.adUnitId);e&&e.amzniid&&window.slmadshb.markA9VideoBidAsUsed(e.amzniid),e&&e.amzniid&&e.amznp&&e.amznbid&&(g.params.cust_params.amzniid=e.amzniid,g.params.cust_params.amznp=e.amznp,g.params.cust_params.amznbid=e.amznbid)}if(window.slmadshb.getAdUnitFloor&&null!==window.slmadshb.getAdUnitFloor(this.adUnitId)&&(g.params.cust_params.slm_floor=window.slmadshb.getAdUnitFloor(this.adUnitId)),window.googletag&&window.googletag.pubads&&window.googletag.pubads().getTargetingKeys){const e=window.googletag.pubads().getTargetingKeys();e&&e.length>0&&e.forEach((e=>{const t=window.googletag.pubads().getTargeting(e);!t||1!==t.length||void 0!==g.params.cust_params[e]||this.config.disabledGoogleTagKeys&&-1!==this.config.disabledGoogleTagKeys.indexOf(e)||(g.params.cust_params[e]=t[0])}))}return window.slmpbjs.adServers.dfp.buildVideoUrl(g)}getDailymotionCustomParams(e=!0){const t=this.getVastUrl(e),i=new URLSearchParams(t.split("?")[1]),n=i.get("cust_params"),r=function(e){const t={},i=("?"===e[0]?e.substring(1):e).split("&");for(let n=0;n<i.length;n+=1){const e=i[n].split("=");t[decodeURIComponent(e[0])]=decodeURIComponent(e[1]||"")}return t}(null!=n?n:"");if(this.adUnitConfig&&!this.adUnitConfig.adUnitPath)return`uuid=${r.hb_cache_id}`;e||Object.keys(r).forEach((e=>{e.startsWith("hb_")&&delete r[e]}));const o=new URLSearchParams(r).toString();return i.set("cust_params",o),i.delete("plcmt"),i.delete("vpmute"),i.delete("vpa"),i.toString()}requestAd(){var e;this.isDestroyed||this.isPaused||this.isWaiting||(Ty.info("Requesting Ad"),null===(e=this.player)||void 0===e||e.requestAd(this.getVastUrl()),Zv.logEvent("video_imp_req",{data:Object.assign(Object.assign({},this.analyticsContext),{refresh:this.totalImpressionCallCount.toString()})}),this.totalImpressionCallCount+=1)}destroy(e=!1){var t,i;Ty.info("Destroying player"),this.refreshInterval&&(clearInterval(this.refreshInterval),this.refreshInterval=null),this.isDestroyed=!0,null===(t=window.slmadshb.refresh)||void 0===t||t.disableAdUnitRefresh(this.adUnitId),Te(this.adUnitId),null===(i=this.player)||void 0===i||i.destroy(),e&&this.callPassback()}}const ky=new G("Standalone Video");class Cy extends Ay{constructor(e){super(e),ky.info("Module initialization")}onBidsRequested(){ky.info("Bids requested",this.adUnitId);const e=be.getAdUnitsConfigById([this.adUnitId]);if(0===e.length)return;const t=e[0];let i;const n=window.slmpbjs.getHighestCpmBids(this.adUnitId);n[0]&&n[0].adId&&"video"===n[0].mediaType&&(i=n[0]);const r=window.slmadshb.getA9VideoBid(t.id);r&&r.amzniid&&window.slmadshb.markA9VideoBidAsUsed(r.amzniid),t.params&&t.params.video&&t.params.video.renderer&&(t.params.video.renderer(this.adUnitId,i,r),ky.info("Calling video renderer",this.adUnitId,i,r))}}var _y=function(e,t){return(_y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function Ey(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))}function Sy(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(d){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(d){s=[6,d],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,d])}}}function By(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Uy="1.9.1",Py="awesomium",Ry="cef",Vy="cefsharp",Ny="coachjs",jy="electron",Oy="fminer",Dy="geb",Fy="nightmarejs",qy="phantomas",My="phantomjs",zy="rhino",Ly="selenium",$y="sequentum",Zy="slimerjs",Wy="webdriverio",Yy="webdriver",Gy="headless_chrome",Hy="unknown",Qy=function(e){function t(i,n){var r=e.call(this,n)||this;return r.state=i,r.name="BotdError",Object.setPrototypeOf(r,t.prototype),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}_y(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}(t,e),t}(Error);function Jy(e){return Ey(this,void 0,void 0,(function(){var t,i,n=this;return Sy(this,(function(r){switch(r.label){case 0:return t={},i=Object.keys(e),[4,Promise.all(i.map((function(i){return Ey(n,void 0,void 0,(function(){var n,r,o,a,s;return Sy(this,(function(d){switch(d.label){case 0:n=e[i],d.label=1;case 1:return d.trys.push([1,3,,4]),r=t,o=i,s={},[4,n()];case 2:return r[o]=(s.value=d.sent(),s.state=0,s),[3,4];case 3:return a=d.sent(),t[i]=a instanceof Qy?{state:a.state,error:"".concat(a.name,": ").concat(a.message)}:{state:-3,error:a instanceof Error?"".concat(a.name,": ").concat(a.message):String(a)},[3,4];case 4:return[2]}}))}))})))];case 1:return r.sent(),[2,t]}}))}))}function Ky(e,t){return-1!==e.indexOf(t)}function Xy(e,t){return-1!==e.indexOf(t)}function ew(e){return Object.getOwnPropertyNames(e)}function tw(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var n=function(t){if("string"==typeof t){if(Ky(e,t))return{value:!0}}else if(null!=function(e,t){if("find"in e)return e.find(t);for(var i=0;i<e.length;i++)if(t(e[i],i,e))return e[i]}(e,(function(e){return t.test(e)})))return{value:!0}},r=0,o=t;r<o.length;r++){var a=n(o[r]);if("object"==typeof a)return a.value}return!1}function iw(e){return e.reduce((function(e,t){return e+(t?1:0)}),0)}var nw={detectAppVersion:function(e){var t=e.appVersion;return 0===t.state&&(/headless/i.test(t.value)?Gy:/electron/i.test(t.value)?jy:/slimerjs/i.test(t.value)?Zy:void 0)},detectDocumentAttributes:function(e){var t=e.documentElementKeys;return 0===t.state&&(tw(t.value,"selenium","webdriver","driver")?Ly:void 0)},detectErrorTrace:function(e){var t=e.errorTrace;return 0===t.state&&(/PhantomJS/i.test(t.value)?My:void 0)},detectEvalLengthInconsistency:function(e){var t=e.evalLength,i=e.browserKind,n=e.browserEngineKind;if(0===t.state&&0===i.state&&0===n.state){var r=t.value;return"unknown"!==n.value&&(37===r&&!Ky(["webkit","gecko"],n.value)||39===r&&!Ky(["internet_explorer"],i.value)||33===r&&!Ky(["chromium"],n.value))}},detectFunctionBind:function(e){if(-2===e.functionBind.state)return My},detectLanguagesLengthInconsistency:function(e){var t=e.languages;if(0===t.state&&0===t.value.length)return Gy},detectNotificationPermissions:function(e){var t=e.notificationPermissions,i=e.browserKind;return 0===i.state&&"chrome"===i.value&&(0===t.state&&t.value?Gy:void 0)},detectPluginsArray:function(e){var t=e.pluginsArray;if(0===t.state&&!t.value)return Gy},detectPluginsLengthInconsistency:function(e){var t=e.pluginsLength,i=e.android,n=e.browserKind,r=e.browserEngineKind;if(0===t.state&&0===i.state&&0===n.state&&0===r.state&&"chrome"===n.value&&!i.value&&"chromium"===r.value)return 0===t.value?Gy:void 0},detectProcess:function(e){var t,i=e.process;return 0===i.state&&("renderer"===i.value.type||null!=(null===(t=i.value.versions)||void 0===t?void 0:t.electron)?jy:void 0)},detectUserAgent:function(e){var t=e.userAgent;return 0===t.state&&(/PhantomJS/i.test(t.value)?My:/Headless/i.test(t.value)?Gy:/Electron/i.test(t.value)?jy:/slimerjs/i.test(t.value)?Zy:void 0)},detectWebDriver:function(e){var t=e.webDriver;if(0===t.state&&t.value)return Gy},detectWebGL:function(e){var t=e.webGL;if(0===t.state){var i=t.value,n=i.vendor,r=i.renderer;if("Brian Paul"==n&&"Mesa OffScreen"==r)return Gy}},detectWindowExternal:function(e){var t=e.windowExternal;return 0===t.state&&(/Sequentum/i.test(t.value)?$y:void 0)},detectWindowSize:function(e){var t=e.windowSize,i=e.documentFocus;if(0!==t.state||0!==i.state)return!1;var n=t.value,r=n.outerWidth,o=n.outerHeight;return i.value&&0===r&&0===o?Gy:void 0},detectMimeTypesConsistent:function(e){var t=e.mimeTypesConsistent;if(0===t.state&&!t.value)return Hy},detectProductSub:function(e){var t=e.productSub,i=e.browserKind;return 0===t.state&&0===i.state&&("chrome"!==i.value&&"safari"!==i.value&&"opera"!==i.value&&"wechat"!==i.value||"20030107"===t.value?void 0:Hy)},detectDistinctiveProperties:function(e){var t=e.distinctiveProps;if(0!==t.state)return!1;var i,n=t.value;for(i in n)if(n[i])return i}};function rw(){var e,t,i=window,n=navigator;return iw(["webkitPersistentStorage"in n,"webkitTemporaryStorage"in n,0===n.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in i,"BatteryManager"in i,"webkitMediaStream"in i,"webkitSpeechGrammar"in i])>=5?"chromium":iw(["ApplePayError"in i,"CSSPrimitiveValue"in i,"Counter"in i,0===n.vendor.indexOf("Apple"),"getStorageUpdates"in n,"WebKitMediaKeys"in i])>=4?"webkit":iw(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in i,"mozInnerScreenX"in i,"CSSMozDocumentRule"in i,"CanvasCaptureMediaStream"in i])>=4?"gecko":"unknown"}var ow={android:function(){var e=rw(),t="chromium"===e,i="gecko"===e;if(!t&&!i)return!1;var n=window;return iw(["onorientationchange"in n,"orientation"in n,t&&!("SharedWorker"in n),i&&/android/i.test(navigator.appVersion)])>=2},browserKind:function(){var e,t=null===(e=navigator.userAgent)||void 0===e?void 0:e.toLowerCase();return Xy(t,"edg/")?"edge":Xy(t,"trident")||Xy(t,"msie")?"internet_explorer":Xy(t,"wechat")?"wechat":Xy(t,"firefox")?"firefox":Xy(t,"opera")||Xy(t,"opr")?"opera":Xy(t,"chrome")?"chrome":Xy(t,"safari")?"safari":"unknown"},browserEngineKind:rw,documentFocus:function(){return void 0!==document.hasFocus&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){var e=navigator.appVersion;if(null==e)throw new Qy(-1,"navigator.appVersion is undefined");return e},rtt:function(){if(void 0===navigator.connection)throw new Qy(-1,"navigator.connection is undefined");if(void 0===navigator.connection.rtt)throw new Qy(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},windowSize:function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},pluginsLength:function(){if(void 0===navigator.plugins)throw new Qy(-1,"navigator.plugins is undefined");if(void 0===navigator.plugins.length)throw new Qy(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(void 0===navigator.plugins)throw new Qy(-1,"navigator.plugins is undefined");if(void 0===window.PluginArray)throw new Qy(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(e){if(e instanceof Error&&null!=e.stack)return e.stack.toString()}throw new Qy(-3,"errorTrace signal unexpected behaviour")},productSub:function(){var e=navigator.productSub;if(void 0===e)throw new Qy(-1,"navigator.productSub is undefined");return e},windowExternal:function(){if(void 0===window.external)throw new Qy(-1,"window.external is undefined");var e=window.external;if("function"!=typeof e.toString)throw new Qy(-2,"window.external.toString is not a function");return e.toString()},mimeTypesConsistent:function(){if(void 0===navigator.mimeTypes)throw new Qy(-1,"navigator.mimeTypes is undefined");for(var e=navigator.mimeTypes,t=Object.getPrototypeOf(e)===MimeTypeArray.prototype,i=0;i<e.length;i++)t&&(t=Object.getPrototypeOf(e[i])===MimeType.prototype);return t},evalLength:function(){return eval.toString().length},webGL:function(){var e=document.createElement("canvas");if("function"!=typeof e.getContext)throw new Qy(-2,"HTMLCanvasElement.getContext is not a function");var t=e.getContext("webgl");if(null===t)throw new Qy(-4,"WebGLRenderingContext is null");if("function"!=typeof t.getParameter)throw new Qy(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:t.getParameter(t.VENDOR),renderer:t.getParameter(t.RENDERER)}},webDriver:function(){if(null==navigator.webdriver)throw new Qy(-1,"navigator.webdriver is undefined");return navigator.webdriver},languages:function(){var e,t=navigator,i=[],n=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==n&&i.push([n]),Array.isArray(t.languages))"chromium"===rw()&&iw([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||i.push(t.languages);else if("string"==typeof t.languages){var r=t.languages;r&&i.push(r.split(","))}return i},notificationPermissions:function(){return Ey(this,void 0,void 0,(function(){var e,t;return Sy(this,(function(i){switch(i.label){case 0:if(void 0===window.Notification)throw new Qy(-1,"window.Notification is undefined");if(void 0===navigator.permissions)throw new Qy(-1,"navigator.permissions is undefined");if("function"!=typeof(e=navigator.permissions).query)throw new Qy(-2,"navigator.permissions.query is not a function");i.label=1;case 1:return i.trys.push([1,3,,4]),[4,e.query({name:"notifications"})];case 2:return t=i.sent(),[2,"denied"===window.Notification.permission&&"prompt"===t.state];case 3:throw i.sent(),new Qy(-3,"notificationPermissions signal unexpected behaviour");case 4:return[2]}}))}))},documentElementKeys:function(){if(void 0===document.documentElement)throw new Qy(-1,"document.documentElement is undefined");var e=document.documentElement;if("function"!=typeof e.getAttributeNames)throw new Qy(-2,"document.documentElement.getAttributeNames is not a function");return e.getAttributeNames()},functionBind:function(){if(void 0===Function.prototype.bind)throw new Qy(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){var e=window.process,t="window.process is";if(void 0===e)throw new Qy(-1,"".concat(t," undefined"));if(e&&"object"!=typeof e)throw new Qy(-3,"".concat(t," not an object"));return e},distinctiveProps:function(){var e,t,i=((e={})[Py]={window:["awesomium"]},e[Ry]={window:["RunPerfTest"]},e[Vy]={window:["CefSharp"]},e[Ny]={window:["emit"]},e[Oy]={window:["fmget_targets"]},e[Dy]={window:["geb"]},e[Fy]={window:["__nightmare","nightmare"]},e[qy]={window:["__phantomas"]},e[My]={window:["callPhantom","_phantom"]},e[zy]={window:["spawn"]},e[Ly]={window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},e[Wy]={window:["wdioElectron"]},e[Yy]={window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},e[Gy]={window:["domAutomation","domAutomationController"]},e),n={},r=ew(window),o=[];for(t in void 0!==window.document&&(o=ew(window.document)),i){var a=i[t];if(void 0!==a){var s=void 0!==a.window&&tw.apply(void 0,By([r],a.window,!1)),d=!(void 0===a.document||!o.length)&&tw.apply(void 0,By([o],a.document,!1));n[t]=s||d}}return n}},aw=function(){function e(){this.components=void 0,this.detections=void 0}return e.prototype.getComponents=function(){return this.components},e.prototype.getDetections=function(){return this.detections},e.prototype.detect=function(){if(void 0===this.components)throw new Error("BotDetector.detect can't be called before BotDetector.collect");var e=function(e,t){var i={},n={bot:!1};for(var r in t){var o=(0,t[r])(e),a={bot:!1};"string"==typeof o?a={bot:!0,botKind:o}:o&&(a={bot:!0,botKind:Hy}),i[r]=a,a.bot&&(n=a)}return[i,n]}(this.components,nw),t=e[0],i=e[1];return this.detections=t,i},e.prototype.collect=function(){return Ey(this,void 0,void 0,(function(){var e;return Sy(this,(function(t){switch(t.label){case 0:return e=this,[4,Jy(ow)];case 1:return e.components=t.sent(),[2,this.components]}}))}))},e}();function sw(e){var t=(void 0===e?{}:e).monitoring,i=void 0===t||t;return Ey(this,void 0,void 0,(function(){var e;return Sy(this,(function(t){switch(t.label){case 0:return i&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/botd/v".concat(Uy,"/npm-monitoring"),!0),e.send()}catch(t){console.error(t)}}(),[4,(e=new aw).collect()];case 1:return t.sent(),[2,e]}}))}))}var dw=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))};const lw=new G("Bot Detector");const cw=new class{constructor(){this.isBot=null,lw.info("Module initialization")}getIsBot(){return dw(this,void 0,void 0,(function*(){if(null!==this.isBot)return this.isBot;return sw({monitoring:!1}).then((e=>e.detect())).then((e=>{this.isBot=e.bot,e.bot&&"coachjs"===e.botKind&&(this.isBot=!1,lw.info("Detection returned bot but kind is 'coachjs', letting it pass")),lw.info("Detection completed",e),Zv.logEvent("alert",{data:{type:"bot_detection",isBot:this.isBot.toString()}})})).catch((e=>{lw.info("Failed to detect bot status",e),this.isBot=!1,Zv.logEvent("alert",{data:{type:"bot_detection",isBot:"unknown",error:e}})})),this.isBot}))}},uw=new G("Akcelo Light Video");class pw extends Ay{constructor(e){var t,i,n;super(e),this.isLoaded=!1,this.isReadyToRender=!1,this.isFirstBidsRequested=!1,this.hasWaitingBids=!1,this.bids=[],this.currentBid=null,this.totalImpressionCallCount=0,this.totalImpressionCount=0,uw.info("Module initialization"),window.slmpbjs=window.slmpbjs||{adUnits:[]},this.adUnitConfig=window.slmpbjs.adUnits.find((e=>e.id===this.adUnitId)),this.config=this.getConfig(null===(i=null===(t=this.adUnitConfig)||void 0===t?void 0:t.params)||void 0===i?void 0:i.video),this.config.provider="HTML",null===(n=window.slmadshb.refresh)||void 0===n||n.disableAdUnitRefresh(this.adUnitId),this.loadPlayer((()=>{uw.info("Player loaded");const e=setInterval((()=>{void 0!==window.AkceloPlayer&&(clearInterval(e),this.isLoaded=!0,this.isReadyToRender||this.onReadyToRender())}),100)}))}getConfig(e){const t={debug:M(),mode:"CORNER",position:"BOTTOM_RIGHT",closeButtonMode:"ONLY_CONTENT",closeButtonPosition:"TOP_RIGHT",closeButtonPositionMode:"OUTSIDE",closeButtonDelay:30,fullscreen:!0,dailymotion:{},lightParams:{allowBids:!0,fallbackToDM:!0,refresh:{enabled:!0,capping:3,skipOnEmpty:!0}}};let i=t;return e&&(i=q(t,e)),i}getBids(){const e=[],t=window.slmpbjs.getBidResponsesForAdUnitCode(this.adUnitId);return t.bids&&t.bids.forEach((t=>{t.cpm&&t.adId&&t.cpm>0&&"renderer"!==t.status&&e.push(t)})),[...new Set([...this.bids,...e.sort(((e,t)=>t.cpm-e.cpm))])]}getVastUrl(e=!0){var t,i,n,r,o,a,s,d,l,c,u,p,m,f;this.bids.length>0&&(this.currentBid=null!==(t=this.bids.filter((e=>!e.rendered&&!e.used))[0])&&void 0!==t?t:null);const g={adUnit:this.adUnitConfig,params:{iu:null!==(n=null===(i=this.adUnitConfig)||void 0===i?void 0:i.adUnitPath)&&void 0!==n?n:"/4490027/Akcelo_Video",cust_params:{player:"AKCELO LIGHT",slmadsId:null===(r=this.adUnitConfig)||void 0===r?void 0:r.slmadsId,slmadshb_adx:(null!==(l=null===(d=null===(s=null===(a=null===(o=this.adUnitConfig)||void 0===o?void 0:o.params)||void 0===a?void 0:a.partners)||void 0===s?void 0:s.adExchange)||void 0===d?void 0:d.enabled)&&void 0!==l&&l).toString(),slmadshb_ob:(null!==(f=null===(m=null===(p=null===(u=null===(c=this.adUnitConfig)||void 0===c?void 0:c.params)||void 0===u?void 0:u.partners)||void 0===p?void 0:p.openBidding)||void 0===m?void 0:m.enabled)&&void 0!==f&&f).toString()},ltd:0,output:"vast",vpa:"auto",vpmute:1,plcmt:2,tfcd:0}};if(e&&(this.currentBid&&(window.slmpbjs.markWinningBidAsUsed({adId:this.currentBid.adId}),g.bid=this.currentBid),window.slmadshb.getA9VideoBid)){const e=window.slmadshb.getA9VideoBid(this.adUnitId);e&&e.amzniid&&window.slmadshb.markA9VideoBidAsUsed(e.amzniid),e&&e.amzniid&&e.amznp&&e.amznbid&&(g.params.cust_params.amzniid=e.amzniid,g.params.cust_params.amznp=e.amznp,g.params.cust_params.amznbid=e.amznbid)}if(window.slmadshb.getAdUnitFloor&&null!==window.slmadshb.getAdUnitFloor(this.adUnitId)&&(g.params.cust_params.slm_floor=window.slmadshb.getAdUnitFloor(this.adUnitId)),window.googletag&&window.googletag.pubads&&window.googletag.pubads().getTargetingKeys){const e=window.googletag.pubads().getTargetingKeys();e&&e.length>0&&e.forEach((e=>{const t=window.googletag.pubads().getTargeting(e);t&&1===t.length&&void 0===g.params.cust_params[e]&&(g.params.cust_params[e]=t[0])}))}return window.slmpbjs.adServers.dfp.buildVideoUrl(g)}loadPlayer(e){if(void 0!==window.AkceloPlayer||window.AkceloPlayerLoading)e();else{const t=document.createElement("script");t.src="//ads.slmads.com/akcelo-player.js",t.onload=e,document.head.appendChild(t),window.AkceloPlayerLoading=!0}}onBidsRequested(){var e;this.isFirstBidsRequested=!0,this.isReadyToRender?(this.bids=this.getBids(),this.hasWaitingBids=this.bids.filter((e=>!e.rendered&&!e.used)).length>0,null===(e=window.slmadshb.refresh)||void 0===e||e.disableAdUnitRefresh(this.adUnitId)):this.onReadyToRender()}onReadyToRender(){var e,t,i;if(!this.isLoaded||!this.isFirstBidsRequested)return;this.isReadyToRender=!0,uw.info("Rendering player");const n=document.createElement("style");n.innerText=".v-vlite{opacity: 0;}.v-vlite.visible{opacity: 1;}",null===(t=null===(e=document.getElementById(this.adUnitId))||void 0===e?void 0:e.parentElement)||void 0===t||t.appendChild(n);const r=document.createElement("video");r.classList.add("akcelo-media"),r.muted=!0,null===(i=document.getElementById(this.adUnitId))||void 0===i||i.appendChild(r),this.bids=this.getBids(),this.hasWaitingBids=this.bids.filter((e=>!e.rendered&&!e.used)).length>0,new window.AkceloPlayer(`#${this.adUnitId} video.akcelo-media`,this.config,this.onPlayerReady.bind(this))}onPlayerReady(e){var t,i,n,r;this.player=e,null===(t=this.player)||void 0===t||t.on("AdSdkReady",(()=>{this.requestAd()})),null===(i=this.player)||void 0===i||i.on("AdStart",(()=>{var e,t;this.totalImpressionCount+=1,null===(e=this.player)||void 0===e||e.playerInstance.elements.outerContainer.classList.add("visible"),null===(t=window.slmadshb.refresh)||void 0===t||t.enableAdUnitRefresh(this.adUnitId,performance.now())})),null===(n=this.player)||void 0===n||n.on("AdEnd",(()=>{var e,t,i;null===(e=window.slmadshb.refresh)||void 0===e||e.disableAdUnitRefresh(this.adUnitId),(null===(i=null===(t=this.config.lightParams)||void 0===t?void 0:t.refresh)||void 0===i?void 0:i.enabled)&&this.config.lightParams.refresh.capping&&this.config.lightParams.refresh.capping>this.totalImpressionCallCount&&(!this.config.lightParams.refresh.skipOnEmpty||this.totalImpressionCallCount===this.totalImpressionCount)?this.requestAd():this.destroy(!0)})),null===(r=this.player)||void 0===r||r.on("AdError",(()=>{var e,t,i;null===(e=window.slmadshb.refresh)||void 0===e||e.disableAdUnitRefresh(this.adUnitId),(null===(i=null===(t=this.config.lightParams)||void 0===t?void 0:t.refresh)||void 0===i?void 0:i.enabled)&&this.config.lightParams.refresh.capping&&this.config.lightParams.refresh.capping>this.totalImpressionCallCount&&(!this.config.lightParams.refresh.skipOnEmpty||this.totalImpressionCallCount===this.totalImpressionCount)?this.requestAd():this.destroy(!0)}))}requestAd(){var e;uw.info("Requesting Ad"),this.totalImpressionCallCount+=1,null===(e=this.player)||void 0===e||e.requestAd(this.getVastUrl())}destroy(e=!1){var t,i,n;uw.info("Destroying player"),document.dispatchEvent(new Event("AkceloLightVideoDestroy")),null===(t=window.slmadshb.refresh)||void 0===t||t.disableAdUnitRefresh(this.adUnitId),null===(i=this.player)||void 0===i||i.destroy(),(null===(n=this.config.lightParams)||void 0===n?void 0:n.fallbackToDM)&&this.adUnitConfig?D("videoFallback",(()=>{}),{htmlId:this.adUnitId,adUnit:this.adUnitConfig}):(Te(this.adUnitId),e&&this.callPassback())}}var mw=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))};const fw=new G("Video");new class{constructor(){this.players=new Map,fw.info("Module initialization"),window.slmadshb.videoInstances=this.players,D.after("addAdUnit",((e,t)=>mw(this,void 0,void 0,(function*(){var e,i,n,r,o,a;if("video"===t.adUnit.type)if("STANDALONE"===(null===(i=null===(e=t.adUnit.params)||void 0===e?void 0:e.video)||void 0===i?void 0:i.type))this.players.set(t.htmlId,new Cy(t.htmlId));else if("AKCELO_LIGHT"===(null===(r=null===(n=t.adUnit.params)||void 0===n?void 0:n.video)||void 0===r?void 0:r.type))this.players.set(t.htmlId,new pw(t.htmlId));else{const e=Ie.getConsentType();let i="accepted"===e||"notrequired"===e;i&&(null===(a=null===(o=t.adUnit.params)||void 0===o?void 0:o.video)||void 0===a?void 0:a.botProtectionEnabled)&&(i=!(yield cw.getIsBot())),i?this.players.set(t.htmlId,new xy(t.htmlId)):(fw.info("Skipping video call because of consent or bot, calling passback if it's available"),Iy.callPassback(t.adUnit))}})))),D.after("adRequest",((e,t)=>{t.ids.forEach((e=>{var t;return null===(t=this.players.get(e))||void 0===t?void 0:t.onBidsRequested()}))})),D.after("videoFallback",((e,t)=>{var i,n,r;fw.info("Video Fallback"),this.players.delete(t.htmlId),"AKCELO_LIGHT"===(null===(n=null===(i=t.adUnit.params)||void 0===i?void 0:i.video)||void 0===n?void 0:n.type)&&(null===(r=t.adUnit.params.video.lightParams)||void 0===r?void 0:r.fallbackToDM)&&this.players.set(t.htmlId,new xy(t.htmlId,!0))}))}};const gw=new G("Skin");new class{constructor(){this.configs=new Map,this.resetSublimeSkin=()=>{var e;"function"==typeof(null===(e=null===window||void 0===window?void 0:window.sublime)||void 0===e?void 0:e.cleanUp)&&window.sublime.cleanUp()},gw.info("Module initialization"),window.slmpbjs=window.slmpbjs||{},window.slmpbjs.que=window.slmpbjs.que||[],D.after("addAdUnit",((e,t)=>{"skin"===t.adUnit.type&&(gw.debug("Creating skin renderer",t.htmlId),this.configs.set(t.htmlId,this.getSkinParams(t.adUnit)))})),D.before("adRequest",(e=>{e.ids.forEach((e=>{this.configs.has(e)&&fy(e,(t=>{if(this.canDecorateAdUnitToSkin(e)&&this.configs.has(e)&&null!==t){const i=this.configs.get(e);this.decorateAdUnitToSkin(e,t,null==i?void 0:i.position),"function"==typeof(null==i?void 0:i.renderCallback)&&(null==i||i.renderCallback.call(null,t,[1e3,780]))}}))}))}))}getSkinParams(e){var t,i;const n={position:"fixed",renderCallback:()=>{console.warn("[Akcelo] Skin renderCallback is not defined")}};return(null===(t=e.params)||void 0===t?void 0:t.skin)?Object.assign(Object.assign({},n),null===(i=e.params)||void 0===i?void 0:i.skin):n}canDecorateAdUnitToSkin(e,t=document){const i=t.querySelector(`#${e}`),n=t.querySelector(`#${e}>div`),r=t.querySelector(`#${e} iframe`);return null!==i&&null!==n&&null!==r}decorateAdUnitToSkin(e,t,i="fixed",n=document){const r=n.querySelector(`#${e}`),o=n.querySelector(`#${e}>div`),a=n.querySelector(`#${e} iframe`);return this.resetSublimeSkin(),!!(a&&r&&o)&&(o.style.display="inline-block",o.style.width=`${t[0]}px`,o.style.height=`${t[1]}px`,o.style.position="relative",r.style.position=i,r.style.overflow="visible",r.style.height=`${t[1]}px`,r.style.width=`${t[0]}px`,r.style.left="50%",r.style.transform="translate(-50%, 0)",a.style.position="absolute",a.style.left="0",a.style.width=`${t[0]}px`,a.style.height=`${t[1]}px`,!0)}};class hw{constructor(e=[]){this.storeAuctions=new Map,this.storeAuctionsDone=new Set,this.storeBids=new Map,this.mappingAdUnitIdAuctionIds=new Map,this.mappingAuctionIdBids=new Map,this.mappingSlmadsIdByAdUnitCode=new Map,e.forEach((e=>{void 0!==e.slmadsId&&void 0!==e.id&&this.mappingSlmadsIdByAdUnitCode.set(e.id,e.slmadsId)}))}setAuction(e){var t,i;this.storeAuctions.set(e.auctionId,e);let n=this.mappingAdUnitIdAuctionIds.get(null===(t=e.adUnit)||void 0===t?void 0:t.htmlId);void 0===n&&(n=[]);void 0===n.find((t=>t===e.auctionId))&&(n.push(e.auctionId),this.mappingAdUnitIdAuctionIds.set(null===(i=e.adUnit)||void 0===i?void 0:i.htmlId,n))}setBid(e){this.storeBids.set(e.bidId,e);const t=this.storeAuctions.get(e.auctionId);if(!t)throw new Error(`auction not found : auctionId=${e.auctionId}`);let i=this.mappingAuctionIdBids.get(t.auctionId);void 0===i&&(i=[]);void 0===i.find((t=>t===e.bidId))&&i.push(e.bidId),this.mappingAuctionIdBids.set(t.auctionId,i)}getAuction(e){const t=this.storeAuctions.get(e);if(void 0===t)throw new Error(`auction not found : auctionId=${e}`);return t}getBid(e){const t=this.storeBids.get(e);if(!t)throw new Error(`bid not found : bidId=${e}`);return t}updateStatusAuctionDone(e){const t=this.getAuction(e);this.storeAuctionsDone.add(t.auctionId)}findAuctionsByAdUnitId(e){const t=[];if(this.mappingAdUnitIdAuctionIds.has(e)){const i=this.mappingAdUnitIdAuctionIds.get(e);null==i||i.forEach((e=>{const i=this.getAuction(e);t.push(i)}))}return t}findBidsByAuctionId(e){return this.mappingAuctionIdBids.has(e)?this.mappingAuctionIdBids.get(e).map((e=>this.getBid(e))):[]}isAuctionNew(e){return!this.storeAuctions.has(e)}isAuctionDone(e){return this.storeAuctions.has(e)&&this.storeAuctionsDone.has(e)}isAuctionRunning(e){return this.storeAuctions.has(e)&&!this.storeAuctionsDone.has(e)}}var vw=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))};const bw=new G("AdsLog Analytics");new class{constructor(){this.siteId=0,this.consentType="unknown",this.bidIdByAdUnitId=new Map,this.adUnitRefreshes=new Map,this.auctionsLogger=new Sv("https://logs2.sportslocalmedia.com/auctions"),this.impressionsLogger=new Sv("https://logs2.sportslocalmedia.com/impressions"),this.bidderCpmAdjustment=((e={customAdjustments:[]})=>{const t={};return e.customAdjustments&&e.customAdjustments.length>0&&e.customAdjustments.forEach((e=>{e.bidder&&"function"==typeof e.adjustment&&(t[e.bidder]={bidCpmAdjustment:e.adjustment})})),t})();Math.random()<.5?bw.info("Module initialization skipped (Sampling)"):D.after("coreInit",(()=>vw(this,void 0,void 0,(function*(){var e;void 0!==(null===(e=be.config.params)||void 0===e?void 0:e.siteId)&&(this.siteId=be.config.params.siteId);(yield Fv())?bw.info("Module initialization skipped (AdBlock detected)"):(bw.info("Module initialization"),this.consentType=Ie.getConsentType(),window.slmadshb.que.push((()=>{this.state=new hw(Array.from(be.adUnits.values())),this.initEventListeners()})))}))))}formatAuction(e){var t,i,n;const r=null===(t=this.state)||void 0===t?void 0:t.findBidsByAuctionId(e);if(0===r.length)return!1;const o=null===(i=this.state)||void 0===i?void 0:i.getAuction(e);if(!o)return!1;const a={abtest:(null===(n=window.slmadshb.abtest)||void 0===n?void 0:n.versionName)||void 0,device:L()?"mobile":"desktop",slmadsId:o.adUnit.slmadsId,bidRequests:[],consent:this.consentType,siteId:this.siteId,sizes:o.sizes,refresh:o.refresh,refreshCount:o.refreshCount,floor:o.floor,floorVersion:o.floorVersion,path:window.location.pathname};return r.forEach((e=>{var t;null===(t=a.bidRequests)||void 0===t||t.push({bidderCode:e.bidderCode,state:e.state,cpm:e.state===oe||ae?e.cpm:void 0,size:e.size,floor:e.floor,floorVersion:e.floorVersion})})),a}formatImpression(e,t,i,n,r){var o,a,s,d;let l;(null===(o=window.slmadshb.abtest)||void 0===o?void 0:o.versionName)&&(l=window.slmadshb.abtest.versionName);const c=null===(a=this.state)||void 0===a?void 0:a.findAuctionsByAdUnitId((null===(s=e.adUnit)||void 0===s?void 0:s.htmlId)||"");if(void 0===c||0===c.length)return bw.warn(`auctions not found, adUnitId=${null===(d=e.adUnit)||void 0===d?void 0:d.htmlId}`),!1;this.adUnitRefreshes.has(e.adUnit.htmlId)||this.adUnitRefreshes.set(e.adUnit.htmlId,{impression:0,viewableImpression:0,videoImpression:0});let u=0;return t.cpm&&(u=parseFloat(t.cpm.toString())),{abtest:l,bidderCode:t.bidderCode,consent:n,cpm:u,device:L()?"mobile":"desktop",eventType:r||"impression",floor:e.floor,floorVersion:e.floorVersion,mediaType:t.mediaType,refresh:c.length>1,refreshCount:Math.max(0,c.length-1),siteId:i,size:t.size,slmadsId:c[0].adUnit.slmadsId,path:window.location.pathname}}bidTimeout(e){var t,i;const n=null===(t=this.state)||void 0===t?void 0:t.getBid(e);n&&(null===(i=this.state)||void 0===i?void 0:i.isAuctionRunning(n.auctionId))&&(n.state=le,this.state.setBid(n))}auctionTimeout(e){var t;if(null===(t=this.state)||void 0===t?void 0:t.isAuctionRunning(e)){const t=this.state.findBidsByAuctionId(e);t.length>0&&t.forEach((e=>{e.state===de&&this.bidTimeout(e.bidId||"")})),this.state.updateStatusAuctionDone(e)}else bw.error("Cannot set auction as timeout because the auction is not running")}auctionDone(e,t=null){var i;if(bw.info("auctionDone",e),null===(i=this.state)||void 0===i?void 0:i.isAuctionRunning(e)){const i=()=>{var t,i,n;const r=null===(t=this.state)||void 0===t?void 0:t.getAuction(e);r&&!(null===(i=this.state)||void 0===i?void 0:i.isAuctionDone(r.auctionId))?(this.auctionTimeout(e),null===(n=this.state)||void 0===n||n.updateStatusAuctionDone(e),this.auctionsLogger.batchThenSend(this.formatAuction(e)),bw.info("Logging auction",e)):bw.warn("Auction already done",e)};"number"==typeof t?setTimeout(i,t):i()}else bw.warn("Auction is not running")}impression(e,t,i){var n,r;const o=null===(n=this.state)||void 0===n?void 0:n.getBid(e);if(o){this.auctionDone(o.auctionId),o.size=t,o.mediaType=i;const e=null===(r=this.state)||void 0===r?void 0:r.getAuction(o.auctionId);if(e){const t=this.formatImpression(e,o,this.siteId,this.consentType);t&&(t.refresh=this.adUnitRefreshes.get(e.adUnit.htmlId).impression>0,this.adUnitRefreshes.get(e.adUnit.htmlId).impression+=1,this.impressionsLogger.batchThenSend(t),bw.info("Logging impression",o))}}else bw.warn("Impression was not logged",o)}getFloorFromAuction(e){var t,i,n,r;let o;bw.debug(`Finding floor version for auction [adunit=${e.adUnitCodes}, auction=${e}]`);for(const a of e.bidderRequests)for(const s of a.bids)if(s.getFloor){const a=Dl[e.auctionId];if((null===(t=null==a?void 0:a.data)||void 0===t?void 0:t.floorProvider)&&(null===(i=null==a?void 0:a.data)||void 0===i?void 0:i.modelVersion)&&(o=`${a.data.floorProvider}_${a.data.modelVersion}`),o)return{floor:null!==(r=null===(n=s.getFloor({currency:"EUR"}))||void 0===n?void 0:n.floor)&&void 0!==r?r:0,version:o}}return{floor:void 0,version:void 0}}onAuctionInit(e){var t;if(!(null===(t=this.state)||void 0===t?void 0:t.isAuctionNew(e.auctionId)))return void bw.error(`Auction already running ${e.auctionId}`);if(0===e.adUnits.length)return void bw.error("Auction without adunit");const i=this.getFloorFromAuction(e);e.adUnitCodes.forEach((t=>{e.adUnits.forEach((n=>{var r,o;if(n.code===t){const a=null===(r=this.state)||void 0===r?void 0:r.findAuctionsByAdUnitId(t).filter((t=>t.prebidAuctionId!==e.auctionId));null===(o=this.state)||void 0===o||o.setAuction({auctionId:e.auctionId+t,prebidAuctionId:e.auctionId,adUnit:{code:n.id,htmlId:n.code,slmadsId:n.slmadsId},sizes:[...$(n.sizes)],refresh:void 0!==a&&a.length>0,refreshCount:void 0!==a?a.length:0,floor:i.floor,floorVersion:i.version})}}))}))}onBidRequest(e){e.bids.forEach((t=>{var i,n;const r=new Set;let o;Object.keys(t.mediaTypes).forEach((e=>{const i=t.mediaTypes[e].sizes;i&&[...$(i,e)].forEach(r.add,r)})),"function"==typeof t.getFloor&&(o=(null===(i=t.getFloor({currency:"EUR"}))||void 0===i?void 0:i.floor)||void 0,o&&-1!==Object.keys(this.bidderCpmAdjustment).indexOf(t.bidder)&&(o=Math.round(this.bidderCpmAdjustment[t.bidder].bidCpmAdjustment(o))));const a={auctionId:e.auctionId+t.adUnitCode,bidId:t.bidId,bidderCode:t.bidder,size:[...r],floor:o,floorVersion:t.floorData&&t.floorData.floorProvider&&t.floorData.modelVersion?`${t.floorData.floorProvider}_${t.floorData.modelVersion}`:void 0};(null===(n=this.state)||void 0===n?void 0:n.isAuctionRunning(a.auctionId||""))&&(a.state=de,this.state.setBid(a))}))}onBidResponse(e){var t,i,n,r,o,a;this.bidIdByAdUnitId.set(e.adId,e.requestId);const s=null===(t=this.state)||void 0===t?void 0:t.getBid(e.requestId);s&&(null===(i=this.state)||void 0===i?void 0:i.isAuctionRunning(s.auctionId))&&(s.state=e.status===ae?ae:oe,s.cpm=e.status===ae&&(null===(n=e.floorData)||void 0===n?void 0:n.cpmAfterAdjustments)||e.cpm,s.size=$(e.size,e.mediaType),s.floor=(null===(r=e.floorData)||void 0===r?void 0:r.floorRuleValue)||void 0,this.state.setBid(s)),s&&(null===(o=this.state)||void 0===o?void 0:o.isAuctionDone(e.auctionId))&&(s.state===le?(s.cpm=e.cpm,s.size=$(e.size,e.mediaType),s.floor=(null===(a=e.floorData)||void 0===a?void 0:a.floorRuleValue)||void 0,this.state.setBid(s)):(bw.warn(`Expected bid state to be equal to ${le}`,e),bw.error("Cannot store bid response because the bid was not considered timeout")))}onBidTimeout(e){e.length>0&&e.forEach((e=>{this.bidTimeout(e.bidId)}))}onNoBid(e){var t,i,n;const r=null===(t=this.state)||void 0===t?void 0:t.getBid(e.bidId);if(!r)return;const o=null===(i=this.state)||void 0===i?void 0:i.getAuction(r.auctionId);if(o&&(null===(n=this.state)||void 0===n?void 0:n.isAuctionRunning(o.auctionId))){if(r.state===oe)return void bw.warn("Cannot store no bid because bid is already bid response");r.state===de&&(r.state=se,this.state.setBid(r))}}onAuctionEnd(e){e.adUnitCodes.forEach((t=>{this.auctionDone(e.auctionId+t,400)}))}onBidWon(e){if(this.bidIdByAdUnitId.has(e.adId)){const t=this.bidIdByAdUnitId.get(e.adId),i=$(e.size,e.mediaType);this.impression(t||"",i,e.mediaType)}}onImpressionViewable(e){var t;const i=null===(t=this.state)||void 0===t?void 0:t.findAuctionsByAdUnitId(e.adUnitCode);if(void 0===i||0===i.length)return;const n=i[i.length-1],r={auctionId:"",bidId:"",size:"",bidderCode:""};e.bid?(r.bidderCode=e.bid.bidderCode,r.cpm=parseFloat((e.bid.cpm||0).toString()),r.size=Array.isArray(e.bid.size)?e.bid.size[0]:e.bid.size,r.floor=e.bid.floor,r.floorVersion=e.bid.floorVersion,r.mediaType=e.bid.mediaType):e.isGoogle&&(r.bidderCode=e.google.bidderCode,r.floor=e.google.floor);const o=this.formatImpression(n,r,this.siteId,this.consentType,"viewable_impression");o&&o.bidderCode?(o.refresh=this.adUnitRefreshes.get(n.adUnit.htmlId).viewableImpression>0,this.adUnitRefreshes.get(n.adUnit.htmlId).viewableImpression+=1,this.impressionsLogger.batchThenSend(o)):bw.error("Can't send viewable impression event, couldn't find a matching bidderCode")}onVideoImpression(e){var t,i;const n=null===(t=this.state)||void 0===t?void 0:t.findAuctionsByAdUnitId(null!==(i=e.adUnit)&&void 0!==i?i:"");if(n&&n.length>0){const t=n[n.length-1],i=this.formatImpression(t,e,this.siteId,this.consentType);i&&(i.refresh=this.adUnitRefreshes.get(t.adUnit.htmlId).videoImpression>0,this.adUnitRefreshes.get(t.adUnit.htmlId).videoImpression+=1,this.impressionsLogger.batchThenSend(i))}}onEvent(e,t){switch(e){case re.AUCTION_INIT:this.onAuctionInit(t);break;case re.BID_REQUESTED:this.onBidRequest(t);break;case re.BID_RESPONSE:this.onBidResponse(t);break;case re.BID_TIMEOUT:this.onBidTimeout(t);break;case re.NO_BID:this.onNoBid(t);break;case re.AUCTION_END:this.onAuctionEnd(t);break;case re.BID_WON:this.onBidWon(t);break;case"impressionViewable":this.onImpressionViewable(t);break;case"videoImpression":this.onVideoImpression(t)}}initEventListeners(){document.addEventListener("impressionViewable",(e=>{try{this.onEvent("impressionViewable",e.detail)}catch(t){bw.error(t)}})),document.addEventListener("videoImpression",(e=>{try{this.onEvent("videoImpression",e.detail)}catch(t){bw.error(t)}})),window.slmpbjs=window.slmpbjs||{},window.slmpbjs.que=window.slmpbjs.que||[],window.slmpbjs.que.push((()=>{window.slmpbjs.getEvents().forEach((e=>{try{this.onEvent(e.eventType,e.args)}catch(t){bw.error(t)}})),Object.values(re).forEach((e=>{window.slmpbjs.onEvent(e,(t=>{try{this.onEvent(e,t)}catch(i){bw.error(i)}}))}))})),window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push((()=>{window.googletag.pubads().addEventListener("slotRenderEnded",(e=>{var t;let i,n;const r=e.slot.getTargeting("slm_floor");if(r.length>0&&(n=parseFloat(r[0])),!e.isEmpty){const r=ly(e.slot.getResponseInformation()),o=e.slot.getSlotElementId(),a=null===(t=this.state)||void 0===t?void 0:t.findAuctionsByAdUnitId(o);if(r&&a&&a.length>0&&(i={bidderCode:r,adUnit:e.slot.getAdUnitPath(),size:"",floor:n,auctionId:"",bidId:""},i.bidderCode&&-1===["prebid","unknown"].indexOf(i.bidderCode)&&a&&a.length>0)){const e=a[a.length-1],t=this.formatImpression(e,i,this.siteId,this.consentType);t&&t.bidderCode&&(t.refresh=this.adUnitRefreshes.get(e.adUnit.htmlId).impression>0,this.adUnitRefreshes.get(e.adUnit.htmlId).impression+=1,bw.info("Logging impression",i),this.impressionsLogger.batchThenSend(t))}}}))}))}};const yw=new G("LazyLoad");new class{constructor(){this.margin=800,yw.info("Mode initialization"),D.before("loadConfig",(e=>{var t,i,n,r,o,a,s,d;L()?(null===(i=null===(t=e.params)||void 0===t?void 0:t.mobileParams)||void 0===i?void 0:i.lazyLoadMargin)&&(this.margin=null===(r=null===(n=e.params)||void 0===n?void 0:n.mobileParams)||void 0===r?void 0:r.lazyLoadMargin):(null===(a=null===(o=e.params)||void 0===o?void 0:o.desktopParams)||void 0===a?void 0:a.lazyLoadMargin)&&(this.margin=null===(d=null===(s=e.params)||void 0===s?void 0:s.desktopParams)||void 0===d?void 0:d.lazyLoadMargin),this.initializeObserver()})),D.after("addAdUnit",((e,t)=>{var i,n,r;if(null===(n=null===(i=t.adUnit.params)||void 0===i?void 0:i.lazyLoad)||void 0===n?void 0:n.enabled){const e=document.getElementById(t.htmlId);e?null===(r=this.observer)||void 0===r||r.observe(e):yw.error("Couldn't observe adUnit, htmlId wasn't found in DOM",t.htmlId)}}))}initializeObserver(){if(this.observer)return;yw.info("Observer initialization");this.observer=new IntersectionObserver((e=>{e.forEach((e=>{var t;if(e.isIntersecting){yw.info("AdUnit is intersecting, allowing to display it",e.target.id),null===(t=this.observer)||void 0===t||t.unobserve(e.target);const i=F.state.adUnits[e.target.id];i&&(i.isReadyToRender=!0,i.isReadyToRequest&&Yv.addAdUnitReadyToRequest(e.target.id))}}))}),{rootMargin:`${this.margin}px 0px ${this.margin}px 0px`,threshold:0})}};const ww=new G("Sticky Banner");new class{constructor(){D.after("addAdUnit",((e,t)=>{var i,n;(null===(n=null===(i=t.adUnit.params)||void 0===i?void 0:i.stickyBanner)||void 0===n?void 0:n.enabled)&&this.render(t.htmlId,this.getParams(t.adUnit.params.stickyBanner))}))}getParams(e){return Object.assign(Object.assign({},{enabled:!0,topMargin:10}),e)}render(e,t){var i;let n=document.getElementById(e);if(!n)return void ww.error("Can't render StickyBanner, adUnit not found on page",e);if(t.target&&(n=document.querySelector(t.target)),!n)return void ww.error("Can't render StickyBanner, target element not found on page",e);void 0!==t.targetWidth&&(n.style.width=`${t.targetWidth}px`);let r=!1,o=n.getBoundingClientRect().top+document.documentElement.scrollTop;const a=t.stopOnOverlap?document.querySelector(t.stopOnOverlap):null;let s=t.scrollMargin?t.scrollMargin.down:null!==(i=t.topMargin)&&void 0!==i?i:0,{scrollY:d}=window;document.addEventListener("scroll",(()=>{var e,i;if(n){const l=n.getBoundingClientRect(),c=a?a.getBoundingClientRect():null,u=s+n.clientHeight;r||(o=n.getBoundingClientRect().top+document.documentElement.scrollTop),t.scrollMargin&&(s=d<window.scrollY?null===(e=t.scrollMargin)||void 0===e?void 0:e.down:null===(i=t.scrollMargin)||void 0===i?void 0:i.up),c&&(l.bottom>=c.top||u>=c.top)?(r=!0,n.style.position="fixed",n.style.top=c.top-u+"px"):window.scrollY>=o-s?(r=!0,n.style.position="fixed",n.style.top=`${s}px`):(r=!1,n.style.position="relative",n.style.top="initial")}d=window.scrollY}))}};class Iw{shouldBreak(e,t){var i,n,r;const o=null===(r=null===(n=null===(i=t.params)||void 0===i?void 0:i.partners)||void 0===n?void 0:n.adExchange)||void 0===r?void 0:r.circuitBreakers;return!!(o&&Object.keys(o).includes(this.getName())&&o[this.getName()])&&this._shouldBreak(e,t)}}class Aw extends Iw{getName(){return"cpm"}_shouldBreak(e,t){const i=window.slmpbjs.getHighestCpmBids(e);return!!(i&&i.length>0&&i[0].cpm)&&i[0].cpm>this.getCPA(t.slmadsId)}getCPA(e){var t,i,n;return null!==(n=null===(i=null===(t=be.config.params.google)||void 0===t?void 0:t.cpas)||void 0===i?void 0:i[e])&&void 0!==n?n:5}}class Tw extends Iw{constructor(){super(),this.adUnitsHasUnfilledImpressions=new Map,window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((()=>{window.googletag.pubads().addEventListener("slotRenderEnded",(e=>{var t;const i=null===(t=e.slot)||void 0===t?void 0:t.getSlotElementId();i&&e.isEmpty&&this.adUnitsHasUnfilledImpressions.set(i,!0)}))}))}getName(){return"noBid"}_shouldBreak(e,t){return!!this.adUnitsHasUnfilledImpressions.get(e)}}class xw extends Iw{getName(){return"visible"}_shouldBreak(e,t){const i=document.getElementById(e);return!!i&&!((e,t=0)=>{const i=e.getBoundingClientRect();return i.top+t>=0&&i.left+t>=0&&i.bottom-t<=(window.innerHeight||document.documentElement.clientHeight)&&i.right-t<=(window.innerWidth||document.documentElement.clientWidth)})(i,0)}}class kw extends Iw{constructor(){super(...arguments),this.BLACKLISTED_COUNTRIES=["AD","AL","AM","AZ","BA","BD","BF","BG","BI","BJ","BL","BO","BW","BY","CD","CF","CG","CI","CL","CM","CN","CO","CR","CV","CY","DJ","DO","DZ","EC","EG","EH","ET","GA","GF","GH","GM","GP","GQ","GR","GT","GW","HN","HT","ID","IL","IQ","IS","JM","JO","KE","KG","KH","KM","KZ","LA","LB","LK","LS","LY","MA","MD","MF","MG","MK","ML","MM","MQ","MR","MT","MU","MW","NA","NC","NE","NG","NI","NP","OM","PA","PF","PK","PM","PS","PY","RE","RU","RW","SC","SN","SO","SR","SV","TD","TG","TN","TT","TZ","UG","UY","VE","VN","XK","YE","YT"]}getName(){return"blacklistedCountry"}_shouldBreak(e,t){var i,n;return!(!(null===(i=window.slmadshb.context)||void 0===i?void 0:i.countryCode)||!(null===(n=this.BLACKLISTED_COUNTRIES)||void 0===n?void 0:n.includes(window.slmadshb.context.countryCode)))}}class Cw extends Iw{getName(){return"blacklistedAdUnit"}_shouldBreak(e,t){var i,n;const r=null===(n=null===(i=be.config.params.google)||void 0===i?void 0:i.cpas)||void 0===n?void 0:n[t.slmadsId];return void 0!==r&&r<=0}}var _w=function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{d(n.next(e))}catch(t){o(t)}}function s(e){try{d(n.throw(e))}catch(t){o(t)}}function d(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}d((n=n.apply(e,t||[])).next())}))};const Ew=new G("Google Circuit Breaker");new class{constructor(){this.circuitBreakers=[new Tw,new Cw,new kw,new xw,new Aw],this.originalGamModes=new Map,Ew.info("Module initialization"),D.before("adRequest",(e=>_w(this,void 0,void 0,(function*(){e.ids.forEach((e=>{var t,i;const n=F.state.adUnits[e],r=null===(t=be.config.adUnits)||void 0===t?void 0:t.find((e=>e.id===(null==n?void 0:n.ref)));if(!r)return;if(this.originalGamModes.has(r.slmadsId)||this.originalGamModes.set(r.slmadsId,null===(i=r.params)||void 0===i?void 0:i.gamMode),r.params=r.params||{},"forbidden"===this.originalGamModes.get(r.slmadsId))return r.params.gamMode="forbidden",void Ew.info(`Google disabled on ${e} [reason=forbidden]`);const o=this.circuitBreakers.find((t=>t.shouldBreak(e,r)));o?(r.params.gamMode="forbidden",Ew.info(`Google disabled on ${e} [reason=${o.getName()}]`)):(r.params.gamMode="allowed",Ew.info(`Google enabled on ${e}`))}))}))))}};const Sw=new G("Carousel Prebid Renderer");new class extends Jb{constructor(){super(...arguments),this.priority=9,this.refreshDuration=6,this.defaultLimit=3,this.slideIntervals=new Map}canRender(e){var t;const i=be.getAdUnitConfigByHtmlId(e);if("carousel"!==(null==i?void 0:i.type)&&"sticky"!==(null==i?void 0:i.type))return!1;if(i.id.includes("Missena"))return!1;const n=this.getBids(e);if(n.length>=2){if(this.isCarouselApplicable(n[0])&&this.getCarouselBids(n).length>=2)return!0;if(!this.isCarouselApplicable(n[0])){return this.getCarouselBids(n).reduce(((e,t)=>{var i;return e+(null!==(i=t.cpm)&&void 0!==i?i:0)}),0)>(null!==(t=n[0].cpm)&&void 0!==t?t:0)}}return!1}renderAds(e){Sw.info("Render Ads",e),e.forEach((e=>{this.renderAd(e)}))}renderAd(e){var t,i,n,r,o,a,s;const d=this.getCarouselBids(this.getBids(e));Sw.info("Rendering Carousel ad",e,d);const l=document.getElementById(e);if(!l)return;const c=be.getAdUnitConfigByHtmlId(e);if(!c)return;window.clearInterval(this.slideIntervals.get(e)),l.innerHTML=Iv.render('<style>\n .akcelo-carousel {\n position: relative;\n width: 100%;\n display: flex;\n align-items: center;\n overflow: hidden;\n }\n\n .akcelo-carousel > .akcelo-carousel-progress {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n width: 100%;\n max-width: 300px;\n height: 4px !important;\n\n padding-left: 1px;\n padding-right: 2px;\n\n display: flex;\n gap: 2px;\n z-index: 1;\n }\n\n .akcelo-carousel > .akcelo-carousel-progress > .akcelo-carousel-progress-cell {\n position: relative;\n border-radius: 3px;\n flex: 1;\n background: #A5A5A5;\n }\n\n .akcelo-carousel > .akcelo-carousel-progress > .akcelo-carousel-progress-cell.active::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n background-color: white;\n animation: progress <%= refreshDuration %>s linear forwards;\n }\n\n .akcelo-carousel > .akcelo-carousel-slides {\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n .akcelo-carousel .akcelo-carousel-slide {\n width: 100%;\n height: 100%;\n transform: translateX(100%);\n position: absolute;\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .akcelo-carousel .akcelo-carousel-slide.active {\n transform: translateX(0%);\n }\n\n @keyframes progress {\n from {\n width: 0;\n }\n to {\n width: 100%;\n }\n }\n</style>\n<div class="akcelo-carousel">\n <div class="akcelo-carousel-progress">\n <% for (let i = 0; i < bidsLength; i++) { %>\n <div class="akcelo-carousel-progress-cell"></div>\n <% } %>\n </div>\n <div class="akcelo-carousel-slides">\n <% for (let i = 0; i < bidsLength; i++) { %>\n <div class="akcelo-carousel-slide"></div>\n <% } %>\n </div>\n</div>',{bidsLength:d.length,refreshDuration:this.refreshDuration}),l.style.height="";const u=l.querySelector(".akcelo-carousel");if(!u)return;null===(t=window.slmadshb.refresh)||void 0===t||t.disableAdUnitRefresh(e),setTimeout((()=>{var t;null===(t=window.slmadshb.refresh)||void 0===t||t.enableAdUnitRefresh(e,performance.now())}),d.length*this.refreshDuration*1e3);const p=null!==(r=null!==(i=this.getMaxWidth(c))&&void 0!==i?i:null===(n=l.parentElement)||void 0===n?void 0:n.offsetWidth)&&void 0!==r?r:300,m=null!==(s=null!==(o=this.getMaxHeight(c))&&void 0!==o?o:null===(a=l.parentElement)||void 0===a?void 0:a.clientHeight)&&void 0!==s?s:270;u.style.minWidth=`${p}px`,u.style.height=`${m}px`;let f=0;this.slideTo(u,f,d,p,m),this.slideIntervals.set(e,window.setInterval((()=>{!1!==window.continueInterval&&(f=(f+1)%d.length,this.slideTo(u,f,d,p,m))}),1e3*this.refreshDuration))}slideTo(e,t,i,n,r){var o;const a=i.length>t?i[t]:null;if(!a)return;const s=e.querySelectorAll(".akcelo-carousel-slide");if(s.length>t&&!s[t].querySelector("iframe")){const e=s[t];e.style.minWidth=`${n}px`;const i={hb_adid:a.adId,pubUrl:window.location.href,hb_pb:a.cpm,hb_format:a.mediaType},[d,l]=this.getBidSize(a,n,r),c=Y(d.toString(),l.toString());if(c.id=a.adId||"",c.style.setProperty("width",`${d}px`,"important"),c.style.setProperty("maxWidth",`${n}px`,"important"),c.setAttribute("sandbox","allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation"),e.appendChild(c),null===(o=c.contentWindow)||void 0===o?void 0:o.document)if("banner"===a.mediaType&&i.hb_adid)window.slmpbjs.renderAd(c.contentWindow.document,i.hb_adid);else{const e=Iv.render(Qb,i);c.contentWindow.document.write(e),c.contentWindow.document.close()}}setTimeout((()=>{s.forEach(((e,i)=>{i===t?e.classList.add("active"):e.classList.remove("active")}));e.querySelectorAll(".akcelo-carousel-progress-cell").forEach(((e,i)=>{i===t?e.classList.add("active"):e.classList.remove("active")}))}),0===t?1:500)}getCarouselBids(e){var t;return e.filter((e=>this.isCarouselApplicable(e))).slice(0,null!==(t=be.config.params.carouselLimit)&&void 0!==t?t:this.defaultLimit)}getBids(e){return Xo.getAllBidsForAdUnitCode(e).filter(hc).sort(((e,t)=>{var i,n;return(null!==(i=t.cpm)&&void 0!==i?i:0)-(null!==(n=e.cpm)&&void 0!==n?n:0)}))}isCarouselApplicable(e){var t;return(null!==(t=e.cpm)&&void 0!==t?t:0)>0&&("banner"===e.mediaType||"native"===e.mediaType)&&!Q.includes(e.bidderCode)&&"richaudience"!==e.bidderCode}getBidSize(e,t,i){var n,r;return"banner"===e.mediaType?[null!==(n=e.width)&&void 0!==n?n:0,null!==(r=e.height)&&void 0!==r?r:0]:[t,i]}getMaxWidth(e){return e.mediaTypes.banner?Math.max(...e.mediaTypes.banner.sizes.map((e=>e[0]))):null}getMaxHeight(e){return e.mediaTypes.banner?Math.max(...e.mediaTypes.banner.sizes.map((e=>e[1]))):null}};fa.before((function(e,t,i){Ca(t)?e.bail({native:Ra(t,Xo.index.getAdUnit(t))}):e(t,i)})),ea.before((function(e,t){Ca(t)?e.bail('(()=>{"use strict";const e="Prebid Native",t={title:"text",data:"value",img:"url",video:"vasttag"};function n(e,t){return new Promise(((n,r)=>{const i=t.createElement("script");i.onload=n,i.onerror=r,i.src=e,t.body.appendChild(i)}))}function r(e,t,r,i,o=n){const{rendererUrl:s,assets:a,ortb:d,adTemplate:c}=t,l=i.document;return s?o(s,l).then((()=>{if("function"!=typeof i.renderAd)throw new Error(`Renderer from \'${s}\' does not define renderAd()`);const e=a||[];return e.ortb=d,i.renderAd(e)})):Promise.resolve(r(c??l.body.innerHTML))}window.render=function({adId:n,native:i},{sendMessage:o},s,a=r){const{head:d,body:c}=s.document,l=()=>o(e,{action:"resizeNativeHeight",height:c.offsetHeight,width:c.offsetWidth}),u=function(e,{assets:n=[],ortb:r,nativeKeys:i={}}){const o=Object.fromEntries(n.map((({key:e,value:t})=>[e,t])));let s=Object.fromEntries(Object.entries(i).flatMap((([t,n])=>{const r=o.hasOwnProperty(t)?o[t]:void 0;return[[`##${n}##`,r],[`${n}:${e}`,r]]})));return r&&Object.assign(s,{"##hb_native_linkurl##":r.link?.url,"##hb_native_privacy##":r.privacy},Object.fromEntries((r.assets||[]).flatMap((e=>{const n=Object.keys(t).find((t=>e[t]));return[n&&[`##hb_native_asset_id_${e.id}##`,e[n][t[n]]],e.link?.url&&[`##hb_native_asset_link_id_${e.id}##`,e.link.url]].filter((e=>e))})))),s=Object.entries(s).concat([[/##hb_native_asset_(link_)?id_\\d+##/g]]),function(e){return s.reduce(((e,[t,n])=>e.replaceAll(t,n||"")),e)}}(n,i);return d&&(d.innerHTML=u(d.innerHTML)),a(n,i,u,s).then((t=>{c.innerHTML=t,"function"==typeof s.postRenderAd&&s.postRenderAd({adId:n,...i}),s.document.querySelectorAll(".pb-click").forEach((t=>{const n=t.getAttribute("hb_native_asset_id");t.addEventListener("click",(()=>o(e,{action:"click",assetId:n})))})),o(e,{action:"fireNativeImpressionTrackers"}),"complete"===s.document.readyState?l():s.onload=l}))}})();'):e(t)}));const Bw=document.createElement("script");Bw.type="text/javascript",Bw.src="https://btloader.com/tag?o=5094764668518400&upapi=true",document.head.appendChild(Bw);const Uw={adUnits:[{adUnitPath:"/4490027,49444164/Ilparking_ATF_728x90",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:15892557}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016119}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[2],zoneId:1280714}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:37584,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=840"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_ATF_728x90",organizationId:"1075",placement:"840",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"840",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"840"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-3/Ilparking_ATF_728x90"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:216215486}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"xgCFur2NNA",supplyType:"site"}}],device:"desktop",id:"Leparking_ATF_728x90",mediaTypes:{banner:{sizes:[[728,90]]}},ortb2Imp:{ext:{data:{divId:"Leparking_ATF_728x90",placement:"840"},gpid:"/4490027,49444164/Ilparking_ATF_728x90#Leparking_ATF_728x90"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0,visible:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[728,90]],slmadsId:840,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparking_BTF_728x90",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:15892567}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016120}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"btf",siteId:258016,sizes:[2],zoneId:1280716}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:56150,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=841"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_BTF_728x90",organizationId:"1075",placement:"841",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"841",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"841"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"BTF-3/Ilparking_BTF_728x90"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:216215486}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"e8kaNOI7L3",supplyType:"site"}}],device:"desktop",id:"Leparking_BTF_728x90",mediaTypes:{banner:{sizes:[[728,90]]}},ortb2Imp:{ext:{data:{divId:"Leparking_BTF_728x90",placement:"841"},gpid:"/4490027,49444164/Ilparking_BTF_728x90#Leparking_BTF_728x90"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[728,90]],slmadsId:841,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparking_ATF_300x600",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:15892569}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016121}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[10],zoneId:1280718}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:57646,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=842"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_ATF_300x600",organizationId:"1075",placement:"842",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"842",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"842"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-3/Ilparking_ATF_300x600"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:785338443}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"sID6u9plMK",supplyType:"site"}}],device:"desktop",id:"Leparking_ATF_300x600",mediaTypes:{banner:{sizes:[[300,600]]}},ortb2Imp:{ext:{data:{divId:"Leparking_ATF_300x600",placement:"842"},gpid:"/4490027,49444164/Ilparking_ATF_300x600#Leparking_ATF_300x600"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[300,600]],slmadsId:842,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparking_BTF_300x600",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:15892572}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016122}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"btf",siteId:258016,sizes:[10],zoneId:1280720}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:62871,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=843"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_BTF_300x600",organizationId:"1075",placement:"843",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"843",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"843"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"BTF-3/Ilparking_BTF_300x600"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:785338443}}],device:"desktop",id:"Leparking_BTF_300x600",mediaTypes:{banner:{sizes:[[300,600]]}},ortb2Imp:{ext:{data:{divId:"Leparking_BTF_300x600",placement:"843"},gpid:"/4490027,49444164/Ilparking_BTF_300x600#Leparking_BTF_300x600"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[300,600]],slmadsId:843,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparking_BTF_970x250",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:15892574}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016123}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"btf",siteId:258016,sizes:[57],zoneId:1280722}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:64469,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=844"}},{bidder:"adagio",params:{adUnitElementId:"Ilparking_BTF_970x250",organizationId:"1075",placement:"844",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"844",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"844"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"BTF-3/Ilparking_BTF_970x250"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:650322472}}],device:"desktop",id:"Ilparking_BTF_970x250",mediaTypes:{banner:{sizes:[[970,250]]}},ortb2Imp:{ext:{data:{divId:"Ilparking_BTF_970x250",placement:"844"},gpid:"/4490027,49444164/Ilparking_BTF_970x250#Ilparking_BTF_970x250"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[970,250]],slmadsId:844,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparkingmobile_ATF_300x250",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:15892575}},{bidder:"appnexus",params:{mediaType:"VIDEO",placementId:16252523,video:{playback_method:["auto_play_sound_off"],skippable:!1}}},{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484014}},{bidder:"ix",params:{mediaType:"BANNER",siteId:855191}},{bidder:"ix",params:{mediaType:"VIDEO",playerSize:[[300,250]],siteId:855192,video:{maxduration:60,mimes:["video/mp4","video/webm","application/javascript"],minduration:0,protocols:[2,3,5,6,7,8]}}},{bidder:"ix",params:{mediaType:"NATIVE",siteId:1058985}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[15,16],zoneId:2501710}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"VIDEO",siteId:258016,video:{context:"outstream",playerSize:[[300,250]]},zoneId:2501710}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:37238,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=845"}},{bidder:"smartadserver",params:{domain:"https://prg.smartadserver.com",formatId:42330,mediaType:"VIDEO",pageId:1090381,siteId:296984,target:"slmadsId=845",video:{protocol:8,startDelay:1}}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:87056,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=845"}},{bidder:"adagio",params:{adUnitElementId:"Leparkingmobile_ATF_300x250",organizationId:"1075",placement:"845",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"845",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"845"},pubId:"64b1d8aba9df31e"}},{bidder:"onetag",params:{ext:{placement_name:"845"},pubId:"64b1d8aba9df31e"}},{bidder:"onetag",params:{ext:{placement_name:"845"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-3/Ilparkingmobile_ATF_300x250"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:432392059}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:313215219}},{bidder:"richaudience",params:{mediaType:"VIDEO",pid:"IyhiTZqnX9",supplyType:"site"}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"W3NS7p888k",supplyType:"site"}}],device:"mobile",id:"Leparkingmobile_ATF_300x250",mediaTypes:{banner:{sizes:[[300,250],[336,280]]},native:{ortb:{assets:[{id:0,img:{hmin:0,type:3,wmin:0},required:1},{id:1,required:1,title:{len:80}},{data:{type:1},id:2,required:0},{data:{type:2},id:3,required:0},{data:{type:11},id:4,required:0},{data:{type:12},id:5,required:0}],context:1,eventtrackers:[{event:1,methods:[1,2]}],plcmttype:2,ver:"1.2"},rendererUrl:"https://ads.sportslocalmedia.com/slm.native.render.336x280.js"},video:{api:[1,2],context:"outstream",h:250,linearity:2,maxbitrate:5e3,maxduration:60,mimes:["video/mp4","video/webm","video/ogg","application/javascript"],minbitrate:200,minduration:1,placement:2,playbackmethod:[2],playerSize:[[300,250]],plcmt:4,pos:1,protocols:[1,2,3,4,5,6,7,8],renderer:Z(),sizes:[[300,250]],skip:0,w:300}},ortb2Imp:{ext:{data:{divId:"Leparkingmobile_ATF_300x250",placement:"845"},gpid:"/4490027,49444164/Ilparkingmobile_ATF_300x250#Leparkingmobile_ATF_300x250"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0,visible:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[300,250],[336,280]],slmadsId:845,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparkingmobile_BTF_300x250",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:15892577}},{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484015}},{bidder:"appnexus",params:{mediaType:"VIDEO",placementId:28484016,video:{playback_method:["auto_play_sound_off"],skippable:!1}}},{bidder:"ix",params:{mediaType:"BANNER",siteId:855206}},{bidder:"ix",params:{mediaType:"VIDEO",playerSize:[[300,250]],siteId:855207,video:{maxduration:60,mimes:["video/mp4","video/webm","application/javascript"],minduration:0,protocols:[2,3,5,6,7,8]}}},{bidder:"ix",params:{mediaType:"NATIVE",siteId:1058986}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"btf",siteId:258016,sizes:[15,16],zoneId:2501712}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"VIDEO",siteId:258016,video:{context:"outstream",playerSize:[[300,250]]},zoneId:2501712}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:37272,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=846"}},{bidder:"smartadserver",params:{domain:"https://prg.smartadserver.com",formatId:42330,mediaType:"VIDEO",pageId:1090381,siteId:296984,target:"slmadsId=846",video:{protocol:8,startDelay:1}}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:114069,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=846"}},{bidder:"adagio",params:{adUnitElementId:"Leparkingmobile_BTF_300x250",organizationId:"1075",placement:"846",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"846",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"846"},pubId:"64b1d8aba9df31e"}},{bidder:"onetag",params:{ext:{placement_name:"846"},pubId:"64b1d8aba9df31e"}},{bidder:"onetag",params:{ext:{placement_name:"846"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"BTF-3/Ilparkingmobile_BTF_300x250"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:432392059}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:313215219}},{bidder:"richaudience",params:{mediaType:"VIDEO",pid:"6n6lXZ0TkV",supplyType:"site"}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"Xn7gSM7B8W",supplyType:"site"}}],device:"mobile",id:"Leparkingmobile_BTF_300x250",mediaTypes:{banner:{sizes:[[300,250],[336,280]]},native:{ortb:{assets:[{id:0,img:{hmin:0,type:3,wmin:0},required:1},{id:1,required:1,title:{len:80}},{data:{type:1},id:2,required:0},{data:{type:2},id:3,required:0},{data:{type:11},id:4,required:0},{data:{type:12},id:5,required:0}],context:1,eventtrackers:[{event:1,methods:[1,2]}],plcmttype:2,ver:"1.2"},rendererUrl:"https://ads.sportslocalmedia.com/slm.native.render.336x280.js"},video:{api:[1,2],context:"outstream",h:250,linearity:2,maxbitrate:5e3,maxduration:60,mimes:["video/mp4","video/webm","video/ogg","application/javascript"],minbitrate:200,minduration:1,placement:2,playbackmethod:[2],playerSize:[[300,250]],plcmt:4,pos:1,protocols:[1,2,3,4,5,6,7,8],renderer:Z(),sizes:[[300,250]],skip:0,w:300}},ortb2Imp:{ext:{data:{divId:"Leparkingmobile_BTF_300x250",placement:"846"},gpid:"/4490027,49444164/Ilparkingmobile_BTF_300x250#Leparkingmobile_BTF_300x250"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[300,250],[336,280]],slmadsId:846,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparkingmobile_ATF_320x480",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28274793}},{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28274794}},{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28274795}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016124}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[10,15,67],zoneId:1972498}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:114909,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=3228"}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:114884,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=3228"}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:114894,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=3228"}},{bidder:"adagio",params:{adUnitElementId:"Leparkingmobile_ITS",organizationId:"1075",placement:"3228",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"3228",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"3228"},pubId:"64b1d8aba9df31e"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:432392059}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:785338443}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:113258744}}],device:"mobile",id:"Leparkingmobile_ITS",mediaTypes:{banner:{sizes:[[300,250],[300,600],[320,480]]}},ortb2Imp:{ext:{data:{divId:"Leparkingmobile_ITS",placement:"3228"},gpid:"/4490027,49444164/Ilparkingmobile_ATF_320x480#Leparkingmobile_ITS"}},params:{capping:{count:1,timeout:null},interstitial:{},partners:{amazon:{enabled:!0}}},sizes:[[300,250],[300,600],[320,480]],slmadsId:3228,type:"its"},{adUnitPath:"/4490027,49444164/Ilparkingmobile_ATF_320x50",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484017}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016125}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[43],zoneId:2009330}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:37601,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=3230"}},{bidder:"adagio",params:{adUnitElementId:"Leparkingmobile_Sticky",organizationId:"1075",placement:"3230",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"3230",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-2/Ilparkingmobile_ATF_320x50"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:804524803}}],device:"mobile",id:"Leparkingmobile_Sticky",mediaTypes:{banner:{sizes:[[320,50]]}},ortb2Imp:{ext:{data:{divId:"Leparkingmobile_Sticky",placement:"3230"},gpid:"/4490027,49444164/Ilparkingmobile_ATF_320x50#Leparkingmobile_Sticky"}},params:{partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0},enabled:!0},amazon:{enabled:!0}},refresh:{enabled:!0,timeout:6e3},sticky:{closeButtonPosition:"left",fullWidth:!0}},sizes:[[320,50]],slmadsId:3230,type:"sticky"},{adUnitPath:"/4490027,49444164/Ilparking_Habillage",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:20924653}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016126}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[68],zoneId:1952094}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:85458,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=3396"}},{bidder:"adagio",params:{adUnitElementId:"Ilparking_Habillage",organizationId:"1075",placement:"3396",site:"Ilparking"}}],device:"desktop",id:"Ilparking_Habillage",mediaTypes:{banner:{sizes:[[1800,1e3]]}},ortb2Imp:{ext:{data:{divId:"Ilparking_Habillage",placement:"3396"},gpid:"/4490027,49444164/Ilparking_Habillage#Ilparking_Habillage"}},params:{partners:{adExchange:{allowAtRefresh:!1,enabled:!0},amazon:{enabled:!0}},passbackCallback:()=>{const e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src","//ads.ayads.co/ajs.php?zid=17026"),document.body.appendChild(e)},skin:{position:"absolute",renderCallback:(e,t)=>{const i=1100/t[0];window.document.body.style.width=t[0]*i+"px",window.document.body.style.margin=(e[1]-t[1])*i+"px auto 0 auto";const n=document.getElementById("Ilparking_Habillage"),r=document.querySelector(".pub-right");n&&(n.style.top="0",n.style.zIndex="-1",n.style.transform=`translate(-50%) scale(${i})`,n.style.transformOrigin="top center"),r&&(r.style.top="638px")}}},sizes:[[1,1],[1800,1e3]],slmadsId:3396,type:"skin"},{bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484018}},{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484019}},{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484020}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016127}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[19,43,117],zoneId:1969754}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:73374,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=3503"}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:37601,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=3503"}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:43100,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=3503"}},{bidder:"adagio",params:{adUnitElementId:"Ilparkingmobile_ATF_320x100",organizationId:"1075",placement:"3503",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"3503",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-2/Ilparkingmobile_ATF_320x100"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:738247586}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:804524803}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:410840444}}],device:"mobile",id:"Ilparkingmobile_ATF_320x100",mediaTypes:{banner:{sizes:[[300,100],[320,50],[320,100]]}},ortb2Imp:{ext:{data:{divId:"Ilparkingmobile_ATF_320x100",placement:"3503"}}},params:{lazyLoad:{enabled:!0}},sizes:[[300,100],[320,50],[320,100]],slmadsId:3503,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparking_ATF_160x600",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484021}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016128}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[9],zoneId:1969756}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:62477,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=3504"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_ATF_160x600",organizationId:"1075",placement:"3504",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"3504",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"3504"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-3/Ilparking_ATF_160x600"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:488475546}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"b58Oo3bL0U",supplyType:"site"}}],device:"desktop",id:"Leparking_ATF_160x600",mediaTypes:{banner:{sizes:[[160,600]]}},ortb2Imp:{ext:{data:{divId:"Leparking_ATF_160x600",placement:"3504"},gpid:"/4490027,49444164/Ilparking_ATF_160x600#Leparking_ATF_160x600"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0},enabled:!0},amazon:{enabled:!0}},refresh:{enabled:!0,timeout:6e3},stickyBanner:{enabled:!0,targetWidth:160,topMargin:100}},sizes:[[160,600]],slmadsId:3504,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparking_ATF_300x250",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484022}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016129}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[15],zoneId:1969758}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:37582,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=3505"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_ATF_300x250",organizationId:"1075",placement:"3505",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"3505",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"3505"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-3/Ilparking_ATF_300x250"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:432392059}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"v2TDWp48hM",supplyType:"site"}}],device:"desktop",id:"Leparking_ATF_300x250",mediaTypes:{banner:{sizes:[[300,250]]}},ortb2Imp:{ext:{data:{divId:"Leparking_ATF_300x250",placement:"3505"},gpid:"/4490027,49444164/Ilparking_ATF_300x250#Leparking_ATF_300x250"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0,visible:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[300,250]],slmadsId:3505,type:"carousel"},{bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484023}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016130}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"btf",siteId:258016,sizes:[15],zoneId:1969760}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:37583,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=3506"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_BTF_300x250",organizationId:"1075",placement:"3506",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"3506",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"BTF-3/Ilparking_BTF_300x250"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:432392059}}],device:"desktop",id:"Leparking_BTF_300x250",mediaTypes:{banner:{sizes:[[300,250]]}},ortb2Imp:{ext:{data:{divId:"Leparking_BTF_300x250",placement:"3506"}}},params:{lazyLoad:{enabled:!0}},sizes:[[300,250]],slmadsId:3506,type:"carousel"},{bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484024}},{bidder:"ix",params:{mediaType:"BANNER",siteId:1016131}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[15],zoneId:1969762}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:70129,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=3507"}},{bidder:"adagio",params:{adUnitElementId:"Ilparkingmobile_ATF2_300x250",organizationId:"1075",placement:"3507",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"3507",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-2/Ilparkingmobile_ATF2_300x250"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:432392059}}],device:"mobile",id:"Ilparkingmobile_ATF2_300x250",mediaTypes:{banner:{sizes:[[300,250]]}},ortb2Imp:{ext:{data:{divId:"Ilparkingmobile_ATF2_300x250",placement:"3507"}}},params:{lazyLoad:{enabled:!0}},sizes:[[300,250]],slmadsId:3507,type:"carousel"},{bids:[{bidder:"appnexus",params:{mediaType:"VIDEO",placementId:28484025,video:{playback_method:["auto_play_sound_off"],skippable:!1}}},{bidder:"ix",params:{mediaType:"VIDEO",playerSize:[[640,480]],siteId:1016132,video:{maxduration:60,mimes:["video/mp4","video/webm","application/javascript"],minduration:0,protocols:[2,3,5,6,7,8]}}},{bidder:"smartadserver",params:{domain:"https://prg.smartadserver.com",formatId:42329,mediaType:"VIDEO",pageId:1090379,siteId:296984,target:"slmadsId=3922",video:{protocol:8,startDelay:1}}},{bidder:"adagio",params:{adUnitElementId:"Ilparking_InstreamVideo",organizationId:"1075",placement:"3922",site:"Ilparking"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:878440487}}],device:"desktop",id:"Ilparking_InstreamVideo",mediaTypes:{video:{context:"instream",placement:1,playbackmethod:[2],playerSize:[[640,480]],plcmt:1,sizes:[[640,480]],skip:0}},ortb2Imp:{ext:{data:{divId:"Ilparking_InstreamVideo",placement:"3922"}}},params:{partners:{adExchange:{allowAtRefresh:!1,enabled:!0},amazon:{enabled:!0,videoSlot:"videoSlot3"}},video:{allowNoAd:!0,closeButtonMode:"AFTER_DELAY",closeButtonPosition:"TOP_RIGHT",dailymotion:{playlistId:"x6ljph",smartAutoplay:!0},mode:"PIP",pipMode:"AUTOSTART",position:"BOTTOM_RIGHT"}},sizes:[[640,480]],slmadsId:3922,type:"video"},{bids:[{bidder:"appnexus",params:{mediaType:"VIDEO",placementId:28484026,video:{playback_method:["auto_play_sound_off"],skippable:!1}}},{bidder:"ix",params:{mediaType:"VIDEO",playerSize:[[640,480]],siteId:1016133,video:{maxduration:60,mimes:["video/mp4","video/webm","application/javascript"],minduration:0,protocols:[2,3,5,6,7,8]}}},{bidder:"smartadserver",params:{domain:"https://prg.smartadserver.com",formatId:42329,mediaType:"VIDEO",pageId:1090381,siteId:296984,target:"slmadsId=3923",video:{protocol:8,startDelay:1}}},{bidder:"adagio",params:{adUnitElementId:"Ilparking_InstreamVideo",organizationId:"1075",placement:"3923",site:"Ilparking"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:714861400}}],device:"mobile",id:"Ilparking_InstreamVideo",mediaTypes:{video:{context:"instream",placement:1,playbackmethod:[2],playerSize:[[640,480]],plcmt:1,sizes:[[640,480]],skip:0}},ortb2Imp:{ext:{data:{divId:"Ilparking_InstreamVideo",placement:"3923"}}},params:{partners:{adExchange:{allowAtRefresh:!1,enabled:!0},amazon:{enabled:!0,videoSlot:"videoSlot4"}},video:{allowNoAd:!0,closeButtonMode:"AFTER_DELAY",closeButtonPosition:"TOP_RIGHT",dailymotion:{playlistId:"x6ljph",smartAutoplay:!0},mode:"PIP",pipMode:"AUTOSTART",position:"BOTTOM_RIGHT"}},sizes:[[640,480]],slmadsId:3923,type:"video"},{adUnitPath:"/4490027,49444164/Ilparkingmobile_BTF2_300x250",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484027}},{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484028}},{bidder:"appnexus",params:{mediaType:"VIDEO",placementId:31396490,video:{playback_method:["auto_play_sound_off"],skippable:!1}}},{bidder:"ix",params:{mediaType:"BANNER",siteId:920819}},{bidder:"ix",params:{mediaType:"NATIVE",siteId:1059339}},{bidder:"ix",params:{mediaType:"VIDEO",playerSize:[[300,250]],siteId:1059340,video:{maxduration:60,mimes:["video/mp4","video/webm","application/javascript"],minduration:0,protocols:[2,3,5,6,7,8]}}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"btf",siteId:258016,sizes:[15,16],zoneId:2667214}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"VIDEO",siteId:258016,video:{context:"outstream",playerSize:[[300,250]]},zoneId:2667214}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:67446,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=5882"}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:87058,mediaType:"BANNER",pageId:1090381,siteId:296984,target:"slmadsId=5882"}},{bidder:"smartadserver",params:{domain:"https://prg.smartadserver.com",formatId:42330,mediaType:"VIDEO",pageId:1090381,siteId:296984,target:"slmadsId=5882",video:{protocol:8,startDelay:1}}},{bidder:"adagio",params:{adUnitElementId:"Leparkingmobile_BTF2_300x250",organizationId:"1075",placement:"5882",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"5882",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"5882"},pubId:"64b1d8aba9df31e"}},{bidder:"onetag",params:{ext:{placement_name:"5882"},pubId:"64b1d8aba9df31e"}},{bidder:"onetag",params:{ext:{placement_name:"5882"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"BTF-2/Ilparkingmobile_BTF2_300x250"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:432392059}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:313215219}},{bidder:"richaudience",params:{mediaType:"VIDEO",pid:"CDyEC1dHGT",supplyType:"site"}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"8vsedW0F84",supplyType:"site"}}],device:"mobile",id:"Leparkingmobile_BTF2_300x250",mediaTypes:{banner:{sizes:[[300,250],[336,280]]},native:{ortb:{assets:[{id:0,img:{hmin:0,type:3,wmin:0},required:1},{id:1,required:1,title:{len:80}},{data:{type:1},id:2,required:0},{data:{type:2},id:3,required:0},{data:{type:11},id:4,required:0},{data:{type:12},id:5,required:0}],context:1,eventtrackers:[{event:1,methods:[1,2]}],plcmttype:2,ver:"1.2"},rendererUrl:"https://ads.sportslocalmedia.com/slm.native.render.336x280.js"},video:{api:[1,2],context:"outstream",h:250,linearity:2,maxbitrate:5e3,maxduration:60,mimes:["video/mp4","video/webm","video/ogg","application/javascript"],minbitrate:200,minduration:1,placement:2,playbackmethod:[2],playerSize:[[300,250]],plcmt:4,pos:1,protocols:[1,2,3,4,5,6,7,8],renderer:Z(),sizes:[[300,250]],skip:0,w:300}},ortb2Imp:{ext:{data:{divId:"Leparkingmobile_BTF2_300x250",placement:"5882"},gpid:"/4490027,49444164/Ilparkingmobile_BTF2_300x250#Leparkingmobile_BTF2_300x250"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0,visible:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[300,250],[336,280]],slmadsId:5882,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparking_ATF_970x250",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484029}},{bidder:"ix",params:{mediaType:"BANNER",siteId:920821}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[57],zoneId:2667216}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:57645,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=5883"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_ATF_970x250",organizationId:"1075",placement:"5883",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"5883",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"5883"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-3/Ilparking_ATF_970x250"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:650322472}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"4f9R4kFWSP",supplyType:"site"}}],device:"desktop",id:"Leparking_ATF_970x250",mediaTypes:{banner:{sizes:[[970,250]]}},ortb2Imp:{ext:{data:{divId:"Leparking_ATF_970x250",placement:"5883"},gpid:"/4490027,49444164/Ilparking_ATF_970x250#Leparking_ATF_970x250"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0,visible:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[970,250]],slmadsId:5883,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparking_BTF2_728x90",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28484030}},{bidder:"ix",params:{mediaType:"BANNER",siteId:920822}},{bidder:"ix",params:{mediaType:"NATIVE",siteId:1059341}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"btf",siteId:258016,sizes:[2],zoneId:2667218}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:70488,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=5884"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_BTF2_728x90",organizationId:"1075",placement:"5884",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"5884",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"5884"},pubId:"64b1d8aba9df31e"}},{bidder:"onetag",params:{ext:{placement_name:"5884"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"BTF-3/Ilparking_BTF2_728x90"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:216215486}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"RffNJvjtd3",supplyType:"site"}}],device:"desktop",id:"Leparking_BTF2_728x90",mediaTypes:{banner:{sizes:[[728,90]]},native:{ortb:{assets:[{id:0,img:{hmin:0,type:3,wmin:0},required:1},{id:1,required:1,title:{len:80}},{data:{type:1},id:2,required:0},{data:{type:2},id:3,required:1},{data:{type:11},id:4,required:0},{data:{type:12},id:5,required:0}],context:1,eventtrackers:[{event:1,methods:[1,2]}],plcmttype:2,ver:"1.2"},rendererUrl:"https://ads.sportslocalmedia.com/slm.native.render.728x90.js"}},ortb2Imp:{ext:{data:{divId:"Leparking_BTF2_728x90",placement:"5884"},gpid:"/4490027,49444164/Ilparking_BTF2_728x90#Leparking_BTF2_728x90"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0,visible:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[728,90]],slmadsId:5884,type:"carousel"},{adUnitPath:"/4490027,49444164/Ilparking_ATF2_970x250",bids:[{bidder:"appnexus",params:{mediaType:"BANNER",placementId:28500578}},{bidder:"ix",params:{mediaType:"BANNER",siteId:926618}},{bidder:"rubicon",params:{accountId:"9528",mediaType:"BANNER",position:"atf",siteId:258016,sizes:[57],zoneId:2691386}},{bidder:"smartadserver",params:{domain:"https://www3.smartadserver.com",formatId:82305,mediaType:"BANNER",pageId:1090379,siteId:296984,target:"slmadsId=6077"}},{bidder:"adagio",params:{adUnitElementId:"Leparking_ATF2_970x250",organizationId:"1075",placement:"6077",site:"Ilparking"}},{bidder:"amx",params:{adUnitId:"6077",tagId:"YWtjZWxvLXJvbi5pbw"}},{bidder:"onetag",params:{ext:{placement_name:"6077"},pubId:"64b1d8aba9df31e"}},{bidder:"outbrain",params:{publisher:{id:"00e00c9618dc0513ce33e78182853bfd54"},tagid:"ATF-3/Ilparking_ATF2_970x250"}},{bidder:"medianet",params:{cid:"8CUSSC604",crid:650322472}},{bidder:"richaudience",params:{mediaType:"BANNER",pid:"w2q2ReRhJK",supplyType:"site"}}],device:"desktop",id:"Leparking_ATF2_970x250",mediaTypes:{banner:{sizes:[[970,250]]}},ortb2Imp:{ext:{data:{divId:"Leparking_ATF2_970x250",placement:"6077"},gpid:"/4490027,49444164/Ilparking_ATF2_970x250#Leparking_ATF2_970x250"}},params:{lazyLoad:{enabled:!0},partners:{adExchange:{allowAtRefresh:!0,circuitBreakers:{blacklistedAdUnit:!0,blacklistedCountry:!0,cpm:!0,noBid:!0,visible:!0},enabled:!0},amazon:{enabled:!0}}},sizes:[[970,250]],slmadsId:6077,type:"carousel"}],params:{advertisersMapping:{Amazon:4720709659,Google:19252867,Prebid:30840307},allowedDomains:["ilparking.it"],amazon:{config:"rlWenaq6pwDvBvNjYwV2YPNvnac4p3ceVwbtZP45YPNvZJV2qGObplV6VQNhZwxfVPW3pzL0oTZvBvNjYwZ4YPNvMzf0LKL0VwbtZP44APjtVwSuoKI0pGtvBvNjYwxmYPNvZJ11L3yeMlV6VQNhBGxfVPVkrTE4nwDjVwbtZP4lZljtVwL0nGA1olV6VQNhZmVfVPVkozIwAJZjVwbtZP4mAFjtVwR2AmSvoUZvBvNjYwtkYPNvZKq0rJAwMlV6VQNhBQpfVPV1n2y4ZmDvBvNjYwx2YPNvZKu4q3O2nlV6VQRhZGxfVPWcoUc1Zz8vBvNkYwZ4YPNvZGpkZQAlAPV6VQRhAQHfVPWuqJV3L3pvBvNkYwplYPNvZJ40L2c5BPV6VQVhZwpfVPVkAKZkrTb0VwbtZv44BFjtVzMzATx2BPV6VQDhZvjtVzEypTp1LlV6VQHhBPjtVwS2p2u2AKZvBvN2YwR1YPNvpT5anwImVwbtZGLhAFjtVzS6rTt0qlV6VQZ1YwNfVPVkATbmpzV0VwbtZP4jZFjtVz1lqUS0LlV6VQNhZQVfVPVkoJSxpaA3VwbtZP4jZljtVaMhM3VlBPV6VQNhZQLfVPVkqwLjpmSmVwbtZP4jAljtVzgkBQp0VwbtZP4jBPjtVzywZQuiqlV6VQNhZFjtVwSbqJf5o2pvBvNjYwRkYPNvLax5n3pjVwbtZF41AvjtVaEjnzkxplV6VQRhAGtfVPVkqQtmoJEwVwbtZF41BFjtVz81paOkBPV6VQRhAwVfVPVkoz9vpKOmVwbtZF42ZljtVzMuAUObLlV6VQRhAwDfVPW4ZJIjrwDvBvNkYwL2YPNvZKqdrKS5olV6VQRhAwpfVPVkZJt4BQAeVwbtZF42BFjtVzcjrGqfplV6VQRhAljtVwSdBTx4oTZvBvNkYwpkYPNvp2kfA3IiVwbtZF43APjtVwSmAQH4qGtvBvNkYwp1YPNvn3y3MUEmVwbtAP4jBGx5BGxfVPWmpJjjnzfvBvN0YwZfVPVkL3OlpmAeVwbtAP40AFjtVwyvMTMlAPV6VQDhAvjtVwSdrTt4ZKZvBvN0Ywp1YPNvnzS5qTb0VwbtAP45YPNvZGAuAJjmAPV6VQHhZQHfVPWhBQEdnlV6VQHhZvjtVzWkpaM1olV6VQHhAPjtVwSdZGOdnmNvBvN1YwH1YPNvoUSxBJ1iVwbtAF43YPNvpKR1rJyiVwbtAF45YPNvozIuqUuwVwbtAv4kYPNvrJu1oQuaVwbtAv4mYPNvZJElBQyuBPV6VQLhAQHfVPWaM2g6L3pvBvN2YwLfVPVkoaS0owV4VwbtAv43AFjtVaSaAzD0qlV6VQLhBFjtVwR0Lz0lBKZvBvN3YwN1YPNvAmO5p2AaVwbtAl4lYPNvMKAhMwV4VwbtAl40YPNvZKOypwqwqlV6VQphAGHfVPWgrzWzqJ8vBvN3YwpfVPVkAaycA2IiVwbtAl44AFjtVwMvraA3ZPV6VQthZPjtVacaqQLlolV6VQxhAFjtVwu4oKc1olV6VQRkYwNfVPWhowSbAUpvBvNkZv41YPNvZ2y1q3pjVwbtZGDhZPjtVaWvMGAaMlV6VQR1YwHfVPW4pQElBJZvBvNkAl41YPNvoUqgZTumVwbtZGthAFjtVzt3MzHlolV6VQVkYwNfVPV1o3p4o3pvBvNlAP4jYPNvBQEuo3AaVwbtZwthZPjtVzWiq2qfLlV6VQZkYwNfVPVkA3c5o2kwVwbtZl4jAFjtVwSfLzL2rJ8vBvNmYwR1YPNvATkeLmu3VwbtZl4lYPNvnUtjqJ04VwbtZl4mYPNvZKSvA3M1olV6VQZhZmHfVPVkZKp3oGL4VwbtZl40AFjtVaDjn2k4LlV6VQZhAFjtVwR5pQqhnlV6VQZhAvjtVwR5oap4qmNvBvNmYwL1YPNvZKxlq2yeMlV6VQZhAmHfVPWwMQu5rJ8vBvNmYwtfVPVkAUxmAJEmVwbtZl44AFjtVwScBJchpwDvBvNmYwx1YPNvA25zqzqaVwbtAP4jYPNvZJpkoKqiqlV6VQDhZQHfVPVkqTDmMwV4VwbtAP4kAFjtVwRkoGtjp2pvBvN0YwV1YPNvZKRkBTSaqlV6VQDhZmHfVPV0LzgkqwDvBvN0YwDfVPWgoKE5ATpvBvN0YwHfVPVkqwRjrzA3VwbtAP41AFjtVwR2oGOjo2pvBvN0YwL1YPNvrUSxpTMeVwbtAP43YPNvAKccLwImVwbtAP44YPNvZJIxpTAyBPV6VQDhBQHfVPVkpaN1qKWeVwbtAP45AFjtVztmZwWaqlV6VQHhZPjtVaIynJg1BPV6VQHhZFjtVwSgL3MiAJZvBvN1YwR1YPNvZGxkMwImZPV6VQHhZwHfVPWjZwuyBQNvBvN1YwZfVPVkrTqzMzqaVwbtAF4mAFjtVwR1pTfkAz8vBvN1YwD1YPNvq3E4ZUumVwbtAF41YPNvBTI3pwywVwbtAF42YPNvZJq0Z3AbplV6VQHhAwHfVPVkqGEeLKL0VwbtAF43AFjtVacfp3ylnlV6VQHhBQHfVPVkomO0BTpjVwbtAF45AFjtVwWvAJ91BPV6VQLhZPjtVwSupTAkZz8vBvN2YwN1YPNvLGW1LzfjVwbtAv4lYPNvMUp2pJgaVwbtZP4jAPjtVwSfAzMyBKZvBvNjYwH5YPNvBJqxBTpjVwbtZP4kZvjtVaV3owu4plV6VQNhZGDfVPVkpKR3BKuwVwbtZP4kAFjtVwp4M2uxplV6VQNhZGLfVPWiraSbqzfvBvNjYwR4YPNvZJ9cLJy2APV6VQNhZGxfVPWaAQAboJ8vBvNjYwVfVPW4qzEcATpvBvNjYwVlYPNvZaAgrwywVwbtZP4lAPjtVwRlLwpjBUpvBvNjYwV1YPNvLz85rzx4VwbtZP4lBPjtVaEznmNjZPV6VQNhZljtVwR1owV0qGtvBvNjYwZmYPNvoaMmATAaVwbtZP4mAPjtVzLjAGDmnlV6VQNhZmLfVPVkqmy6AJg3VwbtZP4mBFjtVwSio2kkBPV6VQNhAPjtVwRkAmugpUZvBvNjYwDkYPNvZJy5nJ43nlV6VQNhAQZfVPWun2WfrwDvBvNjYwD0YPNvp2WfoJq3VwbtZP40AvjtVwSlqGIhM2pvBvNjYwD3YPNvZGq1rKM3MlV6VQNhAQxfVPWkZ292MJ8vBvNjYwHfVPVkpT04q2H4VwbtZP41ZFjtVwSapJk3AJZvBvNjYwHmYPNvrKcvqz5eVwbtZP41APjtVwA3oTAmMlV6VQNhAGLfVPVkZ2L1MUZjVwbtZP41AljtVzAmBTDkLlV6VQNhAvjtVaIdnJEdAPV6VQNhAwVfVPVkqGVlMJyiVwbtZP42ZljtVwRmrwEenzfvBvNjYwL1YPNvoGq1nmSmVwbtZP42AvjtVwSfpJIfZJZvBvNjYwL3YPNvZJA1pzgmMlV6VQNhAwxfVPW2Z2ueLJ8vBvNjYwpfVPWlZJMeVwbtZP43ZvjtVacdLwWzAPV6VQNhAmZfVPVknTSfZaq3VwbtZP43AFjtVwu3MGSiMlV6VQNhAmLfVPVkBTI5Zz8jVwbtZP43AljtVwSkAwtmAKZvBvNjYwp5YPNvAz9bLJ04VwbtZP44YPNvZGI4ZKR4ZPV6VQRhAwRfVPVkMKAipJq3VwbtZF42AFjtVwS5omp0ZPV6VQRhAwtfVPVkLJA2BTAaVwbtZF43ZljtVwugMJquolV6VQRhAmLfVPVkpUp4nUZjVwbtZF43BFjtVwS5paMcZUpvBvNkYwtmYPNvoUu1rJ8jVwbtZF44AvjtVwSwn3W6MJ8vBvNkYwt5YPNvZGD5AQI4LlV6VQRhBGZfVPWxoGp1Az8vBvNkYwx2YPNvZKI3ZGMiZPV6VQRhBGxfVPW6qTShp3pvBvNlYwNjBGx5BFjtVwx2MT4lBPV6VQVhZQDfVPVkpJp3o2ceVwbtZv4jAwx5BGxfVPVkomuurTuwVwbtZv4kZFjtVaufMUqkolV6VQVhZGDfVPVkZwR3MKL0VwbtZv4kAljtVwI1nJyaqlV6VQVhZwDfVPVkMGujnaOwVwbtZv4lBFjtVwRjrQxkLmNvBvNlYwZmYPNvpmSgZGZ0VwbtZv4mBPjtVwR3n3cunJ8vBvNlYwDkYPNvM3xlBKZjVwbtZv40APjtVwAgoUWyolV6VQVhAQtfVPWwnGulozfvBvNlYwHlYPNvZKEmZaD0qlV6VQVhAGHfVPVkoJMxn2umVwbtZv41BFjtVaMmM2clAPV6VQVhAwVfVPVkZQuuZKMeVwbtZv42AFjtVwyfMQR0qlV6VQVhAwtfVPVkpKL3Zz04VwbtZv43ZFjtVaN0pJSeMlV6VQVhAmDfVPVkMaWhLzV0VwbtZv43AljtVwW4oKW5BPV6VQVhBPjtVwRlMmMmrUZvBvNlYwtkYPNvZJWvqUD2olV6VQVhBQHfVPV2BJu3nzfvBvNlYwt4YPNvMwH0q3AaVwbtZv45ZvjtVwS0o2IzAPV6VQVhBGLfVPVknwAcMaqaVwbtZv45BFjtVab0Lz9wMlV6VQZhZFjtVwSwraWxnTZvBvNmYwV1YPNvMaN0Z2fjVwbtZl40YPNvZJ16L3V5LlV6VQZhAGHfVPWjo3ObLmNvBvNmYwpfVPW3Zzp1AUpvBvNmYwxfVPWjqUOuZUpvBvNlYwDlYPNvZKOwBJVjMlV6VQVhAQZfVPVkM2qgLKWeVwbtZv40AFjtVayjL2R5plV6VQVhAQLfVPVkrGq3LwywVwbtZv40AljtVwRmAGImMGtvBvNlYwD5YPNvoTE2paqaVwbtZv41YPNvZJg3MaA3ZPV6VQVhAGRfVPVkLmOmp240VwbtZv41ZljtVaH5nKZ1LlV6VQVhAGDfVPV1AJcdZTpvBvNlYwH2YPNvZGEiZ2fjZPV6VQVhAGpfVPWgq3EdnGtvBvNlYwH4YPNvMGR2nwywVwbtZv42YPNvZJEdpJf4qlV6VQVhAwRfVPVkqzVjn3SiVwbtZv42ZljtVaOkZUpjVwbtZv42APjtVzybZQSxplV6VQVhAwLfVPVknUceZzEwVwbtZv42AljtVwR5Z3tlATpvBvNlYwL5YPNvpzAhZJ1iVwbtZv43YPNvA2EaLGWiVwbtZv43ZvjtVwR2qmOvZwtvBvNlYwpmYPNvZJ9hLJWeZPV6VQVhAmHfVPWaBGAuLzfvBvNlYwp2YPNvrGOxLKEwVwbtZv43BPjtVwS4nKuvp3pvBvNlYwp5YPNvn293p2pjVwbtZv44ZvjtVwSeA2q0MzfvBvNlYwtmYPNvLaD5pmp0VwbtZv44APjtVaEenaAiqlV6VQVhBQLfVPVkqQZmqT9aVwbtZv44AljtVz8jpatkLlV6VQVhBFjtVwShnzW5ZUpvBvNlYwxkYPNvZJIho3umZPV6VQVhBGZfVPW3q2I4LGtvBvNlYwx0YPNvZKqyrKx5plV6VQVhBGHfVPVkZJZ4MzIiVwbtZv45AljtVzcerJI3qlV6VQVhBGtfVPWupTWyomNvBvNmYwNfVPVkMTIkpzfjVwbtZP4jAFjtVwRjZ2R5Az8vBvNjYwN5YPNvZGu5rQyznlV6VQNhZGZfVPVkAaVjnJEwVwbtZP4kAljtVwSzoJ5coGtvBvNjYwVkYPNvZJflnQOkolV6VQNhZwpfVPVkp3x0ZUceVwbtZP4mZFjtVwSynKN1ZmDvBvNjYwZ3YPNvnzM5oGtjVwbtZP40ZvjtVwSuZaMgrJ8vBvNjYwD1YPNvBTAyqKq3VwbtZP40BPjtVzt4ZKL1plV6VQNhAGVfVPVkrJu2q240VwbtZP41AFjtVzkhqzEuBPV6VQNhAGtfVPVkL2SmMGO3VwbtZP42ZFjtVwEan2ceZPV6VQNhAwDfVPWxLmqdp3pvBvNjYwL4YPNvZKIgZJkuBPV6VQNhAmRfVPWbpmRkrTZvBvNjYwp0YPNvpJ5iZwL4VwbtZP43BPjtVwShrJWwZ2fvBvNjYwtmYPNvZGSlA3EbLlV6VQNhBQxfVPVkp2H0qGtjVwbtZP45AFjtVwS2pUc5qTZvBvNkYwNmYPNvLGOwMwqeVwbtZF4jBPjtVwqmMz81LlV6VQRhZGVfVPWaomWiMGtvBvNkYwR2YPNvZGW2AwpjMlV6VQRhZwRfVPWwBQx2BKZvBvNkYwV0YPNvqUcdAaWeVwbtZF4lAvjtVwR0qQAwo3pvBvNkYwV5YPNvMGL2Lax4VwbtZF4mZvjtVwS2MmOxMzfvBvNkYwZ1YPNvZGOxBKIeMlV6VQRhZmpfVPVkpwN2qzV0VwbtZF40ZljtVzqyZmZjMlV6VQRhAQtfVPVkrT54ATumVwbtZF41ZFjtVzg0q2j0qlV6VQRhAGDfVPVkLzq0oUMeVwbtZF41AljtVwMynUN4MlV6VQRhAvjtVz9zpzV0ZPV6VQNhBQVfVPVkMwWiLaIiVwbtZP44AFjtVauvMJWwqlV6VQNhBQLfVPVlBT5mnUZvBvNjYwt4YPNvZJccnUE6APV6VQNhBGRfVPWvATSmpJ8vBvNjYwxlYPNvp3MeqQuaVwbtZP45APjtVwR1ZmW5Zz8vBvNjYwx3YPNvozWmrTg3VwbtZP45BPjtVzIaAKuwZPV6VQRhZPjtVwSxrKO5LzfvBvNkYwNkYPNvqmqzrUEmVwbtZF4jZvjtVwR0pTI5olV6VQRhZQDfVPVkZT45Max4VwbtZF4jAFjtVzy2rzMaMlV6VQRhZQLfVPVknJIdM2pjVwbtZF4jAljtVwR5nKqaAmDvBvNkYwN5YPNvpaWgMaOwVwbtZF4kYPNvZKWuAzqiqlV6VQRhZGRfVPVkA2S6pQE3VwbtZF4kZljtVaOdpT9hAPV6VQRhZGDfVPVkpQV5pT1iVwbtZF4kAFjtVwSaAz1jMUZvBvNkYwR3YPNvrJMwo3pjVwbtZF4kBPjtVwAwoGLjqlV6VQRhZvjtVzjmqmMcolV6VQRhZwVfVPVkn21aA2x4VwbtZF4lZljtVwSvpKD3BJZvBvNkYwV1YPNvZKEcZmqlAPV6VQRhZwpfVPV1LJcvpTZvBvNkYwV4YPNvowS0Lmp0VwbtZF4mYPNvZJ1eMTD2olV6VQRhZmRfVPVkMT9kL3umVwbtZF4mZljtVaM4M2AaZPV6VQRhZmDfVPW1pUEeqlV6VQRhZmLfVPVknGEdqwV4VwbtZF4mBFjtVwykL3E0plV6VQRhAPjtVwR5BUq1qTZvBvNkYwDkYPNvpzugqJWeVwbtZF40ZvjtVwqcMmWlnlV6VQRhAQDfVPWjBKRmBJZvBvNkYwD2YPNvZJ9mLGD4qlV6VQRhAQpfVPVkMaqhAQNjVwbtZF40BFjtVax1MQAcBPV6VQRhAFjtVwZloJghAPV6VQRhAGVfVPVkZzj2oT1iVwbtZF41ZljtVwSeL2qgATpvBvNkYwH1YPNvZGt0rJuuBPV6VQRhAmpfVPWkMT9ap2pvBvNkYwp4YPNvnTxkM2ceVwbtZF44YPNvZJtjoTudAPV6VQRhBQRfVPW6BJWbZJZvBvNkYwtlYPNvAQMerGL4VwbtZF44APjtVwRmpQE6AKZvBvNkYwt1YPNvZJkaMKchnlV6VQRhBQpfVPWxZwq5MwDvBvNkYwt4YPNvqKEbrKq3VwbtZF45YPNvZKIwZKc3MlV6VQRhBGRfVPV0pJf0rUZvBvNkYwxlYPNvoJu1AJMeVwbtZF45APjtVwSgZTH2MwDvBvNkYwx1YPNvZJD0pwL2BPV6VQRhBGpfVPW2MTt1o2pvBvNkYwx4YPNvLKSgqTZvBvNlYwNfVPWcZwOhLwDvBvNlYwNlYPNvZJuen29uolV6VQVhZQV5BGx5YPNvZGuirT8kplV6VQVhZQD5BGx5YPNvpKuhozfjVwbtZv4jAvjtVwM5M3pjZPV6VQVhZQtfVPVkAztjq3ceVwbtZv4jBQx5BGxfVPWipUS3nUZvBvNlYwRfVPWzqGA3BUpvBvNlYwRlYPNvZJMwoat4MlV6VQVhZGZfVPVkrQA4rUR4VwbtZv4kAFjtVwWcozE2nlV6VQVhZGLfVPWeBKuyMTZvBvNlYwR4YPNvZJcmnTMwqlV6VQVhZGxfVPWvMJSyATpvBvNlYwVfVPVkLKq1MwDjVwbtZv4lZFjtVaD1n2IgBPV6VQVhZwVfVPVkp280MzkmVwbtZv4lZljtVwR1MQWdM2pvBvNlYwV1YPNvozkmnKyiVwbtZv4lAvjtVzIkAJyjplV6VQVhZwtfVPW3nTMdA2fvBvNlYwZfVPVkqac6nmp0VwbtZv4mZFjtVwSypQOwMlV6VQVhZmVfVPWdAKbjqGtvBvNlYwZ0YPNvZJyinwS0plV6VQVhZmHfVPWuLJZjoTZvBvNlYwZ2YPNvZGymqmSeqlV6VQVhZmpfVPVkpzf2ZwWiVwbtZv4mBFjtVwtlMwydAPV6VQVhAPjtVwR3MTufnTZvBvN2YwV1YPNvZJgirGA1olV6VQLhZmHfVPV1MQR4ZKZvBvN2YwDfVPWco2ukMwDvBvN2YwHfVPVkpwWipz5eVwbtAv41AFjtVwRloz9brwDvBvN2YwL1YPNvqUZknUR4VwbtAv43YPNvZwR2Z2qaVwbtAv44YPNvZJSzMQEiqlV6VQLhBQHfVPVkrKIxMJEwVwbtAv45AFjtVzD0pUIlnlV6VQphZPjtVaMzrwVjqlV6VQphZFjtVwSbowWeowDvBvN3YwR1YPNvZJMzAKEeqlV6VQphZwHfVPWeL2MupUZvBvN3YwZfVPVkp3SgLax4VwbtAl4mAFjtVwRjraS4o2pvBvN3YwD1YPNvpmDmrTMeVwbtAl41YPNvZ3NmoaV0VwbtAl42YPNvZJZmLJ96nlV6VQphAwHfVPVkqzEcnQZ0VwbtAl43AFjtVwyhqKubLlV6VQphBPjtVaxlqwp1plV6VQphBFjtVwSeBKyjpmNvBvN3Ywx1YPNvo245ZQIwVwbtBP41YPNvMJEiZUceVwbtBF4jYPNvZJ02pTEmVwbtZGNhZPjtVzgfAKu4LlV6VQRjYwHfVPW1ZUZ0rUZvBvNkZF41YPNvBT5hMJq3VwbtZGVhZPjtVzquLmubplV6VQRmYwNfVPW2BKSvAKZvBvNkZl41YPNvnap2rJq3VwbtZGDhAFjtVzWenwE6nlV6VQR1YwNfVPV0n2WyZz8vBvNkAv4jYPNvMzE2nmNjVwbtZGphZPjtVaEaqzIiVwbtZGthZPjtVzR5ZmWzAPV6VQR5YwNfVPW0rJR4oTZvBvNkBF41YPNvAmp3nwqeVwbtZwNhZPjtVwZlZQAeZPV6VQVlYwNfVPWwnT1un2pvBvNlZl4jYPNvMUSeM3AaVwbtZwHhZPjtVwSknmO6nlV6VQV2YwNfVPV5pmt5ZmDvBvNlAl4jYPNvMaS6nKEwVwbtZwxhZPjtVwExMmL0MlV6VQZjYwNfVPV1LwImp2pvBvNmZv4jYPNvMKSlraA3VwbtZmZhZPjtVwMxLwqeVwbtZmDhZPjtVaMsZKH0n2S2APV6VQHhAmHfVPW2K2yinUSzAPV6VQLhAFjtVaMsZJMzAKEeqlV6VQphZwHfVPW2KmMvraA3ZPV6VQthZPjtVaMsZJygZGIbLlV6VQthAmHfVPW2KmSkoaOxn3pvBvN5Ywp1YPNvqy9eoQI4rTZvBvNkZP41YPNvqy91ZUZ0rUZvBvNkZF41YPNvqy9howSbAUpvBvNkZv41YPNvqy8kLGx0MUEmVwbtZGZhZwHfVPW2KmR3Amu1oGtvBvNkAP4lAFjtVaMsLzgdAUceVwbtZGHhZPjtVaMsZJqgqwSgolV6VQR1YwV1YPNvqy80n2WyZz8vBvNkAv4jYPNvqy8knGuupTg3VwbtZGLhAmHfVPW2KmSloaq3oTZvBvNkAl43AFjtVaMsoUqgZTumVwbtZGthAFjtVaMsZJE4nQN1LlV6VQR5YwV1YPNvqy83AmqdA2fvBvNlZP4jYPNvqy93AaEapJ8vBvNlZF41YPNvqy9wnT1un2pvBvNlZl4jYPNvqy9jMGAyqwDvBvNlAP41YPNvqy95qUOfqzfvBvNlAF41YPNvqy85pmt5ZmDvBvNlAl4jYPNvqy9iZz5wLJ8vBvNlBP41YPNvqy80MTp2ATpvBvNmZP4jYPNvqy9vo3qaoTZvBvNmZF4jYPNvqy9uraubAUpvBvNmAF4jYPNvqy8loUWlLwDvBvNmBP4jYPNvqy9xq2u6AQNvBvN0ZF4jYPNvqy8mpaqmowDvBvN0Av4jYPNvqy9zA3xko2pvBvN0BF4jYPNvqy9bA2MyZz8vBvNlZF4jYPNvqy9cZJH2BQNvBvNlZv41YPNvqy9mMay5Zz8vBvNlZl41YPNvqy9xpJgap2pvBvNlAF4jYPNvqy9eZKD4BUpvBvNlAv41YPNvqy84ATSip2pvBvNlBP4jYPNvqy93ATWeMGtvBvNlBF41YPNvqy9ypKW6p3pvBvNmZl4jYPNvqy83Lzg1qTZvBvNmAv4jYPNvqy9xZTAdAKZvBvNmBF4jYPNvqy8kAGOhnGtvBvN0Zv4jYPNvqy84nUO3AJZvBvN0AP4jYPNvqy9vAmA4oJ8vBvN0Al4jYPNvqy8kZzylAKZvBvN1ZP4jYPNvqy8knTSfZaq3VwbtZP43AFjtVaMsrGIxZ2x4VwbtZF41YPNvqy9fMUMlq2pvBvNlYwHfVPW2KmSwraWxnTZvBvNmYwV1YPNvqy83ozM2M2pvBvN0YwNfVPW2KmSdrTt4ZKZvBvN0Ywp1YPNvqy8kZzV3ZQu3VwbtZP4lAFjtVaMsMJp1rTZjVwbtZF4jYPNvqy8kpmD1BUH4VwbtZF43AFjtVaMsZGIxZzcaMlV6VQVhZwHfVPW2K2SjLzIiZPV6VQZhZPjtVaMsZKxlq2yeMlV6VQZhAmHfVPW2K21gqUx0MlV6VQDhAFjtVaMsq3E4ZUumVwbtAF41YPNvqy8kA2EboTuwVwbtAv4lAFjtVaMsMQEjqKWeVwbtAl4jYPNvqy8kqzEcnQZ0VwbtAl43AFjtVaMsZGAgowW0LlV6VQthZwHfVPW2K2IxomO6nlV6VQxhZPjtVaMsrzq0AwWiVwbtBF41YPNvqy8kATgwpTuwVwbtZGNhZwHfVPW2Kmu4oKc1olV6VQRkYwNfVPW2KmS4pQLlomNvBvNkZF43AFjtVaMsBT5hMJq3VwbtZGVhZPjtVaMsZJg4o3VlBPV6VQRlYwp1YPNvqy92BKSvAKZvBvNkZl41YPNvqy8mnKI3qmNvBvNkAP4jYPNvqy9dqmM5M3pvBvNkAP41YPNvqy9lLzHmM2pvBvNkAF41YPNvqy8kZKI5omNjVwbtZGLhZwHfVPW2K2MxqzfjZPV6VQR3YwNfVPW2K3ujAUV5LlV6VQR3YwHfVPW2KmR1qaAmZKZvBvNkBP4lAFjtVaMsLGxmZzL0VwbtZGxhZPjtVaMsZKbjoGH4MlV6VQR5Ywp1YPNvqy9kZ292MJ8vBvNjYwHfVPW2KmSvpKD3BJZvBvNkYwV1YPNvqy9upJ10LlV6VQVhZPjtVaMsZJ9hLJWeZPV6VQVhAmHfVPW2K3Djn2k4LlV6VQZhAFjtVaMsZGSgBQOmMlV6VQDhZwHfVPW2K2tmZwWaqlV6VQHhZPjtVaMsZGxkMwImZPV6VQHhZwHfVPW2KmWvAJ91BPV6VQLhZPjtVaMsZJ5kqT4lBPV6VQLhAmHfVPW2K3Z0Z3uznlV6VQphAFjtVaMso245ZQIwVwbtBP41YPNvqy8kLz9vLKq3VwbtBF4lAFjtVaMsZJ02pTEmVwbtZGNhZPjtVaMsZKOhnUIeMlV6VQRjYwp1YPNvqy8kMUc5q2umVwbtZGRhZwHfVPW2K3c1nzk6APV6VQRlYwV1YPNvqy9aLJZ4nUZvBvNkZl4jYPNvqy8kp2gxoQZ0VwbtZGZhAmHfVPW2KmSgAz14LGtvBvNkAP43AFjtVaMsZKqxpGNmnlV6VQR1Ywp1YPNvqy9jozqdAKZvBvNkAv41YPNvqy8kL29cqUuwVwbtZGphZwHfVPW2K3EaqzIiVwbtZGthZPjtVaMsZJ83ZKcvAPV6VQR4Ywp1YPNvqy90rJR4oTZvBvNkBF41YPNvqy9gpwp5pGtvBvNlZP41YPNvqy8mZwNmnmNvBvNlZv4jYPNvqy81o3p4o3pvBvNlAP4jYPNvqy8kpJfjrzfvBvNlAv4jYPNvqy91qzEyAwtvBvNlAl41YPNvqy9zpKccqTZvBvNlBF4jYPNvqy81LwImp2pvBvNmZv4jYPNvqy82MTV3nlV6VQZ0YwNfVPW2K2qlAmS0plV6VQZ3YwNfVPW2KmMgoUMwqlV6VQDjYwNfVPW2Kmx2o3MfplV6VQDmYwNfVPW2K2qdMGD4qlV6VQD1YwNfVPW2KmE0MQy0plV6VQD4YwO9"},desktopParams:{floors:{auctionDelay:300,endpoint:{url:"https://floor.sportslocalmedia.com/ilparkingv2-desktop.json"}},lazyLoadMargin:800,prebidTimeout:1500},mobileParams:{floors:{auctionDelay:300,endpoint:{url:"https://floor.sportslocalmedia.com/ilparkingv2-mobile.json"}},lazyLoadMargin:800,prebidTimeout:1500},placeholder:{allowIcon:!0,allowWatermark:!0},refresh:{capping:12,enabled:!0,timeout:3e4,visibleTimeout:12e3},schain:{complete:1,nodes:[{asi:"spacefoot.com",hp:1,sid:"903ab5c9-1170-4447-91fd-41fc09a20237"}],ver:"1.0"},siteId:107}};Uw.adUnits.forEach((e=>{"Leparking_ATF_160x600"===e.id&&"desktop"===e.device&&(e.params=e.params||{},e.params.stickyBanner={enabled:!0,topMargin:100})}));const Pw=document.querySelector(".akcelo-wrapper:has(#Leparking_ATF_160x600)");Pw&&(Pw.style.width="160px"),window.slmadshb=window.slmadshb||{},window.slmadshb.que=window.slmadshb.que||[],window.slmadshb.setup=window.slmadshb.setup||Uw,window.slmadshb.onload=()=>ke(Uw);const Rw=new Map([["1800x1000","https://ads.sportslocalmedia.com/demo/1800x1000.jpg"],["970x250","https://ads.sportslocalmedia.com/demo/970x250.jpg"],["970x90","https://ads.sportslocalmedia.com/demo/970x90.jpg"],["728x90","https://ads.sportslocalmedia.com/demo/728x90.jpg"],["300x250","https://ads.sportslocalmedia.com/demo/300x250.jpg"],["300x600","https://ads.sportslocalmedia.com/demo/300x600.jpg"],["160x600","https://ads.sportslocalmedia.com/demo/300x600.jpg"],["320x100","https://ads.sportslocalmedia.com/demo/320x100.jpg"],["320x50","https://ads.sportslocalmedia.com/demo/320x50.jpg"],["320x480","https://ads.sportslocalmedia.com/demo/320x480.jpg"]]),Vw={code:"akcelo-demo",supportedMediaTypes:[Or,Nr,jr],isBidRequestValid:()=>!0,buildRequests(e){const t={bids:[]};return e.forEach((e=>{const i=Object.keys(e.mediaTypes),n=i[Math.floor(Math.random()*i.length)],r={requestId:e.bidderRequestId,bidId:e.bidId,cpm:Math.random()+5,creativeId:Math.random().toString(36).substr(2,5),currency:"EUR",netRevenue:!0,ttl:300,adUnitCode:e.adUnitCode};if(n===Or&&e.mediaTypes&&e.mediaTypes.banner){const{sizes:t}=e.mediaTypes.banner,i=t.sort(((e,t)=>t[0]*t[1]-e[0]*e[1]));for(let e=0;e<i.length;e++)if(Rw.has(`${i[e][0]}x${i[e][1]}`)){r.mediaType=Or,r.width=i[e][0],r.height=i[e][1],r.player_height=i[e][0],r.player_width=i[e][1],1800===r.width&&1e3===r.height?r.ad='<a href="https://akcelo.io" target="_blank"><img style="filter: hue-rotate(140deg)" src="https://ads.sportslocalmedia.com/demo/1800x1000.jpg" width="1800" height="1000" /></a>':r.ad=Iv.render('<style>\n .demo-ad{\n height: <%=height%>px;\n width: <%=width%>px;\n background: linear-gradient(<%=hueRotate%>deg, #034154, #16b49b);\n color: white;\n font-weight: bold ;\n font-family: \'Arial\',serif;\n }\n .vertical-line{\n height: <%= height%>px;\n border-left: solid white 3px;\n margin-left: 15% ;\n position: absolute;\n }\n .horizontal-line{\n width: <%=width%>px;\n border-top: solid white 3px;\n bottom: 15% ;\n position: absolute;\n }\n .vertical-line::before, .vertical-line::after,\n .horizontal-line::before, .horizontal-line::after {\n content: "";\n display: block;\n position: absolute;\n background-color: white;\n border-radius: 50%;\n width: 15px;\n height: 15px;\n }\n .vertical-line::after, .vertical-line::before {\n left: -9px;\n }\n .vertical-line::after{\n bottom: 0;\n }\n .vertical-line::before {\n top: 0;\n }\n .horizontal-line::before, .horizontal-line::after {\n bottom: -6px;\n }\n .horizontal-line::before{\n left: 0;\n }\n .horizontal-line::after {\n bottom: -6px;\n right: 0;\n }\n .size-height {\n transform: rotate(-90deg);\n position: absolute;\n bottom: 30%;\n left: 13%;\n transform-origin: bottom left;\n }\n\n .size-width {\n position: absolute;\n bottom: 16%;\n left: 50%;\n transform: translateX(-50%);\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100px;\n }\n .akcelo-logo{\n height: 40%;\n width: 40%;\n left: 50%;\n transform: translateX(-50%);\n top: 6%;\n position: absolute;\n filter: brightness(0) invert(1);\n }\n</style>\n<a href="https://akcelo.io" target="_blank">\n <div class="demo-ad">\n <img class="akcelo-logo" src="https://ads.sportslocalmedia.com/akcelo_logo.svg" alt="Logo Akcelo">\n <div class="vertical-line"></div>\n <div class="size-height"><%= height%> px</div>\n <div class="horizontal-line"></div>\n <div class="size-width"><%=width%> px</div>\n </div>\n</a>\n',{height:r.height,width:r.width,hueRotate:360*Math.random()});break}}else if(n===Nr&&e.mediaTypes&&e.mediaTypes.native)r.mediaType=Nr,r.width=1,r.height=1,r[Nr]={title:"Akcelo Prebid Native Creative",body:"This is a Prebid Native Creative. There are many like it, but this one is mine.",body2:void 0,cta:void 0,sponsoredBy:"Akcelo.io",privacyLink:void 0,address:void 0,clickUrl:"https://akcelo.io/fr/",displayUrl:void 0,clickTrackers:"https://akcelo.io/fr/",impressionTrackers:["data:,akcelo_fake_impression"],javascriptTrackers:void 0,image:{url:"https://ads.sportslocalmedia.com/demo/native-bg.jpg",height:900,width:1600}};else if(n===jr&&e.mediaTypes&&e.mediaTypes.video)switch(r.mediaType=jr,r.width=e.mediaTypes.video.playerSize[0][0],r.height=e.mediaTypes.video.playerSize[0][1],e.mediaTypes.video.context){case Ur:r.vastUrl="https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_ad_samples&sz=640x480&cust_params=sample_ct%3Dlinear&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=";break;case Br:r.vastXml='<?xml version="1.0" encoding="UTF-8" ?>\n<VAST version="2.0">\n <Ad id="akcelo_video_demo">\n <InLine>\n <AdSystem version="1.0">Akcelo Video</AdSystem>\n <AdTitle><![CDATA[Demo Akcelo Video]]></AdTitle>\n <Creatives>\n <Creative sequence="1">\n <Linear>\n <Duration>00:00:24</Duration>\n <VideoClicks>\n <ClickThrough><![CDATA[https://akcelo.io]]></ClickThrough>\n </VideoClicks>\n <MediaFiles>\n <MediaFile delivery="progressive" width="640" height="480" type="video/mp4" scalable="true" maintainAspectRatio="false">\n <![CDATA[//ads.sportslocalmedia.com/demo/akcelo-video-demo.mp4]]>\n </MediaFile>\n </MediaFiles>\n </Linear>\n </Creative>\n </Creatives>\n </InLine>\n </Ad>\n</VAST>'}t.bids.push(r)})),{method:"GET",url:`data:text/plain;base64,${window.btoa(JSON.stringify(t))}`}},interpretResponse(e){const t=[];return e.body.bids.forEach((e=>{e.requestId=e.bidId,t.push(e)})),t},getUserSyncs:(e,t,i,n)=>[],onTimeout(e){},onBidWon(e){},onSetTargeting(e){},onBidderError({error:e,bidderRequest:t}){}};Ga(Vw);const Nw=Object.freeze(Object.defineProperty({__proto__:null,spec:Vw},Symbol.toStringTag,{value:"Module"}))})); if ( window.slmadshb && window.slmadshb.setup && window.slmadshb.setup.desktop && window.slmadshb.setup.desktop.params ) { window.slmadshb.setup.desktop.params.floors = { data: {"floorProvider": "sam", "floorsSchemaVersion": 2, "currency": "EUR", "modelGroups": [{"modelWeight": 100, "modelVersion": "simple", "schema": {"fields": ["id"]}, "values": {"Leparking_ATF_728x90": 0.01, "Leparking_BTF_728x90": 0.01, "Leparking_ATF_300x600": 0.01, "Ilparking_Habillage": 3.0, "Leparking_ATF_160x600": 0.01, "Leparking_ATF_300x250": 0.01, "Ilparking_InstreamVideo": 4.0, "Leparking_ATF_970x250": 0.01, "Leparking_BTF2_728x90": 0.01}}]} }; } else if ( window.slmadshb && window.slmadshb.setup && window.slmadshb.setup.params && window.slmadshb.setup.params.desktopParams && window.slmadshb.setup.params.desktopParams.floors ) { window.slmadshb.setup.params.desktopParams.floors = { data: {"floorProvider": "sam", "floorsSchemaVersion": 2, "currency": "EUR", "modelGroups": [{"modelWeight": 100, "modelVersion": "simple", "schema": {"fields": ["id"]}, "values": {"Leparking_ATF_728x90": 0.01, "Leparking_BTF_728x90": 0.01, "Leparking_ATF_300x600": 0.01, "Ilparking_Habillage": 3.0, "Leparking_ATF_160x600": 0.01, "Leparking_ATF_300x250": 0.01, "Ilparking_InstreamVideo": 4.0, "Leparking_ATF_970x250": 0.01, "Leparking_BTF2_728x90": 0.01}}]} }; } if ( window.slmadshb && window.slmadshb.setup && window.slmadshb.setup.params ) { window.slmadshb.setup.params.contextTargeting = window.slmadshb.setup.params.contextTargeting || {}; window.slmadshb.setup.params.contextTargeting.pagesInfos = {"/": 14.0}; } if (window.slmadshb) { window.slmadshb.context = window.slmadshb.context || {}; window.slmadshb.context.countryCode = 'IT'; window.slmadshb.context.continentCode = 'EU'; window.slmadshb.context.regionCode = '25'; } if (window.slmadshb && window.slmadshb.setup && window.slmadshb.setup.params) { const adUnits = window.slmadshb.setup.desktop?.adUnits ?? window.slmadshb.setup.adUnits ?? []; window.slmadshb.setup.params.setupOverrides = window.slmadshb.setup.params.setupOverrides || []; const countriesToExclude = {"smartadserver":["MA","SN","CI","DZ","IN","TN","GA","MQ","RS","GP","TR","GR","PL","EG","IE","ID","AE","CG","BF","IL","UA","CO","PK","AL","TG","SA","ML","VN","DK","TH","JP","NZ","CZ","MK","MU","MG","BJ","HU","PH","BG","MC","IQ","HR","LB","KR","AO","DO","AD","MY","RU","SG","HK","SK","SI","HT","UY","CN","GF","TW","RW","KE","NG","BY","GT","LT","GH","QA","CR","CY","MZ","CF","JO","PF","VE","PA","TD","NE","EE","KW","HN","NC","ET","MT","LV","BA","LY","ME","LK","AZ","MR","MD","KH","UG","TZ","UZ","KZ","PY","MF","PR","BI","DJ","TT"]}; Object.keys(countriesToExclude).forEach((bidderName) => { if (countriesToExclude[bidderName].includes("IT")) { window.slmadshb.setup.params.setupOverrides.push(() => { adUnits.forEach((adUnit) => { if (adUnit.bids) { adUnit.bids = adUnit.bids.filter(bid => bid.bidder !== bidderName); } }); }); } }); } try { if ( window.slmadshb && window.slmadshb.setup && window.slmadshb.setup.params ) { window.slmadshb.setup.params = { ...{"google": {"cpas": {"840": 0.081, "842": 0.04, "841": 0.075, "5884": 0.085, "5883": 0.182, "3504": 0.022, "3505": 0.0, "6077": 0.034}}}, ...window.slmadshb.setup.params, }; } } catch (e) { console.error("Could not override setup params", e); } if (window.slmadshb && window.slmadshb.setup && window.slmadshb.setup.params) { window.slmadshb.setup.params.gdprApplies = true; } if (window.slmadshb && window.slmadshb.onload) { window.slmadshb.onload(); }