PageSourceSearch

https://console.graffer.jp/aistudio/_next/static/chunks/main-cfbf529dd2ea0f40.js

js graffer.jp collected 2026-09-24 08:42:11 UTC 1,173,079 bytes, 980 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d239cb97-69bc-4e03-aad8-03abb868d5d8",e._sentryDebugIdIdentifier="sentry-dbid-d239cb97-69bc-4e03-aad8-03abb868d5d8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8792],{26:(e,t)=>{"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t,...r){(e[t]||[]).slice().map(e=>{e(...r)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},113:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700);function i(e,t){let r=o(e,t),n={type:u(t),value:c(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function a(e,t){return{exception:{values:[i(e,t)]}}}function o(e,t){var r,n;let i=t.stacktrace||t.stack||"",a=(r=t)&&s.test(r.message)?1:0,o="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,a,o)}catch{}return[]}let s=/Minified React error #\d+;/i;function l(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function u(e){let t=e?.name;return!t&&l(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function c(e){let t=e?.message;return l(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?n._INTERNAL_enhanceErrorWithSentryInfo(t.error):n._INTERNAL_enhanceErrorWithSentryInfo(e):"No error message"}function d(e,t,r,s,l){let u;if(n.isErrorEvent(t)&&t.error)return a(e,t.error);if(n.isDOMError(t)||n.isDOMException(t)){if("stack"in t)u=a(e,t);else{let i=t.name||(n.isDOMError(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;u=p(e,a,r,s),n.addExceptionTypeValue(u,a)}return"code"in t&&(u.tags={...u.tags,"DOMException.code":`${t.code}`}),u}return n.isError(t)?a(e,t):(n.isPlainObject(t)||n.isEvent(t)?u=function(e,t,r,a){let s=n.getClient(),l=s?.getOptions().normalizeDepth,u=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),c={__serialized__:n.normalizeToSize(t,l)};if(u)return{exception:{values:[i(e,u)]},extra:c};let d={exception:{values:[{type:n.isEvent(t)?t.constructor.name:a?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=n.extractExceptionKeysForMessage(e),i=t?"promise rejection":"exception";if(n.isErrorEvent(e))return`Event \`ErrorEvent\` captured as ${i} with message \`${e.message}\``;if(n.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 ${i}`}return`Object captured as ${i} with keys: ${r}`}(t,{isUnhandledRejection:a})}]},extra:c};if(r){let t=o(e,r);t.length&&(d.exception.values[0].stacktrace={frames:t})}return d}(e,t,r,l):(u=p(e,t,r,s),n.addExceptionTypeValue(u,`${t}`,void 0)),n.addExceptionMechanism(u,{synthetic:!0}),u)}function p(e,t,r,i){let a={};if(i&&r){let i=o(e,r);i.length&&(a.exception={values:[{value:t,stacktrace:{frames:i}}]}),n.addExceptionMechanism(a,{synthetic:!0})}if(n.isParameterizedString(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return a.logentry={message:e,params:r},a}return a.message=t,a}t.eventFromException=function(e,t,r,i){let a=d(e,t,r?.syntheticException||void 0,i);return n.addExceptionMechanism(a),a.level="error",r?.event_id&&(a.event_id=r.event_id),n.resolvedSyncPromise(a)},t.eventFromMessage=function(e,t,r="info",i,a){let o=p(e,t,i?.syntheticException||void 0,a);return o.level=r,i?.event_id&&(o.event_id=i.event_id),n.resolvedSyncPromise(o)},t.eventFromUnknownInput=d,t.exceptionFromError=i,t.extractMessage=c,t.extractType=u},404:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(8305),i=r(66908),a=r(76677),o=r(53440),s=r(6935),l=r(65224),u=r(51045),c=r(41291),d=r(86652),p="_frozenDsc";function f(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},a={environment:r.environment||n.DEFAULT_ENVIRONMENT,release:r.release,public_key:i,trace_id:e,org_id:s.extractOrgIdFromClient(t)};return t.emit("createDsc",a),a}function h(e){let t=i.getClient();if(!t)return{};let r=c.getRootSpan(e),n=c.spanToJSON(r),s=n.data,u=r.spanContext().traceState,h=u?.get("sentry.sample_rate")??s[a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??s[a.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function m(e){return("number"==typeof h||"string"==typeof h)&&(e.sample_rate=`${h}`),e}let g=r[p];if(g)return m(g);let _=u?.get("sentry.dsc"),y=_&&o.baggageHeaderToDynamicSamplingContext(_);if(y)return m(y);let S=f(e.spanContext().traceId,t),E=s[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],b=n.description;return"url"!==E&&b&&(S.transaction=b),l.hasSpansEnabled()&&(S.sampled=String(c.spanIsSampled(r)),S.sample_rand=u?.get("sentry.sample_rand")??d.getCapturedScopesOnSpan(r).scope?.getPropagationContext().sampleRand.toString()),m(S),t.emit("createDsc",S,r),S}t.freezeDscOnSpan=function(e,t){u.addNonEnumerableProperty(e,p,t)},t.getDynamicSamplingContextFromClient=f,t.getDynamicSamplingContextFromScope=function(e,t){let r=t.getPropagationContext();return r.dsc||f(r.traceId,e)},t.getDynamicSamplingContextFromSpan=h,t.spanToBaggageHeader=function(e){let t=h(e);return o.dynamicSamplingContextToSentryBaggageHeader(t)}},493:(e,t)=>
1{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getSDKSource=function(){return"npm"},t.isBrowserBundle=function(){return"u">typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}},660:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});class r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}t.SentryError=r},992:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(404),i=r(6935),a=r(6386),o=r(17805),s=r(41291);function l(e,t){if(!t)return e;let r=e.sdk||{};return e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}t._enhanceEventWithSdkInfo=l,t.createEventEnvelope=function(e,t,r,n){let i=a.getSdkMetadataForEnvelopeHeader(r),o=e.type&&"replay_event"!==e.type?e.type:"event";l(e,r?.sdk);let s=a.createEventEnvelopeHeaders(e,i,n,t);delete e.sdkProcessingMetadata;let u=[{type:o},e];return a.createEnvelope(s,[u])},t.createSessionEnvelope=function(e,t,r,n){let o=a.getSdkMetadataForEnvelopeHeader(r),s={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!n&&t&&{dsn:i.dsnToString(t)}},l="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return a.createEnvelope(s,[l])},t.createSpanEnvelope=function(e,t){let r=n.getDynamicSamplingContextFromSpan(e[0]),l=t?.getDsn(),u=t?.getOptions().tunnel,c={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!u&&l&&{dsn:i.dsnToString(l)}},{beforeSendSpan:d,ignoreSpans:p}=t?.getOptions()||{},f=p?.length?e.filter(e=>!o.shouldIgnoreSpan(s.spanToJSON(e),p)):e,h=e.length-f.length;h&&t?.recordDroppedEvent("before_send","span",h);let m=d?e=>{let t=s.spanToJSON(e),r=d(t);return r||(s.showSpanDropWarning(),t)}:s.spanToJSON,g=[];for(let e of f){let t=m(e);t&&g.push(a.createSpanEnvelopeItem(t))}return a.createEnvelope(c,g)}},1056:(e,t,r)=>{"use strict";r.d(t,{Bk:()=>x,CC:()=>m,Ck:()=>y,G_:()=>b,Hu:()=>C,Qh:()=>E,VS:()=>P,aO:()=>g,cI:()=>v,et:()=>A,kX:()=>S,pK:()=>R,uU:()=>T,xO:()=>k,xl:()=>L,yW:()=>O,zQ:()=>U,zU:()=>M});var n=r(62370),i=r(61531),a=r(31867),o=r(62536),s=r(88120),l=r(97251),u=r(45936),c=r(24694),d=r(21762),p=r(77151),f=r(59685),h=r(86006);let m=0,g=1,_=!1;function y(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:a,status:o,origin:s,links:l}=A(e);return{parent_span_id:a,span_id:t,trace_id:r,data:n,op:i,status:o,origin:s,links:l}}function S(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:A(e).parent_span_id,a=(0,l.L)(e).scope;return{parent_span_id:i,span_id:n?a?.getPropagationContext().propagationSpanId||(0,c.Z)():t,trace_id:r}}function E(e){let{traceId:t,spanId:r}=e.spanContext(),n=R(e);return(0,p.TC)(t,r,n)}function b(e){let{traceId:t,spanId:r}=e.spanContext(),n=R(e);return(0,p.Iy)(t,r,n)}function T(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:r===g,attributes:i,...n})):void 0}function v(e){return"number"==typeof e?I(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?I(e.getTime()):(0,d.zf)()}function I(e){return e>0x2540be3ff?e/1e3:e}function A(e){var t;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:n}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:i,name:a,endTime:s,status:l,links:u}=e;return{span_id:r,trace_id:n,data:t,description:a,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:v(i),timestamp:v(s)||void 0,status:O(l),op:t[o.uT],origin:t[o.JD],links:T(u)}}return{span_id:r,trace_id:n,start_timestamp:0,data:{}}}function R(e){let{traceFlags:t}=e.spanContext();return t===g}function O(e){if(e&&e.code!==s.a3)return e.code===s.F3?"ok":e.message||"internal_error"}let w="_sentryChildSpans",N="_sentryRootSpan";function C(e,t){let r=e[N]||e;(0,u.my)(t,N,r),e[w]?e[w].add(t):(0,u.my)(e,w,new Set([t]))}function P(e,t){e[w]&&e[w].delete(t)}function k(e){let t=new Set;return!function e(r){if(!t.has(r)&&R(r))for(let n of(t.add(r),r[w]?Array.from(r[w]):[]))e(n)}(e),Array.from(t)}function M(e){return e[N]||e}function x(){let e=(0,i.EU)(),t=(0,n.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,h.f)((0,a.o5)())}function L(){_||((0,f.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),_=!0)}function U(e,t){e.updateName(t),e.setAttributes({[o.i_]:"custom",[o.Le]:t})}},1391:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(77191),i=r(76677),a=r(15793),o=r(95068),s=r(23105),l=r(38842),u=r(42970);t.createLangChainCallbackHandler=function(e={}){let t=e.recordInputs??!1,r=e.recordOutputs??!1,c=new Map,d=e=>{let t=c.get(e);t?.isRecording()&&(t.end(),c.delete(e))}
1,p={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,r,n,a,l,d,p,f){let h=u.getInvocationParams(d),m=u.extractLLMRequestAttributes(e,r,t,h,p),g=m[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE],_=m[s.GEN_AI_OPERATION_NAME_ATTRIBUTE];o.startSpanManual({name:`${_} ${g}`,op:"gen_ai.chat",attributes:{...m,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(c.set(n,e),e))},handleChatModelStart(e,r,n,a,l,d,p,f){let h=u.getInvocationParams(d),m=u.extractChatModelRequestAttributes(e,r,t,h,p),g=m[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE],_=m[s.GEN_AI_OPERATION_NAME_ATTRIBUTE];o.startSpanManual({name:`${_} ${g}`,op:"gen_ai.chat",attributes:{...m,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(c.set(n,e),e))},handleLLMEnd(e,t,n,i,a){let o=c.get(t);if(o?.isRecording()){let n=u.extractLlmResponseAttributes(e,r);n&&o.setAttributes(n),d(t)}},handleLLMError(e,t){let r=c.get(t);r?.isRecording()&&(r.setStatus({code:a.SPAN_STATUS_ERROR,message:"llm_error"}),d(t)),n.captureException(e,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(e,r,n,a,s,l,u,d){let p=d||e.name||"unknown_chain",f={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":p};t&&(f["langchain.chain.inputs"]=JSON.stringify(r)),o.startSpanManual({name:`chain ${p}`,op:"gen_ai.invoke_agent",attributes:{...f,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(c.set(n,e),e))},handleChainEnd(e,t){let n=c.get(t);n?.isRecording()&&(r&&n.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),d(t))},handleChainError(e,t){let r=c.get(t);r?.isRecording()&&(r.setStatus({code:a.SPAN_STATUS_ERROR,message:"chain_error"}),d(t)),n.captureException(e,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(e,r,n,a){let u=e.name||"unknown_tool",d={[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,[s.GEN_AI_TOOL_NAME_ATTRIBUTE]:u};t&&(d[s.GEN_AI_TOOL_INPUT_ATTRIBUTE]=r),o.startSpanManual({name:`execute_tool ${u}`,op:"gen_ai.execute_tool",attributes:{...d,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(c.set(n,e),e))},handleToolEnd(e,t){let n=c.get(t);n?.isRecording()&&(r&&n.setAttributes({[s.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:JSON.stringify(e)}),d(t))},handleToolError(e,t){let r=c.get(t);r?.isRecording()&&(r.setStatus({code:a.SPAN_STATUS_ERROR,message:"tool_error"}),d(t)),n.captureException(e,{mechanism:{handled:!1,type:`${l.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy:()=>p,toJSON:()=>({lc:1,type:"not_implemented",id:p.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:p.lc_id})};return p}},1413:(e,t,r)=>{"use strict";r.d(t,{HW:()=>_,LZ:()=>f,ao:()=>m,k1:()=>g});var n=r(60806),i=r(31867),a=r(62536),o=r(73699),s=r(25952),l=r(34563),u=r(45936),c=r(1056),d=r(97251);let p="_frozenDsc";function f(e,t){(0,u.my)(e,p,t)}function h(e,t){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},a={environment:r.environment||n.U,release:r.release,public_key:i,trace_id:e,org_id:(0,s.ul)(t)};return t.emit("createDsc",a),a}function m(e,t){let r=t.getPropagationContext();return r.dsc||h(r.traceId,e)}function g(e){let t=(0,i.KU)();if(!t)return{};let r=(0,c.zU)(e),n=(0,c.et)(r),s=n.data,u=r.spanContext().traceState,f=u?.get("sentry.sample_rate")??s[a.sy]??s[a.Ef];function m(e){return("number"==typeof f||"string"==typeof f)&&(e.sample_rate=`${f}`),e}let g=r[p];if(g)return m(g);let _=u?.get("sentry.dsc"),y=_&&(0,o.yD)(_);if(y)return m(y);let S=h(e.spanContext().traceId,t),E=s[a.i_],b=n.description;return"url"!==E&&b&&(S.transaction=b),(0,l.f)()&&(S.sampled=String((0,c.pK)(r)),S.sample_rand=u?.get("sentry.sample_rand")??(0,d.L)(r).scope?.getPropagationContext().sampleRand.toString()),m(S),t.emit("createDsc",S,r),S}function _(e){let t=g(e);return(0,o.De)(t)}},1610:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(86160),a=r(62327);t.addBreadcrumb=function(e,t){let r=n.getClient(),o=n.getIsolationScope();if(!r)return;let{beforeBreadcrumb:s=null,maxBreadcrumbs:l=100}=r.getOptions();if(l<=0)return;let u={timestamp:a.dateTimestampInSeconds(),...e},c=s?i.consoleSandbox(()=>s(u,t)):u;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),o.addBreadcrumb(c,l))}},2694:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(85699);r(5756),r(64995),r(78972),r(36797),r(78114),r(67811),r(28732),r(20041),r(4008),r(59658);let o="sentry_previous_trace",s="sentry.previous_trace";function l(e,t,r){let a=n.spanToJSON(t),o={spanContext:t.spanContext(),startTimestamp:a.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(a.data?.[n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return o;let l=e.spanContext;return l.traceId===a.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(i.DEBUG_BUILD&&n.debug.log(`Adding previous_trace \`${JSON.stringify(l)}\` link to span \`${JSON.stringify({op:a.op,...t.spanContext()})}\``),t.addLink({context:l,attributes:{[n.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute(s,`${l.traceId}-${l.spanId}-${+!!d(l)}`)),o)}function u(e){try{a.WINDOW.sessionStorage.setItem(o,JSON.stringify(e))}catch(e){i.DEBUG_BUILD&&n.debug.warn("Could not store previous trace in sessionStorage",e)}}function c(){try{let e=a.WINDOW.sessionStorage?.getItem(o);return JSON.parse(e)}catch{return}}function d(e){return 1===e.traceFlags}t.PREVIOUS_TRACE_KEY=o,t.PREVIOUS_TRACE_MAX_DURATION=3600,t.PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE=s,t.addPreviousTraceSpanLink=l,t.getPreviousTraceFromSessionStorage=c,t.linkTraces=function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let i="session-storage"===t,a=i?c():void 0;e.on("spanStart",e=>{if(n.getRootSpan(e)!==e)return;let t=n.getCurrentScope().getPropagationContext();a=l(a,e,t),i&&u(a)});let o=!0;r&&e.on("beforeSampling",e=>
1{if(!a)return;let t=n.getCurrentScope(),r=t.getPropagationContext();if(o&&r.parentSpanId){o=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(a.sampleRate),sampled:String(d(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=d(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[n.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:a.sampleRate}})},t.spanContextSampled=d,t.storePreviousTraceInSessionStorage=u},2698:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(85699);t.baggageHeaderHasSentryValues=function(e){return e.split(",").some(e=>e.trim().startsWith("sentry-"))},t.createHeadersSafely=function(e){try{return new Headers(e)}catch{return}},t.getFullURL=function(e){try{return new URL(e,n.WINDOW.location.origin).href}catch{return}},t.isPerformanceResourceTiming=function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}},2812:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(76677),a=r(86160),o=r(41291),s=r(15793),l=r(95068),u=/^(SELECT|INSERT|UPDATE|DELETE|CREATE|DROP|ALTER)/i,c=Symbol("sentryPostgresConnectionContext"),d=Symbol.for("sentry.instrumented.postgresjs"),p=Symbol.for("sentry.query.from.instrumented.sql");function f(e,t,r){if(e.handle?.__sentryWrapped)return;e[p]=!0;let u=e.handle,d=async function(...d){var p;if(p=r,void 0===o.getActiveSpan()&&p.requireParentSpan)return u.apply(this,d);let f=m(h(e.strings));return l.startSpanManual({name:f||"postgresjs.query",op:"db"},e=>{e.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"auto.db.postgresjs"),e.setAttributes({"db.system.name":"postgres","db.query.text":f});let o=t?t[c]:void 0;if(function(e,t){if(t&&(t.ATTR_DB_NAMESPACE&&e.setAttribute("db.namespace",t.ATTR_DB_NAMESPACE),t.ATTR_SERVER_ADDRESS&&e.setAttribute("server.address",t.ATTR_SERVER_ADDRESS),void 0!==t.ATTR_SERVER_PORT)){let r=parseInt(t.ATTR_SERVER_PORT,10);isNaN(r)||e.setAttribute("server.port",r)}}(e,o),r.requestHook)try{r.requestHook(e,f,o)}catch(t){e.setAttribute("sentry.hook.error","requestHook failed"),n.DEBUG_BUILD&&a.debug.error("Error in requestHook for PostgresJs instrumentation:",t)}this.resolve=new Proxy(this.resolve,{apply:(t,r,i)=>{try{g(e,f,i?.[0]?.command),e.end()}catch(e){n.DEBUG_BUILD&&a.debug.error("Error ending span in resolve callback:",e)}return Reflect.apply(t,r,i)}}),this.reject=new Proxy(this.reject,{apply:(t,r,i)=>{try{e.setStatus({code:s.SPAN_STATUS_ERROR,message:i?.[0]?.message||"unknown_error"}),e.setAttribute("db.response.status_code",i?.[0]?.code||"unknown"),e.setAttribute("error.type",i?.[0]?.name||"unknown"),g(e,f),e.end()}catch(e){n.DEBUG_BUILD&&a.debug.error("Error ending span in reject callback:",e)}return Reflect.apply(t,r,i)}});try{return u.apply(this,d)}catch(t){throw e.setStatus({code:s.SPAN_STATUS_ERROR,message:t instanceof Error?t.message:"unknown_error"}),e.end(),t}})};d.__sentryWrapped=!0,e.handle=d}function h(e){if(e?.length)return 1===e.length?e[0]||void 0:e.reduce((e,t,r)=>0===r?t:`${e}$${r}${t}`,"")}function m(e){return e?e.replace(/--.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,"").replace(/;\s*$/,"").replace(/\s+/g," ").trim().replace(/\bX'[0-9A-Fa-f]*'/gi,"?").replace(/\bB'[01]*'/gi,"?").replace(/'(?:[^']|'')*'/g,"?").replace(/\b0x[0-9A-Fa-f]+/gi,"?").replace(/\b(?:TRUE|FALSE)\b/gi,"?").replace(/-?\b\d+\.?\d*[eE][+-]?\d+\b/g,"?").replace(/-?\b\d+\.\d+\b/g,"?").replace(/-?\.\d+\b/g,"?").replace(/(?<!\$)-?\b\d+\b/g,"?").replace(/\bIN\b\s*\(\s*\?(?:\s*,\s*\?)*\s*\)/gi,"IN (?)").replace(/\bIN\b\s*\(\s*\$\d+(?:\s*,\s*\$\d+)*\s*\)/gi,"IN ($?)"):"Unknown SQL Query"}function g(e,t,r){if(r)return void e.setAttribute("db.operation.name",r);let n=t?.match(u);n?.[1]&&e.setAttribute("db.operation.name",n[1].toUpperCase())}t._reconstructQuery=h,t._sanitizeSqlQuery=m,t.instrumentPostgresJsSql=function(e,t){return e&&"function"==typeof e?function e(t,r,n){if(t[d])return t;let i=new Proxy(t,{apply(e,t,n){let a=Reflect.apply(e,t,n);return a&&"object"==typeof a&&"handle"in a&&f(a,i,r),a},get(t,n){var a,o,s,l,u,d,p,h;let m=t[n];return"string"!=typeof n||"function"!=typeof m?m:"unsafe"===n||"file"===n?(a=m,o=t,s=i,l=r,function(...e){let t=Reflect.apply(a,o,e);return t&&"object"==typeof t&&"handle"in t&&f(t,s,l),t}):"begin"===n||"reserve"===n?(u=m,d=t,p=i,h=r,function(...t){let r=p[c];if("function"!=typeof t[t.length-1]){let n=Reflect.apply(u,d,t);return n&&"function"==typeof n.then?n.then(t=>e(t,h,r)):n}let n=1===t.length?t[0]:t[1],i=function(t){return n(e(t,h,r))};return Reflect.apply(u,d,1===t.length?[i]:[t[0],i])}):m}});return n?i[c]=n:function(e,t){if(!e.options||"object"!=typeof e.o
1ptions)return;let r=e.options,n=r.host?.[0]||"localhost",i=r.port?.[0]||5432,a={ATTR_DB_NAMESPACE:"string"==typeof r.database&&""!==r.database?r.database:void 0,ATTR_SERVER_ADDRESS:n,ATTR_SERVER_PORT:String(i)};t[c]=a}(t,i),t[d]=!0,i[d]=!0,i}(e,{requireParentSpan:!0,...t}):(n.DEBUG_BUILD&&a.debug.warn("instrumentPostgresJsSql: provided value is not a valid postgres.js sql instance"),e)}},3205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={safeCompile:function(){return l},safePathToRegexp:function(){return s},safeRegexpToFunction:function(){return u},safeRouteMatcher:function(){return c}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(66177),o=r(38273);function s(e,t,r){if("string"!=typeof e)return(0,a.pathToRegexp)(e,t,r);let n=(0,o.hasAdjacentParameterIssues)(e),i=n?(0,o.normalizeAdjacentParameters)(e):e;try{return(0,a.pathToRegexp)(i,t,r)}catch(i){if(!n)try{let n=(0,o.normalizeAdjacentParameters)(e);return(0,a.pathToRegexp)(n,t,r)}catch(e){}throw i}}function l(e,t){let r=(0,o.hasAdjacentParameterIssues)(e),n=r?(0,o.normalizeAdjacentParameters)(e):e;try{let e=(0,a.compile)(n,t);if(r)return t=>(0,o.stripNormalizedSeparators)(e(t));return e}catch(n){if(!r)try{let r=(0,o.normalizeAdjacentParameters)(e),n=(0,a.compile)(r,t);return e=>(0,o.stripNormalizedSeparators)(n(e))}catch(e){}throw n}}function u(e,t){let r=(0,a.regexpToFunction)(e,t||[]);return e=>{let t=r(e);return!!t&&{...t,params:(0,o.stripParameterSeparators)(t.params)}}}function c(e){return t=>{let r=e(t);return!!r&&(0,o.stripParameterSeparators)(r)}}},3744:(e,t,r)=>{let n;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=r(66908),a=r(46298),o=r(51045),s=new WeakMap;t.functionToStringIntegration=a.defineIntegration(()=>({name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=o.getOriginalFunction(this),r=s.has(i.getClient())&&void 0!==t?t:this;return n.apply(r,e)}}catch{}},setup(e){s.set(e,!0)}}))},4008:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(113);t.linkedErrorsIntegration=n.defineIntegration((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,a,o){let s=o.getOptions();n.applyAggregateErrorsToEvent(i.exceptionFromError,s.stackParser,r,t,e,a)}}})},4794:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=n.GLOBAL_OBJ,a=i.document,o=i.navigator,s="Report a Bug",l="Cancel",u="Send Bug Report",c="Confirm",d="Report a Bug",p="[email protected]",f="Email",h="What's the bug? What did you expect?",m="Description",g="Your Name",_="Name",y="Thank you for your report!",S="(required)",E="Add a screenshot",b="Remove screenshot",T="Highlight",v="Hide",I="Remove",A=(e,t={includeReplay:!0})=>{if(!e.message)throw Error("Unable to submit feedback with empty message");let r=n.getClient();if(!r)throw Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&n.getCurrentScope().setTags(e.tags);let i=n.captureFeedback({source:"api",url:n.getLocationHref(),...e},t);return new Promise((e,t)=>{let n=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4),a=r.on("afterSendEvent",(r,o)=>{if(r.event_id===i)return(clearTimeout(n),a(),o?.statusCode&&o.statusCode>=200&&o.statusCode<300)?e(i):o?.statusCode===403?t("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})};function R(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(r,n)=>{t.onSubmitSuccess?.(r,n),e.onSubmitSuccess?.(r,n)},onSubmitError:r=>{t.onSubmitError?.(r),e.onSubmitError?.(r)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function O(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}let w="rgba(88, 74, 192, 1)",N={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackgroun
1d:w,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},C={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:w,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function P(e){return`
2  --foreground: ${e.foreground};
3  --background: ${e.background};
4  --accent-foreground: ${e.accentForeground};
5  --accent-background: ${e.accentBackground};
6  --success-color: ${e.successColor};
7  --error-color: ${e.errorColor};
8  --border: ${e.border};
9  --box-shadow: ${e.boxShadow};
10  --outline: ${e.outline};
11  --interactive-filter: ${e.interactiveFilter};
12  `}function k({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){let i=a.createElement("style");return i.textContent=`
13:host {
14  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
15  --font-size: 14px;
16  --z-index: 100000;
17
18  --page-margin: 16px;
19  --inset: auto 0 0 auto;
20  --actor-inset: var(--inset);
21
22  font-family: var(--font-family);
23  font-size: var(--font-size);
24
25  ${"system"!==e?`color-scheme: only ${e};`:""}
26
27  ${P("dark"===e?{...C,...t}:{...N,...r})}
28}
29
30${"system"===e?`
31@media (prefers-color-scheme: dark) {
32  :host {
33    color-scheme: only dark;
34
35    ${P({...C,...t})}
36  }
37}`:""}
38`,n&&i.setAttribute("nonce",n),i}var M,x,L,U,D,B,j,F={},$=[],G=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,H=Array.isArray;function W(e,t){for(var r in t)e[r]=t[r];return e}function z(e){var t=e.parentNode;t&&t.removeChild(e)}function q(e,t,r){var n,i,a,o={};for(a in t)"key"==a?n=t[a]:"ref"==a?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?M.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]
vendor: 4,872 bytes, line 38
38);return J(e,o,n,i,null)}function J(e,t,r,n,i){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++L:i,__i:-1,__u:0};return null==i&&null!=x.vnode&&x.vnode(a),a}function Y(e){return e.children}function V(e,t){this.props=e,this.context=t}function K(e,t){if(null==t)return e.__?K(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?K(e):null}function X(e){(!e.__d&&(e.__d=!0)&&U.push(e)&&!Q.__r++||D!==x.debounceRendering)&&((D=x.debounceRendering)||B)(Q)}function Q(){var e,t,r,n=[],i=[];for(U.sort(j);e=U.shift();)e.__d&&(r=U.length,t=function(e,t,r){var n,i=e.__v,a=i.__e,o=e.__P;if(o)return(n=W({},i)).__v=i.__v+1,x.vnode&&x.vnode(n),ei(o,n,i,e.__n,void 0!==o.ownerSVGElement,32&i.__u?[a]:null,t,null==a?K(i):a,!!(32&i.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=a&&function e(t){var r,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(n=t.__k[r])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return e(t)}}(n),n}(e,n,i)||t,0===r||U.length>r?(ea(n,t,i),i.length=n.length=0,t=void 0,U.sort(j)):t&&x.__c&&x.__c(t,$));t&&ea(n,t,i),Q.__r=0}function Z(e,t,r,n,i,a,o,s,l,u,c){var d,p,f,h,m,g=n&&n.__k||$,_=t.length;for(r.__d=l,function(e,t,r){var n,i,a,o,s,l=t.length,u=r.length,c=u,d=0;for(e.__k=[],n=0;n<l;n++)null!=(i=e.__k[n]=null==(i=t[n])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?J(null,i,null,null,i):H(i)?J(Y,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?J(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=function(e,t,r,n){var i=e.key,a=e.type,o=r-1,s=r+1,l=t[r];if(null===l||l&&i==l.key&&a===l.type)return r;if(n>+(null!=l&&0==(131072&l.__u)))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&i==l.key&&a===l.type)return o;o--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&i==l.key&&a===l.type)return s;s++}}return -1}(i,r,o=n+d,c),i.__i=s,a=null,-1!==s&&(c--,(a=r[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==o&&(s===o+1?d++:s>o?c>l-o?d+=s-o:d--:d=s<o&&s==o-1?s-o:0,s!==n+d&&(i.__u|=65536))):(a=r[n])&&null==a.key&&a.__e&&(a.__e==e.__d&&(e.__d=K(a)),es(a,a,!1),r[n]=null,c--);if(c)for(n=0;n<u;n++)null!=(a=r[n])&&0==(131072&a.__u)&&(a.__e==e.__d&&(e.__d=K(a)),es(a,a))}(r,t,g),l=r.__d,d=0;d<_;d++)null!=(f=r.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?F:g[f.__i]||F,f.__i=d,ei(e,f,p,i,a,o,s,l,u,c),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&eo(p.ref,null,f),c.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?l=function e(t,r,n){var i,a;if("function"==typeof t.type){for(i=t.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=t,r=e(i[a],r,n));return r}t.__e!=r&&(n.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;while(null!=r&&8===r.nodeType);return r}(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=l,r.__e=m}function ee(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||G.test(t)?r:r+"px"}function et(e,t,r,n,i){var a;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||ee(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||ee(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,a?en:er,a)):e.removeEventListener(t,a?en:er,a);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function er(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(x.event?x.event(e):e)}}function en(e){if(this.l)return this.l[e.type+!0](x.event?x.event(e):e)}function ei(e,t,r,n,i,a,o,s,l,u){var c,d,p,f,h,m,g,_,y,S,E,b,T,v,I,A=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),a=[s=t.__e=r.__e]),(c=x.__b)&&c(t);e:if("function"==typeof A)try{if(_=t.props,y=(c=A.contextType)&&n[c.__c],S=c?y?y.props.value:c.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(_,S):(t.__c=d=new V(_,S),d.constructor=A,d.render=el),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=S,d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=W({}
38,d.__s)),W(d.__s,A.getDerivedStateFromProps(_,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,S),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,S)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,S),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,m)})}if(d.context=S,d.props=_,d.__P=e,d.__e=!1,b=x.__r,T=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,b&&b(t),c=d.render(d.props,d.state,d.context),v=0;v<d._sb.length;v++)d.__h.push(d._sb[v]);d._sb=[]}else do d.__d=!1,b&&b(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++T<25);d.state=d.__s,null!=d.getChildContext&&(n=W(W({},n),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),Z(e,H(I=null!=c&&c.type===Y&&null==c.key?c.props.children:c)?I:[I],t,r,n,i,a,o,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=a?(t.__e=s,t.__u|=l?160:32,a[a.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),x.__e(e,t,r)}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,a,o,s,l){var u,c,d,p,f,h,m,g=r.props,_=t.props,y=t.type;if("svg"===y&&(i=!0),null!=a){for(u=0;u<a.length;u++)if((f=a[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,a[u]=null;break}}if(null==e){if(null===y)return document.createTextNode(_);e=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),a=null,s=!1}if(null===y)g===_||s&&e.data===_||(e.data=_);else{if(a=a&&M.call(e.childNodes),g=r.props||F,!s&&null!=a)for(g={},u=0;u<e.attributes.length;u++)g[(f=e.attributes[u]).name]=f.value;for(u in g)f=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=f:"key"===u||u in _||et(e,u,null,f,i));for(u in _)f=_[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?c=f:"value"==u?h=f:"checked"==u?m=f:"key"===u||s&&"function"!=typeof f||g[u]===f||et(e,u,f,g[u],i);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),Z(e,H(p)?p:[p],t,r,n,i&&"foreignObject"!==y,a,o,a?a[0]:r.__k&&K(r,0),s,l),null!=a)for(u=a.length;u--;)null!=a[u]&&z(a[u]);s||(u="value",void 0===h||h===e[u]&&("progress"!==y||h)&&("option"!==y||h===g[u])||et(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&et(e,u,m,g[u],!1))}return e}(r.__e,t,r,n,i,a,o,l,u);(c=x.diffed)&&c(t)}function ea(e,t,r){for(var n=0;n<r.length;n++)eo(r[n],r[++n],r[++n]);x.__c&&x.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){x.__e(e,t.__v)}})}function eo(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){x.__e(e,r)}}function es(e,t,r){var n,i;if(x.unmount&&x.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||eo(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){x.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&es(n[i],t,r||"function"!=typeof e.type);r||null==e.__e||z(e.__e),e.__=e.__e=e.__d=void 0}function el(e,t,r){return this.constructor(e,r)}M=$.slice,x={__e:function(e,t,r,n){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},L=0,V.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=W({},this.state),"function"==typeof e&&(e=e(W({},r),this.props)),e&&W(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),X(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),X(this))},V.prototype.render=Y,U=[],B="function"==typeof Promise?Promise.prototype.then.bind(Prom
38ise.resolve()):setTimeout,j=function(e,t){return e.__v.__b-t.__v.__b},Q.__r=0;var eu,ec,ed,ep,ef=0,eh=[],em=[],eg=x,e_=eg.__b,ey=eg.__r,eS=eg.diffed,eE=eg.__c,eb=eg.unmount,eT=eg.__;function ev(e,t){eg.__h&&eg.__h(ec,e,ef||t),ef=0;var r=ec.__H||(ec.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:em}),r.__[e]}function eI(e){return ef=1,eA(ex,e)}function eA(e,t,r){var n=ev(eu++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ex(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=ec,!ec.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,r);var o=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&n.__c.props===e)&&(!a||a.call(this,e,t,r))};ec.u=!0;var a=ec.shouldComponentUpdate,o=ec.componentWillUpdate;ec.componentWillUpdate=function(e,t,r){if(this.__e){var n=a;a=void 0,i(e,t,r),a=n}o&&o.call(this,e,t,r)},ec.shouldComponentUpdate=i}return n.__N||n.__}function eR(e,t){var r=ev(eu++,4);!eg.__s&&eM(r.__H,t)&&(r.__=e,r.i=t,ec.__h.push(r))}function eO(e,t){var r=ev(eu++,7);return eM(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function ew(e,t){return ef=8,eO(function(){return e},t)}function eN(){for(var e;e=eh.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eP),e.__H.__h.forEach(ek),e.__H.__h=[]}catch(t){e.__H.__h=[],eg.__e(t,e.__v)}}eg.__b=function(e){ec=null,e_&&e_(e)},eg.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),eT&&eT(e,t)},eg.__r=function(e){ey&&ey(e),eu=0;var t=(ec=e.__c).__H;t&&(ed===ec?(t.__h=[],ec.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=em,e.__N=e.i=void 0})):(t.__h.forEach(eP),t.__h.forEach(ek),t.__h=[],eu=0)),ed=ec},eg.diffed=function(e){eS&&eS(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==eh.push(t)&&ep===eg.requestAnimationFrame||((ep=eg.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),eC&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);eC&&(t=requestAnimationFrame(r))})(eN)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==em&&(e.__=e.__V),e.i=void 0,e.__V=em})),ed=ec=null},eg.__c=function(e,t){t.some(function(e){try{e.__h.forEach(eP),e.__h=e.__h.filter(function(e){return!e.__||ek(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],eg.__e(r,e.__v)}}),eE&&eE(e,t)},eg.unmount=function(e){eb&&eb(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{eP(e)}catch(e){t=e}}),r.__H=void 0,t&&eg.__e(t,r.__v))};var eC="function"==typeof requestAnimationFrame;function eP(e){var t=ec,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),ec=t}function ek(e){var t=ec;e.__c=e.__(),ec=t}function eM(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function ex(e,t){return"function"==typeof t?t(e):t}let eL=Object.defineProperty({__proto__:null,useCallback:ew,useContext:function(e){var t=ec.context[e.__c],r=ev(eu++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(ec)),t.props.value):e.__},useDebugValue:function(e,t){eg.useDebugValue&&eg.useDebugValue(t?t(e):e)},useEffect:function(e,t){var r=ev(eu++,3);!eg.__s&&eM(r.__H,t)&&(r.__=e,r.i=t,ec.__H.__h.push(r))},useErrorBoundary:function(e){var t=ev(eu++,10),r=eI();return t.__=e,ec.componentDidCatch||(ec.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:function(){var e=ev(eu++,11);if(!e.__){for(var t=ec.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__},useImperativeHandle:function(e,t,r){ef=6,eR(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))},useLayoutEffect:eR,useMemo:eO,useReducer:eA,useRef:function(e){return ef=5,eO(function(){return{current:e}},[])},useState:eI},Symbol.toStringTag,{value:"Module"});function eU({options:e}){let t=eO(()=>{let e,t;return{__html:(e=O(a.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=O(a.createElementNS("http://www.w3.org/2000/svg","path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"}),e.appendChild(t),e).outerHTML}},[]);return q("h2",{class:"dialog__header"},q("span",{class:"dialog__title"},e.formTitle),e.showBranding?q("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function eD(e,t){let r=e.get(t);return"string"==typeof r?r.trim():""}function eB({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:i,onSubmitSuccess:a,onSubmitError:o,showEmail
38:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:_,messageLabel:y,messagePlaceholder:S,nameLabel:E,namePlaceholder:b,submitButtonLabel:T,isRequiredLabel:v}=e,[I,A]=eI(!1),[R,O]=eI(null),[w,N]=eI(!1),C=u?.input,[P,k]=eI(null),M=ew(e=>{k(e),N(!1)},[]),x=ew(e=>{var t;let r,n=(r=[],(t={emailLabel:h,isEmailRequired:g,isNameRequired:_,messageLabel:y,nameLabel:E}).isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),e.message||r.push(t.messageLabel),r);return n.length>0?O(`Please enter in the following required fields: ${n.join(", ")}`):O(null),0===n.length},[h,g,_,y,E]);return q("form",{class:"form",onSubmit:ew(async e=>{A(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),r=await (u&&w?u.value():void 0),n={name:eD(t,"name"),email:eD(t,"email"),message:eD(t,"message"),attachments:r?[r]:void 0};if(!x(n))return;try{let e=await i({name:n.name,email:n.email,message:n.message,source:"widget",tags:c},{attachments:n.attachments});a(n,e)}catch(e){O(e),o(e)}}finally{A(!1)}},[u&&w,a,o])},C&&w?q(C,{onError:M}):null,q("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:I},q("div",{class:"form__top"},R?q("div",{class:"form__error-container"},R):null,l?q("label",{for:"name",class:"form__label"},q(ej,{label:E,isRequiredLabel:v,isRequired:_}),q("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:b,required:_,type:"text"})):q("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?q("label",{for:"email",class:"form__label"},q(ej,{label:h,isRequiredLabel:v,isRequired:g}),q("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):q("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),q("label",{for:"message",class:"form__label"},q(ej,{label:y,isRequiredLabel:v,isRequired:!0}),q("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:S,required:!0,rows:5})),C?q("label",{for:"screenshot",class:"form__label"},q("button",{class:"btn btn--default",disabled:I,type:"button",onClick:()=>{k(null),N(e=>!e)}},w?p:d),P?q("div",{class:"form__error-container"},P.message):null):null),q("div",{class:"btn-group"},q("button",{class:"btn btn--primary",disabled:I,type:"submit"},T),q("button",{class:"btn btn--default",disabled:I,type:"button",onClick:n},f))))}function ej({label:e,isRequired:t,isRequiredLabel:r}){return q("span",{class:"form__label__text"},e,t&&q("span",{class:"form__label__text--required"},r))}function eF({open:e,onFormSubmitted:t,...r}){let n=r.options,a=eO(()=>{let e,t,r,n,a,o,s,l;return{__html:(t=O((e=e=>i.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=O(e("g"),{clipPath:"url(#clip0_57_156)"}),n=O(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),a=O(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
3810.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"}),t.appendChild(r).append(a,n),o=e("defs"),s=O(e("clipPath"),{id:"clip0_57_156"}),l=O(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"}),s.appendChild(l),o.appendChild(s),t.appendChild(o).appendChild(s).appendChild(l),t).outerHTML}},[]),[o,s]=eI(null),l=ew(()=>{o&&(clearTimeout(o),s(null)),t()},[o]),u=ew((e,n)=>{r.onSubmitSuccess(e,n),s(setTimeout(()=>{t(),s(null)},5e3))},[t]);return q(Y,null,o?q("div",{class:"success__position",onClick:l},q("div",{class:"success__content"},n.successMessageText,q("span",{class:"success__icon",dangerouslySetInnerHTML:a}))):q("dialog",{class:"dialog",onClick:n.onFormClose,open:e},q("div",{class:"dialog__position"},q("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},q(eU,{options:n}),q(eB,{...r,onSubmitSuccess:u})))))}let e$=`
39.dialog {
40  position: fixed;
41  z-index: var(--z-index);
42  margin: 0;
43  inset: 0;
44
45  display: flex;
46  align-items: center;
47  justify-content: center;
48  padding: 0;
49  height: 100vh;
50  width: 100vw;
51
52  color: var(--dialog-color, var(--foreground));
53  fill: var(--dialog-color, var(--foreground));
54  line-height: 1.75em;
55
56  background-color: rgba(0, 0, 0, 0.05);
57  border: none;
58  inset: 0;
59  opacity: 1;
60  transition: opacity 0.2s ease-in-out;
61}
62
63.dialog__position {
64  position: fixed;
65  z-index: var(--z-index);
66  inset: var(--dialog-inset);
67  padding: var(--page-margin);
68  display: flex;
69  max-height: calc(100vh - (2 * var(--page-margin)));
70}
71@media (max-width: 600px) {
72  .dialog__position {
73    inset: var(--page-margin);
74    padding: 0;
75  }
76}
77
78.dialog__position:has(.editor) {
79  inset: var(--page-margin);
80  padding: 0;
81}
82
83.dialog:not([open]) {
84  opacity: 0;
85  pointer-events: none;
86  visibility: hidden;
87}
88.dialog:not([open]) .dialog__content {
89  transform: translate(0, -16px) scale(0.98);
90}
91
92.dialog__content {
93  display: flex;
94  flex-direction: column;
95  gap: 16px;
96  padding: var(--dialog-padding, 24px);
97  max-width: 100%;
98  width: 100%;
99  max-height: 100%;
100  overflow: auto;
101
102  background: var(--dialog-background, var(--background));
103  border-radius: var(--dialog-border-radius, 20px);
104  border: var(--dialog-border, var(--border));
105  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
106  transform: translate(0, 0) scale(1);
107  transition: transform 0.2s ease-in-out;
108}
109
110`,eG=`
111.dialog__header {
112  display: flex;
113  gap: 4px;
114  justify-content: space-between;
115  font-weight: var(--dialog-header-weight, 600);
116  margin: 0;
117}
118.dialog__title {
119  align-self: center;
120  width: var(--form-width, 272px);
121}
122
123@media (max-width: 600px) {
124  .dialog__title {
125    width: auto;
126  }
127}
128
129.dialog__position:has(.editor) .dialog__title {
130  width: auto;
131}
132
133
134.brand-link {
135  display: inline-flex;
136}
137.brand-link:focus-visible {
138  outline: var(--outline);
139}
140`,eH=`
141.form {
142  display: flex;
143  overflow: auto;
144  flex-direction: row;
145  gap: 16px;
146  flex: 1 0;
147}
148
149.form fieldset {
150  border: none;
151  margin: 0;
152  padding: 0;
153}
154
155.form__right {
156  flex: 0 0 auto;
157  display: flex;
158  overflow: auto;
159  flex-direction: column;
160  justify-content: space-between;
161  gap: 20px;
162  width: var(--form-width, 100%);
163}
164
165.dialog__position:has(.editor) .form__right {
166  width: var(--form-width, 272px);
167}
168
169.form__top {
170  display: flex;
171  flex-direction: column;
172  gap: 8px;
173}
174
175.form__error-container {
176  color: var(--error-color);
177  fill: var(--error-color);
178}
179
180.form__label {
181  display: flex;
182  flex-direction: column;
183  gap: 4px;
184  margin: 0px;
185}
186
187.form__label__text {
188  display: flex;
189  gap: 4px;
190  align-items: center;
191}
192
193.form__label__text--required {
194  font-size: 0.85em;
195}
196
197.form__input {
198  font-family: inherit;
199  line-height: inherit;
200  background: transparent;
201  box-sizing: border-box;
202  border: var(--input-border, var(--border));
203  border-radius: var(--input-border-radius, 6px);
204  color: var(--input-color, inherit);
205  fill: var(--input-color, inherit);
206  font-size: var(--input-font-size, inherit);
207  font-weight: var(--input-font-weight, 500);
208  padding: 6px 12px;
209}
210
211.form__input::placeholder {
212  opacity: 0.65;
213  color: var(--input-placeholder-color, inherit);
214  filter: var(--interactive-filter);
215}
216
217.form__input:focus-visible {
218  outline: var(--input-focus-outline, var(--outline));
219}
220
221.form__input--textarea {
222  font-family: inherit;
223  resize: vertical;
224}
225
226.error {
227  color: var(--error-color);
228  fill: var(--error-color);
229}
230`,eW=`
231.btn-group {
232  display: grid;
233  gap: 8px;
234}
235
236.btn {
237  line-height: inherit;
238  border: var(--button-border, var(--border));
239  border-radius: var(--button-border-radius, 6px);
240  cursor: pointer;
241  font-family: inherit;
242  font-size: var(--button-font-size, inherit);
243  font-weight: var(--button-font-weight, 600);
244  padding: var(--button-padding, 6px 16px);
245}
246.btn[disabled] {
247  opacity: 0.6;
248  pointer-events: none;
249}
250
251.btn--primary {
252  color: var(--button-primary-color, var(--accent-foreground));
253  fill: var(--button-primary-color, var(--accent-foreground));
254  background: var(--button-primary-background, var(--accent-background));
255  border: var(--button-primary-border, var(--border));
256  border-radius: var(--button-primary-border-radius, 6px);
257  font-weight: var(--button-primary-font-weight, 500);
258}
259.btn--primary:hover {
260  color: var(--button-primary-hover-color, var(--accent-foreground));
261  fill: var(--button-primary-hover-color, var(--accent-foreground));
262  background: var(--button-primary-hover-background, var(--accent-background));
263  filter: var(--interactive-filter);
264}
265.btn--primary:focus-visible {
266  background: var(--button-primary-hover-background, var(--accent-background));
267  filter: var(--interactive-filter);
268  outline: var(--button-primary-focus-outline, var(--outline));
269}
270
271.btn--default {
272  color: var(--button-color, var(--foreground));
273  fill: var(--button-color, var(--foreground));
274  background: var(--button-background, var(--background));
275  border: var(--button-border, var(--border));
276  border-radius: var(--button-border-radius, 6px);
277  font-weight: var(--button-font-weight, 500);
278}
279.btn--default:hover {
280  color: var(--button-color, var(--foreground));
281  fill: var(--button-color, var(--foreground));
282  background: var(--button-hover-background, var(--background));
283  filter: var(--interactive-filter);
284}
285.btn--default:focus-visible {
286  background: var(--button-hover-background, var(--background));
287  filter: var(--interactive-filter);
288  outline: var(--button-focus-outline, var(--outline));
289}
290`,ez=`
291.success__position {
292  position: fixed;
293  inset: var(--dialog-inset);
294  padding: var(--page-margin);
295  z-index: var(--z-index);
296}
297.success__content {
298  background: var(--success-background, var(--background));
299  border: var(--success-border, var(--border));
300  border-radius: var(--success-border-radius, 1.7em/50%);
301  box-shadow: var(--success-box-shadow, var(--box-shadow));
302  font-weight: var(--success-font-weight, 600);
303  color: var(--success-color);
304  fill: var(--success-color);
305  padding: 12px 24px;
306  line-height: 1.75em;
307
308  display: grid;
309  align-items: center;
310  grid-auto-flow: column;
311  gap: 6px;
312  cursor: default;
313}
314
315.success__icon {
316  display: flex;
317}
318`;function eq(e,t,r){if(!e)return;let n=e.getContext("2d",t);n&&r(e,n)}function eJ(e,t){eq(e,{alpha:!0},(e,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function eY(e,t,r){eq(e,{alpha:!0},(e,n)=>{r.length&&(n.fillStyle="rgba(0, 0, 0, 0.25)",n.fillRect(0,0,e.width,e.height)),r.forEach(e=>{switch(e.type){case"highlight":n.shadowColor="rgba(0, 0, 0, 0.7)",n.shadowBlur=50,n.fillStyle=t,n.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),n.clearRect(e.x,e.y,e.w,e.h);break;case"hide":n.fillStyle="rgb(0, 0, 0)",n.fillRect(e.x,e.y,e.w,e.h)}})})}t.buildFeedbackIntegration=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:r})=>({id:w="sentry-feedback",autoInject:N=!0,showBranding:C=!0,isEmailRequired:P=!1,isNameRequired:M=!1,showEmail:x=!0,showName:L=!0,enableScreenshot:U=!0,useSentryUser:D={email:"email",name:"username"},tags:B,styleNonce:j,scriptNonce:F,colorScheme:$="system",themeLight:G={},themeDark:H={},addScreenshotButtonLabel:W=E,cancelButtonLabel:z=l,confirmButtonLabel:q=c,emailLabel:J=f,emailPlaceholder:Y=p,formTitle:V=d,isRequiredLabel:K=S,messageLabel:X=m,messagePlaceholder:Q=h,nameLabel:Z=_,namePlaceholder:ee=g,removeScreenshotButtonLabel:et=b,submitButtonLabel:er=u,successMessageText:en=y,triggerLabel:ei=s,triggerAriaLabel:ea="",highlightToolText:eo=T,hideToolText:es=v,removeHighlightText:el=I,onFormOpen:eu,onFormClose:ec,onSubmitSuccess:ed,onSubmitError:ep,onFormSubmitted:ef}={})=>{let eh={id:w,autoInject:N,showBranding:C,isEmailRequired:P,isNameRequired:M,showEmail:x,showName:L,enableScreenshot:U,useSentryUser:D,tags:B,styleNonce:j,scriptNonce:F,colorScheme:$,themeDark:H,themeLight:G,triggerLabel:ei,triggerAriaLabel:ea,cancelButtonLabel:z,submitButtonLabel:er,confirmButtonLabel:q,formTitle:V,emailLabel:J,emailPlaceholder:Y,messageLabel:X,messagePlaceholder:Q,nameLabel:Z,namePlaceholder:ee,successMessageText:en,isRequiredLabel:K,addScreenshotButtonLabel:W,removeScreenshotButtonLabel:et,highlightToolText:eo,hideToolText:es,removeHighlightText:el,onFormClose:ec,onFormOpen:eu,onSubmitError:ep,onSubmitSuccess:ed,onFormSubmitted:ef},em=null,eg=null,e_=[],ey=e=>{if(!em){let t=a.createElement("div");t.id=String(e.id),a.body.appendChild(t),em=t.attachShadow({mode:"open"}),eg=k(e),em.appendChild(eg)}return em},eS=async i=>{let a,s,l=i.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(o.userAgent)||/Macintosh/i.test(o.userAgent)&&o.maxTouchPoints&&o.maxTouchPoints>1)&&!!isSecureContext;try{a=(t?t():await e("feedbackModalIntegration",F))(),n.addIntegration(a)}catch{throw Error("[Feedback] Missing feedback modal integration!")}try{let t=l?r?r():await e("feedbackScreenshotIntegration",F):void 0;t&&(s=t(),n.addIntegration(s))}catch{}let u=a.createDialog({options:{...i,onFormClose:()=>{u?.close(),i.onFormClose?.()},onFormSubmitted:()=>{u?.close(),i.onFormSubmitted?.()}},screenshotIntegration:s,sendFeedback:A,shadow:ey(i)});return u},eE=(e,t={})=>{let r=R(eh,t),n="string"==typeof e?a.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw Error("Unable to attach to target element");let i=null,o=async()=>{i||(i=await eS({...r,onFormSubmitted:()=>{i?.removeFromDom(),r.onFormSubmitted?.()}})),i.appendToDom(),i.open()};n.addEventListener("click",o);let s=()=>{e_=e_.filter(e=>e!==s),i?.removeFromDom(),i=null,n.removeEventListener("click",o)};return e_.push(s),s},eb=(e={})=>{let t=R(eh,e),r=ey(t),n=function({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){let o,l,u,c,d,p,f,h,m=a.createElement("button");if(m.type="button",m.className="widget__actor",m.ariaHidden="false",m.ariaLabel=t||e||s,m.appendChild((l=O((o=e=>i.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}
318),u=O(o("g"),{clipPath:"url(#clip0_57_80)"}),c=O(o("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"}),l.appendChild(u).appendChild(c),d=o("defs"),p=O(o("clipPath"),{id:"clip0_57_80"}),f=O(o("rect"),{width:"20",height:"20",fill:"white"}),p.appendChild(f),d.appendChild(p),l.appendChild(d).appendChild(p).appendChild(f),l)),e){let t=a.createElement("span");t.appendChild(a.createTextNode(e)),m.appendChild(t)}let g=((h=a.createElement("style")).textContent=`
319.widget__actor {
320  position: fixed;
321  z-index: var(--z-index);
322  margin: var(--page-margin);
323  inset: var(--actor-inset);
324
325  display: flex;
326  align-items: center;
327  gap: 8px;
328  padding: 16px;
329
330  font-family: inherit;
331  font-size: var(--font-size);
332  font-weight: 600;
333  line-height: 1.14em;
334  text-decoration: none;
335
336  background: var(--actor-background, var(--background));
337  border-radius: var(--actor-border-radius, 1.7em/50%);
338  border: var(--actor-border, var(--border));
339  box-shadow: var(--actor-box-shadow, var(--box-shadow));
340  color: var(--actor-color, var(--foreground));
341  fill: var(--actor-color, var(--foreground));
342  cursor: pointer;
343  opacity: 1;
344  transition: transform 0.2s ease-in-out;
345  transform: translate(0, 0) scale(1);
346}
347.widget__actor[aria-hidden="true"] {
348  opacity: 0;
349  pointer-events: none;
350  visibility: hidden;
351  transform: translate(0, 16px) scale(0.98);
352}
353
354.widget__actor:hover {
355  background: var(--actor-hover-background, var(--background));
356  filter: var(--interactive-filter);
357}
358
359.widget__actor svg {
360  width: 1.14em;
361  height: 1.14em;
362}
363
364@media (max-width: 600px) {
365  .widget__actor span {
366    display: none;
367  }
368}
369`,n&&h.setAttribute("nonce",n),h);return{el:m,appendToDom(){r.appendChild(g),r.appendChild(m)},removeFromDom(){m.remove(),g.remove()},show(){m.ariaHidden="false"},hide(){m.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:j});return eE(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){n.isBrowser()&&eh.autoInject&&("loading"===a.readyState?a.addEventListener("DOMContentLoaded",()=>eb().appendToDom()):eb().appendToDom())},attachTo:eE,createWidget(e={}){let t=eb(R(eh,e));return t.appendToDom(),t},createForm:async(e={})=>eS(R(eh,e)),setTheme(e){if(eh.colorScheme=e,em){let e=k(eh);eg?em.replaceChild(e,eg):em.prepend(e),eg=e}},remove(){em&&(em.parentElement?.remove(),em=null,eg=null),e_.forEach(e=>e()),e_=[]}}},t.feedbackModalIntegration=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:r,shadow:i})=>{var o;let s,l,u,c,d=e.useSentryUser,p=(s=n.getCurrentScope().getUser(),l=n.getIsolationScope().getUser(),u=n.getGlobalScope().getUser(),s&&Object.keys(s).length?s:l&&Object.keys(l).length?l:u),f=a.createElement("div"),h=(o=e.styleNonce,(c=a.createElement("style")).textContent=`
370:host {
371  --dialog-inset: var(--inset);
372}
373
374${e$}
375${eG}
376${eH}
377${eW}
378${ez}
379`,o&&c.setAttribute("nonce",o),c),m="",g={get el(){return f}
379,appendToDom(){i.contains(h)||i.contains(f)||(i.appendChild(h),i.appendChild(f))},removeFromDom(){f.remove(),h.remove(),a.body.style.overflow=m},open(){y(!0),e.onFormOpen?.(),n.getClient()?.emit("openFeedbackWidget"),m=a.body.style.overflow,a.body.style.overflow="hidden"},close(){y(!1),a.body.style.overflow=m}},_=t?.createInput({h:q,hooks:eL,dialog:g,options:e}),y=t=>{var n,i,a,o;n=q(eF,{options:e,screenshotInput:_,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(d&&p?.[d.name]||""),defaultEmail:String(d&&p?.[d.email]||""),onFormClose:()=>{y(!1),e.onFormClose?.()},onSubmit:r,onSubmitSuccess:(t,r)=>{y(!1),e.onSubmitSuccess?.(t,r)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),x.__&&x.__(n,f),i=f.__k,a=[],o=[],ei(f,n=f.__k=q(Y,null,[n]),i||F,F,void 0!==f.ownerSVGElement,i?null:f.firstChild?M.call(f.childNodes):null,a,i?i.__e:f.firstChild,!1,o),n.__d=void 0,ea(a,n,o)};return g}}),t.feedbackScreenshotIntegration=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{let s=a.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:r,dialog:n,options:s}){var l;let u,c,d,p=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:r,onAfterScreenshot:n,onError:s}){let l=function(){let[t,r]=e.useState(i.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{r(i.devicePixelRatio)},t=matchMedia(`(resolution: ${i.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await o.mediaDevices.getDisplayMedia({video:{width:i.innerWidth*l,height:i.innerHeight*l},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),s=a.createElement("video");await new Promise((t,n)=>{s.srcObject=e,s.onloadedmetadata=()=>{r(s,l),e.getTracks().forEach(e=>e.stop()),t()},s.play().catch(n)}),n()})().catch(s)},[])}}({hooks:t}),f=function({h:e}){return function({action:t,setAction:r,options:n}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${"highlight"===t?"editor__tool--active":""}`,onClick:()=>{r("highlight"===t?"":"highlight")}},n.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{r("hide"===t?"":"hide")}},n.hideToolText)))}}({h:e}),h=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),m={__html:(l=s.styleNonce,u=a.createElement("style"),c="#1A141F",d="#302735",u.textContent=`
380.editor {
381  display: flex;
382  flex-grow: 1;
383  flex-direction: column;
384}
385
386.editor__image-container {
387  justify-items: center;
388  padding: 15px;
389  position: relative;
390  height: 100%;
391  border-radius: var(--menu-border-radius, 6px);
392
393  background-color: ${c};
394  background-image: repeating-linear-gradient(
395      -145deg,
396      transparent,
397      transparent 8px,
398      ${c} 8px,
399      ${c} 11px
400    ),
401    repeating-linear-gradient(
402      -45deg,
403      transparent,
404      transparent 15px,
405      ${d} 15px,
406      ${d} 16px
407    );
408}
409
410.editor__canvas-container {
411  width: 100%;
412  height: 100%;
413  position: relative;
414  display: flex;
415  align-items: center;
416  justify-content: center;
417}
418
419.editor__canvas-container > * {
420  object-fit: contain;
421  position: absolute;
422}
423
424.editor__tool-container {
425  padding-top: 8px;
426  display: flex;
427  justify-content: center;
428}
429
430.editor__tool-bar {
431  display: flex;
432  gap: 8px;
433}
434
435.editor__tool {
436  display: flex;
437  padding: 8px 12px;
438  justify-content: center;
439  align-items: center;
440  border: var(--button-border, var(--border));
441  border-radius: var(--button-border-radius, 6px);
442  background: var(--button-background, var(--background));
443  color: var(--button-color, var(--foreground));
444}
445
446.editor__tool--active {
447  background: var(--button-primary-background, var(--accent-background));
448  color: var(--button-primary-color, var(--accent-foreground));
449}
450
451.editor__rect {
452  position: absolute;
453  z-index: 2;
454}
455
456.editor__rect button {
457  opacity: 0;
458  position: absolute;
459  top: -12px;
460  right: -12px;
461  cursor: pointer;
462  padding: 0;
463  z-index: 3;
464  border: none;
465  background: none;
466}
467
468.editor__rect:hover button {
469  opacity: 1;
470}
471`,l&&u.setAttribute("nonce",l),u).innerText},g=n.el.style,_=({screenshot:n})=>{let[o,l]=t.useState("highlight"),[u,c]=t.useState([]),d=t.useRef(null),p=t.useRef(null),g=t.useRef(null),_=t.useRef(null),[y,S]=t.useState(1),E=t.useMemo(()=>{let e=a.getElementById(s.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[s.id]);t.useLayoutEffect(()=>{let e=()=>{let t=d.current;t&&(eq(n.canvas,{alpha:!1},e=>
471{S(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),i.addEventListener("resize",e),()=>{i.removeEventListener("resize",e)}},[n]);let b=t.useCallback((e,t)=>{eq(e,{alpha:!0},(e,r)=>{r.scale(t,t),e.width=n.canvas.width,e.height=n.canvas.height})},[n]);t.useEffect(()=>{b(p.current,n.dpi),eJ(p.current,n.canvas)},[n]),t.useEffect(()=>{b(g.current,n.dpi),eq(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),eY(g.current,E,u)},[u,E]),t.useEffect(()=>{b(r,n.dpi),eJ(r,n.canvas),eq(a.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(n.dpi,n.dpi),e.width=n.canvas.width,e.height=n.canvas.height,eY(e,E,u),eJ(r,e)})},[u,n,E]);let T=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),c(t=>{let r=[...t];return r.splice(e,1),r})},[]),v={width:`${n.canvas.width*y}px`,height:`${n.canvas.height*y}px`},I=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:m}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:d},e("canvas",{ref:p,id:"background",style:v}),e("canvas",{ref:g,id:"foreground",style:v}),e("div",{ref:_,onMouseDown:e=>{if(!o||!_.current)return;let t=_.current.getBoundingClientRect(),r={type:o,x:e.offsetX/y,y:e.offsetY/y},n=(e,r)=>{let n=(r.clientX-t.x)/y,i=(r.clientY-t.y)/y;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,i),w:Math.abs(n-e.x),h:Math.abs(i-e.y)}},i=e=>{eq(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),eY(g.current,E,[...u,n(r,e)])},s=e=>{let t=n(r,e);t.w*y>=1&&t.h*y>=1&&c(e=>[...e,t]),a.removeEventListener("mousemove",i),a.removeEventListener("mouseup",s)};a.addEventListener("mousemove",i),a.addEventListener("mouseup",s)},style:v},u.map((t,r)=>e("div",{key:r,class:"editor__rect",style:{top:`${t.y*y}px`,left:`${t.x*y}px`,width:`${t.w*y}px`,height:`${t.h*y}px`}},e("button",{"aria-label":s.removeHighlightText,onClick:T(r),onMouseDown:I,onMouseUp:I,type:"button"},e(h,null))))))),e(f,{options:s,action:o,setAction:l}))};return function({onError:n}){let[i,o]=t.useState();return(p({onBeforeScreenshot:t.useCallback(()=>{g.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{eq(a.createElement("canvas"),{alpha:!1},(r,n)=>{n.scale(t,t),r.width=e.videoWidth,r.height=e.videoHeight,n.drawImage(e,0,0,r.width,r.height),o({canvas:r,dpi:t})}),r.width=e.videoWidth,r.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{g.display="block"},[]),onError:t.useCallback(e=>{g.display="block",n(e)},[])}),i)?e(_,{screenshot:i}):e("div",null)}}({h:e,hooks:t,outputBuffer:s,dialog:r,options:n}),value:async()=>{let e=await new Promise(e=>{s.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),t.getFeedback=function(){let e=n.getClient();return e?.getIntegrationByName("Feedback")},t.sendFeedback=A},4887:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(84831);t.contentUnionToMessages=function e(t,r="user"){return"string"==typeof t?[{role:r,content:t}]:Array.isArray(t)?t.flatMap(t=>e(t,r)):"object"==typeof t&&t?"role"in t&&"string"==typeof t.role?[t]:"parts"in t?[{...t,role:r}]:[{role:r,content:t}]:[]},t.isStreamingMethod=function(e){return e.includes("Stream")},t.shouldInstrument=function(e){if(n.GOOGLE_GENAI_INSTRUMENTED_METHODS.includes(e))return!0;let t=e.split(".").pop();return n.GOOGLE_GENAI_INSTRUMENTED_METHODS.includes(t)}},4974:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(42915),i=r(38458),a=r(79700),o=r(85699),s=r(38537),l=r(89291),u=r(24099),c=r(64995),d=r(113),p=r(23034),f=r(89526),h=r(20587),m=r(78972),g=r(28732),_=r(20041),y=r(4008),S=r(36797),E=r(78114),b=r(97284),T=r(39206),v=r(61477),I=r(85684),A=r(80840),R=r(36862),O=r(60902),w=r(4794),N=r(16778),C=r(82491),P=r(43637),k=r(73965),M=r(11848),x=r(7501),L=r(59658),U=r(67811),D=r(73937),B=r(30775),j=r(86313),F=r(8279),$=r(49510),G=r(51715),H=r(94550);t.feedbackAsyncIntegration=n.feedbackAsyncIntegration,t.feedbackIntegration=i.feedbackSyncIntegration,t.feedbackSyncIntegration=i.feedbackSyncIntegration,t.MULTIPLEXED_TRANSPORT_EXTRA_KEY=a.MULTIPLEXED_TRANSPORT_EXTRA_KEY,t.
471SDK_VERSION=a.SDK_VERSION,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=a.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=a.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.Scope=a.Scope,t.addBreadcrumb=a.addBreadcrumb,t.addEventProcessor=a.addEventProcessor,t.addIntegration=a.addIntegration,t.captureConsoleIntegration=a.captureConsoleIntegration,t.captureEvent=a.captureEvent,t.captureException=a.captureException,t.captureFeedback=a.captureFeedback,t.captureMessage=a.captureMessage,t.captureSession=a.captureSession,t.close=a.close,t.consoleLoggingIntegration=a.consoleLoggingIntegration,t.continueTrace=a.continueTrace,t.createConsolaReporter=a.createConsolaReporter,t.createLangChainCallbackHandler=a.createLangChainCallbackHandler,t.createTransport=a.createTransport,t.dedupeIntegration=a.dedupeIntegration,t.endSession=a.endSession,t.eventFiltersIntegration=a.eventFiltersIntegration,t.extraErrorDataIntegration=a.extraErrorDataIntegration,t.featureFlagsIntegration=a.featureFlagsIntegration,t.flush=a.flush,t.functionToStringIntegration=a.functionToStringIntegration,t.getActiveSpan=a.getActiveSpan,t.getClient=a.getClient,t.getCurrentScope=a.getCurrentScope,t.getGlobalScope=a.getGlobalScope,t.getIsolationScope=a.getIsolationScope,t.getRootSpan=a.getRootSpan,t.getSpanDescendants=a.getSpanDescendants,t.getSpanStatusFromHttpCode=a.getSpanStatusFromHttpCode,t.getTraceData=a.getTraceData,t.inboundFiltersIntegration=a.inboundFiltersIntegration,t.instrumentAnthropicAiClient=a.instrumentAnthropicAiClient,t.instrumentGoogleGenAIClient=a.instrumentGoogleGenAIClient,t.instrumentLangGraph=a.instrumentLangGraph,t.instrumentOpenAiClient=a.instrumentOpenAiClient,t.instrumentSupabaseClient=a.instrumentSupabaseClient,t.isEnabled=a.isEnabled,t.isInitialized=a.isInitialized,t.lastEventId=a.lastEventId,t.logger=a.logger,t.makeMultiplexedTransport=a.makeMultiplexedTransport,t.metrics=a.metrics,t.moduleMetadataIntegration=a.moduleMetadataIntegration,t.parameterize=a.parameterize,t.registerSpanErrorInstrumentation=a.registerSpanErrorInstrumentation,t.rewriteFramesIntegration=a.rewriteFramesIntegration,t.setContext=a.setContext,t.setCurrentClient=a.setCurrentClient,t.setExtra=a.setExtra,t.setExtras=a.setExtras,t.setHttpStatus=a.setHttpStatus,t.setMeasurement=a.setMeasurement,t.setTag=a.setTag,t.setTags=a.setTags,t.setUser=a.setUser,t.spanToBaggageHeader=a.spanToBaggageHeader,t.spanToJSON=a.spanToJSON,t.spanToTraceHeader=a.spanToTraceHeader,t.startInactiveSpan=a.startInactiveSpan,t.startNewTrace=a.startNewTrace,t.startSession=a.startSession,t.startSpan=a.startSpan,t.startSpanManual=a.startSpanManual,t.supabaseIntegration=a.supabaseIntegration,t.suppressTracing=a.suppressTracing,t.thirdPartyErrorFilterIntegration=a.thirdPartyErrorFilterIntegration,t.updateSpanName=a.updateSpanName,t.withActiveSpan=a.withActiveSpan,t.withIsolationScope=a.withIsolationScope,t.withScope=a.withScope,t.zodErrorsIntegration=a.zodErrorsIntegration,t.WINDOW=o.WINDOW,t.BrowserClient=s.BrowserClient,t.makeFetchTransport=l.makeFetchTransport,t.uiProfiler=u.uiProfiler,t.chromeStackLineParser=c.chromeStackLineParser,t.defaultStackLineParsers=c.defaultStackLineParsers,t.defaultStackParser=c.defaultStackParser,t.geckoStackLineParser=c.geckoStackLineParser,t.opera10StackLineParser=c.opera10StackLineParser,t.opera11StackLineParser=c.opera11StackLineParser,t.winjsStackLineParser=c.winjsStackLineParser,t.eventFromException=d.eventFromException,t.eventFromMessage=d.eventFromMessage,t.exceptionFromError=d.exceptionFromError,t.createUserFeedbackEnvelope=p.createUserFeedbackEnvelope,t.forceLoad=f.forceLoad,t.getDefaultIntegrations=f.getDefaultIntegrations,t.init=f.init,t.onLoad=f.onLoad,t.showReportDialog=h.showReportDialog,t.breadcrumbsIntegration=m.breadcrumbsIntegration,t.globalHandlersIntegration=g.globalHandlersIntegration,t.httpContextIntegration=_.httpContextIntegration,t.linkedErrorsIntegration=y.linkedErrorsIntegration,t.browserApiErrorsIntegration=S.browserApiErrorsIntegration,t.browserSessionIntegration=E.browserSessionIntegration,t.lazyLoadIntegration=b.lazyLoadIntegration,t.reportingObserverIntegration=T.reportingObserverIntegration,t.httpClientIntegration=v.httpClientIntegration,t.contextLinesIntegration=I.contextLinesIntegration,t.graphqlClientIntegration=A.graphqlClientIntegration,t.getReplay=R.getReplay,t.replayIntegration=R.replayIntegration,t.replayCanvasIntegration=O.replayCanvasIntegration,t.getFeedback=w.getFeedback,t.sendFeedback=w.sendFeedback,t.defaultRequestInstrumentationOptions=N.defaultRequestInstrumentationOptions,t.instrumentOutgoingRequests=N.instrumentOutgoingRequests,t.browserTracingIntegration=C.browserTracingIntegration,t.startBrowserTracingNavigationSpan=C.startBrowserTracingNavigationSpan,t.startBrowserTracingPageLoadSpan=C.startBrowserTracingPageLoadSpan,t.reportPageLoaded=P.reportPageLoaded,t.setActiveSpanInBrowser=k.setActiveSpanInBrowser,t.makeBrowserOfflineTransport=M.makeBrowserOfflineTransport,t.browserProfilingIntegration=x.browserProfilingIntegration,t.spotlightBrowserIntegration=L.spotlightBrowserIntegration,t.cultureContextIntegration=U.cultureContextIntegration,t.buildLaunchDarklyFlagUsedHandler=D.buildLaunchDarklyFlagUsedHandler,t.launchDarklyIntegration=D.launchDarklyIntegration,t.OpenFeatureIntegrationHook=B.OpenFeatureIntegrationHook,t.openFeatureIntegration=B.openFeatureIntegration,t.unleashIntegration=j.unleashIntegration,t.growthbookIntegration=F.growthbookIntegration,t.statsigIntegration=$.statsigIntegration,t.diagnoseSdkConnectivity=G.diagnoseSdkConnectivity,t.registerWebWorker=H.registerWebWorker,t.webWorkerIntegration=H.webWorkerIntegration},5309:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.replaceExports=function(e,t,r){let n=e[t];if("function"==typeof n){try{e[t]=r}catch(n){Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0,enumerable:!0})}if(e.default===n)try{e.default=r}catch(t){Object.defineProperty(e,"default",{value:r,writable:!0,configurable:!0,enumerable:!0})}}}},5467:(e,t,r)=>{"use strict";
471Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(14343),i=r(33475),a=({children:e,type:t})=>{let[r,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(t);return document.body.appendChild(e),a(e),()=>{document.body.removeChild(e)}},[t]),r?(0,i.createPortal)(e,r):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5490:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.SDK_VERSION="10.42.0"},5756:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(55639),i=r(10419),a=r(25928),o=r(75171),s=r(13542),l=r(42426),u=r(91057),c=r(21616),d=r(31267),p=r(16964),f=r(38819);t.addClsInstrumentationHandler=n.addClsInstrumentationHandler,t.addInpInstrumentationHandler=n.addInpInstrumentationHandler,t.addLcpInstrumentationHandler=n.addLcpInstrumentationHandler,t.addPerformanceInstrumentationHandler=n.addPerformanceInstrumentationHandler,t.addTtfbInstrumentationHandler=n.addTtfbInstrumentationHandler,t.addPerformanceEntries=i.addPerformanceEntries,t.startTrackingInteractions=i.startTrackingInteractions,t.startTrackingLongAnimationFrames=i.startTrackingLongAnimationFrames,t.startTrackingLongTasks=i.startTrackingLongTasks,t.startTrackingWebVitals=i.startTrackingWebVitals,t.startTrackingElementTiming=a.startTrackingElementTiming,t.extractNetworkProtocol=o.extractNetworkProtocol,t.addClickKeypressInstrumentationHandler=s.addClickKeypressInstrumentationHandler,t.addHistoryInstrumentationHandler=l.addHistoryInstrumentationHandler,t.clearCachedImplementation=u.clearCachedImplementation,t.fetch=u.fetch,t.getNativeImplementation=u.getNativeImplementation,t.setTimeout=u.setTimeout,t.SENTRY_XHR_DATA_KEY=c.SENTRY_XHR_DATA_KEY,t.addXhrInstrumentationHandler=c.addXhrInstrumentationHandler,t.getBodyString=d.getBodyString,t.getFetchRequestArgBody=d.getFetchRequestArgBody,t.parseXhrResponseHeaders=d.parseXhrResponseHeaders,t.serializeFormData=d.serializeFormData,t.resourceTimingToSpanAttributes=p.resourceTimingToSpanAttributes,t.registerInpInteractionListener=f.registerInpInteractionListener,t.startTrackingINP=f.startTrackingINP},6386:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(99056),i=r(6935),a=r(98473),o=r(76953);function s(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function l(e){let t=n.getSentryCarrier(o.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let u={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};t.addItemToEnvelope=function(e,t){let[r,n]=e;return[r,[...n,t]]},t.createAttachmentEnvelopeItem=function(e){let t="string"==typeof e.data?l(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]},t.createEnvelope=function(e,t=[]){return[e,t]},t.createEventEnvelopeHeaders=function(e,t,r,n){let a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:i.dsnToString(n)},...a&&{trace:a}}},t.createSpanEnvelopeItem=function(e){return[{type:"span"},e]},t.envelopeContainsItemType=function(e,t){return s(e,(e,r)=>t.includes(r))},t.envelopeItemTypeToDataCategory=function(e){return u[e]},t.forEachEnvelopeItem=s,t.getSdkMetadataForEnvelopeHeader=function(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}},t.parseEnvelope=function(e){let t="string"==typeof e?l(e):e;function r(e){let r=t.subarray(0,e);return t=t.subarray(e+1),r}function i(){var e;let i,a=t.indexOf(10);
471return a<0&&(a=t.length),JSON.parse((e=r(a),(i=n.getSentryCarrier(o.GLOBAL_OBJ)).decodePolyfill?i.decodePolyfill(e):new TextDecoder().decode(e)))}let a=i(),s=[];for(;t.length;){let e=i(),t="number"==typeof e.length?e.length:void 0;s.push([e,t?r(t):i()])}return[a,s]},t.serializeEnvelope=function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[l(n),e]:n.push("string"==typeof e?l(e):e)}for(let e of r){let[t,r]=e;if(i(`
472${JSON.stringify(t)}
473`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify(a.normalize(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}},6406:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(404),a=r(41291);t._getTraceInfoFromScope=function(e,t){return t?n.withScope(t,()=>{let r=a.getActiveSpan(),o=r?a.spanToTraceContext(r):n.getTraceContextFromScope(t);return[r?i.getDynamicSamplingContextFromSpan(r):i.getDynamicSamplingContextFromScope(e,t),o]}):[void 0,void 0]}},6520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function i(e){return["async","defer","noModule"].includes(e)}function a(e,t){for(let[a,o]of Object.entries(t)){if(!t.hasOwnProperty(a)||n.includes(a)||void 0===o)continue;let s=r[a]||a.toLowerCase();"SCRIPT"===e.tagName&&i(s)?e[s]=!!o:e.setAttribute(s,String(o)),(!1===o||"SCRIPT"===e.tagName&&i(s)&&(!o||"false"===o))&&(e.setAttribute(s,""),e.removeAttribute(s))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6935:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=/^o(\d+)\./,o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(e){let t=o.exec(e);if(!t)return void i.consoleSandbox(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,a="",s="",u="",c=""]=t.slice(1),d="",p=c,f=p.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),p=f.pop()),p){let e=p.match(/^\d+/);e&&(p=e[0])}return l({host:s,pass:a,path:d,projectId:p,port:u,protocol:r,publicKey:n})}function l(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function u(e){let t=e.match(a);return t?.[1]}t.dsnFromString=s,t.dsnToString=function(e,t=!1){let{host:r,path:n,pass:i,port:a,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n?`${n}/`:n}${o}`},t.extractOrgIdFromClient=function(e){let t,r=e.getOptions(),{host:n}=e.getDsn()||{};return r.orgId?t=String(r.orgId):n&&(t=u(n)),t},t.extractOrgIdFromDsnHost=u,t.makeDsn=function(e){let t="string"==typeof e?s(e):l(e);if(t&&function(e){if(!n.DEBUG_BUILD)return!0;let{port:t,projectId:r,protocol:a}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"!==a&&"https"!==a?(i.debug.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):!(t&&isNaN(parseInt(t,10)))||(i.debug.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.debug.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}},6992:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(29052),i=r(81386);function a(e){let t=(0,i.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},7042:(e,t,r)=>{"use strict";
473Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(75591)._(r(14343)),i=r(71214),a=n.default.createContext(i.imageConfigDefault)},7402:(e,t,r)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return u}});let n=r(71139),i=r(55258),a=r(84531),o=r(50635),s=r(67400),l=r(40126);function u(e,t,r,u,c,d){let p,f=!1,h=!1,m=(0,l.parseRelativeUrl)(e),g=(0,a.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(m.pathname),d).pathname),_=r=>{let l=(0,n.getPathMatch)(r.source+"",{removeUnnamedParams:!0,strict:!0})(m.pathname);if((r.has||r.missing)&&l){let e=(0,i.matchHas)({headers:{host:document.location.hostname,"user-agent":navigator.userAgent},cookies:document.cookie.split("; ").reduce((e,t)=>{let[r,...n]=t.split("=");return e[r]=n.join("="),e},{})},m.query,r.has,r.missing);e?Object.assign(l,e):l=!1}if(l){if(!r.destination)return h=!0,!0;let n=(0,i.prepareDestination)({appendParamsToQuery:!0,destination:r.destination,params:l,query:u});if(m=n.parsedDestination,e=n.newUrl,Object.assign(u,n.parsedDestination.query),g=(0,a.removeTrailingSlash)((0,o.normalizeLocalePath)((0,s.removeBasePath)(e),d).pathname),t.includes(g))return f=!0,p=g,!0;if((p=c(g))!==e&&t.includes(p))return f=!0,!0}},y=!1;for(let e=0;e<r.beforeFiles.length;e++)_(r.beforeFiles[e]);if(!(f=t.includes(g))){if(!y){for(let e=0;e<r.afterFiles.length;e++)if(_(r.afterFiles[e])){y=!0;break}}if(y||(p=c(g),y=f=t.includes(p)),!y){for(let e=0;e<r.fallback.length;e++)if(_(r.fallback[e])){y=!0;break}}}return{asPath:e,parsedAs:m,matchedPage:f,resolvedHref:p,externalDest:h}}},7501:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(85699),o=r(9343),s=r(97626),l=r(65262);t.browserProfilingIntegration=n.defineIntegration(()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),r=new s.UIProfiler;if(l.hasLegacyProfiling(t)||t.profileLifecycle||(t.profileLifecycle="manual"),l.hasLegacyProfiling(t)&&!t.profilesSampleRate){i.DEBUG_BUILD&&n.debug.log("[Profiling] Profiling disabled, no profiling options found.");return}let u=n.getActiveSpan(),c=u&&n.getRootSpan(u);if(l.hasLegacyProfiling(t)&&void 0!==t.profileSessionSampleRate&&i.DEBUG_BUILD&&n.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),l.hasLegacyProfiling(t))c&&l.isAutomatedPageLoadSpan(c)&&l.shouldProfileSpanLegacy(c)&&o.startProfileForSpan(c),e.on("spanStart",e=>{e===n.getRootSpan(e)&&l.shouldProfileSpanLegacy(e)&&o.startProfileForSpan(e)}),e.on("beforeEnvelope",e=>{if(!l.getActiveProfilesCount())return;let t=l.findProfiledTransactionsFromEnvelope(e);if(!t.length)return;let r=[];for(let e of t){let t=e?.contexts,a=t?.profile?.profile_id,o=t?.profile?.start_timestamp;if("string"!=typeof a||!a){i.DEBUG_BUILD&&n.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let s=l.takeProfileFromGlobalCache(a);if(!s){i.DEBUG_BUILD&&n.debug.log(`[Profiling] Could not retrieve profile for span: ${a}`);continue}let u=l.createProfilingEvent(a,o,s,e);u&&r.push(u)}l.addProfilesToEnvelope(e,r)});else{let o=t.profileLifecycle;if(e.on("startUIProfiler",()=>r.start()),e.on("stopUIProfiler",()=>r.stop()),"manual"===o)r.initialize(e);else if("trace"===o){if(!n.hasSpansEnabled(t)){i.DEBUG_BUILD&&n.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}r.initialize(e),c&&r.notifyRootSpanActive(c),a.WINDOW.setTimeout(()=>{let e=n.getActiveSpan(),t=e&&n.getRootSpan(e);t&&r.notifyRootSpanActive(t)},0)}}},processEvent:e=>l.attachProfiledThreadToEvent(e)}))},7571:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=new Map,n=new Set(["ai.generateText","ai.streamText","ai.generateObject","ai.streamObject","ai.embed","ai.embedMany","ai.rerank"]),i=new Set(["ai.generateText.doGenerate","ai.streamText.doStream","ai.generateObject.doGenerate","ai.streamObject.doStream"]),a=new Set(["ai.embed.doEmbed","ai.embedMany.doEmbed"]),o=new Set(["ai.rerank.doRerank"]);t.EMBEDDINGS_OPS=a,t.GENERATE_CONTENT_OPS=i,t.INVOKE_AGENT_OPS=n,t.RERANK_OPS=o,t.toolCallSpanMap=r},7990:(e,t,r)=>{"use strict";let n,i,a,o,s,l,u,c,d,p,f,h;
473Object.defineProperty(t,"__esModule",{value:!0});let m=r(66476);Object.defineProperty(t,"__esModule",{value:!0});var g={emitter:function(){return H},hydrate:function(){return eh},initialize:function(){return J},router:function(){return n},version:function(){return G}};for(var _ in g)Object.defineProperty(t,_,{enumerable:!0,get:g[_]});let y=r(75591),S=r(15383);r(98119);let E=y._(r(14343)),b=y._(r(19766)),T=r(45955),v=y._(r(26)),I=r(97959),A=r(69069),R=r(66288),O=r(33045),w=r(24157),N=r(5467),C=y._(r(28358)),P=y._(r(31247)),k=r(9445),M=r(26623),x=r(25116),L=r(7042),U=r(67400),D=r(80312),B=r(62785),j=r(47150),F=r(57692),$=r(39376);r(41612),r(73808);let G="16.3.4",H=(0,v.default)(),W=e=>[].slice.call(e),z=!1;class q extends E.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(i.isFallback||i.nextExport&&((0,R.isDynamicRoute)(n.pathname)||location.search||1)||i.props&&i.props.__N_SSG&&(location.search||1))&&n.replace(n.pathname+"?"+String((0,O.assign)((0,O.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!i.isFallback&&!z}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function J(e={}){i=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=i,h=i.defaultLocale;let t=i.assetPrefix||"";if(self.__next_set_public_path__(`${t}/_next/`),a=(0,w.getURL)(),(0,D.hasBasePath)(a)&&(a=(0,U.removeBasePath)(a)),i.scriptLoader){let{initScriptLoader:e}=r(15917);e(i.scriptLoader)}o=new P.default(i.buildId,t);let u=([e,t])=>o.routeLoader.onEntrypoint(e,t);return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>u(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=u,(l=(0,C.default)()).getIsSsr=()=>n.isSsr,s=document.getElementById("__next"),{assetPrefix:t}}function Y(e,t){return(0,S.jsx)(e,{...t})}function V({children:e}){let t=E.default.useMemo(()=>(0,j.adaptForAppRouterInstance)(n),[]);return(0,S.jsx)(q,{fn:e=>X({App:d,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,S.jsx)(B.AppRouterContext.Provider,{value:t,children:(0,S.jsx)(F.SearchParamsContext.Provider,{value:(0,j.adaptForSearchParams)(n),children:(0,S.jsx)(j.PathnameContextProviderAdapter,{router:n,isAutoExport:self.__NEXT_DATA__.autoExport??!1,children:(0,S.jsx)(F.PathParamsContext.Provider,{value:(0,j.adaptForPathParams)(n),children:(0,S.jsx)(I.RouterContext.Provider,{value:(0,M.makePublicRouterInstance)(n),children:(0,S.jsx)(T.HeadManagerContext.Provider,{value:l,children:(0,S.jsx)(L.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/aistudio/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},children:e})})})})})})})})}let K=e=>t=>{let r={...t,Component:f,err:i.err,router:n};return(0,S.jsx)(V,{children:Y(e,r)})};function X(e){let{App:t,err:s}=e;return console.error(s),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),o.loadPage("/_error").then(({page:n,styleSheets:i})=>u?.Component===n?Promise.resolve().then(()=>m._(r(14338))).then(n=>Promise.resolve().then(()=>m._(r(85783))).then(r=>(e.App=t=r.default,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:n,styleSheets:i}).then(({ErrorComponent:r,styleSheets:o})=>{let l=K(t),u={Component:r,AppTree:l,router:n,ctx:{err:s,pathname:i.page,query:i.query,asPath:a,AppTree:l}};return Promise.resolve(e.props?.err?e.props:(0,w.loadGetInitialProps)(t,u)).then(t=>ep({...e,err:s,Component:r,styleSheets:o,props:t}))})}function Q({callback:e}){return E.default.useLayoutEffect(()=>e(),[e]),null}let Z="beforeRender",ee="afterRender",et="afterHydrate",er="routeChange",en="Next.js-hydration",ei="Next.js-route-change-to-render",ea="Next.js-render",eo=null,es=!0;
473function el(){[Z,et,ee,er].forEach(e=>performance.clearMarks(e))}function eu(){w.ST&&(performance.mark(et),performance.getEntriesByName(Z,"mark").length&&(performance.measure("Next.js-before-hydration","navigationStart",Z),performance.measure(en,Z,et)),p&&performance.getEntriesByName(en).forEach(p),el())}function ec(){if(!w.ST)return;performance.mark(ee);let e=performance.getEntriesByName(er,"mark");e.length&&(performance.getEntriesByName(Z,"mark").length&&(performance.measure(ei,e[0].name,Z),performance.measure(ea,Z,ee),p&&(performance.getEntriesByName(ea).forEach(p),performance.getEntriesByName(ei).forEach(p))),el(),[ei,ea].forEach(e=>performance.clearMeasures(e)))}function ed({callbacks:e,children:t}){return E.default.useLayoutEffect(()=>e.forEach(e=>e()),[e]),t}function ep(e){var t,r;let i,a,{App:o,Component:l,props:d,err:p}=e,f="initial"in e?void 0:e.styleSheets;l=l||u.Component;let h={...d=d||u.props,Component:l,err:p,router:n};u=h;let m=!1,g=new Promise((e,t)=>{c&&c(),a=()=>{c=null,e()},c=()=>{m=!0,c=null;let e=Object.defineProperty(Error("Cancel rendering route"),"__NEXT_ERROR_CODE",{value:"E503",enumerable:!1,configurable:!0});e.cancelled=!0,t(e)}});function _(){a()}!function(){if(!f)return;let e=new Set(W(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=t?.getAttribute("data-n-css");f.forEach(({href:t,text:n})=>{if(!e.has(t)){let e=document.createElement("style");e.setAttribute("data-n-href",t),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(n))}})}();let y=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(Q,{callback:function(){if(f&&!m){let e=new Set(f.map(e=>e.href)),t=W(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n<r.length;++n)e.has(r[n])?t[n].removeAttribute("media"):t[n].setAttribute("media","x");let n=document.querySelector("noscript[data-n-css]");n&&f.forEach(({href:e})=>{let t=document.querySelector(`style[data-n-href="${e}"]`);t&&(n.parentNode.insertBefore(t,n.nextSibling),n=t)}),W(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,A.disableSmoothScrollDuringRouteTransition)(()=>{window.scrollTo(t,r)})}}}),(0,S.jsxs)(V,{children:[Y(o,h),(0,S.jsx)(N.Portal,{type:"next-route-announcer",children:(0,S.jsx)(k.RouteAnnouncer,{})})]})]});return t=s,r=e=>(0,S.jsx)(ed,{callbacks:[e,_],children:(0,S.jsx)(E.default.StrictMode,{children:y})}),w.ST&&performance.mark(Z),i=r(es?eu:ec),eo?(0,E.default.startTransition)(()=>{eo.render(i)}):(eo=b.default.hydrateRoot(t,i,{onRecoverableError:$.onRecoverableError}),es=!1),g}async function ef(e){if(e.err&&(void 0===e.Component||!e.isHydratePass))return void await X(e);try{await ep(e)}catch(r){let t=(0,x.getProperError)(r);if(t.cancelled)throw t;await X({...e,err:t})}}async function eh(e){let t=i.err;try{let e=await o.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;d=t,r&&r.reportWebVitals&&(p=({id:e,name:t,startTime:n,value:i,duration:a,entryType:o,entries:s,attribution:l})=>{let u,c=`${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;s&&s.length&&(u=s[0].startTime);let d={id:e||c,name:t,startTime:n||u,value:null==i?a:i,label:"mark"===o||"measure"===o?"custom":"web-vital"};l&&(d.attribution=l),r.reportWebVitals(d)});let n=await o.routeLoader.whenEntrypoint(i.page);if("error"in n)throw n.error;f=n.component}catch(e){t=(0,x.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(i.dynamicIds),n=(0,M.createRouter)(i.page,i.query,a,{initialProps:i.props,pageLoader:o,App:d,Component:f,wrapApp:K,err:t,isFallback:!!i.isFallback,subscription:(e,t,r)=>ef(Object.assign({},e,{App:t,scroll:r})),locale:i.locale,locales:i.locales,defaultLocale:h,domainLocales:i.domainLocales,isPreview:i.isPreview}),z=await n._initialMatchesMiddlewarePromise;let r={App:d,initial:!0,Component:f,props:i.props,err:t,isHydratePass:!0};e?.beforeRender&&await e.beforeRender(),ef(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
473dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8031:(e,t)=>{function r(e){let t={};try{e.forEach((e,r)=>{"string"==typeof e&&(t[r]=e)})}catch{}return t}function n(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,r])=>{"string"==typeof r&&(t[e]=r)})}catch{}return t}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","set-cookie","cookie"],a=["x-forwarded-","-user"];function o(e){return e.replace(/-/g,"_")}function s(e,t,r,n,s){var l,u;let c=r?`http.request.header.${o(t)}.${o(r)}`:`http.request.header.${o(t)}`,d=(l=r||t,u=n,(s?i.some(e=>l.includes(e)):[...a,...i].some(e=>l.includes(e)))?"[Filtered]":Array.isArray(u)?u.map(e=>null!=e?String(e):e).join(";"):"string"==typeof u?u:void 0);void 0!==d&&(e[c]=d)}function l(e){if(e)try{let t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}t.extractQueryParamsFromUrl=l,t.headersToDict=n,t.httpHeadersToSpanAttributes=function(e,t=!1){let r={};try{Object.entries(e).forEach(([e,n])=>{if(null==n)return;let i=e.toLowerCase();if(("cookie"===i||"set-cookie"===i)&&"string"==typeof n&&""!==n){let e="set-cookie"===i,a=n.indexOf(";"),o=e&&-1!==a?n.substring(0,a):n;for(let n of e?[o]:o.split("; ")){let e=n.indexOf("="),a=-1!==e?n.substring(0,e):n,o=-1!==e?n.substring(e+1):"",l=a.toLowerCase();s(r,i,l,o,t)}}else s(r,i,"",n,t)})}catch{}return r},t.httpRequestToRequestData=function(e){let t=e.headers||{},r=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),i=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),a=e.url||"",o=function({url:e,protocol:t,host:r}){return e?.startsWith("http")?e:e&&r?`${t}://${r}${e}`:void 0}({url:a,host:r,protocol:i}),s=e.body||void 0,u=e.cookies;return{url:o,method:e.method,query_string:l(a),headers:n(t),cookies:u,data:s}},t.winterCGHeadersToDict=r,t.winterCGRequestToRequestData=function(e){let t=r(e.headers);return{method:e.method,url:e.url,query_string:l(e.url),headers:t}}},8062:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(34175),i=r(60008),a=r(21086);function o(e,t,r){let a={};switch(e){case"notifications/cancelled":t?.requestId&&(a["mcp.cancelled.request_id"]=String(t.requestId)),t?.reason&&(a["mcp.cancelled.reason"]=String(t.reason));break;case"notifications/message":if(t?.level&&(a[i.MCP_LOGGING_LEVEL_ATTRIBUTE]=String(t.level)),t?.logger&&(a[i.MCP_LOGGING_LOGGE
473R_ATTRIBUTE]=String(t.logger)),t?.data!==void 0){var o;a[i.MCP_LOGGING_DATA_TYPE_ATTRIBUTE]=typeof t.data,r&&(a[i.MCP_LOGGING_MESSAGE_ATTRIBUTE]="string"==typeof(o=t.data)?o:JSON.stringify(o))}break;case"notifications/progress":t?.progressToken&&(a["mcp.progress.token"]=String(t.progressToken)),"number"==typeof t?.progress&&(a["mcp.progress.current"]=t.progress),"number"==typeof t?.total&&(a["mcp.progress.total"]=t.total,"number"==typeof t?.progress&&(a["mcp.progress.percentage"]=t.progress/t.total*100)),t?.message&&(a["mcp.progress.message"]=String(t.message));break;case"notifications/resources/updated":if(t?.uri){a[i.MCP_RESOURCE_URI_ATTRIBUTE]=String(t.uri);let e=n.parseStringToURLObject(String(t.uri));e&&!n.isURLObjectRelative(e)&&(a["mcp.resource.protocol"]=e.protocol.replace(":",""))}break;case"notifications/initialized":a["mcp.lifecycle.phase"]="initialization_complete",a["mcp.protocol.ready"]=1}return a}t.buildTypeSpecificAttributes=function(e,t,r,n){if("request"===e){let e=a.extractTargetInfo(t.method,r||{});return{...void 0!==t.id&&{[i.MCP_REQUEST_ID_ATTRIBUTE]:String(t.id)},...e.attributes,...n?a.getRequestArguments(t.method,r||{}):{}}}return o(t.method,r||{},n)},t.getNotificationAttributes=o},8175:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0});var i={createKey:function(){return K},default:function(){return Z},matchesMiddleware:function(){return G}};for(var a in i)Object.defineProperty(t,a,{enumerable:!0,get:i[a]});let o=r(75591),s=r(66476),l=r(84531),u=r(63413),c=r(15917),d=s._(r(25116)),p=r(6992),f=r(50635),h=o._(r(26)),m=r(24157),g=r(66288),_=r(40126),y=r(36406),S=r(58059),E=r(10541),b=r(33795);r(90849);let T=r(58885),v=r(77998),I=r(69819),A=r(67400),R=r(96335),O=r(80312),w=r(58456),N=r(75194),C=r(82468),P=r(69365),k=r(79676),M=r(82906),x=r(20136),L=r(12569),U=r(60162),D=r(69069),B=r(81472),j=r(70975),F=r(11677);function $(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function G(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,T.parsePath)(e.asPath),n=(0,O.hasBasePath)(r)?(0,A.removeBasePath)(r):r,i=(0,R.addBasePath)((0,v.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(i))}function H(e){let t=(0,m.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function W(e,t,r){let[n,i]=(0,w.resolveHref)(e,t,!0),a=(0,m.getLocationOrigin)(),o=n.startsWith(a),s=i&&i.startsWith(a);n=H(n),i=i?H(i):i;let l=o?n:(0,R.addBasePath)(n),u=r?H((0,w.resolveHref)(e,r)):i||n;return{url:l,as:s?u:(0,R.addBasePath)(u)}}function z(e,t){let r=(0,l.removeTrailingSlash)((0,p.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,g.isDynamicRoute)(t)&&(0,S.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,l.removeTrailingSlash)(e))}async function q(e){if(!await G(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let i={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},a=t.headers.get("x-nextjs-rewrite"),o=a||t.headers.get("x-nextjs-matched-path"),s=t.headers.get(B.MATCHED_PATH_HEADER);if(!s||o||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(o=s),o){if(o.startsWith("/")){let t=(0,_.parseRelativeUrl)(o),s=(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),c=(0,l.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,u.getClientBuildManifest)()]).then(([o,{__rewrites:l}])=>{let u=(0,v.addLocale)(s.pathname,s.locale);if((0,g.isDynamicRoute)(u)||!a&&o.includes((0,f.normalizeLocalePath)((0,A.removeBasePath)(u),r.router.locales).pathname)){let r=(0,C.getNextPathnameInfo)((0,_.parseRelativeUrl)(e).pathname,{nextConfig:{basePath:i.basePath,trailingSlash:i.trailingSlash},parseData:!0});t.pathname=u=(0,R.addBasePath)(r.pathname)}{let e=n(u,o,l,t.query,e=>z(e,o),r.router.locales);e.matchedPage&&(t.pathname=e.parsedAs.pathname,u=t.pathname,Object.assign(t.query,e.parsedAs.query
473))}let d=o.includes(c)?c:z((0,f.normalizeLocalePath)((0,A.removeBasePath)(t.pathname),r.router.locales).pathname,o);if((0,g.isDynamicRoute)(d)){let e=(0,y.getRouteMatcher)((0,S.getRouteRegex)(d))(u);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,T.parsePath)(e),s=(0,P.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:`${s}${t.query}${t.hash}`})}let c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){let e=(0,T.parsePath)(c),t=(0,P.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:i,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:`${t}${e.query}${e.hash}`,newUrl:`${t}${e.query}${e.hash}`})}return Promise.resolve({type:"redirect-external",destination:c})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}n=r(7402).A;let J=Symbol("SSG_DATA_NOT_FOUND");function Y(e){try{return JSON.parse(e)}catch(e){return null}}function V({dataHref:e,inflightCache:t,isPrefetch:r,hasMiddleware:n,isServerRender:i,parseJSON:a,persistCache:o,isBackground:s,unstable_skipClientCache:l}){let{href:c}=new URL(e,window.location.href),d=(0,j.getDeploymentId)(),p=s=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(i=>!i.ok&&r>1&&i.status>=500?e(t,r-1,n):i)})(e,i?3:1,{headers:Object.assign({},r?{purpose:"prefetch"}:{},r&&n?{"x-middleware-prefetch":"1"}:{},d?{"x-deployment-id":d}:{}),method:s?.method??"GET"}).then(t=>t.ok&&s?.method==="HEAD"?{dataHref:e,response:t,text:"",json:{},cacheKey:c}:t.text().then(r=>{if(!t.ok){if(n&&[301,302,307,308].includes(t.status))return{dataHref:e,response:t,text:r,json:{},cacheKey:c};if(404===t.status&&Y(r)?.notFound)return{dataHref:e,json:{notFound:J},response:t,text:r,cacheKey:c};let a=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw i||(0,u.markAssetError)(a),a}let o=t.headers.get(B.NEXT_NAV_DEPLOYMENT_ID_HEADER);if(null!=o&&o!==d){let e=Object.defineProperty(Error("Loaded static props were from an outdated deployment, forcing a hard reload"),"__NEXT_ERROR_CODE",{value:"E989",enumerable:!1,configurable:!0});throw i||(0,u.markAssetError)(e),e}return{dataHref:e,json:a?Y(r):null,response:t,text:r,cacheKey:c}})).then(e=>(o&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete t[c],e)).catch(e=>{throw l||delete t[c],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,u.markAssetError)(e),e});return l&&o?p({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(t[c]=Promise.resolve(e)),e)):void 0!==t[c]?t[c]:t[c]=p(s?{method:"HEAD"}:{})}function K(){return Math.random().toString(36).slice(2,10)}function X({url:e,router:t}){if(e===(0,R.addBasePath)((0,v.addLocale)(t.asPath,t.locale)))throw Object.defineProperty(Error(`Invariant: attempted to hard navigate to the same URL ${e} ${location.href}`),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=e}let Q=({route:e,router:t})=>{let r=!1,n=t.clc=()=>{r=!0};return()=>{if(r){let t=Object.defineProperty(Error(`Abort fetching component for route: "${e}"`),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw t.cancelled=!0,t}n===t.clc&&(t.clc=null)}};class Z{static{this.events=(0,h.default)()}constructor(e,t,r,{initialProps:n,pageLoader:i,App:a,wrapApp:o,Component:s,err:u,subscription:c,isFallback:d,locale:p,locales:f,defaultLocale:h,domainLocales:y,isPreview:S}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=K(),this.onPopState=e=>{let t,{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,b.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),(0,m.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:i,as:a,options:o,key:s}=n;this._key=s;let{pathname:l}=(0,_.parseRelativeUrl)(i);this.isSsr&&a===(0,R.addBasePath)(this.asPath)&&l===(0,R.addBasePath)(this.pathname)||(!this._bps||this._bps(n))&&this.change("replaceState",i,a,Object.assign({},o,{shallow:o.shallow&&this._shallow,locale:o.locale||this.defaultLocale,_h:0}),t)};const E=(0,l.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[E]={Component:s,initial:!0,props:n,err:u,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=Z.events,this.pageLoader=i;const T=(0,g.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="/aistudio",this.sub=c,this.clc=null,this._wrapApp=o,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!T&&!self.location.search&&0),this.state={route:E,pathname:e,query:t,asPath:T?e:r,isPreview:!!S,locale:void 0,isFallback:d},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){const n={locale:p},i=(0,m.getURL)();this._initialMatchesMiddlewarePromise=G({router:this,locale:p,asPath:i}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?i:(0,b.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),i,n),a))}window.addEventListener("popstate",this.onPopState)}reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r={}){if((0,F.isJavaScriptURLString)(e.toString())||t&&(0,F.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,
473configurable:!0});return{url:e,as:t}=W(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r={}){if((0,F.isJavaScriptURLString)(e.toString())||t&&(0,F.isJavaScriptURLString)(t.toString()))throw Object.defineProperty(Error("Next.js has blocked a javascript: URL as a security precaution."),"__NEXT_ERROR_CODE",{value:"E978",enumerable:!1,configurable:!0});return{url:e,as:t}=W(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,i){{if(!this._bfl_s&&!this._bfl_d){let t,a,{BloomFilter:o}=r(97752);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,u.getClientBuildManifest)())}catch(t){if(console.error(t),i)return!0;return X({url:(0,R.addBasePath)((0,v.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}t?.numHashes&&(this._bfl_s=new o(t.numItems,t.errorRate),this._bfl_s.import(t)),a?.numHashes&&(this._bfl_d=new o(a.numItems,a.errorRate),this._bfl_d.import(a))}let a=!1,o=!1;for(let{as:r,allowMatchCurrent:s}of[{as:e},{as:t}])if(r){let t=(0,l.removeTrailingSlash)(new URL(r,"http://n").pathname),u=(0,R.addBasePath)((0,v.addLocale)(t,n||this.locale));if(s||t!==(0,l.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){for(let e of(a=a||!!this._bfl_s?.contains(t)||!!this._bfl_s?.contains(u),[t,u])){let t=e.split("/");for(let e=0;!o&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&this._bfl_d?.contains(r)){o=!0;break}}}if(a||o){if(i)return!0;return X({url:(0,R.addBasePath)((0,v.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,i,a){let o,s;if(!(0,M.isLocalURL)(t))return X({url:t,router:this}),!1;let p=1===i._h;p||i.shallow||await this._bfl(r,void 0,i.locale);let f=p||i._shouldResolveHref||(0,T.parsePath)(t).pathname===(0,T.parsePath)(r).pathname,h={...this.state},w=!0!==this.isReady;this.isReady=!0;let N=this.isSsr;if(p||(this.isSsr=!1),p&&this.clc)return!1;let C=h.locale;m.ST&&performance.mark("routeChange");let{shallow:P=!1,scroll:x=!0}=i,D={shallow:P};this._inFlightRoute&&this.clc&&(N||Z.events.emit("routeChangeError",$(),this._inFlightRoute,D),this.clc(),this.clc=null),r=(0,R.addBasePath)((0,v.addLocale)((0,O.hasBasePath)(r)?(0,A.removeBasePath)(r):r,i.locale,this.defaultLocale));let B=(0,I.removeLocale)((0,O.hasBasePath)(r)?(0,A.removeBasePath)(r):r,h.locale);this._inFlightRoute=r;let j=C!==h.locale;if(!p&&this.onlyAHashChange(B)&&!j){h.asPath=B,Z.events.emit("hashChangeStart",r,D),this.changeState(e,t,r,{...i,scroll:!1}),x&&this.scrollToHash(B);try{await this.set(h,this.components[h.route],null)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,B,D),e}return Z.events.emit("hashChangeComplete",r,D),!0}let F=(0,_.parseRelativeUrl)(t),{pathname:H,query:q}=F;try{[o,{__rewrites:s}]=await Promise.all([this.pageLoader.getPageList(),(0,u.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return X({url:r,router:this}),!1}this.urlIsNew(B)||j||(e="replaceState");let Y=r;H=H?(0,l.removeTrailingSlash)((0,A.removeBasePath)(H)):H;let V=(0,l.removeTrailingSlash)(H),K=r.startsWith("/")&&(0,_.parseRelativeUrl)(r).pathname;if(this.components[H]?.__appRouter)return X({url:r,router:this}),new Promise(()=>{});let Q=!!(K&&V!==K&&(!(0,g.isDynamicRoute)(V)||!(0,y.getRouteMatcher)((0,S.getRouteRegex)(V))(K))),ee=!i.shallow&&await G({asPath:r,locale:h.locale,router:this});if(p&&ee&&(f=!1),f&&"/_error"!==H)if(i._shouldResolveHref=!0,r.startsWith("/")){let e=n((0,R.addBasePath)((0,v.addLocale)(B,h.locale),!0),o,s,q,e=>z(e,o),this.locales);if(e.externalDest)return X({url:r,router:this}),!0;ee||(Y=e.asPath),e.matchedPage&&e.resolvedHref&&(H=e.resolvedHref,F.pathname=(0,R.addBasePath)(H),ee||(t=(0,b.formatWithValidation)(F)))}else F.pathname=z(H,o),F.pathname!==H&&(H=F.pathname,F.pathname=(0,R.addBasePath)(H),ee||(t=(0,b.formatWithValidation)(F)));if(!p&&!i.shallow&&this._bfl_d&&(0,g.isDynamicRoute)(H)){let e=(0,l.removeTrailingSlash)((0,_.parseRelativeUrl)(B).pathname);if((0,E.hasDynamicFilterCandidate)(H,e,e=>!!this._bfl_d?.contains(e)))return X({url:r,router:this}),new Promise(()=>{})}if(!(0,M.isLocalURL)(r))return X({url:r,router:this}),!1;Y=(0,I.removeLocale)((0,A.removeBasePath)(Y),h.locale),V=(0,l.removeTrailingSlash)(H);let et=!1;if((0,g.isDynamicRoute)(V)){let e=(0,_.parseRelativeUrl)(Y),n=e.pathname,i=(0,S.getRouteRegex)(V);et=(0,y.getRouteMatcher)(i)(n);let a=V===n,o=a?(0,U.interpolateAs)(V,n,q):{};if(et&&(!a||o.result))a?r=(0,b.formatWithValidation)(Object.assign({},e,{pathname:o.result,query:(0,L.omit)(q,o.params)})):Object.assign(q,et);else{let e=Object.keys(i.groups).filter(e=>!q[e]&&!i.groups[e].optional);if(e.length>0&&!ee)throw Object.defineProperty(Error((a?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${n}) is incompatible with the \`href\` value (${V}). `)+`Read more: https://nextjs.org/docs/messages/${a?"href-interpolation-failed":"incompatible-href-as"}
473`),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}p||Z.events.emit("routeChangeStart",r,D);let er="/404"===this.pathname||"/_error"===this.pathname;try{let n=await this.getRouteInfo({route:V,pathname:H,query:q,as:r,resolvedAs:Y,routeProps:D,locale:h.locale,isPreview:h.isPreview,hasMiddleware:ee,unstable_skipClientCache:i.unstable_skipClientCache,isQueryUpdating:p&&!this.isFallback,isMiddlewareRewrite:Q});if(p||i.shallow||await this._bfl(r,"resolvedAs"in n?n.resolvedAs:void 0,h.locale),"route"in n&&ee){V=H=n.route||V,D.shallow||(q=Object.assign({},n.query||{},q));let e=(0,O.hasBasePath)(F.pathname)?(0,A.removeBasePath)(F.pathname):F.pathname;if(et&&H!==e&&Object.keys(et).forEach(e=>{et&&q[e]===et[e]&&delete q[e]}),(0,g.isDynamicRoute)(H)){let e=!D.shallow&&n.resolvedAs?n.resolvedAs:(0,R.addBasePath)((0,v.addLocale)(new URL(r,location.href).pathname,h.locale),!0);(0,O.hasBasePath)(e)&&(e=(0,A.removeBasePath)(e));let t=(0,S.getRouteRegex)(H),i=(0,y.getRouteMatcher)(t)(new URL(e,location.href).pathname);i&&Object.assign(q,i)}}if("type"in n)if("redirect-internal"===n.type)return this.change(e,n.newUrl,n.newAs,i);else return X({url:n.destination,router:this}),new Promise(()=>{});let s=n.Component;if(s&&s.unstable_scriptLoader&&[].concat(s.unstable_scriptLoader()).forEach(e=>{(0,c.handleClientScriptLoad)(e.props)}),(n.__N_SSG||n.__N_SSP)&&n.props){if(n.props.pageProps&&n.props.pageProps.__N_REDIRECT){i.locale=!1;let t=n.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==n.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,_.parseRelativeUrl)(t);r.pathname=z(r.pathname,o);let{url:n,as:a}=W(this,t,t);return this.change(e,n,a,i)}return X({url:t,router:this}),new Promise(()=>{})}if(h.isPreview=!!n.props.__N_PREVIEW,n.props.notFound===J){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(n=await this.getRouteInfo({route:e,pathname:e,query:q,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:h.locale,isPreview:h.isPreview,isNotFound:!0}),"type"in n)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}p&&"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);let l=i.shallow&&h.route===(n.route??V),u=i.scroll??(!p&&!l),f=a??(u?{x:0,y:0}:null),m={...h,route:V,pathname:H,query:q,asPath:B,isFallback:!1};if(p&&er){if(n=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:q,as:r,resolvedAs:Y,routeProps:{shallow:!1},locale:h.locale,isPreview:h.isPreview,isQueryUpdating:p&&!this.isFallback}),"type"in n)throw Object.defineProperty(Error(`Unexpected middleware effect on ${this.pathname}`),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&self.__NEXT_DATA__.props?.pageProps?.statusCode===500&&n.props?.pageProps&&(n.props.pageProps.statusCode=500);try{await this.set(m,n,f)}catch(e){throw(0,d.default)(e)&&e.cancelled&&Z.events.emit("routeChangeError",e,B,D),e}return!0}if(Z.events.emit("beforeHistoryChange",r,D),this.changeState(e,t,r,i),!(p&&!f&&!w&&!j&&(0,k.compareRouterStates)(m,this.state))){try{await this.set(m,n,f)}catch(e){if(e.cancelled)n.error=n.error||e;else throw e}if(n.error)throw p||Z.events.emit("routeChangeError",n.error,B,D),n.error;p||Z.events.emit("routeChangeComplete",r,D),u&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,d.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n={}){("pushState"!==e||(0,m.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:K()},"",r))}async handleRouteInfoError(e,t,r,n,i,a){if(e.cancelled)throw e;if((0,u.isAssetError)(e)||a)throw Z.events.emit("routeChangeError",e,n,i),X({url:n,router:this}),$();console.error(e);try{let n,{page:i,styleSheets:a}=await this.fetchComponent("/_error"),o={props:n,Component:i,styleSheets:a,err:e,error:e};if(!o.props)try{o.props=await this.getInitialProps(i,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),o.props={}}return o}catch(e){return this.handleRouteInfoError((0,d.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
473configurable:!0}),t,r,n,i,!0)}}async getRouteInfo({route:e,pathname:t,query:r,as:n,resolvedAs:i,routeProps:a,locale:o,hasMiddleware:s,isPreview:u,unstable_skipClientCache:c,isQueryUpdating:p,isMiddlewareRewrite:h,isNotFound:m}){let g=e;try{let e=this.components[g];if(a.shallow&&e&&this.route===g)return e;let d=Q({route:g,router:this});s&&(e=void 0);let _=!e||"initial"in e?void 0:e,y={dataHref:this.pageLoader.getDataHref({href:(0,b.formatWithValidation)({pathname:t,query:r}),skipInterpolation:!0,asPath:m?"/404":i,locale:o}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:c,isBackground:p},S=p&&!h?null:await q({fetchData:()=>V(y),asPath:m?"/404":i,locale:o,router:this}).catch(e=>{if(p)return null;throw e});if(S&&("/_error"===t||"/404"===t)&&(S.effect=void 0),p&&(S?S.json=self.__NEXT_DATA__.props:S={json:self.__NEXT_DATA__.props}),d(),S?.effect?.type==="redirect-internal"||S?.effect?.type==="redirect-external")return S.effect;if(S?.effect?.type==="rewrite"){let n=(0,l.removeTrailingSlash)(S.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!p||o.includes(n))&&(g=n,t=S.effect.resolvedHref,r={...r,...S.effect.parsedAs.query},i=(0,A.removeBasePath)((0,f.normalizeLocalePath)(S.effect.parsedAs.pathname,this.locales).pathname),e=this.components[g],a.shallow&&e&&this.route===g&&!s))return{...e,route:g}}if((0,N.isAPIRoute)(g))return X({url:n,router:this}),new Promise(()=>{});let E=_||await this.fetchComponent(g).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),T=S?.response?.headers.get("x-middleware-skip"),v=E.__N_SSG||E.__N_SSP;T&&S?.dataHref&&delete this.sdc[S.dataHref];let{props:I,cacheKey:R}=await this._getData(async()=>{if(v){if(S?.json&&!T)return{cacheKey:S.cacheKey,props:S.json};let e=S?.dataHref?S.dataHref:this.pageLoader.getDataHref({href:(0,b.formatWithValidation)({pathname:t,query:r}),asPath:i,locale:o}),n=await V({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:T?{}:this.sdc,persistCache:!u,isPrefetch:!1,unstable_skipClientCache:c});return{cacheKey:n.cacheKey,props:n.json||{}}}return{headers:{},props:await this.getInitialProps(E.Component,{pathname:t,query:r,asPath:n,locale:o,locales:this.locales,defaultLocale:this.defaultLocale})}});return E.__N_SSP&&y.dataHref&&R&&delete this.sdc[R],this.isPreview||!E.__N_SSG||p||V(Object.assign({},y,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),I.pageProps=Object.assign({},I.pageProps),E.props=I,E.route=g,E.query=r,E.resolvedAs=i,this.components[g]=E,E}catch(e){return this.handleRouteInfoError((0,d.getProperError)(e),t,r,n,a)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,i]=e.split("#",2);return!!i&&t===n&&r===i||t===n&&r!==i}scrollToHash(e){let[,t=""]=e.split("#",2);(0,D.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),r=document.getElementById(e);if(r)return void r.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,r={}){if((0,x.isBot)(window.navigator.userAgent))return;let i=(0,_.parseRelativeUrl)(e),a=i.pathname,{pathname:o,query:s}=i,c=o,d=await this.pageLoader.getPageList(),p=t,f=void 0!==r.locale?r.locale||void 0:this.locale,h=await G({asPath:t,locale:f,router:this});if(t.startsWith("/")){let r;({__rewrites:r}=await (0,u.getClientBuildManifest)());let a=n((0,R.addBasePath)((0,v.addLocale)(t,this.locale),!0),d,r,i.query,e=>z(e,d),this.locales);if(a.externalDest)return;h||(p=(0,I.removeLocale)((0,A.removeBasePath)(a.asPath),this.locale)),a.matchedPage&&a.resolvedHref&&(i.pathname=o=a.resolvedHref,h||(e=(0,b.formatWithValidation)(i)))}i.pathname=z(i.pathname,d),(0,g.isDynamicRoute)(i.pathname)&&(o=i.pathname,i.pathname=o,Object.assign(s,(0,y.getRouteMatcher)((0,S.getRouteRegex)(i.pathname))((0,T.parsePath)(t).pathname)||{}),h||(e=(0,b.formatWithValidation)(i)));let m=await q({fetchData:()=>V({dataHref:this.pageLoader.getDataHref({href:(0,b.formatWithValidation)({pathname:c,query:s}),skipInterpolation:!0,asPath:p,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persist
473Cache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if(m?.effect.type==="rewrite"&&(i.pathname=m.effect.resolvedHref,o=m.effect.resolvedHref,s={...s,...m.effect.parsedAs.query},p=m.effect.parsedAs.pathname,e=(0,b.formatWithValidation)(i)),m?.effect.type==="redirect-external")return;let E=(0,l.removeTrailingSlash)(o);await this._bfl(t,p,r.locale,!0)&&(this.components[a]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(E).then(t=>!!t&&V({dataHref:m?.json?m?.dataHref:this.pageLoader.getDataHref({href:e,asPath:p,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](E)])}async fetchComponent(e){let t=Q({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,m.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}},8279:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700);t.growthbookIntegration=({growthbookClass:e})=>n.growthbookIntegration({growthbookClass:e})},8305:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.DEFAULT_ENVIRONMENT="production",t.DEV_ENVIRONMENT="development"},8788:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(64484),a=r(86160),o=r(53374),s=r(73922),l=r(42686),u=r(16039),c=r(79691),d=r(14645),p=r(62151),f=r(62327);class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:u.generateTraceId(),sampleRand:c.safeMathRandom()}}clone(){let e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,d._setSpanForScope(e,d._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&i.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:n,extra:i,user:a,contexts:s,level:l,fingerprint:u=[],propagationContext:c,conversationId:d}=(t instanceof h?t.getScopeData():o.isPlainObject(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,d._setSpanForScope(this,void 0),this._attachments=[],this.setPropagationContext({traceId:u.generateTraceId(),sampleRand:c.safeMathRandom()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:f.dateTimestampInSeconds(),...e,message:e.message?p.truncate(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:d._getSpanForScope(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=s.merge
473(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||l.uuid4();if(!this._client)return n.DEBUG_BUILD&&a.debug.warn("No client configured on scope - will not capture exception!"),r;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||l.uuid4();if(!this._client)return n.DEBUG_BUILD&&a.debug.warn("No client configured on scope - will not capture message!"),i;let o=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:i},this),i}captureEvent(e,t){let r=e.event_id||t?.event_id||l.uuid4();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):n.DEBUG_BUILD&&a.debug.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}t.Scope=h},9219:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(23105),i=r(42970);function a(e){if(!e||0===e.length)return null;let t=[];for(let r of e)if(r&&"object"==typeof r){let e=r.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}function o(e){let t=0,r=0,n=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let i=e.usage_metadata;return"number"==typeof i.input_tokens&&(t=i.input_tokens),"number"==typeof i.output_tokens&&(r=i.output_tokens),"number"==typeof i.total_tokens&&(n=i.total_tokens),{inputTokens:t,outputTokens:r,totalTokens:n}}if(e.response_metadata&&"object"==typeof e.response_metadata){let i=e.response_metadata;if(i.tokenUsage&&"object"==typeof i.tokenUsage){let e=i.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(r=e.completionTokens),"number"==typeof e.totalTokens&&(n=e.totalTokens)}}return{inputTokens:t,outputTokens:r,totalTokens:n}}function s(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let r=t.response_metadata;r.model_name&&"string"==typeof r.model_name&&e.setAttribute(n.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,r.model_name),r.finish_reason&&"string"==typeof r.finish_reason&&e.setAttribute(n.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[r.finish_reason])}}t.extractModelMetadata=s,t.extractTokenUsageFromMessage=o,t.extractToolCalls=a,t.extractToolsFromCompiledGraph=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null},t.setResponseAttributes=function(e,t,r){let l=r?.messages;if(!l||!Array.isArray(l))return;let u=t?.length??0,c=l.length>u?l.slice(u):[];if(0===c.length)return;let d=a(c);d&&e.setAttribute(n.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(d));let p=i.normalizeLangChainMessages(c);e.setAttribute(n.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(p));let f=0,h=0,m=0;for(let t of c){let r=o(t);f+=r.inputTokens,h+=r.outputTokens,m+=r.totalTokens,s(e,t)}f>0&&e.setAttribute(n.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,f),h>0&&e.setAttribute(n.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,h),m>0&&e.setAttribute(n.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,m)}},9343:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(85699),o=r(65262);t.startProfileForSpan=function(e){let t;o.isAutomatedPageLoadSpan(e)&&(t=1e3*n.timestampInSeconds());let r=o.startJSSelfProfile();if(!r)return;i.DEBUG_BUILD&&n.debug.log(`[Profiling] started profiling span: ${n.spanToJSON(e).description}`);let s=n.uuid4(),l=null;async function u(){if(e&&r){if(l){i.DEBUG_BUILD&&n.debug.log("[Profiling] profile for:",n.spanToJSON(e).description,"already exists, returning early");return}return r.stop().then(t=>{if(c&&(a.WINDOW.clearTimeout(c),c=void 0),i.DEBUG_BUILD&&n.debug.log(`[Profiling] stopped profiling of span: ${n.spanToJSON(e).description}`),!t){i.DEBUG_BUILD&&n.debug.log(`[Profiling] profiler returned null profile for: ${n.spanToJSON(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}l=t,o.addProfileToGlobalCache(s,t)}).catch(e=>{i.DEBUG_BUILD&&n.debug.log("[Profiling] error while stopping profiler:",e)})}}n.getCurrentScope().setContext("profile",{profile_id:s,start_timestamp:t});let c=a.WINDOW.setTimeout(()=>{i.DEBUG_BUILD&&n.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",n.spanToJSON(e).description),u()},o.MAX_PROFILE_DURATION_MS),d=e.end.bind(e);e.end=function(){return e?(u().then(()=>{d()},()=>{d()}),e):d()}}},9445:(e,t,r)=>{"use strict";
473Object.defineProperty(t,"__esModule",{value:!0});var n={RouteAnnouncer:function(){return c},default:function(){return d}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(75591),o=r(15383),s=a._(r(14343)),l=r(26623),u={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},c=()=>{let{asPath:e}=(0,l.useRouter)(),[t,r]=s.default.useState(""),n=s.default.useRef(e);return s.default.useEffect(()=>{if(n.current!==e)if(n.current=e,document.title)r(document.title);else{let t=document.querySelector("h1");r((t?.innerText??t?.textContent)||e)}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},d=c;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9914:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(60008),i=r(22944),a=r(79822);function o(e){let t={};return a.isValidContentItem(e)&&("string"==typeof e.name&&(t.name=e.name),"string"==typeof e.title&&(t.title=e.title),"string"==typeof e.version&&(t.version=e.version)),t}function s(e){let t=i.getClientInfoForTransport(e),r={};return t?.name&&(r["mcp.client.name"]=t.name),t?.title&&(r["mcp.client.title"]=t.title),t?.version&&(r["mcp.client.version"]=t.version),r}function l(e){let t=i.getSessionDataForTransport(e)?.serverInfo,r={};return t?.name&&(r[n.MCP_SERVER_NAME_ATTRIBUTE]=t.name),t?.title&&(r[n.MCP_SERVER_TITLE_ATTRIBUTE]=t.title),t?.version&&(r[n.MCP_SERVER_VERSION_ATTRIBUTE]=t.version),r}function u(e){return{address:e?.requestInfo?.remoteAddress||e?.clientAddress||e?.request?.ip||e?.request?.connection?.remoteAddress,port:e?.requestInfo?.remotePort||e?.clientPort||e?.request?.connection?.remotePort}}function c(e){if(!e?.constructor)return{mcpTransport:"unknown",networkTransport:"unknown"};let t="string"==typeof e.constructor?.name?e.constructor.name:"unknown",r="unknown",n=t.toLowerCase();return n.includes("stdio")?r="pipe":(n.includes("http")||n.includes("sse"))&&(r="tcp"),{mcpTransport:t,networkTransport:r}}t.buildClientAttributesFromInfo=function(e){let t={};return e?.name&&(t["mcp.client.name"]=e.name),e?.title&&(t["mcp.client.title"]=e.title),e?.version&&(t["mcp.client.version"]=e.version),t},t.buildServerAttributesFromInfo=function(e){let t={};return e?.name&&(t[n.MCP_SERVER_NAME_ATTRIBUTE]=e.name),e?.title&&(t[n.MCP_SERVER_TITLE_ATTRIBUTE]=e.title),e?.version&&(t[n.MCP_SERVER_VERSION_ATTRIBUTE]=e.version),t},t.buildTransportAttributes=function(e,t){let r=e&&"sessionId"in e?e.sessionId:void 0,a=t?u(t):{},{mcpTransport:o,networkTransport:d}=c(e),p=s(e),f=l(e),h=i.getProtocolVersionForTransport(e);return{...r&&{[n.MCP_SESSION_ID_ATTRIBUTE]:r},...a.address&&{[n.CLIENT_ADDRESS_ATTRIBUTE]:a.address},...a.port&&{[n.CLIENT_PORT_ATTRIBUTE]:a.port},[n.MCP_TRANSPORT_ATTRIBUTE]:o,[n.NETWORK_TRANSPORT_ATTRIBUTE]:d,[n.NETWORK_PROTOCOL_VERSION_ATTRIBUTE]:"2.0",...h&&{[n.MCP_PROTOCOL_VERSION_ATTRIBUTE]:h},...p,...f}},t.extractClientInfo=u,t.extractSessionDataFromInitializeRequest=function(e){let t={};return a.isValidContentItem(e.params)&&("string"==typeof e.params.protocolVersion&&(t.protocolVersion=e.params.protocolVersion),e.params.clientInfo&&(t.clientInfo=o(e.params.clientInfo))),t},t.extractSessionDataFromInitializeResponse=function(e){let t={};return a.isValidContentItem(e)&&("string"==typeof e.protocolVersion&&(t.protocolVersion=e.protocolVersion),e.serverInfo&&(t.serverInfo=o(e.serverInfo))),t},t.getClientAttributes=s,t.getServerAttributes=l,t.getTransportTypes=c},10419:(e,t,r)=>{let n,i;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let a=r(79700),o=r(19849),s=r(39810),l=r(55639),u=r(23045),c=r(16964),d=r(75171),p=r(41341),f=r(43667),h=r(45573),m=0,g={};function _(e,t,r,n,i,o){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&a.stringMatchesSomePattern(t.name,o))return;let s=f.getNavigationEntry(!1),l=i+Math.max(r,d.msToSec(s?s.requestStart:0)),u=i+r,c=u+n,p={[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};l!==u&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=l),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&a.isPrimitive(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if(a.isPrimitive(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(p,t),l<=c&&d.startAndEndSpan(e,l,c,{name:t.name,op:t.entryType,attributes:p})}function y(e,t,r){var n,i,o;let s,l,u;["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{S(e,t,n,r)}),S(e,t,"secureConnection",r,"TLS/SSL"),S(e,t,"fetch",r,"cache"),S(e,t,"domainLookup",r,"DNS"),n=e,i=t,s=(o=r)+d.msToSec(i.requestStart),l=o+d.msToSec(i.responseEnd),u=o+d.msToSec(i.responseStart),i.responseEnd&&(d.startAndEndSpan(n,s,l,{op:"browser.request",name:i.name,attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),d.startAndEndSpan(n,u,l,{op:"browser.response",name:i.name,attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}function S(e,t,r,n,i=r){var o;let s=t["secureConnection"===(o=r)?"connectEnd":"fetch"===o?"domainLookupStart":`${o}End`],l=t[`${r}Start`];l&&s&&d.startAndEndSpan(e,n+d.msToSec(l),n+d.msToSec(s),{op:`browser.${i}`,name:t.name,attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function E(e,t,r,n,i,s,l){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(l?.includes(u))return;let p={[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},f=a.parseUrl(r);f.protocol&&(p["url.scheme"]=f.protocol.split(":").pop()),f.host&&(p["server.address"]=f.host),p["url.same_origin"]=r.includes(o.WINDOW.location.origin),b(t,p,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);let h={...p,...c.resourceTimingToSpanAttributes(t)},m=s+n;d.startAndEndSpan(e,m,m+i,{name:r.replace(o.WINDOW.location.origin,""),op:u,attributes:h})}function b(e,t,r){r.forEach(([r,n])=>{let i=e[r];null!=i&&("number"==typeof i&&i<0x7fffffff||"string"==typeof i)&&(t[n]=i)})}t._addMeasureSpans=_,t._addNavigationSpans=y,t._addResourceSpans=E,t._setResourceRequestAttributes=b,t.addPerformanceEntries=function(e,t){var r,s;let l=d.getBrowserPerformanceAPI(),u=a.browserPerformanceTimeOrigin();if(!l?.getEntries||!u)return;
473let c=d.msToSec(u),S=l.getEntries(),{op:b,start_timestamp:T}=a.spanToJSON(e);S.slice(m).forEach(r=>{let n=d.msToSec(r.startTime),i=d.msToSec(Math.max(0,r.duration));if("navigation"!==b||!T||!(c+n<T))switch(r.entryType){case"navigation":y(e,r,c);break;case"mark":case"paint":case"measure":{_(e,r,n,i,c,t.ignorePerformanceApiSpans);let a=h.getVisibilityWatcher(),o=r.startTime<a.firstHiddenTime;"first-paint"===r.name&&o&&(g.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&o&&(g.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":E(e,r,r.name,n,i,c,t.ignoreResourceSpans)}}),m=Math.max(S.length-1,0),function(e){let t=o.WINDOW.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),d.isMeasurementValue(r.rtt)&&(g["connection.rtt"]={value:r.rtt,unit:"millisecond"})),d.isMeasurementValue(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),d.isMeasurementValue(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===b&&(function(e){let t=f.getNavigationEntry(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(g),t.recordClsOnPageloadSpan||delete g.cls,t.recordLcpOnPageloadSpan||delete g.lcp,Object.entries(g).forEach(([e,t])=>{a.setMeasurement(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",c),e.setAttribute("performance.activationStart",p.getActivationStart()),r=e,s=t,n&&s.recordLcpOnPageloadSpan&&(n.element&&r.setAttribute("lcp.element",a.htmlTreeAsString(n.element)),n.id&&r.setAttribute("lcp.id",n.id),n.url&&r.setAttribute("lcp.url",n.url.trim().slice(0,200)),null!=n.loadTime&&r.setAttribute("lcp.loadTime",n.loadTime),null!=n.renderTime&&r.setAttribute("lcp.renderTime",n.renderTime),r.setAttribute("lcp.size",n.size)),i?.sources&&s.recordClsOnPageloadSpan&&i.sources.forEach((e,t)=>r.setAttribute(`cls.source.${t+1}`,a.htmlTreeAsString(e.node)))),n=void 0,i=void 0,g={}},t.startTrackingInteractions=function(){l.addPerformanceInstrumentationHandler("event",({entries:e})=>{let t=a.getActiveSpan();
473if(t){for(let r of e)if("click"===r.name){let e=d.msToSec(a.browserPerformanceTimeOrigin()+r.startTime),n=d.msToSec(r.duration),i={name:a.htmlTreeAsString(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},o=a.getComponentName(r.target);o&&(i.attributes["ui.component_name"]=o),d.startAndEndSpan(t,e,e+n,i)}}})},t.startTrackingLongAnimationFrames=function(){new PerformanceObserver(e=>{let t=a.getActiveSpan();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=d.msToSec(a.browserPerformanceTimeOrigin()+r.startTime),{start_timestamp:n,op:i}=a.spanToJSON(t);if("navigation"===i&&n&&e<n)continue;let o=d.msToSec(r.duration),s={[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},{invoker:l,invokerType:u,sourceURL:c,sourceFunctionName:p,sourceCharPosition:f}=r.scripts[0];s["browser.script.invoker"]=l,s["browser.script.invoker_type"]=u,c&&(s["code.filepath"]=c),p&&(s["code.function"]=p),-1!==f&&(s["browser.script.source_char_position"]=f),d.startAndEndSpan(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0})},t.startTrackingLongTasks=function(){l.addPerformanceInstrumentationHandler("longtask",({entries:e})=>{let t=a.getActiveSpan();if(!t)return;let{op:r,start_timestamp:n}=a.spanToJSON(t);for(let i of e){let e=d.msToSec(a.browserPerformanceTimeOrigin()+i.startTime),o=d.msToSec(i.duration);"navigation"===r&&n&&e<n||d.startAndEndSpan(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}})},t.startTrackingWebVitals=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let c=d.getBrowserPerformanceAPI();if(c&&a.browserPerformanceTimeOrigin()){c.mark&&o.WINDOW.performance.mark("sentry-tracing-init");let a=t?u.trackLcpAsStandaloneSpan(r):l.addLcpInstrumentationHandler(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(g.lcp={value:e.value,unit:"millisecond"},n=t)},!0),d=l.addTtfbInstrumentationHandler(({metric:e})=>{e.entries[e.entries.length-1]&&(g.ttfb={value:e.value,unit:"millisecond"})}),p=e?s.trackClsAsStandaloneSpan(r):l.addClsInstrumentationHandler(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(g.cls={value:e.value,unit:""},i=t)},!0);return()=>{a?.(),d(),p?.()}}return()=>void 0}},10541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={DYNAMIC_FILTER_PLACEHOLDER:function(){return i},hasDynamicFilterCandidate:function(){return a}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i="[]";function a(e,t,r){let n=e.split("/"),a=t.split("/"),o=n[n.length-1]??"";if(!(o.startsWith("[...")||o.startsWith("[[..."))&&n.length!==a.length)return!1;let s=[];for(let e=1;e<a.length;e++){if(""===a[e])continue;let t=n[e];(void 0===t||t.startsWith("["))&&s.push(e)}if(0===s.length||s.length>8)return!1;let l=(1<<s.length)-1;for(let e=0;e<l;e++){let t=a.slice();for(let r=0;r<s.length;r++)(e&1<<r)==0&&(t[s[r]]=i);if(r(t.join("/")))return!0}return!1}},10900:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=new Set(["false","f","n","no","off","0"]),n=new Set(["true","t","y","yes","on","1"]);t.FALSY_ENV_VALUES=r,t.TRUTHY_ENV_VALUES=n,t.envToBool=function(e,t){let i=String(e).toLowerCase();return!r.has(i)&&(!!n.has(i)||(t?.strict?null:!!e))}},11317:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(53374),i=r(98473),a=r(76953);function o(e,t,r){return e.map(e=>n.isPrimitive(e)?String(e):JSON.stringify(i.normalize(e,t,r))).join(" ")}t.createConsoleTemplateAttributes=function(e,t){let r={},n=Array(t.length).fill("{}").join(" ");return r["sentry.message.template"]=`${e} ${n}`,t.forEach((e,t)=>{r[`sentry.message.parameter.${t}`]=e}),r},t.formatConsoleArgs=function(e,t,r){return"util"in a.GLOBAL_OBJ&&"function"==typeof a.GLOBAL_OBJ.util.format?a.GLOBAL_OBJ.util.format(...e):o(e,t,r)},t.hasConsoleSubstitutions=function(e){return/%[sdifocO]/.test(e)},t.safeJoinConsoleArgs=o},11661:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.parseSampleRate=function(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}},11677:(e,t)=>{"use strict";
473Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isJavaScriptURLString",{enumerable:!0,get:function(){return n}});let r=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function n(e){return r.test(""+e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11848:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(85699),a=r(89291);function o(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function s(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=o(r);return e=>n.then(r=>e(r.transaction(t,"readwrite").objectStore(t)))}function l(e){return o(e.getAllKeys())}function u(e,t,r){return e(e=>l(e).then(n=>{if(!(n.length>=r))return e.put(t,Math.max(...n,0)+1),o(e.transaction)}))}function c(e,t,r){return e(e=>l(e).then(n=>{if(!(n.length>=r))return e.put(t,Math.min(...n,0)-1),o(e.transaction)}))}function d(e){return e(e=>l(e).then(t=>{let r=t[0];if(null!=r)return o(e.get(r)).then(t=>(e.delete(r),o(e.transaction).then(()=>t)))}))}function p(e){let t;function r(){return void 0==t&&(t=s(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{let i=await n.serializeEnvelope(t);await u(r(),i,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{let i=await n.serializeEnvelope(t);await c(r(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{let e=await d(r());if(e)return n.parseEnvelope(e)}catch{}}}}t.createStore=s,t.makeBrowserOfflineTransport=function(e=a.makeFetchTransport){var t;return t=n.makeOfflineTransport(e),e=>{let r=t({...e,createStore:p});return i.WINDOW.addEventListener("online",async e=>{await r.flush()}),r}},t.push=u,t.shift=d,t.unshift=c},11938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return m},defaultHead:function(){return d}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(75591),o=r(66476),s=r(15383),l=o._(r(14343)),u=a._(r(79259)),c=r(45955);function d(){return[(0,s.jsx)("meta",{charSet:"utf-8"},"charset"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let f=["name","httpEquiv","charSet","itemProp"];function h(e){let t,r,n,i;return e.reduce(p,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let a=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?a=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?a=!1:r.add(e.type);break;case"meta":for(let t=0,r=f.length;t<r;t++){let r=f[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?a=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!o)&&n.has(t)?a=!1:(n.add(t),i[r]=n)}}}return a})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let m=function({children:e}){let t=(0,l.useContext)(c.HeadManagerContext);return(0,s.jsx)(u.default,{reduceComponentsToState:h,headManager:t,children:e})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return i}});let n=r(58885);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:a}=(0,n.parsePath)(e);return`${t}${r}${i}${a}`}},12569:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}
473Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},12731:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(46298),a=r(86160),o=r(75567),s=i.defineIntegration(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(l(t,e))return n.DEBUG_BUILD&&a.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function l(e,t){var r,n,i,a;let o,s,l,p;return!!t&&(r=e,n=t,o=r.message,s=n.message,!!((o||s)&&(!o||s)&&(o||!s)&&o===s&&c(r,n)&&u(r,n)&&1||(i=e,l=d(a=t),p=d(i),l&&p&&l.type===p.type&&l.value===p.value&&c(i,a)&&u(i,a))))}function u(e,t){let r=o.getFramesFromEvent(e),n=o.getFramesFromEvent(t);if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function c(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function d(e){return e.exception?.values?.[0]}t._shouldDropEvent=l,t.dedupeIntegration=s},12835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return i}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function i(e){return r.test(e)?e.replace(n,"\\$&"):e}},13033:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(70975);if((0,n.getAssetToken)()){let e=(0,n.getAssetTokenQuery)(),t=r.u;r.u=(...r)=>t(...r)+e;let i=r.k;r.k=(...t)=>i(...t)+e;let a=r.miniCssF;r.miniCssF=(...t)=>a(...t)+e}self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13229:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(45455),i=r(75567);t.callFrameToStackFrame=function(e,t,r){let a=t?t.replace(/^file:\/\//,""):void 0,o=e.location.columnNumber?e.location.columnNumber+1:void 0,s=e.location.lineNumber?e.location.lineNumber+1:void 0;return{filename:a,module:r(a),function:e.functionName||i.UNKNOWN_FUNCTION,colno:o,lineno:s,in_app:a?n.filenameIsInApp(a):void 0}},t.watchdogTimer=function(e,t,r,n){let i=e(),a=!1,o=!0;return setInterval(()=>{let e=i.getTimeMs();!1===a&&e>t+r&&(a=!0,o&&n()),e<t+r&&(a=!1)},20),{poll:()=>{i.reset()},enabled:e=>{o=e}}}},13232:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={PARAMETER_PATTERN:function(){return d},getDynamicParam:function(){return c},interpolateParallelRouteParams:function(){return u},parseMatchedParameter:function(){return f},parseParameter:function(){return p}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(89323),o=r(89932),s=r(48164),l=r(82608);function u(e,t,r,n){let i=structuredClone(t),u=[{tree:e,depth:0}],c=(0,s.parseNormalizedAppRoute)(r);for(;u.length>0;){let{tree:e,depth:t}=u.pop(),{segment:r,parallelRoutes:d}=(0,o.parseLoaderTree)(e),p=(0,s.parseAppRouteSegment)(r);if(p?.type==="dynamic"&&!i.hasOwnProperty(p.param.paramName)&&!n?.has(p.param.paramName)){let{paramName:e,paramType:r}=p.param,n=(0,l.resolveParamValue)(e,r,t,c,i);if(void 0!==n)i[e]=n;else if("optional-catchall"!==r)throw Object.defineProperty(new a.InvariantError(`Could not resolve param value for segment: ${e}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let f=t;for(let e of(p&&"route-group"!==p.type&&"parallel-route"!==p.type&&f++,Object.values(d)))u.push({tree:e,depth:f})}return i}function c(e,t,r,n,i){let o=function(e,t,r){let n=e[t];if(r?.has(t)){let[e]=r.get(t);n=e}else Array.isArray(n)?n=n.map(e=>encodeURIComponent(e)):"string"==typeof n&&(n=encodeURIComponent(n));return n}(e,t,n);if(!o||0===o.length){if("oc"===r)return{param:t,value:null,type:r,treeSegment:[t,"",r,i]};throw Object.defineProperty(new a.InvariantError(`Missing value for segment key: "${t}" with dynamic param type: ${r}
473`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}let s=Array.isArray(o)?o.join("/"):o;return{param:t,value:o,treeSegment:[t,s,r,i],type:r}}let d=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function p(e){let t=e.match(d);return t?f(t[2]):f(e)}function f(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},13394:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(76953).GLOBAL_OBJ;function o(){if(!("fetch"in a))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function s(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}t.isNativeFunction=s,t.supportsDOMError=function(){try{return new DOMError(""),!0}catch{return!1}},t.supportsDOMException=function(){try{return new DOMException(""),!0}catch{return!1}},t.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch{return!1}},t.supportsFetch=o,t.supportsHistory=function(){return"history"in a&&!!a.history},t.supportsNativeFetch=function(){if("string"==typeof EdgeRuntime)return!0;if(!o())return!1;if(s(a.fetch))return!0;let e=!1,t=a.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=s(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){n.DEBUG_BUILD&&i.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e},t.supportsReferrerPolicy=function(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}},t.supportsReportingObserver=function(){return"ReportingObserver"in a}},13542:(e,t,r)=>{let n,i,a;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let o=r(79700),s=r(19849);function l(){if(!s.WINDOW.document)return;let e=o.triggerHandlers.bind(null,"dom"),t=u(e,!0);s.WINDOW.document.addEventListener("click",t,!1),s.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=s.WINDOW,n=r[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(o.fill(n,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=n[r]=n[r]||{refCount:0};if(!a.handler){let n=u(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch{}return t.call(this,r,n,i)}}),o.fill(n,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function u(e,t=!1){return r=>{var l;if(!r||r._sentryCaptured)return;let u=function(e){try{return e.target}catch{return null}}(r);if(l=r.type,"keypress"===l&&(!u?.tagName||"INPUT"!==u.tagName&&"TEXTAREA"!==u.tagName&&!u.isContentEditable&&1))return;o.addNonEnumerableProperty(r,"_sentryCaptured",!0),u&&!u._sentryId&&o.addNonEnumerableProperty(u,"_sentryId",o.uuid4());let c="keypress"===r.type?"input":r.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0}(r)&&(e({event:r,name:c,global:t}),i=r.type,a=u?u._sentryId:void 0),clearTimeout(n),n=s.WINDOW.setTimeout(()=>{a=void 0,i=void 0},1e3)}}t.addClickKeypressInstrumentationHandler=function(e){o.addHandler("dom",e),o.maybeInstrument("dom",l)},t.instrumentDOM=l},13681:(e,t,r)=>{"use strict";r.d(t,{XW:()=>i,xg:()=>a});var n=r(21275);function i(e){return new o(t=>{t(e)})}function a(e){return new o((t,r)=>{r(e)})}class o{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new o((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new o((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{i?r(n):t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();
473this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,n.Qg)(t))return void t.then(r,i);this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}},13903:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.safeUnref=function(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}},14338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let n=r(75591),i=r(15383),a=n._(r(14343)),o=n._(r(11938)),s={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function l({req:e,res:t,err:r}){return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404,hostname:window.location.hostname}}let u={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},c={lineHeight:"48px"},d={display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},p={fontSize:14,fontWeight:400,lineHeight:"28px"},f={display:"inline-block"};class h extends a.default.Component{static{this.displayName="ErrorPage"}static{this.getInitialProps=l}static{this.origGetInitialProps=l}render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||s[e]||"An unexpected error has occurred";return(0,i.jsxs)("div",{style:u,children:[(0,i.jsx)(o.default,{children:(0,i.jsx)("title",{children:e?`${e}: ${r}`:"Application error: a client-side exception has occurred"})}),(0,i.jsxs)("div",{style:c,children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:`body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}${t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":""}`}}),e?(0,i.jsx)("h1",{className:"next-error-h1",style:d,children:e}):null,(0,i.jsx)("div",{style:f,children:(0,i.jsxs)("h2",{style:p,children:[this.props.title||e?r:(0,i.jsxs)(i.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,i.jsxs)(i.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14357:(e,t,r)=>{"use strict";r.d(t,{$N:()=>o,Hd:()=>a,xE:()=>s});var n=r(21275);let i=r(71706).O;function a(e,t={}){if(!e)return"<unknown>";try{let r,a=e,o=[],s=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;a&&s++<5&&(r=function(e,t){let r=[];if(!e?.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let a=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(a?.length)a.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&(0,n.Kg)(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(a,u),"html"!==r&&(!(s>1)||!(l+3*o.length+r.length>=c)));)o.push(r),l+=r.length,a=a.parentNode;return o.reverse().join(" > ")}catch{return"<unknown>"}}function o(){try{return i.document.location.href}catch{return""}}function s(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},14400:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>d,Dp:()=>I,J0:()=>O,J5:()=>C,NA:()=>y,Ol:()=>A,Q:()=>E,SA:()=>R,SE:()=>b,VN:()=>v,Wt:()=>_,bX:()=>T,cx:()=>m,gV:()=>S,ky:()=>w,l7:()=>g,o:()=>h,r:()=>f,wd:()=>p});var n=r(31867),i=r(62877),a=r(60319),o=r(59685),s=r(65231),l=r(18533),u=r(27481),c=r(71706);function d(e,t){return(0,n.o5)().captureException(e,(0,l.li)(t))}function p(e,t){let r="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return(0,n.o5)().captureMessage(e,r,i)}function f(e,t){return(0,n.o5)().captureEvent(e,t)}function h(e,t){(0,n.rm)().setContext(e,t)}function m(e){(0,n.rm)().setExtras(e)}function g(e,t){(0,n.rm)().setExtra(e,t)}function _(e){(0,n.rm)().setTags(e)}function y(e,t){(0,n.rm)().setTag(e,t)}function S(e){(0,n.rm)().setUser(e)}function E(){return(0,n.rm)().lastEventId()}function b(e,t){let r=(0,n.o5)(),a=(0,n.KU)();if(a)if(a.captureCheckIn)return a.captureCheckIn(e,t,r);else i.T&&o.Yz.warn("Cannot capture check-in. Client does not support sending check-ins.");else i.T&&o.Yz.warn("Cannot capture check-in. No client defined.");return(0,s.eJ)()}async function T(e){let t=(0,n.KU)();return t?t.flush(e):(i.T&&o.Yz.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function v(e){let t=(0,n.KU)();return t?t.close(e):(i.T&&o.Yz.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function I(){return!!(0,n.KU)()}function A(){let e=(0,n.KU)();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function R(e){(0,n.rm)().addEventProcessor(e)}function O(e){let t=(0,n.rm)(),{user:r}=(0,u.Om)(t,(0,n.o5)()),{userAgent:i}=c.O.navigator||{},o=(0,a.fj)({user:r,...i&&{userAgent:i},...e}),s=t.getSession();return s?.status==="ok"&&(0,a.qO)(s,{status:"exited"}),w(),t.setSession(o),o}function w(){let e=(0,n.rm)(),t=(0,n.o5)().getSession()||e.getSession();t&&(0,a.Vu)(t),N(),e.setSession()}function N(){let e=(0,n.rm)(),t=(0,n.KU)(),r=e.getSession();r&&t&&t.captureSession(r)}function C(e=!1){e?w():N()}},14645:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(51045),i="_sentrySpan";t._getSpanForScope=function(e){return e[i]},t._setSpanForScope=function(e,t){t?n.addNonEnumerableProperty(e,i,t):delete e[i]}},14839:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(38398),a=r(86160),o=r(41291),s="flag.evaluation.";function l(e,t,r,n){if("boolean"!=typeof r)return;if(e.length>
473n){i.DEBUG_BUILD&&a.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${n}`);return}let o=e.findIndex(e=>e.flag===t);-1!==o&&e.splice(o,1),e.length===n&&e.shift(),e.push({flag:t,result:r})}t._INTERNAL_FLAG_BUFFER_SIZE=100,t._INTERNAL_MAX_FLAGS_PER_SPAN=10,t._INTERNAL_addFeatureFlagToActiveSpan=function(e,t,r=10){if("boolean"!=typeof t)return;let n=o.getActiveSpan();if(!n)return;let i=o.spanToJSON(n).data;`${s}${e}`in i?n.setAttribute(`${s}${e}`,t):Object.keys(i).filter(e=>e.startsWith(s)).length<r&&n.setAttribute(`${s}${e}`,t)},t._INTERNAL_copyFlagsFromScopeToEvent=function(e){let t=n.getCurrentScope().getScopeData().contexts.flags,r=t?t.values:[];return r.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...r]}),e},t._INTERNAL_insertFlagToScope=function(e,t,r=100){let i=n.getCurrentScope().getScopeData().contexts;i.flags||(i.flags={values:[]}),l(i.flags.values,e,t,r)},t._INTERNAL_insertToFlagBuffer=l},15004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(84531),i=r(58885),a=e=>{if(47!==e.charCodeAt(0))return e;let{pathname:t,query:r,hash:a}=(0,i.parsePath)(e);return`${(0,n.removeTrailingSlash)(t)}${r}${a}`};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15282:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(38398),a=r(43379),o=r(46298),s=r(76677),l=r(86160),u=r(63669),c=r(11317),d={[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"};t.consoleLoggingIntegration=o.defineIntegration((e={})=>{let t=e.levels||l.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){let{enableLogs:r,normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e.getOptions();if(!r){i.DEBUG_BUILD&&l.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}a.addConsoleInstrumentationHandler(({args:r,level:i})=>{if(n.getClient()!==e||!t.includes(i))return;let a=r[0],l=r.slice(1);if("assert"===i){if(!a){let e=l.length>0?`Assertion failed: ${c.formatConsoleArgs(l,o,s)}`:"Assertion failed";u._INTERNAL_captureLog({level:"error",message:e,attributes:d})}return}let p="log"===i,f=r.length>1&&"string"==typeof r[0]&&!c.hasConsoleSubstitutions(r[0]),h={...d,...f?c.createConsoleTemplateAttributes(a,l):{}};u._INTERNAL_captureLog({level:p?"info":i,message:c.formatConsoleArgs(r,o,s),severityNumber:p?10:void 0,attributes:h})})}}})},15300:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(76677),a=r(41291),o=r(15793),s=r(53374),l=r(65224),u=r(53440),c=r(40330),d=r(95068),p=r(48519),f=r(34175);function h(e,t,r){let n="object"==typeof r&&null!==r?r.onRequestSpanEnd:void 0;n?.(e,{headers:t.response?.headers,error:t.error})}function m(e,t,r,n){var i;let a=p.getTraceData({span:r,propagateTraceparent:n}),o=a["sentry-trace"],l=a.baggage,u=a.traceparent;if(!o)return;let c=t.headers||(s.isRequest(e)?e.headers:void 0);if(!c)return{...a};if(i=c,"u">typeof Headers&&s.isInstanceOf(i,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&u&&!e.get("traceparent")&&e.set("traceparent",u),l){let t=e.get("baggage");t?g(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(c)){let e=[...c];c.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",o]),n&&u&&!c.find(e=>"traceparent"===e[0])&&e.push(["traceparent",u]);let t=c.find(e=>"baggage"===e[0]&&g(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,r="baggage"in c?c.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],a=r&&(Array.isArray(r)?r.find(e=>g(e)):g(r));l&&!a&&i.push(l);let s={...c,"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0};return n&&u&&!t&&(s.traceparent=u),s}}function g(e){return e.split(",").some(e=>e.trim().startsWith(u.SENTRY_BAGGAGE_KEY_PREFIX))}function _(e,t,r,n){let a={url:f.stripDataUrlContent(e),type:"fetch","http.method":r,[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(f.isURLObjectRelative(t)||(a["http.url"]=f.stripDataUrlContent(t.href),a["server.address"]=t.host),t.search&&(a["http.query"]=t.search),t.hash&&(a["http.fragment"]=t.hash)),a}t._addTracingHeadersToFetchRequest=m,t._callOnRequestSpanEnd=h,t.instrumentFetchRequest=function(e,t,r,i,s){if(!e.fetchData)return;let{method:u,url:p}=e.fetchData,g=l.hasSpansEnabled()&&t(p);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let r=i[t];r&&(g&&(function(e,t){if(t.response){o.setHttpStatus(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(r,e),h(r,e,s)),delete i[t]);return}let{spanOrigin:y="auto.http.browser",propagateTraceparent:S=!1}="object"==typeof s?s:{spanOrigin:s},E=!!a.getActiveSpan(),b=g&&E?d.startInactiveSpan(function(e,t,r){if(e.startsWith("data:")){let n=f.stripDataUrlContent(e);return{name:`${t} ${n}`,attributes:_(e,void 0,t,r)}}let n=f.parseStringToURLObject(e),i=n?f.getSanitizedUrlStringFromUrlObject(n):e;return{name:`${t} ${i}`,attributes:_(e,n,t,r)}}(p,u,y)):new c.SentryNonRecordingSpan;if(e.fetchData.__span=b.spanContext().spanId,i[b.spanContext().spanId]=b,r(e.fetchData.url)){let t=e.args[0],r={...e.args[1]||{}},n=m(t,r,l.hasSpansEnabled()&&E?b:void 0,S);n&&(e.args[1]=r,r.headers=n)}let T=n.getClient();if(T){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};T.emit("beforeOutgoingRequestSpan",b,t)}return b}},15482:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(71296),i=e=>new TextEncoder().encode(e).length,a=e=>i(JSON.stringify(e));function o(e,t){if(i(e)<=t)return e;let r=0,n=e.length,a="";for(;r<=n;){let o=Math.floor((r+n)/2),s=e.slice(0,o);i(s)<=t?(a=s,r=o+1):n=o-1}return a}function s(e,t){return"string"==typeof e?t:{...e,text:t}}function l(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}t.DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT=2e4,t.truncateGenAiMessages=function(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let r;t&&"object"==typeof t&&(null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)?r={...t,content:e(t.content)}:"content"in t&&n.isContentMedia(t.content)&&(r={...t,content:n.stripInlineMediaFromSingleMessage(t.content)}),l(t)&&(r={...r??t,parts:e(t.parts)}),n.isContentMedia(r)?r=n.stripInlineMediaFromSingleMessage(r):n.isContentMedia(t)&&(r=n.stripInlineMediaFromSingleMessage(t)));return r??t})}([e[e.length-1]]),r=t[0];return 19998>=a(r)?t:function(e){if(!e)return[];if("string"==typeof e){let t=o(e,19998);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let t=19998-a({...e,content:""});if(t<=0)return[];let r=o(e.content,t);return[{...e,content:r}]}return l(e)?function(e,t){let{parts:r}=e,n=r.map(e=>s(e,"")),l=t-a({...e,parts:n});if(l<=0)return[];let u=[];for(let e of r){let t="string"==typeof e?e:"text"in e?e.text:"",r=i(t);if(r<=l)u.push(e),l-=r;else if(0===u.length){let r=o(t,l);r&&u.push(s(e,r));break}else break}return u.length<=0?[]:[{...e,parts:u}]}(e,19998):[]}(r)},t.truncateGenAiStringInput=function(e){return o(e,2e4)}},15793:(e,t)=>
473{function r(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:"unauthenticated"};case 403:return{code:2,message:"permission_denied"};case 404:return{code:2,message:"not_found"};case 409:return{code:2,message:"already_exists"};case 413:return{code:2,message:"failed_precondition"};case 429:return{code:2,message:"resource_exhausted"};case 499:return{code:2,message:"cancelled"};default:return{code:2,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:"unimplemented"};case 503:return{code:2,message:"unavailable"};case 504:return{code:2,message:"deadline_exceeded"}}return{code:2,message:"internal_error"}}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.SPAN_STATUS_ERROR=2,t.SPAN_STATUS_OK=1,t.SPAN_STATUS_UNSET=0,t.getSpanStatusFromHttpCode=r,t.setHttpStatus=function(e,t){e.setAttribute("http.response.status_code",t);let n=r(t);"unknown_error"!==n.message&&e.setStatus(n)}},15897:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(46298),i=r(47700),a=r(76020),o={cookies:!0,data:!0,headers:!0,query_string:!0,url:!0};t.requestDataIntegration=n.defineIntegration((e={})=>{let t={...o,...e.include};return{name:"RequestData",processEvent(e,r,n){let{sdkProcessingMetadata:o={}}=e,{normalizedRequest:s,ipAddress:l}=o,u={...t,ip:t.ip??n.getOptions().sendDefaultPii};return s&&function(e,t,r,n){var o,s;let l,u;if(e.request={...e.request,...(o=t,s=n,l={},u={...o.headers},s.headers&&(l.headers=u,s.cookies||delete u.cookie,s.ip||a.ipHeaderNames.forEach(e=>{delete u[e]})),l.method=o.method,s.url&&(l.url=o.url),s.cookies&&(l.cookies=o.cookies||(u?.cookie?i.parseCookie(u.cookie):void 0)||{}),s.query_string&&(l.query_string=o.query_string),s.data&&(l.data=o.data),l)},n.ip){let n=t.headers&&a.getClientIPAddress(t.headers)||r.ipAddress;n&&(e.user={...e.user,ip_address:n})}}(e,s,{ipAddress:l},u),e}}})},15917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return E},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return y}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(75591),o=r(66476),s=r(15383),l=a._(r(33475)),u=o._(r(14343)),c=r(45955),d=r(6520),p=r(99660),f=r(31942),h=new Map,m=new Set,g=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:a,children:o="",strategy:s="afterInteractive",onError:u,stylesheets:c}=e,p=r||t;if(p&&m.has(p))return;if(h.has(t)){m.add(p),h.get(t).then(n,u);return}let f=()=>{i&&i(),m.add(p)},g=document.createElement("script"),_=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),f()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});a?(g.innerHTML=a.__html||"",f()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",f()):t&&(g.src=t,h.set(t,_)),(0,d.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),c&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(g)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>g(e))}):g(e)}function y(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function S(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:a="afterInteractive",onError:o,stylesheets:d,...h}=e,{updateScripts:_,scripts:y,getIsSsr:S,appDir:E,nonce:b}=(0,u.useContext)(c.HeadManagerContext);b=h.nonce||b;let T=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;T.current||(i&&e&&m.has(e)&&i(),T.current=!0)},[i,t,r]);let v=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!v.current){if("afterInteractive"===a)g(e);else"lazyOnload"===a&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>g(e))}));v.current=!0}},[e,a]),("beforeInteractive"===a||"worker"===a)&&(_?(y[a]=(y[a]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:o,...h,nonce:b}]),_(y)):S&&S()?m.add(t||r):S&&!S()&&g({...e,nonce:b}
473)),E){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===a)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}]))})`}});else return l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin}),(0,s.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,f.htmlEscapeJsonString)(JSON.stringify([r,{...h,id:t}]))})`}});"afterInteractive"===a&&r&&l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(S,"__nextScript",{value:!0});let E=S;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16039:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(42686);t.generateSpanId=function(){return n.uuid4().substring(16)},t.generateTraceId=function(){return n.uuid4()}},16596:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(51045),o=r(75309);function s(e,t){a.fill(e,t,e=>function(r,...a){var o,s,u;let c=a[a.length-1];if("function"!=typeof c)return e.call(this,r,...a);let d=(o=c,s=t,u=r,function(...e){try{return l.call(this,o,s,u,e)}catch(t){return n.DEBUG_BUILD&&i.debug.warn("MCP handler wrapping failed:",t),o.apply(this,e)}});return e.call(this,r,...a.slice(0,-1),d)})}function l(e,t,r,n){try{let i=e.apply(this,n);if(i&&"object"==typeof i&&"function"==typeof i.then)return Promise.resolve(i).catch(e=>{throw u(e,t,r),e});return i}catch(e){throw u(e,t,r),e}}function u(e,t,r){try{let n={};"tool"===t?(n.tool_name=r,"ProtocolValidationError"===e.name||e.message.includes("validation")||e.message.includes("protocol")?o.captureError(e,"validation",n):"ServerTimeoutError"===e.name||e.message.includes("timed out")||e.message.includes("timeout")?o.captureError(e,"timeout",n):o.captureError(e,"tool_execution",n)):"resource"===t?(n.resource_uri=r,o.captureError(e,"resource_execution",n)):"prompt"===t&&(n.prompt_name=r,o.captureError(e,"prompt_execution",n))}catch(e){}}function c(e){s(e,"tool")}function d(e){s(e,"resource")}function p(e){s(e,"prompt")}t.wrapAllMCPHandlers=function(e){c(e),d(e),p(e)},t.wrapPromptHandlers=p,t.wrapResourceHandlers=d,t.wrapToolHandlers=c},16632:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(80804),i=r(86160),a=r(6935),o=r(6386);t.handleTunnelRequest=async function(e){let t,{request:r,allowedDsns:s}=e;if(0===s.length)return new Response("Tunnel not configured",{status:500});let l=new Uint8Array(await r.arrayBuffer());try{[t]=o.parseEnvelope(l)}catch{return new Response("Invalid envelope",{status:400})}if(!t)return new Response("Invalid envelope: missing header",{status:400});let u=t.dsn;if(!u)return new Response("Invalid envelope: missing DSN",{status:400});if(!s.some(e=>e===u))return i.debug.warn(`Sentry tunnel: rejected request with unauthorized DSN (${u})`),new Response("DSN not allowed",{status:403});let c=a.makeDsn(u);if(!c)return i.debug.warn(`Could not extract DSN Components from: ${u}`),new Response("Invalid DSN",{status:403});let d=n.getEnvelopeEndpointWithUrlEncodedAuth(c);try{return await fetch(d,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:l})}catch(e){return i.debug.error("Sentry tunnel: failed to forward envelope",e),new Response("Failed to forward envelope to Sentry",{status:500})}}},16778:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(5756),a=r(2698),o=new WeakMap,s=new Map,l={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function u(e){let{url:t}=n.spanToJSON(e).data;if(!t||"string"!=typeof t)return;let r=i.addPerformanceInstrumentationHandler("resource",({entries:n})=>
473{n.forEach(n=>{a.isPerformanceResourceTiming(n)&&n.name.endsWith(t)&&(e.setAttributes(i.resourceTimingToSpanAttributes(n)),setTimeout(r))})})}function c(e,t){let r=n.getLocationHref();if(r){let i,a;try{i=new URL(e,r),a=new URL(r).origin}catch{return!1}let o=i.origin===a;return t?n.stringMatchesSomePattern(i.toString(),t)||o&&n.stringMatchesSomePattern(i.pathname,t):o}{let r=!!e.match(/^\/(?!\/)/);return t?n.stringMatchesSomePattern(e,t):r}}t.defaultRequestInstrumentationOptions=l,t.instrumentOutgoingRequests=function(e,t){let{traceFetch:r,traceXHR:d,trackFetchStreamPerformance:p,shouldCreateSpanForRequest:f,enableHTTPTimings:h,tracePropagationTargets:m,onRequestSpanStart:g,onRequestSpanEnd:_}={...l,...t},y="function"==typeof f?f:e=>!0,S=e=>c(e,m),E={},b=e.getOptions().propagateTraceparent;r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=s.get(e.span_id);t&&(e.timestamp=t/1e3,s.delete(e.span_id))}}),e)),p&&n.addFetchEndInstrumentationHandler(e=>{if(e.response){let t=o.get(e.response);t&&e.endTimestamp&&s.set(t,e.endTimestamp)}}),n.addFetchInstrumentationHandler(e=>{let t=n.instrumentFetchRequest(e,y,S,E,{propagateTraceparent:b,onRequestSpanEnd:_});if(e.response&&e.fetchData.__span&&o.set(e.response,e.fetchData.__span),t){let r=a.getFullURL(e.fetchData.url),i=r?n.parseUrl(r).host:void 0;t.setAttributes({"http.url":r?n.stripDataUrlContent(r):void 0,"server.address":i}),h&&u(t),g?.(t,{headers:e.headers})}})),d&&i.addXhrInstrumentationHandler(e=>{let t=function(e,t,r,o,s,l){let u=e.xhr,c=u?.[i.SENTRY_XHR_DATA_KEY];if(!u||u.__sentry_own_request__||!c)return;let{url:d,method:p}=c,f=n.hasSpansEnabled()&&t(d);if(e.endTimestamp){let t=u.__sentry_xhr_span_id__;if(!t)return;let r=o[t];r&&(f&&void 0!==c.status_code&&(n.setHttpStatus(r,c.status_code),r.end(),l?.(r,{headers:a.createHeadersSafely(i.parseXhrResponseHeaders(u)),error:e.error})),delete o[t]);return}let h=a.getFullURL(d),m=h?n.parseUrl(h):n.parseUrl(d),g=n.stripDataUrlContent(n.stripUrlQueryAndFragment(d)),_=!!n.getActiveSpan(),y=f&&_?n.startInactiveSpan({name:`${p} ${g}`,attributes:{url:n.stripDataUrlContent(d),type:"xhr","http.method":p,"http.url":h?n.stripDataUrlContent(h):void 0,"server.address":m?.host,[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...m?.search&&{"http.query":m?.search},...m?.hash&&{"http.fragment":m?.hash}}}):new n.SentryNonRecordingSpan;u.__sentry_xhr_span_id__=y.spanContext().spanId,o[u.__sentry_xhr_span_id__]=y,r(d)&&function(e,t,r){let{"sentry-trace":i,baggage:o,traceparent:s}=n.getTraceData({span:t,propagateTraceparent:r});i&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&a.baggageHeaderHasSentryValues(t)||e.setRequestHeader("baggage",r)}}catch{}}(e,i,o,s)}(u,n.hasSpansEnabled()&&_?y:void 0,s);let S=n.getClient();return S&&S.emit("beforeOutgoingRequestSpan",y,e),y}(e,y,S,E,b,_);t&&(h&&u(t),g?.(t,{headers:a.createHeadersSafely(e.xhr.__sentry_xhr_v3__?.request_headers)}))})},t.shouldAttachHeaders=c},16964:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(75171);function a(e){return e?((n.browserPerformanceTimeOrigin()||performance.timeOrigin)+e)/1e3:e}t.resourceTimingToSpanAttributes=function(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=i.extractNetworkProtocol(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return n.browserPerformanceTimeOrigin()||i.getBrowserPerformanceAPI()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":a(e.redirectStart),"http.request.redirect_end":a(e.redirectEnd),"http.request.worker_start":a(e.workerStart),"http.request.fetch_start":a(e.fetchStart),"http.request.domain_lookup_start":a(e.domainLookupStart),"http.request.domain_lookup_end":a(e.domainLookupEnd),"http.request.connect_start":a(e.connectStart),"http.request.secure_connection_start":a(e.secureConnectionStart),"http.request.connection_end":a(e.connectEnd),"http.request.request_start":a(e.requestStart),"http.request.response_start":a(e.responseStart),"http.request.response_end":a(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}},17805:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(62151);function o(e){i.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}t.reparentChildSpans=function(e,t){let r=t.parent_span_id,n=t.span_id;if(r)for(let t of e)t.parent_span_id===n&&(t.parent_span_id=r)}
473,t.shouldIgnoreSpan=function(e,t){if(!t?.length||!e.description)return!1;for(let i of t){var r;if("string"==typeof(r=i)||r instanceof RegExp){if(a.isMatchingPattern(e.description,i))return n.DEBUG_BUILD&&o(e),!0;continue}if(!i.name&&!i.op)continue;let t=!i.name||a.isMatchingPattern(e.description,i.name),s=!i.op||e.op&&a.isMatchingPattern(e.op,i.op);if(t&&s)return n.DEBUG_BUILD&&o(e),!0}return!1}},18187:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(23105),i=r(23675),a=r(7571),o=r(40584);function s(e){return e.filter(e=>!!e&&"object"==typeof e&&"role"in e&&"content"in e)}function l(e){try{let t=JSON.parse(e);if(t&&"object"==typeof t){let{messages:e}=t,{prompt:r,system:n}=t,i=[];if("string"==typeof n&&i.push({role:"system",content:n}),"string"==typeof e)try{e=JSON.parse(e)}catch{}if(Array.isArray(e))return i.push(...s(e)),i;if(Array.isArray(r))return i.push(...s(r)),i;if("string"==typeof r&&i.push({role:"user",content:r}),i.length>0)return i}}catch{}return[]}t._INTERNAL_cleanupToolCallSpan=function(e){a.toolCallSpanMap.delete(e)},t._INTERNAL_getSpanForToolCallId=function(e){return a.toolCallSpanMap.get(e)},t.accumulateTokensForParent=function(e,t){let r=e.parent_span_id;if(!r)return;let i=e.data[n.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE],a=e.data[n.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE];if("number"==typeof i||"number"==typeof a){let e=t.get(r)||{inputTokens:0,outputTokens:0};"number"==typeof i&&(e.inputTokens+=i),"number"==typeof a&&(e.outputTokens+=a),t.set(r,e)}},t.applyAccumulatedTokens=function(e,t){let r=t.get(e.span_id);r&&e.data&&(r.inputTokens>0&&(e.data[n.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=r.inputTokens),r.outputTokens>0&&(e.data[n.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=r.outputTokens),(r.inputTokens>0||r.outputTokens>0)&&(e.data["gen_ai.usage.total_tokens"]=r.inputTokens+r.outputTokens))},t.convertAvailableToolsToJsonString=function(e){return JSON.stringify(e.map(e=>{if("string"==typeof e)try{return JSON.parse(e)}catch{}return e}))},t.convertUserInputToMessagesFormat=l,t.getSpanOpFromName=function(e){switch(e){case"ai.generateText":case"ai.streamText":case"ai.generateObject":case"ai.streamObject":case"ai.embed":case"ai.embedMany":case"ai.rerank":return n.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE;case"ai.generateText.doGenerate":return n.GEN_AI_GENERATE_TEXT_DO_GENERATE_OPERATION_ATTRIBUTE;case"ai.streamText.doStream":return n.GEN_AI_STREAM_TEXT_DO_STREAM_OPERATION_ATTRIBUTE;case"ai.generateObject.doGenerate":return n.GEN_AI_GENERATE_OBJECT_DO_GENERATE_OPERATION_ATTRIBUTE;case"ai.streamObject.doStream":return n.GEN_AI_STREAM_OBJECT_DO_STREAM_OPERATION_ATTRIBUTE;case"ai.embed.doEmbed":return n.GEN_AI_EMBED_DO_EMBED_OPERATION_ATTRIBUTE;case"ai.embedMany.doEmbed":return n.GEN_AI_EMBED_MANY_DO_EMBED_OPERATION_ATTRIBUTE;case"ai.rerank.doRerank":return n.GEN_AI_RERANK_DO_RERANK_OPERATION_ATTRIBUTE;case"ai.toolCall":return n.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE;default:if(e.startsWith("ai.stream"))return"ai.run";return}},t.requestMessagesFromPrompt=function(e,t){if("string"!=typeof t[o.AI_PROMPT_ATTRIBUTE]||t[n.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]||t[o.AI_PROMPT_MESSAGES_ATTRIBUTE]){if
473("string"==typeof t[o.AI_PROMPT_MESSAGES_ATTRIBUTE])try{let r=JSON.parse(t[o.AI_PROMPT_MESSAGES_ATTRIBUTE]);if(Array.isArray(r)){let{systemInstructions:t,filteredMessages:a}=i.extractSystemInstructions(r);t&&e.setAttribute(n.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);let s=Array.isArray(a)?a.length:0,l=i.getTruncatedJsonString(a);e.setAttributes({[o.AI_PROMPT_MESSAGES_ATTRIBUTE]:l,[n.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:l,[n.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:s})}}catch{}}else{let r=l(t[o.AI_PROMPT_ATTRIBUTE]);if(r.length){let{systemInstructions:t,filteredMessages:a}=i.extractSystemInstructions(r);t&&e.setAttribute(n.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);let s=Array.isArray(a)?a.length:0,l=i.getTruncatedJsonString(a);e.setAttributes({[o.AI_PROMPT_ATTRIBUTE]:l,[n.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:l,[n.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:s})}}}},18339:(e,t,r)=>{"use strict";function n(e){return function(){let{cookie:t}=e;if(!t)return{};let{parse:n}=r(68804);return n(Array.isArray(t)?t.join("; "):t)}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getCookieParser",{enumerable:!0,get:function(){return n}})},18533:(e,t,r)=>{"use strict";r.d(t,{li:()=>g,mG:()=>m});var n=r(60806),i=r(62877),a=r(59685),o=r(21275),s=r(13681),l=r(21187),u=r(63625),c=r(65231),d=r(88858),p=r(27481),f=r(78886),h=r(21762);function m(e,t,r,m,g,_){var y,S,E,b;let T,{normalizeDepth:v=3,normalizeMaxBreadth:I=1e3}=e,A={...t,event_id:t.event_id||r.event_id||(0,c.eJ)(),timestamp:t.timestamp||(0,h.lu)()},R=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:i,dist:a,maxValueLength:o}=t;e.environment=e.environment||r||n.U,!e.release&&i&&(e.release=i),!e.dist&&a&&(e.dist=a);let s=e.request;s?.url&&o&&(s.url=(0,f.xv)(s.url,o)),o&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,f.xv)(e.value,o))})})(A,e),y=A,(S=R).length>0&&(y.sdk=y.sdk||{},y.sdk.integrations=[...y.sdk.integrations||[],...S]),g&&g.emit("applyFrameMetadata",t),void 0===t.type&&(E=A,b=e.stackParser,T=(0,u.z)(b),E.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=T[e.filename])})}));let O=function(e,t){if(!t)return e;let r=e?e.clone():new l.H;return r.update(t),r}(m,r.captureContext);r.mechanism&&(0,c.M6)(A,r.mechanism);let w=g?g.getEventProcessors():[],N=(0,p.Om)(_,O),C=[...r.attachments||[],...N.attachments];C.length&&(r.attachments=C),(0,p.e2)(A,N);let P=[...w,...N.eventProcessors];return(r.data&&!0===r.data.__sentry__?(0,s.XW)(A):function(e,t,r,n=0){try{let l=function e(t,r,n,s){let l=n[s];if(!t||!l)return t;let u=l({...t},r);return(i.T&&null===u&&a.Yz.log(`Event processor "${l.id||"?"}" dropped event`),(0,o.Qg)(u))?u.then(t=>e(t,r,n,s+1)):e(u,r,n,s+1)}(t,r,e,n);return(0,o.Qg)(l)?l:(0,s.XW)(l)}catch(e){return(0,s.xg)(e)}}(P,A,r)).then(e=>(e&&function(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof v&&v>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,d.S8)(e.data,t,r)}}))},...e.user&&{user:(0,d.S8)(e.user,t,r)},...e.contexts&&{contexts:(0,d.S8)(e.contexts,t,r)},...e.extra&&{extra:(0,d.S8)(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,d.S8)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,d.S8)(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,d.S8)(e.contexts.flags,3,r)),n}(e,v,I):e)}function g(e){if(e){var t;return(t=e)instanceof l.H||"function"==typeof t||Object.keys(e).some(e=>_.includes(e))?{captureContext:e}:e}}let _=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},19849:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.WINDOW=r(79700).GLOBAL_OBJ},20041:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(85699);t.httpContextIntegration=n.defineIntegration(()=>({name:"HttpContext",preprocessEvent(e){if(!i.WINDOW.navigator&&!i.WINDOW.location&&!i.WINDOW.document)return;let t=i.getHttpRequestData(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}}))},20078:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(85699);t.checkAndWarnIfIsEmbeddedBrowserExtension=function(){return!!function(){if(void 0===a.WINDOW.window)return!1;let e=a.WINDOW;if(e.nw)return!1;let t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;
473let r=n.getLocationHref();return!(a.WINDOW===a.WINDOW.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>r.startsWith(`${e}://`)))}()&&(i.DEBUG_BUILD&&n.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)}},20136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={HTML_LIMITED_BOT_UA_RE:function(){return a.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return s},getBotType:function(){return c},isBot:function(){return u}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(51866),o=/Googlebot(?!-)|Googlebot$/i,s=a.HTML_LIMITED_BOT_UA_RE.source;function l(e){return a.HTML_LIMITED_BOT_UA_RE.test(e)}function u(e){return o.test(e)||l(e)}function c(e){return o.test(e)?"dom":l(e)?"html":void 0}},20587:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(85699);t.showReportDialog=function(e={}){let t=a.WINDOW.document,r=t?.head||t?.body;if(!r){i.DEBUG_BUILD&&n.debug.error("[showReportDialog] Global document not defined");return}let o=n.getCurrentScope(),s=n.getClient(),l=s?.getDsn();if(!l){i.DEBUG_BUILD&&n.debug.error("[showReportDialog] DSN not configured");return}let u={...e,user:{...o.getUser(),...e.user},eventId:e.eventId||n.lastEventId()},c=a.WINDOW.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=n.getReportDialogEndpoint(l,u);let{onLoad:d,onClose:p}=u;if(d&&(c.onload=d),p){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{p()}finally{a.WINDOW.removeEventListener("message",e)}};a.WINDOW.addEventListener("message",e)}r.appendChild(c)}},20789:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(19849),i=r(72055),a=r(45573),o=r(49287),s=r(41452),l=r(41504),u=r(31603),c=r(30731),d=r(46181),p=[.1,.25];t.CLSThresholds=p,t.onCLS=(e,t={})=>{d.onFCP(c.runOnce(()=>{let r,c=o.initMetric("CLS",0),d=a.getVisibilityWatcher(),f=s.initUnique(t,l.LayoutShiftManager),h=e=>{for(let t of e)f._processEntry(t);f._sessionValue>c.value&&(c.value=f._sessionValue,c.entries=f._sessionEntries,r())},m=u.observe("layout-shift",h);m&&(r=i.bindReporter(e,c,p,t.reportAllChanges),d.onHidden(()=>{h(m.takeRecords()),r(!0)}),n.WINDOW?.setTimeout?.(r))}))}},21086:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(60008),i={"tools/call":{targetField:"name",targetAttribute:n.MCP_TOOL_NAME_ATTRIBUTE,captureArguments:!0,argumentsField:"arguments"},"resources/read":{targetField:"uri",targetAttribute:n.MCP_RESOURCE_URI_ATTRIBUTE,captureUri:!0},"resources/subscribe":{targetField:"uri",targetAttribute:n.MCP_RESOURCE_URI_ATTRIBUTE},"resources/unsubscribe":{targetField:"uri",targetAttribute:n.MCP_RESOURCE_URI_ATTRIBUTE},"prompts/get":{targetField:"name",targetAttribute:n.MCP_PROMPT_NAME_ATTRIBUTE,captureName:!0,captureArguments:!0,argumentsField:"arguments"}};t.extractTargetInfo=function(e,t){let r=i[e];if(!r)return{attributes:{}};let n=r.targetField&&"string"==typeof t?.[r.targetField]?t[r.targetField]:void 0;return{target:n,attributes:n&&r.targetAttribute?{[r.targetAttribute]:n}:{}}},t.getRequestArguments=function(e,t){let r={},a=i[e];if(!a)return r;if(a.captureArguments&&a.argumentsField&&t?.[a.argumentsField]){let e=t[a.argumentsField];if("object"==typeof e&&null!==e)for(let[t,i]of Object.entries(e))r[`${n.MCP_REQUEST_ARGUMENT}.${t.toLowerCase()}`]=JSON.stringify(i)}return a.captureUri&&t?.uri&&(r[`${n.MCP_REQUEST_ARGUMENT}.uri`]=JSON.stringify(t.uri)),a.captureName&&t?.name&&(r[`${n.MCP_REQUEST_ARGUMENT}.name`]=JSON.stringify(t.name)),r}},21187:(e,t,r)=>{"use strict";r.d(t,{H:()=>h});var n=r(62877),i=r(60319),a=r(59685),o=r(21275),s=r(38717),l=r(65231),u=r(24694),c=r(88892),d=r(86006),p=r(78886),f=r(21762);class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,u.e)(),sampleRand:(0,c.hY)()}}clone(){let e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,(0,d.r)(e,(0,d.f)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.qO)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,attributes:n,extra:i,user:a,contexts:s,level:l,fingerprint:u=[],propagationContext:c,conversationId:d}=(t instanceof h?t.getScopeData():(0,o.Qd)(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),d&&(this._conversationId=d),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,(0,d.r)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.e)(),sampleRand:(0,c.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,f.lu)(),...e,message:e.message?(0,p.xv)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,d.f)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,s.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
473captureException(e,t){let r=t?.event_id||(0,l.eJ)();if(!this._client)return n.T&&a.Yz.warn("No client configured on scope - will not capture exception!"),r;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||(0,l.eJ)();if(!this._client)return n.T&&a.Yz.warn("No client configured on scope - will not capture message!"),i;let o=r?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:i},this),i}captureEvent(e,t){let r=e.event_id||t?.event_id||(0,l.eJ)();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):n.T&&a.Yz.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},21275:(e,t,r)=>{"use strict";r.d(t,{BD:()=>s,Kg:()=>u,L2:()=>S,NF:()=>c,Qd:()=>p,Qg:()=>g,T2:()=>o,W6:()=>l,bJ:()=>i,gd:()=>m,ks:()=>E,mE:()=>_,sO:()=>d,tH:()=>y,vq:()=>h,xH:()=>f});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return y(e,Error)}}function a(e,t){return n.call(e)===`[object ${t}]`}function o(e){return a(e,"ErrorEvent")}function s(e){return a(e,"DOMError")}function l(e){return a(e,"DOMException")}function u(e){return a(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function p(e){return a(e,"Object")}function f(e){return"u">typeof Event&&y(e,Event)}function h(e){return"u">typeof Element&&y(e,Element)}function m(e){return a(e,"RegExp")}function g(e){return!!(e?.then&&"function"==typeof e.then)}
473function _(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e,t){try{return e instanceof t}catch{return!1}}function S(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode))}function E(e){return"u">typeof Request&&y(e,Request)}},21522:(e,t,r)=>{e=r.nmd(e);var n=r(68336);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=r(493);function a(e,t){return e.require(t)}t.isNodeEnv=function(){return!i.isBrowserBundle()&&"[object process]"===Object.prototype.toString.call(void 0!==n?n:0)},t.loadModule=function(t,r=e){let n;try{n=a(r,t)}catch{}if(!n)try{let{cwd:e}=a(r,"process");n=a(r,`${e()}/node_modules/${t}`)}catch{}return n}},21616:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(19849),a="__sentry_xhr_v3__";function o(){if(!i.WINDOW.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let i=Error(),o=1e3*n.timestampInSeconds(),s=n.isString(r[0])?r[0].toUpperCase():void 0,l=function(e){if(n.isString(e))return e;try{return e.toString()}catch{}}(r[1]);if(!s||!l)return e.apply(t,r);t[a]={method:s,url:l,request_headers:{}},"POST"===s&&l.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let u=()=>{let e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}let r={endTimestamp:1e3*n.timestampInSeconds(),startTimestamp:o,xhr:t,virtualError:i};n.triggerHandlers("xhr",r)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(u(),e.apply(t,r))}):t.addEventListener("readystatechange",u),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[i,o]=r,s=t[a];return s&&n.isString(i)&&n.isString(o)&&(s.request_headers[i.toLowerCase()]=o),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let i=t[a];if(!i)return e.apply(t,r);void 0!==r[0]&&(i.body=r[0]);let o={startTimestamp:1e3*n.timestampInSeconds(),xhr:t};return n.triggerHandlers("xhr",o),e.apply(t,r)}})}t.SENTRY_XHR_DATA_KEY=a,t.addXhrInstrumentationHandler=function(e){n.addHandler("xhr",e),n.maybeInstrument("xhr",o)},t.instrumentXHR=o},21762:(e,t,r)=>{"use strict";let n;r.d(t,{k3:()=>u,lu:()=>o,zf:()=>s});var i=r(88892),a=r(71706);function o(){return(0,i.Wk)()/1e3}function s(){return(n??(n=function(){let{performance:e}=a.O;if(!e?.now||!e.timeOrigin)return o;let t=e.timeOrigin;return()=>(t+(0,i.Qw)(()=>e.now()))/1e3}()))()}let l=null;function u(){return null===l&&(l=function(){let{performance:e}=a.O;if(!e?.now)return;let t=(0,i.Qw)(()=>e.now()),r=(0,i.Wk)(),n=e.timeOrigin;if("number"==typeof n&&3e5>Math.abs(n+t-r))return n;let o=e.timing?.navigationStart;return"number"==typeof o&&3e5>Math.abs(o+t-r)?o:r-t}()),l}},21774:(e,t)=>{"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},21821:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(46298),i=r(74085),a=r(6386);t.moduleMetadataIntegration=n.defineIntegration(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{a.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(i.stripMetadataFromStackFrames(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;let r=e.getOptions().stackParser;i.addMetadataToStackFrames(r,t)})}}))},22461:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(35822),i=r(13903),a=Symbol.for("SentryBufferFullError");t.SENTRY_BUFFER_FULL_ERROR=a,t.makePromiseBuffer=function(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return n.rejectedSyncPromise(a);let i=r();return t.add(i),i.then(()=>{t.delete(i)},()=>{t.delete(i)}),i},drain:function(e){if(!t.size)return n.resolvedSyncPromise(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>i.safeUnref(setTimeout(()=>t(!1),e)))]):r}}}},22944:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=new Map,n=new WeakMap;function i(e){let t=e.sessionId;return t?r.get(t):n.get(e)}function a(e,t){let i=e.sessionId;i?r.set(i,t):n.set(e,t)}t.cleanupSessionDataForTransport=function(e){let t=e.sessionId;t&&r.delete(t)},t.getClientInfoForTransport=function(e){return i(e)?.clientInfo},t.getProtocolVersionForTransport=function(e){return i(e)?.protocolVersion},t.getSessionDataForTransport=function(e){return i(e)},t.storeSessionDataForTransport=function(e,t){a(e,t)},t.updateSessionDataForTransport=function(e,t){let r=i(e)||{};a(e,{...r,...t})}},23034:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700);t.createUserFeedbackEnvelope=function(e,{metadata:t,tunnel:r,dsn:i}){let a={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!i&&{dsn:n.dsnToString(i)}},o=[{type:"user_report"},e];return n.createEnvelope(a,[o])}},23045:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(44774),a=r(55639),o=r(75171);function s(e,t,r,a){i.DEBUG_BUILD&&n.debug.log(`Sending LCP span (${e})`);let s=o.msToSec((n.browserPerformanceTimeOrigin()||0)+(t?.startTime||0)),l=n.getCurrentScope().getScopeData().transactionName,u=t?n.htmlTreeAsString(t.element):"Largest contentful paint",c={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":r,"sentry.report_event":a};t&&(t.element&&(c["lcp.element"]=n.htmlTreeAsString(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url),null!=t.loadTime&&(c["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(c["lcp.renderTime"]=t.renderTime),null!=t.size&&(c["lcp.size"]=t.size));let d=o.startStandaloneWebVitalSpan({name:u,transaction:l,attributes:c,startTime:s});d&&(d.addEvent("lcp",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),d.end(s))}t._sendStandaloneLcpSpan=s,t.trackLcpAsStandaloneSpan=function(e){let t,r=0;if(!o.supportsWebVital("largest-contentful-paint"))return;let n=a.addLcpInstrumentationHandler(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);o.listenForWebVitalReportEvents(e,(e,i)=>{s(r,t,i,e),n()})}},23102:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(38398),a=r(86160);function o(e){return!!e&&void 0!==e._profiler&&"function"==typeof e._profiler.start&&"function"==typeof e._profiler.stop}
473t.profiler={startProfiler:function(){let e=n.getClient();if(!e){i.DEBUG_BUILD&&a.debug.warn("No Sentry client available, profiling is not started");return}let t=e.getIntegrationByName("ProfilingIntegration");if(!t){i.DEBUG_BUILD&&a.debug.warn("ProfilingIntegration is not available");return}if(!o(t)){i.DEBUG_BUILD&&a.debug.warn("Profiler is not available on profiling integration.");return}t._profiler.start()},stopProfiler:function(){let e=n.getClient();if(!e){i.DEBUG_BUILD&&a.debug.warn("No Sentry client available, profiling is not started");return}let t=e.getIntegrationByName("ProfilingIntegration");if(!t){i.DEBUG_BUILD&&a.debug.warn("ProfilingIntegration is not available");return}if(!o(t)){i.DEBUG_BUILD&&a.debug.warn("Profiler is not available on profiling integration.");return}t._profiler.stop()}}},23105:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE="anthropic.response.timestamp",t.GEN_AI_AGENT_NAME_ATTRIBUTE="gen_ai.agent.name",t.GEN_AI_CONVERSATION_ID_ATTRIBUTE="gen_ai.conversation.id",t.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE="gen_ai.embeddings.input",t.GEN_AI_EMBED_DO_EMBED_OPERATION_ATTRIBUTE="gen_ai.embed",t.GEN_AI_EMBED_MANY_DO_EMBED_OPERATION_ATTRIBUTE="gen_ai.embed_many",t.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE="gen_ai.execute_tool",t.GEN_AI_GENERATE_OBJECT_DO_GENERATE_OPERATION_ATTRIBUTE="gen_ai.generate_object",t.GEN_AI_GENERATE_TEXT_DO_GENERATE_OPERATION_ATTRIBUTE="gen_ai.generate_text",t.GEN_AI_INPUT_MESSAGES_ATTRIBUTE="gen_ai.input.messages",t.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE="sentry.sdk_meta.gen_ai.input.messages.original_length",t.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE="gen_ai.invoke_agent",t.GEN_AI_OPERATION_NAME_ATTRIBUTE="gen_ai.operation.name",t.GEN_AI_PIPELINE_NAME_ATTRIBUTE="gen_ai.pipeline.name",t.GEN_AI_PROMPT_ATTRIBUTE="gen_ai.prompt",t.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE="gen_ai.request.available_tools",t.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE="gen_ai.request.dimensions",t.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE="gen_ai.request.encoding_format",t.GEN_AI_REQUEST_FREQUENCY_PENA
473LTY_ATTRIBUTE="gen_ai.request.frequency_penalty",t.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE="gen_ai.request.max_tokens",t.GEN_AI_REQUEST_MODEL_ATTRIBUTE="gen_ai.request.model",t.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE="gen_ai.request.presence_penalty",t.GEN_AI_REQUEST_STREAM_ATTRIBUTE="gen_ai.request.stream",t.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE="gen_ai.request.temperature",t.GEN_AI_REQUEST_TOP_K_ATTRIBUTE="gen_ai.request.top_k",t.GEN_AI_REQUEST_TOP_P_ATTRIBUTE="gen_ai.request.top_p",t.GEN_AI_RERANK_DO_RERANK_OPERATION_ATTRIBUTE="gen_ai.rerank",t.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE="gen_ai.response.finish_reasons",t.GEN_AI_RESPONSE_ID_ATTRIBUTE="gen_ai.response.id",t.GEN_AI_RESPONSE_MODEL_ATTRIBUTE="gen_ai.response.model",t.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE="gen_ai.response.stop_reason",t.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE="gen_ai.response.streaming",t.GEN_AI_RESPONSE_TEXT_ATTRIBUTE="gen_ai.response.text",t.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE="gen_ai.response.tool_calls",t.GEN_AI_STREAM_OBJECT_DO_STREAM_OPERATION_ATTRIBUTE="gen_ai.stream_object",t.GEN_AI_STREAM_TEXT_DO_STREAM_OPERATION_ATTRIBUTE="gen_ai.stream_text",t.GEN_AI_SYSTEM_ATTRIBUTE="gen_ai.system",t.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE="gen_ai.system_instructions",t.GEN_AI_TOOL_CALL_ID_ATTRIBUTE="gen_ai.tool.call.id",t.GEN_AI_TOOL_INPUT_ATTRIBUTE="gen_ai.tool.input",t.GEN_AI_TOOL_NAME_ATTRIBUTE="gen_ai.tool.name",t.GEN_AI_TOOL_OUTPUT_ATTRIBUTE="gen_ai.tool.output",t.GEN_AI_TOOL_TYPE_ATTRIBUTE="gen_ai.tool.type",t.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.cache_creation_input_tokens",t.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.cache_read_input_tokens",t.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE="gen_ai.usage.input_tokens",t.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE="gen_ai.usage.input_tokens.cached",t.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE="gen_ai.usage.input_tokens.cache_write",t.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE="gen_ai.usage.output_tokens",t.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE="gen_ai.usage.total_tokens",t.OPENAI_OPERATIONS={CHAT:"chat",EMBEDDINGS:"embeddings"},t.OPENAI_RESPONSE_ID_ATTRIBUTE="openai.response.id",t.OPENAI_RESPONSE_MODEL_ATTRIBUTE="openai.response.model",t.OPENAI_RESPONSE_TIMESTAMP_ATTRIBUTE="openai.response.timestamp",t.OPENAI_USAGE_COMPLETION_TOKENS_ATTRIBUTE="openai.usage.completion_tokens",t.OPENAI_USAGE_PROMPT_TOKENS_ATTRIBUTE="openai.usage.prompt_tokens"},23468:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(46298),i=r(14839),a=r(51045);function o(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n&&(i._INTERNAL_insertFlagToScope(r,n),i._INTERNAL_addFeatureFlagToActiveSpan(r,n)),n}}t.growthbookIntegration=n.defineIntegration(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&a.fill(t,"isOn",o),"function"==typeof t.getFeatureValue&&a.fill(t,"getFeatureValue",o)},processEvent:(e,t,r)=>i._INTERNAL_copyFlagsFromScopeToEvent(e)}))},23607:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(75567),o={},s={};t.addHandler=function(e,t){o[e]=o[e]||[],o[e].push(t)},t.maybeInstrument=function(e,t){if(!s[e]){s[e]=!0;try{t()}catch(t){n.DEBUG_BUILD&&i.debug.error(`Error while instrumenting ${e}`,t)}}},t.resetInstrumentationHandlers=function(){Object.keys(o).forEach(e=>{o[e]=void 0})},t.triggerHandlers=function(e,t){let r=e&&o[e];if(r)for(let o of r)try{o(t)}catch(t){n.DEBUG_BUILD&&i.debug.error(`Error while triggering instrumentation handler.
474Type: ${e}
475Name: ${a.getFunctionName(o)}
476Error:`,t)}}},23675:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(23105),i=r(15482);function a(e){return e.includes("messages")?"chat":e.includes("completions")?"text_completion":e.includes("generateContent")?"generate_content":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}t.buildMethodPath=function(e,t){return e?`${e}.${t}`:t},t.extractSystemInstructions=function(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let r=e[t],n="string"==typeof r.content?r.content:void 0!==r.content?JSON.stringify(r.content):void 0;return n?{systemInstructions:JSON.stringify([{type:"text",content:n}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}},t.getFinalOperationName=a,t.getSpanOperation=function(e){return`gen_ai.${a(e)}`},t.getTruncatedJsonString=function(e){return"string"==typeof e?i.truncateGenAiStringInput(e):Array.isArray(e)?JSON.stringify(i.truncateGenAiMessages(e)):JSON.stringify(e)},t.setTokenUsageAttributes=function(e,t,r,i,a){void 0!==t&&e.setAttributes({[n.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==r&&e.setAttributes({[n.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r}),(void 0!==t||void 0!==r||void 0!==i||void 0!==a)&&e.setAttributes({[n.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:(t??0)+(r??0)+(i??0)+(a??0)})}},23740:function(e,t,r){"use strict";var n,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
476(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),o=0;o<r.length;o++)"default"!==r[o]&&i(t,e,r[o]);return a(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.BaseDenyUrls=void 0;let s=o(r(4974));t.BaseDenyUrls=[/^http:\/\/localhost:\d+\//,/^http:\/\/[\d.]+:\d+\//,/^file:/,/^https?:\/\/\w+\.ngrok\.io\//,/^(\w+@)?(chrome|safari)-extension:\(?\/\//];let l=e=>e.match(/ゲートウェイのタイムアウト|サーバーに接続できません|混雑している可能性があります|上位プロキシサーバーが見つかりません|上位プロキシサーバーから応答がありません/i)||e.match(/upstream connect error|McAfee|^\s*user-script:|WEBCAT|PROXY_AUTH_REQUIRED/i);t.default={makeInit:e=>{var r;if("enabled"in e&&!1===e.enabled)return e;let{beforeSend:n}=e;return Object.assign(Object.assign({},e),{denyUrls:[...e.denyUrls||[],...t.BaseDenyUrls],integrations:e.integrations||[s.captureConsoleIntegration({levels:["warn","error","debug","assert"]}),s.extraErrorDataIntegration()],ignoreErrors:[...e.ignoreErrors||[],"onSvFinishLoading","Failed to fetch","Network request failed","Request failed with status code 40","timeout of 0ms exceeded","サーバに接続できませんでした","ネットワーク接続が切れました","キャンセルしました","Đ\xe3 mất kết nối mạng.","AbortError: Aborted","Network Error","Request aborted","A network error occurred","オブジェクトの呼び出しが無効です",/https?:\/\/www\.mcafee\.com/,"window.webkit.messageHandlers",/^(FBNavResponseEnd|FBNavDomContentLoaded|FBNavAmpDetect|FBNavLoadEventEnd):/,"Can't find variable: YAHOO","_event_hook_map_for3rd","processRandomSelector","DomDistiller debug level","ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications.","_avast_submit","IDBDatabase"],tracesSampleRate:null!=(r=e.tracesSampleRate)?r:0,beforeSend:(e,t)=>((e,t)=>{if(!e)return t.unmatch();let r=e?"string"==typeof e?e:"object"!=typeof e?"":"message"in e?e.message:"":"";return r.match(/Object Not Found Matching Id|www\.mcafee\.com|instantSearchSDKJSBridgeClearHighlight/i)||r.match(/webkitExitFullScreen|zaloJSV2|onorientationchange|ResizeObserver|IDBDatabase/i)||r.match(/SingleFile is hooking the IntersectionObserver API to detect and load deferred images/i)||r.match(/Electron Security Warning|Failed to load script/i)||r.match(/Cancel rendering route/i)||r.match(/Failed to load static props|Loading initial props cancelled/i)?t.match():t.unmatch()})(null==t?void 0:t.originalException,{match:()=>null,unmatch:()=>{var r,i,a,o;return r=e.extra,i={match:()=>null,unmatch:()=>{var r,i;let a;return r=e.contexts,i={match:()=>null,unmatch:()=>{var r;return r={match:()=>null,unmatch:()=>n?n(e,t):e},"u"<typeof window?r.unmatch():((window.navigator||{userAgent:""}).userAgent||"").match(/BingPreview/)?r.match():r.unmatch()}},(a=[["ServerParseError","bodyText"],["Error","response"],["TypeError","sourceURL"]].map(([e,t])=>{let n=null==r?void 0:r[e];if(!n||!n[t])return;let i=n[t];return"string"==typeof i?i:JSON.stringify(i)}).find(e=>e))&&l(a)?i.match():i.unmatch()}},a=null==r?void 0:r.api_response,o={match:i.match,unmatch:()=>((e,t)=>{if(!e)return t.unmatch();let r="string"==typeof e?e:JSON.stringify(e);return r.match(/^[\r\n\s]*\[[\r\n\s]*"?(TMMS:<head>|use meta image|wptagent_message)/)||r.match(/Mixpanel/i)?t.match():t.unmatch()})(null==r?void 0:r.arguments,i)},"string"!=typeof a?o.unmatch():l(a)?o.match():o.unmatch()}})})}}},23954:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(85039);function i(e,t,r,i){n._INTERNAL_captureMetric({type:e,name:t,value:r,unit:i?.unit,attributes:i?.attributes},{scope:i?.scope})}t.count=function(e,t=1,r){i("counter",e,t,r)},t.distribution=function(e,t,r){i("distribution",e,t,r)},t.gauge=function(e,t,r){i("gauge",e,t,r)}},24099:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336);
476t.uiProfiler={startProfiler:function(){let e=n.getClient();if(!e){i.DEBUG_BUILD&&n.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){i.DEBUG_BUILD&&n.debug.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=n.getClient();if(!e){i.DEBUG_BUILD&&n.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){i.DEBUG_BUILD&&n.debug.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}}},24157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return S},NormalizeError:function(){return _},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return m},WEB_VITALS:function(){return i},execOnce:function(){return a},getDisplayName:function(){return c},getLocationOrigin:function(){return l},getURL:function(){return u},isAbsoluteUrl:function(){return s},isResSent:function(){return d},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return b}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&o.test(e)};function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=l();return e.substring(t.length)}function c(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${c(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,m=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class _ extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class S extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},24620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(12140),i=r(97941);function a(e,t,r,a){if(!t||t===r)return e;let o=e.toLowerCase();return!a&&((0,i.pathHasPrefix)(o,"/api")||(0,i.pathHasPrefix)(o,`/${t.toLowerCase()}`))?e:(0,n.addPathPrefix)(e,`/${t}`)}},24694:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a,e:()=>i});var n=r(65231);function i(){return(0,n.eJ)()}function a(){return(0,n.eJ)().substring(16)}},25116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return o},getProperError:function(){return s}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(53447);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function s(e){let t;return o(e)?e:Object.defineProperty(Error((0,a.isPlainObject)(e)?(t=new WeakSet,JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},25335:(e,t,r)=>{e.exports=r(51201)},25601:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(53374),o=r(35822);t.notifyEventProcessors=function(e,t,r,s=0){try{let l=function e(t,r,o,s){let l=o[s];if(!t||!l)return t;let u=l({...t},r);return(n.DEBUG_BUILD&&null===u&&i.debug.log(`Event processor "${l.id||"?"}" dropped event`),a.isThenable(u))?u.then(t=>e(t,r,o,s+1)):e(u,r,o,s+1)}(t,r,e,s);return a.isThenable(l)?l:o.resolvedSyncPromise(l)}catch(e){return o.rejectedSyncPromise(e)}}},25928:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(55639),a=r(75171),o=({entries:e})=>{let t=n.getActiveSpan(),r=t?n.getRootSpan(t):void 0,i=r?n.spanToJSON(r).description:n.getCurrentScope().getScopeData().transactionName;
476e.forEach(e=>{if(!e.identifier)return;let t=e.name,r=e.renderTime,o=e.loadTime,[s,l]=o?[a.msToSec(o),"load-time"]:r?[a.msToSec(r),"render-time"]:[n.timestampInSeconds(),"entry-emission"],u="image-paint"===t?a.msToSec(Math.max(0,(r??0)-(o??0))):0,c={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.elementtiming",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.elementtiming",[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"component","sentry.span_start_time_source":l,"sentry.transaction_name":i,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWidth}x${e.naturalHeight}`:void 0,"element.render_time":r,"element.load_time":o,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};n.startSpan({name:`element[${e.identifier}]`,attributes:c,startTime:s,onlyIfParent:!0},e=>{e.end(s+u)})})};t._onElementTiming=o,t.startTrackingElementTiming=function(){return a.getBrowserPerformanceAPI()&&n.browserPerformanceTimeOrigin()?i.addPerformanceInstrumentationHandler("element",o):()=>void 0}},25952:(e,t,r)=>{"use strict";r.d(t,{AD:()=>d,SB:()=>s,hH:()=>l,ul:()=>c});var n=r(62877),i=r(59685);let a=/^o(\d+)\./,o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(e,t=!1){let{host:r,path:n,pass:i,port:a,projectId:o,protocol:l,publicKey:u}=e;return`${l}://${u}${t&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n?`${n}/`:n}${o}`}function l(e){let t=o.exec(e);if(!t)return void(0,i.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});let[r,n,a="",s="",l="",c=""]=t.slice(1),d="",p=c,f=p.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),p=f.pop()),p){let e=p.match(/^\d+/);e&&(p=e[0])}return u({host:s,pass:a,path:d,projectId:p,port:l,protocol:r,publicKey:n})}function u(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){let t,r=e.getOptions(),{host:n}=e.getDsn()||{};if(r.orgId)t=String(r.orgId);else{let e;n&&(e=n.match(a),t=e?.[1])}return t}function d(e){let t="string"==typeof e?l(e):u(e);if(t&&function(e){if(!n.T)return!0;let{port:t,projectId:r,protocol:a}=e;return!["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.Yz.error(`Invalid Sentry Dsn: ${t} missing`),!0))&&(r.match(/^\d+$/)?"http"!==a&&"https"!==a?(i.Yz.error(`Invalid Sentry Dsn: Invalid protocol ${a}`),!1):!(t&&isNaN(parseInt(t,10)))||(i.Yz.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.Yz.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}},26529:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(76677),a=r(86160),o=r(41291);t.setMeasurement=function(e,t,r,s=o.getActiveSpan()){let l=s&&o.getRootSpan(s);l&&(n.DEBUG_BUILD&&a.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),l.addEvent(e,{[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:r}))},t.timedEventsToMeasurements=function(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],a=r[i.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof n&&"number"==typeof a&&(t[e.name]={value:a,unit:n})}),t}},26611:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=(0,r(70975).getDeploymentId)();globalThis.NEXT_DEPLOYMENT_ID=n,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Router:function(){return s.default},createRouter:function(){return _},default:function(){return m},makePublicRouterInstance:function(){return y},useRouter:function(){return g},withRouter:function(){return c.default}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(75591),o=a._(r(14343)),s=a._(r(8175)),l=r(97959),u=a._(r(25116)),c=a._(r(67972)),d={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},p=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function h(){if(!d.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E1044",enumerable:!1,
476configurable:!0});return d.router}Object.defineProperty(d,"events",{get:()=>s.default.events}),p.forEach(e=>{Object.defineProperty(d,e,{get:()=>h()[e]})}),f.forEach(e=>{d[e]=(...t)=>h()[e](...t)}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{d.ready(()=>{s.default.events.on(e,(...t)=>{let r=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;if(d[r])try{d[r](...t)}catch(e){console.error(`Error when running the Router event: ${r}`),console.error((0,u.default)(e)?`${e.message}
477${e.stack}`:e+"")}})})});let m=d;function g(){let e=o.default.useContext(l.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function _(...e){return d.router=new s.default(...e),d.readyCallbacks.forEach(e=>e()),d.readyCallbacks=[],d.router}function y(e){let t={};for(let r of p){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=s.default.events,f.forEach(r=>{t[r]=(...t)=>e[r](...t)}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26803:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});class r{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}}t.LRUMap=r},27459:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(77191),a=r(43379),o=r(46298),s=r(86160),l=r(42686),u=r(32469),c=r(62151),d=r(76953);t.captureConsoleIntegration=o.defineIntegration((e={})=>{let t=e.levels||s.CONSOLE_LEVELS,r=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in d.GLOBAL_OBJ&&a.addConsoleInstrumentationHandler(({args:a,level:o})=>{var s,d,p;let f,h,m;n.getClient()===e&&t.includes(o)&&(s=a,d=o,p=r,f=u.severityLevelFromString(d),h=Error(),m={level:u.severityLevelFromString(d),extra:{arguments:s}},n.withScope(e=>{if(e.addEventProcessor(e=>(e.logger="console",l.addExceptionMechanism(e,{handled:p,type:"auto.core.capture_console"}),e)),"assert"===d){if(!s[0]){let t=`Assertion failed: ${c.safeJoin(s.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",s.slice(1)),e.captureMessage(t,f,{captureContext:m,syntheticException:h})}return}let t=s.find(e=>e instanceof Error);if(t)return void i.captureException(t,m);let r=c.safeJoin(s," ");e.captureMessage(r,f,{captureContext:m,syntheticException:h})}))})}}})},27481:(e,t,r)=>{"use strict";r.d(t,{Om:()=>c,e2:()=>s});var n=r(31867),i=r(1413),a=r(38717),o=r(1056);function s(e,t){var r,n,a,s,l,u,c,d;let p,f,h,{fingerprint:m,span:g,breadcrumbs:_,sdkProcessingMetadata:y}=t;(function(e,t){let{extra:r,tags:n,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),g&&(r=e,n=g,r.contexts={trace:(0,o.kX)(n),...r.contexts},r.sdkProcessingMetadata={dynamicSamplingContext:(0,i.k1)(n),...r.sdkProcessingMetadata},p=(0,o.zU)(n),(f=(0,o.et)(p).description)&&!r.transaction&&"transaction"===r.type&&(r.transaction=f)),a=e,s=m,a.fingerprint=a.fingerprint?Array.isArray(a.fingerprint)?a.fingerprint:[a.fingerprint]:[],s&&(a.fingerprint=a.fingerprint.concat(s)),a.fingerprint.length||delete a.fingerprint,l=e,u=_,h=[...l.breadcrumbs||[],...u],l.breadcrumbs=h.length?h:void 0,c=e,d=y,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...d}}function l(e,t){let{extra:r,tags:n,attributes:i,user:o,contexts:s,level:l,sdkProcessingMetadata:c,breadcrumbs:d,fingerprint:p,eventProcessors:f,attachments:h,propagationContext:m,transactionName:g,span:_}=t;u(e,"extra",r),u(e,"tags",n),u(e,"attributes",i),u(e,"user",o),u(e,"contexts",s),e.sdkProcessingMetadata=(0,a.h)(e.sdkProcessingMetadata,c,2),l&&(e.level=l),g&&(e.transactionName=g),_&&(e.span=_),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),h.length&&(e.attachments=[...e.attachments,...h]
477),e.propagationContext={...e.propagationContext,...m}}function u(e,t,r){e[t]=(0,a.h)(e[t],r,1)}function c(e,t){let r=(0,n.m6)().getScopeData();return e&&l(r,e.getScopeData()),t&&l(r,t.getScopeData()),r}},28156:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.generateUniqueID=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`},28358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return s},isEqualNode:function(){return o}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(6520);function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function s(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"])if(document.querySelector(`style[data-href="${e.props["data-href"]}"]`))return;else e.props.href=e.props["data-href"],e.props["data-href"]=void 0;let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,n="";if(r){let{children:e}=r.props;n="string"==typeof e?e:Array.isArray(e)?e.join(""):""}n!==document.title&&(document.title=n),["meta","base","link","style","script"].forEach(e=>{!function(e,t){let r=document.querySelector("head");if(!r)return;let n=new Set(r.querySelectorAll(`${e}[data-next-head]`));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&n.add(e)}let i=[];for(let e=0;e<t.length;e++){let r=function({type:e,props:t}){let r=document.createElement(e);(0,a.setAttributesFromProps)(r,t);let{children:n,dangerouslySetInnerHTML:i}=t;return i?r.innerHTML=i.__html||"":n&&(r.textContent="string"==typeof n?n:Array.isArray(n)?n.join(""):""),r}(t[e]);r.setAttribute("data-next-head","");let s=!0;for(let e of n)if(o(e,r)){n.delete(e),s=!1;break}s&&i.push(r)}for(let e of n)e.parentNode?.removeChild(e);for(let e of i)"meta"===e.tagName.toLowerCase()&&null!==e.getAttribute("charset")&&r.prepend(e),r.appendChild(e)}(e,t[e]||[])})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28389:(e,t)=>{function r(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=n.exec(t);return r?r.slice(1):[]}function a(...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=r(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function o(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}function s(e){let t=l(e),n="/"===e.slice(-1),i=r(e.split("/").filter(e=>!!e),!t).join("/");return i||t||(i="."),i&&n&&(i+="/"),(t?"/":"")+i}function l(e){return"/"===e.charAt(0)}t.basename=function(e,t){let r=i(e)[2]||"";return t&&r.slice(-1*t.length)===t&&(r=r.slice(0,r.length-t.length)),r},t.dirname=function(e){let t=i(e),r=t[0]||"",n=t[1];return r||n?(n&&(n=n.slice(0,n.length-1)),r+n):"."},t.isAbsolute=l,t.join=function(...e){return s(e.join("/"))},t.normalizePath=s,t.relative=function(e,t){e=a(e).slice(1),t=a(t).slice(1);let r=o(e.split("/")),n=o(t.split("/")),i=Math.min(r.length,n.length),s=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){s=e;break}let l=[];for(let e=s;e<r.length;e++)l.push("..");return(l=l.concat(n.slice(s))).join("/")},t.resolve=a},28732:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(113),o=r(85699),s=n.defineIntegration((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,i;t.onerror&&(r=e,n.addGlobalErrorInstrumentationHandler(e=>{var t,i,s,l;let u,c,p,f,h,m,{stackParser:g,attachStacktrace:_}=d();if(n.getClient()!==r||o.shouldIgnoreOnError())return;let{msg:y,url:S,line:E,column:b,error:T}=e,v=(t=a.eventFromUnknownInput(g,T||y,void 0,_,!1),i=S,s=E,l=b,h=(f=(p=(c=(u=t.exception=t.exception||{}).values=u.values||[])[0]=c[0]||{}).stacktrace=p.stacktrace||{}).frames=f.frames||[],m=function(e){if(n.isString(e)&&0!==e.length)return e.startsWith("data:")?`<${n.stripDataUrlContent(e,!1)}>`:e}(i)??n.getLocationHref(),0===h.length&&h.push({colno:l,filename:m,function:n.UNKNOWN_FUNCTION,in_app:!0,lineno:s}),t);v.level="error",n.captureEvent(v,{originalException:T,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),c("onerror")),t.onunhandledrejection&&(i=e,n.addGlobalUnhandledRejectionInstrumentationHandler(e=>{let{stackParser:t,attachStacktrace:r}=d();if(n.getClient()!==i||o.shouldIgnoreOnError())return;let s=l(e),c=n.isPrimitive(s)?u(s):a.eventFromUnknownInput(t,s,void 0,r,!0);c.level="error",n.captureEvent(c,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),c("onunhandledrejection"))}}});function l(e){if(n.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 u(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function c(e){i.DEBUG_BUILD&&n.debug.log(`Global Handler attached: ${e}`)}function d(){let e=n.getClient();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}t._eventFromRejectionWithPrimitive=u,t._getUnhandledRejectionError=l,t.globalHandlersIntegration=s},29052:(e,t,r)=>{"use strict";
477Object.defineProperty(t,"__esModule",{value:!0});var n={getSortedRouteObjects:function(){return a.getSortedRouteObjects},getSortedRoutes:function(){return a.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(79734),o=r(66288)},29443:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getPossibleEventMessages=function(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}},30731:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.runOnce=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},30774:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(21522),i=r(76953);t.isBrowser=function(){let e;return"u">typeof window&&(!n.isNodeEnv()||(e=i.GLOBAL_OBJ.process,e?.type==="renderer"))}},30775:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=n.defineIntegration(()=>({name:"OpenFeature",processEvent:(e,t,r)=>n._INTERNAL_copyFlagsFromScopeToEvent(e)}));class a{after(e,t){n._INTERNAL_insertFlagToScope(t.flagKey,t.value),n._INTERNAL_addFeatureFlagToActiveSpan(t.flagKey,t.value)}error(e,t,r){n._INTERNAL_insertFlagToScope(e.flagKey,e.defaultValue),n._INTERNAL_addFeatureFlagToActiveSpan(e.flagKey,e.defaultValue)}}t.OpenFeatureIntegrationHook=a,t.openFeatureIntegration=i},31247:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let n=r(75591),i=r(96335),a=r(60162),o=n._(r(73218)),s=r(77998),l=r(66288),u=r(40126),c=r(84531),d=r(63413);r(51201),r(96315);class p{constructor(e,t){this.routeLoader=(0,d.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}
477getPageList(){return(0,d.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){var t;let r,{asPath:n,href:d,locale:p}=e,{pathname:f,query:h,search:m}=(0,u.parseRelativeUrl)(d),{pathname:g}=(0,u.parseRelativeUrl)(n),_=(0,c.removeTrailingSlash)(f);if("/"!==_[0])throw Object.defineProperty(Error(`Route name should start with a "/", got "${_}"`),"__NEXT_ERROR_CODE",{value:"E303",enumerable:!1,configurable:!0});return t=e.skipInterpolation?g:(0,l.isDynamicRoute)(_)?(0,a.interpolateAs)(f,g,h).result:_,r=(0,o.default)((0,c.removeTrailingSlash)((0,s.addLocale)(t,p)),".json"),(0,i.addBasePath)(`/_next/data/${this.buildId}${r}${m}`,!0)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31267:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(44774),a=Symbol.for("sentry__originalRequestBody");function o(e){return new URLSearchParams(e).toString()}t.ORIGINAL_REQ_BODY=a,t.getBodyString=function(e,t=n.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[o(e)];if(!e)return[void 0]}catch(r){return i.DEBUG_BUILD&&t.error(r,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return i.DEBUG_BUILD&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]},t.getFetchRequestArgBody=function(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][a];if(void 0!==t)return t}},t.parseXhrResponseHeaders=function(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return i.DEBUG_BUILD&&n.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}},t.serializeFormData=o},31462:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(76677);t.convertSpanJsonToTransactionEvent=function(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[n.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements}},t.convertTransactionEventToSpanJson=function(e){let{trace_id:t,parent_span_id:r,span_id:i,status:a,origin:o,data:s,op:l}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:l,parent_span_id:r,span_id:i??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:s?.[n.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:s?.[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}},31514:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(1610),i=r(38398),a=r(77191),o=r(46298),s=r(76677),l=r(86160),u=r(42686),c=r(53374),d=r(15793),p=r(95068),f=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],h=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],m={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},g=["select","insert","upsert","update","delete"];function _(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function y(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function S(e,t={}){switch(e){case"GET":return"select";case"POST":if(t.Prefer?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function E(e,t){let r;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[n,...i]=t.split(".");return r=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&m[n]||"filter",`${r}(${e}, ${i.join(".")})`}function b(e,t=!1){return new Proxy(e,{apply:(r,n,i)=>p.startSpan({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(r,n,i).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:d.SPAN_STATUS_ERROR}),a.captureException(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:d.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:d.SPAN_STATUS_ERROR}),e.end(),a.captureException(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...i))})}let T=e=>{var t;if(!e){i.DEBUG_BUILD&&l.debug.warn("Supabase integration was not installed because no Supabase client was provided.");return}y((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,r){let o=Reflect.apply(e,t,r);return function(e){for(let t of g)y(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,r,o){let f=Reflect.apply(e,r,o),h=f.constructor;return i.DEBUG_BUILD&&l.debug.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),y(h.prototype.then)||(h.prototype.then=new Proxy(h.prototype.then,{apply(e,t,r){let i=S(t.method,t.headers);if(!g.includes(i)||!t?.url?.pathname||"string"!=typeof t.url.pathname)return Reflect.apply(e,t,r);let o=t.url.pathname.split("/"),l=o.length>0?o[o.length-1]:"",f=[];
477for(let[e,r]of t.url.searchParams.entries())f.push(E(e,r));let h=Object.create(null);if(c.isPlainObject(t.body))for(let[e,r]of Object.entries(t.body))h[e]=r;let m=`${"select"===i?"":`${i}${h?"(...) ":""}`}${f.join(" ")} from(${l})`,_={"db.table":l,"db.schema":t.schema,"db.url":t.url.origin,"db.sdk":t.headers["X-Client-Info"],"db.system":"postgresql","db.operation":i,[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return f.length&&(_["db.query"]=f),Object.keys(h).length&&(_["db.body"]=h),p.startSpan({name:m,attributes:_},o=>Reflect.apply(e,t,[]).then(e=>{if(o&&(e&&"object"==typeof e&&"status"in e&&d.setHttpStatus(o,e.status||500),o.end()),e.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let r={};f.length&&(r.query=f),Object.keys(h).length&&(r.body=h),a.captureException(t,e=>(e.addEventProcessor(e=>(u.addExceptionMechanism(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",r),e))}let t={type:"supabase",category:`db.${i}`,message:m},r={};return f.length&&(r.query=f),Object.keys(h).length&&(r.body=h),Object.keys(r).length&&(t.data=r),n.addBreadcrumb(t),e},e=>{throw o&&(d.setHttpStatus(o,500),o.end()),e}).then(...r))}}),_(h.prototype.then)),f}}),_(e.prototype[t]))}(o.constructor),o}}),_(t.prototype.from));let r=e.auth;if(!(!r||y(e.auth))){for(let t of f){let n=r[t];n&&"function"==typeof e.auth[t]&&(e.auth[t]=b(n))}for(let t of h){let n=r.admin[t];n&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=b(n,!0))}_(e.auth)}},v=o.defineIntegration(e=>{let t;return t=e.supabaseClient,{setupOnce(){T(t)},name:"Supabase"}});t.DB_OPERATIONS_TO_INSTRUMENT=g,t.FILTER_MAPPINGS=m,t.extractOperation=S,t.instrumentSupabaseClient=T,t.supabaseIntegration=v,t.translateFiltersIntoMethods=E},31603:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.observe=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}}},31867:(e,t,r)=>{"use strict";r.d(t,{KU:()=>p,m6:()=>u,o5:()=>s,rB:()=>d,rm:()=>l,v4:()=>c,vn:()=>f});var n=r(62370),i=r(61531),a=r(21187),o=r(24694);function s(){let e=(0,i.EU)();return(0,n.h)(e).getCurrentScope()}function l(){let e=(0,i.EU)();return(0,n.h)(e).getIsolationScope()}function u(){return(0,i.BY)("globalScope",()=>new a.H)}function c(...e){let t=(0,i.EU)(),r=(0,n.h)(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function d(...e){let t=(0,i.EU)(),r=(0,n.h)(t);if(2===e.length){let[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])}function p(){return s().getClient()}function f(e){let{traceId:t,parentSpanId:r,propagationSpanId:n}=e.getPropagationContext(),i={trace_id:t,span_id:n||(0,o.Z)()};return r&&(i.parent_span_id=r),i}},31942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return l}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,o={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},s=/[&"'<>]/g;function l(e){return e.replace(a,e=>i[e])}function u(e){return e.replace(s,e=>o[e])}},32217:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(77191),i=r(15793),a=r(23105),o=r(23675);function s(e,t,r,a){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(a.setStatus({code:i.SPAN_STATUS_ERROR,message:e.error?.type??"internal_error"}),n.captureException(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),0))){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){let r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.stop_reason&&t.finishReasons.push(r.stop_reason),r.usage&&("number"==typeof r.usage.input_tokens&&(t.promptTokens=r.usage.input_tokens),"number"==typeof r.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),"number"==typeof r.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=r.usage.cache_read_input_tokens))}"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]});if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}r&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let r;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let n=t.activeToolBlocks[e.index];if(!n)return;let i=n.inputJsonParts.join("");try{r=i?JSON.parse(i):{}}
477catch{r={__unparsed:i}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:r}),delete t.activeToolBlocks[e.index]}(e,t)}}t.instrumentAsyncIterableStream=async function* e(e,t,r){let n={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let i of e)s(i,n,r,t),yield i}finally{n.responseId&&t.setAttributes({[a.GEN_AI_RESPONSE_ID_ATTRIBUTE]:n.responseId}),n.responseModel&&t.setAttributes({[a.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:n.responseModel}),o.setTokenUsageAttributes(t,n.promptTokens,n.completionTokens,n.cacheCreationInputTokens,n.cacheReadInputTokens),t.setAttributes({[a.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0}),n.finishReasons.length>0&&t.setAttributes({[a.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(n.finishReasons)}),r&&n.responseTexts.length>0&&t.setAttributes({[a.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.responseTexts.join("")}),r&&n.toolCalls.length>0&&t.setAttributes({[a.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(n.toolCalls)}),t.end()}},t.instrumentMessageStream=function(e,t,r){let l={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{s(e,l,r,t)}),e.on("message",()=>{t.isRecording()&&(l.responseId&&t.setAttributes({[a.GEN_AI_RESPONSE_ID_ATTRIBUTE]:l.responseId}),l.responseModel&&t.setAttributes({[a.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:l.responseModel}),o.setTokenUsageAttributes(t,l.promptTokens,l.completionTokens,l.cacheCreationInputTokens,l.cacheReadInputTokens),t.setAttributes({[a.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0}),l.finishReasons.length>0&&t.setAttributes({[a.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(l.finishReasons)}),r&&l.responseTexts.length>0&&t.setAttributes({[a.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:l.responseTexts.join("")}),r&&l.toolCalls.length>0&&t.setAttributes({[a.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(l.toolCalls)}),t.end())}),e.on("error",e=>{n.captureException(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:i.SPAN_STATUS_ERROR,message:"stream_error"}),t.end())}),e}},32452:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(44153),a=r(50047),o=r(86160),s=r(41291),l=r(15793),u=!1;t.registerSpanErrorInstrumentation=function(){u||(e.tag="sentry_tracingErrorCallback",u=!0,i.addGlobalErrorInstrumentationHandler(e),a.addGlobalUnhandledRejectionInstrumentationHandler(e));function e(){let e=s.getActiveSpan(),t=e&&s.getRootSpan(e);if(t){let e="internal_error";n.DEBUG_BUILD&&o.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:l.SPAN_STATUS_ERROR,message:e})}}}},32469:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.severityLevelFromString=function(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}},32595:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(48519);t.getTraceMetaTags=function(e){return Object.entries(e||n.getTraceData()).map(([e,t])=>`<meta name="${e}" content="${t}"/>`).join("\n")}},32702:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(77191),a=r(76677),o=r(15793),s=r(95068),l=r(83592),u=r(23105),c=r(15482),d=r
477(23675),p=r(84831),f=r(81354),h=r(4887);function m(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function g(e,t){let r=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&r.push(...h.contentUnionToMessages(t.config.systemInstruction,"system")),"history"in t&&r.push(...h.contentUnionToMessages(t.history,"user")),"contents"in t&&r.push(...h.contentUnionToMessages(t.contents,"user")),"message"in t&&r.push(...h.contentUnionToMessages(t.message,"user")),Array.isArray(r)&&r.length){let{systemInstructions:t,filteredMessages:n}=d.extractSystemInstructions(r);t&&e.setAttribute(u.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);let i=Array.isArray(n)?n.length:0;e.setAttributes({[u.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:i,[u.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:JSON.stringify(c.truncateGenAiMessages(n))})}}function _(e,t,r,n){let c=t===p.CHATS_CREATE_METHOD;return new Proxy(e,{apply(e,_,y){let S=y[0],E=function(e,t,r){let n={[u.GEN_AI_SYSTEM_ATTRIBUTE]:p.GOOGLE_GENAI_SYSTEM_NAME,[u.GEN_AI_OPERATION_NAME_ATTRIBUTE]:d.getFinalOperationName(e),[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(n[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=m(t,r),"config"in t&&"object"==typeof t.config&&t.config){let e,r=t.config;if(Object.assign(n,(e={},"temperature"in r&&"number"==typeof r.temperature&&(e[u.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=r.temperature),"topP"in r&&"number"==typeof r.topP&&(e[u.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=r.topP),"topK"in r&&"number"==typeof r.topK&&(e[u.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=r.topK),"maxOutputTokens"in r&&"number"==typeof r.maxOutputTokens&&(e[u.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=r.maxOutputTokens),"frequencyPenalty"in r&&"number"==typeof r.frequencyPenalty&&(e[u.GEN_AI_REQUEST_FREQUENCY_PENA
477LTY_ATTRIBUTE]=r.frequencyPenalty),"presencePenalty"in r&&"number"==typeof r.presencePenalty&&(e[u.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=r.presencePenalty),e)),"tools"in r&&Array.isArray(r.tools)){let e=r.tools.flatMap(e=>e.functionDeclarations);n[u.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(e)}}}else n[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=m({},r);return n}(t,S,r),b=E[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",T=d.getFinalOperationName(t);return h.isStreamingMethod(t)?s.startSpanManual({name:`${T} ${b}`,op:d.getSpanOperation(t),attributes:E},async a=>{try{n.recordInputs&&S&&g(a,S);let t=await e.apply(r,y);return f.instrumentStream(t,a,!!n.recordOutputs)}catch(e){throw a.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),i.captureException(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),a.end(),e}}):s.startSpan({name:c?`${T} ${b} create`:`${T} ${b}`,op:d.getSpanOperation(t),attributes:E},a=>(n.recordInputs&&S&&g(a,S),l.handleCallbackErrors(()=>e.apply(r,y),e=>{i.captureException(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{c||function(e,t,r){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let r=t.usageMetadata;"number"==typeof r.promptTokenCount&&e.setAttributes({[u.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:r.promptTokenCount}),"number"==typeof r.candidatesTokenCount&&e.setAttributes({[u.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r.candidatesTokenCount}),"number"==typeof r.totalTokenCount&&e.setAttributes({[u.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:r.totalTokenCount})}if(r&&Array.isArray(t.candidates)&&t.candidates.length>0){let r=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);r.length>0&&e.setAttributes({[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:r.join("")})}if(r&&t.functionCalls){let r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}}}(a,e,n.recordOutputs)})))}})}t.extractModel=m,t.instrumentGoogleGenAIClient=function(e,t){let r=!!n.getClient()?.getOptions().sendDefaultPii;return function e(t,r="",n){return new Proxy(t,{get:(t,i,a)=>{let o=Reflect.get(t,i,a),s=d.buildMethodPath(r,String(i));if("function"==typeof o&&h.shouldInstrument(s)){if(s===p.CHATS_CREATE_METHOD){let r=_(o,s,t,n);return function(...t){let i=r(...t);return i&&"object"==typeof i?e(i,p.CHAT_PATH,n):i}}return _(o,s,t,n)}return"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,s,n):o}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}},33045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={assign:function(){return s},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return o}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});function i(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},33253:(e,t)=>{function r(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.fmt=r,t.parameterize=r},33384:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(6935),i=r(6386);function a(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}t.createLogContainerEnvelopeItem=a,t.createLogEnvelope=function(e,t,r,o){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&o&&(s.dsn=n.dsnToString(o)),i.createEnvelope(s,[a(e)])}},33768:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(19849),i=r(72055),a=r(41341),o=r(43667),s=r(49287),l=r(89784),u=[800,1800],c=e=>{n.WINDOW.document?.prerendering?l.whenActivated(()=>c(e)):n.WINDOW.document?.readyState!=="complete"?addEventListener("load",()=>c(e),!0):setTimeout(e)};t.TTFBThresholds=u,t.onTTFB=(e,t={})=>{let r=s.initMetric("TTFB"),n=i.bindReporter(e,r,u,t.reportAllChanges);c(()=>{let e=o.getNavigationEntry();e&&(r.value=Math.max(e.responseStart-a.getActivationStart(),0),r.entries=[e],n(!0))})}},33795:(e,t,r)=>{"use strict";
477Object.defineProperty(t,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(66476)._(r(33045)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${i}${c}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},34175:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(76677);function i(e){return"isRelative"in e}function a(e){if(i(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()}
477t.getHttpSpanDetailsFromUrlObject=function(e,t,r,o,s){let l,u,c={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return s&&(c["server"===t?"http.route":"url.template"]=s,c[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),o?.method&&(c[n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=o.method.toUpperCase()),e&&(e.search&&(c["url.query"]=e.search),e.hash&&(c["url.fragment"]=e.hash),e.pathname&&(c["url.path"]=e.pathname,"/"===e.pathname&&(c[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),!i(e)&&(c[n.SEMANTIC_ATTRIBUTE_URL_FULL]=e.href,e.port&&(c["url.port"]=e.port),e.protocol&&(c["url.scheme"]=e.protocol),e.hostname&&(c["server"===t?"server.address":"url.domain"]=e.hostname))),[(l=o?.method?.toUpperCase()??"GET",u=s||(e?"client"===t?a(e):e.pathname:"/"),`${l} ${u}`),c]},t.getSanitizedUrlString=function(e){let{protocol:t,host:r,path:n}=e,i=r?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${i}${n}`},t.getSanitizedUrlStringFromUrlObject=a,t.isURLObjectRelative=i,t.parseStringToURLObject=function(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}},t.parseUrl=function(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}},t.stripDataUrlContent=function(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[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:${n}${i?",base64":""}${o?`,${o}`:""}`}return e},t.stripUrlQueryAndFragment=function(e){return e.split(/[?#]/,1)[0]}},34563:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(31867);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||(0,n.KU)()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},35612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={BailoutToCSRError:function(){return a},isBailoutToCSRError:function(){return o}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i="BAILOUT_TO_CLIENT_SIDE_RENDERING";class a extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=i}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===i}},35792:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(46298),a=r(86160),o=r(53374),s=r(98473),l=r(51045),u=r(62151);t.extraErrorDataIntegration=i.defineIntegration((e={})=>{let{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,i,c){let{maxValueLength:d}=c.getOptions();return function(e,t={},r,i,c){if(!t.originalException||!o.isError(t.originalException))return e;let d=t.originalException.name||t.originalException.constructor.name,p=function e(t,r,i){try{let n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};for(let e of Object.keys(t)){if(-1!==n.indexOf(e))continue;let r=t[e];a[e]=o.isError(r)||"string"==typeof r?i?u.truncate(`${r}`,i):`${r}`:r}if(r&&void 0!==t.cause&&(o.isError(t.cause)?a.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,i)}:a.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let r=e[t];a[t]=o.isError(r)?r.toString():r}}return a}catch(e){n.DEBUG_BUILD&&a.debug.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,i,c);if(p){let t={...e.contexts},n=s.normalize(p,r);return o.isPlainObject(n)&&(l.addNonEnumerableProperty(n,"__sentry_skip_normalization__",!0),t[d]=n),{...e,contexts:t}}return e}(e,i,t,r,d)}}})},35822:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(53374);class i{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new i((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new i((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{i?r(n):t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();
477this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if(n.isThenable(t))return void t.then(r,i);this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}t.SyncPromise=i,t.rejectedSyncPromise=function(e){return new i((t,r)=>{r(e)})},t.resolvedSyncPromise=function(e){return new i(t=>{t(e)})}},36337:(e,t,r)=>{"use strict";globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"628d686b415d2a19b68daaa1488e28ada8dd220e"},globalThis._sentryBasePath=void 0,globalThis._sentryNextJsVersion="16.3.4",globalThis._sentryRewriteFramesAssetPrefixPath="/aistudio",globalThis._sentryAssetPrefix=void 0,globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"isrRoutes":[],"dynamicRoutes":[],"staticRoutes":[]}';{let t=r(39482);e.exports=Array.isArray(t)?t:[t]}},36406:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return a}});let n=r(24157),i=r(3205);function a({re:e,groups:t}){return(0,i.safeRouteMatcher)(r=>{let i=e.exec(r);if(!i)return!1;let a=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},o={};for(let[e,r]of Object.entries(t)){let t=i[r.pos];void 0!==t&&(r.repeat?o[e]=t.split("/").map(e=>a(e)):o[e]=a(t))}return o})}},36418:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(46298),i=r(28389),a=r(76953),o=n.defineIntegration((e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in a.GLOBAL_OBJ&&!!a.GLOBAL_OBJ.window,i=e.iteratee||s({isBrowser:n,root:t,prefix:r});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}}});function s({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let a=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(a||o){let e=a?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,o=t?i.relative(t,e):i.basename(e);n.filename=`${r}${o}`}return n}}t.generateIteratee=s,t.rewriteFramesIntegration=o},36562:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});
477let n=r(46298),i=r(53374),a=r(62151);function o(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function s(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function l(e){let t=new Set;for(let r of e.issues){let e=s(r.path);e.length>0&&t.add(e)}let r=Array.from(t);if(0===r.length){let t="variable";if(e.issues.length>0){let r=e.issues[0];void 0!==r&&"expected"in r&&"string"==typeof r.expected&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${a.truncate(r.join(", "),100)}`}function u(e,t=!1,r,n){var a;if(!r.exception?.values||!n.originalException||(a=n.originalException,!(i.isError(a)&&"ZodError"===a.name&&Array.isArray(a.issues)))||0===n.originalException.issues.length)return r;try{let i=(t?n.originalException.issues:n.originalException.issues.slice(0,e)).map(o);return t&&(Array.isArray(n.attachments)||(n.attachments=[]),n.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:l(n.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
478${e.stack}`:"unknown"}}}}}let c=n.defineIntegration((e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(r,n)=>u(t,e.saveZodIssuesAsAttachment,r,n)}});t.applyZodErrorsToEvent=u,t.flattenIssue=o,t.flattenIssuePath=s,t.formatIssueMessage=l,t.zodErrorsIntegration=c},36797:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(85699),a=["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"];function o(e){return function(...t){let r=t[0];return t[0]=i.wrap(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${n.getFunctionName(e)}`}}),e.apply(this,t)}}function s(e){return function(t){return e.apply(this,[i.wrap(t,{mechanism:{data:{handler:n.getFunctionName(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function l(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&n.fill(r,e,function(t){let r={mechanism:{data:{handler:n.getFunctionName(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},a=n.getOriginalFunction(t);return a&&(r.mechanism.data.handler=n.getFunctionName(a)),i.wrap(t,r)})}),e.apply(this,t)}}t.browserApiErrorsIntegration=n.defineIntegration((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&n.fill(i.WINDOW,"setTimeout",o),t.setInterval&&n.fill(i.WINDOW,"setInterval",o),t.requestAnimationFrame&&n.fill(i.WINDOW,"requestAnimationFrame",s),t.XMLHttpRequest&&"XMLHttpRequest"in i.WINDOW&&n.fill(XMLHttpRequest.prototype,"send",l);let e=t.eventTarget;e&&(Array.isArray(e)?e:a).forEach(e=>{var r,a;let o,s;return r=e,a=t,o=i.WINDOW,s=o[r]?.prototype,void(s?.hasOwnProperty?.("addEventListener")&&(n.fill(s,"addEventListener",function(e){return function(t,o,s){var l,u,c,d;try{l=o,"function"==typeof l.handleEvent&&(o.handleEvent=i.wrap(o.handleEvent,{mechanism:{data:{handler:n.getFunctionName(o),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return a.unregisterOriginalCallbacks&&(u=this,c=t,d=o,u&&"object"==typeof u&&"removeEventListener"in u&&"function"==typeof u.removeEventListener&&u.removeEventListener(c,d)),e.apply(this,[t,i.wrap(o,{mechanism:{data:{handler:n.getFunctionName(o),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),n.fill(s,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}})))})}}})},36862:(e,t,r)=>{let n,i,a,o,s,l,u;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let c=r(79700),d=r(5756),p=c.GLOBAL_OBJ,f="sentryReplaySession",h="Unable to send Replay";var m,g,_,y,S,E,b,T,v,I=Object.defineProperty,A=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?I(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},R=((m=R||{})[m.Document=0]="Document",m[m.DocumentType=1]="DocumentType",m[m.Element=2]="Element",m[m.Text=3]="Text",m[m.CDATA=4]="CDATA",m[m.Comment=5]="Comment",m);function O(e){let t=e?.host;return t?.shadowRoot===e}function w(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function N(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,C).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function C(e){let t;if("styleSheet"in e)try{t=N(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],a=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class P{constructor(){A(this,"idNodeMap",new Map),A(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
478this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function k({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function M({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function x(e){return e.toLowerCase()}function L(e){return e.toUpperCase()}let U="__rrweb_original__";function D(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?x(t):null}function B(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function j(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let F={};function $(e){let t=F[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return F[e]=n.bind(window)}function G(...e){return $("setTimeout")(...e)}function H(...e){return $("clearTimeout")(...e)}function W(e){try{return e.contentDocument}catch(e){}}let z=1,q=RegExp("[^a-z0-9-_:]");function J(){return z++}let Y=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,V=/^(?:[a-z+]+:)?\/\//i,K=/^www\..*/i,X=/^(data:)([^,]*),(.*)/i;function Q(e,t){return(e||"").replace(Y,(e,r,n,i,a,o)=>{let s=n||a||o,l=r||i||"";if(!s)return e;if(V.test(s)||K.test(s)||X.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let u=t.split("/"),c=s.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let Z=/^[^ \t\n\r\u000c]+/,ee=/^[, \t\n\r\u000c]+/,et=new WeakMap;function er(e,t){return t&&""!==t.trim()?en(e,t):t}function en(e,t){let r=et.get(e);if(r||(r=e.createElement("a"),et.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ei(e,t,r,n,i,a,o){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return er(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return er(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(ee),!(r>=t.length);){let a=n(Z);if(","===a.slice(-1))a=er(e,a.substring(0,a.length-1)),i.push(a);else{let n="";a=er(e,a);let o=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((a+n).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,i.push((a+n).trim());break}else"("===e&&(o=!0);n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=Q(n,en(e));return o&&o.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,o)),t}else if("object"===t&&"data"===r)return er(e,n);return"function"==typeof a?a(r,n,i):n}function ea(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eo(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:eo(e.parentNode,t,r,n+1)}function es(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function el(e,t,r,n,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(a){if((l=eo(o,es(n,i)))<0)return!0;s=eo(o,es(t,r),l>=0?l:1/0)}else{if((s=eo(o,es(t,r)))<0)return!1;l=eo(o,es(n,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!a}catch(e){}return!!a}function eu(e){return null==e?"":e.toLowerCase()}function ec(e,t){let r,{doc:a,mirror:o,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:m=!1,inlineStylesheet:g=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T={},inlineImages:v=!1,recordCanvas:I=!1,onSerialize:A,onIframeLoad:C,iframeLoadTimeout:P=5e3,onBlockedImageLoad:F,onStylesheetLoad:$,stylesheetLoadTimeout:z=5e3,keepIframeSrcFn:Y=()=>!1,newlyAddedElement:V=!1,ignoreCSSAttributes:K}=t,{preserveWhiteSpace:X=!0}=t,Z=function(e,t){let{doc:r,mirror:a,blockClass:o,blockSelector:s,unblockSelector:l,maskAllText:u,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:g={},maskTextFn:_,maskInputFn:y,dataURLOptions:S={}
478,inlineImages:E,recordCanvas:b,keepIframeSrcFn:T,newlyAddedElement:v=!1,ignoreCSSAttributes:I}=t,A=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,a);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:R.Document,childNodes:[],compatMode:e.compatMode};return{type:R.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:R.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:A};case e.ELEMENT_NODE:return function(e,t){let r,{doc:a,blockClass:o,blockSelector:s,unblockSelector:l,inlineStylesheet:u,maskInputOptions:c={},maskAttributeFn:d,maskInputFn:p,dataURLOptions:f={},inlineImages:h,recordCanvas:m,keepIframeSrcFn:g,newlyAddedElement:_=!1,rootId:y,maskTextClass:S,unmaskTextClass:E,maskTextSelector:b,unmaskTextSelector:T,ignoreCSSAttributes:v}=t,I=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,o,s,l),A=function(e){if(e instanceof HTMLFormElement)return"form";let t=x(e.tagName);return q.test(t)?"div":t}(e),O={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!ea(A,r.name,r.value)&&(O[r.name]=ei(a,A,x(r.name),r.value,e,d,v))}if("link"===A&&u){let t=Array.from(a.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=N(t)),r&&(O.rel=null,O.href=null,O.crossorigin=null,O._cssText=Q(r,t.href))}if("style"===A&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=N(e.sheet);t&&(O._cssText=Q(t,en(a)))}if("input"===A||"textarea"===A||"select"===A||"option"===A){let t=D(e),r=B(e,L(A),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=el(e,S,b,E,T,k({type:t,tagName:L(A),maskInputOptions:c}));O.value=M({isMasked:n,element:e,value:r,maskInputFn:p})}n&&(O.checked=n)}if("option"===A&&(e.selected&&!c.select?O.selected=!0:delete O.selected),"canvas"===A&&m){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData;if(new Uint32Array((U in i?i[U]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(O.rr_dataURL=e.toDataURL(f.type,f.quality));else if(!("__context"in e)){let t=e.toDataURL(f.type,f.quality),r=a.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(f.type,f.quality)&&(O.rr_dataURL=t)}}if("img"===A&&h){n||(i=(n=a.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,o=()=>{e.removeEventListener("load",o);try{n.width=e.naturalWidth,n.height=e.naturalHeight,i.drawImage(e,0,0),O.rr_dataURL=n.toDataURL(f.type,f.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?O.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?o():e.addEventListener("load",o)}if(("audio"===A||"video"===A)&&(O.rr_mediaState=e.paused?"paused":"played",O.rr_mediaCurrentTime=e.currentTime),!_&&(e.scrollLeft&&(O.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(O.rr_scrollTop=e.scrollTop)),I){let{width:t,height:r}=e.getBoundingClientRect();O={class:O.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==A||g(O.src)||(I||W(e)||(O.rr_src=O.src),delete O.src);try{customElements.get(A)&&(r=!0)}catch(e){}return{type:R.Element,tagName:A,attributes:O,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:I,rootId:y,isCustom:r}}(e,{doc:r,blockClass:o,blockSelector:s,unblockSelector:l,inlineStylesheet:m,maskAttributeFn:c,maskInputOptions:g,maskInputFn:y,dataURLOptions:S,inlineImages:E,recordCanvas:b,keepIframeSrcFn:T,newlyAddedElement:v,rootId:A,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,ignoreCSSAttributes:I});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=N(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Q(p,en(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let g=el(e,n,a,i,o,r);return f||h||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=M({isMasked:el(e,n,a,i,o,k({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:R.Text,textContent:p||"",isStyle:f,rootId:c}}(e,{doc:r,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskTextFn:_,maskInputOptions:g,maskInputFn:y,rootId:A});case e.CDATA_SECTION_NODE:return{type:R.CDATA,textContent:"",rootId:A};case e.COMMENT_NODE:return{type:R.Comment,textContent:e.textContent||"",rootId:A};default:return!1}}(e,{doc:a,mirror:o,blockClass:s,blockSelector:l,maskAllText:c,unblockSelector:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,dataURLOptions:T,inlineImages:v,recordCanvas:I,keepIframeSrcFn:Y,newlyAddedElement:V,ignoreCSSAttributes:K});if(!Z)return console.warn(e,"not serialized"),null;r=o.hasNode(e)?o.getId(e):!function(e,t){if(t.comment&&e.type===R.Comment)return!0;
478if(e.type===R.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===j(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(eu(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===eu(e.attributes.name)||"icon"===eu(e.attributes.rel)||"apple-touch-icon"===eu(e.attributes.rel)||"shortcut icon"===eu(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&eu(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(eu(e.attributes.property).match(/^(og|twitter|fb):/)||eu(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===eu(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===eu(e.attributes.name)||"googlebot"===eu(e.attributes.name)||"bingbot"===eu(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===eu(e.attributes.name)||"generator"===eu(e.attributes.name)||"framework"===eu(e.attributes.name)||"publisher"===eu(e.attributes.name)||"progid"===eu(e.attributes.name)||eu(e.attributes.property).match(/^article:/)||eu(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===eu(e.attributes.name)||"yandex-verification"===eu(e.attributes.name)||"csrf-token"===eu(e.attributes.name)||"p:domain_verify"===eu(e.attributes.name)||"verify-v1"===eu(e.attributes.name)||"verification"===eu(e.attributes.name)||"shopify-checkout-api-token"===eu(e.attributes.name)))return!0}}return!1}(Z,b)&&(X||Z.type!==R.Text||Z.isStyle||Z.textContent.replace(/^\s+|\s+$/gm,"").length)?J():-2;let ee=Object.assign(Z,{id:r});if(o.add(e,ee),-2===r)return null;A&&A(e);let et=!m;if(ee.type===R.Element){et=et&&!ee.needBlock;let t=e.shadowRoot;t&&w(t)&&(ee.isShadowHost=!0)}if((ee.type===R.Document||ee.type===R.Element)&&et){b.headWhitespace&&ee.type===R.Element&&"head"===ee.tagName&&(X=!1);let t={doc:a,mirror:o,blockClass:s,blockSelector:l,maskAllText:c,unblockSelector:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:m,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T,inlineImages:v,recordCanvas:I,preserveWhiteSpace:X,onSerialize:A,onIframeLoad:C,iframeLoadTimeout:P,onBlockedImageLoad:F,onStylesheetLoad:$,stylesheetLoadTimeout:z,keepIframeSrcFn:Y,ignoreCSSAttributes:K};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=ec(r,t);e&&ee.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=ec(r,t);n&&(w(e.shadowRoot)&&(n.isShadow=!0),ee.childNodes.push(n))}}if(e.parentNode&&O(e.parentNode)&&w(e.parentNode)&&(ee.isShadow=!0),ee.type!==R.Element||"iframe"!==ee.tagName||ee.needBlock||function(e,t,r){let n,i=e.contentWindow;if(!i)return;let a=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=G(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{H(n),a=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return G(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=W(e);if(t&&C){let r=ec(t,{doc:t,mirror:o,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T,inlineImages:v,recordCanvas:I,preserveWhiteSpace:X,onSerialize:A,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:$,stylesheetLoadTimeout:z,keepIframeSrcFn:Y,ignoreCSSAttributes:K});r&&C(e,r)}},P),ee.type===R.Element&&"img"===ee.tagName&&!e.complete&&ee.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&F)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&F(e,ee,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return ee.type===R.Element&&"link"===ee.tagName&&"string"==typeof ee.attributes.rel&&("stylesheet"===ee.attributes.rel||"preload"===ee.attributes.rel&&"string"==typeof ee.attributes.href&&"css"===j(ee.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let a=G(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{H(a),i=!0,t()})}(e,()=>{if($){let t=ec(e,{doc:a,mirror:o,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T,inlineImages:v,recordCanvas:I,preserveWhiteSpace:X,onSerialize:A,onIframeLoad:C,iframeLoadTimeout:P,onStylesheetLoad:$,stylesheetLoadTimeout:z,keepIframeSrcFn:Y,ignoreCSSAttributes:K});t&&$(e,t)}},z),ee.type===R.Element&&delete ee.needBlock,ee}function ed(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let ep="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",ef={map:{},getId:()=>(console.error(ep),-1),getNode:()=>(console.error(ep),null),removeNodeFromMap(){console.error(ep)},has:()=>(console.error(ep),!1),reset(){console.error(ep)}};function eh(e,t,r={}){let n=null,i=0;return function(...a){let o=Date.now();i||!1!==r.leading||(i=o);let s=t-(o-i),l=this;s<=0||s>t?(n&&(function(...e){eP("clearTimeout")(...e)}
478(n),n=null),i=o,e.apply(l,a)):n||!1===r.trailing||(n=ek(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,a)},s))}}function em(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(ef=new Proxy(ef,{get:(e,t,r)=>("map"===t&&console.error(ep),Reflect.get(e,t,r))}));let eg=Date.now;function e_(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function ey(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eS(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eE(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function eb(e,t,r,n,i){if(!e)return!1;let a=eE(e);if(!a)return!1;let o=es(t,r);if(!i){let e=n&&a.matches(n);return o(a)&&!e}let s=eo(a,o),l=-1;return!(s<0)&&(n&&(l=eo(a,es(null,n))),s>-1&&l<0||s<l)}function eT(e,t){return -2===t.getId(e)}function ev(e){return!!e.changedTouches}function eI(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function eA(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function eR(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(eg=()=>new Date().getTime());class eO{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ew(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function eN(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=ew(r);)r=t;return r}(e);return t.contains(r)}(e))}let eC={};function eP(e){let t=eC[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return eC[e]=n.bind(window)}function ek(...e){return eP("setTimeout")(...e)}var eM=((g=eM||{})[g.DomContentLoaded=0]="DomContentLoaded",g[g.Load=1]="Load",g[g.FullSnapshot=2]="FullSnapshot",g[g.IncrementalSnapshot=3]="IncrementalSnapshot",g[g.Meta=4]="Meta",g[g.Custom=5]="Custom",g[g.Plugin=6]="Plugin",g),ex=((_=ex||{})[_.Mutation=0]="Mutation",_[_.MouseMove=1]="MouseMove",_[_.MouseInteraction=2]="MouseInteraction",_[_.Scroll=3]="Scroll",_[_.ViewportResize=4]="ViewportResize",_[_.Input=5]="Input",_[_.TouchMove=6]="TouchMove",_[_.MediaInteraction=7]="MediaInteraction",_[_.StyleSheetRule=8]="StyleSheetRule",_[_.CanvasMutation=9]="CanvasMutation",_[_.Font=10]="Font",_[_.Log=11]="Log",_[_.Drag=12]="Drag",_[_.StyleDeclaration=13]="StyleDeclaration",_[_.Selection=14]="Selection",_[_.AdoptedStyleSheet=15]="AdoptedStyleSheet",_[_.CustomElement=16]="CustomElement",_),eL=((y=eL||{})[y.MouseUp=0]="MouseUp",y[y.MouseDown=1]="MouseDown",y[y.Click=2]="Click",y[y.ContextMenu=3]="ContextMenu",y[y.DblClick=4]="DblClick",y[y.Focus=5]="Focus",y[y.Blur=6]="Blur",y[y.TouchStart=7]="TouchStart",y[y.TouchMove_Departed=8]="TouchMove_Departed",y[y.TouchEnd=9]="TouchEnd",y[y.TouchCancel=10]="TouchCancel",y),eU=((S=eU||{})[S.Mouse=0]="Mouse",S[S.Pen=1]="Pen",S[S.Touch=2]="Touch",S),eD=((E=eD||{})[E.Play=0]="Play",E[E.Pause=1]="Pause",E[E.Seeked=2]="Seeked",E[E.VolumeChange=3]="VolumeChange",E[E.RateChange=4]="RateChange",E);function eB(e){try{return e.contentDocument}catch(e){}}class ej{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;
478this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let eF=(e,t)=>`${e}@${t}`;class e${constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new ej,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!eN(i))return;let a=O(i.parentNode)?this.mirror.getId(ew(i)):this.mirror.getId(i.parentNode),o=n(i);if(-1===a||-1===o)return r.addNode(i);let s=ec(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{eI(e,this.mirror)&&!eb(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),eA(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),eR(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{eb(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!eH(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)eW(this.droppedSet,e)||eH(this.removes,e,this.mirror)?eW(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let a=null;for(;r.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),r=n(a.value);-1!==t&&-1!==r&&(e=a)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}a=e.previous,r.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!eT(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;eb(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:el(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,eE(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=D(t),i=t.tagName;n=B(t,i,r);let a=k({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=M({isMasked:el(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:n,maskInputFn:this.maskInputFn})}if(eb(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);
478if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(eB(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ea(t.tagName,r)&&(i.attributes[r]=ei(this.doc,x(t.tagName),x(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),a=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||a!==r.style.getPropertyPriority(n)?""===a?i.styleDiff[n]=e:i.styleDiff[n]=[e,a]:i._unchangedStyles[n]=[e,a]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(eb(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=O(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);eb(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||eT(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(eG(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(O(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[eF(r,n)]?eG(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(O(e.target)&&w(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(eT(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[eF(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!eb(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),eR(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function eG(e,t){e.delete(t),t.childNodes?.forEach(t=>eG(e,t))}function eH(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function eW(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let ez=e=>a?(...t)=>{try{return e(...t)}catch(e){if(a&&!0===a(e))return()=>{};throw e}}:e,eq=[];function eJ(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function eY(e,t){let r=new e$;eq.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let a=new n(ez(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function eV({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:o}){return ed("scroll",ez(eh(ez(o=>{let s=eJ(o);if(!s||eb(s,n,i,a,!0))return;let l=r.getId(s);if(s===t&&t.defaultView){let r=e_(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}let eK=["INPUT","TEXTAREA","SELECT"],eX=new WeakMap;function eQ(e){var t=[];if(e2("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||e2("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||e2("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||e2("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function eZ(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function e0({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&a?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let r=a.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),ez(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):()=>{}}function e1(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=eY(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=eh(ez(t=>{let r=Date.now()-i;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],i=null}),o),u=ez(eh(ez(e=>{let t=eJ(e),{clientX:r,clientY:a}=ev(e)?e.changedTouches[0]:e;i||(i=eg()),s.push({x:r,y:a,id:n.getId(t),timeOffset:eg()-i}),l("u">typeof DragEvent&&e instanceof DragEvent?ex.Drag:e instanceof MouseEvent?ex.MouseMove:ex.TouchMove)}),a,{trailing:!1})),c=[ed("mousemove",u,r),ed("touchmove",u,r),ed("drag",u,r)];return ez(()=>
478{c.forEach(e=>e())})}(e),a=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],u=null;return Object.keys(eL).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(o=>{let s=x(o),c=t=>{let s=eJ(t);if(eb(s,n,i,a,!0))return;let l=null,c=o;if("pointerType"in t){switch(t.pointerType){case"mouse":l=eU.Mouse;break;case"touch":l=eU.Touch;break;case"pen":l=eU.Pen}l===eU.Touch?eL[o]===eL.MouseDown?c="TouchStart":eL[o]===eL.MouseUp&&(c="TouchEnd"):eU.Pen}else ev(t)&&(l=eU.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===eU.Touch||c.startsWith("Mouse")&&l===eU.Mouse)&&(l=null)):eL[o]===eL.Click&&(l=u,u=null);let d=ev(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(s),{clientX:f,clientY:h}=d;ez(e)({type:eL[c],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(eL[o]){case eL.MouseDown:case eL.MouseUp:s=s.replace("mouse","pointer");break;case eL.TouchStart:case eL.TouchEnd:return}l.push(ed(s,c,t))}),ez(()=>{l.forEach(e=>e())})}(e),o=eV(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return ed("resize",ez(eh(ez(()=>{let t=ey(),i=eS();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let r=eJ(e),c=e.isTrusted,g=r&&L(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>eK.indexOf(g)||eb(r,n,i,a,!0))return;let y=r;if(y.classList.contains(o)||s&&y.matches(s))return;let S=D(r),E=B(y,g,S),b=!1,T=k({maskInputOptions:l,tagName:g,type:S}),v=el(r,p,h,f,m,T);("radio"===S||"checkbox"===S)&&(b=r.checked),E=M({isMasked:v,element:r,value:E,maskInputFn:u}),_(r,d?{text:E,isChecked:b,userTriggered:c}:{text:E,isChecked:b});let I=r.name;"radio"===S&&I&&b&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(e=>{if(e!==r){let t=M({isMasked:v,element:e,value:B(e,g,S),maskInputFn:u});_(e,d?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}})}function _(t,n){let i=eX.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){eX.set(t,n);let i=r.getId(t);ez(e)({...n,id:i})}}let y=("last"===c.input?["change"]:["input","change"]).map(e=>ed(e,ez(g),t)),S=t.defaultView;if(!S)return()=>{y.forEach(e=>e())};let E=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),b=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return E&&E.set&&y.push(...b.map(e=>(function e(t,r,n,i,a=window){let o=a.Object.getOwnPropertyDescriptor(t,r);return a.Object.defineProperty(t,r,i?n:{set(e){ek(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)})(e[0],e[1],{set(){ez(g)({target:this,isTrusted:!1})}},!1,S))),ez(()=>{y.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:a,doc:o}){let s=ez(o=>eh(ez(a=>{let s=eJ(a);if(!s||eb(s,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:l,volume:u,muted:c,playbackRate:d})}),a.media||500)),l=[ed("play",s(eD.Play),o),ed("pause",s(eD.Pause),o),ed("seeked",s(eD.Seeked),o),ed("volumechange",s(eD.VolumeChange),o),ed("ratechange",s(eD.RateChange),o)];return ez(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,a;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:ez((n,i,a)=>{let[o,s]=a,{id:l,styleId:u}=eZ(i,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:s}]}),n.apply(i,a)})});let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:ez((n,i,a)=>{let[o]=a,{id:s,styleId:l}=eZ(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:o}]}),n.apply(i,a)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:ez((n,i,a)=>{let[o]=a,{id:s,styleId:l}=eZ(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:o}),n.apply(i,a)})})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ez((n,i,a)=>{let[o]=a,{id:s,styleId:l}=eZ(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:o}),n.apply(i,a)})}));let l={};e3("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(e3("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),e3("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),e3("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:ez((n,i,a)=>{let[o,s]=a,{id:l,styleId:u}=eZ(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:[...eQ(i),s||0]}]}),n.apply(i,a)})}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:ez((n,i,a)=>{let[o]=a,{id:s,styleId:l}=eZ(i.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...eQ(i),o]}]}),n.apply(i,a)})})}),ez(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=s,i&&(n.CSSStyleSheet.prototype.replace=i),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=e0(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:ez((i,o,s)=>{let[l,u,c]=s;
478if(r.has(l))return a.apply(o,[l,u,c]);let{id:d,styleId:p}=eZ(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:eQ(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:ez((i,a,s)=>{let[l]=s;if(r.has(l))return o.apply(a,[l]);let{id:u,styleId:c}=eZ(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:eQ(a.parentRule)}),i.apply(a,s)})}),ez(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,r){let n=new a(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let o=em(t.fonts,"add",function(t){return function(r){return ek(ez(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=a}),n.push(o),ez(()=>{n.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,l=ez(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:o,startOffset:s,endContainer:u,endOffset:c}=e.getRangeAt(t);eb(o,n,i,a,!0)||eb(u,n,i,a,!0)||l.push({start:r.getId(o),startOffset:s,end:r.getId(u),endOffset:c})}o({ranges:l})});return l(),ed("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?em(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return ez(()=>{eq.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),l(),u(),c(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function e2(e){return void 0!==window[e]}function e3(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class e5{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=n.get(t);return i||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class e6{constructor(){this.crossOriginIframeMirror=new e5(J),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class e4{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new e5(J),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new e5(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=eB(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case eM.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:eM.IncrementalSnapshot,data:{source:ex.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case eM.Meta:case eM.Load:case eM.DomContentLoaded:break;case eM.Plugin:return t;case eM.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case eM.IncrementalSnapshot:switch(t.data.source){case ex.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
478),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case ex.Drag:case ex.TouchMove:case ex.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case ex.ViewportResize:return!1;case ex.MediaInteraction:case ex.MouseInteraction:case ex.Scroll:case ex.CanvasMutation:case ex.Input:return this.replaceIds(t.data,e,["id"]),t;case ex.StyleSheetRule:case ex.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ex.Font:return t;case ex.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case ex.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===R.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class e8{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class e7{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!w(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=eY({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(eV({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),ek(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(e0({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=eB(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(em(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&eN(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var e9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te="u"<typeof Uint8Array?[]:new Uint8Array(256),tt=0;tt<e9.length;tt++)te[e9.charCodeAt(tt)]=tt;class tr{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class tn{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new eO,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:C(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ti{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){eP("requestAnimationFrame")(...e)}
478(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let ta=new P;function to(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:l="rr-block",blockSelector:u=null,unblockSelector:c=null,ignoreClass:d="rr-ignore",ignoreSelector:p=null,maskAllText:f=!1,maskTextClass:h="rr-mask",unmaskTextClass:m=null,maskTextSelector:g=null,unmaskTextSelector:_=null,inlineStylesheet:y=!0,maskAllInputs:S,maskInputOptions:E,slimDOMOptions:b,maskAttributeFn:T,maskInputFn:v,maskTextFn:I,maxCanvasSize:A=null,packFn:R,sampling:O={},dataURLOptions:w={},mousemoveWait:N,recordDOM:C=!0,recordCanvas:k=!1,recordCrossOriginIframes:M=!1,recordAfter:x="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:U=!1,inlineImages:D=!1,plugins:B,keepIframeSrcFn:j=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:$,onMutation:G,getCanvasManager:H}=e;a=$;let W=!M||window.parent===window,z=!1;if(!W)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(W&&!r)throw Error("emit function is required");if(!W&&!z)return()=>{};void 0!==N&&void 0===O.mousemove&&(O.mousemove=N),ta.reset();let q=!0===S?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==E?E:{},J=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b}:b||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let Y=0,V=e=>{for(let t of B||[])t.eventProcessor&&(e=t.eventProcessor(e));return R&&!z&&(e=R(e)),e};o=(e,a)=>{if(e.timestamp=eg(),eq[0]?.isFrozen()&&e.type!==eM.FullSnapshot&&(e.type!==eM.IncrementalSnapshot||e.data.source!==ex.Mutation)&&eq.forEach(e=>e.unfreeze()),W)r?.(V(e),a);else if(z){let t={type:"rrweb",event:V(e),origin:window.location.origin,isCheckout:a};window.parent.postMessage(t,"*")}if(e.type===eM.FullSnapshot)t=e,Y=0;else if(e.type===eM.IncrementalSnapshot){if(e.data.source===ex.Mutation&&e.data.isAttachIframe)return;Y++;let r=i&&Y>=i,a=n&&t&&e.timestamp-t.timestamp>n;(r||a)&&ei(!0)}};let K=e=>{o({type:eM.IncrementalSnapshot,data:{source:ex.Mutation,...e}})},X=e=>o({type:eM.IncrementalSnapshot,data:{source:ex.Scroll,...e}}),Q=e=>o({type:eM.IncrementalSnapshot,data:{source:ex.CanvasMutation,...e}}),Z=new tn({mutationCb:K,adoptedStyleSheetCb:e=>o({type:eM.IncrementalSnapshot,data:{source:ex.AdoptedStyleSheet,...e}})}),ee="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new e6:new e4({mirror:ta,mutationCb:K,stylesheetManager:Z,recordCrossOriginIframes:M,wrappedEmit:o});for(let e of B||[])e.getMirror&&e.getMirror({nodeMirror:ta,crossOriginIframeMirror:ee.crossOriginIframeMirror,crossOriginIframeStyleMirror:ee.crossOriginIframeStyleMirror});let et=new ti,er=function(e,t){try{return e?e(t):new tr}catch{return console.warn("Unable to initialize CanvasManager"),new tr}}(H,{mirror:ta,win:window,mutationCb:e=>o({type:eM.IncrementalSnapshot,data:{source:ex.CanvasMutation,...e}}),recordCanvas:k,blockClass:l,blockSelector:u,unblockSelector:c,maxCanvasSize:A,sampling:O.canvas,dataURLOptions:w,errorHandler:$}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new e8:new e7({mutationCb:K,scrollCb:X,bypassOptions:{onMutation:G,blockClass:l,blockSelector:u,unblockSelector:c,maskAllText:f,maskTextClass:h,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_,inlineStylesheet:y,maskInputOptions:q,dataURLOptions:w,maskAttributeFn:T,maskTextFn:I,maskInputFn:v,recordCanvas:k,inlineImages:D,sampling:O,slimDOMOptions:J,iframeManager:ee,stylesheetManager:Z,canvasManager:er,keepIframeSrcFn:j,processedNodeManager:et,ignoreCSSAttributes:F},mirror:ta}),ei=(e=!1)=>
478{if(!C)return;o({type:eM.Meta,data:{href:window.location.href,width:eS(),height:ey()}},e),Z.reset(),en.init(),eq.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new P,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:S,preserveWhiteSpace:E,onSerialize:b,onIframeLoad:T,iframeLoadTimeout:v,onBlockedImageLoad:I,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:w=new Set([])}=t||{};return ec(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:S,inlineImages:p,recordCanvas:f,preserveWhiteSpace:E,onSerialize:b,onIframeLoad:T,iframeLoadTimeout:v,onBlockedImageLoad:I,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:w})}(document,{mirror:ta,blockClass:l,blockSelector:u,unblockSelector:c,maskAllText:f,maskTextClass:h,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_,inlineStylesheet:y,maskAllInputs:q,maskAttributeFn:T,maskInputFn:v,maskTextFn:I,slimDOM:J,dataURLOptions:w,recordCanvas:k,inlineImages:D,onSerialize:e=>{eI(e,ta)&&ee.addIframe(e),eA(e,ta)&&Z.trackLinkElement(e),eR(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{ee.attachIframe(e,t),e.contentWindow&&er.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Z.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{K({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:j,ignoreCSSAttributes:F});if(!t)return console.warn("Failed to snapshot the document");o({type:eM.FullSnapshot,data:{node:t,initialOffset:e_(window)}}),eq.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Z.adoptStyleSheets(document.adoptedStyleSheets,ta.getId(document))};s=ei;try{let e=[],t=e=>ez(e1)({onMutation:G,mutationCb:K,mousemoveCb:(e,t)=>o({type:eM.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>o({type:eM.IncrementalSnapshot,data:{source:ex.MouseInteraction,...e}}),scrollCb:X,viewportResizeCb:e=>o({type:eM.IncrementalSnapshot,data:{source:ex.ViewportResize,...e}}),inputCb:e=>o({type:eM.IncrementalSnapshot,data:{source:ex.Input,...e}}),mediaInteractionCb:e=>o({type:eM.IncrementalSnapshot,data:{source:ex.MediaInteraction,...e}}),styleSheetRuleCb:e=>o({type:eM.IncrementalSnapshot,data:{source:ex.StyleSheetRule,...e}}),styleDeclarationCb:e=>o({type:eM.IncrementalSnapshot,data:{source:ex.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>o({type:eM.IncrementalSnapshot,data:{source:ex.Font,...e}}),selectionCb:e=>{o({type:eM.IncrementalSnapshot,data:{source:ex.Selection,...e}})},customElementCb:e=>{o({type:eM.IncrementalSnapshot,data:{source:ex.CustomElement,...e}})},blockClass:l,ignoreClass:d,ignoreSelector:p,maskAllText:f,maskTextClass:h,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:_,maskInputOptions:q,inlineStylesheet:y,sampling:O,recordDOM:C,recordCanvas:k,inlineImages:D,userTriggeredOnInput:L,collectFonts:U,doc:e,maskAttributeFn:T,maskInputFn:v,maskTextFn:I,keepIframeSrcFn:j,blockSelector:u,unblockSelector:c,slimDOMOptions:J,dataURLOptions:w,mirror:ta,iframeManager:ee,stylesheetManager:Z,shadowDomManager:en,processedNodeManager:et,canvasManager:er,ignoreCSSAttributes:F,plugins:B?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>o({type:eM.Plugin,data:{plugin:e.name,payload:t}}
478)}))||[]},{});ee.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{ei(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(ed("DOMContentLoaded",()=>{o({type:eM.DomContentLoaded,data:{}}),"DOMContentLoaded"===x&&r()})),e.push(ed("load",()=>{o({type:eM.Load,data:{}}),"load"===x&&r()},window))),()=>{e.forEach(e=>e()),et.destroy(),s=void 0,a=void 0}}catch(e){console.warn(e)}}function ts(e){return e>0x2540be3ff?e:1e3*e}function tl(e){return e>0x2540be3ff?e/1e3:e}function tu(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:eM.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:c.normalize(t,10,1e3)}}),"console"===t.category)))}function tc(e){return e.closest("button,a")||e}function td(e){let t=tp(e);return t&&t instanceof Element?tc(t):t}function tp(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}to.mirror=ta,to.takeFullSnapshot=function(e){if(!s)throw Error("please take full snapshot after start recording");s(e)},(b=v||(v={}))[b.NotStarted=0]="NotStarted",b[b.Running=1]="Running",b[b.Stopped=2]="Stopped";let tf=new Set([ex.Mutation,ex.StyleSheetRule,ex.StyleDeclaration,ex.AdoptedStyleSheet,ex.CanvasMutation,ex.Selection,ex.MediaInteraction]);class th{constructor(e,t,r=tu){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=tg()},l||(l=[],c.fill(p,"open",function(e){return function(...t){if(l)try{l.forEach(e=>e())}catch{}return e.apply(p,t)}})),l.push(e),()=>{let t=l?l.indexOf(e):-1;t>-1&&l.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,i;if(r=t,n=this._ignoreSelector,!tm.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let a={timestamp:tl(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===a.node&&1>Math.abs(e.timestamp-a.timestamp))||(this._clicks.push(a),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=tl(e)}registerScroll(e=Date.now()){this._lastScroll=tl(e)}registerClick(e){let t=tc(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=tg();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:a}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:p.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,o);return}if(i>1){let e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:p.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=
478d.setTimeout(()=>this._checkClicks(),1e3)}}let tm=["A","BUTTON","INPUT"];function tg(){return Date.now()/1e3}function t_(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var ty=((T=ty||{})[T.Document=0]="Document",T[T.DocumentType=1]="DocumentType",T[T.Element=2]="Element",T[T.Text=3]="Text",T[T.CDATA=4]="CDATA",T[T.Comment=5]="Comment",T);let tS=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function tE(e,t){let r=to.mirror.getId(e),n=r&&to.mirror.getNode(r),i=n&&to.mirror.getMeta(n),a=i&&i.type===ty.Element?i:null;return{message:t,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===ty.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(tS.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(a.attributes)}}:{}}}let tb={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:tI(a),end:tI(i),name:n,data:{size:u,statusCode:l,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,a=tI(i);return{type:r,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:tI(f),end:tI(a),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:o,duration:i,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:a,redirectCount:p}}}};function tT(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function tv(e){let t=tb[e.entryType];return t?t(e):null}function tI(e){return((c.browserPerformanceTimeOrigin()||p.performance.timeOrigin)+e)/1e3}function tA(e){let t=e.entries[e.entries.length-1];return tw(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function tR(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=to.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return tw(e,"cumulative-layout-shift",r,t)}function tO(e){let t=e.entries[e.entries.length-1];return tw(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function tw(e,t,r,n){let i=e.value,a=e.rating,o=tI(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:r?r.map(e=>to.mirror.getId(e)):void 0,attributions:n}}}let tN=(u={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}},["log","warn","error"].forEach(e=>{u[e]=()=>void 0}),u);class tC extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class tP{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new tC;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?ts(e):null}}class tk{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t(Error("Received worker message with unsuccessful status"))},{once:!0}),this._worker.addEventListener("error",e=>{t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{let a=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",a),!t.success)return void i(Error("Error in compression worker"));n(t.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class tM{constructor(e){this._worker=new tk(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}
478addEvent(e){let t=ts(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new tC):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class tx{constructor(e){this._fallback=new tP,this._compression=new tM(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){}}}function tL(){try{return"sessionStorage"in p&&!!p.sessionStorage}catch{return!1}}function tU(e){return void 0!==e&&Math.random()<e}function tD(e){if(tL())try{p.sessionStorage.setItem(f,JSON.stringify(e))}catch{}}function tB(e){let t=Date.now(),r=e.id||c.uuid4(),n=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,o=e.sampled;return{id:r,started:n,lastActivity:i,segmentId:a,sampled:o,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function tj({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=tB({sampled:tU(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&tD(i),i}function tF(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function t$(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return tF(e.started,t,n)||tF(e.lastActivity,r,n)}function tG(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!t$(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function tH({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!tL())return null;try{let e=p.sessionStorage.getItem(f);if(!e)return null;let t=JSON.parse(e);return tB(t)}catch{return null}}();return i?tG(i,{sessionIdleExpire:e,maxReplayDuration:t})?tj(n,{previousSessionId:i.id}):i:tj(n,{previousSessionId:r})}function tW(e,t,r){return!!tq(e,t)&&(tz(e,t,r),!0)}async function tz(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let a=e.getOptions(),o=function(e,t){try{if("function"==typeof t&&e.type===eM.Custom)return t(e)}catch(e){return null}return e}(t,a.beforeAddRecordingEvent);if(!o)return;return await n.addEvent(o)}catch(a){let t=a&&a instanceof tC,r=c.getClient();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}function tq(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=ts(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function tJ(e){return"transaction"===e.type}function tY(e){return"feedback"===e.type}function tV(e){return!!e.category}function tK(){let e=c.getCurrentScope().getPropagationContext().dsc;e&&delete e.replay_id;let t=c.getActiveSpan();if(t){let e=c.getDynamicSamplingContextFromSpan(t);delete e.replay_id}}function tX(e,t){return t.map(({type:t,start:r,end:n,name:i,data:a})=>{let o=e.throttledAddEvent({type:eM.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:a}}});return"string"==typeof o?Promise.resolve(null):o})}function tQ(e,t){var r;
478e.isEnabled()&&null!==t&&(r=t.name,c.isSentryRequestUrl(r,c.getClient())||e.addUpdate(()=>(tX(e,[t]),!0)))}function tZ(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=d.serializeFormData(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function t0(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function t1(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function t2(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:a,statusCode:o,request:s,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:a,statusCode:o,request:s,response:l}}}function t3(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function t5(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:a}=function(e){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let i=e.length>15e4,a=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(i){let t=e.slice(0,15e4);return a?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(a)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,a?.length&&(n._meta={warnings:a}),n}function t6(e,t){return Object.entries(e).reduce((r,[n,i])=>{let a=n.toLowerCase();return t.includes(a)&&e[n]&&(r[a]=i),r},{})}function t4(e,t){let r=function(e,t=p.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(p.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return c.stringMatchesSomePattern(r,t)}async function t8(e,t,r){try{let n=await t7(e,t,r),i=t2("resource.fetch",n);tQ(r.replay,i)}catch(e){}}async function t7(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n}=t,{url:o,method:s,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,p=t4(o,r.networkDetailAllowUrls)&&!t4(o,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:l,request:p?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var i,a;let o=r?(i=r,a=t,1===i.length&&"string"!=typeof i[0]?rr(i[0],a):2===i.length?rr(i[1],a):{}):{};if(!e)return t5(o,n,void 0);let s=d.getFetchRequestArgBody(r),[l,u]=d.getBodyString(s,tN),c=t5(o,n,l);return u?t1(c,u):c}(r,t.input,u):t3(u),response:await t9(p,r,t.response,c)}}async function t9(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return t3(i);let a=n?rt(n.headers,r):{};if(!n||!t&&void 0!==i)return t5(a,i,void 0);let[o,s]=await re(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let a=e?.length&&void 0===r?tZ(e):r;if(!n)return t3(a);if(t)return t5(i,a,e);return t5(i,a,void 0)}catch(e){return t5(i,r,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?t1(l,s):l}async function re(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>{let n=d.setTimeout(()=>t(Error("Timeout while trying to read response body")),500);rn(r).then(t=>e(t),e=>
478t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function rt(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function rr(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?rt(r,t):Array.isArray(r)?{}:t6(r,t):{}}async function rn(e){return await e.text()}async function ri(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n,input:o,xhr:s}=t,{url:l,method:u,status_code:c=0,request_body_size:p,response_body_size:f}=e.data;if(!l)return null;if(!s||!t4(l,r.networkDetailAllowUrls)||t4(l,r.networkDetailDenyUrls)){let e=t3(p);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:e,response:t3(f)}}let h=s[d.SENTRY_XHR_DATA_KEY],m=h?t6(h.request_headers,r.networkRequestHeaders):{},g=t6(d.parseXhrResponseHeaders(s),r.networkResponseHeaders),[_,y]=r.networkCaptureBodies?d.getBodyString(o,tN):[void 0],[S,E]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return[void 0]}(s):[void 0],b=t5(m,p,_),T=t5(g,f,S);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:y?t1(b,y):b,response:E?t1(T,E):T}}(e,t,r),i=t2("resource.xhr",n);tQ(r.replay,i)}catch(e){}}async function ra(e){try{return Promise.all(tX(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(p.performance.memory)]))}catch{return[]}}let ro=c.GLOBAL_OBJ.navigator;async function rs({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let a=await c.prepareEvent(e.getOptions(),n,i,t,e,c.getIsolationScope());if(!a)return null;e.emit("postprocessEvent",a,i),a.platform=a.platform||"javascript";let o=e.getSdkMetadata(),{name:s,version:l,settings:u}=o?.sdk||{};return a.sdk={...a.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},a}async function rl({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:a}){var o;let s,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
479`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:d,traceIds:p,initialTimestamp:f}=n,m=c.getClient(),g=c.getCurrentScope(),_=m?.getTransport(),y=m?.getDsn();if(!m||!_||!y||!a.sampled)return Promise.resolve({});let S={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:i/1e3,error_ids:d,trace_ids:p,urls:u,replay_id:t,segment_id:r,replay_type:a.sampled},E=await rs({scope:g,client:m,replayId:t,event:S});if(!E)return m.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete E.sdkProcessingMetadata;let b=(o=m.getOptions().tunnel,c.createEnvelope(c.createEventEnvelopeHeaders(E,c.getSdkMetadataForEnvelopeHeader(E),o,y),[[{type:"replay_event"},E],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await _.send(b)}catch(t){let e=Error(h);try{e.cause=t}catch{}throw e}let T=c.updateRateLimits({},s);if(c.isRateLimited(T,"replay"))throw new rc(T);if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new ru(s.statusCode);return s}class ru extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class rc extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class rd extends Error{constructor(){super("Session is too long, not sending replay")}}async function rp(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await rl(e),!0}catch(r){if(r instanceof ru||r instanceof rc)throw r;if(c.setContext("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${h} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{d.setTimeout(async()=>{try{await rp(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let rf="__THROTTLED";class rh{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){return c.debounce(e,t,{...r,setTimeoutImpl:d.setTimeout})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,r=!1;return(...n)=>{let i,a=Math.floor(Date.now()/1e3);if(i=a-5,t.forEach((e,r)=>{r<i&&t.delete(r)}),[...t.values()].reduce((e,t)=>
479e+t,0)>=300){let e=r;return r=!0,e?"__SKIPPED":rf}r=!1;let o=t.get(a)||0;return t.set(a,o+1),e(...n)}}((e,t)=>tq(this,e)?tz(this,e,t):Promise.resolve(null));const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;i&&(this.clickDetector=new th(this,i)),this._handleVisibilityChange=()=>{"visible"===p.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=t_({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=t_({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:o,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=r||i||a,u=1===o.length;if(!l&&u)return null;let d=c.htmlTreeAsString(s,{maxStringLength:200})||"<unknown>",p=tE(s,d);return t_({category:"ui.keyDown",message:d,data:{...p.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:o}})}(t);r&&tu(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(this._initializeSessionForSampling(e),this.session&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording()))}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=tH({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=tH({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,r=this._canvas;this._stopRecording=to({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession())return;let i=n||!t;t=!0,e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(tf.has(n)&&e.registerMutation(t.timestamp),n===ex.Scroll&&e.registerScroll(t.timestamp),t.data.source===ex.MouseInteraction){let{type:r,id:n}=t.data,i=to.mirror.getNode(n);i instanceof HTMLElement&&r===eL.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!tW(e,r,i))return!0;if(!i)return!1;let t=e.session;if(function(e,t){if(t&&e.session&&0===e.session.segmentId){let t;tW(e,(t=e.getOptions(),{type:eM.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(t.started=r,e.getOptions().stickySession&&tD(t))}
479return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(ro?.userAgent??"")||/Macintosh/i.test(ro?.userAgent??"")&&ro?.maxTouchPoints&&ro?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{tK(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(tL())try{p.sessionStorage.removeItem(f)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}checkAndHandleExpiredSession(){return this._lastActivity&&tF(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${p.location.pathname}${p.location.hash}${p.location.search}`,t=`${p.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===rf){let e=t_({category:"replay.throttled"});this.addUpdate(()=>!tW(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||c.getActiveSpan(),t=e&&c.getRootSpan(e),r=(t&&c.spanToJSON(t).data||{})[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return c.spanToJSON(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 479
479var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
479']),URL.createObjectURL(e)}return""}();if(!t)return;let r=new Worker(t);return new tx(r)}catch(e){}}(t);if(e)return e}return new tP}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=tH({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!tG(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{p.document.addEventListener("visibilitychange",this._handleVisibilityChange),p.addEventListener("blur",this._handleWindowBlur),p.addEventListener("focus",this._handleWindowFocus),p.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,r=c.getClient();d.addClickKeypressInstrumentationHandler(t=>{var r,n;if(!e.isEnabled())return;let i=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?td(e.event):tp(e.event),t=c.htmlTreeAsString(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return t_({category:`ui.${e.name}`,...tE(t,r)})}(t);if(!i)return;let a="click"===t.name,o=a?t.event:void 0;a&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&(r=e.clickDetector,n=td(t.event),r.handleClick(i,n)),tu(e,i)}),d.addHistoryInstrumentationHandler(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(tX(e,[r]),!1)))}),(t=c.getClient())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!tV(t))return;let n=(r=t,!tV(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return t_(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=c.normalize(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return t_({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):t_(r));n&&tu(e,n)})(e,t));let n=c.getClient();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,a,o;n=t,"xhr"===n.category&&(i=r,i?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=tZ(n),a=r.getResponseHeader("content-length")?t0(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return tZ(r)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),ri(t,r,e)),a=t,"fetch"===a.category&&(o=r,o?.response)&&(!function(e,t){let{input:r,response:n}=t,i=tZ(r?d.getFetchRequestArgBody(r):void 0),a=n?t0(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),t8(t,r,e))}catch(e){}})(s,e,t))}catch{}let i=Object.assign((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!tJ(t)&&!tY(t))return t;if(!e.checkAndHandleExpiredSession())return tK(),t;if(tY(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:eM.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;let n="buffer"===e.recordingMode&&t.message!==h&&!!t.exception&&!t.type&&t
479U(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&tD(t)}return t},{id:"Replay"});c.addEventProcessor(i),r&&(r.on("beforeSendEvent",t=>{var r,n;let i;e.isEnabled()&&!t.type&&(r=e,n=t,i=n.exception?.values?.[0]?.value,"string"==typeof i&&(i.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&tu(r,t_({category:"replay.hydrate-error",data:{url:c.getLocationHref()}})))}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!tJ(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(tJ(t)){var i,a;let r;return void(i=e,a=t,r=i.getContext(),a.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(a.contexts.trace.trace_id))}!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&d.setTimeout(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push(d.addPerformanceInstrumentationHandler(e,r))}),n.push(d.addLcpInstrumentationHandler(tT(tA,e)),d.addClsInstrumentationHandler(tT(tR,e)),d.addInpInstrumentationHandler(tT(tO,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{p.document.removeEventListener("visibilitychange",this._handleVisibilityChange),p.removeEventListener("blur",this._handleWindowBlur),p.removeEventListener("focus",this._handleWindowFocus),p.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||t$(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){!this.session||this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:eM.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(tv).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(tX(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}
479_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents)){if((await ra(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new rd;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await rp({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=c.getClient();e&&e.recordDroppedEvent(t instanceof rc?"ratelimit_backoff":t instanceof rd?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i){n&&this._debouncedFlush();return}let a=this.eventBuffer;a&&0===this.session.segmentId&&a.hasCheckout;let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&tD(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>i||a){let e=t_({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function rm(e,t){return[...e,...t].join(",")}let rg='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',r_=["content-length","content-type","accept"],ry=Symbol.for("sentry__originalRequestBody"),rS=!1,rE=!1;class rb{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:_=[],networkCaptureBodies:y=!0,networkRequestHeaders:S=[],networkResponseHeaders:E=[],mask:b=[],maskAttributes:T=["title","placeholder","aria-label"],unmask:v=[],block:I=[],unblock:A=[],ignore:R=[],maskFn:O,beforeAddRecordingEvent:w,beforeErrorSampling:N,onError:C,attachRawBodyFromRequest:P=!1}={}){this.name="Replay";const k=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:rm(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:rm(t,[]),blockSelector:rm(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:rm(n,[]),ignoreSelector:rm(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:v,block:I,unblock:A,ignore:R});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:a}){return!n||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a})({maskAttributes:T,maskAllText:l,privacyOptions:k,key:e,value:t,el:r}),...k,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:d,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:g,networkDetailDenyUrls:_,networkCaptureBodies:y,networkRequestHeaders:rT(S),networkResponseHeaders:rT(E),beforeAddRecordingEvent:w,beforeErrorSampling:N,onError:C,attachRawBodyFromRequest:P,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${rg}`:rg,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&c.isBrowser())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return rS}set _isInitialized(e){rS=e}afterAllSetup(e){c.isBrowser()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||rE)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[ry]=r.body),n};t.prototype=e.prototype,c.GLOBAL_OBJ.Request=t,rE=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
479startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let r,n,i,a,o=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},i=c.parseSampleRate(r.replaysSessionSampleRate),a=c.parseSampleRate(r.replaysOnErrorSampleRate),null==i&&null==a&&c.consoleSandbox(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=a&&(n.errorSampleRate=a),n);this._replay=new rh({options:o,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function rT(e){return[...r_,...e.map(e=>e.toLowerCase())]}t.getReplay=function(){let e=c.getClient();return e?.getIntegrationByName("Replay")},t.replayIntegration=e=>new rb(e)},36863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return i}});let n=r(97941);function i(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},37598:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}});var r,n=((r={})[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",r);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37638:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(76677),a=r(95068),o=r(8062),s=r(60008),l=r(21086),u=r(66525),c=r(9914);function d(e,t){return t?`${e} ${t}`:e}function p(e){let t,r;switch(e){case"request":t=s.MCP_SERVER_OP_VALUE,r=s.MCP_FUNCTION_ORIGIN_VALUE;break;case"notification-incoming":t=s.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE,r=s.MCP_NOTIFICATION_ORIGIN_VALUE;break;case"notification-outgoing":t=s.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE,r=s.MCP_NOTIFICATION_ORIGIN_VALUE}return{[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:t,[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:s.MCP_ROUTE_SOURCE_VALUE}}function f(e){let t,{type:r,message:i,transport:f,extra:h,callback:m,options:g}=e,{method:_}=i,y=i.params;if("request"===r){let e=l.extractTargetInfo(_,y||{});t=d(_,e.target)}else t=_;let S={...c.buildTransportAttributes(f,h),[s.MCP_METHOD_NAME_ATTRIBUTE]:_,...o.buildTypeSpecificAttributes(r,i,y,g?.recordInputs),...p(r)},E=n.getClient(),b=!!E?.getOptions().sendDefaultPii,T=u.filterMcpPiiFromSpanData(S,b);return a.startSpan({name:t,forceTransaction:!0,attributes:T},m)}t.buildMcpServerSpanConfig=function(e,t,r,i){let{method:a}=e,f=e.params,h=l.extractTargetInfo(a,f||{}),m=d(a,h.target),g={...c.buildTransportAttributes(t,r),[s.MCP_METHOD_NAME_ATTRIBUTE]:a,...o.buildTypeSpecificAttributes("request",e,f,i?.recordInputs),...p("request")},_=n.getClient(),y=!!_?.getOptions().sendDefaultPii,S=u.filterMcpPiiFromSpanData(g,y);return{name:m,op:s.MCP_SERVER_OP_VALUE,forceTransaction:!0,attributes:S}},t.createMcpNotificationSpan=function(e,t,r,n,i){return f({type:"notification-incoming",message:e,transport:t,extra:r,callback:i,options:n})},t.createMcpOutgoingNotificationSpan=function(e,t,r,n){return f({type:"notification-outgoing",message:e,transport:t,options:r,callback:n})}},38273:(e,t)=>{"use strict";
479Object.defineProperty(t,"__esModule",{value:!0});var r={PARAM_SEPARATOR:function(){return i},hasAdjacentParameterIssues:function(){return a},normalizeAdjacentParameters:function(){return o},normalizeTokensForRegexp:function(){return s},stripNormalizedSeparators:function(){return l},stripParameterSeparators:function(){return u}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i="_NEXTSEP_";function a(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function o(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${i}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${i}`)}function s(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function l(e){return e.replace(RegExp(`\\)${i}`,"g"),")")}function u(e){let t={};for(let[r,n]of Object.entries(e))"string"==typeof n?t[r]=n.replace(RegExp(`^${i}`),""):Array.isArray(n)?t[r]=n.map(e=>"string"==typeof e?e.replace(RegExp(`^${i}`),""):e):t[r]=n;return t}},38398:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.DEBUG_BUILD=!1},38458:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(4794);t.feedbackSyncIntegration=n.buildFeedbackIntegration({getModalIntegration:()=>n.feedbackModalIntegration,getScreenshotIntegration:()=>n.feedbackScreenshotIntegration})},38471:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(77191),a=r(76677),o=r(51045),s=r(98473),l=r(95068),u={mechanism:{handled:!1,type:"auto.rpc.trpc.middleware"}};t.trpcMiddleware=function(e={}){return async function(t){let{path:r,type:c,next:d,rawInput:p,getRawInput:f}=t,h=n.getClient(),m=h?.getOptions(),g={procedure_path:r,procedure_type:c};if(o.addNonEnumerableProperty(g,"__sentry_override_normalization_depth__",1+(m?.normalizeDepth??5)),(void 0!==e.attachRpcInput?e.attachRpcInput:m?.sendDefaultPii)&&(void 0!==p&&(g.input=s.normalize(p)),void 0!==f&&"function"==typeof f))try{let e=await f();g.input=s.normalize(e)}catch{}return n.withIsolationScope(t=>(t.setContext("trpc",g),l.startSpanManual({name:`trpc/${r}`,op:"rpc.server",attributes:{[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"},forceTransaction:!!e.forceTransaction},async e=>{try{let t=await d();return"object"==typeof t&&null!==t&&"ok"in t&&!t.ok&&"error"in t&&i.captureException(t.error,u),e.end(),t}catch(t){throw i.captureException(t,u),e.end(),t}})))}}},38537:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(113),a=r(85699);class o extends n.Client{constructor(e){const t=s(e),r=a.WINDOW.SENTRY_SDK_SOURCE||n.getSDKSource();n.applySdkMetadata(t,"browser",["browser"],r),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:i,sendClientReports:o,enableLogs:l,_experiments:u,enableMetrics:c}=this._options,d=c??u?.enableMetrics??!0;a.WINDOW.document&&(o||l||d)&&a.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===a.WINDOW.document.visibilityState&&(o&&this._flushOutcomes(),l&&n._INTERNAL_flushLogsBuffer(this),d&&n._INTERNAL_flushMetricsBuffer(this))}),i&&this.on("beforeSendSession",n.addAutoIpAddressToSession)}eventFromException(e,t){return i.eventFromException(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return i.eventFromMessage(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}function s(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:a.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}t.BrowserClient=o,t.applyDefaultOptions=s},38646:(e,t,r)=>{let n,i,a,o;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let s=r(75567),l=r(76953);function u(e){let t=l.GLOBAL_OBJ._sentryDebugIds,r=l.GLOBAL_OBJ._debugIds;if(!t&&!r)return{};let s=t?Object.keys(t):[],u=r?Object.keys(r):[];if(o&&s.length===i&&u.length===a)return o;i=s.length,a=u.length,o={},n||(n={});let c=(t,r)=>{for(let i of t){let t=r[i],a=n?.[i];if(a&&o&&t)o[a[0]]=t,n&&(n[i]=[a[0],t]);else if(t){let r=e(i);for(let e=r.length-1;e>=0;e--){let a=r[e],s=a?.filename;if(s&&o&&n){o[s]=t,n[i]=[s,t];break}}}}};return t&&c(s,t),r&&c(u,r),o}t.getDebugImagesForResources=function(e,t){let r=u(e);if(!r)return[];let n=[];for(let e of t){let t=s.normalizeStackTracePath(e);t&&r[t]&&n.push({type:"sourcemap",code_file:e,debug_id:r[t]})}return n},t.getFilenameToDebugIdMap=u},38717:(e,t,r)=>{"use strict";r.d(t,{h:()=>function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}})},38819:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(19849),a=r(55639),o=r(75171),s=[],l=new Map,u=new Map,c={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"};function d(){return a.addInpInstrumentationHandler(p)}let p=({metric:e})=>
479{if(void 0==e.value)return;let t=o.msToSec(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&c[t.name]);if(!r)return;let{interactionId:i}=r,a=c[r.name],s=o.msToSec(n.browserPerformanceTimeOrigin()+r.startTime),u=n.getActiveSpan(),d=u?n.getRootSpan(u):void 0,p=null!=i?l.get(i):void 0,f=p?.span||d,h=f?n.spanToJSON(f).description:n.getCurrentScope().getScopeData().transactionName,m=p?.elementName||n.htmlTreeAsString(r.target),g={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${a}`,[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r.duration},_=o.startStandaloneWebVitalSpan({name:m,transaction:h,attributes:g,startTime:s});_&&(_.addEvent("inp",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),_.end(s+t))};t._onInp=p,t._trackINP=d,t.registerInpInteractionListener=function(){let e=Object.keys(c);function t(e){let t=e.target;if(!t)return;let r=n.htmlTreeAsString(t),i=Math.round(e.timeStamp);if(u.set(i,r),u.size>50){let e=u.keys().next().value;void 0!==e&&u.delete(e)}}n.isBrowser()&&e.forEach(e=>{i.WINDOW.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=n.getActiveSpan(),r=t&&n.getRootSpan(t);e.forEach(e=>{if(!a.isPerformanceEventTiming(e))return;let t=e.interactionId;if(null==t||l.has(t))return;let i=e.target?n.htmlTreeAsString(e.target):function(e){let t=Math.round(e.startTime),r=u.get(t);if(!r)for(let e=-5;e<=5;e++){let n=u.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(s.length>10){let e=s.shift();l.delete(e)}s.push(t),l.set(t,{span:r,elementName:i})})};a.addPerformanceInstrumentationHandler("event",r),a.addPerformanceInstrumentationHandler("first-input",r)},t.startTrackingINP=function(){if(o.getBrowserPerformanceAPI()&&n.browserPerformanceTimeOrigin()){let e=d();return()=>{e()}}return()=>void 0}},38842:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.LANGCHAIN_INTEGRATION_NAME="LangChain",t.LANGCHAIN_ORIGIN="auto.ai.langchain",t.ROLE_MAP={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},39206:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=n.GLOBAL_OBJ,a=new WeakMap;t.reportingObserverIntegration=n.defineIntegration((e={})=>{let t=e.types||["crash","deprecation","intervention"];function r(e){if(a.has(n.getClient()))for(let t of e)n.withScope(e=>{e.setExtra("url",t.url);let r=`ReportingObserver [${t.type}]`,i="No details available";if(t.body){let r={};for(let e in t.body)r[e]=t.body[e];if(e.setExtra("body",r),"crash"===t.type){let e=t.body;i=[e.crashId||"",e.reason||""].join(" ").trim()||i}else i=t.body.message||i}n.captureMessage(`${r}: ${i}`)})}return{name:"ReportingObserver",setupOnce(){n.supportsReportingObserver()&&new i.ReportingObserver(r,{buffered:!0,types:t}).observe()},setup(e){a.set(e,!0)}}})},39376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={isRecoverableError:function(){return c},onRecoverableError:function(){return d}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(75591),o=r(35612),s=a._(r(25116)),l=r(89104),u=new WeakSet;function c(e){return u.has(e)}let d=e=>{let t=(0,s.default)(e)&&"cause"in e?e.cause:e;(0,o.isBailoutToCSRError)(t)||(0,l.reportGlobalError)(t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39482:(e,t,r)=>{e.exports=r(49383)},39810:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(44774),a=r(55639),o=r(75171);function s(e,t,r,a){i.DEBUG_BUILD&&n.debug.log(`Sending CLS span (${e})`);let s=t?o.msToSec((n.browserPerformanceTimeOrigin()||0)+t.startTime):n.timestampInSeconds(),l=n.getCurrentScope().getScopeData().transactionName,u=t?n.htmlTreeAsString(t.sources[0]?.node):"Layout shift",c={[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[n.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":r,"sentry.report_event":a};
479t?.sources&&t.sources.forEach((e,t)=>{c[`cls.source.${t+1}`]=n.htmlTreeAsString(e.node)});let d=o.startStandaloneWebVitalSpan({name:u,transaction:l,attributes:c,startTime:s});d&&(d.addEvent("cls",{[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),d.end(s))}t._sendStandaloneClsSpan=s,t.trackClsAsStandaloneSpan=function(e){let t,r=0;if(!o.supportsWebVital("layout-shift"))return;let n=a.addClsInstrumentationHandler(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);o.listenForWebVitalReportEvents(e,(e,i)=>{s(r,t,i,e),n()})}},39888:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return o},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return s},UNDERSCORE_NOT_FOUND_ROUTE:function(){return i},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return a}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i="/_not-found",a=`${i}/page`,o="/_global-error",s=`${o}/page`},39918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={compareAppPaths:function(){return l},normalizeAppPath:function(){return s},normalizeRscURL:function(){return u}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(49195),o=r(78145);function s(e){return(0,a.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:`${e}/${t}`,""))}function l(e,t){let r=e.includes("/@"),n=t.includes("/@");return r&&!n?-1:!r&&n?1:e.localeCompare(t)}function u(e){return e.replace(/\.rsc($|\?)/,"$1")}},40006:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(65224),o=r(11661);t.sampleSpan=function(e,t,r){let s,l;if(!a.hasSpansEnabled(e))return[!1];"function"==typeof e.tracesSampler?(s=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),l=!0):void 0!==t.parentSampled?s=t.parentSampled:void 0!==e.tracesSampleRate&&(s=e.tracesSampleRate,l=!0);let u=o.parseSampleRate(s);if(void 0===u)return n.DEBUG_BUILD&&i.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!u)return n.DEBUG_BUILD&&i.debug.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,u,l];let c=r<u;return!c&&n.DEBUG_BUILD&&i.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[c,u,l]}},40078:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(62652),i=0;class a{constructor(){a.prototype.__init.call(this),a.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){i=n.getInteractionCount(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((n.getInteractionCount()-i)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),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?.(r)}}}t.InteractionManager=a},40126:(e,t,r)=>{"use strict";
479Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(24157),i=r(33045);function a(e,t,r=!0){let o=new URL((0,n.getLocationOrigin)()),s=t?new URL(t,o):e.startsWith(".")?new URL(window.location.href):o,{pathname:l,searchParams:u,search:c,hash:d,href:p,origin:f}=e.startsWith("/")?new URL(`${s.protocol}//${s.host}${e}`):new URL(e,s);if(f!==o.origin)throw Object.defineProperty(Error(`invariant: invalid relative URL, router received ${e}`),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{auth:null,host:null,hostname:null,pathname:l,port:null,protocol:null,query:r?(0,i.searchParamsToUrlQuery)(u):void 0,search:c,hash:d,href:p.slice(f.length),slashes:null}}},40330:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(16039),i=r(41291);class a{constructor(e={}){this._traceId=e.traceId||n.generateTraceId(),this._spanId=e.spanId||n.generateSpanId()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:i.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}t.SentryNonRecordingSpan=a},40379:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.LANGGRAPH_INTEGRATION_NAME="LangGraph",t.LANGGRAPH_ORIGIN="auto.ai.langgraph"},40584:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.AI_MODEL_ID_ATTRIBUTE="ai.model.id",t.AI_OPERATION_ID_ATTRIBUTE="ai.operationId",t.AI_PROMPT_ATTRIBUTE="ai.prompt",t.AI_PROMPT_MESSAGES_ATTRIBUTE="ai.prompt.messages",t.AI_PROMPT_TOOLS_ATTRIBUTE="ai.prompt.tools",t.AI_RESPONSE_OBJECT_ATTRIBUTE="ai.response.object",t.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE="ai.response.providerMetadata",t.AI_RESPONSE_TEXT_ATTRIBUTE="ai.response.text",t.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE="ai.response.toolCalls",t.AI_SCHEMA_ATTRIBUTE="ai.schema",t.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE="ai.telemetry.functionId",t.AI_TOOL_CALL_ARGS_ATTRIBUTE="ai.toolCall.args",t.AI_TOOL_CALL_ID_ATTRIBUTE="ai.toolCall.id",t.AI_TOOL_CALL_NAME_ATTRIBUTE="ai.toolCall.name",t.AI_TOOL_CALL_RESULT_ATTRIBUTE="ai.toolCall.result",t.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE="ai.usage.cachedInputTokens",t.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE="ai.usage.completionTokens",t.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE="ai.usage.promptTokens",t.OPERATION_NAME_ATTRIBUTE="operation.name"},40628:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(19849),i=r(60887);t.onHidden=e=>{let t=t=>{("pagehide"===t.type||n.WINDOW.document?.visibilityState==="hidden")&&e(t)};i.addPageListener("visibilitychange",t,{capture:!0,once:!0}),i.addPageListener("pagehide",t,{capture:!0,once:!0})}},41098:(e,t,r)=>{"use strict";r.d(t,{RV:()=>d,Wt:()=>f,gd:()=>o,nY:()=>p,qQ:()=>c,vk:()=>s,yF:()=>n});let n="?",i=/\(error: (.*)\)/,a=/captureMessage|captureException/;function o(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,r=0,o=0)=>{let s=[],u=e.split("\n");for(let e=r;e<u.length;e++){let r=u[e];r.length>1024&&(r=r.slice(0,1024));let n=i.test(r)?r.replace(i,"$1"):r;if(!n.match(/\S*Error: /)){for(let e of t){let t=e(n);if(t){s.push(t);break}}if(s.length>=50+o)break}}var c=s.slice(o);if(!c.length)return[];let d=Array.from(c);return/sentryWrapped/.test(l(d).function||"")&&d.pop(),d.reverse(),a.test(l(d).function||"")&&(d.pop(),a.test(l(d).function||"")&&d.pop()),d.slice(0,50).map(e=>({...e,filename:e.filename||l(d).filename,function:e.function||n}))}}function s(e){return Array.isArray(e)?o(...e):e}function l(e){return e[e.length-1]||{}}let u="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return u;return e.name||u}catch{return u}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}function p(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function f(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}},41291:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(94748),i=r(99056),a=r(66908),o=r(76677),s=r(15793),l=r(86652),u=r(51045),c=r(16039),d=r(62327),p=r(80920),f=r(86160),h=r(14645),m=!1;function g(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:1===r,attributes:i,...n})):void 0}function _(e){return"number"==typeof e?y(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?y(e.getTime()):d.timestampInSeconds()}function y(e){return e>0x2540be3ff?e/1e3:e}function S(e){var t;if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:r,traceId:n}=e.spanContext();if((t=e).attributes&&t.startTime&&t.name&&t.endTime&&t.status){let{attributes:t,startTime:i,name:a,endTime:s,status:l,links:u}=e;return{span_id:r,trace_id:n,data:t,description:a,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:_(i),timestamp:_(s)||void 0,status:b(l),op:t[o.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:t[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:g(u)}}return{span_id:r,trace_id:n,start_timestamp:0,data:{}}}function E(e){let{traceFlags:t}=e.spanContext();return 1===t}function b(e){if(e&&e.code!==s.SPAN_STATUS_UNSET)return e.code===s.SPAN_STATUS_OK?"ok":e.message||"internal_error"}let T="_sentryChildSpans",v="_sentryRootSpan";t.TRACE_FLAG_NONE=0,t.TRACE_FLAG_SAMPLED=1,t.addChildSpanToSpan=function(e,t){let r=e[v]||e;u.addNonEnumerableProperty(t,v,r),e[T]?e[T].add(t):u.addNonEnumerableProperty(e,T,new Set([t]))},t.convertSpanLinksForEnvelope=g,t.getActiveSpan=function(){let e=i.getMainCarrier(),t=n.getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():h._getSpanForScope(a.getCurrentScope())},t.getRootSpan=function(e){return e[v]||e},t.getSpanDescendants=function(e){let t=new Set;return!function e(r){if(!t.has(r)&&E(r))for(let n of(t.add(r),r[T]?Array.from(r[T]):[]))e(n)}(e),Array.from(t)},t.getStatusMessage=b,t.removeChildSpanFromSpan=function(e,t){e[T]&&e[T].delete(t)},t.showSpanDropWarning=function(){m||(f.consoleSandbox(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),m=!0)},t.spanIsSampled=E,t.spanTimeInputToSeconds=_,t.spanToJSON=S,t.spanToTraceContext=function(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:S(e).parent_span_id,a=l.getCapturedScopesOnSpan(e).scope;return{parent_span_id:i,span_id:n?a?.getPropagationContext().propagationSpanId||c.generateSpanId():t,trace_id:r}},t.spanToTraceHeader=function(e){let{traceId:t,spanId:r}=e.spanContext(),n=E(e);return p.generateSentryTraceHeader(t,r,n)},t.spanToTraceparentHeader=function(e){let{traceId:t,spanId:r}=e.spanContext(),n=E(e);return p.generateTraceparentHeader(t,r,n)},t.spanToTransactionTraceContext=function(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:a,status:o,origin:s,links:l}=S(e);return{parent_span_id:a,span_id:t,trace_id:r,data:n,op:i,status:o,origin:s,links:l}},t.updateSpanName=function(e,t){e.updateName(t),e.setAttributes({[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[o.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},41341:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(43667);t.getActivationStart=()=>{let e=n.getNavigationEntry();return e?.activationStart??0}},41452:(e,t)=>
479{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=new WeakMap;t.initUnique=function(e,t){try{return r.get(e)||r.set(e,new t),r.get(e)}catch(e){return new t}}},41504:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});class r{constructor(){r.prototype.__init.call(this),r.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.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)}}t.LayoutShiftManager=r},41612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(75591)._(r(26));class i{constructor(e,t,r){this.name=e,this.attributes=t.attributes??{},this.startTime=t.startTime??Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}end(e){if("ended"===this.state.state)throw Object.defineProperty(Error("Span has already ended"),"__NEXT_ERROR_CODE",{value:"E17",enumerable:!1,configurable:!0});this.state={state:"ended",endTime:e??Date.now()},this.onSpanEnd(this)}}class a{startSpan(e,t){return new i(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let o=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42248:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(99056),i=r(8788);t.getDefaultCurrentScope=function(){return n.getGlobalSingleton("defaultCurrentScope",()=>new i.Scope)},t.getDefaultIsolationScope=function(){return n.getGlobalSingleton("defaultIsolationScope",()=>new i.Scope)}},42337:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(46298),i=r(74085),a=r(6386),o=r(75567),s=n.defineIntegration(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{a.forEachEnvelopeItem(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(i.stripMetadataFromStackFrames(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;let r=e.getOptions().stackParser;i.addMetadataToStackFrames(r,t)})},processEvent(t){let r=function(e,t){let r=o.getFramesFromEvent(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t){if(0!==t||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(c))return!1;if(e.pre_context){let t=e.pre_context.length;for(let r=0;r<t;r++)if(e.pre_context[r]?.includes(u))return!0}return!1}(e,r))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(l)).map(e=>e.slice(l.length)):[])}(t,e.ignoreSentryInternalFrames);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}})),l="_sentryBundlerPluginAppKey:",u="Attempt to invoke user-land function",c="fn.apply(this, wrappedArguments)";t.thirdPartyErrorFilterIntegration=s},42426:(e,t,r)=>{let n;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=r(79700),a=r(19849);function o(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let o=n,s=function(e){try{return new URL(e,a.WINDOW.location.origin).toString()}catch{return e}}(String(r));if(n=s,o===s)return e.apply(this,t);i.triggerHandlers("history",{from:o,to:s})}return e.apply(this,t)}}a.WINDOW.addEventListener("popstate",()=>{let e=a.WINDOW.location.href,t=n;n=e,t===e||i.triggerHandlers("history",{from:t,to:e})}),i.supportsHistory()&&(i.fill(a.WINDOW.history,"pushState",e),i.fill(a.WINDOW.history,"replaceState",e))}t.addHistoryInstrumentationHandler=function(e){let t="history";i.addHandler(t,e),i.maybeInstrument(t,o)},t.instrumentHistory=o},42686:(e,t,r)=>{let n;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=r(51045),a=r(79691),o=r(62151),s=r(76953);function l(e){return e.exception?.values?.[0]}let u=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?
479:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function c(e){return parseInt(e||"",10)}function d(e){try{return e.__sentry_captured__}catch{}}t.addContextToFrame=function(e,t,r=5){if(void 0===t.lineno)return;let n=e.length,i=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-r),i).map(e=>o.snipLine(e,0));let a=Math.min(n-1,i);t.context_line=o.snipLine(e[a],t.colno||0),t.post_context=e.slice(Math.min(i+1,n),i+1+r).map(e=>o.snipLine(e,0))},t.addExceptionMechanism=function(e,t){let r=l(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}},t.addExceptionTypeValue=function(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=r||"Error")},t.checkOrSetAlreadyCaught=function(e){if(d(e))return!0;try{i.addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch{}return!1},t.getEventDescription=function(e){let{message:t,event_id:r}=e;if(t)return t;let n=l(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"},t.isAlreadyCaptured=d,t.parseSemver=function(e){let t=e.match(u)||[],r=c(t[1]),n=c(t[2]),i=c(t[3]);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:t[4]}},t.uuid4=function(e=function(){let e=s.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return a.withRandomSafeContext(()=>e.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*a.safeMathRandom())>>e/4).toString(16))}},42915:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(4794),i=r(97284);t.feedbackAsyncIntegration=n.buildFeedbackIntegration({lazyLoadIntegration:i.lazyLoadIntegration})},42970:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});
479let n=r(76677),i=r(23105),a=r(71296),o=r(15482),s=r(23675),l=r(38842),u=(e,t,r)=>{null!=r&&(e[t]=r)},c=(e,t,r)=>{let n=Number(r);Number.isNaN(n)||(e[t]=n)};function d(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function p(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&a.isContentMedia(e)?a.stripInlineMediaFromSingleMessage(e):e);return JSON.stringify(t)}catch{return String(e)}return d(e)}function f(e){let t=e.toLowerCase();return l.ROLE_MAP[t]??t}function h(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function m(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:f(t.call(e)),content:p(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:f("string"==typeof r?h(r):"user"),content:p(e.kwargs?.content)}}if(e.type)return{role:f(String(e.type).toLowerCase()),content:p(e.content)};if(e.role)return{role:f(String(e.role)),content:p(e.content)};let r=e.constructor?.name;return r&&"Object"!==r?{role:f(h(r)),content:p(e.content)}:{role:"user",content:p(e.content)}})}function g(e,t,r,a,o){let s,p,f,h,m,g,_;return{[i.GEN_AI_SYSTEM_ATTRIBUTE]:d(e??"langchain"),[i.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[i.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:d(t),[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,...(s={},p="kwargs"in r?r.kwargs:void 0,f=a?.temperature??o?.ls_temperature??p?.temperature,c(s,i.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,f),h=a?.max_tokens??o?.ls_max_tokens??p?.max_tokens,c(s,i.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,h),m=a?.top_p??p?.top_p,c(s,i.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,m),g=a?.frequency_penalty,c(s,i.GEN_AI_REQUEST_FREQUENCY_PENA
479LTY_ATTRIBUTE,g),_=a?.presence_penalty,c(s,i.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,_),a&&"stream"in a&&u(s,i.GEN_AI_REQUEST_STREAM_ATTRIBUTE,!!a.stream),s)}}t.extractChatModelRequestAttributes=function(e,t,r,n,a){let l=g(a?.ls_provider??e.id?.[2],n?.model??a?.ls_model_name??"unknown",e,n,a);if(r&&Array.isArray(t)&&t.length>0){let e=m(t.flat()),{systemInstructions:r,filteredMessages:n}=s.extractSystemInstructions(e);r&&u(l,i.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,r);let a=Array.isArray(n)?n.length:0;u(l,i.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,a);let c=o.truncateGenAiMessages(n);u(l,i.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,d(c))}return l},t.extractLLMRequestAttributes=function(e,t,r,n,a){let o=g(a?.ls_provider,n?.model??a?.ls_model_name??"unknown",e,n,a);if(r&&Array.isArray(t)&&t.length>0){u(o,i.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,t.length);let e=t.map(e=>({role:"user",content:e}));u(o,i.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,d(e))}return o},t.extractLlmResponseAttributes=function(e,t){if(!e)return;let r={};if(Array.isArray(e.generations)){let a=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);a.length>0&&u(r,i.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,d(a));var n=e.generations;let o=[];for(let e of n.flat()){let t=e.message?.content;if(Array.isArray(t))for(let e of t)"tool_use"===e.type&&o.push(e)}if(o.length>0&&u(r,i.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,d(o)),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&u(r,i.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,d(t))}}!function(e,t){if(!e)return;let r=e.tokenUsage,n=e.usage;if(r)c(t,i.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,r.promptTokens),c(t,i.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,r.completionTokens),c(t,i.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,r.totalTokens);else if(n){c(t,i.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,n.input_tokens),c(t,i.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,n.output_tokens);let e=Number(n.input_tokens),r=Number(n.output_tokens),a=(Number.isNaN(e)?0:e)+(Number.isNaN(r)?0:r);a>0&&c(t,i.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,a),void 0!==n.cache_creation_input_tokens&&c(t,i.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,n.cache_creation_input_tokens),void 0!==n.cache_read_input_tokens&&c(t,i.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,n.cache_read_input_tokens)}}(e.llmOutput,r);let a=e.llmOutput,o=e.generations?.[0]?.[0],s=o?.message,l=a?.model_name??a?.model??s?.response_metadata?.model_name;l&&u(r,i.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,l);let p=a?.id??s?.id;p&&u(r,i.GEN_AI_RESPONSE_ID_ATTRIBUTE,p);let f=a?.stop_reason??s?.response_metadata?.finish_reason;return f&&u(r,i.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,d(f)),r},t.getInvocationParams=function(e){if(!(!e||Array.isArray(e)))return e.invocation_params},t.normalizeLangChainMessages=m},43379:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(86160),i=r(51045),a=r(76953),o=r(23607);function s(){"console"in a.GLOBAL_OBJ&&n.CONSOLE_LEVELS.forEach(function(e){e in a.GLOBAL_OBJ.console&&i.fill(a.GLOBAL_OBJ.console,e,function(t){return n.originalConsoleMethods[e]=t,function(...t){o.triggerHandlers("console",{args:t,level:e});let r=n.originalConsoleMethods[e];r?.apply(a.GLOBAL_OBJ.console,t)}})})}t.addConsoleInstrumentationHandler=function(e){let t="console";o.addHandler(t,e),o.maybeInstrument(t,s)}},43389:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return i}});let n=r(58885);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:a}=(0,n.parsePath)(e);return`${r}${t}${i}${a}`}},43445:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(38398),a=r(76677),o=r(86160),s=r(65224),l=r(17805),u=r(14645),c=r(41291),d=r(62327),p=r(404),f=r(40330),h=r(58232),m=r(15793),g=r(95068),_={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};t.TRACING_DEFAULTS=_,t.startIdleSpan=function(e,t={}){var r;let y,S,E=new Map,b=!1,T="externalFinish",v=!t.disableAutoFinish,I=[],{idleTimeout:A=_.idleTimeout,finalTimeout:R=_.finalTimeout,childSpanTimeout:O=_.childSpanTimeout,beforeSpanEnd:w,trimIdleSpanEndTimestamp:N=!0}=t,C=n.getClient();if(!C||!s.hasSpansEnabled()){let e=new f.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...p.getDynamicSamplingContextFromSpan(e)};return p.freezeDscOnSpan(e,t),e}let P=n.getCurrentScope(),k=c.getActiveSpan(),M=(r=e,y=g.startInactiveSpan(r),u._setSpanForScope(n.getCurrentScope(),y),i.DEBUG_BUILD&&o.debug.log("[Tracing] Started span is an i
479dle span"),y);function x(){S&&(clearTimeout(S),S=void 0)}function L(e){x(),S=setTimeout(()=>{!b&&0===E.size&&v&&(T="idleTimeout",M.end(e))},A)}function U(e){S=setTimeout(()=>{!b&&v&&(T="heartbeatFailed",M.end(e))},O)}function D(e){b=!0,E.clear(),I.forEach(e=>e()),u._setSpanForScope(P,k);let t=c.spanToJSON(M),{start_timestamp:r}=t;if(!r)return;t.data[a.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||M.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,T);let n=t.status;n&&"unknown"!==n||M.setStatus({code:m.SPAN_STATUS_OK}),o.debug.log(`[Tracing] Idle span "${t.op}" finished`);let s=c.getSpanDescendants(M).filter(e=>e!==M),l=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:m.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),i.DEBUG_BUILD&&o.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=c.spanToJSON(t),a=n<=e,s=r-n<=(R+A)/1e3;if(i.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);a?s||o.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):o.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!s||!a)&&(c.removeChildSpanFromSpan(M,t),l++)}),l>0&&M.setAttribute("sentry.idle_span_discarded_spans",l)}return M.end=new Proxy(M.end,{apply(e,t,r){if(w&&w(M),t instanceof f.SentryNonRecordingSpan)return;let[n,...i]=r,a=n||d.timestampInSeconds(),o=c.spanTimeInputToSeconds(a),s=c.getSpanDescendants(M).filter(e=>e!==M),u=c.spanToJSON(M);if(!s.length||!N)return D(o),Reflect.apply(e,t,[o,...i]);let p=C.getOptions().ignoreSpans,h=s?.reduce((e,t)=>{let r=c.spanToJSON(t);return!r.timestamp||p&&l.shouldIgnoreSpan(r,p)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),m=u.start_timestamp,g=Math.min(m?m+R/1e3:1/0,Math.max(m||-1/0,Math.min(o,h||1/0)));return D(g),Reflect.apply(e,t,[g,...i])}}),I.push(C.on("spanStart",e=>{var t;!(b||e===M||c.spanToJSON(e).timestamp||e instanceof h.SentrySpan&&e.isStandaloneSpan())&&c.getSpanDescendants(M).includes(e)&&(t=e.spanContext().spanId,x(),E.set(t,!0),U(d.timestampInSeconds()+O/1e3))})),I.push(C.on("spanEnd",e=>{if(!b){var t;t=e.spanContext().spanId,E.has(t)&&E.delete(t),0===E.size&&L(d.timestampInSeconds()+A/1e3)}})),I.push(C.on("idleSpanEnableAutoFinish",e=>{e===M&&(v=!0,L(),E.size&&U())})),t.disableAutoFinish||L(),setTimeout(()=>{b||(M.setStatus({code:m.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),T="finalTimeout",M.end())},R),M}},43637:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700);t.reportPageLoaded=function(e=n.getClient()){e?.emit("endPageloadSpan")}},43667:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(19849);t.getNavigationEntry=(e=!0)=>{let t=n.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},43759:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(34175);function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}t.isSentryRequestUrl=function(e,t){var r,a,o,s;let l,u=t?.getDsn(),c=t?.getOptions().tunnel;return r=e,a=u,!(!(l=n.parseStringToURLObject(r))||n.isURLObjectRelative(l))&&!!a&&l.host.includes(a.host)&&/(^|&|\?)sentry_key=/.test(l.search)||(o=e,!!(s=c)&&i(o)===i(s))}},44153:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(76953),i=r(23607),a=null;function o(){a=n.GLOBAL_OBJ.onerror,n.GLOBAL_OBJ.onerror=function(e,t,r,n,o){return i.triggerHandlers("error",{column:n,error:o,line:r,msg:e,url:t}),!!a&&a.apply(this,arguments)},n.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}t.addGlobalErrorInstrumentationHandler=function(e){let t="error";i.addHandler(t,e),i.maybeInstrument(t,o)}},44774:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.DEBUG_BUILD=!1},44829:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(53374),i=r(42686),a=r(98473),o=r(51045);function s(e,t){return e(t.stack||"",1)}function l(e){return n.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 u(e,t){let r={type:t.name||t.constructor.name,value:l(t)},n=s(e,t);return n.length&&(r.stacktrace={frames:n}),r}t._enhanceErrorWithSentryInfo=l,t.eventFromMessage=function(e,t,r="info",a,o){let l={event_id:a?.event_id,level:r};if(o&&a?.syntheticException){let r=s(e,a.syntheticException);r.length&&(l.exception={values:[{value:t,stacktrace:{frames:r}}]},i.addExceptionMechanism(l,{synthetic:!0}))}
479if(n.isParameterizedString(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return l.logentry={message:e,params:r},l}return l.message=t,l},t.eventFromUnknownInput=function(e,t,r,s){let l=s?.data&&s.data.mechanism||{handled:!0,type:"generic"},[c,d]=function(e,t,r,i){if(n.isError(r))return[r,void 0];if(t.synthetic=!0,n.isPlainObject(r)){let t=e?.getOptions().normalizeDepth,s={__serialized__:a.normalizeToSize(r,t)},l=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(r);if(l)return[l,s];let u=function(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}if("message"in e&&"string"==typeof e.message)return e.message;let t=o.extractExceptionKeysForMessage(e);if(n.isErrorEvent(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;let r=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`${r&&"Object"!==r?`'${r}'`:"Object"} captured as exception with keys: ${t}`}(r),c=i?.syntheticException||Error(u);return c.message=u,[c,s]}let s=i?.syntheticException||Error(r);return s.message=`${r}`,[s,void 0]}(e,l,r,s),p={exception:{values:[u(t,c)]}};return d&&(p.extra=d),i.addExceptionTypeValue(p,void 0,void 0),i.addExceptionMechanism(p,l),{...p,event_id:s?.event_id}},t.exceptionFromError=u,t.parseStackFrames=s},45335:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=new Set;t._INTERNAL_clearAiProviderSkips=function(){a.clear(),n.DEBUG_BUILD&&i.debug.log("Cleared AI provider skip registrations")},t._INTERNAL_shouldSkipAiProviderWrapping=function(e){return a.has(e)},t._INTERNAL_skipAiProviderWrapping=function(e){e.forEach(e=>{a.add(e),n.DEBUG_BUILD&&i.debug.log(`AI provider "${e}" wrapping will be skipped`)})}},45455:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(75567);function i(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&void 0!==e&&!e.includes("node_modules/")}function a(e){let t=/^\s*[-]{4,}$/,r=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/,a=/at (?:async )?(.+?) \(data:(.*?),/;return s=>{let l=s.match(a);if(l)return{filename:`<data:${l[2]}>`,function:l[1]};let u=s.match(r);if(u){let t,r,a,s,l;if(u[1]){let e=(a=u[1]).lastIndexOf(".");if("."===a[e-1]&&e--,e>0){t=a.slice(0,e),r=a.slice(e+1);let n=t.indexOf(".Module");n>0&&(a=a.slice(n+1),t=t.slice(0,n))}s=void 0}r&&(s=t,l=r),"<anonymous>"===r&&(l=void 0,a=void 0),void 0===a&&(l=l||n.UNKNOWN_FUNCTION,a=s?`${s}.${l}`:l);let c=n.normalizeStackTracePath(u[2]),d="native"===u[5];c||!u[5]||d||(c=u[5]);let p=c?function(e){try{return decodeURI(e)}catch{return}}(c):void 0;return{filename:p??c,module:p&&e?.(p),function:a,lineno:o(u[3]),colno:o(u[4]),in_app:i(c||"",d)}}if(s.match(t))return{filename:s}}}function o(e){return parseInt(e||"",10)||void 0}t.filenameIsInApp=i,t.node=a,t.nodeStackLineParser=function(e){return[90,a(e)]}},45573:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(19849),i=r(41341),a=r(60887),o=-1,s=new Set,l=e=>{if(("pagehide"===e.type||n.WINDOW.document?.visibilityState==="hidden")&&o>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of s)e();isFinite(o)||(o="visibilitychange"===e.type?e.timeStamp:0,a.removePageListener("prerenderingchange",l,!0))}};t.getVisibilityWatcher=()=>{if(n.WINDOW.document&&o<0){let e=i.getActivationStart();o=(n.WINDOW.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(n.WINDOW.document?.visibilityState!=="hidden"||n.WINDOW.document?.prerendering?1/0:0),a.addPageListener("visibilitychange",l,!0),a.addPageListener("pagehide",l,!0),a.addPageListener("prerenderingchange",l,!0)}return{get firstHiddenTime(){return o},onHidden(e){s.add(e)}}}},45936:(e,t,r)=>{"use strict";r.d(t,{GS:()=>s,HF:()=>h,W4:()=>d,my:()=>l,pO:()=>u,sp:()=>c});var n=r(62877),i=r(14357),a=r(59685),o=r(21275);function s(e,t,r){if(!(t in e))return;let i=e[t];if("function"!=typeof i)return;
479let o=r(i);"function"==typeof o&&u(o,i);try{e[t]=o}catch{n.T&&a.Yz.log(`Failed to replace method "${t}" in object`,e)}}function l(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.T&&a.Yz.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,l(e,"__sentry_original__",t)}catch{}}function c(e){return e.__sentry_original__}function d(e){if((0,o.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if(!(0,o.xH)(e))return e;{let t={type:e.type,target:p(e.target),currentTarget:p(e.currentTarget),...f(e)};return"u">typeof CustomEvent&&(0,o.tH)(e,CustomEvent)&&(t.detail=e.detail),t}}function p(e){try{return(0,o.vq)(e)?(0,i.Hd)(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function f(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function h(e){let t=Object.keys(d(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}},45955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(75591)._(r(14343)).default.createContext({})},46181:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(72055),i=r(41341),a=r(45573),o=r(49287),s=r(31603),l=r(89784),u=[1800,3e3];t.FCPThresholds=u,t.onFCP=(e,t={})=>{l.whenActivated(()=>{let r,l=a.getVisibilityWatcher(),c=o.initMetric("FCP"),d=s.observe("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(d.disconnect(),t.startTime<l.firstHiddenTime&&(c.value=Math.max(t.startTime-i.getActivationStart(),0),c.entries.push(t),r(!0)))});d&&(r=n.bindReporter(e,c,u,t.reportAllChanges))})}},46298:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(38398),a=r(86160),o=[];function s(e,t,r){if(r[t.name]){i.DEBUG_BUILD&&a.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,o.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),o.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}i.DEBUG_BUILD&&a.debug.log(`Integration installed: ${t.name}`)}t.addIntegration=function(e){let t=n.getClient();if(!t){i.DEBUG_BUILD&&a.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)},t.afterSetupIntegrations=function(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)},t.defineIntegration=function(e){return e},t.getIntegrationsToSetup=function(e){let t,r,n=e.defaultIntegrations||[],i=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...n,...i];else if("function"==typeof i){let e=i(n);t=Array.isArray(e)?e:[e]}else t=n;return r={},t.forEach(e=>{let{name:t}=e,n=r[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(r[t]=e)}),Object.values(r)},t.installedIntegrations=o,t.setupIntegration=s,t.setupIntegrations=function(e,t){let r={};return t.forEach(t=>{t&&s(e,t,r)}),r}},46726:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(38398),a=r(77191),o=r(76677),s=r(86160),l=r(53374),u=r(15793),c=r(95068),d=r(23105),p=r(23675),f=r(51762),h=r(95599);function m(e,t,r){if(r===d.OPENAI_OPERATIONS.EMBEDDINGS&&"input"in t){let r=t.input;if(null==r||"string"==typeof r&&0===r.length||Array.isArray(r)&&0===r.length)return;e.setAttribute(d.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof r?r:JSON.stringify(r));return}let n="input"in t?t.input:"messages"in t?t.messages:void 0;if(!n||Array.isArray(n)&&0===n.length)return;let{systemInstructions:i,filteredMessages:a}=p.extractSystemInstructions(n);i&&e.setAttribute(d.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,i);let o=p.getTruncatedJsonString(a);e.setAttribute(d.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,o),Array.isArray(a)?e.setAttribute(d.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,a.length):e.setAttribute(d.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}async function g(e,t){let r=e.catch(e=>{throw a.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai"}}),e}),n=await t,i=await r;return i&&"object"==typeof i&&"data"in i?{...i,data:n}:n}function _(e,t){return l.isThenable(e)?new Proxy(e,{get(e,r){let n=r in Promise.prototype||r===Symbol.toStringTag?t:e,i=Reflect.get(n,r);return"withResponse"===r&&"function"==typeof i?function(){return g(i.call(e),t)}:"function"==typeof i?i.bind(n):i}}):t}t.instrumentOpenAiClient=function(e,t){let r=!!n.getClient()?.getOptions().sendDefaultPii;return function e(t,r="",n){return new Proxy(t,{get(t,l){let p=t[l],g=h.buildMethodPath(r,String(l));if("function"==typeof p&&h.shouldInstrument(g))return function(...e){let r,l=function(e,t){let r={[d.GEN_AI_SYSTEM_ATTRIBUTE]:"open
479ai",[d.GEN_AI_OPERATION_NAME_ATTRIBUTE]:h.getOperationName(t),[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0],n=function(e){let t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){i.DEBUG_BUILD&&s.debug.error("Failed to serialize OpenAI tools:",e);return}}(t);n&&(r[d.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=n),Object.assign(r,h.extractRequestParameters(t))}else r[d.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return r}(e,g),y=l[d.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",S=h.getOperationName(g),E=e[0],b=E&&"object"==typeof E&&!0===E.stream,T={name:`${S} ${y}`,op:h.getSpanOperation(g),attributes:l};if(b){let r,i=c.startSpanManual(T,i=>(r=p.apply(t,e),n.recordInputs&&E&&m(i,E,S),(async()=>{try{let e=await r;return f.instrumentStream(e,i,n.recordOutputs??!1)}catch(e){throw i.setStatus({code:u.SPAN_STATUS_ERROR,message:"internal_error"}),a.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:g}}}),i.end(),e}})()));return _(r,i)}let v=c.startSpan(T,i=>(r=p.apply(t,e),n.recordInputs&&E&&m(i,E,S),r.then(e=>(!function(e,t,r){if(t&&"object"==typeof t)if(h.isChatCompletionResponse(t)){if(h.addChatCompletionAttributes(e,t,r),r&&t.choices?.length){let r=t.choices.map(e=>e.message?.content||"");e.setAttributes({[d.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(r)})}}else h.isResponsesApiResponse(t)?(h.addResponsesApiAttributes(e,t,r),r&&t.output_text&&e.setAttributes({[d.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.output_text})):h.isEmbeddingsResponse(t)?h.addEmbeddingsAttributes(e,t):h.isConversationResponse(t)&&h.addConversationAttributes(e,t)}(i,e,n.recordOutputs),e),e=>{throw a.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:g}}}),e})));return _(r,v)};return"function"==typeof p?p.bind(t):p&&"object"==typeof p?e(p,g,n):p}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}},46986:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(51045),a=r(95068),o=r(60008),s=r(65395),l=r(75309),u=r(9914),c=r(22944),d=r(37638),p=r(79822);t.wrapTransportError=function(e){e.onerror&&i.fill(e,"onerror",e=>function(t){return function(e){try{l.captureError(e,"transport")}catch{}}(t),e.call(this,t)})},t.wrapTransportOnClose=function(e){e.onclose&&i.fill(e,"onclose",e=>function(...t){return s.cleanupPendingSpansForTransport(this),c.cleanupSessionDataForTransport(this),e.call(this,...t)})},t.wrapTransportOnMessage=function(e,t){e.onmessage&&i.fill(e,"onmessage",e=>function(r,i){if(p.isJsonRpcRequest(r)){let l,p="initialize"===r.method;if(p)try{l=u.extractSessionDataFromInitializeRequest(r),c.storeSessionDataForTransport(this,l)}catch{}let f=n.getIsolationScope().clone();return n.withIsolationScope(f,()=>{let n=d.buildMcpServerSpanConfig(r,this,i,t),c=a.startInactiveSpan(n);return p&&l&&c.setAttributes({...u.buildClientAttributesFromInfo(l.clientInfo),...l.protocolVersion&&{[o.MCP_PROTOCOL_VERSION_ATTRIBUTE]:l.protocolVersion}}),s.storeSpanForRequest(this,r.id,c,r.method),a.withActiveSpan(c,()=>e.call(this,r,i))})}return p.isJsonRpcNotification(r)?d.createMcpNotificationSpan(r,this,i,t,()=>e.call(this,r,i)):e.call(this,r,i)})},t.wrapTransportSend=function(e,t){e.send&&i.fill(e,"send",e=>async function(...r){let[n]=r;if(p.isJsonRpcNotification(n))return d.createMcpOutgoingNotificationSpan(n,this,t,()=>e.call(this,...r));if(p.isJsonRpcResponse(n)&&null!==n.id&&void 0!==n.id){if(n.error&&function(e){try{if(e&&"object"==typeof e&&"code"in e&&"message"in e&&(-32603===e.code||e.code>=-32099&&e.code<=-32e3)){let t=Error(e.message);t.name=`JsonRpcError_${e.code}`,l.captureError(t,"protocol")}}catch{}}(n.error),p.isValidContentItem(n.result)&&(n.result.protocolVersion||n.result.serverInfo))try{let e=u.extractSessionDataFromInitializeResponse(n.result);c.updateSessionDataForTransport(this,e)}catch{}s.completeSpanWithResults(this,n.id,n.result,t)}return e.call(this,...r)})}},47150:(e,t,r)=>{"use strict";
479Object.defineProperty(t,"__esModule",{value:!0});var n={PathnameContextProviderAdapter:function(){return m},adaptForAppRouterInstance:function(){return p},adaptForPathParams:function(){return h},adaptForSearchParams:function(){return f}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(66476),o=r(15383),s=a._(r(14343)),l=r(57692),u=r(29052),c=r(21774),d=r(58059);function p(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},hmrRefresh(){},push(t,{scroll:r}={}){e.push(t,void 0,{scroll:r})},replace(t,{scroll:r}={}){e.replace(t,void 0,{scroll:r})},prefetch(t){e.prefetch(t)},bfcacheId:"0"}}function f(e){return e.isReady&&e.query?(0,c.asPathToSearchParams)(e.asPath):new URLSearchParams}function h(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,d.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function m({children:e,router:t,...r}){let n=(0,s.useRef)(r.isAutoExport),i=(0,s.useMemo)(()=>{let e,r=n.current;if(r&&(n.current=!1),(0,u.isDynamicRoute)(t.pathname)&&(t.isFallback||r&&!t.isReady))return null;try{e=new URL(t.asPath,"http://f")}catch(e){return"/"}return e.pathname},[t.asPath,t.isFallback,t.isReady,t.pathname]);return(0,o.jsx)(l.PathnameContext.Provider,{value:i,children:e})}},47700:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.parseCookie=function(e){let t={},r=0;for(;r<e.length;){let n=e.indexOf("=",r);
479if(-1===n)break;let i=e.indexOf(";",r);if(-1===i)i=e.length;else if(i<n){r=e.lastIndexOf(";",n-1)+1;continue}let a=e.slice(r,n).trim();if(void 0===t[a]){let r=e.slice(n+1,i).trim();34===r.charCodeAt(0)&&(r=r.slice(1,-1));try{t[a]=-1!==r.indexOf("%")?decodeURIComponent(r):r}catch{t[a]=r}}r=i+1}return t}},48164:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={isInterceptionAppRoute:function(){return c},isNormalizedAppRoute:function(){return u},parseAppRouteSegment:function(){return l},parseAppRouteWithSlots:function(){return f},parseNormalizedAppRoute:function(){return p}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(89323),o=r(60496),s=r(53241);function l(e){if(""===e)return null;let t=s.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),r=(0,o.getSegmentParam)(e);return r?{type:"dynamic",name:e,param:r,interceptionMarker:t}:e.startsWith("(")&&e.endsWith(")")?{type:"route-group",name:e,interceptionMarker:t}:e.startsWith("@")?{type:"parallel-route",name:e,interceptionMarker:t}:{type:"static",name:e,interceptionMarker:t}}function u(e){return e.normalized}function c(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}function d(e,t){let r,n,i,s=e.split("/").filter(Boolean),u=[];for(let c of s){let s=l(function(e){if(!/%5b|%5d/i.test(e))return e;try{let t=decodeURIComponent(e);return(0,o.getSegmentParam)(t)?t:e}catch{return e}}(c));if(s){if("route-group"===s.type&&!(2&t))throw Object.defineProperty(new a.InvariantError(`${e} is being parsed as a normalized route, but it has a route group segment.`),"__NEXT_ERROR_CODE",{value:"E1151",enumerable:!1,configurable:!0});if("parallel-route"===s.type&&!(1&t))throw Object.defineProperty(new a.InvariantError(`${e} is being parsed as a normalized route, but it has a parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E1152",enumerable:!1,configurable:!0});if(u.push(s),s.interceptionMarker){let a=e.split(s.interceptionMarker);if(2!==a.length)throw Object.defineProperty(Error(`Invalid interception route: ${e}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});n=d(a[0],t),i=d(a[1],t),r=s.interceptionMarker}}}let c=u.filter(e=>"dynamic"===e.type);return{normalized:0===t,pathname:e,segments:u,dynamicSegments:c,interceptionMarker:r,interceptingRoute:n,interceptedRoute:i}}function p(e){return d(e,0)}function f(e){return d(e,1)}},48238:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(53374),i=r(76953).GLOBAL_OBJ;t.getComponentName=function(e){if(!i.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null},t.getLocationHref=function(){try{return i.document.location.href}catch{return""}},t.htmlTreeAsString=function(e,t={}){if(!e)return"<unknown>";try{let r,a=e,o=[],s=0,l=0,u=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;a&&s++<5&&(r=function(e,t){let r=[];if(!e?.tagName)return"";if(i.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let a=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(a?.length)a.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&n.isString(t))for(let e of t.split(/\s+/))r.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(a,u),"html"!==r&&(!(s>1)||!(l+3*o.length+r.length>=c)));)o.push(r),l+=r.length,a=a.parentNode;return o.reverse().join(" > ")}catch{return"<unknown>"}}},48519:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(94748),i=r(99056),a=r(66908),o=r(77191),s=r(86160),l=r(41291),u=r(404),c=r(53440),d=r(80920);t.getTraceData=function(e={}){let t=e.client||a.getClient();if(!o.isEnabled()||!t)return{};let r=i.getMainCarrier(),p=n.getAsyncContextStrategy(r);if(p.getTraceData)return p.getTraceData(e);let f=e.scope||a.getCurrentScope(),h=e.span||l.getActiveSpan(),m=h?l.spanToTraceHeader(h):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return d.generateSentryTraceHeader(t,n,r)}(f),g=h?u.getDynamicSamplingContextFromSpan(h):u.getDynamicSamplingContextFromScope(t,f),_=c.dynamicSamplingContextToSentryBaggageHeader(g);if(!d.TRACEPARENT_REGEXP.test(m))return s.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let y={"sentry-trace":m,baggage:_};return e.propagateTraceparent&&(y.traceparent=h?l.spanToTraceparentHeader(h):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return d.generateTraceparentHeader(t,n,r)}(f)),y}},49195:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:`/${e}`}
479Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},49287:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(19849),i=r(28156),a=r(41341),o=r(43667);t.initMetric=(e,t=-1)=>{let r=o.getNavigationEntry(),s="navigate";return r&&(n.WINDOW.document?.prerendering||a.getActivationStart()>0?s="prerender":n.WINDOW.document?.wasDiscarded?s="restore":r.type&&(s=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:i.generateUniqueID(),navigationType:s}}},49383:(e,t,r)=>{"use strict";let n,i,a,o,s,l,u,c,d,p,f,h,m,g,_,y,S,E,b,T,v,I,A,R,O,w,N,C,P;r.r(t),r.d(t,{onRouterTransitionStart:()=>mJ});var k,M,x,L,U,D,B,j,F,$,G,H,W={};r.r(W),r.d(W,{debug:()=>l9,error:()=>ur,fatal:()=>un,fmt:()=>l4,info:()=>ue,trace:()=>l7,warn:()=>ut});var z={};r.r(z),r.d(z,{count:()=>ua,distribution:()=>us,gauge:()=>uo});var q={};r.r(q),r.d(q,{BrowserClient:()=>tB,ErrorBoundary:()=>hn,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>sa,OpenFeatureIntegrationHook:()=>fL,Profiler:()=>f9,SDK_VERSION:()=>V.M,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>em.uT,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>em.JD,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>em.sy,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>em.i_,Scope:()=>sl.H,WINDOW:()=>tx,addBreadcrumb:()=>t1.Z,addEventProcessor:()=>X.SA,addIntegration:()=>en,breadcrumbsIntegration:()=>rl,browserApiErrorsIntegration:()=>rc,browserProfilingIntegration:()=>fC,browserSessionIntegration:()=>rh,browserTracingIntegration:()=>ad,buildLaunchDarklyFlagUsedHandler:()=>fM,captureConsoleIntegration:()=>su,captureEvent:()=>X.r,captureException:()=>X.Cp,captureFeedback:()=>aA,captureMessage:()=>X.wd,captureReactException:()=>fz,captureRequestError:()=>mc,captureRouterTransitionStart:()=>al,captureSession:()=>X.J5,captureUnderscoreErrorException:()=>md.O,chromeStackLineParser:()=>rU,close:()=>X.VN,consoleLoggingIntegration:()=>sh,contextLinesIntegration:()=>ux,continueTrace:()=>nm,createConsolaReporter:()=>sg,createLangChainCallbackHandler:()=>l_,createReduxEnhancer:()=>ho,createTransport:()=>tt,createUserFeedbackEnvelope:()=>uE,cultureContextIntegration:()=>rm,dedupeIntegration:()=>e_,defaultRequestInstrumentationOptions:()=>iq,defaultStackLineParsers:()=>rq,defaultStackParser:()=>rJ,diagnoseSdkConnectivity:()=>f$,endSession:()=>X.ky,eventFiltersIntegration:()=>el,eventFromException:()=>tN,eventFromMessage:()=>tC,exceptionFromError:()=>tI,extraErrorDataIntegration:()=>ly,featureFlagsIntegration:()=>lv,feedbackAsyncIntegration:()=>sn,feedbackIntegration:()=>si,feedbackSyncIntegration:()=>si,flush:()=>X.bX,forceLoad:()=>r0,functionToStringIntegration:()=>eh,geckoStackLineParser:()=>rj,getActiveSpan:()=>ej.Bk,getClient:()=>Z.KU,getCurrentScope:()=>Z.o5,getDefaultIntegrations:()=>rZ,getFeedback:()=>a2,getGlobalScope:()=>Z.m6,getIsolationScope:()=>Z.rm,getReplay:()=>pU,getRootSpan:()=>ej.zU,getSpanDescendants:()=>ej.xO,getSpanStatusFromHttpCode:()=>no.AJ,getTraceData:()=>ix,globalHandlersIntegration:()=>rT,graphqlClientIntegration:()=>u$,growthbookIntegration:()=>fj,httpClientIntegration:()=>uO,httpContextIntegration:()=>rR,inboundFiltersIntegration:()=>eu,init:()=>av,instrumentAnthropicAiClient:()=>lN,instrumentGoogleGenAIClient:()=>lD,instrumentLangGraph:()=>lj,instrumentOpenAiClient:()=>lV,instrumentOutgoingRequests:()=>iJ,instrumentSupabaseClient:()=>l3,isEnabled:()=>X.Ol,isInitialized:()=>X.Dp,lastEventId:()=>X.Q,launchDarklyIntegration:()=>fk,lazyLoadIntegration:()=>sr,linkedErrorsIntegration:()=>rC,logger:()=>W,makeBrowserOfflineTransport:()=>fs,makeFetchTransport:()=>rQ,makeMultiplexedTransport:()=>ss,metrics:()=>z,moduleMetadataIntegration:()=>up,onLoad:()=>r1,openFeatureIntegration:()=>fx,opera10StackLineParser:()=>rH,opera11StackLineParser:()=>rz,parameterize:()=>l6,reactErrorHandler:()=>fq,reactRouterV3BrowserTracingIntegration:()=>hs,reactRouterV4BrowserTracingIntegration:()=>hd,reactRouterV5BrowserTracingIntegration:()=>hp,reactRouterV6BrowserTracingIntegration:()=>h7,reactRouterV7BrowserTracingIntegration:()=>mn,registerSpanErrorInstrumentation:()=>nw,registerWebWorker:()=>fW,replayCanvasIntegration:()=>ft,replayIntegration:()=>pM,reportPageLoaded:()=>fr,reportingObserverIntegration:()=>uI,rewriteFramesIntegration:()=>am,sendFeedback:()=>aJ,setActiveSpanInBrowser:()=>fn,setContext:()=>X.o,setCurrentClient:()=>eb,setExtra:()=>X.l7,setExtras:()=>X.cx,setHttpStatus:()=>no.N8,setMeasurement:()=>ne,setTag:()=>X.NA,setTags:()=>X.Wt,setUser:()=>X.gV,showReportDialog:()=>ub,spanToBaggageHeader:()=>eR.HW,spanToJSON:()=>ej.et,spanToTraceHeader:()=>ej.Qh,spotlightBrowserIntegration:()=>fP,startBrowserTracingNavigationSpan:()=>iQ,startBrowserTracingPageLoadSpan:()=>iX,startInactiveSpan:()=>mS,startNewTrace:()=>ny,startSession:()=>X.J0,startSpan:()=>m_,startSpanManual:()=>my,statsigIntegration:()=>fF,supabaseIntegration:()=>l5,suppressTracing:()=>n_,tanstackRouterBrowserTracingIntegration:()=>hu,thirdPartyErrorFilterIntegration:()=>uf,uiProfiler:()=>uS,unleashIntegration:()=>fU,updateSpanName:()=>ej.zQ,useProfiler:()=>ht,webWorkerIntegration:()=>fG,winjsStackLineParser:()=>r$,withActiveSpan:()=>ng,withErrorBoundary:()=>hi,withIsolationScope:()=>Z.rB,withProfiler:()=>he,withScope:()=>Z.v4,withSentryConfig:()=>aI,withSentryReactRouterV6Routing:()=>mr,withSentryReactRouterV7Routing:()=>mi,withSentryRouting:()=>hh,withServerActionInstrumentation:()=>mE,wrapApiHandlerWithSentryVercelCrons:()=>mT,wrapAppGetInitialPropsWithSentry:()=>mR,wrapCreateBrowserRouterV6:()=>me,wrapCreateBrowserRouterV7:()=>ma,wrapCreateMemoryRouterV6:()=>mt,wrapCreateMemoryRouterV7:()=>mo,wrapDocumentGetInitialPropsWithSentry:()=>mO,wrapErrorGetInitialPropsWithSentry:()=>mw,wrapGenerationFunctionWithSentry:()=>mN,wrapGetInitialPropsWithSentry:()=>mC,wrapGetServerSidePropsWithSentry:()=>mP,wrapGetStaticPropsWithSentry:()=>mk,wrapMiddlewareWithSentry:()=>mM,wrapPageComponentWithSentry:()=>mx,wrapRouteHandlerWithSentry:()=>mL,wrapServerComponentWithSentry:()=>mU,wrapUseRoutesV6:()=>h9,wrapUseRoutesV7:()=>ms,zodErrorsIntegration:()=>uy});var J=r(71706),Y=r(59685),V=r(57037);function K(e,t,r=[t],n="npm"){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=r.map(e=>({name:`${n}:@sentry/${e}`,version:V.M})),i.version=V.M)}var X=r(14400),Q=r(62877),Z=r(31867);let ee=[];function et(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function er(e,t,r){if(r[t.name]){Q.T&&Y.Yz.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,ee.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),ee.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}Q.T&&Y.Yz.log(`Integration installed: ${t.name}`)}function en(e){let t=(0,Z.KU)();if(!t){Q.T&&Y.Yz.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function ei(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}var ea=r(65231),eo=r(78886);let es=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],el=(e={})=>{let t;return{name:"EventFilters",setup(r){t=ec(e,r.getOptions())},processEvent:(r,n,i)=>(t||(t=ec(e,i.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,eo.Xr)(r,t)}(e,t.ignoreTransactions))return Q.T&&Y.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
480Event: ${(0,ea.$X)(e)}`),!0}else{var r,n,i;if(r=e,n=t.ignoreErrors,n?.length&&ei(r).some(e=>(0,eo.Xr)(e,n)))return Q.T&&Y.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
481Event: ${(0,ea.$X)(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 Q.T&&Y.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace.
482Event: ${(0,ea.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=ed(e);return!!r&&(0,eo.Xr)(r,t)}(e,t.denyUrls))return Q.T&&Y.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option.
483Event: ${(0,ea.$X)(e)}.
484Url: ${ed(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=ed(e);return!r||(0,eo.Xr)(r,t)}(e,t.allowUrls))return Q.T&&Y.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option.
485Event: ${(0,ea.$X)(e)}.
486Url: ${ed(e)}`),!0}return!1}(r,t)?r:null)}},eu=(e={})=>({...el(e),name:"InboundFilters"});function ec(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:es],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function ed(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return Q.T&&Y.Yz.error(`Cannot extract url for event ${(0,ea.$X)(e)}`),null}}var ep=r(45936);let ef=new WeakMap,eh=()=>({name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,ep.sp)(this),r=ef.has((0,Z.KU)())&&void 0!==t?t:this;return n.apply(r,e)}}catch{}},setup(e){ef.set(e,!0)}});var em=r(62536),eg=r(41098);let e_=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r,n,i,a,o,s;let l,u,c,d;if(r=t,(n=e)&&(i=r,a=n,l=i.message,u=a.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&eS(i,a)&&ey(i,a)&&1||(o=r,s=n,c=eE(s),d=eE(o),c&&d&&c.type===d.type&&c.value===d.value&&eS(o,s)&&ey(o,s))))return Q.T&&Y.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function ey(e,t){let r=(0,eg.RV)(e),n=(0,eg.RV)(t);if(!r&&!n)return!0;
486if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function eS(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return r.join("")===n.join("")}catch{return!1}}function eE(e){return e.exception?.values?.[0]}function eb(e){(0,Z.o5)().setClient(e)}var eT=r(25952);function ev(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function eI(e,t,r){let n;return t||`${ev(e)}${e.projectId}/envelope/?${n={sentry_version:"7"},e.publicKey&&(n.sentry_key=e.publicKey),r&&(n.sentry_client=`${r.name}/${r.version}`),new URLSearchParams(n).toString()}`}var eA=r(60806),eR=r(1413),eO=r(61531),ew=r(88858);function eN(e,t=[]){return[e,t]}function eC(e,t){for(let r of e[1]){let e=r[0].type;if(t(r,e))return!0}return!1}function eP(e,t){return eC(e,(e,r)=>t.includes(r))}function ek(e){let t=(0,eO.Se)(J.O);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function eM(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[ek(n),e]:n.push("string"==typeof e?ek(e):e)}for(let e of r){let[t,r]=e;if(i(`
487${JSON.stringify(t)}
488`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,ew.S8)(r))}i(e)}}return"string"==typeof n?n:function(e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}(n)}let ex={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function eL(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}function eU(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,eT.SB)(n)},...i&&{trace:i}}}function eD(e){Y.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function eB(e,t){if(!t?.length||!e.description)return!1;for(let n of t){var r;if("string"==typeof(r=n)||r instanceof RegExp){if((0,eo._c)(e.description,n))return Q.T&&eD(e),!0;continue}if(!n.name&&!n.op)continue;let t=!n.name||(0,eo._c)(e.description,n.name),i=!n.op||e.op&&(0,eo._c)(e.op,n.op);if(t&&i)return Q.T&&eD(e),!0}return!1}var ej=r(1056);function eF(e,t=!1){let r={};for(let[n,i]of Object.entries(e??{})){let e=function(e,t){let{value:r,unit:n}="object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")?e:{value:e,unit:void 0},i=function(e){let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(r),a=n&&"string"==typeof n?{unit:n}:{};if(i)return{...i,...a};if(!t||"skip-undefined"===t&&void 0===r)return;let o="";try{o=JSON.stringify(r)??""}catch{}return{value:o,type:"string",...a}}(i,t);e&&(r[n]=e)}return r}var e$=r(21275),eG=r(27481),eH=r(86006),eW=r(21762);function ez(e,t){return t?(0,Z.v4)(t,()=>{let r=(0,ej.Bk)(),n=r?(0,ej.kX)(r):(0,Z.vn)(t);return[r?(0,eR.k1)(r):(0,eR.ao)(e,t),n]}):[void 0,void 0]}let eq={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function eJ(e,t,r,n=!0){r&&(!e[t]||n)&&(e[t]=r)}function eY(e,t){var r;let n=eX(),i=(r=e,eX().get(r));void 0===i?n.set(e,[t]):i.length>=100?(eK(e,i),n.set(e,[t])):n.set(e,[...i,t])}function eV(e,t=(0,Z.o5)(),r=eY){let n=t?.getClient()??(0,Z.KU)();if(!n){Q.T&&Y.Yz.warn("No client available to capture log.");return}let{release:i,environment:a,enableLogs:o=!1,beforeSendLog:s}=n.getOptions();if(!o){Q.T&&Y.Yz.warn("logging option not enabled, log will not be captured.");return}let[,l]=ez(n,t),u={...e.attributes},{user:{id:c,email:d,username:p},attributes:f={}}=(0,eG.Om)((0,Z.rm)(),t);eJ(u,"user.id",c,!1),eJ(u,"user.email",d,!1),eJ(u,"user.name",p,!1),eJ(u,"sentry.release",i),eJ(u,"sentry.environment",a);let{name:h,version:m}
488=n.getSdkMetadata()?.sdk??{};eJ(u,"sentry.sdk.name",h),eJ(u,"sentry.sdk.version",m);let g=n.getIntegrationByName("Replay"),_=g?.getReplayId(!0);eJ(u,"sentry.replay_id",_),_&&g?.getRecordingMode()==="buffer"&&eJ(u,"sentry._internal.replay_is_buffering",!0);let y=e.message;if((0,e$.NF)(y)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=y;t?.length&&(u["sentry.message.template"]=e),t.forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=e})}let S=(0,eH.f)(t);eJ(u,"sentry.trace.parent_span_id",S?.spanContext().spanId);let E={...e,attributes:u};n.emit("beforeCaptureLog",E);let b=s?(0,Y.pq)(()=>s(E)):E;if(!b){n.recordDroppedEvent("before_send","log_item",1),Q.T&&Y.Yz.warn("beforeSendLog returned null, log will not be captured.");return}let{level:T,message:v,attributes:I={},severityNumber:A}=b;r(n,{timestamp:(0,eW.zf)(),level:T,body:v,trace_id:l?.trace_id,severity_number:A??eq[T],attributes:{...eF(f),...eF(I,!0)}}),n.emit("afterCaptureLog",b)}function eK(e,t){var r,n,i,a;let o,s=t??(a=e,eX().get(a))??[];if(0===s.length)return;let l=e.getOptions(),u=(r=l._metadata,n=l.tunnel,i=e.getDsn(),o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(o.dsn=(0,eT.SB)(i)),eN(o,[[{type:"log",item_count:s.length,content_type:"application/vnd.sentry.items.log+json"},{items:s}]]));eX().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(u)}function eX(){return(0,eO.BY)("clientToLogBufferMap",()=>new WeakMap)}function eQ(e,t,r,n=!0){!r||!n&&t in e||(e[t]=r)}function eZ(e,t){var r;let n=e1(),i=(r=e,e1().get(r));void 0===i?n.set(e,[t]):i.length>=1e3?(e0(e,i),n.set(e,[t])):n.set(e,[...i,t])}function e0(e,t){var r,n,i,a;let o,s=t??(a=e,e1().get(a))??[];if(0===s.length)return;let l=e.getOptions(),u=(r=l._metadata,n=l.tunnel,i=e.getDsn(),o={},r?.sdk&&(o.sdk={name:r.sdk.name,version:r.sdk.version}),n&&i&&(o.dsn=(0,eT.SB)(i)),eN(o,[[{type:"trace_metric",item_count:s.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:s}]]));e1().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(u)}function e1(){return(0,eO.BY)("clientToMetricBufferMap",()=>new WeakMap)}var e2=r(60319),e3=r(13681);function e5(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let e6=Symbol.for("SentryBufferFullError");function e4(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,e3.xg)(e6);let n=r();return t.add(n),n.then(()=>{t.delete(n)},()=>{t.delete(n)}),n},drain:function(e){if(!t.size)return(0,e3.XW)(!0);let r=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([r,new Promise(t=>e5(setTimeout(()=>t(!1),e)))]):r}}}var e8=r(88892);function e7(e,t=(0,e8.Wk)()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}function e9(e,t,r=(0,e8.Wk)()){return(e[t]||e.all||0)>r}function te(e,{statusCode:t,headers:r},n=(0,e8.Wk)()){let i={...e},a=r?.["x-sentry-rate-limits"],o=r?.["retry-after"];if(a)for(let e of a.trim().split(",")){let[t,r,,,a]=e.split(":",5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!a||a.split(";").includes("custom"))&&(i[e]=n+s):i[e]=n+s;else i.all=n+s}else o?i.all=n+e7(o,n):429===t&&(i.all=n+6e4);return i}function tt(e,t,r=e4(e.bufferSize||64)){let n={};return{send:function(i){let a=[];if(eC(i,(t,r)=>{let i=ex[r];e9(n,i)?e.recordDroppedEvent("ratelimit_backoff",i):a.push(t)}),0===a.length)return Promise.resolve({});let o=eN(i[0],a),s=t=>{if(eP(o,["client_report"])){Q.T&&Y.Yz.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}eC(o,(r,n)=>{e.recordDroppedEvent(t,ex[n])})};return r.add(()=>t({body:eM(o)}).then(e=>(413===e.statusCode?(Q.T&&Y.Yz.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(Q.T&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Y.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=te(n,e)),e),e=>{throw s("network_error"),Q.T&&Y.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===e6)return Q.T&&Y.Yz.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}var tr=r(38717),tn=r(57682),ti=r(18533);let ta="Not capturing exception because it's already been captured.",to="Discarded session because of missing or non-string release",ts=Symbol.for("SentryInternalError"),tl=Symbol.for("SentryDoNotSendEventError");function tu(e){return{message:e,[ts]:!0}}function tc(e){return{message:e,[tl]:!0}}function td(e){return!!e&&"object"==typeof e&&ts in e}function tp(e){return!!e&&"object"==typeof e&&tl in e}function tf(e,t,r,n,i){let a,o=0,s=!1;e.on(r,()=>{o=0,clearTimeout(a),s=!1}),e.on(t,t=>{(o+=n(t))>=8e5?i(e):s||(s=!0,a=e5(setTimeout(()=>{i(e)},5e3)))}),e.on("flush",()=>{i(e)})}class th{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=e4(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=(0,eT.AD)(e.dsn):Q.T&&Y.Yz.warn("No DSN provided, client will not send events."),this._dsn){const t=eI(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&&tf(this,"afterCaptureLog","flushLogs",tS,eK),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&tf(this,"afterCaptureMetric","flushMetrics",ty,e0)}captureException(e,t,r){let n=(0,ea.eJ)();if((0,ea.GR)(e))return Q.T&&Y.Yz.log(ta),n;let i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,ea.eJ)(),...r},a=(0,e$.NF)(e)?e:String(e),o=(0,e$.sO)(e),s=o?this.eventFromMessage(
488a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,n)),o?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=(0,ea.eJ)();if(t?.originalException&&(0,ea.GR)(t.originalException))return Q.T&&Y.Yz.log(ta),n;let i={event_id:n,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,s=a.capturedSpanIsolationScope,l=tm(e.type);return this._process(()=>this._captureEvent(e,i,o||r,s),l),i.event_id}captureSession(e){this.sendSession(e),(0,e2.qO)(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 r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){eK(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];er(this,e,this._integrations),t||et(this,[e])}sendEvent(e,t={}){var r,n,i;let a,o,s;this.emit("beforeSendEvent",e,t);let l=(r=this._dsn,n=this._options._metadata,i=this._options.tunnel,a=eL(n),o=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){if(!t)return;let r=e.sdk||{};e.sdk={...r,name:r.name||t.name,version:r.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk),s=eU(e,a,i,r),delete e.sdkProcessingMetadata,eN(s,[[{type:o},e]]));for(let e of t.attachments||[])l=function(e,t){let[r,n]=e;return[r,[...n,t]]}(l,function(e){let t="string"==typeof e.data?ek(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));this.sendEnvelope(l).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){var t,r,n;let i,{release:a,environment:o=eA.U}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!a){Q.T&&Y.Yz.warn(to);return}t.release=t.release||a,t.environment=t.environment||o,e.attrs=t}else{if(!e.release&&!a){Q.T&&Y.Yz.warn(to);return}e.release=e.release||a,e.environment=e.environment||o}this.emit("beforeSendSession",e);let s=(t=this._dsn,r=this._options._metadata,n=this._options.tunnel,i=eL(r),eN({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,eT.SB)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(s)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;Q.T&&Y.Yz.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.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 Q.T&&Y.Yz.error("Error while sending envelope:",e),{}}return Q.T&&Y.Yz.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){var e;let t,{integrations:r}=this._options;this._integrations=(e=this,t={},r.forEach(r=>{r&&er(e,r,t)}),t),et(this,r)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&r)&&((0,e2.qO)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),a=Object.keys(this._integrations);
488return!t.integrations&&a?.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,ti.mG)(i,e,t,r,this,n).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:(0,Z.vn)(r),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,eR.ao)(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=(0,Z.o5)(),n=(0,Z.rm)()){return Q.T&&tg(e)&&Y.Yz.log(`Captured error event \`${ei(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{Q.T&&(tp(e)?Y.Yz.log(e.message):td(e)?Y.Yz.warn(e.message):Y.Yz.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:a}=i,o=t_(e),s=tg(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===a?void 0:(0,tn.i)(a);if(s&&"number"==typeof c&&(0,e8.hY)()>c)return this.recordDroppedEvent("sample_rate","error"),(0,e3.xg)(tc(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let d=tm(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),tc("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,e$.Qg)(e))return e.then(e=>{if(!(0,e$.Qd)(e)&&null!==e)throw tu(r);return e},e=>{throw tu(`${t} rejected with ${e}`)});if(!(0,e$.Qd)(e)&&null!==e)throw tu(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o,ignoreSpans:s}=t,l=r;if(tg(l)&&i)return i(l,n);if(t_(l)){if(o||s){let t=function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:o?.[em.E1],exclusive_time:o?.[em.jG],measurements:e.measurements,is_segment:!0}}(l);if(s?.length&&eB(t,s))return null;if(o){let e=o(t);if(e)l=(0,tr.h)(r,{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&&{[em.E1]:e.profile_id},...e.exclusive_time&&{[em.jG]:e.exclusive_time}}}},measurements:e.measurements});else(0,ej.xl)()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(s?.length&&eB(e,s)){!function(e,t){let r=t.parent_span_id,n=t.span_id;if(r)for(let t of e)t.parent_span_id===n&&(t.parent_span_id=r)}(r,e);continue}if(o){let r=o(e);r?t.push(r):((0,ej.xl)(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,n)}}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 tc(`${u} returned \`null\`, will not send event.`)}let a=r.getSession()||n.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(tp(e)||td(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),tu(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
489Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===e6&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){var e;Q.T&&Y.Yz.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){Q.T&&Y.Yz.log("No outcomes to send");return}if(!this._dsn){Q.T&&Y.Yz.log("No dsn provided, will not send outcomes");return}Q.T&&Y.Yz.log("Sending outcomes:",t);let r=eN((e=this._options.tunnel&&(0,eT.SB)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,eW.lu)(),discarded_events:t}]]);this.sendEnvelope(r)}}function tm(e){return"replay_event"===e?"replay":e||"error"}function tg(e){return void 0===e.type}function t_(e){return"transaction"===e.type}function ty(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+tE(e.attributes)}function tS(e){let t=0;return e.message&&(t+=2*e.message.length),t+tE(e.attributes)}function tE(e){if(!e)return 0;let t=0;
489return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*tb(e[0]):(0,e$.sO)(e)?t+=tb(e):t+=100}),t}function tb(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function tT(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function tv(e){return(0,e$.bJ)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function tI(e,t){var r,n;let i,a,o=tR(e,t),s={type:(r=t,!(i=r?.name)&&tw(r)?r.message&&Array.isArray(r.message)&&2==r.message.length?r.message[0]:"WebAssembly.Exception":i),value:(n=t,a=n?.message,tw(n)?Array.isArray(n.message)&&2==n.message.length?n.message[1]:"wasm exception":a?a.error&&"string"==typeof a.error.message?tv(a.error):tv(n):"No error message")};return o.length&&(s.stacktrace={frames:o}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function tA(e,t){return{exception:{values:[tI(e,t)]}}}function tR(e,t){var r,n;let i=t.stacktrace||t.stack||"",a=(r=t)&&tO.test(r.message)?1:0,o="number"==typeof(n=t).framesToPop?n.framesToPop:0;try{return e(i,a,o)}catch{}return[]}let tO=/Minified React error #\d+;/i;function tw(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function tN(e,t,r,n){let i=tP(e,t,r?.syntheticException||void 0,n);return(0,ea.M6)(i),i.level="error",r?.event_id&&(i.event_id=r.event_id),(0,e3.XW)(i)}function tC(e,t,r="info",n,i){let a=tk(e,t,n?.syntheticException||void 0,i);return a.level=r,n?.event_id&&(a.event_id=n.event_id),(0,e3.XW)(a)}function tP(e,t,r,n,i){let a;if((0,e$.T2)(t)&&t.error)return tA(e,t.error);if((0,e$.BD)(t)||(0,e$.W6)(t)){if("stack"in t)a=tA(e,t);else{let i=t.name||((0,e$.BD)(t)?"DOMError":"DOMException"),o=t.message?`${i}: ${t.message}`:i;a=tk(e,o,r,n),(0,ea.gO)(a,o)}return"code"in t&&(a.tags={...a.tags,"DOMException.code":`${t.code}`}),a}return(0,e$.bJ)(t)?tA(e,t):((0,e$.Qd)(t)||(0,e$.xH)(t)?a=function(e,t,r,n){let i=(0,Z.KU)(),a=i?.getOptions().normalizeDepth,o=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),s={__serialized__:(0,ew.cd)(t,a)};if(o)return{exception:{values:[tI(e,o)]},extra:s};let l={exception:{values:[{type:(0,e$.xH)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,ep.HF)(e),n=t?"promise rejection":"exception";if((0,e$.T2)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,e$.xH)(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 ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:s};if(r){let t=tR(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,i):(a=tk(e,t,r,n),(0,ea.gO)(a,`${t}`,void 0)),(0,ea.M6)(a,{synthetic:!0}),a)}function tk(e,t,r,n){let i={};if(n&&r){let n=tR(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,ea.M6)(i,{synthetic:!0})}if((0,e$.NF)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}var tM=r(14357);let tx=J.O,tL=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,ep.sp)(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>tU(e,t));return e.apply(this,n)}catch(e){throw tL++,setTimeout(()=>{tL--}),(0,Z.v4)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,ea.gO)(e,void 0,void 0),(0,ea.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,X.Cp)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,ep.pO)(r,e),(0,ep.my)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function tD(){let e=(0,tM.$N)(),{referrer:t}=tx.document||{},{userAgent:r}=tx.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}}class tB extends th{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:tx.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);K(t,"browser",["browser"],tx.SENTRY_SDK_SOURCE||"npm"),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:r,sendClientReports:n,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;tx.document&&(n||i||s)&&tx.document.addEventListener("visibilitychange",()=>{"hidden"===tx.document.visibilityState&&(n&&this._flushOutcomes(),i&&eK(this),s&&e0(this))}),r&&this.on("beforeSendSession",tT)}
489eventFromException(e,t){return tN(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return tC(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let tj={},tF={};function t$(e,t){tj[e]=tj[e]||[],tj[e].push(t)}function tG(e,t){if(!tF[e]){tF[e]=!0;try{t()}catch(t){Q.T&&Y.Yz.error(`Error while instrumenting ${e}`,t)}}}function tH(e,t){let r=e&&tj[e];if(r)for(let n of r)try{n(t)}catch(t){Q.T&&Y.Yz.error(`Error while triggering instrumentation handler.
490Type: ${e}
491Name: ${(0,eg.qQ)(n)}
492Error:`,t)}}function tW(e){let t="console";t$(t,e),tG(t,tz)}function tz(){"console"in J.O&&Y.Ow.forEach(function(e){e in J.O.console&&(0,ep.GS)(J.O.console,e,function(t){return Y.Z9[e]=t,function(...t){tH("console",{args:t,level:e});let r=Y.Z9[e];r?.apply(J.O.console,t)}})})}let tq=J.O;function tJ(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 tq))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(tJ(tq.fetch))return!0;let e=!1,t=tq.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=tJ(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){Q.T&&Y.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function tV(e,t){let r="fetch";t$(r,e),tG(r,()=>tK(void 0,t))}function tK(e,t=!1){(!t||tY())&&(0,ep.GS)(J.O,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:t0(t),method:tZ(r,"method")?String(r.method).toUpperCase():(0,e$.ks)(t)&&tZ(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:t0(t),method:tZ(t,"method")?String(t.method).toUpperCase():"GET"}}(r),o={args:r,fetchData:{method:i,url:a},startTimestamp:1e3*(0,eW.zf)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,e$.ks)(t))return new Headers(t.headers)}catch{}}(r)};return e||tH("fetch",{...o}),t.apply(J.O,r).then(async t=>(e?e(t):tH("fetch",{...o,endTimestamp:1e3*(0,eW.zf)(),response:t}),t),e=>{tH("fetch",{...o,endTimestamp:1e3*(0,eW.zf)(),error:e}),(0,e$.bJ)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,ep.my)(e,"framesToPop",1));let t=(0,Z.KU)(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&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"===r?e.message=`${e.message} (${t})`:(0,ep.my)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function tX(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function tQ(e){let t;try{t=e.clone()}catch{return}tX(t,()=>{tH("fetch-body-resolved",{endTimestamp:1e3*(0,eW.zf)(),response:e})})}function tZ(e,t){return!!e&&"object"==typeof e&&!!e[t]}function t0(e){return"string"==typeof e?e:e?tZ(e,"url")?e.url:e.toString?e.toString():"":""}var t1=r(91257);function t2(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function t3(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function t5(e){return"isRelative"in e}function t6(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function t4(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function t8(e){return e.split(/[?#]/,1)[0]}function t7(e,t=!0){if(e.startsWith("data:")){let r=e.match(/^data:([^;,]+)/),n=r?r[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:${n}${i?",base64":""}${o?`,${o}`:""}`}return e}let t9=J.O;function re(e){t$("dom",e),tG("dom",rt)}function rt(){if(!t9.document)return;let e=tH.bind(null,"dom"),t=rr(e,!0);t9.document.addEventListener("click",t,!1),t9.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=t9[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,ep.GS)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=n[r]=n[r]||{refCount:0};if(!a.handler){let n=rr(e);a.handler=n,t.call(this,r,n,i)}a.refCount++}catch{}return t.call(this,r,n,i)}}),(0,ep.GS)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function rr(e,t=!1){return r=>{var n;if(!r||r._sentryCaptured)return;let s=function(e){try{return e.target}catch{return null}}(r);if(n=r.type,"keypress"===n&&(!s?.tagName||"INPUT"!==s.tagName&&"TEXTAREA"!==s.tagName&&!s.isContentEditable&&1))return;(0,ep.my)(r,"_sentryCaptured",!0),s&&!s._sentryId&&(0,ep.my)(s,"_sentryId",(0,ea.eJ)());let l="keypress"===r.type?"input":r.type;!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==o)return!1}catch{}return!0}(r)&&(e({event:r,name:l,global:t}),a=r.type,o=s?s._sentryId:void 0),clearTimeout(i),i=t9.setTimeout(()=>{o=void 0,a=void 0},1e3)}}let rn="__sentry_xhr_v3__";function ri(e){t$("xhr",e),tG("xhr",ra)}function ra(){if(!t9.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,eW.zf)(),a=(0,e$.Kg)(r[0])?r[0].toUpperCase():void 0,o=function(e){if((0,e$.Kg)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!a||!o)return e.apply(t,r);t[rn]={method:a,url:o,request_headers:{}}
492,"POST"===a&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[rn];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}tH("xhr",{endTimestamp:1e3*(0,eW.zf)(),startTimestamp:i,xhr:t,virtualError:n})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(s(),e.apply(t,r))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,a=t[rn];return a&&(0,e$.Kg)(n)&&(0,e$.Kg)(i)&&(a.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[rn];return n&&(void 0!==r[0]&&(n.body=r[0]),tH("xhr",{startTimestamp:1e3*(0,eW.zf)(),xhr:t})),e.apply(t,r)}})}function ro(e){let t="history";t$(t,e),tG(t,rs)}function rs(){function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=s,i=function(e){try{return new URL(e,t9.location.origin).toString()}catch{return e}}(String(r));if(s=i,n===i)return e.apply(this,t);tH("history",{from:n,to:i})}return e.apply(this,t)}}t9.addEventListener("popstate",()=>{let e=t9.location.href,t=s;s=e,t===e||tH("history",{from:t,to:e})}),"history"in tq&&tq.history&&((0,ep.GS)(t9.history,"pushState",e),(0,ep.GS)(t9.history,"replaceState",e))}let rl=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,n,i,a,o,s,l;t.console&&tW((r=e,function(e){if((0,Z.KU)()!==r)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:t2(e.level),message:(0,eo.gt)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,eo.gt)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);(0,t1.Z)(t,{input:e.args,level:e.level})})),t.dom&&re((n=e,i=t.dom,function(e){let t,r;if((0,Z.KU)()!==n)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&&(o=1024),"string"==typeof a&&(a=[a]);try{var s;let n=e.event,i=(s=n)&&s.target?n.target:n;t=(0,tM.Hd)(i,{keyAttrs:a,maxStringLength:o}),r=(0,tM.xE)(i)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};r&&(l.data={"ui.component_name":r}),(0,t1.Z)(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&ri((a=e,function(e){if((0,Z.KU)()!==a)return;let{startTimestamp:t,endTimestamp:r}=e,n=e.xhr[rn];if(!t||!r||!n)return;let{method:i,url:o,status_code:s,body:l}=n,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:r},c={category:"xhr",data:{method:i,url:o,status_code:s},type:"http",level:t3(s)};a.emit("beforeOutgoingRequestBreadcrumb",c,u),(0,t1.Z)(c,u)})),t.fetch&&tV((o=e,function(e){if((0,Z.KU)()!==o)return;let{startTimestamp:t,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let n=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},a={category:"fetch",data:n,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",a,i),(0,t1.Z)(a,i)}else{let n=e.response,i={...e.fetchData,status_code:n?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,n?.status;let a={input:e.args,response:n,startTimestamp:t,endTimestamp:r},s={category:"fetch",data:i,type:"http",level:t3(i.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",s,a),(0,t1.Z)(s,a)}})),t.history&&ro((s=e,function(e){if((0,Z.KU)()!==s)return;let t=e.from,r=e.to,n=t4(tx.location.href),i=t?t4(t):void 0,a=t4(r);i?.path||(i=n),n.protocol===a.protocol&&n.host===a.host&&(r=a.relative),n.protocol===i.protocol&&n.host===i.host&&(t=i.relative),(0,t1.Z)({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,Z.KU)()===l&&(0,t1.Z)({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,ea.$X)(e)},{event:e})}))}}},ru=["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"],rc=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,ep.GS)(tx,"setTimeout",rd),t.setInterval&&(0,ep.GS)(tx,"setInterval",rd),t.requestAnimationFrame&&(0,ep.GS)(tx,"requestAnimationFrame",rp),t.XMLHttpRequest&&"XMLHttpRequest"in tx&&(0,ep.GS)(XMLHttpRequest.prototype,"send",rf);let e=t.eventTarget;
492e&&(Array.isArray(e)?e:ru).forEach(e=>{var r,n;let i;return r=e,n=t,i=tx[r]?.prototype,void(i?.hasOwnProperty?.("addEventListener")&&((0,ep.GS)(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,eg.qQ)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return n.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,eg.qQ)(i),target:r},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),(0,ep.GS)(i,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}})))})}}};function rd(e){return function(...t){let r=t[0];return t[0]=tU(r,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,eg.qQ)(e)}`}}),e.apply(this,t)}}function rp(e){return function(t){return e.apply(this,[tU(t,{mechanism:{data:{handler:(0,eg.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rf(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in r&&"function"==typeof r[e]&&(0,ep.GS)(r,e,function(t){let r={mechanism:{data:{handler:(0,eg.qQ)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},n=(0,ep.sp)(t);return n&&(r.mechanism.data.handler=(0,eg.qQ)(n)),tU(t,r)})}),e.apply(this,t)}}let rh=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===tx.document)return;(0,X.J0)({ignoreDuration:!0}),(0,X.J5)();let e=(0,Z.rm)(),r=e.getUser();e.addScopeListener(e=>{let t=e.getUser();
492(r?.id!==t?.id||r?.ip_address!==t?.ip_address)&&((0,X.J5)(),r=t)}),"route"===t&&ro(({from:e,to:t})=>{e!==t&&((0,X.J0)({ignoreDuration:!0}),(0,X.J5)())})}}},rm=()=>({name:"CultureContext",preprocessEvent(e){let t=function(){try{let e=tx.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}})}}),rg=null;function r_(e){let t="error";t$(t,e),tG(t,ry)}function ry(){rg=J.O.onerror,J.O.onerror=function(e,t,r,n,i){return tH("error",{column:n,error:i,line:r,msg:e,url:t}),!!rg&&rg.apply(this,arguments)},J.O.onerror.__SENTRY_INSTRUMENTED__=!0}let rS=null;function rE(e){let t="unhandledrejection";t$(t,e),tG(t,rb)}function rb(){rS=J.O.onunhandledrejection,J.O.onunhandledrejection=function(e){return tH("unhandledrejection",e),!rS||rS.apply(this,arguments)},J.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let rT=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var r,n;t.onerror&&(r=e,r_(e=>{var t,n,i,a;let o,s,l,u,c,d,{stackParser:p,attachStacktrace:f}=rA();if((0,Z.KU)()!==r||tL>0)return;let{msg:h,url:m,line:g,column:_,error:y}=e,S=(t=tP(p,y||h,void 0,f,!1),n=m,i=g,a=_,c=(u=(l=(s=(o=t.exception=t.exception||{}).values=o.values||[])[0]=s[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[],d=function(e){if((0,e$.Kg)(e)&&0!==e.length)return e.startsWith("data:")?`<${t7(e,!1)}>`:e}(n)??(0,tM.$N)(),0===c.length&&c.push({colno:a,filename:d,function:eg.yF,in_app:!0,lineno:i}),t);S.level="error",(0,X.r)(S,{originalException:y,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})),t.onunhandledrejection&&(n=e,rE(e=>{let{stackParser:t,attachStacktrace:r}=rA();if((0,Z.KU)()!==n||tL>0)return;let i=rv(e),a=(0,e$.sO)(i)?rI(i):tP(t,i,void 0,r,!0);a.level="error",(0,X.r)(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))}}};function rv(e){if((0,e$.sO)(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 rI(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function rA(){let e=(0,Z.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let rR=()=>({name:"HttpContext",preprocessEvent(e){if(!tx.navigator&&!tx.location&&!tx.document)return;let t=tD(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}});function rO(e){return Array.isArray(e.errors)}function rw(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...rO(r)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function rN(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}let rC=(e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){!function(e,t,r,n,i,a){if(!i.exception?.values||!a||!(0,e$.tH)(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,r,n,i,a,o,s,l){if(o.length>=n+1)return o;let u=[...o];if((0,e$.tH)(i[a],Error)){rw(s,l,i);let o=t(r,i[a]),c=u.length;rN(o,a,c,l),u=e(t,r,n,i[a],a,[o,...u],o,c)}return rO(i)&&i.errors.forEach((o,c)=>{if((0,e$.tH)(o,Error)){rw(s,l,i);let d=t(r,o),p=u.length;rN(d,`errors[${c}]`,p,l),u=e(t,r,n,o,a,[d,...u],d,p)}}),u}(e,t,n,a.originalException,r,i.exception.values,o,0))}(tI,i.getOptions().stackParser,r,t,e,n)}}};function rP(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?eg.yF:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let rk=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,rM=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rx=/\((\S*)(?::(\d+))(?::(\d+))\)/,rL=/at (.+?) ?\(data:(.+?),/,rU=[30,e=>{let t=e.match(rL);
492if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=rk.exec(e);if(r){let[,e,t,n]=r;return rP(e,eg.yF,+t,+n)}let n=rM.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=rx.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=rY(n[1]||eg.yF,n[2]);return rP(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],rD=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rB=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rj=[50,e=>{let t=rD.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=rB.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||eg.yF;return[r,e]=rY(r,e),rP(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],rF=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,r$=[40,e=>{let t=rF.exec(e);return t?rP(t[2],t[1]||eg.yF,+t[3],t[4]?+t[4]:void 0):void 0}],rG=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,rH=[10,e=>{let t=rG.exec(e);return t?rP(t[2],t[3]||eg.yF,+t[1]):void 0}],rW=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,rz=[20,e=>{let t=rW.exec(e);return t?rP(t[5],t[3]||t[4]||eg.yF,+t[1],+t[2]):void 0}],rq=[rU,rj],rJ=(0,eg.gd)(...rq),rY=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:eg.yF,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rV={};function rK(e){let t=rV[e];if(t)return t;let r=t9[e];if(tJ(r))return rV[e]=r.bind(t9);let n=t9.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return r?rV[e]=r.bind(t9):r}function rX(...e){return rK("setTimeout")(...e)}function rQ(e,t=rK("fetch")){let r=0,n=0;async function i(i){let a=i.body.length;r+=a,n++;let o={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};try{let r=await t(e.url,o);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw rV.fetch=void 0,e}finally{r-=a,n--}}return tt(e,i,e4(e.bufferSize||40))}function rZ(e){return[eu(),eh(),{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,Z.o5)().getScopeData(),r=(0,Z.rm)().getScopeData(),n=t.conversationId||r.conversationId;n&&e.setAttribute(em.Fy,n)})}},rc(),rl(),rT(),rC(),e_(),rR(),rm(),rh()]}function r0(){}function r1(e){e()}var r2=r(14343),r3=r(68835),r5=r(68336);function r6(e){return(0,e$.bJ)(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)}function r4(e){return(0,e$.bJ)(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}var r8=r(34563),r7=r(24694);class r9{constructor(e={}){this._traceId=e.traceId||(0,r7.e)(),this._spanId=e.spanId||(0,r7.Z)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:ej.CC}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function ne(e,t,r,n=(0,ej.Bk)()){let i=n&&(0,ej.zU)(n);i&&(Q.T&&Y.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),i.addEvent(e,{[em.xc]:t,[em.Sn]:r}))}function nt(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[em.Sn],i=r[em.xc];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}var nr=r(97251);class nn{constructor(e={}){this._traceId=e.traceId||(0,r7.e)(),this._spanId=e.spanId||(0,r7.Z)(),this._startTime=e.startTimestamp||(0,eW.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[em.JD]:"manual",[em.uT]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
492addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?ej.aO:ej.CC}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,ej.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(em.i_,"custom"),this}end(e){this._endTime||(this._endTime=(0,ej.cI)(e),function(e){if(!Q.T)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,ej.et)(e),{spanId:n}=e.spanContext(),i=(0,ej.zU)(e)===e,a=`[Tracing] Finishing "${r}" ${i?"root ":""}span "${t}" with ID ${n}`;Y.Yz.log(a)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[em.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,ej.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[em.JD],profile_id:this._attributes[em.E1],exclusive_time:this._attributes[em.jG],measurements:nt(this._events),is_segment:this._isStandaloneSpan&&(0,ej.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,ej.zU)(this).spanContext().spanId:void 0,links:(0,ej.uU)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){Q.T&&Y.Yz.log("[Tracing] Adding an event to span:",e);let n=ni(t)?t:r||(0,eW.zf)(),i=ni(t)?{}:t||{},a={name:e,time:(0,ej.cI)(n),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,Z.KU)();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===(0,ej.zU)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,Z.KU)();if(!t)return;let r=e[1];r&&0!==r.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let r=(0,eR.k1)(e[0]),n=t?.getDsn(),i=t?.getOptions().tunnel,a={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:(0,eT.SB)(n)}},{beforeSendSpan:o,ignoreSpans:s}=t?.getOptions()||{},l=s?.length?e.filter(e=>!eB((0,ej.et)(e),s)):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=o?e=>{let t=(0,ej.et)(e),r=o(t);return r||((0,ej.xl)(),t)}:ej.et,d=[];for(let e of l){let t=c(e);t&&d.push([{type:"span"},t])}return eN(a,d)}([this],e)):(Q.T&&Y.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&((0,nr.L)(this).scope||(0,Z.o5)()).captureEvent(t)}_convertSpanToTransaction(){if(!na((0,ej.et)(this)))return;this._name||(Q.T&&Y.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,nr.L)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let n=(0,ej.xO)(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof nn&&t.isStandaloneSpan())}).map(e=>(0,ej.et)(e)).filter(na),i=this._attributes[em.i_];delete this._attributes[em.Le],n.forEach(e=>{delete e.data[em.Le]});let a={contexts:{trace:(0,ej.Ck)(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,eR.k1)(this)},request:r,...i&&{transaction_info:{source:i}}},o=nt(this._events);return o&&Object.keys(o).length&&(Q.T&&Y.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}}function ni(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function na(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var no=r(88120),ns=r(62370),nl=r(73699);function nu(e,t,r=()=>{},n=()=>{}){var i,a,o,s;let l;try{l=e()}catch(e){throw t(e),r(),e}return i=l,a=t,o=r,s=n,(0,e$.Qg)(i)?i.then(e=>(o(),s(e),e),e=>{throw a(e),o(),e}):(o(),s(i),i)}var nc=r(77151);let nd="__SENTRY_SUPPRESS_TRACING__";function np(e,t){let r=nb();if(r.startSpan)return r.startSpan(e,t);let n=nE(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return(0,Z.v4)(s,()=>nI(a)(()=>{let r=(0,Z.o5)(),o=nv(r,a),s=e.onlyIfParent&&!o?new r9:nS({parentSpan:o,spanArguments:n,forceTransaction:i,scope:r});return(0,eH.r)(r,s),nu(()=>t(s),()=>{let{status:e}=(0,ej.et)(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:no.TJ,message:"internal_error"})},()=>{s.end()})}))}function nf(e,t){let r=nb();if(r.startSpanManual)return r.startSpanManual(e,t);let n=nE(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return(0,Z.v4)(s,()=>nI(a)(()=>{let r=(0,Z.o5)(),o=nv(r,a),s=e.onlyIfParent&&!o?new r9:nS({parentSpan:o,spanArguments:n,forceTransaction:i,scope:r});return(0,eH.r)(r,s),nu(()=>t(s,()=>s.end()),()=>{let{status:e}=(0,ej.et)(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:no.TJ,message:"internal_error"})})}))}function nh(e){let t=nb();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=nE(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>(0,Z.v4)(e.scope,t):void 0!==i?e=>ng(i,e):e=>e())(()=>{let t=(0,Z.o5)(),a=nv(t,i);return e.onlyIfParent&&!a?new r9:nS({parentSpan:a,spanArguments:r,forceTransaction:n,scope:t})})}let nm=(e,t)=>{let r=(0,eO.EU)(),n=(0,ns.h)(r);if(n.continueTrace)return n.continueTrace(e,t);let{sentryTrace:i,baggage:a}=e,o=(0,Z.KU)(),s=(0,nl.yD)(a);return o&&!(0,nc.A9)(o,s?.org_id)?ny(t):(0,Z.v4)(e=>{let r=(0,nc.kM)(i,a);return e.setPropagationContext(r),(0,eH.r)(e,void 0),t()})};function ng(e,t){let r=nb();return r.withActiveSpan?r.withActiveSpan(e,t):(0,Z.v4)(r=>((0,eH.r)(r,e||void 0),t(r)))}function n_(e){let t=nb();return t.suppressTracing?t.suppressTracing(e):(0,Z.v4)(t=>{t.setSDKProcessingMetadata({[nd]:!0});let r=e();return t.setSDKProcessingMetadata({[nd]:void 0}),r})}function ny(e){return(0,Z.v4)(t=>(t.setPropagationContext({traceId:(0,r7.e)(),sampleRand:(0,e8.hY)()}
492),Q.T&&Y.Yz.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),ng(null,e)))}function nS({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i;if(!(0,r8.f)()){let n=new r9;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,eR.k1)(n)};(0,eR.LZ)(n,e)}return n}let a=(0,Z.rm)();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),a=!t.getScopeData().sdkProcessingMetadata[nd]&&(0,ej.pK)(e),o=a?new nn({...r,parentSpanId:n,traceId:i,sampled:a}):new r9({traceId:i});(0,ej.Hu)(e,o);let s=(0,Z.KU)();return s&&(s.emit("spanStart",o),r.endTimestamp&&s.emit("spanEnd",o)),o}(e,n,t),(0,ej.Hu)(e,i);else if(e){let r=(0,eR.k1)(e),{traceId:a,spanId:o}=e.spanContext(),s=(0,ej.pK)(e);i=nT({traceId:a,parentSpanId:o,...t},n,s),(0,eR.LZ)(i,r)}else{let{traceId:e,dsc:r,parentSpanId:o,sampled:s}={...a.getPropagationContext(),...n.getPropagationContext()};i=nT({traceId:e,parentSpanId:o,...t},n,s),r&&(0,eR.LZ)(i,r)}return!function(e){if(!Q.T)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,ej.et)(e),{spanId:i}=e.spanContext(),a=(0,ej.pK)(e),o=(0,ej.zU)(e),s=o===e,l=`[Tracing] Starting ${a?"sampled":"unsampled"} ${s?"root ":""}span`,u=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];if(n&&u.push(`parent ID: ${n}`),!s){let{op:e,description:t}=(0,ej.et)(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}Y.Yz.log(`${l}
493  ${u.join("\n  ")}`)}(i),(0,nr.d)(i,n,a),i}function nE(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=(0,ej.cI)(e.startTime),delete r.startTime,r}return t}function nb(){let e=(0,eO.EU)();return(0,ns.h)(e)}function nT(e,t,r){let n=(0,Z.KU)(),i=n?.getOptions()||{},{name:a=""}=e,o={spanAttributes:{...e.attributes},spanName:a,parentSampled:r};n?.emit("beforeSampling",o,{decision:!1});let s=o.parentSampled??r,l=o.spanAttributes,u=t.getPropagationContext(),[c,d,p]=t.getScopeData().sdkProcessingMetadata[nd]?[!1]:function(e,t,r){let n,i;if(!(0,r8.f)(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,i=!0);let a=(0,tn.i)(n);if(void 0===a)return Q.T&&Y.Yz.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),[!1];if(!a)return Q.T&&Y.Yz.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,a,i];let o=r<a;return!o&&Q.T&&Y.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[o,a,i]}(i,{name:a,parentSampled:s,attributes:l,parentSampleRate:(0,tn.i)(u.dsc?.sample_rate)},u.sampleRand),f=new nn({...e,attributes:{[em.i_]:"custom",[em.sy]:void 0!==d&&p?d:void 0,...l},sampled:c});return!c&&n&&(Q.T&&Y.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",f),f}function nv(e,t){if(t)return t;if(null===t)return;let r=(0,eH.f)(e);if(!r)return;let n=(0,Z.KU)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,ej.zU)(r):r}function nI(e){return void 0!==e?t=>ng(e,t):e=>e()}let nA={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function nR(e,t={}){let r,n,i=new Map,a=!1,o="externalFinish",s=!t.disableAutoFinish,l=[],{idleTimeout:u=nA.idleTimeout,finalTimeout:c=nA.finalTimeout,childSpanTimeout:d=nA.childSpanTimeout,beforeSpanEnd:p,trimIdleSpanEndTimestamp:f=!0}=t,h=(0,Z.KU)();if(!h||!(0,r8.f)()){let e=new r9,t={sample_rate:"0",sampled:"false",...(0,eR.k1)(e)};return(0,eR.LZ)(e,t),e}let m=(0,Z.o5)(),g=(0,ej.Bk)(),_=(r=nh(e),(0,eH.r)((0,Z.o5)(),r),Q.T&&Y.Yz.log("[Tracing] Started span is an i
493dle span"),r);function y(){n&&(clearTimeout(n),n=void 0)}function S(e){y(),n=setTimeout(()=>{!a&&0===i.size&&s&&(o="idleTimeout",_.end(e))},u)}function E(e){n=setTimeout(()=>{!a&&s&&(o="heartbeatFailed",_.end(e))},d)}function b(e){a=!0,i.clear(),l.forEach(e=>e()),(0,eH.r)(m,g);let t=(0,ej.et)(_),{start_timestamp:r}=t;if(!r)return;t.data[em.fs]||_.setAttribute(em.fs,o);let n=t.status;n&&"unknown"!==n||_.setStatus({code:no.F3}),Y.Yz.log(`[Tracing] Idle span "${t.op}" finished`);let s=(0,ej.xO)(_).filter(e=>e!==_),d=0;s.forEach(t=>{t.isRecording()&&(t.setStatus({code:no.TJ,message:"cancelled"}),t.end(e),Q.T&&Y.Yz.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:r=0,start_timestamp:n=0}=(0,ej.et)(t),i=n<=e,a=r-n<=(c+u)/1e3;if(Q.T){let e=JSON.stringify(t,void 0,2);i?a||Y.Yz.log("[Tracing] Discarding span since it finished after idle span final timeout",e):Y.Yz.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!i)&&((0,ej.VS)(_,t),d++)}),d>0&&_.setAttribute("sentry.idle_span_discarded_spans",d)}return _.end=new Proxy(_.end,{apply(e,t,r){if(p&&p(_),t instanceof r9)return;let[n,...i]=r,a=n||(0,eW.zf)(),o=(0,ej.cI)(a),s=(0,ej.xO)(_).filter(e=>e!==_),l=(0,ej.et)(_);if(!s.length||!f)return b(o),Reflect.apply(e,t,[o,...i]);let u=h.getOptions().ignoreSpans,d=s?.reduce((e,t)=>{let r=(0,ej.et)(t);return!r.timestamp||u&&eB(r,u)?e:e?Math.max(e,r.timestamp):r.timestamp},void 0),m=l.start_timestamp,g=Math.min(m?m+c/1e3:1/0,Math.max(m||-1/0,Math.min(o,d||1/0)));return b(g),Reflect.apply(e,t,[g,...i])}}),l.push(h.on("spanStart",e=>{var t;!(a||e===_||(0,ej.et)(e).timestamp||e instanceof nn&&e.isStandaloneSpan())&&(0,ej.xO)(_).includes(e)&&(t=e.spanContext().spanId,y(),i.set(t,!0),E((0,eW.zf)()+d/1e3))})),l.push(h.on("spanEnd",e=>{if(!a){var t;t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&S((0,eW.zf)()+u/1e3)}})),l.push(h.on("idleSpanEnableAutoFinish",e=>{e===_&&(s=!0,S(),i.size&&E())})),t.disableAutoFinish||S(),setTimeout(()=>{a||(_.setStatus({code:no.TJ,message:"deadline_exceeded"}),o="finalTimeout",_.end())},c),_}let nO=!1;function nw(){nO||(e.tag="sentry_tracingErrorCallback",nO=!0,r_(e),rE(e));function e(){let e=(0,ej.Bk)(),t=e&&(0,ej.zU)(e);if(t){let e="internal_error";Q.T&&Y.Yz.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:no.TJ,message:e})}}}let nN=(e,t,r,n)=>{let i,a;return o=>{if(t.value>=0&&(o||n)&&((a=t.value-(i??0))||void 0===i)){var s;i=t.value,t.delta=a,s=t.value,t.rating=s>r[1]?"poor":s>r[0]?"needs-improvement":"good",e(t)}}},nC=(e=!0)=>{let t=t9.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},nP=()=>{let e=nC();return e?.activationStart??0};function nk(e,t,r){t9.document&&t9.addEventListener(e,t,r)}function nM(e,t,r){t9.document&&t9.removeEventListener(e,t,r)}let nx=-1,nL=new Set,nU=e=>{if(("pagehide"===e.type||t9.document?.visibilityState==="hidden")&&nx>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of nL)e();isFinite(nx)||(nx="visibilitychange"===e.type?e.timeStamp:0,nM("prerenderingchange",nU,!0))}},nD=()=>{if(t9.document&&nx<0){let e=nP();nx=(t9.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(t9.document?.visibilityState!=="hidden"||t9.document?.prerendering?1/0:0),nk("visibilitychange",nU,!0),nk("pagehide",nU,!0),nk("prerenderingchange",nU,!0)}return{get firstHiddenTime(){return nx},onHidden(e){nL.add(e)}}},nB=(e,t=-1)=>{let r=nC(),n="navigate";return r&&(t9.document?.prerendering||nP()>0?n="prerender":t9.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:n}},nj=new WeakMap;function nF(e,t){try{return nj.get(e)||nj.set(e,new t),nj.get(e)}catch(e){return new t}}class n${constructor(){n$.prototype.__init.call(this),n$.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.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 nG=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},nH=e=>{let t=!1;return()=>{t||(e(),t=!0)}},nW=e=>{t9.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},nz=[1800,3e3],nq=[.1,.25],nJ=0,nY=1/0,nV=0,nK=e=>
493{e.forEach(e=>{e.interactionId&&(nY=Math.min(nY,e.interactionId),nJ=(nV=Math.max(nV,e.interactionId))?(nV-nY)/7+1:0)})},nX=()=>l?nJ:performance.interactionCount||0,nQ=0;class nZ{constructor(){nZ.prototype.__init.call(this),nZ.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){nQ=nX(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((nX()-nQ)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),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?.(r)}}}let n0=e=>{let t=t9.requestIdleCallback||t9.setTimeout;t9.document?.visibilityState==="hidden"?e():(nk("visibilitychange",e=nH(e),{once:!0,capture:!0}),nk("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),nM("visibilitychange",e,{capture:!0}),nM("pagehide",e,{capture:!0})}))},n1=[200,500];class n2{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let n3=[2500,4e3],n5=[800,1800],n6=e=>{t9.document?.prerendering?nW(()=>n6(e)):t9.document?.readyState!=="complete"?addEventListener("load",()=>n6(e),!0):setTimeout(e)},n4={},n8={};function n7(e,t=!1){return il("cls",e,ii,u,t)}function n9(e,t=!1){return il("lcp",e,ia,c,t)}function ie(e){return il("inp",e,is,p)}function it(e,t){var r;let n;return iu(e,t),n8[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),nG(r,e=>{ir(r,{entries:e})},n),n8[e]=!0),ic(e,t)}function ir(e,t){let r=n4[e];if(r?.length)for(let e of r)try{e(t)}catch(e){}}function ii(){return((e,t={})=>{((e,t={})=>{nW(()=>{let r,n=nD(),i=nB("FCP"),a=nG("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-nP(),0),i.entries.push(t),r(!0)))});a&&(r=nN(e,i,nz,t.reportAllChanges))})})(nH(()=>{let r,n=nB("CLS",0),i=nD(),a=nF(t,n$),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=nG("layout-shift",o);s&&(r=nN(e,n,nq,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),t9?.setTimeout?.(r))}))})(e=>{ir("cls",{metric:e}),u=e},{reportAllChanges:!0})}function ia(){return((e,t={})=>{nW(()=>{let r,n=nD(),i=nB("LCP"),a=nF(t,n2),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))a._processEntry(o),o.startTime<n.firstHiddenTime&&(i.value=Math.max(o.startTime-nP(),0),i.entries=[o],r())},s=nG("largest-contentful-paint",o);if(s){r=nN(e,i,n3,t.reportAllChanges);let n=nH(()=>{o(s.takeRecords()),s.disconnect(),r(!0)}),a=e=>{e.isTrusted&&(n0(n),nM(e.type,a,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])nk(e,a,{capture:!0})}})})(e=>{ir("lcp",{metric:e}),c=e},{reportAllChanges:!0})}function io(){return((e,t={})=>{let r=nB("TTFB"),n=nN(e,r,n5,t.reportAllChanges);n6(()=>{let e=nC();e&&(r.value=Math.max(e.responseStart-nP(),0),r.entries=[e],n(!0))})})(e=>{ir("ttfb",{metric:e}),d=e})}function is(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=nD();nW(()=>{let n;"interactionCount"in performance||l||(l=nG("event",nK,{type:"event",buffered:!0,durationThreshold:0}));let i=nB("INP"),a=nF(t,nZ),o=e=>{n0(()=>{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,n())})},s=nG("event",o,{durationThreshold:t.durationThreshold??40});n=nN(e,i,n1,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{o(s.takeRecords()),n(!0)}))})})(e=>{ir("inp",{metric:e}),p=e})}function il(e,t,r,n,i=!1){let a;return iu(e,t),n8[e]||(a=r(),n8[e]=!0),n&&t({metric:n}),ic(e,t,i?a:void 0)}function iu(e,t){n4[e]=n4[e]||[],n4[e].push(t)}function ic(e,t,r){return()=>{r&&r();let n=n4[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function id(e){return"number"==typeof e&&isFinite(e)}function ip(e,t,r,{...n}){let i=(0,ej.et)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),ng(e,()=>{let e=nh({startTime:t,...n});return e&&e.end(r),e})}function ih(e){let t,r=(0,Z.KU)();if(!r)return;let{name:n,transaction:i,attributes:a,startTime:o}=e,{release:s,environment:l,sendDefaultPii:u}=r.getOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,Z.o5)(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return nh({name:n,attributes:{release:s,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":t9.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...a},startTime:o,experimental:{standalone:!0}})}function im(){return t9.addEventListener&&t9.performance}function ig(e){return e/1e3}function i_(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function iy(e,t){let r,n,i=!1;function a(e){!i&&n&&t(e,n),i=!0}nk("visibilitychange",r=e=>{("pagehide"===e.type||t9.document?.visibilityState==="hidden")&&(()=>{a("pagehide")})()},{capture:!0,once:!0}),nk("pagehide",r,{capture:!0,once:!0});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(a("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{n=e.spanContext().spanId,s()})}function iS(e){return e?(((0,eW.k3)()||performance.timeOrigin)+e)/1e3:e}function iE(e){let t={};if(void 0!=e.nextHopProtocol){let{name:r,version:n}=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}
493return n===e&&(t=n),{name:t,version:r}}(e.nextHopProtocol);t["network.protocol.version"]=n,t["network.protocol.name"]=r}return(0,eW.k3)()||im()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":iS(e.redirectStart),"http.request.redirect_end":iS(e.redirectEnd),"http.request.worker_start":iS(e.workerStart),"http.request.fetch_start":iS(e.fetchStart),"http.request.domain_lookup_start":iS(e.domainLookupStart),"http.request.domain_lookup_end":iS(e.domainLookupEnd),"http.request.connect_start":iS(e.connectStart),"http.request.secure_connection_start":iS(e.secureConnectionStart),"http.request.connection_end":iS(e.connectEnd),"http.request.request_start":iS(e.requestStart),"http.request.response_start":iS(e.responseStart),"http.request.response_end":iS(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let ib=0,iT={};function iv(e,t,r,n,i=r){var a;let o=t["secureConnection"===(a=r)?"connectEnd":"fetch"===a?"domainLookupStart":`${a}End`],s=t[`${r}Start`];s&&o&&ip(e,n+ig(s),n+ig(o),{op:`browser.${i}`,name:t.name,attributes:{[em.JD]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}var iI=r(68336);function iA(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==iI?iI:0))||(e=J.O.process,e?.type==="renderer"))}let iR=[],iO=new Map,iw=new Map,iN={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"},iC=({metric:e})=>{if(void 0==e.value)return;let t=ig(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&iN[t.name]);if(!r)return;let{interactionId:n}=r,i=iN[r.name],a=ig((0,eW.k3)()+r.startTime),o=(0,ej.Bk)(),s=o?(0,ej.zU)(o):void 0,l=null!=n?iO.get(n):void 0,u=l?.span||s,c=u?(0,ej.et)(u).description:(0,Z.o5)().getScopeData().transactionName,d=ih({name:l?.elementName||(0,tM.Hd)(r.target),transaction:c,attributes:{[em.JD]:"auto.http.browser.inp",[em.uT]:`ui.interaction.${i}`,[em.jG]:r.duration},startTime:a});d&&(d.addEvent("inp",{[em.Sn]:"millisecond",[em.xc]:e.value}),d.end(a+t))},iP=({entries:e})=>{let t=(0,ej.Bk)(),r=t?(0,ej.zU)(t):void 0,n=r?(0,ej.et)(r).description:(0,Z.o5)().getScopeData().transactionName;e.forEach(e=>{if(!e.identifier)return;let t=e.name,r=e.renderTime,i=e.loadTime,[a,o]=i?[ig(i),"load-time"]:r?[ig(r),"render-time"]:[(0,eW.zf)(),"entry-emission"],s="image-paint"===t?ig(Math.max(0,(r??0)-(i??0))):0,l={[em.JD]:"auto.ui.browser.elementtiming",[em.uT]:"ui.elementtiming",[em.i_]:"component","sentry.span_start_time_source":o,"sentry.transaction_name":n,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWidth}x${e.naturalHeight}`:void 0,"element.render_time":r,"element.load_time":i,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};np({name:`element[${e.identifier}]`,attributes:l,startTime:a,onlyIfParent:!0},e=>{e.end(a+s)})})},ik="sentry_previous_trace";function iM(e){return 1===e.traceFlags}function ix(e={}){let t=e.client||(0,Z.KU)();if(!(0,X.Ol)()||!t)return{};let r=(0,eO.EU)(),n=(0,ns.h)(r);if(n.getTraceData)return n.getTraceData(e);let i=e.scope||(0,Z.o5)(),a=e.span||(0,ej.Bk)(),o=a?(0,ej.Qh)(a):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,nc.TC)(t,n,r)}(i),s=a?(0,eR.k1)(a):(0,eR.ao)(t,i),l=(0,nl.De)(s);if(!nc.MI.test(o))return Y.Yz.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let u={"sentry-trace":o,baggage:l};return e.propagateTraceparent&&(u.traceparent=a?(0,ej.G_)(a):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();
493return(0,nc.Iy)(t,n,r)}(i)),u}function iL(e){return e.split(",").some(e=>e.trim().startsWith(nl.sv))}function iU(e,t,r,n){let i={url:t7(e),type:"fetch","http.method":r,[em.JD]:n,[em.uT]:"http.client"};return t&&(t5(t)||(i["http.url"]=t7(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}let iD=Symbol.for("sentry__originalRequestBody");function iB(e){return new URLSearchParams(e).toString()}function ij(e,t=Y.Yz){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[iB(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function iF(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][iD];if(void 0!==t)return t}}function i$(e){let t;try{t=e.getAllResponseHeaders()}catch(e){return{}}return t?t.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return n&&(e[r.toLowerCase()]=n),e},{}):{}}function iG(e){try{return new URL(e,tx.location.origin).href}catch{return}}function iH(e){try{return new Headers(e)}catch{return}}let iW=new WeakMap,iz=new Map,iq={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function iJ(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:l,onRequestSpanEnd:u}={...iq,...t},c="function"==typeof a?a:e=>!0,d=e=>(function(e,t){let r=(0,tM.$N)();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let a=n.origin===i;return t?(0,eo.Xr)(n.toString(),t)||a&&(0,eo.Xr)(n.pathname,t):a}{let r=!!e.match(/^\/(?!\/)/);return t?(0,eo.Xr)(e,t):r}})(e,s),p={},f=e.getOptions().propagateTraceparent;if(r){let t;e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=iz.get(e.span_id);t&&(e.timestamp=t/1e3,iz.delete(e.span_id))}}),e)),i&&(t$(t="fetch-body-resolved",e=>{if(e.response){let t=iW.get(e.response);t&&e.endTimestamp&&iz.set(t,e.endTimestamp)}}),tG(t,()=>tK(tQ))),tV(e=>{let t=function(e,t,r,n,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=(0,r8.f)()&&t(o);if(e.endTimestamp){var l,u,c;let t,r=e.fetchData.__span;if(!r)return;let a=n[r];a&&(s&&(function(e,t){if(t.response){(0,no.N8)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:no.TJ,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 n[r]);return}let{spanOrigin:d="auto.http.browser",propagateTraceparent:p=!1}="object"==typeof i?i:{spanOrigin:i},f=!!(0,ej.Bk)(),h=s&&f?nh(function(e,t,r){if(e.startsWith("data:")){let n=t7(e);return{name:`${t} ${n}`,attributes:iU(e,void 0,t,r)}}let n=t6(e),i=n?function(e){if(t5(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()}(n):e;return{name:`${t} ${i}`,attributes:iU(e,n,t,r)}}(o,a,d)):new r9;if(e.fetchData.__span=h.spanContext().spanId,n[h.spanContext().spanId]=h,r(e.fetchData.url)){let t=e.args[0],r={...e.args[1]||{}},n=function(e,t,r,n){var i;let a=ix({span:r,propagateTraceparent:n}),o=a["sentry-trace"],s=a.baggage,l=a.traceparent;if(!o)return;let u=t.headers||((0,e$.ks)(e)?e.headers:void 0);if(!u)return{...a};if(i=u,"u">typeof Headers&&(0,e$.tH)(i,Headers)){let e=new Headers(u);if(e.get("sentry-trace")||e.set("sentry-trace",o),n&&l&&!e.get("traceparent")&&e.set("traceparent",l),s){let t=e.get("baggage");t?iL(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]),n&&l&&!u.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);let t=u.find(e=>"baggage"===e[0]&&iL(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,r="baggage"in u?u.baggage:void 0,i=r?Array.isArray(r)?[...r]:[r]:[],a=r&&(Array.isArray(r)?r.find(e=>iL(e)):iL(r));s&&!a&&i.push(s);let c={...u,"sentry-trace":e??o,baggage:i.length>0?i.join(","):void 0};return n&&l&&!t&&(c.traceparent=l),c}}(t,r,(0,r8.f)()&&f?h:void 0,p);n&&(e.args[1]=r,r.headers=n)}let m=(0,Z.KU)();if(m){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};m.emit("beforeOutgoingRequestSpan",h,t)}return h}(e,c,d,p,{propagateTraceparent:f,onRequestSpanEnd:u});if(e.response&&e.fetchData.__span&&iW.set(e.response,e.fetchData.__span),t){let r=iG(e.fetchData.url),n=r?t4(r).host:void 0;t.setAttributes({"http.url":r?t7(r):void 0,"server.address":n}),o&&iY(t),l?.(t,{headers:e.headers})}})}n&&ri(e=>{let t=function(e,t,r,n,i,a){let o=e.xhr,s=o?.[rn];if(!o||o.__sentry_own_request__||!s)return;let{url:l,method:u}=s,c=(0,r8.f)()&&t(l);
493if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let r=n[t];r&&(c&&void 0!==s.status_code&&((0,no.N8)(r,s.status_code),r.end(),a?.(r,{headers:iH(i$(o)),error:e.error})),delete n[t]);return}let d=iG(l),p=d?t4(d):t4(l),f=t7(t8(l)),h=!!(0,ej.Bk)(),m=c&&h?nh({name:`${u} ${f}`,attributes:{url:t7(l),type:"xhr","http.method":u,"http.url":d?t7(d):void 0,"server.address":p?.host,[em.JD]:"auto.http.browser",[em.uT]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new r9;o.__sentry_xhr_span_id__=m.spanContext().spanId,n[o.__sentry_xhr_span_id__]=m,r(l)&&function(e,t,r){let{"sentry-trace":n,baggage:i,traceparent:a}=ix({span:t,propagateTraceparent:r});n&&function(e,t,r,n){let i=e.__sentry_xhr_v3__?.request_headers;if(!i?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),n&&!i?.traceparent&&e.setRequestHeader("traceparent",n),r){let t=i?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,n,i,a)}(o,(0,r8.f)()&&h?m:void 0,i);let g=(0,Z.KU)();return g&&g.emit("beforeOutgoingRequestSpan",m,e),m}(e,c,d,p,f,u);t&&(o&&iY(t),l?.(t,{headers:iH(e.xhr.__sentry_xhr_v3__?.request_headers)}))})}function iY(e){let{url:t}=(0,ej.et)(e).data;if(!t||"string"!=typeof t)return;let r=it("resource",({entries:n})=>{n.forEach(n=>{"resource"===n.entryType&&"initiatorType"in n&&"string"==typeof n.nextHopProtocol&&("fetch"===n.initiatorType||"xmlhttprequest"===n.initiatorType)&&n.name.endsWith(t)&&(e.setAttributes(iE(n)),setTimeout(r))})})}let iV={...nA,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...iq},iK=(e={})=>{let t,r,n,i={name:void 0,source:void 0},a=tx.document,{enableInp:o,enableElementTiming:s,enableLongTask:l,enableLongAnimationFrame:u,_experiments:{enableInteractions:c,enableStandaloneClsSpans:p,enableStandaloneLcpSpans:m},beforeStartSpan:g,idleTimeout:_,finalTimeout:y,childSpanTimeout:S,markBackgroundSpan:E,traceFetch:b,traceXHR:T,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:I,enableHTTPTimings:A,ignoreResourceSpans:R,ignorePerformanceApiSpans:O,instrumentPageLoad:w,instrumentNavigation:N,detectRedirects:C,linkPreviousTrace:P,consistentTraceSampling:k,enableReportPageLoaded:M,onRequestSpanStart:x,onRequestSpanEnd:L}={...iV,...e};function U(e,r,o=!0){var s,l;let u="pageload"===r.op,c=r.name,d=g?g(r):r,E=d.attributes||{};
493if(c!==d.name&&(E[em.i_]="custom",d.attributes=E),!o){let e=(0,eW.lu)();nh({...d,startTime:e}).end(e);return}i.name=d.name,i.source=E[em.i_];let b=nR(d,{idleTimeout:_,finalTimeout:y,childSpanTimeout:S,disableAutoFinish:u,beforeSpanEnd:r=>{var i,a;t?.(),function(e,t){var r,n;let i=im(),a=(0,eW.k3)();if(!i?.getEntries||!a)return;let o=ig(a),s=i.getEntries(),{op:l,start_timestamp:u}=(0,ej.et)(e);s.slice(ib).forEach(r=>{let n=ig(r.startTime),i=ig(Math.max(0,r.duration));if("navigation"!==l||!u||!(o+n<u))switch(r.entryType){case"navigation":var a,s,c,d,p,f;let h,m,g;a=e,s=r,c=o,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{iv(a,s,e,c)}),iv(a,s,"secureConnection",c,"TLS/SSL"),iv(a,s,"fetch",c,"cache"),iv(a,s,"domainLookup",c,"DNS"),d=a,p=s,h=(f=c)+ig(p.requestStart),m=f+ig(p.responseEnd),g=f+ig(p.responseStart),p.responseEnd&&(ip(d,h,m,{op:"browser.request",name:p.name,attributes:{[em.JD]:"auto.ui.browser.metrics"}}),ip(d,g,m,{op:"browser.response",name:p.name,attributes:{[em.JD]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":{!function(e,t,r,n,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,eo.Xr)(t.name,a))return;let o=nC(!1),s=i+Math.max(r,ig(o?o.requestStart:0)),l=i+r,u=l+n,c={[em.JD]:"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 r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,e$.sO)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,e$.sO)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(c,t),s<=u&&ip(e,s,u,{name:t.name,op:t.entryType,attributes:c})}(e,r,n,i,o,t.ignorePerformanceApiSpans);let a=nD(),s=r.startTime<a.firstHiddenTime;"first-paint"===r.name&&s&&(iT.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&s&&(iT.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":!function(e,t,r,n,i,a,o){var s,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(u))return;let c={[em.JD]:"auto.resource.browser.metrics"},d=t4(r);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=r.includes(t9.location.origin),s=t,l=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(([e,t])=>{let r=s[e];null!=r&&("number"==typeof r&&r<0x7fffffff||"string"==typeof r)&&(l[t]=r)});let p={...c,...iE(t)},f=a+n;ip(e,f,f+i,{name:r.replace(t9.location.origin,""),op:u,attributes:p})}(e,r,r.name,n,i,o,t.ignoreResourceSpans)}}),ib=Math.max(s.length-1,0),function(e){let t=t9.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),id(r.rtt)&&(iT["connection.rtt"]={value:r.rtt,unit:"millisecond"})),id(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),id(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===l&&(function(e){let t=nC(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})}(iT),t.recordClsOnPageloadSpan||delete iT.cls,t.recordLcpOnPageloadSpan||delete iT.lcp,Object.entries(iT).forEach(([e,t])=>{ne(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",nP()),r=e,n=t,f&&n.recordLcpOnPageloadSpan&&(f.element&&r.setAttribute("lcp.element",(0,tM.Hd)(f.element)),f.id&&r.setAttribute("lcp.id",f.id),f.url&&r.setAttribute("lcp.url",f.url.trim().slice(0,200)),null!=f.loadTime&&r.setAttribute("lcp.loadTime",f.loadTime),null!=f.renderTime&&r.setAttribute("lcp.renderTime",f.renderTime),r.setAttribute("lcp.size",f.size)),h?.sources&&n.recordClsOnPageloadSpan&&h.sources.forEac
493h((e,t)=>r.setAttribute(`cls.source.${t+1}`,(0,tM.Hd)(e.node)))),f=void 0,h=void 0,iT={}}(r,{recordClsOnPageloadSpan:!p,recordLcpOnPageloadSpan:!m,ignoreResourceSpans:R,ignorePerformanceApiSpans:O}),i=e,a=void 0,(0,ep.my)(i,i1,a);let o=(0,Z.o5)(),s=o.getPropagationContext();o.setPropagationContext({...s,traceId:b.spanContext().traceId,sampled:(0,ej.pK)(b),dsc:(0,eR.k1)(r)}),u&&(n=void 0)},trimIdleSpanEndTimestamp:!M});function T(){a&&["interactive","complete"].includes(a.readyState)&&e.emit("idleSpanEnableAutoFinish",b)}u&&M&&(n=b),s=e,l=b,(0,ep.my)(s,i1,l),u&&!M&&a&&(a.addEventListener("readystatechange",()=>{T()}),T())}return{name:"BrowserTracing",setup(e){if(nw(),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=im();if(n&&(0,eW.k3)()){n.mark&&t9.performance.mark("sentry-tracing-init");let i=t?function(e){let t,r=0;if(!i_("largest-contentful-paint"))return;let n=n9(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);iy(e,(e,i)=>{var a,o,s,l;let u,c,d,p,f;a=r,o=t,s=i,l=e,u=ig(((0,eW.k3)()||0)+(o?.startTime||0)),c=(0,Z.o5)().getScopeData().transactionName,d=o?(0,tM.Hd)(o.element):"Largest contentful paint",p={[em.JD]:"auto.http.browser.lcp",[em.uT]:"ui.webvital.lcp",[em.jG]:0,"sentry.pageload.span_id":s,"sentry.report_event":l},o&&(o.element&&(p["lcp.element"]=(0,tM.Hd)(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=ih({name:d,transaction:c,attributes:p,startTime:u}))&&(f.addEvent("lcp",{[em.Sn]:"millisecond",[em.xc]:a}),f.end(u)),n()})}(r):n9(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(iT.lcp={value:e.value,unit:"millisecond"},f=t)},!0),a=il("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(iT.ttfb={value:e.value,unit:"millisecond"})},io,d),o=e?function(e){let t,r=0;if(!i_("layout-shift"))return;let n=n7(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);iy(e,(e,i)=>{var a,o,s,l;let u,c,d,p,f;a=r,o=t,s=i,l=e,u=o?ig(((0,eW.k3)()||0)+o.startTime):(0,eW.zf)(),c=(0,Z.o5)().getScopeData().transactionName,d=o?(0,tM.Hd)(o.sources[0]?.node):"Layout shift",p={[em.JD]:"auto.http.browser.cls",[em.uT]:"ui.webvital.cls",[em.jG]:0,"sentry.pageload.span_id":s,"sentry.report_event":l},o?.sources&&o.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=(0,tM.Hd)(e.node)}),(f=ih({name:d,transaction:c,attributes:p,startTime:u}))&&(f.addEvent("cls",{[em.Sn]:"",[em.xc]:a}),f.end(u)),n()})}(r):n7(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(iT.cls={value:e.value,unit:""},h=t)},!0);return()=>{i?.(),a(),o?.()}}return()=>void 0}({recordClsStandaloneSpans:p||!1,recordLcpStandaloneSpans:m||!1,client:e}),o&&function(){if(im()&&(0,eW.k3)()){let e=ie(iC);()=>{e()}}}(),s&&im()&&(0,eW.k3)()&&it("element",iP),u&&J.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,ej.Bk)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=ig((0,eW.k3)()+r.startTime),{start_timestamp:n,op:i}=(0,ej.et)(t);if("navigation"===i&&n&&e<n)continue;let a=ig(r.duration),o={[em.JD]:"auto.ui.browser.metrics"},{invoker:s,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=r.scripts[0];o["browser.script.invoker"]=s,o["browser.script.invoker_type"]=l,u&&(o["code.filepath"]=u),c&&(o["code.function"]=c),-1!==d&&(o["browser.script.source_char_position"]=d),ip(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0}):l&&it("longtask",({entries:e})=>{let t=(0,ej.Bk)();if(!t)return;let{op:r,start_timestamp:n}=(0,ej.et)(t);for(let i of e){let e=ig((0,eW.k3)()+i.startTime),a=ig(i.duration);"navigation"===r&&n&&e<n||ip(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[em.JD]:"auto.ui.browser.metrics"}})}}),c&&it("event",({entries:e})=>{let t=(0,ej.Bk)();
493if(t){for(let r of e)if("click"===r.name){let e=ig((0,eW.k3)()+r.startTime),n=ig(r.duration),i={name:(0,tM.Hd)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[em.JD]:"auto.ui.browser.metrics"}},a=(0,tM.xE)(r.target);a&&(i.attributes["ui.component_name"]=a),ip(t,e,e+n,i)}}}),C&&a){let e=()=>{r=(0,eW.zf)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function i(){let t=e[i1];t&&!(0,ej.et)(t).timestamp&&(t.setAttribute(em.fs,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if((0,Z.KU)()!==e)return;if(n?.isRedirect)return void U(e,{op:"navigation.redirect",...t},!1);r=void 0,i(),(0,Z.rm)().setPropagationContext({traceId:(0,r7.e)(),sampleRand:Math.random(),propagationSpanId:(0,r8.f)()?void 0:(0,r7.Z)()});let a=(0,Z.o5)();a.setPropagationContext({traceId:(0,r7.e)(),sampleRand:Math.random(),propagationSpanId:(0,r8.f)()?void 0:(0,r7.Z)()}),a.setSDKProcessingMetadata({normalizedRequest:void 0}),U(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if((0,Z.KU)()!==e)return;i();let n=r.sentryTrace||iZ("sentry-trace")||i0("sentry-trace"),a=r.baggage||iZ("baggage")||i0("baggage"),o=(0,nc.kM)(n,a),s=(0,Z.o5)();s.setPropagationContext(o),(0,r8.f)()||(s.getPropagationContext().propagationSpanId=(0,r7.Z)()),s.setSDKProcessingMetadata({normalizedRequest:tD()}),U(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{M&&n&&(n.setAttribute(em.fs,"reportPageLoaded"),n.end())})},afterAllSetup(e){var t,n,a,s,l;let u,d=(0,tM.$N)();if("off"!==P&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=tx.sessionStorage?.getItem(ik);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,ej.zU)(e)!==e)return;let t=(0,Z.o5)().getPropagationContext();i=function(e,t,r){let n=(0,ej.et)(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[em.sy])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let a=e.spanContext;return a.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(t.addLink({context:a,attributes:{[em.Lc]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${a.traceId}-${a.spanId}-${+!!iM(a)}`)),i)}(i,e,t),n&&function(e){try{tx.sessionStorage.setItem(ik,JSON.stringify(e))}catch(e){}}(i)});let a=!0;r&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,Z.o5)(),r=t.getPropagationContext();if(a&&r.parentSpanId){a=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(iM(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=iM(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[em.Ef]:i.sampleRate}})}(e,{linkPreviousTrace:P,consistentTraceSampling:k}),tx.location){if(w){let t=(0,eW.k3)();iX(e,{name:tx.location.pathname,startTime:t?t/1e3:void 0,attributes:{[em.i_]:"url",[em.JD]:"auto.pageload.browser"}})}N&&ro(({to:t,from:n})=>{var i,a;let o,s;if(void 0===n&&d?.indexOf(t)!==-1){d=void 0;return}d=void 0;let l=t6(t),u=e[i1],c=u&&C&&(i=u,a=r,o=(0,ej.et)(i),!((s=(0,eW.lu)())-o.start_timestamp>1.5)&&(!a||!(s-a<=1.5)));iQ(e,{name:l?.pathname||tx.location.pathname,attributes:{[em.i_]:"url",[em.JD]:"auto.navigation.browser"}},{url:t,isRedirect:c})})}E&&tx.document&&tx.document.addEventListener("visibilitychange",()=>{let e=(0,ej.Bk)();if(!e)return;let t=(0,ej.zU)(e);if(tx.document.hidden&&t){let{op:e,status:r}=(0,ej.et)(t);r||t.setStatus({code:no.TJ,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),c&&(t=e,n=_,a=y,s=S,l=i,tx.document&&addEventListener("click",()=>{let e=function(e){return e[i1]}(t);e&&["navigation","pageload"].includes((0,ej.et)(e).op)||(u&&(u.setAttribute(em.fs,"interactionInterrupted"),u.end(),u=void 0),l.name&&(u=nR({name:l.name,op:"ui.action.click",attributes:{[em.i_]:l.source||"url"}},{idleTimeout:n,finalTimeout:a,childSpanTimeout:s})))},{capture:!0})),o&&function(){let e=Object.keys(iN);function t(e){let t=e.target;if(!t)return;let r=(0,tM.Hd)(t),n=Math.round(e.timeStamp);if(iw.set(n,r),iw.size>50){let e=iw.keys().next().value;void 0!==e&&iw.delete(e)}}
493iA()&&e.forEach(e=>{t9.addEventListener(e,t,{capture:!0,passive:!0})});let r=({entries:e})=>{let t=(0,ej.Bk)(),r=t&&(0,ej.zU)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||iO.has(t))return;let n=e.target?(0,tM.Hd)(e.target):function(e){let t=Math.round(e.startTime),r=iw.get(t);if(!r)for(let e=-5;e<=5;e++){let n=iw.get(t+e);if(n){r=n;break}}return r||"<unknown>"}(e);if(iR.length>10){let e=iR.shift();iO.delete(e)}iR.push(t),iO.set(t,{span:r,elementName:n})})};it("event",r),it("first-input",r)}(),iJ(e,{traceFetch:b,traceXHR:T,trackFetchStreamPerformance:v,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:I,enableHTTPTimings:A,onRequestSpanStart:x,onRequestSpanEnd:L})}}};function iX(e,t,r){e.emit("startPageLoadSpan",t,r),(0,Z.o5)().setTransactionName(t.name);let n=e[i1];return n&&e.emit("afterStartPageLoadSpan",n),n}function iQ(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let a=(0,Z.o5)();return a.setTransactionName(t.name),n&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...tD(),url:n}}),e[i1]}function iZ(e){let t=tx.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function i0(e){let t=tx.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}let i1="_sentry_idleSpan",i2=J.O,i3=null,i5=new Map,i6=new Map;function i4(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return t.length>0&&(r+=1/t.length),r}function i8(e){if(i5.has(e))return i5.get(e)??null;try{let t=new RegExp(e);return i5.set(e,t),t}catch(t){return r3.T&&Y.Yz.warn("Could not compile regex",{regexString:e,error:t}),null}}function i7(){if(!i2?._sentryRouteManifest||"string"!=typeof i2._sentryRouteManifest)return null;let e=i2._sentryRouteManifest;if(i3&&N===e)return i3;i5.clear(),i6.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return i3=t,N=e,t}catch{return r3.T&&Y.Yz.warn("Could not extract route manifest"),null}}let i9=e=>{let t=i7();if(!t)return;let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(i6.has(r))return i6.get(r);let{staticRoutes:n,dynamicRoutes:i}=t;if(!Array.isArray(n)||!Array.isArray(i))return;let a=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=i8(t.regex);r?.test(e)&&n.push(t.path)}if(!e.startsWith("/:")){for(let t of r)if(t.hasOptionalPrefix&&t.regex){let r="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,i=i8(t.regex);i?.test(r)&&n.push(t.path)}}return n})(r,n,i).sort((e,t)=>i4(e)-i4(t))[0];return i6.set(r,a),a};function ae(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}let at="incomplete-app-router-transaction",ar="router-patch",an={current:void 0},ai=J.O;function aa(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let ao=new WeakSet;function as(e,t,r){ao.has(t)||(ao.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,a){if("router-patch"!==ar)return t.apply(i,a);let o=at,s={[em.uT]:"navigation",[em.JD]:"auto.navigation.nextjs.app_router_instrumentation",[em.i_]:"url"},l=a[0],u="/aistudio",c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===n?(o=ae(aa(c)),s["navigation.type"]="router.push"):"replace"===n?(o=ae(aa(c)),s["navigation.type"]="router.replace"):"back"===n?s["navigation.type"]="router.back":"forward"===n&&(s["navigation.type"]="router.forward");let d=i9(o);return r.current=iQ(e,{name:d??o,attributes:{...s,[em.i_]:d?"route":"url"}}),t.apply(i,a)}}))}))}function al(e,t){C&&C(e,t)}var au=r(80063);let ac=au.events?au:au.default;function ad(e={}){let t=iK({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){n&&function(e){if(tx.document.getElementById("__NEXT_DATA__"))ac.events.on("routeChangeStart",t=>{let r,n,i=t8(t),a=function(e){let t=tx.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r,n,i,a=(r=t.split("/"),n="",r[r.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(r.pop(),n="(?:/(.+?))?"),i=r.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${i}${n}(?:/)?$`));return e.match(a)})}(i);a?(r=a,n="route"):(r=i,n="url"),iQ(e,{name:r,attributes:{[em.uT]:"navigation",[em.JD]:"auto.navigation.nextjs.pages_router_instrumentation",[em.i_]:n}})});else{let t,r,n;C=(t,r)=>{let n="/aistudio",i=ae(new URL(n&&!t.startsWith(n)?`${n}${t}`:t,tx.location.href).pathname),a=i9(i),o=a??i;"router-patch"===ar&&(ar="transition-start-hook");let s=an.current;s?(s.updateName(o),s.setAttributes({"navigation.type":`router.${r}`,[em.i_]:a?"route":"url"}),an.current=void 0):iQ(e,{name:o,attributes:{[em.uT]:"navigation",[em.JD]:"auto.navigation.nextjs.app_router_instrumentation",[em.i_]:a?"route":"url","navigation.type":`router.${r}`}})},tx.addEventListener("popstate",()=>{let t=ae(tx.location.pathname),r=i9(t);an.current?.isRecording()?(an.current.updateName(r??t),an.current.setAttribute(em.i_,r?"route":"url")):an.current=iQ(e,{name:r??t,attributes:{[em.JD]:"auto.navigation.nextjs.app_router_instrumentation",[em.i_]:r?"route":"url","navigation.type":"browser.popstate"}})}),t=!1,r=0,n=setInterval(()=>{r++;let i=ai?.next?.router??ai?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,as(e,i,an),["nd","next"].forEach(t=>{let r=ai[t];r&&(ai[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&as(e,n,an),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(tx.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e,t=tx.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{r3.T&&Y.Yz.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:i,props:a}=e;return r.route=n,r.params=i,a?.pageProps&&(r.sentryTrace=a.pageProps._sentryTraceData,r.baggage=a.pageProps._sentryBaggage),r}(),a=(0,nl.D0)(i),o=t||tx.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,eW.k3)();iX(e,{name:o,startTime:s?s/1e3:void 0,attributes:{[em.uT]:"pageload",[em.JD]:"auto.pageload.nextjs.pages_router_instrumentation",[em.i_]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:i})}(e);else{let t,r,n;r=i9(t=ae(tx.location.pathname)),iX(e,{name:r??t,startTime:(n=(0,eW.k3)())?n/1e3:void 0,attributes:{[em.uT]:"pageload",[em.JD]:"auto.pageload.nextjs.app_router_instrumentation",[em.i_]:r?"route":"url"}})}}(e)}}}let ap=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function af(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function ah(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}let am=(e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in J.O&&!!J.O.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),a=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||a){let e,a,o=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,s=t?function(e,t){e=af(e).slice(1),t=af(t).slice(1);let r=ah(e.split("/")),n=ah(t.split("/")),i=Math.min(r.length,n.length),a=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){a=e;break}let o=[];for(let e=a;
493e<r.length;e++)o.push("..");return(o=o.concat(n.slice(a))).join("/")}(t,o):(e=o.length>1024?`<truncated>${o.slice(-1024)}`:o,(a=ap.exec(e))?a.slice(1):[])[2]||"";n.filename=`${r}${s}`}return n}}({isBrowser:n,root:t,prefix:r});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}}};class ag{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}}let a_=new ag(100);var ay=r(68336);let aS=J.O;var aE=r(68336);let ab=!1,aT=J.O;function av(e){let t,r,n,i,a;ab&&(0,Y.pq)(()=>{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`.")}),ab=!0,!r3.T&&e.debug&&(0,Y.pq)(()=>{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"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){tx.document&&function(e){let t=i9(e)||e,r=a_.get(t);if(void 0!==r)return r;let n=i7();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return a_.set(t,!1),!1;let i=n.isrRoutes.includes(t);return a_.set(t,i),i}(tx.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=tx.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let o={environment:e.environment||aE.env.SENTRY_ENVIRONMENT||((t=r5.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${t}`:void 0)||"production",defaultIntegrations:(n=rZ(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&n.push(ad()),i=aE.env._sentryAssetPrefix||aT._sentryAssetPrefix,a="true"===aE.env._experimentalThirdPartyOriginStackFrames||"true"===aT._experimentalThirdPartyOriginStackFrames,n.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...am({iteratee:i=>{if(n){let r="u">typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!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===r&&(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(r,"")}catch{}return n?(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:"/aistudio",rewriteFramesAssetPrefixPath:"/aistudio",experimentalThirdPartyOriginStackFrames:a})),n),release:"628d686b415d2a19b68daaa1488e28ada8dd220e",...e};!function(e){let t=ay.env._sentryRewritesTunnelPath||aS._sentryRewritesTunnelPath;if(t&&e.dsn){let r=(0,eT.hH)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],a=n[2],o=`${t}?o=${i}&p=${r.projectId}`;a&&(o+=`&r=${a}`),e.tunnel=o,r3.T&&Y.Yz.log(`Tunneling events to "${o}"`)}else r3.T&&Y.Yz.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(o),K(o,"nextjs",["nextjs","react"]);let s=(K(r={...o}
493,"react"),(0,X.o)("react",{version:r2.version}),function(e={}){let t,r=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===tx.window||tx.nw)return!1;let e=tx.chrome||tx.browser;if(!e?.runtime?.id)return!1;let t=(0,tM.$N)();return!(tx===tx.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>t.startsWith(`${e}://`)))}(),n=null==e.defaultIntegrations?rZ():e.defaultIntegrations,i={...e,enabled:!r&&e.enabled,stackParser:(0,eg.vk)(e.stackParser||rJ),integrations:function(e){let t,r,n=e.defaultIntegrations||[],i=e.integrations;if(n.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(i))t=[...n,...i];else if("function"==typeof i){let e=i(n);t=Array.isArray(e)?e:[e]}else t=n;return r={},t.forEach(e=>{let{name:t}=e,n=r[t];n&&!n.isDefaultInstance&&e.isDefaultInstance||(r[t]=e)}),Object.values(r)}({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||rQ};return!0===i.debug&&(Q.T?Y.Yz.enable():(0,Y.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,Z.o5)().update(i.initialScope),eb(t=new tB(i)),t.init(),t}(r)),l=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;l.id="NextClient404Filter",(0,X.SA)(l);let u=e=>"transaction"===e.type&&e.transaction===at?null:e;u.id="IncompleteTransactionFilter",(0,X.SA)(u);let c=(e,t)=>r4(t?.originalException)||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e;return c.id="NextRedirectErrorFilter",(0,X.SA)(c),s}function aI(e){return e}function aA(e,t={},r=(0,Z.o5)()){let{message:n,name:i,email:a,url:o,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:a,name:i,message:n,url:o,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},d=r?.getClient()||(0,Z.KU)();return d&&d.emit("beforeSendFeedback",c,t),r.captureEvent(c,t)}let aR=J.O,aO=aR.document,aw=aR.navigator,aN="Report a Bug",aC="Cancel",aP="Send Bug Report",ak="Confirm",aM="Report a Bug",ax="[email protected]",aL="Email",aU="What's the bug? What did you expect?",aD="Description",aB="Your Name",aj="Name",aF="Thank you for your report!",a$="(required)",aG="Add a screenshot",aH="Remove screenshot",aW="Highlight",az="Hide",aq="Remove",aJ=(e,t={includeReplay:!0})=>{if(!e.message)throw Error("Unable to submit feedback with empty message");let r=(0,Z.KU)();if(!r)throw Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&(0,Z.o5)().setTags(e.tags);let n=aA({source:"api",url:(0,tM.$N)(),...e},t);return new Promise((e,t)=>{let i=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4),a=r.on("afterSendEvent",(r,o)=>{if(r.event_id===n)return(clearTimeout(i),a(),o?.statusCode&&o.statusCode>=200&&o.statusCode<300)?e(n):o?.statusCode===403?t("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})};function aY(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(r,n)=>{t.onSubmitSuccess?.(r,n),e.onSubmitSuccess?.(r,n)},onSubmitError:r=>{t.onSubmitError?.(r),e.onSubmitError?.(r)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function aV(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}let aK="rgba(88, 74, 192, 1)",aX={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:aK,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},aQ={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:aK,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function aZ(e){return`
494  --foreground: ${e.foreground};
495  --background: ${e.background};
496  --accent-foreground: ${e.accentForeground};
497  --accent-background: ${e.accentBackground};
498  --success-color: ${e.successColor};
499  --error-color: ${e.errorColor};
500  --border: ${e.border};
501  --box-shadow: ${e.boxShadow};
502  --outline: ${e.outline};
503  --interactive-filter: ${e.interactiveFilter};
504  `}function a0({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){let i=aO.createElement("style");return i.textContent=`
505:host {
506  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
507  --font-size: 14px;
508  --z-index: 100000;
509
510  --page-margin: 16px;
511  --inset: auto 0 0 auto;
512  --actor-inset: var(--inset);
513
514  font-family: var(--font-family);
515  font-size: var(--font-size);
516
517  ${"system"!==e?`color-scheme: only ${e};`:""}
518
519  ${aZ("dark"===e?{...aQ,...t}:{...aX,...r})}
520}
521
522${"system"===e?`
523@media (prefers-color-scheme: dark) {
524  :host {
525    color-scheme: only dark;
526
527    ${aZ({...aQ,...t})}
528  }
529}`:""}
530`,n&&i.setAttribute("nonce",n),i}let a1=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:r})=>({id:n="sentry-feedback",autoInject:i=!0,showBranding:a=!0,isEmailRequired:o=!1,isNameRequired:s=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:c=!0,useSentryUser:d={email:"email",name:"username"},tags:p,styleNonce:f,scriptNonce:h,colorScheme:m="system",themeLight:g={},themeDark:_={},addScreenshotButtonLabel:y=aG,cancelButtonLabel:S=aC,confirmButtonLabel:E=ak,emailLabel:b=aL,emailPlaceholder:T=ax,formTitle:v=aM,isRequiredLabel:I=a$,messageLabel:A=aD,messagePlaceholder:R=aU,nameLabel:O=aj,namePlaceholder:w=aB,removeScreenshotButtonLabel:N=aH,submitButtonLabel:C=aP,successMessageText:P=aF,triggerLabel:k=aN,triggerAriaLabel:M="",highlightToolText:x=aW,hideToolText:L=az,removeHighlightText:U=aq,onFormOpen:D,onFormClose:B,onSubmitSuccess:j,onSubmitError:F,onFormSubmitted:$}={})=>{let G={id:n,autoInject:i,showBranding:a,isEmailRequired:o,isNameRequired:s,showEmail:l,showName:u,enableScreenshot:c,useSentryUser:d,tags:p,styleNonce:f,scriptNonce:h,colorScheme:m,themeDark:_,themeLight:g,triggerLabel:k,triggerAriaLabel:M,cancelButtonLabel:S,submitButtonLabel:C,confirmButtonLabel:E,formTitle:v,emailLabel:b,emailPlaceholder:T,messageLabel:A,messagePlaceholder:R,nameLabel:O,namePlaceholder:w,successMessageText:P,isRequiredLabel:I,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:N,highlightToolText:x,hideToolText:L,removeHighlightText:U,onFormClose:B,onFormOpen:D,onSubmitError:F,onSubmitSuccess:j,onFormSubmitted:$},H=null,W=null,z=[],q=e=>{if(!H){let t=aO.createElement("div");t.id=String(e.id),aO.body.appendChild(t),H=t.attachShadow({mode:"open"}),W=a0(e),H.appendChild(W)}return H},J=async n=>{let i,a,o=n.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(aw.userAgent)||/Macintosh/i.test(aw.userAgent)&&aw.maxTouchPoints&&aw.maxTouchPoints>1)&&!!isSecureContext;try{i=(t?t():await e("feedbackModalIntegration",h))(),en(i)}catch{throw Error("[Feedback] Missing feedback modal integration!")}
530try{let t=o?r?r():await e("feedbackScreenshotIntegration",h):void 0;t&&(a=t(),en(a))}catch{}let s=i.createDialog({options:{...n,onFormClose:()=>{s?.close(),n.onFormClose?.()},onFormSubmitted:()=>{s?.close(),n.onFormSubmitted?.()}},screenshotIntegration:a,sendFeedback:aJ,shadow:q(n)});return s},Y=(e,t={})=>{let r=aY(G,t),n="string"==typeof e?aO.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw Error("Unable to attach to target element");let i=null,a=async()=>{i||(i=await J({...r,onFormSubmitted:()=>{i?.removeFromDom(),r.onFormSubmitted?.()}})),i.appendToDom(),i.open()};n.addEventListener("click",a);let o=()=>{z=z.filter(e=>e!==o),i?.removeFromDom(),i=null,n.removeEventListener("click",a)};return z.push(o),o},V=(e={})=>{let t=aY(G,e),r=q(t),n=function({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){let i,a,o,s,l,u,c,d,p=aO.createElement("button");if(p.type="button",p.className="widget__actor",p.ariaHidden="false",p.ariaLabel=t||e||aN,p.appendChild((a=aV((i=e=>aR.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),o=aV(i("g"),{clipPath:"url(#clip0_57_80)"}),s=aV(i("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"}),a.appendChild(o).appendChild(s),l=i("defs"),u=aV(i("clipPath"),{id:"clip0_57_80"}),c=aV(i("rect"),{width:"20",height:"20",fill:"white"}),u.appendChild(c),l.appendChild(u),a.appendChild(l).appendChild(u).appendChild(c),a)),e){let t=aO.createElement("span");t.appendChild(aO.createTextNode(e)),p.appendChild(t)}let f=((d=aO.createElement("style")).textContent=`
531.widget__actor {
532  position: fixed;
533  z-index: var(--z-index);
534  margin: var(--page-margin);
535  inset: var(--actor-inset);
536
537  display: flex;
538  align-items: center;
539  gap: 8px;
540  padding: 16px;
541
542  font-family: inherit;
543  font-size: var(--font-size);
544  font-weight: 600;
545  line-height: 1.14em;
546  text-decoration: none;
547
548  background: var(--actor-background, var(--background));
549  border-radius: var(--actor-border-radius, 1.7em/50%);
550  border: var(--actor-border, var(--border));
551  box-shadow: var(--actor-box-shadow, var(--box-shadow));
552  color: var(--actor-color, var(--foreground));
553  fill: var(--actor-color, var(--foreground));
554  cursor: pointer;
555  opacity: 1;
556  transition: transform 0.2s ease-in-out;
557  transform: translate(0, 0) scale(1);
558}
559.widget__actor[aria-hidden="true"] {
560  opacity: 0;
561  pointer-events: none;
562  visibility: hidden;
563  transform: translate(0, 16px) scale(0.98);
564}
565
566.widget__actor:hover {
567  background: var(--actor-hover-background, var(--background));
568  filter: var(--interactive-filter);
569}
570
571.widget__actor svg {
572  width: 1.14em;
573  height: 1.14em;
574}
575
576@media (max-width: 600px) {
577  .widget__actor span {
578    display: none;
579  }
580}
581`,n&&d.setAttribute("nonce",n),d);return{el:p,appendToDom(){r.appendChild(f),r.appendChild(p)},removeFromDom(){p.remove(),f.remove()},show(){p.ariaHidden="false"},hide(){p.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:f});return Y(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){iA()&&G.autoInject&&("loading"===aO.readyState?aO.addEventListener("DOMContentLoaded",()=>V().appendToDom()):V().appendToDom())},attachTo:Y,createWidget(e={}){let t=V(aY(G,e));return t.appendToDom(),t},createForm:async(e={})=>J(aY(G,e)),setTheme(e){if(G.colorScheme=e,H){let e=a0(G);W?H.replaceChild(e,W):H.prepend(e),W=e}},remove(){H&&(H.parentElement?.remove(),H=null,W=null),z.forEach(e=>e()),z=[]}}};function a2(){let e=(0,Z.KU)();return e?.getIntegrationByName("Feedback")}var a3,a5,a6,a4,a8,a7,a9,oe={},ot=[],or=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,on=Array.isArray;function oi(e,t){for(var r in t)e[r]=t[r];return e}function oa(e){var t=e.parentNode;t&&t.removeChild(e)}function oo(e,t,r){var n,i,a,o={};for(a in t)"key"==a?n=t[a]:"ref"==a?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?a3.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]
vendor: 4,926 bytes, line 581
581);return os(e,o,n,i,null)}function os(e,t,r,n,i){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++a6:i,__i:-1,__u:0};return null==i&&null!=a5.vnode&&a5.vnode(a),a}function ol(e){return e.children}function ou(e,t){this.props=e,this.context=t}function oc(e,t){if(null==t)return e.__?oc(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?oc(e):null}function od(e){(!e.__d&&(e.__d=!0)&&a4.push(e)&&!op.__r++||a8!==a5.debounceRendering)&&((a8=a5.debounceRendering)||a7)(op)}function op(){var e,t,r,n=[],i=[];for(a4.sort(a9);e=a4.shift();)e.__d&&(r=a4.length,t=function(e,t,r){var n,i=e.__v,a=i.__e,o=e.__P;if(o)return(n=oi({},i)).__v=i.__v+1,a5.vnode&&a5.vnode(n),oy(o,n,i,e.__n,void 0!==o.ownerSVGElement,32&i.__u?[a]:null,t,null==a?oc(i):a,!!(32&i.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=a&&function e(t){var r,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(n=t.__k[r])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return e(t)}}(n),n}(e,n,i)||t,0===r||a4.length>r?(oS(n,t,i),i.length=n.length=0,t=void 0,a4.sort(a9)):t&&a5.__c&&a5.__c(t,ot));t&&oS(n,t,i),op.__r=0}function of(e,t,r,n,i,a,o,s,l,u,c){var d,p,f,h,m,g=n&&n.__k||ot,_=t.length;for(r.__d=l,function(e,t,r){var n,i,a,o,s,l=t.length,u=r.length,c=u,d=0;for(e.__k=[],n=0;n<l;n++)null!=(i=e.__k[n]=null==(i=t[n])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?os(null,i,null,null,i):on(i)?os(ol,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?os(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=function(e,t,r,n){var i=e.key,a=e.type,o=r-1,s=r+1,l=t[r];if(null===l||l&&i==l.key&&a===l.type)return r;if(n>+(null!=l&&0==(131072&l.__u)))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&i==l.key&&a===l.type)return o;o--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&i==l.key&&a===l.type)return s;s++}}return -1}(i,r,o=n+d,c),i.__i=s,a=null,-1!==s&&(c--,(a=r[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==o&&(s===o+1?d++:s>o?c>l-o?d+=s-o:d--:d=s<o&&s==o-1?s-o:0,s!==n+d&&(i.__u|=65536))):(a=r[n])&&null==a.key&&a.__e&&(a.__e==e.__d&&(e.__d=oc(a)),ob(a,a,!1),r[n]=null,c--);if(c)for(n=0;n<u;n++)null!=(a=r[n])&&0==(131072&a.__u)&&(a.__e==e.__d&&(e.__d=oc(a)),ob(a,a))}(r,t,g),l=r.__d,d=0;d<_;d++)null!=(f=r.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?oe:g[f.__i]||oe,f.__i=d,oy(e,f,p,i,a,o,s,l,u,c),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&oE(p.ref,null,f),c.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?l=function e(t,r,n){var i,a;if("function"==typeof t.type){for(i=t.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=t,r=e(i[a],r,n));return r}t.__e!=r&&(n.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;while(null!=r&&8===r.nodeType);return r}(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=l,r.__e=m}function oh(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||or.test(t)?r:r+"px"}function om(e,t,r,n,i){var a;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||oh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||oh(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,a?o_:og,a)):e.removeEventListener(t,a?o_:og,a);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function og(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(a5.event?a5.event(e):e)}}function o_(e){if(this.l)return this.l[e.type+!0](a5.event?a5.event(e):e)}function oy(e,t,r,n,i,a,o,s,l,u){var c,d,p,f,h,m,g,_,y,S,E,b,T,v,I,A=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),a=[s=t.__e=r.__e]),(c=a5.__b)&&c(t);e:if("function"==typeof A)try{if(_=t.props,y=(c=A.contextType)&&n[c.__c],S=c?y?y.props.value:c.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(_,S):(t.__c=d=new ou(_,S),d.constructor=A,d.render=oT),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=S,d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=oi({}
581,d.__s)),oi(d.__s,A.getDerivedStateFromProps(_,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,S),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,S)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[],d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,S),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,m)})}if(d.context=S,d.props=_,d.__P=e,d.__e=!1,b=a5.__r,T=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,b&&b(t),c=d.render(d.props,d.state,d.context),v=0;v<d._sb.length;v++)d.__h.push(d._sb[v]);d._sb=[]}else do d.__d=!1,b&&b(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++T<25);d.state=d.__s,null!=d.getChildContext&&(n=oi(oi({},n),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),of(e,on(I=null!=c&&c.type===ol&&null==c.key?c.props.children:c)?I:[I],t,r,n,i,a,o,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=a?(t.__e=s,t.__u|=l?160:32,a[a.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),a5.__e(e,t,r)}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,a,o,s,l){var u,c,d,p,f,h,m,g=r.props,_=t.props,y=t.type;if("svg"===y&&(i=!0),null!=a){for(u=0;u<a.length;u++)if((f=a[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,a[u]=null;break}}if(null==e){if(null===y)return document.createTextNode(_);e=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),a=null,s=!1}if(null===y)g===_||s&&e.data===_||(e.data=_);else{if(a=a&&a3.call(e.childNodes),g=r.props||oe,!s&&null!=a)for(g={},u=0;u<e.attributes.length;u++)g[(f=e.attributes[u]).name]=f.value;for(u in g)f=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=f:"key"===u||u in _||om(e,u,null,f,i));for(u in _)f=_[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?c=f:"value"==u?h=f:"checked"==u?m=f:"key"===u||s&&"function"!=typeof f||g[u]===f||om(e,u,f,g[u],i);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),of(e,on(p)?p:[p],t,r,n,i&&"foreignObject"!==y,a,o,a?a[0]:r.__k&&oc(r,0),s,l),null!=a)for(u=a.length;u--;)null!=a[u]&&oa(a[u]);s||(u="value",void 0===h||h===e[u]&&("progress"!==y||h)&&("option"!==y||h===g[u])||om(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&om(e,u,m,g[u],!1))}return e}(r.__e,t,r,n,i,a,o,l,u);(c=a5.diffed)&&c(t)}function oS(e,t,r){for(var n=0;n<r.length;n++)oE(r[n],r[++n],r[++n]);a5.__c&&a5.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){a5.__e(e,t.__v)}})}function oE(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){a5.__e(e,r)}}function ob(e,t,r){var n,i;if(a5.unmount&&a5.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||oE(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){a5.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&ob(n[i],t,r||"function"!=typeof e.type);r||null==e.__e||oa(e.__e),e.__=e.__e=e.__d=void 0}function oT(e,t,r){return this.constructor(e,r)}a3=ot.slice,a5={__e:function(e,t,r,n){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},a6=0,ou.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=oi({},this.state),"function"==typeof e&&(e=e(oi({},r),this.props)),e&&oi(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),od(this))},ou.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),od(this))},ou.prototype.render=ol,a4=[],a7="function"==typeof Promise?Promise.prototype.then.bind(Prom
581ise.resolve()):setTimeout,a9=function(e,t){return e.__v.__b-t.__v.__b},op.__r=0;var ov,oI,oA,oR,oO=0,ow=[],oN=[],oC=a5,oP=oC.__b,ok=oC.__r,oM=oC.diffed,ox=oC.__c,oL=oC.unmount,oU=oC.__;function oD(e,t){oC.__h&&oC.__h(oI,e,oO||t),oO=0;var r=oI.__H||(oI.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:oN}),r.__[e]}function oB(e){return oO=1,oj(oY,e)}function oj(e,t,r){var n=oD(ov++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):oY(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=oI,!oI.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,r);var o=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&n.__c.props===e)&&(!a||a.call(this,e,t,r))};oI.u=!0;var a=oI.shouldComponentUpdate,o=oI.componentWillUpdate;oI.componentWillUpdate=function(e,t,r){if(this.__e){var n=a;a=void 0,i(e,t,r),a=n}o&&o.call(this,e,t,r)},oI.shouldComponentUpdate=i}return n.__N||n.__}function oF(e,t){var r=oD(ov++,4);!oC.__s&&oJ(r.__H,t)&&(r.__=e,r.i=t,oI.__h.push(r))}function o$(e,t){var r=oD(ov++,7);return oJ(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function oG(e,t){return oO=8,o$(function(){return e},t)}function oH(){for(var e;e=ow.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(oz),e.__H.__h.forEach(oq),e.__H.__h=[]}catch(t){e.__H.__h=[],oC.__e(t,e.__v)}}oC.__b=function(e){oI=null,oP&&oP(e)},oC.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),oU&&oU(e,t)},oC.__r=function(e){ok&&ok(e),ov=0;var t=(oI=e.__c).__H;t&&(oA===oI?(t.__h=[],oI.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=oN,e.__N=e.i=void 0})):(t.__h.forEach(oz),t.__h.forEach(oq),t.__h=[],ov=0)),oA=oI},oC.diffed=function(e){oM&&oM(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ow.push(t)&&oR===oC.requestAnimationFrame||((oR=oC.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),oW&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);oW&&(t=requestAnimationFrame(r))})(oH)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==oN&&(e.__=e.__V),e.i=void 0,e.__V=oN})),oA=oI=null},oC.__c=function(e,t){t.some(function(e){try{e.__h.forEach(oz),e.__h=e.__h.filter(function(e){return!e.__||oq(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],oC.__e(r,e.__v)}}),ox&&ox(e,t)},oC.unmount=function(e){oL&&oL(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{oz(e)}catch(e){t=e}}),r.__H=void 0,t&&oC.__e(t,r.__v))};var oW="function"==typeof requestAnimationFrame;function oz(e){var t=oI,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),oI=t}function oq(e){var t=oI;e.__c=e.__(),oI=t}function oJ(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function oY(e,t){return"function"==typeof t?t(e):t}let oV=Object.defineProperty({__proto__:null,useCallback:oG,useContext:function(e){var t=oI.context[e.__c],r=oD(ov++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(oI)),t.props.value):e.__},useDebugValue:function(e,t){oC.useDebugValue&&oC.useDebugValue(t?t(e):e)},useEffect:function(e,t){var r=oD(ov++,3);!oC.__s&&oJ(r.__H,t)&&(r.__=e,r.i=t,oI.__H.__h.push(r))},useErrorBoundary:function(e){var t=oD(ov++,10),r=oB();return t.__=e,oI.componentDidCatch||(oI.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:function(){var e=oD(ov++,11);if(!e.__){for(var t=oI.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__},useImperativeHandle:function(e,t,r){oO=6,oF(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))},useLayoutEffect:oF,useMemo:o$,useReducer:oj,useRef:function(e){return oO=5,o$(function(){return{current:e}},[])},useState:oB},Symbol.toStringTag,{value:"Module"});function oK({options:e}){let t=o$(()=>{let e,t;return{__html:(e=aV(aO.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=aV(aO.createElementNS("http://www.w3.org/2000/svg","path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"}),e.appendChild(t),e).outerHTML}},[]);return oo("h2",{class:"dialog__header"},oo("span",{class:"dialog__title"},e.formTitle),e.showBranding?oo("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function oX(e,t){let r=e.get(t);return"string"==typeof r?r.trim():""}function oQ({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:i,onSubmitSuccess:a,onSubmitError:o,showEmail
581:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:_,messageLabel:y,messagePlaceholder:S,nameLabel:E,namePlaceholder:b,submitButtonLabel:T,isRequiredLabel:v}=e,[I,A]=oB(!1),[R,O]=oB(null),[w,N]=oB(!1),C=u?.input,[P,k]=oB(null),M=oG(e=>{k(e),N(!1)},[]),x=oG(e=>{var t;let r,n=(r=[],(t={emailLabel:h,isEmailRequired:g,isNameRequired:_,messageLabel:y,nameLabel:E}).isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),e.message||r.push(t.messageLabel),r);return n.length>0?O(`Please enter in the following required fields: ${n.join(", ")}`):O(null),0===n.length},[h,g,_,y,E]);return oo("form",{class:"form",onSubmit:oG(async e=>{A(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),r=await (u&&w?u.value():void 0),n={name:oX(t,"name"),email:oX(t,"email"),message:oX(t,"message"),attachments:r?[r]:void 0};if(!x(n))return;try{let e=await i({name:n.name,email:n.email,message:n.message,source:"widget",tags:c},{attachments:n.attachments});a(n,e)}catch(e){O(e),o(e)}}finally{A(!1)}},[u&&w,a,o])},C&&w?oo(C,{onError:M}):null,oo("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:I},oo("div",{class:"form__top"},R?oo("div",{class:"form__error-container"},R):null,l?oo("label",{for:"name",class:"form__label"},oo(oZ,{label:E,isRequiredLabel:v,isRequired:_}),oo("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:b,required:_,type:"text"})):oo("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?oo("label",{for:"email",class:"form__label"},oo(oZ,{label:h,isRequiredLabel:v,isRequired:g}),oo("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):oo("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),oo("label",{for:"message",class:"form__label"},oo(oZ,{label:y,isRequiredLabel:v,isRequired:!0}),oo("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:S,required:!0,rows:5})),C?oo("label",{for:"screenshot",class:"form__label"},oo("button",{class:"btn btn--default",disabled:I,type:"button",onClick:()=>{k(null),N(e=>!e)}},w?p:d),P?oo("div",{class:"form__error-container"},P.message):null):null),oo("div",{class:"btn-group"},oo("button",{class:"btn btn--primary",disabled:I,type:"submit"},T),oo("button",{class:"btn btn--default",disabled:I,type:"button",onClick:n},f))))}function oZ({label:e,isRequired:t,isRequiredLabel:r}){return oo("span",{class:"form__label__text"},e,t&&oo("span",{class:"form__label__text--required"},r))}function o0({open:e,onFormSubmitted:t,...r}){let n=r.options,i=o$(()=>{let e,t,r,n,i,a,o,s;return{__html:(t=aV((e=e=>aR.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=aV(e("g"),{clipPath:"url(#clip0_57_156)"}),n=aV(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=aV(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
58110.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"}),t.appendChild(r).append(i,n),a=e("defs"),o=aV(e("clipPath"),{id:"clip0_57_156"}),s=aV(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"}),o.appendChild(s),a.appendChild(o),t.appendChild(a).appendChild(o).appendChild(s),t).outerHTML}},[]),[a,o]=oB(null),s=oG(()=>{a&&(clearTimeout(a),o(null)),t()},[a]),l=oG((e,n)=>{r.onSubmitSuccess(e,n),o(setTimeout(()=>{t(),o(null)},5e3))},[t]);return oo(ol,null,a?oo("div",{class:"success__position",onClick:s},oo("div",{class:"success__content"},n.successMessageText,oo("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):oo("dialog",{class:"dialog",onClick:n.onFormClose,open:e},oo("div",{class:"dialog__position"},oo("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},oo(oK,{options:n}),oo(oQ,{...r,onSubmitSuccess:l})))))}let o1=`
582.dialog {
583  position: fixed;
584  z-index: var(--z-index);
585  margin: 0;
586  inset: 0;
587
588  display: flex;
589  align-items: center;
590  justify-content: center;
591  padding: 0;
592  height: 100vh;
593  width: 100vw;
594
595  color: var(--dialog-color, var(--foreground));
596  fill: var(--dialog-color, var(--foreground));
597  line-height: 1.75em;
598
599  background-color: rgba(0, 0, 0, 0.05);
600  border: none;
601  inset: 0;
602  opacity: 1;
603  transition: opacity 0.2s ease-in-out;
604}
605
606.dialog__position {
607  position: fixed;
608  z-index: var(--z-index);
609  inset: var(--dialog-inset);
610  padding: var(--page-margin);
611  display: flex;
612  max-height: calc(100vh - (2 * var(--page-margin)));
613}
614@media (max-width: 600px) {
615  .dialog__position {
616    inset: var(--page-margin);
617    padding: 0;
618  }
619}
620
621.dialog__position:has(.editor) {
622  inset: var(--page-margin);
623  padding: 0;
624}
625
626.dialog:not([open]) {
627  opacity: 0;
628  pointer-events: none;
629  visibility: hidden;
630}
631.dialog:not([open]) .dialog__content {
632  transform: translate(0, -16px) scale(0.98);
633}
634
635.dialog__content {
636  display: flex;
637  flex-direction: column;
638  gap: 16px;
639  padding: var(--dialog-padding, 24px);
640  max-width: 100%;
641  width: 100%;
642  max-height: 100%;
643  overflow: auto;
644
645  background: var(--dialog-background, var(--background));
646  border-radius: var(--dialog-border-radius, 20px);
647  border: var(--dialog-border, var(--border));
648  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
649  transform: translate(0, 0) scale(1);
650  transition: transform 0.2s ease-in-out;
651}
652
653`,o2=`
654.dialog__header {
655  display: flex;
656  gap: 4px;
657  justify-content: space-between;
658  font-weight: var(--dialog-header-weight, 600);
659  margin: 0;
660}
661.dialog__title {
662  align-self: center;
663  width: var(--form-width, 272px);
664}
665
666@media (max-width: 600px) {
667  .dialog__title {
668    width: auto;
669  }
670}
671
672.dialog__position:has(.editor) .dialog__title {
673  width: auto;
674}
675
676
677.brand-link {
678  display: inline-flex;
679}
680.brand-link:focus-visible {
681  outline: var(--outline);
682}
683`,o3=`
684.form {
685  display: flex;
686  overflow: auto;
687  flex-direction: row;
688  gap: 16px;
689  flex: 1 0;
690}
691
692.form fieldset {
693  border: none;
694  margin: 0;
695  padding: 0;
696}
697
698.form__right {
699  flex: 0 0 auto;
700  display: flex;
701  overflow: auto;
702  flex-direction: column;
703  justify-content: space-between;
704  gap: 20px;
705  width: var(--form-width, 100%);
706}
707
708.dialog__position:has(.editor) .form__right {
709  width: var(--form-width, 272px);
710}
711
712.form__top {
713  display: flex;
714  flex-direction: column;
715  gap: 8px;
716}
717
718.form__error-container {
719  color: var(--error-color);
720  fill: var(--error-color);
721}
722
723.form__label {
724  display: flex;
725  flex-direction: column;
726  gap: 4px;
727  margin: 0px;
728}
729
730.form__label__text {
731  display: flex;
732  gap: 4px;
733  align-items: center;
734}
735
736.form__label__text--required {
737  font-size: 0.85em;
738}
739
740.form__input {
741  font-family: inherit;
742  line-height: inherit;
743  background: transparent;
744  box-sizing: border-box;
745  border: var(--input-border, var(--border));
746  border-radius: var(--input-border-radius, 6px);
747  color: var(--input-color, inherit);
748  fill: var(--input-color, inherit);
749  font-size: var(--input-font-size, inherit);
750  font-weight: var(--input-font-weight, 500);
751  padding: 6px 12px;
752}
753
754.form__input::placeholder {
755  opacity: 0.65;
756  color: var(--input-placeholder-color, inherit);
757  filter: var(--interactive-filter);
758}
759
760.form__input:focus-visible {
761  outline: var(--input-focus-outline, var(--outline));
762}
763
764.form__input--textarea {
765  font-family: inherit;
766  resize: vertical;
767}
768
769.error {
770  color: var(--error-color);
771  fill: var(--error-color);
772}
773`,o5=`
774.btn-group {
775  display: grid;
776  gap: 8px;
777}
778
779.btn {
780  line-height: inherit;
781  border: var(--button-border, var(--border));
782  border-radius: var(--button-border-radius, 6px);
783  cursor: pointer;
784  font-family: inherit;
785  font-size: var(--button-font-size, inherit);
786  font-weight: var(--button-font-weight, 600);
787  padding: var(--button-padding, 6px 16px);
788}
789.btn[disabled] {
790  opacity: 0.6;
791  pointer-events: none;
792}
793
794.btn--primary {
795  color: var(--button-primary-color, var(--accent-foreground));
796  fill: var(--button-primary-color, var(--accent-foreground));
797  background: var(--button-primary-background, var(--accent-background));
798  border: var(--button-primary-border, var(--border));
799  border-radius: var(--button-primary-border-radius, 6px);
800  font-weight: var(--button-primary-font-weight, 500);
801}
802.btn--primary:hover {
803  color: var(--button-primary-hover-color, var(--accent-foreground));
804  fill: var(--button-primary-hover-color, var(--accent-foreground));
805  background: var(--button-primary-hover-background, var(--accent-background));
806  filter: var(--interactive-filter);
807}
808.btn--primary:focus-visible {
809  background: var(--button-primary-hover-background, var(--accent-background));
810  filter: var(--interactive-filter);
811  outline: var(--button-primary-focus-outline, var(--outline));
812}
813
814.btn--default {
815  color: var(--button-color, var(--foreground));
816  fill: var(--button-color, var(--foreground));
817  background: var(--button-background, var(--background));
818  border: var(--button-border, var(--border));
819  border-radius: var(--button-border-radius, 6px);
820  font-weight: var(--button-font-weight, 500);
821}
822.btn--default:hover {
823  color: var(--button-color, var(--foreground));
824  fill: var(--button-color, var(--foreground));
825  background: var(--button-hover-background, var(--background));
826  filter: var(--interactive-filter);
827}
828.btn--default:focus-visible {
829  background: var(--button-hover-background, var(--background));
830  filter: var(--interactive-filter);
831  outline: var(--button-focus-outline, var(--outline));
832}
833`,o6=`
834.success__position {
835  position: fixed;
836  inset: var(--dialog-inset);
837  padding: var(--page-margin);
838  z-index: var(--z-index);
839}
840.success__content {
841  background: var(--success-background, var(--background));
842  border: var(--success-border, var(--border));
843  border-radius: var(--success-border-radius, 1.7em/50%);
844  box-shadow: var(--success-box-shadow, var(--box-shadow));
845  font-weight: var(--success-font-weight, 600);
846  color: var(--success-color);
847  fill: var(--success-color);
848  padding: 12px 24px;
849  line-height: 1.75em;
850
851  display: grid;
852  align-items: center;
853  grid-auto-flow: column;
854  gap: 6px;
855  cursor: default;
856}
857
858.success__icon {
859  display: flex;
860}
861`,o4=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:r,shadow:n})=>{var i;let a,o,s,l,u=e.useSentryUser,c=(a=(0,Z.o5)().getUser(),o=(0,Z.rm)().getUser(),s=(0,Z.m6)().getUser(),a&&Object.keys(a).length?a:o&&Object.keys(o).length?o:s),d=aO.createElement("div"),p=(i=e.styleNonce,(l=aO.createElement("style")).textContent=`
862:host {
863  --dialog-inset: var(--inset);
864}
865
866${o1}
867${o2}
868${o3}
869${o5}
870${o6}
871`,i&&l.setAttribute("nonce",i),l),f="",h={get el(){return d},appendToDom(){n.contains(p)||n.contains(d)||(n.appendChild(p),n.appendChild(d))},removeFromDom(){d.remove(),p.remove(),aO.body.style.overflow=f},open(){g(!0),e.onFormOpen?.(),(0,Z.KU)()?.emit("openFeedbackWidget"),f=aO.body.style.overflow,aO.body.style.overflow="hidden"},close(){g(!1),aO.body.style.overflow=f}},m=t?.createInput({h:oo,hooks:oV,dialog:h,options:e}),g=t=>{var n,i,a,o;n=oo(o0,{options:e,screenshotInput:m,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(u&&c?.[u.name]||""),defaultEmail:String(u&&c?.[u.email]||""),onFormClose:()=>{g(!1),e.onFormClose?.()},onSubmit:r,onSubmitSuccess:(t,r)=>{g(!1),e.onSubmitSuccess?.(t,r)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),a5.__&&a5.__(n,d),i=d.__k,a=[],o=[],oy(d,n=d.__k=oo(ol,null,[n]),i||oe,oe,void 0!==d.ownerSVGElement,i?null:d.firstChild?a3.call(d.childNodes):null,a,i?i.__e:d.firstChild,!1,o),n.__d=void 0,oS(a,n,o)};return h}});function o8(e,t,r){if(!e)return;let n=e.getContext("2d",t);n&&r(e,n)}function o7(e,t){o8(e,{alpha:!0},(e,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function o9(e,t,r){o8(e,{alpha:!0},(e,n)=>{r.length&&(n.fillStyle="rgba(0, 0, 0, 0.25)",n.fillRect(0,0,e.width,e.height)),r.forEach(e=>{switch(e.type){case"highlight":n.shadowColor="rgba(0, 0, 0, 0.7)",n.shadowBlur=50,n.fillStyle=t,n.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),n.clearRect(e.x,e.y,e.w,e.h);break;case"hide":n.fillStyle="rgb(0, 0, 0)",n.fillRect(e.x,e.y,e.w,e.h)}})})}let se=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{let i=aO.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:r,dialog:n,options:i}){var a;let o,s,l,u=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:r,onAfterScreenshot:n,onError:i}){let a=function(){let[t,r]=e.useState(aR.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{r(aR.devicePixelRatio)},t=matchMedia(`(resolution: ${aR.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await aw.mediaDevices.getDisplayMedia({video:{width:aR.innerWidth*a,height:aR.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),i=aO.createElement("video");await new Promise((t,n)=>{i.srcObject=e,i.onloadedmetadata=()=>{r(i,a),e.getTracks().forEach(e=>e.stop()),t()},i.play().catch(n)}),n()})().catch(i)},[])}}({hooks:t}),c=function({h:e}){return function({action:t,setAction:r,options:n}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${"highlight"===t?"editor__tool--active":""}`,onClick:()=>{r("highlight"===t?"":"highlight")}},n.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{r("hide"===t?"":"hide")}},n.hideToolText)))}}({h:e}),d=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),p={__html:(a=i.styleNonce,o=aO.createElement("style"),s="#1A141F",l="#302735",o.textContent=`
872.editor {
873  display: flex;
874  flex-grow: 1;
875  flex-direction: column;
876}
877
878.editor__image-container {
879  justify-items: center;
880  padding: 15px;
881  position: relative;
882  height: 100%;
883  border-radius: var(--menu-border-radius, 6px);
884
885  background-color: ${s};
886  background-image: repeating-linear-gradient(
887      -145deg,
888      transparent,
889      transparent 8px,
890      ${s} 8px,
891      ${s} 11px
892    ),
893    repeating-linear-gradient(
894      -45deg,
895      transparent,
896      transparent 15px,
897      ${l} 15px,
898      ${l} 16px
899    );
900}
901
902.editor__canvas-container {
903  width: 100%;
904  height: 100%;
905  position: relative;
906  display: flex;
907  align-items: center;
908  justify-content: center;
909}
910
911.editor__canvas-container > * {
912  object-fit: contain;
913  position: absolute;
914}
915
916.editor__tool-container {
917  padding-top: 8px;
918  display: flex;
919  justify-content: center;
920}
921
922.editor__tool-bar {
923  display: flex;
924  gap: 8px;
925}
926
927.editor__tool {
928  display: flex;
929  padding: 8px 12px;
930  justify-content: center;
931  align-items: center;
932  border: var(--button-border, var(--border));
933  border-radius: var(--button-border-radius, 6px);
934  background: var(--button-background, var(--background));
935  color: var(--button-color, var(--foreground));
936}
937
938.editor__tool--active {
939  background: var(--button-primary-background, var(--accent-background));
940  color: var(--button-primary-color, var(--accent-foreground));
941}
942
943.editor__rect {
944  position: absolute;
945  z-index: 2;
946}
947
948.editor__rect button {
949  opacity: 0;
950  position: absolute;
951  top: -12px;
952  right: -12px;
953  cursor: pointer;
954  padding: 0;
955  z-index: 3;
956  border: none;
957  background: none;
958}
959
960.editor__rect:hover button {
961  opacity: 1;
962}
963`,a&&o.setAttribute("nonce",a),o).innerText},f=n.el.style,h=({screenshot:n})=>{let[a,o]=t.useState("highlight"),[s,l]=t.useState([]),u=t.useRef(null),f=t.useRef(null),h=t.useRef(null),m=t.useRef(null),[g,_]=t.useState(1),y=t.useMemo(()=>{let e=aO.getElementById(i.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{let e=()=>{let t=u.current;t&&(o8(n.canvas,{alpha:!1},e=>
963{_(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),aR.addEventListener("resize",e),()=>{aR.removeEventListener("resize",e)}},[n]);let S=t.useCallback((e,t)=>{o8(e,{alpha:!0},(e,r)=>{r.scale(t,t),e.width=n.canvas.width,e.height=n.canvas.height})},[n]);t.useEffect(()=>{S(f.current,n.dpi),o7(f.current,n.canvas)},[n]),t.useEffect(()=>{S(h.current,n.dpi),o8(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),o9(h.current,y,s)},[s,y]),t.useEffect(()=>{S(r,n.dpi),o7(r,n.canvas),o8(aO.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(n.dpi,n.dpi),e.width=n.canvas.width,e.height=n.canvas.height,o9(e,y,s),o7(r,e)})},[s,n,y]);let E=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),l(t=>{let r=[...t];return r.splice(e,1),r})},[]),b={width:`${n.canvas.width*g}px`,height:`${n.canvas.height*g}px`},T=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:p}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:u},e("canvas",{ref:f,id:"background",style:b}),e("canvas",{ref:h,id:"foreground",style:b}),e("div",{ref:m,onMouseDown:e=>{if(!a||!m.current)return;let t=m.current.getBoundingClientRect(),r={type:a,x:e.offsetX/g,y:e.offsetY/g},n=(e,r)=>{let n=(r.clientX-t.x)/g,i=(r.clientY-t.y)/g;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,i),w:Math.abs(n-e.x),h:Math.abs(i-e.y)}},i=e=>{o8(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),o9(h.current,y,[...s,n(r,e)])},o=e=>{let t=n(r,e);t.w*g>=1&&t.h*g>=1&&l(e=>[...e,t]),aO.removeEventListener("mousemove",i),aO.removeEventListener("mouseup",o)};aO.addEventListener("mousemove",i),aO.addEventListener("mouseup",o)},style:b},s.map((t,r)=>e("div",{key:r,class:"editor__rect",style:{top:`${t.y*g}px`,left:`${t.x*g}px`,width:`${t.w*g}px`,height:`${t.h*g}px`}},e("button",{"aria-label":i.removeHighlightText,onClick:E(r),onMouseDown:T,onMouseUp:T,type:"button"},e(d,null))))))),e(c,{options:i,action:a,setAction:o}))};return function({onError:n}){let[i,a]=t.useState();return(u({onBeforeScreenshot:t.useCallback(()=>{f.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{o8(aO.createElement("canvas"),{alpha:!1},(r,n)=>{n.scale(t,t),r.width=e.videoWidth,r.height=e.videoHeight,n.drawImage(e,0,0,r.width,r.height),a({canvas:r,dpi:t})}),r.width=e.videoWidth,r.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{f.display="block"},[]),onError:t.useCallback(e=>{f.display="block",n(e)},[])}),i)?e(h,{screenshot:i}):e("div",null)}}({h:e,hooks:t,outputBuffer:i,dialog:r,options:n}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),st={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient",instrumentLangGraph:"instrumentlanggraph",createLangChainCallbackHandler:"createlangchaincallbackhandler"};async function sr(e,t){var r;let n,i,a=st[e],o=tx.Sentry=tx.Sentry||{};if(!a)throw Error(`Cannot lazy load integration: ${e}`);let s=o[e];if("function"==typeof s&&!("_isShim"in s))return s;let l=(r=a,n=(0,Z.KU)(),i=n?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com",new URL(`/${V.M}/${r}.min.js`,i).toString()),u=tx.document.createElement("script");
963u.src=l,u.crossOrigin="anonymous",u.referrerPolicy="strict-origin",t&&u.setAttribute("nonce",t);let c=new Promise((e,t)=>{u.addEventListener("load",()=>e()),u.addEventListener("error",t)}),d=tx.document.currentScript,p=tx.document.body||tx.document.head||d?.parentElement;if(p)p.appendChild(u);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await c}catch{throw Error(`Error when loading integration: ${e}`)}let f=o[e];if("function"!=typeof f)throw Error(`Could not load integration: ${e}`);return f}let sn=a1({lazyLoadIntegration:sr}),si=a1({getModalIntegration:()=>o4,getScreenshotIntegration:()=>se}),sa="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function so(e,t){let r;return eC(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}function ss(e,t){return r=>{let n=e(r),i=new Map,a=t||(e=>{let t=e.getEvent();return t?.extra?.[sa]&&Array.isArray(t.extra[sa])?t.extra[sa]:[]});function o(t,n){let a=n?`${t}:${n}`:t,o=i.get(a);if(!o){let s=(0,eT.hH)(t);if(!s)return;let l=eI(s,r.tunnel);o=n?(t=>{let r=e(t);return{...r,send:async e=>{let t=so(e,["event","transaction","profile","replay_event"]);return t&&(t.release=n),r.send(e)}}})({...r,url:l}):e({...r,url:l}),i.set(a,o)}return[t,o]}return{send:async function(e){let t=a({envelope:e,getEvent:function(t){return so(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e),r=t.length?t:[["",n]];return(await Promise.all(r.map(([t,r])=>r.send(eN(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...i.values(),n];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var sl=r(21187);let su=(e={})=>{let t=e.levels||Y.Ow,r=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in J.O&&tW(({args:n,level:i})=>{var a,o,s;let l,u,c;(0,Z.KU)()===e&&t.includes(i)&&(a=n,o=i,s=r,l=t2(o),u=Error(),c={level:t2(o),extra:{arguments:a}},(0,Z.v4)(e=>{if(e.addEventProcessor(e=>(e.logger="console",(0,ea.M6)(e,{handled:s,type:"auto.core.capture_console"}),e)),"assert"===o){if(!a[0]){let t=`Assertion failed: ${(0,eo.gt)(a.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",a.slice(1)),e.captureMessage(t,l,{captureContext:c,syntheticException:u})}return}let t=a.find(e=>e instanceof Error);if(t)return void(0,X.Cp)(t,c);let r=(0,eo.gt)(a," ");e.captureMessage(r,l,{captureContext:c,syntheticException:u})}))})}}};function sc(e,t,r){var n,i,a;return"util"in J.O&&"function"==typeof J.O.util.format?J.O.util.format(...e):(n=e,i=t,a=r,n.map(e=>(0,e$.sO)(e)?String(e):JSON.stringify((0,ew.S8)(e,i,a))).join(" "))}function sd(e){return/%[sdifocO]/.test(e)}function sp(e,t){let r={},n=Array(t.length).fill("{}").join(" ");return r["sentry.message.template"]=`${e} ${n}`,t.forEach((e,t)=>{r[`sentry.message.parameter.${t}`]=e}),r}let sf={[em.JD]:"auto.log.console"},sh=(e={})=>{let t=e.levels||Y.Ow;return{name:"ConsoleLogs",setup(e){let{enableLogs:r,normalizeDepth:n=3,normalizeMaxBreadth:i=1e3}=e.getOptions();if(!r){Q.T&&Y.Yz.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}tW(({args:r,level:a})=>{if((0,Z.KU)()!==e||!t.includes(a))return;let o=r[0],s=r.slice(1);if("assert"===a){o||eV({level:"error",message:s.length>0?`Assertion failed: ${sc(s,n,i)}`:"Assertion failed",attributes:sf});return}let l="log"===a,u=r.length>1&&"string"==typeof r[0]&&!sd(r[0]),c={...sf,...u?sp(o,s):{}};eV({level:l?"info":a,message:sc(r,n,i),severityNumber:l?10:void 0,attributes:c})})}}},sm=["trace","debug","info","warn","error","fatal"];function sg(e={}){let t=new Set(e.levels??sm),r=e.client;return{log(e){let{type:n,level:i,message:a,args:o,tag:s,date:l,...u}=e,c=r||(0,Z.KU)();if(!c)return;let d=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=s_[e];
963if(t)return t}if("number"==typeof t){let e=sy[t];if(e)return e}return"info"}(n,i);if(!t.has(d))return;let{normalizeDepth:p=3,normalizeMaxBreadth:f=1e3}=c.getOptions(),h={};for(let[e,t]of Object.entries(u))h[e]=(0,ew.S8)(t,p,f);h["sentry.origin"]="auto.log.consola",s&&(h["consola.tag"]=s),n&&(h["consola.type"]=n),null!=i&&"number"==typeof i&&(h["consola.level"]=i);let m=function(e,t,r){let{message:n,attributes:i,messageTemplate:a,messageParameters:o}=e,s={};if(a&&o)for(let[e,n]of Object.entries(sp(a,o)))s[e]=e.startsWith("sentry.message.parameter.")?(0,ew.S8)(n,t,r):n;else o&&o.length>0&&o.forEach((e,n)=>{s[`sentry.message.parameter.${n}`]=(0,ew.S8)(e,t,r)});return{message:n,attributes:{...(0,ew.S8)(i,t,r),...s}}}(function(e,t,r){if(!e?.length)return{message:""};let n=sc(e,t,r),i=e[0];if((0,e$.Qd)(i)){let t="string"==typeof e[1]?2:1;return{message:n,attributes:i,messageParameters:e.slice(t)}}{let t=e.slice(1),r=t.length>0&&"string"==typeof i&&!sd(i);return{message:n,messageTemplate:r?i:void 0,messageParameters:r?t:void 0}}}(o,p,f),p,f);m?.attributes&&Object.assign(h,m.attributes),eV({level:d,message:m?.message||a||o&&sc(o,p,f)||"",attributes:h})}}}let s_={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},sy={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"},sS="gen_ai.system",sE="gen_ai.request.model",sb="gen_ai.request.stream",sT="gen_ai.request.temperature",sv="gen_ai.request.max_tokens",sI="gen_ai.request.frequency_penalty",sA="gen_ai.request.presence_penalty",sR="gen_ai.request.top_p",sO="gen_ai.request.top_k",sw="gen_ai.response.finish_reasons",sN="gen_ai.response.model",sC="gen_ai.response.id",sP="gen_ai.usage.input_tokens",sk="gen_ai.usage.output_tokens",sM="gen_ai.usage.total_tokens",sx="gen_ai.operation.name",sL="sentry.sdk_meta.gen_ai.input.messages.original_length",sU="gen_ai.input.messages",sD="gen_ai.system_instructions",sB="gen_ai.response.text",sj="gen_ai.request.available_tools",sF="gen_ai.response.streaming",s$="gen_ai.response.tool_calls",sG="gen_ai.agent.name",sH="gen_ai.conversation.id",sW="openai.response.id",sz="openai.response.model",sq="openai.response.timestamp",sJ="chat",sY="embeddings",sV="anthropic.response.timestamp",sK="auto.ai.langchain",sX={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"};function sQ(e){var t,r,n,i,a,o;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&sQ(t.source)||s0(e)||"image_url"in(r=e)&&("string"==typeof r.image_url?r.image_url.startsWith("data:"):sZ(r))||s1(e)||s2(e)||"media_type"in(n=e)&&"string"==typeof n.media_type&&"data"in n||"type"in(i=e)&&("blob"===i.type||"base64"===i.type)||"b64_json"in e||"type"in(a=e)&&"result"in a&&"image_generation"===a.type||"uri"in(o=e)&&"string"==typeof o.uri&&o.uri.startsWith("data:"))}function sZ(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.image_url.url.startsWith("data:")}function s0(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function s1(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function s2(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}let s3="[Blob substitute]",s5=["image_url","data","content","b64_json","result","uri"];function s6(e){let t={...e};for(let r of(sQ(t.source)&&(t.source=s6(t.source)),s0(e)&&(t.inlineData={...e.inlineData,data:s3}),sZ(e)&&(t.image_url={...e.image_url,url:s3}),s1(e)&&(t.input_audio={...e.input_audio,data:s3}),s2(e)&&(t.file={...e.file,file_data:s3}),s5))"string"==typeof t[r]&&(t[r]=s3);return t}let s4=e=>new TextEncoder().encode(e).length,s8=e=>s4(JSON.stringify(e));function s7(e,t){if(s4(e)<=t)return e;let r=0,n=e.length,i="";for(;r<=n;){let a=Math.floor((r+n)/2),o=e.slice(0,a);
963s4(o)<=t?(i=o,r=a+1):n=a-1}return i}function s9(e,t){return"string"==typeof e?t:{...e,text:t}}function le(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function lt(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let r;t&&"object"==typeof t&&(null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)?r={...t,content:e(t.content)}:"content"in t&&sQ(t.content)&&(r={...t,content:s6(t.content)}),le(t)&&(r={...r??t,parts:e(t.parts)}),sQ(r)?r=s6(r):sQ(t)&&(r=s6(t)));return r??t})}([e[e.length-1]]),r=t[0];return 19998>=s8(r)?t:function(e){if(!e)return[];if("string"==typeof e){let t=s7(e,19998);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let t=19998-s8({...e,content:""});if(t<=0)return[];let r=s7(e.content,t);return[{...e,content:r}]}return le(e)?function(e,t){let{parts:r}=e,n=r.map(e=>s9(e,"")),i=t-s8({...e,parts:n});if(i<=0)return[];let a=[];for(let e of r){let t="string"==typeof e?e:"text"in e?e.text:"",r=s4(t);if(r<=i)a.push(e),i-=r;else if(0===a.length){let r=s7(t,i);r&&a.push(s9(e,r));break}else break}return a.length<=0?[]:[{...e,parts:a}]}(e,19998):[]}(r)}function lr(e){return e.includes("messages")?"chat":e.includes("completions")?"text_completion":e.includes("generateContent")?"generate_content":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function ln(e){return`gen_ai.${lr(e)}`}function li(e,t){return e?`${e}.${t}`:t}function la(e,t,r,n,i){void 0!==t&&e.setAttributes({[sP]:t}),void 0!==r&&e.setAttributes({[sk]:r}),(void 0!==t||void 0!==r||void 0!==n||void 0!==i)&&e.setAttributes({[sM]:(t??0)+(r??0)+(n??0)+(i??0)})}function lo(e){return"string"==typeof e?s7(e,2e4):Array.isArray(e)?JSON.stringify(lt(e)):JSON.stringify(e)}function ls(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let r=e[t],n="string"==typeof r.content?r.content:void 0!==r.content?JSON.stringify(r.content):void 0;return n?{systemInstructions:JSON.stringify([{type:"text",content:n}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}let ll=(e,t,r)=>{null!=r&&(e[t]=r)},lu=(e,t,r)=>{let n=Number(r);Number.isNaN(n)||(e[t]=n)};function lc(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function ld(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&sQ(e)?s6(e):e);return JSON.stringify(t)}catch{return String(e)}return lc(e)}function lp(e){let t=e.toLowerCase();return sX[t]??t}function lf(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function lh(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function lm(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:lp(t.call(e)),content:ld(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:lp("string"==typeof r?lf(r):"user"),content:ld(e.kwargs?.content)}}if(e.type)return{role:lp(String(e.type).toLowerCase()),content:ld(e.content)};if(e.role)return{role:lp(String(e.role)),content:ld(e.content)};let r=e.constructor?.name;return r&&"Object"!==r?{role:lp(lf(r)),content:ld(e.content)}:{role:"user",content:ld(e.content)}})}function lg(e,t,r,n,i){let a,o;return{[sS]:lc(e??"langchain"),[sx]:"chat",[sE]:lc(t),[em.JD]:sK,...(a={},o="kwargs"in r?r.kwargs:void 0,lu(a,sT,n?.temperature??i?.ls_temperature??o?.temperature),lu(a,sv,n?.max_tokens??i?.ls_max_tokens??o?.max_tokens),lu(a,sR,n?.top_p??o?.top_p),lu(a,sI,n?.frequency_penalty),lu(a,sA,n?.presence_penalty),n&&"stream"in n&&ll(a,sb,!!n.stream),a)}}function l_(e={}){let t=e.recordInputs??!1,r=e.recordOutputs??!1,n=new Map,i=e=>{let t=n.get(e);t?.isRecording()&&(t.end(),n.delete(e))}
963,a={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,r,i,a,o,s,l,u){let c,d=lh(s),p=(c=lg(l?.ls_provider,d?.model??l?.ls_model_name??"unknown",e,d,l),t&&Array.isArray(r)&&r.length>0&&(ll(c,sL,r.length),ll(c,sU,lc(r.map(e=>({role:"user",content:e}))))),c),f=p[sE],h=p[sx];nf({name:`${h} ${f}`,op:"gen_ai.chat",attributes:{...p,[em.uT]:"gen_ai.chat"}},e=>(n.set(i,e),e))},handleChatModelStart(e,r,i,a,o,s,l,u){let c=function(e,t,r,n,i){let a=lg(i?.ls_provider??e.id?.[2],n?.model??i?.ls_model_name??"unknown",e,n,i);if(r&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:r}=ls(lm(t.flat()));e&&ll(a,sD,e),ll(a,sL,Array.isArray(r)?r.length:0),ll(a,sU,lc(lt(r)))}return a}(e,r,t,lh(s),l),d=c[sE],p=c[sx];nf({name:`${p} ${d}`,op:"gen_ai.chat",attributes:{...c,[em.uT]:"gen_ai.chat"}},e=>(n.set(i,e),e))},handleLLMEnd(e,t,a,o,s){let l=n.get(t);if(l?.isRecording()){let n=function(e,t){if(!e)return;let r={};if(Array.isArray(e.generations)){let i=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);i.length>0&&ll(r,sw,lc(i));var n=e.generations;let a=[];for(let e of n.flat()){let t=e.message?.content;if(Array.isArray(t))for(let e of t)"tool_use"===e.type&&a.push(e)}if(a.length>0&&ll(r,s$,lc(a)),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&ll(r,sB,lc(t))}}!function(e,t){if(!e)return;let r=e.tokenUsage,n=e.usage;if(r)lu(t,sP,r.promptTokens),lu(t,sk,r.completionTokens),lu(t,sM,r.totalTokens);else if(n){lu(t,sP,n.input_tokens),lu(t,sk,n.output_tokens);let e=Number(n.input_tokens),r=Number(n.output_tokens),i=(Number.isNaN(e)?0:e)+(Number.isNaN(r)?0:r);i>0&&lu(t,sM,i),void 0!==n.cache_creation_input_tokens&&lu(t,"gen_ai.usage.cache_creation_input_tokens",n.cache_creation_input_tokens),void 0!==n.cache_read_input_tokens&&lu(t,"gen_ai.usage.cache_read_input_tokens",n.cache_read_input_tokens)}}(e.llmOutput,r);let i=e.llmOutput,a=e.generations?.[0]?.[0],o=a?.message,s=i?.model_name??i?.model??o?.response_metadata?.model_name;s&&ll(r,sN,s);let l=i?.id??o?.id;l&&ll(r,sC,l);let u=i?.stop_reason??o?.response_metadata?.finish_reason;return u&&ll(r,"gen_ai.response.stop_reason",lc(u)),r}(e,r);n&&l.setAttributes(n),i(t)}},handleLLMError(e,t){let r=n.get(t);r?.isRecording()&&(r.setStatus({code:no.TJ,message:"llm_error"}),i(t)),(0,X.Cp)(e,{mechanism:{handled:!1,type:`${sK}.llm_error_handler`}})},handleChainStart(e,r,i,a,o,s,l,u){let c=u||e.name||"unknown_chain",d={[em.JD]:"auto.ai.langchain","langchain.chain.name":c};t&&(d["langchain.chain.inputs"]=JSON.stringify(r)),nf({name:`chain ${c}`,op:"gen_ai.invoke_agent",attributes:{...d,[em.uT]:"gen_ai.invoke_agent"}},e=>(n.set(i,e),e))},handleChainEnd(e,t){let a=n.get(t);a?.isRecording()&&(r&&a.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),i(t))},handleChainError(e,t){let r=n.get(t);r?.isRecording()&&(r.setStatus({code:no.TJ,message:"chain_error"}),i(t)),(0,X.Cp)(e,{mechanism:{handled:!1,type:`${sK}.chain_error_handler`}})},handleToolStart(e,r,i,a){let o=e.name||"unknown_tool",s={[em.JD]:sK,"gen_ai.tool.name":o};t&&(s["gen_ai.tool.input"]=r),nf({name:`execute_tool ${o}`,op:"gen_ai.execute_tool",attributes:{...s,[em.uT]:"gen_ai.execute_tool"}},e=>(n.set(i,e),e))},handleToolEnd(e,t){let a=n.get(t);a?.isRecording()&&(r&&a.setAttributes({"gen_ai.tool.output":JSON.stringify(e)}),i(t))},handleToolError(e,t){let r=n.get(t);r?.isRecording()&&(r.setStatus({code:no.TJ,message:"tool_error"}),i(t)),(0,X.Cp)(e,{mechanism:{handled:!1,type:`${sK}.tool_error_handler`}})},copy:()=>a,toJSON:()=>({lc:1,type:"not_implemented",id:a.lc_id}),toJSONNotImplemented:()=>
963({lc:1,type:"not_implemented",id:a.lc_id})};return a}let ly=(e={})=>{let{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,n,i){let{maxValueLength:a}=i.getOptions();return function(e,t={},r,n,i){if(!t.originalException||!(0,e$.bJ)(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,o=function e(t,r,n){try{let i=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};for(let e of Object.keys(t)){if(-1!==i.indexOf(e))continue;let r=t[e];a[e]=(0,e$.bJ)(r)||"string"==typeof r?n?(0,eo.xv)(`${r}`,n):`${r}`:r}if(r&&void 0!==t.cause&&((0,e$.bJ)(t.cause)?a.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,n)}:a.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let r=e[t];a[t]=(0,e$.bJ)(r)?r.toString():r}}return a}catch(e){Q.T&&Y.Yz.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,n,i);if(o){let t={...e.contexts},n=(0,ew.S8)(o,r);return(0,e$.Qd)(n)&&((0,ep.my)(n,"__sentry_skip_normalization__",!0),t[a]=n),{...e,contexts:t}}return e}(e,n,t,r,a)}}},lS="flag.evaluation.";function lE(e){let t=(0,Z.o5)().getScopeData().contexts.flags,r=t?t.values:[];return r.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function lb(e,t,r=100){let n=(0,Z.o5)().getScopeData().contexts;n.flags||(n.flags={values:[]}),function(e,t,r,n){if("boolean"!=typeof r)return;if(e.length>n){Q.T&&Y.Yz.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${n}`);return}let i=e.findIndex(e=>e.flag===t);-1!==i&&e.splice(i,1),e.length===n&&e.shift(),e.push({flag:t,result:r})}(n.flags.values,e,t,r)}function lT(e,t,r=10){if("boolean"!=typeof t)return;let n=(0,ej.Bk)();if(!n)return;let i=(0,ej.et)(n).data;`${lS}${e}`in i?n.setAttribute(`${lS}${e}`,t):Object.keys(i).filter(e=>e.startsWith(lS)).length<r&&n.setAttribute(`${lS}${e}`,t)}let lv=()=>({name:"FeatureFlags",processEvent:(e,t,r)=>lE(e),addFeatureFlag(e,t){lb(e,t),lT(e,t)}});function lI(e,t,r,n){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(n.setStatus({code:no.TJ,message:e.error?.type??"internal_error"}),(0,X.Cp)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),0))){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){let r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.stop_reason&&t.finishReasons.push(r.stop_reason),r.usage&&("number"==typeof r.usage.input_tokens&&(t.promptTokens=r.usage.input_tokens),"number"==typeof r.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),"number"==typeof r.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=r.usage.cache_read_input_tokens))}"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]});if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}r&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let r;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let n=t.activeToolBlocks[e.index];if(!n)return;let i=n.inputJsonParts.join("");try{r=i?JSON.parse(i):{}}catch{r={__unparsed:i}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:r}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*lA(e,t,r){let n={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let i of e)lI(i,n,r,t),yield i}finally{n.responseId&&t.setAttributes({[sC]:n.responseId}),n.responseModel&&t.setAttributes({[sN]:n.responseModel}),la(t,n.promptTokens,n.completionTokens,n.cacheCreationInputTokens,n.cacheReadInputTokens),t.setAttributes({[sF]:!0}),n.finishReasons.length>0&&t.setAttributes({[sw]:JSON.stringify(n.finishReasons)}),r&&n.responseTexts.length>0&&t.setAttributes({[sB]:n.responseTexts.join("")}),r&&n.toolCalls.length>0&&t.setAttributes({[s$]:JSON.stringify(n.toolCalls)}),t.end()}}let lR=["messages.create","messages.stream","messages.countTokens","models.get","completions.
963create","models.retrieve","beta.messages.create"];function lO(e,t){!function(e,t){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:r,filteredMessages:n}=ls(t);r&&e.setAttributes({[sD]:r});let i=Array.isArray(n)?n.length:1;e.setAttributes({[sU]:lo(n),[sL]:i})}(e,function(e){let{system:t,messages:r,input:n}=e,i="string"==typeof t?[{role:"system",content:e.system}]:[],a=Array.isArray(n)?n:null!=n?[n]:void 0,o=Array.isArray(r)?r:null!=r?[r]:[];return[...i,...a??o]}(t)),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function lw(e,t,r){throw(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:r}}}),t.isRecording()&&(t.setStatus({code:no.TJ,message:"internal_error"}),t.end()),e}function lN(e,t){let r=!!(0,Z.KU)()?.getOptions().sendDefaultPii;return function e(t,r="",n){return new Proxy(t,{get(t,i){let a=t[i],o=li(r,String(i));return"function"==typeof a&&lR.includes(o)?new Proxy(a,{apply(e,r,i){let s=function(e,t){let r={[sS]:"anthropic",[sx]:lr(t),[em.JD]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(r[sj]=JSON.stringify(t.tools)),r[sE]=t.model??"unknown","temperature"in t&&(r[sT]=t.temperature),"top_p"in t&&(r[sR]=t.top_p),"stream"in t&&(r[sb]=t.stream),"top_k"in t&&(r[sO]=t.top_k),"frequency_penalty"in t&&(r[sI]=t.frequency_penalty),"max_tokens"in t&&(r[sv]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?r[sE]=e[0]:r[sE]="unknown";return r}(i,o),l=s[sE]??"unknown",u=lr(o),c="object"==typeof i[0]?i[0]:void 0,d=!!c?.stream,p="messages.stream"===o;if(d||p){let r,l;return r=s[sE]??"unknown",l={name:`${u} ${r}`,op:ln(o),attributes:s},d&&!p?nf(l,async e=>{try{n.recordInputs&&c&&lO(e,c);let r=await a.apply(t,i);return lA(r,e,n.recordOutputs??!1)}catch(t){return lw(t,e,o)}}):nf(l,r=>{try{var a,s;let o;return n.recordInputs&&c&&lO(r,c),a=e.apply(t,i),s=n.recordOutputs??!1,o={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}},a.on("streamEvent",e=>{lI(e,o,s,r)}),a.on("message",()=>{r.isRecording()&&(o.responseId&&r.setAttributes({[sC]:o.responseId}),o.responseModel&&r.setAttributes({[sN]:o.responseModel}),la(r,o.promptTokens,o.completionTokens,o.cacheCreationInputTokens,o.cacheReadInputTokens),r.setAttributes({[sF]:!0}),o.finishReasons.length>0&&r.setAttributes({[sw]:JSON.stringify(o.finishReasons)}),s&&o.responseTexts.length>0&&r.setAttributes({[sB]:o.responseTexts.join("")}),s&&o.toolCalls.length>0&&r.setAttributes({[s$]:JSON.stringify(o.toolCalls)}),r.end())}),a.on("error",e=>{(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),r.isRecording()&&(r.setStatus({code:no.TJ,message:"stream_error"}),r.end())}),a}catch(e){return lw(e,r,o)}})}return np({name:`${u} ${l}`,op:ln(o),attributes:s},r=>(n.recordInputs&&c&&lO(r,c),nu(()=>e.apply(t,i),e=>{(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:o}}})},()=>{},e=>(function(e,t,r){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return void(t.error&&(e.setStatus({code:no.TJ,message:t.error.type||"internal_error"}),(0,X.Cp)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}})));r&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[sB]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let r=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&r.push(e);r.length>0&&e.setAttributes({[s$]:JSON.stringify(r)})}"completion"in t&&e.setAttributes({[sB]:t.completion}),"input_tokens"in t&&e.setAttributes({[sB]:JSON.stringify(t.input_tokens)})}(e,t),"id"in t&&"model"in t&&(e.setAttributes({[sC]:t.id,[sN]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[sV]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[sV]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&la(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}})(r,e,n.recordOutputs))))}}):"function"==typeof a?a.bind(t):a&&"object"==typeof a?e(a,o,n):a}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}let lC=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],lP="chats.create";async function*lk(e,t,r){let n={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let i of e)!function(e,t,r,n){if(!(!e||function(e,t){let r=e?.promptFeedback;if(r?.blockReason){let e=r.blockReasonMessage??r.blockReason;return t.setStatus({code:no.TJ,message:`Content blocked: ${e}`}),(0,X.Cp)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,n))){let n;for(let i of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(n=e.usageMetadata)&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount)),Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(i?.finishReason&&!t.finishReasons.includes(i.finishReason)&&t.finishReasons.push(i.finishReason),i?.content?.parts??[]))r&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(i,n,r,t),yield i}finally{let e={[sF]:!0};n.responseId&&(e[sC]=n.responseId),n.responseModel&&(e[sN]=n.responseModel),void 0!==n.promptTokens&&(e[
963sP]=n.promptTokens),void 0!==n.completionTokens&&(e[sk]=n.completionTokens),void 0!==n.totalTokens&&(e[sM]=n.totalTokens),n.finishReasons.length&&(e[sw]=JSON.stringify(n.finishReasons)),r&&n.responseTexts.length&&(e[sB]=n.responseTexts.join("")),r&&n.toolCalls.length&&(e[s$]=JSON.stringify(n.toolCalls)),t.setAttributes(e),t.end()}}function lM(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>lM(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}function lx(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function lL(e,t){let r=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&r.push(...lM(t.config.systemInstruction,"system")),"history"in t&&r.push(...lM(t.history,"user")),"contents"in t&&r.push(...lM(t.contents,"user")),"message"in t&&r.push(...lM(t.message,"user")),Array.isArray(r)&&r.length){let{systemInstructions:t,filteredMessages:n}=ls(r);t&&e.setAttribute(sD,t);let i=Array.isArray(n)?n.length:0;e.setAttributes({[sL]:i,[sU]:JSON.stringify(lt(n))})}}function lU(e,t,r,n){let i=t===lP;return new Proxy(e,{apply(e,a,o){let s=o[0],l=function(e,t,r){let n={[sS]:"google_genai",[sx]:lr(e),[em.JD]:"auto.ai.google_genai"};if(t){if(n[sE]=lx(t,r),"config"in t&&"object"==typeof t.config&&t.config){let e,r=t.config;if(Object.assign(n,(e={},"temperature"in r&&"number"==typeof r.temperature&&(e[sT]=r.temperature),"topP"in r&&"number"==typeof r.topP&&(e[sR]=r.topP),"topK"in r&&"number"==typeof r.topK&&(e[sO]=r.topK),"maxOutputTokens"in r&&"number"==typeof r.maxOutputTokens&&(e[sv]=r.maxOutputTokens),"frequencyPenalty"in r&&"number"==typeof r.frequencyPenalty&&(e[sI]=r.frequencyPenalty),"presencePenalty"in r&&"number"==typeof r.presencePenalty&&(e[sA]=r.presencePenalty),e)),"tools"in r&&Array.isArray(r.tools)){let e=r.tools.flatMap(e=>e.functionDeclarations);n[sj]=JSON.stringify(e)}}}else n[sE]=lx({},r);return n}(t,s,r),u=l[sE]??"unknown",c=lr(t);return t.includes("Stream")?nf({name:`${c} ${u}`,op:ln(t),attributes:l},async i=>{try{n.recordInputs&&s&&lL(i,s);let t=await e.apply(r,o);return lk(t,i,!!n.recordOutputs)}catch(e){throw i.setStatus({code:no.TJ,message:"internal_error"}),(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),i.end(),e}}):np({name:i?`${c} ${u} create`:`${c} ${u}`,op:ln(t),attributes:l},a=>(n.recordInputs&&s&&lL(a,s),nu(()=>e.apply(r,o),e=>{(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{i||function(e,t,r){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(sN,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let r=t.usageMetadata;"number"==typeof r.promptTokenCount&&e.setAttributes({[sP]:r.promptTokenCount}),"number"==typeof r.candidatesTokenCount&&e.setAttributes({[sk]:r.candidatesTokenCount}),"number"==typeof r.totalTokenCount&&e.setAttributes({[sM]:r.totalTokenCount})}if(r&&Array.isArray(t.candidates)&&t.candidates.length>0){let r=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);r.length>0&&e.setAttributes({[sB]:r.join("")})}if(r&&t.functionCalls){let r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[s$]:JSON.stringify(r)})}}}(a,e,n.recordOutputs)})))}})}function lD(e,t){let r=!!(0,Z.KU)()?.getOptions().sendDefaultPii;return function e(t,r="",n){return new Proxy(t,{get:(t,i,a)=>{let o=Reflect.get(t,i,a),s=li(r,String(i));if("function"==typeof o&&function(e){if(lC.includes(e))return!0;let t=e.split(".").pop();return lC.includes(t)}(s)){if(s===lP){let r=lU(o,s,t,n);return function(...t){let i=r(...t);return i&&"object"==typeof i?e(i,"chat",n):i}}return lU(o,s,t,n)}return"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,s,n):o}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}let lB="auto.ai.langgraph";function lj(e,t){var r,n;return r=e.compile.bind(e),n=t||{},e.compile=new Proxy(r,{apply:(e,t,r)=>np({op:"gen_ai.create_agent",name:"create_agent",attributes:{[em.JD]:lB,[em.uT]:"gen_ai.create_agent",[sx]:"create_agent"}},i=>{try{var a,o,s,l;let u=Reflect.apply(e,t,r),c=r.length>0?r[0]:{};c?.name&&"string"==typeof c.name&&(i.setAttribute(sG,c.name),i.updateName(`create_agent ${c.name}`));let d=u.invoke;return d&&"function"==typeof d&&(a=d.bind(u),o=u,s=c,l=n,u.invoke=new Proxy(a,{apply:(e,t,r)=>np({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[em.JD]:lB,[em.uT]:"gen_ai.invoke_agent",[sx]:"invoke_agent"}},async n=>{try{let i=s?.name;i&&"string"==typeof i&&(n.setAttribute("gen_ai.pipeline.name",i),n.setAttribute(sG,i),n.updateName(`invoke_agent ${i}`));let a=r.length>1?r[1]:void 0,u=a?.configurable,c=u?.thread_id;c&&"string"==typeof c&&n.setAttribute(sH,c);let d=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}(o);d&&n.setAttribute(sj,JSON.stringify(d));let p=l.recordInputs,f=l.recordOutputs,h=r.length>0?r[0]?.messages??[]:[];if(h&&p){let e=lm(h),{systemInstructions:t,filteredMessages:r}=ls(e);t&&n.setAttribute(sD,t);let i=lt(r),a=Array.isArray(r)?r.length:0;n.setAttributes({[sU]:JSON.stringify(i),[sL]:a})}let m=await Reflect.apply(e,t,r);return f&&function(e,t,r){let n=r?.messages;if(!n||!Array.isArray(n))return;let i=t?.length??0,a=n.length>i?n.slice(i):[];if(0===a.length)return;let o=function(e){if(!e||0===e.length)return null;let t=[];for(let r of e)if(r&&"object"==typeof r){let e=r.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(a);o&&e.setAttribute(s$,JSON.stringify(o));let s=lm(a);e.setAttribute(sB,JSON.stringify(s));let l=0,u=0,c=0;for(let t of a){let r=function(e){let t=0,r=0,n=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let i=e.usage_metadata;return"number"==typeof i.input_tokens&&(t=i.input_tokens),"number"==typeof i.output_tokens&&(r=i.output_tokens),"number"==typeof i.total_tokens&&(n=i.total_tokens),{inputTokens:t,outputTokens:r,totalTokens:n}}if(e.response_metadata&&"object"==typeof e.response_metadata){let i=e.response_metadata;if(i.tokenUsage&&"object"==typeof i.tokenUsage){let e=i.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(r=e.completionTokens),"number"==typeof e.totalTokens&&(n=e.totalTokens)}}return{inputTokens:t,outputTokens:r,totalTokens:n}}(t);l+=r.inputTokens,u+=r.outputTokens,c+=r.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let r=t.response_metadata;r.model_name&&"string"==typeof r.model_name&&e.setAttribute(sN,r.model_name),r.f
963inish_reason&&"string"==typeof r.finish_reason&&e.setAttribute(sw,[r.finish_reason])}}(e,t)}l>0&&e.setAttribute(sP,l),u>0&&e.setAttribute(sk,u),c>0&&e.setAttribute(sM,c)}(n,h??null,m),m}catch(e){throw n.setStatus({code:no.TJ,message:"internal_error"}),(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})})),u}catch(e){throw i.setStatus({code:no.TJ,message:"internal_error"}),(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}),e}let lF=["responses.create","chat.completions.create","embeddings.create","conversations.create"],l$=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];function lG(e){return e.includes("chat.completions")||e.includes("responses")?sJ:e.includes("embeddings")?sY:e.includes("conversations")?sJ:e.split(".").pop()||"unknown"}function lH(e,t,r,n){void 0!==t&&e.setAttributes({"openai.usage.prompt_tokens":t,[sP]:t}),void 0!==r&&e.setAttributes({"openai.usage.completion_tokens":r,[sk]:r}),void 0!==n&&e.setAttributes({[sM]:n})}function lW(e,t,r,n){e.setAttributes({[sW]:t,[sC]:t}),e.setAttributes({[sz]:r,[sN]:r}),e.setAttributes({[sq]:new Date(1e3*n).toISOString()})}async function*lz(e,t,r){let n={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let i of e){if(null!==i&&"object"==typeof i&&"object"in i&&"chat.completion.chunk"===i.object){for(let e of(n.responseId=i.id??n.responseId,n.responseModel=i.model??n.responseModel,n.responseTimestamp=i.created??n.responseTimestamp,i.usage&&(n.promptTokens=i.usage.prompt_tokens,n.completionTokens=i.usage.completion_tokens,n.totalTokens=i.usage.total_tokens),i.choices??[]))r&&(e.delta?.content&&n.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let r of e){let e=r.index;if(void 0!==e&&r.function)if(e in t.chatCompletionToolCalls){let n=t.chatCompletionToolCalls[e];r.function.arguments&&n?.function&&(n.function.arguments+=r.function.arguments)}else t.chatCompletionToolCalls[e]={...r,function:{name:r.function.name,arguments:r.function.arguments||""}}}}(e.delta.tool_calls,n)),e.finish_reason&&n.finishReasons.push(e.finish_reason)}else null!==i&&"object"==typeof i&&"type"in i&&"string"==typeof i.type&&i.type.startsWith("response.")&&function(e,t,r,n){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");if(e instanceof Error){n.setStatus({code:no.TJ,message:"internal_error"}),(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!l$.includes(e.type))return t.eventTypes.push(e.type);if(r&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))return t.responseTexts.push(e.delta);if("response"in e){let{response:n}=e;t.responseId=n.id??t.responseId,t.responseModel=n.model??t.responseModel,t.responseTimestamp=n.created_at??t.responseTimestamp,n.usage&&(t.promptTokens=n.usage.input_tokens,t.completionTokens=n.usage.output_tokens,t.totalTokens=n.usage.total_tokens),n.status&&t.finishReasons.push(n.status),r&&n.output_text&&t.responseTexts.push(n.output_text)}}}(i,n,r,t);yield i}}finally{lW(t,n.responseId,n.responseModel,n.responseTimestamp),lH(t,n.promptTokens,n.completionTokens,n.totalTokens),t.setAttributes({[sF]:!0}),n.finishReasons.length&&t.setAttributes({[sw]:JSON.stringify(n.finishReasons)}),r&&n.responseTexts.length&&t.setAttributes({[sB]:n.responseTexts.join("")});let e=[...Object.values(n.chatCompletionToolCalls),...n.responsesApiToolCalls];e.length>0&&t.setAttributes({[s$]:JSON.stringify(e)}),t.end()}}function lq(e,t,r){if(r===sY&&"input"in t){let r=t.input;if(null==r||"string"==typeof r&&0===r.length||Array.isArray(r)&&0===r.length)return;e.setAttribute("gen_ai.embeddings.input","string"==typeof r?r:JSON.stringify(r));return}let n="input"in t?t.input:"messages"in t?t.messages:void 0;if(!n||Array.isArray(n)&&0===n.length)return;let{systemInstructions:i,filteredMessages:a}=ls(n);i&&e.setAttribute(sD,i);let o=lo(a);e.setAttribute(sU,o),Array.isArray(a)?e.setAttribute(sL,a.length):e.setAttribute(sL,1)}async function lJ(e,t){let r=e.catch(e=>{throw(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai"}}),e}),n=await t,i=await r;return i&&"object"==typeof i&&"data"in i?{...i,data:n}:n}function lY(e,t){return(0,e$.Qg)(e)?new Proxy(e,{get(e,r){let n=r in Promise.prototype||r===Symbol.toStringTag?t:e,i=Reflect.get(n,r);return"withResponse"===r&&"function"==typeof i?function(){return lJ(i.call(e),t)}:"function"==typeof i?i.bind(n):i}}):t}function lV(e,t){let r=!!(0,Z.KU)()?.getOptions().sendDefaultPii;return function e(t,r="",n){return new Proxy(t,{get(t,i){var a;let o=t[i],s=(a=String(i),r?`${r}.${a}`:a);return"function"==typeof o&&lF.includes(s)?function(...e){let r,i=function(e,t){let r={[sS]:"openai",[sx]:lG(t),[em.JD]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t,n,i=e[0],a=function(e){let t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){Q.T&&Y.Yz.error("Failed to serialize OpenAI tools:",e);return}}(i);a&&(r[sj]=a),Object.assign(r,(t={[sE]:i.model??"unknown"},"temperature"in i&&(t[sT]=i.temperature),"top_p"in i&&(t[sR]=i.top_p),"frequency_penalty"in i&&(t[sI]=i.frequency_penalty),"presence_penalty"in i&&(t[sA]=i.presence_penalty),"stream"in i&&(t[sb]=i.stream),"encoding_format"in i&&(t["gen_ai.request.encoding_format"]=i.encoding_format),"dimensions"in i&&(t["gen_ai.request.dimensions"]=i.dimensions),(n="conversation"in i&&"string"==typeof i.conversation?i.conversation:"previous_response_id"in i&&"string"==typeof i.previous_response_id?i.previous_response_id:void 0)&&(t[sH]=n),t))}else r[sE]="unknown";return r}(e,s),a=i[sE]||"unknown",l=lG(s),u=e[0],c=u&&"object"==typeof u&&!0===u.stream,d={name:`${l} ${a}`,op:`gen_ai.${lG(s)}`,attributes:i};if(c){let r,i=nf(d,i=>(r=o.apply(t,e),n.recordInputs&&u&&lq(i,u,l),(async()=>{try{let e=await r;return lz(e,i,n.recordOutputs??!1)}catch(e){throw i.setStatus({code:no.TJ,message:"internal_error"}),(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:s}}}),i.end(),e}})()));return lY(r,i)}let p=np(d,i=>(r=o.apply(t,e),n.recordInputs&&u&&lq(i,u,l),r.then(e=>(!function(e,t,r){if(t&&"object"==typeof t)if(null!==t&&"object"==typeof t&&"object"in t&&"chat.completion"===t.object){if(lW(e,t.id,t.model,t.created),t.usage&&lH(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){let n=t.choices.map(e=>e.finish_reason).filter(e=>null!==e);if(n.length>0&&e.setAttributes({[sw]:JSON.stringify(n)}),r){let r=t.choices.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();r.length>0&&e.setAttributes({[s$]:JSON.stringify(r)})}}if(r&&t.choices?.length){let r=t.choices.map(e=>e.message?.content||"");e.setAttributes({[sB]:JSON.stringify(r)})}}else if(null!==t&&"object"==typeof t&&"object"in t&&"response"===t.object){if(lW(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[sw]:JSON.stringify([t.status])}),t.usage&&lH(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),r&&Array.isArray(t.output)&&t.output.length>
9630){let r=t.output.filter(e=>"object"==typeof e&&null!==e&&"function_call"===e.type);r.length>0&&e.setAttributes({[s$]:JSON.stringify(r)})}r&&t.output_text&&e.setAttributes({[sB]:t.output_text})}else null!==t&&"object"==typeof t&&"object"in t&&"list"===t.object&&"string"==typeof t.model&&t.model.toLowerCase().includes("embedding")?(e.setAttributes({[sz]:t.model,[sN]:t.model}),t.usage&&lH(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)):null!==t&&"object"==typeof t&&"object"in t&&"conversation"===t.object&&function(e,t){let{id:r,created_at:n}=t;e.setAttributes({[sW]:r,[sC]:r,[sH]:r}),n&&e.setAttributes({[sq]:new Date(1e3*n).toISOString()})}(e,t)}(i,e,n.recordOutputs),e),e=>{throw(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:s}}}),e})));return lY(r,p)}:"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,s,n):o}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}let lK=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],lX=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],lQ={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},lZ=["select","insert","upsert","update","delete"];function l0(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function l1(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function l2(e,t=!1){return new Proxy(e,{apply:(r,n,i)=>np({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[em.JD]:"auto.db.supabase",[em.uT]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(r,n,i).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:no.TJ}),(0,X.Cp)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:no.F3}),e.end(),t)).catch(t=>{throw e.setStatus({code:no.TJ}),e.end(),(0,X.Cp)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...i))})}let l3=e=>{var t;if(!e){Q.T&&Y.Yz.warn("Supabase integration was not installed because no Supabase client was provided.");return}l1((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,r){let n=Reflect.apply(e,t,r);return function(e){for(let t of lZ)l1(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,r,n){let i=Reflect.apply(e,r,n),a=i.constructor;return Q.T&&Y.Yz.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),l1(a.prototype.then)||(a.prototype.then=new Proxy(a.prototype.then,{apply(e,t,r){let n=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(t.Prefer?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(t.method,t.headers);if(!lZ.includes(n)||!t?.url?.pathname||"string"!=typeof t.url.pathname)return Reflect.apply(e,t,r);let i=t.url.pathname.split("/"),a=i.length>0?i[i.length-1]:"",o=[];for(let[e,r]of t.url.searchParams.entries())o.push(function(e,t){let r;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[n,...i]=t.split(".");return r=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&lQ[n]||"filter",`${r}(${e}, ${i.join(".")})`}(e,r));let s=Object.create(null);if((0,e$.Qd)(t.body))for(let[e,r]of Object.entries(t.body))s[e]=r;let l=`${"select"===n?"":`${n}${s?"(...) ":""}`}${o.join(" ")} from(${a})`,u={"db.table":a,"db.schema":t.schema,"db.url":t.url.origin,"db.sdk":t.headers["X-Client-Info"],"db.system":"postgresql","db.operation":n,[em.JD]:"auto.db.supabase",[em.uT]:"db"};return o.length&&(u["db.query"]=o),Object.keys(s).length&&(u["db.body"]=s),np({name:l,attributes:u},i=>Reflect.apply(e,t,[]).then(e=>{if(i&&(e&&"object"==typeof e&&"status"in e&&(0,no.N8)(i,e.status||500),i.end()),e.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let r={};o.length&&(r.query=o),Object.keys(s).length&&(r.body=s),(0,X.Cp)(t,e=>(e.addEventProcessor(e=>((0,ea.M6)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",r),e))}let t={type:"supabase",category:`db.${n}`,message:l},r={};return o.length&&(r.query=o),Object.keys(s).length&&(r.body=s),Object.keys(r).length&&(t.data=r),(0,t1.Z)(t),e},e=>
963{throw i&&((0,no.N8)(i,500),i.end()),e}).then(...r))}}),l0(a.prototype.then)),i}}),l0(e.prototype[t]))}(n.constructor),n}}),l0(t.prototype.from));let r=e.auth;if(!(!r||l1(e.auth))){for(let t of lK){let n=r[t];n&&"function"==typeof e.auth[t]&&(e.auth[t]=l2(n))}for(let t of lX){let n=r.admin[t];n&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=l2(n,!0))}l0(e.auth)}},l5=e=>{let t;return t=e.supabaseClient,{setupOnce(){l3(t)},name:"Supabase"}};function l6(e,...t){let r=new String(String.raw(e,...t));return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r}let l4=l6;function l8(e,t,r,n,i){eV({level:e,message:t,attributes:r,severityNumber:i},n)}function l7(e,t,{scope:r}={}){l8("trace",e,t,r)}function l9(e,t,{scope:r}={}){l8("debug",e,t,r)}function ue(e,t,{scope:r}={}){l8("info",e,t,r)}function ut(e,t,{scope:r}={}){l8("warn",e,t,r)}function ur(e,t,{scope:r}={}){l8("error",e,t,r)}function un(e,t,{scope:r}={}){l8("fatal",e,t,r)}function ui(e,t,r,n){!function(e,t){let r=t?.scope??(0,Z.o5)(),n=t?.captureSerializedMetric??eZ,i=r?.getClient()??(0,Z.KU)();if(!i){Q.T&&Y.Yz.warn("No client available to capture metric.");return}let{_experiments:a,enableMetrics:o,beforeSendMetric:s}=i.getOptions();if(!(o??a?.enableMetrics??!0)){Q.T&&Y.Yz.warn("metrics option not enabled, metric will not be captured.");return}let{user:l,attributes:u}=(0,eG.Om)((0,Z.rm)(),r),c=function(e,t,r){let{release:n,environment:i}=t.getOptions(),a={...e.attributes};eQ(a,"user.id",r.id,!1),eQ(a,"user.email",r.email,!1),eQ(a,"user.name",r.username,!1),eQ(a,"sentry.release",n),eQ(a,"sentry.environment",i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};eQ(a,"sentry.sdk.name",o),eQ(a,"sentry.sdk.version",s);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return eQ(a,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&eQ(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){Q.T&&Y.Yz.log("`beforeSendMetric` returned `null`, will not send metric.");return}let f=function(e,t,r,n){let[,i]=ez(t,r),a=(0,eH.f)(r),o=a?a.spanContext().traceId:i?.trace_id,s=a?a.spanContext().spanId:void 0;return{timestamp:(0,eW.zf)(),trace_id:o??"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...eF(n),...eF(e.attributes,"skip-undefined")}}}(p,i,r,u);Q.T&&Y.Yz.log("[Metric]",f),n(i,f),i.emit("afterCaptureMetric",p)}({type:e,name:t,value:r,unit:n?.unit,attributes:n?.attributes},{scope:n?.scope})}function ua(e,t=1,r){ui("counter",e,t,r)}function uo(e,t,r){ui("gauge",e,t,r)}function us(e,t,r){ui("distribution",e,t,r)}let ul=new Map,uu=new Set;function uc(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let r=function(e,t){if(J.O._sentryModuleMetadata)for(let t of Object.keys(J.O._sentryModuleMetadata)){let r=J.O._sentryModuleMetadata[t];if(!uu.has(t)){for(let n of(uu.add(t),e(t).reverse()))if(n.filename){ul.set(n.filename,r);break}}}return ul.get(t)}(e,t.filename);r&&(t.module_metadata=r)})})}function ud(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let up=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{eC(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(ud(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||uc(e.getOptions().stackParser,t)})}}),uf=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{eC(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(ud(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||uc(e.getOptions().stackParser,t)})},processEvent(t){let r=function(e,t){let r=(0,eg.RV)(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t){if(0!==t||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(ug))return!1;if(e.pre_context){let t=e.pre_context.length;for(let r=0;r<t;r++)if(e.pre_context[r]?.includes(um))return!0}return!1}(e,r))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(uh)).map(e=>e.slice(uh.length)):[])}(t,e.ignoreSentryInternalFrames);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}}),uh="_sentryBundlerPluginAppKey:",um="Attempt to invoke user-land function",ug="fn.apply(this, wrappedArguments)";function u_(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}let uy=(e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(r,n)=>(function(e,t=!1,r,n){var i;if(!r.exception?.values||!n.originalException||(i=n.originalException,!((0,e$.bJ)(i)&&"ZodError"===i.name&&Array.isArray(i.issues)))||0===n.originalException.issues.length)return r;try{let i=(t?n.originalException.issues:n.originalException.issues.slice(0,e)).map(u_);return t&&(Array.isArray(n.attachments)||(n.attachments=[]),n.attachments.push({f
963ilename:"zod_issues.json",data:JSON.stringify({issues:i})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:function(e){let t=new Set;for(let r of e.issues){let e=r.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let r=Array.from(t);if(0===r.length){let t="variable";if(e.issues.length>0){let r=e.issues[0];void 0!==r&&"expected"in r&&"string"==typeof r.expected&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,eo.xv)(r.join(", "),100)}`}(n.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
964${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,r,n)}},uS={startProfiler:function(){let e=(0,Z.KU)();!e||e.getIntegrationByName("BrowserProfiling")&&e.emit("startUIProfiler")},stopProfiler:function(){let e=(0,Z.KU)();!e||e.getIntegrationByName("BrowserProfiling")&&e.emit("stopUIProfiler")}};function uE(e,{metadata:t,tunnel:r,dsn:n}){return eN({event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:(0,eT.SB)(n)}},[[{type:"user_report"},e]])}function ub(e={}){let t=tx.document,r=t?.head||t?.body;if(!r)return;let n=(0,Z.o5)(),i=(0,Z.KU)(),a=i?.getDsn();if(!a)return;let o={...e,user:{...n.getUser(),...e.user},eventId:e.eventId||(0,X.Q)()},s=tx.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,t){let r=(0,eT.AD)(e);if(!r)return"";let n=`${ev(r)}embed/error-page/`,i=`dsn=${(0,eT.SB)(r)}`;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`${n}?${i}`}(a,o);let{onLoad:l,onClose:u}=o;if(l&&(s.onload=l),u){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{tx.removeEventListener("message",e)}};tx.addEventListener("message",e)}r.appendChild(s)}let uT=J.O,uv=new WeakMap,uI=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function r(e){if(uv.has((0,Z.KU)()))for(let t of e)(0,Z.v4)(e=>{e.setExtra("url",t.url);let r=`ReportingObserver [${t.type}]`,n="No details available";if(t.body){let r={};for(let e in t.body)r[e]=t.body[e];if(e.setExtra("body",r),"crash"===t.type){let e=t.body;n=[e.crashId||"",e.reason||""].join(" ").trim()||n}else n=t.body.message||n}(0,X.wd)(`${r}: ${n}`)})}return{name:"ReportingObserver",setupOnce(){"ReportingObserver"in tq&&new uT.ReportingObserver(r,{buffered:!0,types:t}).observe()},setup(e){uv.set(e,!0)}}};function uA(e,t){var r,n,i,a;let o,s=t?.getDsn(),l=t?.getOptions().tunnel;return r=e,n=s,!(!(o=t6(r))||t5(o))&&!!n&&o.host.includes(n.host)&&/(^|&|\?)sentry_key=/.test(o.search)||(i=e,!!(a=l)&&uR(i)===uR(a))}function uR(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let uO=(e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var r,n,i,a;r=e,n=t,tY()&&tV(e=>{if((0,Z.KU)()!==r)return;let{response:t,args:i,error:a,virtualError:o}=e,[s,l]=i;t&&function(e,t,r,n,i){if(uC(e,r.status,r.url)){var a,o;let e,s,l,u,c=(a=t,!(o=n)&&a instanceof Request||a instanceof Request&&a.bodyUsed?a:new Request(a,o));uk()&&([e,l]=uw("Cookie",c),[s,u]=uw("Set-Cookie",r));let d=uP({url:c.url,method:c.method,status:r.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:u,error:i,type:"fetch"});(0,X.r)(d)}}(n,s,t,l,a||o)},!1),i=e,a=t,"XMLHttpRequest"in J.O&&ri(e=>{if((0,Z.KU)()!==i)return;let{error:t,virtualError:r}=e,n=e.xhr,o=n[rn];if(!o)return;let{method:s,request_headers:l}=o;try{!function(e,t,r,n,i){if(uC(e,t.status,t.responseURL)){let e,a,o;if(uk()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(a=uN(e))}catch{}try{let e;o=(e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>
964{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{}):{}}catch{}e=n}let s=uP({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:a,error:i,type:"xhr"});(0,X.r)(s)}}(a,n,s,l,t||r)}catch(e){}})}}};function uw(e,t){var r;let n,i,a=(r=t.headers,n={},r.forEach((e,t)=>{n[t]=e}),n);try{let t=a[e]||a[e.toLowerCase()]||void 0;t&&(i=uN(t))}catch{}return[a,i]}function uN(e){return e.split("; ").reduce((e,t)=>{let[r,n]=t.split("=");return r&&n&&(e[r]=n),e},{})}function uC(e,t,r){var n,i;return n=e.failedRequestStatusCodes,n.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(i=e.failedRequestTargets,i.some(e=>"string"==typeof e?r.includes(e):e.test(r)))&&!uA(r,(0,Z.KU)())}function uP(e){let t=(0,Z.KU)(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,n=r&&t?t.getOptions().stackParser(r,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,a={message:i,exception:{values:[{type:"Error",value:i,stacktrace:n?{frames:n}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,ea.M6)(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function uk(){let e=(0,Z.KU)();return!!e&&!!e.getOptions().sendDefaultPii}let uM=J.O,ux=(e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let r=uM.document,n=uM.location&&t8(uM.location.href);if(!r||!n)return e;let i=e.exception?.values;if(!i?.length)return e;let a=r.documentElement.innerHTML;if(!a)return e;let o=["<!DOCTYPE html>","<html>",...a.split("\n"),"</html>"];return i.forEach(e=>{let r=e.stacktrace;r?.frames&&(r.frames=r.frames.map(e=>{var r,i,a,s;return r=e,i=o,a=n,s=t,r.filename===a&&r.lineno&&i.length&&(0,ea.db)(i,r,s),r}))}),e})(e,t)}};function uL(e){if(uj(e))return`persisted ${e.operationName}`;if(uB(e)){let{query:t,operationName:r}=e,{operationName:n=r,operationType:i}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let r=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return r?{operationType:r[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return n?`${i} ${n}`:`${i}`}return"unknown"}function uU(e){let t;if("xhr"in e){let r=e.xhr[rn];t=r&&ij(r.body)[0]}else t=ij(iF(e.input))[0];return t}function uD(e){return"object"==typeof e&&null!==e}function uB(e){return uD(e)&&"string"==typeof e.query}function uj(e){return uD(e)&&"string"==typeof e.operationName&&uD(e.extensions)&&uD(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function uF(e){try{let t=JSON.parse(e);if(uB(t)||uj(t))return t;return}catch{return}}let u$=e=>({name:"GraphQLClient",setup(t){var r,n,i,a;r=t,n=e,r.on("beforeOutgoingRequestSpan",(e,t)=>{let r=(0,ej.et)(e).data||{};if("http.client"!==r[em.uT])return;let i=r[em.c9]||r["http.url"],a=r[em.Ts]||r["http.method"];if(!(0,e$.Kg)(i)||!(0,e$.Kg)(a))return;let{endpoints:o}=n,s=(0,eo.Xr)(i,o),l=uU(t);if(s&&l){let t=uF(l);if(t){let r=uL(t);e.updateName(`${a} ${i} (${r})`),uB(t)&&e.setAttribute("graphql.document",t.query),uj(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),i=t,a=e,i.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:r,type:n,data:i}=e;if("http"===n&&("fetch"===r||"xhr"===r)){let e=i?.url,{endpoints:r}=a,n=(0,eo.Xr)(e,r),o=uU(t);if(n&&i&&o){let e=uF(o);if(!i.graphql&&e){let t=uL(e);i["graphql.operation"]=t,uB(e)&&(i["graphql.document"]=e.query),uj(e)&&(i["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,i["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}),uG=J.O,uH="sentryReplaySession",uW="Unable to send Replay";var uz=Object.defineProperty,uq=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?uz(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},uJ=((k=uJ||{})[k.Document=0]="Document",k[k.DocumentType=1]="DocumentType",k[k.Element=2]="Element",k[k.Text=3]="Text",k[k.CDATA=4]="CDATA",k[k.Comment=5]="Comment",k);function uY(e){let t=e?.host;return t?.shadowRoot===e}function uV(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function uK(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,uX).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function uX(e){let t;if("styleSheet"in e)try{t=uK(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,i=n[r],a=n.getPropertyPriority(i);t+=`${i}:${n.getPropertyValue(i)}${a?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class uQ{constructor(){uq(this,"idNodeMap",new Map),uq(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
964this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function uZ({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function u0({isMasked:e,element:t,value:r,maskInputFn:n}){let i=r||"";return e?(n&&(i=n(i,t)),"*".repeat(i.length)):i}function u1(e){return e.toLowerCase()}function u2(e){return e.toUpperCase()}let u3="__rrweb_original__";function u5(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?u1(t):null}function u6(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function u4(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let u8={};function u7(e){let t=u8[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return u8[e]=n.bind(window)}function u9(...e){return u7("setTimeout")(...e)}function ce(...e){return u7("clearTimeout")(...e)}function ct(e){try{return e.contentDocument}catch(e){}}let cr=1,cn=RegExp("[^a-z0-9-_:]");function ci(){return cr++}let ca=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,co=/^(?:[a-z+]+:)?\/\//i,cs=/^www\..*/i,cl=/^(data:)([^,]*),(.*)/i;function cu(e,t){return(e||"").replace(ca,(e,r,n,i,a,o)=>{let s=n||a||o,l=r||i||"";if(!s)return e;if(co.test(s)||cs.test(s)||cl.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let u=t.split("/"),c=s.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let cc=/^[^ \t\n\r\u000c]+/,cd=/^[, \t\n\r\u000c]+/,cp=new WeakMap;function cf(e,t){return t&&""!==t.trim()?ch(e,t):t}function ch(e,t){let r=cp.get(e);if(r||(r=e.createElement("a"),cp.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function cm(e,t,r,n,i,a,o){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return cf(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return cf(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}let i=[];for(;n(cd),!(r>=t.length);){let a=n(cc);if(","===a.slice(-1))a=cf(e,a.substring(0,a.length-1)),i.push(a);else{let n="";a=cf(e,a);let o=!1;for(;;){let e=t.charAt(r);if(""===e){i.push((a+n).trim());break}if(o)")"===e&&(o=!1);else if(","===e){r+=1,i.push((a+n).trim());break}else"("===e&&(o=!0);n+=e,r+=1}}}return i.join(", ")}(e,n);if("style"===r){let t=cu(n,ch(e));return o&&o.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let i=e.slice(0,r).trim();t.has(i)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,o)),t}else if("object"===t&&"data"===r)return cf(e,n);return"function"==typeof a?a(r,n,i):n}function cg(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function c_(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:c_(e.parentNode,t,r,n+1)}function cy(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function cS(e,t,r,n,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(a){if((l=c_(o,cy(n,i)))<0)return!0;s=c_(o,cy(t,r),l>=0?l:1/0)}else{if((s=c_(o,cy(t,r)))<0)return!1;l=c_(o,cy(n,i),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!a}catch(e){}return!!a}function cE(e){return null==e?"":e.toLowerCase()}function cb(e,t){let r,{doc:n,mirror:i,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:h=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T={},inlineImages:v=!1,recordCanvas:I=!1,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:O=5e3,onBlockedImageLoad:w,onStylesheetLoad:N,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:P=()=>!1,newlyAddedElement:k=!1,ignoreCSSAttributes:M}=t,{preserveWhiteSpace:x=!0}=t,L=function(e,t){let{doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:_,maskInputFn:y,dataURLOptions:S={}
964,inlineImages:E,recordCanvas:b,keepIframeSrcFn:T,newlyAddedElement:v=!1,ignoreCSSAttributes:I}=t,A=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:uJ.Document,childNodes:[],compatMode:e.compatMode};return{type:uJ.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:uJ.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:A};case e.ELEMENT_NODE:return function(e,t){let r,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:_=!1,rootId:y,maskTextClass:S,unmaskTextClass:E,maskTextSelector:b,unmaskTextSelector:T,ignoreCSSAttributes:v}=t,I=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,a,o),A=function(e){if(e instanceof HTMLFormElement)return"form";let t=u1(e.tagName);return cn.test(t)?"div":t}(e),R={},O=e.attributes.length;for(let t=0;t<O;t++){let r=e.attributes[t];r.name&&!cg(A,r.name,r.value)&&(R[r.name]=cm(n,A,u1(r.name),r.value,e,u,v))}if("link"===A&&s){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=uK(t)),r&&(R.rel=null,R.href=null,R.crossorigin=null,R._cssText=cu(r,t.href))}if("style"===A&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=uK(e.sheet);t&&(R._cssText=cu(t,ch(n)))}if("input"===A||"textarea"===A||"select"===A||"option"===A){let t=u5(e),r=u6(e,u2(A),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=cS(e,S,b,E,T,uZ({type:t,tagName:u2(A),maskInputOptions:l}));R.value=u0({isMasked:n,element:e,value:r,maskInputFn:c})}n&&(R.checked=n)}if("option"===A&&(e.selected&&!l.select?R.selected=!0:delete R.selected),"canvas"===A&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let i=t.getImageData;if(new Uint32Array((u3 in i?i[u3]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(R.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(d.type,d.quality)&&(R.rr_dataURL=t)}}if("img"===A&&p){m||(g=(m=n.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",r=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{m.width=e.naturalWidth,m.height=e.naturalHeight,g.drawImage(e,0,0),R.rr_dataURL=m.toDataURL(d.type,d.quality)}catch(r){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${t}! Error: ${r}`)}"anonymous"===e.crossOrigin&&(r?R.crossOrigin=r:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===A||"video"===A)&&(R.rr_mediaState=e.paused?"paused":"played",R.rr_mediaCurrentTime=e.currentTime),!_&&(e.scrollLeft&&(R.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(R.rr_scrollTop=e.scrollTop)),I){let{width:t,height:r}=e.getBoundingClientRect();R={class:R.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==A||h(R.src)||(I||ct(e)||(R.rr_src=R.src),delete R.src);try{customElements.get(A)&&(r=!0)}catch(e){}return{type:uJ.Element,tagName:A,attributes:R,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:I,rootId:y,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:h,maskInputFn:y,dataURLOptions:S,inlineImages:E,recordCanvas:b,keepIframeSrcFn:T,newlyAddedElement:v,rootId:A,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:I});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=uK(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=cu(p,ch(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let g=cS(e,n,a,i,o,r);return f||h||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=u0({isMasked:cS(e,n,a,i,o,uZ({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:uJ.Text,textContent:p||"",isStyle:f,rootId:c}}(e,{doc:r,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:_,maskInputOptions:h,maskInputFn:y,rootId:A});case e.CDATA_SECTION_NODE:return{type:uJ.CDATA,textContent:"",rootId:A};case e.COMMENT_NODE:return{type:uJ.Comment,textContent:e.textContent||"",rootId:A};default:return!1}}(e,{doc:n,mirror:i,blockClass:a,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,dataURLOptions:T,inlineImages:v,recordCanvas:I,keepIframeSrcFn:P,newlyAddedElement:k,ignoreCSSAttributes:M});if(!L)return console.warn(e,"not serialized"),null;r=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===uJ.Comment)return!0;
964if(e.type===uJ.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===u4(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(cE(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===cE(e.attributes.name)||"icon"===cE(e.attributes.rel)||"apple-touch-icon"===cE(e.attributes.rel)||"shortcut icon"===cE(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&cE(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(cE(e.attributes.property).match(/^(og|twitter|fb):/)||cE(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===cE(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===cE(e.attributes.name)||"googlebot"===cE(e.attributes.name)||"bingbot"===cE(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===cE(e.attributes.name)||"generator"===cE(e.attributes.name)||"framework"===cE(e.attributes.name)||"publisher"===cE(e.attributes.name)||"progid"===cE(e.attributes.name)||cE(e.attributes.property).match(/^article:/)||cE(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===cE(e.attributes.name)||"yandex-verification"===cE(e.attributes.name)||"csrf-token"===cE(e.attributes.name)||"p:domain_verify"===cE(e.attributes.name)||"verify-v1"===cE(e.attributes.name)||"verification"===cE(e.attributes.name)||"shopify-checkout-api-token"===cE(e.attributes.name)))return!0}}return!1}(L,b)&&(x||L.type!==uJ.Text||L.isStyle||L.textContent.replace(/^\s+|\s+$/gm,"").length)?ci():-2;let U=Object.assign(L,{id:r});if(i.add(e,U),-2===r)return null;A&&A(e);let D=!f;if(U.type===uJ.Element){D=D&&!U.needBlock;let t=e.shadowRoot;t&&uV(t)&&(U.isShadowHost=!0)}if((U.type===uJ.Document||U.type===uJ.Element)&&D){b.headWhitespace&&U.type===uJ.Element&&"head"===U.tagName&&(x=!1);let t={doc:n,mirror:i,blockClass:a,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:h,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T,inlineImages:v,recordCanvas:I,preserveWhiteSpace:x,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:O,onBlockedImageLoad:w,onStylesheetLoad:N,stylesheetLoadTimeout:C,keepIframeSrcFn:P,ignoreCSSAttributes:M};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=cb(r,t);e&&U.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=cb(r,t);n&&(uV(e.shadowRoot)&&(n.isShadow=!0),U.childNodes.push(n))}}if(e.parentNode&&uY(e.parentNode)&&uV(e.parentNode)&&(U.isShadow=!0),U.type!==uJ.Element||"iframe"!==U.tagName||U.needBlock||function(e,t,r){let n,i=e.contentWindow;if(!i)return;let a=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){let n=u9(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{ce(n),a=!0,t()});return}let o="about:blank";if(i.location.href!==o||e.src===o||""===e.src)return u9(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=ct(e);if(t&&R){let r=cb(t,{doc:t,mirror:i,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T,inlineImages:v,recordCanvas:I,preserveWhiteSpace:x,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:C,keepIframeSrcFn:P,ignoreCSSAttributes:M});r&&R(e,r)}},O),U.type===uJ.Element&&"img"===U.tagName&&!e.complete&&U.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&w)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&w(e,U,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return U.type===uJ.Element&&"link"===U.tagName&&"string"==typeof U.attributes.rel&&("stylesheet"===U.attributes.rel||"preload"===U.attributes.rel&&"string"==typeof U.attributes.href&&"css"===u4(U.attributes.href))&&function(e,t,r){let n,i=!1;try{n=e.sheet}catch(e){return}if(n)return;let a=u9(()=>{i||(t(),i=!0)},r);e.addEventListener("load",()=>{ce(a),i=!0,t()})}(e,()=>{if(N){let t=cb(e,{doc:n,mirror:i,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:h,maskInputOptions:_,maskAttributeFn:y,maskTextFn:S,maskInputFn:E,slimDOMOptions:b,dataURLOptions:T,inlineImages:v,recordCanvas:I,preserveWhiteSpace:x,onSerialize:A,onIframeLoad:R,iframeLoadTimeout:O,onStylesheetLoad:N,stylesheetLoadTimeout:C,keepIframeSrcFn:P,ignoreCSSAttributes:M});t&&N(e,t)}},C),U.type===uJ.Element&&delete U.needBlock,U}function cT(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let cv="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",cI={map:{},getId:()=>(console.error(cv),-1),getNode:()=>(console.error(cv),null),removeNodeFromMap(){console.error(cv)},has:()=>(console.error(cv),!1),reset(){console.error(cv)}};function cA(e,t,r={}){let n=null,i=0;return function(...a){let o=Date.now();i||!1!==r.leading||(i=o);let s=t-(o-i),l=this;s<=0||s>t?(n&&(function(...e){cG("clearTimeout")(...e)}
964(n),n=null),i=o,e.apply(l,a)):n||!1===r.trailing||(n=cH(()=>{i=!1===r.leading?0:Date.now(),n=null,e.apply(l,a)},s))}}function cR(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(cI=new Proxy(cI,{get:(e,t,r)=>("map"===t&&console.error(cv),Reflect.get(e,t,r))}));let cO=Date.now;function cw(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function cN(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function cC(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function cP(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function ck(e,t,r,n,i){if(!e)return!1;let a=cP(e);if(!a)return!1;let o=cy(t,r);if(!i){let e=n&&a.matches(n);return o(a)&&!e}let s=c_(a,o),l=-1;return!(s<0)&&(n&&(l=c_(a,cy(null,n))),s>-1&&l<0||s<l)}function cM(e,t){return -2===t.getId(e)}function cx(e){return!!e.changedTouches}function cL(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function cU(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function cD(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(cO=()=>new Date().getTime());
964class cB{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function cj(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function cF(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=cj(r);)r=t;return r}(e);return t.contains(r)}(e))}let c$={};function cG(e){let t=c$[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return c$[e]=n.bind(window)}function cH(...e){return cG("setTimeout")(...e)}var cW=((M=cW||{})[M.DomContentLoaded=0]="DomContentLoaded",M[M.Load=1]="Load",M[M.FullSnapshot=2]="FullSnapshot",M[M.IncrementalSnapshot=3]="IncrementalSnapshot",M[M.Meta=4]="Meta",M[M.Custom=5]="Custom",M[M.Plugin=6]="Plugin",M),cz=((x=cz||{})[x.Mutation=0]="Mutation",x[x.MouseMove=1]="MouseMove",x[x.MouseInteraction=2]="MouseInteraction",x[x.Scroll=3]="Scroll",x[x.ViewportResize=4]="ViewportResize",x[x.Input=5]="Input",x[x.TouchMove=6]="TouchMove",x[x.MediaInteraction=7]="MediaInteraction",x[x.StyleSheetRule=8]="StyleSheetRule",x[x.CanvasMutation=9]="CanvasMutation",x[x.Font=10]="Font",x[x.Log=11]="Log",x[x.Drag=12]="Drag",x[x.StyleDeclaration=13]="StyleDeclaration",x[x.Selection=14]="Selection",x[x.AdoptedStyleSheet=15]="AdoptedStyleSheet",x[x.CustomElement=16]="CustomElement",x),cq=((L=cq||{})[L.MouseUp=0]="MouseUp",L[L.MouseDown=1]="MouseDown",L[L.Click=2]="Click",L[L.ContextMenu=3]="ContextMenu",L[L.DblClick=4]="DblClick",L[L.Focus=5]="Focus",L[L.Blur=6]="Blur",L[L.TouchStart=7]="TouchStart",L[L.TouchMove_Departed=8]="TouchMove_Departed",L[L.TouchEnd=9]="TouchEnd",L[L.TouchCancel=10]="TouchCancel",L),cJ=((U=cJ||{})[U.Mouse=0]="Mouse",U[U.Pen=1]="Pen",U[U.Touch=2]="Touch",U),cY=((D=cY||{})[D.Play=0]="Play",D[D.Pause=1]="Pause",D[D.Seeked=2]="Seeked",D[D.VolumeChange=3]="VolumeChange",D[D.RateChange=4]="RateChange",D);function cV(e){try{return e.contentDocument}catch(e){}}class cK{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let cX=(e,t)=>`${e}@${t}`;class cQ{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new cK,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},i=i=>{if(!i.parentNode||!cF(i))return;let a=uY(i.parentNode)?this.mirror.getId(cj(i)):this.mirror.getId(i.parentNode),o=n(i);if(-1===a||-1===o)return r.addNode(i);let s=cb(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inl
964ineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{cL(e,this.mirror)&&!ck(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),cU(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),cD(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{ck(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!c0(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&i(e);for(let e of this.addedSet)c1(this.droppedSet,e)||c0(this.removes,e,this.mirror)?c1(this.movedSet,e)?i(e):this.droppedSet.add(e):i(e);let a=null;for(;r.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),r=n(a.value);-1!==t&&-1!==r&&(e=a)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}a=e.previous,r.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!cM(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;ck(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:cS(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,cP(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=u5(t),i=t.tagName;n=u6(t,i,r);let a=uZ({maskInputOptions:this.maskInputOptions,tagName:i,type:r});n=u0({isMasked:cS(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:n,maskInputFn:this.maskInputFn})}if(ck(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let i=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(cV(t))return;r="rr_src"}if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
964,this.attributes.push(i),this.attributeMap.set(e.target,i)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!cg(t.tagName,r)&&(i.attributes[r]=cm(this.doc,u1(t.tagName),u1(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),a=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||a!==r.style.getPropertyPriority(n)?""===a?i.styleDiff[n]=e:i.styleDiff[n]=[e,a]:i._unchangedStyles[n]=[e,a]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(i.styleDiff[e]=!1)}break}case"childList":if(ck(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=uY(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ck(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||cM(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(cZ(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(uY(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[cX(r,n)]?cZ(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(uY(e.target)&&uV(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(cM(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[cX(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!ck(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),cD(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function cZ(e,t){e.delete(t),t.childNodes?.forEach(t=>cZ(e,t))}function c0(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function c1(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let c2=e=>_?(...t)=>{try{return e(...t)}catch(e){if(_&&!0===_(e))return()=>{};throw e}}:e,c3=[];function c5(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function c6(e,t){let r=new cQ;c3.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.("MutationObserver");i&&window[i]&&(n=window[i]);let a=new n(c2(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function c4({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:o}){return cT("scroll",c2(cA(c2(o=>{let s=c5(o);if(!s||ck(s,n,i,a,!0))return;let l=r.getId(s);if(s===t&&t.defaultView){let r=cw(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}let c8=["INPUT","TEXTAREA","SELECT"],c7=new WeakMap;function c9(e){var t=[];if(dn("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||dn("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||dn("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||dn("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function de(e,t,r){let n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function dt({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let i="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&i&&a?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let r=a.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),c2(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})})):()=>{}}function dr(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=c6(e,e.doc));let i=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let i;if(!1===t.mousemove)return()=>{};let a="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=cA(c2(t=>{let r=Date.now()-i;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],i=null}),o),u=c2(cA(c2(e=>{let t=c5(e),{clientX:r,clientY:a}=cx(e)?e.changedTouches[0]:e;i||(i=cO()),s.push({x:r,y:a,id:n.getId(t),timeOffset:cO()-i}),l("u">typeof DragEvent&&e instanceof DragEvent?cz.Drag:e instanceof MouseEvent?cz.MouseMove:cz.TouchMove)}),a,{trailing:!1})),c=[cT("mousemove",u,r),cT("touchmove",u,r),cT("drag",u,r)];return c2(()=>
964{c.forEach(e=>e())})}(e),a=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],u=null;return Object.keys(cq).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(o=>{let s=u1(o),c=t=>{let s=c5(t);if(ck(s,n,i,a,!0))return;let l=null,c=o;if("pointerType"in t){switch(t.pointerType){case"mouse":l=cJ.Mouse;break;case"touch":l=cJ.Touch;break;case"pen":l=cJ.Pen}l===cJ.Touch?cq[o]===cq.MouseDown?c="TouchStart":cq[o]===cq.MouseUp&&(c="TouchEnd"):cJ.Pen}else cx(t)&&(l=cJ.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===cJ.Touch||c.startsWith("Mouse")&&l===cJ.Mouse)&&(l=null)):cq[o]===cq.Click&&(l=u,u=null);let d=cx(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(s),{clientX:f,clientY:h}=d;c2(e)({type:cq[c],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(cq[o]){case cq.MouseDown:case cq.MouseUp:s=s.replace("mouse","pointer");break;case cq.TouchStart:case cq.TouchEnd:return}l.push(cT(s,c,t))}),c2(()=>{l.forEach(e=>e())})}(e),o=c4(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return cT("resize",c2(cA(c2(()=>{let t=cN(),i=cC();(r!==t||n!==i)&&(e({width:Number(i),height:Number(t)}),r=t,n=i)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let r=c5(e),c=e.isTrusted,g=r&&u2(r.tagName);if("OPTION"===g&&(r=r.parentElement),!r||!g||0>c8.indexOf(g)||ck(r,n,i,a,!0))return;let y=r;if(y.classList.contains(o)||s&&y.matches(s))return;let S=u5(r),E=u6(y,g,S),b=!1,T=uZ({maskInputOptions:l,tagName:g,type:S}),v=cS(r,p,h,f,m,T);("radio"===S||"checkbox"===S)&&(b=r.checked),E=u0({isMasked:v,element:r,value:E,maskInputFn:u}),_(r,d?{text:E,isChecked:b,userTriggered:c}:{text:E,isChecked:b});let I=r.name;"radio"===S&&I&&b&&t.querySelectorAll(`input[type="radio"][name="${I}"]`).forEach(e=>{if(e!==r){let t=u0({isMasked:v,element:e,value:u6(e,g,S),maskInputFn:u});_(e,d?{text:t,isChecked:!b,userTriggered:!1}:{text:t,isChecked:!b})}})}function _(t,n){let i=c7.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){c7.set(t,n);let i=r.getId(t);c2(e)({...n,id:i})}}let y=("last"===c.input?["change"]:["input","change"]).map(e=>cT(e,c2(g),t)),S=t.defaultView;if(!S)return()=>{y.forEach(e=>e())};let E=S.Object.getOwnPropertyDescriptor(S.HTMLInputElement.prototype,"value"),b=[[S.HTMLInputElement.prototype,"value"],[S.HTMLInputElement.prototype,"checked"],[S.HTMLSelectElement.prototype,"value"],[S.HTMLTextAreaElement.prototype,"value"],[S.HTMLSelectElement.prototype,"selectedIndex"],[S.HTMLOptionElement.prototype,"selected"]];return E&&E.set&&y.push(...b.map(e=>(function e(t,r,n,i,a=window){let o=a.Object.getOwnPropertyDescriptor(t,r);return a.Object.defineProperty(t,r,i?n:{set(e){cH(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,r,o||{},!0)})(e[0],e[1],{set(){c2(g)({target:this,isTrusted:!1})}},!1,S))),c2(()=>{y.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:i,sampling:a,doc:o}){let s=c2(o=>cA(c2(a=>{let s=c5(a);if(!s||ck(s,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:l,volume:u,muted:c,playbackRate:d})}),a.media||500)),l=[cT("play",s(cY.Play),o),cT("pause",s(cY.Pause),o),cT("seeked",s(cY.Seeked),o),cT("volumechange",s(cY.VolumeChange),o),cT("ratechange",s(cY.RateChange),o)];return c2(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let i,a;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let o=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:c2((n,i,a)=>{let[o,s]=a,{id:l,styleId:u}=de(i,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:s}]}),n.apply(i,a)})});let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:c2((n,i,a)=>{let[o]=a,{id:s,styleId:l}=de(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:o}]}),n.apply(i,a)})}),n.CSSStyleSheet.prototype.replace&&(i=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:c2((n,i,a)=>{let[o]=a,{id:s,styleId:l}=de(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:o}),n.apply(i,a)})})),n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:c2((n,i,a)=>{let[o]=a,{id:s,styleId:l}=de(i,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:o}),n.apply(i,a)})}));let l={};di("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(di("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),di("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),di("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,i])=>{u[n]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(u[n].insertRule,{apply:c2((n,i,a)=>{let[o,s]=a,{id:l,styleId:u}=de(i.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:[...c9(i),s||0]}]}),n.apply(i,a)})}),i.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:c2((n,i,a)=>{let[o]=a,{id:s,styleId:l}=de(i.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...c9(i),o]}]}),n.apply(i,a)})})}),c2(()=>{n.CSSStyleSheet.prototype.insertRule=o,n.CSSStyleSheet.prototype.deleteRule=s,i&&(n.CSSStyleSheet.prototype.replace=i),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=dt(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:c2((i,o,s)=>{let[l,u,c]=s;
964if(r.has(l))return a.apply(o,[l,u,c]);let{id:d,styleId:p}=de(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:c9(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:c2((i,a,s)=>{let[l]=s;if(r.has(l))return o.apply(a,[l]);let{id:u,styleId:c}=de(a.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:c9(a.parentRule)}),i.apply(a,s)})}),c2(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(e,t,r){let n=new a(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let o=cR(t.fonts,"add",function(t){return function(r){return cH(c2(()=>{let t=i.get(r);t&&(e(t),i.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=a}),n.push(o),c2(()=>{n.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,l=c2(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:o,startOffset:s,endContainer:u,endOffset:c}=e.getRangeAt(t);ck(o,n,i,a,!0)||ck(u,n,i,a,!0)||l.push({start:r.getId(o),startOffset:s,end:r.getId(u),endOffset:c})}o({ranges:l})});return l(),cT("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?cR(r.customElements,"define",function(e){return function(r,n,i){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,i])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return c2(()=>{c3.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),l(),u(),c(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function dn(e){return void 0!==window[e]}function di(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class da{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let i=r||this.getIdToRemoteIdMap(e),a=n||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let i=n.get(t);return i||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class ds{constructor(){this.crossOriginIframeMirror=new da(ci),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class dl{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new da(ci),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new da(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=cV(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case cW.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:cW.IncrementalSnapshot,data:{source:cz.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case cW.Meta:case cW.Load:case cW.DomContentLoaded:break;case cW.Plugin:return t;case cW.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case cW.IncrementalSnapshot:switch(t.data.source){case cz.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
964),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case cz.Drag:case cz.TouchMove:case cz.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case cz.ViewportResize:return!1;case cz.MediaInteraction:case cz.MouseInteraction:case cz.Scroll:case cz.CanvasMutation:case cz.Input:return this.replaceIds(t.data,e,["id"]),t;case cz.StyleSheetRule:case cz.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case cz.Font:return t;case cz.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case cz.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let i of n)(Array.isArray(t[i])||"number"==typeof t[i])&&(Array.isArray(t[i])?t[i]=e.getIds(r,t[i]):t[i]=e.getId(r,t[i]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===uJ.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class du{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class dc{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!uV(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=c6({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(c4({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),cH(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(dt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=cV(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(cR(e.prototype,"attachShadow",function(e){return function(n){let i=e.call(this,n);return this.shadowRoot&&cF(this)&&r.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var dd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dp="u"<typeof Uint8Array?[]:new Uint8Array(256),df=0;df<dd.length;df++)dp[dd.charCodeAt(df)]=df;class dh{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class dm{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new cB,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:uX(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class dg{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){cG("requestAnimationFrame")(...e)}
964(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let d_=new uQ;function dy(e={}){let t,{emit:r,checkoutEveryNms:n,checkoutEveryNth:i,blockClass:a="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:E,slimDOMOptions:b,maskAttributeFn:T,maskInputFn:v,maskTextFn:I,maxCanvasSize:A=null,packFn:R,sampling:O={},dataURLOptions:w={},mousemoveWait:N,recordDOM:C=!0,recordCanvas:P=!1,recordCrossOriginIframes:k=!1,recordAfter:M="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:x=!1,collectFonts:L=!1,inlineImages:U=!1,plugins:D,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:j=new Set([]),errorHandler:F,onMutation:$,getCanvasManager:G}=e;_=F;let H=!k||window.parent===window,W=!1;if(!H)try{window.parent.document&&(W=!1)}catch(e){W=!0}if(H&&!r)throw Error("emit function is required");if(!H&&!W)return()=>{};void 0!==N&&void 0===O.mousemove&&(O.mousemove=N),d_.reset();let z=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==E?E:{},q=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b}:b||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let J=0,Y=e=>{for(let t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return R&&!W&&(e=R(e)),e};y=(e,a)=>{if(e.timestamp=cO(),c3[0]?.isFrozen()&&e.type!==cW.FullSnapshot&&(e.type!==cW.IncrementalSnapshot||e.data.source!==cz.Mutation)&&c3.forEach(e=>e.unfreeze()),H)r?.(Y(e),a);else if(W){let t={type:"rrweb",event:Y(e),origin:window.location.origin,isCheckout:a};window.parent.postMessage(t,"*")}if(e.type===cW.FullSnapshot)t=e,J=0;else if(e.type===cW.IncrementalSnapshot){if(e.data.source===cz.Mutation&&e.data.isAttachIframe)return;J++;let r=i&&J>=i,a=n&&t&&e.timestamp-t.timestamp>n;(r||a)&&en(!0)}};let V=e=>{y({type:cW.IncrementalSnapshot,data:{source:cz.Mutation,...e}})},K=e=>y({type:cW.IncrementalSnapshot,data:{source:cz.Scroll,...e}}),X=e=>y({type:cW.IncrementalSnapshot,data:{source:cz.CanvasMutation,...e}}),Q=new dm({mutationCb:V,adoptedStyleSheetCb:e=>y({type:cW.IncrementalSnapshot,data:{source:cz.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ds:new dl({mirror:d_,mutationCb:V,stylesheetManager:Q,recordCrossOriginIframes:k,wrappedEmit:y});for(let e of D||[])e.getMirror&&e.getMirror({nodeMirror:d_,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new dg,et=function(e,t){try{return e?e(t):new dh}catch{return console.warn("Unable to initialize CanvasManager"),new dh}}(G,{mirror:d_,win:window,mutationCb:e=>y({type:cW.IncrementalSnapshot,data:{source:cz.CanvasMutation,...e}}),recordCanvas:P,blockClass:a,blockSelector:o,unblockSelector:s,maxCanvasSize:A,sampling:O.canvas,dataURLOptions:w,errorHandler:F}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new du:new dc({mutationCb:V,scrollCb:K,bypassOptions:{onMutation:$,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:z,dataURLOptions:w,maskAttributeFn:T,maskTextFn:I,maskInputFn:v,recordCanvas:P,inlineImages:U,sampling:O,slimDOMOptions:q,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:B,processedNodeManager:ee,ignoreCSSAttributes:j},mirror:d_}),en=(e=!1)=>
964{if(!C)return;y({type:cW.Meta,data:{href:window.location.href,width:cC(),height:cN()}},e),Q.reset(),er.init(),c3.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new uQ,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:S,preserveWhiteSpace:E,onSerialize:b,onIframeLoad:T,iframeLoadTimeout:v,onBlockedImageLoad:I,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:w=new Set([])}=t||{};return cb(e,{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:S,inlineImages:p,recordCanvas:f,preserveWhiteSpace:E,onSerialize:b,onIframeLoad:T,iframeLoadTimeout:v,onBlockedImageLoad:I,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:w})}(document,{mirror:d_,blockClass:a,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:z,maskAttributeFn:T,maskInputFn:v,maskTextFn:I,slimDOM:q,dataURLOptions:w,recordCanvas:P,inlineImages:U,onSerialize:e=>{cL(e,d_)&&Z.addIframe(e),cU(e,d_)&&Q.trackLinkElement(e),cD(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:B,ignoreCSSAttributes:j});if(!t)return console.warn("Failed to snapshot the document");y({type:cW.FullSnapshot,data:{node:t,initialOffset:cw(window)}}),c3.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,d_.getId(document))};S=en;try{let e=[],t=e=>c2(dr)({onMutation:$,mutationCb:V,mousemoveCb:(e,t)=>y({type:cW.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>y({type:cW.IncrementalSnapshot,data:{source:cz.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>y({type:cW.IncrementalSnapshot,data:{source:cz.ViewportResize,...e}}),inputCb:e=>y({type:cW.IncrementalSnapshot,data:{source:cz.Input,...e}}),mediaInteractionCb:e=>y({type:cW.IncrementalSnapshot,data:{source:cz.MediaInteraction,...e}}),styleSheetRuleCb:e=>y({type:cW.IncrementalSnapshot,data:{source:cz.StyleSheetRule,...e}}),styleDeclarationCb:e=>y({type:cW.IncrementalSnapshot,data:{source:cz.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>y({type:cW.IncrementalSnapshot,data:{source:cz.Font,...e}}),selectionCb:e=>{y({type:cW.IncrementalSnapshot,data:{source:cz.Selection,...e}})},customElementCb:e=>{y({type:cW.IncrementalSnapshot,data:{source:cz.CustomElement,...e}})},blockClass:a,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:z,inlineStylesheet:m,sampling:O,recordDOM:C,recordCanvas:P,inlineImages:U,userTriggeredOnInput:x,collectFonts:L,doc:e,maskAttributeFn:T,maskInputFn:v,maskTextFn:I,keepIframeSrcFn:B,blockSelector:o,unblockSelector:s,slimDOMOptions:q,dataURLOptions:w,mirror:d_,iframeManager:Z,stylesheetManager:Q,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:j,plugins:D?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>y({type:cW.Plugin,data:{plugin:e.name,payload:t}}
964)}))||[]},{});Z.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(cT("DOMContentLoaded",()=>{y({type:cW.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&r()})),e.push(cT("load",()=>{y({type:cW.Load,data:{}}),"load"===M&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),S=void 0,_=void 0}}catch(e){console.warn(e)}}function dS(e){return e>0x2540be3ff?e:1e3*e}function dE(e){return e>0x2540be3ff?e/1e3:e}function db(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:cW.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,ew.S8)(t,10,1e3)}}),"console"===t.category)))}function dT(e){return e.closest("button,a")||e}function dv(e){let t=dI(e);return t&&t instanceof Element?dT(t):t}function dI(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}dy.mirror=d_,dy.takeFullSnapshot=function(e){if(!S)throw Error("please take full snapshot after start recording");S(e)},(B=G||(G={}))[B.NotStarted=0]="NotStarted",B[B.Running=1]="Running",B[B.Stopped=2]="Stopped";let dA=new Set([cz.Mutation,cz.StyleSheetRule,cz.StyleDeclaration,cz.AdoptedStyleSheet,cz.CanvasMutation,cz.Selection,cz.MediaInteraction]);class dR{constructor(e,t,r=db){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=dw()},E||(E=[],(0,ep.GS)(uG,"open",function(e){return function(...t){if(E)try{E.forEach(e=>e())}catch{}return e.apply(uG,t)}})),E.push(e),()=>{let t=E?E.indexOf(e):-1;t>-1&&E.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,i;if(r=t,n=this._ignoreSelector,!dO.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((i=e).data&&"number"==typeof i.data.nodeId&&i.timestamp))return;let a={timestamp:dE(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===a.node&&1>Math.abs(e.timestamp-a.timestamp))||(this._clicks.push(a),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=dE(e)}registerScroll(e=Date.now()){this._lastScroll=dE(e)}registerClick(e){let t=dT(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=dw();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:i,clickBreadcrumb:a}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:uG.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:i||1}};this._addBreadcrumbEvent(t,o);return}if(i>1){let e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:uG.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=rX(()=>this._checkClicks(),1e3)}}let dO=["A","BUTTON","INPUT"];function dw(){return Date.now()/1e3}function dN(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var dC=((j=dC||{})[j.Document=0]="Document",j[j.DocumentType=1]="DocumentType",j[j.Element=2]="Element",j[j.Text=3]="Text",j[j.CDATA=4]="CDATA",j[j.Comment=5]="Comment",j);let dP=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function dk(e,t){let r=dy.mirror.getId(e),n=r&&dy.mirror.getNode(r),i=n&&dy.mirror.getMeta(n),a=i&&i.type===dC.Element?i:null;return{message:t,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>
964e.type===dC.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(dP.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(a.attributes)}}:{}}}let dM={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:dU(a),end:dU(i),name:n,data:{size:u,statusCode:l,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:i}=e,a=dU(i);return{type:r,name:n,start:a,end:a+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===i?null:{type:`${t}.${m}`,start:dU(f),end:dU(a),name:r,data:{size:h,decodedBodySize:n,encodedBodySize:o,duration:i,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:a,redirectCount:p}}}};function dx(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function dL(e){let t=dM[e.entryType];return t?t(e):null}function dU(e){return(((0,eW.k3)()||uG.performance.timeOrigin)+e)/1e3}function dD(e){let t=e.entries[e.entries.length-1];return dF(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function dB(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=dy.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return dF(e,"cumulative-layout-shift",r,t)}function dj(e){let t=e.entries[e.entries.length-1];return dF(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function dF(e,t,r,n){let i=e.value,a=e.rating,o=dU(i);return{type:"web-vital",name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:r?r.map(e=>dy.mirror.getId(e)):void 0,attributions:n}}}let d$=(P={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{e.captureExceptions,e.traceInternals}},["log","warn","error"].forEach(e=>{P[e]=()=>void 0}),P);class dG extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class dH{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new dG;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?dS(e):null}}class dW{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t(Error("Received worker message with unsuccessful status"))},{once:!0}),this._worker.addEventListener("error",e=>{t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,i)=>{let a=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",a),!t.success)return void i(Error("Error in compression worker"));n(t.response)}};this._worker.addEventListener("message",a),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class dz{constructor(e){this._worker=new dW(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}
964addEvent(e){let t=dS(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new dG):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class dq{constructor(e){this._fallback=new dH,this._compression=new dz(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){}}}function dJ(){try{return"sessionStorage"in uG&&!!uG.sessionStorage}catch{return!1}}function dY(e){return void 0!==e&&Math.random()<e}function dV(e){if(dJ())try{uG.sessionStorage.setItem(uH,JSON.stringify(e))}catch{}}function dK(e){let t=Date.now(),r=e.id||(0,ea.eJ)(),n=e.started||t,i=e.lastActivity||t,a=e.segmentId||0,o=e.sampled;return{id:r,started:n,lastActivity:i,segmentId:a,sampled:o,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function dX({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let i=dK({sampled:dY(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&dV(i),i}function dQ(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function dZ(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return dQ(e.started,t,n)||dQ(e.lastActivity,r,n)}function d0(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!dZ(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function d1({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let i=n.stickySession&&function(){if(!dJ())return null;try{let e=uG.sessionStorage.getItem(uH);if(!e)return null;let t=JSON.parse(e);return dK(t)}catch{return null}}();return i?d0(i,{sessionIdleExpire:e,maxReplayDuration:t})?dX(n,{previousSessionId:i.id}):i:dX(n,{previousSessionId:r})}function d2(e,t,r){return!!d5(e,t)&&(d3(e,t,r),!0)}async function d3(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let i="buffer"===e.recordingMode;try{r&&i&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let a=e.getOptions(),o=function(e,t){try{if("function"==typeof t&&e.type===cW.Custom)return t(e)}catch(e){return null}return e}(t,a.beforeAddRecordingEvent);if(!o)return;return await n.addEvent(o)}catch(a){let t=a&&a instanceof dG,r=(0,Z.KU)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&i)return n.clear(),n.waitForCheckout=!0,null;e.handleException(a),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}function d5(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=dS(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function d6(e){return"transaction"===e.type}function d4(e){return"feedback"===e.type}function d8(e){return!!e.category}function d7(){let e=(0,Z.o5)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,ej.Bk)();if(t){let e=(0,eR.k1)(t);delete e.replay_id}}function d9(e,t){return t.map(({type:t,start:r,end:n,name:i,data:a})=>{let o=e.throttledAddEvent({type:cW.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:i,startTimestamp:r,endTimestamp:n,data:a}}});return"string"==typeof o?Promise.resolve(null):o})}function pe(e,t){e.isEnabled()&&null!==t&&(uA(t.name,(0,Z.KU)())||e.addUpdate(()=>(d9(e,[t]),!0)))}function pt(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=iB(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function pr(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function pn(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function pi(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:i,method:a,statusCode:o,request:s,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:i,data:{method:a,statusCode:o,request:s,response:l}}}function pa(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function po(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:i,warnings:a}=function(e){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let i=e.length>15e4,a=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(i){let t=e.slice(0,15e4);return a?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(a)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=i,a?.length&&(n._meta={warnings:a}),n}function ps(e,t){return Object.entries(e).reduce((r,[n,i])=>{let a=n.toLowerCase();return t.includes(a)&&e[n]&&(r[a]=i),r},{})}function pl(e,t){let r=function(e,t=uG.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(uG.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,eo.Xr)(r,t)}async function pu(e,t,r){try{let n=await pc(e,t,r),i=pi("resource.fetch",n);pe(r.replay,i)}catch(e){}}async function pc(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n}=t,{url:o,method:s,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=pl(o,r.networkDetailAllowUrls)&&!pl(o,r.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var i,a;let o=r?(i=r,a=t,1===i.length&&"string"!=typeof i[0]?ph(i[0],a):2===i.length?ph(i[1],a):{}):{};if(!e)return po(o,n,void 0);let[s,l]=ij(iF(r),d$),u=po(o,n,s);return l?pn(u,l):u}(r,t.input,u):pa(u),response:await pd(d,r,t.response,c)}}async function pd(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,i){if(!e&&void 0!==i)return pa(i);let a=n?pf(n.headers,r):{};if(!n||!t&&void 0!==i)return po(a,i,void 0);
964let[o,s]=await pp(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:i}){try{let a=e?.length&&void 0===r?pt(e):r;if(!n)return pa(a);if(t)return po(i,a,e);return po(i,a,void 0)}catch(e){return po(i,r,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?pn(l,s):l}async function pp(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>{let n=rX(()=>t(Error("Timeout while trying to read response body")),500);pm(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return[void 0,"BODY_PARSE_TIMEOUT"];return[void 0,"BODY_PARSE_ERROR"]}}function pf(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function ph(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?pf(r,t):Array.isArray(r)?{}:ps(r,t):{}}async function pm(e){return await e.text()}async function pg(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n,input:o,xhr:s}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!s||!pl(l,r.networkDetailAllowUrls)||pl(l,r.networkDetailDenyUrls)){let e=pa(d);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:e,response:pa(p)}}let f=s[rn],h=f?ps(f.request_headers,r.networkRequestHeaders):{},m=ps(i$(s),r.networkResponseHeaders),[g,_]=r.networkCaptureBodies?ij(o,d$):[void 0],[y,S]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return[void 0]}(s):[void 0],E=po(h,d,g),b=po(m,p,y);return{startTimestamp:i,endTimestamp:a,url:l,method:u,statusCode:c,request:_?pn(E,_):E,response:S?pn(b,S):b}}(e,t,r),i=pi("resource.xhr",n);pe(r.replay,i)}catch(e){}}async function p_(e){try{return Promise.all(d9(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(uG.performance.memory)]))}catch{return[]}}let py=J.O.navigator;async function pS({client:e,scope:t,replayId:r,event:n}){let i={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,i);let a=await (0,ti.mG)(e.getOptions(),n,i,t,e,(0,Z.rm)());if(!a)return null;e.emit("postprocessEvent",a,i),a.platform=a.platform||"javascript";let o=e.getSdkMetadata(),{name:s,version:l,settings:u}=o?.sdk||{};return a.sdk={...a.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},a}async function pE({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:i,session:a}){var o;let s,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)}
965`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:p}=n,f=(0,Z.KU)(),h=(0,Z.o5)(),m=f?.getTransport(),g=f?.getDsn();if(!f||!m||!g||!a.sampled)return Promise.resolve({});let _={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:i/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:r,replay_type:a.sampled},y=await pS({scope:h,client:f,replayId:t,event:_});if(!y)return f.recordDroppedEvent("event_processor","replay"),Promise.resolve({});delete y.sdkProcessingMetadata;let S=(o=f.getOptions().tunnel,eN(eU(y,eL(y),o,g),[[{type:"replay_event"},y],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await m.send(S)}catch(t){let e=Error(uW);try{e.cause=t}catch{}throw e}let E=te({},s);if(e9(E,"replay"))throw new pT(E);if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new pb(s.statusCode);return s}
965class pb extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class pT extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class pv extends Error{constructor(){super("Session is too long, not sending replay")}}async function pI(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await pE(e),!0}catch(r){if(r instanceof pb||r instanceof pT)throw r;if((0,X.o)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${uW} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{rX(async()=>{try{await pI(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let pA="__THROTTLED";class pR{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){return function(e,t,r){let n,i,a,o=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function c(){return i&&clearTimeout(i),i=s(l,t),o&&void 0===a&&(a=s(l,o)),n}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==a?l():n},c}(e,t,{...r,setTimeoutImpl:rX})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,r=!1;return(...n)=>{let i,a=Math.floor(Date.now()/1e3);if(i=a-5,t.forEach((e,r)=>{r<i&&t.delete(r)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){let e=r;return r=!0,e?"__SKIPPED":pA}r=!1;let o=t.get(a)||0;return t.set(a,o+1),e(...n)}}((e,t)=>d5(this,e)?d3(this,e,t):Promise.resolve(null));const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;i&&(this.clickDetector=new dR(this,i)),this._handleVisibilityChange=()=>{"visible"===uG.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=dN({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=dN({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:o,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=r||i||a,u=1===o.length;if(!l&&u)return null;let c=(0,tM.Hd)(s,{maxStringLength:200})||"<unknown>",d=dk(s,c);return dN({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:i,altKey:a,key:o}})}(t);r&&db(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;this._requiresManualStart=n,n||(this._initializeSessionForSampling(e),this.session&&!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording()))}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=d1({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
965startBuffering(){if(this._isEnabled)return;let e=d1({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,r=this._canvas;this._stopRecording=dy({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession())return;let i=n||!t;t=!0,e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(dA.has(n)&&e.registerMutation(t.timestamp),n===cz.Scroll&&e.registerScroll(t.timestamp),t.data.source===cz.MouseInteraction){let{type:r,id:n}=t.data,i=dy.mirror.getNode(n);i instanceof HTMLElement&&r===cq.Click&&e.registerClick(i)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&i&&e.setInitialState(),!d2(e,r,i))return!0;if(!i)return!1;let t=e.session;if(function(e,t){if(t&&e.session&&0===e.session.segmentId){let t;d2(e,(t=e.getOptions(),{type:cW.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,i),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(t.started=r,e.getOptions().stickySession&&dV(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(py?.userAgent??"")||/Macintosh/i.test(py?.userAgent??"")&&py?.maxTouchPoints&&py?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{d7(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(dJ())try{uG.sessionStorage.removeItem(uH)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}
965checkAndHandleExpiredSession(){return this._lastActivity&&dQ(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${uG.location.pathname}${uG.location.hash}${uG.location.search}`,t=`${uG.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===pA){let e=dN({category:"replay.throttled"});this.addUpdate(()=>!d2(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,ej.Bk)(),t=e&&(0,ej.zU)(e),r=(t&&(0,ej.et)(t).data||{})[em.i_];if(t&&r&&["route","custom"].includes(r))return(0,ej.et)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 965
965var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
965']),URL.createObjectURL(e)}return""}();if(!t)return;let r=new Worker(t);return new dq(r)}catch(e){}}(t);if(e)return e}return new dH}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=d1({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!d0(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{uG.document.addEventListener("visibilitychange",this._handleVisibilityChange),uG.addEventListener("blur",this._handleWindowBlur),uG.addEventListener("focus",this._handleWindowFocus),uG.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,r=(0,Z.KU)();re(t=>{var r,n;if(!e.isEnabled())return;let i=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?dv(e.event):dI(e.event),t=(0,tM.Hd)(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return dN({category:`ui.${e.name}`,...dk(t,r)})}(t);if(!i)return;let a="click"===t.name,o=a?t.event:void 0;a&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&(r=e.clickDetector,n=dv(t.event),r.handleClick(i,n)),db(e,i)}),ro(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(d9(e,[r]),!1)))}),(t=(0,Z.KU)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!d8(t))return;let n=(r=t,!d8(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return dN(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,ew.S8)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return dN({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):dN(r));n&&db(e,n)})(e,t));let n=(0,Z.KU)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,i,a,o;n=t,"xhr"===n.category&&(i=r,i?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let i=pt(n),a=r.getResponseHeader("content-length")?pr(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return pt(r)}catch{return}}(r.response,r.responseType);void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),pg(t,r,e)),a=t,"fetch"===a.category&&(o=r,o?.response)&&(!function(e,t){let{input:r,response:n}=t,i=pt(r?iF(r):void 0),a=n?pr(n.headers.get("content-length")):void 0;void 0!==i&&(e.data.request_body_size=i),void 0!==a&&(e.data.response_body_size=a)}(t,r),pu(t,r,e))}catch(e){}})(s,e,t))}catch{}let i=Object.assign((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!d6(t)&&!d4(t))return t;if(!e.checkAndHandleExpiredSession())return d7(),t;
965if(d4(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:cW.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return null;let n="buffer"===e.recordingMode&&t.message!==uW&&!!t.exception&&!t.type&&dY(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&dV(t)}return t},{id:"Replay"});(0,X.SA)(i),r&&(r.on("beforeSendEvent",t=>{var r,n;let i;e.isEnabled()&&!t.type&&(r=e,n=t,i=n.exception?.values?.[0]?.value,"string"==typeof i&&(i.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||i.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&db(r,dN({category:"replay.hydrate-error",data:{url:(0,tM.$N)()}})))}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!d6(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(d6(t)){var i,a;let r;return void(i=e,a=t,r=i.getContext(),a.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(a.contexts.trace.trace_id))}!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&rX(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push(it(e,r))}),n.push(n9(dx(dD,e)),n7(dx(dB,e)),ie(dx(dj,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{uG.document.removeEventListener("visibilitychange",this._handleVisibilityChange),uG.removeEventListener("blur",this._handleWindowBlur),uG.removeEventListener("focus",this._handleWindowFocus),uG.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||dZ(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){!this.session||this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:cW.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(dL).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(d9(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();
965r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(this.session&&this.eventBuffer&&e&&(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents)){if((await p_(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new pv;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await pI({replayId:e,recordingData:i,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,Z.KU)();e&&e.recordDroppedEvent(t instanceof pT?"ratelimit_backoff":t instanceof pv?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,i=r>this._options.maxReplayDuration+5e3;if(n||i){n&&this._debouncedFlush();return}let a=this.eventBuffer;a&&0===this.session.segmentId&&a.hasCheckout;let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&dV(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>i||a){let e=dN({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function pO(e,t){return[...e,...t].join(",")}let pw='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',pN=["content-length","content-type","accept"],pC=Symbol.for("sentry__originalRequestBody"),pP=!1,pk=!1,pM=e=>new px(e);class px{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:S=[],mask:E=[],maskAttributes:b=["title","placeholder","aria-label"],unmask:T=[],block:v=[],unblock:I=[],ignore:A=[],maskFn:R,beforeAddRecordingEvent:O,beforeErrorSampling:w,onError:N,attachRawBodyFromRequest:C=!1}={}){this.name="Replay";const P=function({mask:e,unmask:t,block:r,unblock:n,ignore:i}){return{maskTextSelector:pO(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:pO(t,[]),blockSelector:pO(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:pO(n,[]),ignoreSelector:pO(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:E,unmask:T,block:v,unblock:I,ignore:A});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:R,maskInputFn:R,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:i,value:a}){return!n||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a})({maskAttributes:b,maskAllText:l,privacyOptions:P,key:e,value:t,el:r}),...P,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:pL(y),networkResponseHeaders:pL(S),beforeAddRecordingEvent:O,beforeErrorSampling:w,onError:N,attachRawBodyFromRequest:C,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${pw}`:pw,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&iA())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return pP}set _isInitialized(e){pP=e}afterAllSetup(e){iA()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||pk)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[pC]=r.body),n};t.prototype=e.prototype,J.O.Request=t,pk=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
965startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let r,n,i,a,o=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},i=(0,tn.i)(r.replaysSessionSampleRate),a=(0,tn.i)(r.replaysOnErrorSampleRate),null==i&&null==a&&(0,Y.pq)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=i&&(n.sessionSampleRate=i),null!=a&&(n.errorSampleRate=a),n);this._replay=new pR({options:o,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function pL(e){return[...pN,...e.map(e=>e.toLowerCase())]}function pU(){let e=(0,Z.KU)();return e?.getIntegrationByName("Replay")}var pD=Object.defineProperty,pB=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?pD(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};class pj{constructor(){pB(this,"idNodeMap",new Map),pB(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function pF(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:pF(e.parentNode,t,r,n+1)}function p$(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}let pG="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",pH={map:{},getId:()=>(console.error(pG),-1),getNode:()=>(console.error(pG),null),removeNodeFromMap(){console.error(pG)},has:()=>(console.error(pG),!1),reset(){console.error(pG)}};function pW(e,t,r,n,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){pK(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>pW(e,t,a||{},!0)}function pz(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}function pq(e,t,r,n,i){if(!e)return!1;let a=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!a)return!1;let o=p$(t,r);
965if(!i){let e=n&&a.matches(n);return o(a)&&!e}let s=pF(a,o),l=-1;return!(s<0)&&(n&&(l=pF(a,p$(null,n))),s>-1&&l<0||s<l)}"u">typeof window&&window.Proxy&&window.Reflect&&(pH=new Proxy(pH,{get:(e,t,r)=>("map"===t&&console.error(pG),Reflect.get(e,t,r))})),Date.now().toString();let pJ={};function pY(e){let t=pJ[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return pJ[e]=n.bind(window)}function pV(...e){return pY("requestAnimationFrame")(...e)}function pK(...e){return pY("setTimeout")(...e)}var pX=((F=pX||{})[F["2D"]=0]="2D",F[F.WebGL=1]="WebGL",F[F.WebGL2=2]="WebGL2",F);let pQ=e=>b?(...t)=>{try{return e(...t)}catch(e){if(b&&!0===b(e))return()=>{};throw e}}:e;for(var pZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p0="u"<typeof Uint8Array?[]:new Uint8Array(256),p1=0;p1<pZ.length;p1++)p0[pZ.charCodeAt(p1)]=p1;var p2=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=pZ[r[t]>>2],i+=pZ[(3&r[t])<<4|r[t+1]>>4],i+=pZ[(15&r[t+1])<<2|r[t+2]>>6],i+=pZ[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let p3=new Map,p5=(e,t,r)=>{let n;if(!e||!(p4(e,t)||"object"==typeof e))return;let i=e.constructor.name,a=((n=p3.get(r))||(n=new Map,p3.set(r,n)),n.has(i)||n.set(i,[]),n.get(i)),o=a.indexOf(e);return -1===o&&(o=a.length,a.push(e)),o},p6=(e,t,r)=>e.map(e=>(function e(t,r,n){if(t instanceof Array)return t.map(t=>e(t,r,n));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:p2(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(p4(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:p5(t,r,n)};return t})(e,t,r)),p4=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function p8(e,t,r,n,i){let a=[];try{let o=pz(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(a,...o){if(!pq(this,t,r,n,!0)){let e="experimental-webgl"===a?"webgl":a;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){let e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[a,...o])}});a.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(e=>e())}}function p7(e,t,r,n,i,a,o,s){let l=[];for(let o of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;let u=pz(e,o,function(e){return function(...l){let u=e.apply(this,l);if(p5(u,s,this),"tagName"in this.canvas&&!pq(this.canvas,n,i,a,!0)){let e=p6(l,s,this),n={type:t,property:o,args:e};r(this.canvas,n)}return u}});l.push(u)}catch{let n=pW(e,o,{set(e){r(this.canvas,{type:t,property:o,args:[e],setter:!0})}});l.push(n)}return l}class p9{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:r="all",win:n,recordCanvas:i,errorHandler:a}=e;if(e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,a&&function(e){b=e}(a),(i&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t)return;pQ(()=>{i&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&"number"==typeof r&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
965h(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:r,blockSelector:n,unblockSelector:i,recordCanvas:a,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}pQ(()=>{if(a&&"all"===t&&this.initCanvasMutationObserver(e,r,n,i),a&&"number"==typeof t){let t=p8(e,r,n,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):pV(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e,t=new Worker((e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']),URL.createObjectURL(e)));return t.onmessage=e=>{let t=e.data,{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;let{base64:n,type:i,width:a,height:o}=t;this.mutationCb({id:r,type:pX["2D"],commands:[{property:"clearRect",args:[0,0,a,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0,a,o]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=r=>{this.takeSnapshot(r,!1),e=pV(t)};e=pV(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){var i,a;let o,s=p8(e,t,r,n,!1),l=function(e,t,r,n,i){let a=[];for(let o of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;let s=pz(t.CanvasRenderingContext2D.prototype,o,function(a){return function(...s){return pq(this.canvas,r,n,i,!0)||pK(()=>{let r=p6(s,t,this);e(this.canvas,{type:pX["2D"],property:o,args:r})},0),a.apply(this,s)}});a.push(s)}catch{let r=pW(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:pX["2D"],property:o,args:[t],setter:!0})}});a.push(r)}return()=>{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),u=(i=this.processMutation.bind(this),a=this.mirror,(o=[]).push(...p7(e.WebGLRenderingContext.prototype,pX.WebGL,i,t,r,n,a,e)),void 0!==e.WebGL2RenderingContext&&o.push(...p7(e.WebGL2RenderingContext.prototype,pX.WebGL2,i,t,r,n,a,e)),()=>{o.forEach(e=>e())});this.restoreHandlers.push(()=>{s(),l(),u()})}getCanvasElements(e,t,r){let n=[],i=i=>{i.querySelectorAll("canvas").forEach(i=>
965{pq(i,e,t,r,!0)||n.push(i)})};for(let e of this.windows){let t,r=e.deref();try{t=r&&r.document}catch{}t&&i(t)}for(let e of this.shadowDoms){let t=e.deref();t&&i(t)}return n}takeSnapshot(e,t,r){let{sampling:n,blockClass:i,blockSelector:a,unblockSelector:o,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===n?2:n||2)))&&(this.lastSnapshotTime=e,(r?[r]:this.getCanvasElements(i,a,o)).forEach(e=>{let r=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(r))){if(this.snapshotInProgressMap.set(r,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{pQ(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}}),!0)}startPendingCanvasMutationFlusher(){pV(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,pV(e)};pV(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),pV(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let n=r.map(e=>{let{type:t,...r}=e;return r}),{type:i}=r[0];this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new pj,($=H||(H={}))[$.NotStarted=0]="NotStarted",$[$.Running=1]="Running",$[$.Stopped=2]="Stopped";let fe={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},ft=(e={})=>{let t,r,[n,i]=e.maxCanvasSize||[],a={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[n?Math.min(n,1280):1280,i?Math.min(i,1280):1280]},o=new Promise(e=>r=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:n,maxCanvasSize:i}=a;return{enableManualSnapshot:n,recordCanvas:!0,getCanvasManager:e=>{let a=new p9({...e,enableManualSnapshot:n,maxCanvasSize:i,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=a,r(a),a},...fe[e]||fe.medium}},async snapshot(e,r){(t||await o).snapshot(e,r)}}};function fr(e=(0,Z.KU)()){e?.emit("endPageloadSpan")}function fn(e){let t=(0,ej.Bk)();if(t===e)return;let r=(0,Z.o5)();e.end=new Proxy(e.end,{apply:(e,n,i)=>((0,eH.r)(r,t),Reflect.apply(e,n,i))}),(0,eH.r)(r,e)}function fi(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function fa(e){return fi(e.getAllKeys())}function fo(e){let t;function r(){var r,n;let i,a;return void 0==t&&(r=e.dbName||"sentry-offline",n=e.storeName||"queue",(i=indexedDB.open(r)).onupgradeneeded=()=>i.result.createObjectStore(n),a=fi(i),t=e=>a.then(t=>e(t.transaction(n,"readwrite").objectStore(n)))),t}return{push:async t=>{try{var n,i;let a=await eM(t);await (n=r(),i=e.maxQueueSize||30,n(e=>fa(e).then(t=>{if(!(t.length>=i))return e.put(a,Math.max(...t,0)+1),fi(e.transaction)})))}catch{}},unshift:async t=>{try{var n,i;let a=await eM(t);await (n=r(),i=e.maxQueueSize||30,n(e=>fa(e).then(t=>{if(!(t.length>=i))return e.put(a,Math.min(...t,0)-1),fi(e.transaction)})))}catch{}},shift:async()=>{try{let e=await r()(e=>fa(e).then(t=>{let r=t[0];if(null!=r)return fi(e.get(r)).then(t=>(e.delete(r),fi(e.transaction).then(()=>t)))}));if(e)return function(e){let t="string"==typeof e?ek(e):e;function r(e){let r=t.subarray(0,e);return t=t.subarray(e+1),r}function n(){var e;let n,i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse((e=r(i),(n=(0,eO.Se)(J.O)).decodePolyfill?n.decodePolyfill(e):new TextDecoder().decode(e)))}let i=n(),a=[];for(;t.length;){let e=n(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?r(t):n()])}return[i,a]}(e)}catch{}}}}function fs(e=rQ){var t;return t=function(e){function t(...e){Q.T&&Y.Yz.log("[Offline]:",...e)}return r=>{let n,i=e(r);if(!r.createStore)throw Error("No `createStore` function was provided");let a=r.createStore(r),o=5e3;function s(e){n&&clearTimeout(n),n=e5(setTimeout(async()=>{n=void 0;let e=await a.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),u(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function l(){n||(s(o),o=Math.min(2*o,36e5))}async function u(e,n=!1){if(!n&&eP(e,["replay_event","replay_recording"]))return await a.push(e),s(100),{};
965try{if(r.shouldSend&&await r.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await i.send(e),n=100;if(t){if(t.headers?.["retry-after"])n=e7(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t}return s(n),o=5e3,t}catch(i){var c;if(await (c=o,!eP(e,["client_report"])&&(!r.shouldStore||r.shouldStore(e,i,c))))return n?await a.unshift(e):await a.push(e),l(),t("Error sending. Event queued.",i),{};throw i}}return r.flushAtStartup&&l(),{send:u,flush:e=>(void 0===e&&(o=5e3,s(100)),i.flush(e))}}}(e),e=>{let r=t({...e,createStore:fo});return tx.addEventListener("online",async e=>{await r.flush()}),r}}var fl=r(63625);let fu="window"in J.O&&J.O.window===J.O&&"u"<typeof importScripts,fc=String(0),fd=fu?"main":"worker",fp=tx.navigator,ff="",fh="",fm="",fg=fp?.userAgent||"",f_="",fy=fp?.language||fp?.languages?.[0]||"",fS=fp?.userAgentData;function fE(e){return"pageload"===(0,ej.et)(e).op}function fb(e){let t=(0,Z.KU)(),r=t?.getOptions(),n=r?.stackParser;return n?(0,fl.i)(n,e):[]}function fT(e){return!("number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e))&&(!0===e||!1===e||!(e<0)&&!(e>1))}"object"==typeof fS&&null!==fS&&"getHighEntropyValues"in fS&&fS.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(ff=e.platform||"",fm=e.architecture||"",f_=e.model||"",fh=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];fg=`${t.brand} ${t.version}`}}).catch(e=>void 0);let fv=!1;function fI(){let e=tx.Profiler;if("function"!=typeof e)return;let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){fv=!0}}function fA(e){if(fv||!e.isRecording())return!1;let t=(0,Z.KU)(),r=t?.getOptions();if(!r)return!1;let n=r.profilesSampleRate;return!!fT(n)&&!!n&&!!(!0===n||Math.random()<n)}function fR(e){return void 0!==e.profilesSampleRate}let fO=new Map;function fw(e){let t;fE(e)&&(t=1e3*(0,eW.zf)());let r=fI();if(!r)return;let n=(0,ea.eJ)(),i=null;async function a(){if(e&&r){if(!i)return r.stop().then(e=>{if(o&&(tx.clearTimeout(o),o=void 0),e){i=e;if(fO.set(n,e),fO.size>30){let e=fO.keys().next().value;void 0!==e&&fO.delete(e)}}}).catch(e=>{})}}(0,Z.o5)().setContext("profile",{profile_id:n,start_timestamp:t});let o=tx.setTimeout(()=>{a()},3e4),s=e.end.bind(e);e.end=function(){return e?(a().then(()=>{s()},()=>{s()}),e):s()}}class fN{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,r=function(e){if(fv||"trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return!1;let t=e.profileSessionSampleRate;return!!fT(t)&&!!t&&Math.random()<=t}(e.getOptions());this._profilerId=(0,ea.eJ)(),this._client=e,this._sessionSampled=r,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e)}start(){"trace"===this._lifecycleMode||this._isRunning||this._sessionSampled&&this._beginProfiling()}stop(){"trace"===this._lifecycleMode||this._isRunning&&this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;!t||this._activeRootSpanIds.has(t)||(this._registerTraceRootSpan(t),1===this._activeRootSpanIds.size&&this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,(0,Z.m6)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{}),"manual"===this._lifecycleMode&&(0,Z.m6)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled||e!==(0,ej.zU)(e)||!e.isRecording())return;let t=e.spanContext().spanId;!t||this._activeRootSpanIds.has(t)||(this._registerTraceRootSpan(t),1===this._activeRootSpanIds.size&&this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;t&&this._activeRootSpanIds.has(t)&&(this._activeRootSpanIds.delete(t),0===this._activeRootSpanIds.size&&(this._collectCurrentChunk().catch(e=>{}),this._endProfiling()))})}_resetProfilerInfo(){this._isRunning=!1,(0,Z.m6)().setContext("profile",{})}
965_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=fI();e&&(this._profiler=e)}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){!this._rootSpanTimeouts.has(e)||(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),r=function(e,t,r){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let n=function(e){let t=[];for(let r=0;r<e.frames.length;r++){let n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}let r=[];for(let t=0;t<e.stacks.length;t++){let n=e.stacks[t];if(!n)continue;let i=[],a=n;for(;a;)i.push(a.frameId),a=void 0===a.parentId?void 0:e.stacks[a.parentId];r[t]=i}let n=(0,eW.k3)(),i="number"==typeof performance.timeOrigin?performance.timeOrigin:n||0,a=i-(n||i),o=[];for(let t=0;t<e.samples.length;t++){let r=e.samples[t];if(!r)continue;let n=(i+(r.timestamp-a))/1e3;o[t]={stack_id:r.stackId??0,thread_id:fc,timestamp:n}}return{frames:t,stacks:r,samples:o,thread_metadata:{[fc]:{name:fd}}}}(e),i=t.getOptions(),a=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,ea.eJ)(),client_sdk:{name:a?.name??"sentry.javascript.browser",version:a?.version??"0.0.0"},profiler_id:r||(0,ea.eJ)(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:fb(e.resources)},profile:n}}(t,this._client,this._profilerId),n=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let r=e.profile;if(!r)return{reason:"missing profile data"};if(!Array.isArray(r.frames)||!r.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(r.stacks)||!r.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(r.samples)||!r.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(r);if("reason"in n)return;this._sendProfileChunk(r)}catch(e){}}_sendProfileChunk(e){let t=this._client,r=eL(t.getSdkMetadata?.()),n=t.getDsn(),i=t.getOptions().tunnel,a=eN({event_id:(0,ea.eJ)(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!i&&n&&{dsn:(0,eT.SB)(n)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(a).then(null,e=>{})}}let fC=()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),r=new fN;if(fR(t)||t.profileLifecycle||(t.profileLifecycle="manual"),fR(t)&&!t.profilesSampleRate)return;let n=(0,ej.Bk)(),i=n&&(0,ej.zU)(n);if(fR(t)&&t.profileSessionSampleRate,fR(t))i&&fE(i)&&fA(i)&&fw(i),e.on("spanStart",e=>{e===(0,ej.zU)(e)&&fA(e)&&fw(e)}),e.on("beforeEnvelope",e=>{let t;if(!fO.size)return;let r=(t=[],eC(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){let n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t);if(!r.length)return;let n=[];for(let e of r){let t=e?.contexts,r=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if("string"!=typeof r||!r)continue;t?.profile&&delete t.profile;let a=function(e){let t=fO.get(e);return t&&fO.delete(e),t}(r);if(!a)continue;let o=function(e,t,r,n){return!(r.samples.length<2)&&r.frames.length&&1?function(e,t,r,n){var i;let a;if("transaction"!==n.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);let o=("string"==typeof(a=n.contexts?.trace?.trace_id)&&a.length,"string"!=typeof a)?"":a,s="thread_metadata"in(i=r)?i:function(e){let t,r=0,n={samples:[],stacks:[],frames:[],thread_metadata:{[fc]:{name:fd}}},i=e.samples[0];if(!i)return n;let a=i.timestamp,o=(0,eW.k3)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:o||0,l=s-(o||s);
965return e.samples.forEach((i,o)=>{if(void 0===i.stackId){void 0===t&&(t=r,n.stacks[t]=[],r++),n.samples[o]={elapsed_since_start_ns:((i.timestamp+l-a)*1e6).toFixed(0),stack_id:t,thread_id:fc};return}let s=e.stacks[i.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===n.frames[s.frameId]&&(n.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}let c={elapsed_since_start_ns:((i.timestamp+l-a)*1e6).toFixed(0),stack_id:r,thread_id:fc};n.stacks[r]=u,n.samples[o]=c,r++}),n}(i),l=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:1e3*(0,eW.zf)()),u="number"==typeof n.timestamp?1e3*n.timestamp:1e3*(0,eW.zf)();return{event_id:e,timestamp:new Date(l).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||eA.U,runtime:{name:"javascript",version:tx.navigator.userAgent},os:{name:ff,version:fh,build_number:fg},device:{locale:fy,model:f_,manufacturer:fg,architecture:fm,is_emulator:!1},debug_meta:{images:fb(r.resources)},profile:s,transactions:[{name:n.transaction||"",id:n.event_id||(0,ea.eJ)(),trace_id:o,active_thread_id:fc,relative_start_ns:"0",relative_end_ns:((u-l)*1e6).toFixed(0)}]}}(e,t,r,n):null}(r,i,a,e);o&&n.push(o)}!function(e,t){if(t.length)for(let r of t)e[1].push([{type:"profile"},r])}(e,n)});else{let n=t.profileLifecycle;if(e.on("startUIProfiler",()=>r.start()),e.on("stopUIProfiler",()=>r.stop()),"manual"===n)r.initialize(e);else if("trace"===n){if(!(0,r8.f)(t))return;r.initialize(e),i&&r.notifyRootSpanActive(i),tx.setTimeout(()=>{let e=(0,ej.Bk)(),t=e&&(0,ej.zU)(e);t&&r.notifyRootSpanActive(t)},0)}}},processEvent:e=>(e?.contexts?.profile&&e.contexts&&(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":fc,"thread.name":fd}},e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":fc,"thread.name":fd}})),e)}),fP=(e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{},processEvent:e=>{var t;return"transaction"===(t=e).type&&t.spans&&t.contexts?.trace&&"ui.action.click"===t.contexts.trace.op&&t.spans.some(({description:e})=>e?.includes("#sentry-spotlight"))?null:e},afterAllSetup:e=>{var r,n;let i,a;r=e,n=t,i=rK("fetch"),a=0,r.on("beforeEnvelope",e=>{a>3?Y.Yz.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",a):i(n,{method:"POST",body:eM(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(a=0)},e=>{a++,Y.Yz.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}},fk=()=>({name:"LaunchDarkly",processEvent:(e,t,r)=>lE(e)});function fM(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,r)=>{lb(e,t.value),lT(e,t.value)}}}let fx=()=>({name:"OpenFeature",processEvent:(e,t,r)=>lE(e)});class fL{after(e,t){lb(t.flagKey,t.value),lT(t.flagKey,t.value)}error(e,t,r){lb(e.flagKey,e.defaultValue),lT(e.flagKey,e.defaultValue)}}let fU=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;(0,ep.GS)(t,"isEnabled",fD)},processEvent:(e,t,r)=>lE(e)});function fD(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n&&(lb(r,n),lT(r,n)),n}}function fB(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n&&(lb(r,n),lT(r,n)),n}}let fj=({growthbookClass:e})=>(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&(0,ep.GS)(t,"isOn",fB),"function"==typeof t.getFeatureValue&&(0,ep.GS)(t,"getFeatureValue",fB)},processEvent:(e,t,r)=>lE(e)}))({growthbookClass:e}),fF=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{lb(e.gate.name,e.gate.value),lT(e.gate.name,e.gate.value)})},processEvent:(e,t,r)=>lE(e)});async function f$(){let e=(0,Z.KU)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";let t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await n_(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let fG=({worker:e})=>({name:"WebWorker",setupOnce:()=>
965{(Array.isArray(e)?e:[e]).forEach(e=>fH(e))},addWorker:e=>fH(e)});function fH(e){e.addEventListener("message",e=>{if(function(e){if(!(0,e$.Qd)(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,r="_sentryModuleMetadata"in e,n="_sentryWorkerError"in e,i="_sentryWasmImages"in e;return(!!t||!!r||!!n||!!i)&&(!t||!!((0,e$.Qd)(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!r||!!((0,e$.Qd)(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!n||!!(0,e$.Qd)(e._sentryWorkerError))&&(!i||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>(0,e$.Qd)(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(tx._sentryDebugIds={...e.data._sentryDebugIds,...tx._sentryDebugIds}),e.data._sentryModuleMetadata&&(tx._sentryModuleMetadata={...e.data._sentryModuleMetadata,...tx._sentryModuleMetadata}),e.data._sentryWasmImages){let t=tx._sentryWasmImages||[],r=e.data._sentryWasmImages.filter(e=>(0,e$.Qd)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));tx._sentryWasmImages=[...t,...r]}e.data._sentryWorkerError&&function(e){let t=(0,Z.KU)();if(!t)return;let r=t.getOptions().stackParser,n=t.getOptions().attachStacktrace,i=e.reason,a=(0,e$.sO)(i)?rI(i):tP(r,i,void 0,n,!0);a.level="error",e.filename&&(a.contexts={...a.contexts,worker:{filename:e.filename}}),(0,X.r)(a,{originalException:i,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}})}(e.data._sentryWorkerError)}})}function fW({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let r={reason:rv(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r})})}function fz(e,{componentStack:t},r){let n;if(null!==(n=r2.version.match(/^([^.]+)/))&&parseInt(n[0])>=17&&(0,e$.bJ)(e)&&t){let r,n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,r=new WeakSet,function e(t,n){if(!r.has(t)){if(t.cause)return r.add(t),e(t.cause,n);t.cause=n}}(e,n)}return(0,Z.v4)(n=>(n.setContext("react",{componentStack:t}),(0,X.Cp)(e,r)))}function fq(e){return(t,r)=>{let n=!!e,i=fz(t,r,{mechanism:{handled:n,type:"auto.function.react.error_handler"}});n&&e(t,r,i)}}let fJ="ui.react.render",fY="ui.react.mount",fV={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},fK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},fQ=Symbol.for("react.forward_ref"),fZ=Symbol.for("react.memo"),f0={};function f1(e){if("object"==typeof e&&null!==e&&e.$$typeof===fZ)return fX;let t=e.$$typeof;return t&&f0[t]||fV}f0[fQ]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},f0[fZ]=fX;let f2=Object.defineProperty.bind(Object),f3=Object.getOwnPropertyNames.bind(Object),f5=Object.getOwnPropertySymbols?.bind(Object),f6=Object.getOwnPropertyDescriptor.bind(Object),f4=Object.getPrototypeOf.bind(Object),f8=Object.prototype;function f7(e,t,r){if("string"!=typeof t){if(f8){let r=f4(t);r&&r!==f8&&f7(e,r)}let r=f3(t);f5&&(r=r.concat(f5(t)));let n=f1(e),i=f1(t);for(let a of r)if(!fK[a]&&!i?.[a]&&!n?.[a]&&!f6(e,a)){let r=f6(t,a);if(r)try{f2(e,a,r)}catch(e){}}}return e}class f9 extends r2.Component{constructor(e){super(e);const{name:t,disabled:r=!1}=this.props;if(r)return;this._mountSpan=nh({name:`<${t}>`,onlyIfParent:!0,op:fY,attributes:{[em.JD]:"auto.ui.react.profiler","ui.component_name":t}})}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=(0,eW.zf)();this._updateSpan=ng(this._mountSpan,()=>nh({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[em.JD]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=(0,eW.zf)(),{name:t,includeRender:r=!0}=this.props;if(this._mountSpan&&r){let r=(0,ej.et)(this._mountSpan).timestamp;ng(this._mountSpan,()=>{let n=nh({onlyIfParent:!0,name:`<${t}>`,op:fJ,startTime:r,attributes:{[em.JD]:"auto.ui.react.profiler","ui.component_name":t}});n&&n.end(e)})}}render(){return this.props.children}}function he(e,t){let r=t?.name||e.displayName||e.name||"unknown",n=n=>r2.createElement(f9,{...t,name:r,updateProps:n},r2.createElement(e,{...n}));return n.displayName=`profiler(${r})`,f7(n,e),n}function ht(e,t={disabled:!1,hasRenderSpan:!0}
965){let[r]=r2.useState(()=>{if(!t?.disabled)return nh({name:`<${e}>`,onlyIfParent:!0,op:fY,attributes:{[em.JD]:"auto.ui.react.profiler","ui.component_name":e}})});r2.useEffect(()=>(r&&r.end(),()=>{if(r&&t.hasRenderSpan){let t=(0,ej.et)(r).timestamp,n=(0,eW.zf)(),i=nh({name:`<${e}>`,onlyIfParent:!0,op:fJ,startTime:t,attributes:{[em.JD]:"auto.ui.react.profiler","ui.component_name":e}});i&&i.end(n)}}),[])}Object.assign(f9,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});let hr={componentStack:null,error:null,eventId:null};class hn extends r2.Component{constructor(e){super(e),this.state=hr,this._openFallbackReportDialog=!0;const t=(0,Z.KU)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&ub({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:r}=t,{beforeCapture:n,onError:i,showDialog:a,dialogOptions:o}=this.props;(0,Z.v4)(s=>{n&&n(s,e,r);let l=fz(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});i&&i(e,r,l),a&&(this._lastEventId=l,this._openFallbackReportDialog&&ub({...o,eventId:l})),this.setState({error:e,componentStack:r,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:r}=this.state,{onUnmount:n}=this.props;n&&(this.state===hr?n(null,null,null):n(e,t,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:r,eventId:n}=this.state;e&&e(t,r,n),this.setState(hr)}render(){let{fallback:e,children:t}=this.props,r=this.state;if(null===r.componentStack)return"function"==typeof t?t():t;let n="function"==typeof e?r2.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):e;return r2.isValidElement(n)?n:null}}function hi(e,t){let r=e.displayName||e.name||"unknown",n=r2.memo(r=>r2.createElement(hn,{...t},r2.createElement(e,{...r})));return n.displayName=`errorBoundary(${r})`,f7(n,e),n}let ha={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function ho(e){let t={...ha,...e};return e=>(r,n)=>{function i(e){return(r,n)=>{let i=e(r,n),a=(0,Z.o5)(),o=t.actionTransformer(n);null!=o&&(0,t1.Z)({category:"redux.action",data:o,type:"info"});let s=t.stateTransformer(i);if(null!=s){let e=(0,Z.KU)(),t=e?.getOptions(),r=t?.normalizeDepth||3,n={state:{type:"redux",value:s}};(0,ep.my)(n,"__sentry_override_normalization_depth__",3+r),a.setContext("state",n)}else a.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(a,i),i}}t.attachReduxState&&(0,Z.m6)().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});let a=e(i(r),n);return a.replaceReducer=new Proxy(a.replaceReducer,{apply:function(e,t,r){e.apply(t,[i(r[0])])}}),a}}function hs(e){let t=iK({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,match:i,instrumentPageLoad:a=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),a&&tx.location&&hl(n,tx.location,i,(t,r="url")=>{iX(e,{name:t,attributes:{[em.uT]:"pageload",[em.JD]:"auto.pageload.react.reactrouter_v3",[em.i_]:r}})}),o&&r.listen&&r.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&hl(n,t,i,(t,r="url")=>{iQ(e,{name:t,attributes:{[em.uT]:"navigation",[em.JD]:"auto.navigation.react.reactrouter_v3",[em.i_]:r}})})})}}}function hl(e,t,r,n){let i=t.pathname;r({location:t,routes:e},(e,t,r)=>{if(e||!r)return n(i);let a=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),r=-1;for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.path?.startsWith("/")){r=e;break}}return t.slice(r).reduce((e,{path:t})=>{let r="/"===e||""===e?t:`/${t}`;return`${e}${r}`},"")}(r.routes||[]);return 0===a.length||"/*"===a?n(i):n(i=a,"route")})}function hu(e,t={}){let r=iK({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:i=!0}=t;return{...r,afterAllSetup(t){r.afterAllSetup(t);let a=tx.location;if(n&&a){let r=e.matchRoutes(a.pathname,e.options.parseSearch(a.search),{preload:!1,throwOnError:!1}),n=r[r.length-1],i=n?.routeId!=="__root__"?n:void 0;iX(t,{name:i?i.routeId:a.pathname,attributes:{[em.uT]:"pageload",[em.JD]:"auto.pageload.react.tanstack_router",[em.i_]:i?"route":"url",...hc(i)}})}i&&e.subscribe("onBeforeNavigate",r=>{if(!r.fromLocation||r.toLocation.state===r.fromLocation.state)return;let n=e.matchRoutes(r.toLocation.pathname,r.toLocation.search,{preload:!1,throwOnError:!1}),i=n[n.length-1],a=i?.routeId!=="__root__"?i:void 0,o=tx.location,s=iQ(t,{name:a?a.routeId:o.pathname,attributes:{[em.uT]:"navigation",[em.JD]:"auto.navigation.react.tanstack_router",[em.i_]:a?"route":"url"}}),l=e.subscribe("onResolved",t=>{if(l(),s){let r=e.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),n=r[r.length-1],i=n?.routeId!=="__root__"?n:void 0;i&&(s.updateName(i.routeId),s.setAttribute(em.i_,"route"),s.setAttributes(hc(i)))}})})}}}function hc(e){if(!e)return{};let t={};
965return Object.entries(e.params).forEach(([e,r])=>{t[`url.path.params.${e}`]=r,t[`url.path.parameter.${e}`]=r,t[`params.${e}`]=r}),t}function hd(e){let t=iK({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:i,instrumentPageLoad:a=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),hf(e,a,o,r,"reactrouter_v4",n,i)}}}function hp(e){let t=iK({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:i,instrumentPageLoad:a=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),hf(e,a,o,r,"reactrouter_v5",n,i)}}}function hf(e,t,r,n,i,a=[],o){function s(e){if(0===a.length||!o)return[e,"url"];for(let t of function e(t,r,n,i=[]){return t.some(t=>{let a=t.path?n(r,t):i.length?i[i.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===r};return a&&(i.push({route:t,match:a}),t.routes&&e(t.routes,r,n,i)),!!a}),i}(a,e,o))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=n.location?n.location.pathname:tx.location?tx.location.pathname:void 0;if(t){let[r,n]=s(t);iX(e,{name:r,attributes:{[em.uT]:"pageload",[em.JD]:`auto.pageload.react.${i}`,[em.i_]:n}})}}r&&n.listen&&n.listen((t,r)=>{if(r&&("PUSH"===r||"POP"===r)){let[r,n]=s(t.pathname);iQ(e,{name:r,attributes:{[em.uT]:"navigation",[em.JD]:`auto.navigation.react.${i}`,[em.i_]:n}})}})}function hh(e){let t=e.displayName||e.name,r=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,r=function(){let e=(0,ej.Bk)(),t=e&&(0,ej.zU)(e);if(!t)return;let r=(0,ej.et)(t).op;return"navigation"===r||"pageload"===r?t:void 0}();(0,Z.o5)().setTransactionName(e),r&&(r.updateName(e),r.setAttribute(em.i_,"route"))}return r2.createElement(e,{...t})};return r.displayName=`sentryRoute(${t})`,f7(r,e),r}function hm(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?e:e.slice(r)||"/"}let hg=new WeakMap;function h_(e,t){return void 0!==e&&void 0!==t&&(!!hS.test(t)||e===t)}function hy(e){return e.split("/").filter(Boolean)}let hS=/^:[\w-]+$/;function hE(e){let t=e.split("/"),r=t.length;for(let e of(t.includes("*")&&(r+=-2),t))if("*"===e)continue;else hS.test(e)?r+=3:""===e?r+=1:r+=10;return r}let hb=!1,hT=[];function hv(){let e=hT.length;return e>0?hT[e-1]??null:null}function hI(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function hA(e){return e.endsWith("*")}function hR(e){return e.includes("/*")||e.endsWith("*")}function hO(e,t){return hA(e)&&!!t.route.children?.length||!1}function hw(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function hN(e){return"/"===e[0]?e:`/${e}`}function hC(e,t){return hb?hm(e.pathname,t):e.pathname||""}function hP(e,t,r,n,i="",a,o){let s;if(o&&a&&a.length>0){let t=function(e,t,r){if(!e||!t||!t.length)return null;let n=r?hm(e,r):e,i=hg.get(t);for(let e of(i||(i=[...t].sort((e,t)=>{let r=hE(e);return hE(t)-r}),hg.set(t,i)),i))if(function(e,t){if("/"===t)return"/"===e||""===e;let r=hy(e),n=hy(t);if(n.length>0&&"*"===n[n.length-1]){let e=n.slice(0,-1);if(r.length<e.length)return!1;for(let[t,n]of e.entries())if(!h_(r[t],n))return!1;return!0}if(r.length!==n.length)return!1;for(let[e,t]of n.entries())if(!h_(r[e],t))return!1;return!0}(n,e))return e;return null}(e.pathname,a,i);if(t)return[(hb?"":i)+t,"route"]}let l="url",u=function(e,t){let r=T(t,e);if(r)for(let e of r){var n;if(!(n=e.route).children&&n.element&&n.path?.endsWith("/*")&&e.params["*"])return!0}return!1}(e,r);return u&&(s=hN(function e(t,r){let n=T(t,r);if(!n||0===n.length)return"";for(let a of n)if(a.route.path&&"*"!==a.route.path){var i;let n="*"===(i=a.route.path||"")[i.length-1]?i.slice(0,-1):i,o=hm(r.pathname,hN(a.pathnameBase));if(r.pathname===o)return hI(o);return hI(hI(n||"")+hN(e(t.filter(e=>e!==a.route),{pathname:o})))}return""}(r,e)),l="route"),u&&s||([s,l]=function(e,t,r,n=""){if(!e||0===e.length)return[hb?hm(t.pathname,n):t.pathname,"url"];if(!r)return[hC(t,n),"url"];let i="";for(let e of r){let r=e.route;if(!r)continue;if(r.index)return function(e,t,r){let n=e&&e.length>0?e:hb?hm(t,r):t,i="/*"===n.slice(-2)?n.slice(0,-2):n;return i.length>1&&"/"===i[i.length-1]&&(i=i.slice(0,-1)),[i,"route"]}(i,e.pathname,n);let a=r.path;if(!a||hO(a,e))continue;let o="/"===a[0]||"/"===i[i.length-1]?a:`/${a}`;if(i=hI(i)+hN(o),hI(t.pathname)===hI(n+e.pathname)){if(hw(i)!==hw(e.pathname)&&!hA(i))return[(hb?"":n)+o,"route"];return hO(i,e)&&(i=i.slice(0,-1)),[(hb?"":n)+i,"route"]}}return[hC(t,n),"url"]}(t,e,n,i)),[s||e.pathname,l]}function hk(){let e=(0,ej.Bk)(),t=e?(0,ej.zU)(e):void 0;if(!t)return;let r=(0,ej.et)(t).op;return"navigation"===r||"pageload"===r?t:void 0}function hM(e,t){if(e.handle&&"object"==typeof e.handle)for(let r of Object.keys(e.handle)){let n=e.handle[r];"function"!=typeof n||n.__sentry_proxied__||(e.handle[r]=function(e,t,r,n){let i=new Proxy(e,{apply(e,r,i
965){let a,o=function(){let e=hv();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==tx)try{let e=tx.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{}return null}(),s=(a=hv())?a.span:hk(),l=e.apply(r,i);return function(e,t,r,n,i){(0,e$.Qg)(e)?e.then(e=>{Array.isArray(e)&&r(e,t,n??void 0,i)}).catch(e=>{}):Array.isArray(e)&&r(e,t,n??void 0,i)}(l,t,n,o,s),l}});return(0,ep.my)(i,"__sentry_proxied__",!0),i}(n,e,r,t))}if(Array.isArray(e.children))for(let r of e.children)hM(r,t)}let hx=!1,hL=3e3,hU="",hD=new WeakSet,hB=new WeakMap,hj=new Set,hF=new WeakMap,h$=new WeakMap;function hG(e){tx?.cancelAnimationFrame?tx.cancelAnimationFrame(e):clearTimeout(e)}function hH(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function hW(e){return e.includes(":")||e.includes("*")}function hz(e,t){let r=t.children||[],n=e.filter(e=>!r.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));n.length>0&&(t.children=[...r,...n])}function hq(e,t){let r=hF.get(e);r||(r=new Set,hF.set(e,r)),r.add(t),t.finally(()=>{let r=hF.get(e);r&&r.delete(t)})}function hJ(e){let t=new Promise(t=>{h$.set(e,t)});hq(e,t)}function hY(e,t,r=null,n){e.forEach(e=>{hj.add(e),hx&&hM(e,hY)}),t&&hz(e,t);let i=n??hk();if(i){let e=(0,ej.et)(i);if(e.timestamp)return;let t=e.op,a=r;if(!a&&!n&&void 0!==tx){let e=tx.location;e?.pathname&&(a={pathname:e.pathname})}a&&("pageload"===t?h5({activeRootSpan:i,location:{pathname:a.pathname},routes:Array.from(hj),allRoutes:Array.from(hj)}):"navigation"===t&&hV(i,a,Array.from(hj),!1,O))}}function hV(e,t,r,n=!1,i){let a=(0,ej.et)(e),o=a.description,s=e?.__sentry_navigation_name_set__,l=o&&hR(o);if((!s||n||l)&&!a.timestamp){let n=i(r,t),[u,c]=hP(t,r,r,n||[],hU,w,hx),d=a.data?.[em.i_];u&&(!o||!s&&("route"!==d||"route"===c)||"route"!==d&&"route"===c||"route"===d&&"route"===c&&l)&&(e.updateName(u),e.setAttribute(em.i_,c),hR(u)||"route"!==c||(0,ep.my)(e,"__sentry_navigation_name_set__",!0))}}function hK(e,t,r,n,i){let a=!1,o=!!i&&"pageload"===(0,ej.et)(i).op,s=!1,l=null,u=null;e.subscribe(e=>{if(!a){let t=hk();t&&"pageload"===(0,ej.et)(t).op?o=!0:o&&("POP"!==e.historyAction||s?a=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&a){let i=hH(e.location),a=()=>{u!==i&&(u=i,l=null,h2({location:e.location,routes:t,navigationType:e.historyAction,version:r,basename:n,allRoutes:Array.from(hj)}))};if("idle"!==e.navigation.state)u!==i&&(u=null),null!==l&&hG(l),l=tx?.requestAnimationFrame?tx.requestAnimationFrame(a):setTimeout(a,0);else null!==l&&(hG(l),l=null),a()}})}function hX(e,t){return v&&I&&A&&O?function(r,n){if(h3(r),hx)for(let e of r)hM(e,hY);let i=hk();n&&"patchRoutesOnNavigation"in n&&"function"==typeof n.patchRoutesOnNavigation&&i&&((0,ep.my)(i,"__sentry_may_have_lazy_routes__",!0),hJ(i));let a=e(r,h1(n,!1,i)),o=n?.basename;return"POP"===a.state.historyAction&&i&&h5({activeRootSpan:i,location:a.state.location,routes:r,basename:o,allRoutes:Array.from(hj)}),hU=o||"",hK(a,r,t,o,i),a}:e}function hQ(e,t){return v&&I&&A&&O?function(r,n){let i;if(h3(r),hx)for(let e of r)hM(e,hY);let a=hk();n&&"patchRoutesOnNavigation"in n&&"function"==typeof n.patchRoutesOnNavigation&&a&&((0,ep.my)(a,"__sentry_may_have_lazy_routes__",!0),hJ(a));let o=e(r,h1(n,!0,a)),s=n?.basename,l=n?.initialEntries,u=n?.initialIndex,c=l&&1===l.length,d=void 0!==u&&l&&l[u],p=(i=c?l[0]:d?l[u]:void 0)?"string"==typeof i?{pathname:i}:i:o.state.location,f=hk();return"POP"===o.state.historyAction&&f&&h5({activeRootSpan:f,location:p,routes:r,basename:s,allRoutes:Array.from(hj)}),hU=s||"",hK(o,r,t,s,f),o}:e}function hZ(e,t){let r=iK({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:i,useNavigationType:a,createRoutesFromChildren:o,matchRoutes:s,stripBasename:l,enableAsyncRouteHandlers:u=!1,instrumentPageLoad:c=!0,instrumentNavigation:d=!0,lazyRouteTimeout:p,lazyRouteManifest:f}=e;return{...r,setup(t){r.setup(t);let c=e.finalTimeout??3e4,d=(e.idleTimeout??1e3)*3,h=p??d;hL=h===1/0?c:Number.isNaN(h)?d:h<0?d:h,v=n,I=i,A=a,O=s,R=o,hx=u,w=f,function(e,t=!1){T=e,hb=t}(s,l||!1)},afterAllSetup(e){r.afterAllSetup(e);let n=tx.location?.pathname;c&&n&&iX(e,{name:n,attributes:{[em.i_]:"url",[em.uT]:"pageload",[em.JD]:`auto.pageload.react.reactrouter_v${t}`}}),d&&hD.add(e)}}}function h0(e,t){if(!v||!I||!A||!O)return e;let r=r=>{let n=r2.useRef(!0),{routes:i,locationArg:a}=r,o=e(i,a),s=I(),l=A(),u="string"==typeof a||a?.pathname?a:s;return v(()=>{let e="string"==typeof u?{pathname:u}:u;n.current?(h3(i),h5({activeRootSpan:hk(),location:e,routes:i,allRoutes:Array.from(hj)}),n.current=!1):h2({location:e,routes:i,navigationType:l,version:t,allRoutes:Array.from(hj)})},[l,u]),o};return(e,t)=>r2.createElement(r,{routes:e,locationArg:t})}function h1(e,t=!1,r){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let n=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let i=e?.path,a=hk()??r;if(!t){let t=e?.patch,r=e?.matches;t&&(e.patch=(e,n)=>{if(h3(n),r&&r.length>0){let t=r[r.length-1],i=t?.route;if(i){let t=Array.from(hj).find(t=>{let r=void 0!==t.id&&t.id===e,n=t===i,a=void 0!==t.path&&void 0!==i.path&&t.path===i.path;return r||n||a});t&&hz(n,t)}}let o=a?(0,ej.et)(a):void 0;return i&&a&&o&&!o.timestamp&&"navigation"===o.op&&hV(a,{pathname:i,search:"",hash:"",state:null,key:"default"},Array.from(hj),!0,O),t(e,n)})}let o=(async()=>{let t,r,o=(r={},hT.length>=10&&hT.shift(),hT.push({token:r,targetPath:i,span:a}),r);try{t=await n(e)}finally{let e,t;e=hT[hT.length-1],e?.token===o&&hT.pop(),a&&(t=h$.get(a))&&(t(),h$.delete(a),a.__sentry_may_have_lazy_routes__&&(a.__sentry_may_have_lazy_routes__=!1))}let s=a?(0,ej.et)(a):void 0;return a&&s&&!s.timestamp&&"navigation"===s.op&&i&&hV(a,{pathname:i,search:"",hash:"",state:null,key:"default"},Array.from(hj),!1,O),t})();return a&&hq(a,o),o}}}function h2(e){let{location:t,routes:r,navigationType:n,version:i,matches:a,basename:o,allRoutes:s}=e,l=Array.isArray(a)?a:O(s||r,t,o),u=(0,Z.KU)();if(!u||!hD.has(u))return;let c=hk();if((!c||"pageload"!==(0,ej.et)(c).op||"POP"!==n)&&("PUSH"===n||"POP"===n)&&l){let e,[n,a]=hP(t,s||r,s||r,l,o,w,hx),c=hH(t),d=hB.get(u),p=!!d&&!d.isPlaceholder&&!!(0,ej.et)(d.span).timestamp,{skip:f,shouldUpdate:h}=function(e,t,r,n){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!n)){let t=!!e.routeName&&hR(e.routeName),n=hR(r),i=!!e.routeName&&hW(e.routeName),a=hW(r),o=r!==e.routeName&&r.length>(e.routeName?.length||0)&&!n;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!n||!i&&a||o))}}return{skip:!1,shouldUpdate:!1}}(d,c,n,p);if(f){h&&d&&(d.routeName,d.isPlaceholder||(d.span.updateName(n),d.span.setAttribute(em.i_,a),(0,ep.my)(d.span,"__sentry_navigation_name_set__",!0)),d.routeName=n);return}let m={span:{end:()=>{}},routeName:n,pathname:t.pathname,locationKey:c,isPlaceholder:!0};hB.set(u,m);try{e=iQ(u,{name:m.routeName,attributes:{[em.i_]:a,[em.uT]:"navigation",[em.JD]:`auto.navigation.react.reactrouter_v${i}`}})}catch(e){throw hB.delete(u),e}e?(hB.set(u,{span:e,routeName:m.routeName,pathname:t.pathname,locationKey:c}),h4(e,t,r,o,"navigation")):hB.delete(u)}}
965function h3(e){e.forEach(e=>{(function e(t,r=new Set){return r.has(t)||(r.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,r).forEach(e=>{r.add(e)})})),r})(e).forEach(e=>{hj.add(e)})})}function h5({activeRootSpan:e,location:t,routes:r,matches:n,basename:i,allRoutes:a}){let o=Array.isArray(n)?n:O(a||r,t,i);if(o){let[n,s]=hP(t,a||r,a||r,o,i,w,hx);(0,Z.o5)().setTransactionName(n||"/"),e&&(e.updateName(n),e.setAttribute(em.i_,s),h4(e,t,r,i,"pageload"))}else e&&h4(e,t,r,i,"pageload")}function h6(e,t,r,n,i,a,o,s){try{let l=t.data?.[em.i_];if("route"===l&&r&&!hR(r))return;let u=Array.from(s),c=u.length>0?u:i,d=O(c,n,a);if(!d)return;let[p,f]=hP(n,c,c,d,a,w,hx),h=function(e,t,r,n,i=!1){return!!r&&(!!(!e&&i||e&&hR(e)&&"route"===n&&!hR(r))||"route"!==t&&"route"===n)}(r,l,p,f,!0),m="pageload"===o||!t.timestamp;h&&m&&(e.updateName(p),e.setAttribute(em.i_,f))}catch(e){}}function h4(e,t,r,n,i){let a=`__sentry_${i}_end_patched__`;if(e?.[a]||!e.end)return;let o=e.end.bind(e),s=!1;e.end=function(...a){if(s)return;s=!0;let l=a.length>0?a[0]:Date.now()/1e3,u=(0,ej.et)(e),c=u.description,d=u.data?.[em.i_],p=()=>{let t=(0,Z.KU)();if(t&&"navigation"===i){let r=hB.get(t);r&&r.span===e&&hB.delete(t)}},f=hF.get(e),h=e.__sentry_may_have_lazy_routes__;if((f&&f.size>0||h)&&c&&(hR(c)||"route"!==d)){let a;if(0===hL){h6(e,u,c,t,r,n,i,hj),p(),o(l);return}let s=new Promise(e=>setTimeout(e,hL));if(f&&f.size>0){let e=Promise.allSettled(f).then(()=>{});a=hL===1/0?e:Promise.race([e,s])}else a=s;a.then(()=>{let a=(0,ej.et)(e);h6(e,a,a.description,t,r,n,i,hj),p(),o(l)}).catch(()=>{p(),o(l)});return}h6(e,u,c,t,r,n,i,hj),p(),o(l)},(0,ep.my)(e,a,!0)}function h8(e,t){if(!v||!I||!A||!R||!O)return e;let r=r=>{let n=r2.useRef(!0),i=I(),a=A();return v(()=>{let e=R(r.children);n.current?(h3(e),h5({activeRootSpan:hk(),location:i,routes:e,allRoutes:Array.from(hj)}),n.current=!1):h2({location:i,routes:e,navigationType:a,version:t,allRoutes:Array.from(hj)})},[i,a]),r2.createElement(e,{...r})};return f7(r,e),r}function h7(e){return hZ(e,"6")}function h9(e){return h0(e,"6")}function me(e){return hX(e,"6")}function mt(e){return hQ(e,"6")}function mr(e){return h8(e,"6")}function mn(e){return hZ(e,"7")}function mi(e){return h8(e,"7")}function ma(e){return hX(e,"7")}function mo(e){return hQ(e,"7")}function ms(e){return h0(e,"7")}var ml=r(57464),mu=r(66400);function mc(e,t,r){(0,Z.v4)(n=>{n.setSDKProcessingMetadata({normalizedRequest:{headers:(0,ml.WK)(t.headers),method:t.method}}),n.setContext("nextjs",{request_path:t.path,router_kind:r.routerKind,router_path:r.routePath,route_type:r.routeType}),n.setTransactionName(`${t.method} ${r.routePath}`),(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),(0,mu.a0)((0,mu.aj)())})}var md=r(85890),mp=r(25335),mf=r(68336);function mh(){return mf.env.NEXT_PHASE===mp.PHASE_PRODUCTION_BUILD}function mm(e){let t=mh(),r=!!e&&function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return r&&r3.T&&Y.Yz.log("Skipping span creation in Cache Components context"),t||r}function mg(){return new r9({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}function m_(e,t){return mm(t)?t(mg()):np(e,t)}function my(e,t){if(mm(t)){let e=mg();return t(e,()=>e.end())}return nf(e,t)}function mS(e){return mm()?mg():nh(e)}function mE(...e){if("function"==typeof e[1]){let[t,r]=e;return mb(t,{},r)}{let[t,r,n]=e;return mb(t,r,n)}}async function mb(e,t,r){return(0,Z.rB)(async n=>{let i,a,o=(0,Z.KU)()?.getOptions().sendDefaultPii,s={};try{let e=await t.headers;i=e?.get("sentry-trace")??void 0,a=e?.get("baggage"),e?.forEach((e,t)=>{s[t]=e})}catch{r3.T&&Y.Yz.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return n.setTransactionName(`serverAction/${e}`),n.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),((0,ej.Bk)()?(e,t)=>t():nm)({sentryTrace:i,baggage:a},async()=>{try{return await np({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[em.i_]:"route",[em.JD]:"auto.function.nextjs.server_action"}},async e=>{let n=await nu(r,t=>{r6(t)?e.setStatus({code:no.TJ,message:"not_found"}):r4(t)||(e.setStatus({code:no.TJ,message:"internal_error"}),(0,X.Cp)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:o)&&(0,Z.rm)().setExtra("server_action_result",n),t.formData&&t.formData.forEach((e,t)=>{(0,Z.rm)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),n})}finally{(0,mu.a0)((0,mu.aj)())}})})}function mT(e,t){return new Proxy(e,{apply:(e,r,n)=>{let i;if(!n?.[0])return e.apply(r,n);let[a]=n,o="nextUrl"in a?a.nextUrl.pathname:a.url,s="nextUrl"in a?a.headers.get("user-agent"):a.headers["user-agent"];if(!t||!s?.includes("vercel-cron"))return e.apply(r,n);let l=t.find(e=>e.path===o);if(!l?.path||!l.schedule)return e.apply(r,n);let u=l.path,c=(0,X.SE)({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),d=(0,e8.Wk)()/1e3,p=()=>{(0,X.SE)({checkInId:c,monitorSlug:u,status:"error",duration:(0,e8.Wk)()/1e3-d})};try{i=e.apply(r,n)}catch(e){throw p(),e}return"object"==typeof i&&null!==i&&"then"in i?Promise.resolve(i).then(()=>{(0,X.SE)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,e8.Wk)()/1e3-d})},()=>{p()}):(0,X.SE)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,e8.Wk)()/1e3-d}),i}})}function mv(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,X.Cp)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function mI(e,t,r,n){return async function(...r){let i=(0,ml.Iv)(t);(0,Z.o5)().setTransactionName(`${n.dataFetchingMethodName} (${n.dataFetcherRouteName})`),(0,Z.rm)().setSDKProcessingMetadata({normalizedRequest:i});let a=(0,ej.Bk)();a&&"/_error"!==n.requestedRouteName&&(0,ej.zU)(a).setAttribute("sentry.route_backfill",n.requestedRouteName);let{"sentry-trace":o,baggage:s}=ix();return{sentryTrace:o,baggage:s,data:await e.apply(this,r)}}}async function mA(e,t){try{return await e(...t)}catch(e){throw(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}function mR(e){return new Proxy(e,{apply:async(e,t,r)=>{if(mh())return e.apply(t,r);let[n]=r,{req:i,res:a}=n.ctx,o=mv(e);
965if(!i||!a)return o.apply(t,r);{let e=mI(o,i,a,{dataFetcherRouteName:"/_app",requestedRouteName:n.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:u}=await e.apply(t,r);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),u&&(s.pageProps._sentryBaggage=u)),s}}})}function mO(e){return new Proxy(e,{apply:async(e,t,r)=>{if(mh())return e.apply(t,r);let[n]=r,{req:i,res:a}=n,o=mv(e);if(!i||!a)return o.apply(t,r);{let e=mI(o,i,a,{dataFetcherRouteName:"/_document",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,r);return s}}})}function mw(e){return new Proxy(e,{apply:async(e,t,r)=>{if(mh())return e.apply(t,r);let[n]=r,{req:i,res:a}=n,o=mv(e);if(!i||!a)return o.apply(t,r);{let e=mI(o,i,a,{dataFetcherRouteName:"/_error",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,r);return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function mN(e,t){return new Proxy(e,{apply:(e,r,n)=>{let i,a=(0,Z.rm)();try{i=t.requestAsyncStorage?.getStore()?.headers}catch{}let o=i?(0,ml.NI)(i):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:o}}),nu(()=>e.apply(r,n),e=>{let r=(0,ej.Bk)(),{componentRoute:n,componentType:i,generationFunctionIdentifier:o}=t,s=!0;a.setTransactionName(`${i}.${o} (${n})`),r&&(r6(e)?(s=!1,r.setStatus({code:no.TJ,message:"not_found"})):r4(e)?(s=!1,r.setStatus({code:no.F3})):r.setStatus({code:no.TJ,message:"internal_error"})),s&&(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:o}}})},()=>{(0,mu.a0)((0,mu.aj)())})}})}function mC(e){return new Proxy(e,{apply:async(e,t,r)=>{if(mh())return e.apply(t,r);let[n]=r,{req:i,res:a}=n,o=mv(e);if(!i||!a)return o.apply(t,r);{let e=mI(o,i,a,{dataFetcherRouteName:n.pathname,requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,r)??{};return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})}function mP(e,t){return new Proxy(e,{apply:async(e,r,n)=>{if(mh())return e.apply(r,n);let[i]=n,{req:a,res:o}=i,s=mI(mv(e),a,o,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:u,sentryTrace:c}=await s.apply(r,n);return"object"==typeof l&&null!==l&&"props"in l&&(c&&(l.props._sentryTraceData=c),u&&(l.props._sentryBaggage=u)),l}})}function mk(e,t){return new Proxy(e,{apply:async(e,t,r)=>mh()?e.apply(t,r):mA(mv(e),r)})}function mM(e){return new Proxy(e,{apply:async(e,t,r)=>{let n="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(n&&"string"==typeof n){let e=r[0];if(e instanceof Request&&new URL(e.url).pathname.startsWith(n))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}return(0,Z.rB)(n=>{let i,a,o=r[0],s=(0,Z.o5)();o instanceof Request?(n.setSDKProcessingMetadata({normalizedRequest:(0,ml.xF)(o)}),i=`middleware ${o.method}`,a="url"):(i="middleware",a="component"),s.setTransactionName(i);let l=(0,ej.Bk)();if(l){i="middleware",a="component";let e=(0,ej.zU)(l);e&&(0,nr.d)(e,s,n)}return np({name:i,op:"http.server.middleware",attributes:{[em.i_]:a,[em.JD]:"auto.function.nextjs.wrap_middleware"}},()=>nu(()=>e.apply(t,r),e=>{(0,X.Cp)(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{(0,mu.a0)((0,mu.aj)())}))})}})}function mx(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return(0,Z.rB)(()=>{let t=(0,Z.o5)(),r="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(r){let e=(0,nc.nc)(r);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(e){throw(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}}),e}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,r)=>(0,Z.rB)(()=>{let n=(0,Z.o5)(),i=r?.[0]?._sentryTraceData;if(i){let e=(0,nc.nc)(i);n.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,r)}catch(e){throw(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}}),e}}
965)}):e}function mL(e,t){let{method:r,parameterizedRoute:n,headers:i}=t;return new Proxy(e,{apply:async(e,t,i)=>{let a=(0,ej.Bk)(),o=a?(0,ej.zU)(a):void 0;return(0,Z.rB)((0,Z.rm)(),()=>(0,Z.v4)(async s=>{s.setTransactionName(`${r} ${n}`);let l=await nu(()=>e.apply(t,i),e=>{r4(e)||(r6(e)?(a&&(0,no.N8)(a,404),o&&(0,no.N8)(o,404)):(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{(0,mu.a0)((0,mu.aj)())});try{l.status&&(a&&(0,no.N8)(a,l.status),o&&(0,no.N8)(o,l.status))}catch{}return l}))}})}function mU(e,t){return new Proxy(e,{apply:(e,r,n)=>{let i=(0,Z.rm)(),a=t.headers?(0,ml.NI)(t.headers):void 0;return i.setSDKProcessingMetadata({normalizedRequest:{headers:a}}),nu(()=>e.apply(r,n),e=>{let r=(0,ej.Bk)(),{componentRoute:n,componentType:a}=t,o=!0;i.setTransactionName(`${a} Server Component (${n})`),r&&(r6(e)?(o=!1,r.setStatus({code:no.TJ,message:"not_found"})):r4(e)?(o=!1,r.setStatus({code:no.F3})):r.setStatus({code:no.TJ,message:"internal_error"})),o&&(0,X.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{(0,mu.a0)((0,mu.aj)())})}})}
965var mD=r(23740),mB=r.n(mD),mj=r(68336);globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"628d686b415d2a19b68daaa1488e28ada8dd220e"},globalThis._sentryBasePath=void 0,globalThis._sentryNextJsVersion="16.3.4",globalThis._sentryRewriteFramesAssetPrefixPath="/aistudio",globalThis._sentryAssetPrefix=void 0,globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"isrRoutes":[],"dynamicRoutes":[],"staticRoutes":[]}';let mF=mj.env.SENTRY_DSN||mj.env.NEXT_PUBLIC_SENTRY_DSN,m$="detectedFiles",mG="[Other] File upload detected",mH="[Other] postData part",mW=e=>e?e.startsWith(m$)?m$:e.startsWith(mG)?mG:e.startsWith(mH)?mH:e:e,mz=e=>Array.isArray(e)&&"string"==typeof e[0]?e[0].startsWith(m$)?[m$]:e[0].startsWith(mG)?[mG]:e[0].startsWith(mH)?[mH]:e:e,mq=e=>{if(!e||"object"!=typeof e)return e;let t={...e};return"string"==typeof t.message&&(t.message=mW(t.message)||t.message),t.data?.arguments&&(t.data={...t.data,arguments:mz(t.data.arguments)}),t};av(mB().makeInit({orgId:104366,enabled:!0,dsn:mF||"https://[email protected]/4504885835988992",environment:"production",ignoreErrors:["Invariant: attempted to hard navigate to the same URL"],beforeSend:e=>{let t,r;return e.message=mW(e.message)??e.message,e.logentry?.formatted&&(e.logentry.formatted=mW(e.logentry.formatted)||e.logentry.formatted),e.title&&(e.title=mW(e.title)||e.title),e.metadata?.title&&(e.metadata.title=mW(e.metadata.title)||e.metadata.title),e.extra?.arguments&&(e.extra.arguments=mz(e.extra.arguments)),Array.isArray(e.breadcrumbs?.values)&&(e.breadcrumbs.values=e.breadcrumbs.values.map(e=>mq(e))),t=e,(r=t?.exception?.values?.[0])&&"SyntaxError"===r.type&&r.mechanism?.type==="auto.browser.browserapierrors.xhr.onreadystatechange"&&"string"==typeof r.value&&r.value.match(/is not valid JSON|JSON Parse error|JSON\.parse: /i)&&(t.fingerprint=["upstream-non-json-response-in-xhr"]),t},beforeBreadcrumb:e=>mq(e)}));let mJ=al.bind(q)},49510:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700);t.statsigIntegration=n.defineIntegration(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{n._INTERNAL_insertFlagToScope(e.gate.name,e.gate.value),n._INTERNAL_addFeatureFlagToActiveSpan(e.gate.name,e.gate.value)})},processEvent:(e,t,r)=>n._INTERNAL_copyFlagsFromScopeToEvent(e)}))},50047:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(76953),i=r(23607),a=null;function o(){a=n.GLOBAL_OBJ.onunhandledrejection,n.GLOBAL_OBJ.onunhandledrejection=function(e){return i.triggerHandlers("unhandledrejection",e),!a||a.apply(this,arguments)},n.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}t.addGlobalUnhandledRejectionInstrumentationHandler=function(e){let t="unhandledrejection";i.addHandler(t,e),i.maybeInstrument(t,o)}},50635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let r=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let i=r.get(t);i||(i=t.map(e=>e.toLowerCase()),r.set(t,i));let a=e.split("/",2);if(!a[1])return{pathname:e};let o=a[1].toLowerCase(),s=i.indexOf(o);return s<0?{pathname:e}:(n=t[s],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},50797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReadonlyURLSearchParams",{enumerable:!0,get:function(){return n}});class r extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams"),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1174",enumerable:!1,configurable:!0})}}class n extends URLSearchParams{append(){throw new r}delete(){throw new r}set(){throw new r}sort(){throw new r}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51045:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(48238),a=r(86160),o=r(53374);function s(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.DEBUG_BUILD&&a.debug.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,s(e,"__sentry_original__",t)}catch{}}function u(e){if(o.isError(e))return{message:e.message,name:e.name,stack:e.stack,...d(e)};if(!o.isEvent(e))return e;{let t={type:e.type,target:c(e.target),currentTarget:c(e.currentTarget),...d(e)};return"u">typeof CustomEvent&&o.isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}}function c(e){try{return o.isElement(e)?i.htmlTreeAsString(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function d(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}t.addNonEnumerableProperty=s,t.convertToPlainObject=u,t.dropUndefinedKeys=function(e){return function e(t,r){let n;if(null===t||"object"!=typeof t)return t;let i=r.get(t);if(void 0!==i)return i;if(Array.isArray(t)){let n=[];return r.set(t,n),t.forEach(t=>{n.push(e(t,r))}),n}if((n=t.constructor)===Object||void 0===n){let n={};return r.set(t,n),Object.keys(t).forEach(i=>
965{let a=t[i];void 0!==a&&(n[i]=e(a,r))}),n}return t}(e,new Map)},t.extractExceptionKeysForMessage=function(e){let t=Object.keys(u(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"},t.fill=function(e,t,r){if(!(t in e))return;let i=e[t];if("function"!=typeof i)return;let o=r(i);"function"==typeof o&&l(o,i);try{e[t]=o}catch{n.DEBUG_BUILD&&a.debug.log(`Failed to replace method "${t}" in object`,e)}},t.getOriginalFunction=function(e){return e.__sentry_original__},t.markFunctionWrapped=l,t.objectify=function(e){let t;switch(!0){case void 0==e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case o.isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t}},51201:(e,t,r)=>{"use strict";var n,i=r(68336);Object.defineProperty(t,"__esModule",{value:!0});var a={APP_CLIENT_INTERNALS:function(){return en},APP_PATHS_MANIFEST:function(){return E},APP_PATH_ROUTES_MANIFEST:function(){return b},AdapterOutputType:function(){return d},BARREL_OPTIMIZATION_PREFIX:function(){return Y},BLOCKED_PAGES:function(){return H},BUILD_ID_FILE:function(){return G},BUILD_MANIFEST:function(){return T},CLIENT_PUBLIC_FILES_PATH:function(){return W},CLIENT_REFERENCE_MANIFEST:function(){return V},CLIENT_STATIC_FILES_PATH:function(){return z},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return er},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return es},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ei},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ea},COMPILER_INDEXES:function(){return c},COMPILER_NAMES:function(){return u},CONFIG_FILES:function(){return $},DEFAULT_RUNTIME_WEBPACK:function(){return el},DEFAULT_SANS_SERIF_FONT:function(){return ef},DEFAULT_SERIF_FONT:function(){return ep},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return B},DEV_CLIENT_PAGES_MANIFEST:function(){return M},DYNAMIC_CSS_MANIFEST:function(){return ee},EDGE_RUNTIME_WEBPACK:function(){return eu},EDGE_UNSUPPORTED_NODE_APIS:function(){return ey},EXPORT_DETAIL:function(){return O},EXPORT_MARKER:function(){return R},FUNCTIONS_CONFIG_MANIFEST:function(){return v},IMAGES_MANIFEST:function(){return P},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return Z},MIDDLEWARE_BUILD_MANIFEST:function(){return X},MIDDLEWARE_MANIFEST:function(){return L},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return Q},MODERN_BROWSERSLIST_TARGET:function(){return s.default},NEXT_BUILTIN_DOCUMENT:function(){return J},NEXT_FONT_MANIFEST:function(){return A},PAGES_MANIFEST:function(){return S},PHASE_ANALYZE:function(){return f},PHASE_DEVELOPMENT_SERVER:function(){return g},PHASE_EXPORT:function(){return p},PHASE_INFO:function(){return y},PHASE_PRODUCTION_BUILD:function(){return h},PHASE_PRODUCTION_SERVER:function(){return m},PHASE_TEST:function(){return _},PREFETCH_HINTS:function(){return N},PRERENDER_MANIFEST:function(){return w},REACT_LOADABLE_MANIFEST:function(){return j},REQUEST_INSIGHTS_DEV_ENDPOINT:function(){return x},ROUTES_MANIFEST:function(){return C},RSC_MODULE_TYPES:function(){return e_},SERVER_DIRECTORY:function(){return F},SERVER_FILES_MANIFEST:function(){return k},SERVER_PROPS_ID:function(){return ed},SERVER_REFERENCE_MANIFEST:function(){return K},STATIC_PROPS_ID:function(){return ec},STATIC_STATUS_PAGES:function(){return eh},STRING_LITERAL_DROP_BUNDLE:function(){return q},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return I},SYSTEM_ENTRYPOINTS:function(){return eS},TRACE_OUTPUT_VERSION:function(){return em},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return D},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return U},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return eg},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}};for(var o in a)Object.defineProperty(t,o,{enumerable:!0,get:a[o]});let s=r(75591)._(r(73943)),l=r(39888),u={client:"client",server:"server",edgeServer:"edge-server"},c={[u.client]:0,[u.server]:1,[u.edgeServer]:2};var d=((n={}
965).PAGES="PAGES",n.PAGES_API="PAGES_API",n.APP_PAGE="APP_PAGE",n.APP_ROUTE="APP_ROUTE",n.PRERENDER="PRERENDER",n.STATIC_FILE="STATIC_FILE",n.MIDDLEWARE="MIDDLEWARE",n);let p="phase-export",f="phase-analyze",h="phase-production-build",m="phase-production-server",g="phase-development-server",_="phase-test",y="phase-info",S="pages-manifest.json",E="app-paths-manifest.json",b="app-path-routes-manifest.json",T="build-manifest.json",v="functions-config-manifest.json",I="subresource-integrity-manifest",A="next-font-manifest",R="export-marker.json",O="export-detail.json",w="prerender-manifest.json",N="prefetch-hints.json",C="routes-manifest.json",P="images-manifest.json",k="required-server-files",M="_devPagesManifest.json",x="/_next/development/request-insights",L="middleware-manifest.json",U="_clientMiddlewareManifest.js",D="client-build-manifest.json",B="_devMiddlewareManifest.json",j="react-loadable-manifest.json",F="server",$=["next.config.js","next.config.mjs","next.config.ts",...i?.features?.typescript?["next.config.mts"]:[]],G="BUILD_ID",H=["/_document","/_app","/_error"],W="public",z="static",q="__NEXT_DROP_CLIENT_FILE__",J="__NEXT_BUILTIN_DOCUMENT__",Y="__barrel_optimize__",V="client-reference-manifest",K="server-reference-manifest",X="middleware-build-manifest",Q="middleware-react-loadable-manifest",Z="interception-route-rewrite-manifest",ee="dynamic-css-manifest",et="main",er=`${et}-app`,en="app-pages-internals",ei="react-refresh",ea="webpack",eo="polyfills",es=Symbol(eo),el="webpack-runtime",eu="edge-runtime-webpack",ec="__N_SSG",ed="__N_SSP",ep={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ef={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},eh=["/500"],em=1,eg=6e3,e_={client:"client",server:"server"},ey=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eS=new Set([et,ei,er]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51336:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.DEBUG_BUILD=!1},51688:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(38398),a=r(86160);function o(e){n.getCurrentScope().setClient(e)}t.initAndBind=function(e,t){!0===t.debug&&(i.DEBUG_BUILD?a.debug.enable():a.consoleSandbox(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),n.getCurrentScope().update(t.initialScope);let r=new e(t);return o(r),r.init(),r},t.setCurrentClient=o},51715:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700);t.diagnoseSdkConnectivity=async function(){let e=n.getClient();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";let t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await n.suppressTracing(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}},51762:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(77191),i=r(15793),a=r(23105),o=r(55111),s=r(95599);t.instrumentStream=async function*(e,t,r){let l={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let a of e){if(s.isChatCompletionChunk(a))for(let e of(l.responseId=a.id??l.responseId,l.responseModel=a.model??l.responseModel,l.responseTimestamp=a.created??l.responseTimestamp,a.usage&&(l.promptTokens=a.usage.prompt_tokens,l.completionTokens=a.usage.completion_tokens,l.totalTokens=a.usage.total_tokens),a.choices??[]))r&&(e.delta?.content&&l.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let r of e){let e=r.index;if(void 0!==e&&r.function)if(e in t.chatCompletionToolCalls){let n=t.chatCompletionToolCalls[e];r.function.arguments&&n?.function&&(n.function.arguments+=r.function.arguments)}else t.chatCompletionToolCalls[e]={...r,function:{name:r.function.name,arguments:r.function.arguments||""}}}}(e.delta.tool_calls,l)),e.finish_reason&&l.finishReasons.push(e.finish_reason);else s.isResponsesApiStreamEvent(a)&&function(e,t,r,a){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");
965if(e instanceof Error){a.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),n.captureException(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!o.RESPONSE_EVENT_TYPES.includes(e.type))return t.eventTypes.push(e.type);if(r&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))return t.responseTexts.push(e.delta);if("response"in e){let{response:n}=e;t.responseId=n.id??t.responseId,t.responseModel=n.model??t.responseModel,t.responseTimestamp=n.created_at??t.responseTimestamp,n.usage&&(t.promptTokens=n.usage.input_tokens,t.completionTokens=n.usage.output_tokens,t.totalTokens=n.usage.total_tokens),n.status&&t.finishReasons.push(n.status),r&&n.output_text&&t.responseTexts.push(n.output_text)}}}(a,l,r,t);yield a}}finally{s.setCommonResponseAttributes(t,l.responseId,l.responseModel,l.responseTimestamp),s.setTokenUsageAttributes(t,l.promptTokens,l.completionTokens,l.totalTokens),t.setAttributes({[a.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0}),l.finishReasons.length&&t.setAttributes({[a.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(l.finishReasons)}),r&&l.responseTexts.length&&t.setAttributes({[a.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:l.responseTexts.join("")});let e=[...Object.values(l.chatCompletionToolCalls),...l.responsesApiToolCalls];e.length>0&&t.setAttributes({[a.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(e)}),t.end()}}},51866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},52475:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},52850:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(46298),i=r(86395),a=r(44829);t.linkedErrorsIntegration=n.defineIntegration((e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,o){let s=o.getOptions();i.applyAggregateErrorsToEvent(a.exceptionFromError,s.stackParser,r,t,e,n)}}})},53219:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});class r{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}t.LCPEntryManager=r},53241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return s}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(39918),o=["(..)(..)","(.)","(..)","(...)"];function s(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,r,n;for(let i of e.split("/"))if(r=o.find(e=>i.startsWith(e))){[t,n]=e.split(r,2);break}if(!t||!r||!n)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,a.normalizeAppPath)(t),r){case"(.)":n="/"===t?`/${n}`:t+"/"+n;break;case"(..)":if("/"===t)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});n=t.split("/").slice(0,-1).concat(n).join("/");break;case"(...)":n="/"+n;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});n=i.slice(0,-2).concat(n).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,
965configurable:!0})}return{interceptingRoute:t,interceptedRoute:n}}},53374:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=Object.prototype.toString;function n(e,t){return r.call(e)===`[object ${t}]`}function i(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function a(e){return n(e,"Object")}function o(e,t){try{return e instanceof t}catch{return!1}}t.isDOMError=function(e){return n(e,"DOMError")},t.isDOMException=function(e){return n(e,"DOMException")},t.isElement=function(e){return"u">typeof Element&&o(e,Element)},t.isError=function(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return o(e,Error)}},t.isErrorEvent=function(e){return n(e,"ErrorEvent")},t.isEvent=function(e){return"u">typeof Event&&o(e,Event)},t.isInstanceOf=o,t.isParameterizedString=i,t.isPlainObject=a,t.isPrimitive=function(e){return null===e||i(e)||"object"!=typeof e&&"function"!=typeof e},t.isRegExp=function(e){return n(e,"RegExp")},t.isRequest=function(e){return"u">typeof Request&&o(e,Request)},t.isString=function(e){return n(e,"String")},t.isSyntheticEvent=function(e){return a(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},t.isThenable=function(e){return!!(e?.then&&"function"==typeof e.then)},t.isVueViewModel=function(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue||e.__v_isVNode))}},53440:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(53374),o="sentry-",s=/^sentry-/;function l(e){if(e&&(a.isString(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(u(t)).forEach(([t,r])=>{e[t]=r}),e),{}):u(e)}function u(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}function c(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],a)=>{let o=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===a?o:`${e},${o}`;return s.length>8192?(n.DEBUG_BUILD&&i.debug.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}t.MAX_BAGGAGE_STRING_LENGTH=8192,t.SENTRY_BAGGAGE_KEY_PREFIX=o,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=s,t.baggageHeaderToDynamicSamplingContext=function(e){let t=l(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(s)&&(e[t.slice(o.length)]=r),e),{});return Object.keys(r).length>0?r:void 0},t.dynamicSamplingContextToSentryBaggageHeader=function(e){if(e)return c(Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${o}${t}`]=r),e),{}))},t.objectToBaggageHeader=c,t.parseBaggageHeader=l},53447:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={getObjectClassLabel:function(){return i},isPlainObject:function(){return a}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});function i(e){return Object.prototype.toString.call(e)}function a(e){if("[object Object]"!==i(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}},53997:(e,t)=>{"use strict";let r;function n(e){return(void 0===r&&(r=window.trustedTypes?.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})||null),r)?.createScriptURL(e)||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55111:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],n=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...r];
965t.INSTRUMENTED_METHODS=["responses.create","chat.completions.create","embeddings.create","conversations.create"],t.OPENAI_INTEGRATION_NAME="OpenAI",t.RESPONSES_TOOL_CALL_EVENT_TYPES=r,t.RESPONSE_EVENT_TYPES=n},55258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={compileNonPath:function(){return p},matchHas:function(){return d},parseDestination:function(){return f},prepareDestination:function(){return h}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(12835),o=r(68959),s=r(53241),l=r(18339),u=r(3205);function c(e){return e.replace(/__ESC_COLON_/gi,":")}function d(e,t,r=[],n=[]){let i={},a=r=>{let n,a=r.key;switch(r.type){case"header":a=a.toLowerCase(),n=e.headers[a];break;case"cookie":n="cookies"in e?e.cookies[r.key]:(0,l.getCookieParser)(e.headers)()[r.key];break;case"query":n=t[a];break;case"host":{let{host:t}=e?.headers||{};n=t?.split(":",1)[0].toLowerCase()}}if(!r.value&&n)return i[function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(a)]=n,!0;if(n){let e=RegExp(`^${r.value}$`),t=Array.isArray(n)?n.slice(-1)[0].match(e):n.match(e);if(t)return Array.isArray(t)&&(t.groups?Object.keys(t.groups).forEach(e=>{i[e]=t.groups[e]}):"host"===r.type&&t[0]&&(i.host=t[0])),!0}return!1};return!(!r.every(e=>a(e))||n.some(e=>a(e)))&&i}function p(e,t){if(!e.includes(":"))return e;for(let r of Object.keys(t))e.includes(`:${r}`)&&(e=e.replace(RegExp(`:${r}\\*`,"g"),`:${r}--ESCAPED_PARAM_ASTERISKS`).replace(RegExp(`:${r}\\?`,"g"),`:${r}--ESCAPED_PARAM_QUESTION`).replace(RegExp(`:${r}\\+`,"g"),`:${r}--ESCAPED_PARAM_PLUS`).replace(RegExp(`:${r}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${r}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,u.safeCompile)(`/${e}`,{validate:!1})(t).slice(1)}function f(e){let t=e.destination;for(let r of Object.keys({...e.params,...e.query}))r&&(t=t.replace(RegExp(`:${(0,a.escapeStringRegexp)(r)}`,"g"),`__ESC_COLON_${r}`));let r=(0,o.parseUrl)(t),n=r.pathname;n&&(n=c(n));let i=r.href;i&&(i=c(i));let s=r.hostname;s&&(s=c(s));let l=r.hash;l&&(l=c(l));let u=r.search;u&&(u=c(u));let d=r.origin;return d&&(d=c(d)),{...r,pathname:n,hostname:s,href:i,hash:l,search:u,origin:d}}function h(e){let t,r,n=f(e),{hostname:i,query:a,search:o}=n,l=n.pathname;n.hash&&(l=`${l}${n.hash}`);let d=[],h=[];for(let e of((0,u.safePathToRegexp)(l,h),h))d.push(e.name);if(i){let e=[];for(let t of((0,u.safePathToRegexp)(i,e),e))d.push(t.name)}let m=(0,u.safeCompile)(l,{validate:!1});for(let[r,n]of(i&&(t=(0,u.safeCompile)(i,{validate:!1,encode:encodeURIComponent})),Object.entries(a)))Array.isArray(n)?a[r]=n.map(t=>p(c(t),e.params)):"string"==typeof n&&(a[r]=p(c(n),e.params));let g=Object.keys(e.params).filter(e=>"nextInternalLocale"!==e);if(e.appendParamsToQuery&&!g.some(e=>d.includes(e)))for(let t of g)t in a||(a[t]=e.params[t]);if((0,s.isInterceptionRouteAppPath)(l))for(let t of l.split("/")){let r=s.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e));if(r){"(..)(..)"===r?(e.params["0"]="(..)",e.params["1"]="(..)"):e.params["0"]=r;break}}try{let[i,a]=(r=m(e.params)).split("#",2);t&&(n.hostname=t(e.params)),n.pathname=i,n.hash=`${a?"#":""}${a||""}`,n.search=o?p(o,e.params):""}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,configurable:!0});throw e}return n.query={...e.query,...n.query},{newUrl:r,destQuery:a,parsedDestination:n}}},55639:(e,t,r)=>{let n,i,a,o;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let s=r(79700),l=r(44774),u=r(20789),c=r(67428),d=r(94250),p=r(31603),f=r(33768),h={},m={};function g(e,t){let r=h[e];if(r?.length)for(let n of r)try{n(t)}catch(t){l.DEBUG_BUILD&&s.debug.error(`Error while triggering instrumentation handler.
966Type: ${e}
967Name: ${s.getFunctionName(n)}
968Error:`,t)}}function _(){return u.onCLS(e=>{g("cls",{metric:e}),n=e},{reportAllChanges:!0})}function y(){return d.onLCP(e=>{g("lcp",{metric:e}),i=e},{reportAllChanges:!0})}function S(){return f.onTTFB(e=>{g("ttfb",{metric:e}),a=e})}function E(){return c.onINP(e=>{g("inp",{metric:e}),o=e})}function b(e,t,r,n,i=!1){let a;return T(e,t),m[e]||(a=r(),m[e]=!0),n&&t({metric:n}),v(e,t,i?a:void 0)}function T(e,t){h[e]=h[e]||[],h[e].push(t)}function v(e,t,r){return()=>{r&&r();let n=h[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}t.addClsInstrumentationHandler=function(e,t=!1){return b("cls",e,_,n,t)},t.addInpInstrumentationHandler=function(e){return b("inp",e,E,o)},t.addLcpInstrumentationHandler=function(e,t=!1){return b("lcp",e,y,i,t)},t.addPerformanceInstrumentationHandler=function(e,t){var r;let n;return T(e,t),m[e]||(n={},"event"===(r=e)&&(n.durationThreshold=0),p.observe(r,e=>
968{g(r,{entries:e})},n),m[e]=!0),v(e,t)},t.addTtfbInstrumentationHandler=function(e){return b("ttfb",e,S,a)},t.isPerformanceEventTiming=function(e){return"duration"in e}},55857:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.debounce=function(e,t,r){let n,i,a,o=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==i&&clearTimeout(i),void 0!==a&&clearTimeout(a),i=a=void 0}function c(){return i&&clearTimeout(i),i=s(l,t),o&&void 0===a&&(a=s(l,o)),n}return c.cancel=u,c.flush=function(){return void 0!==i||void 0!==a?l():n},c}},57037:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});let n="10.42.0"},57464:(e,t,r)=>{"use strict";function n(e){let t={};try{e.forEach((e,r)=>{"string"==typeof e&&(t[r]=e)})}catch{}return t}function i(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,r])=>{"string"==typeof r&&(t[e]=r)})}catch{}return t}function a(e){let t=n(e.headers);return{method:e.method,url:e.url,query_string:s(e.url),headers:t}}function o(e){let t=e.headers||{},r=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),n=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),a=e.url||"",o=function({url:e,protocol:t,host:r}){return e?.startsWith("http")?e:e&&r?`${t}://${r}${e}`:void 0}({url:a,host:r,protocol:n}),l=e.body||void 0,u=e.cookies;return{url:o,method:e.method,query_string:s(a),headers:i(t),cookies:u,data:l}}function s(e){if(e)try{let t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}r.d(t,{Iv:()=>o,NI:()=>n,WK:()=>i,xF:()=>a})},57682:(e,t,r)=>{"use strict";function n(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}r.d(t,{i:()=>n})},57692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NavigationPromisesContext:function(){return c},PathParamsContext:function(){return u},PathnameContext:function(){return l},ReadonlyURLSearchParams:function(){return o.ReadonlyURLSearchParams},SearchParamsContext:function(){return s},createDevToolsInstrumentedPromise:function(){return d}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(14343),o=r(50797),s=(0,a.createContext)(null),l=(0,a.createContext)(null),u=(0,a.createContext)(null),c=(0,a.createContext)(null);function d(e,t){let r=Promise.resolve(t);return r.status="fulfilled",r.value=t,r.displayName=`${e} (SSR)`,r}},57833:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.SEVERITY_TEXT_TO_SEVERITY_NUMBER={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},58059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={getNamedMiddlewareRegex:function(){return m},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return d}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(81472),o=r(53241),s=r(12835),l=r(84531),u=r(13232);function c(e,t,r){let n={},i=1,a=[];for(let c of(0,l.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),l=c.match(u.PARAMETER_PATTERN);if(e&&l&&l[2]){let{key:t,optional:r,repeat:o}=(0,u.parseMatchedParameter)(l[2]);n[t]={pos:i++,repeat:o,optional:r},a.push(`/${(0,s.escapeStringRegexp)(e)}([^/]+?)`)}else if(l&&l[2]){let{key:e,repeat:t,optional:o}=(0,u.parseMatchedParameter)(l[2]);n[e]={pos:i++,repeat:t,optional:o},r&&l[1]&&a.push(`/${(0,s.escapeStringRegexp)(l[1])}`);let c=t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&l[1]&&(c=c.substring(1)),a.push(c)}else a.push(`/${(0,s.escapeStringRegexp)(c)}`);t&&l&&l[3]&&a.push((0,s.escapeStringRegexp)(l[3]))}return{parameterizedRoute:a.join(""),groups:n}}function d(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:n=!1}={}){let{parameterizedRoute:i,groups:a}=c(e,t,r),o=i;return n||(o+="(?:/)?"),{re:RegExp(`^${o}$`),groups:a}}function p({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:n,keyPrefix:i,backreferenceDuplicateKeys:a}){let o,{key:l,optional:c,repeat:d}=(0,u.parseMatchedParameter)(r),f=l.replace(/\W/g,"");i&&(f=`${i}${f}`);let h=!1;(0===f.length||f.length>30)&&(h=!0),isNaN(parseInt(f.slice(0,1)))||(h=!0),h&&(f=t());let m=f in n;i?n[f]=`${i}${l}`:n[f]=l;let g=e?(0,s.escapeStringRegexp)(e):"";return o=m&&a?`\\k<${f}>`:d?`(?<${f}>.+?)`:`(?<${f}>
968[^/]+?)`,{key:l,pattern:c?`(?:/${g}${o})?`:`/${g}${o}`,cleanedKey:f,optional:c,repeat:d}}function f(e,t,r,n,i,c={names:{},intercepted:{}}){let d,h=(d=0,()=>{let e="",t=++d;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),m={},g=[],_=[];for(let d of(c=structuredClone(c),(0,l.removeTrailingSlash)(e).slice(1).split("/"))){let e,l=o.INTERCEPTION_ROUTE_MARKERS.some(e=>d.startsWith(e)),f=d.match(u.PARAMETER_PATTERN),y=l?f?.[1]:void 0;if(y&&f?.[2]?(e=t?a.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,c.intercepted[f[2]]=y):e=f?.[2]&&c.intercepted[f[2]]?t?a.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:t?a.NEXT_QUERY_PARAM_PREFIX:void 0,y&&f&&f[2]){let{key:t,pattern:r,cleanedKey:n,repeat:a,optional:o}=p({getSafeRouteKey:h,interceptionMarker:y,segment:f[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:i});g.push(r),_.push(`/${f[1]}:${c.names[t]??n}${a?o?"*":"+":""}`),c.names[t]??=n}else if(f&&f[2]){n&&f[1]&&(g.push(`/${(0,s.escapeStringRegexp)(f[1])}`),_.push(`/${f[1]}`));let{key:t,pattern:r,cleanedKey:a,repeat:o,optional:l}=p({getSafeRouteKey:h,segment:f[2],routeKeys:m,keyPrefix:e,backreferenceDuplicateKeys:i}),u=r;n&&f[1]&&(u=u.substring(1)),g.push(u),_.push(`/:${c.names[t]??a}${o?l?"*":"+":""}`),c.names[t]??=a}else g.push(`/${(0,s.escapeStringRegexp)(d)}`),_.push(`/${d}`);r&&f&&f[3]&&(g.push((0,s.escapeStringRegexp)(f[3])),_.push(f[3]))}return{namedParameterizedRoute:g.join(""),routeKeys:m,pathToRegexpPattern:_.join(""),reference:c}}
968function h(e,t){let r=f(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference),n=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(n+="(?:/)?"),{...d(e,t),namedRegex:`^${n}$`,routeKeys:r.routeKeys,pathToRegexpPattern:r.pathToRegexpPattern,reference:r.reference}}function m(e,t){let{parameterizedRoute:r}=c(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:`^/${n?".*":""}$`};let{namedParameterizedRoute:i}=f(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${i}${n?"(?:(/.*)?)":""}$`}}},58232:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(38398),a=r(992),o=r(76677),s=r(86160),l=r(16039),u=r(41291),c=r(62327),d=r(404),p=r(67648),f=r(26529),h=r(86652);class m{constructor(e={}){this._traceId=e.traceId||l.generateTraceId(),this._spanId=e.spanId||l.generateSpanId(),this._startTime=e.startTimestamp||c.timestampInSeconds(),this._links=e.links,this._attributes={},this.setAttributes({[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?u.TRACE_FLAG_SAMPLED:u.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=u.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=u.spanTimeInputToSeconds(e),p.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[o.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[o.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[o.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:f.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&u.getRootSpan(this)===this||void 0,segment_id:this._isStandaloneSpan?u.getRootSpan(this).spanContext().spanId:void 0,links:u.convertSpanLinksForEnvelope(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){i.DEBUG_BUILD&&s.debug.log("[Tracing] Adding an event to span:",e);let n=g(t)?t:r||c.timestampInSeconds(),a=g(t)?{}:t||{},o={name:e,time:u.spanTimeInputToSeconds(n),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=n.getClient();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===u.getRootSpan(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=n.getClient();if(!t)return;let r=e[1];r&&0!==r.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(a.createSpanEnvelope([this],e)):(i.DEBUG_BUILD&&s.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));let t=this._convertSpanToTransaction();t&&(h.getCapturedScopesOnSpan(this).scope||n.getCurrentScope()).captureEvent(t)}_convertSpanToTransaction(){if(!_(u.spanToJSON(this)))return;this._name||(i.DEBUG_BUILD&&s.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=h.getCapturedScopesOnSpan(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let n=u.getSpanDescendants(this).filter(e=>{var t;return e!==this&&!((t=e)instanceof m&&t.isStandaloneSpan())}).map(e=>u.spanToJSON(e)).filter(_),a=this._attributes[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[o.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],n.forEac
968h(e=>{delete e.data[o.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]});let l={contexts:{trace:u.spanToTransactionTraceContext(this)},spans:n.length>1e3?n.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):n,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:d.getDynamicSamplingContextFromSpan(this)},request:r,...a&&{transaction_info:{source:a}}},c=f.timedEventsToMeasurements(this._events);return c&&Object.keys(c).length&&(i.DEBUG_BUILD&&s.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),l.measurements=c),l}}function g(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function _(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}t.SentrySpan=m},58315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(26611),r(13033),r(36337);let n=r(7990);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58456:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(33045),i=r(33795),a=r(12569),o=r(24157),s=r(15004),l=r(82906),u=r(29052),c=r(60162),d=r(58059),p=r(36406);function f(e,t,r){let f,h="string"==typeof t?t:(0,i.formatWithValidation)(t),m=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?h.slice(m[0].length):h;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${h}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let t=(0,o.normalizeRepeatedSlashes)(g);h=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(h))return r?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,u.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,d.getRouteRegex)(e.pathname);(0,p.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}f=new URL(t,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(h,f);e.pathname=(0,s.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:o,params:s}=(0,c.interpolateAs)(e.pathname,e.pathname,r);o&&(t=(0,i.formatWithValidation)({pathname:o,hash:e.hash,query:(0,a.omit)(r,s)}))}let o=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[o,t||o]:o}catch(e){return r?[h]:h}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58885:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},59658:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(5756),a=r(51336),o="SpotlightBrowser",s=n.defineIntegration((e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:o,setup:()=>{a.DEBUG_BUILD&&n.debug.log("Using Sidecar URL",t)},processEvent:e=>l(e)?null:e,afterAllSetup:e=>{var r,a;let o,s;r=e,a=t,o=i.getNativeImplementation("fetch"),s=0,r.on("beforeEnvelope",e=>{s>3?n.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",s):o(a,{method:"POST",body:n.serializeEnvelope(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(s=0)},e=>
968{s++,n.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}});function l(e){return!!("transaction"===e.type&&e.spans&&e.contexts?.trace&&"ui.action.click"===e.contexts.trace.op&&e.spans.some(({description:e})=>e?.includes("#sentry-spotlight")))}t.INTEGRATION_NAME=o,t.isSpotlightInteraction=l,t.spotlightBrowserIntegration=s},59685:(e,t,r)=>{"use strict";r.d(t,{Ow:()=>o,Yz:()=>p,Z9:()=>s,pq:()=>l});var n=r(61531),i=r(62877),a=r(71706);let o=["debug","info","warn","error","log","assert","trace"],s={};function l(e){if(!("console"in a.O))return e();let t=a.O.console,r={},n=Object.keys(s);n.forEach(e=>{let n=s[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function u(){return d().enabled}function c(e,...t){i.T&&u()&&l(()=>{a.O.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return i.T?(0,n.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let p={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:u,log:function(...e){c("log",...e)},warn:function(...e){c("warn",...e)},error:function(...e){c("error",...e)}}},60008:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.CLIENT_ADDRESS_ATTRIBUTE="client.address",t.CLIENT_PORT_ATTRIBUTE="client.port",t.MCP_FUNCTION_ORIGIN_VALUE="auto.function.mcp_server",t.MCP_LOGGING_DATA_TYPE_ATTRIBUTE="mcp.logging.data_type",t.MCP_LOGGING_LEVEL_ATTRIBUTE="mcp.logging.level",t.MCP_LOGGING_LOGGE
968R_ATTRIBUTE="mcp.logging.logger",t.MCP_LOGGING_MESSAGE_ATTRIBUTE="mcp.logging.message",t.MCP_METHOD_NAME_ATTRIBUTE="mcp.method.name",t.MCP_NOTIFICATION_CLIENT_TO_SERVER_OP_VALUE="mcp.notification.client_to_server",t.MCP_NOTIFICATION_ORIGIN_VALUE="auto.mcp.notification",t.MCP_NOTIFICATION_SERVER_TO_CLIENT_OP_VALUE="mcp.notification.server_to_client",t.MCP_PROMPT_NAME_ATTRIBUTE="mcp.prompt.name",t.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE="mcp.prompt.result.description",t.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE="mcp.prompt.result.message_count",t.MCP_PROTOCOL_VERSION_ATTRIBUTE="mcp.protocol.version",t.MCP_REQUEST_ARGUMENT="mcp.request.argument",t.MCP_REQUEST_ID_ATTRIBUTE="mcp.request.id",t.MCP_RESOURCE_URI_ATTRIBUTE="mcp.resource.uri",t.MCP_ROUTE_SOURCE_VALUE="route",t.MCP_SERVER_NAME_ATTRIBUTE="mcp.server.name",t.MCP_SERVER_OP_VALUE="mcp.server",t.MCP_SERVER_TITLE_ATTRIBUTE="mcp.server.title",t.MCP_SERVER_VERSION_ATTRIBUTE="mcp.server.version",t.MCP_SESSION_ID_ATTRIBUTE="mcp.session.id",t.MCP_TOOL_NAME_ATTRIBUTE="mcp.tool.name",t.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE="mcp.tool.result.content_count",t.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE="mcp.tool.result.is_error",t.MCP_TRANSPORT_ATTRIBUTE="mcp.transport",t.NETWORK_PROTOCOL_VERSION_ATTRIBUTE="network.protocol.version",t.NETWORK_TRANSPORT_ATTRIBUTE="network.transport"},60162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(36406),i=r(58059);function a(e,t,r){let a="",o=(0,i.getRouteRegex)(e),s=o.groups,l=(t!==e?(0,n.getRouteMatcher)(o)(t):"")||r;a=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=s[e],i=`[${r?"...":""}${e}]`;return n&&(i=`${!t?"/":""}[${i}]`),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(i,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},60273:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.addUserAgentToTransportHeaders=function(e){let t=e._metadata?.sdk,r=t?.name&&t?.version?`${t?.name}/${t?.version}`:void 0;e.transportOptions={...e.transportOptions,headers:{...r&&{"user-agent":r},...e.transportOptions?.headers}}}},60319:(e,t,r)=>{"use strict";r.d(t,{Vu:()=>s,fj:()=>a,qO:()=>o});var n=r(65231),i=r(21762);function a(e){let t=(0,i.zf)(),r={sid:(0,n.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}};return e&&o(r,e),r}function o(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.zf)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,n.eJ)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function s(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),o(e,r)}},60496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={getParamProperties:function(){return l},getSegmentParam:function(){return o},isCatchAll:function(){return s}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(53241);function o(e){let t=a.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:t?`catchall-intercepted-${t}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:t?`dynamic-intercepted-${t}`:"dynamic",paramName:e.slice(1,-1)}:null}function s(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function l(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}},60806:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});let n="production"},60887:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(19849);t.addPageListener=function(e,t,r){n.WINDOW.document&&n.WINDOW.addEventListener(e,t,r)},t.removePageListener=function(e,t,r){n.WINDOW.document&&n.WINDOW.removeEventListener(e,t,r)}},60902:(e,t,r)=>{let n;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=r(79700);var a,o,s,l=Object.defineProperty,u=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?l(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};class c{constructor(){u(this,"idNodeMap",new Map),u(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
968this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function d(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:d(e.parentNode,t,r,n+1)}function p(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}let f="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",h={map:{},getId:()=>(console.error(f),-1),getNode:()=>(console.error(f),null),removeNodeFromMap(){console.error(f)},has:()=>(console.error(f),!1),reset(){console.error(f)}};function m(e,t,r,n,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set(e){b(()=>{r.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>m(e,t,a||{},!0)}function g(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}function _(e,t,r,n,i){if(!e)return!1;let a=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!a)return!1;let o=p(t,r);if(!i){let e=n&&a.matches(n);return o(a)&&!e}let s=d(a,o),l=-1;return!(s<0)&&(n&&(l=d(a,p(null,n))),s>-1&&l<0||s<l)}"u">typeof window&&window.Proxy&&window.Reflect&&(h=new Proxy(h,{get:(e,t,r)=>("map"===t&&console.error(f),Reflect.get(e,t,r))})),Date.now().toString();let y={};function S(e){let t=y[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(n=i[e]),r.head.removeChild(t)}catch(e){}return y[e]=n.bind(window)}function E(...e){return S("requestAnimationFrame")(...e)}function b(...e){return S("setTimeout")(...e)}var T=((a=T||{})[a["2D"]=0]="2D",a[a.WebGL=1]="WebGL",a[a.WebGL2=2]="WebGL2",a);let v=e=>n?(...t)=>{try{return e(...t)}catch(e){if(n&&!0===n(e))return()=>{};throw e}}:e;for(var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A="u"<typeof Uint8Array?[]:new Uint8Array(256),R=0;R<I.length;R++)A[I.charCodeAt(R)]=R;var O=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=I[r[t]>>2],i+=I[(3&r[t])<<4|r[t+1]>>4],i+=I[(15&r[t+1])<<2|r[t+2]>>6],i+=I[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};let w=new Map,N=(e,t,r)=>{let n;if(!e||!(P(e,t)||"object"==typeof e))return;let i=e.constructor.name,a=((n=w.get(r))||(n=new Map,w.set(r,n)),n.has(i)||n.set(i,[]),n.get(i)),o=a.indexOf(e);return -1===o&&(o=a.length,a.push(e)),o},C=(e,t,r)=>e.map(e=>(function e(t,r,n){if(t instanceof Array)return t.map(t=>e(t,r,n));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:O(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(P(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:N(t,r,n)};return t})(e,t,r)),P=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function k(e,t,r,n,i){let a=[];try{let o=g(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(a,...o){if(!_(this,t,r,n,!0)){let e="experimental-webgl"===a?"webgl":a;if("__context"in this||(this.__context=e),i&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){let e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[a,...o])}});a.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
968{a.forEach(e=>e())}}function M(e,t,r,n,i,a,o,s){let l=[];for(let o of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;let u=g(e,o,function(e){return function(...l){let u=e.apply(this,l);if(N(u,s,this),"tagName"in this.canvas&&!_(this.canvas,n,i,a,!0)){let e=C(l,s,this),n={type:t,property:o,args:e};r(this.canvas,n)}return u}});l.push(u)}catch{let n=m(e,o,{set(e){r(this.canvas,{type:t,property:o,args:[e],setter:!0})}});l.push(n)}return l}class x{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:r="all",win:i,recordCanvas:a,errorHandler:o}=e;if(e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,o&&function(e){n=e}(o),(a&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(i),t)return;v(()=>{a&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof r&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:r,blockSelector:n,unblockSelector:i,recordCanvas:a,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}v(()=>{if(a&&"all"===t&&this.initCanvasMutationObserver(e,r,n,i),a&&"number"==typeof t){let t=k(e,r,n,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):E(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e,t=new Worker((e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']),URL.createObjectURL(e)));return t.onmessage=e=>{let t=e.data,{id:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;let{base64:n,type:i,width:a,height:o}=t;this.mutationCb({id:r,type:T["2D"],commands:[{property:"clearRect",args:[0,0,a,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0,a,o]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=r=>{this.takeSnapshot(r,!1),e=E(t)};e=E(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){var i,a;let o,s=k(e,t,r,n,!1),l=function(e,t,r,n,i){let a=[];for(let o of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;let s=g(t.CanvasRenderingContext2D.prototype,o,function(a){return function(...s){return _(this.canvas,r,n,i,!0)||b(()=>{let r=C(s,t,this);e(this.canvas,{type:T["2D"],property:o,args:r})},0),a.apply(this,s)}});a.push(s)}catch{let r=m(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:T["2D"],property:o,args:[t],setter:!0})}});a.push(r)}return()=>
968{a.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),u=(i=this.processMutation.bind(this),a=this.mirror,(o=[]).push(...M(e.WebGLRenderingContext.prototype,T.WebGL,i,t,r,n,a,e)),void 0!==e.WebGL2RenderingContext&&o.push(...M(e.WebGL2RenderingContext.prototype,T.WebGL2,i,t,r,n,a,e)),()=>{o.forEach(e=>e())});this.restoreHandlers.push(()=>{s(),l(),u()})}getCanvasElements(e,t,r){let n=[],i=i=>{i.querySelectorAll("canvas").forEach(i=>{_(i,e,t,r,!0)||n.push(i)})};for(let e of this.windows){let t,r=e.deref();try{t=r&&r.document}catch{}t&&i(t)}for(let e of this.shadowDoms){let t=e.deref();t&&i(t)}return n}takeSnapshot(e,t,r){let{sampling:n,blockClass:i,blockSelector:a,unblockSelector:o,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===n?2:n||2)))&&(this.lastSnapshotTime=e,(r?[r]:this.getCanvasElements(i,a,o)).forEach(e=>{let r=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(r))){if(this.snapshotInProgressMap.set(r,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{v(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}}),!0)}startPendingCanvasMutationFlusher(){E(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,E(e)};E(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),E(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let n=r.map(e=>{let{type:t,...r}=e;return r}),{type:i}=r[0];this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new c,(o=s||(s={}))[o.NotStarted=0]="NotStarted",o[o.Running=1]="Running",o[o.Stopped=2]="Stopped";let L={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}};t.replayCanvasIntegration=i.defineIntegration((e={})=>{let t,r,[n,i]=e.maxCanvasSize||[],a={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[n?Math.min(n,1280):1280,i?Math.min(i,1280):1280]},o=new Promise(e=>r=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:n,maxCanvasSize:i}=a;return{enableManualSnapshot:n,recordCanvas:!0,getCanvasManager:e=>{let a=new x({...e,enableManualSnapshot:n,maxCanvasSize:i,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=a,r(a),a},...L[e]||L.medium}},async snapshot(e,r){(t||await o).snapshot(e,r)}}})},61215:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(6386),i=r(62327);t.createClientReportEnvelope=function(e,t,r){let a=[{type:"client_report"},{timestamp:r||i.dateTimestampInSeconds(),discarded_events:e}];return n.createEnvelope(t?{dsn:t}:{},[a])}},61477:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(5756),a=r(51336);function o(e,t){var r;let n,i,a=(r=t.headers,n={},r.forEach((e,t)=>{n[t]=e}),n);try{let t=a[e]||a[e.toLowerCase()]||void 0;t&&(i=s(t))}catch{}return[a,i]}function s(e){return e.split("; ").reduce((e,t)=>{let[r,n]=t.split("=");return r&&n&&(e[r]=n),e},{})}function l(e,t,r){var i,a;return i=e.failedRequestStatusCodes,i.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(a=e.failedRequestTargets,a.some(e=>"string"==typeof e?r.includes(e):e.test(r)))&&!n.isSentryRequestUrl(r,n.getClient())}function u(e){let t=n.getClient(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,i=r&&t?t.getOptions().stackParser(r,0,1):void 0,a=`HTTP Client Error with status code: ${e.status}`,o={message:a,exception:{values:[{type:"Error",value:a,stacktrace:i?{frames:i}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return n.addExceptionMechanism(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function c(){let e=n.getClient();return!!e&&!!e.getOptions().sendDefaultPii}t.httpClientIntegration=n.defineIntegration((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var r,d,p,f;r=e,d=t,n.supportsNativeFetch()&&n.addFetchInstrumentationHandler(e=>{if(n.getClient()!==r)return;let{response:t,args:i,error:a,virtualError:s}=e,[p,f]=i;t&&function(e,t,r,i,a){if(l(e,r.status,r.url)){var s,d;let e,l,p,f,h=(s=t,!(d=i)&&s instanceof Request||s instanceof Request&&s.bodyUsed?s:new Request
968(s,d));c()&&([e,p]=o("Cookie",h),[l,f]=o("Set-Cookie",r));let m=u({url:h.url,method:h.method,status:r.status,requestHeaders:e,responseHeaders:l,requestCookies:p,responseCookies:f,error:a,type:"fetch"});n.captureEvent(m)}}(d,p,t,f,a||s)},!1),p=e,f=t,"XMLHttpRequest"in n.GLOBAL_OBJ&&i.addXhrInstrumentationHandler(e=>{if(n.getClient()!==p)return;let{error:t,virtualError:r}=e,o=e.xhr,d=o[i.SENTRY_XHR_DATA_KEY];if(!d)return;let{method:h,request_headers:m}=d;try{!function(e,t,r,i,a){if(l(e,t.status,t.responseURL)){let e,o,l;if(c()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(o=s(e))}catch{}try{let e;l=(e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{}):{}}catch{}e=i}let d=u({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:l,responseCookies:o,error:a,type:"xhr"});n.captureEvent(d)}}(f,o,h,m,t||r)}catch(e){a.DEBUG_BUILD&&n.debug.warn("Error while extracting response event form XHR response",e)}})}}})},61531:(e,t,r)=>{"use strict";r.d(t,{BY:()=>s,EU:()=>a,Se:()=>o});var n=r(57037),i=r(71706);function a(){return o(i.O),i.O}function o(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.M,t[n.M]=t[n.M]||{}}function s(e,t,r=i.O){let a=r.__SENTRY__=r.__SENTRY__||{},o=a[n.M]=a[n.M]||{};return o[e]||(o[e]=t())}},62098:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(404),a=r(73922),o=r(41291);function s(e,t){let{extra:r,tags:n,attributes:i,user:o,contexts:s,level:u,sdkProcessingMetadata:c,breadcrumbs:d,fingerprint:p,eventProcessors:f,attachments:h,propagationContext:m,transactionName:g,span:_}=t;l(e,"extra",r),l(e,"tags",n),l(e,"attributes",i),l(e,"user",o),l(e,"contexts",s),e.sdkProcessingMetadata=a.merge(e.sdkProcessingMetadata,c,2),u&&(e.level=u),g&&(e.transactionName=g),_&&(e.span=_),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),p.length&&(e.fingerprint=[...e.fingerprint,...p]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...m}}function l(e,t,r){e[t]=a.merge(e[t],r,1)}t.applyScopeDataToEvent=function(e,t){var r,n,a,s,l,u,c,d;let p,f,h,{fingerprint:m,span:g,breadcrumbs:_,sdkProcessingMetadata:y}=t;(function(e,t){let{extra:r,tags:n,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),g&&(r=e,n=g,r.contexts={trace:o.spanToTraceContext(n),...r.contexts},r.sdkProcessingMetadata={dynamicSamplingContext:i.getDynamicSamplingContextFromSpan(n),...r.sdkProcessingMetadata},p=o.getRootSpan(n),(f=o.spanToJSON(p).description)&&!r.transaction&&"transaction"===r.type&&(r.transaction=f)),a=e,s=m,a.fingerprint=a.fingerprint?Array.isArray(a.fingerprint)?a.fingerprint:[a.fingerprint]:[],s&&(a.fingerprint=a.fingerprint.concat(s)),a.fingerprint.length||delete a.fingerprint,l=e,u=_,h=[...l.breadcrumbs||[],...u],l.breadcrumbs=h.length?h:void 0,c=e,d=y,c.sdkProcessingMetadata={...c.sdkProcessingMetadata,...d}},t.getCombinedScopeData=function(e,t){let r=n.getGlobalScope().getScopeData();return e&&s(r,e.getScopeData()),t&&s(r,t.getScopeData()),r},t.mergeAndOverwriteScopeData=l,t.mergeScopeData=s},62151:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(53374),i=r(75567);function a(e,t,r=!1){return!!n.isString(e)&&(n.isRegExp(t)?t.test(e):!!n.isString(t)&&(r?e===t:e.includes(t)))}t.isMatchingPattern=a,t.safeJoin=function(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let a=e[t];try{n.isVueViewModel(a)?r.push(i.getVueInternalName(a)):r.push(String(a))}catch{r.push("[value cannot be serialized]")}}return r.join(t)},t.snipLine=function(e,t){let r=e,n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,n);return a>n-5&&(a=n),a===n&&(i=Math.max(a-140,0)),r=r.slice(i,a),i>0&&(r=`'{snip} ${r}`),a<n&&(r+=" {snip}"),r},t.stringMatchesSomePattern=function(e,t=[],r=!1){return t.some(t=>a(e,t,r))},t.truncate=function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}},62327:(e,t,r)=>{let n;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=r(79691),a=r(76953);function o(){return i.safeDateNow()/1e3}let s=null;t.browserPerformanceTimeOrigin=function(){return null===s&&(s=function(){let{performance:e}=a.GLOBAL_OBJ;if(!e?.now)return;let t=i.withRandomSafeContext(()=>e.now()),r=i.safeDateNow(),n=e.timeOrigin;if("number"==typeof n&&3e5>Math.abs(n+t-r))return n;let o=e.timing?.navigationStart;return"number"==typeof o&&3e5>Math.abs(o+t-r)?o:r-t}()),s},t.dateTimestampInSeconds=o,t.timestampInSeconds=function(){return(n??(n=function(){let{performance:e}=a.GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return o;let t=e.timeOrigin;return()=>(t+i.withRandomSafeContext(()=>e.now()))/1e3}()))()}},62370:(e,t,r)=>{"use strict";r.d(t,{h:()=>d});var n=r(61531),i=r(21187),a=r(21275);class o{constructor(e,t){let r,n;r=e||new i.H,n=t||new i.H,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return(0,a.Qg)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}
968getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s(){let e=(0,n.EU)(),t=(0,n.Se)(e);return t.stack=t.stack||new o((0,n.BY)("defaultCurrentScope",()=>new i.H),(0,n.BY)("defaultIsolationScope",()=>new i.H))}function l(e){return s().withScope(e)}function u(e,t){let r=s();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function c(e){return s().withScope(()=>e(s().getIsolationScope()))}function d(e){let t=(0,n.Se)(e);return t.acs?t.acs:{withIsolationScope:c,withScope:l,withSetScope:u,withSetIsolationScope:(e,t)=>c(t),getCurrentScope:()=>s().getScope(),getIsolationScope:()=>s().getIsolationScope()}}},62536:(e,t,r)=>{"use strict";r.d(t,{E1:()=>p,Ef:()=>a,Fy:()=>_,JD:()=>s,Lc:()=>g,Le:()=>d,Sn:()=>u,Ts:()=>h,c9:()=>m,fs:()=>l,i_:()=>n,jG:()=>f,sy:()=>i,uT:()=>o,xc:()=>c});let n="sentry.source",i="sentry.sample_rate",a="sentry.previous_trace_sample_rate",o="sentry.op",s="sentry.origin",l="sentry.idle_span_finish_reason",u="sentry.measurement_unit",c="sentry.measurement_value",d="sentry.custom_span_name",p="sentry.profile_id",f="sentry.exclusive_time",h="http.request.method",m="url.full",g="sentry.link.type",_="gen_ai.conversation.id"},62652:(e,t,r)=>{let n;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=r(31603),a=0,o=1/0,s=0,l=e=>{e.forEach(e=>{e.interactionId&&(o=Math.min(o,e.interactionId),a=(s=Math.max(s,e.interactionId))?(s-o)/7+1:0)})};t.getInteractionCount=()=>n?a:performance.interactionCount||0,t.initInteractionCountPolyfill=()=>{"interactionCount"in performance||n||(n=i.observe("event",l,{type:"event",buffered:!0,durationThreshold:0}))}},62785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return s},MissingSlotContext:function(){return c},TemplateContext:function(){return u}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(75591)._(r(14343)),o=a.default.createContext(null),s=a.default.createContext(null),l=a.default.createContext(null),u=a.default.createContext(null),c=a.default.createContext(new Set)},62858:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(68379),i=r(75455),a=r(66908),o=r(38398),s=r(32452),l=r(86160),u=r(42686),c=r(94714),d=r(60273),p=r(44829),f=r(22461),h=r(35822),m=r(6406);class g extends i.Client{constructor(e){s.registerSpanErrorInstrumentation(),d.addUserAgentToTransportHeaders(e),super(e),this._setUpMetricsProcessing()}eventFromException(e,t){let r=p.eventFromUnknownInput(this,this._options.stackParser,e,t);return r.level="error",h.resolvedSyncPromise(r)}eventFromMessage(e,t="info",r){return h.resolvedSyncPromise(p.eventFromMessage(this._options.stackParser,e,t,r,this._options.attachStacktrace))}captureException(e,t,r){return _(t),super.captureException(e,t,r)}captureEvent(e,t,r){return!e.type&&e.exception?.values&&e.exception.values.length>0&&_(t),super.captureEvent(e,t,r)}captureCheckIn(e,t,r){let i="checkInId"in e&&e.checkInId?e.checkInId:u.uuid4();if(!this._isEnabled())return o.DEBUG_BUILD&&l.debug.warn("SDK not enabled, will not capture check-in."),i;let{release:a,environment:s,tunnel:c}=this.getOptions(),d={check_in_id:i,monitor_slug:e.monitorSlug,status:e.status,release:a,environment:s};"duration"in e&&(d.duration=e.duration),t&&(d.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone,failure_issue_threshold:t.failureIssueThreshold,recovery_threshold:t.recoveryThreshold});let[p,f]=m._getTraceInfoFromScope(this,r);f&&(d.contexts={trace:f});let h=n.createCheckInEnvelope(d,p,this.getSdkMetadata(),c,this.getDsn());return o.DEBUG_BUILD&&l.debug.log("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(h),i}dispose(){for(let e of(o.DEBUG_BUILD&&l.debug.log("Disposing client..."),Object.keys(this._hooks)))this._hooks[e]?.clear();this._hooks={},this._eventProcessors.length=0,this._integrations={},this._outcomes={},this._transport=void 0,this._promiseBuffer=f.makePromiseBuffer(c.DEFAULT_TRANSPORT_BUFFER_SIZE)}_prepareEvent(e,t,r,n){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:e.contexts?.runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,r,n)}_setUpMetricsProcessing(){this.on("processMetric",e=>{this._options.serverName&&(e.attributes={"server.address":this._options.serverName,...e.attributes})})}}function _(e){let t=a.getIsolationScope().getScopeData().sdkProcessingMetadata.requestSession;if(t){let r=e?.mechanism?.handled??!0;r&&"crashed"!==t.status?t.status="errored":r||(t.status="crashed")}}t.ServerRuntimeClient=g},62877:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n=!1},63413:(e,t,r)=>{"use strict";let n;
968Object.defineProperty(t,"__esModule",{value:!0});var i={createRouteLoader:function(){return y},getClientBuildManifest:function(){return g},isAssetError:function(){return h},markAssetError:function(){return f}};for(var a in i)Object.defineProperty(t,a,{enumerable:!0,get:i[a]});r(75591),r(73218);let o=r(53997),s=r(99660),l=r(70975),u=r(84387),c=r(96315);function d(e,t,r){let n,i=t.get(e);if(i)return"future"in i?i.future:Promise.resolve(i);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let p=Symbol("ASSET_LOAD_ERROR");function f(e){return Object.defineProperty(e,p,{})}function h(e){return e&&p in e}let m=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch{return!1}}();function g(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return(0,c.resolvePromiseWithTimeout)(e,f(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})),n)}function _(e,t){return g().then(r=>{if(!(t in r))throw f(Object.defineProperty(Error(`Failed to lookup route: ${t}`),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let n=r[t].map(t=>e+"/_next/"+(0,u.encodeURIPath)(t));return{scripts:n.filter(e=>e.endsWith(".js")).map(e=>(0,o.__unsafeCreateTrustedScriptURL)(e)+(0,l.getAssetTokenQuery)()),css:n.filter(e=>e.endsWith(".css")).map(e=>e+(0,l.getAssetTokenQuery)())}})}function y(e){let t=new Map,r=new Map,i=new Map,a=new Map;function o(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(f(Object.defineProperty(Error(`Failed to load script: ${e}`),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function l(e){let t=i.get(e);return t||i.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error(`Failed to load stylesheet: ${e}`),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw f(e)})),t}return{whenEntrypoint:e=>d(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,i){return d(r,a,()=>{let a;return(0,c.resolvePromiseWithTimeout)(_(e,r).then(({scripts:e,css:n})=>Promise.all([t.has(r)?[]:Promise.all(e.map(o)).then(e=>e),Promise.all(n.map(l))])).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),f(Object.defineProperty(Error(`Route did not complete loading: ${r}`),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0})),n).then(({entrypoint:e,styles:t})=>{let r=Object.assign({styles:t},e);return"error"in e?e:r}).catch(e=>{if(i)throw e;return{error:e}}).finally(()=>a?.())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(m?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,i)=>{let a=`
969      link[rel="prefetch"][href^="${t}"],
970      link[rel="preload"][href^="${t}"],
971      script[src^="${t}"]`;if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>i(f(Object.defineProperty(Error(`Failed to prefetch: ${t}`),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,s.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
971dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63479:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908);t.captureFeedback=function(e,t={},r=n.getCurrentScope()){let{message:i,name:a,email:o,url:s,source:l,associatedEventId:u,tags:c}=e,d={contexts:{feedback:{contact_email:o,name:a,message:i,url:s,source:l,associated_event_id:u}},type:"feedback",level:"info",tags:c},p=r?.getClient()||n.getClient();return p&&p.emit("beforeSendFeedback",d,t),r.captureEvent(d,t)}},63537:(e,t)=>{"use strict";function r(e){switch(e){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";default:return null}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return r}})},63625:(e,t,r)=>{"use strict";let n,i,a,o;r.d(t,{i:()=>c,z:()=>u});var s=r(41098),l=r(71706);function u(e){let t=l.O._sentryDebugIds,r=l.O._debugIds;if(!t&&!r)return{};let s=t?Object.keys(t):[],u=r?Object.keys(r):[];if(o&&s.length===i&&u.length===a)return o;i=s.length,a=u.length,o={},n||(n={});let c=(t,r)=>{for(let i of t){let t=r[i],a=n?.[i];if(a&&o&&t)o[a[0]]=t,n&&(n[i]=[a[0],t]);else if(t){let r=e(i);for(let e=r.length-1;e>=0;e--){let a=r[e],s=a?.filename;if(s&&o&&n){o[s]=t,n[i]=[s,t];break}}}}};return t&&c(s,t),r&&c(u,r),o}function c(e,t){let r=u(e);if(!r)return[];let n=[];for(let e of t){let t=(0,s.Wt)(e);t&&r[t]&&n.push({type:"sourcemap",code_file:e,debug_id:r[t]})}return n}},63669:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(78869),i=r(99056),a=r(66908),o=r(38398),s=r(86160),l=r(53374),u=r(62098),c=r(14645),d=r(62327),p=r(6406),f=r(57833),h=r(33384);function m(e,t,r,n=!0){r&&(!e[t]||n)&&(e[t]=r)}function g(e,t){let r=S(),n=y(e);void 0===n?r.set(e,[t]):n.length>=100?(_(e,n),r.set(e,[t])):r.set(e,[...n,t])}function _(e,t){let r=t??y(e)??[];if(0===r.length)return;let n=e.getOptions(),i=h.createLogEnvelope(r,n._metadata,n.tunnel,e.getDsn());S().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function y(e){return S().get(e)}function S(){return i.getGlobalSingleton("clientToLogBufferMap",()=>new WeakMap)}t._INTERNAL_captureLog=function(e,t=a.getCurrentScope(),r=g){let i=t?.getClient()??a.getClient();if(!i){o.DEBUG_BUILD&&s.debug.warn("No client available to capture log.");return}let{release:h,environment:_,enableLogs:y=!1,beforeSendLog:S}=i.getOptions();if(!y){o.DEBUG_BUILD&&s.debug.warn("logging option not enabled, log will not be captured.");return}let[,E]=p._getTraceInfoFromScope(i,t),b={...e.attributes},{user:{id:T,email:v,username:I},attributes:A={}}=u.getCombinedScopeData(a.getIsolationScope(),t);m(b,"user.id",T,!1),m(b,"user.email",v,!1),m(b,"user.name",I,!1),m(b,"sentry.release",h),m(b,"sentry.environment",_);let{name:R,version:O}=i.getSdkMetadata()?.sdk??{};m(b,"sentry.sdk.name",R),m(b,"sentry.sdk.version",O);let w=i.getIntegrationByName("Replay"),N=w?.getReplayId(!0);m(b,"sentry.replay_id",N),N&&w?.getRecordingMode()==="buffer"&&m(b,"sentry._internal.replay_is_buffering",!0);let C=e.message;if(l.isParameterizedString(C)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=C;t?.length&&(b["sentry.message.template"]=e),t.forEach((e,t)=>{b[`sentry.message.parameter.${t}`]=e})}let P=c._getSpanForScope(t);m(b,"sentry.trace.parent_span_id",P?.spanContext().spanId);let k={...e,attributes:b};i.emit("beforeCaptureLog",k);let M=S?s.consoleSandbox(()=>S(k)):k;if(!M){i.recordDroppedEvent("before_send","log_item",1),o.DEBUG_BUILD&&s.debug.warn("beforeSendLog returned null, log will not be captured.");return}let{level:x,message:L,attributes:U={},severityNumber:D}=M;r(i,{timestamp:d.timestampInSeconds(),level:x,body:L,trace_id:E?.trace_id,severity_number:D??f.SEVERITY_TEXT_TO_SEVERITY_NUMBER[x],attributes:{...n.serializeAttributes(A),...n.serializeAttributes(U,!0)}}),i.emit("afterCaptureLog",M)},t._INTERNAL_captureSerializedLog=g,t._INTERNAL_flushLogsBuffer=_,t._INTERNAL_getLogBuffer=y},64484:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(42686),i=r(62327);function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||i.timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:n.uuid4()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}t.closeSession=function(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)},t.makeSession=function(e){let t=i.timestampInSeconds(),r={sid:n.uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=r,{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}};return e&&a(r,e),r},t.updateSession=a},64995:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700);function i(e,t,r,i){let a={filename:e,function:"<anonymous>"===t?n.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==r&&(a.lineno=r),void 0!==i&&(a.colno=i),a}let a=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,o=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=/at (.+?) ?\(data:(.+?),/,u=[30,e=>{let t=e.match(l);
971if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let r=a.exec(e);if(r){let[,e,t,a]=r;return i(e,n.UNKNOWN_FUNCTION,+t,+a)}let u=o.exec(e);if(u){if(u[2]&&0===u[2].indexOf("eval")){let e=s.exec(u[2]);e&&(u[2]=e[1],u[3]=e[2],u[4]=e[3])}let[e,t]=b(u[1]||n.UNKNOWN_FUNCTION,u[2]);return i(t,e,u[3]?+u[3]:void 0,u[4]?+u[4]:void 0)}}],c=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,d=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,p=[50,e=>{let t=c.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=d.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||n.UNKNOWN_FUNCTION;return[r,e]=b(r,e),i(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=[40,e=>{let t=f.exec(e);return t?i(t[2],t[1]||n.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],m=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,g=[10,e=>{let t=m.exec(e);return t?i(t[2],t[3]||n.UNKNOWN_FUNCTION,+t[1]):void 0}],_=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,y=[20,e=>{let t=_.exec(e);return t?i(t[5],t[3]||t[4]||n.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],S=[u,p],E=n.createStackParser(...S),b=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),i=-1!==e.indexOf("safari-web-extension");return r||i?[-1!==e.indexOf("@")?e.split("@")[0]:n.UNKNOWN_FUNCTION,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};t.chromeStackLineParser=u,t.defaultStackLineParsers=S,t.defaultStackParser=E,t.geckoStackLineParser=p,t.opera10StackLineParser=g,t.opera11StackLineParser=y,t.winjsStackLineParser=h},65224:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908);t.hasSpansEnabled=function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||n.getClient()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},65231:(e,t,r)=>{"use strict";let n;r.d(t,{$X:()=>c,GR:()=>h,M6:()=>p,dO:()=>m,db:()=>f,eJ:()=>l,gO:()=>d});var i=r(45936),a=r(88892),o=r(78886),s=r(71706);function l(e=function(){let e=s.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,a.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return n||(n="10000000100040008000100000000000"),n.replace(/[018]/g,e=>(e^(15&16*(0,a.hY)())>>e/4).toString(16))}function u(e){return e.exception?.values?.[0]}function c(e){let{message:t,event_id:r}=e;if(t)return t;let n=u(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function d(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=r||"Error")}function p(e,t){let r=u(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}function f(e,t,r=5){if(void 0===t.lineno)return;let n=e.length,i=Math.max(Math.min(n-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-r),i).map(e=>(0,o.nC)(e,0));let a=Math.min(n-1,i);t.context_line=(0,o.nC)(e[a],t.colno||0),t.post_context=e.slice(Math.min(i+1,n),i+1+r).map(e=>(0,o.nC)(e,0))}function h(e){if(m(e))return!0;try{(0,i.my)(e,"__sentry_captured__",!0)}catch{}return!1}function m(e){try{return e.__sentry_captured__}catch{}}},65262:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(85699),o="window"in n.GLOBAL_OBJ&&n.GLOBAL_OBJ.window===n.GLOBAL_OBJ&&"u"<typeof importScripts,s=String(0),l=o?"main":"worker",u=a.WINDOW.navigator,c="",d="",p="",f=u?.userAgent||"",h="",m=u?.language||u?.languages?.[0]||"",g=u?.userAgentData;function _(e){return"thread_metadata"in e?e:S(e)}function y(e,t,r,o){let l;if("transaction"!==o.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);let u=("string"==typeof(l=o.contexts?.trace?.trace_id)&&32!==l.length&&i.DEBUG_BUILD&&n.debug.log(`[Profiling] Invalid traceId: ${l} on profiled event`),"string"!=typeof l)?"":l,g=_(r),y=t||("number"==typeof o.start_timestamp?1e3*o.start_timestamp:1e3*n.timestampInSeconds()),S="number"==typeof o.timestamp?1e3*o.timestamp:1e3*n.timestampInSeconds();return{event_id:e,timestamp:new Date(y).toISOString(),platform:"javascript",version:"1",release:o.release||"",environment:o.environment||n.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:a.WINDOW.navigator.userAgent},os:{name:c,version:d,build_number:f},device:{locale:m,model:h,manufacturer:f,architecture:p,is_emulator:!1},debug_meta:{images:E(r.resources)},profile:g,transactions:[{name:o.transaction||"",id:o.event_id||n.uuid4(),trace_id:u,active_thread_id:s,relative_start_ns:"0",relative_end_ns:((S-y)*1e6).toFixed(0)}]}}function S(e){let t,r=0,i={samples:[],stacks:[],frames:[],thread_metadata:{[s]:{name:l}}},a=e.samples[0];if(!a)return i;let o=a.timestamp,u=n.browserPerformanceTimeOrigin(),c="number"==typeof performance.timeOrigin?performance.timeOrigin:u||0,d=c-(u||c);
971return e.samples.forEach((n,a)=>{if(void 0===n.stackId){void 0===t&&(t=r,i.stacks[t]=[],r++),i.samples[a]={elapsed_since_start_ns:((n.timestamp+d-o)*1e6).toFixed(0),stack_id:t,thread_id:s};return}let l=e.stacks[n.stackId],u=[];for(;l;){u.push(l.frameId);let t=e.frames[l.frameId];t&&void 0===i.frames[l.frameId]&&(i.frames[l.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),l=void 0===l.parentId?void 0:e.stacks[l.parentId]}let c={elapsed_since_start_ns:((n.timestamp+d-o)*1e6).toFixed(0),stack_id:r,thread_id:s};i.stacks[r]=u,i.samples[a]=c,r++}),i}function E(e){let t=n.getClient(),r=t?.getOptions(),i=r?.stackParser;return i?n.getDebugImagesForResources(i,e):[]}function b(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(i.DEBUG_BUILD&&n.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||!(e<0)&&!(e>1)||(i.DEBUG_BUILD&&n.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof g&&null!==g&&"getHighEntropyValues"in g&&g.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(c=e.platform||"",p=e.architecture||"",h=e.model||"",d=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];f=`${t.brand} ${t.version}`}}).catch(e=>void 0);let T=!1,v=new Map;t.MAX_PROFILE_DURATION_MS=3e4,t.PROFILER_THREAD_ID_STRING=s,t.PROFILER_THREAD_NAME=l,t.addProfileToGlobalCache=function(e,t){if(v.set(e,t),v.size>30){let e=v.keys().next().value;void 0!==e&&v.delete(e)}},t.addProfilesToEnvelope=function(e,t){if(!t.length)return e;for(let r of t)e[1].push([{type:"profile"},r]);return e},t.applyDebugMetadata=E,t.attachProfiledThreadToEvent=function(e){return e?.contexts?.profile&&e.contexts&&(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":s,"thread.name":l}},e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":s,"thread.name":l}})),e},t.convertJSSelfProfileToSampledFormat=S,t.createProfileChunkPayload=function(e,t,r){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let i=function(e){let t=[];for(let r=0;r<e.frames.length;r++){let n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}let r=[];for(let t=0;t<e.stacks.length;t++){let n=e.stacks[t];if(!n)continue;let i=[],a=n;for(;a;)i.push(a.frameId),a=void 0===a.parentId?void 0:e.stacks[a.parentId];r[t]=i}let i=n.browserPerformanceTimeOrigin(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:i||0,o=a-(i||a),u=[];for(let t=0;t<e.samples.length;t++){let r=e.samples[t];if(!r)continue;let n=(a+(r.timestamp-o))/1e3;u[t]={stack_id:r.stackId??0,thread_id:s,timestamp:n}}return{frames:t,stacks:r,samples:u,thread_metadata:{[s]:{name:l}}}}(e),a=t.getOptions(),o=t.getSdkMetadata?.()?.sdk;return{chunk_id:n.uuid4(),client_sdk:{name:o?.name??"sentry.javascript.browser",version:o?.version??"0.0.0"},profiler_id:r||n.uuid4(),platform:"javascript",version:"2",release:a.release??"",environment:a.environment??"production",debug_meta:{images:E(e.resources)},profile:i}},t.createProfilePayload=y,t.createProfilingEvent=function(e,t,r,a){return(r.samples.length<2?(i.DEBUG_BUILD&&n.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!r.frames.length&&(i.DEBUG_BUILD&&n.debug.log("[Profiling] Discarding profile because it contains no frames"),1))?null:y(e,t,r,a)},t.enrichWithThreadInformation=_,t.findProfiledTransactionsFromEnvelope=function(e){let t=[];return n.forEachEnvelopeItem(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){let n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t},t.getActiveProfilesCount=function(){return v.size},t.hasLegacyProfiling=function(e){return void 0!==e.profilesSampleRate},t.isAutomatedPageLoadSpan=function(e){return"pageload"===n.spanToJSON(e).op},t.isValidSampleRate=b,t.shouldProfileSession=function(e){if(T)return i.DEBUG_BUILD&&n.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return i.DEBUG_BUILD&&n.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return b(t)?t?Math.random()<=t:(i.DEBUG_BUILD&&n.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(i.DEBUG_BUILD&&n.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)},t.shouldProfileSpanLegacy=function(e){if(T)return i.DEBUG_BUILD&&n.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return i.DEBUG_BUILD&&n.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=n.getClient(),r=t?.getOptions();if(!r)return i.DEBUG_BUILD&&n.debug.log("[Profiling] Profiling disabled, no options foun
971d."),!1;let a=r.profilesSampleRate;return b(a)?a?!!(!0===a||Math.random()<a)||(i.DEBUG_BUILD&&n.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(a)})`),!1):(i.DEBUG_BUILD&&n.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(i.DEBUG_BUILD&&n.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)},t.startJSSelfProfile=function(){let e=a.WINDOW.Profiler;if("function"!=typeof e){i.DEBUG_BUILD&&n.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){i.DEBUG_BUILD&&(n.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),n.debug.log("[Profiling] Disabling profiling for current user session.")),T=!0}},t.takeProfileFromGlobalCache=function(e){let t=v.get(e);return t&&v.delete(e),t},t.validateProfileChunk=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let r=e.profile;if(!r)return{reason:"missing profile data"};if(!Array.isArray(r.frames)||!r.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(r.stacks)||!r.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(r.samples)||!r.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}},65395:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(15793),i=r(60008),a=r(83301),o=r(9914),s=new Map,l=new WeakMap;function u(e){let t=e.sessionId;if(t){let e=s.get(t);return e||(e=new Map,s.set(t,e)),e}let r=l.get(e);return r||(r=new Map,l.set(e,r)),r}t.cleanupPendingSpansForTransport=function(e){let t=e.sessionId;if(t){let e=s.get(t);if(e){for(let[,t]of e)t.span.setStatus({code:n.SPAN_STATUS_ERROR,message:"cancelled"}),t.span.end();s.delete(t)}return}let r=l.get(e);if(r){for(let[,e]of r)e.span.setStatus({code:n.SPAN_STATUS_ERROR,message:"cancelled"}),e.span.end();r.clear()}},t.completeSpanWithResults=function(e,t,r,n){let s=u(e),l=s.get(t);if(l){let{span:e,method:u}=l;if("initialize"===u){let t=o.extractSessionDataFromInitializeResponse(r),n={...o.buildServerAttributesFromInfo(t.serverInfo)};t.protocolVersion&&(n[i.MCP_PROTOCOL_VERSION_ATTRIBUTE]=t.protocolVersion),e.setAttributes(n)}else if("tools/call"===u){let t=a.extractToolResultAttributes(r,n.recordOutputs);e.setAttributes(t)}else if("prompts/get"===u){let t=a.extractPromptResultAttributes(r,n.recordOutputs);e.setAttributes(t)}e.end(),s.delete(t)}},t.storeSpanForRequest=function(e,t,r,n){u(e).set(t,{span:r,method:n,startTime:Date.now()})}},66177:e=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{function e(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){for(var i="",a=r+1;a<e.length;){var o=e.charCodeAt(a);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||95===o){i+=e[a++];continue}break}if(!i)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=a;continue}if("("===n){var s=1,l="",a=r+1;if("?"===e[a])throw TypeError('Pattern cannot start with "?" at '.concat(a));for(;a<e.length;){if("\\"===e[a]){l+=e[a++]+e[a++];continue}if(")"===e[a]){if(0==--s){a++;break}}else if("("===e[a]&&(s++,"?"!==e[a+1]))throw TypeError("Capturing groups are not allowed at ".concat(a));l+=e[a++]}if(s)throw TypeError("Unbalanced pattern at ".concat(r));if(!l)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:l}),r=a;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,a=void 0===n?"./":n,o=t.delimiter,s=void 0===o?"/#?":o,l=[],u=0,c=0,d="",p=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},f=function(e){var t=p(e);if(void 0!==t)return t;var n=r[c],i=n.type,a=n.index;throw TypeError("Unexpected ".concat(i," at ").concat(a,", expected ").concat(e))},h=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<s.length;t++){var r=s[t];if(e.indexOf(r)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");
971if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||m(r)?"[^".concat(i(s),"]+?"):"(?:(?!".concat(i(r),")[^").concat(i(s),"])+?")};c<r.length;){var _=p("CHAR"),y=p("NAME"),S=p("PATTERN");if(y||S){var E=_||"";-1===a.indexOf(E)&&(d+=E,E=""),d&&(l.push(d),d=""),l.push({name:y||u++,prefix:E,suffix:"",pattern:S||g(E),modifier:p("MODIFIER")||""});continue}var b=_||p("ESCAPED_CHAR");if(b){d+=b;continue}if(d&&(l.push(d),d=""),p("OPEN")){var E=h(),T=p("NAME")||"",v=p("PATTERN")||"",I=h();f("CLOSE"),l.push({name:T||(v?u++:""),pattern:T&&!v?g(E):v,prefix:E,suffix:I,modifier:p("MODIFIER")||""});continue}f("END")}return l}function r(e,t){void 0===t&&(t={});var r=a(t),n=t.encode,i=void 0===n?function(e){return e}:n,o=t.validate,s=void 0===o||o,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",n=0;n<e.length;n++){var a=e[n];if("string"==typeof a){r+=a;continue}var o=t?t[a.name]:void 0,u="?"===a.modifier||"*"===a.modifier,c="*"===a.modifier||"+"===a.modifier;if(Array.isArray(o)){if(!c)throw TypeError('Expected "'.concat(a.name,'" to not repeat, but got an array'));if(0===o.length){if(u)continue;throw TypeError('Expected "'.concat(a.name,'" to not be empty'))}for(var d=0;d<o.length;d++){var p=i(o[d],a);if(s&&!l[n].test(p))throw TypeError('Expected all "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(p,'"'));r+=a.prefix+p+a.suffix}continue}if("string"==typeof o||"number"==typeof o){var p=i(String(o),a);if(s&&!l[n].test(p))throw TypeError('Expected "'.concat(a.name,'" to match "').concat(a.pattern,'", but got "').concat(p,'"'));r+=a.prefix+p+a.suffix;continue}if(!u){var f=c?"an array":"a string";throw TypeError('Expected "'.concat(a.name,'" to be ').concat(f))}}return r}}function n(e,t,r){void 0===r&&(r={});var n=r.decode,i=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var a=n[0],o=n.index,s=Object.create(null),l=1;l<n.length;l++)!function(e){if(void 0!==n[e]){var r=t[e-1];"*"===r.modifier||"+"===r.modifier?s[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return i(e,r)}):s[r.name]=i(n[e],r)}}(l);return{path:a,index:o,params:s}}}function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function o(e,t,r){void 0===r&&(r={});for(var n=r.strict,o=void 0!==n&&n,s=r.start,l=r.end,u=r.encode,c=void 0===u?function(e){return e}:u,d=r.delimiter,p=r.endsWith,f="[".concat(i(void 0===p?"":p),"]|$"),h="[".concat(i(void 0===d?"/#?":d),"]"),m=void 0===s||s?"^":"",g=0;g<e.length;g++){var _=e[g];if("string"==typeof _)m+=i(c(_));else{var y=i(c(_.prefix)),S=i(c(_.suffix));if(_.pattern)if(t&&t.push(_),y||S)if("+"===_.modifier||"*"===_.modifier){var E="*"===_.modifier?"?":"";m+="(?:".concat(y,"((?:").concat(_.pattern,")(?:").concat(S).concat(y,"(?:").concat(_.pattern,"))*)").concat(S,")").concat(E)}else m+="(?:".concat(y,"(").concat(_.pattern,")").concat(S,")").concat(_.modifier);else{if("+"===_.modifier||"*"===_.modifier)throw TypeError('Can not repeat "'.concat(_.name,'" without a prefix and suffix'));m+="(".concat(_.pattern,")").concat(_.modifier)}else m+="(?:".concat(y).concat(S,")").concat(_.modifier)}}if(void 0===l||l)o||(m+="".concat(h,"?")),m+=r.endsWith?"(?=".concat(f,")"):"$";else{var b=e[e.length-1],T="string"==typeof b?h.indexOf(b[b.length-1])>-1:void 0===b;o||(m+="(?:".concat(h,"(?=").concat(f,"))?")),T||(m+="(?=".concat(h,"|").concat(f,")"))}return new RegExp(m,a(r))}function s(t,r,n){if(t instanceof RegExp){var i;if(!r)return t;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,u=0,c=l.exec(t.source);c;)r.push({name:c[1]||u++,prefix:"",suffix:"",modifier:"",pattern:""}),c=l.exec(t.source);return t}return Array.isArray(t)?(i=t.map(function(e){return s(e,r,n).source}),new RegExp("(?:".concat(i.join("|"),")"),a(n))):o(e(t,n),r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=e,t.compile=function(t,n){return r(e(t,n),n)},t.tokensToFunction=r,t.match=function(e,t){var r=[];return n(s(e,r,t),r,t)},t.regexpToFunction=n,t.tokensToRegexp=o,t.pathToRegexp=s})(),e.exports=t})()},66288:(e,t,r)=>{"use strict";
971Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return o}});let n=r(53241),i=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function o(e,t=!0){return((0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):i.test(e)}},66400:(e,t,r)=>{"use strict";r.d(t,{aj:()=>s,a0:()=>l});var n=r(59685),i=r(14400),a=r(71706),o=r(68835);async function s(){try{o.T&&n.Yz.log("Flushing events..."),await (0,i.bX)(2e3),o.T&&n.Yz.log("Done flushing events")}catch(e){o.T&&n.Yz.log("Error while flushing events:\n",e)}}function l(e){var t;"function"==typeof u()?.waitUntil?(t=e,u()?.waitUntil(t)):function(e){if("string"!=typeof EdgeRuntime)return;let t=a.O[Symbol.for("@vercel/request-context")],r=t?.get?.();r?.waitUntil&&r.waitUntil(e)}(e)}function u(){let e=Symbol.for("__cloudflare-context__");return a.O[e]?.ctx}},66476:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,r&&r.set(e,i),i}r.r(t),r.d(t,{_:()=>i})},66525:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(60008),i=new Set([n.CLIENT_ADDRESS_ATTRIBUTE,n.CLIENT_PORT_ATTRIBUTE,n.MCP_RESOURCE_URI_ATTRIBUTE]);t.filterMcpPiiFromSpanData=function(e,t){return t?e:Object.entries(e).reduce((e,[t,r])=>(i.has(t)||(e[t]=r),e),{})}},66908:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(94748),i=r(99056),a=r(8788),o=r(16039);function s(){let e=i.getMainCarrier();return n.getAsyncContextStrategy(e).getCurrentScope()}t.getClient=function(){return s().getClient()},t.getCurrentScope=s,t.getGlobalScope=function(){return i.getGlobalSingleton("globalScope",()=>new a.Scope)},t.getIsolationScope=function(){let e=i.getMainCarrier();return n.getAsyncContextStrategy(e).getIsolationScope()},t.getTraceContextFromScope=function(e){let{traceId:t,parentSpanId:r,propagationSpanId:n}=e.getPropagationContext(),i={trace_id:t,span_id:n||o.generateSpanId()};return r&&(i.parent_span_id=r),i},t.withIsolationScope=function(...e){let t=i.getMainCarrier(),r=n.getAsyncContextStrategy(t);if(2===e.length){let[t,n]=e;return t?r.withSetIsolationScope(t,n):r.withIsolationScope(n)}return r.withIsolationScope(e[0])},t.withScope=function(...e){let t=i.getMainCarrier(),r=n.getAsyncContextStrategy(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}},67400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return i}}),r(80312);let n="/aistudio";function i(e){return 0===n.length||(e=e.slice(n.length)).startsWith("/")||(e=`/${e}`),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67428:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(72055),i=r(45573),a=r(49287),o=r(41452),s=r(40078),l=r(31603),u=r(62652),c=r(89784),d=r(74614),p=[200,500];t.INPThresholds=p,t.onINP=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let r=i.getVisibilityWatcher();c.whenActivated(()=>{let i;u.initInteractionCountPolyfill();let c=a.initMetric("INP"),f=o.initUnique(t,s.InteractionManager),h=e=>{d.whenIdleOrHidden(()=>{for(let t of e)f._processEntry(t);let t=f._estimateP98LongestInteraction();t&&t._latency!==c.value&&(c.value=t._latency,c.entries=t.entries,i())})},m=l.observe("event",h,{durationThreshold:t.durationThreshold??40});i=n.bindReporter(e,c,p,t.reportAllChanges),m&&(m.observe({type:"first-input",buffered:!0}),r.onHidden(()=>{h(m.takeRecords()),i(!0)}))})}},67648:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(41291);t.logSpanEnd=function(e){if(!n.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >"}=a.spanToJSON(e),{spanId:o}=e.spanContext(),s=a.getRootSpan(e)===e,l=`[Tracing] Finishing "${r}" ${s?"root ":""}span "${t}" with ID ${o}`;i.debug.log(l)},t.logSpanStart=function(e){if(!n.DEBUG_BUILD)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:o}=a.spanToJSON(e),{spanId:s}=e.spanContext(),l=a.spanIsSampled(e),u=a.getRootSpan(e),c=u===e,d=`[Tracing] Starting ${l?"sampled":"unsampled"} ${c?"root ":""}span`,p=[`op: ${r}`,`name: ${t}`,`ID: ${s}`];if(o&&p.push(`parent ID: ${o}`),!c){let{op:e,description:t}=a.spanToJSON(u);p.push(`root ID: ${u.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}i.debug.log(`${d}
972  ${p.join("\n  ")}`)}},67811:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(85699);t.cultureContextIntegration=n.defineIntegration(()=>({name:"CultureContext",preprocessEvent(e){let t=function(){try{let e=i.WINDOW.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}})}}))},67972:(e,t,r)=>{"use strict";
972Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(75591);let n=r(15383);r(14343);let i=r(26623);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,i.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68336:(e,t,r)=>{"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(98345)},68379:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(6935),i=r(6386);t.createCheckInEnvelope=function(e,t,r,a,o){let s={sent_at:new Date().toISOString()};r?.sdk&&(s.sdk={name:r.sdk.name,version:r.sdk.version}),a&&o&&(s.dsn=n.dsnToString(o)),t&&(s.trace=t);let l=[{type:"check_in"},e];return i.createEnvelope(s,[l])}},68671:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79691);function i(e,t=n.safeDateNow()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let a=Date.parse(`${e}`);return isNaN(a)?6e4:a-t}function a(e,t){return e[t]||e.all||0}t.DEFAULT_RETRY_AFTER=6e4,t.disabledUntil=a,t.isRateLimited=function(e,t,r=n.safeDateNow()){return a(e,t)>r},t.parseRetryAfterHeader=i,t.updateRateLimits=function(e,{statusCode:t,headers:r},a=n.safeDateNow()){let o={...e},s=r?.["x-sentry-rate-limits"],l=r?.["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,r,,,n]=e.split(":",5),i=parseInt(t,10),s=(isNaN(i)?60:i)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!n||n.split(";").includes("custom"))&&(o[e]=a+s):o[e]=a+s;else o.all=a+s}else l?o.all=a+i(l,a):429===t&&(o.all=a+6e4);return o}},68804:e=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t,r,n,i,a={};a.parse=function(e,r){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var i={},a=e.split(n),o=(r||{}).decode||t,s=0;s<a.length;s++){var l=a[s],u=l.indexOf("=");if(!(u<0)){var c=l.substr(0,u).trim(),d=l.substr(++u,l.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==i[c]&&(i[c]=function(e,t){try{return t(e)}catch(t){return e}}(d,o))}}return i},a.serialize=function(e,t,n){var a=n||{},o=a.encode||r;if("function"!=typeof o)throw TypeError("option encode is invalid");if(!i.test(e))throw TypeError("argument name is invalid");var s=o(t);if(s&&!i.test(s))throw TypeError("argument val is invalid");var l=e+"="+s;if(null!=a.maxAge){var u=a.maxAge-0;if(isNaN(u)||!isFinite(u))throw TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(a.domain){if(!i.test(a.domain))throw TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){if("function"!=typeof a.expires.toUTCString)throw TypeError("option expires is invali
972d");l+="; Expires="+a.expires.toUTCString()}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:case"strict":l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"none":l+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return l},t=decodeURIComponent,r=encodeURIComponent,n=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,e.exports=a})()},68835:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});let n=!1},68959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseUrl",{enumerable:!0,get:function(){return a}});let n=r(33045),i=r(40126);function a(e){if(e.startsWith("/"))return(0,i.parseRelativeUrl)(e);let t=new URL(e),r=t.username,a=t.password,o=r?a?`${r}:${a}`:r:null,s=t.pathname,l=t.search;return{auth:o,hash:t.hash,hostname:t.hostname,href:t.href,pathname:s,port:t.port,protocol:t.protocol,query:(0,n.searchParamsToUrlQuery)(t.searchParams),search:l,origin:t.origin,slashes:"//"===t.href.slice(t.protocol.length,t.protocol.length+2)}}},69069:(e,t)=>{"use strict";function r(e,t={}){if(t.onlyHashChange)return void e();let n=document.documentElement;if("smooth"!==n.dataset.scrollBehavior)return void e();let i=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return r}})},69365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=r(84531),i=r(12140),a=r(43389),o=r(24620);function s(e){let t=(0,o.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,i.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},69819:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(58885),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70619:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(51045),a=r(16596),o=r(46986),s=r(79822),l=new WeakSet;t.wrapMcpServerWithSentry=function(e,t){if(l.has(e)||!s.validateMcpServerInstance(e))return e;let r=n.getClient(),u=!!r?.getOptions().sendDefaultPii,c={recordInputs:t?.recordInputs??u,recordOutputs:t?.recordOutputs??u};return i.fill(e,"connect",e=>async function(t,...r){let n=await e.call(this,t,...r);return o.wrapTransportOnMessage(t,c),o.wrapTransportSend(t,c),o.wrapTransportOnClose(t),o.wrapTransportError(t),n}),a.wrapAllMCPHandlers(e),l.add(e),e}},70783:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(62151),o="[Tracing] Not injecting trace data for url because it does not match tracePropagationTargets:";t.shouldPropagateTraceForUrl=function(e,t,r){if("string"!=typeof e||!t)return!0;let s=r?.get(e);if(void 0!==s)return n.DEBUG_BUILD&&!s&&i.debug.log(o,e),s;let l=a.stringMatchesSomePattern(e,t);return r?.set(e,l),n.DEBUG_BUILD&&!l&&i.debug.log(o,e),l}},70975:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0});var n={getAssetToken:function(){return s},getAssetTokenQuery:function(){return l},getDeploymentId:function(){return a},getDeploymentIdQuery:function(){return o}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});function a(){return r}function o(e=!1){return r?`${e?"&":"?"}dpl=${r}`:""}function s(){return!1}function l(e=!1){return""}r=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId},71091:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(46298),i=r(14839);t.featureFlagsIntegration=n.defineIntegration(()=>({name:"FeatureFlags",processEvent:(e,t,r)=>i._INTERNAL_copyFlagsFromScopeToEvent(e),addFeatureFlag(e,t){i._INTERNAL_insertFlagToScope(e,t),i._INTERNAL_addFeatureFlagToActiveSpan(e,t)}}))},71139:(e,t,r)=>{"use strict";
972Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPathMatch",{enumerable:!0,get:function(){return i}});let n=r(66177);function i(e,t){let r=[],i=(0,n.pathToRegexp)(e,r,{delimiter:"/",sensitive:"boolean"==typeof t?.sensitive&&t.sensitive,strict:t?.strict}),a=(0,n.regexpToFunction)(t?.regexModifier?new RegExp(t.regexModifier(i.source),i.flags):i,r);return(e,n)=>{if("string"!=typeof e)return!1;let i=a(e);if(!i)return!1;if(t?.removeUnnamedParams)for(let e of r)"number"==typeof e.name&&delete i.params[e.name];return{...n,...i.params}}}},71214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return a}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i=["default","imgix","cloudinary","akamai","custom"],a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},71296:(e,t)=>{function r(e){var t,s,l,u,c,d;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&r(t.source)||i(e)||"image_url"in(s=e)&&("string"==typeof s.image_url?s.image_url.startsWith("data:"):n(s))||a(e)||o(e)||"media_type"in(l=e)&&"string"==typeof l.media_type&&"data"in l||"type"in(u=e)&&("blob"===u.type||"base64"===u.type)||"b64_json"in e||"type"in(c=e)&&"result"in c&&"image_generation"===c.type||"uri"in(d=e)&&"string"==typeof d.uri&&d.uri.startsWith("data:"))}function n(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.image_url.url.startsWith("data:")}function i(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function a(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function o(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let s="[Blob substitute]",l=["image_url","data","content","b64_json","result","uri"];t.isContentMedia=r,t.stripInlineMediaFromSingleMessage=function e(t){let u={...t};for(let c of(r(u.source)&&(u.source=e(u.source)),i(t)&&(u.inlineData={...t.inlineData,data:s}),n(t)&&(u.image_url={...t.image_url,url:s}),a(t)&&(u.input_audio={...t.input_audio,data:s}),o(t)&&(u.file={...t.file,file_data:s}),l))"string"==typeof u[c]&&(u[c]=s);return u}},71410:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(6935),i=r(6386);function a(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}t.createMetricContainerEnvelopeItem=a,t.createMetricEnvelope=function(e,t,r,o){let s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&o&&(s.dsn=n.dsnToString(o)),i.createEnvelope(s,[a(e)])}},71706:(e,t,r)=>{"use strict";r.d(t,{O:()=>n});let n=globalThis},72055:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.bindReporter=(e,t,r,n)=>{let i,a;return o=>{if(t.value>=0&&(o||n)&&((a=t.value-(i??0))||void 0===i)){var s;i=t.value,t.delta=a,s=t.value,t.rating=s>r[1]?"poor":s>r[0]?"needs-improvement":"good",e(t)}}}},72733:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.addAutoIpAddressToSession=function(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")},t.addAutoIpAddressToUser=function(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}},73218:(e,t)=>{"use strict";function r(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:e)+t}
972Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},73699:(e,t,r)=>{"use strict";r.d(t,{D0:()=>c,De:()=>u,sv:()=>o,yD:()=>l});var n=r(62877),i=r(59685),a=r(21275);let o="sentry-",s=/^sentry-/;function l(e){let t=c(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>(t.match(s)&&(e[t.slice(o.length)]=r),e),{});return Object.keys(r).length>0?r:void 0}function u(e){if(e){var t=Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${o}${t}`]=r),e),{});return 0!==Object.keys(t).length?Object.entries(t).reduce((e,[t,r],a)=>{let o=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===a?o:`${e},${o}`;return s.length>8192?(n.T&&i.Yz.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},""):void 0}}function c(e){if(e&&((0,a.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(d(t)).forEach(([t,r])=>{e[t]=r}),e),{}):d(e)}function d(e){return e.split(",").map(e=>{let t=e.indexOf("=");return -1===t?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}},73808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(97248),i=r(76488);function a(e){return(0,i.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73922:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.merge=function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}},73937:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=n.defineIntegration(()=>({name:"LaunchDarkly",processEvent:(e,t,r)=>n._INTERNAL_copyFlagsFromScopeToEvent(e)}));t.buildLaunchDarklyFlagUsedHandler=function(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,r)=>{n._INTERNAL_insertFlagToScope(e,t.value),n._INTERNAL_addFeatureFlagToActiveSpan(e,t.value)}}},t.launchDarklyIntegration=i},73943:e=>{"use strict";e.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},73965:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700);t.setActiveSpanInBrowser=function(e){let t=n.getActiveSpan();if(t===e)return;let r=n.getCurrentScope();e.end=new Proxy(e.end,{apply:(e,i,a)=>(n._INTERNAL_setSpanForScope(r,t),Reflect.apply(e,i,a))}),n._INTERNAL_setSpanForScope(r,e)}},74085:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(76953),i=new Map,a=new Set;function o(e,t){if(n.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(n.GLOBAL_OBJ._sentryModuleMetadata)){let r=n.GLOBAL_OBJ._sentryModuleMetadata[t];if(!a.has(t)){for(let n of(a.add(t),e(t).reverse()))if(n.filename){i.set(n.filename,r);break}}}return i.get(t)}t.addMetadataToStackFrames=function(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let r=o(e,t.filename);r&&(t.module_metadata=r)})})},t.getFilenameToMetadataMap=function(e){if(!n.GLOBAL_OBJ._sentryModuleMetadata)return{};let t={};for(let r of Object.keys(n.GLOBAL_OBJ._sentryModuleMetadata)){let i=n.GLOBAL_OBJ._sentryModuleMetadata[r];for(let n of e(r).reverse())if(n.filename){t[n.filename]=i;break}}return t},t.getMetadataForUrl=o,t.stripMetadataFromStackFrames=function(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}},74614:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(19849),i=r(60887),a=r(30731);t.whenIdleOrHidden=e=>{let t=n.WINDOW.requestIdleCallback||n.WINDOW.setTimeout;n.WINDOW.document?.visibilityState==="hidden"?e():(e=a.runOnce(e),i.addPageListener("visibilitychange",e,{once:!0,capture:!0}),i.addPageListener("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),i.removePageListener("visibilitychange",e,{capture:!0}),i.removePageListener("pagehide",e,{capture:!0})}
972))}},74660:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(80804),i=r(6935),a=r(6386),o="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function s(e,t){let r;return a.forEachEnvelopeItem(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}t.MULTIPLEXED_TRANSPORT_EXTRA_KEY=o,t.eventFromEnvelope=s,t.makeMultiplexedTransport=function(e,t){return r=>{let l=e(r),u=new Map,c=t||(e=>{let t=e.getEvent();return t?.extra?.[o]&&Array.isArray(t.extra[o])?t.extra[o]:[]});function d(t,a){let o=a?`${t}:${a}`:t,l=u.get(o);if(!l){let c=i.dsnFromString(t);if(!c)return;let d=n.getEnvelopeEndpointWithUrlEncodedAuth(c,r.tunnel);l=a?(t=>{let r=e(t);return{...r,send:async e=>{let t=s(e,["event","transaction","profile","replay_event"]);return t&&(t.release=a),r.send(e)}}})({...r,url:d}):e({...r,url:d}),u.set(o,l)}return[t,l]}return{send:async function(e){let t=c({envelope:e,getEvent:function(t){return s(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?d(e,void 0):d(e.dsn,e.release)).filter(e=>!!e),r=t.length?t:[["",l]];return(await Promise.all(r.map(([t,r])=>r.send(a.createEnvelope(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...u.values(),l];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}},75171:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(19849),a=r(40628);t.extractNetworkProtocol=function(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}return n===e&&(t=n),{name:t,version:r}},t.getBrowserPerformanceAPI=function(){return i.WINDOW.addEventListener&&i.WINDOW.performance},t.isMeasurementValue=function(e){return"number"==typeof e&&isFinite(e)},t.listenForWebVitalReportEvents=function(e,t){let r,n=!1;function i(e){!n&&r&&t(e,r),n=!0}a.onHidden(()=>{i("pagehide")});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,s()})},t.msToSec=function(e){return e/1e3},t.startAndEndSpan=function(e,t,r,{...i}){let a=n.spanToJSON(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),n.withActiveSpan(e,()=>{let e=n.startInactiveSpan({startTime:t,...i});return e&&e.end(r),e})},t.startStandaloneWebVitalSpan=function(e){let t,r=n.getClient();if(!r)return;let{name:a,transaction:o,attributes:s,startTime:l}=e,{release:u,environment:c,sendDefaultPii:d}=r.getOptions(),p=r.getIntegrationByName("Replay"),f=p?.getReplayId(),h=n.getCurrentScope(),m=h.getUser(),g=void 0!==m?m.email||m.id||m.ip_address:void 0;try{t=h.getScopeData().contexts.profile.profile_id}catch{}let _={release:u,environment:c,user:g||void 0,profile_id:t||void 0,replay_id:f||void 0,transaction:o,"user_agent.original":i.WINDOW.navigator?.userAgent,"client.address":d?"{{auto}}":void 0,...s};return n.startInactiveSpan({name:a,attributes:_,startTime:l,experimental:{standalone:!0}})},t.supportsWebVital=function(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}},75194:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},75308:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(77191),i=r(15793),a=r(23105),o=r(23675),s=r(93232);t.handleResponseError=function(e,t){t.error&&(e.setStatus({code:i.SPAN_STATUS_ERROR,message:t.error.type||"internal_error"}),n.captureException(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))},t.messagesFromParams=function(e){let{system:t,messages:r,input:n}=e,i="string"==typeof t?[{role:"system",content:e.system}]:[],a=Array.isArray(n)?n:null!=n?[n]:void 0,o=Array.isArray(r)?r:null!=r?[r]:[];return[...i,...a??o]},t.setMessagesAttribute=function(e,t){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:r,filteredMessages:n}=o.extractSystemInstructions(t);r&&e.setAttributes({[a.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:r});let i=Array.isArray(n)?n.length:1;
972e.setAttributes({[a.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:o.getTruncatedJsonString(n),[a.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:i})},t.shouldInstrument=function(e){return s.ANTHROPIC_AI_INSTRUMENTED_METHODS.includes(e)}},75309:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(77191),a=r(41291),o=r(15793);t.captureError=function(e,t,r){try{if(!n.getClient())return;let s=a.getActiveSpan();s?.isRecording()&&s.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),i.captureException(e,{mechanism:{type:"auto.ai.mcp_server",handled:!1,data:{error_type:t||"handler_execution",...r}}})}catch{}}},75455:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(80804),i=r(8305),a=r(66908),o=r(38398),s=r(992),l=r(46298),u=r(63669),c=r(85039),d=r(64484),p=r(404),f=r(94714),h=r(61215),m=r(86160),g=r(6935),_=r(6386),y=r(29443),S=r(53374),E=r(73922),b=r(42686),T=r(11661),v=r(98815),I=r(22461),A=r(79691),R=r(17805),O=r(41291),w=r(35822),N=r(13903),C=r(31462),P="Not capturing exception because it's already been captured.",k="Discarded session because of missing or non-string release",M=Symbol.for("SentryInternalError"),x=Symbol.for("SentryDoNotSendEventError");function L(e){return{message:e,[M]:!0}}function U(e){return{message:e,[x]:!0}}function D(e){return!!e&&"object"==typeof e&&M in e}function B(e){return!!e&&"object"==typeof e&&x in e}function j(e,t,r,n,i){let a,o=0,s=!1;e.on(r,()=>{o=0,clearTimeout(a),s=!1}),e.on(t,t=>{(o+=n(t))>=8e5?i(e):s||(s=!0,a=N.safeUnref(setTimeout(()=>{i(e)},5e3)))}),e.on("flush",()=>{i(e)})}class F{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=I.makePromiseBuffer(e.transportOptions?.bufferSize??f.DEFAULT_TRANSPORT_BUFFER_SIZE),e.dsn?this._dsn=g.makeDsn(e.dsn):o.DEBUG_BUILD&&m.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=n.getEnvelopeEndpointWithUrlEncodedAuth(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&&j(this,"afterCaptureLog","flushLogs",z,u._INTERNAL_flushLogsBuffer),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&j(this,"afterCaptureMetric","flushMetrics",W,c._INTERNAL_flushMetricsBuffer)}captureException(e,t,r){let n=b.uuid4();if(b.checkOrSetAlreadyCaught(e))return o.DEBUG_BUILD&&m.debug.log(P),n;let i={event_id:n,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r)).then(e=>e),"error"),i.event_id}captureMessage(e,t,r,n){let i={event_id:b.uuid4(),...r},a=S.isParameterizedString(e)?e:String(e),o=S.isPrimitive(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,n)),o?"unknown":"error"),i.event_id}captureEvent(e,t,r){let n=b.uuid4();if(t?.originalException&&b.checkOrSetAlreadyCaught(t.originalException))return o.DEBUG_BUILD&&m.debug.log(P),n;let i={event_id:n,...t},a=e.sdkProcessingMetadata||{},s=a.capturedSpanScope,l=a.capturedSpanIsolationScope,u=$(e.type);return this._process(()=>this._captureEvent(e,i,s||r,l),u),i.event_id}captureSession(e){this.sendSession(e),d.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 r=await this._isClientDoneProcessing(e),n=await t.flush(e);return r&&n}async close(e){u._INTERNAL_flushLogsBuffer(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];l.setupIntegration(this,e,this._integrations),t||l.afterSetupIntegrations(this,[e])}sendEvent(e,t={}
972){this.emit("beforeSendEvent",e,t);let r=s.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=_.addItemToEnvelope(r,_.createAttachmentEnvelopeItem(e));this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){let{release:t,environment:r=i.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){o.DEBUG_BUILD&&m.debug.warn(k);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){o.DEBUG_BUILD&&m.debug.warn(k);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=s.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;o.DEBUG_BUILD&&m.debug.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||new Set,n=(...e)=>t(...e);return r.add(n),()=>{r.delete(n)}}emit(e,...t){let r=this._hooks[e];r&&r.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 o.DEBUG_BUILD&&m.debug.error("Error while sending envelope:",e),{}}return o.DEBUG_BUILD&&m.debug.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=l.setupIntegrations(this,e),l.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i){for(let e of(n=!0,r=!1,i))if(e.mechanism?.handled===!1){r=!0;break}}let a="ok"===e.status;(a&&0===e.errors||a&&r)&&(d.updateSession(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),v.prepareEvent(i,e,t,r,this,n).then(e=>
972(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:a.getTraceContextFromScope(r),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:p.getDynamicSamplingContextFromScope(this,r),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},r=a.getCurrentScope(),n=a.getIsolationScope()){return o.DEBUG_BUILD&&G(e)&&m.debug.log(`Captured error event \`${y.getPossibleEventMessages(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{o.DEBUG_BUILD&&(B(e)?m.debug.log(e.message):D(e)?m.debug.warn(e.message):m.debug.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:a}=i,o=H(e),s=G(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===a?void 0:T.parseSampleRate(a);if(s&&"number"==typeof c&&A.safeMathRandom()>c)return this.recordDroppedEvent("sample_rate","error"),w.rejectedSyncPromise(U(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let d=$(e.type);return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),U("An event processor returned `null`, will not send event.");return t.data&&!0===t.data.__sentry__?e:function(e,t){let r=`${t} must return \`null\` or a valid event.`;if(S.isThenable(e))return e.then(e=>{if(!S.isPlainObject(e)&&null!==e)throw L(r);return e},e=>{throw L(`${t} rejected with ${e}`)});if(!S.isPlainObject(e)&&null!==e)throw L(r);return e}(function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:a,beforeSendSpan:o,ignoreSpans:s}=t,l=r;if(G(l)&&i)return i(l,n);if(H(l)){if(o||s){let t=C.convertTransactionEventToSpanJson(l);if(s?.length&&R.shouldIgnoreSpan(t,s))return null;if(o){let e=o(t);e?l=E.merge(r,C.convertSpanJsonToTransactionEvent(e)):O.showSpanDropWarning()}if(l.spans){let t=[],r=l.spans;for(let e of r){if(s?.length&&R.shouldIgnoreSpan(e,s)){R.reparentChildSpans(r,e);continue}if(o){let r=o(e);r?t.push(r):(O.showSpanDropWarning(),t.push(e))}else t.push(e)}let n=l.spans.length-t.length;n&&e.recordDroppedEvent("before_send","span",n),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,n)}}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 U(`${u} returned \`null\`, will not send event.`)}let a=r.getSession()||n.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(B(e)||D(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),L(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
973Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===I.SENTRY_BUFFER_FULL_ERROR&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){o.DEBUG_BUILD&&m.debug.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){o.DEBUG_BUILD&&m.debug.log("No outcomes to send");return}if(!this._dsn){o.DEBUG_BUILD&&m.debug.log("No dsn provided, will not send outcomes");return}o.DEBUG_BUILD&&m.debug.log("Sending outcomes:",e);let t=h.createClientReportEnvelope(e,this._options.tunnel&&g.dsnToString(this._dsn));this.sendEnvelope(t)}}function $(e){return"replay_event"===e?"replay":e||"error"}function G(e){return void 0===e.type}function H(e){return"transaction"===e.type}function W(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+q(e.attributes)}function z(e){let t=0;return e.message&&(t+=2*e.message.length),t+q(e.attributes)}function q(e){if(!e)return 0;let t=0;
973return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*J(e[0]):S.isPrimitive(e)?t+=J(e):t+=100}),t}function J(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}t.Client=F},75567:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=/\(error: (.*)\)/,n=/captureMessage|captureException/;function i(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,i=0)=>{let o=[],s=e.split("\n");for(let e=n;e<s.length;e++){let n=s[e];n.length>1024&&(n=n.slice(0,1024));let a=r.test(n)?n.replace(r,"$1"):n;if(!a.match(/\S*Error: /)){for(let e of t){let t=e(a);if(t){o.push(t);break}}if(o.length>=50+i)break}}return a(o.slice(i))}}function a(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(o(t).function||"")&&t.pop(),t.reverse(),n.test(o(t).function||"")&&(t.pop(),n.test(o(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||o(t).filename,function:e.function||"?"}))}function o(e){return e[e.length-1]||{}}let s="<anonymous>";t.UNKNOWN_FUNCTION="?",t.createStackParser=i,t.getFramesFromEvent=function(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}},t.getFunctionName=function(e){try{if(!e||"function"!=typeof e)return s;return e.name||s}catch{return s}},t.getVueInternalName=function(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"},t.normalizeStackTracePath=function(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t},t.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?i(...e):e},t.stripSentryFramesAndReverse=a},75591:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},76020:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let r=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];t.getClientIPAddress=function(e){let t={};for(let r of Object.keys(e))t[r.toLowerCase()]=e[r];return r.map(e=>{let r=t[e.toLowerCase()],n=Array.isArray(r)?r.join(";"):r;return"Forwarded"===e?function(e){if(!e)return null;for(let t of e.split(";"))if(t.startsWith("for="))return t.slice(4);return null}(n):n?.split(",").map(e=>e.trim())}).reduce((e,t)=>t?e.concat(t):e,[]).find(e=>{var t;return null!==e&&(t=e,/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(t))})||null},t.ipHeaderNames=r},76488:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={REDIRECT_ERROR_CODE:function(){return o},isRedirectError:function(){return s}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let a=r(37598),o="NEXT_REDIRECT";function s(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,n]=t,i=t.slice(2,-2).join(";"),s=Number(t.at(-2));
973return r===o&&("replace"===n||"push"===n)&&"string"==typeof i&&!isNaN(s)&&s in a.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76677:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.GEN_AI_CONVERSATION_ID_ATTRIBUTE="gen_ai.conversation.id",t.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",t.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",t.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD="http.request.method",t.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",t.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME="sentry.custom_span_name",t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",t.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",t.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE="sentry.previous_trace_sample_rate",t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source",t.SEMANTIC_ATTRIBUTE_URL_FULL="url.full",t.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE="sentry.link.type"},76953:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.GLOBAL_OBJ=globalThis},77151:(e,t,r)=>{"use strict";r.d(t,{A9:()=>h,Iy:()=>f,MI:()=>u,TC:()=>p,kM:()=>d,nc:()=>c});var n=r(59685),i=r(73699),a=r(25952),o=r(57682),s=r(24694),l=r(88892);let u=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function c(e){let t;if(!e)return;let r=e.match(u);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}function d(e,t){let r=c(e),n=(0,i.yD)(t);if(!r?.traceId)return{traceId:(0,s.e)(),sampleRand:(0,l.hY)()};let a=function(e,t){let r=(0,o.i)(t?.sample_rand);if(void 0!==r)return r;let n=(0,o.i)(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?(0,l.hY)()*n:n+(0,l.hY)()*(1-n):(0,l.hY)()}(r,n);n&&(n.sample_rand=a.toString());let{traceId:u,parentSpanId:d,parentSampled:p}=r;return{traceId:u,parentSpanId:d,sampled:p,dsc:n||{},sampleRand:a}}function p(e=(0,s.e)(),t=(0,s.Z)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}function f(e=(0,s.e)(),t=(0,s.Z)(),r){return`00-${e}-${t}-${r?"01":"00"}`}function h(e,t){let r=(0,a.ul)(e);return t&&r&&t!==r?(n.Yz.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${r})`),!1):!e.getOptions().strictTraceContinuation||(!t||!!r)&&(!!t||!r)||(n.Yz.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${r})`),!1)}},77191:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(38398),a=r(64484),o=r(95068),s=r(86160),l=r(53374),u=r(42686),c=r(98815),d=r(62098),p=r(62327),f=r(76953);function h(e,t){let r=n.getCurrentScope(),a=n.getClient();if(a)if(a.captureCheckIn)return a.captureCheckIn(e,t,r);else i.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. Client does not support sending check-ins.");else i.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. No client defined.");return u.uuid4()}async function m(e){let t=n.getClient();return t?t.flush(e):(i.DEBUG_BUILD&&s.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function g(e){let t=n.getClient();return t?t.close(e):(i.DEBUG_BUILD&&s.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function _(){let e=n.getIsolationScope(),t=n.getCurrentScope().getSession()||e.getSession();t&&a.closeSession(t),y(),e.setSession()}function y(){let e=n.getIsolationScope(),t=n.getClient(),r=e.getSession();r&&t&&t.captureSession(r)}t.addEventProcessor=function(e){n.getIsolationScope().addEventProcessor(e)},t.captureCheckIn=h,t.captureEvent=function(e,t){return n.getCurrentScope().captureEvent(e,t)},t.captureException=function(e,t){return n.getCurrentScope().captureException(e,c.parseEventHintOrCaptureContext(t))},t.captureMessage=function(e,t){let r="string"==typeof t?t:void 0,i="string"!=typeof t?{captureContext:t}:void 0;return n.getCurrentScope().captureMessage(e,r,i)},t.captureSession=function(e=!1){e?_():y()},t.close=g,t.endSession=_,t.flush=m,t.isEnabled=function(){let e=n.getClient();return e?.getOptions().enabled!==!1&&!!e?.getTransport()},t.isInitialized=function(){return!!n.getClient()},t.lastEventId=function(){return n.getIsolationScope().lastEventId()},t.setContext=function(e,t){n.getIsolationScope().setContext(e,t)},t.setConversationId=function(e){n.getIsolationScope().setConversationId(e)},t.setExtra=function(e,t){n.getIsolationScope().setExtra(e,t)},t.setExtras=function(e){n.getIsolationScope().setExtras(e)},t.setTag=function(e,t){n.getIsolationScope().setTag(e,t)},t.setTags=function(e){n.getIsolationScope().setTags(e)},t.setUser=function(e){n.getIsolationScope().setUser(e)},t.startSession=function(e){let t=n.getIsolationScope(),{user:r}=d.getCombinedScopeData(t,n.getCurrentScope()),{userAgent:i}=f.GLOBAL_OBJ.navigator||{},o=a.makeSession({user:r,...i&&{userAgent:i},...e}),s=t.getSession();return s?.status==="ok"&&a.updateSession(s,{status:"exited"}),_(),t.setSession(o),o},t.withMonitor=function(e,t,r){function i(){let n,i=h({monitorSlug:e,status:"in_progress"},r),a=p.timestampInSeconds();function o(t){h({monitorSlug:e,status:t,checkInId:i,duration:p.timestampInSeconds()-a})}try{n=t()}catch(e){throw o("error"),e}return l.isThenable(n)?n.then(e=>(o("ok"),e),e=>{throw o("error"),e}):(o("ok"),n)}return n.withIsolationScope(()=>
973r?.isolateTrace?o.startNewTrace(i):i())}},77628:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(63669);function i(e,t,r,i,a){n._INTERNAL_captureLog({level:e,message:t,attributes:r,severityNumber:a},i)}t.fmt=r(33253).fmt,t.debug=function(e,t,{scope:r}={}){i("debug",e,t,r)},t.error=function(e,t,{scope:r}={}){i("error",e,t,r)},t.fatal=function(e,t,{scope:r}={}){i("fatal",e,t,r)},t.info=function(e,t,{scope:r}={}){i("info",e,t,r)},t.trace=function(e,t,{scope:r}={}){i("trace",e,t,r)},t.warn=function(e,t,{scope:r}={}){i("warn",e,t,r)}},77998:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(15004);let n=(e,...t)=>e;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78114:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(5756),a=r(51336),o=r(85699);t.browserSessionIntegration=n.defineIntegration((e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===o.WINDOW.document){a.DEBUG_BUILD&&n.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}n.startSession({ignoreDuration:!0}),n.captureSession();let e=n.getIsolationScope(),r=e.getUser();e.addScopeListener(e=>{let t=e.getUser();
973(r?.id!==t?.id||r?.ip_address!==t?.ip_address)&&(n.captureSession(),r=t)}),"route"===t&&i.addHistoryInstrumentationHandler(({from:e,to:t})=>{e!==t&&(n.startSession({ignoreDuration:!0}),n.captureSession())})}}})},78145:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={DEFAULT_SEGMENT_KEY:function(){return c},NOT_FOUND_SEGMENT_KEY:function(){return d},PAGE_SEGMENT_KEY:function(){return u},addSearchParamsIfPageSegment:function(){return s},computeSelectedLayoutSegment:function(){return l},getSegmentValue:function(){return i},getSelectedLayoutSegmentPath:function(){return function e(t,r,n=!0,a=[]){let o;if(n)o=t[1][r];else{let e=t[1];o=e.children??Object.values(e)[0]}if(!o)return a;let s=i(o[0]);return!s||s.startsWith(u)?a:(a.push(s),e(o,r,!1,a))}},isGroupSegment:function(){return a},isParallelRouteSegment:function(){return o}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});function i(e){return Array.isArray(e)?e[1]:e}function a(e){return"("===e[0]&&e.endsWith(")")}function o(e){return e.startsWith("@")&&"@children"!==e}function s(e,t){if(e.includes(u)){let e=JSON.stringify(t);return"{}"!==e?u+"?"+e:u}return e}function l(e,t){if(!e||0===e.length)return null;let r="children"===t?e[0]:e[e.length-1];return r===c?null:r}let u="__PAGE__",c="__DEFAULT__",d="/_not-found"},78869:(e,t)=>{function r(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")}function n(e,t){let{value:n,unit:i}=r(e)?e:{value:e,unit:void 0},a=function(e){let t="string"==typeof e?"string":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?null:Number.isInteger(e)?"integer":"double";if(t)return{value:e,type:t}}(n),o=i&&"string"==typeof i?{unit:i}:{};if(a)return{...a,...o};if(!t||"skip-undefined"===t&&void 0===n)return;let s="";try{s=JSON.stringify(n)??""}catch{}return{value:s,type:"string",...o}}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.attributeValueToTypedAttributeValue=n,t.isAttributeObject=r,t.serializeAttributes=function(e,t=!1){let r={};for(let[i,a]of Object.entries(e??{})){let e=n(a,t);e&&(r[i]=e)}return r}},78886:(e,t,r)=>{"use strict";r.d(t,{Xr:()=>u,_c:()=>l,gt:()=>s,nC:()=>o,xv:()=>a});var n=r(21275),i=r(41098);function a(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){let r=e,n=r.length;if(n<=150)return r;t>n&&(t=n);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,n);return a>n-5&&(a=n),a===n&&(i=Math.max(a-140,0)),r=r.slice(i,a),i>0&&(r=`'{snip} ${r}`),a<n&&(r+=" {snip}"),r}function s(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let a=e[t];try{(0,n.L2)(a)?r.push((0,i.nY)(a)):r.push(String(a))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function l(e,t,r=!1){return!!(0,n.Kg)(e)&&((0,n.gd)(t)?t.test(e):!!(0,n.Kg)(t)&&(r?e===t:e.includes(t)))}function u(e,t=[],r=!1){return t.some(t=>l(e,t,r))}},78972:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(5756),a=r(51336),o=r(85699);t.breadcrumbsIntegration=n.defineIntegration((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r,s,l,u,c,d,p;t.console&&n.addConsoleInstrumentationHandler((r=e,function(e){if(n.getClient()!==r)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:n.severityLevelFromString(e.level),message:n.safeJoin(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${n.safeJoin(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);n.addBreadcrumb(t,{input:e.args,level:e.level})})),t.dom&&i.addClickKeypressInstrumentationHandler((s=e,l=t.dom,function(e){let t,r;if(n.getClient()!==s)return;let i="object"==typeof l?l.serializeAttribute:void 0,o="object"==typeof l&&"number"==typeof l.maxStringLength?l.maxStringLength:void 0;o&&o>1024&&(a.DEBUG_BUILD&&n.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof i&&(i=[i]);try{var u;let a=e.event,s=(u=a)&&u.target?a.target:a;t=n.htmlTreeAsString(s,{keyAttrs:i,maxStringLength:o}),r=n.getComponentName(s)}catch{t="<unknown>"}if(0===t.length)return;let c={category:`ui.${e.name}`,message:t};r&&(c.data={"ui.component_name":r}),n.addBreadcrumb(c,{event:e.event,name:e.name,global:e.global})})),t.xhr&&i.addXhrInstrumentationHandler((u=e,function(e){if(n.getClient()!==u)return;let{startTimestamp:t,endTimestamp:r}=e,a=e.xhr[i.SENTRY_XHR_DATA_KEY];if(!t||!r||!a)return;let{method:o,url:s,status_code:l,body:c}=a,d={xhr:e.xhr,input:c,startTimestamp:t,endTimestamp:r},p={category:"xhr",data:{method:o,url:s,status_code:l},type:"http",level:n.getBreadcrumbLogLevelFromHttpStatusCode(l)};u.emit("beforeOutgoingRequestBreadcrumb",p,d),n.addBreadcrumb(p,d)})),t.fetch&&n.addFetchInstrumentationHandler((c=e,function(e){if(n.getClient()!==c)return;let{startTimestamp:t,endTimestamp:r}=e;
973if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.fetchData.method,e.fetchData.url,e.error){let i=e.fetchData,a={data:e.error,input:e.args,startTimestamp:t,endTimestamp:r},o={category:"fetch",data:i,level:"error",type:"http"};c.emit("beforeOutgoingRequestBreadcrumb",o,a),n.addBreadcrumb(o,a)}else{let i=e.response,a={...e.fetchData,status_code:i?.status};e.fetchData.request_body_size,e.fetchData.response_body_size,i?.status;let o={input:e.args,response:i,startTimestamp:t,endTimestamp:r},s={category:"fetch",data:a,type:"http",level:n.getBreadcrumbLogLevelFromHttpStatusCode(a.status_code)};c.emit("beforeOutgoingRequestBreadcrumb",s,o),n.addBreadcrumb(s,o)}})),t.history&&i.addHistoryInstrumentationHandler((d=e,function(e){if(n.getClient()!==d)return;let t=e.from,r=e.to,i=n.parseUrl(o.WINDOW.location.href),a=t?n.parseUrl(t):void 0,s=n.parseUrl(r);a?.path||(a=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===a.protocol&&i.host===a.host&&(t=a.relative),n.addBreadcrumb({category:"navigation",data:{from:t,to:r}})})),t.sentry&&e.on("beforeSendEvent",(p=e,function(e){n.getClient()===p&&n.addBreadcrumb({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:n.getEventDescription(e)},{event:e})}))}}})},79259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(14343),i=n.useLayoutEffect,a=n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),i(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},79676:(e,t)=>{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let i=r[n];if("query"===i){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let i=r[n];if(!t.query.hasOwnProperty(i)||e.query[i]!==t.query[i])return!1}}else if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},79691:(e,t,r)=>{let n;Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=r(76953);function a(e){if(void 0!==n)return n?n(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=i.GLOBAL_OBJ;return t in r&&"function"==typeof r[t]?(n=r[t])(e):(n=null,e())}t.safeDateNow=function(){return a(()=>Date.now())},t.safeMathRandom=function(){return a(()=>Math.random())},t.withRandomSafeContext=a},79700:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(32452),i=r(86652),a=r(43445),o=r(58232),s=r(40330),l=r(15793),u=r(95068),c=r(404),d=r(26529),p=r(40006),f=r(67648),h=r(76677),m=r(992),g=r(77191),_=r(66908),y=r(42248),S=r(94748),E=r(99056),b=r(64484),T=r(8788),v=r(25601),I=r(80804),A=r(75455),R=r(62858),O=r(51688),w=r(94714),N=r(97306),C=r(74660),P=r(46298),k=r(45335),M=r(10900),x=r(62098),L=r(98815),U=r(68379),D=r(65224),B=r(43759),j=r(83592),F=r(33253),$=r(16632),G=r(72733),H=r(41291),W=r(14645),z=r(11661),q=r(90879),J=r(48519),Y=r(70783),V=r(32595),K=r(55857),X=r(8031),Q=r(8305),Z=r(1610),ee=r(3744),et=r(99875),er=r(52850),en=r(21821),ei=r(15897),ea=r(27459),eo=r(12731),es=r(35792),el=r(36418),eu=r(31514),ec=r(2812),ed=r(36562),ep=r(42337),ef=r(83877),eh=r(71091),em=r(23468),eg=r(88262),e_=r(23102),ey=r(15300),eS=r(38471),eE=r(70619),eb=r(63479),eT=r(63669),ev=r(77628),eI=r(15282),eA=r(85039),eR=r(23954),eO=r(92569),ew=r(86354),eN=r(18187),eC=r(46726),eP=r(55111),ek=r(82601),eM=r(93232),ex=r(32702),eL=r(84831),eU=r(1391),eD=r(38842),eB=r(91610),ej=r(40379),eF=r(14839),e$=r(86395),eG=r(91543),eH=r(48238),eW=r(6935),ez=r(660),eq=r(76953),eJ=r(43379),eY=r(86474),eV=r(44153),eK=r(50047),eX=r(23607),eQ=r(53374),eZ=r(30774),e0=r(86160),e1=r(42686),e2=r(21522),e3=r(98473),e5=r(51045),e6=r(28389),e4=r(22461),e8=r(32469),e7=r(5309),e9=r(75567),te=r(45455),tt=r(62151),tr=r(13394),tn=r(35822),ti=r(62327),ta=r(80920),to=r(493),ts=r(6386),tl=r(61215),tu=r(68671),tc=r(53440),td=r(34175),tp=r(44829),tf=r(13229),th=r(26803),tm=r(16039),tg=r(97496),t_=r(83021),ty=r(5490),tS=r(38646),tE=r(74085),tb=r(52475),tT=r(79691);t.registerSpanErrorInstrumentation=n.registerSpanErrorInstrumentation,t.getCapturedScopesOnSpan=i.getCapturedScopesOnSpan,t.setCapturedScopesOnSpan=i.setCapturedScopesOnSpan,t.TRACING_DEFAULTS=a.TRACING_DEFAULTS,t.startIdleSpan=a.startIdleSpan,t.SentrySpan=o.SentrySpan,t.SentryNonRecordingSpan=s.SentryNonRecordingSpan,t.SPAN_STATUS_ERROR=l.SPAN_STATUS_ERROR,t.SPAN_STATUS_OK=l.SPAN_STATUS_OK,t.SPAN_STATUS_UNSET=l.SPAN_STATUS_UNSET,t.getSpanStatusFromHttpCode=l.getSpanStatusFromHttpCode,t.setHttpStatus=l.setHttpStatus,t.continueTrace=u.continueTrace,t.startInactiveSpan=u.startInactiveSpan,t.startNewTrace=u.startNewTrace,t.startSpan=u.startSpan,t.startSpanManual=u.startSpanManual,t.suppressTracing=u.suppressTracing,t.withActiveSpan=u.withActiveSpan,t.getDynamicSamplingContextFromClient=c.getDynamicSamplingContextFromClient,t.getDynamicSamplingContextFromScope=c.getDynamicSamplingContextFromScope,t.getDynamicSamplingContextFromSpan=c.getDynamicSamplingContextFromSpan,t.spanToBaggageHeader=c.spanToBaggageHeader,t.setMeasurement=d.setMeasurement,t.timedEventsToMeasurements=d.timedEventsToMeasurements,t.sampleSpan=p.sampleSpan,t.logSpanEnd=f.logSpanEnd,t.logSpanStart=f.logSpanStart,t.GEN_AI_CONVERSATION_ID_ATTRIBUTE=h.GEN_AI_CONVERSATION_ID_ATTRIBUTE,t.SEMANTIC_ATTRIBUTE_CACHE_HIT=h.SEMANTIC_ATTRIBUTE_CACHE_HIT,t.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=h.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,t.SEMANTIC_ATTRIBUTE_CACHE_KEY=h.SEMANTIC_ATTRIBUTE_CACHE_KEY,t.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=h.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,t.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=h.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD,t.SEMANTIC_ATTRIBUTE_PROFILE_ID=h.SEMANTIC_ATTRIBUTE_PROFILE_ID,t.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME=
973h.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME,t.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=h.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=h.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,t.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=h.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,t.SEMANTIC_ATTRIBUTE_SENTRY_OP=h.SEMANTIC_ATTRIBUTE_SENTRY_OP,t.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=h.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE=h.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=h.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,t.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=h.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t.SEMANTIC_ATTRIBUTE_URL_FULL=h.SEMANTIC_ATTRIBUTE_URL_FULL,t.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE=h.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE,t.createEventEnvelope=m.createEventEnvelope,t.createSessionEnvelope=m.createSessionEnvelope,t.createSpanEnvelope=m.createSpanEnvelope,t.addEventProcessor=g.addEventProcessor,t.captureCheckIn=g.captureCheckIn,t.captureEvent=g.captureEvent,t.captureException=g.captureException,t.captureMessage=g.captureMessage,t.captureSession=g.captureSession,t.close=g.close,t.endSession=g.endSession,t.flush=g.flush,t.isEnabled=g.isEnabled,t.isInitialized=g.isInitialized,t.lastEventId=g.lastEventId,t.setContext=g.setContext,t.setConversationId=g.setConversationId,t.setExtra=g.setExtra,t.setExtras=g.setExtras,t.setTag=g.setTag,t.setTags=g.setTags,t.setUser=g.setUser,t.startSession=g.startSession,t.withMonitor=g.withMonitor,t.getClient=_.getClient,t.getCurrentScope=_.getCurrentScope,t.getGlobalScope=_.getGlobalScope,t.getIsolationScope=_.getIsolationScope,t.getTraceContextFromScope=_.getTraceContextFromScope,t.withIsolationScope=_.withIsolationScope,t.withScope=_.withScope,t.getDefaultCurrentScope=y.getDefaultCurrentScope,t.getDefaultIsolationScope=y.getDefaultIsolationScope,t.setAsyncContextStrategy=S.setAsyncContextStrategy,t.getGlobalSingleton=E.getGlobalSingleton,t.getMainCarrier=E.getMainCarrier,t.closeSession=b.closeSession,t.makeSession=b.makeSession,t.updateSession=b.updateSession,t.Scope=T.Scope,t.notifyEventProcessors=v.notifyEventProcessors,t.getEnvelopeEndpointWithUrlEncodedAuth=I.getEnvelopeEndpointWithUrlEncodedAuth,t.getReportDialogEndpoint=I.getReportDialogEndpoint,t.Client=A.Client,t.ServerRuntimeClient=R.ServerRuntimeClient,t.initAndBind=O.initAndBind,t.setCurrentClient=O.setCurrentClient,t.createTransport=w.createTransport,t.makeOfflineTransport=N.makeOfflineTransport,t.MULTIPLEXED_TRANSPORT_EXTRA_KEY=C.MULTIPLEXED_TRANSPORT_EXTRA_KEY,t.makeMultiplexedTransport=C.makeMultiplexedTransport,t.addIntegration=P.addIntegration,t.defineIntegration=P.defineIntegration,t.getIntegrationsToSetup=P.getIntegrationsToSetup,t.installedIntegrations=P.installedIntegrations,t._INTERNAL_clearAiProviderSkips=k._INTERNAL_clearAiProviderSkips,t._INTERNAL_shouldSkipAiProviderWrapping=k._INTERNAL_shouldSkipAiProviderWrapping,t._INTERNAL_skipAiProviderWrapping=k._INTERNAL_skipAiProviderWrapping,t.envToBool=M.envToBool,t.applyScopeDataToEvent=x.applyScopeDataToEvent,t.getCombinedScopeData=x.getCombinedScopeData,t.mergeScopeData=x.mergeScopeData,t.prepareEvent=L.prepareEvent,t.createCheckInEnvelope=U.createCheckInEnvelope,t.hasSpansEnabled=D.hasSpansEnabled,t.isSentryRequestUrl=B.isSentryRequestUrl,t.handleCallbackErrors=j.handleCallbackErrors,t.fmt=F.fmt,t.parameterize=F.parameterize,t.handleTunnelRequest=$.handleTunnelRequest,t.addAutoIpAddressToSession=G.addAutoIpAddressToSession,t.addAutoIpAddressToUser=G.addAutoIpAddressToUser,t.addChildSpanToSpan=H.addChildSpanToSpan,t.convertSpanLinksForEnvelope=H.convertSpanLinksForEnvelope,t.getActiveSpan=H.getActiveSpan,t.getRootSpan=H.getRootSpan,t.getSpanDescendants=H.getSpanDescendants,t.getStatusMessage=H.getStatusMessage,t.spanIsSampled=H.spanIsSampled,t.spanTimeInputToSeconds=H.spanTimeInputToSeconds,t.spanToJSON=H.spanToJSON,t.spanToTraceContext=H.spanToTraceContext,t.spanToTraceHeader=H.spanToTraceHeader,t.updateSpanName=H.updateSpanName,t._INTERNAL_setSpanForScope=W._setSpanForScope,t.parseSampleRate=z.parseSampleRate,t.applySdkMetadata=q.applySdkMetadata,t.getTraceData=J.getTraceData,t.shouldPropagateTraceForUrl=Y.shouldPropagateTraceForUrl,t.getTraceMetaTags=V.getTraceMetaTags,t.debounce=K.debounce,t.extractQueryParamsFromUrl=X.extractQueryParamsFromUrl,t.headersToDict=X.headersToDict,t.httpHeadersToSpanAttributes=X.httpHeadersToSpanAttributes,t.httpRequestToRequestData=X.httpRequestToRequestData,t.winterCGHeadersToDict=X.winterCGHeadersToDict,t.winterCGRequestToRequestData=X.winterCGRequestToRequestData,t.DEFAULT_ENVIRONMENT=Q.DEFAULT_ENVIRONMENT,t.DEV_ENVIRONMENT=Q.DEV_ENVIRONMENT,t.addBreadcrumb=Z.addBreadcrumb,t.functionToStringIntegration=ee.functionToStringIntegration,t.eventFiltersIntegration=et.eventFiltersIntegration,t.inboundFiltersIntegration=et.inboundFiltersIntegration,t.linkedErrorsIntegration=er.linkedErrorsIntegration,t.moduleMetadataIntegration=en.moduleMetadataIntegration,t.requestDataIntegration=ei.requestDataIntegration,t.captureConsoleIntegration=ea.captureConsoleIntegration,t.dedupeIntegration=eo.dedupeIntegration,t.extraErrorDataIntegration=es.extraErrorDataIntegration,t.rewriteFramesIntegration=el.rewriteFramesIntegration,t.instrumentSupabaseClient=eu.instrumentSupabaseClient,t.supabaseIntegration=eu.supabaseIntegration,t.instrumentPostgresJsSql=ec.instrumentPostgresJsSql,t.zodErrorsIntegration=ed.zodErrorsIntegration,t.thirdPartyErrorFilterIntegration=ep.thirdPartyErrorFilterIntegration,t.consoleIntegration=ef.consoleIntegration,t.featureFlagsIntegration=eh.featureFlagsIntegration,t.growthbookIntegration=em.growthbookIntegration,t.conversationIdIntegration=eg.conversationIdIntegration,t.profiler=e_.profiler,t.instrumentFetchRequest=ey.instrumentFetchRequest,t.trpcMiddleware=eS.trpcMiddleware,t.wrapMcpServerWithSentry=eE.wrapMcpServerWithSentry,t.captureFeedback=eb.captureFeedback,t._INTERNAL_captureLog=eT._INT
973ERNAL_captureLog,t._INTERNAL_captureSerializedLog=eT._INTERNAL_captureSerializedLog,t._INTERNAL_flushLogsBuffer=eT._INTERNAL_flushLogsBuffer,t.logger=ev,t.consoleLoggingIntegration=eI.consoleLoggingIntegration,t._INTERNAL_captureMetric=eA._INTERNAL_captureMetric,t._INTERNAL_captureSerializedMetric=eA._INTERNAL_captureSerializedMetric,t._INTERNAL_flushMetricsBuffer=eA._INTERNAL_flushMetricsBuffer,t.metrics=eR,t.createConsolaReporter=eO.createConsolaReporter,t.addVercelAiProcessors=ew.addVercelAiProcessors,t._INTERNAL_cleanupToolCallSpan=eN._INTERNAL_cleanupToolCallSpan,t._INTERNAL_getSpanForToolCallId=eN._INTERNAL_getSpanForToolCallId,t.instrumentOpenAiClient=eC.instrumentOpenAiClient,t.OPENAI_INTEGRATION_NAME=eP.OPENAI_INTEGRATION_NAME,t.instrumentAnthropicAiClient=ek.instrumentAnthropicAiClient,t.ANTHROPIC_AI_INTEGRATION_NAME=eM.ANTHROPIC_AI_INTEGRATION_NAME,t.instrumentGoogleGenAIClient=ex.instrumentGoogleGenAIClient,t.GOOGLE_GENAI_INTEGRATION_NAME=eL.GOOGLE_GENAI_INTEGRATION_NAME,t.createLangChainCallbackHandler=eU.createLangChainCallbackHandler,t.LANGCHAIN_INTEGRATION_NAME=eD.LANGCHAIN_INTEGRATION_NAME,t.instrumentLangGraph=eB.instrumentLangGraph,t.instrumentStateGraphCompile=eB.instrumentStateGraphCompile,t.LANGGRAPH_INTEGRATION_NAME=ej.LANGGRAPH_INTEGRATION_NAME,t._INTERNAL_FLAG_BUFFER_SIZE=eF._INTERNAL_FLAG_BUFFER_SIZE,t._INTERNAL_MAX_FLAGS_PER_SPAN=eF._INTERNAL_MAX_FLAGS_PER_SPAN,t._INTERNAL_addFeatureFlagToActiveSpan=eF._INTERNAL_addFeatureFlagToActiveSpan,t._INTERNAL_copyFlagsFromScopeToEvent=eF._INTERNAL_copyFlagsFromScopeToEvent,t._INTERNAL_insertFlagToScope=eF._INTERNAL_insertFlagToScope,t.applyAggregateErrorsToEvent=e$.applyAggregateErrorsToEvent,t.getBreadcrumbLogLevelFromHttpStatusCode=eG.getBreadcrumbLogLevelFromHttpStatusCode,t.getComponentName=eH.getComponentName,t.getLocationHref=eH.getLocationHref,t.htmlTreeAsString=eH.htmlTreeAsString,t.dsnFromString=eW.dsnFromString,t.dsnToString=eW.dsnToString,t.makeDsn=eW.makeDsn,t.SentryError=ez.SentryError,t.GLOBAL_OBJ=eq.GLOBAL_OBJ,t.addConsoleInstrumentationHandler=eJ.addConsoleInstrumentationHandler,t.addFetchEndInstrumentationHandler=eY.addFetchEndInstrumentationHandler,t.addFetchInstrumentationHandler=eY.addFetchInstrumentationHandler,t.addGlobalErrorInstrumentationHandler=eV.addGlobalErrorInstrumentationHandler,t.addGlobalUnhandledRejectionInstrumentationHandler=eK.addGlobalUnhandledRejectionInstrumentationHandler,t.addHandler=eX.addHandler,t.maybeInstrument=eX.maybeInstrument,t.resetInstrumentationHandlers=eX.resetInstrumentationHandlers,t.triggerHandlers=eX.triggerHandlers,t.isDOMError=eQ.isDOMError,t.isDOMException=eQ.isDOMException,t.isElement=eQ.isElement,t.isError=eQ.isError,t.isErrorEvent=eQ.isErrorEvent,t.isEvent=eQ.isEvent,t.isInstanceOf=eQ.isInstanceOf,t.isParameterizedString=eQ.isParameterizedString,t.isPlainObject=eQ.isPlainObject,t.isPrimitive=eQ.isPrimitive,t.isRegExp=eQ.isRegExp,t.isString=eQ.isString,t.isSyntheticEvent=eQ.isSyntheticEvent,t.isThenable=eQ.isThenable,t.isVueViewModel=eQ.isVueViewModel,t.isBrowser=eZ.isBrowser,t.CONSOLE_LEVELS=e0.CONSOLE_LEVELS,t.consoleSandbox=e0.consoleSandbox,t.debug=e0.debug,t.originalConsoleMethods=e0.originalConsoleMethods,t.addContextToFrame=e1.addContextToFrame,t.addExceptionMechanism=e1.addExceptionMechanism,t.addExceptionTypeValue=e1.addExceptionTypeValue,t.checkOrSetAlreadyCaught=e1.checkOrSetAlreadyCaught,t.getEventDescription=e1.getEventDescription,t.isAlreadyCaptured=e1.isAlreadyCaptured,t.parseSemver=e1.parseSemver,t.uuid4=e1.uuid4,t.isNodeEnv=e2.isNodeEnv,t.loadModule=e2.loadModule,t.normalize=e3.normalize,t.normalizeToSize=e3.normalizeToSize,t.normalizeUrlToBase=e3.normalizeUrlToBase,t.addNonEnumerableProperty=e5.addNonEnumerableProperty,t.convertToPlainObject=e5.convertToPlainObject,t.dropUndefinedKeys=e5.dropUndefinedKeys,t.extractExceptionKeysForMessage=e5.extractExceptionKeysForMessage,t.fill=e5.fill,t.getOriginalFunction=e5.getOriginalFunction,t.markFunctionWrapped=e5.markFunctionWrapped,t.objectify=e5.objectify,t.basename=e6.basename,t.dirname=e6.dirname,t.isAbsolute=e6.isAbsolute,t.join=e6.join,t.normalizePath=e6.normalizePath,t.relative=e6.relative,t.resolve=e6.resolve,t.SENTRY_BUFFER_FULL_ERROR=e4.SENTRY_BUFFER_FULL_ERROR,t.makePromiseBuffer=e4.makePromiseBuffer,t.severityLevelFromString=e8.severityLevelFromString,t.replaceExports=e7.replaceExports,t.UNKNOWN_FUNCTION=e9.UNKNOWN_FUNCTION,t.createStackParser=e9.createStackParser,t.getFramesFromEvent=e9.getFramesFromEvent,t.getFunctionName=e9.getFunctionName,t.stackParserFromStackParserOptions=e9.stackParserFromStackParserOptions,t.stripSentryFramesAndReverse=e9.stripSentryFramesAndReverse,t.filenameIsInApp=te.filenameIsInApp,t.node=te.node,t.nodeStackLineParser=te.nodeStackLineParser,t.isMatchingPattern=tt.isMatchingPattern,t.safeJoin=tt.safeJoin,t.snipLine=tt.snipLine,t.stringMatchesSomePattern=tt.stringMatchesSomePattern,t.truncate=tt.truncate,t.isNativeFunction=tr.isNativeFunction,t.supportsDOMError=tr.supportsDOMError,t.supportsDOMException=tr.supportsDOMException,t.supportsErrorEvent=tr.supportsErrorEvent,t.supportsFetch=tr.supportsFetch,t.supportsHistory=tr.supportsHistory,t.supportsNativeFetch=tr.supportsNativeFetch,t.supportsReferrerPolicy=tr.supportsReferrerPolicy,t.supportsReportingObserver=tr.supportsReportingObserver,t.SyncPromise=tn.SyncPromise,t.rejectedSyncPromise=tn.rejectedSyncPromise,t.resolvedSyncPromise=tn.resolvedSyncPromise,t.browserPerformanceTimeOrigin=ti.browserPerformanceTimeOrigin,t.dateTimestampInSeconds=ti.dateTimestampInSeconds,t.timestampInSeconds=ti.timestampInSeconds,t.TRACEPARENT_REGEXP=ta.TRACEPARENT_REGEXP,t.extractTraceparentData=ta.extractTraceparentData,t.generateSentryTraceHeader=ta.generateSentryTraceHeader,t.generateTraceparentHeader=ta.generateTraceparentHeader,t.propagationContextFromHeaders=ta.propagationContextFromHeaders,t.shouldContinueTrace=ta.shouldContinueTrace,t.getSDKSource=to.getSDKSource,t.isBrowserBun
973dle=to.isBrowserBundle,t.addItemToEnvelope=ts.addItemToEnvelope,t.createAttachmentEnvelopeItem=ts.createAttachmentEnvelopeItem,t.createEnvelope=ts.createEnvelope,t.createEventEnvelopeHeaders=ts.createEventEnvelopeHeaders,t.createSpanEnvelopeItem=ts.createSpanEnvelopeItem,t.envelopeContainsItemType=ts.envelopeContainsItemType,t.envelopeItemTypeToDataCategory=ts.envelopeItemTypeToDataCategory,t.forEachEnvelopeItem=ts.forEachEnvelopeItem,t.getSdkMetadataForEnvelopeHeader=ts.getSdkMetadataForEnvelopeHeader,t.parseEnvelope=ts.parseEnvelope,t.serializeEnvelope=ts.serializeEnvelope,t.createClientReportEnvelope=tl.createClientReportEnvelope,t.DEFAULT_RETRY_AFTER=tu.DEFAULT_RETRY_AFTER,t.disabledUntil=tu.disabledUntil,t.isRateLimited=tu.isRateLimited,t.parseRetryAfterHeader=tu.parseRetryAfterHeader,t.updateRateLimits=tu.updateRateLimits,t.MAX_BAGGAGE_STRING_LENGTH=tc.MAX_BAGGAGE_STRING_LENGTH,t.SENTRY_BAGGAGE_KEY_PREFIX=tc.SENTRY_BAGGAGE_KEY_PREFIX,t.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=tc.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,t.baggageHeaderToDynamicSamplingContext=tc.baggageHeaderToDynamicSamplingContext,t.dynamicSamplingContextToSentryBaggageHeader=tc.dynamicSamplingContextToSentryBaggageHeader,t.objectToBaggageHeader=tc.objectToBaggageHeader,t.parseBaggageHeader=tc.parseBaggageHeader,t.getHttpSpanDetail
973sFromUrlObject=td.getHttpSpanDetailsFromUrlObject,t.getSanitizedUrlString=td.getSanitizedUrlString,t.getSanitizedUrlStringFromUrlObject=td.getSanitizedUrlStringFromUrlObject,t.isURLObjectRelative=td.isURLObjectRelative,t.parseStringToURLObject=td.parseStringToURLObject,t.parseUrl=td.parseUrl,t.stripDataUrlContent=td.stripDataUrlContent,t.stripUrlQueryAndFragment=td.stripUrlQueryAndFragment,t._INTERNAL_enhanceErrorWithSentryInfo=tp._enhanceErrorWithSentryInfo,t.eventFromMessage=tp.eventFromMessage,t.eventFromUnknownInput=tp.eventFromUnknownInput,t.exceptionFromError=tp.exceptionFromError,t.parseStackFrames=tp.parseStackFrames,t.callFrameToStackFrame=tf.callFrameToStackFrame,t.watchdogTimer=tf.watchdogTimer,t.LRUMap=th.LRUMap,t.generateSpanId=tm.generateSpanId,t.generateTraceId=tm.generateTraceId,t.vercelWaitUntil=tg.vercelWaitUntil,t.flushIfServerless=t_.flushIfServerless,t.SDK_VERSION=ty.SDK_VERSION,t.getDebugImagesForResources=tS.getDebugImagesForResources,t.getFilenameToDebugIdMap=tS.getFilenameToDebugIdMap,t.getFilenameToMetadataMap=tE.getFilenameToMetadataMap,t.escapeStringForRegex=tb.escapeStringForRegex,t._INTERNAL_safeDateNow=tT.safeDateNow,t._INTERNAL_safeMathRandom=tT.safeMathRandom,t._INTERNAL_withRandomSafeContext=tT.withRandomSafeContext},79734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return a}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});class i{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let n=e[0];if(n.startsWith("[")&&n.endsWith("]")){let i=n.slice(1,-1),o=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),o=!0),i.startsWith("…"))throw Object.defineProperty(Error(`Detected a three-dot character ('…') at ('${i}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${i}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(i.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${i}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${r}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error(`You cannot have the same slug name "${r}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===n.replace(/\W/g,""))throw Object.defineProperty(Error(`You cannot have the slug names "${e}" and "${r}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,
973configurable:!0})}),t.push(r)}if(r)if(o){if(null!=this.restSlugName)throw Object.defineProperty(Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,i),this.optionalRestSlugName=i,n="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,i),this.restSlugName=i,n="[...]"}else{if(o)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,i),this.slugName=i,n="[]"}}this.children.has(n)||this.children.set(n,new i),this.children.get(n)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function a(e){let t=new i;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},n=[];for(let i=0;i<e.length;i++){let a=t(e[i]);r[a]=i,n[i]=a}return a(n).map(t=>e[r[t]])}},79822:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160);t.isJsonRpcNotification=function(e){return"object"==typeof e&&null!==e&&"jsonrpc"in e&&"2.0"===e.jsonrpc&&"method"in e&&!("id"in e)},t.isJsonRpcRequest=function(e){return"object"==typeof e&&null!==e&&"jsonrpc"in e&&"2.0"===e.jsonrpc&&"method"in e&&"id"in e},t.isJsonRpcResponse=function(e){return"object"==typeof e&&null!==e&&"jsonrpc"in e&&"2.0"===e.jsonrpc&&"id"in e&&("result"in e||"error"in e)},t.isValidContentItem=function(e){return null!=e&&"object"==typeof e},t.validateMcpServerInstance=function(e){return"object"==typeof e&&null!==e&&"resource"in e&&"tool"in e&&"prompt"in e&&"connect"in e||(n.DEBUG_BUILD&&i.debug.warn("Did not patch MCP server. Interface is incompatible."),!1)}},80063:(e,t,r)=>{e.exports=r(26623)},80312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});let n=r(97941);function i(e){return(0,n.pathHasPrefix)(e,"/aistudio")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80804:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(6935);function i(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}t.getEnvelopeEndpointWithUrlEncodedAuth=function(e,t,r){let n;return t||`${i(e)}${e.projectId}/envelope/?${n={sentry_version:"7"},e.publicKey&&(n.sentry_key=e.publicKey),r&&(n.sentry_client=`${r.name}/${r.version}`),new URLSearchParams(n).toString()}`},t.getReportDialogEndpoint=function(e,t){let r=n.makeDsn(e);if(!r)return"";let a=`${i(r)}embed/error-page/`,o=`dsn=${n.dsnToString(r)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${a}?${o}`}},80840:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(5756);function a(e){if(c(e))return`persisted ${e.operationName}`;if(u(e)){let{query:t,operationName:r}=e,{operationName:n=r,operationType:i}=s(t);return n?`${i} ${n}`:`${i}`}return"unknown"}function o(e){let t;if("xhr"in e){let r=e.xhr[i.SENTRY_XHR_DATA_KEY];t=r&&i.getBodyString(r.body)[0]}else{let r=i.getFetchRequestArgBody(e.input);t=i.getBodyString(r)[0]}return t}function s(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let r=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return r?{operationType:r[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function l(e){return"object"==typeof e&&null!==e}function u(e){return l(e)&&"string"==typeof e.query}
973function c(e){return l(e)&&"string"==typeof e.operationName&&l(e.extensions)&&l(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function d(e){try{let t=JSON.parse(e);if(u(t)||c(t))return t;return}catch{return}}let p=n.defineIntegration(e=>({name:"GraphQLClient",setup(t){var r,i,s,l;r=t,i=e,r.on("beforeOutgoingRequestSpan",(e,t)=>{let r=n.spanToJSON(e).data||{};if("http.client"!==r[n.SEMANTIC_ATTRIBUTE_SENTRY_OP])return;let s=r[n.SEMANTIC_ATTRIBUTE_URL_FULL]||r["http.url"],l=r[n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||r["http.method"];if(!n.isString(s)||!n.isString(l))return;let{endpoints:p}=i,f=n.stringMatchesSomePattern(s,p),h=o(t);if(f&&h){let t=d(h);if(t){let r=a(t);e.updateName(`${l} ${s} (${r})`),u(t)&&e.setAttribute("graphql.document",t.query),c(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),s=t,l=e,s.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:r,type:i,data:s}=e;if("http"===i&&("fetch"===r||"xhr"===r)){let e=s?.url,{endpoints:r}=l,i=n.stringMatchesSomePattern(e,r),p=o(t);if(i&&s&&p){let e=d(p);if(!s.graphql&&e){let t=a(e);s["graphql.operation"]=t,u(e)&&(s["graphql.document"]=e.query),c(e)&&(s["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,s["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}));t._getGraphQLOperation=a,t.getGraphQLRequestPayload=d,t.getRequestPayloadXhrOrFetch=o,t.graphqlClientIntegration=p,t.parseGraphQLQuery=s},80920:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(86160),i=r(53440),a=r(6935),o=r(11661),s=r(16039),l=r(79691),u=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function c(e){let t;if(!e)return;let r=e.match(u);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}t.TRACEPARENT_REGEXP=u,t.extractTraceparentData=c,t.generateSentryTraceHeader=function(e=s.generateTraceId(),t=s.generateSpanId(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`},t.generateTraceparentHeader=function(e=s.generateTraceId(),t=s.generateSpanId(),r){return`00-${e}-${t}-${r?"01":"00"}`},t.propagationContextFromHeaders=function(e,t){let r=c(e),n=i.baggageHeaderToDynamicSamplingContext(t);if(!r?.traceId)return{traceId:s.generateTraceId(),sampleRand:l.safeMathRandom()};let a=function(e,t){let r=o.parseSampleRate(t?.sample_rand);if(void 0!==r)return r;let n=o.parseSampleRate(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?l.safeMathRandom()*n:n+l.safeMathRandom()*(1-n):l.safeMathRandom()}(r,n);n&&(n.sample_rand=a.toString());let{traceId:u,parentSpanId:d,parentSampled:p}=r;return{traceId:u,parentSpanId:d,sampled:p,dsc:n||{},sampleRand:a}},t.shouldContinueTrace=function(e,t){let r=a.extractOrgIdFromClient(e);return t&&r&&t!==r?(n.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${r})`),!1):!e.getOptions().strictTraceContinuation||(!t||!!r)&&(!!t||!r)||(n.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${r})`),!1)}},81354:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(77191),i=r(15793),a=r(23105);t.instrumentStream=async function*(e,t,r){let o={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let a of e)!function(e,t,r,a){if(!(!e||function(e,t){let r=e?.promptFeedback;if(r?.blockReason){let e=r.blockReasonMessage??r.blockReason;return t.setStatus({code:i.SPAN_STATUS_ERROR,message:`Content blocked: ${e}`}),n.captureException(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,a))){let n;for(let i of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(n=e.usageMetadata)&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount)),Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(i?.finishReason&&!t.finishReasons.includes(i.finishReason)&&t.finishReasons.push(i.finishReason),i?.content?.parts??[]))r&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(a,o,r,t),yield a}finally{let e={[a.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};o.responseId&&(e[a.GEN_AI_RESPONSE_ID_ATTRIBUTE]=o.responseId),o.responseModel&&(e[a.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=o.responseModel),void 0!==o.promptTokens&&(e[a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=o.promptTokens),void 0!==o.completionTokens&&(e[a.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=o.completionTokens),void 0!==o.totalTokens&&(e[a.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=o.totalTokens),o.finishReasons.length&&(e[a.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(o.finishReasons)),r&&o.responseTexts.length&&(e[a.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=o.responseTexts.join("")),r&&o.toolCalls.length&&(e[a.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(o.toolCalls)),t.setAttributes(e),t.end()}}},81386:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}
973Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},81472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ACTION_SUFFIX:function(){return m},APP_DIR_ALIAS:function(){return F},CACHE_ONE_YEAR_SECONDS:function(){return C},DOT_NEXT_ALIAS:function(){return B},ESLINT_DEFAULT_DIRS:function(){return eo},GSP_NO_RETURNED_VALUE:function(){return ee},GSSP_COMPONENT_MEMBER_ERROR:function(){return en},GSSP_NO_RETURNED_VALUE:function(){return et},HTML_CONTENT_TYPE_HEADER:function(){return a},INFINITE_CACHE:function(){return P},INSTRUMENTATION_HOOK_FILENAME:function(){return U},JSON_CONTENT_TYPE_HEADER:function(){return o},MATCHED_PATH_HEADER:function(){return u},MIDDLEWARE_FILENAME:function(){return k},MIDDLEWARE_LOCATION_REGEXP:function(){return M},NEXT_BODY_SUFFIX:function(){return y},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return w},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return b},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return T},NEXT_CACHE_ROOT_PARAM_TAG_ID:function(){return N},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return O},NEXT_CACHE_TAGS_HEADER:function(){return E},NEXT_CACHE_TAG_MAX_ITEMS:function(){return A},NEXT_CACHE_TAG_MAX_LENGTH:function(){return R},NEXT_DATA_SUFFIX:function(){return g},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return l},NEXT_META_SUFFIX:function(){return _},NEXT_NAV_DEPLOYMENT_ID_HEADER:function(){return S},NEXT_QUERY_PARAM_PREFIX:function(){return s},NEXT_RESUME_HEADER:function(){return v},NEXT_RESUME_STATE_LENGTH_HEADER:function(){return I},NON_STANDARD_NODE_ENV:function(){return ei},PAGES_DIR_ALIAS:function(){return D},PRERENDER_REVALIDATE_HEADER:function(){return c},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return d},PROXY_FILENAME:function(){return x},PROXY_LOCATION_REGEXP:function(){return L},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Y},ROOT_DIR_ALIAS:function(){return j},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return J},RSC_ACTION_ENCRYPTION_ALIAS:function(){return q},RSC_ACTION_PROXY_ALIAS:function(){return H},RSC_ACTION_VALIDATE_ALIAS:function(){return G},RSC_CACHE_WRAPPER_ALIAS:function(){return W},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return z},RSC_MOD_REF_PROXY_ALIAS:function(){return $},RSC_SEGMENTS_DIR_SUFFIX:function(){return p},RSC_SEGMENT_SUFFIX:function(){return f},RSC_SUFFIX:function(){return h},SERVER_PROPS_EXPORT_ERROR:function(){return Z},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return K},SERVER_PROPS_SSG_CONFLICT:function(){return X},SERVER_RUNTIME:function(){return es},SSG_FALLBACK_EXPORT_ERROR:function(){return ea},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return V},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return Q},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return i},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return er},WEBPACK_LAYERS:function(){return ec},WEBPACK_RESOURCE_QUERIES:function(){return ed},WEB_SOCKET_MAX_RECONNECTIONS:function(){return el}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i="text/plain",a="text/html; charset=utf-8",o="application/json; charset=utf-8",s="nxtP",l="nxtI",u="x-matched-path",c="x-prerender-revalidate",d="x-prerender-revalidate-if-generated",p=".segments",f=".segment.rsc",h=".rsc",m=".action",g=".json",_=".meta",y=".body",S="x-nextjs-deployment-id",E="x-next-cache-tags",b="x-next-revalidated-tags",T="x-next-revalidate-tag-token",v="next-resume",I="x-next-resume-state-length",A=128,R=256,O=1024,w="_N_T_",N="_N_RP_",C=31536e3,P=0xfffffffe,k="middleware",M=`(?:src/)?${k}`,x="proxy",L=`(?:src/)?${x}`,U="instrumentation",D="private-next-pages",B="private-dot-next",j="private-next-root-dir",F="private-next-app-dir",$="private-next-rsc-mod-ref-proxy",G="private-next-rsc-action-validate",H="private-next-rsc-server-reference",W="private-next-rsc-cache-wrapper",z="private-next-rsc-track-dynamic-import",q="private-next-rsc-action-encryption",J="private-next-rsc-action-client-wrapper",Y="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",V="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",K="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",X="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",Q="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Z="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",ee="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",et="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",er="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",en="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",ei='You are using a non-standard "NODE_ENV" value in y
973our environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ea="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",eo=["app","pages","components","lib","src"],es={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},el=12,eu={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ec={...eu,GROUP:{builtinReact:[eu.reactServerComponents,eu.actionBrowser],serverOnly:[eu.reactServerComponents,eu.actionBrowser,eu.instrument,eu.middleware],neutralTarget:[eu.apiNode,eu.apiEdge],clientOnly:[eu.serverSideRendering,eu.appPagesBrowser],bundled:[eu.reactServerComponents,eu.actionBrowser,eu.serverSideRendering,eu.appPagesBrowser,eu.shared,eu.instrument,eu.middleware],appPages:[eu.reactServerComponents,eu.serverSideRendering,eu.appPagesBrowser,eu.actionBrowser]}},ed={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},82468:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=r(50635),i=r(36863),a=r(97941);function o(e,t){let{basePath:r,i18n:o,trailingSlash:s}=t.nextConfig??{},l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};r&&(0,a.pathHasPrefix)(l.pathname,r)&&(l.pathname=(0,i.removePathPrefix)(l.pathname,r),l.basePath=r);let u=l.pathname;if(l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){let e=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");l.buildId=e[0],u="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(l.pathname=u)}if(o){let e=t.i18nProvider?t.i18nProvider.analyze(l.pathname):(0,n.normalizeLocalePath)(l.pathname,o.locales);l.locale=e.detectedLocale,l.pathname=e.pathname??l.pathname,!e.detectedLocale&&l.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(u):(0,n.normalizeLocalePath)(u,o.locales)).detectedLocale&&(l.locale=e.detectedLocale)}return l}},82491:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(5756),a=r(51336),o=r(85699),s=r(94124),l=r(2694),u=r(16778),c="BrowserTracing",d={...n.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...u.defaultRequestInstrumentationOptions};function p(e,t,r){e.emit("startPageLoadSpan",t,r),n.getCurrentScope().setTransactionName(t.name);let i=e[g];return i&&e.emit("afterStartPageLoadSpan",i),i}function f(e,t,r){let{url:i,isRedirect:a}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a}),e.emit("startNavigationSpan",t,{isRedirect:a});let s=n.getCurrentScope();return s.setTransactionName(t.name),i&&!a&&s.setSDKProcessingMetadata({normalizedRequest:{...o.getHttpRequestData(),url:i}}),e[g]}function h(e){let t=o.WINDOW.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}function m(e){let t=o.WINDOW.performance?.getEntriesByType?.("navigation")[0],r=t?.serverTiming?.find(t=>t.name===e);return r?.description}let g="_sentry_idleSpan";function _(e,t){n.addNonEnumerableProperty(e,g,t)}t.BROWSER_TRACING_INTEGRATION_ID=c,t.browserTracingIntegration=(e={})=>{let t,r,y,S={name:void 0,source:void 0},E=o.WINDOW.document,{enableInp:b,enableElementTiming:T,enableLongTask:v,enableLongAnimationFrame:I,_experiments:{enableInteractions:A,enableStandaloneClsSpans:R,enableStandaloneLcpSpans:O},beforeStartSpan:w,idleTimeout:N,finalTimeout:C,childSpanTimeout:P,markBackgroun
973dSpan:k,traceFetch:M,traceXHR:x,trackFetchStreamPerformance:L,shouldCreateSpanForRequest:U,enableHTTPTimings:D,ignoreResourceSpans:B,ignorePerformanceApiSpans:j,instrumentPageLoad:F,instrumentNavigation:$,detectRedirects:G,linkPreviousTrace:H,consistentTraceSampling:W,enableReportPageLoaded:z,onRequestSpanStart:q,onRequestSpanEnd:J}={...d,...e};function Y(e,r,a=!0){let o="pageload"===r.op,s=r.name,l=w?w(r):r,u=l.attributes||{};if(s!==l.name&&(u[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",l.attributes=u),!a){let e=n.dateTimestampInSeconds();n.startInactiveSpan({...l,startTime:e}).end(e);return}S.name=l.name,S.source=u[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let c=n.startIdleSpan(l,{idleTimeout:N,finalTimeout:C,childSpanTimeout:P,disableAutoFinish:o,beforeSpanEnd:r=>{t?.(),i.addPerformanceEntries(r,{recordClsOnPageloadSpan:!R,recordLcpOnPageloadSpan:!O,ignoreResourceSpans:B,ignorePerformanceApiSpans:j}),_(e,void 0);let a=n.getCurrentScope(),s=a.getPropagationContext();a.setPropagationContext({...s,traceId:c.spanContext().traceId,sampled:n.spanIsSampled(c),dsc:n.getDynamicSamplingContextFromSpan(r)}),o&&(y=void 0)},trimIdleSpanEndTimestamp:!z});function d(){E&&["interactive","complete"].includes(E.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}o&&z&&(y=c),_(e,c),o&&!z&&E&&(E.addEventListener("readystatechange",()=>{d()}),d())}return{name:c,setup(e){if(n.registerSpanErrorInstrumentation(),t=i.startTrackingWebVitals({recordClsStandaloneSpans:R||!1,recordLcpStandaloneSpans:O||!1,client:e}),b&&i.startTrackingINP(),T&&i.startTrackingElementTiming(),I&&n.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?i.startTrackingLongAnimationFrames():v&&i.startTrackingLongTasks(),A&&i.startTrackingInteractions(),G&&E){let e=()=>{r=n.timestampInSeconds()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function s(){let t=e[g];t&&!n.spanToJSON(t).timestamp&&(a.DEBUG_BUILD&&n.debug.log(`[Tracing] Finishing current active span with op: ${n.spanToJSON(t).op}`),t.setAttribute(n.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(t,i)=>{if(n.getClient()!==e)return;if(i?.isRedirect){a.DEBUG_BUILD&&n.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),Y(e,{op:"navigation.redirect",...t},!1);return}r=void 0,s(),n.getIsolationScope().setPropagationContext({traceId:n.generateTraceId(),sampleRand:Math.random(),propagationSpanId:n.hasSpansEnabled()?void 0:n.generateSpanId()});let o=n.getCurrentScope();o.setPropagationContext({traceId:n.generateTraceId(),sampleRand:Math.random(),propagationSpanId:n.hasSpansEnabled()?void 0:n.generateSpanId()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),Y(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,r={})=>{if(n.getClient()!==e)return;s();let i=r.sentryTrace||h("sentry-trace")||m("sentry-trace"),a=r.baggage||h("baggage")||m("baggage"),l=n.propagationContextFromHeaders(i,a),u=n.getCurrentScope();u.setPropagationContext(l),n.hasSpansEnabled()||(u.getPropagationContext().propagationSpanId=n.generateSpanId()),u.setSDKProcessingMetadata({normalizedRequest:o.getHttpRequestData()}),Y(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{z&&y&&(y.setAttribute(n.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),y.end())})},afterAllSetup(e){var t,c,d,h,m;let _,y=n.getLocationHref();if("off"!==H&&l.linkTraces(e,{linkPreviousTrace:H,consistentTraceSampling:W}),o.WINDOW.location){if(F){let t=n.browserPerformanceTimeOrigin();p(e,{name:o.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}$&&i.addHistoryInstrumentationHandler(({to:t,from:i})=>{var a,s;let l,u;if(void 0===i&&y?.indexOf(t)!==-1){y=void 0;return}y=void 0;let c=n.parseStringToURLObject(t),d=e[g],p=d&&G&&(a=d,s=r,l=n.spanToJSON(a),!((u=n.dateTimestampInSeconds())-l.start_timestamp>1.5)&&(!s||!(u-s<=1.5)));f(e,{name:c?.pathname||o.WINDOW.location.pathname,attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:p})})}
973k&&s.registerBackgroundTabDetection(),A&&(t=e,c=N,d=C,h=P,m=S,o.WINDOW.document&&addEventListener("click",()=>{let e="ui.action.click",r=t[g];if(r&&["navigation","pageload"].includes(n.spanToJSON(r).op)){a.DEBUG_BUILD&&n.debug.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(_&&(_.setAttribute(n.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),_.end(),_=void 0),!m.name){a.DEBUG_BUILD&&n.debug.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}_=n.startIdleSpan({name:m.name,op:e,attributes:{[n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:m.source||"url"}},{idleTimeout:c,finalTimeout:d,childSpanTimeout:h})},{capture:!0})),b&&i.registerInpInteractionListener(),u.instrumentOutgoingRequests(e,{traceFetch:M,traceXHR:x,trackFetchStreamPerformance:L,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:U,enableHTTPTimings:D,onRequestSpanStart:q,onRequestSpanEnd:J})}}},t.getMetaContent=h,t.getServerTiming=m,t.startBrowserTracingNavigationSpan=f,t.startBrowserTracingPageLoadSpan=p},82601:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(77191),a=r(76677),o=r(15793),s=r(95068),l=r(83592),u=r(23105),c=r(23675),d=r(32217),p=r(75308);function f(e,t){let r=p.messagesFromParams(t);p.setMessagesAttribute(e,r),"prompt"in t&&e.setAttributes({[u.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(t.prompt)})}function h(e,t,r){throw i.captureException(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:r}}}),t.isRecording()&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}t.instrumentAnthropicAiClient=function(e,t){let r=!!n.getClient()?.getOptions().sendDefaultPii;return function e(t,r="",n){return new Proxy(t,{get(t,o){let m=t[o],g=c.buildMethodPath(r,String(o));if("function"==typeof m&&p.shouldInstrument(g))return new Proxy(m,{apply(e,r,o){let _=function(e,t){let r={[u.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[u.GEN_AI_OPERATION_NAME_ATTRIBUTE]:c.getFinalOperationName(t),[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(r[u.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t.tools)),r[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=t.model??"unknown","temperature"in t&&(r[u.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"top_p"in t&&(r[u.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.top_p),"stream"in t&&(r[u.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=t.stream),"top_k"in t&&(r[u.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.top_k),"frequency_penalty"in t&&(r[u.GEN_AI_REQUEST_FREQUENCY_PENA
973LTY_ATTRIBUTE]=t.frequency_penalty),"max_tokens"in t&&(r[u.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?r[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=e[0]:r[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return r}(o,g),y=_[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",S=c.getFinalOperationName(g),E="object"==typeof o[0]?o[0]:void 0,b=!!E?.stream,T="messages.stream"===g;if(b||T){let r,i;return r=_[u.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",i={name:`${S} ${r}`,op:c.getSpanOperation(g),attributes:_},b&&!T?s.startSpanManual(i,async e=>{try{n.recordInputs&&E&&f(e,E);let r=await m.apply(t,o);return d.instrumentAsyncIterableStream(r,e,n.recordOutputs??!1)}catch(t){return h(t,e,g)}}):s.startSpanManual(i,r=>{try{n.recordInputs&&E&&f(r,E);let i=e.apply(t,o);return d.instrumentMessageStream(i,r,n.recordOutputs??!1)}catch(e){return h(e,r,g)}})}return s.startSpan({name:`${S} ${y}`,op:c.getSpanOperation(g),attributes:_},r=>(n.recordInputs&&E&&f(r,E),l.handleCallbackErrors(()=>e.apply(t,o),e=>{i.captureException(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:g}}})},()=>{},e=>(function(e,t,r){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return void p.handleResponseError(e,t);r&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let r=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&r.push(e);r.length>0&&e.setAttributes({[u.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}"completion"in t&&e.setAttributes({[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.completion}),"input_tokens"in t&&e.setAttributes({[u.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(t.input_tokens)})}(e,t),"id"in t&&"model"in t&&(e.setAttributes({[u.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t.id,[u.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[u.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[u.ANTHROPIC_AI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&c.setTokenUsageAttributes(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}})(r,e,n.recordOutputs))))}});return"function"==typeof m?m.bind(t):m&&"object"==typeof m?e(m,g,n):m}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}},82608:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveParamValue",{enumerable:!0,get:function(){return a}});let n=r(89323),i=r(63537);function a(e,t,r,a,o){switch(t){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let s=[];for(let e=r;e<a.segments.length;e++){let n=a.segments[e];if("static"===n.type){let a=n.name,o=(0,i.interceptionPrefixFromParamType)(t);o&&e===r&&o===n.interceptionMarker&&(a=a.replace(n.interceptionMarker,"")),s.push(a)}else{if(!o.hasOwnProperty(n.param.paramName)){if("optional-catchall"===n.param.paramType)break;return}let e=o[n.param.paramName];Array.isArray(e)?s.push(...e):s.push(e)}}if(s.length>0)return s;if("optional-catchall"===t)return;throw Object.defineProperty(new n.InvariantError(`Unexpected empty path segments match for a route "${a.pathname}" with param "${e}" of type "${t}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(r<a.segments.length){let e=a.segments[r];if("dynamic"===e.type&&!o.hasOwnProperty(e.param.paramName))return;return"dynamic"===e.type?o[e.param.paramName]:(0,i.interceptionPrefixFromParamType)(t)===e.interceptionMarker?e.name.replace(e.interceptionMarker,""):e.name}return}}},82906:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(24157),i=r(80312);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;
973try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},83021:(e,t,r)=>{var n=r(68336);Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let i=r(77191),a=r(86160),o=r(97496),s=r(76953);async function l(e){try{a.debug.log("Flushing events..."),await i.flush(e),a.debug.log("Done flushing events")}catch(e){a.debug.log("Error while flushing events:\n",e)}}t.flushIfServerless=async function(e={}){let{timeout:t=2e3}=e;"cloudflareWaitUntil"in e&&"function"==typeof e?.cloudflareWaitUntil?e.cloudflareWaitUntil(l(t)):"cloudflareCtx"in e&&"function"==typeof e.cloudflareCtx?.waitUntil?e.cloudflareCtx.waitUntil(l(t)):s.GLOBAL_OBJ[Symbol.for("@vercel/request-context")]?o.vercelWaitUntil(l(t)):void 0===n||(n.env.FUNCTIONS_WORKER_RUNTIME||n.env.LAMBDA_TASK_ROOT||n.env.K_SERVICE||n.env.CF_PAGES||n.env.VERCEL||n.env.NETLIFY)&&await l(t)}},83301:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(60008),i=r(79822);t.extractPromptResultAttributes=function(e,t){let r={};if(!i.isValidContentItem(e))return r;if(t&&"string"==typeof e.description&&(r[n.MCP_PROMPT_RESULT_DESCRIPTION_ATTRIBUTE]=e.description),Array.isArray(e.messages)&&(r[n.MCP_PROMPT_RESULT_MESSAGE_COUNT_ATTRIBUTE]=e.messages.length,t)){let t=e.messages;for(let[e,n]of t.entries()){var a,o;if(!i.isValidContentItem(n))continue;let s=1===t.length?"mcp.prompt.result":`mcp.prompt.result.${e}`;if(a="role","string"==typeof(o=n.role)&&(r[1===t.length?`${s}.message_${a}`:`${s}.${a}`]=o),i.isValidContentItem(n.content)){let e=n.content;"string"==typeof e.text&&(r[1===t.length?`${s}.message_content`:`${s}.content`]=e.text)}}}return r},t.extractToolResultAttributes=function(e,t){if(!i.isValidContentItem(e))return{};let r=Array.isArray(e.content)?function(e,t){let r={[n.MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE]:e.length};for(let[n,a]of e.entries()){if(!i.isValidContentItem(a))continue;let o=1===e.length?"mcp.tool.result":`mcp.tool.result.${n}`;if("string"==typeof a.type&&(r[`${o}.content_type`]=a.type),t){let e=(e,t)=>{"string"==typeof t&&(r[`${o}.${e}`]=t)};e("mime_type",a.mimeType),e("uri",a.uri),e("name",a.name),"string"==typeof a.text&&(r[`${o}.content`]=a.text),"string"==typeof a.data&&(r[`${o}.data_size`]=a.data.length);let t=a.resource;i.isValidContentItem(t)&&(e("resource_uri",t.uri),e("resource_mime_type",t.mimeType))}}return r}(e.content,t):{};return"boolean"==typeof e.isError&&(r[n.MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE]=e.isError),r}},83592:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(53374);t.handleCallbackErrors=function(e,t,r=()=>{},i=()=>{}){var a,o,s,l;let u;
973try{u=e()}catch(e){throw t(e),r(),e}return a=u,o=t,s=r,l=i,n.isThenable(a)?a.then(e=>(s(),l(e),e),e=>{throw o(e),s(),e}):(s(),l(a),a)}},83877:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(1610),i=r(66908),a=r(43379),o=r(46298),s=r(86160),l=r(32469),u=r(62151),c=r(76953),d=o.defineIntegration((e={})=>{let t=new Set(e.levels||s.CONSOLE_LEVELS);return{name:"Console",setup(e){a.addConsoleInstrumentationHandler(({args:r,level:n})=>{i.getClient()===e&&t.has(n)&&p(n,r)})}}});function p(e,t){let r={category:"console",data:{arguments:t,logger:"console"},level:l.severityLevelFromString(e),message:f(t)};if("assert"===e)if(!1!==t[0])return;else{let e=t.slice(1);r.message=e.length>0?`Assertion failed: ${f(e)}`:"Assertion failed",r.data.arguments=e}n.addBreadcrumb(r,{input:t,level:e})}function f(e){return"util"in c.GLOBAL_OBJ&&"function"==typeof c.GLOBAL_OBJ.util.format?c.GLOBAL_OBJ.util.format(...e):u.safeJoin(e," ")}t.addConsoleBreadcrumb=p,t.consoleIntegration=d},84387:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},84531:(e,t)=>{"use strict";function r(e){return 47===e.charCodeAt(e.length-1)&&e.length>1?e.slice(0,-1):e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},84831:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.CHATS_CREATE_METHOD="chats.create",t.CHAT_PATH="chat",t.GOOGLE_GENAI_INSTRUMENTED_METHODS=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],t.GOOGLE_GENAI_INTEGRATION_NAME="Google_GenAI",t.GOOGLE_GENAI_SYSTEM_NAME="google_genai"},85039:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(78869),i=r(99056),a=r(66908),o=r(38398),s=r(86160),l=r(62098),u=r(14645),c=r(62327),d=r(6406),p=r(71410);function f(e,t,r,n=!0){!r||!n&&t in e||(e[t]=r)}function h(e,t){let r=_(),n=g(e);void 0===n?r.set(e,[t]):n.length>=1e3?(m(e,n),r.set(e,[t])):r.set(e,[...n,t])}function m(e,t){let r=t??g(e)??[];if(0===r.length)return;let n=e.getOptions(),i=p.createMetricEnvelope(r,n._metadata,n.tunnel,e.getDsn());_().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function g(e){return _().get(e)}function _(){return i.getGlobalSingleton("clientToMetricBufferMap",()=>new WeakMap)}t._INTERNAL_captureMetric=function(e,t){let r=t?.scope??a.getCurrentScope(),i=t?.captureSerializedMetric??h,p=r?.getClient()??a.getClient();if(!p){o.DEBUG_BUILD&&s.debug.warn("No client available to capture metric.");return}let{_experiments:m,enableMetrics:g,beforeSendMetric:_}=p.getOptions();if(!(g??m?.enableMetrics??!0)){o.DEBUG_BUILD&&s.debug.warn("metrics option not enabled, metric will not be captured.");return}let{user:y,attributes:S}=l.getCombinedScopeData(a.getIsolationScope(),r),E=function(e,t,r){let{release:n,environment:i}=t.getOptions(),a={...e.attributes};f(a,"user.id",r.id,!1),f(a,"user.email",r.email,!1),f(a,"user.name",r.username,!1),f(a,"sentry.release",n),f(a,"sentry.environment",i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};f(a,"sentry.sdk.name",o),f(a,"sentry.sdk.version",s);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return f(a,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&f(a,"sentry._internal.replay_is_buffering",!0),{...e,attributes:a}}(e,p,y);p.emit("processMetric",E);let b=_||m?.beforeSendMetric,T=b?b(E):E;if(!T){o.DEBUG_BUILD&&s.debug.log("`beforeSendMetric` returned `null`, will not send metric.");return}let v=function(e,t,r,i){let[,a]=d._getTraceInfoFromScope(t,r),o=u._getSpanForScope(r),s=o?o.spanContext().traceId:a?.trace_id,l=o?o.spanContext().spanId:void 0;return{timestamp:c.timestampInSeconds(),trace_id:s??"",span_id:l,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...n.serializeAttributes(i),...n.serializeAttributes(e.attributes,"skip-undefined")}}}(T,p,r,S);o.DEBUG_BUILD&&s.debug.log("[Metric]",v),i(p,v),p.emit("afterCaptureMetric",T)},t._INTERNAL_captureSerializedMetric=h,t._INTERNAL_flushMetricsBuffer=m,t._INTERNAL_getMetricBuffer=g},85684:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=n.GLOBAL_OBJ,a=n.defineIntegration((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let r=i.document,a=i.location&&n.stripUrlQueryAndFragment(i.location.href);if(!r||!a)return e;let s=e.exception?.values;if(!s?.length)return e;let l=r.documentElement.innerHTML;if(!l)return e;let u=["<!DOCTYPE html>","<html>",...l.split("\n"),"</html>"];
973return s.forEach(e=>{let r=e.stacktrace;r?.frames&&(r.frames=r.frames.map(e=>o(e,u,a,t)))}),e})(e,t)}});function o(e,t,r,i){return e.filename===r&&e.lineno&&t.length&&n.addContextToFrame(t,e,i),e}t.applySourceContextToFrame=o,t.contextLinesIntegration=a},85699:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=n.GLOBAL_OBJ,a=0;function o(){a++,setTimeout(()=>{a--})}t.WINDOW=i,t.getHttpRequestData=function(){let e=n.getLocationHref(),{referrer:t}=i.document||{},{userAgent:r}=i.navigator||{};return{url:e,headers:{...t&&{Referer:t},...r&&{"User-Agent":r}}}},t.ignoreNextOnError=o,t.shouldIgnoreOnError=function(){return a>0},t.wrap=function e(t,r={}){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)if("function"==typeof e)return e;else return t;if(n.getOriginalFunction(t))return t}catch{return t}let i=function(...i){try{let n=i.map(t=>e(t,r));return t.apply(this,n)}catch(e){throw o(),n.withScope(t=>{t.addEventProcessor(e=>(r.mechanism&&(n.addExceptionTypeValue(e,void 0,void 0),n.addExceptionMechanism(e,r.mechanism)),e.extra={...e.extra,arguments:i},e)),n.captureException(e)}),e}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=t[e])}catch{}n.markFunctionWrapped(i,t),n.addNonEnumerableProperty(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>t.name})}catch{}return i}},85783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let n=r(75591),i=r(15383),a=n._(r(14343)),o=r(24157);async function s({Component:e,ctx:t}){return{pageProps:await (0,o.loadGetInitialProps)(e,t)}}class l extends a.default.Component{static{this.origGetInitialProps=s}static{this.getInitialProps=s}render(){let{Component:e,pageProps:t}=this.props;return(0,i.jsx)(e,{...t})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85890:(e,t,r)=>{"use strict";r.d(t,{O:()=>l});var n=r(65231),i=r(31867),a=r(57464),o=r(14400),s=r(66400);async function l(e){let{req:t,res:r,err:l}=e,u=r?.statusCode||e.statusCode;if(u&&u<500||!e.pathname)return;if(l&&(0,n.dO)(l))return(0,s.a0)((0,s.aj)()),(0,i.rm)().lastEventId();let c=(0,i.v4)(e=>{if(t){let r=(0,a.Iv)(t);e.setSDKProcessingMetadata({normalizedRequest:r})}return(0,o.Cp)(l||`_error.js called with falsy error (${l})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return(0,s.a0)((0,s.aj)()),c}},86006:(e,t,r)=>{"use strict";r.d(t,{f:()=>o,r:()=>a});var n=r(45936);let i="_sentrySpan";function a(e,t){t?(0,n.my)(e,i,t):delete e[i]}function o(e){return e[i]}},86160:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(99056),i=r(38398),a=r(76953),o={};function s(e){if(!("console"in a.GLOBAL_OBJ))return e();let t=a.GLOBAL_OBJ.console,r={},n=Object.keys(o);n.forEach(e=>{let n=o[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function l(){return c().enabled}function u(e,...t){i.DEBUG_BUILD&&l()&&s(()=>{a.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function c(){return i.DEBUG_BUILD?n.getGlobalSingleton("loggerSettings",()=>({enabled:!1})):{enabled:!1}}t.CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],t.consoleSandbox=s,t.debug={enable:function(){c().enabled=!0},disable:function(){c().enabled=!1},isEnabled:l,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}},t.originalConsoleMethods=o},86313:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336);function a(e){return function(...t){let r=t[0],a=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof a?(n._INTERNAL_insertFlagToScope(r,a),n._INTERNAL_addFeatureFlagToActiveSpan(r,a)):i.DEBUG_BUILD&&n.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${r} (${typeof r}), result: ${a} (${typeof a})`),a}}t.unleashIntegration=n.defineIntegration(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;n.fill(t,"isEnabled",a)},processEvent:(e,t,r)=>n._INTERNAL_copyFlagsFromScopeToEvent(e)}))},86354:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(76677),i=r(41291),a=r(23105),o=r(7571),s=r(18187),l=r(40584);function u(e,t){e.setAttribute(n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,t)}function c(e){var t,r;
973let c,d,{data:f,description:h}=i.spanToJSON(e);!h||(f[l.AI_TOOL_CALL_NAME_ATTRIBUTE]&&f[l.AI_TOOL_CALL_ID_ATTRIBUTE]&&"ai.toolCall"===h?(t=e,r=f,u(t,"auto.vercelai.otel"),t.setAttribute(n.SEMANTIC_ATTRIBUTE_SENTRY_OP,"gen_ai.execute_tool"),t.setAttribute(a.GEN_AI_OPERATION_NAME_ATTRIBUTE,"execute_tool"),p(r,l.AI_TOOL_CALL_NAME_ATTRIBUTE,a.GEN_AI_TOOL_NAME_ATTRIBUTE),p(r,l.AI_TOOL_CALL_ID_ATTRIBUTE,a.GEN_AI_TOOL_CALL_ID_ATTRIBUTE),"string"==typeof(c=r[a.GEN_AI_TOOL_CALL_ID_ATTRIBUTE])&&o.toolCallSpanMap.set(c,t),r[a.GEN_AI_TOOL_TYPE_ATTRIBUTE]||t.setAttribute(a.GEN_AI_TOOL_TYPE_ATTRIBUTE,"function"),(d=r[a.GEN_AI_TOOL_NAME_ATTRIBUTE])&&t.updateName(`execute_tool ${d}`)):(f[l.AI_OPERATION_ID_ATTRIBUTE]||h.startsWith("ai."))&&function(e,t,r){u(e,"auto.vercelai.otel");let i=t.replace("ai.","");e.setAttribute("ai.pipeline.name",i),e.updateName(i);let o=r[l.AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE];o&&"string"==typeof o&&(e.updateName(`${i} ${o}`),e.setAttribute("gen_ai.function_id",o)),s.requestMessagesFromPrompt(e,r),r[l.AI_MODEL_ID_ATTRIBUTE]&&!r[a.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]&&e.setAttribute(a.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,r[l.AI_MODEL_ID_ATTRIBUTE]),e.setAttribute("ai.streaming",t.includes("stream"));let c=s.getSpanOpFromName(t);c&&e.setAttribute(n.SEMANTIC_ATTRIBUTE_SENTRY_OP,c);let d=r[l.AI_MODEL_ID_ATTRIBUTE];if(d)switch(t){case"ai.generateText.doGenerate":e.updateName(`generate_text ${d}`);break;case"ai.streamText.doStream":e.updateName(`stream_text ${d}`);break;case"ai.generateObject.doGenerate":e.updateName(`generate_object ${d}`);break;case"ai.streamObject.doStream":e.updateName(`stream_object ${d}`);break;case"ai.embed.doEmbed":e.updateName(`embed ${d}`);break;case"ai.embedMany.doEmbed":e.updateName(`embed_many ${d}`);break;case"ai.rerank.doRerank":e.updateName(`rerank ${d}`)}}(e,h,f))}function d(e){if("transaction"===e.type&&e.spans){let t=new Map;for(let r of e.spans)(function(e){let{data:t,origin:r}=e;if("auto.vercelai.otel"===r){if(p(t,l.AI_USAGE_COMPLETION_TOKENS_ATTRIBUTE,a.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(t,l.AI_USAGE_PROMPT_TOKENS_ATTRIBUTE,a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(t,l.AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE,a.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE),p(t,"ai.usage.inputTokens",a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE),p(t,"ai.usage.outputTokens",a.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE),p(t,"ai.response.avgOutputTokensPerSecond","ai.response.avgCompletionTokensPerSecond"),"number"==typeof t[a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]&&"number"==typeof t[a.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]&&(t[a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=t[a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]+t[a.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE]),"number"==typeof t[a.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]&&"number"==typeof t[a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]&&(t[a.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=t[a.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]+t[a.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]),t[l.AI_PROMPT_TOOLS_ATTRIBUTE]&&Array.isArray(t[l.AI_PROMPT_TOOLS_ATTRIBUTE])&&(t[l.AI_PROMPT_TOOLS_ATTRIBUTE]=s.convertAvailableToolsToJsonString(t[l.AI_PROMPT_TOOLS_ATTRIBUTE])),t[l.OPERATION_NAME_ATTRIBUTE]){var n;let e=(n=t[l.OPERATION_NAME_ATTRIBUTE],o.INVOKE_AGENT_OPS.has(n)?"invoke_agent":o.GENERATE_CONTENT_OPS.has(n)?"generate_content":o.EMBEDDINGS_OPS.has(n)?"embeddings":o.RERANK_OPS.has(n)?"rerank":"ai.toolCall"===n?"execute_tool":n);t[a.GEN_AI_OPERATION_NAME_ATTRIBUTE]=e,delete t[l.OPERATION_NAME_ATTRIBUTE]}for(let e of(p(t,l.AI_PROMPT_MESSAGES_ATTRIBUTE,a.GEN_AI_INPUT_MESSAGES_ATTRIBUTE),p(t,l.AI_RESPONSE_TEXT_ATTRIBUTE,"gen_ai.response.text"),p(t,l.AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,"gen_ai.response.tool_calls"),p(t,l.AI_RESPONSE_OBJECT_ATTRIBUTE,"gen_ai.response.object"),p(t,l.AI_PROMPT_TOOLS_ATTRIBUTE,"gen_ai.request.available_tools"),p(t,l.AI_TOOL_CALL_ARGS_ATTRIBUTE,a.GEN_AI_TOOL_INPUT_ATTRIBUTE),p(t,l.AI_TOOL_CALL_RESULT_ATTRIBUTE,a.GEN_AI_TOOL_OUTPUT_ATTRIBUTE),p(t,l.AI_SCHEMA_ATTRIBUTE,"gen_ai.request.schema"),p(t,l.AI_MODEL_ID_ATTRIBUTE,a.GEN_AI_REQUEST_MODEL_ATTRIBUTE),function(e){let t=e[l.AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE];if(t)try{let r=JSON.parse(t),n=r.openai??r.azure;if(n&&(f(e,a.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,n.cachedPromptTokens),f(e,"gen_ai.usage.output_tokens.reasoning",n.reasoningTokens),f(e,"gen_ai.usage.output_tokens.prediction_accepted",n.acceptedPredictionTokens),f(e,"gen_ai.usage.output_tokens.prediction_rejected",n.rejectedPredictionTokens),f(e,"gen_ai.conversation.id",n.responseId)),r.anthropic){let t=r.anthropic.usage?.cache_read_input_tokens??r.anthropic.cacheReadInputTokens;f(e,a.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,t);let n=r.anthropic.usage?.cache_creation_input_tokens??r.anthropic.cacheCreationInputTokens;f(e,a.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,n)}r.bedrock?.usage&&(f(e,a.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,r.bedrock.usage.cacheReadInputTokens),f(e,a.GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE,r.bedrock.usage.cacheWriteInputTokens)),r.deepseek&&(f(e,a.GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE,r.deepseek.promptCacheHitTokens),f(e,"gen_ai.usage.input_tokens.cache_miss",r.deepseek.promptCacheMissTokens))}catch{}}(t),Object.keys(t)))e.startsWith("ai.")&&p(t,e,`vercel.${e}`)}})(r),s.accumulateTokensForParent(r,t);for(let r of e.spans)"gen_ai.invoke_agent"===r.op&&s.applyAccumulatedTokens(r,t);let r=e.contexts?.trace;r&&"gen_ai.invoke_agent"===r.op&&s.applyAccumulatedTokens(r,t)}return e}function p(e,t,r){null!=e[t]&&(e[r]=e[t],delete e[t])}function f(e,t,r){null!=r&&(e[t]=r)}t.addVercelAiProcessors=function(e){e.on("spanStart",c),e.addEventProcessor(Object.assign(d,{id:"VercelAiEventProcessor"}))}},86395:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(53374);function i(e){return Array.isArray(e.errors)}function a(e,t,r){e.mechanism={handled:!0,type:"auto.core.linked_errors",...i(r)&&{is_exception_group:!0}
973,...e.mechanism,exception_id:t}}function o(e,t,r,n){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}t.applyAggregateErrorsToEvent=function(e,t,r,s,l,u){if(!l.exception?.values||!u||!n.isInstanceOf(u.originalException,Error))return;let c=l.exception.values.length>0?l.exception.values[l.exception.values.length-1]:void 0;c&&(l.exception.values=function e(t,r,s,l,u,c,d,p){if(c.length>=s+1)return c;let f=[...c];if(n.isInstanceOf(l[u],Error)){a(d,p,l);let n=t(r,l[u]),i=f.length;o(n,u,i,p),f=e(t,r,s,l[u],u,[n,...f],n,i)}return i(l)&&l.errors.forEach((i,c)=>{if(n.isInstanceOf(i,Error)){a(d,p,l);let n=t(r,i),h=f.length;o(n,`errors[${c}]`,h,p),f=e(t,r,s,i,u,[n,...f],n,h)}}),f}(e,t,s,u.originalException,r,l.exception.values,c,0))}},86474:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(53374),a=r(51045),o=r(13394),s=r(62327),l=r(76953),u=r(23607);function c(e,t=!1){(!t||o.supportsNativeFetch())&&a.fill(l.GLOBAL_OBJ,"fetch",function(t){return function(...r){let o=Error(),{method:c,url:d}=m(r),p={args:r,fetchData:{method:c,url:d},startTimestamp:1e3*s.timestampInSeconds(),virtualError:o,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if(i.isRequest(t))return new Headers(t.headers)}catch{}}(r)};return e||u.triggerHandlers("fetch",{...p}),t.apply(l.GLOBAL_OBJ,r).then(async t=>(e?e(t):u.triggerHandlers("fetch",{...p,endTimestamp:1e3*s.timestampInSeconds(),response:t}),t),e=>{u.triggerHandlers("fetch",{...p,endTimestamp:1e3*s.timestampInSeconds(),error:e}),i.isError(e)&&void 0===e.stack&&(e.stack=o.stack,a.addNonEnumerableProperty(e,"framesToPop",1));let t=n.getClient(),r=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&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(p.fetchData.url).host;"always"===r?e.message=`${e.message} (${t})`:a.addNonEnumerableProperty(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function d(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),a=!0;for(;a;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function p(e){let t;try{t=e.clone()}catch{return}d(t,()=>{u.triggerHandlers("fetch-body-resolved",{endTimestamp:1e3*s.timestampInSeconds(),response:e})})}function f(e,t){return!!e&&"object"==typeof e&&!!e[t]}function h(e){return"string"==typeof e?e:e?f(e,"url")?e.url:e.toString?e.toString():"":""}function m(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:h(t),method:f(r,"method")?String(r.method).toUpperCase():i.isRequest(t)&&f(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:h(t),method:f(t,"method")?String(t.method).toUpperCase():"GET"}}t.addFetchEndInstrumentationHandler=function(e){let t="fetch-body-resolved";u.addHandler(t,e),u.maybeInstrument(t,()=>c(p))},t.addFetchInstrumentationHandler=function(e,t){let r="fetch";u.addHandler(r,e),u.maybeInstrument(r,()=>c(void 0,t))},t.parseFetchArgs=m},86652:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(51045),i=r(76953),a="_sentryScope",o="_sentryIsolationScope";t.getCapturedScopesOnSpan=function(e){return{scope:e[a],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[o])}},t.setCapturedScopesOnSpan=function(e,t,r){e&&(n.addNonEnumerableProperty(e,o,function(e){try{let t=i.GLOBAL_OBJ.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(r)),n.addNonEnumerableProperty(e,a,t))}},88120:(e,t,r)=>{"use strict";r.d(t,{AJ:()=>o,F3:()=>i,N8:()=>s,TJ:()=>a,a3:()=>n});let n=0,i=1,a=2;function o(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:a,message:"unauthenticated"};case 403:return{code:a,message:"permission_denied"};case 404:return{code:a,message:"not_found"};case 409:return{code:a,message:"already_exists"};case 413:return{code:a,message:"failed_precondition"};case 429:return{code:a,message:"resource_exhausted"};case 499:return{code:a,message:"cancelled"};default:return{code:a,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:a,message:"unimplemented"};case 503:return{code:a,message:"unavailable"};case 504:return{code:a,message:"deadline_exceeded"}}return{code:a,message:"internal_error"}}function s(e,t){e.setAttribute("http.response.status_code",t);let r=o(t);"unknown_error"!==r.message&&e.setStatus(r)}},88262:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(46298),a=r(76677);t.conversationIdIntegration=i.defineIntegration(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=n.getCurrentScope().getScopeData(),r=n.getIsolationScope().getScopeData(),i=t.conversationId||r.conversationId;i&&e.setAttribute(a.GEN_AI_CONVERSATION_ID_ATTRIBUTE,i)})}}))},88858:(e,t,r)=>{"use strict";r.d(t,{S8:()=>o,cd:()=>function e(t,r=3,n=102400){let i=o(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}});var n=r(21275),i=r(45936),a=r(41098);function o(e,t=100,r=Infinity){try{return function e(t,r,o=Infinity,s=Infinity,l=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[u,c]=l;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let d=function(e,t){try{var r;let i;if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("u">typeof global&&t===global)return"[Global]";if("u">typeof window&&t===window)return"[Window]";if("u">typeof document&&t===document)return"[Document]";if((0,n.L2)(t))return(0,a.nY)(t);if((0,n.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,a.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let o=(r=t,i=Object.getPrototypeOf(r),i?.constructor?i.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(o))return`[HTMLElement: ${o}]`;return`[object ${o}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!d.startsWith("[object "))return d;if(r.__sentry_skip_normalization__)return r;let p="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:o;if(0===p)return d.replace("object ","");if(u(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,p-1,s,l)}catch{}let f=Array.isArray(r)?[]:{},h=0,m=(0,i.W4)(r);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(h>=s){f[t]="[MaxProperties ~]";break}let r=m[t];f[t]=e(t,r,p-1,s,l),h++}return c(r),f}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},88892:(e,t,r)=>{"use strict";let n;r.d(t,{Qw:()=>a,Wk:()=>s,hY:()=>o});var i=r(71706);function a(e){if(void 0!==n)return n?n(e):e();let t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=i.O;return t in r&&"function"==typeof r[t]?(n=r[t])(e):(n=null,e())}function o(){return a(()=>Math.random())}function s(){return a(()=>Date.now())}},89104:(e,t)=>
973{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89291:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(5756);t.makeFetchTransport=function(e,t=i.getNativeImplementation("fetch")){let r=0,a=0;async function o(n){let o=n.body.length;r+=o,a++;let s={body:n.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&a<15,...e.fetchOptions};try{let r=await t(e.url,s);return{statusCode:r.status,headers:{"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")}}}catch(e){throw i.clearCachedImplementation("fetch"),e}finally{r-=o,a--}}return n.createTransport(e,o,n.makePromiseBuffer(e.bufferSize||40))}},89323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InvariantError",{enumerable:!0,get:function(){return r}});class r extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1179",enumerable:!1,configurable:!0}),this.name="InvariantError"}}},89526:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(38537),a=r(78972),o=r(36797),s=r(78114),l=r(67811),u=r(28732),c=r(20041),d=r(4008);r(59658);let p=r(64995),f=r(89291),h=r(20078);function m(e){return[n.inboundFiltersIntegration(),n.functionToStringIntegration(),n.conversationIdIntegration(),o.browserApiErrorsIntegration(),a.breadcrumbsIntegration(),u.globalHandlersIntegration(),d.linkedErrorsIntegration(),n.dedupeIntegration(),c.httpContextIntegration(),l.cultureContextIntegration(),s.browserSessionIntegration()]}t.forceLoad=function(){},t.getDefaultIntegrations=m,t.init=function(e={}){let t=!e.skipBrowserExtensionCheck&&h.checkAndWarnIfIsEmbeddedBrowserExtension(),r=null==e.defaultIntegrations?m():e.defaultIntegrations,a={...e,enabled:!t&&e.enabled,stackParser:n.stackParserFromStackParserOptions(e.stackParser||p.defaultStackParser),integrations:n.getIntegrationsToSetup({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||f.makeFetchTransport};return n.initAndBind(i.BrowserClient,a)},t.onLoad=function(e){e()}},89784:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(19849);t.whenActivated=e=>{n.WINDOW.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()}},89932:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseLoaderTree",{enumerable:!0,get:function(){return i}});let n=r(78145);function i(e){let[t,r,i,a]=e,{layout:o,template:s}=i,{page:l}=i;l=t===n.DEFAULT_SEGMENT_KEY?i.defaultPage:l;let u=o?.[1]||s?.[1]||l?.[1];return{page:l,segment:t,modules:i,conventionPath:u,parallelRoutes:r,staticSiblings:a}}},90849:(e,t)=>
973{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=(...e)=>{};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90879:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(5490);t.applySdkMetadata=function(e,t,r=[t],i="npm"){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=r.map(e=>({name:`${i}:@sentry/${e}`,version:n.SDK_VERSION})),a.version=n.SDK_VERSION)}},91057:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(44774),a=r(19849),o={};function s(e){let t=o[e];if(t)return t;let r=a.WINDOW[e];if(n.isNativeFunction(r))return o[e]=r.bind(a.WINDOW);let s=a.WINDOW.document;if(s&&"function"==typeof s.createElement)try{let t=s.createElement("iframe");t.hidden=!0,s.head.appendChild(t);let n=t.contentWindow;n?.[e]&&(r=n[e]),s.head.removeChild(t)}catch(t){i.DEBUG_BUILD&&n.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return r?o[e]=r.bind(a.WINDOW):r}t.clearCachedImplementation=function(e){o[e]=void 0},t.fetch=function(...e){return s("fetch")(...e)},t.getNativeImplementation=s,t.setTimeout=function(...e){return s("setTimeout")(...e)}},91257:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(31867),i=r(59685),a=r(21762);function o(e,t){let r=(0,n.KU)(),o=(0,n.rm)();if(!r)return;let{beforeBreadcrumb:s=null,maxBreadcrumbs:l=100}=r.getOptions();if(l<=0)return;let u={timestamp:(0,a.lu)(),...e},c=s?(0,i.pq)(()=>s(u,t)):u;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),o.addBreadcrumb(c,l))}},91521:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(42248),i=r(8788),a=r(53374),o=r(99056);class s{constructor(e,t){let r,n;r=e||new i.Scope,n=t||new i.Scope,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return a.isThenable(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function l(){let e=o.getMainCarrier(),t=o.getSentryCarrier(e);return t.stack=t.stack||new s(n.getDefaultCurrentScope(),n.getDefaultIsolationScope())}function u(e){return l().withScope(e)}function c(e,t){let r=l();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function d(e){return l().withScope(()=>e(l().getIsolationScope()))}t.AsyncContextStack=s,t.getStackAsyncContextStrategy=function(){return{withIsolationScope:d,withScope:u,withSetScope:c,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>l().getScope(),getIsolationScope:()=>l().getIsolationScope()}}},91543:(e,t)=>
973{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getBreadcrumbLogLevelFromHttpStatusCode=function(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}},91610:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(77191),i=r(76677),a=r(15793),o=r(95068),s=r(23105),l=r(15482),u=r(23675),c=r(42970),d=r(40379),p=r(9219);function f(e,t){return new Proxy(e,{apply:(e,r,f)=>o.startSpan({op:"gen_ai.create_agent",name:"create_agent",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:d.LANGGRAPH_ORIGIN,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"}},h=>{try{var m,g,_,y;let S=Reflect.apply(e,r,f),E=f.length>0?f[0]:{};E?.name&&"string"==typeof E.name&&(h.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,E.name),h.updateName(`create_agent ${E.name}`));let b=S.invoke;return b&&"function"==typeof b&&(m=b.bind(S),g=S,_=E,y=t,S.invoke=new Proxy(m,{apply:(e,t,r)=>o.startSpan({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:d.LANGGRAPH_ORIGIN,[i.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async i=>{try{let n=_?.name;n&&"string"==typeof n&&(i.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,n),i.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,n),i.updateName(`invoke_agent ${n}`));let a=r.length>1?r[1]:void 0,o=a?.configurable,d=o?.thread_id;d&&"string"==typeof d&&i.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,d);let f=p.extractToolsFromCompiledGraph(g);f&&i.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(f));let h=y.recordInputs,m=y.recordOutputs,S=r.length>0?r[0]?.messages??[]:[];if(S&&h){let e=c.normalizeLangChainMessages(S),{systemInstructions:t,filteredMessages:r}=u.extractSystemInstructions(e);t&&i.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);let n=l.truncateGenAiMessages(r),a=Array.isArray(r)?r.length:0;i.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:JSON.stringify(n),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:a})}let E=await Reflect.apply(e,t,r);return m&&p.setResponseAttributes(i,S??null,E),E}catch(e){throw i.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),n.captureException(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})})),S}catch(e){throw h.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"}),n.captureException(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})})}t.instrumentLangGraph=function(e,t){return e.compile=f(e.compile.bind(e),t||{}),e},t.instrumentStateGraphCompile=f},92569:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(66908),i=r(63669),a=r(11317),o=r(53374),s=r(98473),l=["trace","debug","info","warn","error","fatal"],u={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},c={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};t.createConsolaReporter=function(e={}){let t=new Set(e.levels??l),r=e.client;return{log(e){let{type:l,level:d,message:p,args:f,tag:h,date:m,...g}=e,_=r||n.getClient();if(!_)return;let y=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=u[e];if(t)return t}if("number"==typeof t){let e=c[t];if(e)return e}return"info"}(l,d);if(!t.has(y))return;let{normalizeDepth:S=3,normalizeMaxBreadth:E=1e3}=_.getOptions(),b={};for(let[e,t]of Object.entries(g))b[e]=s.normalize(t,S,E);b["sentry.origin"]="auto.log.consola",h&&(b["consola.tag"]=h),l&&(b["consola.type"]=l),null!=d&&"number"==typeof d&&(b["consola.level"]=d);let T=function(e,t,r){let{message:n,attributes:i,messageTemplate:o,messageParameters:l}=e,u={};if(o&&l)for(let[e,n]of Object.entries(a.createConsoleTemplateAttributes(o,l)))u[e]=e.startsWith("sentry.message.parameter.")?s.normalize(n,t,r):n;else l&&l.length>0&&l.forEach((e,n)=>{u[`sentry.message.parameter.${n}`]=s.normalize(e,t,r)});return{message:n,attributes:{...s.normalize(i,t,r),...u}}}(function(e,t,r){if(!e?.length)return{message:""};let n=a.formatConsoleArgs(e,t,r),i=e[0];if(o.isPlainObject(i)){let t="string"==typeof e[1]?2:1;return{message:n,attributes:i,messageParameters:e.slice(t)}}{let t=e.slice(1),r=t.length>0&&"string"==typeof i&&!a.hasConsoleSubstitutions(i);return{message:n,messageTemplate:r?i:void 0,messageParameters:r?t:void 0}}}(f,S,E),S,E);T?.attributes&&Object.assign(b,T.attributes),i._INTERNAL_captureLog({level:y,message:T?.message||p||f&&a.formatConsoleArgs(f,S,E)||"",attributes:b})}}}},93232:(e,t)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.ANTHROPIC_AI_INSTRUMENTED_METHODS=["messages.create","messages.stream","messages.countTokens","models.get","completions.
973create","models.retrieve","beta.messages.create"],t.ANTHROPIC_AI_INTEGRATION_NAME="Anthropic_AI"},94124:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(85699);t.registerBackgroundTabDetection=function(){a.WINDOW.document?a.WINDOW.document.addEventListener("visibilitychange",()=>{let e=n.getActiveSpan();if(!e)return;let t=n.getRootSpan(e);if(a.WINDOW.document.hidden&&t){let e="cancelled",{op:r,status:a}=n.spanToJSON(t);i.DEBUG_BUILD&&n.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),a||t.setStatus({code:n.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):i.DEBUG_BUILD&&n.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},94250:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(72055),i=r(41341),a=r(45573),o=r(60887),s=r(49287),l=r(41452),u=r(53219),c=r(31603),d=r(30731),p=r(89784),f=r(74614),h=[2500,4e3];t.LCPThresholds=h,t.onLCP=(e,t={})=>{p.whenActivated(()=>{let r,p=a.getVisibilityWatcher(),m=s.initMetric("LCP"),g=l.initUnique(t,u.LCPEntryManager),_=e=>{for(let n of(t.reportAllChanges||(e=e.slice(-1)),e))g._processEntry(n),n.startTime<p.firstHiddenTime&&(m.value=Math.max(n.startTime-i.getActivationStart(),0),m.entries=[n],r())},y=c.observe("largest-contentful-paint",_);if(y){r=n.bindReporter(e,m,h,t.reportAllChanges);let i=d.runOnce(()=>{_(y.takeRecords()),y.disconnect(),r(!0)}),a=e=>{e.isTrusted&&(f.whenIdleOrHidden(i),o.removePageListener(e.type,a,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])o.addPageListener(e,a,{capture:!0})}})}},94550:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(113),o=r(85699),s=r(28732),l="WebWorker",u=n.defineIntegration(({worker:e})=>({name:l,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>c(e))},addWorker:e=>c(e)}));function c(e){e.addEventListener("message",e=>{if(function(e){if(!n.isPlainObject(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,r="_sentryModuleMetadata"in e,i="_sentryWorkerError"in e,a="_sentryWasmImages"in e;return(!!t||!!r||!!i||!!a)&&(!t||!!(n.isPlainObject(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!r||!!(n.isPlainObject(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!i||!!n.isPlainObject(e._sentryWorkerError))&&(!a||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>n.isPlainObject(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(i.DEBUG_BUILD&&n.debug.log("Sentry debugId web worker message received",e.data),o.WINDOW._sentryDebugIds={...e.data._sentryDebugIds,...o.WINDOW._sentryDebugIds}),e.data._sentryModuleMetadata&&(i.DEBUG_BUILD&&n.debug.log("Sentry module metadata web worker message received",e.data),o.WINDOW._sentryModuleMetadata={...e.data._sentryModuleMetadata,...o.WINDOW._sentryModuleMetadata}),e.data._sentryWasmImages){i.DEBUG_BUILD&&n.debug.log("Sentry WASM images web worker message received",e.data);let t=o.WINDOW._sentryWasmImages||[],r=e.data._sentryWasmImages.filter(e=>n.isPlainObject(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));o.WINDOW._sentryWasmImages=[...t,...r]}e.data._sentryWorkerError&&(i.DEBUG_BUILD&&n.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=n.getClient();if(!t)return;let r=t.getOptions().stackParser,o=t.getOptions().attachStacktrace,l=e.reason,u=n.isPrimitive(l)?s._eventFromRejectionWithPrimitive(l):a.eventFromUnknownInput(r,l,void 0,o,!0);u.level="error",e.filename&&(u.contexts={...u.contexts,worker:{filename:e.filename}}),n.captureEvent(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),i.DEBUG_BUILD&&n.debug.log("Captured worker unhandled rejection",l)}(e.data._sentryWorkerError))}})}t.INTEGRATION_NAME=l,t.registerWebWorker=function({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let r={reason:s._getUnhandledRejectionError(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),i.DEBUG_BUILD&&n.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),i.DEBUG_BUILD&&n.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")},t.webWorkerIntegration=u},94714:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(6386),o=r(22461),s=r(68671);t.DEFAULT_TRANSPORT_BUFFER_SIZE=64,t.createTransport=function(e,t,r=o.makePromiseBuffer(e.bufferSize||64)){let l={};return{send:function(u){let c=[];
973if(a.forEachEnvelopeItem(u,(t,r)=>{let n=a.envelopeItemTypeToDataCategory(r);s.isRateLimited(l,n)?e.recordDroppedEvent("ratelimit_backoff",n):c.push(t)}),0===c.length)return Promise.resolve({});let d=a.createEnvelope(u[0],c),p=t=>{if(a.envelopeContainsItemType(d,["client_report"])){n.DEBUG_BUILD&&i.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}a.forEachEnvelopeItem(d,(r,n)=>{e.recordDroppedEvent(t,a.envelopeItemTypeToDataCategory(n))})};return r.add(()=>t({body:a.serializeEnvelope(d)}).then(e=>(413===e.statusCode?(n.DEBUG_BUILD&&i.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),p("send_error")):(n.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&i.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),l=s.updateRateLimits(l,e)),e),e=>{throw p("network_error"),n.DEBUG_BUILD&&i.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===o.SENTRY_BUFFER_FULL_ERROR)return n.DEBUG_BUILD&&i.debug.error("Skipped sending event because buffer is full."),p("queue_overflow"),Promise.resolve({});throw e})},flush:e=>r.drain(e)}}},94748:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(99056),i=r(91521);t.getAsyncContextStrategy=function(e){let t=n.getSentryCarrier(e);return t.acs?t.acs:i.getStackAsyncContextStrategy()},t.setAsyncContextStrategy=function(e){let t=n.getMainCarrier();n.getSentryCarrier(t).acs=e}},95068:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(94748),i=r(99056),a=r(66908),o=r(38398),s=r(76677),l=r(53440),u=r(86160),c=r(83592),d=r(65224),p=r(11661),f=r(16039),h=r(79691),m=r(14645),g=r(41291),_=r(80920),y=r(404),S=r(67648),E=r(40006),b=r(40330),T=r(58232),v=r(15793),I=r(86652),A="__SENTRY_SUPPRESS_TRACING__";function R(e,t){let r=C();return r.withActiveSpan?r.withActiveSpan(e,t):a.withScope(r=>(m._setSpanForScope(r,e||void 0),t(r)))}function O(e){return a.withScope(t=>(t.setPropagationContext({traceId:f.generateTraceId(),sampleRand:h.safeMathRandom()}),o.DEBUG_BUILD&&u.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),R(null,e)))}function w({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i;if(!d.hasSpansEnabled()){let n=new b.SentryNonRecordingSpan;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...y.getDynamicSamplingContextFromSpan(n)};y.freezeDscOnSpan(n,e)}return n}let o=a.getIsolationScope();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[A]&&g.spanIsSampled(e),s=o?new T.SentrySpan({...r,parentSpanId:n,traceId:i,sampled:o}):new b.SentryNonRecordingSpan({traceId:i});g.addChildSpanToSpan(e,s);let l=a.getClient();return l&&(l.emit("spanStart",s),r.endTimestamp&&l.emit("spanEnd",s)),s}(e,n,t),g.addChildSpanToSpan(e,i);else if(e){let r=y.getDynamicSamplingContextFromSpan(e),{traceId:a,spanId:o}=e.spanContext(),s=g.spanIsSampled(e);i=P({traceId:a,parentSpanId:o,...t},n,s),y.freezeDscOnSpan(i,r)}else{let{traceId:e,dsc:r,parentSpanId:a,sampled:s}={...o.getPropagationContext(),...n.getPropagationContext()};i=P({traceId:e,parentSpanId:a,...t},n,s),r&&y.freezeDscOnSpan(i,r)}return S.logSpanStart(i),I.setCapturedScopesOnSpan(i,n,o),i}function N(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let r={...t};return r.startTimestamp=g.spanTimeInputToSeconds(e.startTime),delete r.startTime,r}return t}function C(){let e=i.getMainCarrier();return n.getAsyncContextStrategy(e)}function P(e,t,r){let n=a.getClient(),i=n?.getOptions()||{},{name:l=""}=e,c={spanAttributes:{...e.attributes},spanName:l,parentSampled:r};n?.emit("beforeSampling",c,{decision:!1});let d=c.parentSampled??r,f=c.spanAttributes,h=t.getPropagationContext(),[m,g,_]=t.getScopeData().sdkProcessingMetadata[A]?[!1]:E.sampleSpan(i,{name:l,parentSampled:d,attributes:f,parentSampleRate:p.parseSampleRate(h.dsc?.sample_rate)},h.sampleRand),y=new T.SentrySpan({...e,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==g&&_?g:void 0,...f},sampled:m});return!m&&n&&(o.DEBUG_BUILD&&u.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",y),y}function k(e,t){if(t)return t;if(null===t)return;let r=m._getSpanForScope(e);if(!r)return;let n=a.getClient();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?g.getRootSpan(r):r}function M(e){return void 0!==e?t=>R(e,t):e=>e()}t.continueTrace=(e,t)=>{let r=i.getMainCarrier(),o=n.getAsyncContextStrategy(r);if(o.continueTrace)return o.continueTrace(e,t);let{sentryTrace:s,baggage:u}=e,c=a.getClient(),d=l.baggageHeaderToDynamicSamplingContext(u);return c&&!_.shouldContinueTrace(c,d?.org_id)?O(t):a.withScope(e=>{let r=_.propagationContextFromHeaders(s,u);return e.setPropagationContext(r),m._setSpanForScope(e,void 0),t()})},t.startInactiveSpan=function(e){let t=C();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=N(e),{forceTransaction:n,parentSpan:i}=e;return(e.scope?t=>a.withScope(e.scope,t):void 0!==i?e=>R(i,e):e=>e())(()=>{let t=a.getCurrentScope(),o=k(t,i);return e.onlyIfParent&&!o?new b.SentryNonRecordingSpan:w({parentSpan:o,spanArguments:r,forceTransaction:n,scope:t})})},t.startNewTrace=O,t.startSpan=function(e,t){let r=C();if(r.startSpan)return r.startSpan(e,t);let n=N(e),{forceTransaction:i,parentSpan:o,scope:s}=e,l=s?.clone();return a.withScope(l,()=>M(o)(()=>{let r=a.getCurrentScope(),s=k(r,o),l=e.onlyIfParent&&!s?new b.SentryNonRecordingSpan:w({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return m._setSpanForScope(r,l),c.handleCallbackErrors(()=>t(l),()=>{let{status:e}=g.spanToJSON(l);l.isRecording()&&(!e||"ok"===e)&&l.setStatus({code:v.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{l.end()})}))},t.startSpanManual=function(e,t){let r=C();if(r.startSpanManual)return r.startSpanManual(e,t);let n=N(e),{forceTransaction:i,parentSpan:o,scope:s}=e,l=s?.clone();return a.withScope(l,()=>M(o)(()=>{let r=a.getCurrentScope(),s=k(r,o),l=e.onlyIfParent&&!s?new b.SentryNonRecordingSpan:w({parentSpan:s,spanArguments:n,forceTransaction:i,scope:r});return m._setSpanForScope(r,l),c.handleCallbackErrors(()=>t(l,()=>l.end()),()=>{let{status:e}=g.spanToJSON(l);l.isRecording()&&(!e||"ok"===e)&&l.setStatus({code:v.SPAN_STATUS_ERROR,message:"internal_error"})})}))},t.suppressTracing=function(e){let t=C();return t.suppressTracing?t.suppressTracing(e):a.withScope(t=>{t.setSDKProcessingMetadata({[A]:!0});let r=e();return t.setSDKProcessingMetadata({[A]:void 0}),r})},t.withActiveSpan=R},95599:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(23105),i=r(55111);function a(e){return e.includes("chat.completions")||e.includes("responses")?n.OPENAI_OPERATIONS.CHAT:e.includes("embeddings")?n.OPENAI_OPERATIONS.EMBEDDINGS:e.includes("conversations")?n.OPENAI_OPERATIONS.CHAT:e.split(".").pop()||"unknown"}function o(e,t,r,i){void 0!==t&&e.setAttributes({[n.OPENAI_USAGE_PROMPT_TOKENS_ATTRIBUTE]:t,[n.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==r&&e.setAttributes({[n.OPENAI_USAGE_COMPLETION_TOKENS_ATTRIBUTE]:r,[n.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:r}),void 0!==i&&e.setAttributes({[n.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:i})}function s(e,t,r,i){e.setAttributes({[n.OPENAI_RESPONSE_ID_ATTRIBUTE]:t,[n.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t}),e.setAttributes({[n.OPENAI_RESPONSE_MODEL_ATTRIBUTE]:r,[n.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:r}),e.setAttributes({[n.OPENAI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*i).toISOString()})}t.addChatCompletionAttributes=function(e,t,r){if(s(e,t.id,t.model,t.created),t.usage&&o(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){let i=t.choices.map(e=>e.finish_reason).filter(e=>null!==e);if(i.length>0&&e.setAttributes({[n.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify(i)}),r){let r=t.choices.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();r.length>0&&e.setAttributes({[n.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}}},t.addConversationAttributes=function(e,t){let{id:r,created_at:i}=t;e.setAttributes({[n.OPENAI_RESPONSE_ID_ATTRIBUTE]:r,[n.GEN_AI_RESPONSE_ID_ATTRIBUTE]:r,[n.GEN_AI_CONVERSATION_ID_ATTRIBUTE]:r}),i&&e.setAttributes({[n.OPENAI_RESPONSE_TIMESTAMP_ATTRIBUTE]:new Date(1e3*i).toISOString()})},t.addEmbeddingsAttributes=function(e,t){e.setAttributes({[n.OPENAI_RESPONSE_MODEL_ATTRIBUTE]:t.model,[n.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:t.model}),t.usage&&o(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)},t.addResponsesApiAttributes=function(e,t,r){if(s(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[n.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]:JSON.stringify([t.status])}),t.usage&&o(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),r&&Array.isArray(t.output)&&t.output.length>
9730){let r=t.output.filter(e=>"object"==typeof e&&null!==e&&"function_call"===e.type);r.length>0&&e.setAttributes({[n.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(r)})}},t.buildMethodPath=function(e,t){return e?`${e}.${t}`:t},t.extractRequestParameters=function(e){let t={[n.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:e.model??"unknown"};"temperature"in e&&(t[n.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"top_p"in e&&(t[n.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.top_p),"frequency_penalty"in e&&(t[n.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=e.frequency_penalty),"presence_penalty"in e&&(t[n.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presence_penalty),"stream"in e&&(t[n.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=e.stream),"encoding_format"in e&&(t[n.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=e.encoding_format),"dimensions"in e&&(t[n.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=e.dimensions);let r="conversation"in e&&"string"==typeof e.conversation?e.conversation:"previous_response_id"in e&&"string"==typeof e.previous_response_id?e.previous_response_id:void 0;return r&&(t[n.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=r),t},t.getOperationName=a,t.getSpanOperation=function(e){return`gen_ai.${a(e)}`},t.isChatCompletionChunk=function(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion.chunk"===e.object},t.isChatCompletionResponse=function(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion"===e.object},t.isConversationResponse=function(e){return null!==e&&"object"==typeof e&&"object"in e&&"conversation"===e.object},t.isEmbeddingsResponse=function(e){return null!==e&&"object"==typeof e&&"object"in e&&"list"===e.object&&"string"==typeof e.model&&e.model.toLowerCase().includes("embedding")},t.isResponsesApiResponse=function(e){return null!==e&&"object"==typeof e&&"object"in e&&"response"===e.object},t.isResponsesApiStreamEvent=function(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.startsWith("response.")},t.setCommonResponseAttributes=s,t.setTokenUsageAttributes=o,t.shouldInstrument=function(e){return i.INSTRUMENTED_METHODS.includes(e)}},96315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolvePromiseWithTimeout",{enumerable:!0,get:function(){return i}});let n=r(99660);function i(e,t,r){return new Promise((r,i)=>{let a=!1;e.then(e=>{a=!0,r(e)}).catch(i),(0,n.requestIdleCallback)(()=>setTimeout(()=>{a||i(t)},3800))})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(12140),i=r(15004);function a(e,t){return(0,i.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,"/aistudio"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97248:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={HTTPAccessErrorStatus:function(){return i},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return u},getAccessFallbackHTTPStatus:function(){return l},isHTTPAccessFallbackError:function(){return s}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},a=new Set(Object.values(i)),o="NEXT_HTTP_ERROR_FALLBACK";function s(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&a.has(Number(r))}function l(e){return Number(e.digest.split(";")[1])}function u(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
973dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97251:(e,t,r)=>{"use strict";r.d(t,{L:()=>l,d:()=>s});var n=r(45936),i=r(71706);let a="_sentryScope",o="_sentryIsolationScope";function s(e,t,r){e&&((0,n.my)(e,o,function(e){try{let t=i.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(r)),(0,n.my)(e,a,t))}function l(e){return{scope:e[a],isolationScope:function(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}(e[o])}}},97284:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(85699),a={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient",instrumentLangGraph:"instrumentlanggraph",createLangChainCallbackHandler:"createlangchaincallbackhandler"},o=i.WINDOW;t.lazyLoadIntegration=async function e(e,t){var r;let s,l,u=a[e],c=o.Sentry=o.Sentry||{};if(!u)throw Error(`Cannot lazy load integration: ${e}`);let d=c[e];if("function"==typeof d&&!("_isShim"in d))return d;let p=(r=u,s=n.getClient(),l=s?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com",new URL(`/${n.SDK_VERSION}/${r}.min.js`,l).toString()),f=i.WINDOW.document.createElement("script");f.src=p,f.crossOrigin="anonymous",f.referrerPolicy="strict-origin",t&&f.setAttribute("nonce",t);let h=new Promise((e,t)=>{f.addEventListener("load",()=>e()),f.addEventListener("error",t)}),m=i.WINDOW.document.currentScript,g=i.WINDOW.document.body||i.WINDOW.document.head||m?.parentElement;if(g)g.appendChild(f);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await h}catch{throw Error(`Error when loading integration: ${e}`)}let _=c[e];if("function"!=typeof _)throw Error(`Could not load integration: ${e}`);return _}},97306:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(86160),a=r(6386),o=r(68671),s=r(13903);t.MIN_DELAY=100,t.START_DELAY=5e3,t.makeOfflineTransport=function(e){function t(...e){n.DEBUG_BUILD&&i.debug.log("[Offline]:",...e)}return r=>{let n,i=e(r);if(!r.createStore)throw Error("No `createStore` function was provided");let l=r.createStore(r),u=5e3;function c(e){n&&clearTimeout(n),n=s.safeUnref(setTimeout(async()=>{n=void 0;let e=await l.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),p(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function d(){n||(c(u),u=Math.min(2*u,36e5))}async function p(e,n=!1){if(!n&&a.envelopeContainsItemType(e,["replay_event","replay_recording"]))return await l.push(e),c(100),{};
973try{if(r.shouldSend&&await r.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await i.send(e),n=100;if(t){if(t.headers?.["retry-after"])n=o.parseRetryAfterHeader(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t}return c(n),u=5e3,t}catch(i){var s;if(await (s=u,!a.envelopeContainsItemType(e,["client_report"])&&(!r.shouldStore||r.shouldStore(e,i,s))))return n?await l.unshift(e):await l.push(e),d(),t("Error sending. Event queued.",i),{};throw i}}return r.flushAtStartup&&d(),{send:p,flush:e=>(void 0===e&&(u=5e3,c(100)),i.flush(e))}}}},97496:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(76953);t.vercelWaitUntil=function(e){if("string"!=typeof EdgeRuntime)return;let t=n.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],r=t?.get?.();r?.waitUntil&&r.waitUntil(e)}},97626:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(79700),i=r(51336),a=r(65262);class o{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,r=a.shouldProfileSession(e.getOptions());i.DEBUG_BUILD&&n.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!r&&i.DEBUG_BUILD&&n.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=n.uuid4(),this._client=e,this._sessionSampled=r,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e)}start(){if("trace"===this._lifecycleMode){i.DEBUG_BUILD&&n.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){i.DEBUG_BUILD&&n.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){i.DEBUG_BUILD&&n.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){i.DEBUG_BUILD&&n.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){i.DEBUG_BUILD&&n.debug.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let r=this._activeRootSpanIds.size;1===r&&(i.DEBUG_BUILD&&n.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,i.DEBUG_BUILD&&n.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),n.getGlobalScope().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){i.DEBUG_BUILD&&n.debug.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{i.DEBUG_BUILD&&n.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&n.getGlobalScope().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){i.DEBUG_BUILD&&n.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==n.getRootSpan(e))return;if(!e.isRecording()){i.DEBUG_BUILD&&n.debug.log("[Profiling] Discarding profile because root span was not sampled.");return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let r=this._activeRootSpanIds.size;1===r&&(i.DEBUG_BUILD&&n.debug.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${r}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let r=this._activeRootSpanIds.size;i.DEBUG_BUILD&&n.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${r}).`),0===r&&(this._collectCurrentChunk().catch(e=>{i.DEBUG_BUILD&&n.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,n.getGlobalScope().setContext("profile",{})}
973_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=a.startJSSelfProfile();if(!e){i.DEBUG_BUILD&&n.debug.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{i.DEBUG_BUILD&&n.debug.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){!this._rootSpanTimeouts.has(e)||(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(i.DEBUG_BUILD&&n.debug.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),r=a.createProfileChunkPayload(t,this._client,this._profilerId),o=a.validateProfileChunk(r);if("reason"in o){i.DEBUG_BUILD&&n.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",o.reason);return}this._sendProfileChunk(r),i.DEBUG_BUILD&&n.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){i.DEBUG_BUILD&&n.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client,r=n.getSdkMetadataForEnvelopeHeader(t.getSdkMetadata?.()),a=t.getDsn(),o=t.getOptions().tunnel,s=n.createEnvelope({event_id:n.uuid4(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!o&&a&&{dsn:n.dsnToString(a)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(s).then(null,e=>{i.DEBUG_BUILD&&n.debug.error("Error while sending profile chunk envelope:",e)})}}t.UIProfiler=o},97752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}static from(e,t=1e-4){let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(`${e}${r}`)%this.numBits;t.push(n)}return t}}},97941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return i}});let n=r(58885);function i(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},97959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(75591)._(r(14343)).default.createContext(null)},98119:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},98345:e=>{var t={156:function(e){var t,r,n,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=h,i.addListener=h,i.once=h,i.off=h,i.removeListener=h,i.removeAllListeners=h,i.emit=h,i.prependListener=h,i.prependOnceListener=h,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={exports:{}},o=!0;try{t[e](a,a.exports,n),o=!1}finally{o&&delete r[e]}return a.exports}n.ab="//",e.exports=n(156)},98473:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(53374),i=r(51045),a=r(75567);function o(e,t=100,s=Infinity){try{return function e(t,o,s=Infinity,l=Infinity,u=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[c,d]=u;if(null==o||["boolean","string"].includes(typeof o)||"number"==typeof o&&Number.isFinite(o))return o;let p=function(e,t){try{var i;let o;if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==r.g&&t===r.g)return"[Global]";if("u">typeof window&&t===window)return"[Window]";if("u">typeof document&&t===document)return"[Document]";
973if(n.isVueViewModel(t))return a.getVueInternalName(t);if(n.isSyntheticEvent(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${a.getFunctionName(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let s=(i=t,o=Object.getPrototypeOf(i),o?.constructor?o.constructor.name:"null prototype");if(/^HTML(\w*)Element$/.test(s))return`[HTMLElement: ${s}]`;return`[object ${s}]`}catch(e){return`**non-serializable** (${e})`}}(t,o);if(!p.startsWith("[object "))return p;if(o.__sentry_skip_normalization__)return o;let f="number"==typeof o.__sentry_override_normalization_depth__?o.__sentry_override_normalization_depth__:s;if(0===f)return p.replace("object ","");if(c(o))return"[Circular ~]";if(o&&"function"==typeof o.toJSON)try{let t=o.toJSON();return e("",t,f-1,l,u)}catch{}let h=Array.isArray(o)?[]:{},m=0,g=i.convertToPlainObject(o);for(let t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(m>=l){h[t]="[MaxProperties ~]";break}let r=g[t];h[t]=e(t,r,f-1,l,u),m++}return d(o),h}("",e,t,s)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}t.normalize=o,t.normalizeToSize=function e(t,r=3,n=102400){let i=o(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i},t.normalizeUrlToBase=function(e,t){let r=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),n=e;try{n=decodeURI(e)}catch{}return n.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(RegExp(`(file://)?/*${r}/*`,"ig"),"app:///")}},98815:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(8305),i=r(25601),a=r(8788),o=r(38646),s=r(42686),l=r(98473),u=r(62098),c=r(62151),d=r(35822),p=r(62327);function f(e,t){let{environment:r,release:i,dist:a,maxValueLength:o}=t;e.environment=e.environment||r||n.DEFAULT_ENVIRONMENT,!e.release&&i&&(e.release=i),!e.dist&&a&&(e.dist=a);let s=e.request;s?.url&&o&&(s.url=c.truncate(s.url,o)),o&&e.exception?.values?.forEach(e=>{e.value&&(e.value=c.truncate(e.value,o))})}function h(e,t){let r=o.getFilenameToDebugIdMap(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}function m(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}let g=["user","level","extra","contexts","tags","fingerprint","propagationContext"];t.applyClientOptions=f,t.applyDebugIds=h,t.applyDebugMeta=m,t.parseEventHintOrCaptureContext=function(e){if(e){var t;return(t=e)instanceof a.Scope||"function"==typeof t||Object.keys(e).some(e=>g.includes(e))?{captureContext:e}:e}},t.prepareEvent=function(e,t,r,n,o,c){var g,_;let{normalizeDepth:y=3,normalizeMaxBreadth:S=1e3}=e,E={...t,event_id:t.event_id||r.event_id||s.uuid4(),timestamp:t.timestamp||p.dateTimestampInSeconds()},b=r.integrations||e.integrations.map(e=>e.name);f(E,e),g=E,(_=b).length>0&&(g.sdk=g.sdk||{},g.sdk.integrations=[...g.sdk.integrations||[],..._]),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&h(E,e.stackParser);let T=function(e,t){if(!t)return e;let r=e?e.clone():new a.Scope;return r.update(t),r}(n,r.captureContext);r.mechanism&&s.addExceptionMechanism(E,r.mechanism);let v=o?o.getEventProcessors():[],I=u.getCombinedScopeData(c,T),A=[...r.attachments||[],...I.attachments];A.length&&(r.attachments=A),u.applyScopeDataToEvent(E,I);let R=[...v,...I.eventProcessors];return(r.data&&!0===r.data.__sentry__?d.resolvedSyncPromise(E):i.notifyEventProcessors(R,E,r)).then(e=>(e&&m(e),"number"==typeof y&&y>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:l.normalize(e.data,t,r)}}))},...e.user&&{user:l.normalize(e.user,t,r)},...e.contexts&&{contexts:l.normalize(e.contexts,t,r)},...e.extra&&{extra:l.normalize(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=l.n
973ormalize(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:l.normalize(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=l.normalize(e.contexts.flags,3,r)),n}(e,y,S):e)}},99056:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(5490),i=r(76953);function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.SDK_VERSION,t[n.SDK_VERSION]=t[n.SDK_VERSION]||{}}t.getGlobalSingleton=function(e,t,r=i.GLOBAL_OBJ){let a=r.__SENTRY__=r.__SENTRY__||{},o=a[n.SDK_VERSION]=a[n.SDK_VERSION]||{};return o[e]||(o[e]=t())},t.getMainCarrier=function(){return a(i.GLOBAL_OBJ),i.GLOBAL_OBJ},t.getSentryCarrier=a},99660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return i}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99875:(e,t,r)=>{Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let n=r(38398),i=r(46298),a=r(86160),o=r(29443),s=r(42686),l=r(62151),u=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],c=i.defineIntegration((e={})=>{let t;return{name:"EventFilters",setup(r){t=p(e,r.getOptions())},processEvent:(r,i,u)=>(t||(t=p(e,u.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&l.stringMatchesSomePattern(r,t)}(e,t.ignoreTransactions))return n.DEBUG_BUILD&&a.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
974Event: ${s.getEventDescription(e)}`),!0}else{var r,i,u;if(r=e,i=t.ignoreErrors,i?.length&&o.getPossibleEventMessages(r).some(e=>l.stringMatchesSomePattern(e,i)))return n.DEBUG_BUILD&&a.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
975Event: ${s.getEventDescription(e)}`),!0;if(u=e,u.exception?.values?.length&&!u.message&&!u.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return n.DEBUG_BUILD&&a.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.
976Event: ${s.getEventDescription(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=f(e);return!!r&&l.stringMatchesSomePattern(r,t)}(e,t.denyUrls))return n.DEBUG_BUILD&&a.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.
977Event: ${s.getEventDescription(e)}.
978Url: ${f(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=f(e);return!r||l.stringMatchesSomePattern(r,t)}(e,t.allowUrls))return n.DEBUG_BUILD&&a.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.
979Event: ${s.getEventDescription(e)}.
980Url: ${f(e)}`),!0}return!1}(r,t)?r:null)}}),d=i.defineIntegration((e={})=>({...c(e),name:"InboundFilters"}));function p(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:u],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function f(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return n.DEBUG_BUILD&&a.debug.error(`Cannot extract url for event ${s.getEventDescription(e)}`),null}}t.eventFiltersIntegration=c,t.inboundFiltersIntegration=d}},e=>{e.O(0,[6593],()=>e(e.s=58315)),_N_E=e.O()}]);

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