PageSourceSearch

https://traveldaily.cn/_next/static/chunks/9df9d6a223d6d59a.js

js traveldaily.cn collected 2026-10-02 05:52:02 UTC 199,480 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,51034,t=>{"use strict";t.i(96059);var e=t.i(15584),r=t.i(32280),r=r,n=t.i(92989),o=t.i(71645);function i(){return(i=Object.assign.bind()).apply(this,arguments)}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}t.s(["default",0,function(t){var s,u=(function(t){if(Array.isArray(t))return t}(s=(0,o.useState)(function(){return(0,e.createCache)()}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{i=(r=r.call(t)).next,!1;for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),1!==s.length);u=!0);}catch(t){c=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(s,1)||function(t,e){if(t){if("string"==typeof t)return a(t,1);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,1)}}(s,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return(0,n.useServerInsertedHTML)(function(){var t=(0,r.default)(u,{plain:!0,once:!0});return t.includes('.data-ant-cssinjs-cache-path{content:"";}')?null:o.default.createElement("style",{id:"antd-cssinjs","data-rc-order":"prepend","data-rc-priority":"-1000",dangerouslySetInnerHTML:{__html:t}})}),o.default.createElement(e.StyleProvider,i({},t,{cache:u}))}],51034)},45167,t=>{"use strict";var e=t.i(43476);t.i(97581),t.i(92989);var r=t.i(71645);function n(){let[t,n]=(0,r.useState)(!0),[o,i]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{var t,e;let r=()=>{let t=window.innerWidth,e=document.documentElement,r=document.cookie.includes("device=mobile")?"mobile":"desktop";t<768||"mobile"===r?e.style.fontSize=`${.032*t}px`:t<960&&t>768?e.style.fontSize=`${14/960*960}px`:t<1920&&t>960?e.style.fontSize=`${14/1920*1920}px`:e.style.fontSize=`${14/1920*t}px`};return r(),window.addEventListener("resize",r),n(!1),setTimeout(()=>{i(!1)},1e3),(t=document.createElement("script")).src="https://hm.baidu.com/hm.js?7e0b4ec16a94310d24f4a962b176e29b",(e=document.getElementsByTagName("script")[0]).parentNode.insertBefore(t,e),()=>{window.removeEventListener("resize",r)}},[]),o&&(0,e.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#ffffff",position:"fixed",top:0,left:0,width:"100vw",height:"100vh",zIndex:999999},className:`fade-exit ${!t&&"fade-exit-active"}`,children:(0,e.jsx)("span",{id:"loader"})})}t.s(["default",()=>n])},8341,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},a="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},79520,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},handleClientScriptLoad:function(){return E},initScriptLoader:function(){return T}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=t.r(55682),a=t.r(90809),s=t.r(43476),u=i._(t.r(74080)),c=a._(t.r(71645)),l=t.r(42732),f=t.r(22737),p=t.r(8341),h=new Map,_=new Set,d=t=>{let{src:e,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:i,children:a="",strategy:s="afterInteractive",onError:c,stylesheets:l}=t,p=r||e;if(p&&_.has(p))return;if(h.has(e)){_.add(p),h.get(e).then(n,c);return}let d=()=>{o&&o(),_.add(p)},E=document.createElement("script"),T=new Promise((t,e)=>{E.addEventListener("load",function(e){t(),n&&n.call(this,e),d()}),E.addEventListener("error",function(t){e(t)})}).catch(function(t){c&&c(t)});i?(E.innerHTML=i.__html||"",d()):a?(E.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",d()):e&&(E.src=e,h.set(e,T)),(0,f.setAttributesFromProps)(E,t),"worker"===s&&E.setAttribute("type","text/partytown"),E.setAttribute("data-nscript",s),l&&(t=>
1{if(u.default.preinit)return t.forEach(t=>{u.default.preinit(t,{as:"style"})});if("undefined"!=typeof window){let e=document.head;t.forEach(t=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=t,e.appendChild(r)})}})(l),document.body.appendChild(E)};function E(t){let{strategy:e="afterInteractive"}=t;"lazyOnload"===e?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>d(t))}):d(t)}function T(t){t.forEach(E),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(t=>{let e=t.id||t.getAttribute("src");_.add(e)})}function y(t){let{id:e,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:i="afterInteractive",onError:a,stylesheets:f,...h}=t,{updateScripts:E,scripts:T,getIsSsr:y,appDir:v,nonce:g}=(0,c.useContext)(l.HeadManagerContext);g=h.nonce||g;let m=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let t=e||r;m.current||(o&&t&&_.has(t)&&o(),m.current=!0)},[o,e,r]);let O=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!O.current){if("afterInteractive"===i)d(t);else"lazyOnload"===i&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>d(t)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>d(t))}));O.current=!0}},[t,i]),("beforeInteractive"===i||"worker"===i)&&(E?(T[i]=(T[i]||[]).concat([{id:e,src:r,onLoad:n,onReady:o,onError:a,...h,nonce:g}]),E(T)):y&&y()?_.add(e||r):y&&!y()&&d({...t,nonce:g})),v){if(f&&f.forEach(t=>{u.default.preinit(t,{as:"style"})}),"beforeInteractive"===i)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:g,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...h,id:e}])})`}});else return u.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:g,crossOrigin:h.crossOrigin}:{as:"script",nonce:g,crossOrigin:h.crossOrigin}),(0,s.jsx)("script",{nonce:g,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...h,id:e}])})`}});"afterInteractive"===i&&r&&u.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:g,crossOrigin:h.crossOrigin}:{as:"script",nonce:g,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},73462,t=>{"use strict";let e,r,n,o,i;var a,s,u,c,l,f,p,h,_,d,E,T,y,v,g,m,O,b,S,R,L,P,A,w,C,N,I,k,D,x,M,U,j,B,H,F,z,X,G,Z,V,q,W,K,$,Y,Q,J,tt,te,tr,tn,to,ti,ta,ts,tu,tc,tl,tf,tp,th,t_,td=t.i(47167),tE=t.i(71645),tT=t.i(92989),ty=t.i(43476),tv=Object.create,tg=Object.defineProperty,tm=Object.getOwnPropertyDescriptor,tO=Object.getOwnPropertyNames,tb=Object.getPrototypeOf,tS=Object.prototype.hasOwnProperty,tR=(e={"node_modules/shimmer/index.js"(t,e){function r(t){return"function"==typeof t}var n=console.error.bind(console);function o(t,e,r){var n=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:n,writable:!0,value:r})}function i(t){t&&t.logger&&(r(t.logger)?n=t.logger:n("new logger isn't a function, not replacing"))}function a(t,e,i){if(!t||!t[e])return void n("no original function "+e+" to wrap");if(!i){n("no wrapper function"),n(Error().stack);return}if(!r(t[e])||!r(i))return void n("original object and wrapper must be functions");var a=t[e],s=i(a,e);return o(s,"__original",a),o(s,"__unwrap",function(){t[e]===s&&o(t,e,a)}),o(s,"__wrapped",!0),o(t,e,s),s}function s(t,e){if(!t||!t[e]){n("no function to unwrap."),n(Error().stack);return}if(t[e].__unwrap)return t[e].__unwrap();n("no original to unwrap to -- has "+e+" already been unwrapped?")}i.wrap=a,i.massWrap=function(t,e,r){if(t)Array.isArray(t)||(t=[t]);else{n("must provide one or more modules to patch"),n(Error().stack);return}e&&Array.isArray(e)?t.forEach(function(t){e.forEach(function(e){a(t,e,r)})}):n("must provide one or more functions to wrap on modules")},i.unwrap=s,i.massUnwrap=function(t,e){if(t)Array.isArray(t)||(t=[t]);else{n("must provide one or more modules to patch"),n(Error().stack);return}e&&Array.isArray(e)?t.forEach(function(t){e.forEach(function(e){s(t,e)})}):n("must provide one or more functions to unwrap on modules")},e.exports=i}},function(){return r||(0,e[tO(e)[0]])((r={exports:{}}).exports,r),r.exports}),tL="1.9.1",tP=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,tA=function(t){let e=new Set([t]),r=new Set,n=t.match(tP);
1if(!n)return()=>!1;let o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease)return function(e){return e===t};function i(t){return r.add(t),!1}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;let n=t.match(tP);if(!n)return i(t);let a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=a.prerelease||o.major!==a.major)return i(t);if(0===o.major)return o.minor===a.minor&&o.patch<=a.patch?(e.add(t),!0):i(t);return o.minor<=a.minor?(e.add(t),!0):i(t)}}(tL),tw=tL.split(".")[0],tC=Symbol.for(`opentelemetry.js.api.${tw}`),tN="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:t.g;function tI(t,e,r,n=!1){var o;let i=tN[tC]=null!=(o=tN[tC])?o:{version:tL};if(!n&&i[t]){let e=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${t}`);return r.error(e.stack||e.message),!1}if(i.version!==tL){let e=Error(`@opentelemetry/api: Registration of version v${i.version} for ${t} does not match previously registered API v${tL}`);return r.error(e.stack||e.message),!1}return i[t]=e,r.debug(`@opentelemetry/api: Registered a global for ${t} v${tL}.`),!0}function tk(t){var e,r;let n=null==(e=tN[tC])?void 0:e.version;if(n&&tA(n))return null==(r=tN[tC])?void 0:r[t]}function tD(t,e){e.debug(`@opentelemetry/api: Unregistering a global for ${t} v${tL}.`);let r=tN[tC];r&&delete r[t]}var tx=class{constructor(t){this._namespace=t.namespace||"DiagComponentLogger"}debug(...t){return tM("debug",this._namespace,t)}error(...t){return tM("error",this._namespace,t)}info(...t){return tM("info",this._namespace,t)}warn(...t){return tM("warn",this._namespace,t)}verbose(...t){return tM("verbose",this._namespace,t)}};function tM(t,e,r){let n=tk("diag");if(n)return n[t](e,...r)}(l=z||(z={}))[l.NONE=0]="NONE",l[l.ERROR=30]="ERROR",l[l.WARN=50]="WARN",l[l.INFO=60]="INFO",l[l.DEBUG=70]="DEBUG",l[l.VERBOSE=80]="VERBOSE",l[l.ALL=9999]="ALL";var tU=class t{static instance(){return this._instance||(this._instance=new t),this._instance}constructor(){function t(t){return function(...e){let r=tk("diag");if(r)return r[t](...e)}}const e=this,r=(t,r={logLevel:z.INFO})=>{var n,o,i;if(t===e){let t=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!=(n=t.stack)?n:t.message),!1}"number"==typeof r&&(r={logLevel:r});let a=tk("diag"),s=function(t,e){function r(r,n){let o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return t<z.NONE?t=z.NONE:t>z.ALL&&(t=z.ALL),e=e||{},{error:r("error",z.ERROR),warn:r("warn",z.WARN),info:r("info",z.INFO),debug:r("debug",z.DEBUG),verbose:r("verbose",z.VERBOSE)}}(null!=(o=r.logLevel)?o:z.INFO,t);if(a&&!r.suppressOverrideMessage){let t=null!=(i=Error().stack)?i:"<failed to generate stacktrace>";a.warn(`Current logger will be overwritten from ${t}
1`),s.warn(`Current logger will overwrite one already registered from ${t}`)}return tI("diag",s,e,!0)};e.setLogger=r,e.disable=()=>{tD("diag",e)},e.createComponentLogger=t=>new tx(t),e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}},tj=class t{constructor(t){this._entries=t?new Map(t):new Map}getEntry(t){let e=this._entries.get(t);if(e)return Object.assign({},e)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(e,r){let n=new t(this._entries);return n._entries.set(e,r),n}removeEntry(e){let r=new t(this._entries);return r._entries.delete(e),r}removeEntries(...e){let r=new t(this._entries);for(let t of e)r._entries.delete(t);return r}clear(){return new t}},tB=Symbol("BaggageEntryMetadata"),tH=tU.instance();function tF(t={}){return new tj(new Map(Object.entries(t)))}function tz(t){return Symbol.for(t)}var tX=new class t{constructor(e){const r=this;r._currentContext=e?new Map(e):new Map,r.getValue=t=>r._currentContext.get(t),r.setValue=(e,n)=>{let o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=e=>{let n=new t(r._currentContext);return n._currentContext.delete(e),n}}},tG=class{},tZ=class{addCallback(t){}removeCallback(t){}},tV=new class{constructor(){}createGauge(t,e){return tW}createHistogram(t,e){return tK}createCounter(t,e){return tq}createUpDownCounter(t,e){return t$}createObservableGauge(t,e){return tQ}createObservableCounter(t,e){return tY}createObservableUpDownCounter(t,e){return tJ}addBatchObservableCallback(t,e){}removeBatchObservableCallback(t){}},tq=new class extends tG{add(t,e){}},tW=new class extends tG{record(t,e){}},tK=new class extends tG{record(t,e){}},t$=new class extends tG{add(t,e){}},tY=new class extends tZ{},tQ=new class extends tZ{},tJ=new class extends tZ{},t0={get(t,e){if(null!=t)return t[e]},keys:t=>null==t?[]:Object.keys(t)},t1={set(t,e,r){null!=t&&(t[e]=r)}},t2=class{active(){return tX}with(t,e,r,...n){return e.call(r,...n)}bind(t,e){return e}enable(){return this}disable(){return this}},t3="context",t4=new t2,t5=class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalContextManager(t){return tI(t3,t,tU.instance())}active(){return this._getContextManager().active()}with(t,e,r,...n){return this._getContextManager().with(t,e,r,...n)}bind(t,e){return this._getContextManager().bind(t,e)}_getContextManager(){return tk(t3)||t4}disable(){this._getContextManager().disable(),tD(t3,tU.instance())}};(f=X||(X={}))[f.NONE=0]="NONE",f[f.SAMPLED=1]="SAMPLED";var t6="0000000000000000",t9="00000000000000000000000000000000",t8={traceId:t9,spanId:t6,traceFlags:X.NONE},t7=class{constructor(t=t8){this._spanContext=t}spanContext(){return this._spanContext}setAttribute(t,e){return this}setAttributes(t){return this}addEvent(t,e){return this}addLink(t){return this}addLinks(t){return this}setStatus(t){return this}updateName(t){return this}end(t){}isRecording(){return!1}recordException(t,e){}},et=tz("OpenTelemetry Context Key SPAN");function ee(t){return t.getValue(et)||void 0}function er(){return ee(t5.getInstance().active())}function en(t,e){return t.setValue(et,e)}function eo(t){return t.deleteValue(et)}function ei(t,e){return en(t,new t7(e))}function ea(t){var e;return null==(e=ee(t))?void 0:e.spanContext()}var es=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function eu(t,e){if("string"!=typeof t||t.length!==e)return!1;let r=0;for(let e=0;e<t.length;e+=4)r+=(0|es[t.charCodeAt(e)])+(0|es[t.charCodeAt(e+1)])+(0|es[t.charCodeAt(e+2)])+(0|es[t.charCodeAt(e+3)]);return r===e}function ec(t){return eu(t,32)&&t!==t9}function el(t){var e;return ec(t.traceId)&&eu(e=t.spanId,16)&&e!==t6}function ef(t){return new t7(t)}var ep=t5.getInstance(),eh=class{startSpan(t,e,r=ep.active()){var n;if(null==e?void 0:e.root)return new t7;let o=r&&ea(r);return null!==(n=o)&&"object"==typeof n&&"spanId"in n&&"string"==typeof n.spanId&&"traceId"in n&&"string"==typeof n.traceId&&"traceFlags"in n&&"number"==typeof n.traceFlags&&el(o)?new t7(o):new t7}
1startActiveSpan(t,e,r,n){let o,i,a;if(arguments.length<2)return;2==arguments.length?a=e:3==arguments.length?(o=e,a=r):(o=e,i=r,a=n);let s=null!=i?i:ep.active(),u=this.startSpan(t,o,s),c=en(s,u);return ep.with(c,a,void 0,u)}},e_=new eh,ed=class{constructor(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}startSpan(t,e,r){return this._getTracer().startSpan(t,e,r)}startActiveSpan(t,e,r,n){let o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)}_getTracer(){if(this._delegate)return this._delegate;let t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):e_}},eE=new class{getTracer(t,e,r){return new eh}},eT=class{getTracer(t,e,r){var n;return null!=(n=this.getDelegateTracer(t,e,r))?n:new ed(this,t,e,r)}getDelegate(){var t;return null!=(t=this._delegate)?t:eE}setDelegate(t){this._delegate=t}getDelegateTracer(t,e,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(t,e,r)}};(p=G||(G={}))[p.NOT_RECORD=0]="NOT_RECORD",p[p.RECORD=1]="RECORD",p[p.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED",(h=Z||(Z={}))[h.INTERNAL=0]="INTERNAL",h[h.SERVER=1]="SERVER",h[h.CLIENT=2]="CLIENT",h[h.PRODUCER=3]="PRODUCER",h[h.CONSUMER=4]="CONSUMER",(_=V||(V={}))[_.UNSET=0]="UNSET",_[_.OK=1]="OK",_[_.ERROR=2]="ERROR";var ey=t5.getInstance(),ev=tU.instance(),eg=new class{getMeter(t,e,r){return tV}},em="metrics",eO=(class t{constructor(){}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalMeterProvider(t){return tI(em,t,tU.instance())}getMeterProvider(){return tk(em)||eg}getMeter(t,e,r){return this.getMeterProvider().getMeter(t,e,r)}disable(){tD(em,tU.instance())}}).getInstance(),eb=tz("OpenTelemetry Baggage Key");function eS(t){return t.getValue(eb)||void 0}function eR(){return eS(t5.getInstance().active())}function eL(t,e){return t.setValue(eb,e)}function eP(t){return t.deleteValue(eb)}var eA="propagation",ew=new class{inject(t,e){}extract(t,e){return t}fields(){return[]}},eC=(class t{constructor(){this.createBaggage=tF,this.getBaggage=eS,this.getActiveBaggage=eR,this.setBaggage=eL,this.deleteBaggage=eP}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalPropagator(t){return tI(eA,t,tU.instance())}inject(t,e,r=t1){return this._getGlobalPropagator().inject(t,e,r)}extract(t,e,r=t0){return this._getGlobalPropagator().extract(t,e,r)}fields(){return this._getGlobalPropagator().fields()}disable(){tD(eA,tU.instance())}_getGlobalPropagator(){return tk(eA)||ew}}).getInstance(),eN="trace",eI=(class t{constructor(){this._proxyTracerProvider=new eT,this.wrapSpanContext=ef,this.isSpanContextValid=el,this.deleteSpan=eo,this.getSpan=ee,this.getActiveSpan=er,this.getSpanContext=ea,this.setSpan=en,this.setSpanContext=ei}static getInstance(){return this._instance||(this._instance=new t),this._instance}setGlobalTracerProvider(t){let e=tI(eN,this._proxyTracerProvider,tU.instance());return e&&this._proxyTracerProvider.setDelegate(t),e}getTracerProvider(){return tk(eN)||this._proxyTracerProvider}getTracer(t,e){return this.getTracerProvider().getTracer(t,e)}disable(){tD(eN,tU.instance()),this._proxyTracerProvider=new eT}}).getInstance();(d=q||(q={}))[d.UNSPECIFIED=0]="UNSPECIFIED",d[d.TRACE=1]="TRACE",d[d.TRACE2=2]="TRACE2",d[d.TRACE3=3]="TRACE3",d[d.TRACE4=4]="TRACE4",d[d.DEBUG=5]="DEBUG",d[d.DEBUG2=6]="DEBUG2",d[d.DEBUG3=7]="DEBUG3",d[d.DEBUG4=8]="DEBUG4",d[d.INFO=9]="INFO",d[d.INFO2=10]="INFO2",d[d.INFO3=11]="INFO3",d[d.INFO4=12]="INFO4",d[d.WARN=13]="WARN",d[d.WARN2=14]="WARN2",d[d.WARN3=15]="WARN3",d[d.WARN4=16]="WARN4",d[d.ERROR=17]="ERROR",d[d.ERROR2=18]="ERROR2",d[d.ERROR3=19]="ERROR3",d[d.ERROR4=20]="ERROR4",d[d.FATAL=21]="FATAL",d[d.FATAL2=22]="FATAL2",d[d.FATAL3=23]="FATAL3",d[d.FATAL4=24]="FATAL4";var ek=function(){function t(){}return t.prototype.emit=function(t){},t}(),eD=new ek,ex=new(function(){function t(){}return t.prototype.getLogger=function(t,e,r){return new ek},t}()),eM=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.emit=function(t){this._getLogger().emit(t)},t.prototype._getLogger=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):eD},t}(),eU=function(){function t(){}return t.prototype.getLogger=function(t,e,r){var n;return null!=(n=this.getDelegateLogger(t,e,r))?n:new eM(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!=(t=this._delegate)?t:ex},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateLogger=function(t,e,r){var n;return null==(n=this._delegate)?void 0:n.getLogger(t,e,r)},t}(),ej="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:t.g,eB=Symbol.for("io.opentelemetry.js.api.logs"),eH=(function(){function t(){this._proxyLoggerProvider=new eU}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalLoggerProvider=function(t){return ej[eB]?this.getLoggerProvider():(ej[eB]=function(e){return 1===e?t:ex},this._proxyLoggerProvider.setDelegate(t),t)},t.prototype.getLoggerProvider=function(){var t,e;return null!=(e=null==(t=ej[eB])?void 0:t.call(ej,1))?e:this._proxyLoggerProvider},t.prototype.getLogger=function(t,e,r){return this.getLoggerProvider().getLogger(t,e,r)},t.prototype.disable=function(){delete ej[eB],this._proxyLoggerProvider=new eU},t})().getInstance(),eF="OT_ZONE_CONTEXT",ez=function(){function t(){this._enabled=!1,this._zoneCounter=0}return t.prototype._activeContextFromZone=function(t){return t&&t.get(eF)||tX},t.prototype._bindFunction=function(t,e){var r=this,n=function(){for(var n=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.with(t,function(){return e.apply(n,o)})};
1return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),n},t.prototype._bindListener=function(t,e){return void 0!==e.__ot_listeners||(e.__ot_listeners={},"function"==typeof e.addEventListener&&(e.addEventListener=this._patchAddEventListener(e,e.addEventListener,t)),"function"==typeof e.removeEventListener&&(e.removeEventListener=this._patchRemoveEventListener(e,e.removeEventListener))),e},t.prototype._createZoneName=function(){this._zoneCounter++;var t=Math.random();return this._zoneCounter+"-"+t},t.prototype._createZone=function(t,e){var r;return Zone.current.fork({name:t,properties:((r={})[eF]=e,r)})},t.prototype._getActiveZone=function(){return Zone.current},t.prototype._patchAddEventListener=function(t,e,r){var n=this;return function(o,i,a){void 0===t.__ot_listeners&&(t.__ot_listeners={});var s=t.__ot_listeners[o];void 0===s&&(s=new WeakMap,t.__ot_listeners[o]=s);var u=n.bind(r,i);return s.set(i,u),e.call(this,o,u,a)}},t.prototype._patchRemoveEventListener=function(t,e){return function(r,n){if(void 0===t.__ot_listeners||void 0===t.__ot_listeners[r])return e.call(this,r,n);var o=t.__ot_listeners[r],i=o.get(n);return o.delete(n),e.call(this,r,i||n)}},t.prototype.active=function(){if(!this._enabled)return tX;var t=this._getActiveZone(),e=this._activeContextFromZone(t);return e||tX},t.prototype.bind=function(t,e){var r;return(void 0===t&&(t=this.active()),"function"==typeof e)?this._bindFunction(t,e):(void 0===(r=e)&&(r={}),"function"==typeof r.addEventListener&&"function"==typeof r.removeEventListener&&this._bindListener(t,e),e)},t.prototype.disable=function(){return this._enabled=!1,this},t.prototype.enable=function(){return this._enabled=!0,this},t.prototype.with=function(t,e,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var i=this._createZoneName();return this._createZone(i,t).run(e,r,n)},t}(),eX=globalThis;function eG(t){return(eX.__Zone_symbol_prefix||"__zone_symbol__")+t}var eZ=Object.getOwnPropertyDescriptor,eV=Object.defineProperty,eq=Object.getPrototypeOf,eW=Object.create,eK=Array.prototype.slice,e$="addEventListener",eY="removeEventListener",eQ=eG(e$),eJ=eG(eY),e0="true",e1="false",e2=eG("");function e3(t,e){return Zone.current.wrap(t,e)}function e4(t,e,r,n,o){return Zone.current.scheduleMacroTask(t,e,r,n,o)}var e5="undefined"!=typeof window,e6=e5?window:void 0,e9=e5&&e6||globalThis;function e8(t,e){for(let r=t.length-1;r>=0;r--)"function"==typeof t[r]&&(t[r]=e3(t[r],e+"_"+r));return t}function e7(t){return!t||!1!==t.writable&&("function"!=typeof t.get||void 0!==t.set)}var rt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,re=!("nw"in e9)&&void 0!==e9.process&&"[object process]"===e9.process.toString(),rr=!re&&!rt&&!!(e5&&e6.HTMLElement),rn=void 0!==e9.process&&"[object process]"===e9.process.toString()&&!rt&&!!(e5&&e6.HTMLElement),ro={},ri=eG("enable_beforeunload"),ra=function(t){let e;if(!(t=t||e9.event))return;let r=ro[t.type];r||(r=ro[t.type]=eG("ON_PROPERTY"+t.type));let n=this||t.target||e9,o=n[r];if(rr&&n===e6&&"error"===t.type){let r=t;!0===(e=o&&o.call(this,r.message,r.filename,r.lineno,r.colno,r.error))&&t.preventDefault()}else e=o&&o.apply(this,arguments),"beforeunload"===t.type&&e9[ri]&&"string"==typeof e?t.returnValue=e:void 0==e||e||t.preventDefault();return e};function rs(t,e,r){let n=eZ(t,e);if(!n&&r&&eZ(r,e)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let o=eG("on"+e+"patched");if(t.hasOwnProperty(o)&&t[o])return;delete n.writable,delete n.value;let i=n.get,a=n.set,s=e.slice(2),u=ro[s];u||(u=ro[s]=eG("ON_PROPERTY"+s)),n.set=function(e){let r=this;r||t!==e9||(r=e9),r&&("function"==typeof r[u]&&r.removeEventListener(s,ra),a&&a.call(r,null),r[u]=e,"function"==typeof e&&r.addEventListener(s,ra,!1))},n.get=function(){let r=this;if(r||t!==e9||(r=e9),!r)return null;let o=r[u];if(o)return o;if(i){let t=i.call(this);if(t)return n.set.call(this,t),"function"==typeof r.removeAttribute&&r.removeAttribute(e),t}return null},eV(t,e,n),t[o]=!0}function ru(t,e,r){if(e)for(let n=0;n<e.length;n++)rs(t,"on"+e[n],r);else{let e=[];for(let r in t)"on"==r.slice(0,2)&&e.push(r);for(let n=0;n<e.length;n++)rs(t,e[n],r)}}var rc=eG("originalInstance");function rl(t){let e,r=e9[t];if(!r)return;e9[eG(t)]=r,e9[t]=function(){let e=e8(arguments,t);switch(e.length){case 0:this[rc]=new r;break;case 1:this[rc]=new r(e[0]);break;case 2:this[rc]=new r(e[0],e[1]);break;case 3:this[rc]=new r(e[0],e[1],e[2]);break;case 4:this[rc]=new r(e[0],e[1],e[2],e[3]);break;default:throw Error("Arg list too long.")}},rh(e9[t],r);let n=new r(function(){});for(e in n)("XMLHttpRequest"!==t||"responseBlob"!==e)&&function(e){"function"==typeof n[e]?e9[t].prototype[e]=function(){return this[rc][e].apply(this[rc],arguments)}:eV(e9[t].prototype,e,{set:function(r){"function"==typeof r?(this[rc][e]=e3(r,t+"."+e),rh(this[rc][e],r)):this[rc][e]=r},get:function(){return this[rc][e]}})}(e);for(e in r)"prototype"!==e&&r.hasOwnProperty(e)&&(e9[t][e]=r[e])}function rf(t,e,r){let n=t;for(;n&&!n.hasOwnProperty(e);)n=eq(n);!n&&t[e]&&(n=t);let o=eG(e),i=null;if(n&&(!(i=n[o])||!n.hasOwnProperty(o))&&(i=n[o]=n[e],e7(n&&eZ(n,e)))){let t=r(i,o,e);n[e]=function(){return t(this,arguments)},rh(n[e],i)}return i}function rp(t,e,r){let n=null;function o(t){let e=t.data;return e.args[e.cbIdx]=function(){t.invoke.apply(this,arguments)},n.apply(e.target,e.args),t}n=rf(t,e,t=>function(e,n){let i=r(e,n);return i.cbIdx>=0&&"function"==typeof n[i.cbIdx]?e4(i.name,n[i.cbIdx],i,o):t.apply(e,n)})}function rh(t,e){t[eG("OriginalDelegate")]=e}var r_=!1,rd=!1;function rE(){if(r_)return rd;r_=!0;try{let t=e6.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(rd=!0)}catch(t){}return rd}function rT(t){return"function"==typeof t}function ry(t){return"number"==typeof t}var rv=!1;if("undefined"!=typeof window)try{let t=Object.defineProperty({},"passive",{get:function(){rv=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){rv=!1}var rg={useG:!0},rm={},rO={}
1,rb=RegExp("^"+e2+"(\\w+)(true|false)$"),rS=eG("propagationStopped");function rR(t,e){let r=(e?e(t):t)+e1,n=(e?e(t):t)+e0;rm[t]={},rm[t][e1]=e2+r,rm[t][e0]=e2+n}function rL(t,e,r,n){let o=n&&n.add||e$,i=n&&n.rm||eY,a=n&&n.listeners||"eventListeners",s=n&&n.rmAll||"removeAllListeners",u=eG(o),c="."+o+":",l="prependListener",f="."+l+":",p=function(t,e,r){let n;if(t.isRemoved)return;let o=t.callback;"object"==typeof o&&o.handleEvent&&(t.callback=t=>o.handleEvent(t),t.originalDelegate=o);try{t.invoke(t,e,[r])}catch(t){n=t}let a=t.options;if(a&&"object"==typeof a&&a.once){let n=t.originalDelegate?t.originalDelegate:t.callback;e[i].call(e,r.type,n,a)}return n};function h(r,n,o){if(!(n=n||t.event))return;let i=r||n.target||t,a=i[rm[n.type][o?e0:e1]];if(a){let t=[];if(1===a.length){let e=p(a[0],i,n);e&&t.push(e)}else{let e=a.slice();for(let r=0;r<e.length&&(!n||!0!==n[rS]);r++){let o=p(e[r],i,n);o&&t.push(o)}}if(1===t.length)throw t[0];for(let r=0;r<t.length;r++){let n=t[r];e.nativeScheduleMicroTask(()=>{throw n})}}}let _=function(t){return h(this,t,!1)},d=function(t){return h(this,t,!0)},E=[];for(let e=0;e<r.length;e++)E[e]=function(e,r){let n;if(!e)return!1;let p=!0;r&&void 0!==r.useG&&(p=r.useG);let h=r&&r.vh,E=!0;r&&void 0!==r.chkDup&&(E=r.chkDup);let T=!1;r&&void 0!==r.rt&&(T=r.rt);let y=e;for(;y&&!y.hasOwnProperty(o);)y=eq(y);if(!y&&e[o]&&(y=e),!y||y[u])return!1;let v=r&&r.eventNameToString,g={},m=y[u]=y[o],O=y[eG(i)]=y[i],b=y[eG(a)]=y[a],S=y[eG(s)]=y[s];r&&r.prepend&&(n=y[eG(r.prepend)]=y[r.prepend]);let R=p?function(t){if(!g.isExisting)return m.call(g.target,g.eventName,g.capture?d:_,g.options)}:function(t){return m.call(g.target,g.eventName,t.invoke,g.options)},L=p?function(t){if(!t.isRemoved){let e,r=rm[t.eventName];r&&(e=r[t.capture?e0:e1]);let n=e&&t.target[e];if(n){for(let r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1),t.isRemoved=!0,t.removeAbortListener&&(t.removeAbortListener(),t.removeAbortListener=null),0===n.length&&(t.allRemoved=!0,t.target[e]=null);break}}}if(t.allRemoved)return O.call(t.target,t.eventName,t.capture?d:_,t.options)}:function(t){return O.call(t.target,t.eventName,t.invoke,t.options)},P=r&&r.diff?r.diff:function(t,e){let r=typeof e;return"function"===r&&t.callback===e||"object"===r&&t.originalDelegate===e},A=Zone[eG("UNPATCHED_EVENTS")],w=t[eG("PASSIVE_EVENTS")],C=function(e,n,o,i,a=!1,s=!1){return function(){var u;let c,l=this||t,f=arguments[0];r&&r.transferEventName&&(f=r.transferEventName(f));let _=arguments[1];if(!_||re&&"uncaughtException"===f)return e.apply(this,arguments);let d=!1;if("function"!=typeof _){if(!_.handleEvent)return e.apply(this,arguments);d=!0}if(h&&!h(e,_,l,arguments))return;let T=rv&&!!w&&-1!==w.indexOf(f),y=function(t){if("object"==typeof t&&null!==t){let e={...t};return t.signal&&(e.signal=t.signal),e}return t}((u=arguments[2],!rv&&"object"==typeof u&&u?!!u.capture:rv&&T?"boolean"==typeof u?{capture:u,passive:!0}:u?"object"==typeof u&&!1!==u.passive?{...u,passive:!0}:u:{passive:!0}:u)),m=null==y?void 0:y.signal;if(null==m?void 0:m.aborted)return;if(A){for(let t=0;t<A.length;t++)if(f===A[t])if(T)return e.call(l,f,_,y);else return e.apply(this,arguments)}let O=!!y&&("boolean"==typeof y||y.capture),b=!!y&&"object"==typeof y&&y.once,S=Zone.current,R=rm[f];R||(rR(f,v),R=rm[f]);let L=R[O?e0:e1],C=l[L],N=!1;if(C){if(N=!0,E){for(let t=0;t<C.length;t++)if(P(C[t],_))return}}else C=l[L]=[];let I=l.constructor.name,k=rO[I];k&&(c=k[f]),c||(c=I+n+(v?v(f):f)),g.options=y,b&&(g.options.once=!1),g.target=l,g.capture=O,g.eventName=f,g.isExisting=N;let D=p?rg:void 0;D&&(D.taskData=g),m&&(g.options.signal=void 0);let x=S.scheduleEventTask(c,_,D,o,i);if(m){g.options.signal=m;let t=()=>x.zone.cancelTask(x);e.call(m,"abort",t,{once:!0}),x.removeAbortListener=()=>m.removeEventListener("abort",t)}if(g.target=null,D&&(D.taskData=null),b&&(g.options.once=!0),(rv||"boolean"!=typeof x.options)&&(x.options=y),x.target=l,x.capture=O,x.eventName=f,d&&(x.originalDelegate=_),s?C.unshift(x):C.push(x),a)return l}};return y[o]=C(m,c,R,L,T),n&&(y[l]=C(n,f,function(t){return n.call(g.target,g.eventName,t.invoke,g.options)},L,T,!0)),y[i]=function(){let e,n=this||t,o=arguments[0];r&&r.transferEventName&&(o=r.transferEventName(o));let i=arguments[2],a=!!i&&("boolean"==typeof i||i.capture),s=arguments[1];if(!s)return O.apply(this,arguments);if(h&&!h(O,s,n,arguments))return;let u=rm[o];u&&(e=u[a?e0:e1]);let c=e&&n[e];if(c)for(let t=0;t<c.length;t++){let r=c[t];if(P(r,s)){if(c.splice(t,1),r.isRemoved=!0,0===c.length&&(r.allRemoved=!0,n[e]=null,a||"string"!=typeof o||(n[e2+"ON_PROPERTY"+o]=null)),r.zone.cancelTask(r),T)return n;return}}return O.apply(this,arguments)},y[a]=function(){let e=this||t,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));let o=[],i=rP(e,v?v(n):n);for(let t=0;t<i.length;t++){let e=i[t],r=e.originalDelegate?e.originalDelegate:e.callback;o.push(r)}return o},y[s]=function(){let e=this||t,n=arguments[0];if(n){r&&r.transferEventName&&(n=r.transferEventName(n));let t=rm[n];if(t){let r=t[e1],o=t[e0],a=e[r],s=e[o];if(a){let t=a.slice();for(let e=0;e<t.length;e++){let r=t[e],o=r.originalDelegate?r.originalDelegate:r.callback;this[i].call(this,n,o,r.options)}}if(s){let t=s.slice();for(let e=0;e<t.length;e++){let r=t[e],o=r.originalDelegate?r.originalDelegate:r.callback;this[i].call(this,n,o,r.options)}}}}else{let t=Object.keys(e);for(let e=0;e<t.length;e++){let r=t[e],n=rb.exec(r),o=n&&n[1];o&&"removeListener"!==o&&this[s].call(this,o)}this[s].call(this,"removeListener")}if(T)return this},rh(y[o],m),rh(y[i],O),S&&rh(y[s],S),b&&rh(y[a],b),!0}(r[e],n);return E}function rP(t,e){if(!e){let r=[];for(let n in t){let o=rb.exec(n),i=o&&o[1];if(i&&(!e||i===e)){let e=t[n];if(e)for(let t=0;t<e.length;t++)r.push(e[t])}}return r}let r=rm[e];r||(rR(e),r=rm[e]);let n=t[r[e1]],o=t[r[e0]];return n?o?n.concat(o):n.slice():o?o.slice():[]}function rA(t,e){let r=t.Event;r&&r.prototype&&e.patchMethod(r.prototype,"stopImmediatePropagation",t=>function(e,r){e[rS]=!0,t&&t.apply(e,r)})}var rw=eG("zoneTask");function rC(t,e,r,n){let o=null,i=null;e+=n,r+=n;let a={};function s(e){let r=e.data;r.args[0]=function(){return e.invoke.apply(this,arguments)};let n=o.apply(t,r.args);return ry(n)?r.handleId=n:(r.handle=n,r.isRefreshable=rT(n.refresh)),e}function u(e){let{handle:r,handleId:n}=e.data;return i.call(t,null!=r?r:n)}o=rf(t,e,r=>function(o,i){var c;if(!rT(i[0]))return r.apply(t,i);{let t={isRefreshable:!1,isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?i[1]||0:void 0,args:i},r=i[0];i[0]=function(){try{return r.apply(this,arguments)}finally{let{handle:e,handleId:r,isPeriodic:n,isRefreshable:o}=t;n||o||(r?delete a[r]:e&&(e[rw]=null))}};let o=e4(e,i[0],t,s,u);if(!o)return o;let{handleId:l,handle:f,isRefreshable:p,isPeriodic:h}=o.data;if(l)a[l]=o;else if(f&&(f[rw]=o,p&&!h)){let t=f.refresh;f.refresh=function(){let{zone:e,state:r}=o;return"notScheduled"===r?(o._state="scheduled",e._updateTaskCount(o,1)):"running"===r&&(o._state="scheduling"),t.call(this)}}return null!=(c=null!=f?f:l)?c:o}}),i=rf(t,r,e=>function(r,n){let o,i=n[0];ry(i)?(o=a[i],delete a[i]):(o=null==i?void 0:i[rw])?i[rw]=null:o=i,(null==o?void 0:o.type)?o.cancelFn&&o.zone.cancelTask(o):e.apply(t,n)})}function rN(t,e,r){if(!r||0===r.length)return e;let n=r.filter(e=>e.target===t);
1if(!n||0===n.length)return e;let o=n[0].ignoreProperties;return e.filter(t=>-1===o.indexOf(t))}function rI(t,e,r,n){if(!t)return;let o=rN(t,e,r);ru(t,o,n)}function rk(t){return Object.getOwnPropertyNames(t).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}function rD(t,e,r,n,o){let i=Zone.__symbol__(n);if(e[i])return;let a=e[i]=e[n];e[n]=function(i,s,u){return s&&s.prototype&&o.forEach(function(e){let o=`${r}.${n}::`+e,i=s.prototype;try{if(i.hasOwnProperty(e)){let r=t.ObjectGetOwnPropertyDescriptor(i,e);r&&r.value?(r.value=t.wrapWithCurrentZone(r.value,o),t._redefineProperty(s.prototype,e,r)):i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))}else i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))}catch(t){}}),a.call(e,i,s,u)},t.attachOriginToPatched(e[n],a)}var rx=function(){let t=globalThis,e=!0===t[eG("forceDuplicateZoneCheck")];if(t.Zone&&(e||"function"!=typeof t.Zone.__symbol__))throw Error("Zone already loaded.");return null!=t.Zone||(t.Zone=function(){let t,e=eX.performance;function r(t){e&&e.mark&&e.mark(t)}function n(t,r){e&&e.measure&&e.measure(t,r)}r("Zone");let o=class t{static assertZonePatched(){if(eX.Promise!==L.ZoneAwarePromise)throw Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=t.current;for(;e.parent;)e=e.parent;return e}static get current(){return A.zone}static get currentTask(){return w}static __load_patch(e,o,i=!1){if(L.hasOwnProperty(e)){let t=!0===eX[eG("forceDuplicateZoneCheck")];if(!i&&t)throw Error("Already loaded patch: "+e)}else if(!eX["__Zone_disable_"+e]){let i="Zone:"+e;r(i),L[e]=o(eX,t,P),n(i,i)}}get parent(){return this._parent}get name(){return this._name}constructor(t,e){this._parent=t,this._name=e?e.name||"unnamed":"<root>",this._properties=e&&e.properties||{},this._zoneDelegate=new a(this,this._parent&&this._parent._zoneDelegate,e)}get(t){let e=this.getZoneWith(t);if(e)return e._properties[t]}getZoneWith(t){let e=this;for(;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}fork(t){if(!t)throw Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,e){if("function"!=typeof t)throw Error("Expecting function got: "+t);let r=this._zoneDelegate.intercept(this,t,e),n=this;return function(){return n.runGuarded(r,this,arguments,e)}}run(t,e,r,n){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,t,e,r,n)}finally{A=A.parent}}runGuarded(t,e=null,r,n){A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,r,n)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{A=A.parent}}runTask(t,e,r){if(t.zone!=this)throw Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||E).name+"; Execution: "+this.name+")");let{type:n,data:{isPeriodic:o=!1,isRefreshable:i=!1}={}}=t;if(t.state===T&&(n===R||n===S))return;let a=t.state!=g;a&&t._transitionTo(g,v);let s=w;w=t,A={parent:A,zone:this};try{n!=S||!t.data||o||i||(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{let e=t.state;if(e!==T&&e!==O)if(n==R||o||i&&e===y)a&&t._transitionTo(v,g,y);else{let e=t._zoneDelegates;this._updateTaskCount(t,-1),a&&t._transitionTo(T,g,T),i&&(t._zoneDelegates=e)}A=A.parent,w=s}}scheduleTask(t){if(t.zone&&t.zone!==this){let e=this;for(;e;){if(e===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);e=e.parent}}t._transitionTo(y,T);let e=[];t._zoneDelegates=e,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(e){throw t._transitionTo(O,y,T),this._zoneDelegate.handleError(this,e),e}return t._zoneDelegates===e&&this._updateTaskCount(t,1),t.state==y&&t._transitionTo(v,y),t}scheduleMicroTask(t,e,r,n){return this.scheduleTask(new s(b,t,e,r,n,void 0))}scheduleMacroTask(t,e,r,n,o){return this.scheduleTask(new s(S,t,e,r,n,o))}scheduleEventTask(t,e,r,n,o){return this.scheduleTask(new s(R,t,e,r,n,o))}cancelTask(t){if(t.zone!=this)throw Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||E).name+"; Execution: "+this.name+")");if(t.state===v||t.state===g){t._transitionTo(m,v,g);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(O,m),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(T,m),t.runCount=-1,t}}_updateTaskCount(t,e){let r=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(let n=0;n<r.length;n++)r[n]._updateTaskCount(t.type,e)}};o.__symbol__=eG;
1let i={name:"",onHasTask:(t,e,r,n)=>t.hasTask(r,n),onScheduleTask:(t,e,r,n)=>t.scheduleTask(r,n),onInvokeTask:(t,e,r,n,o,i)=>t.invokeTask(r,n,o,i),onCancelTask:(t,e,r,n)=>t.cancelTask(r,n)};class a{get zone(){return this._zone}constructor(t,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=t,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const n=r&&r.onHasTask,o=e&&e._hasTaskZS;(n||o)&&(this._hasTaskZS=n?r:i,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this._zone))}fork(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new o(t,e)}intercept(t,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,r):e}invoke(t,e,r,n,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,r,n,o):e.apply(r,n)}handleError(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}scheduleTask(t,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),(r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e))||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else if(e.type==b)_(e);else throw Error("Task is missing scheduleFn.");return r}invokeTask(t,e,r,n){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,r,n):e.callback.apply(r,n)}cancelTask(t,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(e){this.handleError(t,e)}}_updateTaskCount(t,e){let r=this._taskCounts,n=r[t],o=r[t]=n+e;if(o<0)throw Error("More tasks executed then were scheduled.");if(0==n||0==o){let e={microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:t};this.hasTask(this._zone,e)}}}class s{constructor(t,e,r,n,o,i){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=e,this.data=n,this.scheduleFn=o,this.cancelFn=i,!r)throw Error("callback is not defined");this.callback=r;const a=this;t===R&&n&&n.useG?this.invoke=s.invokeTask:this.invoke=function(){return s.invokeTask.call(eX,a,this,arguments)}}static invokeTask(t,e,r){t||(t=this),C++;try{return t.runCount++,t.zone.runTask(t,e,r)}finally{1==C&&d(),C--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(T,y)}_transitionTo(t,e,r){if(this._state===e||this._state===r)this._state=t,t==T&&(this._zoneDelegates=null);else throw Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}
1toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let u=eG("setTimeout"),c=eG("Promise"),l=eG("then"),f=[],p=!1;function h(e){if(!t&&eX[c]&&(t=eX[c].resolve(0)),t){let r=t[l];r||(r=t.then),r.call(t,e)}else eX[u](e,0)}function _(t){0===C&&0===f.length&&h(d),t&&f.push(t)}function d(){if(!p){for(p=!0;f.length;){let t=f;f=[];for(let e=0;e<t.length;e++){let r=t[e];try{r.zone.runTask(r,null,null)}catch(t){P.onUnhandledError(t)}}}P.microtaskDrainDone(),p=!1}}let E={name:"NO ZONE"},T="notScheduled",y="scheduling",v="scheduled",g="running",m="canceling",O="unknown",b="microTask",S="macroTask",R="eventTask",L={},P={symbol:eG,currentZoneFrame:()=>A,onUnhandledError:N,microtaskDrainDone:N,scheduleMicroTask:_,showUncaughtError:()=>!o[eG("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:N,patchMethod:()=>N,bindArguments:()=>[],patchThen:()=>N,patchMacroTask:()=>N,patchEventPrototype:()=>N,isIEOrEdge:()=>!1,getGlobalObjects:()=>void 0,ObjectDefineProperty:()=>N,ObjectGetOwnPropertyDescriptor:()=>void 0,ObjectCreate:()=>void 0,ArraySlice:()=>[],patchClass:()=>N,wrapWithCurrentZone:()=>N,filterProperties:()=>[],attachOriginToPatched:()=>N,_redefineProperty:()=>N,patchCallbacks:()=>N,nativeScheduleMicroTask:h},A={parent:null,zone:new o(null,null)},w=null,C=0;function N(){}return n("Zone","Zone"),o}()),t.Zone}();rx.__load_patch("ZoneAwarePromise",(t,e,r)=>{let n=Object.getOwnPropertyDescriptor,o=Object.defineProperty,i=r.symbol,a=[],s=!1!==t[i("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],u=i("Promise"),c=i("then");r.onUnhandledError=t=>{if(r.showUncaughtError()){let e=t&&t.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",t.zone.name,"; Task:",t.task&&t.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(t)}},r.microtaskDrainDone=()=>{for(;a.length;){let t=a.shift();try{t.zone.runGuarded(()=>{if(t.throwOriginal)throw t.rejection;throw t})}catch(t){!function(t){r.onUnhandledError(t);try{let r=e[l];"function"==typeof r&&r.call(this,t)}catch(t){}}(t)}}};let l=i("unhandledPromiseRejectionHandler");function f(t){return t}function p(t){return P.reject(t)}let h=i("state"),_=i("value"),d=i("finally"),E=i("parentPromiseValue"),T=i("parentPromiseState");function y(t,e){return r=>{try{m(t,e,r)}catch(e){m(t,!1,e)}}}let v=function(){let t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},g=i("currentTaskTrace");function m(t,n,i){let u=v();if(t===i)throw TypeError("Promise resolved with itself");if(null===t[h]){let l=null;try{("object"==typeof i||"function"==typeof i)&&(l=i&&i.then)}catch(e){return u(()=>{m(t,!1,e)})(),t}if(!1!==n&&i instanceof P&&i.hasOwnProperty(h)&&i.hasOwnProperty(_)&&null!==i[h])b(i),m(t,i[h],i[_]);else if(!1!==n&&"function"==typeof l)try{l.call(i,u(y(t,n)),u(y(t,!1)))}catch(e){u(()=>{m(t,!1,e)})()}else{t[h]=n;let u=t[_];if(t[_]=i,t[d]===d&&!0===n&&(t[h]=t[T],t[_]=t[E]),!1===n&&i instanceof Error){let t=e.currentTask&&e.currentTask.data&&e.currentTask.data.__creationTrace__;t&&o(i,g,{configurable:!0,enumerable:!1,writable:!0,value:t})}for(let e=0;e<u.length;)S(t,u[e++],u[e++],u[e++],u[e++]);if(0==u.length&&!1==n){t[h]=0;let n=i;try{var c;throw Error("Uncaught (in promise): "+((c=i)&&c.toString===Object.prototype.toString?(c.constructor&&c.constructor.name||"")+": "+JSON.stringify(c):c?c.toString():Object.prototype.toString.call(c))+(i&&i.stack?"\n"+i.stack:""))}catch(t){n=t}s&&(n.throwOriginal=!0),n.rejection=i,n.promise=t,n.zone=e.current,n.task=e.currentTask,a.push(n),r.scheduleMicroTask()}}}return t}let O=i("rejectionHandledHandler");function b(t){if(0===t[h]){try{let r=e[O];r&&"function"==typeof r&&r.call(this,{rejection:t[_],promise:t})}catch(t){}t[h]=!1;for(let e=0;e<a.length;e++)t===a[e].promise&&a.splice(e,1)}}function S(t,e,r,n,o){b(t);let i=t[h],a=i?"function"==typeof n?n:f:"function"==typeof o?o:p;e.scheduleMicroTask("Promise.then",()=>{try{let n=t[_],o=!!r&&d===r[d];o&&(r[E]=n,r[T]=i);let s=e.run(a,void 0,o&&a!==p&&a!==f?[]:[n]);m(r,!0,s)}catch(t){m(r,!1,t)}},r)}let R=function(){},L=t.AggregateError;class P{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(t){return t instanceof P?t:m(new this(null),!0,t)}static reject(t){return m(new this(null),!1,t)}static withResolvers(){let t={};return t.promise=new P((e,r)=>{t.resolve=e,t.reject=r}),t}static any(t){if(!t||"function"!=typeof t[Symbol.iterator])return Promise.reject(new L([],"All promises were rejected"));let e=[],r=0;try{for(let n of t)r++,e.push(P.resolve(n))}catch(t){return Promise.reject(new L([],"All promises were rejected"))}if(0===r)return Promise.reject(new L([],"All promises were rejected"));let n=!1,o=[];return new P((t,i)=>{for(let a=0;a<e.length;a++)e[a].then(e=>{n||(n=!0,t(e))},t=>{o.push(t),0==--r&&(n=!0,i(new L(o,"All promises were rejected")))})})}static race(t){let e,r,n=new this((t,n)=>{e=t,r=n});function o(t){e(t)}function i(t){r(t)}for(let e of t){var a;(a=e)&&a.then||(e=this.resolve(e)),e.then(o,i)}return n}static all(t){return P.allWithCallback(t)}static allSettled(t){return(this&&this.prototype instanceof P?this:P).allWithCallback(t,{thenCallback:t=>({status:"fulfilled",value:t}),errorCallback:t=>({status:"rejected",reason:t})})}static allWithCallback(t,e){let r,n,o=new this((t,e)=>{r=t,n=e}),i=2,a=0,s=[];for(let o of t){var u;(u=o)&&u.then||(o=this.resolve(o));let t=a;try{o.then(n=>{s[t]=e?e.thenCallback(n):n,i--,0===i&&r(s)},o=>{e?(s[t]=e.errorCallback(o),i--,0===i&&r(s)):n(o)})}catch(t){n(t)}i++,a++}return 0==(i-=2)&&r(s),o}
1constructor(t){if(!(this instanceof P))throw Error("Must be an instanceof Promise.");this[h]=null,this[_]=[];try{const e=v();t&&t(e(y(this,!0)),e(y(this,!1)))}catch(t){m(this,!1,t)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return P}then(t,r){var n;let o=null==(n=this.constructor)?void 0:n[Symbol.species];o&&"function"==typeof o||(o=this.constructor||P);let i=new o(R),a=e.current;return null==this[h]?this[_].push(a,i,t,r):S(this,a,i,t,r),i}catch(t){return this.then(null,t)}finally(t){var r;let n=null==(r=this.constructor)?void 0:r[Symbol.species];n&&"function"==typeof n||(n=P);let o=new n(R);o[d]=d;let i=e.current;return null==this[h]?this[_].push(i,o,t,t):S(this,i,o,t,t),o}}P.resolve=P.resolve,P.reject=P.reject,P.race=P.race,P.all=P.all;let A=t[u]=t.Promise;t.Promise=P;let w=i("thenPatched");function C(t){let e=t.prototype,r=n(e,"then");if(r&&(!1===r.writable||!r.configurable))return;let o=e.then;e[c]=o,t.prototype.then=function(t,e){return new P((t,e)=>{o.call(this,t,e)}).then(t,e)},t[w]=!0}return r.patchThen=C,A&&(C(A),rf(t,"fetch",t=>function(e,r){let n=t.apply(e,r);if(n instanceof P)return n;let o=n.constructor;return o[w]||C(o),n})),Promise[e.__symbol__("uncaughtPromiseErrors")]=a,P}),rx.__load_patch("toString",t=>{let e=Function.prototype.toString,r=eG("OriginalDelegate"),n=eG("Promise"),o=eG("Error"),i=function(){if("function"==typeof this){let i=this[r];if(i)if("function"==typeof i)return e.call(i);else return Object.prototype.toString.call(i);if(this===Promise){let r=t[n];if(r)return e.call(r)}if(this===Error){let r=t[o];if(r)return e.call(r)}}return e.call(this)};i[r]=e,Function.prototype.toString=i;let a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}}),rx.__load_patch("util",(t,e,r)=>{let n=rk(t);r.patchOnProperties=ru,r.patchMethod=rf,r.bindArguments=e8,r.patchMacroTask=rp;let o=e.__symbol__("BLACK_LISTED_EVENTS"),i=e.__symbol__("UNPATCHED_EVENTS");t[i]&&(t[o]=t[i]),t[o]&&(e[o]=e[i]=t[o]),r.patchEventPrototype=rA,r.patchEventTarget=rL,r.isIEOrEdge=rE,r.ObjectDefineProperty=eV,r.ObjectGetOwnPropertyDescriptor=eZ,r.ObjectCreate=eW,r.ArraySlice=eK,r.patchClass=rl,r.wrapWithCurrentZone=e3,r.filterProperties=rN,r.attachOriginToPatched=rh,r._redefineProperty=Object.defineProperty,r.patchCallbacks=rD,r.getGlobalObjects=()=>({globalSources:rO,zoneSymbolEventNames:rm,eventNames:n,isBrowser:rr,isMix:rn,isNode:re,TRUE_STR:e0,FALSE_STR:e1,ZONE_SYMBOL_PREFIX:e2,ADD_EVENT_LISTENER_STR:e$,REMOVE_EVENT_LISTENER_STR:eY})}),rx.__load_patch("legacy",t=>{let e=t[rx.__symbol__("legacyPatch")];e&&e()}),rx.__load_patch("timers",t=>{let e="clear";rC(t,"set",e,"Timeout"),rC(t,"set",e,"Interval"),rC(t,"set",e,"Immediate")}),rx.__load_patch("requestAnimationFrame",t=>{rC(t,"request","cancel","AnimationFrame"),rC(t,"mozRequest","mozCancel","AnimationFrame"),rC(t,"webkitRequest","webkitCancel","AnimationFrame")}),rx.__load_patch("blocking",(t,e)=>{let r=["alert","prompt","confirm"];for(let n=0;n<r.length;n++)rf(t,r[n],(r,n,o)=>function(n,i){return e.current.run(r,t,i,o)})}),rx.__load_patch("EventTarget",(t,e,r)=>{r.patchEventPrototype(t,r),function(t,e){if(Zone[e.symbol("patchEventTarget")])return;let{eventNames:r,zoneSymbolEventNames:n,TRUE_STR:o,FALSE_STR:i,ZONE_SYMBOL_PREFIX:a}=e.getGlobalObjects();for(let t=0;t<r.length;t++){let e=r[t],s=a+(e+i),u=a+(e+o);n[e]={},n[e][i]=s,n[e][o]=u}let s=t.EventTarget;s&&s.prototype&&e.patchEventTarget(t,e,[s&&s.prototype])}(t,r);let n=t.XMLHttpRequestEventTarget;n&&n.prototype&&r.patchEventTarget(t,r,[n.prototype])}),rx.__load_patch("MutationObserver",(t,e,r)=>{rl("MutationObserver"),rl("WebKitMutationObserver")}),rx.__load_patch("IntersectionObserver",(t,e,r)=>{rl("IntersectionObserver")}),rx.__load_patch("FileReader",(t,e,r)=>{rl("FileReader")}),rx.__load_patch("on_property",(t,e,r)=>{!function(t,e){if(re&&!rn||Zone[t.symbol("patchEvents")])return;let r=e.__Zone_ignore_on_properties,n=[];if(rr){let t=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let e=!function(){try{let t=e6.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(t){}return!1}()?[]:[{target:t,ignoreProperties:["error"]}];rI(t,rk(t),r?r.concat(e):r,eq(t))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let t=0;t<n.length;t++){let o=e[n[t]];o&&o.prototype&&rI(o.prototype,rk(o.prototype),r)}}(r,t)}),rx.__load_patch("customElements",(t,e,r)=>{!function(t,e){let{isBrowser:r,isMix:n}=e.getGlobalObjects();(r||n)&&t.customElements&&"customElements"in t&&e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(t,r)}),rx.__load_patch("XHR",(t,e)=>{!function(t){let u=t.XMLHttpRequest;if(!u)return;let c=u.prototype,l=c[eQ],f=c[eJ];if(!l){let e=t.XMLHttpRequestEventTarget;if(e){let t=e.prototype;l=t[eQ],f=t[eJ]}}let p="readystatechange",h="scheduled";function _(t){let n=t.data,a=n.target;a[i]=!1,a[s]=!1;let u=a[o];l||(l=a[eQ],f=a[eJ]),u&&f.call(a,p,u);let c=a[o]=()=>
1{if(a.readyState===a.DONE)if(!n.aborted&&a[i]&&t.state===h){let r=a[e.__symbol__("loadfalse")];if(0!==a.status&&r&&r.length>0){let o=t.invoke;t.invoke=function(){let r=a[e.__symbol__("loadfalse")];for(let e=0;e<r.length;e++)r[e]===t&&r.splice(e,1);n.aborted||t.state!==h||o.call(t)},r.push(t)}else t.invoke()}else n.aborted||!1!==a[i]||(a[s]=!0)};return l.call(a,p,c),a[r]||(a[r]=t),g.apply(a,n.args),a[i]=!0,t}function d(){}function E(t){let e=t.data;return e.aborted=!0,m.apply(e.target,e.args)}let T=rf(c,"open",()=>function(t,e){return t[n]=!1==e[2],t[a]=e[1],T.apply(t,e)}),y=eG("fetchTaskAborting"),v=eG("fetchTaskScheduling"),g=rf(c,"send",()=>function(t,r){if(!0===e.current[v]||t[n])return g.apply(t,r);{let e={target:t,url:t[a],isPeriodic:!1,args:r,aborted:!1},n=e4("XMLHttpRequest.send",d,e,_,E);t&&!0===t[s]&&!e.aborted&&n.state===h&&n.invoke()}}),m=rf(c,"abort",()=>function(t,n){let o=t[r];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===e.current[y])return m.apply(t,n)})}(t);let r=eG("xhrTask"),n=eG("xhrSync"),o=eG("xhrListener"),i=eG("xhrScheduled"),a=eG("xhrURL"),s=eG("xhrErrorBeforeScheduled")}),rx.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,e){let r=t.constructor.name;for(let n=0;n<e.length;n++){let o=e[n],i=t[o];if(i){if(!e7(eZ(t,o)))continue;t[o]=(t=>{let e=function(){return t.apply(this,e8(arguments,r+"."+o))};return rh(e,t),e})(i)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),rx.__load_patch("PromiseRejectionEvent",(t,e)=>{function r(e){return function(r){rP(t,e).forEach(n=>{let o=t.PromiseRejectionEvent;if(o){let t=new o(e,{promise:r.promise,reason:r.rejection});n.invoke(t)}})}}t.PromiseRejectionEvent&&(e[eG("unhandledPromiseRejectionHandler")]=r("unhandledrejection"),e[eG("rejectionHandledHandler")]=r("rejectionhandled"))}),rx.__load_patch("queueMicrotask",(t,e,r)=>{r.patchMethod(t,"queueMicrotask",t=>function(t,e){Zone.current.scheduleMicroTask("queueMicrotask",e[0])})});var rM=function(){function t(t){this._delegate=t}return t.prototype.export=function(t,e){this._delegate.export(t,e)},t.prototype.forceFlush=function(){return this._delegate.forceFlush()},t.prototype.shutdown=function(){return this._delegate.shutdown()},t}(),rU=(E=function(t,e){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),rj=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.name="OTLPExporterError",o.data=n,o.code=r,o}return rU(e,t),e}(Error),rB=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},rH=function(){function t(t){this._sendingPromises=[],this._concurrencyLimit=t}return t.prototype.pushPromise=function(t){var e=this;if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(t);var r=function(){var r=e._sendingPromises.indexOf(t);e._sendingPromises.splice(r,1)};t.then(r,r)},t.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},t.prototype.awaitAll=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function(){return rB(this,function(t){switch(t.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return t.sent(),[2]}})},new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},t}(),rF=tz("OpenTelemetry SDK Context Key SUPPRESS_TRACING"),rz=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function rX(t){return null==t||(Array.isArray(t)?function(t){try{for(var e,r,n,o=rz(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(rG(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):rG(t))}function rG(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var rZ=function(t){var e;ev.error("string"==typeof(e=t)?e:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(e)))};function rV(t){try{rZ(t)}catch(t){}}(T=W||(W={})).AlwaysOff="always_off",T.AlwaysOn="always_on",T.ParentBasedAlwaysOff="parentbased_always_off",T.ParentBasedAlwaysOn="parentbased_always_on",T.ParentBasedTraceIdRatio="parentbased_traceidratio",T.TraceIdRatio="traceidratio";var rq=["OTEL_SDK_DISABLED"],rW=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"],rK=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"],r$=1/0,rY={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/s
1pans",OTEL_LOG_LEVEL:z.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:r$,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:r$,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:r$,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:W.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]},rQ={ALL:z.ALL,VERBOSE:z.VERBOSE,DEBUG:z.DEBUG,INFO:z.INFO,WARN:z.WARN,ERROR:z.ERROR,NONE:z.NONE};function rJ(t){var e={};for(var r in rY)if("OTEL_LOG_LEVEL"===r)!function(t,e,r){var n=r[t];if("string"==typeof n){var o=rQ[n.toUpperCase()];null!=o&&(e[t]=o)}}(r,e,t);else if(rq.indexOf(r)>-1)!function(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}(r,e,t);else if(rW.indexOf(r)>-1)!function(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(i<n?e[t]=n:i>o?e[t]=o:e[t]=i)}}(r,e,t);else if(rK.indexOf(r)>-1)!function(t,e,r,n){void 0===n&&(n=",");var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}(r,e,t);else{var n=t[r];null!=n&&(e[r]=String(n))}return e}var r0="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:t.g;function r1(){return Object.assign({},rY,rJ(r0))}function r2(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function r3(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n<t.length;n+=2){var o=r2(t.charCodeAt(n)),i=r2(t.charCodeAt(n+1));e[r++]=o<<4|i}return e}var r4=performance,r5="exception.type",r6="exception.message",r9="http.method",r8="http.url",r7="http.host",nt="http.scheme",ne="http.status_code",nr="http.user_agent",nn="http.request_content_length_uncompressed",no="http.response_content_length",ni="http.response_content_length_uncompressed",na="process.runtime.name",ns="service.name",nu="telemetry.sdk.name",nc="telemetry.sdk.language",nl="telemetry.sdk.version",nf="webjs",np=((K={})[nu]="opentelemetry",K[na]="browser",K[nc]=nf,K[nl]="1.29.0",K);function nh(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}function n_(){var t=r4.timeOrigin;return"number"!=typeof t&&(t=r4.timing&&r4.timing.fetchStart),t}function nd(t){var e,r,n;return e=nh(n_()),r=nh("number"==typeof t?t:r4.now()),(n=[e[0]+r[0],e[1]+r[1]])[1]>=1e9&&(n[1]-=1e9,n[0]+=1),n}function nE(t){var e;if(Array.isArray(e=t)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1])return t;if("number"==typeof t)if(t<n_())return nd(t);else return nh(t);if(t instanceof Date)return nh(t.getTime());throw TypeError("Invalid input type")}function nT(t){return 1e9*t[0]+t[1]}(y=$||($={}))[y.SUCCESS=0]="SUCCESS",y[y.FAILED=1]="FAILED";var ny="[_0-9a-z-*/]",nv=RegExp("^(?:[a-z]"+ny+"{0,255}|"+("[a-z0-9]"+ny+"{0,240}@[a-z]")+ny+"{0,13})$"),ng=/^[ -~]{0,255}[!-~]$/,nm=/,|=/,nO=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){!(t.length>512)&&(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);nv.test(o)&&ng.test(i)&&!nm.test(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),nb="traceparent",nS="tracestate",nR=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function nL(){}nL.prototype.inject=function(t,e,r){var n=eI.getSpanContext(t);if(!(!n||!0===t.getValue(rF))&&el(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||X.NONE).toString(16);r.set(e,nb,o),n.traceState&&r.set(e,nS,n.traceState.serialize())}},nL.prototype.extract=function(t,e,r){var n,o=r.get(e,nb);if(!o)return t;var i=Array.isArray(o)?o[0]:o;if("string"!=typeof i)return t;var a=(n=nR.exec(i))&&("00"!==n[1]||!n[5])?{traceId:n[2],spanId:n[3],traceFlags:parseInt(n[4],16)}:null;if(!a)return t;a.isRemote=!0;var s=r.get(e,nS);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new nO("string"==typeof u?u:void 0)}return eI.setSpanContext(t,a)},nL.prototype.fields=function(){return[nb,nS]};var nP=Function.prototype.toString,nA=nP.call(Object),nw=(a=Object.getPrototypeOf,s=Object,function(t){return a(s(t))}),nC=Object.prototype,nN=nC.hasOwnProperty,nI=Symbol?Symbol.toStringTag:void 0,nk=nC.toString;function nD(t){if(null==(e=t)||"object"!=typeof e||"[object Object]"!==(null==(r=t)?void 0===r?"[object Undef
1ined]":"[object Null]":nI&&nI in Object(r)?function(t){var e=nN.call(t,nI),r=t[nI],n=!1;try{t[nI]=void 0,n=!0}catch(t){}var o=nk.call(t);return n&&(e?t[nI]=r:delete t[nI]),o}(r):(n=r,nk.call(n))))return!1;var e,r,n,o=nw(t);if(null===o)return!0;var i=nN.call(o,"constructor")&&o.constructor;return"function"==typeof i&&i instanceof i&&nP.call(i)===nA}function nx(t){return nU(t)?t.slice():t}function nM(t,e,r){for(var n=r.get(t[e])||[],o=0,i=n.length;o<i;o++){var a=n[o];if(a.key===e&&a.obj===t)return!0}return!1}function nU(t){return Array.isArray(t)}function nj(t){return"function"==typeof t}function nB(t){return!nH(t)&&!nU(t)&&!nj(t)&&"object"==typeof t}function nH(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}var nF=(v=function(t,e){return(v=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),nz=function(t){function e(r){var n=t.call(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return nF(e,t),e}(Error);function nX(t,e){var r;return Promise.race([t,new Promise(function(t,n){r=setTimeout(function(){n(new nz("Operation timed out."))},e)})]).then(function(t){return clearTimeout(r),t},function(t){throw clearTimeout(r),t})}var nG=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function nZ(t,e){return"string"==typeof e?t===e:!!t.match(e)}function nV(t,e){var r,n;if(!e)return!1;try{for(var o=nG(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(nZ(t,a))return!0}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}var nq=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),nW=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},nK=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},n$=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new nq}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,nK([this._that],nW(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),nY=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},nQ=function(){function t(t,e,r,n,o){this._transport=t,this._serializer=e,this._responseHandler=r,this._promiseQueue=n,this._timeout=o,this._diagLogger=ev.createComponentLogger({namespace:"OTLPExportDelegate"})}return t.prototype.export=function(t,e){var r=this;if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit())return void e({code:$.FAILED,error:Error("Concurrent export limit reached")});var n=this._serializer.serializeRequest(t);null==n?e({code:$.FAILED,error:Error("Nothing to send")}):this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(function(t){if("success"===t.status){if(null!=t.data)try{r._responseHandler.handleResponse(r._serializer.deserializeResponse(t.data))}catch(e){r._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",e,t.data)}e({code:$.SUCCESS});return}"failure"===t.status&&t.error?e({code:$.FAILED,error:t.error}):"retryable"===t.status?e({code:$.FAILED,error:new rj("Export failed with retryable status")}):e({code:$.FAILED,error:new rj("Export failed with unknown error")})},function(t){return e({code:$.FAILED,error:t})}))},t.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},t.prototype.shutdown=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function(){return nY(this,function(t){switch(t.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return t.sent(),this._transport.shutdown(),[2]}})},new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},t}();function nJ(t,e,r){var n,o;return n={transport:r,serializer:e,promiseHandler:new rH(t.concurrencyLimit)},o={timeout:t.timeoutMillis},new nQ(n.transport,n.serializer,{handleResponse:function(t){null!=t&&Object.prototype.hasOwnProperty.call(t,"partialSuccess")&&null!=t.partialSuccess&&0!==Object.keys(t.partialSuccess).length&&ev.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}},n.promiseHandler,o.timeout)}function n0(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function n1(t){var e;return{low:Number(BigInt.asUintN(32,e=n0(t))),high:Number(BigInt.asUintN(32,e>>BigInt(32)))}}var n2="undefined"!=typeof BigInt?function(t){return n0(t).toString()}:nT;function n3(t){return t}function n4(t){if(void 0!==t)return r3(t)}var n5={encodeHrTime:n1,encodeSpanContext:r3,encodeOptionalSpanContext:n4};function n6(t){if(void 0===t)return n5;var e,r,n=null==(e=t.useLongBits)||e,o=null!=(r=t.useHex)&&r;return{encodeHrTime:n?n1:n2,encodeSpanContext:o?n3:r3,encodeOptionalSpanContext:o?n3:n4}}var n9=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function n8(t){return{name:t.name,version:t.version}}function n7(t){return Object.keys(t).map(function(e){return ot(e,t[e])})}function ot(t,e){return{key:t,value:oe(e)}}function oe(t){var e=typeof t;return"string"===e?{stringValue:t}:"number"===e?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:"boolean"===e?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(oe)}}:"object"===e&&null!=t?{kvlistValue:{values:Object.entries(t).map(function(t){var e=n9(t,2);return ot(e[0],e[1])})}}:{}}function or(t){return{attributes:n7(t.attributes),droppedAttributesCount:0}}var on=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},oo=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},oi=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},oa=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},os={serializeRequest:function(t){var e={resourceSpans:function(t,e){for(var r=function(t){var e,r,n=new Map;try{for(var o=on(t),i=o.next();!i.done;i=o.next()){var a=i.value,s=n.get(a.resource);s||(s=new Map,n.set(a.resource,s));var u=a.instrumentationLibrary.name+"@"+(a.instrumentationLibrary.version||"")+":"+(a.instrumentationLibrary.schemaUrl||""),c=s.get(u);c||(c=[],s.set(u,c)),c.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}(t),n=[],o=r.entries(),i=o.next();!i.done;){for(var a=oo(i.value,2),s=a[0],u=a[1],c=[],l=u.values(),f=l.next();!f.done;){var p=f.value;if(p.length>0){var h=p.map(function(t){return function(t,e){var r,n=t.spanContext(),o=t.status;return{traceId:e.encodeSpanContext(n.traceId),spanId:e.encodeSpanContext(n.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:null==(r=n.traceState)?void 0:r.serialize(),name:t.name,kind:null==t.kind?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:n7(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(t){var r,n;return r=t,n=e,{attributes:r.attributes?n7(r.attributes):[],name:r.name,timeUnixNano:n.encodeHrTime(r.time),droppedAttributesCount:r.droppedAttributesCount||0}}),droppedEventsCount:t.droppedEventsCount,status:{code:o.code,message:o.message},links:t.links.map(function(t){return function(t,e){var r;return{attributes:t.attributes?n7(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:null==(r=t.context.traceState)?void 0:r.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}(t,e)}),droppedLinksCount:t.droppedLinksCount}}(t,e)});c.push({scope:n8(p[0].instrumentationLibrary),spans:h,schemaUrl:p[0].instrumentationLibrary.schemaUrl})}f=l.next()}var _={resource:or(s),scopeSpans:c,schemaUrl:void 0};n.push(_),i=o.next()}return n}(t,n6({useHex:!0,useLongBits:!1}))};return new TextEncoder().encode(JSON.stringify(e))},deserializeResponse:function(t){return JSON.parse(new TextDecoder().decode(t))}},ou={serializeRequest:function(t){var e,r,n={resourceLogs:(e=t,r=n6({useHex:!0,useLongBits:!1}),Array.from(function(t){var e,r,n=new Map;try{for(var o=oi(t),i=o.next();!i.done;i=o.next()){var a=i.value,s=a.resource,u=a.instrumentationScope,c=u.name,l=u.version,f=void 0===l?"":l,p=u.sc
1hemaUrl,h=void 0===p?"":p,_=n.get(s);_||(_=new Map,n.set(s,_));var d=c+"@"+f+":"+h,E=_.get(d);E||(E=[],_.set(d,E)),E.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}(e),function(t){var e=oa(t,2),n=e[0],o=e[1];return{resource:or(n),scopeLogs:Array.from(o,function(t){var e=oa(t,2)[1];return{scope:n8(e[0].instrumentationScope),logRecords:e.map(function(t){var e,n,o,i,a,s;return e=t,{timeUnixNano:(n=r).encodeHrTime(e.hrTime),observedTimeUnixNano:n.encodeHrTime(e.hrTimeObserved),severityNumber:e.severityNumber,severityText:e.severityText,body:oe(e.body),attributes:Object.keys(s=e.attributes).map(function(t){return ot(t,s[t])}),droppedAttributesCount:e.droppedAttributesCount,flags:null==(o=e.spanContext)?void 0:o.traceFlags,traceId:n.encodeOptionalSpanContext(null==(i=e.spanContext)?void 0:i.traceId),spanId:n.encodeOptionalSpanContext(null==(a=e.spanContext)?void 0:a.spanId)}}),schemaUrl:e[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}}))};return new TextEncoder().encode(JSON.stringify(n))},deserializeResponse:function(t){return JSON.parse(new TextDecoder().decode(t))}},oc=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},ol=function(){function t(t){this._transport=t}return t.prototype.retry=function(t,e,r){var n=this;return new Promise(function(o,i){setTimeout(function(){n._transport.send(t,e).then(o,i)},r)})},t.prototype.send=function(t,e){var r,n,o,i,a;return n=this,o=void 0,i=void 0,a=function(){var n,o,i,a,s,u,c;return oc(this,function(l){switch(l.label){case 0:return n=Date.now()+e,[4,this._transport.send(t,e)];case 1:o=l.sent(),i=5,a=1e3,l.label=2;case 2:if(!("retryable"===o.status&&i>0))return[3,4];if(i--,s=Math.max(Math.min(a,5e3)+(.4*Math.random()-.2),0),a*=1.5,(u=null!=(r=o.retryInMillis)?r:s)>(c=n-Date.now()))return[2,o];return[4,this.retry(t,c,u)];case 3:return o=l.sent(),[3,2];case 4:return[2,o]}})},new(i||(i=Promise))(function(t,e){function r(t){try{u(a.next(t))}catch(t){e(t)}}function s(t){try{u(a.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(r,s)}u((a=a.apply(n,o||[])).next())})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}();function of(t){return new ol(t.transport)}var op=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},oh=function(){function t(t){this._parameters=t}return t.prototype.send=function(t,e){var r=this;return new Promise(function(n){var o=new XMLHttpRequest;o.timeout=e,o.open("POST",r._parameters.url),Object.entries(r._parameters.headers()).forEach(function(t){var e=op(t,2),r=e[0],n=e[1];o.setRequestHeader(r,n)}),o.ontimeout=function(t){n({status:"failure",error:Error("XHR request timed out")})},o.onreadystatechange=function(){o.status>=200&&o.status<=299?(ev.debug("XHR success"),n({status:"success"})):o.status&&[429,502,503,504].includes(o.status)?n({status:"retryable",retryInMillis:function(t){if(null!=t){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?1e3*e:-1;var r=new Date(t).getTime()-Date.now();return r>=0?r:0}}(o.getResponseHeader("Retry-After"))}):0!==o.status&&n({status:"failure",error:Error("XHR request failed with non-retryable status")})},o.onabort=function(){n({status:"failure",error:Error("XHR request aborted")})},o.onerror=function(){n({status:"failure",error:Error("XHR request errored")})},o.send(t)})},t.prototype.shutdown=function(){},t}(),o_=function(){function t(t){this._params=t}return t.prototype.send=function(t){var e=this;return new Promise(function(r){navigator.sendBeacon(e._params.url,new Blob([t],{type:e._params.blobType}))?(ev.debug("SendBeacon success"),r({status:"success"})):r({status:"failure",error:Error("SendBeacon failed")})})},t.prototype.shutdown=function(){},t}(),od=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},oE=function(){return(oE=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function oT(t,e,r,n){var o,i,a,s,u,c,l,f,p,h,_,d,E,T,y,v,g,m,O,b=!!t.headers||"function"!=typeof navigator.sendBeacon,S=(o={url:t.url,timeoutMillis:t.timeoutMillis,headers:function(t){if(null!=t)return function(){return t}}(t.headers),concurrencyLimit:t.concurrencyLimit},i={},a=oE(oE({},{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}),{headers:function(){return n},url:"http://localhost:4318/"+r,agentOptions:{keepAlive:!0}}),oE(oE({},{timeoutMillis:function(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}(null!=(p=null!=(f=o.timeoutMillis)?f:i.timeoutMillis)?p:a.timeoutMillis),concurrencyLimit:null!=(_=null!=(h=o.concurrencyLimit)?h:i.concurrencyLimit)?_:a.concurrencyLimit,compression:null!=(E=null!=(d=o.compression)?d:i.compression)?E:a.c
1ompression}),{headers:(T=o.headers,y=function(){var t,e={};return Object.entries(null!=(t=null==T?void 0:T())?t:{}).forEach(function(t){var r=od(t,2),n=r[0],o=r[1];void 0!==o?e[n]=String(o):ev.warn('Header "'+n+'" has invalid value ('+o+") and will be ignored")}),e},v=i.headers,g=a.headers,m=oE({},g()),O={},function(){return null!=v&&Object.assign(O,v()),null!=y&&Object.assign(O,y()),Object.assign(O,m)}),url:null!=(u=null!=(s=function(t){if(null!=t)try{return new URL(t),t}catch(e){throw Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}(o.url))?s:i.url)?u:a.url,agentOptions:null!=(l=null!=(c=o.agentOptions)?c:i.agentOptions)?l:a.agentOptions}));return b?nJ(S,e,of({transport:new oh(S)})):nJ(S,e,of({transport:new o_({url:S.url,blobType:S.headers()["Content-Type"]})}))}var oy=(g=function(t,e){return(g=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ov=function(t){function e(e){return void 0===e&&(e={}),t.call(this,oT(e,ou,"v1/logs",{"Content-Type":"application/json"}))||this}return oy(e,t),e}(rM),og=(m=function(t,e){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),om=function(t){function e(e){return void 0===e&&(e={}),t.call(this,oT(e,os,"v1/traces",{"Content-Type":"application/json"}))||this}return og(e,t),e}(rM),oO=(i=null!=(n=tR())?tv(tb(n)):{},((t,e,r,n)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let o of tO(e))tS.call(t,o)||o===r||tg(t,o,{get:()=>e[o],enumerable:!(n=tm(e,o))||n.enumerable});return t})(!o&&n&&n.__esModule?i:tg(i,"default",{value:n,enumerable:!0}),n)),ob=function(){return(ob=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},oS=function(){function t(t,e,r){this.instrumentationName=t,this.instrumentationVersion=e,this._config={},this._wrap=oO.wrap,this._unwrap=oO.unwrap,this._massWrap=oO.massWrap,this._massUnwrap=oO.massUnwrap,this.setConfig(r),this._diag=ev.createComponentLogger({namespace:t}),this._tracer=eI.getTracer(t,e),this._meter=eO.getMeter(t,e),this._logger=eH.getLogger(t,e),this._updateMetricInstruments()}return Object.defineProperty(t.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),t.prototype.setMeterProvider=function(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},Object.defineProperty(t.prototype,"logger",{get:function(){return this._logger},enumerable:!1,configurable:!0}),t.prototype.setLoggerProvider=function(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)},t.prototype.getModuleDefinitions=function(){var t,e=null!=(t=this.init())?t:[];return Array.isArray(e)?e:[e]},t.prototype._updateMetricInstruments=function(){},t.prototype.getConfig=function(){return this._config},t.prototype.setConfig=function(t){this._config=ob({enabled:!0},t)},t.prototype.setTracerProvider=function(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(t.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),t.prototype._runSpanCustomizationHook=function(t,e,r,n){if(t)try{t(r,n)}catch(t){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:e},t)}},t}(),oR=(O=function(t,e){return(O=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}O(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),oL=function(t){function e(e,r,n){var o=t.call(this,e,r,n)||this;return o._config.enabled&&o.enable(),o}return oR(e,t),e}(oS);function oP(t,e,r){var n,o;try{o=t()}catch(t){n=t}finally{if(e(n,o),n&&!r)throw n;return o}}function oA(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var ow=tz("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function oC(t){return!0===t.getValue(ow)}var oN="baggage",oI=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ok=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=eC.getBaggage(t);if(!(!n||oC(t))){var o=n.getAllEntries().map(function(t){var e=oI(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o}).filter(function(t){return t.length<=4096}).slice(0,180).reduce(function(t,e){var r=""+t+(""!==t?",":"")+e;return r.length>8192?t:r},"");o.length>0&&r.set(e,oN,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,oN),o=Array.isArray(n)?n.join(","):n;if(!o)return t;var i={};return 0===o.length||(o.split(",").forEach(function(t){var e=function(t){var e,r=t.split(";");if(!(r.length<=0)){var n=r.shift();if(n){var o=n.indexOf("=");if(!(o<=0)){var i,a=decodeURIComponent(n.substring(0,o).trim()),s=decodeURIComponent(n.substring(o+1).trim());return r.length>0&&("string"!=typeof(i=r.join(";"))&&(tH.error(`Cannot create baggage metadata from unknown type: ${typeof i}`),i=""),e={__TYPE__:tB,toString:()=>i}),{key:a,value:s,metadata:e}}}}}(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length)?t:eC.setBaggage(t,eC.createBaggage(i))},t.prototype.fields=function(){return[oN]},t}(),oD=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ox=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function oM(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=oD(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a,s=ox(i.value,2),u=s[0],c=s[1];if(a=u,"string"!=typeof a||!(a.length>0)){ev.warn("Invalid attribute key: "+u);continue}if(!oU(c)){ev.warn("Invalid attribute value set for key: "+u);continue}Array.isArray(c)?n[u]=c.slice():n[u]=c}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function oU(t){return null==t||(Array.isArray(t)?function(t){try{for(var e,r,n,o=oD(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(oj(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):oj(t))}function oj(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var oB=function(t){var e;ev.error("string"==typeof(e=t)?e:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(e)))};function oH(t){try{oB(t)}catch(t){}}(b=Y||(Y={})).AlwaysOff="always_off",b.AlwaysOn="always_on",b.ParentBasedAlwaysOff="parentbased_always_off",b.ParentBasedAlwaysOn="parentbased_always_on",b.ParentBasedTraceIdRatio="parentbased_traceidratio",b.TraceIdRatio="traceidratio";var oF=["OTEL_SDK_DISABLED"],oz=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"],oX=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"],oG=1/0,oZ={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/s
1pans",OTEL_LOG_LEVEL:z.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:oG,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:oG,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:oG,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Y.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]},oV={ALL:z.ALL,VERBOSE:z.VERBOSE,DEBUG:z.DEBUG,INFO:z.INFO,WARN:z.WARN,ERROR:z.ERROR,NONE:z.NONE};function oq(t){var e={};for(var r in oZ)if("OTEL_LOG_LEVEL"===r)!function(t,e,r){var n=r[t];if("string"==typeof n){var o=oV[n.toUpperCase()];null!=o&&(e[t]=o)}}(r,e,t);else if(oF.indexOf(r)>-1)!function(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}(r,e,t);else if(oz.indexOf(r)>-1)!function(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(i<n?e[t]=n:i>o?e[t]=o:e[t]=i)}}(r,e,t);else if(oX.indexOf(r)>-1)!function(t,e,r,n){void 0===n&&(n=",");var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}(r,e,t);else{var n=t[r];null!=n&&(e[r]=String(n))}return e}var oW="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:t.g;function oK(){return Object.assign({},oZ,oq(oW))}var o$=performance;function oY(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}function oQ(){var t=o$.timeOrigin;return"number"!=typeof t&&(t=o$.timing&&o$.timing.fetchStart),t}function oJ(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function o0(t){return oJ(t)||"number"==typeof t||t instanceof Date}function o1(t,e){var r=[t[0]+e[0],t[1]+e[1]];return r[1]>=1e9&&(r[1]-=1e9,r[0]+=1),r}
1(S=Q||(Q={}))[S.SUCCESS=0]="SUCCESS",S[S.FAILED=1]="FAILED";var o2=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o3=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!=(e=t.propagators)?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=o2(this._propagators),a=i.next();!a.done;a=i.next()){var s=a.value;try{s.inject(t,e,r)}catch(t){ev.warn("Failed to inject with "+s.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){ev.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}(),o4="[_0-9a-z-*/]",o5=RegExp("^(?:[a-z]"+o4+"{0,255}|"+("[a-z0-9]"+o4+"{0,240}@[a-z]")+o4+"{0,13})$"),o6=/^[ -~]{0,255}[!-~]$/,o9=/,|=/,o8=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){!(t.length>512)&&(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);o5.test(o)&&o6.test(i)&&!o9.test(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),o7="traceparent",it="tracestate",ie=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$"),ir=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=eI.getSpanContext(t);if(!(!n||oC(t))&&el(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||X.NONE).toString(16);r.set(e,o7,o),n.traceState&&r.set(e,it,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n,o=r.get(e,o7);if(!o)return t;var i=Array.isArray(o)?o[0]:o;if("string"!=typeof i)return t;var a=(n=ie.exec(i))&&("00"!==n[1]||!n[5])?{traceId:n[2],spanId:n[3],traceFlags:parseInt(n[4],16)}:null;if(!a)return t;a.isRemote=!0;var s=r.get(e,it);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new o8("string"==typeof u?u:void 0)}return eI.setSpanContext(t,a)},t.prototype.fields=function(){return[o7,it]},t}(),io=Function.prototype.toString,ii=io.call(Object),ia=(u=Object.getPrototypeOf,c=Object,function(t){return u(c(t))}),is=Object.prototype,iu=is.hasOwnProperty,ic=Symbol?Symbol.toStringTag:void 0,il=is.toString;function ip(t){if(null==(e=t)||"object"!=typeof e||"[object Object]"!==(null==(r=t)?void 0===r?"[object Undefined]":"[object Null]":ic&&ic in Object(r)?function(t){var e=iu.call(t,ic),r=t[ic],n=!1;try{t[ic]=void 0,n=!0}catch(t){}var o=il.call(t);return n&&(e?t[ic]=r:delete t[ic]),o}(r):(n=r,il.call(n))))return!1;var e,r,n,o=ia(t);if(null===o)return!0;var i=iu.call(o,"constructor")&&o.constructor;return"function"==typeof i&&i instanceof i&&io.call(i)===ii}function ih(t){return id(t)?t.slice():t}function i_(t,e,r){for(var n=r.get(t[e])||[],o=0,i=n.length;o<i;o++){var a=n[o];if(a.key===e&&a.obj===t)return!0}return!1}function id(t){return Array.isArray(t)}function iE(t){return"function"==typeof t}function iT(t){return!iy(t)&&!id(t)&&!iE(t)&&"object"==typeof t}function iy(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}var iv=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise}
1,enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),ig=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},im=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},iO=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new iv}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,im([this._that],ig(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),ib=function(){return(ib=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},iS=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iR=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},iL=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},iP=function(){function t(t,e,r,n,o,i,a,s,u,c){void 0===a&&(a=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:V.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=n,this.parentSpanId=i,this.kind=o,this.links=a;var l=Date.now();this._performanceStartTime=o$.now(),this._performanceOffset=l-(this._performanceStartTime+oQ()),this._startTimeProvided=null!=s,this.startTime=this._getTime(null!=s?s:l),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,null!=c&&this.setAttributes(c),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,e)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return null==e||this._isSpanEnded()||(0===t.length?ev.warn("Invalid attribute key: "+t):oU(e)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?this._droppedAttributesCount++:this.attributes[t]=this._truncateToSize(e):ev.warn("Invalid attribute value set for key: "+t)),this},t.prototype.setAttributes=function(t){var e,r;try{for(var n=iS(Object.entries(t)),o=n.next();!o.done;o=n.next()){var i=iR(o.value,2),a=i[0],s=i[1];this.setAttribute(a,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},t.prototype.addEvent=function(t,e,r){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return ev.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(0===this._droppedEventsCount&&ev.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),o0(e)&&(o0(r)||(r=e),e=void 0);var n=oM(e);return this.events.push({name:t,attributes:n,time:this._getTime(r),droppedAttributesCount:0}),this},t.prototype.addLink=function(t){return this.links.push(t),this},t.prototype.addLinks=function(t){var e;return(e=this.links).push.apply(e,iL([],iR(t),!1)),this},t.prototype.setStatus=function(t){return this._isSpanEnded()||(this.status=ib({},t),null!=this.status.message&&"string"!=typeof t.message&&(ev.warn("Dropping invalid status.message of type '"+typeof t.message+"', expected 'string'"),delete this.status.message)),this},t.prototype.updateName=function(t){return this._isSpanEnded()||(this.name=t),this},t.prototype.end=function(t){var e,r,n,o;this._isSpanEnded()?ev.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once."):(this._ended=!0,this.endTime=this._getTime(t),this._duration=(e=this.startTime,n=(r=this.endTime)[0]-e[0],(o=r[1]-e[1])<0&&(n-=1,o+=1e9),[n,o]),this._duration[0]<0&&(ev.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&ev.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this))},t.prototype._getTime=function(t){if("number"==typeof t&&t<=o$.now()){var e;return e=t+this._performanceOffset,o1(oY(oQ()),oY("number"==typeof e?e:o$.now()))}if("number"==typeof t)return oY(t);if(t instanceof Date)return oY(t.getTime());if(oJ(t))return t;if(this._startTimeProvided)return oY(Date.now());var r=o$.now()-this._performanceStartTime;return o1(this.startTime,oY(r))},t.prototype.isRecording=function(){return!1===this._ended},t.prototype.recordException=function(t,e){var r={};"string"==typeof t?r[r6]=t:t&&(t.code?r[r5]=t.code.toString():t.name&&(r[r5]=t.name),t.message&&(r[r6]=t.message),t.stack&&(r["exception.stacktrace"]=t.stack)),r[r5]||r[r6]?this.addEvent("exception",r,e):ev.warn("Failed to record an exception "+t)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&ev.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(t,e){return t.length<=e?t:t.substring(0,e)},t.prototype._truncateToSize=function(t){var e=this,r=this._attributeValueLengthLimit;return r<=0?(ev.warn("Attribute value limit must be positive, got "+r),t):"string"==typeof t?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(function(t){return"string"==typeof t?e._truncateToLimitUtil(t,r):t}):t},t}();(R=J||(J={}))[R.NOT_RECORD=0]="NOT_RECORD",R[R.RECORD=1]="RECORD",R[R.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";var iA=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:J.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),iw=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:J.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),iC=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(oH(Error("ParentBasedSampler must have a root sampler configured")),this._root=new iw),this._remoteParentSampled=null!=(e=t.remoteParentSampled)?e:new iw,this._remoteParentNotSampled=null!=(r=t.remoteParentNotSampled)?r:new iA,this._localParentSampled=null!=(n=t.localParentSampled)?n:new iw,this._localParentNotSampled=null!=(o=t.localParentNotSampled)?o:new iA}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=eI.getSpanContext(t);return a&&el(a)?a.isRemote?a.traceFlags&X.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&X.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}(),iN=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(0xffffffff*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:ec(e)&&this._accumulate(e)<this._upperBound?J.RECORD_AND_SAMPLED:J.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(t){return"number"!=typeof t||isNaN(t)?0:t>=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r<t.length/8;r++){var n=8*r;e=(e^parseInt(t.slice(n,n+8),16))>>>0}return e},t}(),iI=Y.AlwaysOn;function ik(){var t=oK();return{sampler:iD(t),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function iD(t){switch(void 0===t&&(t=oK()),t.OTEL_TRACES_SAMPLER){case Y.AlwaysOn:return new iw;case Y.AlwaysOff:return new iA;case Y.ParentBasedAlwaysOn:return new iC({root:new iw});case Y.ParentBasedAlwaysOff:return new iC({root:new iA});case Y.TraceIdRatio:return new iN(ix(t));case Y.ParentBasedTraceIdRatio:return new iC({root:new iN(ix(t))});default:return ev.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+iI+'".'),new iw}}function ix(t){if(void 0===t.OTEL_TRACES_SAMPLER_ARG||""===t.OTEL_TRACES_SAMPLER_ARG)return ev.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(ev.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invali
1d, defaulting to 1."),1):e<0||e>1?(ev.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to 1."),1):e}var iM=function(){function t(t,e){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var r=oK();this._maxExportBatchSize="number"==typeof(null==e?void 0:e.maxExportBatchSize)?e.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==e?void 0:e.maxQueueSize)?e.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==e?void 0:e.scheduledDelayMillis)?e.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==e?void 0:e.exportTimeoutMillis)?e.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new iO(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ev.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(t,e){},t.prototype.onEnd=function(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&X.SAMPLED)!=0&&this._addToBuffer(t)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},t.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){0===this._droppedSpansCount&&ev.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(ev.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},t.prototype._flushAll=function(){var t=this;return new Promise(function(e,r){for(var n=[],o=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),i=0;i<o;i++)n.push(t._flushOneBatch());Promise.all(n).then(function(){e()}).catch(r)})},t.prototype._flushOneBatch=function(){var t=this;return(this._clearTimer(),0===this._finishedSpans.length)?Promise.resolve():new Promise(function(e,r){var n=setTimeout(function(){r(Error("Timeout"))},t._exportTimeoutMillis);ey.with(ey.active().setValue(ow,!0),function(){t._finishedSpans.length<=t._maxExportBatchSize?(o=t._finishedSpans,t._finishedSpans=[]):o=t._finishedSpans.splice(0,t._maxExportBatchSize);for(var o,i=function(){return t._exporter.export(o,function(t){var o;clearTimeout(n),t.code===Q.SUCCESS?e():r(null!=(o=t.error)?o:Error("BatchSpanProcessor: span export failed"))})},a=null,s=0,u=o.length;s<u;s++){var c=o[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(null!=a||(a=[]),a.push(c.resource.waitForAsyncAttributes()))}null===a?i():Promise.all(a).then(i,function(t){oH(t),r(t)})})})},t.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var e=function(){t._isExporting=!0,t._flushOneBatch().finally(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(e){t._isExporting=!1,oH(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return e();void 0===this._timer&&(this._timer=setTimeout(function(){return e()},this._scheduledDelayMillis),this._timer)}},t.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},t}(),iU=(L=function(t,e){return(L=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}L(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ij=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.onInit(r),n}return iU(e,t),e.prototype.onInit=function(t){var e=this;(null==t?void 0:t.disableAutoFlushOnDocumentHide)!==!0&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&e.forceFlush().catch(function(t){oH(t)})},this._pageHideListener=function(){e.forceFlush().catch(function(t){oH(t)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},e.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},e}(iM),iB=function(){this.generateTraceId=iF(16),this.generateSpanId=iF(8)},iH=Array(32);function iF(t){return function(){for(var e=0;e<2*t;e++)iH[e]=Math.floor(16*Math.random())+48,iH[e]>=58&&(iH[e]+=39);return String.fromCharCode.apply(null,iH.slice(0,2*t))}}var iz=function(){function t(t,e,r){this._tracerProvider=r;var n,o,i,a=(n={sampler:iD()},(i=Object.assign({},o=ik(),n,e)).generalLimits=Object.assign({},o.generalLimits,e.generalLimits||{}),i.spanLimits=Object.assign({},o.spanLimits,e.spanLimits||{}),i);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=e.idGenerator||new iB,this.resource=r.resource,this.instrumentationLibrary=t}return t.prototype.startSpan=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=ey.active()),e.root&&(r=eI.deleteSpan(r));var n,o,i,a,s,u,c=eI.getSpan(r);if(oC(r)){ev.debug("Instrumentation suppressed, returning Noop Span");var l=eI.wrapSpanContext(t8);return l}var f=null==c?void 0:c.spanContext(),p=this._idGenerator.generateSpanId();f&&eI.isSpanContextValid(f)?(a=f.traceId,s=f.traceState,u=f.spanId):a=this._idGenerator.generateTraceId();var h=null!=(n=e.kind)?n:Z.INTERNAL,_=(null!=(o=e.links)?o:[]).map(function(t){return{context:t.context,attributes:oM(t.attributes)}}),d=oM(e.attributes),E=this._sampler.shouldSample(r,a,t,h,d,_);s=null!=(i=E.traceState)?i:s;var T={traceId:a,spanId:p,traceFlags:E.decision===G.RECORD_AND_SAMPLED?X.SAMPLED:X.NONE,traceState:s};
1if(E.decision===G.NOT_RECORD){ev.debug("Recording is off, propagating context in a non-recording span");var l=eI.wrapSpanContext(T);return l}var y=oM(Object.assign(d,E.attributes));return new iP(this,r,t,T,h,u,_,e.startTime,void 0,y)},t.prototype.startActiveSpan=function(t,e,r,n){if(!(arguments.length<2)){2==arguments.length?a=e:3==arguments.length?(o=e,a=r):(o=e,i=r,a=n);var o,i,a,s=null!=i?i:ey.active(),u=this.startSpan(t,o,s),c=eI.setSpan(s,u);return ey.with(c,a,void 0,u)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}(),iX=((tt={})[nu]="opentelemetry",tt[na]="browser",tt[nc]=nf,tt[nl]="1.30.1",tt),iG=function(){return(iG=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},iZ=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},iV=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},iq=function(){function t(t,e){var r,n=this;this._attributes=t,this.asyncAttributesPending=null!=e,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==e?void 0:e.then(function(t){return n._attributes=Object.assign({},n._attributes,t),n.asyncAttributesPending=!1,t},function(t){return ev.debug("a resource's async attributes promise rejected: %s",t),n.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t(((e={})[ns]="unknown_service",e[nc]=iX[nc],e[nu]=iX[nu],e[nl]=iX[nl],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&ev.error("Accessing resource attributes before async attributes settled"),null!=(t=this._attributes)?t:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function(){return iZ(this,function(t){switch(t.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:t.sent(),t.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},t.prototype.merge=function(e){var r,n=this;if(!e)return this;var o=iG(iG({},this._syncAttributes),null!=(r=e._syncAttributes)?r:e.attributes);return this._asyncAttributesPromise||e._asyncAttributesPromise?new t(o,Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(t){var r,o=iV(t,2),i=o[0],a=o[1];return iG(iG(iG(iG({},n._syncAttributes),i),null!=(r=e._syncAttributes)?r:e.attributes),a)})):new t(o)},t.EMPTY=new t({}),t}(),iW=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iK=function(){function t(t){this._spanProcessors=t}return t.prototype.forceFlush=function(){var t,e,r=[];try{for(var n=iW(this._spanProcessors),o=n.next();!o.done;o=n.next()){var i=o.value;r.push(i.forceFlush())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return new Promise(function(t){Promise.all(r).then(function(){t()}).catch(function(e){oH(e||Error("MultiSpanProcessor: forceFlush failed")),t()})})},t.prototype.onStart=function(t,e){var r,n;try{for(var o=iW(this._spanProcessors),i=o.next();!i.done;i=o.next())i.value.onStart(t,e)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},t.prototype.onEnd=function(t){var e,r;try{for(var n=iW(this._spanProcessors),o=n.next();!o.done;o=n.next())o.value.onEnd(t)}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},t.prototype.shutdown=function(){var t,e,r=[];try{for(var n=iW(this._spanProcessors),o=n.next();!o.done;o=n.next()){var i=o.value;r.push(i.shutdown())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return new Promise(function(t,e){Promise.all(r).then(function(){t()},e)})},t}(),i$=function(){function t(){}return t.prototype.onStart=function(t,e){},t.prototype.onEnd=function(t){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}(),iY=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},iQ=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};(P=te||(te={}))[P.resolved=0]="resolved",P[P.timeout=1]="timeout",P[P.error=2]="error",P[P.unresolved=3]="unresolved";var iJ=function(){function t(t){void 0===t&&(t={}),this._registeredSpanProcessors=[],this._tracers=new Map;var e,r,n,o,i,a,s,u,c,l,f,p,h,_,d,E,T,y=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.shift(),n=new WeakMap;t.length>0;)r=function t(e,r,n,o){if(void 0===n&&(n=0),!(n>
120)){if(n++,iy(e)||iy(r)||iE(r))s=ih(r);else if(id(e)){if(s=e.slice(),id(r))for(var i,a,s,u=0,c=r.length;u<c;u++)s.push(ih(r[u]));else if(iT(r))for(var l=Object.keys(r),u=0,c=l.length;u<c;u++){var f=l[u];s[f]=ih(r[f])}}else if(iT(e))if(iT(r)){if(i=e,a=r,!(ip(i)&&ip(a)))return r;s=Object.assign({},e);for(var l=Object.keys(r),u=0,c=l.length;u<c;u++){var f=l[u],p=r[f];if(iy(p))void 0===p?delete s[f]:s[f]=p;else{var h=s[f];if(i_(e,f,o)||i_(r,f,o))delete s[f];else{if(iT(h)&&iT(p)){var _=o.get(h)||[],d=o.get(p)||[];_.push({obj:e,key:f}),d.push({obj:r,key:f}),o.set(h,_),o.set(p,d)}s[f]=t(s[f],p,n,o)}}}}else s=r;return s}}(r,t.shift(),0,n);return r}({},ik(),(_=Object.assign({},(e=t).spanLimits),d=oq(oW),_.attributeCountLimit=null!=(s=null!=(a=null!=(i=null!=(n=null==(r=e.spanLimits)?void 0:r.attributeCountLimit)?n:null==(o=e.generalLimits)?void 0:o.attributeCountLimit)?i:d.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)?a:d.OTEL_ATTRIBUTE_COUNT_LIMIT)?s:128,_.attributeValueLengthLimit=null!=(h=null!=(p=null!=(f=null!=(c=null==(u=e.spanLimits)?void 0:u.attributeValueLengthLimit)?c:null==(l=e.generalLimits)?void 0:l.attributeValueLengthLimit)?f:d.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)?p:d.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)?h:oG,Object.assign({},e,{spanLimits:_})));if(this.resource=null!=(E=y.resource)?E:iq.empty(),y.mergeResourceWithDefaults&&(this.resource=iq.default().merge(this.resource)),this._config=Object.assign({},y,{resource:this.resource}),null==(T=t.spanProcessors)?void 0:T.length)this._registeredSpanProcessors=iQ([],iY(t.spanProcessors),!1),this.activeSpanProcessor=new iK(this._registeredSpanProcessors);else{var v=this._buildExporterFromEnv();if(void 0!==v){var g=new ij(v);this.activeSpanProcessor=g}else this.activeSpanProcessor=new i$}}return t.prototype.getTracer=function(t,e,r){var n=t+"@"+(e||"")+":"+((null==r?void 0:r.schemaUrl)||"");return this._tracers.has(n)||this._tracers.set(n,new iz({name:t,version:e,schemaUrl:null==r?void 0:r.schemaUrl},this._config,this)),this._tracers.get(n)},t.prototype.addSpanProcessor=function(t){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch(function(t){return ev.error("Error while trying to shutdown current span processor",t)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new iK(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(t){void 0===t&&(t={}),eI.setGlobalTracerProvider(this),void 0===t.propagator&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&ey.setGlobalContextManager(t.contextManager),t.propagator&&eC.setGlobalPropagator(t.propagator)},t.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,e=this._registeredSpanProcessors.map(function(e){return new Promise(function(r){var n,o=setTimeout(function(){r(Error("Span processor did not completed within timeout period of "+t+" ms")),n=te.timeout},t);e.forceFlush().then(function(){clearTimeout(o),n!==te.timeout&&r(n=te.resolved)}).catch(function(t){clearTimeout(o),n=te.error,r(t)})})});return new Promise(function(t,r){Promise.all(e).then(function(e){var n=e.filter(function(t){return t!==te.resolved});n.length>0?r(n):t()}).catch(function(t){return r([t])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(t){var e;return null==(e=this.constructor._registeredPropagators.get(t))?void 0:e()},t.prototype._getSpanExporter=function(t){var e;return null==(e=this.constructor._registeredExporters.get(t))?void 0:e()},t.prototype._buildPropagatorFromEnv=function(){var t=this,e=Array.from(new Set(oK().OTEL_PROPAGATORS)),r=e.map(function(e){var r=t._getPropagator(e);return r||ev.warn('Propagator "'+e+'" requested through environment variable is unavailable.'),r}).reduce(function(t,e){return e&&t.push(e),t},[]);return 0===r.length?void 0:1===e.length?r[0]:new o3({propagators:r})},t.prototype._buildExporterFromEnv=function(){var t=oK().OTEL_TRACES_EXPORTER;if("none"!==t&&""!==t){var e=this._getSpanExporter(t);return e||ev.error('Exporter "'+t+'" requested through environment variable is unavailable.'),e}},t._registeredPropagators=new Map([["tracecontext",function(){return new ir}],["baggage",function(){return new ok}]]),t._registeredExporters=new Map,t}(),i0=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i1=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},i2=function(){function t(){this._enabled=!1,this._currentContext=tX}return t.prototype._bindFunction=function(t,e){void 0===t&&(t=tX);var r=this,n=function(){for(var n=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return r.with(t,function(){return e.apply(n,o)})};
1return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),n},t.prototype.active=function(){return this._currentContext},t.prototype.bind=function(t,e){return(void 0===t&&(t=this.active()),"function"==typeof e)?this._bindFunction(t,e):e},t.prototype.disable=function(){return this._currentContext=tX,this._enabled=!1,this},t.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=tX),this},t.prototype.with=function(t,e,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o];var i=this._currentContext;this._currentContext=t||tX;try{return e.call.apply(e,i1([r],i0(n),!1))}finally{this._currentContext=i}},t}(),i3=(A=function(t,e){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i4=function(t){function e(e){void 0===e&&(e={});var r=t.call(this,e)||this;if(e.contextManager)throw"contextManager should be defined in register method not in constructor";if(e.propagator)throw"propagator should be defined in register method not in constructor";return r}return i3(e,t),e.prototype.register=function(e){void 0===e&&(e={}),void 0===e.contextManager&&(e.contextManager=new i2),e.contextManager&&e.contextManager.enable(),t.prototype.register.call(this,e)},e}(iJ);function i5(t,e,r,n){var o=void 0,i=void 0;e in r&&"number"==typeof r[e]&&(o=r[e]);var a=n||tr.FETCH_START;if(a in r&&"number"==typeof r[a]&&(i=r[a]),void 0!==o&&void 0!==i&&o>=i)return t.addEvent(e,o),t}function i6(t,e,r){void 0===r&&(r=!1),r||(i5(t,tr.FETCH_START,e),i5(t,tr.DOMAIN_LOOKUP_START,e),i5(t,tr.DOMAIN_LOOKUP_END,e),i5(t,tr.CONNECT_START,e),"name"in e&&e.name.startsWith("https:")&&i5(t,tr.SECURE_CONNECTION_START,e),i5(t,tr.CONNECT_END,e),i5(t,tr.REQUEST_START,e),i5(t,tr.RESPONSE_START,e),i5(t,tr.RESPONSE_END,e));var n=e[tr.ENCODED_BODY_SIZE];void 0!==n&&t.setAttribute(no,n);var o=e[tr.DECODED_BODY_SIZE];void 0!==o&&n!==o&&t.setAttribute(ni,o)}(w=tr||(tr={})).CONNECT_END="connectEnd",w.CONNECT_START="connectStart",w.DECODED_BODY_SIZE="decodedBodySize",w.DOM_COMPLETE="domComplete",w.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",w.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",w.DOM_INTERACTIVE="domInteractive",w.DOMAIN_LOOKUP_END="domainLookupEnd",w.DOMAIN_LOOKUP_START="domainLookupStart",w.ENCODED_BODY_SIZE="encodedBodySize",w.FETCH_START="fetchStart",w.LOAD_
1EVENT_END="loadEventEnd",w.LOAD_EVENT_START="loadEventStart",w.NAVIGATION_START="navigationStart",w.REDIRECT_END="redirectEnd",w.REDIRECT_START="redirectStart",w.REQUEST_START="requestStart",w.RESPONSE_END="responseEnd",w.RESPONSE_START="responseStart",w.SECURE_CONNECTION_START="secureConnectionStart",w.UNLOAD_EVENT_END="unloadEventEnd",w.UNLOAD_EVENT_START="unloadEventStart",(C=tn||(tn={})).DOCUMENT_LOAD="documentLoad",C.DOCUMENT_FETCH="documentFetch",C.RESOURCE_FETCH="resourceFetch",(N=to||(to={})).FIRST_PAINT="firstPaint",N.FIRST_CONTENTFUL_PAINT="firstContentfulPaint";var i9=function(){var t,e={},r=null==(t=r4.getEntriesByType)?void 0:t.call(r4,"navigation")[0];if(r){var n=Object.values(tr);n.forEach(function(t){if(t in r){var n=r[t];"number"==typeof n&&(e[t]=n)}})}else{var o=r4.timing;if(o){var n=Object.values(tr);n.forEach(function(t){if(t in o){var r=o[t];"number"==typeof r&&(e[t]=r)}})}}return e},i8={"first-paint":to.FIRST_PAINT,"first-contentful-paint":to.FIRST_CONTENTFUL_PAINT},i7=function(t){var e,r=null==(e=r4.getEntriesByType)?void 0:e.call(r4,"paint");r&&r.forEach(function(e){var r=e.name,n=e.startTime;r in i8&&t.addEvent(i8[r],n)})},at=(I=function(t,e){return(I=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}I(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ae=function(t){function e(e){void 0===e&&(e={});var r=t.call(this,"@opentelemetry/instrumentation-document-load","0.43.0",e)||this;return r.component="document-load",r.version="1",r.moduleName=r.component,r}return at(e,t),e.prototype.init=function(){},e.prototype._onDocumentLoaded=function(){var t=this;window.setTimeout(function(){t._collectPerformance()})},e.prototype._addResourcesSpans=function(t){var e,r=this,n=null==(e=r4.getEntriesByType)?void 0:e.call(r4,"resource");n&&n.forEach(function(e){r._initResourceSpan(e,t)})},e.prototype._collectPerformance=function(){var t=this,e=Array.from(document.getElementsByTagName("meta")).find(function(t){return t.getAttribute("name")===nb}),r=i9(),n=e&&e.content||"";ey.with(eC.extract(tX,{traceparent:n}),function(){var e,n=t._startSpan(tn.DOCUMENT_LOAD,tr.FETCH_START,r);n&&(ey.with(eI.setSpan(ey.active(),n),function(){var e=t._startSpan(tn.DOCUMENT_FETCH,tr.FETCH_START,r);e&&(e.setAttribute(r8,location.href),ey.with(eI.setSpan(ey.active(),e),function(){var n;t.getConfig().ignoreNetworkEvents||i6(e,r),t._addCustomAttributesOnSpan(e,null==(n=t.getConfig().applyCustomAttributesOnSpan)?void 0:n.documentFetch),t._endSpan(e,tr.RESPONSE_END,r)}))}),n.setAttribute(r8,location.href),n.setAttribute(nr,navigator.userAgent),t._addResourcesSpans(n),t.getConfig().ignoreNetworkEvents||(i5(n,tr.FETCH_START,r),i5(n,tr.UNLOAD_EVENT_START,r),i5(n,tr.UNLOAD_EVENT_END,r),i5(n,tr.DOM_INTERACTIVE,r),i5(n,tr.DOM_CONTENT_LOADED_EVENT_START,r),i5(n,tr.DOM_CONTENT_LOADED_EVENT_END,r),i5(n,tr.DOM_COMPLETE,r),i5(n,tr.LOAD_EVENT_START,r),i5(n,tr.LOAD_EVENT_END,r)),t.getConfig().ignorePerformancePaintEvents||i7(n),t._addCustomAttributesOnSpan(n,null==(e=t.getConfig().applyCustomAttributesOnSpan)?void 0:e.documentLoad),t._endSpan(n,tr.LOAD_EVENT_END,r))})},e.prototype._endSpan=function(t,e,r){t&&(e in r?t.end(r[e]):t.end())},e.prototype._initResourceSpan=function(t,e){var r,n=this._startSpan(tn.RESOURCE_FETCH,tr.FETCH_START,t,e);n&&(n.setAttribute(r8,t.name),this.getConfig().ignoreNetworkEvents||i6(n,t),this._addCustomAttributesOnResourceSpan(n,t,null==(r=this.getConfig().applyCustomAttributesOnSpan)?void 0:r.resourceFetch),this._endSpan(n,tr.RESPONSE_END,t))},e.prototype._startSpan=function(t,e,r,n){if(e in r&&"number"==typeof r[e])return this.tracer.startSpan(t,{startTime:r[e]},n?eI.setSpan(ey.active(),n):void 0)},e.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},e.prototype._addCustomAttributesOnSpan=function(t,e){var r=this;e&&oP(function(){return e(t)},function(t){t&&r._diag.error("addCustomAttributesOnSpan",t)},!0)},e.prototype._addCustomAttributesOnResourceSpan=function(t,e,r){var n=this;r&&oP(function(){return r(t,e)},function(t){t&&n._diag.error("addCustomAttributesOnResourceSpan",t)},!0)},e.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},e.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},e}(oL);(k=ti||(ti={})).CONNECT_END="connectEnd",k.CONNECT_START="connectStart",k.DECODED_BODY_SIZE="decodedBodySize",k.DOM_COMPLETE="domComplete",k.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",k.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",k.DOM_INTERACTIVE="domInteractive",k.DOMAIN_LOOKUP_END="domainLookupEnd",k.DOMAIN_LOOKUP_START="domainLookupStart",k.ENCODED_BODY_SIZE="encodedBodySize",k.FETCH_START="fetchStart",k.LOAD_EVENT_END="loadEventEnd",k.LOAD_EVENT_START="loadEventStart",k.NAVIGATION_START="navigationStart",k.REDIRECT_END="redirectEnd",k.REDIRECT_START="redirectStart",k.REQUEST_START="requestStart",k.RESPONSE_END="responseEnd",k.RESPONSE_START="responseStart",k.SECURE_CONNECTION_START="secureConnectionStart",k.UNLOAD_EVENT_END="unloadEventEnd",k.UNLOAD_EVENT_START="unloadEventStart";function ar(t,e,r,n){var o=void 0,i=void 0;e in r&&"number"==typeof r[e]&&(o=r[e]);var a=n||ti.FETCH_START;if(a in r&&"number"==typeof r[a]&&(i=r[a]),void 0!==o&&void 0!==i&&o>=i)return t.addEvent(e,o),t}function an(t,e){ar(t,ti.FETCH_START,e),ar(t,ti.DOMAIN_LOOKUP_START,e),ar(t,ti.DOMAIN_LOOKUP_END,e),ar(t,ti.CONNECT_START,e),"n
1ame"in e&&e.name.startsWith("https:")&&ar(t,ti.SECURE_CONNECTION_START,e),ar(t,ti.CONNECT_END,e),ar(t,ti.REQUEST_START,e),ar(t,ti.RESPONSE_START,e),ar(t,ti.RESPONSE_END,e);var r=e[ti.ENCODED_BODY_SIZE];void 0!==r&&t.setAttribute(no,r);var n=e[ti.DECODED_BODY_SIZE];void 0!==n&&r!==n&&t.setAttribute(ni,n)}function ao(){return"undefined"!=typeof location?location.origin:void 0}function ai(t){if("function"==typeof URL)return new URL(t,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var e=(ta||(ta=document.createElement("a")),ta);return e.href=t,e}(D=ts||(ts={})).COMPONENT="component",D.HTTP_ERROR_NAME="http.error_name",D.HTTP_STATUS_TEXT="http.status_text";var aa=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},as=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},au=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},ac=ev.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function al(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[0]instanceof URL||"string"==typeof t[0]){var r,n=t[1];if(!(null==n?void 0:n.body))return Promise.resolve();if(!(n.body instanceof ReadableStream)){return Promise.resolve((r=n.body,"undefined"!=typeof Document&&r instanceof Document?new XMLSerializer().serializeToString(document).length:r instanceof Blob?r.size:void 0!==r.byteLength?r.byteLength:r instanceof FormData?function(t){var e,r,n=0;try{for(var o=as(t.entries()),i=o.next();!i.done;i=o.next()){var a=au(i.value,2),s=a[0],u=a[1];n+=s.length,u instanceof Blob?n+=u.size:n+=u.length}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}(r):r instanceof URLSearchParams?ap(r.toString()):"string"==typeof r?ap(r):void ac.warn("unknown body type")))}var o=function(t){if(!t.pipeThrough)return ac.warn("Platform has ReadableStream but not pipeThrough!"),{body:t,length:Promise.resolve(void 0)};var e,r=0,n=new Promise(function(t){e=t}),o=new TransformStream({start:function(){},transform:function(t,e){var n,o,i,a;return n=this,o=void 0,i=void 0,a=function(){var n;return aa(this,function(o){switch(o.label){case 0:return[4,t];case 1:return n=o.sent(),r+=n.byteLength,e.enqueue(t),[2]}})},new(i||(i=Promise))(function(t,e){function r(t){try{u(a.next(t))}catch(t){e(t)}}function s(t){try{u(a.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):((n=e.value)instanceof i?n:new i(function(t){t(n)})).then(r,s)}u((a=a.apply(n,o||[])).next())})},flush:function(){e(r)}});return{body:t.pipeThrough(o),length:n}}(n.body),i=o.body,a=o.length;return n.body=i,a}var s=t[0];return(null==s?void 0:s.body)?s.clone().text().then(function(t){return ap(t)}):Promise.resolve()}var af=new TextEncoder;function ap(t){return af.encode(t).byteLength}var ah="0.56.0",a_=(x=function(t,e){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}x(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ad=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},aE=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))},aT="object"==typeof td.default&&(null==(tu=td.default.release)?void 0:tu.name)==="node",ay=function(t){function e(e){void 0===e&&(e={});var r=t.call(this,"@opentelemetry/instrumentation-fetch",ah,e)||this;return r.component="fetch",r.version=ah,r.moduleName=r.component,r._usedResources=new WeakSet,r._tasksCount=0,r}return a_(e,t),e.prototype.init=function(){},e.prototype._addChildSpan=function(t,e){var r=this.tracer.startSpan("CORS Preflight",{startTime:e[ti.FETCH_START]},eI.setSpan(ey.active(),t));this.getConfig().ignoreNetworkEvents||an(r,e),r.end(e[ti.RESPONSE_END])},e.prototype._addFinalSpanAttributes=function(t,e){var r=ai(e.url);t.setAttribute(ne,e.status),null!=e.statusText&&t.setAttribute(ts.HTTP_STATUS_TEXT,e.statusText),t.setAttribute(r7,r.host),t.setAttribute(nt,r.protocol.replace(":","")),"undefined"!=typeof navigator&&t.setAttribute(nr,navigator.userAgent)},e.prototype._addHeaders=function(t,e){if(("string"==typeof(r=this.getConfig().propagateTraceHeaderCorsUrls||[])||r instanceof RegExp)&&(r=[r]),!(ai(e).origin===ao()||r.some(function(t){return nZ(e,t)}))){var r,n={};eC.inject(ey.active(),n),Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)eC.inject(ey.active(),t.headers,{set:function(t,e,r){return t.set(e,"string"==typeof r?r:String(r))}});else if(t.headers instanceof Headers)eC.inject(ey.active(),t.headers,{set:function(t,e,r){return t.set(e,"string"==typeof r?r:String(r))}});else if(t.headers instanceof Map)eC.inject(ey.active(),t.headers,{set:function(t,e,r){return t.set(e,"string"==typeof r?r:String(r))}});else{var n={};eC.inject(ey.active(),n),t.headers=Object.assign({},n,t.headers||{})}},e.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},e.prototype._createSpan=function(t,e){if(void 0===e&&(e={}),nV(t,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");var r,n=(e.method||"GET").toUpperCase(),o="HTTP "+n;return this.tracer.startSpan(o,{kind:Z.CLIENT,attributes:((r={})[ts.COMPONENT]=this.moduleName,r[r9]=n,r[r8]=t,r)}
1)},e.prototype._findResourceAndAddNetworkEvents=function(t,e,r){var n=e.entries;if(!n.length){if(!performance.getEntriesByType)return;n=performance.getEntriesByType("resource")}var o=function(t,e,r,n,o,i){void 0===o&&(o=new WeakSet);var a,s,u,c,l,f,p,h,_,d=ai(t),E=(a=t=d.toString(),s=e,u=r,c=n,l=o,f=i,p=nT(s),h=nT(u),(_=c.filter(function(t){var e=nT(nE(t[ti.FETCH_START])),r=nT(nE(t[ti.RESPONSE_END]));return t.initiatorType.toLowerCase()===(f||"xmlhttprequest")&&t.name===a&&e>=p&&r<=h})).length>0&&(_=_.filter(function(t){return!l.has(t)})),_);if(0===E.length)return{mainRequest:void 0};if(1===E.length)return{mainRequest:E[0]};var T=E.slice().sort(function(t,e){var r=t[ti.FETCH_START],n=e[ti.FETCH_START];return r>n?1:r<n?-1:0});if(d.origin===ao()||!(T.length>1))return{mainRequest:E[0]};var y=T[0],v=function(t,e,r){for(var n,o=nT(r),i=nT(nE(e)),a=t[1],s=t.length,u=1;u<s;u++){var c=t[u],l=nT(nE(c[ti.FETCH_START])),f=o-nT(nE(c[ti.RESPONSE_END]));l>=i&&(!n||f<n)&&(n=f,a=c)}return a}(T,y[ti.RESPONSE_END],r),g=y[ti.RESPONSE_END];return v[ti.FETCH_START]<g&&(v=y,y=void 0),{corsPreFlightRequest:y,mainRequest:v}}(e.spanUrl,e.startTime,r,n,this._usedResources,"fetch");if(o.mainRequest){var i=o.mainRequest;this._markResourceAsUsed(i);var a=o.corsPreFlightRequest;a&&(this._addChildSpan(t,a),this._markResourceAsUsed(a)),this.getConfig().ignoreNetworkEvents||an(t,i)}},e.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},e.prototype._endSpan=function(t,e,r){var n=this,o=nh(Date.now()),i=nd();this._addFinalSpanAttributes(t,r),setTimeout(function(){var r;null==(r=e.observer)||r.disconnect(),n._findResourceAndAddNetworkEvents(t,e,i),n._tasksCount--,n._clearResources(),t.end(o)},300)},e.prototype._patchConstructor=function(){var t=this;return function(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=this,i=ai(r[0]instanceof Request?r[0].url:String(r[0])).href,a=r[0]instanceof Request?r[0]:r[1]||{},s=t._createSpan(i,a);if(!s)return e.apply(this,r);var u=t._prepareSpanData(i);function c(e,r){t._applyAttributesAfterFetch(e,a,r),t._endSpan(e,u,{status:r.status||0,statusText:r.message,url:i})}function l(e,r){t._applyAttributesAfterFetch(e,a,r),r.status>=200&&r.status<400?t._endSpan(e,u,r):t._endSpan(e,u,{status:r.status,statusText:r.statusText,url:i})}function f(t,e,r){try{var n=r.clone(),o=r.clone(),i=n.body;if(i){var a=i.getReader(),s=function(){a.read().then(function(e){e.done?l(t,o):s()},function(e){c(t,e)})};s()}else l(t,r)}finally{e(r)}}function p(t,e,r){try{c(t,r)}finally{e(r)}}return t.getConfig().measureRequestSize&&al.apply(void 0,aE([],ad(r),!1)).then(function(t){t&&s.setAttribute(nn,t)}).catch(function(e){t._diag.warn("getFetchBodyLength",e)}),new Promise(function(r,n){return ey.with(eI.setSpan(ey.active(),s),function(){return t._addHeaders(a,i),t._tasksCount++,e.apply(o,a instanceof Request?[a]:[i,a]).then(f.bind(o,s,r),p.bind(o,s,n))})})}}},e.prototype._applyAttributesAfterFetch=function(t,e,r){var n=this,o=this.getConfig().applyCustomAttributesOnSpan;o&&oP(function(){return o(t,e,r)},function(t){t&&n._diag.error("applyCustomAttributesOnSpan",t)},!0)},e.prototype._prepareSpanData=function(t){var e=nd(),r=[];if("function"!=typeof PerformanceObserver)return{entries:r,startTime:e,spanUrl:t};var n=new PerformanceObserver(function(e){e.getEntries().forEach(function(e){"fetch"===e.initiatorType&&e.name===t&&r.push(e)})});return n.observe({entryTypes:["resource"]}),{entries:r,observer:n,startTime:e,spanUrl:t}},e.prototype.enable=function(){aT?this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()"):(oA(fetch)&&(this._unwrap(r0,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(r0,"fetch",this._patchConstructor()))},e.prototype.disable=function(){aT||(this._unwrap(r0,"fetch"),this._usedResources=new WeakSet)},e}(oL);(M=tc||(tc={})).EVENT_TYPE="event_type",M.TARGET_ELEMENT="target_element",M.TARGET_XPATH="target_xpath",M.HTTP_URL="http.url";var av="0.43.0",ag=(U=function(t,e){return(U=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}U(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),am=["click"];function aO(){return!1}var ab=function(t){function e(e){void 0===e&&(e={});var r,n=t.call(this,"@opentelemetry/instrumentation-user-interaction",av,e)||this;return n.version=av,n.moduleName="user-interaction",n._spansData=new WeakMap,n._wrappedListeners=new WeakMap,n._eventsSpanMap=new WeakMap,n._eventNames=new Set(null!=(r=null==e?void 0:e.eventNames)?r:am),n._shouldPreventSpanCreation="function"==typeof(null==e?void 0:e.shouldPreventSpanCreation)?e.shouldPreventSpanCreation:aO,n}return ag(e,t),e.prototype.init=function(){},e.prototype._checkForTimeout=function(t,e){var r=this._spansData.get(e);r&&("setTimeout"===t.source?r.hrTimeLastTimeout=nd():"Promise.then"!==t.source&&"setTimeout"!==t.source&&(r.hrTimeLastTimeout=void 0))},e.prototype._allowEventName=function(t){return this._eventNames.has(t)},e.prototype._createSpan=function(t,e,r){if(!(!(t instanceof HTMLElement)||!t.getAttribute||t.hasAttribute("disabled"))&&this._allowEventName(e)){var n,o=function t(e,r){if(e.nodeType===Node.DOCUMENT_NODE)return"/";var n=function(t,e){var r=t.nodeType,n=function(t){if(!t.parentNode)return 0;var e=[t.nodeType];t.nodeType===Node.CDATA_SECTION_NODE&&e.push(Node.TEXT_NODE);var r=Array.from(t.parentNode.childNodes);return(r=r.filter(function(r){var n=r.localName;return e.indexOf(r.nodeType)>=0&&n===t.localName})).length>=1?r.indexOf(t)+1:0}(t),o="";if(r===Node.ELEMENT_NODE){var i=t.getAttribute("id");if(e&&i)return'//*[@id="'+i+'"]';o=t.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)o="text()";else{if(r!==Node.COMMENT_NODE)return"";o="comment()"}return o&&n>1?"/"+o+"["+n+"]":"/"+o}(e,r);if(r&&n.indexOf("@id")>0)return n;var o="";return e.parentNode&&(o+=t(e.parentNode,!1)),o+=n}(t,!0);try{var i=this.tracer.startSpan(e,{attributes:((n={})[tc.EVENT_TYPE]=e,n[tc.TARGET_ELEMENT]=t.tagName,n[tc.TARGET_XPATH]=o,n[tc.HTTP_URL]=window.location.href,n)},r?eI.setSpan(ey.active(),r):void 0);if(!0===this._shouldPreventSpanCreation(e,t,i))return;return this._spansData.set(i,{taskCount:0}),i}catch(t){this._diag.error("failed to start create new user interaction span",t)}}},e.prototype._decrementTask=function(t){var e=this._spansData.get(t);e&&(e.taskCount--,0===e.taskCount&&this._tryToEndSpan(t,e.hrTimeLastTimeout))},e.prototype._getCurrentSpan=function(t){var e=t.get("OT_ZONE_CONTEXT");return e?eI.getSpan(e):e},e.prototype._incrementTask=function(t){var e=this._spansData.get(t);e&&e.taskCount++},e.prototype.addPatchedListener=function(t,e,r,n){var o=this._wrappedListeners.get(r);o||(o=new Map,this._wrappedListeners.set(r,o));var i=o.get(e);return i||(i=new Map,o.set(e,i)),!i.has(t)&&(i.set(t,n),!0)},e.prototype.removePatchedListener=function(t,e,r){var n=this._wrappedListeners.get(r);if(n){var o=n.get(e);if(o){var i=o.get(t);return i&&(o.delete(t),0===o.size&&(n.delete(e),0===n.size&&this._wrappedListeners.delete(r))),i}}},e.prototype._invokeListener=function(t,e,r){return"function"==typeof t?t.apply(e,r):t.handleEvent(r[0])},e.prototype._patchAddEventListener=function(){var t=this;return function(e){return function(r,n,o){if(!n)return e.call(this,r,n,o);var i=o&&"object"==typeof o&&o.once,a=function(){for(var e,o=this,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u=a[0],c=null==u?void 0:u.target;u&&(e=t._eventsSpanMap.get(u)),i&&t.removePatchedListener(this,r,n);var l=t._createSpan(c,r,e);return l?(u&&t._eventsSpanMap.set(u,l),ey.with(eI.setSpan(ey.active(),l),function(){var e=t._invokeListener(n,o,a);return l.end(),e})):t._invokeListener(n,this,a)};if(t.addPatchedListener(this,r,n,a))return e.call(this,r,a,o)}}},e.prototype._patchRemoveEventListener=function(){var t=this;return function(e){return function(r,n,o){var i=t.removePatchedListener(this,r,n);return i?e.call(this,r,i,o):e.call(this,r,n,o)}}},e.prototype._getPatchableEventTargets=function(){return window.EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]},e.prototype._patchHistoryApi=function(){this._unpatchHistoryApi(),this._wrap(history,"replaceState",this._patchHistoryMethod()),this._wrap(history,"pushState",this._patchHistoryMethod()),this._wrap(history,"back",this._patchHistoryMethod()),this._wrap(history,"forward",this._patchHistoryMethod()),this._wrap(history,"go",this._patchHistoryMethod())},e.prototype._patchHistoryMethod=function(){var t=this;return function(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=""+location.pathname+location.hash+location.search,i=e.apply(this,r),a=""+location.pathname+location.hash+location.search;return o!==a&&t._updateInteractionName(a),i}}},e.prototype._unpatchHistoryApi=function(){oA(history.replaceState)&&this._unwrap(history,"replaceState"),oA(history.pushState)&&this._unwrap(history,"pushState"),oA(history.back)&&this._unwrap(history,"back"),oA(history.forward)&&this._unwrap(history,"forward"),oA(history.go)&&this._unwrap(history,"go")},e.prototype._updateInteractionName=function(t){var e=eI.getSpan(ey.active());e&&"function"==typeof e.updateName&&e.updateName("Navigation: "+t)},e.prototype._patchZoneCancelTask=function(){var t=this;return function(e){return function(r){var n=Zone.current,o=t._getCurrentSpan(n);return o&&t._shouldCountTask(r,n)&&t._decrementTask(o),e.call(this,r)}}}
1,e.prototype._patchZoneScheduleTask=function(){var t=this;return function(e){return function(r){var n=Zone.current,o=t._getCurrentSpan(n);return o&&t._shouldCountTask(r,n)&&(t._incrementTask(o),t._checkForTimeout(r,o)),e.call(this,r)}}},e.prototype._patchZoneRunTask=function(){var t=this;return function(e){return function(r,n,o){var i,a=Array.isArray(o)&&o[0]instanceof Event?o[0]:void 0,s=null==a?void 0:a.target;if(s){if(i=t._createSpan(s,r.eventName))return t._incrementTask(i),this.run(function(){try{return ey.with(eI.setSpan(ey.active(),i),function(){var t=Zone.current;return r._zone=t,e.call(t,r,n,o)})}finally{t._decrementTask(i)}})}else i=t._getCurrentSpan(this);try{return e.call(this,r,n,o)}finally{i&&t._shouldCountTask(r,this)&&t._decrementTask(i)}}}},e.prototype._shouldCountTask=function(t,e){if(t._zone&&(e=t._zone),!e||!t.data||t.data.isPeriodic)return!1;var r=this._getCurrentSpan(e);return!!r&&!!this._spansData.get(r)&&("macroTask"===t.type||"microTask"===t.type)},e.prototype._tryToEndSpan=function(t,e){t&&this._spansData.get(t)&&(t.end(e),this._spansData.delete(t))},e.prototype.enable=function(){var t=this,e=this.getZoneWithPrototype();this._diag.debug("applying patch to",this.moduleName,this.version,"zone:",!!e),e?(oA(e.prototype.runTask)&&(this._unwrap(e.prototype,"runTask"),this._diag.debug("removing previous patch from method runTask")),oA(e.prototype.scheduleTask)&&(this._unwrap(e.prototype,"scheduleTask"),this._diag.debug("removing previous patch from method scheduleTask")),oA(e.prototype.cancelTask)&&(this._unwrap(e.prototype,"cancelTask"),this._diag.debug("removing previous patch from method cancelTask")),this._zonePatched=!0,this._wrap(e.prototype,"runTask",this._patchZoneRunTask()),this._wrap(e.prototype,"scheduleTask",this._patchZoneScheduleTask()),this._wrap(e.prototype,"cancelTask",this._patchZoneCancelTask())):(this._zonePatched=!1,this._getPatchableEventTargets().forEach(function(e){oA(e.addEventListener)&&(t._unwrap(e,"addEventListener"),t._diag.debug("removing previous patch from method addEventListener")),oA(e.removeEventListener)&&(t._unwrap(e,"removeEventListener"),t._diag.debug("removing previous patch from method removeEventListener")),t._wrap(e,"addEventListener",t._patchAddEventListener()),t._wrap(e,"removeEventListener",t._patchRemoveEventListener())})),this._patchHistoryApi()},e.prototype.disable=function(){var t=this,e=this.getZoneWithPrototype();this._diag.debug("removing patch from",this.moduleName,this.version,"zone:",!!e),e&&this._zonePatched?(oA(e.prototype.runTask)&&this._unwrap(e.prototype,"runTask"),oA(e.prototype.scheduleTask)&&this._unwrap(e.prototype,"scheduleTask"),oA(e.prototype.cancelTask)&&this._unwrap(e.prototype,"cancelTask")):this._getPatchableEventTargets().forEach(function(e){oA(e.addEventListener)&&t._unwrap(e,"addEventListener"),oA(e.removeEventListener)&&t._unwrap(e,"removeEventListener")}),this._unpatchHistoryApi()},e.prototype.getZoneWithPrototype=function(){return window.Zone},e}(oL);(j=tl||(tl={})).CONNECT_END="connectEnd",j.CONNECT_START="connectStart",j.DECODED_BODY_SIZE="decodedBodySize",j.DOM_COMPLETE="domComplete",j.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",j.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",j.DOM_INTERACTIVE="domInteractive",j.DOMAIN_LOOKUP_END="domainLookupEnd",j.DOMAIN_LOOKUP_START="domainLookupStart",j.ENCODED_BODY_SIZE="encodedBodySize",j.FETCH_START="fetchStart",j.LOAD_EVENT_END="loadEventEnd",j.LOAD_EVENT_START="loadEventStart",j.NAVIGATION_START="navigationStart",j.REDIRECT_END="redirectEnd",j.REDIRECT_START="redirectStart",j.REQUEST_START="requestStart",j.RESPONSE_END="responseEnd",j.RESPONSE_START="responseStart",j.SECURE_CONNECTION_START="secureConnectionStart",j.UNLOAD_EVENT_END="unloadEventEnd",j.UNLOAD_EVENT_START="unloadEventStart";function aS(t,e,r,n){var o=void 0,i=void 0;e in r&&"number"==typeof r[e]&&(o=r[e]);var a=n||tl.FETCH_START;if(a in r&&"number"==typeof r[a]&&(i=r[a]),void 0!==o&&void 0!==i&&o>=i)return t.addEvent(e,o),t}function aR(t,e){aS(t,tl.FETCH_START,e),aS(t,tl.DOMAIN_LOOKUP_START,e),aS(t,tl.DOMAIN_LOOKUP_END,e),aS(t,tl.CONNECT_START,e),"n
1ame"in e&&e.name.startsWith("https:")&&aS(t,tl.SECURE_CONNECTION_START,e),aS(t,tl.CONNECT_END,e),aS(t,tl.REQUEST_START,e),aS(t,tl.RESPONSE_START,e),aS(t,tl.RESPONSE_END,e);var r=e[tl.ENCODED_BODY_SIZE];void 0!==r&&t.setAttribute(no,r);var n=e[tl.DECODED_BODY_SIZE];void 0!==n&&r!==n&&t.setAttribute(ni,n)}function aL(){return"undefined"!=typeof location?location.origin:void 0}function aP(t){if("function"==typeof URL)return new URL(t,"undefined"!=typeof document?document.baseURI:"undefined"!=typeof location?location.href:void 0);var e=(tf||(tf=document.createElement("a")),tf);return e.href=t,e}(B=tp||(tp={})).METHOD_OPEN="open",B.METHOD_SEND="send",B.EVENT_ABORT="abort",B.EVENT_ERROR="error",B.EVENT_LOAD="loaded",B.EVENT_TIMEOUT="timeout";var aA=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},aw=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},aC=ev.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-xml-http-request/utils"}),aN=new TextEncoder;function aI(t){return aN.encode(t).byteLength}var ak="0.56.0";(th||(th={})).HTTP_STATUS_TEXT="http.status_text";var aD=(H=function(t,e){return(H=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}H(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ax=function(t){function e(e){void 0===e&&(e={});var r=t.call(this,"@opentelemetry/instrumentation-xml-http-request",ak,e)||this;return r.component="xml-http-request",r.version=ak,r.moduleName=r.component,r._tasksCount=0,r._xhrMem=new WeakMap,r._usedResources=new WeakSet,r}return aD(e,t),e.prototype.init=function(){},e.prototype._addHeaders=function(t,e){if(r=aP(e).href,("string"==typeof(n=this.getConfig().propagateTraceHeaderCorsUrls||[])||n instanceof RegExp)&&(n=[n]),!(aP(r).origin===aL()||n.some(function(t){return nZ(r,t)}))){var r,n,o={};eC.inject(ey.active(),o),Object.keys(o).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}var i={};
1eC.inject(ey.active(),i),Object.keys(i).forEach(function(e){t.setRequestHeader(e,String(i[e]))})},e.prototype._addChildSpan=function(t,e){var r=this;ey.with(eI.setSpan(ey.active(),t),function(){var t=r.tracer.startSpan("CORS Preflight",{startTime:e[tl.FETCH_START]});r.getConfig().ignoreNetworkEvents||aR(t,e),t.end(e[tl.RESPONSE_END])})},e.prototype._addFinalSpanAttributes=function(t,e,r){if("string"==typeof r){var n=aP(r);void 0!==e.status&&t.setAttribute(ne,e.status),void 0!==e.statusText&&t.setAttribute(th.HTTP_STATUS_TEXT,e.statusText),t.setAttribute(r7,n.host),t.setAttribute(nt,n.protocol.replace(":","")),t.setAttribute(nr,navigator.userAgent)}},e.prototype._applyAttributesAfterXHR=function(t,e){var r=this,n=this.getConfig().applyCustomAttributesOnSpan;"function"==typeof n&&oP(function(){return n(t,e)},function(t){t&&r._diag.error("applyCustomAttributesOnSpan",t)},!0)},e.prototype._addResourceObserver=function(t,e){var r=this._xhrMem.get(t);r&&"function"==typeof PerformanceObserver&&"function"==typeof PerformanceResourceTiming&&(r.createdResources={observer:new PerformanceObserver(function(t){var n=t.getEntries(),o=aP(e);n.forEach(function(t){"xmlhttprequest"===t.initiatorType&&t.name===o.href&&r.createdResources&&r.createdResources.entries.push(t)})}),entries:[]},r.createdResources.observer.observe({entryTypes:["resource"]}))},e.prototype._clearResources=function(){0===this._tasksCount&&this.getConfig().clearTimingResources&&(r4.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},e.prototype._findResourceAndAddNetworkEvents=function(t,e,r,n,o){if(r&&n&&o&&t.createdResources){var i=t.createdResources.entries;i&&i.length||(i=r4.getEntriesByType("resource"));var a=function(t,e,r,n,o,i){void 0===o&&(o=new WeakSet);var a,s,u,c,l,f,p,h,_,d=aP(t),E=(a=t=d.toString(),s=e,u=r,c=n,l=o,f=void 0,p=nT(s),h=nT(u),(_=c.filter(function(t){var e=nT(nE(t[tl.FETCH_START])),r=nT(nE(t[tl.RESPONSE_END]));return t.initiatorType.toLowerCase()===(f||"xmlhttprequest")&&t.name===a&&e>=p&&r<=h})).length>0&&(_=_.filter(function(t){return!l.has(t)})),_);if(0===E.length)return{mainRequest:void 0};if(1===E.length)return{mainRequest:E[0]};var T=E.slice().sort(function(t,e){var r=t[tl.FETCH_START],n=e[tl.FETCH_START];return r>n?1:r<n?-1:0});if(d.origin===aL()||!(T.length>1))return{mainRequest:E[0]};var y=T[0],v=function(t,e,r){for(var n,o=nT(r),i=nT(nE(e)),a=t[1],s=t.length,u=1;u<s;u++){var c=t[u],l=nT(nE(c[tl.FETCH_START])),f=o-nT(nE(c[tl.RESPONSE_END]));l>=i&&(!n||f<n)&&(n=f,a=c)}return a}(T,y[tl.RESPONSE_END],r),g=y[tl.RESPONSE_END];return v[tl.FETCH_START]<g&&(v=y,y=void 0),{corsPreFlightRequest:y,mainRequest:v}}(aP(r).href,n,o,i,this._usedResources);if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var u=a.corsPreFlightRequest;u&&(this._addChildSpan(e,u),this._markResourceAsUsed(u)),this.getConfig().ignoreNetworkEvents||aR(e,s)}}},e.prototype._cleanPreviousSpanInformation=function(t){var e=this._xhrMem.get(t);if(e){var r=e.callbackToRemoveEvents;r&&r(),this._xhrMem.delete(t)}},e.prototype._createSpan=function(t,e,r){if(nV(e,this.getConfig().ignoreUrls))return void this._diag.debug("ignoring span as url matches ignored url");var n,o=r.toUpperCase(),i=this.tracer.startSpan(o,{kind:Z.CLIENT,attributes:((n={})[r9]=r,n[r8]=aP(e).toString(),n)});return i.addEvent(tp.METHOD_OPEN),this._cleanPreviousSpanInformation(t),this._xhrMem.set(t,{span:i,spanUrl:e}),i},e.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},e.prototype._patchOpen=function(){var t=this;return function(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=r[0],i=r[1];return t._createSpan(this,i,o),e.apply(this,r)}}},e.prototype._patchSend=function(){var t=this;function e(e,r){var n=t._xhrMem.get(r);if(n){n.status=r.status,n.statusText=r.statusText,t._xhrMem.delete(r),n.span&&t._applyAttributesAfterXHR(n.span,r);var o=nd(),i=Date.now();setTimeout(function(){var r,a,s,u;"function"==typeof(r=n.callbackToRemoveEvents)&&r(),a=n.span,s=n.spanUrl,u=n.sendStartTime,a&&(t._findResourceAndAddNetworkEvents(n,a,s,u,o),a.addEvent(e,i),t._addFinalSpanAttributes(a,n,s),a.end(i),t._tasksCount--),t._clearResources()},300)}}function r(){e(tp.EVENT_ERROR,this)}function n(){e(tp.EVENT_ABORT,this)}function o(){e(tp.EVENT_TIMEOUT,this)}function i(){this.status<299?e(tp.EVENT_LOAD,this):e(tp.EVENT_ERROR,this)}return function(e){return function(){for(var a=this,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];var c=t._xhrMem.get(this);if(!c)return e.apply(this,s);var l=c.span,f=c.spanUrl;if(l&&f){if(t.getConfig().measureRequestSize&&(null==s?void 0:s[0])){var p,h=(p=s[0],"undefined"!=typeof Document&&p instanceof Document?new XMLSerializer().serializeToString(document).length:p instanceof Blob?p.size:void 0!==p.byteLength?p.byteLength:p instanceof FormData?function(t){var e,r,n=0;try{for(var o=aA(t.entries()),i=o.next();!i.done;i=o.next()){var a=aw(i.value,2),s=a[0],u=a[1];n+=s.length,u instanceof Blob?n+=u.size:n+=u.length}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}(p):p instanceof URLSearchParams?aI(p.toString()):"string"==typeof p?aI(p):void aC.warn("unknown body type"));void 0!==h&&l.setAttribute(nn,h)}ey.with(eI.setSpan(ey.active(),l),function(){t._tasksCount++,c.sendStartTime=nd(),l.addEvent(tp.METHOD_SEND),a.addEventListener("abort",n),a.addEventListener("error",r),a.addEventListener("load",i),a.addEventListener("timeout",o),c.callbackToRemoveEvents=function(){var e;a.removeEventListener("abort",n),a.removeEventListener("error",r),a.removeEventListener("load",i),a.removeEventListener("timeout",o),(e=t._xhrMem.get(a))&&(e.callbackToRemoveEvents=void 0),c.createdResources&&c.createdResources.observer.disconnect()},t._addHeaders(a,f),t._addResourceObserver(a,f)})}return e.apply(this,s)}}},e.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),oA(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),oA(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())},e.prototype.disable=function(){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},e}(oL),aM=function(){return(aM=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},aU=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},aj=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},aB=function(){function t(t,e){var r,n=this;this._attributes=t,this.asyncAttributesPending=null!=e,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==e?void 0:e.then(function(t){return n._attributes=Object.assign({},n._attributes,t),n.asyncAttributesPending=!1,t},function(t){return ev.debug("a resource's async attributes promise rejected: %s",t),n.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t(((e={})[ns]="unknown_service",e[nc]=np[nc],e[nu]=np[nu],e[nl]=np[nl],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&ev.error("Accessing resource attributes before async attributes settled"),null!=(t=this._attributes)?t:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function(){return aU(this,function(t){switch(t.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:t.sent(),t.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},t.prototype.merge=function(e){var r,n=this;if(!e)return this;var o=aM(aM({},this._syncAttributes),null!=(r=e._syncAttributes)?r:e.attributes);return this._asyncAttributesPromise||e._asyncAttributesPromise?new t(o,Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(t){var r,o=aj(t,2),i=o[0],a=o[1];return aM(aM(aM(aM({},n._syncAttributes),i),null!=(r=e._syncAttributes)?r:e.attributes),a)})):new t(o)},t.EMPTY=new t({}),t}(),aH=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},aF=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},az=function(){function t(t,e,r){this.attributes={},this.totalAttributesCount=0,this._isReadonly=!1;var n=r.timestamp,o=r.observedTimestamp,i=r.severityNumber,a=r.severityText,s=r.body,u=r.attributes,c=r.context,l=Date.now();if(this.hrTime=nE(null!=n?n:l),this.hrTimeObserved=nE(null!=o?o:l),c){var f=eI.getSpanContext(c);f&&el(f)&&(this.spanContext=f)}this.severityNumber=i,this.severityText=a,this.body=s,this.resource=t.resource,this.instrumentationScope=e,this._logRecordLimits=t.logRecordLimits,this.setAttributes(void 0===u?{}:u)}return Object.defineProperty(t.prototype,"severityText",{get:function(){return this._severityText},set:function(t){this._isLogRecordReadonly()||(this._severityText=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"severityNumber",{get:function(){return this._severityNumber},set:function(t){this._isLogRecordReadonly()||(this._severityNumber=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._body},set:function(t){this._isLogRecordReadonly()||(this._body=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this.totalAttributesCount-Object.keys(this.attributes).length},enumerable:!1,configurable:!0}),t.prototype.setAttribute=function(t,e){return this._isLogRecordReadonly()||null===e||(0===t.length?ev.warn("Invalid attribute key: "+t):rX(e)||"object"==typeof e&&!Array.isArray(e)&&Object.keys(e).length>0?(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t))?1===this.droppedAttributesCount&&ev.warn("Dropping extra attributes."):rX(e)?this.attributes[t]=this._truncateToSize(e):this.attributes[t]=e:ev.warn("Invalid attribute value set for key: "+t)),this},t.prototype.setAttributes=function(t){var e,r;try{for(var n=aH(Object.entries(t)),o=n.next();!o.done;o=n.next()){var i=aF(o.value,2),a=i[0],s=i[1];this.setAttribute(a,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},t.prototype.setBody=function(t){return this.body=t,this},t.prototype.setSeverityNumber=function(t){return this.severityNumber=t,this},t.prototype.setSeverityText=function(t){return this.severityText=t,this},t.prototype._makeReadonly=function(){this._isReadonly=!0},t.prototype._truncateToSize=function(t){var e=this,r=this._logRecordLimits.attributeValueLengthLimit;return r<=0?(ev.warn("Attribute value limit must be positive, got "+r),t):"str
1ing"==typeof t?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(function(t){return"string"==typeof t?e._truncateToLimitUtil(t,r):t}):t},t.prototype._truncateToLimitUtil=function(t,e){return t.length<=e?t:t.substring(0,e)},t.prototype._isLogRecordReadonly=function(){return this._isReadonly&&ev.warn("Can not execute the operation on emitted log record"),this._isReadonly},t}(),aX=function(){return(aX=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},aG=function(){function t(t,e){this.instrumentationScope=t,this._sharedState=e}return t.prototype.emit=function(t){var e=t.context||ey.active(),r=new az(this._sharedState,this.instrumentationScope,aX({context:e},t));this._sharedState.activeProcessor.onEmit(r,e),r._makeReadonly()},t}(),aZ=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},aV=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},aq=function(){function t(t,e){this.processors=t,this.forceFlushTimeoutMillis=e}return t.prototype.forceFlush=function(){return aZ(this,void 0,void 0,function(){var t;return aV(this,function(e){switch(e.label){case 0:return t=this.forceFlushTimeoutMillis,[4,Promise.all(this.processors.map(function(e){return nX(e.forceFlush(),t)}))];case 1:return e.sent(),[2]}})})},t.prototype.onEmit=function(t,e){this.processors.forEach(function(r){return r.onEmit(t,e)})},t.prototype.shutdown=function(){return aZ(this,void 0,void 0,function(){return aV(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.processors.map(function(t){return t.shutdown()}))];case 1:return t.sent(),[2]}})})},t}(),aW=function(){function t(){}return t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.onEmit=function(t,e){},t.prototype.shutdown=function(){return Promise.resolve()},t}(),aK=function(t,e,r){this.resource=t,this.forceFlushTimeoutMillis=e,this.logRecordLimits=r,this.loggers=new Map,this.registeredLogRecordProcessors=[],this.activeProcessor=new aW},a$=function(){function t(t){void 0===t&&(t={});var e,r,n,o,i,a,s,u,c,l,f,p=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=t.shift(),n=new WeakMap;t.length>0;)r=function t(e,r,n,o){if(void 0===n&&(n=0),!(n>20)){if(n++,nH(e)||nH(r)||nj(r))s=nx(r);else if(nU(e)){if(s=e.slice(),nU(r))for(var i,a,s,u=0,c=r.length;u<c;u++)s.push(nx(r[u]));else if(nB(r))for(var l=Object.keys(r),u=0,c=l.length;u<c;u++){var f=l[u];s[f]=nx(r[f])}}else if(nB(e))if(nB(r)){if(i=e,a=r,!(nD(i)&&nD(a)))return r;s=Object.assign({},e);for(var l=Object.keys(r),u=0,c=l.length;u<c;u++){var f=l[u],p=r[f];if(nH(p))void 0===p?delete s[f]:s[f]=p;else{var h=s[f];if(nM(e,f,o)||nM(r,f,o))delete s[f];else{if(nB(h)&&nB(p)){var _=o.get(h)||[],d=o.get(p)||[];_.push({obj:e,key:f}),d.push({obj:r,key:f}),o.set(h,_),o.set(p,d)}s[f]=t(s[f],p,n,o)}}}}else s=r;return s}}(r,t.shift(),0,n);return r}({},{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:r1().OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:r1().OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT},includeTraceContext:!0,mergeResourceWithDefaults:!0},t),h=(e=p.mergeResourceWithDefaults,n=null!=(r=t.resource)?r:aB.empty(),e?aB.default().merge(n):n);this._sharedState=new aK(h,p.forceFlushTimeoutMillis,(o=p.logRecordLimits,f=rJ(r0),{attributeCountLimit:null!=(s=null!=(a=null!=(i=o.attributeCountLimit)?i:f.OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT)?a:f.OTEL_ATTRIBUTE_COUNT_LIMIT)?s:128,attributeValueLengthLimit:null!=(l=null!=(c=null!=(u=o.attributeValueLengthLimit)?u:f.OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT)?c:f.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)?l:r$})),this._shutdownOnce=new n$(this._shutdown,this)}return t.prototype.getLogger=function(t,e,r){if(this._shutdownOnce.isCalled)return ev.warn("A shutdown LoggerProvider cannot provide a Logger"),eD;t||ev.warn("Logger requested without instrumentation scope name.");var n=t||"unknown",o=n+"@"+(e||"")+":"+((null==r?void 0:r.schemaUrl)||"");return this._sharedState.loggers.has(o)||this._sharedState.loggers.set(o,new aG({name:n,version:e,schemaUrl:null==r?void 0:r.schemaUrl},this._sharedState)),this._sharedState.loggers.get(o)},t.prototype.addLogRecordProcessor=function(t){0===this._sharedState.registeredLogRecordProcessors.length&&this._sharedState.activeProcessor.shutdown().catch(function(t){return ev.error("Error while trying to shutdown current log record processor",t)}),this._sharedState.registeredLogRecordProcessors.push(t),this._sharedState.activeProcessor=new aq(this._sharedState.registeredLogRecordProcessors,this._sharedState.forceFlushTimeoutMillis)},t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?(ev.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()},t.prototype.shutdown=function(){return this._shutdownOnce.isCalled?(ev.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._sharedState.activeProcessor.shutdown()},t}(),aY=function(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){var u=[i,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=e.call(t,a)}catch(t){u=[6,t],n=0}
1finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},aQ=function(){function t(t,e){this._exporter=t,this._finishedLogRecords=[];var r,n,o,i,a=r1();this._maxExportBatchSize=null!=(r=null==e?void 0:e.maxExportBatchSize)?r:a.OTEL_BLRP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=null!=(n=null==e?void 0:e.maxQueueSize)?n:a.OTEL_BLRP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=null!=(o=null==e?void 0:e.scheduledDelayMillis)?o:a.OTEL_BLRP_SCHEDULE_DELAY,this._exportTimeoutMillis=null!=(i=null==e?void 0:e.exportTimeoutMillis)?i:a.OTEL_BLRP_EXPORT_TIMEOUT,this._shutdownOnce=new n$(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ev.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.onEmit=function(t){this._shutdownOnce.isCalled||this._addToBuffer(t)},t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function(){return aY(this,function(t){switch(t.label){case 0:return this.onShutdown(),[4,this._flushAll()];case 1:return t.sent(),[4,this._exporter.shutdown()];case 2:return t.sent(),[2]}})},new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},t.prototype._addToBuffer=function(t){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(t),this._maybeStartTimer())},t.prototype._flushAll=function(){var t=this;return new Promise(function(e,r){for(var n=[],o=Math.ceil(t._finishedLogRecords.length/t._maxExportBatchSize),i=0;i<o;i++)n.push(t._flushOneBatch());Promise.all(n).then(function(){e()}).catch(r)})},t.prototype._flushOneBatch=function(){var t=this;return(this._clearTimer(),0===this._finishedLogRecords.length)?Promise.resolve():new Promise(function(e,r){nX(t._export(t._finishedLogRecords.splice(0,t._maxExportBatchSize)),t._exportTimeoutMillis).then(function(){return e()}).catch(r)})},t.prototype._maybeStartTimer=function(){var t=this;void 0===this._timer&&(this._timer=setTimeout(function(){t._flushOneBatch().then(function(){t._finishedLogRecords.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(t){rV(t)})},this._scheduledDelayMillis),this._timer)},t.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},t.prototype._export=function(t){var e=this,r=function(){var r,n;return(r=e._exporter,n=t,new Promise(function(t){ey.with(ey.active().setValue(rF,!0),function(){r.export(n,function(e){t(e)})})})).then(function(t){var e;t.code!==$.SUCCESS&&rV(null!=(e=t.error)?e:Error("BatchLogRecordProcessor: log record export failed (status "+t+")"))}).catch(rV)},n=t.map(function(t){return t.resource}).filter(function(t){return t.asyncAttributesPending});return 0===n.length?r():Promise.all(n.map(function(t){var e;return null==(e=t.waitForAsyncAttributes)?void 0:e.call(t)})).then(r,rV)},t}(),aJ=(F=function(t,e){return(F=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}F(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a0=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n._onInit(r),n}return aJ(e,t),e.prototype.onShutdown=function(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},e.prototype._onInit=function(t){var e=this;(null==t?void 0:t.disableAutoFlushOnDocumentHide)!==!0&&"undefined"!=typeof document&&(this._visibilityChangeListener=function(){"hidden"===document.visibilityState&&e.forceFlush()},this._pageHideListener=function(){e.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},e}(aQ),a1=!1,a2="",a3="1.0.0",a4=!1,a5=!1;function a6(t,e={}){var r;if("undefined"==typeof window||!a4)return;let n=(r=t)instanceof Error?r:"string"==typeof r?Error(r):Error(a8(r)),o=e.source||"app.error",i=e.category||"app",a=eI.getTracer(a2,a3).startSpan(o,{attributes:{"error.category":i,"error.source":o,...a7(e.attributes)}});a.recordException(n),a.setStatus({code:2,message:n.message}),a.end(),a9(q.ERROR,"ERROR",o,n,e)}function a9(t,e,r,n,o){let i=function(){if(a1)return eH.getLogger("tpi-observability-web")}();i&&i.emit({severityNumber:t,severityText:e,body:`${r}: ${n.message}`,attributes:{"error.category":o.category||"app","error.source":r,"error.type":n.name,"error.message":n.message,"error.stacktrace":n.stack||"",...a7(o.attributes)}})}function a8(t){try{return JSON.stringify(t)}catch(e){return String(t)}}function a7(t){if(!t)return{};let e={};for(let r of Object.keys(t)){let n=t[r];null!=n&&(e[r]=n)}return e}var st=!1,se=[];function sr(t,e,r,n,o){if(!r)return;let i=function(t){if(!t)return;if("undefined"!=typeof Response&&t instanceof Response||"undefined"!=typeof XMLHttpRequest&&t instanceof XMLHttpRequest)return t.status;let e=t.status;return"number"==typeof e?e:void 0}(r);if("number"!=typeof i||i<400||(t.setAttribute("error.type",String(i)),t.setStatus({code:2,message:`HTTP ${i}`}),!o))return;let a=function(t,e){if(t&&("undefined"!=typeof Request&&t instanceof Request||"url"in t&&"string"==typeof t.url))return t.url;if(e){if("undefined"!=typeof Response&&e instanceof Response)return e.url;if("undefined"!=typeof XMLHttpRequest&&e instanceof XMLHttpRequest)return e.responseURL}}(e,r)||"<unknown>";!function(t,e,r,n){if("undefined"==typeof window||!a4)return;let o=Error(`HTTP ${r} ${t} ${e}`),i=`${n}.http_error`,a=r>=500?"http.5xx":"http.4xx",s={"http.method":t,"http.url":e,"http.status_code":r,"http.kind":n},u=eI.getTracer(a2,a3).startSpan(i,{attributes:{"error.category":a,"error.source":i,...s}});u.setStatus({code:2,message:`HTTP ${r}`}),u.end();let c=r>=500;a9(c?q.ERROR:q.WARN,c?"ERROR":"WARN",i,o,{source:i,category:a,attributes:s})}(function(t){if(!t)return;if("undefined"!=typeof Request&&t instanceof Request)return t.method;let e=t.method;return"string"==typeof e?e:void 0}(e)||("xhr"===n?"XHR":"GET"),a,i,n)}function sn({options:t,children:e}){let r=(0,tE.useRef)(!1);r.current||(!function(t){var e;if("undefined"==typeof window||st)return;st=!0;let r=t.serviceName,n=t.serviceVersion||"1.0.0",o=t.environment||"dev";if(se=t.ignoreUrls||[],a4=(e={enabled:t.enabled,serviceName:r,serviceVersion:n,environment:o}).enabled,a2=e.serviceName,a3=e.serviceVersion,e.environment,!t.enabled)return;let i=t.endpoint||"http://192.168.31.211:4318/v1/traces",a=t.logsEndpoint||(i.endsWith("/v1/traces")?i.replace(/\/v1\/traces$/,"/v1/logs"):i.endsWith("/")?`${i}v1/logs`:`${i}/v1/logs`);new i4({resource:new iq({"service.name":r,"service.version":n,"deployment.environment":o}),spanProcessors:[new ij(new om({url:i}))]}).register({contextManager:new ez});let s=new a$({resource:new iq({"service.name":r,"service.version":n,"deployment.environment":o})});s.addLogRecordProcessor(new a0(new ov({url:a}))),eH.setGlobalLoggerProvider(s),a1=!0;let u=!1!==t.markHttpErrorSpan;!function(t){for(var e,r,n=t.tracerProvider||eI.getTracerProvider(),o=t.meterProvider||eO.getMeterProvider(),i=t.loggerProvider||eH.getLoggerProvider(),a=null!=(r=null==(e=t.instrumentations)?void 0:e.flat())?r:[],s=0,u=a.length;s<u;s++){var c=a[s];
1n&&c.setTracerProvider(n),o&&c.setMeterProvider(o),i&&c.setLoggerProvider&&c.setLoggerProvider(i),c.getConfig().enabled||c.enable()}}({instrumentations:[new ae,new ay({ignoreUrls:se,applyCustomAttributesOnSpan:(t,e,r)=>{sr(t,e,r,"fetch",u)}}),new ax({ignoreUrls:se,applyCustomAttributesOnSpan:(t,e)=>{sr(t,void 0,e,"xhr",u)}}),new ab]}),!1!==t.captureGlobalErrors&&function(t=a6){"undefined"==typeof window||a5||(a5=!0,window.addEventListener("error",e=>{t(e.error instanceof Error?e.error:Error(e.message||"Unknown window error"),{source:"window.error",category:"uncaught_error",attributes:{"error.filename":e.filename||"","error.lineno":e.lineno||0,"error.colno":e.colno||0,"browser.url":window.location.href}})}),window.addEventListener("unhandledrejection",e=>{let r=e.reason;t(r instanceof Error?r:Error("string"==typeof r?r:a8(r)),{source:"window.unhandledrejection",category:"unhandled_promise_rejection",attributes:{"browser.url":window.location.href}})}))}(a6)}(t),r.current=!0);let n=(0,tT.usePathname)();return(0,tE.useEffect)(()=>{t.enabled&&function(t){if(!a4)return;let e=eI.getTracer(a2,a3);null==t_||t_.end(),t_=e.startSpan("route-navigate",{attributes:{page:t}})}(n)},[n,t.enabled]),(0,ty.jsx)(ty.Fragment,{children:e})}t.s(["ObservabilityProvider",()=>sn])},56713,t=>{"use strict";function e(){return null}(0,t.i(90719).ensureFetchTimeout)(),t.s(["default",()=>e])}]);

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.