(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,327377,285898,418557,573338,512623,685168,623827,245873,610915,66437,440616,826201,120115,159072,9720,782771,353231,334018,131713,460077,758893,611210,696843,982120,433908,488263,240236,672968,625171,779749,58540,181517,399358,715492,548133,540237,513386,321231,275816,856291,170887,509018,15333,295998,712294,790458,910720,777042,454578,995790,e=>{"use strict";let t,n,r,i,a,o,s,l,u,c,d,p,f,g,m;var _=e.i(350461),h=e.i(182021),E=e.i(410544),T=e.i(653541);function S(e,t,n=[t],r="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:T.SDK_VERSION})),i.version=T.SDK_VERSION)}var v=e.i(275885),y=e.i(451048),I=e.i(664660);let b=[];function R(e){let t,n,r=e.defaultIntegrations||[],i=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...r,...i];else if("function"==typeof i){let e=i(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}function N(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&O(e,t,n)}),n}function A(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function O(e,t,n){if(n[t.name]){I.DEBUG_BUILD&&h.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,b.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),b.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}I.DEBUG_BUILD&&h.debug.log(`Integration installed: ${t.name}`)}function C(e){let t=(0,y.getClient)();if(!t){I.DEBUG_BUILD&&h.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function U(e){return e}function L(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}e.s(["addIntegration",()=>C,"afterSetupIntegrations",()=>A,"defineIntegration",()=>U,"getIntegrationsToSetup",()=>R,"setupIntegration",()=>O,"setupIntegrations",()=>N],285898);var w=e.i(387395),P=e.i(399677);let D=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],B=(e={})=>{let t;return{name:"EventFilters",setup(n){t=M(e,n.getOptions())},processEvent:(n,r,i)=>(t||(t=M(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&(0,P.stringMatchesSomePattern)(n,t)}(e,t.ignoreTransactions))return I.DEBUG_BUILD&&h.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${(0,w.getEventDescription)(e)}`),!0}else{var n,r,i;if(n=e,r=t.ignoreErrors,r?.length&&L(n).some(e=>(0,P.stringMatchesSomePattern)(e,r)))return I.DEBUG_BUILD&&h.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${(0,w.getEventDescription)(e)}`),!0;if(i=e,i.exception?.values?.length&&!i.message&&!i.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return I.DEBUG_BUILD&&h.debug.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${(0,w.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=k(e);return!!n&&(0,P.stringMatchesSomePattern)(n,t)}(e,t.denyUrls))return I.DEBUG_BUILD&&h.debug.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${(0,w.getEventDescription)(e)}. Url: ${k(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=k(e);return!n||(0,P.stringMatchesSomePattern)(n,t)}(e,t.allowUrls))return I.DEBUG_BUILD&&h.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${(0,w.getEventDescription)(e)}. Url: ${k(e)}`),!0}return!1}(n,t)?n:null)}},x=(e={})=>({...B(e),name:"InboundFilters"});function M(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:D],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function k(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return I.DEBUG_BUILD&&h.debug.error(`Cannot extract url for event ${(0,w.getEventDescription)(e)}`),null}}e.s(["eventFiltersIntegration",()=>B,"inboundFiltersIntegration",()=>x],418557);var F=e.i(899619);let $=new WeakMap,G=()=>({name:"FunctionToString",setupOnce(){t=Function.prototype.toString;try{Function.prototype.toString=function(...e){let n=(0,F.getOriginalFunction)(this),r=$.has((0,y.getClient)())&&void 0!==n?n:this;return t.apply(r,e)}}catch{}},setup(e){$.set(e,!0)}});e.s(["functionToStringIntegration",()=>G],573338);var j=e.i(63104),Y=e.i(25366);let H=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n,r,i,a,o,s;let l,u,c,d;if(n=t,(r=e)&&(i=n,a=r,l=i.message,u=a.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&W(i,a)&&q(i,a)&&1||(o=n,s=r,c=z(s),d=z(o),c&&d&&c.type===d.type&&c.value===d.value&&W(o,s)&&q(o,s))))return I.DEBUG_BUILD&&h.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function q(e,t){let n=(0,Y.getFramesFromEvent)(e),r=(0,Y.getFramesFromEvent)(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let e=0;e{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,y.getCurrentScope)().update(t.initialScope);let n=new e(t);return X(n),n.init(),n}function X(e){(0,y.getCurrentScope)().setClient(e)}e.s(["dedupeIntegration",()=>H],512623),e.s(["initAndBind",()=>J,"setCurrentClient",()=>X],685168);var V=e.i(111053);function K(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Z(e,t,n){let r;return t||`${K(e)}${e.projectId}/envelope/?${r={sentry_version:"7"},e.publicKey&&(r.sentry_key=e.publicKey),n&&(r.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(r).toString()}`}function Q(e,t){let n=(0,V.makeDsn)(e);if(!n)return"";let r=`${K(n)}embed/error-page/`,i=`dsn=${(0,V.dsnToString)(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${i}`}e.s(["getEnvelopeEndpointWithUrlEncodedAuth",()=>Z,"getReportDialogEndpoint",()=>Q],623827);var ee=e.i(872028),et=e.i(347907),en=e.i(574860),er=e.i(931140),ei=e.i(914046),ea=e.i(272536),eo=e.i(266361),es=e.i(847378);let el=0;function eu(e){let t=Math.floor(1e3*e);void 0!==n&&t!==n&&(el=0);let r=el;return el++,n=t,{key:"sentry.timestamp.sequence",value:{value:r,type:"integer"}}}var ec=e.i(540735),ed=e.i(893859);function ep(e,t){return t?(0,y.withScope)(t,()=>{let n=(0,ed.getActiveSpan)(),r=n?(0,ed.spanToTraceContext)(n):(0,y.getTraceContextFromScope)(t);return[n?(0,ec.getDynamicSamplingContextFromSpan)(n):(0,ec.getDynamicSamplingContextFromScope)(e,t),r]}):[void 0,void 0]}let ef={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var eg=e.i(357082);function em(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function e_(e,t){var n;let r=eT(),i=(n=e,eT().get(n));void 0===i?r.set(e,[t]):i.length>=100?(eE(e,i),r.set(e,[t])):r.set(e,[...i,t])}function eh(e,t=(0,y.getCurrentScope)(),n=e_){let r=t?.getClient()??(0,y.getClient)();if(!r){I.DEBUG_BUILD&&h.debug.warn("No client available to capture log.");return}let{release:i,environment:a,enableLogs:o=!1,beforeSendLog:s}=r.getOptions();if(!o){I.DEBUG_BUILD&&h.debug.warn("logging option not enabled, log will not be captured.");return}let[,l]=ep(r,t),u={...e.attributes},{user:{id:c,email:d,username:p},attributes:f={}}=(0,ea.getCombinedScopeData)((0,y.getIsolationScope)(),t);em(u,"user.id",c,!1),em(u,"user.email",d,!1),em(u,"user.name",p,!1),em(u,"sentry.release",i),em(u,"sentry.environment",a);let{name:g,version:m}=r.getSdkMetadata()?.sdk??{};em(u,"sentry.sdk.name",g),em(u,"sentry.sdk.version",m);let _=r.getIntegrationByName("Replay"),E=_?.getReplayId(!0);em(u,"sentry.replay_id",E),E&&_?.getRecordingMode()==="buffer"&&em(u,"sentry._internal.replay_is_buffering",!0);let T=e.message;if((0,ei.isParameterizedString)(T)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=T;t?.length&&(u["sentry.message.template"]=e),t.forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=e})}let S=(0,eo._getSpanForScope)(t);em(u,"sentry.trace.parent_span_id",S?.spanContext().spanId);let v={...e,attributes:u};r.emit("beforeCaptureLog",v);let b=s?(0,h.consoleSandbox)(()=>s(v)):v;if(!b){r.recordDroppedEvent("before_send","log_item",1),I.DEBUG_BUILD&&h.debug.warn("beforeSendLog returned null, log will not be captured.");return}let{level:R,message:N,attributes:A={},severityNumber:O}=b,C=(0,es.timestampInSeconds)(),U=eu(C);n(r,{timestamp:C,level:R,body:N,trace_id:l?.trace_id,severity_number:O??ef[R],attributes:{...(0,en.serializeAttributes)(f),...(0,en.serializeAttributes)(A,!0),[U.key]:U.value}}),r.emit("afterCaptureLog",b)}function eE(e,t){var n,r,i,a;let o,s=t??(a=e,eT().get(a))??[];if(0===s.length)return;let l=e.getOptions(),u=(n=l._metadata,r=l.tunnel,i=e.getDsn(),o={},n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(o.dsn=(0,V.dsnToString)(i)),(0,eg.createEnvelope)(o,[[{type:"log",item_count:s.length,content_type:"application/vnd.sentry.items.log+json"},{items:s}]]));eT().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(u)}function eT(){return(0,er.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function eS(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function ev(e,t){var n;let r=eb(),i=(n=e,eb().get(n));void 0===i?r.set(e,[t]):i.length>=1e3?(eI(e,i),r.set(e,[t])):r.set(e,[...i,t])}function ey(e,t){let n=t?.scope??(0,y.getCurrentScope)(),r=t?.captureSerializedMetric??ev,i=n?.getClient()??(0,y.getClient)();if(!i){I.DEBUG_BUILD&&h.debug.warn("No client available to capture metric.");return}let{_experiments:a,enableMetrics:o,beforeSendMetric:s}=i.getOptions();if(!(o??a?.enableMetrics??!0)){I.DEBUG_BUILD&&h.debug.warn("metrics option not enabled, metric will not be captured.");return}let{user:l,attributes:u}=(0,ea.getCombinedScopeData)((0,y.getIsolationScope)(),n),c=function(e,t,n){let{release:r,environment:i}=t.getOptions(),a={...e.attributes};eS(a,"user.id",n.id,!1),eS(a,"user.email",n.email,!1),eS(a,"user.name",n.username,!1),eS(a,"sentry.release",r),eS(a,"sentry.environment",i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};eS(a,"sentry.sdk.name",o),eS(a,"sentry.sdk.version",s);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return eS(a,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&eS(a,"sentry._internal.replay_is_buffering",!0),{...e,attributes:a}}(e,i,l);i.emit("processMetric",c);let d=s||a?.beforeSendMetric,p=d?d(c):c;if(!p){I.DEBUG_BUILD&&h.debug.log("`beforeSendMetric` returned `null`, will not send metric.");return}let f=function(e,t,n,r){let[,i]=ep(t,n),a=(0,eo._getSpanForScope)(n),o=a?a.spanContext().traceId:i?.trace_id,s=a?a.spanContext().spanId:void 0,l=(0,es.timestampInSeconds)(),u=eu(l);return{timestamp:l,trace_id:o??"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,en.serializeAttributes)(r),...(0,en.serializeAttributes)(e.attributes,"skip-undefined"),[u.key]:u.value}}}(p,i,n,u);I.DEBUG_BUILD&&h.debug.log("[Metric]",f),r(i,f),i.emit("afterCaptureMetric",p)}function eI(e,t){var n,r,i,a;let o,s=t??(a=e,eb().get(a))??[];if(0===s.length)return;let l=e.getOptions(),u=(n=l._metadata,r=l.tunnel,i=e.getDsn(),o={},n?.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&i&&(o.dsn=(0,V.dsnToString)(i)),(0,eg.createEnvelope)(o,[[{type:"trace_metric",item_count:s.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:s}]]));eb().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(u)}e.s(["_INTERNAL_captureLog",()=>eh,"_INTERNAL_flushLogsBuffer",()=>eE],245873);function eb(){return(0,er.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}e.s(["_INTERNAL_captureMetric",()=>ey,"_INTERNAL_flushMetricsBuffer",()=>eI],610915);var eR=e.i(817433),eN=e.i(665720),eA=e.i(980323);function eO(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}e.s(["safeUnref",()=>eO],66437);let eC=Symbol.for("SentryBufferFullError");function eU(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return(0,eA.resolvedSyncPromise)(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>eO(setTimeout(()=>t(!1),e)))]):n}}}var eL=e.i(479838);function ew(e,t=(0,eL.safeDateNow)()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function eP(e,t,n=(0,eL.safeDateNow)()){return(e[t]||e.all||0)>n}function eD(e,{statusCode:t,headers:n},r=(0,eL.safeDateNow)()){let i={...e},a=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,n,,,a]=e.split(":",5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!a||a.split(";").includes("custom"))&&(i[e]=r+s):i[e]=r+s;else i.all=r+s}else o?i.all=r+ew(o,r):429===t&&(i.all=r+6e4);return i}function eB(e,t,n=eU(e.bufferSize||64)){let r={};return{send:function(i){let a=[];if((0,eg.forEachEnvelopeItem)(i,(t,n)=>{let i=(0,eg.envelopeItemTypeToDataCategory)(n);eP(r,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t)}),0===a.length)return Promise.resolve({});let o=(0,eg.createEnvelope)(i[0],a),s=t=>{if((0,eg.envelopeContainsItemType)(o,["client_report"])){I.DEBUG_BUILD&&h.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}(0,eg.forEachEnvelopeItem)(o,(n,r)=>{e.recordDroppedEvent(t,(0,eg.envelopeItemTypeToDataCategory)(r))})};return n.add(()=>t({body:(0,eg.serializeEnvelope)(o)}).then(e=>(413===e.statusCode?(I.DEBUG_BUILD&&h.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(I.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&h.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=eD(r,e)),e),e=>{throw s("network_error"),I.DEBUG_BUILD&&h.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===eC)return I.DEBUG_BUILD&&h.debug.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}e.s(["isRateLimited",()=>eP,"parseRetryAfterHeader",()=>ew,"updateRateLimits",()=>eD],440616),e.s(["DEFAULT_TRANSPORT_BUFFER_SIZE",()=>64,"createTransport",()=>eB],826201);var ex=e.i(871766),eM=e.i(958927),ek=e.i(929203),eF=e.i(121288);let e$="Not capturing exception because it's already been captured.",eG="Discarded session because of missing or non-string release",ej=Symbol.for("SentryInternalError"),eY=Symbol.for("SentryDoNotSendEventError");function eH(e){return{message:e,[ej]:!0}}function eq(e){return{message:e,[eY]:!0}}function eW(e){return!!e&&"object"==typeof e&&ej in e}function ez(e){return!!e&&"object"==typeof e&&eY in e}function eJ(e,t,n,r,i){let a,o=0,s=!1;e.on(n,()=>{o=0,clearTimeout(a),s=!1}),e.on(t,t=>{(o+=r(t))>=8e5?i(e):s||(s=!0,a=eO(setTimeout(()=>{i(e)},5e3)))}),e.on("flush",()=>{i(e)})}class eX{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=eU(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=(0,V.makeDsn)(e.dsn):I.DEBUG_BUILD&&h.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=Z(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&eJ(this,"afterCaptureLog","flushLogs",e0,eE),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&eJ(this,"afterCaptureMetric","flushMetrics",eQ,eI)}captureException(e,t,n){let r=(0,w.uuid4)();if((0,w.checkOrSetAlreadyCaught)(e))return I.DEBUG_BUILD&&h.debug.log(e$),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),"error"),i.event_id}captureMessage(e,t,n,r){let i={event_id:(0,w.uuid4)(),...n},a=(0,ei.isParameterizedString)(e)?e:String(e),o=(0,ei.isPrimitive)(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?"unknown":"error"),i.event_id}captureEvent(e,t,n){let r=(0,w.uuid4)();if(t?.originalException&&(0,w.checkOrSetAlreadyCaught)(t.originalException))return I.DEBUG_BUILD&&h.debug.log(e$),r;let i={event_id:r,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,l=eV(e.type);return this._process(()=>this._captureEvent(e,i,o||n,s),l),i.event_id}captureSession(e){this.sendSession(e),(0,eR.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit("flush");let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){eE(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),O(this,e,this._integrations),t||A(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=(0,et.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=(0,eg.addItemToEnvelope)(n,(0,eg.createAttachmentEnvelopeItem)(e));this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:n=ee.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let r=e.attrs||{};if(!r.release&&!t){I.DEBUG_BUILD&&h.debug.warn(eG);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){I.DEBUG_BUILD&&h.debug.warn(eG);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);let r=(0,et.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;I.DEBUG_BUILD&&h.debug.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return I.DEBUG_BUILD&&h.debug.error("Error while sending envelope:",e),{}}return I.DEBUG_BUILD&&h.debug.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=N(this,e),A(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,i=t.exception?.values;if(i){for(let e of(r=!0,n=!1,i))if(e.mechanism?.handled===!1){n=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&n)&&((0,eR.updateSession)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||tsetTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,ek.prepareEvent)(i,e,t,n,this,r).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,y.getTraceContextFromScope)(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,ec.getDynamicSamplingContextFromScope)(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=(0,y.getCurrentScope)(),r=(0,y.getIsolationScope)()){return I.DEBUG_BUILD&&eK(e)&&h.debug.log(`Captured error event \`${L(e)[0]||""}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{I.DEBUG_BUILD&&(ez(e)?h.debug.log(e.message):eW(e)?h.debug.warn(e.message):h.debug.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=eZ(e),s=eK(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===a?void 0:(0,eM.parseSampleRate)(a);if(s&&"number"==typeof c&&(0,eL.safeMathRandom)()>c)return this.recordDroppedEvent("sample_rate","error"),(0,eA.rejectedSyncPromise)(eq(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let d=eV(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),eq("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,ei.isThenable)(e))return e.then(e=>{if(!(0,ei.isPlainObject)(e)&&null!==e)throw eH(n);return e},e=>{throw eH(`${t} rejected with ${e}`)});if(!(0,ei.isPlainObject)(e)&&null!==e)throw eH(n);return e}(function(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!(0,eN.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(eK(l)&&i)return i(l,r);if(eZ(l)){if(s||o){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:o?.[j.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:o?.[j.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(l);if(o?.length&&(0,eF.shouldIgnoreSpan)(t,o))return null;if(s){let e=s(t);if(e)l=(0,ex.merge)(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[j.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[j.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,ed.showSpanDropWarning)()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(o?.length&&(0,eF.shouldIgnoreSpan)(e,o)){(0,eF.reparentChildSpans)(n,e);continue}if(s){let n=s(e);n?t.push(n):((0,ed.showSpanDropWarning)(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,r)}}return l}(this,i,e,t),u)}).then(i=>{if(null===i){if(this.recordDroppedEvent("before_send",d),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw eq(`${u} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(ez(e)||eW(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),eH(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===eC&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){var e;let t;I.DEBUG_BUILD&&h.debug.log("Flushing outcomes...");let n=this._clearOutcomes();if(0===n.length){I.DEBUG_BUILD&&h.debug.log("No outcomes to send");return}if(!this._dsn){I.DEBUG_BUILD&&h.debug.log("No dsn provided, will not send outcomes");return}I.DEBUG_BUILD&&h.debug.log("Sending outcomes:",n);let r=(e=this._options.tunnel&&(0,V.dsnToString)(this._dsn),t=[{type:"client_report"},{timestamp:(0,es.dateTimestampInSeconds)(),discarded_events:n}],(0,eg.createEnvelope)(e?{dsn:e}:{},[t]));this.sendEnvelope(r)}}function eV(e){return"replay_event"===e?"replay":e||"error"}function eK(e){return void 0===e.type}function eZ(e){return"transaction"===e.type}function eQ(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+e1(e.attributes)}function e0(e){let t=0;return e.message&&(t+=2*e.message.length),t+e1(e.attributes)}function e1(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*e3(e[0]):(0,ei.isPrimitive)(e)?t+=e3(e):t+=100}),t}function e3(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function e2(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}var e4=e.i(878174);function e5(e){return(0,ei.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function e8(e,t){var n,r;let i,a,o=e6(e,t),s={type:(n=t,!(i=n?.name)&&te(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":i),value:(r=t,a=r?.message,te(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":a?a.error&&"string"==typeof a.error.message?e5(a.error):e5(r):"No error message")};return o.length&&(s.stacktrace={frames:o}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function e7(e,t){return{exception:{values:[e8(e,t)]}}}function e6(e,t){var n,r;let i=t.stacktrace||t.stack||"",a=(n=t)&&e9.test(n.message)?1:0,o="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(i,a,o)}catch{}return[]}let e9=/Minified React error #\d+;/i;function te(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function tt(e,t,n,r){let i=tr(e,t,n?.syntheticException||void 0,r);return(0,w.addExceptionMechanism)(i),i.level="error",n?.event_id&&(i.event_id=n.event_id),(0,eA.resolvedSyncPromise)(i)}function tn(e,t,n="info",r,i){let a=ti(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),(0,eA.resolvedSyncPromise)(a)}function tr(e,t,n,r,i){let a;if((0,ei.isErrorEvent)(t)&&t.error)return e7(e,t.error);if((0,ei.isDOMError)(t)||(0,ei.isDOMException)(t)){if("stack"in t)a=e7(e,t);else{let i=t.name||((0,ei.isDOMError)(t)?"DOMError":"DOMException"),o=t.message?`${i}: ${t.message}`:i;a=ti(e,o,n,r),(0,w.addExceptionTypeValue)(a,o)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return(0,ei.isError)(t)?e7(e,t):((0,ei.isPlainObject)(t)||(0,ei.isEvent)(t)?a=function(e,t,n,r){let i=(0,y.getClient)(),a=i?.getOptions().normalizeDepth,o=Object.values(t).find(e=>e instanceof Error),s={__serialized__:(0,e4.normalizeToSize)(t,a)};if(o)return{exception:{values:[e8(e,o)]},extra:s};let l={exception:{values:[{type:(0,ei.isEvent)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,F.extractExceptionKeysForMessage)(e),r=t?"promise rejection":"exception";if((0,ei.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,ei.isEvent)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=e6(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,i):(a=ti(e,t,n,r),(0,w.addExceptionTypeValue)(a,`${t}`,void 0)),(0,w.addExceptionMechanism)(a,{synthetic:!0}),a)}function ti(e,t,n,r){let i={};if(r&&n){let r=e6(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,w.addExceptionMechanism)(i,{synthetic:!0})}if((0,ei.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}e.s(["eventFromException",()=>tt,"eventFromMessage",()=>tn,"eventFromUnknownInput",()=>tr,"exceptionFromError",()=>e8],120115);var ta=e.i(530011);let to=E.GLOBAL_OBJ,ts=0;function tl(){return ts>0}function tu(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)if("function"==typeof t)return t;else return e;if((0,F.getOriginalFunction)(e))return e}catch{return e}let n=function(...n){try{let r=n.map(e=>tu(e,t));return e.apply(this,r)}catch(e){throw ts++,setTimeout(()=>{ts--}),(0,y.withScope)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,w.addExceptionTypeValue)(e,void 0,void 0),(0,w.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,v.captureException)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,F.markFunctionWrapped)(n,e),(0,F.addNonEnumerableProperty)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function tc(){let e=(0,ta.getLocationHref)(),{referrer:t}=to.document||{},{userAgent:n}=to.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}e.s(["WINDOW",()=>to,"getHttpRequestData",()=>tc,"shouldIgnoreOnError",()=>tl,"wrap",()=>tu],159072);class td extends eX{constructor(e){var t;const n=(t=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:to.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t});S(n,"browser",["browser"],to.SENTRY_SDK_SOURCE||"npm"),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:r,sendClientReports:i,enableLogs:a,_experiments:o,enableMetrics:s}=this._options,l=s??o?.enableMetrics??!0;to.document&&(i||a||l)&&to.document.addEventListener("visibilitychange",()=>{"hidden"===to.document.visibilityState&&(i&&this._flushOutcomes(),a&&eE(this),l&&eI(this))}),r&&this.on("beforeSendSession",e2)}eventFromException(e,t){return tt(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return tn(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}e.s(["BrowserClient",()=>td],9720);let tp={},tf={};function tg(e,t){tp[e]=tp[e]||[],tp[e].push(t)}function tm(e,t){if(!tf[e]){tf[e]=!0;try{t()}catch(t){I.DEBUG_BUILD&&h.debug.error(`Error while instrumenting ${e}`,t)}}}function t_(e,t){let n=e&&tp[e];if(n)for(let r of n)try{r(t)}catch(t){I.DEBUG_BUILD&&h.debug.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${(0,Y.getFunctionName)(r)} Error:`,t)}}function th(e){let t="console";tg(t,e),tm(t,tE)}function tE(){"console"in E.GLOBAL_OBJ&&h.CONSOLE_LEVELS.forEach(function(e){e in E.GLOBAL_OBJ.console&&(0,F.fill)(E.GLOBAL_OBJ.console,e,function(t){return h.originalConsoleMethods[e]=t,function(...t){t_("console",{args:t,level:e});let n=h.originalConsoleMethods[e];n?.apply(E.GLOBAL_OBJ.console,t)}})})}e.s(["addConsoleInstrumentationHandler",()=>th],782771);let tT=E.GLOBAL_OBJ;function tS(){return"history"in tT&&!!tT.history}function tv(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ty(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in tT))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(tv(tT.fetch))return!0;let e=!1,t=tT.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=tv(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){I.DEBUG_BUILD&&h.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function tI(){return"ReportingObserver"in tT}function tb(e,t){let n="fetch";tg(n,e),tm(n,()=>tN(void 0,t))}function tR(e){let t="fetch-body-resolved";tg(t,e),tm(t,()=>tN(tO))}function tN(e,t=!1){(!t||ty())&&(0,F.fill)(E.GLOBAL_OBJ,"fetch",function(t){return function(...n){let r=Error(),{method:i,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:tU(t),method:tC(n,"method")?String(n.method).toUpperCase():(0,ei.isRequest)(t)&&tC(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:tU(t),method:tC(t,"method")?String(t.method).toUpperCase():"GET"}}(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:1e3*(0,es.timestampInSeconds)(),virtualError:r,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,ei.isRequest)(t))return new Headers(t.headers)}catch{}}(n)};return e||t_("fetch",{...o}),t.apply(E.GLOBAL_OBJ,n).then(async t=>(e?e(t):t_("fetch",{...o,endTimestamp:1e3*(0,es.timestampInSeconds)(),response:t}),t),e=>{t_("fetch",{...o,endTimestamp:1e3*(0,es.timestampInSeconds)(),error:e}),(0,ei.isError)(e)&&void 0===e.stack&&(e.stack=r.stack,(0,F.addNonEnumerableProperty)(e,"framesToPop",1));let t=(0,y.getClient)(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(o.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:(0,F.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function tA(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function tO(e){let t;try{t=e.clone()}catch{return}tA(t,()=>{t_("fetch-body-resolved",{endTimestamp:1e3*(0,es.timestampInSeconds)(),response:e})})}function tC(e,t){return!!e&&"object"==typeof e&&!!e[t]}function tU(e){return"string"==typeof e?e:e?tC(e,"url")?e.url:e.toString?e.toString():"":""}function tL(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function tw(e,t){let n=(0,y.getClient)(),r=(0,y.getIsolationScope)();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=100}=n.getOptions();if(a<=0)return;let o={timestamp:(0,es.dateTimestampInSeconds)(),...e},s=i?(0,h.consoleSandbox)(()=>i(o,t)):o;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,a))}function tP(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function tD(e){return"isRelative"in e}function tB(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function tx(e){if(tD(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function tM(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function tk(e){return e.split(/[?#]/,1)[0]}function tF(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),a=e.indexOf(","),o="";if(t&&-1!==a){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?",base64":""}${o?`,${o}`:""}`}return e}e.s(["isNativeFunction",()=>tv,"supportsHistory",()=>tS,"supportsNativeFetch",()=>ty,"supportsReportingObserver",()=>tI],353231),e.s(["addFetchEndInstrumentationHandler",()=>tR,"addFetchInstrumentationHandler",()=>tb],334018),e.s(["severityLevelFromString",()=>tL],131713),e.s(["addBreadcrumb",()=>tw],460077),e.s(["getSanitizedUrlStringFromUrlObject",()=>tx,"isURLObjectRelative",()=>tD,"parseStringToURLObject",()=>tB,"parseUrl",()=>tM,"stripDataUrlContent",()=>tF,"stripUrlQueryAndFragment",()=>tk],758893);let t$=E.GLOBAL_OBJ;function tG(e){tg("dom",e),tm("dom",tj)}function tj(){if(!t$.document)return;let e=t_.bind(null,"dom"),t=tY(e,!0);t$.document.addEventListener("click",t,!1),t$.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=t$[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,F.fill)(n,"addEventListener",function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=tY(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),(0,F.fill)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function tY(e,t=!1){return n=>{var o;if(!n||n._sentryCaptured)return;let s=function(e){try{return e.target}catch{return null}}(n);if(o=n.type,"keypress"===o&&(!s?.tagName||"INPUT"!==s.tagName&&"TEXTAREA"!==s.tagName&&!s.isContentEditable&&1))return;(0,F.addNonEnumerableProperty)(n,"_sentryCaptured",!0),s&&!s._sentryId&&(0,F.addNonEnumerableProperty)(s,"_sentryId",(0,w.uuid4)());let l="keypress"===n.type?"input":n.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0}(n)&&(e({event:n,name:l,global:t}),i=n.type,a=s?s._sentryId:void 0),clearTimeout(r),r=t$.setTimeout(()=>{a=void 0,i=void 0},1e3)}}e.s(["addClickKeypressInstrumentationHandler",()=>tG],611210);let tH="__sentry_xhr_v3__";function tq(e){tg("xhr",e),tm("xhr",tW)}function tW(){if(!t$.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=1e3*(0,es.timestampInSeconds)(),a=(0,ei.isString)(n[0])?n[0].toUpperCase():void 0,o=function(e){if((0,ei.isString)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!a||!o)return e.apply(t,n);t[tH]={method:a,url:o,request_headers:{}},"POST"===a&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[tH];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}t_("xhr",{endTimestamp:1e3*(0,es.timestampInSeconds)(),startTimestamp:i,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(s(),e.apply(t,n))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[tH];return a&&(0,ei.isString)(r)&&(0,ei.isString)(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[tH];return r&&(void 0!==n[0]&&(r.body=n[0]),t_("xhr",{startTimestamp:1e3*(0,es.timestampInSeconds)(),xhr:t})),e.apply(t,n)}})}function tz(e){let t="history";tg(t,e),tm(t,tJ)}function tJ(){function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=o,i=function(e){try{return new URL(e,t$.location.origin).toString()}catch{return e}}(String(n));if(o=i,r===i)return e.apply(this,t);t_("history",{from:r,to:i})}return e.apply(this,t)}}t$.addEventListener("popstate",()=>{let e=t$.location.href,t=o;o=e,t===e||t_("history",{from:t,to:e})}),tS()&&((0,F.fill)(t$.history,"pushState",e),(0,F.fill)(t$.history,"replaceState",e))}e.s(["SENTRY_XHR_DATA_KEY",()=>tH,"addXhrInstrumentationHandler",()=>tq],696843),e.s(["addHistoryInstrumentationHandler",()=>tz],982120);let tX="u"tX],433908);let tV=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,i,a,o,s,l;t.console&&th((n=e,function(e){if((0,y.getClient)()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:tL(e.level),message:(0,P.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,P.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);tw(t,{input:e.args,level:e.level})})),t.dom&&tG((r=e,i=t.dom,function(e){let t,n;if((0,y.getClient)()!==r)return;let a="object"==typeof i?i.serializeAttribute:void 0,o="object"==typeof i&&"number"==typeof i.maxStringLength?i.maxStringLength:void 0;o&&o>1024&&(tX&&h.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof a&&(a=[a]);try{var s;let r=e.event,i=(s=r)&&s.target?r.target:r;t=(0,ta.htmlTreeAsString)(i,{keyAttrs:a,maxStringLength:o}),n=(0,ta.getComponentName)(i)}catch{t=""}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),tw(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&tq((a=e,function(e){if((0,y.getClient)()!==a)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[tH];if(!t||!n||!r)return;let{method:i,url:o,status_code:s,body:l}=r,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},c={category:"xhr",data:{method:i,url:o,status_code:s},type:"http",level:tP(s)};a.emit("beforeOutgoingRequestBreadcrumb",c,u),tw(c,u)})),t.fetch&&tb((o=e,function(e){if((0,y.getClient)()!==o)return;let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},i={category:"fetch",data:e.fetchData,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",i,r),tw(i,r)}else{let r=e.response,i={...e.fetchData,status_code:r?.status},a={input:e.args,response:r,startTimestamp:t,endTimestamp:n},s={category:"fetch",data:i,type:"http",level:tP(i.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",s,a),tw(s,a)}})),t.history&&tz((s=e,function(e){if((0,y.getClient)()!==s)return;let t=e.from,n=e.to,r=tM(to.location.href),i=t?tM(t):void 0,a=tM(n);i?.path||(i=r),r.protocol===a.protocol&&r.host===a.host&&(n=a.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),tw({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,y.getClient)()===l&&tw({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,w.getEventDescription)(e)},{event:e})}))}}};e.s(["breadcrumbsIntegration",()=>tV],488263);let tK="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),tZ=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,F.fill)(to,"setTimeout",tQ),t.setInterval&&(0,F.fill)(to,"setInterval",tQ),t.requestAnimationFrame&&(0,F.fill)(to,"requestAnimationFrame",t0),t.XMLHttpRequest&&"XMLHttpRequest"in to&&(0,F.fill)(XMLHttpRequest.prototype,"send",t1);let e=t.eventTarget;e&&(Array.isArray(e)?e:tK).forEach(e=>{var n,r;let i;return n=e,r=t,i=to[n]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&((0,F.fill)(i,"addEventListener",function(e){return function(t,i,a){var o,s,l,u;try{o=i,"function"==typeof o.handleEvent&&(i.handleEvent=tu(i.handleEvent,{mechanism:{data:{handler:(0,Y.getFunctionName)(i),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&(s=this,l=t,u=i,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,u)),e.apply(this,[t,tu(i,{mechanism:{data:{handler:(0,Y.getFunctionName)(i),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),(0,F.fill)(i,"removeEventListener",function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}})))})}}};function tQ(e){return function(...t){let n=t[0];return t[0]=tu(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,Y.getFunctionName)(e)}`}}),e.apply(this,t)}}function t0(e){return function(t){return e.apply(this,[tu(t,{mechanism:{data:{handler:(0,Y.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function t1(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,F.fill)(n,e,function(t){let n={mechanism:{data:{handler:(0,Y.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=(0,F.getOriginalFunction)(t);return r&&(n.mechanism.data.handler=(0,Y.getFunctionName)(r)),tu(t,n)})}),e.apply(this,t)}}e.s(["browserApiErrorsIntegration",()=>tZ],240236);let t3=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===to.document){tX&&h.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,v.startSession)({ignoreDuration:!0}),(0,v.captureSession)();let e=(0,y.getIsolationScope)(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&((0,v.captureSession)(),n=t)}),"route"===t&&tz(({from:e,to:t})=>{e!==t&&((0,v.startSession)({ignoreDuration:!0}),(0,v.captureSession)())})}}};e.s(["browserSessionIntegration",()=>t3],672968);let t2=()=>({name:"CultureContext",preprocessEvent(e){let t=function(){try{let e=to.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})}});e.s(["cultureContextIntegration",()=>t2],625171);let t4=null;function t5(e){let t="error";tg(t,e),tm(t,t8)}function t8(){t4=E.GLOBAL_OBJ.onerror,E.GLOBAL_OBJ.onerror=function(e,t,n,r,i){return t_("error",{column:r,error:i,line:n,msg:e,url:t}),!!t4&&t4.apply(this,arguments)},E.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let t7=null;function t6(e){let t="unhandledrejection";tg(t,e),tm(t,t9)}function t9(){t7=E.GLOBAL_OBJ.onunhandledrejection,E.GLOBAL_OBJ.onunhandledrejection=function(e){return t_("unhandledrejection",e),!t7||t7.apply(this,arguments)},E.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let ne=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,t5(e=>{var t,r,i,a;let o,s,l,u,c,{stackParser:d,attachStacktrace:p}=ni();if((0,y.getClient)()!==n||tl())return;let{msg:f,url:g,line:m,column:_,error:h}=e,E=(t=tr(d,h||f,void 0,p,!1),r=g,i=m,a=_,0===(c=(u=(l=(s=(o=t.exception=t.exception||{}).values=o.values||[])[0]=s[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[]).length&&c.push({colno:a,lineno:i,filename:function(e){if((0,ei.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${tF(e,!1)}>`:e}(r)??(0,ta.getLocationHref)(),function:Y.UNKNOWN_FUNCTION,in_app:!0}),t);E.level="error",(0,v.captureEvent)(E,{originalException:h,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),nr("onerror")),t.onunhandledrejection&&(r=e,t6(e=>{let{stackParser:t,attachStacktrace:n}=ni();if((0,y.getClient)()!==r||tl())return;let i=nt(e),a=(0,ei.isPrimitive)(i)?nn(i):tr(t,i,void 0,n,!0);a.level="error",(0,v.captureEvent)(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),nr("onunhandledrejection"))}}};function nt(e){if((0,ei.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function nn(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function nr(e){tX&&h.debug.log(`Global Handler attached: ${e}`)}function ni(){let e=(0,y.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}e.s(["_eventFromRejectionWithPrimitive",()=>nn,"_getUnhandledRejectionError",()=>nt,"globalHandlersIntegration",()=>ne],779749);let na=()=>({name:"HttpContext",preprocessEvent(e){if(!to.navigator&&!to.location&&!to.document)return;let t=tc(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}});function no(e){return Array.isArray(e.errors)}function ns(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...no(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function nl(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}e.s(["httpContextIntegration",()=>na],58540);let nu=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){!function(e,t,n,r,i,a){if(!i.exception?.values||!a||!(0,ei.isInstanceOf)(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=function e(t,n,r,i,a,o,s,l){if(o.length>=r+1)return o;let u=[...o];if((0,ei.isInstanceOf)(i[a],Error)){ns(s,l,i);let o=t(n,i[a]),c=u.length;nl(o,a,c,l),u=e(t,n,r,i[a],a,[o,...u],o,c)}return no(i)&&i.errors.forEach((o,c)=>{if((0,ei.isInstanceOf)(o,Error)){ns(s,l,i);let d=t(n,o),p=u.length;nl(d,`errors[${c}]`,p,l),u=e(t,n,r,o,a,[d,...u],d,p)}}),u}(e,t,r,a.originalException,n,i.exception.values,o,0))}(e8,i.getOptions().stackParser,n,t,e,r)}}};function nc(e,t,n,r){let i={filename:e,function:""===t?Y.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}e.s(["linkedErrorsIntegration",()=>nu],181517);let nd=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,np=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nf=/\((\S*)(?::(\d+))(?::(\d+))\)/,ng=/at (.+?) ?\(data:(.+?),/,nm=[30,e=>{let t=e.match(ng);if(t)return{filename:``,function:t[1]};let n=nd.exec(e);if(n){let[,e,t,r]=n;return nc(e,Y.UNKNOWN_FUNCTION,+t,+r)}let r=np.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let e=nf.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=nA(r[1]||Y.UNKNOWN_FUNCTION,r[2]);return nc(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],n_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,nh=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nE=[50,e=>{let t=n_.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=nh.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Y.UNKNOWN_FUNCTION;return[n,e]=nA(n,e),nc(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],nT=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,nS=[40,e=>{let t=nT.exec(e);return t?nc(t[2],t[1]||Y.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],nv=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,ny=[10,e=>{let t=nv.exec(e);return t?nc(t[2],t[3]||Y.UNKNOWN_FUNCTION,+t[1]):void 0}],nI=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,nb=[20,e=>{let t=nI.exec(e);return t?nc(t[5],t[3]||t[4]||Y.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],nR=[nm,nE],nN=(0,Y.createStackParser)(...nR),nA=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Y.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};e.s(["chromeStackLineParser",()=>nm,"defaultStackLineParsers",()=>nR,"defaultStackParser",()=>nN,"geckoStackLineParser",()=>nE,"opera10StackLineParser",()=>ny,"opera11StackLineParser",()=>nb,"winjsStackLineParser",()=>nS],399358);let nO="u"{let t=(0,y.getCurrentScope)().getScopeData(),n=(0,y.getIsolationScope)().getScopeData(),r=t.conversationId||n.conversationId;r&&e.setAttribute(j.GEN_AI_CONVERSATION_ID_ATTRIBUTE,r)})}},tZ(),tV(),ne(),nu(),H(),na(),t2(),t3()]}function nB(e={}){let t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===to.window||to.nw)return!1;let e=to.chrome||to.browser;if(!e?.runtime?.id)return!1;let t=(0,ta.getLocationHref)();return!(to===to.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(tX&&(0,h.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),n=null==e.defaultIntegrations?nD():e.defaultIntegrations;return J(td,{...e,enabled:!t&&e.enabled,stackParser:(0,Y.stackParserFromStackParserOptions)(e.stackParser||nN),integrations:R({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||nP})}function nx(){}function nM(e){e()}e.s(["clearCachedImplementation",()=>nL,"getNativeImplementation",()=>nU,"setTimeout",()=>nw],715492),e.s(["makeFetchTransport",()=>nP],548133),e.s(["forceLoad",()=>nx,"getDefaultIntegrations",()=>nD,"init",()=>nB,"onLoad",()=>nM],540237);var nk=e.i(191788);function nF(e){let t={...e};return S(t,"react"),(0,v.setContext)("react",{version:nk.version}),nB(t)}e.s(["init",()=>nF],513386);let n$="u"n$],321231),e.s(["isNotFoundNavigationError",()=>nG,"isRedirectNavigationError",()=>nj],275816);var nY=e.i(359546),nH=e.i(333226),nq=e.i(320648),nW=e.i(442044),nz=e.i(908817);let nJ={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function nX(e,t={}){var n;let r,i,a=new Map,o=!1,s="externalFinish",l=!t.disableAutoFinish,u=[],{idleTimeout:c=nJ.idleTimeout,finalTimeout:d=nJ.finalTimeout,childSpanTimeout:p=nJ.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:g=!0}=t,m=(0,y.getClient)();if(!m||!(0,nY.hasSpansEnabled)()){let e=new nH.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...(0,ec.getDynamicSamplingContextFromSpan)(e)};return(0,ec.freezeDscOnSpan)(e,t),e}let _=(0,y.getCurrentScope)(),E=(0,ed.getActiveSpan)(),T=(n=e,r=(0,nz.startInactiveSpan)(n),(0,eo._setSpanForScope)((0,y.getCurrentScope)(),r),I.DEBUG_BUILD&&h.debug.log("[Tracing] Started span is an idle span"),r);function S(){i&&(clearTimeout(i),i=void 0)}function v(e){S(),i=setTimeout(()=>{!o&&0===a.size&&l&&(s="idleTimeout",T.end(e))},c)}function b(e){i=setTimeout(()=>{!o&&l&&(s="heartbeatFailed",T.end(e))},p)}function R(e){o=!0,a.clear(),u.forEach(e=>e()),(0,eo._setSpanForScope)(_,E);let t=(0,ed.spanToJSON)(T),{start_timestamp:n}=t;if(!n)return;t.data[j.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||T.setAttribute(j.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,s);let r=t.status;r&&"unknown"!==r||T.setStatus({code:nW.SPAN_STATUS_OK}),h.debug.log(`[Tracing] Idle span "${t.op}" finished`);let i=(0,ed.getSpanDescendants)(T).filter(e=>e!==T),l=0;i.forEach(t=>{t.isRecording()&&(t.setStatus({code:nW.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),I.DEBUG_BUILD&&h.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,ed.spanToJSON)(t),i=r<=e,a=n-r<=(d+c)/1e3;if(I.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);i?a||h.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):h.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!i)&&((0,ed.removeChildSpanFromSpan)(T,t),l++)}),l>0&&T.setAttribute("sentry.idle_span_discarded_spans",l)}return T.end=new Proxy(T.end,{apply(e,t,n){if(f&&f(T),t instanceof nH.SentryNonRecordingSpan)return;let[r,...i]=n,a=r||(0,es.timestampInSeconds)(),o=(0,ed.spanTimeInputToSeconds)(a),s=(0,ed.getSpanDescendants)(T).filter(e=>e!==T),l=(0,ed.spanToJSON)(T);if(!s.length||!g)return R(o),Reflect.apply(e,t,[o,...i]);let u=m.getOptions().ignoreSpans,c=s?.reduce((e,t)=>{let n=(0,ed.spanToJSON)(t);return!n.timestamp||u&&(0,eF.shouldIgnoreSpan)(n,u)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),p=l.start_timestamp,_=Math.min(p?p+d/1e3:1/0,Math.max(p||-1/0,Math.min(o,c||1/0)));return R(_),Reflect.apply(e,t,[_,...i])}}),u.push(m.on("spanStart",e=>{var t;!(o||e===T||(0,ed.spanToJSON)(e).timestamp||e instanceof nq.SentrySpan&&e.isStandaloneSpan())&&(0,ed.getSpanDescendants)(T).includes(e)&&(t=e.spanContext().spanId,S(),a.set(t,!0),b((0,es.timestampInSeconds)()+p/1e3))})),u.push(m.on("spanEnd",e=>{if(!o){var t;t=e.spanContext().spanId,a.has(t)&&a.delete(t),0===a.size&&v((0,es.timestampInSeconds)()+c/1e3)}})),u.push(m.on("idleSpanEnableAutoFinish",e=>{e===T&&(l=!0,v(),a.size&&b())})),t.disableAutoFinish||v(),setTimeout(()=>{o||(T.setStatus({code:nW.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),s="finalTimeout",T.end())},d),T}let nV=!1;function nK(){nV||(e.tag="sentry_tracingErrorCallback",nV=!0,t5(e),t6(e));function e(){let e=(0,ed.getActiveSpan)(),t=e&&(0,ed.getRootSpan)(e);if(t){let e="internal_error";I.DEBUG_BUILD&&h.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:nW.SPAN_STATUS_ERROR,message:e})}}}e.s(["registerSpanErrorInstrumentation",()=>nK],856291);var nZ=e.i(254402),nQ=e.i(76357);function n0(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==_.default?_.default:0))||(e=E.GLOBAL_OBJ.process,e?.type==="renderer"))}e.s(["isBrowser",()=>n0],170887);let n1=(e,t,n,r)=>{let i,a;return o=>{if(t.value>=0&&(o||r)&&((a=t.value-(i??0))||void 0===i)){var s;i=t.value,t.delta=a,s=t.value,t.rating=s>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t)}}},n3=(e=!0)=>{let t=t$.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart{let e=n3();return e?.activationStart??0};function n4(e,t,n){t$.document&&t$.addEventListener(e,t,n)}function n5(e,t,n){t$.document&&t$.removeEventListener(e,t,n)}let n8=-1,n7=new Set,n6=e=>{if(("pagehide"===e.type||t$.document?.visibilityState==="hidden")&&n8>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of n7)e();isFinite(n8)||(n8="visibilitychange"===e.type?e.timeStamp:0,n5("prerenderingchange",n6,!0))}},n9=()=>{if(t$.document&&n8<0){let e=n2();n8=(t$.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(t$.document?.visibilityState!=="hidden"||t$.document?.prerendering?1/0:0),n4("visibilitychange",n6,!0),n4("pagehide",n6,!0),n4("prerenderingchange",n6,!0)}return{get firstHiddenTime(){return n8},onHidden(e){n7.add(e)}}},re=(e,t=-1)=>{let n=n3(),r="navigate";return n&&(t$.document?.prerendering||n2()>0?r="prerender":t$.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},rt=new WeakMap;function rn(e,t){try{return rt.get(e)||rt.set(e,new t),rt.get(e)}catch(e){return new t}}class rr{constructor(){rr.prototype.__init.call(this),rr.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let ri=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},ra=e=>{let t=!1;return()=>{t||(e(),t=!0)}},ro=e=>{t$.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rs=[1800,3e3],rl=[.1,.25],ru=0,rc=1/0,rd=0,rp=e=>{e.forEach(e=>{e.interactionId&&(rc=Math.min(rc,e.interactionId),ru=(rd=Math.max(rd,e.interactionId))?(rd-rc)/7+1:0)})},rf=()=>s?ru:performance.interactionCount||0,rg=0;class rm{constructor(){rm.prototype.__init.call(this),rm.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){rg=rf(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((rf()-rg)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}let r_=e=>{let t=t$.requestIdleCallback||t$.setTimeout;t$.document?.visibilityState==="hidden"?e():(n4("visibilitychange",e=ra(e),{once:!0,capture:!0}),n4("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),n5("visibilitychange",e,{capture:!0}),n5("pagehide",e,{capture:!0})}))},rh=[200,500];class rE{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let rT=[2500,4e3],rS=[800,1800],rv=e=>{t$.document?.prerendering?ro(()=>rv(e)):t$.document?.readyState!=="complete"?addEventListener("load",()=>rv(e),!0):setTimeout(e)},ry={},rI={};function rb(e,t=!1){return rD("cls",e,rU,l,t)}function rR(e,t=!1){return rD("lcp",e,rL,u,t)}function rN(e){return rD("ttfb",e,rw,c)}function rA(e){return rD("inp",e,rP,d)}function rO(e,t){var n;let r;return rB(e,t),rI[e]||(r={},"event"===(n=e)&&(r.durationThreshold=0),ri(n,e=>{rC(n,{entries:e})},r),rI[e]=!0),rx(e,t)}function rC(e,t){let n=ry[e];if(n?.length)for(let r of n)try{r(t)}catch(t){nO&&h.debug.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${(0,Y.getFunctionName)(r)} Error:`,t)}}function rU(){return((e,t={})=>{((e,t={})=>{ro(()=>{let n,r=n9(),i=re("FCP"),a=ri("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime{let n,r=re("CLS",0),i=n9(),a=rn(t,rr),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>r.value&&(r.value=a._sessionValue,r.entries=a._sessionEntries,n())},s=ri("layout-shift",o);s&&(n=n1(e,r,rl,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),n(!0)}),t$?.setTimeout?.(n))}))})(e=>{rC("cls",{metric:e}),l=e},{reportAllChanges:!0})}function rL(){return((e,t={})=>{ro(()=>{let n,r=n9(),i=re("LCP"),a=rn(t,rE),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))a._processEntry(o),o.startTime{o(s.takeRecords()),s.disconnect(),n(!0)}),a=e=>{e.isTrusted&&(r_(r),n5(e.type,a,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])n4(e,a,{capture:!0})}})})(e=>{rC("lcp",{metric:e}),u=e},{reportAllChanges:!0})}function rw(){return((e,t={})=>{let n=re("TTFB"),r=n1(e,n,rS,t.reportAllChanges);rv(()=>{let e=n3();e&&(n.value=Math.max(e.responseStart-n2(),0),n.entries=[e],r(!0))})})(e=>{rC("ttfb",{metric:e}),c=e})}function rP(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=n9();ro(()=>{let r;"interactionCount"in performance||s||(s=ri("event",rp,{type:"event",buffered:!0,durationThreshold:0}));let i=re("INP"),a=rn(t,rm),o=e=>{r_(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==i.value&&(i.value=t._latency,i.entries=t.entries,r())})},l=ri("event",o,{durationThreshold:t.durationThreshold??40});r=n1(e,i,rh,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(l.takeRecords()),r(!0)}))})})(e=>{rC("inp",{metric:e}),d=e})}function rD(e,t,n,r,i=!1){let a;return rB(e,t),rI[e]||(a=n(),rI[e]=!0),r&&t({metric:r}),rx(e,t,i?a:void 0)}function rB(e,t){ry[e]=ry[e]||[],ry[e].push(t)}function rx(e,t,n){return()=>{n&&n();let r=ry[e];if(!r)return;let i=r.indexOf(t);-1!==i&&r.splice(i,1)}}function rM(e){return"duration"in e}function rk(e){return"number"==typeof e&&isFinite(e)}function rF(e,t,n,{...r}){let i=(0,ed.spanToJSON)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,nz.withActiveSpan)(e,()=>{let e=(0,nz.startInactiveSpan)({startTime:t,...r});return e&&e.end(n),e})}function r$(e){let t,n=(0,y.getClient)();if(!n)return;let{name:r,transaction:i,attributes:a,startTime:o}=e,{release:s,environment:l,sendDefaultPii:u}=n.getOptions(),c=n.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,y.getCurrentScope)(),f=p.getUser(),g=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}let m={release:s,environment:l,user:g||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":t$.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...a};return(0,nz.startInactiveSpan)({name:r,attributes:m,startTime:o,experimental:{standalone:!0}})}function rG(){return t$.addEventListener&&t$.performance}function rj(e){return e/1e3}function rY(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function rH(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function rq(e,t){let n,r,i=!1;function a(e){!i&&r&&t(e,r),i=!0}n4("visibilitychange",n=e=>{("pagehide"===e.type||t$.document?.visibilityState==="hidden")&&(()=>{a("pagehide")})(e)},{capture:!0,once:!0}),n4("pagehide",n,{capture:!0,once:!0});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(a("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,s()})}e.s(["addClsInstrumentationHandler",()=>rb,"addInpInstrumentationHandler",()=>rA,"addLcpInstrumentationHandler",()=>rR,"addPerformanceInstrumentationHandler",()=>rO,"addTtfbInstrumentationHandler",()=>rN,"isPerformanceEventTiming",()=>rM],509018),e.s(["extractNetworkProtocol",()=>rY,"getBrowserPerformanceAPI",()=>rG,"isMeasurementValue",()=>rk,"listenForWebVitalReportEvents",()=>rq,"msToSec",()=>rj,"startAndEndSpan",()=>rF,"startStandaloneWebVitalSpan",()=>r$,"supportsWebVital",()=>rH],15333);let rW=[],rz=new Map,rJ=new Map,rX={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},rV=({metric:e})=>{if(void 0==e.value)return;let t=rj(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&rX[t.name]);if(!n)return;let{interactionId:r}=n,i=rX[n.name],a=rj((0,es.browserPerformanceTimeOrigin)()+n.startTime),o=(0,ed.getActiveSpan)(),s=o?(0,ed.getRootSpan)(o):void 0,l=null!=r?rz.get(r):void 0,u=l?.span||s,c=u?(0,ed.spanToJSON)(u).description:(0,y.getCurrentScope)().getScopeData().transactionName,d=r$({name:l?.elementName||(0,ta.htmlTreeAsString)(n.target),transaction:c,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${i}`,[j.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration},startTime:a});d&&(d.addEvent("inp",{[j.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[j.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),d.end(a+t))};var rK=e.i(190225);function rZ(e){return e?(((0,es.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function rQ(e){let t={};if(void 0!=e.nextHopProtocol){let{name:n,version:r}=rY(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,es.browserPerformanceTimeOrigin)()||rG()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":rZ(e.redirectStart),"http.request.redirect_end":rZ(e.redirectEnd),"http.request.worker_start":rZ(e.workerStart),"http.request.fetch_start":rZ(e.fetchStart),"http.request.domain_lookup_start":rZ(e.domainLookupStart),"http.request.domain_lookup_end":rZ(e.domainLookupEnd),"http.request.connect_start":rZ(e.connectStart),"http.request.secure_connection_start":rZ(e.secureConnectionStart),"http.request.connection_end":rZ(e.connectEnd),"http.request.request_start":rZ(e.requestStart),"http.request.response_start":rZ(e.responseStart),"http.request.response_end":rZ(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let r0=0,r1={};function r3(e,t,n,r,i=n){var a;let o=t["secureConnection"===(a=n)?"connectEnd":"fetch"===a?"domainLookupStart":`${a}End`],s=t[`${n}Start`];s&&o&&rF(e,r+rj(s),r+rj(o),{op:`browser.${i}`,name:t.name,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let r2="sentry_previous_trace";function r4(e){return 1===e.traceFlags}var r5=e.i(157821),r8=e.i(414697);function r7(e={}){let t=e.client||(0,y.getClient)();if(!(0,v.isEnabled)()||!t)return{};let n=(0,er.getMainCarrier)(),r=(0,r8.getAsyncContextStrategy)(n);if(r.getTraceData)return r.getTraceData(e);let i=e.scope||(0,y.getCurrentScope)(),a=e.span||(0,ed.getActiveSpan)();if(!a&&(0,y.hasExternalPropagationContext)())return{};let o=a?(0,ed.spanToTraceHeader)(a):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,nQ.generateSentryTraceHeader)(t,r,n)}(i),s=a?(0,ec.getDynamicSamplingContextFromSpan)(a):(0,ec.getDynamicSamplingContextFromScope)(t,i),l=(0,r5.dynamicSamplingContextToSentryBaggageHeader)(s);if(!nQ.TRACEPARENT_REGEXP.test(o))return h.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let u={"sentry-trace":o,baggage:l};return e.propagateTraceparent&&(u.traceparent=a?(0,ed.spanToTraceparentHeader)(a):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,nQ.generateTraceparentHeader)(t,r,n)}(i)),u}function r6(e){return e.split(",").some(e=>e.trim().startsWith(r5.SENTRY_BAGGAGE_KEY_PREFIX))}function r9(e,t,n,r){let i={url:tF(e),type:"fetch","http.method":n,[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(tD(t)||(i["http.url"]=tF(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}e.s(["getTraceData",()=>r7],295998);var ie=e.i(304710);let it=Symbol.for("sentry__originalRequestBody");function ir(e){return new URLSearchParams(e).toString()}function ii(e,t=h.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ir(e)];if(!e)return[void 0]}catch(n){return nO&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return nO&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ia(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][it];if(void 0!==t)return t}}function io(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return nO&&h.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}function is(e){try{return new URL(e,to.location.origin).href}catch{return}}function il(e){try{return new Headers(e)}catch{return}}e.s(["getBodyString",()=>ii,"getFetchRequestArgBody",()=>ia,"parseXhrResponseHeaders",()=>io,"serializeFormData",()=>ir],712294);let iu=new WeakMap,ic=new Map,id={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function ip(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:l,onRequestSpanEnd:u}={...id,...t},c="function"==typeof a?a:e=>!0,d=e=>(function(e,t){let n=(0,ta.getLocationHref)();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?(0,P.stringMatchesSomePattern)(r.toString(),t)||a&&(0,P.stringMatchesSomePattern)(r.pathname,t):a}{let n=!!e.match(/^\/(?!\/)/);return t?(0,P.stringMatchesSomePattern)(e,t):n}})(e,s),p={},f=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=ic.get(e.span_id);t&&(e.timestamp=t/1e3,ic.delete(e.span_id))}}),e)),i&&tR(e=>{if(e.response){let t=iu.get(e.response);t&&e.endTimestamp&&ic.set(t,e.endTimestamp)}}),tb(t=>{let n=function(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=(0,nY.hasSpansEnabled)()&&t(o);if(e.endTimestamp){var l,u,c;let t,n=e.fetchData.__span;if(!n)return;let a=r[n];a&&(s&&(function(e,t){if(t.response){(0,nW.setHttpStatus)(e,t.response.status);let n=t.response?.headers?.get("content-length");if(n){let t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:nW.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(a,e),l=a,u=e,t="object"==typeof(c=i)&&null!==c?c.onRequestSpanEnd:void 0,t?.(l,{headers:u.response?.headers,error:u.error})),delete r[n]);return}let{spanOrigin:d="auto.http.browser",propagateTraceparent:p=!1}="object"==typeof i?i:{spanOrigin:i},f=!!(0,ed.getActiveSpan)(),g=s&&f?(0,nz.startInactiveSpan)(function(e,t,n){if(e.startsWith("data:")){let r=tF(e);return{name:`${t} ${r}`,attributes:r9(e,void 0,t,n)}}let r=tB(e),i=r?tx(r):e;return{name:`${t} ${i}`,attributes:r9(e,r,t,n)}}(o,a,d)):new nH.SentryNonRecordingSpan;if(e.fetchData.__span=g.spanContext().spanId,r[g.spanContext().spanId]=g,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var i;let a=r7({span:n,propagateTraceparent:r}),o=a["sentry-trace"],s=a.baggage,l=a.traceparent;if(!o)return;let u=t.headers||((0,ei.isRequest)(e)?e.headers:void 0);if(!u)return{...a};if(i=u,"u">typeof Headers&&(0,ei.isInstanceOf)(i,Headers)){let e=new Headers(u);if(e.get("sentry-trace")||e.set("sentry-trace",o),r&&l&&!e.get("traceparent")&&e.set("traceparent",l),s){let t=e.get("baggage");t?r6(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(u)){let e=[...u];u.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),r&&l&&!u.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);let t=u.find(e=>"baggage"===e[0]&&r6(e[1]));return s&&!t&&e.push(["baggage",s]),e}{let e="sentry-trace"in u?u["sentry-trace"]:void 0,t="traceparent"in u?u.traceparent:void 0,n="baggage"in u?u.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],a=n&&(Array.isArray(n)?n.find(e=>r6(e)):r6(n));s&&!a&&i.push(s);let c={...u,"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0};return r&&l&&!t&&(c.traceparent=l),c}}(t,n,(0,nY.hasSpansEnabled)()&&f?g:void 0,p);r&&(e.args[1]=n,n.headers=r)}let m=(0,y.getClient)();if(m){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};m.emit("beforeOutgoingRequestSpan",g,t)}return g}(t,c,d,p,{propagateTraceparent:f,onRequestSpanEnd:u});if(t.response&&t.fetchData.__span&&iu.set(t.response,t.fetchData.__span),n){let r=is(t.fetchData.url),i=r?tM(r).host:void 0;n.setAttributes({"http.url":r?tF(r):void 0,"server.address":i}),o&&ig(n,e),l?.(n,{headers:t.headers})}})),r&&tq(t=>{let n=function(e,t,n,r,i,a){let o=e.xhr,s=o?.[tH];if(!o||o.__sentry_own_request__||!s)return;let{url:l,method:u}=s,c=(0,nY.hasSpansEnabled)()&&t(l);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(c&&void 0!==s.status_code&&((0,nW.setHttpStatus)(n,s.status_code),n.end(),a?.(n,{headers:il(io(o)),error:e.error})),delete r[t]);return}let d=is(l),p=d?tM(d):tM(l),f=tF(tk(l)),g=!!(0,ed.getActiveSpan)(),m=c&&g?(0,nz.startInactiveSpan)({name:`${u} ${f}`,attributes:{url:tF(l),type:"xhr","http.method":u,"http.url":d?tF(d):void 0,"server.address":p?.host,[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new nH.SentryNonRecordingSpan;o.__sentry_xhr_span_id__=m.spanContext().spanId,r[o.__sentry_xhr_span_id__]=m,n(l)&&function(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=r7({span:t,propagateTraceparent:n});r&&function(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!i?.traceparent&&e.setRequestHeader("traceparent",r),n){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,i,a)}(o,(0,nY.hasSpansEnabled)()&&g?m:void 0,i);let _=(0,y.getClient)();return _&&_.emit("beforeOutgoingRequestSpan",m,e),m}(t,c,d,p,f,u);n&&(o&&ig(n,e),l?.(n,{headers:il(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}function ig(e,t){let{url:n}=(0,ed.spanToJSON)(e).data;if(!n||"string"!=typeof n)return;let r=()=>void setTimeout(i);if((0,ie.hasSpanStreamingEnabled)(t)){let t=e.end.bind(e);e.end=e=>{let n=e??(0,es.timestampInSeconds)(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,300)}}let i=rO("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(n)&&(e.setAttributes(rQ(t)),r())})})}e.s(["defaultRequestInstrumentationOptions",()=>id,"instrumentOutgoingRequests",()=>ip],790458);let im=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i,i_={...nJ,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...id},ih=(e={})=>{let t,n,r,i;"enableElementTiming"in e&&(0,h.consoleSandbox)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let a={name:void 0,source:void 0},o=to.document,{enableInp:s,enableLongTask:l,enableLongAnimationFrame:u,_experiments:{enableInteractions:c,enableStandaloneClsSpans:d,enableStandaloneLcpSpans:g},beforeStartSpan:m,idleTimeout:_,finalTimeout:T,childSpanTimeout:S,markBackgroundSpan:v,traceFetch:I,traceXHR:b,trackFetchStreamPerformance:R,shouldCreateSpanForRequest:N,enableHTTPTimings:A,ignoreResourceSpans:O,ignorePerformanceApiSpans:C,instrumentPageLoad:U,instrumentNavigation:L,detectRedirects:w,linkPreviousTrace:D,consistentTraceSampling:B,enableReportPageLoaded:x,onRequestSpanStart:M,onRequestSpanEnd:k}={...i_,...e},F=(i=to.navigator,!!i?.userAgent&&im.test(i.userAgent));function $(e,n,i=!0){let s="pageload"===n.op,l=n.name,u=m?m(n):n,c=u.attributes||{};if(l!==u.name&&(c[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",u.attributes=c),!i){let e=(0,es.dateTimestampInSeconds)();(0,nz.startInactiveSpan)({...u,startTime:e}).end(e);return}a.name=u.name,a.source=c[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let h=nX(u,{idleTimeout:_,finalTimeout:T,childSpanTimeout:S,disableAutoFinish:s,beforeSpanEnd:n=>{t?.(),function(e,t){var n,r;let i=rG(),a=(0,es.browserPerformanceTimeOrigin)();if(!i?.getEntries||!a)return;let o=rj(a),s=i.getEntries(),{op:l,start_timestamp:u}=(0,ed.spanToJSON)(e);s.slice(r0).forEach(n=>{let r=rj(n.startTime),i=rj(Math.max(0,n.duration));if("navigation"!==l||!u||!(o+r{r3(a,s,e,c)}),r3(a,s,"secureConnection",c,"TLS/SSL"),r3(a,s,"fetch",c,"cache"),r3(a,s,"domainLookup",c,"DNS"),d=a,p=s,g=(f=c)+rj(p.requestStart),m=f+rj(p.responseEnd),_=f+rj(p.responseStart),p.responseEnd&&(rF(d,g,m,{op:"browser.request",name:p.name,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),rF(d,_,m,{op:"browser.response",name:p.name,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i,a){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,P.stringMatchesSomePattern)(t.name,a))return;let o=n3(!1),s=i+Math.max(n,rj(o?o.requestStart:0)),l=i+n,u=l+r,c={[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};s!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&(0,ei.isPrimitive)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,ei.isPrimitive)(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(c,t),s<=u&&rF(e,s,u,{name:t.name,op:t.entryType,attributes:c})}(e,n,r,i,o,t.ignorePerformanceApiSpans);let a=n9(),s=n.startTime{let n=s[e];null!=n&&("number"==typeof n&&n<0x7fffffff||"string"==typeof n)&&(l[t]=n)});let p={...c,...rQ(t)},f=a+r;rF(e,f,f+i,{name:n.replace(t$.location.origin,""),op:u,attributes:p})}(e,n,n.name,r,i,o,t.ignoreResourceSpans)}}),r0=Math.max(s.length-1,0),function(e){let t=t$.navigator;if(!t)return;let n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),rk(n.rtt)&&(r1["connection.rtt"]={value:n.rtt,unit:"millisecond"})),rk(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),rk(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===l&&(function(e){let t=n3(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(r1),t.recordClsOnPageloadSpan||delete r1.cls,t.recordLcpOnPageloadSpan||delete r1.lcp,Object.entries(r1).forEach(([e,t])=>{(0,rK.setMeasurement)(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",n2()),n=e,r=t,p&&r.recordLcpOnPageloadSpan&&(p.element&&n.setAttribute("lcp.element",(0,ta.htmlTreeAsString)(p.element)),p.id&&n.setAttribute("lcp.id",p.id),p.url&&n.setAttribute("lcp.url",p.url.trim().slice(0,200)),null!=p.loadTime&&n.setAttribute("lcp.loadTime",p.loadTime),null!=p.renderTime&&n.setAttribute("lcp.renderTime",p.renderTime),n.setAttribute("lcp.size",p.size)),f?.sources&&r.recordClsOnPageloadSpan&&f.sources.forEach((e,t)=>n.setAttribute(`cls.source.${t+1}`,(0,ta.htmlTreeAsString)(e.node)))),p=void 0,f=void 0,r1={}}(n,{recordClsOnPageloadSpan:!d,recordLcpOnPageloadSpan:!g,ignoreResourceSpans:O,ignorePerformanceApiSpans:C}),iI(e,void 0);let i=(0,y.getCurrentScope)(),a=i.getPropagationContext();i.setPropagationContext({...a,traceId:h.spanContext().traceId,sampled:(0,ed.spanIsSampled)(h),dsc:(0,ec.getDynamicSamplingContextFromSpan)(n)}),s&&(r=void 0)},trimIdleSpanEndTimestamp:!x});function E(){o&&["interactive","complete"].includes(o.readyState)&&e.emit("idleSpanEnableAutoFinish",h)}s&&x&&(r=h),iI(e,h),s&&!x&&o&&(o.addEventListener("readystatechange",()=>{E()}),E())}return{name:"BrowserTracing",setup(e){if(F){tX&&h.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(nK(),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=rG();if(r&&(0,es.browserPerformanceTimeOrigin)()){r.mark&&t$.performance.mark("sentry-tracing-init");let i=t?function(e){let t,n=0;if(!rH("largest-contentful-paint"))return;let r=rR(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);rq(e,(e,i)=>{var a,o,s,l;let u,c,d,p,f;a=n,o=t,s=i,l=e,nO&&h.debug.log(`Sending LCP span (${a})`),u=rj(((0,es.browserPerformanceTimeOrigin)()||0)+(o?.startTime||0)),c=(0,y.getCurrentScope)().getScopeData().transactionName,d=o?(0,ta.htmlTreeAsString)(o.element):"Largest contentful paint",p={[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[j.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":s,"sentry.report_event":l},o&&(o.element&&(p["lcp.element"]=(0,ta.htmlTreeAsString)(o.element)),o.id&&(p["lcp.id"]=o.id),o.url&&(p["lcp.url"]=o.url),null!=o.loadTime&&(p["lcp.loadTime"]=o.loadTime),null!=o.renderTime&&(p["lcp.renderTime"]=o.renderTime),null!=o.size&&(p["lcp.size"]=o.size)),(f=r$({name:d,transaction:c,attributes:p,startTime:u}))&&(f.addEvent("lcp",{[j.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[j.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:a}),f.end(u)),r()})}(n):rR(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(r1.lcp={value:e.value,unit:"millisecond"},p=t)},!0),a=rN(({metric:e})=>{e.entries[e.entries.length-1]&&(r1.ttfb={value:e.value,unit:"millisecond"})}),o=e?function(e){let t,n=0;if(!rH("layout-shift"))return;let r=rb(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);rq(e,(e,i)=>{var a,o,s,l;let u,c,d,p,f;a=n,o=t,s=i,l=e,nO&&h.debug.log(`Sending CLS span (${a})`),u=o?rj(((0,es.browserPerformanceTimeOrigin)()||0)+o.startTime):(0,es.timestampInSeconds)(),c=(0,y.getCurrentScope)().getScopeData().transactionName,d=o?(0,ta.htmlTreeAsString)(o.sources[0]?.node):"Layout shift",p={[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[j.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":s,"sentry.report_event":l},o?.sources&&o.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=(0,ta.htmlTreeAsString)(e.node)}),(f=r$({name:d,transaction:c,attributes:p,startTime:u}))&&(f.addEvent("cls",{[j.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[j.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:a}),f.end(u)),r()})}(n):rb(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(r1.cls={value:e.value,unit:""},f=t)},!0);return()=>{i?.(),a(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:d||!1,recordLcpStandaloneSpans:g||!1,client:e}),s&&function(){if(rG()&&(0,es.browserPerformanceTimeOrigin)()){let e=rA(rV);()=>{e()}}}(),u&&E.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,ed.getActiveSpan)();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=rj((0,es.browserPerformanceTimeOrigin)()+n.startTime),{start_timestamp:r,op:i}=(0,ed.spanToJSON)(t);if("navigation"===i&&r&&e{let t=(0,ed.getActiveSpan)();if(!t)return;let{op:n,start_timestamp:r}=(0,ed.spanToJSON)(t);for(let i of e){let e=rj((0,es.browserPerformanceTimeOrigin)()+i.startTime),a=rj(i.duration);"navigation"===n&&r&&e{let t=(0,ed.getActiveSpan)();if(t){for(let n of e)if("click"===n.name){let e=rj((0,es.browserPerformanceTimeOrigin)()+n.startTime),r=rj(n.duration),i={name:(0,ta.htmlTreeAsString)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},a=(0,ta.getComponentName)(n.target);a&&(i.attributes["ui.component_name"]=a),rF(t,e,e+r,i)}}}),w&&o){let e=()=>{n=(0,es.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function i(){let t=e[iy];t&&!(0,ed.spanToJSON)(t).timestamp&&(tX&&h.debug.log(`[Tracing] Finishing current active span with op: ${(0,ed.spanToJSON)(t).op}`),t.setAttribute(j.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(t,r)=>{if((0,y.getClient)()!==e)return;if(r?.isRedirect){tX&&h.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),$(e,{op:"navigation.redirect",...t},!1);return}n=void 0,i(),(0,y.getIsolationScope)().setPropagationContext({traceId:(0,nZ.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,nY.hasSpansEnabled)()?void 0:(0,nZ.generateSpanId)()});let a=(0,y.getCurrentScope)();a.setPropagationContext({traceId:(0,nZ.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,nY.hasSpansEnabled)()?void 0:(0,nZ.generateSpanId)()}),a.setSDKProcessingMetadata({normalizedRequest:void 0}),$(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,n={})=>{if((0,y.getClient)()!==e)return;i();let r=n.sentryTrace||iS("sentry-trace")||iv("sentry-trace"),a=n.baggage||iS("baggage")||iv("baggage"),o=(0,nQ.propagationContextFromHeaders)(r,a),s=(0,y.getCurrentScope)();s.setPropagationContext(o),(0,nY.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,nZ.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:tc()}),$(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{x&&r&&(r.setAttribute(j.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),r.end())})},afterAllSetup(e){var t,r,i,o,l;let u;if(F)return;let d=(0,ta.getLocationHref)();if("off"!==D&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r="session-storage"===t,i=r?function(){try{let e=to.sessionStorage?.getItem(r2);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,ed.getRootSpan)(e)!==e)return;let t=(0,y.getCurrentScope)().getPropagationContext();i=function(e,t,n){let r=(0,ed.spanToJSON)(t),i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[j.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return i;let a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(tX&&h.debug.log(`Adding previous_trace \`${JSON.stringify(a)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:a,attributes:{[j.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${a.traceId}-${a.spanId}-${+!!r4(a)}`)),i)}(i,e,t),r&&function(e){try{to.sessionStorage.setItem(r2,JSON.stringify(e))}catch(e){tX&&h.debug.warn("Could not store previous trace in sessionStorage",e)}}(i)});let a=!0;n&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,y.getCurrentScope)(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(r4(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=r4(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[j.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:i.sampleRate}})}(e,{linkPreviousTrace:D,consistentTraceSampling:B}),to.location){if(U){let t=(0,es.browserPerformanceTimeOrigin)();iE(e,{name:to.location.pathname,startTime:t?t/1e3:void 0,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}L&&tz(({to:t,from:r})=>{var i,a;let o,s;if(void 0===r&&d?.indexOf(t)!==-1){d=void 0;return}d=void 0;let l=tB(t),u=e[iy],c=u&&w&&(i=u,a=n,o=(0,ed.spanToJSON)(i),!((s=(0,es.dateTimestampInSeconds)())-o.start_timestamp>1.5)&&(!a||!(s-a<=1.5)));iT(e,{name:l?.pathname||to.location.pathname,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:c})})}v&&(to.document?to.document.addEventListener("visibilitychange",()=>{let e=(0,ed.getActiveSpan)();if(!e)return;let t=(0,ed.getRootSpan)(e);if(to.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,ed.spanToJSON)(t);tX&&h.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:nW.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):tX&&h.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")),c&&(t=e,r=_,i=T,o=S,l=a,to.document&&addEventListener("click",()=>{let e="ui.action.click",n=function(e){return e[iy]}(t);if(n&&["navigation","pageload"].includes((0,ed.spanToJSON)(n).op)){tX&&h.debug.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(u&&(u.setAttribute(j.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),u.end(),u=void 0),!l.name){tX&&h.debug.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}u=nX({name:l.name,op:e,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:l.source||"url"}},{idleTimeout:r,finalTimeout:i,childSpanTimeout:o})},{capture:!0})),s&&function(){let e=Object.keys(rX);function t(e){let t=e.target;if(!t)return;let n=(0,ta.htmlTreeAsString)(t),r=Math.round(e.timeStamp);if(rJ.set(r,n),rJ.size>50){let e=rJ.keys().next().value;void 0!==e&&rJ.delete(e)}}n0()&&e.forEach(e=>{t$.addEventListener(e,t,{capture:!0,passive:!0})});let n=({entries:e})=>{let t=(0,ed.getActiveSpan)(),n=t&&(0,ed.getRootSpan)(t);e.forEach(e=>{if(!rM(e))return;let t=e.interactionId;if(null==t||rz.has(t))return;let r=e.target?(0,ta.htmlTreeAsString)(e.target):function(e){let t=Math.round(e.startTime),n=rJ.get(t);if(!n)for(let e=-5;e<=5;e++){let r=rJ.get(t+e);if(r){n=r;break}}return n||""}(e);if(rW.length>10){let e=rW.shift();rz.delete(e)}rW.push(t),rz.set(t,{span:n,elementName:r})})};rO("event",n),rO("first-input",n)}(),ip(e,{traceFetch:I,traceXHR:b,trackFetchStreamPerformance:R,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:N,enableHTTPTimings:A,onRequestSpanStart:M,onRequestSpanEnd:k})}}};function iE(e,t,n){e.emit("startPageLoadSpan",t,n),(0,y.getCurrentScope)().setTransactionName(t.name);let r=e[iy];return r&&e.emit("afterStartPageLoadSpan",r),r}function iT(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let a=(0,y.getCurrentScope)();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...tc(),url:r}}),e[iy]}function iS(e){let t=to.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function iv(e){let t=to.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}let iy="_sentry_idleSpan";function iI(e,t){(0,F.addNonEnumerableProperty)(e,iy,t)}e.s(["browserTracingIntegration",()=>ih,"startBrowserTracingNavigationSpan",()=>iT,"startBrowserTracingPageLoadSpan",()=>iE],910720);let ib=E.GLOBAL_OBJ,iR=null,iN=new Map,iA=new Map;function iO(e){let t=e.split("/").filter(Boolean),n=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function iC(e){if(iN.has(e))return iN.get(e)??null;try{let t=new RegExp(e);return iN.set(e,t),t}catch(t){return n$&&h.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function iU(){if(!ib?._sentryRouteManifest||"string"!=typeof ib._sentryRouteManifest)return null;let e=ib._sentryRouteManifest;if(iR&&g===e)return iR;iN.clear(),iA.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return iR=t,g=e,t}catch{return n$&&h.debug.warn("Could not extract route manifest"),null}}let iL=e=>{let t=iU();if(!t)return;let n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(iA.has(n))return iA.get(n);let{staticRoutes:r,dynamicRoutes:i}=t;if(!Array.isArray(r)||!Array.isArray(i))return;let a=(function(e,t,n){let r=[];if(t.some(t=>t.path===e))return r;for(let t of n)if(t.regex){let n=iC(t.regex);n?.test(e)&&r.push(t.path)}if(!e.startsWith("/:")){for(let t of n)if(t.hasOptionalPrefix&&t.regex){let n="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=iC(t.regex);i?.test(n)&&r.push(t.path)}}return r})(n,r,i).sort((e,t)=>iO(e)-iO(t))[0];return iA.set(n,a),a};function iw(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}let iP="incomplete-app-router-transaction",iD="router-patch",iB={current:void 0};function ix(e){let t=iw(to.location.pathname),n=iL(t),r=(0,es.browserPerformanceTimeOrigin)();iE(e,{name:n??t,startTime:r?r/1e3:void 0,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n?"route":"url"}})}let iM=E.GLOBAL_OBJ,ik=E.GLOBAL_OBJ;function iF(e){m=(t,n)=>{let r=_.default.env._sentryBasePath??ik._sentryBasePath,i=iw(new URL(r&&!t.startsWith(r)?`${r}${t}`:t,to.location.href).pathname),a=iL(i),o=a??i;"router-patch"===iD&&(iD="transition-start-hook");let s=iB.current;s?(s.updateName(o),s.setAttributes({"navigation.type":`router.${n}`,[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url"}),iB.current=void 0):iT(e,{name:o,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url","navigation.type":`router.${n}`}})},to.addEventListener("popstate",()=>{let t=iw(to.location.pathname),n=iL(t);iB.current?.isRecording()?(iB.current.updateName(n??t),iB.current.setAttribute(j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n?"route":"url")):iB.current=iT(e,{name:n??t,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n?"route":"url","navigation.type":"browser.popstate"}})});let t=!1,n=0,r=setInterval(()=>{n++;let i=iM?.next?.router??iM?.nd?.router;t||n>500?clearInterval(r):i&&(clearInterval(r),t=!0,ij(e,i,iB),["nd","next"].forEach(t=>{let n=iM[t];n&&(iM[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&ij(e,r,iB),t[n]=r,!0)}))}))},20)}function i$(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let iG=new WeakSet;function ij(e,t,n){iG.has(t)||(iG.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,i,a){if("router-patch"!==iD)return t.apply(i,a);let o=iP,s={[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"},l=a[0],u=_.default.env._sentryBasePath??ik._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===r?(o=iw(i$(c)),s["navigation.type"]="router.push"):"replace"===r?(o=iw(i$(c)),s["navigation.type"]="router.replace"):"back"===r?s["navigation.type"]="router.back":"forward"===r&&(s["navigation.type"]="router.forward");let d=iL(o);return n.current=iT(e,{name:d??o,attributes:{...s,[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d?"route":"url"}}),t.apply(i,a)}}))}))}function iY(e,t){m&&m(e,t)}e.s(["INCOMPLETE_APP_ROUTER_INSTRUMENTATION_TRANSACTION_NAME",()=>iP,"appRouterInstrumentNavigation",()=>iF,"appRouterInstrumentPageLoad",()=>ix,"captureRouterTransitionStart",()=>iY],777042);var iH=e.i(203828);let iq=iH.default.events?iH.default:iH.default.default;function iW(e={}){let t=ih({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[n,{headers:r}]=t;return r?.get("next-router-prefetch")&&n?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){r&&function(e){if(to.document.getElementById("__NEXT_DATA__"))iq.events.on("routeChangeStart",t=>{let n,r,i=tk(t),a=function(e){let t=to.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n,r,i,a=(n=t.split("/"),r="",n[n.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(n.pop(),r="(?:/(.+?))?"),i=n.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${i}${r}(?:/)?$`));return e.match(a)})}(i);a?(n=a,r="route"):(n=i,r="url"),iT(e,{name:n,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r}})});else iF(e)}(e),t.afterAllSetup(e),n&&(to.document.getElementById("__NEXT_DATA__")?function(e){let{route:t,params:n,sentryTrace:r,baggage:i}=function(){let e,t=to.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{n$&&h.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:i,props:a}=e;return n.route=r,n.params=i,a?.pageProps&&(n.sentryTrace=a.pageProps._sentryTraceData,n.baggage=a.pageProps._sentryBaggage),n}(),a=(0,r5.parseBaggageHeader)(i),o=t||to.location.pathname;a?.["sentry-transaction"]&&"/_error"===o&&(o=(o=a["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=(0,es.browserPerformanceTimeOrigin)();iE(e,{name:o,startTime:s?s/1e3:void 0,attributes:{[j.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[j.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[j.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:i})}(e):ix(e))}}}e.s(["browserTracingIntegration",()=>iW],454578);let iz=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function iJ(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n="/"===i.charAt(0))}return t=(function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function iX(e){let t=0;for(;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}let iV=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in E.GLOBAL_OBJ&&!!E.GLOBAL_OBJ.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||a){let e,a,o=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=iJ(e).slice(1),t=iJ(t).slice(1);let n=iX(e.split("/")),r=iX(t.split("/")),i=Math.min(n.length,r.length),a=i;for(let e=0;e1024?`${o.slice(-1024)}`:o,(a=iz.exec(e))?a.slice(1):[])[2]||"";r.filename=`${n}${s}`}return r}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}};e.s(["rewriteFramesIntegration",()=>iV],995790);let iK=new class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}(100),iZ=E.GLOBAL_OBJ,iQ=!1,i0=E.GLOBAL_OBJ;function i1(e){let t,n,r,i,a,o;iQ&&(0,h.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),iQ=!0,!n$&&e.debug&&(0,h.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"({...iV({iteratee:i=>{if(r){let n="u">typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(n)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===n&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(n,"")}catch{}return r?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:i,basePath:a,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:o})),n),release:_.default.env._sentryRelease||i0._sentryRelease,...e};!function(e){let t=_.default.env._sentryRewritesTunnelPath||iZ._sentryRewritesTunnelPath;if(t&&e.dsn){let n=(0,V.dsnFromString)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let i=r[1],a=r[2],o=`${t}?o=${i}&p=${n.projectId}`;a&&(o+=`&r=${a}`),e.tunnel=o,n$&&h.debug.log(`Tunneling events to "${o}"`)}else n$&&h.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(s),S(s,"nextjs",["nextjs","react"]);let l=nF(s),u=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;u.id="NextClient404Filter",(0,v.addEventProcessor)(u);let c=e=>"transaction"===e.type&&e.transaction===iP?null:e;c.id="IncompleteTransactionFilter",(0,v.addEventProcessor)(c);let d=(e,t)=>nj(t?.originalException)||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e;d.id="NextRedirectErrorFilter",(0,v.addEventProcessor)(d);try{(0,y.getGlobalScope)().setTag("turbopack",!0)}catch{}return l}function i3(e){return e}e.s(["init",()=>i1,"withSentryConfig",()=>i3],327377)},934221,(e,t,n)=>{"use strict";t.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},232063,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return s},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l},UNDERSCORE_NOT_FOUND_ROUTE:function(){return a},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return o}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a="/_not-found",o=`${a}/page`,s="/_global-error",l=`${s}/page`},558784,(e,t,n)=>{"use strict";var r,i=e.i(350461);Object.defineProperty(n,"__esModule",{value:!0});var a={APP_CLIENT_INTERNALS:function(){return en},APP_PATHS_MANIFEST:function(){return v},APP_PATH_ROUTES_MANIFEST:function(){return y},AdapterOutputType:function(){return d},BARREL_OPTIMIZATION_PREFIX:function(){return z},BLOCKED_PAGES:function(){return j},BUILD_ID_FILE:function(){return G},BUILD_MANIFEST:function(){return I},CLIENT_PUBLIC_FILES_PATH:function(){return Y},CLIENT_REFERENCE_MANIFEST:function(){return J},CLIENT_STATIC_FILES_PATH:function(){return H},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return et},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return ea},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return er},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ei},COMPILER_INDEXES:function(){return c},COMPILER_NAMES:function(){return u},CONFIG_FILES:function(){return $},DEFAULT_RUNTIME_WEBPACK:function(){return es},DEFAULT_SANS_SERIF_FONT:function(){return ep},DEFAULT_SERIF_FONT:function(){return ed},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return M},DEV_CLIENT_PAGES_MANIFEST:function(){return P},DYNAMIC_CSS_MANIFEST:function(){return Q},EDGE_RUNTIME_WEBPACK:function(){return el},EDGE_UNSUPPORTED_NODE_APIS:function(){return eh},EXPORT_DETAIL:function(){return O},EXPORT_MARKER:function(){return A},FUNCTIONS_CONFIG_MANIFEST:function(){return b},IMAGES_MANIFEST:function(){return L},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return Z},MIDDLEWARE_BUILD_MANIFEST:function(){return V},MIDDLEWARE_MANIFEST:function(){return D},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return K},MODERN_BROWSERSLIST_TARGET:function(){return s.default},NEXT_BUILTIN_DOCUMENT:function(){return W},NEXT_FONT_MANIFEST:function(){return N},PAGES_MANIFEST:function(){return T},PHASE_ANALYZE:function(){return f},PHASE_DEVELOPMENT_SERVER:function(){return _},PHASE_EXPORT:function(){return p},PHASE_INFO:function(){return E},PHASE_PRODUCTION_BUILD:function(){return g},PHASE_PRODUCTION_SERVER:function(){return m},PHASE_TEST:function(){return h},PRERENDER_MANIFEST:function(){return C},REACT_LOADABLE_MANIFEST:function(){return k},ROUTES_MANIFEST:function(){return U},RSC_MODULE_TYPES:function(){return e_},SERVER_DIRECTORY:function(){return F},SERVER_FILES_MANIFEST:function(){return w},SERVER_PROPS_ID:function(){return ec},SERVER_REFERENCE_MANIFEST:function(){return X},STATIC_PROPS_ID:function(){return eu},STATIC_STATUS_PAGES:function(){return ef},STRING_LITERAL_DROP_BUNDLE:function(){return q},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return R},SYSTEM_ENTRYPOINTS:function(){return eE},TRACE_OUTPUT_VERSION:function(){return eg},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return x},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return B},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return em},UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY},UNDERSCORE_NOT_FOUND_ROUTE:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY},WEBPACK_STATS:function(){return S}};for(var o in a)Object.defineProperty(n,o,{enumerable:!0,get:a[o]});let s=e.r(731640)._(e.r(934221)),l=e.r(232063),u={client:"client",server:"server",edgeServer:"edge-server"},c={[u.client]:0,[u.server]:1,[u.edgeServer]:2};var d=((r={}).PAGES="PAGES",r.PAGES_API="PAGES_API",r.APP_PAGE="APP_PAGE",r.APP_ROUTE="APP_ROUTE",r.PRERENDER="PRERENDER",r.STATIC_FILE="STATIC_FILE",r.MIDDLEWARE="MIDDLEWARE",r);let p="phase-export",f="phase-analyze",g="phase-production-build",m="phase-production-server",_="phase-development-server",h="phase-test",E="phase-info",T="pages-manifest.json",S="webpack-stats.json",v="app-paths-manifest.json",y="app-path-routes-manifest.json",I="build-manifest.json",b="functions-config-manifest.json",R="subresource-integrity-manifest",N="next-font-manifest",A="export-marker.json",O="export-detail.json",C="prerender-manifest.json",U="routes-manifest.json",L="images-manifest.json",w="required-server-files",P="_devPagesManifest.json",D="middleware-manifest.json",B="_clientMiddlewareManifest.json",x="client-build-manifest.json",M="_devMiddlewareManifest.json",k="react-loadable-manifest.json",F="server",$=["next.config.js","next.config.mjs","next.config.ts",...i.default?.features?.typescript?["next.config.mts"]:[]],G="BUILD_ID",j=["/_document","/_app","/_error"],Y="public",H="static",q="__NEXT_DROP_CLIENT_FILE__",W="__NEXT_BUILTIN_DOCUMENT__",z="__barrel_optimize__",J="client-reference-manifest",X="server-reference-manifest",V="middleware-build-manifest",K="middleware-react-loadable-manifest",Z="interception-route-rewrite-manifest",Q="dynamic-css-manifest",ee="main",et=`${ee}-app`,en="app-pages-internals",er="react-refresh",ei="webpack",ea="polyfills",eo=Symbol(ea),es="webpack-runtime",el="edge-runtime-webpack",eu="__N_SSG",ec="__N_SSP",ed={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ep={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},ef=["/500"],eg=1,em=6e3,e_={client:"client",server:"server"},eh=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eE=new Set([ee,er,et]);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)}]); //# sourceMappingURL=43364e4df2599186.js.map