PageSourceSearch

https://www.wovar.nl/assets/performance-BlwW51cR.js

js wovar.nl collected 2026-09-28 06:46:54 UTC 55,449 bytes, 4 lines download raw bytes

1import{r as Nt}from"./components-DnchwV6p.js";import{G as W,h as D,i as x,D as C,e as h,F as Re,H as De,I as je,J as be,T as Xt,m as de,A as Kt,j as E,K as Cn,L as Xe,M as Pe,N as ke,C as U,O as y,P as X,Q as Ln,R as Ee,S as G,U as Mn,V as On,W as ge,X as Hn,Y as xn,Z as Dn,g as M,_ as wt,l as N,$ as Fe,a0 as Pt,a1 as Fn,a2 as J,p as Qt,a3 as mt,a4 as $e,a as Zt,a5 as en,a6 as $n,a7 as tn,a8 as nn,a9 as an,aa as Bn,ab as gt,ac as ye,ad as Un,ae as qn,af as Gn,ag as Wn,ah as jn,ai as zn,aj as Yn,ak as Jn,al as Vn,am as Xn,an as Kn,ao as _t,ap as rn,aq as Qn,ar as Zn,f as ea,as as ta,b as ze,r as ht,at as na,au as aa,av as ra,aw as sa,v as ia,t as O,k as F,ax as oa,x as Be,ay as kt,az as sn,aA as ca,aB as ua,c as da,aC as pa,d as on}from"./exports-DtI854OP.js";import{a as Ke,m as Qe,t as me,n as St,q as cn,o as fa,r as la,u as ue,p as un,v as ma,i as ga,w as _a,x as Ct,W as K,f as Tt,D as _e,e as bt,d as Ae,y as ha,z as Sa,A as Ta,B as dn,C as Ye,g as pn,c as ba,E as Ea,F as Ia,S as va,l as Ra,G as ya,h as Aa,H as Na}from"./networkUtils-CyAYAL7w.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:"99f1f37daa57ff822cb85b50dd6ead78faae7cfb"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(n){for(var a=1;a<arguments.length;a++){var r=arguments[a];if(r!=null)for(var s in r)r.hasOwnProperty(s)&&(n[s]=r[s])}return n}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:wovar-webshop":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e6828ba1-8c15-4d3e-8915-c398c95d2c38",e._sentryDebugIdIdentifier="sentry-dbid-e6828ba1-8c15-4d3e-8915-c398c95d2c38")}catch{}})();let st=null;function wa(e){const t="error";Ke(t,e),Qe(t,Pa)}function Pa(){st=W.onerror,W.onerror=function(e,t,n,a,r){return me("error",{column:a,error:r,line:n,msg:e,url:t}),st?st.apply(this,arguments):!1},W.onerror.__SENTRY_INSTRUMENTED__=!0}let it=null;function ka(e){const t="unhandledrejection";Ke(t,e),Qe(t,Ca)}function Ca(){it=W.onunhandledrejection,W.onunhandledrejection=function(e){return me("unhandledrejection",e),it?it.apply(this,arguments):!0},W.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let Lt=!1;function La(){if(Lt)return;function e(){const t=D(),n=t&&x(t);if(n){const a="internal_error";C&&h.log(`[Tracing] Root span: ${a} -> Global error occurred`),n.setStatus({code:Re,message:a})}}e.tag="sentry_tracingErrorCallback",Lt=!0,wa(e),ka(e)}function Mt(e){h.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Et(e,t){if(!(t!=null&&t.length))return!1;for(const n of t){if(Oa(n)){if(e.description&&De(e.description,n))return C&&Mt(e),!0;continue}const a=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!a)continue;const r=n.name?e.description&&De(e.description,n.name):!0,s=n.op?e.op&&De(e.op,n.op):!0,i=n.attributes?Object.entries(n.attributes).every(([c,o])=>{var u;return Ma((u=e.attributes)==null?void 0:u[c],o)}):!0;if(r&&s&&i)return C&&Mt(e),!0}return!1}function Ma(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?De(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e===t}function Ms(e,t){const n=t.parent_span_id,a=t.span_id;if(n)for(const r of e)r.parent_span_id===a&&(r.parent_span_id=n)}function Oa(e){return typeof e=="string"||e instanceof RegExp}class V{constructor(t={}){this._traceId=t.traceId||je(),this._spanId=t.spanId||be(),this.dropReason=t.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Xt}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,a){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Ha(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}function xa(e,t){var a,r,s,i;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((a=e.sdk)==null?void 0:a.integrations)||[],...t.integrations||[]],packages:[...((r=e.sdk)==null?void 0:r.packages)||[],...t.packages||[]],settings:(s=e.sdk)!=null&&s.settings||t.settings?{...(i=e.sdk)==null?void 0:i.settings,...t.settings}:void 0},e}function Os(e,t,n,a){const r=cn(n),s={sent_at:new Date().toISOString(),...r&&{sdk:r},...!!a&&t&&{dsn:Kt(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return St(s,[i])}function Hs(e,t,n,a){const r=cn(n),s=e.type&&e.type!=="replay_event"?e.type:"event";xa(e,n==null?void 0:n.sdk);const i=fa(e,r,a,t);return delete e.sdkProcessingMetadata,St(i,[[{type:s},e]])}function Da(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const a=de(e[0]),r=t==null?void 0:t.getDsn(),s=t==null?void 0:t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(a)&&{trace:a},...!!s&&r&&{dsn:Kt(r)}},{beforeSendSpan:c,ignoreSpans:o}=(t==null?void 0:t.getOptions())||{},u=o!=null&&o.length?e.filter(f=>{const d=E(f);return!Et({description:d.description,op:d.op,attributes:d.data},o)}):e,p=e.length-u.length;p&&(t==null||t.recordDroppedEvent("before_send","span",p));const m=c?f=>{const d=E(f),g=Ha(c)?d:c(d);return g||(Cn(),d)}:E,l=[];for(const f of u){const d=m(f);d&&l.push(la(d))}return St(i,l)}function Fa(e){if(!C)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:a}=E(e),{spanId:r}=e.spanContext(),s=Xe(e),i=x(e),c=i===e,o=`[Tracing] Starting ${s?"sampled":"unsampled"} ${c?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${r}`];if(a&&u.push(`parent ID: ${a}`),!c){const{op:p,description:m}=E(i);u.push(`root ID: ${i.spanContext().spanId}`),p&&u.push(`root op: ${p}`),m&&u.push(`root description: ${m}`)}h.log(`${o}
2  ${u.join(`
3  `)}`)}function $a(e){if(!C)return;const{description:t="< unknown name >",op:n="< unknown op >"}=E(e),{spanId:a}=e.spanContext(),s=x(e)===e,i=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${a}`;h.log(i)}function Ba(e,t,n,a=D()){const r=a&&x(a);r&&(C&&h.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),r.addEvent(e,{[Pe]:t,[ke]:n}))}function Ot(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const a=n.attributes||{},r=a[ke],s=a[Pe];typeof r=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:r})}),t}function ne(e){return e.getOptions().traceLifecycle==="stream"}const Ht=1e3;class Ze{constructor(t={}){this._traceId=t.traceId||je(),this._spanId=t.spanId||be(),this._startTime=t.startTimestamp||U(),this._links=t.links,this._attributes={},this.setAttributes({[y]:"manual",[X]: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()}
3addLink(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:a}=this;return{spanId:t,traceId:n,traceFlags:a?Ln:Xt}}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=Ee(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(G,"custom"),this}end(t){this._endTime||(this._endTime=Ee(t),$a(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[X],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Mn(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[y],profile_id:this._attributes[On],exclusive_time:this._attributes[ge],measurements:Ot(this._events),is_segment:this._isStandaloneSpan&&x(this)===this||void 0,segment_id:this._isStandaloneSpan?x(this).spanContext().spanId:void 0,links:Hn(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===x(this),status:xn(this._status),attributes:this._attributes,links:Dn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,a){C&&h.log("[Tracing] Adding an event to span:",t);const r=xt(n)?n:a||U(),s=xt(n)?{}:n||{},i={name:t,time:Ee(r),attributes:s};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=M();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===x(this)))return;if(this._isStandaloneSpan){this._sampled?qa(Da([this],t)):(C&&h.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}else if(t&&ne(t)){t.emit("afterSegmentSpanEnd",this);return}const a=this._convertSpanToTransaction();a&&(wt(this).scope||N()).captureEvent(a)}_convertSpanToTransaction(){var m;if(!Dt(E(this)))return;this._name||(C&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=wt(this),a=(m=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:m.normalizedRequest;if(this._sampled!==!0)return;const s=Fe(this).filter(l=>l!==this&&!Ua(l)).map(l=>E(l)).filter(Dt),i=this._attributes[G];delete this._attributes[Pt];let c=!1;s.forEach(l=>{var f;delete l.data[Pt],(f=l.op)!=null&&f.startsWith("gen_ai.")&&(c=!0)});const o={contexts:{trace:Fn(this)},spans:s.length>Ht?s.sort((l,f)=>l.start_timestamp-f.start_timestamp).slice(0,Ht):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:de(this),hasGenAiSpans:c},request:a,...i&&{transaction_info:{source:i}}},u=Ot(this._events);return u&&Object.keys(u).length&&(C&&h.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),o.measurements=u),o}}function xt(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Dt(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Ua(e){return e instanceof Ze&&e.isStandaloneSpan()}function qa(e){const t=M();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function Ga(e,t,n){if(!J(e))return[!1];let a,r;typeof e.tracesSampler=="function"?(r=e.tracesSampler({...t,inheritOrSampleWith:c=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):c}),a=!0):t.parentSampled!==void 0?r=t.parentSampled:typeof e.tracesSampleRate<"u"&&(r=e.tracesSampleRate,a=!0);const s=Qt(r);if(s===void 0)return C&&h.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(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!s)return C&&h.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,a];const i=n<s;return i||C&&h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[i,s,a]}const Wa="__SENTRY_SUPPRESS_TRACING__";function pe(e){const t=ln();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=za(e),{forceTransaction:a,parentSpan:r}=e;return(e.scope?i=>mt(e.scope,i):r!==void 0?i=>fn(r,i):i=>i())(()=>{const i=N(),c=Ja(i,r),o=M();return e.onlyIfParent&&!c?(o==null||o.recordDroppedEvent("no_parent_span","span"),new V):ja({parentSpan:c,spanArguments:n,forceTransaction:a,scope:i})})}function fn(e,t){const n=ln();return n.withActiveSpan?n.withActiveSpan(e,t):mt(a=>(gt(a,e||void 0),t(a)))}function ja({parentSpan:e,spanArguments:t,forceTransaction:n,scope:a}){if(!J()){const c=new V;if(n||!e){const o={sampled:"false",sample_rate:"0",transaction:t.name,...de(c)};
3$e(c,o)}return c}const r=M();if(Va(r,t))return It(a)||r==null||r.recordDroppedEvent("ignored","span"),new V({dropReason:"ignored",traceId:(e==null?void 0:e.spanContext().traceId)??a.getPropagationContext().traceId});const s=Zt();let i;if(e&&!n)i=Ya(e,a,t),en(e,i);else if(e){const c=de(e),{traceId:o,spanId:u}=e.spanContext(),p=Xe(e);i=Ft({traceId:o,parentSpanId:u,...t},a,p),$e(i,c)}else{const{traceId:c,dsc:o,parentSpanId:u,sampled:p}={...s.getPropagationContext(),...a.getPropagationContext()};i=Ft({traceId:c,parentSpanId:u,...t},a,p),o&&$e(i,o)}return Fa(i),$n(i,a,s),i}function za(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const a={...n};return a.startTimestamp=Ee(e.startTime),delete a.startTime,a}return n}function ln(){const e=tn();return nn(e)}function Ft(e,t,n){var g;const a=M(),r=(a==null?void 0:a.getOptions())||{},{name:s=""}=e,i={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};a==null||a.emit("beforeSampling",i,{decision:!1});const c=i.parentSampled??n,o=i.spanAttributes,u=t.getPropagationContext(),p=It(t),[m,l,f]=p?[!1]:Ga(r,{name:s,parentSampled:c,attributes:o,parentSampleRate:Qt((g=u.dsc)==null?void 0:g.sample_rate)},u.sampleRand),d=new Ze({...e,attributes:{[G]:"custom",[an]:l!==void 0&&f?l:void 0,...o},sampled:m});return!m&&a&&!p&&(C&&h.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate",ne(a)?"span":"transaction")),a&&a.emit("spanStart",d),d}function Ya(e,t,n){const{spanId:a,traceId:r}=e.spanContext(),s=It(t),i=s?!1:Xe(e),c=i?new Ze({...n,parentSpanId:a,traceId:r,sampled:i}):new V({traceId:r});en(e,c);const o=M();return o&&(ne(o)&&c instanceof V&&(e instanceof V&&e.dropReason?(c.dropReason=e.dropReason,o.recordDroppedEvent(e.dropReason,"span")):s||(c.dropReason="sample_rate",o.recordDroppedEvent("sample_rate","span"))),o.emit("spanStart",c),n.endTimestamp&&(o.emit("spanEnd",c),o.emit("afterSpanEnd",c))),c}function Ja(e,t){if(t)return t;if(t===null)return;const n=Bn(e);if(!n)return;const a=M();return(a?a.getOptions():{}).parentSpanIsAlwaysRootSpan?x(n):n}function Va(e,t){var a;const n=e==null?void 0:e.getOptions().ignoreSpans;return!e||!ne(e)||!(n!=null&&n.length)?!1:Et({description:t.name||"",op:((a=t.attributes)==null?void 0:a[X])||t.op,attributes:t.attributes},n)}function It(e){return e.getScopeData().sdkProcessingMetadata[Wa]===!0}const Ue={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Xa="heartbeatFailed",Ka="idleTimeout",Qa="finalTimeout",Za="externalFinish";function mn(e,t={}){const n=new Map;let a=!1,r,s=Za,i=!t.disableAutoFinish;const c=[],{idleTimeout:o=Ue.idleTimeout,finalTimeout:u=Ue.finalTimeout,childSpanTimeout:p=Ue.childSpanTimeout,beforeSpanEnd:m,trimIdleSpanEndTimestamp:l=!0}=t,f=M();if(!f||!J()){const T=new V,P={sample_rate:"0",sampled:"false",...de(T)};return $e(T,P),T}const d=N(),g=D(),_=er(e);_.end=new Proxy(_.end,{apply(T,P,he){if(m&&m(_),P instanceof V)return;const[se,...ie]=he,Se=se||U(),j=Ee(Se),v=Fe(_).filter(R=>R!==_),oe=E(_);if(!v.length||!l)return Me(j),Reflect.apply(T,P,[j,...ie]);const z=f.getOptions().ignoreSpans,ae=v==null?void 0:v.reduce((R,$)=>{const b=E($);return!b.timestamp||z&&Et({description:b.description,op:b.op,attributes:b.data},z)?R:R?Math.max(R,b.timestamp):b.timestamp},void 0),S=oe.start_timestamp,A=Math.min(S?S+u/1e3:1/0,Math.max(S||-1/0,Math.min(j,ae||1/0)));return Me(A),Reflect.apply(T,P,[A,...ie])}});function w(){r&&(clearTimeout(r),r=void 0)}function Q(T){w(),r=setTimeout(()=>{!a&&n.size===0&&i&&(s=Ka,_.end(T))},o)}function Z(T){r=setTimeout(()=>{!a&&i&&(s=Xa,_.end(T))},p)}function nt(T){w(),n.set(T,!0);const P=U();Z(P+p/1e3)}function at(T){if(n.has(T)&&n.delete(T),n.size===0){const P=U();Q(P+o/1e3)}}function Me(T){a=!0,n.clear(),c.forEach(v=>v()),gt(d,g);const P=E(_),{start_timestamp:he}=P;if(!he)return;P.data[ye]||_.setAttribute(ye,s);const ie=P.status;(!ie||ie==="unknown")&&_.setStatus({code:Un}),h.log(`[Tracing] Idle span "${P.op}" finished`);const Se=Fe(_).filter(v=>v!==_);let j=0;Se.forEach(v=>{v.isRecording()&&(v.setStatus({code:Re,message:"cancelled"}),v.end(T),C&&h.log("[Tracing] Cancelling span since span ended early",JSON.stringify(v,void 0,2)));const oe=E(v),{timestamp:z=0,start_timestamp:ae=0}=oe,S=ae<=T,A=(u+o)/1e3,R=z-ae<=A;if(C){const $=JSON.stringify(v,void 0,2);S?R||h.log("[Tracing] Discarding span since it finished after idle span final timeout",$):h.log("[Tracing] Discarding span since it happened after idle span was finished",$)}(!R||!S)&&(qn(_,v),j++)}),j>0&&_.setAttribute("sentry.idle_span_discarded_spans",j)}return c.push(f.on("spanStart",T=>{if(a||T===_||E(T).timestamp||T instanceof Ze&&T.isStandaloneSpan())return;Fe(_).includes(T)&&nt(T.spanContext().spanId)})),c.push(f.on("spanEnd",T=>{a||at(T.spanContext().spanId)})),c.push(f.on("idleSpanEnableAutoFinish",T=>{T===_&&(i=!0,Q(),n.size&&Z())})),t.disableAutoFinish||Q(),setTimeout(()=>{a||(_.setStatus({code:Re,message:"deadline_exceeded"}),s=Qa,_.end())},u),_}function er(e){const t=pe(e);
3return gt(N(),t),C&&h.log("[Tracing] Started span is an idle span"),t}function gn(e={}){const t=e.client||M();if(!Gn()||!t)return{};const n=tn(),a=nn(n);if(a.getTraceData)return a.getTraceData(e);const r=e.scope||N(),s=e.span||D();if(!s&&Wn())return{};const i=s?jn(s):tr(r),c=s?de(s):zn(t,r),o=Yn(c);if(!Jn.test(i))return h.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const p={"sentry-trace":i,baggage:o};return e.propagateTraceparent&&(p.traceparent=s?Vn(s):nr(r)),p}function tr(e){const{traceId:t,sampled:n,propagationSpanId:a}=e.getPropagationContext();return Xn(t,a,n)}function nr(e){const{traceId:t,sampled:n,propagationSpanId:a}=e.getPropagationContext();return Kn(t,a,n)}function ar(e,t,n,a,r){if(!e.fetchData)return;const{method:s,url:i}=e.fetchData,c=J()&&t(i);if(e.endTimestamp){const d=e.fetchData.__span;if(!d)return;const g=a[d];g&&(c&&(ir(g,e),rr(g,e,r)),delete a[d]);return}const{spanOrigin:o="auto.http.browser",propagateTraceparent:u=!1}=typeof r=="object"?r:{spanOrigin:r},p=M(),l=!!D()||!!p&&ne(p),f=c&&l?pe(ur(i,s,o)):new V;if(c&&!l&&(p==null||p.recordDroppedEvent("no_parent_span","span")),e.fetchData.__span=f.spanContext().spanId,a[f.spanContext().spanId]=f,n(e.fetchData.url)){const d=e.args[0],g={...e.args[1]||{}},_=sr(d,g,J()&&l?f:void 0,u);_&&(e.args[1]=g,g.headers=_)}if(p){const d={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",f,d)}return f}function rr(e,t,n){var r;const a=typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0;a==null||a(e,{headers:(r=t.response)==null?void 0:r.headers,error:t.error})}function sr(e,t,n,a){const r=gn({span:n,propagateTraceparent:a}),s=r["sentry-trace"],i=r.baggage,c=r.traceparent;if(!s)return;const o=t.headers||(_t(e)?e.headers:void 0);if(o)if(or(o)){const u=new Headers(o);if(u.get("sentry-trace")||u.set("sentry-trace",s),a&&c&&!u.get("traceparent")&&u.set("traceparent",c),i){const p=u.get("baggage");p?He(p)||u.set("baggage",`${p},${i}`):u.set("baggage",i)}return u}else if(cr(o)){const u=[...o];u.find(m=>m[0]==="sentry-trace")||u.push(["sentry-trace",s]),a&&c&&!u.find(m=>m[0]==="traceparent")&&u.push(["traceparent",c]);const p=o.find(m=>m[0]==="baggage"&&typeof m[1]=="string"&&He(m[1]));return i&&!p&&u.push(["baggage",i]),u}else{const u="sentry-trace"in o?o["sentry-trace"]:void 0,p="traceparent"in o?o.traceparent:void 0,m="baggage"in o?o.baggage:void 0,l=m?Array.isArray(m)?[...m]:[m]:[],f=m&&(Array.isArray(m)?m.find(g=>He(g)):He(m));i&&!f&&l.push(i);const d=Object.assign({},o,{"sentry-trace":u??s,baggage:l.length>0?l.join(","):void 0});return a&&c&&!p&&(d.traceparent=c),d}else return{...r}}function ir(e,t){var n,a;if(t.response){rn(e,t.response.status);const r=(a=(n=t.response)==null?void 0:n.headers)==null?void 0:a.get("content-length");if(r){const s=parseInt(r);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:Re,message:"internal_error"});e.end()}function He(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(Qn))}function or(e){return typeof Headers<"u"&&Zn(e,Headers)}function cr(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}function ur(e,t,n){if(e.startsWith("data:")){const s=ue(e);return{name:`${t} ${s}`,attributes:$t(e,void 0,t,n)}}const a=un(e),r=a?ma(a):e;return{name:`${t} ${r}`,attributes:$t(e,a,t,n)}}function $t(e,t,n,a){const r={url:ue(e),type:"fetch","http.method":n,[y]:a,[X]:"http.client"};return t&&(ga(t)||(r["http.url"]=ue(t.href),r["server.address"]=t.host),t.search&&(r["http.query"]=t.search),t.hash&&(r["http.fragment"]=t.hash)),r}function dr(e,t){const n="fetch",a=Ke(n,e);return Qe(n,()=>_n(void 0,t)),a}function pr(e){const t="fetch-body-resolved",n=Ke(t,e);return Qe(t,()=>_n(lr)),n}function _n(e,t=!1){t&&!_a()||ea(W,"fetch",function(n){return function(...a){const r=new Error,{method:s,url:i}=mr(a),c={args:a,fetchData:{method:s,url:i},startTimestamp:U()*1e3,virtualError:r,headers:gr(a)};return e||me("fetch",{...c}),n.apply(W,a).then(async o=>(e?e(o):me("fetch",{...c,endTimestamp:U()*1e3,response:o}),o),o=>{me("fetch",{...c,endTimestamp:U()*1e3,error:o}),ta(o)&&o.stack===void 0&&(o.stack=r.stack,ze(o,"framesToPop",1));const u=M(),p=(u==null?void 0:u.getOptions().enhanceFetchErrorMessages)??"always";if(p!==!1&&o instanceof TypeError&&(o.message==="Failed to fetch"||o.message==="Load failed"||o.message==="NetworkError when attempting to fetch resource."))try{const f=new URL(c.fetchData.url).host;p==="always"?o.message=`${o.message} (${f})`:ze(o,"__sentry_fetch_url_host__",f)}catch{}throw o})}})}async function fr(e,t){if(e!=null&&e.body){const n=e.body,a=n.getReader(),r
3=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:c}=await a.read();clearTimeout(i),c&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(i)}}clearTimeout(r),a.releaseLock(),n.cancel().then(null,()=>{})}}function lr(e){let t;try{t=e.clone()}catch{return}fr(t,()=>{me("fetch-body-resolved",{endTimestamp:U()*1e3,response:e})})}function qe(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Bt(e){return typeof e=="string"?e:e?qe(e,"url")?e.url:e.toString?e.toString():"":""}function mr(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,a]=e;return{url:Bt(n),method:qe(a,"method")?String(a.method).toUpperCase():_t(n)&&qe(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Bt(t),method:qe(t,"method")?String(t.method).toUpperCase():"GET"}}function gr(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(_t(t))return new Headers(t.headers)}catch{}}const vt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,k=W;let pt=0;function xs(){return pt>0}function _r(){pt++,setTimeout(()=>{pt--})}function hr(e,t={}){function n(r){return typeof r=="function"}if(!n(e))return e;try{const r=e.__sentry_wrapped__;if(r)return typeof r=="function"?r:e;if(na(e))return e}catch{return e}const a=function(...r){try{const s=r.map(i=>hr(i,t));return e.apply(this,s)}catch(s){throw _r(),mt(i=>{i.addEventProcessor(c=>(t.mechanism&&(ra(c,void 0,void 0),sa(c,t.mechanism)),c.extra={...c.extra,arguments:r},c)),ia(s)}),s}};try{for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r])}catch{}aa(a,e),ze(e,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get(){return e.name}})}catch{}return a}function hn(){const e=ht(),{referrer:t}=k.document||{},{userAgent:n}=k.navigator||{},a={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:a}}const Sr=e=>{const t=n=>{var a;(n.type==="pagehide"||((a=K.document)==null?void 0:a.visibilityState)==="hidden")&&e(n)};Ct("visibilitychange",t,{capture:!0,once:!0}),Ct("pagehide",t,{capture:!0,once:!0})};function ot(e){return typeof e=="number"&&isFinite(e)}function re(e,t,n,{...a}){const r=E(e).start_timestamp;return r&&r>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),fn(e,()=>{const s=pe({startTime:t,...a});return s&&s.end(n),s})}function Rt(e){var _;const t=M();if(!t)return;const{name:n,transaction:a,attributes:r,startTime:s}=e,{release:i,environment:c,sendDefaultPii:o}=t.getOptions(),u=t.getIntegrationByName("Replay"),p=u==null?void 0:u.getReplayId(),m=N(),l=m.getUser(),f=l!==void 0?l.email||l.id||l.ip_address:void 0;let d;try{d=m.getScopeData().contexts.profile.profile_id}catch{}const g={release:i,environment:c,user:f||void 0,profile_id:d||void 0,replay_id:p||void 0,transaction:a,"user_agent.original":(_=K.navigator)==null?void 0:_.userAgent,"client.address":o?"{{auto}}":void 0,...r};return pe({name:n,attributes:g,startTime:s,experimental:{standalone:!0}})}function Ce(){return K.addEventListener&&K.performance}function I(e){return e/1e3}function Tr(e){let t="unknown",n="unknown",a="";for(const r of e){if(r==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(r))){t=a==="h"?"http":a,n=e.split(a)[1];break}a+=r}return a===e&&(t=a),{name:t,version:n}}function et(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function tt(e,t){let n,a=!1;function r(c){!a&&n&&t(c,n.spanContext().spanId,n),a=!0}Sr(()=>{r("pagehide")});const s=e.on("beforeStartNavigationSpan",(c,o)=>{o!=null&&o.isRedirect||(r("navigation"),s(),i())}),i=e.on("afterStartPageLoadSpan",c=>{n=c,i()})}function br(e){let t=0,n;if(!et("layout-shift"))return;const a=Tt(({metric:r})=>{const s=r.entries[r.entries.length-1];s&&(t=r.value,n=s)},!0);tt(e,(r,s)=>{Er(t,n,s,r),a()})}function Er(e,t,n,a){var u;_e&&h.log(`Sending CLS span (${e})`);const r=t?I((O()||0)+t.startTime):U(),s=N().getScopeData().transactionName,i=t?F((u=t.sources[0])==null?void 0:u.node):"Layout shift",c={[y]:"auto.http.browser.cls",[X]:"ui.webvital.cls",[ge]:0,"sentry.pageload.span_id":n,"sentry.report_event":a};
3t!=null&&t.sources&&t.sources.forEach((p,m)=>{c[`cls.source.${m+1}`]=F(p.node)});const o=Rt({name:i,transaction:s,attributes:c,startTime:r});o&&(o.addEvent("cls",{[ke]:"",[Pe]:e}),o.end(r))}const Ir=6e4;function Le(e){return e!=null&&e>0&&e<=Ir}function vr(e){let t=0,n;if(!et("largest-contentful-paint"))return;const a=bt(({metric:r})=>{const s=r.entries[r.entries.length-1];!s||!Le(r.value)||(t=r.value,n=s)},!0);tt(e,(r,s)=>{Rr(t,n,s,r),a()})}function Rr(e,t,n,a){if(!Le(e))return;_e&&h.log(`Sending LCP span (${e})`);const r=I((O()||0)+((t==null?void 0:t.startTime)||0)),s=N().getScopeData().transactionName,i=t?F(t.element):"Largest contentful paint",c={[y]:"auto.http.browser.lcp",[X]:"ui.webvital.lcp",[ge]:0,"sentry.pageload.span_id":n,"sentry.report_event":a};t&&(t.element&&(c["lcp.element"]=F(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 o=Rt({name:i,transaction:s,attributes:c,startTime:r});o&&(o.addEvent("lcp",{[ke]:"millisecond",[Pe]:e}),o.end(r))}function q(e){return e&&((O()||performance.timeOrigin)+e)/1e3}function Sn(e){var n;const t={};if(e.nextHopProtocol!=null){const{name:a,version:r}=Tr(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=a}return O()||(n=Ce())!=null&&n.timeOrigin?yr({...t,"http.request.redirect_start":q(e.redirectStart),"http.request.redirect_end":q(e.redirectEnd),"http.request.worker_start":q(e.workerStart),"http.request.fetch_start":q(e.fetchStart),"http.request.domain_lookup_start":q(e.domainLookupStart),"http.request.domain_lookup_end":q(e.domainLookupEnd),"http.request.connect_start":q(e.connectStart),"http.request.secure_connection_start":q(e.secureConnectionStart),"http.request.connection_end":q(e.connectEnd),"http.request.request_start":q(e.requestStart),"http.request.response_start":q(e.responseStart),"http.request.response_end":q(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function yr(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const Ar=2147483647;let Ut=0,H={},B,le;function Nr({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const a=Ce();if(a&&O()){a.mark&&K.performance.mark("sentry-tracing-init");const r=t?vr(n):t===!1?Lr():void 0,s=e?br(n):e===!1?Cr():void 0,i=Mr();return()=>{i(),r==null||r(),s==null||s()}}return()=>{}}function wr(){Ae("longtask",({entries:e})=>{const t=D();if(!t)return;const{op:n,start_timestamp:a}=E(t);for(const r of e){const s=I(O()+r.startTime),i=I(r.duration);n==="navigation"&&a&&s<a||re(t,s,s+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[y]:"auto.ui.browser.metrics"}})}})}function Pr(){new PerformanceObserver(t=>{const n=D();if(n)for(const a of t.getEntries()){if(!a.scripts[0])continue;const r=I(O()+a.startTime),{start_timestamp:s,op:i}=E(n);if(i==="navigation"&&s&&r<s)continue;const c=I(a.duration),o={[y]:"auto.ui.browser.metrics"},u=a.scripts[0],{invoker:p,invokerType:m,sourceURL:l,sourceFunctionName:f,sourceCharPosition:d}=u;o["browser.script.invoker"]=p,o["browser.script.invoker_type"]=m,l&&(o["code.filepath"]=l),f&&(o["code.function"]=f),d!==-1&&(o["browser.script.source_char_position"]=d),re(n,r,r+c,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0})}function kr(){Ae("event",({entries:e})=>{const t=D();if(t){for(const n of e)if(n.name==="click"){const a=I(O()+n.startTime),r=I(n.duration),s={name:F(n.target),op:`ui.interaction.${n.name}`,startTime:a,attributes:{[y]:"auto.ui.browser.metrics"}},i=oa(n.target);i&&(s.attributes["ui.component_name"]=i),re(t,a,a+r,s)}}})}function Cr(){return Tt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(H.cls={value:e.value,unit:""},le=t)},!0)}function Lr(){return bt(({metric:e})=>{const t=e.entries[e.entries.length-1];!t||!Le(e.value)||(H.lcp={value:e.value,unit:"millisecond"},B=t)},!0)}function Mr(){return ha(({metric:e})=>{e.entries[e.entries.length-1]&&(H.ttfb={value:e.value,unit:"millisecond"})})}function Or(e,t){const n=Ce(),a=O();if(!(n!=null&&n.getEntries)||!a)return;const{spanStreamingEnabled:r,ignorePerformanceApiSpans:s,ignoreResourceSpans:i,recordClsOnPageloadSpan:c,recordLcpOnPageloadSpan:o}=t,u=I(a),p=n.getEntries(),{op:m,start_timestamp:l}=E(e);if(p.slice(Ut).forEach(f=>{const d=I(f.startTime),g=I(Math.max(0,f.duration));if(!(m==="navigation"&&l&&u+d<l))switch(f.entryType){case"navigation":{Fr(e,f,u);break}case"mark":case"paint":case"measure":{xr(e,f,d,g,u,s);const _=Sa(),w=f.startTime<_.firstHiddenTime;f.name==="first-paint"&&w&&(H.fp={value:f.startTime,unit:"millisecond"}),f.name==="first-contentful-paint"&&w&&(H.fcp={value:f.startTime,unit:"millisecond"});break}case"resource":{Ur(e,f,f.name,d,g,u,i);break}}}),Ut=Math.max(p.length-1,0),qr(e,r),m==="pageload"){if(jr(H),r){const f=(d,g,_)=>{const w=_??`browser.web_vital.${d}.value`;e.setAttribute(w,g),_e&&h.log("Setting web vital attribute",{[w]:g},"on pageload span")};["ttfb","fp","fcp"].forEach(d=>{H[d]&&f(d,H[d].value)}),H["ttfb.requestTime"]&&f("ttfb.requestTime",H["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}
3else c||delete H.cls,o||delete H.lcp,Object.entries(H).forEach(([f,d])=>{Ba(f,d.value,d.unit)}),Gr(e,t);e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",u),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",Ta())}B=void 0,le=void 0,H={}}function Hr(e){if((e==null?void 0:e.entryType)==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function xr(e,t,n,a,r,s){if(Hr(t)||["mark","measure"].includes(t.entryType)&&Be(t.name,s))return;const i=dn(!1),c=I(i?i.requestStart:0),o=r+Math.max(n,c),u=r+n,p=u+a,m={[y]:"auto.resource.browser.metrics"};o!==u&&(m["sentry.browser.measure_happened_before_request"]=!0,m["sentry.browser.measure_start_time"]=o),Dr(m,t),o<=p&&re(e,o,p,{name:t.name,op:t.entryType,attributes:m})}function Dr(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[a,r]of Object.entries(n))if(r&&kt(r))e[`sentry.browser.measure.detail.${a}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${a}`]=JSON.stringify(r)}catch{}return}if(kt(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Fr(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(a=>{xe(e,t,a,n)}),xe(e,t,"secureConnection",n,"TLS/SSL"),xe(e,t,"fetch",n,"cache"),xe(e,t,"domainLookup",n,"DNS"),Br(e,t,n)}function xe(e,t,n,a,r=n){const s=$r(n),i=t[s],c=t[`${n}Start`];!c||!i||re(e,a+I(c),a+I(i),{op:`browser.${r}`,name:t.name,attributes:{[y]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function $r(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Br(e,t,n){const a=n+I(t.requestStart),r=n+I(t.responseEnd),s=n+I(t.responseStart);t.responseEnd&&(re(e,a,r,{op:"browser.request",name:t.name,attributes:{[y]:"auto.ui.browser.metrics"}}),re(e,s,r,{op:"browser.response",name:t.name,attributes:{[y]:"auto.ui.browser.metrics"}}))}function Ur(e,t,n,a,r,s,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(i!=null&&i.includes(c))return;const o={[y]:"auto.resource.browser.metrics"},u=Ye(n);u.protocol&&(o["url.scheme"]=u.protocol.split(":").pop()),u.host&&(o["server.address"]=u.host),o["url.same_origin"]=n.includes(K.location.origin),Wr(t,o,[["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 p={...o,...Sn(t)},m=s+a,l=m+r;re(e,m,l,{name:n.replace(K.location.origin,""),op:c,attributes:p})}function qr(e,t){const n=K.navigator;if(!n)return;const a=n.connection;a&&(a.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",a.effectiveType),a.type&&e.setAttribute(t?"network.connection.type":"connectionType",a.type),ot(a.rtt)&&(H["connection.rtt"]={value:a.rtt,unit:"millisecond"},t&&e.setAttribute("network.connection.rtt",a.rtt))),ot(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),ot(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function Gr(e,t){B&&t.recordLcpOnPageloadSpan&&(B.element&&e.setAttribute("lcp.element",F(B.element)),B.id&&e.setAttribute("lcp.id",B.id),B.url&&e.setAttribute("lcp.url",B.url.trim().slice(0,200)),B.loadTime!=null&&e.setAttribute("lcp.loadTime",B.loadTime),B.renderTime!=null&&e.setAttribute("lcp.renderTime",B.renderTime),e.setAttribute("lcp.size",B.size)),le!=null&&le.sources&&t.recordClsOnPageloadSpan&&le.sources.forEach((n,a)=>e.setAttribute(`cls.source.${a+1}`,F(n.node)))}function Wr(e,t,n){n.forEach(([a,r])=>{const s=e[a];s!=null&&(typeof s=="number"&&s<Ar||typeof s=="string")&&(t[r]=s)})}function jr(e){const t=dn(!1);if(!t)return;const{responseStart:n,requestStart:a}=t;a<=n&&(e["ttfb.requestTime"]={value:n-a,unit:"millisecond"})}const ct=[],Ie=new Map,fe=new Map,Tn=60;function zr(){if(Ce()&&O()){const t=Yr();return()=>{t()}}return()=>{}}const Ne={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 Yr(){return pn(Jr)}const Jr=({metric:e})=>
3{if(e.value==null)return;const t=I(e.value);if(t>Tn)return;const n=e.entries.find(d=>d.duration===e.value&&Ne[d.name]);if(!n)return;const{interactionId:a}=n,r=Ne[n.name],s=I(O()+n.startTime),i=D(),c=i?x(i):void 0,o=a!=null?Ie.get(a):void 0,u=(o==null?void 0:o.span)||c,p=u?E(u).description:N().getScopeData().transactionName,m=(o==null?void 0:o.elementName)||F(n.target),l={[y]:"auto.http.browser.inp",[X]:`ui.interaction.${r}`,[ge]:n.duration},f=Rt({name:m,transaction:p,attributes:l,startTime:s});f&&(f.addEvent("inp",{[ke]:"millisecond",[Pe]:e.value}),f.end(s+t))};function Vr(e){return e!=null?Ie.get(e):void 0}function Xr(){const e=Object.keys(Ne);ba()&&e.forEach(r=>{K.addEventListener(r,t,{capture:!0,passive:!0})});function t(r){const s=r.target;if(!s)return;const i=F(s),c=Math.round(r.timeStamp);if(fe.set(c,i),fe.size>50){const o=fe.keys().next().value;o!==void 0&&fe.delete(o)}}function n(r){const s=Math.round(r.startTime);let i=fe.get(s);if(!i)for(let c=-5;c<=5;c++){const o=fe.get(s+c);if(o){i=o;break}}return i||"<unknown>"}const a=({entries:r})=>{const s=D(),i=s&&x(s);r.forEach(c=>{if(!Ea(c))return;const o=c.interactionId;if(o==null||Ie.has(o))return;const u=c.target?F(c.target):n(c);if(ct.length>10){const p=ct.shift();Ie.delete(p)}ct.push(o),Ie.set(o,{span:i,elementName:u})})};Ae("event",a),Ae("first-input",a)}function yt(e){var d,g;const{name:t,op:n,origin:a,metricName:r,value:s,attributes:i,parentSpan:c,reportEvent:o,startTime:u,endTime:p}=e,m=N().getScopeData().transactionName,l={[y]:a,[X]:n,[ge]:0,[`browser.web_vital.${r}.value`]:s,"sentry.transaction":m,"user_agent.original":(d=K.navigator)==null?void 0:d.userAgent,...i};c&&((g=sn(c).attributes)==null?void 0:g[X])==="pageload"&&(l["sentry.pageload.span_id"]=c.spanContext().spanId),o&&(l[`browser.web_vital.${r}.report_event`]=o);const f=pe({name:t,attributes:l,startTime:u,parentSpan:c});f&&f.end(p??u)}function Kr(e){let t=0,n;if(!et("largest-contentful-paint"))return;const a=bt(({metric:r})=>{const s=r.entries[r.entries.length-1];!s||!Le(r.value)||(t=r.value,n=s)},!0);tt(e,(r,s,i)=>{Qr(t,n,i,r),a()})}function Qr(e,t,n,a){if(!Le(e))return;_e&&h.log(`Sending LCP span (${e})`);const r=O()||0,s=I(r),i=I(r+((t==null?void 0:t.startTime)||0)),c=t?F(t.element):"Largest contentful paint",o={};t!=null&&t.element&&(o["browser.web_vital.lcp.element"]=F(t.element)),t!=null&&t.id&&(o["browser.web_vital.lcp.id"]=t.id),t!=null&&t.url&&(o["browser.web_vital.lcp.url"]=t.url),(t==null?void 0:t.loadTime)!=null&&(o["browser.web_vital.lcp.load_time"]=t.loadTime),(t==null?void 0:t.renderTime)!=null&&(o["browser.web_vital.lcp.render_time"]=t.renderTime),(t==null?void 0:t.size)!=null&&(o["browser.web_vital.lcp.size"]=t.size),yt({name:c,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:o,parentSpan:n,reportEvent:a,startTime:s,endTime:i})}function Zr(e){let t=0,n;if(!et("layout-shift"))return;const a=Tt(({metric:r})=>{const s=r.entries[r.entries.length-1];s&&(t=r.value,n=s)},!0);tt(e,(r,s,i)=>{es(t,n,i,r),a()})}function es(e,t,n,a){var c;_e&&h.log(`Sending CLS span (${e})`);const r=t?I((O()||0)+t.startTime):U(),s=t?F((c=t.sources[0])==null?void 0:c.node):"Layout shift",i={};t!=null&&t.sources&&t.sources.forEach((o,u)=>{i[`browser.web_vital.cls.source.${u+1}`]=F(o.node)}),yt({name:s,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:i,parentSpan:n,reportEvent:a,startTime:r})}function ts(){if(!Ce()||!O())return;pn(({metric:n})=>{if(n.value==null||I(n.value)>Tn)return;const r=n.entries.find(s=>s.duration===n.value&&Ne[s.name]);r&&ns(n.value,r)})}function ns(e,t){_e&&h.log(`Sending INP span (${e})`);const n=I(O()+t.startTime),a=I(e),r=Ne[t.name],s=Vr(t.interactionId),i=D(),c=i?x(i):void 0,o=(s==null?void 0:s.span)||c,u=o?sn(o).name:N().getScopeData().transactionName,p=(s==null?void 0:s.elementName)||F(t.target);yt({name:p,op:`ui.interaction.${r}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[ge]:t.duration,"sentry.transaction":u},startTime:n,endTime:n+a,parentSpan:o})}const te=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function as(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function bn(e){try{return new URL(e,k.location.origin).href}catch{return}}function rs(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.
3initiatorType==="xmlhttprequest")}function En(e){try{return new Headers(e)}catch{return}}const qt=new WeakMap,ut=new Map,In={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function ss(e,t){const{traceFetch:n,traceXHR:a,trackFetchStreamPerformance:r,shouldCreateSpanForRequest:s,enableHTTPTimings:i,tracePropagationTargets:c,onRequestSpanStart:o,onRequestSpanEnd:u}={...In,...t},p=typeof s=="function"?s:d=>!0,m=d=>os(d,c),l={},f=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(d=>(d.type==="transaction"&&d.spans&&d.spans.forEach(g=>{if(g.op==="http.client"){const _=ut.get(g.span_id);_&&(g.timestamp=_/1e3,ut.delete(g.span_id))}}),d)),r&&pr(d=>{if(d.response){const g=qt.get(d.response);g&&d.endTimestamp&&ut.set(g,d.endTimestamp)}}),dr(d=>{const g=ar(d,p,m,l,{propagateTraceparent:f,onRequestSpanEnd:u});if(d.response&&d.fetchData.__span&&qt.set(d.response,d.fetchData.__span),g){const _=bn(d.fetchData.url),w=_?Ye(_).host:void 0;g.setAttributes({"http.url":_?ue(_):void 0,"server.address":w}),i&&Gt(g,e),o==null||o(g,{headers:d.headers})}})),a&&Ia(d=>{var _;const g=cs(d,p,m,l,f,u);g&&(i&&Gt(g,e),o==null||o(g,{headers:En((_=d.xhr.__sentry_xhr_v3__)==null?void 0:_.request_headers)}))})}const is=300;function Gt(e,t){const{url:n}=E(e).data;if(!n||typeof n!="string")return;let a=()=>void setTimeout(r);if(ne(t)){const s=e.end.bind(e);e.end=i=>{const c=i??U();let o=!1;const u=()=>{o||(o=!0,setTimeout(r),s(c),clearTimeout(p))};a=u;const p=setTimeout(u,is)}}const r=Ae("resource",({entries:s})=>{s.forEach(i=>{rs(i)&&i.name.endsWith(n)&&(e.setAttributes(Sn(i)),a())})})}function os(e,t){const n=ht();if(n){let a,r;try{a=new URL(e,n),r=new URL(n).origin}catch{return!1}const s=a.origin===r;return t?Be(a.toString(),t)||s&&Be(a.pathname,t):s}else{const a=!!e.match(/^\/(?!\/)/);return t?Be(e,t):a}}function cs(e,t,n,a,r,s){const i=e.xhr,c=i==null?void 0:i[va];if(!i||i.__sentry_own_request__||!c)return;const{url:o,method:u}=c,p=J()&&t(o);if(e.endTimestamp){const Q=i.__sentry_xhr_span_id__;if(!Q)return;const Z=a[Q];Z&&(p&&c.status_code!==void 0&&(rn(Z,c.status_code),Z.end(),s==null||s(Z,{headers:En(Ra(i)),error:e.error})),delete a[Q]);return}
3const m=bn(o),l=m?Ye(m):Ye(o),f=ue(ya(o)),d=M(),_=!!D()||!!d&&ne(d),w=p&&_?pe({name:`${u} ${f}`,attributes:{url:ue(o),type:"xhr","http.method":u,"http.url":m?ue(m):void 0,"server.address":l==null?void 0:l.host,[y]:"auto.http.browser",[X]:"http.client",...(l==null?void 0:l.search)&&{"http.query":l==null?void 0:l.search},...(l==null?void 0:l.hash)&&{"http.fragment":l==null?void 0:l.hash}}}):new V;return p&&!_&&(d==null||d.recordDroppedEvent("no_parent_span","span")),i.__sentry_xhr_span_id__=w.spanContext().spanId,a[i.__sentry_xhr_span_id__]=w,n(o)&&us(i,J()&&_?w:void 0,r),d&&d.emit("beforeOutgoingRequestSpan",w,e),w}function us(e,t,n){const{"sentry-trace":a,baggage:r,traceparent:s}=gn({span:t,propagateTraceparent:n});a&&ds(e,a,r,s)}function ds(e,t,n,a){var s;const r=(s=e.__sentry_xhr_v3__)==null?void 0:s.request_headers;if(!(r!=null&&r["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),a&&!(r!=null&&r.traceparent)&&e.setRequestHeader("traceparent",a),n){const i=r==null?void 0:r.baggage;(!i||!as(i))&&e.setRequestHeader("baggage",n)}}catch{}}function ps(){k.document?k.document.addEventListener("visibilitychange",()=>{const e=D();if(!e)return;const t=x(e);if(k.document.hidden&&t){const n="cancelled",{op:a,status:r}=E(t);te&&h.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${a}`),r||t.setStatus({code:Re,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):te&&h.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const fs=3600,vn="sentry_previous_trace",ls="sentry.previous_trace";function ms(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const a=t==="session-storage";let r=a?hs():void 0;e.on("spanStart",i=>{if(x(i)!==i)return;const c=N().getPropagationContext();r=gs(r,i,c),a&&_s(r)});let s=!0;n&&e.on("beforeSampling",i=>{if(!r)return;const c=N(),o=c.getPropagationContext();if(s&&o.parentSpanId){s=!1;return}c.setPropagationContext({...o,dsc:{...o.dsc,sample_rate:String(r.sampleRate),sampled:String(ft(r.spanContext))},sampleRand:r.sampleRand}),i.parentSampled=ft(r.spanContext),i.parentSampleRate=r.sampleRate,i.spanAttributes={...i.spanAttributes,[ca]:r.sampleRate}})}function gs(e,t,n){const a=E(t);function r(){var c,o;try{return Number((c=n.dsc)==null?void 0:c.sample_rate)??Number((o=a.data)==null?void 0:o[an])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:a.start_timestamp,sampleRate:r(),sampleRand:n.sampleRand};if(!e)return s;const i=e.spanContext;return i.traceId===a.trace_id?e:(Date.now()/1e3-e.startTimestamp<=fs&&(te&&h.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:a.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[ua]:"previous_trace"}}),t.setAttribute(ls,`${i.traceId}-${i.spanId}-${ft(i)?1:0}`)),s)}function _s(e){try{k.sessionStorage.setItem(vn,JSON.stringify(e))}catch(t){te&&h.warn("Could not store previous trace in sessionStorage",t)}}function hs(){var e;try{const t=(e=k.sessionStorage)==null?void 0:e.getItem(vn);return JSON.parse(t)}catch{return}}function ft(e){return e.traceFlags===1}const Ss="BrowserTracing",Ts=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function bs(){const e=k.navigator;return e!=null&&e.userAgent?Ts.test(e.userAgent):!1}const Es={...Ue,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...In},Ds=(e={})=>{"enableElementTiming"in e&&da(()=>{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=k.document,{enableInp:a,enableLongTask:r,enableLongAnimationFrame:s,_experiments:{enableInteractions:i,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:o},beforeStartSpan:u,idleTimeout:p,finalTimeout:m,childSpanTimeout:l,markBackgroun
3dSpan:f,traceFetch:d,traceXHR:g,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:w,enableHTTPTimings:Q,ignoreResourceSpans:Z,ignorePerformanceApiSpans:nt,instrumentPageLoad:at,instrumentNavigation:Me,detectRedirects:T,linkPreviousTrace:P,consistentTraceSampling:he,enableReportPageLoaded:se,onRequestSpanStart:ie,onRequestSpanEnd:Se}={...Es,...e},j=bs();let v,oe,z;function ae(S,A,R=!0){const $=A.op==="pageload",b=A.name,L=u?u(A):A,Y=L.attributes||{};if(b!==L.name&&(Y[G]="custom",L.attributes=Y),!R){const ee=on();pe({...L,startTime:ee}).end(ee);return}t.name=L.name,t.source=Y[G];const ce=mn(L,{idleTimeout:p,finalTimeout:m,childSpanTimeout:l,disableAutoFinish:$,beforeSpanEnd:ee=>{v==null||v();const rt=ne(S);Or(ee,{recordClsOnPageloadSpan:!rt&&!c,recordLcpOnPageloadSpan:!rt&&!o,ignoreResourceSpans:Z,ignorePerformanceApiSpans:nt,spanStreamingEnabled:rt}),zt(S,void 0);const At=N(),kn=At.getPropagationContext();At.setPropagationContext({...kn,traceId:ce.spanContext().traceId,sampled:Xe(ce),dsc:de(ee)}),$&&(z=void 0)},trimIdleSpanEndTimestamp:!se});$&&se&&(z=ce),zt(S,ce);function Oe(){n&&["interactive","complete"].includes(n.readyState)&&S.emit("idleSpanEnableAutoFinish",ce)}$&&!se&&n&&(n.addEventListener("readystatechange",()=>{Oe()}),Oe())}return{name:Ss,setup(S){var $;if(j){te&&h.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}La();const A=ne(S);if(v=Nr({recordClsStandaloneSpans:A?void 0:c||!1,recordLcpStandaloneSpans:A?void 0:o||!1,client:S}),A?(Kr(S),Zr(S),a&&ts()):a&&zr(),s&&W.PerformanceObserver&&(($=PerformanceObserver.supportedEntryTypes)!=null&&$.includes("long-animation-frame"))?Pr():r&&wr(),i&&kr(),T&&n){const b=()=>{oe=U()};addEventListener("click",b,{capture:!0}),addEventListener("keydown",b,{capture:!0,passive:!0})}function R(){const b=we(S);b&&!E(b).timestamp&&(te&&h.log(`[Tracing] Finishing current active span with op: ${E(b).op}`),b.setAttribute(ye,"cancelled"),b.end())}S.on("startNavigationSpan",(b,L)=>{if(M()!==S)return;if(L!=null&&L.isRedirect){te&&h.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),ae(S,{op:"navigation.redirect",...b},!1);return}oe=void 0,R(),Zt().setPropagationContext({traceId:je(),sampleRand:Math.random(),propagationSpanId:J()?void 0:be()});const Y=N();Y.setPropagationContext({traceId:je(),sampleRand:Math.random(),propagationSpanId:J()?void 0:be()}),Y.setSDKProcessingMetadata({normalizedRequest:void 0}),ae(S,{op:"navigation",...b,parentSpan:null,forceTransaction:!0})}),S.on("startPageLoadSpan",(b,L={})=>{if(M()!==S)return;R();const Y=L.sentryTrace||Wt("sentry-trace")||jt("sentry-trace"),ce=L.baggage||Wt("baggage")||jt("baggage"),Oe=pa(Y,ce),ee=N();ee.setPropagationContext(Oe),J()||(ee.getPropagationContext().propagationSpanId=be()),ee.setSDKProcessingMetadata({normalizedRequest:hn()}),ae(S,{op:"pageload",...b})}),S.on("endPageloadSpan",()=>{se&&z&&(z.setAttribute(ye,"reportPageLoaded"),z.end())})},afterAllSetup(S){if(j)return;let A=ht();if(P!=="off"&&ms(S,{linkPreviousTrace:P,consistentTraceSampling:he}),k.location){if(at){const R=O();Rn(S,{name:k.location.pathname,startTime:R?R/1e3:void 0,attributes:{[G]:"url",[y]:"auto.pageload.browser"}})}Me&&Aa(({to:R,from:$})=>{if($===void 0&&(A==null?void 0:A.indexOf(R))!==-1){A=void 0;return}A=void 0;const b=un(R),L=we(S),Y=L&&T&&vs(L,oe);yn(S,{name:(b==null?void 0:b.pathname)||k.location.pathname,attributes:{[G]:"url",[y]:"auto.navigation.browser"}},{url:R,isRedirect:Y})})}f&&ps(),i&&Is(S,p,m,l,t),a&&Xr(),ss(S,{traceFetch:d,traceXHR:g,trackFetchStreamPerformance:_,tracePropagationTargets:S.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:w,enableHTTPTimings:Q,onRequestSpanStart:ie,onRequestSpanEnd:Se})}}};function Rn(e,t,n){e.emit("startPageLoadSpan",t,n),N().setTransactionName(t.name);const a=we(e);return a&&e.emit("afterStartPageLoadSpan",a),a}function yn(e,t,n){const{url:a,isRedirect:r}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:r}),e.emit("startNavigationSpan",t,{isRedirect:r});const s=N();return s.setTransactionName(t.name),a&&!r&&s.setSDKProcessingMetadata({normalizedRequest:{...hn(),url:a}}),we(e)}function Wt(e){const t=k.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function jt(e){var a,r,s;const t=(r=(a=k.performance)==null?void 0:a.getEntriesByType)==null?void 0:r.call(a,"navigation")[0],n=(s=t==null?void 0:t.serverTiming)==null?void 0:s.find(i=>i.name===e);return n==null?void 0:n.description}function Is(e,t,n,a,r){const s=k.document;let i;const c=()=>{const o="ui.action.click",u=we(e);if(u){const p=E(u).op;
3if(["navigation","pageload"].includes(p)){te&&h.warn(`[Tracing] Did not create ${o} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(ye,"interactionInterrupted"),i.end(),i=void 0),!r.name){te&&h.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`);return}i=mn({name:r.name,op:o,attributes:{[G]:r.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:a})};s&&addEventListener("click",c,{capture:!0})}const An="_sentry_idleSpan";function we(e){return e[An]}function zt(e,t){ze(e,An,t)}const Yt=1.5;function vs(e,t){const n=E(e),a=on(),r=n.start_timestamp;return!(a-r>Yt||t&&a-t<=Yt)}const Te=W;let dt=null,Jt;const Ge=new Map,We=new Map;function Vt(e){const t=e.split("/").filter(Boolean);let n=0;for(const a of t)a.startsWith(":")&&(a.substring(1).endsWith("*")?n+=100:n+=10);return n}function Rs(e){if(Ge.has(e))return Ge.get(e)??null;try{const t=new RegExp(e);return Ge.set(e,t),t}catch(t){return vt&&h.warn("Could not compile regex",{regexString:e,error:t}),null}}function Nn(){if(!(Te!=null&&Te._sentryRemixRouteManifest)||typeof Te._sentryRemixRouteManifest!="string")return null;const e=Te._sentryRemixRouteManifest;if(dt&&Jt===e)return dt;Ge.clear(),We.clear();let t={staticRoutes:[],dynamicRoutes:[]};try{return t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes)?null:(dt=t,Jt=e,t)}catch{return vt&&h.warn("Could not extract route manifest"),null}}function ys(e,t,n){const a=[];if(t.some(r=>r.path===e))return a;for(const r of n)if(r.regex){const s=Rs(r.regex);s!=null&&s.test(e)&&a.push(r.path)}return a}function As(){return Nn()!==null}const wn=e=>{const t=Nn();if(!t)return;if(We.has(e))return We.get(e);const{staticRoutes:n,dynamicRoutes:a}=t,s=ys(e,n,a).sort((i,c)=>Vt(i)-Vt(c))[0];return We.set(e,s),s};let ve,Je,Ve,lt;function Ns(){if(k.location)return k.location.pathname}function Pn(e,t){const n=e?wn(e):void 0;return n?{name:n,source:"route"}:As()?{name:e||t,source:"url"}:{name:t,source:"route"}}function Fs(e){const t=Ns();if(!t)return;const n=wn(t),a=n||t,r=n?"route":"url",s={name:a,op:"pageload",attributes:{[y]:"auto.pageload.remix",[G]:r}};Rn(e,s)}function ws(e,t){const n=e[e.length-1],a=M();if(!a||!n)return;const{name:r,source:s}=Pn(t.pathname,n.id),i={name:r,op:"navigation",attributes:{[y]:"auto.navigation.remix",[G]:s}};yn(a,i)}function $s(e,t,n,a,r){return i=>{if(Ps({useEffect:t,useLocation:n,useMatches:a,instrumentNavigation:r||!0}),!ve||!Je||!Ve)return vt&&!Na()&&h.warn("Remix SDK was unable to wrap your root because of one or more missing parameters."),Nt.createElement(e,{...i});let c=!1;const o=Je(),u=Ve();return ve(()=>{const p=u==null?void 0:u[u.length-1];if(p){const{name:m,source:l}=Pn(o.pathname,p.id);N().setTransactionName(m);const f=D();if(f){const d=x(f);d&&(d.updateName(m),d.setAttribute(G,l))}}c=!0},[]),ve(()=>{const p=D();if(c){p&&p.end();return}lt&&(u!=null&&u.length)&&(p&&p.end(),ws(u,o))},[o]),c=!1,Nt.createElement(e,{...i})}}function Ps({useEffect:e,useLocation:t,useMatches:n,instrumentNavigation:a}){ve=e||ve,Je=t||Je,Ve=n||Ve,lt=a??lt}export{te as D,k as W,Os as a,dr as b,Hs as c,hr as d,wa as e,xs as f,ka as g,ne as h,Ha as i,hn as j,Ps as k,Ds as l,Fs as m,Ms as r,Et as s,$s as w};
4//# sourceMappingURL=performance-BlwW51cR.js.map

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.