@letscooee/web-sdk 11.0.0 → 11.1.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@letscooee/web-sdk",
3
3
  "description": "Engage uniquely and boost conversions with AI-powered customer journeys driven by real-time intent",
4
- "version": "11.0.0",
4
+ "version": "11.1.0",
5
5
  "scripts": {
6
6
  "lint": "ng lint",
7
7
  "integrity": "./scripts/validate-integrity.sh",
@@ -77,7 +77,7 @@
77
77
  "@angular/platform-browser": "^20.2.3",
78
78
  "@angular/platform-browser-dynamic": "^20.2.3",
79
79
  "@angular/router": "^20.2.3",
80
- "@letscooee/ts-common": "1.2.4",
80
+ "@letscooee/ts-common": "1.2.6",
81
81
  "@letscooee/url-builder": "^0.0.5",
82
82
  "@preact/signals": "^1.2.3",
83
83
  "@sentry/browser": "9.42.0",
@@ -1,27 +0,0 @@
1
- import{$a as Va,Aa as Dn,Ab as za,B as Ne,Ba as An,Bb as Xa,C as ye,Ca as pe,Cb as vr,Da as Ra,Db as at,E as Ge,Ea as Na,Eb as Ye,Fa as Ma,Ga as Pa,Gb as yr,H as Cn,Ha as ka,Hb as Nn,I as Me,Ib as Ka,J as Ia,Jb as Mn,K as In,Kb as qa,L as Tn,Lb as Za,Ma as xn,Mb as Er,N as G,Na as mr,Oa as gr,Pa as Ie,Q as hr,Qa as Kt,Ra as qt,S as Yt,T as wn,U as Fi,V as Vi,Va as Mt,W as ee,Wa as Pt,X as Rt,Xa as yt,Y as zt,Ya as La,Z as Ta,Za as Fa,_ as Nt,a as ma,aa as wa,ab as _r,ba as Pe,bb as On,c as ve,ca as Ue,cb as Rn,d as ga,da as _t,ea as Bi,fa as $e,g as _a,ga as Se,gb as ot,ha as Ce,hb as st,i as va,ib as Et,ja as Ui,jb as Ee,ka as Hi,l as ya,la as Da,lb as Ba,m as Ea,ma as rt,mb as Gi,n as ba,na as vt,o as Sa,oa as ji,pa as le,pb as Ua,q as Ca,qa as fe,qb as Ha,ra as it,s as de,sb as ja,t as At,u as Be,v as O,va as Aa,vb as Ga,w as pr,wa as xa,x as xt,xa as Oa,xb as $a,y as Ot,ya as Xt,yb as Wa,za as We,zb as Ya}from"./chunk-WCCK4F5X.js";import{a as y,b as V,c as Sn,d as ha,e as ki,f as Li,g as fr}from"./chunk-V7UGKYBN.js";var ec=ki((Qa,Sr)=>{"use strict";(function(t){"use strict";var e={};e.VERSION="1.6.1";var n,r={},i=function(d,_){return function(){return _.apply(d,arguments)}},o=function(){var d=arguments,_=d[0],f,E;for(E=1;E<d.length;E++)for(f in d[E])!(f in _)&&d[E].hasOwnProperty(f)&&(_[f]=d[E][f]);return _},s=function(d,_){return{value:d,name:_}};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 _=this.context.filterLevel;return d.value>=_.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,_){n&&this.enabledFor(d)&&n(_,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 _ in r)r.hasOwnProperty(_)&&r[_].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 _={},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,N;v.level===e.TIME?(N=(v.name?"["+v.name+"] ":"")+E[0],E[1]==="start"?console.time?console.time(N):_[N]=new Date().getTime():console.timeEnd?console.timeEnd(N):f(w,[N+": "+(new Date().getTime()-_[N])+"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 Sr<"u"&&Sr.exports?Sr.exports=e:(e._prevLogger=t.Logger,e.noConflict=function(){return t.Logger=e._prevLogger,e},t.Logger=e)})(Qa)});var fc=ki((dc,Yi)=>{"use strict";(function(t){if(typeof dc=="object"&&typeof Yi<"u")Yi.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(_,f){if(!o[_]){if(!i[_]){var E=typeof Sn=="function"&&Sn;if(!f&&E)return E(_,!0);if(l)return l(_,!0);var v=new Error("Cannot find module '"+_+"'");throw v.code="MODULE_NOT_FOUND",v}var w=o[_]={exports:{}};i[_][0].call(w.exports,function(N){var R=i[_][1][N];return a(R||N)},w,w.exports,r,i,o,s)}return o[_].exports}for(var l=typeof Sn=="function"&&Sn,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,_=new a(N),f=s.document.createTextNode("");_.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=N,l=function(){E.port2.postMessage(0)}}else"document"in s&&"onreadystatechange"in s.document.createElement("script")?l=function(){var P=s.document.createElement("script");P.onreadystatechange=function(){N(),P.onreadystatechange=null,P.parentNode.removeChild(P),P=null},s.document.documentElement.appendChild(P)}:l=function(){setTimeout(N,0)};var v,w=[];function N(){v=!0;for(var P,M,U=w.length;U;){for(M=w,w=[],P=-1;++P<U;)M[P]();U=w.length}v=!1}i.exports=R;function R(P){w.push(P)===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"],_=["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&&R(this,D)}E.prototype.catch=function(D){return this.then(null,D)},E.prototype.then=function(D,H){if(typeof D!="function"&&this.state===_||typeof H!="function"&&this.state===d)return this;var F=new this.constructor(a);if(this.state!==f){var j=this.state===_?D:H;w(F,j,this.outcome)}else this.queue.push(new v(F,D,H));return F};function v(D,H,F){this.promise=D,typeof H=="function"&&(this.onFulfilled=H,this.callFulfilled=this.otherCallFulfilled),typeof F=="function"&&(this.onRejected=F,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,H,F){s(function(){var j;try{j=H(F)}catch(Z){return l.reject(D,Z)}j===D?l.reject(D,new TypeError("Cannot resolve promise with itself")):l.resolve(D,j)})}l.resolve=function(D,H){var F=P(N,H);if(F.status==="error")return l.reject(D,F.value);var j=F.value;if(j)R(D,j);else{D.state=_,D.outcome=H;for(var Z=-1,K=D.queue.length;++Z<K;)D.queue[Z].callFulfilled(H)}return D},l.reject=function(D,H){D.state=d,D.outcome=H;for(var F=-1,j=D.queue.length;++F<j;)D.queue[F].callRejected(H);return D};function N(D){var H=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof H=="function")return function(){H.apply(D,arguments)}}function R(D,H){var F=!1;function j(Oe){F||(F=!0,l.reject(D,Oe))}function Z(Oe){F||(F=!0,l.resolve(D,Oe))}function K(){H(Z,j)}var se=P(K);se.status==="error"&&j(se.value)}function P(D,H){var F={};try{F.value=D(H),F.status="success"}catch(j){F.status="error",F.value=j}return F}E.resolve=M;function M(D){return D instanceof this?D:l.resolve(new this(a),D)}E.reject=U;function U(D){var H=new this(a);return l.reject(H,D)}E.all=Ae;function Ae(D){var H=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var F=D.length,j=!1;if(!F)return this.resolve([]);for(var Z=new Array(F),K=0,se=-1,Oe=new this(a);++se<F;)tt(D[se],se);return Oe;function tt(yn,lr){H.resolve(yn).then(Ti,function($t){j||(j=!0,l.reject(Oe,$t))});function Ti($t){Z[lr]=$t,++K===F&&!j&&(j=!0,l.resolve(Oe,Z))}}}E.race=xe;function xe(D){var H=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var F=D.length,j=!1;if(!F)return this.resolve([]);for(var Z=-1,K=new this(a);++Z<F;)se(D[Z]);return K;function se(Oe){H.resolve(Oe).then(function(tt){j||(j=!0,l.resolve(K,tt))},function(tt){j||(j=!0,l.reject(K,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,p){if(!(c instanceof p))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 _(){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),p=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!c||p)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(c,p){c=c||[],p=p||{};try{return new Blob(c,p)}catch(h){if(h.name!=="TypeError")throw h;for(var u=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,m=new u,g=0;g<c.length;g+=1)m.append(c[g]);return m.getBlob(p.type)}}typeof Promise>"u"&&r(3);var E=Promise;function v(c,p){p&&c.then(function(u){p(null,u)},function(u){p(u)})}function w(c,p,u){typeof p=="function"&&c.then(p),typeof u=="function"&&c.catch(u)}function N(c){return typeof c!="string"&&(console.warn(c+" used as a key, but it is not a string."),c=String(c)),c}function R(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var P="local-forage-detect-blob-support",M=void 0,U={},Ae=Object.prototype.toString,xe="readonly",D="readwrite";function H(c){for(var p=c.length,u=new ArrayBuffer(p),m=new Uint8Array(u),g=0;g<p;g++)m[g]=c.charCodeAt(g);return u}function F(c){return new E(function(p){var u=c.transaction(P,D),m=f([""]);u.objectStore(P).put(m,"key"),u.onabort=function(g){g.preventDefault(),g.stopPropagation(),p(!1)},u.oncomplete=function(){var g=navigator.userAgent.match(/Chrome\/(\d+)/),h=navigator.userAgent.match(/Edge\//);p(h||!g||parseInt(g[1],10)>=43)}}).catch(function(){return!1})}function j(c){return typeof M=="boolean"?E.resolve(M):F(c).then(function(p){return M=p,M})}function Z(c){var p=U[c.name],u={};u.promise=new E(function(m,g){u.resolve=m,u.reject=g}),p.deferredOperations.push(u),p.dbReady?p.dbReady=p.dbReady.then(function(){return u.promise}):p.dbReady=u.promise}function K(c){var p=U[c.name],u=p.deferredOperations.pop();if(u)return u.resolve(),u.promise}function se(c,p){var u=U[c.name],m=u.deferredOperations.pop();if(m)return m.reject(p),m.promise}function Oe(c,p){return new E(function(u,m){if(U[c.name]=U[c.name]||Xs(),c.db)if(p)Z(c),c.db.close();else return u(c.db);var g=[c.name];p&&g.push(c.version);var h=d.open.apply(d,g);p&&(h.onupgradeneeded=function(b){var S=h.result;try{S.createObjectStore(c.storeName),b.oldVersion<=1&&S.createObjectStore(P)}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}}),h.onerror=function(b){b.preventDefault(),m(h.error)},h.onsuccess=function(){var b=h.result;b.onversionchange=function(S){S.target.close()},u(b),K(c)}})}function tt(c){return Oe(c,!1)}function yn(c){return Oe(c,!0)}function lr(c,p){if(!c.db)return!0;var u=!c.db.objectStoreNames.contains(c.storeName),m=c.version<c.db.version,g=c.version>c.db.version;if(m&&(c.version!==p&&console.warn('The database "'+c.name+`" can't be downgraded from version `+c.db.version+" to version "+c.version+"."),c.version=c.db.version),g||u){if(u){var h=c.db.version+1;h>c.version&&(c.version=h)}return!0}return!1}function Ti(c){return new E(function(p,u){var m=new FileReader;m.onerror=u,m.onloadend=function(g){var h=btoa(g.target.result||"");p({__local_forage_encoded_blob:!0,data:h,type:c.type})},m.readAsBinaryString(c)})}function $t(c){var p=H(atob(c.data));return f([p],{type:c.type})}function zs(c){return c&&c.__local_forage_encoded_blob}function ld(c){var p=this,u=p._initReady().then(function(){var m=U[p._dbInfo.name];if(m&&m.dbReady)return m.dbReady});return w(u,c,c),u}function ud(c){Z(c);for(var p=U[c.name],u=p.forages,m=0;m<u.length;m++){var g=u[m];g._dbInfo.db&&(g._dbInfo.db.close(),g._dbInfo.db=null)}return c.db=null,tt(c).then(function(h){return c.db=h,lr(c)?yn(c):h}).then(function(h){c.db=p.db=h;for(var b=0;b<u.length;b++)u[b]._dbInfo.db=h}).catch(function(h){throw se(c,h),h})}function nt(c,p,u,m){m===void 0&&(m=1);try{var g=c.db.transaction(c.storeName,p);u(null,g)}catch(h){if(m>0&&(!c.db||h.name==="InvalidStateError"||h.name==="NotFoundError"))return E.resolve().then(function(){if(!c.db||h.name==="NotFoundError"&&!c.db.objectStoreNames.contains(c.storeName)&&c.version<=c.db.version)return c.db&&(c.version=c.db.version+1),yn(c)}).then(function(){return ud(c).then(function(){nt(c,p,u,m-1)})}).catch(u);u(h)}}function Xs(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function dd(c){var p=this,u={db:null};if(c)for(var m in c)u[m]=c[m];var g=U[u.name];g||(g=Xs(),U[u.name]=g),g.forages.push(p),p._initReady||(p._initReady=p.ready,p.ready=ld);var h=[];function b(){return E.resolve()}for(var S=0;S<g.forages.length;S++){var C=g.forages[S];C!==p&&h.push(C._initReady().catch(b))}var I=g.forages.slice(0);return E.all(h).then(function(){return u.db=g.db,tt(u)}).then(function(T){return u.db=T,lr(u,p._defaultConfig.version)?yn(u):T}).then(function(T){u.db=g.db=T,p._dbInfo=u;for(var x=0;x<I.length;x++){var B=I[x];B!==p&&(B._dbInfo.db=u.db,B._dbInfo.version=u.version)}})}function fd(c,p){var u=this;c=N(c);var m=new E(function(g,h){u.ready().then(function(){nt(u._dbInfo,xe,function(b,S){if(b)return h(b);try{var C=S.objectStore(u._dbInfo.storeName),I=C.get(c);I.onsuccess=function(){var T=I.result;T===void 0&&(T=null),zs(T)&&(T=$t(T)),g(T)},I.onerror=function(){h(I.error)}}catch(T){h(T)}})}).catch(h)});return v(m,p),m}function pd(c,p){var u=this,m=new E(function(g,h){u.ready().then(function(){nt(u._dbInfo,xe,function(b,S){if(b)return h(b);try{var C=S.objectStore(u._dbInfo.storeName),I=C.openCursor(),T=1;I.onsuccess=function(){var x=I.result;if(x){var B=x.value;zs(B)&&(B=$t(B));var $=c(B,x.key,T++);$!==void 0?g($):x.continue()}else g()},I.onerror=function(){h(I.error)}}catch(x){h(x)}})}).catch(h)});return v(m,p),m}function hd(c,p,u){var m=this;c=N(c);var g=new E(function(h,b){var S;m.ready().then(function(){return S=m._dbInfo,Ae.call(p)==="[object Blob]"?j(S.db).then(function(C){return C?p:Ti(p)}):p}).then(function(C){nt(m._dbInfo,D,function(I,T){if(I)return b(I);try{var x=T.objectStore(m._dbInfo.storeName);C===null&&(C=void 0);var B=x.put(C,c);T.oncomplete=function(){C===void 0&&(C=null),h(C)},T.onabort=T.onerror=function(){var $=B.error?B.error:B.transaction.error;b($)}}catch($){b($)}})}).catch(b)});return v(g,u),g}function md(c,p){var u=this;c=N(c);var m=new E(function(g,h){u.ready().then(function(){nt(u._dbInfo,D,function(b,S){if(b)return h(b);try{var C=S.objectStore(u._dbInfo.storeName),I=C.delete(c);S.oncomplete=function(){g()},S.onerror=function(){h(I.error)},S.onabort=function(){var T=I.error?I.error:I.transaction.error;h(T)}}catch(T){h(T)}})}).catch(h)});return v(m,p),m}function gd(c){var p=this,u=new E(function(m,g){p.ready().then(function(){nt(p._dbInfo,D,function(h,b){if(h)return g(h);try{var S=b.objectStore(p._dbInfo.storeName),C=S.clear();b.oncomplete=function(){m()},b.onabort=b.onerror=function(){var I=C.error?C.error:C.transaction.error;g(I)}}catch(I){g(I)}})}).catch(g)});return v(u,c),u}function _d(c){var p=this,u=new E(function(m,g){p.ready().then(function(){nt(p._dbInfo,xe,function(h,b){if(h)return g(h);try{var S=b.objectStore(p._dbInfo.storeName),C=S.count();C.onsuccess=function(){m(C.result)},C.onerror=function(){g(C.error)}}catch(I){g(I)}})}).catch(g)});return v(u,c),u}function vd(c,p){var u=this,m=new E(function(g,h){if(c<0){g(null);return}u.ready().then(function(){nt(u._dbInfo,xe,function(b,S){if(b)return h(b);try{var C=S.objectStore(u._dbInfo.storeName),I=!1,T=C.openKeyCursor();T.onsuccess=function(){var x=T.result;if(!x){g(null);return}c===0||I?g(x.key):(I=!0,x.advance(c))},T.onerror=function(){h(T.error)}}catch(x){h(x)}})}).catch(h)});return v(m,p),m}function yd(c){var p=this,u=new E(function(m,g){p.ready().then(function(){nt(p._dbInfo,xe,function(h,b){if(h)return g(h);try{var S=b.objectStore(p._dbInfo.storeName),C=S.openKeyCursor(),I=[];C.onsuccess=function(){var T=C.result;if(!T){m(I);return}I.push(T.key),T.continue()},C.onerror=function(){g(C.error)}}catch(T){g(T)}})}).catch(g)});return v(u,c),u}function Ed(c,p){p=R.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,g;if(!c.name)g=E.reject("Invalid arguments");else{var h=c.name===u.name&&m._dbInfo.db,b=h?E.resolve(m._dbInfo.db):tt(c).then(function(S){var C=U[c.name],I=C.forages;C.db=S;for(var T=0;T<I.length;T++)I[T]._dbInfo.db=S;return S});c.storeName?g=b.then(function(S){if(S.objectStoreNames.contains(c.storeName)){var C=S.version+1;Z(c);var I=U[c.name],T=I.forages;S.close();for(var x=0;x<T.length;x++){var B=T[x];B._dbInfo.db=null,B._dbInfo.version=C}var $=new E(function(W,Q){var J=d.open(c.name,C);J.onerror=function(Re){var bn=J.result;bn.close(),Q(Re)},J.onupgradeneeded=function(){var Re=J.result;Re.deleteObjectStore(c.storeName)},J.onsuccess=function(){var Re=J.result;Re.close(),W(Re)}});return $.then(function(W){I.db=W;for(var Q=0;Q<T.length;Q++){var J=T[Q];J._dbInfo.db=W,K(J._dbInfo)}}).catch(function(W){throw(se(c,W)||E.resolve()).catch(function(){}),W})}}):g=b.then(function(S){Z(c);var C=U[c.name],I=C.forages;S.close();for(var T=0;T<I.length;T++){var x=I[T];x._dbInfo.db=null}var B=new E(function($,W){var Q=d.deleteDatabase(c.name);Q.onerror=function(){var J=Q.result;J&&J.close(),W(Q.error)},Q.onblocked=function(){console.warn('dropInstance blocked for database "'+c.name+'" until all open connections are closed')},Q.onsuccess=function(){var J=Q.result;J&&J.close(),$(J)}});return B.then(function($){C.db=$;for(var W=0;W<I.length;W++){var Q=I[W];K(Q._dbInfo)}}).catch(function($){throw(se(c,$)||E.resolve()).catch(function(){}),$})})}return v(g,p),g}var bd={_driver:"asyncStorage",_initStorage:dd,_support:_(),iterate:pd,getItem:fd,setItem:hd,removeItem:md,clear:gd,length:_d,key:vd,keys:yd,dropInstance:Ed};function Sd(){return typeof openDatabase=="function"}var mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cd="~~local_forage_type~",Ks=/^~~local_forage_type~([^~]+)~/,ur="__lfsc__:",wi=ur.length,Di="arbf",Ai="blob",qs="si08",Zs="ui08",Js="uic8",Qs="si16",ea="si32",ta="ur16",na="ui32",ra="fl32",ia="fl64",oa=wi+Di.length,sa=Object.prototype.toString;function aa(c){var p=c.length*.75,u=c.length,m,g=0,h,b,S,C;c[c.length-1]==="="&&(p--,c[c.length-2]==="="&&p--);var I=new ArrayBuffer(p),T=new Uint8Array(I);for(m=0;m<u;m+=4)h=mt.indexOf(c[m]),b=mt.indexOf(c[m+1]),S=mt.indexOf(c[m+2]),C=mt.indexOf(c[m+3]),T[g++]=h<<2|b>>4,T[g++]=(b&15)<<4|S>>2,T[g++]=(S&3)<<6|C&63;return I}function xi(c){var p=new Uint8Array(c),u="",m;for(m=0;m<p.length;m+=3)u+=mt[p[m]>>2],u+=mt[(p[m]&3)<<4|p[m+1]>>4],u+=mt[(p[m+1]&15)<<2|p[m+2]>>6],u+=mt[p[m+2]&63];return p.length%3===2?u=u.substring(0,u.length-1)+"=":p.length%3===1&&(u=u.substring(0,u.length-2)+"=="),u}function Id(c,p){var u="";if(c&&(u=sa.call(c)),c&&(u==="[object ArrayBuffer]"||c.buffer&&sa.call(c.buffer)==="[object ArrayBuffer]")){var m,g=ur;c instanceof ArrayBuffer?(m=c,g+=Di):(m=c.buffer,u==="[object Int8Array]"?g+=qs:u==="[object Uint8Array]"?g+=Zs:u==="[object Uint8ClampedArray]"?g+=Js:u==="[object Int16Array]"?g+=Qs:u==="[object Uint16Array]"?g+=ta:u==="[object Int32Array]"?g+=ea:u==="[object Uint32Array]"?g+=na:u==="[object Float32Array]"?g+=ra:u==="[object Float64Array]"?g+=ia:p(new Error("Failed to get type for BinaryArray"))),p(g+xi(m))}else if(u==="[object Blob]"){var h=new FileReader;h.onload=function(){var b=Cd+c.type+"~"+xi(this.result);p(ur+Ai+b)},h.readAsArrayBuffer(c)}else try{p(JSON.stringify(c))}catch(b){console.error("Couldn't convert value into a JSON string: ",c),p(null,b)}}function Td(c){if(c.substring(0,wi)!==ur)return JSON.parse(c);var p=c.substring(oa),u=c.substring(wi,oa),m;if(u===Ai&&Ks.test(p)){var g=p.match(Ks);m=g[1],p=p.substring(g[0].length)}var h=aa(p);switch(u){case Di:return h;case Ai:return f([h],{type:m});case qs:return new Int8Array(h);case Zs:return new Uint8Array(h);case Js:return new Uint8ClampedArray(h);case Qs:return new Int16Array(h);case ta:return new Uint16Array(h);case ea:return new Int32Array(h);case na:return new Uint32Array(h);case ra:return new Float32Array(h);case ia:return new Float64Array(h);default:throw new Error("Unkown type: "+u)}}var Oi={serialize:Id,deserialize:Td,stringToBuffer:aa,bufferToString:xi};function ca(c,p,u,m){c.executeSql("CREATE TABLE IF NOT EXISTS "+p.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],u,m)}function wd(c){var p=this,u={db:null};if(c)for(var m in c)u[m]=typeof c[m]!="string"?c[m].toString():c[m];var g=new E(function(h,b){try{u.db=openDatabase(u.name,String(u.version),u.description,u.size)}catch(S){return b(S)}u.db.transaction(function(S){ca(S,u,function(){p._dbInfo=u,h()},function(C,I){b(I)})},b)});return u.serializer=Oi,g}function gt(c,p,u,m,g,h){c.executeSql(u,m,g,function(b,S){S.code===S.SYNTAX_ERR?b.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[p.storeName],function(C,I){I.rows.length?h(C,S):ca(C,p,function(){C.executeSql(u,m,g,h)},h)},h):h(b,S)},h)}function Dd(c,p){var u=this;c=N(c);var m=new E(function(g,h){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){gt(S,b,"SELECT * FROM "+b.storeName+" WHERE key = ? LIMIT 1",[c],function(C,I){var T=I.rows.length?I.rows.item(0).value:null;T&&(T=b.serializer.deserialize(T)),g(T)},function(C,I){h(I)})})}).catch(h)});return v(m,p),m}function Ad(c,p){var u=this,m=new E(function(g,h){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){gt(S,b,"SELECT * FROM "+b.storeName,[],function(C,I){for(var T=I.rows,x=T.length,B=0;B<x;B++){var $=T.item(B),W=$.value;if(W&&(W=b.serializer.deserialize(W)),W=c(W,$.key,B+1),W!==void 0){g(W);return}}g()},function(C,I){h(I)})})}).catch(h)});return v(m,p),m}function la(c,p,u,m){var g=this;c=N(c);var h=new E(function(b,S){g.ready().then(function(){p===void 0&&(p=null);var C=p,I=g._dbInfo;I.serializer.serialize(p,function(T,x){x?S(x):I.db.transaction(function(B){gt(B,I,"INSERT OR REPLACE INTO "+I.storeName+" (key, value) VALUES (?, ?)",[c,T],function(){b(C)},function($,W){S(W)})},function(B){if(B.code===B.QUOTA_ERR){if(m>0){b(la.apply(g,[c,C,u,m-1]));return}S(B)}})})}).catch(S)});return v(h,u),h}function xd(c,p,u){return la.apply(this,[c,p,u,1])}function Od(c,p){var u=this;c=N(c);var m=new E(function(g,h){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){gt(S,b,"DELETE FROM "+b.storeName+" WHERE key = ?",[c],function(){g()},function(C,I){h(I)})})}).catch(h)});return v(m,p),m}function Rd(c){var p=this,u=new E(function(m,g){p.ready().then(function(){var h=p._dbInfo;h.db.transaction(function(b){gt(b,h,"DELETE FROM "+h.storeName,[],function(){m()},function(S,C){g(C)})})}).catch(g)});return v(u,c),u}function Nd(c){var p=this,u=new E(function(m,g){p.ready().then(function(){var h=p._dbInfo;h.db.transaction(function(b){gt(b,h,"SELECT COUNT(key) as c FROM "+h.storeName,[],function(S,C){var I=C.rows.item(0).c;m(I)},function(S,C){g(C)})})}).catch(g)});return v(u,c),u}function Md(c,p){var u=this,m=new E(function(g,h){u.ready().then(function(){var b=u._dbInfo;b.db.transaction(function(S){gt(S,b,"SELECT key FROM "+b.storeName+" WHERE id = ? LIMIT 1",[c+1],function(C,I){var T=I.rows.length?I.rows.item(0).key:null;g(T)},function(C,I){h(I)})})}).catch(h)});return v(m,p),m}function Pd(c){var p=this,u=new E(function(m,g){p.ready().then(function(){var h=p._dbInfo;h.db.transaction(function(b){gt(b,h,"SELECT key FROM "+h.storeName,[],function(S,C){for(var I=[],T=0;T<C.rows.length;T++)I.push(C.rows.item(T).key);m(I)},function(S,C){g(C)})})}).catch(g)});return v(u,c),u}function kd(c){return new E(function(p,u){c.transaction(function(m){m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(g,h){for(var b=[],S=0;S<h.rows.length;S++)b.push(h.rows.item(S).name);p({db:c,storeNames:b})},function(g,h){u(h)})},function(m){u(m)})})}function Ld(c,p){p=R.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,g;return c.name?g=new E(function(h){var b;c.name===u.name?b=m._dbInfo.db:b=openDatabase(c.name,"","",0),c.storeName?h({db:b,storeNames:[c.storeName]}):h(kd(b))}).then(function(h){return new E(function(b,S){h.db.transaction(function(C){function I($){return new E(function(W,Q){C.executeSql("DROP TABLE IF EXISTS "+$,[],function(){W()},function(J,Re){Q(Re)})})}for(var T=[],x=0,B=h.storeNames.length;x<B;x++)T.push(I(h.storeNames[x]));E.all(T).then(function(){b()}).catch(function($){S($)})},function(C){S(C)})})}):g=E.reject("Invalid arguments"),v(g,p),g}var Fd={_driver:"webSQLStorage",_initStorage:wd,_support:Sd(),iterate:Ad,getItem:Dd,setItem:xd,removeItem:Od,clear:Rd,length:Nd,key:Md,keys:Pd,dropInstance:Ld};function Vd(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function ua(c,p){var u=c.name+"/";return c.storeName!==p.storeName&&(u+=c.storeName+"/"),u}function Bd(){var c="_localforage_support_test";try{return localStorage.setItem(c,!0),localStorage.removeItem(c),!1}catch{return!0}}function Ud(){return!Bd()||localStorage.length>0}function Hd(c){var p=this,u={};if(c)for(var m in c)u[m]=c[m];return u.keyPrefix=ua(c,p._defaultConfig),Ud()?(p._dbInfo=u,u.serializer=Oi,E.resolve()):E.reject()}function jd(c){var p=this,u=p.ready().then(function(){for(var m=p._dbInfo.keyPrefix,g=localStorage.length-1;g>=0;g--){var h=localStorage.key(g);h.indexOf(m)===0&&localStorage.removeItem(h)}});return v(u,c),u}function Gd(c,p){var u=this;c=N(c);var m=u.ready().then(function(){var g=u._dbInfo,h=localStorage.getItem(g.keyPrefix+c);return h&&(h=g.serializer.deserialize(h)),h});return v(m,p),m}function $d(c,p){var u=this,m=u.ready().then(function(){for(var g=u._dbInfo,h=g.keyPrefix,b=h.length,S=localStorage.length,C=1,I=0;I<S;I++){var T=localStorage.key(I);if(T.indexOf(h)===0){var x=localStorage.getItem(T);if(x&&(x=g.serializer.deserialize(x)),x=c(x,T.substring(b),C++),x!==void 0)return x}}});return v(m,p),m}function Wd(c,p){var u=this,m=u.ready().then(function(){var g=u._dbInfo,h;try{h=localStorage.key(c)}catch{h=null}return h&&(h=h.substring(g.keyPrefix.length)),h});return v(m,p),m}function Yd(c){var p=this,u=p.ready().then(function(){for(var m=p._dbInfo,g=localStorage.length,h=[],b=0;b<g;b++){var S=localStorage.key(b);S.indexOf(m.keyPrefix)===0&&h.push(S.substring(m.keyPrefix.length))}return h});return v(u,c),u}function zd(c){var p=this,u=p.keys().then(function(m){return m.length});return v(u,c),u}function Xd(c,p){var u=this;c=N(c);var m=u.ready().then(function(){var g=u._dbInfo;localStorage.removeItem(g.keyPrefix+c)});return v(m,p),m}function Kd(c,p,u){var m=this;c=N(c);var g=m.ready().then(function(){p===void 0&&(p=null);var h=p;return new E(function(b,S){var C=m._dbInfo;C.serializer.serialize(p,function(I,T){if(T)S(T);else try{localStorage.setItem(C.keyPrefix+c,I),b(h)}catch(x){(x.name==="QuotaExceededError"||x.name==="NS_ERROR_DOM_QUOTA_REACHED")&&S(x),S(x)}})})});return v(g,u),g}function qd(c,p){if(p=R.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,g;return c.name?g=new E(function(h){c.storeName?h(ua(c,m._defaultConfig)):h(c.name+"/")}).then(function(h){for(var b=localStorage.length-1;b>=0;b--){var S=localStorage.key(b);S.indexOf(h)===0&&localStorage.removeItem(S)}}):g=E.reject("Invalid arguments"),v(g,p),g}var Zd={_driver:"localStorageWrapper",_initStorage:Hd,_support:Vd(),iterate:$d,getItem:Gd,setItem:Kd,removeItem:Xd,clear:jd,length:zd,key:Wd,keys:Yd,dropInstance:qd},Jd=function(p,u){return p===u||typeof p=="number"&&typeof u=="number"&&isNaN(p)&&isNaN(u)},Qd=function(p,u){for(var m=p.length,g=0;g<m;){if(Jd(p[g],u))return!0;g++}return!1},da=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"},En={},fa={},Wt={INDEXEDDB:bd,WEBSQL:Fd,LOCALSTORAGE:Zd},ef=[Wt.INDEXEDDB._driver,Wt.WEBSQL._driver,Wt.LOCALSTORAGE._driver],dr=["dropInstance"],Ri=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(dr),tf={description:"",driver:ef.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function nf(c,p){c[p]=function(){var u=arguments;return c.ready().then(function(){return c[p].apply(c,u)})}}function Ni(){for(var c=1;c<arguments.length;c++){var p=arguments[c];if(p)for(var u in p)p.hasOwnProperty(u)&&(da(p[u])?arguments[0][u]=p[u].slice():arguments[0][u]=p[u])}return arguments[0]}var rf=(function(){function c(p){a(this,c);for(var u in Wt)if(Wt.hasOwnProperty(u)){var m=Wt[u],g=m._driver;this[u]=g,En[g]||this.defineDriver(m)}this._defaultConfig=Ni({},tf),this._config=Ni({},this._defaultConfig,p),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,g){var h=new E(function(b,S){try{var C=u._driver,I=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!u._driver){S(I);return}for(var T=Ri.concat("_initStorage"),x=0,B=T.length;x<B;x++){var $=T[x],W=!Qd(dr,$);if((W||u[$])&&typeof u[$]!="function"){S(I);return}}var Q=function(){for(var bn=function(af){return function(){var cf=new Error("Method "+af+" is not implemented by the current driver"),pa=E.reject(cf);return v(pa,arguments[arguments.length-1]),pa}},Mi=0,sf=dr.length;Mi<sf;Mi++){var Pi=dr[Mi];u[Pi]||(u[Pi]=bn(Pi))}};Q();var J=function(bn){En[C]&&console.info("Redefining LocalForage driver: "+C),En[C]=u,fa[C]=bn,b()};"_support"in u?u._support&&typeof u._support=="function"?u._support().then(J,S):J(!!u._support):J(!0)}catch(Re){S(Re)}});return w(h,m,g),h},c.prototype.driver=function(){return this._driver||null},c.prototype.getDriver=function(u,m,g){var h=En[u]?E.resolve(En[u]):E.reject(new Error("Driver not found."));return w(h,m,g),h},c.prototype.getSerializer=function(u){var m=E.resolve(Oi);return w(m,u),m},c.prototype.ready=function(u){var m=this,g=m._driverSet.then(function(){return m._ready===null&&(m._ready=m._initDriver()),m._ready});return w(g,u,u),g},c.prototype.setDriver=function(u,m,g){var h=this;da(u)||(u=[u]);var b=this._getSupportedDrivers(u);function S(){h._config.driver=h.driver()}function C(x){return h._extend(x),S(),h._ready=h._initStorage(h._config),h._ready}function I(x){return function(){var B=0;function $(){for(;B<x.length;){var W=x[B];return B++,h._dbInfo=null,h._ready=null,h.getDriver(W).then(C).catch($)}S();var Q=new Error("No available storage method found.");return h._driverSet=E.reject(Q),h._driverSet}return $()}}var T=this._driverSet!==null?this._driverSet.catch(function(){return E.resolve()}):E.resolve();return this._driverSet=T.then(function(){var x=b[0];return h._dbInfo=null,h._ready=null,h.getDriver(x).then(function(B){h._driver=B._driver,S(),h._wrapLibraryMethodsWithReady(),h._initDriver=I(b)})}).catch(function(){S();var x=new Error("No available storage method found.");return h._driverSet=E.reject(x),h._driverSet}),w(this._driverSet,m,g),this._driverSet},c.prototype.supports=function(u){return!!fa[u]},c.prototype._extend=function(u){Ni(this,u)},c.prototype._getSupportedDrivers=function(u){for(var m=[],g=0,h=u.length;g<h;g++){var b=u[g];this.supports(b)&&m.push(b)}return m},c.prototype._wrapLibraryMethodsWithReady=function(){for(var u=0,m=Ri.length;u<m;u++)nf(this,Ri[u])},c.prototype.createInstance=function(u){return new c(u)},c})(),of=new rf;i.exports=of},{3:3}]},{},[4])(4)})});var hc=ki((Zi,Ji)=>{"use strict";(function(t,e){typeof Zi=="object"&&typeof Ji<"u"?Ji.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.fetchRetry=e())})(Zi,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,_=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")_=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(R){var P=typeof Request<"u"&&a instanceof Request?a.clone():a;r(P,l).then(function(M){if(Array.isArray(f)&&f.indexOf(M.status)===-1)E(M);else if(typeof f=="function")try{return Promise.resolve(f(R,null,M)).then(function(U){U?N(R,null,M):E(M)}).catch(v)}catch(U){v(U)}else R<d?N(R,null,M):E(M)}).catch(function(M){if(typeof f=="function")try{Promise.resolve(f(R,M,null)).then(function(U){U?N(R,M,null):v(M)}).catch(function(U){v(U)})}catch(U){v(U)}else R<d?N(R,M,null):v(M)})};function N(R,P,M){var U=typeof _=="function"?_(R,P,M):_;setTimeout(function(){w(++R)},U)}w(0)})}};function e(r){return Number.isInteger(r)&&r>=0}function n(r){this.name="ArgumentError",this.message=r}return t})});var $i="11.0.0";var uf=$i.split("-")[0].split(".").slice(0,3).map(t=>t.padStart(2,"0")).join("");var Ja="CooeeSDK",Zt=$i,Gg=parseInt(uf,10);var br=`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${Zt}/dist`,ze={apiURL:"https://api.sdk.letscooee.com",debug:!1,mode:"production",baseURL:br,styleURL:`${br}/widget.min.css`,widgetURL:`${br}/widget.min.js`,swiperStyleURL:`${br}/swiper-bundle.min.css`};var Te=Li(ec());var ae=class{static debuggerEl;static infoLogs=[];static log(...e){Te.default.info(...e)}static verbose(...e){Te.default.debug(...e)}static error(...e){Te.default.error(...e)}static warn(...e){Te.default.warn(...e)}static info(...e){Te.default.info(...e),this.infoLogs.unshift({time:new Date,message:e.join(" ")}),this.addToDebugger()}static trace(...e){Te.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 Kg(t=Ja){Te.default.useDefaults({formatter:function(n){n.unshift(`${t} (v${Zt}):`)}});let e=df();(e==="1"||e==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?Te.default.setLevel(Te.default[localStorage.cooeeLogLevel]):Te.default.setLevel(ze.debug?Te.default.TRACE:Te.default.OFF)}function df(){return new URL(location.href).searchParams?.get("cooee-debug")}var bt=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 tc=0;function ff(t=document.head){return nc(ze.styleURL,t,"cooee-global-styles")}function pf(t=document.head){return nc(ze.swiperStyleURL,t,"cooee-swiper-styles")}function nc(t,e=document.head,n){return new Promise(r=>{if(e.querySelector(`#${n}`)){r();return}let o=document.createElement("link");o.rel="stylesheet",o.href=t,o.id=n,o.onload=()=>{r()},o.onerror=()=>{console.error("Failed to load stylesheet:",t),r()},e.appendChild(o)})}function Wi(t,e=document.head){if(!t)return;tc++;let n=document.createElement("style");n.id=`cooee-app-css-${tc}`,n.textContent=t,e.appendChild(n)}async function rc(){let t=(await import("./swiper-bundle-WHJS64TU.js")).default;return window.CooeeSDK.Swiper=t}async function ic(t,e=!0){if(!t)return;let n=[];e&&n.push(pf(t)),n.push(ff(t)),await Promise.all(n);let r=bt.get().website.commonCSS;Wi(r,t)}var mf={"[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"},E_=V(y({},mf),{"[class.ng-submitted]":"isSubmitted"});var gf=new Be("",{providedIn:"root",factory:()=>ac}),ac="always";var _f=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Rt({type:t});static \u0275inj=At({})}return t})();var cc=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:gf,useValue:n.callSetDisabledState??ac}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Rt({type:t});static \u0275inj=At({imports:[_f]})}return t})();var Cr=class t{cooeeEvent=new Pe;cooeeCTA=new Pe;elementRef=O(Me);hasSwiper=!1;_engagementTrigger=Ge(null);_triggerContext=Ge(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(){ae.verbose("Init",this.constructor.name);let e=this.elementRef.nativeElement.shadowRoot;e&&ic(e,this.hasSwiper)}ngOnDestroy(){ae.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=ee({type:t,selectors:[["ng-component"]],hostVars:2,hostBindings:function(n,r){n&2&&gr(r.classes)},inputs:{triggerContext:"triggerContext"},outputs:{cooeeEvent:"cooeeEvent",cooeeCTA:"cooeeCTA"},decls:1,vars:0,template:function(n,r){n&1&&Oa(0)},encapsulation:2})};var vf=(t,e)=>({"--option-color":t,"background-color":e}),uc=(t,e)=>e.id;function yf(t,e){if(t&1&&(rt(0,"span",6),Ie(1),vt()),t&2){pe();let n=yt(0);G(),Kt(n)}}function Ef(t,e){if(t&1){let n=Xt();Mt(0),rt(1,"button",5),Dn("click",function(){let i=xt(n).$implicit,o=pe().$implicit,s=pe();return Ot(s.onOptionChange(o,i))}),Se(2,yf,2,1,"span",6),vt()}if(t&2){let n=e.$implicit,r=pe().$implicit,i=yt(1),o=n.name,s=Pt(n.displayName||n.name),a=i?n.hexColor??o:"",l=pe().selectedOptions()[r.name]===o;G(),xn("color-type",i)("selected",l)("disabled",n.disabled),Da("title",s)("ngStyle",_r(14,vf,a,a)),$e("aria-checked",l?"true":"false")("data-value",o)("aria-disabled",n.disabled?"true":null)("aria-label",s),G(),Ce(i?-1:2)}}function bf(t,e){if(t&1&&(rt(0,"div"),Mt(1),rt(2,"div",1),Ie(3),vt(),rt(4,"div",2),Ie(5),vt(),rt(6,"div",3),Ui(7,Ef,3,17,"button",4,uc),vt()()),t&2){let n=e.$implicit,r=pe();gr(Fa("option-group ",n.name.toLowerCase())),G(),Pt(r.hasHexColors(n)),G(2),qt("",n.name,":"),G(2),Kt(r.selectedOptions()[n.name]),G(),$e("aria-label",n.name),G(),Hi(n.optionValues)}}var Pn=t=>t.trim().toLowerCase(),lc=class t extends Cr{selectedVariant=new Pe;item=Ee.required();selectedOptions=Ge({});options=ot(()=>{let e=this.item();if(!e.options||e.vars.length===1)return[];if(window.cooeeManipulateProduct)try{window.cooeeManipulateProduct(e,this.engagementTrigger)}catch(n){ae.error(n)}return e.options.forEach(n=>{n.optionValues.forEach(r=>{r.disabled=this.isOptionValueDisabledFast(n,r)})}),e.options});matchedVariant=ot(()=>{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=ot(()=>{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=Pn(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(),st(()=>{let n=this.matchedVariant();n&&(this.item().setSelectedVariant(n),this.selectedVariant.emit(n))});let e=st(()=>{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=bt.get().website?.itemSwatchMapping;n&&Wi(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(Pn(s)===Pn(e))continue;let l=r.get(Pn(s));if(!l)return new Set;let d=l.get(String(a));if(!d)return new Set;if(o=new Set([...o].filter(_=>d.has(_))),o.size===0)return o}return o}isOptionValueDisabledFast(e,n){let i=this.availabilityIndex().get(Pn(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=ee({type:t,selectors:[["cooee-item-options-picker"]],inputs:{item:[1,"item"]},outputs:{selectedVariant:"selectedVariant"},features:[Nt],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&&Ui(0,bf,9,7,"div",0,uc),n&2&&Hi(r.options())},dependencies:[Ga,ja,cc],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, rgba(var(--lc-primary-button-bg-color, 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 Sf=(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})(Sf||{});var Cf=(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})(Cf||{});var If=(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})(If||{});var zi=Li(fc());function Ir(t){return zi.default.createInstance({name:"lc",storeName:t,driver:zi.default.LOCALSTORAGE})}var Qt=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 kn=class kn extends Qt{};fr(kn,"storeName","usr"),kn.storage=Ir(kn.storeName);var Xi=kn;var Ln="a-f\\d",Tf=`#?[${Ln}]{3}[${Ln}]?`,wf=`#?[${Ln}]{6}([${Ln}]{2})?`,Df=new RegExp(`[^#${Ln}]`,"gi"),Af=new RegExp(`^${Tf}$|^${wf}$`,"i");function Ki(t,e={}){if(typeof t!="string"||Df.test(t)||!Af.test(t))throw new TypeError("Expected a valid hex string");t=t.replace(/^#/,"");let n=1;t.length===8&&(n=Number.parseInt(t.slice(6,8),16)/255,t=t.slice(0,6)),t.length===4&&(n=Number.parseInt(t.slice(3,4).repeat(2),16)/255,t=t.slice(0,3)),t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);let r=Number.parseInt(t,16),i=r>>16,o=r>>8&255,s=r&255,a=typeof e.alpha=="number"?e.alpha:n;if(e.format==="array")return[i,o,s,a];if(e.format==="css"){let l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${i} ${o} ${s}${l})`}return{red:i,green:o,blue:s,alpha:a}}var ke=class{h;a=100;g;constructor(e){e??={},this.h=e.h,this.a=e.a,this.g=e.g}get hex(){return this.h}get grad(){return this.g}get rgba(){if(!this.hex)return"";try{return Ki(this.hex,{format:"css",alpha:this.getAlpha()})}catch(e){return console.error("Invalid hex",e),"#000000"}}getAlpha(){return(this.a??100)/100}};var Tr=class t{static DEFAULT_FALLBACK=new ke({h:"#000000",a:50});r;c;fb;constructor(e){this.r=e.r,e.c&&(this.c=new ke(e.c)),e.fb&&(this.fb=new ke(e.fb))}get radius(){return this.r}get color(){return this.c}get fallback(){return this.fb??t.DEFAULT_FALLBACK}};var pc=class{size;enabled;color;constructor(e){e??={},this.enabled=e.enabled,this.size=e.size,this.color=new ke(e.color)}};var Fn=class Fn extends Qt{};fr(Fn,"storeName","ses"),Fn.storage=Ir(Fn.storeName);var qi=Fn;var mc=Li(hc());var xf=5,Of=500,Rf=(0,mc.default)(fetch),Nf={retryDelay:t=>Math.pow(2,t)*Of,retryOn:(t,e,n)=>t>=xf?!1:!!(e!==null||n?.status&&n?.status>=500)},Vn=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}};async function gc(t,e,n){let r=Date.now(),i=new Request(t,e),o;try{o=await Rf(i,y(y({},Nf),n))}catch{}if(!o||!o.ok){let _=new Vn;throw _.request=i.clone(),_.response=o?.clone(),_.status=o?.status,_.requestBody=e?.body,_.responseText=await Mf(o),_}let s,a=(o.headers.get("content-type")||"").toLowerCase(),l=o.headers.get("content-length"),d=i.method?.toUpperCase()||"GET";return o.status===204||o.status===205||d==="HEAD"||l==="0"?s=void 0:a.includes("application/json")||a.includes("application/problem+json")||a.includes("text/javascript")?s=await o.json():a.includes("text/")||a.includes("image/svg+xml")?s=await o.text():s=await o.arrayBuffer(),{data:s,status:o.status,statusText:o.statusText,headers:o.headers,timeTakenMs:Date.now()-r,options:e,request:i}}async function Mf(t){if(t){try{return t=t.clone(),await t.json()}catch{}try{return await t.text()}catch{}}}var k=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var L=globalThis;var Xe="9.42.0";function kt(){return Lt(L),L}function Lt(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Xe,e[Xe]=e[Xe]||{}}function ct(t,e,n=L){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[Xe]=r[Xe]||{};return i[t]||(i[t]=e())}var Qi=["debug","info","warn","error","log","assert","trace"],Pf="Sentry Logger ",en={};function St(t){if(!("console"in L))return t();let e=L.console,n={},r=Object.keys(en);r.forEach(i=>{let o=en[i];n[i]=e[i],e[i]=o});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function kf(){to().enabled=!0}function Lf(){to().enabled=!1}function _c(){return to().enabled}function Ff(...t){eo("log",...t)}function Vf(...t){eo("warn",...t)}function Bf(...t){eo("error",...t)}function eo(t,...e){k&&_c()&&St(()=>{L.console[t](`${Pf}[${t}]:`,...e)})}function to(){return k?ct("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var A={enable:kf,disable:Lf,isEnabled:_c,log:Ff,warn:Vf,error:Bf};var vc=/\(error: (.*)\)/,yc=/captureMessage|captureException/;function ro(...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=vc.test(l)?l.replace(vc,"$1"):l;if(!d.match(/\S*Error: /)){for(let _ of e){let f=_(d);if(f){o.push(f);break}}if(o.length>=50+i)break}}return Ec(o.slice(i))}}function Ec(t){if(!t.length)return[];let e=Array.from(t);return/sentryWrapped/.test(wr(e).function||"")&&e.pop(),e.reverse(),yc.test(wr(e).function||"")&&(e.pop(),yc.test(wr(e).function||"")&&e.pop()),e.slice(0,50).map(n=>V(y({},n),{filename:n.filename||wr(e).filename,function:n.function||"?"}))}function wr(t){return t[t.length-1]||{}}var no="<anonymous>";function Le(t){try{return!t||typeof t!="function"?no:t.name||no}catch{return no}}function Dr(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 Ar={},bc={};function me(t,e){Ar[t]=Ar[t]||[],Ar[t].push(e)}function ge(t,e){if(!bc[t]){bc[t]=!0;try{e()}catch(n){k&&A.error(`Error while instrumenting ${t}`,n)}}}function te(t,e){let n=t&&Ar[t];if(n)for(let r of n)try{r(e)}catch(i){k&&A.error(`Error while triggering instrumentation handler.
4
- Type: ${t}
5
- Name: ${Le(r)}
6
- Error:`,i)}}var io=null;function oo(t){let e="error";me(e,t),ge(e,Uf)}function Uf(){io=L.onerror,L.onerror=function(t,e,n,r,i){return te("error",{column:r,error:i,line:n,msg:t,url:e}),io?io.apply(this,arguments):!1},L.onerror.__SENTRY_INSTRUMENTED__=!0}var so=null;function ao(t){let e="unhandledrejection";me(e,t),ge(e,Hf)}function Hf(){so=L.onunhandledrejection,L.onunhandledrejection=function(t){return te("unhandledrejection",t),so?so.apply(this,arguments):!0},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Sc=Object.prototype.toString;function Ft(t){switch(Sc.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return He(t,Error)}}function tn(t,e){return Sc.call(t)===`[object ${e}]`}function xr(t){return tn(t,"ErrorEvent")}function Or(t){return tn(t,"DOMError")}function co(t){return tn(t,"DOMException")}function _e(t){return tn(t,"String")}function nn(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Vt(t){return t===null||nn(t)||typeof t!="object"&&typeof t!="function"}function lt(t){return tn(t,"Object")}function Bt(t){return typeof Event<"u"&&He(t,Event)}function lo(t){return typeof Element<"u"&&He(t,Element)}function uo(t){return tn(t,"RegExp")}function ut(t){return!!(t?.then&&typeof t.then=="function")}function fo(t){return lt(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function He(t,e){try{return t instanceof e}catch{return!1}}function Bn(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Cc(t){return typeof Request<"u"&&He(t,Request)}var po=L,jf=80;function Un(t,e={}){if(!t)return"<unknown>";try{let n=t,r=5,i=[],o=0,s=0,a=" > ",l=a.length,d,_=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||jf;for(;n&&o++<r&&(d=Gf(n,_),!(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 Gf(t,e){let n=t,r=[];if(!n?.tagName)return"";if(po.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&&_e(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 Hn(){try{return po.document.location.href}catch{return""}}function ho(t){if(!po.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 Ct(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Rr(t,e){if(!Array.isArray(t))return"";let n=[];for(let r=0;r<t.length;r++){let i=t[r];try{Bn(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function Ic(t,e,n=!1){return _e(t)?uo(e)?e.test(t):_e(e)?n?t===e:t.includes(e):!1:!1}function rn(t,e=[],n=!1){return e.some(r=>Ic(t,r,n))}function ne(t,e,n){if(!(e in t))return;let r=t[e];if(typeof r!="function")return;let i=n(r);typeof i=="function"&&Nr(i,r);try{t[e]=i}catch{k&&A.log(`Failed to replace method "${e}" in object`,t)}}function we(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{k&&A.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Nr(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,we(t,"__sentry_original__",e)}catch{}}function Ut(t){return t.__sentry_original__}function Mr(t){if(Ft(t))return y({message:t.message,name:t.name,stack:t.stack},wc(t));if(Bt(t)){let e=y({type:t.type,target:Tc(t.target),currentTarget:Tc(t.currentTarget)},wc(t));return typeof CustomEvent<"u"&&He(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Tc(t){try{return lo(t)?Un(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function wc(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 mo(t,e=40){let n=Object.keys(Mr(t));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return Ct(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:Ct(o,e)}return""}function $f(){let t=L;return t.crypto||t.msCrypto}function re(t=$f()){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 Dc(t){return t.exception?.values?.[0]}function Ke(t){let{message:e,event_id:n}=t;if(e)return e;let r=Dc(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function on(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=Dc(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 Pr(t){if(Wf(t))return!0;try{we(t,"__sentry_captured__",!0)}catch{}return!1}function Wf(t){try{return t.__sentry_captured__}catch{}}var xc=1e3;function Ze(){return Date.now()/xc}function Yf(){let{performance:t}=L;if(!t?.now||!t.timeOrigin)return Ze;let e=t.timeOrigin;return()=>(e+t.now())/xc}var Ac;function be(){return(Ac??(Ac=Yf()))()}function Oc(t){let e=be(),n={sid:re(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>zf(n)};return t&&dt(n,t),n}function dt(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||be(),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:re()),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 Rc(t,e){let n={};e?n={status:e}:t.status==="ok"&&(n={status:"exited"}),dt(t,n)}function zf(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 It(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]=It(r[i],e[i],n-1));return r}function go(){return re()}function kr(){return re().substring(16)}var _o="_sentrySpan";function vo(t,e){e?we(t,_o,e):delete t[_o]}function yo(t){return t[_o]}var Xf=100,ue=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:go(),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,vo(e,yo(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&&dt(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=V(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=V(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():lt(n)?e:void 0,{tags:i,extra:o,user:s,contexts:a,level:l,fingerprint:d=[],propagationContext:_}=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),_&&(this._propagationContext=_),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,vo(this,void 0),this._attachments=[],this.setPropagationContext({traceId:go(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){let r=typeof n=="number"?n:Xf;if(r<=0)return this;let i=V(y({timestamp:Ze()},e),{message:e.message?Ct(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:yo(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=It(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){let r=n?.event_id||re();if(!this._client)return k&&A.warn("No client configured on scope - will not capture exception!"),r;let i=new Error("Sentry syntheticException");return this._client.captureException(e,V(y({originalException:e,syntheticException:i},n),{event_id:r}),this),r}captureMessage(e,n,r){let i=r?.event_id||re();if(!this._client)return k&&A.warn("No client configured on scope - will not capture message!"),i;let o=new Error(e);return this._client.captureMessage(e,n,V(y({originalException:e,syntheticException:o},r),{event_id:i}),this),i}captureEvent(e,n){let r=n?.event_id||re();return this._client?(this._client.captureEvent(e,V(y({},n),{event_id:r}),this),r):(k&&A.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 Nc(){return ct("defaultCurrentScope",()=>new ue)}function Mc(){return ct("defaultIsolationScope",()=>new ue)}var Eo=class{constructor(e,n){let r;e?r=e:r=new ue;let i;n?i=n:i=new ue,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 ut(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 sn(){let t=kt(),e=Lt(t);return e.stack=e.stack||new Eo(Nc(),Mc())}function Kf(t){return sn().withScope(t)}function qf(t,e){let n=sn();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Pc(t){return sn().withScope(()=>t(sn().getIsolationScope()))}function kc(){return{withIsolationScope:Pc,withScope:Kf,withSetScope:qf,withSetIsolationScope:(t,e)=>Pc(e),getCurrentScope:()=>sn().getScope(),getIsolationScope:()=>sn().getIsolationScope()}}function Lr(t){let e=Lt(t);return e.acs?e.acs:kc()}function Je(){let t=kt();return Lr(t).getCurrentScope()}function Qe(){let t=kt();return Lr(t).getIsolationScope()}function Fr(){return ct("globalScope",()=>new ue)}function jn(...t){let e=kt(),n=Lr(e);if(t.length===2){let[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function X(){return Je().getClient()}function bo(t){let e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=e,o={trace_id:n,span_id:i||kr()};return r&&(o.parent_span_id=r),o}var Vr="sentry.source",So="sentry.sample_rate",Lc="sentry.previous_trace_sample_rate",Co="sentry.op",Io="sentry.origin";var To="sentry.profile_id",wo="sentry.exclusive_time";var Zf="_sentryScope",Jf="_sentryIsolationScope";function Br(t){return{scope:t[Zf],isolationScope:t[Jf]}}var Qf="sentry-",ep=/^sentry-/;function Vc(t){let e=tp(t);if(!e)return;let n=Object.entries(e).reduce((r,[i,o])=>{if(i.match(ep)){let s=i.slice(Qf.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function tp(t){if(!(!t||!_e(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{let r=Fc(n);return Object.entries(r).forEach(([i,o])=>{e[i]=o}),e},{}):Fc(t)}function Fc(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 Bc(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 Gc=1,Uc=!1;function Do(t){let{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:an(t).parent_span_id,o=Br(t).scope,s=r?o?.getPropagationContext().propagationSpanId||kr():e;return{parent_span_id:i,span_id:s,trace_id:n}}function np(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=ha(d,["spanId","traceId","traceFlags"]),{attributes:o}=a;return y({span_id:e,trace_id:n,sampled:r===Gc,attributes:o},i)})}function Hc(t){return typeof t=="number"?jc(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?jc(t.getTime()):be()}function jc(t){return t>9999999999?t/1e3:t}function an(t){if(ip(t))return t.getSpanJSON();let{spanId:e,traceId:n}=t.spanContext();if(rp(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:Hc(i),timestamp:Hc(s)||void 0,status:op(a),op:r[Co],origin:r[Io],links:np(l)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function rp(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function ip(t){return typeof t.getSpanJSON=="function"}function $c(t){let{traceFlags:e}=t.spanContext();return e===Gc}function op(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"unknown_error"}var sp="_sentryRootSpan";function Gn(t){return t[sp]||t}function Ao(){Uc||(St(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),Uc=!0)}function Wc(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=t||X()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}var cn="production";var ap=/^o(\d+)\./,cp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function lp(t){return t==="http"||t==="https"}function Tt(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 up(t){let e=cp.exec(t);if(!e){St(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}let[n,r,i="",o="",s="",a=""]=e.slice(1),l="",d=a,_=d.split("/");if(_.length>1&&(l=_.slice(0,-1).join("/"),d=_.pop()),d){let f=d.match(/^\d+/);f&&(d=f[0])}return Yc({host:o,pass:i,path:l,projectId:d,port:s,protocol:n,publicKey:r})}function Yc(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function dp(t){if(!k)return!0;let{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(A.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?lp(r)?e&&isNaN(parseInt(e,10))?(A.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(A.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(A.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function zc(t){return t.match(ap)?.[1]}function Xc(t){let e=typeof t=="string"?up(t):Yc(t);if(!(!e||!dp(e)))return e}var fp="_frozenDsc";function Kc(t,e){let n=e.getOptions(),{publicKey:r,host:i}=e.getDsn()||{},o;n.orgId?o=String(n.orgId):i&&(o=zc(i));let s={environment:n.environment||cn,release:n.release,public_key:r,trace_id:t,org_id:o};return e.emit("createDsc",s),s}function qc(t,e){let n=e.getPropagationContext();return n.dsc||Kc(n.traceId,t)}function xo(t){let e=X();if(!e)return{};let n=Gn(t),r=an(n),i=r.data,o=n.spanContext().traceState,s=o?.get("sentry.sample_rate")??i[So]??i[Lc];function a(w){return(typeof s=="number"||typeof s=="string")&&(w.sample_rate=`${s}`),w}let l=n[fp];if(l)return a(l);let d=o?.get("sentry.dsc"),_=d&&Vc(d);if(_)return a(_);let f=Kc(t.spanContext().traceId,e),E=i[Vr],v=r.description;return E!=="url"&&v&&(f.transaction=v),Wc()&&(f.sampled=String($c(n)),f.sample_rand=o?.get("sentry.sample_rand")??Br(n).scope?.getPropagationContext().sampleRand.toString()),a(f),e.emit("createDsc",f,n),f}function Fe(t,e=100,n=1/0){try{return Oo("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Ur(t,e=3,n=100*1024){let r=Fe(t,e);return gp(r)>n?Ur(t,e-1,n):r}function Oo(t,e,n=1/0,r=1/0,i=_p()){let[o,s]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;let a=pp(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 Oo("",v,l-1,r,i)}catch{}let _=Array.isArray(e)?[]:{},f=0,E=Mr(e);for(let v in E){if(!Object.prototype.hasOwnProperty.call(E,v))continue;if(f>=r){_[v]="[MaxProperties ~]";break}let w=E[v];_[v]=Oo(v,w,l-1,r,i),f++}return s(e),_}function pp(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(Bn(e))return"[VueViewModel]";if(fo(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Le(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;let n=hp(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function hp(t){let e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function mp(t){return~-encodeURI(t).split(/%..|./).length}function gp(t){return mp(JSON.stringify(t))}function _p(){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 ft(t,e=[]){return[t,e]}function Zc(t,e){let[n,r]=t;return[n,[...r,e]]}function No(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 Ro(t){let e=Lt(L);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:[Ro(r),o]:r.push(typeof o=="string"?Ro(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(Fe(a))}i(l)}}return typeof r=="string"?r:vp(r)}function vp(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 Qc(t){let e=typeof t.data=="string"?Ro(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}var yp={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 Mo(t){return yp[t]}function Po(t){if(!t?.sdk)return;let{name:e,version:n}=t.sdk;return{name:e,version:n}}function el(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:Tt(r)}),i&&{trace:i})}function Ep(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 tl(t,e,n,r){let i=Po(n),o=y(y({sent_at:new Date().toISOString()},i&&{sdk:i}),!!r&&e&&{dsn:Tt(e)}),s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return ft(o,[s])}function nl(t,e,n,r){let i=Po(n),o=t.type&&t.type!=="replay_event"?t.type:"event";Ep(t,n?.sdk);let s=el(t,i,r,e);return delete t.sdkProcessingMetadata,ft(s,[[{type:o},t]])}var ko=0,rl=1,il=2;function Ve(t){return new je(e=>{e(t)})}function wt(t){return new je((e,n)=>{n(t)})}var je=class t{constructor(e){this._state=ko,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===ko)return;let e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===rl&&n[1](this._value),this._state===il&&n[2](this._value),n[0]=!0)})}_runExecutor(e){let n=(o,s)=>{if(this._state===ko){if(ut(s)){s.then(r,i);return}this._state=o,this._value=s,this._executeHandlers()}},r=o=>{n(rl,o)},i=o=>{n(il,o)};try{e(r,i)}catch(o){i(o)}}};function Hr(t,e,n,r=0){return new je((i,o)=>{let s=t[r];if(e===null||typeof s!="function")i(e);else{let a=s(y({},e),n);k&&s.id&&a===null&&A.log(`Event processor "${s.id}" dropped event`),ut(a)?a.then(l=>Hr(t,l,n,r+1).then(i)).then(null,o):Hr(t,a,n,r+1).then(i).then(null,o)}})}function ol(t,e){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=e;bp(t,e),r&&Ip(t,r),Tp(t,n),Sp(t,i),Cp(t,o)}function Lo(t,e){let{extra:n,tags:r,user:i,contexts:o,level:s,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:d,eventProcessors:_,attachments:f,propagationContext:E,transactionName:v,span:w}=e;jr(t,"extra",n),jr(t,"tags",r),jr(t,"user",i),jr(t,"contexts",o),t.sdkProcessingMetadata=It(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]),_.length&&(t.eventProcessors=[...t.eventProcessors,..._]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext=y(y({},t.propagationContext),E)}function jr(t,e,n){t[e]=It(t[e],n,1)}function bp(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 Sp(t,e){let n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function Cp(t,e){t.sdkProcessingMetadata=y(y({},t.sdkProcessingMetadata),e)}function Ip(t,e){t.contexts=y({trace:Do(e)},t.contexts),t.sdkProcessingMetadata=y({dynamicSamplingContext:xo(e)},t.sdkProcessingMetadata);let n=Gn(e),r=an(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function Tp(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 Gr,sl,$r;function al(t){let e=L._sentryDebugIds;if(!e)return{};let n=Object.keys(e);return $r&&n.length===sl||(sl=n.length,$r=n.reduce((r,i)=>{Gr||(Gr={});let o=Gr[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,_=e[i];if(d&&_){r[d]=_,Gr[i]=[d,_];break}}}return r},{})),$r}function cl(t,e,n,r,i,o){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=t,l=V(y({},e),{event_id:e.event_id||n.event_id||re(),timestamp:e.timestamp||Ze()}),d=n.integrations||t.integrations.map(R=>R.name);wp(l,t),xp(l,d),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&Dp(l,t.stackParser);let _=Rp(r,n.captureContext);n.mechanism&&qe(l,n.mechanism);let f=i?i.getEventProcessors():[],E=Fr().getScopeData();if(o){let R=o.getScopeData();Lo(E,R)}if(_){let R=_.getScopeData();Lo(E,R)}let v=[...n.attachments||[],...E.attachments];v.length&&(n.attachments=v),ol(l,E);let w=[...f,...E.eventProcessors];return Hr(w,l,n).then(R=>(R&&Ap(R),typeof s=="number"&&s>0?Op(R,s,a):R))}function wp(t,e){let{environment:n,release:r,dist:i,maxValueLength:o=250}=e;t.environment=t.environment||n||cn,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);let s=t.request;s?.url&&(s.url=Ct(s.url,o))}function Dp(t,e){let n=al(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function Ap(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 xp(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Op(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:Fe(i.data,e,n)}))}),t.user&&{user:Fe(t.user,e,n)}),t.contexts&&{contexts:Fe(t.contexts,e,n)}),t.extra&&{extra:Fe(t.extra,e,n)});return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Fe(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>y(y({},i),i.data&&{data:Fe(i.data,e,n)}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=Fe(t.contexts.flags,3,n)),r}function Rp(t,e){if(!e)return t;let n=t?t.clone():new ue;return n.update(e),n}function ll(t){if(t)return Np(t)?{captureContext:t}:Pp(t)?{captureContext:t}:t}function Np(t){return t instanceof ue||typeof t=="function"}var Mp=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Pp(t){return Object.keys(t).some(e=>Mp.includes(e))}function Wr(t,e){return Je().captureException(t,ll(e))}function $n(t,e){return Je().captureEvent(t,e)}function Wn(t){let e=Qe(),n=Je(),{userAgent:r}=L.navigator||{},i=Oc(y(y({user:n.getUser()||e.getUser()},r&&{userAgent:r}),t)),o=e.getSession();return o?.status==="ok"&&dt(o,{status:"exited"}),Yr(),e.setSession(i),i}function Yr(){let t=Qe(),n=Je().getSession()||t.getSession();n&&Rc(n),dl(),t.setSession()}function dl(){let t=Qe(),e=X(),n=t.getSession();n&&e&&e.captureSession(n)}function Yn(t=!1){if(t){Yr();return}dl()}var kp="7";function Lp(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Fp(t){return`${Lp(t)}${t.projectId}/envelope/`}function Vp(t,e){let n={sentry_version:kp};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function fl(t,e,n){return e||`${Fp(t)}?${Vp(t,n)}`}var pl=[];function hl(t,e){let n={};return e.forEach(r=>{r&&Vo(t,r,n)}),n}function Fo(t,e){for(let n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function Vo(t,e,n){if(n[e.name]){k&&A.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,pl.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),pl.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)}k&&A.log(`Integration installed: ${e.name}`)}function ml(t,e,n){let r=[{type:"client_report"},{timestamp:n||Ze(),discarded_events:t}];return ft(e?{dsn:e}:{},[r])}function zr(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 gl(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?.[To],exclusive_time:s?.[wo],measurements:t.measurements,is_segment:!0}}function _l(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&&{[To]:t.profile_id}),t.exclusive_time&&{[wo]:t.exclusive_time})}},measurements:t.measurements}}var vl="Not capturing exception because it's already been captured.",yl="Discarded session because of missing or non-string release",Sl=Symbol.for("SentryInternalError"),Cl=Symbol.for("SentryDoNotSendEventError");function Xr(t){return{message:t,[Sl]:!0}}function Bo(t){return{message:t,[Cl]:!0}}function El(t){return!!t&&typeof t=="object"&&Sl in t}function bl(t){return!!t&&typeof t=="object"&&Cl in t}var zn=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Xc(e.dsn):k&&A.warn("No DSN provided, client will not send events."),this._dsn){let n=fl(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport(V(y({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:n}))}}captureException(e,n,r){let i=re();if(Pr(e))return k&&A.log(vl),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:re()},r),s=nn(e)?e:String(e),a=Vt(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=re();if(n?.originalException&&Pr(n.originalException))return k&&A.log(vl),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),dt(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))):Ve(!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];Vo(this,e,this._integrations),n||Fo(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=nl(e,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=Zc(r,Qc(o));let i=this.sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",e,o),null)}sendSession(e){let{release:n,environment:r=cn}=this._options;if("aggregates"in e){let o=e.attrs||{};if(!o.release&&!n){k&&A.warn(yl);return}o.release=o.release||n,o.environment=o.environment||r,e.attrs=o}else{if(!e.release&&!n){k&&A.warn(yl);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);let i=tl(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}`;k&&A.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=>(k&&A.error("Error while sending envelope:",n),n)):(k&&A.error("Transport disabled"),Ve({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=hl(this,e),Fo(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)&&(dt(e,V(y({},r&&{status:"crashed"}),{errors:e.errors||Number(i||r)})),this.captureSession(e))}_isClientDoneProcessing(e){return new je(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),cl(o,e,n,r,this,i).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts=y({trace:bo(r)},a.contexts);let l=qc(this,r);return a.sdkProcessingMetadata=y({dynamicSamplingContext:l},a.sdkProcessingMetadata),a})}_captureEvent(e,n={},r=Je(),i=Qe()){return k&&Uo(e)&&A.log(`Captured error event \`${zr(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,i).then(o=>o.event_id,o=>{k&&(bl(o)?A.log(o.message):El(o)?A.warn(o.message):A.warn(o))})}_processEvent(e,n,r,i){let o=this.getOptions(),{sampleRate:s}=o,a=Il(e),l=Uo(e),d=e.type||"error",_=`before send for type \`${d}\``,f=typeof s>"u"?void 0:Bc(s);if(l&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),wt(Bo(`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),Bo("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return v;let N=Hp(this,o,v,n);return Up(N,_)}).then(v=>{if(v===null){if(this.recordDroppedEvent("before_send",E),a){let P=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",P)}throw Bo(`${_} returned \`null\`, will not send event.`)}let w=r.getSession()||i.getSession();if(l&&w&&this._updateSessionFromEvent(w,v),a){let R=v.sdkProcessingMetadata?.spanCountBeforeProcessing||0,P=v.spans?v.spans.length:0,M=R-P;M>0&&this.recordDroppedEvent("before_send","span",M)}let N=v.transaction_info;if(a&&N&&v.transaction!==e.transaction){let R="custom";v.transaction_info=V(y({},N),{source:R})}return this.sendEvent(v,n),v}).then(null,v=>{throw bl(v)||El(v)?v:(this.captureException(v,{data:{__sentry__:!0},originalException:v}),Xr(`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(){k&&A.log("Flushing outcomes...");let e=this._clearOutcomes();if(e.length===0){k&&A.log("No outcomes to send");return}if(!this._dsn){k&&A.log("No dsn provided, will not send outcomes");return}k&&A.log("Sending outcomes:",e);let n=ml(e,this._options.tunnel&&Tt(this._dsn));this.sendEnvelope(n)}};function Up(t,e){let n=`${e} must return \`null\` or a valid event.`;if(ut(t))return t.then(r=>{if(!lt(r)&&r!==null)throw Xr(n);return r},r=>{throw Xr(`${e} rejected with ${r}`)});if(!lt(t)&&t!==null)throw Xr(n);return t}function Hp(t,e,n,r){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:s}=e,a=n;if(Uo(a)&&i)return i(a,r);if(Il(a)){if(s){let l=s(gl(a));if(l?a=It(n,_l(l)):Ao(),a.spans){let d=[];for(let _ of a.spans){let f=s(_);f?d.push(f):(Ao(),d.push(_))}a.spans=d}}if(o){if(a.spans){let l=a.spans.length;a.sdkProcessingMetadata=V(y({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:l})}return o(a,r)}}return a}function Uo(t){return t.type===void 0}function Il(t){return t.type==="transaction"}function jp(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function Tl(t,e,n,r){let i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=Tt(r)),ft(i,[jp(t)])}function Xn(t,e){let n=e??Gp(t)??[];if(n.length===0)return;let r=t.getOptions(),i=Tl(n,r._metadata,r.tunnel,t.getDsn());wl().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(i)}function Gp(t){return wl().get(t)}function wl(){return ct("clientToLogBufferMap",()=>new WeakMap)}var Ho=Symbol.for("SentryBufferFullError");function Dl(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 wt(Ho);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 je((a,l)=>{let d=e.length;if(!d)return a(!0);let _=setTimeout(()=>{s&&s>0&&a(!1)},s);e.forEach(f=>{Ve(f).then(()=>{--d||(clearTimeout(_),a(!0))},l)})})}return{$:e,add:i,drain:o}}function $p(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 Wp(t,e){return t[e]||t.all||0}function Al(t,e,n=Date.now()){return Wp(t,e)>n}function xl(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,,,_]=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"?(!_||_.split(";").includes("custom"))&&(i[v]=r+E):i[v]=r+E}else s?i.all=r+$p(s,r):e===429&&(i.all=r+60*1e3);return i}var Yp=64;function Kr(t,e,n=Dl(t.bufferSize||Yp)){let r={},i=s=>n.drain(s);function o(s){let a=[];if(No(s,(f,E)=>{let v=Mo(E);Al(r,v)?t.recordDroppedEvent("ratelimit_backoff",v):a.push(f)}),a.length===0)return Ve({});let l=ft(s[0],a),d=f=>{No(l,(E,v)=>{t.recordDroppedEvent(f,Mo(v))})},_=()=>e({body:Jc(l)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&k&&A.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=xl(r,f),f),f=>{throw d("network_error"),k&&A.error("Encountered error running transport request:",f),f});return n.add(_).then(f=>f,f=>{if(f===Ho)return k&&A.error("Skipped sending event because buffer is full."),d("queue_overflow"),Ve({});throw f})}return{send:o,flush:i}}function jo(t){t.user?.ip_address===void 0&&(t.user=V(y({},t.user),{ip_address:"{{auto}}"}))}function Go(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs=V(y({},t.attrs),{ip_address:"{{auto}}"})):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function $o(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:Xe})),version:Xe}),t._metadata=i}var zp=100;function et(t,e){let n=X(),r=Qe();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=zp}=n.getOptions();if(o<=0)return;let s=Ze(),a=y({timestamp:s},t),l=i?St(()=>i(a,e)):a;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,e),r.addBreadcrumb(l,o))}var Ol,Xp="FunctionToString",Rl=new WeakMap,Kp=()=>({name:Xp,setupOnce(){Ol=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=Ut(this),n=Rl.has(X())&&e!==void 0?e:this;return Ol.apply(n,t)}}catch{}},setup(t){Rl.set(t,!0)}}),qr=Kp;var qp=[/^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$/],Zp="EventFilters",Wo=(t={})=>{let e;return{name:Zp,setup(n){let r=n.getOptions();e=Nl(t,r)},processEvent(n,r,i){if(!e){let o=i.getOptions();e=Nl(t,o)}return Jp(n,e)?null:n}}},Jr=(t={})=>V(y({},Wo(t)),{name:"InboundFilters"});function Nl(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:qp],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function Jp(t,e){if(t.type){if(t.type==="transaction"&&eh(t,e.ignoreTransactions))return k&&A.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
10
- Event: ${Ke(t)}`),!0}else{if(Qp(t,e.ignoreErrors))return k&&A.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
11
- Event: ${Ke(t)}`),!0;if(ih(t))return k&&A.warn(`Event dropped due to not having an error message, error type or stacktrace.
12
- Event: ${Ke(t)}`),!0;if(th(t,e.denyUrls))return k&&A.warn(`Event dropped due to being matched by \`denyUrls\` option.
13
- Event: ${Ke(t)}.
14
- Url: ${Zr(t)}`),!0;if(!nh(t,e.allowUrls))return k&&A.warn(`Event dropped due to not being matched by \`allowUrls\` option.
15
- Event: ${Ke(t)}.
16
- Url: ${Zr(t)}`),!0}return!1}function Qp(t,e){return e?.length?zr(t).some(n=>rn(n,e)):!1}function eh(t,e){if(!e?.length)return!1;let n=t.transaction;return n?rn(n,e):!1}function th(t,e){if(!e?.length)return!1;let n=Zr(t);return n?rn(n,e):!1}function nh(t,e){if(!e?.length)return!0;let n=Zr(t);return n?rn(n,e):!0}function rh(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 Zr(t){try{let n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?rh(n):null}catch{return k&&A.error(`Cannot extract url for event ${Ke(t)}`),null}}function ih(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function zo(t,e,n,r,i,o){if(!i.exception?.values||!o||!He(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=Yo(t,e,r,o.originalException,n,i.exception.values,s,0))}function Yo(t,e,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if(He(r[i],Error)){Ml(s,a);let d=t(e,r[i]),_=l.length;Pl(d,i,_,a),l=Yo(t,e,n,r[i],i,[d,...l],d,_)}return Array.isArray(r.errors)&&r.errors.forEach((d,_)=>{if(He(d,Error)){Ml(s,a);let f=t(e,d),E=l.length;Pl(f,`errors[${_}]`,E,a),l=Yo(t,e,n,d,i,[f,...l],f,E)}}),l}function Ml(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=V(y(y({},t.mechanism),t.type==="AggregateError"&&{is_exception_group:!0}),{exception_id:e})}function Pl(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism=V(y({},t.mechanism),{type:"chained",source:e,exception_id:n,parent_id:r})}function Xo(t){let e="console";me(e,t),ge(e,oh)}function oh(){"console"in L&&Qi.forEach(function(t){t in L.console&&ne(L.console,t,function(e){return en[t]=e,function(...n){te("console",{args:n,level:t}),en[t]?.apply(L.console,n)}})})}function Ko(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}var sh="Dedupe",ah=()=>{let t;return{name:sh,processEvent(e){if(e.type)return e;try{if(ch(e,t))return k&&A.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},Qr=ah;function ch(t,e){return e?!!(lh(t,e)||uh(t,e)):!1}function lh(t,e){let n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Fl(t,e)||!Ll(t,e))}function uh(t,e){let n=kl(e),r=kl(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Fl(t,e)||!Ll(t,e))}function Ll(t,e){let n=Dr(t),r=Dr(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 Fl(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 kl(t){return t.exception?.values?.[0]}function Kn(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 ei(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}var qn=L;function qo(){return"history"in qn&&!!qn.history}function dh(){if(!("fetch"in qn))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Zn(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Zo(){if(typeof EdgeRuntime=="string")return!0;if(!dh())return!1;if(Zn(qn.fetch))return!0;let t=!1,e=qn.document;if(e&&typeof e.createElement=="function")try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=Zn(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){k&&A.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Qo(t,e){let n="fetch";me(n,t),ge(n,()=>fh(void 0,e))}function fh(t,e=!1){e&&!Zo()||ne(L,"fetch",function(n){return function(...r){let i=new Error,{method:o,url:s}=ph(r),a={args:r,fetchData:{method:o,url:s},startTimestamp:be()*1e3,virtualError:i,headers:hh(r)};return t||te("fetch",y({},a)),n.apply(L,r).then(async l=>(t?t(l):te("fetch",V(y({},a),{endTimestamp:be()*1e3,response:l})),l),l=>{if(te("fetch",V(y({},a),{endTimestamp:be()*1e3,error:l})),Ft(l)&&l.stack===void 0&&(l.stack=i.stack,we(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 Jo(t,e){return!!t&&typeof t=="object"&&!!t[e]}function Vl(t){return typeof t=="string"?t:t?Jo(t,"url")?t.url:t.toString?t.toString():"":""}function ph(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){let[n,r]=t;return{url:Vl(n),method:Jo(r,"method")?String(r.method).toUpperCase():"GET"}}let e=t[0];return{url:Vl(e),method:Jo(e,"method")?String(e.method).toUpperCase():"GET"}}function hh(t){let[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Cc(e))return new Headers(e.headers)}catch{}}function es(){return"npm"}var q=L,ts=0;function ns(){return ts>0}function xh(){ts++,setTimeout(()=>{ts--})}function Ht(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(Ut(t))return t}catch{return t}let r=function(...i){try{let o=i.map(s=>Ht(s,e));return t.apply(this,o)}catch(o){throw xh(),jn(s=>{s.addEventProcessor(a=>(e.mechanism&&(on(a,void 0,void 0),qe(a,e.mechanism)),a.extra=V(y({},a.extra),{arguments:i}),a)),Wr(o)}),o}};try{for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}Nr(r,t),we(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function Bl(){let t=Hn(),{referrer:e}=q.document||{},{userAgent:n}=q.navigator||{},r=y(y({},e&&{Referer:e}),n&&{"User-Agent":n});return{url:t,headers:r}}function ti(t,e){let n=os(t,e),r={type:Ph(e),value:kh(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Oh(t,e,n,r){let o=X()?.getOptions().normalizeDepth,s=Vh(e),a={__serialized__:Ur(e,o)};if(s)return{exception:{values:[ti(t,s)]},extra:a};let l={exception:{values:[{type:Bt(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Lh(e,{isUnhandledRejection:r})}]},extra:a};if(n){let d=os(t,n);d.length&&(l.exception.values[0].stacktrace={frames:d})}return l}function rs(t,e){return{exception:{values:[ti(t,e)]}}}function os(t,e){let n=e.stacktrace||e.stack||"",r=Nh(e),i=Mh(e);try{return t(n,r,i)}catch{}return[]}var Rh=/Minified React error #\d+;/i;function Nh(t){return t&&Rh.test(t.message)?1:0}function Mh(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Ul(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Ph(t){let e=t?.name;return!e&&Ul(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function kh(t){let e=t?.message;return Ul(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 Hl(t,e,n,r){let i=n?.syntheticException||void 0,o=ni(t,e,i,r);return qe(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),Ve(o)}function jl(t,e,n="info",r,i){let o=r?.syntheticException||void 0,s=is(t,e,o,i);return s.level=n,r?.event_id&&(s.event_id=r.event_id),Ve(s)}function ni(t,e,n,r,i){let o;if(xr(e)&&e.error)return rs(t,e.error);if(Or(e)||co(e)){let s=e;if("stack"in e)o=rs(t,e);else{let a=s.name||(Or(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=is(t,l,n,r),on(o,l)}return"code"in s&&(o.tags=V(y({},o.tags),{"DOMException.code":`${s.code}`})),o}return Ft(e)?rs(t,e):lt(e)||Bt(e)?(o=Oh(t,e,n,i),qe(o,{synthetic:!0}),o):(o=is(t,e,n,r),on(o,`${e}`,void 0),qe(o,{synthetic:!0}),o)}function is(t,e,n,r){let i={};if(r&&n){let o=os(t,n);o.length&&(i.exception={values:[{value:e,stacktrace:{frames:o}}]}),qe(i,{synthetic:!0})}if(nn(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 Lh(t,{isUnhandledRejection:e}){let n=mo(t),r=e?"promise rejection":"exception";return xr(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:Bt(t)?`Event \`${Fh(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Fh(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Vh(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let n=t[e];if(n instanceof Error)return n}}var Bh=5e3,Jn=class extends zn{constructor(e){let n=Uh(e),r=q.SENTRY_SDK_SOURCE||es();$o(n,"browser",["browser"],r),super(n);let{sendDefaultPii:i,sendClientReports:o,enableLogs:s,_experiments:a}=this._options,l=s??a?.enableLogs;q.document&&(o||l)&&q.document.addEventListener("visibilitychange",()=>{q.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),l&&Xn(this))}),l&&(this.on("flush",()=>{Xn(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Xn(this)},Bh)})),i&&(this.on("postprocessEvent",jo),this.on("beforeSendSession",Go))}eventFromException(e,n){return Hl(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return jl(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 Uh(t){return y({release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:q.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0},t)}var Gl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var ie=L;var Hh=1e3,$l,ss,as;function cs(t){me("dom",t),ge("dom",jh)}function jh(){if(!ie.document)return;let t=te.bind(null,"dom"),e=Wl(t,!0);ie.document.addEventListener("click",e,!1),ie.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{let i=ie[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(ne(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__||{},_=d[s]=d[s]||{refCount:0};if(!_.handler){let f=Wl(t);_.handler=f,o.call(this,s,f,l)}_.refCount++}catch{}return o.call(this,s,a,l)}}),ne(i,"removeEventListener",function(o){return function(s,a,l){if(s==="click"||s=="keypress")try{let d=this.__sentry_instrumentation_handlers__||{},_=d[s];_&&(_.refCount--,_.refCount<=0&&(o.call(this,s,_.handler,l),_.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 Gh(t){if(t.type!==ss)return!1;try{if(!t.target||t.target._sentryId!==as)return!1}catch{}return!0}function $h(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function Wl(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Wh(n);if($h(n.type,r))return;we(n,"_sentryCaptured",!0),r&&!r._sentryId&&we(r,"_sentryId",re());let i=n.type==="keypress"?"input":n.type;Gh(n)||(t({event:n,name:i,global:e}),ss=n.type,as=r?r._sentryId:void 0),clearTimeout($l),$l=ie.setTimeout(()=>{as=void 0,ss=void 0},Hh)}}function Wh(t){try{return t.target}catch{return null}}var ri;function Qn(t){let e="history";me(e,t),ge(e,Yh)}function Yh(){if(ie.addEventListener("popstate",()=>{let e=ie.location.href,n=ri;if(ri=e,n===e)return;te("history",{from:n,to:e})}),!qo())return;function t(e){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let i=ri,o=zh(String(r));if(ri=o,i===o)return e.apply(this,n);te("history",{from:i,to:o})}return e.apply(this,n)}}ne(ie.history,"pushState",t),ne(ie.history,"replaceState",t)}function zh(t){try{return new URL(t,ie.location.origin).toString()}catch{return t}}var ii={};function ls(t){let e=ii[t];if(e)return e;let n=ie[t];if(Zn(n))return ii[t]=n.bind(ie);let r=ie.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){Gl&&A.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(ii[t]=n.bind(ie))}function oi(t){ii[t]=void 0}var jt="__sentry_xhr_v3__";function us(t){me("xhr",t),ge("xhr",Xh)}function Xh(){if(!ie.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){let i=new Error,o=be()*1e3,s=_e(r[0])?r[0].toUpperCase():void 0,a=Kh(r[1]);if(!s||!a)return e.apply(n,r);n[jt]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let l=()=>{let d=n[jt];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}let _={endTimestamp:be()*1e3,startTimestamp:o,xhr:n,virtualError:i};te("xhr",_)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,_,f){return l(),d.apply(_,f)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,_,f){let[E,v]=f,w=_[jt];return w&&_e(E)&&_e(v)&&(w.request_headers[E.toLowerCase()]=v),d.apply(_,f)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){let i=n[jt];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);let o={startTimestamp:be()*1e3,xhr:n};return te("xhr",o),e.apply(n,r)}})}function Kh(t){if(_e(t))return t;try{return t.toString()}catch{}}function ds(t,e=ls("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 oi("fetch"),wt("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 oi("fetch"),n-=s,r--,wt(l)}}return Kr(t,i)}var qh=30;var Zh=50;function fs(t,e,n,r){let i={filename:t,function:e==="<anonymous>"?"?":e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Jh=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Qh=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,em=/\((\S*)(?::(\d+))(?::(\d+))\)/,tm=t=>{let e=Jh.exec(t);if(e){let[,r,i,o]=e;return fs(r,"?",+i,+o)}let n=Qh.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){let s=em.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3])}let[i,o]=Kl(n[1]||"?",n[2]);return fs(o,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Yl=[qh,tm],nm=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rm=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,im=t=>{let e=nm.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){let o=rm.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]||"?";return[i,r]=Kl(i,r),fs(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},zl=[Zh,im];var Xl=[Yl,zl],ps=ro(...Xl),Kl=(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]:"?",n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};var ln=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var si=1024,om="Breadcrumbs",sm=(t={})=>{let e=y({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t);return{name:om,setup(n){e.console&&Xo(lm(n)),e.dom&&cs(cm(n,e.dom)),e.xhr&&us(um(n)),e.fetch&&Qo(dm(n)),e.history&&Qn(fm(n)),e.sentry&&n.on("beforeSendEvent",am(n))}}},ql=sm;function am(t){return function(n){X()===t&&et({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Ke(n)},{event:n})}}function cm(t,e){return function(r){if(X()!==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>si&&(ln&&A.warn(`\`dom.maxStringLength\` cannot exceed ${si}, but a value of ${a} was configured. Sentry will use ${si} instead.`),a=si),typeof s=="string"&&(s=[s]);try{let d=r.event,_=pm(d)?d.target:d;i=Un(_,{keyAttrs:s,maxStringLength:a}),o=ho(_)}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 lm(t){return function(n){if(X()!==t)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:Ko(n.level),message:Rr(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Rr(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;et(r,{input:n.args,level:n.level})}}function um(t){return function(n){if(X()!==t)return;let{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[jt];if(!r||!i||!o)return;let{method:s,url:a,status_code:l,body:d}=o,_={method:s,url:a,status_code:l},f={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:i},E={category:"xhr",data:_,type:"http",level:ei(l)};t.emit("beforeOutgoingRequestBreadcrumb",E,f),et(E,f)}}function dm(t){return function(n){if(X()!==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=V(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:ei(s.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",l,a),et(l,a)}}}function fm(t){return function(n){if(X()!==t)return;let r=n.from,i=n.to,o=Kn(q.location.href),s=r?Kn(r):void 0,a=Kn(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 pm(t){return!!t&&!!t.target}var hm=["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"],mm="BrowserApiErrors",gm=(t={})=>{let e=y({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1},t);return{name:mm,setupOnce(){e.setTimeout&&ne(q,"setTimeout",Zl),e.setInterval&&ne(q,"setInterval",Zl),e.requestAnimationFrame&&ne(q,"requestAnimationFrame",_m),e.XMLHttpRequest&&"XMLHttpRequest"in q&&ne(XMLHttpRequest.prototype,"send",vm);let n=e.eventTarget;n&&(Array.isArray(n)?n:hm).forEach(i=>ym(i,e))}}},Jl=gm;function Zl(t){return function(...e){let n=e[0];return e[0]=Ht(n,{mechanism:{data:{function:Le(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function _m(t){return function(e){return t.apply(this,[Ht(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Le(t)},handled:!1,type:"instrument"}})])}}function vm(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&ne(n,i,function(o){let s={mechanism:{data:{function:i,handler:Le(o)},handled:!1,type:"instrument"}},a=Ut(o);return a&&(s.mechanism.data.handler=Le(a)),Ht(o,s)})}),t.apply(this,e)}}function ym(t,e){let r=q[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ne(r,"addEventListener",function(i){return function(o,s,a){try{Em(s)&&(s.handleEvent=Ht(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Le(s),target:t},handled:!1,type:"instrument"}}))}catch{}return e.unregisterOriginalCallbacks&&bm(this,o,s),i.apply(this,[o,Ht(s,{mechanism:{data:{function:"addEventListener",handler:Le(s),target:t},handled:!1,type:"instrument"}}),a])}}),ne(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 Em(t){return typeof t.handleEvent=="function"}function bm(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}var Ql=()=>({name:"BrowserSession",setupOnce(){if(typeof q.document>"u"){ln&&A.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Wn({ignoreDuration:!0}),Yn(),Qn(({from:t,to:e})=>{t!==void 0&&t!==e&&(Wn({ignoreDuration:!0}),Yn())})}});var Sm="GlobalHandlers",Cm=(t={})=>{let e=y({onerror:!0,onunhandledrejection:!0},t);return{name:Sm,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Im(n),eu("onerror")),e.onunhandledrejection&&(Tm(n),eu("onunhandledrejection"))}}},tu=Cm;function Im(t){oo(e=>{let{stackParser:n,attachStacktrace:r}=nu();if(X()!==t||ns())return;let{msg:i,url:o,line:s,column:a,error:l}=e,d=Am(ni(n,l||i,void 0,r,!1),o,s,a);d.level="error",$n(d,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Tm(t){ao(e=>{let{stackParser:n,attachStacktrace:r}=nu();if(X()!==t||ns())return;let i=wm(e),o=Vt(i)?Dm(i):ni(n,i,void 0,r,!0);o.level="error",$n(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function wm(t){if(Vt(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 Dm(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,_=n,f=_e(e)&&e.length>0?e:Hn();return l.length===0&&l.push({colno:d,filename:f,function:"?",in_app:!0,lineno:_}),t}function eu(t){ln&&A.log(`Global Handler attached: ${t}`)}function nu(){return X()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}var ru=()=>({name:"HttpContext",preprocessEvent(t){if(!q.navigator&&!q.location&&!q.document)return;let e=Bl(),n=y(y({},e.headers),t.request?.headers);t.request=V(y(y({},e),t.request),{headers:n})}});var xm="cause",Om=5,Rm="LinkedErrors",Nm=(t={})=>{let e=t.limit||Om,n=t.key||xm;return{name:Rm,preprocessEvent(r,i,o){let s=o.getOptions();zo(ti,s.stackParser,n,e,r,i)}}},iu=Nm;function hs(t){return[Jr(),qr(),Jl(),ql(),tu(),iu(),Qr(),ru(),Ql()]}var ou={},su,ms,Mm;(()=>{let t=hs({}).filter(e=>!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name));ms=new Jn({dsn:"https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520",transport:ds,stackParser:ps,integrations:t,environment:ze.mode,release:`web-sdk@${Zt}`,debug:ze.debug}),ms.init()})();function au(t,e,n){ae.error(`${e}:`,t);let r=Lm(n);if(r.setTag("operation",e),t instanceof Vn){Pm(r,t,e);return}r.captureException(t)}function Pm(t,e,n){if(km(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 km(t,e){let n=e.request;n&&t.setExtras({body:e.requestBody,headers:n.headers,method:n.method,url:n.url})}function Lm(t){t??={};let{extra:e,tags:n}=t,r=new ue;if(r.setClient(ms),r.setUser(Mm),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),su&&r.setTags(su),Object.keys(ou).forEach(i=>{r.setContext(i,ou[i])}),r.setTag("language",navigator.language),r.setTag("timezone",cu()),Fm(r),r}function Fm(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 ci=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 er=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 lu(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 li=class{constructor(e){this.sdkLoadTime=e}isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;locale;customContext={};activeExperiments;currentItem;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;_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){if(this.currentItem&&this.currentItem.vID!==e.vID){let n=new CustomEvent("letscooee:variant-change",{detail:{variantID:e.vID}});document.dispatchEvent(n)}this.currentItem=new er(e)}getSDKLoadTimeDiff(){return lu(Date.now()-this.sdkLoadTime.getTime())}};function Vm(t,e,n){return{[t]:gs(e,n),[t+"_wo_currency"]:e}}function gs(t,e){if(t==0&&e)return"Free";let n=li.get(),r=bt.get(),i=n.shopCurrencyCode||r.currency,o=n.currencyCode;o||ae.warn("Currency code is not set in RuntimeData");let s=r.money?.format??n.moneyFormat,a;if(s&&i===o)a=ci.format(t*100,s);else{let l;try{l=new Intl.NumberFormat(Bm(),{style:"currency",currency:o||i,minimumFractionDigits:0,maximumFractionDigits:2})}catch(d){return au(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 Bm(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}var ui;function cu(){if(ui)return ui;try{return ui=Intl.DateTimeFormat().resolvedOptions().timeZone,ui}catch{return""}}var hu,Y,mu,bs,Gt,uu,gu,_u,vu,Ss,vs,ys,Um,Es={},yu=[],Hm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,pi=Array.isArray;function pt(t,e){for(var n in e)t[n]=e[n];return t}function Cs(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function _s(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??++mu,__i:-1,__u:0};return i==null&&Y.vnode!=null&&Y.vnode(o),o}function Is(t){return t.children}function un(t,e){this.props=t,this.context=e}function dn(t,e){if(e==null)return t.__?dn(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"?dn(t):null}function Eu(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 Eu(t)}}function du(t){(!t.__d&&(t.__d=!0)&&Gt.push(t)&&!fi.__r++||uu!=Y.debounceRendering)&&((uu=Y.debounceRendering)||gu)(fi)}function fi(){for(var t,e,n,r,i,o,s,a=1;Gt.length;)Gt.length>a&&Gt.sort(_u),t=Gt.shift(),a=Gt.length,t.__d&&(n=void 0,i=(r=(e=t).__v).__e,o=[],s=[],e.__P&&((n=pt({},r)).__v=r.__v+1,Y.vnode&&Y.vnode(n),Cu(e.__P,n,r,e.__n,e.__P.namespaceURI,32&r.__u?[i]:null,o,i??dn(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,$m(o,n,s),n.__e!=i&&Eu(n)));fi.__r=0}function bu(t,e,n,r,i,o,s,a,l,d,_){var f,E,v,w,N,R,P=r&&r.__k||yu,M=e.length;for(l=jm(n,e,P,l,M),f=0;f<M;f++)(v=n.__k[f])!=null&&(E=v.__i==-1?Es:P[v.__i]||Es,v.__i=f,R=Cu(t,v,E,i,o,s,a,l,d,_),w=v.__e,v.ref&&E.ref!=v.ref&&(E.ref&&Ts(E.ref,null,v),_.push(v.ref,v.__c||w,v)),N==null&&w!=null&&(N=w),4&v.__u||E.__k===v.__k?l=Su(v,l,t):typeof v.type=="function"&&R!==void 0?l=R:w&&(l=w.nextSibling),v.__u&=-7);return n.__e=N,l}function jm(t,e,n,r,i){var o,s,a,l,d,_=n.length,f=_,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?_s(null,s,null,null,null):pi(s)?_s(Is,{children:s},null,null,null):s.constructor==null&&s.__b>0?_s(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=Gm(s,n,l,f))!=-1&&(f--,(a=n[d])&&(a.__u|=2)),a==null||a.__v==null?(d==-1&&(i>_?E--:i<_&&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<_;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=dn(a)),Tu(a,a));return r}function Su(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=Su(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=dn(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Gm(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 fu(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Hm.test(e)?n:n+"px"}function di(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||fu(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||fu(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(vu,"$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=Ss,t.addEventListener(e,o?ys:vs,o)):t.removeEventListener(e,o?ys:vs,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 pu(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=Ss++;else if(e.t<n.u)return;return n(Y.event?Y.event(e):e)}}}function Cu(t,e,n,r,i,o,s,a,l,d){var _,f,E,v,w,N,R,P,M,U,Ae,xe,D,H,F,j,Z,K=e.type;if(e.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=e.__e=n.__e]),(_=Y.__b)&&_(e);e:if(typeof K=="function")try{if(P=e.props,M="prototype"in K&&K.prototype.render,U=(_=K.contextType)&&r[_.__c],Ae=_?U?U.props.value:_.__:r,n.__c?R=(f=e.__c=n.__c).__=f.__E:(M?e.__c=f=new K(P,Ae):(e.__c=f=new un(P,Ae),f.constructor=K,f.render=Ym),U&&U.sub(f),f.props=P,f.state||(f.state={}),f.context=Ae,f.__n=r,E=f.__d=!0,f.__h=[],f._sb=[]),M&&f.__s==null&&(f.__s=f.state),M&&K.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=pt({},f.__s)),pt(f.__s,K.getDerivedStateFromProps(P,f.__s))),v=f.props,w=f.state,f.__v=e,E)M&&K.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),M&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(M&&K.getDerivedStateFromProps==null&&P!==v&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(P,Ae),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(P,f.__s,Ae)===!1||e.__v==n.__v){for(e.__v!=n.__v&&(f.props=P,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(se){se&&(se.__=e)}),xe=0;xe<f._sb.length;xe++)f.__h.push(f._sb[xe]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(P,f.__s,Ae),M&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(v,w,N)})}if(f.context=Ae,f.props=P,f.__P=t,f.__e=!1,D=Y.__r,H=0,M){for(f.state=f.__s,f.__d=!1,D&&D(e),_=f.render(f.props,f.state,f.context),F=0;F<f._sb.length;F++)f.__h.push(f._sb[F]);f._sb=[]}else do f.__d=!1,D&&D(e),_=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++H<25);f.state=f.__s,f.getChildContext!=null&&(r=pt(pt({},r),f.getChildContext())),M&&!E&&f.getSnapshotBeforeUpdate!=null&&(N=f.getSnapshotBeforeUpdate(v,w)),j=_,_!=null&&_.type===Is&&_.key==null&&(j=Iu(_.props.children)),a=bu(t,pi(j)?j:[j],e,n,r,i,o,s,a,l,d),f.base=e.__e,e.__u&=-161,f.__h.length&&s.push(f),R&&(f.__E=f.__=null)}catch(se){if(e.__v=null,l||o!=null)if(se.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(Z=o.length;Z--;)Cs(o[Z]);else e.__e=n.__e,e.__k=n.__k;Y.__e(se,e,n)}else o==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=Wm(n.__e,e,n,r,i,o,s,l,d);return(_=Y.diffed)&&_(e),128&e.__u?void 0:a}function $m(t,e,n){for(var r=0;r<n.length;r++)Ts(n[r],n[++r],n[++r]);Y.__c&&Y.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){Y.__e(o,i.__v)}})}function Iu(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:pi(t)?t.map(Iu):pt({},t)}function Wm(t,e,n,r,i,o,s,a,l){var d,_,f,E,v,w,N,R=n.props,P=e.props,M=e.type;if(M=="svg"?i="http://www.w3.org/2000/svg":M=="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==!!M&&(M?v.localName==M:v.nodeType==3)){t=v,o[d]=null;break}}if(t==null){if(M==null)return document.createTextNode(P);t=document.createElementNS(i,M,P.is&&P),a&&(Y.__m&&Y.__m(e,o),a=!1),o=null}if(M==null)R===P||a&&t.data==P||(t.data=P);else{if(o=o&&hu.call(t.childNodes),R=n.props||Es,!a&&o!=null)for(R={},d=0;d<t.attributes.length;d++)R[(v=t.attributes[d]).name]=v.value;for(d in R)if(v=R[d],d!="children"){if(d=="dangerouslySetInnerHTML")f=v;else if(!(d in P)){if(d=="value"&&"defaultValue"in P||d=="checked"&&"defaultChecked"in P)continue;di(t,d,null,v,i)}}for(d in P)v=P[d],d=="children"?E=v:d=="dangerouslySetInnerHTML"?_=v:d=="value"?w=v:d=="checked"?N=v:a&&typeof v!="function"||R[d]===v||di(t,d,v,R[d],i);if(_)a||f&&(_.__html==f.__html||_.__html==t.innerHTML)||(t.innerHTML=_.__html),e.__k=[];else if(f&&(t.innerHTML=""),bu(e.type=="template"?t.content:t,pi(E)?E:[E],e,n,r,M=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&dn(n,0),a,l),o!=null)for(d=o.length;d--;)Cs(o[d]);a||(d="value",M=="progress"&&w==null?t.removeAttribute("value"):w!=null&&(w!==t[d]||M=="progress"&&!w||M=="option"&&w!=R[d])&&di(t,d,w,R[d],i),d="checked",N!=null&&N!=t[d]&&di(t,d,N,R[d],i))}return t}function Ts(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){Y.__e(i,n)}}function Tu(t,e,n){var r,i;if(Y.unmount&&Y.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||Ts(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Y.__e(o,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Tu(r[i],e,n||typeof t.type!="function");n||Cs(t.__e),t.__c=t.__=t.__e=void 0}function Ym(t,e,n){return this.constructor(t,n)}hu=yu.slice,Y={__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}},mu=0,bs=function(t){return t!=null&&t.constructor==null},un.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=pt({},this.state),typeof t=="function"&&(t=t(pt({},n),this.props)),t&&pt(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),du(this))},un.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),du(this))},un.prototype.render=Is,Gt=[],gu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_u=function(t,e){return t.__v.__b-e.__v.__b},fi.__r=0,vu=/(PointerCapture)$|Capture$/i,Ss=0,vs=pu(!1),ys=pu(!0),Um=0;var Ds,De,ws,wu,Du=0,ku=[],oe=Y,Au=oe.__b,xu=oe.__r,Ou=oe.diffed,Ru=oe.__c,Nu=oe.unmount,Mu=oe.__;function zm(t,e){oe.__h&&oe.__h(De,t,Du||e),Du=0;var n=De.__H||(De.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function xs(t,e){var n=zm(Ds++,7);return qm(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Xm(){for(var t;t=ku.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(hi),t.__H.__h.forEach(As),t.__H.__h=[]}catch(e){t.__H.__h=[],oe.__e(e,t.__v)}}oe.__b=function(t){De=null,Au&&Au(t)},oe.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Mu&&Mu(t,e)},oe.__r=function(t){xu&&xu(t),Ds=0;var e=(De=t.__c).__H;e&&(ws===De?(e.__h=[],De.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.forEach(hi),e.__h.forEach(As),e.__h=[],Ds=0)),ws=De},oe.diffed=function(t){Ou&&Ou(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(ku.push(e)!==1&&wu===oe.requestAnimationFrame||((wu=oe.requestAnimationFrame)||Km)(Xm)),e.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),ws=De=null},oe.__c=function(t,e){e.some(function(n){try{n.__h.forEach(hi),n.__h=n.__h.filter(function(r){return!r.__||As(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],oe.__e(r,n.__v)}}),Ru&&Ru(t,e)},oe.unmount=function(t){Nu&&Nu(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{hi(r)}catch(i){e=i}}),n.__H=void 0,e&&oe.__e(e,n.__v))};var Pu=typeof requestAnimationFrame=="function";function Km(t){var e,n=function(){clearTimeout(r),Pu&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);Pu&&(e=requestAnimationFrame(n))}function hi(t){var e=De,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),De=e}function As(t){var e=De;t.__c=t.__(),De=e}function qm(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}var Zm=Symbol.for("preact-signals");function Rs(){if(fn>1)fn--;else{for(var t,e=!1;tr!==void 0;){var n=tr;for(tr=void 0,Os++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Fu(n))try{n.c()}catch(i){e||(t=i,e=!0)}n=r}}if(Os=0,fn--,e)throw t}}var z=void 0;var tr=void 0,fn=0,Os=0,mi=0;function Lu(t){if(z!==void 0){var e=t.n;if(e===void 0||e.t!==z)return e={i:0,S:t,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:e},z.s!==void 0&&(z.s.n=e),z.s=e,t.n=e,32&z.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=z.s,e.n=void 0,z.s.n=e,z.s=e),e}}function ce(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}ce.prototype.brand=Zm;ce.prototype.h=function(){return!0};ce.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)};ce.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)}};ce.prototype.subscribe=function(t){var e=this;return gi(function(){var n=e.value,r=z;z=void 0;try{t(n)}finally{z=r}})};ce.prototype.valueOf=function(){return this.value};ce.prototype.toString=function(){return this.value+""};ce.prototype.toJSON=function(){return this.value};ce.prototype.peek=function(){var t=z;z=void 0;try{return this.value}finally{z=t}};Object.defineProperty(ce.prototype,"value",{get:function(){var t=Lu(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(Os>100)throw new Error("Cycle detected");this.v=t,this.i++,mi++,fn++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Rs()}}}});function nr(t){return new ce(t)}function Fu(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 Vu(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 Bu(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){ce.call(this,void 0),this.x=t,this.s=void 0,this.g=mi-1,this.f=4}(pn.prototype=new ce).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===mi))return!0;if(this.g=mi,this.f|=1,this.i>0&&!Fu(this))return this.f&=-2,!0;var t=z;try{Vu(this),z=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 z=t,Bu(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)}ce.prototype.S.call(this,t)};pn.prototype.U=function(t){if(this.t!==void 0&&(ce.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=Lu(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function Uu(t){return new pn(t)}function Hu(t){var e=t.u;if(t.u=void 0,typeof e=="function"){fn++;var n=z;z=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,Ns(t),r}finally{z=n,Rs()}}}function Ns(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Hu(t)}function Jm(t){if(z!==this)throw new Error("Out-of-order effect");Bu(this),z=t,this.f&=-2,8&this.f&&Ns(this),Rs()}function rr(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}rr.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()}};rr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Hu(this),Vu(this),fn++;var t=z;return z=this,Jm.bind(this,t)};rr.prototype.N=function(){2&this.f||(this.f|=2,this.o=tr,tr=this)};rr.prototype.d=function(){this.f|=8,1&this.f||Ns(this)};function gi(t){var e=new rr(t);try{e.c()}catch(n){throw e.d(),n}return e.d.bind(e)}var Ps,Ms;function hn(t,e){Y[t]=e.bind(null,Y[t]||function(){})}function _i(t){Ms&&Ms(),Ms=t&&t.S()}function ju(t){var e=this,n=t.data,r=eg(n);r.value=n;var i=xs(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(),bs(l)||((s=e.base)==null?void 0:s.nodeType)!==3?(e.__$f|=1,e.setState({})):e.base.data=l},Uu(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return i.value}ju.displayName="_st";Object.defineProperties(ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ju},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});hn("__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 ce&&(n||(e.__np=n={}),n[i]=o,r[i]=o.peek())}}t(e)});hn("__r",function(t,e){_i();var n,r=e.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=(function(i){var o;return gi(function(){o=this}),o.c=function(){r.__$f|=1,r.setState({})},o})())),Ps=r,_i(n),t(e)});hn("__e",function(t,e,n,r){_i(),Ps=void 0,t(e,n,r)});hn("diffed",function(t,e){_i(),Ps=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],_=r[l];d===void 0?(d=Qm(n,l,_,i),o[l]=d):d.o(_,i)}}}t(e)});function Qm(t,e,n,r){var i=e in t&&t.ownerSVGElement===void 0,o=nr(n);return{o:function(s,a){o.value=s,r=a},d:gi(function(){var s=o.value.value;r[e]!==s&&(r[e]=s,i?t[e]=s:s?t.setAttribute(e,s):t.removeAttribute(e))})}}hn("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)});hn("__h",function(t,e,n,r){(r<3||r===9)&&(e.__$f|=2),t(e,n,r)});un.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 eg(t){return xs(function(){return nr(t)},[])}var tg=(r=>(r.ON="ON",r.OFF="OFF",r.ON_HOVER="ON_HOVER",r))(tg||{}),ng=(r=>(r.FIRST_ITEM="FIRST_ITEM",r.CARD="CARD",r.NONE="NONE",r))(ng||{});var ir=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}},mn=class extends ir{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 ir{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()}},ks=class extends ir{element;constructor(e){super(),this.element=e instanceof Me?e.nativeElement:e}},_n=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof mn)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof gn)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof ks)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)}},vi=class extends _n{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(Vi,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||Ne.NULL,o=i.get(pr,r.injector);n=Ua(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 Ls=(()=>{class t extends _n{_moduleRef=O(Vi,{optional:!0});_document=O(ye);_viewContainerRef=O(Fi);_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 Pe;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=zt({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Nt]})}return t})();var or;function rg(){if(or==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>or=!0}))}finally{or=or||!1}return or}function Gu(t){return rg()?t:!!t.capture}var ig=new Be("cdk-input-modality-detector-options"),og={ignoreKeys:[18,17,224,91,16]},$u=650,Fs={passive:!0,capture:!0},sg=(()=>{class t{_platform=O(Ye);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ga(null);_options;_lastTouchMs=0;_onKeydown=n=>{this._options?.ignoreKeys?.some(r=>r===n.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=at(n))};_onMousedown=n=>{Date.now()-this._lastTouchMs<$u||(this._modality.next(Ya(n)?"keyboard":"mouse"),this._mostRecentTarget=at(n))};_onTouchstart=n=>{if(za(n)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=at(n)};constructor(){let n=O(Ue),r=O(ye),i=O(ig,{optional:!0});if(this._options=y(y({},og),i),this.modalityDetected=this._modality.pipe(ba(1)),this.modalityChanged=this.modalityDetected.pipe(Ea()),this._platform.isBrowser){let o=O(Yt).createRenderer(null,null);this._listenerCleanups=n.runOutsideAngular(()=>[o.listen(r,"keydown",this._onKeydown,Fs),o.listen(r,"mousedown",this._onMousedown,Fs),o.listen(r,"touchstart",this._onTouchstart,Fs)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(n=>n())}static \u0275fac=function(r){return new(r||t)};static \u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ei=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Ei||{}),ag=new Be("cdk-focus-monitor-default-options"),yi=Gu({passive:!0,capture:!0}),Wu=(()=>{class t{_ngZone=O(Ue);_platform=O(Ye);_inputModalityDetector=O(sg);_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=O(ye);_stopInputModalityDetector=new ve;constructor(){let n=O(ag,{optional:!0});this._detectionMode=n?.detectionMode||Ei.IMMEDIATE}_rootNodeFocusAndBlurListener=n=>{let r=at(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=yr(n);if(!this._platform.isBrowser||i.nodeType!==1)return _a();let o=Xa(i)||this._document,s=this._elementInfo.get(i);if(s)return r&&(s.checkChildren=!0),s.subject;let a={checkChildren:r,subject:new ve,rootNode:o};return this._elementInfo.set(i,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(n){let r=yr(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=yr(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===Ei.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===Ei.IMMEDIATE){clearTimeout(this._originTimeoutId);let i=this._originFromTouchInteraction?$u:1;this._originTimeoutId=setTimeout(()=>this._origin=null,i)}})}_onFocus(n,r){let i=this._elementInfo.get(r),o=at(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,yi),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,yi)}),this._rootNodeFocusListenerCount.set(r,i+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ca(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,yi),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,yi),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=de({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Yu=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ee({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 Bs=(()=>{class t{_platform=O(Ye);constructor(){}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return lg(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=cg(_g(n));if(r&&(zu(r)===-1||!this.isVisible(r)))return!1;let i=n.nodeName.toLowerCase(),o=zu(n);return n.hasAttribute("contenteditable")?o!==-1:i==="iframe"||i==="object"||this._platform.WEBKIT&&this._platform.IOS&&!mg(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 gg(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cg(t){try{return t.frameElement}catch{return null}}function lg(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function ug(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function dg(t){return pg(t)&&t.type=="hidden"}function fg(t){return hg(t)&&t.hasAttribute("href")}function pg(t){return t.nodeName.toLowerCase()=="input"}function hg(t){return t.nodeName.toLowerCase()=="a"}function Xu(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function zu(t){if(!Xu(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function mg(t){let e=t.nodeName.toLowerCase(),n=e==="input"&&t.type;return n==="text"||n==="password"||e==="select"||e==="textarea"}function gg(t){return dg(t)?!1:ug(t)||fg(t)||t.hasAttribute("contenteditable")||Xu(t)}function _g(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Vs=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?_t(e,{injector:this._injector}):setTimeout(e)}},Ku=(()=>{class t{_checker=O(Bs);_ngZone=O(Ue);_document=O(ye);_injector=O(Ne);constructor(){O(Nn).load(Yu)}create(n,r=!1){return new Vs(n,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qu(t,...e){return e.length?e.some(n=>t[n]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Us(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ht(t){return t==null?"":typeof t=="string"?t:`${t}px`}var Zu=qa();function ed(t){return new Hs(t.get(Za),t.get(ye))}var Hs=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=ht(-this._previousScrollPosition.left),e.style.top=ht(-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"),Zu&&(r.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zu&&(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 js=class{enable(){}disable(){}attach(){}};var sr=class{positionStrategy;scrollStrategy=new js;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 td=(()=>{class t{_attachedOverlays=[];_document=O(ye);_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=de({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yg=(()=>{class t extends td{_ngZone=O(Ue);_renderer=O(Yt).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=Cn(t)))(i||t)}})();static \u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Eg=(()=>{class t extends td{_platform=O(Ye);_ngZone=O(Ue);_renderer=O(Yt).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=at(n)};_clickListener=n=>{let r=at(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=Cn(t)))(i||t)}})();static \u0275prov=de({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 nd=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ee({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})(),Ws=(()=>{class t{_platform=O(Ye);_containerElement;_document=O(ye);_styleLoader=O(Nn);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||Us()){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),Us()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}_loadStyles(){this._styleLoader.load(nd)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gs=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()}},ar=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ve;_attachments=new ve;_detachments=new ve;_positionStrategy;_scrollStrategy;_locationChanges=ma.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new ve;_outsidePointerEvents=new ve;_afterNextRenderRef;constructor(e,n,r,i,o,s,a,l,d,_=!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=_,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=_t(()=>{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=V(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=ht(this._config.width),e.height=ht(this._config.height),e.minWidth=ht(this._config.minWidth),e.minHeight=ht(this._config.minHeight),e.maxWidth=ht(this._config.maxWidth),e.maxHeight=ht(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Gs(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=Ka(n||[]).filter(o=>!!o);i.length&&(r?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){let e=!1;try{this._detachContentAfterRenderRef=_t(()=>{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 Qu="cdk-global-overlay-wrapper";function rd(t){return new $s}var $s=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(Qu),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"),_=this._xPosition,f=this._xOffset,E=this._overlayRef.getConfig().direction==="rtl",v="",w="",N="";l?N="flex-start":_==="center"?(N="center",E?w=f:v=f):E?_==="left"||_==="end"?(N="flex-end",v=f):(_==="right"||_==="start")&&(N="flex-start",w=f):_==="left"||_==="start"?(N="flex-start",v=f):(_==="right"||_==="end")&&(N="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=N,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(Qu),r.justifyContent=r.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}};function id(t,e){t.get(Nn).load(nd);let n=t.get(Ws),r=t.get(ye),i=t.get(Er),o=t.get(Bi),s=t.get(Mn),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 vi(l,o,t),_=new sr(e),f=t.get(wn,null,{optional:!0})||t.get(Yt).createRenderer(null,null);return _.direction=_.direction||s.value,new ar(d,a,l,_,t.get(Ue),t.get(yg),r,t.get(Ha),t.get(Eg),e?.disableAnimations??t.get(Ia,null,{optional:!0})==="NoopAnimations",t.get(pr),f)}function bg(t,e){}var vn=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 Sg=(()=>{class t extends _n{_elementRef=O(Me);_focusTrapFactory=O(Ku);_config;_interactivityChecker=O(Bs);_ngZone=O(Ue);_focusMonitor=O(Wu);_renderer=O(wn);_changeDetectorRef=O(Gi);_injector=O(Ne);_platform=O(Ye);_document=O(ye);_portalOutlet;_focusTrapped=new ve;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=O(vn,{optional:!0})||new vn,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||_t(()=>{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=vr(),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=vr();return n===r||n.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=vr()))}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=ee({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(r,i){if(r&1&&Ma(Ls,7),r&2){let o;Pa(o=ka())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,i){r&2&&$e("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:[Nt],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,i){r&1&&wa(0,bg,0,0,"ng-template",0)},dependencies:[Ls],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
19
- `],encapsulation:2})}return t})(),cr=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new ve;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&&!qu(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))}},Cg=new Be("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=O(Ne);return()=>ed(t)}}),Ig=new Be("DialogData"),Tg=new Be("DefaultDialogConfig");function wg(t){let e=Ge(t),n=new Pe;return{valueSignal:e,get value(){return e()},change:n,ngOnDestroy(){n.complete()}}}var RA=(()=>{class t{_injector=O(Ne);_defaultOptions=O(Tg,{optional:!0});_parentDialog=O(t,{optional:!0,skipSelf:!0});_overlayContainer=O(Ws);_idGenerator=O(Er);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ve;_afterOpenedAtThisLevel=new ve;_ariaHiddenElements=new Map;_scrollStrategy=O(Cg);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=va(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Sa(void 0)));constructor(){}open(n,r){let i=this._defaultOptions||new vn;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=id(this._injector,o),a=new cr(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(ya(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(){Ys(this.openDialogs,n=>n.close())}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}ngOnDestroy(){Ys(this._openDialogsAtThisLevel,n=>{n.config.closeOnDestroy===!1&&this._removeOpenDialog(n,!1)}),Ys(this._openDialogsAtThisLevel,n=>n.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(n){let r=new sr({positionStrategy:n.positionStrategy||rd().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:vn,useValue:i},{provide:cr,useValue:r},{provide:ar,useValue:n}],a;i.container?typeof i.container=="function"?a=i.container:(a=i.container.type,s.push(...i.container.providers(i))):a=Sg;let l=new mn(a,i.viewContainerRef,Ne.create({parent:o||this._injector,providers:s}));return n.attach(l).instance}_attachDialogContent(n,r,i,o){if(n instanceof hr){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 mn(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:Ig,useValue:n.data},{provide:cr,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(Mn,null,{optional:!0}))&&a.push({provide:Mn,useValue:wg(n.direction)}),Ne.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=de({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ys(t,e){let n=t.length;for(;n--;)e(t[n])}var bi=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 Si=class t{static cache=new Map;static loadingPromises=new Map;async getSvg(e){if(t.cache.has(e))return t.cache.get(e);if(t.loadingPromises.has(e))return t.loadingPromises.get(e);let n=this.fetchSvgContent(e);t.loadingPromises.set(e,n);try{let r=await n;return t.cache.set(e,r),r}finally{t.loadingPromises.delete(e)}}getCachedSvg(e){return t.cache.get(e)??null}async preloadIcons(e){let n=e.map(r=>this.getSvg(r).catch(i=>(ae.error(`Failed to preload icon: ${r}`,i),"")));await Promise.all(n)}clearCache(){t.cache.clear(),t.loadingPromises.clear()}async fetchSvgContent(e){let n=`${ze.baseURL}/svg/${e}.svg`;try{return(await gc(n,{cache:"force-cache",headers:{Accept:"image/svg+xml,text/plain"}})).data}catch(r){return ae.error(`Unable to get the icon: ${e}`,r),""}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=de({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ci=class t{name=Ee.required();rawSvg=Ge("");sanitisedSvg=ot(()=>this.sanitizer.bypassSecurityTrustHtml(this.rawSvg()));sanitizer=O($a);iconService=O(Si);constructor(){st(()=>{let e=this.name();this.loadIcon(e)})}async loadIcon(e){try{let n=await this.iconService.getSvg(e);this.rawSvg.set(n)}catch{this.rawSvg.set("")}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ee({type:t,selectors:[["cooee-icon"]],hostAttrs:["role","img"],hostVars:2,hostBindings:function(n,r){n&2&&(We("innerHTML",r.sanitisedSvg(),In),$e("aria-label",r.name()))},inputs:{name:[1,"name"]},decls:0,vars:0,template:function(n,r){},encapsulation:2})};var Dg=[[["swiper-slides"]]],Ag=["swiper-slides"],xg=(t,e)=>({"--swiper-navigation-size":t,color:e}),Og=t=>({color:t,bottom:0,top:"unset",position:"relative"});function Rg(t,e){if(t&1&&(le(0,"div",2),it(1,"span"),fe(),le(2,"div",3),it(3,"span"),fe()),t&2){let n,r,i=pe(),o=((n=i.navigationConfig())==null?null:n.size)??50,s=((r=i.navigationConfig())==null||r.color==null?null:r.color.rgba)??"white",a=_r(4,xg,o+"px",s);mr(a),G(2),mr(a)}}function Ng(t,e){if(t&1&&(le(0,"div",4),it(1,"span"),fe()),t&2){let n,r=((n=pe().paginationConfig())==null||n.color==null?null:n.color.rgba)??"white",i=Va(2,Og,r);mr(i)}}var od=class t{options=Ee.required();navigationConfig=Ee();paginationConfig=Ee();slideChange=Et();elementRef=O(Me);swiperInstance;initToken=0;resizeDebouncer=new bi(this.onResize.bind(this));constructor(){st(()=>{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 rc(),e!==this.initToken){ae.warn("Swiper token not matching");return}let n=this.elementRef.nativeElement,r={nextEl:n.querySelector(".swiper-button-next"),prevEl:n.querySelector(".swiper-button-prev"),enabled:this.navigationConfig()?.enabled},i=this.paginationConfig(),o={el:n.querySelector(".swiper-pagination"),enabled:this.paginationConfig()?.enabled,type:this.paginationConfig()?.type,clickable:!0,renderBullet:function(s,a){return`
20
- <span class="${a}"
21
- style="background-color: ${i?.color?.rgba};"></span>
22
- `},renderProgressbar:s=>`
23
- <span class="${s}"
24
- style="background-color: ${i?.color?.rgba};">
25
- </span>
26
- `};this.swiperInstance=new window.CooeeSDK.Swiper(n,y({navigation:r,pagination:o},this.options())),this.swiperInstance.on("slideChange",s=>{this.slideChange.emit(s)})}onResize(){this.swiperInstance?(ae.verbose("Updating swiper"),this.swiperInstance.update()):(ae.verbose("Reinitialising swiper"),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=ee({type:t,selectors:[["cooee-swiper"]],hostAttrs:[1,"swiper"],inputs:{options:[1,"options"],navigationConfig:[1,"navigationConfig"],paginationConfig:[1,"paginationConfig"]},outputs:{slideChange:"slideChange"},ngContentSelectors:Ag,decls:4,vars:2,consts:[[1,"swiper-wrapper"],[1,"swiper-pagination",3,"style"],[1,"swiper-button-prev"],[1,"swiper-button-next"],[1,"swiper-pagination"]],template:function(n,r){if(n&1&&(Ra(Dg),le(0,"div",0),Na(1),fe(),Se(2,Rg,4,7),Se(3,Ng,2,4,"div",1)),n&2){let i,o;G(2),Ce((i=r.navigationConfig())!=null&&i.enabled?2:-1),G(),Ce((o=r.paginationConfig())!=null&&o.enabled?3:-1)}},styles:[`:host{display:block}.swiper-wrapper{scrollbar-width:none;display:flex}.swiper-wrapper::-webkit-scrollbar{display:none}.swiper .swiper-button-prev,.swiper .swiper-button-next{background:rgba(var(--lc-icon-button-bg-color));width:var(--lc-icon-button-size);height:var(--lc-icon-button-size);border-radius:100%}.swiper .swiper-button-prev:after,.swiper .swiper-button-next:after{font-size:20px;color:rgba(var(--lc-icon-button-color))}
27
- `],encapsulation:2})};function Mg(t,e){if(t&1&&(le(0,"span",1),Ie(1),fe()),t&2){pe();let n=yt(0);G(),Kt(n.heading)}}function Pg(t,e){if(t&1&&(le(0,"span",2),Ie(1),fe()),t&2){pe();let n=yt(0);G(),Kt(n.subHeading)}}var sd=class t{card=Ee.required();linkClicked=Et();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=ee({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=Xt();Mt(0),le(1,"div",0),Se(2,Mg,2,1,"span",1),Se(3,Pg,2,1,"span",2),le(4,"a",3),An("click",function(s){return xt(i),Ot(r.clickLink(s))}),Ie(5),fe()()}if(n&2){let i=Pt(r.card());G(2),Ce(i!=null&&i.heading?2:-1),G(),Ce(i!=null&&i.subHeading?3:-1),G(),We("href",r.linkAfterSanity(),Tn)("target",i.newTab?"_blank":"_self"),G(),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:rgba(var(--lc-primary-button-bg-color));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 kg(t,e){t&1&&ji(0,"cooee-icon",1)}function Lg(t,e){t&1&&ji(0,"cooee-icon",2)}var ad=class t{muted=Ba.required();videoEl=Ee.required();toggled=Et();constructor(){st(()=>{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=ee({type:t,selectors:[["cooee-mute-toggle"]],inputs:{muted:[1,"muted"],videoEl:[1,"videoEl"]},outputs:{muted:"mutedChange",toggled:"toggled"},decls:3,vars:5,consts:[["type","button",3,"click"],["name","unmute"],["name","mute"]],template:function(n,r){n&1&&(rt(0,"button",0),Dn("click",function(o){return r.toggle(o)}),Se(1,kg,1,0,"cooee-icon",1)(2,Lg,1,0,"cooee-icon",2),vt()),n&2&&(xn("unmute",!r.muted()),$e("aria-label",r.muted()?"Unmute video":"Mute video")("aria-pressed",r.muted()),G(),Ce(r.muted()?1:2))},dependencies:[Ci],styles:["button[_ngcontent-%COMP%]{width:var(--lc-icon-button-size, 44px);height:var(--lc-icon-button-size, 44px);display:flex;justify-content:center;align-items:center;border:none;border-radius:100%;background:#00000080;background:color-mix(in oklab,#000 50%,transparent)}"]})};var Ii=class t{transform(e){return e==null?null:gs(e)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Ta({name:"cooeeCurrency",type:t,pure:!0})};function Fg(t,e){if(t&1&&(it(0,"span",6),On(1,"cooeeCurrency"),On(2,"safeHtml")),t&2){pe();let n=yt(7);We("innerHTML",Rn(2,3,Rn(1,1,n.cmp)),In)}}function Vg(t,e){t&1&&Ie(0," Out of Stock ")}function Bg(t,e){t&1&&Ie(0," Add To Cart ")}var cd=class t{buttonClick=Et();item=Ee.required();isButtonDisabled=ot(()=>{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=ee({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=Xt();Aa(0),le(1,"div",0),it(2,"img",1),le(3,"div",2)(4,"div",3),Ie(5),fe(),le(6,"div",4),Mt(7),it(8,"span",5),On(9,"cooeeCurrency"),On(10,"safeHtml"),Se(11,Fg,3,5,"span",6),fe(),le(12,"a",7),An("click",function(s){return xt(i),Ot(s.stopPropagation())}),Ie(13," Shop now "),fe()()(),le(14,"div",8)(15,"button",9),An("click",function(s){return xt(i),Ot(r.addToCartClicked(s))}),Se(16,Vg,1,0)(17,Bg,1,0),fe(),le(18,"a",10),it(19,"img",11),fe()(),xa()}if(n&2){let i=r.item().selectedOrFirstVariant.value;G(2),We("alt",La(r.item().name))("src",r.item().firstImageURL,Tn),G(3),qt(" ",r.item().name," "),G(2);let o=Pt(i.price);G(),We("innerHTML",Rn(10,12,Rn(9,10,o.d)),In),G(3),Ce(o.cmp?11:-1),G(),We("href","/products/"+r.item().slug,Tn),G(3),We("disabled",r.isButtonDisabled()),G(),Ce(r.isButtonDisabled()?16:17)}},dependencies:[Ii,Wa],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)}.item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3.5px;font-size:10.5px}.item-name[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-footer[_ngcontent-%COMP%]{display:flex;gap:6px;align-items:center}.cta-button[_ngcontent-%COMP%]{padding:10px;border:none;width:100%;text-align:center}.shop-now-button[_ngcontent-%COMP%]{display:none;background-color:rgba(var(--lc-primary-button-bg-color));color:rgba(var(--lc-primary-button-color));font-weight:var(--lc-primary-button-weight);text-transform:var(--lc-primary-button-transform);border-radius:var(--lc-button-radius);font-size:var(--lc-button-size);font-family:var(--lc-button-family),serif;height:var(--lc-button-height);letter-spacing:var(--lc-button-letter-spacing);transition:filter .12s ease,background-color .2s ease,color .2s ease;border-width:1px;border-style:solid;border-color:rgba(var(--lc-primary-button-border-color));font-size:12px;width:fit-content;height:auto;text-align:center;z-index:4;padding:4px 10px;text-decoration:none}.shop-now-button[_ngcontent-%COMP%]:hover{filter:brightness(.95)}.shop-now-button[_ngcontent-%COMP%]:active{filter:brightness(.9)}.shop-now-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid rgba(var(--lc-primary-color, 0, 0, 0));outline-offset:2px}.view-cart-button[_ngcontent-%COMP%]{display:none}"]})};export{ae as a,Kg as b,bt as c,rc as d,ic as e,Cr as f,lc as g,Sf as h,Cf as i,If as j,Xi as k,au as l,Vm as m,gs as n,Ii as o,ke as p,pc as q,tg as r,ng as s,cr as t,Ig as u,RA as v,bi as w,Ci as x,od as y,sd as z,ad as A,cd as B};