/*! * (c) Copyright Adnami ApS, all rights reserved. * * Package: @adnami.io/adsm.macro.841e04b3-8417-407f-bc19-65f9be2759ea.js * Version: 1.0.1 * Date: 2025-03-19T15:57:24.025Z * */(()=>{var e={17:e=>{e.exports={load:function(e,t){var n=document.createElement("script");t&&(n.id=t),n.async=!0,n.type="text/javascript",n.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)},loadDefer:function(e,t){var n=document.createElement("script");t&&(n.id=t),n.async=!0,n.type="text/javascript",n.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)},loadSync:function(e,t){var n=document.createElement("script");t&&(n.id=t),n.type="text/javascript",n.src=e;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(n,o)}}},228:e=>{const t="adnm-interscroll-parent";function n(){document.querySelectorAll(`.${t}`).forEach((e=>{e.classList.remove(t)}))}const o="adnm-interscroll-creative-parent";let a=null,r=null;e.exports={addParentClass:function(e,o){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(function(e,n){let o=null,r=e;for(;r.parent&&r.parent!==window;)r=r.parent;const i=document.querySelectorAll("iframe");for(let e=0;e{e.classList.remove(o)})),a&&a.parentElement.removeChild(a)}}},243:e=>{const t={dirname:"/",url:"https://adnami.io/",uuid:"841e04b3-8417-407f-bc19-65f9be2759ea",inject:!1,certifications:["midscroll_desktop","midscroll_desktop_fullscreen","midscroll_mobile","topscroll"]};e.exports=t},252:e=>{var t={addEvent:function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)},cloneCert:function(e){var t=JSON.parse(JSON.stringify(window.adsm.certifications[e]));return t.onInit=window.adsm.certifications[e].onInit,t.onDestroy=window.adsm.certifications[e].onDestroy,t.onLoaded=window.adsm.certifications[e].onLoaded,t}},n=function(){var e,t,n,o,a=document.getElementsByTagName("html")[0],r="10px",i="1500px",s="absolute",d="fixed";function c(){return a.getBoundingClientRect().top}function l(e,t,n){e&&(e.style.marginTop=t,e.style.position=n)}return{defineSkyWrappers:function(n,o){e=n,t=o},defineSkyArray:function(e){n=e},adjustSkys:function(){null!==document.querySelector("html.adsm-skin")||o?c()<-parseInt(i)?(l(e,r,d),l(t,r,d)):(l(e,i,s),l(t,i,s)):(l(e,r,d),l(t,r,d))},adjustSkycrapers:function(e,t){if(o)if(c()100&&null!==document.querySelector(".adnm-adwell iframe");var e}())e=t.firstChild,clearInterval(n),t.style.maxWidth=((i=r)?i.getBoundingClientRect().width:null)+"px",a();else if(o>1e4)return clearInterval(n),!1;var i}),100),o=0;function a(){var n=document.createElement("div");t&&e&&(t.insertBefore(n,e),n.classList.add("adnm-adwell-close-button"),n.innerHTML="✖",document.querySelector(".adnm-adwell-close-button").addEventListener("click",r))}function r(){t&&(t.classList.add("adnm-adwell-gone"),t.classList.remove("adnm-adwell-full"))}return{insertCloseButton:a,addEvent:function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)},adwellFullHeight:function(){t&&(t.classList.add("adnm-adwell-full"),setTimeout(r,7e3))}}}();e.exports={functions:t,adnamiSkyAdjuster:n,adnamiBottomBanner:o}},301:e=>{e.exports={bootstrap:function(e){var t=window.adsmtag=window.adsmtag||{};t.macro?t.macro.uuid===e.uuid||t.mnemonics||(t.macro.uuid=e.uuid,t.macro.loaded=!0,t.macro.certifications=e.certifications||void 0,e.default()):(t.macro={},t.macro.uuid=e.uuid,t.macro.loaded=!0,t.macro.certifications=e.certifications||void 0,e.default())}}},343:(e,t,n)=>{var o=n(744),a=n(762);e.exports={run:function(){var e=window.adsmtag=window.adsmtag||{};e.mnemonics=e.mnemonics||[],-1===e.mnemonics.indexOf("css")&&(o.create(a,"adsmtag-css"),e.mnemonics.push("css"))}}},572:(e,t,n)=>{var o=n(969);const a=n(859);e.exports={run:function(){var e=window.adsmtag=window.adsmtag||{};e.mnemonics=e.mnemonics||[],-1===e.mnemonics.indexOf("scripts")&&(o.run(),a.run(),e.mnemonics.push("scripts"))}}},706:e=>{var t,n,o={getMacroRmbRef:function(){return n},getMacroEdgeRef:function(){return t},edgeRef:t="https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",edgeRefLegacy:"https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",rmbRef:n="https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",lazyLoadEdge:"https://macro.adnami.io/macro/gen/adsm.macro.rmb.js",boosterRef:""};e.exports={config:o}},743:e=>{const t="adnm-outstream-parent";function n(){document.querySelectorAll(`.${t}`).forEach((e=>{e.classList.remove(t)}))}const o="adnm-outstream-creative-parent";let a=null,r=null;const i="adnm-outstream-creative-parent-height";let s=null,d=null;e.exports={addParentClass:function(e,o){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(function(e,n){let o=null,r=e;for(;r.parent&&r.parent!==window;)r=r.parent;const i=document.querySelectorAll("iframe");for(let e=0;e{e.classList.remove(o)})),a&&a.parentElement.removeChild(a)},autoHeightParents:function(e){s=document.createElement("style"),document.head.appendChild(s),s.innerHTML=`.${i} { height: auto !important; max-height: unset !important; display: block !important }`,function(e){let t=null,n=e;for(;n.parent&&n.parent!==window;)n=n.parent;const o=document.querySelectorAll("iframe");for(let e=0;e{e.classList.remove(i)})),s&&s.parentElement.removeChild(s)},centerMobileCreative:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=document.querySelectorAll(".adnm-html-outstream-wrapper");for(const o of t){o.style.left="0px",o.style.marginLeft="0px";const t=o.getBoundingClientRect().left;t<0?o.style.marginRight=t+"px":o.style.marginLeft=e?-1*(t+n())/2+"px":-1*(t+n())+"px"}function n(){return window.innerWidth-window.document.documentElement.clientWidth}}}},744:e=>{function t(e,t,n,o){try{"insertRule"in e?e.insertRule(t+"{"+n+"}",o):"addRule"in e&&e.addRule(t,n,o)}catch(e){}}function n(e,t,n,o){try{let a="@media "+t+"{";for(let e=0;e{e.exports=[{selector:'img[src^="//match.adsrvr.org"]',styles:"display:none;"},{selector:"img.native-ads-pixel-tracker",styles:"display:none;"},{selector:"#adform-wallpaper-left,#adform-wallpaper-right",styles:"display:none;"},{selector:".adnm-topscroll .adnm-html-topscroll-container",styles:"width:100vw !important;"},{selector:".adnm-topscroll .campaign-bar-wrapper",styles:"position:relative !important;"},{selector:".adnm-topscroll.adnm-topscroll-fixed .campaign-bar-wrapper",styles:"position:fixed !important;"},{selector:".adnm-topscroll .campaign-bar-spacer",styles:"height:0px !important;"},{selector:".adnm-topscroll #login-menu",styles:"display:none !important;"},{selector:".adnm-desktop-interscroll-wallpaper",styles:"background-position-x:72% !important;"},{selector:".adnm-html-desktop-interscroll .adnm-desktop-interscroll-loaded",styles:"min-height:80vh !important;"},{selector:".adnm-html-outstream [id*='ad_box']:has(.adnm-html-outstream-wrapper)",styles:"margin:unset !important;"},{selector:".adnm-html-outstream [id*='ad_box']:has(.adnm-html-outstream-wrapper) > .advertisement",styles:"min-width:100vw !important;"},{selector:".adnm-html-outstream [data-losjs*='borka-panorama']:has(.adnm-html-outstream-wrapper)",styles:"height:unset !important;margin:unset !important;"}]},816:e=>{var t={addEvent:function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)},removeEvent:function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)},cloneCert:function(e){var t=JSON.parse(JSON.stringify(window.adsm.certifications[e]));return t.onInit=window.adsm.certifications[e].onInit,t.onDestroy=window.adsm.certifications[e].onDestroy,t.onLoaded=window.adsm.certifications[e].onLoaded,t},fader:function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"adnm-fader-transition",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"adnm-fader-opacity";e?e.disconnect():function(){const e=document.createElement("style"),t=document.createElement("style");e.id=a,t.id=o,e.innerHTML=` html[class*="adnm-"] .${a} {opacity: 0 !important; z-index: 9; }, html[class*="adsm-"] .${a} {opacity: 0 !important; z-index: 9;} `,t.innerHTML=` html[class*="adnm-"] .${o} { transition: opacity 0.5s ease 0s !important;}, html[class*="adsm-"] .${o} { transition: opacity 0.5s ease 0s !important;} `,document.head.appendChild(e),document.head.appendChild(t)}();const r=new Map,i=document.querySelectorAll(t);if(!i)return;if(!Array.from(i).some((e=>e.className.includes("adnm-")||e.className.includes("adsm-"))))return document.querySelectorAll(`#${a}, #${o}`).forEach((e=>{e.remove()})),void document.querySelectorAll(`.${a}, .${o}`).forEach((e=>{e.classList.remove(a,o)}));e=new IntersectionObserver(((e,t)=>{e.forEach((e=>{r.set(e.target,e.isIntersecting)})),Array.from(r.values()).some((e=>e))?s.forEach((e=>{e.classList.add(a)})):s.forEach((e=>{e.classList.remove(a)}))}),{threshold:.01}),i.forEach((t=>{e.observe(t)}));const s=document.querySelectorAll(n);return s?(s.forEach((e=>{e.classList.add(o)})),e):void 0},position:function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;e&&e.disconnect();const i=document.querySelector(t);if(i)return null==a&&(a="adnm-topscroll-fixed"==n?"0px 0px 0px 0px":`-${i.clientHeight}px 0px 0px 0px`),(e=function(){let e=0;return"adnm-topscroll-fixed"==n&&(e=-i.clientHeight),new IntersectionObserver(((t,o)=>{let a=!1;t.forEach((t=>{a||(t.boundingClientRect.top>e&&document.querySelector("html").classList.add(n),a=!0),document.querySelector("html").classList.toggle(n)}))}),{root:o,rootMargin:a,threshold:0})}()).observe(i),function(){if(null==r)if("adnm-topscroll-fixed"==n)r=".adnm-html-topscroll-frame-wrapper";else{if("adsm-skin-fixed"!=n)return;r=".adsm-wallpaper"}const t=document.querySelector(r);t&&new MutationObserver(((o,a)=>{for(const r of o)r.removedNodes.forEach((o=>{o===t&&(document.querySelector("html").classList.remove(n),e.disconnect(),a.disconnect())}))})).observe(t.parentNode,{childList:!0})}(),e},addParentClass:function(e,t,n,o){const a="adnm-"+t+"-parent",r=new Set;let i,s;!function(){let t=null,d=e;for(;d.parent&&d.parent!==window;)d=d.parent;const c=document.querySelectorAll("iframe");for(let e=0;e{for(const n of e)n.removedNodes.forEach((e=>{e!==i&&e!==i.parentNode||(r.forEach((e=>{e.classList.remove(a)})),t.disconnect())}))})).observe(s,{childList:!0,subtree:!0})}};e.exports={functions:t}},859:(e,t,n)=>{n(880);e.exports={run:function(){var e="ADSM_RMB_FULLSCREEEN_INTERSCROLL_DESKTOP_LOADED",t="ADSM_RMB_HTML_DESKTOP_INTERSCROLL_LOADED",n="adnm-desktop-interscroll-loaded";function o(){var e=document.querySelector("adnm-desktop-interscroll")||document.querySelectorAll(".adnm-html-desktop-interscroll-frame-wrapper");if(e)for(var t=0;t{var t={};window.addEventListener("message",(function(e){if(e.data){var n=e.data.type,o=t[n];if(o)for(var a=0;a{var o=n(252).functions.cloneCert;n(816).functions.addParentClass;var a=n(228);const r=n(743);e.exports={run:function(){window.adsm=window.adsm||{},window.adsm.certifications=window.adsm.certifications||[],window.adsm.certifications["adnami-canvas-desktop-topscroll"]={cert:{element:"body",scrollToTopDisableAutoScroll:!1,scrollToTopMaxViewportsAwayFromTop:.5,scrollToTopPercentage:50},onDestroy:function(){var e;(e=document.querySelector("html.adnm-topscroll-mobile"))&&e.classList.remove("adnm-topscroll-mobile")},onLoaded:function(){},onInit:function(){function e(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):!!e.attachEvent&&e.attachEvent("on"+t,n)}function t(){var e="adnm-topscroll-fixed",t=document.querySelector(".adnm-html-topscroll-frame-wrapper"),n=document.querySelector("html.adnm-topscroll");n&&(t.getBoundingClientRect().bottom>0?n.classList.remove(e):n.classList.add(e))}var n,o;e(window,"scroll",t),e(window,"resize",t),e(window,"load",t),n=window.outerWidth<480,(o=document.querySelector("html"))&&n&&o.classList.add("adnm-topscroll-mobile")}},window.adsm.certifications["adnami-canvas-mobile-topscroll"]=o("adnami-canvas-desktop-topscroll"),window.adsm.certifications["adnami-canvas-mobile-midscroll"]={cert:{},onDestroy:function(){a.removeParentClass()},onLoaded:function(){},onInit:function(e){a.addParentClass(e,2)}},window.adsm.certifications["adnami-midscroll-mobile-sticky"]=o("adnami-canvas-mobile-midscroll"),window.adsm.certifications["adnami-midscroll-desktop"]={cert:{},onDestroy:function(){a.removeAutoHeightParents(),a.removeParentClass()},onLoaded:function(e){a.autoHeightParents(e)},onInit:function(e){a.addParentClass(e,3)}},window.adsm.certifications["adnami-midscroll-doublescreen-desktop"]={},window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].onInit=window.adsm.certifications["adnami-midscroll-desktop"].onInit,window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].onLoaded=window.adsm.certifications["adnami-midscroll-desktop"].onLoaded,window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].onDestroy=window.adsm.certifications["adnami-midscroll-desktop"].onDestroy,window.adsm.certifications["adnami-midscroll-doublescreen-desktop"].cert={},window.adsm.certifications["adnami-outstream-mobile"]={cert:{centered:!1,widthOverride:"100vw"},onDestroy:function(){r.removeAutoHeightParents()},onLoaded:function(e){r.autoHeightParents(e,2)},onInit:function(e){}}}}}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}var o=n(343),a=n(572),r=n(301),s=n(17),d=n(706),c=n(243),l={uuid:c.uuid,certifications:c.certifications,default:function(){var e=window.adsmtag=window.adsmtag||{},t=[];t.push((function(){a.run(),o.run()})),e.cmd=t.concat(e.cmd||[]),s.load(d.config.rmbRef)}};r.bootstrap(l)})();