-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 242 KB
/
index.js
1
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.OpsVerseRum=e():t.OpsVerseRum=e()}(self,(()=>(()=>{var t={370:(t,e,n)=>{"use strict";n.d(e,{nV:()=>_,Rr:()=>x,Iu:()=>N,Uz:()=>J,MU:()=>$,Qn:()=>tt,rh:()=>R,uc:()=>g,Do:()=>dt,Yz:()=>A,K:()=>St,BM:()=>Y,Lc:()=>X,jN:()=>Z,uA:()=>Tt,g4:()=>Et});var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},o="1.0.4",i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var a=function(t){var e=new Set([t]),n=new Set,r=t.match(i);if(!r)return function(){return!1};var o=+r[1],a=+r[2],s=+r[3];if(null!=r[4])return function(e){return e===t};function u(t){return n.add(t),!1}function c(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(n.has(t))return!1;var r=t.match(i);if(!r)return u(t);var l=+r[1],p=+r[2],f=+r[3];return null!=r[4]||o!==l?u(t):0===o?a===p&&s<=f?c(t):u(t):a<=p?c(t):u(t)}}(o),s=o.split(".")[0],u=Symbol.for("opentelemetry.js.api."+s),c=r;function l(t,e,n,r){var i;void 0===r&&(r=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o};if(!r&&a[t]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(s.stack||s.message),!1}if(a.version!==o){s=new Error("@opentelemetry/api: All API registration versions must match");return n.error(s.stack||s.message),!1}return a[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+"1.0.4."),!0}function p(t){var e,n,r=null===(e=c[u])||void 0===e?void 0:e.version;if(r&&a(r))return null===(n=c[u])||void 0===n?void 0:n[t]}function f(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+"1.0.4.");var n=c[u];n&&delete n[t]}var _,h=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return d("debug",this._namespace,t)},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return d("error",this._namespace,t)},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return d("info",this._namespace,t)},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return d("warn",this._namespace,t)},t.prototype.verbose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return d("verbose",this._namespace,t)},t}();function d(t,e,n){var r=p("diag");if(r)return n.unshift(e),r[t].apply(r,n)}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(_||(_={}));var E=function(){function t(){function t(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=p("diag");if(r)return r[t].apply(r,e)}}var e=this;e.setLogger=function(t,n){var r,o;if(void 0===n&&(n=_.INFO),t===e){var i=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(r=i.stack)&&void 0!==r?r:i.message),!1}var a=p("diag"),s=function(t,e){function n(n,r){var o=e[n];return"function"==typeof o&&t>=r?o.bind(e):function(){}}return t<_.NONE?t=_.NONE:t>_.ALL&&(t=_.ALL),e=e||{},{error:n("error",_.ERROR),warn:n("warn",_.WARN),info:n("info",_.INFO),debug:n("debug",_.DEBUG),verbose:n("verbose",_.VERBOSE)}}(n,t);if(a){var u=null!==(o=(new Error).stack)&&void 0!==o?o:"<failed to generate stacktrace>";a.warn("Current logger will be overwritten from "+u),s.warn("Current logger will overwrite one already registered from "+u)}return l("diag",s,e,!0)},e.disable=function(){f("diag",e)},e.createComponentLogger=function(t){return new h(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),T=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(t){return[t[0],t[1]]}))},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=new t(this._entries),o=0,i=e;o<i.length;o++){var a=i[o];r._entries.delete(a)}return r},t.prototype.clear=function(){return new t},t}(),S=Symbol("BaggageEntryMetadata"),v=E.instance();function y(t){return void 0===t&&(t={}),new T(new Map(Object.entries(t)))}function g(t){return"string"!=typeof t&&(v.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:S,toString:function(){return t}}}var m={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},O={set:function(t,e,n){null!=t&&(t[e]=n)}};function A(t){return Symbol.for(t)}var R,b=function t(e){var n=this;n._currentContext=e?new Map(e):new Map,n.getValue=function(t){return n._currentContext.get(t)},n.setValue=function(e,r){var o=new t(n._currentContext);return o._currentContext.set(e,r),o},n.deleteValue=function(e){var r=new t(n._currentContext);return r._currentContext.delete(e),r}},N=new b,P=function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},L=function(){function t(){}return t.prototype.active=function(){return N},t.prototype.with=function(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return e.call.apply(e,P([n],r))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),C=function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t},w="context",I=new L,D=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(w,t,E.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,n){for(var r,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return(r=this._getContextManager()).with.apply(r,C([t,e,n],o))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return p(w)||I},t.prototype.disable=function(){this._getContextManager().disable(),f(w,E.instance())},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(R||(R={}));var M="0000000000000000",U="00000000000000000000000000000000",x={traceId:U,spanId:M,traceFlags:R.NONE},k=function(){function t(t){void 0===t&&(t=x),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),B=A("OpenTelemetry Context Key SPAN");function j(t){return t.getValue(B)||void 0}function G(t,e){return t.setValue(B,e)}function V(t){return t.deleteValue(B)}function F(t,e){return G(t,new k(e))}function H(t){var e;return null===(e=j(t))||void 0===e?void 0:e.spanContext()}var z=/^([0-9a-f]{32})$/i,K=/^[0-9a-f]{16}$/i;function Z(t){return z.test(t)&&t!==U}function X(t){return K.test(t)&&t!==M}function Y(t){return Z(t.traceId)&&X(t.spanId)}function W(t){return new k(t)}var q=D.getInstance(),Q=function(){function t(){}return t.prototype.startSpan=function(t,e,n){if(Boolean(null==e?void 0:e.root))return new k;var r,o=n&&H(n);return"object"==typeof(r=o)&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&&Y(o)?new k(o):new k},t.prototype.startActiveSpan=function(t,e,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=n):(o=e,i=n,a=r);var s=null!=i?i:q.active(),u=this.startSpan(t,o,s),c=G(s,u);return q.with(c,a,void 0,u)}},t}();var J,$,tt,et=new Q,nt=function(){function t(t,e,n){this._provider=t,this.name=e,this.version=n}return t.prototype.startSpan=function(t,e,n){return this._getTracer().startSpan(t,e,n)},t.prototype.startActiveSpan=function(t,e,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version);return t?(this._delegate=t,this._delegate):et},t}(),rt=new(function(){function t(){}return t.prototype.getTracer=function(t,e){return new Q},t}()),ot=function(){function t(){}return t.prototype.getTracer=function(t,e){var n;return null!==(n=this.getDelegateTracer(t,e))&&void 0!==n?n:new nt(this,t,e)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:rt},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e)},t}();!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(J||(J={})),function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"}($||($={})),function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"}(tt||(tt={}));var it="trace",at=function(){function t(){this._proxyTracerProvider=new ot,this.wrapSpanContext=W,this.isSpanContextValid=Y,this.deleteSpan=V,this.getSpan=j,this.getSpanContext=H,this.setSpan=G,this.setSpanContext=F}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(it,this._proxyTracerProvider,E.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return p(it)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){f(it,E.instance()),this._proxyTracerProvider=new ot},t}(),st=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),ut=A("OpenTelemetry Baggage Key");function ct(t){return t.getValue(ut)||void 0}function lt(t,e){return t.setValue(ut,e)}function pt(t){return t.deleteValue(ut)}var ft="propagation",_t=new st,ht=function(){function t(){this.createBaggage=y,this.getBaggage=ct,this.setBaggage=lt,this.deleteBaggage=pt}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(ft,t,E.instance())},t.prototype.inject=function(t,e,n){return void 0===n&&(n=O),this._getGlobalPropagator().inject(t,e,n)},t.prototype.extract=function(t,e,n){return void 0===n&&(n=m),this._getGlobalPropagator().extract(t,e,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){f(ft,E.instance())},t.prototype._getGlobalPropagator=function(){return p(ft)||_t},t}(),dt=D.getInstance(),Et=at.getInstance(),Tt=ht.getInstance(),St=E.instance()},9:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ZoneContextManager:()=>i});var r=n(370);var o="OT_ZONE_CONTEXT",i=function(){function t(){this._enabled=!1,this._zoneCounter=0}return t.prototype._activeContextFromZone=function(t){return t&&t.get(o)||r.Iu},t.prototype._bindFunction=function(t,e){var n=this,r=function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.with(t,(function(){return e.apply(r,o)}))};return Object.defineProperty(r,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),r},t.prototype._bindListener=function(t,e){var n=e;return void 0!==n.__ot_listeners||(n.__ot_listeners={},"function"==typeof n.addEventListener&&(n.addEventListener=this._patchAddEventListener(n,n.addEventListener,t)),"function"==typeof n.removeEventListener&&(n.removeEventListener=this._patchRemoveEventListener(n,n.removeEventListener))),e},t.prototype._createZoneName=function(){this._zoneCounter++;var t=Math.random();return this._zoneCounter+"-"+t},t.prototype._createZone=function(t,e){var n;return Zone.current.fork({name:t,properties:(n={},n.OT_ZONE_CONTEXT=e,n)})},t.prototype._getActiveZone=function(){return Zone.current},t.prototype._patchAddEventListener=function(t,e,n){var r=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=r.bind(n,i);return s.set(i,u),e.call(this,o,u,a)}},t.prototype._patchRemoveEventListener=function(t,e){return function(n,r){if(void 0===t.__ot_listeners||void 0===t.__ot_listeners[n])return e.call(this,n,r);var o=t.__ot_listeners[n],i=o.get(r);return o.delete(r),e.call(this,n,i||r)}},t.prototype.active=function(){if(!this._enabled)return r.Iu;var t=this._getActiveZone(),e=this._activeContextFromZone(t);return e||r.Iu},t.prototype.bind=function(t,e){return void 0===t&&(t=this.active()),"function"==typeof e?this._bindFunction(t,e):(void 0===(n=e)&&(n={}),"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener&&this._bindListener(t,e),e);var n},t.prototype.disable=function(){return this._enabled=!1,this},t.prototype.enable=function(){return this._enabled=!0,this},t.prototype.with=function(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var i=this._createZoneName(),a=this._createZone(i,t);return a.run(e,n,r)},t}();n(37)},479:(t,e,n)=>{"use strict";n.r(e),n.d(e,{AlwaysOffSampler:()=>Lt,AlwaysOnSampler:()=>Ct,BindOnceFuture:()=>oe,CompositePropagator:()=>ft,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>D,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>I,DEFAULT_ENVIRONMENT:()=>M,ExportResultCode:()=>J,ParentBasedSampler:()=>wt,RPCType:()=>gt,RandomIdGenerator:()=>H,SDK_INFO:()=>q,TRACE_PARENT_HEADER:()=>Tt,TRACE_STATE_HEADER:()=>St,TraceIdRatioBasedSampler:()=>It,TraceState:()=>Et,TracesSamplerValues:()=>A,VERSION:()=>Y,W3CBaggagePropagator:()=>E,W3CTraceContextPropagator:()=>mt,_globalThis:()=>G,baggageUtils:()=>r,deleteRPCMetadata:()=>Rt,getEnv:()=>V,getRPCMetadata:()=>bt,globalErrorHandler:()=>N,hexToBase64:()=>F,hrTime:()=>nt,hrTimeDuration:()=>ot,hrTimeToMicroseconds:()=>ut,hrTimeToMilliseconds:()=>st,hrTimeToNanoseconds:()=>at,hrTimeToTimeStamp:()=>it,isAttributeKey:()=>y,isAttributeValue:()=>g,isTimeInput:()=>lt,isTimeInputHrTime:()=>ct,isTracingSuppressed:()=>u,isUrlIgnored:()=>$t,isWrapped:()=>te,loggingErrorHandler:()=>O,merge:()=>Ht,otperformance:()=>X,parseEnvironment:()=>j,parseTraceParent:()=>yt,sanitizeAttributes:()=>v,setGlobalErrorHandler:()=>b,setRPCMetadata:()=>At,suppressTracing:()=>a,timeInputToHrTime:()=>rt,unrefTimer:()=>Q,unsuppressTracing:()=>s,urlMatches:()=>Jt});var r={};n.r(r),n.d(r,{getKeyPairs:()=>_,parseKeyPairsIntoRecord:()=>d,parsePairKeyValue:()=>h,serializeKeyPairs:()=>f});var o=n(370),i=(0,o.Yz)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function a(t){return t.setValue(i,!0)}function s(t){return t.deleteValue(i)}function u(t){return!0===t.getValue(i)}var c=",",l="baggage",p=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function f(t){return t.reduce((function(t,e){var n=""+t+(""!==t?c:"")+e;return n.length>8192?t:n}),"")}function _(t){return t.getAllEntries().map((function(t){var e=p(t,2),n=e[0],r=e[1],o=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(o+=";"+r.metadata.toString()),o}))}function h(t){var e=t.split(";");if(!(e.length<=0)){var n=e.shift();if(n){var r=n.split("=");if(2===r.length){var i,a=decodeURIComponent(r[0].trim()),s=decodeURIComponent(r[1].trim());return e.length>0&&(i=(0,o.uc)(e.join(";"))),{key:a,value:s,metadata:i}}}}}function d(t){return"string"!=typeof t||0===t.length?{}:t.split(c).map((function(t){return h(t)})).filter((function(t){return void 0!==t&&t.value.length>0})).reduce((function(t,e){return t[e.key]=e.value,t}),{})}var E=function(){function t(){}return t.prototype.inject=function(t,e,n){var r=o.uA.getBaggage(t);if(r&&!u(t)){var i=f(_(r).filter((function(t){return t.length<=4096})).slice(0,180));i.length>0&&n.set(e,l,i)}},t.prototype.extract=function(t,e,n){var r=n.get(e,l),i=Array.isArray(r)?r.join(c):r;if(!i)return t;var a={};return 0===i.length?t:(i.split(c).forEach((function(t){var e=h(t);if(e){var n={value:e.value};e.metadata&&(n.metadata=e.metadata),a[e.key]=n}})),0===Object.entries(a).length?t:o.uA.setBaggage(t,o.uA.createBaggage(a)))},t.prototype.fields=function(){return[l]},t}(),T=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},S=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function v(t){var e,n,r={};if("object"!=typeof t||null==t)return r;try{for(var i=T(Object.entries(t)),a=i.next();!a.done;a=i.next()){var s=S(a.value,2),u=s[0],c=s[1];y(u)?g(c)?Array.isArray(c)?r[u]=c.slice():r[u]=c:o.K.warn("Invalid attribute value set for key: "+u):o.K.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function y(t){return"string"==typeof t&&t.length>0}function g(t){return null==t||(Array.isArray(t)?function(t){var e,n,r;try{for(var o=T(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!r){if(m(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!0}(t):m(t))}function m(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function O(){return function(t){o.K.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){var e={},n=t;for(;null!==n;)Object.getOwnPropertyNames(n).forEach((function(t){if(!e[t]){var r=n[t];r&&(e[t]=String(r))}})),n=Object.getPrototypeOf(n);return e}(t))}(t))}}var A,R=O();function b(t){R=t}function N(t){try{R(t)}catch(t){}}!function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"}(A||(A={}));var P=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function L(t){return P.indexOf(t)>-1}var C=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function w(t){return C.indexOf(t)>-1}var I=1/0,D=128,M={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_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_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:o.nV.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:I,OTEL_ATTRIBUTE_COUNT_LIMIT:D,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:I,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:D,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:A.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:""};function U(t,e,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[t]){var i=Number(n[t]);isNaN(i)||(e[t]=i<r?r:i>o?o:i)}}function x(t,e,n,r){void 0===r&&(r=",");var o=n[t];"string"==typeof o&&(e[t]=o.split(r).map((function(t){return t.trim()})))}var k={ALL:o.nV.ALL,VERBOSE:o.nV.VERBOSE,DEBUG:o.nV.DEBUG,INFO:o.nV.INFO,WARN:o.nV.WARN,ERROR:o.nV.ERROR,NONE:o.nV.NONE};function B(t,e,n){var r=n[t];if("string"==typeof r){var o=k[r.toUpperCase()];null!=o&&(e[t]=o)}}function j(t){var e={};for(var n in M){var r=n;if("OTEL_LOG_LEVEL"===r)B(r,e,t);else if(L(r))U(r,e,t);else if(w(r))x(r,e,t);else{var o=t[r];null!=o&&(e[r]=String(o))}}return e}var G="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{};function V(){var t=j(G);return Object.assign({},M,t)}function F(t){for(var e=t.length,n="",r=0;r<e;r+=2){var o=t.substring(r,r+2),i=parseInt(o,16);n+=String.fromCharCode(i)}return btoa(n)}var H=function(){this.generateTraceId=K(16),this.generateSpanId=K(8)},z=Array(32);function K(t){return function(){for(var e=0;e<2*t;e++)z[e]=Math.floor(16*Math.random())+48,z[e]>=58&&(z[e]+=39);return String.fromCharCode.apply(null,z.slice(0,2*t))}}var Z,X=performance,Y="1.2.0",W=n(871),q=((Z={})[W.SemanticResourceAttributes.TELEMETRY_SDK_NAME]="opentelemetry",Z[W.SemanticResourceAttributes.PROCESS_RUNTIME_NAME]="browser",Z[W.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]=W.TelemetrySdkLanguageValues.WEBJS,Z[W.SemanticResourceAttributes.TELEMETRY_SDK_VERSION]=Y,Z);function Q(t){}var J,$=Math.pow(10,9);function tt(t){var e=t/1e3,n=Math.trunc(e);return[n,Number((e-n).toFixed(9))*$]}function et(){var t=X.timeOrigin;if("number"!=typeof t){var e=X;t=e.timing&&e.timing.fetchStart}return t}function nt(t){var e=tt(et()),n=tt("number"==typeof t?t:X.now()),r=e[0]+n[0],o=e[1]+n[1];return o>$&&(o-=$,r+=1),[r,o]}function rt(t){if(ct(t))return t;if("number"==typeof t)return t<et()?nt(t):tt(t);if(t instanceof Date)return tt(t.getTime());throw TypeError("Invalid input type")}function ot(t,e){var n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=$),[n,r]}function it(t){var e=""+"0".repeat(9)+t[1]+"Z",n=e.substr(e.length-9-1);return new Date(1e3*t[0]).toISOString().replace("000Z",n)}function at(t){return t[0]*$+t[1]}function st(t){return Math.round(1e3*t[0]+t[1]/1e6)}function ut(t){return Math.round(1e6*t[0]+t[1]/1e3)}function ct(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function lt(t){return ct(t)||"number"==typeof t||t instanceof Date}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(J||(J={}));var pt=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ft=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?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,n){var r,i;try{for(var a=pt(this._propagators),s=a.next();!s.done;s=a.next()){var u=s.value;try{u.inject(t,e,n)}catch(t){o.K.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},t.prototype.extract=function(t,e,n){return this._propagators.reduce((function(t,r){try{return r.extract(t,e,n)}catch(t){o.K.warn("Failed to inject with "+r.constructor.name+". Err: "+t.message)}return t}),t)},t.prototype.fields=function(){return this._fields.slice()},t}(),_t=new RegExp("^(?:[a-z][_0-9a-z-*/]{0,255}|[a-z0-9][_0-9a-z-*/]{0,240}@[a-z][_0-9a-z-*/]{0,13})$"),ht=/^[ -~]{0,255}[!-~]$/,dt=/,|=/;var Et=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n},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,n){return e.push(n+"="+t.get(n)),e}),[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce((function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);(function(t){return _t.test(t)})(o)&&function(t){return ht.test(t)&&!dt.test(t)}(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}(),Tt="traceparent",St="tracestate",vt=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function yt(t){var e=vt.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var gt,mt=function(){function t(){}return t.prototype.inject=function(t,e,n){var r=o.g4.getSpanContext(t);if(r&&!u(t)&&(0,o.BM)(r)){var i="00-"+r.traceId+"-"+r.spanId+"-0"+Number(r.traceFlags||o.rh.NONE).toString(16);n.set(e,Tt,i),r.traceState&&n.set(e,St,r.traceState.serialize())}},t.prototype.extract=function(t,e,n){var r=n.get(e,Tt);if(!r)return t;var i=Array.isArray(r)?r[0]:r;if("string"!=typeof i)return t;var a=yt(i);if(!a)return t;a.isRemote=!0;var s=n.get(e,St);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new Et("string"==typeof u?u:void 0)}return o.g4.setSpanContext(t,a)},t.prototype.fields=function(){return[Tt,St]},t}(),Ot=(0,o.Yz)("OpenTelemetry SDK Context Key RPC_METADATA");function At(t,e){return t.setValue(Ot,e)}function Rt(t){return t.deleteValue(Ot)}function bt(t){return t.getValue(Ot)}!function(t){t.HTTP="http"}(gt||(gt={}));var Nt,Pt,Lt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:o.Uz.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),Ct=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:o.Uz.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),wt=function(){function t(t){var e,n,r,o;this._root=t.root,this._root||(N(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ct),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new Ct,this._remoteParentNotSampled=null!==(n=t.remoteParentNotSampled)&&void 0!==n?n:new Lt,this._localParentSampled=null!==(r=t.localParentSampled)&&void 0!==r?r:new Ct,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Lt}return t.prototype.shouldSample=function(t,e,n,r,i,a){var s=o.g4.getSpanContext(t);return s&&(0,o.BM)(s)?s.isRemote?s.traceFlags&o.rh.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,r,i,a):this._remoteParentNotSampled.shouldSample(t,e,n,r,i,a):s.traceFlags&o.rh.SAMPLED?this._localParentSampled.shouldSample(t,e,n,r,i,a):this._localParentNotSampled.shouldSample(t,e,n,r,i,a):this._root.shouldSample(t,e,n,r,i,a)},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}(),It=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:(0,o.jN)(e)&&this._accumulate(e)<this._upperBound?o.Uz.RECORD_AND_SAMPLED:o.Uz.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,n=0;n<t.length/8;n++){var r=8*n;e=(e^parseInt(t.slice(r,r+8),16))>>>0}return e},t}(),Dt="[object Null]",Mt="[object Undefined]",Ut=Function.prototype.toString,xt=Ut.call(Object),kt=(Nt=Object.getPrototypeOf,Pt=Object,function(t){return Nt(Pt(t))}),Bt=Object.prototype,jt=Bt.hasOwnProperty,Gt=Symbol?Symbol.toStringTag:void 0,Vt=Bt.toString;function Ft(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||"[object Object]"!==function(t){if(null==t)return void 0===t?Mt:Dt;return Gt&&Gt in Object(t)?function(t){var e=jt.call(t,Gt),n=t[Gt],r=!1;try{t[Gt]=void 0,r=!0}catch(t){}var o=Vt.call(t);r&&(e?t[Gt]=n:delete t[Gt]);return o}(t):function(t){return Vt.call(t)}(t)}(t))return!1;var e=kt(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ut.call(n)===xt}function Ht(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),r=new WeakMap;t.length>0;)n=Kt(n,t.shift(),0,r);return n}function zt(t){return Xt(t)?t.slice():t}function Kt(t,e,n,r){var o;if(void 0===n&&(n=0),!(n>20)){if(n++,qt(t)||qt(e)||Yt(e))o=zt(e);else if(Xt(t)){if(o=t.slice(),Xt(e))for(var i=0,a=e.length;i<a;i++)o.push(zt(e[i]));else if(Wt(e))for(i=0,a=(s=Object.keys(e)).length;i<a;i++){o[u=s[i]]=zt(e[u])}}else if(Wt(t))if(Wt(e)){if(!function(t,e){if(!Ft(t)||!Ft(e))return!1;return!0}(t,e))return e;o=Object.assign({},t);var s;for(i=0,a=(s=Object.keys(e)).length;i<a;i++){var u,c=e[u=s[i]];if(qt(c))void 0===c?delete o[u]:o[u]=c;else{var l=o[u],p=c;if(Zt(t,u,r)||Zt(e,u,r))delete o[u];else{if(Wt(l)&&Wt(p)){var f=r.get(l)||[],_=r.get(p)||[];f.push({obj:t,key:u}),_.push({obj:e,key:u}),r.set(l,f),r.set(p,_)}o[u]=Kt(o[u],c,n,r)}}}}else o=e;return o}}function Zt(t,e,n){for(var r=n.get(t[e])||[],o=0,i=r.length;o<i;o++){var a=r[o];if(a.key===e&&a.obj===t)return!0}return!1}function Xt(t){return Array.isArray(t)}function Yt(t){return"function"==typeof t}function Wt(t){return!qt(t)&&!Xt(t)&&!Yt(t)&&"object"==typeof t}function qt(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}var Qt=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Jt(t,e){return"string"==typeof e?t===e:!!t.match(e)}function $t(t,e){var n,r;if(!e)return!1;try{for(var o=Qt(e),i=o.next();!i.done;i=o.next()){if(Jt(t,i.value))return!0}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}function te(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var ee=function(){function t(){var t=this;this._promise=new Promise((function(e,n){t._resolve=e,t._reject=n}))}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}(),ne=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},re=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},oe=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new ee}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,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,re([this._that],ne(n),!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}()},175:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ZipkinExporter:()=>h,prepareSend:()=>u});var r,o=n(370),i=n(479),a=function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)},s=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function u(t,e){var n,r="function"==typeof navigator.sendBeacon&&!e;return e&&(n=a({Accept:"application/json","Content-Type":"application/json"},e)),function(e,a){if(0===e.length)return o.K.debug("Zipkin send with empty spans"),a({code:i.ExportResultCode.SUCCESS});var u=JSON.stringify(e);r?function(t,e,n){navigator.sendBeacon(n,t)?(o.K.debug("sendBeacon - can send",t),e({code:i.ExportResultCode.SUCCESS})):e({code:i.ExportResultCode.FAILED,error:new Error("sendBeacon - cannot send "+t)})}(u,a,t):function(t,e,n,r){void 0===r&&(r={});var a=new XMLHttpRequest;a.open("POST",n),Object.entries(r).forEach((function(t){var e=s(t,2),n=e[0],r=e[1];a.setRequestHeader(n,r)})),a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE){var n=a.status||0;return o.K.debug("Zipkin response status code: "+n+", body: "+t),a.status>=200&&a.status<400?e({code:i.ExportResultCode.SUCCESS}):e({code:i.ExportResultCode.FAILED,error:new Error("Got unexpected status code from zipkin: "+a.status)})}},a.onerror=function(t){return(0,i.globalErrorHandler)(new Error("Zipkin request error: "+t)),e({code:i.ExportResultCode.FAILED})},o.K.debug("Zipkin request payload: "+t),a.send(t)}(u,a,t,n)}}!function(t){t.CLIENT="CLIENT",t.SERVER="SERVER",t.CONSUMER="CONSUMER",t.PRODUCER="PRODUCER"}(r||(r={}));var c,l=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=((c={})[o.MU.CLIENT]=r.CLIENT,c[o.MU.SERVER]=r.SERVER,c[o.MU.CONSUMER]=r.CONSUMER,c[o.MU.PRODUCER]=r.PRODUCER,c[o.MU.INTERNAL]=void 0,c);function f(t,e,n,r,i){var a,s,u={};try{for(var c=l(Object.keys(t)),p=c.next();!p.done;p=c.next()){var f=p.value;u[f]=String(t[f])}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}return e.code!==o.Qn.UNSET&&(u[n]=String(o.Qn[e.code])),e.code===o.Qn.ERROR&&e.message&&(u[r]=e.message),Object.keys(i.attributes).forEach((function(t){return u[t]=String(i.attributes[t])})),u}var _=n(871);var h=function(){function t(t){var e;void 0===t&&(t={}),this.DEFAULT_SERVICE_NAME="OpenTelemetry Service",this._sendingPromises=[],this._urlStr=t.url||(0,i.getEnv)().OTEL_EXPORTER_ZIPKIN_ENDPOINT,this._send=u(this._urlStr,t.headers),this._serviceName=t.serviceName,this._statusCodeTagName=t.statusCodeTagName||"otel.status_code",this._statusDescriptionTagName=t.statusDescriptionTagName||"error",this._isShutdown=!1,"function"==typeof t.getExportRequestHeaders?this._getHeaders=(e=t.getExportRequestHeaders,function(){return e()}):this._beforeSend=function(){}}return t.prototype.export=function(t,e){var n=this,r=String(this._serviceName||t[0].resource.attributes[_.SemanticResourceAttributes.SERVICE_NAME]||this.DEFAULT_SERVICE_NAME);if(o.K.debug("Zipkin exporter export"),this._isShutdown)setTimeout((function(){return e({code:i.ExportResultCode.FAILED,error:new Error("Exporter has been shutdown")})}));else{var a=new Promise((function(o){n._sendSpans(t,r,(function(t){o(),e(t)}))}));this._sendingPromises.push(a);var s=function(){var t=n._sendingPromises.indexOf(a);n._sendingPromises.splice(t,1)};a.then(s,s)}},t.prototype.shutdown=function(){var t=this;return o.K.debug("Zipkin exporter shutdown"),this._isShutdown=!0,new Promise((function(e,n){Promise.all(t._sendingPromises).then((function(){e()}),n)}))},t.prototype._beforeSend=function(){this._getHeaders&&(this._send=u(this._urlStr,this._getHeaders()))},t.prototype._sendSpans=function(t,e,n){var r=this,o=t.map((function(t){return function(t,e,n,r){var o;return{traceId:t.spanContext().traceId,parentId:t.parentSpanId,name:t.name,id:t.spanContext().spanId,kind:p[t.kind],timestamp:(0,i.hrTimeToMicroseconds)(t.startTime),duration:(0,i.hrTimeToMicroseconds)(t.duration),localEndpoint:{serviceName:e},tags:f(t.attributes,t.status,n,r,t.resource),annotations:t.events.length?(o=t.events,o.map((function(t){return{timestamp:(0,i.hrTimeToMicroseconds)(t.time),value:t.name}}))):void 0}}(t,String(t.attributes[_.SemanticResourceAttributes.SERVICE_NAME]||t.resource.attributes[_.SemanticResourceAttributes.SERVICE_NAME]||e),r._statusCodeTagName,r._statusDescriptionTagName)}));return this._beforeSend(),this._send(o,(function(t){if(n)return n(t)}))},t}()},796:(t,e,n)=>{"use strict";n.r(e),n.d(e,{DocumentLoadInstrumentation:()=>_});var r,o=n(370),i=n(479),a=n(340),s=n(140);!function(t){t.COMPONENT="component",t.DOCUMENT_LOAD="documentLoad",t.DOCUMENT_FETCH="documentFetch",t.RESOURCE_FETCH="resourceFetch"}(r||(r={}));var u,c=n(871);!function(t){t.FIRST_PAINT="firstPaint",t.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"}(u||(u={}));var l,p={"first-paint":u.FIRST_PAINT,"first-contentful-paint":u.FIRST_CONTENTFUL_PAINT},f=(l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,"@opentelemetry/instrumentation-document-load","0.27.1",e)||this;return n.component="document-load",n.version="1",n.moduleName=n.component,n}return f(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,n,r=this,o=null===(n=(e=i.otperformance).getEntriesByType)||void 0===n?void 0:n.call(e,"resource");o&&o.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")===i.TRACE_PARENT_HEADER})),n=function(){var t,e,n={},r=null===(e=(t=i.otperformance).getEntriesByType)||void 0===e?void 0:e.call(t,"navigation")[0];if(r)Object.values(a.PerformanceTimingNames).forEach((function(t){if((0,a.hasKey)(r,t)){var e=r[t];"number"==typeof e&&(n[t]=e)}}));else{var o=i.otperformance.timing;o&&Object.values(a.PerformanceTimingNames).forEach((function(t){if((0,a.hasKey)(o,t)){var e=o[t];"number"==typeof e&&(n[t]=e)}}))}return n}(),s=e&&e.content||"";o.Do.with(o.uA.extract(o.Iu,{traceparent:s}),(function(){var e,s,u,l,f=t._startSpan(r.DOCUMENT_LOAD,a.PerformanceTimingNames.FETCH_START,n);f&&(o.Do.with(o.g4.setSpan(o.Do.active(),f),(function(){var e=t._startSpan(r.DOCUMENT_FETCH,a.PerformanceTimingNames.FETCH_START,n);e&&o.Do.with(o.g4.setSpan(o.Do.active(),e),(function(){(0,a.addSpanNetworkEvents)(e,n),t._endSpan(e,a.PerformanceTimingNames.RESPONSE_END,n)}))})),f.setAttribute(c.SemanticAttributes.HTTP_URL,location.href),f.setAttribute(c.SemanticAttributes.HTTP_USER_AGENT,navigator.userAgent),t._addResourcesSpans(f),(0,a.addSpanNetworkEvent)(f,a.PerformanceTimingNames.FETCH_START,n),(0,a.addSpanNetworkEvent)(f,a.PerformanceTimingNames.UNLOAD_EVENT_START,n),(0,a.addSpanNetworkEvent)(f,a.PerformanceTimingNames.UNLOAD_EVENT_END,n),(0,a.addSpanNetworkEvent)(f,a.PerformanceTimingNames.DOM_INTERACTIVE,n),(0,a.addSpanNetworkEvent)(f,a.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_START,n),(0,a.addSpanNetworkEvent)(f,a.PerformanceTimingNames.DOM_CONTENT_LOADED_EVENT_END,n),(0,a.addSpanNetworkEvent)(f,a.PerformanceTimingNames.DOM_COMPLETE,n),(0,a.addSpanNetworkEvent)(f,a.PerformanceTimingNames.LOAD_EVENT_START,n),(0,a.addSpanNetworkEvent)(f,a.PerformanceTimingNames.LOAD_EVENT_END,n),e=f,(l=null===(u=(s=i.otperformance).getEntriesByType)||void 0===u?void 0:u.call(s,"paint"))&&l.forEach((function(t){var n=t.name,r=t.startTime;(0,a.hasKey)(p,n)&&e.addEvent(p[n],r)})),t._endSpan(f,a.PerformanceTimingNames.LOAD_EVENT_END,n))}))},e.prototype._endSpan=function(t,e,n){t&&((0,a.hasKey)(n,e)?t.end(n[e]):t.end())},e.prototype._initResourceSpan=function(t,e){var n=this._startSpan(r.RESOURCE_FETCH,a.PerformanceTimingNames.FETCH_START,t,e);n&&(n.setAttribute(c.SemanticAttributes.HTTP_URL,t.name),(0,a.addSpanNetworkEvents)(n,t),this._endSpan(n,a.PerformanceTimingNames.RESPONSE_END,t))},e.prototype._startSpan=function(t,e,n,i){if((0,a.hasKey)(n,e)&&"number"==typeof n[e]){var s=this.tracer.startSpan(t,{startTime:n[e]},i?o.g4.setSpan(o.Do.active(),i):void 0);return s.setAttribute(r.COMPONENT,this.component),s}},e.prototype._waitForPageLoad=function(){"complete"===window.document.readyState?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},e.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},e.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},e}(s.InstrumentationBase)},641:(t,e,n)=>{"use strict";n.r(e),n.d(e,{FetchInstrumentation:()=>de});var r=n(370),o=n(140),i=(0,r.Yz)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function a(t){return t.setValue(i,!0)}function s(t){return!0===t.getValue(i)}var u="baggage";function c(t){var e=t.split(";");if(!(e.length<=0)){var n=e.shift();if(n){var o=n.split("=");if(2===o.length){var i,a=decodeURIComponent(o[0].trim()),s=decodeURIComponent(o[1].trim());return e.length>0&&(i=(0,r.uc)(e.join(";"))),{key:a,value:s,metadata:i}}}}}var l=function(){function t(){}return t.prototype.inject=function(t,e,n){var o=r.uA.getBaggage(t);if(o&&!s(t)){var i=function(t){return t.getAllEntries().map((function(t){var e=t[0],n=t[1];return encodeURIComponent(e)+"="+encodeURIComponent(n.value)}))}(o).filter((function(t){return t.length<=4096})).slice(0,180),a=function(t){return t.reduce((function(t,e){var n=t+(""!==t?",":"")+e;return n.length>8192?t:n}),"")}(i);a.length>0&&n.set(e,u,a)}},t.prototype.extract=function(t,e,n){var o=n.get(e,u);if(!o)return t;var i={};return 0===o.length?t:(o.split(",").forEach((function(t){var e=c(t);if(e){var n={value:e.value};e.metadata&&(n.metadata=e.metadata),i[e.key]=n}})),0===Object.entries(i).length?t:r.uA.setBaggage(t,r.uA.createBaggage(i)))},t.prototype.fields=function(){return[u]},t}();function p(t){return null==t||(Array.isArray(t)?function(t){for(var e,n=0,r=t;n<r.length;n++){var o=r[n];if(null!=o){if(!e){if(f(o)){e=typeof o;continue}return!1}if(typeof o!==e)return!1}}return!0}(t):f(t))}function f(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var _,h=function(t){r.K.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},n=t;null!==n;)Object.getOwnPropertyNames(n).forEach((function(t){if(!e[t]){var r=n[t];r&&(e[t]=String(r))}})),n=Object.getPrototypeOf(n);return e}(t))}(t))};function d(t){try{h(t)}catch(t){}}!function(t){t.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 E=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT"];function T(t){return E.indexOf(t)>-1}var S=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function v(t){return S.indexOf(t)>-1}var y=1/0,g=128,m={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_EXPORTER_JAEGER_AGENT_HOST:"",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_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:r.nV.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:y,OTEL_ATTRIBUTE_COUNT_LIMIT:g,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:y,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:g,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:_.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:""};function O(t,e,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[t]){var i=Number(n[t]);isNaN(i)||(e[t]=i<r?r:i>o?o:i)}}function A(t,e,n,r){void 0===r&&(r=",");var o=n[t];"string"==typeof o&&(e[t]=o.split(r).map((function(t){return t.trim()})))}var R={ALL:r.nV.ALL,VERBOSE:r.nV.VERBOSE,DEBUG:r.nV.DEBUG,INFO:r.nV.INFO,WARN:r.nV.WARN,ERROR:r.nV.ERROR,NONE:r.nV.NONE};function b(t,e,n){var r=n[t];if("string"==typeof r){var o=R[r.toUpperCase()];null!=o&&(e[t]=o)}}var N="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{};function P(){var t=function(t){var e={};for(var n in m){var r=n;if("OTEL_LOG_LEVEL"===r)b(r,e,t);else if(T(r))O(r,e,t);else if(v(r))A(r,e,t);else{var o=t[r];null!=o&&(e[r]=String(o))}}return e}(N);return Object.assign({},m,t)}var L=function(){this.generateTraceId=w(16),this.generateSpanId=w(8)},C=Array(32);function w(t){return function(){for(var e=0;e<2*t;e++)C[e]=Math.floor(16*Math.random())+48,C[e]>=58&&(C[e]+=39);return String.fromCharCode.apply(null,C.slice(0,2*t))}}var I,D=performance,M="exception.type",U="exception.message",x="exception.stacktrace",k="http.method",B="http.url",j="http.host",G="http.scheme",V="http.status_code",F="http.user_agent",H="http.response_content_length",z="http.response_content_length_uncompressed",K="process.runtime.name",Z="service.name",X="telemetry.sdk.name",Y="telemetry.sdk.language",W="telemetry.sdk.version",q=((I={})[X]="opentelemetry",I[K]="browser",I[Y]="webjs",I[W]="1.0.1",I);var Q,J=Math.pow(10,9);function $(t){var e=t/1e3,n=Math.trunc(e);return[n,Number((e-n).toFixed(9))*J]}function tt(){var t=D.timeOrigin;if("number"!=typeof t){var e=D;t=e.timing&&e.timing.fetchStart}return t}function et(t){var e=$(tt()),n=$("number"==typeof t?t:D.now()),r=e[0]+n[0],o=e[1]+n[1];return o>J&&(o-=J,r+=1),[r,o]}function nt(t){if(it(t))return t;if("number"==typeof t)return t<tt()?et(t):$(t);if(t instanceof Date)return $(t.getTime());throw TypeError("Invalid input type")}function rt(t){return t[0]*J+t[1]}function ot(t){return Math.round(1e6*t[0]+t[1]/1e3)}function it(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(Q||(Q={}));var at=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?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,n){for(var o=0,i=this._propagators;o<i.length;o++){var a=i[o];try{a.inject(t,e,n)}catch(t){r.K.warn("Failed to inject with "+a.constructor.name+". Err: "+t.message)}}},t.prototype.extract=function(t,e,n){return this._propagators.reduce((function(t,o){try{return o.extract(t,e,n)}catch(t){r.K.warn("Failed to inject with "+o.constructor.name+". Err: "+t.message)}return t}),t)},t.prototype.fields=function(){return this._fields.slice()},t}(),st=new RegExp("^(?:[a-z][_0-9a-z-*/]{0,255}|[a-z0-9][_0-9a-z-*/]{0,240}@[a-z][_0-9a-z-*/]{0,13})$"),ut=/^[ -~]{0,255}[!-~]$/,ct=/,|=/;var lt=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n},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,n){return e.push(n+"="+t.get(n)),e}),[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce((function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);(function(t){return st.test(t)})(o)&&function(t){return ut.test(t)&&!ct.test(t)}(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}(),pt="traceparent",ft="tracestate",_t=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var ht,dt=function(){function t(){}return t.prototype.inject=function(t,e,n){var o=r.g4.getSpanContext(t);if(o&&!s(t)&&(0,r.BM)(o)){var i="00-"+o.traceId+"-"+o.spanId+"-0"+Number(o.traceFlags||r.rh.NONE).toString(16);n.set(e,pt,i),o.traceState&&n.set(e,ft,o.traceState.serialize())}},t.prototype.extract=function(t,e,n){var o=n.get(e,pt);if(!o)return t;var i=Array.isArray(o)?o[0]:o;if("string"!=typeof i)return t;var a=function(t){var e=_t.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}(i);if(!a)return t;a.isRemote=!0;var s=n.get(e,ft);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new lt("string"==typeof u?u:void 0)}return r.g4.setSpanContext(t,a)},t.prototype.fields=function(){return[pt,ft]},t}();(0,r.Yz)("OpenTelemetry SDK Context Key RPC_METADATA");!function(t){t.HTTP="http"}(ht||(ht={}));var Et,Tt,St=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:r.Uz.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),vt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:r.Uz.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),yt=function(){function t(t){var e,n,r,o;this._root=t.root,this._root||(d(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new vt),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new vt,this._remoteParentNotSampled=null!==(n=t.remoteParentNotSampled)&&void 0!==n?n:new St,this._localParentSampled=null!==(r=t.localParentSampled)&&void 0!==r?r:new vt,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new St}return t.prototype.shouldSample=function(t,e,n,o,i,a){var s=r.g4.getSpanContext(t);return s&&(0,r.BM)(s)?s.isRemote?s.traceFlags&r.rh.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,o,i,a):this._remoteParentNotSampled.shouldSample(t,e,n,o,i,a):s.traceFlags&r.rh.SAMPLED?this._localParentSampled.shouldSample(t,e,n,o,i,a):this._localParentNotSampled.shouldSample(t,e,n,o,i,a):this._root.shouldSample(t,e,n,o,i,a)},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}(),gt=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:(0,r.jN)(e)&&this._accumulate(e)<this._upperBound?r.Uz.RECORD_AND_SAMPLED:r.Uz.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,n=0;n<t.length/8;n++){var r=8*n;e=(e^parseInt(t.slice(r,r+8),16))>>>0}return e},t}(),mt="[object Null]",Ot="[object Undefined]",At=Function.prototype.toString,Rt=At.call(Object),bt=(Et=Object.getPrototypeOf,Tt=Object,function(t){return Et(Tt(t))}),Nt=Object.prototype,Pt=Nt.hasOwnProperty,Lt=Symbol?Symbol.toStringTag:void 0,Ct=Nt.toString;function wt(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||"[object Object]"!==function(t){if(null==t)return void 0===t?Ot:mt;return Lt&&Lt in Object(t)?function(t){var e=Pt.call(t,Lt),n=t[Lt],r=!1;try{t[Lt]=void 0,r=!0}catch(t){}var o=Ct.call(t);r&&(e?t[Lt]=n:delete t[Lt]);return o}(t):function(t){return Ct.call(t)}(t)}(t))return!1;var e=bt(t);if(null===e)return!0;var n=Pt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&At.call(n)===Rt}function It(t){return Ut(t)?t.slice():t}function Dt(t,e,n,r){var o;if(void 0===n&&(n=0),!(n>20)){if(n++,Bt(t)||Bt(e)||xt(e))o=It(e);else if(Ut(t)){if(o=t.slice(),Ut(e))for(var i=0,a=e.length;i<a;i++)o.push(It(e[i]));else if(kt(e))for(i=0,a=(s=Object.keys(e)).length;i<a;i++){o[u=s[i]]=It(e[u])}}else if(kt(t))if(kt(e)){if(!function(t,e){if(!wt(t)||!wt(e))return!1;return!0}(t,e))return e;o=Object.assign({},t);var s;for(i=0,a=(s=Object.keys(e)).length;i<a;i++){var u,c=e[u=s[i]];if(Bt(c))void 0===c?delete o[u]:o[u]=c;else{var l=o[u],p=c;if(Mt(t,u,r)||Mt(e,u,r))delete o[u];else{if(kt(l)&&kt(p)){var f=r.get(l)||[],_=r.get(p)||[];f.push({obj:t,key:u}),_.push({obj:e,key:u}),r.set(l,f),r.set(p,_)}o[u]=Dt(o[u],c,n,r)}}}}else o=e;return o}}function Mt(t,e,n){for(var r=n.get(t[e])||[],o=0,i=r.length;o<i;o++){var a=r[o];if(a.key===e&&a.obj===t)return!0}return!1}function Ut(t){return Array.isArray(t)}function xt(t){return"function"==typeof t}function kt(t){return!Bt(t)&&!Ut(t)&&!xt(t)&&"object"==typeof t}function Bt(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}function jt(t,e){return"string"==typeof e?t===e:!!t.match(e)}var Gt=function(){function t(t,e,n,o,i,a,s,u){void 0===s&&(s=[]),void 0===u&&(u=et()),this.attributes={},this.links=[],this.events=[],this.status={code:r.Qn.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=o,this.parentSpanId=a,this.kind=i,this.links=s,this.startTime=nt(u),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,e),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return null==e||this._isSpanEnded()?this:0===t.length?(r.K.warn("Invalid attribute key: "+t),this):p(e)?(Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)||(this.attributes[t]=this._truncateToSize(e)),this):(r.K.warn("Invalid attribute value set for key: "+t),this)},t.prototype.setAttributes=function(t){for(var e=0,n=Object.entries(t);e<n.length;e++){var r=n[e],o=r[0],i=r[1];this.setAttribute(o,i)}return this},t.prototype.addEvent=function(t,e,n){return this._isSpanEnded()||(this.events.length>=this._spanLimits.eventCountLimit&&(r.K.warn("Dropping extra events."),this.events.shift()),(it(o=e)||"number"==typeof o||o instanceof Date)&&(void 0===n&&(n=e),e=void 0),void 0===n&&(n=et()),this.events.push({name:t,attributes:e,time:nt(n)})),this;var o},t.prototype.setStatus=function(t){return this._isSpanEnded()||(this.status=t),this},t.prototype.updateName=function(t){return this._isSpanEnded()||(this.name=t),this},t.prototype.end=function(t){void 0===t&&(t=et()),this._isSpanEnded()?r.K.error("You can only call end() on a span once."):(this._ended=!0,this.endTime=nt(t),this._duration=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=J),[n,r]}(this.startTime,this.endTime),this._duration[0]<0&&r.K.warn("Inconsistent start and end time, startTime > endTime",this.startTime,this.endTime),this._spanProcessor.onEnd(this))},t.prototype.isRecording=function(){return!1===this._ended},t.prototype.recordException=function(t,e){void 0===e&&(e=et());var n={};"string"==typeof t?n[U]=t:t&&(t.code?n[M]=t.code.toString():t.name&&(n[M]=t.name),t.message&&(n[U]=t.message),t.stack&&(n[x]=t.stack)),n[M]||n[U]?this.addEvent("exception",n,e):r.K.warn("Failed to record an exception "+t)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&r.K.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.substr(0,e)},t.prototype._truncateToSize=function(t){var e=this,n=this._attributeValueLengthLimit;return n<=0?(r.K.warn("Attribute value limit must be positive, got "+n),t):"string"==typeof t?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map((function(t){return"string"==typeof t?e._truncateToLimitUtil(t,n):t})):t},t}(),Vt=P(),Ft=_.AlwaysOn,Ht={sampler:zt(Vt),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:P().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:P().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:P().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:P().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:P().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:P().OTEL_SPAN_EVENT_COUNT_LIMIT}};function zt(t){switch(void 0===t&&(t=P()),t.OTEL_TRACES_SAMPLER){case _.AlwaysOn:return new vt;case _.AlwaysOff:return new St;case _.ParentBasedAlwaysOn:return new yt({root:new vt});case _.ParentBasedAlwaysOff:return new yt({root:new St});case _.TraceIdRatio:return new gt(Kt(t));case _.ParentBasedTraceIdRatio:return new yt({root:new gt(Kt(t))});default:return r.K.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Ft+'".'),new vt}}function Kt(t){if(void 0===t.OTEL_TRACES_SAMPLER_ARG||""===t.OTEL_TRACES_SAMPLER_ARG)return r.K.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(r.K.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to 1."),1):e<0||e>1?(r.K.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 Zt=function(){function t(t,e,n){this._tracerProvider=n;var r,o,i,a=(r=e,o={sampler:zt()},(i=Object.assign({},Ht,o,r)).generalLimits=Object.assign({},Ht.generalLimits,r.generalLimits||{}),i.spanLimits=Object.assign({},Ht.spanLimits,r.spanLimits||{}),i.spanLimits.attributeCountLimit===g&&i.generalLimits.attributeCountLimit!==g&&(i.spanLimits.attributeCountLimit=i.generalLimits.attributeCountLimit),i.spanLimits.attributeValueLengthLimit===y&&i.generalLimits.attributeValueLengthLimit!==y&&(i.spanLimits.attributeValueLengthLimit=i.generalLimits.attributeValueLengthLimit),i);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=e.idGenerator||new L,this.resource=n.resource,this.instrumentationLibrary=t}return t.prototype.startSpan=function(t,e,n){var o,i;if(void 0===e&&(e={}),void 0===n&&(n=r.Do.active()),s(n))return r.K.debug("Instrumentation suppressed, returning Noop Span"),r.g4.wrapSpanContext(r.Rr);var a,u,c,l=function(t,e){return t.root?void 0:r.g4.getSpanContext(e)}(e,n),f=this._idGenerator.generateSpanId();l&&r.g4.isSpanContextValid(l)?(a=l.traceId,u=l.traceState,c=l.spanId):a=this._idGenerator.generateTraceId();var _=null!==(o=e.kind)&&void 0!==o?o:r.MU.INTERNAL,h=null!==(i=e.links)&&void 0!==i?i:[],d=function(t){var e={};if(null==t||"object"!=typeof t)return e;for(var n=0,r=Object.entries(t);n<r.length;n++){var o=r[n],i=o[0],a=o[1];p(a)&&(Array.isArray(a)?e[i]=a.slice():e[i]=a)}return e}(e.attributes),E=this._sampler.shouldSample(e.root?r.g4.setSpanContext(n,r.Rr):n,a,t,_,d,h),T={traceId:a,spanId:f,traceFlags:E.decision===r.Uz.RECORD_AND_SAMPLED?r.rh.SAMPLED:r.rh.NONE,traceState:u};if(E.decision===r.Uz.NOT_RECORD)return r.K.debug("Recording is off, propagating context in a non-recording span"),r.g4.wrapSpanContext(T);var S=new Gt(this,n,t,T,_,c,h,e.startTime);return S.setAttributes(Object.assign(d,E.attributes)),S},t.prototype.startActiveSpan=function(t,e,n,o){var i,a,s;if(!(arguments.length<2)){2===arguments.length?s=e:3===arguments.length?(i=e,s=n):(i=e,a=n,s=o);var u=null!=a?a:r.Do.active(),c=this.startSpan(t,i,u),l=r.g4.setSpan(u,c);return r.Do.with(l,s,void 0,c)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}();var Xt,Yt,Wt=function(){function t(t){this.attributes=t}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t(((e={})[Z]="unknown_service",e[Y]=q[Y],e[X]=q[X],e[W]=q[W],e))},t.prototype.merge=function(e){return e&&Object.keys(e.attributes).length?new t(Object.assign({},this.attributes,e.attributes)):this},t.EMPTY=new t({}),t}(),qt=function(){function t(t){this._spanProcessors=t}return t.prototype.forceFlush=function(){for(var t=[],e=0,n=this._spanProcessors;e<n.length;e++){var r=n[e];t.push(r.forceFlush())}return new Promise((function(e){Promise.all(t).then((function(){e()})).catch((function(t){d(t||new Error("MultiSpanProcessor: forceFlush failed")),e()}))}))},t.prototype.onStart=function(t,e){for(var n=0,r=this._spanProcessors;n<r.length;n++){r[n].onStart(t,e)}},t.prototype.onEnd=function(t){for(var e=0,n=this._spanProcessors;e<n.length;e++){n[e].onEnd(t)}},t.prototype.shutdown=function(){for(var t=[],e=0,n=this._spanProcessors;e<n.length;e++){var r=n[e];t.push(r.shutdown())}return new Promise((function(e,n){Promise.all(t).then((function(){e()}),n)}))},t}(),Qt=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}(),Jt=function(){function t(t,e){this._exporter=t,this._finishedSpans=[],this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve();var n=P();this._maxExportBatchSize="number"==typeof(null==e?void 0:e.maxExportBatchSize)?e.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==e?void 0:e.maxQueueSize)?e.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==e?void 0:e.scheduledDelayMillis)?e.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==e?void 0:e.exportTimeoutMillis)?e.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT}return t.prototype.forceFlush=function(){return this._isShutdown?this._shuttingDownPromise:this._flushAll()},t.prototype.onStart=function(t){},t.prototype.onEnd=function(t){this._isShutdown||0!=(t.spanContext().traceFlags&r.rh.SAMPLED)&&this._addToBuffer(t)},t.prototype.shutdown=function(){var t=this;return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise((function(e,n){Promise.resolve().then((function(){return t.onShutdown()})).then((function(){return t._flushAll()})).then((function(){return t._exporter.shutdown()})).then(e).catch((function(t){n(t)}))}))),this._shuttingDownPromise},t.prototype._addToBuffer=function(t){this._finishedSpans.length>=this._maxQueueSize||(this._finishedSpans.push(t),this._maybeStartTimer())},t.prototype._flushAll=function(){var t=this;return new Promise((function(e,n){for(var r=[],o=0,i=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize);o<i;o++)r.push(t._flushOneBatch());Promise.all(r).then((function(){e()})).catch(n)}))},t.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise((function(e,n){var o=setTimeout((function(){n(new Error("Timeout"))}),t._exportTimeoutMillis);r.Do.with(a(r.Do.active()),(function(){t._exporter.export(t._finishedSpans.splice(0,t._maxExportBatchSize),(function(t){var r;clearTimeout(o),t.code===Q.SUCCESS?e():n(null!==(r=t.error)&&void 0!==r?r:new Error("BatchSpanProcessor: span export failed"))}))}))}))},t.prototype._maybeStartTimer=function(){var t=this;void 0===this._timer&&(this._timer=setTimeout((function(){t._flushOneBatch().then((function(){t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())})).catch((function(t){d(t)}))}),this._scheduledDelayMillis),this._timer)},t.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},t}(),$t=(Xt=function(t,e){return Xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Xt(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Xt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),te=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.onInit(n),r}return $t(e,t),e.prototype.onInit=function(t){var e=this;!0!==(null==t?void 0:t.disableAutoFlushOnDocumentHide)&&null!=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.prototype.onShutdown=function(){this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener)},e}(Jt);!function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"}(Yt||(Yt={}));var ee,ne,re,oe=function(){function t(t){var e;void 0===t&&(t={}),this._registeredSpanProcessors=[],this._tracers=new Map;var n=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),r=new WeakMap;t.length>0;)n=Dt(n,t.shift(),0,r);return n}({},Ht,t);this.resource=null!==(e=n.resource)&&void 0!==e?e:Wt.empty(),this.resource=Wt.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var r=this._buildExporterFromEnv();if(void 0!==r){var o=new te(r);this.activeSpanProcessor=o}else this.activeSpanProcessor=new Qt}return t.prototype.getTracer=function(t,e){var n=t+"@"+(e||"");return this._tracers.has(n)||this._tracers.set(n,new Zt({name:t,version:e},this._config,this)),this._tracers.get(n)},t.prototype.addSpanProcessor=function(t){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((function(t){return r.K.error("Error while trying to shutdown current span processor",t)})),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new qt(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(t){void 0===t&&(t={}),r.g4.setGlobalTracerProvider(this),void 0===t.propagator&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&r.Do.setGlobalContextManager(t.contextManager),t.propagator&&r.uA.setGlobalPropagator(t.propagator)},t.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,e=this._registeredSpanProcessors.map((function(e){return new Promise((function(n){var r,o=setTimeout((function(){n(new Error("Span processor did not completed within timeout period of "+t+" ms")),r=Yt.timeout}),t);e.forceFlush().then((function(){clearTimeout(o),r!==Yt.timeout&&(r=Yt.resolved,n(r))})).catch((function(t){clearTimeout(o),r=Yt.error,n(t)}))}))}));return new Promise((function(t,n){Promise.all(e).then((function(e){var r=e.filter((function(t){return t!==Yt.resolved}));r.length>0?n(r):t()})).catch((function(t){return n([t])}))}))},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return null===(n=t._registeredPropagators.get(e))||void 0===n?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return null===(n=t._registeredExporters.get(e))||void 0===n?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var t=this,e=Array.from(new Set(P().OTEL_PROPAGATORS)),n=e.map((function(e){var n=t._getPropagator(e);return n||r.K.warn('Propagator "'+e+'" requested through environment variable is unavailable.'),n})).reduce((function(t,e){return e&&t.push(e),t}),[]);return 0===n.length?void 0:1===e.length?n[0]:new at({propagators:n})},t.prototype._buildExporterFromEnv=function(){var t=P().OTEL_TRACES_EXPORTER;if("none"!==t){var e=this._getSpanExporter(t);return e||r.K.error('Exporter "'+t+'" requested through environment variable is unavailable.'),e}},t._registeredPropagators=new Map([["tracecontext",function(){return new dt}],["baggage",function(){return new l}]]),t._registeredExporters=new Map,t}(),ie=(function(){function t(){}t.prototype.export=function(t,e){return this._sendSpans(t,e)},t.prototype.shutdown=function(){return this._sendSpans([]),Promise.resolve()},t.prototype._exportInfo=function(t){return{traceId:t.spanContext().traceId,parentId:t.parentSpanId,name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:ot(t.startTime),duration:ot(t.duration),attributes:t.attributes,status:t.status,events:t.events}},t.prototype._sendSpans=function(t,e){for(var n=0,r=t;n<r.length;n++){var o=r[n];console.log(this._exportInfo(o))}if(e)return e({code:Q.SUCCESS})}}(),function(){function t(){this._finishedSpans=[],this._stopped=!1}t.prototype.export=function(t,e){var n;if(this._stopped)return e({code:Q.FAILED,error:new Error("Exporter has been stopped")});(n=this._finishedSpans).push.apply(n,t),setTimeout((function(){return e({code:Q.SUCCESS})}),0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans}}(),function(){function t(t){this._exporter=t,this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve()}t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.onStart=function(t){},t.prototype.onEnd=function(t){var e=this;this._isShutdown||0!=(t.spanContext().traceFlags&r.rh.SAMPLED)&&r.Do.with(a(r.Do.active()),(function(){e._exporter.export([t],(function(t){var e;t.code!==Q.SUCCESS&&d(null!==(e=t.error)&&void 0!==e?e:new Error("SimpleSpanProcessor: span export failed (status "+t+")"))}))}))},t.prototype.shutdown=function(){var t=this;return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise((function(e,n){Promise.resolve().then((function(){return t._exporter.shutdown()})).then(e).catch((function(t){n(t)}))}))),this._shuttingDownPromise}}(),function(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}),ae=function(){function t(){this._enabled=!1,this._currentContext=r.Iu}return t.prototype._bindFunction=function(t,e){void 0===t&&(t=r.Iu);var n=this,o=function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.with(t,(function(){return e.apply(r,o)}))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),o},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=r.Iu,this._enabled=!1,this},t.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=r.Iu),this},t.prototype.with=function(t,e,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a=this._currentContext;this._currentContext=t||r.Iu;try{return e.call.apply(e,ie([n],o))}finally{this._currentContext=a}},t}(),se=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){function e(e){void 0===e&&(e={});var n=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 n}se(e,t),e.prototype.register=function(e){void 0===e&&(e={}),void 0===e.contextManager&&(e.contextManager=new ae),e.contextManager&&e.contextManager.enable(),t.prototype.register.call(this,e)}}(oe);function ue(){return ne||(ne=document.createElement("a")),ne}function ce(t,e,n){if(e in n&&"number"==typeof n[e])return t.addEvent(e,n[e]),t}function le(t,e){ce(t,ee.FETCH_START,e),ce(t,ee.DOMAIN_LOOKUP_START,e),ce(t,ee.DOMAIN_LOOKUP_END,e),ce(t,ee.CONNECT_START,e),ce(t,ee.SECURE_CONNECTION_START,e),ce(t,ee.CONNECT_END,e),ce(t,ee.REQUEST_START,e),ce(t,ee.RESPONSE_START,e),ce(t,ee.RESPONSE_END,e);var n=e[ee.ENCODED_BODY_SIZE];void 0!==n&&t.setAttribute(H,n);var r=e[ee.DECODED_BODY_SIZE];void 0!==r&&n!==r&&t.setAttribute(z,r)}function pe(t,e,n,r,o,i){void 0===o&&(o=new WeakSet);var a=ue();a.href=t;var s=function(t,e,n,r,o,i){var a=rt(e),s=rt(n),u=r.filter((function(e){var n=rt(nt(e[ee.FETCH_START])),r=rt(nt(e[ee.RESPONSE_END]));return e.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&e.name===t&&n>=a&&r<=s}));u.length>0&&(u=u.filter((function(t){return!o.has(t)})));return u}(t=a.href,e,n,r,o,i);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var u=function(t){return t.slice().sort((function(t,e){var n=t[ee.FETCH_START],r=e[ee.FETCH_START];return n>r?1:n<r?-1:0}))}(s);if(fe(t).origin!==window.location.origin&&u.length>1){var c=u[0],l=function(t,e,n){for(var r,o=rt(n),i=rt(nt(e)),a=t[1],s=t.length,u=1;u<s;u++){var c=t[u],l=rt(nt(c[ee.FETCH_START])),p=o-rt(nt(c[ee.RESPONSE_END]));l>=i&&(!r||p<r)&&(r=p,a=c)}return a}(u,c[ee.RESPONSE_END],n),p=c[ee.RESPONSE_END];return l[ee.FETCH_START]<p&&(l=c,c=void 0),{corsPreFlightRequest:c,mainRequest:l}}return{mainRequest:s[0]}}function fe(t){var e=document.createElement("a");return e.href=t,e}!function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"}(ee||(ee={})),function(t){t.COMPONENT="component",t.HTTP_ERROR_NAME="http.error_name",t.HTTP_STATUS_TEXT="http.status_text"}(re||(re={}));var _e="0.27.0",he=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),de=function(t){function e(e){var n=t.call(this,"@opentelemetry/instrumentation-fetch",_e,e)||this;return n.component="fetch",n.version=_e,n.moduleName=n.component,n._usedResources=new WeakSet,n._tasksCount=0,n}return he(e,t),e.prototype.init=function(){},e.prototype._getConfig=function(){return this._config},e.prototype._addChildSpan=function(t,e){var n=this.tracer.startSpan("CORS Preflight",{startTime:e[ee.FETCH_START]},r.g4.setSpan(r.Do.active(),t));le(n,e),n.end(e[ee.RESPONSE_END])},e.prototype._addFinalSpanAttributes=function(t,e){var n=fe(e.url);t.setAttribute(V,e.status),null!=e.statusText&&t.setAttribute(re.HTTP_STATUS_TEXT,e.statusText),t.setAttribute(j,n.host),t.setAttribute(G,n.protocol.replace(":","")),t.setAttribute(F,navigator.userAgent)},e.prototype._addHeaders=function(t,e){if(!function(t,e){var n=e||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),fe(t).origin===window.location.origin||n.some((function(e){return jt(t,e)}))}(e,this._getConfig().propagateTraceHeaderCorsUrls)){var n={};return r.uA.inject(r.Do.active(),n),void(Object.keys(n).length>0&&this._diag.debug("headers inject skipped due to CORS policy"))}if(t instanceof Request)r.uA.inject(r.Do.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else if(t.headers instanceof Headers)r.uA.inject(r.Do.active(),t.headers,{set:function(t,e,n){return t.set(e,"string"==typeof n?n:String(n))}});else{n={};r.uA.inject(r.Do.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){var n;if(void 0===e&&(e={}),!function(t,e){if(!e)return!1;for(var n=0,r=e;n<r.length;n++)if(jt(t,r[n]))return!0;return!1}(t,this._getConfig().ignoreUrls)){var o=(e.method||"GET").toUpperCase(),i="HTTP "+o;return this.tracer.startSpan(i,{kind:r.MU.CLIENT,attributes:(n={},n[re.COMPONENT]=this.moduleName,n[k]=o,n[B]=t,n)})}this._diag.debug("ignoring span as url matches ignored url")},e.prototype._findResourceAndAddNetworkEvents=function(t,e,n){var r=e.entries;if(!r.length){if(!performance.getEntriesByType)return;r=performance.getEntriesByType("resource")}var o=pe(e.spanUrl,e.startTime,n,r,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)),le(t,i)}},e.prototype._markResourceAsUsed=function(t){this._usedResources.add(t)},e.prototype._endSpan=function(t,e,n){var r=this,o=et();this._addFinalSpanAttributes(t,n),setTimeout((function(){var n;null===(n=e.observer)||void 0===n||n.disconnect(),r._findResourceAndAddNetworkEvents(t,e,o),r._tasksCount--,r._clearResources(),t.end(o)}),300)},e.prototype._patchConstructor=function(){var t=this;return function(e){var n=t;return function(){for(var t=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var a=o[0]instanceof Request?o[0].url:o[0],s=o[0]instanceof Request?o[0]:o[1]||{},u=n._createSpan(a,s);if(!u)return e.apply(this,o);var c=n._prepareSpanData(a);function l(t,e){n._applyAttributesAfterFetch(t,s,e),n._endSpan(t,c,{status:e.status||0,statusText:e.message,url:a})}function p(t,e){n._applyAttributesAfterFetch(t,s,e),e.status>=200&&e.status<400?n._endSpan(t,c,e):n._endSpan(t,c,{status:e.status,statusText:e.statusText,url:a})}function f(t,e,n){try{var r=n.clone(),o=n.clone(),i=r.body;if(i){var a=i.getReader(),s=function(){a.read().then((function(e){e.done?p(t,o):s()}),(function(e){l(t,e)}))};s()}else p(t,n)}finally{e(n)}}function _(t,e,n){try{l(t,n)}finally{e(n)}}return new Promise((function(o,i){return r.Do.with(r.g4.setSpan(r.Do.active(),u),(function(){return n._addHeaders(s,a),n._tasksCount++,e.apply(t,s instanceof Request?[s]:[a,s]).then(f.bind(t,u,o),_.bind(t,u,i))}))}))}}},e.prototype._applyAttributesAfterFetch=function(t,e,n){var r=this,i=this._getConfig().applyCustomAttributesOnSpan;i&&(0,o.safeExecuteInTheMiddle)((function(){return i(t,e,n)}),(function(t){t&&r._diag.error("applyCustomAttributesOnSpan",t)}),!0)},e.prototype._prepareSpanData=function(t){var e=et(),n=[];if(void 0===window.PerformanceObserver)return{entries:n,startTime:e,spanUrl:t};var r=new PerformanceObserver((function(e){var r=e.getEntries(),o=ue();o.href=t,r.forEach((function(t){"fetch"===t.initiatorType&&t.name===o.href&&n.push(t)}))}));return r.observe({entryTypes:["resource"]}),{entries:n,observer:r,startTime:e,spanUrl:t}},e.prototype.enable=function(){(0,o.isWrapped)(window.fetch)&&(this._unwrap(window,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(window,"fetch",this._patchConstructor())},e.prototype.disable=function(){this._unwrap(window,"fetch"),this._usedResources=new WeakSet},e}(o.InstrumentationBase)},140:(t,e,n)=>{"use strict";n.r(e),n.d(e,{InstrumentationBase:()=>I,isWrapped:()=>k,registerInstrumentations:()=>N,safeExecuteInTheMiddle:()=>U,safeExecuteInTheMiddleAsync:()=>x});var r,o,i,a=n(370),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(){function t(){}return t.prototype.createHistogram=function(t,e){return E},t.prototype.createCounter=function(t,e){return d},t.prototype.createUpDownCounter=function(t,e){return T},t.prototype.createObservableGauge=function(t,e,n){return v},t.prototype.createObservableCounter=function(t,e,n){return S},t.prototype.createObservableUpDownCounter=function(t,e,n){return y},t}(),c=function(){},l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.add=function(t,e){},e}(c),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.add=function(t,e){},e}(c),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.record=function(t,e){},e}(c),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.observation=function(){return{observable:this,value:0}},e}(c),h=new u,d=new l,E=new f,T=new p,S=new _,v=new _,y=new _,g=new(function(){function t(){}return t.prototype.getMeter=function(t,e,n){return h},t}());!function(t){t[t.INT=0]="INT",t[t.DOUBLE=1]="DOUBLE"}(o||(o={})),function(t){t[t.AGGREGATION_TEMPORALITY_UNSPECIFIED=0]="AGGREGATION_TEMPORALITY_UNSPECIFIED",t[t.AGGREGATION_TEMPORALITY_DELTA=1]="AGGREGATION_TEMPORALITY_DELTA",t[t.AGGREGATION_TEMPORALITY_CUMULATIVE=2]="AGGREGATION_TEMPORALITY_CUMULATIVE"}(i||(i={}));var m="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},O=Symbol.for("io.opentelemetry.js.api.metrics"),A=m;var R=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(t){return A[O]?this.getMeterProvider():(A[O]=(e=4,n=t,r=g,function(t){return t===e?n:r}),t);var e,n,r},t.prototype.getMeterProvider=function(){var t,e;return null!==(e=null===(t=A[O])||void 0===t?void 0:t.call(A,4))&&void 0!==e?e:g},t.prototype.getMeter=function(t,e,n){return this.getMeterProvider().getMeter(t,e,n)},t.prototype.disable=function(){delete A[O]},t}().getInstance();function b(t){void 0===t&&(t=[]);for(var e=[],n=0,r=t.length;n<r;n++){var o=t[n];if(Array.isArray(o)){var i=b(o);e=e.concat(i.instrumentations)}else"function"==typeof o?e.push(new o):o.instrumentationName&&e.push(o)}return{instrumentations:e}}function N(t){var e=b(t.instrumentations).instrumentations,n=t.tracerProvider||a.g4.getTracerProvider(),r=t.meterProvider||R.getMeterProvider();return function(t,e,n){for(var r=0,o=t.length;r<o;r++){var i=t[r];e&&i.setTracerProvider(e),n&&i.setMeterProvider(n),i.getConfig().enabled||i.enable()}}(e,n,r),function(){!function(t){t.forEach((function(t){return t.disable()}))}(e)}}var P=n(372),L=function(){return L=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},L.apply(this,arguments)},C=function(){function t(t,e,n){void 0===n&&(n={}),this.instrumentationName=t,this.instrumentationVersion=e,this._wrap=P.wrap,this._unwrap=P.unwrap,this._massWrap=P.massWrap,this._massUnwrap=P.massUnwrap,this._config=L({enabled:!0},n),this._diag=a.K.createComponentLogger({namespace:t}),this._tracer=a.g4.getTracer(t,e),this._meter=R.getMeter(t,e)}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)},t.prototype.getConfig=function(){return this._config},t.prototype.setConfig=function(t){void 0===t&&(t={}),this._config=Object.assign({},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}(),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=function(t){function e(e,n,r){void 0===r&&(r={});var o=t.call(this,e,n,r)||this;return o._config.enabled&&o.enable(),o}return w(e,t),e}(C),D=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},M=function(t,e){var n,r,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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};function U(t,e,n){var r,o;try{o=t()}catch(t){r=t}finally{if(e(r,o),r&&!n)throw r;return o}}function x(t,e,n){return D(this,void 0,void 0,(function(){var r,o,i;return M(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,3,4]),[4,t()];case 1:return o=a.sent(),[3,4];case 2:return i=a.sent(),r=i,[3,4];case 3:if(e(r,o),r&&!n)throw r;return[2,o];case 4:return[2]}}))}))}function k(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}},339:(t,e,n)=>{"use strict";n.r(e),n.d(e,{B3InjectEncoding:()=>g,B3Propagator:()=>O,B3_CONTEXT_HEADER:()=>a,X_B3_FLAGS:()=>p,X_B3_PARENT_SPAN_ID:()=>l,X_B3_SAMPLED:()=>c,X_B3_SPAN_ID:()=>u,X_B3_TRACE_ID:()=>s});var r=n(479),o=n(370),i=(0,o.Yz)("OpenTelemetry Context Key B3 Debug Flag"),a="b3",s="x-b3-traceid",u="x-b3-spanid",c="x-b3-sampled",l="x-b3-parentspanid",p="x-b3-flags",f=new Set([!0,"true","True","1",1]),_=new Set([!1,"false","False","0",0]);function h(t,e,n){return function(t){return Array.isArray(t)?t[0]:t}(e.get(t,n))}function d(t,e){return"1"===h(t,e,p)?"1":void 0}var E=function(){function t(){}return t.prototype.inject=function(t,e,n){var a=o.g4.getSpanContext(t);if(a&&(0,o.BM)(a)&&!(0,r.isTracingSuppressed)(t)){var l=t.getValue(i);n.set(e,s,a.traceId),n.set(e,u,a.spanId),"1"===l?n.set(e,p,l):void 0!==a.traceFlags&&n.set(e,c,(o.rh.SAMPLED&a.traceFlags)===o.rh.SAMPLED?"1":"0")}},t.prototype.extract=function(t,e,n){var r,a=function(t,e){var n=h(t,e,s);return"string"==typeof n?n.padStart(32,"0"):""}(e,n),l=function(t,e){var n=h(t,e,u);return"string"==typeof n?n:""}(e,n),p=function(t,e){var n=h(t,e,c);return"1"===d(t,e)||f.has(n)?o.rh.SAMPLED:void 0===n||_.has(n)?o.rh.NONE:void 0}(e,n),E=d(e,n);return(0,o.jN)(a)&&(0,o.Lc)(l)&&((r=p)===o.rh.SAMPLED||r===o.rh.NONE)?(t=t.setValue(i,E),o.g4.setSpanContext(t,{traceId:a,spanId:l,isRemote:!0,traceFlags:p})):t},t.prototype.fields=function(){return[s,u,p,c,l]},t}(),T=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},S=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,v="0".repeat(16),y=new Set(["d","1"]);var g,m=function(){function t(){}return t.prototype.inject=function(t,e,n){var s=o.g4.getSpanContext(t);if(s&&(0,o.BM)(s)&&!(0,r.isTracingSuppressed)(t)){var u=t.getValue(i)||1&s.traceFlags,c=s.traceId+"-"+s.spanId+"-"+u;n.set(e,a,c)}},t.prototype.extract=function(t,e,n){var r=n.get(e,a),s=Array.isArray(r)?r[0]:r;if("string"!=typeof s)return t;var u=s.match(S);if(!u)return t;var c=T(u,4),l=c[1],p=c[2],f=c[3],_=function(t){return 32===t.length?t:""+v+t}(l);if(!(0,o.jN)(_)||!(0,o.Lc)(p))return t;var h=function(t){return t&&y.has(t)?o.rh.SAMPLED:o.rh.NONE}(f);return"d"===f&&(t=t.setValue(i,f)),o.g4.setSpanContext(t,{traceId:_,spanId:p,isRemote:!0,traceFlags:h})},t.prototype.fields=function(){return[a]},t}();!function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"}(g||(g={}));var O=function(){function t(t){void 0===t&&(t={}),this._b3MultiPropagator=new E,this._b3SinglePropagator=new m,t.injectEncoding===g.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return t.prototype.inject=function(t,e,n){(0,r.isTracingSuppressed)(t)||this._inject(t,e,n)},t.prototype.extract=function(t,e,n){var r=n.get(e,a);return(Array.isArray(r)?r[0]:r)?this._b3SinglePropagator.extract(t,e,n):this._b3MultiPropagator.extract(t,e,n)},t.prototype.fields=function(){return this._fields},t}()},906:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Resource:()=>l,browserDetector:()=>O,defaultServiceName:()=>i,detectResources:()=>c,envDetector:()=>d,processDetector:()=>v});var r=n(871),o=n(479);function i(){return"unknown_service"}var a=n(370),s=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},u=function(t,e){var n,r,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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},c=function(t){return void 0===t&&(t={}),s(void 0,void 0,void 0,(function(){var e;return u(this,(function(n){switch(n.label){case 0:return e=Object.assign(t),[4,Promise.all((e.detectors||[]).map((function(t){return s(void 0,void 0,void 0,(function(){var n,r;return u(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,t.detect(e)];case 1:return n=o.sent(),a.K.debug(t.constructor.name+" found resource.",n),[2,n];case 2:return r=o.sent(),a.K.debug(t.constructor.name+" failed: "+r.message),[2,l.empty()];case 3:return[2]}}))}))})))];case 1:return[2,n.sent().reduce((function(t,e){return t.merge(e)}),l.empty())]}}))}))},l=function(){function t(t){this.attributes=t}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t(((e={})[r.SemanticResourceAttributes.SERVICE_NAME]="unknown_service",e[r.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]=o.SDK_INFO[r.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE],e[r.SemanticResourceAttributes.TELEMETRY_SDK_NAME]=o.SDK_INFO[r.SemanticResourceAttributes.TELEMETRY_SDK_NAME],e[r.SemanticResourceAttributes.TELEMETRY_SDK_VERSION]=o.SDK_INFO[r.SemanticResourceAttributes.TELEMETRY_SDK_VERSION],e))},t.prototype.merge=function(e){return e&&Object.keys(e.attributes).length?new t(Object.assign({},this.attributes,e.attributes)):this},t.EMPTY=new t({}),t}(),p=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},f=function(t,e){var n,r,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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},_=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},d=new(function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(t){return p(this,void 0,void 0,(function(){var t,e,n,i,s;return f(this,(function(u){if(t={},e=(0,o.getEnv)(),n=e.OTEL_RESOURCE_ATTRIBUTES,i=e.OTEL_SERVICE_NAME,n)try{s=this._parseResourceAttributes(n),Object.assign(t,s)}catch(t){a.K.debug("EnvDetector failed: "+t.message)}return i&&(t[r.SemanticResourceAttributes.SERVICE_NAME]=i),[2,new l(t)]}))}))},t.prototype._parseResourceAttributes=function(t){var e,n;if(!t)return{};var r={},o=t.split(this._COMMA_SEPARATOR,-1);try{for(var i=_(o),a=i.next();!a.done;a=i.next()){var s=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===s.length){var u=h(s,2),c=u[0],l=u[1];if(c=c.trim(),l=l.trim().split('^"|"$').join(""),!this._isValidAndNotEmpty(c))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);r[c]=l}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},t.prototype._isValid=function(t){return t.length<=this._MAX_LENGTH&&this._isPrintableString(t)},t.prototype._isPrintableString=function(t){for(var e=0;e<t.length;e++){var n=t.charAt(e);if(n<=" "||n>="~")return!1}return!0},t.prototype._isValidAndNotEmpty=function(t){return t.length>0&&this._isValid(t)},t}()),E=function(){return E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},E.apply(this,arguments)},T=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},S=function(t,e){var n,r,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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},v=new(function(){function t(){}return t.prototype.detect=function(t){return T(this,void 0,void 0,(function(){var e,n;return S(this,(function(o){return"object"!=typeof process?[2,l.empty()]:((n={})[r.SemanticResourceAttributes.PROCESS_PID]=process.pid,n[r.SemanticResourceAttributes.PROCESS_EXECUTABLE_NAME]=process.title||"",n[r.SemanticResourceAttributes.PROCESS_COMMAND]=process.argv[1]||"",n[r.SemanticResourceAttributes.PROCESS_COMMAND_LINE]=process.argv.join(" ")||"",n[r.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]=process.versions.node,n[r.SemanticResourceAttributes.PROCESS_RUNTIME_NAME]="nodejs",n[r.SemanticResourceAttributes.PROCESS_RUNTIME_DESCRIPTION]="Node.js",e=n,[2,this._getResourceAttributes(e,t)])}))}))},t.prototype._getResourceAttributes=function(t,e){return""===t[r.SemanticResourceAttributes.PROCESS_EXECUTABLE_NAME]||""===t[r.SemanticResourceAttributes.PROCESS_EXECUTABLE_PATH]||""===t[r.SemanticResourceAttributes.PROCESS_COMMAND]||""===t[r.SemanticResourceAttributes.PROCESS_COMMAND_LINE]||""===t[r.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]?(a.K.debug("ProcessDetector failed: Unable to find required process resources. "),l.empty()):new l(E({},t))},t}()),y=function(){return y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},y.apply(this,arguments)},g=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},m=function(t,e){var n,r,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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},O=new(function(){function t(){}return t.prototype.detect=function(t){return g(this,void 0,void 0,(function(){var e,n;return m(this,(function(o){return"undefined"!=typeof window&&void 0!==window.document?((n={})[r.SemanticResourceAttributes.PROCESS_RUNTIME_NAME]="browser",n[r.SemanticResourceAttributes.PROCESS_RUNTIME_DESCRIPTION]="Web Browser",n[r.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]=window.navigator.userAgent,e=n,[2,this._getResourceAttributes(e,t)]):[2,l.empty()]}))}))},t.prototype._getResourceAttributes=function(t,e){return""===t[r.SemanticResourceAttributes.PROCESS_RUNTIME_VERSION]?(a.K.debug("BrowserDetector failed: Unable to find required browser resources. "),l.empty()):new l(y({},t))},t}())},340:(t,e,n)=>{"use strict";n.r(e),n.d(e,{PerformanceTimingNames:()=>Pe,StackContextManager:()=>xe,WebTracerProvider:()=>Be,addSpanNetworkEvent:()=>Ge,addSpanNetworkEvents:()=>Ve,getElementXPath:()=>Ze,getResource:()=>He,hasKey:()=>je,normalizeUrl:()=>Ke,parseUrl:()=>ze,shouldPropagateTraceHeaders:()=>Xe,sortResources:()=>Fe});var r=n(370),o=(0,r.Yz)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function i(t){return t.setValue(o,!0)}function a(t){return!0===t.getValue(o)}var s="baggage",u=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function c(t){var e=t.split(";");if(!(e.length<=0)){var n=e.shift();if(n){var o=n.split("=");if(2===o.length){var i,a=decodeURIComponent(o[0].trim()),s=decodeURIComponent(o[1].trim());return e.length>0&&(i=(0,r.uc)(e.join(";"))),{key:a,value:s,metadata:i}}}}}var l=function(){function t(){}return t.prototype.inject=function(t,e,n){var o=r.uA.getBaggage(t);if(o&&!a(t)){var i=function(t){return t.getAllEntries().map((function(t){var e=u(t,2),n=e[0],r=e[1],o=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(o+=";"+r.metadata.toString()),o}))}(o).filter((function(t){return t.length<=4096})).slice(0,180),c=function(t){return t.reduce((function(t,e){var n=t+(""!==t?",":"")+e;return n.length>8192?t:n}),"")}(i);c.length>0&&n.set(e,s,c)}},t.prototype.extract=function(t,e,n){var o=n.get(e,s),i=Array.isArray(o)?o.join(","):o;if(!i)return t;var a={};return 0===i.length?t:(i.split(",").forEach((function(t){var e=c(t);if(e){var n={value:e.value};e.metadata&&(n.metadata=e.metadata),a[e.key]=n}})),0===Object.entries(a).length?t:r.uA.setBaggage(t,r.uA.createBaggage(a)))},t.prototype.fields=function(){return[s]},t}(),p=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function _(t){var e,n,o={};if("object"!=typeof t||null==t)return o;try{for(var i=p(Object.entries(t)),a=i.next();!a.done;a=i.next()){var s=f(a.value,2),u=s[0],c=s[1];h(u)?d(c)?Array.isArray(c)?o[u]=c.slice():o[u]=c:r.K.warn("Invalid attribute value set for key: "+u):r.K.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o}function h(t){return"string"==typeof t&&t.length>0}function d(t){return null==t||(Array.isArray(t)?function(t){var e,n,r;try{for(var o=p(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!r){if(E(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!0}(t):E(t))}function E(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var T,S=function(t){r.K.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},n=t;null!==n;)Object.getOwnPropertyNames(n).forEach((function(t){if(!e[t]){var r=n[t];r&&(e[t]=String(r))}})),n=Object.getPrototypeOf(n);return e}(t))}(t))};function v(t){try{S(t)}catch(t){}}!function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"}(T||(T={}));var y=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function g(t){return y.indexOf(t)>-1}var m=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function O(t){return m.indexOf(t)>-1}var A=1/0,R={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_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_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:r.nV.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:A,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:A,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:T.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:""};function b(t,e,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[t]){var i=Number(n[t]);isNaN(i)||(e[t]=i<r?r:i>o?o:i)}}function N(t,e,n,r){void 0===r&&(r=",");var o=n[t];"string"==typeof o&&(e[t]=o.split(r).map((function(t){return t.trim()})))}var P={ALL:r.nV.ALL,VERBOSE:r.nV.VERBOSE,DEBUG:r.nV.DEBUG,INFO:r.nV.INFO,WARN:r.nV.WARN,ERROR:r.nV.ERROR,NONE:r.nV.NONE};function L(t,e,n){var r=n[t];if("string"==typeof r){var o=P[r.toUpperCase()];null!=o&&(e[t]=o)}}var C="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{};function w(){var t=function(t){var e={};for(var n in R){var r=n;if("OTEL_LOG_LEVEL"===r)L(r,e,t);else if(g(r))b(r,e,t);else if(O(r))N(r,e,t);else{var o=t[r];null!=o&&(e[r]=String(o))}}return e}(C);return Object.assign({},R,t)}var I=function(){this.generateTraceId=M(16),this.generateSpanId=M(8)},D=Array(32);function M(t){return function(){for(var e=0;e<2*t;e++)D[e]=Math.floor(16*Math.random())+48,D[e]>=58&&(D[e]+=39);return String.fromCharCode.apply(null,D.slice(0,2*t))}}var U,x=performance,k="exception.type",B="exception.message",j="exception.stacktrace",G="http.response_content_length",V="http.response_content_length_uncompressed",F="process.pid",H="process.executable.name",z="process.executable.path",K="process.command",Z="process.command_line",X="process.runtime.name",Y="process.runtime.version",W="process.runtime.description",q="service.name",Q="telemetry.sdk.name",J="telemetry.sdk.language",$="telemetry.sdk.version",tt=((U={})[Q]="opentelemetry",U[X]="browser",U[J]="webjs",U[$]="1.3.1",U);var et,nt=Math.pow(10,9);function rt(t){var e=t/1e3,n=Math.trunc(e);return[n,Number((e-n).toFixed(9))*nt]}function ot(){var t=x.timeOrigin;if("number"!=typeof t){var e=x;t=e.timing&&e.timing.fetchStart}return t}function it(t){var e=rt(ot()),n=rt("number"==typeof t?t:x.now()),r=e[0]+n[0],o=e[1]+n[1];return o>nt&&(o-=nt,r+=1),[r,o]}function at(t){if(ct(t))return t;if("number"==typeof t)return t<ot()?it(t):rt(t);if(t instanceof Date)return rt(t.getTime());throw TypeError("Invalid input type")}function st(t){return t[0]*nt+t[1]}function ut(t){return Math.round(1e6*t[0]+t[1]/1e3)}function ct(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(et||(et={}));var lt=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},pt=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?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,n){var o,i;try{for(var a=lt(this._propagators),s=a.next();!s.done;s=a.next()){var u=s.value;try{u.inject(t,e,n)}catch(t){r.K.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},t.prototype.extract=function(t,e,n){return this._propagators.reduce((function(t,o){try{return o.extract(t,e,n)}catch(t){r.K.warn("Failed to inject with "+o.constructor.name+". Err: "+t.message)}return t}),t)},t.prototype.fields=function(){return this._fields.slice()},t}(),ft=new RegExp("^(?:[a-z][_0-9a-z-*/]{0,255}|[a-z0-9][_0-9a-z-*/]{0,240}@[a-z][_0-9a-z-*/]{0,13})$"),_t=/^[ -~]{0,255}[!-~]$/,ht=/,|=/;var dt=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n},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,n){return e.push(n+"="+t.get(n)),e}),[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce((function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);(function(t){return ft.test(t)})(o)&&function(t){return _t.test(t)&&!ht.test(t)}(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}(),Et="traceparent",Tt="tracestate",St=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var vt,yt=function(){function t(){}return t.prototype.inject=function(t,e,n){var o=r.g4.getSpanContext(t);if(o&&!a(t)&&(0,r.BM)(o)){var i="00-"+o.traceId+"-"+o.spanId+"-0"+Number(o.traceFlags||r.rh.NONE).toString(16);n.set(e,Et,i),o.traceState&&n.set(e,Tt,o.traceState.serialize())}},t.prototype.extract=function(t,e,n){var o=n.get(e,Et);if(!o)return t;var i=Array.isArray(o)?o[0]:o;if("string"!=typeof i)return t;var a=function(t){var e=St.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}(i);if(!a)return t;a.isRemote=!0;var s=n.get(e,Tt);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new dt("string"==typeof u?u:void 0)}return r.g4.setSpanContext(t,a)},t.prototype.fields=function(){return[Et,Tt]},t}();(0,r.Yz)("OpenTelemetry SDK Context Key RPC_METADATA");!function(t){t.HTTP="http"}(vt||(vt={}));var gt,mt,Ot=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:r.Uz.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),At=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:r.Uz.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Rt=function(){function t(t){var e,n,r,o;this._root=t.root,this._root||(v(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new At),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new At,this._remoteParentNotSampled=null!==(n=t.remoteParentNotSampled)&&void 0!==n?n:new Ot,this._localParentSampled=null!==(r=t.localParentSampled)&&void 0!==r?r:new At,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ot}return t.prototype.shouldSample=function(t,e,n,o,i,a){var s=r.g4.getSpanContext(t);return s&&(0,r.BM)(s)?s.isRemote?s.traceFlags&r.rh.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,o,i,a):this._remoteParentNotSampled.shouldSample(t,e,n,o,i,a):s.traceFlags&r.rh.SAMPLED?this._localParentSampled.shouldSample(t,e,n,o,i,a):this._localParentNotSampled.shouldSample(t,e,n,o,i,a):this._root.shouldSample(t,e,n,o,i,a)},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}(),bt=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:(0,r.jN)(e)&&this._accumulate(e)<this._upperBound?r.Uz.RECORD_AND_SAMPLED:r.Uz.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,n=0;n<t.length/8;n++){var r=8*n;e=(e^parseInt(t.slice(r,r+8),16))>>>0}return e},t}(),Nt="[object Null]",Pt="[object Undefined]",Lt=Function.prototype.toString,Ct=Lt.call(Object),wt=(gt=Object.getPrototypeOf,mt=Object,function(t){return gt(mt(t))}),It=Object.prototype,Dt=It.hasOwnProperty,Mt=Symbol?Symbol.toStringTag:void 0,Ut=It.toString;function xt(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||"[object Object]"!==function(t){if(null==t)return void 0===t?Pt:Nt;return Mt&&Mt in Object(t)?function(t){var e=Dt.call(t,Mt),n=t[Mt],r=!1;try{t[Mt]=void 0,r=!0}catch(t){}var o=Ut.call(t);r&&(e?t[Mt]=n:delete t[Mt]);return o}(t):function(t){return Ut.call(t)}(t)}(t))return!1;var e=wt(t);if(null===e)return!0;var n=Dt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Lt.call(n)===Ct}function kt(t){return Gt(t)?t.slice():t}function Bt(t,e,n,r){var o;if(void 0===n&&(n=0),!(n>20)){if(n++,Ht(t)||Ht(e)||Vt(e))o=kt(e);else if(Gt(t)){if(o=t.slice(),Gt(e))for(var i=0,a=e.length;i<a;i++)o.push(kt(e[i]));else if(Ft(e))for(i=0,a=(s=Object.keys(e)).length;i<a;i++){o[u=s[i]]=kt(e[u])}}else if(Ft(t))if(Ft(e)){if(!function(t,e){if(!xt(t)||!xt(e))return!1;return!0}(t,e))return e;o=Object.assign({},t);var s;for(i=0,a=(s=Object.keys(e)).length;i<a;i++){var u,c=e[u=s[i]];if(Ht(c))void 0===c?delete o[u]:o[u]=c;else{var l=o[u],p=c;if(jt(t,u,r)||jt(e,u,r))delete o[u];else{if(Ft(l)&&Ft(p)){var f=r.get(l)||[],_=r.get(p)||[];f.push({obj:t,key:u}),_.push({obj:e,key:u}),r.set(l,f),r.set(p,_)}o[u]=Bt(o[u],c,n,r)}}}}else o=e;return o}}function jt(t,e,n){for(var r=n.get(t[e])||[],o=0,i=r.length;o<i;o++){var a=r[o];if(a.key===e&&a.obj===t)return!0}return!1}function Gt(t){return Array.isArray(t)}function Vt(t){return"function"==typeof t}function Ft(t){return!Ht(t)&&!Gt(t)&&!Vt(t)&&"object"==typeof t}function Ht(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}function zt(t,e){return"string"==typeof e?t===e:!!t.match(e)}var Kt=function(){function t(){var t=this;this._promise=new Promise((function(e,n){t._resolve=e,t._reject=n}))}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}(),Zt=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Xt=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Yt=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Kt}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,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((t=this._callback).call.apply(t,Xt([this._that],Zt(n),!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}(),Wt=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},qt=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Qt=function(){function t(t,e,n,o,i,a,s,u){void 0===s&&(s=[]),void 0===u&&(u=it()),this.attributes={},this.links=[],this.events=[],this.status={code:r.Qn.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=o,this.parentSpanId=a,this.kind=i,this.links=s,this.startTime=at(u),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,e),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return null==e||this._isSpanEnded()?this:0===t.length?(r.K.warn("Invalid attribute key: "+t),this):d(e)?(Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)||(this.attributes[t]=this._truncateToSize(e)),this):(r.K.warn("Invalid attribute value set for key: "+t),this)},t.prototype.setAttributes=function(t){var e,n;try{for(var r=Wt(Object.entries(t)),o=r.next();!o.done;o=r.next()){var i=qt(o.value,2),a=i[0],s=i[1];this.setAttribute(a,s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return this},t.prototype.addEvent=function(t,e,n){if(this._isSpanEnded())return this;if(0===this._spanLimits.eventCountLimit)return r.K.warn("No events allowed."),this;var o;this.events.length>=this._spanLimits.eventCountLimit&&(r.K.warn("Dropping extra events."),this.events.shift()),(ct(o=e)||"number"==typeof o||o instanceof Date)&&(void 0===n&&(n=e),e=void 0),void 0===n&&(n=it());var i=_(e);return this.events.push({name:t,attributes:i,time:at(n)}),this},t.prototype.setStatus=function(t){return this._isSpanEnded()||(this.status=t),this},t.prototype.updateName=function(t){return this._isSpanEnded()||(this.name=t),this},t.prototype.end=function(t){void 0===t&&(t=it()),this._isSpanEnded()?r.K.error("You can only call end() on a span once."):(this._ended=!0,this.endTime=at(t),this._duration=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=nt),[n,r]}(this.startTime,this.endTime),this._duration[0]<0&&r.K.warn("Inconsistent start and end time, startTime > endTime",this.startTime,this.endTime),this._spanProcessor.onEnd(this))},t.prototype.isRecording=function(){return!1===this._ended},t.prototype.recordException=function(t,e){void 0===e&&(e=it());var n={};"string"==typeof t?n[B]=t:t&&(t.code?n[k]=t.code.toString():t.name&&(n[k]=t.name),t.message&&(n[B]=t.message),t.stack&&(n[j]=t.stack)),n[k]||n[B]?this.addEvent("exception",n,e):r.K.warn("Failed to record an exception "+t)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&r.K.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.substr(0,e)},t.prototype._truncateToSize=function(t){var e=this,n=this._attributeValueLengthLimit;return n<=0?(r.K.warn("Attribute value limit must be positive, got "+n),t):"string"==typeof t?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map((function(t){return"string"==typeof t?e._truncateToLimitUtil(t,n):t})):t},t}(),Jt=w(),$t=T.AlwaysOn,te={sampler:ee(Jt),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:w().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:w().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:w().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:w().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:w().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:w().OTEL_SPAN_EVENT_COUNT_LIMIT}};function ee(t){switch(void 0===t&&(t=w()),t.OTEL_TRACES_SAMPLER){case T.AlwaysOn:return new At;case T.AlwaysOff:return new Ot;case T.ParentBasedAlwaysOn:return new Rt({root:new At});case T.ParentBasedAlwaysOff:return new Rt({root:new Ot});case T.TraceIdRatio:return new bt(ne(t));case T.ParentBasedTraceIdRatio:return new Rt({root:new bt(ne(t))});default:return r.K.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+$t+'".'),new At}}function ne(t){if(void 0===t.OTEL_TRACES_SAMPLER_ARG||""===t.OTEL_TRACES_SAMPLER_ARG)return r.K.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(r.K.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to 1."),1):e<0||e>1?(r.K.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 re=function(){function t(t,e,n){this._tracerProvider=n;var r,o,i,a=(r=e,o={sampler:ee()},(i=Object.assign({},te,o,r)).generalLimits=Object.assign({},te.generalLimits,r.generalLimits||{}),i.spanLimits=Object.assign({},te.spanLimits,r.spanLimits||{}),i);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=e.idGenerator||new I,this.resource=n.resource,this.instrumentationLibrary=t}return t.prototype.startSpan=function(t,e,n){var o,i;if(void 0===e&&(e={}),void 0===n&&(n=r.Do.active()),a(n))return r.K.debug("Instrumentation suppressed, returning Noop Span"),r.g4.wrapSpanContext(r.Rr);e.root&&(n=r.g4.deleteSpan(n));var s,u,c,l=r.g4.getSpanContext(n),p=this._idGenerator.generateSpanId();l&&r.g4.isSpanContextValid(l)?(s=l.traceId,u=l.traceState,c=l.spanId):s=this._idGenerator.generateTraceId();var f=null!==(o=e.kind)&&void 0!==o?o:r.MU.INTERNAL,h=(null!==(i=e.links)&&void 0!==i?i:[]).map((function(t){return{context:t.context,attributes:_(t.attributes)}})),d=_(e.attributes),E=this._sampler.shouldSample(n,s,t,f,d,h),T={traceId:s,spanId:p,traceFlags:E.decision===r.Uz.RECORD_AND_SAMPLED?r.rh.SAMPLED:r.rh.NONE,traceState:u};if(E.decision===r.Uz.NOT_RECORD)return r.K.debug("Recording is off, propagating context in a non-recording span"),r.g4.wrapSpanContext(T);var S=new Qt(this,n,t,T,f,c,h,e.startTime),v=_(Object.assign(d,E.attributes));return S.setAttributes(v),S},t.prototype.startActiveSpan=function(t,e,n,o){var i,a,s;if(!(arguments.length<2)){2===arguments.length?s=e:3===arguments.length?(i=e,s=n):(i=e,a=n,s=o);var u=null!=a?a:r.Do.active(),c=this.startSpan(t,i,u),l=r.g4.setSpan(u,c);return r.Do.with(l,s,void 0,c)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}();var oe,ie,ae=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},se=function(t,e){var n,r,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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ue=(new(function(){function t(){}return t.prototype.detect=function(){return ae(this,void 0,void 0,(function(){return se(this,(function(t){return[2,new ue({})]}))}))},t}()),function(){function t(t){this.attributes=t}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t(((e={})[q]="unknown_service",e[J]=tt[J],e[Q]=tt[Q],e[$]=tt[$],e))},t.prototype.merge=function(e){return e&&Object.keys(e.attributes).length?new t(Object.assign({},this.attributes,e.attributes)):this},t.EMPTY=new t({}),t}()),ce=function(){return ce=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ce.apply(this,arguments)},le=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},pe=function(t,e){var n,r,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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},fe=function(){function t(){}return t.prototype.detect=function(t){return le(this,void 0,void 0,(function(){var e,n;return pe(this,(function(r){return"undefined"!=typeof navigator?((n={})[X]="browser",n[W]="Web Browser",n[Y]=navigator.userAgent,e=n,[2,this._getResourceAttributes(e,t)]):[2,ue.empty()]}))}))},t.prototype._getResourceAttributes=function(t,e){return""===t[Y]?(r.K.debug("BrowserDetector failed: Unable to find required browser resources. "),ue.empty()):new ue(ce({},t))},t}(),_e=(new fe,function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}),he=function(t,e){var n,r,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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},de=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ee=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Te=function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(t){return _e(this,void 0,void 0,(function(){var t,e,n,o,i;return he(this,(function(a){if(t={},e=w(),n=e.OTEL_RESOURCE_ATTRIBUTES,o=e.OTEL_SERVICE_NAME,n)try{i=this._parseResourceAttributes(n),Object.assign(t,i)}catch(t){r.K.debug("EnvDetector failed: "+t.message)}return o&&(t[q]=o),[2,new ue(t)]}))}))},t.prototype._parseResourceAttributes=function(t){var e,n;if(!t)return{};var r={},o=t.split(this._COMMA_SEPARATOR,-1);try{for(var i=de(o),a=i.next();!a.done;a=i.next()){var s=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===s.length){var u=Ee(s,2),c=u[0],l=u[1];if(c=c.trim(),l=l.trim().split('^"|"$').join(""),!this._isValidAndNotEmpty(c))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);r[c]=l}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},t.prototype._isValid=function(t){return t.length<=this._MAX_LENGTH&&this._isPrintableString(t)},t.prototype._isPrintableString=function(t){for(var e=0;e<t.length;e++){var n=t.charAt(e);if(n<=" "||n>="~")return!1}return!0},t.prototype._isValidAndNotEmpty=function(t){return t.length>0&&this._isValid(t)},t}(),Se=(new Te,function(){return Se=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Se.apply(this,arguments)}),ve=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},ye=function(t,e){var n,r,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){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ge=function(){function t(){}return t.prototype.detect=function(t){return ve(this,void 0,void 0,(function(){var e,n;return ye(this,(function(r){return"object"!=typeof process?[2,ue.empty()]:((n={})[F]=process.pid,n[H]=process.title||"",n[K]=process.argv[1]||"",n[Z]=process.argv.join(" ")||"",n[Y]=process.versions.node,n[X]="nodejs",n[W]="Node.js",e=n,[2,this._getResourceAttributes(e,t)])}))}))},t.prototype._getResourceAttributes=function(t,e){return""===t[H]||""===t[z]||""===t[K]||""===t[Z]||""===t[Y]?(r.K.debug("ProcessDetector failed: Unable to find required process resources. "),ue.empty()):new ue(Se({},t))},t}(),me=(new ge,function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}),Oe=function(){function t(t){this._spanProcessors=t}return t.prototype.forceFlush=function(){var t,e,n=[];try{for(var r=me(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.forceFlush())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return new Promise((function(t){Promise.all(n).then((function(){t()})).catch((function(e){v(e||new Error("MultiSpanProcessor: forceFlush failed")),t()}))}))},t.prototype.onStart=function(t,e){var n,r;try{for(var o=me(this._spanProcessors),i=o.next();!i.done;i=o.next()){i.value.onStart(t,e)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},t.prototype.onEnd=function(t){var e,n;try{for(var r=me(this._spanProcessors),o=r.next();!o.done;o=r.next()){o.value.onEnd(t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.shutdown=function(){var t,e,n=[];try{for(var r=me(this._spanProcessors),o=r.next();!o.done;o=r.next()){var i=o.value;n.push(i.shutdown())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return new Promise((function(t,e){Promise.all(n).then((function(){t()}),e)}))},t}(),Ae=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}(),Re=function(){function t(t,e){this._exporter=t,this._finishedSpans=[];var n=w();this._maxExportBatchSize="number"==typeof(null==e?void 0:e.maxExportBatchSize)?e.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==e?void 0:e.maxQueueSize)?e.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==e?void 0:e.scheduledDelayMillis)?e.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==e?void 0:e.exportTimeoutMillis)?e.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Yt(this._shutdown,this)}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||0!=(t.spanContext().traceFlags&r.rh.SAMPLED)&&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){this._finishedSpans.length>=this._maxQueueSize||(this._finishedSpans.push(t),this._maybeStartTimer())},t.prototype._flushAll=function(){var t=this;return new Promise((function(e,n){for(var r=[],o=0,i=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize);o<i;o++)r.push(t._flushOneBatch());Promise.all(r).then((function(){e()})).catch(n)}))},t.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise((function(e,n){var o=setTimeout((function(){n(new Error("Timeout"))}),t._exportTimeoutMillis);r.Do.with(i(r.Do.active()),(function(){t._exporter.export(t._finishedSpans.splice(0,t._maxExportBatchSize),(function(t){var r;clearTimeout(o),t.code===et.SUCCESS?e():n(null!==(r=t.error)&&void 0!==r?r:new Error("BatchSpanProcessor: span export failed"))}))}))}))},t.prototype._maybeStartTimer=function(){var t=this;void 0===this._timer&&(this._timer=setTimeout((function(){t._flushOneBatch().then((function(){t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())})).catch((function(t){v(t)}))}),this._scheduledDelayMillis),this._timer)},t.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},t}(),be=(oe=function(t,e){return oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},oe(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}oe(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Ne=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.onInit(n),r}return be(e,t),e.prototype.onInit=function(t){var e=this;!0!==(null==t?void 0:t.disableAutoFlushOnDocumentHide)&&null!=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.prototype.onShutdown=function(){this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener)},e}(Re);!function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"}(ie||(ie={}));var Pe,Le,Ce=function(){function t(t){var e;void 0===t&&(t={}),this._registeredSpanProcessors=[],this._tracers=new Map;var n=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),r=new WeakMap;t.length>0;)n=Bt(n,t.shift(),0,r);return n}({},te,function(t){var e,n,r=Object.assign({},t.spanLimits);return null==r.attributeCountLimit&&null!=(null===(e=t.generalLimits)||void 0===e?void 0:e.attributeCountLimit)&&(r.attributeCountLimit=t.generalLimits.attributeCountLimit),null==r.attributeValueLengthLimit&&null!=(null===(n=t.generalLimits)||void 0===n?void 0:n.attributeValueLengthLimit)&&(r.attributeValueLengthLimit=t.generalLimits.attributeValueLengthLimit),Object.assign({},t,{spanLimits:r})}(t));this.resource=null!==(e=n.resource)&&void 0!==e?e:ue.empty(),this.resource=ue.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var r=this._buildExporterFromEnv();if(void 0!==r){var o=new Ne(r);this.activeSpanProcessor=o}else this.activeSpanProcessor=new Ae}return t.prototype.getTracer=function(t,e,n){var r=t+"@"+(e||"")+":"+((null==n?void 0:n.schemaUrl)||"");return this._tracers.has(r)||this._tracers.set(r,new re({name:t,version:e,schemaUrl:null==n?void 0:n.schemaUrl},this._config,this)),this._tracers.get(r)},t.prototype.addSpanProcessor=function(t){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((function(t){return r.K.error("Error while trying to shutdown current span processor",t)})),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new Oe(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(t){void 0===t&&(t={}),r.g4.setGlobalTracerProvider(this),void 0===t.propagator&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&r.Do.setGlobalContextManager(t.contextManager),t.propagator&&r.uA.setGlobalPropagator(t.propagator)},t.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,e=this._registeredSpanProcessors.map((function(e){return new Promise((function(n){var r,o=setTimeout((function(){n(new Error("Span processor did not completed within timeout period of "+t+" ms")),r=ie.timeout}),t);e.forceFlush().then((function(){clearTimeout(o),r!==ie.timeout&&(r=ie.resolved,n(r))})).catch((function(t){clearTimeout(o),r=ie.error,n(t)}))}))}));return new Promise((function(t,n){Promise.all(e).then((function(e){var r=e.filter((function(t){return t!==ie.resolved}));r.length>0?n(r):t()})).catch((function(t){return n([t])}))}))},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return null===(n=t._registeredPropagators.get(e))||void 0===n?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return null===(n=t._registeredExporters.get(e))||void 0===n?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var t=this,e=Array.from(new Set(w().OTEL_PROPAGATORS)),n=e.map((function(e){var n=t._getPropagator(e);return n||r.K.warn('Propagator "'+e+'" requested through environment variable is unavailable.'),n})).reduce((function(t,e){return e&&t.push(e),t}),[]);return 0===n.length?void 0:1===e.length?n[0]:new pt({propagators:n})},t.prototype._buildExporterFromEnv=function(){var t=w().OTEL_TRACES_EXPORTER;if("none"!==t){var e=this._getSpanExporter(t);return e||r.K.error('Exporter "'+t+'" requested through environment variable is unavailable.'),e}},t._registeredPropagators=new Map([["tracecontext",function(){return new yt}],["baggage",function(){return new l}]]),t._registeredExporters=new Map,t}(),we=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ie=(function(){function t(){}t.prototype.export=function(t,e){return this._sendSpans(t,e)},t.prototype.shutdown=function(){return this._sendSpans([]),Promise.resolve()},t.prototype._exportInfo=function(t){return{traceId:t.spanContext().traceId,parentId:t.parentSpanId,name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:ut(t.startTime),duration:ut(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}},t.prototype._sendSpans=function(t,e){var n,r;try{for(var o=we(t),i=o.next();!i.done;i=o.next()){var a=i.value;console.dir(this._exportInfo(a),{depth:3})}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}if(e)return e({code:et.SUCCESS})}}(),function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}),De=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Me=(function(){function t(){this._finishedSpans=[],this._stopped=!1}t.prototype.export=function(t,e){var n;if(this._stopped)return e({code:et.FAILED,error:new Error("Exporter has been stopped")});(n=this._finishedSpans).push.apply(n,De([],Ie(t),!1)),setTimeout((function(){return e({code:et.SUCCESS})}),0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans}}(),function(){function t(t){this._exporter=t,this._shutdownOnce=new Yt(this._shutdown,this)}t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.onStart=function(t,e){},t.prototype.onEnd=function(t){var e=this;this._shutdownOnce.isCalled||0!=(t.spanContext().traceFlags&r.rh.SAMPLED)&&r.Do.with(i(r.Do.active()),(function(){e._exporter.export([t],(function(t){var e;t.code!==et.SUCCESS&&v(null!==(e=t.error)&&void 0!==e?e:new Error("SimpleSpanProcessor: span export failed (status "+t+")"))}))}))},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._exporter.shutdown()}}(),function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}),Ue=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},xe=function(){function t(){this._enabled=!1,this._currentContext=r.Iu}return t.prototype._bindFunction=function(t,e){void 0===t&&(t=r.Iu);var n=this,o=function(){for(var r=this,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n.with(t,(function(){return e.apply(r,o)}))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),o},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=r.Iu,this._enabled=!1,this},t.prototype.enable=function(){return this._enabled||(this._enabled=!0,this._currentContext=r.Iu),this},t.prototype.with=function(t,e,n){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a=this._currentContext;this._currentContext=t||r.Iu;try{return e.call.apply(e,Ue([n],Me(o),!1))}finally{this._currentContext=a}},t}(),ke=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Be=function(t){function e(e){void 0===e&&(e={});var n=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 n}return ke(e,t),e.prototype.register=function(e){void 0===e&&(e={}),void 0===e.contextManager&&(e.contextManager=new xe),e.contextManager&&e.contextManager.enable(),t.prototype.register.call(this,e)},e}(Ce);function je(t,e){return e in t}function Ge(t,e,n){if(je(n,e)&&"number"==typeof n[e])return t.addEvent(e,n[e]),t}function Ve(t,e){Ge(t,Pe.FETCH_START,e),Ge(t,Pe.DOMAIN_LOOKUP_START,e),Ge(t,Pe.DOMAIN_LOOKUP_END,e),Ge(t,Pe.CONNECT_START,e),Ge(t,Pe.SECURE_CONNECTION_START,e),Ge(t,Pe.CONNECT_END,e),Ge(t,Pe.REQUEST_START,e),Ge(t,Pe.RESPONSE_START,e),Ge(t,Pe.RESPONSE_END,e);var n=e[Pe.ENCODED_BODY_SIZE];void 0!==n&&t.setAttribute(G,n);var r=e[Pe.DECODED_BODY_SIZE];void 0!==r&&n!==r&&t.setAttribute(V,r)}function Fe(t){return t.slice().sort((function(t,e){var n=t[Pe.FETCH_START],r=e[Pe.FETCH_START];return n>r?1:n<r?-1:0}))}function He(t,e,n,r,o,i){void 0===o&&(o=new WeakSet);var a=ze(t),s=function(t,e,n,r,o,i){var a=st(e),s=st(n),u=r.filter((function(e){var n=st(at(e[Pe.FETCH_START])),r=st(at(e[Pe.RESPONSE_END]));return e.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&e.name===t&&n>=a&&r<=s}));u.length>0&&(u=u.filter((function(t){return!o.has(t)})));return u}(t=a.toString(),e,n,r,o,i);if(0===s.length)return{mainRequest:void 0};if(1===s.length)return{mainRequest:s[0]};var u=Fe(s);if(a.origin!==location.origin&&u.length>1){var c=u[0],l=function(t,e,n){for(var r,o=st(n),i=st(at(e)),a=t[1],s=t.length,u=1;u<s;u++){var c=t[u],l=st(at(c[Pe.FETCH_START])),p=o-st(at(c[Pe.RESPONSE_END]));l>=i&&(!r||p<r)&&(r=p,a=c)}return a}(u,c[Pe.RESPONSE_END],n),p=c[Pe.RESPONSE_END];return l[Pe.FETCH_START]<p&&(l=c,c=void 0),{corsPreFlightRequest:c,mainRequest:l}}return{mainRequest:s[0]}}function ze(t){if("function"==typeof URL)return new URL(t,location.href);var e=(Le||(Le=document.createElement("a")),Le);return e.href=t,e}function Ke(t){return ze(t).href}function Ze(t,e){if(t.nodeType===Node.DOCUMENT_NODE)return"/";var n=function(t,e){var n=t.nodeType,r=function(t){if(!t.parentNode)return 0;var e=[t.nodeType];t.nodeType===Node.CDATA_SECTION_NODE&&e.push(Node.TEXT_NODE);var n=Array.from(t.parentNode.childNodes);if((n=n.filter((function(n){var r=n.localName;return e.indexOf(n.nodeType)>=0&&r===t.localName}))).length>=1)return n.indexOf(t)+1;return 0}(t),o="";if(n===Node.ELEMENT_NODE){var i=t.getAttribute("id");if(e&&i)return'//*[@id="'+i+'"]';o=t.localName}else if(n===Node.TEXT_NODE||n===Node.CDATA_SECTION_NODE)o="text()";else{if(n!==Node.COMMENT_NODE)return"";o="comment()"}if(o&&r>1)return"/"+o+"["+r+"]";return"/"+o}(t,e);if(e&&n.indexOf("@id")>0)return n;var r="";return t.parentNode&&(r+=Ze(t.parentNode,!1)),r+=n}function Xe(t,e){var n=e||[];return("string"==typeof n||n instanceof RegExp)&&(n=[n]),ze(t).origin===location.origin||n.some((function(e){return zt(t,e)}))}!function(t){t.CONNECT_END="connectEnd",t.CONNECT_START="connectStart",t.DECODED_BODY_SIZE="decodedBodySize",t.DOM_COMPLETE="domComplete",t.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",t.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",t.DOM_INTERACTIVE="domInteractive",t.DOMAIN_LOOKUP_END="domainLookupEnd",t.DOMAIN_LOOKUP_START="domainLookupStart",t.ENCODED_BODY_SIZE="encodedBodySize",t.FETCH_START="fetchStart",t.LOAD_EVENT_END="loadEventEnd",t.LOAD_EVENT_START="loadEventStart",t.NAVIGATION_START="navigationStart",t.REDIRECT_END="redirectEnd",t.REDIRECT_START="redirectStart",t.REQUEST_START="requestStart",t.RESPONSE_END="responseEnd",t.RESPONSE_START="responseStart",t.SECURE_CONNECTION_START="secureConnectionStart",t.UNLOAD_EVENT_END="unloadEventEnd",t.UNLOAD_EVENT_START="unloadEventStart"}(Pe||(Pe={}))},871:(t,e,n)=>{"use strict";n.r(e),n.d(e,{AwsEcsLaunchtypeValues:()=>y,CloudPlatformValues:()=>v,CloudProviderValues:()=>S,DbCassandraConsistencyLevelValues:()=>i,DbSystemValues:()=>o,FaasDocumentOperationValues:()=>s,FaasInvokedProviderValues:()=>u,FaasTriggerValues:()=>a,HostArchValues:()=>g,HttpFlavorValues:()=>f,MessageTypeValues:()=>E,MessagingDestinationKindValues:()=>_,MessagingOperationValues:()=>h,NetHostConnectionSubtypeValues:()=>p,NetHostConnectionTypeValues:()=>l,NetTransportValues:()=>c,OsTypeValues:()=>m,RpcGrpcStatusCodeValues:()=>d,SemanticAttributes:()=>r,SemanticResourceAttributes:()=>T,TelemetrySdkLanguageValues:()=>O});var r={AWS_LAMBDA_INVOKED_ARN:"aws.lambda.invoked_arn",DB_SYSTEM:"db.system",DB_CONNECTION_STRING:"db.connection_string",DB_USER:"db.user",DB_JDBC_DRIVER_CLASSNAME:"db.jdbc.driver_classname",DB_NAME:"db.name",DB_STATEMENT:"db.statement",DB_OPERATION:"db.operation",DB_MSSQL_INSTANCE_NAME:"db.mssql.instance_name",DB_CASSANDRA_KEYSPACE:"db.cassandra.keyspace",DB_CASSANDRA_PAGE_SIZE:"db.cassandra.page_size",DB_CASSANDRA_CONSISTENCY_LEVEL:"db.cassandra.consistency_level",DB_CASSANDRA_TABLE:"db.cassandra.table",DB_CASSANDRA_IDEMPOTENCE:"db.cassandra.idempotence",DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:"db.cassandra.speculative_execution_count",DB_CASSANDRA_COORDINATOR_ID:"db.cassandra.coordinator.id",DB_CASSANDRA_COORDINATOR_DC:"db.cassandra.coordinator.dc",DB_HBASE_NAMESPACE:"db.hbase.namespace",DB_REDIS_DATABASE_INDEX:"db.redis.database_index",DB_MONGODB_COLLECTION:"db.mongodb.collection",DB_SQL_TABLE:"db.sql.table",EXCEPTION_TYPE:"exception.type",EXCEPTION_MESSAGE:"exception.message",EXCEPTION_STACKTRACE:"exception.stacktrace",EXCEPTION_ESCAPED:"exception.escaped",FAAS_TRIGGER:"faas.trigger",FAAS_EXECUTION:"faas.execution",FAAS_DOCUMENT_COLLECTION:"faas.document.collection",FAAS_DOCUMENT_OPERATION:"faas.document.operation",FAAS_DOCUMENT_TIME:"faas.document.time",FAAS_DOCUMENT_NAME:"faas.document.name",FAAS_TIME:"faas.time",FAAS_CRON:"faas.cron",FAAS_COLDSTART:"faas.coldstart",FAAS_INVOKED_NAME:"faas.invoked_name",FAAS_INVOKED_PROVIDER:"faas.invoked_provider",FAAS_INVOKED_REGION:"faas.invoked_region",NET_TRANSPORT:"net.transport",NET_PEER_IP:"net.peer.ip",NET_PEER_PORT:"net.peer.port",NET_PEER_NAME:"net.peer.name",NET_HOST_IP:"net.host.ip",NET_HOST_PORT:"net.host.port",NET_HOST_NAME:"net.host.name",NET_HOST_CONNECTION_TYPE:"net.host.connection.type",NET_HOST_CONNECTION_SUBTYPE:"net.host.connection.subtype",NET_HOST_CARRIER_NAME:"net.host.carrier.name",NET_HOST_CARRIER_MCC:"net.host.carrier.mcc",NET_HOST_CARRIER_MNC:"net.host.carrier.mnc",NET_HOST_CARRIER_ICC:"net.host.carrier.icc",PEER_SERVICE:"peer.service",ENDUSER_ID:"enduser.id",ENDUSER_ROLE:"enduser.role",ENDUSER_SCOPE:"enduser.scope",THREAD_ID:"thread.id",THREAD_NAME:"thread.name",CODE_FUNCTION:"code.function",CODE_NAMESPACE:"code.namespace",CODE_FILEPATH:"code.filepath",CODE_LINENO:"code.lineno",HTTP_METHOD:"http.method",HTTP_URL:"http.url",HTTP_TARGET:"http.target",HTTP_HOST:"http.host",HTTP_SCHEME:"http.scheme",HTTP_STATUS_CODE:"http.status_code",HTTP_FLAVOR:"http.flavor",HTTP_USER_AGENT:"http.user_agent",HTTP_REQUEST_CONTENT_LENGTH:"http.request_content_length",HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:"http.request_content_length_uncompressed",HTTP_RESPONSE_CONTENT_LENGTH:"http.response_content_length",HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:"http.response_content_length_uncompressed",HTTP_SERVER_NAME:"http.server_name",HTTP_ROUTE:"http.route",HTTP_CLIENT_IP:"http.client_ip",AWS_DYNAMODB_TABLE_NAMES:"aws.dynamodb.table_names",AWS_DYNAMODB_CONSUMED_CAPACITY:"aws.dynamodb.consumed_capacity",AWS_DYNAMODB_ITEM_COLLECTION_METRICS:"aws.dynamodb.item_collection_metrics",AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:"aws.dynamodb.provisioned_read_capacity",AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:"aws.dynamodb.provisioned_write_capacity",AWS_DYNAMODB_CONSISTENT_READ:"aws.dynamodb.consistent_read",AWS_DYNAMODB_PROJECTION:"aws.dynamodb.projection",AWS_DYNAMODB_LIMIT:"aws.dynamodb.limit",AWS_DYNAMODB_ATTRIBUTES_TO_GET:"aws.dynamodb.attributes_to_get",AWS_DYNAMODB_INDEX_NAME:"aws.dynamodb.index_name",AWS_DYNAMODB_SELECT:"aws.dynamodb.select",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:"aws.dynamodb.global_secondary_indexes",AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:"aws.dynamodb.local_secondary_indexes",AWS_DYNAMODB_EXCLUSIVE_START_TABLE:"aws.dynamodb.exclusive_start_table",AWS_DYNAMODB_TABLE_COUNT:"aws.dynamodb.table_count",AWS_DYNAMODB_SCAN_FORWARD:"aws.dynamodb.scan_forward",AWS_DYNAMODB_SEGMENT:"aws.dynamodb.segment",AWS_DYNAMODB_TOTAL_SEGMENTS:"aws.dynamodb.total_segments",AWS_DYNAMODB_COUNT:"aws.dynamodb.count",AWS_DYNAMODB_SCANNED_COUNT:"aws.dynamodb.scanned_count",AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:"aws.dynamodb.attribute_definitions",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:"aws.dynamodb.global_secondary_index_updates",MESSAGING_SYSTEM:"messaging.system",MESSAGING_DESTINATION:"messaging.destination",MESSAGING_DESTINATION_KIND:"messaging.destination_kind",MESSAGING_TEMP_DESTINATION:"messaging.temp_destination",MESSAGING_PROTOCOL:"messaging.protocol",MESSAGING_PROTOCOL_VERSION:"messaging.protocol_version",MESSAGING_URL:"messaging.url",MESSAGING_MESSAGE_ID:"messaging.message_id",MESSAGING_CONVERSATION_ID:"messaging.conversation_id",MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:"messaging.message_payload_size_bytes",MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:"messaging.message_payload_compressed_size_bytes",MESSAGING_OPERATION:"messaging.operation",MESSAGING_CONSUMER_ID:"messaging.consumer_id",MESSAGING_RABBITMQ_ROUTING_KEY:"messaging.rabbitmq.routing_key",MESSAGING_KAFKA_MESSAGE_KEY:"messaging.kafka.message_key",MESSAGING_KAFKA_CONSUMER_GROUP:"messaging.kafka.consumer_group",MESSAGING_KAFKA_CLIENT_ID:"messaging.kafka.client_id",MESSAGING_KAFKA_PARTITION:"messaging.kafka.partition",MESSAGING_KAFKA_TOMBSTONE:"messaging.kafka.tombstone",RPC_SYSTEM:"rpc.system",RPC_SERVICE:"rpc.service",RPC_METHOD:"rpc.method",RPC_GRPC_STATUS_CODE:"rpc.grpc.status_code",RPC_JSONRPC_VERSION:"rpc.jsonrpc.version",RPC_JSONRPC_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message",MESSAGE_TYPE:"message.type",MESSAGE_ID:"message.id",MESSAGE_COMPRESSED_SIZE:"message.compressed_size",MESSAGE_UNCOMPRESSED_SIZE:"message.uncompressed_size"},o={OTHER_SQL:"other_sql",MSSQL:"mssql",MYSQL:"mysql",ORACLE:"oracle",DB2:"db2",POSTGRESQL:"postgresql",REDSHIFT:"redshift",HIVE:"hive",CLOUDSCAPE:"cloudscape",HSQLDB:"hsqldb",PROGRESS:"progress",MAXDB:"maxdb",HANADB:"hanadb",INGRES:"ingres",FIRSTSQL:"firstsql",EDB:"edb",CACHE:"cache",ADABAS:"adabas",FIREBIRD:"firebird",DERBY:"derby",FILEMAKER:"filemaker",INFORMIX:"informix",INSTANTDB:"instantdb",INTERBASE:"interbase",MARIADB:"mariadb",NETEZZA:"netezza",PERVASIVE:"pervasive",POINTBASE:"pointbase",SQLITE:"sqlite",SYBASE:"sybase",TERADATA:"teradata",VERTICA:"vertica",H2:"h2",COLDFUSION:"coldfusion",CASSANDRA:"cassandra",HBASE:"hbase",MONGODB:"mongodb",REDIS:"redis",COUCHBASE:"couchbase",COUCHDB:"couchdb",COSMOSDB:"cosmosdb",DYNAMODB:"dynamodb",NEO4J:"neo4j",GEODE:"geode",ELASTICSEARCH:"elasticsearch",MEMCACHED:"memcached",COCKROACHDB:"cockroachdb"},i={ALL:"all",EACH_QUORUM:"each_quorum",QUORUM:"quorum",LOCAL_QUORUM:"local_quorum",ONE:"one",TWO:"two",THREE:"three",LOCAL_ONE:"local_one",ANY:"any",SERIAL:"serial",LOCAL_SERIAL:"local_serial"},a={DATASOURCE:"datasource",HTTP:"http",PUBSUB:"pubsub",TIMER:"timer",OTHER:"other"},s={INSERT:"insert",EDIT:"edit",DELETE:"delete"},u={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"},c={IP_TCP:"ip_tcp",IP_UDP:"ip_udp",IP:"ip",UNIX:"unix",PIPE:"pipe",INPROC:"inproc",OTHER:"other"},l={WIFI:"wifi",WIRED:"wired",CELL:"cell",UNAVAILABLE:"unavailable",UNKNOWN:"unknown"},p={GPRS:"gprs",EDGE:"edge",UMTS:"umts",CDMA:"cdma",EVDO_0:"evdo_0",EVDO_A:"evdo_a",CDMA2000_1XRTT:"cdma2000_1xrtt",HSDPA:"hsdpa",HSUPA:"hsupa",HSPA:"hspa",IDEN:"iden",EVDO_B:"evdo_b",LTE:"lte",EHRPD:"ehrpd",HSPAP:"hspap",GSM:"gsm",TD_SCDMA:"td_scdma",IWLAN:"iwlan",NR:"nr",NRNSA:"nrnsa",LTE_CA:"lte_ca"},f={HTTP_1_0:"1.0",HTTP_1_1:"1.1",HTTP_2_0:"2.0",SPDY:"SPDY",QUIC:"QUIC"},_={QUEUE:"queue",TOPIC:"topic"},h={RECEIVE:"receive",PROCESS:"process"},d={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15,UNAUTHENTICATED:16},E={SENT:"SENT",RECEIVED:"RECEIVED"},T={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},S={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"},v={ALIBABA_CLOUD_ECS:"alibaba_cloud_ecs",ALIBABA_CLOUD_FC:"alibaba_cloud_fc",AWS_EC2:"aws_ec2",AWS_ECS:"aws_ecs",AWS_EKS:"aws_eks",AWS_LAMBDA:"aws_lambda",AWS_ELASTIC_BEANSTALK:"aws_elastic_beanstalk",AZURE_VM:"azure_vm",AZURE_CONTAINER_INSTANCES:"azure_container_instances",AZURE_AKS:"azure_aks",AZURE_FUNCTIONS:"azure_functions",AZURE_APP_SERVICE:"azure_app_service",GCP_COMPUTE_ENGINE:"gcp_compute_engine",GCP_CLOUD_RUN:"gcp_cloud_run",GCP_KUBERNETES_ENGINE:"gcp_kubernetes_engine",GCP_CLOUD_FUNCTIONS:"gcp_cloud_functions",GCP_APP_ENGINE:"gcp_app_engine"},y={EC2:"ec2",FARGATE:"fargate"},g={AMD64:"amd64",ARM32:"arm32",ARM64:"arm64",IA64:"ia64",PPC32:"ppc32",PPC64:"ppc64",X86:"x86"},m={WINDOWS:"windows",LINUX:"linux",DARWIN:"darwin",FREEBSD:"freebsd",NETBSD:"netbsd",OPENBSD:"openbsd",DRAGONFLYBSD:"dragonflybsd",HPUX:"hpux",AIX:"aix",SOLARIS:"solaris",Z_OS:"z_os"},O={CPP:"cpp",DOTNET:"dotnet",ERLANG:"erlang",GO:"go",JAVA:"java",NODEJS:"nodejs",PHP:"php",PYTHON:"python",RUBY:"ruby",WEBJS:"webjs"}},386:(t,e,n)=>{"use strict";n.r(e),n.d(e,{BasicTracerProvider:()=>jt,BatchSpanProcessor:()=>kt,ConsoleSpanExporter:()=>Gt,ForceFlushState:()=>wt,InMemorySpanExporter:()=>Vt,NoopSpanProcessor:()=>Mt,SimpleSpanProcessor:()=>Ft,Span:()=>Ot,Tracer:()=>Lt});var r=n(370),o=(0,r.Yz)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function i(t){return t.setValue(o,!0)}function a(t){return!0===t.getValue(o)}var s="baggage",u=function(t){var e=t.split(";");if(!(e.length<=0)){var n=e.shift();if(n){var o=n.split("=");if(2===o.length){var i,a=decodeURIComponent(o[0].trim()),s=decodeURIComponent(o[1].trim());return e.length>0&&(i=(0,r.uc)(e.join(";"))),{key:a,value:s,metadata:i}}}}},c=function(){function t(){}return t.prototype.inject=function(t,e,n){var o=r.uA.getBaggage(t);if(o&&!a(t)){var i=function(t){return t.getAllEntries().map((function(t){var e=t[0],n=t[1];return encodeURIComponent(e)+"="+encodeURIComponent(n.value)}))}(o).filter((function(t){return t.length<=4096})).slice(0,180),u=function(t){return t.reduce((function(t,e){var n=t+(""!==t?",":"")+e;return n.length>8192?t:n}),"")}(i);u.length>0&&n.set(e,s,u)}},t.prototype.extract=function(t,e,n){var o=n.get(e,s);if(!o)return t;var i={};return 0===o.length?t:(o.split(",").forEach((function(t){var e=u(t);if(e){var n={value:e.value};e.metadata&&(n.metadata=e.metadata),i[e.key]=n}})),0===Object.entries(i).length?t:r.uA.setBaggage(t,r.uA.createBaggage(i)))},t.prototype.fields=function(){return[s]},t}();function l(t){return null==t||(Array.isArray(t)?function(t){for(var e,n=0,r=t;n<r.length;n++){var o=r[n];if(null!=o){if(!e){if(p(o)){e=typeof o;continue}return!1}if(typeof o!==e)return!1}}return!0}(t):p(t))}function p(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var f=function(t){r.K.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},n=t;null!==n;)Object.getOwnPropertyNames(n).forEach((function(t){if(!e[t]){var r=n[t];r&&(e[t]=String(r))}})),n=Object.getPrototypeOf(n);return e}(t))}(t))};var _,h=function(t){try{f(t)}catch(t){}};!function(t){t.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 d=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT"];function E(t){return d.indexOf(t)>-1}var T=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function S(t){return T.indexOf(t)>-1}var v={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_EXPORTER_JAEGER_AGENT_HOST:"",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_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:r.nV.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:_.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:""};function y(t,e,n,r,o){if(void 0===r&&(r=-1/0),void 0===o&&(o=1/0),void 0!==n[t]){var i=Number(n[t]);isNaN(i)||(e[t]=i<r?r:i>o?o:i)}}function g(t,e,n,r){void 0===r&&(r=",");var o=n[t];"string"==typeof o&&(e[t]=o.split(r).map((function(t){return t.trim()})))}var m={ALL:r.nV.ALL,VERBOSE:r.nV.VERBOSE,DEBUG:r.nV.DEBUG,INFO:r.nV.INFO,WARN:r.nV.WARN,ERROR:r.nV.ERROR,NONE:r.nV.NONE};function O(t,e,n){var r=n[t];if("string"==typeof r){var o=m[r.toUpperCase()];null!=o&&(e[t]=o)}}function A(){var t=function(t){var e={};for(var n in v){var r=n;if("OTEL_LOG_LEVEL"===r)O(r,e,t);else if(E(r))y(r,e,t);else if(S(r))g(r,e,t);else{var o=t[r];null!=o&&(e[r]=String(o))}}return e}(window);return Object.assign({},v,t)}var R=function(){this.generateTraceId=N(16),this.generateSpanId=N(8)},b=Array(32);function N(t){return function(){for(var e=0;e<2*t;e++)b[e]=Math.floor(16*Math.random())+48,b[e]>=58&&(b[e]+=39);return String.fromCharCode.apply(null,b.slice(0,2*t))}}var P,L,C,w,I,D,M,U,x,k,B=performance,j="exception.type",G="exception.message",V="exception.stacktrace";!function(t){t.OTHER_SQL="other_sql",t.MSSQL="mssql",t.MYSQL="mysql",t.ORACLE="oracle",t.DB2="db2",t.POSTGRESQL="postgresql",t.REDSHIFT="redshift",t.HIVE="hive",t.CLOUDSCAPE="cloudscape",t.HSQLDB="hsqldb",t.PROGRESS="progress",t.MAXDB="maxdb",t.HANADB="hanadb",t.INGRES="ingres",t.FIRSTSQL="firstsql",t.EDB="edb",t.CACHE="cache",t.ADABAS="adabas",t.FIREBIRD="firebird",t.DERBY="derby",t.FILEMAKER="filemaker",t.INFORMIX="informix",t.INSTANTDB="instantdb",t.INTERBASE="interbase",t.MARIADB="mariadb",t.NETEZZA="netezza",t.PERVASIVE="pervasive",t.POINTBASE="pointbase",t.SQLITE="sqlite",t.SYBASE="sybase",t.TERADATA="teradata",t.VERTICA="vertica",t.H2="h2",t.COLDFUSION="coldfusion",t.CASSANDRA="cassandra",t.HBASE="hbase",t.MONGODB="mongodb",t.REDIS="redis",t.COUCHBASE="couchbase",t.COUCHDB="couchdb",t.COSMOSDB="cosmosdb",t.DYNAMODB="dynamodb",t.NEO4J="neo4j",t.GEODE="geode",t.ELASTICSEARCH="elasticsearch",t.MEMCACHED="memcached",t.COCKROACHDB="cockroachdb"}(P||(P={})),function(t){t.ALL="all",t.EACH_QUORUM="each_quorum",t.QUORUM="quorum",t.LOCAL_QUORUM="local_quorum",t.ONE="one",t.TWO="two",t.THREE="three",t.LOCAL_ONE="local_one",t.ANY="any",t.SERIAL="serial",t.LOCAL_SERIAL="local_serial"}(L||(L={})),function(t){t.DATASOURCE="datasource",t.HTTP="http",t.PUBSUB="pubsub",t.TIMER="timer",t.OTHER="other"}(C||(C={})),function(t){t.INSERT="insert",t.EDIT="edit",t.DELETE="delete"}(w||(w={})),function(t){t.AWS="aws",t.AZURE="azure",t.GCP="gcp"}(I||(I={})),function(t){t.IP_TCP="ip_tcp",t.IP_UDP="ip_udp",t.IP="ip",t.UNIX="unix",t.PIPE="pipe",t.INPROC="inproc",t.OTHER="other"}(D||(D={})),function(t){t.HTTP_1_0="1.0",t.HTTP_1_1="1.1",t.HTTP_2_0="2.0",t.SPDY="SPDY",t.QUIC="QUIC"}(M||(M={})),function(t){t.QUEUE="queue",t.TOPIC="topic"}(U||(U={})),function(t){t.RECEIVE="receive",t.PROCESS="process"}(x||(x={})),function(t){t[t.OK=0]="OK",t[t.CANCELLED=1]="CANCELLED",t[t.UNKNOWN=2]="UNKNOWN",t[t.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",t[t.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",t[t.NOT_FOUND=5]="NOT_FOUND",t[t.ALREADY_EXISTS=6]="ALREADY_EXISTS",t[t.PERMISSION_DENIED=7]="PERMISSION_DENIED",t[t.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",t[t.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",t[t.ABORTED=10]="ABORTED",t[t.OUT_OF_RANGE=11]="OUT_OF_RANGE",t[t.UNIMPLEMENTED=12]="UNIMPLEMENTED",t[t.INTERNAL=13]="INTERNAL",t[t.UNAVAILABLE=14]="UNAVAILABLE",t[t.DATA_LOSS=15]="DATA_LOSS",t[t.UNAUTHENTICATED=16]="UNAUTHENTICATED"}(k||(k={}));var F,H,z,K,Z,X,Y,W="process.runtime.name",q="service.name",Q="telemetry.sdk.name",J="telemetry.sdk.language",$="telemetry.sdk.version";!function(t){t.AWS="aws",t.AZURE="azure",t.GCP="gcp"}(F||(F={})),function(t){t.AWS_EC2="aws_ec2",t.AWS_ECS="aws_ecs",t.AWS_EKS="aws_eks",t.AWS_LAMBDA="aws_lambda",t.AWS_ELASTIC_BEANSTALK="aws_elastic_beanstalk",t.AZURE_VM="azure_vm",t.AZURE_CONTAINER_INSTANCES="azure_container_instances",t.AZURE_AKS="azure_aks",t.AZURE_FUNCTIONS="azure_functions",t.AZURE_APP_SERVICE="azure_app_service",t.GCP_COMPUTE_ENGINE="gcp_compute_engine",t.GCP_CLOUD_RUN="gcp_cloud_run",t.GCP_KUBERNETES_ENGINE="gcp_kubernetes_engine",t.GCP_CLOUD_FUNCTIONS="gcp_cloud_functions",t.GCP_APP_ENGINE="gcp_app_engine"}(H||(H={})),function(t){t.EC2="ec2",t.FARGATE="fargate"}(z||(z={})),function(t){t.AMD64="amd64",t.ARM32="arm32",t.ARM64="arm64",t.IA64="ia64",t.PPC32="ppc32",t.PPC64="ppc64",t.X86="x86"}(K||(K={})),function(t){t.WINDOWS="windows",t.LINUX="linux",t.DARWIN="darwin",t.FREEBSD="freebsd",t.NETBSD="netbsd",t.OPENBSD="openbsd",t.DRAGONFLYBSD="dragonflybsd",t.HPUX="hpux",t.AIX="aix",t.SOLARIS="solaris",t.Z_OS="z_os"}(Z||(Z={})),function(t){t.CPP="cpp",t.DOTNET="dotnet",t.ERLANG="erlang",t.GO="go",t.JAVA="java",t.NODEJS="nodejs",t.PHP="php",t.PYTHON="python",t.RUBY="ruby",t.WEBJS="webjs"}(X||(X={}));var tt=((Y={})[Q]="opentelemetry",Y[W]="browser",Y[J]=X.WEBJS,Y[$]="0.24.0",Y);var et,nt=Math.pow(10,9);function rt(t){var e=t/1e3,n=Math.trunc(e);return[n,Number((e-n).toFixed(9))*nt]}function ot(){var t=B.timeOrigin;if("number"!=typeof t){var e=B;t=e.timing&&e.timing.fetchStart}return t}function it(t){var e=rt(ot()),n=rt("number"==typeof t?t:B.now()),r=e[0]+n[0],o=e[1]+n[1];return o>nt&&(o-=nt,r+=1),[r,o]}function at(t){if(ut(t))return t;if("number"==typeof t)return t<ot()?it(t):rt(t);if(t instanceof Date)return rt(t.getTime());throw TypeError("Invalid input type")}function st(t){return Math.round(1e6*t[0]+t[1]/1e3)}function ut(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(et||(et={}));var ct=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?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,n){for(var o=0,i=this._propagators;o<i.length;o++){var a=i[o];try{a.inject(t,e,n)}catch(t){r.K.warn("Failed to inject with "+a.constructor.name+". Err: "+t.message)}}},t.prototype.extract=function(t,e,n){return this._propagators.reduce((function(t,o){try{return o.extract(t,e,n)}catch(t){r.K.warn("Failed to inject with "+o.constructor.name+". Err: "+t.message)}return t}),t)},t.prototype.fields=function(){return this._fields.slice()},t}(),lt=new RegExp("^(?:[a-z][_0-9a-z-*/]{0,255}|[a-z0-9][_0-9a-z-*/]{0,240}@[a-z][_0-9a-z-*/]{0,13})$"),pt=/^[ -~]{0,255}[!-~]$/,ft=/,|=/;var _t=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n},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,n){return e.push(n+"="+t.get(n)),e}),[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce((function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);(function(t){return lt.test(t)})(o)&&function(t){return pt.test(t)&&!ft.test(t)}(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}(),ht="traceparent",dt="tracestate",Et=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var Tt,St=function(){function t(){}return t.prototype.inject=function(t,e,n){var o=r.g4.getSpanContext(t);if(o&&!a(t)&&(0,r.BM)(o)){var i="00-"+o.traceId+"-"+o.spanId+"-0"+Number(o.traceFlags||r.rh.NONE).toString(16);n.set(e,ht,i),o.traceState&&n.set(e,dt,o.traceState.serialize())}},t.prototype.extract=function(t,e,n){var o=n.get(e,ht);if(!o)return t;var i=Array.isArray(o)?o[0]:o;if("string"!=typeof i)return t;var a=function(t){var e=Et.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}(i);if(!a)return t;a.isRemote=!0;var s=n.get(e,dt);if(s){var u=Array.isArray(s)?s.join(","):s;a.traceState=new _t("string"==typeof u?u:void 0)}return r.g4.setSpanContext(t,a)},t.prototype.fields=function(){return[ht,dt]},t}();(0,r.Yz)("OpenTelemetry SDK Context Key RPC_METADATA");!function(t){t.HTTP="http"}(Tt||(Tt={}));var vt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:r.Uz.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),yt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:r.Uz.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),gt=function(){function t(t){var e,n,r,o;this._root=t.root,this._root||(h(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new yt),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new yt,this._remoteParentNotSampled=null!==(n=t.remoteParentNotSampled)&&void 0!==n?n:new vt,this._localParentSampled=null!==(r=t.localParentSampled)&&void 0!==r?r:new yt,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new vt}return t.prototype.shouldSample=function(t,e,n,o,i,a){var s=r.g4.getSpanContext(t);return s&&(0,r.BM)(s)?s.isRemote?s.traceFlags&r.rh.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,o,i,a):this._remoteParentNotSampled.shouldSample(t,e,n,o,i,a):s.traceFlags&r.rh.SAMPLED?this._localParentSampled.shouldSample(t,e,n,o,i,a):this._localParentNotSampled.shouldSample(t,e,n,o,i,a):this._root.shouldSample(t,e,n,o,i,a)},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}(),mt=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:(0,r.jN)(e)&&this._accumulate(e)<this._upperBound?r.Uz.RECORD_AND_SAMPLED:r.Uz.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,n=0;n<t.length/8;n++){var r=8*n;e=(e^parseInt(t.slice(r,r+8),16))>>>0}return e},t}(),Ot=function(){function t(t,e,n,o,i,a,s,u){void 0===s&&(s=[]),void 0===u&&(u=it()),this.attributes={},this.links=[],this.events=[],this.status={code:r.Qn.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=o,this.parentSpanId=a,this.kind=i,this.links=s,this.startTime=at(u),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),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()?this:0===t.length?(r.K.warn("Invalid attribute key: "+t),this):l(e)?(Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)||(this.attributes[t]=e),this):(r.K.warn("Invalid attribute value set for key: "+t),this)},t.prototype.setAttributes=function(t){for(var e=0,n=Object.entries(t);e<n.length;e++){var r=n[e],o=r[0],i=r[1];this.setAttribute(o,i)}return this},t.prototype.addEvent=function(t,e,n){return this._isSpanEnded()||(this.events.length>=this._spanLimits.eventCountLimit&&(r.K.warn("Dropping extra events."),this.events.shift()),(ut(o=e)||"number"==typeof o||o instanceof Date)&&(void 0===n&&(n=e),e=void 0),void 0===n&&(n=it()),this.events.push({name:t,attributes:e,time:at(n)})),this;var o},t.prototype.setStatus=function(t){return this._isSpanEnded()||(this.status=t),this},t.prototype.updateName=function(t){return this._isSpanEnded()||(this.name=t),this},t.prototype.end=function(t){void 0===t&&(t=it()),this._isSpanEnded()?r.K.error("You can only call end() on a span once."):(this._ended=!0,this.endTime=at(t),this._duration=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=nt),[n,r]}(this.startTime,this.endTime),this._duration[0]<0&&r.K.warn("Inconsistent start and end time, startTime > endTime",this.startTime,this.endTime),this._spanProcessor.onEnd(this))},t.prototype.isRecording=function(){return!1===this._ended},t.prototype.recordException=function(t,e){void 0===e&&(e=it());var n={};"string"==typeof t?n[G]=t:t&&(t.code?n[j]=t.code.toString():t.name&&(n[j]=t.name),t.message&&(n[G]=t.message),t.stack&&(n[V]=t.stack)),n[j]||n[G]?this.addEvent("exception",n,e):r.K.warn("Failed to record an exception "+t)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&r.K.warn("Can not execute the operation on ended Span {traceId: %s, spanId: %s}",this._spanContext.traceId,this._spanContext.spanId),this._ended},t}(),At=A(),Rt=_.AlwaysOn,bt={sampler:Nt(At),forceFlushTimeoutMillis:3e4,spanLimits:{attributeCountLimit:A().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:A().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:A().OTEL_SPAN_EVENT_COUNT_LIMIT}};function Nt(t){switch(void 0===t&&(t=A()),t.OTEL_TRACES_SAMPLER){case _.AlwaysOn:return new yt;case _.AlwaysOff:return new vt;case _.ParentBasedAlwaysOn:return new gt({root:new yt});case _.ParentBasedAlwaysOff:return new gt({root:new vt});case _.TraceIdRatio:return new mt(Pt(t));case _.ParentBasedTraceIdRatio:return new gt({root:new mt(Pt(t))});default:return r.K.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Rt+'".'),new yt}}function Pt(t){if(void 0===t.OTEL_TRACES_SAMPLER_ARG||""===t.OTEL_TRACES_SAMPLER_ARG)return r.K.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to 1."),1;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(r.K.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to 1."),1):e<0||e>1?(r.K.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 Lt=function(){function t(t,e,n){this._tracerProvider=n;var r,o,i,a=(r=e,o={sampler:Nt()},(i=Object.assign({},bt,o,r)).spanLimits=Object.assign({},bt.spanLimits,r.spanLimits||{}),i);this._sampler=a.sampler,this._spanLimits=a.spanLimits,this._idGenerator=e.idGenerator||new R,this.resource=n.resource,this.instrumentationLibrary=t}return t.prototype.startSpan=function(t,e,n){var o,i;if(void 0===e&&(e={}),void 0===n&&(n=r.Do.active()),a(n))return r.K.debug("Instrumentation suppressed, returning Noop Span"),r.g4.wrapSpanContext(r.Rr);var s,u,c,p=function(t,e){return t.root?void 0:r.g4.getSpanContext(e)}(e,n),f=this._idGenerator.generateSpanId();p&&r.g4.isSpanContextValid(p)?(s=p.traceId,u=p.traceState,c=p.spanId):s=this._idGenerator.generateTraceId();var _=null!==(o=e.kind)&&void 0!==o?o:r.MU.INTERNAL,h=null!==(i=e.links)&&void 0!==i?i:[],d=function(t){var e={};if(null==t||"object"!=typeof t)return e;for(var n=0,r=Object.entries(t);n<r.length;n++){var o=r[n],i=o[0],a=o[1];l(a)&&(Array.isArray(a)?e[i]=a.slice():e[i]=a)}return e}(e.attributes),E=this._sampler.shouldSample(e.root?r.g4.setSpanContext(n,r.Rr):n,s,t,_,d,h),T={traceId:s,spanId:f,traceFlags:E.decision===r.Uz.RECORD_AND_SAMPLED?r.rh.SAMPLED:r.rh.NONE,traceState:u};if(E.decision===r.Uz.NOT_RECORD)return r.K.debug("Recording is off, propagating context in a non-recording span"),r.g4.wrapSpanContext(T);var S=new Ot(this,n,t,T,_,c,h,e.startTime);return S.setAttributes(Object.assign(d,E.attributes)),S},t.prototype.startActiveSpan=function(t,e,n,o){var i,a,s;if(!(arguments.length<2)){2===arguments.length?s=e:3===arguments.length?(i=e,s=n):(i=e,a=n,s=o);var u=null!=a?a:r.Do.active(),c=this.startSpan(t,i,u),l=r.g4.setSpan(u,c);return r.Do.with(l,s,void 0,c)}},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}();var Ct,wt,It=function(){function t(t){this.attributes=t}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t(((e={})[q]="unknown_service",e[J]=tt[J],e[Q]=tt[Q],e[$]=tt[$],e))},t.prototype.merge=function(e){return e&&Object.keys(e.attributes).length?new t(Object.assign({},this.attributes,e.attributes)):this},t.EMPTY=new t({}),t}(),Dt=function(){function t(t){this._spanProcessors=t}return t.prototype.forceFlush=function(){for(var t=[],e=0,n=this._spanProcessors;e<n.length;e++){var r=n[e];t.push(r.forceFlush())}return new Promise((function(e){Promise.all(t).then((function(){e()})).catch((function(t){h(t||new Error("MultiSpanProcessor: forceFlush failed")),e()}))}))},t.prototype.onStart=function(t,e){for(var n=0,r=this._spanProcessors;n<r.length;n++){r[n].onStart(t,e)}},t.prototype.onEnd=function(t){for(var e=0,n=this._spanProcessors;e<n.length;e++){n[e].onEnd(t)}},t.prototype.shutdown=function(){for(var t=[],e=0,n=this._spanProcessors;e<n.length;e++){var r=n[e];t.push(r.shutdown())}return new Promise((function(e,n){Promise.all(t).then((function(){e()}),n)}))},t}(),Mt=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}(),Ut=function(){function t(t,e){this._exporter=t,this._finishedSpans=[],this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve();var n=A();this._maxExportBatchSize="number"==typeof(null==e?void 0:e.maxExportBatchSize)?e.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==e?void 0:e.maxQueueSize)?e.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==e?void 0:e.scheduledDelayMillis)?e.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==e?void 0:e.exportTimeoutMillis)?e.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT}return t.prototype.forceFlush=function(){return this._isShutdown?this._shuttingDownPromise:this._flushAll()},t.prototype.onStart=function(t){},t.prototype.onEnd=function(t){this._isShutdown||this._addToBuffer(t)},t.prototype.shutdown=function(){var t=this;return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise((function(e,n){Promise.resolve().then((function(){return t.onShutdown()})).then((function(){return t._flushAll()})).then((function(){return t._exporter.shutdown()})).then(e).catch((function(t){n(t)}))}))),this._shuttingDownPromise},t.prototype._addToBuffer=function(t){this._finishedSpans.length>=this._maxQueueSize||(this._finishedSpans.push(t),this._maybeStartTimer())},t.prototype._flushAll=function(){var t=this;return new Promise((function(e,n){for(var r=[],o=0,i=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize);o<i;o++)r.push(t._flushOneBatch());Promise.all(r).then((function(){e()})).catch(n)}))},t.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise((function(e,n){var o=setTimeout((function(){n(new Error("Timeout"))}),t._exportTimeoutMillis);r.Do.with(i(r.Do.active()),(function(){t._exporter.export(t._finishedSpans.splice(0,t._maxExportBatchSize),(function(t){var r;clearTimeout(o),t.code===et.SUCCESS?e():n(null!==(r=t.error)&&void 0!==r?r:new Error("BatchSpanProcessor: span export failed"))}))}))}))},t.prototype._maybeStartTimer=function(){var t=this;void 0===this._timer&&(this._timer=setTimeout((function(){t._flushOneBatch().then((function(){t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())})).catch((function(t){h(t)}))}),this._scheduledDelayMillis),this._timer)},t.prototype._clearTimer=function(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)},t}(),xt=(Ct=function(t,e){return Ct=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Ct(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Ct(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),kt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.onInit(n),r}return xt(e,t),e.prototype.onInit=function(t){var e=this;!0!==(null==t?void 0:t.disableAutoFlushOnDocumentHide)&&null!=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.prototype.onShutdown=function(){this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener)},e}(Ut),Bt=n(378);!function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"}(wt||(wt={}));var jt=function(){function t(t){var e;void 0===t&&(t={}),this._registeredSpanProcessors=[],this._tracers=new Map;var n=Bt({},bt,t);this.resource=null!==(e=n.resource)&&void 0!==e?e:It.empty(),this.resource=It.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var r=this._buildExporterFromEnv();if(void 0!==r){var o=new kt(r);this.activeSpanProcessor=o}else this.activeSpanProcessor=new Mt}return t.prototype.getTracer=function(t,e){var n=t+"@"+(e||"");return this._tracers.has(n)||this._tracers.set(n,new Lt({name:t,version:e},this._config,this)),this._tracers.get(n)},t.prototype.addSpanProcessor=function(t){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((function(t){return r.K.error("Error while trying to shutdown current span processor",t)})),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new Dt(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(t){void 0===t&&(t={}),r.g4.setGlobalTracerProvider(this),void 0===t.propagator&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&r.Do.setGlobalContextManager(t.contextManager),t.propagator&&r.uA.setGlobalPropagator(t.propagator)},t.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,e=this._registeredSpanProcessors.map((function(e){return new Promise((function(n){var r,o=setTimeout((function(){n(new Error("Span processor did not completed within timeout period of "+t+" ms")),r=wt.timeout}),t);e.forceFlush().then((function(){clearTimeout(o),r!==wt.timeout&&(r=wt.resolved,n(r))})).catch((function(t){clearTimeout(o),r=wt.error,n(t)}))}))}));return new Promise((function(t,n){Promise.all(e).then((function(e){var r=e.filter((function(t){return t!==wt.resolved}));r.length>0?n(r):t()})).catch((function(t){return n([t])}))}))},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return null===(n=t._registeredPropagators.get(e))||void 0===n?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return null===(n=t._registeredExporters.get(e))||void 0===n?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var t=this,e=Array.from(new Set(A().OTEL_PROPAGATORS)),n=e.map((function(e){var n=t._getPropagator(e);return n||r.K.warn('Propagator "'+e+'" requested through environment variable is unavailable.'),n})).reduce((function(t,e){return e&&t.push(e),t}),[]);return 0===n.length?void 0:1===e.length?n[0]:new ct({propagators:n})},t.prototype._buildExporterFromEnv=function(){var t=A().OTEL_TRACES_EXPORTER;if("none"!==t){var e=this._getSpanExporter(t);return e||r.K.error('Exporter "'+t+'" requested through environment variable is unavailable.'),e}},t._registeredPropagators=new Map([["tracecontext",function(){return new St}],["baggage",function(){return new c}]]),t._registeredExporters=new Map,t}(),Gt=function(){function t(){}return t.prototype.export=function(t,e){return this._sendSpans(t,e)},t.prototype.shutdown=function(){return this._sendSpans([]),Promise.resolve()},t.prototype._exportInfo=function(t){return{traceId:t.spanContext().traceId,parentId:t.parentSpanId,name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:st(t.startTime),duration:st(t.duration),attributes:t.attributes,status:t.status,events:t.events}},t.prototype._sendSpans=function(t,e){for(var n=0,r=t;n<r.length;n++){var o=r[n];console.log(this._exportInfo(o))}if(e)return e({code:et.SUCCESS})},t}(),Vt=function(){function t(){this._finishedSpans=[],this._stopped=!1}return t.prototype.export=function(t,e){var n;if(this._stopped)return e({code:et.FAILED,error:new Error("Exporter has been stopped")});(n=this._finishedSpans).push.apply(n,t),setTimeout((function(){return e({code:et.SUCCESS})}),0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans},t}(),Ft=function(){function t(t){this._exporter=t,this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve()}return t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.onStart=function(t){},t.prototype.onEnd=function(t){var e=this;this._isShutdown||r.Do.with(i(r.Do.active()),(function(){e._exporter.export([t],(function(t){var e;t.code!==et.SUCCESS&&h(null!==(e=t.error)&&void 0!==e?e:new Error("SimpleSpanProcessor: span export failed (status "+t+")"))}))}))},t.prototype.shutdown=function(){var t=this;return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise((function(e,n){Promise.resolve().then((function(){return t._exporter.shutdown()})).then(e).catch((function(t){n(t)}))}))),this._shuttingDownPromise},t}()},352:(t,e,n)=>{"use strict";var r=function(){var t=n(340).WebTracerProvider,e=n(796).DocumentLoadInstrumentation,r=n(9).ZoneContextManager,o=n(140).registerInstrumentations,i=n(641).FetchInstrumentation,a=n(339).B3Propagator,s=n(479).TraceIdRatioBasedSampler,u=n(175).ZipkinExporter,c=n(386).BatchSpanProcessor,l=n(906).Resource,p=n(871).SemanticResourceAttributes,f="",_="",h="",d=1;return{getInstance:function(){if(void 0===n)var n={start:function(n){n.serviceName&&(_=n.serviceName),n.authKey&&(f=n.authKey),n.collectorUrl&&(h=n.collectorUrl),n.samplingRatio&&(d=n.samplingRatio);var E,T,S,v=new t({resource:new l((E={context:_},T=p.SERVICE_NAME,S=_,T in E?Object.defineProperty(E,T,{value:S,enumerable:!0,configurable:!0,writable:!0}):E[T]=S,E)),sampler:new s(d)}),y={headers:{Authorization:"Basic "+f,"Content-Type":"application/json","Access-Control-Allow-Headers":"*","X-CSRF":"1"},concurrencyLimit:10,url:h};v.addSpanProcessor(new c(new u(y))),v.register({contextManager:new r,propagator:new a}),window.tracer=v.getTracer("tracer-web"),window.parentSpan=window.tracer.startSpan("apiCall"),o({instrumentations:[new e,new i({ignoreUrls:[/localhost/],propagateTraceHeaderCorsUrls:["/.+/g"],clearTimingResources:!0})]})}};return n}}}(),o=r.getInstance();if(void 0===i)var i=window;i.OpsVerseBrowserRum=r.getInstance(),t.exports=o},378:(t,e,n)=>{t=n.nmd(t);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[i]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l[a]=l["[object Map]"]=l["[object Number]"]=l[s]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1;var p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,_=p||f||Function("return this")(),h=e&&!e.nodeType&&e,d=h&&t&&!t.nodeType&&t,E=d&&d.exports===h,T=E&&p.process,S=function(){try{var t=d&&d.require&&d.require("util").types;return t||T&&T.binding&&T.binding("util")}catch(t){}}(),v=S&&S.isTypedArray;function y(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var g,m,O,A=Array.prototype,R=Function.prototype,b=Object.prototype,N=_["__core-js_shared__"],P=R.toString,L=b.hasOwnProperty,C=(g=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",w=b.toString,I=P.call(Object),D=RegExp("^"+P.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=E?_.Buffer:void 0,U=_.Symbol,x=_.Uint8Array,k=M?M.allocUnsafe:void 0,B=(m=Object.getPrototypeOf,O=Object,function(t){return m(O(t))}),j=Object.create,G=b.propertyIsEnumerable,V=A.splice,F=U?U.toStringTag:void 0,H=function(){try{var t=dt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),z=M?M.isBuffer:void 0,K=Math.max,Z=Date.now,X=dt(_,"Map"),Y=dt(Object,"create"),W=function(){function t(){}return function(e){if(!Nt(e))return{};if(j)return j(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function q(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Q(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function J(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function $(t){var e=this.__data__=new Q(t);this.size=e.size}function tt(t,e){var n=mt(t),r=!n&>(t),o=!n&&!r&&At(t),i=!n&&!r&&!o&&Lt(t),a=n||r||o||i,s=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=s.length;for(var c in t)!e&&!L.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Et(c,u))||s.push(c);return s}function et(t,e,n){(void 0!==n&&!yt(t[e],n)||void 0===n&&!(e in t))&&ot(t,e,n)}function nt(t,e,n){var r=t[e];L.call(t,e)&&yt(r,n)&&(void 0!==n||e in t)||ot(t,e,n)}function rt(t,e){for(var n=t.length;n--;)if(yt(t[n][0],e))return n;return-1}function ot(t,e,n){"__proto__"==e&&H?H(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}q.prototype.clear=function(){this.__data__=Y?Y(null):{},this.size=0},q.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},q.prototype.get=function(t){var e=this.__data__;if(Y){var n=e[t];return n===r?void 0:n}return L.call(e,t)?e[t]:void 0},q.prototype.has=function(t){var e=this.__data__;return Y?void 0!==e[t]:L.call(e,t)},q.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Y&&void 0===e?r:e,this},Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(t){var e=this.__data__,n=rt(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.call(e,n,1),--this.size,!0)},Q.prototype.get=function(t){var e=this.__data__,n=rt(e,t);return n<0?void 0:e[n][1]},Q.prototype.has=function(t){return rt(this.__data__,t)>-1},Q.prototype.set=function(t,e){var n=this.__data__,r=rt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(X||Q),string:new q}},J.prototype.delete=function(t){var e=ht(this,t).delete(t);return this.size-=e?1:0,e},J.prototype.get=function(t){return ht(this,t).get(t)},J.prototype.has=function(t){return ht(this,t).has(t)},J.prototype.set=function(t,e){var n=ht(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},$.prototype.clear=function(){this.__data__=new Q,this.size=0},$.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},$.prototype.get=function(t){return this.__data__.get(t)},$.prototype.has=function(t){return this.__data__.has(t)},$.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Q){var r=n.__data__;if(!X||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new J(r)}return n.set(t,e),this.size=n.size,this};var it,at=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),a=i.length;a--;){var s=i[it?a:++r];if(!1===e(o[s],s,o))break}return t};function st(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":F&&F in Object(t)?function(t){var e=L.call(t,F),n=t[F];try{t[F]=void 0;var r=!0}catch(t){}var o=w.call(t);r&&(e?t[F]=n:delete t[F]);return o}(t):function(t){return w.call(t)}(t)}function ut(t){return Pt(t)&&st(t)==i}function ct(t){return!(!Nt(t)||function(t){return!!C&&C in t}(t))&&(Rt(t)?D:u).test(function(t){if(null!=t){try{return P.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function lt(t){if(!Nt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Tt(t),n=[];for(var r in t)("constructor"!=r||!e&&L.call(t,r))&&n.push(r);return n}function pt(t,e,n,r,o){t!==e&&at(e,(function(i,a){if(o||(o=new $),Nt(i))!function(t,e,n,r,o,i,a){var u=St(t,n),c=St(e,n),l=a.get(c);if(l)return void et(t,n,l);var p=i?i(u,c,n+"",t,e,a):void 0,f=void 0===p;if(f){var _=mt(c),h=!_&&At(c),d=!_&&!h&&Lt(c);p=c,_||h||d?mt(u)?p=u:Pt(y=u)&&Ot(y)?p=function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(u):h?(f=!1,p=function(t,e){if(e)return t.slice();var n=t.length,r=k?k(n):new t.constructor(n);return t.copy(r),r}(c,!0)):d?(f=!1,E=c,T=!0?(S=E.buffer,v=new S.constructor(S.byteLength),new x(v).set(new x(S)),v):E.buffer,p=new E.constructor(T,E.byteOffset,E.length)):p=[]:function(t){if(!Pt(t)||st(t)!=s)return!1;var e=B(t);if(null===e)return!0;var n=L.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==I}(c)||gt(c)?(p=u,gt(u)?p=function(t){return function(t,e,n,r){var o=!n;n||(n={});var i=-1,a=e.length;for(;++i<a;){var s=e[i],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),o?ot(n,s,u):nt(n,s,u)}return n}(t,Ct(t))}(u):Nt(u)&&!Rt(u)||(p=function(t){return"function"!=typeof t.constructor||Tt(t)?{}:W(B(t))}(c))):f=!1}var E,T,S,v;var y;f&&(a.set(c,p),o(p,c,r,i,a),a.delete(c));et(t,n,p)}(t,e,a,n,pt,r,o);else{var u=r?r(St(t,a),i,a+"",t,e,o):void 0;void 0===u&&(u=i),et(t,a,u)}}),Ct)}function ft(t,e){return vt(function(t,e,n){return e=K(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=K(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(a),y(t,this,s)}}(t,e,Dt),t+"")}var _t=H?function(t,e){return H(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Dt;function ht(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function dt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return ct(n)?n:void 0}function Et(t,e){var n=typeof t;return!!(e=null==e?o:e)&&("number"==n||"symbol"!=n&&c.test(t))&&t>-1&&t%1==0&&t<e}function Tt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||b)}function St(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var vt=function(t){var e=0,n=0;return function(){var r=Z(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(_t);function yt(t,e){return t===e||t!=t&&e!=e}var gt=ut(function(){return arguments}())?ut:function(t){return Pt(t)&&L.call(t,"callee")&&!G.call(t,"callee")},mt=Array.isArray;function Ot(t){return null!=t&&bt(t.length)&&!Rt(t)}var At=z||function(){return!1};function Rt(t){if(!Nt(t))return!1;var e=st(t);return e==a||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function bt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Nt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Pt(t){return null!=t&&"object"==typeof t}var Lt=v?function(t){return function(e){return t(e)}}(v):function(t){return Pt(t)&&bt(t.length)&&!!l[st(t)]};function Ct(t){return Ot(t)?tt(t,!0):lt(t)}var wt,It=(wt=function(t,e,n){pt(t,e,n)},ft((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=wt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!Nt(n))return!1;var r=typeof e;return!!("number"==r?Ot(n)&&Et(e,n.length):"string"==r&&e in n)&&yt(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&wt(t,a,n,o)}return t})));function Dt(t){return t}t.exports=It},372:t=>{"use strict";function e(t){return"function"==typeof t}var n=console.error.bind(console);function r(t,e,n){var r=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}function o(t){t&&t.logger&&(e(t.logger)?n=t.logger:n("new logger isn't a function, not replacing"))}function i(t,o,i){if(t&&t[o]){if(!i)return n("no wrapper function"),void n((new Error).stack);if(e(t[o])&&e(i)){var a=t[o],s=i(a,o);return r(s,"__original",a),r(s,"__unwrap",(function(){t[o]===s&&r(t,o,a)})),r(s,"__wrapped",!0),r(t,o,s),s}n("original object and wrapper must be functions")}else n("no original function "+o+" to wrap")}function a(t,e){return t&&t[e]?t[e].__unwrap?t[e].__unwrap():void n("no original to unwrap to -- has "+e+" already been unwrapped?"):(n("no function to unwrap."),void n((new Error).stack))}o.wrap=i,o.massWrap=function(t,e,r){if(!t)return n("must provide one or more modules to patch"),void n((new Error).stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach((function(t){e.forEach((function(e){i(t,e,r)}))})):n("must provide one or more functions to wrap on modules")},o.unwrap=a,o.massUnwrap=function(t,e){if(!t)return n("must provide one or more modules to patch"),void n((new Error).stack);Array.isArray(t)||(t=[t]),e&&Array.isArray(e)?t.forEach((function(t){e.forEach((function(e){a(t,e)}))})):n("must provide one or more functions to unwrap on modules")},t.exports=o},37:(t,e,n)=>{"use strict";!function(t){const e=t.performance;function n(t){e&&e.mark&&e.mark(t)}function r(t,n){e&&e.measure&&e.measure(t,n)}n("Zone");const o=t.__Zone_symbol_prefix||"__zone_symbol__";function i(t){return o+t}const a=!0===t[i("forceDuplicateZoneCheck")];if(t.Zone){if(a||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}class s{constructor(t,e){this._parent=t,this._name=e?e.name||"unnamed":"<root>",this._properties=e&&e.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==C.ZoneAwarePromise)throw new 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 t=s.current;for(;t.parent;)t=t.parent;return t}static get current(){return I.zone}static get currentTask(){return D}static __load_patch(e,o,i=!1){if(C.hasOwnProperty(e)){if(!i&&a)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const i="Zone:"+e;n(i),C[e]=o(t,s,w),r(i,i)}}get parent(){return this._parent}get name(){return this._name}get(t){const 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 new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}}run(t,e,n,r){I={parent:I,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{I=I.parent}}runGuarded(t,e=null,n,r){I={parent:I,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{I=I.parent}}runTask(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||y).name+"; Execution: "+this.name+")");if(t.state===g&&(t.type===L||t.type===P))return;const r=t.state!=A;r&&t._transitionTo(A,O),t.runCount++;const o=D;D=t,I={parent:I,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{t.state!==g&&t.state!==b&&(t.type==L||t.data&&t.data.isPeriodic?r&&t._transitionTo(O,A):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(g,A,g))),I=I.parent,D=o}}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(m,g);const e=[];t._zoneDelegates=e,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(e){throw t._transitionTo(b,m,g),this._zoneDelegate.handleError(this,e),e}return t._zoneDelegates===e&&this._updateTaskCount(t,1),t.state==m&&t._transitionTo(O,m),t}scheduleMicroTask(t,e,n,r){return this.scheduleTask(new l(N,t,e,n,r,void 0))}scheduleMacroTask(t,e,n,r,o){return this.scheduleTask(new l(P,t,e,n,r,o))}scheduleEventTask(t,e,n,r,o){return this.scheduleTask(new l(L,t,e,n,r,o))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||y).name+"; Execution: "+this.name+")");t._transitionTo(R,O,A);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(b,R),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(g,R),t.runCount=0,t}_updateTaskCount(t,e){const n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(let r=0;r<n.length;r++)n[r]._updateTaskCount(t.type,e)}}s.__symbol__=i;const u={name:"",onHasTask:(t,e,n,r)=>t.hasTask(n,r),onScheduleTask:(t,e,n,r)=>t.scheduleTask(n,r),onInvokeTask:(t,e,n,r,o,i)=>t.invokeTask(n,r,o,i),onCancelTask:(t,e,n,r)=>t.cancelTask(n,r)};class c{constructor(t,e,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=e,this._forkZS=n&&(n&&n.onFork?n:e._forkZS),this._forkDlgt=n&&(n.onFork?e:e._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:e._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:e._interceptZS),this._interceptDlgt=n&&(n.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:e._invokeZS),this._invokeDlgt=n&&(n.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:e._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:e._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=n&&n.onHasTask,o=e&&e._hasTaskZS;(r||o)&&(this._hasTaskZS=r?n:u,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,n.onScheduleTask||(this._scheduleTaskZS=u,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=u,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=u,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(t,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):new s(t,e)}intercept(t,e,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e}invoke(t,e,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,o):e.apply(n,r)}handleError(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)}scheduleTask(t,e){let n=e;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e),n||(n=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=N)throw new Error("Task is missing scheduleFn.");S(e)}return n}invokeTask(t,e,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)}cancelTask(t,e){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");n=e.cancelFn(e)}return n}hasTask(t,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)}catch(e){this.handleError(t,e)}}_updateTaskCount(t,e){const n=this._taskCounts,r=n[t],o=n[t]=r+e;if(o<0)throw new Error("More tasks executed then were scheduled.");if(0==r||0==o){const e={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t};this.hasTask(this.zone,e)}}}class l{constructor(e,n,r,o,i,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=e,this.source=n,this.data=o,this.scheduleFn=i,this.cancelFn=a,!r)throw new Error("callback is not defined");this.callback=r;const s=this;e===L&&o&&o.useG?this.invoke=l.invokeTask:this.invoke=function(){return l.invokeTask.call(t,s,this,arguments)}}static invokeTask(t,e,n){t||(t=this),M++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==M&&v(),M--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(g,m)}_transitionTo(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${t}', expecting state '${e}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=t,t==g&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const p=i("setTimeout"),f=i("Promise"),_=i("then");let h,d=[],E=!1;function T(e){if(h||t[f]&&(h=t[f].resolve(0)),h){let t=h[_];t||(t=h.then),t.call(h,e)}else t[p](e,0)}function S(t){0===M&&0===d.length&&T(v),t&&d.push(t)}function v(){if(!E){for(E=!0;d.length;){const t=d;d=[];for(let e=0;e<t.length;e++){const n=t[e];try{n.zone.runTask(n,null,null)}catch(t){w.onUnhandledError(t)}}}w.microtaskDrainDone(),E=!1}}const y={name:"NO ZONE"},g="notScheduled",m="scheduling",O="scheduled",A="running",R="canceling",b="unknown",N="microTask",P="macroTask",L="eventTask",C={},w={symbol:i,currentZoneFrame:()=>I,onUnhandledError:U,microtaskDrainDone:U,scheduleMicroTask:S,showUncaughtError:()=>!s[i("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:U,patchMethod:()=>U,bindArguments:()=>[],patchThen:()=>U,patchMacroTask:()=>U,patchEventPrototype:()=>U,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>U,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>U,wrapWithCurrentZone:()=>U,filterProperties:()=>[],attachOriginToPatched:()=>U,_redefineProperty:()=>U,patchCallbacks:()=>U,nativeScheduleMicroTask:T};let I={parent:null,zone:new s(null,null)},D=null,M=0;function U(){}r("Zone","Zone"),t.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||n.g);const r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,i=Object.getPrototypeOf,a=Object.create,s=Array.prototype.slice,u="addEventListener",c="removeEventListener",l=Zone.__symbol__(u),p=Zone.__symbol__(c),f="true",_="false",h=Zone.__symbol__("");function d(t,e){return Zone.current.wrap(t,e)}function E(t,e,n,r,o){return Zone.current.scheduleMacroTask(t,e,n,r,o)}const T=Zone.__symbol__,S="undefined"!=typeof window,v=S?window:void 0,y=S&&v||"object"==typeof self&&self||n.g;function g(t,e){for(let n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=d(t[n],e+"_"+n));return t}function m(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}const O="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,A=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),R=!A&&!O&&!(!S||!v.HTMLElement),b=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!O&&!(!S||!v.HTMLElement),N={},P=function(t){if(!(t=t||y.event))return;let e=N[t.type];e||(e=N[t.type]=T("ON_PROPERTY"+t.type));const n=this||t.target||y,r=n[e];let o;if(R&&n===v&&"error"===t.type){const e=t;o=r&&r.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===o&&t.preventDefault()}else o=r&&r.apply(this,arguments),null==o||o||t.preventDefault();return o};function L(t,e,n){let i=r(t,e);if(!i&&n){r(n,e)&&(i={enumerable:!0,configurable:!0})}if(!i||!i.configurable)return;const a=T("on"+e+"patched");if(t.hasOwnProperty(a)&&t[a])return;delete i.writable,delete i.value;const s=i.get,u=i.set,c=e.substr(2);let l=N[c];l||(l=N[c]=T("ON_PROPERTY"+c)),i.set=function(e){let n=this;if(n||t!==y||(n=y),!n)return;"function"==typeof n[l]&&n.removeEventListener(c,P),u&&u.call(n,null),n[l]=e,"function"==typeof e&&n.addEventListener(c,P,!1)},i.get=function(){let n=this;if(n||t!==y||(n=y),!n)return null;const r=n[l];if(r)return r;if(s){let t=s.call(this);if(t)return i.set.call(this,t),"function"==typeof n.removeAttribute&&n.removeAttribute(e),t}return null},o(t,e,i),t[a]=!0}function C(t,e,n){if(e)for(let r=0;r<e.length;r++)L(t,"on"+e[r],n);else{const e=[];for(const n in t)"on"==n.substr(0,2)&&e.push(n);for(let r=0;r<e.length;r++)L(t,e[r],n)}}const w=T("originalInstance");function I(t){const e=y[t];if(!e)return;y[T(t)]=e,y[t]=function(){const n=g(arguments,t);switch(n.length){case 0:this[w]=new e;break;case 1:this[w]=new e(n[0]);break;case 2:this[w]=new e(n[0],n[1]);break;case 3:this[w]=new e(n[0],n[1],n[2]);break;case 4:this[w]=new e(n[0],n[1],n[2],n[3]);break;default:throw new Error("Arg list too long.")}},U(y[t],e);const n=new e((function(){}));let r;for(r in n)"XMLHttpRequest"===t&&"responseBlob"===r||function(e){"function"==typeof n[e]?y[t].prototype[e]=function(){return this[w][e].apply(this[w],arguments)}:o(y[t].prototype,e,{set:function(n){"function"==typeof n?(this[w][e]=d(n,t+"."+e),U(this[w][e],n)):this[w][e]=n},get:function(){return this[w][e]}})}(r);for(r in e)"prototype"!==r&&e.hasOwnProperty(r)&&(y[t][r]=e[r])}function D(t,e,n){let o=t;for(;o&&!o.hasOwnProperty(e);)o=i(o);!o&&t[e]&&(o=t);const a=T(e);let s=null;if(o&&(!(s=o[a])||!o.hasOwnProperty(a))){s=o[a]=o[e];if(m(o&&r(o,e))){const t=n(s,a,e);o[e]=function(){return t(this,arguments)},U(o[e],s)}}return s}function M(t,e,n){let r=null;function o(t){const e=t.data;return e.args[e.cbIdx]=function(){t.invoke.apply(this,arguments)},r.apply(e.target,e.args),t}r=D(t,e,(t=>function(e,r){const i=n(e,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?E(i.name,r[i.cbIdx],i,o):t.apply(e,r)}))}function U(t,e){t[T("OriginalDelegate")]=e}let x=!1,k=!1;function B(){try{const t=v.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(t){}return!1}function j(){if(x)return k;x=!0;try{const t=v.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(k=!0)}catch(t){}return k}Zone.__load_patch("ZoneAwarePromise",((t,e,n)=>{const r=Object.getOwnPropertyDescriptor,o=Object.defineProperty;const i=n.symbol,a=[],s=!0===t[i("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],u=i("Promise"),c=i("then");n.onUnhandledError=t=>{if(n.showUncaughtError()){const 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)}},n.microtaskDrainDone=()=>{for(;a.length;){const t=a.shift();try{t.zone.runGuarded((()=>{if(t.throwOriginal)throw t.rejection;throw t}))}catch(t){p(t)}}};const l=i("unhandledPromiseRejectionHandler");function p(t){n.onUnhandledError(t);try{const n=e[l];"function"==typeof n&&n.call(this,t)}catch(t){}}function f(t){return t&&t.then}function _(t){return t}function h(t){return w.reject(t)}const d=i("state"),E=i("value"),T=i("finally"),S=i("parentPromiseValue"),v=i("parentPromiseState"),y=null,g=!0,m=!1;function O(t,e){return n=>{try{R(t,e,n)}catch(e){R(t,!1,e)}}}const A=i("currentTaskTrace");function R(t,r,i){const u=function(){let t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}}();if(t===i)throw new TypeError("Promise resolved with itself");if(t[d]===y){let c=null;try{"object"!=typeof i&&"function"!=typeof i||(c=i&&i.then)}catch(e){return u((()=>{R(t,!1,e)}))(),t}if(r!==m&&i instanceof w&&i.hasOwnProperty(d)&&i.hasOwnProperty(E)&&i[d]!==y)N(i),R(t,i[d],i[E]);else if(r!==m&&"function"==typeof c)try{c.call(i,u(O(t,r)),u(O(t,!1)))}catch(e){u((()=>{R(t,!1,e)}))()}else{t[d]=r;const u=t[E];if(t[E]=i,t[T]===T&&r===g&&(t[d]=t[v],t[E]=t[S]),r===m&&i instanceof Error){const t=e.currentTask&&e.currentTask.data&&e.currentTask.data.__creationTrace__;t&&o(i,A,{configurable:!0,enumerable:!1,writable:!0,value:t})}for(let e=0;e<u.length;)P(t,u[e++],u[e++],u[e++],u[e++]);if(0==u.length&&r==m){t[d]=0;let r=i;try{throw new Error("Uncaught (in promise): "+function(t){if(t&&t.toString===Object.prototype.toString){return(t.constructor&&t.constructor.name||"")+": "+JSON.stringify(t)}return t?t.toString():Object.prototype.toString.call(t)}(i)+(i&&i.stack?"\n"+i.stack:""))}catch(t){r=t}s&&(r.throwOriginal=!0),r.rejection=i,r.promise=t,r.zone=e.current,r.task=e.currentTask,a.push(r),n.scheduleMicroTask()}}}return t}const b=i("rejectionHandledHandler");function N(t){if(0===t[d]){try{const n=e[b];n&&"function"==typeof n&&n.call(this,{rejection:t[E],promise:t})}catch(t){}t[d]=m;for(let e=0;e<a.length;e++)t===a[e].promise&&a.splice(e,1)}}function P(t,e,n,r,o){N(t);const i=t[d],a=i?"function"==typeof r?r:_:"function"==typeof o?o:h;e.scheduleMicroTask("Promise.then",(()=>{try{const r=t[E],o=!!n&&T===n[T];o&&(n[S]=r,n[v]=i);const s=e.run(a,void 0,o&&a!==h&&a!==_?[]:[r]);R(n,!0,s)}catch(t){R(n,!1,t)}}),n)}const L=function(){},C=t.AggregateError;class w{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(t){return R(new this(null),g,t)}static reject(t){return R(new this(null),m,t)}static any(t){if(!t||"function"!=typeof t[Symbol.iterator])return Promise.reject(new C([],"All promises were rejected"));const e=[];let n=0;try{for(let r of t)n++,e.push(w.resolve(r))}catch(t){return Promise.reject(new C([],"All promises were rejected"))}if(0===n)return Promise.reject(new C([],"All promises were rejected"));let r=!1;const o=[];return new w(((t,i)=>{for(let a=0;a<e.length;a++)e[a].then((e=>{r||(r=!0,t(e))}),(t=>{o.push(t),n--,0===n&&(r=!0,i(new C(o,"All promises were rejected")))}))}))}static race(t){let e,n,r=new this(((t,r)=>{e=t,n=r}));function o(t){e(t)}function i(t){n(t)}for(let e of t)f(e)||(e=this.resolve(e)),e.then(o,i);return r}static all(t){return w.allWithCallback(t)}static allSettled(t){return(this&&this.prototype instanceof w?this:w).allWithCallback(t,{thenCallback:t=>({status:"fulfilled",value:t}),errorCallback:t=>({status:"rejected",reason:t})})}static allWithCallback(t,e){let n,r,o=new this(((t,e)=>{n=t,r=e})),i=2,a=0;const s=[];for(let o of t){f(o)||(o=this.resolve(o));const t=a;try{o.then((r=>{s[t]=e?e.thenCallback(r):r,i--,0===i&&n(s)}),(o=>{e?(s[t]=e.errorCallback(o),i--,0===i&&n(s)):r(o)}))}catch(t){r(t)}i++,a++}return i-=2,0===i&&n(s),o}constructor(t){const e=this;if(!(e instanceof w))throw new Error("Must be an instanceof Promise.");e[d]=y,e[E]=[];try{t&&t(O(e,g),O(e,m))}catch(t){R(e,!1,t)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return w}then(t,n){let r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=this.constructor||w);const o=new r(L),i=e.current;return this[d]==y?this[E].push(i,o,t,n):P(this,i,o,t,n),o}catch(t){return this.then(null,t)}finally(t){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=w);const r=new n(L);r[T]=T;const o=e.current;return this[d]==y?this[E].push(o,r,t,t):P(this,o,r,t,t),r}}w.resolve=w.resolve,w.reject=w.reject,w.race=w.race,w.all=w.all;const I=t[u]=t.Promise;t.Promise=w;const M=i("thenPatched");function U(t){const e=t.prototype,n=r(e,"then");if(n&&(!1===n.writable||!n.configurable))return;const o=e.then;e[c]=o,t.prototype.then=function(t,e){return new w(((t,e)=>{o.call(this,t,e)})).then(t,e)},t[M]=!0}return n.patchThen=U,I&&(U(I),D(t,"fetch",(t=>{return e=t,function(t,n){let r=e.apply(t,n);if(r instanceof w)return r;let o=r.constructor;return o[M]||U(o),r};var e}))),Promise[e.__symbol__("uncaughtPromiseErrors")]=a,w})),Zone.__load_patch("toString",(t=>{const e=Function.prototype.toString,n=T("OriginalDelegate"),r=T("Promise"),o=T("Error"),i=function(){if("function"==typeof this){const i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){const n=t[r];if(n)return e.call(n)}if(this===Error){const n=t[o];if(n)return e.call(n)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;const a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}}));let G=!1;if("undefined"!=typeof window)try{const t=Object.defineProperty({},"passive",{get:function(){G=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){G=!1}const V={useG:!0},F={},H={},z=new RegExp("^"+h+"(\\w+)(true|false)$"),K=T("propagationStopped");function Z(t,e){const n=(e?e(t):t)+_,r=(e?e(t):t)+f,o=h+n,i=h+r;F[t]={},F[t].false=o,F[t].true=i}function X(t,e,n,r){const o=r&&r.add||u,a=r&&r.rm||c,s=r&&r.listeners||"eventListeners",l=r&&r.rmAll||"removeAllListeners",p=T(o),d="."+o+":",E=function(t,e,n){if(t.isRemoved)return;const r=t.callback;let o;"object"==typeof r&&r.handleEvent&&(t.callback=t=>r.handleEvent(t),t.originalDelegate=r);try{t.invoke(t,e,[n])}catch(t){o=t}const i=t.options;if(i&&"object"==typeof i&&i.once){const r=t.originalDelegate?t.originalDelegate:t.callback;e[a].call(e,n.type,r,i)}return o};function S(n,r,o){if(!(r=r||t.event))return;const i=n||r.target||t,a=i[F[r.type][o?f:_]];if(a){const t=[];if(1===a.length){const e=E(a[0],i,r);e&&t.push(e)}else{const e=a.slice();for(let n=0;n<e.length&&(!r||!0!==r[K]);n++){const o=E(e[n],i,r);o&&t.push(o)}}if(1===t.length)throw t[0];for(let n=0;n<t.length;n++){const r=t[n];e.nativeScheduleMicroTask((()=>{throw r}))}}}const v=function(t){return S(this,t,!1)},y=function(t){return S(this,t,!0)};function g(e,n){if(!e)return!1;let r=!0;n&&void 0!==n.useG&&(r=n.useG);const u=n&&n.vh;let c=!0;n&&void 0!==n.chkDup&&(c=n.chkDup);let E=!1;n&&void 0!==n.rt&&(E=n.rt);let S=e;for(;S&&!S.hasOwnProperty(o);)S=i(S);if(!S&&e[o]&&(S=e),!S)return!1;if(S[p])return!1;const g=n&&n.eventNameToString,m={},O=S[p]=S[o],R=S[T(a)]=S[a],b=S[T(s)]=S[s],N=S[T(l)]=S[l];let P;function L(t,e){return!G&&"object"==typeof t&&t?!!t.capture:G&&e?"boolean"==typeof t?{capture:t,passive:!0}:t?"object"==typeof t&&!1!==t.passive?Object.assign(Object.assign({},t),{passive:!0}):t:{passive:!0}:t}n&&n.prepend&&(P=S[T(n.prepend)]=S[n.prepend]);const C=function(t){return P.call(m.target,m.eventName,t.invoke,m.options)},w=r?function(t){if(!m.isExisting)return O.call(m.target,m.eventName,m.capture?y:v,m.options)}:function(t){return O.call(m.target,m.eventName,t.invoke,m.options)},I=r?function(t){if(!t.isRemoved){const e=F[t.eventName];let n;e&&(n=e[t.capture?f:_]);const r=n&&t.target[n];if(r)for(let e=0;e<r.length;e++){if(r[e]===t){r.splice(e,1),t.isRemoved=!0,0===r.length&&(t.allRemoved=!0,t.target[n]=null);break}}}if(t.allRemoved)return R.call(t.target,t.eventName,t.capture?y:v,t.options)}:function(t){return R.call(t.target,t.eventName,t.invoke,t.options)},D=n&&n.diff?n.diff:function(t,e){const n=typeof e;return"function"===n&&t.callback===e||"object"===n&&t.originalDelegate===e},M=Zone[T("UNPATCHED_EVENTS")],x=t[T("PASSIVE_EVENTS")],k=function(e,o,i,a,s=!1,l=!1){return function(){const p=this||t;let h=arguments[0];n&&n.transferEventName&&(h=n.transferEventName(h));let d=arguments[1];if(!d)return e.apply(this,arguments);if(A&&"uncaughtException"===h)return e.apply(this,arguments);let E=!1;if("function"!=typeof d){if(!d.handleEvent)return e.apply(this,arguments);E=!0}if(u&&!u(e,d,p,arguments))return;const T=G&&!!x&&-1!==x.indexOf(h),S=L(arguments[2],T);if(M)for(let t=0;t<M.length;t++)if(h===M[t])return T?e.call(p,h,d,S):e.apply(this,arguments);const v=!!S&&("boolean"==typeof S||S.capture),y=!(!S||"object"!=typeof S)&&S.once,O=Zone.current;let R=F[h];R||(Z(h,g),R=F[h]);const b=R[v?f:_];let N,P=p[b],C=!1;if(P){if(C=!0,c)for(let t=0;t<P.length;t++)if(D(P[t],d))return}else P=p[b]=[];const w=p.constructor.name,I=H[w];I&&(N=I[h]),N||(N=w+o+(g?g(h):h)),m.options=S,y&&(m.options.once=!1),m.target=p,m.capture=v,m.eventName=h,m.isExisting=C;const U=r?V:void 0;U&&(U.taskData=m);const k=O.scheduleEventTask(N,d,U,i,a);return m.target=null,U&&(U.taskData=null),y&&(S.once=!0),(G||"boolean"!=typeof k.options)&&(k.options=S),k.target=p,k.capture=v,k.eventName=h,E&&(k.originalDelegate=d),l?P.unshift(k):P.push(k),s?p:void 0}};return S[o]=k(O,d,w,I,E),P&&(S.prependListener=k(P,".prependListener:",C,I,E,!0)),S[a]=function(){const e=this||t;let r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));const o=arguments[2],i=!!o&&("boolean"==typeof o||o.capture),a=arguments[1];if(!a)return R.apply(this,arguments);if(u&&!u(R,a,e,arguments))return;const s=F[r];let c;s&&(c=s[i?f:_]);const l=c&&e[c];if(l)for(let t=0;t<l.length;t++){const n=l[t];if(D(n,a)){if(l.splice(t,1),n.isRemoved=!0,0===l.length&&(n.allRemoved=!0,e[c]=null,"string"==typeof r)){e[h+"ON_PROPERTY"+r]=null}return n.zone.cancelTask(n),E?e:void 0}}return R.apply(this,arguments)},S[s]=function(){const e=this||t;let r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));const o=[],i=Y(e,g?g(r):r);for(let t=0;t<i.length;t++){const e=i[t];let n=e.originalDelegate?e.originalDelegate:e.callback;o.push(n)}return o},S[l]=function(){const e=this||t;let r=arguments[0];if(r){n&&n.transferEventName&&(r=n.transferEventName(r));const t=F[r];if(t){const n=t.false,o=t.true,i=e[n],s=e[o];if(i){const t=i.slice();for(let e=0;e<t.length;e++){const n=t[e];let o=n.originalDelegate?n.originalDelegate:n.callback;this[a].call(this,r,o,n.options)}}if(s){const t=s.slice();for(let e=0;e<t.length;e++){const n=t[e];let o=n.originalDelegate?n.originalDelegate:n.callback;this[a].call(this,r,o,n.options)}}}}else{const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e],r=z.exec(n);let o=r&&r[1];o&&"removeListener"!==o&&this[l].call(this,o)}this[l].call(this,"removeListener")}if(E)return this},U(S[o],O),U(S[a],R),N&&U(S[l],N),b&&U(S[s],b),!0}let m=[];for(let t=0;t<n.length;t++)m[t]=g(n[t],r);return m}function Y(t,e){if(!e){const n=[];for(let r in t){const o=z.exec(r);let i=o&&o[1];if(i&&(!e||i===e)){const e=t[r];if(e)for(let t=0;t<e.length;t++)n.push(e[t])}}return n}let n=F[e];n||(Z(e),n=F[e]);const r=t[n.false],o=t[n.true];return r?o?r.concat(o):r.slice():o?o.slice():[]}function W(t,e){const n=t.Event;n&&n.prototype&&e.patchMethod(n.prototype,"stopImmediatePropagation",(t=>function(e,n){e[K]=!0,t&&t.apply(e,n)}))}function q(t,e,n,r,o){const i=Zone.__symbol__(r);if(e[i])return;const a=e[i]=e[r];e[r]=function(i,s,u){return s&&s.prototype&&o.forEach((function(e){const o=`${n}.${r}::`+e,i=s.prototype;if(i.hasOwnProperty(e)){const n=t.ObjectGetOwnPropertyDescriptor(i,e);n&&n.value?(n.value=t.wrapWithCurrentZone(n.value,o),t._redefineProperty(s.prototype,e,n)):i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))}else i[e]&&(i[e]=t.wrapWithCurrentZone(i[e],o))})),a.call(e,i,s,u)},t.attachOriginToPatched(e[r],a)}function Q(t,e,n){if(!n||0===n.length)return e;const r=n.filter((e=>e.target===t));if(!r||0===r.length)return e;const o=r[0].ignoreProperties;return e.filter((t=>-1===o.indexOf(t)))}function J(t,e,n,r){if(!t)return;C(t,Q(t,e,n),r)}function $(t){return Object.getOwnPropertyNames(t).filter((t=>t.startsWith("on")&&t.length>2)).map((t=>t.substring(2)))}function tt(t,e){if(A&&!b)return;if(Zone[t.symbol("patchEvents")])return;const n=e.__Zone_ignore_on_properties;let r=[];if(R){const t=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const e=B()?[{target:t,ignoreProperties:["error"]}]:[];J(t,$(t),n?n.concat(e):n,i(t))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let t=0;t<r.length;t++){const o=e[r[t]];o&&o.prototype&&J(o.prototype,$(o.prototype),n)}}Zone.__load_patch("util",((t,e,n)=>{const i=$(t);n.patchOnProperties=C,n.patchMethod=D,n.bindArguments=g,n.patchMacroTask=M;const l=e.__symbol__("BLACK_LISTED_EVENTS"),p=e.__symbol__("UNPATCHED_EVENTS");t[p]&&(t[l]=t[p]),t[l]&&(e[l]=e[p]=t[l]),n.patchEventPrototype=W,n.patchEventTarget=X,n.isIEOrEdge=j,n.ObjectDefineProperty=o,n.ObjectGetOwnPropertyDescriptor=r,n.ObjectCreate=a,n.ArraySlice=s,n.patchClass=I,n.wrapWithCurrentZone=d,n.filterProperties=Q,n.attachOriginToPatched=U,n._redefineProperty=Object.defineProperty,n.patchCallbacks=q,n.getGlobalObjects=()=>({globalSources:H,zoneSymbolEventNames:F,eventNames:i,isBrowser:R,isMix:b,isNode:A,TRUE_STR:f,FALSE_STR:_,ZONE_SYMBOL_PREFIX:h,ADD_EVENT_LISTENER_STR:u,REMOVE_EVENT_LISTENER_STR:c})}));const et=T("zoneTask");function nt(t,e,n,r){let o=null,i=null;n+=r;const a={};function s(e){const n=e.data;return n.args[0]=function(){return e.invoke.apply(this,arguments)},n.handleId=o.apply(t,n.args),e}function u(e){return i.call(t,e.data.handleId)}o=D(t,e+=r,(n=>function(o,i){if("function"==typeof i[0]){const t={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},n=i[0];i[0]=function(){try{return n.apply(this,arguments)}finally{t.isPeriodic||("number"==typeof t.handleId?delete a[t.handleId]:t.handleId&&(t.handleId[et]=null))}};const o=E(e,i[0],t,s,u);if(!o)return o;const c=o.data.handleId;return"number"==typeof c?a[c]=o:c&&(c[et]=o),c&&c.ref&&c.unref&&"function"==typeof c.ref&&"function"==typeof c.unref&&(o.ref=c.ref.bind(c),o.unref=c.unref.bind(c)),"number"==typeof c||c?c:o}return n.apply(t,i)})),i=D(t,n,(e=>function(n,r){const o=r[0];let i;"number"==typeof o?i=a[o]:(i=o&&o[et],i||(i=o)),i&&"string"==typeof i.type?"notScheduled"!==i.state&&(i.cancelFn&&i.data.isPeriodic||0===i.runCount)&&("number"==typeof o?delete a[o]:o&&(o[et]=null),i.zone.cancelTask(i)):e.apply(t,r)}))}function rt(t,e){if(Zone[e.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:o,FALSE_STR:i,ZONE_SYMBOL_PREFIX:a}=e.getGlobalObjects();for(let t=0;t<n.length;t++){const e=n[t],s=a+(e+i),u=a+(e+o);r[e]={},r[e][i]=s,r[e][o]=u}const s=t.EventTarget;return s&&s.prototype?(e.patchEventTarget(t,e,[s&&s.prototype]),!0):void 0}Zone.__load_patch("legacy",(t=>{const e=t[Zone.__symbol__("legacyPatch")];e&&e()})),Zone.__load_patch("queueMicrotask",((t,e,n)=>{n.patchMethod(t,"queueMicrotask",(t=>function(t,n){e.current.scheduleMicroTask("queueMicrotask",n[0])}))})),Zone.__load_patch("timers",(t=>{const e="set",n="clear";nt(t,e,n,"Timeout"),nt(t,e,n,"Interval"),nt(t,e,n,"Immediate")})),Zone.__load_patch("requestAnimationFrame",(t=>{nt(t,"request","cancel","AnimationFrame"),nt(t,"mozRequest","mozCancel","AnimationFrame"),nt(t,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",((t,e)=>{const n=["alert","prompt","confirm"];for(let r=0;r<n.length;r++){D(t,n[r],((n,r,o)=>function(r,i){return e.current.run(n,t,i,o)}))}})),Zone.__load_patch("EventTarget",((t,e,n)=>{!function(t,e){e.patchEventPrototype(t,e)}(t,n),rt(t,n);const r=t.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(t,n,[r.prototype])})),Zone.__load_patch("MutationObserver",((t,e,n)=>{I("MutationObserver"),I("WebKitMutationObserver")})),Zone.__load_patch("IntersectionObserver",((t,e,n)=>{I("IntersectionObserver")})),Zone.__load_patch("FileReader",((t,e,n)=>{I("FileReader")})),Zone.__load_patch("on_property",((t,e,n)=>{tt(n,t)})),Zone.__load_patch("customElements",((t,e,n)=>{!function(t,e){const{isBrowser:n,isMix:r}=e.getGlobalObjects();if(!n&&!r||!t.customElements||!("customElements"in t))return;e.patchCallbacks(e,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,n)})),Zone.__load_patch("XHR",((t,e)=>{!function(t){const u=t.XMLHttpRequest;if(!u)return;const c=u.prototype;let f=c[l],_=c[p];if(!f){const e=t.XMLHttpRequestEventTarget;if(e){const t=e.prototype;f=t[l],_=t[p]}}const h="readystatechange",d="scheduled";function S(t){const r=t.data,a=r.target;a[i]=!1,a[s]=!1;const u=a[o];f||(f=a[l],_=a[p]),u&&_.call(a,h,u);const c=a[o]=()=>{if(a.readyState===a.DONE)if(!r.aborted&&a[i]&&t.state===d){const n=a[e.__symbol__("loadfalse")];if(0!==a.status&&n&&n.length>0){const o=t.invoke;t.invoke=function(){const n=a[e.__symbol__("loadfalse")];for(let e=0;e<n.length;e++)n[e]===t&&n.splice(e,1);r.aborted||t.state!==d||o.call(t)},n.push(t)}else t.invoke()}else r.aborted||!1!==a[i]||(a[s]=!0)};f.call(a,h,c);return a[n]||(a[n]=t),A.apply(a,r.args),a[i]=!0,t}function v(){}function y(t){const e=t.data;return e.aborted=!0,R.apply(e.target,e.args)}const g=D(c,"open",(()=>function(t,e){return t[r]=0==e[2],t[a]=e[1],g.apply(t,e)})),m=T("fetchTaskAborting"),O=T("fetchTaskScheduling"),A=D(c,"send",(()=>function(t,n){if(!0===e.current[O])return A.apply(t,n);if(t[r])return A.apply(t,n);{const e={target:t,url:t[a],isPeriodic:!1,args:n,aborted:!1},r=E("XMLHttpRequest.send",v,e,S,y);t&&!0===t[s]&&!e.aborted&&r.state===d&&r.invoke()}})),R=D(c,"abort",(()=>function(t,r){const o=t[n];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[m])return R.apply(t,r)}))}(t);const n=T("xhrTask"),r=T("xhrSync"),o=T("xhrListener"),i=T("xhrScheduled"),a=T("xhrURL"),s=T("xhrErrorBeforeScheduled")})),Zone.__load_patch("geolocation",(t=>{t.navigator&&t.navigator.geolocation&&function(t,e){const n=t.constructor.name;for(let o=0;o<e.length;o++){const i=e[o],a=t[i];if(a){if(!m(r(t,i)))continue;t[i]=(t=>{const e=function(){return t.apply(this,g(arguments,n+"."+i))};return U(e,t),e})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])})),Zone.__load_patch("PromiseRejectionEvent",((t,e)=>{function n(e){return function(n){Y(t,e).forEach((r=>{const o=t.PromiseRejectionEvent;if(o){const t=new o(e,{promise:n.promise,reason:n.rejection});r.invoke(t)}}))}}t.PromiseRejectionEvent&&(e[T("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[T("rejectionHandledHandler")]=n("rejectionhandled"))}))}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}return n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n(352)})()));