(function(){try{function m(){return!!window.apstag&&(window.apstag.init({pubID:b,adServer:"googletag",bidTimeout:1e3}),!0)}function n(b,c,d,f){var g=document.createElement("div");r(g,c.id,c.grid),b.appendChild(g),o(a,c.adUnit,g,e,d,f)}function o(a,b,e,f,g,h){var i="/"+a+"/"+b,j=window.googletag.defineSlot(i,f,e.id).addService(googletag.pubads()).setCollapseEmptyDiv(!0);c.forEach(function(a){j.setTargeting(a.key,a.value)}),Promise.all([p(i,e.id,f,g),q(i,e.id,f)]).then(()=>{googletag.pubads().addEventListener("slotRenderEnded",a=>{// Refresh if(a.slot.getSlotElementId()===e.id&&0==h&&h++,!a.isEmpty&&a.slot.getSlotElementId()===e.id&&d&&0{h=h||{},h.que=h.que||[],h.que.push(function(){h.addAdUnits(e),h.requestBids({adUnitCodes:[b],bidsBackHandler:function(){return h.setTargetingForGPTAsync(),a()}})})})}async function q(a,b,c){return new Promise(function(d){window.apstag.fetchBids({slots:[{slotID:b,slotName:a,sizes:c.filter(function(a){return"fluid"!=a&&1!=a[0]&&1!=a[1]})}]},function(){return window.apstag.setDisplayBids(),d()})})}function r(a,b,c){a.className=b,a.id=b,a.style.display="grid",a.style.gridColumn=c}function s(a,b){if(b&&b.adUnits&&a){var c,d=b.adUnits.find(function(b){return-1{h.que.push(function(){h.requestBids({adUnitCodes:[a],bidsBackHandler:function(){return h.setTargetingForGPTAsync(a),b()}})})})}function u(a,b,d,e){Promise.all([t(a),q(d,a,e)]).then(()=>{// Set Refresh KV c.forEach(function(a){b.setTargeting(a.key,a.value)}),b.setTargeting("browsiRefresh",!0),googletag.pubads().refresh([b],{changeCorrelator:!1})})}function v(a,b,c,d,e){var f,g=new IntersectionObserver((g,h)=>{var i=!1,j=g[0];.5<=j.intersectionRatio?(i=!1,f=setTimeout(()=>{i||(u(a.id,c.slot,d,e),h.unobserve(j.target),h.disconnect())},b)):(i=!0,clearTimeout(f))},{threshold:[0,.5]});g.observe(a)}var a="",b="",c="",d="";d=+d;var e="",f={id:""+"_leftAd",adUnit:"",grid:1,timeout:0},g={id:""+"_rightAd",adUnit:"",grid:2,timeout:0},h=window[""],i=s(f.adUnit,h),j=s(g.adUnit,h),k=document.querySelector("#"+"");k.style.left=0,k.style.right=0,k.style.padding="0 1rem";var l=document.createElement("div");l.style.display="grid",l.style.gridColumn="span 2",function(){return window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],!!window.apstagLOADED||m()}()&&window.googletag.cmd.push(()=>{n(l,f,i,0),n(l,g,j,0),k.appendChild(l)})}catch(a){console.warn("[BROWSI]: ",a.message)}})();