@vercel/otel 1.13.0 → 2.0.0-2cf7cf1c-20250926110730
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/edge/index.js +11 -11
- package/dist/edge/index.js.map +4 -4
- package/dist/node/chunk-5MU5Z6L3.js +8 -0
- package/dist/node/chunk-5MU5Z6L3.js.map +7 -0
- package/dist/node/chunk-NWCAEW5Y.js +8 -0
- package/dist/node/chunk-NWCAEW5Y.js.map +7 -0
- package/dist/node/getMachineId-bsd-WEBNKY2R.js +8 -0
- package/dist/node/getMachineId-bsd-WEBNKY2R.js.map +7 -0
- package/dist/node/getMachineId-darwin-LT47KAXP.js +9 -0
- package/dist/node/getMachineId-darwin-LT47KAXP.js.map +7 -0
- package/dist/node/getMachineId-linux-LTVQO6VW.js +8 -0
- package/dist/node/getMachineId-linux-LTVQO6VW.js.map +7 -0
- package/dist/node/getMachineId-unsupported-UKWBA27G.js +8 -0
- package/dist/node/getMachineId-unsupported-UKWBA27G.js.map +7 -0
- package/dist/node/getMachineId-win-NLJKOPY6.js +8 -0
- package/dist/node/getMachineId-win-NLJKOPY6.js.map +7 -0
- package/dist/node/index.js +11 -8
- package/dist/node/index.js.map +4 -4
- package/dist/types/exporters/exporter-trace-otlp-proto-fetch.d.ts +0 -3
- package/dist/types/exporters/proto.d.ts +1 -1
- package/dist/types/instrumentations/fetch.d.ts +3 -3
- package/dist/types/types.d.ts +9 -9
- package/dist/types/utils/env-parser.d.ts +5 -0
- package/package.json +21 -22
package/dist/edge/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
if (globalThis.performance === undefined) {
|
|
2
2
|
globalThis.performance = { timeOrigin: 0, now: () => Date.now() };
|
|
3
3
|
}
|
|
4
|
-
var Nu=Object.create;var xr=Object.defineProperty;var wu=Object.getOwnPropertyDescriptor;var Mu=Object.getOwnPropertyNames;var xu=Object.getPrototypeOf,Du=Object.prototype.hasOwnProperty;var ci=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Dr=(e,t)=>()=>(e&&(t=e(e=0)),t);var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Se=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Mu(t))!Du.call(e,o)&&o!==r&&xr(e,o,{get:()=>t[o],enumerable:!(n=wu(t,o))||n.enumerable});return e},Y=(e,t,r)=>(Se(e,t,"default"),r&&Se(r,t,"default")),v=(e,t,r)=>(r=e!=null?Nu(xu(e)):{},Se(t||!e||!e.__esModule?xr(r,"default",{value:e,enumerable:!0}):r,e)),w=e=>Se(xr({},"__esModule",{value:!0}),e);var l={};import*as ed from"@opentelemetry/api";var E=Dr(()=>{Y(l,ed)});var ie=_(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.isTracingSuppressed=ft.unsuppressTracing=ft.suppressTracing=void 0;var Uu=(E(),w(l)),Ur=(0,Uu.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Bu(e){return e.setValue(Ur,!0)}ft.suppressTracing=Bu;function Gu(e){return e.deleteValue(Ur)}ft.unsuppressTracing=Gu;function Vu(e){return e.getValue(Ur)===!0}ft.isTracingSuppressed=Vu});var Br=_(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.BAGGAGE_MAX_TOTAL_LENGTH=B.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=B.BAGGAGE_MAX_NAME_VALUE_PAIRS=B.BAGGAGE_HEADER=B.BAGGAGE_ITEMS_SEPARATOR=B.BAGGAGE_PROPERTIES_SEPARATOR=B.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;B.BAGGAGE_KEY_PAIR_SEPARATOR="=";B.BAGGAGE_PROPERTIES_SEPARATOR=";";B.BAGGAGE_ITEMS_SEPARATOR=",";B.BAGGAGE_HEADER="baggage";B.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;B.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;B.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Gr=_(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.parseKeyPairsIntoRecord=rt.parsePairKeyValue=rt.getKeyPairs=rt.serializeKeyPairs=void 0;var Hu=(E(),w(l)),Lt=Br();function Fu(e){return e.reduce((t,r)=>{let n=`${t}${t!==""?Lt.BAGGAGE_ITEMS_SEPARATOR:""}${r}`;return n.length>Lt.BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}rt.serializeKeyPairs=Fu;function ju(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=Lt.BAGGAGE_PROPERTIES_SEPARATOR+r.metadata.toString()),n})}rt.getKeyPairs=ju;function li(e){let t=e.split(Lt.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;let r=t.shift();if(!r)return;let n=r.indexOf(Lt.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(r.substring(0,n).trim()),i=decodeURIComponent(r.substring(n+1).trim()),s;return t.length>0&&(s=(0,Hu.baggageEntryMetadataFromString)(t.join(Lt.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:i,metadata:s}}rt.parsePairKeyValue=li;function ku(e){return typeof e!="string"||e.length===0?{}:e.split(Lt.BAGGAGE_ITEMS_SEPARATOR).map(t=>li(t)).filter(t=>t!==void 0&&t.value.length>0).reduce((t,r)=>(t[r.key]=r.value,t),{})}rt.parseKeyPairsIntoRecord=ku});var fi=_(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.W3CBaggagePropagator=void 0;var Vr=(E(),w(l)),qu=ie(),Pt=Br(),Hr=Gr(),Fr=class{inject(t,r,n){let o=Vr.propagation.getBaggage(t);if(!o||(0,qu.isTracingSuppressed)(t))return;let i=(0,Hr.getKeyPairs)(o).filter(u=>u.length<=Pt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,Pt.BAGGAGE_MAX_NAME_VALUE_PAIRS),s=(0,Hr.serializeKeyPairs)(i);s.length>0&&n.set(r,Pt.BAGGAGE_HEADER,s)}extract(t,r,n){let o=n.get(r,Pt.BAGGAGE_HEADER),i=Array.isArray(o)?o.join(Pt.BAGGAGE_ITEMS_SEPARATOR):o;if(!i)return t;let s={};return i.length===0||(i.split(Pt.BAGGAGE_ITEMS_SEPARATOR).forEach(c=>{let a=(0,Hr.parsePairKeyValue)(c);if(a){let f={value:a.value};a.metadata&&(f.metadata=a.metadata),s[a.key]=f}}),Object.entries(s).length===0)?t:Vr.propagation.setBaggage(t,Vr.propagation.createBaggage(s))}fields(){return[Pt.BAGGAGE_HEADER]}};ge.W3CBaggagePropagator=Fr});var pi=_(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.AnchoredClock=void 0;var jr=class{constructor(t,r){this._monotonicClock=r,this._epochMillis=t.now(),this._performanceMillis=r.now()}now(){let t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t}};ye.AnchoredClock=jr});var mi=_(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.isAttributeValue=pt.isAttributeKey=pt.sanitizeAttributes=void 0;var di=(E(),w(l));function Xu(e){let t={};if(typeof e!="object"||e==null)return t;for(let[r,n]of Object.entries(e)){if(!_i(r)){di.diag.warn(`Invalid attribute key: ${r}`);continue}if(!hi(n)){di.diag.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}pt.sanitizeAttributes=Xu;function _i(e){return typeof e=="string"&&e.length>0}pt.isAttributeKey=_i;function hi(e){return e==null?!0:Array.isArray(e)?Ku(e):Ei(e)}pt.isAttributeValue=hi;function Ku(e){let t;for(let r of e)if(r!=null){if(!t){if(Ei(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}function Ei(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}});var kr=_(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.loggingErrorHandler=void 0;var Wu=(E(),w(l));function Yu(){return e=>{Wu.diag.error(zu(e))}}ve.loggingErrorHandler=Yu;function zu(e){return typeof e=="string"?e:JSON.stringify($u(e))}function $u(e){let t={},r=e;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(t[n])return;let o=r[n];o&&(t[n]=String(o))}),r=Object.getPrototypeOf(r);return t}});var qr=_(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.globalErrorHandler=Vt.setGlobalErrorHandler=void 0;var Qu=kr(),Ti=(0,Qu.loggingErrorHandler)();function Zu(e){Ti=e}Vt.setGlobalErrorHandler=Zu;function Ju(e){try{Ti(e)}catch{}}Vt.globalErrorHandler=Ju});var Xr=_(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.TracesSamplerValues=void 0;var tc;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(tc=oe.TracesSamplerValues||(oe.TracesSamplerValues={}))});var Re=_(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae._globalThis=void 0;Ae._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});var Oe=_(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.getEnvWithoutDefaults=L.parseEnvironment=L.DEFAULT_ENVIRONMENT=L.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=L.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=L.DEFAULT_ATTRIBUTE_COUNT_LIMIT=L.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var dt=(E(),w(l)),ec=Xr(),rc=Re(),nc=",",ic=["OTEL_SDK_DISABLED"];function oc(e){return ic.indexOf(e)>-1}var ac=["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 sc(e){return ac.indexOf(e)>-1}var uc=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function cc(e){return uc.indexOf(e)>-1}L.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;L.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;L.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;L.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;L.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:dt.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:L.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:L.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:L.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:L.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:L.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:L.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:L.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:L.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ec.TracesSamplerValues.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 lc(e,t,r){if(typeof r[e]>"u")return;let n=String(r[e]);t[e]=n.toLowerCase()==="true"}function fc(e,t,r,n=-1/0,o=1/0){if(typeof r[e]<"u"){let i=Number(r[e]);isNaN(i)||(i<n?t[e]=n:i>o?t[e]=o:t[e]=i)}}function pc(e,t,r,n=nc){let o=r[e];typeof o=="string"&&(t[e]=o.split(n).map(i=>i.trim()))}var dc={ALL:dt.DiagLogLevel.ALL,VERBOSE:dt.DiagLogLevel.VERBOSE,DEBUG:dt.DiagLogLevel.DEBUG,INFO:dt.DiagLogLevel.INFO,WARN:dt.DiagLogLevel.WARN,ERROR:dt.DiagLogLevel.ERROR,NONE:dt.DiagLogLevel.NONE};function _c(e,t,r){let n=r[e];if(typeof n=="string"){let o=dc[n.toUpperCase()];o!=null&&(t[e]=o)}}function Kr(e){let t={};for(let r in L.DEFAULT_ENVIRONMENT){let n=r;switch(n){case"OTEL_LOG_LEVEL":_c(n,t,e);break;default:if(oc(n))lc(n,t,e);else if(sc(n))fc(n,t,e);else if(cc(n))pc(n,t,e);else{let o=e[n];typeof o<"u"&&o!==null&&(t[n]=String(o))}}}return t}L.parseEnvironment=Kr;function hc(){return typeof process<"u"&&process&&process.env?Kr(process.env):Kr(rc._globalThis)}L.getEnvWithoutDefaults=hc});var gi=_(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getEnv=void 0;var Si=Oe(),Ec=Re();function mc(){let e=(0,Si.parseEnvironment)(Ec._globalThis);return Object.assign({},Si.DEFAULT_ENVIRONMENT,e)}be.getEnv=mc});var yi=_(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.hexToBase64=void 0;function Tc(e){let t=e.length,r="";for(let n=0;n<t;n+=2){let o=e.substring(n,n+2),i=parseInt(o,16);r+=String.fromCharCode(i)}return btoa(r)}Le.hexToBase64=Tc});var Ai=_(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.RandomIdGenerator=void 0;var Sc=8,gc=16,Wr=class{constructor(){this.generateTraceId=vi(gc),this.generateSpanId=vi(Sc)}};Ie.RandomIdGenerator=Wr;var Pe=Array(32);function vi(e){return function(){for(let r=0;r<e*2;r++)Pe[r]=Math.floor(Math.random()*16)+48,Pe[r]>=58&&(Pe[r]+=39);return String.fromCharCode.apply(null,Pe.slice(0,e*2))}}});var Ri=_(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.otperformance=void 0;Ce.otperformance=performance});var Yr=_(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.VERSION=void 0;Ne.VERSION="1.19.0"});var Oi=_(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.MessageTypeValues=A.RpcGrpcStatusCodeValues=A.MessagingOperationValues=A.MessagingDestinationKindValues=A.HttpFlavorValues=A.NetHostConnectionSubtypeValues=A.NetHostConnectionTypeValues=A.NetTransportValues=A.FaasInvokedProviderValues=A.FaasDocumentOperationValues=A.FaasTriggerValues=A.DbCassandraConsistencyLevelValues=A.DbSystemValues=A.SemanticAttributes=void 0;A.SemanticAttributes={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"};A.DbSystemValues={OTHER_SQL:"other_sql",MSSQL:"mssql",MYSQL:"mysql",ORACLE:"oracle",DB2:"db2",POSTGRESQL:"postgresql",REDSHIFT:"redshift",HIVE:"hive",CLOUDSCAPE:"cloudscape",HSQLDB:"hsqldb",PROGRESS:"progress",MAXDB:"maxdb",HANADB:"hanadb",INGRES:"ingres",FIRSTSQL:"firstsql",EDB:"edb",CACHE:"cache",ADABAS:"adabas",FIREBIRD:"firebird",DERBY:"derby",FILEMAKER:"filemaker",INFORMIX:"informix",INSTANTDB:"instantdb",INTERBASE:"interbase",MARIADB:"mariadb",NETEZZA:"netezza",PERVASIVE:"pervasive",POINTBASE:"pointbase",SQLITE:"sqlite",SYBASE:"sybase",TERADATA:"teradata",VERTICA:"vertica",H2:"h2",COLDFUSION:"coldfusion",CASSANDRA:"cassandra",HBASE:"hbase",MONGODB:"mongodb",REDIS:"redis",COUCHBASE:"couchbase",COUCHDB:"couchdb",COSMOSDB:"cosmosdb",DYNAMODB:"dynamodb",NEO4J:"neo4j",GEODE:"geode",ELASTICSEARCH:"elasticsearch",MEMCACHED:"memcached",COCKROACHDB:"cockroachdb"};A.DbCassandraConsistencyLevelValues={ALL:"all",EACH_QUORUM:"each_quorum",QUORUM:"quorum",LOCAL_QUORUM:"local_quorum",ONE:"one",TWO:"two",THREE:"three",LOCAL_ONE:"local_one",ANY:"any",SERIAL:"serial",LOCAL_SERIAL:"local_serial"};A.FaasTriggerValues={DATASOURCE:"datasource",HTTP:"http",PUBSUB:"pubsub",TIMER:"timer",OTHER:"other"};A.FaasDocumentOperationValues={INSERT:"insert",EDIT:"edit",DELETE:"delete"};A.FaasInvokedProviderValues={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"};A.NetTransportValues={IP_TCP:"ip_tcp",IP_UDP:"ip_udp",IP:"ip",UNIX:"unix",PIPE:"pipe",INPROC:"inproc",OTHER:"other"};A.NetHostConnectionTypeValues={WIFI:"wifi",WIRED:"wired",CELL:"cell",UNAVAILABLE:"unavailable",UNKNOWN:"unknown"};A.NetHostConnectionSubtypeValues={GPRS:"gprs",EDGE:"edge",UMTS:"umts",CDMA:"cdma",EVDO_0:"evdo_0",EVDO_A:"evdo_a",CDMA2000_1XRTT:"cdma2000_1xrtt",HSDPA:"hsdpa",HSUPA:"hsupa",HSPA:"hspa",IDEN:"iden",EVDO_B:"evdo_b",LTE:"lte",EHRPD:"ehrpd",HSPAP:"hspap",GSM:"gsm",TD_SCDMA:"td_scdma",IWLAN:"iwlan",NR:"nr",NRNSA:"nrnsa",LTE_CA:"lte_ca"};A.HttpFlavorValues={HTTP_1_0:"1.0",HTTP_1_1:"1.1",HTTP_2_0:"2.0",SPDY:"SPDY",QUIC:"QUIC"};A.MessagingDestinationKindValues={QUEUE:"queue",TOPIC:"topic"};A.MessagingOperationValues={RECEIVE:"receive",PROCESS:"process"};A.RpcGrpcStatusCodeValues={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15,UNAUTHENTICATED:16};A.MessageTypeValues={SENT:"SENT",RECEIVED:"RECEIVED"}});var bi=_(It=>{"use strict";var yc=It&&It.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),vc=It&&It.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&yc(t,e,r)};Object.defineProperty(It,"__esModule",{value:!0});vc(Oi(),It)});var Li=_(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.TelemetrySdkLanguageValues=G.OsTypeValues=G.HostArchValues=G.AwsEcsLaunchtypeValues=G.CloudPlatformValues=G.CloudProviderValues=G.SemanticResourceAttributes=void 0;G.SemanticResourceAttributes={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"};G.CloudProviderValues={ALIBABA_CLOUD:"alibaba_cloud",AWS:"aws",AZURE:"azure",GCP:"gcp"};G.CloudPlatformValues={ALIBABA_CLOUD_ECS:"alibaba_cloud_ecs",ALIBABA_CLOUD_FC:"alibaba_cloud_fc",AWS_EC2:"aws_ec2",AWS_ECS:"aws_ecs",AWS_EKS:"aws_eks",AWS_LAMBDA:"aws_lambda",AWS_ELASTIC_BEANSTALK:"aws_elastic_beanstalk",AZURE_VM:"azure_vm",AZURE_CONTAINER_INSTANCES:"azure_container_instances",AZURE_AKS:"azure_aks",AZURE_FUNCTIONS:"azure_functions",AZURE_APP_SERVICE:"azure_app_service",GCP_COMPUTE_ENGINE:"gcp_compute_engine",GCP_CLOUD_RUN:"gcp_cloud_run",GCP_KUBERNETES_ENGINE:"gcp_kubernetes_engine",GCP_CLOUD_FUNCTIONS:"gcp_cloud_functions",GCP_APP_ENGINE:"gcp_app_engine"};G.AwsEcsLaunchtypeValues={EC2:"ec2",FARGATE:"fargate"};G.HostArchValues={AMD64:"amd64",ARM32:"arm32",ARM64:"arm64",IA64:"ia64",PPC32:"ppc32",PPC64:"ppc64",X86:"x86"};G.OsTypeValues={WINDOWS:"windows",LINUX:"linux",DARWIN:"darwin",FREEBSD:"freebsd",NETBSD:"netbsd",OPENBSD:"openbsd",DRAGONFLYBSD:"dragonflybsd",HPUX:"hpux",AIX:"aix",SOLARIS:"solaris",Z_OS:"z_os"};G.TelemetrySdkLanguageValues={CPP:"cpp",DOTNET:"dotnet",ERLANG:"erlang",GO:"go",JAVA:"java",NODEJS:"nodejs",PHP:"php",PYTHON:"python",RUBY:"ruby",WEBJS:"webjs"}});var Pi=_(Ct=>{"use strict";var Ac=Ct&&Ct.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Rc=Ct&&Ct.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ac(t,e,r)};Object.defineProperty(Ct,"__esModule",{value:!0});Rc(Li(),Ct)});var ae=_(_t=>{"use strict";var Oc=_t&&_t.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ii=_t&&_t.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Oc(t,e,r)};Object.defineProperty(_t,"__esModule",{value:!0});Ii(bi(),_t);Ii(Pi(),_t)});var Ci=_(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.SDK_INFO=void 0;var bc=Yr(),se=ae();we.SDK_INFO={[se.SemanticResourceAttributes.TELEMETRY_SDK_NAME]:"opentelemetry",[se.SemanticResourceAttributes.PROCESS_RUNTIME_NAME]:"browser",[se.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]:se.TelemetrySdkLanguageValues.WEBJS,[se.SemanticResourceAttributes.TELEMETRY_SDK_VERSION]:bc.VERSION}});var Ni=_(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.unrefTimer=void 0;function Lc(e){}Me.unrefTimer=Lc});var zr=_(j=>{"use strict";var Pc=j&&j.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Nt=j&&j.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Pc(t,e,r)};Object.defineProperty(j,"__esModule",{value:!0});Nt(gi(),j);Nt(Re(),j);Nt(yi(),j);Nt(Ai(),j);Nt(Ri(),j);Nt(Ci(),j);Nt(Ni(),j)});var Di=_(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.addHrTimes=O.isTimeInput=O.isTimeInputHrTime=O.hrTimeToMicroseconds=O.hrTimeToMilliseconds=O.hrTimeToNanoseconds=O.hrTimeToTimeStamp=O.hrTimeDuration=O.timeInputToHrTime=O.hrTime=O.getTimeOrigin=O.millisToHrTime=void 0;var $r=zr(),wi=9,Ic=6,Cc=Math.pow(10,Ic),xe=Math.pow(10,wi);function ue(e){let t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*Cc);return[r,n]}O.millisToHrTime=ue;function Qr(){let e=$r.otperformance.timeOrigin;if(typeof e!="number"){let t=$r.otperformance;e=t.timing&&t.timing.fetchStart}return e}O.getTimeOrigin=Qr;function Mi(e){let t=ue(Qr()),r=ue(typeof e=="number"?e:$r.otperformance.now());return xi(t,r)}O.hrTime=Mi;function Nc(e){if(Zr(e))return e;if(typeof e=="number")return e<Qr()?Mi(e):ue(e);if(e instanceof Date)return ue(e.getTime());throw TypeError("Invalid input type")}O.timeInputToHrTime=Nc;function wc(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=xe),[r,n]}O.hrTimeDuration=wc;function Mc(e){let t=wi,r=`${"0".repeat(t)}${e[1]}Z`,n=r.substr(r.length-t-1);return new Date(e[0]*1e3).toISOString().replace("000Z",n)}O.hrTimeToTimeStamp=Mc;function xc(e){return e[0]*xe+e[1]}O.hrTimeToNanoseconds=xc;function Dc(e){return e[0]*1e3+e[1]/1e6}O.hrTimeToMilliseconds=Dc;function Uc(e){return e[0]*1e6+e[1]/1e3}O.hrTimeToMicroseconds=Uc;function Zr(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}O.isTimeInputHrTime=Zr;function Bc(e){return Zr(e)||typeof e=="number"||e instanceof Date}O.isTimeInput=Bc;function xi(e,t){let r=[e[0]+t[0],e[1]+t[1]];return r[1]>=xe&&(r[1]-=xe,r[0]+=1),r}O.addHrTimes=xi});var Bi=_(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0})});var Gi=_(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.ExportResultCode=void 0;var Gc;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Gc=ce.ExportResultCode||(ce.ExportResultCode={}))});var Hi=_(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.CompositePropagator=void 0;var Vi=(E(),w(l)),Jr=class{constructor(t={}){var r;this._propagators=(r=t.propagators)!==null&&r!==void 0?r:[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,o)=>n.concat(o),[])))}inject(t,r,n){for(let o of this._propagators)try{o.inject(t,r,n)}catch(i){Vi.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${i.message}`)}}extract(t,r,n){return this._propagators.reduce((o,i)=>{try{return i.extract(o,r,n)}catch(s){Vi.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${s.message}`)}return o},t)}fields(){return this._fields.slice()}};De.CompositePropagator=Jr});var Fi=_(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.validateValue=Ht.validateKey=void 0;var tn="[_0-9a-z-*/]",Vc=`[a-z]${tn}{0,255}`,Hc=`[a-z0-9]${tn}{0,240}@[a-z]${tn}{0,13}`,Fc=new RegExp(`^(?:${Vc}|${Hc})$`),jc=/^[ -~]{0,255}[!-~]$/,kc=/,|=/;function qc(e){return Fc.test(e)}Ht.validateKey=qc;function Xc(e){return jc.test(e)&&!kc.test(e)}Ht.validateValue=Xc});var rn=_(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.TraceState=void 0;var ji=Fi(),ki=32,Kc=512,qi=",",Xi="=",en=class e{constructor(t){this._internalState=new Map,t&&this._parse(t)}set(t,r){let n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n}unset(t){let r=this._clone();return r._internalState.delete(t),r}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,r)=>(t.push(r+Xi+this.get(r)),t),[]).join(qi)}_parse(t){t.length>Kc||(this._internalState=t.split(qi).reverse().reduce((r,n)=>{let o=n.trim(),i=o.indexOf(Xi);if(i!==-1){let s=o.slice(0,i),u=o.slice(i+1,n.length);(0,ji.validateKey)(s)&&(0,ji.validateValue)(u)&&r.set(s,u)}return r},new Map),this._internalState.size>ki&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,ki))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new e;return t._internalState=new Map(this._internalState),t}};Ue.TraceState=en});var Wi=_(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.W3CTraceContextPropagator=V.parseTraceParent=V.TRACE_STATE_HEADER=V.TRACE_PARENT_HEADER=void 0;var Be=(E(),w(l)),Wc=ie(),Yc=rn();V.TRACE_PARENT_HEADER="traceparent";V.TRACE_STATE_HEADER="tracestate";var zc="00",$c="(?!ff)[\\da-f]{2}",Qc="(?![0]{32})[\\da-f]{32}",Zc="(?![0]{16})[\\da-f]{16}",Jc="[\\da-f]{2}",tl=new RegExp(`^\\s?(${$c})-(${Qc})-(${Zc})-(${Jc})(-.*)?\\s?$`);function Ki(e){let t=tl.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}V.parseTraceParent=Ki;var nn=class{inject(t,r,n){let o=Be.trace.getSpanContext(t);if(!o||(0,Wc.isTracingSuppressed)(t)||!(0,Be.isSpanContextValid)(o))return;let i=`${zc}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||Be.TraceFlags.NONE).toString(16)}`;n.set(r,V.TRACE_PARENT_HEADER,i),o.traceState&&n.set(r,V.TRACE_STATE_HEADER,o.traceState.serialize())}extract(t,r,n){let o=n.get(r,V.TRACE_PARENT_HEADER);if(!o)return t;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return t;let s=Ki(i);if(!s)return t;s.isRemote=!0;let u=n.get(r,V.TRACE_STATE_HEADER);if(u){let c=Array.isArray(u)?u.join(","):u;s.traceState=new Yc.TraceState(typeof c=="string"?c:void 0)}return Be.trace.setSpanContext(t,s)}fields(){return[V.TRACE_PARENT_HEADER,V.TRACE_STATE_HEADER]}};V.W3CTraceContextPropagator=nn});var zi=_(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0})});var $i=_(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.getRPCMetadata=z.deleteRPCMetadata=z.setRPCMetadata=z.RPCType=void 0;var el=(E(),w(l)),on=(0,el.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),rl;(function(e){e.HTTP="http"})(rl=z.RPCType||(z.RPCType={}));function nl(e,t){return e.setValue(on,t)}z.setRPCMetadata=nl;function il(e){return e.deleteValue(on)}z.deleteRPCMetadata=il;function ol(e){return e.getValue(on)}z.getRPCMetadata=ol});var sn=_(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.AlwaysOffSampler=void 0;var al=(E(),w(l)),an=class{shouldSample(){return{decision:al.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};Ge.AlwaysOffSampler=an});var cn=_(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.AlwaysOnSampler=void 0;var sl=(E(),w(l)),un=class{shouldSample(){return{decision:sl.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};Ve.AlwaysOnSampler=un});var Zi=_(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.ParentBasedSampler=void 0;var He=(E(),w(l)),ul=qr(),Qi=sn(),ln=cn(),fn=class{constructor(t){var r,n,o,i;this._root=t.root,this._root||((0,ul.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new ln.AlwaysOnSampler),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new ln.AlwaysOnSampler,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new Qi.AlwaysOffSampler,this._localParentSampled=(o=t.localParentSampled)!==null&&o!==void 0?o:new ln.AlwaysOnSampler,this._localParentNotSampled=(i=t.localParentNotSampled)!==null&&i!==void 0?i:new Qi.AlwaysOffSampler}shouldSample(t,r,n,o,i,s){let u=He.trace.getSpanContext(t);return!u||!(0,He.isSpanContextValid)(u)?this._root.shouldSample(t,r,n,o,i,s):u.isRemote?u.traceFlags&He.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(t,r,n,o,i,s):u.traceFlags&He.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(t,r,n,o,i,s):this._localParentNotSampled.shouldSample(t,r,n,o,i,s)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};Fe.ParentBasedSampler=fn});var Ji=_(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.TraceIdRatioBasedSampler=void 0;var pn=(E(),w(l)),dn=class{constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:(0,pn.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?pn.SamplingDecision.RECORD_AND_SAMPLED:pn.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let r=0;for(let n=0;n<t.length/8;n++){let o=n*8,i=parseInt(t.slice(o,o+8),16);r=(r^i)>>>0}return r}};je.TraceIdRatioBasedSampler=dn});var io=_(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.isPlainObject=void 0;var cl="[object Object]",ll="[object Null]",fl="[object Undefined]",pl=Function.prototype,to=pl.toString,dl=to.call(Object),_l=hl(Object.getPrototypeOf,Object),eo=Object.prototype,ro=eo.hasOwnProperty,wt=Symbol?Symbol.toStringTag:void 0,no=eo.toString;function hl(e,t){return function(r){return e(t(r))}}function El(e){if(!ml(e)||Tl(e)!==cl)return!1;let t=_l(e);if(t===null)return!0;let r=ro.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&to.call(r)===dl}ke.isPlainObject=El;function ml(e){return e!=null&&typeof e=="object"}function Tl(e){return e==null?e===void 0?fl:ll:wt&&wt in Object(e)?Sl(e):gl(e)}function Sl(e){let t=ro.call(e,wt),r=e[wt],n=!1;try{e[wt]=void 0,n=!0}catch{}let o=no.call(e);return n&&(t?e[wt]=r:delete e[wt]),o}function gl(e){return no.call(e)}});var co=_(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.merge=void 0;var oo=io(),yl=20;function vl(...e){let t=e.shift(),r=new WeakMap;for(;e.length>0;)t=so(t,e.shift(),0,r);return t}Ke.merge=vl;function _n(e){return Xe(e)?e.slice():e}function so(e,t,r=0,n){let o;if(!(r>yl)){if(r++,qe(e)||qe(t)||uo(t))o=_n(t);else if(Xe(e)){if(o=e.slice(),Xe(t))for(let i=0,s=t.length;i<s;i++)o.push(_n(t[i]));else if(le(t)){let i=Object.keys(t);for(let s=0,u=i.length;s<u;s++){let c=i[s];o[c]=_n(t[c])}}}else if(le(e))if(le(t)){if(!Al(e,t))return t;o=Object.assign({},e);let i=Object.keys(t);for(let s=0,u=i.length;s<u;s++){let c=i[s],a=t[c];if(qe(a))typeof a>"u"?delete o[c]:o[c]=a;else{let f=o[c],p=a;if(ao(e,c,n)||ao(t,c,n))delete o[c];else{if(le(f)&&le(p)){let d=n.get(f)||[],m=n.get(p)||[];d.push({obj:e,key:c}),m.push({obj:t,key:c}),n.set(f,d),n.set(p,m)}o[c]=so(o[c],a,r,n)}}}}else o=t;return o}}function ao(e,t,r){let n=r.get(e[t])||[];for(let o=0,i=n.length;o<i;o++){let s=n[o];if(s.key===t&&s.obj===e)return!0}return!1}function Xe(e){return Array.isArray(e)}function uo(e){return typeof e=="function"}function le(e){return!qe(e)&&!Xe(e)&&!uo(e)&&typeof e=="object"}function qe(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Al(e,t){return!(!(0,oo.isPlainObject)(e)||!(0,oo.isPlainObject)(t))}});var lo=_(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.callWithTimeout=Ft.TimeoutError=void 0;var We=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}};Ft.TimeoutError=We;function Rl(e,t){let r,n=new Promise(function(i,s){r=setTimeout(function(){s(new We("Operation timed out."))},t)});return Promise.race([e,n]).then(o=>(clearTimeout(r),o),o=>{throw clearTimeout(r),o})}Ft.callWithTimeout=Rl});var po=_(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.isUrlIgnored=jt.urlMatches=void 0;function fo(e,t){return typeof t=="string"?e===t:!!e.match(t)}jt.urlMatches=fo;function Ol(e,t){if(!t)return!1;for(let r of t)if(fo(e,r))return!0;return!1}jt.isUrlIgnored=Ol});var _o=_(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.isWrapped=void 0;function bl(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}Ye.isWrapped=bl});var ho=_(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.Deferred=void 0;var hn=class{constructor(){this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}};ze.Deferred=hn});var Eo=_($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.BindOnceFuture=void 0;var Ll=ho(),En=class{constructor(t,r){this._callback=t,this._that=r,this._isCalled=!1,this._deferred=new Ll.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}};$e.BindOnceFuture=En});var To=_(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe._export=void 0;var mo=(E(),w(l)),Pl=ie();function Il(e,t){return new Promise(r=>{mo.context.with((0,Pl.suppressTracing)(mo.context.active()),()=>{e.export(t,n=>{r(n)})})})}Qe._export=Il});var P=_(S=>{"use strict";var Cl=S&&S.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),R=S&&S.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Cl(t,e,r)};Object.defineProperty(S,"__esModule",{value:!0});S.internal=S.baggageUtils=void 0;R(fi(),S);R(pi(),S);R(mi(),S);R(qr(),S);R(kr(),S);R(Di(),S);R(Bi(),S);R(Gi(),S);S.baggageUtils=Gr();R(zr(),S);R(Hi(),S);R(Wi(),S);R(zi(),S);R($i(),S);R(sn(),S);R(cn(),S);R(Zi(),S);R(Ji(),S);R(ie(),S);R(rn(),S);R(Oe(),S);R(co(),S);R(Xr(),S);R(lo(),S);R(po(),S);R(_o(),S);R(Eo(),S);R(Yr(),S);var Nl=To();S.internal={_export:Nl._export}});var Vo=_(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.disableInstrumentations=St.enableInstrumentations=St.parseInstrumentationOptions=void 0;function Go(e=[]){let t=[];for(let r=0,n=e.length;r<n;r++){let o=e[r];if(Array.isArray(o)){let i=Go(o);t=t.concat(i.instrumentations)}else typeof o=="function"?t.push(new o):o.instrumentationName&&t.push(o)}return{instrumentations:t}}St.parseInstrumentationOptions=Go;function Yl(e,t,r){for(let n=0,o=e.length;n<o;n++){let i=e[n];t&&i.setTracerProvider(t),r&&i.setMeterProvider(r),i.getConfig().enabled||i.enable()}}St.enableInstrumentations=Yl;function zl(e){e.forEach(t=>t.disable())}St.disableInstrumentations=zl});var Fo=_(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.registerInstrumentations=void 0;var Ho=(E(),w(l)),Tn=Vo();function $l(e){let{instrumentations:t}=(0,Tn.parseInstrumentationOptions)(e.instrumentations),r=e.tracerProvider||Ho.trace.getTracerProvider(),n=e.meterProvider||Ho.metrics.getMeterProvider();return(0,Tn.enableInstrumentations)(t,r,n),()=>{(0,Tn.disableInstrumentations)(t)}}nr.registerInstrumentations=$l});var pe={};import*as wE from"async_hooks";var Ua=Dr(()=>{Y(pe,wE)});var de={};import*as ME from"events";var Ba=Dr(()=>{Y(de,ME)});var Ga=_(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.AbstractAsyncHooksContextManager=void 0;var bf=(Ba(),w(de)),Lf=["addListener","on","once","prependListener","prependOnceListener"],Cn=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(t,r){return r instanceof bf.EventEmitter?this._bindEventEmitter(t,r):typeof r=="function"?this._bindFunction(t,r):r}_bindFunction(t,r){let n=this,o=function(...i){return n.with(t,()=>r.apply(this,i))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}_bindEventEmitter(t,r){return this._getPatchMap(r)!==void 0||(this._createPatchMap(r),Lf.forEach(o=>{r[o]!==void 0&&(r[o]=this._patchAddListener(r,r[o],t))}),typeof r.removeListener=="function"&&(r.removeListener=this._patchRemoveListener(r,r.removeListener)),typeof r.off=="function"&&(r.off=this._patchRemoveListener(r,r.off)),typeof r.removeAllListeners=="function"&&(r.removeAllListeners=this._patchRemoveAllListeners(r,r.removeAllListeners))),r}_patchRemoveListener(t,r){let n=this;return function(o,i){var s;let u=(s=n._getPatchMap(t))===null||s===void 0?void 0:s[o];if(u===void 0)return r.call(this,o,i);let c=u.get(i);return r.call(this,o,c||i)}}_patchRemoveAllListeners(t,r){let n=this;return function(o){let i=n._getPatchMap(t);return i!==void 0&&(arguments.length===0?n._createPatchMap(t):i[o]!==void 0&&delete i[o]),r.apply(this,arguments)}}_patchAddListener(t,r,n){let o=this;return function(i,s){if(o._wrapped)return r.call(this,i,s);let u=o._getPatchMap(t);u===void 0&&(u=o._createPatchMap(t));let c=u[i];c===void 0&&(c=new WeakMap,u[i]=c);let a=o.bind(n,s);c.set(s,a),o._wrapped=!0;try{return r.call(this,i,a)}finally{o._wrapped=!1}}}_createPatchMap(t){let r=Object.create(null);return t[this._kOtListeners]=r,r}_getPatchMap(t){return t[this._kOtListeners]}};dr.AbstractAsyncHooksContextManager=Cn});var Va=_(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.AsyncLocalStorageContextManager=void 0;var Pf=(E(),w(l)),If=(Ua(),w(pe)),Cf=Ga(),Nn=class extends Cf.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new If.AsyncLocalStorage}active(){var t;return(t=this._asyncLocalStorage.getStore())!==null&&t!==void 0?t:Pf.ROOT_CONTEXT}with(t,r,n,...o){let i=n==null?r:r.bind(n);return this._asyncLocalStorage.run(t,i,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};_r.AsyncLocalStorageContextManager=Nn});var Bn=_(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.toAnyValue=gt.toKeyValue=gt.toAttributes=void 0;function Uf(e){return Object.keys(e).map(t=>Dn(t,e[t]))}gt.toAttributes=Uf;function Dn(e,t){return{key:e,value:Un(t)}}gt.toKeyValue=Dn;function Un(e){let t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(Un)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([r,n])=>Dn(r,n))}}:{}}gt.toAnyValue=Un});var Ja=_(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.toOtlpSpanEvent=yt.toOtlpLink=yt.sdkSpanToOtlpSpan=void 0;var Gn=Bn();function Bf(e,t){var r;let n=e.spanContext(),o=e.status;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:(r=n.traceState)===null||r===void 0?void 0:r.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:(0,Gn.toAttributes)(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>Za(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:o.code,message:o.message},links:e.links.map(i=>Qa(i,t)),droppedLinksCount:e.droppedLinksCount}}yt.sdkSpanToOtlpSpan=Bf;function Qa(e,t){var r;return{attributes:e.attributes?(0,Gn.toAttributes)(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:(r=e.context.traceState)===null||r===void 0?void 0:r.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}yt.toOtlpLink=Qa;function Za(e,t){return{attributes:e.attributes?(0,Gn.toAttributes)(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}yt.toOtlpSpanEvent=Za});var is=_(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.getOtlpEncoder=K.encodeAsString=K.encodeAsLongBits=K.toLongBits=K.hrTimeToNanos=void 0;var Tr=P(),Gf=BigInt(1e9);function Vn(e){return BigInt(e[0])*Gf+BigInt(e[1])}K.hrTimeToNanos=Vn;function es(e){let t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}K.toLongBits=es;function Hn(e){let t=Vn(e);return es(t)}K.encodeAsLongBits=Hn;function rs(e){return Vn(e).toString()}K.encodeAsString=rs;var Vf=typeof BigInt<"u"?rs:Tr.hrTimeToNanoseconds;function ts(e){return e}function ns(e){if(e!==void 0)return(0,Tr.hexToBase64)(e)}var Hf={encodeHrTime:Hn,encodeSpanContext:Tr.hexToBase64,encodeOptionalSpanContext:ns};function Ff(e){var t,r;if(e===void 0)return Hf;let n=(t=e.useLongBits)!==null&&t!==void 0?t:!0,o=(r=e.useHex)!==null&&r!==void 0?r:!1;return{encodeHrTime:n?Hn:Vf,encodeSpanContext:o?ts:Tr.hexToBase64,encodeOptionalSpanContext:o?ts:ns}}K.getOtlpEncoder=Ff});var Fn=_(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.createExportTraceServiceRequest=void 0;var jf=Bn(),kf=Ja(),qf=is();function Xf(e,t){let r=(0,qf.getOtlpEncoder)(t);return{resourceSpans:Wf(e,r)}}Sr.createExportTraceServiceRequest=Xf;function Kf(e){let t=new Map;for(let r of e){let n=t.get(r.resource);n||(n=new Map,t.set(r.resource,n));let o=`${r.instrumentationLibrary.name}@${r.instrumentationLibrary.version||""}:${r.instrumentationLibrary.schemaUrl||""}`,i=n.get(o);i||(i=[],n.set(o,i)),i.push(r)}return t}function Wf(e,t){let r=Kf(e),n=[],o=r.entries(),i=o.next();for(;!i.done;){let[s,u]=i.value,c=[],a=u.values(),f=a.next();for(;!f.done;){let d=f.value;if(d.length>0){let{name:m,version:g,schemaUrl:C}=d[0].instrumentationLibrary,M=d.map(T=>(0,kf.sdkSpanToOtlpSpan)(T,t));c.push({scope:{name:m,version:g},spans:M,schemaUrl:C})}f=a.next()}let p={resource:{attributes:(0,jf.toAttributes)(s.attributes),droppedAttributesCount:0},scopeSpans:c,schemaUrl:void 0};n.push(p),i=o.next()}return n}});var ss=_(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.parseRetryAfterToMills=I.isExportRetryable=I.invalidTimeout=I.configureExporterTimeout=I.appendRootPathToUrlIfNeeded=I.appendResourcePathToUrl=I.parseHeaders=I.DEFAULT_EXPORT_BACKOFF_MULTIPLIER=I.DEFAULT_EXPORT_MAX_BACKOFF=I.DEFAULT_EXPORT_INITIAL_BACKOFF=I.DEFAULT_EXPORT_MAX_ATTEMPTS=void 0;var jn=(E(),w(l)),os=P(),as=1e4;I.DEFAULT_EXPORT_MAX_ATTEMPTS=5;I.DEFAULT_EXPORT_INITIAL_BACKOFF=1e3;I.DEFAULT_EXPORT_MAX_BACKOFF=5e3;I.DEFAULT_EXPORT_BACKOFF_MULTIPLIER=1.5;function Yf(e={}){let t={};return Object.entries(e).forEach(([r,n])=>{typeof n<"u"?t[r]=String(n):jn.diag.warn(`Header "${r}" has wrong value and will be ignored`)}),t}I.parseHeaders=Yf;function zf(e,t){return e.endsWith("/")||(e=e+"/"),e+t}I.appendResourcePathToUrl=zf;function $f(e){try{let t=new URL(e);return t.pathname===""&&(t.pathname=t.pathname+"/"),t.toString()}catch{return jn.diag.warn(`Could not parse export URL: '${e}'`),e}}I.appendRootPathToUrlIfNeeded=$f;function Qf(e){return typeof e=="number"?e<=0?kn(e,as):e:Zf()}I.configureExporterTimeout=Qf;function Zf(){var e;let t=Number((e=(0,os.getEnv)().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&e!==void 0?e:(0,os.getEnv)().OTEL_EXPORTER_OTLP_TIMEOUT);return t<=0?kn(t,as):t}function kn(e,t){return jn.diag.warn("Timeout must be greater than 0",e),t}I.invalidTimeout=kn;function Jf(e){return[429,502,503,504].includes(e)}I.isExportRetryable=Jf;function tp(e){if(e==null)return-1;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;let r=new Date(e).getTime()-Date.now();return r>=0?r:0}I.parseRetryAfterToMills=tp});var cs=_(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.OTLPExporterBase=void 0;var us=(E(),w(l)),_e=P(),ep=ss(),qn=class{constructor(t={}){this._sendingPromises=[],this.url=this.getDefaultUrl(t),typeof t.hostname=="string"&&(this.hostname=t.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new _e.BindOnceFuture(this._shutdown,this),this._concurrencyLimit=typeof t.concurrencyLimit=="number"?t.concurrencyLimit:30,this.timeoutMillis=(0,ep.configureExporterTimeout)(t.timeoutMillis),this.onInit(t)}export(t,r){if(this._shutdownOnce.isCalled){r({code:_e.ExportResultCode.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){r({code:_e.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(t).then(()=>{r({code:_e.ExportResultCode.SUCCESS})}).catch(n=>{r({code:_e.ExportResultCode.FAILED,error:n})})}_export(t){return new Promise((r,n)=>{try{us.diag.debug("items to be sent",t),this.send(t,r,n)}catch(o){n(o)}})}shutdown(){return this._shutdownOnce.call()}forceFlush(){return Promise.all(this._sendingPromises).then(()=>{})}_shutdown(){return us.diag.debug("shutdown started"),this.onShutdown(),this.forceFlush()}};gr.OTLPExporterBase=qn});var ds=_((um,ps)=>{"use strict";ps.exports=ip;function ip(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o<arguments.length;)r[n++]=arguments[o++];return new Promise(function(u,c){r[n]=function(f){if(i)if(i=!1,f)c(f);else{for(var p=new Array(arguments.length-1),d=0;d<p.length;)p[d++]=arguments[d];u.apply(null,p)}};try{e.apply(t||null,r)}catch(a){i&&(i=!1,c(a))}})}});var ms=_(Es=>{"use strict";var vr=Es;vr.length=function(t){var r=t.length;if(!r)return 0;for(var n=0;--r%4>1&&t.charAt(r)==="=";)++n;return Math.ceil(t.length*3)/4-n};var Zt=new Array(64),hs=new Array(123);for(Z=0;Z<64;)hs[Zt[Z]=Z<26?Z+65:Z<52?Z+71:Z<62?Z-4:Z-59|43]=Z++;var Z;vr.encode=function(t,r,n){for(var o=null,i=[],s=0,u=0,c;r<n;){var a=t[r++];switch(u){case 0:i[s++]=Zt[a>>2],c=(a&3)<<4,u=1;break;case 1:i[s++]=Zt[c|a>>4],c=(a&15)<<2,u=2;break;case 2:i[s++]=Zt[c|a>>6],i[s++]=Zt[a&63],u=0;break}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),s=0)}return u&&(i[s++]=Zt[c],i[s++]=61,u===1&&(i[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,i.slice(0,s))),o.join("")):String.fromCharCode.apply(String,i.slice(0,s))};var _s="invalid encoding";vr.decode=function(t,r,n){for(var o=n,i=0,s,u=0;u<t.length;){var c=t.charCodeAt(u++);if(c===61&&i>1)break;if((c=hs[c])===void 0)throw Error(_s);switch(i){case 0:s=c,i=1;break;case 1:r[n++]=s<<2|(c&48)>>4,s=c,i=2;break;case 2:r[n++]=(s&15)<<4|(c&60)>>2,s=c,i=3;break;case 3:r[n++]=(s&3)<<6|c,i=0;break}}if(i===1)throw Error(_s);return n-o};vr.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}});var Ss=_((lm,Ts)=>{"use strict";Ts.exports=Ar;function Ar(){this._listeners={}}Ar.prototype.on=function(t,r,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:n||this}),this};Ar.prototype.off=function(t,r){if(t===void 0)this._listeners={};else if(r===void 0)this._listeners[t]=[];else for(var n=this._listeners[t],o=0;o<n.length;)n[o].fn===r?n.splice(o,1):++o;return this};Ar.prototype.emit=function(t){var r=this._listeners[t];if(r){for(var n=[],o=1;o<arguments.length;)n.push(arguments[o++]);for(o=0;o<r.length;)r[o].fn.apply(r[o++].ctx,n)}return this}});var bs=_((fm,Os)=>{"use strict";Os.exports=gs(gs);function gs(e){return typeof Float32Array<"u"?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=r[3]===128;function o(c,a,f){t[0]=c,a[f]=r[0],a[f+1]=r[1],a[f+2]=r[2],a[f+3]=r[3]}function i(c,a,f){t[0]=c,a[f]=r[3],a[f+1]=r[2],a[f+2]=r[1],a[f+3]=r[0]}e.writeFloatLE=n?o:i,e.writeFloatBE=n?i:o;function s(c,a){return r[0]=c[a],r[1]=c[a+1],r[2]=c[a+2],r[3]=c[a+3],t[0]}function u(c,a){return r[3]=c[a],r[2]=c[a+1],r[1]=c[a+2],r[0]=c[a+3],t[0]}e.readFloatLE=n?s:u,e.readFloatBE=n?u:s}():function(){function t(n,o,i,s){var u=o<0?1:0;if(u&&(o=-o),o===0)n(1/o>0?0:2147483648,i,s);else if(isNaN(o))n(2143289344,i,s);else if(o>34028234663852886e22)n((u<<31|2139095040)>>>0,i,s);else if(o<11754943508222875e-54)n((u<<31|Math.round(o/1401298464324817e-60))>>>0,i,s);else{var c=Math.floor(Math.log(o)/Math.LN2),a=Math.round(o*Math.pow(2,-c)*8388608)&8388607;n((u<<31|c+127<<23|a)>>>0,i,s)}}e.writeFloatLE=t.bind(null,ys),e.writeFloatBE=t.bind(null,vs);function r(n,o,i){var s=n(o,i),u=(s>>31)*2+1,c=s>>>23&255,a=s&8388607;return c===255?a?NaN:u*(1/0):c===0?u*1401298464324817e-60*a:u*Math.pow(2,c-150)*(a+8388608)}e.readFloatLE=r.bind(null,As),e.readFloatBE=r.bind(null,Rs)}(),typeof Float64Array<"u"?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=r[7]===128;function o(c,a,f){t[0]=c,a[f]=r[0],a[f+1]=r[1],a[f+2]=r[2],a[f+3]=r[3],a[f+4]=r[4],a[f+5]=r[5],a[f+6]=r[6],a[f+7]=r[7]}function i(c,a,f){t[0]=c,a[f]=r[7],a[f+1]=r[6],a[f+2]=r[5],a[f+3]=r[4],a[f+4]=r[3],a[f+5]=r[2],a[f+6]=r[1],a[f+7]=r[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o;function s(c,a){return r[0]=c[a],r[1]=c[a+1],r[2]=c[a+2],r[3]=c[a+3],r[4]=c[a+4],r[5]=c[a+5],r[6]=c[a+6],r[7]=c[a+7],t[0]}function u(c,a){return r[7]=c[a],r[6]=c[a+1],r[5]=c[a+2],r[4]=c[a+3],r[3]=c[a+4],r[2]=c[a+5],r[1]=c[a+6],r[0]=c[a+7],t[0]}e.readDoubleLE=n?s:u,e.readDoubleBE=n?u:s}():function(){function t(n,o,i,s,u,c){var a=s<0?1:0;if(a&&(s=-s),s===0)n(0,u,c+o),n(1/s>0?0:2147483648,u,c+i);else if(isNaN(s))n(0,u,c+o),n(2146959360,u,c+i);else if(s>17976931348623157e292)n(0,u,c+o),n((a<<31|2146435072)>>>0,u,c+i);else{var f;if(s<22250738585072014e-324)f=s/5e-324,n(f>>>0,u,c+o),n((a<<31|f/4294967296)>>>0,u,c+i);else{var p=Math.floor(Math.log(s)/Math.LN2);p===1024&&(p=1023),f=s*Math.pow(2,-p),n(f*4503599627370496>>>0,u,c+o),n((a<<31|p+1023<<20|f*1048576&1048575)>>>0,u,c+i)}}}e.writeDoubleLE=t.bind(null,ys,0,4),e.writeDoubleBE=t.bind(null,vs,4,0);function r(n,o,i,s,u){var c=n(s,u+o),a=n(s,u+i),f=(a>>31)*2+1,p=a>>>20&2047,d=4294967296*(a&1048575)+c;return p===2047?d?NaN:f*(1/0):p===0?f*5e-324*d:f*Math.pow(2,p-1075)*(d+4503599627370496)}e.readDoubleLE=r.bind(null,As,0,4),e.readDoubleBE=r.bind(null,Rs,4,0)}(),e}function ys(e,t,r){t[r]=e&255,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function vs(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=e&255}function As(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function Rs(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}});var Ps=_((pm,Ls)=>{"use strict";Ls.exports=op;function op(e){return null}});var Cs=_(Is=>{"use strict";var Kn=Is;Kn.length=function(t){for(var r=0,n=0,o=0;o<t.length;++o)n=t.charCodeAt(o),n<128?r+=1:n<2048?r+=2:(n&64512)===55296&&(t.charCodeAt(o+1)&64512)===56320?(++o,r+=4):r+=3;return r};Kn.read=function(t,r,n){var o=n-r;if(o<1)return"";for(var i=null,s=[],u=0,c;r<n;)c=t[r++],c<128?s[u++]=c:c>191&&c<224?s[u++]=(c&31)<<6|t[r++]&63:c>239&&c<365?(c=((c&7)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,s[u++]=55296+(c>>10),s[u++]=56320+(c&1023)):s[u++]=(c&15)<<12|(t[r++]&63)<<6|t[r++]&63,u>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),u=0);return i?(u&&i.push(String.fromCharCode.apply(String,s.slice(0,u))),i.join("")):String.fromCharCode.apply(String,s.slice(0,u))};Kn.write=function(t,r,n){for(var o=n,i,s,u=0;u<t.length;++u)i=t.charCodeAt(u),i<128?r[n++]=i:i<2048?(r[n++]=i>>6|192,r[n++]=i&63|128):(i&64512)===55296&&((s=t.charCodeAt(u+1))&64512)===56320?(i=65536+((i&1023)<<10)+(s&1023),++u,r[n++]=i>>18|240,r[n++]=i>>12&63|128,r[n++]=i>>6&63|128,r[n++]=i&63|128):(r[n++]=i>>12|224,r[n++]=i>>6&63|128,r[n++]=i&63|128);return n-o}});var ws=_((_m,Ns)=>{"use strict";Ns.exports=ap;function ap(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(c){if(c<1||c>o)return e(c);s+c>n&&(i=e(n),s=0);var a=t.call(i,s,s+=c);return s&7&&(s=(s|7)+1),a}}});var xs=_((hm,Ms)=>{"use strict";Ms.exports=D;var he=At();function D(e,t){this.lo=e>>>0,this.hi=t>>>0}var Dt=D.zero=new D(0,0);Dt.toNumber=function(){return 0};Dt.zzEncode=Dt.zzDecode=function(){return this};Dt.length=function(){return 1};var sp=D.zeroHash="\0\0\0\0\0\0\0\0";D.fromNumber=function(t){if(t===0)return Dt;var r=t<0;r&&(t=-t);var n=t>>>0,o=(t-n)/4294967296>>>0;return r&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new D(n,o)};D.from=function(t){if(typeof t=="number")return D.fromNumber(t);if(he.isString(t))if(he.Long)t=he.Long.fromString(t);else return D.fromNumber(parseInt(t,10));return t.low||t.high?new D(t.low>>>0,t.high>>>0):Dt};D.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,n=~this.hi>>>0;return r||(n=n+1>>>0),-(r+n*4294967296)}return this.lo+this.hi*4294967296};D.prototype.toLong=function(t){return he.Long?new he.Long(this.lo|0,this.hi|0,!!t):{low:this.lo|0,high:this.hi|0,unsigned:!!t}};var vt=String.prototype.charCodeAt;D.fromHash=function(t){return t===sp?Dt:new D((vt.call(t,0)|vt.call(t,1)<<8|vt.call(t,2)<<16|vt.call(t,3)<<24)>>>0,(vt.call(t,4)|vt.call(t,5)<<8|vt.call(t,6)<<16|vt.call(t,7)<<24)>>>0)};D.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};D.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this};D.prototype.zzDecode=function(){var t=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this};D.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?r===0?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:n<128?9:10}});var At=_(Wn=>{"use strict";var h=Wn;h.asPromise=ds();h.base64=ms();h.EventEmitter=Ss();h.float=bs();h.inquire=Ps();h.utf8=Cs();h.pool=ws();h.LongBits=xs();h.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);h.global=h.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||Wn;h.emptyArray=Object.freeze?Object.freeze([]):[];h.emptyObject=Object.freeze?Object.freeze({}):{};h.isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};h.isString=function(t){return typeof t=="string"||t instanceof String};h.isObject=function(t){return t&&typeof t=="object"};h.isset=h.isSet=function(t,r){var n=t[r];return n!=null&&t.hasOwnProperty(r)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};h.Buffer=function(){try{var e=h.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch{return null}}();h._Buffer_from=null;h._Buffer_allocUnsafe=null;h.newBuffer=function(t){return typeof t=="number"?h.Buffer?h._Buffer_allocUnsafe(t):new h.Array(t):h.Buffer?h._Buffer_from(t):typeof Uint8Array>"u"?t:new Uint8Array(t)};h.Array=typeof Uint8Array<"u"?Uint8Array:Array;h.Long=h.global.dcodeIO&&h.global.dcodeIO.Long||h.global.Long||h.inquire("long");h.key2Re=/^true|false|0|1$/;h.key32Re=/^-?(?:0|[1-9][0-9]*)$/;h.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;h.longToHash=function(t){return t?h.LongBits.from(t).toHash():h.LongBits.zeroHash};h.longFromHash=function(t,r){var n=h.LongBits.fromHash(t);return h.Long?h.Long.fromBits(n.lo,n.hi,r):n.toNumber(!!r)};function Ds(e,t,r){for(var n=Object.keys(t),o=0;o<n.length;++o)(e[n[o]]===void 0||!r)&&(e[n[o]]=t[n[o]]);return e}h.merge=Ds;h.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)};function Us(e){function t(r,n){if(!(this instanceof t))return new t(r,n);Object.defineProperty(this,"message",{get:function(){return r}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:new Error().stack||""}),n&&Ds(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return e},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}h.newError=Us;h.ProtocolError=Us("ProtocolError");h.oneOfGetter=function(t){for(var r={},n=0;n<t.length;++n)r[t[n]]=1;return function(){for(var o=Object.keys(this),i=o.length-1;i>-1;--i)if(r[o[i]]===1&&this[o[i]]!==void 0&&this[o[i]]!==null)return o[i]}};h.oneOfSetter=function(t){return function(r){for(var n=0;n<t.length;++n)t[n]!==r&&delete this[t[n]]}};h.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};h._configure=function(){var e=h.Buffer;if(!e){h._Buffer_from=h._Buffer_allocUnsafe=null;return}h._Buffer_from=e.from!==Uint8Array.from&&e.from||function(r,n){return new e(r,n)},h._Buffer_allocUnsafe=e.allocUnsafe||function(r){return new e(r)}}});var ti=_((mm,Hs)=>{"use strict";Hs.exports=y;var W=At(),Yn,Rr=W.LongBits,Bs=W.base64,Gs=W.utf8;function Ee(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function $n(){}function up(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function y(){this.len=0,this.head=new Ee($n,0,0),this.tail=this.head,this.states=null}var Vs=function(){return W.Buffer?function(){return(y.create=function(){return new Yn})()}:function(){return new y}};y.create=Vs();y.alloc=function(t){return new W.Array(t)};W.Array!==Array&&(y.alloc=W.pool(y.alloc,W.Array.prototype.subarray));y.prototype._push=function(t,r,n){return this.tail=this.tail.next=new Ee(t,r,n),this.len+=r,this};function Qn(e,t,r){t[r]=e&255}function cp(e,t,r){for(;e>127;)t[r++]=e&127|128,e>>>=7;t[r]=e}function Zn(e,t){this.len=e,this.next=void 0,this.val=t}Zn.prototype=Object.create(Ee.prototype);Zn.prototype.fn=cp;y.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new Zn((t=t>>>0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this};y.prototype.int32=function(t){return t<0?this._push(Jn,10,Rr.fromNumber(t)):this.uint32(t)};y.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)};function Jn(e,t,r){for(;e.hi;)t[r++]=e.lo&127|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=e.lo&127|128,e.lo=e.lo>>>7;t[r++]=e.lo}y.prototype.uint64=function(t){var r=Rr.from(t);return this._push(Jn,r.length(),r)};y.prototype.int64=y.prototype.uint64;y.prototype.sint64=function(t){var r=Rr.from(t).zzEncode();return this._push(Jn,r.length(),r)};y.prototype.bool=function(t){return this._push(Qn,1,t?1:0)};function zn(e,t,r){t[r]=e&255,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}y.prototype.fixed32=function(t){return this._push(zn,4,t>>>0)};y.prototype.sfixed32=y.prototype.fixed32;y.prototype.fixed64=function(t){var r=Rr.from(t);return this._push(zn,4,r.lo)._push(zn,4,r.hi)};y.prototype.sfixed64=y.prototype.fixed64;y.prototype.float=function(t){return this._push(W.float.writeFloatLE,4,t)};y.prototype.double=function(t){return this._push(W.float.writeDoubleLE,8,t)};var lp=W.Array.prototype.set?function(t,r,n){r.set(t,n)}:function(t,r,n){for(var o=0;o<t.length;++o)r[n+o]=t[o]};y.prototype.bytes=function(t){var r=t.length>>>0;if(!r)return this._push(Qn,1,0);if(W.isString(t)){var n=y.alloc(r=Bs.length(t));Bs.decode(t,n,0),t=n}return this.uint32(r)._push(lp,r,t)};y.prototype.string=function(t){var r=Gs.length(t);return r?this.uint32(r)._push(Gs.write,r,t):this._push(Qn,1,0)};y.prototype.fork=function(){return this.states=new up(this),this.head=this.tail=new Ee($n,0,0),this.len=0,this};y.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Ee($n,0,0),this.len=0),this};y.prototype.ldelim=function(){var t=this.head,r=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=r,this.len+=n),this};y.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,r,n),n+=t.len,t=t.next;return r};y._configure=function(e){Yn=e,y.create=Vs(),Yn._configure()}});var ks=_((Tm,js)=>{"use strict";js.exports=it;var Fs=ti();(it.prototype=Object.create(Fs.prototype)).constructor=it;var Rt=At();function it(){Fs.call(this)}it._configure=function(){it.alloc=Rt._Buffer_allocUnsafe,it.writeBytesBuffer=Rt.Buffer&&Rt.Buffer.prototype instanceof Uint8Array&&Rt.Buffer.prototype.set.name==="set"?function(t,r,n){r.set(t,n)}:function(t,r,n){if(t.copy)t.copy(r,n,0,t.length);else for(var o=0;o<t.length;)r[n++]=t[o++]}};it.prototype.bytes=function(t){Rt.isString(t)&&(t=Rt._Buffer_from(t,"base64"));var r=t.length>>>0;return this.uint32(r),r&&this._push(it.writeBytesBuffer,r,t),this};function fp(e,t,r){e.length<40?Rt.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}it.prototype.string=function(t){var r=Rt.Buffer.byteLength(t);return this.uint32(r),r&&this._push(fp,r,t),this};it._configure()});var ni=_((Sm,Ys)=>{"use strict";Ys.exports=N;var J=At(),ri,Ks=J.LongBits,pp=J.utf8;function tt(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function N(e){this.buf=e,this.pos=0,this.len=e.length}var qs=typeof Uint8Array<"u"?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new N(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new N(t);throw Error("illegal buffer")},Ws=function(){return J.Buffer?function(r){return(N.create=function(o){return J.Buffer.isBuffer(o)?new ri(o):qs(o)})(r)}:qs};N.create=Ws();N.prototype._slice=J.Array.prototype.subarray||J.Array.prototype.slice;N.prototype.uint32=function(){var t=4294967295;return function(){if(t=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(t=(t|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,tt(this,10);return t}}();N.prototype.int32=function(){return this.uint32()|0};N.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(t&1)|0};function ei(){var e=new Ks(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(this.buf[this.pos]&127)<<28)>>>0,e.hi=(e.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw tt(this);if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(this.buf[this.pos++]&127)<<t*7)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw tt(this);if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}N.prototype.bool=function(){return this.uint32()!==0};function Or(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}N.prototype.fixed32=function(){if(this.pos+4>this.len)throw tt(this,4);return Or(this.buf,this.pos+=4)};N.prototype.sfixed32=function(){if(this.pos+4>this.len)throw tt(this,4);return Or(this.buf,this.pos+=4)|0};function Xs(){if(this.pos+8>this.len)throw tt(this,8);return new Ks(Or(this.buf,this.pos+=4),Or(this.buf,this.pos+=4))}N.prototype.float=function(){if(this.pos+4>this.len)throw tt(this,4);var t=J.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t};N.prototype.double=function(){if(this.pos+8>this.len)throw tt(this,4);var t=J.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t};N.prototype.bytes=function(){var t=this.uint32(),r=this.pos,n=this.pos+t;if(n>this.len)throw tt(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,n);if(r===n){var o=J.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,n)};N.prototype.string=function(){var t=this.bytes();return pp.read(t,0,t.length)};N.prototype.skip=function(t){if(typeof t=="number"){if(this.pos+t>this.len)throw tt(this,t);this.pos+=t}else do if(this.pos>=this.len)throw tt(this);while(this.buf[this.pos++]&128);return this};N.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(e=this.uint32()&7)!==4;)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this};N._configure=function(e){ri=e,N.create=Ws(),ri._configure();var t=J.Long?"toLong":"toNumber";J.merge(N.prototype,{int64:function(){return ei.call(this)[t](!1)},uint64:function(){return ei.call(this)[t](!0)},sint64:function(){return ei.call(this).zzDecode()[t](!1)},fixed64:function(){return Xs.call(this)[t](!0)},sfixed64:function(){return Xs.call(this)[t](!1)}})}});var Zs=_((gm,Qs)=>{"use strict";Qs.exports=Ut;var $s=ni();(Ut.prototype=Object.create($s.prototype)).constructor=Ut;var zs=At();function Ut(e){$s.call(this,e)}Ut._configure=function(){zs.Buffer&&(Ut.prototype._slice=zs.Buffer.prototype.slice)};Ut.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))};Ut._configure()});var tu=_((ym,Js)=>{"use strict";Js.exports=me;var ii=At();(me.prototype=Object.create(ii.EventEmitter.prototype)).constructor=me;function me(e,t,r){if(typeof e!="function")throw TypeError("rpcImpl must be a function");ii.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}me.prototype.rpcCall=function e(t,r,n,o,i){if(!o)throw TypeError("request must be specified");var s=this;if(!i)return ii.asPromise(e,s,t,r,n,o);if(!s.rpcImpl){setTimeout(function(){i(Error("already ended"))},0);return}try{return s.rpcImpl(t,r[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(c,a){if(c)return s.emit("error",c,t),i(c);if(a===null){s.end(!0);return}if(!(a instanceof n))try{a=n[s.responseDelimited?"decodeDelimited":"decode"](a)}catch(f){return s.emit("error",f,t),i(f)}return s.emit("data",a,t),i(null,a)})}catch(u){s.emit("error",u,t),setTimeout(function(){i(u)},0);return}};me.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var ru=_(eu=>{"use strict";var dp=eu;dp.Service=tu()});var iu=_((Am,nu)=>{"use strict";nu.exports={}});var su=_(au=>{"use strict";var F=au;F.build="minimal";F.Writer=ti();F.BufferWriter=ks();F.Reader=ni();F.BufferReader=Zs();F.util=At();F.rpc=ru();F.roots=iu();F.configure=ou;function ou(){F.util._configure(),F.Writer._configure(F.BufferWriter),F.Reader._configure(F.BufferReader)}ou()});var cu=_((Om,uu)=>{"use strict";uu.exports=su()});E();var Kt=v(P());E();var b=v(P()),ht=v(ae());var So="exception";var wl=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ml=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},go=function(){function e(t,r,n,o,i,s,u,c,a,f){u===void 0&&(u=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:l.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=n,this._spanContext=o,this.parentSpanId=s,this.kind=i,this.links=u;var p=Date.now();this._performanceStartTime=b.otperformance.now(),this._performanceOffset=p-(this._performanceStartTime+(0,b.getTimeOrigin)()),this._startTimeProvided=c!=null,this.startTime=this._getTime(c??p),this.resource=t.resource,this.instrumentationLibrary=t.instrumentationLibrary,this._spanLimits=t.getSpanLimits(),f!=null&&this.setAttributes(f),this._spanProcessor=t.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,r){return r==null||this._isSpanEnded()?this:t.length===0?(l.diag.warn("Invalid attribute key: "+t),this):(0,b.isAttributeValue)(r)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),this):(l.diag.warn("Invalid attribute value set for key: "+t),this)},e.prototype.setAttributes=function(t){var r,n;try{for(var o=wl(Object.entries(t)),i=o.next();!i.done;i=o.next()){var s=Ml(i.value,2),u=s[0],c=s[1];this.setAttribute(u,c)}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return this},e.prototype.addEvent=function(t,r,n){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return l.diag.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(l.diag.warn("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,b.isTimeInput)(r)&&((0,b.isTimeInput)(n)||(n=r),r=void 0);var o=(0,b.sanitizeAttributes)(r);return this.events.push({name:t,attributes:o,time:this._getTime(n),droppedAttributesCount:0}),this},e.prototype.setStatus=function(t){return this._isSpanEnded()?this:(this.status=t,this)},e.prototype.updateName=function(t){return this._isSpanEnded()?this:(this.name=t,this)},e.prototype.end=function(t){if(this._isSpanEnded()){l.diag.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(t),this._duration=(0,b.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(l.diag.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)},e.prototype._getTime=function(t){if(typeof t=="number"&&t<b.otperformance.now())return(0,b.hrTime)(t+this._performanceOffset);if(typeof t=="number")return(0,b.millisToHrTime)(t);if(t instanceof Date)return(0,b.millisToHrTime)(t.getTime());if((0,b.isTimeInputHrTime)(t))return t;if(this._startTimeProvided)return(0,b.millisToHrTime)(Date.now());var r=b.otperformance.now()-this._performanceStartTime;return(0,b.addHrTimes)(this.startTime,(0,b.millisToHrTime)(r))},e.prototype.isRecording=function(){return this._ended===!1},e.prototype.recordException=function(t,r){var n={};typeof t=="string"?n[ht.SemanticAttributes.EXCEPTION_MESSAGE]=t:t&&(t.code?n[ht.SemanticAttributes.EXCEPTION_TYPE]=t.code.toString():t.name&&(n[ht.SemanticAttributes.EXCEPTION_TYPE]=t.name),t.message&&(n[ht.SemanticAttributes.EXCEPTION_MESSAGE]=t.message),t.stack&&(n[ht.SemanticAttributes.EXCEPTION_STACKTRACE]=t.stack)),n[ht.SemanticAttributes.EXCEPTION_TYPE]||n[ht.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(So,n,r):l.diag.warn("Failed to record an exception "+t)},Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),e.prototype._isSpanEnded=function(){return this._ended&&l.diag.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substr(0,r)},e.prototype._truncateToSize=function(t){var r=this,n=this._attributeValueLengthLimit;return n<=0?(l.diag.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(o){return typeof o=="string"?r._truncateToLimitUtil(o,n):o}):t},e}();E();var x=v(P());var ot;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ot||(ot={}));var at=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:ot.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}();var X=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:ot.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}();E();var yo=v(P());var Et=function(){function e(t){var r,n,o,i;this._root=t.root,this._root||((0,yo.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new X),this._remoteParentSampled=(r=t.remoteParentSampled)!==null&&r!==void 0?r:new X,this._remoteParentNotSampled=(n=t.remoteParentNotSampled)!==null&&n!==void 0?n:new at,this._localParentSampled=(o=t.localParentSampled)!==null&&o!==void 0?o:new X,this._localParentNotSampled=(i=t.localParentNotSampled)!==null&&i!==void 0?i:new at}return e.prototype.shouldSample=function(t,r,n,o,i,s){var u=l.trace.getSpanContext(t);return!u||!(0,l.isSpanContextValid)(u)?this._root.shouldSample(t,r,n,o,i,s):u.isRemote?u.traceFlags&l.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,o,i,s):this._remoteParentNotSampled.shouldSample(t,r,n,o,i,s):u.traceFlags&l.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(t,r,n,o,i,s):this._localParentNotSampled.shouldSample(t,r,n,o,i,s)},e.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()+"}"},e}();E();var kt=function(){function e(t){t===void 0&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}return e.prototype.shouldSample=function(t,r){return{decision:(0,l.isValidTraceId)(r)&&this._accumulate(r)<this._upperBound?ot.RECORD_AND_SAMPLED:ot.NOT_RECORD}},e.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},e.prototype._normalize=function(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t},e.prototype._accumulate=function(t){for(var r=0,n=0;n<t.length/8;n++){var o=n*8,i=parseInt(t.slice(o,o+8),16);r=(r^i)>>>0}return r},e}();var xl=(0,x.getEnv)(),Dl=x.TracesSamplerValues.AlwaysOn,qt=1;function Ze(){return{sampler:mn(xl),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,x.getEnv)().OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,x.getEnv)().OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:(0,x.getEnv)().OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,x.getEnv)().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:(0,x.getEnv)().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:(0,x.getEnv)().OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:(0,x.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:(0,x.getEnv)().OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT}}}function mn(e){switch(e===void 0&&(e=(0,x.getEnv)()),e.OTEL_TRACES_SAMPLER){case x.TracesSamplerValues.AlwaysOn:return new X;case x.TracesSamplerValues.AlwaysOff:return new at;case x.TracesSamplerValues.ParentBasedAlwaysOn:return new Et({root:new X});case x.TracesSamplerValues.ParentBasedAlwaysOff:return new Et({root:new at});case x.TracesSamplerValues.TraceIdRatio:return new kt(vo(e));case x.TracesSamplerValues.ParentBasedTraceIdRatio:return new Et({root:new kt(vo(e))});default:return l.diag.error('OTEL_TRACES_SAMPLER value "'+e.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+Dl+'".'),new X}}function vo(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return l.diag.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+qt+"."),qt;var t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(l.diag.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+qt+"."),qt):t<0||t>1?(l.diag.error("OTEL_TRACES_SAMPLER_ARG="+e.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+qt+"."),qt):t}var Xt=v(P());function Ao(e){var t={sampler:mn()},r=Ze(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function Ro(e){var t,r,n,o,i,s,u,c,a,f,p,d,m=Object.assign({},e.spanLimits),g=(0,Xt.getEnvWithoutDefaults)();return m.attributeCountLimit=(s=(i=(o=(r=(t=e.spanLimits)===null||t===void 0?void 0:t.attributeCountLimit)!==null&&r!==void 0?r:(n=e.generalLimits)===null||n===void 0?void 0:n.attributeCountLimit)!==null&&o!==void 0?o:g.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&i!==void 0?i:g.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:Xt.DEFAULT_ATTRIBUTE_COUNT_LIMIT,m.attributeValueLengthLimit=(d=(p=(f=(c=(u=e.spanLimits)===null||u===void 0?void 0:u.attributeValueLengthLimit)!==null&&c!==void 0?c:(a=e.generalLimits)===null||a===void 0?void 0:a.attributeValueLengthLimit)!==null&&f!==void 0?f:g.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:g.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&d!==void 0?d:Xt.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},e,{spanLimits:m})}E();var k=v(P()),Oo=function(){function e(t,r){this._exporter=t,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var n=(0,k.getEnv)();this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:n.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:n.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:n.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:n.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new k.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(l.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&l.TraceFlags.SAMPLED&&this._addToBuffer(t)},e.prototype.shutdown=function(){return this._shutdownOnce.call()},e.prototype._shutdown=function(){var t=this;return Promise.resolve().then(function(){return t.onShutdown()}).then(function(){return t._flushAll()}).then(function(){return t._exporter.shutdown()})},e.prototype._addToBuffer=function(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&l.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(l.diag.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()},e.prototype._flushAll=function(){var t=this;return new Promise(function(r,n){for(var o=[],i=Math.ceil(t._finishedSpans.length/t._maxExportBatchSize),s=0,u=i;s<u;s++)o.push(t._flushOneBatch());Promise.all(o).then(function(){r()}).catch(n)})},e.prototype._flushOneBatch=function(){var t=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(r,n){var o=setTimeout(function(){n(new Error("Timeout"))},t._exportTimeoutMillis);l.context.with((0,k.suppressTracing)(l.context.active()),function(){var i=t._finishedSpans.splice(0,t._maxExportBatchSize),s=function(){return t._exporter.export(i,function(c){var a;clearTimeout(o),c.code===k.ExportResultCode.SUCCESS?r():n((a=c.error)!==null&&a!==void 0?a:new Error("BatchSpanProcessor: span export failed"))})},u=i.map(function(c){return c.resource}).filter(function(c){return c.asyncAttributesPending});u.length===0?s():Promise.all(u.map(function(c){var a;return(a=c.waitForAsyncAttributes)===null||a===void 0?void 0:a.call(c)})).then(s,function(c){(0,k.globalErrorHandler)(c),n(c)})})})},e.prototype._maybeStartTimer=function(){var t=this;if(!this._isExporting){var r=function(){t._isExporting=!0,t._flushOneBatch().then(function(){t._isExporting=!1,t._finishedSpans.length>0&&(t._clearTimer(),t._maybeStartTimer())}).catch(function(n){t._isExporting=!1,(0,k.globalErrorHandler)(n)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return r();this._timer===void 0&&(this._timer=setTimeout(function(){return r()},this._scheduledDelayMillis),(0,k.unrefTimer)(this._timer))}},e.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},e}();var Ul=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Mt=function(e){Ul(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.onInit(n),o}return t.prototype.onInit=function(r){var n=this;r?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=function(){document.visibilityState==="hidden"&&n.forceFlush()},this._pageHideListener=function(){n.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))},t.prototype.onShutdown=function(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))},t}(Oo);var Bl=8,Gl=16,tr=function(){function e(){this.generateTraceId=bo(Gl),this.generateSpanId=bo(Bl)}return e}();var Je=Array(32);function bo(e){return function(){for(var r=0;r<e*2;r++)Je[r]=Math.floor(Math.random()*16)+48,Je[r]>=58&&(Je[r]+=39);return String.fromCharCode.apply(null,Je.slice(0,e*2))}}var Lo=function(){function e(t,r,n){this._tracerProvider=n;var o=Ao(r);this._sampler=o.sampler,this._generalLimits=o.generalLimits,this._spanLimits=o.spanLimits,this._idGenerator=r.idGenerator||new tr,this.resource=n.resource,this.instrumentationLibrary=t}return e.prototype.startSpan=function(t,r,n){var o,i,s;r===void 0&&(r={}),n===void 0&&(n=l.context.active()),r.root&&(n=l.trace.deleteSpan(n));var u=l.trace.getSpan(n);if((0,Kt.isTracingSuppressed)(n)){l.diag.debug("Instrumentation suppressed, returning Noop Span");var c=l.trace.wrapSpanContext(l.INVALID_SPAN_CONTEXT);return c}var a=u?.spanContext(),f=this._idGenerator.generateSpanId(),p,d,m;!a||!l.trace.isSpanContextValid(a)?p=this._idGenerator.generateTraceId():(p=a.traceId,d=a.traceState,m=a.spanId);var g=(o=r.kind)!==null&&o!==void 0?o:l.SpanKind.INTERNAL,C=((i=r.links)!==null&&i!==void 0?i:[]).map(function(bt){return{context:bt.context,attributes:(0,Kt.sanitizeAttributes)(bt.attributes)}}),M=(0,Kt.sanitizeAttributes)(r.attributes),T=this._sampler.shouldSample(n,p,t,g,M,C);d=(s=T.traceState)!==null&&s!==void 0?s:d;var et=T.decision===l.SamplingDecision.RECORD_AND_SAMPLED?l.TraceFlags.SAMPLED:l.TraceFlags.NONE,q={traceId:p,spanId:f,traceFlags:et,traceState:d};if(T.decision===l.SamplingDecision.NOT_RECORD){l.diag.debug("Recording is off, propagating context in a non-recording span");var c=l.trace.wrapSpanContext(q);return c}var U=(0,Kt.sanitizeAttributes)(Object.assign(M,T.attributes)),wr=new go(this,n,t,q,g,m,C,r.startTime,void 0,U);return wr},e.prototype.startActiveSpan=function(t,r,n,o){var i,s,u;if(!(arguments.length<2)){arguments.length===2?u=r:arguments.length===3?(i=r,u=n):(i=r,s=n,u=o);var c=s??l.context.active(),a=this.startSpan(t,i,c),f=l.trace.setSpan(c,a);return l.context.with(f,u,void 0,a)}},e.prototype.getGeneralLimits=function(){return this._generalLimits},e.prototype.getSpanLimits=function(){return this._spanLimits},e.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},e}();E();var $=v(P());E();var mt=v(ae()),er=v(P());function Po(){return"unknown_service"}var Tt=function(){return Tt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Tt.apply(this,arguments)},Vl=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(f){try{a(n.next(f))}catch(p){s(p)}}function c(f){try{a(n.throw(f))}catch(p){s(p)}}function a(f){f.done?i(f.value):o(f.value).then(u,c)}a((n=n.apply(e,t||[])).next())})},Hl=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(f){a=[6,f],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Fl=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},H=function(){function e(t,r){var n=this,o;this._attributes=t,this.asyncAttributesPending=r!=null,this._syncAttributes=(o=this._attributes)!==null&&o!==void 0?o:{},this._asyncAttributesPromise=r?.then(function(i){return n._attributes=Object.assign({},n._attributes,i),n.asyncAttributesPending=!1,i},function(i){return l.diag.debug("a resource's async attributes promise rejected: %s",i),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e((t={},t[mt.SemanticResourceAttributes.SERVICE_NAME]=Po(),t[mt.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]=er.SDK_INFO[mt.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE],t[mt.SemanticResourceAttributes.TELEMETRY_SDK_NAME]=er.SDK_INFO[mt.SemanticResourceAttributes.TELEMETRY_SDK_NAME],t[mt.SemanticResourceAttributes.TELEMETRY_SDK_VERSION]=er.SDK_INFO[mt.SemanticResourceAttributes.TELEMETRY_SDK_VERSION],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var t;return this.asyncAttributesPending&&l.diag.error("Accessing resource attributes before async attributes settled"),(t=this._attributes)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){return Vl(this,void 0,void 0,function(){return Hl(this,function(t){switch(t.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.merge=function(t){var r=this,n;if(!t)return this;var o=Tt(Tt({},this._syncAttributes),(n=t._syncAttributes)!==null&&n!==void 0?n:t.attributes);if(!this._asyncAttributesPromise&&!t._asyncAttributesPromise)return new e(o);var i=Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(s){var u,c=Fl(s,2),a=c[0],f=c[1];return Tt(Tt(Tt(Tt({},r._syncAttributes),a),(u=t._syncAttributes)!==null&&u!==void 0?u:t.attributes),f)});return new e(o,i)},e.EMPTY=new e({}),e}();E();var Io=v(P()),Co=v(ae());var jl=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},kl=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},ql=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(t){var r={},n=(0,Io.getEnv)(),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var s=this._parseResourceAttributes(o);Object.assign(r,s)}catch(u){l.diag.debug("EnvDetector failed: "+u.message)}return i&&(r[Co.SemanticResourceAttributes.SERVICE_NAME]=i),new H(r)},e.prototype._parseResourceAttributes=function(t){var r,n;if(!t)return{};var o={},i=t.split(this._COMMA_SEPARATOR,-1);try{for(var s=jl(i),u=s.next();!u.done;u=s.next()){var c=u.value,a=c.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(a.length===2){var f=kl(a,2),p=f[0],d=f[1];if(p=p.trim(),d=d.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(p))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(d))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);o[p]=decodeURIComponent(d)}}}catch(m){r={error:m}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o},e.prototype._isValid=function(t){return t.length<=this._MAX_LENGTH&&this._isBaggageOctetString(t)},e.prototype._isBaggageOctetString=function(t){for(var r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(t){return t.length>0&&this._isValid(t)},e}(),No=new ql;E();var wo=function(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"};var Xl=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(f){try{a(n.next(f))}catch(p){s(p)}}function c(f){try{a(n.throw(f))}catch(p){s(p)}}function a(f){f.done?i(f.value):o(f.value).then(u,c)}a((n=n.apply(e,t||[])).next())})},Kl=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(f){a=[6,f],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};var Mo=function(e){var t;e===void 0&&(e={});var r=((t=e.detectors)!==null&&t!==void 0?t:[]).map(function(o){try{var i=o.detect(e),s;if(wo(i)){var u=function(){return Xl(void 0,void 0,void 0,function(){var c;return Kl(this,function(a){switch(a.label){case 0:return[4,i];case 1:return c=a.sent(),[2,c.attributes]}})})};s=new H({},u())}else s=i;return s.waitForAsyncAttributes?s.waitForAsyncAttributes().then(function(){return l.diag.debug(o.constructor.name+" found resource.",s)}):l.diag.debug(o.constructor.name+" found resource.",s),s}catch(c){return l.diag.error(o.constructor.name+" failed: "+c.message),H.empty()}}),n=r.reduce(function(o,i){return o.merge(i)},H.empty());return n.waitForAsyncAttributes&&n.waitForAsyncAttributes().then(function(){Wl(r)}),n},Wl=function(e){e.forEach(function(t){if(Object.keys(t.attributes).length>0){var r=JSON.stringify(t.attributes,null,4);l.diag.verbose(r)}})};var xo=v(P()),rr=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Do=function(){function e(t){this._spanProcessors=t}return e.prototype.forceFlush=function(){var t,r,n=[];try{for(var o=rr(this._spanProcessors),i=o.next();!i.done;i=o.next()){var s=i.value;n.push(s.forceFlush())}}catch(u){t={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return new Promise(function(u){Promise.all(n).then(function(){u()}).catch(function(c){(0,xo.globalErrorHandler)(c||new Error("MultiSpanProcessor: forceFlush failed")),u()})})},e.prototype.onStart=function(t,r){var n,o;try{for(var i=rr(this._spanProcessors),s=i.next();!s.done;s=i.next()){var u=s.value;u.onStart(t,r)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},e.prototype.onEnd=function(t){var r,n;try{for(var o=rr(this._spanProcessors),i=o.next();!i.done;i=o.next()){var s=i.value;s.onEnd(t)}}catch(u){r={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}},e.prototype.shutdown=function(){var t,r,n=[];try{for(var o=rr(this._spanProcessors),i=o.next();!i.done;i=o.next()){var s=i.value;n.push(s.shutdown())}}catch(u){t={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return new Promise(function(u,c){Promise.all(n).then(function(){u()},c)})},e}();var Uo=function(){function e(){}return e.prototype.onStart=function(t,r){},e.prototype.onEnd=function(t){},e.prototype.shutdown=function(){return Promise.resolve()},e.prototype.forceFlush=function(){return Promise.resolve()},e}();var xt;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(xt||(xt={}));var Bo=function(){function e(t){t===void 0&&(t={});var r;this._registeredSpanProcessors=[],this._tracers=new Map;var n=(0,$.merge)({},Ze(),Ro(t));this.resource=(r=n.resource)!==null&&r!==void 0?r:H.empty(),this.resource=H.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});var o=this._buildExporterFromEnv();if(o!==void 0){var i=new Mt(o);this.activeSpanProcessor=i}else this.activeSpanProcessor=new Uo}return e.prototype.getTracer=function(t,r,n){var o=t+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._tracers.has(o)||this._tracers.set(o,new Lo({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this)),this._tracers.get(o)},e.prototype.addSpanProcessor=function(t){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(r){return l.diag.error("Error while trying to shutdown current span processor",r)}),this._registeredSpanProcessors.push(t),this.activeSpanProcessor=new Do(this._registeredSpanProcessors)},e.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},e.prototype.register=function(t){t===void 0&&(t={}),l.trace.setGlobalTracerProvider(this),t.propagator===void 0&&(t.propagator=this._buildPropagatorFromEnv()),t.contextManager&&l.context.setGlobalContextManager(t.contextManager),t.propagator&&l.propagation.setGlobalPropagator(t.propagator)},e.prototype.forceFlush=function(){var t=this._config.forceFlushTimeoutMillis,r=this._registeredSpanProcessors.map(function(n){return new Promise(function(o){var i,s=setTimeout(function(){o(new Error("Span processor did not completed within timeout period of "+t+" ms")),i=xt.timeout},t);n.forceFlush().then(function(){clearTimeout(s),i!==xt.timeout&&(i=xt.resolved,o(i))}).catch(function(u){clearTimeout(s),i=xt.error,o(u)})})});return new Promise(function(n,o){Promise.all(r).then(function(i){var s=i.filter(function(u){return u!==xt.resolved});s.length>0?o(s):n()}).catch(function(i){return o([i])})})},e.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},e.prototype._getPropagator=function(t){var r;return(r=this.constructor._registeredPropagators.get(t))===null||r===void 0?void 0:r()},e.prototype._getSpanExporter=function(t){var r;return(r=this.constructor._registeredExporters.get(t))===null||r===void 0?void 0:r()},e.prototype._buildPropagatorFromEnv=function(){var t=this,r=Array.from(new Set((0,$.getEnv)().OTEL_PROPAGATORS)),n=r.map(function(i){var s=t._getPropagator(i);return s||l.diag.warn('Propagator "'+i+'" requested through environment variable is unavailable.'),s}),o=n.reduce(function(i,s){return s&&i.push(s),i},[]);if(o.length!==0)return r.length===1?o[0]:new $.CompositePropagator({propagators:o})},e.prototype._buildExporterFromEnv=function(){var t=(0,$.getEnv)().OTEL_TRACES_EXPORTER;if(!(t==="none"||t==="")){var r=this._getSpanExporter(t);return r||l.diag.error('Exporter "'+t+'" requested through environment variable is unavailable.'),r}},e._registeredPropagators=new Map([["tracecontext",function(){return new $.W3CTraceContextPropagator}],["baggage",function(){return new $.W3CBaggagePropagator}]]),e._registeredExporters=new Map,e}();E();var st={};Y(st,$_);import*as $_ from"@opentelemetry/api-logs";var Pu=v(Fo(),1);E();var ir=v(P());E();E();E();var Wt=v(P()),Ql=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Zl=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},jo=function(){function e(t,r,n){this.attributes={},this.totalAttributesCount=0,this._isReadonly=!1;var o=n.timestamp,i=n.observedTimestamp,s=n.severityNumber,u=n.severityText,c=n.body,a=n.attributes,f=a===void 0?{}:a,p=n.context,d=Date.now();if(this.hrTime=(0,Wt.timeInputToHrTime)(o??d),this.hrTimeObserved=(0,Wt.timeInputToHrTime)(i??d),p){var m=l.trace.getSpanContext(p);m&&l.isSpanContextValid(m)&&(this.spanContext=m)}this.severityNumber=s,this.severityText=u,this.body=c,this.resource=t.resource,this.instrumentationScope=r,this._logRecordLimits=t.logRecordLimits,this.setAttributes(f)}return Object.defineProperty(e.prototype,"severityText",{get:function(){return this._severityText},set:function(t){this._isLogRecordReadonly()||(this._severityText=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"severityNumber",{get:function(){return this._severityNumber},set:function(t){this._isLogRecordReadonly()||(this._severityNumber=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},set:function(t){this._isLogRecordReadonly()||(this._body=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"droppedAttributesCount",{get:function(){return this.totalAttributesCount-Object.keys(this.attributes).length},enumerable:!1,configurable:!0}),e.prototype.setAttribute=function(t,r){return this._isLogRecordReadonly()?this:r===null?this:t.length===0?(l.diag.warn("Invalid attribute key: "+t),this):!(0,Wt.isAttributeValue)(r)&&!(typeof r=="object"&&!Array.isArray(r)&&Object.keys(r).length>0)?(l.diag.warn("Invalid attribute value set for key: "+t),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?this:((0,Wt.isAttributeValue)(r)?this.attributes[t]=this._truncateToSize(r):this.attributes[t]=r,this))},e.prototype.setAttributes=function(t){var r,n;try{for(var o=Ql(Object.entries(t)),i=o.next();!i.done;i=o.next()){var s=Zl(i.value,2),u=s[0],c=s[1];this.setAttribute(u,c)}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return this},e.prototype.setBody=function(t){return this.body=t,this},e.prototype.setSeverityNumber=function(t){return this.severityNumber=t,this},e.prototype.setSeverityText=function(t){return this.severityText=t,this},e.prototype._makeReadonly=function(){this._isReadonly=!0},e.prototype._truncateToSize=function(t){var r=this,n=this._logRecordLimits.attributeValueLengthLimit;return n<=0?(l.diag.warn("Attribute value limit must be positive, got "+n),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(function(o){return typeof o=="string"?r._truncateToLimitUtil(o,n):o}):t},e.prototype._truncateToLimitUtil=function(t,r){return t.length<=r?t:t.substring(0,r)},e.prototype._isLogRecordReadonly=function(){return this._isReadonly&&l.diag.warn("Can not execute the operation on emitted log record"),this._isReadonly},e}();var Sn=function(){return Sn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Sn.apply(this,arguments)},ko=function(){function e(t,r){this.instrumentationScope=t,this._sharedState=r}return e.prototype.emit=function(t){var r=t.context||l.context.active(),n=new jo(this._sharedState,this.instrumentationScope,Sn({context:r},t));this._sharedState.activeProcessor.onEmit(n,r),n._makeReadonly()},e}();var ut=v(P());function qo(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:(0,ut.getEnv)().OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:(0,ut.getEnv)().OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT},includeTraceContext:!0}}function Xo(e){var t,r,n,o,i,s,u=(0,ut.getEnvWithoutDefaults)();return{attributeCountLimit:(n=(r=(t=e.attributeCountLimit)!==null&&t!==void 0?t:u.OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT)!==null&&r!==void 0?r:u.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&n!==void 0?n:ut.DEFAULT_ATTRIBUTE_COUNT_LIMIT,attributeValueLengthLimit:(s=(i=(o=e.attributeValueLengthLimit)!==null&&o!==void 0?o:u.OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&i!==void 0?i:u.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&s!==void 0?s:ut.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT}}var Yo=v(P()),Ko=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(f){try{a(n.next(f))}catch(p){s(p)}}function c(f){try{a(n.throw(f))}catch(p){s(p)}}function a(f){f.done?i(f.value):o(f.value).then(u,c)}a((n=n.apply(e,t||[])).next())})},Wo=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(f){a=[6,f],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},zo=function(){function e(t,r){this.processors=t,this.forceFlushTimeoutMillis=r}return e.prototype.forceFlush=function(){return Ko(this,void 0,void 0,function(){var t;return Wo(this,function(r){switch(r.label){case 0:return t=this.forceFlushTimeoutMillis,[4,Promise.all(this.processors.map(function(n){return(0,Yo.callWithTimeout)(n.forceFlush(),t)}))];case 1:return r.sent(),[2]}})})},e.prototype.onEmit=function(t,r){this.processors.forEach(function(n){return n.onEmit(t,r)})},e.prototype.shutdown=function(){return Ko(this,void 0,void 0,function(){return Wo(this,function(t){switch(t.label){case 0:return[4,Promise.all(this.processors.map(function(r){return r.shutdown()}))];case 1:return t.sent(),[2]}})})},e}();var $o=function(){function e(){}return e.prototype.forceFlush=function(){return Promise.resolve()},e.prototype.onEmit=function(t,r){},e.prototype.shutdown=function(){return Promise.resolve()},e}();var Qo=function(){function e(t,r,n){this.resource=t,this.forceFlushTimeoutMillis=r,this.logRecordLimits=n,this.loggers=new Map,this.registeredLogRecordProcessors=[],this.activeProcessor=new $o}return e}();var Jl="unknown",gn=function(){function e(t){t===void 0&&(t={});var r=(0,ir.merge)({},qo(),t),n=r.resource,o=n===void 0?H.default():n,i=r.logRecordLimits,s=r.forceFlushTimeoutMillis;this._sharedState=new Qo(o,s,Xo(i)),this._shutdownOnce=new ir.BindOnceFuture(this._shutdown,this)}return e.prototype.getLogger=function(t,r,n){if(this._shutdownOnce.isCalled)return l.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),st.NOOP_LOGGER;t||l.diag.warn("Logger requested without instrumentation scope name.");var o=t||Jl,i=o+"@"+(r||"")+":"+(n?.schemaUrl||"");return this._sharedState.loggers.has(i)||this._sharedState.loggers.set(i,new ko({name:o,version:r,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(i)},e.prototype.addLogRecordProcessor=function(t){this._sharedState.registeredLogRecordProcessors.length===0&&this._sharedState.activeProcessor.shutdown().catch(function(r){return l.diag.error("Error while trying to shutdown current log record processor",r)}),this._sharedState.registeredLogRecordProcessors.push(t),this._sharedState.activeProcessor=new zo(this._sharedState.registeredLogRecordProcessors,this._sharedState.forceFlushTimeoutMillis)},e.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?(l.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()},e.prototype.shutdown=function(){return this._shutdownOnce.isCalled?(l.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()},e.prototype._shutdown=function(){return this._sharedState.activeProcessor.shutdown()},e}();var or;(function(e){e[e.DELTA=0]="DELTA",e[e.CUMULATIVE=1]="CUMULATIVE"})(or||(or={}));var tf=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zo=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(f){try{a(n.next(f))}catch(p){s(p)}}function c(f){try{a(n.throw(f))}catch(p){s(p)}}function a(f){f.done?i(f.value):o(f.value).then(u,c)}a((n=n.apply(e,t||[])).next())})},Jo=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(f){a=[6,f],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};var ef=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function ta(e){return e!=null}function ea(e){var t=Object.keys(e);return t.length===0?"":(t=t.sort(),JSON.stringify(t.map(function(r){return[r,e[r]]})))}function ra(e){var t,r;return e.name+":"+((t=e.version)!==null&&t!==void 0?t:"")+":"+((r=e.schemaUrl)!==null&&r!==void 0?r:"")}var rf=function(e){tf(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t}(Error);function yn(e,t){var r,n=new Promise(function(i,s){r=setTimeout(function(){s(new rf("Operation timed out."))},t)});return Promise.race([e,n]).then(function(o){return clearTimeout(r),o},function(o){throw clearTimeout(r),o})}function na(e){return Zo(this,void 0,void 0,function(){var t=this;return Jo(this,function(r){return[2,Promise.all(e.map(function(n){return Zo(t,void 0,void 0,function(){var o,i;return Jo(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,n];case 1:return o=s.sent(),[2,{status:"fulfilled",value:o}];case 2:return i=s.sent(),[2,{status:"rejected",reason:i}];case 3:return[2]}})})}))]})})}function ia(e){return e.status==="rejected"}function oa(e,t){var r,n;if(e.size!==t.size)return!1;try{for(var o=ef(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(!t.has(s))return!1}}catch(u){r={error:u}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!0}function aa(e,t){return e.toLowerCase()===t.toLowerCase()}E();var ct;(function(e){e.COUNTER="COUNTER",e.HISTOGRAM="HISTOGRAM",e.UP_DOWN_COUNTER="UP_DOWN_COUNTER",e.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",e.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",e.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(ct||(ct={}));function lt(e,t,r){var n,o,i,s;return of(e)||l.diag.warn('Invalid metric name: "'+e+'". The metric name should be a ASCII string with a length no greater than 255 characters.'),{name:e,type:t,description:(n=r?.description)!==null&&n!==void 0?n:"",unit:(o=r?.unit)!==null&&o!==void 0?o:"",valueType:(i=r?.valueType)!==null&&i!==void 0?i:l.ValueType.DOUBLE,advice:(s=r?.advice)!==null&&s!==void 0?s:{}}}function sa(e,t){var r,n;return{name:(r=e.name)!==null&&r!==void 0?r:t.name,description:(n=e.description)!==null&&n!==void 0?n:t.description,type:t.type,unit:t.unit,valueType:t.valueType,advice:t.advice}}function ua(e,t){return aa(e.name,t.name)&&e.unit===t.unit&&e.type===t.type&&e.valueType===t.valueType}var nf=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function of(e){return e.match(nf)!=null}E();var ca=function(){function e(){this._registeredViews=[]}return e.prototype.addView=function(t){this._registeredViews.push(t)},e.prototype.findViews=function(t,r){var n=this,o=this._registeredViews.filter(function(i){return n._matchInstrument(i.instrumentSelector,t)&&n._matchMeter(i.meterSelector,r)});return o},e.prototype._matchInstrument=function(t,r){return(t.getType()===void 0||r.type===t.getType())&&t.getNameFilter().match(r.name)&&t.getUnitFilter().match(r.unit)},e.prototype._matchMeter=function(t,r){return t.getNameFilter().match(r.name)&&(r.version===void 0||t.getVersionFilter().match(r.version))&&(r.schemaUrl===void 0||t.getSchemaUrlFilter().match(r.schemaUrl))},e}();E();var la=v(P()),Yt=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vn=function(){function e(t,r){this._writableMetricStorage=t,this._descriptor=r}return e.prototype._record=function(t,r,n){if(r===void 0&&(r={}),n===void 0&&(n=l.context.active()),typeof t!="number"){l.diag.warn("non-number value provided to metric "+this._descriptor.name+": "+t);return}this._descriptor.valueType===l.ValueType.INT&&!Number.isInteger(t)&&(l.diag.warn("INT value type cannot accept a floating-point value for "+this._descriptor.name+", ignoring the fractional digits."),t=Math.trunc(t),!Number.isInteger(t))||this._writableMetricStorage.record(t,r,n,(0,la.millisToHrTime)(Date.now()))},e}();var fa=function(e){Yt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n,o){this._record(r,n,o)},t}(vn);var pa=function(e){Yt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(r,n,o){if(r<0){l.diag.warn("negative value provided to counter "+this._descriptor.name+": "+r);return}this._record(r,n,o)},t}(vn);var da=function(e){Yt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(r,n,o){if(r<0){l.diag.warn("negative value provided to histogram "+this._descriptor.name+": "+r);return}this._record(r,n,o)},t}(vn);var ar=function(){function e(t,r,n){this._observableRegistry=n,this._descriptor=t,this._metricStorages=r}return e.prototype.addCallback=function(t){this._observableRegistry.addCallback(t,this)},e.prototype.removeCallback=function(t){this._observableRegistry.removeCallback(t,this)},e}();var _a=function(e){Yt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ar);var ha=function(e){Yt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ar);var Ea=function(e){Yt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ar);function fe(e){return e instanceof ar}var ma=function(){function e(t){this._meterSharedState=t}return e.prototype.createHistogram=function(t,r){var n=lt(t,ct.HISTOGRAM,r),o=this._meterSharedState.registerMetricStorage(n);return new da(o,n)},e.prototype.createCounter=function(t,r){var n=lt(t,ct.COUNTER,r),o=this._meterSharedState.registerMetricStorage(n);return new pa(o,n)},e.prototype.createUpDownCounter=function(t,r){var n=lt(t,ct.UP_DOWN_COUNTER,r),o=this._meterSharedState.registerMetricStorage(n);return new fa(o,n)},e.prototype.createObservableGauge=function(t,r){var n=lt(t,ct.OBSERVABLE_GAUGE,r),o=this._meterSharedState.registerAsyncMetricStorage(n);return new ha(n,o,this._meterSharedState.observableRegistry)},e.prototype.createObservableCounter=function(t,r){var n=lt(t,ct.OBSERVABLE_COUNTER,r),o=this._meterSharedState.registerAsyncMetricStorage(n);return new _a(n,o,this._meterSharedState.observableRegistry)},e.prototype.createObservableUpDownCounter=function(t,r){var n=lt(t,ct.OBSERVABLE_UP_DOWN_COUNTER,r),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Ea(n,o,this._meterSharedState.observableRegistry)},e.prototype.addBatchObservableCallback=function(t,r){this._meterSharedState.observableRegistry.addBatchCallback(t,r)},e.prototype.removeBatchObservableCallback=function(t,r){this._meterSharedState.observableRegistry.removeBatchCallback(t,r)},e}();var sr=function(){function e(t){this._instrumentDescriptor=t}return e.prototype.getInstrumentDescriptor=function(){return this._instrumentDescriptor},e.prototype.updateDescription=function(t){this._instrumentDescriptor=lt(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:t,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})},e}();var af=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ta=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(f){a=[6,f],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},sf=function(){function e(t){this._hash=t,this._valueMap=new Map,this._keyMap=new Map}return e.prototype.get=function(t,r){return r??(r=this._hash(t)),this._valueMap.get(r)},e.prototype.getOrDefault=function(t,r){var n=this._hash(t);if(this._valueMap.has(n))return this._valueMap.get(n);var o=r();return this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,o),o},e.prototype.set=function(t,r,n){n??(n=this._hash(t)),this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,r)},e.prototype.has=function(t,r){return r??(r=this._hash(t)),this._valueMap.has(r)},e.prototype.keys=function(){var t,r;return Ta(this,function(n){switch(n.label){case 0:t=this._keyMap.entries(),r=t.next(),n.label=1;case 1:return r.done===!0?[3,3]:[4,[r.value[1],r.value[0]]];case 2:return n.sent(),r=t.next(),[3,1];case 3:return[2]}})},e.prototype.entries=function(){var t,r;return Ta(this,function(n){switch(n.label){case 0:t=this._valueMap.entries(),r=t.next(),n.label=1;case 1:return r.done===!0?[3,3]:[4,[this._keyMap.get(r.value[0]),r.value[1],r.value[0]]];case 2:return n.sent(),r=t.next(),[3,1];case 3:return[2]}})},Object.defineProperty(e.prototype,"size",{get:function(){return this._valueMap.size},enumerable:!1,configurable:!0}),e}();var Q=function(e){af(t,e);function t(){return e.call(this,ea)||this}return t}(sf);var uf=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},ur=function(){function e(t){this._aggregator=t,this._activeCollectionStorage=new Q,this._cumulativeMemoStorage=new Q}return e.prototype.record=function(t,r,n,o){var i=this,s=this._activeCollectionStorage.getOrDefault(r,function(){return i._aggregator.createAccumulation(o)});s?.record(t)},e.prototype.batchCumulate=function(t,r){var n=this;Array.from(t.entries()).forEach(function(o){var i=uf(o,3),s=i[0],u=i[1],c=i[2],a=n._aggregator.createAccumulation(r);a?.record(u);var f=a;if(n._cumulativeMemoStorage.has(s,c)){var p=n._cumulativeMemoStorage.get(s,c);f=n._aggregator.diff(p,a)}if(n._activeCollectionStorage.has(s,c)){var d=n._activeCollectionStorage.get(s,c);f=n._aggregator.merge(d,f)}n._cumulativeMemoStorage.set(s,a,c),n._activeCollectionStorage.set(s,f,c)})},e.prototype.collect=function(){var t=this._activeCollectionStorage;return this._activeCollectionStorage=new Q,t},e}();var An=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sa=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},cr=function(){function e(t,r){var n=this;this._aggregator=t,this._unreportedAccumulations=new Map,this._reportHistory=new Map,r.forEach(function(o){n._unreportedAccumulations.set(o,[])})}return e.prototype.buildMetrics=function(t,r,n,o){this._stashAccumulations(n);var i=this._getMergedUnreportedAccumulations(t),s=i,u;if(this._reportHistory.has(t)){var c=this._reportHistory.get(t),a=c.collectionTime;u=c.aggregationTemporality,u===or.CUMULATIVE?s=e.merge(c.accumulations,i,this._aggregator):s=e.calibrateStartTime(c.accumulations,i,a)}else u=t.selectAggregationTemporality(r.type);this._reportHistory.set(t,{accumulations:s,collectionTime:o,aggregationTemporality:u});var f=cf(s);if(f.length!==0)return this._aggregator.toMetricData(r,u,f,o)},e.prototype._stashAccumulations=function(t){var r,n,o=this._unreportedAccumulations.keys();try{for(var i=An(o),s=i.next();!s.done;s=i.next()){var u=s.value,c=this._unreportedAccumulations.get(u);c===void 0&&(c=[],this._unreportedAccumulations.set(u,c)),c.push(t)}}catch(a){r={error:a}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype._getMergedUnreportedAccumulations=function(t){var r,n,o=new Q,i=this._unreportedAccumulations.get(t);if(this._unreportedAccumulations.set(t,[]),i===void 0)return o;try{for(var s=An(i),u=s.next();!u.done;u=s.next()){var c=u.value;o=e.merge(o,c,this._aggregator)}}catch(a){r={error:a}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o},e.merge=function(t,r,n){for(var o=t,i=r.entries(),s=i.next();s.done!==!0;){var u=Sa(s.value,3),c=u[0],a=u[1],f=u[2];if(t.has(c,f)){var p=t.get(c,f),d=n.merge(p,a);o.set(c,d,f)}else o.set(c,a,f);s=i.next()}return o},e.calibrateStartTime=function(t,r,n){var o,i;try{for(var s=An(t.keys()),u=s.next();!u.done;u=s.next()){var c=Sa(u.value,2),a=c[0],f=c[1],p=r.get(a,f);p?.setStartTime(n)}}catch(d){o={error:d}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return r},e}();function cf(e){return Array.from(e.entries())}var lf=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ff=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},ga=function(e){lf(t,e);function t(r,n,o,i){var s=e.call(this,r)||this;return s._attributesProcessor=o,s._deltaMetricStorage=new ur(n),s._temporalMetricStorage=new cr(n,i),s}return t.prototype.record=function(r,n){var o=this,i=new Q;Array.from(r.entries()).forEach(function(s){var u=ff(s,2),c=u[0],a=u[1];i.set(o._attributesProcessor.process(c),a)}),this._deltaMetricStorage.batchCumulate(i,n)},t.prototype.collect=function(r,n){var o=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,o,n)},t}(sr);E();function Rn(e,t){var r="";return e.unit!==t.unit&&(r+=" - Unit '"+e.unit+"' does not match '"+t.unit+`'
|
|
5
|
-
`),
|
|
6
|
-
`),
|
|
7
|
-
`),
|
|
8
|
-
`),
|
|
9
|
-
- OR - create a new view with the name
|
|
10
|
-
- OR - create a new view with the name
|
|
4
|
+
var Zl=Object.create;var ke=Object.defineProperty;var tA=Object.getOwnPropertyDescriptor;var eA=Object.getOwnPropertyNames;var rA=Object.getPrototypeOf,nA=Object.prototype.hasOwnProperty;var Es=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var F=(r,t)=>()=>(r&&(t=r(r=0)),t);var S=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),oA=(r,t)=>{for(var e in t)ke(r,e,{get:t[e],enumerable:!0})},Ye=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of eA(t))!nA.call(r,o)&&o!==e&&ke(r,o,{get:()=>t[o],enumerable:!(n=tA(t,o))||n.enumerable});return r},Z=(r,t,e)=>(Ye(r,t,"default"),e&&Ye(e,t,"default")),O=(r,t,e)=>(e=r!=null?Zl(rA(r)):{},Ye(t||!r||!r.__esModule?ke(e,"default",{value:r,enumerable:!0}):e,r)),b=r=>Ye(ke({},"__esModule",{value:!0}),r);var c={};import*as gx from"@opentelemetry/api";var d=F(()=>{Z(c,gx)});var Se=S(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.isTracingSuppressed=mt.unsuppressTracing=mt.suppressTracing=void 0;var sA=(d(),b(c)),bn=(0,sA.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function iA(r){return r.setValue(bn,!0)}mt.suppressTracing=iA;function aA(r){return r.deleteValue(bn)}mt.unsuppressTracing=aA;function cA(r){return r.getValue(bn)===!0}mt.isTracingSuppressed=cA});var yn=S(y=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});y.BAGGAGE_MAX_TOTAL_LENGTH=y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=y.BAGGAGE_MAX_NAME_VALUE_PAIRS=y.BAGGAGE_HEADER=y.BAGGAGE_ITEMS_SEPARATOR=y.BAGGAGE_PROPERTIES_SEPARATOR=y.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;y.BAGGAGE_KEY_PAIR_SEPARATOR="=";y.BAGGAGE_PROPERTIES_SEPARATOR=";";y.BAGGAGE_ITEMS_SEPARATOR=",";y.BAGGAGE_HEADER="baggage";y.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;y.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;y.BAGGAGE_MAX_TOTAL_LENGTH=8192});var Vn=S(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.parseKeyPairsIntoRecord=ot.parsePairKeyValue=ot.getKeyPairs=ot.serializeKeyPairs=void 0;var _A=(d(),b(c)),It=yn();function EA(r){return r.reduce((t,e)=>{let n=`${t}${t!==""?It.BAGGAGE_ITEMS_SEPARATOR:""}${e}`;return n.length>It.BAGGAGE_MAX_TOTAL_LENGTH?t:n},"")}ot.serializeKeyPairs=EA;function uA(r){return r.getAllEntries().map(([t,e])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(e.value)}`;return e.metadata!==void 0&&(n+=It.BAGGAGE_PROPERTIES_SEPARATOR+e.metadata.toString()),n})}ot.getKeyPairs=uA;function us(r){let t=r.split(It.BAGGAGE_PROPERTIES_SEPARATOR);if(t.length<=0)return;let e=t.shift();if(!e)return;let n=e.indexOf(It.BAGGAGE_KEY_PAIR_SEPARATOR);if(n<=0)return;let o=decodeURIComponent(e.substring(0,n).trim()),s=decodeURIComponent(e.substring(n+1).trim()),i;return t.length>0&&(i=(0,_A.baggageEntryMetadataFromString)(t.join(It.BAGGAGE_PROPERTIES_SEPARATOR))),{key:o,value:s,metadata:i}}ot.parsePairKeyValue=us;function TA(r){let t={};return typeof r=="string"&&r.length>0&&r.split(It.BAGGAGE_ITEMS_SEPARATOR).forEach(e=>{let n=us(e);n!==void 0&&n.value.length>0&&(t[n.key]=n.value)}),t}ot.parseKeyPairsIntoRecord=TA});var Ts=S(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.W3CBaggagePropagator=void 0;var vn=(d(),b(c)),SA=Se(),xt=yn(),Bn=Vn(),wn=class{inject(t,e,n){let o=vn.propagation.getBaggage(t);if(!o||(0,SA.isTracingSuppressed)(t))return;let s=(0,Bn.getKeyPairs)(o).filter(a=>a.length<=xt.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,xt.BAGGAGE_MAX_NAME_VALUE_PAIRS),i=(0,Bn.serializeKeyPairs)(s);i.length>0&&n.set(e,xt.BAGGAGE_HEADER,i)}extract(t,e,n){let o=n.get(e,xt.BAGGAGE_HEADER),s=Array.isArray(o)?o.join(xt.BAGGAGE_ITEMS_SEPARATOR):o;if(!s)return t;let i={};return s.length===0||(s.split(xt.BAGGAGE_ITEMS_SEPARATOR).forEach(_=>{let E=(0,Bn.parsePairKeyValue)(_);if(E){let T={value:E.value};E.metadata&&(T.metadata=E.metadata),i[E.key]=T}}),Object.entries(i).length===0)?t:vn.propagation.setBaggage(t,vn.propagation.createBaggage(i))}fields(){return[xt.BAGGAGE_HEADER]}};Ke.W3CBaggagePropagator=wn});var Ss=S(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.AnchoredClock=void 0;var Gn=class{_monotonicClock;_epochMillis;_performanceMillis;constructor(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}now(){let t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t}};je.AnchoredClock=Gn});var ms=S(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.isAttributeValue=ft.isAttributeKey=ft.sanitizeAttributes=void 0;var ps=(d(),b(c));function pA(r){let t={};if(typeof r!="object"||r==null)return t;for(let[e,n]of Object.entries(r)){if(!ls(e)){ps.diag.warn(`Invalid attribute key: ${e}`);continue}if(!As(n)){ps.diag.warn(`Invalid attribute value set for key: ${e}`);continue}Array.isArray(n)?t[e]=n.slice():t[e]=n}return t}ft.sanitizeAttributes=pA;function ls(r){return typeof r=="string"&&r.length>0}ft.isAttributeKey=ls;function As(r){return r==null?!0:Array.isArray(r)?lA(r):ds(r)}ft.isAttributeValue=As;function lA(r){let t;for(let e of r)if(e!=null){if(!t){if(ds(e)){t=typeof e;continue}return!1}if(typeof e!==t)return!1}return!0}function ds(r){switch(typeof r){case"number":case"boolean":case"string":return!0}return!1}});var Hn=S(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.loggingErrorHandler=void 0;var AA=(d(),b(c));function dA(){return r=>{AA.diag.error(mA(r))}}We.loggingErrorHandler=dA;function mA(r){return typeof r=="string"?r:JSON.stringify(fA(r))}function fA(r){let t={},e=r;for(;e!==null;)Object.getOwnPropertyNames(e).forEach(n=>{if(t[n])return;let o=e[n];o&&(t[n]=String(o))}),e=Object.getPrototypeOf(e);return t}});var hs=S(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.globalErrorHandler=Ht.setGlobalErrorHandler=void 0;var hA=Hn(),fs=(0,hA.loggingErrorHandler)();function RA(r){fs=r}Ht.setGlobalErrorHandler=RA;function OA(r){try{fs(r)}catch{}}Ht.globalErrorHandler=OA});var Rs=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.getStringListFromEnv=st.getNumberFromEnv=st.getBooleanFromEnv=st.getStringFromEnv=void 0;function gA(r){}st.getStringFromEnv=gA;function NA(r){}st.getBooleanFromEnv=NA;function MA(r){}st.getNumberFromEnv=MA;function PA(r){}st.getStringListFromEnv=PA});var Os=S(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe._globalThis=void 0;qe._globalThis=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{}});var gs=S($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.otperformance=void 0;$e.otperformance=performance});var Ns=S(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.VERSION=void 0;Xe.VERSION="2.1.0"});function C(r){let t={},e=r.length;for(let n=0;n<e;n++){let o=r[n];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}var Fn=F(()=>{});var Ms,Ps,Cs,Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,Ei,ui,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,Ea,ua,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka,Ka,CA,LA,IA,xA,DA,UA,bA,yA,VA,vA,BA,wA,GA,HA,FA,YA,kA,KA,jA,WA,qA,$A,XA,zA,QA,JA,ZA,td,ed,rd,nd,od,sd,id,ad,cd,_d,Ed,ud,Td,Sd,pd,ld,Ad,dd,md,fd,hd,Rd,Od,gd,Nd,Md,Pd,Cd,Ld,Id,xd,Dd,Ud,bd,yd,Vd,vd,Bd,wd,Gd,Hd,Fd,Yd,kd,Kd,jd,Wd,qd,$d,Xd,zd,Qd,Jd,Zd,tm,em,rm,nm,om,sm,im,am,cm,_m,Em,um,Tm,Sm,pm,lm,Am,dm,mm,fm,hm,Rm,Om,gm,Nm,Mm,Pm,Cm,Lm,Im,xm,Dm,Um,bm,ym,Vm,vm,Bm,wm,Gm,Hm,Fm,Ym,km,Km,jm,Wm,qm,ja,Wa,qa,$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,Ec,uc,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc,Bc,$m,Xm,zm,Qm,Jm,Zm,tf,ef,rf,nf,of,sf,af,cf,_f,Ef,uf,Tf,Sf,pf,lf,Af,df,mf,ff,hf,Rf,Of,gf,Nf,Mf,Pf,Cf,Lf,If,xf,Df,Uf,bf,yf,Vf,vf,Bf,wf,Gf,Hf,Ff,Yf,wc,Gc,Hc,Fc,Yc,kc,Kc,jc,Wc,qc,$c,kf,Kf,jf,Wf,qf,$f,Xf,zf,Qf,Jf,Zf,th,Xc,zc,Qc,Jc,Zc,eh,rh,nh,oh,sh,ih,t_,e_,r_,ah,ch,_h,Eh,n_,o_,s_,i_,uh,Th,Sh,ph,lh,a_,c_,__,E_,u_,T_,S_,Ah,dh,mh,fh,hh,Rh,Oh,gh,p_,l_,A_,d_,m_,Nh,Mh,Ph,Ch,Lh,Ih,f_,h_,R_,O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_,G_,xh,Dh,Uh,bh,yh,Vh,vh,Bh,wh,Gh,Hh,Fh,Yh,kh,Kh,jh,Wh,qh,$h,Xh,zh,Qh,H_,F_,Y_,k_,K_,Jh,Zh,tR,eR,rR,nR,j_,W_,oR,sR,iR,q_,$_,aR,cR,_R,X_,z_,Q_,J_,Z_,tE,eE,rE,nE,oE,sE,iE,aE,cE,_E,EE,uE,ER,uR,TR,SR,pR,lR,AR,dR,mR,fR,hR,RR,OR,gR,NR,MR,PR,CR,TE,SE,LR,IR,xR,pE=F(()=>{Fn();Ms="aws.lambda.invoked_arn",Ps="db.system",Cs="db.connection_string",Ls="db.user",Is="db.jdbc.driver_classname",xs="db.name",Ds="db.statement",Us="db.operation",bs="db.mssql.instance_name",ys="db.cassandra.keyspace",Vs="db.cassandra.page_size",vs="db.cassandra.consistency_level",Bs="db.cassandra.table",ws="db.cassandra.idempotence",Gs="db.cassandra.speculative_execution_count",Hs="db.cassandra.coordinator.id",Fs="db.cassandra.coordinator.dc",Ys="db.hbase.namespace",ks="db.redis.database_index",Ks="db.mongodb.collection",js="db.sql.table",Ws="exception.type",qs="exception.message",$s="exception.stacktrace",Xs="exception.escaped",zs="faas.trigger",Qs="faas.execution",Js="faas.document.collection",Zs="faas.document.operation",ti="faas.document.time",ei="faas.document.name",ri="faas.time",ni="faas.cron",oi="faas.coldstart",si="faas.invoked_name",ii="faas.invoked_provider",ai="faas.invoked_region",ci="net.transport",_i="net.peer.ip",Ei="net.peer.port",ui="net.peer.name",Ti="net.host.ip",Si="net.host.port",pi="net.host.name",li="net.host.connection.type",Ai="net.host.connection.subtype",di="net.host.carrier.name",mi="net.host.carrier.mcc",fi="net.host.carrier.mnc",hi="net.host.carrier.icc",Ri="peer.service",Oi="enduser.id",gi="enduser.role",Ni="enduser.scope",Mi="thread.id",Pi="thread.name",Ci="code.function",Li="code.namespace",Ii="code.filepath",xi="code.lineno",Di="http.method",Ui="http.url",bi="http.target",yi="http.host",Vi="http.scheme",vi="http.status_code",Bi="http.flavor",wi="http.user_agent",Gi="http.request_content_length",Hi="http.request_content_length_uncompressed",Fi="http.response_content_length",Yi="http.response_content_length_uncompressed",ki="http.server_name",Ki="http.route",ji="http.client_ip",Wi="aws.dynamodb.table_names",qi="aws.dynamodb.consumed_capacity",$i="aws.dynamodb.item_collection_metrics",Xi="aws.dynamodb.provisioned_read_capacity",zi="aws.dynamodb.provisioned_write_capacity",Qi="aws.dynamodb.consistent_read",Ji="aws.dynamodb.projection",Zi="aws.dynamodb.limit",ta="aws.dynamodb.attributes_to_get",ea="aws.dynamodb.index_name",ra="aws.dynamodb.select",na="aws.dynamodb.global_secondary_indexes",oa="aws.dynamodb.local_secondary_indexes",sa="aws.dynamodb.exclusive_start_table",ia="aws.dynamodb.table_count",aa="aws.dynamodb.scan_forward",ca="aws.dynamodb.segment",_a="aws.dynamodb.total_segments",Ea="aws.dynamodb.count",ua="aws.dynamodb.scanned_count",Ta="aws.dynamodb.attribute_definitions",Sa="aws.dynamodb.global_secondary_index_updates",pa="messaging.system",la="messaging.destination",Aa="messaging.destination_kind",da="messaging.temp_destination",ma="messaging.protocol",fa="messaging.protocol_version",ha="messaging.url",Ra="messaging.message_id",Oa="messaging.conversation_id",ga="messaging.message_payload_size_bytes",Na="messaging.message_payload_compressed_size_bytes",Ma="messaging.operation",Pa="messaging.consumer_id",Ca="messaging.rabbitmq.routing_key",La="messaging.kafka.message_key",Ia="messaging.kafka.consumer_group",xa="messaging.kafka.client_id",Da="messaging.kafka.partition",Ua="messaging.kafka.tombstone",ba="rpc.system",ya="rpc.service",Va="rpc.method",va="rpc.grpc.status_code",Ba="rpc.jsonrpc.version",wa="rpc.jsonrpc.request_id",Ga="rpc.jsonrpc.error_code",Ha="rpc.jsonrpc.error_message",Fa="message.type",Ya="message.id",ka="message.compressed_size",Ka="message.uncompressed_size",CA=Ms,LA=Ps,IA=Cs,xA=Ls,DA=Is,UA=xs,bA=Ds,yA=Us,VA=bs,vA=ys,BA=Vs,wA=vs,GA=Bs,HA=ws,FA=Gs,YA=Hs,kA=Fs,KA=Ys,jA=ks,WA=Ks,qA=js,$A=Ws,XA=qs,zA=$s,QA=Xs,JA=zs,ZA=Qs,td=Js,ed=Zs,rd=ti,nd=ei,od=ri,sd=ni,id=oi,ad=si,cd=ii,_d=ai,Ed=ci,ud=_i,Td=Ei,Sd=ui,pd=Ti,ld=Si,Ad=pi,dd=li,md=Ai,fd=di,hd=mi,Rd=fi,Od=hi,gd=Ri,Nd=Oi,Md=gi,Pd=Ni,Cd=Mi,Ld=Pi,Id=Ci,xd=Li,Dd=Ii,Ud=xi,bd=Di,yd=Ui,Vd=bi,vd=yi,Bd=Vi,wd=vi,Gd=Bi,Hd=wi,Fd=Gi,Yd=Hi,kd=Fi,Kd=Yi,jd=ki,Wd=Ki,qd=ji,$d=Wi,Xd=qi,zd=$i,Qd=Xi,Jd=zi,Zd=Qi,tm=Ji,em=Zi,rm=ta,nm=ea,om=ra,sm=na,im=oa,am=sa,cm=ia,_m=aa,Em=ca,um=_a,Tm=Ea,Sm=ua,pm=Ta,lm=Sa,Am=pa,dm=la,mm=Aa,fm=da,hm=ma,Rm=fa,Om=ha,gm=Ra,Nm=Oa,Mm=ga,Pm=Na,Cm=Ma,Lm=Pa,Im=Ca,xm=La,Dm=Ia,Um=xa,bm=Da,ym=Ua,Vm=ba,vm=ya,Bm=Va,wm=va,Gm=Ba,Hm=wa,Fm=Ga,Ym=Ha,km=Fa,Km=Ya,jm=ka,Wm=Ka,qm=C([Ms,Ps,Cs,Ls,Is,xs,Ds,Us,bs,ys,Vs,vs,Bs,ws,Gs,Hs,Fs,Ys,ks,Ks,js,Ws,qs,$s,Xs,zs,Qs,Js,Zs,ti,ei,ri,ni,oi,si,ii,ai,ci,_i,Ei,ui,Ti,Si,pi,li,Ai,di,mi,fi,hi,Ri,Oi,gi,Ni,Mi,Pi,Ci,Li,Ii,xi,Di,Ui,bi,yi,Vi,vi,Bi,wi,Gi,Hi,Fi,Yi,ki,Ki,ji,Wi,qi,$i,Xi,zi,Qi,Ji,Zi,ta,ea,ra,na,oa,sa,ia,aa,ca,_a,Ea,ua,Ta,Sa,pa,la,Aa,da,ma,fa,ha,Ra,Oa,ga,Na,Ma,Pa,Ca,La,Ia,xa,Da,Ua,ba,ya,Va,va,Ba,wa,Ga,Ha,Fa,Ya,ka,Ka]),ja="other_sql",Wa="mssql",qa="mysql",$a="oracle",Xa="db2",za="postgresql",Qa="redshift",Ja="hive",Za="cloudscape",tc="hsqldb",ec="progress",rc="maxdb",nc="hanadb",oc="ingres",sc="firstsql",ic="edb",ac="cache",cc="adabas",_c="firebird",Ec="derby",uc="filemaker",Tc="informix",Sc="instantdb",pc="interbase",lc="mariadb",Ac="netezza",dc="pervasive",mc="pointbase",fc="sqlite",hc="sybase",Rc="teradata",Oc="vertica",gc="h2",Nc="coldfusion",Mc="cassandra",Pc="hbase",Cc="mongodb",Lc="redis",Ic="couchbase",xc="couchdb",Dc="cosmosdb",Uc="dynamodb",bc="neo4j",yc="geode",Vc="elasticsearch",vc="memcached",Bc="cockroachdb",$m=ja,Xm=Wa,zm=qa,Qm=$a,Jm=Xa,Zm=za,tf=Qa,ef=Ja,rf=Za,nf=tc,of=ec,sf=rc,af=nc,cf=oc,_f=sc,Ef=ic,uf=ac,Tf=cc,Sf=_c,pf=Ec,lf=uc,Af=Tc,df=Sc,mf=pc,ff=lc,hf=Ac,Rf=dc,Of=mc,gf=fc,Nf=hc,Mf=Rc,Pf=Oc,Cf=gc,Lf=Nc,If=Mc,xf=Pc,Df=Cc,Uf=Lc,bf=Ic,yf=xc,Vf=Dc,vf=Uc,Bf=bc,wf=yc,Gf=Vc,Hf=vc,Ff=Bc,Yf=C([ja,Wa,qa,$a,Xa,za,Qa,Ja,Za,tc,ec,rc,nc,oc,sc,ic,ac,cc,_c,Ec,uc,Tc,Sc,pc,lc,Ac,dc,mc,fc,hc,Rc,Oc,gc,Nc,Mc,Pc,Cc,Lc,Ic,xc,Dc,Uc,bc,yc,Vc,vc,Bc]),wc="all",Gc="each_quorum",Hc="quorum",Fc="local_quorum",Yc="one",kc="two",Kc="three",jc="local_one",Wc="any",qc="serial",$c="local_serial",kf=wc,Kf=Gc,jf=Hc,Wf=Fc,qf=Yc,$f=kc,Xf=Kc,zf=jc,Qf=Wc,Jf=qc,Zf=$c,th=C([wc,Gc,Hc,Fc,Yc,kc,Kc,jc,Wc,qc,$c]),Xc="datasource",zc="http",Qc="pubsub",Jc="timer",Zc="other",eh=Xc,rh=zc,nh=Qc,oh=Jc,sh=Zc,ih=C([Xc,zc,Qc,Jc,Zc]),t_="insert",e_="edit",r_="delete",ah=t_,ch=e_,_h=r_,Eh=C([t_,e_,r_]),n_="alibaba_cloud",o_="aws",s_="azure",i_="gcp",uh=n_,Th=o_,Sh=s_,ph=i_,lh=C([n_,o_,s_,i_]),a_="ip_tcp",c_="ip_udp",__="ip",E_="unix",u_="pipe",T_="inproc",S_="other",Ah=a_,dh=c_,mh=__,fh=E_,hh=u_,Rh=T_,Oh=S_,gh=C([a_,c_,__,E_,u_,T_,S_]),p_="wifi",l_="wired",A_="cell",d_="unavailable",m_="unknown",Nh=p_,Mh=l_,Ph=A_,Ch=d_,Lh=m_,Ih=C([p_,l_,A_,d_,m_]),f_="gprs",h_="edge",R_="umts",O_="cdma",g_="evdo_0",N_="evdo_a",M_="cdma2000_1xrtt",P_="hsdpa",C_="hsupa",L_="hspa",I_="iden",x_="evdo_b",D_="lte",U_="ehrpd",b_="hspap",y_="gsm",V_="td_scdma",v_="iwlan",B_="nr",w_="nrnsa",G_="lte_ca",xh=f_,Dh=h_,Uh=R_,bh=O_,yh=g_,Vh=N_,vh=M_,Bh=P_,wh=C_,Gh=L_,Hh=I_,Fh=x_,Yh=D_,kh=U_,Kh=b_,jh=y_,Wh=V_,qh=v_,$h=B_,Xh=w_,zh=G_,Qh=C([f_,h_,R_,O_,g_,N_,M_,P_,C_,L_,I_,x_,D_,U_,b_,y_,V_,v_,B_,w_,G_]),H_="1.0",F_="1.1",Y_="2.0",k_="SPDY",K_="QUIC",Jh=H_,Zh=F_,tR=Y_,eR=k_,rR=K_,nR={HTTP_1_0:H_,HTTP_1_1:F_,HTTP_2_0:Y_,SPDY:k_,QUIC:K_},j_="queue",W_="topic",oR=j_,sR=W_,iR=C([j_,W_]),q_="receive",$_="process",aR=q_,cR=$_,_R=C([q_,$_]),X_=0,z_=1,Q_=2,J_=3,Z_=4,tE=5,eE=6,rE=7,nE=8,oE=9,sE=10,iE=11,aE=12,cE=13,_E=14,EE=15,uE=16,ER=X_,uR=z_,TR=Q_,SR=J_,pR=Z_,lR=tE,AR=eE,dR=rE,mR=nE,fR=oE,hR=sE,RR=iE,OR=aE,gR=cE,NR=_E,MR=EE,PR=uE,CR={OK:X_,CANCELLED:z_,UNKNOWN:Q_,INVALID_ARGUMENT:J_,DEADLINE_EXCEEDED:Z_,NOT_FOUND:tE,ALREADY_EXISTS:eE,PERMISSION_DENIED:rE,RESOURCE_EXHAUSTED:nE,FAILED_PRECONDITION:oE,ABORTED:sE,OUT_OF_RANGE:iE,UNIMPLEMENTED:aE,INTERNAL:cE,UNAVAILABLE:_E,DATA_LOSS:EE,UNAUTHENTICATED:uE},TE="SENT",SE="RECEIVED",LR=TE,IR=SE,xR=C([TE,SE])});var lE=F(()=>{pE()});var AE,dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE,WE,qE,$E,XE,zE,QE,JE,ZE,tu,eu,ru,nu,ou,su,iu,au,cu,_u,Eu,uu,Tu,Su,pu,lu,Au,du,mu,fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu,Yu,DR,UR,bR,yR,VR,vR,BR,wR,GR,HR,FR,YR,kR,KR,jR,WR,qR,$R,XR,zR,QR,JR,ZR,tO,eO,rO,nO,oO,sO,iO,aO,cO,_O,EO,uO,TO,SO,pO,lO,AO,dO,mO,fO,hO,RO,OO,gO,NO,MO,PO,CO,LO,IO,xO,DO,UO,bO,yO,VO,vO,BO,wO,GO,HO,FO,YO,kO,KO,jO,WO,qO,$O,XO,zO,QO,JO,ZO,tg,eg,rg,ng,og,ku,Ku,ju,Wu,sg,ig,ag,cg,_g,qu,$u,Xu,zu,Qu,Ju,Zu,tT,eT,rT,nT,oT,sT,iT,aT,cT,_T,Eg,ug,Tg,Sg,pg,lg,Ag,dg,mg,fg,hg,Rg,Og,gg,Ng,Mg,Pg,Cg,ET,uT,Lg,Ig,xg,TT,ST,pT,lT,AT,dT,mT,Dg,Ug,bg,yg,Vg,vg,Bg,wg,fT,hT,RT,OT,gT,NT,MT,PT,CT,LT,IT,Gg,Hg,Fg,Yg,kg,Kg,jg,Wg,qg,$g,Xg,zg,xT,DT,UT,bT,yT,VT,vT,BT,wT,GT,Qg,Jg,Zg,tN,eN,rN,nN,oN,sN,iN,aN,HT=F(()=>{Fn();AE="cloud.provider",dE="cloud.account.id",mE="cloud.region",fE="cloud.availability_zone",hE="cloud.platform",RE="aws.ecs.container.arn",OE="aws.ecs.cluster.arn",gE="aws.ecs.launchtype",NE="aws.ecs.task.arn",ME="aws.ecs.task.family",PE="aws.ecs.task.revision",CE="aws.eks.cluster.arn",LE="aws.log.group.names",IE="aws.log.group.arns",xE="aws.log.stream.names",DE="aws.log.stream.arns",UE="container.name",bE="container.id",yE="container.runtime",VE="container.image.name",vE="container.image.tag",BE="deployment.environment",wE="device.id",GE="device.model.identifier",HE="device.model.name",FE="faas.name",YE="faas.id",kE="faas.version",KE="faas.instance",jE="faas.max_memory",WE="host.id",qE="host.name",$E="host.type",XE="host.arch",zE="host.image.name",QE="host.image.id",JE="host.image.version",ZE="k8s.cluster.name",tu="k8s.node.name",eu="k8s.node.uid",ru="k8s.namespace.name",nu="k8s.pod.uid",ou="k8s.pod.name",su="k8s.container.name",iu="k8s.replicaset.uid",au="k8s.replicaset.name",cu="k8s.deployment.uid",_u="k8s.deployment.name",Eu="k8s.statefulset.uid",uu="k8s.statefulset.name",Tu="k8s.daemonset.uid",Su="k8s.daemonset.name",pu="k8s.job.uid",lu="k8s.job.name",Au="k8s.cronjob.uid",du="k8s.cronjob.name",mu="os.type",fu="os.description",hu="os.name",Ru="os.version",Ou="process.pid",gu="process.executable.name",Nu="process.executable.path",Mu="process.command",Pu="process.command_line",Cu="process.command_args",Lu="process.owner",Iu="process.runtime.name",xu="process.runtime.version",Du="process.runtime.description",Uu="service.name",bu="service.namespace",yu="service.instance.id",Vu="service.version",vu="telemetry.sdk.name",Bu="telemetry.sdk.language",wu="telemetry.sdk.version",Gu="telemetry.auto.version",Hu="webengine.name",Fu="webengine.version",Yu="webengine.description",DR=AE,UR=dE,bR=mE,yR=fE,VR=hE,vR=RE,BR=OE,wR=gE,GR=NE,HR=ME,FR=PE,YR=CE,kR=LE,KR=IE,jR=xE,WR=DE,qR=UE,$R=bE,XR=yE,zR=VE,QR=vE,JR=BE,ZR=wE,tO=GE,eO=HE,rO=FE,nO=YE,oO=kE,sO=KE,iO=jE,aO=WE,cO=qE,_O=$E,EO=XE,uO=zE,TO=QE,SO=JE,pO=ZE,lO=tu,AO=eu,dO=ru,mO=nu,fO=ou,hO=su,RO=iu,OO=au,gO=cu,NO=_u,MO=Eu,PO=uu,CO=Tu,LO=Su,IO=pu,xO=lu,DO=Au,UO=du,bO=mu,yO=fu,VO=hu,vO=Ru,BO=Ou,wO=gu,GO=Nu,HO=Mu,FO=Pu,YO=Cu,kO=Lu,KO=Iu,jO=xu,WO=Du,qO=Uu,$O=bu,XO=yu,zO=Vu,QO=vu,JO=Bu,ZO=wu,tg=Gu,eg=Hu,rg=Fu,ng=Yu,og=C([AE,dE,mE,fE,hE,RE,OE,gE,NE,ME,PE,CE,LE,IE,xE,DE,UE,bE,yE,VE,vE,BE,wE,GE,HE,FE,YE,kE,KE,jE,WE,qE,$E,XE,zE,QE,JE,ZE,tu,eu,ru,nu,ou,su,iu,au,cu,_u,Eu,uu,Tu,Su,pu,lu,Au,du,mu,fu,hu,Ru,Ou,gu,Nu,Mu,Pu,Cu,Lu,Iu,xu,Du,Uu,bu,yu,Vu,vu,Bu,wu,Gu,Hu,Fu,Yu]),ku="alibaba_cloud",Ku="aws",ju="azure",Wu="gcp",sg=ku,ig=Ku,ag=ju,cg=Wu,_g=C([ku,Ku,ju,Wu]),qu="alibaba_cloud_ecs",$u="alibaba_cloud_fc",Xu="aws_ec2",zu="aws_ecs",Qu="aws_eks",Ju="aws_lambda",Zu="aws_elastic_beanstalk",tT="azure_vm",eT="azure_container_instances",rT="azure_aks",nT="azure_functions",oT="azure_app_service",sT="gcp_compute_engine",iT="gcp_cloud_run",aT="gcp_kubernetes_engine",cT="gcp_cloud_functions",_T="gcp_app_engine",Eg=qu,ug=$u,Tg=Xu,Sg=zu,pg=Qu,lg=Ju,Ag=Zu,dg=tT,mg=eT,fg=rT,hg=nT,Rg=oT,Og=sT,gg=iT,Ng=aT,Mg=cT,Pg=_T,Cg=C([qu,$u,Xu,zu,Qu,Ju,Zu,tT,eT,rT,nT,oT,sT,iT,aT,cT,_T]),ET="ec2",uT="fargate",Lg=ET,Ig=uT,xg=C([ET,uT]),TT="amd64",ST="arm32",pT="arm64",lT="ia64",AT="ppc32",dT="ppc64",mT="x86",Dg=TT,Ug=ST,bg=pT,yg=lT,Vg=AT,vg=dT,Bg=mT,wg=C([TT,ST,pT,lT,AT,dT,mT]),fT="windows",hT="linux",RT="darwin",OT="freebsd",gT="netbsd",NT="openbsd",MT="dragonflybsd",PT="hpux",CT="aix",LT="solaris",IT="z_os",Gg=fT,Hg=hT,Fg=RT,Yg=OT,kg=gT,Kg=NT,jg=MT,Wg=PT,qg=CT,$g=LT,Xg=IT,zg=C([fT,hT,RT,OT,gT,NT,MT,PT,CT,LT,IT]),xT="cpp",DT="dotnet",UT="erlang",bT="go",yT="java",VT="nodejs",vT="php",BT="python",wT="ruby",GT="webjs",Qg=xT,Jg=DT,Zg=UT,tN=bT,eN=yT,rN=VT,nN=vT,oN=BT,sN=wT,iN=GT,aN=C([xT,DT,UT,bT,yT,VT,vT,BT,wT,GT])});var FT=F(()=>{HT()});var cN,_N,EN,uN,TN,SN,pN,lN,AN,dN,mN,fN,hN,RN,ON,gN,NN,MN,PN,CN,LN,IN,xN,DN,UN,bN,yN,VN,vN,BN,wN,GN,HN,FN,YN,kN,KN,jN,WN,qN,$N,XN,zN,QN,JN,ZN,tM,pe,Yn,le,eM,rM,nM,oM,sM,iM,aM,cM,_M,EM,uM,TM,SM,pM,lM,AM,dM,mM,fM,hM,RM,OM,gM,NM,MM,PM,CM,LM,IM,xM,DM,UM,bM,yM,VM,vM,BM,wM,GM,HM,FM,YM,kM,KM,jM,WM,qM,$M,XM,zM,QM,JM,ZM,tP,Ae,eP,rP,nP,oP,sP,iP,aP,cP,_P,ze,EP,uP,TP,SP,pP,lP,AP,dP,mP,fP,hP,RP,Qe,Je,OP,gP,NP,MP,PP,CP,YT=F(()=>{cN="aspnetcore.diagnostics.exception.result",_N="aborted",EN="handled",uN="skipped",TN="unhandled",SN="aspnetcore.diagnostics.handler.type",pN="aspnetcore.rate_limiting.policy",lN="aspnetcore.rate_limiting.result",AN="acquired",dN="endpoint_limiter",mN="global_limiter",fN="request_canceled",hN="aspnetcore.request.is_unhandled",RN="aspnetcore.routing.is_fallback",ON="aspnetcore.routing.match_status",gN="failure",NN="success",MN="aspnetcore.user.is_authenticated",PN="client.address",CN="client.port",LN="code.column.number",IN="code.file.path",xN="code.function.name",DN="code.line.number",UN="code.stacktrace",bN="db.collection.name",yN="db.namespace",VN="db.operation.batch.size",vN="db.operation.name",BN="db.query.summary",wN="db.query.text",GN="db.response.status_code",HN="db.stored_procedure.name",FN="db.system.name",YN="mariadb",kN="microsoft.sql_server",KN="mysql",jN="postgresql",WN="dotnet.gc.heap.generation",qN="gen0",$N="gen1",XN="gen2",zN="loh",QN="poh",JN="error.type",ZN="_OTHER",tM="exception.escaped",pe="exception.message",Yn="exception.stacktrace",le="exception.type",eM=r=>`http.request.header.${r}`,rM="http.request.method",nM="_OTHER",oM="CONNECT",sM="DELETE",iM="GET",aM="HEAD",cM="OPTIONS",_M="PATCH",EM="POST",uM="PUT",TM="TRACE",SM="http.request.method_original",pM="http.request.resend_count",lM=r=>`http.response.header.${r}`,AM="http.response.status_code",dM="http.route",mM="jvm.gc.action",fM="jvm.gc.name",hM="jvm.memory.pool.name",RM="jvm.memory.type",OM="heap",gM="non_heap",NM="jvm.thread.daemon",MM="jvm.thread.state",PM="blocked",CM="new",LM="runnable",IM="terminated",xM="timed_waiting",DM="waiting",UM="network.local.address",bM="network.local.port",yM="network.peer.address",VM="network.peer.port",vM="network.protocol.name",BM="network.protocol.version",wM="network.transport",GM="pipe",HM="quic",FM="tcp",YM="udp",kM="unix",KM="network.type",jM="ipv4",WM="ipv6",qM="otel.scope.name",$M="otel.scope.version",XM="otel.status_code",zM="ERROR",QM="OK",JM="otel.status_description",ZM="server.address",tP="server.port",Ae="service.name",eP="service.version",rP="signalr.connection.status",nP="app_shutdown",oP="normal_closure",sP="timeout",iP="signalr.transport",aP="long_polling",cP="server_sent_events",_P="web_sockets",ze="telemetry.sdk.language",EP="cpp",uP="dotnet",TP="erlang",SP="go",pP="java",lP="nodejs",AP="php",dP="python",mP="ruby",fP="rust",hP="swift",RP="webjs",Qe="telemetry.sdk.name",Je="telemetry.sdk.version",OP="url.fragment",gP="url.full",NP="url.path",MP="url.query",PP="url.scheme",CP="user_agent.original"});var LP,IP,xP,DP,UP,bP,yP,VP,vP,BP,wP,GP,HP,FP,YP,kP,KP,jP,WP,qP,$P,XP,zP,QP,JP,ZP,tC,eC,rC,nC,oC,sC,iC,aC,cC,_C,EC,uC,TC,SC,pC,lC,AC,dC,mC,fC,hC,RC,OC,gC,NC,kT=F(()=>{LP="aspnetcore.diagnostics.exceptions",IP="aspnetcore.rate_limiting.active_request_leases",xP="aspnetcore.rate_limiting.queued_requests",DP="aspnetcore.rate_limiting.request.time_in_queue",UP="aspnetcore.rate_limiting.request_lease.duration",bP="aspnetcore.rate_limiting.requests",yP="aspnetcore.routing.match_attempts",VP="db.client.operation.duration",vP="dotnet.assembly.count",BP="dotnet.exceptions",wP="dotnet.gc.collections",GP="dotnet.gc.heap.total_allocated",HP="dotnet.gc.last_collection.heap.fragmentation.size",FP="dotnet.gc.last_collection.heap.size",YP="dotnet.gc.last_collection.memory.committed_size",kP="dotnet.gc.pause.time",KP="dotnet.jit.compilation.time",jP="dotnet.jit.compiled_il.size",WP="dotnet.jit.compiled_methods",qP="dotnet.monitor.lock_contentions",$P="dotnet.process.cpu.count",XP="dotnet.process.cpu.time",zP="dotnet.process.memory.working_set",QP="dotnet.thread_pool.queue.length",JP="dotnet.thread_pool.thread.count",ZP="dotnet.thread_pool.work_item.count",tC="dotnet.timer.count",eC="http.client.request.duration",rC="http.server.request.duration",nC="jvm.class.count",oC="jvm.class.loaded",sC="jvm.class.unloaded",iC="jvm.cpu.count",aC="jvm.cpu.recent_utilization",cC="jvm.cpu.time",_C="jvm.gc.duration",EC="jvm.memory.committed",uC="jvm.memory.limit",TC="jvm.memory.used",SC="jvm.memory.used_after_last_gc",pC="jvm.thread.count",lC="kestrel.active_connections",AC="kestrel.active_tls_handshakes",dC="kestrel.connection.duration",mC="kestrel.queued_connections",fC="kestrel.queued_requests",hC="kestrel.rejected_connections",RC="kestrel.tls_handshake.duration",OC="kestrel.upgraded_connections",gC="signalr.server.active_connections",NC="signalr.server.connection.duration"});var MC,KT=F(()=>{MC="exception"});var jT={};oA(jT,{ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:()=>_N,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:()=>EN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:()=>uN,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:()=>TN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:()=>AN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:()=>dN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:()=>mN,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:()=>fN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:()=>gN,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:()=>NN,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:()=>cN,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:()=>SN,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:()=>pN,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:()=>lN,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:()=>hN,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:()=>RN,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:()=>ON,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:()=>MN,ATTR_CLIENT_ADDRESS:()=>PN,ATTR_CLIENT_PORT:()=>CN,ATTR_CODE_COLUMN_NUMBER:()=>LN,ATTR_CODE_FILE_PATH:()=>IN,ATTR_CODE_FUNCTION_NAME:()=>xN,ATTR_CODE_LINE_NUMBER:()=>DN,ATTR_CODE_STACKTRACE:()=>UN,ATTR_DB_COLLECTION_NAME:()=>bN,ATTR_DB_NAMESPACE:()=>yN,ATTR_DB_OPERATION_BATCH_SIZE:()=>VN,ATTR_DB_OPERATION_NAME:()=>vN,ATTR_DB_QUERY_SUMMARY:()=>BN,ATTR_DB_QUERY_TEXT:()=>wN,ATTR_DB_RESPONSE_STATUS_CODE:()=>GN,ATTR_DB_STORED_PROCEDURE_NAME:()=>HN,ATTR_DB_SYSTEM_NAME:()=>FN,ATTR_DOTNET_GC_HEAP_GENERATION:()=>WN,ATTR_ERROR_TYPE:()=>JN,ATTR_EXCEPTION_ESCAPED:()=>tM,ATTR_EXCEPTION_MESSAGE:()=>pe,ATTR_EXCEPTION_STACKTRACE:()=>Yn,ATTR_EXCEPTION_TYPE:()=>le,ATTR_HTTP_REQUEST_HEADER:()=>eM,ATTR_HTTP_REQUEST_METHOD:()=>rM,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:()=>SM,ATTR_HTTP_REQUEST_RESEND_COUNT:()=>pM,ATTR_HTTP_RESPONSE_HEADER:()=>lM,ATTR_HTTP_RESPONSE_STATUS_CODE:()=>AM,ATTR_HTTP_ROUTE:()=>dM,ATTR_JVM_GC_ACTION:()=>mM,ATTR_JVM_GC_NAME:()=>fM,ATTR_JVM_MEMORY_POOL_NAME:()=>hM,ATTR_JVM_MEMORY_TYPE:()=>RM,ATTR_JVM_THREAD_DAEMON:()=>NM,ATTR_JVM_THREAD_STATE:()=>MM,ATTR_NETWORK_LOCAL_ADDRESS:()=>UM,ATTR_NETWORK_LOCAL_PORT:()=>bM,ATTR_NETWORK_PEER_ADDRESS:()=>yM,ATTR_NETWORK_PEER_PORT:()=>VM,ATTR_NETWORK_PROTOCOL_NAME:()=>vM,ATTR_NETWORK_PROTOCOL_VERSION:()=>BM,ATTR_NETWORK_TRANSPORT:()=>wM,ATTR_NETWORK_TYPE:()=>KM,ATTR_OTEL_SCOPE_NAME:()=>qM,ATTR_OTEL_SCOPE_VERSION:()=>$M,ATTR_OTEL_STATUS_CODE:()=>XM,ATTR_OTEL_STATUS_DESCRIPTION:()=>JM,ATTR_SERVER_ADDRESS:()=>ZM,ATTR_SERVER_PORT:()=>tP,ATTR_SERVICE_NAME:()=>Ae,ATTR_SERVICE_VERSION:()=>eP,ATTR_SIGNALR_CONNECTION_STATUS:()=>rP,ATTR_SIGNALR_TRANSPORT:()=>iP,ATTR_TELEMETRY_SDK_LANGUAGE:()=>ze,ATTR_TELEMETRY_SDK_NAME:()=>Qe,ATTR_TELEMETRY_SDK_VERSION:()=>Je,ATTR_URL_FRAGMENT:()=>OP,ATTR_URL_FULL:()=>gP,ATTR_URL_PATH:()=>NP,ATTR_URL_QUERY:()=>MP,ATTR_URL_SCHEME:()=>PP,ATTR_USER_AGENT_ORIGINAL:()=>CP,AWSECSLAUNCHTYPEVALUES_EC2:()=>Lg,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>Ig,AwsEcsLaunchtypeValues:()=>xg,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>Eg,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>ug,CLOUDPLATFORMVALUES_AWS_EC2:()=>Tg,CLOUDPLATFORMVALUES_AWS_ECS:()=>Sg,CLOUDPLATFORMVALUES_AWS_EKS:()=>pg,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Ag,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>lg,CLOUDPLATFORMVALUES_AZURE_AKS:()=>fg,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>Rg,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>mg,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>hg,CLOUDPLATFORMVALUES_AZURE_VM:()=>dg,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>Pg,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>Mg,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>gg,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>Og,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>Ng,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>sg,CLOUDPROVIDERVALUES_AWS:()=>ig,CLOUDPROVIDERVALUES_AZURE:()=>ag,CLOUDPROVIDERVALUES_GCP:()=>cg,CloudPlatformValues:()=>Cg,CloudProviderValues:()=>_g,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>kf,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>Qf,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>Kf,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>zf,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>Wf,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>Zf,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>qf,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>jf,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>Jf,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>Xf,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>$f,DBSYSTEMVALUES_ADABAS:()=>Tf,DBSYSTEMVALUES_CACHE:()=>uf,DBSYSTEMVALUES_CASSANDRA:()=>If,DBSYSTEMVALUES_CLOUDSCAPE:()=>rf,DBSYSTEMVALUES_COCKROACHDB:()=>Ff,DBSYSTEMVALUES_COLDFUSION:()=>Lf,DBSYSTEMVALUES_COSMOSDB:()=>Vf,DBSYSTEMVALUES_COUCHBASE:()=>bf,DBSYSTEMVALUES_COUCHDB:()=>yf,DBSYSTEMVALUES_DB2:()=>Jm,DBSYSTEMVALUES_DERBY:()=>pf,DBSYSTEMVALUES_DYNAMODB:()=>vf,DBSYSTEMVALUES_EDB:()=>Ef,DBSYSTEMVALUES_ELASTICSEARCH:()=>Gf,DBSYSTEMVALUES_FILEMAKER:()=>lf,DBSYSTEMVALUES_FIREBIRD:()=>Sf,DBSYSTEMVALUES_FIRSTSQL:()=>_f,DBSYSTEMVALUES_GEODE:()=>wf,DBSYSTEMVALUES_H2:()=>Cf,DBSYSTEMVALUES_HANADB:()=>af,DBSYSTEMVALUES_HBASE:()=>xf,DBSYSTEMVALUES_HIVE:()=>ef,DBSYSTEMVALUES_HSQLDB:()=>nf,DBSYSTEMVALUES_INFORMIX:()=>Af,DBSYSTEMVALUES_INGRES:()=>cf,DBSYSTEMVALUES_INSTANTDB:()=>df,DBSYSTEMVALUES_INTERBASE:()=>mf,DBSYSTEMVALUES_MARIADB:()=>ff,DBSYSTEMVALUES_MAXDB:()=>sf,DBSYSTEMVALUES_MEMCACHED:()=>Hf,DBSYSTEMVALUES_MONGODB:()=>Df,DBSYSTEMVALUES_MSSQL:()=>Xm,DBSYSTEMVALUES_MYSQL:()=>zm,DBSYSTEMVALUES_NEO4J:()=>Bf,DBSYSTEMVALUES_NETEZZA:()=>hf,DBSYSTEMVALUES_ORACLE:()=>Qm,DBSYSTEMVALUES_OTHER_SQL:()=>$m,DBSYSTEMVALUES_PERVASIVE:()=>Rf,DBSYSTEMVALUES_POINTBASE:()=>Of,DBSYSTEMVALUES_POSTGRESQL:()=>Zm,DBSYSTEMVALUES_PROGRESS:()=>of,DBSYSTEMVALUES_REDIS:()=>Uf,DBSYSTEMVALUES_REDSHIFT:()=>tf,DBSYSTEMVALUES_SQLITE:()=>gf,DBSYSTEMVALUES_SYBASE:()=>Nf,DBSYSTEMVALUES_TERADATA:()=>Mf,DBSYSTEMVALUES_VERTICA:()=>Pf,DB_SYSTEM_NAME_VALUE_MARIADB:()=>YN,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:()=>kN,DB_SYSTEM_NAME_VALUE_MYSQL:()=>KN,DB_SYSTEM_NAME_VALUE_POSTGRESQL:()=>jN,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:()=>qN,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:()=>$N,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:()=>XN,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:()=>zN,DOTNET_GC_HEAP_GENERATION_VALUE_POH:()=>QN,DbCassandraConsistencyLevelValues:()=>th,DbSystemValues:()=>Yf,ERROR_TYPE_VALUE_OTHER:()=>ZN,EVENT_EXCEPTION:()=>MC,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>_h,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>ch,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>ah,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>uh,FAASINVOKEDPROVIDERVALUES_AWS:()=>Th,FAASINVOKEDPROVIDERVALUES_AZURE:()=>Sh,FAASINVOKEDPROVIDERVALUES_GCP:()=>ph,FAASTRIGGERVALUES_DATASOURCE:()=>eh,FAASTRIGGERVALUES_HTTP:()=>rh,FAASTRIGGERVALUES_OTHER:()=>sh,FAASTRIGGERVALUES_PUBSUB:()=>nh,FAASTRIGGERVALUES_TIMER:()=>oh,FaasDocumentOperationValues:()=>Eh,FaasInvokedProviderValues:()=>lh,FaasTriggerValues:()=>ih,HOSTARCHVALUES_AMD64:()=>Dg,HOSTARCHVALUES_ARM32:()=>Ug,HOSTARCHVALUES_ARM64:()=>bg,HOSTARCHVALUES_IA64:()=>yg,HOSTARCHVALUES_PPC32:()=>Vg,HOSTARCHVALUES_PPC64:()=>vg,HOSTARCHVALUES_X86:()=>Bg,HTTPFLAVORVALUES_HTTP_1_0:()=>Jh,HTTPFLAVORVALUES_HTTP_1_1:()=>Zh,HTTPFLAVORVALUES_HTTP_2_0:()=>tR,HTTPFLAVORVALUES_QUIC:()=>rR,HTTPFLAVORVALUES_SPDY:()=>eR,HTTP_REQUEST_METHOD_VALUE_CONNECT:()=>oM,HTTP_REQUEST_METHOD_VALUE_DELETE:()=>sM,HTTP_REQUEST_METHOD_VALUE_GET:()=>iM,HTTP_REQUEST_METHOD_VALUE_HEAD:()=>aM,HTTP_REQUEST_METHOD_VALUE_OPTIONS:()=>cM,HTTP_REQUEST_METHOD_VALUE_OTHER:()=>nM,HTTP_REQUEST_METHOD_VALUE_PATCH:()=>_M,HTTP_REQUEST_METHOD_VALUE_POST:()=>EM,HTTP_REQUEST_METHOD_VALUE_PUT:()=>uM,HTTP_REQUEST_METHOD_VALUE_TRACE:()=>TM,HostArchValues:()=>wg,HttpFlavorValues:()=>nR,JVM_MEMORY_TYPE_VALUE_HEAP:()=>OM,JVM_MEMORY_TYPE_VALUE_NON_HEAP:()=>gM,JVM_THREAD_STATE_VALUE_BLOCKED:()=>PM,JVM_THREAD_STATE_VALUE_NEW:()=>CM,JVM_THREAD_STATE_VALUE_RUNNABLE:()=>LM,JVM_THREAD_STATE_VALUE_TERMINATED:()=>IM,JVM_THREAD_STATE_VALUE_TIMED_WAITING:()=>xM,JVM_THREAD_STATE_VALUE_WAITING:()=>DM,MESSAGETYPEVALUES_RECEIVED:()=>IR,MESSAGETYPEVALUES_SENT:()=>LR,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>oR,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>sR,MESSAGINGOPERATIONVALUES_PROCESS:()=>cR,MESSAGINGOPERATIONVALUES_RECEIVE:()=>aR,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:()=>LP,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:()=>IP,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:()=>xP,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:()=>bP,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:()=>UP,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:()=>DP,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:()=>yP,METRIC_DB_CLIENT_OPERATION_DURATION:()=>VP,METRIC_DOTNET_ASSEMBLY_COUNT:()=>vP,METRIC_DOTNET_EXCEPTIONS:()=>BP,METRIC_DOTNET_GC_COLLECTIONS:()=>wP,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:()=>GP,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:()=>HP,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:()=>FP,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:()=>YP,METRIC_DOTNET_GC_PAUSE_TIME:()=>kP,METRIC_DOTNET_JIT_COMPILATION_TIME:()=>KP,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:()=>jP,METRIC_DOTNET_JIT_COMPILED_METHODS:()=>WP,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:()=>qP,METRIC_DOTNET_PROCESS_CPU_COUNT:()=>$P,METRIC_DOTNET_PROCESS_CPU_TIME:()=>XP,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:()=>zP,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:()=>QP,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:()=>JP,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:()=>ZP,METRIC_DOTNET_TIMER_COUNT:()=>tC,METRIC_HTTP_CLIENT_REQUEST_DURATION:()=>eC,METRIC_HTTP_SERVER_REQUEST_DURATION:()=>rC,METRIC_JVM_CLASS_COUNT:()=>nC,METRIC_JVM_CLASS_LOADED:()=>oC,METRIC_JVM_CLASS_UNLOADED:()=>sC,METRIC_JVM_CPU_COUNT:()=>iC,METRIC_JVM_CPU_RECENT_UTILIZATION:()=>aC,METRIC_JVM_CPU_TIME:()=>cC,METRIC_JVM_GC_DURATION:()=>_C,METRIC_JVM_MEMORY_COMMITTED:()=>EC,METRIC_JVM_MEMORY_LIMIT:()=>uC,METRIC_JVM_MEMORY_USED:()=>TC,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:()=>SC,METRIC_JVM_THREAD_COUNT:()=>pC,METRIC_KESTREL_ACTIVE_CONNECTIONS:()=>lC,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:()=>AC,METRIC_KESTREL_CONNECTION_DURATION:()=>dC,METRIC_KESTREL_QUEUED_CONNECTIONS:()=>mC,METRIC_KESTREL_QUEUED_REQUESTS:()=>fC,METRIC_KESTREL_REJECTED_CONNECTIONS:()=>hC,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:()=>RC,METRIC_KESTREL_UPGRADED_CONNECTIONS:()=>OC,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:()=>gC,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:()=>NC,MessageTypeValues:()=>xR,MessagingDestinationKindValues:()=>iR,MessagingOperationValues:()=>_R,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>bh,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>vh,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Dh,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>kh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>yh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Vh,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Fh,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>xh,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>jh,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>Bh,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Gh,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Kh,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>wh,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Hh,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>qh,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>Yh,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>zh,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>$h,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Xh,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Wh,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Uh,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>Ph,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Ch,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>Lh,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>Nh,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Mh,NETTRANSPORTVALUES_INPROC:()=>Rh,NETTRANSPORTVALUES_IP:()=>mh,NETTRANSPORTVALUES_IP_TCP:()=>Ah,NETTRANSPORTVALUES_IP_UDP:()=>dh,NETTRANSPORTVALUES_OTHER:()=>Oh,NETTRANSPORTVALUES_PIPE:()=>hh,NETTRANSPORTVALUES_UNIX:()=>fh,NETWORK_TRANSPORT_VALUE_PIPE:()=>GM,NETWORK_TRANSPORT_VALUE_QUIC:()=>HM,NETWORK_TRANSPORT_VALUE_TCP:()=>FM,NETWORK_TRANSPORT_VALUE_UDP:()=>YM,NETWORK_TRANSPORT_VALUE_UNIX:()=>kM,NETWORK_TYPE_VALUE_IPV4:()=>jM,NETWORK_TYPE_VALUE_IPV6:()=>WM,NetHostConnectionSubtypeValues:()=>Qh,NetHostConnectionTypeValues:()=>Ih,NetTransportValues:()=>gh,OSTYPEVALUES_AIX:()=>qg,OSTYPEVALUES_DARWIN:()=>Fg,OSTYPEVALUES_DRAGONFLYBSD:()=>jg,OSTYPEVALUES_FREEBSD:()=>Yg,OSTYPEVALUES_HPUX:()=>Wg,OSTYPEVALUES_LINUX:()=>Hg,OSTYPEVALUES_NETBSD:()=>kg,OSTYPEVALUES_OPENBSD:()=>Kg,OSTYPEVALUES_SOLARIS:()=>$g,OSTYPEVALUES_WINDOWS:()=>Gg,OSTYPEVALUES_Z_OS:()=>Xg,OTEL_STATUS_CODE_VALUE_ERROR:()=>zM,OTEL_STATUS_CODE_VALUE_OK:()=>QM,OsTypeValues:()=>zg,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>hR,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>AR,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>uR,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>MR,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>pR,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>fR,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>gR,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>SR,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>lR,RPCGRPCSTATUSCODEVALUES_OK:()=>ER,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>RR,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>dR,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>mR,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>PR,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>NR,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>OR,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>TR,RpcGrpcStatusCodeValues:()=>CR,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>rm,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>pm,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>Zd,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>Xd,SEMATTRS_AWS_DYNAMODB_COUNT:()=>Tm,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>am,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>sm,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>lm,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>nm,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>zd,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>em,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>im,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>tm,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Qd,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>Jd,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>Sm,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>_m,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>Em,SEMATTRS_AWS_DYNAMODB_SELECT:()=>om,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>cm,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>$d,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>um,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>CA,SEMATTRS_CODE_FILEPATH:()=>Dd,SEMATTRS_CODE_FUNCTION:()=>Id,SEMATTRS_CODE_LINENO:()=>Ud,SEMATTRS_CODE_NAMESPACE:()=>xd,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>wA,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>kA,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>YA,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>HA,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>vA,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>BA,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>FA,SEMATTRS_DB_CASSANDRA_TABLE:()=>GA,SEMATTRS_DB_CONNECTION_STRING:()=>IA,SEMATTRS_DB_HBASE_NAMESPACE:()=>KA,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>DA,SEMATTRS_DB_MONGODB_COLLECTION:()=>WA,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>VA,SEMATTRS_DB_NAME:()=>UA,SEMATTRS_DB_OPERATION:()=>yA,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>jA,SEMATTRS_DB_SQL_TABLE:()=>qA,SEMATTRS_DB_STATEMENT:()=>bA,SEMATTRS_DB_SYSTEM:()=>LA,SEMATTRS_DB_USER:()=>xA,SEMATTRS_ENDUSER_ID:()=>Nd,SEMATTRS_ENDUSER_ROLE:()=>Md,SEMATTRS_ENDUSER_SCOPE:()=>Pd,SEMATTRS_EXCEPTION_ESCAPED:()=>QA,SEMATTRS_EXCEPTION_MESSAGE:()=>XA,SEMATTRS_EXCEPTION_STACKTRACE:()=>zA,SEMATTRS_EXCEPTION_TYPE:()=>$A,SEMATTRS_FAAS_COLDSTART:()=>id,SEMATTRS_FAAS_CRON:()=>sd,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>td,SEMATTRS_FAAS_DOCUMENT_NAME:()=>nd,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>ed,SEMATTRS_FAAS_DOCUMENT_TIME:()=>rd,SEMATTRS_FAAS_EXECUTION:()=>ZA,SEMATTRS_FAAS_INVOKED_NAME:()=>ad,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>cd,SEMATTRS_FAAS_INVOKED_REGION:()=>_d,SEMATTRS_FAAS_TIME:()=>od,SEMATTRS_FAAS_TRIGGER:()=>JA,SEMATTRS_HTTP_CLIENT_IP:()=>qd,SEMATTRS_HTTP_FLAVOR:()=>Gd,SEMATTRS_HTTP_HOST:()=>vd,SEMATTRS_HTTP_METHOD:()=>bd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>Fd,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>Yd,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>kd,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>Kd,SEMATTRS_HTTP_ROUTE:()=>Wd,SEMATTRS_HTTP_SCHEME:()=>Bd,SEMATTRS_HTTP_SERVER_NAME:()=>jd,SEMATTRS_HTTP_STATUS_CODE:()=>wd,SEMATTRS_HTTP_TARGET:()=>Vd,SEMATTRS_HTTP_URL:()=>yd,SEMATTRS_HTTP_USER_AGENT:()=>Hd,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>jm,SEMATTRS_MESSAGE_ID:()=>Km,SEMATTRS_MESSAGE_TYPE:()=>km,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>Wm,SEMATTRS_MESSAGING_CONSUMER_ID:()=>Lm,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>Nm,SEMATTRS_MESSAGING_DESTINATION:()=>dm,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>mm,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>Um,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>Dm,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>xm,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>bm,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>ym,SEMATTRS_MESSAGING_MESSAGE_ID:()=>gm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>Pm,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>Mm,SEMATTRS_MESSAGING_OPERATION:()=>Cm,SEMATTRS_MESSAGING_PROTOCOL:()=>hm,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>Rm,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>Im,SEMATTRS_MESSAGING_SYSTEM:()=>Am,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>fm,SEMATTRS_MESSAGING_URL:()=>Om,SEMATTRS_NET_HOST_CARRIER_ICC:()=>Od,SEMATTRS_NET_HOST_CARRIER_MCC:()=>hd,SEMATTRS_NET_HOST_CARRIER_MNC:()=>Rd,SEMATTRS_NET_HOST_CARRIER_NAME:()=>fd,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>md,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>dd,SEMATTRS_NET_HOST_IP:()=>pd,SEMATTRS_NET_HOST_NAME:()=>Ad,SEMATTRS_NET_HOST_PORT:()=>ld,SEMATTRS_NET_PEER_IP:()=>ud,SEMATTRS_NET_PEER_NAME:()=>Sd,SEMATTRS_NET_PEER_PORT:()=>Td,SEMATTRS_NET_TRANSPORT:()=>Ed,SEMATTRS_PEER_SERVICE:()=>gd,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>wm,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>Fm,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>Ym,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>Hm,SEMATTRS_RPC_JSONRPC_VERSION:()=>Gm,SEMATTRS_RPC_METHOD:()=>Bm,SEMATTRS_RPC_SERVICE:()=>vm,SEMATTRS_RPC_SYSTEM:()=>Vm,SEMATTRS_THREAD_ID:()=>Cd,SEMATTRS_THREAD_NAME:()=>Ld,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>BR,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>vR,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>wR,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>GR,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>HR,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>FR,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>YR,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>KR,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>kR,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>WR,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>jR,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>UR,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>yR,SEMRESATTRS_CLOUD_PLATFORM:()=>VR,SEMRESATTRS_CLOUD_PROVIDER:()=>DR,SEMRESATTRS_CLOUD_REGION:()=>bR,SEMRESATTRS_CONTAINER_ID:()=>$R,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>zR,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>QR,SEMRESATTRS_CONTAINER_NAME:()=>qR,SEMRESATTRS_CONTAINER_RUNTIME:()=>XR,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>JR,SEMRESATTRS_DEVICE_ID:()=>ZR,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>tO,SEMRESATTRS_DEVICE_MODEL_NAME:()=>eO,SEMRESATTRS_FAAS_ID:()=>nO,SEMRESATTRS_FAAS_INSTANCE:()=>sO,SEMRESATTRS_FAAS_MAX_MEMORY:()=>iO,SEMRESATTRS_FAAS_NAME:()=>rO,SEMRESATTRS_FAAS_VERSION:()=>oO,SEMRESATTRS_HOST_ARCH:()=>EO,SEMRESATTRS_HOST_ID:()=>aO,SEMRESATTRS_HOST_IMAGE_ID:()=>TO,SEMRESATTRS_HOST_IMAGE_NAME:()=>uO,SEMRESATTRS_HOST_IMAGE_VERSION:()=>SO,SEMRESATTRS_HOST_NAME:()=>cO,SEMRESATTRS_HOST_TYPE:()=>_O,SEMRESATTRS_K8S_CLUSTER_NAME:()=>pO,SEMRESATTRS_K8S_CONTAINER_NAME:()=>hO,SEMRESATTRS_K8S_CRONJOB_NAME:()=>UO,SEMRESATTRS_K8S_CRONJOB_UID:()=>DO,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>LO,SEMRESATTRS_K8S_DAEMONSET_UID:()=>CO,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>NO,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>gO,SEMRESATTRS_K8S_JOB_NAME:()=>xO,SEMRESATTRS_K8S_JOB_UID:()=>IO,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>dO,SEMRESATTRS_K8S_NODE_NAME:()=>lO,SEMRESATTRS_K8S_NODE_UID:()=>AO,SEMRESATTRS_K8S_POD_NAME:()=>fO,SEMRESATTRS_K8S_POD_UID:()=>mO,SEMRESATTRS_K8S_REPLICASET_NAME:()=>OO,SEMRESATTRS_K8S_REPLICASET_UID:()=>RO,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>PO,SEMRESATTRS_K8S_STATEFULSET_UID:()=>MO,SEMRESATTRS_OS_DESCRIPTION:()=>yO,SEMRESATTRS_OS_NAME:()=>VO,SEMRESATTRS_OS_TYPE:()=>bO,SEMRESATTRS_OS_VERSION:()=>vO,SEMRESATTRS_PROCESS_COMMAND:()=>HO,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>YO,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>FO,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>wO,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>GO,SEMRESATTRS_PROCESS_OWNER:()=>kO,SEMRESATTRS_PROCESS_PID:()=>BO,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>WO,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>KO,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>jO,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>XO,SEMRESATTRS_SERVICE_NAME:()=>qO,SEMRESATTRS_SERVICE_NAMESPACE:()=>$O,SEMRESATTRS_SERVICE_VERSION:()=>zO,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>tg,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>JO,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>QO,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>ZO,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>ng,SEMRESATTRS_WEBENGINE_NAME:()=>eg,SEMRESATTRS_WEBENGINE_VERSION:()=>rg,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:()=>nP,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:()=>oP,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:()=>sP,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:()=>aP,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:()=>cP,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:()=>_P,SemanticAttributes:()=>qm,SemanticResourceAttributes:()=>og,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>Qg,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>Jg,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>Zg,TELEMETRYSDKLANGUAGEVALUES_GO:()=>tN,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>eN,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>rN,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>nN,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>oN,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>sN,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>iN,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:()=>EP,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:()=>uP,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:()=>TP,TELEMETRY_SDK_LANGUAGE_VALUE_GO:()=>SP,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:()=>pP,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:()=>lP,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:()=>AP,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:()=>dP,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:()=>mP,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:()=>fP,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:()=>hP,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:()=>RP,TelemetrySdkLanguageValues:()=>aN});var de=F(()=>{lE();FT();YT();kT();KT()});var WT=S(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.ATTR_PROCESS_RUNTIME_NAME=void 0;Ze.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var qT=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.SDK_INFO=void 0;var PC=Ns(),tr=(de(),b(jT)),CC=WT();er.SDK_INFO={[tr.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[CC.ATTR_PROCESS_RUNTIME_NAME]:"browser",[tr.ATTR_TELEMETRY_SDK_LANGUAGE]:tr.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,[tr.ATTR_TELEMETRY_SDK_VERSION]:PC.VERSION}});var $T=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.unrefTimer=void 0;function LC(r){}rr.unrefTimer=LC});var kn=S(D=>{"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.unrefTimer=D.SDK_INFO=D.otperformance=D._globalThis=D.getStringListFromEnv=D.getNumberFromEnv=D.getBooleanFromEnv=D.getStringFromEnv=void 0;var nr=Rs();Object.defineProperty(D,"getStringFromEnv",{enumerable:!0,get:function(){return nr.getStringFromEnv}});Object.defineProperty(D,"getBooleanFromEnv",{enumerable:!0,get:function(){return nr.getBooleanFromEnv}});Object.defineProperty(D,"getNumberFromEnv",{enumerable:!0,get:function(){return nr.getNumberFromEnv}});Object.defineProperty(D,"getStringListFromEnv",{enumerable:!0,get:function(){return nr.getStringListFromEnv}});var IC=Os();Object.defineProperty(D,"_globalThis",{enumerable:!0,get:function(){return IC._globalThis}});var xC=gs();Object.defineProperty(D,"otperformance",{enumerable:!0,get:function(){return xC.otperformance}});var DC=qT();Object.defineProperty(D,"SDK_INFO",{enumerable:!0,get:function(){return DC.SDK_INFO}});var UC=$T();Object.defineProperty(D,"unrefTimer",{enumerable:!0,get:function(){return UC.unrefTimer}})});var JT=S(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.addHrTimes=g.isTimeInput=g.isTimeInputHrTime=g.hrTimeToMicroseconds=g.hrTimeToMilliseconds=g.hrTimeToNanoseconds=g.hrTimeToTimeStamp=g.hrTimeDuration=g.timeInputToHrTime=g.hrTime=g.getTimeOrigin=g.millisToHrTime=void 0;var Kn=kn(),XT=9,bC=6,yC=Math.pow(10,bC),or=Math.pow(10,XT);function me(r){let t=r/1e3,e=Math.trunc(t),n=Math.round(r%1e3*yC);return[e,n]}g.millisToHrTime=me;function jn(){let r=Kn.otperformance.timeOrigin;if(typeof r!="number"){let t=Kn.otperformance;r=t.timing&&t.timing.fetchStart}return r}g.getTimeOrigin=jn;function zT(r){let t=me(jn()),e=me(typeof r=="number"?r:Kn.otperformance.now());return QT(t,e)}g.hrTime=zT;function VC(r){if(Wn(r))return r;if(typeof r=="number")return r<jn()?zT(r):me(r);if(r instanceof Date)return me(r.getTime());throw TypeError("Invalid input type")}g.timeInputToHrTime=VC;function vC(r,t){let e=t[0]-r[0],n=t[1]-r[1];return n<0&&(e-=1,n+=or),[e,n]}g.hrTimeDuration=vC;function BC(r){let t=XT,e=`${"0".repeat(t)}${r[1]}Z`,n=e.substring(e.length-t-1);return new Date(r[0]*1e3).toISOString().replace("000Z",n)}g.hrTimeToTimeStamp=BC;function wC(r){return r[0]*or+r[1]}g.hrTimeToNanoseconds=wC;function GC(r){return r[0]*1e3+r[1]/1e6}g.hrTimeToMilliseconds=GC;function HC(r){return r[0]*1e6+r[1]/1e3}g.hrTimeToMicroseconds=HC;function Wn(r){return Array.isArray(r)&&r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"}g.isTimeInputHrTime=Wn;function FC(r){return Wn(r)||typeof r=="number"||r instanceof Date}g.isTimeInput=FC;function QT(r,t){let e=[r[0]+t[0],r[1]+t[1]];return e[1]>=or&&(e[1]-=or,e[0]+=1),e}g.addHrTimes=QT});var ZT=S(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.ExportResultCode=void 0;var YC;(function(r){r[r.SUCCESS=0]="SUCCESS",r[r.FAILED=1]="FAILED"})(YC=fe.ExportResultCode||(fe.ExportResultCode={}))});var eS=S(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});sr.CompositePropagator=void 0;var tS=(d(),b(c)),qn=class{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(e=>typeof e.fields=="function"?e.fields():[]).reduce((e,n)=>e.concat(n),[])))}inject(t,e,n){for(let o of this._propagators)try{o.inject(t,e,n)}catch(s){tS.diag.warn(`Failed to inject with ${o.constructor.name}. Err: ${s.message}`)}}extract(t,e,n){return this._propagators.reduce((o,s)=>{try{return s.extract(o,e,n)}catch(i){tS.diag.warn(`Failed to extract with ${s.constructor.name}. Err: ${i.message}`)}return o},t)}fields(){return this._fields.slice()}};sr.CompositePropagator=qn});var rS=S(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.validateValue=Ft.validateKey=void 0;var $n="[_0-9a-z-*/]",kC=`[a-z]${$n}{0,255}`,KC=`[a-z0-9]${$n}{0,240}@[a-z]${$n}{0,13}`,jC=new RegExp(`^(?:${kC}|${KC})$`),WC=/^[ -~]{0,255}[!-~]$/,qC=/,|=/;function $C(r){return jC.test(r)}Ft.validateKey=$C;function XC(r){return WC.test(r)&&!qC.test(r)}Ft.validateValue=XC});var zn=S(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.TraceState=void 0;var nS=rS(),oS=32,zC=512,sS=",",iS="=",Xn=class r{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,e){let n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n}unset(t){let e=this._clone();return e._internalState.delete(t),e}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,e)=>(t.push(e+iS+this.get(e)),t),[]).join(sS)}_parse(t){t.length>zC||(this._internalState=t.split(sS).reverse().reduce((e,n)=>{let o=n.trim(),s=o.indexOf(iS);if(s!==-1){let i=o.slice(0,s),a=o.slice(s+1,n.length);(0,nS.validateKey)(i)&&(0,nS.validateValue)(a)&&e.set(i,a)}return e},new Map),this._internalState.size>oS&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,oS))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let t=new r;return t._internalState=new Map(this._internalState),t}};ir.TraceState=Xn});var cS=S(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.W3CTraceContextPropagator=V.parseTraceParent=V.TRACE_STATE_HEADER=V.TRACE_PARENT_HEADER=void 0;var ar=(d(),b(c)),QC=Se(),JC=zn();V.TRACE_PARENT_HEADER="traceparent";V.TRACE_STATE_HEADER="tracestate";var ZC="00",tL="(?!ff)[\\da-f]{2}",eL="(?![0]{32})[\\da-f]{32}",rL="(?![0]{16})[\\da-f]{16}",nL="[\\da-f]{2}",oL=new RegExp(`^\\s?(${tL})-(${eL})-(${rL})-(${nL})(-.*)?\\s?$`);function aS(r){let t=oL.exec(r);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}V.parseTraceParent=aS;var Qn=class{inject(t,e,n){let o=ar.trace.getSpanContext(t);if(!o||(0,QC.isTracingSuppressed)(t)||!(0,ar.isSpanContextValid)(o))return;let s=`${ZC}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||ar.TraceFlags.NONE).toString(16)}`;n.set(e,V.TRACE_PARENT_HEADER,s),o.traceState&&n.set(e,V.TRACE_STATE_HEADER,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,V.TRACE_PARENT_HEADER);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=aS(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,V.TRACE_STATE_HEADER);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=new JC.TraceState(typeof _=="string"?_:void 0)}return ar.trace.setSpanContext(t,i)}fields(){return[V.TRACE_PARENT_HEADER,V.TRACE_STATE_HEADER]}};V.W3CTraceContextPropagator=Qn});var _S=S(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.getRPCMetadata=tt.deleteRPCMetadata=tt.setRPCMetadata=tt.RPCType=void 0;var sL=(d(),b(c)),Jn=(0,sL.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),iL;(function(r){r.HTTP="http"})(iL=tt.RPCType||(tt.RPCType={}));function aL(r,t){return r.setValue(Jn,t)}tt.setRPCMetadata=aL;function cL(r){return r.deleteValue(Jn)}tt.deleteRPCMetadata=cL;function _L(r){return r.getValue(Jn)}tt.getRPCMetadata=_L});var pS=S(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.isPlainObject=void 0;var EL="[object Object]",uL="[object Null]",TL="[object Undefined]",SL=Function.prototype,ES=SL.toString,pL=ES.call(Object),lL=Object.getPrototypeOf,uS=Object.prototype,TS=uS.hasOwnProperty,Dt=Symbol?Symbol.toStringTag:void 0,SS=uS.toString;function AL(r){if(!dL(r)||mL(r)!==EL)return!1;let t=lL(r);if(t===null)return!0;let e=TS.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&ES.call(e)===pL}cr.isPlainObject=AL;function dL(r){return r!=null&&typeof r=="object"}function mL(r){return r==null?r===void 0?TL:uL:Dt&&Dt in Object(r)?fL(r):hL(r)}function fL(r){let t=TS.call(r,Dt),e=r[Dt],n=!1;try{r[Dt]=void 0,n=!0}catch{}let o=SS.call(r);return n&&(t?r[Dt]=e:delete r[Dt]),o}function hL(r){return SS.call(r)}});var fS=S(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.merge=void 0;var lS=pS(),RL=20;function OL(...r){let t=r.shift(),e=new WeakMap;for(;r.length>0;)t=dS(t,r.shift(),0,e);return t}ur.merge=OL;function Zn(r){return Er(r)?r.slice():r}function dS(r,t,e=0,n){let o;if(!(e>RL)){if(e++,_r(r)||_r(t)||mS(t))o=Zn(t);else if(Er(r)){if(o=r.slice(),Er(t))for(let s=0,i=t.length;s<i;s++)o.push(Zn(t[s]));else if(he(t)){let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i];o[_]=Zn(t[_])}}}else if(he(r))if(he(t)){if(!gL(r,t))return t;o=Object.assign({},r);let s=Object.keys(t);for(let i=0,a=s.length;i<a;i++){let _=s[i],E=t[_];if(_r(E))typeof E>"u"?delete o[_]:o[_]=E;else{let T=o[_],l=E;if(AS(r,_,n)||AS(t,_,n))delete o[_];else{if(he(T)&&he(l)){let A=n.get(T)||[],h=n.get(l)||[];A.push({obj:r,key:_}),h.push({obj:t,key:_}),n.set(T,A),n.set(l,h)}o[_]=dS(o[_],E,e,n)}}}}else o=t;return o}}function AS(r,t,e){let n=e.get(r[t])||[];for(let o=0,s=n.length;o<s;o++){let i=n[o];if(i.key===t&&i.obj===r)return!0}return!1}function Er(r){return Array.isArray(r)}function mS(r){return typeof r=="function"}function he(r){return!_r(r)&&!Er(r)&&!mS(r)&&typeof r=="object"}function _r(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r>"u"||r instanceof Date||r instanceof RegExp||r===null}function gL(r,t){return!(!(0,lS.isPlainObject)(r)||!(0,lS.isPlainObject)(t))}});var hS=S(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.callWithTimeout=Yt.TimeoutError=void 0;var Tr=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};Yt.TimeoutError=Tr;function NL(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new Tr("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}Yt.callWithTimeout=NL});var OS=S(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.isUrlIgnored=kt.urlMatches=void 0;function RS(r,t){return typeof t=="string"?r===t:!!r.match(t)}kt.urlMatches=RS;function ML(r,t){if(!t)return!1;for(let e of t)if(RS(r,e))return!0;return!1}kt.isUrlIgnored=ML});var gS=S(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.Deferred=void 0;var to=class{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}};Sr.Deferred=to});var NS=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.BindOnceFuture=void 0;var PL=gS(),eo=class{_callback;_that;_isCalled=!1;_deferred=new PL.Deferred;constructor(t,e){this._callback=t,this._that=e}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}};pr.BindOnceFuture=eo});var PS=S(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.diagLogLevelFromString=void 0;var pt=(d(),b(c)),MS={ALL:pt.DiagLogLevel.ALL,VERBOSE:pt.DiagLogLevel.VERBOSE,DEBUG:pt.DiagLogLevel.DEBUG,INFO:pt.DiagLogLevel.INFO,WARN:pt.DiagLogLevel.WARN,ERROR:pt.DiagLogLevel.ERROR,NONE:pt.DiagLogLevel.NONE};function CL(r){if(r==null)return;let t=MS[r.toUpperCase()];return t??(pt.diag.warn(`Unknown log level "${r}", expected one of ${Object.keys(MS)}, using default`),pt.DiagLogLevel.INFO)}lr.diagLogLevelFromString=CL});var LS=S(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar._export=void 0;var CS=(d(),b(c)),LL=Se();function IL(r,t){return new Promise(e=>{CS.context.with((0,LL.suppressTracing)(CS.context.active()),()=>{r.export(t,n=>{e(n)})})})}Ar._export=IL});var P=S(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.internal=u.diagLogLevelFromString=u.BindOnceFuture=u.urlMatches=u.isUrlIgnored=u.callWithTimeout=u.TimeoutError=u.merge=u.TraceState=u.unsuppressTracing=u.suppressTracing=u.isTracingSuppressed=u.setRPCMetadata=u.getRPCMetadata=u.deleteRPCMetadata=u.RPCType=u.parseTraceParent=u.W3CTraceContextPropagator=u.TRACE_STATE_HEADER=u.TRACE_PARENT_HEADER=u.CompositePropagator=u.unrefTimer=u.otperformance=u.getStringListFromEnv=u.getNumberFromEnv=u.getBooleanFromEnv=u.getStringFromEnv=u._globalThis=u.SDK_INFO=u.parseKeyPairsIntoRecord=u.ExportResultCode=u.timeInputToHrTime=u.millisToHrTime=u.isTimeInputHrTime=u.isTimeInput=u.hrTimeToTimeStamp=u.hrTimeToNanoseconds=u.hrTimeToMilliseconds=u.hrTimeToMicroseconds=u.hrTimeDuration=u.hrTime=u.getTimeOrigin=u.addHrTimes=u.loggingErrorHandler=u.setGlobalErrorHandler=u.globalErrorHandler=u.sanitizeAttributes=u.isAttributeValue=u.AnchoredClock=u.W3CBaggagePropagator=void 0;var xL=Ts();Object.defineProperty(u,"W3CBaggagePropagator",{enumerable:!0,get:function(){return xL.W3CBaggagePropagator}});var DL=Ss();Object.defineProperty(u,"AnchoredClock",{enumerable:!0,get:function(){return DL.AnchoredClock}});var IS=ms();Object.defineProperty(u,"isAttributeValue",{enumerable:!0,get:function(){return IS.isAttributeValue}});Object.defineProperty(u,"sanitizeAttributes",{enumerable:!0,get:function(){return IS.sanitizeAttributes}});var xS=hs();Object.defineProperty(u,"globalErrorHandler",{enumerable:!0,get:function(){return xS.globalErrorHandler}});Object.defineProperty(u,"setGlobalErrorHandler",{enumerable:!0,get:function(){return xS.setGlobalErrorHandler}});var UL=Hn();Object.defineProperty(u,"loggingErrorHandler",{enumerable:!0,get:function(){return UL.loggingErrorHandler}});var Y=JT();Object.defineProperty(u,"addHrTimes",{enumerable:!0,get:function(){return Y.addHrTimes}});Object.defineProperty(u,"getTimeOrigin",{enumerable:!0,get:function(){return Y.getTimeOrigin}});Object.defineProperty(u,"hrTime",{enumerable:!0,get:function(){return Y.hrTime}});Object.defineProperty(u,"hrTimeDuration",{enumerable:!0,get:function(){return Y.hrTimeDuration}});Object.defineProperty(u,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return Y.hrTimeToMicroseconds}});Object.defineProperty(u,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return Y.hrTimeToMilliseconds}});Object.defineProperty(u,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return Y.hrTimeToNanoseconds}});Object.defineProperty(u,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return Y.hrTimeToTimeStamp}});Object.defineProperty(u,"isTimeInput",{enumerable:!0,get:function(){return Y.isTimeInput}});Object.defineProperty(u,"isTimeInputHrTime",{enumerable:!0,get:function(){return Y.isTimeInputHrTime}});Object.defineProperty(u,"millisToHrTime",{enumerable:!0,get:function(){return Y.millisToHrTime}});Object.defineProperty(u,"timeInputToHrTime",{enumerable:!0,get:function(){return Y.timeInputToHrTime}});var bL=ZT();Object.defineProperty(u,"ExportResultCode",{enumerable:!0,get:function(){return bL.ExportResultCode}});var yL=Vn();Object.defineProperty(u,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return yL.parseKeyPairsIntoRecord}});var ht=kn();Object.defineProperty(u,"SDK_INFO",{enumerable:!0,get:function(){return ht.SDK_INFO}});Object.defineProperty(u,"_globalThis",{enumerable:!0,get:function(){return ht._globalThis}});Object.defineProperty(u,"getStringFromEnv",{enumerable:!0,get:function(){return ht.getStringFromEnv}});Object.defineProperty(u,"getBooleanFromEnv",{enumerable:!0,get:function(){return ht.getBooleanFromEnv}});Object.defineProperty(u,"getNumberFromEnv",{enumerable:!0,get:function(){return ht.getNumberFromEnv}});Object.defineProperty(u,"getStringListFromEnv",{enumerable:!0,get:function(){return ht.getStringListFromEnv}});Object.defineProperty(u,"otperformance",{enumerable:!0,get:function(){return ht.otperformance}});Object.defineProperty(u,"unrefTimer",{enumerable:!0,get:function(){return ht.unrefTimer}});var VL=eS();Object.defineProperty(u,"CompositePropagator",{enumerable:!0,get:function(){return VL.CompositePropagator}});var dr=cS();Object.defineProperty(u,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return dr.TRACE_PARENT_HEADER}});Object.defineProperty(u,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return dr.TRACE_STATE_HEADER}});Object.defineProperty(u,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return dr.W3CTraceContextPropagator}});Object.defineProperty(u,"parseTraceParent",{enumerable:!0,get:function(){return dr.parseTraceParent}});var mr=_S();Object.defineProperty(u,"RPCType",{enumerable:!0,get:function(){return mr.RPCType}});Object.defineProperty(u,"deleteRPCMetadata",{enumerable:!0,get:function(){return mr.deleteRPCMetadata}});Object.defineProperty(u,"getRPCMetadata",{enumerable:!0,get:function(){return mr.getRPCMetadata}});Object.defineProperty(u,"setRPCMetadata",{enumerable:!0,get:function(){return mr.setRPCMetadata}});var ro=Se();Object.defineProperty(u,"isTracingSuppressed",{enumerable:!0,get:function(){return ro.isTracingSuppressed}});Object.defineProperty(u,"suppressTracing",{enumerable:!0,get:function(){return ro.suppressTracing}});Object.defineProperty(u,"unsuppressTracing",{enumerable:!0,get:function(){return ro.unsuppressTracing}});var vL=zn();Object.defineProperty(u,"TraceState",{enumerable:!0,get:function(){return vL.TraceState}});var BL=fS();Object.defineProperty(u,"merge",{enumerable:!0,get:function(){return BL.merge}});var DS=hS();Object.defineProperty(u,"TimeoutError",{enumerable:!0,get:function(){return DS.TimeoutError}});Object.defineProperty(u,"callWithTimeout",{enumerable:!0,get:function(){return DS.callWithTimeout}});var US=OS();Object.defineProperty(u,"isUrlIgnored",{enumerable:!0,get:function(){return US.isUrlIgnored}});Object.defineProperty(u,"urlMatches",{enumerable:!0,get:function(){return US.urlMatches}});var wL=NS();Object.defineProperty(u,"BindOnceFuture",{enumerable:!0,get:function(){return wL.BindOnceFuture}});var GL=PS();Object.defineProperty(u,"diagLogLevelFromString",{enumerable:!0,get:function(){return GL.diagLogLevelFromString}});var HL=LS();u.internal={_export:HL._export}});var oe={};import*as xV from"async_hooks";var Uo=F(()=>{Z(oe,xV)});var Ve={};import*as DV from"events";var Tp=F(()=>{Z(Ve,DV)});var yo=S(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.AbstractAsyncHooksContextManager=void 0;var cI=(Tp(),b(Ve)),_I=["addListener","on","once","prependListener","prependOnceListener"],bo=class{bind(t,e){return e instanceof cI.EventEmitter?this._bindEventEmitter(t,e):typeof e=="function"?this._bindFunction(t,e):e}_bindFunction(t,e){let n=this,o=function(...s){return n.with(t,()=>e.apply(this,s))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:e.length}),o}_bindEventEmitter(t,e){return this._getPatchMap(e)!==void 0||(this._createPatchMap(e),_I.forEach(o=>{e[o]!==void 0&&(e[o]=this._patchAddListener(e,e[o],t))}),typeof e.removeListener=="function"&&(e.removeListener=this._patchRemoveListener(e,e.removeListener)),typeof e.off=="function"&&(e.off=this._patchRemoveListener(e,e.off)),typeof e.removeAllListeners=="function"&&(e.removeAllListeners=this._patchRemoveAllListeners(e,e.removeAllListeners))),e}_patchRemoveListener(t,e){let n=this;return function(o,s){let i=n._getPatchMap(t)?.[o];if(i===void 0)return e.call(this,o,s);let a=i.get(s);return e.call(this,o,a||s)}}_patchRemoveAllListeners(t,e){let n=this;return function(o){let s=n._getPatchMap(t);return s!==void 0&&(arguments.length===0?n._createPatchMap(t):s[o]!==void 0&&delete s[o]),e.apply(this,arguments)}}_patchAddListener(t,e,n){let o=this;return function(s,i){if(o._wrapped)return e.call(this,s,i);let a=o._getPatchMap(t);a===void 0&&(a=o._createPatchMap(t));let _=a[s];_===void 0&&(_=new WeakMap,a[s]=_);let E=o.bind(n,i);_.set(i,E),o._wrapped=!0;try{return e.call(this,s,E)}finally{o._wrapped=!1}}}_createPatchMap(t){let e=Object.create(null);return t[this._kOtListeners]=e,e}_getPatchMap(t){return t[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1};pn.AbstractAsyncHooksContextManager=bo});var Sp=S(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.AsyncHooksContextManager=void 0;var EI=(d(),b(c)),uI=(Uo(),b(oe)),TI=yo(),Vo=class extends TI.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super(),this._asyncHook=uI.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??EI.ROOT_CONTEXT}with(t,e,n,...o){this._enterContext(t);try{return e.call(n,...o)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(t,e){if(e==="TIMERWRAP")return;let n=this._stack[this._stack.length-1];n!==void 0&&this._contexts.set(t,n)}_destroy(t){this._contexts.delete(t)}_before(t){let e=this._contexts.get(t);e!==void 0&&this._enterContext(e)}_after(){this._exitContext()}_enterContext(t){this._stack.push(t)}_exitContext(){this._stack.pop()}};ln.AsyncHooksContextManager=Vo});var pp=S(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.AsyncLocalStorageContextManager=void 0;var SI=(d(),b(c)),pI=(Uo(),b(oe)),lI=yo(),vo=class extends lI.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super(),this._asyncLocalStorage=new pI.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??SI.ROOT_CONTEXT}with(t,e,n,...o){let s=n==null?e:e.bind(n);return this._asyncLocalStorage.run(t,s,...o)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};An.AsyncLocalStorageContextManager=vo});var lp=S(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.AsyncLocalStorageContextManager=se.AsyncHooksContextManager=void 0;var AI=Sp();Object.defineProperty(se,"AsyncHooksContextManager",{enumerable:!0,get:function(){return AI.AsyncHooksContextManager}});var dI=pp();Object.defineProperty(se,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return dI.AsyncLocalStorageContextManager}})});var Lp=S($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.toAnyValue=$.toKeyValue=$.toAttributes=$.createInstrumentationScope=$.createResource=void 0;function gI(r){let t={attributes:Cp(r.attributes),droppedAttributesCount:0},e=r.schemaUrl;return e&&e!==""&&(t.schemaUrl=e),t}$.createResource=gI;function NI(r){return{name:r.name,version:r.version}}$.createInstrumentationScope=NI;function Cp(r){return Object.keys(r).map(t=>Ho(t,r[t]))}$.toAttributes=Cp;function Ho(r,t){return{key:r,value:Fo(t)}}$.toKeyValue=Ho;function Fo(r){let t=typeof r;return t==="string"?{stringValue:r}:t==="number"?Number.isInteger(r)?{intValue:r}:{doubleValue:r}:t==="boolean"?{boolValue:r}:r instanceof Uint8Array?{bytesValue:r}:Array.isArray(r)?{arrayValue:{values:r.map(Fo)}}:t==="object"&&r!=null?{kvlistValue:{values:Object.entries(r).map(([e,n])=>Ho(e,n))}}:{}}$.toAnyValue=Fo});var xp=S(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.hexToBinary=void 0;function Ip(r){return r>=48&&r<=57?r-48:r>=97&&r<=102?r-87:r-55}function MI(r){let t=new Uint8Array(r.length/2),e=0;for(let n=0;n<r.length;n+=2){let o=Ip(r.charCodeAt(n)),s=Ip(r.charCodeAt(n+1));t[e++]=o<<4|s}return t}hn.hexToBinary=MI});var Vp=S(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.getOtlpEncoder=X.encodeAsString=X.encodeAsLongBits=X.toLongBits=X.hrTimeToNanos=void 0;var PI=P(),Yo=xp();function ko(r){let t=BigInt(1e9);return BigInt(r[0])*t+BigInt(r[1])}X.hrTimeToNanos=ko;function Up(r){let t=Number(BigInt.asUintN(32,r)),e=Number(BigInt.asUintN(32,r>>BigInt(32)));return{low:t,high:e}}X.toLongBits=Up;function Ko(r){let t=ko(r);return Up(t)}X.encodeAsLongBits=Ko;function bp(r){return ko(r).toString()}X.encodeAsString=bp;var CI=typeof BigInt<"u"?bp:PI.hrTimeToNanoseconds;function Dp(r){return r}function yp(r){if(r!==void 0)return(0,Yo.hexToBinary)(r)}var LI={encodeHrTime:Ko,encodeSpanContext:Yo.hexToBinary,encodeOptionalSpanContext:yp};function II(r){if(r===void 0)return LI;let t=r.useLongBits??!0,e=r.useHex??!1;return{encodeHrTime:t?Ko:CI,encodeSpanContext:e?Dp:Yo.hexToBinary,encodeOptionalSpanContext:e?Dp:yp}}X.getOtlpEncoder=II});var jo=S(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.createExportTraceServiceRequest=Tt.toOtlpSpanEvent=Tt.toOtlpLink=Tt.sdkSpanToOtlpSpan=void 0;var ve=Lp(),xI=Vp();function vp(r,t){let e=r.spanContext(),n=r.status,o=r.parentSpanContext?.spanId?t.encodeSpanContext(r.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(e.traceId),spanId:t.encodeSpanContext(e.spanId),parentSpanId:o,traceState:e.traceState?.serialize(),name:r.name,kind:r.kind==null?0:r.kind+1,startTimeUnixNano:t.encodeHrTime(r.startTime),endTimeUnixNano:t.encodeHrTime(r.endTime),attributes:(0,ve.toAttributes)(r.attributes),droppedAttributesCount:r.droppedAttributesCount,events:r.events.map(s=>wp(s,t)),droppedEventsCount:r.droppedEventsCount,status:{code:n.code,message:n.message},links:r.links.map(s=>Bp(s,t)),droppedLinksCount:r.droppedLinksCount}}Tt.sdkSpanToOtlpSpan=vp;function Bp(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],spanId:t.encodeSpanContext(r.context.spanId),traceId:t.encodeSpanContext(r.context.traceId),traceState:r.context.traceState?.serialize(),droppedAttributesCount:r.droppedAttributesCount||0}}Tt.toOtlpLink=Bp;function wp(r,t){return{attributes:r.attributes?(0,ve.toAttributes)(r.attributes):[],name:r.name,timeUnixNano:t.encodeHrTime(r.time),droppedAttributesCount:r.droppedAttributesCount||0}}Tt.toOtlpSpanEvent=wp;function DI(r,t){let e=(0,xI.getOtlpEncoder)(t);return{resourceSpans:bI(r,e)}}Tt.createExportTraceServiceRequest=DI;function UI(r){let t=new Map;for(let e of r){let n=t.get(e.resource);n||(n=new Map,t.set(e.resource,n));let o=`${e.instrumentationScope.name}@${e.instrumentationScope.version||""}:${e.instrumentationScope.schemaUrl||""}`,s=n.get(o);s||(s=[],n.set(o,s)),s.push(e)}return t}function bI(r,t){let e=UI(r),n=[],o=e.entries(),s=o.next();for(;!s.done;){let[i,a]=s.value,_=[],E=a.values(),T=E.next();for(;!T.done;){let h=T.value;if(h.length>0){let R=h.map(I=>vp(I,t));_.push({scope:(0,ve.createInstrumentationScope)(h[0].instrumentationScope),spans:R,schemaUrl:h[0].instrumentationScope.schemaUrl})}T=E.next()}let l=(0,ve.createResource)(i),A={resource:l,scopeSpans:_,schemaUrl:l.schemaUrl};n.push(A),s=o.next()}return n}});var Wo=S(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.JsonTraceSerializer=void 0;var yI=jo();Rn.JsonTraceSerializer={serializeRequest:r=>{let t=(0,yI.createExportTraceServiceRequest)(r,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:r=>{if(r.length===0)return{};let t=new TextDecoder;return JSON.parse(t.decode(r))}}});var Fp=S((av,Hp)=>{"use strict";Hp.exports=BI;function BI(r,t){for(var e=new Array(arguments.length-1),n=0,o=2,s=!0;o<arguments.length;)e[n++]=arguments[o++];return new Promise(function(a,_){e[n]=function(T){if(s)if(s=!1,T)_(T);else{for(var l=new Array(arguments.length-1),A=0;A<l.length;)l[A++]=arguments[A];a.apply(null,l)}};try{r.apply(t||null,e)}catch(E){s&&(s=!1,_(E))}})}});var jp=S(Kp=>{"use strict";var gn=Kp;gn.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&t.charAt(e)==="=";)++n;return Math.ceil(t.length*3)/4-n};var _e=new Array(64),kp=new Array(123);for(et=0;et<64;)kp[_e[et]=et<26?et+65:et<52?et+71:et<62?et-4:et-59|43]=et++;var et;gn.encode=function(t,e,n){for(var o=null,s=[],i=0,a=0,_;e<n;){var E=t[e++];switch(a){case 0:s[i++]=_e[E>>2],_=(E&3)<<4,a=1;break;case 1:s[i++]=_e[_|E>>4],_=(E&15)<<2,a=2;break;case 2:s[i++]=_e[_|E>>6],s[i++]=_e[E&63],a=0;break}i>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),i=0)}return a&&(s[i++]=_e[_],s[i++]=61,a===1&&(s[i++]=61)),o?(i&&o.push(String.fromCharCode.apply(String,s.slice(0,i))),o.join("")):String.fromCharCode.apply(String,s.slice(0,i))};var Yp="invalid encoding";gn.decode=function(t,e,n){for(var o=n,s=0,i,a=0;a<t.length;){var _=t.charCodeAt(a++);if(_===61&&s>1)break;if((_=kp[_])===void 0)throw Error(Yp);switch(s){case 0:i=_,s=1;break;case 1:e[n++]=i<<2|(_&48)>>4,i=_,s=2;break;case 2:e[n++]=(i&15)<<4|(_&60)>>2,i=_,s=3;break;case 3:e[n++]=(i&3)<<6|_,s=0;break}}if(s===1)throw Error(Yp);return n-o};gn.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}});var qp=S((_v,Wp)=>{"use strict";Wp.exports=Nn;function Nn(){this._listeners={}}Nn.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this};Nn.prototype.off=function(t,e){if(t===void 0)this._listeners={};else if(e===void 0)this._listeners[t]=[];else for(var n=this._listeners[t],o=0;o<n.length;)n[o].fn===e?n.splice(o,1):++o;return this};Nn.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var n=[],o=1;o<arguments.length;)n.push(arguments[o++]);for(o=0;o<e.length;)e[o].fn.apply(e[o++].ctx,n)}return this}});var tl=S((Ev,Zp)=>{"use strict";Zp.exports=$p($p);function $p(r){return typeof Float32Array<"u"?function(){var t=new Float32Array([-0]),e=new Uint8Array(t.buffer),n=e[3]===128;function o(_,E,T){t[0]=_,E[T]=e[0],E[T+1]=e[1],E[T+2]=e[2],E[T+3]=e[3]}function s(_,E,T){t[0]=_,E[T]=e[3],E[T+1]=e[2],E[T+2]=e[1],E[T+3]=e[0]}r.writeFloatLE=n?o:s,r.writeFloatBE=n?s:o;function i(_,E){return e[0]=_[E],e[1]=_[E+1],e[2]=_[E+2],e[3]=_[E+3],t[0]}function a(_,E){return e[3]=_[E],e[2]=_[E+1],e[1]=_[E+2],e[0]=_[E+3],t[0]}r.readFloatLE=n?i:a,r.readFloatBE=n?a:i}():function(){function t(n,o,s,i){var a=o<0?1:0;if(a&&(o=-o),o===0)n(1/o>0?0:2147483648,s,i);else if(isNaN(o))n(2143289344,s,i);else if(o>34028234663852886e22)n((a<<31|2139095040)>>>0,s,i);else if(o<11754943508222875e-54)n((a<<31|Math.round(o/1401298464324817e-60))>>>0,s,i);else{var _=Math.floor(Math.log(o)/Math.LN2),E=Math.round(o*Math.pow(2,-_)*8388608)&8388607;n((a<<31|_+127<<23|E)>>>0,s,i)}}r.writeFloatLE=t.bind(null,Xp),r.writeFloatBE=t.bind(null,zp);function e(n,o,s){var i=n(o,s),a=(i>>31)*2+1,_=i>>>23&255,E=i&8388607;return _===255?E?NaN:a*(1/0):_===0?a*1401298464324817e-60*E:a*Math.pow(2,_-150)*(E+8388608)}r.readFloatLE=e.bind(null,Qp),r.readFloatBE=e.bind(null,Jp)}(),typeof Float64Array<"u"?function(){var t=new Float64Array([-0]),e=new Uint8Array(t.buffer),n=e[7]===128;function o(_,E,T){t[0]=_,E[T]=e[0],E[T+1]=e[1],E[T+2]=e[2],E[T+3]=e[3],E[T+4]=e[4],E[T+5]=e[5],E[T+6]=e[6],E[T+7]=e[7]}function s(_,E,T){t[0]=_,E[T]=e[7],E[T+1]=e[6],E[T+2]=e[5],E[T+3]=e[4],E[T+4]=e[3],E[T+5]=e[2],E[T+6]=e[1],E[T+7]=e[0]}r.writeDoubleLE=n?o:s,r.writeDoubleBE=n?s:o;function i(_,E){return e[0]=_[E],e[1]=_[E+1],e[2]=_[E+2],e[3]=_[E+3],e[4]=_[E+4],e[5]=_[E+5],e[6]=_[E+6],e[7]=_[E+7],t[0]}function a(_,E){return e[7]=_[E],e[6]=_[E+1],e[5]=_[E+2],e[4]=_[E+3],e[3]=_[E+4],e[2]=_[E+5],e[1]=_[E+6],e[0]=_[E+7],t[0]}r.readDoubleLE=n?i:a,r.readDoubleBE=n?a:i}():function(){function t(n,o,s,i,a,_){var E=i<0?1:0;if(E&&(i=-i),i===0)n(0,a,_+o),n(1/i>0?0:2147483648,a,_+s);else if(isNaN(i))n(0,a,_+o),n(2146959360,a,_+s);else if(i>17976931348623157e292)n(0,a,_+o),n((E<<31|2146435072)>>>0,a,_+s);else{var T;if(i<22250738585072014e-324)T=i/5e-324,n(T>>>0,a,_+o),n((E<<31|T/4294967296)>>>0,a,_+s);else{var l=Math.floor(Math.log(i)/Math.LN2);l===1024&&(l=1023),T=i*Math.pow(2,-l),n(T*4503599627370496>>>0,a,_+o),n((E<<31|l+1023<<20|T*1048576&1048575)>>>0,a,_+s)}}}r.writeDoubleLE=t.bind(null,Xp,0,4),r.writeDoubleBE=t.bind(null,zp,4,0);function e(n,o,s,i,a){var _=n(i,a+o),E=n(i,a+s),T=(E>>31)*2+1,l=E>>>20&2047,A=4294967296*(E&1048575)+_;return l===2047?A?NaN:T*(1/0):l===0?T*5e-324*A:T*Math.pow(2,l-1075)*(A+4503599627370496)}r.readDoubleLE=e.bind(null,Qp,0,4),r.readDoubleBE=e.bind(null,Jp,4,0)}(),r}function Xp(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}function zp(r,t,e){t[e]=r>>>24,t[e+1]=r>>>16&255,t[e+2]=r>>>8&255,t[e+3]=r&255}function Qp(r,t){return(r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24)>>>0}function Jp(r,t){return(r[t]<<24|r[t+1]<<16|r[t+2]<<8|r[t+3])>>>0}});var rl=S((uv,el)=>{"use strict";el.exports=wI;function wI(r){return null}});var ol=S(nl=>{"use strict";var $o=nl;$o.length=function(t){for(var e=0,n=0,o=0;o<t.length;++o)n=t.charCodeAt(o),n<128?e+=1:n<2048?e+=2:(n&64512)===55296&&(t.charCodeAt(o+1)&64512)===56320?(++o,e+=4):e+=3;return e};$o.read=function(t,e,n){var o=n-e;if(o<1)return"";for(var s=null,i=[],a=0,_;e<n;)_=t[e++],_<128?i[a++]=_:_>191&&_<224?i[a++]=(_&31)<<6|t[e++]&63:_>239&&_<365?(_=((_&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,i[a++]=55296+(_>>10),i[a++]=56320+(_&1023)):i[a++]=(_&15)<<12|(t[e++]&63)<<6|t[e++]&63,a>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),a=0);return s?(a&&s.push(String.fromCharCode.apply(String,i.slice(0,a))),s.join("")):String.fromCharCode.apply(String,i.slice(0,a))};$o.write=function(t,e,n){for(var o=n,s,i,a=0;a<t.length;++a)s=t.charCodeAt(a),s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&((i=t.charCodeAt(a+1))&64512)===56320?(s=65536+((s&1023)<<10)+(i&1023),++a,e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128);return n-o}});var il=S((Sv,sl)=>{"use strict";sl.exports=GI;function GI(r,t,e){var n=e||8192,o=n>>>1,s=null,i=n;return function(_){if(_<1||_>o)return r(_);i+_>n&&(s=r(n),i=0);var E=t.call(s,i,i+=_);return i&7&&(i=(i|7)+1),E}}});var cl=S((pv,al)=>{"use strict";al.exports=U;var Be=Mt();function U(r,t){this.lo=r>>>0,this.hi=t>>>0}var vt=U.zero=new U(0,0);vt.toNumber=function(){return 0};vt.zzEncode=vt.zzDecode=function(){return this};vt.length=function(){return 1};var HI=U.zeroHash="\0\0\0\0\0\0\0\0";U.fromNumber=function(t){if(t===0)return vt;var e=t<0;e&&(t=-t);var n=t>>>0,o=(t-n)/4294967296>>>0;return e&&(o=~o>>>0,n=~n>>>0,++n>4294967295&&(n=0,++o>4294967295&&(o=0))),new U(n,o)};U.from=function(t){if(typeof t=="number")return U.fromNumber(t);if(Be.isString(t))if(Be.Long)t=Be.Long.fromString(t);else return U.fromNumber(parseInt(t,10));return t.low||t.high?new U(t.low>>>0,t.high>>>0):vt};U.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+n*4294967296)}return this.lo+this.hi*4294967296};U.prototype.toLong=function(t){return Be.Long?new Be.Long(this.lo|0,this.hi|0,!!t):{low:this.lo|0,high:this.hi|0,unsigned:!!t}};var Nt=String.prototype.charCodeAt;U.fromHash=function(t){return t===HI?vt:new U((Nt.call(t,0)|Nt.call(t,1)<<8|Nt.call(t,2)<<16|Nt.call(t,3)<<24)>>>0,(Nt.call(t,4)|Nt.call(t,5)<<8|Nt.call(t,6)<<16|Nt.call(t,7)<<24)>>>0)};U.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};U.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this};U.prototype.zzDecode=function(){var t=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this};U.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?e===0?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}});var Mt=S(Xo=>{"use strict";var p=Xo;p.asPromise=Fp();p.base64=jp();p.EventEmitter=qp();p.float=tl();p.inquire=rl();p.utf8=ol();p.pool=il();p.LongBits=cl();p.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);p.global=p.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||Xo;p.emptyArray=Object.freeze?Object.freeze([]):[];p.emptyObject=Object.freeze?Object.freeze({}):{};p.isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};p.isString=function(t){return typeof t=="string"||t instanceof String};p.isObject=function(t){return t&&typeof t=="object"};p.isset=p.isSet=function(t,e){var n=t[e];return n!=null&&t.hasOwnProperty(e)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};p.Buffer=function(){try{var r=p.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();p._Buffer_from=null;p._Buffer_allocUnsafe=null;p.newBuffer=function(t){return typeof t=="number"?p.Buffer?p._Buffer_allocUnsafe(t):new p.Array(t):p.Buffer?p._Buffer_from(t):typeof Uint8Array>"u"?t:new Uint8Array(t)};p.Array=typeof Uint8Array<"u"?Uint8Array:Array;p.Long=p.global.dcodeIO&&p.global.dcodeIO.Long||p.global.Long||p.inquire("long");p.key2Re=/^true|false|0|1$/;p.key32Re=/^-?(?:0|[1-9][0-9]*)$/;p.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;p.longToHash=function(t){return t?p.LongBits.from(t).toHash():p.LongBits.zeroHash};p.longFromHash=function(t,e){var n=p.LongBits.fromHash(t);return p.Long?p.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)};function _l(r,t,e){for(var n=Object.keys(t),o=0;o<n.length;++o)(r[n[o]]===void 0||!e)&&(r[n[o]]=t[n[o]]);return r}p.merge=_l;p.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)};function El(r){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:new Error().stack||""}),n&&_l(this,n)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return r},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}p.newError=El;p.ProtocolError=El("ProtocolError");p.oneOfGetter=function(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=1;return function(){for(var o=Object.keys(this),s=o.length-1;s>-1;--s)if(e[o[s]]===1&&this[o[s]]!==void 0&&this[o[s]]!==null)return o[s]}};p.oneOfSetter=function(t){return function(e){for(var n=0;n<t.length;++n)t[n]!==e&&delete this[t[n]]}};p.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};p._configure=function(){var r=p.Buffer;if(!r){p._Buffer_from=p._Buffer_allocUnsafe=null;return}p._Buffer_from=r.from!==Uint8Array.from&&r.from||function(e,n){return new r(e,n)},p._Buffer_allocUnsafe=r.allocUnsafe||function(e){return new r(e)}}});var rs=S((Av,pl)=>{"use strict";pl.exports=m;var z=Mt(),zo,Mn=z.LongBits,ul=z.base64,Tl=z.utf8;function we(r,t,e){this.fn=r,this.len=t,this.next=void 0,this.val=e}function Jo(){}function FI(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function m(){this.len=0,this.head=new we(Jo,0,0),this.tail=this.head,this.states=null}var Sl=function(){return z.Buffer?function(){return(m.create=function(){return new zo})()}:function(){return new m}};m.create=Sl();m.alloc=function(t){return new z.Array(t)};z.Array!==Array&&(m.alloc=z.pool(m.alloc,z.Array.prototype.subarray));m.prototype._push=function(t,e,n){return this.tail=this.tail.next=new we(t,e,n),this.len+=e,this};function Zo(r,t,e){t[e]=r&255}function YI(r,t,e){for(;r>127;)t[e++]=r&127|128,r>>>=7;t[e]=r}function ts(r,t){this.len=r,this.next=void 0,this.val=t}ts.prototype=Object.create(we.prototype);ts.prototype.fn=YI;m.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new ts((t=t>>>0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this};m.prototype.int32=function(t){return t<0?this._push(es,10,Mn.fromNumber(t)):this.uint32(t)};m.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)};function es(r,t,e){for(;r.hi;)t[e++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)t[e++]=r.lo&127|128,r.lo=r.lo>>>7;t[e++]=r.lo}m.prototype.uint64=function(t){var e=Mn.from(t);return this._push(es,e.length(),e)};m.prototype.int64=m.prototype.uint64;m.prototype.sint64=function(t){var e=Mn.from(t).zzEncode();return this._push(es,e.length(),e)};m.prototype.bool=function(t){return this._push(Zo,1,t?1:0)};function Qo(r,t,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24}m.prototype.fixed32=function(t){return this._push(Qo,4,t>>>0)};m.prototype.sfixed32=m.prototype.fixed32;m.prototype.fixed64=function(t){var e=Mn.from(t);return this._push(Qo,4,e.lo)._push(Qo,4,e.hi)};m.prototype.sfixed64=m.prototype.fixed64;m.prototype.float=function(t){return this._push(z.float.writeFloatLE,4,t)};m.prototype.double=function(t){return this._push(z.float.writeDoubleLE,8,t)};var kI=z.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var o=0;o<t.length;++o)e[n+o]=t[o]};m.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(Zo,1,0);if(z.isString(t)){var n=m.alloc(e=ul.length(t));ul.decode(t,n,0),t=n}return this.uint32(e)._push(kI,e,t)};m.prototype.string=function(t){var e=Tl.length(t);return e?this.uint32(e)._push(Tl.write,e,t):this._push(Zo,1,0)};m.prototype.fork=function(){return this.states=new FI(this),this.head=this.tail=new we(Jo,0,0),this.len=0,this};m.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new we(Jo,0,0),this.len=0),this};m.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this};m.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e};m._configure=function(r){zo=r,m.create=Sl(),zo._configure()}});var dl=S((dv,Al)=>{"use strict";Al.exports=St;var ll=rs();(St.prototype=Object.create(ll.prototype)).constructor=St;var Pt=Mt();function St(){ll.call(this)}St._configure=function(){St.alloc=Pt._Buffer_allocUnsafe,St.writeBytesBuffer=Pt.Buffer&&Pt.Buffer.prototype instanceof Uint8Array&&Pt.Buffer.prototype.set.name==="set"?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var o=0;o<t.length;)e[n++]=t[o++]}};St.prototype.bytes=function(t){Pt.isString(t)&&(t=Pt._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(St.writeBytesBuffer,e,t),this};function KI(r,t,e){r.length<40?Pt.utf8.write(r,t,e):t.utf8Write?t.utf8Write(r,e):t.write(r,e)}St.prototype.string=function(t){var e=Pt.Buffer.byteLength(t);return this.uint32(e),e&&this._push(KI,e,t),this};St._configure()});var ss=S((mv,Ol)=>{"use strict";Ol.exports=L;var rt=Mt(),os,hl=rt.LongBits,jI=rt.utf8;function nt(r,t){return RangeError("index out of range: "+r.pos+" + "+(t||1)+" > "+r.len)}function L(r){this.buf=r,this.pos=0,this.len=r.length}var ml=typeof Uint8Array<"u"?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new L(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new L(t);throw Error("illegal buffer")},Rl=function(){return rt.Buffer?function(e){return(L.create=function(o){return rt.Buffer.isBuffer(o)?new os(o):ml(o)})(e)}:ml};L.create=Rl();L.prototype._slice=rt.Array.prototype.subarray||rt.Array.prototype.slice;L.prototype.uint32=function(){var t=4294967295;return function(){if(t=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(t=(t|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,nt(this,10);return t}}();L.prototype.int32=function(){return this.uint32()|0};L.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(t&1)|0};function ns(){var r=new hl(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw nt(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<<t*7)>>>0,r}if(this.len-this.pos>4){for(;t<5;++t)if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}else for(;t<5;++t){if(this.pos>=this.len)throw nt(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}L.prototype.bool=function(){return this.uint32()!==0};function Pn(r,t){return(r[t-4]|r[t-3]<<8|r[t-2]<<16|r[t-1]<<24)>>>0}L.prototype.fixed32=function(){if(this.pos+4>this.len)throw nt(this,4);return Pn(this.buf,this.pos+=4)};L.prototype.sfixed32=function(){if(this.pos+4>this.len)throw nt(this,4);return Pn(this.buf,this.pos+=4)|0};function fl(){if(this.pos+8>this.len)throw nt(this,8);return new hl(Pn(this.buf,this.pos+=4),Pn(this.buf,this.pos+=4))}L.prototype.float=function(){if(this.pos+4>this.len)throw nt(this,4);var t=rt.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t};L.prototype.double=function(){if(this.pos+8>this.len)throw nt(this,4);var t=rt.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t};L.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw nt(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var o=rt.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)};L.prototype.string=function(){var t=this.bytes();return jI.read(t,0,t.length)};L.prototype.skip=function(t){if(typeof t=="number"){if(this.pos+t>this.len)throw nt(this,t);this.pos+=t}else do if(this.pos>=this.len)throw nt(this);while(this.buf[this.pos++]&128);return this};L.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};L._configure=function(r){os=r,L.create=Rl(),os._configure();var t=rt.Long?"toLong":"toNumber";rt.merge(L.prototype,{int64:function(){return ns.call(this)[t](!1)},uint64:function(){return ns.call(this)[t](!0)},sint64:function(){return ns.call(this).zzDecode()[t](!1)},fixed64:function(){return fl.call(this)[t](!0)},sfixed64:function(){return fl.call(this)[t](!1)}})}});var Pl=S((fv,Ml)=>{"use strict";Ml.exports=Bt;var Nl=ss();(Bt.prototype=Object.create(Nl.prototype)).constructor=Bt;var gl=Mt();function Bt(r){Nl.call(this,r)}Bt._configure=function(){gl.Buffer&&(Bt.prototype._slice=gl.Buffer.prototype.slice)};Bt.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))};Bt._configure()});var Ll=S((hv,Cl)=>{"use strict";Cl.exports=Ge;var is=Mt();(Ge.prototype=Object.create(is.EventEmitter.prototype)).constructor=Ge;function Ge(r,t,e){if(typeof r!="function")throw TypeError("rpcImpl must be a function");is.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=!!t,this.responseDelimited=!!e}Ge.prototype.rpcCall=function r(t,e,n,o,s){if(!o)throw TypeError("request must be specified");var i=this;if(!s)return is.asPromise(r,i,t,e,n,o);if(!i.rpcImpl){setTimeout(function(){s(Error("already ended"))},0);return}try{return i.rpcImpl(t,e[i.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(_,E){if(_)return i.emit("error",_,t),s(_);if(E===null){i.end(!0);return}if(!(E instanceof n))try{E=n[i.responseDelimited?"decodeDelimited":"decode"](E)}catch(T){return i.emit("error",T,t),s(T)}return i.emit("data",E,t),s(null,E)})}catch(a){i.emit("error",a,t),setTimeout(function(){s(a)},0);return}};Ge.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var xl=S(Il=>{"use strict";var WI=Il;WI.Service=Ll()});var Ul=S((Ov,Dl)=>{"use strict";Dl.exports={}});var Vl=S(yl=>{"use strict";var G=yl;G.build="minimal";G.Writer=rs();G.BufferWriter=dl();G.Reader=ss();G.BufferReader=Pl();G.util=Mt();G.rpc=xl();G.roots=Ul();G.configure=bl;function bl(){G.util._configure(),G.Writer._configure(G.BufferWriter),G.Reader._configure(G.BufferReader)}bl()});var Bl=S((Nv,vl)=>{"use strict";vl.exports=Vl()});var YS=O(P());d();d();var fr=O(P());de();function no(){return"unknown_service"}var Kt=r=>r!==null&&typeof r=="object"&&typeof r.then=="function";var hr=class r{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,e){let n=new r({},e);return n._rawAttributes=bS(t),n._asyncAttributesPending=t.filter(([o,s])=>Kt(s)).length>0,n}constructor(t,e){let n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,s])=>(Kt(s)&&(this._asyncAttributesPending=!0),[o,s])),this._rawAttributes=bS(this._rawAttributes),this._schemaUrl=FL(e?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){let[e,n]=this._rawAttributes[t];this._rawAttributes[t]=[e,Kt(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&c.diag.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let t={};for(let[e,n]of this._rawAttributes){if(Kt(n)){c.diag.debug(`Unsettled resource attribute ${e} skipped`);continue}n!=null&&(t[e]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;let e=YL(this,t),n=e?{schemaUrl:e}:void 0;return r.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}};function Re(r,t){return hr.FromAttributeList(Object.entries(r),t)}function yS(r,t){return new hr(r,t)}function Rr(){return Re({})}function Ut(){return Re({[Ae]:no(),[ze]:fr.SDK_INFO[ze],[Qe]:fr.SDK_INFO[Qe],[Je]:fr.SDK_INFO[Je]})}function bS(r){return r.map(([t,e])=>Kt(e)?[t,e.catch(n=>{c.diag.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,e])}function FL(r){if(typeof r=="string"||r===void 0)return r;c.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",r)}function YL(r,t){let e=r?.schemaUrl,n=t?.schemaUrl,o=e===void 0||e==="",s=n===void 0||n==="";if(o)return n;if(s||e===n)return e;c.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',e,n)}var oo=(r={})=>(r.detectors||[]).map(e=>{try{let n=yS(e.detect(r));return c.diag.debug(`${e.constructor.name} found resource.`,n),n}catch(n){return c.diag.debug(`${e.constructor.name} failed: ${n.message}`),Rr()}}).reduce((e,n)=>e.merge(n),Rr());d();de();var so=O(P()),io=class{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";_ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.";_ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters.";detect(t){let e={},n=(0,so.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),o=(0,so.getStringFromEnv)("OTEL_SERVICE_NAME");if(n)try{let s=this._parseResourceAttributes(n);Object.assign(e,s)}catch(s){c.diag.debug(`EnvDetector failed: ${s.message}`)}return o&&(e[Ae]=o),{attributes:e}}_parseResourceAttributes(t){if(!t)return{};let e={},n=t.split(this._COMMA_SEPARATOR,-1);for(let o of n){let s=o.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(s.length!==2)continue;let[i,a]=s;if(i=i.trim(),a=a.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(i))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(a))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);e[i]=decodeURIComponent(a)}return e}_isValid(t){return t.length<=this._MAX_LENGTH&&this._isBaggageOctetString(t)}_isBaggageOctetString(t){for(let e=0;e<t.length;e++){let n=t.charCodeAt(e);if(n<33||n===44||n===59||n===92||n>126)return!1}return!0}_isValidAndNotEmpty(t){return t.length>0&&this._isValid(t)}},Or=new io;d();var jt=O(P());d();var N=O(P());de();var VS="exception";var gr=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:c.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){let e=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=N.otperformance.now(),this._performanceOffset=e-(this._performanceStartTime+(0,N.getTimeOrigin)()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??e),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,e){if(e==null||this._isSpanEnded())return this;if(t.length===0)return c.diag.warn(`Invalid attribute key: ${t}`),this;if(!(0,N.isAttributeValue)(e))return c.diag.warn(`Invalid attribute value set for key: ${t}`),this;let{attributeCountLimit:n}=this._spanLimits;return n!==void 0&&Object.keys(this.attributes).length>=n&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(e),this)}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}addEvent(t,e,n){if(this._isSpanEnded())return this;let{eventCountLimit:o}=this._spanLimits;if(o===0)return c.diag.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&c.diag.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),(0,N.isTimeInput)(e)&&((0,N.isTimeInput)(n)||(n=e),e=void 0);let s=(0,N.sanitizeAttributes)(e);return this.events.push({name:t,attributes:s,time:this._getTime(n),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(c.diag.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){c.diag.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(t),this._duration=(0,N.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0&&(c.diag.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&c.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=N.otperformance.now())return(0,N.hrTime)(t+this._performanceOffset);if(typeof t=="number")return(0,N.millisToHrTime)(t);if(t instanceof Date)return(0,N.millisToHrTime)(t.getTime());if((0,N.isTimeInputHrTime)(t))return t;if(this._startTimeProvided)return(0,N.millisToHrTime)(Date.now());let e=N.otperformance.now()-this._performanceStartTime;return(0,N.addHrTimes)(this.startTime,(0,N.millisToHrTime)(e))}isRecording(){return this._ended===!1}recordException(t,e){let n={};typeof t=="string"?n[pe]=t:t&&(t.code?n[le]=t.code.toString():t.name&&(n[le]=t.name),t.message&&(n[pe]=t.message),t.stack&&(n[Yn]=t.stack)),n[le]||n[pe]?this.addEvent(VS,n,e):c.diag.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);c.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_truncateToSize(t){let e=this._attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}};d();var j=O(P());var lt;(function(r){r[r.NOT_RECORD=0]="NOT_RECORD",r[r.RECORD=1]="RECORD",r[r.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(lt||(lt={}));var k=class{shouldSample(){return{decision:lt.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var B=class{shouldSample(){return{decision:lt.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};d();var vS=O(P());var K=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||((0,vS.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new B),this._remoteParentSampled=t.remoteParentSampled??new B,this._remoteParentNotSampled=t.remoteParentNotSampled??new k,this._localParentSampled=t.localParentSampled??new B,this._localParentNotSampled=t.localParentNotSampled??new k}shouldSample(t,e,n,o,s,i){let a=c.trace.getSpanContext(t);return!a||!(0,c.isSpanContextValid)(a)?this._root.shouldSample(t,e,n,o,s,i):a.isRemote?a.traceFlags&c.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(t,e,n,o,s,i):this._remoteParentNotSampled.shouldSample(t,e,n,o,s,i):a.traceFlags&c.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(t,e,n,o,s,i):this._localParentNotSampled.shouldSample(t,e,n,o,s,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};d();var At=class{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,e){return{decision:(0,c.isValidTraceId)(e)&&this._accumulate(e)<this._upperBound?lt.RECORD_AND_SAMPLED:lt.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let e=0;for(let n=0;n<t.length/8;n++){let o=n*8,s=parseInt(t.slice(o,o+8),16);e=(e^s)>>>0}return e}};var it;(function(r){r.AlwaysOff="always_off",r.AlwaysOn="always_on",r.ParentBasedAlwaysOff="parentbased_always_off",r.ParentBasedAlwaysOn="parentbased_always_on",r.ParentBasedTraceIdRatio="parentbased_traceidratio",r.TraceIdRatio="traceidratio"})(it||(it={}));var Nr=1;function Mr(){return{sampler:ao(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:(0,j.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,j.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,j.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function ao(){let r=(0,j.getStringFromEnv)("OTEL_TRACES_SAMPLER")??it.ParentBasedAlwaysOn;switch(r){case it.AlwaysOn:return new B;case it.AlwaysOff:return new k;case it.ParentBasedAlwaysOn:return new K({root:new B});case it.ParentBasedAlwaysOff:return new K({root:new k});case it.TraceIdRatio:return new At(BS());case it.ParentBasedTraceIdRatio:return new K({root:new At(BS())});default:return c.diag.error(`OTEL_TRACES_SAMPLER value "${r}" invalid, defaulting to "${it.ParentBasedAlwaysOn}".`),new K({root:new B})}}function BS(){let r=(0,j.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");return r==null?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Nr}.`),Nr):r<0||r>1?(c.diag.error(`OTEL_TRACES_SAMPLER_ARG=${r} was given, but it is out of range ([0..1]), defaulting to ${Nr}.`),Nr):r}var Oe=O(P()),kL=128,KL=1/0;function wS(r){let t={sampler:ao()},e=Mr(),n=Object.assign({},e,t,r);return n.generalLimits=Object.assign({},e.generalLimits,r.generalLimits||{}),n.spanLimits=Object.assign({},e.spanLimits,r.spanLimits||{}),n}function GS(r){let t=Object.assign({},r.spanLimits);return t.attributeCountLimit=r.spanLimits?.attributeCountLimit??r.generalLimits?.attributeCountLimit??(0,Oe.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,Oe.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??kL,t.attributeValueLengthLimit=r.spanLimits?.attributeValueLengthLimit??r.generalLimits?.attributeValueLengthLimit??(0,Oe.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,Oe.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??KL,Object.assign({},r,{spanLimits:t})}d();var v=O(P()),Pr=class{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,e){this._exporter=t,this._maxExportBatchSize=typeof e?.maxExportBatchSize=="number"?e.maxExportBatchSize:(0,v.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof e?.maxQueueSize=="number"?e.maxQueueSize:(0,v.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof e?.scheduledDelayMillis=="number"?e.scheduledDelayMillis:(0,v.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis=typeof e?.exportTimeoutMillis=="number"?e.exportTimeoutMillis:(0,v.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new v.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(c.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,e){}onEnd(t){this._shutdownOnce.isCalled||t.spanContext().traceFlags&c.TraceFlags.SAMPLED&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&c.diag.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(c.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,e)=>{let n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let s=0,i=o;s<i;s++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(e)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,e)=>{let n=setTimeout(()=>{e(new Error("Timeout"))},this._exportTimeoutMillis);c.context.with((0,v.suppressTracing)(c.context.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);let s=()=>this._exporter.export(o,a=>{clearTimeout(n),a.code===v.ExportResultCode.SUCCESS?t():e(a.error??new Error("BatchSpanProcessor: span export failed"))}),i=null;for(let a=0,_=o.length;a<_;a++){let E=o[a];E.resource.asyncAttributesPending&&E.resource.waitForAsyncAttributes&&(i??=[],i.push(E.resource.waitForAsyncAttributes()))}i===null?s():Promise.all(i).then(s,a=>{(0,v.globalErrorHandler)(a),e(a)})})})}_maybeStartTimer(){if(this._isExporting)return;let t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{this._isExporting=!1,(0,v.globalErrorHandler)(e)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),(0,v.unrefTimer)(this._timer))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}};var co=O(P()),dt=class extends Pr{_visibilityChangeListener;_pageHideListener;constructor(t,e){super(t,e),this.onInit(e)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(e=>{(0,co.globalErrorHandler)(e)})},this._pageHideListener=()=>{this.forceFlush().catch(e=>{(0,co.globalErrorHandler)(e)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}};var Rt=class{generateTraceId=HS(16);generateSpanId=HS(8)},Cr=Array(32);function HS(r){return function(){for(let e=0;e<r*2;e++)Cr[e]=Math.floor(Math.random()*16)+48,Cr[e]>=58&&(Cr[e]+=39);return String.fromCharCode.apply(null,Cr.slice(0,r*2))}}var Lr=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,e,n,o){let s=wS(e);this._sampler=s.sampler,this._generalLimits=s.generalLimits,this._spanLimits=s.spanLimits,this._idGenerator=e.idGenerator||new Rt,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t}startSpan(t,e={},n=c.context.active()){e.root&&(n=c.trace.deleteSpan(n));let o=c.trace.getSpan(n);if((0,jt.isTracingSuppressed)(n))return c.diag.debug("Instrumentation suppressed, returning Noop Span"),c.trace.wrapSpanContext(c.INVALID_SPAN_CONTEXT);let s=o?.spanContext(),i=this._idGenerator.generateSpanId(),a,_,E;!s||!c.trace.isSpanContextValid(s)?_=this._idGenerator.generateTraceId():(_=s.traceId,E=s.traceState,a=s);let T=e.kind??c.SpanKind.INTERNAL,l=(e.links??[]).map(J=>({context:J.context,attributes:(0,jt.sanitizeAttributes)(J.attributes)})),A=(0,jt.sanitizeAttributes)(e.attributes),h=this._sampler.shouldSample(n,_,t,T,A,l);E=h.traceState??E;let R=h.decision===c.SamplingDecision.RECORD_AND_SAMPLED?c.TraceFlags.SAMPLED:c.TraceFlags.NONE,I={traceId:_,spanId:i,traceFlags:R,traceState:E};if(h.decision===c.SamplingDecision.NOT_RECORD)return c.diag.debug("Recording is off, propagating context in a non-recording span"),c.trace.wrapSpanContext(I);let x=(0,jt.sanitizeAttributes)(Object.assign(A,h.attributes));return new gr({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:I,name:t,kind:T,links:l,parentSpanContext:a,attributes:x,startTime:e.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,e,n,o){let s,i,a;if(arguments.length<2)return;arguments.length===2?a=e:arguments.length===3?(s=e,a=n):(s=e,i=n,a=o);let _=i??c.context.active(),E=this.startSpan(t,s,_),T=c.trace.setSpan(_,E);return c.context.with(T,a,void 0,E)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var FS=O(P()),Ir=class{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){let t=[];for(let e of this._spanProcessors)t.push(e.forceFlush());return new Promise(e=>{Promise.all(t).then(()=>{e()}).catch(n=>{(0,FS.globalErrorHandler)(n||new Error("MultiSpanProcessor: forceFlush failed")),e()})})}onStart(t,e){for(let n of this._spanProcessors)n.onStart(t,e)}onEnd(t){for(let e of this._spanProcessors)e.onEnd(t)}shutdown(){let t=[];for(let e of this._spanProcessors)t.push(e.shutdown());return new Promise((e,n)=>{Promise.all(t).then(()=>{e()},n)})}};var bt;(function(r){r[r.resolved=0]="resolved",r[r.timeout=1]="timeout",r[r.error=2]="error",r[r.unresolved=3]="unresolved"})(bt||(bt={}));var ge=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){let e=(0,YS.merge)({},Mr(),GS(t));this._resource=e.resource??Ut(),this._config=Object.assign({},e,{resource:this._resource});let n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new Ir(n)}getTracer(t,e,n){let o=`${t}@${e||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Lr({name:t,version:e,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){let t=this._config.forceFlushTimeoutMillis,e=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let s,i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),s=bt.timeout},t);n.forceFlush().then(()=>{clearTimeout(i),s!==bt.timeout&&(s=bt.resolved,o(s))}).catch(a=>{clearTimeout(i),s=bt.error,o(a)})}));return new Promise((n,o)=>{Promise.all(e).then(s=>{let i=s.filter(a=>a!==bt.resolved);i.length>0?o(i):n()}).catch(s=>o([s]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};d();var W={};Z(W,FU);import*as FU from"@opentelemetry/api-logs";d();function kS(r,t,e,n){for(let o=0,s=r.length;o<s;o++){let i=r[o];t&&i.setTracerProvider(t),e&&i.setMeterProvider(e),n&&i.setLoggerProvider&&i.setLoggerProvider(n),i.getConfig().enabled||i.enable()}}function KS(r){r.forEach(t=>t.disable())}function _o(r){let t=r.tracerProvider||c.trace.getTracerProvider(),e=r.meterProvider||c.metrics.getMeterProvider(),n=r.loggerProvider||W.logs.getLoggerProvider(),o=r.instrumentations?.flat()??[];return kS(o,t,e,n),()=>{KS(o)}}d();var Vr=O(P());d();d();var Wt=O(P()),xr=class{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;totalAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(t){this._isLogRecordReadonly()||(this._severityText=t)}get severityText(){return this._severityText}set severityNumber(t){this._isLogRecordReadonly()||(this._severityNumber=t)}get severityNumber(){return this._severityNumber}set body(t){this._isLogRecordReadonly()||(this._body=t)}get body(){return this._body}get eventName(){return this._eventName}set eventName(t){this._isLogRecordReadonly()||(this._eventName=t)}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(t,e,n){let{timestamp:o,observedTimestamp:s,eventName:i,severityNumber:a,severityText:_,body:E,attributes:T={},context:l}=n,A=Date.now();if(this.hrTime=(0,Wt.timeInputToHrTime)(o??A),this.hrTimeObserved=(0,Wt.timeInputToHrTime)(s??A),l){let h=c.trace.getSpanContext(l);h&&c.isSpanContextValid(h)&&(this.spanContext=h)}this.severityNumber=a,this.severityText=_,this.body=E,this.resource=t.resource,this.instrumentationScope=e,this._logRecordLimits=t.logRecordLimits,this._eventName=i,this.setAttributes(T)}setAttribute(t,e){return this._isLogRecordReadonly()?this:e===null?this:t.length===0?(c.diag.warn(`Invalid attribute key: ${t}`),this):!(0,Wt.isAttributeValue)(e)&&!(typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length>0)?(c.diag.warn(`Invalid attribute value set for key: ${t}`),this):(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this.droppedAttributesCount===1&&c.diag.warn("Dropping extra attributes."),this):((0,Wt.isAttributeValue)(e)?this.attributes[t]=this._truncateToSize(e):this.attributes[t]=e,this))}setAttributes(t){for(let[e,n]of Object.entries(t))this.setAttribute(e,n);return this}setBody(t){return this.body=t,this}setEventName(t){return this.eventName=t,this}setSeverityNumber(t){return this.severityNumber=t,this}setSeverityText(t){return this.severityText=t,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(t){let e=this._logRecordLimits.attributeValueLengthLimit;return e<=0?(c.diag.warn(`Attribute value limit must be positive, got ${e}`),t):typeof t=="string"?this._truncateToLimitUtil(t,e):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,e):n):t}_truncateToLimitUtil(t,e){return t.length<=e?t:t.substring(0,e)}_isLogRecordReadonly(){return this._isReadonly&&c.diag.warn("Can not execute the operation on emitted log record"),this._isReadonly}};var Dr=class{instrumentationScope;_sharedState;constructor(t,e){this.instrumentationScope=t,this._sharedState=e}emit(t){let e=t.context||c.context.active(),n=new xr(this._sharedState,this.instrumentationScope,{context:e,...t});this._sharedState.activeProcessor.onEmit(n,e),n._makeReadonly()}};var yt=O(P());function jS(){return{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??128},includeTraceContext:!0}}function WS(r){return{attributeCountLimit:r.attributeCountLimit??(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??(0,yt.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,attributeValueLengthLimit:r.attributeValueLengthLimit??(0,yt.getNumberFromEnv)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,yt.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0}}var Ur=class{forceFlush(){return Promise.resolve()}onEmit(t,e){}shutdown(){return Promise.resolve()}};var qS=O(P()),br=class{processors;forceFlushTimeoutMillis;constructor(t,e){this.processors=t,this.forceFlushTimeoutMillis=e}async forceFlush(){let t=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map(e=>(0,qS.callWithTimeout)(e.forceFlush(),t)))}onEmit(t,e){this.processors.forEach(n=>n.onEmit(t,e))}async shutdown(){await Promise.all(this.processors.map(t=>t.shutdown()))}};var yr=class{resource;forceFlushTimeoutMillis;logRecordLimits;processors;loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];constructor(t,e,n,o){this.resource=t,this.forceFlushTimeoutMillis=e,this.logRecordLimits=n,this.processors=o,o.length>0?(this.registeredLogRecordProcessors=o,this.activeProcessor=new br(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new Ur}};var jL="unknown",Ne=class{_shutdownOnce;_sharedState;constructor(t={}){let e=(0,Vr.merge)({},jS(),t),n=t.resource??Ut();this._sharedState=new yr(n,e.forceFlushTimeoutMillis,WS(e.logRecordLimits),t?.processors??[]),this._shutdownOnce=new Vr.BindOnceFuture(this._shutdown,this)}getLogger(t,e,n){if(this._shutdownOnce.isCalled)return c.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),W.NOOP_LOGGER;t||c.diag.warn("Logger requested without instrumentation scope name.");let o=t||jL,s=`${o}@${e||""}:${n?.schemaUrl||""}`;return this._sharedState.loggers.has(s)||this._sharedState.loggers.set(s,new Dr({name:o,version:e,schemaUrl:n?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(s)}forceFlush(){return this._shutdownOnce.isCalled?(c.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(c.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}};var vr;(function(r){r[r.DELTA=0]="DELTA",r[r.CUMULATIVE=1]="CUMULATIVE"})(vr||(vr={}));var f;(function(r){r.COUNTER="COUNTER",r.GAUGE="GAUGE",r.HISTOGRAM="HISTOGRAM",r.UP_DOWN_COUNTER="UP_DOWN_COUNTER",r.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",r.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",r.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(f||(f={}));var at;(function(r){r[r.HISTOGRAM=0]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",r[r.GAUGE=2]="GAUGE",r[r.SUM=3]="SUM"})(at||(at={}));function $S(r){return r!=null}function Br(r){let t=Object.keys(r);return t.length===0?"":(t=t.sort(),JSON.stringify(t.map(e=>[e,r[e]])))}function XS(r){return`${r.name}:${r.version??""}:${r.schemaUrl??""}`}var Eo=class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}};function uo(r,t){let e,n=new Promise(function(s,i){e=setTimeout(function(){i(new Eo("Operation timed out."))},t)});return Promise.race([r,n]).then(o=>(clearTimeout(e),o),o=>{throw clearTimeout(e),o})}async function zS(r){return Promise.all(r.map(async t=>{try{return{status:"fulfilled",value:await t}}catch(e){return{status:"rejected",reason:e}}}))}function QS(r){return r.status==="rejected"}function JS(r,t){if(r.size!==t.size)return!1;for(let e of r)if(!t.has(e))return!1;return!0}function ZS(r,t){let e=0,n=r.length-1,o=r.length;for(;n>=e;){let s=e+Math.trunc((n-e)/2);r[s]<t?e=s+1:(o=s,n=s-1)}return o}function tp(r,t){return r.toLowerCase()===t.toLowerCase()}d();var q;(function(r){r[r.DROP=0]="DROP",r[r.SUM=1]="SUM",r[r.LAST_VALUE=2]="LAST_VALUE",r[r.HISTOGRAM=3]="HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(q||(q={}));var Me=class{kind=q.DROP;createAccumulation(){}merge(t,e){}diff(t,e){}toMetricData(t,e,n,o){}};function WL(r){let t=r.map(()=>0);return t.push(0),{buckets:{boundaries:r,counts:t},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var qt=class{startTime;_boundaries;_recordMinMax;_current;constructor(t,e,n=!0,o=WL(e)){this.startTime=t,this._boundaries=e,this._recordMinMax=n,this._current=o}record(t){if(Number.isNaN(t))return;this._current.count+=1,this._current.sum+=t,this._recordMinMax&&(this._current.min=Math.min(t,this._current.min),this._current.max=Math.max(t,this._current.max),this._current.hasMinMax=!0);let e=ZS(this._boundaries,t);this._current.buckets.counts[e]+=1}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},$t=class{_boundaries;_recordMinMax;kind=q.HISTOGRAM;constructor(t,e){this._boundaries=t,this._recordMinMax=e}createAccumulation(t){return new qt(t,this._boundaries,this._recordMinMax)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let T=0;T<s.length;T++)a[T]=s[T]+i[T];let _=1/0,E=-1/0;return this._recordMinMax&&(n.hasMinMax&&o.hasMinMax?(_=Math.min(n.min,o.min),E=Math.max(n.max,o.max)):n.hasMinMax?(_=n.min,E=n.max):o.hasMinMax&&(_=o.min,E=o.max)),new qt(t.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:n.count+o.count,sum:n.sum+o.sum,hasMinMax:this._recordMinMax&&(n.hasMinMax||o.hasMinMax),min:_,max:E})}diff(t,e){let n=t.toPointValue(),o=e.toPointValue(),s=n.buckets.counts,i=o.buckets.counts,a=new Array(s.length);for(let _=0;_<s.length;_++)a[_]=i[_]-s[_];return new qt(e.startTime,n.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:n.buckets.boundaries,counts:a},count:o.count-n.count,sum:o.sum-n.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:at.HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,buckets:a.buckets,count:a.count}}})}}};d();var Pe=class r{backing;indexBase;indexStart;indexEnd;constructor(t=new To,e=0,n=0,o=0){this.backing=t,this.indexBase=e,this.indexStart=n,this.indexEnd=o}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(t,e)=>this.at(e))}at(t){let e=this.indexBase-this.indexStart;return t<e&&(t+=this.backing.length),t-=e,this.backing.countAt(t)}incrementBucket(t,e){this.backing.increment(t,e)}decrementBucket(t,e){this.backing.decrement(t,e)}trim(){for(let t=0;t<this.length;t++)if(this.at(t)!==0){this.indexStart+=t;break}else if(t===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let t=this.length-1;t>=0;t--)if(this.at(t)!==0){this.indexEnd-=this.length-t-1;break}this._rotate()}downscale(t){this._rotate();let e=1+this.indexEnd-this.indexStart,n=1<<t,o=0,s=0;for(let i=this.indexStart;i<=this.indexEnd;){let a=i%n;a<0&&(a+=n);for(let _=a;_<n&&o<e;_++)this._relocateBucket(s,o),o++,i++;s++}this.indexStart>>=t,this.indexEnd>>=t,this.indexBase=this.indexStart}clone(){return new r(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let t=this.indexBase-this.indexStart;t!==0&&(t>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,t),this.backing.reverse(t,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+t)),this.indexBase=this.indexStart)}_relocateBucket(t,e){t!==e&&this.incrementBucket(t,this.backing.emptyBucket(e))}},To=class r{_counts;constructor(t=[0]){this._counts=t}get length(){return this._counts.length}countAt(t){return this._counts[t]}growTo(t,e,n){let o=new Array(t).fill(0);o.splice(n,this._counts.length-e,...this._counts.slice(e)),o.splice(0,e,...this._counts.slice(0,e)),this._counts=o}reverse(t,e){let n=Math.floor((t+e)/2)-t;for(let o=0;o<n;o++){let s=this._counts[t+o];this._counts[t+o]=this._counts[e-o-1],this._counts[e-o-1]=s}}emptyBucket(t){let e=this._counts[t];return this._counts[t]=0,e}increment(t,e){this._counts[t]+=e}decrement(t,e){this._counts[t]>=e?this._counts[t]-=e:this._counts[t]=0}clone(){return new r([...this._counts])}};var Ce=Math.pow(2,-1022);function wr(r){let t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,r),((t.getUint32(0)&2146435072)>>20)-1023}function Gr(r){let t=new DataView(new ArrayBuffer(8));t.setFloat64(0,r);let e=t.getUint32(0),n=t.getUint32(4);return(e&1048575)*Math.pow(2,32)+n}function Le(r,t){return r===0||r===Number.POSITIVE_INFINITY||r===Number.NEGATIVE_INFINITY||Number.isNaN(r)?r:r*Math.pow(2,t)}function rp(r){return r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,r++,r}var ct=class extends Error{};var Hr=class{_shift;constructor(t){this._shift=-t}mapToIndex(t){if(t<Ce)return this._minNormalLowerBoundaryIndex();let e=wr(t),n=this._rightShift(Gr(t)-1,52);return e+n>>this._shift}lowerBoundary(t){let e=this._minNormalLowerBoundaryIndex();if(t<e)throw new ct(`underflow: ${t} is < minimum lower boundary: ${e}`);let n=this._maxNormalLowerBoundaryIndex();if(t>n)throw new ct(`overflow: ${t} is > maximum lower boundary: ${n}`);return Le(1,t<<this._shift)}get scale(){return this._shift===0?0:-this._shift}_minNormalLowerBoundaryIndex(){let t=-1022>>this._shift;return this._shift<2&&t--,t}_maxNormalLowerBoundaryIndex(){return 1023>>this._shift}_rightShift(t,e){return Math.floor(t*Math.pow(2,-e))}};var Fr=class{_scale;_scaleFactor;_inverseFactor;constructor(t){this._scale=t,this._scaleFactor=Le(Math.LOG2E,t),this._inverseFactor=Le(Math.LN2,-t)}mapToIndex(t){if(t<=Ce)return this._minNormalLowerBoundaryIndex()-1;if(Gr(t)===0)return(wr(t)<<this._scale)-1;let e=Math.floor(Math.log(t)*this._scaleFactor),n=this._maxNormalLowerBoundaryIndex();return e>=n?n:e}lowerBoundary(t){let e=this._maxNormalLowerBoundaryIndex();if(t>=e){if(t===e)return 2*Math.exp((t-(1<<this._scale))/this._scaleFactor);throw new ct(`overflow: ${t} is > maximum lower boundary: ${e}`)}let n=this._minNormalLowerBoundaryIndex();if(t<=n){if(t===n)return Ce;if(t===n-1)return Math.exp((t+(1<<this._scale))/this._scaleFactor)/2;throw new ct(`overflow: ${t} is < minimum lower boundary: ${n}`)}return Math.exp(t*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return-1022<<this._scale}_maxNormalLowerBoundaryIndex(){return(1024<<this._scale)-1}};var op=-10,sp=20,$L=Array.from({length:31},(r,t)=>t>10?new Fr(t-10):new Hr(t-10));function lo(r){if(r>sp||r<op)throw new ct(`expected scale >= ${op} && <= ${sp}, got: ${r}`);return $L[r+10]}var Xt=class r{low;high;static combine(t,e){return new r(Math.min(t.low,e.low),Math.max(t.high,e.high))}constructor(t,e){this.low=t,this.high=e}},XL=20,zL=160,Ao=2,Yr=class r{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(t,e=zL,n=!0,o=0,s=0,i=0,a=Number.POSITIVE_INFINITY,_=Number.NEGATIVE_INFINITY,E=new Pe,T=new Pe,l=lo(XL)){this.startTime=t,this._maxSize=e,this._recordMinMax=n,this._sum=o,this._count=s,this._zeroCount=i,this._min=a,this._max=_,this._positive=E,this._negative=T,this._mapping=l,this._maxSize<Ao&&(c.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${Ao}`),this._maxSize=Ao)}record(t){this.updateByIncrement(t,1)}setStartTime(t){this.startTime=t}toPointValue(){return{hasMinMax:this._recordMinMax,min:this.min,max:this.max,sum:this.sum,positive:{offset:this.positive.offset,bucketCounts:this.positive.counts()},negative:{offset:this.negative.offset,bucketCounts:this.negative.counts()},count:this.count,scale:this.scale,zeroCount:this.zeroCount}}get sum(){return this._sum}get min(){return this._min}get max(){return this._max}get count(){return this._count}get zeroCount(){return this._zeroCount}get scale(){return this._count===this._zeroCount?0:this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(t,e){if(!Number.isNaN(t)){if(t>this._max&&(this._max=t),t<this._min&&(this._min=t),this._count+=e,t===0){this._zeroCount+=e;return}this._sum+=t*e,t>0?this._updateBuckets(this._positive,t,e):this._updateBuckets(this._negative,-t,e)}}merge(t){this._count===0?(this._min=t.min,this._max=t.max):t.count!==0&&(t.min<this.min&&(this._min=t.min),t.max>this.max&&(this._max=t.max)),this.startTime=t.startTime,this._sum+=t.sum,this._count+=t.count,this._zeroCount+=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._mergeBuckets(this.positive,t,t.positive,e),this._mergeBuckets(this.negative,t,t.negative,e)}diff(t){this._min=1/0,this._max=-1/0,this._sum-=t.sum,this._count-=t.count,this._zeroCount-=t.zeroCount;let e=this._minScale(t);this._downscale(this.scale-e),this._diffBuckets(this.positive,t,t.positive,e),this._diffBuckets(this.negative,t,t.negative,e)}clone(){return new r(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(t,e,n){let o=this._mapping.mapToIndex(e),s=!1,i=0,a=0;if(t.length===0?(t.indexStart=o,t.indexEnd=t.indexStart,t.indexBase=t.indexStart):o<t.indexStart&&t.indexEnd-o>=this._maxSize?(s=!0,a=o,i=t.indexEnd):o>t.indexEnd&&o-t.indexStart>=this._maxSize&&(s=!0,a=t.indexStart,i=o),s){let _=this._changeScale(i,a);this._downscale(_),o=this._mapping.mapToIndex(e)}this._incrementIndexBy(t,o,n)}_incrementIndexBy(t,e,n){if(n===0)return;if(t.length===0&&(t.indexStart=t.indexEnd=t.indexBase=e),e<t.indexStart){let s=t.indexEnd-e;s>=t.backing.length&&this._grow(t,s+1),t.indexStart=e}else if(e>t.indexEnd){let s=e-t.indexStart;s>=t.backing.length&&this._grow(t,s+1),t.indexEnd=e}let o=e-t.indexBase;o<0&&(o+=t.backing.length),t.incrementBucket(o,n)}_grow(t,e){let n=t.backing.length,o=t.indexBase-t.indexStart,s=n-o,i=rp(e);i>this._maxSize&&(i=this._maxSize);let a=i-o;t.backing.growTo(i,s,a)}_changeScale(t,e){let n=0;for(;t-e>=this._maxSize;)t>>=1,e>>=1,n++;return n}_downscale(t){if(t===0)return;if(t<0)throw new Error(`impossible change of scale: ${this.scale}`);let e=this._mapping.scale-t;this._positive.downscale(t),this._negative.downscale(t),this._mapping=lo(e)}_minScale(t){let e=Math.min(this.scale,t.scale),n=Xt.combine(this._highLowAtScale(this.positive,this.scale,e),this._highLowAtScale(t.positive,t.scale,e)),o=Xt.combine(this._highLowAtScale(this.negative,this.scale,e),this._highLowAtScale(t.negative,t.scale,e));return Math.min(e-this._changeScale(n.high,n.low),e-this._changeScale(o.high,o.low))}_highLowAtScale(t,e,n){if(t.length===0)return new Xt(0,-1);let o=e-n;return new Xt(t.indexStart>>o,t.indexEnd>>o)}_mergeBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++)this._incrementIndexBy(t,s+a>>i,n.at(a))}_diffBuckets(t,e,n,o){let s=n.offset,i=e.scale-o;for(let a=0;a<n.length;a++){let E=(s+a>>i)-t.indexBase;E<0&&(E+=t.backing.length),t.decrementBucket(E,n.at(a))}t.trim()}},Ie=class{_maxSize;_recordMinMax;kind=q.EXPONENTIAL_HISTOGRAM;constructor(t,e){this._maxSize=t,this._recordMinMax=e}createAccumulation(t){return new Yr(t,this._maxSize,this._recordMinMax)}merge(t,e){let n=e.clone();return n.merge(t),n}diff(t,e){let n=e.clone();return n.diff(t),n}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:at.EXPONENTIAL_HISTOGRAM,dataPoints:n.map(([s,i])=>{let a=i.toPointValue(),_=t.type===f.GAUGE||t.type===f.UP_DOWN_COUNTER||t.type===f.OBSERVABLE_GAUGE||t.type===f.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:s,startTime:i.startTime,endTime:o,value:{min:a.hasMinMax?a.min:void 0,max:a.hasMinMax?a.max:void 0,sum:_?void 0:a.sum,positive:{offset:a.positive.offset,bucketCounts:a.positive.bucketCounts},negative:{offset:a.negative.offset,bucketCounts:a.negative.bucketCounts},count:a.count,scale:a.scale,zeroCount:a.zeroCount}}})}}};var Vt=O(P());var zt=class{startTime;_current;sampleTime;constructor(t,e=0,n=[0,0]){this.startTime=t,this._current=e,this.sampleTime=n}record(t){this._current=t,this.sampleTime=(0,Vt.millisToHrTime)(Date.now())}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},xe=class{kind=q.LAST_VALUE;createAccumulation(t){return new zt(t)}merge(t,e){let n=(0,Vt.hrTimeToMicroseconds)(e.sampleTime)>=(0,Vt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new zt(t.startTime,n.toPointValue(),n.sampleTime)}diff(t,e){let n=(0,Vt.hrTimeToMicroseconds)(e.sampleTime)>=(0,Vt.hrTimeToMicroseconds)(t.sampleTime)?e:t;return new zt(e.startTime,n.toPointValue(),n.sampleTime)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:at.GAUGE,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()}))}}};var Ot=class{startTime;monotonic;_current;reset;constructor(t,e,n=0,o=!1){this.startTime=t,this.monotonic=e,this._current=n,this.reset=o}record(t){this.monotonic&&t<0||(this._current+=t)}setStartTime(t){this.startTime=t}toPointValue(){return this._current}},Qt=class{monotonic;kind=q.SUM;constructor(t){this.monotonic=t}createAccumulation(t){return new Ot(t,this.monotonic)}merge(t,e){let n=t.toPointValue(),o=e.toPointValue();return e.reset?new Ot(e.startTime,this.monotonic,o,e.reset):new Ot(t.startTime,this.monotonic,n+o)}diff(t,e){let n=t.toPointValue(),o=e.toPointValue();return this.monotonic&&n>o?new Ot(e.startTime,this.monotonic,o,!0):new Ot(e.startTime,this.monotonic,o-n)}toMetricData(t,e,n,o){return{descriptor:t,aggregationTemporality:e,dataPointType:at.SUM,dataPoints:n.map(([s,i])=>({attributes:s,startTime:i.startTime,endTime:o,value:i.toPointValue()})),isMonotonic:this.monotonic}}};var mo=class r{static DEFAULT_INSTANCE=new Me;createAggregator(t){return r.DEFAULT_INSTANCE}};var fo=class r{static MONOTONIC_INSTANCE=new Qt(!0);static NON_MONOTONIC_INSTANCE=new Qt(!1);createAggregator(t){switch(t.type){case f.COUNTER:case f.OBSERVABLE_COUNTER:case f.HISTOGRAM:return r.MONOTONIC_INSTANCE;default:return r.NON_MONOTONIC_INSTANCE}}};var ho=class r{static DEFAULT_INSTANCE=new xe;createAggregator(t){return r.DEFAULT_INSTANCE}};var Ro=class r{static DEFAULT_INSTANCE=new $t([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);createAggregator(t){return r.DEFAULT_INSTANCE}};var De=class{_recordMinMax;_boundaries;constructor(t,e=!0){if(this._recordMinMax=e,t==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");t=t.concat(),t=t.sort((s,i)=>s-i);let n=t.lastIndexOf(-1/0),o=t.indexOf(1/0);o===-1&&(o=void 0),this._boundaries=t.slice(n+1,o)}createAggregator(t){return new $t(this._boundaries,this._recordMinMax)}},Ue=class{_maxSize;_recordMinMax;constructor(t=160,e=!0){this._maxSize=t,this._recordMinMax=e}createAggregator(t){return new Ie(this._maxSize,this._recordMinMax)}},Oo=class{_resolve(t){switch(t.type){case f.COUNTER:case f.UP_DOWN_COUNTER:case f.OBSERVABLE_COUNTER:case f.OBSERVABLE_UP_DOWN_COUNTER:return No;case f.GAUGE:case f.OBSERVABLE_GAUGE:return Mo;case f.HISTOGRAM:return t.advice.explicitBucketBoundaries?new De(t.advice.explicitBucketBoundaries):Po}return c.diag.warn(`Unable to recognize instrument type: ${t.type}`),go}createAggregator(t){return this._resolve(t).createAggregator(t)}},go=new mo,No=new fo,Mo=new ho,Po=new Ro,ey=new Ue,ip=new Oo;var _t;(function(r){r[r.DEFAULT=0]="DEFAULT",r[r.DROP=1]="DROP",r[r.SUM=2]="SUM",r[r.LAST_VALUE=3]="LAST_VALUE",r[r.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",r[r.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(_t||(_t={}));function kr(r){switch(r.type){case _t.DEFAULT:return ip;case _t.DROP:return go;case _t.SUM:return No;case _t.LAST_VALUE:return Mo;case _t.EXPONENTIAL_HISTOGRAM:{let t=r;return new Ue(t.options?.maxSize,t.options?.recordMinMax)}case _t.EXPLICIT_BUCKET_HISTOGRAM:{let t=r;return t.options==null?Po:new De(t.options?.boundaries,t.options?.recordMinMax)}default:throw new Error("Unsupported Aggregation")}}d();var Kr=class{_registeredViews=[];addView(t){this._registeredViews.push(t)}findViews(t,e){return this._registeredViews.filter(o=>this._matchInstrument(o.instrumentSelector,t)&&this._matchMeter(o.meterSelector,e))}_matchInstrument(t,e){return(t.getType()===void 0||e.type===t.getType())&&t.getNameFilter().match(e.name)&&t.getUnitFilter().match(e.unit)}_matchMeter(t,e){return t.getNameFilter().match(e.name)&&(e.version===void 0||t.getVersionFilter().match(e.version))&&(e.schemaUrl===void 0||t.getSchemaUrlFilter().match(e.schemaUrl))}};d();function Et(r,t,e){return JL(r)||c.diag.warn(`Invalid metric name: "${r}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:r,type:t,description:e?.description??"",unit:e?.unit??"",valueType:e?.valueType??c.ValueType.DOUBLE,advice:e?.advice??{}}}function ap(r,t){return{name:r.name??t.name,description:r.description??t.description,type:t.type,unit:t.unit,valueType:t.valueType,advice:t.advice}}function cp(r,t){return tp(r.name,t.name)&&r.unit===t.unit&&r.type===t.type&&r.valueType===t.valueType}var QL=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function JL(r){return r.match(QL)!=null}d();var _p=O(P()),Jt=class{_writableMetricStorage;_descriptor;constructor(t,e){this._writableMetricStorage=t,this._descriptor=e}_record(t,e={},n=c.context.active()){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${t}`);return}this._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._writableMetricStorage.record(t,e,n,(0,_p.millisToHrTime)(Date.now()))}},jr=class extends Jt{add(t,e,n){this._record(t,e,n)}},Wr=class extends Jt{add(t,e,n){if(t<0){c.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},qr=class extends Jt{record(t,e,n){this._record(t,e,n)}},$r=class extends Jt{record(t,e,n){if(t<0){c.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${t}`);return}this._record(t,e,n)}},Zt=class{_observableRegistry;_metricStorages;_descriptor;constructor(t,e,n){this._observableRegistry=n,this._descriptor=t,this._metricStorages=e}addCallback(t){this._observableRegistry.addCallback(t,this)}removeCallback(t){this._observableRegistry.removeCallback(t,this)}},Xr=class extends Zt{},zr=class extends Zt{},Qr=class extends Zt{};function be(r){return r instanceof Zt}var Jr=class{_meterSharedState;constructor(t){this._meterSharedState=t}createGauge(t,e){let n=Et(t,f.GAUGE,e),o=this._meterSharedState.registerMetricStorage(n);return new qr(o,n)}createHistogram(t,e){let n=Et(t,f.HISTOGRAM,e),o=this._meterSharedState.registerMetricStorage(n);return new $r(o,n)}createCounter(t,e){let n=Et(t,f.COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new Wr(o,n)}createUpDownCounter(t,e){let n=Et(t,f.UP_DOWN_COUNTER,e),o=this._meterSharedState.registerMetricStorage(n);return new jr(o,n)}createObservableGauge(t,e){let n=Et(t,f.OBSERVABLE_GAUGE,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new zr(n,o,this._meterSharedState.observableRegistry)}createObservableCounter(t,e){let n=Et(t,f.OBSERVABLE_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Xr(n,o,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(t,e){let n=Et(t,f.OBSERVABLE_UP_DOWN_COUNTER,e),o=this._meterSharedState.registerAsyncMetricStorage(n);return new Qr(n,o,this._meterSharedState.observableRegistry)}addBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.addBatchCallback(t,e)}removeBatchObservableCallback(t,e){this._meterSharedState.observableRegistry.removeBatchCallback(t,e)}};var te=class{_instrumentDescriptor;constructor(t){this._instrumentDescriptor=t}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(t){this._instrumentDescriptor=Et(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:t,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};var Co=class{_hash;_valueMap=new Map;_keyMap=new Map;constructor(t){this._hash=t}get(t,e){return e??=this._hash(t),this._valueMap.get(e)}getOrDefault(t,e){let n=this._hash(t);if(this._valueMap.has(n))return this._valueMap.get(n);let o=e();return this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,o),o}set(t,e,n){n??=this._hash(t),this._keyMap.has(n)||this._keyMap.set(n,t),this._valueMap.set(n,e)}has(t,e){return e??=this._hash(t),this._valueMap.has(e)}*keys(){let t=this._keyMap.entries(),e=t.next();for(;e.done!==!0;)yield[e.value[1],e.value[0]],e=t.next()}*entries(){let t=this._valueMap.entries(),e=t.next();for(;e.done!==!0;)yield[this._keyMap.get(e.value[0]),e.value[1],e.value[0]],e=t.next()}get size(){return this._valueMap.size}},H=class extends Co{constructor(){super(Br)}};var ee=class{_aggregator;_activeCollectionStorage=new H;_cumulativeMemoStorage=new H;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;constructor(t,e){this._aggregator=t,this._cardinalityLimit=(e??2e3)-1,this._overflowHashCode=Br(this._overflowAttributes)}record(t,e,n,o){let s=this._activeCollectionStorage.get(e);if(!s){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(o))?.record(t);return}s=this._aggregator.createAccumulation(o),this._activeCollectionStorage.set(e,s)}s?.record(t)}batchCumulate(t,e){Array.from(t.entries()).forEach(([n,o,s])=>{let i=this._aggregator.createAccumulation(e);i?.record(o);let a=i;if(this._cumulativeMemoStorage.has(n,s)){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit&&(n=this._overflowAttributes,s=this._overflowHashCode,this._cumulativeMemoStorage.has(n,s))){let _=this._cumulativeMemoStorage.get(n,s);a=this._aggregator.diff(_,i)}if(this._activeCollectionStorage.has(n,s)){let _=this._activeCollectionStorage.get(n,s);a=this._aggregator.merge(_,a)}this._cumulativeMemoStorage.set(n,i,s),this._activeCollectionStorage.set(n,a,s)})}collect(){let t=this._activeCollectionStorage;return this._activeCollectionStorage=new H,t}};var re=class r{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(t,e){this._aggregator=t,e.forEach(n=>{this._unreportedAccumulations.set(n,[])})}buildMetrics(t,e,n,o){this._stashAccumulations(n);let s=this._getMergedUnreportedAccumulations(t),i=s,a;if(this._reportHistory.has(t)){let E=this._reportHistory.get(t),T=E.collectionTime;a=E.aggregationTemporality,a===vr.CUMULATIVE?i=r.merge(E.accumulations,s,this._aggregator):i=r.calibrateStartTime(E.accumulations,s,T)}else a=t.selectAggregationTemporality(e.type);this._reportHistory.set(t,{accumulations:i,collectionTime:o,aggregationTemporality:a});let _=ZL(i);if(_.length!==0)return this._aggregator.toMetricData(e,a,_,o)}_stashAccumulations(t){let e=this._unreportedAccumulations.keys();for(let n of e){let o=this._unreportedAccumulations.get(n);o===void 0&&(o=[],this._unreportedAccumulations.set(n,o)),o.push(t)}}_getMergedUnreportedAccumulations(t){let e=new H,n=this._unreportedAccumulations.get(t);if(this._unreportedAccumulations.set(t,[]),n===void 0)return e;for(let o of n)e=r.merge(e,o,this._aggregator);return e}static merge(t,e,n){let o=t,s=e.entries(),i=s.next();for(;i.done!==!0;){let[a,_,E]=i.value;if(t.has(a,E)){let T=t.get(a,E),l=n.merge(T,_);o.set(a,l,E)}else o.set(a,_,E);i=s.next()}return o}static calibrateStartTime(t,e,n){for(let[o,s]of t.keys())e.get(o,s)?.setStartTime(n);return e}};function ZL(r){return Array.from(r.entries())}var Zr=class extends te{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(t,e,n,o,s){super(t),this._attributesProcessor=n,this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new ee(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new re(e,o)}record(t,e){let n=new H;Array.from(t.entries()).forEach(([o,s])=>{n.set(this._attributesProcessor.process(o),s)}),this._deltaMetricStorage.batchCumulate(n,e)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};d();function Lo(r,t){let e="";return r.unit!==t.unit&&(e+=` - Unit '${r.unit}' does not match '${t.unit}'
|
|
5
|
+
`),r.type!==t.type&&(e+=` - Type '${r.type}' does not match '${t.type}'
|
|
6
|
+
`),r.valueType!==t.valueType&&(e+=` - Value Type '${r.valueType}' does not match '${t.valueType}'
|
|
7
|
+
`),r.description!==t.description&&(e+=` - Description '${r.description}' does not match '${t.description}'
|
|
8
|
+
`),e}function tI(r,t){return` - use valueType '${r.valueType}' on instrument creation or use an instrument name other than '${t.name}'`}function eI(r,t){return` - use unit '${r.unit}' on instrument creation or use an instrument name other than '${t.name}'`}function rI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'`}function nI(r,t){let e={name:t.name,type:t.type,unit:t.unit},n=JSON.stringify(e);return` - create a new view with a name other than '${r.name}' and InstrumentSelector '${n}'
|
|
9
|
+
- OR - create a new view with the name ${r.name} and description '${r.description}' and InstrumentSelector ${n}
|
|
10
|
+
- OR - create a new view with the name ${t.name} and description '${r.description}' and InstrumentSelector ${n}`}function Io(r,t){return r.valueType!==t.valueType?tI(r,t):r.unit!==t.unit?eI(r,t):r.type!==t.type?rI(r,t):r.description!==t.description?nI(r,t):""}var tn=class r{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new r}getStorages(t){let e=[];for(let o of this._sharedRegistry.values())e=e.concat(o);let n=this._perCollectorRegistry.get(t);if(n!=null)for(let o of n.values())e=e.concat(o);return e}register(t){this._registerStorage(t,this._sharedRegistry)}registerForCollector(t,e){let n=this._perCollectorRegistry.get(t);n==null&&(n=new Map,this._perCollectorRegistry.set(t,n)),this._registerStorage(e,n)}findOrUpdateCompatibleStorage(t){let e=this._sharedRegistry.get(t.name);return e===void 0?null:this._findOrUpdateCompatibleStorage(t,e)}findOrUpdateCompatibleCollectorStorage(t,e){let n=this._perCollectorRegistry.get(t);if(n===void 0)return null;let o=n.get(e.name);return o===void 0?null:this._findOrUpdateCompatibleStorage(e,o)}_registerStorage(t,e){let n=t.getInstrumentDescriptor(),o=e.get(n.name);if(o===void 0){e.set(n.name,[t]);return}o.push(t)}_findOrUpdateCompatibleStorage(t,e){let n=null;for(let o of e){let s=o.getInstrumentDescriptor();cp(s,t)?(s.description!==t.description&&(t.description.length>s.description.length&&o.updateDescription(t.description),c.diag.warn("A view or instrument with the name ",t.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
|
11
11
|
`,`Details:
|
|
12
|
-
`,
|
|
13
|
-
To resolve the conflict:`,
|
|
12
|
+
`,Lo(s,t),`The longer description will be used.
|
|
13
|
+
To resolve the conflict:`,Io(s,t))),n=o):c.diag.warn("A view or instrument with the name ",t.name,` has already been registered and is incompatible with another registered view.
|
|
14
14
|
`,`Details:
|
|
15
|
-
`,
|
|
16
|
-
`,On(a,t))}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return i},e}();var va=function(){function e(t){this._backingStorages=t}return e.prototype.record=function(t,r,n,o){this._backingStorages.forEach(function(i){i.record(t,r,n,o)})},e}();E();E();var Aa=function(){function e(t,r){this._instrumentName=t,this._valueType=r,this._buffer=new Q}return e.prototype.observe=function(t,r){if(r===void 0&&(r={}),typeof t!="number"){l.diag.warn("non-number value provided to metric "+this._instrumentName+": "+t);return}this._valueType===l.ValueType.INT&&!Number.isInteger(t)&&(l.diag.warn("INT value type cannot accept a floating-point value for "+this._instrumentName+", ignoring the fractional digits."),t=Math.trunc(t),!Number.isInteger(t))||this._buffer.set(r,t)},e}();var Ra=function(){function e(){this._buffer=new Map}return e.prototype.observe=function(t,r,n){if(n===void 0&&(n={}),!!fe(t)){var o=this._buffer.get(t);if(o==null&&(o=new Q,this._buffer.set(t,o)),typeof r!="number"){l.diag.warn("non-number value provided to metric "+t._descriptor.name+": "+r);return}t._descriptor.valueType===l.ValueType.INT&&!Number.isInteger(r)&&(l.diag.warn("INT value type cannot accept a floating-point value for "+t._descriptor.name+", ignoring the fractional digits."),r=Math.trunc(r),!Number.isInteger(r))||o.set(n,r)}},e}();var Ln=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(f){try{a(n.next(f))}catch(p){s(p)}}function c(f){try{a(n.throw(f))}catch(p){s(p)}}function a(f){f.done?i(f.value):o(f.value).then(u,c)}a((n=n.apply(e,t||[])).next())})},Pn=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(f){a=[6,f],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Oa=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},ba=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},La=function(){function e(){this._callbacks=[],this._batchCallbacks=[]}return e.prototype.addCallback=function(t,r){var n=this._findCallback(t,r);n>=0||this._callbacks.push({callback:t,instrument:r})},e.prototype.removeCallback=function(t,r){var n=this._findCallback(t,r);n<0||this._callbacks.splice(n,1)},e.prototype.addBatchCallback=function(t,r){var n=new Set(r.filter(fe));if(n.size===0){l.diag.error("BatchObservableCallback is not associated with valid instruments",r);return}var o=this._findBatchCallback(t,n);o>=0||this._batchCallbacks.push({callback:t,instruments:n})},e.prototype.removeBatchCallback=function(t,r){var n=new Set(r.filter(fe)),o=this._findBatchCallback(t,n);o<0||this._batchCallbacks.splice(o,1)},e.prototype.observe=function(t,r){return Ln(this,void 0,void 0,function(){var n,o,i,s;return Pn(this,function(u){switch(u.label){case 0:return n=this._observeCallbacks(t,r),o=this._observeBatchCallbacks(t,r),[4,na(ba(ba([],Oa(n),!1),Oa(o),!1))];case 1:return i=u.sent(),s=i.filter(ia).map(function(c){return c.reason}),[2,s]}})})},e.prototype._observeCallbacks=function(t,r){var n=this;return this._callbacks.map(function(o){var i=o.callback,s=o.instrument;return Ln(n,void 0,void 0,function(){var u,c;return Pn(this,function(a){switch(a.label){case 0:return u=new Aa(s._descriptor.name,s._descriptor.valueType),c=Promise.resolve(i(u)),r!=null&&(c=yn(c,r)),[4,c];case 1:return a.sent(),s._metricStorages.forEach(function(f){f.record(u._buffer,t)}),[2]}})})})},e.prototype._observeBatchCallbacks=function(t,r){var n=this;return this._batchCallbacks.map(function(o){var i=o.callback,s=o.instruments;return Ln(n,void 0,void 0,function(){var u,c;return Pn(this,function(a){switch(a.label){case 0:return u=new Ra,c=Promise.resolve(i(u)),r!=null&&(c=yn(c,r)),[4,c];case 1:return a.sent(),s.forEach(function(f){var p=u._buffer.get(f);p!=null&&f._metricStorages.forEach(function(d){d.record(p,t)})}),[2]}})})})},e.prototype._findCallback=function(t,r){return this._callbacks.findIndex(function(n){return n.callback===t&&n.instrument===r})},e.prototype._findBatchCallback=function(t,r){return this._batchCallbacks.findIndex(function(n){return n.callback===t&&oa(n.instruments,r)})},e}();var Ef=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Pa=function(e){Ef(t,e);function t(r,n,o,i){var s=e.call(this,r)||this;return s._attributesProcessor=o,s._deltaMetricStorage=new ur(n),s._temporalMetricStorage=new cr(n,i),s}return t.prototype.record=function(r,n,o,i){n=this._attributesProcessor.process(n,o),this._deltaMetricStorage.record(r,n,o,i)},t.prototype.collect=function(r,n){var o=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(r,this._instrumentDescriptor,o,n)},t}(sr);var Ia=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),lr=function(){function e(){}return e.Noop=function(){return Tf},e}();var mf=function(e){Ia(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(r,n){return r},t}(lr);var uE=function(e){Ia(t,e);function t(r){var n=e.call(this)||this;return n._allowedAttributeNames=r,n}return t.prototype.process=function(r,n){var o=this,i={};return Object.keys(r).filter(function(s){return o._allowedAttributeNames.includes(s)}).forEach(function(s){return i[s]=r[s]}),i},t}(lr);var Tf=new mf;var Sf=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(f){try{a(n.next(f))}catch(p){s(p)}}function c(f){try{a(n.throw(f))}catch(p){s(p)}}function a(f){f.done?i(f.value):o(f.value).then(u,c)}a((n=n.apply(e,t||[])).next())})},gf=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(f){a=[6,f],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},yf=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},Ca=function(){function e(t,r){this._meterProviderSharedState=t,this._instrumentationScope=r,this.metricStorageRegistry=new ya,this.observableRegistry=new La,this.meter=new ma(this)}return e.prototype.registerMetricStorage=function(t){var r=this._registerMetricStorage(t,Pa);return r.length===1?r[0]:new va(r)},e.prototype.registerAsyncMetricStorage=function(t){var r=this._registerMetricStorage(t,ga);return r},e.prototype.collect=function(t,r,n){return Sf(this,void 0,void 0,function(){var o,i,s;return gf(this,function(u){switch(u.label){case 0:return[4,this.observableRegistry.observe(r,n?.timeoutMillis)];case 1:return o=u.sent(),i=this.metricStorageRegistry.getStorages(t),i.length===0?[2,null]:(s=i.map(function(c){return c.collect(t,r)}).filter(ta),s.length===0?[2,{errors:o}]:[2,{scopeMetrics:{scope:this._instrumentationScope,metrics:s},errors:o}])}})})},e.prototype._registerMetricStorage=function(t,r){var n=this,o=this._meterProviderSharedState.viewRegistry.findViews(t,this._instrumentationScope),i=o.map(function(c){var a=sa(c,t),f=n.metricStorageRegistry.findOrUpdateCompatibleStorage(a);if(f!=null)return f;var p=c.aggregation.createAggregator(a),d=new r(a,p,c.attributesProcessor,n._meterProviderSharedState.metricCollectors);return n.metricStorageRegistry.register(d),d});if(i.length===0){var s=this._meterProviderSharedState.selectAggregations(t.type),u=s.map(function(c){var a=yf(c,2),f=a[0],p=a[1],d=n.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(f,t);if(d!=null)return d;var m=p.createAggregator(t),g=new r(t,m,lr.Noop(),[f]);return n.metricStorageRegistry.registerForCollector(f,g),g});i=i.concat(u)}return i},e}();var vf=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Na=function(){function e(t){this.resource=t,this.viewRegistry=new ca,this.metricCollectors=[],this.meterSharedStates=new Map}return e.prototype.getMeterSharedState=function(t){var r=ra(t),n=this.meterSharedStates.get(r);return n==null&&(n=new Ca(this,t),this.meterSharedStates.set(r,n)),n},e.prototype.selectAggregations=function(t){var r,n,o=[];try{for(var i=vf(this.metricCollectors),s=i.next();!s.done;s=i.next()){var u=s.value;o.push([u,u.selectAggregation(t)])}}catch(c){r={error:c}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o},e}();var wa=v(P()),fr=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(f){try{a(n.next(f))}catch(p){s(p)}}function c(f){try{a(n.throw(f))}catch(p){s(p)}}function a(f){f.done?i(f.value):o(f.value).then(u,c)}a((n=n.apply(e,t||[])).next())})},pr=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(f){a=[6,f],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Af=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i},Rf=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},Ma=function(){function e(t,r){this._sharedState=t,this._metricReader=r}return e.prototype.collect=function(t){return fr(this,void 0,void 0,function(){var r,n,o,i,s=this;return pr(this,function(u){switch(u.label){case 0:return r=(0,wa.millisToHrTime)(Date.now()),n=[],o=[],i=Array.from(this._sharedState.meterSharedStates.values()).map(function(c){return fr(s,void 0,void 0,function(){var a;return pr(this,function(f){switch(f.label){case 0:return[4,c.collect(this,r,t)];case 1:return a=f.sent(),a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&o.push.apply(o,Rf([],Af(a.errors),!1)),[2]}})})}),[4,Promise.all(i)];case 1:return u.sent(),[2,{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:o}]}})})},e.prototype.forceFlush=function(t){return fr(this,void 0,void 0,function(){return pr(this,function(r){switch(r.label){case 0:return[4,this._metricReader.forceFlush(t)];case 1:return r.sent(),[2]}})})},e.prototype.shutdown=function(t){return fr(this,void 0,void 0,function(){return pr(this,function(r){switch(r.label){case 0:return[4,this._metricReader.shutdown(t)];case 1:return r.sent(),[2]}})})},e.prototype.selectAggregationTemporality=function(t){return this._metricReader.selectAggregationTemporality(t)},e.prototype.selectAggregation=function(t){return this._metricReader.selectAggregation(t)},e}();var xa=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function u(f){try{a(n.next(f))}catch(p){s(p)}}function c(f){try{a(n.throw(f))}catch(p){s(p)}}function a(f){f.done?i(f.value):o(f.value).then(u,c)}a((n=n.apply(e,t||[])).next())})},Da=function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(a){return function(f){return c([a,f])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=a[0]&2?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,o=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1],i=a;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(a);break}i[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(f){a=[6,f],o=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Of=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},In=function(){function e(t){var r,n,o;this._shutdown=!1;var i=H.default().merge((o=t?.resource)!==null&&o!==void 0?o:H.empty());if(this._sharedState=new Na(i),t?.views!=null&&t.views.length>0)try{for(var s=Of(t.views),u=s.next();!u.done;u=s.next()){var c=u.value;this._sharedState.viewRegistry.addView(c)}}catch(a){r={error:a}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}return e.prototype.getMeter=function(t,r,n){return r===void 0&&(r=""),n===void 0&&(n={}),this._shutdown?(l.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,l.createNoopMeter)()):this._sharedState.getMeterSharedState({name:t,version:r,schemaUrl:n.schemaUrl}).meter},e.prototype.addMetricReader=function(t){var r=new Ma(this._sharedState,t);t.setMetricProducer(r),this._sharedState.metricCollectors.push(r)},e.prototype.shutdown=function(t){return xa(this,void 0,void 0,function(){return Da(this,function(r){switch(r.label){case 0:return this._shutdown?(l.diag.warn("shutdown may only be called once per MeterProvider"),[2]):(this._shutdown=!0,[4,Promise.all(this._sharedState.metricCollectors.map(function(n){return n.shutdown(t)}))]);case 1:return r.sent(),[2]}})})},e.prototype.forceFlush=function(t){return xa(this,void 0,void 0,function(){return Da(this,function(r){switch(r.label){case 0:return this._shutdown?(l.diag.warn("invalid attempt to force flush after MeterProvider shutdown"),[2]):[4,Promise.all(this._sharedState.metricCollectors.map(function(n){return n.forceFlush(t)}))];case 1:return r.sent(),[2]}})})},e}();var Nr=v(Oe(),1),Iu=v(Va(),1),Ot=v(P(),1);var Ha="http.method",Fa="http.url",hr="http.host",ja="http.scheme",wn="http.status_code",ka="http.user_agent",Mn="http.response_content_length_uncompressed",qa="net.peer.port",Xa="net.peer.name";var Ka="service.name",Wa="service.version";E();var Nf=Symbol.for("@vercel/request-context");function nt(){return globalThis[Nf]?.get()}function Er(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>r!==void 0))}function Ya(e){return e?e.split("::").at(-1):void 0}function za(e=nt(),t){if(!e)return;let r=t?Mf(t,e.headers):void 0;return Er({[hr]:e.headers.host,[ka]:e.headers["user-agent"],"http.referer":e.headers.referer,"vercel.request_id":Ya(e.headers["x-vercel-id"]),"vercel.matched_path":e.headers["x-matched-path"],"vercel.edge_region":process.env.VERCEL_REGION,...r})}var wf={keys(e){return[]},get(e,t){return e[t.toLocaleLowerCase()]}};function Mf(e,t){if(typeof e=="function")return e(t,wf);let r={};for(let[n,o]of Object.entries(e)){let i=t[o.toLocaleLowerCase()];i!==void 0&&(r[n]=i)}return r}E();function zt(e){return(e&l.TraceFlags.SAMPLED)!==0}var mr=class{constructor(t,r){this.processors=t;this.attributesFromHeaders=r;this.rootSpanIds=new Map;this.waitSpanEnd=new Map}forceFlush(){return Promise.all(this.processors.map(t=>t.forceFlush().catch(r=>{l.diag.error("@vercel/otel: forceFlush failed:",r)}))).then(()=>{})}shutdown(){return Promise.all(this.processors.map(t=>t.shutdown().catch(()=>{}))).then(()=>{})}onStart(t,r){let{traceId:n,spanId:o,traceFlags:i}=t.spanContext(),s=!t.parentSpanId||!this.rootSpanIds.has(n);if(s?this.rootSpanIds.set(n,{rootSpanId:o,open:[]}):this.rootSpanIds.get(n)?.open.push(t),s&&zt(i)){let u=nt(),c=za(u,this.attributesFromHeaders);c&&t.setAttributes(c),u&&u.waitUntil(async()=>{if(this.rootSpanIds.has(n)){let a=new Promise(p=>{this.waitSpanEnd.set(n,p)}),f;await Promise.race([a,new Promise(p=>{f=setTimeout(()=>{this.waitSpanEnd.delete(n),p(void 0)},50)})]),f&&clearTimeout(f)}return this.forceFlush()})}for(let u of this.processors)u.onStart(t,r)}onEnd(t){let{traceId:r,spanId:n,traceFlags:o}=t.spanContext(),i=zt(o),s=this.rootSpanIds.get(r),u=s?.rootSpanId===n;if(i){let c=Df(t);c&&Object.assign(t.attributes,c)}if(u){if(this.rootSpanIds.delete(r),s.open.length>0){for(let c of s.open)if(!c.ended&&c.spanContext().spanId!==n)try{c.end()}catch(a){l.diag.error("@vercel/otel: onEnd failed:",a)}}}else if(s)for(let c=0;c<s.open.length;c++)s.open[c]?.spanContext().spanId===n&&s.open.splice(c,1);for(let c of this.processors)c.onEnd(t);if(u){let c=this.waitSpanEnd.get(r);c&&(this.waitSpanEnd.delete(r),c())}}},xf={[l.SpanKind.INTERNAL]:"internal",[l.SpanKind.SERVER]:"server",[l.SpanKind.CLIENT]:"client",[l.SpanKind.PRODUCER]:"producer",[l.SpanKind.CONSUMER]:"consumer"};function Df(e){let{kind:t,attributes:r}=e,{"operation.name":n,"resource.name":o,"span.type":i,"next.span_type":s,"http.method":u,"http.route":c}=r;if(n)return;let a=o??(u&&typeof u=="string"&&c&&typeof c=="string"?`${u} ${c}`:c);if(e.kind===l.SpanKind.SERVER&&u&&c&&typeof u=="string"&&typeof c=="string")return{"operation.name":"web.request","resource.name":a};let f=e.instrumentationLibrary.name,p=s??i;if(p&&typeof p=="string"){let d=$a(f,p);return c?{"operation.name":d,"resource.name":a}:{"operation.name":d}}return{"operation.name":$a(f,t===l.SpanKind.INTERNAL?"":xf[t])}}function $a(e,t){if(!e)return t;let r=e.replace(/[ @./]/g,"_");return r.startsWith("_")&&(r=r.slice(1)),t?`${r}.${t}`:r}var fs=v(Fn(),1);var ls=v(cs(),1);E();var $t=class extends ls.OTLPExporterBase{constructor(t={}){super(t),t.headers&&(this._headers=t.headers)}onShutdown(){l.diag.debug("@vercel/otel/otlp: onShutdown")}onInit(){l.diag.debug("@vercel/otel/otlp: onInit")}send(t,r,n){if(this._shutdownOnce.isCalled){l.diag.debug("@vercel/otel/otlp: Shutdown already started. Cannot send objects");return}let o=this.convert(t),i,s,u;try{({body:i,contentType:s,headers:u}=this.toMessage(o))}catch(a){l.diag.warn("@vercel/otel/otlp: no proto",a);return}let c=fetch(this.url,{method:"POST",body:i,headers:{...this._headers,...u,"Content-Type":s,"User-Agent":"OTel-OTLP-Exporter-JavaScript/0.46.0"},next:{internal:!0}}).then(a=>{l.diag.debug("@vercel/otel/otlp: onSuccess",a.status,a.statusText),r(),a.arrayBuffer().catch(()=>{})}).catch(a=>{l.diag.error("@vercel/otel/otlp: onError",a),n(a)}).finally(()=>{let a=this._sendingPromises.indexOf(c);this._sendingPromises.splice(a,1)});this._sendingPromises.push(c)}getDefaultUrl(t){throw new Error("Method not implemented.")}};var rp="v1/traces",np=`http://localhost:4318/${rp}`;function yr(e){return typeof e.url=="string"?e.url:np}var Qt=class{constructor(t={}){this.impl=new Xn(t)}export(t,r){this.impl.export(t,r)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},Xn=class extends $t{convert(t){return(0,fs.createExportTraceServiceRequest)(t,{useHex:!0,useLongBits:!1})}toMessage(t){return{body:JSON.stringify(t),contentType:"application/json"}}getDefaultUrl(t){return yr(t)}};var du=v(Fn(),1);var lu=v(cu(),1);function fu(e){let t=new lu.Writer;return _p(e,t),t.finish()}function _p(e,t){if(e.resourceSpans!=null&&e.resourceSpans.length)for(let r=0;r<e.resourceSpans.length;++r)hp(e.resourceSpans[r],t.uint32(10).fork()).ldelim();return t}function hp(e,t){if(e.resource!=null&&Ep(e.resource,t.uint32(10).fork()).ldelim(),e.scopeSpans!=null&&e.scopeSpans.length)for(let r=0;r<e.scopeSpans.length;++r)mp(e.scopeSpans[r],t.uint32(18).fork()).ldelim();return e.schemaUrl!=null&&t.uint32(26).string(e.schemaUrl),t}function Ep(e,t){if(e.attributes!=null&&e.attributes.length)for(let r=0;r<e.attributes.length;++r)Jt(e.attributes[r],t.uint32(10).fork()).ldelim();return e.droppedAttributesCount!=null&&t.uint32(16).uint32(e.droppedAttributesCount),t}function mp(e,t){if(e.scope!=null&&gp(e.scope,t.uint32(10).fork()).ldelim(),e.spans!=null&&e.spans.length)for(let r=0;r<e.spans.length;++r)yp(e.spans[r],t.uint32(18).fork()).ldelim();return e.schemaUrl!=null&&t.uint32(26).string(e.schemaUrl),t}function Jt(e,t){return e.key!=null&&t.uint32(10).string(e.key),e.value!=null&&pu(e.value,t.uint32(18).fork()).ldelim(),t}function pu(e,t){return e.stringValue!=null&&t.uint32(10).string(e.stringValue),e.boolValue!=null&&t.uint32(16).bool(e.boolValue),e.intValue!=null&&t.uint32(24).int64(e.intValue),e.doubleValue!=null&&t.uint32(33).double(e.doubleValue),e.arrayValue!=null&&Tp(e.arrayValue,t.uint32(42).fork()).ldelim(),e.kvlistValue!=null&&Sp(e.kvlistValue,t.uint32(50).fork()).ldelim(),e.bytesValue!=null&&t.uint32(58).bytes(e.bytesValue),t}function Tp(e,t){if(e.values!=null&&e.values.length)for(let r=0;r<e.values.length;++r)pu(e.values[r],t.uint32(10).fork()).ldelim();return t}function Sp(e,t){if(e.values!=null&&e.values.length)for(let r=0;r<e.values.length;++r)Jt(e.values[r],t.uint32(10).fork()).ldelim();return t}function gp(e,t){if(e.name!=null&&t.uint32(10).string(e.name),e.version!=null&&t.uint32(18).string(e.version),e.attributes!=null&&e.attributes.length)for(let r=0;r<e.attributes.length;++r)Jt(e.attributes[r],t.uint32(26).fork()).ldelim();return e.droppedAttributesCount!=null&&t.uint32(32).uint32(e.droppedAttributesCount),t}function yp(e,t){if(e.traceId!=null&&t.uint32(10).bytes(e.traceId),e.spanId!=null&&t.uint32(18).bytes(e.spanId),e.traceState!=null&&t.uint32(26).string(e.traceState),e.parentSpanId!=null&&t.uint32(34).bytes(e.parentSpanId),e.name!=null&&t.uint32(42).string(e.name),e.kind!=null&&t.uint32(48).int32(e.kind),e.startTimeUnixNano!=null&&t.uint32(57).fixed64(e.startTimeUnixNano),e.endTimeUnixNano!=null&&t.uint32(65).fixed64(e.endTimeUnixNano),e.attributes!=null&&e.attributes.length)for(let r=0;r<e.attributes.length;++r)Jt(e.attributes[r],t.uint32(74).fork()).ldelim();if(e.droppedAttributesCount!=null&&t.uint32(80).uint32(e.droppedAttributesCount),e.events!=null&&e.events.length)for(let r=0;r<e.events.length;++r)Ap(e.events[r],t.uint32(90).fork()).ldelim();if(e.droppedEventsCount!=null&&t.uint32(96).uint32(e.droppedEventsCount),e.links!=null&&e.links.length)for(let r=0;r<e.links.length;++r)Rp(e.links[r],t.uint32(106).fork()).ldelim();return e.droppedLinksCount!=null&&t.uint32(112).uint32(e.droppedLinksCount),e.status!=null&&vp(e.status,t.uint32(122).fork()).ldelim(),t}function vp(e,t){return e.message!=null&&t.uint32(18).string(e.message),e.code!=null&&t.uint32(24).int32(e.code),t}function Ap(e,t){if(e.timeUnixNano!=null&&t.uint32(9).fixed64(e.timeUnixNano),e.name!=null&&t.uint32(18).string(e.name),e.attributes!=null&&e.attributes.length)for(let r=0;r<e.attributes.length;++r)Jt(e.attributes[r],t.uint32(26).fork()).ldelim();return e.droppedAttributesCount!=null&&t.uint32(32).uint32(e.droppedAttributesCount),t}function Rp(e,t){if(e.traceId!=null&&t.uint32(10).bytes(e.traceId),e.spanId!=null&&t.uint32(18).bytes(e.spanId),e.traceState!=null&&t.uint32(26).string(e.traceState),e.attributes!=null&&e.attributes.length)for(let r=0;r<e.attributes.length;++r)Jt(e.attributes[r],t.uint32(34).fork()).ldelim();return e.droppedAttributesCount!=null&&t.uint32(40).uint32(e.droppedAttributesCount),t}var Bt=class{constructor(t={}){this.impl=new oi(t)}export(t,r){this.impl.export(t,r)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},oi=class extends $t{convert(t){return(0,du.createExportTraceServiceRequest)(t,void 0)}toMessage(t){return{body:fu(t),contentType:"application/x-protobuf",headers:{accept:"application/x-protobuf"}}}getDefaultUrl(t){return yr(t)}};E();function _u(e,t){return e.replace(/\{(?<temp1>[^{}]+)\}/g,(r,n)=>{let o=t[n];return o!==void 0?String(o):r})}var te=class{constructor(t={}){this.instrumentationName="@vercel/otel/fetch";this.instrumentationVersion="1.0.0";this.config=t}getConfig(){return this.config}setConfig(){}setTracerProvider(t){this.tracerProvider=t}setMeterProvider(){}shouldIgnore(t,r){let n=this.config.ignoreUrls??[];if(r?.opentelemetry?.ignore!==void 0)return r.opentelemetry.ignore;if(n.length===0)return!1;let o=t.toString();return n.some(i=>typeof i=="string"?i==="*"?!0:o.startsWith(i):i.test(o))}shouldPropagate(t,r){let n=process.env.VERCEL_URL||process.env.NEXT_PUBLIC_VERCEL_URL||null,o=process.env.VERCEL_BRANCH_URL||process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL||null,i=this.config.propagateContextUrls??[],s=this.config.dontPropagateContextUrls??[];if(r?.opentelemetry?.propagateContext)return r.opentelemetry.propagateContext;let u=t.toString();return s.length>0&&s.some(c=>typeof c=="string"?c==="*"?!0:u.startsWith(c):c.test(u))?!1:n&&t.protocol==="https:"&&(t.host===n||t.host===o||t.host===nt()?.headers.host)||!n&&t.protocol==="http:"&&t.hostname==="localhost"?!0:i.some(c=>typeof c=="string"?c==="*"?!0:u.startsWith(c):c.test(u))}startSpan({tracer:t,url:r,fetchType:n,method:o="GET",name:i,attributes:s={}}){let u=this.config.resourceNameTemplate,c={[Ha]:o,[Fa]:r.toString(),[hr]:r.host,[ja]:r.protocol.replace(":",""),[Xa]:r.hostname,[qa]:r.port},a=u?_u(u,c):Lp(r.toString()),f=i??`${n} ${o} ${r.toString()}`,p=l.context.active();return t.startSpan(f,{kind:l.SpanKind.CLIENT,attributes:{...c,"operation.name":`${n}.${o}`,"http.client.name":n,"resource.name":a,...s}},p)}instrumentHttp(t,r){let{tracerProvider:n}=this;if(!n)return;let o=n.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:i,attributesFromResponseHeaders:s}=this.config,u=t.request,c=t.get,a=f=>(p,d,m)=>{let g,C={},M;if(typeof p=="string"||p instanceof URL?(g=new URL(p.toString()),typeof d=="function"?M=d:d&&typeof m=="function"?(C=d,M=m):d&&(C=d)):(C=p,typeof d=="function"&&(M=d),g=Ip(C,r)),this.shouldIgnore(g))return f.apply(this,[g,C,M]);let T=this.startSpan({tracer:o,url:g,fetchType:"http",method:C.method||"GET"});if(!T.isRecording()||!zt(T.spanContext().traceFlags))return T.end(),f.apply(this,[g,C,M]);if(this.shouldPropagate(g)){let et=l.context.active(),q=l.trace.setSpan(et,T);l.propagation.inject(q,C.headers||{},bp)}i&&br(T,i,C.headers||{},Eu);try{let et=Date.now(),q=f.apply(this,[g,C,M]);return q.prependListener("response",U=>{let wr=Date.now()-et;T.setAttribute("http.response_time",wr),U.statusCode!==void 0?(T.setAttribute(wn,U.statusCode),U.statusCode>=500&&Gt(T,`Status: ${U.statusCode}`)):Gt(T,"Response status code is undefined"),s&&br(T,s,U.headers,Eu),q.listenerCount("response")<=1&&U.resume(),U.on("end",()=>{let bt,Mr=U.statusCode;U.aborted&&!U.complete?bt={code:l.SpanStatusCode.ERROR}:Mr&&Mr>=100&&Mr<500?bt={code:l.SpanStatusCode.UNSET}:bt={code:l.SpanStatusCode.ERROR},T.setStatus(bt),T.isRecording()&&(U.headers["content-length"]&&T.setAttribute(Mn,U.headers["content-length"]),T.end())})}),q.on("error",U=>{T.isRecording()&&(Gt(T,U),T.end())}),q.on("close",()=>{T.isRecording()&&T.end()}),q}catch(et){throw Gt(T,et),T.end(),et}};t.request=a(u),t.get=a(c)}instrumentFetch(){let{tracerProvider:t}=this;if(!t)return;let r=t.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:n,attributesFromResponseHeaders:o}=this.config;process.env.NEXT_OTEL_FETCH_DISABLED="1";let i=globalThis.fetch;this.originalFetch=i;let s=async(u,c)=>{let a=c;if(a?.next?.internal)return i(u,a);let f=new Request(u instanceof Request?u.clone():u,a),p=new URL(f.url);if(this.shouldIgnore(p,a))return i(u,a);let d=this.startSpan({tracer:r,url:p,fetchType:"fetch",method:f.method,name:a?.opentelemetry?.spanName,attributes:a?.opentelemetry?.attributes});if(!d.isRecording()||!zt(d.spanContext().traceFlags))return d.end(),i(u,a);if(this.shouldPropagate(p,a)){let m=l.context.active(),g=l.trace.setSpan(m,d);l.propagation.inject(g,f.headers,Op)}n&&br(d,n,f.headers,hu);try{let m=Date.now();a?.body&&a.body instanceof FormData&&f.headers.delete("content-type");let g=await i(u,{...a,headers:f.headers}),C=Date.now()-m;return d.setAttribute(wn,g.status),d.setAttribute("http.response_time",C),o&&br(d,o,g.headers,hu),g.status>=500&&Gt(d,`Status: ${g.status} (${g.statusText})`),g.body?Pp(g).then(M=>{d.isRecording()&&(d.setAttribute(Mn,M),d.end())},M=>{d.isRecording()&&(Gt(d,M),d.end())}):d.end(),g}catch(m){throw Gt(d,m),d.end(),m}};globalThis.fetch=s}enable(){this.disable(),this.instrumentFetch();try{let t=ci("node:http"),r=ci("node:https");this.instrumentHttp(t,"http:"),this.instrumentHttp(r,"https:")}catch{}}disable(){this.originalFetch&&(globalThis.fetch=this.originalFetch)}},Op={set(e,t,r){e.set(t,r)}},hu={get(e,t){let r=e.get(t);if(r!==null)return r.includes(",")?r.split(",").map(n=>n.trimStart()):r},keys(e){let t=[];return e.forEach((r,n)=>{t.push(n)}),t}},bp={set(e,t,r){e[t.toLowerCase()]=r}},Eu={get(e,t){return e[t.toLowerCase()]},keys(e){return Object.keys(e)}};function Lp(e){let t=e.indexOf("?");return t===-1?e:e.substring(0,t)}function Pp(e){let t=0,n=e.clone().body?.getReader();if(!n)return Promise.resolve(0);let o=()=>n.read().then(({done:i,value:s})=>{if(!i)return t+=s.byteLength,o()});return o().then(()=>t)}function Gt(e,t){if(t instanceof Error)e.recordException(t),e.setStatus({code:l.SpanStatusCode.ERROR,message:t.message});else{let r=String(t);e.setStatus({code:l.SpanStatusCode.ERROR,message:r})}}function br(e,t,r,n){for(let[o,i]of Object.entries(t)){let s=n.get(r,i);s!==void 0&&e.setAttribute(o,s)}}function Ip(e,t){if(e.socketPath)throw new Error("Cannot construct a network URL: options.socketPath is specified, indicating a Unix domain socket.");let r=e.protocol??t;r&&!r.endsWith(":")&&(r+=":");let n=e.hostname,o=e.port??e.defaultPort;if(!n&&e.host){let a=e.host.split(":");n=a[0];let f=a[1];if(a.length>1&&f&&o===void 0){let p=parseInt(f,10);isNaN(p)||(o=p)}}n||(n="localhost");let i;if(o!==void 0&&o!==""){let a=parseInt(String(o),10);isNaN(a)?i=r==="https:"?443:80:i=a}else i=r==="https:"?443:80;let s=e.path||"/",u=`${r}//${n}:${i}`,c=new URL(s,u);if(e.auth){let a=e.auth.split(":");c.username=decodeURIComponent(a[0]||""),a.length>1&&(c.password=decodeURIComponent(a[1]||""))}return c}E();var mu=v(P(),1),Cp="00",ai="traceparent",si="tracestate",Te=class{fields(){return[ai,si]}inject(t,r,n){let o=l.trace.getSpanContext(t);if(!o||(0,mu.isTracingSuppressed)(t)||!(0,l.isSpanContextValid)(o))return;let i=`${Cp}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||0).toString(16)}`;n.set(r,ai,i),o.traceState&&n.set(r,si,o.traceState.serialize())}extract(t,r,n){let o=n.get(r,ai);if(!o)return t;let i=Array.isArray(o)?o[0]:o;if(typeof i!="string")return t;let s=Np(i);if(!s)return t;s.isRemote=!0;let u=n.get(r,si);if(u){let c=Array.isArray(u)?u.join(","):u;s.traceState=(0,l.createTraceState)(typeof c=="string"?c:void 0)}return l.trace.setSpanContext(t,s)}};function Np(e){let[t,r,n,o,i]=e.split("-");return!t||!r||!n||!o||t.length!==2||r.length!==32||n.length!==16||o.length!==2||t==="00"&&i?null:{traceId:r,spanId:n,traceFlags:parseInt(o,16)}}E();var Lr=class{fields(){return[]}inject(){}extract(t){let r=nt();if(!r?.telemetry)return l.diag.warn("@vercel/otel: Vercel telemetry extension not found."),t;let{rootSpanContext:n}=r.telemetry;return n?(l.diag.debug("@vercel/otel: Extracted root SpanContext from Vercel request context.",n),l.trace.setSpanContext(t,{...n,isRemote:!0,traceFlags:n.traceFlags||l.TraceFlags.SAMPLED})):t}};E();var Pr=v(P(),1);var ee=v(P()),wp=BigInt(1e9);function Su(e){return BigInt(e[0])*wp+BigInt(e[1])}function Mp(e){var t=Number(BigInt.asUintN(32,e)),r=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:r}}function gu(e){var t=Su(e);return Mp(t)}function xp(e){var t=Su(e);return t.toString()}var Dp=typeof BigInt<"u"?xp:ee.hrTimeToNanoseconds;function Tu(e){return e}function yu(e){if(e!==void 0)return(0,ee.hexToBase64)(e)}var Up={encodeHrTime:gu,encodeSpanContext:ee.hexToBase64,encodeOptionalSpanContext:yu};function vu(e){var t,r;if(e===void 0)return Up;var n=(t=e.useLongBits)!==null&&t!==void 0?t:!0,o=(r=e.useHex)!==null&&r!==void 0?r:!1;return{encodeHrTime:n?gu:Dp,encodeSpanContext:o?Tu:ee.hexToBase64,encodeOptionalSpanContext:o?Tu:yu}}var Bp=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i};function re(e){return Object.keys(e).map(function(t){return Au(t,e[t])})}function Au(e,t){return{key:e,value:Ru(t)}}function Ru(e){var t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(Ru)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(function(r){var n=Bp(r,2),o=n[0],i=n[1];return Au(o,i)})}}:{}}function Ou(e,t){var r,n=e.spanContext(),o=e.status;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:t.encodeOptionalSpanContext(e.parentSpanId),traceState:(r=n.traceState)===null||r===void 0?void 0:r.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:re(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(function(i){return Vp(i,t)}),droppedEventsCount:e.droppedEventsCount,status:{code:o.code,message:o.message},links:e.links.map(function(i){return Gp(i,t)}),droppedLinksCount:e.droppedLinksCount}}function Gp(e,t){var r;return{attributes:e.attributes?re(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:(r=e.context.traceState)===null||r===void 0?void 0:r.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function Vp(e,t){return{attributes:e.attributes?re(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}var Hp=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Fp=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i};function ui(e,t){var r=vu(t);return{resourceSpans:kp(e,r)}}function jp(e){var t,r,n=new Map;try{for(var o=Hp(e),i=o.next();!i.done;i=o.next()){var s=i.value,u=n.get(s.resource);u||(u=new Map,n.set(s.resource,u));var c=s.instrumentationLibrary.name+"@"+(s.instrumentationLibrary.version||"")+":"+(s.instrumentationLibrary.schemaUrl||""),a=u.get(c);a||(a=[],u.set(c,a)),a.push(s)}}catch(f){t={error:f}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n}function kp(e,t){for(var r=jp(e),n=[],o=r.entries(),i=o.next();!i.done;){for(var s=Fp(i.value,2),u=s[0],c=s[1],a=[],f=c.values(),p=f.next();!p.done;){var d=p.value;if(d.length>0){var m=d[0].instrumentationLibrary,g=m.name,C=m.version,M=m.schemaUrl,T=d.map(function(q){return Ou(q,t)});a.push({scope:{name:g,version:C},spans:T,schemaUrl:M})}p=f.next()}var et={resource:{attributes:re(u.attributes),droppedAttributesCount:0},scopeSpans:a,schemaUrl:void 0};n.push(et),i=o.next()}return n}var Ir=class{export(t,r){let n=nt();if(!n?.telemetry){l.diag.warn("@vercel/otel: no telemetry context found"),r({code:Pr.ExportResultCode.SUCCESS,error:void 0});return}try{let o=ui(t,{useHex:!0,useLongBits:!1});n.telemetry.reportSpans(o),r({code:Pr.ExportResultCode.SUCCESS,error:void 0})}catch(o){r({code:Pr.ExportResultCode.FAILED,error:o instanceof Error?o:new Error(String(o))})}}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};var qp={ALL:l.DiagLogLevel.ALL,VERBOSE:l.DiagLogLevel.VERBOSE,DEBUG:l.DiagLogLevel.DEBUG,INFO:l.DiagLogLevel.INFO,WARN:l.DiagLogLevel.WARN,ERROR:l.DiagLogLevel.ERROR,NONE:l.DiagLogLevel.NONE},Cr=class{constructor(t={}){this.configuration=t}start(){let t=Xp(),r=this.configuration,n=process.env.NEXT_RUNTIME||"nodejs",o=!!t.OTEL_SDK_DISABLED;if(process.env.OTEL_LOG_LEVEL&&l.diag.setLogger(new l.DiagConsoleLogger,{logLevel:qp[process.env.OTEL_LOG_LEVEL.toUpperCase()]}),o)return;let i=r.idGenerator??new tr,s=r.contextManager??new Iu.AsyncLocalStorageContextManager;s.enable(),this.contextManager=s;let u=t.OTEL_SERVICE_NAME||r.serviceName||"app",c=new H(Er({[Ka]:u,"node.ci":process.env.CI?!0:void 0,"node.env":"production",env:process.env.VERCEL_ENV||process.env.NEXT_PUBLIC_VERCEL_ENV,"vercel.region":process.env.VERCEL_REGION,"vercel.runtime":n,"vercel.sha":process.env.VERCEL_GIT_COMMIT_SHA||process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,"vercel.host":process.env.VERCEL_URL||process.env.NEXT_PUBLIC_VERCEL_URL||void 0,"vercel.branch_host":process.env.VERCEL_BRANCH_URL||process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL||void 0,"vercel.deployment_id":process.env.VERCEL_DEPLOYMENT_ID||void 0,[Wa]:process.env.VERCEL_DEPLOYMENT_ID,...r.attributes})),a=r.resourceDetectors??[No];if(r.autoDetectResources??!0){let T={detectors:a};c=c.merge(Mo(T))}let p=Wp(r.propagators,r,t),d=Yp(r.traceSampler,t),m=zp(r.spanProcessors,r,t);m.length===0&&l.diag.warn("@vercel/otel: No span processors configured. No spans will be exported.");let g=r.spanLimits,C=new Bo({resource:c,idGenerator:i,sampler:d,spanLimits:g});if(C.addSpanProcessor(new mr(m,r.attributesFromHeaders)),C.register({contextManager:s,propagator:new Ot.CompositePropagator({propagators:p})}),this.tracerProvider=C,r.logRecordProcessor){let T=new gn({resource:c});this.loggerProvider=T,T.addLogRecordProcessor(r.logRecordProcessor),st.logs.setGlobalLoggerProvider(T)}if(r.metricReader||r.views){let T=new In({resource:c,views:r.views??[]});r.metricReader&&T.addMetricReader(r.metricReader),l.metrics.setGlobalMeterProvider(T),this.meterProvider=T}let M=Kp(r.instrumentations,r.instrumentationConfig);this.disableInstrumentations=(0,Pu.registerInstrumentations)({instrumentations:M}),l.diag.info("@vercel/otel: started",u,n)}async shutdown(){let t=[];this.tracerProvider&&t.push(this.tracerProvider.shutdown()),this.loggerProvider&&t.push(this.loggerProvider.shutdown()),this.meterProvider&&t.push(this.meterProvider.shutdown()),l.diag.info("@vercel/otel: shutting down",t.length,process.env.NEXT_RUNTIME),await Promise.all(t),this.contextManager&&this.contextManager.disable();let{disableInstrumentations:r}=this;r&&r()}};function Xp(){let e=(0,Nr.parseEnvironment)(process.env);return{...Nr.DEFAULT_ENVIRONMENT,...e}}function Kp(e,t){return(e??["auto"]).map(r=>r==="auto"?(l.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),[new te(t?.fetch)]):r==="fetch"?(l.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),new te(t?.fetch)):r).flat()}function Wp(e,t,r){let n=process.env.OTEL_PROPAGATORS&&r.OTEL_PROPAGATORS&&r.OTEL_PROPAGATORS.length>0?r.OTEL_PROPAGATORS:void 0;return(e??n??["auto"]).map(o=>{if(o==="none")return[];if(o==="auto"){let i=[];return i.push({name:"tracecontext",propagator:new Te}),i.push({name:"baggage",propagator:new Ot.W3CBaggagePropagator}),i.push({name:"vercel-runtime",propagator:new Lr}),l.diag.debug(`@vercel/otel: Configure propagators: ${i.map(s=>s.name).join(", ")}`),i.map(s=>s.propagator)}if(o==="tracecontext")return l.diag.debug("@vercel/otel: Configure propagator: tracecontext"),new Te;if(o==="baggage")return l.diag.debug("@vercel/otel: Configure propagator: baggage"),new Ot.W3CBaggagePropagator;if(typeof o=="string")throw new Error(`Unknown propagator: "${o}"`);return o}).flat()}var bu="always_on",ne=1;function Yp(e,t){if(e&&typeof e!="string")return e;let r=e&&e!=="auto"?e:t.OTEL_TRACES_SAMPLER||bu;switch(l.diag.debug("@vercel/otel: Configure sampler: ",r),r){case"always_on":return new X;case"always_off":return new at;case"parentbased_always_on":return new Et({root:new X});case"parentbased_always_off":return new Et({root:new at});case"traceidratio":return new kt(Lu(t));case"parentbased_traceidratio":return new Et({root:new kt(Lu(t))});default:return l.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER value "${String(t.OTEL_TRACES_SAMPLER)} invalid, defaulting to ${bu}".`),new X}}function Lu(e){if(e.OTEL_TRACES_SAMPLER_ARG===void 0||e.OTEL_TRACES_SAMPLER_ARG==="")return l.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${ne}.`),ne;l.diag.debug("@vercel/otel: Configure sampler probability: ",e.OTEL_TRACES_SAMPLER_ARG);let t=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(l.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${ne}.`),ne):t<0||t>1?(l.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${ne}.`),ne):t}function zp(e,t,r){return[...(e??["auto"]).flatMap(n=>{if(n==="auto"){let o=[new Mt(new Ir)];if(process.env.VERCEL_OTEL_ENDPOINTS){let i=process.env.VERCEL_OTEL_ENDPOINTS_PORT||"4318",s=process.env.VERCEL_OTEL_ENDPOINTS_PROTOCOL||"http/protobuf";l.diag.debug("@vercel/otel: Configure vercel otel collector on port: ",i,s);let u={url:`http://localhost:${i}/v1/traces`,headers:{}},c=s==="http/protobuf"?new Bt(u):new Qt(u);o.push(new Mt(c))}else(!t.traceExporter||t.traceExporter==="auto"||r.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||r.OTEL_EXPORTER_OTLP_ENDPOINT)&&o.push(new Mt($p(r)));return o}return n}).filter(Jp),...t.traceExporter&&t.traceExporter!=="auto"?[new Mt(t.traceExporter)]:[]]}function $p(e){let t=process.env.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL??process.env.OTEL_EXPORTER_OTLP_PROTOCOL??"http/protobuf",r=Zp(e),n={...Ot.baggageUtils.parseKeyPairsIntoRecord(e.OTEL_EXPORTER_OTLP_HEADERS),...Ot.baggageUtils.parseKeyPairsIntoRecord(e.OTEL_EXPORTER_OTLP_TRACES_HEADERS)};switch(l.diag.debug("@vercel/otel: Configure trace exporter: ",t,r,`headers: ${Object.keys(n).join(",")||"<none>"}`),t){case"http/json":return new Qt({url:r,headers:n});case"http/protobuf":return new Bt({url:r,headers:n});default:return l.diag.warn(`@vercel/otel: Unsupported OTLP traces protocol: ${t}. Using http/protobuf.`),new Bt}}var Cu="v1/traces",Qp=`http://localhost:4318/${Cu}`;function Zp(e){let t=e.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT;if(t&&typeof t=="string")return t;let r=e.OTEL_EXPORTER_OTLP_ENDPOINT;return r&&typeof r=="string"?`${r}/${Cu}`:Qp}function Jp(e){return e!=null}function RT(e){let t;e?typeof e=="string"?t={serviceName:e}:t=e:t={},new Cr(t).start()}export{te as FetchInstrumentation,Qt as OTLPHttpJsonTraceExporter,Bt as OTLPHttpProtoTraceExporter,RT as registerOTel};
|
|
15
|
+
`,Lo(s,t),`To resolve the conflict:
|
|
16
|
+
`,Io(s,t))}return n}};var en=class{_backingStorages;constructor(t){this._backingStorages=t}record(t,e,n,o){this._backingStorages.forEach(s=>{s.record(t,e,n,o)})}};d();d();var rn=class{_instrumentName;_valueType;_buffer=new H;constructor(t,e){this._instrumentName=t,this._valueType=e}observe(t,e={}){if(typeof t!="number"){c.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${t}`);return}this._valueType===c.ValueType.INT&&!Number.isInteger(t)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),t=Math.trunc(t),!Number.isInteger(t))||this._buffer.set(e,t)}},nn=class{_buffer=new Map;observe(t,e,n={}){if(!be(t))return;let o=this._buffer.get(t);if(o==null&&(o=new H,this._buffer.set(t,o)),typeof e!="number"){c.diag.warn(`non-number value provided to metric ${t._descriptor.name}: ${e}`);return}t._descriptor.valueType===c.ValueType.INT&&!Number.isInteger(e)&&(c.diag.warn(`INT value type cannot accept a floating-point value for ${t._descriptor.name}, ignoring the fractional digits.`),e=Math.trunc(e),!Number.isInteger(e))||o.set(n,e)}};var on=class{_callbacks=[];_batchCallbacks=[];addCallback(t,e){this._findCallback(t,e)>=0||this._callbacks.push({callback:t,instrument:e})}removeCallback(t,e){let n=this._findCallback(t,e);n<0||this._callbacks.splice(n,1)}addBatchCallback(t,e){let n=new Set(e.filter(be));if(n.size===0){c.diag.error("BatchObservableCallback is not associated with valid instruments",e);return}this._findBatchCallback(t,n)>=0||this._batchCallbacks.push({callback:t,instruments:n})}removeBatchCallback(t,e){let n=new Set(e.filter(be)),o=this._findBatchCallback(t,n);o<0||this._batchCallbacks.splice(o,1)}async observe(t,e){let n=this._observeCallbacks(t,e),o=this._observeBatchCallbacks(t,e);return(await zS([...n,...o])).filter(QS).map(a=>a.reason)}_observeCallbacks(t,e){return this._callbacks.map(async({callback:n,instrument:o})=>{let s=new rn(o._descriptor.name,o._descriptor.valueType),i=Promise.resolve(n(s));e!=null&&(i=uo(i,e)),await i,o._metricStorages.forEach(a=>{a.record(s._buffer,t)})})}_observeBatchCallbacks(t,e){return this._batchCallbacks.map(async({callback:n,instruments:o})=>{let s=new nn,i=Promise.resolve(n(s));e!=null&&(i=uo(i,e)),await i,o.forEach(a=>{let _=s._buffer.get(a);_!=null&&a._metricStorages.forEach(E=>{E.record(_,t)})})})}_findCallback(t,e){return this._callbacks.findIndex(n=>n.callback===t&&n.instrument===e)}_findBatchCallback(t,e){return this._batchCallbacks.findIndex(n=>n.callback===t&&JS(n.instruments,e))}};var sn=class extends te{_attributesProcessor;_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;constructor(t,e,n,o,s){super(t),this._attributesProcessor=n,this._aggregationCardinalityLimit=s,this._deltaMetricStorage=new ee(e,this._aggregationCardinalityLimit),this._temporalMetricStorage=new re(e,o)}record(t,e,n,o){e=this._attributesProcessor.process(e,n),this._deltaMetricStorage.record(t,e,n,o)}collect(t,e){let n=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(t,this._instrumentDescriptor,n,e)}};var xo=class{process(t,e){return t}},Do=class{_processors;constructor(t){this._processors=t}process(t,e){let n=t;for(let o of this._processors)n=o.process(n,e);return n}};function an(){return oI}function Ep(r){return new Do(r)}var oI=new xo;var cn=class{_meterProviderSharedState;_instrumentationScope;metricStorageRegistry=new tn;observableRegistry=new on;meter;constructor(t,e){this._meterProviderSharedState=t,this._instrumentationScope=e,this.meter=new Jr(this)}registerMetricStorage(t){let e=this._registerMetricStorage(t,sn);return e.length===1?e[0]:new en(e)}registerAsyncMetricStorage(t){return this._registerMetricStorage(t,Zr)}async collect(t,e,n){let o=await this.observableRegistry.observe(e,n?.timeoutMillis),s=this.metricStorageRegistry.getStorages(t);if(s.length===0)return null;let i=s.map(a=>a.collect(t,e)).filter($S);return i.length===0?{errors:o}:{scopeMetrics:{scope:this._instrumentationScope,metrics:i},errors:o}}_registerMetricStorage(t,e){let o=this._meterProviderSharedState.viewRegistry.findViews(t,this._instrumentationScope).map(s=>{let i=ap(s,t),a=this.metricStorageRegistry.findOrUpdateCompatibleStorage(i);if(a!=null)return a;let _=s.aggregation.createAggregator(i),E=new e(i,_,s.attributesProcessor,this._meterProviderSharedState.metricCollectors,s.aggregationCardinalityLimit);return this.metricStorageRegistry.register(E),E});if(o.length===0){let i=this._meterProviderSharedState.selectAggregations(t.type).map(([a,_])=>{let E=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(a,t);if(E!=null)return E;let T=_.createAggregator(t),l=a.selectCardinalityLimit(t.type),A=new e(t,T,an(),[a],l);return this.metricStorageRegistry.registerForCollector(a,A),A});o=o.concat(i)}return o}};var _n=class{resource;viewRegistry=new Kr;metricCollectors=[];meterSharedStates=new Map;constructor(t){this.resource=t}getMeterSharedState(t){let e=XS(t),n=this.meterSharedStates.get(e);return n==null&&(n=new cn(this,t),this.meterSharedStates.set(e,n)),n}selectAggregations(t){let e=[];for(let n of this.metricCollectors)e.push([n,kr(n.selectAggregation(t))]);return e}};var up=O(P()),En=class{_sharedState;_metricReader;constructor(t,e){this._sharedState=t,this._metricReader=e}async collect(t){let e=(0,up.millisToHrTime)(Date.now()),n=[],o=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(async i=>{let a=await i.collect(this,e,t);a?.scopeMetrics!=null&&n.push(a.scopeMetrics),a?.errors!=null&&o.push(...a.errors)});return await Promise.all(s),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:n},errors:o}}async forceFlush(t){await this._metricReader.forceFlush(t)}async shutdown(t){await this._metricReader.shutdown(t)}selectAggregationTemporality(t){return this._metricReader.selectAggregationTemporality(t)}selectAggregation(t){return this._metricReader.selectAggregation(t)}selectCardinalityLimit(t){return this._metricReader.selectCardinalityLimit?.(t)??2e3}};var sI=/[\^$\\.+?()[\]{}|]/g,ne=class r{_matchAll;_regexp;constructor(t){t==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(r.escapePattern(t)))}match(t){return this._matchAll?!0:this._regexp.test(t)}static escapePattern(t){return`^${t.replace(sI,"\\$&").replace("*",".*")}$`}static hasWildcard(t){return t.includes("*")}},gt=class{_matchAll;_pattern;constructor(t){this._matchAll=t===void 0,this._pattern=t}match(t){return!!(this._matchAll||t===this._pattern)}};var un=class{_nameFilter;_type;_unitFilter;constructor(t){this._nameFilter=new ne(t?.name??"*"),this._type=t?.type,this._unitFilter=new gt(t?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};var Tn=class{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(t){this._nameFilter=new gt(t?.name),this._versionFilter=new gt(t?.version),this._schemaUrlFilter=new gt(t?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};function iI(r){return r.instrumentName==null&&r.instrumentType==null&&r.instrumentUnit==null&&r.meterName==null&&r.meterVersion==null&&r.meterSchemaUrl==null}function aI(r){if(iI(r))throw new Error("Cannot create view with no selector arguments supplied");if(r.name!=null&&(r?.instrumentName==null||ne.hasWildcard(r.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.")}var Sn=class{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(t){aI(t),t.attributesProcessors!=null?this.attributesProcessor=Ep(t.attributesProcessors):this.attributesProcessor=an(),this.name=t.name,this.description=t.description,this.aggregation=kr(t.aggregation??{type:_t.DEFAULT}),this.instrumentSelector=new un({name:t.instrumentName,type:t.instrumentType,unit:t.instrumentUnit}),this.meterSelector=new Tn({name:t.meterName,version:t.meterVersion,schemaUrl:t.meterSchemaUrl}),this.aggregationCardinalityLimit=t.aggregationCardinalityLimit}};var ye=class{_sharedState;_shutdown=!1;constructor(t){if(this._sharedState=new _n(t?.resource??Ut()),t?.views!=null&&t.views.length>0)for(let e of t.views)this._sharedState.viewRegistry.addView(new Sn(e));if(t?.readers!=null&&t.readers.length>0)for(let e of t.readers){let n=new En(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)}}getMeter(t,e="",n={}){return this._shutdown?(c.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,c.createNoopMeter)()):this._sharedState.getMeterSharedState({name:t,version:e,schemaUrl:n.schemaUrl}).meter}async shutdown(t){if(this._shutdown){c.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(e=>e.shutdown(t)))}async forceFlush(t){if(this._shutdown){c.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(e=>e.forceFlush(t)))}};var zl=O(lp(),1),Ct=O(P(),1);var Ap="http.method",dp="http.url",dn="http.host",mp="http.scheme",Bo="http.status_code",fp="http.user_agent",wo="http.response_content_length_uncompressed",hp="net.peer.port",Rp="net.peer.name";var Op="service.name",gp="service.version";d();var mI=Symbol.for("@vercel/request-context");function ut(){return globalThis[mI]?.get()}function mn(r){return Object.fromEntries(Object.entries(r).filter(([t,e])=>e!==void 0))}function Np(r){return r?r.split("::").at(-1):void 0}function Mp(r=ut(),t){if(!r)return;let e=t?hI(t,r.headers):void 0;return mn({[dn]:r.headers.host,[fp]:r.headers["user-agent"],"http.referer":r.headers.referer,"vercel.request_id":Np(r.headers["x-vercel-id"]),"vercel.matched_path":r.headers["x-matched-path"],"vercel.edge_region":process.env.VERCEL_REGION,...e})}var fI={keys(r){return[]},get(r,t){return r[t.toLocaleLowerCase()]}};function hI(r,t){if(typeof r=="function")return r(t,fI);let e={};for(let[n,o]of Object.entries(r)){let s=t[o.toLocaleLowerCase()];s!==void 0&&(e[n]=s)}return e}d();function ie(r){return(r&c.TraceFlags.SAMPLED)!==0}var fn=class{constructor(t,e){this.processors=t;this.attributesFromHeaders=e;this.rootSpanIds=new Map;this.waitSpanEnd=new Map}forceFlush(){return Promise.all(this.processors.map(t=>t.forceFlush().catch(e=>{c.diag.error("@vercel/otel: forceFlush failed:",e)}))).then(()=>{})}shutdown(){return Promise.all(this.processors.map(t=>t.shutdown().catch(()=>{}))).then(()=>{})}onStart(t,e){let{traceId:n,spanId:o,traceFlags:s}=t.spanContext(),i=!t.parentSpanContext?.spanId||!this.rootSpanIds.has(n);if(i?this.rootSpanIds.set(n,{rootSpanId:o,open:[]}):this.rootSpanIds.get(n)?.open.push(t),i&&ie(s)){let a=ut(),_=Mp(a,this.attributesFromHeaders);_&&t.setAttributes(_),a&&a.waitUntil(async()=>{if(this.rootSpanIds.has(n)){let E=new Promise(l=>{this.waitSpanEnd.set(n,l)}),T;await Promise.race([E,new Promise(l=>{T=setTimeout(()=>{this.waitSpanEnd.delete(n),l(void 0)},50)})]),T&&clearTimeout(T)}return this.forceFlush()})}for(let a of this.processors)a.onStart(t,e)}onEnd(t){let{traceId:e,spanId:n,traceFlags:o}=t.spanContext(),s=ie(o),i=this.rootSpanIds.get(e),a=i?.rootSpanId===n;if(s){let _=OI(t);_&&Object.assign(t.attributes,_)}if(a){if(this.rootSpanIds.delete(e),i.open.length>0){for(let _ of i.open)if(!_.ended&&_.spanContext().spanId!==n)try{_.end()}catch(E){c.diag.error("@vercel/otel: onEnd failed:",E)}}}else if(i)for(let _=0;_<i.open.length;_++)i.open[_]?.spanContext().spanId===n&&i.open.splice(_,1);for(let _ of this.processors)_.onEnd(t);if(a){let _=this.waitSpanEnd.get(e);_&&(this.waitSpanEnd.delete(e),_())}}},RI={[c.SpanKind.INTERNAL]:"internal",[c.SpanKind.SERVER]:"server",[c.SpanKind.CLIENT]:"client",[c.SpanKind.PRODUCER]:"producer",[c.SpanKind.CONSUMER]:"consumer"};function OI(r){let{kind:t,attributes:e}=r,{"operation.name":n,"resource.name":o,"span.type":s,"next.span_type":i,"http.method":a,"http.route":_}=e;if(n)return;let E=o??(a&&typeof a=="string"&&_&&typeof _=="string"?`${a} ${_}`:_);if(r.kind===c.SpanKind.SERVER&&a&&_&&typeof a=="string"&&typeof _=="string")return{"operation.name":"web.request","resource.name":E};let T=r.instrumentationScope.name,l=i??s;if(l&&typeof l=="string"){let A=Pp(T,l);return _?{"operation.name":A,"resource.name":E}:{"operation.name":A}}return{"operation.name":Pp(T,t===c.SpanKind.INTERNAL?"":RI[t])}}function Pp(r,t){if(!r)return t;let e=r.replace(/[ @./]/g,"_");return e.startsWith("_")&&(e=e.slice(1)),t?`${e}.${t}`:e}var Gp=O(Wo(),1);d();var ae=class{constructor(t={}){this._shutdownOnce={isCalled:!1};this._sendingPromises=[];this.url=t.url||this.getDefaultUrl(t),t.headers&&(this._headers=t.headers),this.onInit()}onShutdown(){c.diag.debug("@vercel/otel/otlp: onShutdown")}onInit(){c.diag.debug("@vercel/otel/otlp: onInit")}export(t,e){if(this._shutdownOnce.isCalled){c.diag.debug("@vercel/otel/otlp: Shutdown already started. Cannot send objects");return}this.send(t,()=>e({code:0}),n=>e({code:1,error:n}))}async forceFlush(){await Promise.all(this._sendingPromises)}async shutdown(){this._shutdownOnce.isCalled=!0,this.onShutdown(),await this.forceFlush()}send(t,e,n){if(this._shutdownOnce.isCalled){c.diag.debug("@vercel/otel/otlp: Shutdown already started. Cannot send objects");return}let o=this.convert(t),s,i,a;try{({body:s,contentType:i,headers:a}=this.toMessage(o))}catch(E){c.diag.warn("@vercel/otel/otlp: no proto",E);return}let _=fetch(this.url,{method:"POST",body:s,headers:{...this._headers,...a,"Content-Type":i,"User-Agent":"OTel-OTLP-Exporter-JavaScript/0.46.0"},next:{internal:!0}}).then(E=>{c.diag.debug("@vercel/otel/otlp: onSuccess",E.status,E.statusText),e(),E.arrayBuffer().catch(()=>{})}).catch(E=>{c.diag.error("@vercel/otel/otlp: onError",E),n(E)}).finally(()=>{let E=this._sendingPromises.indexOf(_);this._sendingPromises.splice(E,1)});this._sendingPromises.push(_)}};var VI="v1/traces",vI=`http://localhost:4318/${VI}`;function On(r){return typeof r.url=="string"?r.url:vI}var ce=class{constructor(t={}){this.impl=new qo(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},qo=class extends ae{convert(t){return t}toMessage(t){let e=Gp.JsonTraceSerializer.serializeRequest(t);return{body:new TextDecoder().decode(e),contentType:"application/json"}}getDefaultUrl(t){return On(t)}};var Fl=O(jo(),1);var wl=O(Bl(),1);function Gl(r){let t=new wl.Writer;return qI(r,t),t.finish()}function qI(r,t){if(r.resourceSpans!=null&&r.resourceSpans.length)for(let e=0;e<r.resourceSpans.length;++e)$I(r.resourceSpans[e],t.uint32(10).fork()).ldelim();return t}function $I(r,t){if(r.resource!=null&&XI(r.resource,t.uint32(10).fork()).ldelim(),r.scopeSpans!=null&&r.scopeSpans.length)for(let e=0;e<r.scopeSpans.length;++e)zI(r.scopeSpans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function XI(r,t){if(r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(10).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(16).uint32(r.droppedAttributesCount),t}function zI(r,t){if(r.scope!=null&&ZI(r.scope,t.uint32(10).fork()).ldelim(),r.spans!=null&&r.spans.length)for(let e=0;e<r.spans.length;++e)tx(r.spans[e],t.uint32(18).fork()).ldelim();return r.schemaUrl!=null&&t.uint32(26).string(r.schemaUrl),t}function Ee(r,t){return r.key!=null&&t.uint32(10).string(r.key),r.value!=null&&Hl(r.value,t.uint32(18).fork()).ldelim(),t}function Hl(r,t){return r.stringValue!=null&&t.uint32(10).string(r.stringValue),r.boolValue!=null&&t.uint32(16).bool(r.boolValue),r.intValue!=null&&t.uint32(24).int64(r.intValue),r.doubleValue!=null&&t.uint32(33).double(r.doubleValue),r.arrayValue!=null&&QI(r.arrayValue,t.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&JI(r.kvlistValue,t.uint32(50).fork()).ldelim(),r.bytesValue!=null&&t.uint32(58).bytes(r.bytesValue),t}function QI(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)Hl(r.values[e],t.uint32(10).fork()).ldelim();return t}function JI(r,t){if(r.values!=null&&r.values.length)for(let e=0;e<r.values.length;++e)Ee(r.values[e],t.uint32(10).fork()).ldelim();return t}function ZI(r,t){if(r.name!=null&&t.uint32(10).string(r.name),r.version!=null&&t.uint32(18).string(r.version),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function tx(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.parentSpanId!=null&&t.uint32(34).bytes(r.parentSpanId),r.name!=null&&t.uint32(42).string(r.name),r.kind!=null&&t.uint32(48).int32(r.kind),r.startTimeUnixNano!=null&&t.uint32(57).fixed64(r.startTimeUnixNano),r.endTimeUnixNano!=null&&t.uint32(65).fixed64(r.endTimeUnixNano),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(74).fork()).ldelim();if(r.droppedAttributesCount!=null&&t.uint32(80).uint32(r.droppedAttributesCount),r.events!=null&&r.events.length)for(let e=0;e<r.events.length;++e)rx(r.events[e],t.uint32(90).fork()).ldelim();if(r.droppedEventsCount!=null&&t.uint32(96).uint32(r.droppedEventsCount),r.links!=null&&r.links.length)for(let e=0;e<r.links.length;++e)nx(r.links[e],t.uint32(106).fork()).ldelim();return r.droppedLinksCount!=null&&t.uint32(112).uint32(r.droppedLinksCount),r.status!=null&&ex(r.status,t.uint32(122).fork()).ldelim(),t}function ex(r,t){return r.message!=null&&t.uint32(18).string(r.message),r.code!=null&&t.uint32(24).int32(r.code),t}function rx(r,t){if(r.timeUnixNano!=null&&t.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&t.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(32).uint32(r.droppedAttributesCount),t}function nx(r,t){if(r.traceId!=null&&t.uint32(10).bytes(r.traceId),r.spanId!=null&&t.uint32(18).bytes(r.spanId),r.traceState!=null&&t.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(let e=0;e<r.attributes.length;++e)Ee(r.attributes[e],t.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&t.uint32(40).uint32(r.droppedAttributesCount),t}var wt=class{constructor(t={}){this.impl=new as(t)}export(t,e){this.impl.export(t,e)}shutdown(){return this.impl.shutdown()}forceFlush(){return this.impl.forceFlush()}},as=class extends ae{convert(t){return(0,Fl.createExportTraceServiceRequest)(t)}toMessage(t){return{body:Gl(t),contentType:"application/x-protobuf",headers:{accept:"application/x-protobuf"}}}getDefaultUrl(t){return On(t)}};d();function Yl(r,t){return r.replace(/\{(?<temp1>[^{}]+)\}/g,(e,n)=>{let o=t[n];return o!==void 0?String(o):e})}var ue=class{constructor(t={}){this.instrumentationName="@vercel/otel/fetch";this.instrumentationVersion="1.0.0";this.config=t}getConfig(){return this.config}setConfig(){}setTracerProvider(t){this.tracerProvider=t}setMeterProvider(){}shouldIgnore(t,e){let n=this.config.ignoreUrls??[];if(e?.opentelemetry?.ignore!==void 0)return e.opentelemetry.ignore;if(n.length===0)return!1;let o=t.toString();return n.some(s=>typeof s=="string"?s==="*"?!0:o.startsWith(s):s.test(o))}shouldPropagate(t,e){let n=process.env.VERCEL_URL||process.env.NEXT_PUBLIC_VERCEL_URL||null,o=process.env.VERCEL_BRANCH_URL||process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL||null,s=this.config.propagateContextUrls??[],i=this.config.dontPropagateContextUrls??[];if(e?.opentelemetry?.propagateContext)return e.opentelemetry.propagateContext;let a=t.toString();return i.length>0&&i.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))?!1:n&&t.protocol==="https:"&&(t.host===n||t.host===o||t.host===ut()?.headers.host)||!n&&t.protocol==="http:"&&t.hostname==="localhost"?!0:s.some(_=>typeof _=="string"?_==="*"?!0:a.startsWith(_):_.test(a))}startSpan({tracer:t,url:e,fetchType:n,method:o="GET",name:s,attributes:i={}}){let a=this.config.resourceNameTemplate,_={[Ap]:o,[dp]:e.toString(),[dn]:e.host,[mp]:e.protocol.replace(":",""),[Rp]:e.hostname,[hp]:e.port},E=a?Yl(a,_):ix(e.toString()),T=s??`${n} ${o} ${e.toString()}`,l=c.context.active();return t.startSpan(T,{kind:c.SpanKind.CLIENT,attributes:{..._,"operation.name":`${n}.${o}`,"http.client.name":n,"resource.name":E,...i}},l)}instrumentHttp(t,e){let{tracerProvider:n}=this;if(!n)return;let o=n.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:s,attributesFromResponseHeaders:i}=this.config,a=t.request,_=t.get,E=T=>(l,A,h)=>{let R,I={},x;if(typeof l=="string"||l instanceof URL?(R=new URL(l.toString()),typeof A=="function"?x=A:A&&typeof h=="function"?(I=A,x=h):A&&(I=A)):(I=l,typeof A=="function"&&(x=A),R=cx(I,e)),this.shouldIgnore(R))return T.apply(this,[R,I,x]);let M=this.startSpan({tracer:o,url:R,fetchType:"http",method:I.method||"GET"});if(!M.isRecording()||!ie(M.spanContext().traceFlags))return M.end(),T.apply(this,[R,I,x]);if(this.shouldPropagate(R)){let J=c.context.active(),Lt=c.trace.setSpan(J,M);c.propagation.inject(Lt,I.headers||{},sx)}s&&Cn(M,s,I.headers||{},Kl);try{let J=Date.now(),Lt=T.apply(this,[R,I,x]);return Lt.prependListener("response",w=>{let Jl=Date.now()-J;M.setAttribute("http.response_time",Jl),w.statusCode!==void 0?(M.setAttribute(Bo,w.statusCode),w.statusCode>=500&&Gt(M,`Status: ${w.statusCode}`)):Gt(M,"Response status code is undefined"),i&&Cn(M,i,w.headers,Kl),Lt.listenerCount("response")<=1&&w.resume(),w.on("end",()=>{let Fe,Un=w.statusCode;w.aborted&&!w.complete?Fe={code:c.SpanStatusCode.ERROR}:Un&&Un>=100&&Un<500?Fe={code:c.SpanStatusCode.UNSET}:Fe={code:c.SpanStatusCode.ERROR},M.setStatus(Fe),M.isRecording()&&(w.headers["content-length"]&&M.setAttribute(wo,w.headers["content-length"]),M.end())})}),Lt.on("error",w=>{M.isRecording()&&(Gt(M,w),M.end())}),Lt.on("close",()=>{M.isRecording()&&M.end()}),Lt}catch(J){throw Gt(M,J),M.end(),J}};t.request=E(a),t.get=E(_)}instrumentFetch(){let{tracerProvider:t}=this;if(!t)return;let e=t.getTracer(this.instrumentationName,this.instrumentationVersion),{attributesFromRequestHeaders:n,attributesFromResponseHeaders:o}=this.config;process.env.NEXT_OTEL_FETCH_DISABLED="1";let s=globalThis.fetch;this.originalFetch=s;let i=async(a,_)=>{let E=_;if(E?.next?.internal)return s(a,E);let T=new Request(a instanceof Request?a.clone():a,E),l=new URL(T.url);if(this.shouldIgnore(l,E))return s(a,E);let A=this.startSpan({tracer:e,url:l,fetchType:"fetch",method:T.method,name:E?.opentelemetry?.spanName,attributes:E?.opentelemetry?.attributes});if(!A.isRecording()||!ie(A.spanContext().traceFlags))return A.end(),s(a,E);if(this.shouldPropagate(l,E)){let h=c.context.active(),R=c.trace.setSpan(h,A);c.propagation.inject(R,T.headers,ox)}n&&Cn(A,n,T.headers,kl);try{let h=Date.now();E?.body&&E.body instanceof FormData&&T.headers.delete("content-type");let R=await s(a,{...E,headers:T.headers}),I=Date.now()-h;return A.setAttribute(Bo,R.status),A.setAttribute("http.response_time",I),o&&Cn(A,o,R.headers,kl),R.status>=500&&Gt(A,`Status: ${R.status} (${R.statusText})`),R.body?ax(R).then(x=>{A.isRecording()&&(A.setAttribute(wo,x),A.end())},x=>{A.isRecording()&&(Gt(A,x),A.end())}):A.end(),R}catch(h){throw Gt(A,h),A.end(),h}};globalThis.fetch=i}enable(){this.disable(),this.instrumentFetch();try{let t=Es("node:http"),e=Es("node:https");this.instrumentHttp(t,"http:"),this.instrumentHttp(e,"https:")}catch{}}disable(){this.originalFetch&&(globalThis.fetch=this.originalFetch)}},ox={set(r,t,e){r.set(t,e)}},kl={get(r,t){let e=r.get(t);if(e!==null)return e.includes(",")?e.split(",").map(n=>n.trimStart()):e},keys(r){let t=[];return r.forEach((e,n)=>{t.push(n)}),t}},sx={set(r,t,e){r[t.toLowerCase()]=e}},Kl={get(r,t){return r[t.toLowerCase()]},keys(r){return Object.keys(r)}};function ix(r){let t=r.indexOf("?");return t===-1?r:r.substring(0,t)}function ax(r){let t=0,n=r.clone().body?.getReader();if(!n)return Promise.resolve(0);let o=()=>n.read().then(({done:s,value:i})=>{if(!s)return t+=i.byteLength,o()});return o().then(()=>t)}function Gt(r,t){if(t instanceof Error)r.recordException(t),r.setStatus({code:c.SpanStatusCode.ERROR,message:t.message});else{let e=String(t);r.setStatus({code:c.SpanStatusCode.ERROR,message:e})}}function Cn(r,t,e,n){for(let[o,s]of Object.entries(t)){let i=n.get(e,s);i!==void 0&&r.setAttribute(o,i)}}function cx(r,t){if(r.socketPath)throw new Error("Cannot construct a network URL: options.socketPath is specified, indicating a Unix domain socket.");let e=r.protocol??t;e&&!e.endsWith(":")&&(e+=":");let n=r.hostname,o=r.port??r.defaultPort;if(!n&&r.host){let E=r.host.split(":");n=E[0];let T=E[1];if(E.length>1&&T&&o===void 0){let l=parseInt(T,10);isNaN(l)||(o=l)}}n||(n="localhost");let s;if(o!==void 0&&o!==""){let E=parseInt(String(o),10);isNaN(E)?s=e==="https:"?443:80:s=E}else s=e==="https:"?443:80;let i=r.path||"/",a=`${e}//${n}:${s}`,_=new URL(i,a);if(r.auth){let E=r.auth.split(":");_.username=decodeURIComponent(E[0]||""),E.length>1&&(_.password=decodeURIComponent(E[1]||""))}return _}d();var jl=O(P(),1),_x="00",cs="traceparent",_s="tracestate",He=class{fields(){return[cs,_s]}inject(t,e,n){let o=c.trace.getSpanContext(t);if(!o||(0,jl.isTracingSuppressed)(t)||!(0,c.isSpanContextValid)(o))return;let s=`${_x}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||0).toString(16)}`;n.set(e,cs,s),o.traceState&&n.set(e,_s,o.traceState.serialize())}extract(t,e,n){let o=n.get(e,cs);if(!o)return t;let s=Array.isArray(o)?o[0]:o;if(typeof s!="string")return t;let i=Ex(s);if(!i)return t;i.isRemote=!0;let a=n.get(e,_s);if(a){let _=Array.isArray(a)?a.join(","):a;i.traceState=(0,c.createTraceState)(typeof _=="string"?_:void 0)}return c.trace.setSpanContext(t,i)}};function Ex(r){let[t,e,n,o,s]=r.split("-");return!t||!e||!n||!o||t.length!==2||e.length!==32||n.length!==16||o.length!==2||t==="00"&&s?null:{traceId:e,spanId:n,traceFlags:parseInt(o,16)}}d();var Ln=class{fields(){return[]}inject(){}extract(t){let e=ut();if(!e?.telemetry)return c.diag.warn("@vercel/otel: Vercel telemetry extension not found."),t;let{rootSpanContext:n}=e.telemetry;return n?(c.diag.debug("@vercel/otel: Extracted root SpanContext from Vercel request context.",n),c.trace.setSpanContext(t,{...n,isRemote:!0,traceFlags:n.traceFlags||c.TraceFlags.SAMPLED})):t}};d();var In=O(P(),1),Wl=O(Wo(),1);var xn=class{export(t,e){let n=ut();if(!n?.telemetry){c.diag.warn("@vercel/otel: no telemetry context found"),e({code:In.ExportResultCode.SUCCESS,error:void 0});return}try{let o=Wl.JsonTraceSerializer.serializeRequest(t);if(!o)throw new Error("Failed to serialize spans");let s=JSON.parse(new TextDecoder().decode(o));n.telemetry.reportSpans(s),e({code:In.ExportResultCode.SUCCESS,error:void 0})}catch(o){e({code:In.ExportResultCode.FAILED,error:o instanceof Error?o:new Error(String(o))})}}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}};function Q(r){let t=process.env[r];if(!(!t||t.trim()===""))return t}function ql(r){return Q(r)?.split(",").map(t=>t.trim()).filter(t=>t!=="")}var ux={ALL:c.DiagLogLevel.ALL,VERBOSE:c.DiagLogLevel.VERBOSE,DEBUG:c.DiagLogLevel.DEBUG,INFO:c.DiagLogLevel.INFO,WARN:c.DiagLogLevel.WARN,ERROR:c.DiagLogLevel.ERROR,NONE:c.DiagLogLevel.NONE},Dn=class{constructor(t={}){this.configuration=t}start(){let t=Tx(),e=this.configuration,n=process.env.NEXT_RUNTIME||"nodejs",o=!!t.OTEL_SDK_DISABLED;if(process.env.OTEL_LOG_LEVEL&&c.diag.setLogger(new c.DiagConsoleLogger,{logLevel:ux[process.env.OTEL_LOG_LEVEL.toUpperCase()]}),o)return;let s=e.idGenerator??new Rt;this.contextManager=Rx(e.contextManager);let i=t.OTEL_SERVICE_NAME||e.serviceName||"app",a=Re(mn({[Op]:i,"node.ci":process.env.CI?!0:void 0,"node.env":"production",env:process.env.VERCEL_ENV||process.env.NEXT_PUBLIC_VERCEL_ENV,"vercel.region":process.env.VERCEL_REGION,"vercel.runtime":n,"vercel.sha":process.env.VERCEL_GIT_COMMIT_SHA||process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,"vercel.host":process.env.VERCEL_URL||process.env.NEXT_PUBLIC_VERCEL_URL||void 0,"vercel.branch_host":process.env.VERCEL_BRANCH_URL||process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL||void 0,"vercel.deployment_id":process.env.VERCEL_DEPLOYMENT_ID||void 0,[gp]:process.env.VERCEL_DEPLOYMENT_ID,...e.attributes})),_=e.resourceDetectors??[Or];if(e.autoDetectResources??!0){let M=oo({detectors:_});a=a.merge(M)}let T=px(e.propagators,e,t),l=lx(e.traceSampler,t),A=Ax(e.spanProcessors,e,t);A.length===0&&c.diag.warn("@vercel/otel: No span processors configured. No spans will be exported.");let h=e.spanLimits,R=new ge({resource:a,idGenerator:s,sampler:l,spanLimits:h,spanProcessors:[new fn(A,e.attributesFromHeaders)]});if(c.trace.setGlobalTracerProvider(R),c.propagation.setGlobalPropagator(new Ct.CompositePropagator({propagators:T})),this.tracerProvider=R,e.logRecordProcessors){let x=new Ne({resource:a,processors:e.logRecordProcessors});this.loggerProvider=x,W.logs.setGlobalLoggerProvider(x)}if(e.metricReaders||e.views){let x=new ye({resource:a,views:e.views??[],readers:e.metricReaders??[]});c.metrics.setGlobalMeterProvider(x),this.meterProvider=x}let I=Sx(e.instrumentations,e.instrumentationConfig);this.disableInstrumentations=_o({instrumentations:I}),c.diag.info("@vercel/otel: started",i,n)}async shutdown(){let t=[];this.tracerProvider&&t.push(this.tracerProvider.shutdown()),this.loggerProvider&&t.push(this.loggerProvider.shutdown()),this.meterProvider&&t.push(this.meterProvider.shutdown()),c.diag.info("@vercel/otel: shutting down",t.length,process.env.NEXT_RUNTIME),await Promise.all(t),this.contextManager&&this.contextManager.disable();let{disableInstrumentations:e}=this;e&&e()}};function Tx(){return{OTEL_SDK_DISABLED:Q("OTEL_SDK_DISABLED"),OTEL_SERVICE_NAME:Q("OTEL_SERVICE_NAME"),OTEL_PROPAGATORS:ql("OTEL_PROPAGATORS"),OTEL_TRACES_SAMPLER:Q("OTEL_TRACES_SAMPLER"),OTEL_TRACES_SAMPLER_ARG:Q("OTEL_TRACES_SAMPLER_ARG"),OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:Q("OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"),OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:Q("OTEL_EXPORTER_OTLP_TRACES_PROTOCOL"),OTEL_EXPORTER_OTLP_PROTOCOL:Q("OTEL_EXPORTER_OTLP_PROTOCOL"),OTEL_EXPORTER_OTLP_ENDPOINT:Q("OTEL_EXPORTER_OTLP_ENDPOINT"),OTEL_EXPORTER_OTLP_HEADERS:Q("OTEL_EXPORTER_OTLP_HEADERS"),OTEL_EXPORTER_OTLP_TRACES_HEADERS:Q("OTEL_EXPORTER_OTLP_TRACES_HEADERS")}}function Sx(r,t){return(r??["auto"]).map(e=>e==="auto"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),[new ue(t?.fetch)]):e==="fetch"?(c.diag.debug("@vercel/otel: Configure instrumentations: fetch",t?.fetch),new ue(t?.fetch)):e).flat()}function px(r,t,e){let n=process.env.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS&&e.OTEL_PROPAGATORS.length>0?e.OTEL_PROPAGATORS:void 0;return(r??n??["auto"]).map(o=>{if(o==="none")return[];if(o==="auto"){let s=[];return s.push({name:"tracecontext",propagator:new He}),s.push({name:"baggage",propagator:new Ct.W3CBaggagePropagator}),s.push({name:"vercel-runtime",propagator:new Ln}),c.diag.debug(`@vercel/otel: Configure propagators: ${s.map(i=>i.name).join(", ")}`),s.map(i=>i.propagator)}if(o==="tracecontext")return c.diag.debug("@vercel/otel: Configure propagator: tracecontext"),new He;if(o==="baggage")return c.diag.debug("@vercel/otel: Configure propagator: baggage"),new Ct.W3CBaggagePropagator;if(typeof o=="string")throw new Error(`Unknown propagator: "${o}"`);return o}).flat()}var $l="always_on",Te=1;function lx(r,t){if(r&&typeof r!="string")return r;let e=r&&r!=="auto"?r:t.OTEL_TRACES_SAMPLER||$l;switch(c.diag.debug("@vercel/otel: Configure sampler: ",e),e){case"always_on":return new B;case"always_off":return new k;case"parentbased_always_on":return new K({root:new B});case"parentbased_always_off":return new K({root:new k});case"traceidratio":return new At(Xl(t));case"parentbased_traceidratio":return new K({root:new At(Xl(t))});default:return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER value "${String(t.OTEL_TRACES_SAMPLER)} invalid, defaulting to ${$l}".`),new B}}function Xl(r){if(r.OTEL_TRACES_SAMPLER_ARG===void 0||r.OTEL_TRACES_SAMPLER_ARG==="")return c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Te}.`),Te;c.diag.debug("@vercel/otel: Configure sampler probability: ",r.OTEL_TRACES_SAMPLER_ARG);let t=Number(r.OTEL_TRACES_SAMPLER_ARG);return isNaN(t)?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${Te}.`),Te):t<0||t>1?(c.diag.error(`@vercel/otel: OTEL_TRACES_SAMPLER_ARG=${r.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${Te}.`),Te):t}function Ax(r,t,e){return[...(r??["auto"]).flatMap(n=>{if(n==="auto"){let o=[new dt(new xn)];if(process.env.VERCEL_OTEL_ENDPOINTS){let s=process.env.VERCEL_OTEL_ENDPOINTS_PORT||"4318",i=process.env.VERCEL_OTEL_ENDPOINTS_PROTOCOL||"http/protobuf";c.diag.debug("@vercel/otel: Configure vercel otel collector on port: ",s,i);let a={url:`http://localhost:${s}/v1/traces`,headers:{}},_=i==="http/protobuf"?new wt(a):new ce(a);o.push(new dt(_))}else(!t.traceExporter||t.traceExporter==="auto"||e.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||e.OTEL_EXPORTER_OTLP_ENDPOINT)&&o.push(new dt(dx(e)));return o}return n}).filter(hx),...t.traceExporter&&t.traceExporter!=="auto"?[new dt(t.traceExporter)]:[]]}function dx(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_PROTOCOL??r.OTEL_EXPORTER_OTLP_PROTOCOL??"http/protobuf",e=fx(r),n={...r.OTEL_EXPORTER_OTLP_HEADERS?(0,Ct.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_HEADERS):{},...r.OTEL_EXPORTER_OTLP_TRACES_HEADERS?(0,Ct.parseKeyPairsIntoRecord)(r.OTEL_EXPORTER_OTLP_TRACES_HEADERS):{}};switch(c.diag.debug("@vercel/otel: Configure trace exporter: ",t,e,`headers: ${Object.keys(n).join(",")||"<none>"}`),t){case"http/json":return new ce({url:e,headers:n});case"http/protobuf":return new wt({url:e,headers:n});default:return c.diag.warn(`@vercel/otel: Unsupported OTLP traces protocol: ${t}. Using http/protobuf.`),new wt}}var Ql="v1/traces",mx=`http://localhost:4318/${Ql}`;function fx(r){let t=r.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT;if(t&&typeof t=="string")return t;let e=r.OTEL_EXPORTER_OTLP_ENDPOINT;return e&&typeof e=="string"?`${e}/${Ql}`:mx}function hx(r){return r!=null}function Rx(r){if(r===void 0){c.diag.debug("@vercel/otel: Configure context manager: default");let t=new zl.AsyncLocalStorageContextManager;return t.enable(),c.context.setGlobalContextManager(t),t}return c.diag.debug("@vercel/otel: Configure context manager: from configuration"),r.enable(),c.context.setGlobalContextManager(r),r}function _B(r){let t;r?typeof r=="string"?t={serviceName:r}:t=r:t={},new Dn(t).start()}export{ue as FetchInstrumentation,ce as OTLPHttpJsonTraceExporter,wt as OTLPHttpProtoTraceExporter,_B as registerOTel};
|
|
17
17
|
//# sourceMappingURL=index.js.map
|