// capped conditions: // - campaign "d428b2e3-b266-4848-bac3-5932d720a40d" // ✔ condition "context" with arguments {"browser":"safari","rate":66} passed because: not applicable // ✖ condition "platform" with arguments {"mobile":true} failed because: current platform is desktop // - campaign "bee29d09-c64c-4504-a10b-2585748e3eba" // ✔ condition "context" with arguments {"browser":"safari","rate":66} passed because: not applicable // ✔ condition "capping" with arguments {"duration":300,"events":["remove-bubble.bubble-cross","remove-bubble.chat-menu"],"max":1} passed because: 0 < 1 (current session < wanted) (()=>{var ee=Object.create;var Q=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames,jt=Object.getOwnPropertySymbols,ie=Object.getPrototypeOf,Ot=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var Ct=(t,e,s)=>e in t?Q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,tt=(t,e)=>{for(var s in e||(e={}))Ot.call(e,s)&&Ct(t,s,e[s]);if(jt)for(var s of jt(e))se.call(e,s)&&Ct(t,s,e[s]);return t};var ae=t=>Q(t,"__esModule",{value:!0});var oe=t=>{if(typeof require!="undefined")return require(t);throw new Error('Dynamic require of "'+t+'" is not supported')};var kt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ce=(t,e,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of ne(e))!Ot.call(t,c)&&c!=="default"&&Q(t,c,{get:()=>e[c],enumerable:!(s=re(e,c))||s.enumerable});return t},At=t=>ce(ae(Q(t!=null?ee(ie(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var Ut=kt(pt=>{var ue=Object.create,et=Object.defineProperty,pe=Object.getPrototypeOf,he=Object.prototype.hasOwnProperty,le=Object.getOwnPropertyNames,fe=Object.getOwnPropertyDescriptor,Pt=t=>et(t,"__esModule",{value:!0}),rt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),de=(t,e)=>{for(var s in e)et(t,s,{get:e[s],enumerable:!0})},ge=(t,e,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of le(e))!he.call(t,c)&&c!=="default"&&et(t,c,{get:()=>e[c],enumerable:!(s=fe(e,c))||s.enumerable});return t},me=t=>ge(Pt(et(t!=null?ue(pe(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),ve=rt((t,e)=>{e.exports=function(c,C){for(var m=[],g=0;g{"use strict";e.exports=s;function s(m,g,l){m instanceof RegExp&&(m=c(m,l)),g instanceof RegExp&&(g=c(g,l));var E=C(m,g,l);return E&&{start:E[0],end:E[1],pre:l.slice(0,E[0]),body:l.slice(E[0]+m.length,E[1]),post:l.slice(E[1]+g.length)}}function c(m,g){var l=g.match(m);return l?l[0]:null}s.range=C;function C(m,g,l){var E,D,B,J,M,T=l.indexOf(m),R=l.indexOf(g,T+1),b=T;if(T>=0&&R>0){for(E=[],B=l.length;b>=0&&!M;)b==T?(E.push(b),T=l.indexOf(m,b+1)):E.length==1?M=[E.pop(),R]:(D=E.pop(),D=0?T:R;E.length&&(M=[B,J])}return M}}),ye=rt((t,e)=>{var s=ve(),c=be();e.exports=T;var C="\0SLASH"+Math.random()+"\0",m="\0OPEN"+Math.random()+"\0",g="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",E="\0PERIOD"+Math.random()+"\0";function D(p){return parseInt(p,10)==p?parseInt(p,10):p.charCodeAt(0)}function B(p){return p.split("\\\\").join(C).split("\\{").join(m).split("\\}").join(g).split("\\,").join(l).split("\\.").join(E)}function J(p){return p.split(C).join("\\").split(m).join("{").split(g).join("}").split(l).join(",").split(E).join(".")}function M(p){if(!p)return[""];var A=[],N=c("{","}",p);if(!N)return p.split(",");var y=N.pre,z=N.body,G=N.post,P=y.split(",");P[P.length-1]+="{"+z+"}";var r=M(G);return G.length&&(P[P.length-1]+=r.shift(),P.push.apply(P,r)),A.push.apply(A,P),A}function T(p){return p?(p.substr(0,2)==="{}"&&(p="\\{\\}"+p.substr(2)),q(B(p),!0).map(J)):[]}function R(p){return"{"+p+"}"}function b(p){return/^-?0\d/.test(p)}function S(p,A){return p<=A}function st(p,A){return p>=A}function q(p,A){var N=[],y=c("{","}",p);if(!y||/\$$/.test(y.pre))return[p];var z=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),G=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),P=z||G,r=y.body.indexOf(",")>=0;if(!P&&!r)return y.post.match(/,.*\}/)?(p=y.pre+"{"+y.body+g+y.post,q(p)):[p];var i;if(P)i=y.body.split(/\.\./);else if(i=M(y.body),i.length===1&&(i=q(i[0],!1).map(R),i.length===1)){var n=y.post.length?q(y.post,!1):[""];return n.map(function(H){return y.pre+i[0]+H})}var o=y.pre,n=y.post.length?q(y.post,!1):[""],a;if(P){var u=D(i[0]),f=D(i[1]),U=Math.max(i[0].length,i[1].length),h=i.length==3?Math.abs(D(i[2])):1,v=S,k=f0){var j=new Array($+1).join("0");L<0?x="-"+j+x.slice(1):x=j+x}}a.push(x)}}else a=s(i,function(F){return q(F,!1)});for(var V=0;V{e.exports=b,b.Minimatch=S;var s={sep:"/"};try{s=oe("path")}catch(r){}var c=b.GLOBSTAR=S.GLOBSTAR={},C=ye(),m={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},g="[^/]",l=g+"*?",E="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",D="(?:(?!(?:\\/|^)\\.).)*?",B=J("().*{}+?[]^$\\!");function J(r){return r.split("").reduce(function(i,o){return i[o]=!0,i},{})}var M=/\/+/;b.filter=T;function T(r,i){return i=i||{},function(o,n,a){return b(o,r,i)}}function R(r,i){r=r||{},i=i||{};var o={};return Object.keys(i).forEach(function(n){o[n]=i[n]}),Object.keys(r).forEach(function(n){o[n]=r[n]}),o}b.defaults=function(r){if(!r||!Object.keys(r).length)return b;var i=b,o=function(n,a,u){return i.minimatch(n,a,R(r,u))};return o.Minimatch=function(n,a){return new i.Minimatch(n,R(r,a))},o},S.defaults=function(r){return!r||!Object.keys(r).length?S:b.defaults(r).Minimatch};function b(r,i,o){if(typeof i!="string")throw new TypeError("glob pattern string required");return o||(o={}),!o.nocomment&&i.charAt(0)==="#"?!1:i.trim()===""?r==="":new S(i,o).match(r)}function S(r,i){if(!(this instanceof S))return new S(r,i);if(typeof r!="string")throw new TypeError("glob pattern string required");i||(i={}),r=r.trim(),s.sep!=="/"&&(r=r.split(s.sep).join("/")),this.options=i,this.set=[],this.pattern=r,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}S.prototype.debug=function(){},S.prototype.make=st;function st(){if(!this._made){var r=this.pattern,i=this.options;if(!i.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate();var o=this.globSet=this.braceExpand();i.debug&&(this.debug=console.error),this.debug(this.pattern,o),o=this.globParts=o.map(function(n){return n.split(M)}),this.debug(this.pattern,o),o=o.map(function(n,a,u){return n.map(this.parse,this)},this),this.debug(this.pattern,o),o=o.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,o),this.set=o}}S.prototype.parseNegate=q;function q(){var r=this.pattern,i=!1,o=this.options,n=0;if(!o.nonegate){for(var a=0,u=r.length;a1024*64)throw new TypeError("pattern is too long");var o=this.options;if(!o.noglobstar&&r==="**")return c;if(r==="")return"";var n="",a=!!o.nocase,u=!1,f=[],U=[],h,v=!1,k=-1,I=-1,L=r.charAt(0)==="."?"":o.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",x=this;function $(){if(h){switch(h){case"*":n+=l,a=!0;break;case"?":n+=g,a=!0;break;default:n+="\\"+h;break}x.debug("clearStateChar %j %j",h,n),h=!1}}for(var j=0,V=r.length,w;j-1;at--){var W=U[at],wt=n.slice(0,W.reStart),Yt=n.slice(W.reStart,W.reEnd-8),St=n.slice(W.reEnd-8,W.reEnd),Y=n.slice(W.reEnd);St+=Y;var Zt=wt.split("(").length-1,ot=Y;for(j=0;j=0&&(a=r[u],!a);u--);for(u=0;u>> no match, partial?`,r,k,i,I),k===f))}var x;if(typeof h=="string"?(n.nocase?x=v.toLowerCase()===h.toLowerCase():x=v===h,this.debug("string match",h,v,x)):(x=v.match(h),this.debug("pattern match",h,v,x)),!x)return!1}if(a===f&&u===U)return!0;if(a===f)return o;if(u===U){var $=a===f-1&&r[a]==="";return $}throw new Error("wtf?")};function G(r){return r.replace(/\\(.)/g,"$1")}function P(r){return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});Pt(pt);de(pt,{default:()=>ke});var Se=me(we());function xe(t){t=`missena.${t}`;let e=localStorage.getItem(t);if(!e)return 0;let s=JSON.parse(e);return typeof s.expiry!="number"||new Date().getTime()>s.expiry?(localStorage.removeItem(t),0):typeof s.value=="number"?s.value:0}function Ee(t,e,s){let c=new Date().getTime()+s*1e3;localStorage.setItem(`missena.${t}`,JSON.stringify({value:e,expiry:c}))}var _e=class{constructor({events:t,duration:e,max:s=1}){this.events=t.sort(),this.duration=e,this.max=s,document.addEventListener("missena.event",c=>{this.match(c.detail.event.name)&&this.incr()})}get(){return xe(this.key)}incr(){Ee(this.key,this.get()+1,this.duration)}isCapped(){return this.get()>=this.max}get key(){return this.events.join(".")}match(t){return this.events.some(e=>(0,Se.default)(t,e))}},je=_e,Oe=class{constructor(t){this.events=t,this.eventByName=t.reduce((e,s)=>(s.events.forEach(c=>{e[c]||(e[c]=[]),e[c].push(s)}),e),{})}isCapped(){return typeof localStorage=="undefined"?!1:this.events.some(t=>t.isCapped())}},Ce=Oe,ke=new Ce([new je({events:["remove-bubble.bubble-cross","remove-bubble.chat-menu"],duration:300,max:1})])});var Tt=kt((Xe,$t)=>{var Ae=Object.defineProperty,Pe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,ht=(t,e,s)=>e in t?Ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,lt=(t,e)=>{for(var s in e||(e={}))Ie.call(e,s)&&ht(t,s,e[s]);if(It)for(var s of It(e))Le.call(e,s)&&ht(t,s,e[s]);return t},ft=(t,e)=>Pe(t,Ue(e)),K=(t,e,s)=>(ht(t,typeof e!="symbol"?e+"":e,s),s),$e=3*24*60*60*1e3,dt=class{constructor(t){K(this,"consentString"),K(this,"context"),K(this,"duration"),K(this,"key"),K(this,"name"),K(this,"noCache"),K(this,"purposes"),K(this,"userPurposes"),this.consentString=t.consentString,this.context=t.context,this.duration=t.duration||$e,this.name=t.name,this.noCache=t.noCache||!1,this.key=`missena:sync:${this.name}`,this.purposes=t.purposes,this.userPurposes=t.userPurposes,!!this.allowed()&&(this.isUptodate()||(t.sync(this),this.save()))}allowed(){if(this.userPurposes===void 0)return!0;for(let t of this.purposes)if(!this.userPurposes[t])return!1;return!0}isUptodate(){if(this.noCache)return!1;let t=parseInt(localStorage.getItem(this.key)||"0");return Date.now()-t{!c||!["tcloaded","useractioncomplete"].includes(s.eventStatus)||(Z.__tcfapi("removeEventListener",2,()=>{},s.listenerId),Lt(e,s))})}}});var Wt=At(Ut()),zt=At(Tt());var Rt="https://ad.missena.io/?t=PA-13734182",Mt="https://newchat.missena.io",Dt="https://bid.missena.io",nt="bee29d09-c64c-4504-a10b-2585748e3eba",Bt={},Nt={"couscous_server_url":"https:\/\/recommandations.missena.io","horsefly_server_url":"https:\/\/events.missena.io","mosquito_server_url":"https:\/\/ad.missena.io","application":"caligo","version":"4ed88fe83ce977e7","pusher_key":"b250580f03cd18322f82","release":"5.46.3","environment":"production","built_at":"Mon Aug 16 12:51:16 UTC 2021","base_url":"https:\/\/chat.missena.io"};var gt="20210831145916.xBtuamNxx3YCjYWQZZk16FAzp0pZkWD6",qt=1630421956000,mt="criteo-prebid",vt={},Kt="PA-13734182",Gt="https://chat.missena.io/widget.66df372c.js",Ht={"build_bubble_with_elm":true,"attach_shadow_dom":true,"body":[],"bubble":{"privacy_url":"https://privacy_url.com","stack":[{"transparent":true,"disk_diameter":90,"comment":"Swipe and click zone"},{"color":"white","disk_diameter":80,"comment":"background color"},{"disk_diameter":80,"slideshow":[{"image":"https://chat.missena.io/img/placeholder_150x150.png","image_fit":"contain","duration":3000},{"image":"https://chat.missena.io/img/placeholder_315x200.png","image_fit":"contain","duration":3000}]}]},"header":{"label":"","button_close":false,"logo":{"border":"white","image":"http://caligo.dev1.missena.xyz/img/placeholder_150x150.png","image_fit":"contain"},"style":"background-color: #1d242b; color:white;","title":"Brand name"},"external_page":"https://redirect_url.com?origin=bubble&countdown=0","preview":{"image":"http://caligo.dev1.missena.xyz/img/placeholder_315x200.png","message":"Title text - Item price","message_timeout":8000},"provider":"criteo-prebid","reco_count":8,"theme":{"colors":["#ffffff","#72b5ff","#a5bd6f","#859956","#0084ff","#0f2f21","#0084ff","#ffffff"],"framed":true,"spacing":0,"scroll":"auto"}},Jt=false,Ft="https://sync.missena.io";var O=window.top;O.__MISSENA__=O.__MISSENA__||{};var d=O.__MISSENA__;function We(t){return t.gdprApplies?bt({required:!0,string:t.tcString}):bt({required:!1})}function Vt(t={},e){var s=O.document.createElement("script");let c=t.src;delete t.src,s.async=!0;for(let C in t)s[C]=t[C];e&&(s.onload=e),s.src=c,O.document.getElementsByTagName("head")[0].appendChild(s)}function bt(t){var s,c;if(d.consent=t,d.reload=it,!d.urlChangeForwarded){let C=function(m){return function(){var g=m.apply(this,arguments);return O.dispatchEvent(new Event("contentchange")),g}};d.urlChangeForwarded=!0,O.history.pushState=C(O.history.pushState),O.history.replaceState=C(O.history.replaceState),O.addEventListener("popstate",()=>{O.dispatchEvent(new Event("contentchange"))}),O.addEventListener("contentchange",function(){it({isClientSide:!0})})}function e(){return typeof d.logSetupError=="function"?(d.logSetupError("The page is trying to load a missena script twice"),!0):!1}if(d.loaded){e()||setTimeout(e,4e3);return}d.loaded=!0,d.baseUrl=Mt,d.bidderUrl=Dt,d.campaignId=nt,d.campaign={provider:mt,id:nt,settings:tt(tt(tt({isBidding:!0},Bt),vt),((c=(s=vt)==null?void 0:s.provider)==null?void 0:c[mt])||{})},d.config=Nt,d.idempotencyKey=gt,d.passback=()=>it({skipCampaign:nt}),d.reload=it,d.sentryEnabled=Jt,d.scenario=Ht,d.timeDelta=Date.now()-qt,d.token=Kt,Vt({src:Gt})}function it(t={isClientSide:!1,minDuration:1e4,skipCampaign:null}){if(t.skipCampaign||d.lastDisplayBubble&&Date.now()-d.lastDisplayBubble>t.minDuration){delete d.loaded,typeof d.removeWidget=="function"&&d.removeWidget(),delete d.lastDisplayBubble;let e=new URL(Rt);return e.searchParams.set("ik",gt),t.skipCampaign&&e.searchParams.append("skip[]",t.skipCampaign),t.isClientSide&&e.searchParams.set("cs",1),Vt({src:e.toString()}),!0}return!1}(function(){if(Wt.default.isCapped()){console.log("capped");return}if((0,zt.default)(Ft),!O.__tcfapi)return console.log("tcf v2 not available"),bt({required:!1});O.__tcfapi("addEventListener",2,function(t,e){!e||!["tcloaded","useractioncomplete"].includes(t.eventStatus)||(O.__tcfapi("removeEventListener",2,function(){},t.listenerId),We(t))})})();})();