LavaPack.loadBundle([[3041,{"./_md.js":3037,"./utils.js":3044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ripemd160=n.RIPEMD160=void 0;const r=e("./_md.js"),s=e("./utils.js"),i=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),o=new Uint8Array(new Array(16).fill(0).map(((e,t)=>t)));let a=[o],c=[o.map((e=>(9*e+5)%16))];for(let e=0;e<4;e++)for(let t of[a,c])t.push(t[e].map((e=>i[e])));const u=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),l=a.map(((e,t)=>e.map((e=>u[t][e])))),d=c.map(((e,t)=>e.map((e=>u[t][e])))),p=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),f=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function h(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}const _=new Uint32Array(16);class m extends r.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:s}=this;return[e,t,n,r,s]}set(e,t,n,r,s){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|s}process(e,t){for(let n=0;n<16;n++,t+=4)_[n]=e.getUint32(t,!0);let n=0|this.h0,r=n,i=0|this.h1,o=i,u=0|this.h2,m=u,g=0|this.h3,S=g,y=0|this.h4,E=y;for(let e=0;e<5;e++){const t=4-e,b=p[e],T=f[e],R=a[e],I=c[e],v=l[e],O=d[e];for(let t=0;t<16;t++){const r=(0,s.rotl)(n+h(e,i,u,g)+_[R[t]]+b,v[t])+y|0;n=y,y=g,g=0|(0,s.rotl)(u,10),u=i,i=r}for(let e=0;e<16;e++){const n=(0,s.rotl)(r+h(t,o,m,S)+_[I[e]]+T,O[e])+E|0;r=E,E=S,S=0|(0,s.rotl)(m,10),m=o,o=n}}this.set(this.h1+u+S|0,this.h2+g+E|0,this.h3+y+r|0,this.h4+n+o|0,this.h0+i+m|0)}roundClean(){_.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}n.RIPEMD160=m,n.ripemd160=(0,s.wrapConstructor)((()=>new m))}}},{package:"viem>@scure/bip32>@noble/hashes",file:"node_modules/@scure/bip32/node_modules/@noble/hashes/ripemd160.js"}],[3042,{"./_md.js":3037,"./utils.js":3044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sha224=n.sha256=void 0;const r=e("./_md.js"),s=e("./utils.js"),i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),a=new Uint32Array(64);class c extends r.HashMD{constructor(){super(64,32,8,!1),this.A=0|o[0],this.B=0|o[1],this.C=0|o[2],this.D=0|o[3],this.E=0|o[4],this.F=0|o[5],this.G=0|o[6],this.H=0|o[7]}get(){const{A:e,B:t,C:n,D:r,E:s,F:i,G:o,H:a}=this;return[e,t,n,r,s,i,o,a]}set(e,t,n,r,s,i,o,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|s,this.F=0|i,this.G=0|o,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)a[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=a[e-15],n=a[e-2],r=(0,s.rotr)(t,7)^(0,s.rotr)(t,18)^t>>>3,i=(0,s.rotr)(n,17)^(0,s.rotr)(n,19)^n>>>10;a[e]=i+a[e-7]+r+a[e-16]|0}let{A:n,B:o,C:c,D:u,E:l,F:d,G:p,H:f}=this;for(let e=0;e<64;e++){const t=f+((0,s.rotr)(l,6)^(0,s.rotr)(l,11)^(0,s.rotr)(l,25))+(0,r.Chi)(l,d,p)+i[e]+a[e]|0,h=((0,s.rotr)(n,2)^(0,s.rotr)(n,13)^(0,s.rotr)(n,22))+(0,r.Maj)(n,o,c)|0;f=p,p=d,d=l,l=u+t|0,u=c,c=o,o=n,n=t+h|0}n=n+this.A|0,o=o+this.B|0,c=c+this.C|0,u=u+this.D|0,l=l+this.E|0,d=d+this.F|0,p=p+this.G|0,f=f+this.H|0,this.set(n,o,c,u,l,d,p,f)}roundClean(){a.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class u extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}n.sha256=(0,s.wrapConstructor)((()=>new c)),n.sha224=(0,s.wrapConstructor)((()=>new u))}}},{package:"viem>@scure/bip32>@noble/hashes",file:"node_modules/@scure/bip32/node_modules/@noble/hashes/sha256.js"}],[3043,{"./_md.js":3037,"./_u64.js":3038,"./utils.js":3044},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.sha384=n.sha512_256=n.sha512_224=n.sha512=n.SHA512=void 0;const r=e("./_md.js"),s=e("./_u64.js"),i=e("./utils.js"),[o,a]=(()=>s.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),c=new Uint32Array(80),u=new Uint32Array(80);class l extends r.HashMD{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:s,Cl:i,Dh:o,Dl:a,Eh:c,El:u,Fh:l,Fl:d,Gh:p,Gl:f,Hh:h,Hl:_}=this;return[e,t,n,r,s,i,o,a,c,u,l,d,p,f,h,_]}set(e,t,n,r,s,i,o,a,c,u,l,d,p,f,h,_){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|s,this.Cl=0|i,this.Dh=0|o,this.Dl=0|a,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|d,this.Gh=0|p,this.Gl=0|f,this.Hh=0|h,this.Hl=0|_}process(e,t){for(let n=0;n<16;n++,t+=4)c[n]=e.getUint32(t),u[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|c[e-15],n=0|u[e-15],r=s.default.rotrSH(t,n,1)^s.default.rotrSH(t,n,8)^s.default.shrSH(t,n,7),i=s.default.rotrSL(t,n,1)^s.default.rotrSL(t,n,8)^s.default.shrSL(t,n,7),o=0|c[e-2],a=0|u[e-2],l=s.default.rotrSH(o,a,19)^s.default.rotrBH(o,a,61)^s.default.shrSH(o,a,6),d=s.default.rotrSL(o,a,19)^s.default.rotrBL(o,a,61)^s.default.shrSL(o,a,6),p=s.default.add4L(i,d,u[e-7],u[e-16]),f=s.default.add4H(p,r,l,c[e-7],c[e-16]);c[e]=0|f,u[e]=0|p}let{Ah:n,Al:r,Bh:i,Bl:l,Ch:d,Cl:p,Dh:f,Dl:h,Eh:_,El:m,Fh:g,Fl:S,Gh:y,Gl:E,Hh:b,Hl:T}=this;for(let e=0;e<80;e++){const t=s.default.rotrSH(_,m,14)^s.default.rotrSH(_,m,18)^s.default.rotrBH(_,m,41),R=s.default.rotrSL(_,m,14)^s.default.rotrSL(_,m,18)^s.default.rotrBL(_,m,41),I=_&g^~_&y,v=m&S^~m&E,O=s.default.add5L(T,R,v,a[e],u[e]),A=s.default.add5H(O,b,t,I,o[e],c[e]),w=0|O,N=s.default.rotrSH(n,r,28)^s.default.rotrBH(n,r,34)^s.default.rotrBH(n,r,39),C=s.default.rotrSL(n,r,28)^s.default.rotrBL(n,r,34)^s.default.rotrBL(n,r,39),j=n&i^n&d^i&d,k=r&l^r&p^l&p;b=0|y,T=0|E,y=0|g,E=0|S,g=0|_,S=0|m,({h:_,l:m}=s.default.add(0|f,0|h,0|A,0|w)),f=0|d,h=0|p,d=0|i,p=0|l,i=0|n,l=0|r;const D=s.default.add3L(w,C,k);n=s.default.add3H(D,A,N,j),r=0|D}({h:n,l:r}=s.default.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:l}=s.default.add(0|this.Bh,0|this.Bl,0|i,0|l)),({h:d,l:p}=s.default.add(0|this.Ch,0|this.Cl,0|d,0|p)),({h:f,l:h}=s.default.add(0|this.Dh,0|this.Dl,0|f,0|h)),({h:_,l:m}=s.default.add(0|this.Eh,0|this.El,0|_,0|m)),({h:g,l:S}=s.default.add(0|this.Fh,0|this.Fl,0|g,0|S)),({h:y,l:E}=s.default.add(0|this.Gh,0|this.Gl,0|y,0|E)),({h:b,l:T}=s.default.add(0|this.Hh,0|this.Hl,0|b,0|T)),this.set(n,r,i,l,d,p,f,h,_,m,g,S,y,E,b,T)}roundClean(){c.fill(0),u.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}n.SHA512=l;class d extends l{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class p extends l{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class f extends l{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}n.sha512=(0,i.wrapConstructor)((()=>new l)),n.sha512_224=(0,i.wrapConstructor)((()=>new d)),n.sha512_256=(0,i.wrapConstructor)((()=>new p)),n.sha384=(0,i.wrapConstructor)((()=>new f))}}},{package:"viem>@scure/bip32>@noble/hashes",file:"node_modules/@scure/bip32/node_modules/@noble/hashes/sha512.js"}],[3044,{"./_assert.js":3036,"@noble/hashes/crypto":3039},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){ /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ Object.defineProperty(n,"__esModule",{value:!0}),n.randomBytes=n.wrapXOFConstructorWithOpts=n.wrapConstructorWithOpts=n.wrapConstructor=n.checkOpts=n.Hash=n.concatBytes=n.toBytes=n.utf8ToBytes=n.asyncLoop=n.nextTick=n.hexToBytes=n.bytesToHex=n.byteSwap32=n.byteSwapIfBE=n.byteSwap=n.isLE=n.rotl=n.rotr=n.createView=n.u32=n.u8=n.isBytes=void 0;const r=e("@noble/hashes/crypto"),s=e("./_assert.js");n.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name};n.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);n.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));n.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);n.rotr=(e,t)=>e<<32-t|e>>>t;n.rotl=(e,t)=>e<>>32-t>>>0,n.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];n.byteSwap=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255,n.byteSwapIfBE=n.isLE?e=>e:e=>(0,n.byteSwap)(e),n.byteSwap32=function(e){for(let t=0;tt.toString(16).padStart(2,"0")));n.bytesToHex=function(e){(0,s.bytes)(e);let t="";for(let n=0;n=o._0&&e<=o._9?e-o._0:e>=o._A&&e<=o._F?e-(o._A-10):e>=o._a&&e<=o._f?e-(o._a-10):void 0}n.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,s=0;t{},n.asyncLoop=async function(e,t,r){let s=Date.now();for(let i=0;i=0&&ee().update(u(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},n.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(u(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},n.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(u(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},n.randomBytes=function(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}}}},{package:"viem>@scure/bip32>@noble/hashes",file:"node_modules/@scure/bip32/node_modules/@noble/hashes/utils.js"}],[3046,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;n.DEBUG_BUILD=r}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/debug-build.js"}],[3047,{"./debug-build.js":3046,"./types.js":3074,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./debug-build.js"),i=e("./types.js"),o={};function a(e){const t=o[e];if(t)return t;let n=i.WINDOW[e];if(r.isNativeFunction(n))return o[e]=n.bind(i.WINDOW);const a=i.WINDOW.document;if(a&&"function"==typeof a.createElement)try{const t=a.createElement("iframe");t.hidden=!0,a.head.appendChild(t);const r=t.contentWindow;r&&r[e]&&(n=r[e]),a.head.removeChild(t)}catch(t){s.DEBUG_BUILD&&r.logger.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?o[e]=n.bind(i.WINDOW):n}n.clearCachedImplementation=function(e){o[e]=undefined},n.fetch=function(...e){return a("fetch")(...e)},n.getNativeImplementation=a,n.setTimeout=function(...e){return a("setTimeout")(...e)}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/getNativeImplementation.js"}],[3048,{"./getNativeImplementation.js":3047,"./instrument/dom.js":3049,"./instrument/history.js":3050,"./instrument/xhr.js":3051,"./metrics/browserMetrics.js":3052,"./metrics/inp.js":3054,"./metrics/instrument.js":3055},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./metrics/instrument.js"),s=e("./metrics/browserMetrics.js"),i=e("./instrument/dom.js"),o=e("./instrument/history.js"),a=e("./getNativeImplementation.js"),c=e("./instrument/xhr.js"),u=e("./metrics/inp.js");n.addClsInstrumentationHandler=r.addClsInstrumentationHandler,n.addFidInstrumentationHandler=r.addFidInstrumentationHandler,n.addInpInstrumentationHandler=r.addInpInstrumentationHandler,n.addLcpInstrumentationHandler=r.addLcpInstrumentationHandler,n.addPerformanceInstrumentationHandler=r.addPerformanceInstrumentationHandler,n.addTtfbInstrumentationHandler=r.addTtfbInstrumentationHandler,n.addPerformanceEntries=s.addPerformanceEntries,n.startTrackingInteractions=s.startTrackingInteractions,n.startTrackingLongAnimationFrames=s.startTrackingLongAnimationFrames,n.startTrackingLongTasks=s.startTrackingLongTasks,n.startTrackingWebVitals=s.startTrackingWebVitals,n.addClickKeypressInstrumentationHandler=i.addClickKeypressInstrumentationHandler,n.addHistoryInstrumentationHandler=o.addHistoryInstrumentationHandler,n.clearCachedImplementation=a.clearCachedImplementation,n.fetch=a.fetch,n.getNativeImplementation=a.getNativeImplementation,n.setTimeout=a.setTimeout,n.SENTRY_XHR_DATA_KEY=c.SENTRY_XHR_DATA_KEY,n.addXhrInstrumentationHandler=c.addXhrInstrumentationHandler,n.registerInpInteractionListener=u.registerInpInteractionListener,n.startTrackingINP=u.startTrackingINP}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/index.js"}],[3049,{"../types.js":3074,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../types.js"),i=1e3;let o,a,c;function u(){if(!s.WINDOW.document)return;const e=r.triggerHandlers.bind(null,"dom"),t=l(e,!0);s.WINDOW.document.addEventListener("click",t,!1),s.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=s.WINDOW[t]&&s.WINDOW[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(r.fill(n,"addEventListener",(function(t){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=i[n]=i[n]||{refCount:0};if(!o.handler){const r=l(e);o.handler=r,t.call(this,n,r,s)}o.refCount++}catch(e){}return t.call(this,n,r,s)}})),r.fill(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},i=s[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=undefined,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function l(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const u=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,u))return;r.addNonEnumerableProperty(n,"_sentryCaptured",!0),u&&!u._sentryId&&r.addNonEnumerableProperty(u,"_sentryId",r.uuid4());const l="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==c)return!1}catch(e){}return!0}(n)){e({event:n,name:l,global:t}),a=n.type,c=u?u._sentryId:undefined}clearTimeout(o),o=s.WINDOW.setTimeout((()=>{c=undefined,a=undefined}),i)}}n.addClickKeypressInstrumentationHandler=function(e){r.addHandler("dom",e),r.maybeInstrument("dom",u)},n.instrumentDOM=u}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/instrument/dom.js"}],[3050,{"../types.js":3074,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../types.js");let i;function o(){if(!r.supportsHistory())return;const e=s.WINDOW.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:undefined;if(n){const e=i,t=String(n);i=t;const s={from:e,to:t};r.triggerHandlers("history",s)}return e.apply(this,t)}}s.WINDOW.onpopstate=function(...t){const n=s.WINDOW.location.href,o=i;i=n;const a={from:o,to:n};if(r.triggerHandlers("history",a),e)try{return e.apply(this,t)}catch(e){}},r.fill(s.WINDOW.history,"pushState",t),r.fill(s.WINDOW.history,"replaceState",t)}n.addHistoryInstrumentationHandler=function(e){const t="history";r.addHandler(t,e),r.maybeInstrument(t,o)}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/instrument/history.js"}],[3051,{"../types.js":3074,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../types.js"),i="__sentry_xhr_v3__";function o(){if(!s.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const s=1e3*r.timestampInSeconds(),o=r.isString(n[0])?n[0].toUpperCase():undefined,a=function(e){if(r.isString(e))return e;try{return e.toString()}catch(e){}return undefined}(n[1]);if(!o||!a)return e.apply(t,n);t[i]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const c=()=>{const e=t[i];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}const n={endTimestamp:1e3*r.timestampInSeconds(),startTimestamp:s,xhr:t};r.triggerHandlers("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(c(),e.apply(t,n))}):t.addEventListener("readystatechange",c),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[s,o]=n,a=t[i];return a&&r.isString(s)&&r.isString(o)&&(a.request_headers[s.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const s=t[i];if(!s)return e.apply(t,n);n[0]!==undefined&&(s.body=n[0]);const o={startTimestamp:1e3*r.timestampInSeconds(),xhr:t};return r.triggerHandlers("xhr",o),e.apply(t,n)}})}n.SENTRY_XHR_DATA_KEY=i,n.addXhrInstrumentationHandler=function(e){r.addHandler("xhr",e),r.maybeInstrument("xhr",o)},n.instrumentXHR=o}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/instrument/xhr.js"}],[3052,{"../debug-build.js":3046,"../types.js":3074,"./cls.js":3053,"./instrument.js":3055,"./utils.js":3056,"./web-vitals/lib/getActivationStart.js":3063,"./web-vitals/lib/getNavigationEntry.js":3064,"./web-vitals/lib/getVisibilityWatcher.js":3065,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("../debug-build.js"),o=e("../types.js"),a=e("./cls.js"),c=e("./instrument.js"),u=e("./utils.js"),l=e("./web-vitals/lib/getActivationStart.js"),d=e("./web-vitals/lib/getNavigationEntry.js"),p=e("./web-vitals/lib/getVisibilityWatcher.js"),f=2147483647;let h,_,m=0,g={};function S(e,t,n,s,i){const o=d.getNavigationEntry(),a=u.msToSec(o?o.requestStart:0),c=i+Math.max(n,a),l=i+n,p=l+s,f={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};return c!==l&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c),u.startAndEndSpan(e,c,p,{name:t.name,op:t.entryType,attributes:f}),c}function y(e,t,n,s,i,o){const a=o?t[o]:t[`${n}End`],c=t[`${n}Start`];c&&a&&u.startAndEndSpan(e,s+u.msToSec(c),s+u.msToSec(a),{op:`browser.${i||n}`,name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}function E(e,t,n,i,a,c){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const l=s.parseUrl(n),d={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};b(d,t,"transferSize","http.response_transfer_size"),b(d,t,"encodedBodySize","http.response_content_length"),b(d,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(d["resource.render_blocking_status"]=t.renderBlockingStatus),l.protocol&&(d["url.scheme"]=l.protocol.split(":").pop()),l.host&&(d["server.address"]=l.host),d["url.same_origin"]=n.includes(o.WINDOW.location.origin);const p=c+i,f=p+a;u.startAndEndSpan(e,p,f,{name:n.replace(o.WINDOW.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:d})}function b(e,t,n,r){const s=t[n];null!=s&&s{const n=u.msToSec(t.startTime),o=u.msToSec(Math.max(0,t.duration));if(!("navigation"===f&&b&&a+n{y(e,t,r,n)})),y(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),y(e,t,"fetch",n,"cache","domainLookupStart"),y(e,t,"domainLookup",n,"DNS"),function(e,t,n){const s=n+u.msToSec(t.requestStart),i=n+u.msToSec(t.responseEnd),o=n+u.msToSec(t.responseStart);t.responseEnd&&(u.startAndEndSpan(e,s,i,{op:"browser.request",name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),u.startAndEndSpan(e,o,i,{op:"browser.response",name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,a);break;case"mark":case"paint":case"measure":{S(e,t,n,o,a);const r=p.getVisibilityWatcher(),c=t.startTime{r.setMeasurement(e,t.value,t.unit)})),e.setAttribute("performance.timeOrigin",a),e.setAttribute("performance.activationStart",l.getActivationStart()),function(e){h&&(i.DEBUG_BUILD&&s.logger.log("[Measurements] Adding LCP Data"),h.element&&e.setAttribute("lcp.element",s.htmlTreeAsString(h.element)),h.id&&e.setAttribute("lcp.id",h.id),h.url&&e.setAttribute("lcp.url",h.url.trim().slice(0,200)),e.setAttribute("lcp.size",h.size));_&&_.sources&&(i.DEBUG_BUILD&&s.logger.log("[Measurements] Adding CLS Data"),_.sources.forEach(((t,n)=>e.setAttribute(`cls.source.${n+1}`,s.htmlTreeAsString(t.node)))))}(e)}h=undefined,_=undefined,g={}},n.startTrackingInteractions=function(){c.addPerformanceInstrumentationHandler("event",(({entries:e})=>{if(r.getActiveSpan())for(const t of e)if("click"===t.name){const e=u.msToSec(s.browserPerformanceTimeOrigin+t.startTime),n=u.msToSec(t.duration),i={name:s.htmlTreeAsString(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},o=s.getComponentName(t.target);o&&(i.attributes["ui.component_name"]=o);const a=r.startInactiveSpan(i);a&&a.end(e+n)}}))},n.startTrackingLongAnimationFrames=function(){new PerformanceObserver((e=>{if(r.getActiveSpan())for(const t of e.getEntries()){if(!t.scripts[0])continue;const e=u.msToSec(s.browserPerformanceTimeOrigin+t.startTime),n=u.msToSec(t.duration),i={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},o=t.scripts[0],{invoker:a,invokerType:c,sourceURL:l,sourceFunctionName:d,sourceCharPosition:p}=o;i["browser.script.invoker"]=a,i["browser.script.invoker_type"]=c,l&&(i["code.filepath"]=l),d&&(i["code.function"]=d),-1!==p&&(i["browser.script.source_char_position"]=p);const f=r.startInactiveSpan({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:i});f&&f.end(e+n)}})).observe({type:"long-animation-frame",buffered:!0})},n.startTrackingLongTasks=function(){c.addPerformanceInstrumentationHandler("longtask",(({entries:e})=>{if(r.getActiveSpan())for(const t of e){const e=u.msToSec(s.browserPerformanceTimeOrigin+t.startTime),n=u.msToSec(t.duration),i=r.startInactiveSpan({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}});i&&i.end(e+n)}}))},n.startTrackingWebVitals=function({recordClsStandaloneSpans:e}){const t=u.getBrowserPerformanceAPI();if(t&&s.browserPerformanceTimeOrigin){t.mark&&o.WINDOW.performance.mark("sentry-tracing-init");const n=c.addFidInstrumentationHandler((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=u.msToSec(s.browserPerformanceTimeOrigin),r=u.msToSec(t.startTime);i.DEBUG_BUILD&&s.logger.log("[Measurements] Adding FID"),g.fid={value:e.value,unit:"millisecond"},g["mark.fid"]={value:n+r,unit:"second"}})),r=c.addLcpInstrumentationHandler((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(i.DEBUG_BUILD&&s.logger.log("[Measurements] Adding LCP"),g.lcp={value:e.value,unit:"millisecond"},h=t)}),!0),l=c.addTtfbInstrumentationHandler((({metric:e})=>{e.entries[e.entries.length-1]&&(i.DEBUG_BUILD&&s.logger.log("[Measurements] Adding TTFB"),g.ttfb={value:e.value,unit:"millisecond"})})),d=e?a.trackClsAsStandaloneSpan():c.addClsInstrumentationHandler((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(i.DEBUG_BUILD&&s.logger.log(`[Measurements] Adding CLS ${e.value}`),g.cls={value:e.value,unit:""},_=t)}),!0);return()=>{n(),r(),l(),d&&d()}}return()=>undefined}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/browserMetrics.js"}],[3053,{"../debug-build.js":3046,"./instrument.js":3055,"./utils.js":3056,"./web-vitals/lib/onHidden.js":3068,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var{_optionalChain:r}=e("@sentry/utils");Object.defineProperty(n,"__esModule",{value:!0});const s=e("@sentry/core"),i=e("@sentry/utils"),o=e("../debug-build.js"),a=e("./instrument.js"),c=e("./utils.js"),u=e("./web-vitals/lib/onHidden.js");n.trackClsAsStandaloneSpan=function(){let e,t,n=0;if(!function(){try{return r([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return;let l=!1;function d(){l||(l=!0,t&&function(e,t,n){o.DEBUG_BUILD&&i.logger.log(`Sending CLS span (${e})`);const a=c.msToSec((i.browserPerformanceTimeOrigin||0)+(r([t,"optionalAccess",e=>e.startTime])||0)),u=s.getCurrentScope().getScopeData().transactionName,l=t?i.htmlTreeAsString(r([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",d=i.dropUndefinedKeys({[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[s.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":n}),p=c.startStandaloneWebVitalSpan({name:l,transaction:u,attributes:d,startTime:a});r([p,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[s.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[s.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e})]),r([p,"optionalAccess",e=>e.end,"call",e=>e(a)])}(n,e,t),p())}const p=a.addClsInstrumentationHandler((({metric:t})=>{const r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)}),!0);u.onHidden((()=>{d()})),setTimeout((()=>{const e=s.getClient(),n=r([e,"optionalAccess",e=>e.on,"call",e=>e("startNavigationSpan",(()=>{d(),n&&n()}))]),i=s.getActiveSpan(),o=i&&s.getRootSpan(i),a=o&&s.spanToJSON(o);a&&"pageload"===a.op&&(t=o.spanContext().spanId)}),0)}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/cls.js"}],[3054,{"./instrument.js":3055,"./utils.js":3056,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var{_optionalChain:r}=e("@sentry/utils");Object.defineProperty(n,"__esModule",{value:!0});const s=e("@sentry/core"),i=e("@sentry/utils"),o=e("./instrument.js"),a=e("./utils.js"),c=[],u=new Map;const l={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};n.registerInpInteractionListener=function(e){const t=({entries:e})=>{const t=s.getActiveSpan(),n=t&&s.getRootSpan(t);e.forEach((e=>{if(!o.isPerformanceEventTiming(e)||!n)return;const t=e.interactionId;if(null!=t&&!u.has(t)){if(c.length>10){const e=c.shift();u.delete(e)}c.push(t),u.set(t,n)}}))};o.addPerformanceInstrumentationHandler("event",t),o.addPerformanceInstrumentationHandler("first-input",t)},n.startTrackingINP=function(){if(a.getBrowserPerformanceAPI()&&i.browserPerformanceTimeOrigin){const e=o.addInpInstrumentationHandler((({metric:e})=>{if(e.value==undefined)return;const t=e.entries.find((t=>t.duration===e.value&&l[t.name]));if(!t)return;const{interactionId:n}=t,o=l[t.name],c=a.msToSec(i.browserPerformanceTimeOrigin+t.startTime),d=a.msToSec(e.value),p=s.getActiveSpan(),f=p?s.getRootSpan(p):undefined,h=(null!=n?u.get(n):undefined)||f,_=h?s.spanToJSON(h).description:s.getCurrentScope().getScopeData().transactionName,m=i.htmlTreeAsString(t.target),g=i.dropUndefinedKeys({[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${o}`,[s.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration}),S=a.startStandaloneWebVitalSpan({name:m,transaction:_,attributes:g,startTime:c});r([S,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[s.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[s.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value})]),r([S,"optionalAccess",e=>e.end,"call",e=>e(c+d)])}));return()=>{e()}}return()=>undefined}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/inp.js"}],[3055,{"../debug-build.js":3046,"./web-vitals/getCLS.js":3057,"./web-vitals/getFID.js":3058,"./web-vitals/getINP.js":3059,"./web-vitals/getLCP.js":3060,"./web-vitals/lib/observe.js":3067,"./web-vitals/onTTFB.js":3073,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),i=e("./web-vitals/getCLS.js"),o=e("./web-vitals/getFID.js"),a=e("./web-vitals/getINP.js"),c=e("./web-vitals/getLCP.js"),u=e("./web-vitals/lib/observe.js"),l=e("./web-vitals/onTTFB.js"),d={},p={};let f,h,_,m,g;function S(e,t){const n=d[e];if(n&&n.length)for(const i of n)try{i(t)}catch(t){s.DEBUG_BUILD&&r.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${r.getFunctionName(i)}\nError:`,t)}}function y(){return i.onCLS((e=>{S("cls",{metric:e}),f=e}),{reportAllChanges:!0})}function E(){return o.onFID((e=>{S("fid",{metric:e}),h=e}))}function b(){return c.onLCP((e=>{S("lcp",{metric:e}),_=e}),{reportAllChanges:!0})}function T(){return l.onTTFB((e=>{S("ttfb",{metric:e}),m=e}))}function R(){return a.onINP((e=>{S("inp",{metric:e}),g=e}))}function I(e,t,n,r,s=!1){let i;return v(e,t),p[e]||(i=n(),p[e]=!0),r&&t({metric:r}),O(e,t,s?i:undefined)}function v(e,t){d[e]=d[e]||[],d[e].push(t)}function O(e,t,n){return()=>{n&&n();const r=d[e];if(!r)return;const s=r.indexOf(t);-1!==s&&r.splice(s,1)}}n.addClsInstrumentationHandler=function(e,t=!1){return I("cls",e,y,f,t)},n.addFidInstrumentationHandler=function(e){return I("fid",e,E,h)},n.addInpInstrumentationHandler=function(e){return I("inp",e,R,g)},n.addLcpInstrumentationHandler=function(e,t=!1){return I("lcp",e,b,_,t)},n.addPerformanceInstrumentationHandler=function(e,t){return v(e,t),p[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);u.observe(e,(t=>{S(e,{entries:t})}),t)}(e),p[e]=!0),O(e,t)},n.addTtfbInstrumentationHandler=function(e){return I("ttfb",e,T,m)},n.isPerformanceEventTiming=function(e){return"duration"in e}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/instrument.js"}],[3056,{"../types.js":3074,"@sentry/core":3123},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("../types.js");n.getBrowserPerformanceAPI=function(){return s.WINDOW&&s.WINDOW.addEventListener&&s.WINDOW.performance},n.isMeasurementValue=function(e){return"number"==typeof e&&isFinite(e)},n.msToSec=function(e){return e/1e3},n.startAndEndSpan=function(e,t,n,{...s}){const i=r.spanToJSON(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),r.withActiveSpan(e,(()=>{const e=r.startInactiveSpan({startTime:t,...s});return e&&e.end(n),e}))},n.startStandaloneWebVitalSpan=function(e){const t=r.getClient();if(!t)return;const{name:n,transaction:i,attributes:o,startTime:a}=e,{release:c,environment:u}=t.getOptions(),l=t.getIntegrationByName("Replay"),d=l&&l.getReplayId(),p=r.getCurrentScope(),f=p.getUser(),h=f!==undefined?f.email||f.id||f.ip_address:undefined;let _;try{_=p.getScopeData().contexts.profile.profile_id}catch(e){}const m={release:c,environment:u,user:h||undefined,profile_id:_||undefined,replay_id:d||undefined,transaction:i,"user_agent.original":s.WINDOW.navigator&&s.WINDOW.navigator.userAgent,...o};return r.startInactiveSpan({name:n,attributes:m,startTime:a,experimental:{standalone:!0}})}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/utils.js"}],[3057,{"./lib/bindReporter.js":3061,"./lib/initMetric.js":3066,"./lib/observe.js":3067,"./lib/onHidden.js":3068,"./lib/runOnce.js":3070,"./onFCP.js":3072},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./lib/bindReporter.js"),s=e("./lib/initMetric.js"),i=e("./lib/observe.js"),o=e("./lib/onHidden.js"),a=e("./lib/runOnce.js"),c=e("./onFCP.js"),u=[.1,.25];n.CLSThresholds=u,n.onCLS=(e,t={})=>{c.onFCP(a.runOnce((()=>{const n=s.initMetric("CLS",0);let a,c=0,l=[];const d=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=l[0],n=l[l.length-1];c&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(c+=e.value,l.push(e)):(c=e.value,l=[e])}})),c>n.value&&(n.value=c,n.entries=l,a())},p=i.observe("layout-shift",d);p&&(a=r.bindReporter(e,n,u,t.reportAllChanges),o.onHidden((()=>{d(p.takeRecords()),a(!0)})),setTimeout(a,0))})))}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/getCLS.js"}],[3058,{"./lib/bindReporter.js":3061,"./lib/getVisibilityWatcher.js":3065,"./lib/initMetric.js":3066,"./lib/observe.js":3067,"./lib/onHidden.js":3068,"./lib/runOnce.js":3070,"./lib/whenActivated.js":3071},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./lib/bindReporter.js"),s=e("./lib/getVisibilityWatcher.js"),i=e("./lib/initMetric.js"),o=e("./lib/observe.js"),a=e("./lib/onHidden.js"),c=e("./lib/runOnce.js"),u=e("./lib/whenActivated.js"),l=[100,300];n.FIDThresholds=l,n.onFID=(e,t={})=>{u.whenActivated((()=>{const n=s.getVisibilityWatcher(),u=i.initMetric("FID");let d;const p=e=>{e.startTime{e.forEach(p)},h=o.observe("first-input",f);d=r.bindReporter(e,u,l,t.reportAllChanges),h&&a.onHidden(c.runOnce((()=>{f(h.takeRecords()),h.disconnect()})))}))}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/getFID.js"}],[3059,{"../../types.js":3074,"./lib/bindReporter.js":3061,"./lib/initMetric.js":3066,"./lib/observe.js":3067,"./lib/onHidden.js":3068,"./lib/polyfills/interactionCountPolyfill.js":3069,"./lib/whenActivated.js":3071},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../types.js"),s=e("./lib/bindReporter.js"),i=e("./lib/initMetric.js"),o=e("./lib/observe.js"),a=e("./lib/onHidden.js"),c=e("./lib/polyfills/interactionCountPolyfill.js"),u=e("./lib/whenActivated.js"),l=[200,500],d=()=>c.getInteractionCount()-0,p=[],f={},h=e=>{const t=p[p.length-1],n=f[e.interactionId];if(n||p.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};f[t.id]=t,p.push(t)}p.sort(((e,t)=>t.latency-e.latency)),p.splice(10).forEach((e=>{delete f[e.id]}))}};n.INPThresholds=l,n.onINP=(e,t={})=>{u.whenActivated((()=>{c.initInteractionCountPolyfill();const n=i.initMetric("INP");let u;const f=e=>{e.forEach((e=>{if(e.interactionId&&h(e),"first-input"===e.entryType){!p.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&h(e)}}));const t=(()=>{const e=Math.min(p.length-1,Math.floor(d()/50));return p[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,u())},_=o.observe("event",f,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});u=s.bindReporter(e,n,l,t.reportAllChanges),_&&("PerformanceEventTiming"in r.WINDOW&&"interactionId"in PerformanceEventTiming.prototype&&_.observe({type:"first-input",buffered:!0}),a.onHidden((()=>{f(_.takeRecords()),n.value<0&&d()>0&&(n.value=0,n.entries=[]),u(!0)})))}))}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/getINP.js"}],[3060,{"../../types.js":3074,"./lib/bindReporter.js":3061,"./lib/getActivationStart.js":3063,"./lib/getVisibilityWatcher.js":3065,"./lib/initMetric.js":3066,"./lib/observe.js":3067,"./lib/onHidden.js":3068,"./lib/runOnce.js":3070,"./lib/whenActivated.js":3071},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../types.js"),s=e("./lib/bindReporter.js"),i=e("./lib/getActivationStart.js"),o=e("./lib/getVisibilityWatcher.js"),a=e("./lib/initMetric.js"),c=e("./lib/observe.js"),u=e("./lib/onHidden.js"),l=e("./lib/runOnce.js"),d=e("./lib/whenActivated.js"),p=[2500,4e3],f={};n.LCPThresholds=p,n.onLCP=(e,t={})=>{d.whenActivated((()=>{const n=o.getVisibilityWatcher(),d=a.initMetric("LCP");let h;const _=e=>{const t=e[e.length-1];t&&t.startTime{f[d.id]||(_(m.takeRecords()),m.disconnect(),f[d.id]=!0,h(!0))}));["keydown","click"].forEach((e=>{r.WINDOW.document&&addEventListener(e,(()=>setTimeout(n,0)),!0)})),u.onHidden(n)}}))}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/getLCP.js"}],[3061,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.bindReporter=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s||0),(i||s===undefined)&&(s=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/bindReporter.js"}],[3062,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.generateUniqueID=()=>`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/generateUniqueID.js"}],[3063,{"./getNavigationEntry.js":3064},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./getNavigationEntry.js");n.getActivationStart=()=>{const e=r.getNavigationEntry();return e&&e.activationStart||0}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/getActivationStart.js"}],[3064,{"../../../types.js":3074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js");n.getNavigationEntry=()=>r.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/getNavigationEntry.js"}],[3065,{"../../../types.js":3074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js");let s=-1;const i=e=>{"hidden"===r.WINDOW.document.visibilityState&&s>-1&&(s="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",i,!0),removeEventListener("prerenderingchange",i,!0))};n.getVisibilityWatcher=()=>(r.WINDOW.document&&s<0&&(s="hidden"!==r.WINDOW.document.visibilityState||r.WINDOW.document.prerendering?Infinity:0,addEventListener("visibilitychange",i,!0),addEventListener("prerenderingchange",i,!0)),{get firstHiddenTime(){return s}})}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/getVisibilityWatcher.js"}],[3066,{"../../../types.js":3074,"./generateUniqueID.js":3062,"./getActivationStart.js":3063,"./getNavigationEntry.js":3064},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js"),s=e("./generateUniqueID.js"),i=e("./getActivationStart.js"),o=e("./getNavigationEntry.js");n.initMetric=(e,t)=>{const n=o.getNavigationEntry();let a="navigate";n&&(r.WINDOW.document&&r.WINDOW.document.prerendering||i.getActivationStart()>0?a="prerender":r.WINDOW.document&&r.WINDOW.document.wasDiscarded?a="restore":n.type&&(a=n.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:s.generateUniqueID(),navigationType:a}}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/initMetric.js"}],[3067,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.observe=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/observe.js"}],[3068,{"../../../types.js":3074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js");n.onHidden=e=>{const t=t=>{("pagehide"===t.type||r.WINDOW.document&&"hidden"===r.WINDOW.document.visibilityState)&&e(t)};r.WINDOW.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/onHidden.js"}],[3069,{"../observe.js":3067},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../observe.js");let s=0,i=Infinity,o=0;const a=e=>{e.forEach((e=>{e.interactionId&&(i=Math.min(i,e.interactionId),o=Math.max(o,e.interactionId),s=o?(o-i)/7+1:0)}))};let c;n.getInteractionCount=()=>c?s:performance.interactionCount||0,n.initInteractionCountPolyfill=()=>{"interactionCount"in performance||c||(c=r.observe("event",a,{type:"event",buffered:!0,durationThreshold:0}))}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.js"}],[3070,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.runOnce=e=>{let t=!1;return n=>{t||(e(n),t=!0)}}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/runOnce.js"}],[3071,{"../../../types.js":3074},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js");n.whenActivated=e=>{r.WINDOW.document&&r.WINDOW.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/lib/whenActivated.js"}],[3072,{"./lib/bindReporter.js":3061,"./lib/getActivationStart.js":3063,"./lib/getVisibilityWatcher.js":3065,"./lib/initMetric.js":3066,"./lib/observe.js":3067,"./lib/whenActivated.js":3071},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./lib/bindReporter.js"),s=e("./lib/getActivationStart.js"),i=e("./lib/getVisibilityWatcher.js"),o=e("./lib/initMetric.js"),a=e("./lib/observe.js"),c=e("./lib/whenActivated.js"),u=[1800,3e3];n.FCPThresholds=u,n.onFCP=(e,t={})=>{c.whenActivated((()=>{const n=i.getVisibilityWatcher(),c=o.initMetric("FCP");let l;const d=a.observe("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(d.disconnect(),e.startTime@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/onFCP.js"}],[3073,{"../../types.js":3074,"./lib/bindReporter.js":3061,"./lib/getActivationStart.js":3063,"./lib/getNavigationEntry.js":3064,"./lib/initMetric.js":3066,"./lib/whenActivated.js":3071},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../types.js"),s=e("./lib/bindReporter.js"),i=e("./lib/getActivationStart.js"),o=e("./lib/getNavigationEntry.js"),a=e("./lib/initMetric.js"),c=e("./lib/whenActivated.js"),u=[800,1800],l=e=>{r.WINDOW.document&&r.WINDOW.document.prerendering?c.whenActivated((()=>l(e))):r.WINDOW.document&&"complete"!==r.WINDOW.document.readyState?addEventListener("load",(()=>l(e)),!0):setTimeout(e,0)};n.TTFBThresholds=u,n.onTTFB=(e,t={})=>{const n=a.initMetric("TTFB"),r=s.bindReporter(e,n,u,t.reportAllChanges);l((()=>{const e=o.getNavigationEntry();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-i.getActivationStart(),0),n.entries=[e],r(!0)}}))}}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/metrics/web-vitals/onTTFB.js"}],[3074,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils").GLOBAL_OBJ;n.WINDOW=r}}},{package:"@sentry/browser>@sentry-internal/browser-utils",file:"node_modules/@sentry-internal/browser-utils/build/cjs/types.js"}],[3075,{"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=s.GLOBAL_OBJ,o=i.document,a=i.navigator,c="Report a Bug",u="widget",l=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=r.getClient();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&r.getCurrentScope().setTags(e.tags);const i=r.captureFeedback({source:"api",url:s.getLocationHref(),...e},t);return new Promise(((e,t)=>{const r=setTimeout((()=>t("Unable to determine if Feedback was correctly sent.")),5e3),s=n.on("afterSendEvent",((n,o)=>{if(n.event_id===i)return clearTimeout(r),s(),o&&"number"==typeof o.statusCode&&o.statusCode>=200&&o.statusCode<300&&e(i),o&&"number"==typeof o.statusCode&&0===o.statusCode?t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):o&&"number"==typeof o.statusCode&&403===o.statusCode?t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")}))}))},d="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function p(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function f(e,t){return Object.entries(t).forEach((([t,n])=>{e.setAttributeNS(null,t,n)})),e}const h=20,_="http://www.w3.org/2000/svg";function m({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=o.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||c,s.appendChild(function(){const e=e=>i.document.createElementNS(_,e),t=f(e("svg"),{width:`${h}`,height:`${h}`,viewBox:`0 0 ${h} ${h}`,fill:"var(--actor-color, var(--foreground))"}),n=f(e("g"),{clipPath:"url(#clip0_57_80)"}),r=f(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const s=e("defs"),o=f(e("clipPath"),{id:"clip0_57_80"}),a=f(e("rect"),{width:`${h}`,height:`${h}`,fill:"white"});return o.appendChild(a),s.appendChild(o),t.appendChild(s).appendChild(o).appendChild(a),t}()),e){const t=o.createElement("span");t.appendChild(o.createTextNode(e)),s.appendChild(t)}const a=function(e){const t=o.createElement("style");return t.textContent='\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n',e&&t.setAttribute("nonce",e),t}(r);return{el:s,appendToDom(){n.appendChild(a),n.appendChild(s)},removeFromDom(){n.removeChild(s),n.removeChild(a)},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const g="rgba(88, 74, 192, 1)",S={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:g,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},y={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:g,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function E(e){return`\n --foreground: ${e.foreground};\n --background: ${e.background};\n --accent-foreground: ${e.accentForeground};\n --accent-background: ${e.accentBackground};\n --success-color: ${e.successColor};\n --error-color: ${e.errorColor};\n --border: ${e.border};\n --box-shadow: ${e.boxShadow};\n --outline: ${e.outline};\n --interactive-filter: ${e.interactiveFilter};\n `}var b,T,R,I,v,O,A,w={},N=[],C=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,j=Array.isArray;function k(e,t){for(var n in t)e[n]=t[n];return e}function D(e){var t=e.parentNode;t&&t.removeChild(e)}function x(e,t,n){var r,s,i,o={};for(i in t)"key"==i?r=t[i]:"ref"==i?s=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?b.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===o[i]&&(o[i]=e.defaultProps[i]);return L(e,o,r,s,null)}function L(e,t,n,r,s){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++R:s,__i:-1,__u:0};return null==s&&null!=T.vnode&&T.vnode(i),i}function M(e){return e.children}function P(e,t){this.props=e,this.context=t}function U(e,t){if(null==t)return e.__?U(e.__,e.__i+1):null;for(var n;tn?(J(r,t,s),s.length=r.length=0,t=void 0,I.sort(A)):t&&T.__c&&T.__c(t,N));t&&J(r,t,s),G.__r=0}function z(e,t,n,r,s,i,o,a,c,u,l){var d,p,f,h,_,m=r&&r.__k||N,g=t.length;for(n.__d=c,function(e,t,n){var r,s,i,o,a,c=t.length,u=n.length,l=u,d=0;for(e.__k=[],r=0;r0?L(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)?(s.__=e,s.__b=e.__b+1,a=$(s,n,o=r+d,l),s.__i=a,i=null,-1!==a&&(l--,(i=n[a])&&(i.__u|=131072)),null==i||null===i.__v?(-1==a&&d--,"function"!=typeof s.type&&(s.__u|=65536)):a!==o&&(a===o+1?d++:a>o?l>c-o?d+=a-o:d--:d=a(null==c||131072&c.__u?0:1))for(;o>=0||a=0){if((c=t[o])&&!(131072&c.__u)&&s==c.key&&i===c.type)return o;o--}if(a=n.__.length&&n.__.push({__V:ce}),n.__[e]}function ge(e){return oe=1,Se(we,e)}function Se(e,t,n){var r=me(ne++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):we(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=re,!re.u)){var s=function(e,t,n){if(!r.__c.__H)return!0;var s=r.__c.__H.__.filter((function(e){return!!e.__c}));if(s.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var o=!1;return s.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};re.u=!0;var i=re.shouldComponentUpdate,o=re.componentWillUpdate;re.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,s(e,t,n),i=r}o&&o.call(this,e,t,n)},re.shouldComponentUpdate=s}return r.__N||r.__}function ye(e,t){var n=me(ne++,4);!ue.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,re.__h.push(n))}function Ee(e,t){var n=me(ne++,7);return Ae(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function be(e,t){return oe=8,Ee((function(){return e}),t)}function Te(){for(var e;e=ae.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ve),e.__H.__h.forEach(Oe),e.__H.__h=[]}catch(t){e.__H.__h=[],ue.__e(t,e.__v)}}ue.__b=function(e){re=null,le&&le(e)},ue.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_e&&_e(e,t)},ue.__r=function(e){de&&de(e),ne=0;var t=(re=e.__c).__H;t&&(se===re?(t.__h=[],re.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ce,e.__N=e.i=void 0}))):(t.__h.forEach(ve),t.__h.forEach(Oe),t.__h=[],ne=0)),se=re},ue.diffed=function(e){pe&&pe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ae.push(t)&&ie===ue.requestAnimationFrame||((ie=ue.requestAnimationFrame)||Ie)(Te)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ce&&(e.__=e.__V),e.i=void 0,e.__V=ce}))),se=re=null},ue.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ve),e.__h=e.__h.filter((function(e){return!e.__||Oe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ue.__e(n,e.__v)}})),fe&&fe(e,t)},ue.unmount=function(e){he&&he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ve(e)}catch(e){t=e}})),n.__H=void 0,t&&ue.__e(t,n.__v))};var Re="function"==typeof requestAnimationFrame;function Ie(e){var t,n=function(){clearTimeout(r),Re&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Re&&(t=requestAnimationFrame(n))}function ve(e){var t=re,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),re=t}function Oe(e){var t=re;e.__c=e.__(),re=t}function Ae(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}const Ne={__proto__:null,useCallback:be,useContext:function(e){var t=re.context[e.__c],n=me(ne++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(re)),t.props.value):e.__},useDebugValue:function(e,t){ue.useDebugValue&&ue.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=me(ne++,3);!ue.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,re.__H.__h.push(n))},useErrorBoundary:function(e){var t=me(ne++,10),n=ge();return t.__=e,re.componentDidCatch||(re.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=me(ne++,11);if(!e.__){for(var t=re.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){oe=6,ye((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useLayoutEffect:ye,useMemo:Ee,useReducer:Se,useRef:function(e){return oe=5,Ee((function(){return{current:e}}),[])},useState:ge},Ce="http://www.w3.org/2000/svg";function je(){const e=e=>o.createElementNS(Ce,e),t=f(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=f(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}const ke="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function De({options:e}){const t=Ee((()=>({__html:je().outerHTML})),[]);return x("h2",{class:"dialog__header",__self:this,__source:{fileName:ke,lineNumber:16}},e.formTitle,e.showBranding?x("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:ke,lineNumber:19}}):null)}const xe="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function Le(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function Me({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:o,onSubmitError:a,showEmail:c,showName:l,screenshotInput:p}){const{tags:f,addScreenshotButtonLabel:h,removeScreenshotButtonLabel:_,cancelButtonLabel:m,emailLabel:g,emailPlaceholder:S,isEmailRequired:y,isNameRequired:E,messageLabel:b,messagePlaceholder:T,nameLabel:R,namePlaceholder:I,submitButtonLabel:v,isRequiredLabel:O}=e,[A,w]=ge(null),[N,C]=ge(!1),j=p&&p.input,[k,D]=ge(null),L=be((e=>{D(e),C(!1)}),[]),M=be((e=>{const t=function(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:g,isEmailRequired:y,isNameRequired:E,messageLabel:b,nameLabel:R});return t.length>0?w(`Please enter in the following required fields: ${t.join(", ")}`):w(null),0===t.length}),[g,y,E,b,R]),P=be((async e=>{try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(p&&N?p.value():undefined),r={name:Le(t,"name"),email:Le(t,"email"),message:Le(t,"message"),attachments:n?[n]:undefined};if(!M(r))return;try{await i({name:r.name,email:r.email,message:r.message,source:u,tags:f},{attachments:r.attachments}),o(r)}catch(e){d&&s.logger.error(e),w(e),a(e)}}catch(e){}}),[p&&N,o,a]);return x("form",{class:"form",onSubmit:P,__self:this,__source:{fileName:xe,lineNumber:144}},j&&N?x(j,{onError:L,__self:this,__source:{fileName:xe,lineNumber:146}}):null,x("div",{class:"form__right","data-sentry-feedback":!0,__self:this,__source:{fileName:xe,lineNumber:149}},x("div",{class:"form__top",__self:this,__source:{fileName:xe,lineNumber:150}},A?x("div",{class:"form__error-container",__self:this,__source:{fileName:xe,lineNumber:151}},A):null,l?x("label",{for:"name",class:"form__label",__self:this,__source:{fileName:xe,lineNumber:154}},x(Pe,{label:R,isRequiredLabel:O,isRequired:E,__self:this,__source:{fileName:xe,lineNumber:155}}),x("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:I,required:E,type:"text",__self:this,__source:{fileName:xe,lineNumber:156}})):x("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden",__self:this,__source:{fileName:xe,lineNumber:167}}),c?x("label",{for:"email",class:"form__label",__self:this,__source:{fileName:xe,lineNumber:171}},x(Pe,{label:g,isRequiredLabel:O,isRequired:y,__self:this,__source:{fileName:xe,lineNumber:172}}),x("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:S,required:y,type:"email",__self:this,__source:{fileName:xe,lineNumber:173}})):x("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:xe,lineNumber:184}}),x("label",{for:"message",class:"form__label",__self:this,__source:{fileName:xe,lineNumber:187}},x(Pe,{label:b,isRequiredLabel:O,isRequired:!0,__self:this,__source:{fileName:xe,lineNumber:188}}),x("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:T,required:!0,rows:5,__self:this,__source:{fileName:xe,lineNumber:189}})),j?x("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:xe,lineNumber:201}},x("button",{class:"btn btn--default",type:"button",onClick:()=>{D(null),C((e=>!e))},__self:this,__source:{fileName:xe,lineNumber:202}},N?_:h),k?x("div",{class:"form__error-container",__self:this,__source:{fileName:xe,lineNumber:212}},k.message):null):null),x("div",{class:"btn-group",__self:this,__source:{fileName:xe,lineNumber:216}},x("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:xe,lineNumber:217}},v),x("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:xe,lineNumber:220}},m))))}function Pe({label:e,isRequired:t,isRequiredLabel:n}){return x("span",{class:"form__label__text",__self:this,__source:{fileName:xe,lineNumber:239}},e,t&&x("span",{class:"form__label__text--required",__self:this,__source:{fileName:xe,lineNumber:241}},n))}const Ue=16,Be=17,Fe="http://www.w3.org/2000/svg";function He(){const e=e=>i.document.createElementNS(Fe,e),t=f(e("svg"),{width:`${Ue}`,height:`${Be}`,viewBox:`0 0 ${Ue} ${Be}`,fill:"inherit"}),n=f(e("g"),{clipPath:"url(#clip0_57_156)"}),r=f(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=f(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(s,r);const o=e("defs"),a=f(e("clipPath"),{id:"clip0_57_156"}),c=f(e("rect"),{width:`${Ue}`,height:`${Ue}`,fill:"white",transform:"translate(0 0.5)"});return a.appendChild(c),o.appendChild(a),t.appendChild(o).appendChild(a).appendChild(c),t}const Ge="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function ze({open:e,onFormSubmitted:t,...n}){const r=n.options,s=Ee((()=>({__html:He().outerHTML})),[]),[i,o]=ge(null),a=be((()=>{i&&(clearTimeout(i),o(null)),t()}),[i]),c=be((e=>{n.onSubmitSuccess(e),o(setTimeout((()=>{t(),o(null)}),5e3))}),[t]);return x(M,{__self:this,__source:{fileName:Ge,lineNumber:48}},i?x("div",{class:"success__position",onClick:a,__self:this,__source:{fileName:Ge,lineNumber:50}},x("div",{class:"success__content",__self:this,__source:{fileName:Ge,lineNumber:51}},r.successMessageText,x("span",{class:"success__icon",dangerouslySetInnerHTML:s,__self:this,__source:{fileName:Ge,lineNumber:53}}))):x("dialog",{class:"dialog",onClick:r.onFormClose,open:e,__self:this,__source:{fileName:Ge,lineNumber:57}},x("div",{class:"dialog__position",__self:this,__source:{fileName:Ge,lineNumber:58}},x("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()},__self:this,__source:{fileName:Ge,lineNumber:59}},x(De,{options:r,__self:this,__source:{fileName:Ge,lineNumber:66}}),x(Me,{...n,onSubmitSuccess:c,__self:this,__source:{fileName:Ge,lineNumber:67}})))))}const We="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx";function $e(e){const t=o.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`\n.editor {\n padding: 10px;\n padding-top: 65px;\n padding-bottom: 65px;\n flex-grow: 1;\n\n background-color: ${n};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${n} 8px,\n ${n} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${r} 15px,\n ${r} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container canvas {\n object-fit: contain;\n position: relative;\n}\n\n.editor__crop-btn-group {\n padding: 8px;\n gap: 8px;\n border-radius: var(--menu-border-radius, 6px);\n background: var(--button-primary-background, var(--background));\n width: 175px;\n position: absolute;\n}\n\n.editor__crop-corner {\n width: 30px;\n height: 30px;\n position: absolute;\n background: none;\n border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n cursor: nwse-resize;\n border-right: none;\n border-bottom: none;\n}\n.editor__crop-corner--top-right {\n cursor: nesw-resize;\n border-left: none;\n border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n cursor: nesw-resize;\n border-right: none;\n border-top: none;\n}\n.editor__crop-corner--bottom-right {\n cursor: nwse-resize;\n border-left: none;\n border-top: none;\n}\n`,e&&t.setAttribute("nonce",e),t}const Ve="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx",Ye=33,qe=i.devicePixelRatio,Xe=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),Ke=e=>{const t=e.clientHeight,n=e.clientWidth,r=e.width/e.height;let s=t*r,i=t;s>n&&(s=n,i=n/r);const o=(n-s)/2,a=(t-i)/2;return{startX:o,startY:a,endX:s+o,endY:i+a}};function Je({h:e,hooks:t,imageBuffer:n,dialog:r,options:s}){const c=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:s}){e.useEffect((()=>{(async()=>{t();const e=await a.mediaDevices.getDisplayMedia({video:{width:i.innerWidth*i.devicePixelRatio,height:i.innerHeight*i.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),s=o.createElement("video");await new Promise(((t,r)=>{s.srcObject=e,s.onloadedmetadata=()=>{n(s),e.getTracks().forEach((e=>e.stop())),t()},s.play().catch(r)})),r()})().catch(s)}),[])}}({hooks:t});return function({onError:a}){const u=t.useMemo((()=>({__html:$e(s.styleNonce).innerText})),[]),l=function({h:e}){return function({top:t,left:n,corner:r,onGrabButton:s}){return e("button",{class:`editor__crop-corner editor__crop-corner--${r} `,style:{top:t,left:n},onMouseDown:e=>{e.preventDefault(),s(e,r)},onClick:e=>{e.preventDefault()},__self:this,__source:{fileName:We,lineNumber:22}})}}({h:e}),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),[h,_]=t.useState({startX:0,startY:0,endX:0,endY:0}),[m,g]=t.useState(!1),[S,y]=t.useState(!1);function E(){const e=f.current,t=Xe(Ke(n));if(e){e.width=t.width*qe,e.height=t.height*qe,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`;const n=e.getContext("2d");n&&n.scale(qe,qe)}const r=p.current;r&&(r.style.width=`${t.width}px`,r.style.height=`${t.height}px`),_({startX:0,startY:0,endX:t.width,endY:t.height})}function b(e,t){g(!1),y(!0);const n=T(t),r=()=>{o.removeEventListener("mousemove",n),o.removeEventListener("mouseup",r),g(!0),y(!1)};o.addEventListener("mouseup",r),o.addEventListener("mousemove",n)}t.useEffect((()=>{i.addEventListener("resize",E,!1)}),[]),t.useEffect((()=>{const e=f.current;if(!e)return;const t=e.getContext("2d");if(!t)return;const r=Xe(Ke(n)),s=Xe(h);t.clearRect(0,0,r.width,r.height),t.fillStyle="rgba(0, 0, 0, 0.5)",t.fillRect(0,0,r.width,r.height),t.clearRect(s.x,s.y,s.width,s.height),t.strokeStyle="#ffffff",t.lineWidth=3,t.strokeRect(s.x+1,s.y+1,s.width-2,s.height-2),t.strokeStyle="#000000",t.lineWidth=1,t.strokeRect(s.x+3,s.y+3,s.width-6,s.height-6)}),[h]);const T=t.useCallback((e=>function(t){if(!f.current)return;const n=f.current,r=n.getBoundingClientRect(),s=t.clientX-r.x,i=t.clientY-r.y;switch(e){case"top-left":_((e=>({...e,startX:Math.min(Math.max(0,s),e.endX-Ye),startY:Math.min(Math.max(0,i),e.endY-Ye)})));break;case"top-right":_((e=>({...e,endX:Math.max(Math.min(s,n.width/qe),e.startX+Ye),startY:Math.min(Math.max(0,i),e.endY-Ye)})));break;case"bottom-left":_((e=>({...e,startX:Math.min(Math.max(0,s),e.endX-Ye),endY:Math.max(Math.min(i,n.height/qe),e.startY+Ye)})));break;case"bottom-right":_((e=>({...e,endX:Math.max(Math.min(s,n.width/qe),e.startX+Ye),endY:Math.max(Math.min(i,n.height/qe),e.startY+Ye)})))}}),[]),R=t.useRef({initialX:0,initialY:0});return c({onBeforeScreenshot:t.useCallback((()=>{r.el.style.display="none"}),[]),onScreenshot:t.useCallback((e=>{const t=n.getContext("2d");if(!t)throw new Error("Could not get canvas context");n.width=e.videoWidth,n.height=e.videoHeight,n.style.width="100%",n.style.height="100%",t.drawImage(e,0,0)}),[n]),onAfterScreenshot:t.useCallback((()=>{r.el.style.display="block";const e=d.current;e&&e.appendChild(n),E()}),[]),onError:t.useCallback((e=>{r.el.style.display="block",a(e)}),[])}),e("div",{class:"editor",__self:this,__source:{fileName:Ve,lineNumber:315}},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:u,__self:this,__source:{fileName:Ve,lineNumber:316}}),e("div",{class:"editor__canvas-container",ref:d,__self:this,__source:{fileName:Ve,lineNumber:317}},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:p,__self:this,__source:{fileName:Ve,lineNumber:318}},e("canvas",{onMouseDown:function(e){if(S)return;R.current={initialX:e.clientX,initialY:e.clientY};const t=e=>{const t=f.current;if(!t)return;const n=e.clientX-R.current.initialX,r=e.clientY-R.current.initialY;_((s=>{const i=Math.max(0,Math.min(s.startX+n,t.width/qe-(s.endX-s.startX))),o=Math.max(0,Math.min(s.startY+r,t.height/qe-(s.endY-s.startY))),a=i+(s.endX-s.startX),c=o+(s.endY-s.startY);return R.current.initialX=e.clientX,R.current.initialY=e.clientY,{startX:i,startY:o,endX:a,endY:c}}))},n=()=>{o.removeEventListener("mousemove",t),o.removeEventListener("mouseup",n)};o.addEventListener("mousemove",t),o.addEventListener("mouseup",n)},style:{position:"absolute",cursor:m?"move":"auto"},ref:f,__self:this,__source:{fileName:Ve,lineNumber:319}}),e(l,{left:h.startX-3,top:h.startY-3,onGrabButton:b,corner:"top-left",__self:this,__source:{fileName:Ve,lineNumber:324}}),e(l,{left:h.endX-30+3,top:h.startY-3,onGrabButton:b,corner:"top-right",__self:this,__source:{fileName:Ve,lineNumber:330}}),e(l,{left:h.startX-3,top:h.endY-30+3,onGrabButton:b,corner:"bottom-left",__self:this,__source:{fileName:Ve,lineNumber:336}}),e(l,{left:h.endX-30+3,top:h.endY-30+3,onGrabButton:b,corner:"bottom-right",__self:this,__source:{fileName:Ve,lineNumber:342}}),e("div",{style:{left:Math.max(0,h.endX-191),top:Math.max(0,h.endY+8),display:m?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:Ve,lineNumber:348}},e("button",{onClick:e=>{e.preventDefault(),f.current&&_({startX:0,startY:0,endX:f.current.width/qe,endY:f.current.height/qe}),g(!1)},class:"btn btn--default",__self:this,__source:{fileName:Ve,lineNumber:356}},s.cancelButtonLabel),e("button",{onClick:e=>{e.preventDefault(),function(){const e=o.createElement("canvas"),t=Xe(Ke(n)),r=Xe(h);e.width=r.width*qe,e.height=r.height*qe;const s=e.getContext("2d");s&&n&&s.drawImage(n,r.x/t.width*n.width,r.y/t.height*n.height,r.width/t.width*n.width,r.height/t.height*n.height,0,0,e.width,e.height);const i=n.getContext("2d");i&&(i.clearRect(0,0,n.width,n.height),n.width=e.width,n.height=e.height,n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,i.drawImage(e,0,0),E())}(),g(!1)},class:"btn btn--primary",__self:this,__source:{fileName:Ve,lineNumber:373}},s.confirmButtonLabel)))))}}n.buildFeedbackIntegration=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:i="sentry-feedback",autoInject:u=!0,showBranding:f=!0,isEmailRequired:h=!1,isNameRequired:_=!1,showEmail:g=!0,showName:b=!0,enableScreenshot:T=!0,useSentryUser:R={email:"email",name:"username"},tags:I,styleNonce:v,scriptNonce:O,colorScheme:A="system",themeLight:w={},themeDark:N={},addScreenshotButtonLabel:C="Add a screenshot",cancelButtonLabel:j="Cancel",confirmButtonLabel:k="Confirm",emailLabel:D="Email",emailPlaceholder:x="your.email@example.org",formTitle:L="Report a Bug",isRequiredLabel:M="(required)",messageLabel:P="Description",messagePlaceholder:U="What's the bug? What did you expect?",nameLabel:B="Name",namePlaceholder:F="Your Name",removeScreenshotButtonLabel:H="Remove screenshot",submitButtonLabel:G="Send Bug Report",successMessageText:z="Thank you for your report!",triggerLabel:W=c,triggerAriaLabel:$="",onFormOpen:V,onFormClose:Y,onSubmitSuccess:q,onSubmitError:X,onFormSubmitted:K}={})=>{const J={id:i,autoInject:u,showBranding:f,isEmailRequired:h,isNameRequired:_,showEmail:g,showName:b,enableScreenshot:T,useSentryUser:R,tags:I,styleNonce:v,scriptNonce:O,colorScheme:A,themeDark:N,themeLight:w,triggerLabel:W,triggerAriaLabel:$,cancelButtonLabel:j,submitButtonLabel:G,confirmButtonLabel:k,formTitle:L,emailLabel:D,emailPlaceholder:x,messageLabel:P,messagePlaceholder:U,nameLabel:B,namePlaceholder:F,successMessageText:z,isRequiredLabel:M,addScreenshotButtonLabel:C,removeScreenshotButtonLabel:H,onFormClose:Y,onFormOpen:V,onSubmitError:X,onSubmitSuccess:q,onFormSubmitted:K};let Z=null,Q=[];const ee=e=>{if(!Z){const t=o.createElement("div");t.id=String(e.id),o.body.appendChild(t),Z=t.attachShadow({mode:"open"}),Z.appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=o.createElement("style");return s.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${"system"!==e?"color-scheme: only light;":""}\n\n ${E("dark"===e?{...y,...t}:{...S,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${E({...y,...t})}\n }\n}`:""}\n}\n`,r&&s.setAttribute("nonce",r),s}(e))}return Z},te=async(t,n,s)=>{const i=r.getClient(),o=i&&i.getIntegrationByName(t);if(o)return o;const a=(n&&n()||await e(s,O))();return i&&i.addIntegration(a),a},ne=async e=>{const r=e.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a.userAgent)||/Macintosh/i.test(a.userAgent)&&a.maxTouchPoints&&a.maxTouchPoints>1||!isSecureContext),[i,o]=await Promise.all([te("FeedbackModal",t,"feedbackModalIntegration"),r?te("FeedbackScreenshot",n,"feedbackScreenshotIntegration"):undefined]);if(!i)throw d&&s.logger.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!");r&&!o&&d&&s.logger.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.");const c=i.createDialog({options:{...e,onFormClose:()=>{c&&c.close(),e.onFormClose&&e.onFormClose()},onFormSubmitted:()=>{c&&c.close(),e.onFormSubmitted&&e.onFormSubmitted()}},screenshotIntegration:r?o:undefined,sendFeedback:l,shadow:ee(e)});return c},re=(e,t={})=>{const n=p(J,t),r="string"==typeof e?o.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw d&&s.logger.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let i=null;const a=async()=>{i||(i=await ne({...n,onFormSubmitted:()=>{i&&i.removeFromDom(),n.onFormSubmitted&&n.onFormSubmitted()}})),i.appendToDom(),i.open()};r.addEventListener("click",a);const c=()=>{Q=Q.filter((e=>e!==c)),i&&i.removeFromDom(),i=null,r.removeEventListener("click",a)};return Q.push(c),c},se=(e={})=>{const t=p(J,e),n=ee(t),r=m({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:v});return re(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){s.isBrowser()&&J.autoInject&&("loading"===o.readyState?o.addEventListener("DOMContentLoaded",(()=>se().appendToDom())):se().appendToDom())},attachTo:re,createWidget(e={}){const t=se(p(J,e));return t.appendToDom(),t},createForm:async(e={})=>ne(p(J,e)),remove(){Z&&(Z.parentElement&&Z.parentElement.remove(),Z=null),Q.forEach((e=>e())),Q=[]}}},n.feedbackModalIntegration=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:s})=>{const i=s,a=e.useSentryUser,c=function(){const e=r.getCurrentScope().getUser(),t=r.getIsolationScope().getUser(),n=r.getGlobalScope().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),u=o.createElement("div"),l=function(e){const t=o.createElement("style");return t.textContent="\n:host {\n --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n\n\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n\n\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form__right {\n flex: 0 0 auto;\n width: var(--form-width, 272px);\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n}\n\n@media (max-width: 600px) {\n .form__right {\n width: var(--form-width, 100%);\n }\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(e.styleNonce);let d="";const p={get el(){return u},appendToDom(){i.contains(l)||i.contains(u)||(i.appendChild(l),i.appendChild(u))},removeFromDom(){i.removeChild(u),i.removeChild(l),o.body.style.overflow=d},open(){h(!0),e.onFormOpen&&e.onFormOpen(),d=o.body.style.overflow,o.body.style.overflow="hidden"},close(){h(!1),o.body.style.overflow=d}},f=t&&t.createInput({h:x,hooks:Ne,dialog:p,options:e}),h=t=>{!function(e,t,n){var r,s,i,o;T.__&&T.__(e,t),s=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],o=[],K(t,e=(!r&&n||t).__k=x(M,null,[e]),s||w,w,void 0!==t.ownerSVGElement,!r&&n?[n]:s?null:t.firstChild?b.call(t.childNodes):null,i,!r&&n?n:s?s.__e:t.firstChild,r,o),e.__d=void 0,J(i,e,o)}(x(ze,{options:e,screenshotInput:f,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:a&&c&&c[a.name]||"",defaultEmail:a&&c&&c[a.email]||"",onFormClose:()=>{h(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:t=>{h(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t,__self:undefined,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx",lineNumber:67}}),u)};return p}}),n.feedbackScreenshotIntegration=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=o.createElement("canvas");return{input:Je({h:e,hooks:t,imageBuffer:s,dialog:n,options:r}),value:async()=>{const e=await new Promise((e=>{s.toBlob(e,"image/png")}));if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}return undefined}}}}),n.getFeedback=function(){const e=r.getClient();return e&&e.getIntegrationByName("Feedback")},n.sendFeedback=l}}},{package:"@sentry/browser>@sentry-internal/feedback",file:"node_modules/@sentry-internal/feedback/build/npm/cjs/index.js"}],[3076,{"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var{_optionalChain:r}=e("@sentry/utils");Object.defineProperty(n,"__esModule",{value:!0});const s=e("@sentry/core");var i;function o(e,t,n=Infinity,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:o(e.parentNode,t,n,r+1):-1}function a(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}!function(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"}(i||(i={}));const c="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let u={map:{},getId:()=>(console.error(c),-1),getNode:()=>(console.error(c),null),removeNodeFromMap(){console.error(c)},has:()=>(console.error(c),!1),reset(){console.error(c)}};function l(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){m((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>l(e,t,i||{},!0)}function d(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch(e){return()=>{}}}function p(e,t,n,r,s){if(!e)return!1;const i=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}(e);if(!i)return!1;const c=a(t,n);if(!s){const e=r&&i.matches(r);return c(i)&&!e}const u=o(i,c);let l=-1;return!(u<0)&&(r&&(l=o(i,a(null,r))),u>-1&&l<0||u("map"===t&&console.error(c),Reflect.get(e,t,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());const f={};function h(e){const t=f[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return f[e]=r.bind(window)}function _(...e){return h("requestAnimationFrame")(...e)}function m(...e){return h("setTimeout")(...e)}var g=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(g||{});let S;function y(e){S=e}const E=e=>{if(!S)return e;return(...t)=>{try{return e(...t)}catch(e){if(S&&!0===S(e))return()=>{};throw e}}};for(var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T="undefined"==typeof Uint8Array?[]:new Uint8Array(256),R=0;R<64;R++)T[b.charCodeAt(R)]=R;const I=new Map;const v=(e,t,n)=>{if(!e||!w(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=I.get(e);return n||(n=new Map,I.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let s=r.indexOf(e);return-1===s&&(s=r.length,r.push(e)),s};function O(e,t,n){if(e instanceof Array)return e.map((e=>O(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),r=n.length,s="";for(t=0;t>2],s+=b[(3&n[t])<<4|n[t+1]>>4],s+=b[(15&n[t+1])<<2|n[t+2]>>6],s+=b[63&n[t+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[O(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[O(e.data,t,n),e.width,e.height]}}if(w(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:v(e,t,n)}}return e}const A=(e,t,n)=>e.map((e=>O(e,t,n))),w=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function N(e,t,n,r,s){const i=[];try{const o=d(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i,...o){if(!p(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=e),s&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){const e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...o])}}));i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((e=>e()))}}function C(e,t,n,r,s,i,o,a){const c=[],u=Object.getOwnPropertyNames(e);for(const o of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;const u=d(e,o,(function(e){return function(...c){const u=e.apply(this,c);if(v(u,a,this),"tagName"in this.canvas&&!p(this.canvas,r,s,i,!0)){const e=A(c,a,this),r={type:t,property:o,args:e};n(this.canvas,r)}return u}}));c.push(u)}catch(r){const s=l(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});c.push(s)}return c}class j{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,r([this,"access",e=>e.worker,"optionalAccess",e=>e.terminate,"call",e=>e()]),this.worker=null,this.snapshotInProgressMap=new Map,(this.options.recordCanvas&&"number"==typeof this.options.sampling||this.options.enableManualSnapshot)&&(this.worker=this.initFPSWorker())}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:n,blockClass:r,blockSelector:s,unblockSelector:i,maxCanvasSize:o,recordCanvas:a,dataURLOptions:c,errorHandler:u}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,u&&y(u),(a&&"number"==typeof t||e.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(n),e.enableManualSnapshot||E((()=>{a&&"all"===t&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,s,i,o,{dataURLOptions:c})}))()}addWindow(e){const{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:s,recordCanvas:i,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));E((()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,n,r,s),i&&"number"==typeof t){const t=N(e,n,r,s,!0);this.restoreHandlers.push((()=>{t()}))}}))(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;const{base64:r,type:s,width:i,height:o}=t;this.mutationCb({id:n,type:g["2D"],commands:[{property:"clearRect",args:[0,0,i,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:s}]},0,0,i,o]}]})},e}initCanvasFPSObserver(e,t,n,r,s,i){const o=this.takeSnapshot(!1,e,t,n,r,s,i.dataURLOptions);this.restoreHandlers.push((()=>{cancelAnimationFrame(o)}))}initCanvasMutationObserver(e,t,n,r){const s=N(e,t,n,r,!1),i=function(e,t,n,r,s){const i=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of o)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const o=d(t.CanvasRenderingContext2D.prototype,a,(function(i){return function(...o){return p(this.canvas,n,r,s,!0)||m((()=>{const n=A(o,t,this);e(this.canvas,{type:g["2D"],property:a,args:n})}),0),i.apply(this,o)}}));i.push(o)}catch(n){const r=l(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:g["2D"],property:a,args:[t],setter:!0})}});i.push(r)}return()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r),o=function(e,t,n,r,s,i){const o=[];return o.push(...C(t.WebGLRenderingContext.prototype,g.WebGL,e,n,r,s,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...C(t.WebGL2RenderingContext.prototype,g.WebGL2,e,n,r,s,0,t)),()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push((()=>{s(),i(),o()}))}snapshot(e){const{options:t}=this,n=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.restoreHandlers.push((()=>{cancelAnimationFrame(n)}))}takeSnapshot(e,t,n,s,i,o,a,c){const u=1e3/t;let l,d=0;const f=e=>{if(e)return[e];const t=[],r=e=>{e.querySelectorAll("canvas").forEach((e=>{p(e,n,s,i,!0)||t.push(e)}))};for(const e of this.windows){const t=e.deref();t&&r(t.document)}for(const e of this.shadowDoms){const t=e.deref();t&&r(t)}return t},h=t=>{this.windows.length&&(d&&t-d{if(!this.mirror.hasNode(t))return;const n=this.mirror.getId(t);if(!this.snapshotInProgressMap.get(n)&&t.width&&t.height){if(this.snapshotInProgressMap.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){const e=t.getContext(t.__context);!1===r([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then((e=>{r([this,"access",e=>e.worker,"optionalAccess",e=>e.postMessage,"call",r=>r({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:a,maxCanvasSize:o},[e])])})).catch((e=>{E((()=>{throw e}))()}))}})),e||(l=_(h))))};return l=_(h),l}startPendingCanvasMutationFlusher(){_((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,_(e)};_(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),_((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map((e=>{const{type:t,...n}=e;return n})),{type:s}=n[0];this.mutationCb({id:t,type:s,commands:r}),this.pendingCanvasMutations.delete(e)}}const k={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},D=1280,x=s.defineIntegration(((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,D):D,n?Math.min(n,D):D]};let s;const i=new Promise((e=>s=e));return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new j({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}});return s(r),r},...k[e||"medium"]||k.medium}},async snapshot(e){(await i).snapshot(e)}}}));n.replayCanvasIntegration=x}}},{package:"@sentry/browser>@sentry-internal/replay-canvas",file:"node_modules/@sentry-internal/replay-canvas/build/npm/cjs/index.js"}],[3077,{"@sentry-internal/browser-utils":3048,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var{_nullishCoalesce:r,_optionalChain:s}=e("@sentry/utils");Object.defineProperty(n,"__esModule",{value:!0});const i=e("@sentry/core"),o=e("@sentry/utils"),a=e("@sentry-internal/browser-utils"),c=o.GLOBAL_OBJ,u="sentryReplaySession",l="replay_event",d="Unable to send Replay",p=15e4,f=5e3,h=2e7,_=36e5;function m(e,t){return null!=e?e:t()}function g(e){let t=undefined,n=e[0],r=1;for(;rn.call(t,...e))),t=undefined)}return n}var S;function y(e){const t=g([e,"optionalAccess",e=>e.host]);return Boolean(g([t,"optionalAccess",e=>e.shadowRoot])===e)}function E(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function b(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,T).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function T(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=b(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(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"}(S||(S={}));class R{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return m(g([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function I({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function v({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function O(e){return e.toLowerCase()}function A(e){return e.toUpperCase()}const w="__rrweb_original__";function N(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?O(t):null}function C(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function j(e,t){let n;try{n=new URL(e,m(t,(()=>window.location.href)))}catch(e){return null}return m(g([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const k={};function D(e){const t=k[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return k[e]=r.bind(window)}function x(...e){return D("setTimeout")(...e)}function L(...e){return D("clearTimeout")(...e)}let M=1;const P=new RegExp("[^a-z0-9-_:]"),U=-2;function B(){return M++}let F,H;const G=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,z=/^(?:[a-z+]+:)?\/\//i,W=/^www\..*/i,$=/^(data:)([^,]*),(.*)/i;function V(e,t){return(e||"").replace(G,((e,n,r,s,i,o)=>{const a=r||i||o,c=n||s||"";if(!a)return e;if(z.test(a)||W.test(a))return`url(${c}${a}${c})`;if($.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const Y=/^[^ \t\n\r\u000c]+/,q=/^[, \t\n\r\u000c]+/;function X(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function K(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function J(){const e=document.createElement("a");return e.href="",e.href}function Z(e,t,n,r,s,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?X(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(q),!(n>=t.length);){let i=r(Y);if(","===i.slice(-1))i=X(e,i.substring(0,i.length-1)),s.push(i);else{let r="";i=X(e,i);let o=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((i+r).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){n+=1,s.push((i+r).trim());break}"("===e&&(o=!0)}r+=e,n+=1}}}return s.join(", ")}(e,r):"style"===n?V(r,J()):"object"===t&&"data"===n?X(e,r):"function"==typeof i?i(n,r,s):r:X(e,r):r}function Q(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ee(e,t,n=Infinity,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ee(e.parentNode,t,n,r+1):-1}function te(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function ne(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){const e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=ee(o,te(r,s)),c<0)return!0;a=ee(o,te(t,n),c>=0?c:Infinity)}else{if(a=ee(o,te(t,n)),a<0)return!1;c=ee(o,te(r,s),a>=0?a:Infinity)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!i}catch(e){}return!!i}function re(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:_,maskInputFn:m,dataURLOptions:y={},inlineImages:E,recordCanvas:T,keepIframeSrcFn:R,newlyAddedElement:j=!1}=t,k=function(e,t){if(!t.hasNode(e))return undefined;const n=t.getId(e);return 1===n?undefined:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:S.Document,childNodes:[],compatMode:e.compatMode}:{type:S.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:S.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:_,maskAllText:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:E,unmaskTextSelector:T}=t,R=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,s,i),j=function(e){if(e instanceof HTMLFormElement)return"form";const t=O(e.tagName);return P.test(t)?"div":t}(e);let k={};const D=e.attributes.length;for(let t=0;tt.href===e.href));let r=null;t&&(r=b(t)),r&&(delete k.rel,delete k.href,k._cssText=V(r,t.href))}if("style"===j&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=b(e.sheet);t&&(k._cssText=V(t,J()))}if("input"===j||"textarea"===j||"select"===j||"option"===j){const t=e,n=N(t),r=C(t,A(j),n),s=t.checked;if("submit"!==n&&"button"!==n&&r){const e=ne(t,g,E,y,T,I({type:n,tagName:A(j),maskInputOptions:a}));k.value=v({isMasked:e,element:t,value:r,maskInputFn:u})}s&&(k.checked=s)}"option"===j&&(e.selected&&!a.select?k.selected=!0:delete k.selected);if("canvas"===j&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e)))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(k.rr_dataURL=t)}if("img"===j&&d){F||(F=n.createElement("canvas"),H=F.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{t.removeEventListener("load",s);try{F.width=t.naturalWidth,F.height=t.naturalHeight,H.drawImage(t,0,0),k.rr_dataURL=F.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?k.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}"audio"!==j&&"video"!==j||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop));if(R){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==j||f(k.src)||(R||e.contentDocument||(k.rr_src=k.src),delete k.src);let x;try{customElements.get(j)&&(x=!0)}catch(e){}return{type:S.Element,tagName:j,attributes:k,childNodes:[],isSVG:K(e)||undefined,needBlock:R,rootId:_,isCustom:x}}(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:m,dataURLOptions:y,inlineImages:E,recordCanvas:T,keepIframeSrcFn:R,newlyAddedElement:j,rootId:k,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const f="STYLE"===d||undefined,h="SCRIPT"===d||undefined,_="TEXTAREA"===d||undefined;if(f&&p){try{e.nextSibling||e.previousSibling||g([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=b(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=V(p,J())}h&&(p="SCRIPT_PLACEHOLDER");const m=ne(e,r,i,s,o,n);f||h||_||!p||!m||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*"));_&&p&&(c.textarea||m)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=v({isMasked:ne(e,r,i,s,o,I({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:u})}return{type:S.Text,textContent:p||"",isStyle:f,rootId:l}}(e,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:_,maskInputOptions:h,maskInputFn:m,rootId:k});case e.CDATA_SECTION_NODE:return{type:S.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:S.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function se(e){return e===undefined||null===e?"":e.toLowerCase()}function ie(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:_,maskTextFn:m,maskInputFn:g,slimDOMOptions:b,dataURLOptions:T={},inlineImages:R=!1,recordCanvas:I=!1,onSerialize:v,onIframeLoad:O,iframeLoadTimeout:A=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:C=(()=>!1),newlyAddedElement:k=!1}=t;let{preserveWhiteSpace:D=!0}=t;const M=re(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:_,maskTextFn:m,maskInputFn:g,dataURLOptions:T,inlineImages:R,recordCanvas:I,keepIframeSrcFn:C,newlyAddedElement:k});if(!M)return console.warn(e,"not serialized"),null;let P;P=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===S.Comment)return!0;if(e.type===S.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===j(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(se(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===se(e.attributes.name)||"icon"===se(e.attributes.rel)||"apple-touch-icon"===se(e.attributes.rel)||"shortcut icon"===se(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&se(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(se(e.attributes.property).match(/^(og|twitter|fb):/)||se(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===se(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===se(e.attributes.name)||"googlebot"===se(e.attributes.name)||"bingbot"===se(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==undefined)return!0;if(t.headMetaAuthorship&&("author"===se(e.attributes.name)||"generator"===se(e.attributes.name)||"framework"===se(e.attributes.name)||"publisher"===se(e.attributes.name)||"progid"===se(e.attributes.name)||se(e.attributes.property).match(/^article:/)||se(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===se(e.attributes.name)||"yandex-verification"===se(e.attributes.name)||"csrf-token"===se(e.attributes.name)||"p:domain_verify"===se(e.attributes.name)||"verify-v1"===se(e.attributes.name)||"verification"===se(e.attributes.name)||"shopify-checkout-api-token"===se(e.attributes.name)))return!0}}return!1}(M,b)&&(D||M.type!==S.Text||M.isStyle||M.textContent.replace(/^\s+|\s+$/gm,"").length)?B():U;const F=Object.assign(M,{id:P});if(r.add(e,F),P===U)return null;v&&v(e);let H=!p;if(F.type===S.Element){H=H&&!F.needBlock,delete F.needBlock;const t=e.shadowRoot;t&&E(t)&&(F.isShadowHost=!0)}if((F.type===S.Document||F.type===S.Element)&&H){b.headWhitespace&&F.type===S.Element&&"head"===F.tagName&&(D=!1);const t={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:_,maskTextFn:m,maskInputFn:g,slimDOMOptions:b,dataURLOptions:T,inlineImages:R,recordCanvas:I,preserveWhiteSpace:D,onSerialize:v,onIframeLoad:O,iframeLoadTimeout:A,onStylesheetLoad:w,stylesheetLoadTimeout:N,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=ie(n,t);e&&F.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=ie(n,t);r&&(E(e.shadowRoot)&&(r.isShadow=!0),F.childNodes.push(r))}}return e.parentNode&&y(e.parentNode)&&E(e.parentNode)&&(F.isShadow=!0),F.type===S.Element&&"iframe"===F.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let s,i=!1;try{s=r.document.readyState}catch(e){return}if("complete"!==s){const r=x((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{L(r),i=!0,t()}))}const o="about:blank";if(r.location.href!==o||e.src===o||""===e.src)return x(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&O){const n=ie(t,{doc:t,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:_,maskTextFn:m,maskInputFn:g,slimDOMOptions:b,dataURLOptions:T,inlineImages:R,recordCanvas:I,preserveWhiteSpace:D,onSerialize:v,onIframeLoad:O,iframeLoadTimeout:A,onStylesheetLoad:w,stylesheetLoadTimeout:N,keepIframeSrcFn:C});n&&O(e,n)}}),A),F.type===S.Element&&"link"===F.tagName&&"string"==typeof F.attributes.rel&&("stylesheet"===F.attributes.rel||"preload"===F.attributes.rel&&"string"==typeof F.attributes.href&&"css"===j(F.attributes.href))&&function(e,t,n){let r,s=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=x((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{L(i),s=!0,t()}))}(e,(()=>{if(w){const t=ie(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:_,maskTextFn:m,maskInputFn:g,slimDOMOptions:b,dataURLOptions:T,inlineImages:R,recordCanvas:I,preserveWhiteSpace:D,onSerialize:v,onIframeLoad:O,iframeLoadTimeout:A,onStylesheetLoad:w,stylesheetLoadTimeout:N,keepIframeSrcFn:C});t&&w(e,t)}}),N),F}function oe(e){let t=undefined,n=e[0],r=1;for(;rn.call(t,...e))),t=undefined)}return n}function ae(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const ce="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let ue={map:{},getId:()=>(console.error(ce),-1),getNode:()=>(console.error(ce),null),removeNodeFromMap(){console.error(ce)},has:()=>(console.error(ce),!1),reset(){console.error(ce)}};function le(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();s||!1!==n.leading||(s=o);const a=t-(o-s),c=this;a<=0||a>t?(r&&(!function(...e){Ce("clearTimeout")(...e)}(r),r=null),s=o,e.apply(c,i)):r||!1===n.trailing||(r=je((()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(c,i)}),a))}}function de(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){je((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>de(e,t,i||{},!0)}function pe(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ue=new Proxy(ue,{get:(e,t,n)=>("map"===t&&console.error(ce),Reflect.get(e,t,n))}));let fe=Date.now;function he(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==undefined?e.pageXOffset:oe([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||oe([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||oe([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==undefined?e.pageYOffset:oe([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||oe([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||oe([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function _e(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function me(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ge(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function Se(e,t,n,r,s){if(!e)return!1;const i=ge(e);if(!i)return!1;const o=te(t,n);if(!s){const e=r&&i.matches(r);return o(i)&&!e}const a=ee(i,o);let c=-1;return!(a<0)&&(r&&(c=ee(i,te(null,r))),a>-1&&c<0||ae.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(fe=()=>(new Date).getTime());class ve{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return r(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===undefined?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Oe(e){let t=null;return oe([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ae(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Oe(n);)n=t;return n}(e);return t.contains(n)}function we(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Ae(e))}const Ne={};function Ce(e){const t=Ne[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return Ne[e]=r.bind(window)}function je(...e){return Ce("setTimeout")(...e)}var ke=(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))(ke||{}),De=(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))(De||{}),xe=(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))(xe||{}),Le=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Le||{});function Me(e){let t=undefined,n=e[0],r=1;for(;rn.call(t,...e))),t=undefined)}return n}function Pe(e){return"__ln"in e}class Ue{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;ne.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Pe(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Pe(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Be=(e,t)=>`${e}@${t}`;class Fe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Ue,r=e=>{let t=e,n=U;for(;n===U;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!we(s))return;const i=y(s.parentNode)?this.mirror.getId(Oe(s)):this.mirror.getId(s.parentNode),o=r(s);if(-1===i||-1===o)return n.addNode(s);const a=ie(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Te(e,this.mirror)&&!Se(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Re(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ie(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Se(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:i,nextId:o,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Ge(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)We(this.droppedSet,e)||Ge(this.removes,e,this.mirror)?We(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),s(e.value)}const o={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!ye(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Se(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ne(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ge(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=N(t),s=t.tagName;r=C(t,s,n);const i=I({maskInputOptions:this.maskInputOptions,tagName:s,type:n});r=v({isMasked:ne(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(Se(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Q(t.tagName,n)&&(s.attributes[n]=Z(this.doc,O(t.tagName),O(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?s.styleDiff[e]=""===i?r:[r,i]:s._unchangedStyles[e]=[r,i]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(Se(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=y(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Se(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ye(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(He(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Ee(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Be(n,r)]?He(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!y(e.target)||!E(e.target))||undefined})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(ye(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Be(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Se(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Ie(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function He(e,t){e.delete(t),t.childNodes.forEach((t=>He(e,t)))}function Ge(e,t,n){return 0!==e.length&&ze(e,t,n)}function ze(e,t,n){const{parentNode:r}=t;if(!r)return!1;const s=n.getId(r);return!!e.some((e=>e.id===s))||ze(e,r,n)}function We(e,t){return 0!==e.size&&$e(e,t)}function $e(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||$e(e,n))}let Ve;function Ye(e){Ve=e}function qe(){Ve=undefined}const Xe=e=>{if(!Ve)return e;return(...t)=>{try{return e(...t)}catch(e){if(Ve&&!0===Ve(e))return()=>{};throw e}}};function Ke(e){let t=undefined,n=e[0],r=1;for(;rn.call(t,...e))),t=undefined)}return n}const Je=[];function Ze(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Qe(e,t){const n=new Fe;Je.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=Ke([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(r=window[s]);const i=new r(Xe((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function et({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(!1===o.mouseInteraction)return()=>{};const a=!0===o.mouseInteraction||o.mouseInteraction===undefined?{}:o.mouseInteraction,c=[];let u=null;return Object.keys(xe).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((o=>{let a=O(o);const l=(t=>o=>{const a=Ze(o);if(Se(a,r,s,i,!0))return;let c=null,l=t;if("pointerType"in o){switch(o.pointerType){case"mouse":c=Le.Mouse;break;case"touch":c=Le.Touch;break;case"pen":c=Le.Pen}c===Le.Touch?xe[t]===xe.MouseDown?l="TouchStart":xe[t]===xe.MouseUp&&(l="TouchEnd"):Le.Pen}else be(o)&&(c=Le.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Le.Touch||l.startsWith("Mouse")&&c===Le.Mouse)&&(c=null)):xe[t]===xe.Click&&(c=u,u=null);const d=be(o)?o.changedTouches[0]:o;if(!d)return;const p=n.getId(a),{clientX:f,clientY:h}=d;Xe(e)({type:xe[l],id:p,x:f,y:h,...null!==c&&{pointerType:c}})})(o);if(window.PointerEvent)switch(xe[o]){case xe.MouseDown:case xe.MouseUp:a=a.replace("mouse","pointer");break;case xe.TouchStart:case xe.TouchEnd:return}c.push(ae(a,l,t))})),Xe((()=>{c.forEach((e=>e()))}))}function tt({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){return ae("scroll",Xe(le(Xe((o=>{const a=Ze(o);if(!a||Se(a,r,s,i,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=he(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),o.scroll||100)),t)}const nt=["INPUT","TEXTAREA","SELECT"],rt=new WeakMap;function st({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:_}){function m(e){let n=Ze(e);const l=e.isTrusted,m=n&&A(n.tagName);if("OPTION"===m&&(n=n.parentElement),!n||!m||nt.indexOf(m)<0||Se(n,r,s,i,!0))return;const S=n;if(S.classList.contains(o)||a&&S.matches(a))return;const y=N(n);let E=C(S,m,y),b=!1;const T=I({maskInputOptions:c,tagName:m,type:y}),R=ne(n,p,h,f,_,T);"radio"!==y&&"checkbox"!==y||(b=n.checked),E=v({isMasked:R,element:n,value:E,maskInputFn:u}),g(n,d?{text:E,isChecked:b,userTriggered:l}:{text:E,isChecked:b});const O=n.name;"radio"===y&&O&&b&&t.querySelectorAll(`input[type="radio"][name="${O}"]`).forEach((e=>{if(e!==n){const t=v({isMasked:R,element:e,value:C(e,m,y),maskInputFn:u});g(e,d?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}}))}function g(t,r){const s=rt.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){rt.set(t,r);const s=n.getId(t);Xe(e)({...r,id:s})}}const S=("last"===l.input?["change"]:["input","change"]).map((e=>ae(e,Xe(m),t))),y=t.defaultView;if(!y)return()=>{S.forEach((e=>e()))};const E=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,"value"),b=[[y.HTMLInputElement.prototype,"value"],[y.HTMLInputElement.prototype,"checked"],[y.HTMLSelectElement.prototype,"value"],[y.HTMLTextAreaElement.prototype,"value"],[y.HTMLSelectElement.prototype,"selectedIndex"],[y.HTMLOptionElement.prototype,"selected"]];return E&&E.set&&S.push(...b.map((e=>de(e[0],e[1],{set(){Xe(m)({target:this,isTrusted:!1})}},!1,y)))),Xe((()=>{S.forEach((e=>e()))}))}function it(e){return function(e,t){if(ut("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ut("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ut("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ut("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function ot(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function at({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?Ke([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Ke([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),i=Ke([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Ke([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):undefined;return null!==r&&-1!==r&&s&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Ke([i,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Ke([i,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Xe((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function ct(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Qe(e,e.doc));const s=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let o,a=[];const c=le(Xe((t=>{const n=Date.now()-o;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],o=null})),i),u=Xe(le(Xe((e=>{const t=Ze(e),{clientX:n,clientY:s}=be(e)?e.changedTouches[0]:e;o||(o=fe()),a.push({x:n,y:s,id:r.getId(t),timeOffset:fe()-o}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?De.Drag:e instanceof MouseEvent?De.MouseMove:De.TouchMove)})),s,{trailing:!1})),l=[ae("mousemove",u,n),ae("touchmove",u,n),ae("drag",u,n)];return Xe((()=>{l.forEach((e=>e()))}))}(e),i=et(e),o=tt(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ae("resize",Xe(le(Xe((()=>{const t=_e(),s=me();n===t&&r===s||(e({width:Number(s),height:Number(t)}),n=t,r=s)})),200)),t)}(e,{win:n}),c=st(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=Xe((o=>le(Xe((i=>{const a=Ze(i);if(!a||Se(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:o,id:s.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),i.media||500))),c=[ae("play",a(0),o),ae("pause",a(1),o),ae("seeked",a(2),o),ae("volumechange",a(3),o),ae("ratechange",a(4),o)];return Xe((()=>{c.forEach((e=>e()))}))}(e);let l=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Xe(((r,s,i)=>{const[o,a]=i,{id:c,styleId:u}=ot(s,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:o,index:a}]}),r.apply(s,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let o,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Xe(((r,s,i)=>{const[o]=i,{id:a,styleId:c}=ot(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:o}]}),r.apply(s,i)}))}),r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Xe(((r,s,i)=>{const[o]=i,{id:a,styleId:c}=ot(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:o}),r.apply(s,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Xe(((r,s,i)=>{const[o]=i,{id:a,styleId:c}=ot(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:o}),r.apply(s,i)}))}));const c={};lt("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(lt("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),lt("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),lt("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,s])=>{u[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Xe(((r,s,i)=>{const[o,a]=i,{id:c,styleId:u}=ot(s.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:o,index:[...it(s),a||0]}]}),r.apply(s,i)}))}),s.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Xe(((r,s,i)=>{const[o]=i,{id:a,styleId:c}=ot(s.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...it(s),o]}]}),r.apply(s,i)}))})})),Xe((()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:n}),d=at(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Xe(((s,o,a)=>{const[c,u,l]=a;if(n.has(c))return i.apply(o,[c,u,l]);const{id:d,styleId:p}=ot(Ke([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:u,priority:l},index:it(o.parentRule)}),s.apply(o,a)}))});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Xe(((s,i,a)=>{const[c]=a;if(n.has(c))return o.apply(i,[c]);const{id:u,styleId:l}=ot(Ke([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:it(i.parentRule)}),s.apply(i,a)}))}),Xe((()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o}))}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return s.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const o=pe(t.fonts,"add",(function(t){return function(n){return je(Xe((()=>{const t=s.get(n);t&&(e(t),s.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(o),Xe((()=>{r.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let a=!0;const c=Xe((()=>{const e=t.getSelection();if(!e||a&&Ke([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t{}}(e),m=[];for(const t of e.plugins)m.push(t.observer(t.callback,n,t.options));return Xe((()=>{Je.forEach((e=>e.reset())),Ke([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),s(),i(),o(),a(),c(),u(),l(),d(),p(),f(),h(),_(),m.forEach((e=>e()))}))}function ut(e){return void 0!==window[e]}function lt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class dt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let o=s.get(t);return o||(o=this.generateIdFn(),s.set(t,o),i.set(o,t)),o}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=r.get(t);return s||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function pt(e){let t=undefined,n=e[0],r=1;for(;rn.call(t,...e))),t=undefined)}return n}class ft{constructor(){this.crossOriginIframeMirror=new dt(B),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ht{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new dt(B),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new dt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),pt([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case ke.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:ke.IncrementalSnapshot,data:{source:De.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ke.Meta:case ke.Load:case ke.DomContentLoaded:return!1;case ke.Plugin:return t;case ke.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ke.IncrementalSnapshot:switch(t.data.source){case De.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case De.Drag:case De.TouchMove:case De.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case De.ViewportResize:return!1;case De.MediaInteraction:case De.MouseInteraction:case De.Scroll:case De.CanvasMutation:case De.Input:return this.replaceIds(t.data,e,["id"]),t;case De.StyleSheetRule:case De.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case De.Font:return t;case De.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case De.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),pt([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const s of r)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===S.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class _t{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class mt{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!E(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=Qe({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(tt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),je((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(at({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(pe(e.prototype,"attachShadow",(function(e){return function(r){const s=e.call(this,r);return this.shadowRoot&&we(this)&&n.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class gt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class St{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ve,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:T(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class yt{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){Ce("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Et,bt;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=s([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Tt=new R;function Rt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:u=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:_=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:S,maskAttributeFn:y,maskInputFn:E,maskTextFn:b,maxCanvasSize:T=null,packFn:I,sampling:v={},dataURLOptions:O={},mousemoveWait:A,recordDOM:w=!0,recordCanvas:N=!1,recordCrossOriginIframes:C=!1,recordAfter:j=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:k=!1,collectFonts:D=!1,inlineImages:x=!1,plugins:L,keepIframeSrcFn:M=(()=>!1),ignoreCSSAttributes:P=new Set([]),errorHandler:U,onMutation:B,getCanvasManager:F}=e;Ye(U);const H=!C||window.parent===window;let G=!1;if(!H)try{window.parent.document&&(G=!1)}catch(e){G=!0}if(H&&!t)throw new Error("emit function is required");A!==undefined&&v.mousemove===undefined&&(v.mousemove=A),Tt.reset();const z=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:g!==undefined?g:{},W=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};let $;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let V=0;const Y=e=>{for(const t of L||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&!G&&(e=I(e)),e};Et=(e,i)=>{const o=e;if(o.timestamp=fe(),!s([Je,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||o.type===ke.FullSnapshot||o.type===ke.IncrementalSnapshot&&o.data.source===De.Mutation||Je.forEach((e=>e.unfreeze())),H)s([t,"optionalCall",e=>e(Y(o),i)]);else if(G){const e={type:"rrweb",event:Y(o),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,"*")}if(o.type===ke.FullSnapshot)$=o,V=0;else if(o.type===ke.IncrementalSnapshot){if(o.data.source===De.Mutation&&o.data.isAttachIframe)return;V++;const e=r&&V>=r,t=n&&$&&o.timestamp-$.timestamp>n;(e||t)&&ne(!0)}};const q=e=>{Et({type:ke.IncrementalSnapshot,data:{source:De.Mutation,...e}})},X=e=>Et({type:ke.IncrementalSnapshot,data:{source:De.Scroll,...e}}),K=e=>Et({type:ke.IncrementalSnapshot,data:{source:De.CanvasMutation,...e}}),J=new St({mutationCb:q,adoptedStyleSheetCb:e=>Et({type:ke.IncrementalSnapshot,data:{source:De.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ft:new ht({mirror:Tt,mutationCb:q,stylesheetManager:J,recordCrossOriginIframes:C,wrappedEmit:Et});for(const e of L||[])e.getMirror&&e.getMirror({nodeMirror:Tt,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});const Q=new yt,ee=function(e,t){try{return e?e(t):new gt}catch(e){return console.warn("Unable to initialize CanvasManager"),new gt}}(F,{mirror:Tt,win:window,mutationCb:e=>Et({type:ke.IncrementalSnapshot,data:{source:De.CanvasMutation,...e}}),recordCanvas:N,blockClass:i,blockSelector:o,unblockSelector:a,maxCanvasSize:T,sampling:v.canvas,dataURLOptions:O,errorHandler:U}),te="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new _t:new mt({mutationCb:q,scrollCb:X,bypassOptions:{onMutation:B,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:_,maskInputOptions:z,dataURLOptions:O,maskAttributeFn:y,maskTextFn:b,maskInputFn:E,recordCanvas:N,inlineImages:x,sampling:v,slimDOMOptions:W,iframeManager:Z,stylesheetManager:J,canvasManager:ee,keepIframeSrcFn:M,processedNodeManager:Q},mirror:Tt}),ne=(e=!1)=>{if(!w)return;Et({type:ke.Meta,data:{href:window.location.href,width:me(),height:_e()}},e),J.reset(),te.init(),Je.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new R,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:_,maskTextFn:m,maskInputFn:g,slimDOM:S=!1,dataURLOptions:y,preserveWhiteSpace:E,onSerialize:b,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:v,stylesheetLoadTimeout:O,keepIframeSrcFn:A=(()=>!1)}=t||{};return ie(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:_,maskTextFn:m,maskInputFn:g,slimDOMOptions:!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S,dataURLOptions:y,inlineImages:p,recordCanvas:f,preserveWhiteSpace:E,onSerialize:b,onIframeLoad:T,iframeLoadTimeout:I,onStylesheetLoad:v,stylesheetLoadTimeout:O,keepIframeSrcFn:A,newlyAddedElement:!1})}(document,{mirror:Tt,blockClass:i,blockSelector:o,unblockSelector:a,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:_,maskAllInputs:z,maskAttributeFn:y,maskInputFn:E,maskTextFn:b,slimDOM:W,dataURLOptions:O,recordCanvas:N,inlineImages:x,onSerialize:e=>{Te(e,Tt)&&Z.addIframe(e),Re(e,Tt)&&J.trackLinkElement(e),Ie(e)&&te.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&ee.addWindow(e.contentWindow),te.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},keepIframeSrcFn:M});if(!t)return console.warn("Failed to snapshot the document");Et({type:ke.FullSnapshot,data:{node:t,initialOffset:he(window)}}),Je.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,Tt.getId(document))};bt=ne;try{const e=[],t=e=>Xe(ct)({onMutation:B,mutationCb:q,mousemoveCb:(e,t)=>Et({type:ke.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Et({type:ke.IncrementalSnapshot,data:{source:De.MouseInteraction,...e}}),scrollCb:X,viewportResizeCb:e=>Et({type:ke.IncrementalSnapshot,data:{source:De.ViewportResize,...e}}),inputCb:e=>Et({type:ke.IncrementalSnapshot,data:{source:De.Input,...e}}),mediaInteractionCb:e=>Et({type:ke.IncrementalSnapshot,data:{source:De.MediaInteraction,...e}}),styleSheetRuleCb:e=>Et({type:ke.IncrementalSnapshot,data:{source:De.StyleSheetRule,...e}}),styleDeclarationCb:e=>Et({type:ke.IncrementalSnapshot,data:{source:De.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>Et({type:ke.IncrementalSnapshot,data:{source:De.Font,...e}}),selectionCb:e=>{Et({type:ke.IncrementalSnapshot,data:{source:De.Selection,...e}})},customElementCb:e=>{Et({type:ke.IncrementalSnapshot,data:{source:De.CustomElement,...e}})},blockClass:i,ignoreClass:c,ignoreSelector:u,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:z,inlineStylesheet:_,sampling:v,recordDOM:w,recordCanvas:N,inlineImages:x,userTriggeredOnInput:k,collectFonts:D,doc:e,maskAttributeFn:y,maskInputFn:E,maskTextFn:b,keepIframeSrcFn:M,blockSelector:o,unblockSelector:a,slimDOMOptions:W,dataURLOptions:O,mirror:Tt,iframeManager:Z,stylesheetManager:J,shadowDomManager:te,processedNodeManager:Q,canvasManager:ee,ignoreCSSAttributes:P,plugins:s([L,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Et({type:ke.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Z.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ne(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ae("DOMContentLoaded",(()=>{Et({type:ke.DomContentLoaded,data:{}}),"DOMContentLoaded"===j&&n()}))),e.push(ae("load",(()=>{Et({type:ke.Load,data:{}}),"load"===j&&n()}),window))),()=>{e.forEach((e=>e())),Q.destroy(),bt=undefined,qe()}}catch(e){console.warn(e)}}Rt.mirror=Tt,Rt.takeFullSnapshot=function(e){if(!bt)throw new Error("please take full snapshot after start recording");bt(e)};const It="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,vt=["info","warn","error","log"],Ot="[Replay] ";function At(e,t="info"){i.addBreadcrumb({category:"console",data:{logger:"replay"},level:t,message:`${Ot}${e}`},{level:t})}const wt=function(){let e=!1,t=!1;const n={exception:()=>undefined,infoTick:()=>undefined,setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return It?(vt.forEach((e=>{n[e]=(...n)=>{o.logger[e](Ot,...n),t&&At(n.join(""),o.severityLevelFromString(e))}})),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),o.logger.error(Ot,r),e?i.captureException(r):t&&At(r,"error")},n.infoTick=(...e)=>{o.logger.info(Ot,...e),t&&setTimeout((()=>At(e[0])),0)}):vt.forEach((e=>{n[e]=()=>undefined})),n}(),Nt=3;function Ct(e){return e>9999999999?e:1e3*e}function jt(e){return e>9999999999?e/1e3:e}function kt(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:ke.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:o.normalize(t,10,1e3)}}),"console"===t.category))))}const Dt="button,a";function xt(e){return e.closest(Dt)||e}function Lt(e){const t=Mt(e);return t&&t instanceof Element?xt(t):t}function Mt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Pt;function Ut(e){return Pt||(Pt=[],o.fill(c,"open",(function(e){return function(...t){if(Pt)try{Pt.forEach((e=>e()))}catch(e){}return e.apply(c,t)}}))),Pt.push(e),()=>{const t=Pt?Pt.indexOf(e):-1;t>-1&&Pt.splice(t,1)}}const Bt=new Set([De.Mutation,De.StyleSheetRule,De.StyleDeclaration,De.AdoptedStyleSheet,De.CanvasMutation,De.Selection,De.MediaInteraction]);class Ft{constructor(e,t,n=kt){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Ut((()=>{this._lastMutation=Gt()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!Ht.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:jt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=jt(e)}registerScroll(e=Date.now()){this._lastScroll=jt(e)}registerClick(e){const t=xt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Gt();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:undefined),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:undefined),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:i,clickBreadcrumb:o}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:c.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,s)}else if(i>1){const e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:c.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=a.setTimeout((()=>this._checkClicks()),1e3)}}const Ht=["A","BUTTON","INPUT"];function Gt(){return Date.now()/1e3}function zt(e,t){try{if(!function(e){return e.type===Nt}(t))return;const{source:n}=t.data;if(Bt.has(n)&&e.registerMutation(t.timestamp),n===De.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===De.MouseInteraction}(t)){const{type:n,id:r}=t.data,s=Rt.mirror.getNode(r);s instanceof HTMLElement&&n===xe.Click&&e.registerClick(s)}}catch(e){}}function Wt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var $t;!function(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"}($t||($t={}));const Vt=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Yt(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Vt.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const qt=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Lt(e.event):Mt(e.event),n=o.htmlTreeAsString(r,{maxStringLength:200})||""}catch(e){n=""}return{target:r,message:n}}(e);return Wt({category:`ui.${e.name}`,...Xt(t,n)})}(t);if(!n)return;const r="click"===t.name,s=r?t.event:undefined;var i,a,c;!(r&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(i=e.clickDetector,a=n,c=Lt(t.event),i.handleClick(a,c)),kt(e,n)};function Xt(e,t){const n=Rt.mirror.getId(e),r=n&&Rt.mirror.getNode(n),s=r&&Rt.mirror.getMeta(r),i=s&&function(e){return e.type===$t.Element}(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>e.type===$t.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Yt(i.attributes)}}:{}}}function Kt(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!i)return null;const c=t||r||s,u=1===i.length;if(!c&&u)return null;const l=o.htmlTreeAsString(a,{maxStringLength:200})||"",d=Xt(a,l);return Wt({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}(t);n&&kt(e,n)}const Jt={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:u}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:en(i),end:en(s),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=en(s);return{type:n,name:r,start:i,end:i+t,data:undefined}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:_}=e;if(0===s)return null;return{type:`${t}.${_}`,start:en(f),end:en(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function Zt(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Qt(e){const t=Jt[e.entryType];return t?t(e):null}function en(e){return((o.browserPerformanceTimeOrigin||c.performance.timeOrigin)+e)/1e3}function tn(e){const t=e.entries[e.entries.length-1];return an(e,"largest-contentful-paint",t&&t.element?[t.element]:undefined)}function nn(e){return e.sources!==undefined}function rn(e){const t=[],n=[];for(const r of e.entries)if(nn(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=Rt.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:undefined})}return an(e,"cumulative-layout-shift",n,t)}function sn(e){const t=e.entries[e.entries.length-1];return an(e,"first-input-delay",t&&t.target?[t.target]:undefined)}function on(e){const t=e.entries[e.entries.length-1];return an(e,"interaction-to-next-paint",t&&t.target?[t.target]:undefined)}function an(e,t,n,r){const s=e.value,i=e.rating,o=en(s);return{type:"web-vital",name:t,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map((e=>Rt.mirror.getId(e))):undefined,attributions:r}}}const cn='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';class un extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class ln{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>h)throw new un;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?Ct(e):null}}class dn{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){It&&wt.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,s)=>{const i=({data:t})=>{const o=t;if(o.method===e&&o.id===n){if(this._worker.removeEventListener("message",i),!o.success)return It&&wt.error("Error in compression worker: ",o.response),void s(new Error("Error in compression worker"));r(o.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class pn{constructor(e){this._worker=new dn(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=Ct(e.timestamp);(!this._earliestTimestamp||th?Promise.reject(new un):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{It&&wt.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class fn{constructor(e){this._fallback=new ln,this._compression=new pn(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(It&&wt.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){It&&wt.exception(e,"Failed to add events when switching buffers.")}}}function hn({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([cn]);return URL.createObjectURL(e)}();return""}();if(!t)return;It&&wt.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new fn(n)}catch(e){It&&wt.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return It&&wt.info("Using simple buffer"),new ln}function _n(){try{return"sessionStorage"in c&&!!c.sessionStorage}catch(e){return!1}}function mn(e){!function(){if(!_n())return;try{c.sessionStorage.removeItem(u)}catch(e){}}(),e.session=undefined}function gn(e){return e!==undefined&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(It&&wt.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function wn(e){return!e.type}function Nn(e){return"transaction"===e.type}function Cn(e){return"feedback"===e.type}function jn(e){return(t,n)=>{if(!e.isEnabled()||!wn(t)&&!Nn(t))return;const r=n&&n.statusCode;!r||r<200||r>=300||(Nn(t)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;a.setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,t))}}function kn(e){return t=>{e.isEnabled()&&wn(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){kt(e,Wt({category:"replay.hydrate-error",data:{url:o.getLocationHref()}}))}}(e,t)}}function Dn(e){const t=i.getClient();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!xn(t))return;const n=function(e){if(!xn(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Wt(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>f?(n=!0,`${e.slice(0,f)}…`):e;if("object"==typeof e)try{const t=o.normalize(e,7);return JSON.stringify(t).length>f?(n=!0,`${JSON.stringify(t,null,2).slice(0,f)}…`):t}catch(e){}return e}));return Wt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return Wt(e)}(t);n&&kt(e,n)}(e,t)))}function xn(e){return!!e.category}function Ln(e){return Object.assign(((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!wn(t)&&!Nn(t)&&!Cn(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Cn(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:ke.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return It&&wt.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==d&&!(!t.exception||t.type)&&gn(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function Mn(e,t){return t.map((({type:t,start:n,end:r,name:s,data:i})=>{const o=e.throttledAddEvent({type:ke.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof o?Promise.resolve(null):o}))}function Pn(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Mn(e,[n]),!1))))}}function Un(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!It||!e.getOptions()._experiments.traceInternals)&&i.isSentryRequestUrl(t,i.getClient())}(e,t.name)||e.addUpdate((()=>(Mn(e,[t]),!0))))}function Bn(e){if(!e)return undefined;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Yn(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}return undefined}function Fn(e){if(!e)return undefined;const t=parseInt(e,10);return isNaN(t)?undefined:t}function Hn(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Yn(e)];if(!e)return[undefined]}catch(t){return It&&wt.exception(t,"Failed to serialize body",e),[undefined,"BODY_PARSE_ERROR"]}return It&&wt.info("Skipping network body because of body type",e),[undefined,"UNPARSEABLE_BODY_TYPE"]}function Gn(e,t){if(!e)return{headers:{},size:undefined,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function zn(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:a,request:c,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:o.dropUndefinedKeys({method:i,statusCode:a,request:c,response:u})}}function Wn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function $n(e,t,n){if(!t&&0===Object.keys(e).length)return undefined;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>p,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,p);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=s,i&&i.length>0&&(r._meta={warnings:i}),r}function Vn(e,t){return Object.entries(e).reduce(((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n}),{})}function Yn(e){return new URLSearchParams(e).toString()}function qn(e,t){const n=function(e,t=c.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(c.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return o.stringMatchesSomePattern(n,t)}async function Xn(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:c,status_code:u=0,request_body_size:l,response_body_size:d}=e.data,p=qn(o,n.networkDetailAllowUrls)&&!qn(o,n.networkDetailDenyUrls),f=p?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return Zn(e[0],t);if(2===e.length)return Zn(e[1],t);return{}}(n,t):{};if(!e)return $n(s,r,undefined);const i=Kn(n),[o,a]=Hn(i),c=$n(s,r,o);if(a)return Gn(c,a);return c}(n,t.input,l):Wn(l),h=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==undefined)return Wn(s);const i=r?Jn(r.headers,n):{};if(!r||!t&&s!==undefined)return $n(i,s,undefined);const[o,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){It&&wt.exception(e,"Failed to clone response body")}}(e);if(!t)return[undefined,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=a.setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return It&&wt.exception(e,"Failed to get text body from response"),[undefined,"BODY_PARSE_ERROR"]}}(r),u=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e&&e.length&&n===undefined?Bn(e):n;return r?$n(s,i,t?e:undefined):Wn(i)}catch(e){return It&&wt.exception(e,"Failed to serialize response body"),$n(s,n,undefined)}}(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});if(c)return Gn(u,c);return u}(p,n,t.response,d);return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:u,request:f,response:h}}(e,t,n),s=zn("resource.fetch",r);Un(n.replay,s)}catch(e){It&&wt.exception(e,"Failed to capture fetch breadcrumb")}}function Kn(e=[]){return 2!==e.length||"object"!=typeof e[1]?undefined:e[1].body}function Jn(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Zn(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Jn(n,t):Array.isArray(n)?{}:Vn(n,t):{}}async function Qn(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:c}=t,{url:u,method:l,status_code:d=0,request_body_size:p,response_body_size:f}=e.data;if(!u)return null;if(!c||!qn(u,n.networkDetailAllowUrls)||qn(u,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:i,url:u,method:l,statusCode:d,request:Wn(p),response:Wn(f)}}const h=c[a.SENTRY_XHR_DATA_KEY],_=h?Vn(h.request_headers,n.networkRequestHeaders):{},m=Vn(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{})}(c),n.networkResponseHeaders),[g,S]=n.networkCaptureBodies?Hn(o):[undefined],[y,E]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[undefined]}catch(t){return It&&wt.exception(t,"Failed to serialize body",e),[undefined,"BODY_PARSE_ERROR"]}return It&&wt.info("Skipping network body because of body type",e),[undefined,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return It&&wt.warn("Failed to get xhr response body",...t),[undefined]}(c):[undefined],b=$n(_,p,g),T=$n(m,f,y);return{startTimestamp:s,endTimestamp:i,url:u,method:l,statusCode:d,request:S?Gn(b,S):b,response:E?Gn(T,E):T}}(e,t,n),s=zn("resource.xhr",r);Un(n.replay,s)}catch(e){It&&wt.exception(e,"Failed to capture xhr breadcrumb")}}function er(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Bn(r),i=n.getResponseHeader("content-length")?Fn(n.getResponseHeader("content-length")):function(e,t){try{return Bn("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(e){return undefined}}(n.response,n.responseType);s!==undefined&&(e.data.request_body_size=s),i!==undefined&&(e.data.response_body_size=i)}function tr(e){const t=i.getClient();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(er(t,n),Qn(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t){const{input:n,response:r}=t,s=Bn(n?Kn(n):undefined),i=r?Fn(r.headers.get("content-length")):undefined;s!==undefined&&(e.data.request_body_size=s),i!==undefined&&(e.data.response_body_size=i)}(t,n),Xn(t,n,e))}catch(e){It&&wt.exception(e,"Error when enriching network breadcrumb")}}(a,e,t)))}catch(e){}}function nr(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function rr(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(It&&wt.warn("Received replay event after session expired."));const s=r||!t;t=!0,e.clickDetector&&zt(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!vn(e,n,s))return!0;if(!s)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;vn(e,function(e){const t=e.getOptions();return{type:ke.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,s),t&&t.previousSessionId)return!0;if("buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(It&&wt.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&yn(t))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function sr({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:a}){const c=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:p,traceIds:f,initialTimestamp:h}=r,_=i.getClient(),m=i.getCurrentScope(),g=_&&_.getTransport(),S=_&&_.getDsn();if(!(_&&g&&S&&a.sampled))return o.resolvedSyncPromise({});const y={type:l,replay_start_timestamp:h/1e3,timestamp:s/1e3,error_ids:p,trace_ids:f,urls:u,replay_id:t,segment_id:n,replay_type:a.sampled},E=await async function({client:e,scope:t,replayId:n,event:r}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?undefined:Object.keys(e._integrations)};e.emit("preprocessEvent",r,s);const o=await i.prepareEvent(e.getOptions(),r,s,t,e,i.getIsolationScope());if(!o)return null;o.platform=o.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},o}({scope:m,client:_,replayId:t,event:y});if(!E)return _.recordDroppedEvent("event_processor","replay",y),It&&wt.info("An event processor returned `null`, will not send event."),o.resolvedSyncPromise({});delete E.sdkProcessingMetadata;const b=function(e,t,n,r){return o.createEnvelope(o.createEventEnvelopeHeaders(e,o.getSdkMetadataForEnvelopeHeader(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(E,c,S,_.getOptions().tunnel);let T;try{T=await g.send(b)}catch(e){const t=new Error(d);try{t.cause=e}catch(e){}throw t}if("number"==typeof T.statusCode&&(T.statusCode<200||T.statusCode>=300))throw new ir(T.statusCode);const R=o.updateRateLimits({},T);if(o.isRateLimited(R,"replay"))throw new or(R);return T}class ir extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class or extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function ar(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await sr(e),!0}catch(n){if(n instanceof ir||n instanceof or)throw n;if(i.setContext("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${d} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{a.setTimeout((async()=>{try{await ar(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const cr="__THROTTLED";function ur(e,t,n){const r=new Map;let s=!1;return(...i)=>{const o=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{ne+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":cr}s=!1;const a=r.get(o)||0;return r.set(o,a+1),e(...i)}}class lr{constructor({options:e,recordingOptions:t}){lr.prototype.__init.call(this),lr.prototype.__init2.call(this),lr.prototype.__init3.call(this),lr.prototype.__init4.call(this),lr.prototype.__init5.call(this),lr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,s,i;const o=n&&n.maxWait?Math.max(n.maxWait,t):0;function c(){return u(),r=e(),r}function u(){s!==undefined&&clearTimeout(s),i!==undefined&&clearTimeout(i),s=i=undefined}function l(){return s&&clearTimeout(s),s=a.setTimeout(c,t),o&&i===undefined&&(i=a.setTimeout(c,o)),r}return l.cancel=u,l.flush=function(){return s!==undefined||i!==undefined?c():r},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ur(((e,t)=>function(e,t,n){return An(e,t)?On(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:undefined;if(s&&(this.clickDetector=new Ft(this,s)),It){const t=e._experiments;wt.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){It&&wt.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",It&&wt.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):It&&wt.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(It&&wt.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(It&&wt.info("Buffering is in progress, call `flush()` to save the replay"));It&&wt.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=In({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(It&&wt.info("Buffering is in progress, call `flush()` to save the replay"));It&&wt.infoTick("Starting replay in buffer mode");const e=In({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Rt({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:rr(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=undefined),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{It&&wt.info("Stopping Replay"+(t?` triggered by ${t}`:"")),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,mn(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),It&&wt.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),It&&wt.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();It&&wt.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&bn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${c.location.pathname}${c.location.hash}${c.location.search}`,t=`${c.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===cr){const e=Wt({category:"replay.throttled"});this.addUpdate((()=>!vn(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||i.getActiveSpan(),t=e&&i.getRootSpan(e),n=(t&&i.spanToJSON(t).data||{})[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return t&&n&&["route","custom"].includes(n)?i.spanToJSON(t).description:undefined}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=hn({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=In({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Rn(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{c.document.addEventListener("visibilitychange",this._handleVisibilityChange),c.addEventListener("blur",this._handleWindowBlur),c.addEventListener("focus",this._handleWindowFocus),c.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=i.getClient();a.addClickKeypressInstrumentationHandler(qt(e)),a.addHistoryInstrumentationHandler(Pn(e)),Dn(e),tr(e);const n=Ln(e);i.addEventProcessor(n),t&&(t.on("beforeSendEvent",kn(e)),t.on("afterSendEvent",jn(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(a.addPerformanceInstrumentationHandler(e,n))})),r.push(a.addLcpInstrumentationHandler(Zt(tn,e)),a.addClsInstrumentationHandler(Zt(rn,e)),a.addFidInstrumentationHandler(Zt(sn,e)),a.addInpInstrumentationHandler(Zt(on,e))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{c.document.removeEventListener("visibilitychange",this._handleVisibilityChange),c.removeEventListener("blur",this._handleWindowBlur),c.removeEventListener("focus",this._handleWindowFocus),c.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===c.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Wt({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Wt({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Kt(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Tn(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):It&&wt.info("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:ke.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Qt).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Mn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await ar({replayId:e,recordingData:s,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=i.getClient();if(t){const n=e instanceof or?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else It&&wt.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(It&&wt.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=nthis._options.maxReplayDuration+5e3;if(r||s)return It&&wt.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&It&&wt.info("Flushing initial segment without checkout.");const o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=undefined,o&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&yn(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Wt({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function dr(e,t){return[...e,...t].join(",")}const pr='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',fr=["content-length","content-type","accept"];let hr=!1;class _r{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:s=!0,useCompression:i=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:S=[],networkCaptureBodies:y=!0,networkRequestHeaders:E=[],networkResponseHeaders:b=[],mask:T=[],maskAttributes:R=["title","placeholder"],unmask:I=[],block:v=[],unblock:O=[],ignore:A=[],maskFn:w,beforeAddRecordingEvent:N,beforeErrorSampling:C}={}){this.name=_r.id;const j=function({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:dr(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:dr(t,[]),blockSelector:dr(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:dr(r,[]),ignoreSelector:dr(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:T,unmask:I,block:v,unblock:O,ignore:A});if(this._recordingOptions={maskAllInputs:l,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:w,maskInputFn:w,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return r?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:R,maskAllText:u,privacyOptions:j,key:e,value:t,el:n}),...j,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,_),stickySession:s,useCompression:i,workerUrl:a,blockAllMedia:d,maskAllInputs:l,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:S,networkCaptureBodies:y,networkRequestHeaders:mr(E),networkResponseHeaders:mr(b),beforeAddRecordingEvent:N,beforeErrorSampling:C,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${pr}`:pr),this._isInitialized&&o.isBrowser())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return hr}set _isInitialized(e){hr=e}afterAllSetup(e){o.isBrowser()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...o.dropUndefinedKeys(e)},s=i.parseSampleRate(n.replaysSessionSampleRate),a=i.parseSampleRate(n.replaysOnErrorSampleRate);null==s&&null==a&&o.consoleSandbox((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=s&&(r.sessionSampleRate=s);null!=a&&(r.errorSampleRate=a);return r}(this._initialOptions,e);this._replay=new lr({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function mr(e){return[...fr,...e.map((e=>e.toLowerCase()))]}_r.__initStatic(),n.getReplay=function(){const e=i.getClient();return e&&e.getIntegrationByName("Replay")},n.replayIntegration=e=>new _r(e)}}},{package:"@sentry/browser>@sentry-internal/replay",file:"node_modules/@sentry-internal/replay/build/npm/cjs/index.js"}],[3078,{"./debug-build.js":3079,"./eventbuilder.js":3080,"./helpers.js":3083,"./userfeedback.js":3104,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("./debug-build.js"),o=e("./eventbuilder.js"),a=e("./helpers.js"),c=e("./userfeedback.js");class u extends r.BaseClient{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e},n=a.WINDOW.SENTRY_SDK_SOURCE||s.getSDKSource();r.applySdkMetadata(t,"browser",["browser"],n),super(t),t.sendClientReports&&a.WINDOW.document&&a.WINDOW.document.addEventListener("visibilitychange",(()=>{"hidden"===a.WINDOW.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return o.eventFromException(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return o.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(i.DEBUG_BUILD&&s.logger.warn("SDK not enabled, will not capture user feedback."));const t=c.createUserFeedbackEnvelope(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}n.BrowserClient=u}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/client.js"}],[3079,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;n.DEBUG_BUILD=r}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/debug-build.js"}],[3080,{"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils");function i(e,t){const n=c(e,t),r={type:t&&t.name,value:l(t)};return n.length&&(r.stacktrace={frames:n}),r.type===undefined&&""===r.value&&(r.value="Unrecoverable error caught"),r}function o(e,t,n,o){const a=r.getClient(),u=a&&a.getOptions().normalizeDepth,l=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return undefined}(t),d={__serialized__:s.normalizeToSize(t,u)};if(l)return{exception:{values:[i(e,l)]},extra:d};const p={exception:{values:[{type:s.isEvent(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:f(t,{isUnhandledRejection:o})}]},extra:d};if(n){const t=c(e,n);t.length&&(p.exception.values[0].stacktrace={frames:t})}return p}function a(e,t){return{exception:{values:[i(e,t)]}}}function c(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&u.test(e.message))return 1;return 0}(t),s=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,s)}catch(e){}return[]}const u=/Minified React error #\d+;/i;function l(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function d(e,t,n,r,i){let c;if(s.isErrorEvent(t)&&t.error){return a(e,t.error)}if(s.isDOMError(t)||s.isDOMException(t)){const i=t;if("stack"in t)c=a(e,t);else{const t=i.name||(s.isDOMError(i)?"DOMError":"DOMException"),o=i.message?`${t}: ${i.message}`:t;c=p(e,o,n,r),s.addExceptionTypeValue(c,o)}return"code"in i&&(c.tags={...c.tags,"DOMException.code":`${i.code}`}),c}if(s.isError(t))return a(e,t);if(s.isPlainObject(t)||s.isEvent(t)){return c=o(e,t,n,i),s.addExceptionMechanism(c,{synthetic:!0}),c}return c=p(e,t,n,r),s.addExceptionTypeValue(c,`${t}`,undefined),s.addExceptionMechanism(c,{synthetic:!0}),c}function p(e,t,n,r){const i={};if(r&&n){const r=c(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(s.isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function f(e,{isUnhandledRejection:t}){const n=s.extractExceptionKeysForMessage(e),r=t?"promise rejection":"exception";if(s.isErrorEvent(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(s.isEvent(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:undefined}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}n.eventFromException=function(e,t,n,r){const i=d(e,t,n&&n.syntheticException||undefined,r);return s.addExceptionMechanism(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),s.resolvedSyncPromise(i)},n.eventFromMessage=function(e,t,n="info",r,i){const o=p(e,t,r&&r.syntheticException||undefined,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),s.resolvedSyncPromise(o)},n.eventFromUnknownInput=d,n.exceptionFromError=i}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/eventbuilder.js"}],[3081,{"./utils/lazyLoadIntegration.js":3105,"@sentry-internal/feedback":3075},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/feedback"),s=e("./utils/lazyLoadIntegration.js"),i=r.buildFeedbackIntegration({lazyLoadIntegration:s.lazyLoadIntegration});n.feedbackAsyncIntegration=i}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/feedbackAsync.js"}],[3082,{"./utils/lazyLoadIntegration.js":3105,"@sentry-internal/feedback":3075},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/feedback"),s=e("./utils/lazyLoadIntegration.js"),i=r.buildFeedbackIntegration({lazyLoadIntegration:s.lazyLoadIntegration,getModalIntegration:()=>r.feedbackModalIntegration,getScreenshotIntegration:()=>r.feedbackScreenshotIntegration});n.feedbackSyncIntegration=i}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/feedbackSync.js"}],[3083,{"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=s.GLOBAL_OBJ;let o=0;function a(){o++,setTimeout((()=>{o--}))}n.WINDOW=i,n.ignoreNextOnError=a,n.shouldIgnoreOnError=function(){return o>0},n.wrap=function e(t,n={},i){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(s.getOriginalFunction(t))return t}catch(e){return t}const o=function(){const o=Array.prototype.slice.call(arguments);try{i&&"function"==typeof i&&i.apply(this,arguments);const r=o.map((t=>e(t,n)));return t.apply(this,r)}catch(e){throw a(),r.withScope((t=>{t.addEventProcessor((e=>(n.mechanism&&(s.addExceptionTypeValue(e,undefined,undefined),s.addExceptionMechanism(e,n.mechanism)),e.extra={...e.extra,arguments:o},e))),r.captureException(e)})),e}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}catch(e){}s.markFunctionWrapped(o,t),s.addNonEnumerableProperty(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>t.name})}catch(e){}return o}}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/helpers.js"}],[3084,{"./client.js":3078,"./eventbuilder.js":3080,"./feedbackAsync.js":3081,"./feedbackSync.js":3082,"./helpers.js":3083,"./integrations/breadcrumbs.js":3085,"./integrations/browserapierrors.js":3086,"./integrations/contextlines.js":3087,"./integrations/globalhandlers.js":3088,"./integrations/httpclient.js":3089,"./integrations/httpcontext.js":3090,"./integrations/linkederrors.js":3091,"./integrations/reportingobserver.js":3092,"./metrics.js":3093,"./profiling/integration.js":3094,"./sdk.js":3097,"./stack-parsers.js":3098,"./tracing/browserTracingIntegration.js":3100,"./tracing/request.js":3101,"./transports/fetch.js":3102,"./transports/offline.js":3103,"./userfeedback.js":3104,"./utils/lazyLoadIntegration.js":3105,"@sentry-internal/feedback":3075,"@sentry-internal/replay":3077,"@sentry-internal/replay-canvas":3076,"@sentry/core":3123},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("./helpers.js"),i=e("./client.js"),o=e("./transports/fetch.js"),a=e("./stack-parsers.js"),c=e("./eventbuilder.js"),u=e("./userfeedback.js"),l=e("./sdk.js"),d=e("./integrations/breadcrumbs.js"),p=e("./integrations/globalhandlers.js"),f=e("./integrations/httpcontext.js"),h=e("./integrations/linkederrors.js"),_=e("./integrations/browserapierrors.js"),m=e("./utils/lazyLoadIntegration.js"),g=e("./integrations/reportingobserver.js"),S=e("./integrations/httpclient.js"),y=e("./integrations/contextlines.js"),E=e("@sentry-internal/replay"),b=e("@sentry-internal/replay-canvas"),T=e("./feedbackAsync.js"),R=e("./feedbackSync.js"),I=e("@sentry-internal/feedback"),v=e("./metrics.js"),O=e("./tracing/request.js"),A=e("./tracing/browserTracingIntegration.js"),w=e("./transports/offline.js"),N=e("./profiling/integration.js");n.SDK_VERSION=r.SDK_VERSION,n.SEMANTIC_ATTRIBUTE_SENTRY_OP=r.SEMANTIC_ATTRIBUTE_SENTRY_OP,n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=r.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n.Scope=r.Scope,n.addBreadcrumb=r.addBreadcrumb,n.addEventProcessor=r.addEventProcessor,n.addIntegration=r.addIntegration,n.addTracingExtensions=r.addTracingExtensions,n.captureConsoleIntegration=r.captureConsoleIntegration,n.captureEvent=r.captureEvent,n.captureException=r.captureException,n.captureFeedback=r.captureFeedback,n.captureMessage=r.captureMessage,n.captureSession=r.captureSession,n.close=r.close,n.continueTrace=r.continueTrace,n.createTransport=r.createTransport,n.debugIntegration=r.debugIntegration,n.dedupeIntegration=r.dedupeIntegration,n.endSession=r.endSession,n.extraErrorDataIntegration=r.extraErrorDataIntegration,n.flush=r.flush,n.functionToStringIntegration=r.functionToStringIntegration,n.getActiveSpan=r.getActiveSpan,n.getClient=r.getClient,n.getCurrentHub=r.getCurrentHub,n.getCurrentScope=r.getCurrentScope,n.getGlobalScope=r.getGlobalScope,n.getIsolationScope=r.getIsolationScope,n.getRootSpan=r.getRootSpan,n.getSpanDescendants=r.getSpanDescendants,n.getSpanStatusFromHttpCode=r.getSpanStatusFromHttpCode,n.inboundFiltersIntegration=r.inboundFiltersIntegration,n.isInitialized=r.isInitialized,n.lastEventId=r.lastEventId,n.makeMultiplexedTransport=r.makeMultiplexedTransport,n.moduleMetadataIntegration=r.moduleMetadataIntegration,n.parameterize=r.parameterize,n.registerSpanErrorInstrumentation=r.registerSpanErrorInstrumentation,n.rewriteFramesIntegration=r.rewriteFramesIntegration,n.sessionTimingIntegration=r.sessionTimingIntegration,n.setContext=r.setContext,n.setCurrentClient=r.setCurrentClient,n.setExtra=r.setExtra,n.setExtras=r.setExtras,n.setHttpStatus=r.setHttpStatus,n.setMeasurement=r.setMeasurement,n.setTag=r.setTag,n.setTags=r.setTags,n.setUser=r.setUser,n.spanToBaggageHeader=r.spanToBaggageHeader,n.spanToJSON=r.spanToJSON,n.spanToTraceHeader=r.spanToTraceHeader,n.startInactiveSpan=r.startInactiveSpan,n.startNewTrace=r.startNewTrace,n.startSession=r.startSession,n.startSpan=r.startSpan,n.startSpanManual=r.startSpanManual,n.thirdPartyErrorFilterIntegration=r.thirdPartyErrorFilterIntegration,n.withActiveSpan=r.withActiveSpan,n.withIsolationScope=r.withIsolationScope,n.withScope=r.withScope,n.zodErrorsIntegration=r.zodErrorsIntegration,n.WINDOW=s.WINDOW,n.BrowserClient=i.BrowserClient,n.makeFetchTransport=o.makeFetchTransport,n.chromeStackLineParser=a.chromeStackLineParser,n.defaultStackLineParsers=a.defaultStackLineParsers,n.defaultStackParser=a.defaultStackParser,n.geckoStackLineParser=a.geckoStackLineParser,n.opera10StackLineParser=a.opera10StackLineParser,n.opera11StackLineParser=a.opera11StackLineParser,n.winjsStackLineParser=a.winjsStackLineParser,n.eventFromException=c.eventFromException,n.eventFromMessage=c.eventFromMessage,n.exceptionFromError=c.exceptionFromError,n.createUserFeedbackEnvelope=u.createUserFeedbackEnvelope,n.captureUserFeedback=l.captureUserFeedback,n.forceLoad=l.forceLoad,n.getDefaultIntegrations=l.getDefaultIntegrations,n.init=l.init,n.onLoad=l.onLoad,n.showReportDialog=l.showReportDialog,n.breadcrumbsIntegration=d.breadcrumbsIntegration,n.globalHandlersIntegration=p.globalHandlersIntegration,n.httpContextIntegration=f.httpContextIntegration,n.linkedErrorsIntegration=h.linkedErrorsIntegration,n.browserApiErrorsIntegration=_.browserApiErrorsIntegration,n.lazyLoadIntegration=m.lazyLoadIntegration,n.reportingObserverIntegration=g.reportingObserverIntegration,n.httpClientIntegration=S.httpClientIntegration,n.contextLinesIntegration=y.contextLinesIntegration,n.getReplay=E.getReplay,n.replayIntegration=E.replayIntegration,n.replayCanvasIntegration=b.replayCanvasIntegration,n.feedbackAsyncIntegration=T.feedbackAsyncIntegration,n.feedbackIntegration=R.feedbackSyncIntegration,n.feedbackSyncIntegration=R.feedbackSyncIntegration,n.getFeedback=I.getFeedback,n.sendFeedback=I.sendFeedback,n.metrics=v.metrics,n.defaultRequestInstrumentationOptions=O.defaultRequestInstrumentationOptions,n.instrumentOutgoingRequests=O.instrumentOutgoingRequests,n.browserTracingIntegration=A.browserTracingIntegration,n.startBrowserTracingNavigationSpan=A.startBrowserTracingNavigationSpan,n.startBrowserTracingPageLoadSpan=A.startBrowserTracingPageLoadSpan,n.makeBrowserOfflineTransport=w.makeBrowserOfflineTransport,n.browserProfilingIntegration=N.browserProfilingIntegration}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/index.js"}],[3085,{"../debug-build.js":3079,"../helpers.js":3083,"@sentry-internal/browser-utils":3048,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),i=e("@sentry/utils"),o=e("../debug-build.js"),a=e("../helpers.js"),c=1024,u=s.defineIntegration(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&i.addConsoleInstrumentationHandler(function(e){return function(t){if(s.getClient()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:i.severityLevelFromString(t.level),message:i.safeJoin(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${i.safeJoin(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}s.addBreadcrumb(n,{input:t.args,level:t.level})}}(e)),t.dom&&r.addClickKeypressInstrumentationHandler(function(e,t){return function(n){if(s.getClient()!==e)return;let r,a,u="object"==typeof t?t.serializeAttribute:undefined,l="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:undefined;l&&l>c&&(o.DEBUG_BUILD&&i.logger.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${l} was configured. Sentry will use 1024 instead.`),l=c),"string"==typeof u&&(u=[u]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=i.htmlTreeAsString(t,{keyAttrs:u,maxStringLength:l}),a=i.getComponentName(t)}catch(e){r=""}if(0===r.length)return;const d={category:`ui.${n.name}`,message:r};a&&(d.data={"ui.component_name":a}),s.addBreadcrumb(d,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&r.addXhrInstrumentationHandler(function(e){return function(t){if(s.getClient()!==e)return;const{startTimestamp:n,endTimestamp:o}=t,a=t.xhr[r.SENTRY_XHR_DATA_KEY];if(!n||!o||!a)return;const{method:c,url:u,status_code:l,body:d}=a,p={method:c,url:u,status_code:l},f={xhr:t.xhr,input:d,startTimestamp:n,endTimestamp:o},h=i.getBreadcrumbLogLevelFromHttpStatusCode(l);s.addBreadcrumb({category:"xhr",data:p,type:"http",level:h},f)}}(e)),t.fetch&&i.addFetchInstrumentationHandler(function(e){return function(t){if(s.getClient()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};s.addBreadcrumb({category:"fetch",data:e,level:"error",type:"http"},i)}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},a={input:t.args,response:e,startTimestamp:n,endTimestamp:r},c=i.getBreadcrumbLogLevelFromHttpStatusCode(o.status_code);s.addBreadcrumb({category:"fetch",data:o,type:"http",level:c},a)}}}(e)),t.history&&r.addHistoryInstrumentationHandler(function(e){return function(t){if(s.getClient()!==e)return;let n=t.from,r=t.to;const o=i.parseUrl(a.WINDOW.location.href);let c=n?i.parseUrl(n):undefined;const u=i.parseUrl(r);c&&c.path||(c=o),o.protocol===u.protocol&&o.host===u.host&&(r=u.relative),o.protocol===c.protocol&&o.host===c.host&&(n=c.relative),s.addBreadcrumb({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){s.getClient()===e&&s.addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:i.getEventDescription(t)},{event:t})}}(e))}}}));n.breadcrumbsIntegration=u}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/integrations/breadcrumbs.js"}],[3086,{"../helpers.js":3083,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("../helpers.js"),o=["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"],a=r.defineIntegration(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&s.fill(i.WINDOW,"setTimeout",c),t.setInterval&&s.fill(i.WINDOW,"setInterval",c),t.requestAnimationFrame&&s.fill(i.WINDOW,"requestAnimationFrame",u),t.XMLHttpRequest&&"XMLHttpRequest"in i.WINDOW&&s.fill(XMLHttpRequest.prototype,"send",l);const e=t.eventTarget;if(e){(Array.isArray(e)?e:o).forEach(d)}}}}));function c(e){return function(...t){const n=t[0];return t[0]=i.wrap(n,{mechanism:{data:{function:s.getFunctionName(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function u(e){return function(t){return e.apply(this,[i.wrap(t,{mechanism:{data:{function:"requestAnimationFrame",handler:s.getFunctionName(e)},handled:!1,type:"instrument"}})])}}function l(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&s.fill(n,e,(function(t){const n={mechanism:{data:{function:e,handler:s.getFunctionName(t)},handled:!1,type:"instrument"}},r=s.getOriginalFunction(t);return r&&(n.mechanism.data.handler=s.getFunctionName(r)),i.wrap(t,n)}))})),e.apply(this,t)}}function d(e){const t=i.WINDOW,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(s.fill(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=i.wrap(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:s.getFunctionName(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,i.wrap(r,{mechanism:{data:{function:"addEventListener",handler:s.getFunctionName(r),target:e},handled:!1,type:"instrument"}}),o])}})),s.fill(n,"removeEventListener",(function(e){return function(t,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,s,r)}})))}n.browserApiErrorsIntegration=a}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/integrations/browserapierrors.js"}],[3087,{"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=s.GLOBAL_OBJ,o=r.defineIntegration(((e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>function(e,t){const n=i.document,r=i.location&&s.stripUrlQueryAndFragment(i.location.href);if(!n||!r)return e;const o=e.exception&&e.exception.values;if(!o||!o.length)return e;const c=n.documentElement.innerHTML;if(!c)return e;const u=["","",...c.split("\n"),""];return o.forEach((e=>{const n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map((e=>a(e,u,r,t))))})),e}(e,t)}}));function a(e,t,n,r){return e.filename===n&&e.lineno&&t.length?(s.addContextToFrame(t,e,r),e):e}n.applySourceContextToFrame=a,n.contextLinesIntegration=o}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/integrations/contextlines.js"}],[3088,{"../debug-build.js":3079,"../eventbuilder.js":3080,"../helpers.js":3083,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("../debug-build.js"),o=e("../eventbuilder.js"),a=e("../helpers.js"),c=r.defineIntegration(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){s.addGlobalErrorInstrumentationHandler((t=>{const{stackParser:n,attachStacktrace:i}=l();if(r.getClient()!==e||a.shouldIgnoreOnError())return;const{msg:c,url:u,line:d,column:p,error:f}=t,h=function(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},c=a.stacktrace=a.stacktrace||{},u=c.frames=c.frames||[],l=isNaN(parseInt(r,10))?undefined:r,d=isNaN(parseInt(n,10))?undefined:n,p=s.isString(t)&&t.length>0?t:s.getLocationHref();0===u.length&&u.push({colno:l,filename:p,function:s.UNKNOWN_FUNCTION,in_app:!0,lineno:d});return e}(o.eventFromUnknownInput(n,f||c,undefined,i,!1),u,d,p);h.level="error",r.captureEvent(h,{originalException:f,mechanism:{handled:!1,type:"onerror"}})}))}(e),u("onerror")),t.onunhandledrejection&&(!function(e){s.addGlobalUnhandledRejectionInstrumentationHandler((t=>{const{stackParser:n,attachStacktrace:i}=l();if(r.getClient()!==e||a.shouldIgnoreOnError())return;const c=function(e){if(s.isPrimitive(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),u=s.isPrimitive(c)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(c)}`}]}}:o.eventFromUnknownInput(n,c,undefined,i,!0);u.level="error",r.captureEvent(u,{originalException:c,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),u("onunhandledrejection"))}}}));function u(e){i.DEBUG_BUILD&&s.logger.log(`Global Handler attached: ${e}`)}function l(){const e=r.getClient();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}n.globalHandlersIntegration=c}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/integrations/globalhandlers.js"}],[3089,{"../debug-build.js":3079,"@sentry-internal/browser-utils":3048,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),i=e("@sentry/utils"),o=e("../debug-build.js"),a=s.defineIntegration(((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!i.supportsNativeFetch())return;i.addFetchInstrumentationHandler((n=>{if(s.getClient()!==e)return;const{response:r,args:i}=n,[o,a]=i;r&&function(e,t,n,r){if(d(e,n.status,n.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(t,r);let i,o,a,u;f()&&([i,a]=c("Cookie",e),[o,u]=c("Set-Cookie",n));const l=p({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:o,requestCookies:a,responseCookies:u});s.captureEvent(l)}}(t,o,r,a)}))}(e,t),function(e,t){if(!("XMLHttpRequest"in i.GLOBAL_OBJ))return;r.addXhrInstrumentationHandler((n=>{if(s.getClient()!==e)return;const a=n.xhr,c=a[r.SENTRY_XHR_DATA_KEY];if(!c)return;const{method:u,request_headers:h}=c;try{!function(e,t,n,r){if(d(e,t.status,t.responseURL)){let e,a,c;if(f()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||undefined;e&&(a=l(e))}catch(e){o.DEBUG_BUILD&&i.logger.log("Could not extract cookies from response headers")}try{c=function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e}),{})}(t)}catch(e){o.DEBUG_BUILD&&i.logger.log("Could not extract headers from response")}e=r}const u=p({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:c,responseCookies:a});s.captureEvent(u)}}(t,a,u,h)}catch(e){o.DEBUG_BUILD&&i.logger.warn("Error while extracting response event form XHR response",e)}}))}(e,t)}}}));function c(e,t){const n=function(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||undefined;t&&(r=l(t))}catch(t){o.DEBUG_BUILD&&i.logger.log(`Could not extract cookies from header ${e}`)}return[n,r]}function u(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}return undefined}function l(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e}),{})}function d(e,t,n){return function(e,t){return e.some((e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1]))}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,i=n,r.some((e=>"string"==typeof e?i.includes(e):e.test(i))))&&!s.isSentryRequestUrl(n,s.getClient());var r,i}function p(e){const t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:u(e.responseHeaders)}}};return i.addExceptionMechanism(n,{type:"http.client",handled:!1}),n}function f(){const e=s.getClient();return!!e&&Boolean(e.getOptions().sendDefaultPii)}n.httpClientIntegration=a}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/integrations/httpclient.js"}],[3090,{"../helpers.js":3083,"@sentry/core":3123},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("../helpers.js"),i=r.defineIntegration((()=>({name:"HttpContext",preprocessEvent(e){if(!s.WINDOW.navigator&&!s.WINDOW.location&&!s.WINDOW.document)return;const t=e.request&&e.request.url||s.WINDOW.location&&s.WINDOW.location.href,{referrer:n}=s.WINDOW.document||{},{userAgent:r}=s.WINDOW.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}})));n.httpContextIntegration=i}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/integrations/httpcontext.js"}],[3091,{"../eventbuilder.js":3080,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("../eventbuilder.js"),o=r.defineIntegration(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const a=o.getOptions();s.applyAggregateErrorsToEvent(i.exceptionFromError,a.stackParser,a.maxValueLength,n,t,e,r)}}}));n.linkedErrorsIntegration=o}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/integrations/linkederrors.js"}],[3092,{"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=s.GLOBAL_OBJ,o=new WeakMap,a=r.defineIntegration(((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(o.has(r.getClient()))for(const t of e)r.withScope((e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let s="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;s=[e.crashId||"",e.reason||""].join(" ").trim()||s}else{s=t.body.message||s}}r.captureMessage(`${n}: ${s}`)}))}return{name:"ReportingObserver",setupOnce(){if(!s.supportsReportingObserver())return;new i.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){o.set(e,!0)}}}));n.reportingObserverIntegration=a}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/integrations/reportingobserver.js"}],[3093,{"@sentry/core":3123},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core");const s={increment:function(e,t=1,n){r.metrics.increment(r.BrowserMetricsAggregator,e,t,n)},distribution:function(e,t,n){r.metrics.distribution(r.BrowserMetricsAggregator,e,t,n)},set:function(e,t,n){r.metrics.set(r.BrowserMetricsAggregator,e,t,n)},gauge:function(e,t,n){r.metrics.gauge(r.BrowserMetricsAggregator,e,t,n)},timing:function(e,t,n="second",s){return r.metrics.timing(r.BrowserMetricsAggregator,e,t,n,s)}};n.metrics=s}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/metrics.js"}],[3094,{"../debug-build.js":3079,"./startProfileForSpan.js":3095,"./utils.js":3096,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("../debug-build.js"),o=e("./startProfileForSpan.js"),a=e("./utils.js"),c=r.defineIntegration((()=>({name:"BrowserProfiling",setup(e){const t=r.getActiveSpan(),n=t&&r.getRootSpan(t);n&&a.isAutomatedPageLoadSpan(n)&&a.shouldProfileSpan(n)&&o.startProfileForSpan(n),e.on("spanStart",(e=>{e===r.getRootSpan(e)&&a.shouldProfileSpan(e)&&o.startProfileForSpan(e)})),e.on("beforeEnvelope",(e=>{if(!a.getActiveProfilesCount())return;const t=a.findProfiledTransactionsFromEnvelope(e);if(!t.length)return;const n=[];for(const e of t){const t=e&&e.contexts,r=t&&t.profile&&t.profile.profile_id,o=t&&t.profile&&t.profile.start_timestamp;if("string"!=typeof r){i.DEBUG_BUILD&&s.logger.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!r){i.DEBUG_BUILD&&s.logger.log("[Profiling] cannot find profile for a span without a profile context");continue}t&&t.profile&&delete t.profile;const c=a.takeProfileFromGlobalCache(r);if(!c){i.DEBUG_BUILD&&s.logger.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}const u=a.createProfilingEvent(r,o,c,e);u&&n.push(u)}a.addProfilesToEnvelope(e,n)}))}})));n.browserProfilingIntegration=c}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/profiling/integration.js"}],[3095,{"../debug-build.js":3079,"../helpers.js":3083,"./utils.js":3096,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("../debug-build.js"),o=e("../helpers.js"),a=e("./utils.js");n.startProfileForSpan=function(e){let t;a.isAutomatedPageLoadSpan(e)&&(t=1e3*s.timestampInSeconds());const n=a.startJSSelfProfile();if(!n)return;i.DEBUG_BUILD&&s.logger.log(`[Profiling] started profiling span: ${r.spanToJSON(e).description}`);const c=s.uuid4();async function u(){if(e&&n)return n.stop().then((t=>{l&&(o.WINDOW.clearTimeout(l),l=undefined),i.DEBUG_BUILD&&s.logger.log(`[Profiling] stopped profiling of span: ${r.spanToJSON(e).description}`),t?a.addProfileToGlobalCache(c,t):i.DEBUG_BUILD&&s.logger.log(`[Profiling] profiler returned null profile for: ${r.spanToJSON(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")})).catch((e=>{i.DEBUG_BUILD&&s.logger.log("[Profiling] error while stopping profiler:",e)}))}r.getCurrentScope().setContext("profile",{profile_id:c,start_timestamp:t});let l=o.WINDOW.setTimeout((()=>{i.DEBUG_BUILD&&s.logger.log("[Profiling] max profile duration elapsed, stopping profiling for:",r.spanToJSON(e).description),u()}),a.MAX_PROFILE_DURATION_MS);const d=e.end.bind(e);e.end=function(){return e?(u().then((()=>{d()}),(()=>{d()})),e):d()}}}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/profiling/startProfileForSpan.js"}],[3096,{"../debug-build.js":3079,"../helpers.js":3083,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("../debug-build.js"),o=e("../helpers.js"),a=1e6,c=String(0),u="main";let l="",d="",p="",f=o.WINDOW.navigator&&o.WINDOW.navigator.userAgent||"",h="";const _=o.WINDOW.navigator&&o.WINDOW.navigator.language||o.WINDOW.navigator&&o.WINDOW.navigator.languages&&o.WINDOW.navigator.languages[0]||"";const m=o.WINDOW.navigator&&o.WINDOW.navigator.userAgentData;var g;function S(e){return function(e){return!("thread_metadata"in e)}(e)?E(e):e}function y(e,t,n,a){if("transaction"!==a.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n===undefined||null===n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const u=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"==typeof t&&32!==t.length&&i.DEBUG_BUILD&&s.logger.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(a),m=S(n),g=t||("number"==typeof a.start_timestamp?1e3*a.start_timestamp:1e3*s.timestampInSeconds()),y="number"==typeof a.timestamp?1e3*a.timestamp:1e3*s.timestampInSeconds();return{event_id:e,timestamp:new Date(g).toISOString(),platform:"javascript",version:"1",release:a.release||"",environment:a.environment||r.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:o.WINDOW.navigator.userAgent},os:{name:l,version:d,build_number:f},device:{locale:_,model:h,manufacturer:f,architecture:p,is_emulator:!1},debug_meta:{images:T(n.resources)},profile:m,transactions:[{name:a.transaction||"",id:a.event_id||s.uuid4(),trace_id:u,active_thread_id:c,relative_start_ns:"0",relative_end_ns:(1e6*(y-g)).toFixed(0)}]}}function E(e){let t=undefined,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[c]:{name:u}}},i=e.samples[0];if(!i)return r;const o=i.timestamp,l="number"==typeof performance.timeOrigin?performance.timeOrigin:s.browserPerformanceTimeOrigin||0,d=l-(s.browserPerformanceTimeOrigin||l);return e.samples.forEach(((s,i)=>{if(s.stackId===undefined)return t===undefined&&(t=n,r.stacks[t]=[],n++),void(r.samples[i]={elapsed_since_start_ns:((s.timestamp+d-o)*a).toFixed(0),stack_id:t,thread_id:c});let u=e.stacks[s.stackId];const l=[];for(;u;){l.push(u.frameId);const t=e.frames[u.frameId];t&&r.frames[u.frameId]===undefined&&(r.frames[u.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:undefined,lineno:t.line,colno:t.column}),u=u.parentId===undefined?undefined:e.stacks[u.parentId]}const p={elapsed_since_start_ns:((s.timestamp+d-o)*a).toFixed(0),stack_id:n,thread_id:c};r.stacks[n]=l,r.samples[i]=p,n++})),r}"object"==typeof(g=m)&&null!==g&&"getHighEntropyValues"in g&&m.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(l=e.platform||"",p=e.architecture||"",h=e.model||"",d=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];f=`${t.brand} ${t.version}`}})).catch((e=>{}));const b=new WeakMap;function T(e){const t=s.GLOBAL_OBJ._sentryDebugIds;if(!t)return[];const n=r.getClient(),i=n&&n.getOptions(),o=i&&i.stackParser;if(!o)return[];let a;const c=b.get(o);c?a=c:(a=new Map,b.set(o,a));const u=Object.keys(t).reduce(((e,n)=>{let r;const s=a.get(n);s?r=s:(r=o(n),a.set(n,r));for(let s=r.length-1;s>=0;s--){const i=r[s],o=i&&i.filename;if(i&&o){e[o]=t[n];break}}return e}),{}),l=[];for(const t of e)t&&u[t]&&l.push({type:"sourcemap",code_file:t,debug_id:u[t]});return l}function R(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(i.DEBUG_BUILD&&s.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||(!(e<0||e>1)||(i.DEBUG_BUILD&&s.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1))}let I=!1;const v=new Map;n.MAX_PROFILE_DURATION_MS=3e4,n.addProfileToGlobalCache=function(e,t){if(v.set(e,t),v.size>30){const e=v.keys().next().value;v.delete(e)}},n.addProfilesToEnvelope=function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e},n.applyDebugMetadata=T,n.convertJSSelfProfileToSampledFormat=E,n.createProfilePayload=y,n.createProfilingEvent=function(e,t,n,r){return function(e){return e.samples.length<2?(i.DEBUG_BUILD&&s.logger.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(i.DEBUG_BUILD&&s.logger.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?y(e,t,n,r):null},n.enrichWithThreadInformation=S,n.findProfiledTransactionsFromEnvelope=function(e){const t=[];return s.forEachEnvelopeItem(e,((e,n)=>{if("transaction"===n)for(let n=1;nr.startsWith(`${e}//`))),i=void 0!==e.nw;return!!n&&!s&&!i}())return void s.consoleSandbox((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));a.DEBUG_BUILD&&(s.supportsFetch()||s.logger.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:s.stackParserFromStackParserOptions(t.stackParser||h.defaultStackParser),integrations:r.getIntegrationsToSetup(t),transport:t.transport||_.makeFetchTransport},u=r.initAndBind(o.BrowserClient,n);return t.autoSessionTracking&&function(){if(void 0===c.WINDOW.document)return void(a.DEBUG_BUILD&&s.logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));r.startSession({ignoreDuration:!0}),r.captureSession(),i.addHistoryInstrumentationHandler((({from:e,to:t})=>{e!==undefined&&e!==t&&(r.startSession({ignoreDuration:!0}),r.captureSession())}))}(),u},n.onLoad=function(e){e()},n.showReportDialog=function(e={}){if(!c.WINDOW.document)return void(a.DEBUG_BUILD&&s.logger.error("Global document not defined in showReportDialog call"));const t=r.getCurrentScope(),n=t.getClient(),i=n&&n.getDsn();if(!i)return void(a.DEBUG_BUILD&&s.logger.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=r.lastEventId();t&&(e.eventId=t)}const o=c.WINDOW.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=r.getReportDialogEndpoint(i,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:u}=e;if(u){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{c.WINDOW.removeEventListener("message",e)}};c.WINDOW.addEventListener("message",e)}const l=c.WINDOW.document.head||c.WINDOW.document.body;l?l.appendChild(o):a.DEBUG_BUILD&&s.logger.error("Not injecting report dialog. No injection point found in HTML")}}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/sdk.js"}],[3098,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");function s(e,t,n,s){const i={filename:e,function:""===t?r.UNKNOWN_FUNCTION:t,in_app:!0};return n!==undefined&&(i.lineno=n),s!==undefined&&(i.colno=s),i}const i=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,o=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=[30,e=>{const t=i.exec(e);if(t){const[,e,n,i]=t;return s(e,r.UNKNOWN_FUNCTION,+n,+i)}const n=o.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=a.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=E(n[1]||r.UNKNOWN_FUNCTION,n[2]);return s(t,e,n[3]?+n[3]:undefined,n[4]?+n[4]:undefined)}}],u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=[50,e=>{const t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=l.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||r.UNKNOWN_FUNCTION;return[n,e]=E(n,e),s(e,n,t[4]?+t[4]:undefined,t[5]?+t[5]:undefined)}}],p=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=[40,e=>{const t=p.exec(e);return t?s(t[2],t[1]||r.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:undefined):undefined}],h=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,_=[10,e=>{const t=h.exec(e);return t?s(t[2],t[3]||r.UNKNOWN_FUNCTION,+t[1]):undefined}],m=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,g=[20,e=>{const t=m.exec(e);return t?s(t[5],t[3]||t[4]||r.UNKNOWN_FUNCTION,+t[1],+t[2]):undefined}],S=[c,d],y=r.createStackParser(...S),E=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),s=-1!==e.indexOf("safari-web-extension");return n||s?[-1!==e.indexOf("@")?e.split("@")[0]:r.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};n.chromeStackLineParser=c,n.defaultStackLineParsers=S,n.defaultStackParser=y,n.geckoStackLineParser=d,n.opera10StackLineParser=_,n.opera11StackLineParser=g,n.winjsStackLineParser=f}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/stack-parsers.js"}],[3099,{"../debug-build.js":3079,"../helpers.js":3083,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("../debug-build.js"),o=e("../helpers.js");n.registerBackgroundTabDetection=function(){o.WINDOW&&o.WINDOW.document?o.WINDOW.document.addEventListener("visibilitychange",(()=>{const e=r.getActiveSpan();if(!e)return;const t=r.getRootSpan(e);if(o.WINDOW.document.hidden&&t){const e="cancelled",{op:n,status:o}=r.spanToJSON(t);i.DEBUG_BUILD&&s.logger.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),o||t.setStatus({code:r.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):i.DEBUG_BUILD&&s.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/tracing/backgroundtab.js"}],[3100,{"../debug-build.js":3079,"../helpers.js":3083,"./backgroundtab.js":3099,"./request.js":3101,"@sentry-internal/browser-utils":3048,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),i=e("@sentry/utils"),o=e("../debug-build.js"),a=e("../helpers.js"),c=e("./backgroundtab.js"),u=e("./request.js"),l="BrowserTracing",d={...s.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...u.defaultRequestInstrumentationOptions};function p(e,t,n){e.emit("startPageLoadSpan",t,n),s.getCurrentScope().setTransactionName(t.name);const r=s.getActiveSpan();return"pageload"===(r&&s.spanToJSON(r).op)?r:undefined}function f(e,t){s.getIsolationScope().setPropagationContext(i.generatePropagationContext()),s.getCurrentScope().setPropagationContext(i.generatePropagationContext()),e.emit("startNavigationSpan",t),s.getCurrentScope().setTransactionName(t.name);const n=s.getActiveSpan();return"navigation"===(n&&s.spanToJSON(n).op)?n:undefined}function h(e){const t=i.getDomElement(`meta[name=${e}]`);return t?t.getAttribute("content"):undefined}n.BROWSER_TRACING_INTEGRATION_ID=l,n.browserTracingIntegration=(e={})=>{s.registerSpanErrorInstrumentation();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:_,_experiments:{enableInteractions:m,enableStandaloneClsSpans:g},beforeStartSpan:S,idleTimeout:y,finalTimeout:E,childSpanTimeout:b,markBackgroundSpan:T,traceFetch:R,traceXHR:I,shouldCreateSpanForRequest:v,enableHTTPTimings:O,instrumentPageLoad:A,instrumentNavigation:w}={...d,...e},N=r.startTrackingWebVitals({recordClsStandaloneSpans:g||!1});t&&r.startTrackingINP(),_&&i.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?r.startTrackingLongAnimationFrames():n&&r.startTrackingLongTasks(),m&&r.startTrackingInteractions();const C={name:undefined,source:undefined};function j(e,t){const n="pageload"===t.op,i=S?S(t):t,o=i.attributes||{};t.name!==i.name&&(o[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",i.attributes=o),C.name=i.name,C.source=o[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const c=s.startIdleSpan(i,{idleTimeout:y,finalTimeout:E,childSpanTimeout:b,disableAutoFinish:n,beforeSpanEnd:e=>{N(),r.addPerformanceEntries(e,{recordClsOnPageloadSpan:!g})}});function u(){["interactive","complete"].includes(a.WINDOW.document.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}return n&&a.WINDOW.document&&(a.WINDOW.document.addEventListener("readystatechange",(()=>{u()})),u()),c}return{name:l,afterAllSetup(e){let n,l=a.WINDOW.location&&a.WINDOW.location.href;e.on("startNavigationSpan",(t=>{s.getClient()===e&&(n&&!s.spanToJSON(n).timestamp&&(o.DEBUG_BUILD&&i.logger.log(`[Tracing] Finishing current root span with op: ${s.spanToJSON(n).op}`),n.end()),n=j(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,r={})=>{if(s.getClient()!==e)return;n&&!s.spanToJSON(n).timestamp&&(o.DEBUG_BUILD&&i.logger.log(`[Tracing] Finishing current root span with op: ${s.spanToJSON(n).op}`),n.end());const a=r.sentryTrace||h("sentry-trace"),c=r.baggage||h("baggage"),u=i.propagationContextFromHeaders(a,c);s.getCurrentScope().setPropagationContext(u),n=j(e,{op:"pageload",...t})})),e.on("spanEnd",(e=>{const t=s.spanToJSON(e).op;if(e!==s.getRootSpan(e)||"navigation"!==t&&"pageload"!==t)return;const n=s.getCurrentScope(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:r.sampled!==undefined?r.sampled:s.spanIsSampled(e),dsc:r.dsc||s.getDynamicSamplingContextFromSpan(e)})})),a.WINDOW.location&&(A&&p(e,{name:a.WINDOW.location.pathname,startTime:i.browserPerformanceTimeOrigin?i.browserPerformanceTimeOrigin/1e3:undefined,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}}),w&&r.addHistoryInstrumentationHandler((({to:t,from:n})=>{n===undefined&&l&&-1!==l.indexOf(t)?l=undefined:n!==t&&(l=undefined,f(e,{name:a.WINDOW.location.pathname,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}}))}))),T&&c.registerBackgroundTabDetection(),m&&function(e,t,n,r){let c;const u=()=>{const a="ui.action.click",u=s.getActiveSpan(),l=u&&s.getRootSpan(u);if(l){const e=s.spanToJSON(l).op;if(["navigation","pageload"].includes(e))return o.DEBUG_BUILD&&i.logger.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`),undefined}if(c&&(c.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),c.end(),c=undefined),!r.name)return o.DEBUG_BUILD&&i.logger.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`),undefined;c=s.startIdleSpan({name:r.name,op:a,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};a.WINDOW.document&&addEventListener("click",u,{once:!1,capture:!0})}(y,E,b,C),t&&r.registerInpInteractionListener(),u.instrumentOutgoingRequests(e,{traceFetch:R,traceXHR:I,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:O})}}},n.getMetaContent=h,n.startBrowserTracingNavigationSpan=f,n.startBrowserTracingPageLoadSpan=p}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/tracing/browserTracingIntegration.js"}],[3101,{"../helpers.js":3083,"@sentry-internal/browser-utils":3048,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),i=e("@sentry/utils"),o=e("../helpers.js"),a=new WeakMap,c=new Map,u={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function l(e){const{url:t}=s.spanToJSON(e).data||{};if(!t||"string"!=typeof t)return;const n=r.addPerformanceInstrumentationHandler("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){(function(e){const{name:t,version:n}=d(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!i.browserPerformanceTimeOrigin)return r;return[...r,["http.request.redirect_start",p(e.redirectStart)],["http.request.fetch_start",p(e.fetchStart)],["http.request.domain_lookup_start",p(e.domainLookupStart)],["http.request.domain_lookup_end",p(e.domainLookupEnd)],["http.request.connect_start",p(e.connectStart)],["http.request.secure_connection_start",p(e.secureConnectionStart)],["http.request.connection_end",p(e.connectEnd)],["http.request.request_start",p(e.requestStart)],["http.request.response_start",p(e.responseStart)],["http.request.response_end",p(e.responseEnd)]]})(r).forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function d(e){let t="unknown",n="unknown",r="";for(const s of e){if("/"===s){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function p(e=0){return((i.browserPerformanceTimeOrigin||performance.timeOrigin)+e)/1e3}function f(e,t){const n=o.WINDOW.location&&o.WINDOW.location.href;if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch(e){return!1}const o=r.origin===s;return t?i.stringMatchesSomePattern(r.toString(),t)||o&&i.stringMatchesSomePattern(r.pathname,t):o}{const n=!!e.match(/^\/(?!\/)/);return t?i.stringMatchesSomePattern(e,t):n}}function h(e,t,n,o){const a=e.xhr,c=a&&a[r.SENTRY_XHR_DATA_KEY];if(!a||a.__sentry_own_request__||!c)return undefined;const u=s.hasTracingEnabled()&&t(c.url);if(e.endTimestamp&&u){const e=a.__sentry_xhr_span_id__;if(!e)return;const t=o[e];return t&&c.status_code!==undefined&&(s.setHttpStatus(t,c.status_code),t.end(),delete o[e]),undefined}const l=_(c.url),d=l?i.parseUrl(l).host:undefined,p=!!s.getActiveSpan(),f=u&&p?s.startInactiveSpan({name:`${c.method} ${c.url}`,attributes:{type:"xhr","http.method":c.method,"http.url":l,url:c.url,"server.address":d,[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new s.SentryNonRecordingSpan;a.__sentry_xhr_span_id__=f.spanContext().spanId,o[a.__sentry_xhr_span_id__]=f;const h=s.getClient();return a.setRequestHeader&&n(c.url)&&h&&function(e,t,n){const r=s.getCurrentScope(),o=s.getIsolationScope(),{traceId:a,spanId:c,sampled:u,dsc:l}={...o.getPropagationContext(),...r.getPropagationContext()},d=n&&s.hasTracingEnabled()?s.spanToTraceHeader(n):i.generateSentryTraceHeader(a,c,u),p=i.dynamicSamplingContextToSentryBaggageHeader(l||(n?s.getDynamicSamplingContextFromSpan(n):s.getDynamicSamplingContextFromClient(a,t)));!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(i.BAGGAGE_HEADER_NAME,n)}catch(e){}}(e,d,p)}(a,h,s.hasTracingEnabled()&&p?f:undefined),f}function _(e){try{return new URL(e,o.WINDOW.location.origin).href}catch(e){return undefined}}n.defaultRequestInstrumentationOptions=u,n.extractNetworkProtocol=d,n.instrumentOutgoingRequests=function(e,t){const{traceFetch:n,traceXHR:o,shouldCreateSpanForRequest:d,enableHTTPTimings:p,tracePropagationTargets:m}={traceFetch:u.traceFetch,traceXHR:u.traceXHR,...t},g="function"==typeof d?d:e=>!0,S=e=>f(e,m),y={};n&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=c.get(e.span_id);t&&(e.timestamp=t/1e3,c.delete(e.span_id))}})),e))),i.addFetchEndInstrumentationHandler((e=>{if(e.response){const t=a.get(e.response);t&&e.endTimestamp&&c.set(t,e.endTimestamp)}})),i.addFetchInstrumentationHandler((e=>{const t=s.instrumentFetchRequest(e,g,S,y);if(e.response&&e.fetchData.__span&&a.set(e.response,e.fetchData.__span),t){const n=_(e.fetchData.url),r=n?i.parseUrl(n).host:undefined;t.setAttributes({"http.url":n,"server.address":r})}p&&t&&l(t)}))),o&&r.addXhrInstrumentationHandler((e=>{const t=h(e,g,S,y);p&&t&&l(t)}))},n.shouldAttachHeaders=f,n.xhrCallback=h}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/tracing/request.js"}],[3102,{"@sentry-internal/browser-utils":3048,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),i=e("@sentry/utils");n.makeFetchTransport=function(e,t=r.getNativeImplementation("fetch")){let n=0,o=0;return s.createTransport(e,(function(s){const a=s.body.length;n+=a,o++;const c={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&o<15,...e.fetchOptions};if(!t)return r.clearCachedImplementation("fetch"),i.rejectedSyncPromise("No fetch implementation available");try{return t(e.url,c).then((e=>(n-=a,o--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return r.clearCachedImplementation("fetch"),n-=a,o--,i.rejectedSyncPromise(e)}}))}}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/transports/fetch.js"}],[3103,{"./fetch.js":3102,"@sentry/core":3123,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),i=e("./fetch.js");function o(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function a(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=o(n);return e=>r.then((n=>e(n.transaction(t,"readwrite").objectStore(t))))}function c(e){return o(e.getAllKeys())}function u(e,t,n){return e((e=>c(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),o(e.transaction)}))))}function l(e,t,n){return e((e=>c(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),o(e.transaction)}))))}function d(e){return e((e=>c(e).then((t=>{const n=t[0];return null==n?undefined:o(e.get(n)).then((t=>(e.delete(n),o(e.transaction).then((()=>t)))))}))))}function p(e){let t;function n(){return t==undefined&&(t=a(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const r=await s.serializeEnvelope(t);await u(n(),r,e.maxQueueSize||30)}catch(e){}},unshift:async t=>{try{const r=await s.serializeEnvelope(t);await l(n(),r,e.maxQueueSize||30)}catch(e){}},shift:async()=>{try{const e=await d(n());if(e)return s.parseEnvelope(e)}catch(e){}return undefined}}}n.createStore=a,n.makeBrowserOfflineTransport=function(e=i.makeFetchTransport){return function(e){return t=>e({...t,createStore:p})}(r.makeOfflineTransport(e))},n.push=u,n.shift=d,n.unshift=l}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/transports/offline.js"}],[3104,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");n.createUserFeedbackEnvelope=function(e,{metadata:t,tunnel:n,dsn:s}){const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!s&&{dsn:r.dsnToString(s)}},o=function(e){return[{type:"user_report"},e]}(e);return r.createEnvelope(i,[o])}}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/userfeedback.js"}],[3105,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){n.lazyLoadIntegration=async function(e,t){throw new Error("Use of @sentry/browser's lazyLoadIntegration function is not supported by MetaMask Extension")}}}},{package:"@sentry/browser",file:"node_modules/@sentry/browser/build/npm/cjs/utils/lazyLoadIntegration.js"}],[3106,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s="7";function i(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}n.getEnvelopeEndpointWithUrlEncodedAuth=function(e,t,n){return t||`${function(e){return`${i(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return r.urlEncode({sentry_key:e.publicKey,sentry_version:s,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,n)}`},n.getReportDialogEndpoint=function(e,t){const n=r.makeDsn(e);if(!n)return"";const s=`${i(n)}embed/error-page/`;let o=`dsn=${r.dsnToString(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${s}?${o}`}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/api.js"}],[3107,{"../carrier.js":3111,"./stackStrategy.js":3108},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../carrier.js"),s=e("./stackStrategy.js");n.getAsyncContextStrategy=function(e){const t=r.getSentryCarrier(e);return t.acs?t.acs:s.getStackAsyncContextStrategy()},n.setAsyncContextStrategy=function(e){const t=r.getMainCarrier();r.getSentryCarrier(t).acs=e}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/asyncContext/index.js"}],[3108,{"../carrier.js":3111,"../defaultScopes.js":3116,"../scope.js":3149,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../defaultScopes.js"),i=e("../scope.js"),o=e("../carrier.js");class a{constructor(e,t){let n,r;n=e||new i.Scope,r=t||new i.Scope,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return r.isThenable(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){const e=o.getMainCarrier(),t=o.getSentryCarrier(e);return t.stack=t.stack||new a(s.getDefaultCurrentScope(),s.getDefaultIsolationScope())}function u(e){return c().withScope(e)}function l(e,t){const n=c();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function d(e){return c().withScope((()=>e(c().getIsolationScope())))}n.AsyncContextStack=a,n.getStackAsyncContextStrategy=function(){return{withIsolationScope:d,withScope:u,withSetScope:l,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/asyncContext/stackStrategy.js"}],[3109,{"./api.js":3106,"./currentScopes.js":3114,"./debug-build.js":3115,"./envelope.js":3117,"./integration.js":3124,"./session.js":3153,"./tracing/dynamicSamplingContext.js":3155,"./utils/parseSampleRate.js":3177,"./utils/prepareEvent.js":3178,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./api.js"),i=e("./currentScopes.js"),o=e("./debug-build.js"),a=e("./envelope.js"),c=e("./integration.js"),u=e("./session.js"),l=e("./tracing/dynamicSamplingContext.js"),d=e("./utils/parseSampleRate.js"),p=e("./utils/prepareEvent.js"),f="Not capturing exception because it's already been captured.";function h(e){return e.type===undefined}function _(e){return"transaction"===e.type}n.BaseClient=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=r.makeDsn(e.dsn):o.DEBUG_BUILD&&r.logger.warn("No DSN provided, client will not send events."),this._dsn){const t=s.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:undefined);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const s=r.uuid4();if(r.checkOrSetAlreadyCaught(e))return o.DEBUG_BUILD&&r.logger.log(f),s;const i={event_id:s,...t};return this._process(this.eventFromException(e,i).then((e=>this._captureEvent(e,i,n)))),i.event_id}captureMessage(e,t,n,s){const i={event_id:r.uuid4(),...n},o=r.isParameterizedString(e)?e:String(e),a=r.isPrimitive(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then((e=>this._captureEvent(e,i,s)))),i.event_id}captureEvent(e,t,n){const s=r.uuid4();if(t&&t.originalException&&r.checkOrSetAlreadyCaught(t.originalException))return o.DEBUG_BUILD&&r.logger.log(f),s;const i={event_id:s,...t},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||n)),i.event_id}captureSession(e){"string"!=typeof e.release?o.DEBUG_BUILD&&r.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),u.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):r.resolvedSyncPromise(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];c.setupIntegration(this,e,this._integrations),t||c.afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=a.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=r.addItemToEnvelope(n,r.createAttachmentEnvelopeItem(e));const s=this.sendEnvelope(n);s&&s.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=a.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const s="number"==typeof n?n:1,i=`${e}:${t}`;o.DEBUG_BUILD&&r.logger.log(`Recording outcome: "${i}"${s>1?` (${s} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+s}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(o.DEBUG_BUILD&&r.logger.error("Error while sending event:",e),e))):(o.DEBUG_BUILD&&r.logger.error("Transport disabled"),r.resolvedSyncPromise({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=c.setupIntegrations(this,e),c.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1;const s=t.exception&&t.exception.values;if(s){r=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(u.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new r.SyncPromise((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&this._transport!==undefined}_prepareEvent(e,t,n,s=i.getIsolationScope()){const o=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||s.setLastEventId(e.event_id||t.event_id),p.prepareEvent(o,e,t,n,this,s).then((e=>{if(null===e)return e;const t={...s.getPropagationContext(),...n?n.getPropagationContext():undefined};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:n,spanId:s,parentSpanId:i,dsc:o}=t;e.contexts={trace:r.dropUndefinedKeys({trace_id:n,span_id:s,parent_span_id:i}),...e.contexts};const a=o||l.getDynamicSamplingContextFromClient(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(o.DEBUG_BUILD){const t=e;"log"===t.logLevel?r.logger.log(t.message):r.logger.warn(t)}return undefined}))}_processEvent(e,t,n){const s=this.getOptions(),{sampleRate:i}=s,o=_(e),a=h(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===i?undefined:d.parseSampleRate(i);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),r.rejectedSyncPromise(new r.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const p="replay_event"===c?"replay":c,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,f).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",p,e),new r.SentryError("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const i=function(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o}=t;if(h(n)&&s)return s(n,r);if(_(n)){if(n.spans&&o){const t=[];for(const r of n.spans){const n=o(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(i){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(n,r)}}return n}(this,s,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(r.isThenable(e))return e.then((e=>{if(!r.isPlainObject(e)&&null!==e)throw new r.SentryError(n);return e}),(e=>{throw new r.SentryError(`${t} rejected with ${e}`)}));if(!r.isPlainObject(e)&&null!==e)throw new r.SentryError(n);return e}(i,u)})).then((s=>{if(null===s){if(this.recordDroppedEvent("before_send",p,e),o){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new r.SentryError(`${u} returned \`null\`, will not send event.`,"log")}const i=n&&n.getSession();if(!o&&i&&this._updateSessionFromEvent(i,s),o){const e=(s.sdkProcessingMetadata&&s.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=s.transaction_info;if(o&&a&&s.transaction!==e.transaction){const e="custom";s.transaction_info={...a,source:e}}return this.sendEvent(s,t),s})).then(null,(e=>{if(e instanceof r.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new r.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}}))}_flushOutcomes(){o.DEBUG_BUILD&&r.logger.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(o.DEBUG_BUILD&&r.logger.log("No outcomes to send"));if(!this._dsn)return void(o.DEBUG_BUILD&&r.logger.log("No dsn provided, will not send outcomes"));o.DEBUG_BUILD&&r.logger.log("Sending outcomes:",e);const t=r.createClientReportEnvelope(e,this._options.tunnel&&r.dsnToString(this._dsn));this.sendEnvelope(t)}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/baseclient.js"}],[3110,{"./currentScopes.js":3114,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),i=100;n.addBreadcrumb=function(e,t){const n=s.getClient(),o=s.getIsolationScope();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:c=i}=n.getOptions();if(c<=0)return;const u={timestamp:r.dateTimestampInSeconds(),...e},l=a?r.consoleSandbox((()=>a(u,t))):u;null!==l&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),o.addBreadcrumb(l,c))}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/breadcrumbs.js"}],[3111,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");function s(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.SDK_VERSION,t[r.SDK_VERSION]=t[r.SDK_VERSION]||{}}n.getMainCarrier=function(){return s(r.GLOBAL_OBJ),r.GLOBAL_OBJ},n.getSentryCarrier=s}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/carrier.js"}],[3112,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");n.createCheckInEnvelope=function(e,t,n,s,i){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),s&&i&&(o.dsn=r.dsnToString(i)),t&&(o.trace=r.dropUndefinedKeys(t));const a=function(e){return[{type:"check_in"},e]}(e);return r.createEnvelope(o,[a])}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/checkin.js"}],[3113,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.DEFAULT_ENVIRONMENT="production"}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/constants.js"}],[3114,{"./asyncContext/index.js":3107,"./carrier.js":3111,"./scope.js":3149,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./asyncContext/index.js"),i=e("./carrier.js"),o=e("./scope.js");function a(){const e=i.getMainCarrier();return s.getAsyncContextStrategy(e).getCurrentScope()}n.getClient=function(){return a().getClient()},n.getCurrentScope=a,n.getGlobalScope=function(){return r.getGlobalSingleton("globalScope",(()=>new o.Scope))},n.getIsolationScope=function(){const e=i.getMainCarrier();return s.getAsyncContextStrategy(e).getIsolationScope()},n.withIsolationScope=function(...e){const t=i.getMainCarrier(),n=s.getAsyncContextStrategy(t);if(2===e.length){const[t,r]=e;return t?n.withSetIsolationScope(t,r):n.withIsolationScope(r)}return n.withIsolationScope(e[0])},n.withScope=function(...e){const t=i.getMainCarrier(),n=s.getAsyncContextStrategy(t);if(2===e.length){const[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/currentScopes.js"}],[3115,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;n.DEBUG_BUILD=r}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/debug-build.js"}],[3116,{"./scope.js":3149,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./scope.js");n.getDefaultCurrentScope=function(){return r.getGlobalSingleton("defaultCurrentScope",(()=>new s.Scope))},n.getDefaultIsolationScope=function(){return r.getGlobalSingleton("defaultIsolationScope",(()=>new s.Scope))}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/defaultScopes.js"}],[3117,{"./tracing/dynamicSamplingContext.js":3155,"./utils/spanUtils.js":3181,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./tracing/dynamicSamplingContext.js"),i=e("./utils/spanUtils.js");n.createEventEnvelope=function(e,t,n,s){const i=r.getSdkMetadataForEnvelopeHeader(n),o=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){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,n&&n.sdk);const a=r.createEventEnvelopeHeaders(e,i,s,t);delete e.sdkProcessingMetadata;const c=[{type:o},e];return r.createEnvelope(a,[c])},n.createSessionEnvelope=function(e,t,n,s){const i=r.getSdkMetadataForEnvelopeHeader(n),o={sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!s&&t&&{dsn:r.dsnToString(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return r.createEnvelope(o,[a])},n.createSpanEnvelope=function(e,t){const n=s.getDynamicSamplingContextFromSpan(e[0]),o=t&&t.getDsn(),a=t&&t.getOptions().tunnel,c={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!a&&o&&{dsn:r.dsnToString(o)}},u=t&&t.getOptions().beforeSendSpan,l=u?e=>u(i.spanToJSON(e)):e=>i.spanToJSON(e),d=[];for(const t of e){const e=l(t);e&&d.push(r.createSpanEnvelopeItem(e))}return r.createEnvelope(c,d)}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/envelope.js"}],[3118,{"./debug-build.js":3115,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./debug-build.js");n.notifyEventProcessors=function e(t,n,i,o=0){return new r.SyncPromise(((a,c)=>{const u=t[o];if(null===n||"function"!=typeof u)a(n);else{const l=u({...n},i);s.DEBUG_BUILD&&u.id&&null===l&&r.logger.log(`Event processor "${u.id}" dropped event`),r.isThenable(l)?l.then((n=>e(t,n,i,o+1).then(a))).then(null,c):e(t,l,i,o+1).then(a).then(null,c)}}))}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/eventProcessors.js"}],[3119,{"./constants.js":3113,"./currentScopes.js":3114,"./debug-build.js":3115,"./session.js":3153,"./utils/prepareEvent.js":3178,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./constants.js"),i=e("./currentScopes.js"),o=e("./debug-build.js"),a=e("./session.js"),c=e("./utils/prepareEvent.js");function u(e,t){const n=i.getCurrentScope(),s=i.getClient();if(s){if(s.captureCheckIn)return s.captureCheckIn(e,t,n);o.DEBUG_BUILD&&r.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else o.DEBUG_BUILD&&r.logger.warn("Cannot capture check-in. No client defined.");return r.uuid4()}function l(){const e=i.getIsolationScope(),t=i.getCurrentScope(),n=t.getSession()||e.getSession();n&&a.closeSession(n),d(),e.setSession(),t.setSession()}function d(){const e=i.getIsolationScope(),t=i.getCurrentScope(),n=i.getClient(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}n.addEventProcessor=function(e){i.getIsolationScope().addEventProcessor(e)},n.captureCheckIn=u,n.captureEvent=function(e,t){return i.getCurrentScope().captureEvent(e,t)},n.captureException=function(e,t){return i.getCurrentScope().captureException(e,c.parseEventHintOrCaptureContext(t))},n.captureMessage=function(e,t){const n="string"==typeof t?t:undefined,r="string"!=typeof t?{captureContext:t}:undefined;return i.getCurrentScope().captureMessage(e,n,r)},n.captureSession=function(e=!1){e?l():d()},n.close=async function(e){const t=i.getClient();return t?t.close(e):(o.DEBUG_BUILD&&r.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},n.endSession=l,n.flush=async function(e){const t=i.getClient();return t?t.flush(e):(o.DEBUG_BUILD&&r.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},n.isEnabled=function(){const e=i.getClient();return!!e&&!1!==e.getOptions().enabled&&!!e.getTransport()},n.isInitialized=function(){return!!i.getClient()},n.lastEventId=function(){return i.getIsolationScope().lastEventId()},n.setContext=function(e,t){i.getIsolationScope().setContext(e,t)},n.setExtra=function(e,t){i.getIsolationScope().setExtra(e,t)},n.setExtras=function(e){i.getIsolationScope().setExtras(e)},n.setTag=function(e,t){i.getIsolationScope().setTag(e,t)},n.setTags=function(e){i.getIsolationScope().setTags(e)},n.setUser=function(e){i.getIsolationScope().setUser(e)},n.startSession=function(e){const t=i.getClient(),n=i.getIsolationScope(),o=i.getCurrentScope(),{release:c,environment:u=s.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:d}=r.GLOBAL_OBJ.navigator||{},p=a.makeSession({release:c,environment:u,user:o.getUser()||n.getUser(),...d&&{userAgent:d},...e}),f=n.getSession();return f&&"ok"===f.status&&a.updateSession(f,{status:"exited"}),l(),n.setSession(p),o.setSession(p),p},n.withMonitor=function(e,t,n){const s=u({monitorSlug:e,status:"in_progress"},n),o=r.timestampInSeconds();function a(t){u({monitorSlug:e,status:t,checkInId:s,duration:r.timestampInSeconds()-o})}return i.withIsolationScope((()=>{let e;try{e=t()}catch(e){throw a("error"),e}return r.isThenable(e)?Promise.resolve(e).then((()=>{a("ok")}),(()=>{a("error")})):a("ok"),e}))}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/exports.js"}],[3120,{"./currentScopes.js":3114,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js");n.captureFeedback=function(e,t={},n=s.getCurrentScope()){const{message:i,name:o,email:a,url:c,source:u,associatedEventId:l,tags:d}=e,p={contexts:{feedback:r.dropUndefinedKeys({contact_email:a,name:o,message:i,url:c,source:u,associated_event_id:l})},type:"feedback",level:"info",tags:d},f=n&&n.getClient()||s.getClient();return f&&f.emit("beforeSendFeedback",p,t),n.captureEvent(p,t)}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/feedback.js"}],[3121,{"./currentScopes.js":3114,"./debug-build.js":3115,"./semanticAttributes.js":3151,"./tracing/dynamicSamplingContext.js":3155,"./tracing/errors.js":3156,"./tracing/sentryNonRecordingSpan.js":3162,"./tracing/spanstatus.js":3164,"./tracing/trace.js":3165,"./utils/hasTracingEnabled.js":3173,"./utils/spanUtils.js":3181,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),i=e("./semanticAttributes.js");e("./tracing/errors.js"),e("./debug-build.js");const o=e("./utils/hasTracingEnabled.js"),a=e("./utils/spanUtils.js"),c=e("./tracing/sentryNonRecordingSpan.js"),u=e("./tracing/spanstatus.js"),l=e("./tracing/trace.js"),d=e("./tracing/dynamicSamplingContext.js");function p(e,t,n,i,o){const c=s.getIsolationScope(),{traceId:u,spanId:l,sampled:p,dsc:f}={...c.getPropagationContext(),...n.getPropagationContext()},h=o?a.spanToTraceHeader(o):r.generateSentryTraceHeader(u,l,p),_=r.dynamicSamplingContextToSentryBaggageHeader(f||(o?d.getDynamicSamplingContextFromSpan(o):d.getDynamicSamplingContextFromClient(u,t))),m=i.headers||("undefined"!=typeof Request&&r.isInstanceOf(e,Request)?e.headers:undefined);if(m){if("undefined"!=typeof Headers&&r.isInstanceOf(m,Headers)){const e=new Headers(m);return e.append("sentry-trace",h),_&&e.append(r.BAGGAGE_HEADER_NAME,_),e}if(Array.isArray(m)){const e=[...m,["sentry-trace",h]];return _&&e.push([r.BAGGAGE_HEADER_NAME,_]),e}{const e="baggage"in m?m.baggage:undefined,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),_&&t.push(_),{...m,"sentry-trace":h,baggage:t.length>0?t.join(","):undefined}}}return{"sentry-trace":h,baggage:_}}n.addTracingHeadersToFetchRequest=p,n.instrumentFetchRequest=function(e,t,n,d,f="auto.http.browser"){if(!e.fetchData)return undefined;const h=o.hasTracingEnabled()&&t(e.fetchData.url);if(e.endTimestamp&&h){const t=e.fetchData.__span;if(!t)return;const n=d[t];return n&&(!function(e,t){if(t.response){u.setHttpStatus(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:u.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(n,e),delete d[t]),undefined}const _=s.getCurrentScope(),m=s.getClient(),{method:g,url:S}=e.fetchData,y=function(e){try{return new URL(e).href}catch(e){return undefined}}(S),E=y?r.parseUrl(y).host:undefined,b=!!a.getActiveSpan(),T=h&&b?l.startInactiveSpan({name:`${g} ${S}`,attributes:{url:S,type:"fetch","http.method":g,"http.url":y,"server.address":E,[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:f,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new c.SentryNonRecordingSpan;if(e.fetchData.__span=T.spanContext().spanId,d[T.spanContext().spanId]=T,n(e.fetchData.url)&&m){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=p(t,m,_,n,o.hasTracingEnabled()&&b?T:undefined)}return T}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/fetch.js"}],[3122,{"./breadcrumbs.js":3110,"./currentScopes.js":3114,"./exports.js":3119},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./breadcrumbs.js"),s=e("./currentScopes.js"),i=e("./exports.js");function o(){return{bindClient(e){s.getCurrentScope().setClient(e)},withScope:s.withScope,getClient:()=>s.getClient(),getScope:s.getCurrentScope,getIsolationScope:s.getIsolationScope,captureException:(e,t)=>s.getCurrentScope().captureException(e,t),captureMessage:(e,t,n)=>s.getCurrentScope().captureMessage(e,t,n),captureEvent:i.captureEvent,addBreadcrumb:r.addBreadcrumb,setUser:i.setUser,setTags:i.setTags,setTag:i.setTag,setExtra:i.setExtra,setExtras:i.setExtras,setContext:i.setContext,getIntegration(e){const t=s.getClient();return t&&t.getIntegrationByName(e.id)||null},startSession:i.startSession,endSession:i.endSession,captureSession(e){if(e)return i.endSession();!function(){const e=s.getCurrentScope(),t=s.getClient(),n=e.getSession();t&&n&&t.captureSession(n)}()}}}const a=o;n.getCurrentHub=a,n.getCurrentHubShim=o}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/getCurrentHubShim.js"}],[3123,{"./api.js":3106,"./asyncContext/index.js":3107,"./baseclient.js":3109,"./breadcrumbs.js":3110,"./carrier.js":3111,"./checkin.js":3112,"./constants.js":3113,"./currentScopes.js":3114,"./defaultScopes.js":3116,"./envelope.js":3117,"./eventProcessors.js":3118,"./exports.js":3119,"./feedback.js":3120,"./fetch.js":3121,"./getCurrentHubShim.js":3122,"./integration.js":3124,"./integrations/captureconsole.js":3125,"./integrations/debug.js":3126,"./integrations/dedupe.js":3127,"./integrations/extraerrordata.js":3128,"./integrations/functiontostring.js":3129,"./integrations/inboundfilters.js":3130,"./integrations/linkederrors.js":3131,"./integrations/metadata.js":3132,"./integrations/requestdata.js":3133,"./integrations/rewriteframes.js":3134,"./integrations/sessiontiming.js":3135,"./integrations/third-party-errors-filter.js":3136,"./integrations/zoderrors.js":3137,"./metrics/browser-aggregator.js":3140,"./metrics/exports-default.js":3143,"./metrics/exports.js":3144,"./metrics/metric-summary.js":3146,"./profiling.js":3148,"./scope.js":3149,"./sdk.js":3150,"./semanticAttributes.js":3151,"./server-runtime-client.js":3152,"./session.js":3153,"./sessionflusher.js":3154,"./tracing/dynamicSamplingContext.js":3155,"./tracing/errors.js":3156,"./tracing/hubextensions.js":3157,"./tracing/idleSpan.js":3158,"./tracing/logSpans.js":3159,"./tracing/measurement.js":3160,"./tracing/sampling.js":3161,"./tracing/sentryNonRecordingSpan.js":3162,"./tracing/sentrySpan.js":3163,"./tracing/spanstatus.js":3164,"./tracing/trace.js":3165,"./tracing/utils.js":3166,"./transports/base.js":3167,"./transports/multiplexed.js":3168,"./transports/offline.js":3169,"./trpc.js":3170,"./utils/applyScopeDataToEvent.js":3171,"./utils/handleCallbackErrors.js":3172,"./utils/hasTracingEnabled.js":3173,"./utils/isSentryRequestUrl.js":3174,"./utils/meta.js":3175,"./utils/parameterize.js":3176,"./utils/parseSampleRate.js":3177,"./utils/prepareEvent.js":3178,"./utils/sdkMetadata.js":3179,"./utils/spanUtils.js":3181,"./utils/traceData.js":3182,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./tracing/errors.js"),s=e("./tracing/utils.js"),i=e("./tracing/hubextensions.js"),o=e("./tracing/idleSpan.js"),a=e("./tracing/sentrySpan.js"),c=e("./tracing/sentryNonRecordingSpan.js"),u=e("./tracing/spanstatus.js"),l=e("./tracing/trace.js"),d=e("./tracing/dynamicSamplingContext.js"),p=e("./tracing/measurement.js"),f=e("./tracing/sampling.js"),h=e("./tracing/logSpans.js"),_=e("./semanticAttributes.js"),m=e("./envelope.js"),g=e("./exports.js"),S=e("./currentScopes.js"),y=e("./defaultScopes.js"),E=e("./asyncContext/index.js"),b=e("./carrier.js"),T=e("./session.js"),R=e("./sessionflusher.js"),I=e("./scope.js"),v=e("./eventProcessors.js"),O=e("./api.js"),A=e("./baseclient.js"),w=e("./server-runtime-client.js"),N=e("./sdk.js"),C=e("./transports/base.js"),j=e("./transports/offline.js"),k=e("./transports/multiplexed.js"),D=e("./integration.js"),x=e("./utils/applyScopeDataToEvent.js"),L=e("./utils/prepareEvent.js"),M=e("./checkin.js"),P=e("./utils/hasTracingEnabled.js"),U=e("./utils/isSentryRequestUrl.js"),B=e("./utils/handleCallbackErrors.js"),F=e("./utils/parameterize.js"),H=e("./utils/spanUtils.js"),G=e("./utils/parseSampleRate.js"),z=e("./utils/sdkMetadata.js"),W=e("./utils/traceData.js"),$=e("./utils/meta.js"),V=e("./constants.js"),Y=e("./breadcrumbs.js"),q=e("./integrations/functiontostring.js"),X=e("./integrations/inboundfilters.js"),K=e("./integrations/linkederrors.js"),J=e("./integrations/metadata.js"),Z=e("./integrations/requestdata.js"),Q=e("./integrations/captureconsole.js"),ee=e("./integrations/debug.js"),te=e("./integrations/dedupe.js"),ne=e("./integrations/extraerrordata.js"),re=e("./integrations/rewriteframes.js"),se=e("./integrations/sessiontiming.js"),ie=e("./integrations/zoderrors.js"),oe=e("./integrations/third-party-errors-filter.js"),ae=e("./metrics/exports.js"),ce=e("./profiling.js"),ue=e("./metrics/exports-default.js"),le=e("./metrics/browser-aggregator.js"),de=e("./metrics/metric-summary.js"),pe=e("./fetch.js"),fe=e("./trpc.js"),he=e("./feedback.js"),_e=e("./getCurrentHubShim.js"),me=e("@sentry/utils");n.registerSpanErrorInstrumentation=r.registerSpanErrorInstrumentation,n.getCapturedScopesOnSpan=s.getCapturedScopesOnSpan,n.setCapturedScopesOnSpan=s.setCapturedScopesOnSpan,n.addTracingExtensions=i.addTracingExtensions,n.TRACING_DEFAULTS=o.TRACING_DEFAULTS,n.startIdleSpan=o.startIdleSpan,n.SentrySpan=a.SentrySpan,n.SentryNonRecordingSpan=c.SentryNonRecordingSpan,n.SPAN_STATUS_ERROR=u.SPAN_STATUS_ERROR,n.SPAN_STATUS_OK=u.SPAN_STATUS_OK,n.SPAN_STATUS_UNSET=u.SPAN_STATUS_UNSET,n.getSpanStatusFromHttpCode=u.getSpanStatusFromHttpCode,n.setHttpStatus=u.setHttpStatus,n.continueTrace=l.continueTrace,n.startInactiveSpan=l.startInactiveSpan,n.startNewTrace=l.startNewTrace,n.startSpan=l.startSpan,n.startSpanManual=l.startSpanManual,n.suppressTracing=l.suppressTracing,n.withActiveSpan=l.withActiveSpan,n.getDynamicSamplingContextFromClient=d.getDynamicSamplingContextFromClient,n.getDynamicSamplingContextFromSpan=d.getDynamicSamplingContextFromSpan,n.spanToBaggageHeader=d.spanToBaggageHeader,n.setMeasurement=p.setMeasurement,n.timedEventsToMeasurements=p.timedEventsToMeasurements,n.sampleSpan=f.sampleSpan,n.logSpanEnd=h.logSpanEnd,n.logSpanStart=h.logSpanStart,n.SEMANTIC_ATTRIBUTE_CACHE_HIT=_.SEMANTIC_ATTRIBUTE_CACHE_HIT,n.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=_.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,n.SEMANTIC_ATTRIBUTE_CACHE_KEY=_.SEMANTIC_ATTRIBUTE_CACHE_KEY,n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=_.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=_.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD,n.SEMANTIC_ATTRIBUTE_PROFILE_ID=_.SEMANTIC_ATTRIBUTE_PROFILE_ID,n.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=_.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=_.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=_.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,n.SEMANTIC_ATTRIBUTE_SENTRY_OP=_.SEMANTIC_ATTRIBUTE_SENTRY_OP,n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=_.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=_.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=_.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n.SEMANTIC_ATTRIBUTE_URL_FULL=_.SEMANTIC_ATTRIBUTE_URL_FULL,n.createEventEnvelope=m.createEventEnvelope,n.createSessionEnvelope=m.createSessionEnvelope,n.createSpanEnvelope=m.createSpanEnvelope,n.addEventProcessor=g.addEventProcessor,n.captureCheckIn=g.captureCheckIn,n.captureEvent=g.captureEvent,n.captureException=g.captureException,n.captureMessage=g.captureMessage,n.captureSession=g.captureSession,n.close=g.close,n.endSession=g.endSession,n.flush=g.flush,n.isEnabled=g.isEnabled,n.isInitialized=g.isInitialized,n.lastEventId=g.lastEventId,n.setContext=g.setContext,n.setExtra=g.setExtra,n.setExtras=g.setExtras,n.setTag=g.setTag,n.setTags=g.setTags,n.setUser=g.setUser,n.startSession=g.startSession,n.withMonitor=g.withMonitor,n.getClient=S.getClient,n.getCurrentScope=S.getCurrentScope,n.getGlobalScope=S.getGlobalScope,n.getIsolationScope=S.getIsolationScope,n.withIsolationScope=S.withIsolationScope,n.withScope=S.withScope,n.getDefaultCurrentScope=y.getDefaultCurrentScope,n.getDefaultIsolationScope=y.getDefaultIsolationScope,n.setAsyncContextStrategy=E.setAsyncContextStrategy,n.getMainCarrier=b.getMainCarrier,n.closeSession=T.closeSession,n.makeSession=T.makeSession,n.updateSession=T.updateSession,n.SessionFlusher=R.SessionFlusher,n.Scope=I.Scope,n.notifyEventProcessors=v.notifyEventProcessors,n.getEnvelopeEndpointWithUrlEncodedAuth=O.getEnvelopeEndpointWithUrlEncodedAuth,n.getReportDialogEndpoint=O.getReportDialogEndpoint,n.BaseClient=A.BaseClient,n.ServerRuntimeClient=w.ServerRuntimeClient,n.initAndBind=N.initAndBind,n.setCurrentClient=N.setCurrentClient,n.createTransport=C.createTransport,n.makeOfflineTransport=j.makeOfflineTransport,n.makeMultiplexedTransport=k.makeMultiplexedTransport,n.addIntegration=D.addIntegration,n.defineIntegration=D.defineIntegration,n.getIntegrationsToSetup=D.getIntegrationsToSetup,n.applyScopeDataToEvent=x.applyScopeDataToEvent,n.mergeScopeData=x.mergeScopeData,n.prepareEvent=L.prepareEvent,n.createCheckInEnvelope=M.createCheckInEnvelope,n.hasTracingEnabled=P.hasTracingEnabled,n.isSentryRequestUrl=U.isSentryRequestUrl,n.handleCallbackErrors=B.handleCallbackErrors,n.parameterize=F.parameterize,n.addChildSpanToSpan=H.addChildSpanToSpan,n.getActiveSpan=H.getActiveSpan,n.getRootSpan=H.getRootSpan,n.getSpanDescendants=H.getSpanDescendants,n.getStatusMessage=H.getStatusMessage,n.spanIsSampled=H.spanIsSampled,n.spanTimeInputToSeconds=H.spanTimeInputToSeconds,n.spanToJSON=H.spanToJSON,n.spanToTraceContext=H.spanToTraceContext,n.spanToTraceHeader=H.spanToTraceHeader,n.parseSampleRate=G.parseSampleRate,n.applySdkMetadata=z.applySdkMetadata,n.getTraceData=W.getTraceData,n.getTraceMetaTags=$.getTraceMetaTags,n.DEFAULT_ENVIRONMENT=V.DEFAULT_ENVIRONMENT,n.addBreadcrumb=Y.addBreadcrumb,n.functionToStringIntegration=q.functionToStringIntegration,n.inboundFiltersIntegration=X.inboundFiltersIntegration,n.linkedErrorsIntegration=K.linkedErrorsIntegration,n.moduleMetadataIntegration=J.moduleMetadataIntegration,n.requestDataIntegration=Z.requestDataIntegration,n.captureConsoleIntegration=Q.captureConsoleIntegration,n.debugIntegration=ee.debugIntegration,n.dedupeIntegration=te.dedupeIntegration,n.extraErrorDataIntegration=ne.extraErrorDataIntegration,n.rewriteFramesIntegration=re.rewriteFramesIntegration,n.sessionTimingIntegration=se.sessionTimingIntegration,n.zodErrorsIntegration=ie.zodErrorsIntegration,n.thirdPartyErrorFilterIntegration=oe.thirdPartyErrorFilterIntegration,n.metrics=ae.metrics,n.profiler=ce.profiler,n.metricsDefault=ue.metricsDefault,n.BrowserMetricsAggregator=le.BrowserMetricsAggregator,n.getMetricSummaryJsonForSpan=de.getMetricSummaryJsonForSpan,n.addTracingHeadersToFetchRequest=pe.addTracingHeadersToFetchRequest,n.instrumentFetchRequest=pe.instrumentFetchRequest,n.trpcMiddleware=fe.trpcMiddleware,n.captureFeedback=he.captureFeedback,n.getCurrentHub=_e.getCurrentHub,n.getCurrentHubShim=_e.getCurrentHubShim,n.SDK_VERSION=me.SDK_VERSION}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/index.js"}],[3124,{"./currentScopes.js":3114,"./debug-build.js":3115,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),i=e("./debug-build.js"),o=[];function a(e,t,n){if(n[t.name])i.DEBUG_BUILD&&r.logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===o.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),o.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}i.DEBUG_BUILD&&r.logger.log(`Integration installed: ${t.name}`)}}n.addIntegration=function(e){const t=s.getClient();t?t.addIntegration(e):i.DEBUG_BUILD&&r.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)},n.afterSetupIntegrations=function(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)},n.defineIntegration=function(e){return e},n.getIntegrationsToSetup=function(e){const t=e.defaultIntegrations||[],n=e.integrations;let s;t.forEach((e=>{e.isDefaultInstance=!0})),s=Array.isArray(n)?[...t,...n]:"function"==typeof n?r.arrayify(n(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(s),o=i.findIndex((e=>"Debug"===e.name));if(o>-1){const[e]=i.splice(o,1);i.push(e)}return i},n.installedIntegrations=o,n.setupIntegration=a,n.setupIntegrations=function(e,t){const n={};return t.forEach((t=>{t&&a(e,t,n)})),n}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integration.js"}],[3125,{"../currentScopes.js":3114,"../exports.js":3119,"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),i=e("../exports.js"),o=e("../integration.js"),a=o.defineIntegration(((e={})=>{const t=e.levels||r.CONSOLE_LEVELS;return{name:"CaptureConsole",setup(e){"console"in r.GLOBAL_OBJ&&r.addConsoleInstrumentationHandler((({args:n,level:o})=>{s.getClient()===e&&t.includes(o)&&function(e,t){const n={level:r.severityLevelFromString(t),extra:{arguments:e}};s.withScope((s=>{if(s.addEventProcessor((e=>(e.logger="console",r.addExceptionMechanism(e,{handled:!1,type:"console"}),e))),"assert"===t){if(!e[0]){const t=`Assertion failed: ${r.safeJoin(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),i.captureMessage(t,n)}return}const o=e.find((e=>e instanceof Error));if(o)return void i.captureException(o,n);const a=r.safeJoin(e," ");i.captureMessage(a,n)}))}(n,o)}))}}}));n.captureConsoleIntegration=a}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/captureconsole.js"}],[3126,{"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),i=s.defineIntegration(((e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:"Debug",setup(e){e.on("beforeSendEvent",((e,n)=>{t.debugger,r.consoleSandbox((()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))}))}))}}}));n.debugIntegration=i}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/debug.js"}],[3127,{"../debug-build.js":3115,"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),i=e("../debug-build.js"),o=s.defineIntegration((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(a(t,e))return i.DEBUG_BUILD&&r.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}));function a(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t)||!!function(e,t){const n=l(t),r=l(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t))}function c(e,t){let n=r.getFramesFromEvent(e),s=r.getFramesFromEvent(t);if(!n&&!s)return!0;if(n&&!s||!n&&s)return!1;if(s.length!==n.length)return!1;for(let e=0;e@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/dedupe.js"}],[3128,{"../debug-build.js":3115,"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),i=e("../debug-build.js"),o=s.defineIntegration(((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,s,o){const{maxValueLength:a=250}=o.getOptions();return function(e,t={},n,s,o){if(!t.originalException||!r.isError(t.originalException))return e;const a=t.originalException.name||t.originalException.constructor.name,c=function(e,t,n){try{const s=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const t of Object.keys(e)){if(-1!==s.indexOf(t))continue;const o=e[t];i[t]=r.isError(o)||"string"==typeof o?r.truncate(`${o}`,n):o}if(t&&e.cause!==undefined&&(i.cause=r.isError(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];i[e]=r.isError(n)?n.toString():n}}return i}catch(e){i.DEBUG_BUILD&&r.logger.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,s,o);if(c){const t={...e.contexts},s=r.normalize(c,n);return r.isPlainObject(s)&&(r.addNonEnumerableProperty(s,"__sentry_skip_normalization__",!0),t[a]=s),{...e,contexts:t}}return e}(e,s,t,n,a)}}}));n.extraErrorDataIntegration=o}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/extraerrordata.js"}],[3129,{"../currentScopes.js":3114,"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),i=e("../integration.js");let o;const a=new WeakMap,c=i.defineIntegration((()=>({name:"FunctionToString",setupOnce(){o=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=r.getOriginalFunction(this),n=a.has(s.getClient())&&t!==undefined?t:this;return o.apply(n,e)}}catch(e){}},setup(e){a.set(e,!0)}})));n.functionToStringIntegration=c}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/functiontostring.js"}],[3130,{"../debug-build.js":3115,"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),i=e("../integration.js"),o=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'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"],a=i.defineIntegration(((e={})=>({name:"InboundFilters",processEvent(t,n,i){const a=i.getOptions(),u=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:o],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal===undefined||e.ignoreInternal}}(e,a);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${r.getEventDescription(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some((e=>r.stringMatchesSomePattern(e,t)))}(e,t.ignoreErrors))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${r.getEventDescription(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${r.getEventDescription(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&r.stringMatchesSomePattern(n,t)}(e,t.ignoreTransactions))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${r.getEventDescription(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=c(e);return!!n&&r.stringMatchesSomePattern(n,t)}(e,t.denyUrls))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${r.getEventDescription(e)}.\nUrl: ${c(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=c(e);return!n||r.stringMatchesSomePattern(n,t)}(e,t.allowUrls))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${r.getEventDescription(e)}.\nUrl: ${c(e)}`),!0;return!1}(t,u)?null:t}})));function c(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return s.DEBUG_BUILD&&r.logger.error(`Cannot extract url for event ${r.getEventDescription(e)}`),null}}n.inboundFiltersIntegration=a}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/inboundfilters.js"}],[3131,{"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),i=s.defineIntegration(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,s,i){const o=i.getOptions();r.applyAggregateErrorsToEvent(r.exceptionFromError,o.stackParser,o.maxValueLength,n,t,e,s)}}}));n.linkedErrorsIntegration=i}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/linkederrors.js"}],[3132,{"../integration.js":3124,"../metadata.js":3138,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),i=e("../metadata.js"),o=s.defineIntegration((()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",(e=>{r.forEachEnvelopeItem(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:undefined;t&&(i.stripMetadataFromStackFrames(t),e[1]=t)}}))})),e.on("applyFrameMetadata",(t=>{if(t.type)return;const n=e.getOptions().stackParser;i.addMetadataToStackFrames(n,t)}))}})));n.moduleMetadataIntegration=o}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/metadata.js"}],[3133,{"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),i={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},o=s.defineIntegration(((e={})=>{const t={...i,...e,include:{...i.include,...e.include,user:e.include&&"boolean"==typeof e.include.user?e.include.user:{...i.include.user,...(e.include||{}).user}}};return{name:"RequestData",processEvent(e){const{sdkProcessingMetadata:n={}}=e,s=n.request;if(!s)return e;const i=function(e){const{transactionNamingScheme:t,include:{ip:n,user:r,...s}}=e,i=["method"];for(const[e,t]of Object.entries(s))t&&i.push(e);let o;if(r===undefined)o=!0;else if("boolean"==typeof r)o=r;else{const e=[];for(const[t,n]of Object.entries(r))n&&e.push(t);o=e}return{include:{ip:n,user:o,request:0!==i.length?i:undefined,transaction:t}}}(t);return r.addRequestDataToEvent(e,s,i)}}}));n.requestDataIntegration=o}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/requestdata.js"}],[3134,{"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),i=s.defineIntegration(((e={})=>{const t=e.root,n=e.prefix||"app:///",s="window"in r.GLOBAL_OBJ&&r.GLOBAL_OBJ.window!==undefined,i=e.iteratee||o({isBrowser:s,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t&&t.frames&&t.frames.map((e=>i(e)))})}};var t}))}}}catch(t){return e}}(t)),t}}}));function o({isBrowser:e,root:t,prefix:n}){return s=>{if(!s.filename)return s;const i=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/"),o=/^\//.test(s.filename);if(e){if(t){const e=s.filename;0===e.indexOf(t)&&(s.filename=e.replace(t,n))}}else if(i||o){const e=i?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename,o=t?r.relative(t,e):r.basename(e);s.filename=`${n}${o}`}return s}}n.generateIteratee=o,n.rewriteFramesIntegration=i}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/rewriteframes.js"}],[3135,{"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),i=s.defineIntegration((()=>{const e=1e3*r.timestampInSeconds();return{name:"SessionTiming",processEvent(t){const n=1e3*r.timestampInSeconds();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}}));n.sessionTimingIntegration=i}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/sessiontiming.js"}],[3136,{"../integration.js":3124,"../metadata.js":3138,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),i=e("../metadata.js"),o=s.defineIntegration((e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",(e=>{r.forEachEnvelopeItem(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:undefined;t&&(i.stripMetadataFromStackFrames(t),e[1]=t)}}))})),e.on("applyFrameMetadata",(t=>{if(t.type)return;const n=e.getOptions().stackParser;i.addMetadataToStackFrames(n,t)}))},processEvent(t){const n=function(e){const t=r.getFramesFromEvent(e);if(!t)return undefined;return t.filter((e=>!!e.filename)).map((e=>e.module_metadata?Object.keys(e.module_metadata).filter((e=>e.startsWith(a))).map((e=>e.slice(a.length))):[]))}(t);if(n){if(n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"]((t=>!t.some((t=>e.filterKeys.includes(t)))))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}}return t}})));const a="_sentryBundlerPluginAppKey:";n.thirdPartyErrorFilterIntegration=o}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/third-party-errors-filter.js"}],[3137,{"../integration.js":3124,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js");function i(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):undefined,keys:"keys"in e?JSON.stringify(e.keys):undefined,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):undefined}}function o(e){const t=new Set;for(const n of e.issues)n.path&&n.path[0]&&t.add(n.path[0]);const n=Array.from(t);return`Failed to validate keys: ${r.truncate(n.join(", "),100)}`}function a(e,t,n){return t.exception&&t.exception.values&&n&&n.originalException&&(s=n.originalException,r.isError(s)&&"ZodError"===s.name&&Array.isArray(s.errors))&&0!==n.originalException.issues.length?{...t,exception:{...t.exception,values:[{...t.exception.values[0],value:o(n.originalException)},...t.exception.values.slice(1)]},extra:{...t.extra,"zoderror.issues":n.originalException.errors.slice(0,e).map(i)}}:t;var s}const c=s.defineIntegration(((e={})=>{const t=e.limit||10;return{name:"ZodErrors",processEvent:(e,n)=>a(t,e,n)}}));n.applyZodErrorsToEvent=a,n.zodErrorsIntegration=c}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/integrations/zoderrors.js"}],[3138,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=new Map,i=new Set;function o(e,t){return function(e){if(r.GLOBAL_OBJ._sentryModuleMetadata)for(const t of Object.keys(r.GLOBAL_OBJ._sentryModuleMetadata)){const n=r.GLOBAL_OBJ._sentryModuleMetadata[t];if(i.has(t))continue;i.add(t);const o=e(t);for(const e of o.reverse())if(e.filename){s.set(e.filename,n);break}}}(e),s.get(t)}n.addMetadataToStackFrames=function(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;const t=o(e,n.filename);t&&(n.module_metadata=t)}}))}catch(e){}},n.getMetadataForUrl=o,n.stripMetadataFromStackFrames=function(e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata}))}catch(e){}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/metadata.js"}],[3139,{"../utils/spanUtils.js":3181,"./constants.js":3141,"./envelope.js":3142,"./instance.js":3145,"./utils.js":3147,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../utils/spanUtils.js"),i=e("./constants.js"),o=e("./envelope.js"),a=e("./instance.js"),c=e("./utils.js");n.MetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval((()=>this._flush()),i.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*i.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,t,n,o="none",u={},l=r.timestampInSeconds()){const d=Math.floor(l),p=c.sanitizeMetricKey(t),f=c.sanitizeTags(u),h=c.sanitizeUnit(o),_=c.getBucketKey(e,p,h,f);let m=this._buckets.get(_);const g=m&&e===i.SET_METRIC_TYPE?m.metric.weight:0;m?(m.metric.add(n),m.timestamp=i.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush)return this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),void this._buckets.clear();const e=Math.floor(r.timestampInSeconds())-i.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,t=new Map;for(const[n,r]of this._buckets)r.timestamp<=e&&(t.set(n,r),this._bucketsTotalWeight-=r.metric.weight);for(const[e]of t)this._buckets.delete(e);this._captureMetrics(t)}_captureMetrics(e){if(e.size>0){const t=Array.from(e).map((([,e])=>e));o.captureAggregateMetrics(this._client,t)}}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/metrics/aggregator.js"}],[3140,{"../utils/spanUtils.js":3181,"./constants.js":3141,"./envelope.js":3142,"./instance.js":3145,"./utils.js":3147,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../utils/spanUtils.js"),i=e("./constants.js"),o=e("./envelope.js"),a=e("./instance.js"),c=e("./utils.js");n.BrowserMetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval((()=>this.flush()),i.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,t,n,o="none",u={},l=r.timestampInSeconds()){const d=Math.floor(l),p=c.sanitizeMetricKey(t),f=c.sanitizeTags(u),h=c.sanitizeUnit(o),_=c.getBucketKey(e,p,h,f);let m=this._buckets.get(_);const g=m&&e===i.SET_METRIC_TYPE?m.metric.weight:0;m?(m.metric.add(n),m.timestamp@sentry/core",file:"node_modules/@sentry/core/build/cjs/metrics/browser-aggregator.js"}],[3141,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.COUNTER_METRIC_TYPE="c",n.DEFAULT_BROWSER_FLUSH_INTERVAL=5e3,n.DEFAULT_FLUSH_INTERVAL=1e4,n.DISTRIBUTION_METRIC_TYPE="d",n.GAUGE_METRIC_TYPE="g",n.MAX_WEIGHT=1e4,n.SET_METRIC_TYPE="s"}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/metrics/constants.js"}],[3142,{"./utils.js":3147,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./utils.js");function i(e,t,n,i){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),i&&t&&(o.dsn=r.dsnToString(t));const a=function(e){const t=s.serializeMetricBuckets(e);return[{type:"statsd",length:t.length},t]}(e);return r.createEnvelope(o,[a])}n.captureAggregateMetrics=function(e,t){r.logger.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=i(t,e.getDsn(),e.getSdkMetadata(),e.getOptions().tunnel);e.sendEnvelope(n)},n.createMetricEnvelope=i}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/metrics/envelope.js"}],[3143,{"./aggregator.js":3139,"./exports.js":3144},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./aggregator.js"),s=e("./exports.js");const i={increment:function(e,t=1,n){s.metrics.increment(r.MetricsAggregator,e,t,n)},distribution:function(e,t,n){s.metrics.distribution(r.MetricsAggregator,e,t,n)},set:function(e,t,n){s.metrics.set(r.MetricsAggregator,e,t,n)},gauge:function(e,t,n){s.metrics.gauge(r.MetricsAggregator,e,t,n)},timing:function(e,t,n="second",i){return s.metrics.timing(r.MetricsAggregator,e,t,n,i)},getMetricsAggregatorForClient:function(e){return s.metrics.getMetricsAggregatorForClient(e,r.MetricsAggregator)}};n.metricsDefault=i}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/metrics/exports-default.js"}],[3144,{"../currentScopes.js":3114,"../debug-build.js":3115,"../tracing/errors.js":3156,"../tracing/trace.js":3165,"../utils/handleCallbackErrors.js":3172,"../utils/spanUtils.js":3181,"./constants.js":3141,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),i=e("../debug-build.js");e("../tracing/errors.js");const o=e("../utils/spanUtils.js"),a=e("../tracing/trace.js"),c=e("../utils/handleCallbackErrors.js"),u=e("./constants.js");function l(e,t){const n=r.getGlobalSingleton("globalMetricsAggregators",(()=>new WeakMap)),s=n.get(e);if(s)return s;const i=new t(e);return e.on("flush",(()=>i.flush())),e.on("close",(()=>i.close())),n.set(e,i),i}function d(e,t,n,a,c={}){const u=c.client||s.getClient();if(!u)return;const d=o.getActiveSpan(),p=d?o.getRootSpan(d):undefined,f=p&&o.spanToJSON(p).description,{unit:h,tags:_,timestamp:m}=c,{release:g,environment:S}=u.getOptions(),y={};g&&(y.release=g),S&&(y.environment=S),f&&(y.transaction=f),i.DEBUG_BUILD&&r.logger.log(`Adding value of ${a} to ${t} metric ${n}`);l(u,e).add(t,n,a,h,{...y,..._},m)}function p(e,t,n,r){d(e,u.DISTRIBUTION_METRIC_TYPE,t,h(n),r)}const f={increment:function(e,t,n=1,r){d(e,u.COUNTER_METRIC_TYPE,t,h(n),r)},distribution:p,set:function(e,t,n,r){d(e,u.SET_METRIC_TYPE,t,n,r)},gauge:function(e,t,n,r){d(e,u.GAUGE_METRIC_TYPE,t,h(n),r)},timing:function(e,t,n,s="second",i){if("function"==typeof n){const s=r.timestampInSeconds();return a.startSpanManual({op:"metrics.timing",name:t,startTime:s,onlyIfParent:!0},(o=>c.handleCallbackErrors((()=>n()),(()=>{}),(()=>{const n=r.timestampInSeconds();p(e,t,n-s,{...i,unit:"second"}),o.end(n)}))))}p(e,t,n,{...i,unit:s})},getMetricsAggregatorForClient:l};function h(e){return"string"==typeof e?parseInt(e):e}n.metrics=f}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/metrics/exports.js"}],[3145,{"./constants.js":3141,"./utils.js":3147},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./constants.js"),s=e("./utils.js");class i{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class o{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,ethis._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class a{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class c{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map((e=>"string"==typeof e?s.simpleHash(e):e)).join(":")}}const u={[r.COUNTER_METRIC_TYPE]:i,[r.GAUGE_METRIC_TYPE]:o,[r.DISTRIBUTION_METRIC_TYPE]:a,[r.SET_METRIC_TYPE]:c};n.CounterMetric=i,n.DistributionMetric=a,n.GaugeMetric=o,n.METRIC_MAP=u,n.SetMetric=c}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/metrics/instance.js"}],[3146,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s="_sentryMetrics";n.getMetricSummaryJsonForSpan=function(e){const t=e[s];if(!t)return undefined;const n={};for(const[,[e,s]]of t){(n[e]||(n[e]=[])).push(r.dropUndefinedKeys(s))}return n},n.updateMetricSummaryOnSpan=function(e,t,n,r,i,o,a){const c=e[s]||(e[s]=new Map),u=`${t}:${n}@${i}`,l=c.get(a);if(l){const[,e]=l;c.set(a,[u,{min:Math.min(e.min,r),max:Math.max(e.max,r),count:e.count+=1,sum:e.sum+=r,tags:e.tags}])}else c.set(a,[u,{min:r,max:r,count:1,sum:r,tags:o}])}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/metrics/metric-summary.js"}],[3147,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");function s(e){return e.replace(/[^\w\-./]+/gi,"")}const i=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function o(e){return[...e].reduce(((e,t)=>e+function(e){for(const[t,n]of i)if(e===t)return n;return e}(t)),"")}n.getBucketKey=function(e,t,n,s){return`${e}${t}${n}${Object.entries(r.dropUndefinedKeys(s)).sort(((e,t)=>e[0].localeCompare(t[0])))}`},n.sanitizeMetricKey=function(e){return e.replace(/[^\w\-.]+/gi,"_")},n.sanitizeTags=function(e){const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){t[s(n)]=o(String(e[n]))}return t},n.sanitizeUnit=function(e){return e.replace(/[^\w]+/gi,"_")},n.serializeMetricBuckets=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t},n.simpleHash=function(e){let t=0;for(let n=0;n>>0}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/metrics/utils.js"}],[3148,{"./currentScopes.js":3114,"./debug-build.js":3115,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),i=e("./debug-build.js");function o(e){return!!e&&void 0!==e._profiler&&"function"==typeof e._profiler.start&&"function"==typeof e._profiler.stop}const a={startProfiler:function(){const e=s.getClient();if(!e)return void(i.DEBUG_BUILD&&r.logger.warn("No Sentry client available, profiling is not started"));const t=e.getIntegrationByName("ProfilingIntegration");t?o(t)?t._profiler.start():i.DEBUG_BUILD&&r.logger.warn("Profiler is not available on profiling integration."):i.DEBUG_BUILD&&r.logger.warn("ProfilingIntegration is not available")},stopProfiler:function(){const e=s.getClient();if(!e)return void(i.DEBUG_BUILD&&r.logger.warn("No Sentry client available, profiling is not started"));const t=e.getIntegrationByName("ProfilingIntegration");t?o(t)?t._profiler.stop():i.DEBUG_BUILD&&r.logger.warn("Profiler is not available on profiling integration."):i.DEBUG_BUILD&&r.logger.warn("ProfilingIntegration is not available")}};n.profiler=a}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/profiling.js"}],[3149,{"./session.js":3153,"./utils/spanOnScope.js":3180,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./session.js"),i=e("./utils/spanOnScope.js");class o{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=r.generatePropagationContext()}clone(){const e=new o;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,i._setSpanForScope(e,i._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:undefined,id:undefined,ip_address:undefined,username:undefined},this._session&&s.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,s]=t instanceof a?[t.getScopeData(),t.getRequestSession()]:r.isPlainObject(t)?[e,e.requestSession]:[],{tags:i,extra:o,user:c,contexts:u,level:l,fingerprint:d=[],propagationContext:p}=n||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...u},c&&Object.keys(c).length&&(this._user=c),l&&(this._level=l),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=undefined,this._transactionName=undefined,this._fingerprint=undefined,this._requestSession=undefined,this._session=undefined,i._setSpanForScope(this,undefined),this._attachments=[],this._propagationContext=r.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const s={timestamp:r.dateTimestampInSeconds(),...e},i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:i._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:r.uuid4();if(!this._client)return r.logger.warn("No client configured on scope - will not capture exception!"),n;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...t,event_id:n},this),n}captureMessage(e,t,n){const s=n&&n.event_id?n.event_id:r.uuid4();if(!this._client)return r.logger.warn("No client configured on scope - will not capture message!"),s;const i=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:s},this),s}captureEvent(e,t){const n=t&&t.event_id?t.event_id:r.uuid4();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r.logger.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const a=o;n.Scope=a}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/scope.js"}],[3150,{"./currentScopes.js":3114,"./debug-build.js":3115,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),i=e("./debug-build.js");function o(e){s.getCurrentScope().setClient(e)}n.initAndBind=function(e,t){!0===t.debug&&(i.DEBUG_BUILD?r.logger.enable():r.consoleSandbox((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),s.getCurrentScope().update(t.initialScope);const n=new e(t);return o(n),n.init(),n},n.setCurrentClient=o}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/sdk.js"}],[3151,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",n.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",n.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD="http.request.method",n.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",n.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",n.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source",n.SEMANTIC_ATTRIBUTE_URL_FULL="url.full"}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/semanticAttributes.js"}],[3152,{"./baseclient.js":3109,"./checkin.js":3112,"./currentScopes.js":3114,"./debug-build.js":3115,"./sessionflusher.js":3154,"./tracing/dynamicSamplingContext.js":3155,"./tracing/errors.js":3156,"./utils/spanOnScope.js":3180,"./utils/spanUtils.js":3181,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./baseclient.js"),i=e("./checkin.js"),o=e("./currentScopes.js"),a=e("./debug-build.js"),c=e("./sessionflusher.js"),u=e("./tracing/errors.js"),l=e("./utils/spanOnScope.js"),d=e("./utils/spanUtils.js"),p=e("./tracing/dynamicSamplingContext.js");class f extends s.BaseClient{constructor(e){u.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,t){return r.resolvedSyncPromise(r.eventFromUnknownInput(this,this._options.stackParser,e,t))}eventFromMessage(e,t="info",n){return r.resolvedSyncPromise(r.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace))}captureException(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher){const e=o.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureException(e,t,n)}captureEvent(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher){if("exception"===(e.type||"exception")&&e.exception&&e.exception.values&&e.exception.values.length>0){const e=o.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}}return super.captureEvent(e,t,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){const{release:e,environment:t}=this._options;e?this._sessionFlusher=new c.SessionFlusher(this,{release:e,environment:t}):a.DEBUG_BUILD&&r.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,t,n){const s="checkInId"in e&&e.checkInId?e.checkInId:r.uuid4();if(!this._isEnabled())return a.DEBUG_BUILD&&r.logger.warn("SDK not enabled, will not capture checkin."),s;const o=this.getOptions(),{release:c,environment:u,tunnel:l}=o,d={check_in_id:s,monitor_slug:e.monitorSlug,status:e.status,release:c,environment:u};"duration"in e&&(d.duration=e.duration),t&&(d.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone,failure_issue_threshold:t.failureIssueThreshold,recovery_threshold:t.recoveryThreshold});const[p,f]=this._getTraceInfoFromScope(n);f&&(d.contexts={trace:f});const h=i.createCheckInEnvelope(d,p,this.getSdkMetadata(),l,this.getDsn());return a.DEBUG_BUILD&&r.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(h),s}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():a.DEBUG_BUILD&&r.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,t,n,r){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,n,r)}_getTraceInfoFromScope(e){if(!e)return[undefined,undefined];const t=l._getSpanForScope(e);if(t){const e=d.getRootSpan(t);return[p.getDynamicSamplingContextFromSpan(e),d.spanToTraceContext(e)]}const{traceId:n,spanId:r,parentSpanId:s,dsc:i}=e.getPropagationContext(),o={trace_id:n,span_id:r,parent_span_id:s};return i?[i,o]:[p.getDynamicSamplingContextFromClient(n,this),o]}}n.ServerRuntimeClient=f}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/server-runtime-client.js"}],[3153,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");function s(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||r.timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:r.uuid4()),t.init!==undefined&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=undefined;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t: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),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}n.closeSession=function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)},n.makeSession=function(e){const t=r.timestampInSeconds(),n={sid:r.uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return r.dropUndefinedKeys({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:undefined,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n},n.updateSession=s}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/session.js"}],[3154,{"./currentScopes.js":3114,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js");n.SessionFlusher=class{constructor(e,t){this._client=e,this.flushTimeout=60,this._pendingAggregates=new Map,this._isEnabled=!0,this._intervalId=setInterval((()=>this.flush()),1e3*this.flushTimeout),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=t}flush(){const e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates=new Map,this._client.sendSession(e))}getSessionAggregates(){const e=Array.from(this._pendingAggregates.values()),t={attrs:this._sessionAttrs,aggregates:e};return r.dropUndefinedKeys(t)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;const e=s.getIsolationScope(),t=e.getRequestSession();t&&t.status&&(this._incrementSessionStatusCount(t.status,new Date),e.setRequestSession(undefined))}_incrementSessionStatusCount(e,t){const n=new Date(t).setSeconds(0,0);let r=this._pendingAggregates.get(n);switch(r||(r={started:new Date(n).toISOString()},this._pendingAggregates.set(n,r)),e){case"errored":return r.errored=(r.errored||0)+1,r.errored;case"ok":return r.exited=(r.exited||0)+1,r.exited;default:return r.crashed=(r.crashed||0)+1,r.crashed}}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/sessionflusher.js"}],[3155,{"../constants.js":3113,"../currentScopes.js":3114,"../semanticAttributes.js":3151,"../utils/hasTracingEnabled.js":3173,"../utils/spanUtils.js":3181,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../constants.js"),i=e("../currentScopes.js"),o=e("../semanticAttributes.js"),a=e("../utils/hasTracingEnabled.js"),c=e("../utils/spanUtils.js"),u="_frozenDsc";function l(e,t){const n=t.getOptions(),{publicKey:i}=t.getDsn()||{},o=r.dropUndefinedKeys({environment:n.environment||s.DEFAULT_ENVIRONMENT,release:n.release,public_key:i,trace_id:e});return t.emit("createDsc",o),o}function d(e){const t=i.getClient();if(!t)return{};const n=l(c.spanToJSON(e).trace_id||"",t),s=c.getRootSpan(e),d=s[u];if(d)return d;const p=s.spanContext().traceState,f=p&&p.get("sentry.dsc"),h=f&&r.baggageHeaderToDynamicSamplingContext(f);if(h)return h;const _=c.spanToJSON(s),m=_.data||{},g=m[o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];null!=g&&(n.sample_rate=`${g}`);const S=m[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],y=_.description;return"url"!==S&&y&&(n.transaction=y),a.hasTracingEnabled()&&(n.sampled=String(c.spanIsSampled(s))),t.emit("createDsc",n,s),n}n.freezeDscOnSpan=function(e,t){const n=e;r.addNonEnumerableProperty(n,u,t)},n.getDynamicSamplingContextFromClient=l,n.getDynamicSamplingContextFromSpan=d,n.spanToBaggageHeader=function(e){const t=d(e);return r.dynamicSamplingContextToSentryBaggageHeader(t)}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/dynamicSamplingContext.js"}],[3156,{"../debug-build.js":3115,"../utils/spanUtils.js":3181,"./spanstatus.js":3164,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),i=e("../utils/spanUtils.js"),o=e("./spanstatus.js");let a=!1;function c(){const e=i.getActiveSpan(),t=e&&i.getRootSpan(e);if(t){const e="internal_error";s.DEBUG_BUILD&&r.logger.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:o.SPAN_STATUS_ERROR,message:e})}}c.tag="sentry_tracingErrorCallback",n.registerSpanErrorInstrumentation=function(){a||(a=!0,r.addGlobalErrorInstrumentationHandler(c),r.addGlobalUnhandledRejectionInstrumentationHandler(c))}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/errors.js"}],[3157,{"./errors.js":3156},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./errors.js");n.addTracingExtensions=function(){r.registerSpanErrorInstrumentation()}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/hubextensions.js"}],[3158,{"../currentScopes.js":3114,"../debug-build.js":3115,"../semanticAttributes.js":3151,"../utils/hasTracingEnabled.js":3173,"../utils/spanOnScope.js":3180,"../utils/spanUtils.js":3181,"./sentryNonRecordingSpan.js":3162,"./spanstatus.js":3164,"./trace.js":3165,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),i=e("../debug-build.js"),o=e("../semanticAttributes.js"),a=e("../utils/hasTracingEnabled.js"),c=e("../utils/spanOnScope.js"),u=e("../utils/spanUtils.js"),l=e("./sentryNonRecordingSpan.js"),d=e("./spanstatus.js"),p=e("./trace.js"),f={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};n.TRACING_DEFAULTS=f,n.startIdleSpan=function(e,t={}){const n=new Map;let h,_=!1,m="externalFinish",g=!t.disableAutoFinish;const S=[],{idleTimeout:y=f.idleTimeout,finalTimeout:E=f.finalTimeout,childSpanTimeout:b=f.childSpanTimeout,beforeSpanEnd:T}=t,R=s.getClient();if(!R||!a.hasTracingEnabled())return new l.SentryNonRecordingSpan;const I=s.getCurrentScope(),v=u.getActiveSpan(),O=function(e){const t=p.startInactiveSpan(e);return c._setSpanForScope(s.getCurrentScope(),t),i.DEBUG_BUILD&&r.logger.log("[Tracing] Started span is an idle span"),t}(e);function A(){h&&(clearTimeout(h),h=undefined)}function w(e){A(),h=setTimeout((()=>{!_&&0===n.size&&g&&(m="idleTimeout",O.end(e))}),y)}function N(e){h=setTimeout((()=>{!_&&g&&(m="heartbeatFailed",O.end(e))}),b)}function C(e){_=!0,n.clear(),S.forEach((e=>e())),c._setSpanForScope(I,v);const t=u.spanToJSON(O),{start_timestamp:s}=t;if(!s)return;(t.data||{})[o.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||O.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,m),r.logger.log(`[Tracing] Idle span "${t.op}" finished`);const a=u.getSpanDescendants(O).filter((e=>e!==O));let l=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:d.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),i.DEBUG_BUILD&&r.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,undefined,2)));const n=u.spanToJSON(t),{timestamp:s=0,start_timestamp:o=0}=n,a=o<=e,c=s-o<=(E+y)/1e3;if(i.DEBUG_BUILD){const e=JSON.stringify(t,undefined,2);a?c||r.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",e):r.logger.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&a||(u.removeChildSpanFromSpan(O,t),l++)})),l>0&&O.setAttribute("sentry.idle_span_discarded_spans",l)}return O.end=new Proxy(O.end,{apply(e,t,n){T&&T(O);const[s,...i]=n,o=s||r.timestampInSeconds(),a=u.spanTimeInputToSeconds(o),c=u.getSpanDescendants(O).filter((e=>e!==O));if(!c.length)return C(a),Reflect.apply(e,t,[a,...i]);const l=c.map((e=>u.spanToJSON(e).timestamp)).filter((e=>!!e)),d=l.length?Math.max(...l):undefined,p=u.spanToJSON(O).start_timestamp,f=Math.min(p?p+E/1e3:Infinity,Math.max(p||-Infinity,Math.min(a,d||Infinity)));return C(f),Reflect.apply(e,t,[f,...i])}}),S.push(R.on("spanStart",(e=>{if(_||e===O||u.spanToJSON(e).timestamp)return;var t;u.getSpanDescendants(O).includes(e)&&(t=e.spanContext().spanId,A(),n.set(t,!0),N(r.timestampInSeconds()+b/1e3))}))),S.push(R.on("spanEnd",(e=>{var t;_||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&w(r.timestampInSeconds()+y/1e3))}))),S.push(R.on("idleSpanEnableAutoFinish",(e=>{e===O&&(g=!0,w(),n.size&&N())}))),t.disableAutoFinish||w(),setTimeout((()=>{_||(O.setStatus({code:d.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),m="finalTimeout",O.end())}),E),O}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/idleSpan.js"}],[3159,{"../debug-build.js":3115,"../utils/spanUtils.js":3181,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),i=e("../utils/spanUtils.js");n.logSpanEnd=function(e){if(!s.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >"}=i.spanToJSON(e),{spanId:o}=e.spanContext(),a=`[Tracing] Finishing "${n}" ${i.getRootSpan(e)===e?"root ":""}span "${t}" with ID ${o}`;r.logger.log(a)},n.logSpanStart=function(e){if(!s.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:o}=i.spanToJSON(e),{spanId:a}=e.spanContext(),c=i.spanIsSampled(e),u=i.getRootSpan(e),l=u===e,d=`[Tracing] Starting ${c?"sampled":"unsampled"} ${l?"root ":""}span`,p=[`op: ${n}`,`name: ${t}`,`ID: ${a}`];if(o&&p.push(`parent ID: ${o}`),!l){const{op:e,description:t}=i.spanToJSON(u);p.push(`root ID: ${u.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}r.logger.log(`${d}\n ${p.join("\n ")}`)}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/logSpans.js"}],[3160,{"../semanticAttributes.js":3151,"../utils/spanUtils.js":3181},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../semanticAttributes.js"),s=e("../utils/spanUtils.js");n.setMeasurement=function(e,t,n,i=s.getActiveSpan()){const o=i&&s.getRootSpan(i);o&&o.addEvent(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n})},n.timedEventsToMeasurements=function(e){if(!e||0===e.length)return undefined;const t={};return e.forEach((e=>{const n=e.attributes||{},s=n[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof s&&"number"==typeof i&&(t[e.name]={value:i,unit:s})})),t}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/measurement.js"}],[3161,{"../debug-build.js":3115,"../utils/hasTracingEnabled.js":3173,"../utils/parseSampleRate.js":3177,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),i=e("../utils/hasTracingEnabled.js"),o=e("../utils/parseSampleRate.js");n.sampleSpan=function(e,t){if(!i.hasTracingEnabled(e))return[!1];let n;n="function"==typeof e.tracesSampler?e.tracesSampler(t):t.parentSampled!==undefined?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const a=o.parseSampleRate(n);return a===undefined?(s.DEBUG_BUILD&&r.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):a?Math.random()@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/sampling.js"}],[3162,{"../utils/spanUtils.js":3181,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../utils/spanUtils.js");n.SentryNonRecordingSpan=class{constructor(e={}){this._traceId=e.traceId||r.uuid4(),this._spanId=e.spanId||r.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:s.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/sentryNonRecordingSpan.js"}],[3163,{"../currentScopes.js":3114,"../debug-build.js":3115,"../envelope.js":3117,"../metrics/metric-summary.js":3146,"../semanticAttributes.js":3151,"../utils/spanUtils.js":3181,"./dynamicSamplingContext.js":3155,"./logSpans.js":3159,"./measurement.js":3160,"./utils.js":3166,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),i=e("../debug-build.js"),o=e("../envelope.js"),a=e("../metrics/metric-summary.js"),c=e("../semanticAttributes.js"),u=e("../utils/spanUtils.js"),l=e("./dynamicSamplingContext.js"),d=e("./logSpans.js"),p=e("./measurement.js"),f=e("./utils.js");class h{constructor(e={}){this._traceId=e.traceId||r.uuid4(),this._spanId=e.spanId||r.uuid4().substring(16),this._startTime=e.startTimestamp||r.timestampInSeconds(),this._attributes={},this.setAttributes({[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?u.TRACE_FLAG_SAMPLED:u.TRACE_FLAG_NONE}}setAttribute(e,t){return t===undefined?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=u.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=u.spanTimeInputToSeconds(e),d.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return r.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:a.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[c.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:p.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&u.getRootSpan(this)===this||undefined,segment_id:this._isStandaloneSpan?u.getRootSpan(this).spanContext().spanId:undefined})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){i.DEBUG_BUILD&&r.logger.log("[Tracing] Adding an event to span:",e);const s=_(t)?t:n||r.timestampInSeconds(),o=_(t)?{}:t||{},a={name:e,time:u.spanTimeInputToSeconds(s),attributes:o};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=s.getClient();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===u.getRootSpan(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=s.getClient();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const o=t.getTransport();o&&o.send(e).then(null,(e=>{i.DEBUG_BUILD&&r.logger.error("Error while sending span:",e)}))}(o.createSpanEnvelope([this],e)):(i.DEBUG_BUILD&&r.logger.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){(f.getCapturedScopesOnSpan(this).scope||s.getCurrentScope()).captureEvent(t)}}_convertSpanToTransaction(){if(!m(u.spanToJSON(this)))return undefined;this._name||(i.DEBUG_BUILD&&r.logger.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:e,isolationScope:t}=f.getCapturedScopesOnSpan(this),n=(e||s.getCurrentScope()).getClient()||s.getClient();if(!0!==this._sampled)return i.DEBUG_BUILD&&r.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction"),undefined;const o=u.getSpanDescendants(this).filter((e=>e!==this&&!function(e){return e instanceof h&&e.isStandaloneSpan()}(e))).map((e=>u.spanToJSON(e))).filter(m),d=this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],_={contexts:{trace:u.spanToTransactionTraceContext(this)},spans:o.length>1e3?o.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...r.dropUndefinedKeys({dynamicSamplingContext:l.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:a.getMetricSummaryJsonForSpan(this),...d&&{transaction_info:{source:d}}},g=p.timedEventsToMeasurements(this._events);return g&&Object.keys(g).length&&(i.DEBUG_BUILD&&r.logger.log("[Measurements] Adding measurements to transaction event",JSON.stringify(g,undefined,2)),_.measurements=g),_}}function _(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function m(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}n.SentrySpan=h}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/sentrySpan.js"}],[3164,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=1,s=2;function i(e){if(e<400&&e>=100)return{code:r};if(e>=400&&e<500)switch(e){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"unknown_error"}}n.SPAN_STATUS_ERROR=s,n.SPAN_STATUS_OK=r,n.SPAN_STATUS_UNSET=0,n.getSpanStatusFromHttpCode=i,n.setHttpStatus=function(e,t){e.setAttribute("http.response.status_code",t);const n=i(t);"unknown_error"!==n.message&&e.setStatus(n)}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/spanstatus.js"}],[3165,{"../asyncContext/index.js":3107,"../carrier.js":3111,"../currentScopes.js":3114,"../debug-build.js":3115,"../semanticAttributes.js":3151,"../utils/handleCallbackErrors.js":3172,"../utils/hasTracingEnabled.js":3173,"../utils/spanOnScope.js":3180,"../utils/spanUtils.js":3181,"./dynamicSamplingContext.js":3155,"./logSpans.js":3159,"./sampling.js":3161,"./sentryNonRecordingSpan.js":3162,"./sentrySpan.js":3163,"./spanstatus.js":3164,"./utils.js":3166,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../carrier.js"),i=e("../currentScopes.js"),o=e("../asyncContext/index.js"),a=e("../debug-build.js"),c=e("../semanticAttributes.js"),u=e("../utils/handleCallbackErrors.js"),l=e("../utils/hasTracingEnabled.js"),d=e("../utils/spanOnScope.js"),p=e("../utils/spanUtils.js"),f=e("./dynamicSamplingContext.js"),h=e("./logSpans.js"),_=e("./sampling.js"),m=e("./sentryNonRecordingSpan.js"),g=e("./sentrySpan.js"),S=e("./spanstatus.js"),y=e("./utils.js"),E="__SENTRY_SUPPRESS_TRACING__";function b(e,t){const n=I();return n.withActiveSpan?n.withActiveSpan(e,t):i.withScope((n=>(d._setSpanForScope(n,e||undefined),t(n))))}function T({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!l.hasTracingEnabled())return new m.SentryNonRecordingSpan;const s=i.getIsolationScope();let o;if(e&&!n)o=function(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[E]&&p.spanIsSampled(e),a=o?new g.SentrySpan({...n,parentSpanId:r,traceId:s,sampled:o}):new m.SentryNonRecordingSpan({traceId:s});p.addChildSpanToSpan(e,a);const c=i.getClient();c&&(c.emit("spanStart",a),n.endTimestamp&&c.emit("spanEnd",a));return a}(e,r,t),p.addChildSpanToSpan(e,o);else if(e){const n=f.getDynamicSamplingContextFromSpan(e),{traceId:s,spanId:i}=e.spanContext(),a=p.spanIsSampled(e);o=v({traceId:s,parentSpanId:i,...t},r,a),f.freezeDscOnSpan(o,n)}else{const{traceId:e,dsc:n,parentSpanId:i,sampled:a}={...s.getPropagationContext(),...r.getPropagationContext()};o=v({traceId:e,parentSpanId:i,...t},r,a),n&&f.freezeDscOnSpan(o,n)}return h.logSpanStart(o),y.setCapturedScopesOnSpan(o,r,s),o}function R(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=p.spanTimeInputToSeconds(e.startTime),delete n.startTime,n}return t}function I(){const e=s.getMainCarrier();return o.getAsyncContextStrategy(e)}function v(e,t,n){const r=i.getClient(),s=r&&r.getOptions()||{},{name:o="",attributes:a}=e,[u,l]=t.getScopeData().sdkProcessingMetadata[E]?[!1]:_.sampleSpan(s,{name:o,parentSampled:n,attributes:a,transactionContext:{name:o,parentSampled:n}}),d=new g.SentrySpan({...e,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...e.attributes},sampled:u});return l!==undefined&&d.setAttribute(c.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,l),r&&r.emit("spanStart",d),d}function O(e){const t=d._getSpanForScope(e);if(!t)return undefined;const n=i.getClient();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?p.getRootSpan(t):t}function A(e){return e!==undefined?t=>b(e,t):e=>e()}n.continueTrace=({sentryTrace:e,baggage:t},n)=>i.withScope((s=>{const i=r.propagationContextFromHeaders(e,t);return s.setPropagationContext(i),n()})),n.startInactiveSpan=function(e){const t=I();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=R(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?t=>i.withScope(e.scope,t):s!==undefined?e=>b(s,e):e=>e())((()=>{const t=i.getCurrentScope(),s=O(t);return e.onlyIfParent&&!s?new m.SentryNonRecordingSpan:T({parentSpan:s,spanArguments:n,forceTransaction:r,scope:t})}))},n.startNewTrace=function(e){return i.withScope((t=>(t.setPropagationContext(r.generatePropagationContext()),a.DEBUG_BUILD&&r.logger.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),b(null,e))))},n.startSpan=function(e,t){const n=I();if(n.startSpan)return n.startSpan(e,t);const r=R(e),{forceTransaction:s,parentSpan:o}=e;return i.withScope(e.scope,(()=>A(o)((()=>{const n=i.getCurrentScope(),o=O(n),a=e.onlyIfParent&&!o?new m.SentryNonRecordingSpan:T({parentSpan:o,spanArguments:r,forceTransaction:s,scope:n});return d._setSpanForScope(n,a),u.handleCallbackErrors((()=>t(a)),(()=>{const{status:e}=p.spanToJSON(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:S.SPAN_STATUS_ERROR,message:"internal_error"})}),(()=>a.end()))}))))},n.startSpanManual=function(e,t){const n=I();if(n.startSpanManual)return n.startSpanManual(e,t);const r=R(e),{forceTransaction:s,parentSpan:o}=e;return i.withScope(e.scope,(()=>A(o)((()=>{const n=i.getCurrentScope(),o=O(n),a=e.onlyIfParent&&!o?new m.SentryNonRecordingSpan:T({parentSpan:o,spanArguments:r,forceTransaction:s,scope:n});function c(){a.end()}return d._setSpanForScope(n,a),u.handleCallbackErrors((()=>t(a,c)),(()=>{const{status:e}=p.spanToJSON(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:S.SPAN_STATUS_ERROR,message:"internal_error"})}))}))))},n.suppressTracing=function(e){const t=I();return t.suppressTracing?t.suppressTracing(e):i.withScope((t=>(t.setSDKProcessingMetadata({[E]:!0}),e())))},n.withActiveSpan=b}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/trace.js"}],[3166,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s="_sentryScope",i="_sentryIsolationScope";n.stripUrlQueryAndFragment=r.stripUrlQueryAndFragment,n.getCapturedScopesOnSpan=function(e){return{scope:e[s],isolationScope:e[i]}},n.setCapturedScopesOnSpan=function(e,t,n){e&&(r.addNonEnumerableProperty(e,i,n),r.addNonEnumerableProperty(e,s,t))}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/tracing/utils.js"}],[3167,{"../debug-build.js":3115,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js");function i(e,t){return"event"!==t&&"transaction"!==t?undefined:Array.isArray(e)?e[1]:undefined}n.DEFAULT_TRANSPORT_BUFFER_SIZE=64,n.createTransport=function(e,t,n=r.makePromiseBuffer(e.bufferSize||64)){let o={};return{send:function(a){const c=[];if(r.forEachEnvelopeItem(a,((t,n)=>{const s=r.envelopeItemTypeToDataCategory(n);if(r.isRateLimited(o,s)){const r=i(t,n);e.recordDroppedEvent("ratelimit_backoff",s,r)}else c.push(t)})),0===c.length)return r.resolvedSyncPromise({});const u=r.createEnvelope(a[0],c),l=t=>{r.forEachEnvelopeItem(u,((n,s)=>{const o=i(n,s);e.recordDroppedEvent(t,r.envelopeItemTypeToDataCategory(s),o)}))};return n.add((()=>t({body:r.serializeEnvelope(u)}).then((e=>(e.statusCode!==undefined&&(e.statusCode<200||e.statusCode>=300)&&s.DEBUG_BUILD&&r.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),o=r.updateRateLimits(o,e),e)),(e=>{throw l("network_error"),e})))).then((e=>e),(e=>{if(e instanceof r.SentryError)return s.DEBUG_BUILD&&r.logger.error("Skipped sending event because buffer is full."),l("queue_overflow"),r.resolvedSyncPromise({});throw e}))},flush:e=>n.drain(e)}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/transports/base.js"}],[3168,{"../api.js":3106,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../api.js");function i(e,t){let n;return r.forEachEnvelopeItem(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:undefined),!!n))),n}n.eventFromEnvelope=i,n.makeMultiplexedTransport=function(e,t){return n=>{const o=e(n),a=new Map;function c(t,o){const c=o?`${t}:${o}`:t;let u=a.get(c);if(!u){const l=r.dsnFromString(t);if(!l)return undefined;const d=s.getEnvelopeEndpointWithUrlEncodedAuth(l,n.tunnel);u=o?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=i(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,o)({...n,url:d}):e({...n,url:d}),a.set(c,u)}return[t,u]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){const n=t&&t.length?t:["event"];return i(e,n)}}).map((e=>"string"==typeof e?c(e,undefined):c(e.dsn,e.release))).filter((e=>!!e)),s=n.length?n:[["",o]];return(await Promise.all(s.map((([t,n])=>n.send(function(e,t){return r.createEnvelope(t?{...e[0],dsn:t}:e[0],e[1])}(e,t))))))[0]},flush:async function(e){const t=[...a.values(),o];return(await Promise.all(t.map((t=>t.flush(e))))).every((e=>e))}}}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/transports/multiplexed.js"}],[3169,{"../debug-build.js":3115,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),i=5e3;n.MIN_DELAY=100,n.START_DELAY=i,n.makeOfflineTransport=function(e){function t(...e){s.DEBUG_BUILD&&r.logger.info("[Offline]:",...e)}return n=>{const s=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let a,c=i;function u(e){a&&clearTimeout(a),a=setTimeout((async()=>{a=undefined;const e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),d(e,!0).catch((e=>{t("Failed to retry sending",e)})))}),e),"number"!=typeof a&&a.unref&&a.unref()}function l(){a||(u(c),c=Math.min(2*c,36e5))}async function d(e,a=!1){if(!a&&r.envelopeContainsItemType(e,["replay_event","replay_recording"]))return await o.push(e),u(100),{};try{const t=await s.send(e);let n=100;if(t)if(t.headers&&t.headers["retry-after"])n=r.parseRetryAfterHeader(t.headers["retry-after"]);else if(t.headers&&t.headers["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t;return u(n),c=i,t}catch(s){if(await function(e,t,s){return!r.envelopeContainsItemType(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,t,s))}(e,s,c))return a?await o.unshift(e):await o.push(e),l(),t("Error sending. Event queued.",s),{};throw s}}return n.flushAtStartup&&l(),{send:d,flush:e=>s.flush(e)}}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/transports/offline.js"}],[3170,{"./currentScopes.js":3114,"./debug-build.js":3115,"./exports.js":3119,"./semanticAttributes.js":3151,"./tracing/errors.js":3156,"./tracing/trace.js":3165,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),i=e("./exports.js"),o=e("./semanticAttributes.js");e("./tracing/errors.js"),e("./debug-build.js");const a=e("./tracing/trace.js"),c={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};n.trpcMiddleware=function(e={}){return async function(t){const{path:n,type:u,next:l,rawInput:d,getRawInput:p}=t,f=s.getClient(),h=f&&f.getOptions(),_={procedure_type:u};if((e.attachRpcInput!==undefined?e.attachRpcInput:h&&h.sendDefaultPii)&&(d!==undefined&&(_.input=r.normalize(d)),p!==undefined&&"function"==typeof p))try{const e=await p();_.input=r.normalize(e)}catch(e){}return i.setContext("trpc",_),a.startSpanManual({name:`trpc/${n}`,op:"rpc.server",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},(async e=>{try{const t=await l();return function(e){"object"==typeof e&&null!==e&&"ok"in e&&!e.ok&&"error"in e&&i.captureException(e.error,c)}(t),e.end(),t}catch(t){throw i.captureException(t,c),e.end(),t}}))}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/trpc.js"}],[3171,{"../tracing/dynamicSamplingContext.js":3155,"./spanUtils.js":3181,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../tracing/dynamicSamplingContext.js"),i=e("./spanUtils.js");function o(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}n.applyScopeDataToEvent=function(e,t){const{fingerprint:n,span:o,breadcrumbs:a,sdkProcessingMetadata:c}=t;!function(e,t){const{extra:n,tags:s,user:i,contexts:o,level:a,transactionName:c}=t,u=r.dropUndefinedKeys(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const l=r.dropUndefinedKeys(s);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const d=r.dropUndefinedKeys(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const p=r.dropUndefinedKeys(o);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts});a&&(e.level=a);c&&"transaction"!==e.type&&(e.transaction=c)}(e,t),o&&function(e,t){e.contexts={trace:i.spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:s.getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};const n=i.getRootSpan(t),r=i.spanToJSON(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,o),function(e,t){e.fingerprint=e.fingerprint?r.arrayify(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:undefined}(e,a),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,c)},n.mergeAndOverwriteScopeData=o,n.mergeScopeData=function(e,t){const{extra:n,tags:r,user:s,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:p,propagationContext:f,transactionName:h,span:_}=t;o(e,"extra",n),o(e,"tags",r),o(e,"user",s),o(e,"contexts",i),o(e,"sdkProcessingMetadata",c),a&&(e.level=a),h&&(e.transactionName=h),_&&(e.span=_),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/applyScopeDataToEvent.js"}],[3172,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");n.handleCallbackErrors=function(e,t,n=(()=>{})){let s;try{s=e()}catch(e){throw t(e),n(),e}return function(e,t,n){if(r.isThenable(e))return e.then((e=>(n(),e)),(e=>{throw t(e),n(),e}));return n(),e}(s,t,n)}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/handleCallbackErrors.js"}],[3173,{"../currentScopes.js":3114},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../currentScopes.js");n.hasTracingEnabled=function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=r.getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/hasTracingEnabled.js"}],[3174,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){function r(e){return"/"===e[e.length-1]?e.slice(0,-1):e}Object.defineProperty(n,"__esModule",{value:!0}),n.isSentryRequestUrl=function(e,t){const n=t&&t.getDsn(),s=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return r(e)===r(t)}(e,s)}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/isSentryRequestUrl.js"}],[3175,{"./traceData.js":3182},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./traceData.js");n.getTraceMetaTags=function(){return Object.entries(r.getTraceData()).map((([e,t])=>``)).join("\n")}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/meta.js"}],[3176,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parameterize=function(e,...t){const 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}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/parameterize.js"}],[3177,{"../debug-build.js":3115,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js");n.parseSampleRate=function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?(s.DEBUG_BUILD&&r.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),undefined):t}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/parseSampleRate.js"}],[3178,{"../constants.js":3113,"../currentScopes.js":3114,"../eventProcessors.js":3118,"../scope.js":3149,"./applyScopeDataToEvent.js":3171,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../constants.js"),i=e("../currentScopes.js"),o=e("../eventProcessors.js"),a=e("../scope.js"),c=e("./applyScopeDataToEvent.js");const u=new WeakMap;function l(e,t){const n=r.GLOBAL_OBJ._sentryDebugIds;if(!n)return;let s;const i=u.get(t);i?s=i:(s=new Map,u.set(t,s));const o=Object.entries(n).reduce(((e,[n,r])=>{let i;const o=s.get(n);o?i=o:(i=t(n),s.set(n,i));for(let t=i.length-1;t>=0;t--){const n=i[t];if(n.filename){e[n.filename]=r;break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=o[e.filename])}))}))}catch(e){}}function d(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function p(e,t){if(!t)return e;const n=e?e.clone():new a.Scope;return n.update(t),n}const f=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];n.applyDebugIds=l,n.applyDebugMeta=d,n.parseEventHintOrCaptureContext=function(e){return e?function(e){return e instanceof a.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>f.includes(e)))}(e)?{captureContext:e}:e:undefined},n.prepareEvent=function(e,t,n,a,u,f){const{normalizeDepth:h=3,normalizeMaxBreadth:_=1e3}=e,m={...t,event_id:t.event_id||n.event_id||r.uuid4(),timestamp:t.timestamp||r.dateTimestampInSeconds()},g=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:i,dist:o,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:s.DEFAULT_ENVIRONMENT);e.release===undefined&&i!==undefined&&(e.release=i);e.dist===undefined&&o!==undefined&&(e.dist=o);e.message&&(e.message=r.truncate(e.message,a));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=r.truncate(c.value,a));const u=e.request;u&&u.url&&(u.url=r.truncate(u.url,a))}(m,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(m,g),u&&u.emit("applyFrameMetadata",t),t.type===undefined&&l(m,e.stackParser);const S=p(a,n.captureContext);n.mechanism&&r.addExceptionMechanism(m,n.mechanism);const y=u?u.getEventProcessors():[],E=i.getGlobalScope().getScopeData();if(f){const e=f.getScopeData();c.mergeScopeData(E,e)}if(S){const e=S.getScopeData();c.mergeScopeData(E,e)}const b=[...n.attachments||[],...E.attachments];b.length&&(n.attachments=b),c.applyScopeDataToEvent(m,E);const T=[...y,...E.eventProcessors];return o.notifyEventProcessors(T,m,n).then((e=>(e&&d(e),"number"==typeof h&&h>0?function(e,t,n){if(!e)return null;const s={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:r.normalize(e.data,t,n)}})))},...e.user&&{user:r.normalize(e.user,t,n)},...e.contexts&&{contexts:r.normalize(e.contexts,t,n)},...e.extra&&{extra:r.normalize(e.extra,t,n)}};e.contexts&&e.contexts.trace&&s.contexts&&(s.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(s.contexts.trace.data=r.normalize(e.contexts.trace.data,t,n)));e.spans&&(s.spans=e.spans.map((e=>({...e,...e.data&&{data:r.normalize(e.data,t,n)}}))));return s}(e,h,_):e)))}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/prepareEvent.js"}],[3179,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");n.applySdkMetadata=function(e,t,n=[t],s="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${s}:@sentry/${e}`,version:r.SDK_VERSION}))),version:r.SDK_VERSION}),e._metadata=i}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/sdkMetadata.js"}],[3180,{"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s="_sentrySpan";n._getSpanForScope=function(e){return e[s]},n._setSpanForScope=function(e,t){t?r.addNonEnumerableProperty(e,s,t):delete e[s]}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/spanOnScope.js"}],[3181,{"../asyncContext/index.js":3107,"../carrier.js":3111,"../currentScopes.js":3114,"../metrics/metric-summary.js":3146,"../semanticAttributes.js":3151,"../tracing/spanstatus.js":3164,"./spanOnScope.js":3180,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../asyncContext/index.js"),i=e("../carrier.js"),o=e("../currentScopes.js"),a=e("../metrics/metric-summary.js"),c=e("../semanticAttributes.js"),u=e("../tracing/spanstatus.js"),l=e("./spanOnScope.js"),d=1;function p(e){return"number"==typeof e?f(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?f(e.getTime()):r.timestampInSeconds()}function f(e){return e>9999999999?e/1e3:e}function h(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:s,startTime:i,name:o,endTime:u,parentSpanId:l,status:d}=e;return r.dropUndefinedKeys({span_id:t,trace_id:n,data:s,description:o,parent_span_id:l,start_timestamp:p(i),timestamp:p(u)||undefined,status:m(d),op:s[c.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:s[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:a.getMetricSummaryJsonForSpan(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function _(e){const{traceFlags:t}=e.spanContext();return t===d}function m(e){return e&&e.code!==u.SPAN_STATUS_UNSET?e.code===u.SPAN_STATUS_OK?"ok":e.message||"unknown_error":undefined}const g="_sentryChildSpans",S="_sentryRootSpan";function y(){const e=i.getMainCarrier(),t=s.getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():l._getSpanForScope(o.getCurrentScope())}n.TRACE_FLAG_NONE=0,n.TRACE_FLAG_SAMPLED=d,n.addChildSpanToSpan=function(e,t){const n=e[S]||e;r.addNonEnumerableProperty(t,S,n),e[g]?e[g].add(t):r.addNonEnumerableProperty(e,g,new Set([t]))},n.getActiveSpan=y,n.getRootSpan=function(e){return e[S]||e},n.getSpanDescendants=function(e){const t=new Set;return function e(n){if(!t.has(n)&&_(n)){t.add(n);const r=n[g]?Array.from(n[g]):[];for(const t of r)e(t)}}(e),Array.from(t)},n.getStatusMessage=m,n.removeChildSpanFromSpan=function(e,t){e[g]&&e[g].delete(t)},n.spanIsSampled=_,n.spanTimeInputToSeconds=p,n.spanToJSON=h,n.spanToTraceContext=function(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:s}=h(e);return r.dropUndefinedKeys({parent_span_id:s,span_id:t,trace_id:n})},n.spanToTraceHeader=function(e){const{traceId:t,spanId:n}=e.spanContext(),s=_(e);return r.generateSentryTraceHeader(t,n,s)},n.spanToTransactionTraceContext=function(e){const{spanId:t,traceId:n}=e.spanContext(),{data:s,op:i,parent_span_id:o,status:a,origin:c}=h(e);return r.dropUndefinedKeys({parent_span_id:o,span_id:t,trace_id:n,data:s,op:i,status:a,origin:c})},n.updateMetricSummaryOnActiveSpan=function(e,t,n,r,s,i){const o=y();o&&a.updateMetricSummaryOnSpan(o,e,t,n,r,s,i)}}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/spanUtils.js"}],[3182,{"../asyncContext/index.js":3107,"../carrier.js":3111,"../currentScopes.js":3114,"../debug-build.js":3115,"../exports.js":3119,"../tracing/dynamicSamplingContext.js":3155,"../tracing/errors.js":3156,"./spanUtils.js":3181,"@sentry/utils":3204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../asyncContext/index.js"),i=e("../carrier.js"),o=e("../currentScopes.js"),a=e("../exports.js");e("../tracing/errors.js"),e("../debug-build.js");const c=e("./spanUtils.js"),u=e("../tracing/dynamicSamplingContext.js");function l(e){if(!e||!e.length)return!1;const t="[-!#$%&'*+.^_`|~A-Za-z0-9]+",n="[!#-+-./0-9:<=>?@A-Z\\[\\]a-z{-}]+",r="\\s*";return new RegExp(`^${t}${r}=${r}${n}(${r},${r}${t}${r}=${r}${n})*$`).test(e)}n.getTraceData=function(){if(!a.isEnabled())return{};const e=i.getMainCarrier(),t=s.getAsyncContextStrategy(e);if(t.getTraceData)return t.getTraceData();const n=o.getClient(),d=o.getCurrentScope(),p=c.getActiveSpan(),{dsc:f,sampled:h,traceId:_}=d.getPropagationContext(),m=p&&c.getRootSpan(p),g=p?c.spanToTraceHeader(p):r.generateSentryTraceHeader(_,undefined,h),S=m?u.getDynamicSamplingContextFromSpan(m):f||(n?u.getDynamicSamplingContextFromClient(_,n):undefined),y=r.dynamicSamplingContextToSentryBaggageHeader(S);if(!r.TRACEPARENT_REGEXP.test(g))return r.logger.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const E=l(y);return E||r.logger.warn('Invalid baggage data. Not returning "baggage" value'),{"sentry-trace":g,...E&&{baggage:y}}},n.isValidBaggageString=l}}},{package:"@sentry/browser>@sentry/core",file:"node_modules/@sentry/core/build/cjs/utils/traceData.js"}],[3183,{"./is.js":3210,"./string.js":3227},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js"),s=e("./string.js");function i(e,t,n,s,c,u,l,d){if(u.length>=n+1)return u;let p=[...u];if(r.isInstanceOf(s[c],Error)){o(l,d);const r=e(t,s[c]),u=p.length;a(r,c,u,d),p=i(e,t,n,s[c],c,[r,...p],r,u)}return Array.isArray(s.errors)&&s.errors.forEach(((s,u)=>{if(r.isInstanceOf(s,Error)){o(l,d);const r=e(t,s),f=p.length;a(r,`errors[${u}]`,f,d),p=i(e,t,n,s,c,[r,...p],r,f)}})),p}function o(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function a(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}n.applyAggregateErrorsToEvent=function(e,t,n=250,o,a,c,u){if(!(c.exception&&c.exception.values&&u&&r.isInstanceOf(u.originalException,Error)))return;const l=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:undefined;var d,p;l&&(c.exception.values=(d=i(e,t,a,u.originalException,o,c.exception.values,l,0),p=n,d.map((e=>(e.value&&(e.value=s.truncate(e.value,p)),e)))))}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/aggregate-errors.js"}],[3184,{"./node-stack-trace.js":3216,"./object.js":3219,"./stacktrace.js":3226},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./node-stack-trace.js"),s=e("./object.js"),i=e("./stacktrace.js");n.callFrameToStackFrame=function(e,t,n){const o=t?t.replace(/^file:\/\//,""):undefined,a=e.location.columnNumber?e.location.columnNumber+1:undefined,c=e.location.lineNumber?e.location.lineNumber+1:undefined;return s.dropUndefinedKeys({filename:o,module:n(o),function:e.functionName||i.UNKNOWN_FUNCTION,colno:a,lineno:c,in_app:o?r.filenameIsInApp(o):undefined})},n.watchdogTimer=function(e,t,n,r){const s=e();let i=!1,o=!0;return setInterval((()=>{const e=s.getTimeMs();!1===i&&e>t+n&&(i=!0,o&&r()),e{s.reset()},enabled:e=>{o=e}}}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/anr.js"}],[3185,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.flatten=function(e){const t=[],n=e=>{e.forEach((e=>{Array.isArray(e)?n(e):t.push(e)}))};return n(e),t}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/array.js"}],[3186,{"./debug-build.js":3198,"./is.js":3210,"./logger.js":3212},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./debug-build.js"),s=e("./is.js"),i=e("./logger.js"),o="sentry-",a=/^sentry-/,c=8192;function u(e){return e&&(s.isString(e)||Array.isArray(e))?Array.isArray(e)?e.reduce(((e,t)=>{const n=l(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):l(e):undefined}function l(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}n.BAGGAGE_HEADER_NAME="baggage",n.MAX_BAGGAGE_STRING_LENGTH=c,n.SENTRY_BAGGAGE_KEY_PREFIX=o,n.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=a,n.baggageHeaderToDynamicSamplingContext=function(e){const t=u(e);if(!t)return undefined;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(a)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:undefined},n.dynamicSamplingContextToSentryBaggageHeader=function(e){return e?function(e){if(0===Object.keys(e).length)return undefined;return Object.entries(e).reduce(((e,[t,n],s)=>{const o=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===s?o:`${e},${o}`;return a.length>c?(r.DEBUG_BUILD&&i.logger.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${o}${t}`]=n),e)),{})):undefined},n.parseBaggageHeader=u}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/baggage.js"}],[3187,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getBreadcrumbLogLevelFromHttpStatusCode=function(e){return e===undefined?undefined:e>=400&&e<500?"warning":e>=500?"error":undefined}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/breadcrumb-log-level.js"}],[3188,{"./is.js":3210,"./worldwide.js":3237},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js"),s=e("./worldwide.js").GLOBAL_OBJ;function i(e,t){const n=e,i=[];if(!n||!n.tagName)return"";if(s.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const o=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(o&&o.length)o.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&i.push(`#${n.id}`);const e=n.className;if(e&&r.isString(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}const a=["aria-label","type","name","title","alt"];for(const e of a){const t=n.getAttribute(e);t&&i.push(`[${e}="${t}"]`)}return i.join("")}n.getComponentName=function(e){if(!s.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){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},n.getDomElement=function(e){return s.document&&s.document.querySelector?s.document.querySelector(e):null},n.getLocationHref=function(){try{return s.document.location.href}catch(e){return""}},n.htmlTreeAsString=function(e,t={}){if(!e)return"";try{let n=e;const r=5,s=[];let o=0,a=0;const c=" > ",u=c.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&o++1&&a+s.length*u+l.length>=p));)s.push(l),a+=l.length,n=n.parentNode;return s.reverse().join(c)}catch(e){return""}}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/browser.js"}],[3189,{"./_nullishCoalesce.js":3192},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./_nullishCoalesce.js");n._asyncNullishCoalesce=async function(e,t){return r._nullishCoalesce(e,t)}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/buildPolyfills/_asyncNullishCoalesce.js"}],[3190,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n._asyncOptionalChain=async function(e){let t=undefined,n=e[0],r=1;for(;rn.call(t,...e))),t=undefined)}return n}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/buildPolyfills/_asyncOptionalChain.js"}],[3191,{"./_asyncOptionalChain.js":3190},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./_asyncOptionalChain.js");n._asyncOptionalChainDelete=async function(e){const t=await r._asyncOptionalChain(e);return null==t||t}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/buildPolyfills/_asyncOptionalChainDelete.js"}],[3192,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n._nullishCoalesce=function(e,t){return null!=e?e:t()}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/buildPolyfills/_nullishCoalesce.js"}],[3193,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n._optionalChain=function(e){let t=undefined,n=e[0],r=1;for(;rn.call(t,...e))),t=undefined)}return n}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/buildPolyfills/_optionalChain.js"}],[3194,{"./_optionalChain.js":3193},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./_optionalChain.js");n._optionalChainDelete=function(e){const t=r._optionalChain(e);return null==t||t}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/buildPolyfills/_optionalChainDelete.js"}],[3195,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.makeFifoCache=function(e){let t=[],n={};return{add(r,s){for(;t.length>=e;){const e=t.shift();e!==undefined&&delete n[e]}n[r]&&this.delete(r),t.push(r),n[r]=s},clear(){n={},t=[]},get:e=>n[e],size:()=>t.length,delete(e){if(!n[e])return!1;delete n[e];for(let n=0;n{console.error(`Invalid Sentry Dsn: ${e}`)})),undefined;const[n,r,o="",c="",u="",l=""]=t.slice(1);let d="",p=l;const f=p.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),p=f.pop()),p){const e=p.match(/^\d+/);e&&(p=e[0])}return a({host:c,pass:o,path:d,projectId:p,port:u,protocol:n,publicKey:r})}function a(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}n.dsnFromString=o,n.dsnToString=function(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`},n.makeDsn=function(e){const t="string"==typeof e?o(e):a(e);return t&&function(e){if(!r.DEBUG_BUILD)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(s.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(s.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(s.logger.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(s.logger.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t)?t:undefined}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/dsn.js"}],[3200,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getSDKSource=function(){return"npm"},n.isBrowserBundle=function(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/env.js"}],[3201,{"./dsn.js":3199,"./normalize.js":3218,"./object.js":3219,"./worldwide.js":3237},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./dsn.js"),s=e("./normalize.js"),i=e("./object.js"),o=e("./worldwide.js");function a(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function c(e){return o.GLOBAL_OBJ.__SENTRY__&&o.GLOBAL_OBJ.__SENTRY__.encodePolyfill?o.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}const u={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",statsd:"metric_bucket"};n.addItemToEnvelope=function(e,t){const[n,r]=e;return[n,[...r,t]]},n.createAttachmentEnvelopeItem=function(e){const t="string"==typeof e.data?c(e.data):e.data;return[i.dropUndefinedKeys({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]},n.createEnvelope=function(e,t=[]){return[e,t]},n.createEventEnvelopeHeaders=function(e,t,n,s){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&s&&{dsn:r.dsnToString(s)},...o&&{trace:i.dropUndefinedKeys({...o})}}},n.createSpanEnvelopeItem=function(e){return[{type:"span"},e]},n.envelopeContainsItemType=function(e,t){return a(e,((e,n)=>t.includes(n)))},n.envelopeItemTypeToDataCategory=function(e){return u[e]},n.forEachEnvelopeItem=a,n.getSdkMetadataForEnvelopeHeader=function(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}},n.parseEnvelope=function(e){let t="string"==typeof e?c(e):e;function n(e){const n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse((r=n(e),o.GLOBAL_OBJ.__SENTRY__&&o.GLOBAL_OBJ.__SENTRY__.decodePolyfill?o.GLOBAL_OBJ.__SENTRY__.decodePolyfill(r):(new TextDecoder).decode(r)));var r}const s=r(),i=[];for(;t.length;){const e=r(),t="number"==typeof e.length?e.length:undefined;i.push([e,t?n(t):r()])}return[s,i]},n.serializeEnvelope=function(e){const[t,n]=e;let r=JSON.stringify(t);function i(e){"string"==typeof r?r="string"==typeof e?r+e:[c(r),e]:r.push("string"==typeof e?c(e):e)}for(const e of n){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(s.normalize(n))}i(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/envelope.js"}],[3202,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});class r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}n.SentryError=r}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/error.js"}],[3203,{"./is.js":3210,"./misc.js":3215,"./normalize.js":3218,"./object.js":3219},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js"),s=e("./misc.js"),i=e("./normalize.js"),o=e("./object.js");function a(e,t){return e(t.stack||"",1)}function c(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=a(e,t);return r.length&&(n.stacktrace={frames:r}),n}function u(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}if("message"in e&&"string"==typeof e.message)return e.message;const t=o.extractExceptionKeysForMessage(e);if(r.isErrorEvent(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;const n=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:undefined}catch(e){}}(e);return`${n&&"Object"!==n?`'${n}'`:"Object"} captured as exception with keys: ${t}`}function l(e,t,n,s){if(r.isError(n))return[n,undefined];if(t.synthetic=!0,r.isPlainObject(n)){const t=e&&e.getOptions().normalizeDepth,r={__serialized__:i.normalizeToSize(n,t)},o=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return undefined}(n);if(o)return[o,r];const a=u(n),c=s&&s.syntheticException||new Error(a);return c.message=a,[c,r]}const o=s&&s.syntheticException||new Error(n);return o.message=`${n}`,[o,undefined]}n.eventFromMessage=function(e,t,n="info",s,i){const o={event_id:s&&s.event_id,level:n};if(i&&s&&s.syntheticException){const n=a(e,s.syntheticException);n.length&&(o.exception={values:[{value:t,stacktrace:{frames:n}}]})}if(r.isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o},n.eventFromUnknownInput=function(e,t,n,r){const i=r&&r.data&&r.data.mechanism||{handled:!0,type:"generic"},[o,a]=l(e,i,n,r),u={exception:{values:[c(t,o)]}};return a&&(u.extra=a),s.addExceptionTypeValue(u,undefined,undefined),s.addExceptionMechanism(u,i),{...u,event_id:r&&r.event_id}},n.exceptionFromError=c,n.parseStackFrames=a}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/eventbuilder.js"}],[3204,{"./aggregate-errors.js":3183,"./anr.js":3184,"./array.js":3185,"./baggage.js":3186,"./breadcrumb-log-level.js":3187,"./browser.js":3188,"./buildPolyfills/_asyncNullishCoalesce.js":3189,"./buildPolyfills/_asyncOptionalChain.js":3190,"./buildPolyfills/_asyncOptionalChainDelete.js":3191,"./buildPolyfills/_nullishCoalesce.js":3192,"./buildPolyfills/_optionalChain.js":3193,"./buildPolyfills/_optionalChainDelete.js":3194,"./cache.js":3195,"./clientreport.js":3196,"./dsn.js":3199,"./env.js":3200,"./envelope.js":3201,"./error.js":3202,"./eventbuilder.js":3203,"./instrument/console.js":3205,"./instrument/fetch.js":3206,"./instrument/globalError.js":3207,"./instrument/globalUnhandledRejection.js":3208,"./instrument/handlers.js":3209,"./is.js":3210,"./isBrowser.js":3211,"./logger.js":3212,"./lru.js":3213,"./memo.js":3214,"./misc.js":3215,"./node-stack-trace.js":3216,"./node.js":3217,"./normalize.js":3218,"./object.js":3219,"./path.js":3220,"./promisebuffer.js":3221,"./propagationContext.js":3222,"./ratelimit.js":3223,"./requestdata.js":3224,"./severity.js":3225,"./stacktrace.js":3226,"./string.js":3227,"./supports.js":3228,"./syncpromise.js":3229,"./time.js":3230,"./tracing.js":3231,"./url.js":3232,"./vendor/escapeStringForRegex.js":3233,"./vendor/supportsHistory.js":3235,"./version.js":3236,"./worldwide.js":3237},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./aggregate-errors.js"),s=e("./array.js"),i=e("./breadcrumb-log-level.js"),o=e("./browser.js"),a=e("./dsn.js"),c=e("./error.js"),u=e("./worldwide.js"),l=e("./instrument/console.js"),d=e("./instrument/fetch.js"),p=e("./instrument/globalError.js"),f=e("./instrument/globalUnhandledRejection.js"),h=e("./instrument/handlers.js"),_=e("./is.js"),m=e("./isBrowser.js"),g=e("./logger.js"),S=e("./memo.js"),y=e("./misc.js"),E=e("./node.js"),b=e("./normalize.js"),T=e("./object.js"),R=e("./path.js"),I=e("./promisebuffer.js"),v=e("./requestdata.js"),O=e("./severity.js"),A=e("./stacktrace.js"),w=e("./node-stack-trace.js"),N=e("./string.js"),C=e("./supports.js"),j=e("./syncpromise.js"),k=e("./time.js"),D=e("./tracing.js"),x=e("./env.js"),L=e("./envelope.js"),M=e("./clientreport.js"),P=e("./ratelimit.js"),U=e("./baggage.js"),B=e("./url.js"),F=e("./cache.js"),H=e("./eventbuilder.js"),G=e("./anr.js"),z=e("./lru.js"),W=e("./buildPolyfills/_asyncNullishCoalesce.js"),$=e("./buildPolyfills/_asyncOptionalChain.js"),V=e("./buildPolyfills/_asyncOptionalChainDelete.js"),Y=e("./buildPolyfills/_nullishCoalesce.js"),q=e("./buildPolyfills/_optionalChain.js"),X=e("./buildPolyfills/_optionalChainDelete.js"),K=e("./propagationContext.js"),J=e("./version.js"),Z=e("./vendor/escapeStringForRegex.js"),Q=e("./vendor/supportsHistory.js");n.applyAggregateErrorsToEvent=r.applyAggregateErrorsToEvent,n.flatten=s.flatten,n.getBreadcrumbLogLevelFromHttpStatusCode=i.getBreadcrumbLogLevelFromHttpStatusCode,n.getComponentName=o.getComponentName,n.getDomElement=o.getDomElement,n.getLocationHref=o.getLocationHref,n.htmlTreeAsString=o.htmlTreeAsString,n.dsnFromString=a.dsnFromString,n.dsnToString=a.dsnToString,n.makeDsn=a.makeDsn,n.SentryError=c.SentryError,n.GLOBAL_OBJ=u.GLOBAL_OBJ,n.getGlobalSingleton=u.getGlobalSingleton,n.addConsoleInstrumentationHandler=l.addConsoleInstrumentationHandler,n.addFetchEndInstrumentationHandler=d.addFetchEndInstrumentationHandler,n.addFetchInstrumentationHandler=d.addFetchInstrumentationHandler,n.addGlobalErrorInstrumentationHandler=p.addGlobalErrorInstrumentationHandler,n.addGlobalUnhandledRejectionInstrumentationHandler=f.addGlobalUnhandledRejectionInstrumentationHandler,n.addHandler=h.addHandler,n.maybeInstrument=h.maybeInstrument,n.resetInstrumentationHandlers=h.resetInstrumentationHandlers,n.triggerHandlers=h.triggerHandlers,n.isDOMError=_.isDOMError,n.isDOMException=_.isDOMException,n.isElement=_.isElement,n.isError=_.isError,n.isErrorEvent=_.isErrorEvent,n.isEvent=_.isEvent,n.isInstanceOf=_.isInstanceOf,n.isParameterizedString=_.isParameterizedString,n.isPlainObject=_.isPlainObject,n.isPrimitive=_.isPrimitive,n.isRegExp=_.isRegExp,n.isString=_.isString,n.isSyntheticEvent=_.isSyntheticEvent,n.isThenable=_.isThenable,n.isVueViewModel=_.isVueViewModel,n.isBrowser=m.isBrowser,n.CONSOLE_LEVELS=g.CONSOLE_LEVELS,n.consoleSandbox=g.consoleSandbox,n.logger=g.logger,n.originalConsoleMethods=g.originalConsoleMethods,n.memoBuilder=S.memoBuilder,n.addContextToFrame=y.addContextToFrame,n.addExceptionMechanism=y.addExceptionMechanism,n.addExceptionTypeValue=y.addExceptionTypeValue,n.arrayify=y.arrayify,n.checkOrSetAlreadyCaught=y.checkOrSetAlreadyCaught,n.getEventDescription=y.getEventDescription,n.parseSemver=y.parseSemver,n.uuid4=y.uuid4,n.dynamicRequire=E.dynamicRequire,n.isNodeEnv=E.isNodeEnv,n.loadModule=E.loadModule,n.normalize=b.normalize,n.normalizeToSize=b.normalizeToSize,n.normalizeUrlToBase=b.normalizeUrlToBase,n.addNonEnumerableProperty=T.addNonEnumerableProperty,n.convertToPlainObject=T.convertToPlainObject,n.dropUndefinedKeys=T.dropUndefinedKeys,n.extractExceptionKeysForMessage=T.extractExceptionKeysForMessage,n.fill=T.fill,n.getOriginalFunction=T.getOriginalFunction,n.markFunctionWrapped=T.markFunctionWrapped,n.objectify=T.objectify,n.urlEncode=T.urlEncode,n.basename=R.basename,n.dirname=R.dirname,n.isAbsolute=R.isAbsolute,n.join=R.join,n.normalizePath=R.normalizePath,n.relative=R.relative,n.resolve=R.resolve,n.makePromiseBuffer=I.makePromiseBuffer,n.DEFAULT_USER_INCLUDES=v.DEFAULT_USER_INCLUDES,n.addRequestDataToEvent=v.addRequestDataToEvent,n.extractPathForTransaction=v.extractPathForTransaction,n.extractRequestData=v.extractRequestData,n.winterCGHeadersToDict=v.winterCGHeadersToDict,n.winterCGRequestToRequestData=v.winterCGRequestToRequestData,n.severityLevelFromString=O.severityLevelFromString,n.validSeverityLevels=O.validSeverityLevels,n.UNKNOWN_FUNCTION=A.UNKNOWN_FUNCTION,n.createStackParser=A.createStackParser,n.getFramesFromEvent=A.getFramesFromEvent,n.getFunctionName=A.getFunctionName,n.stackParserFromStackParserOptions=A.stackParserFromStackParserOptions,n.stripSentryFramesAndReverse=A.stripSentryFramesAndReverse,n.filenameIsInApp=w.filenameIsInApp,n.node=w.node,n.nodeStackLineParser=w.nodeStackLineParser,n.isMatchingPattern=N.isMatchingPattern,n.safeJoin=N.safeJoin,n.snipLine=N.snipLine,n.stringMatchesSomePattern=N.stringMatchesSomePattern,n.truncate=N.truncate,n.isNativeFunction=C.isNativeFunction,n.supportsDOMError=C.supportsDOMError,n.supportsDOMException=C.supportsDOMException,n.supportsErrorEvent=C.supportsErrorEvent,n.supportsFetch=C.supportsFetch,n.supportsNativeFetch=C.supportsNativeFetch,n.supportsReferrerPolicy=C.supportsReferrerPolicy,n.supportsReportingObserver=C.supportsReportingObserver,n.SyncPromise=j.SyncPromise,n.rejectedSyncPromise=j.rejectedSyncPromise,n.resolvedSyncPromise=j.resolvedSyncPromise,Object.defineProperty(n,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>k._browserPerformanceTimeOriginMode}),n.browserPerformanceTimeOrigin=k.browserPerformanceTimeOrigin,n.dateTimestampInSeconds=k.dateTimestampInSeconds,n.timestampInSeconds=k.timestampInSeconds,n.TRACEPARENT_REGEXP=D.TRACEPARENT_REGEXP,n.extractTraceparentData=D.extractTraceparentData,n.generateSentryTraceHeader=D.generateSentryTraceHeader,n.propagationContextFromHeaders=D.propagationContextFromHeaders,n.getSDKSource=x.getSDKSource,n.isBrowserBundle=x.isBrowserBundle,n.addItemToEnvelope=L.addItemToEnvelope,n.createAttachmentEnvelopeItem=L.createAttachmentEnvelopeItem,n.createEnvelope=L.createEnvelope,n.createEventEnvelopeHeaders=L.createEventEnvelopeHeaders,n.createSpanEnvelopeItem=L.createSpanEnvelopeItem,n.envelopeContainsItemType=L.envelopeContainsItemType,n.envelopeItemTypeToDataCategory=L.envelopeItemTypeToDataCategory,n.forEachEnvelopeItem=L.forEachEnvelopeItem,n.getSdkMetadataForEnvelopeHeader=L.getSdkMetadataForEnvelopeHeader,n.parseEnvelope=L.parseEnvelope,n.serializeEnvelope=L.serializeEnvelope,n.createClientReportEnvelope=M.createClientReportEnvelope,n.DEFAULT_RETRY_AFTER=P.DEFAULT_RETRY_AFTER,n.disabledUntil=P.disabledUntil,n.isRateLimited=P.isRateLimited,n.parseRetryAfterHeader=P.parseRetryAfterHeader,n.updateRateLimits=P.updateRateLimits,n.BAGGAGE_HEADER_NAME=U.BAGGAGE_HEADER_NAME,n.MAX_BAGGAGE_STRING_LENGTH=U.MAX_BAGGAGE_STRING_LENGTH,n.SENTRY_BAGGAGE_KEY_PREFIX=U.SENTRY_BAGGAGE_KEY_PREFIX,n.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=U.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,n.baggageHeaderToDynamicSamplingContext=U.baggageHeaderToDynamicSamplingContext,n.dynamicSamplingContextToSentryBaggageHeader=U.dynamicSamplingContextToSentryBaggageHeader,n.parseBaggageHeader=U.parseBaggageHeader,n.getNumberOfUrlSegments=B.getNumberOfUrlSegments,n.getSanitizedUrlString=B.getSanitizedUrlString,n.parseUrl=B.parseUrl,n.stripUrlQueryAndFragment=B.stripUrlQueryAndFragment,n.makeFifoCache=F.makeFifoCache,n.eventFromMessage=H.eventFromMessage,n.eventFromUnknownInput=H.eventFromUnknownInput,n.exceptionFromError=H.exceptionFromError,n.parseStackFrames=H.parseStackFrames,n.callFrameToStackFrame=G.callFrameToStackFrame,n.watchdogTimer=G.watchdogTimer,n.LRUMap=z.LRUMap,n._asyncNullishCoalesce=W._asyncNullishCoalesce,n._asyncOptionalChain=$._asyncOptionalChain,n._asyncOptionalChainDelete=V._asyncOptionalChainDelete,n._nullishCoalesce=Y._nullishCoalesce,n._optionalChain=q._optionalChain,n._optionalChainDelete=X._optionalChainDelete,n.generatePropagationContext=K.generatePropagationContext,n.SDK_VERSION=J.SDK_VERSION,n.escapeStringForRegex=Z.escapeStringForRegex,n.supportsHistory=Q.supportsHistory}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/index.js"}],[3205,{"../logger.js":3212,"../object.js":3219,"../worldwide.js":3237,"./handlers.js":3209},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../logger.js"),s=e("../object.js"),i=e("../worldwide.js"),o=e("./handlers.js");function a(){"console"in i.GLOBAL_OBJ&&r.CONSOLE_LEVELS.forEach((function(e){e in i.GLOBAL_OBJ.console&&s.fill(i.GLOBAL_OBJ.console,e,(function(t){return r.originalConsoleMethods[e]=t,function(...t){const n={args:t,level:e};o.triggerHandlers("console",n);const s=r.originalConsoleMethods[e];s&&s.apply(i.GLOBAL_OBJ.console,t)}}))}))}n.addConsoleInstrumentationHandler=function(e){const t="console";o.addHandler(t,e),o.maybeInstrument(t,a)}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/instrument/console.js"}],[3206,{"../is.js":3210,"../object.js":3219,"../supports.js":3228,"../time.js":3230,"../worldwide.js":3237,"./handlers.js":3209},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../is.js"),s=e("../object.js"),i=e("../supports.js"),o=e("../time.js"),a=e("../worldwide.js"),c=e("./handlers.js");function u(e,t=!1){t&&!i.supportsNativeFetch()||s.fill(a.GLOBAL_OBJ,"fetch",(function(t){return function(...n){const{method:i,url:u}=f(n),l={args:n,fetchData:{method:i,url:u},startTimestamp:1e3*o.timestampInSeconds()};e||c.triggerHandlers("fetch",{...l});const d=(new Error).stack;return t.apply(a.GLOBAL_OBJ,n).then((async t=>(e?e(t):c.triggerHandlers("fetch",{...l,endTimestamp:1e3*o.timestampInSeconds(),response:t}),t)),(e=>{throw c.triggerHandlers("fetch",{...l,endTimestamp:1e3*o.timestampInSeconds(),error:e}),r.isError(e)&&e.stack===undefined&&(e.stack=d,s.addNonEnumerableProperty(e,"framesToPop",1)),e}))}}))}function l(e){let t;try{t=e.clone()}catch(e){return}!async function(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),9e4);let i=!0;for(;i;){let e;try{e=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),5e3);const{done:s}=await r.read();clearTimeout(e),s&&(t(),i=!1)}catch(e){i=!1}finally{clearTimeout(e)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,(()=>{}))}}(t,(()=>{c.triggerHandlers("fetch-body-resolved",{endTimestamp:1e3*o.timestampInSeconds(),response:e})}))}function d(e,t){return!!e&&"object"==typeof e&&!!e[t]}function p(e){return"string"==typeof e?e:e?d(e,"url")?e.url:e.toString?e.toString():"":""}function f(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:p(t),method:d(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:p(t),method:d(t,"method")?String(t.method).toUpperCase():"GET"}}n.addFetchEndInstrumentationHandler=function(e){const t="fetch-body-resolved";c.addHandler(t,e),c.maybeInstrument(t,(()=>u(l)))},n.addFetchInstrumentationHandler=function(e,t){const n="fetch";c.addHandler(n,e),c.maybeInstrument(n,(()=>u(undefined,t)))},n.parseFetchArgs=f}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/instrument/fetch.js"}],[3207,{"../worldwide.js":3237,"./handlers.js":3209},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../worldwide.js"),s=e("./handlers.js");let i=null;function o(){i=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(e,t,n,r,o){const a={column:r,error:o,line:n,msg:e,url:t};return s.triggerHandlers("error",a),!(!i||i.__SENTRY_LOADER__)&&i.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}n.addGlobalErrorInstrumentationHandler=function(e){const t="error";s.addHandler(t,e),s.maybeInstrument(t,o)}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/instrument/globalError.js"}],[3208,{"../worldwide.js":3237,"./handlers.js":3209},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../worldwide.js"),s=e("./handlers.js");let i=null;function o(){i=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return s.triggerHandlers("unhandledrejection",t),!(i&&!i.__SENTRY_LOADER__)||i.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}n.addGlobalUnhandledRejectionInstrumentationHandler=function(e){const t="unhandledrejection";s.addHandler(t,e),s.maybeInstrument(t,o)}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/instrument/globalUnhandledRejection.js"}],[3209,{"../debug-build.js":3198,"../logger.js":3212,"../stacktrace.js":3226},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../debug-build.js"),s=e("../logger.js"),i=e("../stacktrace.js"),o={},a={};n.addHandler=function(e,t){o[e]=o[e]||[],o[e].push(t)},n.maybeInstrument=function(e,t){a[e]||(t(),a[e]=!0)},n.resetInstrumentationHandlers=function(){Object.keys(o).forEach((e=>{o[e]=undefined}))},n.triggerHandlers=function(e,t){const n=e&&o[e];if(n)for(const o of n)try{o(t)}catch(t){r.DEBUG_BUILD&&s.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${i.getFunctionName(o)}\nError:`,t)}}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/instrument/handlers.js"}],[3210,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=Object.prototype.toString;function s(e,t){return r.call(e)===`[object ${t}]`}function i(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function o(e){return s(e,"Object")}function a(e,t){try{return e instanceof t}catch(e){return!1}}n.isDOMError=function(e){return s(e,"DOMError")},n.isDOMException=function(e){return s(e,"DOMException")},n.isElement=function(e){return"undefined"!=typeof Element&&a(e,Element)},n.isError=function(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return a(e,Error)}},n.isErrorEvent=function(e){return s(e,"ErrorEvent")},n.isEvent=function(e){return"undefined"!=typeof Event&&a(e,Event)},n.isInstanceOf=a,n.isParameterizedString=i,n.isPlainObject=o,n.isPrimitive=function(e){return null===e||i(e)||"object"!=typeof e&&"function"!=typeof e},n.isRegExp=function(e){return s(e,"RegExp")},n.isString=function(e){return s(e,"String")},n.isSyntheticEvent=function(e){return o(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},n.isThenable=function(e){return Boolean(e&&e.then&&"function"==typeof e.then)},n.isVueViewModel=function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/is.js"}],[3211,{"./node.js":3217,"./worldwide.js":3237},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./node.js"),s=e("./worldwide.js");n.isBrowser=function(){return"undefined"!=typeof window&&(!r.isNodeEnv()||s.GLOBAL_OBJ.process!==undefined&&"renderer"===s.GLOBAL_OBJ.process.type)}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/isBrowser.js"}],[3212,{"./debug-build.js":3198,"./worldwide.js":3237},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./debug-build.js"),s=e("./worldwide.js"),i=["debug","info","warn","error","log","assert","trace"],o={};function a(e){if(!("console"in s.GLOBAL_OBJ))return e();const t=s.GLOBAL_OBJ.console,n={},r=Object.keys(o);r.forEach((e=>{const r=o[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const c=s.getGlobalSingleton("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.DEBUG_BUILD?i.forEach((n=>{t[n]=(...t)=>{e&&a((()=>{s.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)}))}})):i.forEach((e=>{t[e]=()=>undefined})),t}));n.CONSOLE_LEVELS=i,n.consoleSandbox=a,n.logger=c,n.originalConsoleMethods=o}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/logger.js"}],[3213,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.LRUMap=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){const t=this._cache.get(e);return t===undefined?undefined:(this._cache.delete(e),this._cache.set(e,t),t)}set(e,t){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,t)}remove(e){const t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const e=[];return this._cache.forEach((t=>e.push(t))),e}}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/lru.js"}],[3214,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.memoBuilder=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;es.snipLine(e,0)));const o=Math.min(r-1,i);t.context_line=s.snipLine(e[o],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map((e=>s.snipLine(e,0)))},n.addExceptionMechanism=function(e,t){const n=o(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}},n.addExceptionTypeValue=function(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")},n.arrayify=function(e){return Array.isArray(e)?e:[e]},n.checkOrSetAlreadyCaught=function(e){if(e&&e.__sentry_captured__)return!0;try{r.addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch(e){}return!1},n.getEventDescription=function(e){const{message:t,event_id:n}=e;if(t)return t;const r=o(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""},n.parseSemver=function(e){const t=e.match(a)||[],n=c(t[1]),r=c(t[2]),s=c(t[3]);return{buildmetadata:t[5],major:isNaN(n)?undefined:n,minor:isNaN(r)?undefined:r,patch:isNaN(s)?undefined:s,prerelease:t[4]}},n.uuid4=function(){const e=i.GLOBAL_OBJ,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/misc.js"}],[3216,{"./stacktrace.js":3226},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./stacktrace.js");function s(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&e!==undefined&&!e.includes("node_modules/")}function i(e){const t=/^\s*[-]{4,}$/,n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return i=>{const a=i.match(n);if(a){let t,n,i,c,u;if(a[1]){i=a[1];let e=i.lastIndexOf(".");if("."===i[e-1]&&e--,e>0){t=i.slice(0,e),n=i.slice(e+1);const r=t.indexOf(".Module");r>0&&(i=i.slice(r+1),t=t.slice(0,r))}c=undefined}n&&(c=t,u=n),""===n&&(u=undefined,i=undefined),i===undefined&&(u=u||r.UNKNOWN_FUNCTION,i=c?`${c}.${u}`:u);let l=a[2]&&a[2].startsWith("file://")?a[2].slice(7):a[2];const d="native"===a[5];return l&&l.match(/\/[A-Z]:/)&&(l=l.slice(1)),l||!a[5]||d||(l=a[5]),{filename:l,module:e?e(l):undefined,function:i,lineno:o(a[3]),colno:o(a[4]),in_app:s(l||"",d)}}return i.match(t)?{filename:i}:undefined}}function o(e){return parseInt(e||"",10)||undefined}n.filenameIsInApp=s,n.node=i,n.nodeStackLineParser=function(e){return[90,i(e)]}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/node-stack-trace.js"}],[3217,{"./env.js":3200,_process:5008},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){(function(r){(function(){Object.defineProperty(n,"__esModule",{value:!0});const s=e("./env.js");function i(e,t){return e.require(t)}n.dynamicRequire=i,n.isNodeEnv=function(){return!s.isBrowserBundle()&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)},n.loadModule=function(e){let n;try{n=i(t,e)}catch(e){}try{const{cwd:r}=i(t,"process");n=i(t,`${r()}/node_modules/${e}`)}catch(e){}return n}}).call(this)}).call(this,e("_process"))}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/node.js"}],[3218,{"./is.js":3210,"./memo.js":3214,"./object.js":3219,"./stacktrace.js":3226},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js"),s=e("./memo.js"),i=e("./object.js"),o=e("./stacktrace.js");function a(e,t=100,n=+Infinity){try{return c("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t,n=+Infinity,a=+Infinity,u=s.memoBuilder()){const[l,d]=u;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const p=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(r.isVueViewModel(t))return"[VueViewModel]";if(r.isSyntheticEvent(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${o.getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!p.startsWith("[object "))return p;if(t.__sentry_skip_normalization__)return t;const f="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===f)return p.replace("object ","");if(l(t))return"[Circular ~]";const h=t;if(h&&"function"==typeof h.toJSON)try{return c("",h.toJSON(),f-1,a,u)}catch(e){}const _=Array.isArray(t)?[]:{};let m=0;const g=i.convertToPlainObject(t);for(const e in g){if(!Object.prototype.hasOwnProperty.call(g,e))continue;if(m>=a){_[e]="[MaxProperties ~]";break}const t=g[e];_[e]=c(e,t,f-1,a,u),m++}return d(t),_}n.normalize=a,n.normalizeToSize=function e(t,n=3,r=102400){const s=a(t,n);return i=s,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(i))>r?e(t,n-1,r):s;var i},n.normalizeUrlToBase=function(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch(e){}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/normalize.js"}],[3219,{"./browser.js":3188,"./debug-build.js":3198,"./is.js":3210,"./logger.js":3212,"./string.js":3227},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./browser.js"),s=e("./debug-build.js"),i=e("./is.js"),o=e("./logger.js"),a=e("./string.js");function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){s.DEBUG_BUILD&&o.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(e){}}function l(e){if(i.isError(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if(i.isEvent(e)){const t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&i.isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}return e}function d(e){try{return i.isElement(e)?r.htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return""}}function p(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function f(e,t){if(function(e){if(!i.isPlainObject(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(n!==undefined)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))void 0!==e[n]&&(r[n]=f(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==undefined)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(f(e,t))})),r}return e}n.addNonEnumerableProperty=c,n.convertToPlainObject=l,n.dropUndefinedKeys=function(e){return f(e,new Map)},n.extractExceptionKeysForMessage=function(e,t=40){const n=Object.keys(l(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return a.truncate(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:a.truncate(r,t)}return""},n.fill=function(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);"function"==typeof s&&u(s,r),e[t]=s},n.getOriginalFunction=function(e){return e.__sentry_original__},n.markFunctionWrapped=u,n.objectify=function(e){let t;switch(!0){case e===undefined||null===e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case i.isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t},n.urlEncode=function(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/object.js"}],[3220,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){function r(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}Object.defineProperty(n,"__esModule",{value:!0});const s=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(e){const t=e.length>1024?`${e.slice(-1024)}`:e,n=s.exec(t);return n?n.slice(1):[]}function o(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:"/";s&&(t=`${s}/${t}`,n="/"===s.charAt(0))}return t=r(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function a(e){let t=0;for(;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function c(e){const t=u(e),n="/"===e.slice(-1);let s=r(e.split("/").filter((e=>!!e)),!t).join("/");return s||t||(s="."),s&&n&&(s+="/"),(t?"/":"")+s}function u(e){return"/"===e.charAt(0)}n.basename=function(e,t){let n=i(e)[2]||"";return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n},n.dirname=function(e){const t=i(e),n=t[0]||"";let r=t[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."},n.isAbsolute=u,n.join=function(...e){return c(e.join("/"))},n.normalizePath=c,n.relative=function(e,t){e=o(e).slice(1),t=o(t).slice(1);const n=a(e.split("/")),r=a(t.split("/")),s=Math.min(n.length,r.length);let i=s;for(let e=0;en(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new s.SyncPromise(((n,r)=>{let i=t.length;if(!i)return n(!0);const o=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{s.resolvedSyncPromise(e).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/promisebuffer.js"}],[3222,{"./misc.js":3215},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./misc.js");n.generatePropagationContext=function(){return{traceId:r.uuid4(),spanId:r.uuid4().substring(16)}}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/propagationContext.js"}],[3223,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=6e4;function s(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const s=Date.parse(`${e}`);return isNaN(s)?r:s-t}function i(e,t){return e[t]||e.all||0}n.DEFAULT_RETRY_AFTER=r,n.disabledUntil=i,n.isRateLimited=function(e,t,n=Date.now()){return i(e,t)>n},n.parseRetryAfterHeader=s,n.updateRateLimits=function(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const e of o.trim().split(",")){const[t,n,,,s]=e.split(":",5),o=parseInt(t,10),a=1e3*(isNaN(o)?60:o);if(n)for(const e of n.split(";"))"metric_bucket"===e&&s&&!s.split(";").includes("custom")||(i[e]=r+a);else i.all=r+a}else a?i.all=r+s(a,r):429===t&&(i.all=r+6e4);return i}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/ratelimit.js"}],[3224,{"./cookie.js":3197,"./debug-build.js":3198,"./is.js":3210,"./logger.js":3212,"./normalize.js":3218,"./url.js":3232,"./vendor/getIpAddress.js":3234},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./cookie.js"),s=e("./debug-build.js"),i=e("./is.js"),o=e("./logger.js"),a=e("./normalize.js"),c=e("./url.js"),u=e("./vendor/getIpAddress.js"),l={ip:!1,request:!0,transaction:!0,user:!0},d=["cookies","data","headers","method","query_string","url"],p=["id","username","email"];function f(e,t={}){const n=e.method&&e.method.toUpperCase();let r="",s="url";t.customRoute||e.route?(r=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,s="route"):(e.originalUrl||e.url)&&(r=c.stripUrlQueryAndFragment(e.originalUrl||e.url||""));let i="";return t.method&&n&&(i+=n),t.method&&t.path&&(i+=" "),t.path&&r&&(i+=r),[i,s]}function h(e,t={}){const{include:n=d}=t,s={},o=e.headers||{},c=e.method,l=o.host||e.hostname||e.host||"",p="https"===e.protocol||e.socket&&e.socket.encrypted?"https":"http",f=e.originalUrl||e.url||"",h=f.startsWith(p)?f:`${p}://${l}${f}`;return n.forEach((t=>{switch(t){case"headers":s.headers=o,n.includes("cookies")||delete s.headers.cookie,n.includes("ip")||u.ipHeaderNames.forEach((e=>{delete s.headers[e]}));break;case"method":s.method=c;break;case"url":s.url=h;break;case"cookies":s.cookies=e.cookies||o.cookie&&r.parseCookie(o.cookie)||{};break;case"query_string":s.query_string=function(e){let t=e.originalUrl||e.url||"";if(!t)return;t.startsWith("/")&&(t=`http://dogs.are.great${t}`);try{const n=e.query||new URL(t).search.slice(1);return n.length?n:undefined}catch(e){return undefined}}(e);break;case"data":if("GET"===c||"HEAD"===c)break;e.body!==undefined&&(s.data=i.isString(e.body)?e.body:JSON.stringify(a.normalize(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(s[t]=e[t])}})),s}function _(e){const t={};try{e.forEach(((e,n)=>{"string"==typeof e&&(t[n]=e)}))}catch(e){s.DEBUG_BUILD&&o.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}n.DEFAULT_USER_INCLUDES=p,n.addRequestDataToEvent=function(e,t,n){const r={...l,...n&&n.include};if(r.request){const n=Array.isArray(r.request)?[...r.request]:[...d];r.ip&&n.push("ip");const s=h(t,{include:n});e.request={...e.request,...s}}if(r.user){const n=t.user&&i.isPlainObject(t.user)?function(e,t){const n={};return(Array.isArray(t)?t:p).forEach((t=>{e&&t in e&&(n[t]=e[t])})),n}(t.user,r.user):{};Object.keys(n).length&&(e.user={...e.user,...n})}if(r.ip){const n=t.headers&&u.getClientIPAddress(t.headers)||t.ip||t.socket&&t.socket.remoteAddress;n&&(e.user={...e.user,ip_address:n})}return r.transaction&&!e.transaction&&"transaction"===e.type&&(e.transaction=function(e,t){switch(t){case"path":return f(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"";default:return f(e,{path:!0,method:!0,customRoute:e._reconstructedRoute?e._reconstructedRoute:undefined})[0]}}(t,r.transaction)),e},n.extractPathForTransaction=f,n.extractRequestData=h,n.winterCGHeadersToDict=_,n.winterCGRequestToRequestData=function(e){const t=_(e.headers);return{method:e.method,url:e.url,headers:t}}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/requestdata.js"}],[3225,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=["fatal","error","warning","log","info","debug"];n.severityLevelFromString=function(e){return"warn"===e?"warning":r.includes(e)?e:"log"},n.validSeverityLevels=r}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/severity.js"}],[3226,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=50,s="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,s=0)=>{const o=[],a=e.split("\n");for(let e=n;e1024)continue;const c=i.test(n)?n.replace(i,"$1"):n;if(!c.match(/\S*Error: /)){for(const e of t){const t=e(c);if(t){o.push(t);break}}if(o.length>=r+s)break}}return c(o.slice(s))}}function c(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),o.test(u(t).function||"")&&(t.pop(),o.test(u(t).function||"")&&t.pop()),t.slice(0,r).map((e=>({...e,filename:e.filename||u(t).filename,function:e.function||s})))}function u(e){return e[e.length-1]||{}}const l="";n.UNKNOWN_FUNCTION=s,n.createStackParser=a,n.getFramesFromEvent=function(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return undefined}}return undefined},n.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||l}catch(e){return l}},n.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?a(...e):e},n.stripSentryFramesAndReverse=c}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/stacktrace.js"}],[3227,{"./is.js":3210},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js");function s(e,t,n=!1){return!!r.isString(e)&&(r.isRegExp(t)?t.test(e):!!r.isString(t)&&(n?e===t:e.includes(t)))}n.isMatchingPattern=s,n.safeJoin=function(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;tr&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),is(e,t,n)))},n.truncate=function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/string.js"}],[3228,{"./debug-build.js":3198,"./logger.js":3212,"./worldwide.js":3237},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./debug-build.js"),s=e("./logger.js"),i=e("./worldwide.js").GLOBAL_OBJ;function o(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}n.isNativeFunction=a,n.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},n.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},n.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},n.supportsFetch=o,n.supportsNativeFetch=function(){if("string"==typeof EdgeRuntime)return!0;if(!o())return!1;if(a(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.DEBUG_BUILD&&s.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e},n.supportsReferrerPolicy=function(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}},n.supportsReportingObserver=function(){return"ReportingObserver"in i}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/supports.js"}],[3229,{"./is.js":3210},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js");var s;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(s||(s={}));class i{constructor(e){i.prototype.__init.call(this),i.prototype.__init2.call(this),i.prototype.__init3.call(this),i.prototype.__init4.call(this),this._state=s.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new i(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new i(((t,n)=>{let r,s;return this.then((t=>{s=!1,r=t,e&&e()}),(t=>{s=!0,r=t,e&&e()})).then((()=>{s?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(s.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(s.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===s.PENDING&&(r.isThenable(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===s.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===s.RESOLVED&&e[1](this._value),this._state===s.REJECTED&&e[2](this._value),e[0]=!0)}))}}}n.SyncPromise=i,n.rejectedSyncPromise=function(e){return new i(((t,n)=>{n(e)}))},n.resolvedSyncPromise=function(e){return new i((t=>{t(e)}))}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/syncpromise.js"}],[3230,{"./worldwide.js":3237},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./worldwide.js"),s=1e3;function i(){return Date.now()/s}const o=function(){const{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return i;const t=Date.now()-e.now(),n=e.timeOrigin==undefined?t:e.timeOrigin;return()=>(n+e.now())/s}();n._browserPerformanceTimeOriginMode=void 0;const a=(()=>{const{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return n._browserPerformanceTimeOriginMode="none",undefined;const t=36e5,s=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+s-i):t,a=oe.length>0&&","!==e)).length},n.getSanitizedUrlString=function(e){const{protocol:t,host:n,path:r}=e;return`${t?`${t}://`:""}${n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${r}`},n.parseUrl=function(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const 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}},n.stripUrlQueryAndFragment=function(e){return e.split(/[?#]/,1)[0]}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/url.js"}],[3233,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/vendor/escapeStringForRegex.js"}],[3234,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];n.getClientIPAddress=function(e){return r.map((t=>{const n=e[t],r=Array.isArray(n)?n.join(";"):n;return"Forwarded"===t?function(e){if(!e)return null;for(const t of e.split(";"))if(t.startsWith("for="))return t.slice(4);return null}(r):r&&r.split(",").map((e=>e.trim()))})).reduce(((e,t)=>t?e.concat(t):e),[]).find((e=>null!==e&&/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(e)))||null},n.ipHeaderNames=r}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/vendor/getIpAddress.js"}],[3235,{"../worldwide.js":3237},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../worldwide.js").GLOBAL_OBJ;n.supportsHistory=function(){const e=r.chrome,t=e&&e.app&&e.app.runtime,n="history"in r&&!!r.history.pushState&&!!r.history.replaceState;return!t&&n}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/vendor/supportsHistory.js"}],[3236,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.SDK_VERSION="8.33.1"}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/version.js"}],[3237,{"./version.js":3236},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./version.js"),s=globalThis;n.GLOBAL_OBJ=s,n.getGlobalSingleton=function(e,t,n){const i=n||s,o=i.__SENTRY__=i.__SENTRY__||{},a=o[r.SDK_VERSION]=o[r.SDK_VERSION]||{};return a[e]||(a[e]=t())}}}},{package:"@sentry/utils",file:"node_modules/@sentry/utils/build/cjs/worldwide.js"}],[3238,{"@solana/assertions":3239,"@solana/codecs-core":3240,"@solana/codecs-strings":3241,"@solana/errors":3242},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r,s,i=e("@solana/codecs-core"),o=e("@solana/codecs-strings"),a=e("@solana/errors"),c=e("@solana/assertions");function u(){return r||(r=o.getBase58Encoder()),r}function l(e){if(e.length<32||e.length>44)return!1;const t=u();try{return 32===t.encode(e).byteLength}catch{return!1}}function d(e){if(e.length<32||e.length>44)throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__STRING_LENGTH_OUT_OF_RANGE,{actualLength:e.length});const t=u().encode(e).byteLength;if(32!==t)throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__INVALID_BYTE_LENGTH,{actualLength:t})}function p(e){return d(e),e}function f(){return i.transformEncoder(i.fixEncoderSize(u(),32),(e=>p(e)))}function h(){return i.fixDecoderSize((s||(s=o.getBase58Decoder()),s),32)}function _(){return i.combineCodec(f(),h())}var m=37095705934669439343138083508754565189542113879843219016388785533085940283555n,g=57896044618658097711785492504343953926634992332820282019728792003956564819949n,S=19681161376707505956807079304988542015446066515923890162744021073123829784752n;function y(e){const t=e%g;return t>=0n?t:g+t}function E(e,t){let n=e;for(;t-- >0n;)n*=n,n%=g;return n}function b(e,t){const n=y(t*t*t),r=function(e){const t=e*e%g*e%g,n=E(t,2n)*t%g,r=E(n,1n)*e%g,s=E(r,5n)*r%g,i=E(s,10n)*s%g,o=E(i,20n)*i%g,a=E(o,40n)*o%g,c=E(a,80n)*a%g,u=E(c,80n)*a%g,l=E(u,10n)*s%g;return E(l,2n)*e%g}(e*y(n*n*t));let s=y(e*n*r);const i=y(t*s*s),o=s,a=y(s*S),c=i===e,u=i===y(-e),l=i===y(-e*S);return c&&(s=o),(u||l)&&(s=a),1n===(1n&y(s))&&(s=y(-s)),c||u?s:null}function T(e){if(32!==e.byteLength)return!1;const t=function(e){const t=e.reduce(((e,t,n)=>`${function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(31===n?-129&t:t)}${e}`),"");return BigInt(`0x${t}`)}(e);return function(e,t){const n=y(e*e),r=b(y(n-1n),y(m*n+1n));return null!==r&&(0n!==r||!(128&t))}(t,e[31])}var R=32,I=16,v=[80,114,111,103,114,97,109,68,101,114,105,118,101,100,65,100,100,114,101,115,115];async function O({programAddress:e,seeds:t}){if(c.assertDigestCapabilityIsAvailable(),t.length>I)throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__MAX_NUMBER_OF_PDA_SEEDS_EXCEEDED,{actual:t.length,maxSeeds:I});let n;const r=t.reduce(((e,t,r)=>{const s="string"==typeof t?(n||(n=new TextEncoder)).encode(t):t;if(s.byteLength>R)throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__MAX_PDA_SEED_LENGTH_EXCEEDED,{actual:s.byteLength,index:r,maxSeedLength:R});return e.push(...s),e}),[]),s=_(),i=s.encode(e),o=await crypto.subtle.digest("SHA-256",new Uint8Array([...r,...i,...v])),u=new Uint8Array(o);if(T(u))throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__INVALID_SEEDS_POINT_ON_CURVE);return s.decode(u)}n.address=p,n.assertIsAddress=d,n.assertIsProgramDerivedAddress=function(e){if(!(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"number"==typeof e[1]))throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__MALFORMED_PDA);if(e[1]<0||e[1]>255)throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__PDA_BUMP_SEED_OUT_OF_RANGE,{bump:e[1]});d(e[0])},n.createAddressWithSeed=async function({baseAddress:e,programAddress:t,seed:n}){const{encode:r,decode:s}=_(),i="string"==typeof n?(new TextEncoder).encode(n):n;if(i.byteLength>R)throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__MAX_PDA_SEED_LENGTH_EXCEEDED,{actual:i.byteLength,index:0,maxSeedLength:R});const o=r(t);if(o.length>=v.length&&o.slice(-v.length).every(((e,t)=>e===v[t])))throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__PDA_ENDS_WITH_PDA_MARKER);const c=await crypto.subtle.digest("SHA-256",new Uint8Array([...r(e),...i,...o]));return s(new Uint8Array(c))},n.getAddressCodec=_,n.getAddressComparator=function(){return new Intl.Collator("en",{caseFirst:"lower",ignorePunctuation:!1,localeMatcher:"best fit",numeric:!1,sensitivity:"variant",usage:"sort"}).compare},n.getAddressDecoder=h,n.getAddressEncoder=f,n.getAddressFromPublicKey=async function(e){if(c.assertKeyExporterIsAvailable(),"public"!==e.type||"Ed25519"!==e.algorithm.name)throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__INVALID_ED25519_PUBLIC_KEY);const t=await crypto.subtle.exportKey("raw",e);return h().decode(new Uint8Array(t))},n.getProgramDerivedAddress=async function({programAddress:e,seeds:t}){let n=255;for(;n>0;)try{return[await O({programAddress:e,seeds:[...t,new Uint8Array([n])]}),n]}catch(e){if(!a.isSolanaError(e,a.SOLANA_ERROR__ADDRESSES__INVALID_SEEDS_POINT_ON_CURVE))throw e;n--}throw new a.SolanaError(a.SOLANA_ERROR__ADDRESSES__FAILED_TO_FIND_VIABLE_PDA_BUMP_SEED)},n.isAddress=l,n.isProgramDerivedAddress=function(e){return Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"number"==typeof e[1]&&e[1]>=0&&e[1]<=255&&l(e[0])}}}},{package:"@solana/addresses",file:"node_modules/@solana/addresses/dist/index.browser.cjs"}],[3239,{"@solana/errors":3242},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r,s=e("@solana/errors");function i(){if(!globalThis.isSecureContext)throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__DISALLOWED_IN_INSECURE_CONTEXT)}n.assertDigestCapabilityIsAvailable=function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.digest))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__DIGEST_UNIMPLEMENTED)},n.assertKeyExporterIsAvailable=function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.exportKey))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__EXPORT_FUNCTION_UNIMPLEMENTED)},n.assertKeyGenerationIsAvailable=async function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.generateKey))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__GENERATE_FUNCTION_UNIMPLEMENTED);if(!await async function(e){return void 0===r&&(r=new Promise((t=>{e.generateKey("Ed25519",!1,["sign","verify"]).then((()=>{t(r=!0)})).catch((()=>{t(r=!1)}))}))),"boolean"==typeof r?r:await r}(globalThis.crypto.subtle))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED)},n.assertPRNGIsAvailable=function(){if(void 0===globalThis.crypto||"function"!=typeof globalThis.crypto.getRandomValues)throw new s.SolanaError(s.SOLANA_ERROR__CRYPTO__RANDOM_VALUES_FUNCTION_UNIMPLEMENTED)},n.assertSigningCapabilityIsAvailable=function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.sign))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__SIGN_FUNCTION_UNIMPLEMENTED)},n.assertVerificationCapabilityIsAvailable=function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.verify))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__VERIFY_FUNCTION_UNIMPLEMENTED)}}}},{package:"@solana/addresses>@solana/assertions",file:"node_modules/@solana/addresses/node_modules/@solana/assertions/dist/index.browser.cjs"}],[3240,{"@solana/errors":3242},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("@solana/errors"),s=(e,t)=>{if(e.length>=t)return e;const n=new Uint8Array(t).fill(0);return n.set(e),n},i=(e,t)=>s(e.length<=t?e:e.slice(0,t),t);function o(e,t,n){const r=0===n&&e.length===t.length?e:e.slice(n,n+t.length);return r.length===t.length&&t.every(((e,t)=>e===r[t]))}function a(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function c(e){return Object.freeze({...e,encode:t=>{const n=new Uint8Array(a(t,e));return e.write(t,n,0),n}})}function u(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function l(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0],encode:t=>{const n=new Uint8Array(a(t,e));return e.write(t,n,0),n}})}function d(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}function p(e){if(!d(e))throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_FIXED_LENGTH)}function f(e){return!d(e)}function h(e,t){if(d(e)!==d(t))throw new r.SolanaError(r.SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH);if(d(e)&&d(t)&&e.fixedSize!==t.fixedSize)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!d(e)&&!d(t)&&e.maxSize!==t.maxSize)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function _(e,t){const n=(n,s,i)=>{const o=e.encode(n);if(g(o,t)>=0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__ENCODED_BYTES_MUST_NOT_INCLUDE_SENTINEL,{encodedBytes:o,hexEncodedBytes:S(o),hexSentinel:S(t),sentinel:t});return s.set(o,i),i+=o.length,s.set(t,i),i+=t.length};return d(e)?c({...e,fixedSize:e.fixedSize+t.length,write:n}):c({...e,...null!=e.maxSize?{maxSize:e.maxSize+t.length}:{},getSizeFromValue:n=>e.getSizeFromValue(n)+t.length,write:n})}function m(e,t){const n=(n,s)=>{const i=0===s?n:n.slice(s),o=g(i,t);if(-1===o)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES,{decodedBytes:i,hexDecodedBytes:S(i),hexSentinel:S(t),sentinel:t});const a=i.slice(0,o);return[e.decode(a),s+a.length+t.length]};return d(e)?u({...e,fixedSize:e.fixedSize+t.length,read:n}):u({...e,...null!=e.maxSize?{maxSize:e.maxSize+t.length}:{},read:n})}function g(e,t){return e.findIndex(((e,n,r)=>1===t.length?e===t[0]:o(r,t,n)))}function S(e){return e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")}function y(e,t,n,s=0){const i=n.length-s;if(in)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE,{bytesLength:n,codecDescription:e,offset:t})}function b(e,t){const n=(n,r,s)=>{const i=e.encode(n);return s=t.write(i.length,r,s),r.set(i,s),s+i.length};if(d(t)&&d(e))return c({...e,fixedSize:t.fixedSize+e.fixedSize,write:n});const r=d(t)?t.fixedSize:t.maxSize??null,s=d(e)?e.fixedSize:e.maxSize??null,i=null!==r&&null!==s?r+s:null;return c({...e,...null!==i?{maxSize:i}:{},getSizeFromValue:n=>{const r=a(n,e);return a(r,t)+r},write:n})}function T(e,t){const n=(n,r)=>{const[s,i]=t.read(n,r),o=Number(s);return((r=i)>0||n.length>o)&&(n=n.slice(r,r+o)),y("addDecoderSizePrefix",o,n),[e.decode(n),r+o]};if(d(t)&&d(e))return u({...e,fixedSize:t.fixedSize+e.fixedSize,read:n});const r=d(t)?t.fixedSize:t.maxSize??null,s=d(e)?e.fixedSize:e.maxSize??null,i=null!==r&&null!==s?r+s:null;return u({...e,...null!==i?{maxSize:i}:{},read:n})}function R(e,t){return c({fixedSize:t,write:(n,r,s)=>{const i=e.encode(n),o=i.length>t?i.slice(0,t):i;return r.set(o,s),s+t}})}function I(e,t){return u({fixedSize:t,read:(n,r)=>{y("fixCodecSize",t,n,r),(r>0||n.length>t)&&(n=n.slice(r,r+t)),d(e)&&(n=i(n,e.fixedSize));const[s]=e.read(n,0);return[s,r+t]}})}function v(e,t){return c({...e,write:(n,r,s)=>{const i=e=>A(e,r.length),o=t.preOffset?t.preOffset({bytes:r,preOffset:s,wrapBytes:i}):s;E("offsetEncoder",o,r.length);const a=e.write(n,r,o),c=t.postOffset?t.postOffset({bytes:r,newPreOffset:o,postOffset:a,preOffset:s,wrapBytes:i}):a;return E("offsetEncoder",c,r.length),c}})}function O(e,t){return u({...e,read:(n,r)=>{const s=e=>A(e,n.length),i=t.preOffset?t.preOffset({bytes:n,preOffset:r,wrapBytes:s}):r;E("offsetDecoder",i,n.length);const[o,a]=e.read(n,i),c=t.postOffset?t.postOffset({bytes:n,newPreOffset:i,postOffset:a,preOffset:r,wrapBytes:s}):a;return E("offsetDecoder",c,n.length),[o,c]}})}function A(e,t){return 0===t?0:(e%t+t)%t}function w(e,t){if(d(e)){const n=t(e.fixedSize);if(n<0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:n,codecDescription:"resizeEncoder"});return c({...e,fixedSize:n})}return c({...e,getSizeFromValue:n=>{const s=t(e.getSizeFromValue(n));if(s<0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:s,codecDescription:"resizeEncoder"});return s}})}function N(e,t){if(d(e)){const n=t(e.fixedSize);if(n<0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:n,codecDescription:"resizeDecoder"});return u({...e,fixedSize:n})}return e}function C(e,t){return v(w(e,(e=>e+t)),{preOffset:({preOffset:e})=>e+t})}function j(e,t){return v(w(e,(e=>e+t)),{postOffset:({postOffset:e})=>e+t})}function k(e,t){return O(N(e,(e=>e+t)),{preOffset:({preOffset:e})=>e+t})}function D(e,t){return O(N(e,(e=>e+t)),{postOffset:({postOffset:e})=>e+t})}function x(e,t,n,r,s=0){for(;n<--r;){const i=e[n];t[n+s]=e[r],t[r+s]=i,n++}n===r&&(t[n+s]=e[n])}function L(e){return p(e),c({...e,write:(t,n,r)=>{const s=e.write(t,n,r);return x(n,n,r,r+e.fixedSize),s}})}function M(e){return p(e),u({...e,read:(t,n)=>{const r=t.slice();return x(t,r,n,n+e.fixedSize),e.read(r,n)}})}function P(e,t){return c({...f(e)?{...e,getSizeFromValue:n=>e.getSizeFromValue(t(n))}:e,write:(n,r,s)=>e.write(t(n),r,s)})}function U(e,t){return u({...e,read:(n,r)=>{const[s,i]=e.read(n,r);return[t(s,n,r),i]}})}n.addCodecSentinel=function(e,t){return h(_(e,t),m(e,t))},n.addCodecSizePrefix=function(e,t){return h(b(e,t),T(e,t))},n.addDecoderSentinel=m,n.addDecoderSizePrefix=T,n.addEncoderSentinel=_,n.addEncoderSizePrefix=b,n.assertByteArrayHasEnoughBytesForCodec=y,n.assertByteArrayIsNotEmptyForCodec=function(e,t,n=0){if(t.length-n<=0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY,{codecDescription:e})},n.assertByteArrayOffsetIsNotOutOfRange=E,n.assertIsFixedSize=p,n.assertIsVariableSize=function(e){if(!f(e))throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_VARIABLE_LENGTH)},n.combineCodec=h,n.containsBytes=o,n.createCodec=l,n.createDecoder=u,n.createEncoder=c,n.fixBytes=i,n.fixCodecSize=function(e,t){return h(R(e,t),I(e,t))},n.fixDecoderSize=I,n.fixEncoderSize=R,n.getEncodedSize=a,n.isFixedSize=d,n.isVariableSize=f,n.mergeBytes=e=>{const t=e.filter((e=>e.length));if(0===t.length)return e.length?e[0]:new Uint8Array;if(1===t.length)return t[0];const n=t.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(n);let s=0;return t.forEach((e=>{r.set(e,s),s+=e.length})),r},n.offsetCodec=function(e,t){return h(v(e,t),O(e,t))},n.offsetDecoder=O,n.offsetEncoder=v,n.padBytes=s,n.padLeftCodec=function(e,t){return h(C(e,t),k(e,t))},n.padLeftDecoder=k,n.padLeftEncoder=C,n.padRightCodec=function(e,t){return h(j(e,t),D(e,t))},n.padRightDecoder=D,n.padRightEncoder=j,n.resizeCodec=function(e,t){return h(w(e,t),N(e,t))},n.resizeDecoder=N,n.resizeEncoder=w,n.reverseCodec=function(e){return h(L(e),M(e))},n.reverseDecoder=M,n.reverseEncoder=L,n.transformCodec=function(e,t,n){return l({...P(e,t),read:n?U(e,n).read:e.read})},n.transformDecoder=U,n.transformEncoder=P}}},{package:"@solana/addresses>@solana/codecs-core",file:"node_modules/@solana/addresses/node_modules/@solana/codecs-core/dist/index.browser.cjs"}],[3241,{"@solana/codecs-core":3240,"@solana/errors":3242},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("@solana/errors"),s=e("@solana/codecs-core");function i(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new r.SolanaError(r.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE,{alphabet:e,base:e.length,value:n})}var o=e=>s.createEncoder({getSizeFromValue:t=>{const[n,r]=u(t,e[0]);if(!r)return t.length;const s=l(r,e);return n.length+Math.ceil(s.toString(16).length/2)},write(t,n,r){if(i(e,t),""===t)return r;const[s,o]=u(t,e[0]);if(!o)return n.set(new Uint8Array(s.length).fill(0),r),r+s.length;let a=l(o,e);const c=[];for(;a>0n;)c.unshift(Number(a%256n)),a/=256n;const d=[...Array(s.length).fill(0),...c];return n.set(d,r),r+d.length}}),a=e=>s.createDecoder({read(t,n){const r=0===n?t:t.slice(n);if(0===r.length)return["",0];let s=r.findIndex((e=>0!==e));s=-1===s?r.length:s;const i=e[0].repeat(s);if(s===r.length)return[i,t.length];const o=function(e,t){const n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join("")}(r.slice(s).reduce(((e,t)=>256n*e+BigInt(t)),0n),e);return[i+o,t.length]}}),c=e=>s.combineCodec(o(e),a(e));function u(e,t){const[n,r]=e.split(new RegExp(`((?!${t}).*)`));return[n,r]}function l(e,t){const n=BigInt(t.length);let r=0n;for(const s of e)r*=n,r+=BigInt(t.indexOf(s));return r}var d="0123456789",p={alphabet:"0123456789abcdef",base:16};function f(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}var h=()=>s.createEncoder({getSizeFromValue:e=>Math.ceil(e.length/2),write(e,t,n){const s=e.length,i=s/2;if(1===s){const s=f(e.charCodeAt(0));if(void 0===s)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE,{...p,value:e});return t.set([s],n),1+n}const o=new Uint8Array(i);for(let t=0,n=0;ts.createDecoder({read:(e,t)=>[e.slice(t).reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),e.length]}),m="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",g=(e,t)=>s.createEncoder({getSizeFromValue:e=>Math.floor(e.length*t/8),write(n,r,s){if(i(e,n),""===n)return s;const o=y([...n].map((t=>e.indexOf(t))),t,8,!1);return r.set(o,s),o.length+s}}),S=(e,t)=>s.createDecoder({read(n,r=0){const s=0===r?n:n.slice(r);if(0===s.length)return["",n.length];return[y([...s],8,t,!0).map((t=>e[t])).join(""),n.length]}});function y(e,t,n,r){const s=[];let i=0,o=0;const a=(1<=n;)o-=n,s.push(i>>o&a);return r&&o>0&&s.push(i<s.createEncoder({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new r.SolanaError(r.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE,{alphabet:E,base:64,value:e})}},write(e,t,n){try{const r=atob(e).split("").map((e=>e.charCodeAt(0)));return t.set(r,n),r.length+n}catch{throw new r.SolanaError(r.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE,{alphabet:E,base:64,value:e})}}}),T=()=>s.createDecoder({read(e,t=0){const n=e.slice(t);return[btoa(String.fromCharCode(...n)),e.length]}}),R=e=>e.replace(/\u0000/g,""),I=globalThis.TextDecoder,v=globalThis.TextEncoder,O=()=>{let e;return s.createEncoder({getSizeFromValue:t=>(e||(e=new v)).encode(t).length,write:(t,n,r)=>{const s=(e||(e=new v)).encode(t);return n.set(s,r),r+s.length}})},A=()=>{let e;return s.createDecoder({read(t,n){const r=(e||(e=new I)).decode(t.slice(n));return[R(r),t.length]}})};n.assertValidBaseString=i,n.getBase10Codec=()=>c(d),n.getBase10Decoder=()=>a(d),n.getBase10Encoder=()=>o(d),n.getBase16Codec=()=>s.combineCodec(h(),_()),n.getBase16Decoder=_,n.getBase16Encoder=h,n.getBase58Codec=()=>c(m),n.getBase58Decoder=()=>a(m),n.getBase58Encoder=()=>o(m),n.getBase64Codec=()=>s.combineCodec(b(),T()),n.getBase64Decoder=T,n.getBase64Encoder=b,n.getBaseXCodec=c,n.getBaseXDecoder=a,n.getBaseXEncoder=o,n.getBaseXResliceCodec=(e,t)=>s.combineCodec(g(e,t),S(e,t)),n.getBaseXResliceDecoder=S,n.getBaseXResliceEncoder=g,n.getUtf8Codec=()=>s.combineCodec(O(),A()),n.getUtf8Decoder=A,n.getUtf8Encoder=O,n.padNullCharacters=(e,t)=>e.padEnd(t,"\0"),n.removeNullCharacters=R}}},{package:"@solana/addresses>@solana/codecs-strings",file:"node_modules/@solana/addresses/node_modules/@solana/codecs-strings/dist/index.browser.cjs"}],[3242,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=-32700,i=-32603,o=-32602,a=-32601,c=-32600,u=-32016,l=-32015,d=-32014,p=-32013,f=-32012,h=-32011,_=-32010,m=-32009,g=-32008,S=-32007,y=-32006,E=-32005,b=-32004,T=-32003,R=-32002,I=-32001,v=28e5,O=2800001,A=2800002,w=2800003,N=2800004,C=2800005,j=2800006,k=2800007,D=2800008,x=2800009,L=2800010,M=323e4,P=32300001,U=3230002,B=3230003,F=3230004,H=361e4,G=3610001,z=3610002,W=3610003,$=3610004,V=3610005,Y=3610006,q=3610007,X=3611e3,K=3704e3,J=3704001,Z=3704002,Q=3704003,ee=3704004,te=4128e3,ne=4128001,re=4128002,se=4615e3,ie=4615001,oe=4615002,ae=4615003,ce=4615004,ue=4615005,le=4615006,de=4615007,pe=4615008,fe=4615009,he=4615010,_e=4615011,me=4615012,ge=4615013,Se=4615014,ye=4615015,Ee=4615016,be=4615017,Te=4615018,Re=4615019,Ie=4615020,ve=4615021,Oe=4615022,Ae=4615023,we=4615024,Ne=4615025,Ce=4615026,je=4615027,ke=4615028,De=4615029,xe=4615030,Le=4615031,Me=4615032,Pe=4615033,Ue=4615034,Be=4615035,Fe=4615036,He=4615037,Ge=4615038,ze=4615039,We=4615040,$e=4615041,Ve=4615042,Ye=4615043,qe=4615044,Xe=4615045,Ke=4615046,Je=4615047,Ze=4615048,Qe=4615049,et=4615050,tt=4615051,nt=4615052,rt=4615053,st=4615054,it=5508e3,ot=5508001,at=5508002,ct=5508003,ut=5508004,lt=5508005,dt=5508006,pt=5508007,ft=5508008,ht=5508009,_t=5508010,mt=5508011,gt=5663e3,St=5663001,yt=5663002,Et=5663003,bt=5663004,Tt=5663005,Rt=5663006,It=5663007,vt=5663008,Ot=5663009,At=5663010,wt=5663011,Nt=5663012,Ct=5663013,jt=5663014,kt=5663015,Dt=5663016,xt=5663017,Lt=5663018,Mt=5663019,Pt=705e4,Ut=7050001,Bt=7050002,Ft=7050003,Ht=7050004,Gt=7050005,zt=7050006,Wt=7050007,$t=7050008,Vt=7050009,Yt=7050010,qt=7050011,Xt=7050012,Kt=7050013,Jt=7050014,Zt=7050015,Qt=7050016,en=7050017,tn=7050018,nn=7050019,rn=7050020,sn=7050021,on=7050022,an=7050023,cn=7050024,un=7050025,ln=7050026,dn=7050027,pn=7050028,fn=7050029,hn=7050030,_n=7050031,mn=7050032,gn=7050033,Sn=7050034,yn=7050035,En=7050036,bn=8078e3,Tn=8078001,Rn=8078002,In=8078003,vn=8078004,On=8078005,An=8078006,wn=8078007,Nn=8078008,Cn=8078009,jn=8078010,kn=8078011,Dn=8078012,xn=8078013,Ln=8078014,Mn=8078015,Pn=8078016,Un=8078017,Bn=8078018,Fn=8078019,Hn=8078020,Gn=8078021,zn=8078022,Wn=81e5,$n=8100001,Vn=8100002,Yn=8100003,qn=819e4,Xn=8190001,Kn=8190002,Jn=8190003,Zn=8190004,Qn=99e5,er=9900001,tr=9900002,nr=9900003,rr=9900004;function sr(e){if(Array.isArray(e)){return"%5B"+e.map(sr).join("%2C%20")+"%5D"}return"bigint"==typeof e?`${e}n`:encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?{...e}:e))}function ir([e,t]){return`${e}=${sr(t)}`}function or(e,t={}){{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${function(e){const t=Object.entries(e).map(ir).join("&");return btoa(t)}(t)}'`),`${n}\``}}var ar=class extends Error{constructor(...[e,t]){let n,s;if(t){const{cause:e,...r}=t;e&&(s={cause:e}),Object.keys(r).length>0&&(n=r)}super(or(e,n),s),r(this,"cause",this.cause),r(this,"context",void 0),this.context={__code:e,...n},this.name="SolanaError"}};function cr(...e){"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(...e)}function ur({errorCodeBaseOffset:e,getErrorContext:t,orderedErrorNames:n,rpcEnumError:r},s){let i,o;"string"==typeof r?i=r:(i=Object.keys(r)[0],o=r[i]);const a=e+n.indexOf(i),c=t(a,i,o),u=new ar(a,c);return cr(u,s),u}var lr=["GenericError","InvalidArgument","InvalidInstructionData","InvalidAccountData","AccountDataTooSmall","InsufficientFunds","IncorrectProgramId","MissingRequiredSignature","AccountAlreadyInitialized","UninitializedAccount","UnbalancedInstruction","ModifiedProgramId","ExternalAccountLamportSpend","ExternalAccountDataModified","ReadonlyLamportChange","ReadonlyDataModified","DuplicateAccountIndex","ExecutableModified","RentEpochModified","NotEnoughAccountKeys","AccountDataSizeChanged","AccountNotExecutable","AccountBorrowFailed","AccountBorrowOutstanding","DuplicateAccountOutOfSync","Custom","InvalidError","ExecutableDataModified","ExecutableLamportChange","ExecutableAccountNotRentExempt","UnsupportedProgramId","CallDepth","MissingAccount","ReentrancyNotAllowed","MaxSeedLengthExceeded","InvalidSeeds","InvalidRealloc","ComputationalBudgetExceeded","PrivilegeEscalation","ProgramEnvironmentSetupFailure","ProgramFailedToComplete","ProgramFailedToCompile","Immutable","IncorrectAuthority","BorshIoError","AccountNotRentExempt","InvalidAccountOwner","ArithmeticOverflow","UnsupportedSysvar","IllegalOwner","MaxAccountsDataAllocationsExceeded","MaxAccountsExceeded","MaxInstructionTraceLengthExceeded","BuiltinProgramsMustConsumeComputeUnits"];function dr(e,t){const n=Number(e);return ur({errorCodeBaseOffset:4615001,getErrorContext:(e,t,r)=>e===se?{errorName:t,index:n,...void 0!==r?{instructionErrorContext:r}:null}:e===Ce?{code:Number(r),index:n}:e===Xe?{encodedData:r,index:n}:{index:n},orderedErrorNames:lr,rpcEnumError:t},dr)}var pr=["AccountInUse","AccountLoadedTwice","AccountNotFound","ProgramAccountNotFound","InsufficientFundsForFee","InvalidAccountForFee","AlreadyProcessed","BlockhashNotFound","CallChainTooDeep","MissingSignatureForFee","InvalidAccountIndex","SignatureFailure","InvalidProgramForExecution","SanitizeFailure","ClusterMaintenance","AccountBorrowOutstanding","WouldExceedMaxBlockCostLimit","UnsupportedVersion","InvalidWritableAccount","WouldExceedMaxAccountCostLimit","WouldExceedAccountDataBlockLimit","TooManyAccountLocks","AddressLookupTableNotFound","InvalidAddressLookupTableOwner","InvalidAddressLookupTableData","InvalidAddressLookupTableIndex","InvalidRentPayingAccount","WouldExceedMaxVoteCostLimit","WouldExceedAccountDataTotalLimit","DuplicateInstruction","InsufficientFundsForRent","MaxLoadedAccountsDataSizeExceeded","InvalidLoadedAccountsDataSizeLimit","ResanitizationNeeded","ProgramExecutionTemporarilyRestricted","UnbalancedTransaction"];function fr(e){return"object"==typeof e&&"InstructionError"in e?dr(...e.InstructionError):ur({errorCodeBaseOffset:7050001,getErrorContext:(e,t,n)=>e===Pt?{errorName:t,...void 0!==n?{transactionErrorContext:n}:null}:e===hn?{index:Number(n)}:e===_n||e===yn?{accountIndex:Number(n.account_index)}:void 0,orderedErrorNames:pr,rpcEnumError:e},fr)}n.SOLANA_ERROR__ACCOUNTS__ACCOUNT_NOT_FOUND=M,n.SOLANA_ERROR__ACCOUNTS__EXPECTED_ALL_ACCOUNTS_TO_BE_DECODED=F,n.SOLANA_ERROR__ACCOUNTS__EXPECTED_DECODED_ACCOUNT=B,n.SOLANA_ERROR__ACCOUNTS__FAILED_TO_DECODE_ACCOUNT=U,n.SOLANA_ERROR__ACCOUNTS__ONE_OR_MORE_ACCOUNTS_NOT_FOUND=P,n.SOLANA_ERROR__ADDRESSES__FAILED_TO_FIND_VIABLE_PDA_BUMP_SEED=x,n.SOLANA_ERROR__ADDRESSES__INVALID_BASE58_ENCODED_ADDRESS=A,n.SOLANA_ERROR__ADDRESSES__INVALID_BYTE_LENGTH=v,n.SOLANA_ERROR__ADDRESSES__INVALID_ED25519_PUBLIC_KEY=w,n.SOLANA_ERROR__ADDRESSES__INVALID_SEEDS_POINT_ON_CURVE=D,n.SOLANA_ERROR__ADDRESSES__MALFORMED_PDA=N,n.SOLANA_ERROR__ADDRESSES__MAX_NUMBER_OF_PDA_SEEDS_EXCEEDED=j,n.SOLANA_ERROR__ADDRESSES__MAX_PDA_SEED_LENGTH_EXCEEDED=k,n.SOLANA_ERROR__ADDRESSES__PDA_BUMP_SEED_OUT_OF_RANGE=C,n.SOLANA_ERROR__ADDRESSES__PDA_ENDS_WITH_PDA_MARKER=L,n.SOLANA_ERROR__ADDRESSES__STRING_LENGTH_OUT_OF_RANGE=O,n.SOLANA_ERROR__BLOCKHASH_STRING_LENGTH_OUT_OF_RANGE=4,n.SOLANA_ERROR__BLOCK_HEIGHT_EXCEEDED=1,n.SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY=bn,n.SOLANA_ERROR__CODECS__CANNOT_USE_LEXICAL_VALUES_AS_ENUM_DISCRIMINATORS=zn,n.SOLANA_ERROR__CODECS__ENCODED_BYTES_MUST_NOT_INCLUDE_SENTINEL=Hn,n.SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH=On,n.SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH=An,n.SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH=vn,n.SOLANA_ERROR__CODECS__ENUM_DISCRIMINATOR_OUT_OF_RANGE=Nn,n.SOLANA_ERROR__CODECS__EXPECTED_FIXED_LENGTH=Rn,n.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH=xn,n.SOLANA_ERROR__CODECS__EXPECTED_VARIABLE_LENGTH=In,n.SOLANA_ERROR__CODECS__EXPECTED_ZERO_VALUE_TO_MATCH_ITEM_FIXED_SIZE=Fn,n.SOLANA_ERROR__CODECS__INVALID_BYTE_LENGTH=Tn,n.SOLANA_ERROR__CODECS__INVALID_CONSTANT=Bn,n.SOLANA_ERROR__CODECS__INVALID_DISCRIMINATED_UNION_VARIANT=Cn,n.SOLANA_ERROR__CODECS__INVALID_ENUM_VARIANT=jn,n.SOLANA_ERROR__CODECS__INVALID_LITERAL_UNION_VARIANT=Mn,n.SOLANA_ERROR__CODECS__INVALID_NUMBER_OF_ITEMS=wn,n.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE=Dn,n.SOLANA_ERROR__CODECS__LITERAL_UNION_DISCRIMINATOR_OUT_OF_RANGE=Pn,n.SOLANA_ERROR__CODECS__NUMBER_OUT_OF_RANGE=kn,n.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE=Ln,n.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES=Gn,n.SOLANA_ERROR__CODECS__UNION_VARIANT_OUT_OF_RANGE=Un,n.SOLANA_ERROR__CRYPTO__RANDOM_VALUES_FUNCTION_UNIMPLEMENTED=X,n.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_ALREADY_INITIALIZED=fe,n.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_FAILED=Ae,n.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=we,n.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_SIZE_CHANGED=ve,n.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_DATA_TOO_SMALL=ue,n.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_EXECUTABLE=Oe,n.SOLANA_ERROR__INSTRUCTION_ERROR__ACCOUNT_NOT_RENT_EXEMPT=Ke,n.SOLANA_ERROR__INSTRUCTION_ERROR__ARITHMETIC_OVERFLOW=Ze,n.SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR=Xe,n.SOLANA_ERROR__INSTRUCTION_ERROR__BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS=st,n.SOLANA_ERROR__INSTRUCTION_ERROR__CALL_DEPTH=Me,n.SOLANA_ERROR__INSTRUCTION_ERROR__COMPUTATIONAL_BUDGET_EXCEEDED=Ge,n.SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM=Ce,n.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_INDEX=be,n.SOLANA_ERROR__INSTRUCTION_ERROR__DUPLICATE_ACCOUNT_OUT_OF_SYNC=Ne,n.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_ACCOUNT_NOT_RENT_EXEMPT=xe,n.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_DATA_MODIFIED=ke,n.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_LAMPORT_CHANGE=De,n.SOLANA_ERROR__INSTRUCTION_ERROR__EXECUTABLE_MODIFIED=Te,n.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_DATA_MODIFIED=Se,n.SOLANA_ERROR__INSTRUCTION_ERROR__EXTERNAL_ACCOUNT_LAMPORT_SPEND=ge,n.SOLANA_ERROR__INSTRUCTION_ERROR__GENERIC_ERROR=ie,n.SOLANA_ERROR__INSTRUCTION_ERROR__ILLEGAL_OWNER=et,n.SOLANA_ERROR__INSTRUCTION_ERROR__IMMUTABLE=Ye,n.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_AUTHORITY=qe,n.SOLANA_ERROR__INSTRUCTION_ERROR__INCORRECT_PROGRAM_ID=de,n.SOLANA_ERROR__INSTRUCTION_ERROR__INSUFFICIENT_FUNDS=le,n.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_DATA=ce,n.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ACCOUNT_OWNER=Je,n.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ARGUMENT=oe,n.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_ERROR=je,n.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_INSTRUCTION_DATA=ae,n.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_REALLOC=He,n.SOLANA_ERROR__INSTRUCTION_ERROR__INVALID_SEEDS=Fe,n.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED=tt,n.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_ACCOUNTS_EXCEEDED=nt,n.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED=rt,n.SOLANA_ERROR__INSTRUCTION_ERROR__MAX_SEED_LENGTH_EXCEEDED=Be,n.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_ACCOUNT=Pe,n.SOLANA_ERROR__INSTRUCTION_ERROR__MISSING_REQUIRED_SIGNATURE=pe,n.SOLANA_ERROR__INSTRUCTION_ERROR__MODIFIED_PROGRAM_ID=me,n.SOLANA_ERROR__INSTRUCTION_ERROR__NOT_ENOUGH_ACCOUNT_KEYS=Ie,n.SOLANA_ERROR__INSTRUCTION_ERROR__PRIVILEGE_ESCALATION=ze,n.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_ENVIRONMENT_SETUP_FAILURE=We,n.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPILE=Ve,n.SOLANA_ERROR__INSTRUCTION_ERROR__PROGRAM_FAILED_TO_COMPLETE=$e,n.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_DATA_MODIFIED=Ee,n.SOLANA_ERROR__INSTRUCTION_ERROR__READONLY_LAMPORT_CHANGE=ye,n.SOLANA_ERROR__INSTRUCTION_ERROR__REENTRANCY_NOT_ALLOWED=Ue,n.SOLANA_ERROR__INSTRUCTION_ERROR__RENT_EPOCH_MODIFIED=Re,n.SOLANA_ERROR__INSTRUCTION_ERROR__UNBALANCED_INSTRUCTION=_e,n.SOLANA_ERROR__INSTRUCTION_ERROR__UNINITIALIZED_ACCOUNT=he,n.SOLANA_ERROR__INSTRUCTION_ERROR__UNKNOWN=se,n.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_PROGRAM_ID=Le,n.SOLANA_ERROR__INSTRUCTION_ERROR__UNSUPPORTED_SYSVAR=Qe,n.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_ACCOUNTS=te,n.SOLANA_ERROR__INSTRUCTION__EXPECTED_TO_HAVE_DATA=ne,n.SOLANA_ERROR__INSTRUCTION__PROGRAM_ID_MISMATCH=re,n.SOLANA_ERROR__INVALID_BLOCKHASH_BYTE_LENGTH=5,n.SOLANA_ERROR__INVALID_NONCE=2,n.SOLANA_ERROR__INVARIANT_VIOLATION__CACHED_ABORTABLE_ITERABLE_CACHE_ENTRY_MISSING=tr,n.SOLANA_ERROR__INVARIANT_VIOLATION__DATA_PUBLISHER_CHANNEL_UNIMPLEMENTED=rr,n.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_MUST_NOT_POLL_BEFORE_RESOLVING_EXISTING_MESSAGE_PROMISE=er,n.SOLANA_ERROR__INVARIANT_VIOLATION__SUBSCRIPTION_ITERATOR_STATE_MISSING=Qn,n.SOLANA_ERROR__INVARIANT_VIOLATION__SWITCH_MUST_BE_EXHAUSTIVE=nr,n.SOLANA_ERROR__JSON_RPC__INTERNAL_ERROR=i,n.SOLANA_ERROR__JSON_RPC__INVALID_PARAMS=o,n.SOLANA_ERROR__JSON_RPC__INVALID_REQUEST=c,n.SOLANA_ERROR__JSON_RPC__METHOD_NOT_FOUND=a,n.SOLANA_ERROR__JSON_RPC__PARSE_ERROR=s,n.SOLANA_ERROR__JSON_RPC__SCAN_ERROR=f,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_CLEANED_UP=I,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_NOT_AVAILABLE=b,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET=d,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX=_,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED=m,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED=u,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NODE_UNHEALTHY=E,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_NO_SNAPSHOT=g,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE=R,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_SLOT_SKIPPED=S,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE=h,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE=y,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH=p,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE=T,n.SOLANA_ERROR__JSON_RPC__SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION=l,n.SOLANA_ERROR__KEYS__INVALID_KEY_PAIR_BYTE_LENGTH=K,n.SOLANA_ERROR__KEYS__INVALID_PRIVATE_KEY_BYTE_LENGTH=J,n.SOLANA_ERROR__KEYS__INVALID_SIGNATURE_BYTE_LENGTH=Z,n.SOLANA_ERROR__KEYS__PUBLIC_KEY_MUST_MATCH_PRIVATE_KEY=ee,n.SOLANA_ERROR__KEYS__SIGNATURE_STRING_LENGTH_OUT_OF_RANGE=Q,n.SOLANA_ERROR__LAMPORTS_OUT_OF_RANGE=6,n.SOLANA_ERROR__MALFORMED_BIGINT_STRING=7,n.SOLANA_ERROR__MALFORMED_NUMBER_STRING=8,n.SOLANA_ERROR__NONCE_ACCOUNT_NOT_FOUND=3,n.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CANNOT_CREATE_SUBSCRIPTION_PLAN=qn,n.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CLOSED_BEFORE_MESSAGE_BUFFERED=Kn,n.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_CONNECTION_CLOSED=Jn,n.SOLANA_ERROR__RPC_SUBSCRIPTIONS__CHANNEL_FAILED_TO_CONNECT=Zn,n.SOLANA_ERROR__RPC_SUBSCRIPTIONS__EXPECTED_SERVER_SUBSCRIPTION_ID=Xn,n.SOLANA_ERROR__RPC__API_PLAN_MISSING_FOR_RPC_METHOD=Yn,n.SOLANA_ERROR__RPC__INTEGER_OVERFLOW=Wn,n.SOLANA_ERROR__RPC__TRANSPORT_HTTP_ERROR=Vn,n.SOLANA_ERROR__RPC__TRANSPORT_HTTP_HEADER_FORBIDDEN=$n,n.SOLANA_ERROR__SIGNER__ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS=it,n.SOLANA_ERROR__SIGNER__EXPECTED_KEY_PAIR_SIGNER=ot,n.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_MODIFYING_SIGNER=ct,n.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_PARTIAL_SIGNER=ut,n.SOLANA_ERROR__SIGNER__EXPECTED_MESSAGE_SIGNER=at,n.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_MODIFYING_SIGNER=dt,n.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_PARTIAL_SIGNER=pt,n.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SENDING_SIGNER=ft,n.SOLANA_ERROR__SIGNER__EXPECTED_TRANSACTION_SIGNER=lt,n.SOLANA_ERROR__SIGNER__TRANSACTION_CANNOT_HAVE_MULTIPLE_SENDING_SIGNERS=ht,n.SOLANA_ERROR__SIGNER__TRANSACTION_SENDING_SIGNER_MISSING=_t,n.SOLANA_ERROR__SIGNER__WALLET_MULTISIGN_UNIMPLEMENTED=mt,n.SOLANA_ERROR__SUBTLE_CRYPTO__CANNOT_EXPORT_NON_EXTRACTABLE_KEY=q,n.SOLANA_ERROR__SUBTLE_CRYPTO__DIGEST_UNIMPLEMENTED=G,n.SOLANA_ERROR__SUBTLE_CRYPTO__DISALLOWED_IN_INSECURE_CONTEXT=H,n.SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED=z,n.SOLANA_ERROR__SUBTLE_CRYPTO__EXPORT_FUNCTION_UNIMPLEMENTED=W,n.SOLANA_ERROR__SUBTLE_CRYPTO__GENERATE_FUNCTION_UNIMPLEMENTED=$,n.SOLANA_ERROR__SUBTLE_CRYPTO__SIGN_FUNCTION_UNIMPLEMENTED=V,n.SOLANA_ERROR__SUBTLE_CRYPTO__VERIFY_FUNCTION_UNIMPLEMENTED=Y,n.SOLANA_ERROR__TIMESTAMP_OUT_OF_RANGE=9,n.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_BORROW_OUTSTANDING=Qt,n.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_IN_USE=Ut,n.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_LOADED_TWICE=Bt,n.SOLANA_ERROR__TRANSACTION_ERROR__ACCOUNT_NOT_FOUND=Ft,n.SOLANA_ERROR__TRANSACTION_ERROR__ADDRESS_LOOKUP_TABLE_NOT_FOUND=an,n.SOLANA_ERROR__TRANSACTION_ERROR__ALREADY_PROCESSED=Wt,n.SOLANA_ERROR__TRANSACTION_ERROR__BLOCKHASH_NOT_FOUND=$t,n.SOLANA_ERROR__TRANSACTION_ERROR__CALL_CHAIN_TOO_DEEP=Vt,n.SOLANA_ERROR__TRANSACTION_ERROR__CLUSTER_MAINTENANCE=Zt,n.SOLANA_ERROR__TRANSACTION_ERROR__DUPLICATE_INSTRUCTION=hn,n.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_FEE=Gt,n.SOLANA_ERROR__TRANSACTION_ERROR__INSUFFICIENT_FUNDS_FOR_RENT=_n,n.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_FOR_FEE=zt,n.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ACCOUNT_INDEX=qt,n.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_DATA=un,n.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_INDEX=ln,n.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_ADDRESS_LOOKUP_TABLE_OWNER=cn,n.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_LOADED_ACCOUNTS_DATA_SIZE_LIMIT=gn,n.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_PROGRAM_FOR_EXECUTION=Kt,n.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_RENT_PAYING_ACCOUNT=dn,n.SOLANA_ERROR__TRANSACTION_ERROR__INVALID_WRITABLE_ACCOUNT=nn,n.SOLANA_ERROR__TRANSACTION_ERROR__MAX_LOADED_ACCOUNTS_DATA_SIZE_EXCEEDED=mn,n.SOLANA_ERROR__TRANSACTION_ERROR__MISSING_SIGNATURE_FOR_FEE=Yt,n.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_ACCOUNT_NOT_FOUND=Ht,n.SOLANA_ERROR__TRANSACTION_ERROR__PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED=yn,n.SOLANA_ERROR__TRANSACTION_ERROR__RESANITIZATION_NEEDED=Sn,n.SOLANA_ERROR__TRANSACTION_ERROR__SANITIZE_FAILURE=Jt,n.SOLANA_ERROR__TRANSACTION_ERROR__SIGNATURE_FAILURE=Xt,n.SOLANA_ERROR__TRANSACTION_ERROR__TOO_MANY_ACCOUNT_LOCKS=on,n.SOLANA_ERROR__TRANSACTION_ERROR__UNBALANCED_TRANSACTION=En,n.SOLANA_ERROR__TRANSACTION_ERROR__UNKNOWN=Pt,n.SOLANA_ERROR__TRANSACTION_ERROR__UNSUPPORTED_VERSION=tn,n.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_BLOCK_LIMIT=sn,n.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_ACCOUNT_DATA_TOTAL_LIMIT=fn,n.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_ACCOUNT_COST_LIMIT=rn,n.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_BLOCK_COST_LIMIT=en,n.SOLANA_ERROR__TRANSACTION_ERROR__WOULD_EXCEED_MAX_VOTE_COST_LIMIT=pn,n.SOLANA_ERROR__TRANSACTION__ADDRESSES_CANNOT_SIGN_TRANSACTION=kt,n.SOLANA_ERROR__TRANSACTION__ADDRESS_MISSING=At,n.SOLANA_ERROR__TRANSACTION__CANNOT_ENCODE_WITH_EMPTY_SIGNATURES=Dt,n.SOLANA_ERROR__TRANSACTION__EXPECTED_BLOCKHASH_LIFETIME=yt,n.SOLANA_ERROR__TRANSACTION__EXPECTED_NONCE_LIFETIME=Et,n.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_CONTENTS_MISSING=Tt,n.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_ADDRESS_LOOKUP_TABLE_INDEX_OUT_OF_RANGE=Rt,n.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_FEE_PAYER_MISSING=vt,n.SOLANA_ERROR__TRANSACTION__FAILED_TO_DECOMPILE_INSTRUCTION_PROGRAM_ADDRESS_NOT_FOUND=It,n.SOLANA_ERROR__TRANSACTION__FAILED_TO_ESTIMATE_COMPUTE_LIMIT=Lt,n.SOLANA_ERROR__TRANSACTION__FAILED_WHEN_SIMULATING_TO_ESTIMATE_COMPUTE_LIMIT=Mt,n.SOLANA_ERROR__TRANSACTION__FEE_PAYER_MISSING=wt,n.SOLANA_ERROR__TRANSACTION__FEE_PAYER_SIGNATURE_MISSING=Nt,n.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_FIRST_INSTRUCTION_MUST_BE_ADVANCE_NONCE=jt,n.SOLANA_ERROR__TRANSACTION__INVALID_NONCE_TRANSACTION_INSTRUCTIONS_MISSING=Ct,n.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_CANNOT_PAY_FEES=gt,n.SOLANA_ERROR__TRANSACTION__INVOKED_PROGRAMS_MUST_NOT_BE_WRITABLE=St,n.SOLANA_ERROR__TRANSACTION__MESSAGE_SIGNATURES_MISMATCH=xt,n.SOLANA_ERROR__TRANSACTION__SIGNATURES_MISSING=Ot,n.SOLANA_ERROR__TRANSACTION__VERSION_NUMBER_OUT_OF_RANGE=bt,n.SolanaError=ar,n.getSolanaErrorFromInstructionError=dr,n.getSolanaErrorFromJsonRpcError=function e({code:t,data:n,message:r}){let u;const p=Number(t);if(p===R){const{err:e,...t}=n,r=e?{cause:fr(e)}:null;u=new ar(R,{...t,...r})}else{let e;switch(p){case i:case o:case c:case a:case s:case f:case I:case b:case d:case _:case m:case S:case y:case l:e={__serverMessage:r};break;default:"object"!=typeof n||Array.isArray(n)||(e=n)}u=new ar(p,e)}return cr(u,e),u},n.getSolanaErrorFromTransactionError=fr,n.isSolanaError=function(e,t){return!!(e instanceof Error&&"SolanaError"===e.name)&&(void 0===t||e.context.__code===t)},n.safeCaptureStackTrace=cr}}},{package:"@solana/addresses>@solana/errors",file:"node_modules/@solana/addresses/node_modules/@solana/errors/dist/index.browser.cjs"}],[3243,{"@solana/errors":3246},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r,s=e("@solana/errors");function i(){if(!globalThis.isSecureContext)throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__DISALLOWED_IN_INSECURE_CONTEXT)}n.assertDigestCapabilityIsAvailable=function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.digest))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__DIGEST_UNIMPLEMENTED)},n.assertKeyExporterIsAvailable=function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.exportKey))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__EXPORT_FUNCTION_UNIMPLEMENTED)},n.assertKeyGenerationIsAvailable=async function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.generateKey))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__GENERATE_FUNCTION_UNIMPLEMENTED);if(!await async function(e){return void 0===r&&(r=new Promise((t=>{e.generateKey("Ed25519",!1,["sign","verify"]).then((()=>{t(r=!0)})).catch((()=>{t(r=!1)}))}))),"boolean"==typeof r?r:await r}(globalThis.crypto.subtle))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__ED25519_ALGORITHM_UNIMPLEMENTED)},n.assertPRNGIsAvailable=function(){if(void 0===globalThis.crypto||"function"!=typeof globalThis.crypto.getRandomValues)throw new s.SolanaError(s.SOLANA_ERROR__CRYPTO__RANDOM_VALUES_FUNCTION_UNIMPLEMENTED)},n.assertSigningCapabilityIsAvailable=function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.sign))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__SIGN_FUNCTION_UNIMPLEMENTED)},n.assertVerificationCapabilityIsAvailable=function(){var e;if(i(),void 0===globalThis.crypto||"function"!=typeof(null===(e=globalThis.crypto.subtle)||void 0===e?void 0:e.verify))throw new s.SolanaError(s.SOLANA_ERROR__SUBTLE_CRYPTO__VERIFY_FUNCTION_UNIMPLEMENTED)}}}},{package:"@metamask/multichain-network-controller>@solana/addresses>@solana/assertions",file:"node_modules/@solana/assertions/dist/index.browser.cjs"}],[3244,{"@solana/errors":3246},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("@solana/errors"),s=(e,t)=>{if(e.length>=t)return e;const n=new Uint8Array(t).fill(0);return n.set(e),n},i=(e,t)=>s(e.length<=t?e:e.slice(0,t),t);function o(e,t,n){const r=0===n&&e.length===t.length?e:e.slice(n,n+t.length);return r.length===t.length&&t.every(((e,t)=>e===r[t]))}function a(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}function c(e){return Object.freeze({...e,encode:t=>{const n=new Uint8Array(a(t,e));return e.write(t,n,0),n}})}function u(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0]})}function l(e){return Object.freeze({...e,decode:(t,n=0)=>e.read(t,n)[0],encode:t=>{const n=new Uint8Array(a(t,e));return e.write(t,n,0),n}})}function d(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}function p(e){if(!d(e))throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_FIXED_LENGTH)}function f(e){return!d(e)}function h(e,t){if(d(e)!==d(t))throw new r.SolanaError(r.SOLANA_ERROR__CODECS__ENCODER_DECODER_SIZE_COMPATIBILITY_MISMATCH);if(d(e)&&d(t)&&e.fixedSize!==t.fixedSize)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__ENCODER_DECODER_FIXED_SIZE_MISMATCH,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!d(e)&&!d(t)&&e.maxSize!==t.maxSize)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__ENCODER_DECODER_MAX_SIZE_MISMATCH,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}function _(e,t){const n=(n,s,i)=>{const o=e.encode(n);if(g(o,t)>=0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__ENCODED_BYTES_MUST_NOT_INCLUDE_SENTINEL,{encodedBytes:o,hexEncodedBytes:S(o),hexSentinel:S(t),sentinel:t});return s.set(o,i),i+=o.length,s.set(t,i),i+=t.length};return d(e)?c({...e,fixedSize:e.fixedSize+t.length,write:n}):c({...e,...null!=e.maxSize?{maxSize:e.maxSize+t.length}:{},getSizeFromValue:n=>e.getSizeFromValue(n)+t.length,write:n})}function m(e,t){const n=(n,s)=>{const i=0===s?n:n.slice(s),o=g(i,t);if(-1===o)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__SENTINEL_MISSING_IN_DECODED_BYTES,{decodedBytes:i,hexDecodedBytes:S(i),hexSentinel:S(t),sentinel:t});const a=i.slice(0,o);return[e.decode(a),s+a.length+t.length]};return d(e)?u({...e,fixedSize:e.fixedSize+t.length,read:n}):u({...e,...null!=e.maxSize?{maxSize:e.maxSize+t.length}:{},read:n})}function g(e,t){return e.findIndex(((e,n,r)=>1===t.length?e===t[0]:o(r,t,n)))}function S(e){return e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),"")}function y(e,t,n,s=0){const i=n.length-s;if(in)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__OFFSET_OUT_OF_RANGE,{bytesLength:n,codecDescription:e,offset:t})}function b(e,t){const n=(n,r,s)=>{const i=e.encode(n);return s=t.write(i.length,r,s),r.set(i,s),s+i.length};if(d(t)&&d(e))return c({...e,fixedSize:t.fixedSize+e.fixedSize,write:n});const r=d(t)?t.fixedSize:t.maxSize??null,s=d(e)?e.fixedSize:e.maxSize??null,i=null!==r&&null!==s?r+s:null;return c({...e,...null!==i?{maxSize:i}:{},getSizeFromValue:n=>{const r=a(n,e);return a(r,t)+r},write:n})}function T(e,t){const n=(n,r)=>{const[s,i]=t.read(n,r),o=Number(s);return((r=i)>0||n.length>o)&&(n=n.slice(r,r+o)),y("addDecoderSizePrefix",o,n),[e.decode(n),r+o]};if(d(t)&&d(e))return u({...e,fixedSize:t.fixedSize+e.fixedSize,read:n});const r=d(t)?t.fixedSize:t.maxSize??null,s=d(e)?e.fixedSize:e.maxSize??null,i=null!==r&&null!==s?r+s:null;return u({...e,...null!==i?{maxSize:i}:{},read:n})}function R(e,t){return c({fixedSize:t,write:(n,r,s)=>{const i=e.encode(n),o=i.length>t?i.slice(0,t):i;return r.set(o,s),s+t}})}function I(e,t){return u({fixedSize:t,read:(n,r)=>{y("fixCodecSize",t,n,r),(r>0||n.length>t)&&(n=n.slice(r,r+t)),d(e)&&(n=i(n,e.fixedSize));const[s]=e.read(n,0);return[s,r+t]}})}function v(e,t){return c({...e,write:(n,r,s)=>{const i=e=>A(e,r.length),o=t.preOffset?t.preOffset({bytes:r,preOffset:s,wrapBytes:i}):s;E("offsetEncoder",o,r.length);const a=e.write(n,r,o),c=t.postOffset?t.postOffset({bytes:r,newPreOffset:o,postOffset:a,preOffset:s,wrapBytes:i}):a;return E("offsetEncoder",c,r.length),c}})}function O(e,t){return u({...e,read:(n,r)=>{const s=e=>A(e,n.length),i=t.preOffset?t.preOffset({bytes:n,preOffset:r,wrapBytes:s}):r;E("offsetDecoder",i,n.length);const[o,a]=e.read(n,i),c=t.postOffset?t.postOffset({bytes:n,newPreOffset:i,postOffset:a,preOffset:r,wrapBytes:s}):a;return E("offsetDecoder",c,n.length),[o,c]}})}function A(e,t){return 0===t?0:(e%t+t)%t}function w(e,t){if(d(e)){const n=t(e.fixedSize);if(n<0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:n,codecDescription:"resizeEncoder"});return c({...e,fixedSize:n})}return c({...e,getSizeFromValue:n=>{const s=t(e.getSizeFromValue(n));if(s<0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:s,codecDescription:"resizeEncoder"});return s}})}function N(e,t){if(d(e)){const n=t(e.fixedSize);if(n<0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_POSITIVE_BYTE_LENGTH,{bytesLength:n,codecDescription:"resizeDecoder"});return u({...e,fixedSize:n})}return e}function C(e,t){return v(w(e,(e=>e+t)),{preOffset:({preOffset:e})=>e+t})}function j(e,t){return v(w(e,(e=>e+t)),{postOffset:({postOffset:e})=>e+t})}function k(e,t){return O(N(e,(e=>e+t)),{preOffset:({preOffset:e})=>e+t})}function D(e,t){return O(N(e,(e=>e+t)),{postOffset:({postOffset:e})=>e+t})}function x(e,t,n,r,s=0){for(;n<--r;){const i=e[n];t[n+s]=e[r],t[r+s]=i,n++}n===r&&(t[n+s]=e[n])}function L(e){return p(e),c({...e,write:(t,n,r)=>{const s=e.write(t,n,r);return x(n,n,r,r+e.fixedSize),s}})}function M(e){return p(e),u({...e,read:(t,n)=>{const r=t.slice();return x(t,r,n,n+e.fixedSize),e.read(r,n)}})}function P(e,t){return c({...f(e)?{...e,getSizeFromValue:n=>e.getSizeFromValue(t(n))}:e,write:(n,r,s)=>e.write(t(n),r,s)})}function U(e,t){return u({...e,read:(n,r)=>{const[s,i]=e.read(n,r);return[t(s,n,r),i]}})}n.addCodecSentinel=function(e,t){return h(_(e,t),m(e,t))},n.addCodecSizePrefix=function(e,t){return h(b(e,t),T(e,t))},n.addDecoderSentinel=m,n.addDecoderSizePrefix=T,n.addEncoderSentinel=_,n.addEncoderSizePrefix=b,n.assertByteArrayHasEnoughBytesForCodec=y,n.assertByteArrayIsNotEmptyForCodec=function(e,t,n=0){if(t.length-n<=0)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__CANNOT_DECODE_EMPTY_BYTE_ARRAY,{codecDescription:e})},n.assertByteArrayOffsetIsNotOutOfRange=E,n.assertIsFixedSize=p,n.assertIsVariableSize=function(e){if(!f(e))throw new r.SolanaError(r.SOLANA_ERROR__CODECS__EXPECTED_VARIABLE_LENGTH)},n.combineCodec=h,n.containsBytes=o,n.createCodec=l,n.createDecoder=u,n.createEncoder=c,n.fixBytes=i,n.fixCodecSize=function(e,t){return h(R(e,t),I(e,t))},n.fixDecoderSize=I,n.fixEncoderSize=R,n.getEncodedSize=a,n.isFixedSize=d,n.isVariableSize=f,n.mergeBytes=e=>{const t=e.filter((e=>e.length));if(0===t.length)return e.length?e[0]:new Uint8Array;if(1===t.length)return t[0];const n=t.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(n);let s=0;return t.forEach((e=>{r.set(e,s),s+=e.length})),r},n.offsetCodec=function(e,t){return h(v(e,t),O(e,t))},n.offsetDecoder=O,n.offsetEncoder=v,n.padBytes=s,n.padLeftCodec=function(e,t){return h(C(e,t),k(e,t))},n.padLeftDecoder=k,n.padLeftEncoder=C,n.padRightCodec=function(e,t){return h(j(e,t),D(e,t))},n.padRightDecoder=D,n.padRightEncoder=j,n.resizeCodec=function(e,t){return h(w(e,t),N(e,t))},n.resizeDecoder=N,n.resizeEncoder=w,n.reverseCodec=function(e){return h(L(e),M(e))},n.reverseDecoder=M,n.reverseEncoder=L,n.transformCodec=function(e,t,n){return l({...P(e,t),read:n?U(e,n).read:e.read})},n.transformDecoder=U,n.transformEncoder=P}}},{package:"@metamask/multichain-network-controller>@solana/addresses>@solana/codecs-core",file:"node_modules/@solana/codecs-core/dist/index.browser.cjs"}],[3245,{"@solana/codecs-core":3244,"@solana/errors":3246},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,n){var r=e("@solana/errors"),s=e("@solana/codecs-core");function i(e,t,n=t){if(!t.match(new RegExp(`^[${e}]*$`)))throw new r.SolanaError(r.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE,{alphabet:e,base:e.length,value:n})}var o=e=>s.createEncoder({getSizeFromValue:t=>{const[n,r]=u(t,e[0]);if(!r)return t.length;const s=l(r,e);return n.length+Math.ceil(s.toString(16).length/2)},write(t,n,r){if(i(e,t),""===t)return r;const[s,o]=u(t,e[0]);if(!o)return n.set(new Uint8Array(s.length).fill(0),r),r+s.length;let a=l(o,e);const c=[];for(;a>0n;)c.unshift(Number(a%256n)),a/=256n;const d=[...Array(s.length).fill(0),...c];return n.set(d,r),r+d.length}}),a=e=>s.createDecoder({read(t,n){const r=0===n?t:t.slice(n);if(0===r.length)return["",0];let s=r.findIndex((e=>0!==e));s=-1===s?r.length:s;const i=e[0].repeat(s);if(s===r.length)return[i,t.length];const o=function(e,t){const n=BigInt(t.length),r=[];for(;e>0n;)r.unshift(t[Number(e%n)]),e/=n;return r.join("")}(r.slice(s).reduce(((e,t)=>256n*e+BigInt(t)),0n),e);return[i+o,t.length]}}),c=e=>s.combineCodec(o(e),a(e));function u(e,t){const[n,r]=e.split(new RegExp(`((?!${t}).*)`));return[n,r]}function l(e,t){const n=BigInt(t.length);let r=0n;for(const s of e)r*=n,r+=BigInt(t.indexOf(s));return r}var d="0123456789",p={alphabet:"0123456789abcdef",base:16};function f(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}var h=()=>s.createEncoder({getSizeFromValue:e=>Math.ceil(e.length/2),write(e,t,n){const s=e.length,i=s/2;if(1===s){const s=f(e.charCodeAt(0));if(void 0===s)throw new r.SolanaError(r.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE,{...p,value:e});return t.set([s],n),1+n}const o=new Uint8Array(i);for(let t=0,n=0;ts.createDecoder({read:(e,t)=>[e.slice(t).reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),e.length]}),m="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",g=(e,t)=>s.createEncoder({getSizeFromValue:e=>Math.floor(e.length*t/8),write(n,r,s){if(i(e,n),""===n)return s;const o=y([...n].map((t=>e.indexOf(t))),t,8,!1);return r.set(o,s),o.length+s}}),S=(e,t)=>s.createDecoder({read(n,r=0){const s=0===r?n:n.slice(r);if(0===s.length)return["",n.length];return[y([...s],8,t,!0).map((t=>e[t])).join(""),n.length]}});function y(e,t,n,r){const s=[];let i=0,o=0;const a=(1<=n;)o-=n,s.push(i>>o&a);return r&&o>0&&s.push(i<s.createEncoder({getSizeFromValue:e=>{try{return atob(e).length}catch{throw new r.SolanaError(r.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE,{alphabet:E,base:64,value:e})}},write(e,t,n){try{const r=atob(e).split("").map((e=>e.charCodeAt(0)));return t.set(r,n),r.length+n}catch{throw new r.SolanaError(r.SOLANA_ERROR__CODECS__INVALID_STRING_FOR_BASE,{alphabet:E,base:64,value:e})}}}),T=()=>s.createDecoder({read(e,t=0){const n=e.slice(t);return[btoa(String.fromCharCode(...n)),e.length]}}),R=e=>e.replace(/\u0000/g,""),I=globalThis.TextDecoder,v=globalThis.TextEncoder,O=()=>{let e;return s.createEncoder({getSizeFromValue:t=>(e||(e=new v)).encode(t).length,write:(t,n,r)=>{const s=(e||(e=new v)).encode(t);return n.set(s,r),r+s.length}})},A=()=>{let e;return s.createDecoder({read(t,n){const r=(e||(e=new I)).decode(t.slice(n));return[R(r),t.length]}})};n.assertValidBaseString=i,n.getBase10Codec=()=>c(d),n.getBase10Decoder=()=>a(d),n.getBase10Encoder=()=>o(d),n.getBase16Codec=()=>s.combineCodec(h(),_()),n.getBase16Decoder=_,n.getBase16Encoder=h,n.getBase58Codec=()=>c(m),n.getBase58Decoder=()=>a(m),n.getBase58Encoder=()=>o(m),n.getBase64Codec=()=>s.combineCodec(b(),T()),n.getBase64Decoder=T,n.getBase64Encoder=b,n.getBaseXCodec=c,n.getBaseXDecoder=a,n.getBaseXEncoder=o,n.getBaseXResliceCodec=(e,t)=>s.combineCodec(g(e,t),S(e,t)),n.getBaseXResliceDecoder=S,n.getBaseXResliceEncoder=g,n.getUtf8Codec=()=>s.combineCodec(O(),A()),n.getUtf8Decoder=A,n.getUtf8Encoder=O,n.padNullCharacters=(e,t)=>e.padEnd(t,"\0"),n.removeNullCharacters=R}}},{package:"@metamask/multichain-network-controller>@solana/addresses>@solana/codecs-strings",file:"node_modules/@solana/codecs-strings/dist/index.browser.cjs"}]],[],{});