(function(){try{function m(){return!!window.apstag&&(window.apstag.init({pubID:a,adServer:"googletag",bidTimeout:1e3}),!0)}async function n(a,b,c,d){return new Promise(e=>{var g=p(a,d),h=f.adUnits.find(function(a){return a.code===b}),i=!!h;// Check if pbjs ad units contains the unit code f=f||{},f.que=f.que||[],f.que.push(function(){if(!i){var a={code:b,mediaTypes:{banner:{sizes:c.filter(function(a){return"fluid"!=a})}},bids:g};f.addAdUnits(a)}// Block refresh when HB bid won f.requestBids({adUnitCodes:[b],bidsBackHandler:function(a){return f.setTargetingForGPTAsync(),e()}}),f.onEvent("bidWon",t,b),l=!0})})}async function o(a,b,c){return new Promise(function(d){window.apstag.fetchBids({slots:[{slotID:b,slotName:a,sizes:c.filter(function(a){return"fluid"!=a})}]},function(a){return window.apstag.setDisplayBids(),d()})})}function p(a,b){if(f&&f.adUnits&&a){var d,g=f.adUnits.find(function(d){if("banner"===b){var e=c.split("/"),f=e[e.length-1];return d.mediaTypes.banner.name===f}return"path"===b?d.path===a:void 0});if(g){try{d=JSON.parse(JSON.stringify(g.bids))}catch(a){d=g.bids}// filtering RTB House return d=d.filter(function(a){return"rtbhouse"!=a.bidder}),d}}}async function q(a){return new Promise(b=>{f.que.push(function(){f.requestBids({adUnitCodes:[a],bidsBackHandler:function(c){return f.setTargetingForGPTAsync(a),b()}}),l||pbjsFluct.onEvent("bidWon",t,a)})})}function r(a,b,c,d){Promise.all([q(a),o(c,a,d)]).then(()=>{// Set Refresh KV h.forEach(function(a){b.setTargeting(a.key,a.value)}),b.setTargeting("browsiRefresh",!0),googletag.pubads().refresh([b],{changeCorrelator:!1})})}function s(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||(r(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="",e="",f=window[""],g="".toLowerCase(),h="",i=+"",j=0,k=!1,l=!1;const t=function(a){k=!0,f.offEvent("bidWon",t,e),l=!1};(function a(){return window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],!!window.apstagLOADED||m()})(),window.googletag.cmd.push(()=>{var a=window.googletag.defineSlot(c,d,e).addService(googletag.pubads());googletag.enableServices(),Promise.all([n(c,e,d,g),o(b,e,d)]).then(()=>{h&&h.forEach(function(b){a.setTargeting(b.key,b.value)}),googletag.pubads().addEventListener("slotRenderEnded",a=>{if(a.slot.getSlotElementId()===e&&(0==j&&(window["browsiCallback_"](a.isEmpty),j++),!a.isEmpty&&i&&0