!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,(function(){return(()=>{"use strict";var e={};let t,n,i,o,r,a,d;function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&c(e,t)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e),function(e){let t=!1;e.setAllowLogging=function(e){t=!!n.findHighestWindow().location.search.includes("bex_logging=true")||e},e.logInfo=function(...e){t&&console.log("%c%s%c%s%s","background: #00008B; color: White; font-weight: bold;","[CeX Header Bidding]",""," ",...e)},e.logWarning=function(...e){t&&console.log("%c%s%c%s%s","background: #FF8C00; color: White; font-weight: bold;","[CeX Header Bidding]",""," ",...e)},e.logError=function(e,...n){t&&(n.length>0&&console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]",""," ",...n),console.log(e))},e.logProblem=function(...e){t&&console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]",""," ",...e)}}(t||(t={})),function(e){function n(){const e=window.top;let t=window;for(;t!==e;)try{t.parent.document,t=t.parent}catch(e){break}return t}function i(){return n().document}e.getRandomInt=function(e,t){return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e)+e)},e.replaceAll=function(e,t,n){return e.split(t).join(n)},e.fixDomain=function(e){return(e=(e=e.toLowerCase()).replace(/^http(s?):\/\//i,"")).startsWith("www.")&&(e=e.slice(4)),e.endsWith("/")&&(e=e.slice(0,-1)),e},e.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},e.findHighestWindow=n,e.findHighestDocument=i,e.hbFrameId="__bexHBFrame";const o=e.hbdevFrameId="__bexHBDevFrame";function r(e,t){let n=i().querySelector("#".concat(t));return n||(n=i().createElement("iframe"),n.id=t,n.style.display="none",n.onload=function(){const t=n.contentDocument,i=t?.createElement("script");i&&(i.src="https://".concat(e,"/hbscript"),i.async=!0,i.defer=!0,t?.head.appendChild(i))},i().body.appendChild(n),n)}e.createHbFrame=r,e.initalizeHb=function(e,n){"www.slovenskenovice.si"===window.location.host&&window.afterIpromPrebid?(t.logInfo("Setting iframe creation through iprom initalizer..."),window.afterIpromPrebid.push((function(){return r(e,n)}))):r(e,n)},e.isDevelMode=function(e=!1,t){return!(!e&&void 0===t)&&(e?window.frameElement?.id===o:void 0===t||t.includes("hbdev.contentexchange.me"))},e.sendEventImage=function(e){const t=i(),n=t.createElement("img");n.src=e,n.onload=function(){t.body.removeChild(n)},n.style.display="none",t.body.appendChild(n)},e.crawlToPost=function(e){let t=e;for(;t&&!t.classList.contains("$bexAd_post");){if("BODY"===t.tagName)return null;if(!t.parentElement)return null;t=t.parentElement}return t},e.getCookie=function(e,t){const n="; ".concat(t).split("; ".concat(e,"="));if(2===n.length)return n.pop()?.split(";").shift()}}(n||(n={})),function(e){function t(){const e=n.findHighestWindow();let t=e.bextag;return t||(e.bextag=t={targeting:{},headerbidding:{queue:[]},_internals:{headerbidding:{bexDisplayHB:{},bexNativeHB:{}},loaders:{},bds:{}},onBexAdFailed:[],onBexAdSuccess:[]}),"targeting"in e.bextag||(e.bextag.targeting={}),"headerbidding"in e.bextag||(e.bextag.headerbidding={}),"queue"in e.bextag.headerbidding||(e.bextag.headerbidding.queue=[]),"_internals"in e.bextag||(e.bextag._internals={}),"headerbidding"in e.bextag._internals||(e.bextag._internals.headerbidding={}),"bexDisplayHB"in e.bextag._internals.headerbidding||(e.bextag._internals.headerbidding.bexDisplayHB={}),"bexNativeHB"in e.bextag._internals.headerbidding||(e.bextag._internals.headerbidding.bexNativeHB={}),"loaders"in e.bextag._internals||(e.bextag._internals.loaders={}),"bds"in e.bextag._internals||(e.bextag._internals.bds={}),"onBexAdFailed"in e.bextag||(e.bextag.onBexAdFailed=[]),"onBexAdSuccess"in e.bextag||(e.bextag.onBexAdSuccess=[]),t}e.getBexTag=t,e.getBexDevTag=function(){const e=t();let n=e._devTag;n||(e._devTag=n={targeting:{},headerbidding:{queue:[]},_internals:{headerbidding:{bexDisplayHB:{},bexNativeHB:{}},loaders:{},bds:{}},onBexAdFailed:[],onBexAdSuccess:[]});const i=n;return"targeting"in i||(i.targeting={}),"headerbidding"in i||(i.headerbidding={}),"queue"in i.headerbidding||(i.headerbidding.queue=[]),"_internals"in i||(i._internals={}),"headerbidding"in i._internals||(i._internals.headerbidding={}),"bexDisplayHB"in i._internals.headerbidding||(i._internals.headerbidding.bexDisplayHB={}),"bexNativeHB"in i._internals.headerbidding||(i._internals.headerbidding.bexNativeHB={}),"loaders"in i._internals||(i._internals.loaders={}),"bds"in i._internals||(i._internals.bds={}),"onBexAdFailed"in i||(i.onBexAdFailed=[]),"onBexAdSuccess"in i||(i.onBexAdSuccess=[]),n}}(i||(i={})),(o||(o={})).getAdformTag=function(){const e=window;return e.adformtag=e.adformtag||[]},(r||(r={})).getPrebid=function(){const e=window;let t=e.pbjs;return t||(e.pbjs=t={que:[]}),t},a||(a={}),function(e){let i=p((function e(){x(this,e)}));e.MemoryStorage=i;let o=function(e){s(i,e);var n=l(i);function i(e,t){var o;return x(this,i),b(f(o=n.call(this)),"_name",void 0),b(f(o),"_storage",void 0),b(f(o),"_data",void 0),b(f(o),"_isLoaded",void 0),o._name=e,o._storage=t,o._data={},o._isLoaded=!1,o}return p(i,[{key:"getValue",value:function(e){return this.load(),this._data[e]}},{key:"setValue",value:function(e,t){this._data[e]=t,this.save()}},{key:"deleteKey",value:function(e){this.hasKey(e)&&(delete this._data[e],this.save())}},{key:"hasKey",value:function(e){return this.load(),void 0!==this._data[e]}},{key:"save",value:function(){try{this._storage.setItem(this._name,JSON.stringify(this._data))}catch(e){t.logError(e,"Failed to save browser storage!",this._name)}}},{key:"load",value:function(){if(!this._isLoaded){this._isLoaded=!0;try{const e=this._storage.getItem(this._name);if(!e)return;this._data=JSON.parse(e)}catch(e){t.logError(e,"Failed to load browser storage!",this._name),this._data={}}}}},{key:"clear",value:function(){this._data={},this.save()}}]),i}(i);e.BrowserStorage=o;let r=function(e){s(i,e);var t=l(i);function i(e){return x(this,i),t.call(this,e,n.findHighestWindow().sessionStorage)}return p(i)}(o);e.Session=r}(d||(d={}));const m=window,y=i.getBexTag();return y._internals.loaders,m.bex=m.bex||{},m.bex.loaders=m.bex.loaders||{},m.bex.loaders.loadDisplayPlacement=function(e){var r=this;const a=e.develMode?i.getBexDevTag():y,d=y.onBexAdSuccess,s=y.targeting,c=a.headerbidding,l=a._internals.headerbidding.bexDisplayHB,u=o.getAdformTag();function f(e,t,n){c.queue.push((function(){l.executeAd(e.placement,t),n&&g(n)})),n&&setTimeout(g,1e3,n)}function g(e){e&&e.parentElement&&e.parentElement.removeChild(e)}function b(e,t,i){const o=document.createElement("script"),r=document.createElement("script");if(r.setAttribute("data-adfscript","adx.adform.net/adx/?mid=".concat(e,"&rnd=").concat(n.getRandomInt(1,1e5))),i&&s.segment){let e=r.getAttribute("data-adfscript");r.setAttribute("data-adfscript","".concat(e,"&mkw=").concat(encodeURIComponent(s.segment)))}t.appendChild(r),o.src="https://s1.adform.net/banners/scripts/adx.js",o.async=!0,o.defer=!0,t.appendChild(o)}t.setAllowLogging(e.develMode);const h="div-ppas-mid-"+e.id;t.logInfo("Called load for display placement with id",h),u.push((function(){u.onLoaded(Number(e.id),(function(t){if(!t||!t.isEmpty)return;const n=t.place.parentElement;n&&f(e,n)})),u.onRendered(Number(e.id),(function(n){if(!n||!n.ad||!n.ad.parentElement)return;const i=n.ad.contentDocument;if(i){const t=i.querySelectorAll("script");for(let i of t)if(i.src&&i.src.startsWith("https://hbdev.contentexchange.me/"))return f(e,n.ad.parentElement,n.ad)}const o=n.ad.contentWindow;if(o&&"cleanAdForm"in o&&"cleanUpDone"in o)return f(e,n.ad.parentElement,n.ad);for(let e of d)try{e(n.ad.parentElement)}catch(e){t.logError(e,"Failed to execute success event!",e)}}))})),"www.slovenskenovice.si"===window.location.host&&(t.logInfo("Detected SlovenskeNovice, using iprom bypass..."),window.afterIpromPrebid=window.afterIpromPrebid||[]),e.develMode?n.findHighestDocument().querySelector("#".concat(n.hbdevFrameId))||n.initalizeHb(e.source,n.hbdevFrameId):n.findHighestDocument().querySelector("#".concat(n.hbFrameId))||n.initalizeHb(e.source,n.hbFrameId);let p=document.currentScript;p&&(p=p.parentElement,function(n,i){if(e.placement.noLazy){try{i()}catch(e){t.logError(e,"Failed to execute code after intersect!")}return}const o=new IntersectionObserver((function(e){for(let r of e)if(r.isIntersecting){t.logInfo("Caught display intersection handle!",n),o.unobserve(n);try{i()}catch(e){t.logError(e,"Failed to execute code after intersect!")}break}}),{root:null,rootMargin:"0px",threshold:.01});o.observe(n)}(p,(function(){let t=document.createElement("div");if(t.id=h,t.className="bexAd","1x2"!==e.size?(t.style.width="100%",t.style.height="100%",t.style.maxWidth="100%",t.style.maxHeight="100%",t.style.textAlign="center"):(t.style.maxWidth="1px",t.style.maxHeight="1px",t.style.display="none"),p.appendChild(t),!e.allowKeywords||!s.segment&&s.loaded)b(e.id,t,!1);else if(s.segment)b(e.id,t,!0);else{setTimeout((function(){s.loaded||(s.loaded=!0,b(e.id,t,!1))}),300);let n=new XMLHttpRequest;n.addEventListener("load",(function(){s.loaded=!0,s.segment=r.responseText,b(e.id,t,!0)})),n.open("GET","https://analytics.contentexchange.me/bex/keywords"),n.withCredentials=!0,n.send()}})),delete m.bex.loaders.loadDisplayPlacement)},e})()}));window.bex.loaders.loadDisplayPlacement({"id":"1096423","placement":{"id":"1096423","type":"HB-Google","noLazy":true,"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-1096423","floorPrice":"0.15","type":"DISPLAY","size":{"universal":[[300,250]]},"bids":[{"bidder":"criteo","params":{"zoneId":"1412657"}},{"bidder":"mgid","params":{"accountId":305,"placementId":"770957"}},{"bidder":"contentexchange","params":{"placementId":"1875","adFormat":"banner"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":363495,"pageId":1293495,"formatId":93786}}]},"next":{"type":"google","config":{"Google":{"Slot":"8176680440"},"ignoreDiv":true,"size":[[300,250]]}}}},"source":"hb.contentexchange.me","allowKeywords":false,"size":"300x250","develMode":false});