vendor: 4,850 bytes, line 1
1import{aB as Eo,aC as gr,aD as To,aE as po}from"./index-d9d2400b.js";var ho=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},jt="1.4.1",Qn=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function So(t){var e=new Set([t]),n=new Set,r=t.match(Qn);if(!r)return function(){return!1};var o={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(o.prerelease!=null)return function(c){return c===t};function i(s){return n.add(s),!1}function a(s){return e.add(s),!0}return function(c){if(e.has(c))return!0;if(n.has(c))return!1;var u=c.match(Qn);if(!u)return i(c);var _={major:+u[1],minor:+u[2],patch:+u[3],prerelease:u[4]};return _.prerelease!=null||o.major!==_.major?i(c):o.major===0?o.minor===_.minor&&o.patch<=_.patch?a(c):i(c):o.minor<=_.minor?a(c):i(c)}}var vo=So(jt),Oo=jt.split(".")[0],fe=Symbol.for("opentelemetry.js.api."+Oo),Ee=ho;function ve(t,e,n,r){var o;r===void 0&&(r=!1);var i=Ee[fe]=(o=Ee[fe])!==null&&o!==void 0?o:{version:jt};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!==jt){var a=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+t+" does not match previously registered API v"+jt);return n.error(a.stack||a.message),!1}return i[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+jt+"."),!0}function Yt(t){var e,n,r=(e=Ee[fe])===null||e===void 0?void 0:e.version;if(!(!r||!vo(r)))return(n=Ee[fe])===null||n===void 0?void 0:n[t]}function Oe(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+jt+".");var n=Ee[fe];n&&delete n[t]}var Ao=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},go=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},yo=function(){function t(e){this._namespace=e.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return re("debug",this._namespace,e)},t.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return re("error",this._namespace,e)},t.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return re("info",this._namespace,e)},t.prototype.warn=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return re("warn",this._namespace,e)},t.prototype.verbose=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return re("verbose",this._namespace,e)},t}();function re(t,e,n){var r=Yt("diag");if(r)return n.unshift(e),r[t].apply(r,go([],Ao(n),!1))}var nt;(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"})(nt||(nt={}));function mo(t,e){t<nt.NONE?t=nt.NONE:t>nt.ALL&&(t=nt.ALL),e=e||{};function n(r,o){var i=e[r];return typeof i=="function"&&t>=o?i.bind(e):function(){}}return{error:n("error",nt.ERROR),warn:n("warn",nt.WARN),info:n("info",nt.INFO),debug:n("debug",nt.DEBUG),verbose:n("verbose",nt.VERBOSE)}}var No=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Ro=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},Co="diag",gt=function(){function t(){function e(o){return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];var s=Yt("diag");if(s)return s[o].apply(s,Ro([],No(i),!1))}}var n=this,r=function(o,i){var a,s,c;if(i===void 0&&(i={logLevel:nt.INFO}),o===n){var u=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((a=u.stack)!==null&&a!==void 0?a:u.message),!1}typeof i=="number"&&(i={logLevel:i});var _=Yt("diag"),T=mo((s=i.logLevel)!==null&&s!==void 0?s:nt.INFO,o);if(_&&!i.suppressOverrideMessage){var p=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";_.warn("Current logger will be overwritten from "+p),T.warn("Current logger will over
1write one already registered from "+p)}return ve("diag",T,n,!0)};n.setLogger=r,n.disable=function(){Oe(Co,n)},n.createComponentLogger=function(o){return new yo(o)},n.verbose=e("verbose"),n.debug=e("debug"),n.info=e("info"),n.warn=e("warn"),n.error=e("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),bo=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Io=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")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.")},Po=function(){function t(e){this._entries=e?new Map(e):new Map}return t.prototype.getEntry=function(e){var n=this._entries.get(e);if(n)return Object.assign({},n)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var n=bo(e,2),r=n[0],o=n[1];return[r,o]})},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=Io(r),s=a.next();!s.done;s=a.next()){var c=s.value;i._entries.delete(c)}}catch(u){e={error:u}}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}(),Do=Symbol("BaggageEntryMetadata"),Lo=gt.instance();function Mo(t){return t===void 0&&(t={}),new Po(new Map(Object.entries(t)))}function wo(t){return typeof t!="string"&&(Lo.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:Do,toString:function(){return t}}}function bn(t){return Symbol.for(t)}var Uo=function(){function t(e){var n=this;n._currentContext=e?new Map(e):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,o){var i=new t(n._currentContext);return i._currentContext.set(r,o),i},n.deleteValue=function(r){var o=new t(n._currentContext);return o._currentContext.delete(r),o}}return t}(),At=new Uo,te=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ko=function(){function t(){}return t.prototype.createHistogram=function(e,n){return Xo},t.prototype.createCounter=function(e,n){return Fo},t.prototype.createUpDownCounter=function(e,n){return Zo},t.prototype.createObservableGauge=function(e,n){return Ko},t.prototype.createObservableCounter=function(e,n){return Wo},t.prototype.createObservableUpDownCounter=function(e,n){return $o},t.prototype.addBatchObservableCallback=function(e,n){},t.prototype.removeBatchObservableCallback=function(e){},t}(),In=function(){function t(){}return t}(),Bo=function(t){te(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,r){},e}(In),Go=function(t){te(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,r){},e}(In),xo=function(t){te(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,r){},e}(In),Pn=function(){function t(){}return t.prototype.addCallback=function(e){},t.prototype.removeCallback=function(e){},t}(),Ho=function(t){te(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Pn),Vo=function(t){te(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Pn),jo=function(t){te(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Pn),Yo=new ko,Fo=new Bo,Xo=new xo,Zo=new Go,Wo=new Ho,Ko=new Vo,$o=new jo,zo={get:function(t,e){if(t!=null)return t[e]},keys:function(t){return t==null?[]:Object.keys(t)}},qo={set:function(t,e,n){t!=null&&(t[e]=n)}},Qo=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Jo=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},ti=function(){function t(){}return t.prototype.active=function(){return At},t.prototype.with=function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];return n.call.apply(n,Jo([r],Qo(o),!1))},t.prototype.bind=function(e,n){return n},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),ei=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},ni=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},Qe="context",ri=new ti,Fe=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(e){return ve(Qe,e,gt.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(e,n,r){for(var o,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(o=this._getContextManager()).with.apply(o,ni([e,n,r],ei(i),!1))},t.prototype.bind=function(e,n){return this._getContextManager().bind(e,n)},t.prototype._getContextManager=function(){return Yt(Qe)||ri},t.prototype.disable=function(){this._getContextManager().disable(),Oe(Qe,gt.instance())},t}(),Dt;(function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})(Dt||(Dt={}));var yr="0000000000000000",mr="00000000000000000000000000000000",Nr={traceId:mr,spanId:yr,traceFlags:Dt.NONE},ae=function(){function t(e){e===void 0&&(e=Nr),this._spanContext=e}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return this},t.prototype.setAttributes=function(e){return this},t.prototype.addEvent=function(e,n){return this},t.prototype.setStatus=function(e){return this},t.prototype.updateName=function(e){return this},t.prototype.end=function(e){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(e,n){},t}(),Dn=bn("OpenTelemetry Context Key SPAN");function Ln(t){return t.getValue(Dn)||void 0}function oi(){return Ln(Fe.getInstance().active())}function Mn(t,e){return t.setValue(Dn,e)}function ii(t){return t.deleteValue(Dn)}function ai(t,e){return Mn(t,new ae(e))}function Rr(t){var e;return(e=Ln(t))===null||e===void 0?void 0:e.spanContext()}var si=/^([0-9a-f]{32})$/i,ui=/^[0-9a-f]{16}$/i;function Cr(t){return si.test(t)&&t!==mr}function ci(t){return ui.test(t)&&t!==yr}function Xe(t){return Cr(t.traceId)&&ci(t.spanId)}function _i(t){return new ae(t)}var Je=Fe.getInstance(),br=function(){function t(){}return t.prototype.startSpan=function(e,n,r){r===void 0&&(r=Je.active());var o=!!(n!=null&&n.root);if(o)return new ae;var i=r&&Rr(r);return li(i)&&Xe(i)?new ae(i):new ae},t.prototype.startActiveSpan=function(e,n,r,o){var i,a,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(i=n,s=r):(i=n,a=r,s=o);var c=a!=null?a:Je.active(),u=this.startSpan(e,i,c),_=Mn(c,u);return Je.with(_,s,void 0,u)}},t}();function li(t){return typeof t=="object"&&typeof t.spanId=="string"&&typeof t.traceId=="string"&&typeof t.traceFlags=="number"}var fi=new br,Ei=function(){function t(e,n,r,o){this._provider=e,this.name=n,this.version=r,this.options=o}return t.prototype.startSpan=function(e,n,r){return this._getTracer().startSpan(e,n,r)},t.prototype.startActiveSpan=function(e,n,r,o){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},t.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):fi},t}(),di=function(){function t(){}return t.prototype.getTracer=function(e,n,r){return new br},t}(),Ti=new di,Jn=function(){function t(){}return t.prototype.getTracer=function(e,n,r){var o;return(o=this.getDelegateTracer(e,n,r))!==null&&o!==void 0?o:new Ei(this,e,n,r)},t.prototype.getDelegate=function(){var e;return(e=this._delegate)!==null&&e!==void 0?e:Ti},t.prototype.setDelegate=function(e){this._delegate=e},t.prototype.getDelegateTracer=function(e,n,r){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(e,n,r)},t}(),Pe;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Pe||(Pe={}));var de;(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"})(de||(de={}));var $=Fe.getInstance(),x=gt.instance(),pi=function(){function t(){}return t.prototype.getMeter=function(e,n,r){return Yo},t}(),hi=new pi,tn="metrics",Si=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(e){return ve(tn,e,gt.instance())},t.prototype.getMeterProvider=function(){return Yt(tn)||hi},t.prototype.getMeter=function(e,n,r){return this.getMeterProvider().getMeter(e,n,r)},t.prototype.disable=function(){Oe(tn,gt.instance())},t}(),Ze=Si.getInstance(),vi=function(){function t(){}return t.prototype.inject=function(e,n){},t.prototype.extract=function(e,n){return e},t.prototype.fields=function(){return[]},t}(),wn=bn("OpenTelemetry Baggage Key");function Ir(t){return t.getValue(wn)||void 0}function Oi(){return Ir(Fe.getInstance().active())}function Ai(t,e){return t.setValue(wn,e)}function gi(t){return t.deleteValue(wn)}var en="propagation",yi=new vi,mi=function(){function t(){this.createBaggage=Mo,this.getBaggage=Ir,this.getActiveBaggage=Oi,this.setBaggage=Ai,this.deleteBaggage=gi}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(e){return ve(en,e,gt.instance())},t.prototype.inject=function(e,n,r){return r===void 0&&(r=qo),this._getGlobalPropagator().inject(e,n,r)},t.prototype.extract=function(e,n,r){return r===void 0&&(r=zo),this._getGlobalPropagator().extract(e,n,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){Oe(en,gt.instance())},t.prototype._getGlobalPropagator=function(){return Yt(en)||yi},t}(),ht=mi.getInstance(),nn="trace",Ni=function(){function t(){this._proxyTracerProvider=new Jn,this.wrapSpanContext=_i,this.isSpanContextValid=Xe,this.deleteSpan=ii,this.get
1Span=Ln,this.getActiveSpan=oi,this.getSpanContext=Rr,this.setSpan=Mn,this.setSpanContext=ai}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(e){var n=ve(nn,this._proxyTracerProvider,gt.instance());return n&&this._proxyTracerProvider.setDelegate(e),n},t.prototype.getTracerProvider=function(){return Yt(nn)||this._proxyTracerProvider},t.prototype.getTracer=function(e,n){return this.getTracerProvider().getTracer(e,n)},t.prototype.disable=function(){Oe(nn,gt.instance()),this._proxyTracerProvider=new Jn},t}(),et=Ni.getInstance(),Kt={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"},Pr=bn("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Ri(t){return t.setValue(Pr,!0)}function Un(t){return t.getValue(Pr)===!0}var Ci="=",Tn=";",pn=",",rn="baggage",bi=180,Ii=4096,Pi=8192,Di=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function Li(t){return t.reduce(function(e,n){var r=""+e+(e!==""?pn:"")+n;return r.length>Pi?e:r},"")}function Mi(t){return t.getAllEntries().map(function(e){var n=Di(e,2),r=n[0],o=n[1],i=encodeURIComponent(r)+"="+encodeURIComponent(o.value);return o.metadata!==void 0&&(i+=Tn+o.metadata.toString()),i})}function wi(t){var e=t.split(Tn);if(!(e.length<=0)){var n=e.shift();if(n){var r=n.indexOf(Ci);if(!(r<=0)){var o=decodeURIComponent(n.substring(0,r).trim()),i=decodeURIComponent(n.substring(r+1).trim()),a;return e.length>
10&&(a=wo(e.join(Tn))),{key:o,value:i,metadata:a}}}}}var Ui=function(){function t(){}return t.prototype.inject=function(e,n,r){var o=ht.getBaggage(e);if(!(!o||Un(e))){var i=Mi(o).filter(function(s){return s.length<=Ii}).slice(0,bi),a=Li(i);a.length>0&&r.set(n,rn,a)}},t.prototype.extract=function(e,n,r){var o=r.get(n,rn),i=Array.isArray(o)?o.join(pn):o;if(!i)return e;var a={};if(i.length===0)return e;var s=i.split(pn);return s.forEach(function(c){var u=wi(c);if(u){var _={value:u.value};u.metadata&&(_.metadata=u.metadata),a[u.key]=_}}),Object.entries(a).length===0?e:ht.setBaggage(e,ht.createBaggage(a))},t.prototype.fields=function(){return[rn]},t}(),Dr=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")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.")},ki=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function Re(t){var e,n,r={};if(typeof t!="object"||t==null)return r;try{for(var o=Dr(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=ki(i.value,2),s=a[0],c=a[1];if(!Bi(s)){x.warn("Invalid attribute key: "+s);continue}if(!Lr(c)){x.warn("Invalid attribute value set for key: "+s);continue}Array.isArray(c)?r[s]=c.slice():r[s]=c}}catch(u){e={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function Bi(t){return typeof t=="string"&&t.length>0}function Lr(t){return t==null?!0:Array.isArray(t)?Gi(t):Mr(t)}function Gi(t){var e,n,r;try{for(var o=Dr(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(a!=null){if(!r){if(Mr(a)){r=typeof a;continue}return!1}if(typeof a!==r)return!1}}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!0}function Mr(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function xi(){return function(t){x.error(Hi(t))}}function Hi(t){return typeof t=="string"?t:JSON.stringify(Vi(t))}function Vi(t){for(var e={},n=t;n!==null;)Object.getOwnPropertyNames(n).forEach(function(r){if(!e[r]){var o=n[r];o&&(e[r]=String(o))}}),n=Object.getPrototypeOf(n);return e}var ji=xi();function De(t){try{ji(t)}catch(e){}}var Ot;(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"})(Ot||(Ot={}));var se=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Yi=",",Fi=["OTEL_SDK_DISABLED"];function Xi(t){return Fi.indexOf(t)>-1}var Zi=["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 Wi(t){return Zi.indexOf(t)>-1}var Ki=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function $i(t){return Ki.indexOf(t)>-1}var Ce=1/0,be=128,zi=128,qi=128,wr={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/s
1pans",OTEL_LOG_LEVEL:nt.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ce,OTEL_ATTRIBUTE_COUNT_LIMIT:be,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ce,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:be,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ce,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:be,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:zi,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:qi,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ot.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"};function Qi(t,e,n){if(typeof n[t]!="undefined"){var r=String(n[t]);e[t]=r.toLowerCase()==="true"}}function Ji(t,e,n,r,o){if(r===void 0&&(r=-1/0),o===void 0&&(o=1/0),typeof n[t]!="undefined"){var i=Number(n[t]);isNaN(i)||(i<r?e[t]=r:i>o?e[t]=o:e[t]=i)}}function ta(t,e,n,r){r===void 0&&(r=Yi);var o=n[t];typeof o=="string"&&(e[t]=o.split(r).map(function(i){return i.trim()}))}var ea={ALL:nt.ALL,VERBOSE:nt.VERBOSE,DEBUG:nt.DEBUG,INFO:nt.INFO,WARN:nt.WARN,ERROR:nt.ERROR,NONE:nt.NONE};function na(t,e,n){var r=n[t];if(typeof r=="string"){var o=ea[r.toUpperCase()];o!=null&&(e[t]=o)}}function hn(t){var e={};for(var n in wr){var r=n;switch(r){case"OTEL_LOG_LEVEL":na(r,e,t);break;default:if(Xi(r))Qi(r,e,t);else if(Wi(r))Ji(r,e,t);else if($i(r))ta(r,e,t);else{var o=t[r];typeof o!="undefined"&&o!==null&&(e[r]=String(o))}}}return e}function ra(){return typeof process!="undefined"&&process&&process.env?hn(process.env):hn(se)}function _t(){var t=hn(se);return Object.assign({},wr,t)}var zt=performance,oa="1.15.2",st={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"},lt={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.ver
1sion",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"},ia={CPP:"cpp",DOTNET:"dotnet",ERLANG:"erlang",GO:"go",JAVA:"java",NODEJS:"nodejs",PHP:"php",PYTHON:"python",RUBY:"ruby",WEBJS:"webjs"},Zt,on=(Zt={},Zt[lt.TELEMETRY_SDK_NAME]="opentelemetry",Zt[lt.PROCESS_RUNTIME_NAME]="browser",Zt[lt.TELEMETRY_SDK_LANGUAGE]=ia.WEBJS,Zt[lt.TELEMETRY_SDK_VERSION]=oa,Zt);var aa=9,sa=6,ua=Math.pow(10,sa),Le=Math.pow(10,aa);function bt(t){var e=t/1e3,n=Math.trunc(e),r=Math.round(t%1e3*ua);return[n,r]}function kn(){var t=zt.timeOrigin;if(typeof t!="number"){var e=zt;t=e.timing&&e.timing.fetchStart}return t}function Me(t){var e=bt(kn()),n=bt(typeof t=="number"?t:zt.now());return Ur(e,n)}function ue(t){if(Bn(t))return t;if(typeof t=="number")return t<kn()?Me(t):bt(t);if(t instanceof Date)return bt(t.getTime());throw TypeError("Invalid input type")}function ca(t,e){var n=e[0]-t[0],r=e[1]-t[1];return r<0&&(n-=1,r+=Le),[n,r]}function kt(t){return t[0]*Le+t[1]}function Bn(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function tr(t){return Bn(t)||typeof t=="number"||t instanceof Date}function Ur(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Le&&(n[1]-=Le,n[0]+=1),n}var we;(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(we||(we={}));var _a=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")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.")},la=function(){function t(e){e===void 0&&(e={});var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(r){return typeof r.fields=="function"?r.fields():[]}).reduce(function(r,o){return r.concat(o)},[])))}return t.prototype.inject=function(e,n,r){var o,i;try{for(var a=_a(this._propagators),s=a.next();!s.done;s=a.next()){var c=s.value;try{c.inject(e,n,r)}catch(u){x.warn("Failed to inject with "+c.constructor.name+". Err: "+u.message)}}}catch(u){o={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}},t.prototype.extract=function(e,n,r){return this._propagators.reduce(function(o,i){try{return i.extract(o,n,r)}catch(a){x.warn("Failed to inject with "+i.constructor.name+". Err: "+a.message)}return o},e)},t.prototype.fields=function(){return this._fields.slice()},t}(),Sn="[_0-9a-z-*/]",fa="[a-z]"+Sn+"{0,255}",Ea="[a-z0-9]"+Sn+"{0,240}
1@[a-z]"+Sn+"{0,13}",da=new RegExp("^(?:"+fa+"|"+Ea+")$"),Ta=/^[ -~]{0,255}[!-~]$/,pa=/,|=/;function ha(t){return da.test(t)}function Sa(t){return Ta.test(t)&&!pa.test(t)}var er=32,va=512,nr=",",rr="=",Oa=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,n){var r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,n),r},t.prototype.unset=function(e){var n=this._clone();return n._internalState.delete(e),n},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(n,r){return n.push(r+rr+e.get(r)),n},[]).join(nr)},t.prototype._parse=function(e){e.length>va||(this._internalState=e.split(nr).reverse().reduce(function(n,r){var o=r.trim(),i=o.indexOf(rr);if(i!==-1){var a=o.slice(0,i),s=o.slice(i+1,r.length);ha(a)&&Sa(s)&&n.set(a,s)}return n},new Map),this._internalState.size>er&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,er))))},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}(),an="traceparent",sn="tracestate",Aa="00",ga="(?!ff)[\\da-f]{2}",ya="(?![0]{32})[\\da-f]{32}",ma="(?![0]{16})[\\da-f]{16}",Na="[\\da-f]{2}",Ra=new RegExp("^\\s?("+ga+")-("+ya+")-("+ma+")-("+Na+")(-.*)?\\s?$");function Ca(t){var e=Ra.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var kr=function(){function t(){}return t.prototype.inject=function(e,n,r){var o=et.getSpanContext(e);if(!(!o||Un(e)||!Xe(o))){var i=Aa+"-"+o.traceId+"-"+o.spanId+"-0"+Number(o.traceFlags||Dt.NONE).toString(16);r.set(n,an,i),o.traceState&&r.set(n,sn,o.traceState.serialize())}},t.prototype.extract=function(e,n,r){var o=r.get(n,an);if(!o)return e;var i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return e;var a=Ca(i);if(!a)return e;a.isRemote=!0;var s=r.get(n,sn);if(s){var c=Array.isArray(s)?s.join(","):s;a.traceState=new Oa(typeof c=="string"?c:void 0)}return et.setSpanContext(e,a)},t.prototype.fields=function(){return[an,sn]},t}(),ba="[object Object]",Ia="[object Null]",Pa="[object Undefined]",Da=Function.prototype,Br=Da.toString,La=Br.call(Object),Ma=wa(Object.getPrototypeOf,Object),Gr=Object.prototype,xr=Gr.hasOwnProperty,xt=Symbol?Symbol.toStringTag:void 0,Hr=Gr.toString;function wa(t,e){return function(n){return t(e(n))}}function or(t){if(!Ua(t)||ka(t)!==ba)return!1;var e=Ma(t);if(e===null)return!0;var n=xr.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Br.call(n)===La}function Ua(t){return t!=null&&typeof t=="object"}function ka(t){return t==null?t===void 0?Pa:Ia:xt&&xt in Object(t)?Ba(t):Ga(t)}function Ba(t){var e=xr.call(t,xt),n=t[xt],r=!1;try{t[xt]=void 0,r=!0}catch(i){}var o=Hr.call(t);return r&&(e?t[xt]=n:delete t[xt]),o}function Ga(t){return Hr.call(t)}var xa=20;function Ha(){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=Vr(n,t.shift(),0,r);return n}function un(t){return Ue(t)?t.slice():t}function Vr(t,e,n,r){n===void 0&&(n=0);var o;if(!(n>xa)){if(n++,Ie(t)||Ie(e)||jr(e))o=un(e);else if(Ue(t)){if(o=t.slice(),Ue(e))for(var i=0,a=e.length;i<a;i++)o.push(un(e[i]));else if(oe(e))for(var s=Object.keys(e),i=0,a=s.length;i<a;i++){var c=s[i];o[c]=un(e[c])}}else if(oe(t))if(oe(e)){if(!Va(t,e))return e;o=Object.assign({},t);for(var s=Object.keys(e),i=0,a=s.length;i<a;i++){var c=s[i],u=e[c];if(Ie(u))typeof u=="undefined"?delete o[c]:o[c]=u;else{var _=o[c],T=u;if(ir(t,c,r)||ir(e,c,r))delete o[c];else{if(oe(_)&&oe(T)){var p=r.get(_)||[],y=r.get(T)||[];p.push({obj:t,key:c}),y.push({obj:e,key:c}),r.set(_,p),r.set(T,y)}o[c]=Vr(o[c],u,n,r)}}}}else o=e;return o}}function ir(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 Ue(t){return Array.isArray(t)}function jr(t){return typeof t=="function"}function oe(t){return!Ie(t)&&!Ue(t)&&!jr(t)&&typeof t=="object"}function Ie(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="undefined"||t instanceof Date||t instanceof RegExp||t===null}function Va(t,e){return!(!or(t)||!or(e))}var ja=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")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 Yr(t,e){return typeof e=="string"?t===e:!!t.match(e)}function Ya(t,e){var n,r;if(!e)return!1;try{for(var o=ja(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(Yr(t,a))return!0}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}var Fa=function(){function t(){var e=this;this._promise=new Promise(function(n,r){e._resolve=n,e._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise}
1,enumerable:!1,configurable:!0}),t.prototype.resolve=function(e){this._resolve(e)},t.prototype.reject=function(e){this._reject(e)},t}(),Xa=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Za=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},Wa=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new Fa}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 e,n=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,Za([this._that],Xa(r),!1))).then(function(i){return n._deferred.resolve(i)},function(i){return n._deferred.reject(i)})}catch(i){this._deferred.reject(i)}}return this._deferred.promise},t}(),Ka=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function We(t){return Object.keys(t).map(function(e){return Fr(e,t[e])})}function Fr(t,e){return{key:t,value:Xr(e)}}function Xr(t){var e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(Xr)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var r=Ka(n,2),o=r[0],i=r[1];return Fr(o,i)})}}:{}}function ce(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 $a=9,za=Math.pow(10,$a);function vn(t){return t[0]*za+t[1]}function qa(t,e){var n,r=t.spanContext(),o=t.status,i=e?t.parentSpanId:t.parentSpanId!=null?ce(t.parentSpanId):void 0;return{traceId:e?r.traceId:ce(r.traceId),spanId:e?r.spanId:ce(r.spanId),parentSpanId:i,traceState:(n=r.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:vn(t.startTime),endTimeUnixNano:vn(t.endTime),attributes:We(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(Ja),droppedEventsCount:t.droppedEventsCount,status:{code:o.code,message:o.message},links:t.links.map(function(a){return Qa(a,e)}),droppedLinksCount:t.droppedLinksCount}}function Qa(t,e){var n;return{attributes:t.attributes?We(t.attributes):[],spanId:e?t.context.spanId:ce(t.context.spanId),traceId:e?t.context.traceId:ce(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function Ja(t){return{attributes:t.attributes?We(t.attributes):[],name:t.name,timeUnixNano:vn(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var ts=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")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.")},es=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function ns(t,e){return{resourceSpans:os(t,e)}}function rs(t){var e,n,r=new Map;try{for(var o=ts(t),i=o.next();!i.done;i=o.next()){var a=i.value,s=r.get(a.resource);s||(s=new Map,r.set(a.resource,s));var c=a.instrumentationLibrary.name+"@"+(a.instrumentationLibrary.version||"")+":"+(a.instrumentationLibrary.schemaUrl||""),u=s.get(c);u||(u=[],s.set(c,u)),u.push(a)}}catch(_){e={error:_}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function os(t,e){for(var n=rs(t),r=[],o=n.entries(),i=o.next();!i.done;){for(var a=es(i.value,2),s=a[0],c=a[1],u=[],_=c.values(),T=_.next();!T.done;){var p=T.value;if(p.length>0){var y=p[0].instrumentationLibrary,P=y.name,C=y.version,H=y.schemaUrl,b=p.map(function(O){return qa(O,e)});u.push({scope:{name:P,version:C},spans:b,schemaUrl:H})}T=_.next()}var g={resource:{attributes:We(s.attributes),droppedAttributesCount:0},scopeSpans:u,schemaUrl:void 0};
1r.push(g),i=o.next()}return r}class is{constructor(e){this.config=e}export(e,n){const r=ns(e,!0);this.config.api.pushTraces(r),n({code:we.SUCCESS})}shutdown(){return Promise.resolve(void 0)}}class as{constructor(e,n){this.processor=e,this.metas=n}forceFlush(){return this.processor.forceFlush()}onStart(e,n){const r=this.metas.value.session;r!=null&&r.id&&(e.attributes.session_id=r.id),this.processor.onStart(e,n)}onEnd(e){this.processor.onEnd(e)}shutdown(){return this.processor.shutdown()}}var ke=performance,ss="traceparent",j;(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"})(j||(j={}));function Ft(t,e){return e in t}function ot(t,e,n){if(Ft(n,e)&&typeof n[e]=="number")return t.addEvent(e,n[e]),t}function ar(t,e){ot(t,j.FETCH_START,e),ot(t,j.DOMAIN_LOOKUP_START,e),ot(t,j.DOMAIN_LOOKUP_END,e),ot(t,j.CONNECT_START,e),Ft(e,"name")&&e.name.startsWith("https:")&&ot(t,j.SECURE_CONNECTION_START,e),ot(t,j.CONNECT_END,e),ot(t,j.REQUEST_START,e),ot(t,j.RESPONSE_START,e),ot(t,j.RESPONSE_END,e);var n=e[j.ENCODED_BODY_SIZE];n!==void 0&&t.setAttribute(Kt.HTTP_RESPONSE_CONTENT_LENGTH,n);var r=e[j.DECODED_BODY_SIZE];r!==void 0&&n!==r&&t.setAttribute(Kt.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,r)}function On(t){return typeof t=="function"}var ut=console.error.bind(console);function ie(t,e,n){var r=!!t[e]&&t.propertyIsEnumerable(e);Object.defineProperty(t,e,{configurable:!0,enumerable:r,writable:!0,value:n})}function Ae(t){t&&t.logger&&(On(t.logger)?ut=t.logger:ut("new logger isn't a function, not replacing"))}function Zr(t,e,n){if(!t||!t[e]){ut("no original function "+e+" to wrap");return}if(!n){ut("no wrapper function"),ut(new Error().stack);return}if(!On(t[e])||!On(n)){ut("original object and wrapper must be functions");return}var r=t[e],o=n(r,e);return ie(o,"__original",r),ie(o,"__unwrap",function(){t[e]===o&&ie(t,e,r)}),ie(o,"__wrapped",!0),ie(t,e,o),o}function us(t,e,n){if(t)Array.isArray(t)||(t=[t]);else{ut("must provide one or more modules to patch"),ut(new Error().stack);return}if(!(e&&Array.isArray(e))){ut("must provide one or more functions to wrap on modules");return}t.forEach(function(r){e.forEach(function(o){Zr(r,o,n)})})}function Wr(t,e){if(!t||!t[e]){ut("no function to unwrap."),ut(new Error().stack);return}if(!t[e].__unwrap)ut("no original to unwrap to -- has "+e+" already been unwrapped?");else return t[e].__unwrap()}function cs(t,e){if(t)Array.isArray(t)||(t=[t]);else{ut("must provide one or more modules to patch"),ut(new Error().stack);return}if(!(e&&Array.isArray(e))){ut("must provide one or more functions to unwrap on modules");return}t.forEach(function(n){e.forEach(function(r){Wr(n,r)})})}Ae.wrap=Zr;Ae.massWrap=us;Ae.unwrap=Wr;Ae.massUnwrap=cs;var dt=Ae,An=globalThis&&globalThis.__assign||function(){return An=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},An.apply(this,arguments)},_s=function(){function t(e,n,r){r===void 0&&(r={}),this.instrumentationName=e,this.instrumentationVersion=n,this._wrap=dt.wrap,this._unwrap=dt.unwrap,this._massWrap=dt.massWrap,this._massUnwrap=dt.massUnwrap,this._config=An({enabled:!0},r),this._diag=x.createComponentLogger({namespace:e}),this._tracer=et.getTracer(e,n),this._meter=Ze.getMeter(e,n),this._updateMetricInstruments()}return Object.defineProperty(t.prototype,"meter",{get:function(){return this._meter}
1,enumerable:!1,configurable:!0}),t.prototype.setMeterProvider=function(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},t.prototype._updateMetricInstruments=function(){},t.prototype.getConfig=function(){return this._config},t.prototype.setConfig=function(e){e===void 0&&(e={}),this._config=Object.assign({},e)},t.prototype.setTracerProvider=function(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(t.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),t}(),ls=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),fs=function(t){ls(e,t);function e(n,r,o){o===void 0&&(o={});var i=t.call(this,n,r,o)||this;return i._config.enabled&&i.enable(),i}return e}(_s);globalThis&&globalThis.__awaiter;globalThis&&globalThis.__generator;function sr(t,e,n){var r,o;try{o=t()}catch(i){r=i}finally{if(e(r,o),r&&!n)throw r;return o}}var _e;(function(t){t.DOCUMENT_LOAD="documentLoad",t.DOCUMENT_FETCH="documentFetch",t.RESOURCE_FETCH="resourceFetch"})(_e||(_e={}));var Es="0.33.2",Be;(function(t){t.FIRST_PAINT="firstPaint",t.FIRST_CONTENTFUL_PAINT="firstContentfulPaint"})(Be||(Be={}));var ds=function(){var t,e,n={},r=(e=(t=ke).getEntriesByType)===null||e===void 0?void 0:e.call(t,"navigation")[0];if(r){var o=Object.values(j);o.forEach(function(s){if(Ft(r,s)){var c=r[s];typeof c=="number"&&(n[s]=c)}})}else{var i=ke,a=i.timing;if(a){var o=Object.values(j);o.forEach(function(c){if(Ft(a,c)){var u=a[c];typeof u=="number"&&(n[c]=u)}})}}return n},ur={"first-paint":Be.FIRST_PAINT,"first-contentful-paint":Be.FIRST_CONTENTFUL_PAINT},Ts=function(t){var e,n,r=(n=(e=ke).getEntriesByType)===null||n===void 0?void 0:n.call(e,"paint");r&&r.forEach(function(o){var i=o.name,a=o.startTime;Ft(ur,i)&&t.addEvent(ur[i],a)})},ps=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),hs=function(t){ps(e,t);function e(n){n===void 0&&(n={});var r=t.call(this,"@opentelemetry/instrumentation-document-load",Es,n)||this;return r.component="document-load",r.version="1",r.moduleName=r.component,r}return e.prototype.init=function(){},e.prototype._onDocumentLoaded=function(){var n=this;window.setTimeout(function(){n._collectPerformance()})},e.prototype._addResourcesSpans=function(n){var r=this,o,i,a=(i=(o=ke).getEntriesByType)===null||i===void 0?void 0:i.call(o,"resource");a&&a.forEach(function(s){r._initResourceSpan(s,n)})},e.prototype._collectPerformance=function(){var n=this,r=Array.from(document.getElementsByTagName("meta")).find(function(a){return a.getAttribute("name")===ss}),o=ds(),i=r&&r.content||"";$.with(ht.extract(At,{traceparent:i}),function(){var a,s=n._startSpan(_e.DOCUMENT_LOAD,j.FETCH_START,o);s&&($.with(et.setSpan($.active(),s),function(){var c=n._startSpan(_e.DOCUMENT_FETCH,j.FETCH_START,o);c&&(c.setAttribute(Kt.HTTP_URL,location.href),$.with(et.setSpan($.active(),c),function(){var u;ar(c,o),n._addCustomAttributesOnSpan(c,(u=n._getConfig().applyCustomAttributesOnSpan)===null||u===void 0?void 0:u.documentFetch),n._endSpan(c,j.RESPONSE_END,o)}))}),s.setAttribute(Kt.HTTP_URL,location.href),s.setAttribute(Kt.HTTP_USER_AGENT,navigator.userAgent),n._addResourcesSpans(s),ot(s,j.FETCH_START,o),ot(s,j.UNLOAD_EVENT_START,o),ot(s,j.UNLOAD_EVENT_END,o),ot(s,j.DOM_INTERACTIVE,o),ot(s,j.DOM_CONTENT_LOADED_EVENT_START,o),ot(s,j.DOM_CONTENT_LOADED_EVENT_END,o),ot(s,j.DOM_COMPLETE,o),ot(s,j.LOAD_EVENT_START,o),ot(s,j.LOAD_EVENT_END,o),Ts(s),n._addCustomAttributesOnSpan(s,(a=n._getConfig().applyCustomAttributesOnSpan)===null||a===void 0?void 0:a.documentLoad),n._endSpan(s,j.LOAD_EVENT_END,o))})},e.prototype._endSpan=function(n,r,o){n&&(Ft(o,r)?n.end(o[r]):n.end())},e.prototype._initResourceSpan=function(n,r){var o,i=this._startSpan(_e.RESOURCE_FETCH,j.FETCH_START,n,r);i&&(i.setAttribute(Kt.HTTP_URL,n.name),ar(i,n),this._addCustomAttributesOnResourceSpan(i,n,(o=this._getConfig().applyCustomAttributesOnSpan)===null||o===void 0?void 0:o.resourceFetch),this._endSpan(i,j.RESPONSE_END,n))}
1,e.prototype._startSpan=function(n,r,o,i){if(Ft(o,r)&&typeof o[r]=="number"){var a=this.tracer.startSpan(n,{startTime:o[r]},i?et.setSpan($.active(),i):void 0);return a}},e.prototype._waitForPageLoad=function(){window.document.readyState==="complete"?this._onDocumentLoaded():(this._onDocumentLoaded=this._onDocumentLoaded.bind(this),window.addEventListener("load",this._onDocumentLoaded))},e.prototype._getConfig=function(){return this._config},e.prototype._addCustomAttributesOnSpan=function(n,r){var o=this;r&&sr(function(){return r(n)},function(i){i&&o._diag.error("addCustomAttributesOnSpan",i)},!0)},e.prototype._addCustomAttributesOnResourceSpan=function(n,r,o){var i=this;o&&sr(function(){return o(n,r)},function(a){a&&i._diag.error("addCustomAttributesOnResourceSpan",a)},!0)},e.prototype.enable=function(){window.removeEventListener("load",this._onDocumentLoaded),this._waitForPageLoad()},e.prototype.disable=function(){window.removeEventListener("load",this._onDocumentLoaded)},e}(fs),gn=globalThis&&globalThis.__assign||function(){return gn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},gn.apply(this,arguments)},Ss=function(){function t(e,n,r){r===void 0&&(r={}),this.instrumentationName=e,this.instrumentationVersion=n,this._wrap=dt.wrap,this._unwrap=dt.unwrap,this._massWrap=dt.massWrap,this._massUnwrap=dt.massUnwrap,this._config=gn({enabled:!0},r),this._diag=x.createComponentLogger({namespace:e}),this._tracer=et.getTracer(e,n),this._meter=Ze.getMeter(e,n),this._updateMetricInstruments()}return Object.defineProperty(t.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),t.prototype.setMeterProvider=function(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},t.prototype._updateMetricInstruments=function(){},t.prototype.getConfig=function(){return this._config},t.prototype.setConfig=function(e){e===void 0&&(e={}),this._config=Object.assign({},e)},t.prototype.setTracerProvider=function(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(t.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),t}(),vs=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Os=function(t){vs(e,t);function e(n,r,o){o===void 0&&(o={});var i=t.call(this,n,r,o)||this;return i._config.enabled&&i.enable(),i}return e}(Ss);globalThis&&globalThis.__awaiter;globalThis&&globalThis.__generator;function As(t,e,n){var r,o;try{o=t()}catch(i){r=i}finally{if(e(r,o),r&&!n)throw r;return o}}function gs(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var ys="exception",ms=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")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.")},Ns=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Rs=function(){function t(e,n,r,o,i,a,s,c,u){s===void 0&&(s=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:Eo.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=r,this._spanContext=o,this.parentSpanId=a,this.kind=i,this.links=s;var _=Date.now();this._performanceStartTime=zt.now(),this._performanceOffset=_-(this._performanceStartTime+kn()),this._startTimeProvided=c!=null,this.startTime=this._getTime(c!=null?c:_),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return n==null||this._isSpanEnded()?this:e.length===0?(x.warn("Invalid attribute key: "+e),this):Lr(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this):(x.warn("Invalid attribute value set for key: "+e),this)},t.prototype.setAttributes=function(e){var n,r;try{for(var o=ms(Object.entries(e)),i=o.next();!i.done;i=o.next()){var a=Ns(i.value,2),s=a[0],c=a[1];this.setAttribute(s,c)}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return this},t.prototype.addEvent=function(e,n,r){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return x.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(x.warn("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),tr(n)&&(tr(r)||(r=n),n=void 0);var o=Re(n);return this.events.push({name:e,attributes:o,time:this._getTime(r),droppedAttributesCount:0}),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=e,this)},t.prototype.updateName=function(e){return this._isSpanEnded()?this:(this.name=e,this)},t.prototype.end=function(e){if(this._isSpanEnded()){x.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(e),this._duration=ca(this.startTime,this.endTime),this._duration[0]<0&&(x.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(e){if(typeof e=="number"&&e<zt.now())return Me(e+this._performanceOffset);if(typeof e=="number")return bt(e);if(e instanceof Date)return bt(e.getTime());if(Bn(e))return e;if(this._startTimeProvided)return bt(Date.now());var n=zt.now()-this._performanceStartTime;return Ur(this.startTime,bt(n))},t.prototype.isRecording=function(){return this._ended===!1}
1,t.prototype.recordException=function(e,n){var r={};typeof e=="string"?r[st.EXCEPTION_MESSAGE]=e:e&&(e.code?r[st.EXCEPTION_TYPE]=e.code.toString():e.name&&(r[st.EXCEPTION_TYPE]=e.name),e.message&&(r[st.EXCEPTION_MESSAGE]=e.message),e.stack&&(r[st.EXCEPTION_STACKTRACE]=e.stack)),r[st.EXCEPTION_TYPE]||r[st.EXCEPTION_MESSAGE]?this.addEvent(ys,r,n):x.warn("Failed to record an exception "+e)},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}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&x.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(e,n){return e.length<=n?e:e.substr(0,n)},t.prototype._truncateToSize=function(e){var n=this,r=this._attributeValueLengthLimit;return r<=0?(x.warn("Attribute value limit must be positive, got "+r),e):typeof e=="string"?this._truncateToLimitUtil(e,r):Array.isArray(e)?e.map(function(o){return typeof o=="string"?n._truncateToLimitUtil(o,r):o}):e},t}(),Jt;(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Jt||(Jt={}));var Ge=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Jt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),qt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Jt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),cn=function(){function t(e){var n,r,o,i;this._root=e.root,this._root||(De(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new qt),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new qt,this._remoteParentNotSampled=(r=e.remoteParentNotSampled)!==null&&r!==void 0?r:new Ge,this._localParentSampled=(o=e.localParentSampled)!==null&&o!==void 0?o:new qt,this._localParentNotSampled=(i=e.localParentNotSampled)!==null&&i!==void 0?i:new Ge}return t.prototype.shouldSample=function(e,n,r,o,i,a){var s=et.getSpanContext(e);return!s||!Xe(s)?this._root.shouldSample(e,n,r,o,i,a):s.isRemote?s.traceFlags&Dt.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,o,i,a):this._remoteParentNotSampled.shouldSample(e,n,r,o,i,a):s.traceFlags&Dt.SAMPLED?this._localParentSampled.shouldSample(e,n,r,o,i,a):this._localParentNotSampled.shouldSample(e,n,r,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}(),cr=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Cr(n)&&this._accumulate(n)<this._upperBound?Jt.RECORD_AND_SAMPLED:Jt.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,r=0;r<e.length/8;r++){var o=r*8,i=parseInt(e.slice(o,o+8),16);n=(n^i)>>>0}return n},t}(),Cs=_t(),bs=Ot.AlwaysOn,Wt=1;function Kr(){return{sampler:$r(Cs),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:_t().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:_t().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:_t().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:_t().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:_t().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:_t().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:_t().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:_t().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function $r(t){switch(t===void 0&&(t=_t()),t.OTEL_TRACES_SAMPLER){case Ot.AlwaysOn:return new qt;case Ot.AlwaysOff:return new Ge;case Ot.ParentBasedAlwaysOn:return new cn({root:new qt});case Ot.ParentBasedAlwaysOff:return new cn({root:new Ge});case Ot.TraceIdRatio:return new cr(_r(t));case Ot.ParentBasedTraceIdRatio:return new cn({root:new cr(_r(t))});default:return x.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+bs+'".'),new qt}}function _r(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return x.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+Wt+"."),Wt;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(x.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invali
1d, defaulting to "+Wt+"."),Wt):e<0||e>1?(x.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+Wt+"."),Wt):e}function Is(t){var e={sampler:$r()},n=Kr(),r=Object.assign({},n,e,t);return r.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),r}function Ps(t){var e,n,r,o,i,a,s,c,u,_,T,p,y=Object.assign({},t.spanLimits),P=ra();return y.attributeCountLimit=(a=(i=(o=(n=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&n!==void 0?n:(r=t.generalLimits)===null||r===void 0?void 0:r.attributeCountLimit)!==null&&o!==void 0?o:P.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:P.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&a!==void 0?a:be,y.attributeValueLengthLimit=(p=(T=(_=(c=(s=t.spanLimits)===null||s===void 0?void 0:s.attributeValueLengthLimit)!==null&&c!==void 0?c:(u=t.generalLimits)===null||u===void 0?void 0:u.attributeValueLengthLimit)!==null&&_!==void 0?_:P.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&T!==void 0?T:P.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:Ce,Object.assign({},t,{spanLimits:y})}var Ds=function(){function t(e,n){this._exporter=e,this._finishedSpans=[],this._droppedSpansCount=0;var r=_t();this._maxExportBatchSize=typeof(n==null?void 0:n.maxExportBatchSize)=="number"?n.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof(n==null?void 0:n.maxQueueSize)=="number"?n.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof(n==null?void 0:n.scheduledDelayMillis)=="number"?n.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof(n==null?void 0:n.exportTimeoutMillis)=="number"?n.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Wa(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(x.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&Dt.SAMPLED&&this._addToBuffer(e)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},t.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&x.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(x.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},t.prototype._flushAll=function(){var e=this;return new Promise(function(n,r){for(var o=[],i=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize),a=0,s=i;a<s;a++)o.push(e._flushOneBatch());Promise.all(o).then(function(){n()}).catch(r)})},t.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,r){var o=setTimeout(function(){r(new Error("Timeout"))},e._exportTimeoutMillis);$.with(Ri($.active()),function(){var i=e._finishedSpans.splice(0,e._maxExportBatchSize),a=function(){return e._exporter.export(i,function(c){var u;clearTimeout(o),c.code===we.SUCCESS?n():r((u=c.error)!==null&&u!==void 0?u:new Error("BatchSpanProcessor: span export failed"))})},s=i.map(function(c){return c.resource}).filter(function(c){return c.asyncAttributesPending});s.length===0?a():Promise.all(s.map(function(c){var u;return(u=c.waitForAsyncAttributes)===null||u===void 0?void 0:u.call(c)})).then(a,function(c){De(c),r(c)})})})},t.prototype._maybeStartTimer=function(){var e=this;this._timer===void 0&&(this._timer=setTimeout(function(){e._flushOneBatch().then(function(){e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(n){De(n)})},this._scheduledDelayMillis),this._timer,void 0)},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}(),Ls=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}
1e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zr=function(t){Ls(e,t);function e(n,r){var o=t.call(this,n,r)||this;return o.onInit(r),o}return e.prototype.onInit=function(n){var r=this;(n==null?void 0:n.disableAutoFlushOnDocumentHide)!==!0&&typeof document!="undefined"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&r.forceFlush()},this._pageHideListener=function(){r.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},e.prototype.onShutdown=function(){typeof document!="undefined"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},e}(Ds),Ms=8,ws=16,Us=function(){function t(){this.generateTraceId=lr(ws),this.generateSpanId=lr(Ms)}return t}(),ye=Array(32);function lr(t){return function(){for(var n=0;n<t*2;n++)ye[n]=Math.floor(Math.random()*16)+48,ye[n]>=58&&(ye[n]+=39);return String.fromCharCode.apply(null,ye.slice(0,t*2))}}var ks=function(){function t(e,n,r){this._tracerProvider=r;var o=Is(n);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=n.idGenerator||new Us,this.resource=r.resource,this.instrumentationLibrary=e}return t.prototype.startSpan=function(e,n,r){var o,i,a;n===void 0&&(n={}),r===void 0&&(r=$.active()),n.root&&(r=et.deleteSpan(r));var s=et.getSpan(r);if(Un(r)){x.debug("Instrumentation suppressed, returning Noop Span");var c=et.wrapSpanContext(Nr);return c}var u=s==null?void 0:s.spanContext(),_=this._idGenerator.generateSpanId(),T,p,y;!u||!et.isSpanContextValid(u)?T=this._idGenerator.generateTraceId():(T=u.traceId,p=u.traceState,y=u.spanId);var P=(o=n.kind)!==null&&o!==void 0?o:de.INTERNAL,C=((i=n.links)!==null&&i!==void 0?i:[]).map(function(X){return{context:X.
1context,attributes:Re(X.attributes)}}),H=Re(n.attributes),b=this._sampler.shouldSample(r,T,e,P,H,C);p=(a=b.traceState)!==null&&a!==void 0?a:p;var g=b.decision===Pe.RECORD_AND_SAMPLED?Dt.SAMPLED:Dt.NONE,O={traceId:T,spanId:_,traceFlags:g,traceState:p};if(b.decision===Pe.NOT_RECORD){x.debug("Recording is off, propagating context in a non-recording span");var c=et.wrapSpanContext(O);return c}var Q=new Rs(this,r,e,O,P,y,C,n.startTime),B=Re(Object.assign(H,b.attributes));return Q.setAttributes(B),Q},t.prototype.startActiveSpan=function(e,n,r,o){var i,a,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(i=n,s=r):(i=n,a=r,s=o);var c=a!=null?a:$.active(),u=this.startSpan(e,i,c),_=et.setSpan(c,u);return $.with(_,s,void 0,u)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}();function Bs(){return"unknown_service"}var wt=globalThis&&globalThis.__assign||function(){return wt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},wt.apply(this,arguments)},Gs=globalThis&&globalThis.__awaiter||function(t,e,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(_){try{u(r.next(_))}catch(T){a(T)}}function c(_){try{u(r.throw(_))}catch(T){a(T)}}function u(_){_.done?i(_.value):o(_.value).then(s,c)}u((r=r.apply(t,e||[])).next())})},xs=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(_){return c([u,_])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(_){u=[6,_],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Hs=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},xe=function(){function t(e,n){var r=this,o;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(o=this._attributes)!==null&&o!==void 0?o:{},this._asyncAttributesPromise=n==null?void 0:n.then(function(i){return r._attributes=Object.assign({},r._attributes,i),r.asyncAttributesPending=!1,i},function(i){return x.debug("a resource's async attributes promise rejected: %s",i),r.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t((e={},e[lt.SERVICE_NAME]=Bs(),e[lt.TELEMETRY_SDK_LANGUAGE]=on[lt.TELEMETRY_SDK_LANGUAGE],e[lt.TELEMETRY_SDK_NAME]=on[lt.TELEMETRY_SDK_NAME],e[lt.TELEMETRY_SDK_VERSION]=on[lt.TELEMETRY_SDK_VERSION],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&x.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return Gs(this,void 0,void 0,function(){return xs(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.merge=function(e){var n=this,r;if(!e)return this;var o=wt(wt({},this._syncAttributes),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(o);var i=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(a){var s,c=Hs(a,2),u=c[0],_=c[1];return wt(wt(wt(wt({},n._syncAttributes),u),(s=e._syncAttributes)!==null&&s!==void 0?s:e.attributes),_)});return new t(o,i)}
1,t.EMPTY=new t({}),t}(),me=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")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.")},Vs=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,r=[];try{for(var o=me(this._spanProcessors),i=o.next();!i.done;i=o.next()){var a=i.value;r.push(a.forceFlush())}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return new Promise(function(s){Promise.all(r).then(function(){s()}).catch(function(c){De(c||new Error("MultiSpanProcessor: forceFlush failed")),s()})})},t.prototype.onStart=function(e,n){var r,o;try{for(var i=me(this._spanProcessors),a=i.next();!a.done;a=i.next()){var s=a.value;s.onStart(e,n)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}},t.prototype.onEnd=function(e){var n,r;try{for(var o=me(this._spanProcessors),i=o.next();!i.done;i=o.next()){var a=i.value;a.onEnd(e)}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},t.prototype.shutdown=function(){var e,n,r=[];try{for(var o=me(this._spanProcessors),i=o.next();!i.done;i=o.next()){var a=i.value;r.push(a.shutdown())}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return new Promise(function(s,c){Promise.all(r).then(function(){s()},c)})},t}(),js=function(){function t(){}return t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}(),Ht;(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Ht||(Ht={}));var Ys=function(){function t(e){e===void 0&&(e={});var n;this._registeredSpanProcessors=[],this._tracers=new Map;var r=Ha({},Kr(),Ps(e));this.resource=(n=r.resource)!==null&&n!==void 0?n:xe.empty(),this.resource=xe.default().merge(this.resource),this._config=Object.assign({},r,{resource:this.resource});var o=this._buildExporterFromEnv();if(o!==void 0){var i=new zr(o);this.activeSpanProcessor=i}else this.activeSpanProcessor=new js}return t.prototype.getTracer=function(e,n,r){var o=e+"@"+(n||"")+":"+((r==null?void 0:r.schemaUrl)||"");return this._tracers.has(o)||this._tracers.set(o,new ks({name:e,version:n,schemaUrl:r==null?void 0:r.schemaUrl},this._config,this)),this._tracers.get(o)},t.prototype.addSpanProcessor=function(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return x.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new Vs(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(e){e===void 0&&(e={}),et.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&$.setGlobalContextManager(e.contextManager),e.propagator&&ht.setGlobalPropagator(e.propagator)},t.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(r){return new Promise(function(o){var i,a=setTimeout(function(){o(new Error("Span processor did not completed within timeout period of "+e+" ms")),i=Ht.timeout},e);r.forceFlush().then(function(){clearTimeout(a),i!==Ht.timeout&&(i=Ht.resolved,o(i))}).catch(function(s){clearTimeout(a),i=Ht.error,o(s)})})});return new Promise(function(r,o){Promise.all(n).then(function(i){var a=i.filter(function(s){return s!==Ht.resolved});a.length>0?o(a):r()}).catch(function(i){return o([i])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return(n=this.constructor._registeredPropagators.get(e))===null||n===void 0?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return(n=this.constructor._registeredExporters.get(e))===null||n===void 0?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var e=this,n=Array.from(new Set(_t().OTEL_PROPAGATORS)),r=n.map(function(i){var a=e._getPropagator(i);return a||x.warn('Propagator "'+i+'" requested through environment variable is unavailable.'),a}),o=r.reduce(function(i,a){return a&&i.push(a),i},[]);if(o.length!==0)return n.length===1?o[0]:new la({propagators:o})},t.prototype._buildExporterFromEnv=function(){var e=_t().OTEL_TRACES_EXPORTER;if(!(e==="none"||e==="")){var n=this._getSpanExporter(e);return n||x.error('Exporter "'+e+'" requested through environment variable is unavailable.'),n}},t._registeredPropagators=new Map([["tracecontext",function(){return new kr}],["baggage",function(){return new Ui}]]),t._registeredExporters=new Map,t}(),Fs=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i},Xs=globalThis&&globalThis.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},Zs=function(){function t(){this._enabled=!1,this._currentContext=At}return t.prototype._bindFunction=function(e,n){e===void 0&&(e=At);var r=this,o=function(){for(var i=this,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return r.with(e,function(){return n.apply(i,a)})};
1return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),o},t.prototype.active=function(){return this._currentContext},t.prototype.bind=function(e,n){return e===void 0&&(e=this.active()),typeof n=="function"?this._bindFunction(e,n):n},t.prototype.disable=function(){return this._currentContext=At,this._enabled=!1,this},t.prototype.enable=function(){return this._enabled?this:(this._enabled=!0,this._currentContext=At,this)},t.prototype.with=function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a=this._currentContext;this._currentContext=e||At;try{return n.call.apply(n,Xs([r],Fs(o),!1))}finally{this._currentContext=a}},t}(),Ws=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ks=function(t){Ws(e,t);function e(n){n===void 0&&(n={});var r=t.call(this,n)||this;if(n.contextManager)throw"contextManager should be defined in register method not in constructor";if(n.propagator)throw"propagator should be defined in register method not in constructor";return r}return e.prototype.register=function(n){n===void 0&&(n={}),n.contextManager===void 0&&(n.contextManager=new Zs),n.contextManager&&n.contextManager.enable(),t.prototype.register.call(this,n)},e}(Ys),z;(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"})(z||(z={}));var _n;function $s(){return _n||(_n=document.createElement("a")),_n}function qr(t,e){return e in t}function yt(t,e,n){if(qr(n,e)&&typeof n[e]=="number")return t.addEvent(e,n[e]),t}function fr(t,e){yt(t,z.FETCH_START,e),yt(t,z.DOMAIN_LOOKUP_START,e),yt(t,z.DOMAIN_LOOKUP_END,e),yt(t,z.CONNECT_START,e),qr(e,"name")&&e.name.startsWith("https:")&&yt(t,z.SECURE_CONNECTION_START,e),yt(t,z.CONNECT_END,e),yt(t,z.REQUEST_START,e),yt(t,z.RESPONSE_START,e),yt(t,z.RESPONSE_END,e);var n=e[z.ENCODED_BODY_SIZE];n!==void 0&&t.setAttribute(st.HTTP_RESPONSE_CONTENT_LENGTH,n);var r=e[z.DECODED_BODY_SIZE];r!==void 0&&n!==r&&t.setAttribute(st.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,r)}function zs(t){return t.slice().sort(function(e,n){var r=e[z.FETCH_START],o=n[z.FETCH_START];return r>o?1:r<o?-1:0})}function qs(t,e,n,r,o,i){o===void 0&&(o=new WeakSet);var a=He(t);t=a.toString();var s=Js(t,e,n,r,o,i);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};var c=zs(s);if(a.origin!==location.origin&&c.length>1){var u=c[0],_=Qs(c,u[z.RESPONSE_END],n),T=u[z.RESPONSE_END],p=_[z.FETCH_START];return p<T&&(_=u,u=void 0),{corsPreFlightRequest:u,mainRequest:_}}else return{mainRequest:s[0]}}function Qs(t,e,n){for(var r=kt(n),o=kt(ue(e)),i=t[1],a,s=t.length,c=1;c<s;c++){var u=t[c],_=kt(ue(u[z.FETCH_START])),T=kt(ue(u[z.RESPONSE_END])),p=r-T;_>=o&&(!a||p<a)&&(a=p,i=u)}return i}function Js(t,e,n,r,o,i){var a=kt(e),s=kt(n),c=r.filter(function(u){var _=kt(ue(u[z.FETCH_START])),T=kt(ue(u[z.RESPONSE_END]));return u.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&u.name===t&&_>=a&&T<=s});return c.length>0&&(c=c.filter(function(u){return!o.has(u)})),c}function He(t){if(typeof URL=="function")return new URL(t,typeof document!="undefined"?document.baseURI:typeof location!="undefined"?location.href:void 0);var e=$s();return e.href=t,e}function tu(t,e){var n=e||[];(typeof n=="string"||n instanceof RegExp)&&(n=[n]);var r=He(t);return r.origin===location.origin?!0:n.some(function(o){return Yr(t,o)})}var Ve;(function(t){t.COMPONENT="component",t.HTTP_ERROR_NAME="http.error_name",t.HTTP_STATUS_TEXT="http.status_text"})(Ve||(Ve={}));var Er="0.41.2",eu=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}
1e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nu=300,ru=function(t){eu(e,t);function e(n){var r=t.call(this,"@opentelemetry/instrumentation-fetch",Er,n)||this;return r.component="fetch",r.version=Er,r.moduleName=r.component,r._usedResources=new WeakSet,r._tasksCount=0,r}return e.prototype.init=function(){},e.prototype._getConfig=function(){return this._config},e.prototype._addChildSpan=function(n,r){var o=this.tracer.startSpan("CORS Preflight",{startTime:r[z.FETCH_START]},et.setSpan($.active(),n));this._getConfig().ignoreNetworkEvents||fr(o,r),o.end(r[z.RESPONSE_END])},e.prototype._addFinalSpanAttributes=function(n,r){var o=He(r.url);n.setAttribute(st.HTTP_STATUS_CODE,r.status),r.statusText!=null&&n.setAttribute(Ve.HTTP_STATUS_TEXT,r.statusText),n.setAttribute(st.HTTP_HOST,o.host),n.setAttribute(st.HTTP_SCHEME,o.protocol.replace(":","")),n.setAttribute(st.HTTP_USER_AGENT,navigator.userAgent)},e.prototype._addHeaders=function(n,r){if(!tu(r,this._getConfig().propagateTraceHeaderCorsUrls)){var o={};ht.inject($.active(),o),Object.keys(o).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(n instanceof Request)ht.inject($.active(),n.headers,{set:function(i,a,s){return i.set(a,typeof s=="string"?s:String(s))}});else if(n.headers instanceof Headers)ht.inject($.active(),n.headers,{set:function(i,a,s){return i.set(a,typeof s=="string"?s:String(s))}});else{var o={};ht.inject($.active(),o),n.headers=Object.assign({},o,n.headers||{})}},e.prototype._clearResources=function(){this._tasksCount===0&&this._getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)},e.prototype._createSpan=function(n,r){var o;if(r===void 0&&(r={}),Ya(n,this._getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var i=(r.method||"GET").toUpperCase(),a="HTTP "+i;return this.tracer.startSpan(a,{kind:de.CLIENT,attributes:(o={},o[Ve.COMPONENT]=this.moduleName,o[st.HTTP_METHOD]=i,o[st.HTTP_URL]=n,o)})},e.prototype._findResourceAndAddNetworkEvents=function(n,r,o){var i=r.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}var a=qs(r.spanUrl,r.startTime,o,i,this._usedResources,"fetch");if(a.mainRequest){var s=a.mainRequest;this._markResourceAsUsed(s);var c=a.corsPreFlightRequest;c&&(this._addChildSpan(n,c),this._markResourceAsUsed(c)),this._getConfig().ignoreNetworkEvents||fr(n,s)}},e.prototype._markResourceAsUsed=function(n){this._usedResources.add(n)},e.prototype._endSpan=function(n,r,o){var i=this,a=bt(Date.now()),s=Me();this._addFinalSpanAttributes(n,o),setTimeout(function(){var c;(c=r.observer)===null||c===void 0||c.disconnect(),i._findResourceAndAddNetworkEvents(n,r,s),i._tasksCount--,i._clearResources(),n.end(a)},nu)},e.prototype._patchConstructor=function(){var n=this;return function(r){var o=n;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var c=this,u=He(a[0]instanceof Request?a[0].url:String(a[0])).href,_=a[0]instanceof Request?a[0]:a[1]||{},T=o._createSpan(u,_);if(!T)return r.apply(this,a);var p=o._prepareSpanData(u);function y(b,g){o._applyAttributesAfterFetch(b,_,g),o._endSpan(b,p,{status:g.status||0,statusText:g.message,url:u})}function P(b,g){o._applyAttributesAfterFetch(b,_,g),g.status>=200&&g.status<400?o._endSpan(b,p,g):o._endSpan(b,p,{status:g.status,statusText:g.statusText,url:u})}function C(b,g,O){try{var Q=O.clone(),B=O.clone(),X=Q.body;if(X){var G=X.getReader(),m=function(){G.read().then(function(V){var A=V.done;A?P(b,B):m()},function(V){y(b,V)})};m()}else P(b,O)}finally{g(O)}}function H(b,g,O){try{y(b,O)}finally{g(O)}}return new Promise(function(b,g){return $.with(et.setSpan($.active(),T),function(){return o._addHeaders(_,u),o._tasksCount++,r.apply(c,_ instanceof Request?[_]:[u,_]).then(C.bind(c,T,b),H.bind(c,T,g))})})}}},e.prototype._applyAttributesAfterFetch=function(n,r,o){var i=this,a=this._getConfig().applyCustomAttributesOnSpan;a&&As(function(){return a(n,r,o)},function(s){s&&i._diag.error("applyCustomAttributesOnSpan",s)},!0)},e.prototype._prepareSpanData=function(n){var r=Me(),o=[];if(typeof PerformanceObserver!="function")return{entries:o,startTime:r,spanUrl:n};var i=new PerformanceObserver(function(a){var s=a.getEntries();
1s.forEach(function(c){c.initiatorType==="fetch"&&c.name===n&&o.push(c)})});return i.observe({entryTypes:["resource"]}),{entries:o,observer:i,startTime:r,spanUrl:n}},e.prototype.enable=function(){gs(fetch)&&(this._unwrap(se,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(se,"fetch",this._patchConstructor())},e.prototype.disable=function(){this._unwrap(se,"fetch"),this._usedResources=new WeakSet},e}(Os);function Qr(t){t===void 0&&(t=[]);for(var e=[],n=0,r=t.length;n<r;n++){var o=t[n];if(Array.isArray(o)){var i=Qr(o);e=e.concat(i.instrumentations)}else typeof o=="function"?e.push(new o):o.instrumentationName&&e.push(o)}return{instrumentations:e}}function ou(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()}}function iu(t){t.forEach(function(e){return e.disable()})}function au(t){var e=Qr(t.instrumentations).instrumentations,n=t.tracerProvider||et.getTracerProvider(),r=t.meterProvider||Ze.getMeterProvider();return ou(e,n,r),function(){iu(e)}}var yn=globalThis&&globalThis.__assign||function(){return yn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},yn.apply(this,arguments)},su=function(){function t(e,n,r){r===void 0&&(r={}),this.instrumentationName=e,this.instrumentationVersion=n,this._wrap=dt.wrap,this._unwrap=dt.unwrap,this._massWrap=dt.massWrap,this._massUnwrap=dt.massUnwrap,this._config=yn({enabled:!0},r),this._diag=x.createComponentLogger({namespace:e}),this._tracer=et.getTracer(e,n),this._meter=Ze.getMeter(e,n),this._updateMetricInstruments()}return Object.defineProperty(t.prototype,"meter",{get:function(){return this._meter},enumerable:!1,configurable:!0}),t.prototype.setMeterProvider=function(e){this._meter=e.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()},t.prototype._updateMetricInstruments=function(){},t.prototype.getConfig=function(){return this._config},t.prototype.setConfig=function(e){e===void 0&&(e={}),this._config=Object.assign({},e)},t.prototype.setTracerProvider=function(e){this._tracer=e.getTracer(this.instrumentationName,this.instrumentationVersion)},Object.defineProperty(t.prototype,"tracer",{get:function(){return this._tracer},enumerable:!1,configurable:!0}),t}(),uu=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),cu=function(t){uu(e,t);function e(n,r,o){o===void 0&&(o={});var i=t.call(this,n,r,o)||this;return i._config.enabled&&i.enable(),i}return e}(su);globalThis&&globalThis.__awaiter;globalThis&&globalThis.__generator;function _u(t,e,n){var r,o;try{o=t()}catch(i){r=i}finally{if(e(r,o),r&&!n)throw r;return o}}function dr(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var Te=performance,Ut={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"},lu=9,fu=6,Eu=Math.pow(10,fu),mn=Math.pow(10,lu);function je(t){var e=t/1e3,n=Math.trunc(e),r=Math.round(t%1e3*Eu);return[n,r]}function Jr(){var t=Te.timeOrigin;if(typeof t!="number"){var e=Te;t=e.timing&&e.timing.fetchStart}return t}function Nn(t){var e=je(Jr()),n=je(typeof t=="number"?t:Te.now());return Tu(e,n)}function le(t){if(du(t))return t;if(typeof t=="number")return t<Jr()?Nn(t):je(t);if(t instanceof Date)return je(t.getTime());throw TypeError("Invalid input type")}function Bt(t){return t[0]*mn+t[1]}function du(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function Tu(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=mn&&(n[1]-=mn,n[0]+=1),n}var pu=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")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 to(t,e){return typeof e=="string"?t===e:!!t.match(e)}function hu(t,e){var n,r;if(!e)return!1;try{for(var o=pu(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(to(t,a))return!0}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}var q;(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"})(q||(q={}));var ln;function Su(){return ln||(ln=document.createElement("a")),ln}function eo(t,e){return e in t}function mt(t,e,n){if(eo(n,e)&&typeof n[e]=="number")return t.addEvent(e,n[e]),t}function Tr(t,e){mt(t,q.FETCH_START,e),mt(t,q.DOMAIN_LOOKUP_START,e),mt(t,q.DOMAIN_LOOKUP_END,e),mt(t,q.CONNECT_START,e),eo(e,"name")&&e.name.startsWith("https:")&&mt(t,q.SECURE_CONNECTION_START,e),mt(t,q.CONNECT_END,e),mt(t,q.REQUEST_START,e),mt(t,q.RESPONSE_START,e),mt(t,q.RESPONSE_END,e);var n=e[q.ENCODED_BODY_SIZE];n!==void 0&&t.setAttribute(Ut.HTTP_RESPONSE_CONTENT_LENGTH,n);var r=e[q.DECODED_BODY_SIZE];r!==void 0&&n!==r&&t.setAttribute(Ut.HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,r)}function vu(t){return t.slice().sort(function(e,n){var r=e[q.FETCH_START],o=n[q.FETCH_START];return r>o?1:r<o?-1:0})}function Ou(t,e,n,r,o,i){o===void 0&&(o=new WeakSet);var a=Vt(t);t=a.toString();var s=gu(t,e,n,r,o,i);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};var c=vu(s);
1if(a.origin!==location.origin&&c.length>1){var u=c[0],_=Au(c,u[q.RESPONSE_END],n),T=u[q.RESPONSE_END],p=_[q.FETCH_START];return p<T&&(_=u,u=void 0),{corsPreFlightRequest:u,mainRequest:_}}else return{mainRequest:s[0]}}function Au(t,e,n){for(var r=Bt(n),o=Bt(le(e)),i=t[1],a,s=t.length,c=1;c<s;c++){var u=t[c],_=Bt(le(u[q.FETCH_START])),T=Bt(le(u[q.RESPONSE_END])),p=r-T;_>=o&&(!a||p<a)&&(a=p,i=u)}return i}function gu(t,e,n,r,o,i){var a=Bt(e),s=Bt(n),c=r.filter(function(u){var _=Bt(le(u[q.FETCH_START])),T=Bt(le(u[q.RESPONSE_END]));return u.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&u.name===t&&_>=a&&T<=s});return c.length>0&&(c=c.filter(function(u){return!o.has(u)})),c}function Vt(t){if(typeof URL=="function")return new URL(t,typeof document!="undefined"?document.baseURI:typeof location!="undefined"?location.href:void 0);var e=Su();return e.href=t,e}function yu(t,e){var n=e||[];(typeof n=="string"||n instanceof RegExp)&&(n=[n]);var r=Vt(t);return r.origin===location.origin?!0:n.some(function(o){return to(t,o)})}var Nt;(function(t){t.METHOD_OPEN="open",t.METHOD_SEND="send",t.EVENT_ABORT="abort",t.EVENT_ERROR="error",t.EVENT_LOAD="loaded",t.EVENT_TIMEOUT="timeout"})(Nt||(Nt={}));var pr="0.44.0",Rn;(function(t){t.HTTP_STATUS_TEXT="http.status_text"})(Rn||(Rn={}));var mu=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nu=300,Ru=function(t){mu(e,t);function e(n){var r=t.call(this,"@opentelemetry/instrumentation-xml-http-request",pr,n)||this;return r.component="xml-http-request",r.version=pr,r.moduleName=r.component,r._tasksCount=0,r._xhrMem=new WeakMap,r._usedResources=new WeakSet,r}return e.prototype.init=function(){},e.prototype._getConfig=function(){return this._config},e.prototype._addHeaders=function(n,r){var o=Vt(r).href;if(!yu(o,this._getConfig().propagateTraceHeaderCorsUrls)){var i={};ht.inject($.active(),i),Object.keys(i).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}var a={};ht.inject($.active(),a),Object.keys(a).forEach(function(s){n.setRequestHeader(s,String(a[s]))})},e.prototype._addChildSpan=function(n,r){var o=this;$.with(et.setSpan($.active(),n),function(){var i=o.tracer.startSpan("CORS Preflight",{startTime:r[q.FETCH_START]});Tr(i,r),i.end(r[q.RESPONSE_END])})},e.prototype._addFinalSpanAttributes=function(n,r,o){if(typeof o=="string"){var i=Vt(o);r.status!==void 0&&n.setAttribute(Ut.HTTP_STATUS_CODE,r.status),r.statusText!==void 0&&n.setAttribute(Rn.HTTP_STATUS_TEXT,r.statusText),n.setAttribute(Ut.HTTP_HOST,i.host),n.setAttribute(Ut.HTTP_SCHEME,i.protocol.replace(":","")),n.setAttribute(Ut.HTTP_USER_AGENT,navigator.userAgent)}},e.prototype._applyAttributesAfterXHR=function(n,r){var o=this,i=this._getConfig().applyCustomAttributesOnSpan;typeof i=="function"&&_u(function(){return i(n,r)},function(a){a&&o._diag.error("applyCustomAttributesOnSpan",a)},!0)},e.prototype._addResourceObserver=function(n,r){var o=this._xhrMem.get(n);!o||typeof PerformanceObserver!="function"||typeof PerformanceResourceTiming!="function"||(o.createdResources={observer:new PerformanceObserver(function(i){var a=i.getEntries(),s=Vt(r);a.forEach(function(c){c.initiatorType==="xmlhttprequest"&&c.name===s.href&&o.createdResources&&o.createdResources.entries.push(c)})}),entries:[]},o.createdResources.observer.observe({entryTypes:["resource"]}))},e.prototype._clearResources=function(){this._tasksCount===0&&this._getConfig().clearTimingResources&&(Te.clearResourceTimings(),this._xhrMem=new WeakMap,this._usedResources=new WeakSet)},e.prototype._findResourceAndAddNetworkEvents=function(n,r,o,i,a){if(!(!o||!i||!a||!n.createdResources)){var s=n.createdResources.entries;(!s||!s.length)&&(s=Te.getEntriesByType("resource"));var c=Ou(Vt(o).href,i,a,s,this._usedResources);if(c.mainRequest){var u=c.mainRequest;this._markResourceAsUsed(u);var _=c.corsPreFlightRequest;_&&(this._addChildSpan(r,_),this._markResourceAsUsed(_)),Tr(r,u)}}},e.prototype._cleanPreviousSpanInformation=function(n){var r=this._xhrMem.get(n);if(r){var o=r.callbackToRemoveEvents;o&&o(),this._xhrMem.delete(n)}},e.prototype._createSpan=function(n,r,o){var i;if(hu(r,this._getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}var a=o.toUpperCase(),s=this.tracer.startSpan(a,{kind:de.CLIENT,attributes:(i={},i[Ut.HTTP_METHOD]=o,i[Ut.HTTP_URL]=Vt(r).toString(),i)});return s.addEvent(Nt.METHOD_OPEN),this._cleanPreviousSpanInformation(n),this._xhrMem.set(n,{span:s,spanUrl:r}),s},e.prototype._markResourceAsUsed=function(n){this._usedResources.add(n)},e.prototype._patchOpen=function(){var n=this;return function(r){var o=n;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var c=a[0],u=a[1];return o._createSpan(this,u,c),r.apply(this,a)}}},e.prototype._patchSend=function(){var n=this;function r(_,T,p,y){var P=T.callbackToRemoveEvents;typeof P=="function"&&P();var C=T.span,H=T.spanUrl,b=T.sendStartTime;C&&(n._findResourceAndAddNetworkEvents(T,C,H,b,p),C.addEvent(_,y),n._addFinalSpanAttributes(C,T,H),C.end(y),n._tasksCount--),n._clearResources()}function o(_,T){var p=n._xhrMem.get(T);if(p){p.status=T.status,p.statusText=T.statusText,n._xhrMem.delete(T),p.span&&n._applyAttributesAfterXHR(p.span,T);var y=Nn(),P=Date.now();setTimeout(function(){r(_,p,y,P)},Nu)}}function i(){o(Nt.EVENT_ERROR,this)}function a(){o(Nt.EVENT_ABORT,this)}function s(){o(Nt.EVENT_TIMEOUT,this)}function c(){this.status<299?o(Nt.EVENT_LOAD,this):o(Nt.EVENT_ERROR,this)}function u(_){_.removeEventListener("abort",a),_.removeEventListener("error",i),_.removeEventListener("load",c),_.removeEventListener("timeout",s);var T=n._xhrMem.get(_);T&&(T.callbackToRemoveEvents=void 0)}return function(_){return function(){for(var p=this,y=[],P=0;P<arguments.length;P++)y[P]=arguments[P];var C=n._xhrMem.get(this);if(!C)return _.apply(this,y);var H=C.span,b=C.spanUrl;return H&&b&&$.with(et.setSpan($.active(),H),function(){n._tasksCount++,C.sendStartTime=Nn(),H.addEvent(Nt.METHOD_SEND),p.addEventListener("abort",a),p.addEventListener("error",i),p.addEventListener("load",c),p.addEventListener("timeout",s),C.callbackToRemoveEvents=function(){u(p),C.createdResources&&C.createdResources.observer.disconnect()},n._addHeaders(p,b),n._addResourceObserver(p,b)}),_.apply(this,y)}}},e.prototype.enable=function(){this._diag.debug("applying patch to",this.moduleName,this.version),dr(XMLHttpRequest.prototype.open)&&(this._unwrap(XMLHttpRequest.prototype,"open"),this._diag.debug("removing previous patch from method open")),dr(XMLHttpRequest.prototype.send)&&(this._unwrap(XMLHttpRequest.prototype,"send"),this._diag.debug("removing previous patch from method send")),this._wrap(XMLHttpRequest.prototype,"open",this._patchOpen()),this._wrap(XMLHttpRequest.prototype,"send",this._patchSend())},e.prototype.disable=function(){this._diag.debug("removing patch from",this.moduleName,this.version),this._unwrap(XMLHttpRequest.prototype,"open"),this._unwrap(XMLHttpRequest.prototype,"send"),this._tasksCount=0,this._xhrMem=new WeakMap,this._usedResources=new WeakSet},e}(cu);const Cu={ignoreUrls:[],propagateTraceHeaderCorsUrls:[]};function bu(t=Cu){return[new hs,new ru(t),new Ru(t)]}function Iu(t){return t===void 0&&(t={}),typeof t.addEventListener=="function"&&typeof t.removeEventListener=="function"}var hr="OT_ZONE_CONTEXT",Pu=function(){function t(){this._enabled=!1,this._zoneCounter=0}return t.prototype._activeContextFromZone=function(e){return e&&e.get(hr)||At},t.prototype._bindFunction=function(e,n){var r=this,o=function(){for(var i=this,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return r.with(e,function(){return n.apply(i,a)})};
1return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),o},t.prototype._bindListener=function(e,n){var r=n;return r.__ot_listeners!==void 0||(r.__ot_listeners={},typeof r.addEventListener=="function"&&(r.addEventListener=this._patchAddEventListener(r,r.addEventListener,e)),typeof r.removeEventListener=="function"&&(r.removeEventListener=this._patchRemoveEventListener(r,r.removeEventListener))),n},t.prototype._createZoneName=function(){this._zoneCounter++;var e=Math.random();return this._zoneCounter+"-"+e},t.prototype._createZone=function(e,n){var r;return Zone.current.fork({name:e,properties:(r={},r[hr]=n,r)})},t.prototype._getActiveZone=function(){return Zone.current},t.prototype._patchAddEventListener=function(e,n,r){var o=this;return function(i,a,s){e.__ot_listeners===void 0&&(e.__ot_listeners={});var c=e.__ot_listeners[i];c===void 0&&(c=new WeakMap,e.__ot_listeners[i]=c);var u=o.bind(r,a);return c.set(a,u),n.call(this,i,u,s)}},t.prototype._patchRemoveEventListener=function(e,n){return function(r,o){if(e.__ot_listeners===void 0||e.__ot_listeners[r]===void 0)return n.call(this,r,o);var i=e.__ot_listeners[r],a=i.get(o);return i.delete(o),n.call(this,r,a||o)}},t.prototype.active=function(){if(!this._enabled)return At;var e=this._getActiveZone(),n=this._activeContextFromZone(e);return n||At},t.prototype.bind=function(e,n){return e===void 0&&(e=this.active()),typeof n=="function"?this._bindFunction(e,n):(Iu(n)&&this._bindListener(e,n),n)},t.prototype.disable=function(){return this._enabled=!1,this},t.prototype.enable=function(){return this._enabled=!0,this},t.prototype.with=function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var a=this._createZoneName(),s=this._createZone(a,e);return s.run(n,r,o)},t}();/** 2 * @license Angular v14.2.0-next.0 3 * (c) 2010-2022 Google LLC. https://angular.io/ 4 * License: MIT 5 *//** 6 * @license 7 * Copyright Google LLC All Rights Reserved. 8 * 9 * Use of this source code is governed by an MIT-style license that can be 10 * found in the LICENSE file at https://angular.io/license 11 */(function(t){const e=t.performance;function n(F){e&&e.mark&&e.mark(F)}function r(F,f){e&&e.measure&&e.measure(F,f)}n("Zone");const o=t.__Zone_symbol_prefix||"__zone_symbol__";function i(F){return o+F}const a=t[i("forceDuplicateZoneCheck")]===!0;if(t.Zone){if(a||typeof t.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return t.Zone}class s{constructor(f,l){this._parent=f,this._name=l?l.name||"unnamed":"<root>",this._properties=l&&l.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,l)}static assertZonePatched(){if(t.Promise!==St.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 f=s.current;for(;f.parent;)f=f.parent;return f}static get current(){return J.zone}static get currentTask(){return Tt}static __load_patch(f,l,E=!1){if(St.hasOwnProperty(f)){if(!E&&a)throw Error("Already loaded patch: "+f)}else if(!t["__Zone_disable_"+f]){const D="Zone:"+f;n(D),St[f]=l(t,s,rt),r(D,D)}}get parent(){return this._parent}get name(){return this._name}get(f){const l=this.getZoneWith(f);if(l)return l._properties[f]}getZoneWith(f){let l=this;for(;l;){if(l._properties.hasOwnProperty(f))return l;l=l._parent}return null}fork(f){if(!f)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,f)}wrap(f,l){if(typeof f!="function")throw new Error("Expecting function got: "+f);const E=this._zoneDelegate.intercept(this,f,l),D=this;return function(){return D.runGuarded(E,this,arguments,l)}}run(f,l,E,D){J={parent:J,zone:this};try{return this._zoneDelegate.invoke(this,f,l,E,D)}finally{J=J.parent}}runGuarded(f,l=null,E,D){J={parent:J,zone:this};try{try{return this._zoneDelegate.invoke(this,f,l,E,D)}catch(Z){if(this._zoneDelegate.handleError(this,Z))throw Z}}finally{J=J.parent}}runTask(f,l,E){if(f.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(f.zone||Q).name+"; Execution: "+this.name+")");if(f.state===B&&(f.type===at||f.type===L))return;const D=f.state!=m;D&&f._transitionTo(m,G),f.runCount++;const Z=Tt;Tt=f,J={parent:J,zone:this};try{f.type==L&&f.data&&!f.data.isPeriodic&&(f.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,f,l,E)}catch(ft){if(this._zoneDelegate.handleError(this,ft))throw ft}}finally{f.state!==B&&f.state!==A&&(f.type==at||f.data&&f.data.isPeriodic?D&&f._transitionTo(G,m):(f.runCount=0,this._updateTaskCount(f,-1),D&&f._transitionTo(B,m,B))),J=J.parent,Tt=Z}}scheduleTask(f){if(f.zone&&f.zone!==this){let E=this;for(;E;){if(E===f.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${f.zone.name}`);E=E.parent}}f._transitionTo(X,B);const l=[];f._zoneDelegates=l,f._zone=this;try{f=this._zoneDelegate.scheduleTask(this,f)}catch(E){throw f._transitionTo(A,X,B),this._zoneDelegate.handleError(this,E),E}return f._zoneDelegates===l&&this._updateTaskCount(f,1),f.state==X&&f._transitionTo(G,X),f}scheduleMicroTask(f,l,E,D){return this.scheduleTask(new _(k,f,l,E,D,void 0))}scheduleMacroTask(f,l,E,D,Z){return this.scheduleTask(new _(L,f,l,E,D,Z))}scheduleEventTask(f,l,E,D,Z){return this.scheduleTask(new _(at,f,l,E,D,Z))}cancelTask(f){if(f.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(f.zone||Q).name+"; Execution: "+this.name+")");f._transitionTo(V,G,m);try{this._zoneDelegate.cancelTask(this,f)}catch(l){throw f._transitionTo(A,V),this._zoneDelegate.handleError(this,l),l}return this._updateTaskCount(f,-1),f._transitionTo(B,V),f.runCount=0,f}_updateTaskCount(f,l){const E=f._zoneDelegates;l==-1&&(f._zoneDelegates=null);for(let D=0;D<E.length;D++)E[D]._updateTaskCount(f.type,l)}}s.__symbol__=i;const c={name:"",onHasTask:(F,f,l,E)=>F.hasTask(l,E),onScheduleTask:(F,f,l,E)=>F.scheduleTask(l,E),onInvokeTask:(F,f,l,E,D,Z)=>F.invokeTask(l,E,D,Z),onCancelTask:(F,f,l,E)=>F.cancelTask(l,E)};class u{constructor(f,l,E){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=f,this._parentDelegate=l,this._forkZS=E&&(E&&E.onFork?E:l._forkZS),this._forkDlgt=E&&(E.onFork?l:l._forkDlgt),this._forkCurrZone=E&&(E.onFork?this.zone:l._forkCurrZone),this._interceptZS=E&&(E.onIntercept?E:l._interceptZS),this._interceptDlgt=E&&(E.onIntercept?l:l._interceptDlgt),this._interceptCurrZone=E&&(E.onIntercept?this.zone:l._interceptCurrZone),this._invokeZS=E&&(E.onInvoke?E:l._invokeZS),this._invokeDlgt=E&&(E.onInvoke?l:l._invokeDlgt),this._invokeCurrZone=E&&(E.onInvoke?this.zone:l._invokeCurrZone),this._handleErrorZS=E&&(E.onHandleError?E:l._handleErrorZS),this._handleErrorDlgt=E&&(E.onHandleError?l:l._handleErrorDlgt),this._handleErrorCurrZone=E&&(E.onHandleError?this.zone:l._handleErrorCurrZone),this._scheduleTaskZS=E&&(E.onScheduleTask?E:l._scheduleTaskZS),this._scheduleTaskDlgt=E&&(E.onScheduleTask?l:l._scheduleTaskDlgt),this._scheduleTaskCurrZone=E&&(E.onScheduleTask?this.zone:l._scheduleTaskCurrZone),this._invokeTaskZS=E&&(E.onInvokeTask?E:l._invokeTaskZS),this._invokeTaskDlgt=E&&(E.onInvokeTask?l:l._invokeTaskDlgt),this._invokeTaskCurrZone=E&&(E.onInvokeTask?this.zone:l._invokeTaskCurrZone),this._cancelTaskZS=E&&(E.onCancelTask?E:l._cancelTaskZS),this._cancelTaskDlgt=E&&(E.onCancelTask?l:l._cancelTaskDlgt),this._cancelTaskCurrZone=E&&(E.onCancelTask?this.zone:l._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const D=E&&E.onHasTask,Z=l&&l._hasTaskZS;(D||Z)&&(this._hasTaskZS=D?E:c,this._hasTaskDlgt=l,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=f,E.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=l,this._scheduleTaskCurrZone=this.zone),E.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=l,this._invokeTaskCurrZone=this.zone),E.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=l,this._cancelTaskCurrZone=this.zone))}fork(f,l){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,f,l):new s(f,l)}intercept(f,l,E){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,f,l,E):l}invoke(f,l,E,D,Z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,f,l,E,D,Z):l.apply(E,D)}handleError(f,l){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,f,l):!0}scheduleTask(f,l){let E=l;if(this._scheduleTaskZS)this._hasTaskZS&&E._zoneDelegates.push(this._hasTaskDlgtOwner),E=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,f,l),E||(E=l);else if(l.scheduleFn)l.scheduleFn(l);else if(l.type==k)g(l);else throw new Error("Task is missing scheduleFn.");return E}invokeTask(f,l,E,D){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,f,l,E,D):l.callback.apply(E,D)}cancelTask(f,l){let E;if(this._cancelTaskZS)E=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,f,l);else{if(!l.cancelFn)throw Error("Task is not cancelable");E=l.cancelFn(l)}return E}hasTask(f,l){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,f,l)}catch(E){this.handleError(f,E)}}_updateTaskCount(f,l){const E=this._taskCounts,D=E[f],Z=E[f]=D+l;if(Z<0)throw new Error("More tasks executed then were scheduled.");
11if(D==0||Z==0){const ft={microTask:E.microTask>0,macroTask:E.macroTask>0,eventTask:E.eventTask>0,change:f};this.hasTask(this.zone,ft)}}}class _{constructor(f,l,E,D,Z,ft){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=f,this.source=l,this.data=D,this.scheduleFn=Z,this.cancelFn=ft,!E)throw new Error("callback is not defined");this.callback=E;const h=this;f===at&&D&&D.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(t,h,this,arguments)}}static invokeTask(f,l,E){f||(f=this),ct++;try{return f.runCount++,f.zone.runTask(f,l,E)}finally{ct==1&&O(),ct--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,X)}_transitionTo(f,l,E){if(this._state===l||this._state===E)this._state=f,f==B&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${f}', expecting state '${l}'${E?" or '"+E+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId!="undefined"?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 T=i("setTimeout"),p=i("Promise"),y=i("then");let P=[],C=!1,H;function b(F){if(H||t[p]&&(H=t[p].resolve(0)),H){let f=H[y];f||(f=H.then),f.call(H,F)}else t[T](F,0)}function g(F){ct===0&&P.length===0&&b(O),F&&P.push(F)}function O(){if(!C){for(C=!0;P.length;){const F=P;P=[];for(let f=0;f<F.length;f++){const l=F[f];try{l.zone.runTask(l,null,null)}catch(E){rt.onUnhandledError(E)}}}rt.microtaskDrainDone(),C=!1}}const Q={name:"NO ZONE"},B="notScheduled",X="scheduling",G="scheduled",m="running",V="canceling",A="unknown",k="microTask",L="macroTask",at="eventTask",St={},rt={symbol:i,currentZoneFrame:()=>J,onUnhandledError:tt,microtaskDrainDone:tt,scheduleMicroTask:g,showUncaughtError:()=>!s[i("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:tt,patchMethod:()=>tt,bindArguments:()=>[],patchThen:()=>tt,patchMacroTask:()=>tt,patchEventPrototype:()=>tt,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>tt,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>tt,wrapWithCurrentZone:()=>tt,filterProperties:()=>[],attachOriginToPatched:()=>tt,_redefineProperty:()=>tt,patchCallbacks:()=>tt,nativeScheduleMicroTask:b};let J={parent:null,zone:new s(null,null)},Tt=null,ct=0;function tt(){}return r("Zone","Zone"),t.Zone=s})(typeof window!="undefined"&&window||typeof self!="undefined"&&self||gr);/** 12 * @license 13 * Copyright Google LLC All Rights Reserved. 14 * 15 * Use of this source code is governed by an MIT-style license that can be 16 * found in the LICENSE file at https://angular.io/license 17 */const pe=Object.getOwnPropertyDescriptor,Gn=Object.defineProperty,xn=Object.getPrototypeOf,Du=Object.create,Lu=Array.prototype.slice,Hn="addEventListener",Vn="removeEventListener",fn=Zone.__symbol__(Hn),En=Zone.__symbol__(Vn),Rt="true",Ct="false",he=Zone.__symbol__("");function jn(t,e){return Zone.current.wrap(t,e)}function Yn(t,e,n,r,o){return Zone.current.scheduleMacroTask(t,e,n,r,o)}const Y=Zone.__symbol__,Ke=typeof window!="undefined",ee=Ke?window:void 0,it=Ke&&ee||typeof self=="object"&&self||gr,Mu="removeAttribute";function Fn(t,e){for(let n=t.length-1;n>=0;n--)typeof t[n]=="function"&&(t[n]=jn(t[n],e+"_"+n));return t}function wu(t,e){const n=t.constructor.name;for(let r=0;r<e.length;r++){const o=e[r],i=t[o];if(i){const a=pe(t,o);if(!no(a))continue;t[o]=(s=>{const c=function(){return s.apply(this,Fn(arguments,n+"."+o))};return It(c,s),c})(i)}}}function no(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set=="undefined"):!0}const ro=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope,$e=!("nw"in it)&&typeof it.process!="undefined"&&{}.toString.call(it.process)==="[object process]",Xn=!$e&&!ro&&!!(Ke&&ee.HTMLElement),oo=typeof it.process!="undefined"&&{}.toString.call(it.process)==="[object process]"&&!ro&&!!(Ke&&ee.HTMLElement),Ye={},Sr=function(t){if(t=t||it.event,!t)return;let e=Ye[t.type];e||(e=Ye[t.type]=Y("ON_PROPERTY"+t.type));const n=this||t.target||it,r=n[e];let o;if(Xn&&n===ee&&t.type==="error"){const i=t;o=r&&r.call(this,i.message,i.filename,i.lineno,i.colno,i.error),o===!0&&t.preventDefault()}else o=r&&r.apply(this,arguments),o!=null&&!o&&t.preventDefault();return o};function vr(t,e,n){let r=pe(t,e);if(!r&&n&&pe(n,e)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const o=Y("on"+e+"patched");if(t.hasOwnProperty(o)&&t[o])return;delete r.writable,delete r.value;const i=r.get,a=r.set,s=e.slice(2);let c=Ye[s];c||(c=Ye[s]=Y("ON_PROPERTY"+s)),r.set=function(u){let _=this;if(!_&&t===it&&(_=it),!_)return;typeof _[c]=="function"&&_.removeEventListener(s,Sr),a&&a.call(_,null),_[c]=u,typeof u=="function"&&_.addEventListener(s,Sr,!1)},r.get=function(){let u=this;if(!u&&t===it&&(u=it),!u)return null;const _=u[c];if(_)return _;if(i){let T=i.call(this);if(T)return r.set.call(this,T),typeof u[Mu]=="function"&&u.removeAttribute(e),T}return null},Gn(t,e,r),t[o]=!0}function io(t,e,n){if(e)for(let r=0;r<e.length;r++)vr(t,"on"+e[r],n);else{const r=[];for(const o in t)o.slice(0,2)=="on"&&r.push(o);for(let o=0;o<r.length;o++)vr(t,r[o],n)}}const pt=Y("originalInstance");function Se(t){const e=it[t];if(!e)return;it[Y(t)]=e,it[t]=function(){const o=Fn(arguments,t);switch(o.length){case 0:this[pt]=new e;break;case 1:this[pt]=new e(o[0]);break;case 2:this[pt]=new e(o[0],o[1]);break;case 3:this[pt]=new e(o[0],o[1],o[2]);break;case 4:this[pt]=new e(o[0],o[1],o[2],o[3]);break;default:throw new Error("Arg list too long.")}},It(it[t],e);const n=new e(function(){});let r;for(r in n)t==="XMLHttpRequest"&&r==="responseBlob"||function(o){typeof n[o]=="function"?it[t].prototype[o]=function(){return this[pt][o].apply(this[pt],arguments)}:Gn(it[t].prototype,o,{set:function(i){typeof i=="function"?(this[pt][o]=jn(i,t+"."+o),It(this[pt][o],i)):this[pt][o]=i},get:function(){return this[pt][o]}})}(r);for(r in e)r!=="prototype"&&e.hasOwnProperty(r)&&(it[t][r]=e[r])}function Pt(t,e,n){let r=t;for(;r&&!r.hasOwnProperty(e);)r=xn(r);!r&&t[e]&&(r=t);const o=Y(e);let i=null;if(r&&(!(i=r[o])||!r.hasOwnProperty(o))){i=r[o]=r[e];const a=r&&pe(r,e);if(no(a)){const s=n(i,o,e);r[e]=function(){return s(this,arguments)},It(r[e],i)}}return i}function Uu(t,e,n){let r=null;function o(i){const a=i.data;return a.args[a.cbIdx]=function(){i.invoke.apply(this,arguments)},r.apply(a.target,a.args),i}r=Pt(t,e,i=>function(a,s){const c=n(a,s);return c.cbIdx>=0&&typeof s[c.cbIdx]=="function"?Yn(c.name,s[c.cbIdx],c,o):i.apply(a,s)})}function It(t,e){t[Y("OriginalDelegate")]=e}let Or=!1,dn=!1;function ku(){try{const t=ee.navigator.userAgent;if(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1)return!0}catch(t){}return!1}function Bu(){if(Or)return dn;Or=!0;try{const t=ee.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(dn=!0)}catch(t){}return dn}/** 18 * @license 19 * Copyright Google LLC All Rights Reserved. 20 * 21 * Use of this source code is governed by an MIT-style license that can be 22 * found in the LICENSE file at https://angular.io/license 23 */Zone.__load_patch("ZoneAwarePromise",(t,e,n)=>{const r=Object.getOwnPropertyDescriptor,o=Object.defineProperty;function i(h){if(h&&h.toString===Object.prototype.toString){const S=h.constructor&&h.constructor.name;return(S||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}const a=n.symbol,s=[],c=t[a("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]===!0,u=a("Promise"),_=a("then"),T="__creationTrace__";n.onUnhandledError=h=>{if(n.showUncaughtError()){const S=h&&h.rejection;S?console.error("Unhandled Promise rejection:",S instanceof Error?S.message:S,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",S,S instanceof Error?S.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;s.length;){const h=s.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(S){y(S)}}};const p=a("unhandledPromiseRejectionHandler");function y(h){n.onUnhandledError(h);try{const S=e[p];typeof S=="function"&&S.call(this,h)}catch(S){}}function P(h){return h&&h.then}function C(h){return h}function H(h){return l.reject(h)}const b=a("state"),g=a("value"),O=a("finally"),Q=a("parentPromiseValue"),B=a("parentPromiseState"),X="Promise.then",G=null,m=!0,V=!1,A=0;function k(h,S){return d=>{try{rt(h,S,d)}catch(v){rt(h,!1,v)}}}const L=function(){let h=!1;return function(d){return function(){h||(h=!0,d.apply(null,arguments))}}},at="Promise resolved with itself",St=a("currentTaskTrace");function rt(h,S,d){const v=L();if(h===d)throw new TypeError(at);if(h[b]===G){let R=null;try{(typeof d=="object"||typeof d=="function")&&(R=d&&d.then)}catch(I){return v(()=>{rt(h,!1,I)})(),h}if(S!==V&&d instanceof l&&d.hasOwnProperty(b)&&d.hasOwnProperty(g)&&d[b]!==G)Tt(d),rt(h,d[b],d[g]);else if(S!==V&&typeof R=="function")try{R.call(d,v(k(h,S)),v(k(h,!1)))}catch(I){v(()=>{rt(h,!1,I)})()}else{h[b]=S;const I=h[g];if(h[g]=d,h[O]===O&&S===m&&(h[b]=h[B],h[g]=h[Q]),S===V&&d instanceof Error){const N=e.currentTask&&e.currentTask.data&&e.currentTask.data[T];N&&o(d,St,{configurable:!0,enumerable:!1,writable:!0,value:N})}for(let N=0;N<I.length;)ct(h,I[N++],I[N++],I[N++],I[N++]);if(I.length==0&&S==V){h[b]=A;let N=d;try{throw new Error("Uncaught (in promise): "+i(d)+(d&&d.stack?` 24`+d.stack:""))}catch(M){N=M}c&&(N.throwOriginal=!0),N.rejection=d,N.promise=h,N.zone=e.current,N.task=e.currentTask,s.push(N),n.scheduleMicroTask()}}}return h}const J=a("rejectionHandledHandler");function Tt(h){if(h[b]===A){try{const S=e[J];S&&typeof S=="function"&&S.call(this,{rejection:h[g],promise:h})}catch(S){}h[b]=V;for(let S=0;S<s.length;S++)h===s[S].promise&&s.splice(S,1)}}function ct(h,S,d,v,R){Tt(h);const I=h[b],N=I?typeof v=="function"?v:C:typeof R=="function"?R:H;S.scheduleMicroTask(X,()=>{try{const M=h[g],w=!!d&&O===d[O];w&&(d[Q]=M,d[B]=I);const U=S.run(N,void 0,w&&N!==H&&N!==C?[]:[M]);rt(d,!0,U)}catch(M){rt(d,!1,M)}},d)}const tt="function ZoneAwarePromise() { [native code] }",F=function(){},f=t.AggregateError;class l{static toString(){return tt}static resolve(S){return rt(new this(null),m,S)}static reject(S){return rt(new this(null),V,S)}static any(S){if(!S||typeof S[Symbol.iterator]!="function")return Promise.reject(new f([],"All promises were rejected"));const d=[];let v=0;try{for(let N of S)v++,d.push(l.resolve(N))}catch(N){return Promise.reject(new f([],"All promises were rejected"))}if(v===0)return Promise.reject(new f([],"All promises were rejected"));let R=!1;const I=[];return new l((N,M)=>{for(let w=0;w<d.length;w++)d[w].then(U=>{R||(R=!0,N(U))},U=>{I.push(U),v--,v===0&&(R=!0,M(new f(I,"All promises were rejected")))})})}static race(S){let d,v,R=new this((M,w)=>{d=M,v=w});function I(M){d(M)}function N(M){v(M)}for(let M of S)P(M)||(M=this.resolve(M)),M.then(I,N);return R}static all(S){return l.allWithCallback(S)}static allSettled(S){return(this&&this.prototype instanceof l?this:l).allWithCallback(S,{thenCallback:v=>({status:"fulfilled",value:v}),errorCallback:v=>({status:"rejected",reason:v})})}static allWithCallback(S,d){let v,R,I=new this((U,W)=>{v=U,R=W}),N=2,M=0;const w=[];for(let U of S){P(U)||(U=this.resolve(U));const W=M;try{U.then(K=>{w[W]=d?d.thenCallback(K):K,N--,N===0&&v(w)},K=>{d?(w[W]=d.errorCallback(K),N--,N===0&&v(w)):R(K)})}catch(K){R(K)}N++,M++}return N-=2,N===0&&v(w),I}constructor(S){const d=this;
24if(!(d instanceof l))throw new Error("Must be an instanceof Promise.");d[b]=G,d[g]=[];try{const v=L();S&&S(v(k(d,m)),v(k(d,V)))}catch(v){rt(d,!1,v)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return l}then(S,d){var v;let R=(v=this.constructor)===null||v===void 0?void 0:v[Symbol.species];(!R||typeof R!="function")&&(R=this.constructor||l);const I=new R(F),N=e.current;return this[b]==G?this[g].push(N,I,S,d):ct(this,N,I,S,d),I}catch(S){return this.then(null,S)}finally(S){var d;let v=(d=this.constructor)===null||d===void 0?void 0:d[Symbol.species];(!v||typeof v!="function")&&(v=l);const R=new v(F);R[O]=O;const I=e.current;return this[b]==G?this[g].push(I,R,S,S):ct(this,I,R,S,S),R}}l.resolve=l.resolve,l.reject=l.reject,l.race=l.race,l.all=l.all;const E=t[u]=t.Promise;t.Promise=l;const D=a("thenPatched");function Z(h){const S=h.prototype,d=r(S,"then");if(d&&(d.writable===!1||!d.configurable))return;const v=S.then;S[_]=v,h.prototype.then=function(R,I){return new l((M,w)=>{v.call(this,M,w)}).then(R,I)},h[D]=!0}n.patchThen=Z;function ft(h){return function(S,d){let v=h.apply(S,d);if(v instanceof l)return v;let R=v.constructor;return R[D]||Z(R),v}}return E&&(Z(E),Pt(t,"fetch",h=>ft(h))),Promise[e.__symbol__("uncaughtPromiseErrors")]=s,l});/** 25 * @license 26 * Copyright Google LLC All Rights Reserved. 27 * 28 * Use of this source code is governed by an MIT-style license that can be 29 * found in the LICENSE file at https://angular.io/license 30 */Zone.__load_patch("toString",t=>{const e=Function.prototype.toString,n=Y("OriginalDelegate"),r=Y("Promise"),o=Y("Error"),i=function(){if(typeof this=="function"){const u=this[n];if(u)return typeof u=="function"?e.call(u):Object.prototype.toString.call(u);if(this===Promise){const _=t[r];if(_)return e.call(_)}if(this===Error){const _=t[o];if(_)return e.call(_)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;const a=Object.prototype.toString,s="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?s:a.call(this)}});/** 31 * @license 32 * Copyright Google LLC All Rights Reserved. 33 * 34 * Use of this source code is governed by an MIT-style license that can be 35 * found in the LICENSE file at https://angular.io/license 36 */let $t=!1;if(typeof window!="undefined")try{const t=Object.defineProperty({},"passive",{get:function(){$t=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){$t=!1}const Gu={useG:!0},Et={},ao={},so=new RegExp("^"+he+"(\\w+)(true|false)$"),uo=Y("propagationStopped");function co(t,e){const n=(e?e(t):t)+Ct,r=(e?e(t):t)+Rt,o=he+n,i=he+r;Et[t]={},Et[t][Ct]=o,Et[t][Rt]=i}function xu(t,e,n,r){const o=r&&r.add||Hn,i=r&&r.rm||Vn,a=r&&r.listeners||"eventListeners",s=r&&r.rmAll||"removeAllListeners",c=Y(o),u="."+o+":",_="prependListener",T="."+_+":",p=function(g,O,Q){if(g.isRemoved)return;const B=g.callback;typeof B=="object"&&B.handleEvent&&(g.callback=m=>B.handleEvent(m),g.originalDelegate=B);let X;try{g.invoke(g,O,[Q])}catch(m){X=m}const G=g.options;if(G&&typeof G=="object"&&G.once){const m=g.originalDelegate?g.originalDelegate:g.callback;O[i].call(O,Q.type,m,G)}return X};function y(g,O,Q){if(O=O||t.event,!O)return;const B=g||O.target||t,X=B[Et[O.type][Q?Rt:Ct]];if(X){const G=[];if(X.length===1){const m=p(X[0],B,O);m&&G.push(m)}else{const m=X.slice();for(let V=0;V<m.length&&!(O&&O[uo]===!0);V++){const A=p(m[V],B,O);A&&G.push(A)}}if(G.length===1)throw G[0];for(let m=0;m<G.length;m++){const V=G[m];e.nativeScheduleMicroTask(()=>{throw V})}}}const P=function(g){return y(this,g,!1)},C=function(g){return y(this,g,!0)};function H(g,O){if(!g)return!1;let Q=!0;O&&O.useG!==void 0&&(Q=O.useG);const B=O&&O.vh;let X=!0;O&&O.chkDup!==void 0&&(X=O.chkDup);let G=!1;O&&O.rt!==void 0&&(G=O.rt);let m=g;for(;m&&!m.hasOwnProperty(o);)m=xn(m);if(!m&&g[o]&&(m=g),!m||m[c])return!1;const V=O&&O.eventNameToString,A={},k=m[c]=m[o],L=m[Y(i)]=m[i],at=m[Y(a)]=m[a],St=m[Y(s)]=m[s];let rt;O&&O.prepend&&(rt=m[Y(O.prepend)]=m[O.prepend]);function J(d,v){return!$t&&typeof d=="object"&&d?!!d.capture:!$t||!v?d:typeof d=="boolean"?{capture:d,passive:!0}:d?typeof d=="object"&&d.passive!==!1?Object.assign(Object.assign({},d),{passive:!0}):d:{passive:!0}}const Tt=function(d){if(!A.isExisting)return k.call(A.target,A.eventName,A.capture?C:P,A.options)},ct=function(d){if(!d.isRemoved){const v=Et[d.eventName];let R;v&&(R=v[d.capture?Rt:Ct]);const I=R&&d.target[R];if(I){for(let N=0;N<I.length;
36N++)if(I[N]===d){I.splice(N,1),d.isRemoved=!0,I.length===0&&(d.allRemoved=!0,d.target[R]=null);break}}}if(d.allRemoved)return L.call(d.target,d.eventName,d.capture?C:P,d.options)},tt=function(d){return k.call(A.target,A.eventName,d.invoke,A.options)},F=function(d){return rt.call(A.target,A.eventName,d.invoke,A.options)},f=function(d){return L.call(d.target,d.eventName,d.invoke,d.options)},l=Q?Tt:tt,E=Q?ct:f,D=function(d,v){const R=typeof v;return R==="function"&&d.callback===v||R==="object"&&d.originalDelegate===v},Z=O&&O.diff?O.diff:D,ft=Zone[Y("UNPATCHED_EVENTS")],h=t[Y("PASSIVE_EVENTS")],S=function(d,v,R,I,N=!1,M=!1){return function(){const w=this||t;let U=arguments[0];O&&O.transferEventName&&(U=O.transferEventName(U));let W=arguments[1];if(!W)return d.apply(this,arguments);if($e&&U==="uncaughtException")return d.apply(this,arguments);let K=!1;if(typeof W!="function"){if(!W.handleEvent)return d.apply(this,arguments);K=!0}if(B&&!B(d,W,w,arguments))return;const Lt=$t&&!!h&&h.indexOf(U)!==-1,vt=J(arguments[2],Lt);if(ft){for(let Gt=0;Gt<ft.length;Gt++)if(U===ft[Gt])return Lt?d.call(w,U,W,vt):d.apply(this,arguments)}const ze=vt?typeof vt=="boolean"?!0:vt.capture:!1,Wn=vt&&typeof vt=="object"?vt.once:!1,fo=Zone.current;let qe=Et[U];qe||(co(U,V),qe=Et[U]);const Kn=qe[ze?Rt:Ct];let Xt=w[Kn],$n=!1;if(Xt){if($n=!0,X){for(let Gt=0;Gt<Xt.length;Gt++)if(Z(Xt[Gt],W))return}}else Xt=w[Kn]=[];let ge;const zn=w.constructor.name,qn=ao[zn];qn&&(ge=qn[U]),ge||(ge=zn+v+(V?V(U):U)),A.options=vt,Wn&&(A.options.once=!1),A.target=w,A.capture=ze,A.eventName=U,A.isExisting=$n;const ne=Q?Gu:void 0;ne&&(ne.taskData=A);const Mt=fo.scheduleEventTask(ge,W,ne,R,I);if(A.target=null,ne&&(ne.taskData=null),Wn&&(vt.once=!0),!$t&&typeof Mt.options=="boolean"||(Mt.options=vt),Mt.target=w,Mt.capture=ze,Mt.eventName=U,K&&(Mt.originalDelegate=W),M?Xt.unshift(Mt):Xt.push(Mt),N)return w}};return m[o]=S(k,u,l,E,G),rt&&(m[_]=S(rt,T,F,E,G,!0)),m[i]=function(){const d=this||t;let v=arguments[0];O&&O.transferEventName&&(v=O.transferEventName(v));const R=arguments[2],I=R?typeof R=="boolean"?!0:R.capture:!1,N=arguments[1];if(!N)return L.apply(this,arguments);if(B&&!B(L,N,d,arguments))return;const M=Et[v];let w;M&&(w=M[I?Rt:Ct]);const U=w&&d[w];if(U)for(let W=0;W<U.length;W++){const K=U[W];if(Z(K,N)){if(U.splice(W,1),K.isRemoved=!0,U.length===0&&(K.allRemoved=!0,d[w]=null,typeof v=="string")){const Lt=he+"ON_PROPERTY"+v;d[Lt]=null}return K.zone.cancelTask(K),G?d:void 0}}return L.apply(this,arguments)},m[a]=function(){const d=this||t;let v=arguments[0];O&&O.transferEventName&&(v=O.transferEventName(v));const R=[],I=_o(d,V?V(v):v);for(let N=0;N<I.length;N++){const M=I[N];let w=M.originalDelegate?M.originalDelegate:M.callback;R.push(w)}return R},m[s]=function(){const d=this||t;let v=arguments[0];if(v){O&&O.transferEventName&&(v=O.transferEventName(v));const R=Et[v];if(R){const I=R[Ct],N=R[Rt],M=d[I],w=d[N];if(M){const U=M.slice();for(let W=0;W<U.length;W++){const K=U[W];let Lt=K.originalDelegate?K.originalDelegate:K.callback;this[i].call(this,v,Lt,K.options)}}if(w){const U=w.slice();for(let W=0;W<U.length;W++){const K=U[W];let Lt=K.originalDelegate?K.originalDelegate:K.callback;this[i].call(this,v,Lt,K.options)}}}}else{const R=Object.keys(d);for(let I=0;I<R.length;I++){const N=R[I],M=so.exec(N);let w=M&&M[1];w&&w!=="removeListener"&&this[s].call(this,w)}this[s].call(this,"removeListener")}if(G)return this},It(m[o],k),It(m[i],L),St&&It(m[s],St),at&&It(m[a],at),!0}let b=[];for(let g=0;g<n.length;g++)b[g]=H(n[g],r);return b}function _o(t,e){if(!e){const i=[];for(let a in t){const s=so.exec(a);let c=s&&s[1];if(c&&(!e||c===e)){const u=t[a];if(u)for(let _=0;_<u.length;_++)i.push(u[_])}}return i}let n=Et[e];n||(co(e),n=Et[e]);const r=t[n[Ct]],o=t[n[Rt]];return r?o?r.concat(o):r.slice():o?o.slice():[]}function Hu(t,e){const n=t.Event;n&&n.prototype&&e.patchMethod(n.prototype,"stopImmediatePropagation",r=>function(o,i){o[uo]=!0,r&&r.apply(o,i)})}/** 37 * @license 38 * Copyright Google LLC All Rights Reserved. 39 * 40 * Use of this source code is governed by an MIT-style license that can be 41 * found in the LICENSE file at https://angular.io/license 42 */function Vu(t,e,n,r,o){const i=Zone.__symbol__(r);if(e[i])return;const a=e[i]=e[r];e[r]=function(s,c,u){return c&&c.prototype&&o.forEach(function(_){const T=`${n}.${r}::`+_,p=c.prototype;try{if(p.hasOwnProperty(_)){const y=t.ObjectGetOwnPropertyDescriptor(p,_);y&&y.value?(y.value=t.wrapWithCurrentZone(y.value,T),t._redefineProperty(c.prototype,_,y)):p[_]&&(p[_]=t.wrapWithCurrentZone(p[_],T))}else p[_]&&(p[_]=t.wrapWithCurrentZone(p[_],T))}catch(y){}}),a.call(e,s,c,u)},t.attachOriginToPatched(e[r],a)}/** 43 * @license 44 * Copyright Google LLC All Rights Reserved. 45 * 46 * Use of this source code is governed by an MIT-style license that can be 47 * found in the LICENSE file at https://angular.io/license 48 */function lo(t,e,n){if(!n||n.length===0)return e;const r=n.filter(i=>i.target===t);if(!r||r.length===0)return e;const o=r[0].ignoreProperties;return e.filter(i=>o.indexOf(i)===-1)}function Ar(t,e,n,r){if(!t)return;const o=lo(t,e,n);io(t,o,r)}function Cn(t){return Object.getOwnPropertyNames(t).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function ju(t,e){if($e&&!oo||Zone[t.symbol("patchEvents")])return;const n=e.__Zone_ignore_on_properties;let r=[];if(Xn){const o=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const i=ku()?[{target:o,ignoreProperties:["error"]}]:[];Ar(o,Cn(o),n&&n.concat(i),xn(o))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let o=0;o<r.length;o++){const i=e[r[o]];i&&i.prototype&&Ar(i.prototype,Cn(i.prototype),n)}}/** 49 * @license 50 * Copyright Google LLC All Rights Reserved. 51 * 52 * Use of this source code is governed by an MIT-style license that can be 53 * found in the LICENSE file at https://angular.io/license 54 */Zone.__load_patch("util",(t,e,n)=>{const r=Cn(t);n.patchOnProperties=io,n.patchMethod=Pt,n.bindArguments=Fn,n.patchMacroTask=Uu;const o=e.__symbol__("BLACK_LISTED_EVENTS"),i=e.__symbol__("UNPATCHED_EVENTS");
54t[i]&&(t[o]=t[i]),t[o]&&(e[o]=e[i]=t[o]),n.patchEventPrototype=Hu,n.patchEventTarget=xu,n.isIEOrEdge=Bu,n.ObjectDefineProperty=Gn,n.ObjectGetOwnPropertyDescriptor=pe,n.ObjectCreate=Du,n.ArraySlice=Lu,n.patchClass=Se,n.wrapWithCurrentZone=jn,n.filterProperties=lo,n.attachOriginToPatched=It,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Vu,n.getGlobalObjects=()=>({globalSources:ao,zoneSymbolEventNames:Et,eventNames:r,isBrowser:Xn,isMix:oo,isNode:$e,TRUE_STR:Rt,FALSE_STR:Ct,ZONE_SYMBOL_PREFIX:he,ADD_EVENT_LISTENER_STR:Hn,REMOVE_EVENT_LISTENER_STR:Vn})});/** 55 * @license 56 * Copyright Google LLC All Rights Reserved. 57 * 58 * Use of this source code is governed by an MIT-style license that can be 59 * found in the LICENSE file at https://angular.io/license 60 */const Ne=Y("zoneTask");function Qt(t,e,n,r){let o=null,i=null;e+=r,n+=r;const a={};function s(u){const _=u.data;return _.args[0]=function(){return u.invoke.apply(this,arguments)},_.handleId=o.apply(t,_.args),u}function c(u){return i.call(t,u.data.handleId)}o=Pt(t,e,u=>function(_,T){if(typeof T[0]=="function"){const p={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?T[1]||0:void 0,args:T},y=T[0];T[0]=function(){try{return y.apply(this,arguments)}finally{p.isPeriodic||(typeof p.handleId=="number"?delete a[p.handleId]:p.handleId&&(p.handleId[Ne]=null))}};const P=Yn(e,T[0],p,s,c);if(!P)return P;const C=P.data.handleId;return typeof C=="number"?a[C]=P:C&&(C[Ne]=P),C&&C.ref&&C.unref&&typeof C.ref=="function"&&typeof C.unref=="function"&&(P.ref=C.ref.bind(C),P.unref=C.unref.bind(C)),typeof C=="number"||C?C:P}else return u.apply(t,T)}),i=Pt(t,n,u=>function(_,T){const p=T[0];let y;typeof p=="number"?y=a[p]:(y=p&&p[Ne],y||(y=p)),y&&typeof y.type=="string"?y.state!=="notScheduled"&&(y.cancelFn&&y.data.isPeriodic||y.runCount===0)&&(typeof p=="number"?delete a[p]:p&&(p[Ne]=null),y.zone.cancelTask(y)):u.apply(t,T)})}/** 61 * @license 62 * Copyright Google LLC All Rights Reserved. 63 * 64 * Use of this source code is governed by an MIT-style license that can be 65 * found in the LICENSE file at https://angular.io/license 66 */function Yu(t,e){const{isBrowser:n,isMix:r}=e.getGlobalObjects();if(!n&&!r||!t.customElements||!("customElements"in t))return;const o=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];e.patchCallbacks(e,t.customElements,"customElements","define",o)}/** 67 * @license 68 * Copyright Google LLC All Rights Reserved. 69 * 70 * Use of this source code is governed by an MIT-style license that can be 71 * found in the LICENSE file at https://angular.io/license 72 */function Fu(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 c=0;c<n.length;c++){const u=n[c],_=u+i,T=u+o,p=a+_,y=a+T;r[u]={},r[u][i]=p,r[u][o]=y}const s=t.EventTarget;if(!(!s||!s.prototype))return e.patchEventTarget(t,e,[s&&s.prototype]),!0}function Xu(t,e){e.patchEventPrototype(t,e)}/** 73 * @license 74 * Copyright Google LLC All Rights Reserved. 75 * 76 * Use of this source code is governed by an MIT-style license that can be 77 * found in the LICENSE file at https://angular.io/license 78 */Zone.__load_patch("legacy",t=>{const e=t[Zone.__symbol__("legacyPatch")];e&&e()});Zone.__load_patch("queueMicrotask",(t,e,n)=>{n.patchMethod(t,"queueMicrotask",r=>function(o,i){e.current.scheduleMicroTask("queueMicrotask",i[0])})});Zone.__load_patch("timers",t=>{const e="set",n="clear";Qt(t,e,n,"Timeout"),Qt(t,e,n,"Interval"),Qt(t,e,n,"Immediate")});Zone.__load_patch("requestAnimationFrame",t=>{Qt(t,"request","cancel","AnimationFrame"),Qt(t,"mozRequest","mozCancel","AnimationFrame"),Qt(t,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(t,e)=>{const n=["alert","prompt","confirm"];for(let r=0;r<n.length;r++){const o=n[r];Pt(t,o,(i,a,s)=>function(c,u){return e.current.run(i,t,u,s)})}});Zone.__load_patch("EventTarget",(t,e,n)=>{Xu(t,n),Fu(t,n);const r=t.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(t,n,[r.prototype])});Zone.__load_patch("MutationObserver",(t,e,n)=>
78{Se("MutationObserver"),Se("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(t,e,n)=>{Se("IntersectionObserver")});Zone.__load_patch("FileReader",(t,e,n)=>{Se("FileReader")});Zone.__load_patch("on_property",(t,e,n)=>{ju(n,t)});Zone.__load_patch("customElements",(t,e,n)=>{Yu(t,n)});Zone.__load_patch("XHR",(t,e)=>{c(t);const n=Y("xhrTask"),r=Y("xhrSync"),o=Y("xhrListener"),i=Y("xhrScheduled"),a=Y("xhrURL"),s=Y("xhrErrorBeforeScheduled");function c(u){const _=u.XMLHttpRequest;if(!_)return;const T=_.prototype;function p(A){return A[n]}let y=T[fn],P=T[En];if(!y){const A=u.XMLHttpRequestEventTarget;if(A){const k=A.prototype;y=k[fn],P=k[En]}}const C="readystatechange",H="scheduled";function b(A){const k=A.data,L=k.target;L[i]=!1,L[s]=!1;const at=L[o];y||(y=L[fn],P=L[En]),at&&P.call(L,C,at);const St=L[o]=()=>{if(L.readyState===L.DONE)if(!k.aborted&&L[i]&&A.state===H){const J=L[e.__symbol__("loadfalse")];if(L.status!==0&&J&&J.length>0){const Tt=A.invoke;A.invoke=function(){const ct=L[e.__symbol__("loadfalse")];for(let tt=0;tt<ct.length;tt++)ct[tt]===A&&ct.splice(tt,1);!k.aborted&&A.state===H&&Tt.call(A)},J.push(A)}else A.invoke()}else!k.aborted&&L[i]===!1&&(L[s]=!0)};return y.call(L,C,St),L[n]||(L[n]=A),m.apply(L,k.args),L[i]=!0,A}function g(){}function O(A){const k=A.data;return k.aborted=!0,V.apply(k.target,k.args)}const Q=Pt(T,"open",()=>function(A,k){return A[r]=k[2]==!1,A[a]=k[1],Q.apply(A,k)}),B="XMLHttpRequest.send",X=Y("fetchTaskAborting"),G=Y("fetchTaskScheduling"),m=Pt(T,"send",()=>function(A,k){if(e.current[G]===!0||A[r])return m.apply(A,k);{const L={target:A,url:A[a],isPeriodic:!1,args:k,aborted:!1},at=Yn(B,g,L,b,O);A&&A[s]===!0&&!L.aborted&&at.state===H&&at.invoke()}}),V=Pt(T,"abort",()=>function(A,k){const L=p(A);if(L&&typeof L.type=="string"){if(L.cancelFn==null||L.data&&L.data.aborted)return;L.zone.cancelTask(L)}else if(e.current[X]===!0)return V.apply(A,k)})}});Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&wu(t.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(t,e)=>{function n(r){return function(o){_o(t,r).forEach(a=>{const s=t.PromiseRejectionEvent;if(s){const c=new s(r,{promise:o.promise,reason:o.rejection});a.invoke(c)}})}}t.PromiseRejectionEvent&&(e[Y("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[Y("rejectionHandledHandler")]=n("rejectionhandled"))});class Zn extends To{constructor(e={}){super(),this.options=e,this.name="@grafana/faro-web-tracing",this.version=po}initialize(){var e,n,r,o,i;const a=this.options,s={};this.config.app.name&&(s[lt.SERVICE_NAME]=this.config.app.name),this.config.app.version&&(s[lt.SERVICE_VERSION]=this.config.app.version),Object.assign(s,a.resourceAttributes);const c=xe.default().merge(new xe(s)),u=new Ks({resource:c});u.addSpanProcessor((e=a.spanProcessor)!==null&&e!==void 0?e:new as(new zr(new is({api:this.api}),{scheduledDelayMillis:Zn.SCHEDULED_BATCH_DELAY_MS,maxExportBatchSize:30}),this.metas)),u.register({propagator:(n=a.propagator)!==null&&n!==void 0?n:new kr,contextManager:(r=a.contextManager)!==null&&r!==void 0?r:new Pu}),au({instrumentations:(o=a.instrumentations)!==null&&o!==void 0?o:bu({ignoreUrls:this.getIgnoreUrls(),propagateTraceHeaderCorsUrls:(i=this.options.instrumentationOptions)===null||i===void 0?void 0:i.propagateTraceHeaderCorsUrls})}),this.api.initOTEL(et,$)}getIgnoreUrls(){return this.transports.transports.flatMap(e=>e.getIgnoreUrls())}}Zn.SCHEDULED_BATCH_DELAY_MS=1e3;export{as as FaroSessionSpanProcessor,is as FaroTraceExporter,Zn as TracingInstrumentation,bu as getDefaultOTELInstrumentations};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.