(()=>{if(window.embiInterstitialLoaded)return void console.warn("EMBI Interstitial script ya está cargado. Abortando ejecución duplicada.");window.embiInterstitialLoaded=!0;var e=window.pbjs||(window.pbjs={que:[]}),t=window.googletag=window.googletag||{};function n(e,t){if(!document.querySelector(`script[src='${e}']`)){const n=document.createElement("script");n.async=t,n.type="text/javascript",n.src=e,document.head.appendChild(n)}}t.cmd=t.cmd||[],n("https://securepubads.g.doubleclick.net/tag/js/gpt.js",!1),n("https://embi-media.com/prebids/production/prebid.js",!1),n("https://embi-media.com/hb_resources/teads/teads_cookieless.js"),n("https://a.teads.tv/analytics/tag.js");const i=3e3,o=[{slot:"/22562061343/0461-02_eldinamo-cl_Inline_",tagId:"embi_display_video_df265b05",type:"DISPLAY_VIDEO",ubication:"body > div.js-content-static > div > main > div > section.highlight-section > article > div.the-article__body.the-article-text.ads_content_succes > p:nth-child(7)",position:"INSERT_AFTER",manualInsertion:!1,mobileSizes:[[300,250],[336,280]],desktopSizes:[[300,250],[336,280]],offset:20,tbLoaderURL:"",adunitMobile:{code:"embi_display_video_df265b05",mediaTypes:{video:{context:"outstream",playerSize:[[300,250]],mimes:["video/mp4","video/webm","video/ogg"],protocols:[1,2,3,4,5,6,7,8],placement:2,plcmt:4,playbackmethod:[2],skip:1},banner:{sizes:[[300,250],[336,280]]}},bids:[{bidder:"onetag",params:{pubId:"736328ea479779c"}},{bidder:"equativ",params:{pageId:2132799,siteId:741954,formatId:144927,networkId:2843}},{bidder:"rubicon",params:{siteId:610317,zoneId:3946923,accountId:24030}},{bidder:"appnexus",params:{placementId:36672882}},{bidder:"richaudience",params:{pid:"8XChV8pNp2",supplyType:"site"}}],ortb2Imp:{ext:{gpid:"/22562061343/0461-02_eldinamo-cl_Inline_",data:{pbadslot:"/22562061343/0461-02_eldinamo-cl_Inline_"}}}},adunitDesktop:{code:"embi_display_video_df265b05",mediaTypes:{video:{context:"outstream",playerSize:[[640,360]],mimes:["video/mp4","video/webm","video/ogg"],protocols:[1,2,3,4,5,6,7,8],placement:2,plcmt:4,playbackmethod:[2],skip:1},banner:{sizes:[[300,250],[336,280]]}},bids:[{bidder:"onetag",params:{pubId:"736328ea479779c"}},{bidder:"equativ",params:{pageId:2132799,siteId:741954,formatId:144928,networkId:2843}},{bidder:"rubicon",params:{siteId:610317,zoneId:3946923,accountId:24030}},{bidder:"appnexus",params:{placementId:36672882}},{bidder:"richaudience",params:{pid:"8XChV8pNp2",supplyType:"site"}}],ortb2Imp:{ext:{gpid:"/22562061343/0461-02_eldinamo-cl_Inline_",data:{pbadslot:"/22562061343/0461-02_eldinamo-cl_Inline_"}}}}}],a=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<=768;function d(e){const n=e.tagId,i=e.type,o=e.slot;if("HIGH_IMPACT"===i&&(INTERSTITIAL_AD_UNIT_CODE=n,INTERSTITIAL_AD_UNIT_PATH=o),e.manualInsertion&&"TABOOLA_INTEGRATION"!==e.type){if(document.getElementById(n)&&t.cmd.push(function(){t.display(n)}),e.tagId2){const c=e.tagId2;document.getElementById(c)&&t.cmd.push(function(){t.display(c)})}}else{const s=e.position,l=e.ubication,p=e.offset;function d(e,t){const n=document.createElement("script");n.textContent=`\n googletag.cmd.push(function() {\n googletag.display('${t}');\n });\n `,e.appendChild(n)}try{if("TABOOLA_INTEGRATION"===i)createTaboolaContainer(e);else if("HIGH_IMPACT"===i){d(createInterstitialContainer(n),n)}else if("DISPLAY_VIDEO_STICKY"===i)cornerContainer=createCornerContainer(n,s,p),d(cornerContainer,n);else if("FOOTER_INTOP"===i)footerInTopContainer=createfooterInTopContainer(n,s),d(footerInTopContainer,n);else if("DOUBLE_BOX"===i){const u=document.querySelector(`${l}`);if(!u)return console.error(`Elemento con clase '${l}' no encontrado en el DOM para el anuncio ${n}. No se pudo insertar el DIV.`),!1;const m=e.tagId2,b=document.createElement("div");b.id=`container_${n}`,(r=b).style.display="flex",r.style.flexDirection=a?"column":"row",r.style.gap="24px",r.style.marginBottom="24px",r.style.background="transparent",r.style.justifyContent="center",r.style.alignItems="center";const g=document.createElement("div");g.id=n,b.appendChild(g),d(g,n);const f=document.createElement("div");switch(f.id=m,b.appendChild(f),d(f,m),s){case"INSERT_BEFORE":u.insertAdjacentElement("beforebegin",b);break;case"INSERT_AFTER":u.insertAdjacentElement("afterend",b);break;default:u.appendChild(b)}}else{const I=document.querySelector(`${l}`);if(!I)return void console.error(`Elemento con clase '${l}' no encontrado en el DOM para el anuncio ${n}.`);const h=document.createElement("div");switch(h.id=n,h.style.marginBottom="24px",d(h,n),s){case"INSERT_BEFORE":I.insertAdjacentElement("beforebegin",h);break;case"INSERT_AFTER":I.insertAdjacentElement("afterend",h);break;default:I.appendChild(h)}}}catch(y){return console.error(`Error procesando el anuncio ${n}:`,y),!1}}var r;return!0}if(o.length>0){const f=[...o.map(e=>a?e.adunitMobile:e.adunitDesktop).filter(Boolean),...o.filter(e=>"DOUBLE_BOX"===e.type).map(e=>a?e.adunitMobile2:e.adunitDesktop2).filter(Boolean)];function r(){e.initAdserverSet||(e.initAdserverSet=!0,t.cmd.push(function(){e.que.push(function(){e.libLoaded?e.setTargetingForGPTAsync():console.warn("Prebid.js no se cargó correctamente. Refrescando GAM sin bids de Prebid."),t.pubads().refresh()})}))}function c(n,o){t.cmd.push(function(){e.que.push(function(){e.requestBids({timeout:i,adUnitCodes:[n],bidsBackHandler:function(){e.setTargetingForGPTAsync([n]);const i=o.getTargeting("hb_bidder");i&&i.length>0&&t.pubads().refresh([o])}})})})}t.cmd.push(function(){o.filter(e=>"TABOOLA_INTEGRATION"!==e.type).forEach(e=>{const n=a?e.mobileSizes:e.desktopSizes;e.adSlot=t.defineSlot(e.slot,n,e.tagId).setForceSafeFrame(!1).addService(t.pubads()),"DOUBLE_BOX"===e.type&&(e.adSlotB=t.defineSlot(e.slot2,n,e.tagId2).setForceSafeFrame(!1).addService(t.pubads()))}),t.pubads().disableInitialLoad(),t.pubads().enableLazyLoad({fetchMarginPercent:200,renderMarginPercent:100,mobileScaling:1}),t.pubads().collapseEmptyDivs(!0),t.pubads().setCentering(!0),t.enableServices();const n={buckets:[{precision:2,min:0,max:5,increment:.01},{precision:2,min:5,max:10,increment:.1},{precision:2,min:10,max:20,increment:.5}]};e.que.push(function(){e.setConfig({useBidCache:!0,ttlBuffer:6,timeoutBuffer:1e3,bidderTimeout:i,debug:!1,priceGranularity:n,enableSendAllBids:!1,targetingControls:{alwaysIncludeDeals:!0},enableTIDs:!0,allowActivities:!0,deviceAccess:!0,cache:{url:"https://prebid.adnxs.com/pbc/v1/cache",ignoreBidderCacheKey:!0},userSync:!0,source:{schain:{config:{complete:1,ver:"1.0",nodes:[{asi:"embi-media.com",sid:"0461",hp:1},{asi:"google.com",sid:"pub-2768830610135793",hp:1}]}}}}),e.setBidderConfig({bidders:["appnexus","equativ","teads","rubicon","onetag","richaudience","adagio"],config:{ortb2:{imp:{ext:{prebid:{floormin:.01}}}}}}),e.bidderSettings={standard:{storageAllowed:!0,adserverTargeting:[{key:"hb_bidder",val:function(e){return e.bidderCode}},{key:"hb_adid",val:function(e){return e.adId}},{key:"hb_pb",val:function(e){return e.pbCg}},{key:"hb_size",val:function(e){return e.size}},{key:"hb_source",val:function(e){return e.source}},{key:"hb_format",val:function(e){return e.mediaType}}]}},e.addAdUnits(f)}),o.forEach(e=>{d(e)}),e.que.push(function(){e.requestBids({timeout:i,bidsBackHandler:r})}),setTimeout(function(){r()},4e3),setInterval(function(){o.forEach(e=>{e.adSlot&&(c(e.tagId,e.adSlot),"DOUBLE_BOX"===e.type&&e.adSlotB&&c(e.tagId2,e.adSlotB))})},3e4)});try{(()=>{s("config","G-PRJHEDRHDQ");const t=document.getElementsByClassName("news-headline__kicker")[0],n=t?t.textContent:"",i=document.getElementsByTagName("time")[0],o=i?i.textContent:"";s("event","ReadArticle",{event_category:"Article - Desktop",event_label:document.title,article_author:n,publication_date:o}),e.que.push(function(){e.onEvent("bidWon",function(e){s("event","BidWon",{event_category:"Article - Desktop",event_label:window.location.pathname.split("/")[2],bidder:e.bidder,cpm:e.cpm,ad_unit:e.adUnitCode})})})})()}catch(I){console.error("Error gtag: ",I)}function s(){dataLayer.push(arguments)}l=window,p=document,u="script",m="ga",l.GoogleAnalyticsObject=m,l[m]=l[m]||function(){(l[m].q=l[m].q||[]).push(arguments)},l[m].l=1*new Date,b=p.createElement(u),g=p.getElementsByTagName(u)[0],b.async=1,b.src="https://www.googletagmanager.com/gtag/js?id=G-1ZMKMZGT7R",g.parentNode.insertBefore(b,g),window.dataLayer=window.dataLayer||[],s("js",new Date),s("config","G-1ZMKMZGT7R")}var l,p,u,m,b,g})();