PageSourceSearch

https://videohighlight.com/_next/static/chunks/6170.fe38147a8737a82b.js

js videohighlight.com collected 2026-09-25 14:11:03 UTC 376,243 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6170],{5450:(e,t,n)=>{n.d(t,{SY:()=>i,n9:()=>s});var r=n(72901);function o(e,t){const{value:n,unit:r}="object"==typeof(o=e)&&null!=o&&!Array.isArray(o)&&Object.keys(o).includes("value")?e:{value:e,unit:void 0};var o;const i=function(e){const 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),s=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...s};if(!t||"skip-undefined"===t&&void 0===n)return;let a="";try{a=JSON.stringify(n)??""}catch{}return{value:a,type:"string",...s}}function i(e,t=!1){const n={};for(const[r,i]of Object.entries(e??{})){const e=o(i,t);e&&(n[r]=e)}return n}function s(e){if(!e)return 0;let t=0;for(const[n,o]of Object.entries(e)){t+=2*n.length,t+=2*o.type.length,t+=2*(o.unit?.length??0);const e=o.value;Array.isArray(e)?t+=a(e[0])*e.length:(0,r.sO)(e)?t+=a(e):t+=100}return t}function a(e){return"string"==typeof e?2*e.length:"boolean"==typeof e?4:"number"==typeof e?8:0}},5479:(e,t,n)=>{n.r(t),n.d(t,{BrowserClient:()=>wt,ErrorBoundary:()=>bf,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>ba,OpenFeatureIntegrationHook:()=>zd,Profiler:()=>hf,SDK_VERSION:()=>a.M,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>I.uT,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>I.JD,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>I.sy,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>I.i_,Scope:()=>ka.H,WINDOW:()=>_t,addBreadcrumb:()=>Nt.Z,addEventProcessor:()=>u.SA,addIntegration:()=>g,breadcrumbsIntegration:()=>Yt,browserApiErrorsIntegration:()=>Ft,browserProfilingIntegration:()=>Od,browserSessionIntegration:()=>Jt,browserTracingIntegration:()=>si,buildLaunchDarklyFlagUsedHandler:()=>Ld,captureConsoleIntegration:()=>Ta,captureEvent:()=>u.r,captureException:()=>u.Cp,captureFeedback:()=>Si,captureMessage:()=>u.wd,captureReactException:()=>Kd,captureRequestError:()=>dm,captureRouterTransitionStart:()=>ei,captureSession:()=>u.J5,captureUnderscoreErrorException:()=>fm,chromeStackLineParser:()=>xn,close:()=>u.VN,consoleLoggingIntegration:()=>Ia,contextLinesIntegration:()=>op,continueTrace:()=>gr,createConsolaReporter:()=>Aa,createLangChainCallbackHandler:()=>cu,createReduxEnhancer:()=>xf,createTransport:()=>Oe,createUserFeedbackEnvelope:()=>ql,cultureContextIntegration:()=>Qt,dedupeIntegration:()=>N,defaultRequestInstrumentationOptions:()=>yo,defaultStackLineParsers:()=>Mn,defaultStackParser:()=>Ln,diagnoseSdkConnectivity:()=>qd,elementTimingIntegration:()=>Wp,endSession:()=>u.ky,eventFiltersIntegration:()=>S,eventFromException:()=>pt,eventFromMessage:()=>dt,exceptionFromError:()=>ot,extraErrorDataIntegration:()=>lu,featureFlagsIntegration:()=>yu,feedbackAsyncIntegration:()=>ya,feedbackIntegration:()=>va,feedbackSyncIntegration:()=>va,flush:()=>u.bX,forceLoad:()=>Fn,functionToStringIntegration:()=>R,geckoStackLineParser:()=>Rn,getActiveSpan:()=>P.Bk,getClient:()=>p.KU,getCurrentScope:()=>p.o5,getDefaultIntegrations:()=>Yn,getFeedback:()=>qi,getGlobalScope:()=>p.m6,getIsolationScope:()=>p.rm,getReplay:()=>fp.M,getRootSpan:()=>P.zU,getSpanDescendants:()=>P.xO,getSpanStatusFromHttpCode:()=>sr.AJ,getTraceData:()=>uo,globalHandlersIntegration:()=>an,graphqlClientIntegration:()=>pp,growthbookIntegration:()=>Bd,httpClientIntegration:()=>Vl,httpContextIntegration:()=>fn,inboundFiltersIntegration:()=>w,init:()=>yi,instrumentAnthropicAiClient:()=>Ru,instrumentCreateReactAgent:()=>Mu,instrumentGoogleGenAIClient:()=>Hu,instrumentLangChainEmbeddings:()=>Ju,instrumentLangGraph:()=>Lu,instrumentOpenAiClient:()=>ol,instrumentOutgoingRequests:()=>vo,instrumentSupabaseClient:()=>ml,isBotUserAgent:()=>ko,isEnabled:()=>u.Ol,isInitialized:()=>u.Dp,lastEventId:()=>u.Q,launchDarklyIntegration:()=>Md,lazyLoadIntegration:()=>_a,linkedErrorsIntegration:()=>vn,logger:()=>r,makeBrowserOfflineTransport:()=>od,makeFetchTransport:()=>Un,makeMultiplexedTransport:()=>wa,metrics:()=>o,moduleMetadataIntegration:()=>$l,onLoad:()=>qn,openFeatureIntegration:()=>Dd,opera10StackLineParser:()=>On,opera11StackLineParser:()=>$n,parameterize:()=>_l,reactErrorHandler:()=>Gd,reactRouterV3BrowserTracingIntegration:()=>Ef,reactRouterV4BrowserTracingIntegration:()=>Pf,reactRouterV5BrowserTracingIntegration:()=>Af,reactRouterV6BrowserTracingIntegration:()=>Kh,reactRouterV7BrowserTracingIntegration:()=>Zh,registerSpanErrorInstrumentation:()=>Ar,registerWebWorker:()=>Jd,replayCanvasIntegration:()=>Hp,replayIntegration:()=>fp.w,reportPageLoaded:()=>Jp,reportingObserverIntegration:()=>Kl,rewriteFramesIntegration:()=>li,sendFeedback:()=>
1$i,setActiveSpanInBrowser:()=>Kp,setContext:()=>u.o,setConversationId:()=>u.Ji,setCurrentClient:()=>D,setExtra:()=>u.l7,setExtras:()=>u.cx,setHttpStatus:()=>sr.N8,setMeasurement:()=>er,setTag:()=>u.NA,setTags:()=>u.Wt,setUser:()=>u.gV,showReportDialog:()=>Hl,spanStreamingIntegration:()=>Xp,spanToBaggageHeader:()=>F.HW,spanToJSON:()=>P.et,spanToTraceHeader:()=>P.Qh,spotlightBrowserIntegration:()=>$d,startBrowserTracingNavigationSpan:()=>Co,startBrowserTracingPageLoadSpan:()=>Eo,startInactiveSpan:()=>Sm,startNewTrace:()=>vr,startSession:()=>u.J0,startSpan:()=>vm,startSpanManual:()=>bm,statsigIntegration:()=>Fd,supabaseIntegration:()=>gl,suppressTracing:()=>yr,tanstackRouterBrowserTracingIntegration:()=>Rf,thirdPartyErrorFilterIntegration:()=>Ml,uiProfiler:()=>Fl,unleashIntegration:()=>jd,updateSpanName:()=>P.zQ,useProfiler:()=>gf,viewHierarchyIntegration:()=>dp,webWorkerIntegration:()=>Hd,winjsStackLineParser:()=>Pn,withActiveSpan:()=>_r,withErrorBoundary:()=>Sf,withIsolationScope:()=>p.rB,withProfiler:()=>mf,withScope:()=>p.v4,withSentryConfig:()=>bi,withSentryReactRouterV6Routing:()=>Qh,withSentryReactRouterV7Routing:()=>em,withSentryRouting:()=>$f,withServerActionInstrumentation:()=>wm,withStreamedSpan:()=>q,wrapApiHandlerWithSentryVercelCrons:()=>Tm,wrapAppGetInitialPropsWithSentry:()=>Rm,wrapCreateBrowserRouterV6:()=>Vh,wrapCreateBrowserRouterV7:()=>tm,wrapCreateMemoryRouterV6:()=>Xh,wrapCreateMemoryRouterV7:()=>nm,wrapDocumentGetInitialPropsWithSentry:()=>Im,wrapErrorGetInitialPropsWithSentry:()=>Pm,wrapGenerationFunctionWithSentry:()=>Am,wrapGetInitialPropsWithSentry:()=>Om,wrapGetServerSidePropsWithSentry:()=>Nm,wrapGetStaticPropsWithSentry:()=>$m,wrapMiddlewareWithSentry:()=>Mm,wrapPageComponentWithSentry:()=>Dm,wrapRouteHandlerWithSentry:()=>zm,wrapServerComponentWithSentry:()=>jm,wrapUseRoutesV6:()=>Gh,wrapUseRoutesV7:()=>rm,zodErrorsIntegration:()=>Bl});var r={};n.r(r),n.d(r,{debug:()=>Sl,error:()=>Tl,fatal:()=>xl,fmt:()=>yl,info:()=>wl,trace:()=>bl,warn:()=>kl});var o={};n.r(o),n.d(o,{count:()=>Cl,distribution:()=>Il,gauge:()=>Rl});var i=n(12848),s=n(10215),a=n(35087);function c(e,t,n=[t],r="npm"){const o=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};o.name||(o.name=`sentry.javascript.${t}`,o.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:a.M})),o.version=a.M)}var u=n(80398),l=n(75623),p=n(34181);const d=[];function f(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r)}function h(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function m(e,t,n){if(n[t.name])l.T&&s.Yz.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,d.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),d.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{const r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),l.T&&s.Yz.log(`Integration installed: ${t.name}`)}}function g(e){const t=(0,p.KU)();t?t.addIntegration(e):l.T&&s.Yz.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function _(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}var y=n(96021),v=n(65824);const b=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],S=(e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=k(e,r)},processEvent(n,r,o){if(!t){const n=o.getOptions();t=k(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&(0,v.Xr)(n,t)}(e,t.ignoreTransactions))return l.T&&s.Yz.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,y.$X)(e)}`),!0}else{if(function(e,t){return!!t?.length&&_(e).some(e=>(0,v.Xr)(e,t))}(e,t.ignoreErrors))return l.T&&s.Yz.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,y.$X)(e)}`),!0;if(function(e){return!!e.exception?.values?.length&&(!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return l.T&&s.Yz.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${(0,y.$X)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=T(e);return!!n&&(0,v.Xr)(n,t)}(e,t.denyUrls))return l.T&&s.Yz.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,y.$X)(e)}.\nUrl: ${T(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=T(e);return!n||(0,v.Xr)(n,t)}(e,t.allowUrls))return l.T&&s.Yz.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,y.$X)(e)}.\nUrl: ${T(e)}`),!0}return!1}(n,t)?null:n}}},w=(e={})=>({...S(e),name:"InboundFilters"});function k(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:b],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function T(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return l.T&&s.Yz.error(`Cannot extract url for event ${(0,y.$X)(e)}`),null}}var x=n(33782);let E;const C=new WeakMap,R=()=>({name:"FunctionToString",setupOnce(){E=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,x.sp)(this),n=C.has((0,p.KU)())&&void 0!==t?t:this;return E.apply(n,e)}}catch{}},setup(e){C.set(e,!0)}});var I=n(71366),P=n(19982);const A=()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=(0,p.o5)().getScopeData(),n=(0,p.rm)().getScopeData(),r=t.conversationId||n.conversationId;if(r){const{op:t,data:n,description:o}=(0,P.et)(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!o?.startsWith("ai."))return;e.setAttribute(I.Fy,r)}})}});var O=n(42360);const N=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!M(e,t)&&!!$(e,t))))}(e,t)||!!function(e,t){const n=L(t),r=L(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!M(e,t)&&!!$(e,t)))}(e,t))}(t,e))return l.T&&s.Yz.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function $(e,t){let n=(0,O.RV)(e),r=(0,O.RV)(t);if(!n&&!r)return!0;
1if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function M(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function L(e){return e.exception?.values?.[0]}function D(e){(0,p.o5)().setClient(e)}var z=n(9514);const j="7";function U(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Y(e,t,n){return t||`${function(e){return`${U(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:j};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}var B=n(49988),F=n(54891);function q(e){return(0,x.my)(e,"_streamed",!0),e}function H(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}var W=n(92029);function J(e){s.Yz.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function K(e,t){if(!t?.length)return!1;for(const n of t){if(V(n)){if(e.description&&(0,v._c)(e.description,n))return l.T&&J(e),!0;continue}const t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;const r=!n.name||e.description&&(0,v._c)(e.description,n.name),o=!n.op||e.op&&(0,v._c)(e.op,n.op),i=!n.attributes||Object.entries(n.attributes).every(([t,n])=>{return r=e.attributes?.[t],o=n,"string"==typeof r&&("string"==typeof o||o instanceof RegExp)?(0,v._c)(r,o):Array.isArray(r)&&Array.isArray(o)?r.length===o.length&&r.every((e,t)=>e===o[t]):r===o;var r,o});if(r&&o&&i)return l.T&&J(e),!0}return!1}function G(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function V(e){return"string"==typeof e||e instanceof RegExp}
1var X=n(5450),Q=n(56533),Z=n(72901),ee=n(85587),te=n(81648),ne=n(87500);const re="sentry.timestamp.sequence";let oe,ie=0;function se(e){const t=Math.floor(1e3*e);void 0!==oe&&t!==oe&&(ie=0);const n=ie;return ie++,oe=t,{key:re,value:{value:n,type:"integer"}}}function ae(e,t){return t?(0,p.v4)(t,()=>{const n=(0,P.Bk)(),r=n?(0,P.kX)(n):(0,p.vn)(t);return[n?(0,F.k1)(n):(0,F.ao)(e,t),r]}):[void 0,void 0]}const ce={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};var ue=n(36693);function le(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,ue.B)()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}const pe=100;function de(e,t,n,r=!0){!n||e[t]&&!r||(e[t]=n)}function fe(e,t){const n=_e(),r=ge(e);void 0===r?n.set(e,[t]):r.length>=pe?(me(e,r),n.set(e,[t])):n.set(e,[...r,t])}function he(e,t=(0,p.o5)(),n=fe){const r=t?.getClient()??(0,p.KU)();if(!r)return void(l.T&&s.Yz.warn("No client available to capture log."));const{release:o,environment:i,enableLogs:a=!1,beforeSendLog:c}=r.getOptions();if(!a)return void(l.T&&s.Yz.warn("logging option not enabled, log will not be captured."));const[,u]=ae(r,t),d={...e.attributes},{user:{id:f,email:h,username:m},attributes:g={}}=(0,ee.Om)((0,p.rm)(),t);de(d,"user.id",f,!1),de(d,"user.email",h,!1),de(d,"user.name",m,!1),de(d,"sentry.release",o),de(d,"sentry.environment",i);const{name:_,version:y}=r.getSdkMetadata()?.sdk??{};de(d,"sentry.sdk.name",_),de(d,"sentry.sdk.version",y);const v=r.getIntegrationByName("Replay"),b=v?.getReplayId(!0);de(d,"sentry.replay_id",b),b&&"buffer"===v?.getRecordingMode()&&de(d,"sentry._internal.replay_is_buffering",!0);const S=e.message;if((0,Z.NF)(S)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=S;t?.length&&(d["sentry.message.template"]=e),t.forEach((e,t)=>{d[`sentry.message.parameter.${t}`]=e})}const w=(0,te.f)(t);de(d,"sentry.trace.parent_span_id",w?.spanContext().spanId);const k={...e,attributes:d};r.emit("beforeCaptureLog",k);const T=c?(0,s.pq)(()=>c(k)):k;if(!T)return r.recordDroppedEvent("before_send","log_item",1),void(l.T&&s.Yz.warn("beforeSendLog returned null, log will not be captured."));const{level:x,message:E,attributes:C={},severityNumber:R}=T,I=(0,ne.zf)(),P=se(I);n(r,{timestamp:I,level:x,body:E,trace_id:u?.trace_id,severity_number:R??ce[x],attributes:{...(0,X.SY)(g),...(0,X.SY)(C,!0),[P.key]:P.value}}),r.emit("afterCaptureLog",T)}function me(e,t){const n=t??ge(e)??[];if(0===n.length)return;const r=e.getOptions(),o=function(e,t,n,r,o){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=(0,z.SB)(r)),(0,W.h4)(i,[le(e,o)])}(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);_e().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function ge(e){return _e().get(e)}function _e(){return(0,Q.BY)("clientToLogBufferMap",()=>new WeakMap)}function ye(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,ue.B)()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}const ve=1e3;function be(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function Se(e,t){const n=Te(),r=ke(e);void 0===r?n.set(e,[t]):r.length>=ve?(we(e,r),n.set(e,[t])):n.set(e,[...r,t])}function we(e,t){const n=t??ke(e)??[];if(0===n.length)return;const r=e.getOptions(),o=function(e,t,n,r,o){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=(0,z.SB)(r)),(0,W.h4)(i,[ye(e,o)])}(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Te().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function ke(e){return Te().get(e)}function Te(){return(0,Q.BY)("clientToMetricBufferMap",()=>new WeakMap)}var xe=n(19125),Ee=n(86447);function Ce(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}const Re=Symbol.for("SentryBufferFullError");function Ie(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return(0,Ee.xg)(Re);const o=r();return t.add(o),o.then(()=>n(o),()=>n(o)),o},drain:function(e){if(!t.size)return(0,Ee.XW)(!0);const n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;const r=[n,new Promise(t=>Ce(setTimeout(()=>t(!1),e)))];return Promise.race(r)}}}var Pe=n(48694);const Ae=64;function Oe(e,t,n=Ie(e.bufferSize||Ae)){let r={};return{send:function(o){const i=[];if((0,W.yH)(o,(t,n)=>{const o=(0,W.zk)(n);(0,Pe.Jz)(r,o)?e.recordDroppedEvent("ratelimit_backoff",o):i.push(t)}),0===i.length)return Promise.resolve({});const a=(0,W.h4)(o[0],i),c=t=>{(0,W.hP)(a,["client_report"])?l.T&&s.Yz.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`):(0,W.yH)(a,(n,r)=>{e.recordDroppedEvent(t,(0,W.zk)(r))})};return n.add(()=>t({body:(0,W.bN)(a)}).then(e=>413===e.statusCode?(l.T&&s.Yz.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),c("send_error"),e):(l.T&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&s.Yz.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=(0,Pe.wq)(r,e),e),e=>{throw c("network_error"),l.T&&s.Yz.error("Encountered error running transport request:",e),e})).then(e=>e,e=>
1{if(e===Re)return l.T&&s.Yz.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}var Ne=n(72539),$e=n(31184),Me=n(63398),Le=n(86902);const De="Not capturing exception because it's already been captured.",ze="Discarded session because of missing or non-string release",je=Symbol.for("SentryInternalError"),Ue=Symbol.for("SentryDoNotSendEventError");function Ye(e){return{message:e,[je]:!0}}function Be(e){return{message:e,[Ue]:!0}}function Fe(e){return!!e&&"object"==typeof e&&je in e}function qe(e){return!!e&&"object"==typeof e&&Ue in e}function He(e,t,n,r,o){let i,s=0,a=!1;e.on(n,()=>{s=0,clearTimeout(i),a=!1}),e.on(t,t=>{s+=r(t),s>=8e5?o(e):a||(a=!0,i=Ce(setTimeout(()=>{o(e)},5e3)))}),e.on("flush",()=>{o(e)})}class We{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Ie(e.transportOptions?.bufferSize??Ae),e.dsn?this._dsn=(0,z.AD)(e.dsn):l.T&&s.Yz.warn("No DSN provided, client will not send events."),this._dsn){const t=Y(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&&He(this,"afterCaptureLog","flushLogs",Xe,me),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&He(this,"afterCaptureMetric","flushMetrics",Ve,we)}captureException(e,t,n){const r=(0,y.eJ)();if((0,y.GR)(e))return l.T&&s.Yz.log(De),r;const o={event_id:r,...t};return this._process(()=>this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n)).then(e=>e),"error"),o.event_id}captureMessage(e,t,n,r){const o={event_id:(0,y.eJ)(),...n},i=(0,Z.NF)(e)?e:String(e),s=(0,Z.sO)(e),a=s?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(()=>a.then(e=>this._captureEvent(e,o,r)),s?"unknown":"error"),o.event_id}captureEvent(e,t,n){const r=(0,y.eJ)();if(t?.originalException&&(0,y.GR)(t.originalException))return l.T&&s.Yz.log(De),r;const o={event_id:r,...t},i=e.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=Je(e.type);return this._process(()=>this._captureEvent(e,o,a||n,c),u),o.event_id}captureSession(e){this.sendSession(e),(0,xe.qO)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){me(this);const 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){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),m(this,e,this._integrations),t||h(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=(0,W.Cj)(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return e;const n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.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);const s=(0,W.n2)(e,o,r,t);delete e.sdkProcessingMetadata;const a=[{type:i},e];return(0,W.h4)(s,[a])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=(0,W.W3)(n,(0,W.bm)(e));this.sendEnvelope(n).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:n=B.U}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(l.T&&s.Yz.warn(ze));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(l.T&&s.Yz.warn(ze));e.release=e.release||t,e.environment=e.environment||n}
1this.emit("beforeSendSession",e);const r=function(e,t,n,r){const o=(0,W.Cj)(n),i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:(0,z.SB)(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,W.h4)(i,[s])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;l.T&&s.Yz.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return l.T&&s.Yz.error("Error while sending envelope:",e),{}}return l.T&&s.Yz.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&m(e,t,n)}),n}(this,e),h(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception?.values;if(o){r=!0,n=!1;for(const e of o)if(!1===e.mechanism?.handled){n=!0;break}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,xe.qO)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),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,n,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i?.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,Me.mG)(o,e,t,n,this,r).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,p.vn)(n)},...e.contexts};const r=(0,F.ao)(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=(0,p.o5)(),r=(0,p.rm)()){return l.T&&Ke(e)&&s.Yz.log(`Captured error event \`${_(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{l.T&&(qe(e)?s.Yz.log(e.message):Fe(e)?s.Yz.warn(e.message):s.Yz.warn(e))})}_processEvent(e,t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=Ge(e),a=Ke(e),c=`before send for type \`${e.type||"error"}\``,u=void 0===i?void 0:(0,$e.i)(i);if(a&&"number"==typeof u&&(0,Le.hY)()>u)return this.recordDroppedEvent("sample_rate","error"),(0,Ee.xg)(Be(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const l=Je(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",l),Be("An event processor returned `null`, will not send event.");if(!0===t.data?.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,ignoreSpans:s}=t,a=!H(t.beforeSendSpan)&&t.beforeSendSpan;let c=n;if(Ke(c)&&o)return o(c,r);if(Ge(c)){if(a||s){const t=function(e){const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[I.E1],exclusive_time:s?.[I.jG],measurements:e.measurements,is_segment:!0}}(c);if(s?.length&&K({description:t.description,op:t.op,attributes:t.data},s))return null;if(a){const e=a(t);e?c=(0,Ne.h)(n,{type:"transaction",timestamp:(u=e).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[I.E1]:u.profile_id},...u.exclusive_time&&{[I.jG]:u.exclusive_time}}}},measurements:u.measurements}):(0,P.xl)()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(s?.length&&K({description:e.description,op:e.op,attributes:e.data},s))G(n,e);else if(a){const n=a(e);n?t.push(n):((0,P.xl)(),t.push(e))}else t.push(e);const r=c.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),c.spans=t}}if(i){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(c,r)}}var u;return c}(this,o,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,Z.Qg)(e))return e.then(e=>{if(!(0,Z.Qd)(e)&&null!==e)throw Ye(n);return e},e=>{throw Ye(`${t} rejected with ${e}`)});if(!(0,Z.Qd)(e)&&null!==e)throw Ye(n);return e}(n,c)}).then(o=>{if(null===o){if(this.recordDroppedEvent("before_send",l),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw Be(`${c} returned \`null\`, will not send event.`)}const i=n.getSession()||r.getSession();if(a&&i&&this._updateSessionFromEvent(i,o),s){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const u=o.transaction_info;if(s&&u&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...u,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(qe(e)||Fe(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),Ye(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Re&&this.recordDroppedEvent("queue_overflow",t),e))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}})}_flushOutcomes(){l.T&&s.Yz.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(l.T&&s.Yz.log("No outcomes to send"));if(!this._dsn)return void(l.T&&s.Yz.log("No dsn provided, will not send outcomes"));l.T&&s.Yz.log("Sending outcomes:",e);const t=function(e,t){const n=[{type:"client_report"},{timestamp:(0,ne.lu)(),discarded_events:e}];return(0,W.h4)(t?{dsn:t}:{},[n])}(e,this._options.tunnel&&(0,z.SB)(this._dsn));this.sendEnvelope(t)}}function Je(e){return"replay_event"===e?"replay":e||"error"}function Ke(e){return void 0===e.type}function Ge(e){return"transaction"===e.type}function Ve(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+Qe(e.attributes)}function Xe(e){let t=0;return e.message&&(t+=2*e.message.length),t+Qe(e.attributes)}function Qe(e){if(!e)return 0;let t=0;
1return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Ze(e[0]):(0,Z.sO)(e)?t+=Ze(e):t+=100}),t}function Ze(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}var et=n(72736);function tt(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}var nt=n(83144);function rt(e){return function(e){return(0,Z.bJ)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__}(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function ot(e,t){const n=st(e,t),r={type:ut(t),value:lt(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function it(e,t){return{exception:{values:[ot(e,t)]}}}function st(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&at.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,o)}catch{}return[]}const at=/Minified React error #\d+;/i;function ct(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function ut(e){const t=e?.name;return!t&&ct(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function lt(e){const t=e?.message;return ct(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?rt(t.error):rt(e):"No error message"}function pt(e,t,n,r){const o=ft(e,t,n?.syntheticException||void 0,r);return(0,y.M6)(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),(0,Ee.XW)(o)}function dt(e,t,n="info",r,o){const i=ht(e,t,r?.syntheticException||void 0,o);return i.level=n,r?.event_id&&(i.event_id=r.event_id),(0,Ee.XW)(i)}function ft(e,t,n,r,o){let i;if((0,Z.T2)(t)&&t.error)return it(e,t.error);if((0,Z.BD)(t)||(0,Z.W6)(t)){const o=t;if("stack"in t)i=it(e,t);else{const t=o.name||((0,Z.BD)(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=ht(e,s,n,r),(0,y.gO)(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return(0,Z.bJ)(t)?it(e,t):(0,Z.Qd)(t)||(0,Z.xH)(t)?(i=function(e,t,n,r){const o=(0,p.KU)(),i=o?.getOptions().normalizeDepth,s=(a=t,Object.values(a).find(e=>e instanceof Error));var a;const c={__serialized__:(0,nt.cd)(t,i)};if(s)return{exception:{values:[ot(e,s)]},extra:c};const u={exception:{values:[{type:(0,Z.xH)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:mt(t,{isUnhandledRejection:r})}]},extra:c};if(n){const t=st(e,n);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}(e,t,n,o),(0,y.M6)(i,{synthetic:!0}),i):(i=ht(e,t,n,r),(0,y.gO)(i,`${t}`,void 0),(0,y.M6)(i,{synthetic:!0}),i)}function ht(e,t,n,r){const o={};if(r&&n){const r=st(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,y.M6)(o,{synthetic:!0})}if((0,Z.NF)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function mt(e,{isUnhandledRejection:t}){const n=(0,x.HF)(e),r=t?"promise rejection":"exception";return(0,Z.T2)(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:(0,Z.xH)(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var gt=n(50611);const _t=i.O;let yt=0;function vt(){return yt>0}function bt(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if((0,x.sp)(e))return e}catch{return e}const n=function(...n){try{const r=n.map(e=>bt(e,t));return e.apply(this,r)}catch(e){throw yt++,setTimeout(()=>{yt--}),(0,p.v4)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,y.gO)(e,void 0,void 0),(0,y.M6)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,u.Cp)(e)}),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,x.pO)(n,e),(0,x.my)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function St(){const e=(0,gt.$N)(),{referrer:t}=_t.document||{},{userAgent:n}=_t.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class wt extends We{constructor(e){const t=(n=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:_t.
1SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;c(t,"browser",["browser"],_t.SENTRY_SDK_SOURCE||(0,et.e)()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:r,sendClientReports:o,enableLogs:i,_experiments:s,enableMetrics:a}=this._options,u=a??s?.enableMetrics??!0;_t.document&&(o||i||u)&&_t.document.addEventListener("visibilitychange",()=>{"hidden"===_t.document.visibilityState&&(o&&this._flushOutcomes(),i&&me(this),u&&we(this))}),r&&this.on("beforeSendSession",tt)}eventFromException(e,t){return pt(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return dt(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}var kt=n(14566);function Tt(e){const t="console",n=(0,kt.s5)(t,e);return(0,kt.AS)(t,xt),n}function xt(){"console"in i.O&&s.Ow.forEach(function(e){e in i.O.console&&(0,x.GS)(i.O.console,e,function(t){return s.Z9[e]=t,function(...t){(0,kt.aj)("console",{args:t,level:e});const n=s.Z9[e];n?.apply(i.O.console,t)}})})}var Et=n(88757);function Ct(e,t){const n="fetch",r=(0,kt.s5)(n,e);return(0,kt.AS)(n,()=>Rt(void 0,t)),r}function Rt(e,t=!1){t&&!(0,Et.m7)()||(0,x.GS)(i.O,"fetch",function(t){return function(...n){const r=new Error,{method:o,url:s}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:At(t),method:Pt(n,"method")?String(n.method).toUpperCase():(0,Z.ks)(t)&&Pt(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:At(t),method:Pt(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:o,url:s},startTimestamp:1e3*(0,ne.zf)(),virtualError:r,headers:Ot(n)};return e||(0,kt.aj)("fetch",{...a}),t.apply(i.O,n).then(async t=>(e?e(t):(0,kt.aj)("fetch",{...a,endTimestamp:1e3*(0,ne.zf)(),response:t}),t),e=>{(0,kt.aj)("fetch",{...a,endTimestamp:1e3*(0,ne.zf)(),error:e}),(0,Z.bJ)(e)&&void 0===e.stack&&(e.stack=r.stack,(0,x.my)(e,"framesToPop",1));const t=(0,p.KU)(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(a.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:(0,x.my)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}function It(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4);let i=!0;for(;i;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(e),o&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}(t,()=>{(0,kt.aj)("fetch-body-resolved",{endTimestamp:1e3*(0,ne.zf)(),response:e})})}function Pt(e,t){return!!e&&"object"==typeof e&&!!e[t]}function At(e){return"string"==typeof e?e:e?Pt(e,"url")?e.url:e.toString?e.toString():"":""}function Ot(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,Z.ks)(t))return new Headers(t.headers)}catch{}}var Nt=n(36783),$t=n(72106);function Mt(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var Lt=n(71130),Dt=n(53213),zt=n(59123),jt=n(5681);const Ut="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Yt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&Tt(function(e){return function(t){if((0,p.KU)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(0,$t.t)(t.level),message:(0,v.gt)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,v.gt)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,Nt.Z)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(0,Dt.i)(function(e,t){return function(n){if((0,p.KU)()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,a="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>1024&&(Ut&&s.Yz.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=1024),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=(0,gt.Hd)(t,{keyAttrs:i,maxStringLength:a}),o=(0,gt.xE)(t)}catch{r="<unknown>"}if(0===r.length)return;const c={category:`ui.${n.name}`,message:r};o&&(c.data={"ui.component_name":o}),(0,Nt.Z)(c,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(0,zt.Mn)(function(e){return function(t){if((0,p.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[zt.Er];if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o,u={method:i,url:s,status_code:a},l={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:Mt(a)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),(0,Nt.Z)(d,l)}}(e)),t.fetch&&Ct(function(e){return function(t){if((0,p.KU)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;
1if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},i={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",i,o),(0,Nt.Z)(i,o)}else{const o=t.response,i={...t.fetchData,status_code:o?.status},s={input:t.args,response:o,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:Mt(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),(0,Nt.Z)(a,s)}}}(e)),t.history&&(0,jt._)(function(e){return function(t){if((0,p.KU)()!==e)return;let n=t.from,r=t.to;const o=(0,Lt.Dl)(_t.location.href);let i=n?(0,Lt.Dl)(n):void 0;const s=(0,Lt.Dl)(r);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),(0,Nt.Z)({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,p.KU)()===e&&(0,Nt.Z)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,y.$X)(t)},{event:t})}}(e))}}},Bt="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),Ft=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,x.GS)(_t,"setTimeout",qt),t.setInterval&&(0,x.GS)(_t,"setInterval",qt),t.requestAnimationFrame&&(0,x.GS)(_t,"requestAnimationFrame",Ht),t.XMLHttpRequest&&"XMLHttpRequest"in _t&&(0,x.GS)(XMLHttpRequest.prototype,"send",Wt);const e=t.eventTarget;e&&(Array.isArray(e)?e:Bt).forEach(e=>function(e,t){const n=_t,r=n[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,x.GS)(r,"addEventListener",function(n){return function(r,o,i){try{"function"==typeof o.handleEvent&&(o.handleEvent=bt(o.handleEvent,{mechanism:{data:{handler:(0,O.qQ)(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,r,o),n.apply(this,[r,bt(o,{mechanism:{data:{handler:(0,O.qQ)(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),(0,x.GS)(r,"removeEventListener",function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}}))}(e,t))}}};function qt(e){return function(...t){const n=t[0];return t[0]=bt(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,O.qQ)(e)}`}}),e.apply(this,t)}}function Ht(e){return function(t){return e.apply(this,[bt(t,{mechanism:{data:{handler:(0,O.qQ)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Wt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,x.GS)(n,e,function(t){const n={mechanism:{data:{handler:(0,O.qQ)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=(0,x.sp)(t);return r&&(n.mechanism.data.handler=(0,O.qQ)(r)),bt(t,n)})}),e.apply(this,t)}}const Jt=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===_t.document)return void(Ut&&s.Yz.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));(0,u.J0)({ignoreDuration:!0}),(0,u.J5)();const e=(0,p.rm)();let n=e.getUser();e.addScopeListener(e=>{const t=e.getUser();n?.id===t?.id&&n?.ip_address===t?.ip_address||((0,u.J5)(),n=t)}),"route"===t&&(0,jt._)(({from:e,to:t})=>{e!==t&&((0,u.J0)({ignoreDuration:!0}),(0,u.J5)())})}}};var Kt=n(37695);function Gt(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}const Vt=1,Xt=2,Qt=()=>({name:"CultureContext",preprocessEvent(e){const t=Zt();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=Zt();t&&Gt(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function Zt(){try{const e=_t.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let en=null;function tn(e){const t="error";(0,kt.s5)(t,e),(0,kt.AS)(t,nn)}function nn(){en=i.O.onerror,i.O.onerror=function(e,t,n,r,o){const i={column:r,error:o,line:n,msg:e,url:t};return(0,kt.aj)("error",i),!!en&&en.apply(this,arguments)},i.O.onerror.__SENTRY_INSTRUMENTED__=!0}let rn=null;function on(e){const t="unhandledrejection";(0,kt.s5)(t,e),(0,kt.AS)(t,sn)}function sn(){rn=i.O.onunhandledrejection,i.O.onunhandledrejection=function(e){const t=e;return(0,kt.aj)("unhandledrejection",t),!rn||rn.apply(this,arguments)},i.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const an=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){tn(t=>{const{stackParser:n,attachStacktrace:r}=pn();if((0,p.KU)()!==e||vt())return;const{msg:o,url:i,line:s,column:a,error:c}=t,l=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[];return 0===c.length&&c.push({colno:r,lineno:n,filename:dn(t)??(0,gt.$N)(),function:O.yF,in_app:!0}),e}(ft(n,c||o,void 0,r,!1),i,s,a);l.level="error",(0,u.r)(l,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),ln("onerror")),t.onunhandledrejection&&(function(e){on(t=>{const{stackParser:n,attachStacktrace:r}=pn();if((0,p.KU)()!==e||vt())return;const o=cn(t),i=(0,Z.sO)(o)?un(o):ft(n,o,void 0,r,!0);i.level="error",(0,u.r)(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),ln("onunhandledrejection"))}}};function cn(e){if((0,Z.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 un(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function ln(e){Ut&&s.Yz.log(`Global Handler attached: ${e}`)}function pn(){const e=(0,p.KU)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function dn(e){if((0,Z.Kg)(e)&&0!==e.length)return e.startsWith("data:")?`<${(0,Lt.zm)(e,!1)}>`:e}const fn=()=>({name:"HttpContext",preprocessEvent(e){if(!_t.navigator&&!_t.location&&!_t.document)return;const t=St(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!_t.navigator&&!_t.location&&!_t.document)return;const t=St();Gt(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}});
1function hn(e,t,n,r,o,i){if(!o.exception?.values||!i||!(0,Z.tH)(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=mn(e,t,r,i.originalException,n,o.exception.values,s,0))}function mn(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if((0,Z.tH)(r[o],Error)){_n(s,a,r);const i=e(t,r[o]),u=c.length;yn(i,o,u,a),c=mn(e,t,n,r[o],o,[i,...c],i,u)}return gn(r)&&r.errors.forEach((i,u)=>{if((0,Z.tH)(i,Error)){_n(s,a,r);const l=e(t,i),p=c.length;yn(l,`errors[${u}]`,p,a),c=mn(e,t,n,i,o,[l,...c],l,p)}}),c}function gn(e){return Array.isArray(e.errors)}function _n(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...gn(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function yn(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const vn=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){hn(ot,o.getOptions().stackParser,n,t,e,r)}}};function bn(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?O.yF:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Sn=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,wn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,kn=/\((\S*)(?::(\d+))(?::(\d+))\)/,Tn=/at (.+?) ?\(data:(.+?),/,xn=[30,e=>{const t=e.match(Tn);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Sn.exec(e);if(n){const[,e,t,r]=n;return bn(e,O.yF,+t,+r)}const r=wn.exec(e);if(r){if(0===r[2]?.indexOf("eval")){const e=kn.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=Dn(r[1]||O.yF,r[2]);return bn(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],En=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Cn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Rn=[50,e=>{const t=En.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Cn.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||O.yF;return[n,e]=Dn(n,e),bn(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],In=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Pn=[40,e=>{const t=In.exec(e);return t?bn(t[2],t[1]||O.yF,+t[3],t[4]?+t[4]:void 0):void 0}],An=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,On=[10,e=>{const t=An.exec(e);return t?bn(t[2],t[3]||O.yF,+t[1]):void 0}],Nn=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,$n=[20,e=>{const t=Nn.exec(e);return t?bn(t[5],t[3]||t[4]||O.yF,+t[1],+t[2]):void 0}],Mn=[xn,Rn],Ln=(0,O.gd)(...Mn),Dn=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:O.yF,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var zn=n(13132);const jn=40;function Un(e,t=(0,zn.qd)("fetch")){let n=0,r=0;return Oe(e,async function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const n=await t(e.url,s);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw(0,zn.y7)("fetch"),e}finally{n-=i,r--}},Ie(e.bufferSize||jn))}function Yn(e){return[w(),R(),A(),Ft(),Yt(),an(),vn(),N(),fn(),Qt(),Jt()]}function Bn(e={}){const t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===_t.window)return!1;const e=_t;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const n=(0,gt.$N)();return!(_t===_t.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}()&&(Ut&&(0,s.pq)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0);let n=null==e.defaultIntegrations?Yn():e.defaultIntegrations;const r={...e,enabled:!t&&e.enabled,stackParser:(0,O.vk)(e.stackParser||Ln),integrations:f({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Un};return function(e,t){!0===t.debug&&(l.T?s.Yz.enable():(0,s.pq)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,p.o5)().update(t.initialScope);const n=new e(t);return D(n),n.init(),n}(wt,r)}function Fn(){}function qn(e){e()}var Hn=n(3674);const Wn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var Jn=n(24709);function Kn(e){const t=e?Jn.env.NEXT_PUBLIC_VERCEL_ENV:Jn.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}function Gn(e){return(0,Z.bJ)(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FA
1LLBACK;404"].includes(e.digest)}function Vn(e){return(0,Z.bJ)(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}var Xn=n(89477),Qn=n(94848);class Zn{constructor(e={}){this._traceId=e.traceId||(0,Qn.e)(),this._spanId=e.spanId||(0,Qn.Z)(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:P.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,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function er(e,t,n,r=(0,P.Bk)()){const o=r&&(0,P.zU)(r);o&&(l.T&&s.Yz.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[I.xc]:t,[I.Sn]:n}))}function tr(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const n=e.attributes||{},r=n[I.Sn],o=n[I.xc];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})}),t}function nr(e){return"stream"===e.getOptions().traceLifecycle}class rr{constructor(e={}){this._traceId=e.traceId||(0,Qn.e)(),this._spanId=e.spanId||(0,Qn.Z)(),this._startTime=e.startTimestamp||(0,ne.zf)(),this._links=e.links,this._attributes={},this.setAttributes({[I.JD]:"manual",[I.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()}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(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?P.aO:P.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,P.cI)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(I.i_,"custom"),this}end(e){this._endTime||(this._endTime=(0,P.cI)(e),function(e){if(!l.T)return;const{description:t="< unknown name >",op:n="< unknown op >"}=(0,P.et)(e),{spanId:r}=e.spanContext(),o=`[Tracing] Finishing "${n}" ${(0,P.zU)(e)===e?"root ":""}span "${t}" with ID ${r}`;s.Yz.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[I.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,P.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[I.JD],profile_id:this._attributes[I.E1],exclusive_time:this._attributes[I.jG],measurements:tr(this._events),is_segment:this._isStandaloneSpan&&(0,P.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,P.zU)(this).spanContext().spanId:void 0,links:(0,P.uU)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,P.zU)(this),status:(0,P.i$)(this._status),attributes:this._attributes,links:(0,P.HQ)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){l.T&&s.Yz.log("[Tracing] Adding an event to span:",e);const r=or(t)?t:n||(0,ne.zf)(),o=or(t)?{}:t||{},i={name:e,time:(0,P.cI)(r),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,p.KU)();if(e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this)),!this._isStandaloneSpan&&this!==(0,P.zU)(this))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,p.KU)();if(!t)return;const n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){const n=(0,F.k1)(e[0]),r=t?.getDsn(),o=t?.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!o&&r&&{dsn:(0,z.SB)(r)}},{beforeSendSpan:s,ignoreSpans:a}=t?.getOptions()||{},c=a?.length?e.filter(e=>{const t=(0,P.et)(e);return!K({description:t.description,op:t.op,attributes:t.data},a)}):e,u=e.length-c.length;u&&t?.recordDroppedEvent("before_send","span",u);const l=s?e=>{const t=(0,P.et)(e);return(H(s)?t:s(t))||((0,P.xl)(),t)}:P.et,p=[];for(const e of c){const t=l(e);t&&p.push((0,W.y5)(t))}return(0,W.h4)(i,p)}([this],e)):(l.T&&s.Yz.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(e&&nr(e))return void e.emit("afterSegmentSpanEnd",this);const t=this._convertSpanToTransaction();t&&((0,Kt.L)(this).scope||(0,p.o5)()).captureEvent(t)}_convertSpanToTransaction(){if(!ir((0,P.et)(this)))return;this._name||(l.T&&s.Yz.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,Kt.L)(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=(0,P.xO)(this).filter(e=>e!==this&&!function(e){return e instanceof rr&&e.isStandaloneSpan()}(e)).map(e=>(0,P.et)(e)).filter(ir),o=this._attributes[I.i_];
1delete this._attributes[I.Le],r.forEach(e=>{delete e.data[I.Le]});const i={contexts:{trace:(0,P.Ck)(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,F.k1)(this)},request:n,...o&&{transaction_info:{source:o}}},a=tr(this._events);return a&&Object.keys(a).length&&(l.T&&s.Yz.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),i.measurements=a),i}}function or(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function ir(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}var sr=n(60258),ar=n(29299),cr=n(17725),ur=n(49999);function lr(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(e){throw t(e),n(),e}return function(e,t,n,r){return(0,Z.Qg)(e)?(0,ur.i)(e,e=>{n(),r(e)},e=>{t(e),n()}):(n(),r(e),e)}(o,t,n,r)}var pr=n(30217);const dr="__SENTRY_SUPPRESS_TRACING__";function fr(e,t){const n=wr();if(n.startSpan)return n.startSpan(e,t);const r=Sr(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return(0,p.v4)(a,()=>xr(i)(()=>{const n=(0,p.o5)(),s=Tr(n,i),a=(0,p.KU)(),c=e.onlyIfParent&&!s,u=c?new Zn:br({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return c&&a?.recordDroppedEvent("no_parent_span","span"),Er(u)&&s||(0,te.r)(n,u),lr(()=>t(u),()=>{const{status:e}=(0,P.et)(u);!u.isRecording()||e&&"ok"!==e||u.setStatus({code:sr.TJ,message:"internal_error"})},()=>{u.end()})}))}function hr(e,t){const n=wr();if(n.startSpanManual)return n.startSpanManual(e,t);const r=Sr(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return(0,p.v4)(a,()=>xr(i)(()=>{const n=(0,p.o5)(),s=Tr(n,i),a=e.onlyIfParent&&!s,c=a?new Zn:br({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return a&&(0,p.KU)()?.recordDroppedEvent("no_parent_span","span"),Er(c)&&s||(0,te.r)(n,c),lr(()=>t(c,()=>c.end()),()=>{const{status:e}=(0,P.et)(c);!c.isRecording()||e&&"ok"!==e||c.setStatus({code:sr.TJ,message:"internal_error"})})}))}function mr(e){const t=wr();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Sr(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>(0,p.v4)(e.scope,t):void 0!==o?e=>_r(o,e):e=>e())(()=>{const t=(0,p.o5)(),i=Tr(t,o),s=(0,p.KU)();return e.onlyIfParent&&!i?(s?.recordDroppedEvent("no_parent_span","span"),new Zn):br({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})})}const gr=(e,t)=>{const n=(0,Q.EU)(),r=(0,ar.h)(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:o,baggage:i}=e,s=(0,p.KU)(),a=(0,cr.yD)(i);return s&&!(0,pr.A9)(s,a?.org_id)?vr(t):(0,p.v4)(e=>{const n=(0,pr.kM)(o,i);return e.setPropagationContext(n),(0,te.r)(e,void 0),t()})};function _r(e,t){const n=wr();return n.withActiveSpan?n.withActiveSpan(e,t):(0,p.v4)(n=>((0,te.r)(n,e||void 0),t(n)))}function yr(e){const t=wr();return t.suppressTracing?t.suppressTracing(e):(0,p.v4)(t=>{t.setSDKProcessingMetadata({[dr]:!0});const n=e();return t.setSDKProcessingMetadata({[dr]:void 0}),n})}function vr(e){const t=wr();return t.startNewTrace?t.startNewTrace(e):(0,p.v4)(t=>(t.setPropagationContext({traceId:(0,Qn.e)(),sampleRand:(0,Le.hY)()}),l.T&&s.Yz.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),_r(null,e)))}function br({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!(0,Xn.f)()){const r=new Zn;if(n||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,F.k1)(r)};(0,F.LZ)(r,e)}return r}const o=(0,p.KU)();if(function(e,t){const n=e?.getOptions().ignoreSpans;return!!(e&&nr(e)&&n?.length)&&K({description:t.name||"",op:t.attributes?.[I.uT]||t.op,attributes:t.attributes},n)}(o,t))return Cr(r)||o?.recordDroppedEvent("ignored","span"),new Zn({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});const i=(0,p.rm)();let a;if(e&&!n)a=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=Cr(t),s=!i&&(0,P.pK)(e),a=s?new rr({...n,parentSpanId:r,traceId:o,sampled:s}):new Zn({traceId:o});(0,P.Hu)(e,a);const c=(0,p.KU)();return c?(nr(c)&&a instanceof Zn&&(e instanceof Zn&&e.dropReason?(a.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,"span")):i||(a.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",a),n.endTimestamp&&(c.emit
1("spanEnd",a),c.emit("afterSpanEnd",a)),a):a}(e,r,t),(0,P.Hu)(e,a);else if(e){const n=(0,F.k1)(e),{traceId:o,spanId:i}=e.spanContext(),s=(0,P.pK)(e);a=kr({traceId:o,parentSpanId:i,...t},r,s),(0,F.LZ)(a,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:s}={...i.getPropagationContext(),...r.getPropagationContext()};a=kr({traceId:e,parentSpanId:o,...t},r,s),n&&(0,F.LZ)(a,n)}return function(e){if(!l.T)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,P.et)(e),{spanId:o}=e.spanContext(),i=(0,P.pK)(e),a=(0,P.zU)(e),c=a===e,u=`[Tracing] Starting ${i?"sampled":"unsampled"} ${c?"root ":""}span`,p=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&p.push(`parent ID: ${r}`),!c){const{op:e,description:t}=(0,P.et)(a);p.push(`root ID: ${a.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}s.Yz.log(`${u}\n  ${p.join("\n  ")}`)}(a),(0,Kt.d)(a,r,i),a}function Sr(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=(0,P.cI)(e.startTime),delete n.startTime,n}return t}function wr(){const e=(0,Q.EU)();return(0,ar.h)(e)}function kr(e,t,n){const r=(0,p.KU)(),o=r?.getOptions()||{},{name:i=""}=e,a={spanAttributes:{...e.attributes},spanName:i,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});const c=a.parentSampled??n,u=a.spanAttributes,d=t.getPropagationContext(),f=Cr(t),[h,m,g]=f?[!1]:function(e,t,n){if(!(0,Xn.f)(e))return[!1];let r,o;"function"==typeof e.tracesSampler?(o=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),r=!0):void 0!==t.parentSampled?o=t.parentSampled:void 0!==e.tracesSampleRate&&(o=e.tracesSampleRate,r=!0);const i=(0,$e.i)(o);if(void 0===i)return l.T&&s.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(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return l.T&&s.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,i,r];const a=n<i;return a||l.T&&s.Yz.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[a,i,r]}(o,{name:i,parentSampled:c,attributes:u,parentSampleRate:(0,$e.i)(d.dsc?.sample_rate)},d.sampleRand),_=new rr({...e,attributes:{[I.i_]:"custom",[I.sy]:void 0!==m&&g?m:void 0,...u},sampled:h});return h||!r||f||(l.T&&s.Yz.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate",nr(r)?"span":"transaction")),r&&r.emit("spanStart",_),_}function Tr(e,t){if(t)return t;if(null===t)return;const n=(0,te.f)(e);if(!n)return;const r=(0,p.KU)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,P.zU)(n):n}function xr(e){return void 0!==e?t=>_r(e,t):e=>e()}function Er(e){return e instanceof Zn&&"ignored"===e.dropReason}function Cr(e){return!0===e.getScopeData().sdkProcessingMetadata[dr]}const Rr={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function Ir(e,t={}){const n=new Map;let r,o=!1,i="externalFinish",a=!t.disableAutoFinish;const c=[],{idleTimeout:u=Rr.idleTimeout,finalTimeout:d=Rr.finalTimeout,childSpanTimeout:f=Rr.childSpanTimeout,beforeSpanEnd:h,trimIdleSpanEndTimestamp:m=!0}=t,g=(0,p.KU)();if(!g||!(0,Xn.f)()){const e=new Zn,t={sample_rate:"0",sampled:"false",...(0,F.k1)(e)};return(0,F.LZ)(e,t),e}const _=(0,p.o5)(),y=(0,P.Bk)(),v=function(e){const t=mr(e);return(0,te.r)((0,p.o5)(),t),l.T&&s.Yz.log("[Tracing] Started span is an idle span"),t}(e);function b(){r&&(clearTimeout(r),r=void 0)}function S(e){b(),r=setTimeout(()=>{!o&&0===n.size&&a&&(i="idleTimeout",v.end(e))},u)}function w(e){r=setTimeout(()=>{!o&&a&&(i="heartbeatFailed",v.end(e))},f)}function k(e){o=!0,n.clear(),c.forEach(e=>e()),(0,te.r)(_,y);const t=(0,P.et)(v),{start_timestamp:r}=t;if(!r)return;t.data[I.fs]||v.setAttribute(I.fs,i);const a=t.status;a&&"unknown"!==a||v.setStatus({code:sr.F3}),s.Yz.log(`[Tracing] Idle span "${t.op}" finished`);const p=(0,P.xO)(v).filter(e=>e!==v);let f=0;p.forEach(t=>{t.isRecording()&&(t.setStatus({code:sr.TJ,message:"cancelled"}),t.end(e),l.T&&s.Yz.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,P.et)(t),{timestamp:r=0,start_timestamp:o=0}=n,i=o<=e,a=r-o<=(d+u)/1e3;if(l.T){const e=JSON.stringify(t,void 0,2);i?a||s.Yz.log("[Tracing] Discarding span since it finished after idle span final timeout",e):s.Yz.log("[Tracing] Discarding span since it happened after idle span was finished",e)}a&&i||((0,P.VS)(v,t),f++)}),f>0&&v.setAttribute("sentry.idle_span_discarded_spans",f)}return v.end=new Proxy(v.end,{apply(e,t,n){if(h&&h(v),t instanceof Zn)return;const[r,...o]=n,i=r||(0,ne.zf)(),s=(0,P.cI)(i),a=(0,P.xO)(v).filter(e=>e!==v),c=(0,P.et)(v);if(!a.length||!m)return k(s),Reflect.apply(e,t,[s,...o]);const u=g.getOptions().ignoreSpans,l=a?.reduce((e,t)=>
1{const n=(0,P.et)(t);return n.timestamp?u&&K({description:n.description,op:n.op,attributes:n.data},u)?e:e?Math.max(e,n.timestamp):n.timestamp:e},void 0),p=c.start_timestamp,f=Math.min(p?p+d/1e3:1/0,Math.max(p||-1/0,Math.min(s,l||1/0)));return k(f),Reflect.apply(e,t,[f,...o])}}),c.push(g.on("spanStart",e=>{var t;o||e===v||(0,P.et)(e).timestamp||e instanceof rr&&e.isStandaloneSpan()||(0,P.xO)(v).includes(e)&&(t=e.spanContext().spanId,b(),n.set(t,!0),w((0,ne.zf)()+f/1e3))})),c.push(g.on("spanEnd",e=>{var t;o||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&S((0,ne.zf)()+u/1e3))})),c.push(g.on("idleSpanEnableAutoFinish",e=>{e===v&&(a=!0,S(),n.size&&w())})),t.disableAutoFinish||S(),setTimeout(()=>{o||(v.setStatus({code:sr.TJ,message:"deadline_exceeded"}),i="finalTimeout",v.end())},d),v}let Pr=!1;function Ar(){function e(){const e=(0,P.Bk)(),t=e&&(0,P.zU)(e);if(t){const e="internal_error";l.T&&s.Yz.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:sr.TJ,message:e})}}Pr||(e.tag="sentry_tracingErrorCallback",Pr=!0,tn(e),on(e))}var Or=n(40720),Nr=n(48107),$r=n(31302),Mr=n(26888);function Lr(e){return"number"==typeof e&&isFinite(e)}function Dr(e,t,n,{...r}){const o=(0,P.et)(e).start_timestamp;return o&&o>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),_r(e,()=>{const e=mr({startTime:t,...r});return e&&e.end(n),e})}function zr(e){const t=(0,p.KU)();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:a,sendDefaultPii:c}=t.getOptions(),u=t.getIntegrationByName("Replay"),l=u?.getReplayId(),d=(0,p.o5)(),f=d.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;let m;try{m=d.getScopeData().contexts.profile.profile_id}catch{}return mr({name:n,attributes:{release:s,environment:a,user:h||void 0,profile_id:m||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":Or.j.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...o},startTime:i,experimental:{standalone:!0}})}function jr(){return Or.j.addEventListener&&Or.j.performance}function Ur(e){return e/1e3}function Yr(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Br(e,t){let n,r=!1;function o(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}(()=>{const e=e=>{"pagehide"!==e.type&&"hidden"!==Or.j.document?.visibilityState||o("pagehide")};(0,Mr.d)("visibilitychange",e,{capture:!0,once:!0}),(0,Mr.d)("pagehide",e,{capture:!0,once:!0})})();const i=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(o("navigation"),i(),s())}),s=e.on("afterStartPageLoadSpan",e=>{n=e,s()})}function Fr(e){return null!=e&&e>0&&e<=6e4}function qr(e){return e?(((0,ne.k3)()||performance.timeOrigin)+e)/1e3:e}function Hr(e){const t={};if(null!=e.nextHopProtocol){const{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,ne.k3)()||jr()?.timeOrigin?(n={...t,"http.request.redirect_start":qr(e.redirectStart),"http.request.redirect_end":qr(e.redirectEnd),"http.request.worker_start":qr(e.workerStart),"http.request.fetch_start":qr(e.fetchStart),"http.request.domain_lookup_start":qr(e.domainLookupStart),"http.request.domain_lookup_end":qr(e.domainLookupEnd),"http.request.connect_start":qr(e.connectStart),"http.request.secure_connection_start":qr(e.secureConnectionStart),"http.request.connection_end":qr(e.connectEnd),"http.request.request_start":qr(e.requestStart),"http.request.response_start":qr(e.responseStart),"http.request.response_end":qr(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(n).filter(([,e])=>null!=e))):t;var n}var Wr=n(71248),Jr=n(68854),Kr=n(9432);let Gr,Vr,Xr=0,Qr={};function Zr({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=jr();if(r&&(0,ne.k3)()){r.mark&&Or.j.performance.mark("sentry-tracing-init");const o=t?function(e){let t,n=0;if(!Yr("largest-contentful-paint"))return;const r=(0,$r.Pt)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&Fr(e.value)&&(n=e.value,t=r)},!0);Br(e,(e,o)=>{!function(e,t,n,r){if(!Fr(e))return;Nr.T&&s.Yz.log(`Sending LCP span (${e})`);const o=Ur(((0,ne.k3)()||0)+(t?.startTime||0)),i=(0,p.o5)().getScopeData().transactionName,a=t?(0,gt.Hd)(t.element):"Largest contentful paint",c={[I.JD]:"auto.http.browser.lcp",[I.uT]:"ui.webvital.lcp",[I.jG]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=(0,gt.Hd)(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));const u=zr({name:a,transaction:i,attributes:c,startTime:o});u&&(u.addEvent("lcp",{[I.Sn]:"millisecond",[I.xc]:e}),u.end(o))}(n,t,o,e),r()})}(n):!1===t?(0,$r.Pt)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&Fr(e.value)&&(Qr.lcp={value:e.value,unit:"millisecond"},Gr=t)}
1,!0):void 0,i=e?function(e){let t,n=0;if(!Yr("layout-shift"))return;const r=(0,$r.a9)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);Br(e,(e,o)=>{!function(e,t,n,r){Nr.T&&s.Yz.log(`Sending CLS span (${e})`);const o=t?Ur(((0,ne.k3)()||0)+t.startTime):(0,ne.zf)(),i=(0,p.o5)().getScopeData().transactionName,a=t?(0,gt.Hd)(t.sources[0]?.node):"Layout shift",c={[I.JD]:"auto.http.browser.cls",[I.uT]:"ui.webvital.cls",[I.jG]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{c[`cls.source.${t+1}`]=(0,gt.Hd)(e.node)});const u=zr({name:a,transaction:i,attributes:c,startTime:o});u&&(u.addEvent("cls",{[I.Sn]:"",[I.xc]:e}),u.end(o))}(n,t,o,e),r()})}(n):!1===e?(0,$r.a9)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qr.cls={value:e.value,unit:""},Vr=t)},!0):void 0,a=(0,$r.YG)(({metric:e})=>{e.entries[e.entries.length-1]&&(Qr.ttfb={value:e.value,unit:"millisecond"})});return()=>{a(),o?.(),i?.()}}return()=>{}}function eo(e,t,n,r,o=n){const i=function(e){return"secureConnection"===e?"connectEnd":"fetch"===e?"domainLookupStart":`${e}End`}(n),s=t[i],a=t[`${n}Start`];a&&s&&Dr(e,r+Ur(a),r+Ur(s),{op:`browser.${o}`,name:t.name,attributes:{[I.JD]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}const to=[],no=new Map,ro=new Map;const oo={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"},io=({metric:e})=>{if(null==e.value)return;const t=Ur(e.value);if(t>60)return;const n=e.entries.find(t=>t.duration===e.value&&oo[t.name]);if(!n)return;const{interactionId:r}=n,o=oo[n.name],i=Ur((0,ne.k3)()+n.startTime),s=(0,P.Bk)(),a=s?(0,P.zU)(s):void 0,c=null!=r?no.get(r):void 0,u=c?.span||a,l=u?(0,P.et)(u).description:(0,p.o5)().getScopeData().transactionName,d=zr({name:c?.elementName||(0,gt.Hd)(n.target),transaction:l,attributes:{[I.JD]:"auto.http.browser.inp",[I.uT]:`ui.interaction.${o}`,[I.jG]:n.duration},startTime:i});d&&(d.addEvent("inp",{[I.Sn]:"millisecond",[I.xc]:e.value}),d.end(i+t))};function so(e){const{name:t,op:n,origin:r,metricName:o,value:i,attributes:s,parentSpan:a,reportEvent:c,startTime:u,endTime:l}=e,d=(0,p.o5)().getScopeData().transactionName,f={[I.JD]:r,[I.uT]:n,[I.jG]:0,[`browser.web_vital.${o}.value`]:i,"sentry.transaction":d,"user_agent.original":Or.j.navigator?.userAgent,...s};a&&"pageload"===(0,P.RD)(a).attributes?.[I.uT]&&(f["sentry.pageload.span_id"]=a.spanContext().spanId),c&&(f[`browser.web_vital.${o}.report_event`]=c);const h=mr({name:t,attributes:f,startTime:u,parentSpan:a});h&&h.end(l??u)}const ao="sentry_previous_trace";function co(e){return 1===e.traceFlags}function uo(e={}){const t=e.client||(0,p.KU)();if(!(0,u.Ol)()||!t)return{};const n=(0,Q.EU)(),r=(0,ar.h)(n);if(r.getTraceData)return r.getTraceData(e);const o=e.scope||(0,p.o5)(),i=e.span||(0,P.Bk)();if(!i&&(0,p.Bi)())return{};const a=i?(0,P.Qh)(i):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,pr.TC)(t,r,n)}(o),c=i?(0,F.k1)(i):(0,F.ao)(t,o),l=(0,cr.De)(c);if(!pr.MI.test(a))return s.Yz.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":a,baggage:l};return e.propagateTraceparent&&(d.traceparent=i?(0,P.G_)(i):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,pr.Iy)(t,r,n)}(o)),d}function lo(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(cr.sv))}function po(e,t,n,r){const o={url:(0,Lt.zm)(e),type:"fetch","http.method":n,[I.JD]:r,[I.uT]:"http.client"};return t&&((0,Lt.nt)(t)||(o["http.url"]=(0,Lt.zm)(t.href),o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}var fo=n(15828);function ho(e){try{return new URL(e,_t.location.origin).href}catch{return}}function mo(e){try{return new Headers(e)}catch{return}}const go=new WeakMap,_o=new Map,yo={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function vo(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}={...yo,...t},l="function"==typeof i?i:e=>!0,d=e=>function(e,t){const n=(0,gt.$N)();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=r.origin===o;return t?(0,v.Xr)(r.toString(),t)||i&&(0,v.Xr)(r.pathname,t):i}{const n=!!e.match(/^\/(?!\/)/);return t?(0,v.Xr)(e,t):n}}(e,a),f={},h=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>
1("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){const t=_o.get(e.span_id);t&&(e.timestamp=t/1e3,_o.delete(e.span_id))}}),e)),o&&function(){const e="fetch-body-resolved";(0,kt.s5)(e,e=>{if(e.response){const t=go.get(e.response);t&&e.endTimestamp&&_o.set(t,e.endTimestamp)}});(0,kt.AS)(e,()=>Rt(It))}(),Ct(t=>{const n=function(e,t,n,r,o){if(!e.fetchData)return;const{method:i,url:s}=e.fetchData,a=(0,Xn.f)()&&t(s);if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(a&&(function(e,t){if(t.response){(0,sr.N8)(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:sr.TJ,message:"internal_error"});e.end()}(n,e),function(e,t,n){const r="object"==typeof n&&null!==n?n.onRequestSpanEnd:void 0;r?.(e,{headers:t.response?.headers,error:t.error})}(n,e,o)),delete r[t]))}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof o?o:{spanOrigin:o},l=(0,p.KU)(),d=!!(0,P.Bk)()||!!l&&nr(l),f=a&&d?mr(function(e,t,n){if(e.startsWith("data:"))return{name:`${t} ${(0,Lt.zm)(e)}`,attributes:po(e,void 0,t,n)};const r=(0,Lt.kg)(e);return{name:`${t} ${r?(0,Lt.CH)(r):e}`,attributes:po(e,r,t,n)}}(s,i,c)):new Zn;if(a&&!d&&l?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){const t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){const o=uo({span:n,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,a=o.traceparent;if(!i)return;const c=t.headers||((0,Z.ks)(e)?e.headers:void 0);if(c){if(function(e){return"undefined"!=typeof Headers&&(0,Z.tH)(e,Headers)}(c)){const e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",i),r&&a&&!e.get("traceparent")&&e.set("traceparent",a),s){const t=e.get("baggage");t?lo(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(function(e){return!!Array.isArray(e)&&e.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])}(c)){const e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",i]),r&&a&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",a]);const t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&lo(e[1]));return s&&!t&&e.push(["baggage",s]),e}{const e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,o=n?Array.isArray(n)?[...n]:[n]:[],u=n&&(Array.isArray(n)?n.find(e=>lo(e)):lo(n));s&&!u&&o.push(s);const l=Object.assign({},c,{"sentry-trace":e??i,baggage:o.length>0?o.join(","):void 0});return r&&a&&!t&&(l.traceparent=a),l}}return{...o}}(t,n,(0,Xn.f)()&&d?f:void 0,u);r&&(e.args[1]=n,n.headers=r)}if(l){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};l.emit("beforeOutgoingRequestSpan",f,t)}return f}(t,l,d,f,{propagateTraceparent:h,onRequestSpanEnd:u});if(t.response&&t.fetchData.__span&&go.set(t.response,t.fetchData.__span),n){const r=ho(t.fetchData.url),o=r?(0,Lt.Dl)(r).host:void 0;n.setAttributes({"http.url":r?(0,Lt.zm)(r):void 0,"server.address":o}),s&&So(n,e),c?.(n,{headers:t.headers})}})),r&&(0,zt.Mn)(t=>{const n=function(e,t,n,r,o,i){const s=e.xhr,a=s?.[zt.Er];if(!s||s.__sentry_own_request__||!a)return;const{url:c,method:u}=a,l=(0,Xn.f)()&&t(c);if(e.endTimestamp){const t=s.__sentry_xhr_span_id__;if(!t)return;const n=r[t];return void(n&&(l&&void 0!==a.status_code&&((0,sr.N8)(n,a.status_code),n.end(),i?.(n,{headers:mo((0,fo.ti)(s)),error:e.error})),delete r[t]))}const d=ho(c),f=d?(0,Lt.Dl)(d):(0,Lt.Dl)(c),h=(0,Lt.zm)((0,Lt.f)(c)),m=(0,p.KU)(),g=!!(0,P.Bk)()||!!m&&nr(m),_=l&&g?mr({name:`${u} ${h}`,attributes:{url:(0,Lt.zm)(c),type:"xhr","http.method":u,"http.url":d?(0,Lt.zm)(d):void 0,"server.address":f?.host,[I.JD]:"auto.http.browser",[I.uT]:"http.client",...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new Zn;return l&&!g&&m?.recordDroppedEvent("no_parent_span","span"),s.__sentry_xhr_span_id__=_.spanContext().spanId,r[s.__sentry_xhr_span_id__]=_,n(c)&&function(e,t,n){const{"sentry-trace":r,baggage:o,traceparent:i}=uo({span:t,propagateTraceparent:n});r&&function(e,t,n,r){const o=e.__sentry_xhr_v3__?.request_headers;if(!o?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){const t=o?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,o,i)}(s,(0,Xn.f)()&&g?_:void 0,o),m&&m.emit("beforeOutgoingRequestSpan",_,e),_}(t,l,d,f,h,u);
1n&&(s&&So(n,e),c?.(n,{headers:mo(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}const bo=300;function So(e,t){const{url:n}=(0,P.et)(e).data;if(!n||"string"!=typeof n)return;let r=()=>{setTimeout(o)};if(nr(t)){const t=e.end.bind(e);e.end=e=>{const n=e??(0,ne.zf)();let i=!1;const s=()=>{i||(i=!0,setTimeout(o),t(n),clearTimeout(a))};r=s;const a=setTimeout(s,bo)}}const o=(0,$r.wv)("resource",({entries:t})=>{t.forEach(t=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(t)&&t.name.endsWith(n)&&(e.setAttributes(Hr(t)),r())})})}const wo=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function ko(){const e=_t.navigator;return!!e?.userAgent&&wo.test(e.userAgent)}const To={...Rr,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...yo},xo=(e={})=>{"enableElementTiming"in e&&(0,s.pq)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=_t.document,{enableInp:r,enableLongTask:o,enableLongAnimationFrame:a,_experiments:{enableInteractions:c,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:l},beforeStartSpan:d,idleTimeout:f,finalTimeout:h,childSpanTimeout:m,markBackgroundSpan:g,traceFetch:_,traceXHR:y,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:S,enableHTTPTimings:w,ignoreResourceSpans:k,ignorePerformanceApiSpans:T,instrumentPageLoad:x,instrumentNavigation:E,detectRedirects:C,linkPreviousTrace:R,consistentTraceSampling:A,enableReportPageLoaded:O,onRequestSpanStart:N,onRequestSpanEnd:$}={...To,...e},M=ko();let L,D,z;
1function j(e,r,o=!0){const i="pageload"===r.op,a=r.name,c=d?d(r):r,g=c.attributes||{};if(a!==c.name&&(g[I.i_]="custom",c.attributes=g),!o){const e=(0,ne.lu)();return void mr({...c,startTime:e}).end(e)}t.name=c.name,t.source=g[I.i_];const _=Ir(c,{idleTimeout:f,finalTimeout:h,childSpanTimeout:m,disableAutoFinish:i,beforeSpanEnd:t=>{L?.();const n=nr(e);(function(e,t){const n=jr(),r=(0,ne.k3)();if(!n?.getEntries||!r)return;const{spanStreamingEnabled:o,ignorePerformanceApiSpans:i,ignoreResourceSpans:a,recordClsOnPageloadSpan:c,recordLcpOnPageloadSpan:u}=t,l=Ur(r),p=n.getEntries(),{op:d,start_timestamp:f}=(0,P.et)(e);if(p.slice(Xr).forEach(t=>{const n=Ur(t.startTime),r=Ur(Math.max(0,t.duration));if(!("navigation"===d&&f&&l+n<f))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{eo(e,t,r,n)}),eo(e,t,"secureConnection",n,"TLS/SSL"),eo(e,t,"fetch",n,"cache"),eo(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+Ur(t.requestStart),o=n+Ur(t.responseEnd),i=n+Ur(t.responseStart);t.responseEnd&&(Dr(e,r,o,{op:"browser.request",name:t.name,attributes:{[I.JD]:"auto.ui.browser.metrics"}}),Dr(e,i,o,{op:"browser.response",name:t.name,attributes:{[I.JD]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,l);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o,i){if(function(e){if("measure"===e?.entryType)try{return"Components \u269b"===e.detail.devtools.track}catch{return}}(t))return;if(["mark","measure"].includes(t.entryType)&&(0,v.Xr)(t.name,i))return;const s=(0,Jr.z)(!1),a=Ur(s?s.requestStart:0),c=o+Math.max(n,a),u=o+n,l=u+r,p={[I.JD]:"auto.resource.browser.metrics"};c!==u&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=c),function(e,t){try{const n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,r]of Object.entries(n))if(r&&(0,Z.sO)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,Z.sO)(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(p,t),c<=l&&Dr(e,c,l,{name:t.name,op:t.entryType,attributes:p})}(e,t,n,r,l,i);const o=(0,Kr.N)(),s=t.startTime<o.firstHiddenTime;"first-paint"===t.name&&s&&(Qr.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&s&&(Qr.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,o,i,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s?.includes(a))return;const c={[I.JD]:"auto.resource.browser.metrics"},u=(0,Lt.Dl)(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(Or.j.location.origin),function(e,t){[["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(([n,r])=>{const o=e[n];null!=o&&("number"==typeof o&&o<2147483647||"string"==typeof o)&&(t[r]=o)})}(t,c);const l={...c,...Hr(t)},p=i+r;Dr(e,p,p+o,{name:n.replace(Or.j.location.origin,""),op:a,attributes:l})}(e,t,t.name,n,r,l,a)}}),Xr=Math.max(p.length-1,0),function(e,t){const n=Or.j.navigator;if(!n)return;const r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),Lr(r.rtt)&&(Qr["connection.rtt"]={value:r.rtt,unit:"millisecond"},t&&e.setAttribute("network.connection.rtt",r.rtt))),Lr(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),Lr(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,o),"pageload"===d){if(function(e){const t=(0,Jr.z)(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(Qr),o){const t=(t,n,r)=>{const o=r??`browser.web_vital.${t}.value`;e.setAttribute(o,n),Nr.T&&s.Yz.log("Setting web vital attribute",{[o]:n},"on pageload span")};
1["ttfb","fp","fcp"].forEach(e=>{Qr[e]&&t(e,Qr[e].value)}),Qr["ttfb.requestTime"]&&t("ttfb.requestTime",Qr["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else c||delete Qr.cls,u||delete Qr.lcp,Object.entries(Qr).forEach(([e,t])=>{er(e,t.value,t.unit)}),function(e,t){Gr&&t.recordLcpOnPageloadSpan&&(Gr.element&&e.setAttribute("lcp.element",(0,gt.Hd)(Gr.element)),Gr.id&&e.setAttribute("lcp.id",Gr.id),Gr.url&&e.setAttribute("lcp.url",Gr.url.trim().slice(0,200)),null!=Gr.loadTime&&e.setAttribute("lcp.loadTime",Gr.loadTime),null!=Gr.renderTime&&e.setAttribute("lcp.renderTime",Gr.renderTime),e.setAttribute("lcp.size",Gr.size)),Vr?.sources&&t.recordClsOnPageloadSpan&&Vr.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,gt.Hd)(t.node)))}(e,t);e.setAttribute(o?"browser.performance.time_origin":"performance.timeOrigin",l),e.setAttribute(o?"browser.performance.navigation.activation_start":"performance.activationStart",(0,Wr.b)())}Gr=void 0,Vr=void 0,Qr={}})(t,{recordClsOnPageloadSpan:!n&&!u,recordLcpOnPageloadSpan:!n&&!l,ignoreResourceSpans:k,ignorePerformanceApiSpans:T,spanStreamingEnabled:n}),Oo(e,void 0);const r=(0,p.o5)(),o=r.getPropagationContext();r.setPropagationContext({...o,traceId:_.spanContext().traceId,sampled:(0,P.pK)(_),dsc:(0,F.k1)(t)}),i&&(z=void 0)},trimIdleSpanEndTimestamp:!O});function y(){n&&["interactive","complete"].includes(n.readyState)&&e.emit("idleSpanEnableAutoFinish",_)}i&&O&&(z=_),Oo(e,_),i&&!O&&n&&(n.addEventListener("readystatechange",()=>{y()}),y())}return{name:"BrowserTracing",setup(e){if(M)return void(Ut&&s.Yz.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent."));Ar();const t=nr(e);if(L=Zr({recordClsStandaloneSpans:t?void 0:u||!1,recordLcpStandaloneSpans:t?void 0:l||!1,client:e}),t?(function(e){let t,n=0;if(!Yr("largest-contentful-paint"))return;const r=(0,$r.Pt)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&Fr(e.value)&&(n=e.value,t=r)},!0);Br(e,(e,o,i)=>{!function(e,t,n,r){if(!Fr(e))return;Nr.T&&s.Yz.log(`Sending LCP span (${e})`);const o=(0,ne.k3)()||0,i=Ur(o),a=Ur(o+(t?.startTime||0)),c=t?(0,gt.Hd)(t.element):"Largest contentful paint",u={};t?.element&&(u["browser.web_vital.lcp.element"]=(0,gt.Hd)(t.element)),t?.id&&(u["browser.web_vital.lcp.id"]=t.id),t?.url&&(u["browser.web_vital.lcp.url"]=t.url),null!=t?.loadTime&&(u["browser.web_vital.lcp.load_time"]=t.loadTime),null!=t?.renderTime&&(u["browser.web_vital.lcp.render_time"]=t.renderTime),null!=t?.size&&(u["browser.web_vital.lcp.size"]=t.size),so({name:c,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:u,parentSpan:n,reportEvent:r,startTime:i,endTime:a})}(n,t,i,e),r()})}(e),function(e){let t,n=0;if(!Yr("layout-shift"))return;const r=(0,$r.a9)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);Br(e,(e,o,i)=>{!function(e,t,n,r){Nr.T&&s.Yz.log(`Sending CLS span (${e})`);const o=t?Ur(((0,ne.k3)()||0)+t.startTime):(0,ne.zf)(),i=t?(0,gt.Hd)(t.sources[0]?.node):"Layout shift",a={};t?.sources&&t.sources.forEach((e,t)=>{a[`browser.web_vital.cls.source.${t+1}`]=(0,gt.Hd)(e.node)}),so({name:i,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:a,parentSpan:n,reportEvent:r,startTime:o})}(n,t,i,e),r()})}(e),r&&(jr()&&(0,ne.k3)()&&(0,$r.hT)(({metric:e})=>{if(null==e.value)return;if(Ur(e.value)>60)return;const t=e.entries.find(t=>t.duration===e.value&&oo[t.name]);t&&function(e,t){Nr.T&&s.Yz.log(`Sending INP span (${e})`);const n=Ur((0,ne.k3)()+t.startTime),r=Ur(e),o=oo[t.name],i=null!=(d=t.interactionId)?no.get(d):void 0,a=(0,P.Bk)(),c=a?(0,P.zU)(a):void 0,u=i?.span||c,l=u?(0,P.RD)(u).name:(0,p.o5)().getScopeData().transactionName;var d;so({name:i?.elementName||(0,gt.Hd)(t.target),op:`ui.interaction.${o}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[I.jG]:t.duration,"sentry.transaction":l},startTime:n,endTime:n+r,parentSpan:u})}(e.value,t)}))):r&&function(){if(jr()&&(0,ne.k3)()){const e=(0,$r.hT)(io);return()=>{e()}}}(),a&&i.O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{const t=(0,P.Bk)();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=Ur((0,ne.k3)()+n.startTime),{start_timestamp:r,op:o}=(0,P.et)(t);if("navigation"===o&&r&&e<r)continue;const i=Ur(n.duration),s={[I.JD]:"auto.ui.browser.metrics"},a=n.scripts[0],{invoker:c,invokerType:u,sourceURL:l,sourceFunctionName:p,sourceCharPosition:d}=a;s["browser.script.invoker"]=c,s["browser.script.invoker_type"]=u,l&&(s["code.filepath"]=l),p&&(s["code.function"]=p),-1!==d&&(s["browser.script.source_char_position"]=d),Dr(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}}).observe({type:"long-animation-frame",buffered:!0}):o&&(0,$r.wv)("longtask",({entries:e})=>{const t=(0,P.Bk)();if(!t)return;const{op:n,start_timestamp:r}=(0,P.et)(t);for(const o of e){const e=Ur((0,ne.k3)()+o.startTime),i=Ur(o.duration);"navigation"===n&&r&&e<r||Dr(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[I.JD]:"auto.ui.browser.metrics"}})}}),c&&(0,$r.wv)("event",({entries:e})=>{const t=(0,P.Bk)();if(t)for(const n of e)if("click"===n.name){const e=Ur((0,ne.k3)()+n.startTime),r=Ur(n.duration),o={name:(0,gt.Hd)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[I.JD]:"auto.ui.browser.metrics"}},i=(0,gt.xE)(n.target);i&&(o.attributes["ui.component_name"]=i),Dr(t,e,e+r,o)}}),C&&n){const e=()=>{D=(0,ne.zf)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function d(){const t=Ao(e);t&&!(0,P.et)(t).timestamp&&(Ut&&s.Yz.log(`[Tracing] Finishing current active span with op: ${(0,P.et)(t).op}`),t.setAttribute(I.fs,"cancelled"),t.end())}e.on("startNavigationSpan",(t,n)=>{if((0,p.KU)()!==e)return;if(n?.isRedirect)return Ut&&s.Yz.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void j(e,{op:"navigation.redirect",...t},!1);D=void 0,d(),(0,p.rm)().setPropagationContext({traceId:(0,Qn.e)(),sampleRand:Math.random(),propagationSpanId:(0,Xn.f)()?void 0:(0,Qn.Z)()});const r=(0,p.o5)();r.setPropagationContext({traceId:(0,Qn.e)(),sampleRand:Math.random(),propagationSpanId:(0,Xn.f)()?void 0:(0,Qn.Z)()}),r.setSDKProcessingMetadata({normalizedRequest:void 0}),j(e,{op:"navigation",...t,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(t,n={})=>
1{if((0,p.KU)()!==e)return;d();const r=n.sentryTrace||Ro("sentry-trace")||Io("sentry-trace"),o=n.baggage||Ro("baggage")||Io("baggage"),i=(0,pr.kM)(r,o),s=(0,p.o5)();s.setPropagationContext(i),(0,Xn.f)()||(s.getPropagationContext().propagationSpanId=(0,Qn.Z)()),s.setSDKProcessingMetadata({normalizedRequest:St()}),j(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{O&&z&&(z.setAttribute(I.fs,"reportPageLoaded"),z.end())})},afterAllSetup(e){if(M)return;let n=(0,gt.$N)();if("off"!==R&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r="session-storage"===t;let o=r?function(){try{const e=_t.sessionStorage?.getItem(ao);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,P.zU)(e)!==e)return;const t=(0,p.o5)().getPropagationContext();o=function(e,t,n){const r=(0,P.et)(t),o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[I.sy])}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return o;const i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(Ut&&s.Yz.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[I.Lc]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${i.traceId}-${i.spanId}-${co(i)?1:0}`)),o)}(o,e,t),r&&function(e){try{_t.sessionStorage.setItem(ao,JSON.stringify(e))}catch(e){Ut&&s.Yz.warn("Could not store previous trace in sessionStorage",e)}}(o)});let i=!0;n&&e.on("beforeSampling",e=>{if(!o)return;const t=(0,p.o5)(),n=t.getPropagationContext();i&&n.parentSpanId?i=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(o.sampleRate),sampled:String(co(o.spanContext))},sampleRand:o.sampleRand}),e.parentSampled=co(o.spanContext),e.parentSampleRate=o.sampleRate,e.spanAttributes={...e.spanAttributes,[I.Ef]:o.sampleRate})})}(e,{linkPreviousTrace:R,consistentTraceSampling:A}),_t.location){if(x){const t=(0,ne.k3)();Eo(e,{name:_t.location.pathname,startTime:t?t/1e3:void 0,attributes:{[I.i_]:"url",[I.JD]:"auto.pageload.browser"}})}E&&(0,jt._)(({to:t,from:r})=>{if(void 0===r&&-1!==n?.indexOf(t))return void(n=void 0);n=void 0;const o=(0,Lt.kg)(t),i=Ao(e),s=i&&C&&function(e,t){const n=(0,P.et)(e),r=(0,ne.lu)();return!(r-n.start_timestamp>No)&&!(t&&r-t<=No)}(i,D);Co(e,{name:o?.pathname||_t.location.pathname,attributes:{[I.i_]:"url",[I.JD]:"auto.navigation.browser"}},{url:t,isRedirect:s})})}g&&(_t.document?_t.document.addEventListener("visibilitychange",()=>{const e=(0,P.Bk)();if(!e)return;const t=(0,P.zU)(e);if(_t.document.hidden&&t){const e="cancelled",{op:n,status:r}=(0,P.et)(t);Ut&&s.Yz.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:sr.TJ,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Ut&&s.Yz.warn("[Tracing] Could not set up background tab detection due to lack of global document")),c&&function(e,t,n,r,o){let i;_t.document&&addEventListener("click",()=>{const a="ui.action.click",c=Ao(e);if(c){const e=(0,P.et)(c).op;if(["navigation","pageload"].includes(e))return void(Ut&&s.Yz.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`))}i&&(i.setAttribute(I.fs,"interactionInterrupted"),i.end(),i=void 0),o.name?i=Ir({name:o.name,op:a,attributes:{[I.i_]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}):Ut&&s.Yz.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)},{capture:!0})}(e,f,h,m,t),r&&function(){const e=Object.keys(oo);function t(e){const t=e.target;if(!t)return;const n=(0,gt.Hd)(t),r=Math.round(e.timeStamp);if(ro.set(r,n),ro.size>50){const e=ro.keys().next().value;void 0!==e&&ro.delete(e)}}(0,ue.B)()&&e.forEach(e=>{Or.j.addEventListener(e,t,{capture:!0,passive:!0})});const n=({entries:e})=>{const t=(0,P.Bk)(),n=t&&(0,P.zU)(t);e.forEach(e=>{if(!(0,$r.tC)(e))return;const t=e.interactionId;if(null==t)return;if(no.has(t))return;const r=e.target?(0,gt.Hd)(e.target):function(e){const t=Math.round(e.startTime);let n=ro.get(t);if(!n)for(let e=-5;e<=5;e++){const r=ro.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(to.length>10){const e=to.shift();no.delete(e)}to.push(t),no.set(t,{span:n,elementName:r})})};(0,$r.wv)("event",n),(0,$r.wv)("first-input",n)}(),vo(e,{traceFetch:_,traceXHR:y,trackFetchStreamPerformance:b,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:S,enableHTTPTimings:w,onRequestSpanStart:N,onRequestSpanEnd:$})}}};function Eo(e,t,n){e.emit("startPageLoadSpan",t,n),(0,p.o5)().setTransactionName(t.name);const r=Ao(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Co(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=(0,p.o5)();return i.setTransactionName(t.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...St(),url:r}}),Ao(e)}function Ro(e){const t=_t.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function Io(e){const t=_t.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}const Po="_sentry_idleSpan";function Ao(e){return e[Po]}function Oo(e,t){(0,x.my)(e,Po,t)}const No=1.5,$o=i.O;let Mo,Lo=null;const Do=new Map,zo=new Map;
1function jo(e){const t=e.split("/").filter(Boolean);let n=0;for(const e of t)if(e.startsWith(":")){const t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function Uo(e){if(Do.has(e))return Do.get(e)??null;try{const t=new RegExp(e);return Do.set(e,t),t}catch(t){return Wn&&s.Yz.warn("Could not compile regex",{regexString:e,error:t}),null}}function Yo(){if(!$o?._sentryRouteManifest||"string"!=typeof $o._sentryRouteManifest)return null;const e=$o._sentryRouteManifest;if(Lo&&Mo===e)return Lo;Do.clear(),zo.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{return t=JSON.parse(e),Array.isArray(t.staticRoutes)&&Array.isArray(t.dynamicRoutes)?(Lo=t,Mo=e,t):null}catch{return Wn&&s.Yz.warn("Could not extract route manifest"),null}}const Bo=e=>{const t=Yo();if(!t)return;const n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(zo.has(n))return zo.get(n);const{staticRoutes:r,dynamicRoutes:o}=t;if(!Array.isArray(r)||!Array.isArray(o))return;const i=function(e,t,n){const r=[];if(t.some(t=>t.path===e))return r;for(const t of n)if(t.regex){const n=Uo(t.regex);n?.test(e)&&r.push(t.path)}if(!e.startsWith("/:"))for(const t of n)if(t.hasOptionalPrefix&&t.regex){const n="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,o=Uo(t.regex);o?.test(n)&&r.push(t.path)}return r}(n,r,o),s=i.sort((e,t)=>jo(e)-jo(t))[0];return zo.set(n,s),s};var Fo=n(24709);function qo(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}const Ho="incomplete-app-router-transaction";let Wo="router-patch";const Jo={current:void 0},Ko=i.O,Go=i.O;function Vo(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}const Xo=new WeakSet;function Qo(e,t,n){Xo.has(t)||(Xo.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,o,i){if("router-patch"!==Wo)return t.apply(o,i);let s=Ho;const a={[I.uT]:"navigation",[I.JD]:"auto.navigation.nextjs.app_router_instrumentation",[I.i_]:"url"},c=i[0],u=Fo.env._sentryBasePath??Go._sentryBasePath,l=u&&"string"==typeof c&&!c.startsWith(u)?`${u}${c}`:c;"push"===r?(s=qo(Vo(l)),a["navigation.type"]="router.push"):"replace"===r?(s=qo(Vo(l)),a["navigation.type"]="router.replace"):"back"===r?a["navigation.type"]="router.back":"forward"===r&&(a["navigation.type"]="router.forward");const p=Bo(s);return n.current=Co(e,{name:p??s,attributes:{...a,[I.i_]:p?"route":"url"}}),t.apply(o,i)}}))}))}let Zo;function ei(e,t){Zo&&Zo(e,t)}var ti=n(85620);const ni=ti.default.events?ti.default:ti.default.default,ri=_t;function oi(e){_t.document.getElementById("__NEXT_DATA__")?function(e){const{route:t,params:n,sentryTrace:r,baggage:o}=function(){let e;const t=ri.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{Wn&&s.Yz.warn("Could not extract __NEXT_DATA__")}if(!e)return{};const n={},{page:r,query:o,props:i}=e;return n.route=r,n.params=o,i?.pageProps&&(n.sentryTrace=i.pageProps._sentryTraceData,n.baggage=i.pageProps._sentryBaggage),n}(),i=(0,cr.D0)(o);let a=t||ri.location.pathname;i?.["sentry-transaction"]&&"/_error"===a&&(a=i["sentry-transaction"],a=a.replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));const c=(0,ne.k3)();Eo(e,{name:a,startTime:c?c/1e3:void 0,attributes:{[I.uT]:"pageload",[I.JD]:"auto.pageload.nextjs.pages_router_instrumentation",[I.i_]:t?"route":"url",...n&&e.getOptions().sendDefaultPii&&{...n}}},{sentryTrace:r,baggage:o})}(e):function(e){const t=qo(_t.location.pathname),n=Bo(t),r=(0,ne.k3)();Eo(e,{name:n??t,startTime:r?r/1e3:void 0,attributes:{[I.uT]:"pageload",[I.JD]:"auto.pageload.nextjs.app_router_instrumentation",[I.i_]:n?"route":"url"}})}(e)}function ii(e){_t.document.getElementById("__NEXT_DATA__")?function(e){ni.events.on("routeChangeStart",t=>{const n=(0,Lt.f)(t),r=function(e){const t=ri.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{const n=function(e){const t=e.split("/");let n="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");const r=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return new RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)})}(n);let o,i;r?(o=r,i="route"):(o=n,i="url"),Co(e,{name:o,attributes:{[I.uT]:"navigation",[I.JD]:"auto.navigation.nextjs.pages_router_instrumentation",[I.i_]:i}})})}(e):function(e){Zo=(t,n)=>{const r=Fo.env._sentryBasePath??Go._sentryBasePath,o=r&&!t.startsWith(r)?`${r}${t}`:t,i=qo(new URL(o,_t.location.href).pathname),s=Bo(i),a=s??i;"router-patch"===Wo&&(Wo="transition-start-hook");const c=Jo.current;c?(c.updateName(a),c.setAttributes({"navigation.type":`router.${n}`,[I.i_]:s?"route":"url"}),Jo.current=void 0):Co(e,{name:a,attributes:{[I.uT]:"navigation",[I.JD]:"auto.navigation.nextjs.app_router_instrumentation",[I.i_]:s?"route":"url","navigation.type":`router.${n}`}})},_t.addEventListener("popstate",()=>{const t=qo(_t.location.pathname),n=Bo(t);Jo.current?.isRecording()?(Jo.current.updateName(n??t),Jo.current.setAttribute(I.i_,n?"route":"url")):Jo.current=Co(e,{name:n??t,attributes:{[I.JD]:"auto.navigation.nextjs.app_router_instrumentation",[I.i_]:n?"route":"url","navigation.type":"browser.popstate"}})});let t=!1,n=0;const r=setInterval(()=>{n++;const o=Ko?.next?.router??Ko?.nd?.router;t||n>500?clearInterval(r):o&&(clearInterval(r),t=!0,Qo(e,o,Jo),["nd","next"].forEach(t=>{const n=Ko[t];
1n&&(Ko[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&Qo(e,r,Jo),t[n]=r,!0)}))}))},20)}(e)}function si(e={}){const t=xo({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){const[n,{headers:r}]=t;return r?.get("next-router-prefetch")&&n?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){ko()||(r&&ii(e),t.afterAllSetup(e),n&&oi(e))}}}const ai=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function ci(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function ui(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}const li=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in i.O&&!!i.O.window,o=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){const e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(o||i){const e=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,i=t?function(e,t){e=ci(e).slice(1),t=ci(t).slice(1);const n=ui(e.split("/")),r=ui(t.split("/")),o=Math.min(n.length,r.length);let i=o;for(let e=0;e<o;e++)if(n[e]!==r[e]){i=e;break}let s=[];for(let e=i;e<n.length;e++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}(t,e):function(e){let t=function(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=ai.exec(t);return n?n.slice(1):[]}(e)[2]||"";return t}(e);r.filename=`${n}${i}`}return r}}({isBrowser:r,root:t,prefix:n});function s(e){return{...e,frames:e?.frames?.map(e=>o(e))}}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=>({...e,...e.stacktrace&&{stacktrace:s(e.stacktrace)}}))}}}catch{return e}}(t)),t}}},pi=({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...li({iteratee:o=>{if(r){const n="undefined"!=typeof window&&window.location?window.location.origin:"";if(o.filename?.startsWith(n)&&!o.filename.endsWith(".js"))return o;if(e)o.filename?.startsWith(e)&&(o.filename=o.filename.replace(e,"app://"));else if(t)try{const{origin:e}=new URL(o.filename);e===n&&(o.filename=o.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{const{origin:e}=new URL(o.filename);o.filename=o.filename?.replace(e,"app://").replace(n,"")}catch{}return r?(o.filename?.includes("/_next")&&(o.filename=decodeURI(o.filename)),o.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(o.in_app=!1)):(o.filename?.startsWith("app:///_next")&&(o.filename=decodeURI(o.filename)),o.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(o.in_app=!1)),o}}),name:"NextjsClientStackFrameNormalization"}),di=new class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){const 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){const e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){const t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const e=[];return this._cache.forEach(t=>e.push(t)),e}}(100);var fi=n(24709);const hi=i.O;var mi=n(24709);let gi=!1;const _i=i.O;function yi(e){gi&&(0,s.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`.")}),gi=!0,!Wn&&e.debug&&(0,s.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.")}),("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){function e(e){try{const t=_t.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}_t.document&&function(e){const t=Bo(e)||e,n=di.get(t);if(void 0!==n)return n;const r=Yo();if(!r?.isrRoutes||!Array.isArray(r.isrRoutes)||0===r.isrRoutes.length)return di.set(t,!1),!1;const o=r.isrRoutes.includes(t);return di.set(t,o),o}(_t.location.pathname)&&(e("sentry-trace"),e("baggage"))}();const t={environment:e.environment||mi.env.SENTRY_ENVIRONMENT||Kn(!0)||"production",defaultIntegrations:vi(),release:mi.env._sentryRelease||_i._sentryRelease,...e};!function(e){const t=fi.env._sentryRewritesTunnelPath||hi._sentryRewritesTunnelPath;if(t&&e.dsn){const n=(0,z.hH)(e.dsn);if(!n)return;const r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){const o=r[1],i=r[2];let a=`${t}?o=${o}&p=${n.projectId}`;i&&(a+=`&r=${i}`),e.tunnel=a,Wn&&s.Yz.log(`Tunneling events to "${a}"`)}else Wn&&s.Yz.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}
1(t),c(t,"nextjs",["nextjs","react"]),t.ignoreSpans=[...t.ignoreSpans||[],/^\/404$/,new RegExp("^".concat(Ho,"$"))];const n=function(e){const t={...e};return c(t,"react"),(0,u.o)("react",{version:Hn.version}),Bn(t)}(t),r=(e,t)=>{var n,r,o;return Vn(null==t?void 0:t.originalException)||"NEXT_REDIRECT"===(null===(o=e.exception)||void 0===o||null===(r=o.values)||void 0===r||null===(n=r[0])||void 0===n?void 0:n.value)?null:e};return r.id="NextRedirectErrorFilter",(0,u.SA)(r),n}function vi(e){const t=Yn();("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(si());const n=_i._sentryRewriteFramesAssetPrefixPath||"",r=mi.env._sentryAssetPrefix||_i._sentryAssetPrefix,o=mi.env._sentryBasePath||_i._sentryBasePath,i="true"===mi.env._experimentalThirdPartyOriginStackFrames||"true"===_i._experimentalThirdPartyOriginStackFrames;return t.push(pi({assetPrefix:r,basePath:o,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:i})),t}function bi(e){return e}function Si(e,t={},n=(0,p.o5)()){const{message:r,name:o,email:i,url:s,source:a,associatedEventId:c,tags:u}=e,l={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:u},d=n?.getClient()||(0,p.KU)();return d&&d.emit("beforeSendFeedback",l,t),n.captureEvent(l,t)}const wi=i.O,ki=wi.document,Ti=wi.navigator,xi="Report a Bug",Ei="Unable to submit feedback with empty message",Ci="No client setup, cannot send feedback.",Ri="Unable to determine if Feedback was correctly sent.",Ii="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",Pi="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",Ai={ERROR_EMPTY_MESSAGE:Ei,ERROR_NO_CLIENT:Ci,ERROR_TIMEOUT:Ri,ERROR_FORBIDDEN:Ii,ERROR_GENERIC:Pi};function Oi(e,t){return t?.[e]??Ai[e]}function Ni(e,t){return new Error(Oi(e,t))}const $i=(e,t={includeReplay:!0})=>{const n=t.errorMessages;if(!e.message)throw Ni("ERROR_EMPTY_MESSAGE",n);const r=(0,p.KU)();if(!r)throw Ni("ERROR_NO_CLIENT",n);e.tags&&Object.keys(e.tags).length&&(0,p.o5)().setTags(e.tags);const o=Si({source:"api",url:(0,gt.$N)(),...e},t);return new Promise((e,t)=>{const i=setTimeout(()=>{s(),t(Oi("ERROR_TIMEOUT",n))},3e4),s=r.on("afterSendEvent",(r,a)=>{if(r.event_id===o)return clearTimeout(i),s(),a?.statusCode&&a.statusCode>=200&&a.statusCode<300?e(o):t(Oi(403===a?.statusCode?"ERROR_FORBIDDEN":"ERROR_GENERIC",n))})})},Mi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Li(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Di(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}const zi="rgba(88, 74, 192, 1)",ji={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:zi,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%)"},Ui={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:zi,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 Yi(e){return`\n  --foreground: ${e.foreground};\n  --background: ${e.background};\n  --accent-foreground: ${e.accentForeground};\n  --accent-background: ${e.accentBackground};\n  --success-color: ${e.successColor};\n  --error-color: ${e.errorColor};\n  --border: ${e.border};\n  --box-shadow: ${e.boxShadow};\n  --outline: ${e.outline};\n  --interactive-filter: ${e.interactiveFilter};\n  `}function Bi({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=ki.createElement("style");return o.textContent=`\n:host {\n  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n  --font-size: 14px;\n  --z-index: 100000;\n\n  --page-margin: 16px;\n  --inset: auto 0 0 auto;\n  --actor-inset: var(--inset);\n\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n\n  ${"system"!==e?`color-scheme: only ${e};`:""}\n\n  ${Yi("dark"===e?{...Ui,...t}:{...ji,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    color-scheme: only dark;\n\n    ${Yi({...Ui,...t})}\n  }\n}`:""}\n`,r&&o.setAttribute("nonce",r),o}const Fi=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:o=!0,showBranding:i=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail
1:u=!0,showName:l=!0,enableScreenshot:p=!0,useSentryUser:d={email:"email",name:"username"},tags:f,styleNonce:h,scriptNonce:m,colorScheme:_="system",themeLight:y={},themeDark:v={},addScreenshotButtonLabel:b="Add a screenshot",cancelButtonLabel:S="Cancel",confirmButtonLabel:w="Confirm",emailLabel:k="Email",emailPlaceholder:T="[email protected]",formTitle:x="Report a Bug",isRequiredLabel:E="(required)",messageLabel:C="Description",messagePlaceholder:R="What's the bug? What did you expect?",nameLabel:I="Name",namePlaceholder:P="Your Name",removeScreenshotButtonLabel:A="Remove screenshot",submitButtonLabel:O="Send Bug Report",successMessageText:N="Thank you for your report!",triggerLabel:$=xi,triggerAriaLabel:M="",highlightToolText:L="Highlight",hideToolText:D="Hide",removeHighlightText:z="Remove",errorEmptyMessageText:j=Ei,errorNoClientText:U=Ci,errorTimeoutText:Y=Ri,errorForbiddenText:B=Ii,errorGenericText:F=Pi,onFormOpen:q,onFormClose:H,onSubmitSuccess:W,onSubmitError:J,onFormSubmitted:K}={})=>{const G={id:r,autoInject:o,showBranding:i,isEmailRequired:a,isNameRequired:c,showEmail:u,showName:l,enableScreenshot:p,useSentryUser:d,tags:f,styleNonce:h,scriptNonce:m,colorScheme:_,themeDark:v,themeLight:y,triggerLabel:$,triggerAriaLabel:M,cancelButtonLabel:S,submitButtonLabel:O,confirmButtonLabel:w,formTitle:x,emailLabel:k,emailPlaceholder:T,messageLabel:C,messagePlaceholder:R,nameLabel:I,namePlaceholder:P,successMessageText:N,isRequiredLabel:E,addScreenshotButtonLabel:b,removeScreenshotButtonLabel:A,highlightToolText:L,hideToolText:D,removeHighlightText:z,errorEmptyMessageText:j,errorNoClientText:U,errorTimeoutText:Y,errorForbiddenText:B,errorGenericText:F,onFormClose:H,onFormOpen:q,onSubmitError:J,onSubmitSuccess:W,onFormSubmitted:K};let V=null,X=null,Q=[];const Z=e=>{if(!V){const t=ki.createElement("div");t.id=String(e.id),ki.body.appendChild(t),V=t.attachShadow({mode:"open"}),X=Bi(e),V.appendChild(X)}return V},ee=async r=>{const o=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ti.userAgent)||/Macintosh/i.test(Ti.userAgent)&&Ti.maxTouchPoints&&Ti.maxTouchPoints>1||!isSecureContext);let i,a;try{i=(t?t():await e("feedbackModalIntegration",m))(),g(i)}catch{throw Mi&&s.Yz.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const t=o?n?n():await e("feedbackScreenshotIntegration",m):void 0;t&&(a=t(),g(a))}catch{Mi&&s.Yz.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const c={ERROR_EMPTY_MESSAGE:r.errorEmptyMessageText,ERROR_NO_CLIENT:r.errorNoClientText,ERROR_TIMEOUT:r.errorTimeoutText,ERROR_FORBIDDEN:r.errorForbiddenText,ERROR_GENERIC:r.errorGenericText},u=i.createDialog({options:{...r,onFormClose:()=>{u?.close(),r.onFormClose?.()},onFormSubmitted:()=>{u?.close(),r.onFormSubmitted?.()}},screenshotIntegration:a,sendFeedback:(e,t)=>$i(e,{includeReplay:!0,...t,errorMessages:c}),shadow:Z(r)});return u},te=(e,t={})=>{const n=Li(G,t),r="string"==typeof e?ki.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw Mi&&s.Yz.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let o=null;const i=async()=>{o||(o=await ee({...n,onFormSubmitted:()=>{o?.removeFromDom(),n.onFormSubmitted?.()}})),o.appendToDom(),o.open()};r.addEventListener("click",i);const a=()=>{Q=Q.filter(e=>e!==a),o?.removeFromDom(),o=null,r.removeEventListener("click",i)};return Q.push(a),a},ne=(e={})=>{const t=Li(G,e),n=Z(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=ki.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||xi,o.appendChild(function(){const e=e=>wi.document.createElementNS("http://www.w3.org/2000/svg",e),t=Di(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=Di(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Di(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
156 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const o=e("defs"),i=Di(e("clipPath"),{id:"clip0_57_80"}),s=Di(e("rect"),{width:"20",height:"20",fill:"white"});return i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),t}()),e){const t=ki.createElement("span");t.appendChild(ki.createTextNode(e)),o.appendChild(t)}const i=function(e){const t=ki.createElement("style");return t.textContent='\n.widget__actor {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: var(--page-margin);\n  inset: var(--actor-inset);\n\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 16px;\n\n  font-family: inherit;\n  font-size: var(--font-size);\n  font-weight: 600;\n  line-height: 1.14em;\n  text-decoration: none;\n\n  background: var(--actor-background, var(--background));\n  border-radius: var(--actor-border-radius, 1.7em/50%);\n  border: var(--actor-border, var(--border));
1\n  box-shadow: var(--actor-box-shadow, var(--box-shadow));\n  color: var(--actor-color, var(--foreground));\n  fill: var(--actor-color, var(--foreground));\n  cursor: pointer;\n  opacity: 1;\n  transition: transform 0.2s ease-in-out;\n  transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n  transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n  background: var(--actor-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n  width: 1.14em;\n  height: 1.14em;\n}\n\n@media (max-width: 600px) {\n  .widget__actor span {\n    display: none;\n  }\n}\n',e&&t.setAttribute("nonce",e),t}(r);return{el:o,appendToDom(){n.appendChild(i),n.appendChild(o)},removeFromDom(){o.remove(),i.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:h});return te(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){(0,ue.B)()&&G.autoInject&&("loading"===ki.readyState?ki.addEventListener("DOMContentLoaded",()=>ne().appendToDom()):ne().appendToDom())},attachTo:te,createWidget(e={}){const t=ne(Li(G,e));return t.appendToDom(),t},createForm:async(e={})=>ee(Li(G,e)),setTheme(e){if(G.colorScheme=e,V){const e=Bi(G);X?V.replaceChild(e,X):V.prepend(e),X=e}},remove(){V&&(V.parentElement?.remove(),V=null,X=null),Q.forEach(e=>e()),Q=[]}}};function qi(){const e=(0,p.KU)();return e?.getIntegrationByName("Feedback")}var Hi,Wi,Ji,Ki,Gi,Vi,Xi,Qi={},Zi=[],es=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ts=Array.isArray;function ns(e,t){for(var n in t)e[n]=t[n];return e}function rs(e){var t=e.parentNode;t&&t.removeChild(e)}function os(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?Hi.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return is(e,s,r,o,null)}function is(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Ji,__i:-1,__u:0};return null==o&&null!=Wi.vnode&&Wi.vnode(i),i}function ss(e){return e.children}function as(e,t){this.props=e,this.context=t}function cs(e,t){if(null==t)return e.__?cs(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?cs(e):null}function us(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=ns({},o)).__v=o.__v+1,Wi.vnode&&Wi.vnode(r),bs(s,r,o,e.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,i??cs(o),!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&ls(r),r}function ls(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return ls(e)}}function ps(e){(!e.__d&&(e.__d=!0)&&Ki.push(e)&&!ds.__r++||Gi!==Wi.debounceRendering)&&((Gi=Wi.debounceRendering)||Vi)(ds)}function ds(){var e,t,n,r=[],o=[];for(Ki.sort(Xi);e=Ki.shift();)e.__d&&(n=Ki.length,t=us(e,r,o)||t,0===n||Ki.length>n?(Ss(r,t,o),o.length=r.length=0,t=void 0,Ki.sort(Xi)):t&&Wi.__c&&Wi.__c(t,Zi));t&&Ss(r,t,o),ds.__r=0}function fs(e,t,n,r,o,i,s,a,c,u,l){var p,d,f,h,m,g=r&&r.__k||Zi,_=t.length;for(n.__d=c,function(e,t,n){var r,o,i,s,a,c=t.length,u=n.length,l=u,p=0;for(e.__k=[],r=0;r<c;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?is(null,o,null,null,o):ts(o)?is(ss,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?is(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=ms(o,n,s=r+p,l),o.__i=a,i=null,-1!==a&&(l--,(i=n[a])&&(i.__u|=131072)),null==i||null===i.__v?(-1==a&&p--,"function"!=typeof o.type&&(o.__u|=65536)):a!==s&&(a===s+1?p++:a>s?l>c-s?p+=a-s:p--:p=a<s&&a==s-1?a-s:0,a!==r+p&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=cs(i)),Ts(i,i,!1),n[r]=null,l--);if(l)for(r=0;r<u;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=cs(i)),Ts(i,i))}(n,t,g),c=n.__d,p=0;p<_;p++)null!=(f=n.__k[p])&&"boolean"!=typeof f&&"function"!=typeof f&&(d=-1===f.__i?Qi:g[f.__i]||Qi,f.__i=p,bs(e,f,d,o,i,s,a,c,u,l),h=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&ks(d.ref,null,f),l.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||d.__k===f.__k?c=hs(f,c,e):"function"==typeof f.type&&void 0!==f.__d?c=f.__d:h&&(c=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=m}function hs(e,t,n){var r,o;
vendor: 4,235 bytes, line 1
1if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=hs(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function ms(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,c=t[n];if(null===c||c&&o==c.key&&i===c.type)return n;if(r>(null==c||131072&c.__u?0:1))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a++}}return-1}function gs(e,t,n){"-"===t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||es.test(t)?n:n+"px"}function _s(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||gs(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||gs(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=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+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?vs:ys,i)):e.removeEventListener(t,i?vs:ys,i);else{if(o)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]=n??"";break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function ys(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(Wi.event?Wi.event(e):e)}}function vs(e){if(this.l)return this.l[e.type+!0](Wi.event?Wi.event(e):e)}function bs(e,t,n,r,o,i,s,a,c,u){var l,p,d,f,h,m,g,_,y,v,b,S,w,k,T,x=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(l=Wi.__b)&&l(t);e:if("function"==typeof x)try{if(_=t.props,y=(l=x.contextType)&&r[l.__c],v=l?y?y.props.value:l.__:r,n.__c?g=(p=t.__c=n.__c).__=p.__E:("prototype"in x&&x.prototype.render?t.__c=p=new x(_,v):(t.__c=p=new as(_,v),p.constructor=x,p.render=xs),y&&y.sub(p),p.props=_,p.state||(p.state={}),p.context=v,p.__n=r,d=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=x.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=ns({},p.__s)),ns(p.__s,x.getDerivedStateFromProps(_,p.__s))),f=p.props,h=p.state,p.__v=t,d)null==x.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==x.getDerivedStateFromProps&&_!==f&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(_,v),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(_,p.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=_,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<p._sb.length;b++)p.__h.push(p._sb[b]);p._sb=[],p.__h.length&&s.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(_,p.__s,v),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(f,h,m)})}if(p.context=v,p.props=_,p.__P=e,p.__e=!1,S=Wi.__r,w=0,"prototype"in x&&x.prototype.render){for(p.state=p.__s,p.__d=!1,S&&S(t),l=p.render(p.props,p.state,p.context),k=0;k<p._sb.length;k++)p.__h.push(p._sb[k]);p._sb=[]}else do{p.__d=!1,S&&S(t),l=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++w<25);p.state=p.__s,null!=p.getChildContext&&(r=ns(ns({},r),p.getChildContext())),d||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(f,h)),fs(e,ts(T=null!=l&&l.type===ss&&null==l.key?l.props.children:l)?T:[T],t,n,r,o,i,s,a,c,u),p.base=t.__e,t.__u&=-161,p.__h.length&&s.push(p),g&&(p.__E=p.__=null)}catch(e){t.__v=null,c||null!=i?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),Wi.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ws(n.__e,t,n,r,o,i,s,c,u);(l=Wi.diffed)&&l(t)}function Ss(e,t,n){for(var r=0;r<n.length;r++)ks(n[r],n[++r],n[++r]);Wi.__c&&Wi.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){Wi.__e(e,t.__v)}})}function ws(e,t,n,r,o,i,s,a,c){var u,l,p,d,f,h,m,g=n.props,_=t.props,y=t.type;if("svg"===y&&(o=!0),null!=i)for(u=0;
vendor: 2,340 bytes, line 1
1u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,i[u]=null;break}if(null==e){if(null===y)return document.createTextNode(_);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),i=null,a=!1}if(null===y)g===_||a&&e.data===_||(e.data=_);else{if(i=i&&Hi.call(e.childNodes),g=n.props||Qi,!a&&null!=i)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?p=f:"key"===u||u in _||_s(e,u,null,f,o));for(u in _)f=_[u],"children"==u?d=f:"dangerouslySetInnerHTML"==u?l=f:"value"==u?h=f:"checked"==u?m=f:"key"===u||a&&"function"!=typeof f||g[u]===f||_s(e,u,f,g[u],o);if(l)a||p&&(l.__html===p.__html||l.__html===e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(p&&(e.innerHTML=""),fs(e,ts(d)?d:[d],t,n,r,o&&"foreignObject"!==y,i,s,i?i[0]:n.__k&&cs(n,0),a,c),null!=i)for(u=i.length;u--;)null!=i[u]&&rs(i[u]);a||(u="value",void 0!==h&&(h!==e[u]||"progress"===y&&!h||"option"===y&&h!==g[u])&&_s(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&_s(e,u,m,g[u],!1))}return e}function ks(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Wi.__e(e,n)}}function Ts(e,t,n){var r,o;if(Wi.unmount&&Wi.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ks(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Wi.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ts(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||rs(e.__e),e.__=e.__e=e.__d=void 0}function xs(e,t,n){return this.constructor(e,n)}Hi=Zi.slice,Wi={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},Ji=0,as.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ns({},this.state),"function"==typeof e&&(e=e(ns({},n),this.props)),e&&ns(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),ps(this))},as.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ps(this))},as.prototype.render=ss,Ki=[],Vi="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,Xi=function(e,t){return e.__v.__b-t.__v.__b},ds.__r=0;var Es,Cs,Rs,Is,Ps=0,As=[],Os=[],Ns=Wi,$s=Ns.__b,Ms=Ns.__r,Ls=Ns.diffed,Ds=Ns.__c,zs=Ns.unmount,js=Ns.__;function Us(e,t){Ns.__h&&Ns.__h(Cs,e,Ps||t),Ps=0;var n=Cs.__H||(Cs.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Os}),n.__[e]}function Ys(e){return Ps=1,Bs(Qs,e)}function Bs(e,t,n){var r=Us(Es++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Qs(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Cs,!Cs.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,n);var s=!1;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),!(!s&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};Cs.u=!0;var i=Cs.shouldComponentUpdate,s=Cs.componentWillUpdate;Cs.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}s&&s.call(this,e,t,n)},Cs.shouldComponentUpdate=o}return r.__N||r.__}function Fs(e,t){var n=Us(Es++,4);!Ns.__s&&Xs(n.__H,t)&&(n.__=e,n.i=t,Cs.__h.push(n))}function qs(e,t){var n=Us(Es++,7);return Xs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Hs(e,t){return Ps=8,qs(function(){return e},t)}function Ws(){for(var e;e=As.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Gs),e.__H.__h.forEach(Vs),e.__H.__h=[]}catch(t){e.__H.__h=[],Ns.__e(t,e.__v)}}Ns.__b=function(e){Cs=null,$s&&$s(e)},Ns.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),js&&js(e,t)},Ns.__r=function(e){Ms&&Ms(e),Es=0;var t=(Cs=e.__c).__H;t&&(Rs===Cs?(t.__h=[],Cs.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Os,e.__N=e.i=void 0})):(t.__h.forEach(Gs),t.__h.forEach(Vs),t.__h=[],Es=0)),Rs=Cs},Ns.diffed=function(e){Ls&&Ls(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==As.push(t)&&Is===Ns.requestAnimationFrame||((Is=Ns.requestAnimationFrame)||Ks)(Ws)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Os&&(e.__=e.__V),e.i=void 0,e.__V=Os})),Rs=Cs=null},Ns.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Gs),e.__h=e.__h.filter(function(e){return!e.__||Vs(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Ns.__e(n,e.__v)}}),Ds&&Ds(e,t)},Ns.unmount=function(e){zs&&zs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Gs(e)}catch(e){t=e}}),n.__H=void 0,t&&Ns.__e(t,n.__v))};var Js="function"==typeof requestAnimationFrame;function Ks(e){var t,n=function(){clearTimeout(r),Js&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Js&&(t=requestAnimationFrame(n))}function Gs(e){var t=Cs,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Cs=t}function Vs(e){var t=Cs;e.__c=e.__(),Cs=t}function Xs(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Qs(e,t){return"function"==typeof t?t(e):t}const Zs=Object.defineProperty({__proto__:null,useCallback:Hs,useContext:function(e){var t=Cs.context[e.__c],n=Us(Es++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Cs)),t.props.value):e.__},useDebugValue:function(e,t){Ns.useDebugValue&&Ns.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=Us(Es++,3);!Ns.__s&&Xs(n.__H,t)&&(n.__=e,n.i=t,Cs.__H.__h.push(n))},useErrorBoundary:function(e){var t=Us(Es++,10),n=Ys();return t.__=e,Cs.componentDidCatch||(Cs.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=Us(Es++,11);if(!e.__){for(var t=Cs.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){Ps=6,Fs(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:Fs,useMemo:qs,useReducer:Bs,useRef:function(e){return Ps=5,qs(function(){return{current:e}},[])},useState:Ys},Symbol.toStringTag,{value:"Module"});function ea(){const e=e=>ki.createElementNS("http://www.w3.org/2000/svg",e),t=Di(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Di(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function ta({options:e}){const t=qs(()=>({__html:ea().outerHTML}),[]);return os("h2",{class:"dialog__header"},os("span",{class:"dialog__title"},e.formTitle),e.showBranding?os("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function na(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function ra({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:a,showEmail
1:c,showName:u,screenshotInput:l}){const{tags:p,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:f,cancelButtonLabel:h,emailLabel:m,emailPlaceholder:g,isEmailRequired:_,isNameRequired:y,messageLabel:v,messagePlaceholder:b,nameLabel:S,namePlaceholder:w,submitButtonLabel:k,isRequiredLabel:T}=e,[x,E]=Ys(!1),[C,R]=Ys(null),[I,P]=Ys(!1),A=l?.input,[O,N]=Ys(null),$=Hs(e=>{N(e),P(!1)},[]),M=Hs(e=>{const t=function(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:m,isEmailRequired:_,isNameRequired:y,messageLabel:v,nameLabel:S});return t.length>0?R(`Please enter in the following required fields: ${t.join(", ")}`):R(null),0===t.length},[m,_,y,v,S]),L=Hs(async e=>{E(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(l&&I?l.value():void 0),r={name:na(t,"name"),email:na(t,"email"),message:na(t,"message"),attachments:n?[n]:void 0};if(!M(r))return;try{const e=await o({name:r.name,email:r.email,message:r.message,source:"widget",tags:p},{attachments:r.attachments});i(r,e)}catch(e){Mi&&s.Yz.error(e);const t=e instanceof Error?e:new Error(String(e));R(t.message),a(t)}}finally{E(!1)}},[l&&I,i,a]);return os("form",{class:"form",onSubmit:L},A&&I?os(A,{onError:$}):null,os("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},os("div",{class:"form__top"},C?os("div",{class:"form__error-container"}
1,C):null,u?os("label",{for:"name",class:"form__label"},os(oa,{label:S,isRequiredLabel:T,isRequired:y}),os("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:w,required:y,type:"text"})):os("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),c?os("label",{for:"email",class:"form__label"},os(oa,{label:m,isRequiredLabel:T,isRequired:_}),os("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:_,type:"email"})):os("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),os("label",{for:"message",class:"form__label"},os(oa,{label:v,isRequiredLabel:T,isRequired:!0}),os("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5})),A?os("label",{for:"screenshot",class:"form__label"},os("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{N(null),P(e=>!e)}},I?f:d),O?os("div",{class:"form__error-container"},O.message):null):null),os("div",{class:"btn-group"},os("button",{class:"btn btn--primary",disabled:x,type:"submit"},k),os("button",{class:"btn btn--default",disabled:x,type:"button",onClick:r},h))))}function oa({label:e,isRequired:t,isRequiredLabel:n}){return os("span",{class:"form__label__text"},e,t&&os("span",{class:"form__label__text--required"},n))}function ia(){const e=e=>wi.document.createElementNS("http://www.w3.org/2000/svg",e),t=Di(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=Di(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Di(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"}),o=Di(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const i=e("defs"),s=Di(e("clipPath"),{id:"clip0_57_156"}),a=Di(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),t}function sa({open:e,onFormSubmitted:t,...n}){const r=n.options,o=qs(()=>({__html:ia().outerHTML}),[]),[i,s]=Ys(null),a=Hs(()=>{i&&(clearTimeout(i),s(null)),t()},[i]),c=Hs((e,r)=>{n.onSubmitSuccess(e,r),s(setTimeout(()=>{t(),s(null)},5e3))},[t]);return os(ss,null,i?os("div",{class:"success__position",onClick:a},os("div",{class:"success__content"},r.successMessageText,os("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):os("dialog",{class:"dialog",onClick:r.onFormClose,open:e},os("div",{class:"dialog__position"},os("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},os(ta,{options:r}),os(ra,{...n,onSubmitSuccess:c})))))}const aa=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const o=r,i=e.useSentryUser,s=function(){const e=(0,p.o5)().getUser(),t=(0,p.rm)().getUser(),n=(0,p.m6)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),a=ki.createElement("div"),c=function(e){const t=ki.createElement("style");return t.textContent="\n:host {\n  --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n  position: fixed;\n  z-index: var(--z-index);\n  margin: 0;\n  inset: 0;\n\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0;\n  height: 100vh;\n  width: 100vw;\n\n  color: var(--dialog-color, var(--foreground));\n  fill: var(--dialog-color, var(--foreground));\n  line-height: 1.75em;\n\n  background-color: rgba(0, 0, 0, 0.05);\n  border: none;\n  inset: 0;\n  opacity: 1;\n  transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n  position: fixed;\n  z-index: var(--z-index);\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  display: flex;\n  max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n  .dialog__position {\n    inset: var(--page-margin);\n    padding: 0;\n  }\n}\n\n.dialog__position:has(.editor) {\n  inset: var(--page-margin);\n  padding: 0;\n}\n\n.dialog:not([open]) {\n  opacity: 0;\n  pointer-events: none;\n  visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n  transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  padding: var(--dialog-padding, 24px);\n  max-width: 100%;\n  width: 100%;\n  max-height: 100%;\n  overflow: auto;\n\n  background: var(--dialog-background, var(--background));\n  border-radius: var(--dialog-border-radius, 20px);\n  border: var(--dialog-border, var(--border));
1\n  box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n  transform: translate(0, 0) scale(1);\n  transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n  display: flex;\n  gap: 4px;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\n}\n.dialog__title {\n  align-self: center;\n  width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n  .dialog__title {\n    width: auto;\n  }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n  width: auto;\n}\n\n\n.brand-link {\n  display: inline-flex;\n}\n.brand-link:focus-visible {\n  outline: var(--outline);\n}\n\n\n.form {\n  display: flex;\n  overflow: auto;\n  flex-direction: row;\n  gap: 16px;\n  flex: 1 0;\n}\n\n.form fieldset {\n  border: none;\n  margin: 0;\n  padding: 0;\n}\n\n.form__right {\n  flex: 0 0 auto;\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n  width: var(--form-width, 272px);\n}\n\n.form__top {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.form__error-container {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n.form__label {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin: 0px;\n}\n\n.form__label__text {\n  display: flex;\n  gap: 4px;\n  align-items: center;\n}\n\n.form__label__text--required {\n  font-size: 0.85em;\n}\n\n.form__input {\n  font-family: inherit;\n  line-height: inherit;\n  background: transparent;\n  box-sizing: border-box;\n  border: var(--input-border, var(--border));\n  border-radius: var(--input-border-radius, 6px);\n  color: var(--input-color, inherit);\n  fill: var(--input-color, inherit);\n  font-size: var(--input-font-size, inherit);\n  font-weight: var(--input-font-weight, 500);\n  padding: 6px 12px;\n}\n\n.form__input::placeholder {\n  opacity: 0.65;\n  color: var(--input-placeholder-color, inherit);\n  filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n  outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n  font-family: inherit;\n  resize: vertical;\n}\n\n.error {\n  color: var(--error-color);\n  fill: var(--error-color);\n}\n\n\n.btn-group {\n  display: grid;\n  gap: 8px;\n}\n\n.btn {\n  line-height: inherit;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  cursor: pointer;\n  font-family: inherit;\n  font-size: var(--button-font-size, inherit);\n  font-weight: var(--button-font-weight, 600);\n  padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n  opacity: 0.6;\n  pointer-events: none;\n}\n\n.btn--primary {\n  color: var(--button-primary-color, var(--accent-foreground));\n  fill: var(--button-primary-color, var(--accent-foreground));\n  background: var(--button-primary-background, var(--accent-background));\n  border: var(--button-primary-border, var(--border));\n  border-radius: var(--button-primary-border-radius, 6px);\n  font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n  color: var(--button-primary-hover-color, var(--accent-foreground));\n  fill: var(--button-primary-hover-color, var(--accent-foreground));\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n  background: var(--button-primary-hover-background, var(--accent-background));\n  filter: var(--interactive-filter);\n  outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-background, var(--background));\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n  color: var(--button-color, var(--foreground));\n  fill: var(--button-color, var(--foreground));\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n  background: var(--button-hover-background, var(--background));\n  filter: var(--interactive-filter);\n  outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n  position: fixed;\n  inset: var(--dialog-inset);\n  padding: var(--page-margin);\n  z-index: var(--z-index);\n}\n.success__content {\n  background: var(--success-background, var(--background));\n  border: var(--success-border, var(--border));\n  border-radius: var(--success-border-radius, 1.7em/50%);
1\n  box-shadow: var(--success-box-shadow, var(--box-shadow));\n  font-weight: var(--success-font-weight, 600);\n  color: var(--success-color);\n  fill: var(--success-color);\n  padding: 12px 24px;\n  line-height: 1.75em;\n\n  display: grid;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 6px;\n  cursor: default;\n}\n\n.success__icon {\n  display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(e.styleNonce);let u="";const l={get el(){return a},appendToDom(){o.contains(c)||o.contains(a)||(o.appendChild(c),o.appendChild(a))},removeFromDom(){a.remove(),c.remove(),ki.body.style.overflow=u},open(){f(!0),e.onFormOpen?.(),(0,p.KU)()?.emit("openFeedbackWidget"),u=ki.body.style.overflow,ki.body.style.overflow="hidden"},close(){f(!1),ki.body.style.overflow=u}},d=t?.createInput({h:os,hooks:Zs,dialog:l,options:e}),f=t=>{!function(e,t){var n,r,o;Wi.__&&Wi.__(e,t),n=t.__k,r=[],o=[],bs(t,e=t.__k=os(ss,null,[e]),n||Qi,Qi,void 0!==t.ownerSVGElement,n?null:t.firstChild?Hi.call(t.childNodes):null,r,n?n.__e:t.firstChild,!1,o),e.__d=void 0,Ss(r,e,o)}(os(sa,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(i&&s?.[i.name]||""),defaultEmail:String(i&&s?.[i.email]||""),onFormClose:()=>{f(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{f(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),a)};return l}});function ca(e){const t=ki.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`\n.editor {\n  display: flex;\n  flex-grow: 1;\n  flex-direction: column;\n}\n\n.editor__image-container {\n  justify-items: center;\n  padding: 15px;\n  position: relative;\n  height: 100%;\n  border-radius: var(--menu-border-radius, 6px);\n\n  background-color: ${n};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${n} 8px,\n      ${n} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ${r} 15px,\n      ${r} 16px\n    );\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n\n.editor__canvas-container > * {\n  object-fit: contain;\n  position: absolute;\n}\n\n.editor__tool-container {\n  padding-top: 8px;\n  display: flex;\n  justify-content: center;\n}\n\n.editor__tool-bar {\n  display: flex;\n  gap: 8px;\n}\n\n.editor__tool {\n  display: flex;\n  padding: 8px 12px;\n  justify-content: center;\n  align-items: center;\n  border: var(--button-border, var(--border));\n  border-radius: var(--button-border-radius, 6px);\n  background: var(--button-background, var(--background));\n  color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n  background: var(--button-primary-background, var(--accent-background));\n  color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n  position: absolute;\n  z-index: 2;\n}\n\n.editor__rect button {\n  opacity: 0;\n  position: absolute;\n  top: -12px;\n  right: -12px;\n  cursor: pointer;\n  padding: 0;\n  z-index: 3;\n  border: none;\n  background: none;\n}\n\n.editor__rect:hover button {\n  opacity: 1;\n}\n`,e&&t.setAttribute("nonce",e),t}function ua(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function la(e,t){ua(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function pa(e,t,n){ua(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{!function(e,t,n){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,r,t)})})}function da({h:e,hooks:t,outputBuffer:n,dialog:r,options:o}){const i=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:o}){const i=function(){const[t,n]=e.useState(wi.devicePixelRatio??1);return e.useEffect(()=>{const e=()=>{n(wi.devicePixelRatio)},t=matchMedia(`(resolution: ${wi.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();const e=await Ti.mediaDevices.getDisplayMedia({video:{width:wi.innerWidth*i,height:wi.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=ki.createElement("video");await new Promise((t,r)=>{o.srcObject=e,o.onloadedmetadata=()=>
1{n(o,i),e.getTracks().forEach(e=>e.stop()),t()},o.play().catch(r)}),r()})().catch(o)},[])}}({hooks:t}),s=function({h:e}){return function({action:t,setAction:n,options:r}){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:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:"editor__tool "+("hide"===t?"editor__tool--active":""),onClick:()=>{n("hide"===t?"":"hide")}},r.hideToolText)))}}({h:e}),a=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}),c={__html:ca(o.styleNonce).innerText},u=r.el.style,l=({screenshot:r})=>{const[i,u]=t.useState("highlight"),[l,p]=t.useState([]),d=t.useRef(null),f=t.useRef(null),h=t.useRef(null),m=t.useRef(null),[g,_]=t.useState(1),y=t.useMemo(()=>{const e=ki.getElementById(o.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[o.id]);t.useLayoutEffect(()=>{const e=()=>{const t=d.current;t&&(ua(r.canvas,{alpha:!1},e=>{const n=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);_(n)}),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),wi.addEventListener("resize",e),()=>{wi.removeEventListener("resize",e)}},[r]);const v=t.useCallback((e,t)=>{ua(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{v(f.current,r.dpi),la(f.current,r.canvas)},[r]),t.useEffect(()=>{v(h.current,r.dpi),ua(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),pa(h.current,y,l)},[l,y]),t.useEffect(()=>{v(n,r.dpi),la(n,r.canvas),ua(ki.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,pa(e,y,l),la(n,e)})},[l,r,y]);const b=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),p(t=>{const n=[...t];return n.splice(e,1),n})},[]),S={width:r.canvas.width*g+"px",height:r.canvas.height*g+"px"},w=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:d},e("canvas",{ref:f,id:"background",style:S}),e("canvas",{ref:h,id:"foreground",style:S}),e("div",{ref:m,onMouseDown:e=>{if(!i||!m.current)return;const t=m.current.getBoundingClientRect(),n={type:i,x:e.offsetX/g,y:e.offsetY/g},r=(e,n)=>{const r=(n.clientX-t.x)/g,o=(n.clientY-t.y)/g;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,o),w:Math.abs(r-e.x),h:Math.abs(o-e.y)}},o=e=>{ua(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),pa(h.current,y,[...l,r(n,e)])},s=e=>{const t=r(n,e);t.w*g>=1&&t.h*g>=1&&p(e=>[...e,t]),ki.removeEventListener("mousemove",o),ki.removeEventListener("mouseup",s)};ki.addEventListener("mousemove",o),ki.addEventListener("mouseup",s)},style:S},l.map((t,n)=>e("div",{key:n,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":o.removeHighlightText,onClick:b(n),onMouseDown:w,onMouseUp:w,type:"button"},e(a,null))))))),e(s,{options:o,action:i,setAction:u}))};return function({onError:r}){const[o,s]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{ua(ki.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),s({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(e=>{u.display="block",r(e)},[])}),o?e(l,{screenshot:o}):e("div",null)}}const fa=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=ki.createElement("canvas");return{input:da({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{const e=await new Promise(e=>
1{o.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),ha=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],ma={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"},ga=_t;async function _a(e,t){const n=ha.includes(e)?function(e){return ma[e]||e.replace("Integration","").toLowerCase()}(e):void 0,r=ga.Sentry=ga.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const o=r[e];if("function"==typeof o&&!("_isShim"in o))return o;const i=function(e){const t=(0,p.KU)(),n=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${a.M}/${e}.min.js`,n).toString()}(n),s=_t.document.createElement("script");s.src=i,s.crossOrigin="anonymous",s.referrerPolicy="strict-origin",t&&s.setAttribute("nonce",t);const c=new Promise((e,t)=>{s.addEventListener("load",()=>e()),s.addEventListener("error",t)}),u=_t.document.currentScript,l=_t.document.body||_t.document.head||u?.parentElement;if(!l)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);l.appendChild(s);try{await c}catch{throw new Error(`Error when loading integration: ${e}`)}const d=r[e];if("function"!=typeof d)throw new Error(`Could not load integration: ${e}`);return d}const ya=Fi({lazyLoadIntegration:_a}),va=Fi({getModalIntegration:()=>aa,getScreenshotIntegration:()=>fa}),ba="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function Sa(e,t){let n;return(0,W.yH)(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function wa(e,t){return n=>{const r=e(n),o=new Map,i=t||(e=>{const t=e.getEvent();return t?.extra?.[ba]&&Array.isArray(t.extra[ba])?t.extra[ba]:[]});function s(t,r){const i=r?`${t}:${r}`:t;let s=o.get(i);if(!s){const a=(0,z.hH)(t);if(!a)return;const c=Y(a,n.tunnel);s=r?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=Sa(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,r)({...n,url:c}):e({...n,url:c}),o.set(i,s)}return[t,s]}return{send:async function(e){const t=i({envelope:e,getEvent:function(t){return Sa(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?s(e,void 0):s(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",r]];return(await Promise.all(n.map(([t,n])=>n.send(function(e,t){return(0,W.h4)(t?{...e[0],dsn:t}:e[0],e[1])}(e,t)))))[0]},flush:async function(e){const t=[...o.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var ka=n(87553);const Ta=(e={})=>{const t=e.levels||s.Ow,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in i.O&&Tt(({args:r,level:o})=>{(0,p.KU)()===e&&t.includes(o)&&function(e,t,n){const r=(0,$t.t)(t),o=new Error,i={level:(0,$t.t)(t),extra:{arguments:e}};(0,p.v4)(s=>{if(s.addEventProcessor(e=>(e.logger="console",(0,y.M6)(e,{handled:n,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){const t=`Assertion failed: ${(0,v.gt)(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),s.captureMessage(t,r,{captureContext:i,syntheticException:o})}return}const a=e.find(e=>e instanceof Error);if(a)return void(0,u.Cp)(a,i);const c=(0,v.gt)(e," ");s.captureMessage(c,r,{captureContext:i,syntheticException:o})})}(r,o,n)})}}};function xa(e,t,n){return"util"in i.O&&"function"==typeof i.O.util.format?i.O.util.format(...e):function(e,t,n){return e.map(e=>(0,Z.sO)(e)?String(e):JSON.stringify((0,nt.S8)(e,t,n))).join(" ")}(e,t,n)}function Ea(e){return/%[sdifocO]/.test(e)}function Ca(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}const Ra={[I.JD]:"auto.log.console"},Ia=(e={})=>{const t=e.levels||s.Ow;return{name:"ConsoleLogs",setup(e){const{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=e.getOptions();if(!n)return void(l.T&&s.Yz.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const i=Tt(({args:n,level:i})=>{if((0,p.KU)()!==e||!t.includes(i))return;const s=n[0],a=n.slice(1);if("assert"===i)return void(s||he({level:"error",message:a.length>0?`Assertion failed: ${xa(a,r,o)}`:"Assertion failed",attributes:Ra}));const c="log"===i,u=n.length>
11&&"string"==typeof n[0]&&!Ea(n[0]),l={...Ra,...u?Ca(s,a):{}};he({level:c?"info":i,message:xa(n,r,o),severityNumber:c?10:void 0,attributes:l})});e.registerCleanup(i)}}},Pa=["trace","debug","info","warn","error","fatal"];function Aa(e={}){const t=new Set(e.levels??Pa),n=e.client;return{log(e){const{type:r,level:o,message:i,args:s,tag:a,date:c,...u}=e,l=n||(0,p.KU)();if(!l)return;const d=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){const t=Oa[e];if(t)return t}if("number"==typeof t){const e=Na[t];if(e)return e}return"info"}(r,o);if(!t.has(d))return;const{normalizeDepth:f=3,normalizeMaxBreadth:h=1e3}=l.getOptions(),m={};for(const[e,t]of Object.entries(u))m[e]=(0,nt.S8)(t,f,h);m["sentry.origin"]="auto.log.consola",a&&(m["consola.tag"]=a),r&&(m["consola.type"]=r),null!=o&&"number"==typeof o&&(m["consola.level"]=o);const g=function(e,t,n){const{message:r,attributes:o,messageTemplate:i,messageParameters:s}=e,a={};if(i&&s){const e=Ca(i,s);for(const[r,o]of Object.entries(e))a[r]=r.startsWith("sentry.message.parameter.")?(0,nt.S8)(o,t,n):o}else s&&s.length>0&&s.forEach((e,r)=>{a[`sentry.message.parameter.${r}`]=(0,nt.S8)(e,t,n)});return{message:r,attributes:{...(0,nt.S8)(o,t,n),...a}}}(function(e,t,n){if(!e?.length)return{message:""};const r=xa(e,t,n),o=e[0];if((0,Z.Qd)(o)){const t="string"==typeof e[1]?2:1;return{message:r,attributes:o,messageParameters:e.slice(t)}}{const t=e.slice(1),n=t.length>0&&"string"==typeof o&&!Ea(o);return{message:r,messageTemplate:n?o:void 0,messageParameters:n?t:void 0}}}(s,f,h),f,h);g?.attributes&&Object.assign(m,g.attributes),he({level:d,message:g?.message||i||s&&xa(s,f,h)||"",attributes:m})}}}const Oa={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"},Na={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"},$a="gen_ai.prompt",Ma="gen_ai.system",La="gen_ai.request.model",Da="gen_ai.request.stream",za="gen_ai.request.temperature",ja="gen_ai.request.max_tokens",Ua="gen_ai.request.frequency_penalty",Ya="gen_ai.request.presence_penalty",Ba="gen_ai.request.top_p",Fa="gen_ai.request.top_k",qa="gen_ai.request.encoding_format",Ha="gen_ai.request.dimensions",Wa="gen_ai.response.finish_reasons",Ja="gen_ai.response.model",Ka="gen_ai.response.id",Ga="gen_ai.response.stop_reason",Va="gen_ai.usage.input_tokens",Xa="gen_ai.usage.output_tokens",Qa="gen_ai.usage.total_tokens",Za="gen_ai.operation.name",ec="sentry.sdk_meta.gen_ai.input.messages.original_length",tc="gen_ai.input.messages",nc="gen_ai.system_instructions",rc="gen_ai.response.text",oc="gen_ai.request.available_tools",ic="gen_ai.response.streaming",sc="gen_ai.response.tool_calls",ac="gen_ai.agent.name",cc="gen_ai.pipeline.name",uc="gen_ai.conversation.id",lc="gen_ai.usage.cache_creation_input_tokens",pc="gen_ai.usage.cache_read_input_tokens",dc="gen_ai.invoke_agent",fc="gen_ai.embeddings.input",hc="gen_ai.embeddings",mc="gen_ai.execute_tool",gc="gen_ai.tool.name",_c="gen_ai.tool.call.id",yc="gen_ai.tool.type",vc="gen_ai.tool.input",bc="gen_ai.tool.output",Sc="gen_ai.tool.description";function wc(e){return!(!e||"object"!=typeof e)&&(function(e){return"type"in e&&"string"==typeof e.type&&"source"in e&&wc(e.source)}(e)||Tc(e)||function(e){return"image_url"in e&&("string"==typeof e.image_url?e.image_url.startsWith("data:"):kc(e))}(e)||xc(e)||Ec(e)||function(e){return"media_type"in e&&"string"==typeof e.media_type&&"data"in e}(e)||function(e){return"type"in e&&"file"===e.type&&"mediaType"in e&&"string"==typeof e.mediaType&&"data"in e&&"string"==typeof e.data&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}(e)||function(e){return"type"in e&&"image"===e.type&&"image"in e&&"string"==typeof e.image&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}(e)||function(e){return"type"in e&&("blob"===e.type||"base64"===e.type)}(e)||function(e){return"b64_json"in e}(e)||function(e){return"type"in e&&"result"in e&&"image_generation"===e.type}(e)||function(e){return"uri"in e&&"string"==typeof e.uri&&e.uri.startsWith("data:")}(e))}function kc(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.
1image_url.url.startsWith("data:")}function Tc(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function xc(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 Ec(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}const Cc="[Blob substitute]",Rc=["image_url","data","content","b64_json","result","uri","image"];function Ic(e){const t={...e};wc(t.source)&&(t.source=Ic(t.source)),Tc(e)&&(t.inlineData={...e.inlineData,data:Cc}),kc(e)&&(t.image_url={...e.image_url,url:Cc}),xc(e)&&(t.input_audio={...e.input_audio,data:Cc}),Ec(e)&&(t.file={...e.file,file_data:Cc});for(const e of Rc)"string"==typeof t[e]&&(t[e]=Cc);return t}const Pc=2e4,Ac=e=>(new TextEncoder).encode(e).length,Oc=e=>Ac(JSON.stringify(e));function Nc(e,t){if(Ac(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){const i=Math.floor((n+r)/2),s=e.slice(0,i);Ac(s)<=t?(o=s,n=i+1):r=i-1}return o}function $c(e){return"string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:""}function Mc(e,t){return"string"==typeof e?t:{...e,text:t}}function Lc(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function Dc(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function zc(e,t){if(!e)return[];if("string"==typeof e){const n=Nc(e,t);return n?[n]:[]}return"object"!=typeof e?[]:function(e){return null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content}(e)?function(e,t){const n={...e,content:""},r=t-Oc(n);if(r<=0)return[];const o=Nc(e.content,r);return[{...e,content:o}]}(e,t):Lc(e)||Dc(e)?function(e,t){const{key:n,items:r}=function(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}(e);if(null===n||0===r.length)return[];const o=r.map(e=>Mc(e,""));let i=t-Oc({...e,[n]:o});if(i<=0)return[];const s=[];for(const e of r){const t=$c(e),n=Ac(t);if(!(n<=i)){if(0===s.length){const n=Nc(t,i);n&&s.push(Mc(e,n));break}break}s.push(e),i-=n}return s.length<=0?[]:[{...e,[n]:s}]}(e,t):[]}function jc(e){return e.map(e=>{let t;return e&&"object"==typeof e&&(Lc(e)?t={...e,content:jc(e.content)}:"content"in e&&wc(e.content)&&(t={...e,content:Ic(e.content)}),Dc(e)&&(t={...t??e,parts:jc(e.parts)}),wc(t)?t=Ic(t):wc(e)&&(t=Ic(e))),t??e})}function Uc(e,t){if(!Array.isArray(e)||0===e.length)return e;const n=t-2,r=jc([e[e.length-1]]),o=r[0];return Oc(o)<=n?r:zc(o,n)}function Yc(e){const t=Boolean((0,p.KU)()?.getOptions().sendDefaultPii);return{...e,recordInputs:e?.recordInputs??t,recordOutputs:e?.recordOutputs??t}}function Bc(e){const t=(0,p.KU)();return e??!(t&&nr(t))}function Fc(e,t){return e?`${e}.${t}`:t}function qc(e,t,n){if(!e.isRecording())return;const r={[ic]:!0};t.responseId&&(r[Ka]=t.responseId),t.responseModel&&(r[Ja]=t.responseModel),void 0!==t.promptTokens&&(r[Va]=t.promptTokens),void 0!==t.completionTokens&&(r[Xa]=t.completionTokens),void 0!==t.totalTokens?r[Qa]=t.totalTokens:void 0===t.promptTokens&&void 0===t.completionTokens&&void 0===t.cacheCreationInputTokens&&void 0===t.cacheReadInputTokens||(r[Qa]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[Wa]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[rc]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[sc]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function Hc(e){return"string"==typeof e?e:JSON.stringify(e)}function Wc(e){if("string"==typeof e)return Nc(e,Pc);if(Array.isArray(e)){const t=Uc(e,Pc);return JSON.stringify(t)}return JSON.stringify(e)}function Jc(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};const n=e[t],r="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;return r?{systemInstructions:JSON.stringify([{type:"text",content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}function Kc(e,t,n){return(0,Z.Qg)(e)?new Proxy(e,{get(e,r){const o=r in Promise.prototype||r===Symbol.toStringTag?t:e,i=Reflect.get(o,r);return"withResponse"===r&&"function"==typeof i?function(){return async function(e,t,n){const r=e.catch(e=>{throw(0,u.Cp)(e,{mechanism:{handled:!1,type:n}}),e}),o=await t,i=await r;return i&&"object"==typeof i&&"data"in i?{...i,data:o}:o}(i.call(e),t,n)}:"function"==typeof i?i.bind(o):i}}):t}const Gc="auto.ai.langchain",Vc={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},Xc=(e,t,n)=>{null!=n&&(e[t]=n)},Qc=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function Zc(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function eu(e){if(Array.isArray(e))try{const t=e.map(e=>e&&"object"==typeof e&&wc(e)?Ic(e):e);return JSON.stringify(t)}catch{return String(e)}return Zc(e)}function tu(e){const t=e.toLowerCase();return Vc[t]??t}function nu(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 ru(e){if(e&&!Array.isArray(e))return e.invocation_params}function ou(e){return e.map(e=>{const t=e._getType;if("function"==typeof t)return{role:tu(t.call(e)),content:eu(e.content)};if(1===e.lc&&e.kwargs){const t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:tu("string"==typeof n?nu(n):"user"),content:eu(e.kwargs?.content)}}if(e.type)return{role:tu(String(e.type).toLowerCase()),content:eu(e.content)};if(e.role)return{role:tu(String(e.role)),content:eu(e.content)};const n=e.constructor?.name;return n&&"Object"!==n?{role:tu(nu(n)),content:eu(e.content)}:{role:"user",content:eu(e.content)}})}function iu(e,t,n){const r={},o="kwargs"in e?e.kwargs:void 0;Qc(r,za,t?.temperature??n?.ls_temperature??o?.temperature),Qc(r,ja,t?.max_tokens??n?.ls_max_tokens??o?.max_tokens),Qc(r,Ba,t?.top_p??o?.top_p);const i=t?.frequency_penalty;Qc(r,Ua,i);const s=t?.presence_penalty;return Qc(r,Ya,s),t&&"stream"in t&&Xc(r,Da,Boolean(t.stream)),r}function su(e,t,n,r,o){return{[Ma]:Zc(e??"langchain"),[Za]:"chat",[La]:Zc(t),[I.JD]:Gc,...iu(n,r,o)}}function au(e){const t={},n=e?.lc_agent_name;return"string"==typeof n&&(t[ac]=n),t}function cu(e={}){const{recordInputs:t,recordOutputs:n}=Yc(e),r=Bc(e.enableTruncation),o=new Map,i=e=>{const t=o.get(e);t?.isRecording()&&(t.end(),o.delete(e))}
1,s={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,n,i,s,a,c,u,l){const p=ru(c),d=function(e,t,n,r,o,i){const s=i?.ls_provider,a=su(s,o?.model??i?.ls_model_name??"unknown",e,o,i);if(n&&Array.isArray(t)&&t.length>0){Xc(a,ec,t.length);const e=t.map(e=>({role:"user",content:e}));Xc(a,tc,r?Wc(e):Hc(e))}return a}(e,n,t,r,p,u),f=d[La];hr({name:`${d[Za]} ${f}`,op:"gen_ai.chat",attributes:{...au(u),...d,[I.uT]:"gen_ai.chat"}},e=>(o.set(i,e),e))},handleChatModelStart(e,n,i,s,a,c,u,l){const p=ru(c),d=function(e,t,n,r,o,i){const s=su(i?.ls_provider??e.id?.[2],o?.model??i?.ls_model_name??"unknown",e,o,i);if(n&&Array.isArray(t)&&t.length>0){const e=ou(t.flat()),{systemInstructions:n,filteredMessages:o}=Jc(e);n&&Xc(s,nc,n);const i=Array.isArray(o)?o.length:0;Xc(s,ec,i),Xc(s,tc,r?Wc(o):Hc(o))}return s}(e,n,t,r,p,u),f=function(e){const t=(e?.invocation_params)?.tools??(e?.options)?.tools;if(!Array.isArray(t)||0===t.length)return;const n=t.map(e=>{const t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}});return JSON.stringify(n)}(a);f&&(d[oc]=f);const h=d[La];hr({name:`${d[Za]} ${h}`,op:"gen_ai.chat",attributes:{...au(u),...d,[I.uT]:"gen_ai.chat"}},e=>(o.set(i,e),e))},handleLLMEnd(e,t,r,s,a){const c=o.get(t);if(c?.isRecording()){const r=function(e,t){if(!e)return;const n={};if(Array.isArray(e.generations)){const r=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);if(r.length>0&&Xc(n,Wa,Zc(r)),function(e,t){const n=[],r=e.flat();for(const e of r){const t=e.message,r=t?.tool_calls;if(Array.isArray(r)&&r.length>0)n.push(...r);else{const t=e.message?.content;if(Array.isArray(t))for(const e of t){const t=e;"tool_use"===t.type&&n.push(t)}}}n.length>0&&Xc(t,sc,Zc(n))}(e.generations,n),t){const t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&Xc(n,rc,Zc(t))}}!function(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)Qc(t,Va,n.promptTokens),Qc(t,Xa,n.completionTokens),Qc(t,Qa,n.totalTokens);else if(r){Qc(t,Va,r.input_tokens),Qc(t,Xa,r.output_tokens);const e=Number(r.input_tokens),n=Number(r.output_tokens),o=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);o>0&&Qc(t,Qa,o),void 0!==r.cache_creation_input_tokens&&Qc(t,lc,r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&Qc(t,pc,r.cache_read_input_tokens)}}(e.llmOutput,n);const r=e.llmOutput,o=e.generations?.[0]?.[0],i=o?.message,s=r?.model_name??r?.model??i?.response_metadata?.model_name;s&&Xc(n,Ja,s);const a=r?.id??i?.id;a&&Xc(n,Ka,a);const c=r?.stop_reason??i?.response_metadata?.finish_reason;return c&&Xc(n,Ga,Zc(c)),n}(e,n);r&&c.setAttributes(r),i(t)}},handleLLMError(e,t){const n=o.get(t);n?.isRecording()&&(n.setStatus({code:sr.TJ,message:"internal_error"}),i(t)),(0,u.Cp)(e,{mechanism:{handled:!1,type:`${Gc}.llm_error_handler`}})},handleChainStart(e,n,r,i,s,a,c,u){if(a?.__sentry_langgraph__)return;const l=u||e.name||"unknown_chain",p={[I.JD]:"auto.ai.langchain","langchain.chain.name":l};t&&(p["langchain.chain.inputs"]=JSON.stringify(n)),hr({name:`chain ${l}`,op:"gen_ai.invoke_agent",attributes:{...p,[I.uT]:"gen_ai.invoke_agent"}},e=>(o.set(r,e),e))},handleChainEnd(e,t){const r=o.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),i(t))},handleChainError(e,t){const n=o.get(t);n?.isRecording()&&(n.setStatus({code:sr.TJ,message:"internal_error"}),i(t)),(0,u.Cp)(e,{mechanism:{handled:!1,type:`${Gc}.chain_error_handler`}})},handleToolStart(e,n,r,i,s,a,c){if(a?.__sentry_langgraph__)return;const u=c||e.name||"unknown_tool",l={...au(a),[I.JD]:Gc,[Za]:"execute_tool",[gc]:u};t&&(l[vc]=n),hr({name:`execute_tool ${u}`,op:"gen_ai.execute_tool",attributes:{...l,[I.uT]:"gen_ai.execute_tool"}},e=>(o.set(r,e),e))},handleToolEnd(e,t){const r=o.get(t);if(r?.isRecording()){if(n){const t=e&&"object"==typeof e&&"content"in e?e.content:e;r.setAttributes({[bc]:"string"==typeof t?t:JSON.stringify(t)})}i(t)}},handleToolError(e,t){const n=o.get(t);n?.isRecording()&&(n.setStatus({code:sr.TJ,message:"internal_error"}),i(t)),(0,u.Cp)(e,{mechanism:{handled:!1,type:`${Gc}.tool_error_handler`}})},copy:()=>s,toJSON:()=>
1({lc:1,type:"not_implemented",id:s.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:s.lc_id})};return s}var uu=n(96860);const lu=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:i}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!(0,Z.bJ)(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,s=pu(t.originalException,r,o);if(s){const t={...e.contexts},r=(0,nt.S8)(s,n);return(0,Z.Qd)(r)&&((0,uu.Gc)(r),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}};function pu(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const i=e[t];o[t]=(0,Z.bJ)(i)||"string"==typeof i?n?(0,v.xv)(`${i}`,n):`${i}`:i}if(t&&void 0!==e.cause)if((0,Z.bJ)(e.cause)){const t=e.cause.name||e.cause.constructor.name;o.cause={[t]:pu(e.cause,!1,n)}}else o.cause=e.cause;if("function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=(0,Z.bJ)(n)?n.toString():n}}return o}catch(e){l.T&&s.Yz.error("Unable to extract extra data from the Error object:",e)}return null}const du=100,fu=10,hu="flag.evaluation.";function mu(e){if(e.type)return e;const t=(0,p.o5)().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e}function gu(e,t,n=du){const r=(0,p.o5)().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r)return void(l.T&&s.Yz.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`));const o=e.findIndex(e=>e.flag===t);-1!==o&&e.splice(o,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function _u(e,t,n=fu){if("boolean"!=typeof t)return;const r=(0,P.Bk)();if(!r)return;const o=(0,P.et)(r).data;(`${hu}${e}`in o||Object.keys(o).filter(e=>e.startsWith(hu)).length<n)&&r.setAttribute(`${hu}${e}`,t)}const yu=()=>
1({name:"FeatureFlags",processEvent:(e,t,n)=>mu(e),addFeatureFlag(e,t){gu(e,t),_u(e,t)}}),vu={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}},bu={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function Su(e){return e&&bu[e]||"internal_error"}function wu(e,t,n,r){if(!e||"object"!=typeof e)return;const o=function(e,t){return"type"in e&&"string"==typeof e.type&&"error"===e.type&&(t.setStatus({code:sr.TJ,message:Su(e.error?.type)}),(0,u.Cp)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}(e,r);o||(function(e,t){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){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}(e,t),function(e,t){"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:[]}))}(e,t),function(e,t,n){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){const n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,n),function(e,t){if("content_block_stop"!==e.type||"number"!=typeof e.index)return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let o;try{o=r?JSON.parse(r):{}}catch{o={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:o}),delete t.activeToolBlocks[e.index]}(e,t))}function ku(e,t,n){const r=function(e){const{system:t,messages:n,input:r}=e,o="string"==typeof t?[{role:"system",content:e.system}]:[],i=Array.isArray(r)?r:null!=r?[r]:void 0,s=Array.isArray(n)?n:null!=n?[n]:[];return[...o,...i??s]}(t);!function(e,t,n){if(Array.isArray(t)&&0===t.length)return;const{systemInstructions:r,filteredMessages:o}=Jc(t);r&&e.setAttributes({[nc]:r});const i=Array.isArray(o)?o.length:1;e.setAttributes({[tc]:n?Wc(o):Hc(o),[ec]:i})}(e,r,n),"prompt"in t&&e.setAttributes({[$a]:JSON.stringify(t.prompt)})}function Tu(e,t,n){t&&"object"==typeof t&&("type"in t&&"error"===t.type?function(e,t){t.error&&(e.setStatus({code:sr.TJ,message:Su(t.error.type)}),(0,u.Cp)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}(e,t):(n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[rc]:t.content.map(e=>e.text).filter(e=>!!e).join("")});const n=[];for(const e of t.content)"tool_use"!==e.type&&"server_tool_use"!==e.type||n.push(e);n.length>0&&e.setAttributes({[sc]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[rc]:t.completion}),"input_tokens"in t&&e.setAttributes({[rc]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){"id"in t&&"model"in t&&(e.setAttributes({[Ka]:t.id,[Ja]:t.model}),"usage"in t&&t.usage&&function(e,t,n,r,o){if(void 0!==t&&e.setAttributes({[Va]:t}),void 0!==n&&e.setAttributes({[Xa]:n}),void 0!==t||void 0!==n||void 0!==r||void 0!==o){const i=(t??0)+(n??0)+(r??0)+(o??0);e.setAttributes({[Qa]:i})}}(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}(e,t)))}function xu(e,t,n){throw(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:sr.TJ,message:"internal_error"}),t.end()),e}function Eu(e,t,n,r,o){return new Proxy(e,{apply(i,s,a){const c=n.operation||"unknown",l=function(e,t,n){const r={[Ma]:"anthropic",[Za]:n,[I.JD]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];t.tools&&Array.isArray(t.tools)&&(r[oc]=JSON.stringify(t.tools)),r[La]=t.model??"unknown","temperature"in t&&(r[za]=t.temperature),"top_p"in t&&(r[Ba]=t.top_p),"stream"in t&&(r[Da]=t.stream),"top_k"in t&&(r[Fa]=t.top_k),"frequency_penalty"in t&&(r[Ua]=t.frequency_penalty),"max_tokens"in t&&(r[ja]=t.max_tokens)}else r[La]="models.retrieve"===t||"models.get"===t?e[0]:"unknown";return r}(a,t,c),p=l[La]??"unknown",d="object"==typeof a[0]?a[0]:void 0,f=Boolean(d?.stream),h=!0===n.streaming;if(f||h)return function(e,t,n,r,o,i,s,a,c,l,p){const d={name:`${i} ${o[La]??"unknown"}`,op:`gen_ai.${i}`,attributes:o};if(l&&!p){let t;const o=hr(d,o=>(t=e.apply(n,r),c.recordInputs&&a&&ku(o,a,Bc(c.enableTruncation)),(async()=>
1{try{return async function*(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of e)wu(o,r,n,t),yield o}finally{qc(t,r,n)}}(await t,o,c.recordOutputs??!1)}catch(e){return xu(e,o,s)}})()));return Kc(t,o,"auto.ai.anthropic")}return hr(d,e=>{try{return c.recordInputs&&a&&ku(e,a,Bc(c.enableTruncation)),function(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{wu(e,r,n,t)}),e.on("message",()=>{qc(t,r,n)}),e.on("error",e=>{(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:sr.TJ,message:"internal_error"}),t.end())}),e}(t.apply(n,r),e,c.recordOutputs??!1)}catch(t){return xu(t,e,s)}})}(e,i,r,a,l,c,t,d,o,f,h);let m;const g=fr({name:`${c} ${p}`,op:`gen_ai.${c}`,attributes:l},e=>(m=i.apply(r,a),o.recordInputs&&d&&ku(e,d,Bc(o.enableTruncation)),m.then(t=>(Tu(e,t,o.recordOutputs),t),e=>{throw(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}}),e})));return Kc(m,g,"auto.ai.anthropic")}})}function Cu(e,t="",n){return new Proxy(e,{get(e,r){const o=e[r],i=Fc(t,String(r)),s=vu[i];return"function"==typeof o&&s?Eu(o,i,s,e,n):"function"==typeof o?o.bind(e):o&&"object"==typeof o?Cu(o,i,n):o}})}function Ru(e,t){return Cu(e,"",Yc(t))}const Iu="auto.ai.langgraph";function Pu(e){const t=e;let n=0,r=0,o=0;if(t.usage_metadata&&"object"==typeof t.usage_metadata){const e=t.usage_metadata;return"number"==typeof e.input_tokens&&(n=e.input_tokens),"number"==typeof e.output_tokens&&(r=e.output_tokens),"number"==typeof e.total_tokens&&(o=e.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:o}}if(t.response_metadata&&"object"==typeof t.response_metadata){const e=t.response_metadata;if(e.tokenUsage&&"object"==typeof e.tokenUsage){const t=e.tokenUsage;"number"==typeof t.promptTokens&&(n=t.promptTokens),"number"==typeof t.completionTokens&&(r=t.completionTokens),"number"==typeof t.totalTokens&&(o=t.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:o}}function Au(e,t){const n=t;if(n.response_metadata&&"object"==typeof n.response_metadata){const t=n.response_metadata;t.model_name&&"string"==typeof t.model_name&&e.setAttribute(Ja,t.model_name),t.finish_reason&&"string"==typeof t.finish_reason&&e.setAttribute(Wa,[t.finish_reason])}}let Ou=!1;const Nu="__sentry_patched__";function $u(e,t,n,r,o,i){return new Proxy(e,{apply(e,s,a){const c=o?.modelName??o?.model;return fr({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[I.JD]:Iu,[I.uT]:dc,[Za]:"invoke_agent"}},async o=>{try{const u=n?.name;u&&"string"==typeof u&&(o.setAttribute(cc,u),o.setAttribute(ac,u),o.updateName(`invoke_agent ${u}`)),c&&o.setAttribute(La,c);const l=a.length>1?a[1]:void 0,p=l?.configurable,d=p?.thread_id;if(d&&"string"==typeof d&&o.setAttribute(uc,d),i){const e=a[1]??{};a[1]=e;const t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof u?{lc_agent_name:u}:{}},e.callbacks=function(e,t){if(!e)return[t];if(Array.isArray(e))return e.includes(t)?e:[...e,t];const n=e;return"function"==typeof n.addHandler&&(Array.isArray(n.handlers)&&n.handlers.includes(t)||n.addHandler(t)),e}(e.callbacks,i)}const f=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;const 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);f&&o.setAttribute(oc,JSON.stringify(f));const h=r.recordInputs,m=r.recordOutputs,g=a.length>0?a[0]?.messages??[]:[];if(g&&h){const e=ou(g),{systemInstructions:t,filteredMessages:n}=Jc(e);t&&o.setAttribute(nc,t);const i=Bc(r.enableTruncation),s=Array.isArray(n)?n.length:0;o.setAttributes({[tc]:i?Wc(n):Hc(n),[ec]:s})}const _=await Reflect.apply(e,s,a);return m&&function(e,t,n){const r=n,o=r?.messages;if(!o||!Array.isArray(o))return;const i=t?.length??0,s=o.length>i?o.slice(i):[];if(0===s.length)return;const a=function(e){if(!e||0===e.length)return null;const t=[];for(const n of e)if(n&&"object"==typeof n){const e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(s);a&&e.setAttribute(sc,JSON.stringify(a));const c=ou(s);e.setAttribute(rc,JSON.stringify(c));let u=0,l=0,p=0;for(const t of s){const n=Pu(t);u+=n.inputTokens,l+=n.outputTokens,p+=n.totalTokens,Au(e,t)}u>0&&e.setAttribute(Va,u),l>0&&e.setAttribute(Xa,l),p>0&&e.setAttribute(Qa,p)}(o,g??null,_),_}catch(e){throw o.setStatus({code:sr.TJ,message:"internal_error"}),(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}})}function Mu(e,t){if(Object.prototype.hasOwnProperty.call(e,Nu))return e;const n=Yc(t),r=cu(n),o=new Proxy(e,{apply(e,t,o){const i=function(e){const t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;const n=t.llm;return"string"!=typeof n.modelName&&"string"!=typeof n.model?null:n}(o),s=function(e){const t=e[0];return"object"==typeof t&&t&&"name"in t&&"string"==typeof t.name?t.name:null}(o),a=o[0];let c;a&&Array.isArray(a.tools)&&a.tools.length>0&&function(e,t,n){const r="__sentry_tool_wrapped__";for(const o of e){if(!o||"object"!=typeof o)continue;const e=o,i=e.invoke;if("function"!=typeof i||Object.prototype.hasOwnProperty.call(e,r))continue;
1const s="string"==typeof e.name?e.name:"unknown_tool",a="string"==typeof e.description?e.description:void 0,c=new Proxy(i,{apply(e,r,o){const i={[I.JD]:Iu,[I.uT]:mc,[Za]:"execute_tool",[gc]:s,[yc]:"function"},c=o[1],l=(c?.metadata)?.lc_agent_name??n;"string"==typeof l&&(i[ac]=l),a&&(i[Sc]=a);const p=o[0];if("object"==typeof p&&p&&("id"in p&&"string"==typeof p.id&&(i[_c]=p.id),t.recordInputs)){const e="args"in p&&"object"==typeof p.args?p.args:p;try{i[vc]=JSON.stringify(e)}catch{}}return fr({op:mc,name:`execute_tool ${s}`,attributes:i},async n=>{try{const i=await Reflect.apply(e,r,o);if(t.recordOutputs)try{const e=i&&"object"==typeof i&&"content"in i?i.content:i;n.setAttribute(bc,"string"==typeof e?e:JSON.stringify(e))}catch{}return i}catch(e){throw n.setStatus({code:sr.TJ,message:"internal_error"}),(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}});e.invoke=c,Object.defineProperty(e,r,{value:!0,enumerable:!1})}}(a.tools,n,s??void 0),Ou=!0;try{c=Reflect.apply(e,t,o)}finally{Ou=!1}const l=c.invoke;if(l&&"function"==typeof l){const e={};s&&(e.name=s),c.invoke=$u(l.bind(c),c,e,n,i,r)}return c}});return Object.defineProperty(o,Nu,{value:!0,enumerable:!1}),o}function Lu(e,t){return e.compile=function(e,t){if(Object.prototype.hasOwnProperty.call(e,Nu))return e;const n=cu(t),r=new Proxy(e,{apply:(e,r,o)=>Ou?Reflect.apply(e,r,o):fr({op:"gen_ai.create_agent",name:"create_agent",attributes:{[I.JD]:Iu,[I.uT]:"gen_ai.create_agent",[Za]:"create_agent"}},i=>{try{const s=Reflect.apply(e,r,o),a=o.length>0?o[0]:{};a?.name&&"string"==typeof a.name&&(i.setAttribute(ac,a.name),i.updateName(`create_agent ${a.name}`));const c=s.invoke;return c&&"function"==typeof c&&(s.invoke=$u(c.bind(s),s,a,t,void 0,n)),s}catch(e){throw i.setStatus({code:sr.TJ,message:"internal_error"}),(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})});return Object.defineProperty(r,Nu,{value:!0,enumerable:!1}),r}(e.compile,Yc(t)),e}const Du={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},zu="google_genai";function ju(e,t,n,r){e&&!function(e,t){const n=e?.promptFeedback;if(n?.blockReason){const e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:sr.TJ,message:"internal_error"}),(0,u.Cp)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,r)&&(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount))}(e,t),function(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const e of r?.content?.parts??[])n&&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})}}(e,t,n))}function Uu(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>Uu(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 Yu(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){const e=t;if("model"in e&&"string"==typeof e.model)return e.model;if("modelVersion"in e&&"string"==typeof e.modelVersion)return e.modelVersion}return"unknown"}function Bu(e,t,n,r){if(n){const n=t.contents;return void(null!=n&&e.setAttribute(fc,"string"==typeof n?n:JSON.stringify(n)))}const o=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&o.push(...Uu(t.config.systemInstruction,"system")),"history"in t&&o.push(...Uu(t.history,"user")),"contents"in t&&o.push(...Uu(t.contents,"user")),"message"in t&&o.push(...Uu(t.message,"user")),Array.isArray(o)&&o.length){const{systemInstructions:t,filteredMessages:n}=Jc(o);t&&e.setAttribute(nc,t);const i=Array.isArray(n)?n.length:0;e.setAttributes({[ec]:i,[tc]:r?Wc(n):Hc(n)})}}function Fu(e,t,n,r,o){const i="embeddings"===n.operation;return new Proxy(e,{apply(e,s,a){const c=n.operation||"unknown",l=a[0],p=function(e,t,n){const r={[Ma]:zu,[Za]:e,[I.JD]:"auto.ai.google_genai"};if(t){if(r[La]=Yu(t,n),"config"in t&&"object"==typeof t.config&&t.config){const e=t.config;if(Object.assign(r,function(e){const t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[za]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[Ba]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[Fa]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[ja]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[Ua]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[Ya]=e.presencePenalty
1),t}(e)),"tools"in e&&Array.isArray(e.tools)){const t=e.tools.flatMap(e=>e.functionDeclarations);r[oc]=JSON.stringify(t)}}}else r[La]=Yu({},n);return r}(c,l,r),d=p[La]??"unknown";return n.streaming?hr({name:`${c} ${d}`,op:`gen_ai.${c}`,attributes:p},async n=>{try{return o.recordInputs&&l&&Bu(n,l,i,Bc(o.enableTruncation)),async function*(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const o of e)ju(o,r,n,t),yield o}finally{qc(t,r,n)}}(await e.apply(r,a),n,Boolean(o.recordOutputs))}catch(e){throw n.setStatus({code:sr.TJ,message:"internal_error"}),(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),n.end(),e}}):fr({name:`${c} ${d}`,op:`gen_ai.${c}`,attributes:p},n=>(o.recordInputs&&l&&Bu(n,l,i,Bc(o.enableTruncation)),lr(()=>e.apply(r,a),e=>{(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{i||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(Ja,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){const n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[Va]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[Xa]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[Qa]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const n=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);n.length>0&&e.setAttributes({[rc]:n.join("")})}if(n&&t.functionCalls){const n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[sc]:JSON.stringify(n)})}}}(n,e,o.recordOutputs)})))}})}function qu(e,t="",n){return new Proxy(e,{get:(e,r,o)=>{const i=Reflect.get(e,r,o),s=Fc(t,String(r)),a=Du[s];if("function"==typeof i&&a){const t=a.operation?Fu(i,s,a,e,n):i.bind(e);return a.proxyResultPath?function(...e){const r=t(...e);return r&&"object"==typeof r?qu(r,a.proxyResultPath,n):r}:t}return"function"==typeof i?i.bind(e):i&&"object"==typeof i?qu(i,s,n):i}})}function Hu(e,t){return qu(e,"",Yc(t))}function Wu(e,t={}){const{recordInputs:n}=Yc(t);return new Proxy(e,{apply(e,t,r){const o=function(e){const t=e??{},n={[I.JD]:Gc,[I.uT]:hc,[Za]:"embeddings",[La]:t.model??"unknown"};return n[Ma]=function(e){const t=e.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}(t),"dimensions"in t&&(n[Ha]=t.dimensions),"encodingFormat"in t&&(n[qa]=t.encodingFormat),n}(t),i=o[La]||"unknown";if(n){const e=r[0];null!=e&&(o[fc]="string"==typeof e?e:JSON.stringify(e))}return fr({name:`embeddings ${i}`,op:hc,attributes:o},()=>Reflect.apply(e,t,r).then(void 0,e=>{throw(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),e}))}})}function Ju(e,t){const n=e;return"function"==typeof n.embedQuery&&(n.embedQuery=Wu(n.embedQuery,t)),"function"==typeof n.embedDocuments&&(n.embedDocuments=Wu(n.embedDocuments,t)),e}const Ku={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},Gu=["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 Vu(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.startsWith("response.")}function Xu(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion.chunk"===e.object}function Qu(e,t){for(const n of e){const e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){const r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}function Zu(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&Qu(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function el(e,t,n,r){if(!e||"object"!=typeof e)return void t.eventTypes.push("unknown:non-object");
1if(e instanceof Error)return r.setStatus({code:sr.TJ,message:"internal_error"}),void(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in e))return;const o=e;if(Gu.includes(o.type)){if(n&&("response.output_item.done"===o.type&&"item"in o&&t.responsesApiToolCalls.push(o.item),"response.output_text.delta"===o.type&&"delta"in o&&o.delta))t.responseTexts.push(o.delta);else if("response"in o){const{response:e}=o;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.input_tokens,t.completionTokens=e.usage.output_tokens,t.totalTokens=e.usage.total_tokens),e.status&&t.finishReasons.push(e.status),n&&e.output_text&&t.responseTexts.push(e.output_text)}}else t.eventTypes.push(o.type)}function tl(e,t,n,r){if("embeddings"===n&&"input"in t){const n=t.input;if(null==n)return;if("string"==typeof n&&0===n.length)return;if(Array.isArray(n)&&0===n.length)return;return void e.setAttribute(fc,"string"==typeof n?n:JSON.stringify(n))}const o="input"in t?t.input:"messages"in t?t.messages:void 0;if(!o)return;if(Array.isArray(o)&&0===o.length)return;const{systemInstructions:i,filteredMessages:s}=Jc(o);i&&e.setAttribute(nc,i),e.setAttribute(tc,r?Wc(s):Hc(s)),Array.isArray(s)?e.setAttribute(ec,s.length):e.setAttribute(ec,1)}function nl(e,t,n,r,o){return function(...i){const a=n.operation||"unknown",c=function(e,t){const n={[Ma]:"openai",[Za]:t,[I.JD]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0],r=function(e){const 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){return void(l.T&&s.Yz.error("Failed to serialize OpenAI tools:",e))}}(t);r&&(n[oc]=r),Object.assign(n,function(e){const t={[La]:e.model??"unknown"};"temperature"in e&&(t[za]=e.temperature),"top_p"in e&&(t[Ba]=e.top_p),"frequency_penalty"in e&&(t[Ua]=e.frequency_penalty),"presence_penalty"in e&&(t[Ya]=e.presence_penalty),"stream"in e&&(t[Da]=e.stream),"encoding_format"in e&&(t[qa]=e.encoding_format),"dimensions"in e&&(t[Ha]=e.dimensions);const n=function(e){return"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}(e);return n&&(t[uc]=n),t}(t))}else n[La]="unknown";return n}(i,a),p=c[La]||"unknown",d=i[0],f=d&&"object"==typeof d&&!0===d.stream,h={name:`${a} ${p}`,op:`gen_ai.${a}`,attributes:c};if(f){let n;const s=hr(h,s=>(n=e.apply(r,i),o.recordInputs&&d&&tl(s,d,a,Bc(o.enableTruncation)),(async()=>{try{return async function*(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const o of e)Xu(o)?Zu(o,r,n):Vu(o)&&el(o,r,n,t),yield o}finally{const e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];qc(t,{...r,toolCalls:e},n)}}(await n,s,o.recordOutputs??!1)}catch(e){throw s.setStatus({code:sr.TJ,message:"internal_error"}),(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),s.end(),e}})()));return Kc(n,s,"auto.ai.openai")}let m;const g=fr(h,n=>(m=e.apply(r,i),o.recordInputs&&d&&tl(n,d,a,Bc(o.enableTruncation)),m.then(e=>(function(e,t,n){if(!t||"object"!=typeof t)return;const r=t,o={};if("string"==typeof r.id&&(o[Ka]=r.id),"string"==typeof r.model&&(o[Ja]=r.model),"conversation"===r.object&&"string"==typeof r.id&&(o[uc]=r.id),r.usage&&"object"==typeof r.usage){const e=r.usage,t=e.prompt_tokens??e.input_tokens;"number"==typeof t&&(o[Va]=t);const n=e.completion_tokens??e.output_tokens;"number"==typeof n&&(o[Xa]=n),"number"==typeof e.total_tokens&&(o[Qa]=e.total_tokens)}if(Array.isArray(r.choices)){const e=r.choices,t=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(t.length>0&&(o[Wa]=JSON.stringify(t)),n){const t=e.map(e=>{const t=e.message;return t?.content||""});o[rc]=JSON.stringify(t);const n=e.map(e=>{const t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&(o[sc]=JSON.stringify(n))}}if("string"==typeof r.status&&(o[Wa]||(o[Wa]=JSON.stringify([r.status]))),n&&("string"!=typeof r.output_text||o[rc]||(o[rc]=r.output_text),Array.isArray(r.output)&&r.output.length>
10&&!o[sc])){const e=r.output.filter(e=>"function_call"===e?.type);e.length>0&&(o[sc]=JSON.stringify(e))}e.setAttributes(o)}(n,e,o.recordOutputs),e),e=>{throw(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),e})));return Kc(m,g,"auto.ai.openai")}}function rl(e,t="",n){return new Proxy(e,{get(e,r){const o=e[r],i=Fc(t,String(r)),s=Ku[i];return"function"==typeof o&&s?nl(o,i,s,e,n):"function"==typeof o?o.bind(e):o&&"object"==typeof o?rl(o,i,n):o}})}function ol(e,t){return rl(e,"",Yc(t))}const il=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],sl=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],al={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"},cl=["select","insert","upsert","update","delete"];function ul(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function ll(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function pl(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function dl(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let o;return o=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&al[n]||"filter",`${o}(${e}, ${r.join(".")})`}function fl(e,t=!1){return new Proxy(e,{apply:(n,r,o)=>fr({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[I.JD]:"auto.db.supabase",[I.uT]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,o).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:sr.TJ}),(0,u.Cp)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:sr.F3}),e.end(),t)).catch(t=>{throw e.setStatus({code:sr.TJ}),e.end(),(0,u.Cp)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...o))})}function hl(e){ll(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,t,n){const r=cl,o=t,i=function(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(o.method,o.headers);if(!r.includes(i))return Reflect.apply(e,t,n);if(!o?.url?.pathname||"string"!=typeof o.url.pathname)return Reflect.apply(e,t,n);const s=o.url.pathname.split("/"),a=s.length>0?s[s.length-1]:"",c=[];for(const[e,t]of o.url.searchParams.entries())c.push(dl(e,t));const l=Object.create(null);if((0,Z.Qd)(o.body))for(const[e,t]of Object.entries(o.body))l[e]=t;const d=Boolean((0,p.KU)()?.getOptions().sendDefaultPii),f=pl(o.body,l),h="select"===i?"":`${i}${m=o.body,g=l,void 0!==pl(m,g)?"(...) ":""}`;var m,g;const _=d?c.join(" "):c.length>0?"[redacted]":"",v=[h.trimEnd(),_].filter(Boolean).join(" "),b=v?`${v} from(${a})`:`from(${a})`,S={"db.table":a,"db.schema":o.schema,"db.url":o.url.origin,"db.sdk":o.headers["X-Client-Info"],"db.system":"postgresql","db.operation":i,[I.JD]:"auto.db.supabase",[I.uT]:"db"};return c.length&&d&&(S["db.query"]=c),void 0!==f&&d&&(S["db.body"]=f),fr({name:b,attributes:S},r=>Reflect.apply(e,t,[]).then(e=>{if(r&&(e&&"object"==typeof e&&"status"in e&&(0,sr.N8)(r,e.status||500),r.end()),e?.error){const t=new Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);const n={};c.length&&d&&(n.query=c),void 0!==f&&d&&(n.body=f),(0,u.Cp)(t,e=>(e.addEventProcessor(e=>((0,y.M6)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}const t={type:"supabase",category:`db.${i}`,message:b},n={};return c.length&&d&&(n.query=c),void 0!==f&&d&&(n.body=f),Object.keys(n).length&&(t.data=n),(0,Nt.Z)(t),e},e=>{throw r&&((0,sr.N8)(r,500),r.end()),e}).then(...n))}}),ul(e.prototype.then))}const ml=e=>{var t;e?(ll((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,n){const r=Reflect.apply(e,t,n);return function(e){for(const t of cl)ll(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,n,r){const o=Reflect.apply(e,n,r),i=o.constructor;return l.T&&s.Yz.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),hl(i),o}}),ul(e.prototype[t]))}(r.constructor),r}}),ul(t.prototype.from)),function(e){const t=e.auth;if(t&&!ll(e.auth)){for(const n of il){const r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=fl(r))}for(const n of sl){const r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=fl(r,!0))}ul(e.auth)}}(e)):l.T&&s.Yz.warn("Supabase integration was not installed because no Supabase client was provided.")},gl=e=>{return t=e.supabaseClient,{setupOnce(){ml(t)},name:"Supabase"};var t};function _l(e,...t){const n=new String(String.raw(e,...t));
1return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const yl=_l;function vl(e,t,n,r,o){he({level:e,message:t,attributes:n,severityNumber:o},r)}function bl(e,t,{scope:n}={}){vl("trace",e,t,n)}function Sl(e,t,{scope:n}={}){vl("debug",e,t,n)}function wl(e,t,{scope:n}={}){vl("info",e,t,n)}function kl(e,t,{scope:n}={}){vl("warn",e,t,n)}function Tl(e,t,{scope:n}={}){vl("error",e,t,n)}function xl(e,t,{scope:n}={}){vl("fatal",e,t,n)}function El(e,t,n,r){!function(e,t){const n=t?.scope??(0,p.o5)(),r=t?.captureSerializedMetric??Se,o=n?.getClient()??(0,p.KU)();if(!o)return void(l.T&&s.Yz.warn("No client available to capture metric."));const{_experiments:i,enableMetrics:a,beforeSendMetric:c}=o.getOptions();if(!(a??i?.enableMetrics??!0))return void(l.T&&s.Yz.warn("metrics option not enabled, metric will not be captured."));const{user:u,attributes:d}=(0,ee.Om)((0,p.rm)(),n),f=function(e,t,n){const{release:r,environment:o}=t.getOptions(),i={...e.attributes};be(i,"user.id",n.id,!1),be(i,"user.email",n.email,!1),be(i,"user.name",n.username,!1),be(i,"sentry.release",r),be(i,"sentry.environment",o);const{name:s,version:a}=t.getSdkMetadata()?.sdk??{};be(i,"sentry.sdk.name",s),be(i,"sentry.sdk.version",a);const c=t.getIntegrationByName("Replay"),u=c?.getReplayId(!0);return be(i,"sentry.replay_id",u),u&&"buffer"===c?.getRecordingMode()&&be(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}(e,o,u);
1o.emit("processMetric",f);const h=c||i?.beforeSendMetric,m=h?h(f):f;if(!m)return void(l.T&&s.Yz.log("`beforeSendMetric` returned `null`, will not send metric."));const g=function(e,t,n,r){const[,o]=ae(t,n),i=(0,te.f)(n),s=i?i.spanContext().traceId:o?.trace_id,a=i?i.spanContext().spanId:void 0,c=(0,ne.zf)(),u=se(c);return{timestamp:c,trace_id:s??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,X.SY)(r),...(0,X.SY)(e.attributes,"skip-undefined"),[u.key]:u.value}}}(m,o,n,d);l.T&&s.Yz.log("[Metric]",g),r(o,g),o.emit("afterCaptureMetric",m)}({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function Cl(e,t=1,n){El("counter",e,t,n)}function Rl(e,t,n){El("gauge",e,t,n)}function Il(e,t,n){El("distribution",e,t,n)}const Pl=new Map,Al=new Set;function Ol(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;const n=function(e,t){return function(e){if(i.O._sentryModuleMetadata)for(const t of Object.keys(i.O._sentryModuleMetadata)){const n=i.O._sentryModuleMetadata[t];if(Al.has(t))continue;Al.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){Pl.set(e.filename,n);break}}}(e),Pl.get(t)}(e,t.filename);n&&(t.module_metadata=n)})})}function Nl(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}const $l=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,W.yH)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(Nl(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||Ol(e.getOptions().stackParser,t)})}}),Ml=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,W.yH)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(Nl(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||Ol(e.getOptions().stackParser,t)})},processEvent(t){const n=function(e,t){const n=(0,O.RV)(e);if(n)return n.filter((e,n)=>!(!e.filename||null==e.lineno&&null==e.colno&&null==e.instruction_addr||t&&function(e,t){if(0!==t||!e.context_line||!e.filename)return!1;if(!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(zl))return!1;if(e.pre_context){const t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(Dl))return!0}return!1}(e,n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(Ll)).map(e=>e.slice(Ll.length)):[])}(t,e.ignoreSentryInternalFrames);if(n){const r=n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)));if(r){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}}),Ll="_sentryBundlerPluginAppKey:",Dl="Attempt to invoke user-land function",zl="fn.apply(this, wrappedArguments)";function jl(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 Ul(e){return e.map(e=>"number"==typeof e?"<array>":e).join(".")}function Yl(e){const t=new Set;for(const n of e.issues){const e=Ul(n.path);e.length>0&&t.add(e)}const n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,v.xv)(n.join(", "),100)}`}const Bl=(e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>function(e,t=!1,n,r){if(!(n.exception?.values&&r.originalException&&(o=r.originalException,(0,Z.bJ)(o)&&"ZodError"===o.name&&Array.isArray(o.issues))&&0!==r.originalException.issues.length))return n;var o;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(jl);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:Yl
1(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}(t,e.saveZodIssuesAsAttachment,n,r)}},Fl={startProfiler:function(){const e=(0,p.KU)();e?e.getIntegrationByName("BrowserProfiling")?e.emit("startUIProfiler"):Ut&&s.Yz.warn("BrowserProfiling integration is not available"):Ut&&s.Yz.warn("No Sentry client available, profiling is not started")},stopProfiler:function(){const e=(0,p.KU)();e?e.getIntegrationByName("BrowserProfiling")?e.emit("stopUIProfiler"):Ut&&s.Yz.warn("ProfilingIntegration is not available"):Ut&&s.Yz.warn("No Sentry client available, profiling is not started")}};function ql(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,z.SB)(r)}},i=function(e){return[{type:"user_report"},e]}(e);return(0,W.h4)(o,[i])}function Hl(e={}){const t=_t.document,n=t?.head||t?.body;if(!n)return void(Ut&&s.Yz.error("[showReportDialog] Global document not defined"));const r=(0,p.o5)(),o=(0,p.KU)(),i=o?.getDsn();if(!i)return void(Ut&&s.Yz.error("[showReportDialog] DSN not configured"));const a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||(0,u.Q)()},c=_t.document.createElement("script");c.async=!0,c.crossOrigin="anonymous",c.src=function(e,t){const n=(0,z.AD)(e);if(!n)return"";const r=`${U(n)}embed/error-page/`;let o=`dsn=${(0,z.SB)(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${o}`}(i,a);const{onLoad:l,onClose:d}=a;if(l&&(c.onload=l),d){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{d()}finally{_t.removeEventListener("message",e)}};_t.addEventListener("message",e)}n.appendChild(c)}const Wl=i.O,Jl=new WeakMap,Kl=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(Jl.has((0,p.KU)()))for(const t of e)(0,p.v4)(e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let r="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}(0,u.wd)(`${n}: ${r}`)})}return{name:"ReportingObserver",setupOnce(){(0,Et.vQ)()&&new Wl.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){Jl.set(e,!0)}}};var Gl=n(33828);const Vl=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){(0,Et.m7)()&&Ct(n=>{if((0,p.KU)()!==e)return;const{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&function(e,t,n,r,o){if(ep(e,n.status,n.url)){const e=function(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}(t,r);let i,s,a,c;np()&&([i,a]=Xl("Cookie",e),[s,c]=Xl("Set-Cookie",n));const l=tp({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:c,error:o,type:"fetch"});(0,u.r)(l)}}(t,a,r,c,i||s)},!1)}(e,t),function(e,t){"XMLHttpRequest"in i.O&&(0,zt.Mn)(n=>{if((0,p.KU)()!==e)return;const{error:r,virtualError:o}=n,i=n.xhr,a=i[zt.Er];if(!a)return;const{method:c,request_headers:l}=a;try{!function(e,t,n,r,o){if(ep(e,t.status,t.responseURL)){let e,i,s;if(np()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(i=Zl(e))}catch{}try{s=function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch{}e=r}const a=tp({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:s,responseCookies:i,error:o,type:"xhr"});(0,u.r)(a)}}(t,i,c,l,r||o)}catch(e){Ut&&s.Yz.warn("Error while extracting response event form XHR response",e)}})}(e,t)}}};function Xl(e,t){const n=function(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=Zl(t))}catch{}return[n,r]}function Ql(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Zl(e){return e.split("; ").reduce((e,t)=>
1{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function ep(e,t,n){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some(e=>"string"==typeof e?o.includes(e):e.test(o)))&&!(0,Gl.A)(n,(0,p.KU)());var r,o}function tp(e){const t=(0,p.KU)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}: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:Ql(e.responseHeaders)}}};return(0,y.M6)(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function np(){const e=(0,p.KU)();return!!e&&Boolean(e.getOptions().sendDefaultPii)}const rp=i.O,op=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>function(e,t){const n=rp.document,r=rp.location&&(0,Lt.f)(rp.location.href);if(!n||!r)return e;const o=e.exception?.values;if(!o?.length)return e;const i=n.documentElement.innerHTML;if(!i)return e;const s=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return o.forEach(e=>{const n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>function(e,t,n,r){return e.filename===n&&e.lineno&&t.length?((0,y.db)(t,e,r),e):e}(e,s,r,t)))}),e}(e,t)}};function ip(e){if(up(e))return`persisted ${e.operationName}`;if(cp(e)){const{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=function(e){const t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};const n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return r?`${o} ${r}`:`${o}`}return"unknown"}function sp(e){let t;if("xhr"in e){const n=e.xhr[zt.Er];t=n&&(0,fo.sY)(n.body)[0]}else{const n=(0,fo.Gv)(e.input);t=(0,fo.sY)(n)[0]}return t}function ap(e){return"object"==typeof e&&null!==e}function cp(e){return ap(e)&&"string"==typeof e.query}function up(e){return ap(e)&&"string"==typeof e.operationName&&ap(e.extensions)&&ap(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function lp(e){try{const t=JSON.parse(e);return cp(t)||up(t)?t:void 0}catch{return}}const pp=e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",(e,n)=>{const r=(0,P.et)(e).data||{};if("http.client"!==r[I.uT])return;const o=r[I.c9]||r["http.url"]||r.url,i=r[I.Ts]||r["http.method"];if(!(0,Z.Kg)(o)||!(0,Z.Kg)(i))return;const{endpoints:s}=t,a=(0,v.Xr)(o,s),c=sp(n);if(a&&c){const t=lp(c);if(t){const n=ip(t);e.updateName(`${i} ${o} (${n})`),cp(t)&&e.setAttribute("graphql.document",t.query),up(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}})}(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,n)=>{const{category:r,type:o,data:i}=e;if("http"===o&&("fetch"===r||"xhr"===r)){const e=i?.url,{endpoints:r}=t,o=(0,v.Xr)(e,r),s=sp(n);if(o&&i&&s){const e=lp(s);if(!i.graphql&&e){const t=ip(e);i["graphql.operation"]=t,cp(e)&&(i["graphql.document"]=e.query),up(e)&&(i["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,i["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}(t,e)}}),dp=(e={})=>{const t=["script"];function n(r,o,i=0){if(!r)return;const s="shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children;for(const r of s){if(!(r instanceof HTMLElement))continue;const s=(0,gt.xE)(r,1)||void 0,a=r.tagName.toLowerCase();if(t.includes(a))continue;const c=e.onElement?.({element:r,componentName:s,tagName:a,depth:i})||{};if("skip"===c)continue;if("children"===c){n(r,o,i+1);continue}const{x:u,y:l,width:p,height:d}=r.getBoundingClientRect(),f={identifier:r.id||void 0,type:s||a,visible:!0,alpha:1,height:d,width:p,x:u,y:l,...c},h=[];f.children=h,n(r,f.children,i+1),o.push(f)}}return{name:"ViewHierarchy",processEvent:(t,r)=>{if(void 0!==t.type||!1===e.shouldAttach?.(t,r))return t;const o={rendering_system:"DOM",positioning:"absolute",windows:[]};n(e.rootElement?.()||_t.document.body,o.windows);const i={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(o)};return r.attachments=r.attachments||[],r.attachments.push(i),t}}};var fp=n(56889),hp=Object.defineProperty,mp=(e,t,n)=>((e,t,n)=>t in e?hp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);function gp(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:gp(e.parentNode,t,n,r+1):-1}function _p(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}const yp="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let vp={map:{},getId:()=>(console.error(yp),-1),getNode:()=>(console.error(yp),null),removeNodeFromMap(){console.error(yp)},has:()=>(console.error(yp),!1),reset(){console.error(yp)}};function bp(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){Ep(()=>{n.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>bp(e,t,i||{},!0)}
1function Sp(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}function wp(e,t,n,r,o){if(!e)return!1;const i=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;const s=_p(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=gp(i,s);let c=-1;return!(a<0)&&(r&&(c=gp(i,_p(null,r))),a>-1&&c<0||a<c)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(vp=new Proxy(vp,{get:(e,t,n)=>("map"===t&&console.error(yp),Reflect.get(e,t,n))})),Date.now().toString();const kp={};function Tp(e){const t=kp[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return kp[e]=r.bind(window)}function xp(...e){return Tp("requestAnimationFrame")(...e)}function Ep(...e){return Tp("setTimeout")(...e)}var Cp=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Cp||{});let Rp;const Ip=e=>Rp?(...t)=>{try{return e(...t)}catch(e){if(Rp&&!0===Rp(e))return()=>{};throw e}}:e;for(var Pp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ap="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Op=0;Op<64;Op++)Ap[Pp.charCodeAt(Op)]=Op;const Np=new Map,$p=(e,t,n)=>{if(!e||!Dp(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=Np.get(e);return n||(n=new Map,Np.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function Mp(e,t,n){if(e instanceof Array)return e.map(e=>Mp(e,t,n));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer)return{rr_type:e.constructor.name,base64:function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=Pp[n[t]>>2],o+=Pp[(3&n[t])<<4|n[t+1]>>4],o+=Pp[(15&n[t+1])<<2|n[t+2]>>6],o+=Pp[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Mp(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[Mp(e.data,t,n),e.width,e.height]}:Dp(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:$p(e,t,n)}:e}const Lp=(e,t,n)=>e.map(e=>Mp(e,t,n)),Dp=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(n.find(n=>e instanceof t[n]))};function zp(e,t,n,r,o){const i=[];try{const s=Sp(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...s){if(!wp(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(s[0]&&"object"==typeof s[0]){const e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...s])}});i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}function jp(e,t,n,r,o,i,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const s of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))try{if("function"!=typeof e[s])continue;const u=Sp(e,s,function(e){return function(...c){const u=e.apply(this,c);if($p(u,a,this),"tagName"in this.canvas&&!wp(this.canvas,r,o,i,!0)){const e=Lp(c,a,this),r={type:t,property:s,args:e};n(this.canvas,r)}return u}});c.push(u)}catch{const r=bp(e,s,{set(e){n(this.canvas,{type:t,property:s,args:[e],setter:!0})}});c.push(r)}return c}class Up{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:n="all",win:r,recordCanvas:o,errorHandler:i}=e;e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&(Rp=i),(o&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t||Ip(()=>{o&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
1h(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){const{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:i,enableManualSnapshot:s}=this.options;if(!this.windowsSet.has(e)){if(s)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));Ip(()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),i&&"number"==typeof t){const t=zp(e,n,r,o,!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):xp(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<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)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;const{base64:r,type:o,width:i,height:s}=t;this.mutationCb({id:n,type:Cp["2D"],commands:[{property:"clearRect",args:[0,0,i,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,i,s]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;const t=n=>{this.takeSnapshot(n,!1),e=xp(t)};e=xp(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){const o=zp(e,t,n,r,!1),i=function(e,t,n,r,o){const i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const s=Sp(t.CanvasRenderingContext2D.prototype,a,function(i){return function(...s){return wp(this.canvas,n,r,o,!0)||Ep(()=>{const n=Lp(s,t,this);e(this.canvas,{type:Cp["2D"],property:a,args:n})},0),i.apply(this,s)}});i.push(s)}catch{const n=bp(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:Cp["2D"],property:a,args:[t],setter:!0})}});i.push(n)}return()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),s=function(e,t,n,r,o){const i=[];return i.push(...jp(t.WebGLRenderingContext.prototype,Cp.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...jp(t.WebGL2RenderingContext.prototype,Cp.WebGL2,e,n,r,o,0,t)),()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{o(),i(),s()})}
1getCanvasElements(e,t,n){const r=[],o=o=>{o.querySelectorAll("canvas").forEach(o=>{wp(o,e,t,n,!0)||r.push(o)})};for(const e of this.windows){const t=e.deref();let n;try{n=t&&t.document}catch{}n&&o(n)}for(const e of this.shadowDoms){const t=e.deref();t&&o(t)}return r}takeSnapshot(e,t,n){const{sampling:r,blockClass:o,blockSelector:i,unblockSelector:s,dataURLOptions:a,maxCanvasSize:c}=this.options,u=1e3/("all"===r?2:r||2);return!(this.lastSnapshotTime&&e-this.lastSnapshotTime<u)&&(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(o,i,s)).forEach(e=>{const n=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(n)){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){const t=e.getContext(e.__context);!1===t?.getContextAttributes()?.preserveDrawingBuffer&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:a,maxCanvasSize:c},[t])}).catch(e=>{Ip(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){xp(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,xp(e)};xp(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),xp(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map(e=>{const{type:t,...n}=e;return n}),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){const 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)}var Yp,Bp;new class{constructor(){mp(this,"idNodeMap",new Map),mp(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}},(Bp=Yp||(Yp={}))[Bp.NotStarted=0]="NotStarted",Bp[Bp.Running=1]="Running",Bp[Bp.Stopped=2]="Stopped";const Fp={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}}},qp=1280,Hp=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,qp):qp,n?Math.min(n,qp):qp]};let o,i;const s=new Promise(e=>i=e);return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new Up({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return o=r,i(r),r},...Fp[e]||Fp.medium}},async snapshot(e,t){(o||await s).snapshot(e,t)}}},Wp=()=>({name:"ElementTiming",setup(){jr()&&(0,ne.k3)()&&(0,$r.wv)("element",({entries:e})=>{for(const t of e){const e=t;if(!e.identifier)continue;const n=e.identifier,r=e.name,o=e.renderTime,i=e.loadTime,s={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":n};r&&(s["ui.element.paint_type"]=r),e.id&&(s["ui.element.id"]=e.id),e.element&&(s["ui.element.type"]=e.element.tagName.toLowerCase()),e.url&&(s["ui.element.url"]=e.url),e.naturalWi
1dth&&(s["ui.element.width"]=e.naturalWidth),e.naturalHeight&&(s["ui.element.height"]=e.naturalHeight),o>0&&Il("ui.element.render_time",o,{unit:"millisecond",attributes:s}),i>0&&Il("ui.element.load_time",i,{unit:"millisecond",attributes:s})}})}});function Jp(e=(0,p.KU)()){e?.emit("endPageloadSpan")}function Kp(e){const t=(0,P.Bk)();if(t===e)return;const n=(0,p.o5)();e.end=new Proxy(e.end,{apply:(e,r,o)=>((0,te.r)(n,t),Reflect.apply(e,r,o))}),(0,te.r)(n,e)}function Gp(e){return!!e.trace_id&&!!e.public_key}class Vp{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:o}=t??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=o&&o>0?o:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){const t=e.trace_id;let n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:Ce(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=function(e){let t=156;if(t+=2*e.name.length,t+=(0,X.n9)(e.attributes),e.links&&e.links.length>0){const n=e.links[0],r=n?.attributes;t+=(100+(r?(0,X.n9)(r):0))*e.links.length}return t}(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(l.T&&s.Yz.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){const t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size)return void this._removeTrace(e);const n=Array.from(t.spans),r=n[0]?._segmentSpan;if(!r)return l.T&&s.Yz.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(e);const o=(0,F.k1)(r),i=n.map(e=>{const{_segmentSpan:t,...n}=e;return n}),a=function(e,t,n){const r=n.getOptions(),o=n.getDsn(),i=r.tunnel,s=(0,W.Cj)(r._metadata),a={sent_at:(new Date).toISOString(),...Gp(t)&&{trace:t},...s&&{sdk:s},...!!i&&o&&{dsn:(0,z.SB)(o)}},c=r.sendDefaultPii?"auto":"never",u=[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,ue.B)()&&{ingest_settings:{infer_ip:c,infer_user_agent:c}},items:e}];return(0,W.h4)(a,[u])}(i,o,this._client);l.T&&s.Yz.log(`Sending span envelope for trace ${e} with ${i.length} spans`),this._client.sendEnvelope(a).then(null,e=>{l.T&&s.Yz.error("Error while sending streamed span envelope:",e)}),this._removeTrace(e)}_removeTrace(e){const t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}const Xp=()=>({name:"SpanStreaming",beforeSetup(e){const t=e.getOptions();t.traceLifecycle||(Ut&&s.Yz.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){const t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=e.getOptions();if(!nr(e))return r.traceLifecycle="static",void(Ut&&s.Yz.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`));const o=r.beforeSendSpan;if(o&&!H(o))return r.traceLifecycle="static",void(Ut&&s.Yz.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`));const i=new Vp(e);e.on("afterSpanEnd",t=>{(0,P.pK)(t)&&i.add(function(e,t){const n=(0,P.RD)(e),r=(0,P.aW)(e),o=(0,P.RD)(r),{isolationScope:i,scope:s}=(0,Kt.L)(e);!function(e,t,n,r){const o=n.getSdkMetadata(),{release:i,environment:s,sendDefaultPii:a}=n.getOptions();Gt(e,{[I.Kh]:i,[I.Wp]:s,[I._8]:t.name,[I.Kp]:t.span_id,[I.bC]:o?.sdk?.name,[I.g1]:o?.sdk?.version,...a?{[I.oJ]:r.user?.id,[I.dB]:r.user?.email,[I.Xg]:r.user?.ip_address,[I.zR]:r.user?.username}:{},...r.attributes})}(n,o,t,(0,ee.Om)(i,s)),function(e,t){const n=e.attributes;if(!n)return;const r=n["http.request.method"]||n["http.method"];if(r)return void function(e,t,n,r){const o=["http"];n===Xt?o.push("client"):n===Vt&&o.push("server"),t["sentry.http.prefetch"]&&o.push("prefetch"),Gt(e,{[I.uT]:o.join(".")});const i=t[I.Le];if("string"==typeof i)return void(e.name=i);if("custom"===t[I.i_])return;const s=t["http.route"];if("string"==typeof s)e.name=`${r} ${s}`,Gt(e,{[I.i_]:"route"});else{if(n===Xt||n===Vt){const o=function(e,t){const n=e["http.url"]||e["url.full"],r=e["http.target"],o="string"==typeof n?(0,Lt.Dl)(n):void 0,i=o?(0,Lt.e_)(o):void 0;return t===Vt&&"string"==typeof r?(0,Lt.f)(r):i||("string"==typeof r?(0,Lt.f)(r):void 0)}
1(t,n);o&&(e.name=`${r} ${o}`)}Gt(e,{[I.i_]:"url"})}}(e,n,t,r);const o=n["db.system.name"]||n["db.system"],i="string"==typeof n[I.uT]&&`${n[I.uT]}`.startsWith("cache.");if(o&&!i)return void function(e,t){Gt(e,{[I.uT]:"db"});const n=t[I.Le];if("string"==typeof n)return void(e.name=n);if("custom"===t[I.i_])return;const r=t["db.statement"];r&&(e.name=`${r}`,Gt(e,{[I.i_]:"task"}))}(e,n);if(n["rpc.service"])return void Gt(e,{[I.uT]:"rpc"});if(n["messaging.system"])return void Gt(e,{[I.uT]:"message"});const s=n["faas.trigger"];s&&Gt(e,{[I.uT]:`${s}`})}(n,e.kind),n.is_segment&&t.emit("processSegmentSpan",n),t.emit("processSpan",n);const{beforeSendSpan:a}=t.getOptions(),c=a&&H(a)?function(e,t){return t(e)||((0,P.xl)(),e)}(n,a):n,u=c.attributes?.[I.i_];return u&&Gt(c,{"sentry.span.source":u}),{...(0,P.PL)(c),_segmentSpan:r}}(t,e))}),e.on("afterSegmentSpanEnd",e=>{const t=e.spanContext().traceId;setTimeout(()=>{i.flush(t)},500)})}}),Qp=100,Zp=5e3,ed=36e5;function td(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function nd(e){return td(e.getAllKeys())}function rd(e){let t;function n(){return null==t&&(t=function(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=td(n);return e=>r.then(n=>e(n.transaction(t,"readwrite").objectStore(t)))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const r=(0,W.bN)(t);await function(e,t,n){return e(e=>nd(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),td(e.transaction)}))}(n(),r,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{const r=(0,W.bN)(t);await function(e,t,n){return e(e=>nd(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),td(e.transaction)}))}(n(),r,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const e=await function(e){return e(e=>nd(e).then(t=>{const n=t[0];if(null!=n)return td(e.get(n)).then(t=>(e.delete(n),td(e.transaction).then(()=>t)))}))}(n());if(e)return(0,W.mE)(e)}catch{}}}}function od(e=Un){return function(e){return t=>{const n=e({...t,createStore:rd});return _t.addEventListener("online",async e=>{await n.flush()}),n}}(function(e){function t(...e){l.T&&s.Yz.log("[Offline]:",...e)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let i,s=Zp;function a(e){i&&clearTimeout(i),i=Ce(setTimeout(async()=>{i=void 0;const e=await o.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 c(){i||(a(s),s=Math.min(2*s,ed))}async function u(e,i=!1){if(!i&&(0,W.hP)(e,["replay_event","replay_recording"]))return await o.push(e),a(Qp),{};try{if(n.shouldSend&&!1===await n.shouldSend(e))throw new Error("Envelope not sent because `shouldSend` callback returned false");const t=await r.send(e);let o=Qp;if(t)if(t.headers?.["retry-after"])o=(0,Pe.FA)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])o=6e4;else if((t.statusCode||0)>=400)return t;return a(o),s=Zp,t}catch(r){if(await function(e,t,r){return!(0,W.hP)(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,t,r))}(e,r,s))return i?await o.unshift(e):await o.push(e),c(),t("Error sending. Event queued.",r),{};throw r}}return n.flushAtStartup&&c(),{send:u,flush:e=>(void 0===e&&(s=Zp,a(Qp)),r.flush(e))}}}(e))}var id=n(87219);const sd=1e6,ad="window"in i.O&&i.O.window===i.O&&"undefined"==typeof importScripts,cd=String(0),ud=ad?"main":"worker",ld=_t.navigator;let pd="",dd="",fd="",hd=ld?.userAgent||"",md="";const gd=ld?.language||ld?.languages?.[0]||"",_d=ld?.userAgentData;var yd;function vd(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=function(e){const t=e.contexts?.trace?.trace_id;return"string"==typeof t&&32!==t.length&&Ut&&s.Yz.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(r),i=function(e){return!("thread_metadata"in e)}(u=n)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[cd]:{name:ud}}},o=e.samples[0];if(!o)return r;const i=o.timestamp,s=(0,ne.k3)(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:s||0,c=a-(s||a);
1return e.samples.forEach((o,s)=>{if(void 0===o.stackId)return void 0===t&&(t=n,r.stacks[t]=[],n++),void(r.samples[s]={elapsed_since_start_ns:((o.timestamp+c-i)*sd).toFixed(0),stack_id:t,thread_id:cd});let a=e.stacks[o.stackId];const u=[];for(;a;){u.push(a.frameId);const t=e.frames[a.frameId];t&&void 0===r.frames[a.frameId]&&(r.frames[a.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),a=void 0===a.parentId?void 0:e.stacks[a.parentId]}const l={elapsed_since_start_ns:((o.timestamp+c-i)*sd).toFixed(0),stack_id:n,thread_id:cd};r.stacks[n]=u,r.samples[s]=l,n++}),r}(u):u,a=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,ne.zf)()),c="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,ne.zf)();var u;return{event_id:e,timestamp:new Date(a).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||B.U,runtime:{name:"javascript",version:_t.navigator.userAgent},os:{name:pd,version:dd,build_number:hd},device:{locale:gd,model:md,manufacturer:hd,architecture:fd,is_emulator:!1},debug_meta:{images:Sd(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||(0,y.eJ)(),trace_id:o,active_thread_id:cd,relative_start_ns:"0",relative_end_ns:(1e6*(c-a)).toFixed(0)}]}}function bd(e){return"pageload"===(0,P.et)(e).op}function Sd(e){const t=(0,p.KU)(),n=t?.getOptions(),r=n?.stackParser;return r?(0,id.i)(r,e):[]}function wd(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(Ut&&s.Yz.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)||(Ut&&s.Yz.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof(yd=_d)&&null!==yd&&"getHighEntropyValues"in yd&&_d.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(pd=e.platform||"",fd=e.architecture||"",md=e.model||"",dd=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];hd=`${t.brand} ${t.version}`}}).catch(e=>{});let kd=!1;function Td(){const e=_t.Profiler;if("function"!=typeof e)return void(Ut&&s.Yz.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){Ut&&(s.Yz.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),s.Yz.log("[Profiling] Disabling profiling for current user session.")),kd=!0}}function xd(e){if(kd)return Ut&&s.Yz.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return Ut&&s.Yz.log("[Profiling] Discarding profile because root span was not sampled."),!1;const t=(0,p.KU)(),n=t?.getOptions();if(!n)return Ut&&s.Yz.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return wd(r)?r?!!(!0===r||Math.random()<r)||(Ut&&s.Yz.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(Ut&&s.Yz.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(Ut&&s.Yz.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function Ed(e){return void 0!==e.profilesSampleRate}function Cd(e,t,n,r){return function(e){return e.samples.length<2?(Ut&&s.Yz.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(Ut&&s.Yz.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?vd(e,t,n,r):null}const Rd=new Map;function Id(e){const t=Rd.get(e);return t&&Rd.delete(e),t}function Pd(e){let t;bd(e)&&(t=1e3*(0,ne.zf)());const n=Td();if(!n)return;Ut&&s.Yz.log(`[Profiling] started profiling span: ${(0,P.et)(e).description}`);const r=(0,y.eJ)();let o=null;async function i(){if(e&&n){if(!o)return n.stop().then(t=>{a&&(_t.clearTimeout(a),a=void 0),Ut&&s.Yz.log(`[Profiling] stopped profiling of span: ${(0,P.et)(e).description}`),t?(o=t,function(e,t){if(Rd.set(e,t),Rd.size>30){const e=Rd.keys().next().value;void 0!==e&&Rd.delete(e)}}(r,t)):Ut&&s.Yz.log(`[Profiling] profiler returned null profile for: ${(0,P.et)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}
1).catch(e=>{Ut&&s.Yz.log("[Profiling] error while stopping profiler:",e)});Ut&&s.Yz.log("[Profiling] profile for:",(0,P.et)(e).description,"already exists, returning early")}}(0,p.o5)().setContext("profile",{profile_id:r,start_timestamp:t});let a=_t.setTimeout(()=>{Ut&&s.Yz.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,P.et)(e).description),i()},3e4);const c=e.end.bind(e);e.end=function(){return e?(i().then(()=>{c()},()=>{c()}),e):c()}}class Ad{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){const t=e.getOptions().profileLifecycle,n=function(e){if(kd)return Ut&&s.Yz.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 Ut&&s.Yz.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return wd(t)?t?Math.random()<=t:(Ut&&s.Yz.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(Ut&&s.Yz.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());Ut&&s.Yz.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||Ut&&s.Yz.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,y.eJ)(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e)}start(){"trace"!==this._lifecycleMode?this._isRunning?Ut&&s.Yz.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op."):this._sessionSampled?this._beginProfiling():Ut&&s.Yz.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op."):Ut&&s.Yz.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.')}stop(){"trace"!==this._lifecycleMode?this._isRunning?this._endProfiling():Ut&&s.Yz.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op."):Ut&&s.Yz.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.')}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const n=this._activeRootSpanIds.size;1===n&&(Ut&&s.Yz.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,Ut&&s.Yz.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,p.m6)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return Ut&&s.Yz.log("[Profiling] Failed to start JS Profiler; stopping."),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=>{Ut&&s.Yz.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,p.m6)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled)return void(Ut&&s.Yz.log("[Profiling] Span not profiled because of negative sampling decision for user session."));if(e!==(0,P.zU)(e))return;if(!e.isRecording())return void(Ut&&s.Yz.log("[Profiling] Discarding profile because root span was not sampled."));const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const n=this._activeRootSpanIds.size;1===n&&(Ut&&s.Yz.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);const n=this._activeRootSpanIds.size;Ut&&s.Yz.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),0===n&&(this._collectCurrentChunk().catch(e=>{Ut&&s.Yz.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,p.m6)().setContext("profile",{})}
1_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);const t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(!1===this._profiler?.stopped)return;const e=Td();e?this._profiler=e:Ut&&s.Yz.log("[Profiling] Failed to start JS Profiler.")}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{Ut&&s.Yz.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)&&(Ut&&s.Yz.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(){const e=this._profiler;if(this._profiler=void 0,e)try{const t=function(e,t,n){if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=function(e){const t=[];for(let n=0;n<e.frames.length;n++){const r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}const n=[];for(let t=0;t<e.stacks.length;t++){const r=e.stacks[t];if(!r)continue;const o=[];let i=r;for(;i;)o.push(i.frameId),i=void 0===i.parentId?void 0:e.stacks[i.parentId];n[t]=o}const r=(0,ne.k3)(),o="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,i=o-(r||o),s=[];for(let t=0;t<e.samples.length;t++){const n=e.samples[t];if(!n)continue;const r=(o+(n.timestamp-i))/1e3;s[t]={stack_id:n.stackId??0,thread_id:cd,timestamp:r}}return{frames:t,stacks:n,samples:s,thread_metadata:{[cd]:{name:ud}}}}(e),o=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,y.eJ)(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||(0,y.eJ)(),platform:"javascript",version:"2",release:o.release??"",environment:o.environment??"production",debug_meta:{images:Sd(e.resources)},profile:r}}(await e.stop(),this._client,this._profilerId),n=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};const 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"};const n=e.profile;return n?Array.isArray(n.frames)&&n.frames.length?Array.isArray(n.stacks)&&n.stacks.length?Array.isArray(n.samples)&&n.samples.length?{valid:!0}:{reason:"profile has no samples"}:{reason:"profile has no stacks"}:{reason:"profile has no frames"}:{reason:"missing profile data"}}catch(e){return{reason:`unknown validation error: ${e}`}}}(t);if("reason"in n)return void(Ut&&s.Yz.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",n.reason));this._sendProfileChunk(t),Ut&&s.Yz.log("[Profiling] Collected browser profile chunk.")}catch(e){Ut&&s.Yz.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){const t=this._client,n=(0,W.Cj)(t.getSdkMetadata?.()),r=t.getDsn(),o=t.getOptions().tunnel,i=(0,W.h4)({event_id:(0,y.eJ)(),sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!o&&r&&{dsn:(0,z.SB)(r)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(i).then(null,e=>{Ut&&s.Yz.error("Error while sending profile chunk envelope:",e)})}}const Od=()=>({name:"BrowserProfiling",setup(e){const t=e.getOptions(),n=new Ad;if(Ed(t)||t.profileLifecycle||(t.profileLifecycle="manual"),Ed(t)&&!t.profilesSampleRate)return void(Ut&&s.Yz.log("[Profiling] Profiling disabled, no profiling options found."));const r=(0,P.Bk)(),o=r&&(0,P.zU)(r);if(Ed(t)&&void 0!==t.profileSessionSampleRate&&Ut&&s.Yz.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),Ed(t))o&&bd(o)&&xd(o)&&Pd(o),e.on("spanStart",e=>{e===(0,P.zU)(e)&&xd(e)&&Pd(e)}),e.on("beforeEnvelope",e=>{if(!Rd.size)return;const t=function(e){const t=[];return(0,W.yH)(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){const r=e[n];
1r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t}(e);if(!t.length)return;const n=[];for(const e of t){const t=e?.contexts,r=t?.profile?.profile_id,o=t?.profile?.start_timestamp;if("string"!=typeof r){Ut&&s.Yz.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!r){Ut&&s.Yz.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;const i=Id(r);if(!i){Ut&&s.Yz.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}const a=Cd(r,o,i,e);a&&n.push(a)}!function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n])}(e,n)});else{const r=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r)n.initialize(e);else if("trace"===r){if(!(0,Xn.f)(t))return void(Ut&&s.Yz.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing."));n.initialize(e),o&&n.notifyRootSpanActive(o),_t.setTimeout(()=>{const e=(0,P.Bk)(),t=e&&(0,P.zU)(e);t&&n.notifyRootSpanActive(t)},0)}}},processEvent:e=>function(e){return e?.contexts?.profile&&e.contexts?(e.contexts.trace?.trace_id&&(e.contexts.trace={...e.contexts.trace,data:{...e.contexts.trace.data??{},"thread.id":cd,"thread.name":ud}}),e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":cd,"thread.name":ud}}),e):e}(e)}),Nd=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],$d=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{Ut&&s.Yz.log("Using Sidecar URL",t)},beforeSetup(e){const t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...Nd]},afterAllSetup:e=>{!function(e,t){const n=(0,zn.qd)("fetch");let r=0;e.on("beforeEnvelope",e=>{r>3?s.Yz.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r):n(t,{method:"POST",body:(0,W.bN)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>{r++,s.Yz.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}},Md=()=>
1({name:"LaunchDarkly",processEvent:(e,t,n)=>mu(e)});function Ld(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{gu(e,t.value),_u(e,t.value)}}}const Dd=()=>({name:"OpenFeature",processEvent:(e,t,n)=>mu(e)});class zd{after(e,t){gu(t.flagKey,t.value),_u(t.flagKey,t.value)}error(e,t,n){gu(e.flagKey,e.defaultValue),_u(e.flagKey,e.defaultValue)}}const jd=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;(0,x.GS)(t,"isEnabled",Ud)},processEvent:(e,t,n)=>mu(e)});function Ud(e){return function(...t){const n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?(gu(n,r),_u(n,r)):Ut&&s.Yz.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}function Yd(e){return function(...t){const n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(gu(n,r),_u(n,r)),r}}const Bd=({growthbookClass:e})=>(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;"function"==typeof t.isOn&&(0,x.GS)(t,"isOn",Yd),"function"==typeof t.getFeatureValue&&(0,x.GS)(t,"getFeatureValue",Yd)}
1,processEvent:(e,t,n)=>mu(e)}))({growthbookClass:e}),Fd=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{gu(e.gate.name,e.gate.value),_u(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>mu(e)});async function qd(){const e=(0,p.KU)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const 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 yr(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}const Hd=({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>Wd(e))},addWorker:e=>Wd(e)});function Wd(e){e.addEventListener("message",e=>{if(function(e){if(!(0,Z.Qd)(e)||!0!==e._sentryMessage)return!1;const t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,o="_sentryWasmImages"in e;return!!(t||n||r||o)&&(!(t&&!(0,Z.Qd)(e._sentryDebugIds)&&void 0!==e._sentryDebugIds)&&(!(n&&!(0,Z.Qd)(e._sentryModuleMetadata)&&void 0!==e._sentryModuleMetadata)&&(!(r&&!(0,Z.Qd)(e._sentryWorkerError))&&!!(!o||Array.isArray(e._sentryWasmImages)&&e._sentryWasmImages.every(e=>(0,Z.Qd)(e)&&"string"==typeof e.code_file)))))}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(Ut&&s.Yz.log("Sentry debugId web worker message received",e.data),_t._sentryDebugIds={...e.data._sentryDebugIds,..._t._sentryDebugIds}),e.data._sentryModuleMetadata&&(Ut&&s.Yz.log("Sentry module metadata web worker message received",e.data),_t._sentryModuleMetadata={...e.data._sentryModuleMetadata,..._t._sentryModuleMetadata}),e.data._sentryWasmImages){Ut&&s.Yz.log("Sentry WASM images web worker message received",e.data);const t=_t._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>(0,Z.Qd)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));_t._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&(Ut&&s.Yz.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){const t=(0,p.KU)();if(!t)return;const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,i=(0,Z.sO)(o)?un(o):ft(n,o,void 0,r,!0);i.level="error",e.filename&&(i.contexts={...i.contexts,worker:{filename:e.filename}}),(0,u.r)(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),Ut&&s.Yz.log("Captured worker unhandled rejection",o)}(e.data._sentryWorkerError))}})}function Jd({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{const n={reason:cn(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),Ut&&s.Yz.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),Ut&&s.Yz.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function Kd(e,{componentStack:t},n){if(function(e){const t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(Hn.version)&&(0,Z.bJ)(e)&&t){const n=new Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){const n=new WeakSet;!function e(t,r){if(!n.has(t))return t.cause?(n.add(t),e(t.cause,r)):void(t.cause=r)}(e,t)}(e,n)}return(0,p.v4)(r=>(r.setContext("react",{componentStack:t}),(0,u.Cp)(e,n)))}function Gd(e){return(t,n)=>{const r=!!e,o=Kd(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,o)}}const Vd="ui.react.render",Xd="ui.react.mount",Qd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zd={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ef={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tf=Symbol.for("react.forward_ref"),nf=Symbol.for("react.memo"),rf={};function of(e){if(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===nf}(e))return ef;const t=e.$$typeof;return t&&rf[t]||Qd}rf[tf]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rf[nf]=ef;const sf=Object.defineProperty.bind(Object),af=Object.getOwnPropertyNames.bind(Object),cf=Object.getOwnPropertySymbols?.bind(Object),uf=Object.getOwnPropertyDescriptor.bind(Object),lf=Object.getPrototypeOf.bind(Object),pf=Object.prototype;function df(e,t,n){if("string"!=typeof t){if(pf){const n=lf(t);n&&n!==pf&&df(e,n)}let n=af(t);cf&&(n=n.concat(cf(t)));const r=of(e),o=of(t);for(const i of n)if(!(Zd[i]||o?.[i]||r?.[i]||uf(e,i))){const n=uf(t,i);if(n)try{sf(e,i,n)}catch(e){}}}return e}const ff="unknown";class hf extends Hn.Component{constructor(e){super(e);const{name:t,disabled:n=!1}=this.props;n||(this._mountSpan=mr({name:`<${t}>`,onlyIfParent:!0,op:Xd,attributes:{[I.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){const t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){const e=(0,ne.zf)();this._updateSpan=_r(this._mountSpan,()=>mr({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[I.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(){const e=(0,ne.zf)(),{name:t,includeRender:n=!0}
1=this.props;if(this._mountSpan&&n){const n=(0,P.et)(this._mountSpan).timestamp;_r(this._mountSpan,()=>{const r=mr({onlyIfParent:!0,name:`<${t}>`,op:Vd,startTime:n,attributes:{[I.JD]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}}function mf(e,t){const n=t?.name||e.displayName||e.name||ff,r=r=>Hn.createElement(hf,{...t,name:n,updateProps:r},Hn.createElement(e,{...r}));return r.displayName=`profiler(${n})`,df(r,e),r}function gf(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=Hn.useState(()=>{if(!t?.disabled)return mr({name:`<${e}>`,onlyIfParent:!0,op:Xd,attributes:{[I.JD]:"auto.ui.react.profiler","ui.component_name":e}})});Hn.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const t=(0,P.et)(n).timestamp,r=(0,ne.zf)(),o=mr({name:`<${e}>`,onlyIfParent:!0,op:Vd,startTime:t,attributes:{[I.JD]:"auto.ui.react.profiler","ui.component_name":e}});o&&o.end(r)}}),[])}Object.assign(hf,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});const _f="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,yf="unknown",vf={componentStack:null,error:null,eventId:null};class bf extends Hn.Component{constructor(e){super(e),this.state=vf,this._openFallbackReportDialog=!0;const t=(0,p.KU)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&Hl({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){const{componentStack:n}=t,{beforeCapture:r,onError:o,showDialog:i,dialogOptions:s}=this.props;(0,p.v4)(a=>{r&&r(a,e,n);const c=null!=this.props.handled?this.props.handled:!!this.props.fallback,u=Kd(e,t,{mechanism:{handled:c,type:"auto.function.react.error_boundary"}});o&&o(e,n,u),i&&(this._lastEventId=u,this._openFallbackReportDialog&&Hl({...s,eventId:u})),this.setState({error:e,componentStack:n,eventId:u})})}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===vf?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(vf)}render(){const{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;const r="function"==typeof e?Hn.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return Hn.isValidElement(r)?r:(e&&_f&&s.Yz.warn("fallback did not produce a valid ReactElement"),null)}}function Sf(e,t){const n=e.displayName||e.name||yf,r=Hn.memo(n=>Hn.createElement(bf,{...t},Hn.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,df(r,e),r}const wf="redux.action",kf="info",Tf={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function xf(e){const t={...Tf,...e};return e=>(n,r)=>{function o(e){return(n,r)=>{const o=e(n,r),i=(0,p.o5)(),s=t.actionTransformer(r);null!=s&&(0,Nt.Z)({category:wf,data:s,type:kf});const a=t.stateTransformer(o);if(null!=a){const e=(0,p.KU)(),t=e?.getOptions(),n=t?.normalizeDepth||3,r={state:{type:"redux",value:a}};(0,uu.uy)(r,3+n),i.setContext("state",r)}else i.setContext("state",null);const{configureScopeWithState:c}=t;return"function"==typeof c&&c(i,o),o}}t.attachReduxState&&(0,p.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});const i=e(o(n),r);return i.replaceReducer=new Proxy(i.replaceReducer,{apply:function(e,t,n){e.apply(t,[o(n[0])])}}),i}}function Ef(e){const t=xo({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:o,instrumentPageLoad:i=!0,instrumentNavigation:s=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),i&&_t.location&&Cf(r,_t.location,o,(t,n="url")=>{Eo(e,{name:t,attributes:{[I.uT]:"pageload",[I.JD]:"auto.pageload.react.reactrouter_v3",[I.i_]:n}})}),s&&n.listen&&n.listen(t=>{"PUSH"!==t.action&&"POP"!==t.action||Cf(r,t,o,(t,n="url")=>{Co(e,{name:t,attributes:{[I.uT]:"navigation",[I.JD]:"auto.navigation.react.reactrouter_v3",[I.i_]:n}})})})}}}function Cf(e,t,n,r){let o=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(o);const i=function(e){if(!Array.isArray(e)||0===e.length)return"";const t=e.filter(e=>!!e.path);let n=-1;for(let e=t.length-1;e>=0;e--){const r=t[e];if(r.path?.startsWith("/")){n=e;break}}return t.slice(n).reduce((e,{path:t})=>`${e}${"/"===e||""===e?t:`/${t}`}`,"")}(n.routes||[]);return 0===i.length||"/*"===i?r(o):(o=i,r(o,"route"))})}function Rf(e,t={}){const n=e,r=xo({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=t;return{...r,afterAllSetup(e){r.afterAllSetup(e);const t=_t.location;if(o&&t){const r=n.matchRoutes(t.pathname,n.options.parseSearch(t.search),{preload:!1,throwOnError:!1}),o=r[r.length-1],i="__root__"!==o?.routeId?o:void 0;Eo(e,{name:i?i.routeId:t.pathname,attributes:{[I.uT]:"pageload",[I.JD]:"auto.pageload.react.tanstack_router",[I.i_]:i?"route":"url",...If(i)}})}i&&n.subscribe("onBeforeNavigate",t=>{if(!t.fromLocation||t.toLocation.state===t.fromLocation.state)return;const r=n.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),o=r[r.length-1],i="__root__"!==o?.routeId?o:void 0,s=_t.location,a=Co(e,{name:i?i.routeId:s.pathname,attributes:{[I.uT]:"navigation",[I.JD]:"auto.navigation.react.tanstack_router",[I.i_]:i?"route":"url"}}),c=n.subscribe("onResolved",e=>{if(c(),a){const t=n.matchRoutes(e.toLocation.pathname,e.toLocation.search,{preload:!1,throwOnError:!1}),r=t[t.length-1],o="__root__"!==r?.routeId?r:void 0;o&&(a.updateName(o.routeId),a.setAttribute(I.i_,"route"),a.setAttributes(If(o)))}})})}}}function If(e){if(!e)return{};const t={};
1return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n,t[`url.path.parameter.${e}`]=n,t[`params.${e}`]=n}),t}function Pf(e){const t=xo({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:i=!0,instrumentNavigation:s=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),Of(e,i,s,n,"reactrouter_v4",r,o)}}}function Af(e){const t=xo({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:i=!0,instrumentNavigation:s=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),Of(e,i,s,n,"reactrouter_v5",r,o)}}}function Of(e,t,n,r,o,i=[],s){function a(e){if(0===i.length||!s)return[e,"url"];const t=Nf(i,e,s);for(const e of t)if(e.match.isExact)return[e.match.path,"route"];return[e,"url"]}if(t){const t=r.location?r.location.pathname:_t.location?_t.location.pathname:void 0;if(t){const[n,r]=a(t);Eo(e,{name:n,attributes:{[I.uT]:"pageload",[I.JD]:`auto.pageload.react.${o}`,[I.i_]:r}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){const[n,r]=a(t.pathname);Co(e,{name:n,attributes:{[I.uT]:"navigation",[I.JD]:`auto.navigation.react.${o}`,[I.i_]:r}})}})}function Nf(e,t,n,r=[]){return e.some(e=>{const o=e.path?n(t,e):r.length?r[r.length-1].match:function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}}(t);return o&&(r.push({route:e,match:o}),e.routes&&Nf(e.routes,t,n,r)),!!o}),r}function $f(e){const t=e.displayName||e.name,n=t=>{if(t?.computedMatch?.isExact){const e=t.computedMatch.path,n=function(){const e=(0,P.Bk)(),t=e&&(0,P.zU)(e);if(!t)return;const n=(0,P.et)(t).op;return"navigation"===n||"pageload"===n?t:void 0}();(0,p.o5)().setTransactionName(e),n&&(n.updateName(e),n.setAttribute(I.i_,"route"))}return Hn.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,df(n,e),n}function Mf(e,t){if(!t||"/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return e;const n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}const Lf=new WeakMap;function Df(e,t){if("/"===t)return"/"===e||""===e;const n=jf(e),r=jf(t);if(r.length>0&&"*"===r[r.length-1]){const e=r.slice(0,-1);if(n.length<e.length)return!1;for(const[t,r]of e.entries())if(!zf(n[t],r))return!1;return!0}if(n.length!==r.length)return!1;for(const[e,t]of r.entries())if(!zf(n[e],t))return!1;return!0}function zf(e,t){return void 0!==e&&void 0!==t&&(!!Uf.test(t)||e===t)}function jf(e){return e.split("/").filter(Boolean)}const Uf=/^:[\w-]+$/,Yf=10,Bf=3,Ff=1,qf=-2;function Hf(e){const t=e.split("/");let n=t.length;t.includes("*")&&(n+=qf);for(const e of t)"*"!==e&&(Uf.test(e)?n+=Bf:n+=""===e?Ff:Yf);return n}let Wf,Jf=!1;const Kf=[],Gf=10;function Vf(){const e=Kf.length;return e>0?Kf[e-1]??null:null}function Xf(e){return"*"===(t=e.route.path||"")[t.length-1]?t.slice(0,-1):t;var t}function Qf(e){return e.params["*"]||""}function Zf(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function eh(e){return e.endsWith("*")}function th(e){return e.includes("/*")||e.endsWith("*")}function nh(e,t){return eh(e)&&!!t.route.children?.length||!1}function rh(e){return!(e.children||!e.element||!e.path?.endsWith("/*"))}function oh(e,t,n){const r=e&&e.length>0?e:Jf?Mf(t,n):t;let o="/*"===r.slice(-2)?r.slice(0,-2):r;return o.length>1&&"/"===o[o.length-1]&&(o=o.slice(0,-1)),[o,"route"]}function ih(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function sh(e){return"/"===e[0]?e:`/${e}`}function ah(e,t){const n=Wf(e,t);if(!n||0===n.length)return"";for(const r of n)if(r.route.path&&"*"!==r.route.path){const n=Xf(r),o=Mf(t.pathname,sh(r.pathnameBase));return t.pathname===o?Zf(o):Zf(Zf(n||"")+sh(ah(e.filter(e=>e!==r.route),{pathname:o})))}return""}function ch(e,t){return Jf?Mf(e.pathname,t):e.pathname||""}function uh(e,t,n,r,o="",i,a){if(a&&i&&i.length>0){const t=function(e,t,n){if(!e||!t?.length)return null;const r=n?Mf(e,n):e;let o=Lf.get(t);o||(o=function(e){return[...e].sort((e,t)=>{const n=Hf(e);return Hf(t)-n})}(t),Lf.set(t,o),_f&&s.Yz.log("[React Router] Sorted route manifest by specificity:",o.length,"patterns"));for(const e of o)if(Df(r,e))return _f&&s.Yz.log("[React Router] Matched pathname",r,"to pattern",e),e;return _f&&s.Yz.log("[React Router] No manifest match found for pathname:",r),null}(e.pathname,i,o);if(t)return[(Jf?"":o)+t,"route"]}let c,u="url";const l=function(e,t){const n=Wf(t,e);if(n)for(const e of n)if(rh(e.route)&&Qf(e))return!0;return!1}(e,n);return l&&(c=sh(ah(n,e)),u="route"),l&&c||([c,u]=function(e,t,n,r=""){if(!e||0===e.length)return[Jf?Mf(t.pathname,r):t.pathname,"url"];if(!n)return[ch(t,r),"url"];let o="";for(const e of n){const n=e.route;if(!n)continue;if(n.index)return oh(o,e.pathname,r);const i=n.path;if(!i||nh(i,e))continue;const s="/"===i[0]||"/"===o[o.length-1]?i:`/${i}`;if(o=Zf(o)+sh(s),Zf(t.pathname)===Zf(r+e.pathname))return ih(o)===ih(e.pathname)||eh(o)?(nh(o,e)&&(o=o.slice(0,-1)),[(Jf?"":r)+o,"route"]):[(Jf?"":r)+s,"route"]}return[ch(t,r),"url"]}(t,e,r,o)),[c||e.pathname,u]}function lh(){const e=(0,P.Bk)(),t=e?(0,P.zU)(e):void 0;if(!t)return;const n=(0,P.et)(t).op;return"navigation"===n||"pageload"===n?t:void 0}function ph(e,t,n,r){const o=new Proxy(e,{apply(e,o,i){const a=function(){const e=Vf();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==_t)try{const e=_t.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{_f&&s.Yz.warn("[React Router] Could not access window.location")}return null}(),c=function(){const e=Vf();return e?e.span:lh()}(),u=e.apply(o,i);return function(e,t,n,r,o,i){(0,Z.Qg)(e)?e.then(e=>{Array.isArray(e)&&r(e,t,o??void 0,i)}).catch(e=>{_f&&s.Yz.warn(`Error resolving async handler '${n}' for route`,t,e)}):Array.isArray(e)&&r(e,t,o??void 0,i)}(u,t,n,r,a,c),u}});return(0,x.my)(o,"__sentry_proxied__",!0),o}function dh(e,t){if(e.handle&&"object"==typeof e.handle)for(const n of Object.keys(e.handle)){const r=e.handle[n];"function"!=typeof r||r.__sentry_proxied__||(e.handle[n]=ph(r,e,n,t))}if(Array.isArray(e.children))for(const n of e.children)dh(n,t)}let fh,hh,mh,gh,_h,yh,vh=!1,bh=3e3,Sh="";const wh=new WeakSet,kh=new WeakMap,Th=new Set,xh=new WeakMap,Eh=new WeakMap;function Ch(e){_t?.cancelAnimationFrame?_t.cancelAnimationFrame(e):clearTimeout(e)}function Rh(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function Ih(e){return e.includes(":")||e.includes("*")}function Ph(e,t){const n=t.children||[],r=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));r.length>0&&(t.children=[...n,...r])}function Ah(e,t){let n=xh.get(e);n||(n=new Set,xh.set(e,n)),n.add(t),t.finally(()=>{const n=xh.get(e);n&&n.delete(t)})}function Oh(e){const t=new Promise(t=>{Eh.set(e,t)});Ah(e,t)}
1function Nh(e,t,n=null,r){e.forEach(e=>{Th.add(e),vh&&dh(e,Nh)}),t&&Ph(e,t);const o=r??lh();if(o){const e=(0,P.et)(o);if(e.timestamp)return void(_f&&s.Yz.warn("[React Router] Lazy handler resolved after span ended - skipping update"));const t=e.op;let i=n;if(!i&&!r&&void 0!==_t){const e=_t.location;e?.pathname&&(i={pathname:e.pathname})}i&&("pageload"===t?qh({activeRootSpan:o,location:{pathname:i.pathname},routes:Array.from(Th),allRoutes:Array.from(Th)}):"navigation"===t&&$h(o,i,Array.from(Th),!1,_h))}}function $h(e,t,n,r=!1,o){const i=(0,P.et)(e),s=i.description,a=e?.__sentry_navigation_name_set__,c=s&&th(s);if((!a||r||c)&&!i.timestamp){const r=o(n,t),[u,l]=uh(t,n,n,r||[],Sh,yh,vh),p=i.data?.[I.i_];u&&(!s||!a&&("route"!==p||"route"===l)||"route"!==p&&"route"===l||"route"===p&&"route"===l&&c)&&(e.updateName(u),e.setAttribute(I.i_,l),th(u)||"route"!==l||(0,x.my)(e,"__sentry_navigation_name_set__",!0))}}function Mh(e,t,n,r,o){let i=!1,s=!!o&&"pageload"===(0,P.et)(o).op,a=!1,c=null,u=null;e.subscribe(e=>{if(!i){const t=lh();t&&"pageload"===(0,P.et)(t).op?s=!0:s&&("POP"!==e.historyAction||a?i=!0:a=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&i){const i=Rh(e.location),s=()=>{u!==i&&(u=i,c=null,Yh({location:e.location,routes:t,navigationType:e.historyAction,version:n,basename:r,allRoutes:Array.from(Th)}))};"idle"!==e.navigation.state?(u!==i&&(u=null),null!==c&&Ch(c),o=s,c=_t?.requestAnimationFrame?_t.requestAnimationFrame(o):setTimeout(o,0)):(null!==c&&(Ch(c),c=null),s())}var o})}function Lh(e,t){return fh&&hh&&mh&&_h?function(n,r){if(Bh(n),vh)for(const e of n)dh(e,Nh);const o=lh();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&o&&((0,x.my)(o,"__sentry_may_have_lazy_routes__",!0),Oh(o));const i=Uh(r,!1,o),s=e(n,i),a=r?.basename;return"POP"===s.state.historyAction&&o&&qh({activeRootSpan:o,location:s.state.location,routes:n,basename:a,allRoutes:Array.from(Th)}),Sh=a||"",Mh(s,n,t,a,o),s}:(_f&&s.Yz.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function Dh(e,t){return fh&&hh&&mh&&_h?function(n,r){if(Bh(n),vh)for(const e of n)dh(e,Nh);const o=lh();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&o&&((0,x.my)(o,"__sentry_may_have_lazy_routes__",!0),Oh(o));const i=Uh(r,!0,o),s=e(n,i),a=r?.basename;let c;const u=r?.initialEntries,l=r?.initialIndex,p=1===u?.length,d=void 0!==l&&u?.[l];c=p?u[0]:d?u[l]:void 0;const f=c?"string"==typeof c?{pathname:c}:c:s.state.location,h=lh();return"POP"===s.state.historyAction&&h&&qh({activeRootSpan:h,location:f,routes:n,basename:a,allRoutes:Array.from(Th)}),Sh=a||"",Mh(s,n,t,a,h),s}:(_f&&s.Yz.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function zh(e,t){const n=xo({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:o,useNavigationType:i,createRoutesFromChildren:a,matchRoutes:c,stripBasename:u,enableAsyncRouteHandlers:l=!1,instrumentPageLoad:p=!0,instrumentNavigation:d=!0,lazyRouteTimeout:f,lazyRouteManifest:h}=e;return{...n,setup(t){n.setup(t);const p=e.finalTimeout??3e4,d=3*(e.idleTimeout??1e3),m=f??d;m===1/0?(bh=p,_f&&s.Yz.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",p,"ms to prevent indefinite hangs")):Number.isNaN(m)?(_f&&s.Yz.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",d),bh=d):m<0?(_f&&s.Yz.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",m,"falling back to:",d),bh=d):bh=m,fh=r,hh=o,mh=i,_h=c,gh=a,vh=l,yh=h,function(e,t=!1){Wf=e,Jf=t}(c,u||!1)},afterAllSetup(e){n.afterAllSetup(e);const r=_t.location?.pathname;p&&r&&Eo(e,{name:r,attributes:{[I.i_]:"url",[I.uT]:"pageload",[I.JD]:`auto.pageload.react.reactrouter_v${t}`}}),d&&wh.add(e)}}}function jh(e,t){if(!(fh&&hh&&mh&&_h))return _f&&s.Yz.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;const n=n=>{const r=Hn.useRef(!0),{routes:o,locationArg:i}=n,s=e(o,i),a=hh(),c=mh(),u="string"==typeof i||i?.pathname?i:a;return fh(()=>{const e="string"==typeof u?{pathname:u}:u;r.current?(Bh(o),qh({activeRootSpan:lh(),location:e,routes:o,allRoutes:Array.from(Th)}),r.current=!1):Yh({location:e,routes:o,navigationType:c,version:t,allRoutes:Array.from(Th)})},[c,u]),s};return(e,t)=>Hn.createElement(n,{routes:e,locationArg:t})}
1function Uh(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};const r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{const o=e?.path,i=lh()??n;if(!t){const t=e?.patch,n=e?.matches;t&&(e.patch=(e,r)=>{if(Bh(r),n&&n.length>0){const t=n[n.length-1],o=t?.route;if(o){const t=Array.from(Th).find(t=>{const n=void 0!==t.id&&t.id===e,r=t===o,i=void 0!==t.path&&void 0!==o.path&&t.path===o.path;return n||r||i});t&&Ph(r,t)}}const s=i?(0,P.et)(i):void 0;return o&&i&&s&&!s.timestamp&&"navigation"===s.op&&$h(i,{pathname:o,search:"",hash:"",state:null,key:"default"},Array.from(Th),!0,_h),t(e,r)})}const a=(async()=>{const t=function(e,t){const n={};return Kf.length>=Gf&&(_f&&s.Yz.warn("[React Router] Navigation context stack overflow - removing oldest context"),Kf.shift()),Kf.push({token:n,targetPath:e,span:t}),n}(o,i);let n;try{n=await r(e)}finally{!function(e){const t=Kf[Kf.length-1];t?.token===e&&Kf.pop()}(t),i&&function(e){const t=Eh.get(e);t&&(t(),Eh.delete(e),e.__sentry_may_have_lazy_routes__&&(e.__sentry_may_have_lazy_routes__=!1))}(i)}const a=i?(0,P.et)(i):void 0;return i&&a&&!a.timestamp&&"navigation"===a.op&&o&&$h(i,{pathname:o,search:"",hash:"",state:null,key:"default"},Array.from(Th),!1,_h),n})();return i&&Ah(i,a),a}}}function Yh(e){const{location:t,routes:n,navigationType:r,version:o,matches:i,basename:a,allRoutes:c}=e,u=Array.isArray(i)?i:_h(c||n,t,a),l=(0,p.KU)();if(!l||!wh.has(l))return;const d=lh();if((!d||"pageload"!==(0,P.et)(d).op||"POP"!==r)&&("PUSH"===r||"POP"===r)&&u){const[e,r]=uh(t,c||n,c||n,u,a,yh,vh),i=Rh(t),p=kh.get(l),d=!(!p||p.isPlaceholder||!(0,P.et)(p.span).timestamp),{skip:f,shouldUpdate:h}=function(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){const t=!!e.routeName&&th(e.routeName),r=th(n),o=!!e.routeName&&Ih(e.routeName),i=Ih(n),s=t&&!r,a=!o&&i,c=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!r;return{skip:!0,shouldUpdate:!(!e.routeName||!(s||a||c))}}return{skip:!1,shouldUpdate:!1}}(p,i,e,d);if(f){if(h&&p){const t=p.routeName;p.isPlaceholder?(p.routeName=e,_f&&s.Yz.log(`[Tracing] Updated placeholder navigation name from "${t}" to "${e}" (will apply to real span)`)):(p.span.updateName(e),p.span.setAttribute(I.i_,r),(0,x.my)(p.span,"__sentry_navigation_name_set__",!0),p.routeName=e,_f&&s.Yz.log(`[Tracing] Updated navigation span name from "${t}" to "${e}"`))}else _f&&s.Yz.log(`[Tracing] Skipping duplicate navigation for location: ${i}`);return}const m={span:{end:()=>{}},routeName:e,pathname:t.pathname,locationKey:i,isPlaceholder:!0};let g;kh.set(l,m);try{g=Co(l,{name:m.routeName,attributes:{[I.i_]:r,[I.uT]:"navigation",[I.JD]:`auto.navigation.react.reactrouter_v${o}`}})}catch(e){throw kh.delete(l),e}g?(kh.set(l,{span:g,routeName:m.routeName,pathname:t.pathname,locationKey:i}),Wh(g,t,n,a,"navigation")):kh.delete(l)}}function Bh(e){e.forEach(e=>{Fh(e).forEach(e=>{Th.add(e)})})}function Fh(e,t=new Set){return t.has(e)||(t.add(e),e.children&&!e.index&&e.children.forEach(e=>{Fh(e,t).forEach(e=>{t.add(e)})})),t}function qh({activeRootSpan:e,location:t,routes:n,matches:r,basename:o,allRoutes:i}){const s=Array.isArray(r)?r:_h(i||n,t,o);if(s){const[r,a]=uh(t,i||n,i||n,s,o,yh,vh);(0,p.o5)().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(I.i_,a),Wh(e,t,n,o,"pageload"))}else e&&Wh(e,t,n,o,"pageload")}function Hh(e,t,n,r,o,i,a,c){try{const s=t.data?.[I.i_];if("route"===s&&n&&!th(n))return;const u=Array.from(c),l=u.length>0?u:o,p=_h(l,r,i);if(!p)return;const[d,f]=uh(r,l,l,p,i,yh,vh),h=function(e,t,n,r,o=!1){return!!n&&(!(e||!o)||!(!e||!th(e)||"route"!==r||th(n))||"route"!==t&&"route"===r)}
1(n,s,d,f,!0),m="pageload"===a||!t.timestamp;h&&m&&(e.updateName(d),e.setAttribute(I.i_,f))}catch(e){_f&&s.Yz.warn(`Error updating span details before ending: ${e}`)}}function Wh(e,t,n,r,o){const i=`__sentry_${o}_end_patched__`,s=e?.[i];if(s||!e.end)return;const a=e.end.bind(e);let c=!1;e.end=function(...i){if(c)return;c=!0;const s=i.length>0?i[0]:Date.now()/1e3,u=(0,P.et)(e),l=u.description,d=u.data?.[I.i_],f=()=>{const t=(0,p.KU)();if(t&&"navigation"===o){const n=kh.get(t);n&&n.span===e&&kh.delete(t)}},h=xh.get(e),m=e.__sentry_may_have_lazy_routes__;if((h&&h.size>0||m)&&l&&(th(l)||"route"!==d)){if(0===bh)return Hh(e,u,l,t,n,r,o,Th),f(),void a(s);const i=new Promise(e=>setTimeout(e,bh));let c;if(h&&h.size>0){const e=Promise.allSettled(h).then(()=>{});c=bh===1/0?e:Promise.race([e,i])}else c=i;return void c.then(()=>{const i=(0,P.et)(e);Hh(e,i,i.description,t,n,r,o,Th),f(),a(s)}).catch(()=>{f(),a(s)})}Hh(e,u,l,t,n,r,o,Th),f(),a(s)},(0,x.my)(e,i,!0)}function Jh(e,t){if(!(fh&&hh&&mh&&gh&&_h))return _f&&s.Yz.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n      useEffect: ${fh}. useLocation: ${hh}. useNavigationType: ${mh}.\n      createRoutesFromChildren: ${gh}. matchRoutes: ${_h}.`),e;const n=n=>{const r=Hn.useRef(!0),o=hh(),i=mh();return fh(()=>{const e=gh(n.children);r.current?(Bh(e),qh({activeRootSpan:lh(),location:o,routes:e,allRoutes:Array.from(Th)}),r.current=!1):Yh({location:o,routes:e,navigationType:i,version:t,allRoutes:Array.from(Th)})},[o,i]),Hn.createElement(e,{...n})};return df(n,e),n}function Kh(e){return zh(e,"6")}function Gh(e){return jh(e,"6")}function Vh(e){return Lh(e,"6")}function Xh(e){return Dh(e,"6")}function Qh(e){return Jh(e,"6")}function Zh(e){return zh(e,"7")}function em(e){return Jh(e,"7")}function tm(e){return Lh(e,"7")}function nm(e){return Dh(e,"7")}function rm(e){return jh(e,"7")}function om(e){const t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch{}return t}function im(e){const t=Object.create(null);try{Object.entries(e).forEach(([e,n])=>{"string"==typeof n&&(t[e]=n)})}catch{}return t}function sm(e){const t=om(e.headers);return{method:e.method,url:e.url,query_string:cm(e.url),headers:t}}function am(e){const t=e.headers||{},n=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),r=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),o=e.url||"",i=function({url:e,protocol:t,host:n}){return e?.startsWith("http")?e:e&&n?`${t}://${n}${e}`:void 0}({url:o,host:n,protocol:r}),s=e.body||void 0,a=e.cookies;return{url:i,method:e.method,query_string:cm(o),headers:im(t),cookies:a,data:s}}function cm(e){if(e)try{const t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}async function um(){try{Wn&&s.Yz.log("Flushing events..."),await(0,u.bX)(2e3),Wn&&s.Yz.log("Done flushing events")}catch(e){Wn&&s.Yz.log("Error while flushing events:\n",e)}}function lm(e){"function"!=typeof pm()?.waitUntil?function(e){if("string"!=typeof EdgeRuntime)return;const t=i.O[Symbol.for("@vercel/request-context")],n=t?.get?.();n?.waitUntil&&n.waitUntil(e)}(e):function(e){pm()?.waitUntil(e)}(e)}function pm(){const e=Symbol.for("__cloudflare-context__");return i.O[e]?.ctx}function dm(e,t,n){(0,p.v4)(r=>{r.setSDKProcessingMetadata({normalizedRequest:{headers:im(t.headers),method:t.method}}),r.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),r.setTransactionName(`${t.method} ${n.routePath}`),(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),lm(um())})}async function fm(e){const{req:t,res:n,err:r}=e,o=n?.statusCode||e.statusCode;if(o&&o<500)return;if(!e.pathname)return;if(r&&(0,y.dO)(r)){lm(um());const e="object"==typeof r?r.__sentry_event_id__:void 0;return"string"==typeof e?((0,p.rm)().setLastEventId(e),e):(0,p.rm)().lastEventId()}const i=(0,p.v4)(e=>{if(t){const n=am(t);e.setSDKProcessingMetadata({normalizedRequest:n})}
1return(0,u.Cp)(r||`_error.js called with falsy error (${r})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return lm(um()),i}var hm=n(74310),mm=n(24709);function gm(){return mm.env.NEXT_PHASE===hm.PHASE_PRODUCTION_BUILD}function _m(e){const t=gm(),n=!!e&&function(e){if(!function(e){return e.$$typeof===Symbol.for("react.server.reference")}(e))return!1;const{type:t}=function(e){const t=parseInt(e.slice(0,2),16),n=t>>7&1,r=t>>1&63,o=1&t,i=Array(6);for(let e=0;e<6;e++){const t=r>>5-e&1;i[e]=1===t}return{type:1===n?"use-cache":"server-action",usedArgs:i,hasRestArgs:1===o}}(e.$$id);return"use-cache"===t}(e);return n&&Wn&&s.Yz.log("Skipping span creation in Cache Components context"),t||n}function ym(){return new Zn({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}function vm(e,t){return _m(t)?t(ym()):fr(e,t)}function bm(e,t){if(_m(t)){const e=ym();return t(e,()=>e.end())}return hr(e,t)}function Sm(e){return _m()?ym():mr(e)}function wm(...e){if("function"==typeof e[1]){const[t,n]=e;return km(t,{},n)}{const[t,n,r]=e;return km(t,n,r)}}async function km(e,t,n){return(0,p.rB)(async r=>{const o=(0,p.KU)()?.getOptions().sendDefaultPii;let i,a;const c={};try{const e=await t.headers;i=e?.get("sentry-trace")??void 0,a=e?.get("baggage"),e?.forEach((e,t)=>{c[t]=e})}catch{Wn&&s.Yz.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}r.setTransactionName(`serverAction/${e}`),r.setSDKProcessingMetadata({normalizedRequest:{headers:c}});const l=(0,P.Bk)()?(e,t)=>t():gr;return l({sentryTrace:i,baggage:a},async()=>{try{return await fr({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[I.i_]:"route",[I.JD]:"auto.function.nextjs.server_action"}},async e=>{const r=await lr(n,t=>{Gn(t)?e.setStatus({code:sr.TJ,message:"not_found"}):Vn(t)||(e.setStatus({code:sr.TJ,message:"internal_error"}),(0,u.Cp)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:o)&&(0,p.rm)().setExtra("server_action_result",r),t.formData&&t.formData.forEach((e,t)=>{(0,p.rm)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),r})}finally{lm(um())}})})}function Tm(e,t){return new Proxy(e,{apply:(e,n,r)=>{if(!r?.[0])return e.apply(n,r);const[o]=r;let i;const s="nextUrl"in o?o.nextUrl.pathname:o.url,a="nextUrl"in o?o.headers.get("user-agent"):o.headers["user-agent"];if(!t||!a?.includes("vercel-cron"))return e.apply(n,r);const c=t.find(e=>e.path===s);if(!c?.path||!c.schedule)return e.apply(n,r);const l=c.path,p=(0,u.SE)({monitorSlug:l,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:c.schedule}}),d=(0,Le.Wk)()/1e3,f=()=>{(0,u.SE)({checkInId:p,monitorSlug:l,status:"error",duration:(0,Le.Wk)()/1e3-d})};try{i=e.apply(n,r)}catch(e){throw f(),e}return"object"==typeof i&&null!==i&&"then"in i?(Promise.resolve(i).then(()=>{(0,u.SE)({checkInId:p,monitorSlug:l,status:"ok",duration:(0,Le.Wk)()/1e3-d})},()=>{f()}),i):((0,u.SE)({checkInId:p,monitorSlug:l,status:"ok",duration:(0,Le.Wk)()/1e3-d}),i)}})}const xm="sentry.route_backfill";function Em(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,u.Cp)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function Cm(e,t,n,r){return async function(...n){const o=am(t);(0,p.o5)().setTransactionName(`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`),(0,p.rm)().setSDKProcessingMetadata({normalizedRequest:o});const i=(0,P.Bk)();i&&"/_error"!==r.requestedRouteName&&(0,P.zU)(i).setAttribute(xm,r.requestedRouteName);const{"sentry-trace":s,baggage:a}=uo();return{sentryTrace:s,baggage:a,data:await e.apply(this,n)}}}function Rm(e){return new Proxy(e,{apply:async(e,t,n)=>{if(gm())return e.apply(t,n);const[r]=n,{req:o,res:i}=r.ctx,s=Em(e);if(o&&i){const e=Cm(s,o,0,{dataFetcherRouteName:"/_app",requestedRouteName:r.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:i,sentryTrace:a,baggage:c}=await e.apply(t,n);return"object"==typeof i&&null!==i&&(i.pageProps||(i.pageProps={}),a&&(i.pageProps._sentryTraceData=a),c&&(i.pageProps._sentryBaggage=c)),i}return s.apply(t,n)}})}function Im(e){return new Proxy(e,{apply:async(e,t,n)=>{if(gm())return e.apply(t,n);const[r]=n,{req:o,res:i}=r,s=Em(e);if(o&&i){const e=Cm(s,o,0,{dataFetcherRouteName:"/_document",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:i}=await e.apply(t,n);return i}return s.apply(t,n)}})}function Pm(e){return new Proxy(e,{apply:async(e,t,n)=>{if(gm())return e.apply(t,n);const[r]=n,{req:o,res:i}=r,s=Em(e);if(o&&i){const e=Cm(s,o,0,{dataFetcherRouteName:"/_error",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:i,baggage:a,sentryTrace:c}=await e.apply(t,n);return"object"==typeof i&&null!==i&&(c&&(i._sentryTraceData=c),a&&(i._sentryBaggage=a)),i}return s.apply(t,n)}})}function Am(e,t){return new Proxy(e,{apply:(e,n,r)=>{const o=(0,p.rm)();let i;try{i=t.requestAsyncStorage?.getStore()?.headers}catch{}const s=i?om(i):void 0;return o.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),lr(()=>e.apply(n,r),e=>{const n=(0,P.Bk)(),{componentRoute:r,componentType:i,generationFunctionIdentifier:s}=t;let a=!0;o.setTransactionName(`${i}.${s} (${r})`),n&&(Gn(e)?(a=!1,n.setStatus({code:sr.TJ,message:"not_found"})):Vn(e)?(a=!1,n.setStatus({code:sr.F3})):n.setStatus({code:sr.TJ,message:"internal_error"})),a&&(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:s}}})},()=>{lm(um())})}})}
1function Om(e){return new Proxy(e,{apply:async(e,t,n)=>{if(gm())return e.apply(t,n);const[r]=n,{req:o,res:i}=r,s=Em(e);if(o&&i){const e=Cm(s,o,0,{dataFetcherRouteName:r.pathname,requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:i,baggage:a,sentryTrace:c}=await e.apply(t,n)??{};return"object"==typeof i&&null!==i&&(c&&(i._sentryTraceData=c),a&&(i._sentryBaggage=a)),i}return s.apply(t,n)}})}function Nm(e,t){return new Proxy(e,{apply:async(e,n,r)=>{if(gm())return e.apply(n,r);const[o]=r,{req:i,res:s}=o,a=Cm(Em(e),i,0,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:c,baggage:u,sentryTrace:l}=await a.apply(n,r);return"object"==typeof c&&null!==c&&"props"in c&&(l&&(c.props._sentryTraceData=l),u&&(c.props._sentryBaggage=u)),c}})}function $m(e,t){return new Proxy(e,{apply:async(e,t,n)=>gm()?e.apply(t,n):async function(e,t){try{return await e(...t)}catch(e){throw(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}(Em(e),n)})}function Mm(e){return new Proxy(e,{apply:async(e,t,n)=>{const r="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(r&&"string"==typeof r){const e=n[0];if(e instanceof Request){if((o=new URL(e.url).pathname)===(i=r)||o.startsWith(`${i}/`))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}}var o,i;return(0,p.rB)(r=>{const o=n[0],i=(0,p.o5)();let s,a;o instanceof Request?(r.setSDKProcessingMetadata({normalizedRequest:sm(o)}),s=`middleware ${o.method}`,a="url"):(s="middleware",a="component"),i.setTransactionName(s);const c=(0,P.Bk)();if(c){s="middleware",a="component";const e=(0,P.zU)(c);e&&(0,Kt.d)(e,i,r)}return fr({name:s,op:"http.server.middleware",attributes:{[I.i_]:a,[I.JD]:"auto.function.nextjs.wrap_middleware"}},()=>lr(()=>e.apply(t,n),e=>{(0,u.Cp)(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{lm(um())}))})}})}function Lm(e,t){e&&"object"==typeof e&&(0,x.my)(e,"__sentry_event_id__",t)}function Dm(e){return"function"==typeof(t=e)&&t?.prototype?.isReactComponent?class extends e{render(...e){return(0,p.rB)(()=>{const t=(0,p.o5)(),n="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){const e=(0,pr.nc)(n);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(e){throw Lm(e,(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}})),e}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>(0,p.rB)(()=>{const r=(0,p.o5)(),o=n?.[0]?._sentryTraceData;if(o){const e=(0,pr.nc)(o);r.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,n)}catch(e){throw Lm(e,(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}})),e}})}):e;var t}function zm(e,t){const{method:n,parameterizedRoute:r,headers:o}=t;return new Proxy(e,{apply:async(e,t,o)=>{const i=(0,P.Bk)(),s=i?(0,P.zU)(i):void 0;return(0,p.rB)((0,p.rm)(),()=>(0,p.v4)(async a=>{a.setTransactionName(`${n} ${r}`);const c=await lr(()=>e.apply(t,o),e=>{Vn(e)||(Gn(e)?(i&&(0,sr.N8)(i,404),s&&(0,sr.N8)(s,404)):(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{lm(um())});try{c.status&&(i&&(0,sr.N8)(i,c.status),s&&(0,sr.N8)(s,c.status))}catch{}return c}))}})}function jm(e,t){return new Proxy(e,{apply:(e,n,r)=>{const o=(0,p.rm)(),i=t.headers?om(t.headers):void 0;return o.setSDKProcessingMetadata({normalizedRequest:{headers:i}}),lr(()=>e.apply(n,r),e=>{const n=(0,P.Bk)(),{componentRoute:r,componentType:i}=t;let s=!0;o.setTransactionName(`${i} Server Component (${r})`),n&&(Gn(e)?(s=!1,n.setStatus({code:sr.TJ,message:"not_found"})):Vn(e)?(s=!1,n.setStatus({code:sr.F3})):n.setStatus({code:sr.TJ,message:"internal_error"})),s&&(0,u.Cp)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{lm(um())})}})}},5681:(e,t,n)=>{n.d(t,{_:()=>c});var r=n(14566),o=n(88757),i=n(33782),s=n(40720);let a;function c(e){const t="history";(0,r.s5)(t,e),(0,r.AS)(t,u)}function u(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const o=a,i=function(e){try{return new URL(e,s.j.location.origin).toString()}catch{return e}}(String(n));if(a=i,o===i)return e.apply(this,t);const c={from:o,to:i};(0,r.aj)("history",c)}return e.apply(this,t)}}s.j.addEventListener("popstate",()=>{const e=s.j.location.href,t=a;if(a=e,t===e)return;const n={from:t,to:e};(0,r.aj)("history",n)}),(0,o.NJ)()&&((0,i.GS)(s.j.history,"pushState",e),(0,i.GS)(s.j.history,"replaceState",e))}},9432:(e,t,n)=>{n.d(t,{N:()=>u});var r=n(40720),o=n(71248),i=n(26888);let s=-1;const a=new Set,c=e=>{if(function(e){return"pagehide"===e.type||"hidden"===r.j.document?.visibilityState}(e)&&s>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(const e of a)e();isFinite(s)||(s="visibilitychange"===e.type?e.timeStamp:0,(0,i.Q)("prerenderingchange",c,!0))}},u=()=>{if(r.j.document&&s<0){const e=(0,o.b)(),t=r.j.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;s=t??("hidden"!==r.j.document?.visibilityState||r.j.document?.prerendering?1/0:0),(0,i.d)("visibilitychange",c,!0),(0,i.d)("pagehide",c,!0),(0,i.d)("prerenderingchange",c,!0)}return{get firstHiddenTime(){return s},onHidden(e){a.add(e)}}}}
1,9514:(e,t,n)=>{n.d(t,{AD:()=>p,SB:()=>a,hH:()=>c,ul:()=>l});var r=n(75623),o=n(10215);const i=/^o(\d+)\./,s=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function a(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function c(e){const t=s.exec(e);if(!t)return void(0,o.pq)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,i="",a="",c="",l=""]=t.slice(1);let p="",d=l;const f=d.split("/");if(f.length>1&&(p=f.slice(0,-1).join("/"),d=f.pop()),d){const e=d.match(/^\d+/);e&&(d=e[0])}return u({host:a,pass:i,path:p,projectId:d,port:c,protocol:n,publicKey:r})}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 l(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=function(e){const t=e.match(i);return t?.[1]}(n)),r}function p(e){const t="string"==typeof e?c(e):u(e);if(t&&function(e){if(!r.T)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(o.Yz.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(o.Yz.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(o.Yz.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(o.Yz.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}},10215:(e,t,n)=>{n.d(t,{Ow:()=>s,Yz:()=>d,Z9:()=>a,pq:()=>c});var r=n(56533),o=n(75623),i=n(12848);const s=["debug","info","warn","error","log","assert","trace"],a={};function c(e){if(!("console"in i.O))return e();const t=i.O.console,n={},r=Object.keys(a);r.forEach(e=>{const r=a[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function u(){return p().enabled}function l(e,...t){o.T&&u()&&c(()=>{i.O.console[e](`Sentry Logger [${e}]:`,...t)})}function p(){return o.T?(0,r.BY)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const d={enable:function(){p().enabled=!0},disable:function(){p().enabled=!1},isEnabled:u,log:function(...e){l("log",...e)},warn:function(...e){l("warn",...e)},error:function(...e){l("error",...e)}}},12848:(e,t,n)=>{n.d(t,{O:()=>r});const r=globalThis},13132:(e,t,n)=>{n.d(t,{qd:()=>c,wg:()=>l,y7:()=>u});var r=n(88757),o=n(10215),i=n(48107),s=n(40720);const a={};function c(e){const t=a[e];if(t)return t;let n=s.j[e];if((0,r.a3)(n))return a[e]=n.bind(s.j);const c=s.j.document;if(c&&"function"==typeof c.createElement)try{const t=c.createElement("iframe");t.hidden=!0,c.head.appendChild(t);const r=t.contentWindow;r?.[e]&&(n=r[e]),c.head.removeChild(t)}catch(t){i.T&&o.Yz.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?a[e]=n.bind(s.j):n}function u(e){a[e]=void 0}function l(...e){return c("setTimeout")(...e)}},14566:(e,t,n)=>{n.d(t,{AS:()=>u,aj:()=>l,s5:()=>c});var r=n(75623),o=n(10215),i=n(42360);const s={},a={};function c(e,t){return s[e]=s[e]||[],s[e].push(t),()=>{const n=s[e];if(n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function u(e,t){if(!a[e]){a[e]=!0;try{t()}catch(t){r.T&&o.Yz.error(`Error while instrumenting ${e}`,t)}}}function l(e,t){const n=e&&s[e];if(n)for(const s of n)try{s(t)}catch(t){r.T&&o.Yz.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.qQ)(s)}\nError:`,t)}}},15828:(e,t,n)=>{n.d(t,{Gv:()=>c,P4:()=>s,sY:()=>a,ti:()=>u});var r=n(10215),o=n(48107);const i=Symbol.for("sentry__originalRequestBody");function s(e){return new URLSearchParams(e).toString()}function a(e,t=r.Yz){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[s(e)];if(!e)return[void 0]}catch(n){return o.T&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return o.T&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function c(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){const t=e[0][i];return void 0!==t?t:void 0}}function u(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return o.T&&r.Yz.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>
1{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}},17725:(e,t,n)=>{n.d(t,{D0:()=>l,De:()=>u,sv:()=>s,yD:()=>c});var r=n(75623),o=n(10215),i=n(72901);const s="sentry-",a=8192;function c(e){const t=l(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>(t.startsWith(s)&&(e[t.slice(s.length)]=n),e),{});return Object.keys(n).length>0?n:void 0}function u(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,c=0===i?s:`${e},${s}`;return c.length>a?(r.T&&o.Yz.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):c},"")}(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${s}${t}`]=n),e),{}))}function l(e){if(e&&((0,i.Kg)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const n=p(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):p(e)}function p(e){return e.split(",").map(e=>{const 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,n])=>(t&&n&&(e[t]=n),e),{})}},19125:(e,t,n)=>{n.d(t,{Vu:()=>a,fj:()=>i,qO:()=>s});var r=n(96021),o=n(87500);function i(e){const t=(0,o.zf)(),n={sid:(0,r.eJ)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{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}}}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,o.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,r.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{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function a(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},19982:(e,t,n)=>{n.d(t,{Bk:()=>F,CC:()=>g,Ck:()=>v,G_:()=>w,HQ:()=>T,Hu:()=>z,PL:()=>P,Qh:()=>S,RD:()=>R,VS:()=>j,aO:()=>_,aW:()=>B,cI:()=>x,et:()=>C,i$:()=>M,kX:()=>b,pK:()=>N,uU:()=>k,xO:()=>U,xl:()=>q,yW:()=>$,zQ:()=>H,zU:()=>Y});var r=n(29299),o=n(5450),i=n(56533),s=n(34181),a=n(71366),c=n(60258),u=n(37695),l=n(33782),p=n(94848),d=n(87500),f=n(30217),h=n(10215),m=n(81648);const g=0,_=1;let y=!1;function v(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a,links:c}=C(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a,links:c}}function b(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:C(e).parent_span_id,i=(0,u.L)(e).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||(0,p.Z)():t,trace_id:n}}function S(e){const{traceId:t,spanId:n}=e.spanContext(),r=N(e);return(0,f.TC)(t,n,r)}function w(e){const{traceId:t,spanId:n}=e.spanContext(),r=N(e);return(0,f.Iy)(t,n,r)}function k(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:o})=>({span_id:e,trace_id:t,sampled:n===_,attributes:o,...r})):void 0}function T(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===_,attributes:r})):void 0}function x(e){return"number"==typeof e?E(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?E(e.getTime()):(0,d.zf)()}function E(e){return e>9999999999?e/1e3:e}function C(e){if(O(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(A(e)){const{attributes:r,startTime:o,name:i,endTime:s,status:c,links:u}=e;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:I(e),start_timestamp:x(o),timestamp:x(s)||void 0,status:$(c),op:r[a.uT],origin:r[a.JD],links:k(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function R(e){if(O(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(A(e)){const{attributes:r,startTime:o,name:i,endTime:s,status:a,links:c}=e;return{name:i,span_id:t,trace_id:n,parent_span_id:I(e),start_timestamp:x(o),end_timestamp:x(s),is_segment:e===B(e),status:M(a),attributes:r,links:T(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===B(e)}}function I(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function P(e){return{...e,attributes:(0,o.SY)(e.attributes),links:e.links?.map(e=>({...e,attributes:(0,o.SY)(e.attributes)}))}}function A(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function O(e){return"function"==typeof e.getSpanJSON}function N(e){const{traceFlags:t}=e.spanContext();return t===_}function $(e){if(e&&e.code!==c.a3)return e.code===c.F3?"ok":e.message||"internal_error"}function M(e){return e&&e.code!==c.F3&&e.code!==c.a3&&"cancelled"!==e.message?"error":"ok"}const L="_sentryChildSpans",D="_sentryRootSpan";function z(e,t){const n=e[D]||e;(0,l.my)(t,D,n),e[L]?e[L].add(t):(0,l.my)(e,L,new Set([t]))}function j(e,t){e[L]&&e[L].delete(t)}function U(e){const t=new Set;return function e(n){if(!t.has(n)&&N(n)){t.add(n);const r=n[L]?Array.from(n[L]):[];for(const t of r)e(t)}}(e),Array.from(t)}const Y=B;function B(e){return e[D]||e}function F(){const e=(0,i.EU)(),t=(0,r.h)(e);return t.getActiveSpan?t.getActiveSpan():(0,m.f)((0,s.o5)())}function q(){y||((0,h.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),y=!0)}function H(e,t){e.updateName(t),e.setAttributes({[a.i_]:"custom",[a.Le]:t})}}
1,26888:(e,t,n)=>{n.d(t,{Q:()=>i,d:()=>o});var r=n(40720);function o(e,t,n){r.j.document&&r.j.addEventListener(e,t,n)}function i(e,t,n){r.j.document&&r.j.removeEventListener(e,t,n)}},29299:(e,t,n)=>{n.d(t,{h:()=>d});var r=n(56533),o=n(87553),i=n(49999),s=n(72901);class a{constructor(e,t){let n,r;n=e||new o.H,r=t||new o.H,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return(0,s.Qg)(n)?(0,i.i)(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function c(){const e=(0,r.EU)(),t=(0,r.Se)(e);return t.stack=t.stack||new a((0,r.BY)("defaultCurrentScope",()=>new o.H),(0,r.BY)("defaultIsolationScope",()=>new o.H))}function u(e){return c().withScope(e)}function l(e,t){const n=c();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function p(e){return c().withScope(()=>e(c().getIsolationScope()))}function d(e){const t=(0,r.Se)(e);return t.acs?t.acs:{withIsolationScope:p,withScope:u,withSetScope:l,withSetIsolationScope:(e,t)=>p(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},30217:(e,t,n)=>{n.d(t,{A9:()=>h,Iy:()=>f,MI:()=>u,TC:()=>d,kM:()=>p,nc:()=>l});var r=n(10215),o=n(17725),i=n(9514),s=n(31184),a=n(94848),c=n(86902);const u=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function l(e){if(!e)return;const t=e.match(u);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function p(e,t){const n=l(e),r=(0,o.yD)(t);if(!n?.traceId)return{traceId:(0,a.e)(),sampleRand:(0,c.hY)()};const i=function(e,t){const n=(0,s.i)(t?.sample_rand);if(void 0!==n)return n;const r=(0,s.i)(t?.sample_rate);return r&&void 0!==e?.parentSampled?e.parentSampled?(0,c.hY)()*r:r+(0,c.hY)()*(1-r):(0,c.hY)()}(n,r);r&&(r.sample_rand=i.toString());const{traceId:u,parentSpanId:p,parentSampled:d}=n;return{traceId:u,parentSpanId:p,sampled:d,dsc:r||{},sampleRand:i}}function d(e=(0,a.e)(),t=(0,a.Z)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function f(e=(0,a.e)(),t=(0,a.Z)(),n){return`00-${e}-${t}-${n?"01":"00"}`}function h(e,t){const n=(0,i.ul)(e);return t&&n&&t!==n?(r.Yz.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):!e.getOptions().strictTraceContinuation||!(t&&!n||!t&&n)||(r.Yz.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1)}},31184:(e,t,n)=>{function r(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}n.d(t,{i:()=>r})},31302:(e,t,n)=>{n.d(t,{a9:()=>W,hT:()=>G,Pt:()=>J,wv:()=>V,YG:()=>K,tC:()=>ie});var r=n(10215),o=n(42360),i=n(48107),s=n(40720);const a=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o??0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}};var c=n(9432),u=n(71248),l=n(68854);const p=(e,t=-1)=>{const n=(0,l.z)();let r="navigate";return n&&(s.j.document?.prerendering||(0,u.b)()>0?r="prerender":s.j.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},d=new WeakMap;function f(e,t){try{return d.get(e)||d.set(e,new t),d.get(e)}catch(e){return new t}}class h{constructor(){h.prototype.__init.call(this),h.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}const m=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},g=e=>{let t=!1;return()=>{t||(e(),t=!0)}},_=e=>{s.j.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},y=[1800,3e3],v=[.1,.25],b=(e,t={})=>{((e,t={})=>{_(()=>{const n=(0,c.N)(),r=p("FCP");let o;const i=m("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-(0,u.b)(),0),r.entries.push(t),o(!0)))});i&&(o=a(e,r,y,t.reportAllChanges))})})(g(()=>{const n=p("CLS",0);let r;const o=(0,c.N)(),i=f(t,h),u=e=>{for(const t of e)i._processEntry(t);i._sessionValue>
1n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},l=m("layout-shift",u);l&&(r=a(e,n,v,t.reportAllChanges),o.onHidden(()=>{u(l.takeRecords()),r(!0)}),s.j?.setTimeout?.(r))}))};let S=0,w=1/0,k=0;const T=e=>{e.forEach(e=>{e.interactionId&&(w=Math.min(w,e.interactionId),k=Math.max(k,e.interactionId),S=k?(k-w)/7+1:0)})};let x;const E=()=>x?S:performance.interactionCount||0,C=()=>{"interactionCount"in performance||x||(x=m("event",T,{type:"event",buffered:!0,durationThreshold:0}))};let R=0;class I{constructor(){I.prototype.__init.call(this),I.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){R=E(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor((E()-R)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}}var P=n(26888);const A=e=>{const t=s.j.requestIdleCallback||s.j.setTimeout;"hidden"===s.j.document?.visibilityState?e():(e=g(e),(0,P.d)("visibilitychange",e,{once:!0,capture:!0}),(0,P.d)("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),(0,P.Q)("visibilitychange",e,{capture:!0}),(0,P.Q)("pagehide",e,{capture:!0})}))},O=[200,500],N=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=(0,c.N)();_(()=>{C();const r=p("INP");let o;const i=f(t,I),s=e=>{A(()=>{for(const t of e)i._processEntry(t);const t=i._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,o())})},c=m("event",s,{durationThreshold:t.durationThreshold??40});o=a(e,r,O,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(c.takeRecords()),o(!0)}))})};class ${_processEntry(e){this._onBeforeProcessingEntry?.(e)}}const M=[2500,4e3],L=(e,t={})=>{_(()=>{const n=(0,c.N)(),r=p("LCP");let o;const i=f(t,$),s=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)i._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-(0,u.b)(),0),r.entries=[t],o())},l=m("largest-contentful-paint",s);if(l){o=a(e,r,M,t.reportAllChanges);const n=g(()=>{s(l.takeRecords()),l.disconnect(),o(!0)}),i=e=>{e.isTrusted&&(A(n),(0,P.Q)(e.type,i,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])(0,P.d)(e,i,{capture:!0})}})},D=[800,1800],z=e=>{s.j.document?.prerendering?_(()=>z(e)):"complete"!==s.j.document?.readyState?addEventListener("load",()=>z(e),!0):setTimeout(e)},j=(e,t={})=>{const n=p("TTFB"),r=a(e,n,D,t.reportAllChanges);z(()=>{const e=(0,l.z)();e&&(n.value=Math.max(e.responseStart-(0,u.b)(),0),n.entries=[e],r(!0))})},U={},Y={};let B,F,q,H;function W(e,t=!1){return ne("cls",e,Q,B,t)}function J(e,t=!1){return ne("lcp",e,Z,F,t)}function K(e){return ne("ttfb",e,ee,q)}function G(e){return ne("inp",e,te,H)}function V(e,t){return re(e,t),Y[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),m(e,t=>{X(e,{entries:t})},t)}(e),Y[e]=!0),oe(e,t)}function X(e,t){const n=U[e];if(n?.length)for(const s of n)try{s(t)}catch(t){i.T&&r.Yz.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.qQ)(s)}\nError:`,t)}}function Q(){return b(e=>{X("cls",{metric:e}),B=e},{reportAllChanges:!0})}function Z(){return L(e=>{X("lcp",{metric:e}),F=e},{reportAllChanges:!0})}function ee(){return j(e=>{X("ttfb",{metric:e}),q=e})}function te(){return N(e=>{X("inp",{metric:e}),H=e})}function ne(e,t,n,r,o=!1){let i;return re(e,t),Y[e]||(i=n(),Y[e]=!0),r&&t({metric:r}),oe(e,t,o?i:void 0)}function re(e,t){U[e]=U[e]||[],U[e].push(t)}function oe(e,t,n){return()=>{n&&n();const r=U[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function ie(e){return"duration"in e}},33782:(e,t,n)=>{n.d(t,{GS:()=>a,HF:()=>h,W4:()=>p,my:()=>c,pO:()=>u,sp:()=>l});var r=n(75623),o=n(50611),i=n(10215),s=n(72901);function a(e,t,n){if(!(t in e))return;const o=e[t];if("function"!=typeof o)return;const s=n(o);"function"==typeof s&&u(s,o);try{e[t]=s}catch{r.T&&i.Yz.log(`Failed to replace method "${t}" in object`,e)}}
1function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.T&&i.Yz.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function u(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch{}}function l(e){return e.__sentry_original__}function p(e){if((0,s.bJ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if((0,s.xH)(e)){const t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,s.tH)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function d(e){try{return(0,s.vq)(e)?(0,o.Hd)(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function f(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}function h(e){const t=Object.keys(p(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}},33828:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(71130);function o(e,t){const n=t?.getDsn(),o=t?.getOptions().tunnel;return function(e,t){const n=(0,r.kg)(e);return!(!n||(0,r.nt)(n))&&(!!t&&(((o=n.hostname)===(i=t.host)||i.length>0&&o.endsWith(`.${i}`))&&/(^|&|\?)sentry_key=/.test(n.search)));var o,i}(e,n)||function(e,t){return!!t&&i(e)===i(t)}(e,o)}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}},34181:(e,t,n)=>{n.d(t,{Bi:()=>c,KU:()=>h,m6:()=>p,o5:()=>u,rB:()=>f,rm:()=>l,v4:()=>d,vn:()=>m});var r=n(29299),o=n(56533),i=n(87553),s=n(94848);let a;function c(){return void 0!==a}function u(){const e=(0,o.EU)();return(0,r.h)(e).getCurrentScope()}function l(){const e=(0,o.EU)();return(0,r.h)(e).getIsolationScope()}function p(){return(0,o.BY)("globalScope",()=>new i.H)}function d(...e){const t=(0,o.EU)(),n=(0,r.h)(t);if(2===e.length){const[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function f(...e){const t=(0,o.EU)(),n=(0,r.h)(t);if(2===e.length){const[t,r]=e;return t?n.withSetIsolationScope(t,r):n.withIsolationScope(r)}return n.withIsolationScope(e[0])}function h(){return u().getClient()}function m(e){const t=a?.();if(t)return{trace_id:t.traceId,span_id:t.spanId};const n=e.getPropagationContext(),{traceId:r,parentSpanId:o,propagationSpanId:i}=n,c={trace_id:r,span_id:i||(0,s.Z)()};return o&&(c.parent_span_id=o),c}},35087:(e,t,n)=>{n.d(t,{M:()=>r});const r="10.52.0"},36693:(e,t,n)=>{n.d(t,{B:()=>s});var r=n(72736),o=n(24709),i=n(12848);function s(){return"undefined"!=typeof window&&(!(!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call(void 0!==o?o:0))||function(){const e=i.O.process;return"renderer"===e?.type}())}},36783:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(34181),o=n(10215),i=n(87500);const s=100;function a(e,t){const n=(0,r.KU)(),a=(0,r.rm)();if(!n)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=s}=n.getOptions();if(u<=0)return;const l={timestamp:(0,i.lu)(),...e},p=c?(0,o.pq)(()=>c(l,t)):l;null!==p&&(n.emit&&n.emit("beforeAddBreadcrumb",p,t),a.addBreadcrumb(p,u))}},37695:(e,t,n)=>{n.d(t,{L:()=>u,d:()=>c});var r=n(33782),o=n(12848);function i(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}const s="_sentryScope",a="_sentryIsolationScope";function c(e,t,n){e&&((0,r.my)(e,a,function(e){try{const t=o.O.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(n)),(0,r.my)(e,s,t))}function u(e){const t=e;return{scope:t[s],isolationScope:i(t[a])}}},40720:(e,t,n)=>{n.d(t,{j:()=>r});const r=n(12848).O},42360:(e,t,n)=>{n.d(t,{RV:()=>d,Wt:()=>h,gd:()=>a,nY:()=>f,qQ:()=>p,vk:()=>c,yF:()=>o});const r=50,o="?",i=/\(error: (.*)\)/,s=/captureMessage|captureException/;function a(...e){const t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,a=0)=>{const c=[],l=e.split("\n");for(let e=n;e<l.length;e++){let n=l[e];n.length>1024&&(n=n.slice(0,1024));const o=i.test(n)?n.replace(i,"$1"):n;if(!o.includes("Error: ")){for(const e of t){const t=e(o);if(t){c.push(t);break}}if(c.length>=r+a)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),s.test(u(t).function||"")&&(t.pop(),s.test(u(t).function||"")&&t.pop()),t.slice(0,r).map(e=>({...e,filename:e.filename||u(t).filename,function:e.function||o}))}(c.slice(a))}}function c(e){return Array.isArray(e)?a(...e):e}function u(e){return e[e.length-1]||{}}const l="<anonymous>";function p(e){try{return e&&"function"==typeof e&&e.name||l}catch{return l}}function d(e){const t=e.exception;if(t){const e=[];
1try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function f(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function h(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}},48107:(e,t,n)=>{n.d(t,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},48694:(e,t,n)=>{n.d(t,{FA:()=>i,Jz:()=>s,wq:()=>a});var r=n(86902);const o=6e4;function i(e,t=(0,r.Wk)()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?o:i-t}function s(e,t,n=(0,r.Wk)()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function a(e,{statusCode:t,headers:n},o=(0,r.Wk)()){const s={...e},a=n?.["x-sentry-rate-limits"],c=n?.["retry-after"];if(a)for(const e of a.trim().split(",")){const[t,n,,,r]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e&&r&&!r.split(";").includes("custom")||(s[e]=o+a);else s.all=o+a}else c?s.all=o+i(c,o):429===t&&(s.all=o+6e4);return s}},49988:(e,t,n)=>{n.d(t,{U:()=>r});const r="production"},49999:(e,t,n)=>{n.d(t,{i:()=>i});const r=e=>e instanceof Promise&&!e[o],o=Symbol("chained PromiseLike"),i=(e,t,n)=>{const o=e.then(e=>(t(e),e),e=>{throw n(e),e});return r(o)&&r(e)?o:s(e,o)},s=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const o=e[r];"function"==typeof o?Object.defineProperty(t,r,{value:(...t)=>o.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=o}return n&&Object.assign(t,{[o]:!0}),t}},50611:(e,t,n)=>{n.d(t,{$N:()=>c,Hd:()=>s,xE:()=>u});var r=n(72901);const o=n(12848).O,i=80;function s(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let s=0,c=0;const u=" > ",l=u.length;let p;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||i;for(;n&&s++<r&&(p=a(n,d),!("html"===p||s>1&&c+o.length*l+p.length>=f));)o.push(p),c+=p.length,n=n.parentNode;return o.reverse().join(u)}catch{return"<unknown>"}}function a(e,t){const n=e,i=[];if(!n?.tagName)return"";if(o.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const s=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(s?.length)s.forEach(e=>{i.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const e=n.className;if(e&&(0,r.Kg)(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}for(const e of["aria-label","type","name","title","alt"]){const t=n.getAttribute(e);t&&i.push(`[${e}="${t}"]`)}return i.join("")}function c(){try{return o.document.location.href}catch{return""}}function u(e,t=5){if(!o.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}},53213:(e,t,n)=>{n.d(t,{i:()=>p});var r=n(14566),o=n(33782),i=n(96021),s=n(40720);const a=1e3;let c,u,l;function p(e){(0,r.s5)("dom",e),(0,r.AS)("dom",d)}function d(){if(!s.j.document)return;const e=r.aj.bind(null,"dom"),t=f(e,!0);s.j.document.addEventListener("click",t,!1),s.j.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=s.j,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,o.GS)(r,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=f(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch{}return t.call(this,n,r,o)}}),(0,o.GS)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function f(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}
1(n.type,r))return;(0,o.my)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,o.my)(r,"_sentryId",(0,i.eJ)());const p="keypress"===n.type?"input":n.type;(function(e){if(e.type!==u)return!1;try{if(!e.target||e.target._sentryId!==l)return!1}catch{}return!0})(n)||(e({event:n,name:p,global:t}),u=n.type,l=r?r._sentryId:void 0),clearTimeout(c),c=s.j.setTimeout(()=>{l=void 0,u=void 0},a)}}},54891:(e,t,n)=>{n.d(t,{HW:()=>_,LZ:()=>f,ao:()=>m,k1:()=>g});var r=n(49988),o=n(34181),i=n(71366),s=n(17725),a=n(9514),c=n(89477),u=n(33782),l=n(19982),p=n(37695);const d="_frozenDsc";function f(e,t){const n=e;(0,u.my)(n,d,t)}function h(e,t){const n=t.getOptions(),{publicKey:o}=t.getDsn()||{},i={environment:n.environment||r.U,release:n.release,public_key:o,trace_id:e,org_id:(0,a.ul)(t)};return t.emit("createDsc",i),i}function m(e,t){const n=t.getPropagationContext();return n.dsc||h(n.traceId,e)}function g(e){const t=(0,o.KU)();if(!t)return{};const n=(0,l.zU)(e),r=(0,l.et)(n),a=r.data,u=n.spanContext().traceState,f=u?.get("sentry.sample_rate")??a[i.sy]??a[i.Ef];function m(e){return"number"!=typeof f&&"string"!=typeof f||(e.sample_rate=`${f}`),e}const g=n[d];if(g)return m(g);const _=u?.get("sentry.dsc"),y=_&&(0,s.yD)(_);if(y)return m(y);const v=h(e.spanContext().traceId,t),b=a[i.i_]??a["sentry.span.source"],S=r.description;return"url"!==b&&S&&(v.transaction=S),(0,c.f)()&&(v.sampled=String((0,l.pK)(n)),v.sample_rand=u?.get("sentry.sample_rand")??(0,p.L)(n).scope?.getPropagationContext().sampleRand.toString()),m(v),t.emit("createDsc",v,n),v}function _(e){const t=g(e);return(0,s.De)(t)}},56533:(e,t,n)=>{n.d(t,{BY:()=>a,EU:()=>i,Se:()=>s});var r=n(35087),o=n(12848);function i(){return s(o.O),o.O}function s(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.M,t[r.M]=t[r.M]||{}}function a(e,t,n=o.O){const i=n.__SENTRY__=n.__SENTRY__||{},s=i[r.M]=i[r.M]||{};return s[e]||(s[e]=t())}},57462:(e,t,n)=>{function r(e,t,n){let r,o,i;const s=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function l(){return o&&clearTimeout(o),o=a(c,t),s&&void 0===i&&(i=a(c,s)),r}return l.cancel=u,l.flush=function(){return void 0!==o||void 0!==i?c():r},l}n.d(t,{s:()=>r})},59123:(e,t,n)=>{n.d(t,{Er:()=>a,Mn:()=>c});var r=n(14566),o=n(87500),i=n(72901),s=n(40720);const a="__sentry_xhr_v3__";function c(e){(0,r.s5)("xhr",e),(0,r.AS)("xhr",u)}function u(){if(!s.j.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const s=new Error,c=1e3*(0,o.zf)(),u=(0,i.Kg)(n[0])?n[0].toUpperCase():void 0,l=function(e){if((0,i.Kg)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!u||!l)return e.apply(t,n);t[a]={method:u,url:l,request_headers:{}},"POST"===u&&l.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const p=()=>{const e=t[a];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}const n={endTimestamp:1e3*(0,o.zf)(),startTimestamp:c,xhr:t,virtualError:s};(0,r.aj)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(p(),e.apply(t,n))}):t.addEventListener("readystatechange",p),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,s=t[a];return s&&(0,i.Kg)(r)&&(0,i.Kg)(o)&&(s.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const i=t[a];if(!i)return e.apply(t,n);void 0!==n[0]&&(i.body=n[0]);const s={startTimestamp:1e3*(0,o.zf)(),xhr:t};return(0,r.aj)("xhr",s),e.apply(t,n)}})}},60258:(e,t,n)=>{n.d(t,{AJ:()=>s,F3:()=>o,N8:()=>a,TJ:()=>i,a3:()=>r});const r=0,o=1,i=2;function s(e){if(e<400&&e>=100)return{code:o};if(e>=400&&e<500)switch(e){case 401:return{code:i,message:"unauthenticated"};case 403:return{code:i,message:"permission_denied"};case 404:return{code:i,message:"not_found"};case 409:return{code:i,message:"already_exists"};case 413:return{code:i,message:"failed_precondition"};case 429:return{code:i,message:"resource_exhausted"};case 499:return{code:i,message:"cancelled"};default:return{code:i,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:i,message:"unimplemented"};case 503:return{code:i,message:"unavailable"};case 504:return{code:i,message:"deadline_exceeded"};default:return{code:i,message:"internal_error"}}return{code:i,message:"internal_error"}}function a(e,t){e.setAttribute("http.response.status_code",t);const n=s(t);"unknown_error"!==n.message&&e.setStatus(n)}}
1,63398:(e,t,n)=>{n.d(t,{li:()=>y,mG:()=>_});var r=n(49988),o=n(75623),i=n(10215),s=n(72901),a=n(86447);function c(e,t,n,r=0){try{const o=u(t,n,e,r);return(0,s.Qg)(o)?o:(0,a.XW)(o)}catch(e){return(0,a.xg)(e)}}function u(e,t,n,r){const a=n[r];if(!e||!a)return e;const c=a({...e},t);return o.T&&null===c&&i.Yz.log(`Event processor "${a.id||"?"}" dropped event`),(0,s.Qg)(c)?c.then(e=>u(e,t,n,r+1)):u(c,t,n,r+1)}var l=n(87553),p=n(87219),d=n(96021),f=n(83144),h=n(85587),m=n(65824),g=n(87500);function _(e,t,n,o,i,s){const{normalizeDepth:u=3,normalizeMaxBreadth:_=1e3}=e,y={...t,event_id:t.event_id||n.event_id||(0,d.eJ)(),timestamp:t.timestamp||(0,g.lu)()},v=n.integrations||e.integrations.map(e=>e.name);!function(e,t){const{environment:n,release:o,dist:i,maxValueLength:s}=t;e.environment=e.environment||n||r.U,!e.release&&o&&(e.release=o),!e.dist&&i&&(e.dist=i);const a=e.request;a?.url&&s&&(a.url=(0,m.xv)(a.url,s)),s&&e.exception?.values?.forEach(e=>{e.value&&(e.value=(0,m.xv)(e.value,s))})}(y,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(y,v),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=(0,p.z)(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}(y,e.stackParser);const b=function(e,t){if(!t)return e;const n=e?e.clone():new l.H;return n.update(t),n}(o,n.captureContext);n.mechanism&&(0,d.M6)(y,n.mechanism);const S=i?i.getEventProcessors():[],w=(0,h.Om)(s,b),k=[...n.attachments||[],...w.attachments];k.length&&(n.attachments=k),(0,h.e2)(y,w);const T=[...S,...w.eventProcessors];return(n.data&&!0===n.data.__sentry__?(0,a.XW)(y):c(T,y,n)).then(e=>(e&&function(e){const 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||[];const n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof u&&u>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,f.S8)(e.data,t,n)}}))},...e.user&&{user:(0,f.S8)(e.user,t,n)},...e.contexts&&{contexts:(0,f.S8)(e.contexts,t,n)},...e.extra&&{extra:(0,f.S8)(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,f.S8)(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,f.S8)(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,f.S8)(e.contexts.flags,3,n)),r}(e,u,_):e))}function y(e){if(e)return function(e){return e instanceof l.H||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>v.includes(e))}(e)?{captureContext:e}:e}const v=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},65824:(e,t,n)=>{n.d(t,{Xr:()=>u,_c:()=>c,gt:()=>a,nC:()=>s,xv:()=>i});var r=n(72901),o=n(42360);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function s(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];try{(0,r.L2)(i)?n.push((0,o.nY)(i)):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function c(e,t,n=!1){return!!(0,r.Kg)(e)&&((0,r.gd)(t)?t.test(e):(0,r.Kg)(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function u(e,t=[],n=!1){return t.some(t=>c(e,t,n))}},68854:(e,t,n)=>{n.d(t,{z:()=>o});var r=n(40720);const o=(e=!0)=>{const t=r.j.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},71130:(e,t,n)=>{n.d(t,{CH:()=>s,Dl:()=>a,e_:()=>u,f:()=>c,kg:()=>i,nt:()=>o,zm:()=>l});const r="thismessage:/";function o(e){return"isRelative"in e}function i(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),o=t??(n?r:void 0);try{if("canParse"in URL&&!URL.canParse(e,o))return;const t=new URL(e,o);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function s(e){if(o(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function a(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function c(e){return e.split(/[?#]/,1)[0]}function u(e){const{protocol:t,host:n,path:r}=e;return`${t?`${t}://`:""}${n?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${r}`}function l(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",o=e.includes(";base64,"),i=e.indexOf(",");let s="";if(t&&-1!==i){const t=e.slice(i+1);s=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${o?",base64":""}${s?`,${s}`:""}`}return e}}
1,71248:(e,t,n)=>{n.d(t,{b:()=>o});var r=n(68854);const o=()=>{const e=(0,r.z)();return e?.activationStart??0}},71366:(e,t,n)=>{n.d(t,{E1:()=>w,Ef:()=>i,Fy:()=>C,JD:()=>a,Kh:()=>p,Kp:()=>h,Lc:()=>E,Le:()=>S,Sn:()=>u,Ts:()=>T,Wp:()=>d,Xg:()=>v,_8:()=>f,bC:()=>m,c9:()=>x,dB:()=>y,fs:()=>c,g1:()=>g,i_:()=>r,jG:()=>k,oJ:()=>_,sy:()=>o,uT:()=>s,xc:()=>l,zR:()=>b});const r="sentry.source",o="sentry.sample_rate",i="sentry.previous_trace_sample_rate",s="sentry.op",a="sentry.origin",c="sentry.idle_span_finish_reason",u="sentry.measurement_unit",l="sentry.measurement_value",p="sentry.release",d="sentry.environment",f="sentry.segment.name",h="sentry.segment.id",m="sentry.sdk.name",g="sentry.sdk.version",_="user.id",y="user.email",v="user.ip_address",b="user.name",S="sentry.custom_span_name",w="sentry.profile_id",k="sentry.exclusive_time",T="http.request.method",x="url.full",E="sentry.link.type",C="gen_ai.conversation.id"},72106:(e,t,n)=>{function r(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}n.d(t,{t:()=>r})},72539:(e,t,n)=>{function r(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const o={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=r(o[e],t[e],n-1));return o}n.d(t,{h:()=>r})},72736:(e,t,n)=>{function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){return"npm"}n.d(t,{Z:()=>r,e:()=>o})},72901:(e,t,n)=>{n.d(t,{BD:()=>a,Kg:()=>u,L2:()=>v,NF:()=>l,Qd:()=>d,Qg:()=>g,T2:()=>s,W6:()=>c,bJ:()=>o,gd:()=>m,ks:()=>b,mE:()=>_,sO:()=>p,tH:()=>y,vq:()=>h,xH:()=>f});const r=Object.prototype.toString;function o(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return y(e,Error)}}function i(e,t){return r.call(e)===`[object ${t}]`}function s(e){return i(e,"ErrorEvent")}function a(e){return i(e,"DOMError")}function c(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function l(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function p(e){return null===e||l(e)||"object"!=typeof e&&"function"!=typeof e}function d(e){return i(e,"Object")}function f(e){return"undefined"!=typeof Event&&y(e,Event)}function h(e){return"undefined"!=typeof Element&&y(e,Element)}function m(e){return i(e,"RegExp")}function g(e){return Boolean(e?.then&&"function"==typeof e.then)}function _(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function y(e,t){try{return e instanceof t}catch{return!1}}function v(e){return!("object"!=typeof e||null===e||!(e.__isVue||e._isVue||e.__v_isVNode))}function b(e){return"undefined"!=typeof Request&&y(e,Request)}},75623:(e,t,n)=>{n.d(t,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},80398:(e,t,n)=>{n.d(t,{Cp:()=>p,Dp:()=>x,J0:()=>R,J5:()=>A,Ji:()=>b,NA:()=>y,Ol:()=>E,Q:()=>S,SA:()=>C,SE:()=>w,VN:()=>T,Wt:()=>_,bX:()=>k,cx:()=>m,gV:()=>v,ky:()=>I,l7:()=>g,o:()=>h,r:()=>f,wd:()=>d});var r=n(34181),o=n(75623),i=n(19125),s=n(10215),a=n(96021),c=n(63398),u=n(85587),l=n(12848);function p(e,t){return(0,r.o5)().captureException(e,(0,c.li)(t))}function d(e,t){const n="string"==typeof t?t:void 0,o="string"!=typeof t?{captureContext:t}:void 0;return(0,r.o5)().captureMessage(e,n,o)}function f(e,t){return(0,r.o5)().captureEvent(e,t)}function h(e,t){(0,r.rm)().setContext(e,t)}function m(e){(0,r.rm)().setExtras(e)}function g(e,t){(0,r.rm)().setExtra(e,t)}function _(e){(0,r.rm)().setTags(e)}function y(e,t){(0,r.rm)().setTag(e,t)}function v(e){(0,r.rm)().setUser(e)}function b(e){(0,r.rm)().setConversationId(e)}function S(){return(0,r.rm)().lastEventId()}function w(e,t){const n=(0,r.o5)(),i=(0,r.KU)();if(i){if(i.captureCheckIn)return i.captureCheckIn(e,t,n);o.T&&s.Yz.warn("Cannot capture check-in. Client does not support sending check-ins.")}else o.T&&s.Yz.warn("Cannot capture check-in. No client defined.");return(0,a.eJ)()}async function k(e){const t=(0,r.KU)();return t?t.flush(e):(o.T&&s.Yz.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function T(e){const t=(0,r.KU)();return t?t.close(e):(o.T&&s.Yz.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function x(){return!!(0,r.KU)()}function E(){const e=(0,r.KU)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function C(e){(0,r.rm)().addEventProcessor(e)}function R(e){const t=(0,r.rm)(),{user:n}=(0,u.Om)(t,(0,r.o5)()),{userAgent:o}=l.O.navigator||{},s=(0,i.fj)({user:n,...o&&{userAgent:o},...e}),a=t.getSession();return"ok"===a?.status&&(0,i.qO)(a,{status:"exited"}),I(),t.setSession(s),s}function I(){const e=(0,r.rm)(),t=(0,r.o5)().getSession()||e.getSession();t&&(0,i.Vu)(t),P(),e.setSession()}function P(){const e=(0,r.rm)(),t=(0,r.KU)(),n=e.getSession();n&&t&&t.captureSession(n)}function A(e=!1){e?I():P()}}
1,81648:(e,t,n)=>{n.d(t,{f:()=>s,r:()=>i});var r=n(33782);const o="_sentrySpan";function i(e,t){t?(0,r.my)(e,o,t):delete e[o]}function s(e){return e[o]}},83144:(e,t,n)=>{n.d(t,{S8:()=>a,cd:()=>c});var r=n(72901),o=n(96860),i=n(33782),s=n(42360);function a(e,t=100,n=1/0){try{return u("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t=3,n=102400){const r=a(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?c(e,t-1,n):r;var o}function u(e,t,n=1/0,a=1/0,c=function(){const e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){const[l,p]=c;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,r.L2)(t))return(0,s.nY)(t);if((0,r.mE)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,s.qQ)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!d.startsWith("[object "))return d;if((0,o.Ef)(t))return t;const f=(0,o.We)(t),h=void 0!==f?f:n;if(0===h)return d.replace("object ","");if(l(t))return"[Circular ~]";const m=t;if(m&&"function"==typeof m.toJSON)try{return u("",m.toJSON(),h-1,a,c)}catch{}const g=Array.isArray(t)?[]:{};let _=0;const y=(0,i.W4)(t);for(const e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(_>=a){g[e]="[MaxProperties ~]";break}const t=y[e];g[e]=u(e,t,h-1,a,c),_++}return p(t),g}},85587:(e,t,n)=>{n.d(t,{Om:()=>l,e2:()=>a});var r=n(34181),o=n(54891),i=n(72539),s=n(19982);function a(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:(0,s.kX)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,o.k1)(t),...e.sdkProcessingMetadata};const n=(0,s.zU)(t),r=(0,s.et)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,a)}function c(e,t){const{extra:n,tags:r,attributes:o,user:s,contexts:a,level:c,sdkProcessingMetadata:l,breadcrumbs:p,fingerprint:d,eventProcessors:f,attachments:h,propagationContext:m,transactionName:g,span:_}=t;u(e,"extra",n),u(e,"tags",r),u(e,"attributes",o),u(e,"user",s),u(e,"contexts",a),e.sdkProcessingMetadata=(0,i.h)(e.sdkProcessingMetadata,l,2),c&&(e.level=c),g&&(e.transactionName=g),_&&(e.span=_),p.length&&(e.breadcrumbs=[...e.breadcrumbs,...p]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...m}}function u(e,t,n){e[t]=(0,i.h)(e[t],n,1)}function l(e,t){const n=(0,r.m6)().getScopeData();return e&&c(n,e.getScopeData()),t&&c(n,t.getScopeData()),n}},86447:(e,t,n)=>{n.d(t,{XW:()=>o,xg:()=>i});var r=n(72901);function o(e){return new s(t=>{t(e)})}function i(e){return new s((t,n)=>{n(e)})}class s{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new s((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new s((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();
1this._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){const t=(e,t)=>{0===this._state&&((0,r.Qg)(t)?t.then(n,o):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},o=e=>{t(2,e)};try{e(n,o)}catch(e){o(e)}}}},86902:(e,t,n)=>{n.d(t,{Qw:()=>i,Wk:()=>a,hY:()=>s});var r=n(12848);let o;function i(e){if(void 0!==o)return o?o(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=r.O;return t in n&&"function"==typeof n[t]?(o=n[t],o(e)):(o=null,e())}function s(){return i(()=>Math.random())}function a(){return i(()=>Date.now())}},87219:(e,t,n)=>{n.d(t,{i:()=>l,z:()=>u});var r=n(42360),o=n(12848);let i,s,a,c;function u(e){const t=o.O._sentryDebugIds,n=o.O._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],u=n?Object.keys(n):[];if(c&&r.length===s&&u.length===a)return c;s=r.length,a=u.length,c={},i||(i={});const l=(t,n)=>{for(const r of t){const t=n[r],o=i?.[r];if(o&&c&&t)c[o[0]]=t,i&&(i[r]=[o[0],t]);else if(t){const n=e(r);for(let e=n.length-1;e>=0;e--){const o=n[e],s=o?.filename;if(s&&c&&i){c[s]=t,i[r]=[s,t];break}}}}};return t&&l(r,t),n&&l(u,n),c}function l(e,t){const n=u(e);if(!n)return[];const o=[];for(const e of t){const t=(0,r.Wt)(e);t&&n[t]&&o.push({type:"sourcemap",code_file:e,debug_id:n[t]})}return o}},87500:(e,t,n)=>{n.d(t,{k3:()=>l,lu:()=>s,zf:()=>c});var r=n(86902),o=n(12848);const i=1e3;function s(){return(0,r.Wk)()/i}let a;function c(){return(a??(a=function(){const{performance:e}=o.O;if(!e?.now||!e.timeOrigin)return s;const t=e.timeOrigin;return()=>(t+(0,r.Qw)(()=>e.now()))/i}()))()}let u=null;function l(){return null===u&&(u=function(){const{performance:e}=o.O;if(!e?.now)return;const t=3e5,n=(0,r.Qw)(()=>e.now()),i=(0,r.Wk)(),s=e.timeOrigin;if("number"==typeof s&&Math.abs(s+n-i)<t)return s;const a=e.timing?.navigationStart;return"number"==typeof a&&Math.abs(a+n-i)<t?a:i-n}()),u}},87553:(e,t,n)=>{n.d(t,{H:()=>h});var r=n(75623),o=n(19125),i=n(10215),s=n(72901),a=n(72539),c=n(96021),u=n(94848),l=n(86902),p=n(81648),d=n(65824),f=n(87500);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,l.hY)()}}clone(){const 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,p.r)(e,(0,p.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,o.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;const t="function"==typeof e?e(this):e,n=t instanceof h?t.getScopeData():(0,s.Qd)(t)?e:void 0,{tags:r,attributes:o,extra:i,user:a,contexts:c,level:u,fingerprint:l=[],propagationContext:p,conversationId:d}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),l.length&&(this._fingerprint=l),p&&(this._propagationContext=p),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,p.r)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,u.e)(),sampleRand:(0,l.hY)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,f.lu)(),...e,message:e.message?(0,d.xv)(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),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,p.f)(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,a.h)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}
1captureException(e,t){const n=t?.event_id||(0,c.eJ)();if(!this._client)return r.T&&i.Yz.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...t,event_id:n},this),n}captureMessage(e,t,n){const o=n?.event_id||(0,c.eJ)();if(!this._client)return r.T&&i.Yz.warn("No client configured on scope - will not capture message!"),o;const s=n?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:o},this),o}captureEvent(e,t){const n=e.event_id||t?.event_id||(0,c.eJ)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r.T&&i.Yz.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},88757:(e,t,n)=>{n.d(t,{NJ:()=>s,a3:()=>a,m7:()=>c,vQ:()=>u});var r=n(75623),o=n(10215);const i=n(12848).O;function s(){return"history"in i&&!!i.history}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function c(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in i))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(a(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.T&&o.Yz.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function u(){return"ReportingObserver"in i}},89477:(e,t,n)=>{n.d(t,{f:()=>o});var r=n(34181);function o(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||(0,r.KU)()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}},92029:(e,t,n)=>{n.d(t,{Cj:()=>y,W3:()=>c,bN:()=>d,bm:()=>m,h4:()=>a,hP:()=>l,mE:()=>f,n2:()=>v,y5:()=>h,yH:()=>u,zk:()=>_});var r=n(56533),o=n(9514),i=n(83144),s=n(12848);function a(e,t=[]){return[e,t]}function c(e,t){const[n,r]=e;return[n,[...r,t]]}function u(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function l(e,t){return u(e,(e,n)=>t.includes(n))}function p(e){const t=(0,r.Se)(s.O);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function d(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[p(r),e]:r.push("string"==typeof e?p(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,i.S8)(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function f(e){let t="string"==typeof e?p(e):e;function n(e){const n=t.subarray(0,e);return t=t.subarray(e+1),n}function o(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=(0,r.Se)(s.O);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(n(e)))}const i=o(),a=[];for(;t.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?n(t):o()])}return[i,a]}function h(e){return[{type:"span"},e]}function m(e){const t="string"==typeof e.data?p(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const g={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function _(e){return function(e){return e in g}(e)?g[e]:e}function y(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function v(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,o.SB)(r)},...i&&{trace:i}}}}
1,94848:(e,t,n)=>{n.d(t,{Z:()=>i,e:()=>o});var r=n(96021);function o(){return(0,r.eJ)()}function i(){return(0,r.eJ)().substring(16)}},96021:(e,t,n)=>{n.d(t,{$X:()=>l,GR:()=>h,M6:()=>d,dO:()=>m,db:()=>f,eJ:()=>c,gO:()=>p});var r=n(33782),o=n(86902),i=n(65824),s=n(12848);let a;function c(e=function(){const e=s.O;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,o.Qw)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return a||(a=[1e7]+1e3+4e3+8e3+1e11),a.replace(/[018]/g,e=>(e^(16*(0,o.hY)()&15)>>e/4).toString(16))}function u(e){return e.exception?.values?.[0]}function l(e){const{message:t,event_id:n}=e;if(t)return t;const r=u(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function p(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function d(e,t){const n=u(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}}function f(e,t,n=5){if(void 0===t.lineno)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(e=>(0,i.nC)(e,0));const s=Math.min(r-1,o);t.context_line=(0,i.nC)(e[s],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(e=>(0,i.nC)(e,0))}function h(e){if(m(e))return!0;try{(0,r.my)(e,"__sentry_captured__",!0)}catch{}return!1}function m(e){try{return e.__sentry_captured__}catch{}}},96860:(e,t,n)=>{n.d(t,{Ef:()=>c,Gc:()=>s,We:()=>u,uy:()=>a});var r=n(33782);const o=Symbol.for("sentry.skipNormalization"),i=Symbol.for("sentry.overrideNormalizationDepth");function s(e){(0,r.my)(e,o,!0)}function a(e,t){(0,r.my)(e,i,t)}function c(e){return Boolean(e[o])}function u(e){const t=e[i];return"number"==typeof t?t:void 0}}}]);

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.