1var It=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ne=It((De,T)=>{const Nt=Object.prototype.toString;function Rt(e,t){return Nt.call(e)===`[object ${t}]`}function nt(e){return Rt(e,"Object")}function F(e){return!!(e&&e.then&&typeof e.then=="function")}function Dt(e){return typeof e=="number"&&e!==e}function D(e){return e&&e.Math==Math?e:void 0}const _=typeof globalThis=="object"&&D(globalThis)||typeof window=="object"&&D(window)||typeof self=="object"&&D(self)||typeof global=="object"&&D(global)||function(){return this}()||{};function st(e,t,n){const s=n||_,i=s.__SENTRY__=s.__SENTRY__||{};return i[e]||(i[e]=t())}const it=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ot="Sentry Logger ",K=["debug","info","warn","error","log","assert","trace"],V={};function rt(e){if(!("console"in _))return e();const t=_.console,n={},s=Object.keys(V);s.forEach(i=>{const r=V[i];n[i]=t[i],t[i]=r});try{return e()}finally{s.forEach(i=>{t[i]=n[i]})}}function vt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return it?K.forEach(n=>{t[n]=(...s)=>{e&&rt(()=>{_.console[n](`${Ot}[${n}]:`,...s)})}}):K.forEach(n=>{t[n]=()=>{}}),t}const u=vt();function g(e){return B(e,new Map)}function B(e,t){if(wt(e)){const n=t.get(e);if(n!==void 0)return n;const s={};t.set(e,s);for(const i of Object.keys(e))typeof e[i]<"u"&&(s[i]=B(e[i],t));return s}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const s=[];return t.set(e,s),e.forEach(i=>{s.push(B(i,t))}),s}return e}function wt(e){if(!nt(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const U="<anonymous>";function At(e){try{return!e||typeof e!="function"?U:e.name||U}catch{return U}}const x={},X={};function at(e,t){x[e]=x[e]||[],x[e].push(t)}function ot(e,t){X[e]||(t(),X[e]=!0)}function ct(e,t){const n=e&&x[e];if(n)for(const s of n)try{s(t)}catch(i){it&&u.error(`Error while triggering instrumentation handler. 2Type: ${e} 3Name: ${At(s)} 4Error:`,i)}}function l(){const e=_,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const s=new Uint8Array(1);return t.getRandomValues(s),s[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,s=>(s^(n()&15)>>s/4).toString(16))}function xt(e){return Array.isArray(e)?e:[e]}let O=null;function kt(e){const t="error";at(t,e),ot(t,Mt)}function Mt(){O=_.onerror,_.onerror=function(e,t,n,s,i){return ct("error",{column:s,error:i,line:n,msg:e,url:t}),O&&!O.__SENTRY_LOADER__?O.apply(this,arguments):!1},_.onerror.__SENTRY_INSTRUMENTED__=!0}let v=null;function Ct(e){const t="unhandledrejection";at(t,e),ot(t,Pt)}function Pt(){v=_.onunhandledrejection,_.onunhandledrejection=function(e){return ct("unhandledrejection",e),v&&!v.__SENTRY_LOADER__?v.apply(this,arguments):!0},_.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Lt(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Ut(){return!Lt()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function b(e,t){return e.require(t)}function Yt(e){let t;try{t=b(T,e)}catch{}try{const{cwd:n}=b(T,"process");t=b(T,`${n()}/node_modules/${e}`)}catch{}return t}var m;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const s=2;e[e.REJECTED=s]="REJECTED"})(m||(m={}));class S{constructor(t){S.prototype.__init.call(this),S.prototype.__init2.call(this),S.prototype.__init3.call(this),S.prototype.__init4.call(this),this._state=m.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new S((s,i)=>{this._handlers.push([!1,r=>{if(!t)s(r);else try{s(t(r))}catch(a){i(a)}},r=>{if(!n)i(r);else try{s(n(r))}catch(a){i(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new S((n,s)=>{let i,r;return this.then(a=>{r=!1,i=a,t&&t()},a=>{r=!0,i=a,t&&t()}).then(()=>{if(r){s(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(m.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(m.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===m.PENDING){if(F(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>
4{if(this._state===m.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===m.RESOLVED&&n[1](this._value),this._state===m.REJECTED&&n[2](this._value),n[0]=!0)})}}}const ut=1e3;function J(){return Date.now()/ut}function Bt(){const{performance:e}=_;if(!e||!e.now)return J;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/ut}const M=Bt();(()=>{const{performance:e}=_;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),s=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-s):t,r=i<t,a=e.timing&&e.timing.navigationStart,c=typeof a=="number"?Math.abs(a+n-s):t,h=c<t;return r||h?i<=c?e.timeOrigin:a:s})();function jt(e=l(),t=l().substring(16),n){let s="";return n!==void 0&&(s=n?"-1":"-0"),`${e}-${t}${s}`}const d=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,dt="production";function $t(){return st("globalEventProcessors",()=>[])}function j(e,t,n,s=0){return new S((i,r)=>{const a=e[s];if(t===null||typeof a!="function")i(t);else{const o=a({...t},n);d&&a.id&&o===null&&u.log(`Event processor "${a.id}" dropped event`),F(o)?o.then(c=>j(e,c,n,s+1).then(i)).then(null,r):j(e,o,n,s+1).then(i).then(null,r)}})}function Ht(e){const t=M(),n={sid:l(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ft(n)};return e&&C(n,e),n}function C(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||M(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:l()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Gt(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),C(e,n)}function Ft(e){return g({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Jt=0,_t=1;function q(e){const{spanId:t,traceId:n}=e.spanContext(),{data:s,op:i,parent_span_id:r,status:a,tags:o,origin:c}=E(e);return g({data:s,op:i,parent_span_id:r,span_id:t,status:a,tags:o,trace_id:n,origin:c})}function ht(e){const{traceId:t,spanId:n}=e.spanContext(),s=pt(e);return jt(t,n,s)}function lt(e){return typeof e=="number"?z(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?z(e.getTime()):M()}function z(e){return e>9999999999?e/1e3:e}function E(e){return qt(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function qt(e){return typeof e.getSpanJSON=="function"}function pt(e){const{traceFlags:t}=e.spanContext();return!!(t&_t)}function ft(){return P().getClient()}function Wt(){return P().getScope()}function k(e){return e.transaction}function Kt(e,t,n){const s=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:r}=n&&n.getUser()||{},a=g({environment:s.environment||dt,release:s.release,user_segment:r,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function $(e){const t=ft();if(!t)return{};const n=Kt(E(e).trace_id||"",t,Wt()),s=k(e);if(!s)return n;const i=s&&s._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:r,source:a}=s.metadata;r!=null&&(n.sample_rate=`${r}`);const o=E(s);return a&&a!=="url"&&(n.transaction=o.description),n.sampled=String(pt(s)),t.emit&&t.emit("createDsc",n),n}function Vt(e,t){const{fingerprint:n,span:s,breadcrumbs:i,sdkProcessingMetadata:r}=t;Xt(e,t),s&&Zt(e,s),te(e,n),zt(e,i),Qt(e,r)}function Xt(e,t){const{extra:n,tags:s,user:i,contexts:r,level:a,transactionName:o}=t,c=g(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const h=g(s);h&&Object.keys(h).length&&(e.tags={...h,...e.tags});const p=g(i);p&&Object.keys(p).length&&(e.user={...p,...e.user});const f=g(r);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),a&&(e.level=a),o&&(e.transaction=o)}function zt(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Qt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Zt(e,t){e.contexts={trace:q(t),...e.contexts};const n=k(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:$(t),...e.sdkProcessingMetadata};const s=E(n).description;s&&(e.tags={transaction:s,...e.tags})}}function te(e,t){e.fingerprint=e.fingerprint?xt(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const ee=100;class N{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Q()}static clone(t){return t?t.clone():new N}clone(){const t=new N;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&C(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof N){const s=n.getScopeData();this._tags={...this._tags,...s.tags},this._extra={...this._extra,...s.extra},this._contexts={...this._contexts,...s.contexts},s.user&&Object.keys(s.user).length&&(this._user=s.user),s.level&&(this._level=s.level),s.fingerprint.length&&(this._fingerprint=s.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),s.propagationContext&&(this._propagationContext=s.propagationContext)}else if(nt(n)){const s=t;this._tags={...this._tags,...s.tags},this._extra={...this._extra,...s.extra},this._contexts={...this._contexts,...s.contexts},s.user&&(this._user=s.user),s.level&&(this._level=s.level),s.fingerprint&&(this._fingerprint=s.fingerprint),s.requestSession&&(this._requestSession=s.requestSession),s.propagationContext&&(this._propagationContext=s.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Q(),this}addBreadcrumb(t,n){const s=typeof n=="number"?n:ee;if(s<=0)return this;const i={timestamp:J(),...t},r=this._breadcrumbs;return r.push(i),this._breadcrumbs=r.length>s?r.slice(-s):r,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}
4getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:s,_tags:i,_extra:r,_user:a,_level:o,_fingerprint:c,_eventProcessors:h,_propagationContext:p,_sdkProcessingMetadata:f,_transactionName:y,_span:L}=this;return{breadcrumbs:t,attachments:n,contexts:s,tags:i,extra:r,user:a,level:o,fingerprint:c||[],eventProcessors:h,propagationContext:p,sdkProcessingMetadata:f,transactionName:y,span:L}}applyToEvent(t,n={},s=[]){Vt(t,this.getScopeData());const i=[...s,...$t(),...this._eventProcessors];return j(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const s=n&&n.event_id?n.event_id:l();if(!this._client)return u.warn("No client configured on scope - will not capture exception!"),s;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:s},this),s}captureMessage(t,n,s){const i=s&&s.event_id?s.event_id:l();if(!this._client)return u.warn("No client configured on scope - will not capture message!"),i;const r=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:r,...s,event_id:i},this),i}captureEvent(t,n){const s=n&&n.event_id?n.event_id:l();return this._client?(this._client.captureEvent(t,{...n,event_id:s},this),s):(u.warn("No client configured on scope - will not capture event!"),s)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Q(){return{traceId:l(),spanId:l().substring(16)}}const ne="7.120.4",gt=parseFloat(ne),se=100;class mt{constructor(t,n,s,i=gt){this._version=i;let r;n?r=n:(r=new N,r.setClient(t));let a;s?a=s:(a=new N,a.setClient(t)),this._stack=[{scope:r}],t&&this.bindClient(t),this._isolationScope=a}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let s;try{s=t(n)}catch(i){throw this.popScope(),i}return F(s)?s.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),s)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const s=this._lastEventId=n&&n.event_id?n.event_id:l(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:s}),s}captureMessage(t,n,s){const i=this._lastEventId=s&&s.event_id?s.event_id:l(),r=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:r,...s,event_id:i}),i}captureEvent(t,n){const s=n&&n.event_id?n.event_id:l();return t.type||(this._lastEventId=s),this.getScope().captureEvent(t,{...n,event_id:s}),s}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:s,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:r=null,maxBreadcrumbs:a=se}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const c={timestamp:J(),...t},h=r?rt(()=>r(c,n)):c;h!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",h,n),s.addBreadcrumb(h,a))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}
4setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:s}=this.getStackTop();s&&t(n)}run(t){const n=Z(this);try{t(this)}finally{Z(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return d&&u.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const s=this._callExtensionMethod("startTransaction",t,n);return d&&!s&&(this.getClient()?u.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': 5Sentry.addTracingExtensions(); 6Sentry.init({...}); 7`):u.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),s}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,s=n.getSession();s&&Gt(s),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:s}=this.getStackTop(),{release:i,environment:r=dt}=s&&s.getOptions()||{},{userAgent:a}=_.navigator||{},o=Ht({release:i,environment:r,user:n.getUser(),...a&&{userAgent:a},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&C(c,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),s=t.getSession();s&&n&&n.captureSession&&n.captureSession(s)}_callExtensionMethod(t,...n){const i=R().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);d&&u.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function R(){return _.__SENTRY__=_.__SENTRY__||{extensions:{},hub:void 0},_}function Z(e){const t=R(),n=H(t);return St(t,e),n}function P(){const e=R();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return ie(e)}function ie(e=R()){return(!re(e)||H(e).isOlderThan(gt))&&St(e,new mt),H(e)}function re(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function H(e){return st("hub",()=>new mt,e)}function St(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function ae(e){return(e||P()).getScope().getTransaction()}let tt=!1;function oe(){tt||(tt=!0,kt(G),Ct(G))}function G(){const e=ae();if(e){const t="internal_error";d&&u.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}G.tag="sentry_tracingErrorCallback";var et;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const s="unauthenticated";e.Unauthenticated=s;const i="permission_denied";e.PermissionDenied=i;const r="not_found";e.NotFound=r;const a="resource_exhausted";e.ResourceExhausted=a;const o="invalid_argument";e.InvalidArgument=o;const c="unimplemented";e.Unimplemented=c;const h="unavailable";e.Unavailable=h;const p="internal_error";e.InternalError=p;const f="unknown_error";e.UnknownError=f;const y="cancelled";e.Cancelled=y;const L="already_exists";e.AlreadyExists=L;const Tt="failed_precondition";e.FailedPrecondition=Tt;const Et="aborted";e.Aborted=Et;const bt="out_of_range";e.OutOfRange=bt;const yt="data_loss";e.DataLoss=yt})(et||(et={}));function ce(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function ue(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=ce(t);n!=="unknown_error"&&e.setStatus(n)}function de(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=ft(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const _e="_sentryScope",he="_sentryIsolationScope";function le(e){return{scope:e[_e],isolationScope:e[he]}
7}const Y="sentry.source",I="sentry.sample_rate",w="sentry.op",A="sentry.origin",pe="profile_id";class fe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class W{constructor(t={}){this._traceId=t.traceId||l(),this._spanId=t.spanId||l().substring(16),this._startTime=t.startTimestamp||M(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[A]:t.origin||"manual",[w]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[w]}set op(t){this.setAttribute(w,t)}get origin(){return this._attributes[A]}set origin(t){this.setAttribute(A,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:s}=this;return{spanId:t,traceId:n,traceFlags:s?_t:Jt}}startChild(t){const n=new W({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const s=k(this);if(n.transaction=s,d&&s){const i=t&&t.op||"< unknown op >",r=E(n).description||"< unknown name >",a=s.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${r}' (${a}).`;u.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return ue(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=k(this);if(d&&n&&n.spanContext().spanId!==this._spanId){const s=this._logMessage;s&&u.log(s.replace("Starting","Finishing"))}this._endTime=lt(t)}toTraceparent(){return ht(this)}toContext(){return g({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return q(this)}getSpanJSON(){return g({data:this._getData(),description:this._name,op:this._attributes[w],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[A],_metrics_summary:void 0,profile_id:this._attributes[pe],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
7toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,s=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!s&&!i))return s&&i?{...t,...n}:s?t:n}}class ge extends W{constructor(t,n){super(t),this._contexts={},this._hub=n||P(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const s=this._metadata.dynamicSamplingContext;s&&(this._frozenDynamicSamplingContext={...s})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Y]&&{source:this._attributes[Y]},...this._attributes[I]&&{sampleRate:this._attributes[I]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(Y,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new fe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,s=""){this._measurements[t]={value:n,unit:s}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=lt(t),s=this._finishTransaction(n);if(s)return this._hub.captureEvent(s)}toContext(){const t=super.toContext();return g({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return $(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(d&&u.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){d&&u.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const s=this.spanRecorder?this.spanRecorder.spans.filter(p=>p!==this&&E(p).timestamp):[];if(this._trimEnd&&s.length>0){const p=s.map(f=>E(f).timestamp).filter(Boolean);this._endTime=p.reduce((f,y)=>f>y?f:y)}const{scope:i,isolationScope:r}=le(this),{metadata:a}=this,{source:o}=a,c={contexts:{...this._contexts,trace:q(this)},spans:s,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...a,capturedSpanScope:i,capturedSpanIsolationScope:r,...g({dynamicSamplingContext:$(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(d&&u.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),d&&u.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}function me(e,t,n){if(!de(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(I,Number(e.sampled)),e;let s;return typeof t.tracesSampler=="function"?(s=t.tracesSampler(n),e.setAttribute(I,Number(s))):n.parentSampled!==void 0?s=n.parentSampled:typeof t.tracesSampleRate<"u"?(s=t.tracesSampleRate,e.setAttribute(I,Number(s))):(s=1,e.setAttribute(I,s)),Se(s)?s?(e.sampled=Math.random()<s,e.sampled?(d&&u.log(`[Tracing] starting ${e.op} transaction - ${E(e).description}`),e):(d&&u.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),e)):(d&&u.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(d&&u.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Se(e){return Dt(e)||!(typeof e=="number"||typeof e=="boolean")?(d&&u.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>
71?(d&&u.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Te(){const t=this.getScope().getSpan();return t?{"sentry-trace":ht(t)}:{}}function Ee(e,t){const n=this.getClient(),s=n&&n.getOptions()||{},i=s.instrumenter||"sentry",r=e.instrumenter||"sentry";i!==r&&(d&&u.error(`A transaction was started with instrumenter=\`${r}\`, but the SDK is configured with the \`${i}\` instrumenter. 8The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let a=new ge(e,this);return a=me(a,s,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),a.isRecording()&&a.initSpanRecorder(s._experiments&&s._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function be(){const e=R();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Ee),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=Te),oe())}function ye(){const e=R();if(!e.__SENTRY__)return;const t={mongodb(){const s=b(T,"./node/integrations/mongo");return new s.Mongo},mongoose(){const s=b(T,"./node/integrations/mongo");return new s.Mongo},mysql(){const s=b(T,"./node/integrations/mysql");return new s.Mysql},pg(){const s=b(T,"./node/integrations/postgres");return new s.Postgres}},n=Object.keys(t).filter(s=>!!Yt(s)).map(s=>{try{return t[s]()}catch{return}}).filter(s=>s);n.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...n])}function Ie(){be(),Ut()&&ye()}(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__)&&Ie()});export default Ne();
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.