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