PageSourceSearch

https://www.redtreealbums.com/assets/entry.client-D53ekWIY.js

js redtreealbums.com collected 2026-10-04 11:01:03 UTC 101,835 bytes, 23 lines download raw bytes

1import{j as Fs}from"./jsx-runtime-DkU5PdqJ.js";import{r as yr}from"./index-DZeHVLxC.js";import{B as Hs,C as $s,E as Bs,D as Us,R as M,s as qs,r as H,G as vr,H as js,I as Ws,J as zs,K as Gs,P as Ys,Q as Vs,T as Xs,U as Js,V as Ks,W as Zs,X as Qs,Y as eo,Z as to}from"./chunk-OE4NN4TA-EOxyPD_k.js";import{D as _,e as m,f as se,G as O,h as q,i as B,S as ve,j as ht,k as br,T as Ir,n as no,l as ro,m as Ye,o as fe,s as v,p as Vt,q as It,t as Ve,u as Xe,v as U,w as J,x as k,y as so,z as He,A as z,B as oo,C as we,E as ln,F as ao,H as w,I as Rn,J as A,K as it,L as wn,M as io,N as Rr,O as pe,P as fn,Q as Rt,R as wr,U as kr,_ as co,V as ct,W as wt,X as Ar,Y as uo,Z as Nr,$ as kt,a0 as gt,a1 as lo,a2 as At,a3 as fo,a4 as ut,a5 as kn,a6 as qe,a7 as An,a8 as me,a9 as po,aa as Cr,ab as mo,ac as ho,ad as Pr,ae as _t,af as Lr,ag as go,ah as Xt,ai as _o,aj as Je,ak as Nn,al as So,am as Eo,an as To,ao as yo,ap as vo,aq as pn,ar as de,as as re,at as St,au as bo,av as W,aw as Cn,ax as Pn,ay as Or,az as xr,aA as Io,aB as Dr,aC as je,aD as Ke,aE as Ro,aF as Jt,aG as We,d as wo,aH as Mr,aI as Ln,aJ as ko,aK as mn,aL as Ao,aM as No,aN as j,aO as K,aP as Fr,aQ as $e,aR as Co,aS as be,aT as On,aU as xn,aV as Dn,aW as Hr,aX as Po,aY as Lo,aZ as Oo,a_ as xo,a$ as Do,b0 as Mo,b1 as Fo}from"./diagnostics-C_bVihNX.js";var $r,Mn=yr;Mn.createRoot,$r=Mn.hydrateRoot;[...Us];new TextEncoder;(class extends M.Component{constructor(e){super(e),this.state={error:null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:null,location:e.location}:{error:t.error,location:t.location}}render(){return this.state.error?M.createElement(Ho,{error:this.state.error,renderAppShell:!0}):this.props.children}});function Fn({renderAppShell:e,title:t,children:n}){return e?M.createElement("html",{lang:"en"},M.createElement("head",null,M.createElement("meta",{charSet:"utf-8"}),M.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),M.createElement("title",null,t)),M.createElement("body",null,M.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n))):n}function Ho({error:e,renderAppShell:t}){console.error(e);let n=M.createElement("script",{dangerouslySetInnerHTML:{__html:`
2        console.log(
3          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
4        );
5      `}});if(qs(e))return M.createElement(Fn,{renderAppShell:t,title:"Unhandled Thrown Response!"},M.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n);let r;if(e instanceof Error)r=e;else{let s=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(s)}return M.createElement(Fn,{renderAppShell:t,title:"Application Error!"},M.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),M.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),n)}function $o(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,s]of t)if(s&&s.__type==="RouteErrorResponse")n[r]=new Bs(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let o=window[s.__subType];if(typeof o=="function")try{let a=new o(s.message);a.stack=s.stack,n[r]=a}catch{}}if(n[r]==null){let o=new Error(s.message);o.stack=s.stack,n[r]=o}}else n[r]=s;return n}function Bo({state:e,routes:t,getRouteInfo:n,location:r,basename:s,isSpaMode:o}){let a={...e,loaderData:{...e.loaderData}},c=Hs(t,r,s);if(c)for(let i of c){let u=i.route.id,d=n(u);$s(u,d.clientLoader,d.hasLoader,o)&&(d.hasHydrateFallback||!d.hasLoader)?delete a.loaderData[u]:d.hasLoader||(a.loaderData[u]=null)}return a}function Uo(e){return H.createElement(Gs,{flushSync:yr.flushSync,...e})}var h=null,Me=null;function qo(){if(!h&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){const e=document.querySelector("script[rr-importmap]");if(e!=null&&e.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(t){console.error("Failed to parse import map",t)}}h={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function jo({getContext:e,unstable_instrumentations:t}){var a,c;if(qo(),!h)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<
5RouterProvider>`");let n=h;if(!h.stateDecodingPromise){let i=h.context.stream;vr(i,"No stream found for single fetch decoding"),h.context.stream=void 0,h.stateDecodingPromise=Ys(i,window).then(u=>{h.context.state=u.value,n.stateDecodingPromise.value=!0}).catch(u=>{n.stateDecodingPromise.error=u})}if(h.stateDecodingPromise.error)throw h.stateDecodingPromise.error;if(!h.stateDecodingPromise.value)throw h.stateDecodingPromise;let r=Vs(h.manifest.routes,h.routeModules,h.context.state,h.context.ssr,h.context.isSpaMode),s;if(h.context.isSpaMode){let{loaderData:i}=h.context.state;(a=h.manifest.routes.root)!=null&&a.hasLoader&&i&&"root"in i&&(s={loaderData:{root:i.root}})}else s=Bo({state:h.context.state,routes:r,getRouteInfo:i=>{var u,d,l;return{clientLoader:(u=h.routeModules[i])==null?void 0:u.clientLoader,hasLoader:((d=h.manifest.routes[i])==null?void 0:d.hasLoader)===!0,hasHydrateFallback:((l=h.routeModules[i])==null?void 0:l.HydrateFallback)!=null}},location:window.location,basename:(c=window.__reactRouterContext)==null?void 0:c.basename,isSpaMode:h.context.isSpaMode}),s&&s.errors&&(s.errors=$o(s.errors));window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},"");let o=Xs({routes:r,history:Zs(),basename:h.context.basename,getContext:e,hydrationData:s,hydrationRouteProperties:to,unstable_instrumentations:t,mapRouteProperties:eo,future:{unstable_passThroughRequests:h.context.future.unstable_passThroughRequests},dataStrategy:Ks(()=>o,h.manifest,h.routeModules,h.context.ssr,h.context.basename,h.context.future.unstable_trailingSlashAwareDataRequests),patchRoutesOnNavigation:Js(()=>o,h.manifest,h.routeModules,h.context.ssr,h.context.routeDiscovery,h.context.isSpaMode,h.context.basename)});return h.router=o,o.state.initialized&&(h.routerInitialized=!0,o.initialize()),o.createRoutesForHMR=Qs,window.__reactRouterDataRouter=o,o}function Wo(e){Me||(Me=jo({getContext:e.getContext,unstable_instrumentations:e.unstable_instrumentations}));let[t,n]=H.useState(void 0);H.useEffect(()=>{},[]),H.useEffect(()=>{},[t]);let[r,s]=H.useState(Me.state.location);return H.useLayoutEffect(()=>{h&&h.router&&!h.routerInitialized&&(h.routerInitialized=!0,h.router.initialize())},[]),H.useLayoutEffect(()=>{if(h&&h.router)return h.router.subscribe(o=>{o.location!==r&&s(o.location)})},[r]),vr(h,"ssrInfo unavailable for HydratedRouter"),js(Me,h.manifest,h.routeModules,h.context.ssr,h.context.routeDiscovery,h.context.isSpaMode),H.createElement(H.Fragment,null,H.createElement(Ws.Provider,{value:{manifest:h.manifest,routeModules:h.routeModules,future:h.context.future,criticalCss:t,ssr:h.context.ssr,isSpaMode:h.context.isSpaMode,routeDiscovery:h.context.routeDiscovery}},H.createElement(zs,{location:r},H.createElement(Uo,{router:Me,unstable_useTransitions:e.unstable_useTransitions,onError:e.onError}))),H.createElement(H.Fragment,null))}const dt={},Hn={};function ae(e,t){dt[e]=dt[e]||[],dt[e].push(t)}function ie(e,t){if(!Hn[e]){Hn[e]=!0;try{t()}catch(n){_&&m.error(`Error while instrumenting ${e}`,n)}}}function G(e,t){const n=e&&dt[e];if(n)for(const r of n)try{r(t)}catch(s){_&&m.error(`Error while triggering instrumentation handler.
6Type: ${e}
7Name: ${se(r)}
8Error:`,s)}}let Mt=null;function Br(e){const t="error";ae(t,e),ie(t,zo)}function zo(){Mt=O.onerror,O.onerror=function(e,t,n,r,s){return G("error",{column:r,error:s,line:n,msg:e,url:t}),Mt?Mt.apply(this,arguments):!1},O.onerror.__SENTRY_INSTRUMENTED__=!0}let Ft=null;function Ur(e){const t="unhandledrejection";ae(t,e),ie(t,Go)}function Go(){Ft=O.onunhandledrejection,O.onunhandledrejection=function(e){return G("unhandledrejection",e),Ft?Ft.apply(this,arguments):!0},O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let $n=!1;function Yo(){if($n)return;function e(){const t=q(),n=t&&B(t);if(n){const r="internal_error";_&&m.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:ve,message:r})}}e.tag="sentry_tracingErrorCallback",$n=!0,Br(e),Ur(e)}class oe{constructor(t={}){this._traceId=t.traceId||ht(),this._spanId=t.spanId||br()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Ir}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
8addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function ke(e,t=[]){return[e,t]}function Vo(e,t){const[n,r]=e;return[n,[...r,t]]}function Bn(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Kt(e){const t=ro(O);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Xo(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[Kt(r),o]:r.push(typeof o=="string"?Kt(o):o)}for(const o of n){const[a,c]=o;if(s(`
9${JSON.stringify(a)}
10`),typeof c=="string"||c instanceof Uint8Array)s(c);else{let i;try{i=JSON.stringify(c)}catch{i=JSON.stringify(no(c))}s(i)}}return typeof r=="string"?r:Jo(r)}function Jo(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Ko(e){return[{type:"span"},e]}function Zo(e){const t=typeof e.data=="string"?Kt(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Qo={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function Un(e){return Qo[e]}function qr(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function ea(e,t,n,r){var o;const s=(o=e.sdkProcessingMetadata)==null?void 0:o.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ye(r)},...s&&{trace:s}}}function ta(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function na(e,t,n,r){const s=qr(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Ye(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ke(o,[a])}function ra(e,t,n,r){const s=qr(n),o=e.type&&e.type!=="replay_event"?e.type:"event";ta(e,n==null?void 0:n.sdk);const a=ea(e,s,r,t);return delete e.sdkProcessingMetadata,ke(a,[[{type:o},e]])}function sa(e,t){function n(d){return!!d.trace_id&&!!d.public_key}const r=fe(e[0]),s=t==null?void 0:t.getDsn(),o=t==null?void 0:t.getOptions().tunnel,a={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:Ye(s)}},c=t==null?void 0:t.getOptions().beforeSendSpan,i=c?d=>{const l=v(d),f=c(l);return f||(Vt(),l)}:v,u=[];for(const d of e){const l=i(d);l&&u.push(Ko(l))}return ke(a,u)}function oa(e){if(!_)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=v(e),{spanId:s}=e.spanContext(),o=It(e),a=B(e),c=a===e,i=`[Tracing] Starting ${o?"sampled":"unsampled"} ${c?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!c){const{op:d,description:l}=v(a);u.push(`root ID: ${a.spanContext().spanId}`),d&&u.push(`root op: ${d}`),l&&u.push(`root description: ${l}`)}m.log(`${i}
11  ${u.join(`
12  `)}`)}function aa(e){if(!_)return;const{description:t="< unknown name >",op:n="< unknown op >"}=v(e),{spanId:r}=e.spanContext(),o=B(e)===e,a=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;m.log(a)}function ia(e,t,n,r=q()){const s=r&&B(r);s&&(_&&m.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[Xe]:t,[Ve]:n}))}function qn(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[Ve],o=r[Xe];typeof s=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:s})}),t}const jn=1e3;class Nt{constructor(t={}){this._traceId=t.traceId||ht(),this._spanId=t.spanId||br(),this._startTime=t.startTimestamp||U(),this._links=t.links,this._attributes={},this.setAttributes({[k]:"manual",[J]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}
12addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?so:Ir}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=He(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(z,"custom"),this}end(t){this._endTime||(this._endTime=He(t),aa(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ao(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[k],profile_id:this._attributes[ln],exclusive_time:this._attributes[we],measurements:qn(this._events),is_segment:this._isStandaloneSpan&&B(this)===this||void 0,segment_id:this._isStandaloneSpan?B(this).spanContext().spanId:void 0,links:oo(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){_&&m.log("[Tracing] Adding an event to span:",t);const s=Wn(n)?n:r||U(),o=Wn(n)?{}:n||{},a={name:t,time:He(s),attributes:o};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=w();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===B(this)))return;if(this._isStandaloneSpan){this._sampled?ua(sa([this],t)):(_&&m.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(Rn(this).scope||A()).captureEvent(r)}_convertSpanToTransaction(){var d;if(!zn(v(this)))return;this._name||(_&&m.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Rn(this),r=(d=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:d.normalizedRequest;if(this._sampled!==!0)return;const o=it(this).filter(l=>l!==this&&!ca(l)).map(l=>v(l)).filter(zn),a=this._attributes[z];delete this._attributes[wn],o.forEach(l=>{delete l.data[wn]});const c={contexts:{trace:io(this)},spans:o.length>jn?o.sort((l,f)=>l.start_timestamp-f.start_timestamp).slice(0,jn):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:fe(this)},request:r,...a&&{transaction_info:{source:a}}},i=qn(this._events);return i&&Object.keys(i).length&&(_&&m.log("[Measurements] Adding measurements to transaction event",JSON.stringify(i,void 0,2)),c.measurements=i),c}}function Wn(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function zn(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function ca(e){return e instanceof Nt&&e.isStandaloneSpan()}function ua(e){const t=w();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function da(e,t,n=()=>{}){let r;try{r=e()}catch(s){throw t(s),n(),s}return la(r,t,n)}function la(e,t,n){return Rr(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function fa(e,t,n){if(!pe(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:c=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):c}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const o=fn(s);if(o===void 0)return _&&m.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!o)return _&&m.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,r];const a=n<o;return a||_&&m.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[a,o,r]}const jr="__SENTRY_SUPPRESS_TRACING__";function pa(e,t){const n=gn();if(n.startSpan)return n.startSpan(e,t);const r=zr(e),{forceTransaction:s,parentSpan:o,scope:a}=e,c=a==null?void 0:a.clone();return Rt(c,()=>ha(o)(()=>{const u=A(),d=Gr(u,o),f=e.onlyIfParent&&!d?new oe:Wr({parentSpan:d,spanArguments:r,forceTransaction:s,scope:u});return kt(u,f),da(()=>t(f),()=>{const{status:p}=v(f);f.isRecording()&&(!p||p==="ok")&&f.setStatus({code:ve,message:"internal_error"})},()=>{f.end()})}))}function Ae(e){const t=gn();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=zr(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?a=>Rt(e.scope,a):s!==void 0?a=>hn(s,a):a=>a())(()=>{const a=A(),c=Gr(a,s);return e.onlyIfParent&&!c?new oe:Wr({parentSpan:c,spanArguments:n,forceTransaction:r,scope:a})})}function hn(e,t){const n=gn();return n.withActiveSpan?n.withActiveSpan(e,t):Rt(r=>(kt(r,e||void 0),t(r)))}function Wr({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!pe()){const a=new oe;if(n||!e){const c={sampled:"false",sample_rate:"0",transaction:t.name,...fe(a)};ct(a,c)}return a}const s=wt();let o;if(e&&!n)o=ma(e,r,t),Ar(e,o);else if(e){const a=fe(e),{traceId:c,spanId:i}=e.spanContext(),u=It(e);o=Gn({traceId:c,parentSpanId:i,...t},r,u),ct(o,a)}else{const{traceId:a,dsc:c,parentSpanId:i,sampled:u}={...s.getPropagationContext(),...r.getPropagationContext()};o=Gn({traceId:a,parentSpanId:i,...t},r,u),c&&ct(o,c)}return oa(o),uo(o,r,s),o}function zr(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=He(e.startTime),delete r.startTime,r}return n}function gn(){const e=wr();return kr(e)}function Gn(e,t,n){var E;const r=w(),s=(r==null?void 0:r.getOptions())||{},{name:o=""}=e,a={spanAttributes:{...e.attributes},spanName:o,parentSampled:n};r==null||r.emit("beforeSampling",a,{decision:!1});const c=a.parentSampled??n,i=a.spanAttributes,u=t.getPropagationContext(),[d,l,f]=t.getScopeData().sdkProcessingMetadata[jr]?[!1]:fa(s,{name:o,parentSampled:c,attributes:i,parentSampleRate:fn((E=u.dsc)==null?void 0:E.sample_rate)},u.sampleRand),p=new Nt({...e,attributes:{[z]:"custom",[Nr]:l!==void 0&&f?l:void 0,...i},sampled:d});return!d&&r&&(_&&m.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",p),p}function ma(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),o=t.getScopeData().sdkProcessingMetadata[jr]?!1:It(e),a=o?new 
12Nt({...n,parentSpanId:r,traceId:s,sampled:o}):new oe({traceId:s});Ar(e,a);const c=w();return c&&(c.emit("spanStart",a),n.endTimestamp&&c.emit("spanEnd",a)),a}function Gr(e,t){if(t)return t;if(t===null)return;const n=co(e);if(!n)return;const r=w();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?B(n):n}function ha(e){return e!==void 0?t=>hn(e,t):t=>t()}const lt={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},ga="heartbeatFailed",_a="idleTimeout",Sa="finalTimeout",Ea="externalFinish";function Yr(e,t={}){const n=new Map;let r=!1,s,o=Ea,a=!t.disableAutoFinish;const c=[],{idleTimeout:i=lt.idleTimeout,finalTimeout:u=lt.finalTimeout,childSpanTimeout:d=lt.childSpanTimeout,beforeSpanEnd:l}=t,f=w();if(!f||!pe()){const y=new oe,D={sample_rate:"0",sampled:"false",...fe(y)};return ct(y,D),y}const p=A(),E=q(),S=Ta(e);S.end=new Proxy(S.end,{apply(y,D,Se){if(l&&l(S),D instanceof oe)return;const[Oe,...Ee]=Se,ce=Oe||U(),N=He(ce),ue=it(S).filter(P=>P!==S);if(!ue.length)return tt(N),Reflect.apply(y,D,[N,...Ee]);const ee=ue.map(P=>v(P).timestamp).filter(P=>!!P),I=ee.length?Math.max(...ee):void 0,C=v(S).start_timestamp,b=Math.min(C?C+u/1e3:1/0,Math.max(C||-1/0,Math.min(N,I||1/0)));return tt(b),Reflect.apply(y,D,[b,...Ee])}});function F(){s&&(clearTimeout(s),s=void 0)}function V(y){F(),s=setTimeout(()=>{!r&&n.size===0&&a&&(o=_a,S.end(y))},i)}function Q(y){s=setTimeout(()=>{!r&&a&&(o=ga,S.end(y))},d)}function _e(y){F(),n.set(y,!0);const D=U();Q(D+d/1e3)}function Dt(y){if(n.has(y)&&n.delete(y),n.size===0){const D=U();V(D+i/1e3)}}function tt(y){r=!0,n.clear(),c.forEach(N=>N()),kt(p,E);const D=v(S),{start_timestamp:Se}=D;if(!Se)return;D.data[gt]||S.setAttribute(gt,o),m.log(`[Tracing] Idle span "${D.op}" finished`);const Ee=it(S).filter(N=>N!==S);let ce=0;Ee.forEach(N=>{N.isRecording()&&(N.setStatus({code:ve,message:"cancelled"}),N.end(y),_&&m.log("[Tracing] Cancelling span since span ended early",JSON.stringify(N,void 0,2)));const ue=v(N),{timestamp:ee=0,start_timestamp:I=0}=ue,C=I<=y,b=(u+i)/1e3,P=ee-I<=b;if(_){const L=JSON.stringify(N,void 0,2);C?P||m.log("[Tracing] Discarding span since it finished after idle span final timeout",L):m.log("[Tracing] Discarding span since it happened after idle span was finished",L)}(!P||!C)&&(lo(S,N),ce++)}),ce>0&&S.setAttribute("sentry.idle_span_discarded_spans",ce)}return c.push(f.on("spanStart",y=>{if(r||y===S||v(y).timestamp||y instanceof Nt&&y.isStandaloneSpan())return;it(S).includes(y)&&_e(y.spanContext().spanId)})),c.push(f.on("spanEnd",y=>{r||Dt(y.spanContext().spanId)})),c.push(f.on("idleSpanEnableAutoFinish",y=>{y===S&&(a=!0,V(),n.size&&Q())})),t.disableAutoFinish||V(),setTimeout(()=>{r||(S.setStatus({code:ve,message:"deadline_exceeded"}),o=Sa,S.end())},u),S}function Ta(e){const t=Ae(e);return kt(A(),t),_&&m.log("[Tracing] Started span is an idle span"),t}const ya="7";function va(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ba(e){return`${va(e)}${e.projectId}/envelope/`}function Ia(e,t){const n={sentry_version:ya};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Ra(e,t,n){return t||`${ba(e)}?${Ia(e,n)}`}const Yn=[];function wa(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function ka(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return wa(r)}function Aa(e,t){const n={};return t.forEach(r=>{r&&Vr(e,r,n)}),n}function Vn(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function Vr(e,t,n){if(n[t.name]){_&&m.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Yn.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Yn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,a)=>r(o,a,e),{id:t.name});e.addEventProcessor(s)}_&&m.log(`Integration installed: ${t.name}`)}function Na(e,t,n){const r=[{type:"client_report"},{timestamp:At(),discarded_events:e}];return ke(t?{dsn:t}:{},[r])}function Xr(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Ca(e){var i;const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:o,data:a,op:c}=((i=e.contexts)==null?void 0:i.trace)??{};return{data:a??{},description:e.transaction,op:c,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:a==null?void 0:a[ln],exclusive_time:a==null?void 0:a[we],measurements:e.measurements,is_segment:!0}}function Pa(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[ln]:e.profile_id},...e.exclusive_time&&{[we]:e.exclusive_time}}}},measurements:e.measurements}}const Xn="Not capturing exception because it's already been captured.",Jn="Discarded session because of missing or non-string release",Jr=Symbol.for("SentryInternalError"),Kr=Symbol.for("SentryDoNotSendEventError");function ft(e){return{message:e,[Jr]:!0}}function Ht(e){return{message:e,[Kr]:!0}}function Kn(e){return!!e&&typeof e=="object"&&Jr in e}function Zn(e){return!!e&&typeof e=="object"&&Kr in e}class La{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=fo(t.dsn):_&&m.warn("No DSN provided, client will not send events."),this._dsn){const n=Ra(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const s=ut();if(kn(t))return _&&m.log(Xn),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(a=>this._captureEvent(a,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:ut(),...r}
vendor: 14,177 bytes, lines 12-20
12,a=Lr(t)?t:String(t),c=qe(t)?this.eventFromMessage(a,n,o):this.eventFromException(t,o);return this._process(c.then(i=>this._captureEvent(i,o,s))),o.event_id}captureEvent(t,n,r){const s=ut();if(n!=null&&n.originalException&&kn(n.originalException))return _&&m.log(Xn),s;const o={event_id:s,...n},a=t.sdkProcessingMetadata||{},c=a.capturedSpanScope,i=a.capturedSpanIsolationScope;return this._process(this._captureEvent(t,o,c||r,i)),o.event_id}captureSession(t){this.sendSession(t),An(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):me(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Vr(this,t,this._integrations),n||Vn(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=ra(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=Vo(r,Zo(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const{release:n,environment:r=po}=this._options;if("aggregates"in t){const o=t.attrs||{};if(!o.release&&!n){_&&m.warn(Jn);return}o.release=o.release||n,o.environment=o.environment||r,t.attrs=o}else{if(!t.release&&!n){_&&m.warn(Jn);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=na(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;_&&m.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(_&&m.error("Error while sending envelope:",n),n)):(_&&m.error("Transport disabled"),me({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Aa(this,t),Vn(this,t)}_updateSessionFromEvent(t,n){var i;let r=n.level==="fatal",s=!1;const o=(i=n.exception)==null?void 0:i.values;if(o){s=!0;for(const u of o){const d=u.mechanism;if((d==null?void 0:d.handled)===!1){r=!0;break}}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(An(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Cr(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const o=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&(a!=null&&a.length)&&(n.integrations=a),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),mo(o,t,n,r,this,s).then(c=>{if(c===null)return c;this.emit("postprocessEvent",c,n),c.contexts={trace:ho(r),...c.contexts};const i=Pr(this,r);return c.sdkProcessingMetadata={dynamicSamplingContext:i,...c.sdkProcessingMetadata},c})}_captureEvent(t,n={},r=A(),s=wt()){return _&&Zt(t)&&m.log(`Captured error event \`${Xr(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(o=>o.event_id,o=>{_&&(Zn(o)?m.log(o.message):Kn(o)?m.warn(o.message):m.warn(o))})}_processEvent(t,n,r,s){const o=this.getOptions(),{sampleRate:a}=o,c=Zr(t),i=Zt(t),u=t.type||"error",d=`before send for type \`${u}\``,l=typeof a>"u"?void 0:fn(a);if(i&&typeof l=="number"&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),_t(Ht(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const f=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r,s).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",f),Ht("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return p;const S=xa(this,o,p,n);return Oa(S,d)}).then(p=>{var F;if(p===null){if(this.recordDroppedEvent("before_send",f),c){const Q=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",Q)}throw Ht(`${d} returned \`null\`, will not send event.`)}const E=r.getSession()||s.getSession();if(i&&E&&this._updateSessionFromEvent(E,p),c){const V=((F=p.sdkProcessingMetadata)==null?void 0:F.spanCountBeforeProcessing)||0,Q=p.spans?p.spans.length:0,_e=V-Q;_e>0&&this.recordDroppedEvent("before_send","span",_e)}const S=p.transaction_info;if(c&&S&&p.transaction!==t.transaction){const V="custom";p.transaction_info={...S,source:V}}return this.sendEvent(p,n),p}).then(null,p=>{throw Zn(p)||Kn(p)?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),ft(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
13Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){_&&m.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){_&&m.log("No outcomes to send");return}if(!this._dsn){_&&m.log("No dsn provided, will not send outcomes");return}_&&m.log("Sending outcomes:",t);const n=Na(t,this._options.tunnel&&Ye(this._dsn));this.sendEnvelope(n)}}function Oa(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Rr(e))return e.then(r=>{if(!Xt(r)&&r!==null)throw ft(n);return r},r=>{throw ft(`${t} rejected with ${r}`)});if(!Xt(e)&&e!==null)throw ft(n);return e}function xa(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:a}=t;let c=n;if(Zt(c)&&s)return s(c,r);if(Zr(c)){if(a){const i=a(Ca(c));if(i?c=go(n,Pa(i)):Vt(),c.spans){const u=[];for(const d of c.spans){const l=a(d);l?u.push(l):(Vt(),u.push(d))}c.spans=u}}if(o){if(c.spans){const i=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:i}}return o(c,r)}}return c}function Zt(e){return e.type===void 0}function Zr(e){return e.type==="transaction"}function Da(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Ma(e,t,n,r){const s={};return t!=null&&t.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=Ye(r)),ke(s,[Da(e)])}function $t(e,t){const n=Fa(e)??[];if(n.length===0)return;const r=e.getOptions(),s=Ma(n,r._metadata,r.tunnel,e.getDsn());Qr().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function Fa(e){return Qr().get(e)}function Qr(){return _o("clientToLogBufferMap",()=>new WeakMap)}function Ha(e,t){t.debug===!0&&(_?m.enable():Je(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),A().update(t.initialScope);const r=new e(t);return $a(r),r.init(),r}function $a(e){A().setClient(e)}const es=Symbol.for("SentryBufferFullError");function Ba(e){const t=[];function n(){return e===void 0||t.length<e}function r(a){return t.splice(t.indexOf(a),1)[0]||Promise.resolve(void 0)}function s(a){if(!n())return _t(es);const c=a();return t.indexOf(c)===-1&&t.push(c),c.then(()=>r(c)).then(null,()=>r(c).then(null,()=>{})),c}function o(a){return new Cr((c,i)=>{let u=t.length;if(!u)return c(!0);const d=setTimeout(()=>{a&&a>0&&c(!1)},a);t.forEach(l=>{me(l).then(()=>{--u||(clearTimeout(d),c(!0))},i)})})}return{$:t,add:s,drain:o}}const Ua=60*1e3;function qa(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Ua:r-t}function ja(e,t){return e[t]||e.all||0}function Wa(e,t,n=Date.now()){return ja(e,t)>n}function za(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n==null?void 0:n["x-sentry-rate-limits"],a=n==null?void 0:n["retry-after"];if(o)for(const c of o.trim().split(",")){const[i,u,,,d]=c.split(":",5),l=parseInt(i,10),f=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else a?s.all=r+qa(a,r):t===429&&(s.all=r+60*1e3);return s}const Ga=64;function Ya(e,t,n=Ba(e.bufferSize||Ga)){let r={};const s=a=>n.drain(a);function o(a){const c=[];if(Bn(a,(l,f)=>{const p=Un(f);Wa(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):c.push(l)}),c.length===0)return me({});const i=ke(a[0],c),u=l=>{Bn(i,(f,p)=>{e.recordDroppedEvent(l,Un(p))})},d=()=>t({body:Xo(i)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&_&&m.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=za(r,l),l),l=>{throw u("network_error"),_&&m.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===es)return _&&m.error("Skipped sending event because buffer is full."),u("queue_overflow"),me({});throw l})}return{send:o,flush:s}}function Va(e){var t;((t=e.user)==null?void 0:t.ip_address)===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function Xa(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function ts(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Nn})),version:Nn}),e._metadata=s}function ns(e={}){const t=e.client||w();if(!So()||!t)return{};const n=wr(),r=kr(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||A(),o=e.span||q(),a=o?Eo(o):Ja(s),c=o?fe(o):Pr(t,s),i=To(c);return yo.test(a)?{"sentry-trace":a,baggage:i}:(m.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function Ja(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return vo(t,r,n)}const Ka=100;function he(e,t){const n=w(),r=wt();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Ka}=n.getOptions();if(o<=0)return;const c={timestamp:At(),...e},i=s?Je(()=>s(c,t)):c;i!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",i,t),r.addBreadcrumb(i,o))}let Qn;const Za="FunctionToString",er=new WeakMap,Qa=()=>({name:Za,setupOnce(){Qn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=pn(this),n=er.has(w())&&t!==void 0?t:this;return Qn.apply(n,e)}}catch{}},setup(e){er.set(e,!0)}}),ei=Qa,ti=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],ni="EventFilters",ri=(e={})=>{let t;return{name:ni,setup(n){const r=n.getOptions();t=tr(e,r)},processEvent(n,r,s){if(!t){const o=s.getOptions();t=tr(e,o)}return oi(n,t)?null:n}}},si=(e={})=>({...ri(e),name:"InboundFilters"});function tr(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:ti],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function oi(e,t){if(e.type){if(e.type==="transaction"&&ii(e,t.ignoreTransactions))return _&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
14Event: ${de(e)}`),!0}else{if(ai(e,t.ignoreErrors))return _&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
15Event: ${de(e)}`),!0;if(li(e))return _&&m.warn(`Event dropped due to not having an error message, error type or stacktrace.
16Event: ${de(e)}`),!0;if(ci(e,t.denyUrls))return _&&m.warn(`Event dropped due to being matched by \`denyUrls\` option.
17Event: ${de(e)}.
18Url: ${Et(e)}`),!0;if(!ui(e,t.allowUrls))return _&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option.
19Event: ${de(e)}.
20Url: ${Et(e)}`),!0}return!1}function ai(e,t){return t!=null&&t.length?Xr(e).some(n=>re(n,t)):!1}function ii(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?re(n,t):!1}function ci(e,t){if(!(t!=null&&t.length))return!1;const n=Et(e);return n?re(n,t):!1}function ui(e,t){if(!(t!=null&&t.length))return!0;const n=Et(e);return n?re(n,t):!0}function di(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Et(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(o=>{var a,c,i;return((a=o.mechanism)==null?void 0:a.parent_id)===void 0&&((i=(c=o.stacktrace)==null?void 0:c.frames)==null?void 0:i.length)}),s=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return s?di(s):null}catch{return _&&m.error(`Cannot extract url for event ${de(e)}`),null}}function li(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function fi(e,t,n,r,s,o){var c;if(!((c=s.exception)!=null&&c.values)||!o||!St(o.originalException,Error))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;a&&(s.exception.values=Qt(e,t,r,o.originalException,n,s.exception.values,a,0))}function Qt(e,t,n,r,s,o,a,c){if(o.length>=n+1)return o;let i=[...o];
20if(St(r[s],Error)){nr(a,c);const u=e(t,r[s]),d=i.length;rr(u,s,d,c),i=Qt(e,t,n,r[s],s,[u,...i],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(St(u,Error)){nr(a,c);const l=e(t,u),f=i.length;rr(l,`errors[${d}]`,f,c),i=Qt(e,t,n,u,s,[l,...i],l,f)}}),i}function nr(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function rr(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function pi(e){const t="console";ae(t,e),ie(t,mi)}function mi(){"console"in O&&bo.forEach(function(e){e in O.console&&W(O.console,e,function(t){return Cn[e]=t,function(...n){G("console",{args:n,level:e});const s=Cn[e];s==null||s.apply(O.console,n)}})})}function hi(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const gi="Dedupe",_i=()=>{let e;return{name:gi,processEvent(t){if(t.type)return t;try{if(Ei(t,e))return _&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Si=_i;function Ei(e,t){return t?!!(Ti(e,t)||yi(e,t)):!1}function Ti(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!ss(e,t)||!rs(e,t))}function yi(e,t){const n=sr(t),r=sr(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!ss(e,t)||!rs(e,t))}function rs(e,t){let n=Pn(e),r=Pn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],a=n[s];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function ss(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function sr(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}const vi="thismessage:/";function os(e){return"isRelative"in e}function as(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?vi:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function bi(e){if(os(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 le(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 Ii(e){return e.split(/[?#]/,1)[0]}function Ri(e,t,n,r,s="auto.http.browser"){if(!e.fetchData)return;const{method:o,url:a}=e.fetchData,c=pe()&&t(a);if(e.endTimestamp&&c){const l=e.fetchData.__span;if(!l)return;const f=r[l];f&&(ki(f,e),delete r[l]);return}const i=!!q(),u=c&&i?Ae(Ni(a,o,s)):new oe;if(e.fetchData.__span=u.spanContext().spanId,r[u.spanContext().spanId]=u,n(e.fetchData.url)){const l=e.args[0],f=e.args[1]||{},p=wi(l,f,pe()&&i?u:void 0);p&&(e.args[1]=f,f.headers=p)}const d=w();if(d){const l={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",u,l)}return u}function wi(e,t,n){const r=ns({span:n}),s=r["sentry-trace"],o=r.baggage;if(!s)return;const a=t.headers||(xr(e)?e.headers:void 0);if(a)if(Ai(a)){const c=new Headers(a);if(c.get("sentry-trace")||c.set("sentry-trace",s),o){const i=c.get("baggage");i?nt(i)||c.set("baggage",`${i},${o}`):c.set("baggage",o)}return c}else if(Array.isArray(a)){const c=[...a];a.find(u=>u[0]==="sentry-trace")||c.push(["sentry-trace",s]);const i=a.find(u=>u[0]==="baggage"&&nt(u[1]));return o&&!i&&c.push(["baggage",o]),c}else{const c="sentry-trace"in a?a["sentry-trace"]:void 0,i="baggage"in a?a.baggage:void 0,u=i?Array.isArray(i)?[...i]:[i]:[],d=i&&(Array.isArray(i)?i.find(l=>nt(l)):nt(i));return o&&!d&&u.push(o),{...a,"sentry-trace":c??s,baggage:u.length>0?u.join(","):void 0}}else return{...r}}function ki(e,t){var n,r;if(t.response){Or(e,t.response.status);const s=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(s){const o=parseInt(s);o>0&&e.setAttribute("http.response_content_length",o)}}else t.error&&e.setStatus({code:ve,message:"internal_error"});e.end()}function nt(e){return e.split(",").some(t=>t.trim().startsWith(Io))}function Ai(e){return typeof Headers<"u"&&St(e,Headers)}function Ni(e,t,n){const r=as(e);return{name:r?`${t} ${bi(r)}`:t,attributes:Ci(e,r,t,n)}}function Ci(e,t,n,r){const s={url:e,type:"fetch","http.method":n,[k]:r,[J]:"http.client"};return t&&(os(t)||(s["http.url"]=t.href,s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function is(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const ze=O;function Pi(){return"history"in ze&&!!ze.history}function Li(){if(!("fetch"in ze))return!1;
20try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function en(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Oi(){var n;if(typeof EdgeRuntime=="string")return!0;if(!Li())return!1;if(en(ze.fetch))return!0;let e=!1;const t=ze.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=en(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){_&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function cs(e,t){const n="fetch";ae(n,e),ie(n,()=>us(void 0,t))}function xi(e){const t="fetch-body-resolved";ae(t,e),ie(t,()=>us(Mi))}function us(e,t=!1){t&&!Oi()||W(O,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:a}=Fi(r),c={args:r,fetchData:{method:o,url:a},startTimestamp:U()*1e3,virtualError:s,headers:Hi(r)};return e||G("fetch",{...c}),n.apply(O,r).then(async i=>(e?e(i):G("fetch",{...c,endTimestamp:U()*1e3,response:i}),i),i=>{if(G("fetch",{...c,endTimestamp:U()*1e3,error:i}),Dr(i)&&i.stack===void 0&&(i.stack=s.stack,je(i,"framesToPop",1)),i instanceof TypeError&&(i.message==="Failed to fetch"||i.message==="Load failed"||i.message==="NetworkError when attempting to fetch resource."))try{const u=new URL(c.fetchData.url);i.message=`${i.message} (${u.host})`}catch{}throw i})}})}async function Di(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let a;try{a=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(a),c&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(a)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Mi(e){let t;try{t=e.clone()}catch{return}Di(t,()=>{G("fetch-body-resolved",{endTimestamp:U()*1e3,response:e})})}function tn(e,t){return!!e&&typeof e=="object"&&!!e[t]}function or(e){return typeof e=="string"?e:e?tn(e,"url")?e.url:e.toString?e.toString():"":""}function Fi(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:or(n),method:tn(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:or(t),method:tn(t,"method")?String(t.method).toUpperCase():"GET"}}function Hi(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(xr(t))return new Headers(t.headers)}catch{}}function $i(){return"npm"}const T=O;let nn=0;function ds(){return nn>0}function Bi(){nn++,setTimeout(()=>{nn--})}function Ie(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(pn(e))return e}catch{return e}const r=function(...s){try{const o=s.map(a=>Ie(a,t));return e.apply(this,o)}catch(o){throw Bi(),Rt(a=>{a.addEventProcessor(c=>(t.mechanism&&(Jt(c,void 0),We(c,t.mechanism)),c.extra={...c.extra,arguments:s},c)),wo(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Ro(r,e),je(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function _n(){const e=Ke(),{referrer:t}=T.document||{},{userAgent:n}=T.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Sn(e,t){const n=En(e,t),r={type:zi(t),value:Gi(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Ui(e,t,n,r){const s=w(),o=s==null?void 0:s.getOptions().normalizeDepth,a=Ki(t),c={__serialized__:Ao(t,o)};if(a)return{exception:{values:[Sn(e,a)]},extra:c};const i={exception:{values:[{type:mn(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Xi(t,{isUnhandledRejection:r})}]},extra:c};if(n){const u=En(e,n);u.length&&(i.exception.values[0].stacktrace={frames:u})}return i}function Bt(e,t){return{exception:{values:[Sn(e,t)]}}}function En(e,t){const n=t.stacktrace||t.stack||"",r=ji(t),s=Wi(t);try{return e(n,r,s)}catch{}return[]}const qi=/Minified React error #\d+;/i;function ji(e){return e&&qi.test(e.message)?1:0}function Wi(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function ls(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function zi(e){const t=e==null?void 0:e.name;return!t&&ls(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Gi(e){const t=e==null?void 0:e.message;return ls(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Yi(e,t,n,r){const s=(n==null?void 0:n.syntheticException)||void 0,o=Tn(e,t,s,r);return We(o),o.level="error",n!=null&&n.event_id&&(o.event_id=n.event_id),me(o)}function Vi(e,t,n="info",r,s){const o=(r==null?void 0:r.syntheticException)||void 0,a=rn(e,t,o,s);return a.level=n,r!=null&&r.event_id&&(a.event_id=r.event_id),me(a)}
20function Tn(e,t,n,r,s){let o;if(Mr(t)&&t.error)return Bt(e,t.error);if(Ln(t)||ko(t)){const a=t;if("stack"in t)o=Bt(e,t);else{const c=a.name||(Ln(a)?"DOMError":"DOMException"),i=a.message?`${c}: ${a.message}`:c;o=rn(e,i,n,r),Jt(o,i)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return Dr(t)?Bt(e,t):Xt(t)||mn(t)?(o=Ui(e,t,n,s),We(o,{synthetic:!0}),o):(o=rn(e,t,n,r),Jt(o,`${t}`),We(o,{synthetic:!0}),o)}function rn(e,t,n,r){const s={};if(r&&n){const o=En(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),We(s,{synthetic:!0})}if(Lr(t)){const{__sentry_template_string__:o,__sentry_template_values__:a}=t;return s.logentry={message:o,params:a},s}return s.message=t,s}function Xi(e,{isUnhandledRejection:t}){const n=No(e),r=t?"promise rejection":"exception";return Mr(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:mn(e)?`Event \`${Ji(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ji(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Ki(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const Zi=5e3;class Qi extends La{constructor(t){const n=ec(t),r=T.SENTRY_SDK_SOURCE||$i();ts(n,"browser",["browser"],r),super(n);const{sendDefaultPii:s,sendClientReports:o,enableLogs:a,_experiments:c}=this._options,i=a??(c==null?void 0:c.enableLogs);T.document&&(o||i)&&T.document.addEventListener("visibilitychange",()=>{T.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),i&&$t(this))}),i&&(this.on("flush",()=>{$t(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{$t(this)},Zi)})),s&&(this.on("postprocessEvent",Va),this.on("beforeSendSession",Xa))}eventFromException(t,n){return Yi(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Vi(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function ec(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=T.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Ct=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,g=O,tc=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Ne=(e,t,n,r)=>{let s,o;return a=>{t.value>=0&&(a||r)&&(o=t.value-(s??0),(o||s===void 0)&&(s=t.value,t.delta=o,t.rating=tc(t.value,n),e(t)))}},nc=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Ze=(e=!0)=>{var n,r;const t=(r=(n=g.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Ce=()=>{const e=Ze();return(e==null?void 0:e.activationStart)??0},Pe=(e,t=-1)=>{var o,a;const n=Ze();let r="navigate";return n&&((o=g.document)!=null&&o.prerendering||Ce()>0?r="prerender":(a=g.document)!=null&&a.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:nc(),navigationType:r}},Ut=new WeakMap;function yn(e,t){return Ut.get(e)||Ut.set(e,new t),Ut.get(e)}class Tt{constructor(){Tt.prototype.__init.call(this),Tt.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){var s;if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),(s=this._onAfterProcessingUnexpectedShift)==null||s.call(this,t)}}const ge=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Pt=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Be=-1;const rc=()=>{var e,t;return((e=g.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=g.document)!=null&&t.prerendering)?0:1/0},yt=e=>{g.document.visibilityState==="hidden"&&Be>-1&&(Be=e.type==="visibilitychange"?e.timeStamp:0,oc())},sc=()=>{addEventListener("visibilitychange",yt,!0),addEventListener("prerenderingchange",yt,!0)},oc=()=>{removeEventListener("visibilitychange",yt,!0),removeEventListener("prerenderingchange",yt,!0)},Lt=()=>{var e;if(g.document&&Be<0){const t=Ce();Be=(g.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??rc(),sc()}return{get firstHiddenTime(){return Be}}},Qe=e=>{var t;(t=g.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},ac=[1800,3e3],ic=(e,t={})=>{Qe(()=>{const n=Lt(),r=Pe("FCP");let s;const a=ge("paint",c=>{for(const i of c)i.name==="first-contentful-paint"&&(a.disconnect(),i.startTime<n.firstHiddenTime&&(r.value=Math.max(i.startTime-Ce(),0),r.entries.push(i),s(!0)))});a&&(s=Ne(e,r,ac,t.reportAllChanges))})},cc=[.1,.25],uc=(e,t={})=>{ic(Pt(()=>{var c,i;const n=Pe("CLS",0);let r;const s=yn(t,Tt),o=u=>{for(const d of u)s._processEntry(d);s._sessionValue>
20n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},a=ge("layout-shift",o);a&&(r=Ne(e,n,cc,t.reportAllChanges),(c=g.document)==null||c.addEventListener("visibilitychange",()=>{var u;((u=g.document)==null?void 0:u.visibilityState)==="hidden"&&(o(a.takeRecords()),r(!0))}),(i=g==null?void 0:g.setTimeout)==null||i.call(g,r))}))},Ot=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=g.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};g.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},dc=[100,300],lc=(e,t={})=>{Qe(()=>{const n=Lt(),r=Pe("FID");let s;const o=i=>{i.startTime<n.firstHiddenTime&&(r.value=i.processingStart-i.startTime,r.entries.push(i),s(!0))},a=i=>{i.forEach(o)},c=ge("first-input",a);s=Ne(e,r,dc,t.reportAllChanges),c&&Ot(Pt(()=>{a(c.takeRecords()),c.disconnect()}))})};let fs=0,qt=1/0,rt=0;const fc=e=>{e.forEach(t=>{t.interactionId&&(qt=Math.min(qt,t.interactionId),rt=Math.max(rt,t.interactionId),fs=rt?(rt-qt)/7+1:0)})};let sn;const ps=()=>sn?fs:performance.interactionCount||0,pc=()=>{"interactionCount"in performance||sn||(sn=ge("event",fc,{type:"event",buffered:!0,durationThreshold:0}))},jt=10;let ms=0;const mc=()=>ps()-ms;class vt{constructor(){vt.prototype.__init.call(this),vt.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){ms=ps(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(mc()/50));return this._longestInteractionList[t]}_processEntry(t){var s,o;if((s=this._onBeforeProcessingEntry)==null||s.call(this,t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<jt||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((a,c)=>c._latency-a._latency),this._longestInteractionList.length>jt){const a=this._longestInteractionList.splice(jt);for(const c of a)this._longestInteractionMap.delete(c.id)}(o=this._onAfterProcessingINPCandidate)==null||o.call(this,r)}}}const hs=e=>{var n;const t=g.requestIdleCallback||g.setTimeout;((n=g.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=Pt(e),t(e),Ot(e))},hc=[200,500],gc=40,_c=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&Qe(()=>{pc();const n=Pe("INP");let r;const s=yn(t,vt),o=c=>{hs(()=>{for(const u of c)s._processEntry(u);const i=s._estimateP98LongestInteraction();i&&i._latency!==n.value&&(n.value=i._latency,n.entries=i.entries,r())})},a=ge("event",o,{durationThreshold:t.durationThreshold??gc});r=Ne(e,n,hc,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Ot(()=>{o(a.takeRecords()),r(!0)}))})};class Sc{_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const Ec=[2500,4e3],Tc=(e,t={})=>{Qe(()=>{const n=Lt(),r=Pe("LCP");let s;const o=yn(t,Sc),a=i=>{t.reportAllChanges||(i=i.slice(-1));for(const u of i)o._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Ce(),0),r.entries=[u],s())},c=ge("largest-contentful-paint",a);if(c){s=Ne(e,r,Ec,t.reportAllChanges);const i=Pt(()=>{a(c.takeRecords()),c.disconnect(),s(!0)});for(const u of["keydown","click","visibilitychange"])g.document&&addEventListener(u,()=>hs(i),{capture:!0,once:!0})}})},yc=[800,1800],on=e=>{var t,n;(t=g.document)!=null&&t.prerendering?Qe(()=>on(e)):((n=g.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>on(e),!0):setTimeout(e)},vc=(e,t={})=>{const n=Pe("TTFB"),r=Ne(e,n,yc,t.reportAllChanges);on(()=>{const s=Ze();s&&(n.value=Math.max(s.responseStart-Ce(),0),n.entries=[s],r(!0))})},Ue={},bt={};let gs,_s,Ss,Es,Ts;function ys(e,t=!1){return et("cls",e,wc,gs,t)}function vs(e,t=!1){return et("lcp",e,Ac,Ss,t)}function bc(e){return et("fid",e,kc,_s)}function Ic(e){return et("ttfb",e,Nc,Es)}function Rc(e){return et("inp",e,Cc,Ts)}function Re(e,t){return bs(e,t),bt[e]||(Pc(e),bt[e]=!0),Is(e,t)}function Le(e,t){const n=Ue[e];
20if(n!=null&&n.length)for(const r of n)try{r(t)}catch(s){Ct&&m.error(`Error while triggering instrumentation handler.
21Type: ${e}
22Name: ${se(r)}
23Error:`,s)}}function wc(){return uc(e=>{Le("cls",{metric:e}),gs=e},{reportAllChanges:!0})}function kc(){return lc(e=>{Le("fid",{metric:e}),_s=e})}function Ac(){return Tc(e=>{Le("lcp",{metric:e}),Ss=e},{reportAllChanges:!0})}function Nc(){return vc(e=>{Le("ttfb",{metric:e}),Es=e})}function Cc(){return _c(e=>{Le("inp",{metric:e}),Ts=e})}function et(e,t,n,r,s=!1){bs(e,t);let o;return bt[e]||(o=n(),bt[e]=!0),r&&t({metric:r}),Is(e,t,s?o:void 0)}function Pc(e){const t={};e==="event"&&(t.durationThreshold=0),ge(e,n=>{Le(e,{entries:n})},t)}function bs(e,t){Ue[e]=Ue[e]||[],Ue[e].push(t)}function Is(e,t,n){return()=>{n&&n();const r=Ue[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function Lc(e){return"duration"in e}function Wt(e){return typeof e=="number"&&isFinite(e)}function Z(e,t,n,{...r}){const s=v(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),hn(e,()=>{const o=Ae({startTime:t,...r});return o&&o.end(n),o})}function vn(e){var F;const t=w();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:o}=e,{release:a,environment:c,sendDefaultPii:i}=t.getOptions(),u=t.getIntegrationByName("Replay"),d=u==null?void 0:u.getReplayId(),l=A(),f=l.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let E;try{E=l.getScopeData().contexts.profile.profile_id}catch{}const S={release:a,environment:c,user:p||void 0,profile_id:E||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":(F=g.navigator)==null?void 0:F.userAgent,"client.address":i?"{{auto}}":void 0,...s};return Ae({name:n,attributes:S,startTime:o,experimental:{standalone:!0}})}function xt(){return g.addEventListener&&g.performance}function R(e){return e/1e3}function Rs(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function ws(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function ks(e,t){let n,r=!1;function s(c){!r&&n&&t(c,n),r=!0}Ot(()=>{s("pagehide")});const o=e.on("beforeStartNavigationSpan",(c,i)=>{i!=null&&i.isRedirect||(s("navigation"),o==null||o(),a==null||a())}),a=e.on("afterStartPageLoadSpan",c=>{n=c.spanContext().spanId,a==null||a()})}function Oc(e){let t=0,n;if(!ws("layout-shift"))return;const r=ys(({metric:s})=>{const o=s.entries[s.entries.length-1];o&&(t=s.value,n=o)},!0);ks(e,(s,o)=>{xc(t,n,o,s),r()})}function xc(e,t,n,r){var u;Ct&&m.log(`Sending CLS span (${e})`);const s=R((j()||0)+((t==null?void 0:t.startTime)||0)),o=A().getScopeData().transactionName,a=t?K((u=t.sources[0])==null?void 0:u.node):"Layout shift",c={[k]:"auto.http.browser.cls",[J]:"ui.webvital.cls",[we]:(t==null?void 0:t.duration)||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((d,l)=>{c[`cls.source.${l+1}`]=K(d.node)});const i=vn({name:a,transaction:o,attributes:c,startTime:s});i&&(i.addEvent("cls",{[Ve]:"",[Xe]:e}),i.end(s))}function Dc(e){let t=0,n;if(!ws("largest-contentful-paint"))return;const r=vs(({metric:s})=>{const o=s.entries[s.entries.length-1];o&&(t=s.value,n=o)},!0);ks(e,(s,o)=>{Mc(t,n,o,s),r()})}function Mc(e,t,n,r){Ct&&m.log(`Sending LCP span (${e})`);const s=R((j()||0)+((t==null?void 0:t.startTime)||0)),o=A().getScopeData().transactionName,a=t?K(t.element):"Largest contentful paint",c={[k]:"auto.http.browser.lcp",[J]:"ui.webvital.lcp",[we]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=K(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(c["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(c["lcp.renderTime"]=t.renderTime),t.size!=null&&(c["lcp.size"]=t.size));const i=vn({name:a,transaction:o,attributes:c,startTime:s});i&&(i.addEvent("lcp",{[Ve]:"millisecond",[Xe]:e}),i.end(s))}const Fc=2147483647;let ar=0,x={},$,Te;function Hc({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=xt();if(r&&j()){r.mark&&g.performance.mark("sentry-tracing-init");const s=Wc(),o=t?Dc(n):jc(),a=zc(),c=e?Oc(n):qc();return()=>{s(),o==null||o(),a(),c==null||c()}}return()=>{}}function $c(){Re("longtask",({entries:e})=>{const t=q();if(!t)return;const{op:n,start_timestamp:r}=v(t);for(const s of e){const o=R(j()+s.startTime),a=R(s.duration);n==="navigation"&&r&&o<r||Z(t,o,o+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[k]:"auto.ui.browser.metrics"}})}})}function Bc(){new PerformanceObserver(t=>{const n=q();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=R(j()+r.startTime),{start_timestamp:o,op:a}=v(n);if(a==="navigation"&&o&&s<o)continue;const c=R(r.duration),i={[k]:"auto.ui.browser.metrics"}
23,u=r.scripts[0],{invoker:d,invokerType:l,sourceURL:f,sourceFunctionName:p,sourceCharPosition:E}=u;i["browser.script.invoker"]=d,i["browser.script.invoker_type"]=l,f&&(i["code.filepath"]=f),p&&(i["code.function"]=p),E!==-1&&(i["browser.script.source_char_position"]=E),Z(n,s,s+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:i})}}).observe({type:"long-animation-frame",buffered:!0})}function Uc(){Re("event",({entries:e})=>{const t=q();if(t){for(const n of e)if(n.name==="click"){const r=R(j()+n.startTime),s=R(n.duration),o={name:K(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[k]:"auto.ui.browser.metrics"}},a=Fr(n.target);a&&(o.attributes["ui.component_name"]=a),Z(t,r,r+s,o)}}})}function qc(){return ys(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(x.cls={value:e.value,unit:""},Te=t)},!0)}function jc(){return vs(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(x.lcp={value:e.value,unit:"millisecond"},$=t)},!0)}function Wc(){return bc(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=R(j()),r=R(t.startTime);x.fid={value:e.value,unit:"millisecond"},x["mark.fid"]={value:n+r,unit:"second"}})}function zc(){return Ic(({metric:e})=>{e.entries[e.entries.length-1]&&(x.ttfb={value:e.value,unit:"millisecond"})})}function Gc(e,t){const n=xt(),r=j();if(!(n!=null&&n.getEntries)||!r)return;const s=R(r),o=n.getEntries(),{op:a,start_timestamp:c}=v(e);if(o.slice(ar).forEach(i=>{const u=R(i.startTime),d=R(Math.max(0,i.duration));if(!(a==="navigation"&&c&&s+u<c))switch(i.entryType){case"navigation":{Xc(e,i,s);break}case"mark":case"paint":case"measure":{Yc(e,i,u,d,s,t.ignorePerformanceApiSpans);const l=Lt(),f=i.startTime<l.firstHiddenTime;i.name==="first-paint"&&f&&(x.fp={value:i.startTime,unit:"millisecond"}),i.name==="first-contentful-paint"&&f&&(x.fcp={value:i.startTime,unit:"millisecond"});break}case"resource":{Zc(e,i,i.name,u,d,s,t.ignoreResourceSpans);break}}}),ar=Math.max(o.length-1,0),Qc(e),a==="pageload"){tu(x);const i=x["mark.fid"];i&&x.fid&&(Z(e,i.value,i.value+R(x.fid.value),{name:"first input delay",op:"ui.action",attributes:{[k]:"auto.ui.browser.metrics"}}),delete x["mark.fid"]),t.recordClsOnPageloadSpan||delete x.cls,t.recordLcpOnPageloadSpan||delete x.lcp,Object.entries(x).forEach(([u,d])=>{ia(u,d.value,d.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",Ce()),eu(e,t)}$=void 0,Te=void 0,x={}}function Yc(e,t,n,r,s,o){if(["mark","measure"].includes(t.entryType)&&re(t.name,o))return;const a=Ze(!1),c=R(a?a.requestStart:0),i=s+Math.max(n,c),u=s+n,d=u+r,l={[k]:"auto.resource.browser.metrics"};i!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=i),Vc(l,t),i<=d&&Z(e,i,d,{name:t.name,op:t.entryType,attributes:l})}function Vc(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&qe(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(qe(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Xc(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{st(e,t,r,n)}),st(e,t,"secureConnection",n,"TLS/SSL"),st(e,t,"fetch",n,"cache"),st(e,t,"domainLookup",n,"DNS"),Kc(e,t,n)}function st(e,t,n,r,s=n){const o=Jc(n),a=t[o],c=t[`${n}Start`];!c||!a||Z(e,r+R(c),r+R(a),{op:`browser.${s}`,name:t.name,attributes:{[k]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Jc(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Kc(e,t,n){const r=n+R(t.requestStart),s=n+R(t.responseEnd),o=n+R(t.responseStart);t.responseEnd&&(Z(e,r,s,{op:"browser.request",name:t.name,attributes:{[k]:"auto.ui.browser.metrics"}}),Z(e,o,s,{op:"browser.response",name:t.name,attributes:{[k]:"auto.ui.browser.metrics"}}))}function Zc(e,t,n,r,s,o,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a!=null&&a.includes(c))return;const i=le(n),u={[k]:"auto.resource.browser.metrics"};zt(u,t,"transferSize","http.response_transfer_size"),zt(u,t,"encodedBodySize","http.response_content_length"),zt(u,t,"decodedBodySize","http.decoded_response_content_length");const d=t.deliveryType;d!=null&&(u["http.response_delivery_type"]=d);const l=t.renderBlockingStatus;if(l&&(u["resource.render_blocking_status"]=l),i.protocol&&(u["url.scheme"]=i.protocol.split(":").pop()),i.host&&(u["server.address"]=i.host),u["url.same_origin"]=n.includes(g.location.origin),t.nextHopProtocol!=null){const{name:E,version:S}=Rs(t.nextHopProtocol);u["network.protocol.name"]=E,u["network.protocol.version"]=S}const f=o+r,p=f+s;Z(e,f,p,{name:n.replace(g.location.origin,""),op:c,attributes:u})}function Qc(e){const t=g.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),Wt(n.rtt)&&(x["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Wt(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),Wt(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function eu(e,t){$&&t.recordLcpOnPageloadSpan&&($.element&&e.setAttribute("lcp.element",K($.element)),$.id&&e.setAttribute("lcp.id",$.id),$.url&&e.setAttribute("lcp.url",$.url.trim().slice(0,200)),$.loadTime!=null&&e.setAttribute("lcp.loadTime",$.loadTime),$.renderTime!=null&&e.setAttribute("lcp.renderTime",$.renderTime),e.setAttribute("lcp.size",$.size)),Te!=null&&Te.sources&&t.recordClsOnPageloadSpan&&Te.sources.forEac
23h((n,r)=>e.setAttribute(`cls.source.${r+1}`,K(n.node)))}function zt(e,t,n,r){const s=t[n];s!=null&&s<Fc&&(e[r]=s)}function tu(e){const t=Ze(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function nu(){return xt()&&j()?Re("element",ru):()=>{}}const ru=({entries:e})=>{const t=q(),n=t?B(t):void 0,r=n?v(n).description:A().getScopeData().transactionName;e.forEach(s=>{var p,E;const o=s;if(!o.identifier)return;const a=o.name,c=o.renderTime,i=o.loadTime,[u,d]=i?[R(i),"load-time"]:c?[R(c),"render-time"]:[U(),"entry-emission"],l=a==="image-paint"?R(Math.max(0,(c??0)-(i??0))):0,f={[k]:"auto.ui.browser.elementtiming",[J]:"ui.elementtiming",[z]:"component","sentry.span_start_time_source":d,"sentry.transaction_name":r,"element.id":o.id,"element.type":((E=(p=o.element)==null?void 0:p.tagName)==null?void 0:E.toLowerCase())||"unknown","element.size":o.naturalWidth&&o.naturalHeight?`${o.naturalWidth}x${o.naturalHeight}`:void 0,"element.render_time":c,"element.load_time":i,"element.url":o.url||void 0,"element.identifier":o.identifier,"element.paint_type":a};pa({name:`element[${o.identifier}]`,attributes:f,startTime:u,onlyIfParent:!0},S=>{S.end(u+l)})})},su=1e3;let ir,an,cn;function ou(e){const t="dom";ae(t,e),ie(t,au)}function au(){if(!g.document)return;const e=G.bind(null,"dom"),t=cr(e,!0);g.document.addEventListener("click",t,!1),g.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var o,a;const s=(o=g[n])==null?void 0:o.prototype;(a=s==null?void 0:s.hasOwnProperty)!=null&&a.call(s,"addEventListener")&&(W(s,"addEventListener",function(c){return function(i,u,d){if(i==="click"||i=="keypress")try{const l=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=l[i]=l[i]||{refCount:0};if(!f.handler){const p=cr(e);f.handler=p,c.call(this,i,p,d)}f.refCount++}catch{}return c.call(this,i,u,d)}}),W(s,"removeEventListener",function(c){return function(i,u,d){if(i==="click"||i=="keypress")try{const l=this.__sentry_instrumentation_handlers__||{},f=l[i];f&&(f.refCount--,f.refCount<=0&&(c.call(this,i,f.handler,d),f.handler=void 0,delete l[i]),Object.keys(l).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return c.call(this,i,u,d)}}))})}function iu(e){if(e.type!==an)return!1;try{if(!e.target||e.target._sentryId!==cn)return!1}catch{}return!0}function cu(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function cr(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=uu(n);if(cu(n.type,r))return;je(n,"_sentryCaptured",!0),r&&!r._sentryId&&je(r,"_sentryId",ut());
23const s=n.type==="keypress"?"input":n.type;iu(n)||(e({event:n,name:s,global:t}),an=n.type,cn=r?r._sentryId:void 0),clearTimeout(ir),ir=g.setTimeout(()=>{cn=void 0,an=void 0},su)}}function uu(e){try{return e.target}catch{return null}}let ot;function bn(e){const t="history";ae(t,e),ie(t,du)}function du(){if(g.addEventListener("popstate",()=>{const t=g.location.href,n=ot;if(ot=t,n===t)return;G("history",{from:n,to:t})}),!Pi())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=ot,o=lu(String(r));if(ot=o,s===o)return t.apply(this,n);G("history",{from:s,to:o})}return t.apply(this,n)}}W(g.history,"pushState",e),W(g.history,"replaceState",e)}function lu(e){try{return new URL(e,g.location.origin).toString()}catch{return e}}const pt={};function fu(e){const t=pt[e];if(t)return t;let n=g[e];if(en(n))return pt[e]=n.bind(g);const r=g.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o!=null&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){Ct&&m.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(pt[e]=n.bind(g))}function ur(e){pt[e]=void 0}const ye="__sentry_xhr_v3__";function As(e){const t="xhr";ae(t,e),ie(t,pu)}function pu(){if(!g.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=U()*1e3,a=$e(r[0])?r[0].toUpperCase():void 0,c=mu(r[1]);if(!a||!c)return t.apply(n,r);n[ye]={method:a,url:c,request_headers:{}},a==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const i=()=>{const u=n[ye];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:U()*1e3,startTimestamp:o,xhr:n,virtualError:s};G("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return i(),u.apply(d,l)}}):n.addEventListener("readystatechange",i),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){const[f,p]=l,E=d[ye];return E&&$e(f)&&$e(p)&&(E.request_headers[f.toLowerCase()]=p),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[ye];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:U()*1e3,xhr:n};return G("xhr",o),t.apply(n,r)}})}function mu(e){if($e(e))return e;try{return e.toString()}catch{}}const Gt=[],mt=new Map,hu=60;function gu(){if(xt()&&j()){const t=_u();return()=>{t()}}return()=>{}}const dr={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function _u(){return Rc(Su)}const Su=({metric:e})=>{if(e.value==null)return;const t=R(e.value);if(t>hu)return;const n=e.entries.find(E=>E.duration===e.value&&dr[E.name]);if(!n)return;const{interactionId:r}=n,s=dr[n.name],o=R(j()+n.startTime),a=q(),c=a?B(a):void 0,u=(r!=null?mt.get(r):void 0)||c,d=u?v(u).description:A().getScopeData().transactionName,l=K(n.target),f={[k]:"auto.http.browser.inp",[J]:`ui.interaction.${s}`,[we]:n.duration},p=vn({name:l,transaction:d,attributes:f,startTime:o});p&&(p.addEvent("inp",{[Ve]:"millisecond",[Xe]:e.value}),p.end(o+t))};function Eu(){const e=({entries:t})=>{const n=q(),r=n&&B(n);t.forEach(s=>{if(!Lc(s)||!r)return;const o=s.interactionId;if(o!=null&&!mt.has(o)){if(Gt.length>10){const a=Gt.shift();mt.delete(a)}Gt.push(o),mt.set(o,r)}})};Re("event",e),Re("first-input",e)}function Tu(e,t=fu("fetch")){let n=0,r=0;function s(o){const a=o.body.length;n+=a,r++;const c={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return ur("fetch"),_t("No fetch implementation available");try{return t(e.url,c).then(i=>(n-=a,r--,{statusCode:i.status,headers:{"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")}}))}catch(i){return ur("fetch"),n-=a,r--,_t(i)}}return Ya(e,s)}const yu=30,vu=50;function un(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?be:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const bu=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Iu=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ru=/\((\S*)(?::(\d+))(?::(\d+))\)/,wu=e=>{const t=bu.exec(e);if(t){const[,r,s,o]=t;return un(r,be,+s,+o)}const n=Iu.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const a=Ru.exec(n[2]);a&&(n[2]=a[1],n[3]=a[2],n[4]=a[3])}const[s,o]=Ns(n[1]||be,n[2]);return un(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},ku=[yu,wu],Au=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Nu=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Cu=e=>{const t=Au.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Nu.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||be;return[s,r]=Ns(s,r),un(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Pu=[vu,Cu],Lu=[ku,Pu],Ou=Co(...Lu),Ns=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:be,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Y=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,at=1024,xu="Breadcrumbs",Du=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:xu,setup(n){t.console&&pi($u(n)),t.dom&&ou(Hu(n,t.dom)),t.xhr&&As(Bu(n)),t.fetch&&cs(Uu(n)),t.history&&bn(qu(n)),t.sentry&&n.on("beforeSendEvent",Fu(n))}}},Mu=Du;function Fu(e){return function(n){w()===e&&he({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:de(n)},{event:n})}}function Hu(e,t){return function(r){if(w()!==e)return;let s,o,a=typeof t=="object"?t.serializeAttribute:void 0,c=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;c&&c>at&&(Y&&m.warn(`\`dom.maxStringLength\` cannot exceed ${at}, but a value of ${c} was configured. Sentry will use ${at}
23 instead.`),c=at),typeof a=="string"&&(a=[a]);try{const u=r.event,d=ju(u)?u.target:u;s=K(d,{keyAttrs:a,maxStringLength:c}),o=Fr(d)}catch{s="<unknown>"}if(s.length===0)return;const i={category:`ui.${r.name}`,message:s};o&&(i.data={"ui.component_name":o}),he(i,{event:r.event,name:r.name,global:r.global})}}function $u(e){return function(n){if(w()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:hi(n.level),message:On(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${On(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;he(r,{input:n.args,level:n.level})}}function Bu(e){return function(n){if(w()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[ye];if(!r||!s||!o)return;const{method:a,url:c,status_code:i,body:u}=o,d={method:a,url:c,status_code:i},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},f={category:"xhr",data:d,type:"http",level:is(i)};e.emit("beforeOutgoingRequestBreadcrumb",f,l),he(f,l)}}function Uu(e){return function(n){if(w()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const o=n.fetchData,a={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",c,a),he(c,a)}else{const o=n.response,a={...n.fetchData,status_code:o==null?void 0:o.status};n.fetchData.request_body_size,n.fetchData.response_body_size,o==null||o.status;const c={input:n.args,response:o,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:a,type:"http",level:is(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",i,c),he(i,c)}}}function qu(e){return function(n){if(w()!==e)return;let r=n.from,s=n.to;const o=le(T.location.href);let a=r?le(r):void 0;const c=le(s);a!=null&&a.path||(a=o),o.protocol===c.protocol&&o.host===c.host&&(s=c.relative),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),he({category:"navigation",data:{from:r,to:s}})}}function ju(e){return!!e&&!!e.target}const Wu=["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"],zu="BrowserApiErrors",Gu=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:zu,setupOnce(){t.setTimeout&&W(T,"setTimeout",lr),t.setInterval&&W(T,"setInterval",lr),t.requestAnimationFrame&&W(T,"requestAnimationFrame",Vu),t.XMLHttpRequest&&"XMLHttpRequest"in T&&W(XMLHttpRequest.prototype,"send",Xu);const n=t.eventTarget;n&&(Array.isArray(n)?n:Wu).forEach(s=>Ju(s,t))}}},Yu=Gu;function lr(e){return function(...t){const n=t[0];return t[0]=Ie(n,{mechanism:{data:{function:se(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Vu(e){return function(t){return e.apply(this,[Ie(t,{mechanism:{data:{function:"requestAnimationFrame",handler:se(e)},handled:!1,type:"instrument"}})])}}function Xu(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&W(n,s,function(o){const a={mechanism:{data:{function:s,handler:se(o)},handled:!1,type:"instrument"}},c=pn(o);return c&&(a.mechanism.data.handler=se(c)),Ie(o,a)})}),e.apply(this,t)}}function Ju(e,t){var s,o;const r=(s=T[e])==null?void 0:s.prototype;(o=r==null?void 0:r.hasOwnProperty)!=null&&o.call(r,"addEventListener")&&(W(r,"addEventListener",function(a){return function(c,i,u){try{Ku(i)&&(i.handleEvent=Ie(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:se(i),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&Zu(this,c,i),a.apply(this,[c,Ie(i,{mechanism:{data:{function:"addEventListener",handler:se(i),target:e},handled:!1,type:"instrument"}}),u])}}),W(r,"removeEventListener",function(a){return function(c,i,u){try{const d=i.__sentry_wrapped__;d&&a.call(this,c,d,u)}catch{}return a.call(this,c,i,u)}}))}function Ku(e){return typeof e.handleEvent=="function"}function Zu(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Qu=()=>({name:"BrowserSession",setupOnce(){if(typeof T.document>"u"){Y&&m.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}xn({ignoreDuration:!0}),Dn(),bn(({from:e,to:t})=>{e!==void 0&&e!==t&&(xn({ignoreDuration:!0}),Dn())})}}),ed="GlobalHandlers",td=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:ed,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(rd(n),fr("onerror")),t.onunhandledrejection&&(sd(n),fr("onunhandledrejection"))}}},nd=td;function rd(e){Br(t=>{const{stackParser:n,attachStacktrace:r}=Cs();if(w()!==e||ds())return;const{msg:s,url:o,line:a,column:c,error:i}=t,u=id(Tn(n,i||s,void 0,r,!1),o,a,c);u.level="error",Hr(u,{originalException:i,mechanism:{handled:!1,type:"onerror"}})})}function sd(e){Ur(t=>{const{stackParser:n,attachStacktrace:r}=Cs();if(w()!==e||ds())return;
23const s=od(t),o=qe(s)?ad(s):Tn(n,s,void 0,r,!0);o.level="error",Hr(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function od(e){if(qe(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 ad(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function id(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],a=o[0]=o[0]||{},c=a.stacktrace=a.stacktrace||{},i=c.frames=c.frames||[],u=r,d=n,l=$e(t)&&t.length>0?t:Ke();return i.length===0&&i.push({colno:u,filename:l,function:be,in_app:!0,lineno:d}),e}function fr(e){Y&&m.log(`Global Handler attached: ${e}`)}function Cs(){const e=w();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}const cd=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!T.navigator&&!T.location&&!T.document)return;const t=_n(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),ud="cause",dd=5,ld="LinkedErrors",fd=(e={})=>{const t=e.limit||dd,n=e.key||ud;return{name:ld,preprocessEvent(r,s,o){const a=o.getOptions();fi(Sn,a.stackParser,n,t,r,s)}}},pd=fd;function md(){return hd()?(Y&&Je(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function hd(){var o;if(typeof T.window>"u")return!1;const e=T;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((o=t==null?void 0:t.runtime)!=null&&o.id))return!1;const n=Ke(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(T===T.top&&r.some(a=>n.startsWith(`${a}://`)))}function gd(e){return[si(),ei(),Yu(),Mu(),nd(),pd(),Si(),cd(),Qu()]}function _d(e={}){const t=!e.skipBrowserExtensionCheck&&md(),n={...e,enabled:t?!1:e.enabled,stackParser:Po(e.stackParser||Ou),integrations:ka({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?gd():e.defaultIntegrations}),transport:e.transport||Tu};return Ha(Qi,n)}function X(e=0){return((j()||performance.timeOrigin)+e)/1e3}function Sd(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=Rs(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return j()?[...t,["http.request.redirect_start",X(e.redirectStart)],["http.request.fetch_start",X(e.fetchStart)],["http.request.domain_lookup_start",X(e.domainLookupStart)],["http.request.domain_lookup_end",X(e.domainLookupEnd)],["http.request.connect_start",X(e.connectStart)],["http.request.secure_connection_start",X(e.secureConnectionStart)],["http.request.connection_end",X(e.connectEnd)],["http.request.request_start",X(e.requestStart)],["http.request.response_start",X(e.responseStart)],["http.request.response_end",X(e.responseEnd)]]:t}const pr=new WeakMap,Yt=new Map,Ps={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Ed(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:o,enableHTTPTimings:a,tracePropagationTargets:c,onRequestSpanStart:i}={...Ps,...t},u=typeof o=="function"?o:f=>!0,d=f=>yd(f,c),l={};n&&(e.addEventProcessor(f=>(f.type==="transaction"&&f.spans&&f.spans.forEach(p=>{if(p.op==="http.client"){const E=Yt.get(p.span_id);E&&(p.timestamp=E/1e3,Yt.delete(p.span_id))}}),f)),s&&xi(f=>{if(f.response){const p=pr.get(f.response);p&&f.endTimestamp&&Yt.set(p,f.endTimestamp)}}),cs(f=>{const p=Ri(f,u,d,l);if(f.response&&f.fetchData.__span&&pr.set(f.response,f.fetchData.__span),p){const E=Ls(f.fetchData.url),S=E?le(E).host:void 0;p.setAttributes({"http.url":E,"server.address":S}),a&&mr(p),i==null||i(p,{headers:f.headers})}})),r&&As(f=>{var E;const p=vd(f,u,d,l);if(p){a&&mr(p);let S;try{S=new Headers((E=f.xhr.__sentry_xhr_v3__)==null?void 0:E.request_headers)}catch{}i==null||i(p,{headers:S})}})}function Td(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.
23initiatorType==="xmlhttprequest")}function mr(e){const{url:t}=v(e).data;if(!t||typeof t!="string")return;const n=Re("resource",({entries:r})=>{r.forEach(s=>{Td(s)&&s.name.endsWith(t)&&(Sd(s).forEach(a=>e.setAttribute(...a)),setTimeout(n))})})}function yd(e,t){const n=Ke();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const o=r.origin===s;return t?re(r.toString(),t)||o&&re(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?re(e,t):r}}function vd(e,t,n,r){const s=e.xhr,o=s==null?void 0:s[ye];if(!s||s.__sentry_own_request__||!o)return;const{url:a,method:c}=o,i=pe()&&t(a);if(e.endTimestamp&&i){const S=s.__sentry_xhr_span_id__;if(!S)return;const F=r[S];F&&o.status_code!==void 0&&(Or(F,o.status_code),F.end(),delete r[S]);return}const u=Ls(a),d=le(u||a),l=Ii(a),f=!!q(),p=i&&f?Ae({name:`${c} ${l}`,attributes:{url:a,type:"xhr","http.method":c,"http.url":u,"server.address":d==null?void 0:d.host,[k]:"auto.http.browser",[J]:"http.client",...(d==null?void 0:d.search)&&{"http.query":d==null?void 0:d.search},...(d==null?void 0:d.hash)&&{"http.fragment":d==null?void 0:d.hash}}}):new oe;s.__sentry_xhr_span_id__=p.spanContext().spanId,r[s.__sentry_xhr_span_id__]=p,n(a)&&bd(s,pe()&&f?p:void 0);const E=w();return E&&E.emit("beforeOutgoingRequestSpan",p,e),p}function bd(e,t){const{"sentry-trace":n,baggage:r}=ns({span:t});n&&Id(e,n,r)}function Id(e,t,n){var s;const r=(s=e.__sentry_xhr_v3__)==null?void 0:s.request_headers;if(!(r!=null&&r["sentry-trace"]))try{if(e.setRequestHeader("sentry-trace",t),n){const o=r==null?void 0:r.baggage;(!o||!Rd(o))&&e.setRequestHeader("baggage",n)}}catch{}}function Rd(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Ls(e){try{return new URL(e,T.location.origin).href}catch{return}}function wd(){T.document?T.document.addEventListener("visibilitychange",()=>{const e=q();if(!e)return;const t=B(e);if(T.document.hidden&&t){const n="cancelled",{op:r,status:s}=v(t);Y&&m.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:ve,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Y&&m.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const kd=3600,Os="sentry_previous_trace",Ad="sentry.previous_trace";function Nd(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?Ld():void 0;e.on("spanStart",a=>{if(B(a)!==a)return;const c=A().getPropagationContext();s=Cd(s,a,c),r&&Pd(s)});let o=!0;n&&e.on("beforeSampling",a=>{if(!s)return;const c=A(),i=c.getPropagationContext();if(o&&i.parentSpanId){o=!1;return}c.setPropagationContext({...i,dsc:{...i.dsc,sample_rate:String(s.sampleRate),sampled:String(dn(s.spanContext))},sampleRand:s.sampleRand}),a.parentSampled=dn(s.spanContext),a.parentSampleRate=s.sampleRate,a.spanAttributes={...a.spanAttributes,[Lo]:s.sampleRate}})}function Cd(e,t,n){const r=v(t);function s(){var c,i;try{return Number((c=n.dsc)==null?void 0:c.sample_rate)??Number((i=r.data)==null?void 0:i[Nr])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return o;const a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=kd&&(Y&&m.log(`Adding previous_trace ${a} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:a,attributes:{[Oo]:"previous_trace"}}),t.setAttribute(Ad,`${a.traceId}-${a.spanId}-${dn(a)?1:0}
23`)),o)}function Pd(e){try{T.sessionStorage.setItem(Os,JSON.stringify(e))}catch(t){Y&&m.warn("Could not store previous trace in sessionStorage",t)}}function Ld(){var e;try{const t=(e=T.sessionStorage)==null?void 0:e.getItem(Os);return JSON.parse(t)}catch{return}}function dn(e){return e.traceFlags===1}const Od="BrowserTracing",xd={...lt,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...Ps},Dd=(e={})=>{const t={name:void 0,source:void 0},n=T.document,{enableInp:r,enableElementTiming:s,enableLongTask:o,enableLongAnimationFrame:a,_experiments:{enableInteractions:c,enableStandaloneClsSpans:i,enableStandaloneLcpSpans:u},beforeStartSpan:d,idleTimeout:l,finalTimeout:f,childSpanTimeout:p,markBackgroundSpan:E,traceFetch:S,traceXHR:F,trackFetchStreamPerformance:V,shouldCreateSpanForRequest:Q,enableHTTPTimings:_e,ignoreResourceSpans:Dt,ignorePerformanceApiSpans:tt,instrumentPageLoad:y,instrumentNavigation:D,detectRedirects:Se,linkPreviousTrace:Oe,consistentTraceSampling:Ee,onRequestSpanStart:ce}={...xd,...e};let N,ue;function ee(I,C,b=!0){const P=C.op==="pageload",L=d?d(C):C,te=L.attributes||{};if(C.name!==L.name&&(te[z]="custom",L.attributes=te),!b){const De=At();Ae({...L,startTime:De}).end(De);return}t.name=L.name,t.source=te[z];const ne=Yr(L,{idleTimeout:l,finalTimeout:f,childSpanTimeout:p,disableAutoFinish:P,beforeSpanEnd:De=>{N==null||N(),Gc(De,{recordClsOnPageloadSpan:!i,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:Dt,ignorePerformanceApiSpans:tt}),gr(I,void 0);const In=A(),Ms=In.getPropagationContext();In.setPropagationContext({...Ms,traceId:ne.spanContext().traceId,sampled:It(ne),dsc:fe(De)})}});gr(I,ne);function xe(){n&&["interactive","complete"].includes(n.readyState)&&I.emit("idleSpanEnableAutoFinish",ne)}P&&n&&(n.addEventListener("readystatechange",()=>{xe()}),xe())}return{name:Od,setup(I){if(Yo(),N=Hc({recordClsStandaloneSpans:i||!1,recordLcpStandaloneSpans:u||!1,client:I}),r&&gu(),s&&nu(),a&&O.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Bc():o&&$c(),c&&Uc(),Se&&n){const b=()=>{ue=U()};addEventListener("click",b,{capture:!0}),addEventListener("keydown",b,{capture:!0,passive:!0})}function C(){const b=Ge(I);b&&!v(b).timestamp&&(Y&&m.log(`[Tracing] Finishing current active span with op: ${v(b).op}`),b.setAttribute(gt,"cancelled"),b.end())}I.on("startNavigationSpan",(b,P)=>{if(w()!==I)return;if(P!=null&&P.isRedirect){Y&&m.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),ee(I,{op:"navigation.redirect",...b},!1);return}C(),wt().setPropagationContext({traceId:ht(),sampleRand:Math.random()});const L=A();L.setPropagationContext({traceId:ht(),sampleRand:Math.random()}),L.setSDKProcessingMetadata({normalizedRequest:void 0}),ee(I,{op:"navigation",...b})}),I.on("startPageLoadSpan",(b,P={})=>{if(w()!==I)return;C();const L=P.sentryTrace||hr("sentry-trace"),te=P.baggage||hr("baggage"),ne=xo(L,te),xe=A();xe.setPropagationContext(ne),xe.setSDKProcessingMetadata({normalizedRequest:_n()}),ee(I,{op:"pageload",...b})})},afterAllSetup(I){let C=Ke();if(Oe!=="off"&&Nd(I,{linkPreviousTrace:Oe,consistentTraceSampling:Ee}),T.location){if(y){const b=j();Md(I,{name:T.location.pathname,startTime:b?b/1e3:void 0,attributes:{[z]:"url",[k]:"auto.pageload.browser"}})}D&&bn(({to:b,from:P})=>{if(P===void 0&&(C==null?void 0:C.indexOf(b))!==-1){C=void 0;return}C=void 0;const L=as(b),te=Ge(I),ne=te&&Se&&Hd(te,ue);xs(I,{name:(L==null?void 0:L.pathname)||T.location.pathname,attributes:{[z]:"url",[k]:"auto.navigation.browser"}},{url:b,isRedirect:ne})})}E&&wd(),c&&Fd(I,l,f,p,t),r&&Eu(),Ed(I,{traceFetch:S,traceXHR:F,trackFetchStreamPerformance:V,tracePropagationTargets:I.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:Q,enableHTTPTimings:_e,onRequestSpanStart:ce})}}};
23function Md(e,t,n){e.emit("startPageLoadSpan",t,n),A().setTransactionName(t.name);const r=Ge(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function xs(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const o=A();return o.setTransactionName(t.name),r&&!s&&o.setSDKProcessingMetadata({normalizedRequest:{..._n(),url:r}}),Ge(e)}function hr(e){const t=T.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function Fd(e,t,n,r,s){const o=T.document;let a;const c=()=>{const i="ui.action.click",u=Ge(e);if(u){const d=v(u).op;if(["navigation","pageload"].includes(d)){Y&&m.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`);return}}if(a&&(a.setAttribute(gt,"interactionInterrupted"),a.end(),a=void 0),!s.name){Y&&m.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}a=Yr({name:s.name,op:i,attributes:{[z]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",c,{capture:!0})}const Ds="_sentry_idleSpan";function Ge(e){return e[Ds]}function gr(e,t){je(e,Ds,t)}const _r=.3;function Hd(e,t){const n=v(e),r=At(),s=n.start_timestamp;return!(r-s>_r||t&&r-t<=_r)}const $d="BrowserTracing";function Bd(e){e.integrations&&Array.isArray(e.integrations)&&e.integrations.some(r=>r.name===$d)&&Je(()=>{console.warn("browserTracingIntegration is not fully compatible with @sentry/react-router. Please use reactRouterTracingIntegration instead.")}),ts(e,"react-router",["react-router","browser"]);const t=_d(e);return Do("runtime","browser"),t}const Ud=O,Sr=40;function qd(){function e(){const t=Ud.__reactRouterDataRouter;if(t){const n=Er();if(n){const r=v(n).description,s=Tr(t.state);if(r&&Fe(t.state.location.pathname)===Fe(r)&&(n.updateName(s),n.setAttributes({[z]:"route",[k]:"auto.pageload.react-router"})),typeof t.navigate=="function"){const o=t.navigate.bind(t);t.navigate=function(...c){return jd(String(c[0])||"<unknown route>","url"),o(...c)}}}return t.subscribe(r=>{const s=Er();if(!s)return;const o=v(s).description,a=Tr(r);o&&r.navigation.state==="idle"&&Fe(r.location.pathname)===Fe(o)&&(s.updateName(a),s.setAttributes({[z]:"route",[k]:"auto.navigation.react-router"}))}),!0}return!1}if(!e()){let t=0;const n=setInterval(()=>{(e()||t>=Sr)&&(t>=Sr&&Mo&&Je(()=>{console.warn("Unable to instrument React Router: router not found after hydration.")}),clearInterval(n)),t++},50)}}function jd(e,t){const n=w();if(n)return xs(n,{name:e,attributes:{[z]:t,[J]:"navigation",[k]:"auto.navigation.react-router"}})}function Er(){const e=q();if(!e)return;const t=B(e),n=v(t).op;return n==="navigation"||n==="pageload"?t:void 0}function Tr(e){const t=e.matches[e.matches.length-1];return Fe((t==null?void 0:t.route.path)??e.location.pathname)}function Fe(e){let t=e.startsWith("/")?e:`/${e}`;return t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function Wd(){const e=Dd({instrumentNavigation:!1});return{...e,name:"ReactRouterTracingIntegration",afterAllSetup(t){e.afterAllSetup(t),qd()}}}Fo();try{const e=typeof window<"u"?window.location.hostname:"",t=e==="localhost"||e==="127.0.0.1",n=e.includes("redtreedev.com")?"staging":"production";t||Bd({dsn:"https://406d3e34d812048f0d4f99aa19da778b@o4511150521122816.ingest.us.sentry.io/4511150522302464",environment:n,sendDefaultPii:!0,integrations:[Wd()],tracesSampleRate:1,tracePropagationTargets:[/^https:\/\/redtreealbums\.com/],ignoreErrors:[/\[Cloudflare Turnstile\]/],enableLogs:!0})}catch(e){console.error("Sentry init failed:",e)}$r(document,Fs.jsx(Wo,{}));

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.