(function () {var zt=Object.defineProperty,$t=Object.defineProperties;var Kt=Object.getOwnPropertyDescriptors;var Pe=Object.getOwnPropertySymbols;var Wt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var ke=(p,u,f)=>u in p?zt(p,u,{enumerable:!0,configurable:!0,writable:!0,value:f}):p[u]=f,_=(p,u)=>{for(var f in u||(u={}))Wt.call(u,f)&&ke(p,f,u[f]);if(Pe)for(var f of Pe(u))qt.call(u,f)&&ke(p,f,u[f]);return p},ae=(p,u)=>$t(p,Kt(u));var ve=(p,u,f)=>{if(!u.has(p))throw TypeError("Cannot "+f)};var a=(p,u,f)=>(ve(p,u,"read from private field"),f?f.call(p):u.get(p)),y=(p,u,f)=>{if(u.has(p))throw TypeError("Cannot add the same private member more than once");u instanceof WeakSet?u.add(p):u.set(p,f)},N=(p,u,f,b)=>(ve(p,u,"write to private field"),b?b.call(p,f):u.set(p,f),f);var w=(p,u,f)=>(ve(p,u,"access private method"),f);var x=(p,u,f)=>new Promise((b,Q)=>{var k=E=>{try{$(f.next(E))}catch(S){Q(S)}},C=E=>{try{$(f.throw(E))}catch(S){Q(S)}},$=E=>E.done?b(E.value):Promise.resolve(E.value).then(k,C);$((f=f.apply(p,u)).next())});(function(p,u){typeof exports=="object"&&typeof module!="undefined"?module.exports=u():typeof define=="function"&&define.amd?define(u):(p=typeof globalThis!="undefined"?globalThis:p||self,p._M_=u())})(this,function(){var l,U,d,B,M,R,I,te,De,ie,Me,X,ye,re,Re,ne,Le,G,ge,L,de,O,J,se,Ve,V,ce,A,z,oe,ze;"use strict";function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! load-script2. MIT License. Feross Aboukhadijeh */var u=function(e,i,r){return new Promise((n,s)=>{const o=document.createElement("script");o.async=!0,o.src=e;for(const[m,v]of Object.entries(i||{}))o.setAttribute(m,v);o.onload=()=>{o.onerror=o.onload=null,n(o)},o.onerror=()=>{o.onerror=o.onload=null,s(new Error(`Failed to load ${e}`))},(r||document.head||document.getElementsByTagName("head")[0]).appendChild(o)})};const f=p(u),b=localStorage;function Q(t,e,i){$(t,k(t)+1,e,i)}function k(t,e){t=`missena.${t}`;const i=b.getItem(t);if(!i)return 0;const r=JSON.parse(i);return typeof r.expiry!="number"||new Date().getTime()>r.expiry||e&&e!=r.referer?(b.removeItem(t),0):typeof r.value=="number"?r.value:0}function C(...t){return["missena","capper"].concat(t).join(".")}function $(t,e,i,r){t=`missena.${t}`;const n=new Date().getTime()+i*1e3;b.setItem(t,JSON.stringify({value:e,expiry:n,referer:r}))}function E(t,e){t=`missena.${t}`;const i=b.getItem(t);let r=new Date().getTime()+e*1e3,n=JSON.parse(i!=null?i:JSON.stringify({value:0,expiry:r}));(typeof n.expiry!="number"||typeof n.value!="number"||new Date().getTime()>n.expiry)&&(b.removeItem(t),n={value:0,expiry:r}),n.value+=1,b.setItem(t,JSON.stringify(n))}var S=(t=>(t.BANNER="BANNER",t.NATIVE="NATIVE",t.VIDEO="VIDEO",t))(S||{}),D=(t=>(t.STICKY="sticky",t.PRESTITIAL="prestitial",t.POSTITIAL="postitial",t))(D||{}),T=(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))(T||{}),K=(t=>(t.LOCAL="local",t.STAGING="staging",t.PRODUCTION="production",t.EDGE="edge",t))(K||{}),be=(t=>(t.AMP="amp",t.Bot="bot",t.Desktop="desktop",t.Mobile="mobile",t.Tablet="tablet",t.Webview="webview",t))(be||{}),c=(t=>(t.Adyoulike="adyoulike",t.Bidule="bidule",t.CriteoCDB="criteo-cdb",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.SmartNative="smart-native",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))(c||{});T.STICKY_BANNER+"",T.STICKY_NATIVE+"",c.Outbrain+"",c.Adyoulike+"",c.SmartNative+"",c.XandrNative+"",c.MagniteNative+"",c.PubmaticNative+"",c.CriteoPrebidNative+"",c.ImproveDigitalNative+"",T.STICKY_VIDEO+"",T.PRESTITIAL_BANNER+"",T.PRESTITIAL_NATIVE+"",T.PRESTITIAL_VIDEO+"",T.POSTITIAL_BANNER+"",T.POSTITIAL_NATIVE+"",T.POSTITIAL_VIDEO+"";/*! load-script2. MIT License. Feross Aboukhadijeh */var $e=function(e,i,r){return new Promise((n,s)=>{const o=document.createElement("script");o.async=!0,o.src=e;for(const[m,v]of Object.entries(i||{}))o.setAttribute(m,v);o.onload=()=>{o.onerror=o.onload=null,n(o)},o.onerror=()=>{o.onerror=o.onload=null,s(new Error(`Failed to load ${e}`))},(r||document.head||document.getElementsByTagName("head")[0]).appendChild(o)})};const Ke=p($e),ue=()=>{};function We(t,e){const i={amp:e.device===be.AMP,ik:e.idempotencyKey,t:e.apiKey};try{const r=new URL(t);return Object.entries(i).forEach(([n,s])=>{s===!0?r.searchParams.set(n,"1"):s&&r.searchParams.set(n,s)}),r.toString()}catch(r){return""}}function pe(t="%cmissena-debug:",e="color:#FFF; background-color:red; padding:3px;border-radius:3px;"){const i=W();try{const r=i.localStorage.getItem("__missena_debug")||i.hasOwnProperty("displayMissenaInfo"),n=i.displayMissenaInfo||ue;return r?function(){if(arguments.length==3){n(...arguments);return}console.log(t,e,...arguments)}:ue}catch(r){return ue}}function W(){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 g=[],q=0;q<256;q++)g[q]=(q<16?"0":"")+q.toString(16);function qe(){var t=crypto.getRandomValues(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,g[t[0]]+g[t[1]]+g[t[2]]+g[t[3]]+"-"+g[t[4]]+g[t[5]]+"-"+g[t[6]]+g[t[7]]+"-"+g[t[8]]+g[t[9]]+"-"+g[t[10]]+g[t[11]]+g[t[12]]+g[t[13]]+g[t[14]]+g[t[15]]}function Te(t,e){typeof t.renderers[e.format]=="function"?(t.log("Renderer finished loading. Rendering: ",t,e),t.renderers[e.format](e),t.shownAds.push(e.requestId)):requestAnimationFrame(()=>Te(t,e))}function Fe(t,e){return x(this,null,function*(){var n,s;const i=t.window.document,r=i.head||i.getElementsByTagName("head")[0];if(t.shownAds=(n=t.shownAds)!=null?n:[],e.requestId=(s=e.requestId)!=null?s:qe(),!t.shownAds.includes(e.requestId)){if(typeof t.renderers[e.format]=="function"){t.log("Renderer already loaded. Rendering: ",t,e),t.renderers[e.format](e),t.shownAds.push(e.requestId);return}Ke(`${t.baseUrl}/renderer-${e.format}.js`,{},r).then(()=>{Te(t,e)})}})}const F=pe("%cmissena-capper:");function Ie(t,e,i,r=void 0){const s=W().document;function o(h){var v,P,Y;(((P=(v=h==null?void 0:h.detail)==null?void 0:v.event)==null?void 0:P.name)||"").startsWith(e)&&(F("missena.event: ",(Y=h==null?void 0:h.detail)==null?void 0:Y.event),s.removeEventListener("missena.event",o),e.includes("postitial")?E(C(e,t),i):Q(C(e,t),i,r))}s.addEventListener("missena.event",o),F("mounted listener for ",e)}const He="remove-bubble";function Xe(t,e,i){return e?k(C(He,t),i)==0:!0}const xe="display-bubble",Ge=500,Ye=1;function Je(t,e){return e?(e.duration=e.duration||Ge,e.max=e.max||Ye,Ie(t,xe,e.duration),k(C(xe,t))!r.purpose.consents[m])?(F("gdprApplies, NOT ALLOWED!"),!0):s==D.STICKY&&!(Je(i,e==null?void 0:e.display)&&Xe(i,e==null?void 0:e.close,n))?(F("sticky"),!1):s==D.POSTITIAL&&!Ze(i,e==null?void 0:e.postitial)?(F("postitial"),!1):!0:!0}function tt(t){var r;const e=new URL("https://odb.outbrain.com/utils/platforms"),i=e.searchParams;return i.set("cnsntv2",(r=t==null?void 0:t.tcData)==null?void 0:r.tcString),i.set("contentUrl",t.window.location.origin),i.set("cors","true"),i.set("extid",`${t.apiKey}:${c.Outbrain}`),i.set("format","vjnc"),i.set("idx","0"),t.environment==="staging"?(i.set("key","MISSE2C64DIAP9G6IALM960BG"),i.set("testMode","true")):i.set("key","MISSE1B20F8DEDLL0I1F217OD"),i.set("secured","true"),i.set("va","true"),i.set("widgetJSId","APP_1"),e.toString()}function Se(i){return x(this,arguments,function*(t,e=[]){var m,v,P,Y;if(e.includes(c.Outbrain))return Promise.resolve({});const n=yield(yield fetch(tt(t))).json(),s=(m=n.response)==null?void 0:m.documents;if(!s)return Promise.resolve({error:new Error("undefined documents")});if(!s.count||!s.doc)return Promise.resolve({error:new Error(`${s.count}/${s.total_count} ${JSON.stringify(s.doc)}`)});const o=s.doc[0],h=(v=o.thumbnail)==null?void 0:v.url;return Promise.resolve({recommendation:{clickUrl:o.url,icon:h,image:h,impressionTrackers:o.impression_pixels||o.pixels||[],kind:S.NATIVE,onViewed:o["on-viewed"]||[],price:"0",privacyLink:"",sponsoredBy:o.source_display_name,title:o.content,requestId:(Y=(P=n.response)==null?void 0:P.request)==null?void 0:Y.req_id}})})}const it={enableTIDs:!0,gvlMapping:{missena:687,smilewanted:639},consentManagement:{gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0}},bidderTimeout:2e3,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 Ue=4294967295;function rt(t,e,i){var r=i/4294967296,n=i;t.setUint32(e,r),t.setUint32(e+4,n)}function Ae(t,e,i){var r=Math.floor(i/4294967296),n=i;t.setUint32(e,r),t.setUint32(e+4,n)}function nt(t,e){var i=t.getInt32(e),r=t.getUint32(e+4);return i*4294967296+r}var he,fe,le,Z=(typeof process=="undefined"||((he=process==null?void 0:process.env)===null||he===void 0?void 0:he.TEXT_ENCODING)!=="never")&&typeof TextEncoder!="undefined"&&typeof TextDecoder!="undefined";function _e(t){for(var e=t.length,i=0,r=0;r=55296&&n<=56319&&r>6&31|192;else{if(o>=55296&&o<=56319&&s>18&7|240,e[n++]=o>>12&63|128,e[n++]=o>>6&63|128):(e[n++]=o>>12&15|224,e[n++]=o>>6&63|128)}else{e[n++]=o;continue}e[n++]=o&63|128}}var H=Z?new TextEncoder:void 0,ot=Z?typeof process!="undefined"&&((fe=process==null?void 0:process.env)===null||fe===void 0?void 0:fe.TEXT_ENCODING)!=="force"?200:0:Ue;function at(t,e,i){e.set(H.encode(t),i)}function dt(t,e,i){H.encodeInto(t,e.subarray(i))}var ct=H!=null&&H.encodeInto?dt:at;Z&&new TextDecoder,Z&&typeof process!="undefined"&&((le=process==null?void 0:process.env)===null||le===void 0||le.TEXT_DECODER);var j=function(){function t(e,i){this.type=e,this.data=i}return t}(),ut=globalThis&&globalThis.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},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 r(){this.constructor=e}e.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),pt=function(t){ut(e,t);function e(i){var r=t.call(this,i)||this,n=Object.create(e.prototype);return Object.setPrototypeOf(r,n),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:e.name}),r}return e}(Error),ht=-1,ft=4294967296-1,lt=17179869184-1;function mt(t){var e=t.sec,i=t.nsec;if(e>=0&&i>=0&&e<=lt)if(i===0&&e<=ft){var r=new Uint8Array(4),n=new DataView(r.buffer);return n.setUint32(0,e),r}else{var s=e/4294967296,o=e&4294967295,r=new Uint8Array(8),n=new DataView(r.buffer);return n.setUint32(0,i<<2|s&3),n.setUint32(4,o),r}else{var r=new Uint8Array(12),n=new DataView(r.buffer);return n.setUint32(0,i),Ae(n,4,e),r}}function wt(t){var e=t.getTime(),i=Math.floor(e/1e3),r=(e-i*1e3)*1e6,n=Math.floor(r/1e9);return{sec:i+n,nsec:r-n*1e9}}function vt(t){if(t instanceof Date){var e=wt(t);return mt(e)}else return null}function yt(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:{var i=e.getUint32(0),r=0;return{sec:i,nsec:r}}case 8:{var n=e.getUint32(0),s=e.getUint32(4),i=(n&3)*4294967296+s,r=n>>>2;return{sec:i,nsec:r}}case 12:{var i=nt(e,4),r=e.getUint32(0);return{sec:i,nsec:r}}default:throw new pt("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function gt(t){var e=yt(t);return new Date(e.sec*1e3+e.nsec/1e6)}var bt={type:ht,encode:vt,decode:gt},Tt=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(bt)}return t.prototype.register=function(e){var i=e.type,r=e.encode,n=e.decode;if(i>=0)this.encoders[i]=r,this.decoders[i]=n;else{var s=1+i;this.builtInEncoders[s]=r,this.builtInDecoders[s]=n}},t.prototype.tryToEncode=function(e,i){for(var r=0;rthis.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,r=e.length;if(r>ot){var n=_e(e);this.ensureBufferSizeToWrite(i+n),this.writeStringHeader(n),ct(e,this.bytes,this.pos),this.pos+=n}else{var n=_e(e);this.ensureBufferSizeToWrite(i+n),this.writeStringHeader(n),st(e,this.bytes,this.pos),this.pos+=n}},t.prototype.encodeObject=function(e,i){var r=this.extensionCodec.tryToEncode(e,this.context);if(r!=null)this.encodeExtension(r);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 r=It(e);this.writeU8a(r)},t.prototype.encodeArray=function(e,i){var r=e.length;if(r<16)this.writeU8(144+r);else if(r<65536)this.writeU8(220),this.writeU16(r);else if(r<4294967296)this.writeU8(221),this.writeU32(r);else throw new Error("Too large array: ".concat(r));for(var n=0,s=e;n1&&(i=1),i=Math.round(i*100)/100,!(Math.random()>i)&&(this.queue.push({event:this.enrich(e,i),url:We(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=At(ae(_({},e.event),{from:this.application})),r=new Blob([i],{type:"application/msgpack"});navigator.sendBeacon(e.url,r)}}const Nt=pe("%cmissena-mosquito:");function Ct(t,e){var r;const i=t.native;return i.kind=S.NATIVE,i.commission={type:"cpm",currency:(r=t.currency)!=null?r:"EUR",value:t.cpm},i.ids=e,i}function Bt(t,e,i={}){var n;if(!("mediaType"in e))return e;const r={type:"cpm",currency:(n=e.currency)!=null?n:"EUR",value:e.cpm};switch(e.mediaType){case"video":return{commission:r,kind:S.VIDEO,vastImpUrl:e.vastImpUrl,vastUrl:e.vastUrl,vastXml:e.vastXml,ids:i};case"native":return Ct(e,i);case"banner":return{kind:S.BANNER,ad:e.ad,width:e.width,height:e.height,commission:r,ids:i}}}function Ot(t){return t.replace(/[^\.]+(\.*)/,`${new Date().getTime()}$1`)}function Ne(t,e){const i=W();if(!i.__tcfapi){e();return}i.__tcfapi("addEventListener",2,function(r,n){!n||!["tcloaded","useractioncomplete"].includes(r==null?void 0:r.eventStatus)||(i.__tcfapi("removeEventListener",2,()=>{},r.listenerId),t(r))})}class Pt extends _t{adsuccess(e){this.log({name:"adsuccess",parameters:{provider:e}})}bidsuccess(e){this.log({name:"bidsuccess",parameters:e})}consent(){Ne(e=>{Nt({missing_purpose:!e.purpose.consents[1],missing_vendor:!e.vendor.consents[867],tcData:e}),this.log({name:"consent",parameters:{applies:e.gdprApplies,missing_purpose:!e.purpose.consents[1],missing_vendor:!e.vendor.consents[867],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 kt(t){try{return window.top[t]}catch(e){return window[t]}}function Ce(t){return t.environment==K.EDGE||t.environment==K.PRODUCTION}const Be={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}}},me={video:{playerSize:[640,480],context:"outstream",mimes:["video/mp4"],maxduration:30,api:[1,2],protocols:[2,3],skip:0,playbackmethod:[1],placement:2}},ee={banner:{sizes:[[300,250]]}};function Oe(t,e,i,r={}){const n=`msna-${e}`,s=new URLSearchParams(t.window.location.search).get("bidule_test");return{[c.Bidule]:{code:n,bids:[{bidder:"missena",params:{placement:e,apiKey:t.apiKey,baseUrl:Ce(t)?"":t.bidderUrl,custom:{providerName:c.Bidule},test:s,isInternal:!0}}],mediaTypes:ee},[c.WmgPubmaticNative]:{code:n,bids:[{bidder:"pubmatic",params:_({custom:{providerName:c.WmgPubmaticNative},publisherId:"156736"},r)}],mediaTypes:Be},[c.CriteoPrebidBanner]:{code:n,bids:[{bidder:"criteo",params:_({custom:{providerName:c.CriteoPrebidBanner},networkId:10593,publisherSubId:`${t.apiKey}:${c.CriteoPrebidBanner}`},r)}],mediaTypes:ee},[c.CriteoPrebidNative]:{code:n,bids:[{bidder:"criteo",params:_({custom:{providerName:c.CriteoPrebidNative},networkId:10593,publisherSubId:`${t.apiKey}:${c.CriteoPrebidNative}`},r)}],mediaTypes:Be},[c.CriteoPrebidVideo]:{code:n,bids:[{bidder:"criteo",params:_({custom:{providerName:c.CriteoPrebidVideo},publisherSubId:`${t.apiKey}:${c.CriteoPrebidVideo}`},r)}],mediaTypes:me},[c.RichAudienceBanner]:{code:n,bids:[{bidder:"richaudience",params:{custom:{providerName:c.RichAudienceBanner},supplyType:"site",pid:"MP_HLWr9WfM73"}}],mediaTypes:ee},[c.RichAudienceVideo]:{code:n,bids:[{bidder:"richaudience",params:{custom:{providerName:c.RichAudienceVideo},supplyType:"site",pid:"MP_HLWr9WfM73"}}],mediaTypes:me},[c.SmilewantedVideo]:{code:n,bids:[{bidder:"smilewanted",params:{bidfloor:.2,custom:{providerName:c.SmilewantedVideo},zoneId:"missena.com_hb_video_in_its_player_instream_visible"}}],mediaTypes:me,renderer:{render:()=>{}}},[c.SmilewantedBanner]:{code:n,bids:[{bidder:"smilewanted",params:{bidfloor:2,custom:{providerName:c.SmilewantedBanner},zoneId:"missena.com_hb_display"}}],mediaTypes:ee}}[i]}function Dt(t,e){const i=e.publisher.blockedProviders;return e.formats.reduce((r,n)=>{const s=n.name.split("-")[0],o=n.providers.reduce((h,m)=>{if(i.includes(m.name))return h;const v=Oe(t,s,m.name,m.settings);return v?[...h,v]:h},[]);return[...r,...o]},[])}function Mt(t,e){return t.find(r=>{var n;return r.code==e.adUnitCode&&((n=r.bids[0])==null?void 0:n.bidder)==e.bidder&&r.mediaTypes.hasOwnProperty(e.mediaType)}).bids[0].params.custom}function Rt(t,e,i){return e.formats.reduce((r,n)=>{const s=n.name.split("-")[0],o=n.providers.reduce((h,m)=>{if(!i.includes(m.name))return h;const v=Oe(t,s,m.name,m.settings);return v?[...h,v]:h},[]);return[...r,...o]},[])}const we={except:Dt,findCustomData:Mt,only:Rt};class Lt{constructor(e){y(this,te);y(this,ie);y(this,X);y(this,re);y(this,ne);y(this,G);y(this,L);y(this,O);y(this,se);y(this,V);y(this,A);y(this,oe);y(this,l,void 0);y(this,U,void 0);y(this,d,void 0);y(this,B,void 0);y(this,M,void 0);y(this,R,void 0);y(this,I,void 0);var n;const i=pe(),r=W();r.__MISSENA__=ae(_({renderers:{},referer:r.location.href},(n=r.__MISSENA__)!=null?n:{}),{log:i,window:r}),N(this,l,e),N(this,U,`msna-${a(this,l).placement}`),N(this,d,r.__MISSENA__),N(this,B,i),N(this,M,r.document.head||r.document.getElementsByTagName("head")[0]),N(this,I,r),e.formats.push({mediaType:"banner",name:`${e.placement}-banner`,providers:[{name:c.Bidule}]}),i(e)}run(){a(this,I).__msna_loaded||(a(this,I).__msna_loaded==!0,Ne(w(this,G,ge).bind(this),w(this,G,ge).bind(this)))}}l=new WeakMap,U=new WeakMap,d=new WeakMap,B=new WeakMap,M=new WeakMap,R=new WeakMap,I=new WeakMap,te=new WeakSet,De=function(){const e=new URLSearchParams(a(this,I).location.search).getAll("msna_provider");return e.length==0?we.except(a(this,d),a(this,l)):we.only(a(this,d),a(this,l),e)},ie=new WeakSet,Me=function(){return x(this,null,function*(){const{error:e,pbjs:i}=yield w(this,se,Ve).call(this);if(a(this,l).settings.disable_prebid){const{error:s,recommendation:o}=yield Se(a(this,d));if(s){console.error("[missena] error while loading outbrain:",s.message),w(this,O,J).call(this);return}if(!o){w(this,O,J).call(this);return}w(this,L,de).call(this,o,c.Outbrain,D.STICKY,i.getUserIdsAsEids());return}if(e){console.error("[missena] error while loading prebid:",e.message),w(this,A,z).call(this).debug("mosquito.pbjs.failed");return}i.processQueue(),i.bidderSettings={criteo:{storageAllowed:!0},missena:{storageAllowed:!0}},i.setConfig(ae(_({},it),{floors:{data:{default:a(this,l).publisher.floor,currency:a(this,l).publisher.floorCurrency,schema:{fields:["mediaType"]}}}}));const r=!Ce(a(this,d))||i.getConfig().debug;i.setConfig({debug:r});const n=w(this,te,De).call(this);i.removeAdUnit(a(this,U)),i.addAdUnits(n),a(this,B).call(this,"Added adUnits",n),i.enableAnalytics([{provider:"atsAnalytics",options:{pid:"13964"}}]),i.onEvent("bidTimeout",s=>{s.filter(o=>o.adUnitCode==a(this,U)).forEach(o=>w(this,A,z).call(this).timeout(o.bidder))}),w(this,X,ye).call(this,i)})},X=new WeakSet,ye=function(e){return x(this,null,function*(){e.requestBids({adUnitCodes:[a(this,U)],bidsBackHandler:()=>x(this,null,function*(){const i=e.getUserIdsAsEids(),r=e.getHighestCpmBids(a(this,U))[0];if(!r){const{error:s,recommendation:o}=yield Se(a(this,d),a(this,l).publisher.blockedProviders);if(s){console.error("[missena] error while loading outbrain:",s.message),w(this,O,J).call(this);return}if(!o){w(this,O,J).call(this);return}w(this,L,de).call(this,o,c.Outbrain,a(this,l).placement,i);return}const n=we.findCustomData(e.adUnits,r);if(a(this,B).call(this,"winner, ids & provider",{ids:i,customData:n,winner:r}),n.providerName==c.Bidule){const s=document.createElement("iframe");s.frameBorder="0",document.body.appendChild(s);const o=s.contentWindow.document;e.renderAd(o,r.adId);return}w(this,L,de).call(this,r,n.providerName,r.adUnitCode.substring(5),i)})}),a(this,l).placement==D.STICKY&&a(this,d).settings.auctionRefresh&&setTimeout(()=>{a(this,d).settings.auctionRefresh&&w(this,X,ye).call(this,e)},a(this,l).settings.auctionRefresh*1e3)})},re=new WeakSet,Re=function(){const e=w(this,V,ce).bind(this),i=a(this,I);if(i.msnaHandleHistory)return;i.msnaHandleHistory=!0;function r(n){return function(){var s=n.apply(this,arguments);return i.dispatchEvent(new Event("contentchange")),s}}i.history.pushState=r(i.history.pushState),i.history.replaceState=r(i.history.replaceState),i.addEventListener("popstate",()=>{i.dispatchEvent(new Event("contentchange"))}),i.addEventListener("contentchange",()=>{e({isClientSide:!0,minDuration:1e3})})},ne=new WeakSet,Le=function(){var i,r;const e=(i=a(this,d).settings.block)!=null?i:{};if(e.type==="domain"){const n=((r=kt("location"))==null?void 0:r.hostname)||"";return(e.domains||[]).some(s=>s==n)}return e.type==="device"},G=new WeakSet,ge=function(e,i){return x(this,null,function*(){var r;if(et({placement:a(this,l).placement,publisher:a(this,l).publisher.apiKey,capping:a(this,l).settings.capping,tcData:i?void 0:e,referer:(r=a(this,l).settings.capping)!=null&&r.closePerPage?a(this,d).referer:void 0})){if(a(this,d).adServerUrl=a(this,l).adServerUrl,a(this,d).apiKey=a(this,l).publisher.apiKey,a(this,d).baseUrl=a(this,l).baseUrl,a(this,d).bidderUrl=a(this,l).bidderUrl,a(this,d).device=a(this,l).device,a(this,d).environment=a(this,l).environment,a(this,d).idempotencyKey=a(this,l).idempotencyKey,a(this,d).sentryEnabled=a(this,l).publisher.sentryEnabled,a(this,d).settings=a(this,l).settings,a(this,d).tcData=e,a(this,d).slots={},a(this,d).stopRefresh=()=>{delete a(this,d).settings.auctionRefresh},w(this,re,Re).call(this),w(this,A,z).call(this).consent(),w(this,ne,Le).call(this)){a(this,B).call(this,"script blocked");return}w(this,ie,Me).call(this)}})},L=new WeakSet,de=function(s,o,h){return x(this,arguments,function*(e,i,r,n=[]){a(this,d).passback=w(this,V,ce).bind(this);const m=`${r}-${e.mediaType||"native"}`,v=w(this,oe,ze).call(this,e.adUnitCode||a(this,U),Bt(a(this,d),e,n),i,e.requestId,m);w(this,A,z).call(this).adsuccess(i),w(this,A,z).call(this).bidsuccess({provider:i,commission:{cpm:e.cpm,currency:e.currency},eids:n.map(P=>P.source)}),Fe(a(this,d),v)})},O=new WeakSet,J=function(){a(this,I).document.dispatchEvent(new CustomEvent("missena.event",{detail:{event:{name:"passback"}}})),new Function(a(this,l).publisher.passback)()},se=new WeakSet,Ve=function(){return x(this,null,function*(){if(a(this,d).window.msnaPbjs)return{pbjs:a(this,d).window.msnaPbjs};try{yield f(`${a(this,l).baseUrl}/prebid.js`,{},a(this,M))}catch(e){return{error:e}}return{pbjs:a(this,d).window.msnaPbjs}})},V=new WeakSet,ce=function(e,i={isClientSide:!1,minDuration:1e4}){var o;const r=a(this,d).slots[e];if(!((r==null?void 0:r.displayedAt)&&Date.now()-r.displayedAt>i.minDuration))return!1;delete r.displayedAt,delete a(this,I).__msna_loaded,delete r.data,(o=r.remove)==null||o.call(r);const s=new URL(a(this,d).adServerUrl);return s.searchParams.set("t",a(this,d).apiKey),i.isClientSide?(s.searchParams.set("cs","1"),s.searchParams.set("ik",Ot(a(this,d).idempotencyKey))):s.searchParams.set("ik",a(this,d).idempotencyKey),f(s.toString(),{},a(this,M)),!0},A=new WeakSet,z=function(){return a(this,R)||N(this,R,new Pt({appName:"mosquito",ctx:a(this,d)})),a(this,R)},oe=new WeakSet,ze=function(e,i,r,n,s=T.STICKY_NATIVE){var h,m;const o={adUnitCode:e,data:i,format:s,settings:(h=a(this,l).formats.find(v=>v.name==s))==null?void 0:h.settings,provider:r,requestId:n,reload:v=>{w(this,V,ce).call(this,e,v)},remove:()=>{},track:()=>{}};return(m=a(this,d).slots[e])==null||m.remove(),a(this,d).slots[e]=o,o};function Vt(t){return x(this,null,function*(){new Lt(t).run()})}return Vt}); _M_({adServerUrl:"https://ad.missena.io/?t=PA-96627237",baseUrl:"https://chat.missena.io",bidderUrl:"https://bid.missena.io",device:"desktop",environment:"edge",formats:[{"renderer":"sticky-banner","mediaType":"banner","name":"sticky-banner","settings":{"afterDisplay":"","plugins":[],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"148px","right":"0px"}},"triggers":{"desktop":[],"mobile":[],"webview":[]}},"providers":[{"name":"criteo-prebid-banner"}]},{"renderer":"sticky-native","mediaType":"native","name":"sticky-native","settings":{"behavior":{"adyoulike":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"criteo-prebid-native":{"countdown":3,"onClick":"popup","onSwipe":"popup"},"improvedigital-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"magnite-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"outbrain":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"pubmatic-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"smart-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"xandr-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"}},"position":{"desktop":{"bottom":"0px","left":"0px"},"mobile":{"bottom":"148px","right":"0px"}}},"providers":[{"name":"outbrain"},{"name":"criteo-prebid-native","settings":{"zoneId":1628646}}]},{"renderer":"sticky-video","mediaType":"video","name":"sticky-video","settings":{"position":{"desktop":{"bottom":"0px","left":"0px"}}},"providers":[{"name":"criteo-prebid-video","settings":{"zoneId":1628860}}]}],idempotencyKey:"1703861623.cm7dqtonc62s73eo6jv0",now:1703861623000,placement:"sticky",publisher:{"apiKey":"PA-96627237","blockedProviders":["smilewanted-banner"],"floor":0,"floorCurrency":"EUR","passback":"","sentryEnabled":false},settings:{"auctionRefresh":14},syncopeUrl:"https://sync.missena.io"});})();