@embrace-io/web-sdk
Version:
1 lines • 198 kB
JavaScript
var EmbraceWebSdk=function(t){"use strict";var e=new(function(){function t(){}return t.prototype.logException=function(t,e){},t.prototype.message=function(t,e,n){},t}()),n=function(){function t(){}return t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:e},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.logException=function(t,e){this.getDelegate().logException(t,e)},t.prototype.message=function(t,e,n){this.getDelegate().message(t,e,n)},t}(),r=function(){function t(t){var e=t.proxyLogManager,n=this;this.getLogManager=function(){return n._proxyLogManager},this._proxyLogManager=e}return t.getInstance=function(){return this._instance||(this._instance=new t({proxyLogManager:new n})),this._instance},t.prototype.setGlobalLogManager=function(t){this._proxyLogManager.setDelegate(t)},t.prototype.logException=function(t,e){this.getLogManager().logException(t,e)},t.prototype.message=function(t,e,n){this.getLogManager().message(t,e,n)},t}(),o=r.getInstance(),i=new(function(){function t(){this.getSessionId=function(){return null}}return t.prototype.addBreadcrumb=function(t){},t.prototype.addProperty=function(t,e){},t.prototype.endSessionSpan=function(){},t.prototype.endSessionSpanInternal=function(){},t.prototype.getSessionSpan=function(){return null},t.prototype.getSessionStartTime=function(){return null},t.prototype.startSessionSpan=function(){},t.prototype.addSessionStartedListener=function(t){return function(){}},t.prototype.addSessionEndedListener=function(t){return function(){}},t}()),a=function(){function t(){}return t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:i},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.addBreadcrumb=function(t){this.getDelegate().addBreadcrumb(t)},t.prototype.addProperty=function(t,e){this.getDelegate().addProperty(t,e)},t.prototype.endSessionSpan=function(){this.getDelegate().endSessionSpan()},t.prototype.endSessionSpanInternal=function(t){this.getDelegate().endSessionSpanInternal(t)},t.prototype.getSessionId=function(){return this.getDelegate().getSessionId()},t.prototype.getSessionSpan=function(){return this.getDelegate().getSessionSpan()},t.prototype.getSessionStartTime=function(){return this.getDelegate().getSessionStartTime()},t.prototype.startSessionSpan=function(){this.getDelegate().startSessionSpan()},t.prototype.addSessionStartedListener=function(t){return this.getDelegate().addSessionStartedListener(t)},t.prototype.addSessionEndedListener=function(t){return this.getDelegate().addSessionEndedListener(t)},t}(),s=function(){function t(t){var e=t.proxySpanSessionManager,n=this;this.getSpanSessionManager=function(){return n._proxySpanSessionManager},this._proxySpanSessionManager=e}return t.getInstance=function(){return this._instance||(this._instance=new t({proxySpanSessionManager:new a})),this._instance},t.prototype.setGlobalSessionManager=function(t){this._proxySpanSessionManager.setDelegate(t)},t.prototype.addBreadcrumb=function(t){this.getSpanSessionManager().addBreadcrumb(t)},t.prototype.addProperty=function(t,e){this.getSpanSessionManager().addProperty(t,e)},t.prototype.endSessionSpan=function(){this.getSpanSessionManager().endSessionSpan()},t.prototype.endSessionSpanInternal=function(t){this.getSpanSessionManager().endSessionSpanInternal(t)},t.prototype.getSessionId=function(){return this.getSpanSessionManager().getSessionId()},t.prototype.getSessionSpan=function(){return this.getSpanSessionManager().getSessionSpan()},t.prototype.getSessionStartTime=function(){return this.getSpanSessionManager().getSessionStartTime()},t.prototype.startSessionSpan=function(){this.getSpanSessionManager().startSessionSpan()},t.prototype.addSessionStartedListener=function(t){return this.getSpanSessionManager().addSessionStartedListener(t)},t.prototype.addSessionEndedListener=function(t){return this.getSpanSessionManager().addSessionEndedListener(t)},t}(),u=s.getInstance(),c="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},l="1.9.0",p=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var f=function(t){var e=new Set([t]),n=new Set,r=t.match(p);if(!r)return function(){return!1};var o=+r[1],i=+r[2],a=+r[3];if(null!=r[4])return function(e){return e===t};function s(t){return n.add(t),!1}function u(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(p);if(!r)return s(t);var c=+r[1],l=+r[2],f=+r[3];return null!=r[4]||o!==c?s(t):0===o?i===l&&a<=f?u(t):s(t):i<=l?u(t):s(t)}}(l),d=l.split(".")[0],h=Symbol.for("opentelemetry.js.api."+d),g=c;function y(t,e,n,r){var o;void 0===r&&(r=!1);var i=g[h]=null!==(o=g[h])&&void 0!==o?o:{version:l};if(!r&&i[t]){var a=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(a.stack||a.message),!1}if(i.version!==l){a=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+t+" does not match previously registered API v"+l);return n.error(a.stack||a.message),!1}return i[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+l+"."),!0}function _(t){var e,n,r=null===(e=g[h])||void 0===e?void 0:e.version;if(r&&f(r))return null===(n=g[h])||void 0===n?void 0:n[t]}function v(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+l+".");var n=g[h];n&&delete n[t]}var m,b=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},E=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))},T=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 S("debug",this._namespace,t)},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S("error",this._namespace,t)},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S("info",this._namespace,t)},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S("warn",this._namespace,t)},t.prototype.verbose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S("verbose",this._namespace,t)},t}();function S(t,e,n){var r=_("diag");if(r)return n.unshift(e),r[t].apply(r,E([],b(n),!1))}!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"}(m||(m={}));var w=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},O=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))},L=function(){function t(){function t(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=_("diag");if(r)return r[t].apply(r,O([],w(e),!1))}}var e=this;e.setLogger=function(t,n){var r,o,i;if(void 0===n&&(n={logLevel:m.INFO}),t===e){var a=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=a.stack)&&void 0!==r?r:a.message),!1}"number"==typeof n&&(n={logLevel:n});var s=_("diag"),u=function(t,e){function n(n,r){var o=e[n];return"function"==typeof o&&t>=r?o.bind(e):function(){}}return t<m.NONE?t=m.NONE:t>m.ALL&&(t=m.ALL),e=e||{},{error:n("error",m.ERROR),warn:n("warn",m.WARN),info:n("info",m.INFO),debug:n("debug",m.DEBUG),verbose:n("verbose",m.VERBOSE)}}(null!==(o=n.logLevel)&&void 0!==o?o:m.INFO,t);if(s&&!n.suppressOverrideMessage){var c=null!==(i=(new Error).stack)&&void 0!==i?i:"<failed to generate stacktrace>";s.warn("Current logger will be overwritten from "+c),u.warn("Current logger will overwrite one already registered from "+c)}return y("diag",u,e,!0)},e.disable=function(){v("diag",e)},e.createComponentLogger=function(t){return new T(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}(),R=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},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.")},A=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){var e=R(t,2);return[e[0],e[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,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=new t(this._entries);try{for(var a=P(r),s=a.next();!s.done;s=a.next()){var u=s.value;i._entries.delete(u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),C=Symbol("BaggageEntryMetadata"),I=L.instance();function x(t){return void 0===t&&(t={}),new A(new Map(Object.entries(t)))}function N(t){return Symbol.for(t)}var M,D=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}},U=new D,k=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],j=function(){function t(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(console){var r=console[t];if("function"!=typeof r&&(r=console.log),"function"==typeof r)return r.apply(console,e)}}}for(var e=0;e<k.length;e++)this[k[e].n]=t(k[e].c)},B=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)}}(),F=function(){function t(){}return t.prototype.createGauge=function(t,e){return J},t.prototype.createHistogram=function(t,e){return $},t.prototype.createCounter=function(t,e){return Z},t.prototype.createUpDownCounter=function(t,e){return tt},t.prototype.createObservableGauge=function(t,e){return nt},t.prototype.createObservableCounter=function(t,e){return et},t.prototype.createObservableUpDownCounter=function(t,e){return rt},t.prototype.addBatchObservableCallback=function(t,e){},t.prototype.removeBatchObservableCallback=function(t){},t}(),V=function(){},H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.prototype.add=function(t,e){},e}(V),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.prototype.add=function(t,e){},e}(V),X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.prototype.record=function(t,e){},e}(V),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e.prototype.record=function(t,e){},e}(V),q=function(){function t(){}return t.prototype.addCallback=function(t){},t.prototype.removeCallback=function(t){},t}(),W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e}(q),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e}(q),Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B(e,t),e}(q),Y=new F,Z=new H,J=new X,$=new z,tt=new G,et=new W,nt=new K,rt=new Q,ot={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},it={set:function(t,e,n){null!=t&&(t[e]=n)}},at=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},st=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))},ut=function(){function t(){}return t.prototype.active=function(){return U},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,st([n],at(r),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),ct=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},lt=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))},pt="context",ft=new ut,dt=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return y(pt,t,L.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,lt([t,e,n],ct(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return _(pt)||ft},t.prototype.disable=function(){this._getContextManager().disable(),v(pt,L.instance())},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(M||(M={}));var ht="0000000000000000",gt="00000000000000000000000000000000",yt={traceId:gt,spanId:ht,traceFlags:M.NONE},_t=function(){function t(t){void 0===t&&(t=yt),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.addLink=function(t){return this},t.prototype.addLinks=function(t){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}(),vt=N("OpenTelemetry Context Key SPAN");function mt(t){return t.getValue(vt)||void 0}function bt(){return mt(dt.getInstance().active())}function Et(t,e){return t.setValue(vt,e)}function Tt(t){return t.deleteValue(vt)}function St(t,e){return Et(t,new _t(e))}function wt(t){var e;return null===(e=mt(t))||void 0===e?void 0:e.spanContext()}var Ot=/^([0-9a-f]{32})$/i,Lt=/^[0-9a-f]{16}$/i;function Rt(t){return Ot.test(t)&&t!==gt}function Pt(t){return Rt(t.traceId)&&(e=t.spanId,Lt.test(e)&&e!==ht);var e}function At(t){return new _t(t)}var Ct=dt.getInstance(),It=function(){function t(){}return t.prototype.startSpan=function(t,e,n){if(void 0===n&&(n=Ct.active()),Boolean(null==e?void 0:e.root))return new _t;var r,o=n&&wt(n);return"object"==typeof(r=o)&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&&Pt(o)?new _t(o):new _t},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:Ct.active(),u=this.startSpan(t,o,s),c=Et(s,u);return Ct.with(c,a,void 0,u)}},t}();var xt,Nt,Mt,Dt=new It,Ut=function(){function t(t,e,n,r){this._provider=t,this.name=e,this.version=n,this.options=r}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,this.options);return t?(this._delegate=t,this._delegate):Dt},t}(),kt=new(function(){function t(){}return t.prototype.getTracer=function(t,e,n){return new It},t}()),jt=function(){function t(){}return t.prototype.getTracer=function(t,e,n){var r;return null!==(r=this.getDelegateTracer(t,e,n))&&void 0!==r?r:new Ut(this,t,e,n)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:kt},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(t,e,n)},t}();!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xt||(xt={})),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"}(Nt||(Nt={})),function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"}(Mt||(Mt={}));var Bt=dt.getInstance(),Ft=L.instance(),Vt=new(function(){function t(){}return t.prototype.getMeter=function(t,e,n){return Y},t}()),Ht="metrics",Gt=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(t){return y(Ht,t,L.instance())},t.prototype.getMeterProvider=function(){return _(Ht)||Vt},t.prototype.getMeter=function(t,e,n){return this.getMeterProvider().getMeter(t,e,n)},t.prototype.disable=function(){v(Ht,L.instance())},t}().getInstance(),Xt=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),zt=N("OpenTelemetry Baggage Key");function qt(t){return t.getValue(zt)||void 0}function Wt(){return qt(dt.getInstance().active())}function Kt(t,e){return t.setValue(zt,e)}function Qt(t){return t.deleteValue(zt)}var Yt="propagation",Zt=new Xt,Jt=function(){function t(){this.createBaggage=x,this.getBaggage=qt,this.getActiveBaggage=Wt,this.setBaggage=Kt,this.deleteBaggage=Qt}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return y(Yt,t,L.instance())},t.prototype.inject=function(t,e,n){return void 0===n&&(n=it),this._getGlobalPropagator().inject(t,e,n)},t.prototype.extract=function(t,e,n){return void 0===n&&(n=ot),this._getGlobalPropagator().extract(t,e,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){v(Yt,L.instance())},t.prototype._getGlobalPropagator=function(){return _(Yt)||Zt},t}(),$t=Jt.getInstance(),te="trace",ee=function(){function t(){this._proxyTracerProvider=new jt,this.wrapSpanContext=At,this.isSpanContextValid=Pt,this.deleteSpan=Tt,this.getSpan=mt,this.getActiveSpan=bt,this.getSpanContext=wt,this.setSpan=Et,this.setSpanContext=St}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=y(te,this._proxyTracerProvider,L.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return _(te)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){v(te,L.instance()),this._proxyTracerProvider=new jt},t}(),ne=ee.getInstance(),re=function(){function t(t){void 0===t&&(t=yt),this._spanContext=t}return t.prototype.fail=function(t){},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,n){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){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}(),oe=new(function(){function t(){}return t.prototype.startSpan=function(t,e){return new re},t.prototype.setSpan=function(t,e){return U},t.prototype.getSpan=function(t){},t}()),ie=function(){function t(){}return t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:oe},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.startSpan=function(t,e,n){return this.getDelegate().startSpan(t,e,n)},t.prototype.setSpan=function(t,e){return this.getDelegate().setSpan(t,e)},t.prototype.getSpan=function(t){return this.getDelegate().getSpan(t)},t}(),ae=function(){function t(t){var e=t.proxyTraceManager,n=this;this.getTraceManager=function(){return n._proxyTraceManager},this._proxyTraceManager=e}return t.getInstance=function(){return this._instance||(this._instance=new t({proxyTraceManager:new ie})),this._instance},t.prototype.setGlobalTraceManager=function(t){this._proxyTraceManager.setDelegate(t)},t.prototype.startSpan=function(t,e,n){return this.getTraceManager().startSpan(t,e,n)},t.prototype.setSpan=function(t,e){return this.getTraceManager().setSpan(t,e)},t.prototype.getSpan=function(t){return this.getTraceManager().getSpan(t)},t}(),se=ae.getInstance(),ue="enduser.pseudo.id",ce=new(function(){function t(){}return t.prototype.getEmbraceUserId=function(){return""},t.prototype.getUserId=function(){return null},t.prototype.setUserId=function(){},t.prototype.clearUserId=function(){},t}()),le=function(){function t(){}return t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:ce},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getEmbraceUserId=function(){return this.getDelegate().getEmbraceUserId()},t.prototype.getUserId=function(){return this.getDelegate().getUserId()},t.prototype.setUserId=function(t){this.getDelegate().setUserId(t)},t.prototype.clearUserId=function(){this.getDelegate().clearUserId()},t}(),pe=function(){function t(t){var e=t.proxyUserManager;this._proxyUserManager=e}return t.getInstance=function(){return this._instance||(this._instance=new t({proxyUserManager:new le})),this._instance},t.prototype.getUserManager=function(){return this._proxyUserManager},t.prototype.setGlobalUserManager=function(t){this._proxyUserManager.setDelegate(t)},t.prototype.getEmbraceUserId=function(){return this.getUserManager().getEmbraceUserId()},t.prototype.getUserId=function(){return this.getUserManager().getUserId()},t.prototype.setUserId=function(t){this.getUserManager().setUserId(t)},t.prototype.clearUserId=function(){this.getUserManager().clearUserId()},t}(),fe=pe.getInstance(),de=function(t,e){return de=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])},de(t,e)};function he(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}de(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ge,ye=function(){return ye=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},ye.apply(this,arguments)};function _e(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())}))}function ve(t,e){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function me(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 be(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 Ee(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))}"function"==typeof SuppressedError&&SuppressedError,function(t){t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TRACE=1]="TRACE",t[t.TRACE2=2]="TRACE2",t[t.TRACE3=3]="TRACE3",t[t.TRACE4=4]="TRACE4",t[t.DEBUG=5]="DEBUG",t[t.DEBUG2=6]="DEBUG2",t[t.DEBUG3=7]="DEBUG3",t[t.DEBUG4=8]="DEBUG4",t[t.INFO=9]="INFO",t[t.INFO2=10]="INFO2",t[t.INFO3=11]="INFO3",t[t.INFO4=12]="INFO4",t[t.WARN=13]="WARN",t[t.WARN2=14]="WARN2",t[t.WARN3=15]="WARN3",t[t.WARN4=16]="WARN4",t[t.ERROR=17]="ERROR",t[t.ERROR2=18]="ERROR2",t[t.ERROR3=19]="ERROR3",t[t.ERROR4=20]="ERROR4",t[t.FATAL=21]="FATAL",t[t.FATAL2=22]="FATAL2",t[t.FATAL3=23]="FATAL3",t[t.FATAL4=24]="FATAL4"}(ge||(ge={}));var Te=function(){function t(){}return t.prototype.emit=function(t){},t}(),Se=new Te,we=function(){function t(){}return t.prototype.getLogger=function(t,e,n){return new Te},t}(),Oe=new we,Le=function(){function t(t,e,n,r){this._provider=t,this.name=e,this.version=n,this.options=r}return t.prototype.emit=function(t){this._getLogger().emit(t)},t.prototype._getLogger=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Se},t}(),Re=function(){function t(){}return t.prototype.getLogger=function(t,e,n){var r;return null!==(r=this.getDelegateLogger(t,e,n))&&void 0!==r?r:new Le(this,t,e,n)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Oe},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateLogger=function(t,e,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getLogger(t,e,n)},t}(),Pe="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},Ae=Symbol.for("io.opentelemetry.js.api.logs"),Ce=Pe;var Ie,xe,Ne=function(){function t(){this._proxyLoggerProvider=new Re}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalLoggerProvider=function(t){return Ce[Ae]?this.getLoggerProvider():(Ce[Ae]=(e=1,n=t,r=Oe,function(t){return t===e?n:r}),this._proxyLoggerProvider.setDelegate(t),t);var e,n,r},t.prototype.getLoggerProvider=function(){var t,e;return null!==(e=null===(t=Ce[Ae])||void 0===t?void 0:t.call(Ce,1))&&void 0!==e?e:this._proxyLoggerProvider},t.prototype.getLogger=function(t,e,n){return this.getLoggerProvider().getLogger(t,e,n)},t.prototype.disable=function(){delete Ce[Ae],this._proxyLoggerProvider=new Re},t}(),Me=Ne.getInstance();var De=function(){if(xe)return Ie;function t(t){return"function"==typeof t}xe=1;var e=console.error.bind(console);function n(t,e,n){var r=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}function r(n){n&&n.logger&&(t(n.logger)?e=n.logger:e("new logger isn't a function, not replacing"))}function o(r,o,i){if(r&&r[o]){if(!i)return e("no wrapper function"),void e((new Error).stack);if(t(r[o])&&t(i)){var a=r[o],s=i(a,o);return n(s,"__original",a),n(s,"__unwrap",(function(){r[o]===s&&n(r,o,a)})),n(s,"__wrapped",!0),n(r,o,s),s}e("original object and wrapper must be functions")}else e("no original function "+o+" to wrap")}function i(t,n){return t&&t[n]?t[n].__unwrap?t[n].__unwrap():void e("no original to unwrap to -- has "+n+" already been unwrapped?"):(e("no function to unwrap."),void e((new Error).stack))}return r.wrap=o,r.massWrap=function(t,n,r){if(!t)return e("must provide one or more modules to patch"),void e((new Error).stack);Array.isArray(t)||(t=[t]),n&&Array.isArray(n)?t.forEach((function(t){n.forEach((function(e){o(t,e,r)}))})):e("must provide one or more functions to wrap on modules")},r.unwrap=i,r.massUnwrap=function(t,n){if(!t)return e("must provide one or more modules to patch"),void e((new Error).stack);Array.isArray(t)||(t=[t]),n&&Array.isArray(n)?t.forEach((function(t){n.forEach((function(e){i(t,e)}))})):e("must provide one or more functions to unwrap on modules")},Ie=r}(),Ue="exception.type",ke="exception.message",je="http.method",Be="http.url",Fe="http.host",Ve="http.scheme",He="http.status_code",Ge="http.user_agent",Xe="http.request_content_length_uncompressed",ze="http.response_content_length",qe="telemetry.sdk.name",We="telemetry.sdk.language",Ke="telemetry.sdk.version",Qe="http.request.method",Ye="http.response.status_code",Ze="url.full",Je=N("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function $e(t){return t.setValue(Je,!0)}function tn(t){return!0===t.getValue(Je)}var en="baggage",nn=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 rn(t){var e=t.split(";");if(!(e.length<=0)){var n=e.shift();if(n){var r=n.indexOf("=");if(!(r<=0)){var o,i,a=decodeURIComponent(n.substring(0,r).trim()),s=decodeURIComponent(n.substring(r+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(I.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:C,toString:function(){return i}}),{key:a,value:s,metadata:o}}}}}var on=function(){function t(){}return t.prototype.inject=function(t,e,n){var r=$t.getBaggage(t);if(r&&!tn(t)){var o=function(t){return t.getAllEntries().map((function(t){var e=nn(t,2),n=e[0],r=e[1],o=encodeURIComponent(n)+"="+encodeURIComponent(r.value);return void 0!==r.metadata&&(o+=";"+r.metadata.toString()),o}))}(r).filter((function(t){return t.length<=4096})).slice(0,180),i=function(t){return t.reduce((function(t,e){var n=t+(""!==t?",":"")+e;return n.length>8192?t:n}),"")}(o);i.length>0&&n.set(e,en,i)}},t.prototype.extract=function(t,e,n){var r=n.get(e,en),o=Array.isArray(r)?r.join(","):r;if(!o)return t;var i={};return 0===o.length?t:(o.split(",").forEach((function(t){var e=rn(t);if(e){var n={value:e.value};e.metadata&&(n.metadata=e.metadata),i[e.key]=n}})),0===Object.entries(i).length?t:$t.setBaggage(t,$t.createBaggage(i)))},t.prototype.fields=function(){return[en]},t}(),an=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.")},sn=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 un(t){var e,n,r={};if("object"!=typeof t||null==t)return r;try{for(var o=an(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=sn(i.value,2),s=a[0],u=a[1];cn(s)?ln(u)?Array.isArray(u)?r[s]=u.slice():r[s]=u:Ft.warn("Invalid attribute value set for key: "+s):Ft.warn("Invalid attribute key: "+s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function cn(t){return"string"==typeof t&&t.length>0}function ln(t){return null==t||(Array.isArray(t)?function(t){var e,n,r;try{for(var o=an(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!r){if(pn(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):pn(t))}function pn(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var fn,dn=function(t){Ft.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 hn(t){try{dn(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"}(fn||(fn={}));var gn=["OTEL_SDK_DISABLED"];function yn(t){return gn.indexOf(t)>-1}var _n=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function vn(t){return _n.indexOf(t)>-1}var mn=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function bn(t){return mn.indexOf(t)>-1}var En=1/0,Tn=128,Sn={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:m.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:En,OTEL_ATTRIBUTE_COUNT_LIMIT:Tn,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:En,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Tn,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:En,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Tn,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:fn.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function wn(t,e,n){if(void 0!==n[t]){var r=String(n[t]);e[t]="true"===r.toLowerCase()}}function On(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 Ln(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 Rn={ALL:m.ALL,VERBOSE:m.VERBOSE,DEBUG:m.DEBUG,INFO:m.INFO,WARN:m.WARN,ERROR:m.ERROR,NONE:m.NONE};function Pn(t,e,n){var r=n[t];if("string"==typeof r){var o=Rn[r.toUpperCase()];null!=o&&(e[t]=o)}}function An(t){var e={};for(var n in Sn){var r=n;if("OTEL_LOG_LEVEL"===r)Pn(r,e,t);else if(yn(r))wn(r,e,t);else if(vn(r))On(r,e,t);else if(bn(r))Ln(r,e,t);else{var o=t[r];null!=o&&(e[r]=String(o))}}return e}var Cn="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{};function In(){var t=An(Cn);return Object.assign({},Sn,t)}function xn(){return An(Cn)}function Nn(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Mn(t){for(var e=new Uint8Array(t.length/2),n=0,r=0;r<t.length;r+=2){var o=Nn(t.charCodeAt(r)),i=Nn(t.charCodeAt(r+1));e[n++]=o<<4|i}return e}var Dn,Un=performance,kn=((Dn={})[qe]="opentelemetry",Dn["process.runtime.name"]="browser",Dn[We]="webjs",Dn[Ke]="1.30.1",Dn);var jn,Bn=Math.pow(10,6),Fn=Math.pow(10,9);function Vn(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*Bn)]}function Hn(){var t=Un.timeOrigin;if("number"!=typeof t){var e=Un;t=e.timing&&e.timing.fetchStart}return t}function Gn(t){return Qn(Vn(Hn()),Vn("number"==typeof t?t:Un.now()))}function Xn(t){if(Wn(t))return t;if("number"==typeof t)return t<Hn()?Gn(t):Vn(t);if(t instanceof Date)return Vn(t.getTime());throw TypeError("Invalid input type")}function zn(t){return t[0]*Fn+t[1]}function qn(t){return 1e3*t[0]+t[1]/1e6}function Wn(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function Kn(t){return Wn(t)||"number"==typeof t||t instanceof Date}function Qn(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Fn&&(n[1]-=Fn,n[0]+=1),n}!function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"}(jn||(jn={}));var Yn=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.")},Zn=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,o;try{for(var i=Yn(this._propagators),a=i.next();!a.done;a=i.next()){var s=a.value;try{s.inject(t,e,n)}catch(t){Ft.warn("Failed to inject with "+s.constructor.name+". Err: "+t.message)}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}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){Ft.warn("Failed to extract with "+r.constructor.name+". Err: "+t.message)}return t}),t)},t.prototype.fields=function(){return this._fields.slice()},t}(),Jn="[_0-9a-z-*/]",$n=new RegExp("^(?:"+("[a-z]"+Jn+"{0,255}")+"|"+("[a-z0-9]"+Jn+"{0,240}@[a-z]"+Jn+"{0,13}")+")$"),tr=/^[ -~]{0,255}[!-~]$/,er=/,|=/;var nr=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 $n.test(t)})(o)&&function(t){return tr.test(t)&&!er.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}(),rr="traceparent",or="tracestate",ir=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");var ar,sr,ur=function(){function t(){}return t.prototype.inject=function(t,e,n){var r=ne.getSpanContext(t);if(r&&!tn(t)&&Pt(r)){var o="00-"+r.traceId+"-"+r.spanId+"-0"+Number(r.traceFlags||M.NONE).toString(16);n.set(e,rr,o),r.traceState&&n.set(e,or,r.traceState.serialize())}},t.prototype.extract=function(t,e,n){var r=n.get(e,rr);if(!r)return t;var o=Array.isArray(r)?r[0]:r;if("string"!=typeof o)return t;var i=function(t){var e=ir.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}(o);if(!i)return t;i.isRemote=!0;var a=n.get(e,or);if(a){var s=Array.isArray(a)?a.join(","):a;i.traceState=new nr("string"==typeof s?s:void 0)}return ne.setSpanContext(t,i)},t.prototype.fields=function(){return[rr,or]},t}(),cr="[object Null]",lr="[object Undefined]",pr=Function.prototype.toString,fr=pr.call(Object),dr=(ar=Object.getPrototypeOf,sr=Object,function(t){return ar(sr(t))}),hr=Object.prototype,gr=hr.hasOwnProperty,yr=Symbol?Symbol.toStringTag:void 0,_r=hr.toString;function vr(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||"[object Object]"!==function(t){if(null==t)return void 0===t?lr:cr;return yr&&yr in Object(t)?function(t){var e=gr.call(t,yr),n=t[yr],r=!1;try{t[yr]=void 0,r=!0}catch(t){}var o=_r.call(t);r&&(e?t[yr]=n:delete t[yr]);return o}(t):function(t){return _r.call(t)}(t)}(t))return!1;var e=dr(t);if(null===e)return!0;var n=gr.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&pr.call(n)===fr}function mr(){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=Er(n,t.shift(),0,r);return n}function br(t){return Sr(t)?t.slice():t}function Er(t,e,n,r){var o;if(void 0===n&&(n=0),!(n>20)){if(n++,Lr(t)||Lr(e)||wr(e))o=br(e);else if(Sr(t)){if(o=t.slice(),Sr(e))for(var i=0,a=e.length;i<a;i++)o.push(br(e[i]));else if(Or(e))for(i=0,a=(s=Object.keys(e)).length;i<a;i++){o[u=s[i]]=br(e[u])}}else if(Or(t))if(Or(e)){if(!function(t,e){if(!vr(t)||!vr(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(Lr(c))void 0===c?delete o[u]:o[u]=c;else{var l=o[u],p=c;if(Tr(t,u,r)||Tr(e,u,r))delete o[u];else{if(Or(l)&&Or(p)){var f=r.get(l)||[],d=r.get(p)||[];f.push({obj:t,key:u}),d.push({obj:e,key:u}),r.set(l,f),r.set(p,d)}o[u]=Er(o[u],c,n,r)}}}}else o=e;return o}}function Tr(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 Sr(t){return Array.isArray(t)}function wr(t){return"function"==typeof t}function Or(t){return!Lr(t)&&!Sr(t)&&!wr(t)&&"object"==typeof t}function Lr(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||t instanceof RegExp||null===t}var Rr=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)}}(),Pr=function(t){function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return Rr(e,t),e}(Error);function Ar(t,e){var n,r=new Promise((function(t,r){n=setTimeout((function(){r(new Pr("Operation timed out."))}),e)}));return Promise.race([t,r]).then((function(t){return clearTimeout(n),t}),(function(t){throw clearTimeout(n),t}))}var Cr=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 Ir(t,e){return"string"==typeof e?t===e:!!t.match(e)}function xr(t,e){var n,r;if(!e)return!1;try{for(var o=Cr(e),i=o.next();!i.done;i=o.next()){if(Ir(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}var Nr=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}(),Mr=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},Dr=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))},Ur=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Nr}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,Dr([this._that],Mr(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}();var kr={_export:function(t,e){return new Promise((function(n){Bt.with($e(Bt.active()),(function(){t.export(e,(function(t){n(t)}))}))}))}};var jr=function(){return jr=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},jr.apply(this,arguments)},Br=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{