PageSourceSearch

https://app.xrouten.de/_nuxt/DmpSntRW2.js

js xrouten.de collected 2026-10-08 21:19:45 UTC 72,629 bytes, 12 lines download raw bytes

1import{$t as Ot,A as Lr,At as Ut,B as Oe,C as Ue,D as Q,Dn as P,Dt as Bt,E as Fe,Et as kr,F as Or,Ft as C,G as Hr,Gt as et,H as Mn,I as Mr,It as xn,J as xr,Kt as Fr,L as $r,Lt as M,M as $,Mt as Fn,N as Dr,O as tt,On as A,Ot as $n,P as nt,Q as qt,R as Ur,Rt as Br,S as qr,St as R,T as le,Tn as Dn,U as Wr,Ut as rt,V as y,W as jr,X as zr,Y as Gr,Yt as Wt,Z as Un,Zt as ot,_n as Bn,_t as Vr,at as sn,bn as Yr,bt as Jr,cn as Xr,dn as on,dt as cn,en as Kr,et as Qr,fn as jt,ft as ct,gt as w,ht as re,i as qn,in as un,it as _e,j as q,jt as Ht,k as Zr,kt as ea,lt as Te,mt as Be,nt as Rt,ot as dn,p as ta,pn as He,pt as qe,q as na,rt as ra,sn as aa,st as Wn,tn as sa,tt as ia,u as jn,ut as oa,vt as ca,wn as zt,wt as Gt,x as pn,xn as m,xt as x,yt as J,z as gt,zt as ua}from"./CyDmro8k2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"2e8dfcbf6f3796e3e06db87f2dcb866f53d3cce2"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="82573061-7463-4dd5-a620-05d474195b01",e._sentryDebugIdIdentifier="sentry-dbid-82573061-7463-4dd5-a620-05d474195b01")}catch{}})();var Le={},ln={};function ye(e,t){return Le[e]=Le[e]||[],Le[e].push(t),()=>{const n=Le[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function Ee(e,t){if(!ln[e]){ln[e]=!0;try{t()}catch(n){A&&m.error(`Error while instrumenting ${e}`,n)}}}function X(e,t){const n=e&&Le[e];if(n)for(const r of n)try{r(t)}catch(a){A&&m.error(`Error while triggering instrumentation handler.
2Type: ${e}
3Name: ${Bn(r)}
4Error:`,a)}}var wt=null;function da(e){const t="error";ye(t,e),Ee(t,pa)}function pa(){wt=P.onerror,P.onerror=function(e,t,n,r,a){return X("error",{column:r,error:a,line:n,msg:e,url:t}),wt?wt.apply(this,arguments):!1},P.onerror.__SENTRY_INSTRUMENTED__=!0}var Nt=null;function la(e){const t="unhandledrejection";ye(t,e),Ee(t,fa)}function fa(){Nt=P.onunhandledrejection,P.onunhandledrejection=function(e){return X("unhandledrejection",e),Nt?Nt.apply(this,arguments):!0},P.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var fn=!1;function ma(){if(fn)return;function e(){const t=q(),n=t&&$(t);if(n){const r="internal_error";A&&m.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:2,message:r})}}fn=!0,da(e),la(e)}function mn(e){m.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Vt(e,t){if(!t?.length)return!1;for(const n of t){if(ha(n)){if(e.description&&rt(e.description,n))return A&&mn(e),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const a=n.name?e.description&&rt(e.description,n.name):!0,s=n.op?e.op&&rt(e.op,n.op):!0,o=n.attributes?Object.entries(n.attributes).every(([c,i])=>ga(e.attributes?.[c],i)):!0;if(a&&s&&o)return A&&mn(e),!0}return!1}function ga(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?rt(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e===t}function bo(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const a of e)a.parent_span_id===r&&(a.parent_span_id=n)}function ha(e){return typeof e=="string"||e instanceof RegExp}function _a(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}function Yt(e,t=[]){return[e,t]}function Io(e,t){const[n,r]=e;return[n,[...r,t]]}function Sa(e,t){const n=e[1];for(const r of n){const a=r[0].type;if(t(r,a))return!0}return!1}function Ro(e,t){return Sa(e,(n,r)=>t.includes(r))}function Mt(e){const t=Dn(P);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function wo(e){const[t,n]=e;let r=JSON.stringify(t);function a(s){typeof r=="string"?r=typeof s=="string"?r+s:[Mt(r),s]:r.push(typeof s=="string"?Mt(s):s)}for(const s of n){const[o,c]=s;if(a(`
5${JSON.stringify(o)}
6`),typeof c=="string"||c instanceof Uint8Array)a(c);else{let i;try{i=JSON.stringify(c)}catch{i=JSON.stringify(Fr(c))}a(i)}}return typeof r=="string"?r:va(r)}function va(e){const t=e.reduce((a,s)=>a+s.length,0),n=new Uint8Array(t);let r=0;for(const a of e)n.set(a,r),r+=a.length;return n}function Ta(e){return[{type:"span"},e]}
6function No(e){const t=typeof e.data=="string"?Mt(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var zn={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function ya(e){return e in zn}function Ao(e){return ya(e)?zn[e]:e}function Gn(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ea(e,t,n,r){const a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(Wt()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:qt(r)},...a&&{trace:a}}}function ba(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function Po(e,t,n,r){const a=Gn(n);return Yt({sent_at:new Date(Wt()).toISOString(),...a&&{sdk:a},...!!r&&t&&{dsn:qt(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}function Co(e,t,n,r){const a=Gn(n),s=e.type&&e.type!=="replay_event"?e.type:"event";ba(e,n?.sdk);const o=Ea(e,a,r,t);return delete e.sdkProcessingMetadata,Yt(o,[[{type:s},e]])}function Ia(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=Ue(e[0]),a=t?.getDsn(),s=t?.getOptions().tunnel,o={sent_at:new Date(Wt()).toISOString(),...n(r)&&{trace:r},...!!s&&a&&{dsn:qt(a)}},{beforeSendSpan:c,ignoreSpans:i}=t?.getOptions()||{},u=i?.length?e.filter(f=>{const g=y(f);return!Vt({description:g.description,op:g.op,attributes:g.data},i)}):e,d=e.length-u.length;d&&t?.recordDroppedEvent("before_send","span",d);const p=c?f=>{const g=y(f),_=_a(c)?g:c(g);return _||(Ur(),g)}:y,l=[];for(const f of u){const g=p(f);g&&l.push(Ta(g))}return Yt(o,l)}function Ra(e){if(!A)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=y(e),{spanId:a}=e.spanContext(),s=gt(e),o=$(e),c=o===e,i=`[Tracing] Starting ${s?"sampled":"unsampled"} ${c?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${a}`];if(r&&u.push(`parent ID: ${r}`),!c){const{op:d,description:p}=y(o);u.push(`root ID: ${o.spanContext().spanId}`),d&&u.push(`root op: ${d}`),p&&u.push(`root description: ${p}`)}m.log(`${i}
7  ${u.join(`
8  `)}`)}function wa(e){if(!A)return;const{description:t="< unknown name >",op:n="< unknown op >"}=y(e),{spanId:r}=e.spanContext(),a=`[Tracing] Finishing "${n}" ${$(e)===e?"root ":""}span "${t}" with ID ${r}`;m.log(a)}function Vn(e,t,n,r=q()){const a=r&&$(r);a&&(A&&m.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),a.addEvent(e,{[Be]:t,[qe]:n}))}function gn(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},a=r[qe],s=r[Be];typeof a=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:a})}),t}function hn(){return Dn(zt()).segmentSpanCaptureStrategy}function ae(e){return e.getOptions().traceLifecycle==="stream"}var _n=1e3,ht=class{constructor(e={}){this._traceId=e.traceId||Fn(),this._spanId=e.spanId||Ht(),this._startTime=e.startTimestamp||M(),this._links=e.links,this._attributes={},this.setAttributes({[w]:"manual",[re]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen?this:(this._links?this._links.push(e):this._links=[e],this)}addLinks(e){return this._frozen?this:(this._links?this._links.push(...e):this._links=e,this)}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return this._frozen?this:(t===void 0?delete this._attributes[e]:this._attributes[e]=t,e==="sentry.source"&&t!==void 0&&dn(this)&&ra(this),this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=Oe(e))}setStatus(e){return this._frozen?this:(this._status=e,this)}updateName(e){return this._frozen?this:(this._name=e,dn(this)||this.setAttribute(J,"custom"),this)}end(e){if(this._endTime){this._frozen=sn(this);return}this._endTime=Oe(e),wa(this),this._onSpanEnded(),this._frozen=sn(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[re],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Or(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[w],profile_id:this._attributes[oa],exclusive_time:this._attributes[Te],measurements:gn(this._events),is_segment:this._isStandaloneSpan&&$(this)===this||void 0,segment_id:this._isStandaloneSpan?$(this).spanContext().spanId:void 0,links:Lr(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===$(this),status:Dr(this._status),attributes:Zr(this._attributes,this._status),links:Mr(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;A&&m.log("[Tracing] Adding an event to span:",e);const r=Sn(t)?t:n||M(),a=Sn(t)?{}:t||{}
8,s={name:e,time:Oe(r),attributes:a};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=x();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));const t=$(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan){this._sampled?Aa(Ia([this],e)):(A&&m.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}if(!n){const s=hn();if(s){const o=Rt(this).scope||R();s.onChildSpanEnded(this,t,c=>this._convertSpanToTransaction(c),o)}return}if(e&&ae(e)){e.emit("afterSegmentSpanEnd",this);return}const r=Rt(this).scope||R(),a=hn();if(a)a.onSegmentSpanEnded(s=>this._convertSpanToTransaction(s),r);else{const s=this._convertSpanToTransaction();s&&r.captureEvent(s)}}_convertSpanToTransaction(e={}){if(!vn(y(this)))return;this._name||(A&&m.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=Rt(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;e.onSpanCaptured?.(this);const a=[];for(const u of nt(this)){if(u===this||Na(u)||e.isSpanAlreadyCaptured?.(u))continue;const d=y(u);vn(d)&&(e.onSpanCaptured?.(u),a.push(d))}const s=this._attributes[J];delete this._attributes[cn];let o=!1;a.forEach(u=>{delete u.data[cn],u.op?.startsWith("gen_ai.")&&(o=!0)});const c={contexts:{trace:Hr(this)},spans:a.length>_n?a.sort((u,d)=>u.start_timestamp-d.start_timestamp).slice(0,_n):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ue(this),hasGenAiSpans:o},request:r,...s&&{transaction_info:{source:s}}},i=gn(this._events);return i&&Object.keys(i).length&&(A&&m.log("[Measurements] Adding measurements to transaction event",JSON.stringify(i,void 0,2)),c.measurements=i),c}};function Sn(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function vn(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Na(e){return e instanceof ht&&e.isStandaloneSpan()}function Aa(e){const t=x();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Pa(e,t,n){if(!Q(e))return[!1];let r,a;typeof e.tracesSampler=="function"?(a=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?a=t.parentSampled:typeof e.tracesSampleRate<"u"&&(a=e.tracesSampleRate,r=!0);const s=Un(a);if(s===void 0)return A&&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(a)} of type ${JSON.stringify(typeof a)}.`),[!1];if(!s)return A&&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,s,r];const o=n<s;return o||A&&m.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(a)})`),[o,s,r]}var Ca="__SENTRY_SUPPRESS_TRACING__";function ce(e){const t=Xt();return t.startInactiveSpan?t.startInactiveSpan(e):La(e)}function La(e){const t=Ha(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?a=>Bt(e.scope,a):r!==void 0?a=>Yn(r,a):a=>a())(()=>{const a=R(),s=xa(a,r),o=x();return e.onlyIfParent&&!s?ka(a,o):Oa({parentSpan:s,spanArguments:t,forceTransaction:n,scope:a})})}function Yn(e,t){const n=Xt();return n.withActiveSpan?n.withActiveSpan(e,t):Bt(r=>(Ut(r,e||void 0),t(r)))}function Jt(e=R()){const t=Xt();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[Ca]===!0}function ka(e,t){t?.recordDroppedEvent("no_parent_span","span");const n=new le({traceId:e.getPropagationContext().traceId});return _e(n,e,Gt()),n}function Oa({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){const a=Gt();if(!Q()){const c=r.getPropagationContext(),i=new le({traceId:e?e.spanContext().traceId:c.traceId});return e&&!n&&tt(e,i),_e(i,r,a),i}const s=x();if(Fa(s,t)){Jt(r)||s?.recordDroppedEvent("ignored","span");
8const c=new le({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&tt(e,c),_e(c,r,a),c}let o;if(e&&!n)o=Ma(e,r,t,a),tt(e,o);else if(e){const c=Ue(e),{traceId:i,spanId:u}=e.spanContext(),d=gt(e);o=Tn({traceId:i,parentSpanId:u,...t},r,a,d),pn(o,c)}else{const{traceId:c,dsc:i,parentSpanId:u,sampled:d}=r.getPropagationContext();o=Tn({traceId:c,parentSpanId:u,...t},r,a,d),i&&pn(o,i)}return Ra(o),o}function Ha(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=Oe(e.startTime),delete n.startTime,n}return t}function Xt(){return $n(zt())}function Tn(e,t,n,r){const a=x(),s=a?.getOptions()||{},{name:o=""}=e,c={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};a?.emit("beforeSampling",c,{decision:!1});const i=c.parentSampled??r,u=c.spanAttributes,d=t.getPropagationContext(),p=Jt(t),[l,f,g]=p?[!1]:Pa(s,{name:o,parentSampled:i,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Un(d.dsc?.sample_rate)},d.sampleRand),_=new ht({...e,attributes:{[J]:"custom",[ca]:f!==void 0&&g?f:void 0,...u},sampled:l});return!l&&a&&!p&&(A&&m.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate",ae(a)?"span":"transaction")),_e(_,t,n),a&&a.emit("spanStart",_),_}function Ma(e,t,n,r){const{spanId:a,traceId:s}=e.spanContext(),o=Jt(t),c=o?!1:gt(e),i=c?new ht({...n,parentSpanId:a,traceId:s,sampled:c}):new le({traceId:s});
8tt(e,i),_e(i,t,r);const u=x();return u&&(ae(u)&&Fe(i)&&(Fe(e)&&e.dropReason?(i.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):o||(i.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",i),n.endTimestamp&&(u.emit("spanEnd",i),u.emit("afterSpanEnd",i))),i}function xa(e,t){if(t)return t;if(t===null)return;const n=ea(e);if(!n)return;const r=x();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?$(n):n}function Fa(e,t){const n=e?.getOptions().ignoreSpans;return!e||!ae(e)||!n?.length?!1:Vt({description:t.name||"",op:t.attributes?.["sentry.op"]||t.op,attributes:t.attributes},n)}function Jn(e){return Fe(e)&&e.dropReason==="ignored"}var at={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},$a="heartbeatFailed",Da="idleTimeout",Ua="finalTimeout",Ba="externalFinish";function Xn(e,t={}){const n=new Map;let r=!1,a,s,o=Ba,c=!t.disableAutoFinish;const i=[],{idleTimeout:u=at.idleTimeout,finalTimeout:d=at.finalTimeout,childSpanTimeout:p=at.childSpanTimeout,beforeSpanEnd:l,trimIdleSpanEndTimestamp:f=!0}=t,g=x(),_=R();if(!g||!Q()){const T=new le({traceId:_.getPropagationContext().traceId});return _e(T,_,Gt()),T}const L=q(),S=qa(e);S.end=new Proxy(S.end,{apply(T,W,Ne){if(l&&l(S),Fe(W))return;const[me,...ue]=Ne,G=Oe(me||M()),N=nt(S).filter(I=>I!==S),de=y(S);if(!N.length||!f)return we(G),Reflect.apply(T,W,[G,...ue]);const v=g.getOptions().ignoreSpans,k=N?.reduce((I,Y)=>{const F=y(Y);return!F.timestamp||v&&Vt({description:F.description,op:F.op,attributes:F.data},v)?I:I?Math.max(I,F.timestamp):F.timestamp},void 0),E=de.start_timestamp,O=Math.min(E?E+d/1e3:1/0,Math.max(E||-1/0,Math.min(G,k||1/0)));return we(O),Reflect.apply(T,W,[O,...ue])}});function z(){a&&(clearTimeout(a),a=void 0)}function fe(){s&&(clearTimeout(s),s=void 0)}function ee(T){z(),a=setTimeout(()=>{!r&&n.size===0&&c&&(o=Da,S.end(T))},u)}function te(T){fe(),s=setTimeout(()=>{!r&&c&&(o=$a,S.end(T))},p)}function Et(T){z(),n.set(T,!0),te(M()+p/1e3)}function Je(T){n.has(T)&&n.delete(T),n.size===0&&(ee(M()+u/1e3),fe())}function we(T){r=!0,n.clear(),i.forEach(N=>N()),Ut(_,L);const W=y(S),{start_timestamp:Ne}=W;if(!Ne)return;W.data["sentry.idle_span_finish_reason"]||S.setAttribute(ct,o);const me=W.status;(!me||me==="unknown")&&S.setStatus({code:1}),m.log(`[Tracing] Idle span "${W.op}" finished`);const ue=nt(S).filter(N=>N!==S);let G=0;ue.forEach(N=>{N.isRecording()&&(N.setStatus({code:2,message:"cancelled"}),N.end(T),A&&m.log("[Tracing] Cancelling span since span ended early",JSON.stringify(N,void 0,2)));const{timestamp:de=0,start_timestamp:v=0}=y(N),k=v<=T,E=(d+u)/1e3,O=de-v<=E;if(A){const I=JSON.stringify(N,void 0,2);k?O||m.log("[Tracing] Discarding span since it finished after idle span final timeout",I):m.log("[Tracing] Discarding span since it happened after idle span was finished",I)}(!O||!k)&&($r(S,N),G++)}),G>0&&S.setAttribute("sentry.idle_span_discarded_spans",G)}return i.push(g.on("spanStart",T=>{r||T===S||y(T).timestamp||T instanceof ht&&T.isStandaloneSpan()||nt(S).includes(T)&&Et(T.spanContext().spanId)})),i.push(g.on("spanEnd",T=>{r||Je(T.spanContext().spanId)})),i.push(g.on("idleSpanEnableAutoFinish",T=>{T===S&&(c=!0,ee(),n.size&&te())})),t.disableAutoFinish||ee(),setTimeout(()=>{r||(S.setStatus({code:2,message:"deadline_exceeded"}),o=Ua,S.end())},d),S}function qa(e){const t=ce(e);return Ut(R(),t),A&&m.log("[Tracing] Started span is an idle span"),t}var Lo="http.request.header",Kn="http.url",Wa="navigation.route.id",ja="params",ko="sentry.op",Qn="sentry.segment.name",Zn="sentry.transaction",_t="url.full";var za="url.path.parameter",Ga="url.template",Oo="user_agent.original";function Va(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Ho(){return"npm"}function Ya(){return!Va()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Ja(){return typeof window<"u"&&(!Ya()||Xa())}function Xa(){return P.process?.type==="renderer"}var er="[Filtered]",Mo=["forwarded","-ip","remote-","via","-user"],yn=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],xo=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"];function Ka(e,t){return t.some(n=>e.includes(n))}function tr(e,t,n){if(t===!1)return!0;const r=e.toLowerCase();if(Ka(r,n!=null?[...yn,...n]:yn))return!0;
8if(t===!0)return!1;const a=("deny"in t?t.deny:t.allow).some(s=>r.includes(s.toLowerCase()));return"deny"in t?a:!a}function Fo(e,t,n){if(t===!1)return{};const r={};for(const a of Object.keys(e))r[a]=tr(a,t,n)?er:e[a];return r}function nr(e,t){if(!(!e||t===!1))return e.split("&").map(n=>{const r=n.indexOf("="),a=r===-1?n:n.slice(0,r),s=new URLSearchParams(`${a}=`).keys().next().value;return s!==void 0&&tr(s,t)?`${a}=${er}`:n}).join("&")}function Qa(e,t){const n=e.indexOf("#"),r=n===-1?e.length:n,a=e.indexOf("?");if(a===-1||a>r)return e;const s=e.slice(0,a),o=e.slice(a+1,r),c=e.slice(r),i=nr(o,t);return i?`${s}?${i}${c}`:`${s}${c}`}function rr(e){return(e??x())?.getDataCollectionOptions().urlQueryParams??!0}function V(e,t){return e===void 0?void 0:Qa(e,rr(t))}function ar(e,t){if(!e)return e;const n=e.startsWith("?"),r=nr(n?e.slice(1):e,rr(t));return r&&n?`?${r}`:r}var Za="thismessage:/";function Kt(e){return"isRelative"in e}function ut(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=t??(n?Za:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const a=new URL(e,r);return n?{isRelative:n,pathname:a.pathname,search:a.search,hash:a.hash}:a}catch{}}function sr(e){if(Kt(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 dt(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 es(e){return e.split(/[?#]/,1)[0]}function K(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",a=e.includes(";base64,"),s=e.indexOf(",");let o="";if(t&&s!==-1){const c=e.slice(s+1);o=c.length>10?`${c.slice(0,10)}... [truncated]`:c}return`data:${r}${a?",base64":""}${o?`,${o}`:""}`}return e}function ir(e={}){const t=e.client||x();if(!ta()||!t)return{};const n=$n(zt());if(n.getTraceData)return n.getTraceData(e);const r=e.scope||R(),a=e.span||q(),s=Fe(a)&&!Q(t.getOptions());if(!a&&kr())return{};const o=a&&!s?Wr(a):ts(r),c=ia(a?Ue(a):qr(t,r));if(!na.test(o))return m.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const i={"sentry-trace":o,baggage:c};return e.propagateTraceparent&&(i.traceparent=a&&!s?jr(a):ns(r)),i}function ts(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return xr(t,r,n)}function ns(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Gr(t,r,n)}function rs(e,t,n,r,a){if(!e.fetchData)return;const{method:s,url:o}=e.fetchData,c=Q()&&t(o);if(e.endTimestamp){const _=e.fetchData.__span;if(!_)return;const L=r[_];L&&(c&&(is(L,e),as(L,e,a)),delete r[_]);return}const{spanOrigin:i="auto.http.browser",propagateTraceparent:u=!1}=typeof a=="object"?a:{spanOrigin:a},d=x(),p=!!q(),l=p||!!d&&ae(d),f=c&&l?ce(us(o,s,i,d)):new le,g=Jn(f)&&p?void 0:f;if(c&&!l&&d?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){const _=e.args[0],L={...e.args[1]||{}},S=ss(_,L,Q()&&l?g:void 0,u);S&&(e.args[1]=L,L.headers=S)}if(d){const _={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",f,_)}return f}function as(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function ss(e,t,n,r){const a=ir({span:n,propagateTraceparent:r}),s=a["sentry-trace"],o=a.baggage,c=a.traceparent;if(!s)return;const i=t.headers||(jt(e)?e.headers:void 0);if(i)if(os(i)){const u=new Headers(i);if(u.get("sentry-trace")||u.set("sentry-trace",s),r&&c&&!u.get("traceparent")&&u.set("traceparent",c),o){const d=u.get("baggage");d?Xe(d)||u.set("baggage",`${d},${o}`):u.set("baggage",o)}return u}else if(cs(i)){const u=[...i];u.find(p=>p[0]==="sentry-trace")||u.push(["sentry-trace",s]),r&&c&&!u.find(p=>p[0]==="traceparent")&&u.push(["traceparent",c]);const d=i.find(p=>p[0]==="baggage"&&typeof p[1]=="string"&&Xe(p[1]));return o&&!d&&u.push(["baggage",o]),u}else{const u="sentry-trace"in i?i["sentry-trace"]:void 0,d="traceparent"in i?i.traceparent:void 0,p="baggage"in i?i.baggage:void 0,l=p?Array.isArray(p)?[...p]:[p]:[],f=p&&(Array.isArray(p)?p.find(_=>Xe(_)):Xe(p));o&&!f&&l.push(o);const g=Object.assign({},i,{"sentry-trace":u??s,...l.length>0&&{baggage:l.join(",")}});return r&&c&&!d&&(g.traceparent=c),g}else return{"sentry-trace":s,...o&&{baggage:o},...c&&{traceparent:c}}}function is(e,t){if(t.response){Wn(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:2,message:"internal_error"});e.end()}function Xe(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(Qr))}function os(e){return typeof Headers<"u"&&aa(e,Headers)}function cs(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}function us(e,t,n,r){if(e.startsWith("data:"))return{name:`${t} ${K(e)}`,attributes:En(e,void 0,t,n,r)};const a=ut(e);return{name:`${t} ${a?sr(a):e}`,attributes:En(e,a,t,n,r)}}function En(e,t,n,r,a){const s={url:V(K(e),a),type:"fetch","http.method":n,[w]:r,[re]:"http.client"};return t&&(Kt(t)||(s[Kn]=V(K(t.href),a),s[_t]=V(K(t.href),a),s["server.address"]=t.host),t.search&&(s["http.query"]=ar(t.search,a)),t.hash&&(s["http.fragment"]=t.hash)),s}var Se=P;function ds(){return"history"in Se&&!!Se.history}function ps(){if(!("fetch"in Se))return!1;
8try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function bn(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ls(){if(typeof EdgeRuntime=="string")return!0;if(!ps())return!1;if(bn(Se.fetch))return!0;let e=!1;const t=Se.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=bn(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){A&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function $o(){return"ReportingObserver"in Se}function or(e,t){const n="fetch",r=ye(n,e);return Ee(n,()=>cr(void 0,t)),r}function fs(e){const t="fetch-body-resolved",n=ye(t,e);return Ee(t,()=>cr(gs)),n}function cr(e,t=!1){t&&!ls()||Ot(P,"fetch",function(n){return function(...r){const a=new Error,{method:s,url:o}=hs(r),c={args:r,fetchData:{method:s,url:o},startTimestamp:M()*1e3,virtualError:a,headers:_s(r)};return e||X("fetch",{...c}),n.apply(P,r).then(async i=>(e?e(i):X("fetch",{...c,endTimestamp:M()*1e3,response:i}),i),i=>{X("fetch",{...c,endTimestamp:M()*1e3,error:i}),un(i)&&i.stack===void 0&&(i.stack=a.stack,ot(i,"framesToPop",1));const u=x()?.getOptions().enhanceFetchErrorMessages??"always";if(u!==!1&&un(i)&&i.name==="TypeError"&&(i.message==="Failed to fetch"||i.message==="Load failed"||i.message==="NetworkError when attempting to fetch resource."))try{const d=new URL(c.fetchData.url).host;u==="always"?i.message=`${i.message} (${d})`:ot(i,"__sentry_fetch_url_host__",d)}catch{}throw i})}})}async function ms(e,t){if(e?.body){const n=e.body,r=n.getReader(),a=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await r.read();clearTimeout(o),c&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(o)}}clearTimeout(a),r.releaseLock(),n.cancel().then(null,()=>{})}}function gs(e){let t;try{t=e.clone()}catch{return}ms(t,()=>{X("fetch-body-resolved",{endTimestamp:M()*1e3,response:e})})}function st(e,t){return Xr(e)&&!!e[t]}function In(e){return typeof e=="string"?e:e?st(e,"url")?e.url:e.toString?e.toString():"":""}function hs(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:In(n),method:st(r,"method")?String(r.method).toUpperCase():jt(n)&&st(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:In(t),method:st(t,"method")?String(t.method).toUpperCase():"GET"}}function _s(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(jt(t))return new Headers(t.headers)}catch{}}var ur=P;function pt(){try{return ur.document.location.href}catch{return""}}function Ss(e,t=5){if(!ur.HTMLElement)return null;let n=e;for(let r=0;r<t;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}var H=P,xt=0;function Do(){return xt>0}function vs(){xt++,setTimeout(()=>{xt--})}function Ts(e,t={}){function n(a){return typeof a=="function"}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const a=e.__sentry_wrapped__;return typeof a=="function"?a:e}if(Kr(e))return e}catch{return e}const r=function(...a){P._sentryWrappedDepth=(P._sentryWrappedDepth||0)+1;try{const s=a.map(o=>Ts(o,t));return e.apply(this,s)}catch(s){throw vs(),Bt(o=>{o.addEventProcessor(c=>(t.mechanism&&(ua(c,void 0,void 0),Br(c,t.mechanism)),c.extra={...c.extra,arguments:a},c)),jn(s)}),s}finally{P._sentryWrappedDepth=(P._sentryWrappedDepth||0)-1}};try{for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a])}catch{}sa(r,e),ot(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function dr(){const e=pt(),{referrer:t}=H.document||{},{userAgent:n}=H.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}var Z=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,h=P,ys=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",We=(e,t,n,r)=>{let a,s;return o=>{t.value>=0&&(o||r)&&(s=t.value-(a??0),(s||a===void 0)&&(a=t.value,t.delta=s,t.rating=ys(t.value,n),e(t)))}},je=(e=!0)=>{const t=h.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},be=()=>je()?.activationStart??0;function ie(e,t,n){h.document&&h.addEventListener(e,t,n)}function lt(e,t,n){h.document&&h.removeEventListener(e,t,n)}var he=-1,pr=new Set,Es=()=>h.document?.visibilityState==="hidden"&&!h.document?.prerendering?0:1/0,it=e=>{if(bs(e)&&he>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of pr)t();isFinite(he)||(he=e.type==="visibilitychange"?e.timeStamp:0,lt("prerenderingchange",it,!0))}},ze=()=>
8{if(h.document&&he<0){const e=be();he=(h.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>t.name==="hidden"&&t.startTime>e)[0]?.startTime)??Es(),ie("visibilitychange",it,!0),ie("pagehide",it,!0),ie("prerenderingchange",it,!0)}return{get firstHiddenTime(){return he},onHidden(e){pr.add(e)}}};function bs(e){return e.type==="pagehide"||h.document?.visibilityState==="hidden"}var Is=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+1e12}`,Ge=(e,t=-1)=>{const n=je();let r="navigate";return n&&(h.document?.prerendering||be()>0?r="prerender":h.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Is(),navigationType:r}},At=new WeakMap;function Qt(e,t){try{return At.get(e)||At.set(e,new t),At.get(e)}catch{return new t}}var Rs=class{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},Ie=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(a=>{Promise.resolve().then(()=>{t(a.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Zt=e=>{let t=!1;return()=>{t||(e(),t=!0)}},St=e=>{h.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},ws=[1800,3e3],Ns=(e,t={})=>{St(()=>{const n=ze(),r=Ge("FCP");let a;const o=Ie("paint",c=>{for(const i of c)i.name==="first-contentful-paint"&&(o.disconnect(),i.startTime<n.firstHiddenTime&&(r.value=Math.max(i.startTime-be(),0),r.entries.push(i),a(!0)))});o&&(a=We(e,r,ws,t.reportAllChanges))})},As=[.1,.25],Ps=(e,t={})=>{Ns(Zt(()=>{const n=Ge("CLS",0);let r;const a=ze(),s=Qt(t,Rs),o=i=>{for(const u of i)s._processEntry(u);s._sessionValue>n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},c=Ie("layout-shift",o);c&&(r=We(e,n,As,t.reportAllChanges),a.onHidden(()=>{o(c.takeRecords()),r(!0)}),h?.setTimeout?.(r))}))},lr=0,Pt=1/0,Ke=0,Cs=e=>{e.forEach(t=>{t.interactionId&&(Pt=Math.min(Pt,t.interactionId),Ke=Math.max(Ke,t.interactionId),lr=Ke?(Ke-Pt)/7+1:0)})},Ft,fr=()=>Ft?lr:performance.interactionCount||0,Ls=()=>{"interactionCount"in performance||Ft||(Ft=Ie("event",Cs,{type:"event",buffered:!0,durationThreshold:0}))},Ct=10,mr=0,ks=()=>fr()-mr,Os=class{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){mr=fr(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor(ks()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType==="first-input"))return;const t=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<Ct||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((r,a)=>a._latency-r._latency),this._longestInteractionList.length>Ct){const r=this._longestInteractionList.splice(Ct);for(const a of r)this._longestInteractionMap.delete(a.id)}this._onAfterProcessingINPCandidate?.(n)}}},gr=e=>{const t=h.requestIdleCallback||h.setTimeout;h.document?.visibilityState==="hidden"?e():(e=Zt(e),ie("visibilitychange",e,{once:!0,capture:!0}),ie("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),lt("visibilitychange",e,{capture:!0}),lt("pagehide",e,{capture:!0})}))},Hs=[200,500],Ms=40,xs=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=ze();St(()=>{Ls();const r=Ge("INP");let a;const s=Qt(t,Os),o=i=>{gr(()=>{for(const d of i)s._processEntry(d);const u=s._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,a())})},c=Ie("event",o,{durationThreshold:t.durationThreshold??Ms});a=We(e,r,Hs,t.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{o(c.takeRecords()),a(!0)}))})},Fs=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},$s=[2500,4e3],Ds=(e,t={})=>{St(()=>{const n=ze(),r=Ge("LCP");let a;const s=Qt(t,Fs),o=i=>{t.reportAllChanges||(i=i.slice(-1));for(const u of i)u&&(s._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-be(),0),r.entries=[u],a()))},c=Ie("largest-contentful-paint",o);if(c){a=We(e,r,$s,t.reportAllChanges);const i=Zt(()=>{o(c.takeRecords()),c.disconnect(),a(!0)}),u=d=>{d.isTrusted&&(gr(i),lt(d.type,u,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])ie(d,u,{capture:!0})}})},Us=[800,1800],$t=e=>{h.document?.prerendering?St(()=>$t(e)):h.document?.readyState!=="complete"?addEventListener("load",()=>$t(e),!0):setTimeout(e)},Bs=(e,t={})=>{const n=Ge("TTFB"),r=We(e,n,Us,t.reportAllChanges);$t(()=>{const a=je();a&&(n.value=Math.max(a.responseStart-be(),0),n.entries=[a],r(!0))})},Me={},ft={},hr,_r,Sr,vr;function en(e,t=!1){return vt("cls",e,Ws,hr,t)}function tn(e,t=!1){return vt("lcp",e,js,_r,t)}function qs(e){return vt("ttfb",e,zs,Sr)}function Tr(e){return vt("inp",e,Gs,vr)}function ve(e,t){return yr(e,t),ft[e]||(Vs(e),ft[e]=!0),Er(e,t)}function Ve(e,t){const n=Me[e];if(n?.length)for(const r of n)try{r(t)}catch(a){Z&&m.error(`Error while triggering instrumentation handler.
9Type: ${e}
10Name: ${Bn(r)}
11Error:`,a)}}function Ws(){return Ps(e=>{Ve("cls",{metric:e}),hr=e},{reportAllChanges:!0})}function js(){return Ds(e=>{Ve("lcp",{metric:e}),_r=e},{reportAllChanges:!0})}function zs(){return Bs(e=>{Ve("ttfb",{metric:e}),Sr=e})}function Gs(){return xs(e=>{Ve("inp",{metric:e}),vr=e})}function vt(e,t,n,r,a=!1){yr(e,t);let s;return ft[e]||(s=n(),ft[e]=!0),r&&t({metric:r}),Er(e,t,a?s:void 0)}function Vs(e){const t={};e==="event"&&(t.durationThreshold=0),Ie(e,n=>{Ve(e,{entries:n})},t)}function yr(e,t){Me[e]=Me[e]||[],Me[e].push(t)}function Er(e,t,n){return()=>{n&&n();const r=Me[e];if(!r)return;const a=r.indexOf(t);a!==-1&&r.splice(a,1)}}function Ys(e){return"duration"in e}var Js=80,pe={};try{typeof Node<"u"&&(pe.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(pe.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,pe.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,pe.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,pe.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(pe.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function se(e,t,n){const r=pe[t];if(r)try{return r.call(e,n)}catch{}const a=e[t];return typeof a=="function"?a.call(e,n):a}function D(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,a=[];let s=0,o=0;const c=" > ",i=3;let u;const d=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||Js;for(;n&&s++<r&&(u=Xs(n,d),!(u==="html"||s>1&&o+a.length*i+u.length>=p));)a.push(u),o+=u.length,n=se(n,"parentNode");return a.reverse().join(c)}catch{return"<unknown>"}}function Xs(e,t){const n=[],r=se(e,"tagName");if(!r)return"";if(typeof HTMLElement<"u"&&e instanceof HTMLElement){const s=se(e,"dataset");if(s){if(s.sentryComponent)return s.sentryComponent;if(s.sentryElement)return s.sentryElement}}n.push(r.toLowerCase());const a=t?.length?t.filter(s=>se(e,"getAttribute",s)).map(s=>[s,se(e,"getAttribute",s)]):null;
11if(a?.length)a.forEach(s=>{n.push(`[${s[0]}="${s[1]}"]`)});else{const s=se(e,"id");s&&n.push(`#${s}`);const o=se(e,"className");if(o&&He(o)){const c=o.split(/\s+/);for(const i of c)n.push(`.${i}`)}}for(const s of["aria-label","type","name","title","alt"]){const o=se(e,"getAttribute",s);o&&n.push(`[${s}="${o}"]`)}return n.join("")}var Ks=e=>{const t=n=>{(n.type==="pagehide"||h.document?.visibilityState==="hidden")&&e(n)};ie("visibilitychange",t,{capture:!0,once:!0}),ie("pagehide",t,{capture:!0,once:!0})};function Lt(e){return typeof e=="number"&&isFinite(e)}function oe(e,t,n,{...r}){const a=y(e).start_timestamp;return a&&a>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Yn(e,()=>{const s=ce({startTime:t,...r});return s&&s.end(n),s})}function nn(e){const t=x();if(!t)return;const{name:n,transaction:r,attributes:a,startTime:s}=e,{release:o,environment:c}=t.getOptions(),{userInfo:i}=t.getDataCollectionOptions(),u=t.getIntegrationByName("Replay")?.getReplayId(),d=R(),p=d.getUser(),l=p!==void 0?p.email||p.id||p.ip_address:void 0;let f;try{f=d.getScopeData().contexts.profile.profile_id}catch{}return ce({name:n,attributes:{release:o,environment:c,user:l||void 0,profile_id:f||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":h.navigator?.userAgent,"client.address":i?"{{auto}}":void 0,...a},startTime:s,experimental:{standalone:!0}})}function Re(){return h.addEventListener&&h.performance}function b(e){return e/1e3}function Qs(e){let t="unknown",n="unknown",r="";for(const a of e){if(a==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(a))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=a}return r===e&&(t=r),{name:t,version:n}}function Tt(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function yt(e,t){let n,r=!1;function a(c){!r&&n&&t(c,n.spanContext().spanId,n),r=!0}Ks(()=>{a("pagehide")});const s=e.on("beforeStartNavigationSpan",(c,i)=>{i?.isRedirect||(a("navigation"),s(),o())}),o=e.on("afterStartPageLoadSpan",c=>{n=c,o()})}function Zs(e){let t=0,n;if(!Tt("layout-shift"))return;const r=en(({metric:a})=>{const s=a.entries[a.entries.length-1];s&&(t=a.value,n=s)},!0);yt(e,(a,s)=>{ei(t,n,s,a),r()})}function ei(e,t,n,r){Z&&m.log(`Sending CLS span (${e})`);const a=t?b((C()||0)+t.startTime):M(),s=R().getScopeData().transactionName,o=t?D(t.sources[0]?.node):"Layout shift",c={[w]:"auto.http.browser.cls",[re]:"ui.webvital.cls",[Te]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,d)=>{c[`cls.source.${d+1}`]=D(u.node)});const i=nn({name:o,transaction:s,attributes:c,startTime:a});i&&(i.addEvent("cls",{[qe]:"",[Be]:e}),i.end(a))}function Ye(e){return e!=null&&e>0&&e<=6e4}function ti(e){let t=0,n;if(!Tt("largest-contentful-paint"))return;const r=tn(({metric:a})=>{const s=a.entries[a.entries.length-1];!s||!Ye(a.value)||(t=a.value,n=s)},!0);yt(e,(a,s)=>{ni(t,n,s,a),r()})}function ni(e,t,n,r){if(!Ye(e))return;Z&&m.log(`Sending LCP span (${e})`);const a=b((C()||0)+(t?.startTime||0)),s=R().getScopeData().transactionName,o=t?D(t.element):"Largest contentful paint",c={[w]:"auto.http.browser.lcp",[re]:"ui.webvital.lcp",[Te]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(c["lcp.element"]=D(t.element)),t.id&&(c["lcp.id"]=t.id),t.url&&(c["lcp.url"]=t.url),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=nn({name:o,transaction:s,attributes:c,startTime:a});i&&(i.addEvent("lcp",{[qe]:"millisecond",[Be]:e}),i.end(a))}function j(e){return e&&((C()||performance.timeOrigin)+e)/1e3}function br(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=Qs(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return C()||Re()?.timeOrigin?ri({...t,"http.request.redirect_start":j(e.redirectStart),"http.request.redirect_end":j(e.redirectEnd),"http.request.worker_start":j(e.workerStart),"http.request.fetch_start":j(e.fetchStart),"http.request.domain_lookup_start":j(e.domainLookupStart),"http.request.domain_lookup_end":j(e.domainLookupEnd),"http.request.connect_start":j(e.connectStart),"http.request.secure_connection_start":j(e.secureConnectionStart),"http.request.connection_end":j(e.connectEnd),"http.request.request_start":j(e.requestStart),"http.request.response_start":j(e.responseStart),"http.request.response_end":j(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function ri(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}var ai=2147483647,Rn=0,B={},U,mt;function si({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Re();if(r&&C()){r.mark&&h.performance.mark("sentry-tracing-init");const a=t?ti(n):t===!1?di():void 0,s=e?Zs(n):e===!1?ui():void 0,o=pi(),c=li();return()=>{o(),c(),a?.(),s?.()}}return()=>{}}function ii(){ve("longtask",({entries:e})=>{const t=q();if(!t)return;const{op:n,start_timestamp:r}=y(t);for(const a of e){const s=b(C()+a.startTime),o=b(a.duration);n==="navigation"&&r&&s<r||oe(t,s,s+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[w]:"auto.ui.browser.metrics"}})}})}function oi(){new PerformanceObserver(e=>{const t=q();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const r=b(C()+n.startTime),{start_timestamp:a,op:s}=y(t);if(s==="navigation"&&a&&r<a)continue;const o=b(n.duration),c={[w]:"auto.ui.browser.metrics"},{invoker:i,invokerType:u,sourceURL:d,sourceFunctionName:p,sourceCharPosition:l}=n.scripts[0];c["browser.script.invoker"]=i,c["browser.script.invoker_type"]=u,d&&(c["code.filepath"]=d),p&&(c["code.function"]=p),l!==-1&&(c["browser.script.source_char_position"]=l),oe(t,r,r+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function ci(){ve("event",({entries:e})=>{const t=q();if(t){for(const n of e)if(n.name==="click"){const r=b(C()+n.startTime),a=b(n.duration),s={name:D(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[w]:"auto.ui.browser.metrics"}},o=Ss(n.target);o&&(s.attributes["ui.component_name"]=o),oe(t,r,r+a,s)}}})}function ui(){return en(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(B.cls={value:e.value,unit:""},mt=t)},!0)}function di(){return tn(({metric:e})=>{const t=e.entries[e.entries.length-1];!t||!Ye(e.value)||(B.lcp={value:e.value,unit:"millisecond"},U=t)},!0)}function pi(){return qs(({metric:e})=>{e.entries[e.entries.length-1]&&(B.ttfb={value:e.value,unit:"millisecond"})})}function li(){return ve("paint",({entries:e})=>{const t=ze();for(const n of e){const r=n.startTime<t.firstHiddenTime;n.name==="first-paint"&&r&&(B.fp={value:n.startTime,unit:"millisecond"}),n.name==="first-contentful-paint"&&r&&(B.fcp={value:n.startTime,unit:"millisecond"})}})}
11function fi(e,t){const n=Re(),r=C();if(!n?.getEntries||!r)return;const{spanStreamingEnabled:a,ignorePerformanceApiSpans:s,ignoreResourceSpans:o}=t,c=b(r),i=n.getEntries(),{op:u,start_timestamp:d}=y(e);i.slice(Rn).forEach(p=>{const l=b(p.startTime),f=b(Math.max(0,p.duration));if(!(u==="navigation"&&d&&c+l<d))switch(p.entryType){case"navigation":Si(e,p,c);break;case"mark":case"paint":case"measure":hi(e,p,l,f,c,s);break;case"resource":yi(e,p,p.name,l,f,c,o);break}}),Rn=Math.max(i.length-1,0),Ei(e,a)}function mi(e,t){const n=C();if(!Re()?.getEntries||!n){wn();return}const{spanStreamingEnabled:r,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:s}=t,o=b(n);if(y(e).op==="pageload"){if(Ri(B),r){const c=(i,u,d)=>{const p=d??`browser.web_vital.${i}.value`;e.setAttribute(p,u),Z&&m.log("Setting web vital attribute",{[p]:u},"on pageload span")};["ttfb","fp","fcp"].forEach(i=>{B[i]&&c(i,B[i].value)}),B["ttfb.requestTime"]&&c("ttfb.requestTime",B["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else a||delete B.cls,s||delete B.lcp,Object.entries(B).forEach(([c,i])=>{Vn(c,i.value,i.unit,e)}),bi(e,t);e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",o),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",be())}wn()}function wn(){U=void 0,mt=void 0,B={}}function gi(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function hi(e,t,n,r,a,s){if(gi(t)||["mark","measure"].includes(t.entryType)&&et(t.name,s))return;const o=je(!1),c=b(o?o.requestStart:0),i=a+Math.max(n,c),u=a+n,d=u+r,p={[w]:"auto.resource.browser.metrics"};i!==u&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=i),_i(p,t),i<=d&&oe(e,i,d,{name:t.name,op:t.entryType,attributes:p})}function _i(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,a]of Object.entries(n))if(a&&on(a))e[`sentry.browser.measure.detail.${r}`]=a;else if(a!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(a)}catch{}return}if(on(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Si(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Qe(e,t,r,n)}),Qe(e,t,"secureConnection",n,"TLS/SSL"),Qe(e,t,"fetch",n,"cache"),Qe(e,t,"domainLookup",n,"DNS"),Ti(e,t,n)}function Qe(e,t,n,r,a=n){const s=t[vi(n)],o=t[`${n}Start`];!o||!s||oe(e,r+b(o),r+b(s),{op:`browser.${a}`,name:t.name,attributes:{[w]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function vi(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Ti(e,t,n){const r=n+b(t.requestStart),a=n+b(t.responseEnd),s=n+b(t.responseStart);t.responseEnd&&(oe(e,r,a,{op:"browser.request",name:t.name,attributes:{[w]:"auto.ui.browser.metrics"}}),oe(e,s,a,{op:"browser.response",name:t.name,attributes:{[w]:"auto.ui.browser.metrics"}}))}function yi(e,t,n,r,a,s,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(c))return;const i={[w]:"auto.resource.browser.metrics"},u=dt(n);u.protocol&&(i["url.scheme"]=u.protocol.split(":").pop()),u.host&&(i["server.address"]=u.host),i["url.same_origin"]=n.includes(h.location.origin),i[_t]=V(n),Ii(t,i,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...i,...br(t)},p=s+r;oe(e,p,p+a,{name:n.replace(h.location.origin,""),op:c,attributes:d})}function Ei(e,t){const n=h.navigator;if(!n)return;const r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),Lt(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):y(e).op==="pageload"&&Vn("c
11onnection.rtt",r.rtt,"millisecond"))),Lt(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),Lt(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function bi(e,t){U&&t.recordLcpOnPageloadSpan&&(U.element&&e.setAttribute("lcp.element",D(U.element)),U.id&&e.setAttribute("lcp.id",U.id),U.url&&e.setAttribute("lcp.url",U.url.trim().slice(0,200)),U.loadTime!=null&&e.setAttribute("lcp.loadTime",U.loadTime),U.renderTime!=null&&e.setAttribute("lcp.renderTime",U.renderTime),e.setAttribute("lcp.size",U.size)),mt?.sources&&t.recordClsOnPageloadSpan&&mt.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,D(n.node)))}function Ii(e,t,n){n.forEach(([r,a])=>{const s=e[r];s!=null&&(typeof s=="number"&&s<ai||typeof s=="string")&&(t[a]=s)})}function Ri(e){const t=je(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}var kt=[],xe=new Map,ge=new Map;function wi(){if(Re()&&C()){const e=Ni();return()=>{e()}}return()=>{}}var $e={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 Ni(){return Tr(Ai)}var Ai=({metric:e})=>{if(e.value==null)return;const t=b(e.value);if(t>60)return;const n=e.entries.find(l=>l.duration===e.value&&$e[l.name]);if(!n)return;const{interactionId:r}=n,a=$e[n.name],s=b(C()+n.startTime),o=q(),c=o?$(o):void 0,i=r!=null?xe.get(r):void 0,u=i?.span||c,d=u?y(u).description:R().getScopeData().transactionName,p=nn({name:i?.elementName||D(n.target),transaction:d,attributes:{[w]:"auto.http.browser.inp",[re]:`ui.interaction.${a}`,[Te]:n.duration},startTime:s});p&&(p.addEvent("inp",{[qe]:"millisecond",[Be]:e.value}),p.end(s+t))};function Pi(e){return e!=null?xe.get(e):void 0}function Ci(){const e=Object.keys($e);Ja()&&e.forEach(a=>{h.addEventListener(a,t,{capture:!0,passive:!0})});function t(a){const s=a.target;if(!s)return;const o=D(s),c=Math.round(a.timeStamp);if(ge.set(c,o),ge.size>50){const i=ge.keys().next().value;i!==void 0&&ge.delete(i)}}function n(a){const s=Math.round(a.startTime);let o=ge.get(s);if(!o)for(let c=-5;c<=5;c++){const i=ge.get(s+c);if(i){o=i;break}}return o||"<unknown>"}const r=({entries:a})=>{const s=q(),o=s&&$(s);a.forEach(c=>{if(!Ys(c))return;const i=c.interactionId;if(i==null||xe.has(i))return;const u=c.target?D(c.target):n(c);if(kt.length>10){const d=kt.shift();xe.delete(d)}kt.push(i),xe.set(i,{span:o,elementName:u})})};ve("event",r),ve("first-input",r)}function rn(e){const{name:t,op:n,origin:r,metricName:a,value:s,attributes:o,parentSpan:c,reportEvent:i,startTime:u,endTime:d}=e,p=R().getScopeData().transactionName,l={[w]:r,[re]:n,[Te]:0,[`browser.web_vital.${a}.value`]:s,[Zn]:p,[Qn]:p,"user_agent.original":h.navigator?.userAgent,...o};c&&Mn(c).attributes?.["sentry.op"]==="pageload"&&(l["sentry.pageload.span_id"]=c.spanContext().spanId),i&&(l[`browser.web_vital.${a}.report_event`]=i);const f=ce({name:t,attributes:l,startTime:u,parentSpan:c});f&&f.end(d??u)}function Li(e){let t=0,n;if(!Tt("largest-contentful-paint"))return;const r=tn(({metric:a})=>{const s=a.entries[a.entries.length-1];!s||!Ye(a.value)||(t=a.value,n=s)},!0);yt(e,(a,s,o)=>{ki(t,n,o,a),r()})}function ki(e,t,n,r){if(!Ye(e))return;Z&&m.log(`Sending LCP span (${e})`);const a=C()||0,s=b(a),o=b(a+(t?.startTime||0)),c=t?D(t.element):"Largest contentful paint",i={};t?.element&&(i["browser.web_vital.lcp.element"]=D(t.element)),t?.id&&(i["browser.web_vital.lcp.id"]=t.id),t?.url&&(i["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(i["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(i["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(i["browser.web_vital.lcp.size"]=t.size),rn({name:c,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:i,parentSpan:n,reportEvent:r,startTime:s,endTime:o})}function Oi(e){let t=0,n;if(!Tt("layout-shift"))return;const r=en(({metric:a})=>{const s=a.entries[a.entries.length-1];s&&(t=a.value,n=s)},!0);yt(e,(a,s,o)=>{Hi(t,n,o,a),r()})}function Hi(e,t,n,r){Z&&m.log(`Sending CLS span (${e})`);const a=t?b((C()||0)+t.startTime):M(),s=t?D(t.sources[0]?.node):"Layout shift",o={};
11t?.sources&&t.sources.forEach((c,i)=>{o[`browser.web_vital.cls.source.${i+1}`]=D(c.node)}),rn({name:s,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:a})}function Mi(){if(!Re()||!C())return;Tr(({metric:t})=>{if(t.value==null||b(t.value)>60)return;const n=t.entries.find(r=>r.duration===t.value&&$e[r.name]);n&&xi(t.value,n)})}function xi(e,t){Z&&m.log(`Sending INP span (${e})`);const n=b(C()+t.startTime),r=b(e),a=$e[t.name],s=Pi(t.interactionId),o=q(),c=o?$(o):void 0,i=s?.span||c,u=i?Mn(i).name:R().getScopeData().transactionName;rn({name:s?.elementName||D(t.target),op:`ui.interaction.${a}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[Te]:t.duration,[Zn]:u,[Qn]:u},startTime:n,endTime:n+r,parentSpan:i})}var Ze;function Fi(e){const t="history";ye(t,e),Ee(t,$i)}function $i(){if(h.addEventListener("popstate",()=>{const t=h.location.href,n=Ze;Ze=t,n!==t&&X("history",{from:n,to:t})}),!ds())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const a=Ze,s=Di(String(r));if(Ze=s,a===s)return t.apply(this,n);X("history",{from:a,to:s})}return t.apply(this,n)}}Ot(h.history,"pushState",e),Ot(h.history,"replaceState",e)}function Di(e){try{return new URL(e,h.location.origin).toString()}catch{return e}}var ke="__sentry_xhr_v3__";function Ui(e){ye("xhr",e),Ee("xhr",Bi)}function Bi(){if(!h.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){let a=new Error;const s=M()*1e3,o=He(r[0])?r[0].toUpperCase():void 0,c=qi(r[1]);if(!o||!c)return t.apply(n,r);n[ke]={method:o,url:c,request_headers:{}},o==="POST"&&c.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const i=()=>{const u=n[ke];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}X("xhr",{endTimestamp:M()*1e3,startTimestamp:s,xhr:n,virtualError:a}),a=void 0,n.removeEventListener("readystatechange",i)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,p){return i(),u.apply(d,p)}}):n.addEventListener("readystatechange",i),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,p){const[l,f]=p,g=d[ke];return g&&He(l)&&He(f)&&(g.request_headers[l.toLowerCase()]=f),u.apply(d,p)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const a=n[ke];return a&&(r[0]!==void 0&&(a.body=r[0]),X("xhr",{startTimestamp:M()*1e3,xhr:n})),t.apply(n,r)}})}function qi(e){if(He(e))return e;try{return e.toString()}catch{}}var Wi=Symbol.for("sentry__originalRequestBody");function ji(e){return new URLSearchParams(e).toString()}function Uo(e,t=m){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[ji(e)];if(!e)return[void 0]}catch(n){return Z&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Z&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Bo(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const t=e[0][Wi];return t!==void 0?t:void 0}}function zi(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return Z&&m.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
12`).reduce((n,r)=>{const[a,s]=r.split(": ");return s&&(n[a.toLowerCase()]=s),n},{}):{}}function Gi(e){try{return new URL(e,h.location.origin).toString()}catch{return e}}var ne=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Vi(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Ir(e){try{return new URL(e,H.location.origin).href}catch{return}}function Yi(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Rr(e){try{return new Headers(e)}catch{return}}var wr={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Ji(e,t){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:a,enableHTTPTimings:s,tracePropagationTargets:o,onRequestSpanStart:c,onRequestSpanEnd:i}={...wr,...t},u=typeof a=="function"?a:f=>!0,d=f=>Ki(f,o),p={},l=e.getOptions().propagateTraceparent;n&&or(f=>{const g=rs(f,u,d,p,{propagateTraceparent:l,onRequestSpanEnd:i});if(g){const _=Ir(f.fetchData.url),L=_?dt(_).host:void 0,S=_?K(_):void 0;g.setAttributes({[Kn]:V(S),[_t]:V(S),"server.address":L}),s&&Nn(g,e),c?.(g,{headers:f.headers})}}),r&&Ui(f=>{const g=Qi(f,u,d,p,l,i);g&&(s&&Nn(g,e),c?.(g,{headers:Rr(f.xhr.__sentry_xhr_v3__?.request_headers)}))})}var Xi=300;function Nn(e,t){const{url:n}=y(e).data;
12if(!n||typeof n!="string")return;let r=()=>{setTimeout(a)};if(ae(t)){const s=e.end.bind(e);e.end=o=>{const c=o??M();let i=!1;const u=()=>{i||(i=!0,setTimeout(a),s(c),clearTimeout(d))};r=u;const d=setTimeout(u,Xi)}}const a=ve("resource",({entries:s})=>{s.forEach(o=>{Yi(o)&&o.name.endsWith(n)&&(e.setAttributes(br(o)),r())})})}function Ki(e,t){const n=pt();if(n){let r,a;try{r=new URL(e,n),a=new URL(n).origin}catch{return!1}const s=r.origin===a;return t?et(r.toString(),t)||s&&et(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?et(e,t):r}}function Qi(e,t,n,r,a,s){const o=e.xhr,c=o?.[ke];if(!o||o.__sentry_own_request__||!c)return;const{url:i,method:u}=c,d=Q()&&t(i);if(e.endTimestamp){const ee=o.__sentry_xhr_span_id__;if(!ee)return;const te=r[ee];te&&(d&&c.status_code!==void 0&&(Wn(te,c.status_code),te.end(),s?.(te,{headers:Rr(zi(o)),error:e.error})),delete r[ee]);return}const p=Ir(i),l=dt(p||i),f=p?K(p):void 0,g=K(es(i)),_=x(),L=!!q(),S=L||!!_&&ae(_),z=d&&S?ce({name:`${u} ${g}`,attributes:{url:V(K(i)),type:"xhr","http.method":u,"http.url":V(f),[_t]:V(f),"server.address":l?.host,[w]:"auto.http.browser",[re]:"http.client",...l?.search&&{"http.query":ar(l?.search)},...l?.hash&&{"http.fragment":l?.hash}}}):new le,fe=Jn(z)&&L?void 0:z;return d&&!S&&_?.recordDroppedEvent("no_parent_span","span"),o.__sentry_xhr_span_id__=z.spanContext().spanId,r[o.__sentry_xhr_span_id__]=z,n(i)&&Zi(o,Q()&&S?fe:void 0,a),_&&_.emit("beforeOutgoingRequestSpan",z,e),z}function Zi(e,t,n){const{"sentry-trace":r,baggage:a,traceparent:s}=ir({span:t,propagateTraceparent:n});r&&eo(e,r,a,s)}function eo(e,t,n,r){const a=e.__sentry_xhr_v3__?.request_headers;if(!(a?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!a?.traceparent&&e.setRequestHeader("traceparent",r),n){const s=a?.baggage;(!s||!Vi(s))&&e.setRequestHeader("baggage",n)}}catch{}}var An=new WeakMap,Pn=new WeakMap,to=9e4,no=["text/event-stream","application/x-ndjson","application/stream+json"],ro=qn(()=>({name:"FetchStreamPerformance",setup(){fs(e=>{if(e.response){const t=An.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);const n=Pn.get(e.response);n&&clearTimeout(n)}}}),or(e=>{if(e.endTimestamp&&e.response){const t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!no.some(c=>t.startsWith(c)))return;const n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",a=ut(n),s=ce({name:`${r} ${n.startsWith("data:")?K(n):a?sr(a):n}`,startTime:e.endTimestamp,attributes:{url:V(K(n)),"http.method":r,type:"fetch",[re]:"http.client.stream",[w]:"auto.http.browser.stream"}});An.set(e.response,s);const o=setTimeout(()=>{s.isRecording()&&s.end()},to);Pn.set(e.response,o)}})}})),ao="WebVitals",so=qn((e={})=>{const t=new Set(e.ignore??[]);return{name:ao,setup(n){const r=ae(n),{enableStandaloneClsSpans:a,enableStandaloneLcpSpans:s}=e._experiments??{},o=r||t.has("cls")?void 0:a||!1,c=r||t.has("lcp")?void 0:s||!1,i=si({recordClsStandaloneSpans:o,recordLcpStandaloneSpans:c,client:n}),u=new WeakSet;n.on("afterStartPageLoadSpan",d=>{u.add(d)}),n.on("spanEnd",d=>{u.delete(d)&&(i(),mi(d,{recordClsOnPageloadSpan:o===!1,recordLcpOnPageloadSpan:c===!1,spanStreamingEnabled:r}))}),r?(t.has("lcp")||Li(n),t.has("cls")||Oi(n),t.has("inp")||Mi()):t.has("inp")||wi()},afterAllSetup(){t.has("inp")||Ci()}}});function io(){H.document?H.document.addEventListener("visibilitychange",()=>{const e=q();if(!e)return;const t=$(e);if(H.document.hidden&&t){const n="cancelled",{op:r,status:a}=y(t);ne&&m.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),a||t.setStatus({code:2,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):ne&&m.warn("[Tracing] Could not set up background tab detection due to lack of global document")}var Nr="sentry_previous_trace",oo="sentry.previous_trace";function co(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let a=r?lo():void 0;e.on("spanStart",o=>{if($(o)!==o)return;const c=R().getPropagationContext();a=uo(a,o,c),r&&po(a)});let s=!0;n&&e.on("beforeSampling",o=>{if(!a)return;const c=R(),i=c.getPropagationContext();if(s&&i.parentSpanId){s=!1;return}c.setPropagationContext({...i,dsc:{...i.dsc,sample_rate:String(a.sampleRate),sampled:String(Dt(a.spanContext))},sampleRand:a.sampleRand}),o.parentSampled=Dt(a.spanContext),o.parentSampleRate=a.sampleRate,o.spanAttributes={...o.spanAttributes,[Vr]:a.sampleRate}})}function uo(e,t,n){const r=y(t);function a(){try{const c=Number(r.data?.["sentry.sample_rate"]??n.dsc?.sample_rate);return Number.isNaN(c)?0:c}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:a(),sampleRand:n.sampleRand};if(!e)return s;const o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(ne&&m.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Jr]:"previous_trace"}}),t.setAttribute(oo,`${o.traceId}-${o.spanId}-${Dt(o)?1:0}`)),s)}function po(e){try{H.sessionStorage.setItem(Nr,JSON.stringify(e))}catch(t){ne&&m.warn("Could not store previous trace in sessionStorage",t)}}function lo(){try{const e=H.sessionStorage?.getItem(Nr);return JSON.parse(e)}catch{return}}function Dt(e){return e.traceFlags===1}var fo="BrowserTracing",mo=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function go(){const e=H.navigator;return e?.userAgent?mo.test(e.userAgent):!1}var ho={...at,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
12dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...wr},Cn=((e={})=>{"enableElementTiming"in e&&Yr(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=H.document,{enableInp:r,enableLongTask:a,enableLongAnimationFrame:s,_experiments:{enableInteractions:o,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:i},beforeStartSpan:u,idleTimeout:d,finalTimeout:p,childSpanTimeout:l,markBackgroundSpan:f,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:L,shouldCreateSpanForRequest:S,enableHTTPTimings:z,ignoreResourceSpans:fe,ignorePerformanceApiSpans:ee,instrumentPageLoad:te,instrumentNavigation:Et,detectRedirects:Je,linkPreviousTrace:we,consistentTraceSampling:T,enableReportPageLoaded:W,onRequestSpanStart:Ne,onRequestSpanEnd:me}={...ho,...e},ue=go();let G,N;function de(v,k,E=!0,O){const I=k.op==="pageload",Y=k.name,F=u?u(k):k,Ae=ut(O||pt()),bt={...Ae?.pathname&&{"url.path":Ae.pathname},...Ae&&!Kt(Ae)&&{"url.full":V(Ae.href)},...F.attributes};if(Y!==F.name&&(bt[J]="custom"),F.attributes=bt,!E){const Ce=xn();ce({...F,startTime:Ce}).end(Ce);return}t.name=F.name,t.source=bt[J];const Pe=Xn(F,{idleTimeout:d,finalTimeout:p,childSpanTimeout:l,disableAutoFinish:I,beforeSpanEnd:Ce=>{fi(Ce,{ignoreResourceSpans:fe,ignorePerformanceApiSpans:ee,spanStreamingEnabled:ae(v)}),On(v,void 0);const an=R(),Cr=an.getPropagationContext();an.setPropagationContext({...Cr,traceId:Pe.spanContext().traceId,sampled:gt(Pe),dsc:Ue(Ce)}),I&&(N=void 0)},trimIdleSpanEndTimestamp:!W});I&&W&&(N=Pe),On(v,Pe);function It(){n&&["interactive","complete"].includes(n.readyState)&&(v.emit("idleSpanEnableAutoFinish",Pe),n.removeEventListener("readystatechange",It))}I&&!W&&n&&(n.addEventListener("readystatechange",It),It())}return{name:fo,setup(v){if(ue){ne&&m.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(ma(),s&&P.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?oi():a&&ii(),o&&ci(),Je&&n){const E=()=>{G=M()};addEventListener("click",E,{capture:!0}),addEventListener("keydown",E,{capture:!0,passive:!0})}function k(){const E=De(v);E&&!y(E).timestamp&&(ne&&m.log(`[Tracing] Finishing current active span with op: ${y(E).op}`),E.setAttribute(ct,"cancelled"),E.end())}v.on("startNavigationSpan",(E,O)=>{if(x()!==v)return;if(O?.isRedirect){ne&&m.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),de(v,{op:"navigation.redirect",...E},!1,O.url);return}G=void 0,k();const I=R();I.setPropagationContext({traceId:Fn(),sampleRand:Math.random(),propagationSpanId:Q()?void 0:Ht()}),I.setSDKProcessingMetadata({normalizedRequest:void 0}),de(v,{op:"navigation",...E,parentSpan:null,forceTransaction:!0},!0,O?.url)}),v.on("startPageLoadSpan",(E,O={})=>{if(x()!==v)return;k();const I=zr(O.sentryTrace||Ln("sentry-trace")||kn("sentry-trace"),O.baggage||Ln("baggage")||kn("baggage")),Y=R();Y.setPropagationContext(I),Q()||(Y.getPropagationContext().propagationSpanId=Ht()),Y.setSDKProcessingMetadata({normalizedRequest:dr()}),de(v,{op:"pageload",...E})}),v.on("endPageloadSpan",()=>{W&&N&&(N.setAttribute(ct,"reportPageLoaded"),N.end())})},afterAllSetup(v){if(ue)return;v.addIntegration&&!v.getIntegrationByName?.("WebVitals")&&v.addIntegration(so({ignore:r?[]:["inp"],_experiments:{enableStandaloneClsSpans:c,enableStandaloneLcpSpans:i}}));let k=pt();if(we!=="off"&&co(v,{linkPreviousTrace:we,consistentTraceSampling:T}),H.location){if(te){const E=C();_o(v,{name:H.location.pathname,startTime:E?E/1e3:void 0,attributes:{[J]:"url",[w]:"auto.pageload.browser"}})}Et&&Fi(({to:E,from:O})=>{if(O===void 0&&k?.indexOf(E)!==-1){k=void 0;return}k=void 0;const I=ut(E),Y=De(v),F=Y&&Je&&vo(Y,G);Ar(v,{name:I?.pathname||H.location.pathname,attributes:{[J]:"url",[w]:"auto.navigation.browser"}},{url:E,isRedirect:F})})}f&&io(),o&&So(v,d,p,l,t),Ji(v,{traceFetch:g,traceXHR:_,tracePropagationTargets:v.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:S,enableHTTPTimings:z,onRequestSpanStart:Ne,onRequestSpanEnd:me}),L&&v.addIntegration(ro())}}});function _o(e,t,n){e.emit("startPageLoadSpan",t,n),R().setTransactionName(t.name);const r=De(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Ar(e,t,n){const{url:r,isRedirect:a}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a,url:r}),e.emit("startNavigationSpan",t,{isRedirect:a,url:r});const s=R();return s.setTransactionName(t.name),r&&!a&&s.setSDKProcessingMetadata({normalizedRequest:{...dr(),url:r}}),De(e)}function Ln(e){return H.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function kn(e){return H.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(t=>t.name===e)?.description}function So(e,t,n,r,a){const s=H.document;let o;const c=()=>{const i="ui.action.click",u=De(e);if(u){const d=y(u).op;
12if(["navigation","pageload"].includes(d)){ne&&m.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`);return}}if(o&&(o.setAttribute(ct,"interactionInterrupted"),o.end(),o=void 0),!a.name){ne&&m.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`);return}o=Xn({name:a.name,op:i,attributes:{[J]:a.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",c,{capture:!0})}var Pr="_sentry_idleSpan";function De(e){return e[Pr]}function On(e,t){ot(e,Pr,t)}var Hn=1.5;function vo(e,t){const n=y(e),r=xn();return!(r-n.start_timestamp>Hn||t&&r-t<=Hn)}function To(e,t,n){let r=!1;const a="mode"in e;e.onError(s=>jn(s,{mechanism:{handled:!1}})),e.beforeEach((s,o,...c)=>{const i=r?void 0:yo(),u={};for(const l of Object.keys(s.params))u[`${za}.${l}`]=s.params[l],u[`${ja}.${l}`]=s.params[l];for(const l of Object.keys(s.query)){const f=s.query[l];f&&(u[`query.${l}`]=f)}let d=s.path,p="url";if(s.name&&t.routeLabel!=="path")d=s.name.toString(),p="custom";else if(s.matched.length>0){const l=s.matched.length-1;d=s.matched[l].path,p="route"}if(p==="route"&&(u[Ga]=d),s.name&&(u[Wa]=s.name.toString()),R().setTransactionName(d),t.instrumentPageLoad&&i&&(y(i).data["sentry.source"]!=="custom"&&(i.updateName(d),i.setAttribute(J,p)),i.setAttributes({...u,[w]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!i&&n({name:d,op:"navigation",attributes:{...u,[w]:"auto.navigation.vue",[J]:p}},Gi(s.fullPath??s.path)),a){const l=c[0];typeof l=="function"&&l()}})}function yo(){const e=q(),t=e&&$(e);if(t)return y(t).op==="pageload"?t:void 0}function qo(e={}){if(!e.router)return Cn(e);const t=Cn({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:a=!0,routeLabel:s="name"}=e;return{...t,afterAllSetup(o){t.afterAllSetup(o),To(n,{routeLabel:s,instrumentNavigation:r,instrumentPageLoad:a},(i,u)=>{Ar(o,i,{url:u})})}}}export{Sa as $,dt as A,ko as B,pt as C,$o as D,ls as E,Mo as F,Co as G,Lo as H,xo as I,No as J,Po as K,Ja as L,V as M,Fo as N,Kt as O,er as P,Ao as Q,Ho as R,Ss as S,bn as T,ce as U,_t as V,ae as W,Ea as X,Yt as Y,Ro as Z,Z as _,zi as a,la as at,Do as b,Ui as c,Ee as ct,en as d,Gn as et,Tr as f,h as g,gr as h,Bo as i,Vt as it,K as j,ut as k,Fi as l,X as lt,ve as m,ne as n,_a as nt,ji as o,da as ot,tn as p,Io as q,Uo as r,bo as rt,ke as s,ye as st,qo as t,wo as tt,D as u,H as v,or as w,Ts as x,dr as y,Oo as z};

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.