// ATM Build: nd_8yc-xR "use strict"; var adnMeta = adnMeta || {}; var adn = adn || {}; adn.calls = adn.calls || []; var pbjs = pbjs || {}; pbjs.que = pbjs.que || []; window.atm = window.atm || {}; atm.queue = atm.queue || []; atm.events = atm.events || {}; atm.data = atm.data || {}; atm.transitData; atm.browser = atm.browser || {}; atm.ads = atm.ads || {}; atm.ortb2 = atm.ortb2 || {}; atm.containers = atm.containers || {}; atm.containerFunctions = atm.containerFunctions || {}; atm.GLOBALS = atm.GLOBALS || {}; atm.haltedTags = atm.haltedTags || []; atm.adUnits = atm.adUnits || []; atm.adUnitAliases = atm.adUnitAliases || []; atm.prebid = atm.prebid || { units: [], mappedUnits: {}, aliases: [], map: {} }; atm.eventList = ['consent.change', 'consent.saved', 'event',]; try { (function (atm, adn, doc, win) { var CONTAINER_ID = 'HYkjmf5Tf'; atm.containerFunctions[CONTAINER_ID] = atm.containerFunctions[CONTAINER_ID] || {} "use strict"; atm.cookie = (function () { var pairs = document.cookie.split(";"); var cookies = {}; for (var i = 0; i < pairs.length; i++) { var pair = pairs[i].split("="); cookies[(pair[0] + '').trim()] = unescape(pair.slice(1).join('=')); } return cookies; })(); atm.localStorage = (function () { var values = {}; var keys = Object.keys(localStorage); for (var i = 0; i < keys.length; i++) { try { values[keys[i]] = JSON.parse(localStorage[keys[i]]); } catch (e) { values[keys[i]] = localStorage[keys[i]]; } } return values; })(); atm.browser = window.location; atm.browser.consent = (localStorage.getItem('adn-consent') || localStorage.getItem('atm-consent')) ? JSON.parse(localStorage.getItem('adn-consent') || localStorage.getItem('atm-consent')) : { time: new Date().getTime(), tc: false, given: false, purposes: [], specialFeatures: [], vendors: [], legIntPurposes: [], adnuntiusPurposes: [], stack: false, }; atm.browser.consent.timeSinceConsent = new Date().getTime() - atm.browser.consent.time; atm.page = atm.page || {}; atm.page.meta = (function () { var metaObject = {}; var metaData = document.getElementsByTagName("meta"); var metaDataArray = [].slice.call(metaData); metaDataArray.forEach(meta => { var name = meta.name || meta.getAttribute('property') || meta.getAttribute('http-equiv'); if (name) metaObject[name] = meta.content; }); return metaObject; })(); atm.containers[CONTAINER_ID] = { "id": "HYkjmf5Tf", "data": { "geo": false, "gdpr": false, "cssAdd": true, "position": "overlay", "cssOverride": true, "gdprChoiceButton": true }, "prebid": { "loadPrebidJs": false, "units": {}, "map": {}, "analytics": false, "requester": { "system": "none" }, "aliases": [] }, "tagType": "legacy", "cmp": false, "templates": false, "variables": [], "variableMap": {}, "tags": { "U6BZQISaV": { "purposes": [], "type": "javascriptCustom", "content": { "script": "" } } } } try { } catch (e) { throw new Error('Custom variables are not valid') } atm.containers[CONTAINER_ID].tags["U6BZQISaV"].content.script = function(){ window.conceptConfig = {"fetchMarginPercent":500,"renderMarginPercent":200,"mobileScaling":2,"settingsProfiles":[],"bidderTargeting":[],"mobileMultiplier":2,"prebidKeyMap":[],"targetingToDMP":[],"refreshInview":0.5,"prebidTimeOut":1000,"s2sTimeout":600,"page_url":"https://www.baby.dk/","reportTrackingAs":"baby.dk","prebidRef":"https://cncptx.com/prebid_builds/8c5cd750-12a1-53f9-b914-94a43d071476.js","s2sAccountName":"baby.dk_egmont","adUnits":[{"path":"/49114284/baby.dk_inst","isAchor":true,"targeting":{},"divIdOnPage":"baby-inst","size":[[[1025,0],[]],[[0,0],[[320,320],[300,250],[320,480]]]],"cookieLessPath":null,"anchor":"INTERSTITIAL","refresh":0,"id":"4xfpfh","lazyload":false},{"path":"/49114284/baby.dk_mob_top","targeting":{},"divIdOnPage":"baby-mob_top","prebidSizes":[[1,2],[300,220]],"size":[[[1025,0],[]],[[0,0],[[1,2],[300,220]]]],"cookieLessPath":null,"rootMargin":0,"refresh":0,"id":"bzdxpj","lazyload":false,"excluserTimeout":200,"prebidBid":[{"params":{"mid":"1719628","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30312147"},"bidder":"egmont-msupply"},{"params":{"mid":1740150,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759336","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz-top"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"assetKey":"OGY-A27A026CAEF7","adUnitId":"wm-hb-head-baby-story-i0akiajt68ptsz"},"bidder":"ogury"}]},{"path":"/49114284/baby.dk_mob4","targeting":{},"divIdOnPage":"baby-mob4","prebidSizes":[[320,320],[300,250],[320,480],[300,240],[320,160],[300,230]],"size":[[[1025,0],[]],[[0,0],[[320,320],[300,250],[320,480],[300,240],[320,160],[300,230]]]],"cookieLessPath":null,"rootMargin":0,"refresh":30000,"id":"tkmpdq","lazyload":true,"prebidBid":[{"params":{"mid":"1719633","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30311190"},"bidder":"egmont-msupply"},{"params":{"mid":1740149,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759304","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"}],"excluserTimeout":200},{"path":"/49114284/baby.dk_mob3","targeting":{},"divIdOnPage":"baby-mob3","prebidSizes":[[320,320],[300,250],[320,480],[300,240],[320,160],[300,230],[1,1],["640x480"]],"size":[[[1025,0],[]],[[0,0],[[320,320],[300,250],[320,480],[300,240],[320,160],[300,230],[1,1],["640x480"]]]],"cookieLessPath":null,"refresh":30000,"id":"nv1pi","lazyload":true,"prebidBid":[{"params":{"mid":"1719626","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30311187"},"bidder":"egmont-msupply"},{"params":{"placementId":"30312321"},"bidder":"egmont-msupply-int"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"mid":1740146,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759340","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz-int"},{"params":{"mid":"1759303","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"accountId":"17452","siteId":"171014","zoneId":"2943912"},"bidder":"egmont-rubicon"}]},{"refresh":30000,"excluserTimeout":200,"path":"/49114284/baby.dk_mob2","isAchor":false,"targeting":{},"divIdOnPage":"baby-mob2","prebidSizes":[[320,320],[300,250],[320,480],[300,240],[320,160],[300,230]],"size":[[[1025,0],[]],[[0,0],[[320,320],[300,250],[320,480],[300,240],[320,160],[300,230]]]],"cookieLessPath":null,"rootMargin":0,"anchor":"INTERSTITIAL","id":"5rj0bj","lazyload":true,"prebidBid":[{"params":{"mid":"1719624","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30311185"},"bidder":"egmont-msupply"},{"params":{"placementId":"30312310"},"bidder":"egmont-msupply-int"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"mid":1740148,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759339","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz-int"},{"params":{"mid":"1759302","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"accountId":"17452","siteId":"171014","zoneId":"2943908"},"bidder":"egmont-rubicon"},{"params":{"assetKey":"OGY-A27A026CAEF7","adUnitId":"wm-hb-iart-baby-story-sotain5zcr9m24"},"bidder":"ogury"}]},{"path":"/49114284/baby.dk_mob1","targeting":{},"divIdOnPage":"baby-mob1","prebidSizes":[[320,320],[300,250],[320,160]],"size":[[[1025,0],[]],[[0,0],[[320,320],[300,250],[320,160]]]],"cookieLessPath":null,"rootMargin":0,"refresh":30000,"id":"kdjs7k","lazyload":false,"excluserTimeout":200,"prebidBid":[{"params":{"mid":"1719623","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30311183"},"bidder":"egmont-msupply"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"mid":1740141,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759301","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"accountId":"17452","siteId":"171014","zoneId":"2943904"},"bidder":"egmont-rubicon"}]},{"path":"/49114284/baby.dk_rec1","targeting":{},"divIdOnPage":"baby-rec1","prebidSizes":[[300,250],[160,600],[300,600]],"size":[[[1025,0],[[300,250],[160,600],[300,600]]],[[0,0],[]]],"cookieLessPath":null,"rootMargin":0,"refresh":30000,"id":"upk89k","lazyload":true,"excluserTimeout":200,"prebidBid":[{"params":{"mid":"1719636","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30311740"},"bidder":"egmont-msupply"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"mid":1740152,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759311","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"accountId":"17452","siteId":"171012","zoneId":"3388304"},"bidder":"egmont-rubicon"}]},{"path":"/49114284/baby.dk_sky2","targeting":{},"divIdOnPage":"baby-sky2","prebidSizes":[[160,600],[300,600],[300,250]],"size":[[[1025,0],[[160,600],[300,600],[300,250]]],[[0,0],[]]],"cookieLessPath":null,"refresh":30000,"id":"2r51vw","lazyload":true,"prebidBid":[{"params":{"placementId":"30311735"},"bidder":"egmont-msupply"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"mid":1740151,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759311","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"accountId":"17452","siteId":"171012","zoneId":"3388208"},"bidder":"egmont-rubicon"}]},{"path":"/49114284/baby.dk_sky1","targeting":{},"divIdOnPage":"baby-sky1","prebidSizes":[[160,600],[300,600],[300,250]],"size":[[[1025,0],[[160,600],[300,600],[300,250]]],[[0,0],[]]],"cookieLessPath":null,"rootMargin":0,"refresh":30000,"id":"5qayy","lazyload":true,"excluserTimeout":200,"prebidBid":[{"params":{"placementId":"30311726"},"bidder":"egmont-msupply"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"mid":1740142,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759310","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"accountId":"17452","siteId":"171012","zoneId":"3388206"},"bidder":"egmont-rubicon"}]},{"path":"/49114284/baby.dk_dsk_top","targeting":{},"divIdOnPage":"baby-dsk_top","prebidSizes":[[1,2]],"size":[[[1025,0],[[1,2]]],[[0,0],[]]],"cookieLessPath":null,"rootMargin":0,"refresh":0,"id":"q3wnzd","lazyload":false,"excluserTimeout":200,"prebidBid":[{"params":{"mid":"1719627","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30312119"},"bidder":"egmont-msupply"},{"params":{"mid":1740143,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759335","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz-top"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"}]},{"path":"/49114284/baby.dk_lb4","targeting":{},"divIdOnPage":"baby-lb4","prebidSizes":[[930,180],[930,600],[930,360],[970,570],[970,560],[970,550]],"size":[[[1025,0],[[930,180],[930,600],[930,360],[970,570],[970,560],[970,550]]],[[0,0],[]]],"cookieLessPath":null,"rootMargin":0,"refresh":30000,"id":"ofggjf","lazyload":true,"prebidBid":[{"params":{"mid":"1719629","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30311714"},"bidder":"egmont-msupply"},{"params":{"mid":1740145,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759308","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"}],"excluserTimeout":200},{"path":"/49114284/baby.dk_lb3","targeting":{},"divIdOnPage":"baby-lb3","prebidSizes":[[930,180],[930,600],[930,360],[970,570],[970,560],[970,550]],"size":[[[1025,0],[[930,180],[930,600],[930,360],[970,570],[970,560],[970,550]]],[[0,0],[]]],"cookieLessPath":null,"refresh":30000,"id":"aq76g6","lazyload":true,"prebidBid":[{"params":{"mid":"1719620","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30311711"},"bidder":"egmont-msupply"},{"params":{"placementId":"30312362"},"bidder":"egmont-msupply-int"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"mid":1740140,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759338","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz-int"},{"params":{"mid":"1759307","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"accountId":"17452","siteId":"171012","zoneId":"2943848"},"bidder":"egmont-rubicon"}]},{"path":"/49114284/baby.dk_lb2","targeting":{},"divIdOnPage":"baby-lb2","prebidSizes":[[930,180],[930,600],[930,360],[970,570],[970,560],[970,550]],"size":[[[1025,0],[[930,180],[930,600],[930,360],[970,570],[970,560],[970,550]]],[[0,0],[]]],"cookieLessPath":null,"rootMargin":0,"refresh":30000,"id":"oesjfe","lazyload":true,"excluserTimeout":200,"prebidBid":[{"params":{"mid":"1719621","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30311700"},"bidder":"egmont-msupply"},{"params":{"placementId":"30312360"},"bidder":"egmont-msupply-int"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"mid":1740144,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759337","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz-int"},{"params":{"mid":"1759306","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"accountId":"17452","siteId":"171012","zoneId":"2943842"},"bidder":"egmont-rubicon"}]},{"path":"/49114284/baby.dk_lb1","targeting":{},"divIdOnPage":"baby-lb1","prebidSizes":[[930,180],[970,170]],"size":[[[1025,0],[[930,180],[970,170]]],[[0,0],[]]],"cookieLessPath":null,"rootMargin":0,"refresh":0,"id":"fifz4n","lazyload":false,"excluserTimeout":200,"prebidBid":[{"params":{"mid":"1719622","adxDomain":" adx.adform.net"},"bidder":"egmont-adform"},{"params":{"placementId":"30311605"},"bidder":"egmont-msupply"},{"params":{"publisherId":"161631","adSlot":0},"bidder":"egmont-pubmatic"},{"params":{"mid":1740147,"adxDomain":" adx.adform.net"},"bidder":"adform"},{"params":{"mid":"1759305","adxDomain":" adx.adform.net"},"bidder":"egmont-omgz"},{"params":{"accountId":"17452","siteId":"171012","zoneId":"2943830"},"bidder":"egmont-rubicon"}]}],"videoAdunits":[],"sid":"113340","s2sBidders":["egmont-adform","egmont-msupply","egmont-facemedia-top","adform","egmont-facemedia","egmont-pubmatic","egmont-msupply-int","egmont-facemedia-int","egmont-omgz-int","egmont-omgz","egmont-omgz-top","egmont-rubicon"],"readpeaks":[],"customTargeting":{"domain":"DOMAIN_OF_SITE"},"activateConceptTargeting":true,"bidderSettings":[{"alias":"egmont-omgz-int","bidCpmAdjustment":1.1,"bidder":"adform"},{"alias":"egmont-omgz","bidCpmAdjustment":1.1,"bidder":"adform"},{"alias":"egmont-facemedia","bidCpmAdjustment":1.1,"bidder":"adform"},{"alias":"egmont-facemedia-int","bidCpmAdjustment":1.1,"bidder":"adform"},{"alias":"adf2","bidCpmAdjustment":1,"bidder":"adform"},{"alias":"egmont-adform","bidCpmAdjustment":1.1,"bidder":"adform"},{"alias":"egmont-msupply-int","bidCpmAdjustment":1.1,"bidder":"appnexus"},{"alias":"egmont-facemedia-top","bidCpmAdjustment":1.1,"bidder":"adform"},{"alias":"egmont-pubmatic","bidCpmAdjustment":1.1,"bidder":"pubmatic"},{"alias":"egmont-omgz-top","bidCpmAdjustment":1.1,"bidder":"adform"},{"alias":"egmont-msupply","bidCpmAdjustment":1.1,"bidder":"appnexus"}],"strossles":[],"checkForConsent":true,"activateTimingTracker":true,"usePrebid":true,"tryLimitedAds":true,"activateS2s":true,"RMBRef":"https://macro.adnami.io/macro/hosts/adsm.macro.baby.dk.js","prebidAliases":[["egmont-omgz-int","adform","50"],["egmont-omgz","adform","50"],["egmont-adform","adform","50"],["egmont-msupply-int","appnexus","32"],["egmont-rubicon","rubicon","52"],["egmont-pubmatic","pubmatic","76"],["egmont-omgz-top","adform","50"],["egmont-msupply","appnexus","32"]],"deployId":"m5xp2wfq22r9p55jnrn","supplyPartners":[{"gvlid":null,"bidder":"adform","asi":"adform.com","mainAdapter":true,"s2sApproved":true,"name":"adform","bidCpmAdjustment":"1","sid":"9"},{"gvlid":"31","bidder":"ogury","mainAdapter":true,"name":"ogury","bidCpmAdjustment":"1"},{"gvlid":"50","bidder":"adform","asi":"adform.com","bidCpmAdjustment":"1.1","sid":"638","alias":"egmont-omgz-int","extraNodes":[{"asi":"omnicommediagroup.com","sid":"S006"}]},{"gvlid":"50","bidder":"adform","asi":"adform.com","bidCpmAdjustment":"1.1","sid":"638","alias":"egmont-omgz","extraNodes":[{"asi":"omnicommediagroup.com","sid":"S006"}]},{"gvlid":"50","bidder":"adform","bidCpmAdjustment":"1.1","alias":"egmont-adform"},{"gvlid":"32","bidder":"appnexus","bidCpmAdjustment":"1.1","alias":"egmont-msupply-int"},{"gvlid":"52","bidder":"rubicon","bidCpmAdjustment":"1.1","sid":"17452","alias":"egmont-rubicon"},{"gvlid":"76","bidder":"pubmatic","bidCpmAdjustment":"1.1","alias":"egmont-pubmatic"},{"gvlid":"50","bidder":"adform","asi":"adform.com","bidCpmAdjustment":"1.1","sid":"638","alias":"egmont-omgz-top","extraNodes":[{"asi":"omnicommediagroup.com","sid":"S006"}]},{"gvlid":"32","bidder":"appnexus","bidCpmAdjustment":"1.1","alias":"egmont-msupply"}],"ABTesters":[],"dontChangeCorrelator":true,"implementationType":"NORMAL","cookielessAdserver":"GAM","haltInit":0,"rootMargin":250,"failsafe_timeout":0,"legitimateStepAdserver":"GAM","useGoogleLazy":true,"waitForContxt":100}; "use strict";(()=>{var Ct=Object.defineProperty;var vr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Ir=Object.prototype.hasOwnProperty;var b=(e,t)=>()=>(e&&(t=e(e=0)),t);var yr=(e,t)=>{for(var o in t)Ct(e,o,{get:t[o],enumerable:!0})},Sr=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ar(t))!Ir.call(e,i)&&i!==o&&Ct(e,i,{get:()=>t[i],enumerable:!(n=vr(t,i))||n.enumerable});return e};var ke=e=>Sr(Ct({},"__esModule",{value:!0}),e);var E,Te=b(()=>{"use strict";E={MACRO_UNLOAD:"ADSM_MACRO_UNLOAD",SLOT_LOADED:"SLOT_LOADED",SLOT_REQUESTED:"SLOT_REQUESTED",SKIN_INIT:"ADSM_RMB_SKIN_INIT",SIDESKIN_INIT:"ADSM_RMB_SIDESKIN_INIT",DESKTOP_TOPSCROLL:"ADSM_RMB_HTML_TOPSCROLL_DESKTOP_INIT",GET_CONCEPTADS:"GET_CONCEPTADS",GET_VASTTAG:"GET_VASTTAG",GET_PREBIDVASTTAG:"GET_PREBIDVASTTAG"}});function C(e){no&&s(e,"error")}var oo,to,Er,Pr,wr,Ce,no,s,io,re,ro,so,M,L,ve,V,_e,y=b(()=>{"use strict";oo={pbjs:"#3B88C3;",gpt:"#1E8E3E;",adnuntius:"#0e9bd6;",emitter:"#f4b400;",video:"#ff0046;",conceptads:"#283593;",readpeak:"#13759a;",strossle:"#191919;",function:"#9AE19D;",test:"#6eb77f;",error:"#ff3333;",warning:"#ffcc00;"},to={default:"\u{1F5E8}\uFE0F ",warning:"\u26A0\uFE0F ",error:"\u2757"},Er=e=>oo[e]||"#d24f54;",Pr=performance.now(),wr=function(e,t){let o=Array.from(t),n=Er(e),i=to[e]||to.default;o.unshift(i+"font-family: sans-serif; font-weight: bold; color: #FFF; padding: 1px 0; background: "+n+" padding: 5px; margin: 2px 0; border-radius: 99px;");let a=(performance.now()-Pr)/1e3;return o.unshift("%c"+i+e.toUpperCase()+` (+ ${a.toFixed(2)} s) `),o},Ce=function(e){let t="[\\?&]"+e+"=([^&#]*)",n=new RegExp(t).exec(window.location.search);return n===null?"":decodeURIComponent(n[1].replace(/\+/g," "))},no=Ce("concept_debug")==="true"||globalThis.concept_debug,s=(e,t="conceptads",o="log")=>(Object.keys(oo).includes(t)||(t="conceptsads"),no&&console[o].apply(void 0,wr(t,[e])));io=()=>{let e=performance.now();globalThis.concept.initialCalled=!0;let t=globalThis.concept?.initTime?(e-globalThis.concept.initTime)/1e3:0;globalThis?.concept?.eventLog&&globalThis.concept.eventLog.push({msg:"injectAds executing.....",secondCount:t,list:"core"})},re=(e,t)=>{let o=performance.now(),n=globalThis.concept?.initTime?(o-globalThis.concept.initTime)/1e3:0;globalThis?.concept?.eventLog&&globalThis.concept.eventLog.push({msg:t,secondCount:n,list:e})},ro=e=>re("Function queued",e),so=e=>re("Function dequeued",e),M=e=>re("Timing point",e),L=e=>re("Event recieved",e),ve=e=>re("Ad loaded",e),V=e=>re("Request sent",e),_e=e=>re("Unfilled recieved",e)});var x,se=b(()=>{"use strict";x={LEGITIMATE_INTERREST:"LEGITIMATE_INTERREST",UNKNOWN:"UNKNOWN",FULL_CONSENT:"FULL_CONSENT",CONSENT_REJECT:"CONSENT_REJECT_AND_NO_LEGITIMATE",NO_TCF_API:"NO_TCF_API",NOT_SET:"NOT_SET"}});var ao,lo=b(()=>{"use strict";ao=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}});var ae,je,co,d,f,O,po,Ue,uo,$e,Fe,S=b(()=>{"use strict";R();y();ae=({adunitId:e})=>{let t=[...globalThis.concept.updateWhenResolved.keys()],o=[...globalThis.concept.updateIfEmpty.keys()];return[...t,...o].filter(i=>O(i)).includes(e)},je=()=>globalThis.conceptConfig,co=()=>globalThis.concept,d=e=>globalThis.conceptConfig[e],f=e=>globalThis.concept[e],O=e=>globalThis.concept.adUnits.get(e),po=e=>{e.lazyload=!1,s("Removing lazyload for SRA request"),globalThis.concept.initialSRAList.push({displayRequested:!1,divIdOnPage:e.divIdOnPage})},Ue=e=>globalThis.concept.consentQueue.push(e),uo=()=>{let t=Me()?"mobile":"desktop";globalThis.concept.device=t},$e=(e,t)=>globalThis.conceptConfig[e]=t,Fe=()=>({changeCorrelator:d("dontChangeCorrelator")!==!0})});var Or,xr,de,Be=b(()=>{"use strict";S();Or=300,xr=e=>{let t=f("device")==="mobile",o=f("adUnits"),n=d("mobileMultiplier")||2,i=d("rootMargin"),r=d("globalRootMarginPercent"),a=t?n:1,l=o?o.get(e):null,g=((l&&l.rootMargin?l.rootMargin:i)||Or)*a+"px";if(r){let u=r*a;g=`${u}% 0% ${u}% 0%`}return g},de=e=>({root:null,rootMargin:xr(e),threshold:d("threshold")||0})});var vt,go,fo=b(()=>{"use strict";S();y();j();vt={criteo:{transformer:e=>{let t={};return t.networkId=parseInt(e.networkId),e.zoneId&&(t.zoneId=parseInt(e.zoneId)),e.publisherSubId&&(t.publisherSubId=`${e.publisherSubId}`),t}},grid:{transformer:e=>({uid:parseInt(e.uid)})},adnuntius:{transformer:e=>({auId:e.auId.trim(),bidType:`${e.bidType||"grossBid"}`})},adform:{transformer:e=>({mid:parseInt(e.mid),adxDomain:`${e.adxDomain||"adx.adform.net"}`.trim()})},pubmatic:{transformer:e=>({adSlot:`${e.adSlot}`,publisherId:`${e.publisherId}`})},appnexus:{transformer:(e,t)=>{let o=d("mSupplySpecialTargeting"),n=d("appnexusAdunitKeyWordsAllowed")||[],i=f("targeting"),r=De(i),a={placementId:`${e.placementId}`};return o&&n.includes(t)&&(s("Setting keyswords for adunit","pbjs"),o.forEach(l=>{r[l.value]&&(a.keywords||(a.keywords={}),a.keywords[l.key]=r[l.value])})),a}}},go=e=>{let{bidder:t,params:o,disabled:n}=e,r=(globalThis?.conceptConfig?.prebidAliases||[]).find(c=>c[0]===t),a=r&&r[1];if(vt[t]||a&&vt[r[1]]){let c=t;r&&(c=r[1]);let p={bidder:t,params:vt[c].transformer(o,t)};return n&&(p.disabled=n),p}return e}});var Rr,mo,ho,bo=b(()=>{"use strict";({injectCustomAsyncScript:Rr}=(k(),ke(Ae))),mo=()=>globalThis.conceptConfig.activatePubx,ho=e=>{Rr(e,"https://cdn.pbxai.com/029f2f07-0154-4544-b38d-26667fe7fd22.js"),e("PubX Injected")}});var To,Co,vo,Ao,Io=b(()=>{"use strict";S();To=()=>{let e=d("activateS2s"),t=d("prebidTimeOut")||1e3,o=d("adServerCurrency")||"DKK",n=d("id5PartnerId")||461,i=d("enableTIDs")||!0,r=d("disablePrebidConsentManagement"),a=d("disablePaapi")||!1,l=d("disableUserSync"),c=d("prebidPriceBuckets"),p=[{precision:2,max:20,increment:.2},{precision:2,max:100,increment:1},{precision:2,max:400,increment:10}],g=c&&c.length>0?c:p,u={bidderTimeout:t,enableTIDs:i,currency:{adServerCurrency:o},allowActivities:{transmitEids:{rules:[{allow:!0}]},fetchBids:{rules:[{allow:!0}]}},targetingControls:{addTargetingKeys:["SOURCE"]},priceGranularity:{buckets:g},paapi:{enabled:!a,defaultForSlots:1}};if(r||(u.consentManagement={gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0},usp:{cmpApi:"iab",timeout:100}}),l||(u.userSync={filterSettings:{iframe:{bidders:"*",filter:"include"}},auctionDelay:0,userIds:[{name:"sharedId",storage:{type:"cookie",name:"_pubcid",expires:365},params:{pixelUrl:"/pubcidcookie"}},{name:"criteo"},{name:"id5id",params:{partner:typeof n=="string"?parseInt(n):n},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:8*3600}}]}),e){let v=d("prebidAliases")||[],A=d("s2sBidders")||[],I=d("s2sBaseRef")||"https://s2s.cncpt-central.com",h=d("s2sAccountName")||"cncpt",w=d("s2sTimeout")||500;u.s2sConfig={accountId:h,adapter:"prebidServer",enabled:!0,bidders:[...A],cookieSet:!0,endpoint:`${I}/openrtb2/auction`,syncEndpoint:`${I}/cookie_sync`,timeout:w,extPrebid:{aliases:Object.fromEntries(v.filter(F=>A.includes(F[0]))||[]),targeting:{includebidderkeys:!0}}}}return(d("disablePrebidSync")||!1)&&(u.syncEnabled=!1),(d("disablePrebidDevice")||!1)&&(u.deviceAccess=!1),u},Co=e=>{let{asi:t,sid:o,extraNodes:n,alias:i,bidder:r}=e,a={bidders:[i||r],config:{schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[]}}}};return t&&o&&a.config.schain.config.nodes.push({asi:t,sid:o,hp:1}),n&&n.forEach(l=>{a.config.schain.config.nodes.push({asi:l.asi,sid:l.sid,hp:1})}),a},vo=()=>{let e=d("supplyPartners")||[];if(!e)return;let t={standard:{storageAllowed:!0}};e.forEach(o=>{let{bidCpmAdjustment:n,alias:i}=o,r=parseFloat(n);r!==1&&i&&(t[i]?t[i].bidCpmAdjustment=l=>l*r:t[i]={bidCpmAdjustment:l=>l*r})}),pbjs.bidderSettings=t},Ao=()=>{let e=d("prebidKeyMap")||[],t={},o=[{keyName:"concept_domain",value:"domain"},{keyName:"concept_path1",value:"path1"},{keyName:"concept_path2",value:"path2"},{keyName:"concept_IAB1",value:"IAB1"},{keyName:"concept_IAB2",value:"IAB2"},{keyName:"concept_contxt",value:"contxt"},...e],n="prebidkey",i=f("targeting");o.forEach(l=>{i[l.value]&&(t[l.keyName]=i[l.value])});let r=i.UrlQuery.find(l=>l.includes(n));if(r){let[l,c]=r.split(":");t[l]=c}let a=globalThis.concept.targeting.categories||"";return t.concept_category=a.split(","),globalThis.concept.pbjsGlobalKeys=t,t}});var Lr,yo,So,Eo=b(()=>{"use strict";({injectCustomAsyncScript:Lr}=(k(),ke(Ae))),yo=()=>globalThis.conceptConfig.relevantRef,So=e=>{Lr(e,globalThis.conceptConfig.relevantRef),e("Relevant Injected")}});function Ro(e){let t=!1,o=Fe();if(e.length===0){s("No units ot refresh");return}let{prebidUnits:n,onlyGamUnits:i}=Nr(e);googletag.cmd.push(function(){let c=i.map(p=>p.slot).filter(Boolean);c.forEach(p=>{V(`${p} - gpt`)}),googletag.pubads().refresh(c,o)});let r=n.map(c=>c.code),a=e.filter(c=>r.includes(c.divIdOnPage));n&&n.length>0&&(V(`${r.join(", ")} - prebid`),pbjs.que.push(function(){let c=r.join(", ");xo(),pbjs.removeAdUnit(),pbjs.addAdUnits(n),M(`prebid auction started ${c}`),s(`Starting auction for = ${c}`,"pbjs"),pbjs.requestBids({adUnitCodes:r,bidsBackHandler:l})}));function l(c){if(!t){if(t=!0,c&&Mr(c),a.length===0){s("Nothing to call GAM with");return}googletag.cmd.push(function(){pbjs.setPAAPIConfigForGPT&&pbjs.setPAAPIConfigForGPT();let p=a.filter(g=>g.slot).map(g=>g.slot);if(p.length===0){s("Nothing with a slot to call GAM with");return}if(!pbjs.libLoaded){googletag.pubads().refresh(p,o);return}pbjs.que.push(function(){pbjs.setTargetingForGPTAsync(),s("[initAdserver] send prebid result to GAM","pbjs"),googletag.pubads().refresh(p,o)})})}}if(n&&n.length>0){let c=(globalThis?.conceptConfig?.prebidTimeOut??3e3)+500;setTimeout(function(){t||(s(`[PREBID] Timouter caught this one ${r}`,"pbjs"),l({}))},c)}}var Po,Ie,Nr,kr,wo,_r,jr,Oo,xo,Ur,$r,Fr,Mr,qe=b(()=>{"use strict";y();k();bo();Io();S();Eo();j();Po=!0;window.pbjs=window.pbjs||{};pbjs.que=pbjs.que||[];Ie=e=>{if(e.usePrebid&&e.prebidRef)if((!window.pbjs||!window.pbjs.libLoaded)&&Po){Po=!1,mo()&&ho(s),yo()&&So(s);let t=e.prebidRef;Ur(),At(s,t),jr(),kr(),$r(),globalThis.concept.updateTargeting()}else s("Prebid already loaded/started","pbjs");else s("Prebid not needed","pbjs")},Nr=e=>{let t=[],o=[],n=e.map(i=>i.path);return s(`[getPrebidSettings] looking up bids for: ${n}`,"conceptads"),e.forEach(i=>{let r=i.divIdOnPage;for(let[a,l]of f("adUnits")){if(!l){s("Unit is deleted");return}l.divIdOnPage===r&&l.prebidSettings?.bids&&l.prebidSettings?.bids?.length>0?(l.prebidSettings.code=r,t.push(l.prebidSettings)):l.divIdOnPage===r&&o.push(l)}}),{prebidUnits:t,onlyGamUnits:o}},kr=()=>{d("useLiveWrappedAnalytics")&&window.pbjs.que.push(function(){s("setting setPrebidAnalytics (liveWrapped)","pbjs"),pbjs.enableAnalytics({provider:"livewrapped",options:{publisherId:"35665883-67d9-42e1-b1e9-8f3e80c7f513",endpoint:"https://lwadm.com/analytics/10"}})})},wo=(e,t)=>{window.pbjs.que.push(function(){let o=t.filter(a=>a.target==="site"),n=t.filter(a=>a.target==="user"),i=f("targeting"),r={bidders:e,config:{ortb2:{site:{ext:{data:{}}},user:{ext:{data:{}}}}}};o.forEach(a=>{r.config.ortb2.site.ext.data[a.key]=i[a.value]}),n.forEach(a=>{r.config.ortb2.user.ext.data[a.key]=i[a.value]}),e&&e.length>0&&(s(`Setting bidder targeting for ${e.join(",")}`,"pbjs"),pbjs.setBidderConfig(r,!0))})},_r=e=>{window.pbjs.que.push(function(){e[1]&&e[0]&&pbjs.aliasBidder(e[1],e[0],{...e[2]&&{gvlid:parseInt(e[2])}})})},jr=()=>{if(s("Adding Aliases","pbjs"),globalThis.conceptConfig?.prebidAliases){let e=globalThis.conceptConfig.prebidAliases,t=[];if(typeof e=="string")try{t=JSON.parse(e)}catch{C("could not parse prebidAliases")}Array.isArray(e)&&(t=e),s(JSON.stringify(e),"pbjs"),t.forEach(o=>_r(o))}},Oo=({bids:e,sizes:t,path:o,prebidAllowNative:n})=>{if(e.length===0)return null;let i={code:o,bids:e.filter(r=>!r.disabled),mediaTypes:{banner:{sizes:t}}};return n&&i.mediaTypes&&(i.mediaTypes.native={clickUrl:{required:!1},desc2:{required:!1,len:60},body:{required:!1,len:60},title:{required:!1,len:125},sponsoredBy:{required:!0,len:25},icon:{required:!0,aspect_ratios:[{min_height:150,ratio_height:1,ratio_width:1,min_width:150}]},main_image:{required:!1,aspect_ratios:[{min_height:100,ratio_height:1440,ratio_width:1440,min_width:100},{min_height:100,ratio_height:720,ratio_width:1440,min_width:100},{min_height:100,ratio_height:960,ratio_width:1440,min_width:100},{min_height:100,ratio_height:810,ratio_width:1440,min_width:100}]},ctatext:{required:!1,len:15},address:{required:!1,len:35},video:{required:!1},sendTargetingKeys:!1}),i},xo=()=>{s("updatin pbjs ortb2 (contxt & targetings)","pbjs");let e=f("targeting"),t=Ao(),o={site:{ext:{data:{...t}}}};e?.lat&&(o.device={geo:{lat:e?.lat,long:e?.long,accuracy:parseInt(e?.accuracy)}}),pbjs.setConfig({ortb2:o});let n=d("appnexusSpecialTargeting"),i={...t};n&&(s("Setting appnexus specfic keywords"),n.forEach(r=>{e[r.value]&&(i[r.key]=e[r.value])})),pbjs.setConfig({appnexusAuctionKeywords:De(i)})},Ur=()=>{let e=d("adUnits")||[],t=["client","s2s"];e.filter(o=>o.prebidBid&&o.prebidBid.length>0&&o.prebidBid.some(n=>n.splitBid)).map(o=>o.prebidBid.filter(n=>n.splitBid)).flat(1/0).forEach(o=>{let{bidder:n}=o;if(!globalThis.conceptConfig.supplyPartners)return;let i=globalThis.conceptConfig.supplyPartners?.find(r=>r.alias===n||r.bidder===n);i&&t.forEach(r=>{let a=`${n}_${r}`,l={...i,alias:a};if(!conceptConfig.prebidAliases?.find(c=>c[0]===a)){let c=[a,i.bidder];i?.gvlid&&c.push(i.gvlid),conceptConfig.prebidAliases?.push(c)}conceptConfig.supplyPartners?.find(c=>c.alias===a)||conceptConfig.supplyPartners?.push(l),r==="s2s"&&!conceptConfig.s2sBidders?.includes(a)&&conceptConfig.s2sBidders?.push(a)})})},$r=()=>{pbjs.que.push(function(){s("setting cncpt pbjs options (bidadjustments & general config)","pbjs"),vo(),xo(),Fr(),pbjs.onEvent("auctionInit",function(t){s(`[auctionInit] ${t.adUnitCodes[0]} with ${t.bidderRequests.length} bids`,"pbjs")}),pbjs.onEvent("beforeRequestBids",function(t){if(!pbjs.getUserIds){C("getUserIds are not available in prebid");return}let n=pbjs.getUserIds()?.pubcid;n&&t.forEach(i=>{i.bids.forEach(r=>{r.bidder==="ttw"&&(r.params.user={external_uid:n})})})}),pbjs.setConfig(To());let e=d("videoPriceBuckets");e&&e.length>0&&(s("Setting video price buckets","pbjs"),pbjs.setConfig({mediaTypePriceGranularity:{video:{buckets:e}}}))})},Fr=()=>{(d("supplyPartners")||[]).filter(t=>t.asi&&t.sid||t.extraNodes&&t.extraNodes.length>0).forEach(t=>{s(`Seeting Schain for ${t.alias||t.bidder}`,"pbjs");let o=Co(t);pbjs.setBidderConfig(o)})},Mr=e=>{pbjs.que.push(function(){Object.keys(e).forEach(t=>{let n=pbjs.getHighestCpmBids(t)[0];if(n){let i=n?.cpm?.toFixed(2)||0,r=n?.bidder||"unknown";s(`GAM has to beat ${i} by ${r}`,"pbjs")}})})}});var Lo,No,B,ko,K=b(()=>{"use strict";Lo=e=>Math.random(){let t,o=[];for(t=0;tn);t++);return e[t]},B=()=>Math.random().toString(36).substr(2,9),ko=(e,t)=>Math.floor(Math.random()*(t-e+1)+e)});var Ge,_o,It,jo,ze=b(()=>{"use strict";R();Ge=()=>document.createElement("div"),_o=(e,t,o)=>{if(e){e.classList.add(`outer-box-${e.id}`);let n=Ge();n.className="inner-second",n.innerHTML=`

