(function () {(function(c,d){typeof exports=="object"&&typeof module!="undefined"?module.exports=d():typeof define=="function"&&define.amd?define(d):(c=typeof globalThis!="undefined"?globalThis:c||self,c._M_=d())})(this,function(){"use strict";var kt=Object.defineProperty,Mt=Object.defineProperties;var Lt=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var Pt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable;var Ae=c=>{throw TypeError(c)};var re=(c,d,p)=>d in c?kt(c,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):c[d]=p,T=(c,d)=>{for(var p in d||(d={}))Pt.call(d,p)&&re(c,p,d[p]);if(xe)for(var p of xe(d))Kt.call(d,p)&&re(c,p,d[p]);return c},B=(c,d)=>Mt(c,Lt(d));var D=(c,d,p)=>re(c,typeof d!="symbol"?d+"":d,p),se=(c,d,p)=>d.has(c)||Ae("Cannot "+p);var a=(c,d,p)=>(se(c,d,"read from private field"),p?p.call(c):d.get(c)),U=(c,d,p)=>d.has(c)?Ae("Cannot add the same private member more than once"):d instanceof WeakSet?d.add(c):d.set(c,p),O=(c,d,p,z)=>(se(c,d,"write to private field"),z?z.call(c,p):d.set(c,p),p),v=(c,d,p)=>(se(c,d,"access private method"),p);var I=(c,d,p)=>new Promise((z,X)=>{var H=y=>{try{L(p.next(y))}catch(A){X(A)}},_=y=>{try{L(p.throw(y))}catch(A){X(A)}},L=y=>y.done?z(y.value):Promise.resolve(y.value).then(H,_);L((p=p.apply(c,d)).next())});var m,N,u,R,V,k,x,h,Se,Ne,oe,Ue,_e,ae,Oe,de,Re,J,M,Ce;function c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! load-script2. MIT License. Feross Aboukhadijeh */var d,p;function z(){return p||(p=1,d=function(e,i,n){return new Promise((r,o)=>{const s=document.createElement("script");s.async=!0,s.src=e;for(const[l,g]of Object.entries(i||{}))s.setAttribute(l,g);s.onload=()=>{s.onerror=s.onload=null,r(s)},s.onerror=()=>{s.onerror=s.onload=null,o(new Error(`Failed to load ${e}`))},(n||document.head||document.getElementsByTagName("head")[0]).appendChild(s)})}),d}var X=z();const H=c(X),_=localStorage;function L(t,e,i){Be(t,y(t)+1,e,i)}function y(t,e){t=`missena.${t}`;const i=_.getItem(t);if(!i)return 0;const n=JSON.parse(i);return typeof n.expiry!="number"||new Date().getTime()>n.expiry||e&&e!=n.referer?(_.removeItem(t),0):typeof n.value=="number"?n.value:0}function A(...t){return["missena","capper"].concat(t).join(".")}function Be(t,e,i,n){t=`missena.${t}`;const r=new Date().getTime()+i*1e3;_.setItem(t,JSON.stringify({value:e,expiry:r,referer:n}))}function De(t,e){t=`missena.${t}`;const i=_.getItem(t);let n=new Date().getTime()+e*1e3,r=JSON.parse(i!=null?i:JSON.stringify({value:0,expiry:n}));(typeof r.expiry!="number"||typeof r.value!="number"||new Date().getTime()>r.expiry)&&(_.removeItem(t),r={value:0,expiry:n}),r.value+=1,_.setItem(t,JSON.stringify(r))}var W=(t=>(t.BANNER="BANNER",t.NATIVE="NATIVE",t.VIDEO="VIDEO",t))(W||{}),S=(t=>(t.STICKY="sticky",t.PRESTITIAL="prestitial",t.POSTITIAL="postitial",t.HEADER="header",t.FOOTER="footer",t.SKINCORNER="skincorner",t.FOOTERMAX="footermax",t))(S||{}),w=(t=>(t.STICKY_BANNER="sticky-banner",t.STICKY_NATIVE="sticky-native",t.STICKY_VIDEO="sticky-video",t.PRESTITIAL_BANNER="prestitial-banner",t.PRESTITIAL_NATIVE="prestitial-native",t.PRESTITIAL_VIDEO="prestitial-video",t.POSTITIAL_BANNER="postitial-banner",t.POSTITIAL_NATIVE="postitial-native",t.POSTITIAL_VIDEO="postitial-video",t.HEADER_BANNER="header-banner",t.HEADER_NATIVE="header-native",t.HEADER_VIDEO="header-video",t.FOOTER_BANNER="footer-banner",t.FOOTER_NATIVE="footer-native",t.FOOTER_VIDEO="footer-video",t.SKINCORNER_BANNER="skincorner-banner",t.SKINCORNER_NATIVE="skincorner-native",t.FOOTERMAX_BANNER="footermax-banner",t.FOOTERMAX_NATIVE="footermax-native",t.FOOTERMAX_VIDEO="footermax-video",t))(w||{}),P=(t=>(t.LOCAL="local",t.STAGING="staging",t.PRODUCTION="production",t.EDGE="edge",t))(P||{}),ce=(t=>(t.AMP="amp",t.Bot="bot",t.Desktop="desktop",t.Mobile="mobile",t.Tablet="tablet",t.Webview="webview",t))(ce||{}),b=(t=>(t.Adyoulike="adyoulike",t.Bidule="bidule",t.CriteoCDB="criteo-cdb",t.CriteoNative="criteo-native",t.CriteoPrebidBanner="criteo-prebid-banner",t.CriteoPrebidNative="criteo-prebid-native",t.CriteoPrebidVideo="criteo-prebid-video",t.ImproveDigitalNative="improvedigital-native",t.MagniteBanner="magnite-banner",t.MagniteNative="magnite-native",t.MagniteVideo="magnite-video",t.Outbrain="outbrain",t.PubmaticNative="pubmatic-native",t.RichAudienceBanner="richaudience-banner",t.RichAudienceVideo="richaudience-video",t.SmartBanner="smart-banner",t.SmartNative="smart-native",t.SmartVideo="smart-video",t.SmilewantedBanner="smilewanted-banner",t.SmilewantedVideo="smilewanted-video",t.WmgPubmaticNative="wmg-pubmatic-native",t.XandrBanner="xandr-banner",t.XandrNative="xandr-native",t.XandrVideo="xandr-video",t))(b||{});b.CriteoPrebidNative+"",b.CriteoNative+"";const ze={[w.STICKY_BANNER]:{desktopZoom:1.3,zoomAreaMin:100*85,zoomAreaDefault:150*125,zoomAreaFull:300*250*.5625,position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[w.STICKY_NATIVE]:{behavior:{onClick:"redirect",onSwipe:"popup",countdown:3},position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},bubbleBkgColor:"#fff",bubbleHitbox:90,bubbleSize:80,countdown:6.5,crossVariant:"bottom_left",headerBkgColor:"#1d242b",notification:1,previewBkgColor:"#0362E3",previewTimeout:8,showMenu:!0},[w.STICKY_VIDEO]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},bubbleSize:80,bubbleHitbox:90,crossVariant:"bottom_left",swipeToFullscreen:!0,behavior:{}},[w.PRESTITIAL_BANNER]:{desktopZoom:1.3,zoomAreaMin:100*85,zoomAreaDefault:150*125,zoomAreaFull:300*250*.5625,countdown:5e3,hasCTA:!0,position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[w.PRESTITIAL_NATIVE]:{bubbleHitbox:90,bubbleSize:80,previewTimeout:8,bubbleBkgColor:"#fff",headerBkgColor:"#1d242b",previewBkgColor:"#0362E3",crossVariant:"top_right_big",minimizeIcon:"close_fullscreen",position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},behavior:{onClick:"redirect",onSwipe:"popup",countdown:3},countdown:5,showCountdown:!1},[w.PRESTITIAL_VIDEO]:{bubbleSize:80,bubbleHitbox:90,previewTimeout:8,swipeToFullscreen:!0,crossVariant:"top_right_big",position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},behavior:{},variant:"rotated"},[w.POSTITIAL_BANNER]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[w.POSTITIAL_NATIVE]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[w.POSTITIAL_VIDEO]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[w.HEADER_BANNER]:{width:320,height:121,offset:56,zIndex:2147483647},[w.HEADER_NATIVE]:{width:320,height:121,offset:56,bgColor:"#fff",zIndex:2147483647},[w.HEADER_VIDEO]:{width:320,height:121,offset:56,zIndex:2147483647},[w.FOOTER_BANNER]:{width:320,height:100,offset:0,zIndex:2147483647},[w.FOOTER_NATIVE]:{width:320,height:100,offset:0,bgColor:"#fff",zIndex:2147483647},[w.FOOTER_VIDEO]:{width:320,height:100,offset:0,zIndex:2147483647},[w.FOOTERMAX_BANNER]:{width:320,height:90,offset:0,zIndex:2147483647},[w.FOOTERMAX_NATIVE]:{width:320,height:90,offset:0,zIndex:2147483647},[w.FOOTERMAX_VIDEO]:{width:320,height:90,offset:0,zIndex:2147483647},[w.SKINCORNER_BANNER]:{adapter:"",selector:""},[w.SKINCORNER_NATIVE]:{adapter:"",selector:""}};w.STICKY_BANNER+"",w.PRESTITIAL_BANNER+"",w.POSTITIAL_BANNER+"",w.HEADER_BANNER+"",w.FOOTER_BANNER+"",w.SKINCORNER_BANNER+"";/*! load-script2. MIT License. Feross Aboukhadijeh */var Z,ue;function Ve(){return ue||(ue=1,Z=function(e,i,n){return new Promise((r,o)=>{const s=document.createElement("script");s.async=!0,s.src=e;for(const[l,g]of Object.entries(i||{}))s.setAttribute(l,g);s.onload=()=>{s.onerror=s.onload=null,r(s)},s.onerror=()=>{s.onerror=s.onload=null,o(new Error(`Failed to load ${e}`))},(n||document.head||document.getElementsByTagName("head")[0]).appendChild(s)})}),Z}var ke=Ve();const Me=c(ke),Q=()=>{};function Le(t,e){const i={amp:e.device===ce.AMP,ik:e.idempotencyKey,t:e.apiKey};try{const n=new URL(t);return Object.entries(i).forEach(([r,o])=>{o===!0?n.searchParams.set(r,"1"):o&&n.searchParams.set(r,o)}),n.toString()}catch(n){return""}}function j(t="%cmissena-debug:",e="color:#FFF; background-color:red; padding:3px;border-radius:3px;"){const i=K();try{const n=i.localStorage.getItem("__missena_debug")||i.hasOwnProperty("displayMissenaInfo"),r=i.displayMissenaInfo||Q;return n?function(){if(arguments.length==3){r(...arguments);return}console.log(t,e,...arguments)}:Q}catch(n){return Q}}function K(){try{return window.Cypress?window:(window.top.__doNotExist__,window.top)}catch(t){return window}}/*! * uuidv4 function posted by Rasmus Schultz (mindplay-dk) * on https://gist.github.com/jed/982883 */for(var E=[],$=0;$<256;$++)E[$]=($<16?"0":"")+$.toString(16);function Pe(){var t=crypto.getRandomValues(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,E[t[0]]+E[t[1]]+E[t[2]]+E[t[3]]+"-"+E[t[4]]+E[t[5]]+"-"+E[t[6]]+E[t[7]]+"-"+E[t[8]]+E[t[9]]+"-"+E[t[10]]+E[t[11]]+E[t[12]]+E[t[13]]+E[t[14]]+E[t[15]]}function fe(t,e){var i;typeof t.renderers[e.format]=="function"?((i=t.log)==null||i.call(t,"Renderer finished loading. Rendering: ",t,e),t.renderers[e.format](e),t.shownAds.push(e.meta.requestId||"undefined")):requestAnimationFrame(()=>fe(t,e))}function Ke(t,e){return I(this,null,function*(){var r,o,s,f;(r=t.log)==null||r.call(t,"renderSlot",e);const i=t.window.document,n=i.head||i.getElementsByTagName("head")[0];if(t.shownAds=(o=t.shownAds)!=null?o:[],e.meta.requestId=(s=e.meta.requestId)!=null?s:Pe(),e.settings=T(T({},ze[e.format]),e.settings),!t.shownAds.includes(e.meta.requestId)){if(typeof t.renderers[e.format]=="function"){(f=t.log)==null||f.call(t,"Renderer already loaded. Rendering: ",t,e),t.renderers[e.format](e),t.shownAds.push(e.meta.requestId);return}Me(`${t.baseUrl}/renderer-${e.format}.js`,{},n).then(()=>{fe(t,e)})}})}function $e(t){var e;try{return((e=t.window._pbjsGlobals)!=null?e:[]).reduce((i,n)=>{var r,o;return i||((o=(r=t.window[n])==null?void 0:r.installedModules)==null?void 0:o.includes("fledgeForGpt"))},!1)}catch(i){return!1}}const q=j("%cmissena-capper:");function he(t,e,i,n=void 0){const o=K().document;function s(f){var g,C,Ie;(((C=(g=f==null?void 0:f.detail)==null?void 0:g.event)==null?void 0:C.name)||"").startsWith(e)&&(q("missena.event: ",(Ie=f==null?void 0:f.detail)==null?void 0:Ie.event),o.removeEventListener("missena.event",s),e.includes("postitial")?De(A(e,t),i):L(A(e,t),i,n))}o.addEventListener("missena.event",s),q("mounted listener for ",e)}const qe="remove-bubble";function Fe(t,e,i){return e?y(A(qe,t),i)==0:!0}const pe="display-bubble",Xe=500,He=1;function We(t,e){return e?(e.duration=e.duration||Xe,e.max=e.max||He,he(t,pe,e.duration),y(A(pe,t))!n.purpose.consents[l])?(q("gdprApplies, NOT ALLOWED!"),!0):o==S.STICKY&&!(We(i,e==null?void 0:e.display)&&Fe(i,e==null?void 0:e.close,r))?(q("sticky"),!1):o==S.POSTITIAL&&!Ye(i,e==null?void 0:e.postitial)?(q("postitial"),!1):!0:!0}const me={enableTIDs:!0,gvlMapping:{missena:687,smilewanted:639},consentManagement:{gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0},usp:{timeout:100}},bidderTimeout:2e3,fledgeForGpt:{enabled:!0},userSync:{userIds:[{name:"criteo"},{name:"sharedId",storage:{type:"cookie",name:"_sharedid",expires:365}},{name:"id5Id",params:{partner:1363},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:28800}},{name:"identityLink",params:{pid:"13964",notUse3P:!0},storage:{type:"cookie",name:"idl_env",expires:15,refreshInSeconds:1800}}],filterSettings:{iframe:{bidders:"*",filter:"include"},image:{bidders:"*",filter:"include"}},aliasSyncEnabled:!0}};var we=4294967295;function Qe(t,e,i){var n=i/4294967296,r=i;t.setUint32(e,n),t.setUint32(e+4,r)}function ve(t,e,i){var n=Math.floor(i/4294967296),r=i;t.setUint32(e,n),t.setUint32(e+4,r)}function je(t,e){var i=t.getInt32(e),n=t.getUint32(e+4);return i*4294967296+n}var ee,te,ie,G=(typeof process=="undefined"||((ee=process==null?void 0:process.env)===null||ee===void 0?void 0:ee.TEXT_ENCODING)!=="never")&&typeof TextEncoder!="undefined"&&typeof TextDecoder!="undefined";function ge(t){for(var e=t.length,i=0,n=0;n=55296&&r<=56319&&n>6&31|192;else{if(s>=55296&&s<=56319&&o>18&7|240,e[r++]=s>>12&63|128,e[r++]=s>>6&63|128):(e[r++]=s>>12&15|224,e[r++]=s>>6&63|128)}else{e[r++]=s;continue}e[r++]=s&63|128}}var F=G?new TextEncoder:void 0,tt=G?typeof process!="undefined"&&((te=process==null?void 0:process.env)===null||te===void 0?void 0:te.TEXT_ENCODING)!=="force"?200:0:we;function it(t,e,i){e.set(F.encode(t),i)}function nt(t,e,i){F.encodeInto(t,e.subarray(i))}var rt=F!=null&&F.encodeInto?nt:it;G&&new TextDecoder,G&&typeof process!="undefined"&&((ie=process==null?void 0:process.env)===null||ie===void 0||ie.TEXT_DECODER);var Y=function(){function t(e,i){this.type=e,this.data=i}return t}(),st=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},t(e,i)};return function(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),ot=function(t){st(e,t);function e(i){var n=t.call(this,i)||this,r=Object.create(e.prototype);return Object.setPrototypeOf(n,r),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:e.name}),n}return e}(Error),at=-1,dt=4294967296-1,ct=17179869184-1;function ut(t){var e=t.sec,i=t.nsec;if(e>=0&&i>=0&&e<=ct)if(i===0&&e<=dt){var n=new Uint8Array(4),r=new DataView(n.buffer);return r.setUint32(0,e),n}else{var o=e/4294967296,s=e&4294967295,n=new Uint8Array(8),r=new DataView(n.buffer);return r.setUint32(0,i<<2|o&3),r.setUint32(4,s),n}else{var n=new Uint8Array(12),r=new DataView(n.buffer);return r.setUint32(0,i),ve(r,4,e),n}}function ft(t){var e=t.getTime(),i=Math.floor(e/1e3),n=(e-i*1e3)*1e6,r=Math.floor(n/1e9);return{sec:i+r,nsec:n-r*1e9}}function ht(t){if(t instanceof Date){var e=ft(t);return ut(e)}else return null}function pt(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:{var i=e.getUint32(0),n=0;return{sec:i,nsec:n}}case 8:{var r=e.getUint32(0),o=e.getUint32(4),i=(r&3)*4294967296+o,n=r>>>2;return{sec:i,nsec:n}}case 12:{var i=je(e,4),n=e.getUint32(0);return{sec:i,nsec:n}}default:throw new ot("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function lt(t){var e=pt(t);return new Date(e.sec*1e3+e.nsec/1e6)}var mt={type:at,encode:ht,decode:lt},wt=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(mt)}return t.prototype.register=function(e){var i=e.type,n=e.encode,r=e.decode;if(i>=0)this.encoders[i]=n,this.decoders[i]=r;else{var o=1+i;this.builtInEncoders[o]=n,this.builtInDecoders[o]=r}},t.prototype.tryToEncode=function(e,i){for(var n=0;nthis.maxDepth)throw new Error("Too deep objects in depth ".concat(i));e==null?this.encodeNil():typeof e=="boolean"?this.encodeBoolean(e):typeof e=="number"?this.encodeNumber(e):typeof e=="string"?this.encodeString(e):this.encodeObject(e,i)},t.prototype.ensureBufferSizeToWrite=function(e){var i=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},t.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw new Error("Too long string: ".concat(e," bytes in UTF-8"))},t.prototype.encodeString=function(e){var i=5,n=e.length;if(n>tt){var r=ge(e);this.ensureBufferSizeToWrite(i+r),this.writeStringHeader(r),rt(e,this.bytes,this.pos),this.pos+=r}else{var r=ge(e);this.ensureBufferSizeToWrite(i+r),this.writeStringHeader(r),et(e,this.bytes,this.pos),this.pos+=r}},t.prototype.encodeObject=function(e,i){var n=this.extensionCodec.tryToEncode(e,this.context);if(n!=null)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,i);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if(typeof e=="object")this.encodeMap(e,i);else throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},t.prototype.encodeBinary=function(e){var i=e.byteLength;if(i<256)this.writeU8(196),this.writeU8(i);else if(i<65536)this.writeU8(197),this.writeU16(i);else if(i<4294967296)this.writeU8(198),this.writeU32(i);else throw new Error("Too large binary: ".concat(i));var n=vt(e);this.writeU8a(n)},t.prototype.encodeArray=function(e,i){var n=e.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else if(n<4294967296)this.writeU8(221),this.writeU32(n);else throw new Error("Too large array: ".concat(n));for(var r=0,o=e;r1&&(i=1),i=Math.round(i*100)/100,!(Math.random()>i)&&(this.queue.push({event:yield this.enrich(e,i),url:Le(this.url,this.ctx)}),this.window.document.dispatchEvent(new CustomEvent(this.eventNameSpace,{detail:{event:e}})),this.next()))})}next(){const e=this.queue.shift();if(!e)return;const i=Tt(B(T({},e.event),{from:this.application})),n=new Blob([i],{type:"application/msgpack"});navigator.sendBeacon(e.url,n)}}const xt=j("%cmissena-mosquito:");function At(t,e){var n;const i=t.native;return i.kind=W.NATIVE,i.commission={type:"cpm",currency:(n=t.currency)!=null?n:"EUR",value:t.cpm},i.ids=e,i}function St(t,e,i={}){var r;const n={type:"cpm",currency:(r=e.currency)!=null?r:"EUR",value:e.cpm};switch(e.mediaType){case"video":return{commission:n,kind:W.VIDEO,vastImpUrl:e.vastImpUrl,vastUrl:e.vastUrl,vastXml:e.vastXml,ids:i};case"native":return At(e,i);case"banner":return{kind:W.BANNER,ad:e.ad,width:e.width,height:e.height,commission:n,ids:i}}}function Nt(t){return t.replace(/[^\.]+(\.*)/,`${new Date().getTime()}$1`)}function Ee(t,e){const i=K();if(!i.__tcfapi){e();return}i.__tcfapi("addEventListener",2,function(n,r){!r||!["tcloaded","useractioncomplete"].includes(n==null?void 0:n.eventStatus)||(i.__tcfapi("removeEventListener",2,()=>{},n.listenerId),t(n))})}class Ut extends It{adsuccess(e){this.log({name:"adsuccess",parameters:{provider:e}})}bidsuccess(e){this.log({name:"bidsuccess",parameters:e})}consent(){Ee(e=>{xt({missing_purpose:!e.purpose.consents[1],missing_vendor:!e.vendor.consents[687],tcData:e}),this.log({name:"consent",parameters:{applies:e.gdprApplies,missing_purpose:!e.purpose.consents[1],missing_vendor:!e.vendor.consents[687],string:e.tcString}})},()=>{this.log({name:"consent",parameters:{applies:!1}})})}debug(e){this.log({name:"log",parameters:{label:e}})}timeout(e){e!="missena"&&Math.random()>=.99&&this.log({name:"timeout",parameters:{bidder:e}})}}function _t(t){try{return window.top[t]}catch(e){return window[t]}}function be(t){return t.environment==P.EDGE||t.environment==P.PRODUCTION}const Ot={native:{title:{required:!0,len:50},sponsoredBy:{required:!0},image:{required:!0,sendId:!0,sizes:[170,170]},icon:{required:!1,sendId:!0,sizes:[50,50]},price:{required:!1},privacyLink:{required:!1,sendId:!0},clickUrl:{required:!0,sendId:!0}}},Rt={video:{playerSize:[640,480],context:"outstream",mimes:["video/mp4"],maxduration:30,api:[1,2],protocols:[2,3],skip:0,playbackmethod:[1],placement:2}},ye={banner:{sizes:[[300,250]]}};function Te(t,e,i,n={}){const r=`msna-${e}`,o=new URLSearchParams(t.window.location.search).get("bidule_sample"),s={ext:{ae:1}};return{[b.Bidule]:{code:r,bids:[{bidder:"missena",params:{placement:e,apiKey:t.apiKey,baseUrl:be(t)?"":t.bidderUrl,custom:{providerName:b.Bidule},sample:o,isInternal:!0}}],mediaTypes:ye},[b.CriteoPrebidBanner]:{code:r,bids:[{bidder:"criteo",params:B(T({pubid:"IPB3NX",custom:{providerName:b.CriteoPrebidBanner},networkId:10593,publisherSubId:`${t.apiKey}:${b.CriteoPrebidBanner}`},n),{zoneId:1674546})}],mediaTypes:ye,ortb2Imp:s},[b.CriteoPrebidNative]:{code:r,bids:[{bidder:"criteo",params:B(T({pubid:"IPB3NX",custom:{providerName:b.CriteoPrebidNative},networkId:10593,publisherSubId:`${t.apiKey}:${b.CriteoPrebidNative}`},n),{zoneId:1799546})}],mediaTypes:Ot,ortb2Imp:s},[b.CriteoPrebidVideo]:{code:r,bids:[{bidder:"criteo",params:B(T({pubid:"IPB3NX",custom:{providerName:b.CriteoPrebidVideo},publisherSubId:`${t.apiKey}:${b.CriteoPrebidVideo}`},n),{zoneId:1628860})}],mediaTypes:Rt,ortb2Imp:s}}[i]}function Ct(t,e){var n;const i=(n=e.publisher.blockedProviders)!=null?n:[];return e.formats.reduce((r,o)=>{const s=o.name.split("-")[0],f=o.providers.reduce((l,g)=>{if(i.includes(g.name))return l;const C=Te(t,s,g.name,g.settings);return C?[...l,C]:l},[]);return[...r,...f]},[])}function Bt(t,e){return t.find(n=>{var r;return n.code==e.adUnitCode&&((r=n.bids[0])==null?void 0:r.bidder)==e.bidder&&n.mediaTypes.hasOwnProperty(e.mediaType)}).bids[0].params.custom}function Dt(t,e,i){return e.formats.reduce((n,r)=>{const o=r.name.split("-")[0],s=r.providers.reduce((f,l)=>{if(!i.includes(l.name))return f;const g=Te(t,o,l.name,l.settings);return g?[...f,g]:f},[]);return[...n,...s]},[])}const ne={except:Ct,findCustomData:Bt,only:Dt};class zt{constructor(e){U(this,h);U(this,m);U(this,N);U(this,u);U(this,R);U(this,V);U(this,k);U(this,x);var r;const i=j(),n=K();n.__MISSENA__=B(T({renderers:{},referer:n.location.href},(r=n.__MISSENA__)!=null?r:{}),{log:i,window:n}),O(this,m,e),O(this,N,`msna-${a(this,m).placement}`),O(this,u,n.__MISSENA__),O(this,R,i),O(this,V,n.document.head||n.document.getElementsByTagName("head")[0]),O(this,x,n),e.formats.push({mediaType:"banner",name:`${e.placement}-banner`,providers:[{name:b.Bidule}]}),i(e)}run(){a(this,x).__msna_loaded||(a(this,x).__msna_loaded==!0,Ee(v(this,h,ae).bind(this),v(this,h,ae).bind(this)))}}m=new WeakMap,N=new WeakMap,u=new WeakMap,R=new WeakMap,V=new WeakMap,k=new WeakMap,x=new WeakMap,h=new WeakSet,Se=function(){const e=new URLSearchParams(a(this,x).location.search).getAll("msna_provider");return e.length==0?ne.except(a(this,u),a(this,m)):ne.only(a(this,u),a(this,m),e)},Ne=function(e){return I(this,null,function*(){const{error:i,pbjs:n}=yield v(this,h,Re).call(this);if(a(this,m).settings.disable_prebid){v(this,h,de).call(this);return}if(i){console.error("[missena] error while loading prebid:",i.message),v(this,h,M).call(this).debug("mosquito.pbjs.failed");return}n.processQueue(),n.bidderSettings={criteo:T({storageAllowed:!0},a(this,m).publisher.isNet&&{bidCpmAdjustment:f=>f*.6}),missena:{storageAllowed:!0}},e&&delete me.consentManagement,n.setConfig(B(T({},me),{floors:{data:{default:a(this,m).publisher.floor,currency:a(this,m).publisher.floorCurrency,schema:{fields:["mediaType"]}}}}));const r=!be(a(this,u))||n.getConfig().debug;let o={};a(this,m).publisher.apiKey==="PA-98473564"&&(o={s2sConfig:{accountId:"1",enabled:!0,bidders:["missena"],timeout:1e3,endpoint:"https://prebid.missena.io/openrtb2/auction",syncEndpoint:"https://prebid.missena.io/cookie_sync"}}),n.setConfig(T({debug:r},o)),n.setBidderConfig({bidders:["criteo"],config:{fledgeEnabled:!0}});const s=v(this,h,Se).call(this);n.removeAdUnit(a(this,N)),n.addAdUnits(s),a(this,R).call(this,"Added adUnits",s),n.enableAnalytics([{provider:"atsAnalytics",options:{pid:"13964"}}]),n.onEvent("bidTimeout",f=>{f.filter(l=>l.adUnitCode==a(this,N)).forEach(l=>v(this,h,M).call(this).timeout(l.bidder))}),v(this,h,oe).call(this,n)})},oe=function(e){return I(this,null,function*(){e.requestBids({adUnitCodes:[a(this,N)],bidsBackHandler:()=>I(this,null,function*(){const i=e.getUserIdsAsEids(),n=e.getHighestCpmBids(a(this,N))[0];if(!n){v(this,h,de).call(this);return}const r=ne.findCustomData(e.adUnits,n);if(a(this,R).call(this,"winner, ids & provider",{ids:i,customData:r,winner:n}),r.providerName==b.Bidule){const o=`msna_mosquito_${a(this,m).placement}`,s=document.createElement("iframe");s.frameBorder="0",s.name=o;const f=document.querySelector(`[name='${o}']`);f?f.replaceWith(s):document.body.appendChild(s);const l=s.contentWindow.document;e.renderAd(l,n.adId);return}v(this,h,Oe).call(this,n,r.providerName,n.adUnitCode.substring(5),i)})}),a(this,u).settings.auctionRefresh&&[S.STICKY,S.SKINCORNER,S.HEADER,S.FOOTER,S.FOOTERMAX].includes(a(this,m).placement)&&setTimeout(()=>{a(this,u).settings.auctionRefresh&&v(this,h,oe).call(this,e)},a(this,m).settings.auctionRefresh*1e3)})},Ue=function(){const e=v(this,h,J).bind(this),i=a(this,x);if(i.msnaHandleHistory)return;i.msnaHandleHistory=!0;function n(r){return function(){var o=r.apply(this,arguments);return i.dispatchEvent(new Event("contentchange")),o}}i.history.pushState=n(i.history.pushState),i.history.replaceState=n(i.history.replaceState),i.addEventListener("popstate",()=>{i.dispatchEvent(new Event("contentchange"))}),i.addEventListener("contentchange",()=>{e({isClientSide:!0,minDuration:1e3})})},_e=function(){var i,n;const e=(i=a(this,u).settings.block)!=null?i:{};if(e.type==="domain"){const r=((n=_t("location"))==null?void 0:n.hostname)||"";return(e.domains||[]).some(o=>o==r)}return e.type==="device"},ae=function(e,i){return I(this,null,function*(){var n;if(Ze({placement:a(this,m).placement,publisher:a(this,m).publisher.apiKey,capping:a(this,m).settings.capping,tcData:i?void 0:e,referer:(n=a(this,m).settings.capping)!=null&&n.closePerPage?a(this,u).referer:void 0})){if(a(this,u).adServerUrl=a(this,m).adServerUrl,a(this,u).apiKey=a(this,m).publisher.apiKey,a(this,u).baseUrl=a(this,m).baseUrl,a(this,u).bidderUrl=a(this,m).bidderUrl,a(this,u).device=a(this,m).device,a(this,u).environment=a(this,m).environment,a(this,u).idempotencyKey=a(this,m).idempotencyKey,a(this,u).sentryEnabled=a(this,m).publisher.sentryEnabled,a(this,u).settings=a(this,m).settings,a(this,u).tcData=e,a(this,u).slots={},a(this,u).stopRefresh=()=>{delete a(this,u).settings.auctionRefresh},v(this,h,Ue).call(this),v(this,h,M).call(this).consent(),v(this,h,_e).call(this)){a(this,R).call(this,"script blocked");return}v(this,h,Ne).call(this,!e)}})},Oe=function(o,s,f){return I(this,arguments,function*(e,i,n,r=[]){a(this,u).passback=v(this,h,J).bind(this);const l=`${n}-${e.mediaType||"native"}`,g=v(this,h,Ce).call(this,e.adUnitCode||a(this,N),St(a(this,u),e,r),i,e.requestId,l);v(this,h,M).call(this).adsuccess(i),v(this,h,M).call(this).bidsuccess({provider:i,commission:{cpm:e.cpm,currency:e.currency},eids:r.map(C=>C.source)}),Ke(a(this,u),g)})},de=function(){a(this,x).document.dispatchEvent(new CustomEvent("missena.event",{detail:{event:{name:"passback"}}})),new Function(a(this,m).publisher.passback)()},Re=function(){return I(this,null,function*(){if(a(this,u).window.msnaPbjs)return{pbjs:a(this,u).window.msnaPbjs};try{yield H(`${a(this,m).baseUrl}/prebid.js`,{},a(this,V))}catch(e){return{error:e}}return{pbjs:a(this,u).window.msnaPbjs}})},J=function(e,i={isClientSide:!1,minDuration:1e4}){var s;const n=a(this,u).slots[e];if(!((n==null?void 0:n.displayedAt)&&Date.now()-n.displayedAt>i.minDuration))return!1;delete n.displayedAt,delete a(this,x).__msna_loaded,delete n.data,(s=n.remove)==null||s.call(n);const o=new URL(a(this,u).adServerUrl);return o.searchParams.set("t",a(this,u).apiKey),i.isClientSide?(o.searchParams.set("cs","1"),o.searchParams.set("ik",Nt(a(this,u).idempotencyKey))):o.searchParams.set("ik",a(this,u).idempotencyKey),H(o.toString(),{},a(this,V)),!0},M=function(){return a(this,k)||O(this,k,new Ut({appName:"mosquito",ctx:a(this,u)})),a(this,k)},Ce=function(e,i,n,r,o=w.STICKY_NATIVE){var f,l;const s={adUnitCode:e,data:i,format:o,settings:(f=a(this,m).formats.find(g=>g.name==o))==null?void 0:f.settings,provider:n,meta:{requestId:r},reload:g=>{v(this,h,J).call(this,e,g)},remove:()=>{},track:()=>{}};return(l=a(this,u).slots[e])==null||l.remove(),a(this,u).slots[e]=s,s};function Vt(t){return I(this,null,function*(){new zt(t).run()})}return Vt}); _M_({adServerUrl:"https://ad.missena.io/?t=PA-98473564",baseUrl:"https://chat.missena.io",bidderUrl:"https://bid.missena.io",device:"bot",environment:"edge",formats:[{"mediaType":"banner","name":"sticky-banner","providers":[{"name":"criteo-prebid-banner"}],"renderer":"sticky-banner","settings":{"afterDisplay":"","desktopZoom":1.3,"hasCTA":false,"plugins":[],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"148px","right":"0px"}},"showAsBubble":false,"triggers":{"desktop":[],"mobile":[],"webview":[]},"zoomAreaDefault":18750,"zoomAreaFull":42187.5,"zoomAreaMin":8500}},{"mediaType":"native","name":"sticky-native","providers":[{"name":"criteo-prebid-native"},{"name":"outbrain"}],"renderer":"sticky-native","settings":{"afterDisplay":"","behavior":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"bubbleBkgColor":"#fff","bubbleHitbox":90,"bubbleSize":80,"countdown":6.5,"crossVariant":"bottom_left","headerBkgColor":"#1d242b","notification":1,"plugins":[],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"148px","right":"0px"}},"previewBkgColor":"#0362E3","previewTimeout":8,"showMenu":true,"triggers":{"desktop":[],"mobile":[],"webview":[]}}},{"mediaType":"video","name":"sticky-video","providers":[{"name":"criteo-prebid-video"}],"renderer":"sticky-video","settings":{"afterDisplay":"","behavior":{},"bubbleBkgColor":"#fff","bubbleHitbox":90,"bubbleSize":80,"crossVariant":"bottom_left","notification":1,"plugins":[],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"148px","right":"0px"}},"previewBkgColor":"#0362E3","previewTimeout":8,"triggers":{"desktop":[],"mobile":[],"webview":[]}}}],idempotencyKey:"1743372801.cvks40btop5s73cel1cg",now:1743372801000,placement:"sticky",publisher:{"apiKey":"PA-98473564","blockedProviders":[],"floor":0,"floorCurrency":"EUR","passback":"","sentryEnabled":true},settings:{"auctionRefresh":14,"secondBid":true},syncopeUrl:"https://sync.missena.io"});})();