!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 o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,(function(){return(()=>{"use strict";var e={};let t,n,o,i,r,a,d;function c(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&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(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,o=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.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;function o(){const e=(new Error).stack;if(!e)return null;const t=e.split("\n")[3].split(" ");let n=t[t.length-1];return"("!==n[0]&&(n="("+n+")"),n}e.setAllowLogging=function(e){t=!!n.findHighestWindow().location.search.includes("bex_logging=true")||e},e.logInfo=function(...e){if(!t)return;const n=o();console.log("%c%s%c%s%s","background: #00008B; color: White; font-weight: bold;","[CeX Header Bidding]","",n?" ".concat(n):"","",...e)},e.logWarning=function(...e){if(!t)return;const n=o();console.log("%c%s%c%s%s","background: #FF8C00; color: White; font-weight: bold;","[CeX Header Bidding]","",n?" ".concat(n):"","",...e)},e.logError=function(e,...n){if(!t)return;const i=o();n.length>0&&console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]","",i?" ".concat(i):"","",...n),console.error(e),console.trace()},e.logProblem=function(...e){if(!t)return;const n=o();console.log("%c%s%c%s%s","background: #8B0000; color: White; font-weight: bold;","[CeX Header Bidding]","",n?" ".concat(n):"","",...e),console.trace()}}(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 o(){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=o,e.hbFrameId="__bexHBFrame";const i=e.hbdevFrameId="__bexHBDevFrame";function r(e,t){const n=o();n.body||(n.body=n.createElement("body"));let i=n.querySelector("#".concat(t));return i||(i=n.createElement("iframe"),i.id=t,i.style.display="none",i.onload=function(){const t=i.contentDocument,n=t?.createElement("script");n&&(n.src="https://".concat(e,"/hbscript"),n.async=!0,n.defer=!0,t?.head.appendChild(n))},n.body.appendChild(i),i)}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===i:void 0===t||t.includes("hbdev.contentexchange.me"))},e.sendEventImage=function(e){const t=o(),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 o=n;return"targeting"in o||(o.targeting={}),"headerbidding"in o||(o.headerbidding={}),"queue"in o.headerbidding||(o.headerbidding.queue=[]),"_internals"in o||(o._internals={}),"headerbidding"in o._internals||(o._internals.headerbidding={}),"bexDisplayHB"in o._internals.headerbidding||(o._internals.headerbidding.bexDisplayHB={}),"bexNativeHB"in o._internals.headerbidding||(o._internals.headerbidding.bexNativeHB={}),"loaders"in o._internals||(o._internals.loaders={}),"bds"in o._internals||(o._internals.bds={}),"onBexAdFailed"in o||(o.onBexAdFailed=[]),"onBexAdSuccess"in o||(o.onBexAdSuccess=[]),n}}(o||(o={})),(i||(i={})).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 o=p((function e(){x(this,e)}));e.MemoryStorage=o;let i=function(e){c(o,e);var n=l(o);function o(e,t){var i;return x(this,o),b(f(i=n.call(this)),"_name",void 0),b(f(i),"_storage",void 0),b(f(i),"_data",void 0),b(f(i),"_isLoaded",void 0),i._name=e,i._storage=t,i._data={},i._isLoaded=!1,i}return p(o,[{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()}}]),o}(o);e.BrowserStorage=i;let r=function(e){c(o,e);var t=l(o);function o(e){return x(this,o),t.call(this,e,n.findHighestWindow().sessionStorage)}return p(o)}(i);e.Session=r}(d||(d={}));const m=window,y=o.getBexTag();return y._internals.loaders,m.bex=m.bex||{},m.bex.loaders=m.bex.loaders||{},m.bex.loaders.loadNativeWidget=function(e){var r=this;const a=e.develMode?o.getBexDevTag():y,d=y.onBexAdSuccess,c=y.targeting,s=a.headerbidding,l=a._internals.headerbidding,u=l.bexNativeHB,f=(l.bexDisplayHB,i.getAdformTag()),g=[];t.setAllowLogging(e.develMode);const b=document.currentScript;if(!b)return t.logProblem("Failed to find current script!");const h=b.parentElement;if(!h)return t.logProblem("Failed to find root element");const p=h.querySelectorAll("div.\\$bexAd_post");if(p.length<1)return t.logWarning("Failed to find any bex posts in element!",h);function x(e,t,n){s.queue.push((async function(){await u.executeAd(e.placement,t)||t&&v(t),n&&v(n)})),n&&setTimeout(v,1e3,n)}function v(e){e&&e.parentElement&&e.parentElement.removeChild(e)}function w(e){const t=document.createElement("script");if(e&&c.segment)for(let e of g){if(!e)continue;let t=e.getAttribute("data-adfscript");e.setAttribute("data-adfscript","".concat(t,"&mkw=").concat(encodeURIComponent(c.segment)))}t.src="https://s1.adform.net/banners/scripts/adx.js",t.async=!0,t.defer=!0,t.onerror=function(){for(let e of g)e&&v(e.parentElement)},setTimeout((function(){return document.body.appendChild(t)}),10)}function _(e,n,o){if(n.placement.noLazy){try{o()}catch(e){t.logError(e,"Failed to execute code after intersect!")}return}const i=new IntersectionObserver((function(n){for(let r of n)if(r.isIntersecting){t.logInfo("Caught display intersection handle!",e),i.unobserve(e);try{o()}catch(e){t.logError(e,"Failed to execute code after intersect!")}break}}),{root:null,rootMargin:"0px 0px 350px 0px",threshold:.01});i.observe(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);for(let o of e.posts){if(!o||!o.position||!o.placement||o.position>p.length)continue;let e=p[o.position-1];f.push((function(){f.onLoaded(Number(o.placement.id),(function(e){if(!e||!e.isEmpty)return;const t=e.place.parentElement;t&&x(o,t)})),f.onRendered(Number(o.placement.id),(function(e){if(!e||!e.ad||!e.ad.parentElement)return;const n=e.ad.contentDocument;if(n){const t=n.querySelectorAll("script");for(let n of t)if(n.src&&n.src.startsWith("https://hbdev.contentexchange.me/"))return x(o,e.ad.parentElement,e.ad)}const i=e.ad.contentWindow;if(i&&"cleanAdForm"in i&&"cleanUpDone"in i)return x(o,e.ad.parentElement,e.ad);for(let n of d)try{n(e.ad.parentElement)}catch(e){t.logError(e,"Failed to execute success event!",e)}}))})),_(e,o,(function(){if(o.useContainer){let t=document.createElement("div");t.className="cex-adform-container cex-adform-style",t.style.zIndex="-5",e.appendChild(t),e=t}let t=document.createElement("script");t.setAttribute("data-adfscript","adx.adform.net/adx/?mid="+o.placement.id+"&rnd="+String(n.getRandomInt(1,1e4))),g.push(t),t.onerror=function(){const n=g.indexOf(t);-1!==n&&g.splice(n,1),v(e)},e.appendChild(t)}))}if(d.push((function(e){e&&(e.classList.contains("cex-adform-container")||(e=e.querySelector("div.cex-adform-container")),e&&(e.childElementCount<2||(t.logInfo("Successfully loaded ad!",e),e.classList.contains("cex-ad-loaded")||(e.classList.add("cex-ad-loaded"),e.style.zIndex="1"))))})),!e.allowKeywords||!c.segment&&c.loaded)w(!1);else if(c.segment)w(!0);else{setTimeout((function(){c.loaded||(c.loaded=!0,w(!1))}),300);let e=new XMLHttpRequest;e.addEventListener("load",(function(){c.loaded=!0,c.segment=r.responseText,w(!0)})),e.open("GET","https://analytics.contentexchange.me/bex/keywords"),e.withCredentials=!0,e.send()}delete m.bex.loaders.loadNativeWidget},e})()}));window.bex.loaders.loadNativeWidget({"posts":[{"position":2,"useContainer":true,"placement":{"id":"936646","type":"HB-Google","noLazy":false,"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-936646","translation":"","floorPrice":0.1766,"type":"NATIVE","bids":[{"bidder":"adformOpenRTB","params":{"mid":"936648"}},{"bidder":"criteo","params":{"zoneId":"1412679"}},{"bidder":"appnexus","params":{"placementId":"20768454"}},{"bidder":"contentexchange","params":{"placementId":"1007","adFormat":"native"}},{"bidder":"adagio","params":{"organizationId":"1243"}}]},"next":{"type":"google","config":{"Google":{"Key":"-7l+ez-1p-37+cf","Slot":"7643497200"},"ignoreDiv":false}}}}},{"position":3,"useContainer":true,"placement":{"id":"936647","type":"HB-Google","noLazy":false,"execList":{"type":"headerbidding","config":{"id":"div-ppas-mid-936647","translation":"","floorPrice":0.1766,"type":"NATIVE","bids":[{"bidder":"adformOpenRTB","params":{"mid":"936649"}},{"bidder":"criteo","params":{"zoneId":"1412679"}},{"bidder":"appnexus","params":{"placementId":"20768482"}},{"bidder":"contentexchange","params":{"placementId":"1008","adFormat":"native"}},{"bidder":"adagio","params":{"organizationId":"1243"}}]},"next":{"type":"google","config":{"Google":{"Key":"-7l+ez-1p-37+cf","Slot":"6330415532"},"ignoreDiv":false}}}}}],"source":"hb.contentexchange.me","allowKeywords":false,"develMode":false});