@letscooee/web-sdk 10.1.0 → 11.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ import{$ as Ri,$a as Nt,A as Tt,Ab as La,B as ke,Ba as Ea,C as P,Ca as ba,Cb as ka,D as lr,Da as Sa,Db as Fa,E as It,Ea as Jt,Eb as Va,F as wt,Fa as mt,Fb as Ba,G as ur,Ga as Li,Gb as hr,Ha as xt,Hb as rt,I as Oe,Ia as Ne,Ib as $e,J as ge,Ja as Ca,Ka as Ta,Kb as pr,L as ht,La as Ia,Lb as xn,Ma as wa,Mb as Ua,Na as Da,Nb as Rn,O as Tn,Ob as Ha,P as xe,Pb as ja,Q as _a,Qb as mr,R as Oi,S as In,Sa as Dn,T as z,Ta as fr,Ua as Ee,Va as Zt,W as dr,Wa as Qt,Y as zt,Z as wn,_ as xi,_a as Rt,a as y,aa as ce,ab as _t,b as U,ba as Dt,bb as Aa,c as Cn,ca as Kt,cb as Oa,d as sa,da as ga,e as Di,ea as At,f as Ai,fb as xa,g as O,ga as va,gb as An,h as aa,ha as Re,hb as On,ia as Fe,j as me,ja as pt,k as ca,ka as Ni,la as Xt,lb as Mt,ma as je,mb as Pt,n as la,na as Ge,nb as gt,ob as We,p as ua,pa as Mi,qa as Pi,qb as Ra,ra as ya,rb as ki,s as da,sa as Ot,t as fa,ta as qt,u as ha,ub as Na,v as pa,va as ue,vb as Ma,wa as ve,x as ma,xa as Ve,xb as Pa,z as _e}from"./chunk-S6UU36F3.js";var $a=Di((Wa,_r)=>{"use strict";(function(t){"use strict";var e={};e.VERSION="1.6.1";var n,r={},i=function(d,g){return function(){return g.apply(d,arguments)}},o=function(){var d=arguments,g=d[0],f,E;for(E=1;E<d.length;E++)for(f in d[E])!(f in g)&&d[E].hasOwnProperty(f)&&(g[f]=d[E][f]);return g},s=function(d,g){return{value:d,name:g}};e.TRACE=s(1,"TRACE"),e.DEBUG=s(2,"DEBUG"),e.INFO=s(3,"INFO"),e.TIME=s(4,"TIME"),e.WARN=s(5,"WARN"),e.ERROR=s(8,"ERROR"),e.OFF=s(99,"OFF");var a=function(d){this.context=d,this.setLevel(d.filterLevel),this.log=this.info};a.prototype={setLevel:function(d){d&&"value"in d&&(this.context.filterLevel=d)},getLevel:function(){return this.context.filterLevel},enabledFor:function(d){var g=this.context.filterLevel;return d.value>=g.value},trace:function(){this.invoke(e.TRACE,arguments)},debug:function(){this.invoke(e.DEBUG,arguments)},info:function(){this.invoke(e.INFO,arguments)},warn:function(){this.invoke(e.WARN,arguments)},error:function(){this.invoke(e.ERROR,arguments)},time:function(d){typeof d=="string"&&d.length>0&&this.invoke(e.TIME,[d,"start"])},timeEnd:function(d){typeof d=="string"&&d.length>0&&this.invoke(e.TIME,[d,"end"])},invoke:function(d,g){n&&this.enabledFor(d)&&n(g,o({level:d},this.context))}};var l=new a({filterLevel:e.OFF});(function(){var d=e;d.enabledFor=i(l,l.enabledFor),d.trace=i(l,l.trace),d.debug=i(l,l.debug),d.time=i(l,l.time),d.timeEnd=i(l,l.timeEnd),d.info=i(l,l.info),d.warn=i(l,l.warn),d.error=i(l,l.error),d.log=d.info})(),e.setHandler=function(d){n=d},e.setLevel=function(d){l.setLevel(d);for(var g in r)r.hasOwnProperty(g)&&r[g].setLevel(d)},e.getLevel=function(){return l.getLevel()},e.get=function(d){return r[d]||(r[d]=new a(o({name:d},l.context)))},e.createDefaultHandler=function(d){d=d||{},d.formatter=d.formatter||function(v,w){w.name&&v.unshift("["+w.name+"]")};var g={},f=function(E,v){Function.prototype.apply.call(E,console,v)};return typeof console>"u"?function(){}:function(E,v){E=Array.prototype.slice.call(E);var w=console.log,M;v.level===e.TIME?(M=(v.name?"["+v.name+"] ":"")+E[0],E[1]==="start"?console.time?console.time(M):g[M]=new Date().getTime():console.timeEnd?console.timeEnd(M):f(w,[M+": "+(new Date().getTime()-g[M])+"ms"])):(v.level===e.WARN&&console.warn?w=console.warn:v.level===e.ERROR&&console.error?w=console.error:v.level===e.INFO&&console.info?w=console.info:v.level===e.DEBUG&&console.debug?w=console.debug:v.level===e.TRACE&&console.trace&&(w=console.trace),d.formatter(E,v),f(w,E))}},e.useDefaults=function(d){e.setLevel(d&&d.defaultLevel||e.DEBUG),e.setHandler(e.createDefaultHandler(d))},e.setDefaults=e.useDefaults,typeof define=="function"&&define.amd?define(e):typeof _r<"u"&&_r.exports?_r.exports=e:(e._prevLogger=t.Logger,e.noConflict=function(){return t.Logger=e._prevLogger,e},t.Logger=e)})(Wa)});var ic=Di((rc,Bi)=>{"use strict";(function(t){if(typeof rc=="object"&&typeof Bi<"u")Bi.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var e;typeof window<"u"?e=window:typeof global<"u"?e=global:typeof self<"u"?e=self:e=this,e.localforage=t()}})(function(){var t,e,n;return function r(i,o,s){function a(g,f){if(!o[g]){if(!i[g]){var E=typeof Cn=="function"&&Cn;if(!f&&E)return E(g,!0);if(l)return l(g,!0);var v=new Error("Cannot find module '"+g+"'");throw v.code="MODULE_NOT_FOUND",v}var w=o[g]={exports:{}};i[g][0].call(w.exports,function(M){var N=i[g][1][M];return a(N||M)},w,w.exports,r,i,o,s)}return o[g].exports}for(var l=typeof Cn=="function"&&Cn,d=0;d<s.length;d++)a(s[d]);return a}({1:[function(r,i,o){(function(s){"use strict";var a=s.MutationObserver||s.WebKitMutationObserver,l;if(a){var d=0,g=new a(M),f=s.document.createTextNode("");g.observe(f,{characterData:!0}),l=function(){f.data=d=++d%2}}else if(!s.setImmediate&&typeof s.MessageChannel<"u"){var E=new s.MessageChannel;E.port1.onmessage=M,l=function(){E.port2.postMessage(0)}}else"document"in s&&"onreadystatechange"in s.document.createElement("script")?l=function(){var k=s.document.createElement("script");k.onreadystatechange=function(){M(),k.onreadystatechange=null,k.parentNode.removeChild(k),k=null},s.document.documentElement.appendChild(k)}:l=function(){setTimeout(M,0)};var v,w=[];function M(){v=!0;for(var k,L,j=w.length;j;){for(L=w,w=[],k=-1;++k<j;)L[k]();j=w.length}v=!1}i.exports=N;function N(k){w.push(k)===1&&!v&&l()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(r,i,o){"use strict";var s=r(1);function a(){}var l={},d=["REJECTED"],g=["FULFILLED"],f=["PENDING"];i.exports=E;function E(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,D!==a&&N(this,D)}E.prototype.catch=function(D){return this.then(null,D)},E.prototype.then=function(D,G){if(typeof D!="function"&&this.state===g||typeof G!="function"&&this.state===d)return this;var B=new this.constructor(a);if(this.state!==f){var W=this.state===g?D:G;w(B,W,this.outcome)}else this.queue.push(new v(B,D,G));return B};function v(D,G,B){this.promise=D,typeof G=="function"&&(this.onFulfilled=G,this.callFulfilled=this.otherCallFulfilled),typeof B=="function"&&(this.onRejected=B,this.callRejected=this.otherCallRejected)}v.prototype.callFulfilled=function(D){l.resolve(this.promise,D)},v.prototype.otherCallFulfilled=function(D){w(this.promise,this.onFulfilled,D)},v.prototype.callRejected=function(D){l.reject(this.promise,D)},v.prototype.otherCallRejected=function(D){w(this.promise,this.onRejected,D)};function w(D,G,B){s(function(){var W;try{W=G(B)}catch(Q){return l.reject(D,Q)}W===D?l.reject(D,new TypeError("Cannot resolve promise with itself")):l.resolve(D,W)})}l.resolve=function(D,G){var B=k(M,G);if(B.status==="error")return l.reject(D,B.value);var W=B.value;if(W)N(D,W);else{D.state=g,D.outcome=G;for(var Q=-1,J=D.queue.length;++Q<J;)D.queue[Q].callFulfilled(G)}return D},l.reject=function(D,G){D.state=d,D.outcome=G;for(var B=-1,W=D.queue.length;++B<W;)D.queue[B].callRejected(G);return D};function M(D){var G=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof G=="function")return function(){G.apply(D,arguments)}}function N(D,G){var B=!1;function W(De){B||(B=!0,l.reject(D,De))}function Q(De){B||(B=!0,l.resolve(D,De))}function J(){G(Q,W)}var ae=k(J);ae.status==="error"&&W(ae.value)}function k(D,G){var B={};try{B.value=D(G),B.status="success"}catch(W){B.status="error",B.value=W}return B}E.resolve=L;function L(D){return D instanceof this?D:l.resolve(new this(a),D)}E.reject=j;function j(D){var G=new this(a);return l.reject(G,D)}E.all=Ie;function Ie(D){var G=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var B=D.length,W=!1;if(!B)return this.resolve([]);for(var Q=new Array(B),J=0,ae=-1,De=new this(a);++ae<B;)tt(D[ae],ae);return De;function tt(En,sr){G.resolve(En).then(gi,function($t){W||(W=!0,l.reject(De,$t))});function gi($t){Q[sr]=$t,++J===B&&!W&&(W=!0,l.resolve(De,Q))}}}E.race=we;function we(D){var G=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var B=D.length,W=!1;if(!B)return this.resolve([]);for(var Q=-1,J=new this(a);++Q<B;)ae(D[Q]);return J;function ae(De){G.resolve(De).then(function(tt){W||(W=!0,l.resolve(J,tt))},function(tt){W||(W=!0,l.reject(J,tt))})}}},{1:1}],3:[function(r,i,o){(function(s){"use strict";typeof s.Promise!="function"&&(s.Promise=r(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(r,i,o){"use strict";var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c};function a(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}function l(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var d=l();function g(){try{if(!d||!d.open)return!1;var c=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),h=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||h)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(c,h){c=c||[],h=h||{};try{return new Blob(c,h)}catch(p){if(p.name!=="TypeError")throw p;for(var u=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,m=new u,_=0;_<c.length;_+=1)m.append(c[_]);return m.getBlob(h.type)}}typeof Promise>"u"&&r(3);var E=Promise;function v(c,h){h&&c.then(function(u){h(null,u)},function(u){h(u)})}function w(c,h,u){typeof h=="function"&&c.then(h),typeof u=="function"&&c.catch(u)}function M(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function N(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var k="local-forage-detect-blob-support",L=void 0,j={},Ie=Object.prototype.toString,we="readonly",D="readwrite";function G(c){for(var h=c.length,u=new ArrayBuffer(h),m=new Uint8Array(u),_=0;_<h;_++)m[_]=c.charCodeAt(_);return u}function B(c){return new E(function(h){var u=c.transaction(k,D),m=f([""]);u.objectStore(k).put(m,"key"),u.onabort=function(_){_.preventDefault(),_.stopPropagation(),h(!1)},u.oncomplete=function(){var _=navigator.userAgent.match(/Chrome\/(\d+)/),p=navigator.userAgent.match(/Edge\//);h(p||!_||parseInt(_[1],10)>=43)}}).catch(function(){return!1})}function W(c){return typeof L=="boolean"?E.resolve(L):B(c).then(function(h){return L=h,L})}function Q(c){var h=j[c.name],u={};u.promise=new E(function(m,_){u.resolve=m,u.reject=_}),h.deferredOperations.push(u),h.dbReady?h.dbReady=h.dbReady.then(function(){return u.promise}):h.dbReady=u.promise}function J(c){var h=j[c.name],u=h.deferredOperations.pop();if(u)return u.resolve(),u.promise}function ae(c,h){var u=j[c.name],m=u.deferredOperations.pop();if(m)return m.reject(h),m.promise}function De(c,h){return new E(function(u,m){if(j[c.name]=j[c.name]||Us(),c.db)if(h)Q(c),c.db.close();else return u(c.db);var _=[c.name];h&&_.push(c.version);var p=d.open.apply(d,_);h&&(p.onupgradeneeded=function(b){var S=p.result;try{S.createObjectStore(c.storeName),b.oldVersion<=1&&S.createObjectStore(k)}catch(C){if(C.name==="ConstraintError")console.warn('The database "'+c.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+c.storeName+'" already exists.');else throw C}}),p.onerror=function(b){b.preventDefault(),m(p.error)},p.onsuccess=function(){var b=p.result;b.onversionchange=function(S){S.target.close()},u(b),J(c)}})}function tt(c){return De(c,!1)}function En(c){return De(c,!0)}function sr(c,h){if(!c.db)return!0;var u=!c.db.objectStoreNames.contains(c.storeName),m=c.version<c.db.version,_=c.version>c.db.version;if(m&&(c.version!==h&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),_||u){if(u){var p=c.db.version+1;p>c.version&&(c.version=p)}return!0}return!1}function gi(c){return new E(function(h,u){var m=new FileReader;m.onerror=u,m.onloadend=function(_){var p=btoa(_.target.result||"");h({__local_forage_encoded_blob:!0,data:p,type:c.type})},m.readAsBinaryString(c)})}function $t(c){var h=G(atob(c.data));return f([h],{type:c.type})}function Bs(c){return c&&c.__local_forage_encoded_blob}function Qu(c){var h=this,u=h._initReady().then(function(){var m=j[h._dbInfo.name];if(m&&m.dbReady)return m.dbReady});return w(u,c,c),u}function ed(c){Q(c);for(var h=j[c.name],u=h.forages,m=0;m<u.length;m++){var _=u[m];_._dbInfo.db&&(_._dbInfo.db.close(),_._dbInfo.db=null)}return c.db=null,tt(c).then(function(p){return c.db=p,sr(c)?En(c):p}).then(function(p){c.db=h.db=p;for(var b=0;b<u.length;b++)u[b]._dbInfo.db=p}).catch(function(p){throw ae(c,p),p})}function nt(c,h,u,m){m===void 0&&(m=1);try{var _=c.db.transaction(c.storeName,h);u(null,_)}catch(p){if(m>0&&(!c.db||p.name==="InvalidStateError"||p.name==="NotFoundError"))return E.resolve().then(function(){if(!c.db||p.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),En(c)}).then(function(){return ed(c).then(function(){nt(c,h,u,m-1)})}).catch(u);u(p)}}function Us(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function td(c){var h=this,u={db:null};if(c)for(var m in c)u[m]=c[m];var _=j[u.name];_||(_=Us(),j[u.name]=_),_.forages.push(h),h._initReady||(h._initReady=h.ready,h.ready=Qu);var p=[];function b(){return E.resolve()}for(var S=0;S<_.forages.length;S++){var C=_.forages[S];C!==h&&p.push(C._initReady().catch(b))}var T=_.forages.slice(0);return E.all(p).then(function(){return u.db=_.db,tt(u)}).then(function(I){return u.db=I,sr(u,h._defaultConfig.version)?En(u):I}).then(function(I){u.db=_.db=I,h._dbInfo=u;for(var R=0;R<T.length;R++){var H=T[R];H!==h&&(H._dbInfo.db=u.db,H._dbInfo.version=u.version)}})}function nd(c,h){var u=this;c=M(c);var m=new E(function(_,p){u.ready().then(function(){nt(u._dbInfo,we,function(b,S){if(b)return p(b);try{var C=S.objectStore(u._dbInfo.storeName),T=C.get(c);T.onsuccess=function(){var I=T.result;I===void 0&&(I=null),Bs(I)&&(I=$t(I)),_(I)},T.onerror=function(){p(T.error)}}catch(I){p(I)}})}).catch(p)});return v(m,h),m}function rd(c,h){var u=this,m=new E(function(_,p){u.ready().then(function(){nt(u._dbInfo,we,function(b,S){if(b)return p(b);try{var C=S.objectStore(u._dbInfo.storeName),T=C.openCursor(),I=1;T.onsuccess=function(){var R=T.result;if(R){var H=R.value;Bs(H)&&(H=$t(H));var $=c(H,R.key,I++);$!==void 0?_($):R.continue()}else _()},T.onerror=function(){p(T.error)}}catch(R){p(R)}})}).catch(p)});return v(m,h),m}function id(c,h,u){var m=this;c=M(c);var _=new E(function(p,b){var S;m.ready().then(function(){return S=m._dbInfo,Ie.call(h)==="[object Blob]"?W(S.db).then(function(C){return C?h:gi(h)}):h}).then(function(C){nt(m._dbInfo,D,function(T,I){if(T)return b(T);try{var R=I.objectStore(m._dbInfo.storeName);C===null&&(C=void 0);var H=R.put(C,c);I.oncomplete=function(){C===void 0&&(C=null),p(C)},I.onabort=I.onerror=function(){var $=H.error?H.error:H.transaction.error;b($)}}catch($){b($)}})}).catch(b)});return v(_,u),_}function od(c,h){var u=this;c=M(c);var m=new E(function(_,p){u.ready().then(function(){nt(u._dbInfo,D,function(b,S){if(b)return p(b);try{var C=S.objectStore(u._dbInfo.storeName),T=C.delete(c);S.oncomplete=function(){_()},S.onerror=function(){p(T.error)},S.onabort=function(){var I=T.error?T.error:T.transaction.error;p(I)}}catch(I){p(I)}})}).catch(p)});return v(m,h),m}function sd(c){var h=this,u=new E(function(m,_){h.ready().then(function(){nt(h._dbInfo,D,function(p,b){if(p)return _(p);try{var S=b.objectStore(h._dbInfo.storeName),C=S.clear();b.oncomplete=function(){m()},b.onabort=b.onerror=function(){var T=C.error?C.error:C.transaction.error;_(T)}}catch(T){_(T)}})}).catch(_)});return v(u,c),u}function ad(c){var h=this,u=new E(function(m,_){h.ready().then(function(){nt(h._dbInfo,we,function(p,b){if(p)return _(p);try{var S=b.objectStore(h._dbInfo.storeName),C=S.count();C.onsuccess=function(){m(C.result)},C.onerror=function(){_(C.error)}}catch(T){_(T)}})}).catch(_)});return v(u,c),u}function cd(c,h){var u=this,m=new E(function(_,p){if(c<0){_(null);return}u.ready().then(function(){nt(u._dbInfo,we,function(b,S){if(b)return p(b);try{var C=S.objectStore(u._dbInfo.storeName),T=!1,I=C.openKeyCursor();I.onsuccess=function(){var R=I.result;if(!R){_(null);return}c===0||T?_(R.key):(T=!0,R.advance(c))},I.onerror=function(){p(I.error)}}catch(R){p(R)}})}).catch(p)});return v(m,h),m}function ld(c){var h=this,u=new E(function(m,_){h.ready().then(function(){nt(h._dbInfo,we,function(p,b){if(p)return _(p);try{var S=b.objectStore(h._dbInfo.storeName),C=S.openKeyCursor(),T=[];C.onsuccess=function(){var I=C.result;if(!I){m(T);return}T.push(I.key),I.continue()},C.onerror=function(){_(C.error)}}catch(I){_(I)}})}).catch(_)});return v(u,c),u}function ud(c,h){h=N.apply(this,arguments);var u=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||u.name,c.storeName=c.storeName||u.storeName);var m=this,_;if(!c.name)_=E.reject("Invalid arguments");else{var p=c.name===u.name&&m._dbInfo.db,b=p?E.resolve(m._dbInfo.db):tt(c).then(function(S){var C=j[c.name],T=C.forages;C.db=S;for(var I=0;I<T.length;I++)T[I]._dbInfo.db=S;return S});c.storeName?_=b.then(function(S){if(S.objectStoreNames.contains(c.storeName)){var C=S.version+1;Q(c);var T=j[c.name],I=T.forages;S.close();for(var R=0;R<I.length;R++){var H=I[R];H._dbInfo.db=null,H._dbInfo.version=C}var $=new E(function(Y,te){var ee=d.open(c.name,C);ee.onerror=function(Ae){var Sn=ee.result;Sn.close(),te(Ae)},ee.onupgradeneeded=function(){var Ae=ee.result;Ae.deleteObjectStore(c.storeName)},ee.onsuccess=function(){var Ae=ee.result;Ae.close(),Y(Ae)}});return $.then(function(Y){T.db=Y;for(var te=0;te<I.length;te++){var ee=I[te];ee._dbInfo.db=Y,J(ee._dbInfo)}}).catch(function(Y){throw(ae(c,Y)||E.resolve()).catch(function(){}),Y})}}):_=b.then(function(S){Q(c);var C=j[c.name],T=C.forages;S.close();for(var I=0;I<T.length;I++){var R=T[I];R._dbInfo.db=null}var H=new E(function($,Y){var te=d.deleteDatabase(c.name);te.onerror=function(){var ee=te.result;ee&&ee.close(),Y(te.error)},te.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},te.onsuccess=function(){var ee=te.result;ee&&ee.close(),$(ee)}});return H.then(function($){C.db=$;for(var Y=0;Y<T.length;Y++){var te=T[Y];J(te._dbInfo)}}).catch(function($){throw(ae(c,$)||E.resolve()).catch(function(){}),$})})}return v(_,h),_}var dd={_driver:"asyncStorage",_initStorage:td,_support:g(),iterate:rd,getItem:nd,setItem:id,removeItem:od,clear:sd,length:ad,key:cd,keys:ld,dropInstance:ud};function fd(){return typeof openDatabase=="function"}var dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hd="~~local_forage_type~",Hs=/^~~local_forage_type~([^~]+)~/,ar="__lfsc__:",vi=ar.length,yi="arbf",Ei="blob",js="si08",Gs="ui08",Ws="uic8",$s="si16",Ys="si32",zs="ur16",Ks="ui32",Xs="fl32",qs="fl64",Js=vi+yi.length,Zs=Object.prototype.toString;function Qs(c){var h=c.length*.75,u=c.length,m,_=0,p,b,S,C;c[c.length-1]==="="&&(h--,c[c.length-2]==="="&&h--);var T=new ArrayBuffer(h),I=new Uint8Array(T);for(m=0;m<u;m+=4)p=dt.indexOf(c[m]),b=dt.indexOf(c[m+1]),S=dt.indexOf(c[m+2]),C=dt.indexOf(c[m+3]),I[_++]=p<<2|b>>4,I[_++]=(b&15)<<4|S>>2,I[_++]=(S&3)<<6|C&63;return T}function bi(c){var h=new Uint8Array(c),u="",m;for(m=0;m<h.length;m+=3)u+=dt[h[m]>>2],u+=dt[(h[m]&3)<<4|h[m+1]>>4],u+=dt[(h[m+1]&15)<<2|h[m+2]>>6],u+=dt[h[m+2]&63];return h.length%3===2?u=u.substring(0,u.length-1)+"=":h.length%3===1&&(u=u.substring(0,u.length-2)+"=="),u}function pd(c,h){var u="";if(c&&(u=Zs.call(c)),c&&(u==="[object ArrayBuffer]"||c.buffer&&Zs.call(c.buffer)==="[object ArrayBuffer]")){var m,_=ar;c instanceof ArrayBuffer?(m=c,_+=yi):(m=c.buffer,u==="[object Int8Array]"?_+=js:u==="[object Uint8Array]"?_+=Gs:u==="[object Uint8ClampedArray]"?_+=Ws:u==="[object Int16Array]"?_+=$s:u==="[object Uint16Array]"?_+=zs:u==="[object Int32Array]"?_+=Ys:u==="[object Uint32Array]"?_+=Ks:u==="[object Float32Array]"?_+=Xs:u==="[object Float64Array]"?_+=qs:h(new Error("Failed to get type for BinaryArray"))),h(_+bi(m))}else if(u==="[object Blob]"){var p=new FileReader;p.onload=function(){var b=hd+c.type+"~"+bi(this.result);h(ar+Ei+b)},p.readAsArrayBuffer(c)}else try{h(JSON.stringify(c))}catch(b){console.error("Couldn't convert value into a JSON string: ",c),h(null,b)}}function md(c){if(c.substring(0,vi)!==ar)return JSON.parse(c);var h=c.substring(Js),u=c.substring(vi,Js),m;if(u===Ei&&Hs.test(h)){var _=h.match(Hs);m=_[1],h=h.substring(_[0].length)}var p=Qs(h);switch(u){case yi:return p;case Ei:return f([p],{type:m});case js:return new Int8Array(p);case Gs:return new Uint8Array(p);case Ws:return new Uint8ClampedArray(p);case $s:return new Int16Array(p);case zs:return new Uint16Array(p);case Ys:return new Int32Array(p);case Ks:return new Uint32Array(p);case Xs:return new Float32Array(p);case qs:return new Float64Array(p);default:throw new Error("Unkown type: "+u)}}var Si={serialize:pd,deserialize:md,stringToBuffer:Qs,bufferToString:bi};function ea(c,h,u,m){c.executeSql("CREATE TABLE IF NOT EXISTS "+h.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],u,m)}function _d(c){var h=this,u={db:null};if(c)for(var m in c)u[m]=typeof c[m]!="string"?c[m].toString():c[m];var _=new E(function(p,b){try{u.db=openDatabase(u.name,String(u.version),u.description,u.size)}catch(S){return b(S)}u.db.transaction(function(S){ea(S,u,function(){h._dbInfo=u,p()},function(C,T){b(T)})},b)});return u.serializer=Si,_}function ft(c,h,u,m,_,p){c.executeSql(u,m,_,function(b,S){S.code===S.SYNTAX_ERR?b.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[h.storeName],function(C,T){T.rows.length?p(C,S):ea(C,h,function(){C.executeSql(u,m,_,p)},p)},p):p(b,S)},p)}function gd(c,h){var u=this;c=M(c);var m=new E(function(_,p){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){ft(S,b,"SELECT * FROM "+b.storeName+" WHERE key = ? LIMIT 1",[c],function(C,T){var I=T.rows.length?T.rows.item(0).value:null;I&&(I=b.serializer.deserialize(I)),_(I)},function(C,T){p(T)})})}).catch(p)});return v(m,h),m}function vd(c,h){var u=this,m=new E(function(_,p){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){ft(S,b,"SELECT * FROM "+b.storeName,[],function(C,T){for(var I=T.rows,R=I.length,H=0;H<R;H++){var $=I.item(H),Y=$.value;if(Y&&(Y=b.serializer.deserialize(Y)),Y=c(Y,$.key,H+1),Y!==void 0){_(Y);return}}_()},function(C,T){p(T)})})}).catch(p)});return v(m,h),m}function ta(c,h,u,m){var _=this;c=M(c);var p=new E(function(b,S){_.ready().then(function(){h===void 0&&(h=null);var C=h,T=_._dbInfo;T.serializer.serialize(h,function(I,R){R?S(R):T.db.transaction(function(H){ft(H,T,"INSERT OR REPLACE INTO "+T.storeName+" (key, value) VALUES (?, ?)",[c,I],function(){b(C)},function($,Y){S(Y)})},function(H){if(H.code===H.QUOTA_ERR){if(m>0){b(ta.apply(_,[c,C,u,m-1]));return}S(H)}})})}).catch(S)});return v(p,u),p}function yd(c,h,u){return ta.apply(this,[c,h,u,1])}function Ed(c,h){var u=this;c=M(c);var m=new E(function(_,p){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){ft(S,b,"DELETE FROM "+b.storeName+" WHERE key = ?",[c],function(){_()},function(C,T){p(T)})})}).catch(p)});return v(m,h),m}function bd(c){var h=this,u=new E(function(m,_){h.ready().then(function(){var p=h._dbInfo;p.db.transaction(function(b){ft(b,p,"DELETE FROM "+p.storeName,[],function(){m()},function(S,C){_(C)})})}).catch(_)});return v(u,c),u}function Sd(c){var h=this,u=new E(function(m,_){h.ready().then(function(){var p=h._dbInfo;p.db.transaction(function(b){ft(b,p,"SELECT COUNT(key) as c FROM "+p.storeName,[],function(S,C){var T=C.rows.item(0).c;m(T)},function(S,C){_(C)})})}).catch(_)});return v(u,c),u}function Cd(c,h){var u=this,m=new E(function(_,p){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){ft(S,b,"SELECT key FROM "+b.storeName+" WHERE id = ? LIMIT 1",[c+1],function(C,T){var I=T.rows.length?T.rows.item(0).key:null;_(I)},function(C,T){p(T)})})}).catch(p)});return v(m,h),m}function Td(c){var h=this,u=new E(function(m,_){h.ready().then(function(){var p=h._dbInfo;p.db.transaction(function(b){ft(b,p,"SELECT key FROM "+p.storeName,[],function(S,C){for(var T=[],I=0;I<C.rows.length;I++)T.push(C.rows.item(I).key);m(T)},function(S,C){_(C)})})}).catch(_)});return v(u,c),u}function Id(c){return new E(function(h,u){c.transaction(function(m){m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(_,p){for(var b=[],S=0;S<p.rows.length;S++)b.push(p.rows.item(S).name);h({db:c,storeNames:b})},function(_,p){u(p)})},function(m){u(m)})})}function wd(c,h){h=N.apply(this,arguments);var u=this.config();c=typeof c!="function"&&c||{},c.name||(c.name=c.name||u.name,c.storeName=c.storeName||u.storeName);var m=this,_;return c.name?_=new E(function(p){var b;c.name===u.name?b=m._dbInfo.db:b=openDatabase(c.name,"","",0),c.storeName?p({db:b,storeNames:[c.storeName]}):p(Id(b))}).then(function(p){return new E(function(b,S){p.db.transaction(function(C){function T($){return new E(function(Y,te){C.executeSql("DROP TABLE IF EXISTS "+$,[],function(){Y()},function(ee,Ae){te(Ae)})})}for(var I=[],R=0,H=p.storeNames.length;R<H;R++)I.push(T(p.storeNames[R]));E.all(I).then(function(){b()}).catch(function($){S($)})},function(C){S(C)})})}):_=E.reject("Invalid arguments"),v(_,h),_}var Dd={_driver:"webSQLStorage",_initStorage:_d,_support:fd(),iterate:vd,getItem:gd,setItem:yd,removeItem:Ed,clear:bd,length:Sd,key:Cd,keys:Td,dropInstance:wd};function Ad(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function na(c,h){var u=c.name+"/";return c.storeName!==h.storeName&&(u+=c.storeName+"/"),u}function Od(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch{return!0}}function xd(){return!Od()||localStorage.length>0}function Rd(c){var h=this,u={};if(c)for(var m in c)u[m]=c[m];return u.keyPrefix=na(c,h._defaultConfig),xd()?(h._dbInfo=u,u.serializer=Si,E.resolve()):E.reject()}function Nd(c){var h=this,u=h.ready().then(function(){for(var m=h._dbInfo.keyPrefix,_=localStorage.length-1;_>=0;_--){var p=localStorage.key(_);p.indexOf(m)===0&&localStorage.removeItem(p)}});return v(u,c),u}function Md(c,h){var u=this;c=M(c);var m=u.ready().then(function(){var _=u._dbInfo,p=localStorage.getItem(_.keyPrefix+c);return p&&(p=_.serializer.deserialize(p)),p});return v(m,h),m}function Pd(c,h){var u=this,m=u.ready().then(function(){for(var _=u._dbInfo,p=_.keyPrefix,b=p.length,S=localStorage.length,C=1,T=0;T<S;T++){var I=localStorage.key(T);if(I.indexOf(p)===0){var R=localStorage.getItem(I);if(R&&(R=_.serializer.deserialize(R)),R=c(R,I.substring(b),C++),R!==void 0)return R}}});return v(m,h),m}function Ld(c,h){var u=this,m=u.ready().then(function(){var _=u._dbInfo,p;try{p=localStorage.key(c)}catch{p=null}return p&&(p=p.substring(_.keyPrefix.length)),p});return v(m,h),m}function kd(c){var h=this,u=h.ready().then(function(){for(var m=h._dbInfo,_=localStorage.length,p=[],b=0;b<_;b++){var S=localStorage.key(b);S.indexOf(m.keyPrefix)===0&&p.push(S.substring(m.keyPrefix.length))}return p});return v(u,c),u}function Fd(c){var h=this,u=h.keys().then(function(m){return m.length});return v(u,c),u}function Vd(c,h){var u=this;c=M(c);var m=u.ready().then(function(){var _=u._dbInfo;localStorage.removeItem(_.keyPrefix+c)});return v(m,h),m}function Bd(c,h,u){var m=this;c=M(c);var _=m.ready().then(function(){h===void 0&&(h=null);var p=h;return new E(function(b,S){var C=m._dbInfo;C.serializer.serialize(h,function(T,I){if(I)S(I);else try{localStorage.setItem(C.keyPrefix+c,T),b(p)}catch(R){(R.name==="QuotaExceededError"||R.name==="NS_ERROR_DOM_QUOTA_REACHED")&&S(R),S(R)}})})});return v(_,u),_}function Ud(c,h){if(h=N.apply(this,arguments),c=typeof c!="function"&&c||{},!c.name){var u=this.config();c.name=c.name||u.name,c.storeName=c.storeName||u.storeName}var m=this,_;return c.name?_=new E(function(p){c.storeName?p(na(c,m._defaultConfig)):p(c.name+"/")}).then(function(p){for(var b=localStorage.length-1;b>=0;b--){var S=localStorage.key(b);S.indexOf(p)===0&&localStorage.removeItem(S)}}):_=E.reject("Invalid arguments"),v(_,h),_}var Hd={_driver:"localStorageWrapper",_initStorage:Rd,_support:Ad(),iterate:Pd,getItem:Md,setItem:Bd,removeItem:Vd,clear:Nd,length:Fd,key:Ld,keys:kd,dropInstance:Ud},jd=function(h,u){return h===u||typeof h=="number"&&typeof u=="number"&&isNaN(h)&&isNaN(u)},Gd=function(h,u){for(var m=h.length,_=0;_<m;){if(jd(h[_],u))return!0;_++}return!1},ra=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},bn={},ia={},Yt={INDEXEDDB:dd,WEBSQL:Dd,LOCALSTORAGE:Hd},Wd=[Yt.INDEXEDDB._driver,Yt.WEBSQL._driver,Yt.LOCALSTORAGE._driver],cr=["dropInstance"],Ci=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(cr),$d={description:"",driver:Wd.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Yd(c,h){c[h]=function(){var u=arguments;return c.ready().then(function(){return c[h].apply(c,u)})}}function Ti(){for(var c=1;c<arguments.length;c++){var h=arguments[c];if(h)for(var u in h)h.hasOwnProperty(u)&&(ra(h[u])?arguments[0][u]=h[u].slice():arguments[0][u]=h[u])}return arguments[0]}var zd=function(){function c(h){a(this,c);for(var u in Yt)if(Yt.hasOwnProperty(u)){var m=Yt[u],_=m._driver;this[u]=_,bn[_]||this.defineDriver(m)}this._defaultConfig=Ti({},$d),this._config=Ti({},this._defaultConfig,h),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return c.prototype.config=function(u){if((typeof u>"u"?"undefined":s(u))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var m in u){if(m==="storeName"&&(u[m]=u[m].replace(/\W/g,"_")),m==="version"&&typeof u[m]!="number")return new Error("Database version must be a number.");this._config[m]=u[m]}return"driver"in u&&u.driver?this.setDriver(this._config.driver):!0}else return typeof u=="string"?this._config[u]:this._config},c.prototype.defineDriver=function(u,m,_){var p=new E(function(b,S){try{var C=u._driver,T=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!u._driver){S(T);return}for(var I=Ci.concat("_initStorage"),R=0,H=I.length;R<H;R++){var $=I[R],Y=!Gd(cr,$);if((Y||u[$])&&typeof u[$]!="function"){S(T);return}}var te=function(){for(var Sn=function(qd){return function(){var Jd=new Error("Method "+qd+" is not implemented by the current driver"),oa=E.reject(Jd);return v(oa,arguments[arguments.length-1]),oa}},Ii=0,Xd=cr.length;Ii<Xd;Ii++){var wi=cr[Ii];u[wi]||(u[wi]=Sn(wi))}};te();var ee=function(Sn){bn[C]&&console.info("Redefining LocalForage driver: "+C),bn[C]=u,ia[C]=Sn,b()};"_support"in u?u._support&&typeof u._support=="function"?u._support().then(ee,S):ee(!!u._support):ee(!0)}catch(Ae){S(Ae)}});return w(p,m,_),p},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(u,m,_){var p=bn[u]?E.resolve(bn[u]):E.reject(new Error("Driver not found."));return w(p,m,_),p},c.prototype.getSerializer=function(u){var m=E.resolve(Si);return w(m,u),m},c.prototype.ready=function(u){var m=this,_=m._driverSet.then(function(){return m._ready===null&&(m._ready=m._initDriver()),m._ready});return w(_,u,u),_},c.prototype.setDriver=function(u,m,_){var p=this;ra(u)||(u=[u]);var b=this._getSupportedDrivers(u);function S(){p._config.driver=p.driver()}function C(R){return p._extend(R),S(),p._ready=p._initStorage(p._config),p._ready}function T(R){return function(){var H=0;function $(){for(;H<R.length;){var Y=R[H];return H++,p._dbInfo=null,p._ready=null,p.getDriver(Y).then(C).catch($)}S();var te=new Error("No available storage method found.");return p._driverSet=E.reject(te),p._driverSet}return $()}}var I=this._driverSet!==null?this._driverSet.catch(function(){return E.resolve()}):E.resolve();return this._driverSet=I.then(function(){var R=b[0];return p._dbInfo=null,p._ready=null,p.getDriver(R).then(function(H){p._driver=H._driver,S(),p._wrapLibraryMethodsWithReady(),p._initDriver=T(b)})}).catch(function(){S();var R=new Error("No available storage method found.");return p._driverSet=E.reject(R),p._driverSet}),w(this._driverSet,m,_),this._driverSet},c.prototype.supports=function(u){return!!ia[u]},c.prototype._extend=function(u){Ti(this,u)},c.prototype._getSupportedDrivers=function(u){for(var m=[],_=0,p=u.length;_<p;_++){var b=u[_];this.supports(b)&&m.push(b)}return m},c.prototype._wrapLibraryMethodsWithReady=function(){for(var u=0,m=Ci.length;u<m;u++)Yd(this,Ci[u])},c.prototype.createInstance=function(u){return new c(u)},c}(),Kd=new zd;i.exports=Kd},{3:3}]},{},[4])(4)})});var oc=Di((Gi,Wi)=>{"use strict";(function(t,e){typeof Gi=="object"&&typeof Wi<"u"?Wi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.fetchRetry=e())})(Gi,function(){"use strict";var t=function(r,i){if(i=i||{},typeof r!="function")throw new n("fetch must be a function");if(typeof i!="object")throw new n("defaults must be an object");if(i.retries!==void 0&&!e(i.retries))throw new n("retries must be a positive integer");if(i.retryDelay!==void 0&&!e(i.retryDelay)&&typeof i.retryDelay!="function")throw new n("retryDelay must be a positive integer or a function returning a positive integer");if(i.retryOn!==void 0&&!Array.isArray(i.retryOn)&&typeof i.retryOn!="function")throw new n("retryOn property expects an array or function");var o={retries:3,retryDelay:1e3,retryOn:[]};return i=Object.assign(o,i),function(a,l){var d=i.retries,g=i.retryDelay,f=i.retryOn;if(l&&l.retries!==void 0)if(e(l.retries))d=l.retries;else throw new n("retries must be a positive integer");if(l&&l.retryDelay!==void 0)if(e(l.retryDelay)||typeof l.retryDelay=="function")g=l.retryDelay;else throw new n("retryDelay must be a positive integer or a function returning a positive integer");if(l&&l.retryOn)if(Array.isArray(l.retryOn)||typeof l.retryOn=="function")f=l.retryOn;else throw new n("retryOn property expects an array or function");return new Promise(function(E,v){var w=function(N){var k=typeof Request<"u"&&a instanceof Request?a.clone():a;r(k,l).then(function(L){if(Array.isArray(f)&&f.indexOf(L.status)===-1)E(L);else if(typeof f=="function")try{return Promise.resolve(f(N,null,L)).then(function(j){j?M(N,null,L):E(L)}).catch(v)}catch(j){v(j)}else N<d?M(N,null,L):E(L)}).catch(function(L){if(typeof f=="function")try{Promise.resolve(f(N,L,null)).then(function(j){j?M(N,L,null):v(L)}).catch(function(j){v(j)})}catch(j){v(j)}else N<d?M(N,L,null):v(L)})};function M(N,k,L){var j=typeof g=="function"?g(N,k,L):g;setTimeout(function(){w(++N)},j)}w(0)})}};function e(r){return Number.isInteger(r)&&r>=0}function n(r){this.name="ArgumentError",this.message=r}return t})});var Ga="11.0.0-rc.0";var A=class A{};O(A,"SDK_VERSION",Ga),O(A,"SDK_VERSION_CODE"),O(A,"SDK","WEB"),O(A,"LOG_PREFIX","CooeeSDK"),O(A,"COOEE","cooee"),O(A,"SESSION_STORAGE_SCROLL_ID","sleid"),O(A,"IDLE_TIME_IN_SECONDS",30*60),O(A,"IN_APP_WRAPPER_NAME","cooee-wrapper"),O(A,"IN_APP_CONTAINER_NAME","cooee-container"),O(A,"IN_APP_DEFAULT_PADDING",15),O(A,"EVENT_SCREEN_VIEW","CE Screen View"),O(A,"EVENT_APP_BACKGROUND","CE App Background"),O(A,"EVENT_TRIGGER_DISPLAYED","CE Trigger Displayed"),O(A,"EVENT_CAMPAIGN_HOLDOUT","CE Campaign Holdout"),O(A,"EVENT_CAMPAIGN_REJECTED","CE Campaign Rejected"),O(A,"EVENT_CAMPAIGN_FAILED","CE Campaign Failed"),O(A,"EVENT_TRIGGER_CLOSED","CE Trigger Closed"),O(A,"EVENT_SCROLL","CE Scroll"),O(A,"EVENT_TRIGGER_CLICKED","CE Trigger Clicked"),O(A,"EVENT_FORM_SUBMITTED","CE Form Submitted"),O(A,"EVENT_EXPERIMENT_START","CE Experiment Start"),O(A,"EVENT_VIDEO_DIALOG_CLOSED","CE Video Dialog Closed"),O(A,"EVENT_VIDEO_DIALOG_OPENED","CE Video Dialog Opened"),O(A,"EVENT_VIDEO_CHANGE","CE Video Changed"),O(A,"EVENT_LAST_VIDEO_ENDED","CE Last Video Ended"),O(A,"EVENT_VIDEO_MUTED","CE Video Muted"),O(A,"EVENT_VIDEO_UNMUTED","CE Video Unmuted"),O(A,"EVENT_ADD_TO_CART_CLICKED","CE Add To Cart Clicked"),O(A,"EVENT_VIEW_ITEM_CLICKED","CE View Item Clicked"),O(A,"EVENT_MORE_ITEM_INFO_CLICKED","CE More Item Info Clicked"),O(A,"EVENT_OPEN_CART_CLICKED","CE Open Cart Clicked"),O(A,"EVENT_ADD_TO_CART","Add To Cart"),O(A,"EVENT_REMOVE_FROM_CART","Remove From Cart"),O(A,"EVENT_VIEW_ITEM","View Item"),O(A,"EVENT_VIEW_CART","View Cart"),O(A,"EVENT_OPEN_CART","Open Cart"),O(A,"EVENT_VIEW_COLLECTION","View Collection"),O(A,"EVENT_BUY_NOW_CLICKED","Buy Now Clicked"),O(A,"EVENT_CHECKOUT_STARTED","Checkout Started"),O(A,"EVENT_REVIEW_CLICKED","Review Clicked"),O(A,"EVENT_ITEM_THUMBNAIL_CLICKED","Item Thumbnail Clicked"),O(A,"JS_LOAD_WHITELIST_EVENTS",[A.EVENT_VIEW_ITEM,A.EVENT_VIEW_CART,A.EVENT_VIEW_COLLECTION]),O(A,"HASH_INITIATE_CHECKOUT","initiate-checkout"),O(A,"HASH_OPEN_CART_DRAWER","open-cart-drawer"),O(A,"ADD_BUNDLE_CTA_INBOUND_EVENT","letscooee:inbound:cta:add-bundle"),O(A,"CTA_OPEN_CART_EVENT","letscooee:outbound:open-cart"),O(A,"CTA_AFTER_REFRESH_UI","letscooee:outbound:refresh-ui"),O(A,"POPUP_ACTIVITY_EVENT","letscooee:outbound:popup-activities"),O(A,"THIRD_PARTY_CHECKOUT_EVENT","letscooee:outbound:third-party-initiate-checkout"),O(A,"CAMPAIGN_DISPLAYED_ACTIVITY","DISPLAYED"),O(A,"CAMPAIGN_CLICKED_ACTIVITY","CLICKED"),O(A,"CAMPAIGN_CLOSED_ACTIVITY","CLOSED"),O(A,"BLACKLISTED_PAGE_NAMES",["collection","product","cart"]),O(A,"PLACEHOLDER_IMAGE","https://cdn.global.letscooee.com/images/placeholders/product.png"),O(A,"SHADOW_SPLITTER",":shadow"),O(A,"CAMPAIGN_ATTRIBUTE","_letscooee_campaign"),O(A,"CONTENT_ATTRIBUTE","_letscooee_content"),O(A,"VIA","_via"),O(A,"PAYMENT_MODAL_DETAILS",[{identifier:"#flo-checkout-wrapper",gateway:"Shopflow"},{identifier:"#fastrr-main-container",gateway:"Shiprocket"},{identifier:"#gokwik-modal-wrapper",gateway:"Gokwik"},{identifier:"#zecpe",gateway:"Ecom 360"}]),(()=>{let e=A.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");A.SDK_VERSION_CODE=parseInt(e,10)})();var Ye=A;var Lt={apiURL:"https://api.sdk.letscooee.com",debug:!1,mode:"production",styleURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${Ye.SDK_VERSION}/dist/widget.min.css`,widgetURL:`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${Ye.SDK_VERSION}/dist/widget.min.js`};var be=Ai($a());var Be=class{static debuggerEl;static infoLogs=[];static log(...e){be.default.info(...e)}static verbose(...e){be.default.debug(...e)}static error(...e){be.default.error(...e)}static warn(...e){be.default.warn(...e)}static info(...e){be.default.info(...e),this.infoLogs.unshift({time:new Date,message:e.join(" ")}),this.addToDebugger()}static trace(...e){be.default.trace(...e)}static addToDebugger(){sessionStorage.cooeeDebug&&(this.debuggerEl=this.debuggerEl??document.querySelector("cooee-debugger"),this.debuggerEl&&this.debuggerEl&&(this.debuggerEl.logs=[...this.infoLogs]))}};function T_(t=Ye.LOG_PREFIX){be.default.useDefaults({formatter:function(n){n.unshift(`${t} (v${Ye.SDK_VERSION}):`)}});let e=Qd();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?be.default.setLevel(be.default[localStorage.cooeeLogLevel]):be.default.setLevel(Lt.debug?be.default.TRACE:be.default.OFF)}function Qd(){return new URL(location.href).searchParams?.get("cooee-debug")}var vt=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;skipItemAttribute;currency;static get(){return window.CooeeSDK.config}update(e){return e??={},this.gaEnabled=e.gaEnabled,this.gaMeasurementID=e.gaMeasurementID,this.pixelPush=e.pixelPush,this.website=e.website??{},this.currencyCount=e.currencyCount??0,this.money=e.money,this.currency=e.currency,this.storefrontToken=e.storefrontToken,this.skipItemAttribute=e.skipItemAttribute,this}};var Ya=0,za="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css";function ef(t=document.head){Ka(za,t)}function Ka(t,e=document.head){if(!t)return;let n=document.createElement("link");n.rel="stylesheet",n.href=t,t===za&&(n.crossOrigin="anonymous",n.onload=r=>{let o=r.currentTarget?.sheet?.cssRules;if(o){for(let s of o)if(s.type==CSSRule.FONT_FACE_RULE){let a=t.split("/"),l=a.slice(0,a.length-1).join("/"),d=s.cssText;d=d.replace(/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g,`url("${l}/$4")`);let g=document.createElement("style");g.appendChild(document.createTextNode(d)),document.head.appendChild(g)}}}),e.appendChild(n)}function Fi(t,e=document.head){if(!t)return;Ya++;let n=document.createElement("style");n.id=`cooee-app-css-${Ya}`,n.textContent=t,e.appendChild(n)}async function Xa(){window.CooeeSDK.Swiper||(window.CooeeSDK.Swiper=(await import("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.mjs")).Swiper)}function qa(t,e=!0){if(!t)return;e&&ef(t),Ka(Lt.styleURL,t);let n=vt.get().website.commonCSS;Fi(n,t)}var nf={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},X_=U(y({},nf),{"[class.ng-submitted]":"isSubmitted"});var rf=new ke("",{providedIn:"root",factory:()=>Qa}),Qa="always";var of=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Dt({type:t});static \u0275inj=Tt({})}return t})();var ec=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:rf,useValue:n.callSetDisabledState??Qa}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Dt({type:t});static \u0275inj=Tt({imports:[of]})}return t})();var gr=class t{cooeeEvent=new Re;cooeeCTA=new Re;elementRef=P(xe);hasSwiper=!1;_engagementTrigger=ht(null);_triggerContext=ht(null);constructor(){this.elementRef.nativeElement.update=this.update.bind(this)}get classes(){let e=["letscooee-widget"],n=this._engagementTrigger();return e.push(`widget-${n?.shortID}`),e}get triggerContext(){return this._triggerContext()}set triggerContext(e){this._triggerContext.set(e),this._engagementTrigger.set(e.triggerData),this.engagementTriggerReceived(e.triggerData)}get engagementTrigger(){return this._engagementTrigger()}ngOnInit(){Be.verbose("Init",this.constructor.name);let e=this.elementRef.nativeElement.shadowRoot;e&&qa(e,this.hasSwiper)}ngOnDestroy(){Be.verbose("Destroying",this.constructor.name)}sendEventToRenderer(e){this.cooeeEvent.emit(e)}executeCTAViaRenderer(e){this.cooeeCTA.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ce({type:t,selectors:[["ng-component"]],hostVars:2,hostBindings:function(n,r){n&2&&fr(r.classes)},inputs:{triggerContext:"triggerContext"},outputs:{cooeeEvent:"cooeeEvent",cooeeCTA:"cooeeCTA"},decls:1,vars:0,template:function(n,r){n&1&&Sa(0)},encapsulation:2})};var sf=(t,e)=>({"--option-color":t,"background-color":e}),nc=(t,e)=>e.id;function af(t,e){if(t&1&&(Ot(0,"span",6),Ee(1),qt()),t&2){Ne();let n=_t(0);z(),Zt(n)}}function cf(t,e){if(t&1){let n=Jt();Rt(0),Ot(1,"button",5),Li("click",function(){let i=It(n).$implicit,o=Ne().$implicit,s=Ne();return wt(s.onOptionChange(o,i))}),je(2,af,2,1,"span",6),qt()}if(t&2){let n=e.$implicit,r=Ne().$implicit,i=_t(1),o=n.name,s=Nt(n.displayName||n.name),a=i?n.hexColor??o:"",l=Ne().selectedOptions()[r.name]===o;z(),Dn("color-type",i)("selected",l)("disabled",n.disabled),ya("title",s)("ngStyle",xa(14,sf,a,a)),Xt("aria-checked",l?"true":"false")("data-value",o)("aria-disabled",n.disabled?"true":null)("aria-label",s),z(),Ge(i?-1:2)}}function lf(t,e){if(t&1&&(Ot(0,"div"),Rt(1),Ot(2,"div",1),Ee(3),qt(),Ot(4,"div",2),Ee(5),qt(),Ot(6,"div",3),Mi(7,cf,3,17,"button",4,nc),qt()()),t&2){let n=e.$implicit,r=Ne();fr(Oa("option-group ",n.name.toLowerCase())),z(),Nt(r.hasHexColors(n)),z(2),Qt("",n.name,":"),z(2),Zt(r.selectedOptions()[n.name]),z(),Xt("aria-label",n.name),z(),Pi(n.optionValues)}}var Mn=t=>t.trim().toLowerCase(),tc=class t extends gr{selectedVariant=new Re;item=We.required();selectedOptions=ht({});options=Mt(()=>{let e=this.item();if(!e.options||e.vars.length===1)return[];if(window.cooeeManipulateProduct)try{window.cooeeManipulateProduct(e,this.engagementTrigger)}catch(n){Be.error(n)}return e.options.forEach(n=>{n.optionValues.forEach(r=>{r.disabled=this.isOptionValueDisabledFast(n,r)})}),e.options});matchedVariant=Mt(()=>{let e=this.item(),n=this.selectedOptions();return e.vars.find(r=>e.options.every(i=>{let o=r.selectedOptions.find(s=>s.name===i.name)?.value;return n[i.name]===o}))});availabilityIndex=Mt(()=>{let e=this.item(),n=new Map;return e?.vars?.length&&e.vars.forEach((r,i)=>{if(r.isAvailable)for(let o of r.selectedOptions){let s=Mn(o.name),a=o.value,l=n.get(s);l||n.set(s,l=new Map);let d=l.get(a);d||l.set(a,d=new Set),d.add(i)}}),n});constructor(){super(),Pt(()=>{let n=this.matchedVariant();n&&(this.item().setSelectedVariant(n),this.selectedVariant.emit(n))});let e=Pt(()=>{let n=this.item();if(!n?.options)return;let r=y({},this.selectedOptions()),i=n.vars.find(o=>o.isAvailable)??n.vars[0];n.options.forEach(o=>{let s=i?.selectedOptions.find(a=>a.name===o.name)?.value;s&&(r[o.name]=s)}),this.selectedOptions.set(r),e.destroy()})}ngOnInit(){super.ngOnInit();let e=this.elementRef.nativeElement.shadowRoot;if(!e)return;let n=vt.get().website?.itemSwatchMapping;n&&Fi(n,e)}onOptionChange(e,n){let r=y({},this.selectedOptions());r[e.name]=n.name,this.selectedOptions.set(r)}engagementTriggerReceived(){}update(){}hasHexColors(e){return!!e.optionValues[0]?.name.match(/#[a-f0-9]{6}\b/i)}getCandidateVariantsExcluding(e){let n=this.item(),r=this.availabilityIndex(),i=new Set;n.vars.forEach((s,a)=>{s.isAvailable&&i.add(a)});let o=i;for(let[s,a]of Object.entries(this.selectedOptions())){if(Mn(s)===Mn(e))continue;let l=r.get(Mn(s));if(!l)return new Set;let d=l.get(String(a));if(!d)return new Set;if(o=new Set([...o].filter(g=>d.has(g))),o.size===0)return o}return o}isOptionValueDisabledFast(e,n){let i=this.availabilityIndex().get(Mn(e.name));if(!i)return!0;let o=n.name,s=i.get(o);if(!s||s.size===0)return!0;let a=this.getCandidateVariantsExcluding(e.name);if(a.size===0)return!0;for(let l of a)if(s.has(l))return!1;return!0}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ce({type:t,selectors:[["cooee-item-options-picker"]],inputs:{item:[1,"item"]},outputs:{selectedVariant:"selectedVariant"},features:[At],decls:2,vars:0,consts:[[3,"class"],[1,"name"],[1,"selected-value"],["role","radiogroup",1,"option-values"],["type","button","role","radio",1,"option-value",3,"color-type","selected","disabled","title","ngStyle"],["type","button","role","radio",1,"option-value",3,"click","title","ngStyle"],[1,"title"]],template:function(n,r){n&1&&Mi(0,lf,9,7,"div",0,nc),n&2&&Pi(r.options())},dependencies:[La,Pa,ec],styles:[`.option-group{display:flex;gap:4px;align-items:center}.option-group+.option-group{margin-top:8px}.option-values{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:6px;gap:4px;scrollbar-gutter:stable both-edges;scrollbar-width:none}.option-values::-webkit-scrollbar{display:none}.selected-value{display:none}.option-value{padding:5px 10px;border:1px solid #ccc;cursor:pointer;border-radius:4px;min-width:32px;min-height:32px;text-align:center;position:relative;flex-shrink:0;--selected-color: var(--option-color, rgb(var(--lc-color-button, 0 0 0)))}.option-value.selected{box-shadow:#fff 0 0 0 2px,var(--selected-color) 0 0 0 4px}.option-value.disabled{opacity:.5;pointer-events:none}
2
+ `],encapsulation:3})};var uf=function(t){return t.SHOPIFY_CHECKOUT="shopify_checkout",t.THIRD_PARTY_CHECKOUT="third_party_checkout",t.CART_PAGE="cart_page",t.CART_DRAWER="cart_drawer",t}(uf||{});var df=function(t){return t[t.NONE=0]="NONE",t[t.REJECT_POPUP=1]="REJECT_POPUP",t[t.ACCEPT_POPUP=2]="ACCEPT_POPUP",t[t.GO_TO_URL=4]="GO_TO_URL",t[t.SHARE=5]="SHARE",t[t.KEY_VALUE=100]="KEY_VALUE",t[t.GO_TO_PRODUCT=101]="GO_TO_PRODUCT",t[t.ADD_TO_CART=102]="ADD_TO_CART",t[t.COPY_COUPON_CODE=103]="COPY_COUPON_CODE",t[t.GO_TO_COLLECTION=104]="GO_TO_COLLECTION",t[t.OPEN_CART=105]="OPEN_CART",t[t.SUBMIT_FORM=106]="SUBMIT_FORM",t[t.INITIATE_CHECKOUT=107]="INITIATE_CHECKOUT",t[t.ADD_BUNDLE=108]="ADD_BUNDLE",t[t.UPGRADE_TO_SUBSCRIPTION=109]="UPGRADE_TO_SUBSCRIPTION",t}(df||{});var ff=function(t){return t.FREE_SHIPPING="FREE_SHIPPING",t.DISCOUNT="DISCOUNT",t.FREE_AUTO_GIFT="FREE_AUTO_GIFT",t.FREE_GIFT_SELECT="FREE_GIFT_SELECT",t.UI_ONLY="UI_ONLY",t}(ff||{});var Vi=class{static ID="id";static SESSION_LANDING_PAGE="landing";static SESSION_LAST_USED_TIME="lastUsedTime";static SESSION_SYNCED="synced";static APP_CONFIG="conf";static DEVICE_ID="did";static SDK_TOKEN="token";static FIRST_SEEN="firstSeen";static SESSION_NUMBER="sessionNumber";static GA_CLIENT_ID="gacid";static CURRENT_CART="cart";static MUTED="muted"};var Ui=Ai(ic());function vr(t){return Ui.default.createInstance({name:"lc",storeName:t,driver:Ui.default.LOCALSTORAGE})}var en=class{static storage;static async get(e,n){return await this.storage?.getItem(e)??n}static set(e,n){return this.storage?.setItem(e,n)}static remove(e){return this.storage?.removeItem(e)}static clear(){return this.storage?.clear()}static getForage(){return this.storage}};var Pn=class Pn extends en{};O(Pn,"storeName","usr"),Pn.storage=vr(Pn.storeName);var Hi=Pn;var Ln=class Ln extends en{};O(Ln,"storeName","ses"),Ln.storage=vr(Ln.storeName);var ji=Ln;var sc=Ai(oc());var Pg=(0,sc.default)(fetch);var yr=class extends Error{request;response;status;requestBody;responseText;constructor(e="Failed to fetch"){super(e),this.name="FetchError",Object.setPrototypeOf(this,new.target.prototype)}is40x(){return!!this.response&&this.response.status>=400&&this.response.status<500}};var F=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var V=globalThis;var ze="9.42.0";function kt(){return Ft(V),V}function Ft(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||ze,e[ze]=e[ze]||{}}function it(t,e,n=V){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[ze]=r[ze]||{};return i[t]||(i[t]=e())}var $i=["debug","info","warn","error","log","assert","trace"],hf="Sentry Logger ",tn={};function yt(t){if(!("console"in V))return t();let e=V.console,n={},r=Object.keys(tn);r.forEach(i=>{let o=tn[i];n[i]=e[i],e[i]=o});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function pf(){zi().enabled=!0}function mf(){zi().enabled=!1}function ac(){return zi().enabled}function _f(...t){Yi("log",...t)}function gf(...t){Yi("warn",...t)}function vf(...t){Yi("error",...t)}function Yi(t,...e){F&&ac()&&yt(()=>{V.console[t](`${hf}[${t}]:`,...e)})}function zi(){return F?it("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var x={enable:pf,disable:mf,isEnabled:ac,log:_f,warn:gf,error:vf};var Ke="?",cc=/\(error: (.*)\)/,lc=/captureMessage|captureException/;function Xi(...t){let e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{let o=[],s=n.split(`
3
+ `);for(let a=r;a<s.length;a++){let l=s[a];if(l.length>1024)continue;let d=cc.test(l)?l.replace(cc,"$1"):l;if(!d.match(/\S*Error: /)){for(let g of e){let f=g(d);if(f){o.push(f);break}}if(o.length>=50+i)break}}return uc(o.slice(i))}}function uc(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(Er(e).function||"")&&e.pop(),e.reverse(),lc.test(Er(e).function||"")&&(e.pop(),lc.test(Er(e).function||"")&&e.pop()),e.slice(0,50).map(n=>U(y({},n),{filename:n.filename||Er(e).filename,function:n.function||Ke}))}function Er(t){return t[t.length-1]||{}}var Ki="<anonymous>";function Me(t){try{return!t||typeof t!="function"?Ki:t.name||Ki}catch{return Ki}}function br(t){let e=t.exception;if(e){let n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var Sr={},dc={};function fe(t,e){Sr[t]=Sr[t]||[],Sr[t].push(e)}function he(t,e){if(!dc[t]){dc[t]=!0;try{e()}catch(n){F&&x.error(`Error while instrumenting ${t}`,n)}}}function ne(t,e){let n=t&&Sr[t];if(n)for(let r of n)try{r(e)}catch(i){F&&x.error(`Error while triggering instrumentation handler.
4
+ Type: ${t}
5
+ Name: ${Me(r)}
6
+ Error:`,i)}}var qi=null;function Ji(t){let e="error";fe(e,t),he(e,yf)}function yf(){qi=V.onerror,V.onerror=function(t,e,n,r,i){return ne("error",{column:r,error:i,line:n,msg:t,url:e}),qi?qi.apply(this,arguments):!1},V.onerror.__SENTRY_INSTRUMENTED__=!0}var Zi=null;function Qi(t){let e="unhandledrejection";fe(e,t),he(e,Ef)}function Ef(){Zi=V.onunhandledrejection,V.onunhandledrejection=function(t){return ne("unhandledrejection",t),Zi?Zi.apply(this,arguments):!0},V.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var fc=Object.prototype.toString;function Vt(t){switch(fc.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ue(t,Error)}}function nn(t,e){return fc.call(t)===`[object ${e}]`}function Cr(t){return nn(t,"ErrorEvent")}function Tr(t){return nn(t,"DOMError")}function eo(t){return nn(t,"DOMException")}function pe(t){return nn(t,"String")}function rn(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Bt(t){return t===null||rn(t)||typeof t!="object"&&typeof t!="function"}function ot(t){return nn(t,"Object")}function Ut(t){return typeof Event<"u"&&Ue(t,Event)}function to(t){return typeof Element<"u"&&Ue(t,Element)}function no(t){return nn(t,"RegExp")}function st(t){return!!(t?.then&&typeof t.then=="function")}function ro(t){return ot(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Ue(t,e){try{return t instanceof e}catch{return!1}}function kn(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function hc(t){return typeof Request<"u"&&Ue(t,Request)}var io=V,bf=80;function Fn(t,e={}){if(!t)return"<unknown>";try{let n=t,r=5,i=[],o=0,s=0,a=" > ",l=a.length,d,g=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||bf;for(;n&&o++<r&&(d=Sf(n,g),!(d==="html"||o>1&&s+i.length*l+d.length>=f));)i.push(d),s+=d.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function Sf(t,e){let n=t,r=[];if(!n?.tagName)return"";if(io.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let i=e?.length?e.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(i?.length)i.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&pe(s)){let a=s.split(/\s+/);for(let l of a)r.push(`.${l}`)}}let o=["aria-label","type","name","title","alt"];for(let s of o){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function Vn(){try{return io.document.location.href}catch{return""}}function oo(t){if(!io.HTMLElement)return null;let e=t,n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function Et(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Ir(t,e){if(!Array.isArray(t))return"";let n=[];for(let r=0;r<t.length;r++){let i=t[r];try{kn(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function pc(t,e,n=!1){return pe(t)?no(e)?e.test(t):pe(e)?n?t===e:t.includes(e):!1:!1}function on(t,e=[],n=!1){return e.some(r=>pc(t,r,n))}function re(t,e,n){if(!(e in t))return;let r=t[e];if(typeof r!="function")return;let i=n(r);typeof i=="function"&&wr(i,r);try{t[e]=i}catch{F&&x.log(`Failed to replace method "${e}" in object`,t)}}function Ce(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{F&&x.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function wr(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,Ce(t,"__sentry_original__",e)}catch{}}function Ht(t){return t.__sentry_original__}function Dr(t){if(Vt(t))return y({message:t.message,name:t.name,stack:t.stack},_c(t));if(Ut(t)){let e=y({type:t.type,target:mc(t.target),currentTarget:mc(t.currentTarget)},_c(t));return typeof CustomEvent<"u"&&Ue(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function mc(t){try{return to(t)?Fn(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function _c(t){if(typeof t=="object"&&t!==null){let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function so(t,e=40){let n=Object.keys(Dr(t));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return Et(r,e);for(let i=n.length;i>0;i--){let o=n.slice(0,i).join(", ");if(!(o.length>e))return i===n.length?o:Et(o,e)}return""}function Cf(){let t=V;return t.crypto||t.msCrypto}function ie(t=Cf()){let e=()=>Math.random()*16;try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(e=()=>{let n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(e()&15)>>n/4).toString(16))}function gc(t){return t.exception?.values?.[0]}function Xe(t){let{message:e,event_id:n}=t;if(e)return e;let r=gc(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function sn(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function qe(t,e){let n=gc(t);if(!n)return;let r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism=y(y(y({},r),i),e),e&&"data"in e){let o=y(y({},i?.data),e.data);n.mechanism.data=o}}function Ar(t){if(Tf(t))return!0;try{Ce(t,"__sentry_captured__",!0)}catch{}return!1}function Tf(t){try{return t.__sentry_captured__}catch{}}var yc=1e3;function Je(){return Date.now()/yc}function If(){let{performance:t}=V;if(!t?.now||!t.timeOrigin)return Je;let e=t.timeOrigin;return()=>(e+t.now())/yc}var vc;function ye(){return(vc??(vc=If()))()}function Ec(t){let e=ye(),n={sid:ie(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>wf(n)};return t&&at(n,t),n}function at(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||ye(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:ie()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function bc(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),at(t,n)}function wf(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function bt(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;let r=y({},t);for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=bt(r[i],e[i],n-1));return r}function ao(){return ie()}function Or(){return ie().substring(16)}var co="_sentrySpan";function lo(t,e){e?Ce(t,co,e):delete t[co]}function uo(t){return t[co]}var Df=100,de=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:ao(),sampleRand:Math.random()}}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags=y({},this._tags),e._extra=y({},this._extra),e._contexts=y({},this._contexts),this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata=y({},this._sdkProcessingMetadata),e._propagationContext=y({},this._propagationContext),e._client=this._client,e._lastEventId=this._lastEventId,lo(e,uo(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&at(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags=y(y({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,n){return this._tags=U(y({},this._tags),{[e]:n}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=y(y({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,n){return this._extra=U(y({},this._extra),{[e]:n}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let n=typeof e=="function"?e(this):e,r=n instanceof t?n.getScopeData():ot(n)?e:void 0,{tags:i,extra:o,user:s,contexts:a,level:l,fingerprint:d=[],propagationContext:g}=r||{};return this._tags=y(y({},this._tags),i),this._extra=y(y({},this._extra),o),this._contexts=y(y({},this._contexts),a),s&&Object.keys(s).length&&(this._user=s),l&&(this._level=l),d.length&&(this._fingerprint=d),g&&(this._propagationContext=g),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,lo(this,void 0),this._attachments=[],this.setPropagationContext({traceId:ao(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:Df;if(r<=0)return this;let i=U(y({timestamp:Je()},e),{message:e.message?Et(e.message,2048):e.message});return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:uo(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=bt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){let r=n?.event_id||ie();if(!this._client)return F&&x.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(e,U(y({originalException:e,syntheticException:i},n),{event_id:r}),this),r}captureMessage(e,n,r){let i=r?.event_id||ie();if(!this._client)return F&&x.warn("No client configured on scope - will not capture message!"),i;let o=new Error(e);return this._client.captureMessage(e,n,U(y({originalException:e,syntheticException:o},r),{event_id:i}),this),i}captureEvent(e,n){let r=n?.event_id||ie();return this._client?(this._client.captureEvent(e,U(y({},n),{event_id:r}),this),r):(F&&x.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}};function Sc(){return it("defaultCurrentScope",()=>new de)}function Cc(){return it("defaultIsolationScope",()=>new de)}var fo=class{constructor(e,n){let r;e?r=e:r=new de;let i;n?i=n:i=new de,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){let n=this._pushScope(),r;try{r=e(n)}catch(i){throw this._popScope(),i}return st(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function an(){let t=kt(),e=Ft(t);return e.stack=e.stack||new fo(Sc(),Cc())}function Af(t){return an().withScope(t)}function Of(t,e){let n=an();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Tc(t){return an().withScope(()=>t(an().getIsolationScope()))}function Ic(){return{withIsolationScope:Tc,withScope:Af,withSetScope:Of,withSetIsolationScope:(t,e)=>Tc(e),getCurrentScope:()=>an().getScope(),getIsolationScope:()=>an().getIsolationScope()}}function xr(t){let e=Ft(t);return e.acs?e.acs:Ic()}function Ze(){let t=kt();return xr(t).getCurrentScope()}function Qe(){let t=kt();return xr(t).getIsolationScope()}function Rr(){return it("globalScope",()=>new de)}function Bn(...t){let e=kt(),n=xr(e);if(t.length===2){let[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function q(){return Ze().getClient()}function ho(t){let e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=e,o={trace_id:n,span_id:i||Or()};return r&&(o.parent_span_id=r),o}var Nr="sentry.source",po="sentry.sample_rate",wc="sentry.previous_trace_sample_rate",mo="sentry.op",_o="sentry.origin";var go="sentry.profile_id",vo="sentry.exclusive_time";var xf="_sentryScope",Rf="_sentryIsolationScope";function Mr(t){return{scope:t[xf],isolationScope:t[Rf]}}var Nf="sentry-",Mf=/^sentry-/;function Ac(t){let e=Pf(t);if(!e)return;let n=Object.entries(e).reduce((r,[i,o])=>{if(i.match(Mf)){let s=i.slice(Nf.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function Pf(t){if(!(!t||!pe(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=Dc(n);return Object.entries(r).forEach(([i,o])=>{e[i]=o}),e},{}):Dc(t)}function Dc(t){return t.split(",").map(e=>e.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function Oc(t){if(typeof t=="boolean")return Number(t);let e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}var Mc=1,xc=!1;function yo(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:cn(t).parent_span_id,o=Mr(t).scope,s=r?o?.getPropagationContext().propagationSpanId||Or():e;return{parent_span_id:i,span_id:s,trace_id:n}}function Lf(t){if(t&&t.length>0)return t.map(s=>{var a=s,{context:l}=a,d=l,{spanId:e,traceId:n,traceFlags:r}=d,i=sa(d,["spanId","traceId","traceFlags"]),{attributes:o}=a;return y({span_id:e,trace_id:n,sampled:r===Mc,attributes:o},i)})}function Rc(t){return typeof t=="number"?Nc(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Nc(t.getTime()):ye()}function Nc(t){return t>9999999999?t/1e3:t}function cn(t){if(Ff(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(kf(t)){let{attributes:r,startTime:i,name:o,endTime:s,status:a,links:l}=t,d="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0;return{span_id:e,trace_id:n,data:r,description:o,parent_span_id:d,start_timestamp:Rc(i),timestamp:Rc(s)||void 0,status:Vf(a),op:r[mo],origin:r[_o],links:Lf(l)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function kf(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function Ff(t){return typeof t.getSpanJSON=="function"}function Pc(t){let{traceFlags:e}=t.spanContext();return e===Mc}function Vf(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"unknown_error"}var Bf="_sentryRootSpan";function Un(t){return t[Bf]||t}function Eo(){xc||(yt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),xc=!0)}function Lc(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=t||q()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}var ln="production";var Uf=/^o(\d+)\./,Hf=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function jf(t){return t==="http"||t==="https"}function St(t,e=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=t;return`${a}://${l}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function Gf(t){let e=Hf.exec(t);if(!e){yt(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",o="",s="",a=""]=e.slice(1),l="",d=a,g=d.split("/");if(g.length>1&&(l=g.slice(0,-1).join("/"),d=g.pop()),d){let f=d.match(/^\d+/);f&&(d=f[0])}return kc({host:o,pass:i,path:l,projectId:d,port:s,protocol:n,publicKey:r})}function kc(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Wf(t){if(!F)return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(x.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?jf(r)?e&&isNaN(parseInt(e,10))?(x.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(x.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(x.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Fc(t){return t.match(Uf)?.[1]}function Vc(t){let e=typeof t=="string"?Gf(t):kc(t);if(!(!e||!Wf(e)))return e}var $f="_frozenDsc";function Bc(t,e){let n=e.getOptions(),{publicKey:r,host:i}=e.getDsn()||{},o;n.orgId?o=String(n.orgId):i&&(o=Fc(i));let s={environment:n.environment||ln,release:n.release,public_key:r,trace_id:t,org_id:o};return e.emit("createDsc",s),s}function Uc(t,e){let n=e.getPropagationContext();return n.dsc||Bc(n.traceId,t)}function bo(t){let e=q();if(!e)return{};let n=Un(t),r=cn(n),i=r.data,o=n.spanContext().traceState,s=o?.get("sentry.sample_rate")??i[po]??i[wc];function a(w){return(typeof s=="number"||typeof s=="string")&&(w.sample_rate=`${s}`),w}let l=n[$f];if(l)return a(l);let d=o?.get("sentry.dsc"),g=d&&Ac(d);if(g)return a(g);let f=Bc(t.spanContext().traceId,e),E=i[Nr],v=r.description;return E!=="url"&&v&&(f.transaction=v),Lc()&&(f.sampled=String(Pc(n)),f.sample_rand=o?.get("sentry.sample_rand")??Mr(n).scope?.getPropagationContext().sampleRand.toString()),a(f),e.emit("createDsc",f,n),f}function Pe(t,e=100,n=1/0){try{return So("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Pr(t,e=3,n=100*1024){let r=Pe(t,e);return Xf(r)>n?Pr(t,e-1,n):r}function So(t,e,n=1/0,r=1/0,i=qf()){let[o,s]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let a=Yf(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;let l=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(l===0)return a.replace("object ","");if(o(e))return"[Circular ~]";let d=e;if(d&&typeof d.toJSON=="function")try{let v=d.toJSON();return So("",v,l-1,r,i)}catch{}let g=Array.isArray(e)?[]:{},f=0,E=Dr(e);for(let v in E){if(!Object.prototype.hasOwnProperty.call(E,v))continue;if(f>=r){g[v]="[MaxProperties ~]";break}let w=E[v];g[v]=So(v,w,l-1,r,i),f++}return s(e),g}function Yf(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(kn(e))return"[VueViewModel]";if(ro(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Me(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let n=zf(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function zf(t){let e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function Kf(t){return~-encodeURI(t).split(/%..|./).length}function Xf(t){return Kf(JSON.stringify(t))}function qf(){let t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function ct(t,e=[]){return[t,e]}function Hc(t,e){let[n,r]=t;return[n,[...r,e]]}function To(t,e){let n=t[1];for(let r of n){let i=r[0].type;if(e(r,i))return!0}return!1}function Co(t){let e=Ft(V);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function jc(t){let[e,n]=t,r=JSON.stringify(e);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[Co(r),o]:r.push(typeof o=="string"?Co(o):o)}for(let o of n){let[s,a]=o;if(i(`
7
+ ${JSON.stringify(s)}
8
+ `),typeof a=="string"||a instanceof Uint8Array)i(a);else{let l;try{l=JSON.stringify(a)}catch{l=JSON.stringify(Pe(a))}i(l)}}return typeof r=="string"?r:Jf(r)}function Jf(t){let e=t.reduce((i,o)=>i+o.length,0),n=new Uint8Array(e),r=0;for(let i of t)n.set(i,r),r+=i.length;return n}function Gc(t){let e=typeof t.data=="string"?Co(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}var Zf={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function Io(t){return Zf[t]}function wo(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function Wc(t,e,n,r){let i=t.sdkProcessingMetadata?.dynamicSamplingContext;return y(y(y({event_id:t.event_id,sent_at:new Date().toISOString()},e&&{sdk:e}),!!n&&r&&{dsn:St(r)}),i&&{trace:i})}function Qf(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function $c(t,e,n,r){let i=wo(n),o=y(y({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&e&&{dsn:St(e)}),s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ct(o,[s])}function Yc(t,e,n,r){let i=wo(n),o=t.type&&t.type!=="replay_event"?t.type:"event";Qf(t,n?.sdk);let s=Wc(t,i,r,e);return delete t.sdkProcessingMetadata,ct(s,[[{type:o},t]])}var Do=0,zc=1,Kc=2;function Le(t){return new He(e=>{e(t)})}function Ct(t){return new He((e,n)=>{n(t)})}var He=class t{constructor(e){this._state=Do,this._handlers=[],this._runExecutor(e)}then(e,n){return new t((r,i)=>{this._handlers.push([!1,o=>{if(!e)r(o);else try{r(e(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new t((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,e&&e()},s=>{o=!0,i=s,e&&e()}).then(()=>{if(o){r(i);return}n(i)})})}_executeHandlers(){if(this._state===Do)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===zc&&n[1](this._value),this._state===Kc&&n[2](this._value),n[0]=!0)})}_runExecutor(e){let n=(o,s)=>{if(this._state===Do){if(st(s)){s.then(r,i);return}this._state=o,this._value=s,this._executeHandlers()}},r=o=>{n(zc,o)},i=o=>{n(Kc,o)};try{e(r,i)}catch(o){i(o)}}};function Lr(t,e,n,r=0){return new He((i,o)=>{let s=t[r];if(e===null||typeof s!="function")i(e);else{let a=s(y({},e),n);F&&s.id&&a===null&&x.log(`Event processor "${s.id}" dropped event`),st(a)?a.then(l=>Lr(t,l,n,r+1).then(i)).then(null,o):Lr(t,a,n,r+1).then(i).then(null,o)}})}function Xc(t,e){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;eh(t,e),r&&rh(t,r),ih(t,n),th(t,i),nh(t,o)}function Ao(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:d,eventProcessors:g,attachments:f,propagationContext:E,transactionName:v,span:w}=e;kr(t,"extra",n),kr(t,"tags",r),kr(t,"user",i),kr(t,"contexts",o),t.sdkProcessingMetadata=bt(t.sdkProcessingMetadata,a,2),s&&(t.level=s),v&&(t.transactionName=v),w&&(t.span=w),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),g.length&&(t.eventProcessors=[...t.eventProcessors,...g]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext=y(y({},t.propagationContext),E)}function kr(t,e,n){t[e]=bt(t[e],n,1)}function eh(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,transactionName:a}=e;Object.keys(n).length&&(t.extra=y(y({},n),t.extra)),Object.keys(r).length&&(t.tags=y(y({},r),t.tags)),Object.keys(i).length&&(t.user=y(y({},i),t.user)),Object.keys(o).length&&(t.contexts=y(y({},o),t.contexts)),s&&(t.level=s),a&&t.type!=="transaction"&&(t.transaction=a)}function th(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function nh(t,e){t.sdkProcessingMetadata=y(y({},t.sdkProcessingMetadata),e)}function rh(t,e){t.contexts=y({trace:yo(e)},t.contexts),t.sdkProcessingMetadata=y({dynamicSamplingContext:bo(e)},t.sdkProcessingMetadata);let n=Un(e),r=cn(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function ih(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}var Fr,qc,Vr;function Jc(t){let e=V._sentryDebugIds;if(!e)return{};let n=Object.keys(e);return Vr&&n.length===qc||(qc=n.length,Vr=n.reduce((r,i)=>{Fr||(Fr={});let o=Fr[i];if(o)r[o[0]]=o[1];else{let s=t(i);for(let a=s.length-1;a>=0;a--){let d=s[a]?.filename,g=e[i];if(d&&g){r[d]=g,Fr[i]=[d,g];break}}}return r},{})),Vr}function Zc(t,e,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,l=U(y({},e),{event_id:e.event_id||n.event_id||ie(),timestamp:e.timestamp||Je()}),d=n.integrations||t.integrations.map(N=>N.name);oh(l,t),ch(l,d),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&sh(l,t.stackParser);let g=uh(r,n.captureContext);n.mechanism&&qe(l,n.mechanism);let f=i?i.getEventProcessors():[],E=Rr().getScopeData();if(o){let N=o.getScopeData();Ao(E,N)}if(g){let N=g.getScopeData();Ao(E,N)}let v=[...n.attachments||[],...E.attachments];v.length&&(n.attachments=v),Xc(l,E);let w=[...f,...E.eventProcessors];return Lr(w,l,n).then(N=>(N&&ah(N),typeof s=="number"&&s>0?lh(N,s,a):N))}function oh(t,e){let{environment:n,release:r,dist:i,maxValueLength:o=250}=e;t.environment=t.environment||n||ln,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let s=t.request;s?.url&&(s.url=Et(s.url,o))}function sh(t,e){let n=Jc(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function ah(t){let e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];let n=t.debug_meta.images;Object.entries(e).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function ch(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function lh(t,e,n){if(!t)return null;let r=y(y(y(y(y({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>y(y({},i),i.data&&{data:Pe(i.data,e,n)}))}),t.user&&{user:Pe(t.user,e,n)}),t.contexts&&{contexts:Pe(t.contexts,e,n)}),t.extra&&{extra:Pe(t.extra,e,n)});return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Pe(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>y(y({},i),i.data&&{data:Pe(i.data,e,n)}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=Pe(t.contexts.flags,3,n)),r}function uh(t,e){if(!e)return t;let n=t?t.clone():new de;return n.update(e),n}function Qc(t){if(t)return dh(t)?{captureContext:t}:hh(t)?{captureContext:t}:t}function dh(t){return t instanceof de||typeof t=="function"}var fh=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function hh(t){return Object.keys(t).some(e=>fh.includes(e))}function Br(t,e){return Ze().captureException(t,Qc(e))}function Hn(t,e){return Ze().captureEvent(t,e)}function jn(t){let e=Qe(),n=Ze(),{userAgent:r}=V.navigator||{},i=Ec(y(y({user:n.getUser()||e.getUser()},r&&{userAgent:r}),t)),o=e.getSession();return o?.status==="ok"&&at(o,{status:"exited"}),Ur(),e.setSession(i),i}function Ur(){let t=Qe(),n=Ze().getSession()||t.getSession();n&&bc(n),tl(),t.setSession()}function tl(){let t=Qe(),e=q(),n=t.getSession();n&&e&&e.captureSession(n)}function Gn(t=!1){if(t){Ur();return}tl()}var ph="7";function mh(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function _h(t){return`${mh(t)}${t.projectId}/envelope/`}function gh(t,e){let n={sentry_version:ph};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function nl(t,e,n){return e||`${_h(t)}?${gh(t,n)}`}var rl=[];function il(t,e){let n={};return e.forEach(r=>{r&&xo(t,r,n)}),n}function Oo(t,e){for(let n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function xo(t,e,n){if(n[e.name]){F&&x.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,rl.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),rl.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){let r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,o)=>r(i,o,t))}if(typeof e.processEvent=="function"){let r=e.processEvent.bind(e),i=Object.assign((o,s)=>r(o,s,t),{id:e.name});t.addEventProcessor(i)}F&&x.log(`Integration installed: ${e.name}`)}function ol(t,e,n){let r=[{type:"client_report"},{timestamp:n||Je(),discarded_events:t}];return ct(e?{dsn:e}:{},[r])}function Hr(t){let e=[];t.message&&e.push(t.message);try{let n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function sl(t){let{trace_id:e,parent_span_id:n,span_id:r,status:i,origin:o,data:s,op:a}=t.contexts?.trace??{};return{data:s??{},description:t.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:i,timestamp:t.timestamp,trace_id:e??"",origin:o,profile_id:s?.[go],exclusive_time:s?.[vo],measurements:t.measurements,is_segment:!0}}function al(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:y(y(y({},t.data),t.profile_id&&{[go]:t.profile_id}),t.exclusive_time&&{[vo]:t.exclusive_time})}},measurements:t.measurements}}var cl="Not capturing exception because it's already been captured.",ll="Discarded session because of missing or non-string release",fl=Symbol.for("SentryInternalError"),hl=Symbol.for("SentryDoNotSendEventError");function jr(t){return{message:t,[fl]:!0}}function Ro(t){return{message:t,[hl]:!0}}function ul(t){return!!t&&typeof t=="object"&&fl in t}function dl(t){return!!t&&typeof t=="object"&&hl in t}var Wn=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Vc(e.dsn):F&&x.warn("No DSN provided, client will not send events."),this._dsn){let n=nl(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(U(y({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:n}))}}captureException(e,n,r){let i=ie();if(Ar(e))return F&&x.log(cl),i;let o=y({event_id:i},n);return this._process(this.eventFromException(e,o).then(s=>this._captureEvent(s,o,r))),o.event_id}captureMessage(e,n,r,i){let o=y({event_id:ie()},r),s=rn(e)?e:String(e),a=Bt(e)?this.eventFromMessage(s,n,o):this.eventFromException(e,o);return this._process(a.then(l=>this._captureEvent(l,o,i))),o.event_id}captureEvent(e,n,r){let i=ie();if(n?.originalException&&Ar(n.originalException))return F&&x.log(cl),i;let o=y({event_id:i},n),s=e.sdkProcessingMetadata||{},a=s.capturedSpanScope,l=s.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,a||r,l)),o.event_id}captureSession(e){this.sendSession(e),at(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(i=>r&&i))):Le(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let n=this._integrations[e.name];xo(this,e,this._integrations),n||Oo(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=Yc(e,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=Hc(r,Gc(o));let i=this.sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",e,o),null)}sendSession(e){let{release:n,environment:r=ln}=this._options;if("aggregates"in e){let o=e.attrs||{};if(!o.release&&!n){F&&x.warn(ll);return}o.release=o.release||n,o.environment=o.environment||r,e.attrs=o}else{if(!e.release&&!n){F&&x.warn(ll);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);let i=$c(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){let i=`${e}:${n}`;F&&x.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,n){let r=this._hooks[e]=this._hooks[e]||[];return r.push(n),()=>{let i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(e,...n){let r=this._hooks[e];r&&r.forEach(i=>i(...n))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,n=>(F&&x.error("Error while sending envelope:",n),n)):(F&&x.error("Transport disabled"),Le({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=il(this,e),Oo(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",i=!1,o=n.exception?.values;if(o){i=!0;for(let l of o)if(l.mechanism?.handled===!1){r=!0;break}}let s=e.status==="ok";(s&&e.errors===0||s&&r)&&(at(e,U(y({},r&&{status:"crashed"}),{errors:e.errors||Number(i||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new He(n=>{let r=0,i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,e&&r>=e&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,i){let o=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s?.length&&(n.integrations=s),this.emit("preprocessEvent",e,n),e.type||i.setLastEventId(e.event_id||n.event_id),Zc(o,e,n,r,this,i).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts=y({trace:ho(r)},a.contexts);let l=Uc(this,r);return a.sdkProcessingMetadata=y({dynamicSamplingContext:l},a.sdkProcessingMetadata),a})}_captureEvent(e,n={},r=Ze(),i=Qe()){return F&&No(e)&&x.log(`Captured error event \`${Hr(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,i).then(o=>o.event_id,o=>{F&&(dl(o)?x.log(o.message):ul(o)?x.warn(o.message):x.warn(o))})}_processEvent(e,n,r,i){let o=this.getOptions(),{sampleRate:s}=o,a=pl(e),l=No(e),d=e.type||"error",g=`before send for type \`${d}\``,f=typeof s>"u"?void 0:Oc(s);if(l&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Ct(Ro(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let E=d==="replay_event"?"replay":d;return this._prepareEvent(e,n,r,i).then(v=>{if(v===null)throw this.recordDroppedEvent("event_processor",E),Ro("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return v;let M=Eh(this,o,v,n);return yh(M,g)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",E),a){let k=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",k)}throw Ro(`${g} returned \`null\`, will not send event.`)}let w=r.getSession()||i.getSession();if(l&&w&&this._updateSessionFromEvent(w,v),a){let N=v.sdkProcessingMetadata?.spanCountBeforeProcessing||0,k=v.spans?v.spans.length:0,L=N-k;L>0&&this.recordDroppedEvent("before_send","span",L)}let M=v.transaction_info;if(a&&M&&v.transaction!==e.transaction){let N="custom";v.transaction_info=U(y({},M),{source:N})}return this.sendEvent(v,n),v}).then(null,v=>{throw dl(v)||ul(v)?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),jr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
9
+ Reason: ${v}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{let[i,o]=n.split(":");return{reason:i,category:o,quantity:r}})}_flushOutcomes(){F&&x.log("Flushing outcomes...");let e=this._clearOutcomes();if(e.length===0){F&&x.log("No outcomes to send");return}if(!this._dsn){F&&x.log("No dsn provided, will not send outcomes");return}F&&x.log("Sending outcomes:",e);let n=ol(e,this._options.tunnel&&St(this._dsn));this.sendEnvelope(n)}};function yh(t,e){let n=`${e} must return \`null\` or a valid event.`;if(st(t))return t.then(r=>{if(!ot(r)&&r!==null)throw jr(n);return r},r=>{throw jr(`${e} rejected with ${r}`)});if(!ot(t)&&t!==null)throw jr(n);return t}function Eh(t,e,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=e,a=n;if(No(a)&&i)return i(a,r);if(pl(a)){if(s){let l=s(sl(a));if(l?a=bt(n,al(l)):Eo(),a.spans){let d=[];for(let g of a.spans){let f=s(g);f?d.push(f):(Eo(),d.push(g))}a.spans=d}}if(o){if(a.spans){let l=a.spans.length;a.sdkProcessingMetadata=U(y({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:l})}return o(a,r)}}return a}function No(t){return t.type===void 0}function pl(t){return t.type==="transaction"}function bh(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function ml(t,e,n,r){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=St(r)),ct(i,[bh(t)])}function $n(t,e){let n=e??Sh(t)??[];if(n.length===0)return;let r=t.getOptions(),i=ml(n,r._metadata,r.tunnel,t.getDsn());_l().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(i)}function Sh(t){return _l().get(t)}function _l(){return it("clientToLogBufferMap",()=>new WeakMap)}var Mo=Symbol.for("SentryBufferFullError");function gl(t){let e=[];function n(){return t===void 0||e.length<t}function r(s){return e.splice(e.indexOf(s),1)[0]||Promise.resolve(void 0)}function i(s){if(!n())return Ct(Mo);let a=s();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new He((a,l)=>{let d=e.length;if(!d)return a(!0);let g=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(f=>{Le(f).then(()=>{--d||(clearTimeout(g),a(!0))},l)})})}return{$:e,add:i,drain:o}}function Ch(t,e=Date.now()){let n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${t}`);return isNaN(r)?6e4:r-e}function Th(t,e){return t[e]||t.all||0}function vl(t,e,n=Date.now()){return Th(t,e)>n}function yl(t,{statusCode:e,headers:n},r=Date.now()){let i=y({},t),o=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(o)for(let a of o.trim().split(",")){let[l,d,,,g]=a.split(":",5),f=parseInt(l,10),E=(isNaN(f)?60:f)*1e3;if(!d)i.all=r+E;else for(let v of d.split(";"))v==="metric_bucket"?(!g||g.split(";").includes("custom"))&&(i[v]=r+E):i[v]=r+E}else s?i.all=r+Ch(s,r):e===429&&(i.all=r+60*1e3);return i}var Ih=64;function Gr(t,e,n=gl(t.bufferSize||Ih)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(To(s,(f,E)=>{let v=Io(E);vl(r,v)?t.recordDroppedEvent("ratelimit_backoff",v):a.push(f)}),a.length===0)return Le({});let l=ct(s[0],a),d=f=>{To(l,(E,v)=>{t.recordDroppedEvent(f,Io(v))})},g=()=>e({body:jc(l)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&F&&x.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=yl(r,f),f),f=>{throw d("network_error"),F&&x.error("Encountered error running transport request:",f),f});return n.add(g).then(f=>f,f=>{if(f===Mo)return F&&x.error("Skipped sending event because buffer is full."),d("queue_overflow"),Le({});throw f})}return{send:o,flush:i}}function Po(t){t.user?.ip_address===void 0&&(t.user=U(y({},t.user),{ip_address:"{{auto}}"}))}function Lo(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs=U(y({},t.attrs),{ip_address:"{{auto}}"})):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function ko(t,e,n=[e],r="npm"){let i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:ze})),version:ze}),t._metadata=i}var wh=100;function et(t,e){let n=q(),r=Qe();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=wh}=n.getOptions();if(o<=0)return;let s=Je(),a=y({timestamp:s},t),l=i?yt(()=>i(a,e)):a;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,e),r.addBreadcrumb(l,o))}var El,Dh="FunctionToString",bl=new WeakMap,Ah=()=>({name:Dh,setupOnce(){El=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=Ht(this),n=bl.has(q())&&e!==void 0?e:this;return El.apply(n,t)}}catch{}},setup(t){bl.set(t,!0)}}),Wr=Ah;var Oh=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],xh="EventFilters",Fo=(t={})=>{let e;return{name:xh,setup(n){let r=n.getOptions();e=Sl(t,r)},processEvent(n,r,i){if(!e){let o=i.getOptions();e=Sl(t,o)}return Rh(n,e)?null:n}}},Yr=(t={})=>U(y({},Fo(t)),{name:"InboundFilters"});function Sl(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Oh],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Rh(t,e){if(t.type){if(t.type==="transaction"&&Mh(t,e.ignoreTransactions))return F&&x.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
10
+ Event: ${Xe(t)}`),!0}else{if(Nh(t,e.ignoreErrors))return F&&x.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11
+ Event: ${Xe(t)}`),!0;if(Fh(t))return F&&x.warn(`Event dropped due to not having an error message, error type or stacktrace.
12
+ Event: ${Xe(t)}`),!0;if(Ph(t,e.denyUrls))return F&&x.warn(`Event dropped due to being matched by \`denyUrls\` option.
13
+ Event: ${Xe(t)}.
14
+ Url: ${$r(t)}`),!0;if(!Lh(t,e.allowUrls))return F&&x.warn(`Event dropped due to not being matched by \`allowUrls\` option.
15
+ Event: ${Xe(t)}.
16
+ Url: ${$r(t)}`),!0}return!1}function Nh(t,e){return e?.length?Hr(t).some(n=>on(n,e)):!1}function Mh(t,e){if(!e?.length)return!1;let n=t.transaction;return n?on(n,e):!1}function Ph(t,e){if(!e?.length)return!1;let n=$r(t);return n?on(n,e):!1}function Lh(t,e){if(!e?.length)return!0;let n=$r(t);return n?on(n,e):!0}function kh(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function $r(t){try{let n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?kh(n):null}catch{return F&&x.error(`Cannot extract url for event ${Xe(t)}`),null}}function Fh(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function Bo(t,e,n,r,i,o){if(!i.exception?.values||!o||!Ue(o.originalException,Error))return;let s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=Vo(t,e,r,o.originalException,n,i.exception.values,s,0))}function Vo(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if(Ue(r[i],Error)){Cl(s,a);let d=t(e,r[i]),g=l.length;Tl(d,i,g,a),l=Vo(t,e,n,r[i],i,[d,...l],d,g)}return Array.isArray(r.errors)&&r.errors.forEach((d,g)=>{if(Ue(d,Error)){Cl(s,a);let f=t(e,d),E=l.length;Tl(f,`errors[${g}]`,E,a),l=Vo(t,e,n,d,i,[f,...l],f,E)}}),l}function Cl(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=U(y(y({},t.mechanism),t.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:e})}function Tl(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=U(y({},t.mechanism),{type:"chained",source:e,exception_id:n,parent_id:r})}function Uo(t){let e="console";fe(e,t),he(e,Vh)}function Vh(){"console"in V&&$i.forEach(function(t){t in V.console&&re(V.console,t,function(e){return tn[t]=e,function(...n){ne("console",{args:n,level:t}),tn[t]?.apply(V.console,n)}})})}function Ho(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}var Bh="Dedupe",Uh=()=>{let t;return{name:Bh,processEvent(e){if(e.type)return e;try{if(Hh(e,t))return F&&x.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},zr=Uh;function Hh(t,e){return e?!!(jh(t,e)||Gh(t,e)):!1}function jh(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Dl(t,e)||!wl(t,e))}function Gh(t,e){let n=Il(e),r=Il(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Dl(t,e)||!wl(t,e))}function wl(t,e){let n=br(t),r=br(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){let o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function Dl(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Il(t){return t.exception?.values?.[0]}function Yn(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function Kr(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}var zn=V;function jo(){return"history"in zn&&!!zn.history}function Wh(){if(!("fetch"in zn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Kn(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Go(){if(typeof EdgeRuntime=="string")return!0;if(!Wh())return!1;if(Kn(zn.fetch))return!0;let t=!1,e=zn.document;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Kn(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){F&&x.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function $o(t,e){let n="fetch";fe(n,t),he(n,()=>$h(void 0,e))}function $h(t,e=!1){e&&!Go()||re(V,"fetch",function(n){return function(...r){let i=new Error,{method:o,url:s}=Yh(r),a={args:r,fetchData:{method:o,url:s},startTimestamp:ye()*1e3,virtualError:i,headers:zh(r)};return t||ne("fetch",y({},a)),n.apply(V,r).then(async l=>(t?t(l):ne("fetch",U(y({},a),{endTimestamp:ye()*1e3,response:l})),l),l=>{if(ne("fetch",U(y({},a),{endTimestamp:ye()*1e3,error:l})),Vt(l)&&l.stack===void 0&&(l.stack=i.stack,Ce(l,"framesToPop",1)),l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{let d=new URL(a.fetchData.url);l.message=`${l.message} (${d.host})`}catch{}throw l})}})}function Wo(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Al(t){return typeof t=="string"?t:t?Wo(t,"url")?t.url:t.toString?t.toString():"":""}function Yh(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[n,r]=t;return{url:Al(n),method:Wo(r,"method")?String(r.method).toUpperCase():"GET"}}let e=t[0];return{url:Al(e),method:Wo(e,"method")?String(e.method).toUpperCase():"GET"}}function zh(t){let[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(hc(e))return new Headers(e.headers)}catch{}}function Yo(){return"npm"}var Z=V,zo=0;function Ko(){return zo>0}function cp(){zo++,setTimeout(()=>{zo--})}function jt(t,e={}){function n(i){return typeof i=="function"}if(!n(t))return t;try{let i=t.__sentry_wrapped__;if(i)return typeof i=="function"?i:t;if(Ht(t))return t}catch{return t}let r=function(...i){try{let o=i.map(s=>jt(s,e));return t.apply(this,o)}catch(o){throw cp(),Bn(s=>{s.addEventProcessor(a=>(e.mechanism&&(sn(a,void 0,void 0),qe(a,e.mechanism)),a.extra=U(y({},a.extra),{arguments:i}),a)),Br(o)}),o}};try{for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}wr(r,t),Ce(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Ol(){let t=Vn(),{referrer:e}=Z.document||{},{userAgent:n}=Z.navigator||{},r=y(y({},e&&{Referer:e}),n&&{"User-Agent":n});return{url:t,headers:r}}function Xr(t,e){let n=Jo(t,e),r={type:hp(e),value:pp(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function lp(t,e,n,r){let o=q()?.getOptions().normalizeDepth,s=gp(e),a={__serialized__:Pr(e,o)};if(s)return{exception:{values:[Xr(t,s)]},extra:a};let l={exception:{values:[{type:Ut(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:mp(e,{isUnhandledRejection:r})}]},extra:a};if(n){let d=Jo(t,n);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function Xo(t,e){return{exception:{values:[Xr(t,e)]}}}function Jo(t,e){let n=e.stacktrace||e.stack||"",r=dp(e),i=fp(e);try{return t(n,r,i)}catch{}return[]}var up=/Minified React error #\d+;/i;function dp(t){return t&&up.test(t.message)?1:0}function fp(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function xl(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function hp(t){let e=t?.name;return!e&&xl(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function pp(t){let e=t?.message;return xl(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Rl(t,e,n,r){let i=n?.syntheticException||void 0,o=qr(t,e,i,r);return qe(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),Le(o)}function Nl(t,e,n="info",r,i){let o=r?.syntheticException||void 0,s=qo(t,e,o,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),Le(s)}function qr(t,e,n,r,i){let o;if(Cr(e)&&e.error)return Xo(t,e.error);if(Tr(e)||eo(e)){let s=e;if("stack"in e)o=Xo(t,e);else{let a=s.name||(Tr(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=qo(t,l,n,r),sn(o,l)}return"code"in s&&(o.tags=U(y({},o.tags),{"DOMException.code":`${s.code}`})),o}return Vt(e)?Xo(t,e):ot(e)||Ut(e)?(o=lp(t,e,n,i),qe(o,{synthetic:!0}),o):(o=qo(t,e,n,r),sn(o,`${e}`,void 0),qe(o,{synthetic:!0}),o)}function qo(t,e,n,r){let i={};if(r&&n){let o=Jo(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]}),qe(i,{synthetic:!0})}if(rn(e)){let{__sentry_template_string__:o,__sentry_template_values__:s}=e;return i.logentry={message:o,params:s},i}return i.message=e,i}function mp(t,{isUnhandledRejection:e}){let n=so(t),r=e?"promise rejection":"exception";return Cr(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Ut(t)?`Event \`${_p(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function _p(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function gp(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];if(n instanceof Error)return n}}var vp=5e3,Xn=class extends Wn{constructor(e){let n=yp(e),r=Z.SENTRY_SDK_SOURCE||Yo();ko(n,"browser",["browser"],r),super(n);let{sendDefaultPii:i,sendClientReports:o,enableLogs:s,_experiments:a}=this._options,l=s??a?.enableLogs;Z.document&&(o||l)&&Z.document.addEventListener("visibilitychange",()=>{Z.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),l&&$n(this))}),l&&(this.on("flush",()=>{$n(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{$n(this)},vp)})),i&&(this.on("postprocessEvent",Po),this.on("beforeSendSession",Lo))}eventFromException(e,n){return Rl(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Nl(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,i)}};function yp(t){return y({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Z.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},t)}var Ml=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var oe=V;var Ep=1e3,Pl,Zo,Qo;function es(t){let e="dom";fe(e,t),he(e,bp)}function bp(){if(!oe.document)return;let t=ne.bind(null,"dom"),e=Ll(t,!0);oe.document.addEventListener("click",e,!1),oe.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let i=oe[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(re(i,"addEventListener",function(o){return function(s,a,l){if(s==="click"||s=="keypress")try{let d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},g=d[s]=d[s]||{refCount:0};if(!g.handler){let f=Ll(t);g.handler=f,o.call(this,s,f,l)}g.refCount++}catch{}return o.call(this,s,a,l)}}),re(i,"removeEventListener",function(o){return function(s,a,l){if(s==="click"||s=="keypress")try{let d=this.__sentry_instrumentation_handlers__||{},g=d[s];g&&(g.refCount--,g.refCount<=0&&(o.call(this,s,g.handler,l),g.handler=void 0,delete d[s]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,s,a,l)}}))})}function Sp(t){if(t.type!==Zo)return!1;try{if(!t.target||t.target._sentryId!==Qo)return!1}catch{}return!0}function Cp(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function Ll(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Tp(n);if(Cp(n.type,r))return;Ce(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ce(r,"_sentryId",ie());let i=n.type==="keypress"?"input":n.type;Sp(n)||(t({event:n,name:i,global:e}),Zo=n.type,Qo=r?r._sentryId:void 0),clearTimeout(Pl),Pl=oe.setTimeout(()=>{Qo=void 0,Zo=void 0},Ep)}}function Tp(t){try{return t.target}catch{return null}}var Jr;function qn(t){let e="history";fe(e,t),he(e,Ip)}function Ip(){if(oe.addEventListener("popstate",()=>{let e=oe.location.href,n=Jr;if(Jr=e,n===e)return;ne("history",{from:n,to:e})}),!jo())return;function t(e){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let i=Jr,o=wp(String(r));if(Jr=o,i===o)return e.apply(this,n);ne("history",{from:i,to:o})}return e.apply(this,n)}}re(oe.history,"pushState",t),re(oe.history,"replaceState",t)}function wp(t){try{return new URL(t,oe.location.origin).toString()}catch{return t}}var Zr={};function ts(t){let e=Zr[t];if(e)return e;let n=oe[t];if(Kn(n))return Zr[t]=n.bind(oe);let r=oe.document;if(r&&typeof r.createElement=="function")try{let i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);let o=i.contentWindow;o?.[t]&&(n=o[t]),r.head.removeChild(i)}catch(i){Ml&&x.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(Zr[t]=n.bind(oe))}function Qr(t){Zr[t]=void 0}var Gt="__sentry_xhr_v3__";function ns(t){let e="xhr";fe(e,t),he(e,Dp)}function Dp(){if(!oe.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){let i=new Error,o=ye()*1e3,s=pe(r[0])?r[0].toUpperCase():void 0,a=Ap(r[1]);if(!s||!a)return e.apply(n,r);n[Gt]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let l=()=>{let d=n[Gt];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}let g={endTimestamp:ye()*1e3,startTimestamp:o,xhr:n,virtualError:i};ne("xhr",g)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,g,f){return l(),d.apply(g,f)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,g,f){let[E,v]=f,w=g[Gt];return w&&pe(E)&&pe(v)&&(w.request_headers[E.toLowerCase()]=v),d.apply(g,f)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){let i=n[Gt];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);let o={startTimestamp:ye()*1e3,xhr:n};return ne("xhr",o),e.apply(n,r)}})}function Ap(t){if(pe(t))return t;try{return t.toString()}catch{}}function rs(t,e=ts("fetch")){let n=0,r=0;function i(o){let s=o.body.length;n+=s,r++;let a=y({body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15},t.fetchOptions);if(!e)return Qr("fetch"),Ct("No fetch implementation available");try{return e(t.url,a).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Qr("fetch"),n-=s,r--,Ct(l)}}return Gr(t,i)}var Op=30;var xp=50;function is(t,e,n,r){let i={filename:t,function:e==="<anonymous>"?Ke:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Rp=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Np=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mp=/\((\S*)(?::(\d+))(?::(\d+))\)/,Pp=t=>{let e=Rp.exec(t);if(e){let[,r,i,o]=e;return is(r,Ke,+i,+o)}let n=Np.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){let s=Mp.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}let[i,o]=Bl(n[1]||Ke,n[2]);return is(o,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},kl=[Op,Pp],Lp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,kp=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Fp=t=>{let e=Lp.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let o=kp.exec(e[3]);o&&(e[1]=e[1]||"eval",e[3]=o[1],e[4]=o[2],e[5]="")}let r=e[3],i=e[1]||Ke;return[i,r]=Bl(i,r),is(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Fl=[xp,Fp];var Vl=[kl,Fl],os=Xi(...Vl),Bl=(t,e)=>{let n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Ke,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var un=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ei=1024,Vp="Breadcrumbs",Bp=(t={})=>{let e=y({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:Vp,setup(n){e.console&&Uo(jp(n)),e.dom&&es(Hp(n,e.dom)),e.xhr&&ns(Gp(n)),e.fetch&&$o(Wp(n)),e.history&&qn($p(n)),e.sentry&&n.on("beforeSendEvent",Up(n))}}},Ul=Bp;function Up(t){return function(n){q()===t&&et({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Xe(n)},{event:n})}}function Hp(t,e){return function(r){if(q()!==t)return;let i,o,s=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>ei&&(un&&x.warn(`\`dom.maxStringLength\` cannot exceed ${ei}, but a value of ${a} was configured. Sentry will use ${ei} instead.`),a=ei),typeof s=="string"&&(s=[s]);try{let d=r.event,g=Yp(d)?d.target:d;i=Fn(g,{keyAttrs:s,maxStringLength:a}),o=oo(g)}catch{i="<unknown>"}if(i.length===0)return;let l={category:`ui.${r.name}`,message:i};o&&(l.data={"ui.component_name":o}),et(l,{event:r.event,name:r.name,global:r.global})}}function jp(t){return function(n){if(q()!==t)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:Ho(n.level),message:Ir(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Ir(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;et(r,{input:n.args,level:n.level})}}function Gp(t){return function(n){if(q()!==t)return;let{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[Gt];if(!r||!i||!o)return;let{method:s,url:a,status_code:l,body:d}=o,g={method:s,url:a,status_code:l},f={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:i},E={category:"xhr",data:g,type:"http",level:Kr(l)};t.emit("beforeOutgoingRequestBreadcrumb",E,f),et(E,f)}}function Wp(t){return function(n){if(q()!==t)return;let{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){let o=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},a={category:"fetch",data:o,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",a,s),et(a,s)}else{let o=n.response,s=U(y({},n.fetchData),{status_code:o?.status});n.fetchData.request_body_size,n.fetchData.response_body_size,o?.status;let a={input:n.args,response:o,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:s,type:"http",level:Kr(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",l,a),et(l,a)}}}function $p(t){return function(n){if(q()!==t)return;let r=n.from,i=n.to,o=Yn(Z.location.href),s=r?Yn(r):void 0,a=Yn(i);s?.path||(s=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),et({category:"navigation",data:{from:r,to:i}})}}function Yp(t){return!!t&&!!t.target}var zp=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Kp="BrowserApiErrors",Xp=(t={})=>{let e=y({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},t);return{name:Kp,setupOnce(){e.setTimeout&&re(Z,"setTimeout",Hl),e.setInterval&&re(Z,"setInterval",Hl),e.requestAnimationFrame&&re(Z,"requestAnimationFrame",qp),e.XMLHttpRequest&&"XMLHttpRequest"in Z&&re(XMLHttpRequest.prototype,"send",Jp);let n=e.eventTarget;n&&(Array.isArray(n)?n:zp).forEach(i=>Zp(i,e))}}},jl=Xp;function Hl(t){return function(...e){let n=e[0];return e[0]=jt(n,{mechanism:{data:{function:Me(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function qp(t){return function(e){return t.apply(this,[jt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Me(t)},handled:!1,type:"instrument"}})])}}function Jp(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&re(n,i,function(o){let s={mechanism:{data:{function:i,handler:Me(o)},handled:!1,type:"instrument"}},a=Ht(o);return a&&(s.mechanism.data.handler=Me(a)),jt(o,s)})}),t.apply(this,e)}}function Zp(t,e){let r=Z[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(re(r,"addEventListener",function(i){return function(o,s,a){try{Qp(s)&&(s.handleEvent=jt(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Me(s),target:t},handled:!1,type:"instrument"}}))}catch{}return e.unregisterOriginalCallbacks&&em(this,o,s),i.apply(this,[o,jt(s,{mechanism:{data:{function:"addEventListener",handler:Me(s),target:t},handled:!1,type:"instrument"}}),a])}}),re(r,"removeEventListener",function(i){return function(o,s,a){try{let l=s.__sentry_wrapped__;l&&i.call(this,o,l,a)}catch{}return i.call(this,o,s,a)}}))}function Qp(t){return typeof t.handleEvent=="function"}function em(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}var Gl=()=>({name:"BrowserSession",setupOnce(){if(typeof Z.document>"u"){un&&x.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}jn({ignoreDuration:!0}),Gn(),qn(({from:t,to:e})=>{t!==void 0&&t!==e&&(jn({ignoreDuration:!0}),Gn())})}});var tm="GlobalHandlers",nm=(t={})=>{let e=y({onerror:!0,onunhandledrejection:!0},t);return{name:tm,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(rm(n),Wl("onerror")),e.onunhandledrejection&&(im(n),Wl("onunhandledrejection"))}}},$l=nm;function rm(t){Ji(e=>{let{stackParser:n,attachStacktrace:r}=Yl();if(q()!==t||Ko())return;let{msg:i,url:o,line:s,column:a,error:l}=e,d=am(qr(n,l||i,void 0,r,!1),o,s,a);d.level="error",Hn(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function im(t){Qi(e=>{let{stackParser:n,attachStacktrace:r}=Yl();if(q()!==t||Ko())return;let i=om(e),o=Bt(i)?sm(i):qr(n,i,void 0,r,!0);o.level="error",Hn(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function om(t){if(Bt(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function sm(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function am(t,e,n,r){let i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],d=r,g=n,f=pe(e)&&e.length>0?e:Vn();return l.length===0&&l.push({colno:d,filename:f,function:Ke,in_app:!0,lineno:g}),t}function Wl(t){un&&x.log(`Global Handler attached: ${t}`)}function Yl(){return q()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var zl=()=>({name:"HttpContext",preprocessEvent(t){if(!Z.navigator&&!Z.location&&!Z.document)return;let e=Ol(),n=y(y({},e.headers),t.request?.headers);t.request=U(y(y({},e),t.request),{headers:n})}});var cm="cause",lm=5,um="LinkedErrors",dm=(t={})=>{let e=t.limit||lm,n=t.key||cm;return{name:um,preprocessEvent(r,i,o){let s=o.getOptions();Bo(Xr,s.stackParser,n,e,r,i)}}},Kl=dm;function ss(t){return[Yr(),Wr(),jl(),Ul(),$l(),Kl(),zr(),zl(),Gl()]}var Xl={},ql,as,fm;(()=>{let t=ss({}).filter(e=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name));as=new Xn({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:rs,stackParser:os,integrations:t,environment:Lt.mode,release:`web-sdk@${Ye.SDK_VERSION}`,debug:Lt.debug}),as.init()})();function Jl(t,e,n){Be.error(`${e}:`,t);let r=mm(n);if(r.setTag("operation",e),t instanceof yr){hm(r,t,e);return}r.captureException(t)}function hm(t,e,n){if(pm(t,e),e.response){let r=e.response;t.setTag("http.status_code",r.status),t.setExtras({responseText:e.responseText,statusText:r.statusText,responseType:r.type,redirected:r.redirected,responseUrl:r.url}),t.captureMessage(`${n} failed with ${r.status}`,"error");return}if(e.request){t.captureMessage(`No response was received for ${n}`,"error");return}}function pm(t,e){let n=e.request;n&&t.setExtras({body:e.requestBody,headers:n.headers,method:n.method,url:n.url})}function mm(t){t??={};let{extra:e,tags:n}=t,r=new de;if(r.setClient(as),r.setUser(fm),t.triggerContext&&!t.engagementTrigger&&(t.engagementTrigger=t.triggerContext.triggerData),t.engagementTrigger){let i=t.engagementTrigger;r.setTags({"engagement.id":i.engagementID,"engagement.short_id":i.shortID,"engagement.objective":i.objective,"engagement.delivery_type":i.onsiteDeliveryType,"engagement.content_id":i.contentID,"engagement.variation":i.variation,"engagement.currency":i.currency})}return e&&r.setExtras(e),n&&r.setTags(n),ql&&r.setTags(ql),Object.keys(Xl).forEach(i=>{r.setContext(i,Xl[i])}),r.setTag("language",navigator.language),r.setTag("timezone",Zl()),_m(r),r}function _m(t){window.Shopify&&(t.setTag("shopify.shop",window.Shopify.shop),t.setTag("shopify.currency",window.Shopify.currency?.active),t.setTag("shopify.locale",window.Shopify.locale),t.setTag("theme.schema_name",window.Shopify.theme?.schema_name),t.setTag("theme.schema_version",window.Shopify.theme?.schema_version))}var ni=class{static format(e,n){let r=/{{\s*(\w+)\s*}}/;return n.replace(r,(i,o)=>{switch(o){case"amount":return this.formatWithDelimiters(e,2);case"amount_no_decimals":return this.formatWithDelimiters(e,0);case"amount_with_comma_separator":return this.formatWithDelimiters(e,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(e,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(e,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(e,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(e,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(e,2," ",".");default:return i}})}static formatWithDelimiters(e,n=2,r=",",i="."){if(isNaN(e)||e==null)return"0";let s=(e/100).toFixed(n).split("."),a=s[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+r),l=s[1]?i+s[1]:"";return a+l}};var Jn=class{id;mID;vID;vName;imageURL;name;link;quantity;price;finalPrice;constructor(e){this.id=e.id,this.mID=e.mID,this.vID=e.vID,this.vName=e.vName,this.imageURL=e.imageURL,this.name=e.name,this.link=e.link,this.quantity=e.quantity,this.price=e.price,this.finalPrice=e.finalPrice??e.price}};function Ql(t){let e=new Date(Date.UTC(0,0,0,0,0,0,t)),n=[];return e.getUTCMinutes()&&n.push(e.getUTCMinutes()+"m"),e.getUTCSeconds()&&n.push(e.getUTCSeconds()+"s"),e.getUTCMilliseconds()&&n.push(e.getUTCMilliseconds()+"ms"),n.length||n.push("0ms"),n.join(" ")}var ri=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;locale;customContext={};activeExperiments;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(e){this._currencyCode=e}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(e){this.currentItem=new Jn(e)}getJSLoadTimeDiff(){return Ql(Date.now()-this.jsLoadTime.getTime())}};function gm(t,e,n){return{[t]:cs(e,n),[t+"_wo_currency"]:e}}function cs(t,e){if(t==0&&e)return"Free";let n=ri.get(),r=vt.get(),i=n.shopCurrencyCode||r.currency,o=n.currencyCode;o||Be.warn("Currency code is not set in RuntimeData");let s=r.money?.format??n.moneyFormat,a;if(s&&i===o)a=ni.format(t*100,s);else{let l;try{l=new Intl.NumberFormat(vm(),{style:"currency",currency:o||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(d){return Jl(d,"format-currency",{extra:{currentCurrency:o,shopCurrency:i}}),""}a=l.format(t),a=a.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(a=a.concat(` ${o}`))}return a}function vm(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}var ii;function Zl(){if(ii)return ii;try{return ii=Intl.DateTimeFormat().resolvedOptions().timeZone,ii}catch{return""}}var iu,K,ou,hs,Wt,eu,su,au,cu,ps,us,ds,ym,fs={},lu=[],Em=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ai=Array.isArray;function lt(t,e){for(var n in e)t[n]=e[n];return t}function ms(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function ls(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ou,__i:-1,__u:0};return i==null&&K.vnode!=null&&K.vnode(o),o}function _s(t){return t.children}function dn(t,e){this.props=t,this.context=e}function fn(t,e){if(e==null)return t.__?fn(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?fn(t):null}function uu(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return uu(t)}}function tu(t){(!t.__d&&(t.__d=!0)&&Wt.push(t)&&!si.__r++||eu!=K.debounceRendering)&&((eu=K.debounceRendering)||su)(si)}function si(){for(var t,e,n,r,i,o,s,a=1;Wt.length;)Wt.length>a&&Wt.sort(au),t=Wt.shift(),a=Wt.length,t.__d&&(n=void 0,i=(r=(e=t).__v).__e,o=[],s=[],e.__P&&((n=lt({},r)).__v=r.__v+1,K.vnode&&K.vnode(n),hu(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[i]:null,o,i??fn(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Cm(o,n,s),n.__e!=i&&uu(n)));si.__r=0}function du(t,e,n,r,i,o,s,a,l,d,g){var f,E,v,w,M,N,k=r&&r.__k||lu,L=e.length;for(l=bm(n,e,k,l,L),f=0;f<L;f++)(v=n.__k[f])!=null&&(E=v.__i==-1?fs:k[v.__i]||fs,v.__i=f,N=hu(t,v,E,i,o,s,a,l,d,g),w=v.__e,v.ref&&E.ref!=v.ref&&(E.ref&&gs(E.ref,null,v),g.push(v.ref,v.__c||w,v)),M==null&&w!=null&&(M=w),4&v.__u||E.__k===v.__k?l=fu(v,l,t):typeof v.type=="function"&&N!==void 0?l=N:w&&(l=w.nextSibling),v.__u&=-7);return n.__e=M,l}function bm(t,e,n,r,i){var o,s,a,l,d,g=n.length,f=g,E=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(l=o+E,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?ls(null,s,null,null,null):ai(s)?ls(_s,{children:s},null,null,null):s.constructor==null&&s.__b>0?ls(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,a=null,(d=s.__i=Sm(s,n,l,f))!=-1&&(f--,(a=n[d])&&(a.__u|=2)),a==null||a.__v==null?(d==-1&&(i>g?E--:i<g&&E++),typeof s.type!="function"&&(s.__u|=4)):d!=l&&(d==l-1?E--:d==l+1?E++:(d>l?E--:E++,s.__u|=4))):t.__k[o]=null;if(f)for(o=0;o<g;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=fn(a)),mu(a,a));return r}function fu(t,e,n){var r,i;if(typeof t.type=="function"){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=t,e=fu(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=fn(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Sm(t,e,n,r){var i,o,s=t.key,a=t.type,l=e[n];if(l===null&&t.key==null||l&&s==l.key&&a==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(i=n-1,o=n+1;i>=0||o<e.length;){if(i>=0){if((l=e[i])&&(2&l.__u)==0&&s==l.key&&a==l.type)return i;i--}if(o<e.length){if((l=e[o])&&(2&l.__u)==0&&s==l.key&&a==l.type)return o;o++}}return-1}function nu(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Em.test(e)?n:n+"px"}function oi(t,e,n,r,i){var o,s;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||nu(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||nu(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(cu,"$1")),s=e.toLowerCase(),e=s in t||e=="onFocusOut"||e=="onFocusIn"?s.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=ps,t.addEventListener(e,o?ds:us,o)):t.removeEventListener(e,o?ds:us,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function ru(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=ps++;else if(e.t<n.u)return;return n(K.event?K.event(e):e)}}}function hu(t,e,n,r,i,o,s,a,l,d){var g,f,E,v,w,M,N,k,L,j,Ie,we,D,G,B,W,Q,J=e.type;if(e.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(g=K.__b)&&g(e);e:if(typeof J=="function")try{if(k=e.props,L="prototype"in J&&J.prototype.render,j=(g=J.contextType)&&r[g.__c],Ie=g?j?j.props.value:g.__:r,n.__c?N=(f=e.__c=n.__c).__=f.__E:(L?e.__c=f=new J(k,Ie):(e.__c=f=new dn(k,Ie),f.constructor=J,f.render=Im),j&&j.sub(f),f.props=k,f.state||(f.state={}),f.context=Ie,f.__n=r,E=f.__d=!0,f.__h=[],f._sb=[]),L&&f.__s==null&&(f.__s=f.state),L&&J.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=lt({},f.__s)),lt(f.__s,J.getDerivedStateFromProps(k,f.__s))),v=f.props,w=f.state,f.__v=e,E)L&&J.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),L&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(L&&J.getDerivedStateFromProps==null&&k!==v&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(k,Ie),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(k,f.__s,Ie)===!1||e.__v==n.__v){for(e.__v!=n.__v&&(f.props=k,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(ae){ae&&(ae.__=e)}),we=0;we<f._sb.length;we++)f.__h.push(f._sb[we]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(k,f.__s,Ie),L&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(v,w,M)})}if(f.context=Ie,f.props=k,f.__P=t,f.__e=!1,D=K.__r,G=0,L){for(f.state=f.__s,f.__d=!1,D&&D(e),g=f.render(f.props,f.state,f.context),B=0;B<f._sb.length;B++)f.__h.push(f._sb[B]);f._sb=[]}else do f.__d=!1,D&&D(e),g=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++G<25);f.state=f.__s,f.getChildContext!=null&&(r=lt(lt({},r),f.getChildContext())),L&&!E&&f.getSnapshotBeforeUpdate!=null&&(M=f.getSnapshotBeforeUpdate(v,w)),W=g,g!=null&&g.type===_s&&g.key==null&&(W=pu(g.props.children)),a=du(t,ai(W)?W:[W],e,n,r,i,o,s,a,l,d),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),N&&(f.__E=f.__=null)}catch(ae){if(e.__v=null,l||o!=null)if(ae.then){for(e.__u|=l?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,e.__e=a}else for(Q=o.length;Q--;)ms(o[Q]);else e.__e=n.__e,e.__k=n.__k;K.__e(ae,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=Tm(n.__e,e,n,r,i,o,s,l,d);return(g=K.diffed)&&g(e),128&e.__u?void 0:a}function Cm(t,e,n){for(var r=0;r<n.length;r++)gs(n[r],n[++r],n[++r]);K.__c&&K.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){K.__e(o,i.__v)}})}function pu(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:ai(t)?t.map(pu):lt({},t)}function Tm(t,e,n,r,i,o,s,a,l){var d,g,f,E,v,w,M,N=n.props,k=e.props,L=e.type;if(L=="svg"?i="http://www.w3.org/2000/svg":L=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(d=0;d<o.length;d++)if((v=o[d])&&"setAttribute"in v==!!L&&(L?v.localName==L:v.nodeType==3)){t=v,o[d]=null;break}}if(t==null){if(L==null)return document.createTextNode(k);t=document.createElementNS(i,L,k.is&&k),a&&(K.__m&&K.__m(e,o),a=!1),o=null}if(L==null)N===k||a&&t.data==k||(t.data=k);else{if(o=o&&iu.call(t.childNodes),N=n.props||fs,!a&&o!=null)for(N={},d=0;d<t.attributes.length;d++)N[(v=t.attributes[d]).name]=v.value;for(d in N)if(v=N[d],d!="children"){if(d=="dangerouslySetInnerHTML")f=v;else if(!(d in k)){if(d=="value"&&"defaultValue"in k||d=="checked"&&"defaultChecked"in k)continue;oi(t,d,null,v,i)}}for(d in k)v=k[d],d=="children"?E=v:d=="dangerouslySetInnerHTML"?g=v:d=="value"?w=v:d=="checked"?M=v:a&&typeof v!="function"||N[d]===v||oi(t,d,v,N[d],i);if(g)a||f&&(g.__html==f.__html||g.__html==t.innerHTML)||(t.innerHTML=g.__html),e.__k=[];else if(f&&(t.innerHTML=""),du(e.type=="template"?t.content:t,ai(E)?E:[E],e,n,r,L=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&fn(n,0),a,l),o!=null)for(d=o.length;d--;)ms(o[d]);a||(d="value",L=="progress"&&w==null?t.removeAttribute("value"):w!=null&&(w!==t[d]||L=="progress"&&!w||L=="option"&&w!=N[d])&&oi(t,d,w,N[d],i),d="checked",M!=null&&M!=t[d]&&oi(t,d,M,N[d],i))}return t}function gs(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){K.__e(i,n)}}function mu(t,e,n){var r,i;if(K.unmount&&K.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||gs(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){K.__e(o,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&mu(r[i],e,n||typeof t.type!="function");n||ms(t.__e),t.__c=t.__=t.__e=void 0}function Im(t,e,n){return this.constructor(t,n)}iu=lu.slice,K={__e:function(t,e,n,r){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},ou=0,hs=function(t){return t!=null&&t.constructor==null},dn.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=lt({},this.state),typeof t=="function"&&(t=t(lt({},n),this.props)),t&&lt(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),tu(this))},dn.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),tu(this))},dn.prototype.render=_s,Wt=[],su=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,au=function(t,e){return t.__v.__b-e.__v.__b},si.__r=0,cu=/(PointerCapture)$|Capture$/i,ps=0,us=ru(!1),ds=ru(!0),ym=0;var ys,Te,vs,_u,gu=0,Iu=[],se=K,vu=se.__b,yu=se.__r,Eu=se.diffed,bu=se.__c,Su=se.unmount,Cu=se.__;function wm(t,e){se.__h&&se.__h(Te,t,gu||e),gu=0;var n=Te.__H||(Te.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function bs(t,e){var n=wm(ys++,7);return Om(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Dm(){for(var t;t=Iu.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ci),t.__H.__h.forEach(Es),t.__H.__h=[]}catch(e){t.__H.__h=[],se.__e(e,t.__v)}}se.__b=function(t){Te=null,vu&&vu(t)},se.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Cu&&Cu(t,e)},se.__r=function(t){yu&&yu(t),ys=0;var e=(Te=t.__c).__H;e&&(vs===Te?(e.__h=[],Te.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.forEach(ci),e.__h.forEach(Es),e.__h=[],ys=0)),vs=Te},se.diffed=function(t){Eu&&Eu(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Iu.push(e)!==1&&_u===se.requestAnimationFrame||((_u=se.requestAnimationFrame)||Am)(Dm)),e.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),vs=Te=null},se.__c=function(t,e){e.some(function(n){try{n.__h.forEach(ci),n.__h=n.__h.filter(function(r){return!r.__||Es(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],se.__e(r,n.__v)}}),bu&&bu(t,e)},se.unmount=function(t){Su&&Su(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ci(r)}catch(i){e=i}}),n.__H=void 0,e&&se.__e(e,n.__v))};var Tu=typeof requestAnimationFrame=="function";function Am(t){var e,n=function(){clearTimeout(r),Tu&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);Tu&&(e=requestAnimationFrame(n))}function ci(t){var e=Te,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Te=e}function Es(t){var e=Te;t.__c=t.__(),Te=e}function Om(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}var xm=Symbol.for("preact-signals");function Cs(){if(hn>1)hn--;else{for(var t,e=!1;Zn!==void 0;){var n=Zn;for(Zn=void 0,Ss++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Du(n))try{n.c()}catch(i){e||(t=i,e=!0)}n=r}}if(Ss=0,hn--,e)throw t}}var X=void 0;var Zn=void 0,hn=0,Ss=0,li=0;function wu(t){if(X!==void 0){var e=t.n;if(e===void 0||e.t!==X)return e={i:0,S:t,p:X.s,n:void 0,t:X,e:void 0,x:void 0,r:e},X.s!==void 0&&(X.s.n=e),X.s=e,t.n=e,32&X.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=X.s,e.n=void 0,X.s.n=e,X.s=e),e}}function le(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}le.prototype.brand=xm;le.prototype.h=function(){return!0};le.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};le.prototype.U=function(t){if(this.t!==void 0){var e=t.e,n=t.x;e!==void 0&&(e.x=n,t.e=void 0),n!==void 0&&(n.e=e,t.x=void 0),t===this.t&&(this.t=n)}};le.prototype.subscribe=function(t){var e=this;return ui(function(){var n=e.value,r=X;X=void 0;try{t(n)}finally{X=r}})};le.prototype.valueOf=function(){return this.value};le.prototype.toString=function(){return this.value+""};le.prototype.toJSON=function(){return this.value};le.prototype.peek=function(){var t=X;X=void 0;try{return this.value}finally{X=t}};Object.defineProperty(le.prototype,"value",{get:function(){var t=wu(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Ss>100)throw new Error("Cycle detected");this.v=t,this.i++,li++,hn++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Cs()}}}});function Qn(t){return new le(t)}function Du(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function Au(t){for(var e=t.s;e!==void 0;e=e.n){var n=e.S.n;if(n!==void 0&&(e.r=n),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function Ou(t){for(var e=t.s,n=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):n=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=n}function pn(t){le.call(this,void 0),this.x=t,this.s=void 0,this.g=li-1,this.f=4}(pn.prototype=new le).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===li))return!0;if(this.g=li,this.f|=1,this.i>0&&!Du(this))return this.f&=-2,!0;var t=X;try{Au(this),X=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return X=t,Ou(this),this.f&=-2,!0};pn.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}le.prototype.S.call(this,t)};pn.prototype.U=function(t){if(this.t!==void 0&&(le.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};pn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(pn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=wu(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function xu(t){return new pn(t)}function Ru(t){var e=t.u;if(t.u=void 0,typeof e=="function"){hn++;var n=X;X=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,Ts(t),r}finally{X=n,Cs()}}}function Ts(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Ru(t)}function Rm(t){if(X!==this)throw new Error("Out-of-order effect");Ou(this),X=t,this.f&=-2,8&this.f&&Ts(this),Cs()}function er(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}er.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};er.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ru(this),Au(this),hn++;var t=X;return X=this,Rm.bind(this,t)};er.prototype.N=function(){2&this.f||(this.f|=2,this.o=Zn,Zn=this)};er.prototype.d=function(){this.f|=8,1&this.f||Ts(this)};function ui(t){var e=new er(t);try{e.c()}catch(n){throw e.d(),n}return e.d.bind(e)}var ws,Is;function mn(t,e){K[t]=e.bind(null,K[t]||function(){})}function di(t){Is&&Is(),Is=t&&t.S()}function Nu(t){var e=this,n=t.data,r=Mm(n);r.value=n;var i=bs(function(){for(var o=e.__v;o=o.__;)if(o.__c){o.__c.__$f|=4;break}return e.__$u.c=function(){var s,a=e.__$u.S(),l=i.value;a(),hs(l)||((s=e.base)==null?void 0:s.nodeType)!==3?(e.__$f|=1,e.setState({})):e.base.data=l},xu(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}Nu.displayName="_st";Object.defineProperties(le.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Nu},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});mn("__b",function(t,e){if(typeof e.type=="string"){var n,r=e.props;for(var i in r)if(i!=="children"){var o=r[i];o instanceof le&&(n||(e.__np=n={}),n[i]=o,r[i]=o.peek())}}t(e)});mn("__r",function(t,e){di();var n,r=e.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(i){var o;return ui(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o}())),ws=r,di(n),t(e)});mn("__e",function(t,e,n,r){di(),ws=void 0,t(e,n,r)});mn("diffed",function(t,e){di(),ws=void 0;var n;if(typeof e.type=="string"&&(n=e.__e)){var r=e.__np,i=e.props;if(r){var o=n.U;if(o)for(var s in o){var a=o[s];a!==void 0&&!(s in r)&&(a.d(),o[s]=void 0)}else n.U=o={};for(var l in r){var d=o[l],g=r[l];d===void 0?(d=Nm(n,l,g,i),o[l]=d):d.o(g,i)}}}t(e)});function Nm(t,e,n,r){var i=e in t&&t.ownerSVGElement===void 0,o=Qn(n);return{o:function(s,a){o.value=s,r=a},d:ui(function(){var s=o.value.value;r[e]!==s&&(r[e]=s,i?t[e]=s:s?t.setAttribute(e,s):t.removeAttribute(e))})}}mn("unmount",function(t,e){if(typeof e.type=="string"){var n=e.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var i in r){var o=r[i];o&&o.d()}}}}else{var s=e.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}t(e)});mn("__h",function(t,e,n,r){(r<3||r===9)&&(e.__$f|=2),t(e,n,r)});dn.prototype.shouldComponentUpdate=function(t,e){var n=this.__$u,r=n&&n.s!==void 0;for(var i in e)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){if(!(r||2&this.__$f||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var o in t)if(o!=="__source"&&t[o]!==this.props[o])return!0;for(var s in this.props)if(!(s in t))return!0;return!1};function Mm(t){return bs(function(){return Qn(t)},[])}var Pm=(r=>(r.ON="ON",r.OFF="OFF",r.ON_HOVER="ON_HOVER",r))(Pm||{}),Lm=(r=>(r.FIRST_ITEM="FIRST_ITEM",r.CARD="CARD",r.NONE="NONE",r))(Lm||{});var tr=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},_n=class extends tr{component;viewContainerRef;injector;projectableNodes;constructor(e,n,r,i){super(),this.component=e,this.viewContainerRef=n,this.injector=r,this.projectableNodes=i}},gn=class extends tr{templateRef;viewContainerRef;context;injector;constructor(e,n,r,i){super(),this.templateRef=e,this.viewContainerRef=n,this.context=r,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,n=this.context){return this.context=n,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Ds=class extends tr{element;constructor(e){super(),this.element=e instanceof xe?e.nativeElement:e}},vn=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof _n)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof gn)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Ds)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},fi=class extends vn{outletElement;_appRef;_defaultInjector;constructor(e,n,r){super(),this.outletElement=e,this._appRef=n,this._defaultInjector=r}attachComponentPortal(e){let n;if(e.viewContainerRef){let r=e.injector||e.viewContainerRef.injector,i=r.get(Ri,null,{optional:!0})||void 0;n=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:r,ngModuleRef:i,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>n.destroy())}else{let r=this._appRef,i=e.injector||this._defaultInjector||Oe.NULL,o=i.get(lr,r.injector);n=Na(e.component,{elementInjector:i,environmentInjector:o,projectableNodes:e.projectableNodes||void 0}),r.attachView(n.hostView),this.setDisposeFn(()=>{r.viewCount>0&&r.detachView(n.hostView),n.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=e,n}attachTemplatePortal(e){let n=e.viewContainerRef,r=n.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return r.rootNodes.forEach(i=>this.outletElement.appendChild(i)),r.detectChanges(),this.setDisposeFn(()=>{let i=n.indexOf(r);i!==-1&&n.remove(i)}),this._attachedPortal=e,r}attachDomPortal=e=>{let n=e.element;n.parentNode;let r=this.outletElement.ownerDocument.createComment("dom-portal");n.parentNode.insertBefore(r,n),this.outletElement.appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(n,r)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var As=(()=>{class t extends vn{_moduleRef=P(Ri,{optional:!0});_document=P(ge);_viewContainerRef=P(xi);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}attached=new Re;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,i=r.createComponent(n.component,{index:r.length,injector:n.injector||r.injector,projectableNodes:n.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return r!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=n,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}attachDomPortal=n=>{let r=n.element;r.parentNode;let i=this._document.createComment("dom-portal");n.setAttachedHost(this),r.parentNode.insertBefore(i,r),this._getRootNode().appendChild(r),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(r,i)})};_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Kt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[At]})}return t})();var nr;function km(){if(nr==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>nr=!0}))}finally{nr=nr||!1}return nr}function Mu(t){return km()?t:!!t.capture}var Fm=new ke("cdk-input-modality-detector-options"),Vm={ignoreKeys:[18,17,224,91,16]},Pu=650,Os={passive:!0,capture:!0},Bm=(()=>{class t{_platform=P($e);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ca(null);_options;_lastTouchMs=0;_onKeydown=n=>{this._options?.ignoreKeys?.some(r=>r===n.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=rt(n))};_onMousedown=n=>{Date.now()-this._lastTouchMs<Pu||(this._modality.next(Fa(n)?"keyboard":"mouse"),this._mostRecentTarget=rt(n))};_onTouchstart=n=>{if(Va(n)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=rt(n)};constructor(){let n=P(Fe),r=P(ge),i=P(Fm,{optional:!0});if(this._options=y(y({},Vm),i),this.modalityDetected=this._modality.pipe(ha(1)),this.modalityChanged=this.modalityDetected.pipe(fa()),this._platform.isBrowser){let o=P(zt).createRenderer(null,null);this._listenerCleanups=n.runOutsideAngular(()=>[o.listen(r,"keydown",this._onKeydown,Os),o.listen(r,"mousedown",this._onMousedown,Os),o.listen(r,"touchstart",this._onTouchstart,Os)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(n=>n())}static \u0275fac=function(r){return new(r||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pi=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(pi||{}),Um=new ke("cdk-focus-monitor-default-options"),hi=Mu({passive:!0,capture:!0}),Lu=(()=>{class t{_ngZone=P(Fe);_platform=P($e);_inputModalityDetector=P(Bm);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=P(ge);_stopInputModalityDetector=new me;constructor(){let n=P(Um,{optional:!0});this._detectionMode=n?.detectionMode||pi.IMMEDIATE}_rootNodeFocusAndBlurListener=n=>{let r=rt(n);for(let i=r;i;i=i.parentElement)n.type==="focus"?this._onFocus(n,i):this._onBlur(n,i)};monitor(n,r=!1){let i=pr(n);if(!this._platform.isBrowser||i.nodeType!==1)return la();let o=Ba(i)||this._document,s=this._elementInfo.get(i);if(s)return r&&(s.checkChildren=!0),s.subject;let a={checkChildren:r,subject:new me,rootNode:o};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=pr(n),i=this._elementInfo.get(r);i&&(i.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(i))}focusVia(n,r,i){let o=pr(n),s=this._document.activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,r,l)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(i))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===pi.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===pi.IMMEDIATE){clearTimeout(this._originTimeoutId);let i=this._originFromTouchInteraction?Pu:1;this._originTimeoutId=setTimeout(()=>this._origin=null,i)}})}_onFocus(n,r){let i=this._elementInfo.get(r),o=rt(n);!i||!i.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),i)}_onBlur(n,r){let i=this._elementInfo.get(r);!i||i.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(i,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,i=this._rootNodeFocusListenerCount.get(r)||0;i||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,hi),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,hi)}),this._rootNodeFocusListenerCount.set(r,i+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ma(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let i=this._rootNodeFocusListenerCount.get(r);i>1?this._rootNodeFocusListenerCount.set(r,i-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,hi),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,hi),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,i){this._setClasses(n,r),this._emitOrigin(i,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((i,o)=>{(o===n||i.checkChildren&&o.contains(n))&&r.push([o,i])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:i}=this._inputModalityDetector;if(i!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let s=0;s<o.length;s++)if(o[s].contains(r))return!0}return!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ku=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ce({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(r,i){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
17
+ `],encapsulation:2,changeDetection:0})}return t})();var Rs=(()=>{class t{_platform=P($e);constructor(){}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return jm(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=Hm(qm(n));if(r&&(Fu(r)===-1||!this.isVisible(r)))return!1;let i=n.nodeName.toLowerCase(),o=Fu(n);return n.hasAttribute("contenteditable")?o!==-1:i==="iframe"||i==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Km(n)?!1:i==="audio"?n.hasAttribute("controls")?o!==-1:!1:i==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return Xm(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Hm(t){try{return t.frameElement}catch{return null}}function jm(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function Gm(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Wm(t){return Ym(t)&&t.type=="hidden"}function $m(t){return zm(t)&&t.hasAttribute("href")}function Ym(t){return t.nodeName.toLowerCase()=="input"}function zm(t){return t.nodeName.toLowerCase()=="a"}function Vu(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function Fu(t){if(!Vu(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Km(t){let e=t.nodeName.toLowerCase(),n=e==="input"&&t.type;return n==="text"||n==="password"||e==="select"||e==="textarea"}function Xm(t){return Wm(t)?!1:Gm(t)||$m(t)||t.hasAttribute("contenteditable")||Vu(t)}function qm(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var xs=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_enabled=!0;constructor(e,n,r,i,o=!1,s){this._element=e,this._checker=n,this._ngZone=r,this._document=i,this._injector=s,o||this.attachAnchors()}destroy(){let e=this._startAnchor,n=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(n=>{this._executeOnStable(()=>n(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let n=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){let r=this._getFirstTabbableElement(n);return r?.focus(e),!!r}return n.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let n=this._getRegionBoundary("start");return n&&n.focus(e),!!n}focusLastTabbableElement(e){let n=this._getRegionBoundary("end");return n&&n.focus(e),!!n}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let n=e.children;for(let r=0;r<n.length;r++){let i=n[r].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(n[r]):null;if(i)return i}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let n=e.children;for(let r=n.length-1;r>=0;r--){let i=n[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[r]):null;if(i)return i}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,n){e?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?pt(e,{injector:this._injector}):setTimeout(e)}},Bu=(()=>{class t{_checker=P(Rs);_ngZone=P(Fe);_document=P(ge);_injector=P(Oe);constructor(){P(xn).load(ku)}create(n,r=!1){return new xs(n,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Uu(t,...e){return e.length?e.some(n=>t[n]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Ns(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ut(t){return t==null?"":typeof t=="string"?t:`${t}px`}var Hu=Ha();function Wu(t){return new Ms(t.get(ja),t.get(ge))}var Ms=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,n){this._viewportRuler=e,this._document=n}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=ut(-this._previousScrollPosition.left),e.style.top=ut(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,n=this._document.body,r=e.style,i=n.style,o=r.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Hu&&(r.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Hu&&(r.scrollBehavior=o,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let n=this._document.documentElement,r=this._viewportRuler.getViewportSize();return n.scrollHeight>r.height||n.scrollWidth>r.width}};var Ps=class{enable(){}disable(){}attach(){}};var rr=class{positionStrategy;scrollStrategy=new Ps;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let n=Object.keys(e);for(let r of n)e[r]!==void 0&&(this[r]=e[r])}}};var $u=(()=>{class t{_attachedOverlays=[];_document=P(ge);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zm=(()=>{class t extends $u{_ngZone=P(Fe);_renderer=P(zt).createRenderer(null,null);_cleanupKeydown;add(n){super.add(n),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=n=>{let r=this._attachedOverlays;for(let i=r.length-1;i>-1;i--)if(r[i]._keydownEvents.observers.length>0){this._ngZone.run(()=>r[i]._keydownEvents.next(n));break}};static \u0275fac=(()=>{let n;return function(i){return(n||(n=Tn(t)))(i||t)}})();static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qm=(()=>{class t extends $u{_platform=P($e);_ngZone=P(Fe);_renderer=P(zt).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(n){if(super.add(n),!this._isAttached){let r=this._document.body,i={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(r,"pointerdown",this._pointerDownListener,i),o.listen(r,"click",this._clickListener,i),o.listen(r,"auxclick",this._clickListener,i),o.listen(r,"contextmenu",this._clickListener,i)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(n=>n()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=n=>{this._pointerDownEventTarget=rt(n)};_clickListener=n=>{let r=rt(n),i=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){let a=o[s];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(ju(a.overlayElement,r)||ju(a.overlayElement,i))break;let l=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(n)):l.next(n)}};static \u0275fac=(()=>{let n;return function(i){return(n||(n=Tn(t)))(i||t)}})();static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ju(t,e){let n=typeof ShadowRoot<"u"&&ShadowRoot,r=e;for(;r;){if(r===t)return!0;r=n&&r instanceof ShadowRoot?r.host:r.parentNode}return!1}var Yu=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ce({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(r,i){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
18
+ `],encapsulation:2,changeDetection:0})}return t})(),Fs=(()=>{class t{_platform=P($e);_containerElement;_document=P(ge);_styleLoader=P(xn);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||Ns()){let i=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;o<i.length;o++)i[o].remove()}let r=this._document.createElement("div");r.classList.add(n),Ns()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}_loadStyles(){this._styleLoader.load(Yu)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ls=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,n,r,i){this._renderer=n,this._ngZone=r,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=n.listen(this.element,"click",i)}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},ir=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new me;_attachments=new me;_detachments=new me;_positionStrategy;_scrollStrategy;_locationChanges=aa.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new me;_outsidePointerEvents=new me;_afterNextRenderRef;constructor(e,n,r,i,o,s,a,l,d,g=!1,f,E){this._portalOutlet=e,this._host=n,this._pane=r,this._config=i,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=d,this._animationsDisabled=g,this._injector=f,this._renderer=E,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let n=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=pt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof n?.onDestroy=="function"&&n.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),n}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=y(y({},this._config),e),this._updateElementSize()}setDirection(e){this._config=U(y({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=ut(this._config.width),e.height=ut(this._config.height),e.minWidth=ut(this._config.minWidth),e.minHeight=ut(this._config.minHeight),e.maxWidth=ut(this._config.maxWidth),e.maxHeight=ut(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Ls(this._document,this._renderer,this._ngZone,n=>{this._backdropClick.next(n)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e))}):this._backdropRef.element.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(e,n,r){let i=Ua(n||[]).filter(o=>!!o);i.length&&(r?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){let e=!1;try{this._detachContentAfterRenderRef=pt(()=>{e=!0,this._detachContent()},{injector:this._injector})}catch(n){if(e)throw n;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.()}};var Gu="cdk-global-overlay-wrapper";function zu(t){return new ks}var ks=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let n=e.getConfig();this._overlayRef=e,this._width&&!n.width&&e.updateSize({width:this._width}),this._height&&!n.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Gu),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:i,height:o,maxWidth:s,maxHeight:a}=r,l=(i==="100%"||i==="100vw")&&(!s||s==="100%"||s==="100vw"),d=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),g=this._xPosition,f=this._xOffset,E=this._overlayRef.getConfig().direction==="rtl",v="",w="",M="";l?M="flex-start":g==="center"?(M="center",E?w=f:v=f):E?g==="left"||g==="end"?(M="flex-end",v=f):(g==="right"||g==="start")&&(M="flex-start",w=f):g==="left"||g==="start"?(M="flex-start",v=f):(g==="right"||g==="end")&&(M="flex-end",w=f),e.position=this._cssPosition,e.marginLeft=l?"0":v,e.marginTop=d?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":w,n.justifyContent=M,n.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,r=n.style;n.classList.remove(Gu),r.justifyContent=r.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}};function Ku(t,e){t.get(xn).load(Yu);let n=t.get(Fs),r=t.get(ge),i=t.get(mr),o=t.get(Ni),s=t.get(Rn),a=r.createElement("div"),l=r.createElement("div");l.id=i.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),a.appendChild(l),n.getContainerElement().appendChild(a);let d=new fi(l,o,t),g=new rr(e),f=t.get(wn,null,{optional:!0})||t.get(zt).createRenderer(null,null);return g.direction=g.direction||s.value,new ir(d,a,l,g,t.get(Fe),t.get(Zm),r,t.get(Ma),t.get(Qm),e?.disableAnimations??t.get(_a,null,{optional:!0})==="NoopAnimations",t.get(lr),f)}function e_(t,e){}var yn=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var t_=(()=>{class t extends vn{_elementRef=P(xe);_focusTrapFactory=P(Bu);_config;_interactivityChecker=P(Rs);_ngZone=P(Fe);_focusMonitor=P(Lu);_renderer=P(wn);_changeDetectorRef=P(ki);_injector=P(Oe);_platform=P($e);_document=P(ge);_portalOutlet;_focusTrapped=new me;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=P(yn,{optional:!0})||new yn,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(n){this._ariaLabelledByQueue.push(n),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(n){let r=this._ariaLabelledByQueue.indexOf(n);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(n);return this._contentAttached(),r}attachTemplatePortal(n){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(n);return this._contentAttached(),r}attachDomPortal=n=>{this._portalOutlet.hasAttached();let r=this._portalOutlet.attachDomPortal(n);return this._contentAttached(),r};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(n,r){this._interactivityChecker.isFocusable(n)||(n.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{o(),s(),n.removeAttribute("tabindex")},o=this._renderer.listen(n,"blur",i),s=this._renderer.listen(n,"mousedown",i)})),n.focus(r)}_focusByCssSelector(n,r){let i=this._elementRef.nativeElement.querySelector(n);i&&this._forceFocus(i,r)}_trapFocus(n){this._isDestroyed||pt(()=>{let r=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||r.focus(n);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(n)||this._focusDialogContainer(n);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',n);break;default:this._focusByCssSelector(this._config.autoFocus,n);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let n=this._config.restoreFocus,r=null;if(typeof n=="string"?r=this._document.querySelector(n):typeof n=="boolean"?r=n?this._elementFocusedBeforeDialogWasOpened:null:n&&(r=n),this._config.restoreFocus&&r&&typeof r.focus=="function"){let i=hr(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(n){this._elementRef.nativeElement.focus?.(n)}_containsFocus(){let n=this._elementRef.nativeElement,r=hr();return n===r||n.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=hr()))}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ce({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(r,i){if(r&1&&Ia(As,7),r&2){let o;wa(o=Da())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,i){r&2&&Xt("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[At],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,i){r&1&&va(0,e_,0,0,"ng-template",0)},dependencies:[As],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
19
+ `],encapsulation:2})}return t})(),or=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new me;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,n){this.overlayRef=e,this.config=n,this.disableClose=n.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=n.id,this.keydownEvents.subscribe(r=>{r.keyCode===27&&!this.disableClose&&!Uu(r)&&(r.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=e.detachments().subscribe(()=>{n.closeOnOverlayDetachments!==!1&&this.close()})}close(e,n){if(this._canClose(e)){let r=this.closed;this.containerInstance._closeInteractionType=n?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),r.next(e),r.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",n=""){return this.overlayRef.updateSize({width:e,height:n}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}_canClose(e){let n=this.config;return!!this.containerInstance&&(!n.closePredicate||n.closePredicate(e,n,this.componentInstance))}},n_=new ke("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=P(Oe);return()=>Wu(t)}}),r_=new ke("DialogData"),i_=new ke("DefaultDialogConfig");function o_(t){let e=ht(t),n=new Re;return{valueSignal:e,get value(){return e()},change:n,ngOnDestroy(){n.complete()}}}var D0=(()=>{class t{_injector=P(Oe);_defaultOptions=P(i_,{optional:!0});_parentDialog=P(t,{optional:!0,skipSelf:!0});_overlayContainer=P(Fs);_idGenerator=P(mr);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new me;_afterOpenedAtThisLevel=new me;_ariaHiddenElements=new Map;_scrollStrategy=P(n_);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=ua(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(pa(void 0)));constructor(){}open(n,r){let i=this._defaultOptions||new yn;r=y(y({},i),r),r.id=r.id||this._idGenerator.getId("cdk-dialog-"),r.id&&this.getDialogById(r.id);let o=this._getOverlayConfig(r),s=Ku(this._injector,o),a=new or(s,r),l=this._attachContainer(s,a,r);if(a.containerInstance=l,!this.openDialogs.length){let d=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(da(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(d)}):this._hideNonDialogContentFromAssistiveTechnology(d)}return this._attachDialogContent(n,a,l,r),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Vs(this.openDialogs,n=>n.close())}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){Vs(this._openDialogsAtThisLevel,n=>{n.config.closeOnDestroy===!1&&this._removeOpenDialog(n,!1)}),Vs(this._openDialogsAtThisLevel,n=>n.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(n){let r=new rr({positionStrategy:n.positionStrategy||zu().centerHorizontally().centerVertically(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,width:n.width,height:n.height,disposeOnNavigation:n.closeOnNavigation,disableAnimations:n.disableAnimations});return n.backdropClass&&(r.backdropClass=n.backdropClass),r}_attachContainer(n,r,i){let o=i.injector||i.viewContainerRef?.injector,s=[{provide:yn,useValue:i},{provide:or,useValue:r},{provide:ir,useValue:n}],a;i.container?typeof i.container=="function"?a=i.container:(a=i.container.type,s.push(...i.container.providers(i))):a=t_;let l=new _n(a,i.viewContainerRef,Oe.create({parent:o||this._injector,providers:s}));return n.attach(l).instance}_attachDialogContent(n,r,i,o){if(n instanceof dr){let s=this._createInjector(o,r,i,void 0),a={$implicit:o.data,dialogRef:r};o.templateContext&&(a=y(y({},a),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new gn(n,null,a,s))}else{let s=this._createInjector(o,r,i,this._injector),a=i.attachComponentPortal(new _n(n,o.viewContainerRef,s));r.componentRef=a,r.componentInstance=a.instance}}_createInjector(n,r,i,o){let s=n.injector||n.viewContainerRef?.injector,a=[{provide:r_,useValue:n.data},{provide:or,useValue:r}];return n.providers&&(typeof n.providers=="function"?a.push(...n.providers(r,n,i)):a.push(...n.providers)),n.direction&&(!s||!s.get(Rn,null,{optional:!0}))&&a.push({provide:Rn,useValue:o_(n.direction)}),Oe.create({parent:s||o,providers:a})}_removeOpenDialog(n,r){let i=this.openDialogs.indexOf(n);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(n){if(n.parentElement){let r=n.parentElement.children;for(let i=r.length-1;i>-1;i--){let o=r[i];o!==n&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(r){return new(r||t)};static \u0275prov=_e({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vs(t,e){let n=t.length;for(;n--;)e(t[n])}var mi=class{lastWidth;lastHeight;resizeTimeout=null;debounceDelay=200;onResizeCallback;constructor(e){this.onResizeCallback=e,this.lastWidth=window.innerWidth,this.lastHeight=window.innerHeight,window.addEventListener("resize",this.debouncedResize),window.addEventListener("orientationchange",this.handleImmediateResize)}destroy(){window.removeEventListener("resize",this.debouncedResize),window.removeEventListener("orientationchange",this.handleImmediateResize)}handleImmediateResize=()=>{this.triggerResize()};debouncedResize=()=>{this.resizeTimeout!==null&&clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.triggerResize()},this.debounceDelay)};triggerResize(){let e=window.innerWidth,n=window.innerHeight;(n!==this.lastHeight||e!==this.lastWidth)&&(this.onResizeCallback(),this.lastWidth=e,this.lastHeight=n)}};var s_=[[["swiper-slides"]]],a_=["swiper-slides"],Xu=class t{options=We.required();slideChange=gt();elementRef=P(xe);swiperInstance;initToken=0;resizeDebouncer=new mi(this.onResize.bind(this));constructor(){Pt(()=>{this.options()&&this.reInitSwiper()})}get swiper(){return this.swiperInstance}ngOnDestroy(){this.resizeDebouncer?.destroy(),this.swiperInstance?.destroy?.(),this.swiperInstance=void 0}async initSwiper(e=this.initToken){if(await Xa(),e!==this.initToken)return;let n=this.elementRef.nativeElement;this.swiperInstance=new window.CooeeSDK.Swiper(n,y({navigation:{nextEl:n.querySelector(".swiper-button-next"),prevEl:n.querySelector(".swiper-button-prev")}},this.options())),this.swiperInstance.on("slideChange",r=>{this.slideChange.emit(r)})}onResize(){this.swiperInstance?this.swiperInstance.update():this.reInitSwiper()}reInitSwiper(){this.initToken++;let e=this.initToken;this.swiperInstance?.destroy?.(),this.swiperInstance=void 0,this.initSwiper(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ce({type:t,selectors:[["cooee-swiper"]],hostAttrs:[1,"swiper"],inputs:{options:[1,"options"]},outputs:{slideChange:"slideChange"},ngContentSelectors:a_,decls:4,vars:0,consts:[[1,"swiper-wrapper"],[1,"swiper-button-prev"],[1,"swiper-button-next"]],template:function(n,r){n&1&&(Ca(s_),ue(0,"div",0),Ta(1),ve(),Ve(2,"div",1)(3,"div",2))},styles:[`:host{display:block}.swiper-wrapper{scrollbar-width:none}.swiper-wrapper::-webkit-scrollbar{display:none}
20
+ `],encapsulation:2})};function c_(t,e){if(t&1&&(ue(0,"span",1),Ee(1),ve()),t&2){Ne();let n=_t(0);z(),Zt(n.heading)}}function l_(t,e){if(t&1&&(ue(0,"span",2),Ee(1),ve()),t&2){Ne();let n=_t(0);z(),Zt(n.subHeading)}}var qu=class t{card=We.required();linkClicked=gt();linkAfterSanity(){return this.card()?.buttonLink?.startsWith("https")?this.card().buttonLink:null}clickLink(e){e.stopPropagation(),this.linkClicked.emit()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ce({type:t,selectors:[["cooee-video-card"]],inputs:{card:[1,"card"]},outputs:{linkClicked:"linkClicked"},decls:6,vars:6,consts:[[1,"video-card-details"],[1,"heading"],[1,"subheading"],["rel","noopener noreferrer",1,"cta-button",3,"click","href","target"]],template:function(n,r){if(n&1){let i=Jt();Rt(0),ue(1,"div",0),je(2,c_,2,1,"span",1),je(3,l_,2,1,"span",2),ue(4,"a",3),xt("click",function(s){return It(i),wt(r.clickLink(s))}),Ee(5),ve()()}if(n&2){let i=Nt(r.card());z(2),Ge(i!=null&&i.heading?2:-1),z(),Ge(i!=null&&i.subHeading?3:-1),z(),mt("href",r.linkAfterSanity(),In)("target",i.newTab?"_blank":"_self"),z(),Qt(" ",i==null?null:i.buttonTitle," ")}},styles:["[_nghost-%COMP%]{display:block}.video-card-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.75px;font-size:14px;line-height:normal}.video-card-details[_ngcontent-%COMP%] .cta-button[_ngcontent-%COMP%]{text-align:center;background-color:#fff;border-radius:var(--lc-button-radius);padding:7.5px 15px;font-weight:500;color:var(--lc-color-button);font-size:12px;border:0;text-decoration:none}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%], .video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{text-align:start;color:#000;font-weight:600;overflow:hidden}.video-card-details[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{font-size:18px}.video-card-details[_ngcontent-%COMP%] .subheading[_ngcontent-%COMP%]{font-size:16px}"],changeDetection:0})};function u_(t,e){t&1&&(ur(),Ve(0,"path",3))}function d_(t,e){t&1&&(ur(),Ve(0,"path",4))}var Ju=class t{muted=Ra.required();videoEl=We.required();toggled=gt();constructor(){Pt(()=>{this.videoEl().muted=this.muted(),this.muted||this.videoEl().play()})}toggle(e){e.stopPropagation(),e.preventDefault(),this.muted.update(n=>!n),this.toggled.emit(this.muted())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ce({type:t,selectors:[["cooee-mute-toggle"]],inputs:{muted:[1,"muted"],videoEl:[1,"videoEl"]},outputs:{muted:"mutedChange",toggled:"toggled"},decls:5,vars:3,consts:[["type","button",1,"lc:bg-black/50",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#fff"],["d","M0 0h24v24H0V0z","fill","none"],["d","M4.34 2.93L2.93 4.34 7.29 8.7 7 9H3v6h4l5 5v-6.59l4.18 4.18c-.65.49-1.38.88-2.18 1.11v2.06c1.34-.3 2.57-.92 3.61-1.75l2.05 2.05 1.41-1.41L4.34 2.93zM10 15.17L7.83 13H5v-2h2.83l.88-.88L10 11.41v3.76zM19 12c0 .82-.15 1.61-.41 2.34l1.53 1.53c.56-1.17.88-2.48.88-3.87 0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zm-7-8l-1.88 1.88L12 7.76zm4.5 8c0-1.77-1.02-3.29-2.5-4.03v1.79l2.48 2.48c.01-.08.02-.16.02-.24z"],["d","M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"]],template:function(n,r){n&1&&(ue(0,"button",0),xt("click",function(o){return r.toggle(o)}),ur(),ue(1,"svg",1),Ve(2,"path",2),je(3,u_,1,0,":svg:path",3)(4,d_,1,0,":svg:path",4),ve()()),n&2&&(Dn("unmute",!r.muted()),z(3),Ge(r.muted()?3:4))},styles:["button[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border:none;border-radius:100%}"]})};var _i=class t{transform(e){return e==null?null:cs(e)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=ga({name:"cooeeCurrency",type:t,pure:!0})};function f_(t,e){if(t&1&&(Ve(0,"span",6),An(1,"cooeeCurrency"),An(2,"safeHtml")),t&2){Ne();let n=_t(7);mt("innerHTML",On(2,3,On(1,1,n.cmp)),Oi)}}function h_(t,e){t&1&&Ee(0," Out of Stock ")}function p_(t,e){t&1&&Ee(0," Add To Cart ")}var Zu=class t{buttonClick=gt();item=We.required();isButtonDisabled=Mt(()=>{let e=this.item();return e.hasVariants()?!e.vars.some(n=>n.isAvailable):!e.selectedOrFirstVariant.value.isAvailable});addToCartClicked(e){e.stopPropagation(),this.buttonClick.emit(this.item())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ce({type:t,selectors:[["cooee-item-card"]],inputs:{item:[1,"item"]},outputs:{buttonClick:"buttonClick"},decls:20,vars:14,consts:[[1,"card-body"],[1,"item-image",3,"alt","src"],[1,"item-info"],[1,"item-name"],[1,"prices"],[1,"item-price",3,"innerHTML"],[1,"item-cmp-price",3,"innerHTML"],["type","button",1,"shop-now-button",3,"click","href"],[1,"card-footer"],["type","button",1,"cta-button",3,"click","disabled"],["href","/cart","title","View Cart",1,"view-cart-button"],["width","32","height","32","src","https://img.icons8.com/material-sharp/48/shopping-cart.png","alt","shopping-cart"]],template:function(n,r){if(n&1){let i=Jt();Ea(0),ue(1,"div",0),Ve(2,"img",1),ue(3,"div",2)(4,"div",3),Ee(5),ve(),ue(6,"div",4),Rt(7),Ve(8,"span",5),An(9,"cooeeCurrency"),An(10,"safeHtml"),je(11,f_,3,5,"span",6),ve(),ue(12,"a",7),xt("click",function(s){return It(i),wt(s.stopPropagation())}),Ee(13," Shop now "),ve()()(),ue(14,"div",8)(15,"button",9),xt("click",function(s){return It(i),wt(r.addToCartClicked(s))}),je(16,h_,1,0)(17,p_,1,0),ve(),ue(18,"a",10),Ve(19,"img",11),ve()(),ba()}if(n&2){let i=r.item().selectedOrFirstVariant.value;z(2),mt("alt",Aa(r.item().name))("src",r.item().firstImageURL,In),z(3),Qt(" ",r.item().name," "),z(2);let o=Nt(i.price);z(),mt("innerHTML",On(10,12,On(9,10,o.d)),Oi),z(3),Ge(o.cmp?11:-1),z(),mt("href","/products/"+r.item().slug,In),z(3),mt("disabled",r.isButtonDisabled()),z(),Ge(r.isButtonDisabled()?16:17)}},dependencies:[_i,ka],styles:["[_nghost-%COMP%]{max-width:100%;position:relative;display:flex;flex-direction:column;gap:8px;padding:8px}.card-body[_ngcontent-%COMP%]{display:flex;gap:8px;width:100%;align-items:flex-start}.item-image[_ngcontent-%COMP%]{width:70px;height:70px;object-fit:cover;box-sizing:border-box;border-radius:var(--lc-media-radius, 8px)}.item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.5px;font-size:10.5px}.item-name[_ngcontent-%COMP%]{font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;line-height:normal;color:rgb(var(--lc-color-text))}.item-price[_ngcontent-%COMP%]{font-size:16px;line-height:normal;color:rgb(var(--lc-color-text))}.item-cmp-price[_ngcontent-%COMP%]{font-size:16px;line-height:normal;color:rgba(var(--lc-color-text),.75);margin-left:10px;text-decoration:line-through;display:none}.card-footer[_ngcontent-%COMP%]{display:flex;gap:4px;align-items:center}.cta-button[_ngcontent-%COMP%]{padding:10px;border:none;width:100%;text-align:center;font-weight:500;font-size:16px;background:rgb(var(--lc-color-button));color:rgb(var(--lc-color-button-text));border-radius:var(--lc-button-radius)}.cta-button[_ngcontent-%COMP%]:hover{filter:brightness(.95)}.cta-button[_ngcontent-%COMP%]:active{filter:brightness(.9)}.cta-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid rgb(var(--lc-color-primary, 0, 0, 0));outline-offset:2px}.cta-button[aria-busy=true][_ngcontent-%COMP%], .cta-button[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:default}.shop-now-button[_ngcontent-%COMP%]{display:none;background:rgb(var(--lc-color-button));color:rgb(var(--lc-color-button-text));border-radius:var(--lc-button-radius);width:fit-content;height:auto;text-align:center;z-index:4;padding:4px 10px;font-size:12px;text-decoration:none}.view-cart-button[_ngcontent-%COMP%]{display:none}"]})};export{Ye as a,Be as b,T_ as c,vt as d,Xa as e,qa as f,gr as g,tc as h,uf as i,df as j,ff as k,Vi as l,Hi as m,Jl as n,gm as o,cs as p,_i as q,Pm as r,Lm as s,or as t,r_ as u,D0 as v,Xu as w,qu as x,Ju as y,Zu as z};