Your ${e.id} ad will be shown here!

`;let i=`.outer-box-${e.id}`,r=` ${i} {padding: 0; position: relative; width: ${t}px; height: ${o}px;} ${i} .inner-second { padding: 0; position: absolute; width: 100%; min-height: 100%; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity .5s; background: #30ac7c;} ${i} .inner-second p {color: #fff;font-family: 'arial';text-align: center;} ${i} .inner-second {opacity: .9;transition: opacity .5s;}`;It(r),e.appendChild(n)}},It=e=>{let t=document.createElement("style");t.innerText=e,document.head.appendChild(t)},jo=e=>{let t=P(e.divIdOnPage);if(!t)return"";let o=Ge(),n=`${e.divIdOnPage}-prerender`;o.setAttribute("id",n);let i=Ge(),r=Ge();return r.setAttribute("id",`${e.divIdOnPage}-grandparent`),i.setAttribute("id",`${e.divIdOnPage}-realrender`),t.appendChild(o),r.appendChild(i),t.appendChild(r),n}});function yt(e,t){e&&e.postMessage&&e.postMessage(t,"*")}var D,Uo,We,$o,Fo,He,Mo,Bo,Do,qo,Go,zo,Ve,Wo,Q=b(()=>{"use strict";S();y();D=(e,t)=>{if(!d("isPassback")){s(`${e} emitted`,"emitter");let n=new CustomEvent(e,t);window.parent.document.dispatchEvent(n)}},Uo=({divId:e})=>{D("viewableAd",{detail:{viewable:!0,divId:e}})},We=({name:e,divId:t})=>{D("unfilledAd",{detail:{adunit:e,unfilled:!0,divId:t}})},$o=()=>D("concept_loaded",{detail:{}}),Fo=()=>D("concept_listening",{detail:{}}),He=({name:e,divId:t})=>{D("filledAd",{detail:{adunit:e,filled:!0,divId:t}})},Mo=(e,t)=>{let o=globalThis.concept.buildVastTag(t);yt(e,{type:"vast_tag",payload:{VASTTag:o}})},Bo=async(e,t)=>{let o=await globalThis.concept.requestPrebidUrl(t);yt(e,{type:"prebid_vast_tag",payload:{VASTTag:o}})},Do=e=>{let o={cncptads:JSON.stringify(co())};yt(e,{type:"concept_ads",payload:o}),D("concept_ads",{detail:o})},qo=()=>D("urlChange",{detail:{}}),Go=()=>D("consentRecieved",{detail:{}}),zo=()=>D("cookieless",{detail:{}}),Ve=()=>D("withCookies",{detail:{}}),Wo=e=>D("PPIDSet",{detail:{id:e}})});var Ho,Br,Dr,qr,Gr,zr,Wr,Hr,Vo,Vr,Kr,Qr,Ke=b(()=>{"use strict";k();y();R();j();Q();ze();S();Ho=e=>{window.adn&&window.adn.calls&&window.adn.request?e("Adnuntius already loaded"):(le("https://cdn.adnuntius.com/adn.js",document),e("Adnuntius Injected"))};window.adn=window.adn||{};adn.calls=adn.calls||[];Br=e=>{for(var t in e)(e[t]===null||e[t]===void 0||e[t]==="")&&delete e[t];return e},Dr=e=>{We({name:e.targetId,divId:e.targetId}),_e(e.targetId)},qr=e=>{globalThis.concept.adsloaded=globalThis.concept.adsloaded+1,ve(e.targetId),He({name:e.targetId,divId:e.targetId})},Gr=e=>ve(e.widgetId),zr=(e,t="size")=>{let o=q(),n=X(e[t],o);return St(n)},Wr=(e,t,o,n="iframe")=>({targetId:t,auId:e.cookieLessPath,kv:o,useCookies:!1,isolateFrame:!0,auW:e.cookielessWidth?`${e.cookielessWidth}`:"unset",auH:e.cookielessHeight?`${e.cookielessHeight}px`:0,onViewable:Gr,container:n,onNoMatchedAds:Dr,onImpressionResponse:qr}),Hr=e=>{e.forEach(t=>{if(s(`Queueing ${t.targetId}`,"adnuntius"),!d("disableAutoCenterCLAds")){let n=P(t.targetId);n&&(n.style.margin="0px auto")}V(`${t.targetId} - adnuntius`),Vr({slot:t})})},Vo=({adunitDivId:e,container:t,prerender:o}={adunitDivId:null,container:"iframe",prerender:!1})=>{o&&s(`Pre rendereing ${e}`,"adnuntius");let i=Me()?"mobile":"desktop";globalThis.concept.device=i;let a=d("adUnits").filter(p=>p.cookieLessPath&&!p.cookieLessPath.includes("/"));e&&(a=a.filter(p=>p.divIdOnPage===e));let l=Br(globalThis.concept.targeting),c=a.filter(p=>zr(p,"size")).map(p=>{let g=p.divIdOnPage;return o&&(g=jo(p),p.divIdOnPage=`${p.divIdOnPage}-realrender`),Wr(p,g,l,t)});return Hr(c),c.map(p=>p.targetId)},Vr=async({slot:e})=>{let t=f("failsafe_timeout");s(`Waiting for ${e.targetId} to be in the DOM`,"adnuntius"),await z(`#${e.targetId}`,t)!==null&&Kr(e)},Kr=e=>{s(`Requesting ${e.targetId}`,"adnuntius"),adn.calls.push(function(){Qr(e)})},Qr=e=>{adn.useLocalStorage(!1),adn.request({requestParams:{proximity:50,load:"lazy"},adUnits:[e]})}});var Jr,Ko,Qo=b(()=>{"use strict";y();k();R();Jr=(e,t=100)=>{let o=[],n=[],i=0;for(let r of e)i+r.length+(n.length>0?1:0)>t&&(o.push(n),n=[],i=0),n.push(r),i+=r.length+(n.length>1?1:0);return n.length>0&&o.push(n),o},Ko=({contxt:e,logger:t})=>{t("Dentsu gonna be Injected");let o="G-955BVT8WXE",n=Qe("_pubcid",!1);window._adftrack=Array.isArray(window._adftrack)?window._adftrack:window._adftrack?[window._adftrack]:[];let i=576327,r=["Data_Concept_All_Firstparty","Data_Concept_All"],a="Concept_data",l=n,c=window.location.href,p=e.join(","),g=window.location.hostname;r.forEach(I=>{window._adftrack.push({pm:i,divider:encodeURIComponent("|"),pagename:encodeURIComponent(I),order:{sv1:a,sv2:l,sv3:c,sv22:g,sv4:p}})}),globalThis.dataLayer=globalThis.dataLayer||[];function u(){globalThis.dataLayer.push(arguments)}let m={d_partnership:a,d_first_party_id:l,d_url:c,d_domain_name:g};Jr(e).forEach((I,h)=>{let w=h===0?"":h+1;m[`d_domain_category${w}`]=I.join(",")}),u("js",new Date),u("config",o,m);let v="https://s2.adform.net/banners/scripts/st/trackpoint-async.js",A=`https://www.googletagmanager.com/gtag/js?id=${o}`;U(s,v),U(s,A)}});function Jo(e){globalThis.concept.videosRequested=globalThis.concept.videosRequested+1,globalThis.concept.videoUrls.push(e)}var $,Yr,Xr,Zr,Je,Et=b(()=>{"use strict";y();qe();R();K();S();j();$=e=>s(e,"video"),Yr=e=>{let t={};return Object.entries(e).forEach(([o,n])=>{Array.isArray(n)?t[o]=n.join(","):t[o]=n}),t},Xr=({selectedVideoSettings:e,output:t,vpos:o="preroll",vpmute:n=1,autoplay:i,muted:r,isLive:a,videoFormat:l,vpa:c="auto",videoId:p=""})=>{let g={isProduction:"true",...globalThis.concept.targeting,autoplay:i,videoType:l,...e.targeting},u=d("controlKey");d("setControlGroup")&&u&&(g[u]=f(u));let m=Yr(g),T={adUnit:e,params:{iu:e.code,cust_params:m,vpos:o,...e.targeting,description_url:encodeURIComponent(window.location.href||window.location.origin),unviewed_position_start:1,wta:1,vpmute:n,autoplay:i,muted:r,vad_format:"linear",vpa:c,output:t,...a&&{isLive:a},...e.cmsid&&{cmsid:e.cmsid},...p&&{vid:p}}},v=f("PPID");return v&&(T.params.ppid=v),T},Zr=({selectedVideoSettings:e,output:t="vast",vpos:o="preroll",vpmute:n=1,vpa:i="auto",autoplay:r,muted:a,videoFormat:l,isLive:c,videoId:p=""})=>new Promise((g,u)=>{try{$(`Creating url for ${e.code}`),Ie(je()),e.code=Z(e.code),e.mediaTypes.video.plcmt=a?2:1,e.disablePrebid&&(e.bids=[],$("Bids are disabled in this environment")),window.pbjs.que.push(function(){$(`${e.code} requested`),pbjs.addAdUnits(e),pbjs.setConfig({useBidCache:!0,cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"}}),$("setting cncpt pbjs"),pbjs.requestBids({adUnitCodes:[e.code],bidsBackHandler:function(m){$(`${Object.keys(m).length} recieved from prebid demand`),Object.keys(m).forEach(A=>{m[A].bids.forEach(I=>{let{bidder:h,bidderCode:w,adapterCode:F,cpm:W,currency:bt}=I;$(`${h||w||F} gave a bid of ${W} (${bt}) for ${A}`)})});let T=Xr({selectedVideoSettings:e,output:t,vpos:o,vpmute:n,vpa:i,autoplay:r,muted:a,isLive:c,videoId:p,videoFormat:l});pbjs?.adServers?.dfp?.buildVideoUrl||C("Your prebid file is not correctly set up. At least your missing some dfp build video url functionality");let v=pbjs.adServers.dfp.buildVideoUrl(T);Jo(v),g(v)}})})}catch(m){u(m)}}),Je=async(e,t)=>new Promise(async(o,n)=>{try{if(!e)return $("ERROR: Please provide ID"),n(new Error("No Id for player"));let i=d("videoAdunits");if(!i)return $("ERROR: Please Setup op some video adunits"),n(new Error("No video units"));let r=d("waitForEventToStart");if(r&&($(`Waiting for ${r}`),await Ye(r),$(`${r} -- received`)),!i)return $("ERROR: No video unit for these params"),n(new Error("No video units"));let a=i.find(g=>t?.device||t?.videoFormat?g.device===t?.device&&g.videoFormat===t?.videoFormat&&!!g.isLive==!!t?.isLive:g.playerId===e);if(!a)return $(`No player found ${e}`),n(new Error("No config for you player"));t?.isLive&&(a.videoFormat=a.videoFormat+"_livestream",t.videoFormat=a.videoFormat),t?.isEmbed&&(a.videoFormat=a.videoFormat+"_embed",t.videoFormat=a.videoFormat);let l=a?.VASTAlternative,c=a?.alternativePercent;if(l&&c&&Math.random(){"use strict";S();y();j();ye=e=>s(e,"video"),es=e=>{try{let t="https://pubads.g.doubleclick.net/gampad/ads";e.code=Z(e.code);let o=`?iu=${e.code}`,n=`&sz=${e?.mediaTypes?.video?.playerSize.join("x")}`,i="&output=vast",r="&gdfp_req=1",a=`&description_url=${encodeURIComponent(document?.location?.origin||"unknown")}`,l={},c=f("targeting");c&&(l=c),e.targeting&&(l={...l,...e.targeting});let p=encodeURIComponent(Object.keys(l).map(m=>{let T=l[m];return Array.isArray(T)?`${m}=${T.join(",")}`:`${m}=${T}`}).join("&")),g=f("PPID"),u=`${t}${o}${n}${i}${r}&unviewed_position_start=1&env=vp&impl=s${a}&correlator=&cust_params=${p}`;return g?(s("SETTING",g),u=`${u}&ppid=${g}`):s("NOOO"),u}catch{throw new Error("Could not build vasttag")}},Yo=e=>{try{if(!e)throw ye("ERROR: Please provide ID"),new Error("No Id for player");let t=d("videoAdunits");if(!t)throw ye("ERROR: Please Setup op some video adunits"),new Error("No video units");ye(`Creating vast tag for ${e}`);let o=t.find(i=>i.playerId===e);if(!o)throw ye(`No player found ${e}`),new Error("No config for you player");let n=es(o);return globalThis.concept.vastTags.push(n),n}catch{return ye(`Something went wrong ${e}`),""}}});var G,Zo,en,tn,on,nn,Xe,rn,sn,pe=b(()=>{"use strict";se();S();Et();Xo();G=!1,Zo=!0,en=[],tn=()=>({...!G&&{consentedToCookies:null},...!G&&{videoUrls:[]},...!G&&{vastTags:[]},...!G&&{buildVastTag:Yo},...!G&&{requestPrebidUrl:Je},...!G&&{consentQueue:[]}}),on=e=>!G&&e,nn=()=>{let e=d("activateTimingTracker"),t=d("deployId")||"",o=!G&&e&&!en.includes(t);return en.push(t),o},Xe=()=>{let e=d("checkForConsent")&&!G,t=f("consentStatus")===x.LEGITIMATE_INTERREST,o=f("consentedToCookies");return{decideNow:!e||e&&o||t,waitChoise:e&&!o&&!t}},rn=()=>!G,sn=()=>{let e=!G&&Zo;return Zo=!1,e}});var Pt,an,Ze,et=b(()=>{"use strict";y();te();Qo();S();pe();Pt=()=>{let e=d("waitForContxt"),t=f("contxtFetched");return d("activateConceptTargeting")&&e&&Number.isInteger(e)&&!t},an=()=>{let e=f("contxtRequestQueue")||[];e.forEach((t,o)=>{e[o]()}),globalThis.concept.contxtRequestQueue=[]},Ze=async()=>{try{let e,t=d("waitForContxt");Pt()&&t&&(e=setTimeout(()=>{s("Timeout expired for Contxt"),an()},t));let o=d("reportTrackingAs"),n=d("disableConceptLoads"),i=d("activateDentsuDMP");globalThis.concept.contxtFetched=!1;let r=document.location.href;if(!r||r.includes("safeframe")){C("We can not determine the source url");return}let l=`https://prod-contxt-api-app-service.azurewebsites.net/targeting?url=${r}`;o&&!n&&(l=`${l}&site=${o}`);let c={contxt:null,IAB1:null,IAB2:null};return fetch(l).then(p=>p.json()).then(p=>{if(Array.isArray(p.audiences)&&p?.audiences.length>0&&(c.contxt=p.audiences,i)){let{waitChoise:m}=Xe(),T=()=>Ko({contxt:p.audiences,logger:s});m?Ue(T):T()}["IAB1","IAB2","IAB3","IAB4"].forEach(m=>{p?.[m]?.id&&(c[m]=p[m].id)});let u=f("targeting");return globalThis.concept.contxtFetched=!0,globalThis.concept.targeting={...u,...c},s("Contextual targeting injected"),ee(c),an(),clearTimeout(e),c})}catch(e){return C(`Something went wrong with concept contextual targeting: ${e}`),Promise.reject(e)}}});var ts,cn,ln,dn,wt=b(()=>{"use strict";R();S();y();k();j();ts="https://video.seenthis.se/public/patrik/conceptx/high-impact.min.js",cn=e=>{U(e,globalThis.conceptConfig.seenthisRef||ts);let t=d("seenThisArrowUrl")||"",o=d("seenThisTopScrollTitle")||"Scroll down for more",n=d("seenThisTopScrollPeekAmount")||"70vh",i=d("seenThisMidScrollPeekAmount")||"70vh",r=d("seenThisTopBarHeight")??0;e("seenthis loaded"),globalThis.highImpactJs=globalThis.highImpactJs||{cmd:[]},globalThis.highImpactJs.cmd.push(()=>{globalThis.highImpactJs.setConfig({topBarHeight:r,plugins:["gam"],zIndex:99}),globalThis.highImpactJs.setTemplateConfig("topscroll",{title:o,arrowUrl:t,peekAmount:n}),globalThis.highImpactJs.setTemplateConfig("midscroll",{peekAmount:i,zIndex:99})})},ln=[],dn=e=>{let t=q(),o=X(e.sizes,t);if(!o){s(`Viewport no good for ${e.divIdOnPage}`);return}let n={slot:e.path,template:e.seenThisTemplate,sizes:o[1],adUnitId:e.divIdOnPage,waitForAdSignal:!0};globalThis.highImpactJs?.initialized?globalThis.highImpactJs.defineSlot(n):(ln.push(n),globalThis.highImpactJs.cmd.push(()=>{ln.forEach(i=>{globalThis.highImpactJs.defineSlot(i)})}))}});function as({document:e,adUnit:t,refreshFunction:o,name:n}){let i="scheduleForLater",r=t.divIdOnPage,l={root:null,rootMargin:"0px",threshold:d("refreshInview")||.25},c=e.getElementById(r);if(c&&c.childNodes&&c.childNodes[0]&&c.childNodes[0].constructor.name==="HTMLDivElement"&&(s("If unit is in view will be checked by childNodes[0]"),c=c.childNodes[0]),Lt({el:c})){pn(t);let g=`refreshOnNextInView -> ${r} refresh directly nr ${t.targeting.refresh}`;s(g),o({names:[n],caller:i})}else ce({observerConfig:l,element:c,excutionFunction:(g,u)=>{g.isIntersecting&&(pn(t),s(`refreshOnNextInView -> ${r} refresh for scroll nr ${t.targeting.refresh}`),o({names:[n],caller:i}),u.unobserve(c))}})}var un,gn,os,tt,ns,fn,Ot,ot,Z,mn,is,pn,Ee,rs,Pe,ss,J,X,St,ls,cs,hn,bn,ds,ps,Tn,xt,Cn,us,vn,Rt,An,De,j=b(()=>{"use strict";y();R();S();fo();te();qe();Te();K();ze();Ke();et();wt();un=e=>new Promise(t=>setTimeout(t,e)),gn=(e,t,o)=>{let n=X(e,q()),i=n&&n[1][0];if(!Array.isArray(i))return;let[r,a]=i;s(`Showing overlay on ${t}`);let l=P(o);_o(l,r,a)},os=async(e,t)=>new Promise(function(o){s(`Looking for ${e} `,"conceptads"),document.querySelector(e)&&o(!0);let n=setTimeout(()=>{let i=document.querySelector(e);clearTimeout(n),o(i)},t)}),tt=(e,t)=>(e.order||(e.order=1/0),t.order||(t.order=1/0),e.ordert.order?1:0),ns=e=>(!e.updateIfEmpty||e.updateIfEmpty.length===0)&&(!e.dependencies||e.dependencies.length===0)&&!e.divExcluser,fn=async(e,t)=>{let o=O(e);if(!o)return!1;let n=o;return ns(o)?n:o.divExcluser&&o.excluserTimeout?(s(`Gonna wait for ${o.divExcluser}`),await os(o.divExcluser,o.excluserTimeout)?!1:n):["Initial","Async display"].includes(t)||Ot()?!1:n},Ot=()=>{let t=f("eventLog").filter(n=>n.list==="Event recieved").map(n=>n.msg);return ls({events:t,strings:[E.SKIN_INIT,E.MACRO_UNLOAD,E.SIDESKIN_INIT]})},ot=e=>{let t=q(),o=X(e,t);return!(Array.isArray(o)&&o[1].length===0)},Z=e=>{let t=e,o=/%%(\w+)_(\w+)%%/,n=e.match(o);if(n){let i=f("targeting"),[r,a,l]=n;a==="KEY"&&(t=t.replaceAll(r,i[l]))}return t},mn=({definition:e})=>{let{path:t,size:o,updateIfEmpty:n,refresh:i,dependencies:r,lazyload:a,targeting:l,divIdOnPage:c,id:p,excluserTimeout:g,divExcluser:u,cookieLessPath:m,setHeigthOfParent:T,anchor:v,prebidBid:A,prebidSizes:I,seenThisTemplate:h,prebidAllowNative:w,setUniqueTargeting:F,rootMargin:W}=e;if(typeof t>"u")throw Error("Please setup the definition path for the adunit");if(typeof o>"u")throw Error("Please setup the definition size for the adunit");if(typeof i>"u")throw Error("Please setup the refreh option");a&&r&&r.length>0&&C("You should not have lazyload and dependencies - it can/will cause two refresh, think about it"),a&&n&&n.length>0&&C("You should not have lazyload and wait for another ad unit - it can/will cause two refresh, think about it"),t&&(t=Z(t)),o=(_=>_.map(Y=>(Y[0]=Y[0].map(Cr=>parseInt(Cr)),Y)))(o);let Le=q(),Ne=X(o,Le);Array.isArray(Ne)&&Ne[1].length===0&&C("Unit doesnt have appropriate sizes for this viewport -- This will not be defined later"),I&&(Ne?(I=I.filter(_=>Ne[1].some(Y=>is(Y,_))&&typeof _[0]!="string"),s("prebidSizes changed by GAM viewport rule","pbjs")):I=[]),l||(l={});let Tt=d("controlKey");d("setControlGroup")&&Tt&&(l[Tt]=f(Tt));let H={path:t,sizes:o,refresh:i,dependencies:r,updateIfEmpty:n,divIdOnPage:c,id:p,lazyload:a,...h&&{seenThisTemplate:h},...w&&{prebidAllowNative:w},...m&&{cookieLessPath:m},...l&&{targeting:l},...v&&{anchor:v},...A&&{prebidBid:A},...I&&{prebidSizes:I},...T&&{setHeigthOfParent:T},...W&&{rootMargin:W},...F&&{setUniqueTargeting:F},...u&&{divExcluser:u,excluserTimeout:g||500}},Tr=H?.prebidBid?.map(_=>{if(_.splitBid){let{bidder:Y}=_;return[{..._,bidder:`${Y}_client`,splitBid:!1},{..._,bidder:`${Y}_s2s`,splitBid:!1}]}return _}).flat(1/0)||[];H.prebidBid=Tr;let Zt=H.prebidBid?H.prebidBid.filter(_=>!_.cookieless).map(_=>go(_)):[];h&&dn(H);let eo=Zt?Oo({path:t,bids:Zt,sizes:H.prebidSizes,prebidAllowNative:H.prebidAllowNative}):null;return eo&&(H.prebidSettings=eo),H},is=(e,t)=>e.length===t.length&&e.every((o,n)=>o===t[n]),pn=e=>{e.targeting.refresh=Number.isInteger(e.targeting.refresh)?(e.targeting.refresh||0)+1:1;let t=e.targeting.refresh;Se(e.slot,"refresh",t),Se(e.slot,"flipMe",!0),s(`initializeRefreshTargeting -> Setting refresh = ${t} for ${e.divIdOnPage}`)},Ee=e=>{e.refreshTimer&&(e.refreshTimer=void 0,clearTimeout(e.refreshTimer))},rs=({name:e,adUnit:t,refreshFunction:o})=>{if(s(`Timer for ${t.divIdOnPage} has past`),t.refreshBlocked){s("The current order does not allow refresh");return}if(t.loadedFirstTime||!t.lazyload)as({document,adUnit:t,refreshFunction:o,name:e});else{let n=`refreshOnNextInView -> unit (${t.divIdOnPage}) not loaded first time`;s(n),Pe({name:e,adUnit:t,refreshFunction:o})}},Pe=({name:e,adUnit:t,refreshFunction:o})=>{Ee(t),t.targeting=t.targeting||{};let n=t.refresh/1e3;s(`refreshOnNextInView -> refresh (${t.divIdOnPage}) in ${n}s or next inview after that`);let i=()=>rs({name:e,adUnit:t,refreshFunction:o});t.refreshTimer=setTimeout(i,t.refresh)},ss=e=>{let t=q(),o=e.filter(i=>!ae({adunitId:i.id})).filter(i=>{let r=X(i.sizes,t);return St(r)});return{unitsCodes:o.map(i=>i.path||i.getAdUnitPath()),slotsToUse:o}},J=async e=>{let{unitsCodes:t,slotsToUse:o}=ss(e);s(`refreshAdUnit -> ${t} `,"conceptads");let n=d("usePrebid");globalThis.concept.consentedToCookies===!1&&(s("We are not gonna use prebid, since the user said no to cookies"),n=!1);let i=()=>n?Ro(o):In(t,o);Pt()?(s("Waiting for contxt"),globalThis.concept.contxtRequestQueue.push(i)):(s("Not waiting for contxt"),i())};X=(e,t)=>{if(!e)return;let o=[[0,0],[]];return e.forEach(n=>{let i=parseInt(n[0][0]);t>=i&&i>=o[0][0]&&(o=n)}),o},St=e=>e[1].length>0,ls=({events:e,strings:t})=>{let o=t.map(r=>r.toLowerCase()),n=e.map(r=>r.toLowerCase()),i=r=>new RegExp(o.join("|")).test(r.toLowerCase());return n.filter(r=>i(r)).length>0},cs=e=>No([e.testA,e.testB]).adunitId===e.testA.adunitId?e.testB:e.testA,hn=()=>{let e=d("ABTesters");if(!e)return;let t=e,o=[];t.filter(n=>!n.alreadyCalculated).forEach(n=>{o.push(cs(n).adunitId),n.alreadyCalculated=!0}),ps(o)},bn=e=>d("ABTesters").find(o=>{let{testA:n,testB:i}=o;return n.adunitId===e||i.adunitId===e}),ds=e=>{if(!e)return;let t=bn(e),o="testB";t.testA.adunitId===e&&(o="testA"),s(`Using the test value = ${o}`,"test");let n=d("adUnits");if(!n){s("no adunits ready to be a/b tested");return}let i=n.find(r=>r.id===e);i&&(i.targeting?i.targeting.test=o:i.targeting={test:o})},ps=e=>{if(e.length>0){let t=i=>{let r=f("discardedForTest"),a=!e.includes(i.id);!a&&r&&globalThis.concept.discardedForTest.push(i);let l=bn(i.id);return a&&l&&ds(i.id),a};["strossles","readpeaks","adUnits"].forEach(i=>{let r=d(i);r&&Array.isArray(r)&&$e(i,r.filter(t))});let n=`${e.join(",")} Has been removed in connection with A/B Test`;s(n,"test")}},Tn=e=>{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o="";for(let n=0;n{let o=JSON.parse(JSON.stringify(e));for(let n in t)t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?o[n]=xt(o[n]||{},t[n]):o[n]=t[n];return o},Cn=e=>JSON.parse(JSON.stringify(e)),us=(e,t)=>{let o=0;for(let r=0;r{let t=Qe(e,!0);return t?us(t,32):null},Rt=(e,t)=>{if(!t)return e;for(var o,n=t.split("."),i=0,r=n.length-1;i{let t={};for(let o in e)e.hasOwnProperty(o)&&(t[o]=`${e[o]}`);return t},De=e=>{let t={};for(let[o,n]of Object.entries(e))n&&(t[o]=Array.isArray(n)?n:[n]);return t}});function Pn(e){let t=!1;if($t())t=!0,e();else{let n=function(){t||(t=!0,document.removeEventListener("DOMContentLoaded",n,!1),window.removeEventListener("load",n,!1),e())};var o=n;document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)}}function On(){return!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window)||!("intersectionRatio"in window.IntersectionObserverEntry.prototype)?(s("Can not use the IntersectionObserver"),C("Can not use the IntersectionObserver"),!0):!1}function z(e,t,o=!1){let n=document.querySelectorAll.bind(document),i=o?e:ms(e),r,a;return new Promise(l=>{t&&Number.isInteger(t)&&(s(`Timing ${e} out in ${t} ms`),r=setTimeout(function(){s(`${e} TIMED OUT due to failsafe_timeout`,"warning"),l(null)},t));let c=n(i),p=c&&hs(c)?c.length>0:!0;if(c&&p){r&&clearTimeout(r);let g=Array.from(c,u=>u.id);l(g)}else if(d("avoidMutationObserver")){s("Interval observer started for dublications");let u=setInterval(()=>{let m=n(i);if(m){s(`Found from intervaller ${i}`),clearInterval(u),r&&clearTimeout(r);let T=Array.from(m,v=>v.id);l(T)}},100)}else if(s(`Relying on MutationObserver to find ${e}`),a=new MutationObserver(u=>{let m=n(i);if(m&&m.length>0){s(`Found from mutationObserver ${i}`),a.disconnect(),r&&clearTimeout(r);let T=Array.from(m,v=>v.id);l(T)}}),document.body){let u=document.body,m={childList:!0,subtree:!0};a.observe(u,m);return}else s(`Could not wait for ${e} as there is no docuemnt body`)})}var yn,Nt,En,Sn,Ye,kt,wn,Lt,_t,P,xn,ce,gs,jt,Rn,fs,Ln,q,Ut,$t,Me,Nn,nt,ms,hs,bs,Qe,R=b(()=>{"use strict";y();lo();S();Be();j();Q();Nt=e=>document.body.appendChild(e),En=({targetingFunction:e})=>{let t=o=>{let{coords:{longitude:n,latitude:i,accuracy:r}}=o,a={lat:`${i}`,long:`${n}`,accuracy:`${r}`};globalThis.concept.targeting={...globalThis.concept.targeting,...a},s("Geo is being set"),e(a)};navigator.geolocation&&navigator.geolocation.getCurrentPosition(t)},Sn=!1,Ye=e=>Sn?Promise.resolve():(Sn=!0,new Promise(t=>{document.addEventListener(e,function(){return t()},{once:!0}),globalThis.concept.listenerCreated=!0,Fo()})),kt=(e,t)=>{document.addEventListener("DOMContentLoaded",function(){e(t)})};wn=e=>e?e.getBoundingClientRect().top:!1,Lt=({el:e,parentCheck:t=!1})=>{if(!e)return!1;let{width:o,height:n,bottom:i,top:r,left:a,right:l}=e.getBoundingClientRect();return o===0&&n===0&&!t?Lt({el:e.parentNode,parentCheck:!0}):!document.hidden&&r>=0&&a>=0&&i<=Ut()&&l<=q()},_t=(e={adUnits:[]})=>{let t={};try{let o=Math.round(window.devicePixelRatio*100),n=window.frameElement?window.frameElement.baseURI:"",i=window.location.toString(),r=i.includes("http")?i:n,a=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,c=new RegExp(a).exec(r);if(c){let v=c[4]||"",A=(c[5]||"").replace(/(.)\/$/,"$1"),h=(c[7]||"").replace(/\=/gi,":").split("&");t={UrlHost:v,UrlPath:A,UrlQuery:h,browserZoomLevel:o+""}}e.postSetup?t.pb=["post"]:t.entry="first";let p=e.customTargeting;p&&(t={...t,...An(p)});let g=Rt(window,d("siteTargetingKey")||"siteTargeting");g&&typeof g=="object"&&(t={...t,...g});let u=e.urlTargetingSearchings;u&&Array.isArray(u)&&u.forEach(v=>{let{searchFor:A,valueName:I,keyName:h}=v;r.includes(A)&&(t[h]=I)});let m=e.lookForGlobal;return m&&Array.isArray(m)&&m.forEach(v=>{let{name:A,globalVar:I}=v,h=Rt(window,I);h&&(t[A]=typeof h=="string"?h.split(",").map(w=>w.trim()):h)}),globalThis?.pbjs?.version&&(t.prebidVersion=globalThis?.pbjs?.version),window.location.pathname.split("/").forEach((v,A)=>{A>0&&A<4&&(t["path"+A]=v.slice(-40))}),s("Return global targeting object"),t}catch{s("Something went wrong with the global targeting");return}};P=e=>document.getElementById(e),xn=({elementId:e,refreshFunc:t,refreshWhenReadyFunction:o,scheduleLaterFunc:n})=>{let i=P(e);return i&&fs({element:i,refreshFunc:t,scheduleLaterFunc:n,refreshWhenReadyFunction:o}),null},ce=({element:e,excutionFunction:t,observerConfig:o})=>{if(!(e instanceof Element))return;let n=(r,a)=>{r.forEach(l=>t(l,a))},i=new IntersectionObserver(n,o);return i.observe(e),i},gs=({adUnit:e,scheduleLaterFunc:t,refreshWhenReadyFunction:o})=>{let{refreshTimer:n,divIdOnPage:i}=e;clearTimeout(n),s(`resetRefreshCounter --> resetting timer: ${i}`),t({name:i,adUnit:e,refreshFunction:o})},jt=e=>{let t=d("globalLazyAttribute"),o=d("globalLazyloadValue");return!t||!o?!1:P(e)?.dataset[t]===o},Rn=()=>{if(yn){s("BfCache listener already active");return}yn=window.addEventListener("pageshow",e=>{e.persisted&&(s("BFCACHE hit *****"),globalThis.concept.bfCache=!0,globalThis.concept.refreshAllActiveAdunits())})},fs=({element:e,refreshFunc:t,scheduleLaterFunc:o,refreshWhenReadyFunction:n})=>{let i=a=>{let l=a.target;if(a.isIntersecting){s(`refreshOnIntersection -> ${l.id} is intersection:`);let c=O(l.id);if(!c){C(`Could not find Adunit in adunit list ${l.id}`);return}let{lazyload:p,alreadyLoaded:g,refreshTimer:u}=c,m=ae({adunitId:l.id});jt(l.id)&&(p=!0,c.lazyload=!0),p&&!g&&!m&&(s("refreshOnIntersection -> Not loaded yet, so we refresh"),c.alreadyLoaded=!0,c.loadedFirstTime=!0,u&&gs({adUnit:c,scheduleLaterFunc:o,refreshWhenReadyFunction:n}),t([c]))}},r=de(e.id);ce({element:e,excutionFunction:i,observerConfig:r})},Ln=(e,t,o)=>{let n=q();return e&&t&&(n<=e||n>=t)?(s(` ${o} not meeting the vierwport rules!!`),!1):!0},q=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Ut=()=>window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,$t=()=>["complete","loaded","interactive"].includes(document.readyState),Me=()=>ao(),Nn=(e,t)=>{let o=e.split("."),n=globalThis;for(let i=0;ie?e.length===0?(C("nodelist empty"),null):e[0]:(C("No nodelist found"),null),ms=e=>{let t=e;return e.includes(".")&&(t=t.split(".").join("\\."),s(`Found a ., now looking for ${t}`)),t},hs=e=>NodeList.prototype.isPrototypeOf(e);bs=["CookieConsent","CookieInformationConsent","_ga","eupubconsent-v2"],Qe=(e,t=!1)=>{let o=[];t&&(o=[...bs]),e&&o.unshift(e);let n="";return document.cookie.split(";").forEach(function(i){let[r,a]=i.split("=");o.includes(r.trim())&&(n=a)}),n}});function kn(e){let o=`https://dw6vol2k7d4iu.cloudfront.net/1x1.png${e}&someunique=${B()}`;oe(o,"concept-loads")}var oe,_n,jn,ue=b(()=>{"use strict";y();R();K();oe=(e,t)=>{let o=document.createElement("img");o.setAttribute("src",e),o.setAttribute("style","display:none"),o.setAttribute("alt",t),o.setAttribute("id","concept-pixel");try{document.body?Nt(o):kt(Nt,o)}catch(n){console.error("Cant read document.body in append pixel",n)}};_n=e=>{try{document.body?kn(e):kt(kn,e)}catch(t){console.error("Cant read document.body",t)}},jn=({lineItemId:e,creativeId:t,adunitCode:o})=>{let n=globalThis.conceptConfig.reportTrackingAs;if(!n||!globalThis?.concept?.targeting)return s("Cant track when no name to track on","concept"),null;let a=`${`https://d23oz2xvzoo5zg.cloudfront.net/imp_track.gif?site=${n}&lineItemId=${e}&creativeId=${t}&adunitCode=${o}`}&someunique=${B()}`;return oe(a,"advanced-tracking"),a}});var Un,$n,Fn=b(()=>{"use strict";ue();Un=()=>globalThis.conceptConfig.sendDataToAdformDSP,$n=({logger:e})=>{window._adftrack=Array.isArray(window._adftrack)?window._adftrack:window._adftrack?[window._adftrack]:[];let t="concept_dmp",o={HttpHost:"track.adform.net",pm:923403,divider:encodeURIComponent("|"),pagename:encodeURIComponent(t),order:{}};globalThis.concept?.targeting?.contxt&&globalThis.conceptConfig.targetingToDMP?.push("contxt--sv7"),globalThis.conceptConfig.targetingToDMP?.forEach(i=>{let[r,a]=i.split("--");if(r==="format"){let l=globalThis.conceptConfig.adUnits.map(p=>p.targeting?.format).filter(Boolean).map(p=>p?.split(",").join("|")),c=[...new Set(l)].join("|");o.order[a]=c}else r==="contxt"?globalThis.concept.targeting[r]&&(o.order.itms=globalThis.concept.targeting[r].map(l=>({[a]:l}))):globalThis.concept.targeting[r]&&(o.order[a]=globalThis.concept.targeting[r])}),window._adftrack.push(o),function(){var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://s2.adform.net/banners/scripts/st/trackpoint-async.js";var r=document.getElementsByTagName("script")[0];r.parentNode&&r.parentNode.insertBefore(i,r)}();let n=`https://track.adform.net/Serving/TrackPoint/?pm=923403&ADFPageName=${t}&ADFdivider=|`;oe(n,"concept-dmp"),e("DMP pixel loaded")}});var Mn,Ts,Bn=b(()=>{"use strict";R();S();y();Be();Mn=({injectionFunction:e})=>{let t=d("readpeaks");!d("disableReadpeaks")&&t&&t?.length>0&&t.forEach(n=>{Ts({readpeakConf:n,injectionFunction:e})})},Ts=async({readpeakConf:e,injectionFunction:t})=>{s(`Lazyloading a readpeak item in ${e.divIdOnPage}`,"readpeak");let o=d("readpeaks"),n=document.createElement("iframe");n.src=e.src,globalThis.concept.tcString&&(n.src=`${n.src}&gdpr_consent=${globalThis.concept.tcString}`),n.id=e.readpeakId,n.setAttribute("style",e.style);let i=de(null),r=(g,u)=>{let m=g.target;if(g.isIntersecting&&o){let T=o.find(Le=>Le.divIdOnPage===m.id),{fromViewport:v,toViewport:A}=T,I=parseInt(v),h=parseInt(A),w=`${T.divIdOnPage}`;if(!Ln(I,h,w))return;let W=T&&P(T.divIdOnPage);W&&W.hasChildNodes()===!1&&T?(T.loadedTimes?T.loadedTimes=T.loadedTimes+1:T.loadedTimes=1,m.appendChild(n),globalThis.__rpads=globalThis.__rpads||[],globalThis.__rpads.push(T.readpeakId),s(` ${T.divIdOnPage} inserted!!`,"readpeak"),t(s),u.unobserve(P(T.divIdOnPage))):s("Readpeak container is not empty :O!","readpeak")}},a=f("failsafe_timeout"),l=e.divIdOnPage,c=await z(`#${l}`,a,!0);return nt(c)?([...document.querySelectorAll(`#${l}`)].forEach(u=>{ce({observerConfig:i,element:u,excutionFunction:r})}),"ok"):(s(`Could not insert into ${l}`,"error"),"could not find")}});var Dn,Cs,qn=b(()=>{"use strict";R();S();y();Be();Dn=({injectionFunction:e})=>{let t=d("strossles");t&&t?.length>0&&t.forEach(o=>{Cs({strossleConfig:o,injectionFunction:e})})},Cs=async({strossleConfig:e,injectionFunction:t})=>{let o=e.divIdOnPage,n=d("strossles");s(`Lazyloading a strossle item in ${o}`,"strossle");let i=de(null),r=(c,p)=>{let g=c.target;if(c.isIntersecting&&n){let u=n.find(m=>m.divIdOnPage===g.id);u&&!u.alreadyLoaded&&(u.alreadyLoaded=!0,globalThis.strossle=globalThis.strossle||function(){(strossle.q=strossle.q||[]).push(arguments)},globalThis.strossle(u.strossleId,`#${u.divIdOnPage}`),s(` ${u.divIdOnPage} inserted!!`,"strossle"),t(s),p.unobserve(P(u.divIdOnPage)))}},a=f("failsafe_timeout");return await z(`#${o}`,a,!0)?([...document.querySelectorAll(`#${o}`)].forEach(p=>{ce({observerConfig:i,element:p,excutionFunction:r})}),"ok"):(s(`Could not insert into ${o}`,"error"),"could not find")}});var Gn,zn=b(()=>{"use strict";k();Gn=(e,t)=>{U(e,`https://t.seedtag.com/t/${t}.js`),e("seedtag Injected")}});var Wn,Hn,Vn=b(()=>{"use strict";S();({injectCustomAsyncScript:Wn}=(k(),ke(Ae))),Hn=e=>{Wn(e,"https://advertising-cdn.dpgmedia.cloud/native-renderer/main.js"),e("Seemleas renderer Injected");let t=d("seemlessTemplateRef");Wn(e,t),e("Seemleas templates Injected")}});var vs,Kn,As,Is,ys,Qn,Ss,Jn,Yn=b(()=>{"use strict";y();ue();vs=e=>{let t=["https://d2uoe7nnxrtbfx.cloudfront.net/containerHistory","https://cncpt-central.com/containerHistory","https://cncptx.com/pubscript","/conceptads"],o=["wp-content/cache","https://tags.adnuntius.com"],n=["prod.js","dev.js"],i=t.some(l=>e.includes(l)),a=o.some(l=>e.includes(l))&&n.some(l=>e.includes(l));return i||a?e:!1},Kn=navigator.connection||navigator.mozConnection||navigator.webkitConnection,As=(e,t,o)=>{let n=e.find(i=>i.msg===t);return n?parseFloat(n.secondCount+o):0},Is=(e,t,o)=>{let n=e.find(i=>i.msg.startsWith(t));return n?parseFloat(n.secondCount+o):0},ys=(e,t,o)=>{let n=e.find(i=>i.msg.endsWith(t));return n?parseFloat(n.secondCount+o):0},Qn=(e,t)=>{let o=e[t-1]?.measureTime;return o<=0&&t>1?Qn(e,t-1):o},Ss=e=>{let t={},o=parseFloat("0.0"),n=parseFloat(`${e.scriptLoadTime.startTime/1e3}`),i=parseFloat(`${n+e.scriptLoadTime.duration/1e3}`),r=e.scriptLoadTime.responseEnd/1e3,a=h=>Is(e.conceptEvents,h,r),l=h=>ys(e.conceptEvents,h,r),c=As(e.conceptEvents,"Consent recieved",r),p=a("injectNewAds execution requested"),g=a("prebid auction started"),u=l(" Requested"),m=a("slotResponseReceived"),T=l(" creative iframe loaded"),v=[{eventName:"Page_start",measureTime:o},{eventName:"ConceptAds_requested",measureTime:n},{eventName:"ConceptAds_downloaded",measureTime:i},{eventName:"Consent_recieved",measureTime:c},{eventName:"injectad_recieved",measureTime:p},{eventName:"First_prebid_auction_Started",measureTime:g},{eventName:"First_GAM_request_initiated",measureTime:u},{eventName:"First_response_from_GAM",measureTime:m},{eventName:"First_ad_loaded",measureTime:T}],A=[];v.forEach((h,w)=>{h.measureTime!==null&&(w>0&&h.measureTime{if(w===0)t[h.eventName]=h.measureTime;else{let F=Qn(A,w),W=h.measureTime===0?0:h.measureTime-F;t[h.eventName]=W}});let I=new URL("https://d22i50b931b1j0.cloudfront.net/timing_track.gif");if(Kn){let{downlink:h}=Kn;h&&I.searchParams.set("downlink",h)}return globalThis?.conceptConfig?.reportTrackingAs&&I.searchParams.set("reportTrackingAs",globalThis.conceptConfig.reportTrackingAs),Object.keys(t).forEach(h=>{I.searchParams.set(h,t[h])}),I.href},Jn=()=>{let e=globalThis.performance.getEntriesByType("resource");e||s("Could not read performnce timing");let t=e.find(r=>vs(r.name));if(!t){s("Could not find correct script src","warning");return}let o=globalThis.concept.eventLog.filter(r=>r.list==="Timing point"),i=Ss({scriptLoadTime:t,conceptEvents:o});oe(i,"timing-pixel"),s("Timing pixel loaded")}});var Es,it,Ps,rt,Xn,Zn,Ft,ei,ti,oi,ni,ii,ri,si,ai,st=b(()=>{"use strict";y();S();Te();j();Q();Yn();pe();Es=e=>{let t=0;return e.forEach((o,n)=>{o.id.includes("google_ads_iframe_")&&(t=n)}),t},it=e=>{let t=e&&e.placement||null;t&&(s(`${t} Requested`,"gpt"),M(`${t} Requested`))},Ps=(e,t)=>{let o=`[id*='${t.adunitId}'] iframe`,n=document.querySelectorAll(o),i=Es(n),r=n[i],l=(r.height?`${r.height}px`:null)||window.getComputedStyle(r,null).height,c=document.querySelector(`[id*='${t.adunitId}']`);if(l==="1px"){e("We will NOT set heigth to 1, as its prebid","conceptads");return}let p=r?.parentElement?.parentElement;if(p&&l){let g=`Setting height of divid ${t.adunitId} to: `;e(g,"conceptads");let u=p.style;u.height=l,u.minHeight=l,c.style.height=l,c.style.minHeight=l}else e("Not gonna set height (no iframe or height)","conceptads")},rt=e=>{globalThis.concept.adsloaded=globalThis.concept.adsloaded+1;let t=e&&e.placement||null;if(!t)return;let o=" creative iframe loaded";s(o,"gpt"),M(o),nn()&&Jn();let n=O(t);n&&n.setHeigthOfParent&&Ps(s,e),L(`${E.SLOT_LOADED} - ${t}`),ve(t),n&&He({name:t,divId:n.divIdOnPage}),Ft(t)},Xn=e=>{for(let t of globalThis.concept.updateWhenResolved.keys())if(t===e){let o=O(t);o?(s(`Gonna refresh: ${t} beacuse dependant is resolved`),J([o])):s(`Could not refresh: ${t} As it was not found in internal config`)}},Zn=e=>{for(let[t,o]of globalThis.concept.updateIfEmpty.entries())o===e&&(s(`${o} has just been loaded - and its empty ${t}`),globalThis.concept.updateIfEmpty.delete(t),s(`${e}: now has ${globalThis.concept.updateIfEmpty.size} empty dependencies we should resolve`),setTimeout(function(){let n=O(t);n&&(ae({adunitId:t})||(s(`No skin found, refreshing ${t}`),J([n])))},10))},Ft=e=>{for(let[t,o]of globalThis.concept.updateWhenResolved.entries())o===e&&(s(`${o} has just been loaded - if no skin we should refresh ${t}`),globalThis.concept.updateWhenResolved.delete(t),s(`${e}: now has ${globalThis.concept.updateWhenResolved.size} dependencies we should resolve`),setTimeout(function(){let n=Ot(),i=O(t);if(i){let r=ae({adunitId:t});!n&&!r&&(s(`No skin found, refreshing ${t}`),J([i]))}},10))},ei=e=>e.frameElement&&e.frameElement.id,ti=(e,t)=>{let o=ei(t);L(`${E.DESKTOP_TOPSCROLL} - ${o}`)},oi=(e,t)=>{try{let o=ei(t);L(`${E.MACRO_UNLOAD} - ${o}`)}catch{L(`${E.MACRO_UNLOAD} - Iframe error`)}if(e&&e.placement){s(` Macro: unload ${e.placement}`,"gpt");return}},ni=()=>{L(E.SKIN_INIT)},ii=(e,t)=>{Do(t.window),L(E.GET_CONCEPTADS)},ri=(e,t)=>{let{playerId:o}=e;Mo(t.window,o),L(E.GET_VASTTAG)},si=(e,t)=>{let{playerId:o}=e;Bo(t.window,o),L(E.GET_VASTTAG)},ai=()=>{L(E.SIDESKIN_INIT)}});var ws,li,ci,di=b(()=>{"use strict";R();S();se();({injectCustomAsyncScript:ws}=(k(),ke(Ae))),li=()=>d("activateSonar")&&f("consentStatus")===x.FULL_CONSENT,ci=(e,{unitPath:t,elementId:o})=>{let i=window.location.href.split("?")[0].split("#")[0],r=f("tcString"),l=ws(e,"https://macro.adnami.io/macro/gen/adnm.sonar.js",[["data-adnm-gid","d3qa3kx6zxxlra"],["data-adnm-tid",t],["data-adnm-source",i],["data-adnm-gdpr",1],["data-adnm-gdpr-consent",r],["data-adnm-info","concept"]],!1),c=P(o);c&&c.appendChild(l),e("Sonar Injected")}});var pi,ui,gi,fi,mi,Os,xs,Rs,Ls,Ns,hi,bi,Mt,we,Bt=b(()=>{"use strict";y();Te();j();Q();st();ue();S();ne();di();pi=!1,ui=!1,gi=!1,fi=!1,mi=!1,Os=e=>{let t=e.slot.getAdUnitPath(),o=e.slot.getAdUnitPath(),n=e.slot.getSlotElementId();!!d("autoUnloadSlots")&&Ti(o),L(`slotResponseReceived - ${t}`),M(`slotResponseReceived - ${t}`),e.slot.getResponseInformation()||(Ft(n),We({name:t,divId:n}),_e(n))},xs=e=>{let t=e.slot.getSlotId().getId();setTimeout(function(){let o=d("isPassback"),n={type:E.SLOT_REQUESTED,payload:{placement:e.slot.getSlotElementId(),adunitId:t}};o?it(n.payload):window?.top?.postMessage(n,"*")})},Rs=e=>{let t=e.slot.getAdUnitPath(),o=e.slot.getSlotId().getId(),n=e.slot.getSlotElementId(),i=e.slot.getResponseInformation();L(`(slotOnload) ${t} - winning lineitem = ${i?i.lineItem:"no info"}`);let r={type:E.SLOT_LOADED,payload:{placement:n,adunitId:o,deployId:globalThis.conceptConfig.deployId||"default"}};setTimeout(function(){d("isPassback")?rt(r.payload):window?.top?.postMessage(r,"*")})},Ls=e=>{let t=e.slot.getSlotElementId(),o=O(t);e.isEmpty&&Zn(t);let n=e.campaignId||"",i=e.creativeId||e.sourceAgnosticCreativeId,r=e.lineItemId||e.sourceAgnosticLineItemId;e.isEmpty&&(n="unfilled",i="unfilled",r="unfilled");let a=`Orderid: (${n}), LineitemId: (${r}), creativeId: (${i})`;if(s(a,"gpt"),globalThis.conceptConfig.useAdvancedTracking&&jn({creativeId:i,lineItemId:r,adunitCode:t}),o){i!=="unfilled"&&li()&&ci(s,{unitPath:e.slot.getAdUnitPath(),elementId:t});let l=d("allowOrderRefresh")||[];l.length>0&&i!=="unfilled"&&(l.includes(`${n}`)||(o.refresh=0,o.refreshBlocked=!0,Ee(o))),o.rendered=!0;let c={isEmpty:e.isEmpty,size:null};e.isEmpty||(c.size={width:e.size[0],height:e.size[1]})}},Ns=e=>{let t=e.slot.getSlotElementId(),o=e.slot.getAdUnitPath(),n=e.slot.getOutOfPage(),i=O(t);i||s("Could not find adunit in slotViewable"),n&&(s("An outofpage unit is being showed"),L(`Out of page loaded - ${o}`)),i&&(i.viewableCount=i?.viewableCount?i.viewableCount+1:1),Uo({divId:t}),s(`impressionViewable: ${t}`,"gpt")},hi=!1,bi=()=>{try{hi||(s("googletagConfigured being queued","gpt"),hi=!0,googletag.cmd.push(function(){if(s("[GOOGLETAG loaded] googletag not configured: Enable DFP services","gpt"),globalThis.concept.updateTargeting(),d("useGoogleLazy")){s("Using google lazyload","gpt");let a=d("fetchMarginPercent")||500,l=d("renderMarginPercent")||200,c=d("mobileScaling")||2,p={fetchMarginPercent:a,renderMarginPercent:l,mobileScaling:c};globalThis.googletag.pubads().enableLazyLoad(p)}globalThis.googletag.pubads().enableSingleRequest(),globalThis.googletag.pubads().disableInitialLoad(),globalThis.googletag.pubads().setCentering(!0),globalThis.googletag.pubads().collapseEmptyDivs(),gi||(gi=we("slotResponseReceived",Os)),fi||(fi=we("slotOnload",Rs)),ui||(ui=we("slotRequested",xs)),pi||(pi=we("impressionViewable",Ns)),mi||(mi=we("slotRenderEnded",Ls));let t=d("page_url"),o=f("targeting"),n=t||o?.UrlHost;globalThis.googletag.pubads().set("page_url",n);let i=d("disableAutoPPID"),r=d("fingerprinting");if(!i&&!r){let a=d("setPPIDFromCookie"),l=vn(a);l&&Mt(l)}globalThis.googletag.enableServices()}))}catch(e){console.error(e),C("Could not setup googletag globals")}},Mt=e=>{googletag.cmd.push(()=>{s("Setting PPID"),globalThis.concept.PPID=e,Wo(e),googletag.pubads().setPublisherProvidedId(e)})},we=(e,t)=>globalThis.googletag.pubads().addEventListener(e,t)});var ks,Ci,_s,vi=b(()=>{"use strict";k();Bt();ks="https://cdn.jsdelivr.net/npm/@thumbmarkjs/thumbmarkjs/dist/thumbmark.umd.js",Ci=async e=>{U(e,ks,[],!0,async()=>{e("Fingerpring loaded");let o=await _s();Mt(o)})},_s=async()=>globalThis.ThumbmarkJS.getFingerprint()});var Ae={};yr(Ae,{execute3rdparties:()=>lt,getScriptTag:()=>at,inject:()=>le,injectAdnami:()=>Dt,injectBrowsi:()=>yi,injectCustomAsyncScript:()=>U,injectPrebid:()=>At,injectReadpeak:()=>Ai,injectStrossle:()=>Ii,insertAsFirstScript:()=>Oe,loadSync:()=>qt,loadThirdPartyLibsWithCookiesOneTimeLoad:()=>ct});function U(e,t,o=[],n=!0,i=()=>Promise.resolve()){let r=at();if(r.id="Custom script",r.async=!0,r.type="text/javascript",r.src=t,o.forEach(a=>{let[l,c]=a;r.setAttribute(l,c)}),i&&(r.onload=function(){i()}),n)Oe({scriptTag:r}),e("Custom script Injected");else return r}function qt(e,t,o=""){var n=at();t&&(n.id=t),o&&n.setAttribute("referrerpolicy",o),n.type="text/javascript",n.src=e,Oe({scriptTag:n})}var at,Oe,le,At,Ai,Ii,Dt,yi,lt,ct,k=b(()=>{"use strict";y();Fn();Bn();qn();zn();pe();Vn();S();vi();at=()=>document.createElement("script"),Oe=({scriptTag:e})=>{let t=document.getElementsByTagName("script")[0];t&&t.parentNode?t.parentNode.insertBefore(e,t):document.head.appendChild(e)},le=(e,t,o=!1)=>{(function(n,i){let r=n.createElement(i);r.type="text/java"+i,r.src=e,Oe({scriptTag:r}),o&&(r.async=o)})(t,"script")},At=(e,t)=>{le(t,document,!0),e("prebid Injected")},Ai=e=>{qt("https://app.readpeak.com/js/rp-if.js","Readpeak"),e("Readpeak Injected")},Ii=e=>U(e,"https://assets.strossle.com/strossle-widget-sdk/1/strossle-widget-sdk.js"),Dt=(e,t)=>{window.adsmtag=window.adsmtag||{},adsmtag.cmd=adsmtag.cmd||[],qt(t,"Adnami"),e("Adnami Injected")};yi=(e,t)=>{e("Browsi Injected"),function(){var o=at();o.type="text/javascript",o.async=!0,o.dataset.sitekey=t,o.dataset.pubkey="concept",o.id="browsi-tag",o.src="https://cdn.browsiprod.com/bootstrap/bootstrap.js",Oe({scriptTag:o})}()},lt=()=>{rn()&&(s("Loading 3rdparty DOM injectors"),Mn({injectionFunction:Ai}),Dn({injectionFunction:Ii}))},ct=(e,t)=>{if(sn()){lt();let{seedtagId:o,browsiSiteKey:n,seemlessTemplateRef:i,disableBrowsi:r}=e;i&&Hn(s),d("fingerprinting")&&Ci(t),Un()&&setTimeout(()=>{$n({logger:s})},500),!r&&n&&yi(s,n),o&&Gn(t,o)}else t("3rd partys already loaded")}});var Si,Ei,Pi,ee,js,Se,Us,In,$s,Fs,wi,Ms,Oi,dt,te=b(()=>{"use strict";y();se();k();K();S();Si=!0,Ei=!0,Pi=e=>{let t=d("tryLimitedAds"),o=d("siteLoadsGpt"),n=d("intoWowScript");if(Ei&&n&&(Ei=!1,e("Execution the intowow script"),new Function(n)()),Si&&!o){let i="https://securepubads.g.doubleclick.net/tag/js/gpt.js";return t?(s("adding event listener to window.consentRecieved"),window.addEventListener("consentRecieved",()=>{f("consentStatus")===x.LEGITIMATE_INTERREST&&(i="https://pagead2.googlesyndication.com/tag/js/gpt.js"),le(i,document,!0)},{once:!0,capture:!0})):le(i,document,!0),Si=!1,e("GPT Injected"),globalThis.googletag}},ee=e=>{googletag.cmd.push(function(){s("GAM targeting being set");let t=[];for(var o in e)if(e.hasOwnProperty(o)){let n=e[o];n&&googletag.pubads().setTargeting(o,n)}t.length>0&&s(`could set value for the keys = ${t.join(",")} (empty)`)})},js=e=>{let t=[[0,0],[]];return(JSON.stringify(e).includes(JSON.stringify(t[0]))?e:[...e,t]).map(i=>(i[1][0]&&i[1][0].length<=0&&(i[1]=[]),i))},Se=(e,t,o)=>{o&&e&&e.setTargeting(t,o)},Us=e=>{let t=[];return e.forEach(o=>{t=[...t,...o[1]]}),t},In=(e,t)=>{let o=Fe();googletag.cmd.push(function(){V(`${e} , ' gpt`);let n=t.map(i=>i.getResponseInformation?i:i.slot).filter(i=>i!==void 0);n.length>0?googletag.pubads().refresh(n,o):C("Will not refresh 0")})},$s=(e,t,o)=>(o=googletag.defineOutOfPageSlot(e,googletag.enums.OutOfPageFormat[t]),o&&o.addService(googletag.pubads()),o),Fs=()=>googletag.pubads().getSlots().map(e=>e.getSlotElementId()),wi=({path:e,size:t,elementId:o,anchor:n,targeting:i,setUniqueTargeting:r})=>{let a;if(!e){C(`NO PATH FOR ADUNIT ${e}`);return}googletag.cmd.push(function(){try{let l=O(o);if(l&&l.slot){s(`Wont define this adunit again (${o})`);return}if(n)a=$s(e,n,a);else{if(Fs().includes(o)){s(`${o} already defined`);return}a=googletag.defineSlot(e,Us(t),o),a&&a.setCollapseEmptyDiv(!0).addService(googletag.pubads()),a.defineSizeMapping(js(t))}if(!a){C("No slot here");return}i&&Object.keys(i).forEach(c=>{Se(a,c,i[c])}),r&&Se(a,"uniqueId","_"+B()),Ms({slot:a,elementId:o})}catch(l){C(`GAM ERROR: ${l}`)}})},Ms=({slot:e,elementId:t})=>{let o=O(t);o.slot=e,globalThis.concept.adUnits.set(t,o)},Oi=()=>{googletag.cmd.push(function(){L("Googletag loaded")})},dt=()=>{googletag.cmd.push(function(){googletag.pubads().setPrivacySettings({limitedAds:!0})})}});var ie,pt=b(()=>{"use strict";ie={GAM:"GAM",ADNUNTIUS:"Adnuntius"}});function Bs(e){if(e.data){var t=e.data.type,o=Gt[t];if(o)for(var n=0;n{"use strict";Gt={};window.addEventListener("message",Bs,!1)});var Li,Ni,ki,_i,ji,Ui=b(()=>{"use strict";R();S();ne();y();Li=!1,Ni=(e,t)=>t.includes(e.id)&&e.getAttribute&&!e.getAttribute("dublicatenoted"),ki=({consented:e,node:t})=>{t.setAttribute("dublicatenoted","true"),s(`Found dublicate of ${t.id}`),xe({consented:e,nodeId:t.id})},_i=(e,t,o)=>{Ni(e,t)&&ki({consented:o,node:e}),e.childNodes&&[...e.childNodes].forEach(n=>{_i(n,t,o)})},ji=({consented:e,nodeToWatch:t=document})=>{if(Li!==!0){let o=d("adUnits").map(n=>n.divIdOnPage);if(Li=!0,globalThis.conceptConfig.avoidMutationObserver)s("Interval observer started for dublications"),setInterval(()=>{o.filter(n=>n!==void 0).forEach(n=>{let i=P(n);i&&Ni(i,o)&&ki({consented:e,node:i})})},100);else{let n=new MutationObserver(function(i){for(let r of i)for(let a of r.addedNodes)_i(a,o,e)});s("Mutation observer started for dublications"),n.observe(t,{childList:!0,subtree:!0})}}}});var N,$i=b(()=>{"use strict";N={TCF_LEGITIMATE_INTERREST:"TCF_LEGITIMATE_INTERREST",TARGETING_MATCH:"TARGETGING_MATCH",TARGETING_ARRAY_CONTAINS:"TARGETGING_ARRAY_CONTAINS",URL_IS_SPECIFIC_SECTION:"URL_IS_SPECIFIC_SECTION",URL_CONTAINS_SPECIFIC_SECTION:"URL_CONTAINS_SPECIFIC_SECTION",URL_IS_SPECIFIC:"URL_IS_SPECIFIC"}});var Ds,qs,Gs,zs,Ws,ut,ge,Hs,Vs,Mi,zt,Bi,Fi,Di,gt=b(()=>{"use strict";$i();S();y();j();K();Ds=e=>location.href===`${location.origin}/${e}`,qs=e=>{let t=`${location.origin}/${e}`;return location.href.startsWith(t)},Gs=e=>location.href===e,zs=({key:e,value:t})=>globalThis.concept.targeting[e]===t,Ws=({key:e,value:t})=>Array.isArray(globalThis.concept.targeting[e])&&globalThis.concept.targeting[e].includes(t),ut=()=>{let e=Vs(),t=Hs();s(`Checked for startup and targeting profiles [${e}|${t}] `)},ge={[N.TARGETING_MATCH]:{profileName:N.TARGETING_MATCH,func:zs},[N.TARGETING_ARRAY_CONTAINS]:{profileName:N.TARGETING_ARRAY_CONTAINS,func:Ws},[N.URL_IS_SPECIFIC_SECTION]:{profileName:N.URL_IS_SPECIFIC_SECTION,func:Ds},[N.URL_CONTAINS_SPECIFIC_SECTION]:{profileName:N.URL_CONTAINS_SPECIFIC_SECTION,func:qs},[N.URL_IS_SPECIFIC]:{profileName:N.URL_IS_SPECIFIC,func:Gs}},Hs=()=>{let e=[ge[N.TARGETING_MATCH],ge[N.TARGETING_ARRAY_CONTAINS]];return Mi(e)},Vs=()=>{let e=[ge[N.URL_IS_SPECIFIC_SECTION],ge[N.URL_CONTAINS_SPECIFIC_SECTION],ge[N.URL_IS_SPECIFIC]];return Mi(e)},Mi=e=>{let t=[];return(d("settingsProfiles")||[]).forEach(n=>{let i=e.find(r=>r.profileName===n.type);i&&i.func(n.activateOnArgs)?(Di(n),t.push(!0)):t.push(!1)}),t},zt=()=>(d("settingsProfiles")||[]).filter(o=>o.type===N.TCF_LEGITIMATE_INTERREST),Bi=(e,t)=>{let o=zt(),n=e?.purpose?.legitimateInterests||{};return o.length===0||t?(s("Using the default tcf profile (default central)"),["2","7","9","10"].every(a=>n[a])):(o.sort(tt).forEach(r=>{let a=!0;r.extraConditions&&(a=r.extraConditions.every(l=>ge[l.type].func(l.activateOnArgs))),a&&r.activateOnArgs.every(l=>n[l])&&(Di(r),globalThis.concept.tcfProfileSet=!0)}),!!globalThis.concept.tcfProfileSet)},Fi=e=>{Object.keys(e).forEach(t=>{globalThis.conceptConfig[t]=e[t]})},Di=e=>globalThis.concept.tcfProfileSet?(s(`Will NOT override the ${globalThis.concept.activeProfile} profile with (${e.name})`,"warning"),"done"):(s(`Using the ${e.name} profile`),globalThis.concept.targeting.settingsProfile=e.name,globalThis.concept.activeProfile=e.name,Fi(e.globalChanges),Array.isArray(e.experiments)&&e.experiments.forEach(t=>{let o=Ce("forceExperiment")==="true";(Lo(t.activateForPercent)||o)&&(s(`Experiment ${t.name} active`),globalThis.concept.targeting.experiment=t.name,Fi(t.globalChanges))}),Object.keys(e.adunitsChanges).forEach(t=>{let o=e.adunitsChanges[t],n=Object.keys(o),i=globalThis.conceptConfig.adUnits.find(r=>r.id===t)||{};n.forEach(r=>{let a=o[r];a!==""&&a!==null&&(r==="path"&&(a=Z(a)),i[r]=a)})}),e.videoChanges=e.videoChanges||{},Object.keys(e.videoChanges).forEach(t=>{let o=e.videoChanges[t],n=Object.keys(o);if(globalThis.conceptConfig.videoAdunits){let i=globalThis.conceptConfig.videoAdunits.find(r=>r.id===t)||{};n.forEach(r=>{let a=o[r];a!==""&&a!==null&&(r==="code"&&(a=Z(a)),r==="bids"&&(a=a.map(l=>{if(typeof l=="string")try{l=JSON.parse(l)}catch(c){C(`Could not parse bids: ${c}`)}return l})),i[r]=a)})}else s("Could not find profile for video unit","video")}),"done")});var qi,Gi=b(()=>{"use strict";R();Et();qi=e=>{let t=async o=>{let{videoId:n,autoplay:i,muted:r,videoFormat:a,isLive:l,isEmbed:c}=o,p=globalThis?.currentDeviceDefiner()||void 0,g=await Je(n,{device:p,autoplay:i,muted:r,videoFormat:a,isLive:l,videoId:n,isEmbed:c});return{videoUrlPreroll:g,videoId:n,preroll:g}};Nn(e.customPrebidVideoUrl,t)}});var zi,Wi,Hi=b(()=>{"use strict";zi=e=>e?.parentNode?.parentNode?.className==="ads-topscroll",Wi=e=>e?.parentNode?.parentNode.remove()});function oa(e){ee(f("targeting")),e()}var Ks,Qi,Qs,Js,Ji,Vi,Ys,Xs,Ki,Zs,Ht,Ti,Yi,xe,Wt,Vt,ea,Xi,ta,Zi,na,fe,ia,er,ra,tr,or,sa,ne=b(()=>{"use strict";te();y();R();pt();se();R();Ri();qe();k();j();K();st();S();Ui();pe();gt();Gi();Hi();Ks=e=>{let t=1e3,{failsafe_timeout:o}=e;return o||o===0?o:t},Qi=e=>(e.customPrebidVideoUrl&&qi(e),{adUnits:new Map,logme:s,connect:xi,initialCalled:!1,failsafe_timeout:Ks(e),updateWhenResolved:Ki(e.adUnits,"dependencies"),discardedForTest:[],updateIfEmpty:Ki(e.adUnits,"updateIfEmpty"),initTime:performance.now(),eventLog:[],adsloaded:0,unloaders:[],refreshAllActiveAdunits:Qs,idsNotFound:0,videosRequested:0,consentStatus:x.NOT_SET,directRefresh:Ji,listenerCreated:!1,device:null,activeProfile:"default",contxtFetched:!1,initialSRAList:[],contxtRequestQueue:[],updateTargeting:Js,targeting:_t(globalThis.conceptConfig),...tn()}),Qs=()=>globalThis.concept.adUnits.forEach((e,t)=>{e.requested&&Ji(t)}),Js=()=>{s("Updatting global targeting");let{contxt:e,IAB1:t,IAB2:o,IAB3:n,IAB4:i,requestMode:r,settingsProfile:a,experiment:l}=f("targeting")||{},c=d("bidderTargeting")||[],p={contxt:e,IAB1:t,IAB2:o,IAB3:n,IAB4:i,requestMode:r,settingsProfile:a,experiment:l};globalThis.concept.targeting={..._t(globalThis.conceptConfig),...p},c.forEach(g=>{wo(g.bidders,g.bidderTargeting)})},Ji=e=>{let t=O(e);t&&J([t])},Vi=!1,Ys=e=>{if(!e.disabled){let t=P(e.divIdOnPage),o=ra(t),n=ot(e.size);o&&n&&po(e)}},Xs=(e,t)=>{let o=e.sort(tt),n=d("useGoogleSRAOnFirst");!Vi&&n&&(s("Running SRA on first request"),Vi=!0,o.forEach(i=>{Ys(i)})),o.forEach(i=>{i.disabled||Zi({consented:t,unit:i,display:!0})})},Ki=(e,t)=>{let o=new Map;return e.filter(i=>i[t]).forEach(i=>{let r=i[t][0];r&&o.set(i.divIdOnPage,r)}),o},Zs=(e,t)=>{let o=f("updateWhenResolved");if(!o)return;d("adUnits").map(i=>{i.dependencies?.includes(e)&&(i.dependencies=i.dependencies.filter(r=>r!==e))});for(let[i,r]of o.entries())r===e&&(o.delete(`${t}`),o.set(i,t)),i===e&&(o.delete(`${e}`),o.set(t,`${r}`))},Ht=e=>d("adUnits").find(n=>n.divIdOnPage===e)||{},Ti=e=>{globalThis.concept.unloaders=globalThis.concept.unloaders.filter(t=>{let o=P(t.divId);return t.path===e&&!o?(t.unload(),!1):!0})},Yi=e=>{let t=f("adUnits");for(let[o,n]of t)n.path===e&&n.slot&&globalThis.concept.unloaders.push({path:e,divId:n.divIdOnPage,unload:()=>{s(`Unloading ${o}`),googletag.cmd.push(function(){googletag.destroySlots([n.slot])}),n.refresTimer&&clearTimeout(n.refreshTimer),globalThis.concept.adUnits.delete(o);let{divIdOnPage:i}=n,a=d("adUnits").filter(c=>c.copy?c.divIdOnPage!==i:!0);$e("adUnits",a);let l=P(o);zi(l)?Wi(l):l?.remove()}})},xe=({consented:e,nodeId:t,display:o=!0})=>{let n=P(t);if(!t||!n)return null;let i=Ht(t);if(!i||i.disabled)return null;let r=Cn(i),a=`${i.divIdOnPage}-${B()}`;return s(`Renaming ${t} to ${a}`),Zs(i.divIdOnPage,a),n.id=a,r.divIdOnPage=a,r.id=a,r.copy=!0,globalThis.conceptConfig.adUnits.push(r),Zi({consented:e,unit:r,display:o}),a},Wt=e=>{globalThis.concept[e.cmd]?globalThis.concept[e.cmd](e.args):s("could not find function $command.cmd}","error")},Vt=()=>{let e=[];globalThis.preConcept?(e=globalThis.preConcept.queue||e,e.forEach(t=>{Wt(t)}),globalThis.preConcept.queue={},globalThis.preConcept.queue.push=function(t){Wt(t)}):globalThis.preConcept={queue:{push:t=>Wt(t)}},s("preConcept.queue has now been frozen"),Object.freeze(globalThis.preConcept.queue)},ea=async e=>{let t=async()=>{let o=d("haltInit"),n=d("waitForEventToStart");o&&(s(`Halting all with ${o} and updating targeting`),await un(o)),n&&(s(`Waiting for ${n}`),await Ye(n),s(`${n} -- received`)),globalThis.concept.updateTargeting(),ut(),Ie(globalThis.conceptConfig),ct(globalThis.conceptConfig,s),globalThis.concept.updateTargeting(),oa(e)};$t()?t():Pn(function(){t()})},Xi=(e,t)=>t?t===ie.GAM?e.path:e.cookieLessPath:e.path,ta=e=>{let t=d("cookielessAdserver");return e.filter(o=>(o.cookieLessPath=Xi(o,t),o.cookieLessPath&&o.cookieLessPath.includes("/")?o:!1))},Zi=({consented:e,unit:t,display:o})=>{let n=d("cookielessAdserver");s(`Create & display ${t.divIdOnPage}`),!e&&d("checkForConsent")&&(t.path=Xi(t,n),t.path||C(`No path for ${t.id}`)),globalThis.concept.define(t.divIdOnPage,t),o&&globalThis.concept.display({element:t.divIdOnPage,name:t.divIdOnPage})};na=async({name:e,caller:t,adUnit:o})=>{let n=await fn(e,t);if(o.requested=!0,o.refresh&&Pe({name:e,adUnit:o,refreshFunction:fe}),!n)return s(`REFRESH --> ${e} is not ready to be rendered`),Promise.resolve();(t==="scheduleForLater"||!o.lazyload)&&J([n])},fe=async({names:e,caller:t})=>{if(!Array.isArray(e))throw Error("Please call this method with an array of ids");s(`REFRESH --> (CALLER ${t}): refresh ${e}`,"function");let o=[];e.forEach(n=>{let i=O(n);i?o.push(na({name:n,caller:t,adUnit:i})):C(`No configured adunit found for ${n}`)}),o.length>0&&await Promise.all(o)},ia=({container:e,consented:t})=>(e.forEach((o,n)=>{n!==0&&xe({consented:t,nodeId:o})}),e=e[0],e?{id:e}:null),er=(e,t)=>{let o=f("adUnits");if(!d("isPassback")&&!ot(t.size)){s(`${e} doesn not have correct sizes to be defined`,"warning");return}let i=o.hasOwnProperty(e),r=t.disabled;if(i||r)return s(`Will not define ${e}`),null;let a=mn({definition:t});o.set(e,a);let l=o.get(e);if(On()){s(`Removing lazyload from ${e}`),l.lazyload=!1;return}let c=d("globalLazyAttribute");(l.lazyload||c)&&setTimeout(function(){xn({elementId:l.divIdOnPage,refreshFunc:J,refreshWhenReadyFunction:fe,scheduleLaterFunc:Pe})},0)},ra=e=>{let t=d("viewHeightThreshold")||1.5,o=f("device")==="mobile"?2:1,n=wn(e);if(!n&&n!==0)return!1;let i=Ut();return n/i<=t*o},tr=async({element:e,name:t})=>{try{let o=f("failsafe_timeout"),n=f("consentedToCookies"),i=O(t);if(!i){s(`No definition for ${t}, sorry`,"warning");return}let{path:r,sizes:a,targeting:l,anchor:c,setUniqueTargeting:p,divIdOnPage:g}=i,u={};if(c&&!g)u={id:t};else{if(u=await z(`#${e}`,o),u===null){s(`Not gonna do anymore about this (${e})`,"warning");return}u=ia({container:u,consented:!!n})}if(u){if(Ce("showOverlay")==="true"){gn(a,e,u.id);return}let T=O(g);if(!T||T.requested){s(`ad unit already request,loaded or deleted by quick insertions: ${g}`);return}let v=P(g);ot(a)&&v?wi({path:r,size:a,elementId:g,anchor:c,targeting:l,setUniqueTargeting:p}):s("Not correct adunits sizes for viewport && HTML element has changed id, could be on purpose","warning");let A=d("globalLazyAttribute"),I=jt(e);if(A&&!I&&(i.lazyload=!1,s(`Setting lazy to false for ${i.divIdOnPage}`)),I){s(`${e} should be lazy loaded`);return}if(!T.requested){let h=f("initialSRAList"),w=h.find(F=>F.divIdOnPage===u.id);w?sa(w,h):fe({names:[g],caller:"Async display"})}}else Xn(e),C(`${e} could not be populated (div not found)`)}catch(o){console.error(o),C("Could not run the display function")}},or=(e={adunitDivId:"",consented:!0})=>{let{consented:t,adunitDivId:o}=e,n=`User has consented (directly or indirectly by the page not having a CMP) = ${t} ${o||null}`;s(n);let i=je(),r=d("waitForEventToStart");on(t)&&!r&&(Ie(i),ct(i,s)),io(),ea(async function(){s("In start function"),uo();let l=i.adUnits;t||(l=ta(l)),o&&(l=l.filter(c=>c.divIdOnPage===o)),Xs(l,t),globalThis.conceptConfig.dontCallInitial||ji({consented:t})})},sa=(e,t)=>{if(e.displayRequested=!0,t.filter(n=>!n.displayRequested).length===0){let n=t.map(i=>{let r=O(i.divIdOnPage);return r.refresh&&Pe({name:r.divIdOnPage,adUnit:r,refreshFunction:fe}),r});J(n),globalThis.concept.initialSRAList=[]}}});Te();ne();y();te();pt();R();k();j();Ke();y();ne();k();se();te();j();Q();et();Ke();y();pt();se();te();Q();S();y();K();ue();var nr=navigator.connection||navigator.mozConnection||navigator.webkitConnection,aa=e=>{let t={},o=new URL("https://d1jthfopj0ipi6.cloudfront.net/error_track.gif");if(nr){let{downlink:n}=nr;n&&o.searchParams.set("downlink",n)}return globalThis.conceptConfig.reportTrackingAs&&o.searchParams.set("trackingas",globalThis.conceptConfig.reportTrackingAs),o.searchParams.set("error",e),o.searchParams.set("uniqueId",B()),Object.keys(t).forEach(n=>{o.searchParams.set(n,t[n])}),o.href},ft=e=>{if(f("enableErrorReporting")){let o=aa(e);oe(o,"error-pixel"),s("Error pixel loaded")}};S();gt();var la={1:"Store and/or access information on a device",2:"Select basic ads",3:"Create a personalized ads profile",4:"Select personalized ads",5:"Create a personalized content profile",6:"Select personalized content",7:"Measure ad performance",8:"Measure content performance",9:"Apply market research to generate audience insights",10:"Develop and improve products",11:"Use limited data to select content"},rr=e=>s(`got CMP event: ${e.eventStatus}`);function me(e){s(`error callback: ${e}`),__tcfapi("getTCData",2,function(t){t.gdprApplies||ft("gdprNotApplies")}),ft("CMP error")}var Qt=e=>{e.fullUsableConsent?(globalThis.concept.consentStatus=x.FULL_CONSENT,globalThis.concept.targeting.requestMode=x.FULL_CONSENT):e.legitimateInterests?(globalThis.concept.consentStatus=x.LEGITIMATE_INTERREST,globalThis.concept.targeting.requestMode="LIMITED"):e.fullUsableConsent?(globalThis.concept.consentStatus=x.UNKNOWN,globalThis.concept.targeting.requestMode=x.UNKNOWN):(globalThis.concept.consentStatus=x.CONSENT_REJECT,globalThis.concept.targeting.requestMode=x.CONSENT_REJECT,s("The user cosents does not meet the requirements to 'normal' load ads."),globalThis.concept.consentedToCookies=!1),Go()},ca=()=>{(function(){var e=function(){for(var t,o="__tcfapiLocator",n=[],i=window;i;){try{if(i.frames[o]){t=i;break}}catch{}if(i===window.top)break;i=i.parent}t||(function r(){var a=i.document,l=!!i.frames[o];if(!l)if(a.body){var c=a.createElement("iframe");c.style.cssText="display:none",c.name=o,a.body.appendChild(c)}else setTimeout(r,5);return!l}(),i.__tcfapi=function(){for(var r,a=arguments.length,l=new Array(a),c=0;c3&&parseInt(l[1],10)===2&&typeof l[3]=="boolean"&&(r=l[3],typeof l[2]=="function"&&l[2]("set",!0));else if(l[0]==="ping"){var p={gdprApplies:r,cmpLoaded:!1,cmpStatus:"stub"};typeof l[2]=="function"&&l[2](p)}else n.push(l)},i.addEventListener("message",function(r){var a=typeof r.data=="string",l={};try{l=a?JSON.parse(r.data):r.data}catch{}var c=l.__tcfapiCall;c&&window.__tcfapi(c.command,c.version,function(p,g){var u={__tcfapiReturn:{returnValue:p,success:g,callId:c.callId}};a&&(u=JSON.stringify(u)),r.source.postMessage(u,"*")},c.parameter)},!1))};e()})()},be=()=>{s("executeQueue ----> executing consentQueue","function");let e=f("consentQueue")||[];e.forEach((t,o)=>{so("(Refresh dequeued and executed)"),e[o]()}),globalThis.concept.consentQueue=[]},Jt=e=>{globalThis.concept.tcString=e.tcString;let t=e?.purpose?.consents||{},o=Object.keys(t),n=Object.values(t),i=e.purpose?o.length:1e3;globalThis.concept.specificConsent=n.map((g,u)=>({purpose:la[u+1],allowed:g}));let r=e.purpose?o.some(g=>!t[g]):!1,c=!(e.gdprApplies&&(i===0||r===!0));return{legitimateInterests:Bi(e,c),fullUsableConsent:c}},ir=({callback:e})=>{s("Loading ads ..."),globalThis.concept.consentedToCookies!==!1&&(globalThis.concept.consentedToCookies=!0,Ve(),be(),globalThis.conceptConfig.dontCallInitial||e({consented:!0}))};function sr({callback:e}){s("consent.js run"),Kt()||(s("No __tcfapi found at all (should be stubbed)","error"),globalThis.concept.consentStatus=x.NO_TCF_API,ft("adding stub"),ca(),s("tcf stub loaded"));function t(o,n){s(`Succesful consent recieved from ${n}`),M("Consent recieved");let i=d("legitimateStepAdserver")==="Adnuntius",r=Jt(o);if(Qt(r),r.fullUsableConsent)ir({callback:e});else if(r.legitimateInterests&&!i)dt(),ir({callback:e});else if(!r.fullUsableConsent||i){if(!globalThis.conceptConfig.dontCallInitial)return he({callback:e});be()}}if(mt.tcfApiExists()){let o=[{eventName:"useractioncomplete",onSuccess:t,onError:me},{eventName:"tcloaded",onSuccess:t,onError:me},{eventName:"cmpuishown",onSuccess:rr,onError:me}];mt.addEventListeners(o)}else s("No tcfApi or Exists"),globalThis.conceptConfig.dontCallInitial?he({callback:function(){C("could not find TCF api")}}):he({callback:e})}var he=({callback:e,adunitDivId:t="",SPAOverwrite:o=globalThis.conceptConfig.dontCallInitial})=>{s("Lets kick of cookieless"),zo();let n=globalThis.conceptConfig.cookielessAdserver;if(globalThis.conceptConfig.checkForConsent&&(!n||!Object.values(ie).includes(n)))throw Error("Please setup a cookieless adserver");(globalThis.concept.adsloaded===0&&!globalThis.concept.initialCalled||o)&&(n===ie.GAM&&(s("GAM cookieless","gpt"),e({consented:!1,adunitDivId:t})),n===ie.ADNUNTIUS&&(s("ADNUNTIUS cookieless","adnuntius"),Vo({adunitDivId:t,prerender:!1,container:"div"})))},Kt=()=>window.__tcfapi,mt=function(){return{addEventListeners:t=>{if(!Kt()){C("Cannot listen for tcf events if no __tcfapi");return}__tcfapi("addEventListener",2,function(o,n){let i=t.find(r=>r.eventName===o.eventStatus);rr(o),i&&(n?i.onSuccess(o,o.eventStatus):(C(`${o.eventStatus} had an error`),i.onError(o)))})},tcfApiExists:Kt}}();S();pe();R();var ar=!1,dr=()=>{let{origin:e,pathname:t}=location,o=`${e}${t}`;setInterval(function(){let{origin:n,pathname:i}=location,r=`${n}${i}`;if(o!==r){if(o=r,s(`URL changed to ${r}`),globalThis.conceptConfig.dontCallInitial){s("Clearing timeout (refresh) - bacause url change");for(let[a,l]of f("adUnits"))Ee(l)}globalThis.conceptConfig.activateConceptTargeting&&Ze(),qo()}},300)},da=()=>{globalThis.concept.injectNewAds()},pr=()=>{window.addEventListener("urlChange",da,!0)},ur=()=>{window.addEventListener("urlChange",()=>{lt()},!0)},pa=(e,t,o)=>{let n=Jt(e),i=globalThis.conceptConfig.legitimateStepAdserver==="Adnuntius";Qt(n),n.fullUsableConsent?Yt(t):n.legitimateInterests&&!i?(dt(),Yt(t)):(!n.fullUsableConsent||i)&&he({callback:globalThis.concept.injectAds,adunitDivId:o,SPAOverwrite:!0})},Yt=e=>{globalThis.concept.injectAds({adunitDivId:e,consented:!0})},ua=(e,t)=>{let o=globalThis.conceptConfig.checkForConsent,n=f("consentStatus")===x.FULL_CONSENT;if(o&&n){Yt(e);return}o?__tcfapi("getTCData",2,function(i){s("Manually retrieved tcData"),pa(i,e,t)}):globalThis.concept.consentedToCookies===!1?he({callback:globalThis.concept.injectAds,adunitDivId:t}):globalThis.concept.injectAds({adunitDivId:e,consented:!0})},lr=e=>{globalThis.concept.updateIfEmpty.delete(e),globalThis.concept.initialCalled=!1;let t=e||null;s(`refreshSelected ${e}`,"function"),ua(t,e)},cr=(e,t)=>{let o=conceptConfig.adUnits.map(r=>r.divIdOnPage),i=globalThis.conceptConfig.adUnits.find(r=>r.divIdOnPage===e)?.disabled;if(o.includes(e)&&!i){let r=P(e);if(!r)return;let a=!!globalThis.concept.consentedToCookies,l=xe({consented:a,nodeId:r.id,display:!1});if(r&&r.setAttribute("dublicatenoted","true"),lr(l||e),t||!!d("autoUnloadSlots")){let p=Ht(e);Yi(p.path)}}else typeof e=="string"&&e.length>0&&s(`${e} was not found in config or its disabled`,"error");!e&&!globalThis.conceptConfig.dontAllowRefreshAll&&(s("No specific adunit, we refresh all"),globalThis.concept.adUnits.clear(),googletag.destroySlots&&googletag.destroySlots(),lr(""))},Xt=(e,t=!1,o="")=>{s(`injectNewAds (${o}) ${e}`,"function"),M("injectNewAds execution requested"),globalThis.concept.updateTargeting(),ee(globalThis.concept.targeting);let n=f("consentedToCookies"),{decideNow:i,waitChoise:r}=Xe();if(i&&cr(e,t),r){s(`[injectNewAds] (${o}): no hasConsented & no limitedFlow`,"function");let a=()=>cr(e,t);ro(`(Refresh queued) ${e}`),a&&Ue(a)}if(n===!1&&be(),n===null&&!ar){s("Adding eventlisteners for the CMP");let a=[{eventName:"useractioncomplete",onSuccess:be,onError:me},{eventName:"tcloaded",onSuccess:be,onError:me}];mt.addEventListeners(a),ar=!0}},gr=e=>{let t=Tn(12),o=`[loadCopyOf] (${t})`;s(`${o}: copy ${e.srcUnit} and insert into ${e.targetDiv}`,"function");let n=globalThis.conceptConfig.adUnits.find(a=>a.divIdOnPage===e.srcUnit);if(!n){C("Your trying to dublicate a non existing ad unit");return}let i={...xt(n,e.overrides),divIdOnPage:e.targetDiv,copy:!0};d("globalLazyAttribute")&&i.lazyload&&s("We currently have lazyload + there is a globalLazyAttribute. This might give unexspected behavior","warning"),globalThis.conceptConfig.adUnits.push(i),Xt(e.targetDiv,!1,t)};Q();st();ue();R();S();y();var fr={BLUE_BILLYWIG:1,OWN_PLAYER:2};var mr="concept",ga=async e=>{let t=e.divIdOnPage;s(`Waiting for ${t} to be visible`,"video");let o=await z(`#${t}`,0),n=nt(o);if(!n){C(`Could not find ${t}`);return}s(`Inserting BB Player into ${t} `,"video");let i=e.BBUNIT,r=`https://${mr}.bbvms.com/r/${i}.js`;V(t);let a=globalThis.conceptConfig.usePrebid?await globalThis.concept.requestPrebidUrl(e.playerId):globalThis.concept.buildVastTag(e.playerId);L(`VAST TAG CREATED FOR ${t} `);let l=document.createElement("script");l.async=!0,l.src=r,l.onload=()=>{let c={code:t,vastUrl:a},p=`${mr}-${i}`,g=globalThis.bluebillywig.renderers.find(u=>u._id===p);g&&g.bootstrap(c,n)},document.getElementsByTagName("head")[0].appendChild(l)},Re=()=>{let e=d("videoAdunits");e&&e.forEach(t=>{t.divIdOnPage&&t.videoPlayer===fr.BLUE_BILLYWIG&&ga(t)})};et();ze();S();K();wt();var ht=e=>{try{let{cookielessAdserver:t,customCSS:o,reportTrackingAs:n,trySendingSpecificGeo:i,oneOfAutoExecuteBB:r,activateConceptTargeting:a,customScript:l,RMBRef:c,dontCallInitial:p,disableConceptLoads:g,refreshOnBfCacheHit:u,refreshOnUrlChange:m,activateSeenthis:T}=e;u&&Rn(),t===ie.ADNUNTIUS&&Ho(s),o!==""&&o&&It(o),T&&cn(s),n&&!g&&_n(`?loaded=true&site=${n}`),i&&En({targetingFunction:ee}),r&&Re(),a&&Ze(),l&&U(s,l),!globalThis.disableRMBRef&&c&&Dt(s,c),(m||p)&&dr(),m&&pr(),p&&ur();let v=d("controlKey"),A=d("controlMax")||10;if(d("setControlGroup")&&v){let I=typeof A=="string"?parseInt(A):A;globalThis.concept[v]=ko(1,I)}hn(),globalThis.concept.injectAds=or,globalThis.concept.define=er,globalThis.concept.refresh=fe,globalThis.concept.display=tr,globalThis.concept.injectNewAds=Xt,globalThis.concept.loadCopyOf=gr,globalThis.concept.connect(E.GET_CONCEPTADS,ii),globalThis.concept.connect(E.GET_VASTTAG,ri),globalThis.concept.connect(E.GET_PREBIDVASTTAG,si),globalThis.concept.connect(E.SKIN_INIT,ni),globalThis.concept.connect(E.SIDESKIN_INIT,ai),globalThis.concept.connect(E.MACRO_UNLOAD,oi),globalThis.concept.connect(E.SLOT_LOADED,rt),globalThis.concept.connect(E.SLOT_REQUESTED,it),globalThis.concept.connect(E.DESKTOP_TOPSCROLL,ti),$o()}catch(t){console.log(t)}};ne();Q();gt();S();y();globalThis.googletag=globalThis.googletag||{};globalThis.googletag.cmd=globalThis.googletag.cmd||[];var hr=e=>{try{d("waitForEventToStart")||ut();let o=zt();o&&o.length>0&&!e.checkForConsent&&C("You cannot have a tcf profile and not listen to consent!"),o&&o.length>0&&e.checkForConsent?window.addEventListener("consentRecieved",()=>ht(e),{once:!0,capture:!0}):ht(e);let n=!e.dontCallInitial,i=!e.refreshOnUrlChange,r=n&&i;e.checkForConsent?sr({callback:l=>{Re(),globalThis.concept.injectAds(l)}}):r&&(Ve(),Re(),globalThis.concept.injectAds({consented:!0})),Vt()}catch(t){console.log(t)}};ne();globalThis.googletag=globalThis.googletag||{};globalThis.googletag.cmd=globalThis.googletag.cmd||[];te();y();Bt();var br=e=>{let t=!1;t||(t=!0,Pi(s),bi(),Oi(),hr(e))};ne();try{globalThis.conceptConfig||console.error("No configuration found. abort!");let e=globalThis.conceptConfig;globalThis.concept=globalThis.concept||Qi(e),br(e)}catch(e){console.log(e)}})(); }; "use strict"; atm.log = function (type, message, ctx) { var makeBlock = function (color) { return 'background: ' + color + '; padding: 2px 10px; border-radius: 2px; color: rgba(0,0,0,.7); border-bottom: 1px solid rgba(0,0,0,.3);border-top: 1px solid rgba(255,255,255,.6);margin-left: 5px;'; }; var logType = 'log'; var eventType = ''; var color = '#79e1ec'; if (type == 'warn' || type == 'error') { logType = type; } else { eventType = '%c' + type; } switch (type) { case 'event': color = "#0aff82"; break; case 'tag': color = "#ee49d1"; break; case 'consent': color = "#af83ff"; break; } console[logType]('%cATM' + eventType, makeBlock("#00e6ff"), (eventType != '') ? makeBlock(color) : '', message || '', ctx || ''); }; atm.debug = function (type, message, ctx) { if (win.location.search.indexOf('atm_debug') > -1) { atm.log(type, message, ctx); } }; "use strict"; atm.utils = { createUuid: function () { var dt = new Date().getTime(); var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { var r = (dt + Math.random() * 16) % 16 | 0; dt = Math.floor(dt / 16); return (c == 'x' ? r : (r & 0x3 | 0x8)).toString(16); }); return uuid; }, getCookie: function (cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; }, replaceTags: function (str, tags) { var tagNames = Object.keys(tags); for (var i = 0; i < tagNames.length; i++) { var tag = tagNames[i]; var pattern = "{{" + tag + "}}"; str = str.replace(new RegExp(pattern, "g"), tags[tag]); } return str; }, replaceTag: function (str, search, replace) { return str.replace(new RegExp(search, 'g'), replace); }, remove: function (target) { var removeElement = target || 'adn-overlay'; atm.utils.forEachClass(removeElement, function (el) { el.remove(); }); }, addScript: function (src, targetId, fn, options) { var script = doc.createElement("script"); script.type = "text/javascript"; script.src = src; if (options && options.async) script.async = true; if (options && options.defer) script.defer = true; if (options && options.type) script.type = options.type; if (options && options.nomodule) script.noModule = true; if (script.readyState) { // only required for IE <9 script.onreadystatechange = function () { if (script.readyState === "loaded" || script.readyState === "complete") { script.onreadystatechange = null; fn(); } }; } else { //Others script.onload = function () { if (fn) fn(); }; } if (targetId) doc.getElementById(targetId).appendChild(script); else doc.getElementsByTagName("head")[0].appendChild(script); }, addImage: function (src, width, height) { var img = doc.createElement('img'); img.src = src; if (width) img.width = width; if (height) img.height = height; doc.getElementsByTagName('body')[0].appendChild(img); }, addContent: function (content, targetId) { var node = doc.createElement("DIV"); node.innerHTML = content; if (targetId) { var target = doc.getElementById(targetId); target.innerHTML = ''; target.appendChild(node); } else doc.getElementsByTagName("body")[0].appendChild(node); }, addCss: function (url) { var link = doc.createElement("link"); link.href = url; link.type = "text/css"; link.rel = "stylesheet"; doc.getElementsByTagName("head")[0].appendChild(link); }, addCssString: function (string) { var css = string, head = doc.head || doc.getElementsByTagName('head')[0], style = doc.createElement('style'); head.appendChild(style); style.type = 'text/css'; if (style.styleSheet) { style.styleSheet.cssText = css; } else { style.appendChild(doc.createTextNode(css)); } }, forEachClass: function (classname, func) { var els = doc.getElementsByClassName(classname); for (var i = 0; i < els.length; i++) { func(els[i]); } }, forEachTag: function (tagName, func) { var els = doc.getElementsByTagName(tagName); for (var i = 0; i < els.length; i++) { func(els[i]); } }, merge: function (obj, src) { for (var key in src) { if (src.hasOwnProperty(key)) obj[key] = src[key]; } return obj; }, isObject: function (item) { return (item && typeof item === 'object' && !Array.isArray(item)); }, mergeDeep: function (target, source) { if (atm.utils.isObject(target) && atm.utils.isObject(source)) { for (const key in source) { if (atm.utils.isObject(source[key])) { if (!target[key]) Object.assign(target, { [key]: {} }); atm.utils.mergeDeep(target[key], source[key]); } else { Object.assign(target, { [key]: source[key] }); } } } return target; }, flatten: function (obj) { var returnObj = []; for (var key in obj) { returnObj.push(obj[key]); } return returnObj; }, findInArray: function (src, arr) { return arr.some(function (v) { return src.indexOf(v) >= 0; }); }, requestGAM: function (arr) { window.googletag.cmd.push(function () { for (let i = 0; i < arr.length; i++) { if (atm.prebidGoogle && atm.prebidGoogle[arr[i]]) { atm.prebidGoogle[arr[i]](); } } googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); }, runTags: function (localContainerId, tagArray) { if (tagArray != undefined) { for (var i = 0; i < tagArray.length; i++) { try { var tagId = tagArray[i]; var tag = atm.containers[localContainerId].tags[tagId]; var runable = true; if (atm.GLOBALS.haltTriggers && tag.purposes) { if (tag.purposes.length > 0 && !atm.utils.findInArray(atm.GLOBALS.forcedPurposes, tag.purposes)) { runable = false; atm.haltedTags.push(tagId); } } else { if (tag.purposes && tag.purposes.length > 0 && !atm.utils.findInArray(atm.browser.consent.adnuntiusPurposes, tag.purposes)) { runable = false; } } if (runable) { atm.debug('tag', 'Running tag: ' + tagId + ' in container: ' + localContainerId); atm.containerFunctions[localContainerId][tag.type](tag.content); if (atm.eventList.indexOf('tags.' + tagId) != -1) atm.dispatch('tags.' + tagId); } } catch (e) { atm.log('error', e, ': Tag: ' + tag); } } } }, runTriggers: function (container, type) { atm.containers[container].triggers[type].forEach(function (fn) { fn(); }); }, clickElement: function (data) { if (atm.triggers.click) atm.triggers.click(data); }, toggleClass: function (element, className) { if (element.classList) { element.classList.toggle(className); } else { var classes = element.className.split(" "); var i = classes.indexOf(className); if (i >= 0) classes.splice(i, 1); else classes.push(className); element.className = classes.join(" "); } }, newAjax: function (method, url, func) { if (win.XDomainRequest) { // if XDomainRequest is defined and not IE10 if (win.navigator.appVersion.indexOf("MSIE 10") === -1) { var ajaxIe = new win.XDomainRequest(); ajaxIe.open(method, url); ajaxIe.contentType = "text/plain"; ajaxIe.onerror = function () { }; ajaxIe.ontimeout = function () { }; ajaxIe.onprogress = function () { }; ajaxIe.timeout = function () { }; ajaxIe.onload = function () { }; ajaxIe.onload = func; return ajaxIe; } } var ajax = new XMLHttpRequest(); ajax.open(method, url); ajax.setRequestHeader("Content-Type", "text/plain"); if (func && typeof func === "function") { ajax.onreadystatechange = func; } ajax.onerror = function (e) { console.log(e); }; return ajax; }, ajax: function (method, url, func) { var ajax = atm.utils.newAjax(method, url, function () { if (ajax.readyState && ajax.readyState !== 4) { return false; } if (!ajax.status || ajax.status === 200) { if (func && typeof func === "function") { func(JSON.parse(ajax.response)); } else { atm.log('error', 'Ajax function is not a function'); } } else { atm.log('error', 'Request to URL: ' + url + ' got status ' + ajax.status); } }); ajax.send(); }, }; atm.privacy = atm.privacy || undefined; "use strict"; atm.createPrebidRequest = function (request) { var prebidUnits = []; request.adUnits.forEach(function (adUnit) { var prebidMappedKey = Object.keys(atm.prebid.map).find(auId => auId.includes(adUnit.auId)); var prebidId = atm.prebid.map[prebidMappedKey]; if (prebidId && atm.prebid.mappedUnits[prebidId]) { prebidUnits.push(atm.prebid.mappedUnits[prebidId]); } }); return prebidUnits; }; atm.requestAds = function (request) { if (atm.prebid.aliases.length > 0) { for (let i = 0; i < atm.prebid.aliases.length; i++) { const element = atm.prebid.aliases[i]; window.pbjs.que.push(function () { pbjs.aliasBidder(element[1], [element[0]]); }); } } if (atm.prebid.map) { if (request.adUnits) { for (let i = 0; i < request.adUnits.length; i++) { var adUnit = request.adUnits[i]; if (adUnit.refresh) { adUnit = atm.ads.setPrebidRefresh(adUnit, request); } } } adn.calls.push(function () { adn.chbRequest(atm.createPrebidRequest(request), request); }); } else { adn.calls.push(function () { adn.request(request); }); } }; atm.request = atm.request || {}; atm.request.adnuntius = function (callback) { adn.calls.push(function () { adn.request({ adUnits: atm.ads.setAdnuntius(atm.adUnits, callback), }); }); }; atm.request.prebid = function (callback) { pbjs.que.push(function () { pbjs.addAdUnits(atm.adUnits); pbjs.requestBids({ ortb2: atm.ortb2, bidsBackHandler: function (data) { if (callback) { callback(data); } else atm.ads.renderPrebidWinners(); }, timeout: 3000 }); }); }; atm.request.refresh = function (auId) { }; adn.requestAds = atm.requestAds; "use strict"; atm.ads.adUnitMeta = atm.ads.adUnitMeta || {}; atm.addAdUnits = function (adUnitList) { atm.utils.merge(atm.adUnits, adUnitList); }; atm.clearAdUnits = function () { atm.adUnits = []; }; atm.removeAdUnitByCodeArray = function (codeArray) { for (let i = 0; i < codeArray.length; i++) { atm.removeAdUnitByCode(codeArray[i]); } }; atm.removeAdUnitByCode = function (code) { for (let i = 0; i < atm.adUnits.length; i++) { if (atm.adUnits[i].code == code) { atm.adUnits.splice(i, 1); break; } } }; atm.addOrtb = function (ortbData) { atm.ortb2 = atm.utils.mergeDeep(atm.ortb2, ortbData); }; atm.addAlias = function (aliasList) { atm.adUnitAliases = atm.adUnitAliases.concat(aliasList); }; atm.prebid.mappedUnits = atm.utils.merge(atm.prebid.mappedUnits, atm.containers[CONTAINER_ID].prebid.units); atm.prebid.units = atm.utils.merge(atm.prebid.units, atm.utils.flatten(atm.containers[CONTAINER_ID].prebid.units)); atm.prebid.aliases = atm.prebid.aliases.concat(atm.containers[CONTAINER_ID].prebid.aliases); atm.prebid.map = atm.utils.merge(atm.prebid.map, atm.containers[CONTAINER_ID].prebid.map); atm.ads.onCallDone = function (matched, callback) { atm.removeAdUnitByCodeArray(matched); if (callback) callback(); }; atm.ads.renderPrebidWinners = function () { var bids = pbjs.getHighestCpmBids(); var output = []; for (var i = 0; i < bids.length; i++) { var b = bids[i]; var iframe = document.createElement('iframe'); iframe.id = b.adId; iframe.width = b.width; iframe.height = b.height; iframe.frameBorder = 'no'; var target = document.getElementById(b.adUnitCode); target.style.display = 'block'; output.push({ 'adunit': b.adUnitCode, 'adId': b.adId, 'bidder': b.bidder, 'time': b.timeToRespond, 'cpm': b.cpm }); var tag = { adServerDomain: "", pubUrl: window.location.href, targetingMap: {}, hbPb: "adnuntius", adId: b.adId }; target.appendChild(iframe); ucTag.renderAd(iframe.contentWindow.document, tag); } if (output.length) { if (console.table) { console.table(output); } else { for (var j = 0; j < output.length; j++) { console.log(output[j]); } } } else { console.warn('No prebid winners'); } }; atm.ads.setAdnuntius = function (adUnits, callback) { var mappedAliases = {}; var adnAdUnitArray = []; var matchedAds = []; var totalAds = []; var removefromTotal = function (adUnit) { var position = totalAds.indexOf(adUnit.targetId); totalAds.splice(position, 1); if (totalAds.length == 0) { atm.ads.onCallDone(matchedAds, callback); } }; atm.adUnitAliases.forEach(function (aliasItem) { mappedAliases[aliasItem.alias] = aliasItem.bidder; }); adUnits.forEach((adUnit) => { totalAds.push(adUnit.code); adUnit.bids.forEach(function (bid) { if (bid.bidder == "adnuntius" || mappedAliases[bid.bidder] == "adnuntius") { var adnAdunit = { auId: bid.params.auId, targetId: adUnit.code, onNoMatchedAds: function (data) { removefromTotal(data); }, onImpressionResponse: function (data) { matchedAds.push(data.targetId); removefromTotal(data); }, }; if (adUnit.mediaTypes && adUnit.mediaTypes.banner && adUnit.mediaTypes.banner.sizes) adnAdunit.dimensions = adUnit.mediaTypes.banner.sizes; if (bid.params.targeting) { console.log(bid.params.targeting); } adnAdUnitArray.push(adnAdunit); } }); }); return adnAdUnitArray; }; atm.ads.setInterval = function (auId, request) { if (!atm.ads.adUnitMeta[auId].interval) { atm.ads.adUnitMeta[auId].interval = setInterval(function () { if (atm.ads.adUnitMeta[auId].refresh.count != 0) { adn.calls.push(function () { adn.chbRequest(atm.createPrebidRequest(request), request); }); atm.ads.adUnitMeta[auId].refresh.count--; } else { clearInterval(atm.ads.adUnitMeta[auId].interval); } }, atm.ads.adUnitMeta[auId].refresh.delay * 1000); } }; atm.ads.setPrebidRefresh = function (adUnit, request) { var singleAdUnitRequest = Object.assign({}, request); delete singleAdUnitRequest.headerBids; var targetId = (adUnit.targetId) ? ':' + adUnit.targetId : ''; var auId = adUnit.auId + targetId; var refresh = adUnit.refresh; if (refresh.count) refresh.count = refresh.count || 999; else { refresh = { delay: adUnit.refresh, count: 999, }; } var event = refresh.event || 'onViewable'; if (event != 'onViewable' && event != "onVisible") throw new Error('refresh event needs to be "onViewable" or "onVisible"'); delete adUnit.refresh; adUnit.clearTarget = true; atm.ads.adUnitMeta[auId] = atm.ads.adUnitMeta[auId] || {}; atm.ads.adUnitMeta[auId].refresh = refresh; atm.ads.adUnitMeta[auId].refreshFunction = function () { singleAdUnitRequest.adUnits = [adUnit]; atm.ads.setInterval(auId, singleAdUnitRequest); }; adUnit[event] = atm.ads.adUnitMeta[auId].refreshFunction; return adUnit; }; "use strict"; atm.addListener = function (name, callback) { if (atm.eventList.indexOf(name) == -1) { atm.eventList.push(name); atm.events[name] = new CustomEvent(name, { bubbles: true }); } document.addEventListener(name, function () { if (callback) callback(atm.transitData); }); }; atm.dispatch = function (name, data) { atm.debug(name, data); atm.transitData = data; document.dispatchEvent(atm.events[name]); }; "use strict"; atm.containerFunctions[CONTAINER_ID].javascriptCustom = function (script) { try { script.script(); } catch (e) { atm.log('error', 'Custom Javascript is malformed ' + e.message, 'Custom JavaScript'); } }; atm.addListener("pageview.HYkjmf5Tf", function(eventData){ if(true) atm.utils.runTags('HYkjmf5Tf', ["U6BZQISaV"]) }); atm.utils.addScript("https://cdn.adnuntius.com/adn.js",false,false,{async:true}); if(atm.containers[CONTAINER_ID].prebid){ if(atm.containers[CONTAINER_ID].prebid.config && atm.containers[CONTAINER_ID].prebid.config.custom){ try { new Function(atm.containers[CONTAINER_ID].prebid.config.custom)(); } catch (e) { atm.log('error', 'Custom prebid script malformed: ' + e.message, 'Custom Prebid') } } if(atm.containers[CONTAINER_ID].prebid.loadPrebidJs){atm.utils.addScript("https://tags.adnuntius.com/pb/prebid.js")} } "use strict"; (function () { var executeQueue = function () { try { var queItem; while (queItem = atm.queue.shift()) { if (typeof queItem == 'function') queItem(); } } catch (e) { atm.log('error', e, 'queue handler'); } }; win.setTimeout(executeQueue, 25); atm.queue.push = function () { Array.prototype.push.apply(this, arguments); win.setTimeout(executeQueue, 1); return this.length; }; executeQueue(); })(); if(document.onreadystatechange) { document.onreadystatechange = () => { if( atm.eventList.indexOf('pageload.' + CONTAINER_ID) != -1){ atm.dispatch('pageload.' + CONTAINER_ID) } } }else { if (document.readyState === "complete") { if( atm.eventList.indexOf('pageload.' + CONTAINER_ID) != -1){ atm.dispatch('pageload.' + CONTAINER_ID) } } else { window.addEventListener("load", function () { if( atm.eventList.indexOf('pageload.' + CONTAINER_ID) != -1){ atm.dispatch('pageload.' + CONTAINER_ID) } }); } }; if (atm.eventList.indexOf('pageview.' + CONTAINER_ID) > -1) atm.dispatch('pageview.' + CONTAINER_ID); })(atm, adn, document, window); } catch (e) { console.log('error', e); }