@letscooee/web-sdk 13.1.12 → 13.1.14

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/.release-it.json CHANGED
@@ -45,6 +45,6 @@
45
45
  }
46
46
  },
47
47
  "hooks": {
48
- "after:bump": "npm run asset-sizes"
48
+ "after:bump": "npm run asset-sizes -- --write-changelog"
49
49
  }
50
50
  }
@@ -0,0 +1,15 @@
1
+ var __require=(x=>typeof require!==`undefined`?require:typeof Proxy!==`undefined`?new Proxy(x,{get:(a,b)=>(typeof require!==`undefined`?require:a)[b]}):x)(function(x){if(typeof require!==`undefined`)return require.apply(this,arguments);throw Error('Calling `require` for "'+x+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});var k=Object.create;var g=Object.defineProperty,l$1=Object.defineProperties,m=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var i=(a,b,c)=>b in a?g(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,r=(a,b)=>{for(var c in b||={})h.call(b,c)&&i(a,c,b[c]);if(f)for(var c of f(b))j.call(b,c)&&i(a,c,b[c]);return a},s$1=(a,b)=>l$1(a,n(b));var t=(a=>typeof __require<`u`?__require:typeof Proxy<`u`?new Proxy(a,{get:(b,c)=>(typeof __require<`u`?__require:b)[c]}):a)(function(a){if(typeof __require<`u`)return __require.apply(this,arguments);throw Error(`Dynamic require of "`+a+`" is not supported`)});var u=(a,b)=>{var c={};for(var d in a)h.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&f)for(var d of f(a))b.indexOf(d)<0&&j.call(a,d)&&(c[d]=a[d]);return c};var v=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),w=(a,b)=>{for(var c in b)g(a,c,{get:b[c],enumerable:true});},q=(a,b,c,d)=>{if(b&&typeof b==`object`||typeof b==`function`)for(let e of o(b))!h.call(a,e)&&e!==c&&g(a,e,{get:()=>b[e],enumerable:!(d=m(b,e))||d.enumerable});return a};var x=(a,b,c)=>(c=a!=null?k(p(a)):{},q(!a||!a.__esModule?g(c,`default`,{value:a,enumerable:true}):c,a));
2
+
3
+ var mt=v((dt,Be)=>{(function(s){if(typeof dt==`object`&&typeof Be<`u`)Be.exports=s();else if(typeof define==`function`&&define.amd)define([],s);else {var n;typeof window<`u`?n=window:typeof global<`u`?n=global:typeof self<`u`?n=self:n=this,n.localforage=s();}})(function(){return (function c(v,I,w){function R(T,V){if(!I[T]){if(!v[T]){var p=typeof t==`function`&&t;if(!V&&p)return p(T,true);if(b)return b(T,true);var _=new Error(`Cannot find module '`+T+`'`);throw _.code=`MODULE_NOT_FOUND`,_}var C=I[T]={exports:{}};v[T][0].call(C.exports,function(O){var j=v[T][1][O];return R(j||O)},C,C.exports,c,v,I,w);}return I[T].exports}for(var b=typeof t==`function`&&t,m=0;m<w.length;m++)R(w[m]);return R})({1:[function(c,v,I){(function(w){var R=w.MutationObserver||w.WebKitMutationObserver,b;if(R){var m=0,T=new R(O),V=w.document.createTextNode(``);T.observe(V,{characterData:true}),b=function(){V.data=m=++m%2;};}else if(!w.setImmediate&&typeof w.MessageChannel<`u`){var p=new w.MessageChannel;p.port1.onmessage=O,b=function(){p.port2.postMessage(0);};}else `document`in w&&`onreadystatechange`in w.document.createElement(`script`)?b=function(){var B=w.document.createElement(`script`);B.onreadystatechange=function(){O(),B.onreadystatechange=null,B.parentNode.removeChild(B),B=null;},w.document.documentElement.appendChild(B);}:b=function(){setTimeout(O,0);};var _,C=[];function O(){_=true;for(var B,z,F=C.length;F;){for(z=C,C=[],B=-1;++B<F;)z[B]();F=C.length;}_=false;}v.exports=j;function j(B){C.push(B)===1&&!_&&b();}}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{});},{}],2:[function(c,v,I){var w=c(1);function R(){}var b={},m=[`REJECTED`],T=[`FULFILLED`],V=[`PENDING`];v.exports=p;function p(y){if(typeof y!=`function`)throw new TypeError(`resolver must be a function`);this.state=V,this.queue=[],this.outcome=void 0,y!==R&&j(this,y);}p.prototype.catch=function(y){return this.then(null,y)},p.prototype.then=function(y,A){if(typeof y!=`function`&&this.state===T||typeof A!=`function`&&this.state===m)return this;var D=new this.constructor(R);if(this.state!==V)C(D,this.state===T?y:A,this.outcome);else this.queue.push(new _(D,y,A));return D};function _(y,A,D){this.promise=y,typeof A==`function`&&(this.onFulfilled=A,this.callFulfilled=this.otherCallFulfilled),typeof D==`function`&&(this.onRejected=D,this.callRejected=this.otherCallRejected);}_.prototype.callFulfilled=function(y){b.resolve(this.promise,y);},_.prototype.otherCallFulfilled=function(y){C(this.promise,this.onFulfilled,y);},_.prototype.callRejected=function(y){b.reject(this.promise,y);},_.prototype.otherCallRejected=function(y){C(this.promise,this.onRejected,y);};function C(y,A,D){w(function(){var L;try{L=A(D);}catch(U){return b.reject(y,U)}L===y?b.reject(y,new TypeError(`Cannot resolve promise with itself`)):b.resolve(y,L);});}b.resolve=function(y,A){var D=B(O,A);if(D.status===`error`)return b.reject(y,D.value);var L=D.value;if(L)j(y,L);else {y.state=T,y.outcome=A;for(var U=-1,k=y.queue.length;++U<k;)y.queue[U].callFulfilled(A);}return y},b.reject=function(y,A){y.state=m,y.outcome=A;for(var D=-1,L=y.queue.length;++D<L;)y.queue[D].callRejected(A);return y};function O(y){var A=y&&y.then;if(y&&(typeof y==`object`||typeof y==`function`)&&typeof A==`function`)return function(){A.apply(y,arguments);}}function j(y,A){var D=false;function L(G){D||(D=true,b.reject(y,G));}function U(G){D||(D=true,b.resolve(y,G));}function k(){A(U,L);}var $=B(k);$.status===`error`&&L($.value);}function B(y,A){var D={};try{D.value=y(A),D.status=`success`;}catch(L){D.status=`error`,D.value=L;}return D}p.resolve=z;function z(y){return y instanceof this?y:b.resolve(new this(R),y)}p.reject=F;function F(y){var A=new this(R);return b.reject(A,y)}p.all=Ie;function Ie(y){var A=this;if(Object.prototype.toString.call(y)!==`[object Array]`)return this.reject(new TypeError(`must be an array`));var D=y.length,L=false;if(!D)return this.resolve([]);for(var U=new Array(D),k=0,$=-1,G=new this(R);++$<D;)q(y[$],$);return G;function q(ae,le){A.resolve(ae).then(Se,function(re){L||(L=true,b.reject(G,re));});function Se(re){U[le]=re,++k===D&&!L&&(L=true,b.resolve(G,U));}}}p.race=Z;function Z(y){var A=this;if(Object.prototype.toString.call(y)!==`[object Array]`)return this.reject(new TypeError(`must be an array`));var D=y.length,L=false;if(!D)return this.resolve([]);for(var U=-1,k=new this(R);++U<D;)$(y[U]);return k;function $(G){A.resolve(G).then(function(q){L||(L=true,b.resolve(k,q));},function(q){L||(L=true,b.reject(k,q));});}}},{1:1}],3:[function(c,v,I){(function(w){typeof w.Promise!=`function`&&(w.Promise=c(2));}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{});},{2:2}],4:[function(c,v,I){var w=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function R(e,r){if(!(e instanceof r))throw new TypeError(`Cannot call a class as a function`)}function b(){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 m=b();function T(){try{if(!m||!m.open)return !1;var e=typeof openDatabase<`u`&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),r=typeof fetch==`function`&&fetch.toString().indexOf(`[native code`)!==-1;return (!e||r)&&typeof indexedDB<`u`&&typeof IDBKeyRange<`u`}catch{return false}}function V(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(o){if(o.name!==`TypeError`)throw o;for(var i=new(typeof BlobBuilder<`u`?BlobBuilder:typeof MSBlobBuilder<`u`?MSBlobBuilder:typeof MozBlobBuilder<`u`?MozBlobBuilder:WebKitBlobBuilder),a=0;a<e.length;a+=1)i.append(e[a]);return i.getBlob(r.type)}}typeof Promise>`u`&&c(3);var p=Promise;function _(e,r){r&&e.then(function(t){r(null,t);},function(t){r(t);});}function C(e,r,t){typeof r==`function`&&e.then(r),typeof t==`function`&&e.catch(t);}function O(e){return typeof e!=`string`&&(console.warn(e+` used as a key, but it is not a string.`),e=String(e)),e}function j(){if(arguments.length&&typeof arguments[arguments.length-1]==`function`)return arguments[arguments.length-1]}var B=`local-forage-detect-blob-support`,z=void 0,F={},Ie=Object.prototype.toString,Z=`readonly`,y=`readwrite`;function A(e){for(var r=e.length,t=new ArrayBuffer(r),i=new Uint8Array(t),a=0;a<r;a++)i[a]=e.charCodeAt(a);return t}function D(e){return new p(function(r){var t=e.transaction(B,y),i=V([``]);t.objectStore(B).put(i,`key`),t.onabort=function(a){a.preventDefault(),a.stopPropagation(),r(false);},t.oncomplete=function(){var a=navigator.userAgent.match(/Chrome\/(\d+)/);r(navigator.userAgent.match(/Edge\//)||!a||parseInt(a[1],10)>=43);};}).catch(function(){return false})}function L(e){return typeof z==`boolean`?p.resolve(z):D(e).then(function(r){return z=r,z})}function U(e){var r=F[e.name],t={};t.promise=new p(function(i,a){t.resolve=i,t.reject=a;}),r.deferredOperations.push(t),r.dbReady?r.dbReady=r.dbReady.then(function(){return t.promise}):r.dbReady=t.promise;}function k(e){var t=F[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function $(e,r){var i=F[e.name].deferredOperations.pop();if(i)return i.reject(r),i.promise}function G(e,r){return new p(function(t,i){if(F[e.name]=F[e.name]||We(),e.db)if(r)U(e),e.db.close();else return t(e.db);var a=[e.name];r&&a.push(e.version);var o=m.open.apply(m,a);r&&(o.onupgradeneeded=function(u){var f=o.result;try{f.createObjectStore(e.storeName),u.oldVersion<=1&&f.createObjectStore(B);}catch(l){if(l.name===`ConstraintError`)console.warn(`The database "`+e.name+`" has been upgraded from version `+u.oldVersion+` to version `+u.newVersion+`, but the storage "`+e.storeName+`" already exists.`);else throw l}}),o.onerror=function(u){u.preventDefault(),i(o.error);},o.onsuccess=function(){var u=o.result;u.onversionchange=function(f){f.target.close();},t(u),k(e);};})}function q(e){return G(e,false)}function ae(e){return G(e,true)}function le(e,r){if(!e.db)return true;var t=!e.db.objectStoreNames.contains(e.storeName),i=e.version<e.db.version,a=e.version>e.db.version;if(i&&(e.version!==r&&console.warn(`The database "`+e.name+`" can't be downgraded from version `+e.db.version+` to version `+e.version+`.`),e.version=e.db.version),a||t){if(t){var o=e.db.version+1;o>e.version&&(e.version=o);}return true}return false}function Se(e){return new p(function(r,t){var i=new FileReader;i.onerror=t,i.onloadend=function(a){r({__local_forage_encoded_blob:true,data:btoa(a.target.result||``),type:e.type});},i.readAsBinaryString(e);})}function re(e){return V([A(atob(e.data))],{type:e.type})}function ke(e){return e&&e.__local_forage_encoded_blob}function Ct(e){var r=this,t=r._initReady().then(function(){var i=F[r._dbInfo.name];if(i&&i.dbReady)return i.dbReady});return C(t,e,e),t}function At(e){U(e);for(var r=F[e.name],t=r.forages,i=0;i<t.length;i++){var a=t[i];a._dbInfo.db&&(a._dbInfo.db.close(),a._dbInfo.db=null);}return e.db=null,q(e).then(function(o){return e.db=o,le(e)?ae(e):o}).then(function(o){e.db=r.db=o;for(var u=0;u<t.length;u++)t[u]._dbInfo.db=o;}).catch(function(o){throw $(e,o),o})}function K(e,r,t,i){i===void 0&&(i=1);try{t(null,e.db.transaction(e.storeName,r));}catch(o){if(i>0&&(!e.db||o.name===`InvalidStateError`||o.name===`NotFoundError`))return p.resolve().then(function(){if(!e.db||o.name===`NotFoundError`&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ae(e)}).then(function(){return At(e).then(function(){K(e,r,t,i-1);})}).catch(t);t(o);}}function We(){return {forages:[],db:null,dbReady:null,deferredOperations:[]}}function xt(e){var r=this,t={db:null};if(e)for(var i in e)t[i]=e[i];var a=F[t.name];a||(a=We(),F[t.name]=a),a.forages.push(r),r._initReady||(r._initReady=r.ready,r.ready=Ct);var o=[];function u(){return p.resolve()}for(var f=0;f<a.forages.length;f++){var l=a.forages[f];l!==r&&o.push(l._initReady().catch(u));}var d=a.forages.slice(0);return p.all(o).then(function(){return t.db=a.db,q(t)}).then(function(g){return t.db=g,le(t,r._defaultConfig.version)?ae(t):g}).then(function(g){t.db=a.db=g,r._dbInfo=t;for(var E=0;E<d.length;E++){var S=d[E];S!==r&&(S._dbInfo.db=t.db,S._dbInfo.version=t.version);}})}function Nt(e,r){var t=this;e=O(e);var i=new p(function(a,o){t.ready().then(function(){K(t._dbInfo,Z,function(u,f){if(u)return o(u);try{var d=f.objectStore(t._dbInfo.storeName).get(e);d.onsuccess=function(){var g=d.result;g===void 0&&(g=null),ke(g)&&(g=re(g)),a(g);},d.onerror=function(){o(d.error);};}catch(g){o(g);}});}).catch(o);});return _(i,r),i}function Lt(e,r){var t=this,i=new p(function(a,o){t.ready().then(function(){K(t._dbInfo,Z,function(u,f){if(u)return o(u);try{var d=f.objectStore(t._dbInfo.storeName).openCursor(),g=1;d.onsuccess=function(){var E=d.result;if(E){var S=E.value;ke(S)&&(S=re(S));var x=e(S,E.key,g++);x!==void 0?a(x):E.continue();}else a();},d.onerror=function(){o(d.error);};}catch(E){o(E);}});}).catch(o);});return _(i,r),i}function Ot(e,r,t){var i=this;e=O(e);var a=new p(function(o,u){var f;i.ready().then(function(){return f=i._dbInfo,Ie.call(r)===`[object Blob]`?L(f.db).then(function(l){return l?r:Se(r)}):r}).then(function(l){K(i._dbInfo,y,function(d,g){if(d)return u(d);try{var E=g.objectStore(i._dbInfo.storeName);l===null&&(l=void 0);var S=E.put(l,e);g.oncomplete=function(){l===void 0&&(l=null),o(l);},g.onabort=g.onerror=function(){u(S.error?S.error:S.transaction.error);};}catch(x){u(x);}});}).catch(u);});return _(a,t),a}function Pt(e,r){var t=this;e=O(e);var i=new p(function(a,o){t.ready().then(function(){K(t._dbInfo,y,function(u,f){if(u)return o(u);try{var d=f.objectStore(t._dbInfo.storeName).delete(e);f.oncomplete=function(){a();},f.onerror=function(){o(d.error);},f.onabort=function(){o(d.error?d.error:d.transaction.error);};}catch(g){o(g);}});}).catch(o);});return _(i,r),i}function Vt(e){var r=this,t=new p(function(i,a){r.ready().then(function(){K(r._dbInfo,y,function(o,u){if(o)return a(o);try{var l=u.objectStore(r._dbInfo.storeName).clear();u.oncomplete=function(){i();},u.onabort=u.onerror=function(){a(l.error?l.error:l.transaction.error);};}catch(d){a(d);}});}).catch(a);});return _(t,e),t}function Mt(e){var r=this,t=new p(function(i,a){r.ready().then(function(){K(r._dbInfo,Z,function(o,u){if(o)return a(o);try{var l=u.objectStore(r._dbInfo.storeName).count();l.onsuccess=function(){i(l.result);},l.onerror=function(){a(l.error);};}catch(d){a(d);}});}).catch(a);});return _(t,e),t}function Bt(e,r){var t=this,i=new p(function(a,o){if(e<0){a(null);return}t.ready().then(function(){K(t._dbInfo,Z,function(u,f){if(u)return o(u);try{var l=f.objectStore(t._dbInfo.storeName),d=!1,g=l.openKeyCursor();g.onsuccess=function(){var E=g.result;if(!E){a(null);return}e===0||d?a(E.key):(d=!0,E.advance(e));},g.onerror=function(){o(g.error);};}catch(E){o(E);}});}).catch(o);});return _(i,r),i}function Ft(e){var r=this,t=new p(function(i,a){r.ready().then(function(){K(r._dbInfo,Z,function(o,u){if(o)return a(o);try{var l=u.objectStore(r._dbInfo.storeName).openKeyCursor(),d=[];l.onsuccess=function(){var g=l.result;if(!g){i(d);return}d.push(g.key),g.continue();},l.onerror=function(){a(l.error);};}catch(g){a(g);}});}).catch(a);});return _(t,e),t}function Ut(e,r){r=j.apply(this,arguments);var t=this.config();e=typeof e!=`function`&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var i=this,a;if(!e.name)a=p.reject(`Invalid arguments`);else {var u=e.name===t.name&&i._dbInfo.db?p.resolve(i._dbInfo.db):q(e).then(function(f){var l=F[e.name],d=l.forages;l.db=f;for(var g=0;g<d.length;g++)d[g]._dbInfo.db=f;return f});e.storeName?a=u.then(function(f){if(f.objectStoreNames.contains(e.storeName)){var l=f.version+1;U(e);var d=F[e.name],g=d.forages;f.close();for(var E=0;E<g.length;E++){var S=g[E];S._dbInfo.db=null,S._dbInfo.version=l;}return new p(function(N,M){var P=m.open(e.name,l);P.onerror=function(H){P.result.close(),M(H);},P.onupgradeneeded=function(){P.result.deleteObjectStore(e.storeName);},P.onsuccess=function(){var H=P.result;H.close(),N(H);};}).then(function(N){d.db=N;for(var M=0;M<g.length;M++){var P=g[M];P._dbInfo.db=N,k(P._dbInfo);}}).catch(function(N){throw ($(e,N)||p.resolve()).catch(function(){}),N})}}):a=u.then(function(f){U(e);var l=F[e.name],d=l.forages;f.close();for(var g=0;g<d.length;g++){var E=d[g];E._dbInfo.db=null;}return new p(function(x,N){var M=m.deleteDatabase(e.name);M.onerror=function(){var P=M.result;P&&P.close(),N(M.error);},M.onblocked=function(){console.warn(`dropInstance blocked for database "`+e.name+`" until all open connections are closed`);},M.onsuccess=function(){var P=M.result;P&&P.close(),x(P);};}).then(function(x){l.db=x;for(var N=0;N<d.length;N++){var M=d[N];k(M._dbInfo);}}).catch(function(x){throw ($(e,x)||p.resolve()).catch(function(){}),x})});}return _(a,r),a}var kt={_driver:`asyncStorage`,_initStorage:xt,_support:T(),iterate:Lt,getItem:Nt,setItem:Ot,removeItem:Pt,clear:Vt,length:Mt,key:Bt,keys:Ft,dropInstance:Ut};function Wt(){return typeof openDatabase==`function`}var X=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,$t=`~~local_forage_type~`,$e=/^~~local_forage_type~([^~]+)~/,de=`__lfsc__:`,De=de.length,Re=`arbf`,Ce=`blob`,Ge=`si08`,He=`ui08`,Ye=`uic8`,je=`si16`,ze=`si32`,qe=`ur16`,Ke=`ui32`,Xe=`fl32`,Je=`fl64`,Qe=De+Re.length,Ze=Object.prototype.toString;function et(e){var r=e.length*.75,t=e.length,i,a=0,o,u,f,l;e[e.length-1]===`=`&&(r--,e[e.length-2]===`=`&&r--);var d=new ArrayBuffer(r),g=new Uint8Array(d);for(i=0;i<t;i+=4)o=X.indexOf(e[i]),u=X.indexOf(e[i+1]),f=X.indexOf(e[i+2]),l=X.indexOf(e[i+3]),g[a++]=o<<2|u>>4,g[a++]=(u&15)<<4|f>>2,g[a++]=(f&3)<<6|l&63;return d}function Ae(e){var r=new Uint8Array(e),t=``,i;for(i=0;i<r.length;i+=3)t+=X[r[i]>>2],t+=X[(r[i]&3)<<4|r[i+1]>>4],t+=X[(r[i+1]&15)<<2|r[i+2]>>6],t+=X[r[i+2]&63];return r.length%3===2?t=t.substring(0,t.length-1)+`=`:r.length%3===1&&(t=t.substring(0,t.length-2)+`==`),t}function Gt(e,r){var t=``;if(e&&(t=Ze.call(e)),e&&(t===`[object ArrayBuffer]`||e.buffer&&Ze.call(e.buffer)===`[object ArrayBuffer]`)){var i,a=de;e instanceof ArrayBuffer?(i=e,a+=Re):(i=e.buffer,t===`[object Int8Array]`?a+=Ge:t===`[object Uint8Array]`?a+=He:t===`[object Uint8ClampedArray]`?a+=Ye:t===`[object Int16Array]`?a+=je:t===`[object Uint16Array]`?a+=qe:t===`[object Int32Array]`?a+=ze:t===`[object Uint32Array]`?a+=Ke:t===`[object Float32Array]`?a+=Xe:t===`[object Float64Array]`?a+=Je:r(new Error(`Failed to get type for BinaryArray`))),r(a+Ae(i));}else if(t===`[object Blob]`){var o=new FileReader;o.onload=function(){var u=$t+e.type+`~`+Ae(this.result);r(de+Ce+u);},o.readAsArrayBuffer(e);}else try{r(JSON.stringify(e));}catch(u){console.error(`Couldn't convert value into a JSON string: `,e),r(null,u);}}function Ht(e){if(e.substring(0,De)!==de)return JSON.parse(e);var r=e.substring(Qe),t=e.substring(De,Qe),i;if(t===Ce&&$e.test(r)){var a=r.match($e);i=a[1],r=r.substring(a[0].length);}var o=et(r);switch(t){case Re:return o;case Ce:return V([o],{type:i});case Ge:return new Int8Array(o);case He:return new Uint8Array(o);case Ye:return new Uint8ClampedArray(o);case je:return new Int16Array(o);case qe:return new Uint16Array(o);case ze:return new Int32Array(o);case Ke:return new Uint32Array(o);case Xe:return new Float32Array(o);case Je:return new Float64Array(o);default:throw new Error(`Unkown type: `+t)}}var xe={serialize:Gt,deserialize:Ht,stringToBuffer:et,bufferToString:Ae};function tt(e,r,t,i){e.executeSql(`CREATE TABLE IF NOT EXISTS `+r.storeName+` (id INTEGER PRIMARY KEY, key unique, value)`,[],t,i);}function Yt(e){var r=this,t={db:null};if(e)for(var i in e)t[i]=typeof e[i]!=`string`?e[i].toString():e[i];var a=new p(function(o,u){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size);}catch(f){return u(f)}t.db.transaction(function(f){tt(f,t,function(){r._dbInfo=t,o();},function(l,d){u(d);});},u);});return t.serializer=xe,a}function J(e,r,t,i,a,o){e.executeSql(t,i,a,function(u,f){f.code===f.SYNTAX_ERR?u.executeSql(`SELECT name FROM sqlite_master WHERE type='table' AND name = ?`,[r.storeName],function(l,d){d.rows.length?o(l,f):tt(l,r,function(){l.executeSql(t,i,a,o);},o);},o):o(u,f);},o);}function jt(e,r){var t=this;e=O(e);var i=new p(function(a,o){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(f){J(f,u,`SELECT * FROM `+u.storeName+` WHERE key = ? LIMIT 1`,[e],function(l,d){var g=d.rows.length?d.rows.item(0).value:null;g&&(g=u.serializer.deserialize(g)),a(g);},function(l,d){o(d);});});}).catch(o);});return _(i,r),i}function zt(e,r){var t=this,i=new p(function(a,o){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(f){J(f,u,`SELECT * FROM `+u.storeName,[],function(l,d){for(var g=d.rows,E=g.length,S=0;S<E;S++){var x=g.item(S),N=x.value;if(N&&(N=u.serializer.deserialize(N)),N=e(N,x.key,S+1),N!==void 0){a(N);return}}a();},function(l,d){o(d);});});}).catch(o);});return _(i,r),i}function rt(e,r,t,i){var a=this;e=O(e);var o=new p(function(u,f){a.ready().then(function(){r===void 0&&(r=null);var l=r,d=a._dbInfo;d.serializer.serialize(r,function(g,E){E?f(E):d.db.transaction(function(S){J(S,d,`INSERT OR REPLACE INTO `+d.storeName+` (key, value) VALUES (?, ?)`,[e,g],function(){u(l);},function(x,N){f(N);});},function(S){if(S.code===S.QUOTA_ERR){if(i>0){u(rt.apply(a,[e,l,t,i-1]));return}f(S);}});});}).catch(f);});return _(o,t),o}function qt(e,r,t){return rt.apply(this,[e,r,t,1])}function Kt(e,r){var t=this;e=O(e);var i=new p(function(a,o){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(f){J(f,u,`DELETE FROM `+u.storeName+` WHERE key = ?`,[e],function(){a();},function(l,d){o(d);});});}).catch(o);});return _(i,r),i}function Xt(e){var r=this,t=new p(function(i,a){r.ready().then(function(){var o=r._dbInfo;o.db.transaction(function(u){J(u,o,`DELETE FROM `+o.storeName,[],function(){i();},function(f,l){a(l);});});}).catch(a);});return _(t,e),t}function Jt(e){var r=this,t=new p(function(i,a){r.ready().then(function(){var o=r._dbInfo;o.db.transaction(function(u){J(u,o,`SELECT COUNT(key) as c FROM `+o.storeName,[],function(f,l){var d=l.rows.item(0).c;i(d);},function(f,l){a(l);});});}).catch(a);});return _(t,e),t}function Qt(e,r){var t=this,i=new p(function(a,o){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(f){J(f,u,`SELECT key FROM `+u.storeName+` WHERE id = ? LIMIT 1`,[e+1],function(l,d){a(d.rows.length?d.rows.item(0).key:null);},function(l,d){o(d);});});}).catch(o);});return _(i,r),i}function Zt(e){var r=this,t=new p(function(i,a){r.ready().then(function(){var o=r._dbInfo;o.db.transaction(function(u){J(u,o,`SELECT key FROM `+o.storeName,[],function(f,l){for(var d=[],g=0;g<l.rows.length;g++)d.push(l.rows.item(g).key);i(d);},function(f,l){a(l);});});}).catch(a);});return _(t,e),t}function er(e){return new p(function(r,t){e.transaction(function(i){i.executeSql(`SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'`,[],function(a,o){for(var u=[],f=0;f<o.rows.length;f++)u.push(o.rows.item(f).name);r({db:e,storeNames:u});},function(a,o){t(o);});},function(i){t(i);});})}function tr(e,r){r=j.apply(this,arguments);var t=this.config();e=typeof e!=`function`&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var i=this,a;return e.name?a=new p(function(o){var u;e.name===t.name?u=i._dbInfo.db:u=openDatabase(e.name,``,``,0),e.storeName?o({db:u,storeNames:[e.storeName]}):o(er(u));}).then(function(o){return new p(function(u,f){o.db.transaction(function(l){function d(x){return new p(function(N,M){l.executeSql(`DROP TABLE IF EXISTS `+x,[],function(){N();},function(P,H){M(H);});})}for(var g=[],E=0,S=o.storeNames.length;E<S;E++)g.push(d(o.storeNames[E]));p.all(g).then(function(){u();}).catch(function(x){f(x);});},function(l){f(l);});})}):a=p.reject(`Invalid arguments`),_(a,r),a}var rr={_driver:`webSQLStorage`,_initStorage:Yt,_support:Wt(),iterate:zt,getItem:jt,setItem:qt,removeItem:Kt,clear:Xt,length:Jt,key:Qt,keys:Zt,dropInstance:tr};function nr(){try{return typeof localStorage<`u`&&`setItem`in localStorage&&!!localStorage.setItem}catch{return false}}function nt(e,r){var t=e.name+`/`;return e.storeName!==r.storeName&&(t+=e.storeName+`/`),t}function or(){var e=`_localforage_support_test`;try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return true}}function ir(){return !or()||localStorage.length>0}function ar(e){var r=this,t={};if(e)for(var i in e)t[i]=e[i];return t.keyPrefix=nt(e,r._defaultConfig),ir()?(r._dbInfo=t,t.serializer=xe,p.resolve()):p.reject()}function sr(e){var r=this,t=r.ready().then(function(){for(var i=r._dbInfo.keyPrefix,a=localStorage.length-1;a>=0;a--){var o=localStorage.key(a);o.indexOf(i)===0&&localStorage.removeItem(o);}});return _(t,e),t}function ur(e,r){var t=this;e=O(e);var i=t.ready().then(function(){var a=t._dbInfo,o=localStorage.getItem(a.keyPrefix+e);return o&&(o=a.serializer.deserialize(o)),o});return _(i,r),i}function cr(e,r){var t=this,i=t.ready().then(function(){for(var a=t._dbInfo,o=a.keyPrefix,u=o.length,f=localStorage.length,l=1,d=0;d<f;d++){var g=localStorage.key(d);if(g.indexOf(o)===0){var E=localStorage.getItem(g);if(E&&(E=a.serializer.deserialize(E)),E=e(E,g.substring(u),l++),E!==void 0)return E}}});return _(i,r),i}function fr(e,r){var t=this,i=t.ready().then(function(){var a=t._dbInfo,o;try{o=localStorage.key(e);}catch{o=null;}return o&&(o=o.substring(a.keyPrefix.length)),o});return _(i,r),i}function lr(e){var r=this,t=r.ready().then(function(){for(var i=r._dbInfo,a=localStorage.length,o=[],u=0;u<a;u++){var f=localStorage.key(u);f.indexOf(i.keyPrefix)===0&&o.push(f.substring(i.keyPrefix.length));}return o});return _(t,e),t}function dr(e){var t=this.keys().then(function(i){return i.length});return _(t,e),t}function mr(e,r){var t=this;e=O(e);var i=t.ready().then(function(){var a=t._dbInfo;localStorage.removeItem(a.keyPrefix+e);});return _(i,r),i}function gr(e,r,t){var i=this;e=O(e);var a=i.ready().then(function(){r===void 0&&(r=null);var o=r;return new p(function(u,f){var l=i._dbInfo;l.serializer.serialize(r,function(d,g){if(g)f(g);else try{localStorage.setItem(l.keyPrefix+e,d),u(o);}catch(E){(E.name===`QuotaExceededError`||E.name===`NS_ERROR_DOM_QUOTA_REACHED`)&&f(E),f(E);}});})});return _(a,t),a}function pr(e,r){if(r=j.apply(this,arguments),e=typeof e!=`function`&&e||{},!e.name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName;}var i=this,a;return e.name?a=new p(function(o){e.storeName?o(nt(e,i._defaultConfig)):o(e.name+`/`);}).then(function(o){for(var u=localStorage.length-1;u>=0;u--){var f=localStorage.key(u);f.indexOf(o)===0&&localStorage.removeItem(f);}}):a=p.reject(`Invalid arguments`),_(a,r),a}var hr={_driver:`localStorageWrapper`,_initStorage:ar,_support:nr(),iterate:cr,getItem:ur,setItem:gr,removeItem:mr,clear:sr,length:dr,key:fr,keys:lr,dropInstance:pr},vr=function(r,t){return r===t||typeof r==`number`&&typeof t==`number`&&isNaN(r)&&isNaN(t)},yr=function(r,t){for(var i=r.length,a=0;a<i;){if(vr(r[a],t))return true;a++;}return false},ot=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`},se={},it={},ne={INDEXEDDB:kt,WEBSQL:rr,LOCALSTORAGE:hr},Er=[ne.INDEXEDDB._driver,ne.WEBSQL._driver,ne.LOCALSTORAGE._driver],me=[`dropInstance`],Ne=[`clear`,`getItem`,`iterate`,`key`,`keys`,`length`,`removeItem`,`setItem`].concat(me),_r={description:``,driver:Er.slice(),name:`localforage`,size:4980736,storeName:`keyvaluepairs`,version:1};function br(e,r){e[r]=function(){var t=arguments;return e.ready().then(function(){return e[r].apply(e,t)})};}function Le(){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(r)for(var t in r)r.hasOwnProperty(t)&&(ot(r[t])?arguments[0][t]=r[t].slice():arguments[0][t]=r[t]);}return arguments[0]}v.exports=new((function(){function e(r){R(this,e);for(var t in ne)if(ne.hasOwnProperty(t)){var i=ne[t],a=i._driver;this[t]=a,se[a]||this.defineDriver(i);}this._defaultConfig=Le({},_r),this._config=Le({},this._defaultConfig,r),this._driverSet=null,this._initDriver=null,this._ready=false,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){});}return e.prototype.config=function(t){if((typeof t>`u`?`undefined`:w(t))===`object`){if(this._ready)return new Error(`Can't call config() after localforage has been used.`);for(var i in t){if(i===`storeName`&&(t[i]=t[i].replace(/\W/g,`_`)),i===`version`&&typeof t[i]!=`number`)return new Error(`Database version must be a number.`);this._config[i]=t[i];}return `driver`in t&&t.driver?this.setDriver(this._config.driver):true}else return typeof t==`string`?this._config[t]:this._config},e.prototype.defineDriver=function(t,i,a){var o=new p(function(u,f){try{var l=t._driver,d=new Error(`Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver`);if(!t._driver){f(d);return}for(var g=Ne.concat(`_initStorage`),E=0,S=g.length;E<S;E++){var x=g[E];if((!yr(me,x)||t[x])&&typeof t[x]!=`function`){f(d);return}}var M=function(){for(var ue=function(Sr){return function(){var Dr=new Error(`Method `+Sr+` is not implemented by the current driver`),at=p.reject(Dr);return _(at,arguments[arguments.length-1]),at}},Oe=0,Ir=me.length;Oe<Ir;Oe++){var Pe=me[Oe];t[Pe]||(t[Pe]=ue(Pe));}};M();var P=function(ue){se[l]&&console.info(`Redefining LocalForage driver: `+l),se[l]=t,it[l]=ue,u();};`_support`in t?t._support&&typeof t._support==`function`?t._support().then(P,f):P(!!t._support):P(!0);}catch(H){f(H);}});return C(o,i,a),o},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(t,i,a){var o=se[t]?p.resolve(se[t]):p.reject(new Error(`Driver not found.`));return C(o,i,a),o},e.prototype.getSerializer=function(t){var i=p.resolve(xe);return C(i,t),i},e.prototype.ready=function(t){var i=this,a=i._driverSet.then(function(){return i._ready===null&&(i._ready=i._initDriver()),i._ready});return C(a,t,t),a},e.prototype.setDriver=function(t,i,a){var o=this;ot(t)||(t=[t]);var u=this._getSupportedDrivers(t);function f(){o._config.driver=o.driver();}function l(E){return o._extend(E),f(),o._ready=o._initStorage(o._config),o._ready}function d(E){return function(){var S=0;function x(){for(;S<E.length;){var N=E[S];return S++,o._dbInfo=null,o._ready=null,o.getDriver(N).then(l).catch(x)}f();var M=new Error(`No available storage method found.`);return o._driverSet=p.reject(M),o._driverSet}return x()}}return this._driverSet=(this._driverSet!==null?this._driverSet.catch(function(){return p.resolve()}):p.resolve()).then(function(){var E=u[0];return o._dbInfo=null,o._ready=null,o.getDriver(E).then(function(S){o._driver=S._driver,f(),o._wrapLibraryMethodsWithReady(),o._initDriver=d(u);})}).catch(function(){f();var E=new Error(`No available storage method found.`);return o._driverSet=p.reject(E),o._driverSet}),C(this._driverSet,i,a),this._driverSet},e.prototype.supports=function(t){return !!it[t]},e.prototype._extend=function(t){Le(this,t);},e.prototype._getSupportedDrivers=function(t){for(var i=[],a=0,o=t.length;a<o;a++){var u=t[a];this.supports(u)&&i.push(u);}return i},e.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,i=Ne.length;t<i;t++)br(this,Ne[t]);},e.prototype.createInstance=function(t){return new e(t)},e})());},{3:3}]},{},[4])(4)});});var Et=v((yt,_e)=>{(function(s){var n={};n.VERSION=`1.6.1`;var h,c={},v=function(m,T){return function(){return T.apply(m,arguments)}},I=function(){var m=arguments,T=m[0],V,p;for(p=1;p<m.length;p++)for(V in m[p])!(V in T)&&m[p].hasOwnProperty(V)&&(T[V]=m[p][V]);return T},w=function(m,T){return {value:m,name:T}};n.TRACE=w(1,`TRACE`),n.DEBUG=w(2,`DEBUG`),n.INFO=w(3,`INFO`),n.TIME=w(4,`TIME`),n.WARN=w(5,`WARN`),n.ERROR=w(8,`ERROR`),n.OFF=w(99,`OFF`);var R=function(m){this.context=m,this.setLevel(m.filterLevel),this.log=this.info;};R.prototype={setLevel:function(m){m&&`value`in m&&(this.context.filterLevel=m);},getLevel:function(){return this.context.filterLevel},enabledFor:function(m){var T=this.context.filterLevel;return m.value>=T.value},trace:function(){this.invoke(n.TRACE,arguments);},debug:function(){this.invoke(n.DEBUG,arguments);},info:function(){this.invoke(n.INFO,arguments);},warn:function(){this.invoke(n.WARN,arguments);},error:function(){this.invoke(n.ERROR,arguments);},time:function(m){typeof m==`string`&&m.length>0&&this.invoke(n.TIME,[m,`start`]);},timeEnd:function(m){typeof m==`string`&&m.length>0&&this.invoke(n.TIME,[m,`end`]);},invoke:function(m,T){h&&this.enabledFor(m)&&h(T,I({level:m},this.context));}};var b=new R({filterLevel:n.OFF});((function(){var m=n;m.enabledFor=v(b,b.enabledFor),m.trace=v(b,b.trace),m.debug=v(b,b.debug),m.time=v(b,b.time),m.timeEnd=v(b,b.timeEnd),m.info=v(b,b.info),m.warn=v(b,b.warn),m.error=v(b,b.error),m.log=m.info;}))(),n.setHandler=function(m){h=m;},n.setLevel=function(m){b.setLevel(m);for(var T in c)c.hasOwnProperty(T)&&c[T].setLevel(m);},n.getLevel=function(){return b.getLevel()},n.get=function(m){return c[m]||(c[m]=new R(I({name:m},b.context)))},n.createDefaultHandler=function(m){m=m||{},m.formatter=m.formatter||function(_,C){C.name&&_.unshift(`[`+C.name+`]`);};var T={},V=function(p,_){Function.prototype.apply.call(p,console,_);};return typeof console>`u`?function(){}:function(p,_){p=Array.prototype.slice.call(p);var C=console.log,O;_.level===n.TIME?(O=(_.name?`[`+_.name+`] `:``)+p[0],p[1]===`start`?console.time?console.time(O):T[O]=new Date().getTime():console.timeEnd?console.timeEnd(O):V(C,[O+`: `+(new Date().getTime()-T[O])+`ms`])):(_.level===n.WARN&&console.warn?C=console.warn:_.level===n.ERROR&&console.error?C=console.error:_.level===n.INFO&&console.info?C=console.info:_.level===n.DEBUG&&console.debug?C=console.debug:_.level===n.TRACE&&console.trace&&(C=console.trace),m.formatter(p,_),V(C,p));}},n.useDefaults=function(m){n.setLevel(m&&m.defaultLevel||n.DEBUG),n.setHandler(n.createDefaultHandler(m));},n.setDefaults=n.useDefaults,typeof define==`function`&&define.amd?define(n):typeof _e<`u`&&_e.exports?_e.exports=n:(n._prevLogger=s.Logger,n.noConflict=function(){return s.Logger=n._prevLogger,n},s.Logger=n);})(yt);});var Ve=`13.1.14`;var Cr=Ve.split(`-`)[0].split(`.`).slice(0,3).map(s=>s.padStart(2,`0`)).join(``),Hr=`WEB`,ft=`CooeeSDK`,Q=Ve,Yr=parseInt(Cr,10);var jr=[`collection`,`product`,`cart`],zr=[{identifier:`#flo-checkout-wrapper`,gateway:`Shopflow`},{identifier:`#fastrr-main-container`,gateway:`Shiprocket`},{identifier:`#gokwik-modal-wrapper`,gateway:`Gokwik`},{identifier:`#zecpe`,gateway:`Ecom 360`}],qr=[`View Item`,`View Cart`,`View Collection`],Kr=[`CE Screen View`,`View Collection`,`View Item`,`View Cart`],Xr=`https://cdn.jsdelivr.net/npm/swiper@11`;function lt(s){if(s<0)return `${s}ms`;let n=new Date(Date.UTC(0,0,0,0,0,0,s)),h=[];return n.getUTCMinutes()&&h.push(n.getUTCMinutes()+`m`),n.getUTCSeconds()&&h.push(n.getUTCSeconds()+`s`),n.getUTCMilliseconds()&&h.push(n.getUTCMilliseconds()+`ms`),h.length||h.push(`0ms`),h.join(` `)}function Me(){return window.CooeeSDK.runtimeData}function en(){return lt(Date.now()-Me().sdkLoadTime.getTime())}var Fe=x(mt());function ge(s){return Fe.default.createInstance({name:`lc`,storeName:s,driver:Fe.default.LOCALSTORAGE})}var oe=class{static storage;static async get(n,h){return await this.storage?.getItem(n)??h}static set(n,h){return this.storage?.setItem(n,h)}static remove(n){return this.storage?.removeItem(n)}static clear(){return this.storage?.clear()}static getForage(){return this.storage}};var fe=class extends oe{static storeName=`usr`;static{this.storage=ge(this.storeName);}};var gt=`https://cdn.jsdelivr.net/npm/@letscooee/web-sdk@${Q}/dist`,te={apiURL:`https://api.sdk.letscooee.com`,debug:false,mode:`production`,baseURL:gt,styleURL:`${gt}/styles.min.css`};var pe=class{static ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/);static isObject(n){return typeof n==`object`&&!Array.isArray(n)&&n!==null}static parseToAny(n){try{return JSON.parse(n.toString())}catch{}return n.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(n.toString()):n}static async sleep(n){return new Promise(h=>setTimeout(h,n))}static hasKeys(n){return n?Object.keys(n).length>=1:false}static convertObjectToArray(n,h){return h.reduce((c,v)=>(n.hasOwnProperty(v)&&n[v]!=null&&c.push({[v]:n[v]}),c),[])}static removeNullUndefinedKeys(n){return Object.keys(n).reduce((h,c)=>(n[c]!==null&&n[c]!==void 0&&(h[c]=n[c]),h),{})}static stringify(n){return JSON.stringify(n,function(h,c){return c===void 0?null:c})}};var he=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;skipItemAttribute;widgetCustomisation;currency;static get(){return window.CooeeSDK.config}update(n){return n??={},this.gaEnabled=n.gaEnabled,this.gaMeasurementID=n.gaMeasurementID,this.pixelPush=n.pixelPush,this.website=n.website??{},this.currencyCount=n.currencyCount??0,this.money=n.money,this.currency=n.currency,this.storefrontToken=n.storefrontToken,this.skipItemAttribute=n.skipItemAttribute,this.widgetCustomisation=n.widgetCustomisation,this}};var ve=class extends oe{static storeName=`ses`;static{this.storage=ge(this.storeName);}};var ye=class{static format(n,h){return h.replace(/{{\s*(\w+)\s*}}/,(v,I)=>{switch(I){case `amount`:return this.formatWithDelimiters(n,2);case `amount_no_decimals`:return this.formatWithDelimiters(n,0);case `amount_with_comma_separator`:return this.formatWithDelimiters(n,2,`.`,`,`);case `amount_no_decimals_with_comma_separator`:return this.formatWithDelimiters(n,0,`.`,`,`);case `amount_with_apostrophe_separator`:return this.formatWithDelimiters(n,2,`'`,`.`);case `amount_no_decimals_with_space_separator`:return this.formatWithDelimiters(n,0,` `);case `amount_with_space_separator`:return this.formatWithDelimiters(n,2,` `,`,`);case `amount_with_period_and_space_separator`:return this.formatWithDelimiters(n,2,` `,`.`);default:return v}})}static formatWithDelimiters(n,h=2,c=`,`,v=`.`){if(isNaN(n)||n==null)return `0`;let w=(n/100).toFixed(h).split(`.`);return w[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,`$1`+c)+(w[1]?v+w[1]:``)}};function Dn(s){try{return new URL(s)}catch{return}}function Rn(s){return !s||s===`null`||s===`undefined`}function Cn(s,n){let h=s.indexOf(n);return h===-1?false:(s.splice(h,1),true)}function An(s,n,h){return {[s]:Ar(n,h),[s+`_wo_currency`]:n}}function Ar(s,n){if(s==0&&n)return `Free`;let h=Me(),c=he.get(),v=h.shopCurrencyCode||c.currency,I=h.currencyCode;I||Y.warn(`Currency code is not set in RuntimeData`);let w=c.money?.format??h.moneyFormat,R;if(w&&v===I)R=ye.format(s*100,w);else {let b;try{b=new Intl.NumberFormat(pt(),{style:`currency`,currency:I||v,minimumFractionDigits:0,maximumFractionDigits:2});}catch(m){return Ue(m,`format-currency`,{extra:{currentCurrency:I,shopCurrency:v}}),``}R=b.format(s),R=R.replace(`₹`,`Rs. `),c.money?.showCurrency&&I!==`INR`&&(R=R.concat(` ${I}`));}return R}function xn(s){let n=pt();try{return new Intl.NumberFormat(n,{notation:`compact`}).format(s)}catch(h){return Ue(h,`format-number`,{extra:{lang:n,value:s}}),s.toString()}}function pt(){let s=`en`;return typeof navigator<`u`&&(navigator.languages!==void 0&&navigator.languages.length>0?s=navigator.languages[0]:navigator.language&&(s=navigator.language)),s=s.split(`;`)[0],s=s.split(`-`)[0],s||`en`}var Ee;function ht(){if(Ee)return Ee;try{return Ee=Intl.DateTimeFormat().resolvedOptions().timeZone,Ee}catch{return ``}}function vt(s){document.readyState!==`loading`?s():document.addEventListener(`DOMContentLoaded`,s);}function Nn(s){let n=document.createElement(`span`);n.id=`snackbar`,n.innerText=s,document.body.appendChild(n),n.className=`show`,setTimeout(()=>{n.classList.remove(`show`),document.body.removeChild(n);},5e3);}async function xr(s,n=7,h=document){let c=1,v=document.querySelectorAll(`nonexistent-tag`);for(;c<=n;){let I=Math.min(50*2**c,1e3);if(c>1&&await pe.sleep(I),v=h.querySelectorAll(s),v.length)return Y.verbose(`Attempt ${c}: ${v.length} elements found with ${s}`),v;Y.verbose(`Attempt ${c}: Elements not found with ${s}. Will retry after ${I}ms.`),c++;}return Y.verbose(`\u26A0\uFE0F Max attempts reached. Element not found with ${s}.`),v}async function Ln(s,n=10,h=document){return (await xr(s,n,h)).item(0)}async function Nr(s){let[n,h,c]=await Promise.all([fe.get(`did`),ve.get(`id`,``),fe.get(`sessionNumber`,1)]),v={letscooee_did:n,letscooee_sid:h,letscooee_sn:`${c}`,__letscooee_time:new Date().toLocaleString()};return s&&(v.__letscooee_via=s),v}async function On(s){let n=await Nr(s);return Object.entries(n).map(([h,c])=>({key:h,value:c.toString()}))}function Pn(s,n,h,c=false){Object.defineProperty(s,n,{enumerable:false,configurable:false,writable:c,value:h});}function Vn(s){if(s%100>=11&&s%100<=13)return s+`th`;switch(s%10){case 1:return s+`st`;case 2:return s+`nd`;case 3:return s+`rd`;default:return s+`th`}}function Mn(s,n){return !n?s:n+s}var W=x(Et());var Y=class{static debuggerEl;static infoLogs=[];static log(...n){W.default.info(...n);}static verbose(...n){W.default.debug(...n);}static error(...n){W.default.error(...n);}static warn(...n){W.default.warn(...n);}static info(...n){W.default.info(...n),this.infoLogs.push({time:new Date,message:n.join(` `)}),this.addToDebugger();}static trace(...n){W.default.trace(...n);}static addToDebugger(){sessionStorage.cooeeDebug&&(this.debuggerEl=this.debuggerEl??document.querySelector(`cooee-debugger`),this.debuggerEl&&this.debuggerEl&&(this.debuggerEl.logs=[...this.infoLogs]));}};function Wn(s=ft){W.default.useDefaults({formatter:function(n){n.unshift(`${s} (v${Q}):`);}}),Lr()&&(localStorage.cooeeLogLevel=`TRACE`),localStorage.cooeeLogLevel?W.default.setLevel(W.default[localStorage.cooeeLogLevel]):W.default.setLevel(W.default.OFF);}function Lr(){let s=_t();return s===`1`||s===`on`}function _t(){return new URL(location.href).searchParams?.get(`cooee-debug`)}function $n(){let s=[`display: inline-block;`,`font-size: 14px;`,`background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);`,`color: white;`,`padding: 4px;`,`border-radius: 4px;`].join(` `),n=`
4
+ `;n+=`\u{1F4E3} Drive higher conversions with AI-powered onsite engagement
5
+ `,n+=`\u{1F50D} Track real-time visitor intent & optimize engagement
6
+ `,n+=`\u{1F4CA} Improve Meta Ads ROAS with intent-driven campaigns
7
+ `,n+=`\u{1F6CD}\uFE0F Boost purchases & repeat sales effortlessly
8
+ `,n+=`
9
+
10
+ `,n+=`Learn more: https://www.letscooee.com`,console.group(`%c Elevate your ecommerce experience with Cooee 🚀 `,s),console.log(`%c${n}`,`font-size: 13px; line-height: 1.8;`),console.log(`SDK v${Q}`),console.groupEnd(),Y.info(`SDK v${Q} loaded`);}function Gn(){let s=localStorage.getItem(`cooeeDebugTill`),n=_t();if(n===`1`||n===`on`){let h=Pr();s||(s=h.toString(),localStorage.setItem(`cooeeDebugTill`,s));}n===`on`?sessionStorage.cooeeDebug=`1`:n===`off`&&sessionStorage.removeItem(`cooeeDebug`),sessionStorage.cooeeDebug&&Or(),s&&new Date(+s)<new Date&&localStorage.removeItem(`cooeeDebugTill`);}function Or(){let s=document.createElement(`cooee-debugger`);vt(()=>{document.body.appendChild(s);});}function Pr(){return new Date().getTime()+360*60*1e3}var bt=5,Vr=500,ie=class extends Error{request;response;status;requestBody;responseText;constructor(n){super(n),this.name=`FetchError`,Object.setPrototypeOf(this,new.target.prototype);}is40x(){return !!this.response&&this.response.status>=400&&this.response.status<500}};async function jn(s,n){let h=Date.now(),c;try{c=await Mr(s,n);}catch{}let v=c?new Request(c.url,{method:n?.method||`GET`}):new Request(s,n);if(!c||!c.ok){let m=`Failed to fetch`;c?.statusText&&(m+=`: ${c.statusText}`);let T=new ie(m);throw T.request=v,T.response=c?.clone(),T.status=c?.status,T.requestBody=n?.body,T.responseText=await Tt(c),T}let I,w=(c.headers.get(`content-type`)||``).toLowerCase(),R=c.headers.get(`content-length`),b=n?.method?.toUpperCase()||`GET`;if(c.status===204||c.status===205||b===`HEAD`||R===`0`)I=void 0;else if(w.includes(`application/json`)||w.includes(`application/problem+json`)||w.includes(`text/javascript`))try{I=await c.clone().json();}catch(m){let T=new ie(`Failed to parse JSON response: ${m?.message}`);throw T.request=v,T.response=c.clone(),T.status=c.status,T.requestBody=n?.body,T.responseText=await Tt(c),T}else w.includes(`text/`)||w.includes(`image/svg+xml`)?I=await c.text():I=await c.arrayBuffer();return {data:I,status:c.status,statusText:c.statusText,headers:c.headers,timeTakenMs:Date.now()-h,options:n,request:v}}async function Mr(s$1$1,n){let h=null,c;for(let v=0;v<=bt;v++){try{let I=new Headers(n?.headers);(s$1$1.includes(`letscooee.com`)||s$1$1.includes(`localhost`))&&I.set(`Cooee-Retry-Attempt`,v.toString());let w=s$1(r({},n),{headers:I});if(c=await fetch(s$1$1,w),c.ok||c.status>=400&&c.status<500)return c;h=new Error(`Server error: ${c.status} ${c.statusText}`);}catch(I){h=I instanceof Error?I:new Error(String(I));}if(v<bt){let I=Math.pow(2,v)*Vr;Y.info(`Request to ${s$1$1} failed. Retrying in ${I}ms...`),await new Promise(w=>setTimeout(w,I));}}if(c&&!c.ok)return c;throw h||new Error(`Request failed after retries`)}async function Tt(s){if(s){try{return s=s.clone(),await s.json()}catch{}try{return await s.text()}catch{}}}var be={},Te,we,It,St,wt;async function Dt(){if(!we)return wt??=Br(),wt}async function Br(){let{BrowserClient:s,Scope:n,defaultStackParser:h,getDefaultIntegrations:c,makeFetchTransport:v}=await import('./esm-DKhFdjmg-Dag-xV2C.js');St=n;we=new s({dsn:`https://1bc3dda4c861f60cd6be1b67584f4bc6@o559187.ingest.us.sentry.io/4507626484203520`,transport:v,stackParser:h,integrations:c({}).filter(w=>![`BrowserApiErrors`,`Breadcrumbs`,`GlobalHandlers`].includes(w.name)),environment:te.mode,release:`web-sdk@${Q}`,debug:te.debug,sampleRate:.5}),we.init();}function Ue(s,n,h){Y.error(`${n}:`,s),Dt().then(()=>{let c=Rt(h);if(c.setTag(`operation`,n),s instanceof ie){Fr(c,s,n);return}c.captureException(s);});}function eo(s,n,h){Dt().then(()=>{Rt(h).captureMessage(s,n??`error`);});}function Fr(s,n,h){if(Ur(s,n),n.response){let c=n.response,v=n.responseText;s.setTag(`error.message`,n.message),c.status!=null&&s.setTag(`http.status_code`,c.status),c.statusText&&s.setTag(`http.status_text`,c.statusText),v&&typeof v==`object`&&`error`in v&&(s.setTag(`http.error_code`,v.error.code),s.setTag(`http.error_message`,v.error.message)),s.setExtras({responseText:n.responseText,statusText:c.statusText,responseType:c.type,redirected:c.redirected,responseUrl:c.url,originalError:n.message}),s.captureMessage(`${h} failed with ${c.status}`,`error`);return}if(n.request){s.captureMessage(`No response was received for ${h}`,`error`);return}}function Ur(s,n){let h=n.request;if(!h)return;s.setExtras({body:n.requestBody,headers:h.headers,method:h.method,url:h.url});let c=h.headers?.get(`Cooee-Retry-Attempt`);c!==null&&s.setTag(`retry.attempt`,c);}function to(s){It=s;}function ro(s,n){be[s]=r(r({},be[s]),n);}function no(s){Te=r(r({},Te),s);}function Rt(s){s??={};let{extra:n,tags:h}=s,c=new St;if(c.setClient(we),c.setUser(It),s.triggerContext&&!s.engagementTrigger&&(s.engagementTrigger=s.triggerContext.triggerData),s.engagementTrigger){let v=s.engagementTrigger;c.setTags({"engagement.id":v.engagementID,"engagement.short_id":v.shortID,"engagement.objective":v.objective,"engagement.delivery_type":v.onsiteDeliveryType,"engagement.content_id":v.contentID,"engagement.variation":v.variation,"engagement.currency":v.currency});}return n&&c.setExtras(n),h&&c.setTags(h),Te&&c.setTags(Te),Object.keys(be).forEach(v=>{c.setContext(v,be[v]);}),c.setTag(`language`,navigator.language),c.setTag(`timezone`,ht()),kr(c),c}function kr(s){window.Shopify&&(s.setTag(`shopify.shop`,window.Shopify.shop),s.setTag(`shopify.currency`,window.Shopify.currency?.active),s.setTag(`shopify.locale`,window.Shopify.locale),s.setTag(`theme.schema_name`,window.Shopify.theme?.schema_name),s.setTag(`theme.schema_version`,window.Shopify.theme?.schema_version));}
11
+
12
+ var s=`\xA0\xA0\xA0`,l=[`/v1/engagement/cart-widgets`,`/v1/engagement/page-widgets`,`/v1/event/validate-session`];function d(e){if(e===0)return `0 B`;let i=1024,n=[`B`,`KB`,`MB`,`GB`],r=Math.floor(Math.log(e)/Math.log(i));return `${(e/Math.pow(i,r)).toFixed(2)} ${n[r]}`}function E(e){let i=performance.getEntriesByType?.(`resource`);if(i)return i.filter(n=>n.name.includes(e)).pop()}function R(){let e=performance.getEntriesByType?.(`resource`);return e?e.filter(i=>l.some(n=>i.name.includes(n))):[]}function S(e,i){if(!e){Y.info(`\u{1F4E6} API Resource Metrics for ${i}: Not available`);return}Y.info(`📦 ═══════════ API Resource Metrics ═══════════`),Y.info(`URL: ${i}`),Y.info(`Duration: ${lt(e.duration)}`);let n=e.transferSize===0;if(Y.info(`Served from: ${n?`💾 Cache (disk/memory)`:`🌐 Network`}`),!n){Y.info(`Transfer size: ${d(e.transferSize)}`),Y.info(`Encoded size: ${d(e.encodedBodySize)}`),Y.info(`Decoded size: ${d(e.decodedBodySize)}`);let c=(1-e.encodedBodySize/e.decodedBodySize)*100;c>0&&Y.info(`Compression ratio: ${c.toFixed(1)}%`);}let r=e.redirectEnd-e.redirectStart,f=e.fetchStart-e.startTime,a=e.domainLookupEnd-e.domainLookupStart,u=e.connectEnd-e.connectStart,m=e.secureConnectionStart>0?e.connectEnd-e.secureConnectionStart:0,g=e.connectEnd===e.connectStart?e.requestStart-e.fetchStart-a:e.requestStart-e.connectEnd,T=e.responseStart-e.requestStart,P=e.responseEnd-e.responseStart;Y.info(`Timing breakdown (${lt(e.duration)} total):`),r>0&&Y.info(`${s}Redirect: ${lt(r)}`),f>0&&Y.info(`${s}Queued: ${lt(f)}`),g>0&&Y.info(`${s}Stalled: ${lt(g)}`),a>0&&Y.info(`${s}DNS lookup: ${lt(a)}`),u>0&&Y.info(`${s}TCP connect: ${lt(u)}`),m>0&&Y.info(`${s}SSL handshake: ${lt(m)}`),Y.info(`${s}Server waiting (TTFB): ${lt(T)}`),Y.info(`${s}Content download: ${lt(P)}`);let $=e.serverTiming;if($?.length){Y.info(`Server-Timing:`);for(let c of $){let p=c.description||c.name;c.duration>0?Y.info(`${s}${p}: ${lt(c.duration)}`):Y.info(`${s}${p}: ${c.duration}`);}}Y.info(`📦 ═════════════════════════════════════════════`);}function B(){let e=R();return e.length?e.map(n=>JSON.stringify(n.toJSON())).join(`
13
+ `):``}function z(){let e=new Set;for(let n of l){let r=E(n);r?S(r,n):e.add(n);}if(!e.size||typeof PerformanceObserver>`u`)return;let i=new PerformanceObserver(n=>{for(let r of n.getEntries())for(let f of e)if(r.name.includes(f)){S(r,f),e.delete(f);break}e.size||i.disconnect();});i.observe({type:`resource`,buffered:false});}
14
+
15
+ export { $n as $, Ar as A, B, pe as C, Dn as D, Et as E, ie as F, Gn as G, Hr as H, Cn as I, eo as J, Kr as K, Ln as L, Me as M, Nn as N, xr as O, Pn as P, Q, Rn as R, Nr as S, On as T, Ue as U, Vn as V, z as W, Xr as X, Y, d as Z, Wn as _, An as a, Lr as a0, Yr as b, Mn as c, jr as d, en as e, fe as f, ge as g, he as h, ve as i, jn as j, ro as k, lt as l, to as m, no as n, oe as o, xn as p, qr as q, r, s$1 as s, te as t, u, v, w, x, vt as y, zr as z };
@@ -0,0 +1,12 @@
1
+ import { B, N as Nn } from './chunk-C_cBbkTf-CTSBF1Lh.js';
2
+ import { M } from './main.min.js';
3
+ import { $ as $b, o as of, a, b as bE, B as Bo, w as wD, I as ID, V as Vo, M as Mf, u as uv, c as ud, _ as _D, i as iD, g as ge, d as Iv, X as Xa, W as Wf, T as Tv, e as _f, f as _v, Y as Yg } from './widgets-CeQB31bn-JEgjqW5I.js';
4
+
5
+ function P(i,t){if(i&1&&(Bo(0,`li`)(1,`span`,1),uv(2),Iv(3,`date`),Vo(),uv(4,`\xA0 `),Xa(5,`span`,2),Iv(6,`safeHtml`),Vo()),i&2){let e=t.$implicit;ud(2),Wf(Tv(3,2,e.time,`hh:mm:ss a`)),ud(3),_f(`innerHTML`,_v(6,5,e.message),Yg);}}var _=class i{logs=$b.required();constructor(){}async shareLogs(){let t=this.logs().map(o=>`[${new Date(o.time).toLocaleString(`en-US`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,fractionalSecondDigits:3,hour12:false,timeZoneName:`short`})}] ${o.message}`).join(`
6
+ `);t=t.replaceAll(`\xA0`,` `);let e=B();if(e&&(t+=`
7
+
8
+ \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550 API Resource Metrics (Raw) \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
9
+ `+e),M()&&navigator.share){navigator.share({text:t});return}navigator.clipboard.writeText(t),Nn(`Copied to your clipboard`);}static ɵfac=function(e){return new(e||i)};static ɵcmp=of({type:i,selectors:[[`cooee-debugger`]],inputs:{logs:[1,`logs`]},features:[iD([ge])],decls:5,vars:0,consts:[[1,`btn-copy`,3,`click`],[2,`color`,`rgb(100, 116, 139)`],[3,`innerHTML`]],template:function(e,o){e&1&&(Bo(0,`ol`),wD(1,P,7,7,`li`,null,ID),Vo(),Bo(3,`button`,0),Mf(`click`,function(){return o.shareLogs()}),uv(4,`Copy`),Vo()),e&2&&(ud(),_D(o.logs()));},dependencies:[a,bE],styles:[`:host{display:block;position:fixed;top:calc(100vh - 90px);left:10px;right:10px;width:auto;max-width:100%;min-width:calc(100vw - 20px);height:80px;background:#fff;z-index:111111111111;overflow-y:auto;font-size:13px;line-height:1.5;padding:5px;font-family:Arial,"sans-serif";font-weight:500;border:2px solid rgb(245,28,143);border-radius:6px;resize:both;-webkit-user-select:auto;user-select:auto;box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px}@media(min-width:768px){:host{width:600px;min-width:auto}}ol{margin:0;padding:0 0 0 28px}.btn-copy{position:absolute;top:5px;right:5px;background:#f51c8f;border:none;cursor:pointer;padding:6px 8px;font-size:12px;font-weight:500;border-radius:6px;color:#fff}
10
+ `],encapsulation:3})};
11
+
12
+ export { _ as DebuggerComponent };
@@ -0,0 +1,23 @@
1
+ import { r, s, u, w } from './chunk-C_cBbkTf-CTSBF1Lh.js';
2
+
3
+ var T=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;var x=globalThis;var ut=`9.42.0`;function Ve(){return fn(x),x}function fn(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ut,t[ut]=t[ut]||{}}function Qt(e,t,n=x){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[ut]=r[ut]||{};return o[e]||(o[e]=t())}var Mn=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],tg=`Sentry Logger `,ar={};function Be(e){if(!(`console`in x))return e();let t=x.console,n={},r=Object.keys(ar);r.forEach(o=>{let i=ar[o];n[o]=t[o],t[o]=i;});try{return e()}finally{r.forEach(o=>{t[o]=n[o];});}}function ng(){ma().enabled=true;}function rg(){ma().enabled=false;}function Tl(){return ma().enabled}function og(...e){pa(`log`,...e);}function ig(...e){pa(`warn`,...e);}function sg(...e){pa(`error`,...e);}function pa(e,...t){T&&Tl()&&Be(()=>{x.console[e](`${tg}[${e}]:`,...t);});}function ma(){return T?Qt(`loggerSettings`,()=>({enabled:false})):{enabled:false}}var g={enable:ng,disable:rg,isEnabled:Tl,log:og,warn:ig,error:sg};var Il=/\(error: (.*)\)/,vl=/captureMessage|captureException/;function ti(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return (n,r=0,o=0)=>{let i=[],s=n.split(`
4
+ `);for(let a=r;a<s.length;a++){let c=s[a];if(c.length>1024)continue;let u=Il.test(c)?c.replace(Il,`$1`):c;if(!u.match(/\S*Error: /)){for(let d of t){let l=d(u);if(l){i.push(l);break}}if(i.length>=50+o)break}}return wl(i.slice(o))}}function wl(e){if(!e.length)return [];let t=Array.from(e);return /sentryWrapped/.test(ei(t).function||``)&&t.pop(),t.reverse(),vl.test(ei(t).function||``)&&(t.pop(),vl.test(ei(t).function||``)&&t.pop()),t.slice(0,50).map(n=>s(r({},n),{filename:n.filename||ei(t).filename,function:n.function||`?`}))}function ei(e){return e[e.length-1]||{}}var ha=`<anonymous>`;function tt(e){try{return !e||typeof e!=`function`?ha:e.name||ha}catch{return ha}}function cr(e){let t=e.exception;if(t){let n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames);}),n}catch{return}}}var ni={},Rl={};function He(e,t){ni[e]=ni[e]||[],ni[e].push(t);}function $e(e,t){if(!Rl[e]){Rl[e]=true;try{t();}catch(n){T&&g.error(`Error while instrumenting ${e}`,n);}}}function xe(e,t){let n=e&&ni[e];if(n)for(let r of n)try{r(t);}catch(o){T&&g.error(`Error while triggering instrumentation handler.
5
+ Type: ${e}
6
+ Name: ${tt(r)}
7
+ Error:`,o);}}var _a=null;function Kr(e){let t=`error`;He(t,e),$e(t,ag);}function ag(){_a=x.onerror,x.onerror=function(e,t,n,r,o){return xe(`error`,{column:r,error:o,line:n,msg:e,url:t}),_a?_a.apply(this,arguments):false},x.onerror.__SENTRY_INSTRUMENTED__=true;}var Sa=null;function Xr(e){let t=`unhandledrejection`;He(t,e),$e(t,cg);}function cg(){Sa=x.onunhandledrejection,x.onunhandledrejection=function(e){return xe(`unhandledrejection`,e),Sa?Sa.apply(this,arguments):true},x.onunhandledrejection.__SENTRY_INSTRUMENTED__=true;}var xl=Object.prototype.toString;function nt(e){switch(xl.call(e)){case `[object Error]`:case `[object Exception]`:case `[object DOMException]`:case `[object WebAssembly.Exception]`:return true;default:return lt(e,Error)}}function ur(e,t){return xl.call(e)===`[object ${t}]`}function ri(e){return ur(e,`ErrorEvent`)}function oi(e){return ur(e,`DOMError`)}function ya(e){return ur(e,`DOMException`)}function Me(e){return ur(e,`String`)}function pn(e){return typeof e==`object`&&e!==null&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function yt(e){return e===null||pn(e)||typeof e!=`object`&&typeof e!=`function`}function We(e){return ur(e,`Object`)}function On(e){return typeof Event<`u`&&lt(e,Event)}function Ea(e){return typeof Element<`u`&&lt(e,Element)}function ba(e){return ur(e,`RegExp`)}function Mt(e){return !!(e?.then&&typeof e.then==`function`)}function Ta(e){return We(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function lt(e,t){try{return e instanceof t}catch{return false}}function Zr(e){return !!(typeof e==`object`&&e!==null&&(e.__isVue||e._isVue))}function ii(e){return typeof Request<`u`&&lt(e,Request)}var Ia=x,ug=80;function Ce(e,t={}){if(!e)return `<unknown>`;try{let n=e,r=5,o=[],i=0,s=0,a=` > `,c=3,u,d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||ug;for(;n&&i++<r&&(u=lg(n,d),!(u===`html`||i>1&&s+o.length*c+u.length>=l));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return `<unknown>`}}function lg(e,t){let n=e,r=[];if(!n?.tagName)return ``;if(Ia.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 o=t?.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o?.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`);});else {n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&Me(s)){let a=s.split(/\s+/);for(let c of a)r.push(`.${c}`);}}for(let s of [`aria-label`,`type`,`name`,`title`,`alt`]){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`);}return r.join(``)}function Ye(){try{return Ia.document.location.href}catch{return ``}}function Qr(e){if(!Ia.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode;}return null}function Et(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ln(e,t){if(!Array.isArray(e))return ``;let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{Zr(o)?n.push(`[VueViewModel]`):n.push(String(o));}catch{n.push(`[value cannot be serialized]`);}}return n.join(t)}function Cl(e,t,n=false){return Me(e)?ba(t)?t.test(e):Me(t)?n?e===t:e.includes(t):false:false}function Pe(e,t=[],n=false){return t.some(r=>Cl(e,r,n))}function Ee(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!=`function`)return;let o=n(r);typeof o==`function`&&si(o,r);try{e[t]=o;}catch{T&&g.log(`Failed to replace method "${t}" in object`,e);}}function he(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0});}catch{T&&g.log(`Failed to add non-enumerable property "${t}" to object`,e);}}function si(e,t){try{e.prototype=t.prototype=t.prototype||{},he(e,`__sentry_original__`,t);}catch{}}function Dn(e){return e.__sentry_original__}function ai(e){if(nt(e))return r({message:e.message,name:e.name,stack:e.stack},kl(e));if(On(e)){let t=r({type:e.type,target:Al(e.target),currentTarget:Al(e.currentTarget)},kl(e));return typeof CustomEvent<`u`&&lt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Al(e){try{return Ea(e)?Ce(e):Object.prototype.toString.call(e)}catch{return `<unknown>`}}function kl(e){if(typeof e==`object`&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return {}}function va(e,t=40){let n=Object.keys(ai(e));n.sort();let r=n[0];if(!r)return `[object has no keys]`;if(r.length>=t)return Et(r,t);for(let o=n.length;o>0;o--){let i=n.slice(0,o).join(`, `);if(!(i.length>t))return o===n.length?i:Et(i,t)}return ``}function dg(){let e=x;return e.crypto||e.msCrypto}function ge(e=dg()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,``);e?.getRandomValues&&(t=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]});}catch{}return `10000000100040008000100000000000`.replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function Nl(e){return e.exception?.values?.[0]}function zt(e){let{message:t,event_id:n}=e;if(t)return t;let r=Nl(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function lr(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||``),i.type||(i.type=`Error`);}function rt(e,t){let n=Nl(e);if(!n)return;let r$1={type:`generic`,handled:true},o=n.mechanism;if(n.mechanism=r(r(r({},r$1),o),t),t&&`data`in t){let i=r(r({},o?.data),t.data);n.mechanism.data=i;}}function ci(e){if(fg(e))return true;try{he(e,`__sentry_captured__`,!0);}catch{}return false}function fg(e){try{return e.__sentry_captured__}catch{}}var Ol=1e3;function dt(){return Date.now()/Ol}function pg(){let{performance:e}=x;if(!e?.now||!e.timeOrigin)return dt;let t=e.timeOrigin;return ()=>(t+e.now())/Ol}var Ml;function re(){return (Ml??(Ml=pg()))()}function Ll(e){let t=re(),n={sid:ge(),init:true,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:false,toJSON:()=>hg(n)};return e&&en(n,e),n}function en(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||re(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:ge()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else {let n=e.timestamp-e.started;e.duration=n>=0?n:0;}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status);}function Dl(e,t){let n={};e.status===`ok`&&(n={status:`exited`}),en(e,n);}function hg(e){return {sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did==`number`||typeof e.did==`string`?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function mn(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r$2=r({},e);for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r$2[o]=mn(r$2[o],t[o],n-1));return r$2}function Ge(){return ge()}function Ot(){return ge().substring(16)}var xa=`_sentrySpan`;function jt(e,t){t?he(e,xa,t):delete e[xa];}function tn(e){return e[xa]}var gg=100,Je=class e{constructor(){this._notifyingListeners=false,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ge(),sampleRand:Math.random()};}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags=r({},this._tags),t._extra=r({},this._extra),t._contexts=r({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata=r({},this._sdkProcessingMetadata),t._propagationContext=r({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,jt(t,tn(this)),t}setClient(t){this._client=t;}setLastEventId(t){this._lastEventId=t;}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t);}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&en(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags=r(r({},this._tags),t),this._notifyScopeListeners(),this}setTag(t,n){return this._tags=s(r({},this._tags),{[t]:n}),this._notifyScopeListeners(),this}setExtras(t){return this._extra=r(r({},this._extra),t),this._notifyScopeListeners(),this}setExtra(t,n){return this._extra=s(r({},this._extra),{[t]:n}),this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:o,extra:i,user:s,contexts:a,level:c,fingerprint:u=[],propagationContext:d}=(n instanceof e?n.getScopeData():We(n)?t:void 0)||{};return this._tags=r(r({},this._tags),o),this._extra=r(r({},this._extra),i),this._contexts=r(r({},this._contexts),a),s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),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,jt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ge(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){let r$3=typeof n==`number`?n:gg;if(r$3<=0)return this;let o=s(r({timestamp:dt()},t),{message:t.message?Et(t.message,2048):t.message});return this._breadcrumbs.push(o),this._breadcrumbs.length>r$3&&(this._breadcrumbs=this._breadcrumbs.slice(-r$3),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(t){return this._attachments.push(t),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:tn(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=mn(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r$4=n?.event_id||ge();if(!this._client)return T&&g.warn(`No client configured on scope - will not capture exception!`),r$4;let o=new Error(`Sentry syntheticException`);return this._client.captureException(t,s(r({originalException:t,syntheticException:o},n),{event_id:r$4}),this),r$4}captureMessage(t,n,r$5){let o=r$5?.event_id||ge();if(!this._client)return T&&g.warn(`No client configured on scope - will not capture message!`),o;let i=new Error(t);return this._client.captureMessage(t,n,s(r({originalException:t,syntheticException:i},r$5),{event_id:o}),this),o}captureEvent(t,n){let r$6=n?.event_id||ge();return this._client?(this._client.captureEvent(t,s(r({},n),{event_id:r$6}),this),r$6):(T&&g.warn(`No client configured on scope - will not capture event!`),r$6)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=true,this._scopeListeners.forEach(t=>{t(this);}),this._notifyingListeners=false);}};function Pl(){return Qt(`defaultCurrentScope`,()=>new Je)}function Fl(){return Qt(`defaultIsolationScope`,()=>new Je)}var Ca=class{constructor(t,n){let r;t?r=t:r=new Je;let o;n?o=n:o=new Je,this._stack=[{scope:r}],this._isolationScope=o;}withScope(t){let n=this._pushScope(),r;try{r=t(n);}catch(o){throw this._popScope(),o}return Mt(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?false:!!this._stack.pop()}};function dr(){let t=fn(Ve());return t.stack=t.stack||new Ca(Pl(),Fl())}function _g(e){return dr().withScope(e)}function Sg(e,t){let n=dr();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Ul(e){return dr().withScope(()=>e(dr().getIsolationScope()))}function Bl(){return {withIsolationScope:Ul,withScope:_g,withSetScope:Sg,withSetIsolationScope:(e,t)=>Ul(t),getCurrentScope:()=>dr().getScope(),getIsolationScope:()=>dr().getIsolationScope()}}function bt(e){let t=fn(e);return t.acs?t.acs:Bl()}function M(){return bt(Ve()).getCurrentScope()}function ce(){return bt(Ve()).getIsolationScope()}function hn(){return Qt(`globalScope`,()=>new Je)}function Oe(...e){let n=bt(Ve());if(e.length===2){let[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function v(){return M().getClient()}function ui(e){let{traceId:n,parentSpanId:r,propagationSpanId:o}=e.getPropagationContext(),i={trace_id:n,span_id:o||Ot()};return r&&(i.parent_span_id=r),i}var ve=`sentry.source`,gn=`sentry.sample_rate`,to=`sentry.previous_trace_sample_rate`,ye=`sentry.op`,Q=`sentry.origin`,pr=`sentry.profile_id`,Tt=`sentry.exclusive_time`;var Hl=`_sentryScope`,$l=`_sentryIsolationScope`;function Fn(e){return {scope:e[Hl],isolationScope:e[$l]}}var li=`sentry-`,yg=/^sentry-/;function di(e){let t=bg(e);if(!t)return;let n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(yg)){let s=o.slice(li.length);r[s]=i;}return r},{});if(Object.keys(n).length>0)return n}function bg(e){if(!(!e||!Me(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{let r=Gl(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i;}),t},{}):Gl(e)}function Gl(e){return e.split(`,`).map(t=>t.split(`=`).map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function ft(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var hi=1,jl=false;function oo(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:O(e).parent_span_id,i=Fn(e).scope;return {parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||Ot():t,trace_id:n}}function _i(e){if(e&&e.length>0)return e.map(s=>{var a=s,{context:c}=a,u$1=c,{spanId:t,traceId:n,traceFlags:r$7}=u$1,o=u(u$1,[`spanId`,`traceId`,`traceFlags`]),{attributes:i}=a;return r({span_id:t,trace_id:n,sampled:r$7===hi,attributes:i},o)})}function Lt(e){return typeof e==`number`?ql(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ql(e.getTime()):re()}function ql(e){return e>9999999999?e/1e3:e}function O(e){if(Rg(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(wg(e)){let{attributes:r,startTime:o,name:i,endTime:s,status:a,links:c}=e;return {span_id:t,trace_id:n,data:r,description:i,parent_span_id:`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0,start_timestamp:Lt(o),timestamp:Lt(s)||void 0,status:Si(a),op:r[ye],origin:r[Q],links:_i(c)}}return {span_id:t,trace_id:n,start_timestamp:0,data:{}}}function wg(e){let t=e;return !!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Rg(e){return typeof e.getSpanJSON==`function`}function It(e){let{traceFlags:t}=e.spanContext();return t===hi}function Si(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`unknown_error`}var La=`_sentryRootSpan`;function oe(e){return e[La]||e}function te(){let t=bt(Ve());return t.getActiveSpan?t.getActiveSpan():tn(M())}function io(){jl||(Be(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.");}),jl=true);}function Ke(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return false;let t=v()?.getOptions();return !!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}var rn=`production`;var xg=/^o(\d+)\./,Cg=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ag(e){return e===`http`||e===`https`}function ot(e,t=false){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return `${a}://${c}${t&&o?`:${o}`:``}@${n}${i?`:${i}`:``}/${r&&`${r}/`}${s}`}function bi(e){let t=Cg.exec(e);if(!t){Be(()=>{console.error(`Invalid Sentry Dsn: ${e}`);});return}let[n,r,o=``,i=``,s=``,a=``]=t.slice(1),c=``,u=a,d=u.split(`/`);if(d.length>1&&(c=d.slice(0,-1).join(`/`),u=d.pop()),u){let l=u.match(/^\d+/);l&&(u=l[0]);}return Xl({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function Xl(e){return {protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function kg(e){if(!T)return true;let{port:t,projectId:n,protocol:r}=e;return [`protocol`,`publicKey`,`host`,`projectId`].find(s=>e[s]?false:(g.error(`Invalid Sentry Dsn: ${s} missing`),true))?false:n.match(/^\d+$/)?Ag(r)?t&&isNaN(parseInt(t,10))?(g.error(`Invalid Sentry Dsn: Invalid port ${t}`),false):true:(g.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),false):(g.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),false)}function Zl(e){return e.match(xg)?.[1]}function so(e){let t=typeof e==`string`?bi(e):Xl(e);if(!(!t||!kg(t)))return t}var Ql=`_frozenDsc`;function Pa(e,t){let n=t.getOptions(),{publicKey:r,host:o}=t.getDsn()||{},i;n.orgId?i=String(n.orgId):o&&(i=Zl(o));let s={environment:n.environment||rn,release:n.release,public_key:r,trace_id:e,org_id:i};return t.emit(`createDsc`,s),s}function hr(e,t){let n=t.getPropagationContext();return n.dsc||Pa(n.traceId,e)}function we(e){let t=v();if(!t)return {};let n=oe(e),r=O(n),o=r.data,i=n.spanContext().traceState,s=i?.get(`sentry.sample_rate`)??o[gn]??o[to];function a(h){return (typeof s==`number`||typeof s==`string`)&&(h.sample_rate=`${s}`),h}let c=n[Ql];if(c)return a(c);let u=i?.get(`sentry.dsc`),d=u&&di(u);if(d)return a(d);let l=Pa(e.spanContext().traceId,t),f=o[ve],p=r.description;return f!==`url`&&p&&(l.transaction=p),Ke()&&(l.sampled=String(It(n)),l.sample_rand=i?.get(`sentry.sample_rand`)??Fn(n).scope?.getPropagationContext().sampleRand.toString()),a(l),t.emit(`createDsc`,l,n),l}function Ne(e,t=100,n=Infinity){try{return Fa(``,e,t,n)}catch(r){return {ERROR:`**non-serializable** (${r})`}}}function Ti(e,t=3,n=100*1024){let r=Ne(e,t);return Lg(r)>n?Ti(e,t-1,n):r}function Fa(e,t,n=Infinity,r=Infinity,o=Dg()){let[i,s]=o;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let a=Ng(e,t);if(!a.startsWith(`[object `))return a;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace(`object `,``);if(i(t))return `[Circular ~]`;let u=t;if(u&&typeof u.toJSON==`function`)try{return Fa(``,u.toJSON(),c-1,r,o)}catch{}let d=Array.isArray(t)?[]:{},l=0,f=ai(t);for(let p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(l>=r){d[p]=`[MaxProperties ~]`;break}let h=f[p];d[p]=Fa(p,h,c-1,r,o),l++;}return s(t),d}function Ng(e,t){try{if(e===`domain`&&t&&typeof t==`object`&&t._events)return `[Domain]`;if(e===`domainEmitter`)return `[DomainEmitter]`;if(typeof global<`u`&&t===global)return `[Global]`;if(typeof window<`u`&&t===window)return `[Window]`;if(typeof document<`u`&&t===document)return `[Document]`;if(Zr(t))return `[VueViewModel]`;if(Ta(t))return `[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return `[${t}]`;if(typeof t==`function`)return `[Function: ${tt(t)}]`;if(typeof t==`symbol`)return `[${String(t)}]`;if(typeof t==`bigint`)return `[BigInt: ${String(t)}]`;let n=Mg(t);return /^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return `**non-serializable** (${n})`}}function Mg(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function Og(e){return ~-encodeURI(e).split(/%..|./).length}function Lg(e){return Og(JSON.stringify(e))}function Dg(){let e=new WeakSet;function t(r){return e.has(r)?true:(e.add(r),false)}function n(r){e.delete(r);}return [t,n]}function Fe(e,t=[]){return [e,t]}function Ua(e,t){let[n,r]=e;return [n,[...r,t]]}function pt(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return true}return false}function Ii(e){let t=fn(x);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Sn(e){let[t,n]=e,r=JSON.stringify(t);function o(i){typeof r==`string`?r=typeof i==`string`?r+i:[Ii(r),i]:r.push(typeof i==`string`?Ii(i):i);}for(let i of n){let[s,a]=i;if(o(`
8
+ ${JSON.stringify(s)}
9
+ `),typeof a==`string`||a instanceof Uint8Array)o(a);else {let c;try{c=JSON.stringify(a);}catch{c=JSON.stringify(Ne(a));}o(c);}}return typeof r==`string`?r:Fg(r)}function Fg(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function $a(e){let t=typeof e.data==`string`?Ii(e.data):e.data;return [{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Ug={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 wi(e){return Ug[e]}function gr(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return {name:t,version:n}}function ao(e,t,n,r$8){let o=e.sdkProcessingMetadata?.dynamicSamplingContext;return r(r(r({event_id:e.event_id,sent_at:new Date().toISOString()},t&&{sdk:t}),!!n&&r$8&&{dsn:ot(r$8)}),o&&{trace:o})}function Bg(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function td(e,t,n,r$9){let o=gr(n);return Fe(r(r({sent_at:new Date().toISOString()},o&&{sdk:o}),!!r$9&&t&&{dsn:ot(t)}),[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function nd(e,t,n,r){let o=gr(n),i=e.type&&e.type!==`replay_event`?e.type:`event`;Bg(e,n?.sdk);let s=ao(e,o,r,t);return delete e.sdkProcessingMetadata,Fe(s,[[{type:i},e]])}var _r={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};var qa=0,gd=1,_d=2;function Xe(e){return new Dt(t=>{t(e);})}function En(e){return new Dt((t,n)=>{n(e);})}var Dt=class e{constructor(t){this._state=qa,this._handlers=[],this._runExecutor(t);}then(t,n){return new e((r,o)=>{this._handlers.push([false,i=>{if(!t)r(i);else try{r(t(i));}catch(s){o(s);}},i=>{if(!n)o(i);else try{r(n(i));}catch(s){o(s);}}]),this._executeHandlers();})}catch(t){return this.then(n=>n,t)}finally(t){return new e((n,r)=>{let o,i;return this.then(s=>{i=false,o=s,t&&t();},s=>{i=true,o=s,t&&t();}).then(()=>{if(i){r(o);return}n(o);})})}_executeHandlers(){if(this._state===qa)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===gd&&n[1](this._value),this._state===_d&&n[2](this._value),n[0]=true);});}_runExecutor(t){let n=(i,s)=>{if(this._state===qa){if(Mt(s)){s.then(r,o);return}this._state=i,this._value=s,this._executeHandlers();}},r=i=>{n(gd,i);},o=i=>{n(_d,i);};try{t(r,o);}catch(i){o(i);}}};function ki(e,t,n,r$18=0){return new Dt((o,i)=>{let s=e[r$18];if(t===null||typeof s!=`function`)o(t);else {let a=s(r({},t),n);T&&s.id&&a===null&&g.log(`Event processor "${s.id}" dropped event`),Mt(a)?a.then(c=>ki(e,c,n,r$18+1).then(o)).then(null,i):ki(e,a,n,r$18+1).then(o).then(null,i);}})}function Sd(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;Jg(e,t),r&&Zg(e,r),Qg(e,n),Kg(e,o),Xg(e,i);}function Sr(e,t){let{extra:n,tags:r$19,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:d,attachments:l,propagationContext:f,transactionName:p,span:h}=t;Ni(e,`extra`,n),Ni(e,`tags`,r$19),Ni(e,`user`,o),Ni(e,`contexts`,i),e.sdkProcessingMetadata=mn(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext=r(r({},e.propagationContext),f);}function Ni(e,t,n){e[t]=mn(e[t],n,1);}function Jg(e,t){let{extra:n,tags:r$20,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra=r(r({},n),e.extra)),Object.keys(r$20).length&&(e.tags=r(r({},r$20),e.tags)),Object.keys(o).length&&(e.user=r(r({},o),e.user)),Object.keys(i).length&&(e.contexts=r(r({},i),e.contexts)),s&&(e.level=s),a&&e.type!==`transaction`&&(e.transaction=a);}function Kg(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0;}function Xg(e,t){e.sdkProcessingMetadata=r(r({},e.sdkProcessingMetadata),t);}function Zg(e,t){e.contexts=r({trace:oo(t)},e.contexts),e.sdkProcessingMetadata=r({dynamicSamplingContext:we(t)},e.sdkProcessingMetadata);let r$21=O(oe(t)).description;r$21&&!e.transaction&&e.type===`transaction`&&(e.transaction=r$21);}function Qg(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint;}var Mi,yd,Oi;function Li(e){let t=x._sentryDebugIds;if(!t)return {};let n=Object.keys(t);return Oi&&n.length===yd||(yd=n.length,Oi=n.reduce((r,o)=>{Mi||(Mi={});let i=Mi[o];if(i)r[i[0]]=i[1];else {let s=e(o);for(let a=s.length-1;a>=0;a--){let u=s[a]?.filename,d=t[o];if(u&&d){r[u]=d,Mi[o]=[u,d];break}}}return r},{})),Oi}function uo(e,t,n,r$22,o,i){let{normalizeDepth:s$4=3,normalizeMaxBreadth:a=1e3}=e,c=s(r({},t),{event_id:t.event_id||n.event_id||ge(),timestamp:t.timestamp||dt()}),u=n.integrations||e.integrations.map(S=>S.name);e_(c,e),r_(c,u),o&&o.emit(`applyFrameMetadata`,t),t.type===void 0&&t_(c,e.stackParser);let d=i_(r$22,n.captureContext);n.mechanism&&rt(c,n.mechanism);let l=o?o.getEventProcessors():[],f=hn().getScopeData();if(i)Sr(f,i.getScopeData());if(d)Sr(f,d.getScopeData());let p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Sd(c,f);return ki([...l,...f.eventProcessors],c,n).then(S=>(S&&n_(S),typeof s$4==`number`&&s$4>0?o_(S,s$4,a):S))}function e_(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||rn,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);let s=e.request;s?.url&&(s.url=Et(s.url,i));}function t_(e,t){let n=Li(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.filename&&(o.debug_id=n[o.filename]);});});}function n_(e){let t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id);});}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([r,o])=>{n.push({type:`sourcemap`,code_file:r,debug_id:o});});}function r_(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t]);}function o_(e,t,n){if(!e)return null;let r$23=r(r(r(r(r({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>r(r({},o),o.data&&{data:Ne(o.data,t,n)}))}),e.user&&{user:Ne(e.user,t,n)}),e.contexts&&{contexts:Ne(e.contexts,t,n)}),e.extra&&{extra:Ne(e.extra,t,n)});return e.contexts?.trace&&r$23.contexts&&(r$23.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r$23.contexts.trace.data=Ne(e.contexts.trace.data,t,n))),e.spans&&(r$23.spans=e.spans.map(o=>r(r({},o),o.data&&{data:Ne(o.data,t,n)}))),e.contexts?.flags&&r$23.contexts&&(r$23.contexts.flags=Ne(e.contexts.flags,3,n)),r$23}function i_(e,t){if(!t)return e;let n=e?e.clone():new Je;return n.update(t),n}function Ed(e){}function wt(e,t){return M().captureException(e,Ed())}function bn(e,t){return M().captureEvent(e,t)}function lo(e){let t=ce(),n=M(),{userAgent:r$24}=x.navigator||{},o=Ll(r(r({user:n.getUser()||t.getUser()},r$24&&{userAgent:r$24}),e)),i=t.getSession();return i?.status===`ok`&&en(i,{status:`exited`}),Bi(),t.setSession(o),o}function Bi(){let e=ce(),n=M().getSession()||e.getSession();n&&Dl(n),Ad(),e.setSession();}function Ad(){let e=ce(),t=v(),n=e.getSession();n&&t&&t.captureSession(n);}function fo(e=false){if(e){Bi();return}Ad();}var u_=`7`;function kd(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return `${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function l_(e){return `${kd(e)}${e.projectId}/envelope/`}function d_(e,t){let n={sentry_version:u_};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function po(e,t,n){return t||`${l_(e)}?${d_(e,n)}`}var Nd=[];function Md(e,t){let n={};return t.forEach(r=>{r&&Xa(e,r,n);}),n}function Ka(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e);}function Xa(e,t,n){if(n[t.name]){T&&g.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Nd.indexOf(t.name)===-1&&typeof t.setupOnce==`function`&&(t.setupOnce(),Nd.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let r=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(o,i)=>r(o,i,e));}if(typeof t.processEvent==`function`){let r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o);}T&&g.log(`Integration installed: ${t.name}`);}function Od(e,t,n){let r=[{type:`client_report`},{timestamp:dt(),discarded_events:e}];return Fe(t?{dsn:t}:{},[r])}function Hi(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));}catch{}return t}function Ld(e){let{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return {data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??``,origin:i,profile_id:s?.[pr],exclusive_time:s?.[Tt],measurements:e.measurements,is_segment:true}}function Dd(e){return {type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:r(r(r({},e.data),e.profile_id&&{[pr]:e.profile_id}),e.exclusive_time&&{[Tt]:e.exclusive_time})}},measurements:e.measurements}}var Pd=`Not capturing exception because it's already been captured.`,Fd=`Discarded session because of missing or non-string release`,Hd=Symbol.for(`SentryInternalError`),$d=Symbol.for(`SentryDoNotSendEventError`);function $i(e){return {message:e,[Hd]:true}}function Za(e){return {message:e,[$d]:true}}function Ud(e){return !!e&&typeof e==`object`&&Hd in e}function Bd(e){return !!e&&typeof e==`object`&&$d in e}var ho=class{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=so(t.dsn):T&&g.warn(`No DSN provided, client will not send events.`),this._dsn){let n=po(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport(s(r({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{url:n}));}}captureException(t,n,r$25){let o=ge();if(ci(t))return T&&g.log(Pd),o;let i=r({event_id:o},n);return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r$25))),i.event_id}captureMessage(t,n,r$26,o){let i=r({event_id:ge()},r$26),s=pn(t)?t:String(t),a=yt(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(a.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,r$27){let o=ge();if(n?.originalException&&ci(n.originalException))return T&&g.log(Pd),o;let i=r({event_id:o},n),s=t.sdkProcessingMetadata||{},a=s.capturedSpanScope,c=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,i,a||r$27,c)),i.event_id}captureSession(t){this.sendSession(t),en(t,{init:false});}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){let n=this._transport;return n?(this.emit(`flush`),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(o=>r&&o))):Xe(true)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=false,this.emit(`close`),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t);}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith(`Spotlight`)))&&this._setupIntegrations();}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let n=this._integrations[t.name];Xa(this,t,this._integrations),n||Ka(this,[t]);}sendEvent(t,n={}){this.emit(`beforeSendEvent`,t,n);let r=nd(t,this._dsn,this._options._metadata,this._options.tunnel);for(let i of n.attachments||[])r=Ua(r,$a(i));let o=this.sendEnvelope(r);o&&o.then(i=>this.emit(`afterSendEvent`,t,i),null);}sendSession(t){let{release:n,environment:r=rn}=this._options;if(`aggregates`in t){let i=t.attrs||{};if(!i.release&&!n){T&&g.warn(Fd);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i;}else {if(!t.release&&!n){T&&g.warn(Fd);return}t.release=t.release||n,t.environment=t.environment||r;}this.emit(`beforeSendSession`,t);let o=td(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o);}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){let o=`${t}:${n}`;T&&g.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:``}`),this._outcomes[o]=(this._outcomes[o]||0)+r;}}on(t,n){let r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{let o=r.indexOf(n);o>-1&&r.splice(o,1);}}emit(t,...n){let r=this._hooks[t];r&&r.forEach(o=>o(...n));}sendEnvelope(t){return this.emit(`beforeEnvelope`,t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(T&&g.error(`Error while sending envelope:`,n),n)):(T&&g.error(`Transport disabled`),Xe({}))}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=Md(this,t),Ka(this,t);}_updateSessionFromEvent(t,n){let r$28=n.level===`fatal`,o=false,i=n.exception?.values;if(i){o=true;for(let c of i)if(c.mechanism?.handled===false){r$28=true;break}}let s$5=t.status===`ok`;(s$5&&t.errors===0||s$5&&r$28)&&(en(t,s(r({},r$28&&{status:`crashed`}),{errors:t.errors||Number(o||r$28)})),this.captureSession(t));}_isClientDoneProcessing(t){return new Dt(n=>{let r=0,o=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(true)):(r+=o,t&&r>=t&&(clearInterval(i),n(false)));},o);})}_isEnabled(){return this.getOptions().enabled!==false&&this._transport!==void 0}_prepareEvent(t,n,r$29,o){let i=this.getOptions(),s=Object.keys(this._integrations);return !n.integrations&&s?.length&&(n.integrations=s),this.emit(`preprocessEvent`,t,n),t.type||o.setLastEventId(t.event_id||n.event_id),uo(i,t,n,r$29,this,o).then(a=>{if(a===null)return a;this.emit(`postprocessEvent`,a,n),a.contexts=r({trace:ui(r$29)},a.contexts);return a.sdkProcessingMetadata=r({dynamicSamplingContext:hr(this,r$29)},a.sdkProcessingMetadata),a})}_captureEvent(t,n={},r=M(),o=ce()){return T&&Qa(t)&&g.log(`Captured error event \`${Hi(t)[0]||`<unknown>`}\``),this._processEvent(t,n,r,o).then(i=>i.event_id,i=>{T&&(Bd(i)?g.log(i.message):Ud(i)?g.warn(i.message):g.warn(i));})}_processEvent(t,n,r$30,o){let i=this.getOptions(),{sampleRate:s$6}=i,a=Wd(t),c=Qa(t),u=t.type||`error`,d=`before send for type \`${u}\``,l=typeof s$6>`u`?void 0:ft(s$6);if(c&&typeof l==`number`&&Math.random()>l)return this.recordDroppedEvent(`sample_rate`,`error`),En(Za(`Discarding event because it's not included in the random sample (sampling rate = ${s$6})`));let f=u===`replay_event`?`replay`:u;return this._prepareEvent(t,n,r$30,o).then(p=>{if(p===null)throw this.recordDroppedEvent(`event_processor`,f),Za("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===true)return p;return p_(m_(this,i,p,n),d)}).then(p=>{if(p===null){if(this.recordDroppedEvent(`before_send`,f),a){let y=1+(t.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,y);}throw Za(`${d} returned \`null\`, will not send event.`)}let h=r$30.getSession()||o.getSession();if(c&&h&&this._updateSessionFromEvent(h,p),a){let I=(p.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(p.spans?p.spans.length:0);I>0&&this.recordDroppedEvent(`before_send`,`span`,I);}let _=p.transaction_info;if(a&&_&&p.transaction!==t.transaction)p.transaction_info=s(r({},_),{source:`custom`});return this.sendEvent(p,n),p}).then(null,p=>{throw Bd(p)||Ud(p)?p:(this.captureException(p,{data:{__sentry__:true},originalException:p}),$i(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10
+ Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n));}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{let[o,i]=n.split(`:`);return {reason:o,category:i,quantity:r}})}_flushOutcomes(){T&&g.log(`Flushing outcomes...`);let t=this._clearOutcomes();if(t.length===0){T&&g.log(`No outcomes to send`);return}if(!this._dsn){T&&g.log(`No dsn provided, will not send outcomes`);return}T&&g.log(`Sending outcomes:`,t);let n=Od(t,this._options.tunnel&&ot(this._dsn));this.sendEnvelope(n);}};function p_(e,t){let n=`${t} must return \`null\` or a valid event.`;if(Mt(e))return e.then(r=>{if(!We(r)&&r!==null)throw $i(n);return r},r=>{throw $i(`${t} rejected with ${r}`)});if(!We(e)&&e!==null)throw $i(n);return e}function m_(e,t,n,r$31){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s$7}=t,a=n;if(Qa(a)&&o)return o(a,r$31);if(Wd(a)){if(s$7){let c=s$7(Ld(a));if(c?a=mn(n,Dd(c)):io(),a.spans){let u=[];for(let d of a.spans){let l=s$7(d);l?u.push(l):(io(),u.push(d));}a.spans=u;}}if(i){if(a.spans){let c=a.spans.length;a.sdkProcessingMetadata=s(r({},n.sdkProcessingMetadata),{spanCountBeforeProcessing:c});}return i(a,r$31)}}return a}function Qa(e){return e.type===void 0}function Wd(e){return e.type===`transaction`}function Gd(e,t){return t?Oe(t,()=>{let n=te(),r=n?oo(n):ui(t);return [n?we(n):hr(e,t),r]}):[void 0,void 0]}var zd={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function h_(e){return [{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{items:e}]}function jd(e,t,n,r){let o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=ot(r)),Fe(o,[h_(e)])}var g_=100;function __(e){switch(typeof e){case `number`:return Number.isInteger(e)?{value:e,type:`integer`}:{value:e,type:`double`};case `boolean`:return {value:e,type:`boolean`};case `string`:return {value:e,type:`string`};default:{let t=``;try{t=JSON.stringify(e)??``;}catch{}return {value:t,type:`string`}}}}function Tn(e,t,n,r=true){n&&(!e[t]||r)&&(e[t]=n);}function qd(e,t){let n=ec(),r=Vd(e);r===void 0?n.set(e,[t]):(n.set(e,[...r,t]),r.length>=g_&&Er(e,r));}function yr(e,t=v(),n=M(),r$32=qd){if(!t){T&&g.warn(`No client available to capture log.`);return}let{release:o,environment:i,enableLogs:s$8,beforeSendLog:a,_experiments:c}=t.getOptions();if(!(s$8??c?.enableLogs)){T&&g.warn(`logging option not enabled, log will not be captured.`);return}let d=a??c?.beforeSendLog,[,l]=Gd(t,n),f=r({},e.attributes),{user:{id:p,email:h,username:_}}=S_(n);Tn(f,`user.id`,p,false),Tn(f,`user.email`,h,false),Tn(f,`user.name`,_,false),Tn(f,`sentry.release`,o),Tn(f,`sentry.environment`,i);let{name:S,version:y}=t.getSdkMetadata()?.sdk??{};Tn(f,`sentry.sdk.name`,S),Tn(f,`sentry.sdk.version`,y);let I=e.message;if(pn(I)){let{__sentry_template_string__:G,__sentry_template_values__:R=[]}=I;f[`sentry.message.template`]=G,R.forEach((F,V)=>{f[`sentry.message.parameter.${V}`]=F;});}Tn(f,`sentry.trace.parent_span_id`,tn(n)?.spanContext().spanId);let N=s(r({},e),{attributes:f});t.emit(`beforeCaptureLog`,N);let L=d?Be(()=>d(N)):N;if(!L){t.recordDroppedEvent(`before_send`,`log_item`,1),T&&g.warn(`beforeSendLog returned null, log will not be captured.`);return}let{level:b,message:C,attributes:P={},severityNumber:w}=L;r$32(t,{timestamp:re(),level:b,body:C,trace_id:l?.trace_id,severity_number:w??zd[b],attributes:Object.keys(P).reduce((G,R)=>(G[R]=__(P[R]),G),{})}),t.emit(`afterCaptureLog`,L);}function Er(e,t){let n=t??Vd(e)??[];if(n.length===0)return;let r=e.getOptions(),o=jd(n,r._metadata,r.tunnel,e.getDsn());ec().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(o);}function Vd(e){return ec().get(e)}function S_(e){let t=hn().getScopeData();return Sr(t,ce().getScopeData()),Sr(t,e.getScopeData()),t}function ec(){return Qt(`clientToLogBufferMap`,()=>new WeakMap)}var rc=Symbol.for(`SentryBufferFullError`);function Yd(e){let t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]||Promise.resolve(void 0)}function o(s){if(!n())return En(rc);let a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new Dt((a,c)=>{let u=t.length;if(!u)return a(true);let d=setTimeout(()=>{s&&s>0&&a(false);},s);t.forEach(l=>{Xe(l).then(()=>{--u||(clearTimeout(d),a(true));},c);});})}return {$:t,add:o,drain:i}}function Wi(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function Jd(e,t){return e[t]||e.all||0}function go(e,t,n=Date.now()){return Jd(e,t)>n}function _o(e,{statusCode:t,headers:n},r$33=Date.now()){let o=r({},e),i=n?.[`x-sentry-rate-limits`],s=n?.[`retry-after`];if(i)for(let a of i.trim().split(`,`)){let[c,u,,,d]=a.split(`:`,5),l=parseInt(c,10),f=(isNaN(l)?60:l)*1e3;if(!u)o.all=r$33+f;else for(let p of u.split(`;`))p===`metric_bucket`?(!d||d.split(`;`).includes(`custom`))&&(o[p]=r$33+f):o[p]=r$33+f;}else s?o.all=r$33+Wi(s,r$33):t===429&&(o.all=r$33+60*1e3);return o}var y_=64;function Gi(e,t,n=Yd(e.bufferSize||y_)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(pt(s,(l,f)=>{let p=wi(f);go(r,p)?e.recordDroppedEvent(`ratelimit_backoff`,p):a.push(l);}),a.length===0)return Xe({});let c=Fe(s[0],a),u=l=>{pt(c,(f,p)=>{e.recordDroppedEvent(l,wi(p));});},d=()=>t({body:Sn(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&T&&g.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=_o(r,l),l),l=>{throw u(`network_error`),T&&g.error(`Encountered error running transport request:`,l),l});return n.add(d).then(l=>l,l=>{if(l===rc)return T&&g.error(`Skipped sending event because buffer is full.`),u(`queue_overflow`),Xe({});throw l})}return {send:i,flush:o}}function ac(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join(`\0`).replace(/%/g,`%%`).replace(/\0/g,`%s`),n.__sentry_template_values__=t,n}var cc=ac;function uc(e){e.user?.ip_address===void 0&&(e.user=s(r({},e.user),{ip_address:`{{auto}}`}));}function lc(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs=s(r({},e.attrs),{ip_address:`{{auto}}`})):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`);}function dc(e,t,n=[t],r=`npm`){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:ut})),version:ut}),e._metadata=o;}var R_=100;function it(e,t){let n=v(),r$36=ce();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=R_}=n.getOptions();if(i<=0)return;let a=r({timestamp:dt()},e),c=o?Be(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,c,t),r$36.addBreadcrumb(c,i));}var Qd,x_=`FunctionToString`,ef=new WeakMap,C_=()=>({name:x_,setupOnce(){Qd=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Dn(this),n=ef.has(v())&&t!==void 0?t:this;return Qd.apply(n,e)};}catch{}},setup(e){ef.set(e,true);}}),zi=C_;var A_=[/^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$/],k_=`EventFilters`,pc=(e={})=>{let t;return {name:k_,setup(n){t=tf(e,n.getOptions());},processEvent(n,r,o){if(!t)t=tf(e,o.getOptions());return N_(n,t)?null:n}}},qi=(e={})=>s(r({},pc(e)),{name:`InboundFilters`});function tf(e={},t={}){return {allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:A_],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function N_(e,t){if(e.type){if(e.type===`transaction`&&O_(e,t.ignoreTransactions))return T&&g.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
11
+ Event: ${zt(e)}`),true}else {if(M_(e,t.ignoreErrors))return T&&g.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
12
+ Event: ${zt(e)}`),true;if(F_(e))return T&&g.warn(`Event dropped due to not having an error message, error type or stacktrace.
13
+ Event: ${zt(e)}`),true;if(L_(e,t.denyUrls))return T&&g.warn(`Event dropped due to being matched by \`denyUrls\` option.
14
+ Event: ${zt(e)}.
15
+ Url: ${ji(e)}`),true;if(!D_(e,t.allowUrls))return T&&g.warn(`Event dropped due to not being matched by \`allowUrls\` option.
16
+ Event: ${zt(e)}.
17
+ Url: ${ji(e)}`),true}return false}function M_(e,t){return t?.length?Hi(e).some(n=>Pe(n,t)):false}function O_(e,t){if(!t?.length)return false;let n=e.transaction;return n?Pe(n,t):false}function L_(e,t){if(!t?.length)return false;let n=ji(e);return n?Pe(n,t):false}function D_(e,t){if(!t?.length)return true;let n=ji(e);return n?Pe(n,t):true}function P_(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function ji(e){try{let n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?P_(n):null}catch{return T&&g.error(`Cannot extract url for event ${zt(e)}`),null}}function F_(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!==`Error`||t.value):false}function hc(e,t,n,r,o,i){if(!o.exception?.values||!i||!lt(i.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=mc(e,t,r,i.originalException,n,o.exception.values,s,0));}function mc(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(lt(r[o],Error)){nf(s,a);let u=e(t,r[o]),d=c.length;rf(u,o,d,a),c=mc(e,t,n,r[o],o,[u,...c],u,d);}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(lt(u,Error)){nf(s,a);let l=e(t,u),f=c.length;rf(l,`errors[${d}]`,f,a),c=mc(e,t,n,u,o,[l,...c],l,f);}}),c}function nf(e,t){e.mechanism=e.mechanism||{type:`generic`,handled:true},e.mechanism=s(r(r({},e.mechanism),e.type===`AggregateError`&&{is_exception_group:true}),{exception_id:t});}function rf(e,t,n,r$37){e.mechanism=e.mechanism||{type:`generic`,handled:true},e.mechanism=s(r({},e.mechanism),{type:`chained`,source:t,exception_id:n,parent_id:r$37});}function Wn(e){let t=`console`;He(t,e),$e(t,H_);}function H_(){`console`in x&&Mn.forEach(function(e){e in x.console&&Ee(x.console,e,function(t){return ar[e]=t,function(...n){xe(`console`,{args:n,level:e}),ar[e]?.apply(x.console,n);}});});}function Gn(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var z_=`Dedupe`,j_=()=>{let e;return {name:z_,processEvent(t){if(t.type)return t;try{if(q_(t,e))return T&&g.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}},Ji=j_;function q_(e,t){return t?!!(V_(e,t)||Y_(e,t)):false}function V_(e,t){let n=e.message,r=t.message;return !(!n&&!r||n&&!r||!n&&r||n!==r||!df(e,t)||!lf(e,t))}function Y_(e,t){let n=uf(t),r=uf(e);return !(!n||!r||n.type!==r.type||n.value!==r.value||!df(e,t)||!lf(e,t))}function lf(e,t){let n=cr(e),r=cr(t);if(!n&&!r)return true;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return false;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return false}return true}function df(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return true;if(n&&!r||!n&&r)return false;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return false}}function uf(e){return e.exception?.values?.[0]}function Ft(e){if(!e)return {};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return {};let n=t[6]||``,r=t[8]||``;return {host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function ns(e){if(e!==void 0)return e>=400&&e<500?`warning`:e>=500?`error`:void 0}var Tr=x;function yc(){return `history`in Tr&&!!Tr.history}function LS(){if(!(`fetch`in Tr))return false;try{return new Headers,new Request(`http://www.example.com`),new Response,!0}catch{return false}}function bo(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function To(){if(typeof EdgeRuntime==`string`)return true;if(!LS())return false;if(bo(Tr.fetch))return true;let e=false,t=Tr.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=bo(n.contentWindow.fetch)),t.head.removeChild(n);}catch(n){T&&g.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,n);}return e}function zn(e,t){let n=`fetch`;He(n,e),$e(n,()=>Nf(void 0,t));}function Nf(e,t=false){t&&!To()||Ee(x,`fetch`,function(n){return function(...r$42){let o=new Error,{method:i,url:s$13}=FS(r$42),a={args:r$42,fetchData:{method:i,url:s$13},startTimestamp:re()*1e3,virtualError:o,headers:US(r$42)};return xe(`fetch`,r({},a)),n.apply(x,r$42).then(async c=>(xe(`fetch`,s(r({},a),{endTimestamp:re()*1e3,response:c})),c),c=>{if(xe(`fetch`,s(r({},a),{endTimestamp:re()*1e3,error:c})),nt(c)&&c.stack===void 0&&(c.stack=o.stack,he(c,`framesToPop`,1)),c instanceof TypeError&&(c.message===`Failed to fetch`||c.message===`Load failed`||c.message===`NetworkError when attempting to fetch resource.`))try{let u=new URL(a.fetchData.url);c.message=`${c.message} (${u.host})`;}catch{}throw c})}});}function bc(e,t){return !!e&&typeof e==`object`&&!!e[t]}function kf(e){return typeof e==`string`?e:e?bc(e,`url`)?e.url:e.toString?e.toString():``:``}function FS(e){if(e.length===0)return {method:`GET`,url:``};if(e.length===2){let[n,r]=e;return {url:kf(n),method:bc(r,`method`)?String(r.method).toUpperCase():`GET`}}let t=e[0];return {url:kf(t),method:bc(t,`method`)?String(t.method).toUpperCase():`GET`}}function US(e){let[t,n]=e;try{if(typeof n==`object`&&n!==null&&`headers`in n&&n.headers)return new Headers(n.headers);if(ii(t))return new Headers(t.headers)}catch{}}function vc(){return `npm`}typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;var de;de={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a;}throw e}},typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout;var le,wc,Hf,op=[],us=[],be=de,$f=be.__b,Wf=be.__r,Gf=be.diffed,zf=be.__c,jf=be.unmount,qf=be.__;function wy(){for(var e;e=op.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ls),e.__H.__h.forEach(Oc),e.__H.__h=[];}catch(t){e.__H.__h=[],be.__e(t,e.__v);}}be.__b=function(e){le=null,$f&&$f(e);},be.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),qf&&qf(e,t);},be.__r=function(e){Wf&&Wf(e);var t=(le=e.__c).__H;t&&(wc===le?(t.__h=[],le.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=us,n.__N=n.i=void 0;})):(t.__h.forEach(ls),t.__h.forEach(Oc),t.__h=[],0)),wc=le;},be.diffed=function(e){Gf&&Gf(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(op.push(t)!==1&&Hf===be.requestAnimationFrame||((Hf=be.requestAnimationFrame)||Ry)(wy)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==us&&(n.__=n.__V),n.i=void 0,n.__V=us;})),wc=le=null;},be.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ls),n.__h=n.__h.filter(function(r){return !r.__||Oc(r)});}catch(r){t.some(function(o){o.__h&&(o.__h=[]);}),t=[],be.__e(r,n.__v);}}),zf&&zf(e,t);},be.unmount=function(e){jf&&jf(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ls(r);}catch(o){t=o;}}),n.__H=void 0,t&&be.__e(t,n.__v));};var Vf=typeof requestAnimationFrame==`function`;function Ry(e){var t,n=function(){clearTimeout(r),Vf&&cancelAnimationFrame(t),setTimeout(e);},r=setTimeout(n,100);Vf&&(t=requestAnimationFrame(n));}function ls(e){var t=le,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),le=t;}function Oc(e){var t=le;e.__c=e.__(),le=t;}var k=x,Bc=0;function Hc(){return Bc>0}function Jy(){Bc++,setTimeout(()=>{Bc--;});}function Yn(e,t={}){function n(o){return typeof o==`function`}if(!n(e))return e;try{let o=e.__sentry_wrapped__;if(o)return typeof o==`function`?o:e;if(Dn(e))return e}catch{return e}let r$46=function(...o){try{let i=o.map(s=>Yn(s,t));return e.apply(this,i)}catch(i){throw Jy(),Oe(s$16=>{s$16.addEventProcessor(a=>(t.mechanism&&(lr(a,void 0),rt(a,t.mechanism)),a.extra=s(r({},a.extra),{arguments:o}),a)),wt(i);}),i}};try{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r$46[o]=e[o]);}catch{}si(r$46,e),he(e,`__sentry_wrapped__`,r$46);try{Object.getOwnPropertyDescriptor(r$46,`name`).configurable&&Object.defineProperty(r$46,`name`,{get(){return e.name}});}catch{}return r$46}function xo(){let e=Ye(),{referrer:t}=k.document||{},{userAgent:n}=k.navigator||{};return {url:e,headers:r(r({},t&&{Referer:t}),n&&{"User-Agent":n})}}var fp={};w(fp,{debug:()=>eE,error:()=>rE,fatal:()=>oE,fmt:()=>cc,info:()=>tE,trace:()=>Qy,warn:()=>nE});function Cr(e,t,n,r){yr({level:e,message:t,attributes:n,severityNumber:r});}function Qy(e,t){Cr(`trace`,e,t);}function eE(e,t){Cr(`debug`,e,t);}function tE(e,t){Cr(`info`,e,t);}function nE(e,t){Cr(`warn`,e,t);}function rE(e,t){Cr(`error`,e,t);}function oE(e,t){Cr(`fatal`,e,t);}function Co(e,t){let n=zc(e,t),r={type:uE(t),value:lE(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function iE(e,t,n,r){let i=v()?.getOptions().normalizeDepth,s=pE(t),a={__serialized__:Ti(t,i)};if(s)return {exception:{values:[Co(e,s)]},extra:a};let c={exception:{values:[{type:On(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:dE(t,{isUnhandledRejection:r})}]},extra:a};if(n){let u=zc(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u});}return c}function Wc(e,t){return {exception:{values:[Co(e,t)]}}}function zc(e,t){let n=t.stacktrace||t.stack||``,r=aE(t),o=cE(t);try{return e(n,r,o)}catch{}return []}var sE=/Minified React error #\d+;/i;function aE(e){return e&&sE.test(e.message)?1:0}function cE(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function pp(e){return typeof WebAssembly<`u`&&typeof WebAssembly.Exception<`u`?e instanceof WebAssembly.Exception:false}function uE(e){let t=e?.name;return !t&&pp(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function lE(e){let t=e?.message;return pp(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?t.error.message:t:`No error message`}function jc(e,t,n,r){let i=ms(e,t,n?.syntheticException||void 0,r);return rt(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),Xe(i)}function qc(e,t,n=`info`,r,o){let s=Gc(e,t,r?.syntheticException||void 0,o);return s.level=n,r?.event_id&&(s.event_id=r.event_id),Xe(s)}function ms(e,t,n,r$47,o){let i;if(ri(t)&&t.error)return Wc(e,t.error);if(oi(t)||ya(t)){let s$17=t;if(`stack`in t)i=Wc(e,t);else {let a=s$17.name||(oi(s$17)?`DOMError`:`DOMException`),c=s$17.message?`${a}: ${s$17.message}`:a;i=Gc(e,c,n,r$47),lr(i,c);}return `code`in s$17&&(i.tags=s(r({},i.tags),{"DOMException.code":`${s$17.code}`})),i}return nt(t)?Wc(e,t):We(t)||On(t)?(i=iE(e,t,n,o),rt(i,{synthetic:true}),i):(i=Gc(e,t,n,r$47),lr(i,`${t}`),rt(i,{synthetic:true}),i)}function Gc(e,t,n,r){let o={};if(r&&n){let i=zc(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}),rt(o,{synthetic:true});}if(pn(t)){let{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function dE(e,{isUnhandledRejection:t}){let n=va(e),r=t?`promise rejection`:`exception`;return ri(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:On(e)?`Event \`${fE(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function fE(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function pE(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}var mE=5e3,Ao=class extends ho{constructor(t){let n=hE(t);dc(n,`browser`,[`browser`],k.SENTRY_SDK_SOURCE||vc()),super(n);let{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:a}=this._options,c=s??a?.enableLogs;k.document&&(i||c)&&k.document.addEventListener(`visibilitychange`,()=>{k.document.visibilityState===`hidden`&&(i&&this._flushOutcomes(),c&&Er(this));}),c&&(this.on(`flush`,()=>{Er(this);}),this.on(`afterCaptureLog`,()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{Er(this);},mE);})),o&&(this.on(`postprocessEvent`,uc),this.on(`beforeSendSession`,lc));}eventFromException(t,n){return jc(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n=`info`,r){return qc(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||`javascript`,super._prepareEvent(t,n,r,o)}};function hE(e){return r({release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:k.SENTRY_RELEASE?.id,sendClientReports:true,parentSpanIsAlwaysRootSpan:true},e)}var Ht=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;var U=x;var ZE=1e3,Dp,au,cu;function Po(e){He(`dom`,e),$e(`dom`,QE);}function QE(){if(!U.document)return;let e=xe.bind(null,`dom`),t=Pp(e,true);U.document.addEventListener(`click`,t,false),U.document.addEventListener(`keypress`,t,false),[`EventTarget`,`Node`].forEach(n=>{let o=U[n]?.prototype;o?.hasOwnProperty?.(`addEventListener`)&&(Ee(o,`addEventListener`,function(i){return function(s,a,c){if(s===`click`||s==`keypress`)try{let u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[s]=u[s]||{refCount:0};if(!d.handler){let l=Pp(e);d.handler=l,i.call(this,s,l,c);}d.refCount++;}catch{}return i.call(this,s,a,c)}}),Ee(o,`removeEventListener`,function(i){return function(s,a,c){if(s===`click`||s==`keypress`)try{let u=this.__sentry_instrumentation_handlers__||{},d=u[s];d&&(d.refCount--,d.refCount<=0&&(i.call(this,s,d.handler,c),d.handler=void 0,delete u[s]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__);}catch{}return i.call(this,s,a,c)}}));});}function eb(e){if(e.type!==au)return false;try{if(!e.target||e.target._sentryId!==cu)return !1}catch{}return true}function tb(e,t){return e!==`keypress`?false:t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):true}function Pp(e,t=false){return n=>{if(!n||n._sentryCaptured)return;let r=nb(n);if(tb(n.type,r))return;he(n,`_sentryCaptured`,true),r&&!r._sentryId&&he(r,`_sentryId`,ge());let o=n.type===`keypress`?`input`:n.type;eb(n)||(e({event:n,name:o,global:t}),au=n.type,cu=r?r._sentryId:void 0),clearTimeout(Dp),Dp=U.setTimeout(()=>{cu=void 0,au=void 0;},ZE);}}function nb(e){try{return e.target}catch{return null}}var xs;function an(e){let t=`history`;He(t,e),$e(t,rb);}function rb(){if(U.addEventListener(`popstate`,()=>{let t=U.location.href,n=xs;if(xs=t,n===t)return;xe(`history`,{from:n,to:t});}),!yc())return;function e(t){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let o=xs,i=ob(String(r));if(xs=i,o===i)return t.apply(this,n);xe(`history`,{from:o,to:i});}return t.apply(this,n)}}Ee(U.history,`pushState`,e),Ee(U.history,`replaceState`,e);}function ob(e){try{return new URL(e,U.location.origin).toString()}catch{return e}}var Cs={};function Mr(e){let t=Cs[e];if(t)return t;let n=U[e];if(bo(n))return Cs[e]=n.bind(U);let r=U.document;if(r&&typeof r.createElement==`function`)try{let o=r.createElement(`iframe`);o.hidden=!0,r.head.appendChild(o);let i=o.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(o);}catch(o){Ht&&g.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o);}return n&&(Cs[e]=n.bind(U))}function As(e){Cs[e]=void 0;}var Ze=`__sentry_xhr_v3__`;function Qn(e){He(`xhr`,e),$e(`xhr`,ib);}function ib(){if(!U.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){let o=new Error,i=re()*1e3,s=Me(r[0])?r[0].toUpperCase():void 0,a=sb(r[1]);if(!s||!a)return t.apply(n,r);n[Ze]={method:s,url:a,request_headers:{}},s===`POST`&&a.match(/sentry_key/)&&(n.__sentry_own_request__=true);let c=()=>{let u=n[Ze];if(u&&n.readyState===4){try{u.status_code=n.status;}catch{}xe(`xhr`,{endTimestamp:re()*1e3,startTimestamp:i,xhr:n,virtualError:o});}};return `onreadystatechange`in n&&typeof n.onreadystatechange==`function`?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return c(),u.apply(d,l)}}):n.addEventListener(`readystatechange`,c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){let[f,p]=l,h=d[Ze];return h&&Me(f)&&Me(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){let o=n[Ze];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);return xe(`xhr`,{startTimestamp:re()*1e3,xhr:n}),t.apply(n,r)}});}function sb(e){if(Me(e))return e;try{return e.toString()}catch{}}function Fo(e,t=Mr(`fetch`)){let n=0,r$52=0;function o(i){let s=i.body.length;n+=s,r$52++;let a=r({body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r$52<15},e.fetchOptions);if(!t)return As(`fetch`),En(`No fetch implementation available`);try{return t(e.url,a).then(c=>(n-=s,r$52--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get(`X-Sentry-Rate-Limits`),"retry-after":c.headers.get(`Retry-After`)}}))}catch(c){return As(`fetch`),n-=s,r$52--,En(c)}}return Gi(e,o)}var fb=30,mb=50;function Lr(e,t,n,r){let o={filename:e,function:t===`<anonymous>`?`?`:t,in_app:true};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var hb=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,gb=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_b=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sb=e=>{let t=hb.exec(e);if(t){let[,r,o,i]=t;return Lr(r,`?`,+o,+i)}let n=gb.exec(e);if(n){if(n[2]&&n[2].indexOf(`eval`)===0){let s=_b.exec(n[2]);s&&(n[2]=s[1],n[3]=s[2],n[4]=s[3]);}let[o,i]=$p(n[1]||`?`,n[2]);return Lr(i,o,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Up=[fb,Sb],yb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Eb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,bb=e=>{let t=yb.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let i=Eb.exec(t[3]);i&&(t[1]=t[1]||`eval`,t[3]=i[1],t[4]=i[2],t[5]=``);}let r=t[3],o=t[1]||`?`;return [o,r]=$p(o,r),Lr(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Bp=[mb,bb],Hp=[Up,Bp],fu=ti(...Hp),$p=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)!==-1?e.split(`@`)[0]:`?`,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var $=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;var Ms=1024,Ob=`Breadcrumbs`,Lb=(e={})=>{let t=r({console:true,dom:true,fetch:true,history:true,sentry:true,xhr:true},e);return {name:Ob,setup(n){t.console&&Wn(Fb(n)),t.dom&&Po(Pb(n,t.dom)),t.xhr&&Qn(Ub(n)),t.fetch&&zn(Bb(n)),t.history&&an(Hb(n)),t.sentry&&n.on(`beforeSendEvent`,Db(n));}}},pu=Lb;function Db(e){return function(n){v()===e&&it({category:`sentry.${n.type===`transaction`?`transaction`:`event`}`,event_id:n.event_id,level:n.level,message:zt(n)},{event:n});}}function Pb(e,t){return function(r){if(v()!==e)return;let o,i,s=typeof t==`object`?t.serializeAttribute:void 0,a=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;a&&a>Ms&&($&&g.warn(`\`dom.maxStringLength\` cannot exceed ${Ms}, but a value of ${a} was configured. Sentry will use ${Ms} instead.`),a=Ms),typeof s==`string`&&(s=[s]);try{let u=r.event,d=$b(u)?u.target:u;o=Ce(d,{keyAttrs:s,maxStringLength:a}),i=Qr(d);}catch{o=`<unknown>`;}if(o.length===0)return;let c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),it(c,{event:r.event,name:r.name,global:r.global});}}function Fb(e){return function(n){if(v()!==e)return;let r={category:`console`,data:{arguments:n.args,logger:`console`},level:Gn(n.level),message:Ln(n.args,` `)};if(n.level===`assert`)if(n.args[0]===false)r.message=`Assertion failed: ${Ln(n.args.slice(1),` `)||`console.assert`}`,r.data.arguments=n.args.slice(1);else return;it(r,{input:n.args,level:n.level});}}function Ub(e){return function(n){if(v()!==e)return;let{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[Ze];if(!r||!o||!i)return;let{method:s,url:a,status_code:c,body:u}=i,d={method:s,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o},f={category:`xhr`,data:d,type:`http`,level:ns(c)};e.emit(`beforeOutgoingRequestBreadcrumb`,f,l),it(f,l);}}function Bb(e){return function(n){if(v()!==e)return;let{startTimestamp:r$54,endTimestamp:o}=n;if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method===`POST`))if(n.fetchData.method,n.fetchData.url,n.error){let i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r$54,endTimestamp:o},a={category:`fetch`,data:i,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,s),it(a,s);}else {let i=n.response,s$18=s(r({},n.fetchData),{status_code:i?.status});n.fetchData.request_body_size,n.fetchData.response_body_size,i?.status;let a={input:n.args,response:i,startTimestamp:r$54,endTimestamp:o},c={category:`fetch`,data:s$18,type:`http`,level:ns(s$18.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,c,a),it(c,a);}}}function Hb(e){return function(n){if(v()!==e)return;let r=n.from,o=n.to,i=Ft(k.location.href),s=r?Ft(r):void 0,a=Ft(o);s?.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),it({category:`navigation`,data:{from:r,to:o}});}}function $b(e){return !!e&&!!e.target}var Wb=[`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`],Gb=`BrowserApiErrors`,zb=(e={})=>{let t=r({XMLHttpRequest:true,eventTarget:true,requestAnimationFrame:true,setInterval:true,setTimeout:true,unregisterOriginalCallbacks:false},e);return {name:Gb,setupOnce(){t.setTimeout&&Ee(k,`setTimeout`,Wp),t.setInterval&&Ee(k,`setInterval`,Wp),t.requestAnimationFrame&&Ee(k,`requestAnimationFrame`,jb),t.XMLHttpRequest&&`XMLHttpRequest`in k&&Ee(XMLHttpRequest.prototype,`send`,qb);let n=t.eventTarget;n&&(Array.isArray(n)?n:Wb).forEach(o=>Vb(o,t));}}},mu=zb;function Wp(e){return function(...t){let n=t[0];return t[0]=Yn(n,{mechanism:{data:{function:tt(e)},handled:false,type:`instrument`}}),e.apply(this,t)}}function jb(e){return function(t){return e.apply(this,[Yn(t,{mechanism:{data:{function:`requestAnimationFrame`,handler:tt(e)},handled:false,type:`instrument`}})])}}function qb(e){return function(...t){let n=this;return [`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(o=>{o in n&&typeof n[o]==`function`&&Ee(n,o,function(i){let s={mechanism:{data:{function:o,handler:tt(i)},handled:false,type:`instrument`}},a=Dn(i);return a&&(s.mechanism.data.handler=tt(a)),Yn(i,s)});}),e.apply(this,t)}}function Vb(e,t){let r=k[e]?.prototype;r?.hasOwnProperty?.(`addEventListener`)&&(Ee(r,`addEventListener`,function(o){return function(i,s,a){try{Yb(s)&&(s.handleEvent=Yn(s.handleEvent,{mechanism:{data:{function:`handleEvent`,handler:tt(s),target:e},handled:!1,type:`instrument`}}));}catch{}return t.unregisterOriginalCallbacks&&Jb(this,i,s),o.apply(this,[i,Yn(s,{mechanism:{data:{function:`addEventListener`,handler:tt(s),target:e},handled:false,type:`instrument`}}),a])}}),Ee(r,`removeEventListener`,function(o){return function(i,s,a){try{let c=s.__sentry_wrapped__;c&&o.call(this,i,c,a);}catch{}return o.call(this,i,s,a)}}));}function Yb(e){return typeof e.handleEvent==`function`}function Jb(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n);}var hu=()=>({name:`BrowserSession`,setupOnce(){if(typeof k.document>`u`){$&&g.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}lo({ignoreDuration:true}),fo(),an(({from:e,to:t})=>{e!==void 0&&e!==t&&(lo({ignoreDuration:true}),fo());});}});var Kb=`GlobalHandlers`,Xb=(e={})=>{let t=r({onerror:true,onunhandledrejection:true},e);return {name:Kb,setupOnce(){Error.stackTraceLimit=50;},setup(n){t.onerror&&(Zb(n),Gp(`onerror`)),t.onunhandledrejection&&(Qb(n),Gp(`onunhandledrejection`));}}},gu=Xb;function Zb(e){Kr(t=>{let{stackParser:n,attachStacktrace:r}=zp();if(v()!==e||Hc())return;let{msg:o,url:i,line:s,column:a,error:c}=t,u=nT(ms(n,c||o,void 0,r,false),i,s,a);u.level=`error`,bn(u,{originalException:c,mechanism:{handled:false,type:`onerror`}});});}function Qb(e){Xr(t=>{let{stackParser:n,attachStacktrace:r}=zp();if(v()!==e||Hc())return;let o=eT(t),i=yt(o)?tT(o):ms(n,o,void 0,r,true);i.level=`error`,bn(i,{originalException:o,mechanism:{handled:false,type:`onunhandledrejection`}});});}function eT(e){if(yt(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function tT(e){return {exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function nT(e,t,n,r){let o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=r,d=n,l=Me(t)&&t.length>0?t:Ye();return c.length===0&&c.push({colno:u,filename:l,function:`?`,in_app:true,lineno:d}),e}function Gp(e){$&&g.log(`Global Handler attached: ${e}`);}function zp(){return v()?.getOptions()||{stackParser:()=>[],attachStacktrace:false}}var _u=()=>({name:`HttpContext`,preprocessEvent(e){if(!k.navigator&&!k.location&&!k.document)return;let t=xo(),n=r(r({},t.headers),e.request?.headers);e.request=s(r(r({},t),e.request),{headers:n});}});var rT=`cause`,oT=5,iT=`LinkedErrors`,sT=(e={})=>{let t=e.limit||oT,n=e.key||rT;return {name:iT,preprocessEvent(r,o,i){hc(Co,i.getOptions().stackParser,n,t,r,o);}}},Su=sT;function qp(e){return [qi(),zi(),mu(),pu(),gu(),Su(),Ji(),_u(),hu()]}var QT=Object.defineProperty,eI=(e,t,n)=>t in e?QT(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,om=(e,t,n)=>eI(e,typeof t!=`symbol`?t+``:t,n),Le=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(Le||{});var Hs=class{constructor(){om(this,`idNodeMap`,new Map),om(this,`nodeMetaMap`,new WeakMap);}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r));}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){let r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n);}replace(t,n){let r=this.getNode(t);if(r){let o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o);}this.idNodeMap.set(t,n);}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap;}};function cI(){return new Hs}var Pr=`Please stop import mirror directly. Instead of that,\r
18
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
19
+ or you can use record.mirror to access the mirror instance during recording.`,um={map:{},getId(){return console.error(Pr),-1},getNode(){return console.error(Pr),null},removeNodeFromMap(){console.error(Pr);},has(){return console.error(Pr),false},reset(){console.error(Pr);}};typeof window<`u`&&window.Proxy&&window.Reflect&&(um=new Proxy(um,{get(e,t,n){return t===`map`&&console.error(Pr),Reflect.get(e,t,n)}}));/[1-9][0-9]{12}/.test(Date.now().toString())||(()=>new Date().getTime());var X=(e=>(e[e.DomContentLoaded=0]=`DomContentLoaded`,e[e.Load=1]=`Load`,e[e.FullSnapshot=2]=`FullSnapshot`,e[e.IncrementalSnapshot=3]=`IncrementalSnapshot`,e[e.Meta=4]=`Meta`,e[e.Custom=5]=`Custom`,e[e.Plugin=6]=`Plugin`,e))(X||{}),Y=(e=>(e[e.Mutation=0]=`Mutation`,e[e.MouseMove=1]=`MouseMove`,e[e.MouseInteraction=2]=`MouseInteraction`,e[e.Scroll=3]=`Scroll`,e[e.ViewportResize=4]=`ViewportResize`,e[e.Input=5]=`Input`,e[e.TouchMove=6]=`TouchMove`,e[e.MediaInteraction=7]=`MediaInteraction`,e[e.StyleSheetRule=8]=`StyleSheetRule`,e[e.CanvasMutation=9]=`CanvasMutation`,e[e.Font=10]=`Font`,e[e.Log=11]=`Log`,e[e.Drag=12]=`Drag`,e[e.StyleDeclaration=13]=`StyleDeclaration`,e[e.Selection=14]=`Selection`,e[e.AdoptedStyleSheet=15]=`AdoptedStyleSheet`,e[e.CustomElement=16]=`CustomElement`,e))(Y||{}),Qe=(e=>(e[e.MouseUp=0]=`MouseUp`,e[e.MouseDown=1]=`MouseDown`,e[e.Click=2]=`Click`,e[e.ContextMenu=3]=`ContextMenu`,e[e.DblClick=4]=`DblClick`,e[e.Focus=5]=`Focus`,e[e.Blur=6]=`Blur`,e[e.TouchStart=7]=`TouchStart`,e[e.TouchMove_Departed=8]=`TouchMove_Departed`,e[e.TouchEnd=9]=`TouchEnd`,e[e.TouchCancel=10]=`TouchCancel`,e))(Qe||{}),cn=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(cn||{}),Fr=(e=>(e[e.Play=0]=`Play`,e[e.Pause=1]=`Pause`,e[e.Seeked=2]=`Seeked`,e[e.VolumeChange=3]=`VolumeChange`,e[e.RateChange=4]=`RateChange`,e))(Fr||{});var gm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,QI=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(Uo=0;Uo<gm.length;Uo++)QI[gm.charCodeAt(Uo)]=Uo;var Uo;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e);}}catch(e){console.debug(`Unable to override Array.from`,e);}cI();var _m;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`;})(_m||(_m={}));new Set([Y.Mutation,Y.StyleSheetRule,Y.StyleDeclaration,Y.AdoptedStyleSheet,Y.CanvasMutation,Y.Selection,Y.MediaInteraction]);var nl=(e=>(e[e.Document=0]=`Document`,e[e.DocumentType=1]=`DocumentType`,e[e.Element=2]=`Element`,e[e.Text=3]=`Text`,e[e.CDATA=4]=`CDATA`,e[e.Comment=5]=`Comment`,e))(nl||{});typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;var aw=Object.defineProperty,cw=(e,t,n)=>t in e?aw(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,fh=(e,t,n)=>cw(e,typeof t!=`symbol`?t+``:t,n),cl=class{constructor(){fh(this,`idNodeMap`,new Map),fh(this,`nodeMetaMap`,new WeakMap);}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r));}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){let r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n);}replace(t,n){let r=this.getNode(t);if(r){let o=this.nodeMetaMap.get(r);o&&this.nodeMetaMap.set(n,o);}this.idNodeMap.set(t,n);}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap;}};function uw(){return new cl}var jr=`Please stop import mirror directly. Instead of that,\r
20
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
21
+ or you can use record.mirror to access the mirror instance during recording.`,mh={map:{},getId(){return console.error(jr),-1},getNode(){return console.error(jr),null},removeNodeFromMap(){console.error(jr);},has(){return console.error(jr),false},reset(){console.error(jr);}};typeof window<`u`&&window.Proxy&&window.Reflect&&(mh=new Proxy(mh,{get(e,t,n){return t===`map`&&console.error(jr),Reflect.get(e,t,n)}}));Date.now().toString();var Vr=(e=>(e[e[`2D`]=0]=`2D`,e[e.WebGL=1]=`WebGL`,e[e.WebGL2=2]=`WebGL2`,e))(Vr||{});var qr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,pw=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(Zo=0;Zo<qr.length;Zo++)pw[qr.charCodeAt(Zo)]=Zo;var Zo;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e);}}catch(e){console.debug(`Unable to override Array.from`,e);}uw();var yh;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`;})(yh||(yh={}));var aa={traceFetch:true,traceXHR:true,enableHTTPTimings:true,trackFetchStreamPerformance:false};r(s(r({},_r),{instrumentNavigation:true,instrumentPageLoad:true,markBackgroundSpan:true,enableLongTask:true,enableLongAnimationFrame:true,enableInp:true,enableElementTiming:true,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:true,linkPreviousTrace:`in-memory`,consistentTraceSampling:false,_experiments:{}}),aa);var ua=k.navigator;ua?.language||ua?.languages?.[0]||``;function Jw(e){return typeof e==`object`&&e!==null&&`getHighEntropyValues`in e}var Hh=ua?.userAgentData;Jw(Hh)&&Hh.getHighEntropyValues([`architecture`,`model`,`platform`,`platformVersion`,`fullVersionList`]).then(e=>{if(e.platform||``,e.architecture||``,e.model||``,e.platformVersion||``,e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];`${t.brand} ${t.version}`;}}).catch(e=>{});
22
+
23
+ export { Ao as BrowserClient, Je as Scope, fu as defaultStackParser, qp as getDefaultIntegrations, Fo as makeFetchTransport };