1"use strict";(self.webpackChunkTROST_Web_App_Server=self.webpackChunkTROST_Web_App_Server||[]).push([[5670],{40689:(W,T,u)=>{u.d(T,{V:()=>h});var E=u(6717),p=u(66339),d=u(54719),v=u(70087),i=u(1820),A=u(45606),o=u(91731),y=u(36789),N=u(7402),w=u(97664),L=u(47376),_=u(69661),c;(function(r){r.COMPONENT="component",r.HTTP_STATUS_TEXT="http.status_text"})(c||(c={}));const s="http.host",e="http.method",f="http.request.body.size",g="http.request_content_length_uncompressed",S="http.response_content_length",z="http.scheme",F="http.status_code",J="http.url",$="http.user_agent";var B=u(53348),I=u(90928),q=u(63580);const j=I.K.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function tt(...r){if(r[0]instanceof URL||typeof r[0]=="string"){const t=r[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:n,length:a}=et(t.body);return t.body=n,a}else return Promise.resolve(ut(t.body))}else{const t=r[0];return t?.body?t.clone().text().then(n=>nt(n)):Promise.resolve()}}function et(r){if(!r.pipeThrough)return j.warn("Platform has ReadableStream but not pipeThrough!"),{body:r,length:Promise.resolve(void 0)};let t=0,n;const a=new Promise(m=>{n=m}),l=new TransformStream({start(){},async transform(m,C){t+=(await m).byteLength,C.enqueue(m)},flush(){n(t)}});return{body:r.pipeThrough(l),length:a}}function at(r){return typeof Document!="undefined"&&r instanceof Document}function ut(r){if(at(r))return new XMLSerializer().serializeToString(document).length;if(typeof r=="string")return nt(r);if(r instanceof Blob)return r.size;if(r instanceof FormData)return ct(r);if(r instanceof URLSearchParams)return nt(r.toString());if(r.byteLength!==void 0)return r.byteLength;j.warn("unknown body type")}const it=new TextEncoder;function nt(r){return it.encode(r).byteLength}function ct(r){let t=0;for(const[n,a]of r.entries())t+=n.length,a instanceof Blob?t+=a.size:t+=a.length;return t}function dt(r){const t=ft(),n=r.toUpperCase();return n in t?n:"_OTHER"}const G={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let Q;function ft(){if(Q===void 0){const r=(0,q.x9)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");r&&r.length>0?(Q={},r.forEach(t=>{Q[t]=!0})):Q=G}return Q}const lt={"https:":"443","http:":"80"};function ot(r){const t=Number(r.port||lt[r.protocol]);if(t&&!isNaN(t))return t}const Z="0.208.0";var rt=u(55580);const ht=300,b=typeof process=="object"&&process.release?.name==="node";class h extends A.w{component="fetch";version=Z;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",Z,t);this._semconvStability=(0,o.J)("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,n){const a=this.tracer.startSpan("CORS Preflight",{startTime:n[L.S.FETCH_START]},E.g.setSpan(p.D.active(),t)),l=!(this._semconvStability&o.b.OLD);_.lx(a,n,this.getConfig().ignoreNetworkEvents,void 0,l),a.end(n[L.S.RESPONSE_END])}_addFinalSpanAttributes(t,n){const a=_.en(n.url);if(this._semconvStability&o.b.OLD&&(t.setAttribute(F,n.status),n.statusText!=null&&t.setAttribute(c.HTTP_STATUS_TEXT,n.statusText),t.setAttribute(s,a.host),t.setAttribute(z,a.protocol.replace(":","")),typeof navigator!="undefined"&&t.setAttribute($,navigator.userAgent)),this._semconvStability&o.b.STABLE){t.setAttribute(B.pA,n.status),t.setAttribute(B.dO,a.hostname);const l=ot(a);l&&t.setAttribute(B.QD,l)}}_addHeaders(t,n){if(!_.n4(n,this.getConfig().propagateTraceHeaderCorsUrls)){const a={};d.u.inject(p.D.active(),a),Object.keys(a).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)d.u.inject(p.D.active(),t.headers,{set:(a,l,m)=>a.set(l,typeof m=="string"?m:String(m))});else if(t.headers instanceof Headers)d.u.inject(p.D.active(),t.headers,{set:(a,l,m)=>a.set(l,typeof m=="string"?m:String(m))});else if(t.headers instanceof Map)d.u.inject(p.D.active(),t.headers,{set:(a,l,m)=>a.set(l,typeof m=="string"?m:String(m))});else{const a={};d.u.inject(p.D.active(),a),t.headers=Object.assign({},a,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,n={}){if(N.d(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let a="";const l={};if(this._semconvStability&o.b.OLD){const m=(n.method||"GET").toUpperCase();a=`HTTP ${m}`,l[c.COMPONENT]=this.moduleName,l[e]=m,l[J]=t}if(this._semconvStability&o.b.STABLE){const m=n.method,C=dt(n.method||"GET");a||(a=C),l[B.Oh]=C,C!==m&&(l[B.DZ]=m),l[B.R$]=t}return this.tracer.startSpan(a,{kind:v.M.CLIENT,attributes:l})}_findResourceAndAddNetworkEvents(t,n,a){let l=n.entries;if(!l.length){if(!performance.getEntriesByType)return;l=performance.getEntriesByType("resource")}const m=_.RX(n.spanUrl,n.startTime,a,l,this._usedResources,"fetch");if(m.mainRequest){const C=m.mainRequest;this._markResourceAsUsed(C);const R=m.corsPreFlightRequest;R&&(this._addChildSpan(t,R),this._markResourceAsUsed(R));const O=!(this._semconvStability&o.b.OLD);_.lx(t,C,this.getConfig().ignoreNetworkEvents,void 0,O)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,n,a){const l=w.i5(Date.now()),m=w.Jt();this._addFinalSpanAttributes(t,a),this._semconvStability&o.b.STABLE&&a.status>=400&&(t.setStatus({code:i.Q.ERROR}),t.setAttribute(B.V_,String(a.status))),setTimeout(()=>{n.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,n,m),this._tasksCount--,this._clearResources(),t.end(l)},ht)}_patchConstructor(){return t=>{const n=this;return function(...l){const m=this,C=_.en(l[0]instanceof Request?l[0].url:String(l[0])).href,R=l[0]instanceof Request?l[0]:l[1]||{},O=n._createSpan(C,R);if(!O)return t.apply(this,l);const V=n._prepareSpanData(C);n.getConfig().measureRequestSize&&tt(...l).then(P=>{!P||(n._semconvStability&o.b.OLD&&O.setAttribute(g,P),n._semconvStability&o.b.STABLE&&O.setAttribute(f,P))}).catch(P=>{n._diag.warn("getFetchBodyLength",P)});function H(P,M){n._applyAttributesAfterFetch(P,R,M),n._endSpan(P,V,{status:M.status||0,statusText:M.message,url:C})}function D(P,M){n._applyAttributesAfterFetch(P,R,M),M.status>=200&&M.status<400?n._endSpan(P,V,M):n._endSpan(P,V,{status:M.status,statusText:M.statusText,url:C})}function k(P,M){if(!P)return null;const U=P.getReader();return new ReadableStream({async pull(X){try{const{value:Y,done:st}=await U.read();st?(U.releaseLock(),X.close()):X.enqueue(Y)}catch(Y){X.error(Y),U.cancel(Y).catch(st=>{});try{U.releaseLock()}catch{}}},cancel(X){return M.cancel(X).catch(Y=>{}),U.cancel(X)}})}function K(P,M,U){let X=null;try{const st=U.clone().body;if(st){const mt=st.getReader(),gt=U.status===204||U.status===205||U.status===304?null:k(U.body,mt);X=new Response(gt,{status:U.status,statusText:U.statusText,headers:U.headers});const Tt=()=>{mt.read().then(({done:pt})=>{pt?D(P,U):Tt()},pt=>{H(P,pt)})};Tt()}else D(P,U)}finally{M(X??U)}}function x(P,M,U){try{H(P,U)}finally{M(U)}}return new Promise((P,M)=>p.D.with(E.g.setSpan(p.D.active(),O),()=>(n._addHeaders(R,C),n._callRequestHook(O,R),n._tasksCount++,t.apply(m,R instanceof Request?[R]:[C,R]).then(K.bind(m,O,P),x.bind(m,O,M)))))}}}_applyAttributesAfterFetch(t,n,a){const l=this.getConfig().applyCustomAttributesOnSpan;l&&(0,y._W)(()=>l(t,n,a),m=>{!m||this._diag.error("applyCustomAttributesOnSpan",m)},!0)}_callRequestHook(t,n){const a=this.getConfig().requestHook;a&&(0,y._W)(()=>a(t,n),l=>{!l||this._diag.error("requestHook",l)},!0)}_prepareSpanData(t){const n=w.Jt(),a=[];if(typeof PerformanceObserver!="function")return{entries:a,startTime:n,spanUrl:t};const l=new PerformanceObserver(m=>
1{m.getEntries().forEach(R=>{R.initiatorType==="fetch"&&R.name===t&&a.push(R)})});return l.observe({entryTypes:["resource"]}),{entries:a,observer:l,startTime:n,spanUrl:t}}enable(){if(b){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}(0,y.UW)(fetch)&&(this._unwrap(rt.E,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(rt.E,"fetch",this._patchConstructor())}disable(){b||(this._unwrap(rt.E,"fetch"),this._usedResources=new WeakSet)}}},44122:(W,T,u)=>{u.d(T,{W:()=>ht});var E=u(54719),p=u(66339),d=u(6717),v=u(70087),i=u(1820),A=u(45606),o=u(91731),y=u(36789),N=u(16383),w=u(7402),L=u(97664),_=u(69661),c=u(47376),s=u(53348);const e="http.host",f="http.method",g="http.request.body.size",S="http.request_content_length_uncompressed",z="http.response_content_length",F="http.scheme",J="http.status_code",$="http.url",B="http.user_agent";var I;(function(b){b.METHOD_OPEN="open",b.METHOD_SEND="send",b.EVENT_ABORT="abort",b.EVENT_ERROR="error",b.EVENT_LOAD="loaded",b.EVENT_TIMEOUT="timeout"})(I||(I={}));var q=u(90928),j=u(63580);const tt=q.K.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"});function et(b){return typeof Document!="undefined"&&b instanceof Document}function at(b){if(et(b))return new XMLSerializer().serializeToString(document).length;if(typeof b=="string")return it(b);if(b instanceof Blob)return b.size;if(b instanceof FormData)return nt(b);if(b instanceof URLSearchParams)return it(b.toString());if(b.byteLength!==void 0)return b.byteLength;tt.warn("unknown body type")}const ut=new TextEncoder;function it(b){return ut.encode(b).byteLength}function nt(b){let h=0;for(const[r,t]of b.entries())h+=r.length,t instanceof Blob?h+=t.size:h+=t.length;return h}function ct(b){const h=Q(),r=b.toUpperCase();return r in h?r:"_OTHER"}const dt={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let G;function Q(){if(G===void 0){const b=(0,j.x9)("OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS");b&&b.length>0?(G={},b.forEach(h=>{G[h]=!0})):G=dt}return G}const ft={"https:":"443","http:":"80"};function lt(b){const h=Number(b.port||ft[b.protocol]);if(h&&!isNaN(h))return h}const ot="0.208.0";var Z;(function(b){b.HTTP_STATUS_TEXT="http.status_text"})(Z||(Z={}));const rt=300;class ht extends A.w{component="xml-http-request";version=ot;moduleName=this.component;_tasksCount=0;_xhrMem=new WeakMap;_usedResources=new WeakSet;_semconvStability;constructor(h={}){super("@opentelemetry/instrumentation-xml-http-request",ot,h);this._semconvStability=(0,o.J)("http",h?.semconvStabilityOptIn)}init(){}_addHeaders(h,r){const t=(0,_.en)(r).href;if(!(0,_.n4)(t,this.getConfig().propagateTraceHeaderCorsUrls)){const a={};E.u.inject(p.D.active(),a),Object.keys(a).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}const n={};E.u.inject(p.D.active(),n),Object.keys(n).forEach(a=>{h.setRequestHeader(a,String(n[a]))})}_addChildSpan(h,r){p.D.with(d.g.setSpan(p.D.active(),h),()=>{const t=this.tracer.startSpan("CORS Preflight",{startTime:r[c.S.FETCH_START]}),n=!(this._semconvStability&o.b.OLD);(0,_.lx)(t,r,this.getConfig().ignoreNetworkEvents,void 0,n),t.end(r[c.S.RESPONSE_END])})}_addFinalSpanAttributes(h,r,t){if(this._semconvStability&o.b.OLD){if(r.status!==void 0&&h.setAttribute(J,r.status),r.statusText!==void 0&&h.setAttribute(Z.HTTP_STATUS_TEXT,r.statusText),typeof t=="string"){const n=(0,_.en)(t);h.setAttribute(e,n.host),h.setAttribute(F,n.protocol.replace(":",""))}h.setAttribute(B,navigator.userAgent)}this._semconvStability&o.b.STABLE&&r.status&&h.setAttribute(s.pA,r.status)}_applyAttributesAfterXHR(h,r){const t=this.getConfig().applyCustomAttributesOnSpan;typeof t=="function"&&(0,y._W)(()=>t(h,r),n=>{!n||this._diag.error("applyCustomAttributesOnSpan",n)},!0)}_addResourceObserver(h,r){const t=this._xhrMem.get(h);!t||typeof PerformanceObserver!="function"||typeof PerformanceResourceTiming!="function"||(t.createdResources={observer:new PerformanceObserver(n=>{const a=n.getEntries(),l=(0,_.en)(r);a.forEach(m=>{m.initiatorType==="xmlhttprequest"&&m.name===l.href&&t.createdResources&&t.createdResources.entries.push(m)})}),entries:[]},t.createdResources.observer.observe({entryTypes:["resource"]}))}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(N.t.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)}_findResourceAndAddNetworkEvents(h,r,t,n,a){if(!t||!n||!a||!h.createdResources)return;let l=h.createdResources.entries;(!l||!l.length)&&(l=N.t.getEntriesByType("resource"));const m=(0,_.RX)((0,_.en)(t).href,n,a,l,this._usedResources);if(m.mainRequest){const C=m.mainRequest;this._markResourceAsUsed(C);const R=m.corsPreFlightRequest;R&&(this._addChildSpan(r,R),this._markResourceAsUsed(R));const O=!(this._semconvStability&o.b.OLD);(0,_.lx)(r,C,this.getConfig().ignoreNetworkEvents,void 0,O)}}_cleanPreviousSpanInformation(h){const r=this._xhrMem.get(h);if(r){const t=r.callbackToRemoveEvents;t&&t(),this._xhrMem.delete(h)}}_createSpan(h,r,t){if((0,w.d)(r,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let n="";const a=(0,_.en)(r),l={};if(this._semconvStability&o.b.OLD&&(n=t.toUpperCase(),l[f]=t,l[$]=a.toString()),this._semconvStability&o.b.STABLE){const C=t,R=ct(t);n||(n=R),l[s.Oh]=R,R!==C&&(l[s.DZ]=C),l[s.R$]=a.toString(),l[s.dO]=a.hostname;
1const O=lt(a);O&&(l[s.QD]=O)}const m=this.tracer.startSpan(n,{kind:v.M.CLIENT,attributes:l});return m.addEvent(I.METHOD_OPEN),this._cleanPreviousSpanInformation(h),this._xhrMem.set(h,{span:m,spanUrl:r}),m}_markResourceAsUsed(h){this._usedResources.add(h)}_patchOpen(){return h=>{const r=this;return function(...n){const a=n[0],l=n[1];return r._createSpan(this,l,a),h.apply(this,n)}}}_patchSend(){const h=this;function r(R,O,V,H){const D=O.callbackToRemoveEvents;typeof D=="function"&&D();const{span:k,spanUrl:K,sendStartTime:x}=O;k&&(h._findResourceAndAddNetworkEvents(O,k,K,x,V),k.addEvent(R,H),h._addFinalSpanAttributes(k,O,K),k.end(H),h._tasksCount--),h._clearResources()}function t(R,O,V,H){const D=h._xhrMem.get(O);if(!D)return;if(D.status=O.status,D.statusText=O.statusText,h._xhrMem.delete(O),D.span){const x=D.span;h._applyAttributesAfterXHR(x,O),h._semconvStability&o.b.STABLE&&(V?H&&(x.setStatus({code:i.Q.ERROR,message:H}),x.setAttribute(s.V_,H)):D.status&&D.status>=400&&(x.setStatus({code:i.Q.ERROR}),x.setAttribute(s.V_,String(D.status))))}const k=(0,L.Jt)(),K=Date.now();setTimeout(()=>{r(R,D,k,K)},rt)}function n(){t(I.EVENT_ERROR,this,!0,"error")}function a(){t(I.EVENT_ABORT,this,!1)}function l(){t(I.EVENT_TIMEOUT,this,!0,"timeout")}function m(){this.status<299?t(I.EVENT_LOAD,this,!1):t(I.EVENT_ERROR,this,!1)}function C(R){R.removeEventListener("abort",a),R.removeEventListener("error",n),R.removeEventListener("load",m),R.removeEventListener("timeout",l);const O=h._xhrMem.get(R);O&&(O.callbackToRemoveEvents=void 0)}return R=>function(...V){const H=h._xhrMem.get(this);if(!H)return R.apply(this,V);const D=H.span,k=H.spanUrl;if(D&&k){if(h.getConfig().measureRequestSize&&V?.[0]){const K=V[0],x=at(K);x!==void 0&&(h._semconvStability&o.b.OLD&&D.setAttribute(S,x),h._semconvStability&o.b.STABLE&&D.setAttribute(g,x))}p.D.with(d.g.setSpan(p.D.active(),D),()=>{h._tasksCount++,H.sendStartTime=(0,L.Jt)(),D.addEvent(I.METHOD_SEND),this.addEventListener("abort",a),this.addEventListener("error",n),this.addEventListener("load",m),this.addEventListener("timeout",l),H.callbackToRemoveEvents=()=>{C(this),H.createdResources&&H.createdResources.observer.disconnect()},h._addHeaders(this,k),h._addResourceObserver(this,k)})}return R.apply(this,V)}}enable(){this._diag.debug("applying patch to",this.moduleName,this.version),(0,y.UW)(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),(0,y.UW)(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())}disable(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet}}},19448:(W,T,u)=>{u.d(T,{X:()=>A});var E=u(6717),p=u(97131),d=u(43598);function v(o,y,N,w){for(let L=0,_=o.length;L<_;L++){const c=o[L];y&&c.setTracerProvider(y),N&&c.setMeterProvider(N),w&&c.setLoggerProvider&&c.setLoggerProvider(w),c.getConfig().enabled||c.enable()}}function i(o){o.forEach(y=>y.disable())}function A(o){const y=o.tracerProvider||E.g.getTracerProvider(),N=o.meterProvider||p.q.getMeterProvider(),w=o.loggerProvider||d.TD.getL
1oggerProvider(),L=o.instrumentations?.flat()??[];return v(L,y,N,w),()=>{i(L)}}},45606:(W,T,u)=>{u.d(T,{w:()=>c});var E=u(90928),p=u(6717),d=u(97131),v=u(43598);let i=console.error.bind(console);function A(s,e,f){const g=!!s[e]&&Object.prototype.propertyIsEnumerable.call(s,e);Object.defineProperty(s,e,{configurable:!0,enumerable:g,writable:!0,value:f})}const o=(s,e,f)=>{if(!s||!s[e]){i("no original function "+String(e)+" to wrap");return}if(!f){i("no wrapper function"),i(new Error().stack);return}const g=s[e];if(typeof g!="function"||typeof f!="function"){i("original object and wrapper must be functions");return}const S=f(g,e);return A(S,"__original",g),A(S,"__unwrap",()=>{s[e]===S&&A(s,e,g)}),A(S,"__wrapped",!0),A(s,e,S),S},y=(s,e,f)=>{if(s)Array.isArray(s)||(s=[s]);else{i("must provide one or more modules to patch"),i(new Error().stack);return}if(!(e&&Array.isArray(e))){i("must provide one or more functions to wrap on modules");return}s.forEach(g=>{e.forEach(S=>{o(g,S,f)})})},N=(s,e)=>{if(!s||!s[e]){i("no function to unwrap."),i(new Error().stack);return}const f=s[e];if(!f.__unwrap)i("no original to unwrap to -- has "+String(e)+" already been unwrapped?");else{f.__unwrap();return}},w=(s,e)=>{if(s)Array.isArray(s)||(s=[s]);else{i("must provide one or more modules to patch"),i(new Error().stack);return}if(!(e&&Array.isArray(e))){i("must provide one or more functions to unwrap on modules");return}s.forEach(f=>{e.forEach(g=>{N(f,g)})})};function L(s){s&&s.logger&&(typeof s.logger!="function"?i("new logger isn't a function, not replacing"):i=s.logger)}L.wrap=o,L.massWrap=y,L.unwrap=N,L.massUnwrap=w;class _{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(e,f,g){this.instrumentationName=e,this.instrumentationVersion=f,this.setConfig(g),this._diag=E.K.createComponentLogger({namespace:e}),this._tracer=p.g.getTracer(e,f),this._meter=d.q.getMeter(e,f),this._logger=v.TD.getLogger(e,f),this._updateMetricInstruments()}_wrap=o;_unwrap=N;_massWrap=y;_massUnwrap=w;get meter(){return this._meter}setMeterProvider(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(e){this._logger=e.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const e=this.init()??[];return Array.isArray(e)?e:[e]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(e){this._config={enabled:!0,...e}}setTracerProvider(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(e,f,g,S){if(!!e)try{e(g,S)}catch(z){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:f},z)}}}class c extends _{constructor(e,f,g){super(e,f,g);this._config.enabled&&this.enable()}}},91731:(W,T,u)=>{u.d(T,{J:()=>p,b:()=>E});var E;(function(d){d[d.STABLE=1]="STABLE",d[d.OLD=2]="OLD",d[d.DUPLICATE=3]="DUPLICATE"})(E||(E={}));function p(d,v){let i=E.OLD;const A=v?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(const o of A??[])if(o.toLowerCase()===d+"/dup"){i=E.DUPLICATE;break}else o.toLowerCase()===d&&(i=E.STABLE);return i}},36789:(W,T,u)=>{u.d(T,{UW:()=>d,_W:()=>E});function E(v,i,A){let o,y;try{y=v()}catch(N){o=N}finally{if(i(o,y),o&&!A)throw o;return y}}async function p(v,i,A){let o,y;try{y=await v()}catch(N){o=N}finally{if(await i(o,y),o&&!A)throw o;return y}}function d(v){return typeof v=="function"&&typeof v.__original=="function"&&typeof v.__unwrap=="function"&&v.__wrapped===!0}},41815:(W,T)=>{Object.defineProperty(T,"__esModule",{value:!0}),T.hexToBinary=void 0;function u(p){return p>=48&&p<=57?p-48:p>=97&&p<=102?p-87:p-55}function E(p){const d=new Uint8Array(p.length/2);let v=0;for(let i=0;i<p.length;i+=2){const A=u(p.charCodeAt(i)),o=u(p.charCodeAt(i+1));d[v++]=A<<4|o}return d}T.hexToBinary=E},50187:(W,T)=>{Object.defineProperty(T,"__esModule",{value:!0}),T.toAnyValue=T.toKeyValue=T.toAttributes=T.createInstrumentationScope=T.createResource=void 0;function u(i){const A={attributes:p(i.attributes),droppedAttributesCount:0},o=i.schemaUrl;return o&&o!==""&&(A.schemaUrl=o),A}T.createResource=u;function E(i){return{name:i.name,version:i.version}}T.createInstrumentationScope=E;function p(i){return Object.keys(i).map(A=>d(A,i[A]))}T.toAttributes=p;function d(i,A){return{key:i,value:v(A)}}T.toKeyValue=d;function v(i){const A=typeof i;return A==="string"?{stringValue:i}:A==="number"?Number.isInteger(i)?{intValue:i}:{doubleValue:i}:A==="boolean"?{boolValue:i}:i instanceof Uint8Array?{bytesValue:i}:Array.isArray(i)?{arrayValue:{values:i.map(v)}}:A==="object"&&i!=null?{kvlistValue:{values:Object.entries(i).map(([o,y])=>d(o,y))}}:{}}T.toAnyValue=v},96169:(W,T,u)=>
1{Object.defineProperty(T,"__esModule",{value:!0}),T.getOtlpEncoder=T.encodeAsString=T.encodeAsLongBits=T.toLongBits=T.hrTimeToNanos=void 0;const E=u(73802),p=u(41815);function d(_){const c=BigInt(1e9);return BigInt(Math.trunc(_[0]))*c+BigInt(Math.trunc(_[1]))}T.hrTimeToNanos=d;function v(_){const c=Number(BigInt.asUintN(32,_)),s=Number(BigInt.asUintN(32,_>>BigInt(32)));return{low:c,high:s}}T.toLongBits=v;function i(_){const c=d(_);return v(c)}T.encodeAsLongBits=i;function A(_){return d(_).toString()}T.encodeAsString=A;const o=typeof BigInt!="undefined"?A:E.hrTimeToNanoseconds;function y(_){return _}function N(_){if(_!==void 0)return(0,p.hexToBinary)(_)}const w={encodeHrTime:i,encodeSpanContext:p.hexToBinary,encodeOptionalSpanContext:N};function L(_){if(_===void 0)return w;const c=_.useLongBits??!0,s=_.useHex??!1;return{encodeHrTime:c?i:o,encodeSpanContext:s?y:p.hexToBinary,encodeOptionalSpanContext:s?y:N}}T.getOtlpEncoder=L},21487:(W,T)=>{var u;u={value:!0},T.zy=T.l6=void 0;var E;(function(d){d[d.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",d[d.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",d[d.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",d[d.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",d[d.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",d[d.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(E=T.l6||(T.l6={}));var p;(function(d){d[d.STATUS_CODE_UNSET=0]="STATUS_CODE_UNSET",d[d.STATUS_CODE_OK=1]="STATUS_CODE_OK",d[d.STATUS_CODE_ERROR=2]="STATUS_CODE_ERROR"})(p=T.zy||(T.zy={}))},2957:(W,T,u)=>{var E;E={value:!0},T.ru=E=E=E=void 0;const p=u(50187),d=u(96169),v=256,i=512;function A(c,s){let e=c&255|v;return s&&(e|=i),e}function o(c,s){const e=c.spanContext(),f=c.status,g=c.parentSpanContext?.spanId?s.encodeSpanContext(c.parentSpanContext?.spanId):void 0;return{traceId:s.encodeSpanContext(e.traceId),spanId:s.encodeSpanContext(e.spanId),parentSpanId:g,traceState:e.traceState?.serialize(),name:c.name,kind:c.kind==null?0:c.kind+1,startTimeUnixNano:s.encodeHrTime(c.startTime),endTimeUnixNano:s.encodeHrTime(c.endTime),attributes:(0,p.toAttributes)(c.attributes),droppedAttributesCount:c.droppedAttributesCount,events:c.events.map(S=>N(S,s)),droppedEventsCount:c.droppedEventsCount,status:{code:f.code,message:f.message},links:c.links.map(S=>y(S,s)),droppedLinksCount:c.droppedLinksCount,flags:A(e.traceFlags,c.parentSpanContext?.isRemote)}}E=o;function y(c,s){return{attributes:c.attributes?(0,p.toAttributes)(c.attributes):[],spanId:s.encodeSpanContext(c.context.spanId),traceId:s.encodeSpanContext(c.context.traceId),traceState:c.context.traceState?.serialize(),droppedAttributesCount:c.droppedAttributesCount||0,flags:A(c.context.traceFlags,c.context.isRemote)}}E=y;function N(c,s){return{attributes:c.attributes?(0,p.toAttributes)(c.attributes):[],name:c.name,timeUnixNano:s.encodeHrTime(c.time),droppedAttributesCount:c.droppedAttributesCount||0}}E=N;function w(c,s){const e=(0,d.getOtlpEncoder)(s);return{resourceSpans:_(c,e)}}T.ru=w;function L(c){const s=new Map;for(const e of c){let f=s.get(e.resource);f||(f=new Map,s.set(e.resource,f));const g=`${e.instrumentationScope.name}@${e.instrumentationScope.version||""}:${e.instrumentationScope.schemaUrl||""}`;let S=f.get(g);S||(S=[],f.set(g,S)),S.push(e)}return s}function _(c,s){const e=L(c),f=[],g=e.entries();let S=g.next();for(;!S.done;){const[z,F]=S.value,J=[],$=F.values();let B=$.next();for(;!B.done;){const j=B.value;if(j.length>0){const tt=j.map(et=>o(et,s));J.push({scope:(0,p.createInstrumentationScope)(j[0].instrumentationScope),spans:tt,schemaUrl:j[0].instrumentationScope.schemaUrl})}B=$.next()}const I=(0,p.createResource)(z),q={resource:I,scopeSpans:J,schemaUrl:I.schemaUrl};f.push(q),S=g.next()}return f}},79248:(W,T,u)=>{u.d(T,{tM:()=>L,nn:()=>y});var E=u(90928),p=u(96371),d=u(53348);function v(){return"unknown_service"}const i=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";function A(e){return e}class o{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(f,g){const S=new o({},g);return S._rawAttributes=_(f),S._asyncAttributesPending=f.filter(([z,F])=>i(F)).length>0,S}constructor(f,g){const S=f.attributes??{};this._rawAttributes=Object.entries(S).map(([z,F])=>(i(F)&&(this._asyncAttributesPending=!0),[z,F])),this._rawAttributes=_(this._rawAttributes),this._schemaUrl=c(g?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!!this.asyncAttributesPending){for(let f=0;f<this._rawAttributes.length;f++){const[g,S]=this._rawAttributes[f];this._rawAttributes[f]=[g,i(S)?await S:S]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&E.K.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const f={};
1for(const[g,S]of this._rawAttributes){if(i(S)){E.K.debug(`Unsettled resource attribute ${g} skipped`);continue}S!=null&&(f[g]??=S)}return this._asyncAttributesPending||(this._memoizedAttributes=f),f}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(f){if(f==null)return this;const g=s(this,f),S=g?{schemaUrl:g}:void 0;return o.FromAttributeList([...f.getRawAttributes(),...this.getRawAttributes()],S)}}function y(e,f){return o.FromAttributeList(Object.entries(e),f)}function N(e,f){return new o(e,f)}function w(){return y({})}function L(){return y({[d.Mn]:v(),[d.r9]:p.m[d.r9],[d.r_]:p.m[d.r_],[d.am]:p.m[d.am]})}function _(e){return e.map(([f,g])=>i(g)?[f,g.catch(S=>{E.K.debug("promise rejection for resource attribute: %s - %s",f,S)})]:[f,g])}function c(e){if(typeof e=="string"||e===void 0)return e;E.K.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function s(e,f){const g=e?.schemaUrl,S=f?.schemaUrl,z=g===void 0||g==="",F=S===void 0||S==="";if(z)return S;if(F||g===S)return g;E.K.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',g,S)}}}]); 2 3//# sourceMappingURL=sourcemaps/npm.opentelemetry-dd0676f4.bundle.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.