`,forceHttps:“,prod:“}[t]||””}}let O;”undefined”!==typeof window&&window.TSM&&window.TSM.adApi?O=window.TSM.adApi:(O=new _,”undefined”!==typeof window&&(window.TSM=window.TSM||{},window.TSM.adApi=O));const P=”.tsm-ad”;function A(t){const e=[];return t&&1===t.nodeType?(t.matches&&t.matches(P)&&e.push(t),t.querySelectorAll&&e.push(…t.querySelectorAll(P)),e):e}function I(t){window.googletag.cmd.push((()=>{window.pbjs?window.pbjs.que.push(t):t()}))}function E(t,e,r,o){const{adGroup:n,adUnit:i}=e;window.googletag.cmd.push((()=>{const{id:s,adSlot:a}=function(t,e){const{adUnitPath:r,targeting:o,adUnit:n,slotSize:i}=t,{gptParams:s={}}=e;let a=t.slotId,c=window.TSM.adSlots[a];return c?{id:a,adSlot:c}:(“tsm-out-of-page”===n||s.outOfPage?c=window.googletag.defineOutOfPageSlot(r,a):”interstitial”===n||s.interstitial?(c=window.googletag.defineOutOfPageSlot(r,window.googletag.enums.OutOfPageFormat.INTERSTITIAL),c&&(a=c.getSlotElementId())):c=window.googletag.defineSlot(r,i&&i.length?i:s.slotSize,a),c?(window.TSM.adSlots[a]=c,c.addService(window.googletag.pubads()),o&&Object.keys(o).length&&c.setConfig({targeting:o}),{id:a,adSlot:c}):{id:a,adSlot:null})}(e,r);a&&(window.googletag.display(a),t.maybeApplyRoxotTargets(),r.callbacks&&r.callbacks.slotRequested&&r.callbacks.slotRequested.constructor===Array&&r.callbacks.slotRequested.length&&t.addSlotRequestedEvent((t=>{const{slot:e}=t;if(e.getSlotElementId()===s)for(let t=0;t{let t=function(t,e,r,o){let n=!1;if(o.hasConfig)return!1;if(window.pbjs&&window.pbjs.adUnits&&window.pbjs.adUnits.constructor===Array){if(t.pbjsCode){const o=(window.pbjs.adUnits||[]).find((e=>e.code===t.pbjsCode));if(o){const t=JSON.parse(JSON.stringify(o));let n=new RegExp(t.code,”g”),i=new RegExp(“{{adUnit}}”,”g”);return JSON.parse(JSON.stringify(t).replace(n,r).replace(i,e))}}for(let t=0;t{window.pbjs?t.refreshSpecificPrebid([e]):window.googletag.pubads().refresh([window.TSM.adSlots[e]])}))}(t,s))}))}const T=function(t){if(“undefined”===typeof window)return;if(window.TSM=window.TSM||{},window.TSM.adSlotObserverInitialized)return;window.TSM.adSlotObserverInitialized=!0,window.googletag=window.googletag||{cmd:[]},window.googletag.cmd=window.googletag.cmd||[],window.TSM.adSlots=window.TSM.adSlots||{};const e=new WeakSet;function r(r,o){if(e.has(r))return;e.add(r);const n=function(t){const e=t.dataset||{};let r,o={};try{o=e.targeting?JSON.parse(e.targeting):{}}catch(t){o={}}try{r=e.slotSize?JSON.parse(e.slotSize):void 0}catch(t){r=void 0}return{slotId:e.slotId,adUnit:e.adUnit,adGroup:e.adGroup||””,adUnitPath:e.adUnitPath||””,targeting:o,slotSize:r}}(r);if(!n.adUnit||!n.slotId)return;const i=t.unitConfigs[n.adUnit];i&&E(t,n,i,o)}function o(e){const r=e.dataset&&e.dataset.slotId;r&&window.TSM.adSlots[r]&&window.googletag.cmd.push((()=>{window.googletag.destroySlots([window.TSM.adSlots[r]]),delete window.TSM.adSlots[r],t.unregisterAdSlot(r)}))}const n=[];A(document.documentElement).forEach((t=>{r(t,(t=>{n.push(t)}))})),I((()=>{n.length&&(window.pbjs?t.refreshSpecificPrebid(n,!0):window.googletag.pubads().refresh(t.getSlotsFromIds(n)))})),new MutationObserver((t=>{t.forEach((t=>{t.addedNodes.forEach((t=>{A(t).forEach((t=>r(t,null)))})),t.removedNodes.forEach((t=>{A(t).forEach(o)}))}))})).observe(document.documentElement,{childList:!0,subtree:!0})};T(O)})()})();