PageSourceSearch

https://www.maestro.io/static/js/app.41de6be.js

js maestro.io collected 2026-09-24 18:23:57 UTC 308,093 bytes, 35 lines download raw bytes

1(function(){try{var L=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new L.Error().stack;t&&(L._sentryDebugIds=L._sentryDebugIds||{},L._sentryDebugIds[t]="3b59f59b-f5ef-41ec-8fa0-d2a2b9483186",L._sentryDebugIdIdentifier="sentry-dbid-3b59f59b-f5ef-41ec-8fa0-d2a2b9483186")}catch{}})();var _global=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};_global.SENTRY_RELEASE={id:"6b3b5bcd49ac3ca4e22832378da81add8169a867"},(self.webpackChunk_maestro_io_client=self.webpackChunk_maestro_io_client||[]).push([[3516],{728555:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g="7";function v(p){const y=p.protocol?`${p.protocol}:`:"",_=p.port?`:${p.port}`:"";return`${y}//${p.host}${_}${p.path?`/${p.path}`:""}/api/`}function E(p){return`${v(p)}${p.projectId}/envelope/`}function m(p,y){return a.urlEncode({sentry_key:p.publicKey,sentry_version:g,...y&&{sentry_client:`${y.name}/${y.version}`}})}function S(p,y={}){const _=typeof y=="string"?y:y.tunnel,o=typeof y=="string"||!y._metadata?void 0:y._metadata.sdk;return _||`${E(p)}?${m(p,o)}`}function f(p,y){const _=a.makeDsn(p);if(!_)return"";const o=`${v(_)}embed/error-page/`;let i=`dsn=${a.dsnToString(_)}`;for(const c in y)if(c!=="dsn"&&c!=="onClose")if(c==="user"){const l=y.user;if(!l)continue;l.name&&(i+=`&name=${encodeURIComponent(l.name)}`),l.email&&(i+=`&email=${encodeURIComponent(l.email)}`)}else i+=`&${encodeURIComponent(c)}=${encodeURIComponent(y[c])}`;return`${o}?${i}`}t.getEnvelopeEndpointWithUrlEncodedAuth=S,t.getReportDialogEndpoint=f},616981:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(728555),v=s(757437),E=s(552335),m=s(539096),S=s(515608),f=s(824993),p=s(862925),y=s(779615),_=s(423259),o=s(230936),i="Not capturing exception because it's already been captured.";class c{constructor(d){if(this._options=d,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],d.dsn?this._dsn=a.makeDsn(d.dsn):v.DEBUG_BUILD&&a.logger.warn("No DSN provided, client will not send events."),this._dsn){const I=g.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,d);this._transport=d.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...d.transportOptions,url:I})}}captureException(d,I,T){if(a.checkOrSetAlreadyCaught(d)){v.DEBUG_BUILD&&a.logger.log(i);return}let A=I&&I.event_id;return this._process(this.eventFromException(d,I).then(w=>this._captureEvent(w,I,T)).then(w=>{A=w})),A}captureMessage(d,I,T,A){let w=T&&T.event_id;const B=a.isParameterizedString(d)?d:String(d),F=a.isPrimitive(d)?this.eventFromMessage(B,I,T):this.eventFromException(d,T);return this._process(F.then(G=>this._captureEvent(G,T,A)).then(G=>{w=G})),w}captureEvent(d,I,T){if(I&&I.originalException&&a.checkOrSetAlreadyCaught(I.originalException)){v.DEBUG_BUILD&&a.logger.log(i);return}let A=I&&I.event_id;const B=(d.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(d,I,B||T).then(F=>{A=F})),A}captureSession(d){typeof d.release!="string"?v.DEBUG_BUILD&&a.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(d),y.updateSession(d,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(d){const I=this._transport;return I?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(d).then(T=>I.flush(d).then(A=>T&&A))):a.resolvedSyncPromise(!0)}close(d){return this.flush(d).then(I=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),I))}getEventProcessors(){return this._eventProcessors}addEventProcessor(d){this._eventProcessors.push(d)}setupIntegrations(d){(d&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(d){return this.getIntegrationByName(d)}getIntegrationByName(d){return this._integrations[d]}getIntegration(d){try{return this._integrations[d.id]||null}catch{return v.DEBUG_BUILD&&a.logger.warn(`Cannot retrieve integration ${d.id} from the current Client`),null}}addIntegration(d){const I=this._integrations[d.name];f.setupIntegration(this,d,this._integrations),I||f.afterSetupIntegrations(this,[d])}sendEvent(d,I={}
1){this.emit("beforeSendEvent",d,I);let T=E.createEventEnvelope(d,this._dsn,this._options._metadata,this._options.tunnel);for(const w of I.attachments||[])T=a.addItemToEnvelope(T,a.createAttachmentEnvelopeItem(w,this._options.transportOptions&&this._options.transportOptions.textEncoder));const A=this._sendEnvelope(T);A&&A.then(w=>this.emit("afterSendEvent",d,w),null)}sendSession(d){const I=E.createSessionEnvelope(d,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(I)}recordDroppedEvent(d,I,T){if(this._options.sendClientReports){const A=typeof T=="number"?T:1,w=`${d}:${I}`;v.DEBUG_BUILD&&a.logger.log(`Recording outcome: "${w}"${A>1?` (${A} times)`:""}`),this._outcomes[w]=(this._outcomes[w]||0)+A}}captureAggregateMetrics(d){v.DEBUG_BUILD&&a.logger.log(`Flushing aggregated metrics, number of metrics: ${d.length}`);const I=p.createMetricEnvelope(d,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(I)}on(d,I){this._hooks[d]||(this._hooks[d]=[]),this._hooks[d].push(I)}emit(d,...I){this._hooks[d]&&this._hooks[d].forEach(T=>T(...I))}_setupIntegrations(){const{integrations:d}=this._options;this._integrations=f.setupIntegrations(this,d),f.afterSetupIntegrations(this,d),this._integrationsInitialized=!0}_updateSessionFromEvent(d,I){let T=!1,A=!1;const w=I.exception&&I.exception.values;if(w){A=!0;for(const G of w){const Y=G.mechanism;if(Y&&Y.handled===!1){T=!0;break}}}const B=d.status==="ok";(B&&d.errors===0||B&&T)&&(y.updateSession(d,{...T&&{status:"crashed"},errors:d.errors||Number(A||T)}),this.captureSession(d))}_isClientDoneProcessing(d){return new a.SyncPromise(I=>{let T=0;const A=1,w=setInterval(()=>{this._numProcessing==0?(clearInterval(w),I(!0)):(T+=A,d&&T>=d&&(clearInterval(w),I(!1)))},A)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(d,I,T,A=S.getIsolationScope()){const w=this.getOptions(),B=Object.keys(this._integrations);return!I.integrations&&B.length>0&&(I.integrations=B),this.emit("preprocessEvent",d,I),o.prepareEvent(w,d,I,T,this,A).then(F=>{if(F===null)return F;const G={...A.getPropagationContext(),...T?T.getPropagationContext():void 0};if(!(F.contexts&&F.contexts.trace)&&G){const{traceId:X,spanId:Q,parentSpanId:x,dsc:K}=G;F.contexts={trace:{trace_id:X,span_id:Q,parent_span_id:x},...F.contexts};const re=K||_.getDynamicSamplingContextFromClient(X,this,T);F.sdkProcessingMetadata={dynamicSamplingContext:re,...F.sdkProcessingMetadata}}return F})}_captureEvent(d,I={},T){return this._processEvent(d,I,T).then(A=>A.event_id,A=>{if(v.DEBUG_BUILD){const w=A;w.logLevel==="log"?a.logger.log(w.message):a.logger.warn(w)}})}_processEvent(d,I,T){const A=this.getOptions(),{sampleRate:w}=A,B=b(d),F=M(d),G=d.type||"error",Y=`before send for type \`${G}\``;if(F&&typeof w=="number"&&Math.random()>w)return this.recordDroppedEvent("sample_rate","error",d),a.rejectedSyncPromise(new a.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${w})`,"log"));const X=G==="replay_event"?"replay":G,x=(d.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(d,I,T,x).then(K=>{if(K===null)throw this.recordDroppedEvent("event_processor",X,d),new a.SentryError("An event processor returned `null`, will not send event.","log");if(I.data&&I.data.__sentry__===!0)return K;const z=C(A,K,I);return l(z,Y)}).then(K=>{if(K===null){if(this.recordDroppedEvent("before_send",X,d),B){const Z=1+(d.spans||[]).length;this.recordDroppedEvent("before_send","span",Z)}throw new a.SentryError(`${Y} returned \`null\`, will not send event.`,"log")}const re=T&&T.getSession();if(!B&&re&&this._updateSessionFromEvent(re,K),B){const W=K.sdkProcessingMetadata&&K.sdkProcessingMetadata.spanCountBeforeProcessing||0,Z=K.spans?K.spans.length:0,se=W-Z;se>0&&this.recordDroppedEvent("before_send","span",se)}const z=K.transaction_info;if(B&&z&&K.transaction!==d.transaction){const W="custom";K.transaction_info={...z,source:W}}return this.sendEvent(K,I),K}).then(null,K=>{throw K instanceof a.SentryError?K:(this.captureException(K,{data:{__sentry__:!0},originalException:K}),new a.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
2Reason: ${K}`))})}_process(d){this._numProcessing++,d.then(I=>(this._numProcessing--,I),I=>(this._numProcessing--,I))}
2_sendEnvelope(d){if(this.emit("beforeEnvelope",d),this._isEnabled()&&this._transport)return this._transport.send(d).then(null,I=>{v.DEBUG_BUILD&&a.logger.error("Error while sending event:",I)});v.DEBUG_BUILD&&a.logger.error("Transport disabled")}_clearOutcomes(){const d=this._outcomes;return this._outcomes={},Object.keys(d).map(I=>{const[T,A]=I.split(":");return{reason:T,category:A,quantity:d[I]}})}}function l(h,d){const I=`${d} must return \`null\` or a valid event.`;if(a.isThenable(h))return h.then(T=>{if(!a.isPlainObject(T)&&T!==null)throw new a.SentryError(I);return T},T=>{throw new a.SentryError(`${d} rejected with ${T}`)});if(!a.isPlainObject(h)&&h!==null)throw new a.SentryError(I);return h}function C(h,d,I){const{beforeSend:T,beforeSendTransaction:A}=h;if(M(d)&&T)return T(d,I);if(b(d)&&A){if(d.spans){const w=d.spans.length;d.sdkProcessingMetadata={...d.sdkProcessingMetadata,spanCountBeforeProcessing:w}}return A(d,I)}return d}function M(h){return h.type===void 0}function b(h){return h.type==="transaction"}function R(h){const d=m.getClient();!d||!d.addEventProcessor||d.addEventProcessor(h)}t.BaseClient=c,t.addEventProcessor=R},381216:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375);function g(E,m,S,f,p){const y={sent_at:new Date().toISOString()};S&&S.sdk&&(y.sdk={name:S.sdk.name,version:S.sdk.version}),f&&p&&(y.dsn=a.dsnToString(p)),m&&(y.trace=a.dropUndefinedKeys(m));const _=v(E);return a.createEnvelope(y,[_])}function v(E){return[{type:"check_in"},E]}t.createCheckInEnvelope=g},59090:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s="production";t.DEFAULT_ENVIRONMENT=s},757437:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;t.DEBUG_BUILD=s},552335:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375);function g(m,S){return S&&(m.sdk=m.sdk||{},m.sdk.name=m.sdk.name||S.name,m.sdk.version=m.sdk.version||S.version,m.sdk.integrations=[...m.sdk.integrations||[],...S.integrations||[]],m.sdk.packages=[...m.sdk.packages||[],...S.packages||[]]),m}function v(m,S,f,p){const y=a.getSdkMetadataForEnvelopeHeader(f),_={sent_at:new Date().toISOString(),...y&&{sdk:y},...!!p&&S&&{dsn:a.dsnToString(S)}},o="aggregates"in m?[{type:"sessions"},m]:[{type:"session"},m.toJSON()];return a.createEnvelope(_,[o])}function E(m,S,f,p){const y=a.getSdkMetadataForEnvelopeHeader(f),_=m.type&&m.type!=="replay_event"?m.type:"event";g(m,f&&f.sdk);const o=a.createEventEnvelopeHeaders(m,y,p,S);delete m.sdkProcessingMetadata;const i=[{type:_},m];return a.createEnvelope(o,[i])}t.createEventEnvelope=E,t.createSessionEnvelope=v},743042:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437);function v(){return a.getGlobalSingleton("globalEventProcessors",()=>[])}function E(S){v().push(S)}function m(S,f,p,y=0){return new a.SyncPromise((_,o)=>{const i=S[y];if(f===null||typeof i!="function")_(f);else{const c=i({...f},p);g.DEBUG_BUILD&&i.id&&c===null&&a.logger.log(`Event processor "${i.id}" dropped event`),a.isThenable(c)?c.then(l=>m(S,l,p,y+1).then(_)).then(null,o):m(S,c,p,y+1).then(_).then(null,o)}})}t.addGlobalEventProcessor=E,t.getGlobalEventProcessors=v,t.notifyEventProcessors=m},539096:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(59090),v=s(757437),E=s(515608),m=s(779615),S=s(230936);function f(z,W){return E.getCurrentHub().captureException(z,S.parseEventHintOrCaptureContext(W))}function p(z,W){const Z=typeof W=="string"?W:void 0,se=typeof W!="string"?{captureContext:W}:void 0;return E.getCurrentHub().captureMessage(z,Z,se)}function y(z,W){return E.getCurrentHub().captureEvent(z,W)}function _(z){E.getCurrentHub().configureScope(z)}function o(z,W){E.getCurrentHub().addBreadcrumb(z,W)}function i(z,W){E.getCurrentHub().setContext(z,W)}function c(z){E.getCurrentHub().setExtras(z)}function l(z,W){E.getCurrentHub().setExtra(z,W)}function C(z){E.getCurrentHub().setTags(z)}function M(z,W){E.getCurrentHub().setTag(z,W)}function b(z){E.getCurrentHub().setUser(z)}function R(...z){const W=E.getCurrentHub();if(z.length===2){const[Z,se]=z;return Z?W.withScope(()=>(W.getStackTop().scope=Z,se(Z))):W.withScope(se)}return W.withScope(z[0])}function h(z){return E.runWithAsyncContext(()=>z(E.getIsolationScope()))}function d(z,W){return R(Z=>(Z.setSpan(z),W(Z)))}function I(z,W){return E.getCurrentHub().startTransaction({...z},W)}function T(z,W){const Z=X(),se=G();if(!se)v.DEBUG_BUILD&&a.logger.warn("Cannot capture check-in. No client defined.");else if(!se.captureCheckIn)v.DEBUG_BUILD&&a.logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return se.captureCheckIn(z,W,Z);return a.uuid4()}function A(z,W,Z){const se=T({monitorSlug:z,status:"in_progress"},Z),Ie=a.timestampInSeconds();function ve(Re){T({monitorSlug:z,status:Re,checkInId:se,duration:a.timestampInSeconds()-Ie})}let ye;try{ye=W()}catch(Re){throw ve("error"),Re}return a.isThenable(ye)?Promise.resolve(ye).then(()=>{ve("ok")},()=>{ve("error")}):ve("ok"),ye}async function w(z){const W=G();return W?W.flush(z):(v.DEBUG_BUILD&&a.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function B(z){const W=G();return W?W.close(z):(v.DEBUG_BUILD&&a.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function F(){return E.getCurrentHub().lastEventId()}function G(){return E.getCurrentHub().getClient()}function Y(){return!!G()}function X(){return E.getCurrentHub().getScope()}function Q(z){const W=G(),Z=E.getIsolationScope(),se=X(),{release:Ie,environment:ve=g.DEFAULT_ENVIRONMENT}=W&&W.getOptions()||{},{userAgent:ye}=a.GLOBAL_OBJ.navigator||{},Re=m.makeSession({release:Ie,environment:ve,user:se.getUser()||Z.getUser(),...ye&&{userAgent:ye},...z}),ke=Z.getSession();return ke&&ke.status==="ok"&&m.updateSession(ke,{status:"exited"}),x(),Z.setSession(Re),se.setSession(Re),Re}function x(){const z=E.getIsolationScope(),W=X(),Z=W.getSession()||z.getSession();Z&&m.closeSession(Z),K(),z.setSession(),W.setSession()}function K(){const z=E.getIsolationScope(),W=X(),Z=G(),se=W.getSession()||z.getSession();se&&Z&&Z.captureSession&&Z.captureSession(se)}function re(z=!1){if(z){x();return}K()}t.addBreadcrumb=o,t.captureCheckIn=T,t.captureEvent=y,t.captureException=f,t.captureMessage=p,t.captureSession=re,t.close=B,t.configureScope=_,t.endSession=x,t.flush=w,t.getClient=G,t.getCurrentScope=X,t.isInitialized=Y,t.lastEventId=F,t.setContext=i,t.setExtra=l,t.setExtras=c,t.setTag=M,t.setTags=C,t.setUser=b,t.startSession=Q,t.startTransaction=I,t.withActiveSpan=d,t.withIsolationScope=h,t.withMonitor=A,t.withScope=R},515608:(L,t,s)=>
2{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(59090),v=s(757437),E=s(848343),m=s(779615),S=s(474815),f=parseFloat(S.SDK_VERSION),p=100;class y{constructor(T,A,w,B=f){this._version=B;let F;A?F=A:(F=new E.Scope,F.setClient(T));let G;w?G=w:(G=new E.Scope,G.setClient(T)),this._stack=[{scope:F}],T&&this.bindClient(T),this._isolationScope=G}isOlderThan(T){return this._version<T}bindClient(T){const A=this.getStackTop();A.client=T,A.scope.setClient(T),T&&T.setupIntegrations&&T.setupIntegrations()}pushScope(){const T=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:T}),T}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(T){const A=this.pushScope();let w;try{w=T(A)}catch(B){throw this.popScope(),B}return a.isThenable(w)?w.then(B=>(this.popScope(),B),B=>{throw this.popScope(),B}):(this.popScope(),w)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(T,A){const w=this._lastEventId=A&&A.event_id?A.event_id:a.uuid4(),B=new Error("Sentry syntheticException");return this.getScope().captureException(T,{originalException:T,syntheticException:B,...A,event_id:w}),w}captureMessage(T,A,w){const B=this._lastEventId=w&&w.event_id?w.event_id:a.uuid4(),F=new Error(T);return this.getScope().captureMessage(T,A,{originalException:T,syntheticException:F,...w,event_id:B}),B}captureEvent(T,A){const w=A&&A.event_id?A.event_id:a.uuid4();return T.type||(this._lastEventId=w),this.getScope().captureEvent(T,{...A,event_id:w}),w}lastEventId(){return this._lastEventId}addBreadcrumb(T,A){const{scope:w,client:B}=this.getStackTop();if(!B)return;const{beforeBreadcrumb:F=null,maxBreadcrumbs:G=p}=B.getOptions&&B.getOptions()||{};if(G<=0)return;const X={timestamp:a.dateTimestampInSeconds(),...T},Q=F?a.consoleSandbox(()=>F(X,A)):X;Q!==null&&(B.emit&&B.emit("beforeAddBreadcrumb",Q,A),w.addBreadcrumb(Q,G))}setUser(T){this.getScope().setUser(T),this.getIsolationScope().setUser(T)}setTags(T){this.getScope().setTags(T),this.getIsolationScope().setTags(T)}setExtras(T){this.getScope().setExtras(T),this.getIsolationScope().setExtras(T)}setTag(T,A){this.getScope().setTag(T,A),this.getIsolationScope().setTag(T,A)}setExtra(T,A){this.getScope().setExtra(T,A),this.getIsolationScope().setExtra(T,A)}setContext(T,A){this.getScope().setContext(T,A),this.getIsolationScope().setContext(T,A)}configureScope(T){const{scope:A,client:w}=this.getStackTop();w&&T(A)}run(T){const A=o(this);try{T(this)}finally{o(A)}}getIntegration(T){const A=this.getClient();if(!A)return null;try{return A.getIntegration(T)}catch{return v.DEBUG_BUILD&&a.logger.warn(`Cannot retrieve integration ${T.id} from the current Hub`),null}}startTransaction(T,A){const w=this._callExtensionMethod("startTransaction",T,A);return v.DEBUG_BUILD&&!w&&(this.getClient()?a.logger.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
3Sentry.addTracingExtensions();
4Sentry.init({...});
5`):a.logger.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),w}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(T=!1){if(T)return this.endSession();this._sendSessionUpdate()}endSession(){const A=this.getStackTop().scope,w=A.getSession();w&&m.closeSession(w),this._sendSessionUpdate(),A.setSession()}startSession(T){const{scope:A,client:w}=this.getStackTop(),{release:B,environment:F=g.DEFAULT_ENVIRONMENT}=w&&w.getOptions()||{},{userAgent:G}=a.GLOBAL_OBJ.navigator||{},Y=m.makeSession({release:B,environment:F,user:A.getUser(),...G&&{userAgent:G},...T}),X=A.getSession&&A.getSession();return X&&X.status==="ok"&&m.updateSession(X,{status:"exited"}),this.endSession(),A.setSession(Y),Y}shouldSendDefaultPii(){const T=this.getClient(),A=T&&T.getOptions();return!!(A&&A.sendDefaultPii)}_sendSessionUpdate(){const{scope:T,client:A}=this.getStackTop(),w=T.getSession();w&&A&&A.captureSession&&A.captureSession(w)}_callExtensionMethod(T,...A){const B=_().__SENTRY__;if(B&&B.extensions&&typeof B.extensions[T]=="function")return B.extensions[T].apply(this,A);v.DEBUG_BUILD&&a.logger.warn(`Extension method ${T} couldn't be found, doing nothing.`)}}function _(){return a.GLOBAL_OBJ.__SENTRY__=a.GLOBAL_OBJ.__SENTRY__||{extensions:{},hub:void 0},a.GLOBAL_OBJ}function o(I){const T=_(),A=h(T);return d(T,I),A}function i(){const I=_();if(I.__SENTRY__&&I.__SENTRY__.acs){const T=I.__SENTRY__.acs.getCurrentHub();if(T)return T}return l(I)}function c(){return i().getIsolationScope()}function l(I=_()){return(!R(I)||h(I).isOlderThan(f))&&d(I,new y),h(I)}function C(I,T=l()){if(!R(I)||h(I).isOlderThan(f)){const A=T.getClient(),w=T.getScope(),B=T.getIsolationScope();d(I,new y(A,w.clone(),B.clone()))}}function M(I){const T=_();T.__SENTRY__=T.__SENTRY__||{},T.__SENTRY__.acs=I}function b(I,T={}){const A=_();return A.__SENTRY__&&A.__SENTRY__.acs?A.__SENTRY__.acs.runWithAsyncContext(I,T):I()}function R(I){return!!(I&&I.__SENTRY__&&I.__SENTRY__.hub)}function h(I){return a.getGlobalSingleton("hub",()=>new y,I)}function d(I,T){if(!I)return!1;const A=I.__SENTRY__=I.__SENTRY__||{};return A.hub=T,!0}t.API_VERSION=f,t.Hub=y,t.ensureHubOnCarrier=C,t.getCurrentHub=i,t.getHubFromCarrier=h,t.getIsolationScope=c,t.getMainCarrier=_,t.makeMain=o,t.runWithAsyncContext=b,t.setAsyncContextStrategy=M,t.setHubOnCarrier=d},389615:(L,t,s)=>
5{Object.defineProperty(t,"__esModule",{value:!0});const a=s(32471),g=s(153676),v=s(906076),E=s(65686),m=s(77699),S=s(538106),f=s(35935),p=s(423259),y=s(610354),_=s(497229),o=s(618514),i=s(552335),c=s(539096),l=s(515608),C=s(779615),M=s(907298),b=s(848343),R=s(743042),h=s(728555),d=s(616981),I=s(569909),T=s(518439),A=s(498553),w=s(650429),B=s(512755),F=s(474815),G=s(824993),Y=s(100650),X=s(230936),Q=s(381216),x=s(621179),K=s(720778),re=s(720108),z=s(78491),W=s(700366),Z=s(693356),se=s(534069),Ie=s(758220),ve=s(59090),ye=s(986310),Re=s(343482),ke=s(471435),Ue=s(526083),Ge=s(373869),ct=s(335979),It=s(106290),nt=ct;t.addTracingExtensions=a.addTracingExtensions,t.startIdleTransaction=a.startIdleTransaction,t.IdleTransaction=g.IdleTransaction,t.TRACING_DEFAULTS=g.TRACING_DEFAULTS,t.Span=v.Span,t.Transaction=E.Transaction,t.extractTraceparentData=m.extractTraceparentData,t.getActiveTransaction=m.getActiveTransaction,Object.defineProperty(t,"SpanStatus",{enumerable:!0,get:()=>S.SpanStatus}),t.getSpanStatusFromHttpCode=S.getSpanStatusFromHttpCode,t.setHttpStatus=S.setHttpStatus,t.spanStatusfromHttpCode=S.spanStatusfromHttpCode,t.continueTrace=f.continueTrace,t.getActiveSpan=f.getActiveSpan,t.startActiveSpan=f.startActiveSpan,t.startInactiveSpan=f.startInactiveSpan,t.startSpan=f.startSpan,t.startSpanManual=f.startSpanManual,t.trace=f.trace,t.getDynamicSamplingContextFromClient=p.getDynamicSamplingContextFromClient,t.getDynamicSamplingContextFromSpan=p.getDynamicSamplingContextFromSpan,t.setMeasurement=y.setMeasurement,t.isValidSampleRate=_.isValidSampleRate,t.SEMANTIC_ATTRIBUTE_PROFILE_ID=o.SEMANTIC_ATTRIBUTE_PROFILE_ID,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=o.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=o.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.createEventEnvelope=i.createEventEnvelope,t.createSessionEnvelope=i.createSessionEnvelope,t.addBreadcrumb=c.addBreadcrumb,t.captureCheckIn=c.captureCheckIn,t.captureEvent=c.captureEvent,t.captureException=c.captureException,t.captureMessage=c.captureMessage,t.captureSession=c.captureSession,t.close=c.close,t.configureScope=c.configureScope,t.endSession=c.endSession,t.flush=c.flush,t.getClient=c.getClient,t.getCurrentScope=c.getCurrentScope,t.isInitialized=c.isInitialized,t.lastEventId=c.lastEventId,t.setContext=c.setContext,t.setExtra=c.setExtra,t.setExtras=c.setExtras,t.setTag=c.setTag,t.setTags=c.setTags,t.setUser=c.setUser,t.startSession=c.startSession,t.startTransaction=c.startTransaction,t.withActiveSpan=c.withActiveSpan,t.withIsolationScope=c.withIsolationScope,t.withMonitor=c.withMonitor,t.withScope=c.withScope,t.Hub=l.Hub,t.ensureHubOnCarrier=l.ensureHubOnCarrier,t.getCurrentHub=l.getCurrentHub,t.getHubFromCarrier=l.getHubFromCarrier,t.getIsolationScope=l.getIsolationScope,t.getMainCarrier=l.getMainCarrier,t.makeMain=l.makeMain,t.runWithAsyncContext=l.runWithAsyncContext,t.setAsyncContextStrategy=l.setAsyncContextStrategy,t.setHubOnCarrier=l.setHubOnCarrier,t.closeSession=C.closeSession,t.makeSession=C.makeSession,t.updateSession=C.updateSession,t.SessionFlusher=M.SessionFlusher,t.Scope=b.Scope,t.getGlobalScope=b.getGlobalScope,t.setGlobalScope=b.setGlobalScope,t.addGlobalEventProcessor=R.addGlobalEventProcessor,t.notifyEventProcessors=R.notifyEventProcessors,t.getEnvelopeEndpointWithUrlEncodedAuth=h.getEnvelopeEndpointWithUrlEncodedAuth,t.getReportDialogEndpoint=h.getReportDialogEndpoint,t.BaseClient=d.BaseClient,t.addEventProcessor=d.addEventProcessor,t.ServerRuntimeClient=I.ServerRuntimeClient,t.initAndBind=T.initAndBind,t.setCurrentClient=T.setCurrentClient,t.createTransport=A.createTransport,t.makeOfflineTransport=w.makeOfflineTransport,t.makeMultiplexedTransport=B.makeMultiplexedTransport,t.SDK_VERSION=F.SDK_VERSION,t.addIntegration=G.addIntegration,t.convertIntegrationFnToClass=G.convertIntegrationFnToClass,t.defineIntegration=G.defineIntegration,t.getIntegrationsToSetup=G.getIntegrationsToSetup,t.applyScopeDataToEvent=Y.applyScopeDataToEvent,t.mergeScopeData=Y.mergeScopeData,t.prepareEvent=X.prepareEvent,t.createCheckInEnvelope=Q.createCheckInEnvelope,t.createSpanEnvelope=x.createSpanEnvelope,t.hasTracingEnabled=K.hasTracingEnabled,t.isSentryRequestUrl=re.isSentryRequestUrl,t.handleCallbackErrors=z.handleCallbackErrors,t.parameterize=W.parameterize,t.spanIsSampled=Z.spanIsSampled,t.spanToJSON=Z.spanToJSON,t.spanToTraceContext=Z.spanToTraceContext,t.spanToTraceHeader=Z.spanToTraceHeader,t.getRootSpan=se.getRootSpan,t.applySdkMetadata=Ie.applySdkMetadata,t.DEFAULT_ENVIRONMENT=ve.DEFAULT_ENVIRONMENT,t.ModuleMetadata=ye.ModuleMetadata,t.moduleMetadataIntegration=ye.moduleMetadataIntegration,t.RequestData=Re.RequestData,t.requestDataIntegration=Re.requestDataIntegration,t.InboundFilters=ke.InboundFilters,t.inboundFiltersIntegration=ke.inboundFiltersIntegration,t.FunctionToString=Ue.FunctionToString,t.functionToStringIntegration=Ue.functionToStringIntegration,t.LinkedErrors=Ge.LinkedErrors,t.linkedErrorsIntegration=Ge.linkedErrorsIntegration,t.metrics=It.metrics,t.Integrations=nt},824993:(L,t,s)=>
5{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(743042),E=s(539096),m=s(515608),S=[];function f(M){const b={};return M.forEach(R=>{const{name:h}=R,d=b[h];d&&!d.isDefaultInstance&&R.isDefaultInstance||(b[h]=R)}),Object.keys(b).map(R=>b[R])}function p(M){const b=M.defaultIntegrations||[],R=M.integrations;b.forEach(T=>{T.isDefaultInstance=!0});let h;Array.isArray(R)?h=[...b,...R]:typeof R=="function"?h=a.arrayify(R(b)):h=b;const d=f(h),I=c(d,T=>T.name==="Debug");if(I!==-1){const[T]=d.splice(I,1);d.push(T)}return d}function y(M,b){const R={};return b.forEach(h=>{h&&o(M,h,R)}),R}function _(M,b){for(const R of b)R&&R.afterAllSetup&&R.afterAllSetup(M)}function o(M,b,R){if(R[b.name]){g.DEBUG_BUILD&&a.logger.log(`Integration skipped because it was already installed: ${b.name}`);return}if(R[b.name]=b,S.indexOf(b.name)===-1&&(b.setupOnce(v.addGlobalEventProcessor,m.getCurrentHub),S.push(b.name)),b.setup&&typeof b.setup=="function"&&b.setup(M),M.on&&typeof b.preprocessEvent=="function"){const h=b.preprocessEvent.bind(b);M.on("preprocessEvent",(d,I)=>h(d,I,M))}if(M.addEventProcessor&&typeof b.processEvent=="function"){const h=b.processEvent.bind(b),d=Object.assign((I,T)=>h(I,T,M),{id:b.name});M.addEventProcessor(d)}g.DEBUG_BUILD&&a.logger.log(`Integration installed: ${b.name}`)}function i(M){const b=E.getClient();if(!b||!b.addIntegration){g.DEBUG_BUILD&&a.logger.warn(`Cannot add integration "${M.name}" because no SDK Client is available.`);return}b.addIntegration(M)}function c(M,b){for(let R=0;R<M.length;R++)if(b(M[R])===!0)return R;return-1}function l(M,b){return Object.assign(function(...h){return b(...h)},{id:M})}function C(M){return M}t.addIntegration=i,t.afterSetupIntegrations=_,t.convertIntegrationFnToClass=l,t.defineIntegration=C,t.getIntegrationsToSetup=p,t.installedIntegrations=S,t.setupIntegration=o,t.setupIntegrations=y},526083:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(539096),v=s(824993);let E;const m="FunctionToString",S=new WeakMap,f=()=>({name:m,setupOnce(){E=Function.prototype.toString;try{Function.prototype.toString=function(..._){const o=a.getOriginalFunction(this),i=S.has(g.getClient())&&o!==void 0?o:this;return E.apply(i,_)}}catch{}},setup(_){S.set(_,!0)}}),p=v.defineIntegration(f),y=v.convertIntegrationFnToClass(m,p);t.FunctionToString=y,t.functionToStringIntegration=p},471435:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(824993),E=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],m=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],S="InboundFilters",f=(d={})=>({name:S,setupOnce(){},processEvent(I,T,A){const w=A.getOptions(),B=_(d,w);return o(I,B)?null:I}}),p=v.defineIntegration(f),y=v.convertIntegrationFnToClass(S,p);function _(d={},I={}){return{allowUrls:[...d.allowUrls||[],...I.allowUrls||[]],denyUrls:[...d.denyUrls||[],...I.denyUrls||[]],ignoreErrors:[...d.ignoreErrors||[],...I.ignoreErrors||[],...d.disableErrorDefaults?[]:E],ignoreTransactions:[...d.ignoreTransactions||[],...I.ignoreTransactions||[],...d.disableTransactionDefaults?[]:m],ignoreInternal:d.ignoreInternal!==void 0?d.ignoreInternal:!0}}function o(d,I){return I.ignoreInternal&&b(d)?(g.DEBUG_BUILD&&a.logger.warn(`Event dropped due to being internal Sentry Error.
6Event: ${a.getEventDescription(d)}`),!0):i(d,I.ignoreErrors)?(g.DEBUG_BUILD&&a.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
7Event: ${a.getEventDescription(d)}`),!0):c(d,I.ignoreTransactions)?(g.DEBUG_BUILD&&a.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
8Event: ${a.getEventDescription(d)}`),!0):l(d,I.denyUrls)?(g.DEBUG_BUILD&&a.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.
9Event: ${a.getEventDescription(d)}.
10Url: ${h(d)}`),!0):C(d,I.allowUrls)?!1:(g.DEBUG_BUILD&&a.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.
11Event: ${a.getEventDescription(d)}.
12Url: ${h(d)}`),!0)}function i(d,I){return d.type||!I||!I.length?!1:M(d).some(T=>a.stringMatchesSomePattern(T,I))}function c(d,I){if(d.type!=="transaction"||!I||!I.length)return!1;const T=d.transaction;return T?a.stringMatchesSomePattern(T,I):!1}function l(d,I){if(!I||!I.length)return!1;const T=h(d);return T?a.stringMatchesSomePattern(T,I):!1}function C(d,I){if(!I||!I.length)return!0;const T=h(d);return T?a.stringMatchesSomePattern(T,I):!0}function M(d){const I=[];d.message&&I.push(d.message);let T;
12try{T=d.exception.values[d.exception.values.length-1]}catch{}return T&&T.value&&(I.push(T.value),T.type&&I.push(`${T.type}: ${T.value}`)),g.DEBUG_BUILD&&I.length===0&&a.logger.error(`Could not extract message for event ${a.getEventDescription(d)}`),I}function b(d){try{return d.exception.values[0].type==="SentryError"}catch{}return!1}function R(d=[]){for(let I=d.length-1;I>=0;I--){const T=d[I];if(T&&T.filename!=="<anonymous>"&&T.filename!=="[native code]")return T.filename||null}return null}function h(d){try{let I;try{I=d.exception.values[0].stacktrace.frames}catch{}return I?R(I):null}catch{return g.DEBUG_BUILD&&a.logger.error(`Cannot extract url for event ${a.getEventDescription(d)}`),null}}t.InboundFilters=y,t.inboundFiltersIntegration=p},335979:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(526083),g=s(471435),v=s(373869);t.FunctionToString=a.FunctionToString,t.InboundFilters=g.InboundFilters,t.LinkedErrors=v.LinkedErrors},373869:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(824993),v="cause",E=5,m="LinkedErrors",S=(y={})=>{const _=y.limit||E,o=y.key||v;return{name:m,setupOnce(){},preprocessEvent(i,c,l){const C=l.getOptions();a.applyAggregateErrorsToEvent(a.exceptionFromError,C.stackParser,C.maxValueLength,o,_,i,c)}}},f=g.defineIntegration(S),p=g.convertIntegrationFnToClass(m,f);t.LinkedErrors=p,t.linkedErrorsIntegration=f},986310:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(824993),v=s(759698),E="ModuleMetadata",m=()=>({name:E,setupOnce(){},setup(p){typeof p.on=="function"&&p.on("beforeEnvelope",y=>{a.forEachEnvelopeItem(y,(_,o)=>{if(o==="event"){const i=Array.isArray(_)?_[1]:void 0;i&&(v.stripMetadataFromStackFrames(i),_[1]=i)}})})},processEvent(p,y,_){const o=_.getOptions().stackParser;return v.addMetadataToStackFrames(o,p),p}}),S=g.defineIntegration(m),f=g.convertIntegrationFnToClass(E,S);t.ModuleMetadata=f,t.moduleMetadataIntegration=S},343482:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(824993),v=s(693356),E={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},m="RequestData",S=(o={})=>{const i=a.addRequestDataToEvent,c={...E,...o,include:{method:!0,...E.include,...o.include,user:o.include&&typeof o.include.user=="boolean"?o.include.user:{...E.include.user,...(o.include||{}).user}}};return{name:m,setupOnce(){},processEvent(l,C,M){const{transactionNamingScheme:b}=c,{sdkProcessingMetadata:R={}}=l,h=R.request;if(!h)return l;const d=R.requestDataOptionsFromExpressHandler||R.requestDataOptionsFromGCPWrapper||y(c),I=i(l,h,d);if(l.type==="transaction"||b==="handler")return I;const A=h._sentryTransaction;if(A){const w=v.spanToJSON(A).description||"",B=_(M)==="sentry.javascript.nextjs"?w.startsWith("/api"):b!=="path",[F]=a.extractPathForTransaction(h,{path:!0,method:B,customRoute:w});I.transaction=F}return I}}},f=g.defineIntegration(S),p=g.convertIntegrationFnToClass(m,f);function y(o){const{transactionNamingScheme:i,include:{ip:c,user:l,...C}}=o,M=[];for(const[R,h]of Object.entries(C))h&&M.push(R);let b;if(l===void 0)b=!0;else if(typeof l=="boolean")b=l;else{const R=[];for(const[h,d]of Object.entries(l))d&&R.push(h);b=R}return{include:{ip:c,user:b,request:M.length!==0?M:void 0,transaction:i}}}function _(o){try{return o.getOptions()._metadata.sdk.name}catch{return}}t.RequestData=p,t.requestDataIntegration=f},759698:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=new Map,v=new Set;function E(p){if(a.GLOBAL_OBJ._sentryModuleMetadata)for(const y of Object.keys(a.GLOBAL_OBJ._sentryModuleMetadata)){const _=a.GLOBAL_OBJ._sentryModuleMetadata[y];if(v.has(y))continue;v.add(y);const o=p(y);for(const i of o.reverse())if(i.filename){g.set(i.filename,_);break}}}function m(p,y){return E(p),g.get(y)}function S(p,y){try{y.exception.values.forEach(_=>{if(_.stacktrace)for(const o of _.stacktrace.frames||[]){if(!o.filename)continue;const i=m(p,o.filename);i&&(o.module_metadata=i)}})}catch{}}
12function f(p){try{p.exception.values.forEach(y=>{if(y.stacktrace)for(const _ of y.stacktrace.frames||[])delete _.module_metadata})}catch{}}t.addMetadataToStackFrames=S,t.getMetadataForUrl=m,t.stripMetadataFromStackFrames=f},928760:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(89256),v=s(721214),E=s(588308),m=s(9484);class S{constructor(p){this._client=p,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval(()=>this._flush(),g.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*g.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(p,y,_,o="none",i={},c=a.timestampInSeconds()){const l=Math.floor(c),C=m.sanitizeMetricKey(y),M=m.sanitizeTags(i),b=m.sanitizeUnit(o),R=m.getBucketKey(p,C,b,M);let h=this._buckets.get(R);const d=h&&p===g.SET_METRIC_TYPE?h.metric.weight:0;h?(h.metric.add(_),h.timestamp<l&&(h.timestamp=l)):(h={metric:new v.METRIC_MAP[p](_),timestamp:l,metricType:p,name:C,unit:b,tags:M},this._buckets.set(R,h));const I=typeof _=="string"?h.metric.weight-d:_;E.updateMetricSummaryOnActiveSpan(p,C,I,b,i,R),this._bucketsTotalWeight+=h.metric.weight,this._bucketsTotalWeight>=g.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush){this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),this._buckets.clear();return}const p=Math.floor(a.timestampInSeconds())-g.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,y=new Map;for(const[_,o]of this._buckets)o.timestamp<=p&&(y.set(_,o),this._bucketsTotalWeight-=o.metric.weight);for(const[_]of y)this._buckets.delete(_);this._captureMetrics(y)}_captureMetrics(p){if(p.size>0&&this._client.captureAggregateMetrics){const y=Array.from(p).map(([,_])=>_);this._client.captureAggregateMetrics(y)}}}t.MetricsAggregator=S},149671:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(89256),v=s(721214),E=s(588308),m=s(9484);class S{constructor(p){this._client=p,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),g.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(p,y,_,o="none",i={},c=a.timestampInSeconds()){const l=Math.floor(c),C=m.sanitizeMetricKey(y),M=m.sanitizeTags(i),b=m.sanitizeUnit(o),R=m.getBucketKey(p,C,b,M);let h=this._buckets.get(R);const d=h&&p===g.SET_METRIC_TYPE?h.metric.weight:0;h?(h.metric.add(_),h.timestamp<l&&(h.timestamp=l)):(h={metric:new v.METRIC_MAP[p](_),timestamp:l,metricType:p,name:C,unit:b,tags:M},this._buckets.set(R,h));const I=typeof _=="string"?h.metric.weight-d:_;E.updateMetricSummaryOnActiveSpan(p,C,I,b,i,R)}flush(){if(this._buckets.size!==0){if(this._client.captureAggregateMetrics){const p=Array.from(this._buckets).map(([,y])=>y);this._client.captureAggregateMetrics(p)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}}t.BrowserMetricsAggregator=S},89256:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s="c",a="g",g="s",v="d",E=5e3,m=1e4,S=1e4;t.COUNTER_METRIC_TYPE=s,t.DEFAULT_BROWSER_FLUSH_INTERVAL=E,t.DEFAULT_FLUSH_INTERVAL=m,t.DISTRIBUTION_METRIC_TYPE=v,t.GAUGE_METRIC_TYPE=a,t.MAX_WEIGHT=S,t.SET_METRIC_TYPE=g},862925:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(9484);function v(m,S,f,p){const y={sent_at:new Date().toISOString()};f&&f.sdk&&(y.sdk={name:f.sdk.name,version:f.sdk.version}),p&&S&&(y.dsn=a.dsnToString(S));const _=E(m);return a.createEnvelope(y,[_])}function E(m){const S=g.serializeMetricBuckets(m);return[{type:"statsd",length:S.length},S]}t.createMetricEnvelope=v},106290:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(539096),E=s(693356),m=s(89256),S=s(765483);function f(c,l,C,M={}){const b=v.getClient(),R=v.getCurrentScope();if(b){if(!b.metricsAggregator){g.DEBUG_BUILD&&a.logger.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs");return}const{unit:h,tags:d,timestamp:I}=M,{release:T,environment:A}=b.getOptions(),w=R.getTransaction(),B={};T&&(B.release=T),A&&(B.environment=A),w&&(B.transaction=E.spanToJSON(w).description||""),g.DEBUG_BUILD&&a.logger.log(`Adding value of ${C} to ${c} metric ${l}`),b.metricsAggregator.add(c,l,C,h,{...B,...d},I)}}function p(c,l=1,C){f(m.COUNTER_METRIC_TYPE,c,l,C)}function y(c,l,C){f(m.DISTRIBUTION_METRIC_TYPE,c,l,C)}function _(c,l,C){f(m.SET_METRIC_TYPE,c,l,C)}function o(c,l,C){f(m.GAUGE_METRIC_TYPE,c,l,C)}const i={increment:p,distribution:y,set:_,gauge:o,MetricsAggregator:S.MetricsAggregator,metricsAggregatorIntegration:S.metricsAggregatorIntegration};t.distribution=y,t.gauge=o,t.increment=p,t.metrics=i,t.set=_},721214:(L,t,s)=>
12{Object.defineProperty(t,"__esModule",{value:!0});const a=s(89256),g=s(9484);class v{constructor(y){this._value=y}get weight(){return 1}add(y){this._value+=y}toString(){return`${this._value}`}}class E{constructor(y){this._last=y,this._min=y,this._max=y,this._sum=y,this._count=1}get weight(){return 5}add(y){this._last=y,y<this._min&&(this._min=y),y>this._max&&(this._max=y),this._sum+=y,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class m{constructor(y){this._value=[y]}get weight(){return this._value.length}add(y){this._value.push(y)}toString(){return this._value.join(":")}}class S{constructor(y){this.first=y,this._value=new Set([y])}get weight(){return this._value.size}add(y){this._value.add(y)}toString(){return Array.from(this._value).map(y=>typeof y=="string"?g.simpleHash(y):y).join(":")}}const f={[a.COUNTER_METRIC_TYPE]:v,[a.GAUGE_METRIC_TYPE]:E,[a.DISTRIBUTION_METRIC_TYPE]:m,[a.SET_METRIC_TYPE]:S};t.CounterMetric=v,t.DistributionMetric=m,t.GaugeMetric=E,t.METRIC_MAP=f,t.SetMetric=S},765483:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(824993),g=s(149671),v="MetricsAggregator",E=()=>({name:v,setupOnce(){},setup(f){f.metricsAggregator=new g.BrowserMetricsAggregator(f)}}),m=a.defineIntegration(E),S=a.convertIntegrationFnToClass(v,m);t.MetricsAggregator=S,t.metricsAggregatorIntegration=m},588308:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375);s(757437),s(566519),s(538106);const g=s(35935);let v;function E(f){return v?v.get(f):void 0}function m(f){const p=E(f);if(!p)return;const y={};for(const[,[_,o]]of p)y[_]||(y[_]=[]),y[_].push(a.dropUndefinedKeys(o));return y}function S(f,p,y,_,o,i){const c=g.getActiveSpan();if(c){const l=E(c)||new Map,C=`${f}:${p}@${_}`,M=l.get(i);if(M){const[,b]=M;l.set(i,[C,{min:Math.min(b.min,y),max:Math.max(b.max,y),count:b.count+=1,sum:b.sum+=y,tags:b.tags}])}else l.set(i,[C,{min:y,max:y,count:1,sum:y,tags:o}]);v||(v=new WeakMap),v.set(c,l)}}t.getMetricSummaryJsonForSpan=m,t.updateMetricSummaryOnActiveSpan=S},9484:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375);function g(i,c,l,C){const M=Object.entries(a.dropUndefinedKeys(C)).sort((b,R)=>b[0].localeCompare(R[0]));return`${i}${c}${l}${M}`}function v(i){let c=0;for(let l=0;l<i.length;l++){const C=i.charCodeAt(l);c=(c<<5)-c+C,c&=c}return c>>>0}function E(i){let c="";for(const l of i){const C=Object.entries(l.tags),M=C.length>0?`|#${C.map(([b,R])=>`${b}:${R}`).join(",")}`:"";c+=`${l.name}@${l.unit}:${l.metric}|${l.metricType}${M}|T${l.timestamp}
13`}return c}function m(i){return i.replace(/[^\w]+/gi,"_")}function S(i){return i.replace(/[^\w\-.]+/gi,"_")}function f(i){return i.replace(/[^\w\-./]+/gi,"")}const p=[[`
14`,"\\n"],["\r","\\r"],["	","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function y(i){for(const[c,l]of p)if(i===c)return l;return i}function _(i){return[...i].reduce((c,l)=>c+y(l),"")}function o(i){const c={};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const C=f(l);c[C]=_(String(i[l]))}return c}t.getBucketKey=g,t.sanitizeMetricKey=S,t.sanitizeTags=o,t.sanitizeUnit=m,t.serializeMetricBuckets=E,t.simpleHash=v},848343:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(743042),v=s(779615),E=s(100650),m=100;let S;class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=_()}static clone(i){return i?i.clone():new f}clone(){const i=new f;return i._breadcrumbs=[...this._breadcrumbs],i._tags={...this._tags},i._extra={...this._extra},i._contexts={...this._contexts},i._user=this._user,i._level=this._level,i._span=this._span,i._session=this._session,i._transactionName=this._transactionName,i._fingerprint=this._fingerprint,i._eventProcessors=[...this._eventProcessors],i._requestSession=this._requestSession,i._attachments=[...this._attachments],i._sdkProcessingMetadata={...this._sdkProcessingMetadata},i._propagationContext={...this._propagationContext},i._client=this._client,i}setClient(i){this._client=i}getClient(){return this._client}addScopeListener(i){this._scopeListeners.push(i)}addEventProcessor(i){return this._eventProcessors.push(i),this}setUser(i){return this._user=i||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&v.updateSession(this._session,{user:i}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(i){return this._requestSession=i,this}setTags(i){return this._tags={...this._tags,...i},this._notifyScopeListeners(),this}setTag(i,c){return this._tags={...this._tags,[i]:c},this._notifyScopeListeners(),this}setExtras(i){return this._extra={...this._extra,...i},this._notifyScopeListeners(),this}setExtra(i,c){return this._extra={...this._extra,[i]:c},this._notifyScopeListeners(),this}setFingerprint(i){return this._fingerprint=i,this._notifyScopeListeners(),this}setLevel(i){return this._level=i,this._notifyScopeListeners(),this}setTransactionName(i){return this._transactionName=i,this._notifyScopeListeners(),this}setContext(i,c){return c===null?delete this._contexts[i]:this._contexts[i]=c,this._notifyScopeListeners(),this}setSpan(i){return this._span=i,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const i=this._span;return i&&i.transaction}setSession(i){return i?this._session=i:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(i){if(!i)return this;const c=typeof i=="function"?i(this):i;if(c instanceof f){const l=c.getScopeData();this._tags={...this._tags,...l.tags},this._extra={...this._extra,...l.extra},this._contexts={...this._contexts,...l.contexts},l.user&&Object.keys(l.user).length&&(this._user=l.user),l.level&&(this._level=l.level),l.fingerprint.length&&(this._fingerprint=l.fingerprint),c.getRequestSession()&&(this._requestSession=c.getRequestSession()),l.propagationContext&&(this._propagationContext=l.propagationContext)}else if(a.isPlainObject(c)){const l=i;this._tags={...this._tags,...l.tags},this._extra={...this._extra,...l.extra},this._contexts={...this._contexts,...l.contexts},l.user&&(this._user=l.user),l.level&&(this._level=l.level),l.fingerprint&&(this._fingerprint=l.fingerprint),l.requestSession&&(this._requestSession=l.requestSession),l.propagationContext&&(this._propagationContext=l.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=_(),this}addBreadcrumb(i,c){const l=typeof c=="number"?c:m;if(l<=0)return this;const C={timestamp:a.dateTimestampInSeconds(),...i},M=this._breadcrumbs;return M.push(C),this._breadcrumbs=M.length>l?M.slice(-l):M,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(i){return this._attachments.push(i),this}
14getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:i,_attachments:c,_contexts:l,_tags:C,_extra:M,_user:b,_level:R,_fingerprint:h,_eventProcessors:d,_propagationContext:I,_sdkProcessingMetadata:T,_transactionName:A,_span:w}=this;return{breadcrumbs:i,attachments:c,contexts:l,tags:C,extra:M,user:b,level:R,fingerprint:h||[],eventProcessors:d,propagationContext:I,sdkProcessingMetadata:T,transactionName:A,span:w}}applyToEvent(i,c={},l=[]){E.applyScopeDataToEvent(i,this.getScopeData());const C=[...l,...g.getGlobalEventProcessors(),...this._eventProcessors];return g.notifyEventProcessors(C,i,c)}setSDKProcessingMetadata(i){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...i},this}setPropagationContext(i){return this._propagationContext=i,this}getPropagationContext(){return this._propagationContext}captureException(i,c){const l=c&&c.event_id?c.event_id:a.uuid4();if(!this._client)return a.logger.warn("No client configured on scope - will not capture exception!"),l;const C=new Error("Sentry syntheticException");return this._client.captureException(i,{originalException:i,syntheticException:C,...c,event_id:l},this),l}captureMessage(i,c,l){const C=l&&l.event_id?l.event_id:a.uuid4();if(!this._client)return a.logger.warn("No client configured on scope - will not capture message!"),C;const M=new Error(i);return this._client.captureMessage(i,c,{originalException:i,syntheticException:M,...l,event_id:C},this),C}captureEvent(i,c){const l=c&&c.event_id?c.event_id:a.uuid4();return this._client?(this._client.captureEvent(i,{...c,event_id:l},this),l):(a.logger.warn("No client configured on scope - will not capture event!"),l)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(i=>{i(this)}),this._notifyingListeners=!1)}}function p(){return S||(S=new f),S}function y(o){S=o}function _(){return{traceId:a.uuid4(),spanId:a.uuid4().substring(16)}}t.Scope=f,t.getGlobalScope=p,t.setGlobalScope=y},518439:(L,t,s)=>{var a=s(80247);Object.defineProperty(t,"__esModule",{value:!0});const g=s(289375),v=s(757437),E=s(539096),m=s(515608);function S(y,_){_.debug===!0&&(v.DEBUG_BUILD?g.logger.enable():g.consoleSandbox(()=>{a.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),E.getCurrentScope().update(_.initialScope);const i=new y(_);f(i),p(i)}function f(y){const o=m.getCurrentHub().getStackTop();o.client=y,o.scope.setClient(y)}function p(y){y.init?y.init():y.setupIntegrations&&y.setupIntegrations()}t.initAndBind=S,t.setCurrentClient=f},618514:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s="sentry.source",a="sentry.sample_rate",g="sentry.op",v="sentry.origin",E="profile_id";t.SEMANTIC_ATTRIBUTE_PROFILE_ID=E,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=g,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=v,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=a,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=s},569909:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(616981),v=s(381216),E=s(757437),m=s(539096),S=s(928760),f=s(907298),p=s(32471),y=s(693356),_=s(534069);s(538106);const o=s(423259);class i extends g.BaseClient{constructor(l){p.addTracingExtensions(),super(l),l._experiments&&l._experiments.metricsAggregator&&(this.metricsAggregator=new S.MetricsAggregator(this))}eventFromException(l,C){return a.resolvedSyncPromise(a.eventFromUnknownInput(m.getClient(),this._options.stackParser,l,C))}eventFromMessage(l,C="info",M){return a.resolvedSyncPromise(a.eventFromMessage(this._options.stackParser,l,C,M,this._options.attachStacktrace))}captureException(l,C,M){if(this._options.autoSessionTracking&&this._sessionFlusher&&M){const b=M.getRequestSession();b&&b.status==="ok"&&(b.status="errored")}return super.captureException(l,C,M)}captureEvent(l,C,M){if(this._options.autoSessionTracking&&this._sessionFlusher&&M&&(l.type||"exception")==="exception"&&l.exception&&l.exception.values&&l.exception.values.length>0){const h=M.getRequestSession();h&&h.status==="ok"&&(h.status="errored")}return super.captureEvent(l,C,M)}close(l){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(l)}initSessionFlusher(){const{release:l,environment:C}=this._options;l?this._sessionFlusher=new f.SessionFlusher(this,{release:l,environment:C}):E.DEBUG_BUILD&&a.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(l,C,M){const b="checkInId"in l&&l.checkInId?l.checkInId:a.uuid4();if(!this._isEnabled())return E.DEBUG_BUILD&&a.logger.warn("SDK not enabled, will not capture checkin."),b;const R=this.getOptions(),{release:h,environment:d,tunnel:I}=R,T={check_in_id:b,monitor_slug:l.monitorSlug,status:l.status,release:h,environment:d};"duration"in l&&(T.duration=l.duration),C&&(T.monitor_config={schedule:C.schedule,checkin_margin:C.checkinMargin,max_runtime:C.maxRuntime,timezone:C.timezone});const[A,w]=this._getTraceInfoFromScope(M);w&&(T.contexts={trace:w});
14const B=v.createCheckInEnvelope(T,A,this.getSdkMetadata(),I,this.getDsn());return E.DEBUG_BUILD&&a.logger.info("Sending checkin:",l.monitorSlug,l.status),this._sendEnvelope(B),b}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():E.DEBUG_BUILD&&a.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(l,C,M,b){return this._options.platform&&(l.platform=l.platform||this._options.platform),this._options.runtime&&(l.contexts={...l.contexts,runtime:(l.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(l.server_name=l.server_name||this._options.serverName),super._prepareEvent(l,C,M,b)}_getTraceInfoFromScope(l){if(!l)return[void 0,void 0];const C=l.getSpan();if(C)return[_.getRootSpan(C)?o.getDynamicSamplingContextFromSpan(C):void 0,y.spanToTraceContext(C)];const{traceId:M,spanId:b,parentSpanId:R,dsc:h}=l.getPropagationContext(),d={trace_id:M,span_id:b,parent_span_id:R};return h?[h,d]:[o.getDynamicSamplingContextFromClient(M,this,l),d]}}t.ServerRuntimeClient=i},779615:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375);function g(S){const f=a.timestampInSeconds(),p={sid:a.uuid4(),init:!0,timestamp:f,started:f,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>m(p)};return S&&v(p,S),p}function v(S,f={}){if(f.user&&(!S.ipAddress&&f.user.ip_address&&(S.ipAddress=f.user.ip_address),!S.did&&!f.did&&(S.did=f.user.id||f.user.email||f.user.username)),S.timestamp=f.timestamp||a.timestampInSeconds(),f.abnormal_mechanism&&(S.abnormal_mechanism=f.abnormal_mechanism),f.ignoreDuration&&(S.ignoreDuration=f.ignoreDuration),f.sid&&(S.sid=f.sid.length===32?f.sid:a.uuid4()),f.init!==void 0&&(S.init=f.init),!S.did&&f.did&&(S.did=`${f.did}`),typeof f.started=="number"&&(S.started=f.started),S.ignoreDuration)S.duration=void 0;else if(typeof f.duration=="number")S.duration=f.duration;else{const p=S.timestamp-S.started;S.duration=p>=0?p:0}f.release&&(S.release=f.release),f.environment&&(S.environment=f.environment),!S.ipAddress&&f.ipAddress&&(S.ipAddress=f.ipAddress),!S.userAgent&&f.userAgent&&(S.userAgent=f.userAgent),typeof f.errors=="number"&&(S.errors=f.errors),f.status&&(S.status=f.status)}function E(S,f){let p={};f?p={status:f}:S.status==="ok"&&(p={status:"exited"}),v(S,p)}function m(S){return a.dropUndefinedKeys({sid:`${S.sid}`,init:S.init,started:new Date(S.started*1e3).toISOString(),timestamp:new Date(S.timestamp*1e3).toISOString(),status:S.status,errors:S.errors,did:typeof S.did=="number"||typeof S.did=="string"?`${S.did}`:void 0,duration:S.duration,abnormal_mechanism:S.abnormal_mechanism,attrs:{release:S.release,environment:S.environment,ip_address:S.ipAddress,user_agent:S.userAgent}})}t.closeSession=E,t.makeSession=g,t.updateSession=v},907298:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(539096);class v{constructor(m,S){this._client=m,this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._intervalId=setInterval(()=>this.flush(),this.flushTimeout*1e3),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=S}flush(){const m=this.getSessionAggregates();m.aggregates.length!==0&&(this._pendingAggregates={},this._client.sendSession(m))}getSessionAggregates(){const m=Object.keys(this._pendingAggregates).map(f=>
14this._pendingAggregates[parseInt(f)]),S={attrs:this._sessionAttrs,aggregates:m};return a.dropUndefinedKeys(S)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;const m=g.getCurrentScope(),S=m.getRequestSession();S&&S.status&&(this._incrementSessionStatusCount(S.status,new Date),m.setRequestSession(void 0))}_incrementSessionStatusCount(m,S){const f=new Date(S).setSeconds(0,0);this._pendingAggregates[f]=this._pendingAggregates[f]||{};const p=this._pendingAggregates[f];switch(p.started||(p.started=new Date(f).toISOString()),m){case"errored":return p.errored=(p.errored||0)+1,p.errored;case"ok":return p.exited=(p.exited||0)+1,p.exited;default:return p.crashed=(p.crashed||0)+1,p.crashed}}}t.SessionFlusher=v},621179:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375);function g(E,m){const S={sent_at:new Date().toISOString()};m&&(S.dsn=a.dsnToString(m));const f=E.map(v);return a.createEnvelope(S,f)}function v(E){return[{type:"span"},E]}t.createSpanEnvelope=g},423259:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(59090),v=s(539096),E=s(534069),m=s(693356);function S(p,y,_){const o=y.getOptions(),{publicKey:i}=y.getDsn()||{},{segment:c}=_&&_.getUser()||{},l=a.dropUndefinedKeys({environment:o.environment||g.DEFAULT_ENVIRONMENT,release:o.release,user_segment:c,public_key:i,trace_id:p});return y.emit&&y.emit("createDsc",l),l}function f(p){const y=v.getClient();if(!y)return{};const _=S(m.spanToJSON(p).trace_id||"",y,v.getCurrentScope()),o=E.getRootSpan(p);if(!o)return _;const i=o&&o._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:c,source:l}=o.metadata;c!=null&&(_.sample_rate=`${c}`);const C=m.spanToJSON(o);return l&&l!=="url"&&(_.transaction=C.description),_.sampled=String(m.spanIsSampled(o)),y.emit&&y.emit("createDsc",_),_}t.getDynamicSamplingContextFromClient=S,t.getDynamicSamplingContextFromSpan=f},566519:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(77699);let E=!1;function m(){E||(E=!0,a.addGlobalErrorInstrumentationHandler(S),a.addGlobalUnhandledRejectionInstrumentationHandler(S))}function S(){const f=v.getActiveTransaction();if(f){const p="internal_error";g.DEBUG_BUILD&&a.logger.log(`[Tracing] Transaction: ${p} -> Global error occured`),f.setStatus(p)}}S.tag="sentry_tracingErrorCallback",t.registerErrorInstrumentation=m},32471:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(515608),E=s(693356),m=s(566519),S=s(153676),f=s(497229),p=s(65686);function y(){const l=this.getScope().getSpan();return l?{"sentry-trace":E.spanToTraceHeader(l)}:{}}function _(c,l){const C=this.getClient(),M=C&&C.getOptions()||{},b=M.instrumenter||"sentry",R=c.instrumenter||"sentry";b!==R&&(g.DEBUG_BUILD&&a.logger.error(`A transaction was started with instrumenter=\`${R}\`, but the SDK is configured with the \`${b}\` instrumenter.
15The transaction will not be sampled. Please use the ${b} instrumentation to start transactions.`),c.sampled=!1);let h=new p.Transaction(c,this);return h=f.sampleTransaction(h,M,{name:c.name,parentSampled:c.parentSampled,transactionContext:c,attributes:{...c.data,...c.attributes},...l}),h.isRecording()&&h.initSpanRecorder(M._experiments&&M._experiments.maxSpans),C&&C.emit&&C.emit("startTransaction",h),h}function o(c,l,C,M,b,R,h,d=!1){const I=c.getClient(),T=I&&I.getOptions()||{};let A=new S.IdleTransaction(l,c,C,M,h,b,d);return A=f.sampleTransaction(A,T,{name:l.name,parentSampled:l.parentSampled,transactionContext:l,attributes:{...l.data,...l.attributes},...R}),A.isRecording()&&A.initSpanRecorder(T._experiments&&T._experiments.maxSpans),I&&I.emit&&I.emit("startTransaction",A),A}function i(){const c=v.getMainCarrier();c.__SENTRY__&&(c.__SENTRY__.extensions=c.__SENTRY__.extensions||{},c.__SENTRY__.extensions.startTransaction||(c.__SENTRY__.extensions.startTransaction=_),c.__SENTRY__.extensions.traceHeaders||(c.__SENTRY__.extensions.traceHeaders=y),m.registerErrorInstrumentation())}t.addTracingExtensions=i,t.startIdleTransaction=o},153676:(L,t,s)=>
15{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(693356),E=s(906076),m=s(65686),S={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},f="finishReason",p=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class y extends E.SpanRecorder{constructor(i,c,l,C){super(C),this._pushActivity=i,this._popActivity=c,this.transactionSpanId=l}add(i){if(i.spanContext().spanId!==this.transactionSpanId){const c=i.end;i.end=(...l)=>(this._popActivity(i.spanContext().spanId),c.apply(i,l)),v.spanToJSON(i).timestamp===void 0&&this._pushActivity(i.spanContext().spanId)}super.add(i)}}class _ extends m.Transaction{constructor(i,c,l=S.idleTimeout,C=S.finalTimeout,M=S.heartbeatInterval,b=!1,R=!1){super(i,c),this._idleHub=c,this._idleTimeout=l,this._finalTimeout=C,this._heartbeatInterval=M,this._onScope=b,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=p[4],this._autoFinishAllowed=!R,b&&(g.DEBUG_BUILD&&a.logger.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),c.getScope().setSpan(this)),R||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=p[3],this.end())},this._finalTimeout)}end(i){const c=v.spanTimeInputToSeconds(i);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(f,this._finishReason),this.spanRecorder){g.DEBUG_BUILD&&a.logger.log("[Tracing] finishing IdleTransaction",new Date(c*1e3).toISOString(),this.op);for(const l of this._beforeFinishCallbacks)l(this,c);this.spanRecorder.spans=this.spanRecorder.spans.filter(l=>{if(l.spanContext().spanId===this.spanContext().spanId)return!0;v.spanToJSON(l).timestamp||(l.setStatus("cancelled"),l.end(c),g.DEBUG_BUILD&&a.logger.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(l,void 0,2)));const{start_timestamp:C,timestamp:M}=v.spanToJSON(l),b=C&&C<c,R=(this._finalTimeout+this._idleTimeout)/1e3,h=M&&C&&M-C<R;if(g.DEBUG_BUILD){const d=JSON.stringify(l,void 0,2);b?h||a.logger.log("[Tracing] discarding Span since it finished after Transaction final timeout",d):a.logger.log("[Tracing] discarding Span since it happened after Transaction was finished",d)}return b&&h}),g.DEBUG_BUILD&&a.logger.log("[Tracing] flushing IdleTransaction")}else g.DEBUG_BUILD&&a.logger.log("[Tracing] No active IdleTransaction");if(this._onScope){const l=this._idleHub.getScope();l.getTransaction()===this&&l.setSpan(void 0)}return super.end(i)}registerBeforeFinishCallback(i){this._beforeFinishCallbacks.push(i)}initSpanRecorder(i){if(!this.spanRecorder){const c=C=>{this._finished||this._pushActivity(C)},l=C=>{this._finished||this._popActivity(C)};this.spanRecorder=new y(c,l,this.spanContext().spanId,i),g.DEBUG_BUILD&&a.logger.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(i,{restartOnChildSpanChange:c}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=c===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=p[5],this.end(i)))}setFinishReason(i){this._finishReason=i}sendAutoFinishSignal(){this._autoFinishAllowed||(g.DEBUG_BUILD&&a.logger.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(i){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=p[1],this.end(i))},this._idleTimeout)}_pushActivity(i){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),g.DEBUG_BUILD&&a.logger.log(`[Tracing] pushActivity: ${i}`),this.activities[i]=!0,g.DEBUG_BUILD&&a.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(i){if(this.activities[i]&&(g.DEBUG_BUILD&&a.logger.log(`[Tracing] popActivity ${i}`),delete this.activities[i],g.DEBUG_BUILD&&a.logger.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const c=a.timestampInSeconds();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=p[5],this.end(c)):this._restartIdleTimeout(c+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const i=Object.keys(this.activities).join("");i===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=i,this._heartbeatCounter>=3?this._autoFinishAllowed&&(g.DEBUG_BUILD&&a.logger.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=p[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){g.DEBUG_BUILD&&a.logger.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}t.IdleTransaction=_,t.IdleTransactionSpanRecorder=y,t.TRACING_DEFAULTS=S},610354:(L,t,s)=>
15{Object.defineProperty(t,"__esModule",{value:!0});const a=s(77699);function g(v,E,m){const S=a.getActiveTransaction();S&&S.setMeasurement(v,E,m)}t.setMeasurement=g},497229:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(618514),E=s(720778),m=s(693356);function S(p,y,_){if(!E.hasTracingEnabled(y))return p.sampled=!1,p;if(p.sampled!==void 0)return p.setAttribute(v.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(p.sampled)),p;let o;return typeof y.tracesSampler=="function"?(o=y.tracesSampler(_),p.setAttribute(v.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(o))):_.parentSampled!==void 0?o=_.parentSampled:typeof y.tracesSampleRate<"u"?(o=y.tracesSampleRate,p.setAttribute(v.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Number(o))):(o=1,p.setAttribute(v.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,o)),f(o)?o?(p.sampled=Math.random()<o,p.sampled?(g.DEBUG_BUILD&&a.logger.log(`[Tracing] starting ${p.op} transaction - ${m.spanToJSON(p).description}`),p):(g.DEBUG_BUILD&&a.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),p)):(g.DEBUG_BUILD&&a.logger.log(`[Tracing] Discarding transaction because ${typeof y.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),p.sampled=!1,p):(g.DEBUG_BUILD&&a.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),p.sampled=!1,p)}function f(p){return a.isNaN(p)||!(typeof p=="number"||typeof p=="boolean")?(g.DEBUG_BUILD&&a.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(p)} of type ${JSON.stringify(typeof p)}.`),!1):p<0||p>1?(g.DEBUG_BUILD&&a.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${p}.`),!1):!0}t.isValidSampleRate=f,t.sampleTransaction=S},906076:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(588308),E=s(618514),m=s(534069),S=s(693356),f=s(538106);class p{constructor(o=1e3){this._maxlen=o,this.spans=[]}add(o){this.spans.length>this._maxlen?o.spanRecorder=void 0:this.spans.push(o)}}class y{constructor(o={}){this._traceId=o.traceId||a.uuid4(),this._spanId=o.spanId||a.uuid4().substring(16),this._startTime=o.startTimestamp||a.timestampInSeconds(),this.tags=o.tags?{...o.tags}:{},this.data=o.data?{...o.data}:{},this.instrumenter=o.instrumenter||"sentry",this._attributes={},this.setAttributes({[E.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:o.origin||"manual",[E.SEMANTIC_ATTRIBUTE_SENTRY_OP]:o.op,...o.attributes}),this._name=o.name||o.description,o.parentSpanId&&(this._parentSpanId=o.parentSpanId),"sampled"in o&&(this._sampled=o.sampled),o.status&&(this._status=o.status),o.endTimestamp&&(this._endTime=o.endTimestamp),o.exclusiveTime!==void 0&&(this._exclusiveTime=o.exclusiveTime),this._measurements=o.measurements?{...o.measurements}:{}}get name(){return this._name||""}set name(o){this.updateName(o)}get description(){return this._name}set description(o){this._name=o}get traceId(){return this._traceId}set traceId(o){this._traceId=o}get spanId(){return this._spanId}set spanId(o){this._spanId=o}set parentSpanId(o){this._parentSpanId=o}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(o){this._sampled=o}get attributes(){return this._attributes}set attributes(o){this._attributes=o}get startTimestamp(){return this._startTime}set startTimestamp(o){this._startTime=o}get endTimestamp(){return this._endTime}set endTimestamp(o){this._endTime=o}get status(){return this._status}set status(o){this._status=o}get op(){return this._attributes[E.SEMANTIC_ATTRIBUTE_SENTRY_OP]}set op(o){this.setAttribute(E.SEMANTIC_ATTRIBUTE_SENTRY_OP,o)}get origin(){return this._attributes[E.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]}set origin(o){this.setAttribute(E.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,o)}spanContext(){const{_spanId:o,_traceId:i,_sampled:c}=this;return{spanId:o,traceId:i,traceFlags:c?S.TRACE_FLAG_SAMPLED:S.TRACE_FLAG_NONE}}startChild(o){const i=new y({...o,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});i.spanRecorder=this.spanRecorder,i.spanRecorder&&i.spanRecorder.add(i);const c=m.getRootSpan(this);if(i.transaction=c,g.DEBUG_BUILD&&c){const l=o&&o.op||"< unknown op >",C=S.spanToJSON(i).description||"< unknown name >",M=c.spanContext().spanId,b=`[Tracing] Starting '${l}' span on transaction '${C}' (${M}).`;a.logger.log(b),this._logMessage=b}return i}
15setTag(o,i){return this.tags={...this.tags,[o]:i},this}setData(o,i){return this.data={...this.data,[o]:i},this}setAttribute(o,i){i===void 0?delete this._attributes[o]:this._attributes[o]=i}setAttributes(o){Object.keys(o).forEach(i=>this.setAttribute(i,o[i]))}setStatus(o){return this._status=o,this}setHttpStatus(o){return f.setHttpStatus(this,o),this}setName(o){this.updateName(o)}updateName(o){return this._name=o,this}isSuccess(){return this._status==="ok"}finish(o){return this.end(o)}end(o){if(this._endTime)return;const i=m.getRootSpan(this);if(g.DEBUG_BUILD&&i&&i.spanContext().spanId!==this._spanId){const c=this._logMessage;c&&a.logger.log(c.replace("Starting","Finishing"))}this._endTime=S.spanTimeInputToSeconds(o)}toTraceparent(){return S.spanToTraceHeader(this)}toContext(){return a.dropUndefinedKeys({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(o){return this.data=o.data||{},this._name=o.name||o.description,this._endTime=o.endTimestamp,this.op=o.op,this._parentSpanId=o.parentSpanId,this._sampled=o.sampled,this._spanId=o.spanId||this._spanId,this._startTime=o.startTimestamp||this._startTime,this._status=o.status,this.tags=o.tags||{},this._traceId=o.traceId||this._traceId,this}getTraceContext(){return S.spanToTraceContext(this)}getSpanJSON(){return a.dropUndefinedKeys({data:this._getData(),description:this._name,op:this._attributes[E.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[E.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:v.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[E.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:o,_attributes:i}=this,c=Object.keys(o).length>0,l=Object.keys(i).length>0;if(!(!c&&!l))return c&&l?{...o,...i}:c?o:i}}t.Span=y,t.SpanRecorder=p},538106:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SpanStatus=void 0,function(v){const E="ok";v.Ok=E;const m="deadline_exceeded";v.DeadlineExceeded=m;const S="unauthenticated";v.Unauthenticated=S;const f="permission_denied";v.PermissionDenied=f;const p="not_found";v.NotFound=p;const y="resource_exhausted";v.ResourceExhausted=y;const _="invalid_argument";v.InvalidArgument=_;const o="unimplemented";v.Unimplemented=o;const i="unavailable";v.Unavailable=i;const c="internal_error";v.InternalError=c;const l="unknown_error";v.UnknownError=l;const C="cancelled";v.Cancelled=C;const M="already_exists";v.AlreadyExists=M;const b="failed_precondition";v.FailedPrecondition=b;const R="aborted";v.Aborted=R;const h="out_of_range";v.OutOfRange=h;const d="data_loss";v.DataLoss=d}(t.SpanStatus||(t.SpanStatus={}));function s(v){if(v<400&&v>=100)return"ok";if(v>=400&&v<500)switch(v){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(v>=500&&v<600)switch(v){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}const a=s;function g(v,E){v.setTag("http.status_code",String(E)),v.setData("http.response.status_code",E);const m=s(E);m!=="unknown_error"&&v.setStatus(m)}t.getSpanStatusFromHttpCode=s,t.setHttpStatus=g,t.spanStatusfromHttpCode=a},35935:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(515608),E=s(693356);s(566519),s(538106);const m=s(423259),S=s(539096),f=s(78491),p=s(720778);function y(T,A,w=()=>{},B=()=>{}){const F=v.getCurrentHub(),G=S.getCurrentScope(),Y=G.getSpan(),X=b(T),Q=M(F,{parentSpan:Y,spanContext:X,forceTransaction:!1,scope:G});return G.setSpan(Q),f.handleCallbackErrors(()=>A(Q),x=>{Q&&Q.setStatus("internal_error"),w(x,Q)},()=>{Q&&Q.end(),G.setSpan(Y),B()})}function _(T,A){const w=b(T);return v.runWithAsyncContext(()=>S.withScope(T.scope,B=>{const F=v.getCurrentHub(),G=B.getSpan(),X=T.onlyIfParent&&!G?void 0:M(F,{parentSpan:G,spanContext:w,forceTransaction:T.forceTransaction,scope:B});return f.handleCallbackErrors(()=>A(X),()=>{if(X){const{status:Q}=E.spanToJSON(X);(!Q||Q==="ok")&&X.setStatus("internal_error")}},()=>X&&X.end())}))}const o=_;function i(T,A){const w=b(T);return v.runWithAsyncContext(()=>S.withScope(T.scope,B=>{const F=v.getCurrentHub(),G=B.getSpan(),X=T.onlyIfParent&&!G?void 0:M(F,{parentSpan:G,spanContext:w,forceTransaction:T.forceTransaction,scope:B});function Q(){X&&X.end()}return f.handleCallbackErrors(()=>A(X,Q),()=>{if(X&&X.isRecording()){const{status:x}=E.spanToJSON(X);(!x||x==="ok")&&X.setStatus("internal_error")}})}))}function c(T){if(!p.hasTracingEnabled())return;const A=b(T),w=v.getCurrentHub(),B=T.scope?T.scope.getSpan():l();if(T.onlyIfParent&&!B)return;const Y=(T.scope||S.getCurrentScope()).clone();return M(w,{parentSpan:B,spanContext:A,forceTransaction:T.forceTransaction,scope:Y})}function l(){return S.getCurrentScope().getSpan()}const C=({sentryTrace:T,baggage:A},w)=>{const B=S.getCurrentScope(),{traceparentData:F,dynamicSamplingContext:G,propagationContext:Y}=a.tracingContextFromHeaders(T,A);B.setPropagationContext(Y),g.DEBUG_BUILD&&F&&a.logger.log(`[Tracing] Continuing trace ${F.traceId}.`);const X={...F,metadata:a.dropUndefinedKeys({dynamicSamplingContext:G})};return w?v.runWithAsyncContext(()=>w(X)):X};function M(T,{parentSpan:A,spanContext:w,forceTransaction:B,scope:F}
15){if(!p.hasTracingEnabled())return;const G=v.getIsolationScope();let Y;if(A&&!B)Y=A.startChild(w);else if(A){const X=m.getDynamicSamplingContextFromSpan(A),{traceId:Q,spanId:x}=A.spanContext(),K=E.spanIsSampled(A);Y=T.startTransaction({traceId:Q,parentSpanId:x,parentSampled:K,...w,metadata:{dynamicSamplingContext:X,...w.metadata}})}else{const{traceId:X,dsc:Q,parentSpanId:x,sampled:K}={...G.getPropagationContext(),...F.getPropagationContext()};Y=T.startTransaction({traceId:X,parentSpanId:x,parentSampled:K,...w,metadata:{dynamicSamplingContext:Q,...w.metadata}})}return F.setSpan(Y),d(Y,F,G),Y}function b(T){if(T.startTime){const A={...T};return A.startTimestamp=E.spanTimeInputToSeconds(T.startTime),delete A.startTime,A}return T}const R="_sentryScope",h="_sentryIsolationScope";function d(T,A,w){T&&(a.addNonEnumerableProperty(T,h,w),a.addNonEnumerableProperty(T,R,A))}function I(T){return{scope:T[R],isolationScope:T[h]}}t.continueTrace=C,t.getActiveSpan=l,t.getCapturedScopesOnSpan=I,t.startActiveSpan=o,t.startInactiveSpan=c,t.startSpan=_,t.startSpanManual=i,t.trace=y},65686:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=s(515608),E=s(588308),m=s(618514),S=s(693356),f=s(423259),p=s(906076),y=s(35935);class _ extends p.Span{constructor(i,c){super(i),this._contexts={},this._hub=c||v.getCurrentHub(),this._name=i.name||"",this._metadata={...i.metadata},this._trimEnd=i.trimEnd,this.transaction=this;const l=this._metadata.dynamicSamplingContext;l&&(this._frozenDynamicSamplingContext={...l})}get name(){return this._name}set name(i){this.setName(i)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[m.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]&&{source:this._attributes[m.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]},...this._attributes[m.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]&&{sampleRate:this._attributes[m.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]}}}set metadata(i){this._metadata=i}setName(i,c="custom"){this._name=i,this.setAttribute(m.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,c)}updateName(i){return this._name=i,this}initSpanRecorder(i=1e3){this.spanRecorder||(this.spanRecorder=new p.SpanRecorder(i)),this.spanRecorder.add(this)}setContext(i,c){c===null?delete this._contexts[i]:this._contexts[i]=c}setMeasurement(i,c,l=""){this._measurements[i]={value:c,unit:l}}setMetadata(i){this._metadata={...this._metadata,...i}}end(i){const c=S.spanTimeInputToSeconds(i),l=this._finishTransaction(c);if(l)return this._hub.captureEvent(l)}toContext(){const i=super.toContext();return a.dropUndefinedKeys({...i,name:this._name,trimEnd:this._trimEnd})}updateWithContext(i){return super.updateWithContext(i),this._name=i.name||"",this._trimEnd=i.trimEnd,this}getDynamicSamplingContext(){return f.getDynamicSamplingContextFromSpan(this)}setHub(i){this._hub=i}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(i){if(this._endTime!==void 0)return;this._name||(g.DEBUG_BUILD&&a.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(i);const c=this._hub.getClient();if(c&&c.emit&&c.emit("finishTransaction",this),this._sampled!==!0){g.DEBUG_BUILD&&a.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),c&&c.recordDroppedEvent("sample_rate","transaction");return}const l=this.spanRecorder?this.spanRecorder.spans.filter(I=>I!==this&&S.spanToJSON(I).timestamp):[];if(this._trimEnd&&l.length>0){const I=l.map(T=>S.spanToJSON(T).timestamp).filter(Boolean);this._endTime=I.reduce((T,A)=>T>A?T:A)}const{scope:C,isolationScope:M}=y.getCapturedScopesOnSpan(this),{metadata:b}=this,{source:R}=b,h={contexts:{...this._contexts,trace:S.spanToTraceContext(this)},spans:l,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...b,capturedSpanScope:C,capturedSpanIsolationScope:M,...a.dropUndefinedKeys({dynamicSamplingContext:f.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:E.getMetricSummaryJsonForSpan(this),...R&&{transaction_info:{source:R}}};return Object.keys(this._measurements).length>0&&(g.DEBUG_BUILD&&a.logger.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),h.measurements=this._measurements),g.DEBUG_BUILD&&a.logger.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),h}}t.Transaction=_},77699:(L,t,s)=>
15{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(515608);function v(m){return(m||g.getCurrentHub()).getScope().getTransaction()}const E=a.extractTraceparentData;t.stripUrlQueryAndFragment=a.stripUrlQueryAndFragment,t.extractTraceparentData=E,t.getActiveTransaction=v},498553:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=30;function E(S,f,p=a.makePromiseBuffer(S.bufferSize||v)){let y={};const _=i=>p.drain(i);function o(i){const c=[];if(a.forEachEnvelopeItem(i,(b,R)=>{const h=a.envelopeItemTypeToDataCategory(R);if(a.isRateLimited(y,h)){const d=m(b,R);S.recordDroppedEvent("ratelimit_backoff",h,d)}else c.push(b)}),c.length===0)return a.resolvedSyncPromise();const l=a.createEnvelope(i[0],c),C=b=>{a.forEachEnvelopeItem(l,(R,h)=>{const d=m(R,h);S.recordDroppedEvent(b,a.envelopeItemTypeToDataCategory(h),d)})},M=()=>f({body:a.serializeEnvelope(l,S.textEncoder)}).then(b=>(b.statusCode!==void 0&&(b.statusCode<200||b.statusCode>=300)&&g.DEBUG_BUILD&&a.logger.warn(`Sentry responded with status code ${b.statusCode} to sent event.`),y=a.updateRateLimits(y,b),b),b=>{throw C("network_error"),b});return p.add(M).then(b=>b,b=>{if(b instanceof a.SentryError)return g.DEBUG_BUILD&&a.logger.error("Skipped sending event because buffer is full."),C("queue_overflow"),a.resolvedSyncPromise();throw b})}return o.__sentry__baseTransport__=!0,{send:o,flush:_}}function m(S,f){if(!(f!=="event"&&f!=="transaction"))return Array.isArray(S)?S[1]:void 0}t.DEFAULT_TRANSPORT_BUFFER_SIZE=v,t.createTransport=E},512755:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(728555);function v(f,p){let y;return a.forEachEnvelopeItem(f,(_,o)=>(p.includes(o)&&(y=Array.isArray(_)?_[1]:void 0),!!y)),y}function E(f,p){return y=>{const _=f(y);return{..._,send:async o=>{const i=v(o,["event","transaction","profile","replay_event"]);return i&&(i.release=p),_.send(o)}}}}function m(f,p){return a.createEnvelope(p?{...f[0],dsn:p}:f[0],f[1])}function S(f,p){return y=>{const _=f(y),o=new Map;function i(C,M){const b=M?`${C}:${M}`:C;let R=o.get(b);if(!R){const h=a.dsnFromString(C);if(!h)return;const d=g.getEnvelopeEndpointWithUrlEncodedAuth(h,y.tunnel);R=M?E(f,M)({...y,url:d}):f({...y,url:d}),o.set(b,R)}return[C,R]}async function c(C){function M(h){const d=h&&h.length?h:["event"];return v(C,d)}const b=p({envelope:C,getEvent:M}).map(h=>typeof h=="string"?i(h,void 0):i(h.dsn,h.release)).filter(h=>!!h);return b.length===0&&b.push(["",_]),(await Promise.all(b.map(([h,d])=>d.send(m(C,h)))))[0]}async function l(C){const M=[await _.flush(C)];for(const[,b]of o)M.push(await b.flush(C));return M.every(b=>b)}return{send:c,flush:l}}}t.eventFromEnvelope=v,t.makeMultiplexedTransport=S},650429:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(757437),v=100,E=5e3,m=36e5;function S(p,y){g.DEBUG_BUILD&&a.logger.info(`[Offline]: ${p}`,y)}function f(p){return y=>{const _=p(y),o=y.createStore?y.createStore(y):void 0;let i=E,c;function l(R,h,d){return a.envelopeContainsItemType(R,["replay_event","replay_recording","client_report"])?!1:y.shouldStore?y.shouldStore(R,h,d):!0}function C(R){o&&(c&&clearTimeout(c),c=setTimeout(async()=>{c=void 0;const h=await o.pop();h&&(S("Attempting to send previously queued event"),b(h).catch(d=>{S("Failed to retry sending",d)}))},R),typeof c!="number"&&c.unref&&c.unref())}function M(){c||(C(i),i=Math.min(i*2,m))}async function b(R){try{const h=await _.send(R);let d=v;if(h){if(h.headers&&h.headers["retry-after"])d=a.parseRetryAfterHeader(h.headers["retry-after"]);else if((h.statusCode||0)>=400)return h}return C(d),i=E,h}catch(h){if(o&&await l(R,h,i))return await o.insert(R),M(),S("Error sending. Event queued",h),{};throw h}}return y.flushAtStartup&&M(),{send:b,flush:R=>_.flush(R)}}}t.MIN_DELAY=v,t.START_DELAY=E,t.makeOfflineTransport=f},100650:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(423259),v=s(534069),E=s(693356);function m(c,l){const{fingerprint:C,span:M,breadcrumbs:b,sdkProcessingMetadata:R}=l;p(c,l),M&&o(c,M),i(c,C),y(c,b),_(c,R)}function S(c,l){const{extra:C,tags:M,user:b,contexts:R,level:h,sdkProcessingMetadata:d,breadcrumbs:I,fingerprint:T,eventProcessors:A,attachments:w,propagationContext:B,transactionName:F,span:G}=l;f(c,"extra",C),f(c,"tags",M),f(c,"user",b),f(c,"contexts",R),f(c,"sdkProcessingMetadata",d),h&&(c.level=h),F&&(c.transactionName=F),G&&(c.span=G),I.length&&(c.breadcrumbs=[...c.breadcrumbs,...I]),T.length&&(c.fingerprint=[...c.fingerprint,...T]),A.length&&(c.eventProcessors=[...c.eventProcessors,...A]),w.length&&(c.attachments=[...c.attachments,...w]),c.propagationContext={...c.propagationContext,...B}}
15function f(c,l,C){if(C&&Object.keys(C).length){c[l]={...c[l]};for(const M in C)Object.prototype.hasOwnProperty.call(C,M)&&(c[l][M]=C[M])}}function p(c,l){const{extra:C,tags:M,user:b,contexts:R,level:h,transactionName:d}=l,I=a.dropUndefinedKeys(C);I&&Object.keys(I).length&&(c.extra={...I,...c.extra});const T=a.dropUndefinedKeys(M);T&&Object.keys(T).length&&(c.tags={...T,...c.tags});const A=a.dropUndefinedKeys(b);A&&Object.keys(A).length&&(c.user={...A,...c.user});const w=a.dropUndefinedKeys(R);w&&Object.keys(w).length&&(c.contexts={...w,...c.contexts}),h&&(c.level=h),d&&(c.transaction=d)}function y(c,l){const C=[...c.breadcrumbs||[],...l];c.breadcrumbs=C.length?C:void 0}function _(c,l){c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...l}}function o(c,l){c.contexts={trace:E.spanToTraceContext(l),...c.contexts};const C=v.getRootSpan(l);if(C){c.sdkProcessingMetadata={dynamicSamplingContext:g.getDynamicSamplingContextFromSpan(l),...c.sdkProcessingMetadata};const M=E.spanToJSON(C).description;M&&(c.tags={transaction:M,...c.tags})}}function i(c,l){c.fingerprint=c.fingerprint?a.arrayify(c.fingerprint):[],l&&(c.fingerprint=c.fingerprint.concat(l)),c.fingerprint&&!c.fingerprint.length&&delete c.fingerprint}t.applyScopeDataToEvent=m,t.mergeAndOverwriteScopeData=f,t.mergeScopeData=S},534069:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(a){return a.transaction}t.getRootSpan=s},78491:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375);function g(E,m,S=()=>{}){let f;try{f=E()}catch(p){throw m(p),S(),p}return v(f,m,S)}function v(E,m,S){return a.isThenable(E)?E.then(f=>(S(),f),f=>{throw m(f),S(),f}):(S(),E)}t.handleCallbackErrors=g},720778:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(539096);function g(v){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const E=a.getClient(),m=v||E&&E.getOptions();return!!m&&(m.enableTracing||"tracesSampleRate"in m||"tracesSampler"in m)}t.hasTracingEnabled=g},720108:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(m,S){const f=S&&E(S)?S.getClient():S,p=f&&f.getDsn(),y=f&&f.getOptions().tunnel;return g(m,p)||a(m,y)}function a(m,S){return S?v(m)===v(S):!1}function g(m,S){return S?m.includes(S.host):!1}function v(m){return m[m.length-1]==="/"?m.slice(0,-1):m}function E(m){return m.getClient!==void 0}t.isSentryRequestUrl=s},700366:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(a,...g){const v=new String(String.raw(a,...g));return v.__sentry_template_string__=a.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),v.__sentry_template_values__=g,v}t.parameterize=s},230936:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(59090),v=s(743042),E=s(848343),m=s(100650),S=s(693356);function f(h,d,I,T,A,w){const{normalizeDepth:B=3,normalizeMaxBreadth:F=1e3}=h,G={...d,event_id:d.event_id||I.event_id||a.uuid4(),timestamp:d.timestamp||a.dateTimestampInSeconds()},Y=I.integrations||h.integrations.map(W=>W.name);p(G,h),i(G,Y),d.type===void 0&&_(G,h.stackParser);const X=l(T,I.captureContext);I.mechanism&&a.addExceptionMechanism(G,I.mechanism);const Q=A&&A.getEventProcessors?A.getEventProcessors():[],x=E.getGlobalScope().getScopeData();if(w){const W=w.getScopeData();m.mergeScopeData(x,W)}if(X){const W=X.getScopeData();m.mergeScopeData(x,W)}const K=[...I.attachments||[],...x.attachments];K.length&&(I.attachments=K),m.applyScopeDataToEvent(G,x);const re=[...Q,...v.getGlobalEventProcessors(),...x.eventProcessors];return v.notifyEventProcessors(re,G,I).then(W=>(W&&o(W),typeof B=="number"&&B>0?c(W,B,F):W))}function p(h,d){const{environment:I,release:T,dist:A,maxValueLength:w=250}=d;"environment"in h||(h.environment="environment"in d?I:g.DEFAULT_ENVIRONMENT),h.release===void 0&&T!==void 0&&(h.release=T),h.dist===void 0&&A!==void 0&&(h.dist=A),h.message&&(h.message=a.truncate(h.message,w));const B=h.exception&&h.exception.values&&h.exception.values[0];B&&B.value&&(B.value=a.truncate(B.value,w));const F=h.request;F&&F.url&&(F.url=a.truncate(F.url,w))}const y=new WeakMap;function _(h,d){const I=a.GLOBAL_OBJ._sentryDebugIds;if(!I)return;let T;const A=y.get(d);A?T=A:(T=new Map,y.set(d,T));const w=Object.keys(I).reduce((B,F)=>{let G;const Y=T.get(F);Y?G=Y:(G=d(F),T.set(F,G));for(let X=G.length-1;X>=0;X--){const Q=G[X];if(Q.filename){B[Q.filename]=I[F];break}}return B},{});
15try{h.exception.values.forEach(B=>{B.stacktrace.frames.forEach(F=>{F.filename&&(F.debug_id=w[F.filename])})})}catch{}}function o(h){const d={};try{h.exception.values.forEach(T=>{T.stacktrace.frames.forEach(A=>{A.debug_id&&(A.abs_path?d[A.abs_path]=A.debug_id:A.filename&&(d[A.filename]=A.debug_id),delete A.debug_id)})})}catch{}if(Object.keys(d).length===0)return;h.debug_meta=h.debug_meta||{},h.debug_meta.images=h.debug_meta.images||[];const I=h.debug_meta.images;Object.keys(d).forEach(T=>{I.push({type:"sourcemap",code_file:T,debug_id:d[T]})})}function i(h,d){d.length>0&&(h.sdk=h.sdk||{},h.sdk.integrations=[...h.sdk.integrations||[],...d])}function c(h,d,I){if(!h)return null;const T={...h,...h.breadcrumbs&&{breadcrumbs:h.breadcrumbs.map(A=>({...A,...A.data&&{data:a.normalize(A.data,d,I)}}))},...h.user&&{user:a.normalize(h.user,d,I)},...h.contexts&&{contexts:a.normalize(h.contexts,d,I)},...h.extra&&{extra:a.normalize(h.extra,d,I)}};return h.contexts&&h.contexts.trace&&T.contexts&&(T.contexts.trace=h.contexts.trace,h.contexts.trace.data&&(T.contexts.trace.data=a.normalize(h.contexts.trace.data,d,I))),h.spans&&(T.spans=h.spans.map(A=>{const w=S.spanToJSON(A).data;return w&&(A.data=a.normalize(w,d,I)),A})),T}function l(h,d){if(!d)return h;const I=h?h.clone():new E.Scope;return I.update(d),I}function C(h){if(h)return M(h)?{captureContext:h}:R(h)?{captureContext:h}:h}function M(h){return h instanceof E.Scope||typeof h=="function"}const b=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function R(h){return Object.keys(h).some(d=>b.includes(d))}t.applyDebugIds=_,t.applyDebugMeta=o,t.parseEventHintOrCaptureContext=C,t.prepareEvent=f},758220:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(474815);function g(v,E,m=[E],S="npm"){const f=v._metadata||{};f.sdk||(f.sdk={name:`sentry.javascript.${E}`,packages:m.map(p=>({name:`${S}:@sentry/${p}`,version:a.SDK_VERSION})),version:a.SDK_VERSION}),v._metadata=f}t.applySdkMetadata=g},693356:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=0,v=1;function E(o){const{spanId:i,traceId:c}=o.spanContext(),{data:l,op:C,parent_span_id:M,status:b,tags:R,origin:h}=p(o);return a.dropUndefinedKeys({data:l,op:C,parent_span_id:M,span_id:i,status:b,tags:R,trace_id:c,origin:h})}function m(o){const{traceId:i,spanId:c}=o.spanContext(),l=_(o);return a.generateSentryTraceHeader(i,c,l)}function S(o){return typeof o=="number"?f(o):Array.isArray(o)?o[0]+o[1]/1e9:o instanceof Date?f(o.getTime()):a.timestampInSeconds()}function f(o){return o>9999999999?o/1e3:o}function p(o){return y(o)?o.getSpanJSON():typeof o.toJSON=="function"?o.toJSON():{}}function y(o){return typeof o.getSpanJSON=="function"}function _(o){const{traceFlags:i}=o.spanContext();return!!(i&v)}t.TRACE_FLAG_NONE=g,t.TRACE_FLAG_SAMPLED=v,t.spanIsSampled=_,t.spanTimeInputToSeconds=S,t.spanToJSON=p,t.spanToTraceContext=E,t.spanToTraceHeader=m},474815:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s="7.120.3";t.SDK_VERSION=s},745976:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g=s(289375),v="CaptureConsole",E=(p={})=>{const y=p.levels||g.CONSOLE_LEVELS;return{name:v,setupOnce(){},setup(_){"console"in g.GLOBAL_OBJ&&g.addConsoleInstrumentationHandler(({args:o,level:i})=>{a.getClient()!==_||!y.includes(i)||f(o,i)})}}},m=a.defineIntegration(E),S=a.convertIntegrationFnToClass(v,m);function f(p,y){const _={level:g.severityLevelFromString(y),extra:{arguments:p}};a.withScope(o=>{if(o.addEventProcessor(l=>(l.logger="console",g.addExceptionMechanism(l,{handled:!1,type:"console"}),l)),y==="assert"&&p[0]===!1){const l=`Assertion failed: ${g.safeJoin(p.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",p.slice(1)),a.captureMessage(l,_);return}const i=p.find(l=>l instanceof Error);if(y==="error"&&i){a.captureException(i,_);return}const c=g.safeJoin(p," ");a.captureMessage(c,_)})}t.CaptureConsole=S,t.captureConsoleIntegration=m},239953:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g=s(289375),v=g.GLOBAL_OBJ,E=7,m="ContextLines",S=(o={})=>{const i=o.frameContextLines!=null?o.frameContextLines:E;return{name:m,setupOnce(){},processEvent(c){return y(c,i)}}},f=a.defineIntegration(S),p=a.convertIntegrationFnToClass(m,f);function y(o,i){const c=v.document,l=v.location&&g.stripUrlQueryAndFragment(v.location.href);if(!c||!l)return o;const C=o.exception&&o.exception.values;if(!C||!C.length)return o;const M=c.documentElement.innerHTML;if(!M)return o;const b=["<!DOCTYPE html>","<html>",...M.split(`
16`),"</html>"];
16return C.forEach(R=>{const h=R.stacktrace;h&&h.frames&&(h.frames=h.frames.map(d=>_(d,b,l,i)))}),o}function _(o,i,c,l){return o.filename!==c||!o.lineno||!i.length||g.addContextToFrame(i,o,l),o}t.ContextLines=p,t.applySourceContextToFrame=_,t.contextLinesIntegration=f},676465:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;t.DEBUG_BUILD=s},465428:(L,t,s)=>{var a=s(80247);Object.defineProperty(t,"__esModule",{value:!0});const g=s(389615),v=s(289375),E="Debug",m=(p={})=>{const y={debugger:!1,stringify:!1,...p};return{name:E,setupOnce(){},setup(_){_.on&&_.on("beforeSendEvent",(o,i)=>{if(y.debugger)debugger;v.consoleSandbox(()=>{y.stringify?(a.log(JSON.stringify(o,null,2)),i&&Object.keys(i).length&&a.log(JSON.stringify(i,null,2))):(a.log(o),i&&Object.keys(i).length&&a.log(i))})})}}},S=g.defineIntegration(m),f=g.convertIntegrationFnToClass(E,S);t.Debug=f,t.debugIntegration=S},147236:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g=s(289375),v=s(676465),E="Dedupe",m=()=>{let C;return{name:E,setupOnce(){},processEvent(M){if(M.type)return M;try{if(p(M,C))return v.DEBUG_BUILD&&g.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return C=M}}},S=a.defineIntegration(m),f=a.convertIntegrationFnToClass(E,S);function p(C,M){return M?!!(y(C,M)||_(C,M)):!1}function y(C,M){const b=C.message,R=M.message;return!(!b&&!R||b&&!R||!b&&R||b!==R||!i(C,M)||!o(C,M))}function _(C,M){const b=c(M),R=c(C);return!(!b||!R||b.type!==R.type||b.value!==R.value||!i(C,M)||!o(C,M))}function o(C,M){let b=l(C),R=l(M);if(!b&&!R)return!0;if(b&&!R||!b&&R||(b=b,R=R,R.length!==b.length))return!1;for(let h=0;h<R.length;h++){const d=R[h],I=b[h];if(d.filename!==I.filename||d.lineno!==I.lineno||d.colno!==I.colno||d.function!==I.function)return!1}return!0}function i(C,M){let b=C.fingerprint,R=M.fingerprint;if(!b&&!R)return!0;if(b&&!R||!b&&R)return!1;b=b,R=R;try{return b.join("")===R.join("")}catch{return!1}}function c(C){return C.exception&&C.exception.values&&C.exception.values[0]}function l(C){const M=C.exception;if(M)try{return M.values[0].stacktrace.frames}catch{return}}t.Dedupe=f,t._shouldDropEvent=p,t.dedupeIntegration=S},819599:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g=s(289375),v=s(676465),E="ExtraErrorData",m=(_={})=>{const o=_.depth||3,i=_.captureErrorCause||!1;return{name:E,setupOnce(){},processEvent(c,l){return p(c,l,o,i)}}},S=a.defineIntegration(m),f=a.convertIntegrationFnToClass(E,S);function p(_,o={},i,c){if(!o.originalException||!g.isError(o.originalException))return _;const l=o.originalException.name||o.originalException.constructor.name,C=y(o.originalException,c);if(C){const M={..._.contexts},b=g.normalize(C,i);return g.isPlainObject(b)&&(g.addNonEnumerableProperty(b,"__sentry_skip_normalization__",!0),M[l]=b),{..._,contexts:M}}return _}function y(_,o){try{const i=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],c={};for(const l of Object.keys(_)){if(i.indexOf(l)!==-1)continue;const C=_[l];c[l]=g.isError(C)?C.toString():C}if(o&&_.cause!==void 0&&(c.cause=g.isError(_.cause)?_.cause.toString():_.cause),typeof _.toJSON=="function"){const l=_.toJSON();for(const C of Object.keys(l)){const M=l[C];c[C]=g.isError(M)?M.toString():M}}return c}catch(i){v.DEBUG_BUILD&&g.logger.error("Unable to extract extra data from the Error object:",i)}return null}t.ExtraErrorData=f,t.extraErrorDataIntegration=S},368596:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g=s(289375),v=s(676465),E="HttpClient",m=(T={})=>{const A={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...T};return{name:E,setupOnce(){},setup(w){M(w,A),b(w,A)}}},S=a.defineIntegration(m),f=a.convertIntegrationFnToClass(E,S);function p(T,A,w,B){if(R(T,w.status,w.url)){const F=d(A,B);let G,Y,X,Q;I()&&([{headers:G,cookies:X},{headers:Y,cookies:Q}]=[{cookieHeader:"Cookie",obj:F},{cookieHeader:"Set-Cookie",obj:w}].map(({cookieHeader:K,obj:re})=>{const z=i(re.headers);let W;try{const Z=z[K]||z[K.toLowerCase()]||void 0;Z&&(W=o(Z))}catch{v.DEBUG_BUILD&&g.logger.log(`Could not extract cookies from header ${K}`)}return{headers:z,cookies:W}}));const x=h({url:F.url,method:F.method,status:w.status,requestHeaders:G,responseHeaders:Y,requestCookies:X,responseCookies:Q});a.captureEvent(x)}}function y(T,A,w,B){if(R(T,A.status,A.responseURL)){let F,G,Y;if(I()){try{const Q=A.getResponseHeader("Set-Cookie")||A.getResponseHeader("set-cookie")||void 0;Q&&(G=o(Q))}catch{v.DEBUG_BUILD&&g.logger.log("Could not extract cookies from response headers")}try{Y=c(A)}catch{v.DEBUG_BUILD&&g.logger.log("Could not extract headers from response")}F=B}const X=h({url:A.responseURL,method:w,status:A.status,requestHeaders:F,responseHeaders:Y,responseCookies:G});a.captureEvent(X)}}function _(T){if(T){const A=T["Content-Length"]||T["content-length"];if(A)return parseInt(A,10)}}
16function o(T){return T.split("; ").reduce((A,w)=>{const[B,F]=w.split("=");return A[B]=F,A},{})}function i(T){const A={};return T.forEach((w,B)=>{A[B]=w}),A}function c(T){const A=T.getAllResponseHeaders();return A?A.split(`\r
17`).reduce((w,B)=>{const[F,G]=B.split(": ");return w[F]=G,w},{}):{}}function l(T,A){return T.some(w=>typeof w=="string"?A.includes(w):w.test(A))}function C(T,A){return T.some(w=>typeof w=="number"?w===A:A>=w[0]&&A<=w[1])}function M(T,A){g.supportsNativeFetch()&&g.addFetchInstrumentationHandler(w=>{if(a.getClient()!==T)return;const{response:B,args:F}=w,[G,Y]=F;B&&p(A,G,B,Y)})}function b(T,A){"XMLHttpRequest"in g.GLOBAL_OBJ&&g.addXhrInstrumentationHandler(w=>{if(a.getClient()!==T)return;const B=w.xhr,F=B[g.SENTRY_XHR_DATA_KEY];if(!F)return;const{method:G,request_headers:Y}=F;try{y(A,B,G,Y)}catch(X){v.DEBUG_BUILD&&g.logger.warn("Error while extracting response event form XHR response",X)}})}function R(T,A,w){return C(T.failedRequestStatusCodes,A)&&l(T.failedRequestTargets,w)&&!a.isSentryRequestUrl(w,a.getClient())}function h(T){const A=`HTTP Client Error with status code: ${T.status}`,w={message:A,exception:{values:[{type:"Error",value:A}]},request:{url:T.url,method:T.method,headers:T.requestHeaders,cookies:T.requestCookies},contexts:{response:{status_code:T.status,headers:T.responseHeaders,cookies:T.responseCookies,body_size:_(T.responseHeaders)}}};return g.addExceptionMechanism(w,{type:"http.client",handled:!1}),w}function d(T,A){return!A&&T instanceof Request||T instanceof Request&&T.bodyUsed?T:new Request(T,A)}function I(){const T=a.getClient();return T?!!T.getOptions().sendDefaultPii:!1}t.HttpClient=f,t.httpClientIntegration=S},852619:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(745976),g=s(465428),v=s(147236),E=s(819599),m=s(171172),S=s(616959),f=s(966629),p=s(289161),y=s(820527),_=s(368596),o=s(239953);t.CaptureConsole=a.CaptureConsole,t.captureConsoleIntegration=a.captureConsoleIntegration,t.Debug=g.Debug,t.debugIntegration=g.debugIntegration,t.Dedupe=v.Dedupe,t.dedupeIntegration=v.dedupeIntegration,t.ExtraErrorData=E.ExtraErrorData,t.extraErrorDataIntegration=E.extraErrorDataIntegration,t.Offline=m.Offline,t.ReportingObserver=S.ReportingObserver,t.reportingObserverIntegration=S.reportingObserverIntegration,t.RewriteFrames=f.RewriteFrames,t.rewriteFramesIntegration=f.rewriteFramesIntegration,t.SessionTiming=p.SessionTiming,t.sessionTimingIntegration=p.sessionTimingIntegration,t.Transaction=y.Transaction,t.HttpClient=_.HttpClient,t.httpClientIntegration=_.httpClientIntegration,t.ContextLines=o.ContextLines,t.contextLinesIntegration=o.contextLinesIntegration},171172:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(289375),g=s(547914),v=s(676465),E=a.GLOBAL_OBJ;class m{static __initStatic(){this.id="Offline"}constructor(f={}){this.name=m.id,this.maxStoredEvents=f.maxStoredEvents||30,this.offlineEventStore=g.createInstance({name:"sentry/offlineEventStore"})}setupOnce(f,p){this.hub=p(),"addEventListener"in E&&E.addEventListener("online",()=>{this._sendEvents().catch(()=>{v.DEBUG_BUILD&&a.logger.warn("could not send cached events")})});const y=_=>this.hub&&this.hub.getIntegration(m)&&"navigator"in E&&"onLine"in E.navigator&&!E.navigator.onLine?(v.DEBUG_BUILD&&a.logger.log("Event dropped due to being a offline - caching instead"),this._cacheEvent(_).then(o=>this._enforceMaxEvents()).catch(o=>{v.DEBUG_BUILD&&a.logger.warn("could not cache event while offline")}),null):_;y.id=this.name,f(y),"navigator"in E&&"onLine"in E.navigator&&E.navigator.onLine&&this._sendEvents().catch(()=>{v.DEBUG_BUILD&&a.logger.warn("could not send cached events")})}async _cacheEvent(f){return this.offlineEventStore.setItem(a.uuid4(),a.normalize(f))}async _enforceMaxEvents(){const f=[];return this.offlineEventStore.iterate((p,y,_)=>{f.push({cacheKey:y,event:p})}).then(()=>this._purgeEvents(f.sort((p,y)=>(y.event.timestamp||0)-(p.event.timestamp||0)).slice(this.maxStoredEvents<f.length?this.maxStoredEvents:f.length).map(p=>p.cacheKey))).catch(p=>{v.DEBUG_BUILD&&a.logger.warn("could not enforce max events")})}async _purgeEvent(f){return this.offlineEventStore.removeItem(f)}async _purgeEvents(f){return Promise.all(f.map(p=>this._purgeEvent(p))).then()}async _sendEvents(){return this.offlineEventStore.iterate((f,p,y)=>{this.hub?(this.hub.captureEvent(f),this._purgeEvent(p).catch(_=>{v.DEBUG_BUILD&&a.logger.warn("could not purge event from cache")})):v.DEBUG_BUILD&&a.logger.warn("no hub found - could not send cached event")})}}m.__initStatic(),t.Offline=m},616959:(L,t,s)=>
17{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g=s(289375),v=g.GLOBAL_OBJ,E="ReportingObserver",m=new WeakMap,S=(y={})=>{const _=y.types||["crash","deprecation","intervention"];function o(i){if(m.has(a.getClient()))for(const c of i)a.withScope(l=>{l.setExtra("url",c.url);const C=`ReportingObserver [${c.type}]`;let M="No details available";if(c.body){const b={};for(const R in c.body)b[R]=c.body[R];if(l.setExtra("body",b),c.type==="crash"){const R=c.body;M=[R.crashId||"",R.reason||""].join(" ").trim()||M}else M=c.body.message||M}a.captureMessage(`${C}: ${M}`)})}return{name:E,setupOnce(){if(!g.supportsReportingObserver())return;new v.ReportingObserver(o,{buffered:!0,types:_}).observe()},setup(i){m.set(i,!0)}}},f=a.defineIntegration(S),p=a.convertIntegrationFnToClass(E,f);t.ReportingObserver=p,t.reportingObserverIntegration=f},966629:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g=s(289375),v="RewriteFrames",E=(f={})=>{const p=f.root,y=f.prefix||"app:///",_=f.iteratee||(c=>{if(!c.filename)return c;const l=/^[a-zA-Z]:\\/.test(c.filename)||c.filename.includes("\\")&&!c.filename.includes("/"),C=/^\//.test(c.filename);if(l||C){const M=l?c.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):c.filename,b=p?g.relative(p,M):g.basename(M);c.filename=`${y}${b}`}return c});function o(c){try{return{...c,exception:{...c.exception,values:c.exception.values.map(l=>({...l,...l.stacktrace&&{stacktrace:i(l.stacktrace)}}))}}}catch{return c}}
17function i(c){return{...c,frames:c&&c.frames&&c.frames.map(l=>_(l))}}return{name:v,setupOnce(){},processEvent(c){let l=c;return c.exception&&Array.isArray(c.exception.values)&&(l=o(l)),l}}},m=a.defineIntegration(E),S=a.convertIntegrationFnToClass(v,m);t.RewriteFrames=S,t.rewriteFramesIntegration=m},289161:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g="SessionTiming",v=()=>{const S=Date.now();return{name:g,setupOnce(){},processEvent(f){const p=Date.now();return{...f,extra:{...f.extra,["session:start"]:S,["session:duration"]:p-S,["session:end"]:p}}}}},E=a.defineIntegration(v),m=a.convertIntegrationFnToClass(g,E);t.SessionTiming=m,t.sessionTimingIntegration=E},820527:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g="Transaction",v=()=>({name:g,setupOnce(){},processEvent(f){const p=m(f);for(let y=p.length-1;y>=0;y--){const _=p[y];if(_.in_app===!0){f.transaction=S(_);break}}return f}}),E=a.convertIntegrationFnToClass(g,v);function m(f){const p=f.exception&&f.exception.values&&f.exception.values[0];return p&&p.stacktrace&&p.stacktrace.frames||[]}function S(f){return f.module||f.function?`${f.module||"?"}/${f.function||"?"}`:"<unknown>"}t.Transaction=E},836552:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s="ui.react.render",a="ui.react.update",g="ui.react.mount";t.REACT_MOUNT_OP=g,t.REACT_RENDER_OP=s,t.REACT_UPDATE_OP=a},240879:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;t.DEBUG_BUILD=s},628677:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(212598),g=s(289375),v=s(158486),E=s(63696),m=s(240879),S=b=>b&&b.__esModule?b.default:b;function f(b){if(b&&b.__esModule)return b;const R=Object.create(null);if(b)for(const h in b)R[h]=b[h];return R.default=b,R}const p=S(v),y=f(E),_="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function o(b){const R=b.match(/^([^.]+)/);return R!==null&&parseInt(R[0])>=17}const i="unknown",c={componentStack:null,error:null,eventId:null};function l(b,R){const h=new WeakMap;function d(I,T){if(!h.has(I)){if(I.cause)return h.set(I,!0),d(I.cause,T);I.cause=T}}d(b,R)}class C extends y.Component{constructor(R){super(R),C.prototype.__init.call(this),this.state=c,this._openFallbackReportDialog=!0;const h=a.getClient();h&&h.on&&R.showDialog&&(this._openFallbackReportDialog=!1,h.on("afterSendEvent",d=>{!d.type&&d.event_id===this._lastEventId&&a.showReportDialog({...R.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(R,{componentStack:h}){const{beforeCapture:d,onError:I,showDialog:T,dialogOptions:A}=this.props;a.withScope(w=>{if(o(y.version)&&g.isError(R)){const F=new Error(R.message);F.name=`React ErrorBoundary ${R.name}`,F.stack=h,l(R,F)}d&&d(w,R,h);const B=a.captureException(R,{captureContext:{contexts:{react:{componentStack:h}}},mechanism:{handled:!!this.props.fallback}});I&&I(R,h,B),T&&(this._lastEventId=B,this._openFallbackReportDialog&&a.showReportDialog({...A,eventId:B})),this.setState({error:R,componentStack:h,eventId:B})})}componentDidMount(){const{onMount:R}=this.props;R&&R()}componentWillUnmount(){const{error:R,componentStack:h,eventId:d}=this.state,{onUnmount:I}=this.props;I&&I(R,h,d)}__init(){this.resetErrorBoundary=()=>{const{onReset:R}=this.props,{error:h,componentStack:d,eventId:I}=this.state;R&&R(h,d,I),this.setState(c)}}render(){const{fallback:R,children:h}=this.props,d=this.state;if(d.error){let I;return typeof R=="function"?I=R({error:d.error,componentStack:d.componentStack,resetError:this.resetErrorBoundary,eventId:d.eventId}):I=R,y.isValidElement(I)?I:(R&&m.DEBUG_BUILD&&g.logger.warn("fallback did not produce a valid ReactElement"),null)}return typeof h=="function"?h():h}}
17function M(b,R){const h=b.displayName||b.name||i,d=I=>y.createElement(C,{...R,__self:this,__source:{fileName:_,lineNumber:240}},y.createElement(b,{...I,__self:this,__source:{fileName:_,lineNumber:241}}));return d.displayName=`errorBoundary(${h})`,p(d,b),d}t.ErrorBoundary=C,t.UNKNOWN_COMPONENT=i,t.isAtLeastReact17=o,t.withErrorBoundary=M},612097:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(212598),g=s(353901),v=s(963828),E=s(628677),m=s(744019),S=s(431412),f=s(535243),p=s(739295);t.init=g.init,t.Profiler=v.Profiler,t.useProfiler=v.useProfiler,t.withProfiler=v.withProfiler,t.ErrorBoundary=E.ErrorBoundary,t.withErrorBoundary=E.withErrorBoundary,t.createReduxEnhancer=m.createReduxEnhancer,t.reactRouterV3BrowserTracingIntegration=S.reactRouterV3BrowserTracingIntegration,t.reactRouterV3Instrumentation=S.reactRouterV3Instrumentation,t.reactRouterV4BrowserTracingIntegration=f.reactRouterV4BrowserTracingIntegration,t.reactRouterV4Instrumentation=f.reactRouterV4Instrumentation,t.reactRouterV5BrowserTracingIntegration=f.reactRouterV5BrowserTracingIntegration,t.reactRouterV5Instrumentation=f.reactRouterV5Instrumentation,t.withSentryRouting=f.withSentryRouting,t.reactRouterV6BrowserTracingIntegration=p.reactRouterV6BrowserTracingIntegration,t.reactRouterV6Instrumentation=p.reactRouterV6Instrumentation,t.withSentryReactRouterV6Routing=p.withSentryReactRouterV6Routing,t.wrapCreateBrowserRouter=p.wrapCreateBrowserRouter,t.wrapUseRoutes=p.wrapUseRoutes;for(const y in a)y!=="default"&&!t.hasOwnProperty(y)&&(t[y]=a[y])},963828:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(212598),g=s(389615),v=s(289375),E=s(158486),m=s(63696),S=s(836552),f=M=>M&&M.__esModule?M.default:M;function p(M){if(M&&M.__esModule)return M;const b=Object.create(null);if(M)for(const R in M)b[R]=M[R];return b.default=M,b}const y=f(E),_=p(m),o="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx",i="unknown";class c extends _.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(b){super(b);const{name:R,disabled:h=!1}=this.props;h||(this._mountSpan=a.startInactiveSpan({name:`<${R}>`,onlyIfParent:!0,op:S.REACT_MOUNT_OP,origin:"auto.ui.react.profiler",attributes:{"ui.component_name":R}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:b,includeUpdates:R=!0}){if(R&&this._mountSpan&&b!==this.props.updateProps){const h=Object.keys(b).filter(d=>b[d]!==this.props.updateProps[d]);if(h.length>0){const d=v.timestampInSeconds();this._updateSpan=g.withActiveSpan(this._mountSpan,()=>a.startInactiveSpan({name:`<${this.props.name}>`,onlyIfParent:!0,op:S.REACT_UPDATE_OP,origin:"auto.ui.react.profiler",startTimestamp:d,attributes:{"ui.component_name":this.props.name,"ui.react.changed_props":h}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const b=v.timestampInSeconds(),{name:R,includeRender:h=!0}=this.props;if(this._mountSpan&&h){const d=g.spanToJSON(this._mountSpan).timestamp;g.withActiveSpan(this._mountSpan,()=>{const I=a.startInactiveSpan({onlyIfParent:!0,name:`<${R}>`,op:S.REACT_RENDER_OP,origin:"auto.ui.react.profiler",startTimestamp:d,attributes:{"ui.component_name":R}});I&&I.end(b)})}}render(){return this.props.children}}c.__initStatic();function l(M,b){const R=b&&b.name||M.displayName||M.name||i,h=d=>_.createElement(c,{...b,name:R,updateProps:d,__self:this,__source:{fileName:o,lineNumber:159}},_.createElement(M,{...d,__self:this,__source:{fileName:o,lineNumber:160}}));return h.displayName=`profiler(${R})`,y(h,M),h}function C(M,b={disabled:!1,hasRenderSpan:!0}){const[R]=_.useState(()=>{if(!(b&&b.disabled))return a.startInactiveSpan({name:`<${M}>`,onlyIfParent:!0,op:S.REACT_MOUNT_OP,origin:"auto.ui.react.profiler",attributes:{"ui.component_name":M}})});_.useEffect(()=>(R&&R.end(),()=>{if(R&&b.hasRenderSpan){const h=g.spanToJSON(R).timestamp,d=v.timestampInSeconds(),I=a.startInactiveSpan({name:`<${M}>`,onlyIfParent:!0,op:S.REACT_RENDER_OP,origin:"auto.ui.react.profiler",startTimestamp:h,attributes:{"ui.component_name":M}});I&&I.end(d)}}),[])}t.Profiler=c,t.UNKNOWN_COMPONENT=i,t.useProfiler=C,t.withProfiler=l},535243:(L,t,s)=>
17{Object.defineProperty(t,"__esModule",{value:!0});const a=s(212598),g=s(389615),v=s(158486),E=s(63696),m=d=>d&&d.__esModule?d.default:d;function S(d){if(d&&d.__esModule)return d;const I=Object.create(null);if(d)for(const T in d)I[T]=d[T];return I.default=d,I}const f=m(v),p=S(E),y="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouter.tsx";let _;function o(d){const I=a.browserTracingIntegration({...d,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:T,routes:A,matchPath:w,instrumentPageLoad:B=!0,instrumentNavigation:F=!0}=d;return{...I,afterAllSetup(G){I.afterAllSetup(G);const Y=x=>{a.startBrowserTracingPageLoadSpan(G,x)},X=x=>{a.startBrowserTracingNavigationSpan(G,x)},Q=c(T,A,w);Q(Y,B,!1),Q(X,!1,F)}}}function i(d){const I=a.browserTracingIntegration({...d,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:T,routes:A,matchPath:w}=d;return{...I,afterAllSetup(B){I.afterAllSetup(B);const F=X=>{a.startBrowserTracingPageLoadSpan(B,X)},G=X=>{a.startBrowserTracingNavigationSpan(B,X)},Y=l(T,A,w);Y(F,d.instrumentPageLoad,!1),Y(G,!1,d.instrumentNavigation)}}}function c(d,I,T){return C(d,"reactrouter_v4",I,T)}function l(d,I,T){return C(d,"reactrouter_v5",I,T)}function C(d,I,T=[],A){function w(){if(d&&d.location)return d.location.pathname;if(a.WINDOW&&a.WINDOW.location)return a.WINDOW.location.pathname}function B(F){if(T.length===0||!A)return[F,"url"];const G=M(T,F,A);for(let Y=0;Y<G.length;Y++)if(G[Y].match.isExact)return[G[Y].match.path,"route"];return[F,"url"]}return(F,G=!0,Y=!0)=>{const X=w();if(G&&X){const[Q,x]=B(X);_=F({name:Q,attributes:{[g.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[g.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.${I}`,[g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:x}})}Y&&d.listen&&d.listen((Q,x)=>{if(x&&(x==="PUSH"||x==="POP")){_&&_.end();const[K,re]=B(Q.pathname);_=F({name:K,attributes:{[g.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[g.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.${I}`,[g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:re}})}})}}function M(d,I,T,A=[]){return d.some(w=>{const B=w.path?T(I,w):A.length?A[A.length-1].match:b(I);return B&&(A.push({route:w,match:B}),w.routes&&M(w.routes,I,T,A)),!!B}),A}function b(d){return{path:"/",url:"/",params:{},isExact:d==="/"}}function R(d){const I=d.displayName||d.name,T=A=>{if(A&&A.computedMatch&&A.computedMatch.isExact){const w=A.computedMatch.path,B=h();B&&(B.updateName(w),B.setAttribute(g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"))}return p.createElement(d,{...A,__self:this,__source:{fileName:y,lineNumber:279}})};return T.displayName=`sentryRoute(${I})`,f(T,d),T}function h(){if(_)return _;const d=g.getActiveSpan(),I=d?g.getRootSpan(d):void 0;if(!I)return;const T=g.spanToJSON(I).op;return T==="navigation"||T==="pageload"?I:void 0}t.reactRouterV4BrowserTracingIntegration=o,t.reactRouterV4Instrumentation=c,t.reactRouterV5BrowserTracingIntegration=i,t.reactRouterV5Instrumentation=l,t.withSentryRouting=R},431412:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(212598),g=s(389615);function v(f){const p=a.browserTracingIntegration({...f,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:y,routes:_,match:o,instrumentPageLoad:i=!0,instrumentNavigation:c=!0}=f;return{...p,afterAllSetup(l){p.afterAllSetup(l);const C=R=>{a.startBrowserTracingPageLoadSpan(l,R)},M=R=>{a.startBrowserTracingNavigationSpan(l,R)},b=E(y,_,o);b(C,i,!1),b(M,!1,c)}}}function E(f,p,y){return(_,o=!0,i=!0)=>{let c,l;o&&a.WINDOW&&a.WINDOW.location&&m(p,a.WINDOW.location,y,(C,M="url")=>{l=C,c=_({name:l,attributes:{[g.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[g.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v3",[g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:M}})}),i&&f.listen&&f.listen(C=>{(C.action==="PUSH"||C.action==="POP")&&(c&&c.end(),m(p,C,y,(M,b="url")=>{l=M;const R={[g.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[g.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v3",[g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:b};c=_({name:l,attributes:R})}))})}}function m(f,p,y,_){let o=p.pathname;y({location:p,routes:f},(i,c,l)=>{if(i||!l)return _(o);const C=S(l.routes||[]);return C.length===0||C==="/*"?_(o):(o=C,_(o,"route"))})}function S(f){if(!Array.isArray(f)||f.length===0)return"";const p=f.filter(_=>!!_.path);let y=-1;for(let _=p.length-1;_>=0;_--){const o=p[_];if(o.path&&o.path.startsWith("/")){y=_;break}}return p.slice(y).filter(({path:_})=>!!_).map(({path:_})=>_).join("")}t.reactRouterV3BrowserTracingIntegration=v,t.reactRouterV3Instrumentation=E},739295:(L,t,s)=>
17{Object.defineProperty(t,"__esModule",{value:!0});const a=s(212598),g=s(389615),v=s(289375),E=s(158486),m=s(63696),S=s(240879),f=x=>x&&x.__esModule?x.default:x;function p(x){if(x&&x.__esModule)return x;const K=Object.create(null);if(x)for(const re in x)K[re]=x[re];return K.default=x,K}const y=f(E),_=p(m),o="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx";let i,c,l,C,M,b,R,h,d=!1;function I(x){const K=a.browserTracingIntegration({...x,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:re,useLocation:z,useNavigationType:W,createRoutesFromChildren:Z,matchRoutes:se,stripBasename:Ie,instrumentPageLoad:ve=!0,instrumentNavigation:ye=!0}=x;return{...K,afterAllSetup(Re){K.afterAllSetup(Re);const ke=Ge=>{a.startBrowserTracingNavigationSpan(Re,Ge)},Ue=a.WINDOW&&a.WINDOW.location&&a.WINDOW.location.pathname;ve&&Ue&&a.startBrowserTracingPageLoadSpan(Re,{name:Ue,attributes:{[g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[g.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[g.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v6"}}),c=re,l=z,C=W,b=se,M=Z,d=Ie||!1,R=ke,h=ye}}}function T(x,K,re,z,W,Z){return(se,Ie=!0,ve=!0)=>{const ye=a.WINDOW&&a.WINDOW.location&&a.WINDOW.location.pathname;Ie&&ye&&(i=se({name:ye,attributes:{[g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[g.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[g.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v6"}})),c=x,l=K,C=re,b=W,M=z,d=Z||!1,R=se,h=ve}}function A(x,K){if(!K||K==="/"||!x.toLowerCase().startsWith(K.toLowerCase()))return x;const re=K.endsWith("/")?K.length-1:K.length,z=x.charAt(re);return z&&z!=="/"?x:x.slice(re)||"/"}function w(x,K,re,z=""){if(!x||x.length===0)return[d?A(K.pathname,z):K.pathname,"url"];let W="";if(re)for(let Z=0;Z<re.length;Z++){const se=re[Z],Ie=se.route;if(Ie){if(Ie.index)return[d?A(se.pathname,z):se.pathname,"route"];const ve=Ie.path;if(ve){const ye=ve[0]==="/"||W[W.length-1]==="/"?ve:`/${ve}`;if(W+=ye,z+se.pathname===K.pathname)return v.getNumberOfUrlSegments(W)!==v.getNumberOfUrlSegments(se.pathname)&&W.slice(-2)!=="/*"?[(d?"":z)+ye,"route"]:[(d?"":z)+W,"route"]}}}return[d?A(K.pathname,z):K.pathname,"url"]}function B(x,K,re,z,W){const Z=Array.isArray(z)?z:b(re,K,W);if(x&&Z){const[se,Ie]=w(re,K,Z,W);x.updateName(se),x.setAttribute(g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Ie)}}function F(x,K,re,z,W){const Z=Array.isArray(z)?z:b(K,x,W);if(h&&(re==="PUSH"||re==="POP")&&Z){i&&i.end();const[se,Ie]=w(K,x,Z,W);i=R({name:se,attributes:{[g.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:Ie,[g.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[g.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v6"}})}}function G(x){if(!c||!l||!C||!M||!b||!R)return S.DEBUG_BUILD&&v.logger.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
18      useEffect: ${c}. useLocation: ${l}. useNavigationType: ${C}.
19      createRoutesFromChildren: ${M}. matchRoutes: ${b}. customStartTransaction: ${R}.`),x;let K=!0;const re=z=>{const W=l(),Z=C();return c(()=>{const se=M(z.children);K?(B(Q(),W,se),K=!1):F(W,se,Z)},[W,Z]),_.createElement(x,{...z,__self:this,__source:{fileName:o,lineNumber:329}})};return y(re,x),re}function Y(x){if(!c||!l||!C||!b||!R)return S.DEBUG_BUILD&&v.logger.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),x;let K=!0;const re=z=>{const{routes:W,locationArg:Z}=z,se=x(W,Z),Ie=l(),ve=C(),ye=typeof Z=="string"||Z&&Z.pathname?Z:Ie;return c(()=>{const Re=typeof ye=="string"?{pathname:ye}:ye;K?(B(Q(),Re,W),K=!1):F(Re,W,ve)},[ve,ye]),se};return(z,W)=>_.createElement(re,{routes:z,locationArg:W,__self:this,__source:{fileName:o,lineNumber:386}})}function X(x){return function(K,re){const z=x(K,re),W=re&&re.basename,Z=Q();return z.state.historyAction==="POP"&&Z&&B(Z,z.state.location,K,void 0,W),z.subscribe(se=>{const Ie=se.location;h&&(se.historyAction==="PUSH"||se.historyAction==="POP")&&F(Ie,K,se.historyAction,void 0,W)}),z}}function Q(){if(i)return i;const x=g.getActiveSpan(),K=x?g.getRootSpan(x):void 0;if(!K)return;const re=g.spanToJSON(K).op;return re==="navigation"||re==="pageload"?K:void 0}t.reactRouterV6BrowserTracingIntegration=I,t.reactRouterV6Instrumentation=T,t.withSentryReactRouterV6Routing=G,t.wrapCreateBrowserRouter=X,t.wrapUseRoutes=Y},744019:(L,t,s)=>
19{Object.defineProperty(t,"__esModule",{value:!0});const a=s(389615),g=s(289375),v="redux.action",E="info",m={attachReduxState:!0,actionTransformer:f=>f,stateTransformer:f=>f||null};function S(f){const p={...m,...f};return y=>(_,o)=>(p.attachReduxState&&a.getGlobalScope().addEventProcessor((c,l)=>{try{c.type===void 0&&c.contexts.state.state.type==="redux"&&(l.attachments=[...l.attachments||[],{filename:"redux_state.json",data:JSON.stringify(c.contexts.state.state.value)}])}catch{}return c}),y((c,l)=>{const C=_(c,l),M=a.getCurrentScope(),b=p.actionTransformer(l);typeof b<"u"&&b!==null&&M.addBreadcrumb({category:v,data:b,type:E});const R=p.stateTransformer(C);if(typeof R<"u"&&R!==null){const d=a.getClient(),I=d&&d.getOptions(),T=I&&I.normalizeDepth||3,A={state:{type:"redux",value:R}};g.addNonEnumerableProperty(A,"__sentry_override_normalization_depth__",3+T),M.setContext("state",A)}else M.setContext("state",null);const{configureScopeWithState:h}=p;return typeof h=="function"&&h(M,C),C},o))}t.createReduxEnhancer=S},353901:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(212598),g=s(389615);function v(E){const m={...E};g.applySdkMetadata(m,"react"),a.init(m)}t.init=v},558771:(L,t,s)=>{var a=s(80247),{_nullishCoalesce:g,_optionalChain:v}=s(289375);Object.defineProperty(t,"__esModule",{value:!0});const E=s(389615),m=s(289375),S=s(443250),f=m.GLOBAL_OBJ,p="sentryReplaySession",y="replay_event",_="Unable to send Replay",o=3e5,i=9e5,c=5e3,l=5500,C=6e4,M=5e3,b=3,R=15e4,h=5e3,d=3e3,I=300,T=2e7,A=4999,w=15e3,B=36e5;function F(e,n){return e??n()}function G(e){let n,r=e[0],u=1;for(;u<e.length;){const O=e[u],D=e[u+1];if(u+=2,(O==="optionalAccess"||O==="optionalCall")&&r==null)return;O==="access"||O==="optionalAccess"?(n=r,r=D(r)):(O==="call"||O==="optionalCall")&&(r=D((...N)=>r.call(n,...N)),n=void 0)}return r}var Y;(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"})(Y||(Y={}));function X(e){return e.nodeType===e.ELEMENT_NODE}function Q(e){const n=G([e,"optionalAccess",r=>r.host]);return G([n,"optionalAccess",r=>r.shadowRoot])===e}function x(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function K(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e}function re(e){const{cssText:n}=e;if(n.split('"').length<3)return n;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function z(e){try{const n=e.rules||e.cssRules;return n?K(Array.from(n,W).join("")):null}catch{return null}}function W(e){let n;if(se(e))try{n=z(e.styleSheet)||re(e)}catch{}else if(Ie(e)&&e.selectorText.includes(":"))return Z(e.cssText);return n||e.cssText}function Z(e){const n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(n,"$1\\$2")}function se(e){return"styleSheet"in e}function Ie(e){return"selectorText"in e}class ve{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(n){if(!n)return-1;const r=G([this,"access",u=>u.getMeta,"call",u=>u(n),"optionalAccess",u=>u.id]);return F(r,()=>-1)}getNode(n){return this.idNodeMap.get(n)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(n){return this.nodeMetaMap.get(n)||null}removeNodeFromMap(n){const r=this.getId(n);this.idNodeMap.delete(r),n.childNodes&&n.childNodes.forEach(u=>this.removeNodeFromMap(u))}has(n){return this.idNodeMap.has(n)}hasNode(n){return this.nodeMetaMap.has(n)}add(n,r){const u=r.id;this.idNodeMap.set(u,n),this.nodeMetaMap.set(n,r)}replace(n,r){const u=this.getNode(n);if(u){const O=this.nodeMetaMap.get(u);O&&this.nodeMetaMap.set(r,O)}this.idNodeMap.set(n,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ye(){return new ve}function Re({maskInputOptions:e,tagName:n,type:r}
19){return n==="OPTION"&&(n="SELECT"),!!(e[n.toLowerCase()]||r&&e[r]||r==="password"||n==="INPUT"&&!r&&e.text)}function ke({isMasked:e,element:n,value:r,maskInputFn:u}){let O=r||"";return e?(u&&(O=u(O,n)),"*".repeat(O.length)):O}function Ue(e){return e.toLowerCase()}function Ge(e){return e.toUpperCase()}const ct="__rrweb_original__";function It(e){const n=e.getContext("2d");if(!n)return!0;const r=50;for(let u=0;u<e.width;u+=r)for(let O=0;O<e.height;O+=r){const D=n.getImageData,N=ct in D?D[ct]:D;if(new Uint32Array(N.call(n,u,O,Math.min(r,e.width-u),Math.min(r,e.height-O)).data.buffer).some(k=>k!==0))return!1}return!0}function nt(e){const n=e.type;return e.hasAttribute("data-rr-is-password")?"password":n?Ue(n):null}function ut(e,n,r){return n==="INPUT"&&(r==="radio"||r==="checkbox")?e.getAttribute("value")||"":e.value}let Yt=1;const Kt=new RegExp("[^a-z0-9-_:]"),rt=-2;function vt(){return Yt++}function Dr(e){if(e instanceof HTMLFormElement)return"form";const n=Ue(e.tagName);return Kt.test(n)?"div":n}function Nr(e){let n="";return e.indexOf("//")>-1?n=e.split("/").slice(0,3).join("/"):n=e.split("/")[0],n=n.split("?")[0],n}let lt,En;const wr=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,kr=/^(?:[a-z+]+:)?\/\//i,Pr=/^www\..*/i,Br=/^(data:)([^,]*),(.*)/i;function Nt(e,n){return(e||"").replace(wr,(r,u,O,D,N,P)=>{const k=O||N||P,U=u||D||"";if(!k)return r;if(kr.test(k)||Pr.test(k))return`url(${U}${k}${U})`;if(Br.test(k))return`url(${U}${k}${U})`;if(k[0]==="/")return`url(${U}${Nr(n)+k}${U})`;const j=n.split("/"),H=k.split("/");j.pop();for(const $ of H)$!=="."&&($===".."?j.pop():j.push($));return`url(${U}${j.join("/")}${U})`})}const Lr=/^[^ \t\n\r\u000c]+/,Ur=/^[, \t\n\r\u000c]+/;function Fr(e,n){if(n.trim()==="")return n;let r=0;function u(D){let N;const P=D.exec(n.substring(r));return P?(N=P[0],r+=N.length,N):""}const O=[];for(;u(Ur),!(r>=n.length);){let D=u(Lr);if(D.slice(-1)===",")D=dt(e,D.substring(0,D.length-1)),O.push(D);else{let N="";D=dt(e,D);let P=!1;for(;;){const k=n.charAt(r);if(k===""){O.push((D+N).trim());break}else if(P)k===")"&&(P=!1);else if(k===","){r+=1,O.push((D+N).trim());break}else k==="("&&(P=!0);N+=k,r+=1}}}return O.join(", ")}function dt(e,n){if(!n||n.trim()==="")return n;const r=e.createElement("a");return r.href=n,r.href}function Hr(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Vt(){const e=document.createElement("a");return e.href="",e.href}function _n(e,n,r,u,O,D){return u&&(r==="src"||r==="href"&&!(n==="use"&&u[0]==="#")||r==="xlink:href"&&u[0]!=="#"||r==="background"&&(n==="table"||n==="td"||n==="th")?dt(e,u):r==="srcset"?Fr(e,u):r==="style"?Nt(u,Vt()):n==="object"&&r==="data"?dt(e,u):typeof D=="function"?D(r,u,O):u)}function Tn(e,n,r){return(e==="video"||e==="audio")&&n==="autoplay"}function jr(e,n,r,u){try{if(u&&e.matches(u))return!1;if(typeof n=="string"){if(e.classList.contains(n))return!0}else for(let O=e.classList.length;O--;){const D=e.classList[O];if(n.test(D))return!0}if(r)return e.matches(r)}catch{}return!1}function Gr(e,n){for(let r=e.classList.length;r--;){const u=e.classList[r];if(n.test(u))return!0}return!1}function st(e,n,r=1/0,u=0){return!e||e.nodeType!==e.ELEMENT_NODE||u>r?-1:n(e)?u:st(e.parentNode,n,r,u+1)}function ft(e,n){return r=>{const u=r;if(u===null)return!1;try{if(e){if(typeof e=="string"){if(u.matches(`.${e}`))return!0}else if(Gr(u,e))return!0}return!!(n&&u.matches(n))}catch{return!1}}}function ht(e,n,r,u,O,D){try{const N=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(N===null)return!1;if(N.tagName==="INPUT"){const U=N.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(U))return!0}let P=-1,k=-1;if(D){if(k=st(N,ft(u,O)),k<0)return!0;P=st(N,ft(n,r),k>=0?k:1/0)}else{if(P=st(N,ft(n,r)),P<0)return!1;k=st(N,ft(u,O),P>=0?P:1/0)}return P>=0?k>=0?P<=k:!0:k>=0?!1:!!D}catch{}return!!D}function $r(e,n,r){const u=e.contentWindow;if(!u)return;let O=!1,D;try{D=u.document.readyState}catch{return}if(D!=="complete"){const P=setTimeout(()=>{O||(n(),O=!0)},r);e.addEventListener("load",()=>{clearTimeout(P),O=!0,n()});return}const N="about:blank";if(u.location.href!==N||e.src===N||e.src==="")return setTimeout(n,0),e.addEventListener("load",n);e.addEventListener("load",n)}function zr(e,n,r){let u=!1,O;try{O=e.sheet}catch{return}if(O)return;const D=setTimeout(()=>{u||(n(),u=!0)},r);e.addEventListener("load",()=>{clearTimeout(D),u=!0,n()})}function Wr(e,n){const{doc:r,mirror:u,blockClass:O,blockSelector:D,unblockSelector:N,maskAllText:P,maskAttributeFn:k,maskTextClass:U,unmaskTextClass:j,maskTextSelector:H,unmaskTextSelector:$,inlineStylesheet:V,maskInputOptions:J={},maskTextFn:q,maskInputFn:ie,dataURLOptions:te={},inlineImages:ae,recordCanvas:Se,keepIframeSrcFn:he,newlyAddedElement:Ce=!1}=n,oe=xr(r,u);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Y.Document,childNodes:[],compatMode:e.compatMode}:{type:Y.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Y.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:oe};case e.ELEMENT_NODE:return Kr(e,{doc:r,blockClass:O,blockSelector:D,unblockSelector:N,inlineStylesheet:V,maskAttributeFn:k,maskInputOptions:J,maskInputFn:ie,dataURLOptions:te,inlineImages:ae,recordCanvas:Se,keepIframeSrcFn:he,newlyAddedElement:Ce,rootId:oe,maskAllText:P,maskTextClass:U,unmaskTextClass:j,maskTextSelector:H,unmaskTextSelector:$});case e.TEXT_NODE:return Yr(e,{maskAllText:P,maskTextClass:U,unmaskTextClass:j,maskTextSelector:H,unmaskTextSelector:$,maskTextFn:q,maskInputOptions:J,maskInputFn:ie,rootId:oe});case e.CDATA_SECTION_NODE:return{type:Y.CDATA,textContent:"",rootId:oe};case e.COMMENT_NODE:return{type:Y.Comment,textContent:e.textContent||"",rootId:oe};default:return!1}}function xr(e,n){if(!n.hasNode(e))return;const r=n.getId(e);return r===1?void 0:r}function Yr(e,n){const{maskAllText:r,maskTextClass:u,unmaskTextClass:O,maskTextSelector:D,unmaskTextSelector:N,maskTextFn:P,maskInputOptions:k,maskInputFn:U,rootId:j}=n,H=e.parentNode&&e.parentNode.tagName;let $=e.textContent;const V=H==="STYLE"?!0:void 0,J=H==="SCRIPT"?!0:void 0,q=H==="TEXTAREA"?!0:void 0;if(V&&$){try{e.nextSibling||e.previousSibling||G([e,"access",te=>te.parentNode,"access",te=>te.sheet,"optionalAccess",te=>te.cssRules])&&($=z(e.parentNode.sheet))}catch(te){a.warn(`Cannot get CSS styles from text's parentNode. Error: ${te}`,e)}$=Nt($,Vt())}J&&($="SCRIPT_PLACEHOLDER");const ie=ht(e,u,D,O,N,r);if(!V&&!J&&!q&&$&&ie&&($=P?P($,e.parentElement):$.replace(/[\S]/g,"*")),q&&$&&(k.textarea||ie)&&($=U?U($,e.parentNode):$.replace(/[\S]/g,"*")),H==="OPTION"&&$){const te=Re({type:null,tagName:H,maskInputOptions:k});$=ke({isMasked:ht(e,u,D,O,N,te),element:e,value:$,maskInputFn:U})}return{type:Y.Text,textContent:$||"",isStyle:V,rootId:j}}function Kr(e,n){const{doc:r,blockClass:u,blockSelector:O,unblockSelector:D,inlineStylesheet:N,maskInputOptions:P={},maskAttributeFn:k,maskInputFn:U,dataURLOptions:j={}
19,inlineImages:H,recordCanvas:$,keepIframeSrcFn:V,newlyAddedElement:J=!1,rootId:q,maskAllText:ie,maskTextClass:te,unmaskTextClass:ae,maskTextSelector:Se,unmaskTextSelector:he}=n,Ce=jr(e,u,O,D),oe=Dr(e);let ee={};const de=e.attributes.length;for(let ne=0;ne<de;ne++){const le=e.attributes[ne];le.name&&!Tn(oe,le.name,le.value)&&(ee[le.name]=_n(r,oe,Ue(le.name),le.value,e,k))}if(oe==="link"&&N){const ne=Array.from(r.styleSheets).find(be=>be.href===e.href);let le=null;ne&&(le=z(ne)),le&&(delete ee.rel,delete ee.href,ee._cssText=Nt(le,ne.href))}if(oe==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const ne=z(e.sheet);ne&&(ee._cssText=Nt(ne,Vt()))}if(oe==="input"||oe==="textarea"||oe==="select"||oe==="option"){const ne=e,le=nt(ne),be=ut(ne,Ge(oe),le),Ne=ne.checked;if(le!=="submit"&&le!=="button"&&be){const we=ht(ne,te,Se,ae,he,Re({type:le,tagName:Ge(oe),maskInputOptions:P}));ee.value=ke({isMasked:we,element:ne,value:be,maskInputFn:U})}Ne&&(ee.checked=Ne)}if(oe==="option"&&(e.selected&&!P.select?ee.selected=!0:delete ee.selected),oe==="canvas"&&$){if(e.__context==="2d")It(e)||(ee.rr_dataURL=e.toDataURL(j.type,j.quality));else if(!("__context"in e)){const ne=e.toDataURL(j.type,j.quality),le=document.createElement("canvas");le.width=e.width,le.height=e.height;const be=le.toDataURL(j.type,j.quality);ne!==be&&(ee.rr_dataURL=ne)}}if(oe==="img"&&H){lt||(lt=r.createElement("canvas"),En=lt.getContext("2d"));const ne=e,le=ne.crossOrigin;ne.crossOrigin="anonymous";const be=()=>{ne.removeEventListener("load",be);try{lt.width=ne.naturalWidth,lt.height=ne.naturalHeight,En.drawImage(ne,0,0),ee.rr_dataURL=lt.toDataURL(j.type,j.quality)}catch(Ne){a.warn(`Cannot inline img src=${ne.currentSrc}! Error: ${Ne}`)}le?ee.crossOrigin=le:ne.removeAttribute("crossorigin")};ne.complete&&ne.naturalWidth!==0?be():ne.addEventListener("load",be)}if((oe==="audio"||oe==="video")&&(ee.rr_mediaState=e.paused?"paused":"played",ee.rr_mediaCurrentTime=e.currentTime),J||(e.scrollLeft&&(ee.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(ee.rr_scrollTop=e.scrollTop)),Ce){const{width:ne,height:le}=e.getBoundingClientRect();ee={class:ee.class,rr_width:`${ne}px`,rr_height:`${le}px`}}oe==="iframe"&&!V(ee.src)&&(e.contentDocument||(ee.rr_src=ee.src),delete ee.src);let Ae;try{customElements.get(oe)&&(Ae=!0)}catch{}return{type:Y.Element,tagName:oe,attributes:ee,childNodes:[],isSVG:Hr(e)||void 0,needBlock:Ce,rootId:q,isCustom:Ae}}function Te(e){return e==null?"":e.toLowerCase()}function Vr(e,n){if(n.comment&&e.type===Y.Comment)return!0;if(e.type===Y.Element){if(n.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(n.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Te(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Te(e.attributes.name)==="application-name"||Te(e.attributes.rel)==="icon"||Te(e.attributes.rel)==="apple-touch-icon"||Te(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(n.headMetaDescKeywords&&Te(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(Te(e.attributes.property).match(/^(og|twitter|fb):/)||Te(e.attributes.name).match(/^(og|twitter):/)||Te(e.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(Te(e.attributes.name)==="robots"||Te(e.attributes.name)==="googlebot"||Te(e.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(Te(e.attributes.name)==="author"||Te(e.attributes.name)==="generator"||Te(e.attributes.name)==="framework"||Te(e.attributes.name)==="publisher"||Te(e.attributes.name)==="progid"||Te(e.attributes.property).match(/^article:/)||Te(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(Te(e.attributes.name)==="google-site-verification"||Te(e.attributes.name)==="yandex-verification"||Te(e.attributes.name)==="csrf-token"||Te(e.attributes.name)==="p:domain_verify"||Te(e.attributes.name)==="verify-v1"||Te(e.attributes.name)==="verification"||Te(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function pt(e,n){const{doc:r,mirror:u,blockClass:O,blockSelector:D,unblockSelector:N,maskAllText:P,maskTextClass:k,unmaskTextClass:U,maskTextSelector:j,unmaskTextSelector:H,skipChild:$=!1,inlineStylesheet:V=!0,maskInputOptions:J={},maskAttributeFn:q,maskTextFn:ie,maskInputFn:te,slimDOMOptions:ae,dataURLOptions:Se={},inlineImages:he=!1,recordCanvas:Ce=!1,onSerialize:oe,onIframeLoad:ee,iframeLoadTimeout:de=5e3,onStylesheetLoad:Ae,stylesheetLoadTimeout:ne=5e3,keepIframeSrcFn:le=()=>!1,newlyAddedElement:be=!1}=n;let{preserveWhiteSpace:Ne=!0}=n;const we=Wr(e,{doc:r,mirror:u,blockClass:O,blockSelector:D,maskAllText:P,unblockSelector:N,maskTextClass:k,unmaskTextClass:U,maskTextSelector:j,unmaskTextSelector:H,inlineStylesheet:V,maskInputOptions:J,maskAttributeFn:q,maskTextFn:ie,maskInputFn:te,dataURLOptions:Se,inlineImages:he,recordCanvas:Ce,keepIframeSrcFn:le,newlyAddedElement:be});if(!we)return a.warn(e,"not serialized"),null;let He;u.hasNode(e)?He=u.getId(e):Vr(we,ae)||!Ne&&we.type===Y.Text&&!we.isStyle&&!we.textContent.replace(/^\s+|\s+$/gm,"").length?He=rt:He=vt();const _e=Object.assign(we,{id:He});if(u.add(e,_e),He===rt)return null;oe&&oe(e);let je=!$;if(_e.type===Y.Element){je=je&&!_e.needBlock,delete _e.needBlock;const De=e.shadowRoot;De&&x(De)&&(_e.isShadowHost=!0)}if((_e.type===Y.Document||_e.type===Y.Element)&&je){ae.headWhitespace&&_e.type===Y.Element&&_e.tagName==="head"&&(Ne=!1);const De={doc:r,mirror:u,blockClass:O,blockSelector:D,maskAllText:P,unblockSelector:N,maskTextClass:k,unmaskTextClass:U,maskTextSelector:j,unmaskTextSelector:H,skipChild:$,inlineStylesheet:V,maskInputOptions:J,maskAttributeFn:q,maskTextFn:ie,maskInputFn:te,slimDOMOptions:ae,dataURLOptions:Se,inlineImages:he,recordCanvas:Ce,preserveWhiteSpace:Ne,onSerialize:oe,onIframeLoad:ee,iframeLoadTimeout:de,onStylesheetLoad:Ae,stylesheetLoadTimeout:ne,keepIframeSrcFn:le};for(const Fe of Array.from(e.childNodes)){const We=pt(Fe,De);We&&_e.childNodes.push(We)}if(X(e)&&e.shadowRoot)for(const Fe of Array.from(e.shadowRoot.childNodes)){const We=pt(Fe,De);We&&(x(e.shadowRoot)&&(We.isShadow=!0),_e.childNodes.push(We))}}return e.parentNode&&Q(e.parentNode)&&x(e.parentNode)&&(_e.isShadow=!0),_e.type===Y.Element&&_e.tagName==="iframe"&&$r(e,()=>{const De=e.contentDocument;if(De&&ee){const Fe=pt(De,{doc:De,mirror:u,blockClass:O,blockSelector:D,unblockSelector:N,maskAllText:P,maskTextClass:k,unmaskTextClass:U,maskTextSelector:j,unmaskTextSelector:H,skipChild:!1,inlineStylesheet:V,maskInputOptions:J,maskAttributeFn:q,maskTextFn:ie,maskInputFn:te,slimDOMOptions:ae,dataURLOptions:Se,inlineImages:he,recordCanvas:Ce,preserveWhiteSpace:Ne,onSerialize:oe,onIframeLoad:ee,iframeLoadTimeout:de,onStylesheetLoad:Ae,stylesheetLoadTimeout:ne,keepIframeSrcFn:le});Fe&&ee(e,Fe)}},de),_e.type===Y.Element&&_e.tagName==="link"&&_e.attributes.rel==="stylesheet"&&zr(e,()=>{if(Ae){const De=pt(e,{doc:r,mirror:u,blockClass:O,blockSelector:D,unblockSelector:N,maskAllText:P,maskTextClass:k,unmaskTextClass:U,maskTextSelector:j,unmaskTextSelector:H,skipChild:!1,inlineStylesheet:V,maskInputOptions:J,maskAttributeFn:q,maskTextFn:ie,maskInputFn:te,slimDOMOptions:ae,dataURLOptions:Se,inlineImages:he,recordCanvas:Ce,preserveWhiteSpace:Ne,onSerialize:oe,onIframeLoad:ee,iframeLoadTimeout:de,onStylesheetLoad:Ae,stylesheetLoadTimeout:ne,keepIframeSrcFn:le});De&&Ae(e,De)}},ne),_e}function Jr(e,n){const{mirror:r=new ve,blockClass:u="rr-block",blockSelector:O=null,unblockSelector:D=null,maskAllText:N=!1,maskTextClass:P="rr-mask",unmaskTextClass:k=null,maskTextSelector:U=null,unmaskTextSelector:j=null,inlineStylesheet:H=!0,inl
19ineImages:$=!1,recordCanvas:V=!1,maskAllInputs:J=!1,maskAttributeFn:q,maskTextFn:ie,maskInputFn:te,slimDOM:ae=!1,dataURLOptions:Se,preserveWhiteSpace:he,onSerialize:Ce,onIframeLoad:oe,iframeLoadTimeout:ee,onStylesheetLoad:de,stylesheetLoadTimeout:Ae,keepIframeSrcFn:ne=()=>!1}=n||{};return pt(e,{doc:e,mirror:r,blockClass:u,blockSelector:O,unblockSelector:D,maskAllText:N,maskTextClass:P,unmaskTextClass:k,maskTextSelector:U,unmaskTextSelector:j,skipChild:!1,inlineStylesheet:H,maskInputOptions:J===!0?{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}:J===!1?{}:J,maskAttributeFn:q,maskTextFn:ie,maskInputFn:te,slimDOMOptions:ae===!0||ae==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:ae==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:ae===!1?{}:ae,dataURLOptions:Se,inlineImages:$,recordCanvas:V,preserveWhiteSpace:he,onSerialize:Ce,onIframeLoad:oe,iframeLoadTimeout:ee,onStylesheetLoad:de,stylesheetLoadTimeout:Ae,keepIframeSrcFn:ne,newlyAddedElement:!1})}function Je(e){let n,r=e[0],u=1;for(;u<e.length;){const O=e[u],D=e[u+1];if(u+=2,(O==="optionalAccess"||O==="optionalCall")&&r==null)return;O==="access"||O==="optionalAccess"?(n=r,r=D(r)):(O==="call"||O==="optionalCall")&&(r=D((...N)=>r.call(n,...N)),n=void 0)}return r}function Pe(e,n,r=document){const u={capture:!0,passive:!0};return r.addEventListener(e,n,u),()=>r.removeEventListener(e,n,u)}const mt=`Please stop import mirror directly. Instead of that,\r
20now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
21or you can use record.mirror to access the mirror instance during recording.`;let In={map:{},getId(){return a.error(mt),-1},getNode(){return a.error(mt),null},removeNodeFromMap(){a.error(mt)},has(){return a.error(mt),!1},reset(){a.error(mt)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(In=new Proxy(In,{get(e,n,r){return n==="map"&&a.error(mt),Reflect.get(e,n,r)}}));function bt(e,n,r={}){let u=null,O=0;return function(...D){const N=Date.now();!O&&r.leading===!1&&(O=N);const P=n-(N-O),k=this;P<=0||P>n?(u&&(ns(u),u=null),O=N,e.apply(k,D)):!u&&r.trailing!==!1&&(u=kt(()=>{O=r.leading===!1?0:Date.now(),u=null,e.apply(k,D)},P))}}function vn(e,n,r,u,O=window){const D=O.Object.getOwnPropertyDescriptor(e,n);return O.Object.defineProperty(e,n,u?r:{set(N){kt(()=>{r.set.call(this,N)},0),D&&D.set&&D.set.call(this,N)}}),()=>vn(e,n,D||{},!0)}function Jt(e,n,r){try{if(!(n in e))return()=>{};const u=e[n],O=r(u);return typeof O=="function"&&(O.prototype=O.prototype||{},Object.defineProperties(O,{__rrweb_original__:{enumerable:!1,value:u}})),e[n]=O,()=>{e[n]=u}}catch{return()=>{}}}let wt=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(wt=()=>new Date().getTime());function bn(e){const n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Je([n,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollLeft])||Je([n,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollLeft])||Je([n,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollLeft])||0,top:n.scrollingElement?n.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Je([n,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollTop])||Je([n,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollTop])||Je([n,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollTop])||0}}function Rn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Cn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function On(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function $e(e,n,r,u,O){if(!e)return!1;const D=On(e);if(!D)return!1;const N=ft(n,r);if(!O){const U=u&&D.matches(u);return N(D)&&!U}const P=st(D,N);let k=-1;return P<0?!1:(u&&(k=st(D,ft(null,u))),P>-1&&k<0?!0:P<k)}function Xr(e,n){return n.getId(e)!==-1}function Xt(e,n){return n.getId(e)===rt}function Mn(e,n){if(Q(e))return!1;const r=n.getId(e);return n.has(r)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Mn(e.parentNode,n):!0:!0}function Qt(e){return!!e.changedTouches}function Qr(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=(...n)=>{let r=n[0];if(!(0 in n))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function An(e,n){return!!(e.nodeName==="IFRAME"&&n.getMeta(e))}function Dn(e,n){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&n.getMeta(e))}function Zt(e){return!!Je([e,"optionalAccess",n=>n.shadowRoot])}class Zr{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(n){return g(this.styleIDMap.get(n),()=>-1)}has(n){return this.styleIDMap.has(n)}add(n,r){if(this.has(n))return this.getId(n);let u;return r===void 0?u=this.id++:u=r,this.styleIDMap.set(n,u),this.idStyleMap.set(u,n),u}getStyle(n){return this.idStyleMap.get(n)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Nn(e){let n=null;return Je([e,"access",r=>r.getRootNode,"optionalCall",r=>r(),"optionalAccess",r=>r.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function qr(e){let n=e,r;for(;r=Nn(n);)n=r;return n}function es(e){const n=e.ownerDocument;if(!n)return!1;const r=qr(e);return n.contains(r)}function wn(e){const n=e.ownerDocument;return n?n.contains(e)||es(e):!1}const kn={};function qt(e){const n=kn[e];if(n)return n;const r=window.document;let u=window[e];if(r&&typeof r.createElement=="function")try{const O=r.createElement("iframe");O.hidden=!0,r.head.appendChild(O);const D=O.contentWindow;D&&D[e]&&(u=D[e]),r.head.removeChild(O)}catch{}return kn[e]=u.bind(window)}function ts(...e){return qt("requestAnimationFrame")(...e)}
21function kt(...e){return qt("setTimeout")(...e)}function ns(...e){return qt("clearTimeout")(...e)}var ce=(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))(ce||{}),ue=(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))(ue||{}),Be=(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))(Be||{}),Ve=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Ve||{});function rs(e){let n,r=e[0],u=1;for(;u<e.length;){const O=e[u],D=e[u+1];if(u+=2,(O==="optionalAccess"||O==="optionalCall")&&r==null)return;O==="access"||O==="optionalAccess"?(n=r,r=D(r)):(O==="call"||O==="optionalCall")&&(r=D((...N)=>r.call(n,...N)),n=void 0)}return r}function Pn(e){return"__ln"in e}class ss{constructor(){this.length=0,this.head=null,this.tail=null}get(n){if(n>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let u=0;u<n;u++)r=rs([r,"optionalAccess",O=>O.next])||null;return r}addNode(n){const r={value:n,previous:null,next:null};if(n.__ln=r,n.previousSibling&&Pn(n.previousSibling)){const u=n.previousSibling.__ln.next;r.next=u,r.previous=n.previousSibling.__ln,n.previousSibling.__ln.next=r,u&&(u.previous=r)}else if(n.nextSibling&&Pn(n.nextSibling)&&n.nextSibling.__ln.previous){const u=n.nextSibling.__ln.previous;r.previous=u,r.next=n.nextSibling.__ln,n.nextSibling.__ln.previous=r,u&&(u.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(n){const r=n.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),n.__ln&&delete n.__ln,this.length--)}}const Bn=(e,n)=>`${e}@${n}`;class is{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=n=>{n.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const n=[],r=new Set,u=new ss,O=k=>{let U=k,j=rt;for(;j===rt;)U=U&&U.nextSibling,j=U&&this.mirror.getId(U);return j},D=k=>{if(!k.parentNode||!wn(k))return;const U=Q(k.parentNode)?this.mirror.getId(Nn(k)):this.mirror.getId(k.parentNode),j=O(k);if(U===-1||j===-1)return u.addNode(k);const H=pt(k,{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:$=>{An($,this.mirror)&&this.iframeManager.addIframe($),Dn($,this.mirror)&&this.stylesheetManager.trackLinkElement($),Zt(k)&&this.shadowDomManager.addShadowRoot(k.shadowRoot,this.doc)},onIframeLoad:($,V)=>{this.iframeManager.attachIframe($,V),this.shadowDomManager.observeAttachShadow($)},onStylesheetLoad:($,V)=>{this.stylesheetManager.attachLinkElement($,V)}});H&&(n.push({parentId:U,nextId:j,node:H}),r.add(H.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const k of this.movedSet)Ln(this.removes,k,this.mirror)&&!this.movedSet.has(k.parentNode)||D(k);for(const k of this.addedSet)!Fn(this.droppedSet,k)&&!Ln(this.removes,k,this.mirror)||Fn(this.movedSet,k)?D(k):this.droppedSet.add(k);let N=null;for(;u.length;){let k=null;if(N){const U=this.mirror.getId(N.value.parentNode),j=O(N.value);U!==-1&&j!==-1&&(k=N)}if(!k){let U=u.tail;for(;U;){const j=U;if(U=U.previous,j){const H=this.mirror.getId(j.value.parentNode);
21if(O(j.value)===-1)continue;if(H!==-1){k=j;break}else{const V=j.value;if(V.parentNode&&V.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const J=V.parentNode.host;if(this.mirror.getId(J)!==-1){k=j;break}}}}}}if(!k){for(;u.head;)u.removeNode(u.head.value);break}N=k.previous,u.removeNode(k.value),D(k.value)}const P={texts:this.texts.map(k=>({id:this.mirror.getId(k.node),value:k.value})).filter(k=>!r.has(k.id)).filter(k=>this.mirror.has(k.id)),attributes:this.attributes.map(k=>{const{attributes:U}=k;if(typeof U.style=="string"){const j=JSON.stringify(k.styleDiff),H=JSON.stringify(k._unchangedStyles);j.length<U.style.length&&(j+H).split("var(").length===U.style.split("var(").length&&(U.style=k.styleDiff)}return{id:this.mirror.getId(k.node),attributes:U}}).filter(k=>!r.has(k.id)).filter(k=>this.mirror.has(k.id)),removes:this.removes,adds:n};!P.texts.length&&!P.attributes.length&&!P.removes.length&&!P.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(P))},this.processMutation=n=>
21{if(!Xt(n.target,this.mirror))switch(n.type){case"characterData":{const r=n.target.textContent;!$e(n.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&r!==n.oldValue&&this.texts.push({value:ht(n.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&r?this.maskTextFn?this.maskTextFn(r,On(n.target)):r.replace(/[\S]/g,"*"):r,node:n.target});break}case"attributes":{const r=n.target;let u=n.attributeName,O=n.target.getAttribute(u);if(u==="value"){const N=nt(r),P=r.tagName;O=ut(r,P,N);const k=Re({maskInputOptions:this.maskInputOptions,tagName:P,type:N}),U=ht(n.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,k);O=ke({isMasked:U,element:r,value:O,maskInputFn:this.maskInputFn})}if($e(n.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||O===n.oldValue)return;let D=this.attributeMap.get(n.target);if(r.tagName==="IFRAME"&&u==="src"&&!this.keepIframeSrcFn(O))if(!r.contentDocument)u="rr_src";else return;if(D||(D={node:n.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(D),this.attributeMap.set(n.target,D)),u==="type"&&r.tagName==="INPUT"&&(n.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Tn(r.tagName,u)&&(D.attributes[u]=_n(this.doc,Ue(r.tagName),Ue(u),O,r,this.maskAttributeFn),u==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const N=this.unattachedDoc.createElement("span");n.oldValue&&N.setAttribute("style",n.oldValue);for(const P of Array.from(r.style)){const k=r.style.getPropertyValue(P),U=r.style.getPropertyPriority(P);k!==N.style.getPropertyValue(P)||U!==N.style.getPropertyPriority(P)?U===""?D.styleDiff[P]=k:D.styleDiff[P]=[k,U]:D._unchangedStyles[P]=[k,U]}for(const P of Array.from(N.style))r.style.getPropertyValue(P)===""&&(D.styleDiff[P]=!1)}break}case"childList":{if($e(n.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;n.addedNodes.forEach(r=>this.genAdds(r,n.target)),n.removedNodes.forEach(r=>{const u=this.mirror.getId(r),O=Q(n.target)?this.mirror.getId(n.target.host):this.mirror.getId(n.target);$e(n.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Xt(r,this.mirror)||!Xr(r,this.mirror)||(this.addedSet.has(r)?(en(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(n.target)&&u===-1||Mn(n.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Bn(u,O)]?en(this.movedSet,r):this.removes.push({parentId:O,id:u,isShadow:Q(n.target)&&x(n.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(n,r)=>{if(!this.processedNodeManager.inOtherBuffer(n,this)&&!(this.addedSet.has(n)||this.movedSet.has(n))){if(this.mirror.hasNode(n)){if(Xt(n,this.mirror))return;this.movedSet.add(n);let u=null;r&&this.mirror.hasNode(r)&&(u=this.mirror.getId(r)),u&&u!==-1&&(this.movedMap[Bn(this.mirror.getId(n),u)]=!0)}else this.addedSet.add(n),this.droppedSet.delete(n);$e(n,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(n.childNodes.forEach(u=>this.genAdds(u)),Zt(n)&&n.shadowRoot.childNodes.forEach(u=>{this.processedNodeManager.add(u,this),this.genAdds(u,n)}))}}}init(n){["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(r=>{this[r]=n[r]})}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 en(e,n){e.delete(n),n.childNodes.forEach(r=>en(e,r))}function Ln(e,n,r){return e.length===0?!1:Un(e,n,r)}function Un(e,n,r){const{parentNode:u}=n;if(!u)return!1;const O=r.getId(u);return e.some(D=>D.id===O)?!0:Un(e,u,r)}function Fn(e,n){return e.size===0?!1:Hn(e,n)}function Hn(e,n){const{parentNode:r}=n;return r?e.has(r)?!0:Hn(e,r):!1}let Rt;function os(e){Rt=e}function as(){Rt=void 0}const fe=e=>Rt?(...r)=>{try{return e(...r)}catch(u){if(Rt&&Rt(u)===!0)return()=>{};throw u}}:e;function Ye(e){let n,r=e[0],u=1;for(;u<e.length;){const O=e[u],D=e[u+1];if(u+=2,(O==="optionalAccess"||O==="optionalCall")&&r==null)return;O==="access"||O==="optionalAccess"?(n=r,r=D(r)):(O==="call"||O==="optionalCall")&&(r=D((...N)=>
21r.call(n,...N)),n=void 0)}return r}const gt=[];function Ct(e){try{if("composedPath"in e){const n=e.composedPath();if(n.length)return n[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function jn(e,n){const r=new is;gt.push(r),r.init(e);let u=window.MutationObserver||window.__rrMutationObserver;const O=Ye([window,"optionalAccess",N=>N.Zone,"optionalAccess",N=>N.__symbol__,"optionalCall",N=>N("MutationObserver")]);O&&window[O]&&(u=window[O]);const D=new u(fe(N=>{e.onMutation&&e.onMutation(N)===!1||r.processMutations.bind(r)(N)}));return D.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),D}function cs({mousemoveCb:e,sampling:n,doc:r,mirror:u}){if(n.mousemove===!1)return()=>{};const O=typeof n.mousemove=="number"?n.mousemove:50,D=typeof n.mousemoveCallback=="number"?n.mousemoveCallback:500;let N=[],P;const k=bt(fe(H=>{const $=Date.now()-P;e(N.map(V=>(V.timeOffset-=$,V)),H),N=[],P=null}),D),U=fe(bt(fe(H=>{const $=Ct(H),{clientX:V,clientY:J}=Qt(H)?H.changedTouches[0]:H;P||(P=wt()),N.push({x:V,y:J,id:u.getId($),timeOffset:wt()-P}),k(typeof DragEvent<"u"&&H instanceof DragEvent?ue.Drag:H instanceof MouseEvent?ue.MouseMove:ue.TouchMove)}),O,{trailing:!1})),j=[Pe("mousemove",U,r),Pe("touchmove",U,r),Pe("drag",U,r)];return fe(()=>{j.forEach(H=>H())})}function us({mouseInteractionCb:e,doc:n,mirror:r,blockClass:u,blockSelector:O,unblockSelector:D,sampling:N}){if(N.mouseInteraction===!1)return()=>{};const P=N.mouseInteraction===!0||N.mouseInteraction===void 0?{}:N.mouseInteraction,k=[];let U=null;const j=H=>$=>{const V=Ct($);if($e(V,u,O,D,!0))return;let J=null,q=H;if("pointerType"in $){switch($.pointerType){case"mouse":J=Ve.Mouse;break;case"touch":J=Ve.Touch;break;case"pen":J=Ve.Pen;break}J===Ve.Touch?Be[H]===Be.MouseDown?q="TouchStart":Be[H]===Be.MouseUp&&(q="TouchEnd"):Ve.Pen}else Qt($)&&(J=Ve.Touch);J!==null?(U=J,(q.startsWith("Touch")&&J===Ve.Touch||q.startsWith("Mouse")&&J===Ve.Mouse)&&(J=null)):Be[H]===Be.Click&&(J=U,U=null);const ie=Qt($)?$.changedTouches[0]:$;if(!ie)return;const te=r.getId(V),{clientX:ae,clientY:Se}=ie;fe(e)({type:Be[q],id:te,x:ae,y:Se,...J!==null&&{pointerType:J}})};return Object.keys(Be).filter(H=>Number.isNaN(Number(H))&&!H.endsWith("_Departed")&&P[H]!==!1).forEach(H=>{let $=Ue(H);const V=j(H);if(window.PointerEvent)switch(Be[H]){case Be.MouseDown:case Be.MouseUp:$=$.replace("mouse","pointer");break;case Be.TouchStart:case Be.TouchEnd:return}k.push(Pe($,V,n))}),fe(()=>{k.forEach(H=>H())})}function Gn({scrollCb:e,doc:n,mirror:r,blockClass:u,blockSelector:O,unblockSelector:D,sampling:N}){const P=fe(bt(fe(k=>{const U=Ct(k);if(!U||$e(U,u,O,D,!0))return;const j=r.getId(U);if(U===n&&n.defaultView){const H=bn(n.defaultView);e({id:j,x:H.left,y:H.top})}else e({id:j,x:U.scrollLeft,y:U.scrollTop})}),N.scroll||100));return Pe("scroll",P,n)}function ls({viewportResizeCb:e},{win:n}){let r=-1,u=-1;const O=fe(bt(fe(()=>{const D=Rn(),N=Cn();(r!==D||u!==N)&&(e({width:Number(N),height:Number(D)}),r=D,u=N)}),200));return Pe("resize",O,n)}const ds=["INPUT","TEXTAREA","SELECT"],$n=new WeakMap;function fs({inputCb:e,doc:n,mirror:r,blockClass:u,blockSelector:O,unblockSelector:D,ignoreClass:N,ignoreSelector:P,maskInputOptions:k,maskInputFn:U,sampling:j,userTriggeredOnInput:H,maskTextClass:$,unmaskTextClass:V,maskTextSelector:J,unmaskTextSelector:q}){function ie(ee){let de=Ct(ee);const Ae=ee.isTrusted,ne=de&&Ge(de.tagName);if(ne==="OPTION"&&(de=de.parentElement),!de||!ne||ds.indexOf(ne)<0||$e(de,u,O,D,!0))return;const le=de;if(le.classList.contains(N)||P&&le.matches(P))return;const be=nt(de);let Ne=ut(le,ne,be),we=!1;const He=Re({maskInputOptions:k,tagName:ne,type:be}),_e=ht(de,$,J,V,q,He);(be==="radio"||be==="checkbox")&&(we=de.checked),Ne=ke({isMasked:_e,element:de,value:Ne,maskInputFn:U}),te(de,H?{text:Ne,isChecked:we,userTriggered:Ae}:{text:Ne,isChecked:we});const je=de.name;be==="radio"&&je&&we&&n.querySelectorAll(`input[type="radio"][name="${je}"]`).forEach(De=>{if(De!==de){const Fe=ke({isMasked:_e,element:De,value:ut(De,ne,be),maskInputFn:U});te(De,H?{text:Fe,isChecked:!we,userTriggered:!1}:{text:Fe,isChecked:!we})}})}function te(ee,de){const Ae=$n.get(ee);if(!Ae||Ae.text!==de.text||Ae.isChecked!==de.isChecked){$n.set(ee,de);const ne=r.getId(ee);fe(e)({...de,id:ne})}}const Se=(j.input==="last"?["change"]:["input","change"]).map(ee=>Pe(ee,fe(ie),n)),he=n.defaultView;if(!he)return()=>{Se.forEach(ee=>ee())};const Ce=he.Object.getOwnPropertyDescriptor(he.HTMLInputElement.prototype,"value"),oe=[[he.HTMLInputElement.prototype,"value"],[he.HTMLInputElement.prototype,"checked"],[he.HTMLSelectElement.prototype,"value"],[he.HTMLTextAreaElement.prototype,"value"],[he.HTMLSelectElement.prototype,"selectedIndex"],[he.HTMLOptionElement.prototype,"selected"]];
21return Ce&&Ce.set&&Se.push(...oe.map(ee=>vn(ee[0],ee[1],{set(){fe(ie)({target:this,isTrusted:!1})}},!1,he))),fe(()=>{Se.forEach(ee=>ee())})}function Pt(e){const n=[];function r(u,O){if(Bt("CSSGroupingRule")&&u.parentRule instanceof CSSGroupingRule||Bt("CSSMediaRule")&&u.parentRule instanceof CSSMediaRule||Bt("CSSSupportsRule")&&u.parentRule instanceof CSSSupportsRule||Bt("CSSConditionRule")&&u.parentRule instanceof CSSConditionRule){const N=Array.from(u.parentRule.cssRules).indexOf(u);O.unshift(N)}else if(u.parentStyleSheet){const N=Array.from(u.parentStyleSheet.cssRules).indexOf(u);O.unshift(N)}return O}return r(e,n)}function Xe(e,n,r){let u,O;return e?(e.ownerNode?u=n.getId(e.ownerNode):O=r.getId(e),{styleId:O,id:u}):{}}function hs({styleSheetRuleCb:e,mirror:n,stylesheetManager:r},{win:u}){if(!u.CSSStyleSheet||!u.CSSStyleSheet.prototype)return()=>{};const O=u.CSSStyleSheet.prototype.insertRule;u.CSSStyleSheet.prototype.insertRule=new Proxy(O,{apply:fe((j,H,$)=>{const[V,J]=$,{id:q,styleId:ie}=Xe(H,n,r.styleMirror);return(q&&q!==-1||ie&&ie!==-1)&&e({id:q,styleId:ie,adds:[{rule:V,index:J}]}),j.apply(H,$)})});const D=u.CSSStyleSheet.prototype.deleteRule;u.CSSStyleSheet.prototype.deleteRule=new Proxy(D,{apply:fe((j,H,$)=>{const[V]=$,{id:J,styleId:q}=Xe(H,n,r.styleMirror);return(J&&J!==-1||q&&q!==-1)&&e({id:J,styleId:q,removes:[{index:V}]}),j.apply(H,$)})});let N;u.CSSStyleSheet.prototype.replace&&(N=u.CSSStyleSheet.prototype.replace,u.CSSStyleSheet.prototype.replace=new Proxy(N,{apply:fe((j,H,$)=>{const[V]=$,{id:J,styleId:q}=Xe(H,n,r.styleMirror);return(J&&J!==-1||q&&q!==-1)&&e({id:J,styleId:q,replace:V}),j.apply(H,$)})}));let P;u.CSSStyleSheet.prototype.replaceSync&&(P=u.CSSStyleSheet.prototype.replaceSync,u.CSSStyleSheet.prototype.replaceSync=new Proxy(P,{apply:fe((j,H,$)=>{const[V]=$,{id:J,styleId:q}=Xe(H,n,r.styleMirror);return(J&&J!==-1||q&&q!==-1)&&e({id:J,styleId:q,replaceSync:V}),j.apply(H,$)})}));const k={};Lt("CSSGroupingRule")?k.CSSGroupingRule=u.CSSGroupingRule:(Lt("CSSMediaRule")&&(k.CSSMediaRule=u.CSSMediaRule),Lt("CSSConditionRule")&&(k.CSSConditionRule=u.CSSConditionRule),Lt("CSSSupportsRule")&&(k.CSSSupportsRule=u.CSSSupportsRule));const U={};return Object.entries(k).forEach(([j,H])=>{U[j]={insertRule:H.prototype.insertRule,deleteRule:H.prototype.deleteRule},H.prototype.insertRule=new Proxy(U[j].insertRule,{apply:fe(($,V,J)=>{const[q,ie]=J,{id:te,styleId:ae}=Xe(V.parentStyleSheet,n,r.styleMirror);return(te&&te!==-1||ae&&ae!==-1)&&e({id:te,styleId:ae,adds:[{rule:q,index:[...Pt(V),ie||0]}]}),$.apply(V,J)})}),H.prototype.deleteRule=new Proxy(U[j].deleteRule,{apply:fe(($,V,J)=>{const[q]=J,{id:ie,styleId:te}=Xe(V.parentStyleSheet,n,r.styleMirror);return(ie&&ie!==-1||te&&te!==-1)&&e({id:ie,styleId:te,removes:[{index:[...Pt(V),q]}]}),$.apply(V,J)})})}),fe(()=>{u.CSSStyleSheet.prototype.insertRule=O,u.CSSStyleSheet.prototype.deleteRule=D,N&&(u.CSSStyleSheet.prototype.replace=N),P&&(u.CSSStyleSheet.prototype.replaceSync=P),Object.entries(k).forEach(([j,H])=>{H.prototype.insertRule=U[j].insertRule,H.prototype.deleteRule=U[j].deleteRule})})}function zn({mirror:e,stylesheetManager:n},r){let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(r.host);const O=r.nodeName==="#document"?Ye([r,"access",N=>N.defaultView,"optionalAccess",N=>N.Document]):Ye([r,"access",N=>N.ownerDocument,"optionalAccess",N=>N.defaultView,"optionalAccess",N=>N.ShadowRoot]),D=Ye([O,"optionalAccess",N=>N.prototype])?Object.getOwnPropertyDescriptor(Ye([O,"optionalAccess",N=>N.prototype]),"adoptedStyleSheets"):void 0;return u===null||u===-1||!O||!D?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:D.configurable,enumerable:D.enumerable,get(){return Ye([D,"access",N=>N.get,"optionalAccess",N=>N.call,"call",N=>N(this)])},set(N){const P=Ye([D,"access",k=>k.set,"optionalAccess",k=>k.call,"call",k=>k(this,N)]);if(u!==null&&u!==-1)try{n.adoptStyleSheets(N,u)}catch{}return P}}),fe(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:D.configurable,enumerable:D.enumerable,get:D.get,set:D.set})}))}function ps({styleDeclarationCb:e,mirror:n,ignoreCSSAttributes:r,stylesheetManager:u},{win:O}){const D=O.CSSStyleDeclaration.prototype.setProperty;O.CSSStyleDeclaration.prototype.setProperty=new Proxy(D,{apply:fe((P,k,U)=>{const[j,H,$]=U;if(r.has(j))return D.apply(k,[j,H,$]);const{id:V,styleId:J}=Xe(Ye([k,"access",q=>q.parentRule,"optionalAccess",q=>q.parentStyleSheet]),n,u.styleMirror);return(V&&V!==-1||J&&J!==-1)&&e({id:V,styleId:J,set:{property:j,value:H,priority:$},index:Pt(k.parentRule)}),P.apply(k,U)})});const N=O.CSSStyleDeclaration.prototype.removeProperty;return O.CSSStyleDeclaration.prototype.removeProperty=new Proxy(N,{apply:fe((P,k,U)=>{const[j]=U;if(r.has(j))return N.apply(k,[j]);const{id:H,styleId:$}=Xe(Ye([k,"access",V=>V.parentRule,"optionalAccess",V=>V.parentStyleSheet]),n,u.styleMirror);return(H&&H!==-1||$&&$!==-1)&&e({id:H,styleId:$,remove:{property:j},index:Pt(k.parentRule)}),P.apply(k,U)})}),fe(()=>{O.CSSStyleDeclaration.prototype.setProperty=D,O.CSSStyleDeclaration.prototype.removeProperty=N})}function ms({mediaInteractionCb:e,blockClass:n,blockSelector:r,unblockSelector:u,mirror:O,sampling:D,doc:N}){const P=fe(U=>bt(fe(j=>{const H=Ct(j);if(!H||$e(H,n,r,u,!0))return;const{currentTime:$,volume:V,muted:J,playbackRate:q}=H;e({type:U,id:O.getId(H),currentTime:$,volume:V,muted:J,playbackRate:q})}),D.media||500)),k=[Pe("play",P(0),N),Pe("pause",P(1),N),Pe("seeked",P(2),N),Pe("volumechange",P(3),N),Pe("ratechange",P(4),N)];return fe(()=>
21{k.forEach(U=>U())})}function gs({fontCb:e,doc:n}){const r=n.defaultView;if(!r)return()=>{};const u=[],O=new WeakMap,D=r.FontFace;r.FontFace=function(k,U,j){const H=new D(k,U,j);return O.set(H,{family:k,buffer:typeof U!="string",descriptors:j,fontSource:typeof U=="string"?U:JSON.stringify(Array.from(new Uint8Array(U)))}),H};const N=Jt(n.fonts,"add",function(P){return function(k){return kt(fe(()=>{const U=O.get(k);U&&(e(U),O.delete(k))}),0),P.apply(this,[k])}});return u.push(()=>{r.FontFace=D}),u.push(N),fe(()=>{u.forEach(P=>P())})}function Ss(e){const{doc:n,mirror:r,blockClass:u,blockSelector:O,unblockSelector:D,selectionCb:N}=e;let P=!0;const k=fe(()=>{const U=n.getSelection();if(!U||P&&Ye([U,"optionalAccess",$=>$.isCollapsed]))return;P=U.isCollapsed||!1;const j=[],H=U.rangeCount||0;for(let $=0;$<H;$++){const V=U.getRangeAt($),{startContainer:J,startOffset:q,endContainer:ie,endOffset:te}=V;$e(J,u,O,D,!0)||$e(ie,u,O,D,!0)||j.push({start:r.getId(J),startOffset:q,end:r.getId(ie),endOffset:te})}N({ranges:j})});return k(),Pe("selectionchange",k)}function ys({doc:e,customElementCb:n}){const r=e.defaultView;return!r||!r.customElements?()=>{}:Jt(r.customElements,"define",function(O){return function(D,N,P){try{n({define:{name:D}})}catch{}return O.apply(this,[D,N,P])}})}function Es(e,n={}){const r=e.doc.defaultView;if(!r)return()=>{};const u=jn(e,e.doc),O=cs(e),D=us(e),N=Gn(e),P=ls(e,{win:r}),k=fs(e),U=ms(e),j=hs(e,{win:r}),H=zn(e,e.doc),$=ps(e,{win:r}),V=e.collectFonts?gs(e):()=>{},J=Ss(e),q=ys(e),ie=[];for(const te of e.plugins)ie.push(te.observer(te.callback,r,te.options));return fe(()=>{gt.forEach(te=>te.reset()),u.disconnect(),O(),D(),N(),P(),k(),U(),j(),H(),$(),V(),J(),q(),ie.forEach(te=>te())})}function Bt(e){return typeof window[e]<"u"}function Lt(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class tn{constructor(n){this.generateIdFn=n,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(n,r,u,O){const D=u||this.getIdToRemoteIdMap(n),N=O||this.getRemoteIdToIdMap(n);let P=D.get(r);return P||(P=this.generateIdFn(),D.set(r,P),N.set(P,r)),P}getIds(n,r){const u=this.getIdToRemoteIdMap(n),O=this.getRemoteIdToIdMap(n);return r.map(D=>this.getId(n,D,u,O))}getRemoteId(n,r,u){const O=u||this.getRemoteIdToIdMap(n);if(typeof r!="number")return r;const D=O.get(r);return D||-1}getRemoteIds(n,r){const u=this.getRemoteIdToIdMap(n);return r.map(O=>this.getRemoteId(n,O,u))}reset(n){if(!n){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(n),this.iframeRemoteIdToIdMap.delete(n)}getIdToRemoteIdMap(n){let r=this.iframeIdToRemoteIdMap.get(n);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(n,r)),r}getRemoteIdToIdMap(n){let r=this.iframeRemoteIdToIdMap.get(n);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(n,r)),r}}function Wn(e){let n,r=e[0],u=1;for(;u<e.length;){const O=e[u],D=e[u+1];if(u+=2,(O==="optionalAccess"||O==="optionalCall")&&r==null)return;O==="access"||O==="optionalAccess"?(n=r,r=D(r)):(O==="call"||O==="optionalCall")&&(r=D((...N)=>r.call(n,...N)),n=void 0)}return r}class _s{constructor(){this.crossOriginIframeMirror=new tn(vt),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Ts{constructor(n){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new tn(vt),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=n.mutationCb,this.wrappedEmit=n.wrappedEmit,this.stylesheetManager=n.stylesheetManager,this.recordCrossOriginIframes=n.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new tn(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=n.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(n){this.iframes.set(n,!0),n.contentWindow&&this.crossOriginIframeMap.set(n.contentWindow,n)}addLoadListener(n){this.loadListener=n}attachIframe(n,r){this.mutationCb({adds:[{parentId:this.mirror.getId(n),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),Wn([this,"access",u=>
21u.loadListener,"optionalCall",u=>u(n)]),n.contentDocument&&n.contentDocument.adoptedStyleSheets&&n.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.contentDocument.adoptedStyleSheets,this.mirror.getId(n.contentDocument))}handleMessage(n){const r=n;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!n.source)return;const O=this.crossOriginIframeMap.get(n.source);if(!O)return;const D=this.transformCrossOriginEvent(O,r.data.event);D&&this.wrappedEmit(D,r.data.isCheckout)}transformCrossOriginEvent(n,r){switch(r.type){case ce.FullSnapshot:{this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(r.data.node,n);const u=r.data.node.id;return this.crossOriginIframeRootIdMap.set(n,u),this.patchRootIdOnNode(r.data.node,u),{timestamp:r.timestamp,type:ce.IncrementalSnapshot,data:{source:ue.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ce.Meta:case ce.Load:case ce.DomContentLoaded:return!1;case ce.Plugin:return r;case ce.Custom:return this.replaceIds(r.data.payload,n,["id","parentId","previousId","nextId"]),r;case ce.IncrementalSnapshot:switch(r.data.source){case ue.Mutation:return r.data.adds.forEach(u=>{this.replaceIds(u,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(u.node,n);const O=this.crossOriginIframeRootIdMap.get(n);O&&this.patchRootIdOnNode(u.node,O)}),r.data.removes.forEach(u=>{this.replaceIds(u,n,["parentId","id"])}),r.data.attributes.forEach(u=>{this.replaceIds(u,n,["id"])}),r.data.texts.forEach(u=>{this.replaceIds(u,n,["id"])}),r;case ue.Drag:case ue.TouchMove:case ue.MouseMove:return r.data.positions.forEach(u=>{this.replaceIds(u,n,["id"])}),r;case ue.ViewportResize:return!1;case ue.MediaInteraction:case ue.MouseInteraction:case ue.Scroll:case ue.CanvasMutation:case ue.Input:return this.replaceIds(r.data,n,["id"]),r;case ue.StyleSheetRule:case ue.StyleDeclaration:return this.replaceIds(r.data,n,["id"]),this.replaceStyleIds(r.data,n,["styleId"]),r;case ue.Font:return r;case ue.Selection:return r.data.ranges.forEach(u=>{this.replaceIds(u,n,["start","end"])}),r;case ue.AdoptedStyleSheet:return this.replaceIds(r.data,n,["id"]),this.replaceStyleIds(r.data,n,["styleIds"]),Wn([r,"access",u=>u.data,"access",u=>u.styles,"optionalAccess",u=>u.forEach,"call",u=>u(O=>{this.replaceStyleIds(O,n,["styleId"])})]),r}}return!1}replace(n,r,u,O){for(const D of O)!Array.isArray(r[D])&&typeof r[D]!="number"||(Array.isArray(r[D])?r[D]=n.getIds(u,r[D]):r[D]=n.getId(u,r[D]));return r}replaceIds(n,r,u){return this.replace(this.crossOriginIframeMirror,n,r,u)}replaceStyleIds(n,r,u){return this.replace(this.crossOriginIframeStyleMirror,n,r,u)}replaceIdOnNode(n,r){this.replaceIds(n,r,["id","rootId"]),"childNodes"in n&&n.childNodes.forEach(u=>{this.replaceIdOnNode(u,r)})}patchRootIdOnNode(n,r){n.type!==Y.Document&&!n.rootId&&(n.rootId=r),"childNodes"in n&&n.childNodes.forEach(u=>{this.patchRootIdOnNode(u,r)})}}class Is{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class vs{constructor(n){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=n.mutationCb,this.scrollCb=n.scrollCb,this.bypassOptions=n.bypassOptions,this.mirror=n.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(n,r){if(!x(n)||this.shadowDoms.has(n))return;this.shadowDoms.add(n);const u=jn({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},n);this.restoreHandlers.push(()=>u.disconnect()),this.restoreHandlers.push(Gn({...this.bypassOptions,scrollCb:this.scrollCb,doc:n,mirror:this.mirror})),kt(()=>{n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n.host)),this.restoreHandlers.push(zn({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},n))},0)}observeAttachShadow(n){!n.contentWindow||!n.contentDocument||this.patchAttachShadow(n.contentWindow.Element,n.contentDocument)}patchAttachShadow(n,r){const u=this;this.restoreHandlers.push(Jt(n.prototype,"attachShadow",function(O){return function(D){const N=O.call(this,D);return this.shadowRoot&&wn(this)&&u.addShadowRoot(this.shadowRoot,r),N}}))}
21reset(){this.restoreHandlers.forEach(n=>{try{n()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class xn{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class bs{constructor(n){this.trackedLinkElements=new WeakSet,this.styleMirror=new Zr,this.mutationCb=n.mutationCb,this.adoptedStyleSheetCb=n.adoptedStyleSheetCb}attachLinkElement(n,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(n)}trackLinkElement(n){this.trackedLinkElements.has(n)||(this.trackedLinkElements.add(n),this.trackStylesheetInLinkElement(n))}adoptStyleSheets(n,r){if(n.length===0)return;const u={id:r,styleIds:[]},O=[];for(const D of n){let N;this.styleMirror.has(D)?N=this.styleMirror.getId(D):(N=this.styleMirror.add(D),O.push({styleId:N,rules:Array.from(D.rules||CSSRule,(P,k)=>({rule:W(P),index:k}))})),u.styleIds.push(N)}O.length>0&&(u.styles=O),this.adoptedStyleSheetCb(u)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(n){}}class Rs{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){ts(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(n,r){const u=this.nodeMap.get(n);return u&&Array.from(u).some(O=>O!==r)}add(n,r){this.nodeMap.set(n,(this.nodeMap.get(n)||new Set).add(r))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Me,Ut;const ze=ye();function Qe(e={}){const{emit:n,checkoutEveryNms:r,checkoutEveryNth:u,blockClass:O="rr-block",blockSelector:D=null,unblockSelector:N=null,ignoreClass:P="rr-ignore",ignoreSelector:k=null,maskAllText:U=!1,maskTextClass:j="rr-mask",unmaskTextClass:H=null,maskTextSelector:$=null,unmaskTextSelector:V=null,inlineStylesheet:J=!0,maskAllInputs:q,maskInputOptions:ie,slimDOMOptions:te,maskAttributeFn:ae,maskInputFn:Se,maskTextFn:he,maxCanvasSize:Ce=null,packFn:oe,sampling:ee={},dataURLOptions:de={},mousemoveWait:Ae,recordCanvas:ne=!1,recordCrossOriginIframes:le=!1,recordAfter:be=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:Ne=!1,collectFonts:we=!1,inlineImages:He=!1,plugins:_e,keepIframeSrcFn:je=()=>!1,ignoreCSSAttributes:De=new Set([]),errorHandler:Fe,onMutation:We,getCanvasManager:pn}=e;os(Fe);const _t=le?window.parent===window:!0;let tt=!1;if(!_t)try{window.parent.document&&(tt=!1)}catch{tt=!0}if(_t&&!n)throw new Error("emit function is required");Ae!==void 0&&ee.mousemove===void 0&&(ee.mousemove=Ae),ze.reset();const Tt=q===!0?{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}:ie!==void 0?ie:{},Dt=te===!0||te==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:te==="all",headMetaDescKeywords:te==="all"}:te||{};Qr();let mn,gn=0;const Or=me=>{for(const xe of _e||[])xe.eventProcessor&&(me=xe.eventProcessor(me));return oe&&!tt&&(me=oe(me)),me};Me=(me,xe)=>{const pe=me;if(pe.timestamp=wt(),v([gt,"access",Oe=>Oe[0],"optionalAccess",Oe=>Oe.isFrozen,"call",Oe=>Oe()])&&pe.type!==ce.FullSnapshot&&!(pe.type===ce.IncrementalSnapshot&&pe.data.source===ue.Mutation)&&gt.forEach(Oe=>Oe.unfreeze()),_t)v([n,"optionalCall",Oe=>Oe(Or(pe),xe)]);else if(tt){const Oe={type:"rrweb",event:Or(pe),origin:window.location.origin,isCheckout:xe};window.parent.postMessage(Oe,"*")}if(pe.type===ce.FullSnapshot)mn=pe,gn=0;else if(pe.type===ce.IncrementalSnapshot){if(pe.data.source===ue.Mutation&&pe.data.isAttachIframe)return;gn++;const Oe=u&&gn>=u,ge=r&&mn&&pe.timestamp-mn.timestamp>r;(Oe||ge)&&yn(!0)}};const Wt=me=>{Me({type:ce.IncrementalSnapshot,data:{source:ue.Mutation,...me}})},Mr=me=>Me({type:ce.IncrementalSnapshot,data:{source:ue.Scroll,...me}}),Po=me=>Me({type:ce.IncrementalSnapshot,data:{source:ue.CanvasMutation,...me}}),Bo=me=>Me({type:ce.IncrementalSnapshot,data:{source:ue.AdoptedStyleSheet,...me}}),it=new bs({mutationCb:Wt,adoptedStyleSheetCb:Bo}),ot=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new _s:new Ts({mirror:ze,mutationCb:Wt,stylesheetManager:it,re
21cordCrossOriginIframes:le,wrappedEmit:Me});for(const me of _e||[])me.getMirror&&me.getMirror({nodeMirror:ze,crossOriginIframeMirror:ot.crossOriginIframeMirror,crossOriginIframeStyleMirror:ot.crossOriginIframeStyleMirror});const Sn=new Rs,Ar=Os(pn,{mirror:ze,win:window,mutationCb:me=>Me({type:ce.IncrementalSnapshot,data:{source:ue.CanvasMutation,...me}}),recordCanvas:ne,blockClass:O,blockSelector:D,unblockSelector:N,maxCanvasSize:Ce,sampling:ee.canvas,dataURLOptions:de,errorHandler:Fe}),xt=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Is:new vs({mutationCb:Wt,scrollCb:Mr,bypassOptions:{onMutation:We,blockClass:O,blockSelector:D,unblockSelector:N,maskAllText:U,maskTextClass:j,unmaskTextClass:H,maskTextSelector:$,unmaskTextSelector:V,inlineStylesheet:J,maskInputOptions:Tt,dataURLOptions:de,maskAttributeFn:ae,maskTextFn:he,maskInputFn:Se,recordCanvas:ne,inlineImages:He,sampling:ee,slimDOMOptions:Dt,iframeManager:ot,stylesheetManager:it,canvasManager:Ar,keepIframeSrcFn:je,processedNodeManager:Sn},mirror:ze}),yn=(me=!1)=>{Me({type:ce.Meta,data:{href:window.location.href,width:Cn(),height:Rn()}},me),it.reset(),xt.init(),gt.forEach(pe=>pe.lock());const xe=Jr(document,{mirror:ze,blockClass:O,blockSelector:D,unblockSelector:N,maskAllText:U,maskTextClass:j,unmaskTextClass:H,maskTextSelector:$,unmaskTextSelector:V,inlineStylesheet:J,maskAllInputs:Tt,maskAttributeFn:ae,maskInputFn:Se,maskTextFn:he,slimDOM:Dt,dataURLOptions:de,recordCanvas:ne,inlineImages:He,onSerialize:pe=>{An(pe,ze)&&ot.addIframe(pe),Dn(pe,ze)&&it.trackLinkElement(pe),Zt(pe)&&xt.addShadowRoot(pe.shadowRoot,document)},onIframeLoad:(pe,Oe)=>{ot.attachIframe(pe,Oe),xt.observeAttachShadow(pe)},onStylesheetLoad:(pe,Oe)=>{it.attachLinkElement(pe,Oe)},keepIframeSrcFn:je});if(!xe)return a.warn("Failed to snapshot the document");Me({type:ce.FullSnapshot,data:{node:xe,initialOffset:bn(window)}}),gt.forEach(pe=>pe.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&it.adoptStyleSheets(document.adoptedStyleSheets,ze.getId(document))};Ut=yn;try{const me=[],xe=Oe=>fe(Es)({onMutation:We,mutationCb:Wt,mousemoveCb:(ge,at)=>Me({type:ce.IncrementalSnapshot,data:{source:at,positions:ge}}),mouseInteractionCb:ge=>Me({type:ce.IncrementalSnapshot,data:{source:ue.MouseInteraction,...ge}}),scrollCb:Mr,viewportResizeCb:ge=>Me({type:ce.IncrementalSnapshot,data:{source:ue.ViewportResize,...ge}}),inputCb:ge=>Me({type:ce.IncrementalSnapshot,data:{source:ue.Input,...ge}}),mediaInteractionCb:ge=>Me({type:ce.IncrementalSnapshot,data:{source:ue.MediaInteraction,...ge}}),styleSheetRuleCb:ge=>Me({type:ce.IncrementalSnapshot,data:{source:ue.StyleSheetRule,...ge}}),styleDeclarationCb:ge=>Me({type:ce.IncrementalSnapshot,data:{source:ue.StyleDeclaration,...ge}}),canvasMutationCb:Po,fontCb:ge=>Me({type:ce.IncrementalSnapshot,data:{source:ue.Font,...ge}}),selectionCb:ge=>{Me({type:ce.IncrementalSnapshot,data:{source:ue.Selection,...ge}})},customElementCb:ge=>{Me({type:ce.IncrementalSnapshot,data:{source:ue.CustomElement,...ge}})},blockClass:O,ignoreClass:P,ignoreSelector:k,maskAllText:U,maskTextClass:j,unmaskTextClass:H,maskTextSelector:$,unmaskTextSelector:V,maskInputOptions:Tt,inlineStylesheet:J,sampling:ee,recordCanvas:ne,inlineImages:He,userTriggeredOnInput:Ne,collectFonts:we,doc:Oe,maskAttributeFn:ae,maskInputFn:Se,maskTextFn:he,keepIframeSrcFn:je,blockSelector:D,unblockSelector:N,slimDOMOptions:Dt,dataURLOptions:de,mirror:ze,iframeManager:ot,stylesheetManager:it,shadowDomManager:xt,processedNodeManager:Sn,canvasManager:Ar,ignoreCSSAttributes:De,plugins:v([_e,"optionalAccess",ge=>ge.filter,"call",ge=>ge(at=>at.observer),"optionalAccess",ge=>ge.map,"call",ge=>ge(at=>({observer:at.observer,options:at.options,callback:Lo=>Me({type:ce.Plugin,data:{plugin:at.name,payload:Lo}})}))])||[]},{});ot.addLoadListener(Oe=>{try{me.push(xe(Oe.contentDocument))}catch(ge){a.warn(ge)}});const pe=()=>{yn(),me.push(xe(document))};return document.readyState==="interactive"||document.readyState==="complete"?pe():(me.push(Pe("DOMContentLoaded",()=>{Me({type:ce.DomContentLoaded,data:{}}),be==="DOMContentLoaded"&&pe()})),me.push(Pe("load",()=>
21{Me({type:ce.Load,data:{}}),be==="load"&&pe()},window))),()=>{me.forEach(Oe=>Oe()),Sn.destroy(),Ut=void 0,as()}}catch(me){a.warn(me)}}function Cs(e){if(!Ut)throw new Error("please take full snapshot after start recording");Ut(e)}Qe.mirror=ze,Qe.takeFullSnapshot=Cs;function Os(e,n){try{return e?e(n):new xn}catch{return a.warn("Unable to initialize CanvasManager"),new xn}}const Ms=3,As=5;function nn(e){return e>9999999999?e:e*1e3}function rn(e){return e>9999999999?e/1e3:e}function Ot(e,n){n.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(n.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:ce.Custom,timestamp:(n.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:m.normalize(n,10,1e3)}}),n.category==="console")))}const Ds="button,a";function Yn(e){return e.closest(Ds)||e}function Kn(e){const n=Vn(e);return!n||!(n instanceof Element)?n:Yn(n)}function Vn(e){return Ns(e)?e.target:e}function Ns(e){return typeof e=="object"&&!!e&&"target"in e}let Ze;function ws(e){return Ze||(Ze=[],ks()),Ze.push(e),()=>{const n=Ze?Ze.indexOf(e):-1;n>-1&&Ze.splice(n,1)}}function ks(){m.fill(f,"open",function(e){return function(...n){if(Ze)try{Ze.forEach(r=>r())}catch{}return e.apply(f,n)}})}function Ps(e,n,r){e.handleClick(n,r)}class Bs{constructor(n,r,u=Ot){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=r.timeout/1e3,this._threshold=r.threshold/1e3,this._scollTimeout=r.scrollTimeout/1e3,this._replay=n,this._ignoreSelector=r.ignoreSelector,this._addBreadcrumbEvent=u}addListeners(){const n=ws(()=>{this._lastMutation=Jn()});this._teardown=()=>{n(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(n,r){if(Us(r,this._ignoreSelector)||!Fs(n))return;const u={timestamp:rn(n.timestamp),clickBreadcrumb:n,clickCount:0,node:r};this._clicks.some(O=>O.node===u.node&&Math.abs(O.timestamp-u.timestamp)<1)||(this._clicks.push(u),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(n=Date.now()){this._lastMutation=rn(n)}registerScroll(n=Date.now()){this._lastScroll=rn(n)}registerClick(n){const r=Yn(n);this._handleMultiClick(r)}
21_handleMultiClick(n){this._getClicks(n).forEach(r=>{r.clickCount++})}_getClicks(n){return this._clicks.filter(r=>r.node===n)}_checkClicks(){const n=[],r=Jn();this._clicks.forEach(u=>{!u.mutationAfter&&this._lastMutation&&(u.mutationAfter=u.timestamp<=this._lastMutation?this._lastMutation-u.timestamp:void 0),!u.scrollAfter&&this._lastScroll&&(u.scrollAfter=u.timestamp<=this._lastScroll?this._lastScroll-u.timestamp:void 0),u.timestamp+this._timeout<=r&&n.push(u)});for(const u of n){const O=this._clicks.indexOf(u);O>-1&&(this._generateBreadcrumbs(u),this._clicks.splice(O,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(n){const r=this._replay,u=n.scrollAfter&&n.scrollAfter<=this._scollTimeout,O=n.mutationAfter&&n.mutationAfter<=this._threshold,D=!u&&!O,{clickCount:N,clickBreadcrumb:P}=n;if(D){const k=Math.min(n.mutationAfter||this._timeout,this._timeout)*1e3,U=k<this._timeout*1e3?"mutation":"timeout",j={type:"default",message:P.message,timestamp:P.timestamp,category:"ui.slowClickDetected",data:{...P.data,url:f.location.href,route:r.getCurrentRoute(),timeAfterClickMs:k,endReason:U,clickCount:N||1}};this._addBreadcrumbEvent(r,j);return}if(N>1){const k={type:"default",message:P.message,timestamp:P.timestamp,category:"ui.multiClick",data:{...P.data,url:f.location.href,route:r.getCurrentRoute(),clickCount:N,metric:!0}};this._addBreadcrumbEvent(r,k)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const Ls=["A","BUTTON","INPUT"];function Us(e,n){return!!(!Ls.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||n&&e.matches(n))}function Fs(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function Jn(){return Date.now()/1e3}function Hs(e,n){try{if(!js(n))return;const{source:r}=n.data;if(r===ue.Mutation&&e.registerMutation(n.timestamp),r===ue.Scroll&&e.registerScroll(n.timestamp),Gs(n)){const{type:u,id:O}=n.data,D=Qe.mirror.getNode(O);D instanceof HTMLElement&&u===Be.Click&&e.registerClick(D)}}catch{}}function js(e){return e.type===Ms}function Gs(e){return e.data.source===ue.MouseInteraction}function Ke(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ft;(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"})(Ft||(Ft={}));const $s=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function zs(e){const n={};for(const r in e)if($s.has(r)){let u=r;(r==="data-testid"||r==="data-test-id")&&(u="testId"),n[u]=e[r]}return n}const Ws=e=>n=>{if(!e.isEnabled())return;const r=xs(n);if(!r)return;const u=n.name==="click",O=u?n.event:void 0;u&&e.clickDetector&&O&&O.target&&!O.altKey&&!O.metaKey&&!O.ctrlKey&&!O.shiftKey&&Ps(e.clickDetector,r,Kn(n.event)),Ot(e,r)};function Xn(e,n){const r=Qe.mirror.getId(e),u=r&&Qe.mirror.getNode(r),O=u&&Qe.mirror.getMeta(u),D=O&&Ks(O)?O:null;return{message:n,data:D?{nodeId:r,node:{id:r,tagName:D.tagName,textContent:Array.from(D.childNodes).map(N=>N.type===Ft.Text&&N.textContent).filter(Boolean).map(N=>N.trim()).join(""),attributes:zs(D.attributes)}}:{}}}function xs(e){const{target:n,message:r}=Ys(e);return Ke({category:`ui.${e.name}`,...Xn(n,r)})}function Ys(e){const n=e.name==="click";let r,u=null;try{u=n?Kn(e.event):Vn(e.event),r=m.htmlTreeAsString(u,{maxStringLength:200})||"<unknown>"}catch{r="<unknown>"}return{target:u,message:r}}function Ks(e){return e.type===Ft.Element}function Vs(e,n){if(!e.isEnabled())return;e.updateUserActivity();const r=Js(n);r&&Ot(e,r)}function Js(e){const{metaKey:n,shiftKey:r,ctrlKey:u,altKey:O,key:D,target:N}=e;if(!N||Xs(N)||!D)return null;const P=n||u||O,k=D.length===1;if(!P&&k)return null;const U=m.htmlTreeAsString(N,{maxStringLength:200})||"<unknown>",j=Xn(N,U);return Ke({category:"ui.keyDown",message:U,data:{...j.data,metaKey:n,shiftKey:r,ctrlKey:u,altKey:O,key:D}})}function Xs(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const Qn={resource:ti,paint:qs,navigation:ei};
21function Qs(e){return e.map(Zs).filter(Boolean)}function Zs(e){return Qn[e.entryType]?Qn[e.entryType](e):null}function St(e){return((m.browserPerformanceTimeOrigin||f.performance.timeOrigin)+e)/1e3}function qs(e){const{duration:n,entryType:r,name:u,startTime:O}=e,D=St(O);return{type:r,name:u,start:D,end:D+n,data:void 0}}function ei(e){const{entryType:n,name:r,decodedBodySize:u,duration:O,domComplete:D,encodedBodySize:N,domContentLoadedEventStart:P,domContentLoadedEventEnd:k,domInteractive:U,loadEventStart:j,loadEventEnd:H,redirectCount:$,startTime:V,transferSize:J,type:q}=e;return O===0?null:{type:`${n}.${q}`,start:St(V),end:St(D),name:r,data:{size:J,decodedBodySize:u,encodedBodySize:N,duration:O,domInteractive:U,domContentLoadedEventStart:P,domContentLoadedEventEnd:k,loadEventStart:j,loadEventEnd:H,domComplete:D,redirectCount:$}}}function ti(e){const{entryType:n,initiatorType:r,name:u,responseEnd:O,startTime:D,decodedBodySize:N,encodedBodySize:P,responseStatus:k,transferSize:U}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${n}.${r}`,start:St(D),end:St(O),name:u,data:{size:U,statusCode:k,decodedBodySize:N,encodedBodySize:P}}}function ni(e){const n=e.entries,r=n[n.length-1],u=r?r.element:void 0,O=e.value,D=St(O);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:D,end:D,data:{value:O,size:O,nodeId:u?Qe.mirror.getId(u):void 0}}}function ri(e){function n(O){e.performanceEntries.includes(O)||e.performanceEntries.push(O)}function r({entries:O}){O.forEach(n)}const u=[];return["navigation","paint","resource"].forEach(O=>{u.push(S.addPerformanceInstrumentationHandler(O,r))}),u.push(S.addLcpInstrumentationHandler(({metric:O})=>{e.replayPerformanceEntries.push(ni(O))})),()=>{u.forEach(O=>O())}}const Ee=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,si='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<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>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<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>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))}
vendor: 4,465 bytes, line 21
21,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;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(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<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=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<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!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+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){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,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<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>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}}},L=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<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>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;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
21++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(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;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=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)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=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(L(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}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return 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&&O(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)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(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=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.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)}const N=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(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[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});';function ii(){const e=new Blob([si]);return URL.createObjectURL(e)}function Le(e,n){Ee&&(m.logger.info(e),n&&Zn(e))}function yt(e,n){Ee&&(m.logger.info(e),n&&setTimeout(()=>{Zn(e)},0))}function Zn(e){E.addBreadcrumb({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}
21class sn extends Error{constructor(){super(`Event buffer exceeded maximum size of ${T}.`)}}class qn{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(n){const r=JSON.stringify(n).length;if(this._totalSize+=r,this._totalSize>T)throw new sn;this.events.push(n)}finish(){return new Promise(n=>{const r=this.events;this.clear(),n(JSON.stringify(r))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const n=this.events.map(r=>r.timestamp).sort()[0];return n?nn(n):null}}class oi{constructor(n){this._worker=n,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((n,r)=>{this._worker.addEventListener("message",({data:u})=>{u.success?n():r()},{once:!0}),this._worker.addEventListener("error",u=>{r(u)},{once:!0})}),this._ensureReadyPromise)}destroy(){Le("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(n,r){const u=this._getAndIncrementId();return new Promise((O,D)=>{const N=({data:P})=>{const k=P;if(k.method===n&&k.id===u){if(this._worker.removeEventListener("message",N),!k.success){Ee&&m.logger.error("[Replay]",k.response),D(new Error("Error in compression worker"));return}O(k.response)}};this._worker.addEventListener("message",N),this._worker.postMessage({id:u,method:n,arg:r})})}_getAndIncrementId(){return this._id++}}class ai{constructor(n){this._worker=new oi(n),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(n){const r=nn(n.timestamp);(!this._earliestTimestamp||r<this._earliestTimestamp)&&(this._earliestTimestamp=r);const u=JSON.stringify(n);return this._totalSize+=u.length,this._totalSize>T?Promise.reject(new sn):this._sendEventToWorker(u)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,n=>{Ee&&m.logger.warn('[Replay] Sending "clear" message to worker failed',n)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(n){return this._worker.postMessage("addEvent",n)}async _finishRequest(){const n=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,n}}class ci{constructor(n){this._fallback=new qn,this._compression=new ai(n),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(n){this._used.hasCheckout=n}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(n){return this._used.addEvent(n)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{Le("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:n,hasCheckout:r}=this._fallback,u=[];for(const O of n)u.push(this._compression.addEvent(O));this._compression.hasCheckout=r,this._used=this._compression;try{await Promise.all(u)}catch(O){Ee&&m.logger.warn("[Replay] Failed to add events when switching buffers.",O)}}}function ui({useCompression:e,workerUrl:n}){if(e&&window.Worker){const r=li(n);if(r)return r}return Le("[Replay] Using simple buffer"),new qn}function li(e){try{const n=e||di();if(!n)return;Le(`[Replay] Using compression worker${e?` from ${e}`:""}`);const r=new Worker(n);return new ci(r)}catch{Le("[Replay] Failed to create compression worker")}}function di(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?ii():""}function on(){try{return"sessionStorage"in f&&!!f.sessionStorage}catch{return!1}}function fi(e){hi(),e.session=void 0}function hi(){if(on())try{f.sessionStorage.removeItem(p)}catch{}}function er(e){return e===void 0?!1:Math.random()<e}function tr(e){const n=Date.now(),r=e.id||m.uuid4(),u=e.started||n,O
21=e.lastActivity||n,D=e.segmentId||0,N=e.sampled,P=e.previousSessionId;return{id:r,started:u,lastActivity:O,segmentId:D,sampled:N,previousSessionId:P}}function an(e){if(on())try{f.sessionStorage.setItem(p,JSON.stringify(e))}catch{}}function pi(e,n){return er(e)?"session":n?"buffer":!1}function nr({sessionSampleRate:e,allowBuffering:n,stickySession:r=!1},{previousSessionId:u}={}){const O=pi(e,n),D=tr({sampled:O,previousSessionId:u});return r&&an(D),D}function mi(e){if(!on())return null;try{const n=f.sessionStorage.getItem(p);if(!n)return null;const r=JSON.parse(n);return yt("[Replay] Loading existing session",e),tr(r)}catch{return null}}function cn(e,n,r=+new Date){return e===null||n===void 0||n<0?!0:n===0?!1:e+n<=r}function rr(e,{maxReplayDuration:n,sessionIdleExpire:r,targetTime:u=Date.now()}){return cn(e.started,n,u)||cn(e.lastActivity,r,u)}function sr(e,{sessionIdleExpire:n,maxReplayDuration:r}){return!(!rr(e,{sessionIdleExpire:n,maxReplayDuration:r})||e.sampled==="buffer"&&e.segmentId===0)}function un({traceInternals:e,sessionIdleExpire:n,maxReplayDuration:r,previousSessionId:u},O){const D=O.stickySession&&mi(e);return D?sr(D,{sessionIdleExpire:n,maxReplayDuration:r})?(yt("[Replay] Session in sessionStorage is expired, creating new one..."),nr(O,{previousSessionId:D.id})):D:(yt("[Replay] Creating new session",e),nr(O,{previousSessionId:u}))}function gi(e){return e.type===ce.Custom}function ln(e,n,r){return or(e,n)?(ir(e,n,r),!0):!1}function Si(e,n,r){return or(e,n)?ir(e,n,r):Promise.resolve(null)}async function ir(e,n,r){if(!e.eventBuffer)return null;try{r&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),r&&(e.eventBuffer.hasCheckout=!0);const u=e.getOptions(),O=yi(n,u.beforeAddRecordingEvent);return O?await e.eventBuffer.addEvent(O):void 0}catch(u){const O=u&&u instanceof sn?"addEventSizeExceeded":"addEvent";Ee&&m.logger.error(u),await e.stop({reason:O});const D=E.getClient();D&&D.recordDroppedEvent("internal_sdk_error","replay")}}function or(e,n){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const r=nn(n.timestamp);return r+e.timeouts.sessionIdlePause<Date.now()?!1:r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Le(`[Replay] Skipping event with timestamp ${r} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function yi(e,n){try{if(typeof n=="function"&&gi(e))return n(e)}catch(r){return Ee&&m.logger.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",r),null}return e}function dn(e){return!e.type}function fn(e){return e.type==="transaction"}function Ei(e){return e.type==="replay_event"}function ar(e){return e.type==="feedback"}function cr(e){const n=Ii();return(r,u)=>{if(!e.isEnabled()||!dn(r)&&!fn(r))return;const O=u&&u.statusCode;if(!(n&&(!O||O<200||O>=300))){if(fn(r)){_i(e,r);return}Ti(e,r)}}}function _i(e,n){const r=e.getContext();n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(n.contexts.trace.trace_id)}function Ti(e,n){const r=e.getContext();if(n.event_id&&r.errorIds.size<100&&r.errorIds.add(n.event_id),e.recordingMode!=="buffer"||!n.tags||!n.tags.replayId)return;const{beforeErrorSampling:u}=e.getOptions();typeof u=="function"&&!u(n)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function Ii(){const e=E.getClient();if(!e)return!1;const n=e.getTransport();return n&&n.send.__sentry__baseTransport__||!1}function vi(e){return n=>{!e.isEnabled()||!dn(n)||bi(e,n)}}function bi(e,n){const r=n.exception&&n.exception.values&&n.exception.values[0].value;if(typeof r=="string"&&(r.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const u=Ke({category:"replay.hydrate-error"});Ot(e,u)}}function Ri(e,n){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(n.originalException&&n.originalException.__rrweb__)}function Ci(e,n){e.triggerUserActivity(),e.addUpdate(()=>n.timestamp?(e.throttledAddEvent({type:ce.Custom,timestamp:n.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:n.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:n.event_id}}}}),!1):!0)}function Oi(e,n){return e.recordingMode!=="buffer"||n.message===_||!n.exception||n.type?!1:er(e.getOptions().errorSampleRate)}function Mi(e,n=!1){const r=n?cr(e):void 0;return Object.assign((u,O)=>e.isEnabled()?Ei(u)?(delete u.breadcrumbs,u):!dn(u)&&!fn(u)&&!ar(u)||!e.checkAndHandleExpiredSession()?u:ar(u)?(e.flush(),u.contexts.feedback.replay_id=e.getSessionId(),Ci(e,u),u):Ri(u,O)&&!e.getOptions()._experiments.captureExceptions?(Ee&&m.logger.log("[Replay] Ignoring error from rrweb internals",u),null):((Oi(e,u)||e.recordingMode==="session")&&(u.tags={...u.tags,replayId:e.getSessionId()}),r&&r(u,{statusCode:200}),u):u,{id:"Replay"})}function Ht(e,n){return n.map(({type:r,start:u,end:O,name:D,data:N})=>{const P=e.throttledAddEvent({type:ce.Custom,timestamp:u,data:{tag:"performanceSpan",payload:{op:r,description:D,startTimestamp:u,endTimestamp:O,data:N}}});return typeof P=="string"?Promise.resolve(null):P})}function Ai(e){const{from:n,to:r}=e,u=Date.now()/1e3;return{type:"navigation.push",start:u,end:u,name:r,data:{previous:n}}}function Di(e){return n=>{if(!e.isEnabled())return;const r=Ai(n);r!==null&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(Ht(e,[r]),!1)))}}function Ni(e,n){return Ee&&e.getOptions()._experiments.traceInternals?!1:E.isSentryRequestUrl(n,E.getClient())}function jt(e,n){e.isEnabled()&&n!==null&&(Ni(e,n.name)||e.addUpdate(()=>(Ht(e,[n]),!0)))}function wi(e){const{startTimestamp:n,endTimestamp:r,fetchData:u,response:O}=e;if(!r)return null;const{method:D,url:N}=u;return{type:"resource.fetch",start:n/1e3,end:r/1e3,name:N,data:{method:D,statusCode:O?O.status:void 0}}}function ki(e){return n=>{if(!e.isEnabled())return;const r=wi(n);jt(e,r)}}function Pi(e){const{startTimestamp:n,endTimestamp:r,xhr:u}=e,O=u[m.SENTRY_XHR_DATA_KEY];if(!n||!r||!O)return null;const{method:D,url:N,status_code:P}=O;return N===void 0?null:{type:"resource.xhr",name:N,start:n/1e3,end:r/1e3,data:{method:D,statusCode:P}}}function Bi(e){return n=>{if(!e.isEnabled())return;const r=Pi(n);jt(e,r)}}function Gt(e,n){if(e)try{if(typeof e=="string")return n.encode(e).length;if(e instanceof URLSearchParams)return n.encode(e.toString()).length;if(e instanceof FormData){const r=fr(e);return n.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function ur(e){if(!e)return;const n=parseInt(e,10);return isNaN(n)?void 0:n}function lr(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[fr(e)];if(!e)return[void 0]}catch{return Ee&&m.logger.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ee&&m.logger.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $t(e,n){if(!e)return{headers:{},size:void 0,_meta:{warnings:[n]}};const r={...e._meta},u=r.warnings||[];return r.warnings=[...u,n],e._meta=r,e}function dr(e,n){if(!n)return null;const{startTimestamp:r,endTimestamp:u,url:O,method:D,statusCode:N,request:P,response:k}=n;return{type:e,start:r/1e3,end:u/1e3,name:O,data:m.dropUndefinedKeys({method:D,statusCode:N,request:P,response:k})}}function Mt(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function qe(e,n,r){if(!n&&Object.keys(e).length===0)return;if(!n)return{headers:e};if(!r)return{headers:e,size:n};const u={headers:e,size:n}
21,{body:O,warnings:D}=Li(r);return u.body=O,D&&D.length>0&&(u._meta={warnings:D}),u}function hn(e,n){return Object.keys(e).reduce((r,u)=>{const O=u.toLowerCase();return n.includes(O)&&e[u]&&(r[O]=e[u]),r},{})}function fr(e){return new URLSearchParams(e).toString()}function Li(e){if(!e||typeof e!="string")return{body:e};const n=e.length>R,r=Ui(e);if(n){const u=e.slice(0,R);return r?{body:u,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${u}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function Ui(e){const n=e[0],r=e[e.length-1];return n==="["&&r==="]"||n==="{"&&r==="}"}function zt(e,n){const r=Fi(e);return m.stringMatchesSomePattern(r,n)}function Fi(e,n=f.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(f.location.origin))return e;const r=new URL(e,n);if(r.origin!==new URL(n).origin)return e;const u=r.href;return!e.endsWith("/")&&u.endsWith("/")?u.slice(0,-1):u}async function Hi(e,n,r){try{const u=await Gi(e,n,r),O=dr("resource.fetch",u);jt(r.replay,O)}catch(u){Ee&&m.logger.error("[Replay] Failed to capture fetch breadcrumb",u)}}function ji(e,n,r){const{input:u,response:O}=n,D=u?hr(u):void 0,N=Gt(D,r.textEncoder),P=O?ur(O.headers.get("content-length")):void 0;N!==void 0&&(e.data.request_body_size=N),P!==void 0&&(e.data.response_body_size=P)}async function Gi(e,n,r){const u=Date.now(),{startTimestamp:O=u,endTimestamp:D=u}=n,{url:N,method:P,status_code:k=0,request_body_size:U,response_body_size:j}=e.data,H=zt(N,r.networkDetailAllowUrls)&&!zt(N,r.networkDetailDenyUrls),$=H?$i(r,n.input,U):Mt(U),V=await zi(H,r,n.response,j);return{startTimestamp:O,endTimestamp:D,url:N,method:P,statusCode:k,request:$,response:V}}function $i({networkCaptureBodies:e,networkRequestHeaders:n},r,u){const O=r?Yi(r,n):{};if(!e)return qe(O,u,void 0);const D=hr(r),[N,P]=lr(D),k=qe(O,u,N);return P?$t(k,P):k}async function zi(e,{networkCaptureBodies:n,textEncoder:r,networkResponseHeaders:u},O,D){if(!e&&D!==void 0)return Mt(D);const N=O?pr(O.headers,u):{};if(!O||!n&&D!==void 0)return qe(N,D,void 0);const[P,k]=await xi(O),U=Wi(P,{networkCaptureBodies:n,textEncoder:r,responseBodySize:D,captureDetails:e,headers:N});return k?$t(U,k):U}function Wi(e,{networkCaptureBodies:n,textEncoder:r,responseBodySize:u,captureDetails:O,headers:D}){try{const N=e&&e.length&&u===void 0?Gt(e,r):u;return O?n?qe(D,N,e):qe(D,N,void 0):Mt(N)}catch(N){return Ee&&m.logger.warn("[Replay] Failed to serialize response body",N),qe(D,u,void 0)}}async function xi(e){const n=Ki(e);if(!n)return[void 0,"BODY_PARSE_ERROR"];try{return[await Vi(n)]}catch(r){return Ee&&m.logger.warn("[Replay] Failed to get text body from response",r),[void 0,"BODY_PARSE_ERROR"]}}function hr(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function pr(e,n){const r={};return n.forEach(u=>{e.get(u)&&(r[u]=e.get(u))}),r}function Yi(e,n){return e.length===1&&typeof e[0]!="string"?mr(e[0],n):e.length===2?mr(e[1],n):{}}function mr(e,n){if(!e)return{};const r=e.headers;return r?r instanceof Headers?pr(r,n):Array.isArray(r)?{}:hn(r,n):{}}function Ki(e){try{return e.clone()}catch(n){Ee&&m.logger.warn("[Replay] Failed to clone response body",n)}}function Vi(e){return new Promise((n,r)=>{const u=setTimeout(()=>r(new Error("Timeout while trying to read response body")),500);Ji(e).then(O=>n(O),O=>r(O)).finally(()=>clearTimeout(u))})}async function Ji(e){return await e.text()}async function Xi(e,n,r){try{const u=Zi(e,n,r),O=dr("resource.xhr",u);jt(r.replay,O)}catch(u){Ee&&m.logger.error("[Replay] Failed to capture xhr breadcrumb",u)}}function Qi(e,n,r){const{xhr:u,input:O}=n;if(!u)return;const D=Gt(O,r.textEncoder),N=u.getResponseHeader("content-length")?ur(u.getResponseHeader("content-length")):no(u.response,u.responseType,r.textEncoder);D!==void 0&&(e.data.request_body_size=D),N!==void 0&&(e.data.response_body_size=N)}function Zi(e,n,r){const u=Date.now(),{startTimestamp:O=u,endTimestamp:D=u,input:N,xhr:P}=n,{url:k,method:U,status_code:j=0,request_body_size:H,response_body_size:$}=e.data;if(!k)return null;if(!P||!zt(k,r.networkDetailAllowUrls)||zt(k,r.networkDetailDenyUrls)){const oe=Mt(H),ee=Mt($);return{startTimestamp:O,endTimestamp:D,url:k,method:U,statusCode:j,request:oe,response:ee}}const V=P[m.SENTRY_XHR_DATA_KEY],J=V?hn(V.request_headers,r.networkRequestHeaders):{},q=hn(qi(P),r.networkResponseHeaders),[ie,te]=r.networkCaptureBodies?lr(N):[void 0],[ae,Se]=r.
21networkCaptureBodies?eo(P):[void 0],he=qe(J,H,ie),Ce=qe(q,$,ae);return{startTimestamp:O,endTimestamp:D,url:k,method:U,statusCode:j,request:te?$t(he,te):he,response:Se?$t(Ce,Se):Ce}}function qi(e){const n=e.getAllResponseHeaders();return n?n.split(`\r
22`).reduce((r,u)=>{const[O,D]=u.split(": ");return r[O.toLowerCase()]=D,r},{}):{}}function eo(e){const n=[];try{return[e.responseText]}catch(r){n.push(r)}try{return to(e.response,e.responseType)}catch(r){n.push(r)}return Ee&&m.logger.warn("[Replay] Failed to get xhr response body",...n),[void 0]}function to(e,n){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(n==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch{return Ee&&m.logger.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Ee&&m.logger.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function no(e,n,r){try{const u=n==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Gt(u,r)}catch{return}}function ro(e){const n=E.getClient();try{const r=new TextEncoder,{networkDetailAllowUrls:u,networkDetailDenyUrls:O,networkCaptureBodies:D,networkRequestHeaders:N,networkResponseHeaders:P}=e.getOptions(),k={replay:e,textEncoder:r,networkDetailAllowUrls:u,networkDetailDenyUrls:O,networkCaptureBodies:D,networkRequestHeaders:N,networkResponseHeaders:P};n&&n.on?n.on("beforeAddBreadcrumb",(U,j)=>so(k,U,j)):(m.addFetchInstrumentationHandler(ki(e)),m.addXhrInstrumentationHandler(Bi(e)))}catch{}}function so(e,n,r){if(n.data)try{io(n)&&ao(r)&&(Qi(n,r,e),Xi(n,r,e)),oo(n)&&co(r)&&(ji(n,r,e),Hi(n,r,e))}catch{Ee&&m.logger.warn("Error when enriching network breadcrumb")}}function io(e){return e.category==="xhr"}function oo(e){return e.category==="fetch"}function ao(e){return e&&e.xhr}function co(e){return e&&e.response}let gr=null;function uo(e){return!!e.category}const lo=e=>n=>{if(!e.isEnabled())return;const r=fo(n);r&&Ot(e,r)};function fo(e){const n=e.getLastBreadcrumb&&e.getLastBreadcrumb();return gr===n||!n||(gr=n,!uo(n)||["fetch","xhr","sentry.event","sentry.transaction"].includes(n.category)||n.category.startsWith("ui."))?null:n.category==="console"?ho(n):Ke(n)}function ho(e){const n=e.data&&e.data.arguments;if(!Array.isArray(n)||n.length===0)return Ke(e);let r=!1;const u=n.map(O=>{if(!O)return O;if(typeof O=="string")return O.length>h?(r=!0,`${O.slice(0,h)}\u2026`):O;if(typeof O=="object")try{const D=m.normalize(O,7);return JSON.stringify(D).length>h?(r=!0,`${JSON.stringify(D,null,2).slice(0,h)}\u2026`):D}catch{}return O});return Ke({...e,data:{...e.data,arguments:u,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function po(e){const n=E.getCurrentScope(),r=E.getClient();n.addScopeListener(lo(e)),m.addClickKeypressInstrumentationHandler(Ws(e)),m.addHistoryInstrumentationHandler(Di(e)),ro(e);const u=Mi(e,!Sr(r));r&&r.addEventProcessor?r.addEventProcessor(u):E.addEventProcessor(u),Sr(r)&&(r.on("beforeSendEvent",vi(e)),r.on("afterSendEvent",cr(e)),r.on("createDsc",O=>{const D=e.getSessionId();D&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(O.replay_id=D)}),r.on("startTransaction",O=>{e.lastTransaction=O}),r.on("finishTransaction",O=>{e.lastTransaction=O}),r.on("beforeSendFeedback",(O,D)=>{const N=e.getSessionId();D&&D.includeReplay&&e.isEnabled()&&N&&O.contexts&&O.contexts.feedback&&(O.contexts.feedback.replay_id=N)}))}function Sr(e){return!!(e&&e.on)}async function mo(e){try{return Promise.all(Ht(e,[go(f.performance.memory)]))}catch{return[]}}function go(e){const{jsHeapSizeLimit:n,totalJSHeapSize:r,usedJSHeapSize:u}=e,O=Date.now()/1e3;return{type:"memory",name:"memory",start:O,end:O,data:{memory:{jsHeapSizeLimit:n,totalJSHeapSize:r,usedJSHeapSize:u}}}}function So(e,n,r){let u,O,D;const N=r&&r.maxWait?Math.max(r.maxWait,n):0;function P(){return k(),u=e(),u}function k(){O!==void 0&&clearTimeout(O),D!==void 0&&clearTimeout(D),O=D=void 0}function U(){return O!==void 0||D!==void 0?P():u}function j(){return O&&clearTimeout(O),O=setTimeout(P,n),N&&D===void 0&&(D=setTimeout(P,N)),u}return j.cancel=k,j.flush=U,j}function yo(e){let n=!1;return(r,u)=>{if(!e.checkAndHandleExpiredSession()){Ee&&m.logger.warn("[Replay] Received replay event after session expired.");return}const O=u||!n;n=!0,e.clickDetector&&Hs(e.clickDetector,r),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&O&&e.setInitialState(),!ln(e,r,O))return!0;
22if(!O)return!1;if(_o(e,O),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){const D=e.eventBuffer.getEarliestTimestamp();D&&(Le(`[Replay] Updating session start time to earliest event in buffer to ${new Date(D)}`,e.getOptions()._experiments.traceInternals),e.session.started=D,e.getOptions().stickySession&&an(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function Eo(e){const n=e.getOptions();return{type:ce.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:n.sessionSampleRate,errorSampleRate:n.errorSampleRate,useCompressionOption:n.useCompression,blockAllMedia:n.blockAllMedia,maskAllText:n.maskAllText,maskAllInputs:n.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:n.networkDetailAllowUrls.length>0,networkCaptureBodies:n.networkCaptureBodies,networkRequestHasHeaders:n.networkRequestHeaders.length>0,networkResponseHasHeaders:n.networkResponseHeaders.length>0}}}}function _o(e,n){!n||!e.session||e.session.segmentId!==0||ln(e,Eo(e),!1)}function To(e,n,r,u){return m.createEnvelope(m.createEventEnvelopeHeaders(e,m.getSdkMetadataForEnvelopeHeader(e),u,r),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof n=="string"?new TextEncoder().encode(n).length:n.length},n]])}function Io({recordingData:e,headers:n}){let r;const u=`${JSON.stringify(n)}
23`;if(typeof e=="string")r=`${u}${e}`;else{const D=new TextEncoder().encode(u);r=new Uint8Array(D.length+e.length),r.set(D),r.set(e,D.length)}return r}async function vo({client:e,scope:n,replayId:r,event:u}){const O=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,D={event_id:r,integrations:O};e.emit&&e.emit("preprocessEvent",u,D);const N=await E.prepareEvent(e.getOptions(),u,D,n,e,E.getIsolationScope());if(!N)return null;N.platform=N.platform||"javascript";const P=e.getSdkMetadata&&e.getSdkMetadata(),{name:k,version:U}=P&&P.sdk||{};return N.sdk={...N.sdk,name:k||"sentry.javascript.unknown",version:U||"0.0.0"},N}async function bo({recordingData:e,replayId:n,segmentId:r,eventContext:u,timestamp:O,session:D}){const N=Io({recordingData:e,headers:{segment_id:r}}),{urls:P,errorIds:k,traceIds:U,initialTimestamp:j}=u,H=E.getClient(),$=E.getCurrentScope(),V=H&&H.getTransport(),J=H&&H.getDsn();if(!H||!V||!J||!D.sampled)return;const q={type:y,replay_start_timestamp:j/1e3,timestamp:O/1e3,error_ids:k,trace_ids:U,urls:P,replay_id:n,segment_id:r,replay_type:D.sampled},ie=await vo({scope:$,client:H,replayId:n,event:q});if(!ie){H.recordDroppedEvent("event_processor","replay",q),Le("An event processor returned `null`, will not send event.");return}delete ie.sdkProcessingMetadata;const te=To(ie,N,J,H.getOptions().tunnel);let ae;try{ae=await V.send(te)}catch(he){const Ce=new Error(_);try{Ce.cause=he}catch{}throw Ce}if(!ae)return ae;if(typeof ae.statusCode=="number"&&(ae.statusCode<200||ae.statusCode>=300))throw new yr(ae.statusCode);const Se=m.updateRateLimits({},ae);if(m.isRateLimited(Se,"replay"))throw new Er(Se);return ae}class yr extends Error{constructor(n){super(`Transport returned status code ${n}`)}}class Er extends Error{constructor(n){super("Rate limit hit"),this.rateLimits=n}}async function _r(e,n={count:0,interval:M}){const{recordingData:r,options:u}=e;if(r.length)try{return await bo(e),!0}catch(O){if(O instanceof yr||O instanceof Er)throw O;if(E.setContext("Replays",{_retryCount:n.count}),Ee&&u._experiments&&u._experiments.captureExceptions&&E.captureException(O),n.count>=b){const D=new Error(`${_} - max retries exceeded`);try{D.cause=O}catch{}throw D}return n.interval*=++n.count,new Promise((D,N)=>{setTimeout(async()=>{try{await _r(e,n),D(!0)}catch(P){N(P)}},n.interval)})}}const Tr="__THROTTLED",Ro="__SKIPPED";function Co(e,n,r){const u=new Map,O=P=>{const k=P-r;u.forEach((U,j)=>{j<k&&u.delete(j)})},D=()=>[...u.values()].reduce((P,k)=>P+k,0);let N=!1;return(...P)=>{const k=Math.floor(Date.now()/1e3);if(O(k),D()>=n){const j=N;return N=!0,j?Ro:Tr}N=!1;const U=u.get(k)||0;return u.set(k,U+1),e(...P)}}class et{constructor({options:n,recordingOptions:r}){et.prototype.__init.call(this),et.prototype.__init2.call(this),et.prototype.__init3.call(this),et.prototype.__init4.call(this),et.prototype.__init5.call(this),et.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:o,sessionIdleExpire:i},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=r,this._options=n,this._debouncedFlush=So(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Co((N,P)=>Si(this,N,P),300,5);const{slowClickTimeout:u,slowClickIgnoreSelectors:O}=this.getOptions(),D=u?{threshold:Math.min(d,u),timeout:u,scrollTimeout:I,ignoreSelector:O?O.join(","):""}:void 0;D&&(this.clickDetector=new Bs(this,D))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(n){const{errorSampleRate:r,sessionSampleRate:u}=this._options;
23if(!(r<=0&&u<=0)){if(this._initializeSessionForSampling(n),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",yt(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");yt("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const n=un({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=n,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");yt("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const n=un({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=n,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const n=this._canvas;this._stopRecording=Qe({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:C},emit:yo(this),onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(n){this._handleException(n)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(n){return this._handleException(n),!1}}async stop({forceFlush:n=!1,reason:r}={}){if(this._isEnabled){this._isEnabled=!1;try{Le(`[Replay] Stopping Replay${r?` triggered by ${r}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),n&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,fi(this)}catch(u){this._handleException(u)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Le("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Le("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:n=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const r=Date.now();Le("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const u=this.stopRecording();!n||!u||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(r),this._updateSessionActivity(r),this._maybeSaveSession()),this.startRecording())}addUpdate(n){const r=n();this.recordingMode!=="buffer"&&r!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?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&&cn(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const n=`${f.location.pathname}${f.location.hash}${f.location.search}`,r=`${f.location.origin}${n}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.
23initialUrl=r,this._context.initialTimestamp=Date.now(),this._context.urls.push(r)}throttledAddEvent(n,r){const u=this._throttledAddEvent(n,r);if(u===Tr){const O=Ke({category:"replay.throttled"});this.addUpdate(()=>!ln(this,{type:As,timestamp:O.timestamp||0,data:{tag:"breadcrumb",payload:O,metric:!0}}))}return u}getCurrentRoute(){const n=this.lastTransaction||E.getCurrentScope().getTransaction(),u=(n&&E.spanToJSON(n).data||{})[E.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(!(!n||!u||!["route","custom"].includes(u)))return E.spanToJSON(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=ui({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(n){Ee&&m.logger.error("[Replay]",n),Ee&&this._options._experiments&&this._options._experiments.captureExceptions&&E.captureException(n)}_initializeSessionForSampling(n){const r=this._options.errorSampleRate>0,u=un({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:n},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:r});this.session=u}_checkSession(){if(!this.session)return!1;const n=this.session;return sr(n,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(n),!1):!0}async _refreshSession(n){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(n.id))}_addListeners(){try{f.document.addEventListener("visibilitychange",this._handleVisibilityChange),f.addEventListener("blur",this._handleWindowBlur),f.addEventListener("focus",this._handleWindowFocus),f.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(po(this),this._hasInitializedCoreListeners=!0)}catch(n){this._handleException(n)}this._performanceCleanupCallback=ri(this)}_removeListeners(){try{f.document.removeEventListener("visibilitychange",this._handleVisibilityChange),f.removeEventListener("blur",this._handleWindowBlur),f.removeEventListener("focus",this._handleWindowFocus),f.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(n){this._handleException(n)}}__init(){this._handleVisibilityChange=()=>{f.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const n=Ke({category:"ui.blur"});this._doChangeToBackgroundTasks(n)}}__init3(){this._handleWindowFocus=()=>{const n=Ke({category:"ui.focus"});this._doChangeToForegroundTasks(n)}}__init4(){this._handleKeyboardEvent=n=>{Vs(this,n)}}_doChangeToBackgroundTasks(n){!this.session||rr(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(n&&this._createCustomBreadcrumb(n),this.conditionalFlush())}_doChangeToForegroundTasks(n){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){Le("[Replay] Document has become active, but session has expired");return}n&&this._createCustomBreadcrumb(n)}_updateUserActivity(n=Date.now()){this._lastActivity=n}_updateSessionActivity(n=Date.now()){this.session&&(this.session.lastActivity=n,this._maybeSaveSession())}_createCustomBreadcrumb(n){this.addUpdate(()=>{this.throttledAddEvent({type:ce.Custom,timestamp:n.timestamp||0,data:{tag:"breadcrumb",payload:n}})})}_addPerformanceEntries(){const n=Qs(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Ht(this,n))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:n,eventBuffer:r}=this;if(!n||!r||n.segmentId)return;const u=r.getEarliestTimestamp();
23u&&u<this._context.initialTimestamp&&(this._context.initialTimestamp=u)}_popEventContext(){const n={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),n}async _runFlush(){const n=this.getSessionId();if(!this.session||!this.eventBuffer||!n){Ee&&m.logger.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await mo(this),!!this.eventBuffer&&n===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const u=this._popEventContext(),O=this.session.segmentId++;this._maybeSaveSession();const D=await this.eventBuffer.finish();await _r({replayId:n,recordingData:D,segmentId:O,eventContext:u,session:this.session,options:this.getOptions(),timestamp:r})}catch(r){this._handleException(r),this.stop({reason:"sendReplay"});const u=E.getClient();u&&u.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:n=!1}={})=>{if(!this._isEnabled&&!n)return;if(!this.checkAndHandleExpiredSession()){Ee&&m.logger.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const r=this.session.started,O=Date.now()-r;this._debouncedFlush.cancel();const D=O<this._options.minReplayDuration,N=O>this._options.maxReplayDuration+5e3;if(D||N){Le(`[Replay] Session duration (${Math.floor(O/1e3)}s) is too ${D?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),D&&this._debouncedFlush();return}const P=this.eventBuffer;if(P&&this.session.segmentId===0&&!P.hasCheckout&&Le("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(k){Ee&&m.logger.error(k)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&an(this.session)}__init6(){this._onMutationHandler=n=>{const r=n.length,u=this._options.mutationLimit,O=this._options.mutationBreadcrumbLimit,D=u&&r>u;if(r>O||D){const N=Ke({category:"replay.mutations",data:{count:r,limit:D}});this._createCustomBreadcrumb(N)}return D?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function At(e,n,r,u){const O=typeof u=="string"?u.split(","):[],D=[...e,...O,...n];return typeof r<"u"&&(typeof r=="string"&&D.push(`.${r}`),m.consoleSandbox(()=>{a.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),D.join(",")}function Oo({mask:e,unmask:n,block:r,unblock:u,ignore:O,blockClass:D,blockSelector:N,maskTextClass:P,maskTextSelector:k,ignoreClass:U}){const j=['base[href="/"]'],H=At(e,[".sentry-mask","[data-sentry-mask]"],P,k),$=At(n,[".sentry-unmask","[data-sentry-unmask]"]),V={maskTextSelector:H,unmaskTextSelector:$,blockSelector:At(r,[".sentry-block","[data-sentry-block]",...j],D,N),unblockSelector:At(u,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:At(O,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],U)};return D instanceof RegExp&&(V.blockClass=D),P instanceof RegExp&&(V.maskTextClass=P),V}function Mo({el:e,key:n,maskAttributes:r,maskAllText:u,privacyOptions:O,value:D}){return!u||O.unmaskTextSelector&&e.matches(O.unmaskTextSelector)?D:r.includes(n)||n==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?D.replace(/[\S]/g,"*"):D}const Ir='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Ao=["content-length","content-type","accept"];let vr=!1;const br=e=>new Et(e);class Et{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:n=c,flushMaxDelay:r=l,minReplayDuration:u=A,maxReplayDuration:O=B,stickySession:D=!0,useCompression:N=!0,workerUrl:P,_experiments:k={},sessionSampleRate:U,errorSampleRate:j,maskAllText:H=!0,maskAllInputs:$=!0,blockAllMedia:V=!0,mutationBreadcrumbLimit:J=750,mutationLimit:q=1e4,slowClickTimeout:ie=7e3,slowClickIgnoreSelectors:te=[],networkDetailAllowUrls:ae=[],networkDetailDenyUrls:Se
23=[],networkCaptureBodies:he=!0,networkRequestHeaders:Ce=[],networkResponseHeaders:oe=[],mask:ee=[],maskAttributes:de=["title","placeholder"],unmask:Ae=[],block:ne=[],unblock:le=[],ignore:be=[],maskFn:Ne,beforeAddRecordingEvent:we,beforeErrorSampling:He,blockClass:_e,blockSelector:je,maskInputOptions:De,maskTextClass:Fe,maskTextSelector:We,ignoreClass:pn}={}){this.name=Et.id;const _t=Oo({mask:ee,unmask:Ae,block:ne,unblock:le,ignore:be,blockClass:_e,blockSelector:je,maskTextClass:Fe,maskTextSelector:We,ignoreClass:pn});if(this._recordingOptions={maskAllInputs:$,maskAllText:H,maskInputOptions:{...De||{},password:!0},maskTextFn:Ne,maskInputFn:Ne,maskAttributeFn:(tt,Tt,Dt)=>Mo({maskAttributes:de,maskAllText:H,privacyOptions:_t,key:tt,value:Tt,el:Dt}),..._t,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:tt=>{try{tt.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:n,flushMaxDelay:r,minReplayDuration:Math.min(u,w),maxReplayDuration:Math.min(O,B),stickySession:D,sessionSampleRate:U,errorSampleRate:j,useCompression:N,workerUrl:P,blockAllMedia:V,maskAllInputs:$,maskAllText:H,mutationBreadcrumbLimit:J,mutationLimit:q,slowClickTimeout:ie,slowClickIgnoreSelectors:te,networkDetailAllowUrls:ae,networkDetailDenyUrls:Se,networkCaptureBodies:he,networkRequestHeaders:Rr(Ce),networkResponseHeaders:Rr(oe),beforeAddRecordingEvent:we,beforeErrorSampling:He,_experiments:k},typeof U=="number"&&(a.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
24This option is deprecated and will be removed soon.
25Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
26Sentry.init({ replaysSessionSampleRate: ${U} })`),this._initialOptions.sessionSampleRate=U),typeof j=="number"&&(a.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
27This option is deprecated and will be removed soon.
28Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
29Sentry.init({ replaysOnErrorSampleRate: ${j} })`),this._initialOptions.errorSampleRate=j),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Ir}`:Ir),this._isInitialized&&m.isBrowser())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return vr}set _isInitialized(n){vr=n}setupOnce(){m.isBrowser()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(n){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(n)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const n=Do(this._initialOptions);this._replay=new et({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const r=E.getClient().getIntegrationByName("ReplayCanvas");if(!r)return;this._replay._canvas=r.getOptions()}catch{}}}Et.__initStatic();function Do(e){const n=E.getClient(),r=n&&n.getOptions(),u={sessionSampleRate:0,errorSampleRate:0,...m.dropUndefinedKeys(e)};return r?(e.sessionSampleRate==null&&e.errorSampleRate==null&&r.replaysSessionSampleRate==null&&r.replaysOnErrorSampleRate==null&&m.consoleSandbox(()=>{a.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof r.replaysSessionSampleRate=="number"&&(u.sessionSampleRate=r.replaysSessionSampleRate),typeof r.replaysOnErrorSampleRate=="number"&&(u.errorSampleRate=r.replaysOnErrorSampleRate),u):(m.consoleSandbox(()=>{a.warn("SDK client is not available.")}),u)}function Rr(e){return[...Ao,...e.map(n=>n.toLowerCase())]}function Cr(){const e=E.getClient();return e&&e.getIntegrationByName&&e.getIntegrationByName("Replay")}const No=Cr,wo=br;
29class ko extends Et{}t.InternalReplay=Et,t.Replay=ko,t.getReplay=No,t.internalGetReplay=Cr,t.internalReplayIntegration=br,t.replayIntegration=wo},555146:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(863315),g=s(582526);function v(p,y,_=250,o,i,c,l){if(!c.exception||!c.exception.values||!l||!a.isInstanceOf(l.originalException,Error))return;const C=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:void 0;C&&(c.exception.values=f(E(p,y,i,l.originalException,o,c.exception.values,C,0),_))}function E(p,y,_,o,i,c,l,C){if(c.length>=_+1)return c;let M=[...c];if(a.isInstanceOf(o[i],Error)){m(l,C);const b=p(y,o[i]),R=M.length;S(b,i,R,C),M=E(p,y,_,o[i],i,[b,...M],b,R)}return Array.isArray(o.errors)&&o.errors.forEach((b,R)=>{if(a.isInstanceOf(b,Error)){m(l,C);const h=p(y,b),d=M.length;S(h,`errors[${R}]`,d,C),M=E(p,y,_,b,i,[h,...M],h,d)}}),M}function m(p,y){p.mechanism=p.mechanism||{type:"generic",handled:!0},p.mechanism={...p.mechanism,...p.type==="AggregateError"&&{is_exception_group:!0},exception_id:y}}function S(p,y,_,o){p.mechanism=p.mechanism||{type:"generic",handled:!0},p.mechanism={...p.mechanism,type:"chained",source:y,exception_id:_,parent_id:o}}function f(p,y){return p.map(_=>(_.value&&(_.value=g.truncate(_.value,y)),_))}t.applyAggregateErrorsToEvent=v},637512:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(472496),g=s(374054);function v(m,S,f,p){const y=m();let _=!1,o=!0;return setInterval(()=>{const i=y.getTimeMs();_===!1&&i>S+f&&(_=!0,o&&p()),i<S+f&&(_=!1)},20),{poll:()=>{y.reset()},enabled:i=>{o=i}}}function E(m,S,f){const p=S?S.replace(/^file:\/\//,""):void 0,y=m.location.columnNumber?m.location.columnNumber+1:void 0,_=m.location.lineNumber?m.location.lineNumber+1:void 0;return a.dropUndefinedKeys({filename:p,module:f(p),function:m.functionName||"?",colno:y,lineno:_,in_app:p?g.filenameIsInApp(p):void 0})}t.callFrameToStackFrame=E,t.watchdogTimer=v},315473:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(693453),g=s(863315),v=s(624823),E="baggage",m="sentry-",S=/^sentry-/,f=8192;function p(i){if(!g.isString(i)&&!Array.isArray(i))return;let c={};if(Array.isArray(i))c=i.reduce((C,M)=>{const b=_(M);for(const R of Object.keys(b))C[R]=b[R];return C},{});else{if(!i)return;c=_(i)}const l=Object.entries(c).reduce((C,[M,b])=>{if(M.match(S)){const R=M.slice(m.length);C[R]=b}return C},{});if(Object.keys(l).length>0)return l}function y(i){if(!i)return;const c=Object.entries(i).reduce((l,[C,M])=>(M&&(l[`${m}${C}`]=M),l),{});return o(c)}function _(i){return i.split(",").map(c=>c.split("=").map(l=>decodeURIComponent(l.trim()))).reduce((c,[l,C])=>(c[l]=C,c),{})}function o(i){if(Object.keys(i).length!==0)return Object.entries(i).reduce((c,[l,C],M)=>{const b=`${encodeURIComponent(l)}=${encodeURIComponent(C)}`,R=M===0?b:`${c},${b}`;return R.length>f?(a.DEBUG_BUILD&&v.logger.warn(`Not adding key: ${l} with val: ${C} to baggage header due to exceeding baggage size limits.`),c):R},"")}t.BAGGAGE_HEADER_NAME=E,t.MAX_BAGGAGE_STRING_LENGTH=f,t.SENTRY_BAGGAGE_KEY_PREFIX=m,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=S,t.baggageHeaderToDynamicSamplingContext=p,t.dynamicSamplingContextToSentryBaggageHeader=y},558835:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(863315),v=s(457148).getGlobalObject(),E=80;function m(_,o={}){if(!_)return"<unknown>";try{let i=_;const c=5,l=[];let C=0,M=0;const b=" > ",R=b.length;let h;const d=Array.isArray(o)?o:o.keyAttrs,I=!Array.isArray(o)&&o.maxStringLength||E;for(;i&&C++<c&&(h=S(i,d),!(h==="html"||C>1&&M+l.length*R+h.length>=I));)l.push(h),M+=h.length,i=i.parentNode;return l.reverse().join(b)}catch{return"<unknown>"}}function S(_,o){const i=_,c=[];let l,C,M,b,R;if(!i||!i.tagName)return"";if(v.HTMLElement&&i instanceof HTMLElement&&i.dataset&&i.dataset.sentryComponent)return i.dataset.sentryComponent;c.push(i.tagName.toLowerCase());const h=o&&o.length?o.filter(I=>i.getAttribute(I)).map(I=>[I,i.getAttribute(I)]):null;if(h&&h.length)h.forEach(I=>{c.push(`[${I[0]}="${I[1]}"]`)});else if(i.id&&c.push(`#${i.id}`),l=i.className,l&&a.isString(l))for(C=l.split(/\s+/),R=0;R<C.length;R++)c.push(`.${C[R]}`);const d=["aria-label","type","name","title","alt"];for(R=0;R<d.length;R++)M=d[R],b=i.getAttribute(M),b&&c.push(`[${M}="${b}"]`);return c.join("")}function f(){try{return v.document.location.href}catch{return""}}function p(_){return v.document&&v.document.querySelector?v.document.querySelector(_):null}function y(_){if(!v.HTMLElement)return null;let o=_;const i=5;for(let c=0;c<i;c++){if(!o)return null;if(o instanceof HTMLElement&&o.dataset.sentryComponent)return o.dataset.sentryComponent;o=o.parentNode}return null}t.getComponentName=y,t.getDomElement=p,t.getLocationHref=f,t.htmlTreeAsString=m},227929:(L,t,s)=>
29{Object.defineProperty(t,"__esModule",{value:!0});const a=s(681397);async function g(v,E){return a._nullishCoalesce(v,E)}t._asyncNullishCoalesce=g},546024:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});async function s(a){let g,v=a[0],E=1;for(;E<a.length;){const m=a[E],S=a[E+1];if(E+=2,(m==="optionalAccess"||m==="optionalCall")&&v==null)return;m==="access"||m==="optionalAccess"?(g=v,v=await S(v)):(m==="call"||m==="optionalCall")&&(v=await S((...f)=>v.call(g,...f)),g=void 0)}return v}t._asyncOptionalChain=s},982415:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(546024);async function g(v){const E=await a._asyncOptionalChain(v);return E??!0}t._asyncOptionalChainDelete=g},681397:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(a,g){return a??g()}t._nullishCoalesce=s},232852:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(a){let g,v=a[0],E=1;for(;E<a.length;){const m=a[E],S=a[E+1];if(E+=2,(m==="optionalAccess"||m==="optionalCall")&&v==null)return;m==="access"||m==="optionalAccess"?(g=v,v=S(v)):(m==="call"||m==="optionalCall")&&(v=S((...f)=>v.call(g,...f)),g=void 0)}return v}t._optionalChain=s},239723:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(232852);function g(v){const E=a._optionalChain(v);return E??!0}t._optionalChainDelete=g},153113:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(a){let g=[],v={};return{add(E,m){for(;g.length>=a;){const S=g.shift();S!==void 0&&delete v[S]}v[E]&&this.delete(E),g.push(E),v[E]=m},clear(){v={},g=[]},get(E){return v[E]},size(){return g.length},delete(E){if(!v[E])return!1;delete v[E];for(let m=0;m<g.length;m++)if(g[m]===E){g.splice(m,1);break}return!0}}}t.makeFifoCache=s},713766:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(918527),g=s(486382);function v(E,m,S){const f=[{type:"client_report"},{timestamp:S||g.dateTimestampInSeconds(),discarded_events:E}];return a.createEnvelope(m?{dsn:m}:{},[f])}t.createClientReportEnvelope=v},839981:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(a){const g={};let v=0;for(;v<a.length;){const E=a.indexOf("=",v);if(E===-1)break;let m=a.indexOf(";",v);if(m===-1)m=a.length;else if(m<E){v=a.lastIndexOf(";",E-1)+1;continue}const S=a.slice(v,E).trim();if(g[S]===void 0){let f=a.slice(E+1,m).trim();f.charCodeAt(0)===34&&(f=f.slice(1,-1));try{g[S]=f.indexOf("%")!==-1?decodeURIComponent(f):f}catch{g[S]=f}}v=m+1}return g}t.parseCookie=s},693453:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;t.DEBUG_BUILD=s},402030:(L,t,s)=>{var a=s(80247);Object.defineProperty(t,"__esModule",{value:!0});const g=s(693453),v=s(624823),E=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function m(o){return o==="http"||o==="https"}function S(o,i=!1){const{host:c,path:l,pass:C,port:M,projectId:b,protocol:R,publicKey:h}=o;return`${R}://${h}${i&&C?`:${C}`:""}@${c}${M?`:${M}`:""}/${l&&`${l}/`}${b}`}function f(o){const i=E.exec(o);if(!i){v.consoleSandbox(()=>{a.error(`Invalid Sentry Dsn: ${o}`)});return}const[c,l,C="",M,b="",R]=i.slice(1);let h="",d=R;const I=d.split("/");if(I.length>1&&(h=I.slice(0,-1).join("/"),d=I.pop()),d){const T=d.match(/^\d+/);T&&(d=T[0])}return p({host:M,pass:C,path:h,projectId:d,port:b,protocol:c,publicKey:l})}function p(o){return{protocol:o.protocol,publicKey:o.publicKey||"",pass:o.pass||"",host:o.host,port:o.port||"",path:o.path||"",projectId:o.projectId}}function y(o){if(!g.DEBUG_BUILD)return!0;const{port:i,projectId:c,protocol:l}=o;return["protocol","publicKey","host","projectId"].find(b=>o[b]?!1:(v.logger.error(`Invalid Sentry Dsn: ${b} missing`),!0))?!1:c.match(/^\d+$/)?m(l)?i&&isNaN(parseInt(i,10))?(v.logger.error(`Invalid Sentry Dsn: Invalid port ${i}`),!1):!0:(v.logger.error(`Invalid Sentry Dsn: Invalid protocol ${l}`),!1):(v.logger.error(`Invalid Sentry Dsn: Invalid projectId ${c}`),!1)}function _(o){const i=typeof o=="string"?f(o):p(o);if(!(!i||!y(i)))return i}t.dsnFromString=f,t.dsnToString=S,t.makeDsn=_},407656:(L,t)=>
29{Object.defineProperty(t,"__esModule",{value:!0});function s(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function a(){return"npm"}t.getSDKSource=a,t.isBrowserBundle=s},918527:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(402030),g=s(770108),v=s(472496);function E(b,R=[]){return[b,R]}function m(b,R){const[h,d]=b;return[h,[...d,R]]}function S(b,R){const h=b[1];for(const d of h){const I=d[0].type;if(R(d,I))return!0}return!1}function f(b,R){return S(b,(h,d)=>R.includes(d))}function p(b,R){return(R||new TextEncoder).encode(b)}function y(b,R){const[h,d]=b;let I=JSON.stringify(h);function T(A){typeof I=="string"?I=typeof A=="string"?I+A:[p(I,R),A]:I.push(typeof A=="string"?p(A,R):A)}for(const A of d){const[w,B]=A;if(T(`
30${JSON.stringify(w)}
31`),typeof B=="string"||B instanceof Uint8Array)T(B);else{let F;try{F=JSON.stringify(B)}catch{F=JSON.stringify(g.normalize(B))}T(F)}}return typeof I=="string"?I:_(I)}function _(b){const R=b.reduce((I,T)=>I+T.length,0),h=new Uint8Array(R);let d=0;for(const I of b)h.set(I,d),d+=I.length;return h}function o(b,R,h){let d=typeof b=="string"?R.encode(b):b;function I(B){const F=d.subarray(0,B);return d=d.subarray(B+1),F}function T(){let B=d.indexOf(10);return B<0&&(B=d.length),JSON.parse(h.decode(I(B)))}const A=T(),w=[];for(;d.length;){const B=T(),F=typeof B.length=="number"?B.length:void 0;w.push([B,F?I(F):T()])}return[A,w]}function i(b,R){const h=typeof b.data=="string"?p(b.data,R):b.data;return[v.dropUndefinedKeys({type:"attachment",length:h.length,filename:b.filename,content_type:b.contentType,attachment_type:b.attachmentType}),h]}const c={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function l(b){return c[b]}function C(b){if(!b||!b.sdk)return;const{name:R,version:h}=b.sdk;return{name:R,version:h}}function M(b,R,h,d){const I=b.sdkProcessingMetadata&&b.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:b.event_id,sent_at:new Date().toISOString(),...R&&{sdk:R},...!!h&&d&&{dsn:a.dsnToString(d)},...I&&{trace:v.dropUndefinedKeys({...I})}}}t.addItemToEnvelope=m,t.createAttachmentEnvelopeItem=i,t.createEnvelope=E,t.createEventEnvelopeHeaders=M,t.envelopeContainsItemType=f,t.envelopeItemTypeToDataCategory=l,t.forEachEnvelopeItem=S,t.getSdkMetadataForEnvelopeHeader=C,t.parseEnvelope=o,t.serializeEnvelope=y},320717:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class s extends Error{constructor(g,v="warn"){super(g),this.message=g,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=v}}t.SentryError=s},992104:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(863315),g=s(346659),v=s(770108),E=s(472496);function m(_,o){return _(o.stack||"",1)}function S(_,o){const i={type:o.name||o.constructor.name,value:o.message},c=m(_,o);return c.length&&(i.stacktrace={frames:c}),i}function f(_){if("name"in _&&typeof _.name=="string"){let o=`'${_.name}' captured as exception`;return"message"in _&&typeof _.message=="string"&&(o+=` with message '${_.message}'`),o}else return"message"in _&&typeof _.message=="string"?_.message:`Object captured as exception with keys: ${E.extractExceptionKeysForMessage(_)}`}function p(_,o,i,c){const l=typeof _=="function"?_().getClient():_;let C=i;const b=c&&c.data&&c.data.mechanism||{handled:!0,type:"generic"};let R;if(!a.isError(i)){if(a.isPlainObject(i)){const d=l&&l.getOptions().normalizeDepth;R={__serialized__:v.normalizeToSize(i,d)};const I=f(i);C=c&&c.syntheticException||new Error(I),C.message=I}else C=c&&c.syntheticException||new Error(i),C.message=i;b.synthetic=!0}const h={exception:{values:[S(o,C)]}};return R&&(h.extra=R),g.addExceptionTypeValue(h,void 0,void 0),g.addExceptionMechanism(h,b),{...h,event_id:c&&c.event_id}}function y(_,o,i="info",c,l){const C={event_id:c&&c.event_id,level:i};if(l&&c&&c.syntheticException){const M=m(_,c.syntheticException);M.length&&(C.exception={values:[{value:o,stacktrace:{frames:M}}]})}
31if(a.isParameterizedString(o)){const{__sentry_template_string__:M,__sentry_template_values__:b}=o;return C.logentry={message:M,params:b},C}return C.message=o,C}t.eventFromMessage=y,t.eventFromUnknownInput=p,t.exceptionFromError=S,t.parseStackFrames=m},289375:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(555146),g=s(558835),v=s(402030),E=s(320717),m=s(457148),S=s(4277),f=s(863315),p=s(907451),y=s(624823),_=s(434153),o=s(346659),i=s(192559),c=s(770108),l=s(472496),C=s(625696),M=s(953368),b=s(34150),R=s(51008),h=s(466502),d=s(582526),I=s(640415),T=s(996403),A=s(486382),w=s(379961),B=s(407656),F=s(918527),G=s(713766),Y=s(664630),X=s(315473),Q=s(449286),x=s(829931),K=s(153113),re=s(992104),z=s(637512),W=s(531922),Z=s(227929),se=s(546024),Ie=s(982415),ve=s(681397),ye=s(232852),Re=s(239723),ke=s(214228),Ue=s(773645),Ge=s(569651),ct=s(409925),It=s(170505),nt=s(877734),ut=s(804736),Yt=s(126885),Kt=s(374054),rt=s(685216),vt=s(4582);t.applyAggregateErrorsToEvent=a.applyAggregateErrorsToEvent,t.getComponentName=g.getComponentName,t.getDomElement=g.getDomElement,t.getLocationHref=g.getLocationHref,t.htmlTreeAsString=g.htmlTreeAsString,t.dsnFromString=v.dsnFromString,t.dsnToString=v.dsnToString,t.makeDsn=v.makeDsn,t.SentryError=E.SentryError,t.GLOBAL_OBJ=m.GLOBAL_OBJ,t.getGlobalObject=m.getGlobalObject,t.getGlobalSingleton=m.getGlobalSingleton,t.addInstrumentationHandler=S.addInstrumentationHandler,t.isDOMError=f.isDOMError,t.isDOMException=f.isDOMException,t.isElement=f.isElement,t.isError=f.isError,t.isErrorEvent=f.isErrorEvent,t.isEvent=f.isEvent,t.isInstanceOf=f.isInstanceOf,t.isNaN=f.isNaN,t.isParameterizedString=f.isParameterizedString,t.isPlainObject=f.isPlainObject,t.isPrimitive=f.isPrimitive,t.isRegExp=f.isRegExp,t.isString=f.isString,t.isSyntheticEvent=f.isSyntheticEvent,t.isThenable=f.isThenable,t.isVueViewModel=f.isVueViewModel,t.isBrowser=p.isBrowser,t.CONSOLE_LEVELS=y.CONSOLE_LEVELS,t.consoleSandbox=y.consoleSandbox,t.logger=y.logger,t.originalConsoleMethods=y.originalConsoleMethods,t.memoBuilder=_.memoBuilder,t.addContextToFrame=o.addContextToFrame,t.addExceptionMechanism=o.addExceptionMechanism,t.addExceptionTypeValue=o.addExceptionTypeValue,t.arrayify=o.arrayify,t.checkOrSetAlreadyCaught=o.checkOrSetAlreadyCaught,t.getEventDescription=o.getEventDescription,t.parseSemver=o.parseSemver,t.uuid4=o.uuid4,t.dynamicRequire=i.dynamicRequire,t.isNodeEnv=i.isNodeEnv,t.loadModule=i.loadModule,t.normalize=c.normalize,t.normalizeToSize=c.normalizeToSize,t.normalizeUrlToBase=c.normalizeUrlToBase,t.walk=c.walk,t.addNonEnumerableProperty=l.addNonEnumerableProperty,t.convertToPlainObject=l.convertToPlainObject,t.dropUndefinedKeys=l.dropUndefinedKeys,t.extractExceptionKeysForMessage=l.extractExceptionKeysForMessage,t.fill=l.fill,t.getOriginalFunction=l.getOriginalFunction,t.markFunctionWrapped=l.markFunctionWrapped,t.objectify=l.objectify,t.urlEncode=l.urlEncode,t.basename=C.basename,t.dirname=C.dirname,t.isAbsolute=C.isAbsolute,t.join=C.join,t.normalizePath=C.normalizePath,t.relative=C.relative,t.resolve=C.resolve,t.makePromiseBuffer=M.makePromiseBuffer,t.DEFAULT_USER_INCLUDES=b.DEFAULT_USER_INCLUDES,t.addRequestDataToEvent=b.addRequestDataToEvent,t.addRequestDataToTransaction=b.addRequestDataToTransaction,t.extractPathForTransaction=b.extractPathForTransaction,t.extractRequestData=b.extractRequestData,t.winterCGHeadersToDict=b.winterCGHeadersToDict,t.winterCGRequestToRequestData=b.winterCGRequestToRequestData,t.severityFromString=R.severityFromString,t.severityLevelFromString=R.severityLevelFromString,t.validSeverityLevels=R.validSeverityLevels,t.createStackParser=h.createStackParser,t.getFunctionName=h.getFunctionName,t.nodeStackLineParser=h.nodeStackLineParser,t.stackParserFromStackParserOptions=h.stackParserFromStackParserOptions,t.stripSentryFramesAndReverse=h.stripSentryFramesAndReverse,t.isMatchingPattern=d.isMatchingPattern,t.safeJoin=d.safeJoin,t.snipLine=d.snipLine,t.stringMatchesSomePattern=d.stringMatchesSomePattern,t.truncate=d.truncate,t.isNativeFetch=I.isNativeFetch,t.supportsDOMError=I.supportsDOMError,t.supportsDOMException=I.supportsDOMException,t.supportsErrorEvent=I.supportsErrorEvent,t.supportsFetch=I.supportsFetch,t.supportsNativeFetch=I.supportsNativeFetch,t.supportsReferrerPolicy=I.supportsReferrerPolicy,t.supportsReportingObserver=I.supportsReportingObserver,t.SyncPromise=T.SyncPromise,t.rejectedSyncPromise=T.rejectedSyncPromise,t.resolvedSyncPromise=T.resolvedSyncPromise,Object.defineProperty(t,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>A._browserPerformanceTimeOriginMode}),t.browserPerformanceTimeOrigin=A.browserPerformanceTimeOrigin,t.dateTimestampInSeconds=A.dateTimestampInSeconds,t.timestampInSeconds=A.timestampInSeconds,t.timestampWithMs=A.timestampWithMs,t.TRACEPARENT_REGEXP=w.TRACEPARENT_REGEXP,t.extractTraceparentData=w.extractTraceparentData,t.generateSentryTraceHeader=w.generateSentryTraceHeader,t.propagationContextFromHeaders=w.propagationContextFromHeaders,t.tracingContextFromHeaders=w.tracingContextFromHeaders,t.getSDKSource=B.getSDKSource,t.isBrowserBun
31dle=B.isBrowserBundle,t.addItemToEnvelope=F.addItemToEnvelope,t.createAttachmentEnvelopeItem=F.createAttachmentEnvelopeItem,t.createEnvelope=F.createEnvelope,t.createEventEnvelopeHeaders=F.createEventEnvelopeHeaders,t.envelopeContainsItemType=F.envelopeContainsItemType,t.envelopeItemTypeToDataCategory=F.envelopeItemTypeToDataCategory,t.forEachEnvelopeItem=F.forEachEnvelopeItem,t.getSdkMetadataForEnvelopeHeader=F.getSdkMetadataForEnvelopeHeader,t.parseEnvelope=F.parseEnvelope,t.serializeEnvelope=F.serializeEnvelope,t.createClientReportEnvelope=G.createClientReportEnvelope,t.DEFAULT_RETRY_AFTER=Y.DEFAULT_RETRY_AFTER,t.disabledUntil=Y.disabledUntil,t.isRateLimited=Y.isRateLimited,t.parseRetryAfterHeader=Y.parseRetryAfterHeader,t.updateRateLimits=Y.updateRateLimits,t.BAGGAGE_HEADER_NAME=X.BAGGAGE_HEADER_NAME,t.MAX_BAGGAGE_STRING_LENGTH=X.MAX_BAGGAGE_STRING_LENGTH,t.SENTRY_BAGGAGE_KEY_PREFIX=X.SENTRY_BAGGAGE_KEY_PREFIX,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=X.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,t.baggageHeaderToDynamicSamplingContext=X.baggageHeaderToDynamicSamplingContext,t.dynamicSamplingContextToSentryBaggageHeader=X.dynamicSamplingContextToSentryBaggageHeader,t.getNumberOfUrlSegments=Q.getNumberOfUrlSegments,t.getSanitizedUrlString=Q.getSanitizedUrlString,t.parseUrl=Q.parseUrl,t.stripUrlQueryAndFragment=Q.stripUrlQueryAndFragment,t.addOrUpdateIntegration=x.addOrUpdateIntegration,t.makeFifoCache=K.makeFifoCache,t.eventFromMessage=re.eventFromMessage,t.eventFromUnknownInput=re.eventFromUnknownInput,t.exceptionFromError=re.exceptionFromError,t.parseStackFrames=re.parseStackFrames,t.callFrameToStackFrame=z.callFrameToStackFrame,t.watchdogTimer=z.watchdogTimer,t.LRUMap=W.LRUMap,t._asyncNullishCoalesce=Z._asyncNullishCoalesce,t._asyncOptionalChain=se._asyncOptionalChain,t._asyncOptionalChainDelete=Ie._asyncOptionalChainDelete,t._nullishCoalesce=ve._nullishCoalesce,t._optionalChain=ye._optionalChain,t._optionalChainDelete=Re._optionalChainDelete,t.addConsoleInstrumentationHandler=ke.addConsoleInstrumentationHandler,t.addClickKeypressInstrumentationHandler=Ue.addClickKeypressInstrumentationHandler,t.SENTRY_XHR_DATA_KEY=Ge.SENTRY_XHR_DATA_KEY,t.addXhrInstrumentationHandler=Ge.addXhrInstrumentationHandler,t.addFetchInstrumentationHandler=ct.addFetchInstrumentationHandler,t.addHistoryInstrumentationHandler=It.addHistoryInstrumentationHandler,t.addGlobalErrorInstrumentationHandler=nt.addGlobalErrorInstrumentationHandler,t.addGlobalUnhandledRejectionInstrumentationHandler=ut.addGlobalUnhandledRejectionInstrumentationHandler,t.resetInstrumentationHandlers=Yt.resetInstrumentationHandlers,t.filenameIsInApp=Kt.filenameIsInApp,t.escapeStringForRegex=rt.escapeStringForRegex,t.supportsHistory=vt.supportsHistory},126885:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(693453),g=s(624823),v=s(466502),E={},m={};function S(_,o){E[_]=E[_]||[],E[_].push(o)}
31function f(){Object.keys(E).forEach(_=>{E[_]=void 0})}function p(_,o){m[_]||(o(),m[_]=!0)}function y(_,o){const i=_&&E[_];if(i)for(const c of i)try{c(o)}catch(l){a.DEBUG_BUILD&&g.logger.error(`Error while triggering instrumentation handler.
32Type: ${_}
33Name: ${v.getFunctionName(c)}
34Error:`,l)}}t.addHandler=S,t.maybeInstrument=p,t.resetInstrumentationHandlers=f,t.triggerHandlers=y},214228:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(624823),g=s(472496),v=s(457148),E=s(126885);function m(f){const p="console";E.addHandler(p,f),E.maybeInstrument(p,S)}function S(){"console"in v.GLOBAL_OBJ&&a.CONSOLE_LEVELS.forEach(function(f){f in v.GLOBAL_OBJ.console&&g.fill(v.GLOBAL_OBJ.console,f,function(p){return a.originalConsoleMethods[f]=p,function(...y){const _={args:y,level:f};E.triggerHandlers("console",_);const o=a.originalConsoleMethods[f];o&&o.apply(v.GLOBAL_OBJ.console,y)}})})}t.addConsoleInstrumentationHandler=m},773645:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(346659),g=s(472496),v=s(457148),E=s(126885),m=v.GLOBAL_OBJ,S=1e3;let f,p,y;function _(M){const b="dom";E.addHandler(b,M),E.maybeInstrument(b,o)}function o(){if(!m.document)return;const M=E.triggerHandlers.bind(null,"dom"),b=l(M,!0);m.document.addEventListener("click",b,!1),m.document.addEventListener("keypress",b,!1),["EventTarget","Node"].forEach(R=>{const h=m[R]&&m[R].prototype;!h||!h.hasOwnProperty||!h.hasOwnProperty("addEventListener")||(g.fill(h,"addEventListener",function(d){return function(I,T,A){if(I==="click"||I=="keypress")try{const w=this,B=w.__sentry_instrumentation_handlers__=w.__sentry_instrumentation_handlers__||{},F=B[I]=B[I]||{refCount:0};if(!F.handler){const G=l(M);F.handler=G,d.call(this,I,G,A)}F.refCount++}catch{}return d.call(this,I,T,A)}}),g.fill(h,"removeEventListener",function(d){return function(I,T,A){if(I==="click"||I=="keypress")try{const w=this,B=w.__sentry_instrumentation_handlers__||{},F=B[I];F&&(F.refCount--,F.refCount<=0&&(d.call(this,I,F.handler,A),F.handler=void 0,delete B[I]),Object.keys(B).length===0&&delete w.__sentry_instrumentation_handlers__)}catch{}return d.call(this,I,T,A)}}))})}function i(M){if(M.type!==p)return!1;try{if(!M.target||M.target._sentryId!==y)return!1}catch{}return!0}function c(M,b){return M!=="keypress"?!1:!b||!b.tagName?!0:!(b.tagName==="INPUT"||b.tagName==="TEXTAREA"||b.isContentEditable)}function l(M,b=!1){return R=>{if(!R||R._sentryCaptured)return;const h=C(R);if(c(R.type,h))return;g.addNonEnumerableProperty(R,"_sentryCaptured",!0),h&&!h._sentryId&&g.addNonEnumerableProperty(h,"_sentryId",a.uuid4());const d=R.type==="keypress"?"input":R.type;i(R)||(M({event:R,name:d,global:b}),p=R.type,y=h?h._sentryId:void 0),clearTimeout(f),f=m.setTimeout(()=>{y=void 0,p=void 0},S)}}function C(M){try{return M.target}catch{return null}}t.addClickKeypressInstrumentationHandler=_,t.instrumentDOM=o},409925:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(472496),g=s(640415),v=s(457148),E=s(126885);function m(_){const o="fetch";E.addHandler(o,_),E.maybeInstrument(o,S)}function S(){g.supportsNativeFetch()&&a.fill(v.GLOBAL_OBJ,"fetch",function(_){return function(...o){const{method:i,url:c}=y(o),l={args:o,fetchData:{method:i,url:c},startTimestamp:Date.now()};return E.triggerHandlers("fetch",{...l}),_.apply(v.GLOBAL_OBJ,o).then(C=>{const M={...l,endTimestamp:Date.now(),response:C};return E.triggerHandlers("fetch",M),C},C=>{const M={...l,endTimestamp:Date.now(),error:C};throw E.triggerHandlers("fetch",M),C})}})}function f(_,o){return!!_&&typeof _=="object"&&!!_[o]}function p(_){return typeof _=="string"?_:_?f(_,"url")?_.url:_.toString?_.toString():"":""}function y(_){if(_.length===0)return{method:"GET",url:""};if(_.length===2){const[i,c]=_;return{url:p(i),method:f(c,"method")?String(c.method).toUpperCase():"GET"}}const o=_[0];return{url:p(o),method:f(o,"method")?String(o.method).toUpperCase():"GET"}}t.addFetchInstrumentationHandler=m,t.parseFetchArgs=y},877734:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(457148),g=s(126885);let v=null;function E(S){const f="error";g.addHandler(f,S),g.maybeInstrument(f,m)}function m(){v=a.GLOBAL_OBJ.onerror,a.GLOBAL_OBJ.onerror=function(S,f,p,y,_){const o={column:y,error:_,line:p,msg:S,url:f};return g.triggerHandlers("error",o),v&&!v.__SENTRY_LOADER__?v.apply(this,arguments):!1},a.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}t.addGlobalErrorInstrumentationHandler=E},804736:(L,t,s)=>
34{Object.defineProperty(t,"__esModule",{value:!0});const a=s(457148),g=s(126885);let v=null;function E(S){const f="unhandledrejection";g.addHandler(f,S),g.maybeInstrument(f,m)}function m(){v=a.GLOBAL_OBJ.onunhandledrejection,a.GLOBAL_OBJ.onunhandledrejection=function(S){const f=S;return g.triggerHandlers("unhandledrejection",f),v&&!v.__SENTRY_LOADER__?v.apply(this,arguments):!0},a.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}t.addGlobalUnhandledRejectionInstrumentationHandler=E},170505:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(472496);s(693453),s(624823);const g=s(457148),v=s(4582),E=s(126885),m=g.GLOBAL_OBJ;let S;function f(y){const _="history";E.addHandler(_,y),E.maybeInstrument(_,p)}function p(){if(!v.supportsHistory())return;const y=m.onpopstate;m.onpopstate=function(...o){const i=m.location.href,c=S;S=i;const l={from:c,to:i};if(E.triggerHandlers("history",l),y)try{return y.apply(this,o)}catch{}};function _(o){return function(...i){const c=i.length>2?i[2]:void 0;if(c){const l=S,C=String(c);S=C;const M={from:l,to:C};E.triggerHandlers("history",M)}return o.apply(this,i)}}a.fill(m.history,"pushState",_),a.fill(m.history,"replaceState",_)}t.addHistoryInstrumentationHandler=f},4277:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(693453),g=s(624823),v=s(214228),E=s(773645),m=s(409925),S=s(877734),f=s(804736),p=s(170505),y=s(569651);function _(o,i){switch(o){case"console":return v.addConsoleInstrumentationHandler(i);case"dom":return E.addClickKeypressInstrumentationHandler(i);case"xhr":return y.addXhrInstrumentationHandler(i);case"fetch":return m.addFetchInstrumentationHandler(i);case"history":return p.addHistoryInstrumentationHandler(i);case"error":return S.addGlobalErrorInstrumentationHandler(i);case"unhandledrejection":return f.addGlobalUnhandledRejectionInstrumentationHandler(i);default:a.DEBUG_BUILD&&g.logger.warn("unknown instrumentation type:",o)}}t.addConsoleInstrumentationHandler=v.addConsoleInstrumentationHandler,t.addClickKeypressInstrumentationHandler=E.addClickKeypressInstrumentationHandler,t.addFetchInstrumentationHandler=m.addFetchInstrumentationHandler,t.addGlobalErrorInstrumentationHandler=S.addGlobalErrorInstrumentationHandler,t.addGlobalUnhandledRejectionInstrumentationHandler=f.addGlobalUnhandledRejectionInstrumentationHandler,t.addHistoryInstrumentationHandler=p.addHistoryInstrumentationHandler,t.SENTRY_XHR_DATA_KEY=y.SENTRY_XHR_DATA_KEY,t.addXhrInstrumentationHandler=y.addXhrInstrumentationHandler,t.addInstrumentationHandler=_},569651:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(863315),g=s(472496),v=s(457148),E=s(126885),m=v.GLOBAL_OBJ,S="__sentry_xhr_v3__";function f(_){const o="xhr";E.addHandler(o,_),E.maybeInstrument(o,p)}function p(){if(!m.XMLHttpRequest)return;const _=XMLHttpRequest.prototype;g.fill(_,"open",function(o){return function(...i){const c=Date.now(),l=a.isString(i[0])?i[0].toUpperCase():void 0,C=y(i[1]);if(!l||!C)return o.apply(this,i);this[S]={method:l,url:C,request_headers:{}},l==="POST"&&C.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const M=()=>{const b=this[S];if(b&&this.readyState===4){try{b.status_code=this.status}catch{}const R={args:[l,C],endTimestamp:Date.now(),startTimestamp:c,xhr:this};E.triggerHandlers("xhr",R)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?g.fill(this,"onreadystatechange",function(b){return function(...R){return M(),b.apply(this,R)}}):this.addEventListener("readystatechange",M),g.fill(this,"setRequestHeader",function(b){return function(...R){const[h,d]=R,I=this[S];return I&&a.isString(h)&&a.isString(d)&&(I.request_headers[h.toLowerCase()]=d),b.apply(this,R)}}),o.apply(this,i)}}),g.fill(_,"send",function(o){return function(...i){const c=this[S];if(!c)return o.apply(this,i);i[0]!==void 0&&(c.body=i[0]);const l={args:[c.method,c.url],startTimestamp:Date.now(),xhr:this};return E.triggerHandlers("xhr",l),o.apply(this,i)}})}function y(_){if(a.isString(_))return _;try{return _.toString()}catch{}}t.SENTRY_XHR_DATA_KEY=S,t.addXhrInstrumentationHandler=f,t.instrumentXHR=p},863315:(L,t)=>
34{Object.defineProperty(t,"__esModule",{value:!0});const s=Object.prototype.toString;function a(R){switch(s.call(R)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return M(R,Error)}}function g(R,h){return s.call(R)===`[object ${h}]`}function v(R){return g(R,"ErrorEvent")}function E(R){return g(R,"DOMError")}function m(R){return g(R,"DOMException")}function S(R){return g(R,"String")}function f(R){return typeof R=="object"&&R!==null&&"__sentry_template_string__"in R&&"__sentry_template_values__"in R}function p(R){return R===null||f(R)||typeof R!="object"&&typeof R!="function"}function y(R){return g(R,"Object")}function _(R){return typeof Event<"u"&&M(R,Event)}function o(R){return typeof Element<"u"&&M(R,Element)}function i(R){return g(R,"RegExp")}function c(R){return!!(R&&R.then&&typeof R.then=="function")}function l(R){return y(R)&&"nativeEvent"in R&&"preventDefault"in R&&"stopPropagation"in R}function C(R){return typeof R=="number"&&R!==R}function M(R,h){try{return R instanceof h}catch{return!1}}function b(R){return!!(typeof R=="object"&&R!==null&&(R.__isVue||R._isVue))}t.isDOMError=E,t.isDOMException=m,t.isElement=o,t.isError=a,t.isErrorEvent=v,t.isEvent=_,t.isInstanceOf=M,t.isNaN=C,t.isParameterizedString=f,t.isPlainObject=y,t.isPrimitive=p,t.isRegExp=i,t.isString=S,t.isSyntheticEvent=l,t.isThenable=c,t.isVueViewModel=b},907451:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(192559),g=s(457148);function v(){return typeof window<"u"&&(!a.isNodeEnv()||E())}function E(){return g.GLOBAL_OBJ.process!==void 0&&g.GLOBAL_OBJ.process.type==="renderer"}t.isBrowser=v},624823:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(693453),g=s(457148),v="Sentry Logger ",E=["debug","info","warn","error","log","assert","trace"],m={};function S(y){if(!("console"in g.GLOBAL_OBJ))return y();const _=g.GLOBAL_OBJ.console,o={},i=Object.keys(m);i.forEach(c=>{const l=m[c];o[c]=_[c],_[c]=l});try{return y()}finally{i.forEach(c=>{_[c]=o[c]})}}function f(){let y=!1;const _={enable:()=>{y=!0},disable:()=>{y=!1},isEnabled:()=>y};return a.DEBUG_BUILD?E.forEach(o=>{_[o]=(...i)=>{y&&S(()=>{g.GLOBAL_OBJ.console[o](`${v}[${o}]:`,...i)})}}):E.forEach(o=>{_[o]=()=>{}}),_}const p=f();t.CONSOLE_LEVELS=E,t.consoleSandbox=S,t.logger=p,t.originalConsoleMethods=m},531922:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class s{constructor(g){this._maxSize=g,this._cache=new Map}get size(){return this._cache.size}get(g){const v=this._cache.get(g);if(v!==void 0)return this._cache.delete(g),this._cache.set(g,v),v}set(g,v){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(g,v)}remove(g){const v=this._cache.get(g);return v&&this._cache.delete(g),v}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const g=[];return this._cache.forEach(v=>g.push(v)),g}}t.LRUMap=s},434153:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(){const a=typeof WeakSet=="function",g=a?new WeakSet:[];function v(m){if(a)return g.has(m)?!0:(g.add(m),!1);for(let S=0;S<g.length;S++)if(g[S]===m)return!0;return g.push(m),!1}function E(m){if(a)g.delete(m);else for(let S=0;S<g.length;S++)if(g[S]===m){g.splice(S,1);break}}return[v,E]}t.memoBuilder=s},346659:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(472496),g=s(582526),v=s(457148);function E(){const l=v.GLOBAL_OBJ,C=l.crypto||l.msCrypto;let M=()=>Math.random()*16;try{if(C&&C.randomUUID)return C.randomUUID().replace(/-/g,"");C&&C.getRandomValues&&(M=()=>{const b=new Uint8Array(1);return C.getRandomValues(b),b[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,b=>(b^(M()&15)>>b/4).toString(16))}function m(l){return l.exception&&l.exception.values?l.exception.values[0]:void 0}function S(l){const{message:C,event_id:M}=l;if(C)return C;const b=m(l);return b?b.type&&b.value?`${b.type}: ${b.value}`:b.type||b.value||M||"<unknown>":M||"<unknown>"}function f(l,C,M){const b=l.exception=l.exception||{},R=b.values=b.values||[],h=R[0]=R[0]||{};h.value||(h.value=C||""),h.type||(h.type=M||"Error")}function p(l,C){const M=m(l);if(!M)return;const b={type:"generic",handled:!0},R=M.mechanism;if(M.mechanism={...b,...R,...C},C&&"data"in C){const h={...R&&R.data,...C.data};M.mechanism.data=h}}const y=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?
34:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function _(l){const C=l.match(y)||[],M=parseInt(C[1],10),b=parseInt(C[2],10),R=parseInt(C[3],10);return{buildmetadata:C[5],major:isNaN(M)?void 0:M,minor:isNaN(b)?void 0:b,patch:isNaN(R)?void 0:R,prerelease:C[4]}}function o(l,C,M=5){if(C.lineno===void 0)return;const b=l.length,R=Math.max(Math.min(b-1,C.lineno-1),0);C.pre_context=l.slice(Math.max(0,R-M),R).map(h=>g.snipLine(h,0)),C.context_line=g.snipLine(l[Math.min(b-1,R)],C.colno||0),C.post_context=l.slice(Math.min(R+1,b),R+1+M).map(h=>g.snipLine(h,0))}function i(l){if(l&&l.__sentry_captured__)return!0;try{a.addNonEnumerableProperty(l,"__sentry_captured__",!0)}catch{}return!1}function c(l){return Array.isArray(l)?l:[l]}t.addContextToFrame=o,t.addExceptionMechanism=p,t.addExceptionTypeValue=f,t.arrayify=c,t.checkOrSetAlreadyCaught=i,t.getEventDescription=S,t.parseSemver=_,t.uuid4=E},374054:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(g,v=!1){return!(v||g&&!g.startsWith("/")&&!g.match(/^[A-Z]:/)&&!g.startsWith(".")&&!g.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&g!==void 0&&!g.includes("node_modules/")}function a(g){const v=/^\s*[-]{4,}$/,E=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return m=>{const S=m.match(E);if(S){let f,p,y,_,o;if(S[1]){y=S[1];let l=y.lastIndexOf(".");if(y[l-1]==="."&&l--,l>0){f=y.slice(0,l),p=y.slice(l+1);const C=f.indexOf(".Module");C>0&&(y=y.slice(C+1),f=f.slice(0,C))}_=void 0}p&&(_=f,o=p),p==="<anonymous>"&&(o=void 0,y=void 0),y===void 0&&(o=o||"<anonymous>",y=_?`${_}.${o}`:o);let i=S[2]&&S[2].startsWith("file://")?S[2].slice(7):S[2];const c=S[5]==="native";return i&&i.match(/\/[A-Z]:/)&&(i=i.slice(1)),!i&&S[5]&&!c&&(i=S[5]),{filename:i,module:g?g(i):void 0,function:y,lineno:parseInt(S[3],10)||void 0,colno:parseInt(S[4],10)||void 0,in_app:s(i,c)}}if(m.match(v))return{filename:m}}}t.filenameIsInApp=s,t.node=a},192559:(L,t,s)=>{L=s.nmd(L);var a=s(288538);Object.defineProperty(t,"__esModule",{value:!0});const g=s(407656);function v(){return!g.isBrowserBundle()&&Object.prototype.toString.call(typeof a<"u"?a:0)==="[object process]"}function E(S,f){return S.require(f)}function m(S){let f;try{f=E(L,S)}catch{}try{const{cwd:p}=E(L,"process");f=E(L,`${p()}/node_modules/${S}`)}catch{}return f}t.dynamicRequire=E,t.isNodeEnv=v,t.loadModule=m},770108:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(863315),g=s(434153),v=s(472496),E=s(466502);function m(c,l=100,C=1/0){try{return f("",c,l,C)}catch(M){return{ERROR:`**non-serializable** (${M})`}}}function S(c,l=3,C=100*1024){const M=m(c,l);return o(M)>C?S(c,l-1,C):M}function f(c,l,C=1/0,M=1/0,b=g.memoBuilder()){const[R,h]=b;if(l==null||["number","boolean","string"].includes(typeof l)&&!a.isNaN(l))return l;const d=p(c,l);if(!d.startsWith("[object "))return d;if(l.__sentry_skip_normalization__)return l;const I=typeof l.__sentry_override_normalization_depth__=="number"?l.__sentry_override_normalization_depth__:C;if(I===0)return d.replace("object ","");if(R(l))return"[Circular ~]";const T=l;if(T&&typeof T.toJSON=="function")try{const F=T.toJSON();return f("",F,I-1,M,b)}catch{}const A=Array.isArray(l)?[]:{};let w=0;const B=v.convertToPlainObject(l);for(const F in B){if(!Object.prototype.hasOwnProperty.call(B,F))continue;if(w>=M){A[F]="[MaxProperties ~]";break}const G=B[F];A[F]=f(F,G,I-1,M,b),w++}return h(l),A}function p(c,l){try{if(c==="domain"&&l&&typeof l=="object"&&l._events)return"[Domain]";if(c==="domainEmitter")return"[DomainEmitter]";if(typeof s.g<"u"&&l===s.g)return"[Global]";if(typeof window<"u"&&l===window)return"[Window]";if(typeof document<"u"&&l===document)return"[Document]";if(a.isVueViewModel(l))return"[VueViewModel]";if(a.isSyntheticEvent(l))return"[SyntheticEvent]";if(typeof l=="number"&&l!==l)return"[NaN]";if(typeof l=="function")return`[Function: ${E.getFunctionName(l)}]`;if(typeof l=="symbol")return`[${String(l)}]`;if(typeof l=="bigint")return`[BigInt: ${String(l)}]`;const C=y(l);return/^HTML(\w*)Element$/.test(C)?`[HTMLElement: ${C}]`:`[object ${C}]`}catch(C){return`**non-serializable** (${C})`}}function y(c){const l=Object.getPrototypeOf(c);return l?l.constructor.name:"null prototype"}function _(c){return~-encodeURI(c).split(/%..|./).length}function o(c){return _(JSON.stringify(c))}function i(c,l){const C=l.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let M=c;try{M=decodeURI(c)}catch{}return M.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${C}/*`,"ig"),"app:///")}t.normalize=m,t.normalizeToSize=S,t.normalizeUrlToBase=i,t.walk=f},472496:(L,t,s)=>
34{Object.defineProperty(t,"__esModule",{value:!0});const a=s(558835),g=s(693453),v=s(863315),E=s(624823),m=s(582526);function S(h,d,I){if(!(d in h))return;const T=h[d],A=I(T);typeof A=="function"&&p(A,T),h[d]=A}function f(h,d,I){try{Object.defineProperty(h,d,{value:I,writable:!0,configurable:!0})}catch{g.DEBUG_BUILD&&E.logger.log(`Failed to add non-enumerable property "${d}" to object`,h)}}function p(h,d){try{const I=d.prototype||{};h.prototype=d.prototype=I,f(h,"__sentry_original__",d)}catch{}}function y(h){return h.__sentry_original__}function _(h){return Object.keys(h).map(d=>`${encodeURIComponent(d)}=${encodeURIComponent(h[d])}`).join("&")}function o(h){if(v.isError(h))return{message:h.message,name:h.name,stack:h.stack,...c(h)};if(v.isEvent(h)){const d={type:h.type,target:i(h.target),currentTarget:i(h.currentTarget),...c(h)};return typeof CustomEvent<"u"&&v.isInstanceOf(h,CustomEvent)&&(d.detail=h.detail),d}else return h}function i(h){try{return v.isElement(h)?a.htmlTreeAsString(h):Object.prototype.toString.call(h)}catch{return"<unknown>"}}function c(h){if(typeof h=="object"&&h!==null){const d={};for(const I in h)Object.prototype.hasOwnProperty.call(h,I)&&(d[I]=h[I]);return d}else return{}}function l(h,d=40){const I=Object.keys(o(h));if(I.sort(),!I.length)return"[object has no keys]";if(I[0].length>=d)return m.truncate(I[0],d);for(let T=I.length;T>0;T--){const A=I.slice(0,T).join(", ");if(!(A.length>d))return T===I.length?A:m.truncate(A,d)}return""}function C(h){return M(h,new Map)}function M(h,d){if(b(h)){const I=d.get(h);if(I!==void 0)return I;const T={};d.set(h,T);for(const A of Object.keys(h))typeof h[A]<"u"&&(T[A]=M(h[A],d));return T}if(Array.isArray(h)){const I=d.get(h);if(I!==void 0)return I;const T=[];return d.set(h,T),h.forEach(A=>{T.push(M(A,d))}),T}return h}function b(h){if(!v.isPlainObject(h))return!1;try{const d=Object.getPrototypeOf(h).constructor.name;return!d||d==="Object"}catch{return!0}}function R(h){let d;switch(!0){case h==null:d=new String(h);break;case(typeof h=="symbol"||typeof h=="bigint"):d=Object(h);break;case v.isPrimitive(h):d=new h.constructor(h);break;default:d=h;break}return d}t.addNonEnumerableProperty=f,t.convertToPlainObject=o,t.dropUndefinedKeys=C,t.extractExceptionKeysForMessage=l,t.fill=S,t.getOriginalFunction=y,t.markFunctionWrapped=p,t.objectify=R,t.urlEncode=_},625696:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(o,i){let c=0;for(let l=o.length-1;l>=0;l--){const C=o[l];C==="."?o.splice(l,1):C===".."?(o.splice(l,1),c++):c&&(o.splice(l,1),c--)}if(i)for(;c--;c)o.unshift("..");return o}const a=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function g(o){const i=o.length>1024?`<truncated>${o.slice(-1024)}`:o,c=a.exec(i);return c?c.slice(1):[]}function v(...o){let i="",c=!1;for(let l=o.length-1;l>=-1&&!c;l--){const C=l>=0?o[l]:"/";C&&(i=`${C}/${i}`,c=C.charAt(0)==="/")}return i=s(i.split("/").filter(l=>!!l),!c).join("/"),(c?"/":"")+i||"."}function E(o){let i=0;for(;i<o.length&&o[i]==="";i++);let c=o.length-1;for(;c>=0&&o[c]==="";c--);return i>c?[]:o.slice(i,c-i+1)}function m(o,i){o=v(o).slice(1),i=v(i).slice(1);const c=E(o.split("/")),l=E(i.split("/")),C=Math.min(c.length,l.length);let M=C;for(let R=0;R<C;R++)if(c[R]!==l[R]){M=R;break}let b=[];for(let R=M;R<c.length;R++)b.push("..");return b=b.concat(l.slice(M)),b.join("/")}function S(o){const i=f(o),c=o.slice(-1)==="/";let l=s(o.split("/").filter(C=>!!C),!i).join("/");return!l&&!i&&(l="."),l&&c&&(l+="/"),(i?"/":"")+l}function f(o){return o.charAt(0)==="/"}function p(...o){return S(o.join("/"))}function y(o){const i=g(o),c=i[0];let l=i[1];return!c&&!l?".":(l&&(l=l.slice(0,l.length-1)),c+l)}function _(o,i){let c=g(o)[2];return i&&c.slice(i.length*-1)===i&&(c=c.slice(0,c.length-i.length)),c}t.basename=_,t.dirname=y,t.isAbsolute=f,t.join=p,t.normalizePath=S,t.relative=m,t.resolve=v},953368:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(320717),g=s(996403);function v(E){const m=[];function S(){return E===void 0||m.length<E}function f(_){return m.splice(m.indexOf(_),1)[0]}function p(_){if(!S())return g.rejectedSyncPromise(new a.SentryError("Not adding Promise because buffer limit was reached."));const o=_();return m.indexOf(o)===-1&&m.push(o),o.then(()=>f(o)).then(null,()=>f(o).then(null,()=>{})),o}function y(_){return new g.SyncPromise((o,i)=>{let c=m.length;if(!c)return o(!0);const l=setTimeout(()=>{_&&_>0&&o(!1)},_);m.forEach(C=>{g.resolvedSyncPromise(C).then(()=>{--c||(clearTimeout(l),o(!0))},i)})})}return{$:m,add:p,drain:y}}t.makePromiseBuffer=v},664630:(L,t)=>
34{Object.defineProperty(t,"__esModule",{value:!0});const s=60*1e3;function a(m,S=Date.now()){const f=parseInt(`${m}`,10);if(!isNaN(f))return f*1e3;const p=Date.parse(`${m}`);return isNaN(p)?s:p-S}function g(m,S){return m[S]||m.all||0}function v(m,S,f=Date.now()){return g(m,S)>f}function E(m,{statusCode:S,headers:f},p=Date.now()){const y={...m},_=f&&f["x-sentry-rate-limits"],o=f&&f["retry-after"];if(_)for(const i of _.trim().split(",")){const[c,l,,,C]=i.split(":",5),M=parseInt(c,10),b=(isNaN(M)?60:M)*1e3;if(!l)y.all=p+b;else for(const R of l.split(";"))R==="metric_bucket"?(!C||C.split(";").includes("custom"))&&(y[R]=p+b):y[R]=p+b}else o?y.all=p+a(o,p):S===429&&(y.all=p+60*1e3);return y}t.DEFAULT_RETRY_AFTER=s,t.disabledUntil=g,t.isRateLimited=v,t.parseRetryAfterHeader=a,t.updateRateLimits=E},34150:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(839981),g=s(693453),v=s(863315),E=s(624823),m=s(770108),S=s(449286),f={ip:!1,request:!0,transaction:!0,user:!0},p=["cookies","data","headers","method","query_string","url"],y=["id","username","email"];function _(h,d,I){if(h){if(!h.metadata.source||h.metadata.source==="url"){const[T,A]=o(d,{path:!0,method:!0});h.updateName(T),h.setMetadata({source:A})}h.setAttribute("url",d.originalUrl||d.url),d.baseUrl&&h.setAttribute("baseUrl",d.baseUrl),h.setData("query",M(d,I))}}function o(h,d={}){const I=h.method&&h.method.toUpperCase();let T="",A="url";d.customRoute||h.route?(T=d.customRoute||`${h.baseUrl||""}${h.route&&h.route.path}`,A="route"):(h.originalUrl||h.url)&&(T=S.stripUrlQueryAndFragment(h.originalUrl||h.url||""));let w="";return d.method&&I&&(w+=I),d.method&&d.path&&(w+=" "),d.path&&T&&(w+=T),[w,A]}function i(h,d){switch(d){case"path":return o(h,{path:!0})[0];case"handler":return h.route&&h.route.stack&&h.route.stack[0]&&h.route.stack[0].name||"<anonymous>";case"methodPath":default:{const I=h._reconstructedRoute?h._reconstructedRoute:void 0;return o(h,{path:!0,method:!0,customRoute:I})[0]}}}function c(h,d){const I={};return(Array.isArray(d)?d:y).forEach(A=>{h&&A in h&&(I[A]=h[A])}),I}function l(h,d){const{include:I=p,deps:T}=d||{},A={},w=h.headers||{},B=h.method,F=w.host||h.hostname||h.host||"<no host>",G=h.protocol==="https"||h.socket&&h.socket.encrypted?"https":"http",Y=h.originalUrl||h.url||"",X=Y.startsWith(G)?Y:`${G}://${F}${Y}`;return I.forEach(Q=>{switch(Q){case"headers":{A.headers=w,I.includes("cookies")||delete A.headers.cookie;break}case"method":{A.method=B;break}case"url":{A.url=X;break}case"cookies":{A.cookies=h.cookies||w.cookie&&a.parseCookie(w.cookie)||{};break}case"query_string":{A.query_string=M(h,T);break}case"data":{if(B==="GET"||B==="HEAD")break;h.body!==void 0&&(A.data=v.isString(h.body)?h.body:JSON.stringify(m.normalize(h.body)));break}default:({}).hasOwnProperty.call(h,Q)&&(A[Q]=h[Q])}}),A}function C(h,d,I){const T={...f,...I&&I.include};if(T.request){const A=Array.isArray(T.request)?l(d,{include:T.request,deps:I&&I.deps}):l(d,{deps:I&&I.deps});h.request={...h.request,...A}}if(T.user){const A=d.user&&v.isPlainObject(d.user)?c(d.user,T.user):{};Object.keys(A).length&&(h.user={...h.user,...A})}if(T.ip){const A=d.ip||d.socket&&d.socket.remoteAddress;A&&(h.user={...h.user,ip_address:A})}return T.transaction&&!h.transaction&&(h.transaction=i(d,T.transaction)),h}function M(h,d){let I=h.originalUrl||h.url||"";if(I){I.startsWith("/")&&(I=`http://dogs.are.great${I}`);try{return h.query||typeof URL<"u"&&new URL(I).search.slice(1)||d&&d.url&&d.url.parse(I).query||void 0}catch{return}}}function b(h){const d={};try{h.forEach((I,T)=>{typeof I=="string"&&(d[T]=I)})}catch{g.DEBUG_BUILD&&E.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return d}function R(h){const d=b(h.headers);return{method:h.method,url:h.url,headers:d}}t.DEFAULT_USER_INCLUDES=y,t.addRequestDataToEvent=C,t.addRequestDataToTransaction=_,t.extractPathForTransaction=o,t.extractRequestData=l,t.winterCGHeadersToDict=b,t.winterCGRequestToRequestData=R},51008:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});const s=["fatal","error","warning","log","info","debug"];function a(v){return g(v)}function g(v){return v==="warn"?"warning":s.includes(v)?v:"log"}t.severityFromString=a,t.severityLevelFromString=g,t.validSeverityLevels=s},466502:(L,t,s)=>
34{Object.defineProperty(t,"__esModule",{value:!0});const a=s(374054),g=50,v=/\(error: (.*)\)/,E=/captureMessage|captureException/;function m(...o){const i=o.sort((c,l)=>c[0]-l[0]).map(c=>c[1]);return(c,l=0)=>{const C=[],M=c.split(`
35`);for(let b=l;b<M.length;b++){const R=M[b];if(R.length>1024)continue;const h=v.test(R)?R.replace(v,"$1"):R;if(!h.match(/\S*Error: /)){for(const d of i){const I=d(h);if(I){C.push(I);break}}if(C.length>=g)break}}return f(C)}}function S(o){return Array.isArray(o)?m(...o):o}function f(o){if(!o.length)return[];const i=Array.from(o);return/sentryWrapped/.test(i[i.length-1].function||"")&&i.pop(),i.reverse(),E.test(i[i.length-1].function||"")&&(i.pop(),E.test(i[i.length-1].function||"")&&i.pop()),i.slice(0,g).map(c=>({...c,filename:c.filename||i[i.length-1].filename,function:c.function||"?"}))}const p="<anonymous>";function y(o){try{return!o||typeof o!="function"?p:o.name||p}catch{return p}}function _(o){return[90,a.node(o)]}t.filenameIsInApp=a.filenameIsInApp,t.createStackParser=m,t.getFunctionName=y,t.nodeStackLineParser=_,t.stackParserFromStackParserOptions=S,t.stripSentryFramesAndReverse=f},582526:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(863315);function g(f,p=0){return typeof f!="string"||p===0||f.length<=p?f:`${f.slice(0,p)}...`}function v(f,p){let y=f;const _=y.length;if(_<=150)return y;p>_&&(p=_);let o=Math.max(p-60,0);o<5&&(o=0);let i=Math.min(o+140,_);return i>_-5&&(i=_),i===_&&(o=Math.max(i-140,0)),y=y.slice(o,i),o>0&&(y=`'{snip} ${y}`),i<_&&(y+=" {snip}"),y}function E(f,p){if(!Array.isArray(f))return"";const y=[];for(let _=0;_<f.length;_++){const o=f[_];try{a.isVueViewModel(o)?y.push("[VueViewModel]"):y.push(String(o))}catch{y.push("[value cannot be serialized]")}}return y.join(p)}function m(f,p,y=!1){return a.isString(f)?a.isRegExp(p)?p.test(f):a.isString(p)?y?f===p:f.includes(p):!1:!1}function S(f,p=[],y=!1){return p.some(_=>m(f,_,y))}t.isMatchingPattern=m,t.safeJoin=E,t.snipLine=v,t.stringMatchesSomePattern=S,t.truncate=g},640415:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(693453),g=s(624823),E=s(457148).getGlobalObject();function m(){try{return new ErrorEvent(""),!0}catch{return!1}}function S(){try{return new DOMError(""),!0}catch{return!1}}function f(){try{return new DOMException(""),!0}catch{return!1}}function p(){if(!("fetch"in E))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function y(c){return c&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(c.toString())}function _(){if(typeof EdgeRuntime=="string")return!0;if(!p())return!1;if(y(E.fetch))return!0;let c=!1;const l=E.document;if(l&&typeof l.createElement=="function")try{const C=l.createElement("iframe");C.hidden=!0,l.head.appendChild(C),C.contentWindow&&C.contentWindow.fetch&&(c=y(C.contentWindow.fetch)),l.head.removeChild(C)}catch(C){a.DEBUG_BUILD&&g.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",C)}return c}function o(){return"ReportingObserver"in E}function i(){if(!p())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}t.isNativeFetch=y,t.supportsDOMError=S,t.supportsDOMException=f,t.supportsErrorEvent=m,t.supportsFetch=p,t.supportsNativeFetch=_,t.supportsReferrerPolicy=i,t.supportsReportingObserver=o},996403:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(863315);var g;(function(S){S[S.PENDING=0]="PENDING";const p=1;S[S.RESOLVED=p]="RESOLVED";const y=2;S[S.REJECTED=y]="REJECTED"})(g||(g={}));function v(S){return new m(f=>{f(S)})}function E(S){return new m((f,p)=>{p(S)})}class m{constructor(f){m.prototype.__init.call(this),m.prototype.__init2.call(this),m.prototype.__init3.call(this),m.prototype.__init4.call(this),this._state=g.PENDING,this._handlers=[];try{f(this._resolve,this._reject)}catch(p){this._reject(p)}}then(f,p){return new m((y,_)=>{this._handlers.push([!1,o=>{if(!f)y(o);else try{y(f(o))}catch(i){_(i)}},o=>{if(!p)_(o);else try{y(p(o))}catch(i){_(i)}}]),this._executeHandlers()})}catch(f){return this.then(p=>p,f)}finally(f){return new m((p,y)=>{let _,o;return this.then(i=>{o=!1,_=i,f&&f()},i=>{o=!0,_=i,f&&f()}).then(()=>
35{if(o){y(_);return}p(_)})})}__init(){this._resolve=f=>{this._setResult(g.RESOLVED,f)}}__init2(){this._reject=f=>{this._setResult(g.REJECTED,f)}}__init3(){this._setResult=(f,p)=>{if(this._state===g.PENDING){if(a.isThenable(p)){p.then(this._resolve,this._reject);return}this._state=f,this._value=p,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===g.PENDING)return;const f=this._handlers.slice();this._handlers=[],f.forEach(p=>{p[0]||(this._state===g.RESOLVED&&p[1](this._value),this._state===g.REJECTED&&p[2](this._value),p[0]=!0)})}}}t.SyncPromise=m,t.rejectedSyncPromise=E,t.resolvedSyncPromise=v},486382:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(457148),g=1e3;function v(){return Date.now()/g}function E(){const{performance:p}=a.GLOBAL_OBJ;if(!p||!p.now)return v;const y=Date.now()-p.now(),_=p.timeOrigin==null?y:p.timeOrigin;return()=>(_+p.now())/g}const m=E(),S=m;t._browserPerformanceTimeOriginMode=void 0;const f=(()=>{const{performance:p}=a.GLOBAL_OBJ;if(!p||!p.now){t._browserPerformanceTimeOriginMode="none";return}const y=3600*1e3,_=p.now(),o=Date.now(),i=p.timeOrigin?Math.abs(p.timeOrigin+_-o):y,c=i<y,l=p.timing&&p.timing.navigationStart,M=typeof l=="number"?Math.abs(l+_-o):y,b=M<y;return c||b?i<=M?(t._browserPerformanceTimeOriginMode="timeOrigin",p.timeOrigin):(t._browserPerformanceTimeOriginMode="navigationStart",l):(t._browserPerformanceTimeOriginMode="dateNow",o)})();t.browserPerformanceTimeOrigin=f,t.dateTimestampInSeconds=v,t.timestampInSeconds=m,t.timestampWithMs=S},379961:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=s(315473),g=s(346659),v=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function E(p){if(!p)return;const y=p.match(v);if(!y)return;let _;return y[3]==="1"?_=!0:y[3]==="0"&&(_=!1),{traceId:y[1],parentSampled:_,parentSpanId:y[2]}}function m(p,y){const _=E(p),o=a.baggageHeaderToDynamicSamplingContext(y),{traceId:i,parentSpanId:c,parentSampled:l}=_||{};return _?{traceparentData:_,dynamicSamplingContext:o||{},propagationContext:{traceId:i||g.uuid4(),parentSpanId:c||g.uuid4().substring(16),spanId:g.uuid4().substring(16),sampled:l,dsc:o||{}}}:{traceparentData:_,dynamicSamplingContext:void 0,propagationContext:{traceId:i||g.uuid4(),spanId:g.uuid4().substring(16)}}}function S(p,y){const _=E(p),o=a.baggageHeaderToDynamicSamplingContext(y),{traceId:i,parentSpanId:c,parentSampled:l}=_||{};return _?{traceId:i||g.uuid4(),parentSpanId:c||g.uuid4().substring(16),spanId:g.uuid4().substring(16),sampled:l,dsc:o||{}}:{traceId:i||g.uuid4(),spanId:g.uuid4().substring(16)}}function f(p=g.uuid4(),y=g.uuid4().substring(16),_){let o="";return _!==void 0&&(o=_?"-1":"-0"),`${p}-${y}${o}`}t.TRACEPARENT_REGEXP=v,t.extractTraceparentData=E,t.generateSentryTraceHeader=f,t.propagationContextFromHeaders=S,t.tracingContextFromHeaders=m},449286:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(E){if(!E)return{};const m=E.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!m)return{};const S=m[6]||"",f=m[8]||"";return{host:m[4],path:m[5],protocol:m[2],search:S,hash:f,relative:m[5]+S+f}}function a(E){return E.split(/[\?#]/,1)[0]}function g(E){return E.split(/\\?\//).filter(m=>m.length>0&&m!==",").length}function v(E){const{protocol:m,host:S,path:f}=E,p=S&&S.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${m?`${m}://`:""}${p}${f}`}t.getNumberOfUrlSegments=g,t.getSanitizedUrlString=v,t.parseUrl=s,t.stripUrlQueryAndFragment=a},829931:(L,t)=>{Object.defineProperty(t,"__esModule",{value:!0});function s(E,m,S){const f=m.match(/([a-z_]+)\.(.*)/i);if(f===null)E[m]=S;else{const p=E[f[1]];s(p,f[2],S)}}function a(E,m,S={}){return Array.isArray(m)?g(E,m,S):v(E,m,S)}function g(E,m,S){const f=m.find(p=>p.name===E.name);if(f){for(const[p,y]of Object.entries(S))s(f,p,y);return m}return[...m,E]}function v(E,m,S){return p=>{const y=m(p);return E.allowExclusionByUser&&!y.find(o=>o.name===E.name)?y:g(E,y,S)}}t.addOrUpdateIntegration=a},685216:(L,t)=>
35{Object.defineProperty(t,"__esModule",{value:!0});function s(a){return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}t.escapeStringForRegex=s},4582:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const g=s(457148).getGlobalObject();function v(){const E=g.chrome,m=E&&E.app&&E.app.runtime,S="history"in g&&!!g.history.pushState&&!!g.history.replaceState;return!m&&S}t.supportsHistory=v},457148:(L,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});function a(m){return m&&m.Math==Math?m:void 0}const g=typeof globalThis=="object"&&a(globalThis)||typeof window=="object"&&a(window)||typeof self=="object"&&a(self)||typeof s.g=="object"&&a(s.g)||function(){return this}()||{};function v(){return g}function E(m,S,f){const p=f||g,y=p.__SENTRY__=p.__SENTRY__||{};return y[m]||(y[m]=S())}t.GLOBAL_OBJ=g,t.getGlobalObject=v,t.getGlobalSingleton=E},851842:L=>{"use strict";class t extends Error{constructor(m){super(t._prepareSuperMessage(m)),this.name="NonError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}static _prepareSuperMessage(m){try{return JSON.stringify(m)}catch{return String(m)}}}const s=["name","message","stack","code"],a=(E,m,S)=>{const f=S||(Array.isArray(E)?[]:{});m.push(E);for(const[p,y]of Object.entries(E))if(typeof y!="function"){if(!y||typeof y!="object"){f[p]=y;continue}if(!m.includes(E[p])){f[p]=a(E[p],m.slice());continue}f[p]="[Circular]"}for(const p of s)typeof E[p]=="string"&&(f[p]=E[p]);return f},g=E=>typeof E=="object"&&E!==null?a(E,[]):typeof E=="function"?`[Function: ${E.name||"anonymous"}]`:E,v=E=>{if(E instanceof Error)return E;if(typeof E=="object"&&E!==null&&!Array.isArray(E)){const m=new Error;return a(E,[],m),m}return new t(E)};L.exports={serializeError:g,deserializeError:v}},918973:(L,t,s)=>{"use strict";var a=s(868897),g=s(979381),v=s(596900)(),E=s(691399),m=s(401711),S=a("%Math.floor%");L.exports=function(p,y){if(typeof p!="function")throw new m("`fn` is not a function");if(typeof y!="number"||y<0||y>4294967295||S(y)!==y)throw new m("`length` must be a positive 32-bit integer");var _=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in p&&E){var c=E(p,"length");c&&!c.configurable&&(o=!1),c&&!c.writable&&(i=!1)}return(o||i||!_)&&(v?g(p,"length",y,!0,!0):g(p,"length",y)),p}},410259:function(L,t,s){var a=s(288538);(function(g,v){"use strict";if(g.setImmediate)return;var E=1,m={},S=!1,f=g.document,p;function y(d){typeof d!="function"&&(d=new Function(""+d));for(var I=new Array(arguments.length-1),T=0;T<I.length;T++)I[T]=arguments[T+1];var A={callback:d,args:I};return m[E]=A,p(E),E++}function _(d){delete m[d]}function o(d){var I=d.callback,T=d.args;switch(T.length){case 0:I();break;case 1:I(T[0]);break;case 2:I(T[0],T[1]);break;case 3:I(T[0],T[1],T[2]);break;default:I.apply(v,T);break}}function i(d){if(S)setTimeout(i,0,d);else{var I=m[d];if(I){S=!0;try{o(I)}finally{_(d),S=!1}}}}function c(){p=function(d){a.nextTick(function(){i(d)})}}function l(){if(g.postMessage&&!g.importScripts){var d=!0,I=g.onmessage;return g.onmessage=function(){d=!1},g.postMessage("","*"),g.onmessage=I,d}}function C(){var d="setImmediate$"+Math.random()+"$",I=function(T){T.source===g&&typeof T.data=="string"&&T.data.indexOf(d)===0&&i(+T.data.slice(d.length))};g.addEventListener?g.addEventListener("message",I,!1):g.attachEvent("onmessage",I),p=function(T){g.postMessage(d+T,"*")}}function M(){var d=new MessageChannel;d.port1.onmessage=function(I){var T=I.data;i(T)},p=function(I){d.port2.postMessage(I)}}function b(){var d=f.documentElement;p=function(I){var T=f.createElement("script");T.onreadystatechange=function(){i(I),T.onreadystatechange=null,d.removeChild(T),T=null},d.appendChild(T)}}function R(){p=function(d){setTimeout(i,0,d)}}var h=Object.getPrototypeOf&&Object.getPrototypeOf(g);h=h&&h.setTimeout?h:g,{}.toString.call(g.process)==="[object process]"?c():l()?C():g.MessageChannel?M():f&&"onreadystatechange"in f.createElement("script")?b():R(),h.setImmediate=y,h.clearImmediate=_})(typeof self>"u"?typeof s.g>"u"?this:s.g:self)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.