@clinebot/core 0.0.36 → 0.0.37
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/ClineCore.d.ts +312 -3
- package/dist/ClineCore.d.ts.map +1 -1
- package/dist/account/cline-account-service.d.ts.map +1 -1
- package/dist/cron/cron-event-ingress.d.ts +38 -0
- package/dist/cron/cron-event-ingress.d.ts.map +1 -0
- package/dist/cron/cron-materializer.d.ts +36 -0
- package/dist/cron/cron-materializer.d.ts.map +1 -0
- package/dist/cron/cron-reconciler.d.ts +62 -0
- package/dist/cron/cron-reconciler.d.ts.map +1 -0
- package/dist/cron/cron-report-writer.d.ts +41 -0
- package/dist/cron/cron-report-writer.d.ts.map +1 -0
- package/dist/cron/cron-runner.d.ts +43 -0
- package/dist/cron/cron-runner.d.ts.map +1 -0
- package/dist/cron/cron-schema.d.ts +3 -0
- package/dist/cron/cron-schema.d.ts.map +1 -0
- package/dist/cron/cron-service.d.ts +57 -0
- package/dist/cron/cron-service.d.ts.map +1 -0
- package/dist/cron/cron-spec-parser.d.ts +27 -0
- package/dist/cron/cron-spec-parser.d.ts.map +1 -0
- package/dist/cron/cron-watcher.d.ts +23 -0
- package/dist/cron/cron-watcher.d.ts.map +1 -0
- package/dist/cron/scheduler.d.ts +3 -1
- package/dist/cron/scheduler.d.ts.map +1 -1
- package/dist/cron/sqlite-cron-store.d.ts +230 -0
- package/dist/cron/sqlite-cron-store.d.ts.map +1 -0
- package/dist/extensions/plugin/plugin-config-loader.d.ts +7 -1
- package/dist/extensions/plugin/plugin-config-loader.d.ts.map +1 -1
- package/dist/extensions/plugin/plugin-loader.d.ts +10 -6
- package/dist/extensions/plugin/plugin-loader.d.ts.map +1 -1
- package/dist/extensions/plugin/plugin-sandbox.d.ts +7 -1
- package/dist/extensions/plugin/plugin-sandbox.d.ts.map +1 -1
- package/dist/extensions/plugin-sandbox-bootstrap.js +236 -275
- package/dist/extensions/tools/constants.d.ts +1 -0
- package/dist/extensions/tools/constants.d.ts.map +1 -1
- package/dist/extensions/tools/definitions.d.ts +2 -3
- package/dist/extensions/tools/definitions.d.ts.map +1 -1
- package/dist/extensions/tools/executors/editor.d.ts.map +1 -1
- package/dist/extensions/tools/helpers.d.ts +1 -0
- package/dist/extensions/tools/helpers.d.ts.map +1 -1
- package/dist/extensions/tools/index.d.ts +1 -2
- package/dist/extensions/tools/index.d.ts.map +1 -1
- package/dist/extensions/tools/presets.d.ts +1 -1
- package/dist/extensions/tools/schemas.d.ts +25 -3
- package/dist/extensions/tools/schemas.d.ts.map +1 -1
- package/dist/extensions/tools/team/delegated-agent.d.ts +2 -2
- package/dist/extensions/tools/team/delegated-agent.d.ts.map +1 -1
- package/dist/extensions/tools/team/multi-agent.d.ts +7 -3
- package/dist/extensions/tools/team/multi-agent.d.ts.map +1 -1
- package/dist/extensions/tools/team/team-tools.d.ts.map +1 -1
- package/dist/extensions/tools/types.d.ts +0 -5
- package/dist/extensions/tools/types.d.ts.map +1 -1
- package/dist/hooks/hook-bridge.d.ts +118 -0
- package/dist/hooks/hook-bridge.d.ts.map +1 -0
- package/dist/hooks/hook-file-hooks.d.ts +2 -1
- package/dist/hooks/hook-file-hooks.d.ts.map +1 -1
- package/dist/hooks/hook-registry.d.ts +16 -0
- package/dist/hooks/hook-registry.d.ts.map +1 -0
- package/dist/hub/browser-websocket.d.ts.map +1 -1
- package/dist/hub/client.d.ts +7 -1
- package/dist/hub/client.d.ts.map +1 -1
- package/dist/hub/daemon-entry.js +721 -461
- package/dist/hub/daemon.d.ts.map +1 -1
- package/dist/hub/defaults.d.ts +8 -4
- package/dist/hub/defaults.d.ts.map +1 -1
- package/dist/hub/index.js +665 -415
- package/dist/hub/runtime-handlers.d.ts.map +1 -1
- package/dist/hub/server.d.ts +18 -0
- package/dist/hub/server.d.ts.map +1 -1
- package/dist/hub/session-client.d.ts +3 -0
- package/dist/hub/session-client.d.ts.map +1 -1
- package/dist/hub/start-shared-server.d.ts.map +1 -1
- package/dist/hub/ui-client.d.ts +1 -0
- package/dist/hub/ui-client.d.ts.map +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +756 -467
- package/dist/llms/cline-recommended-models.d.ts +20 -0
- package/dist/llms/cline-recommended-models.d.ts.map +1 -0
- package/dist/llms/handler-factory.d.ts +16 -0
- package/dist/llms/handler-factory.d.ts.map +1 -0
- package/dist/llms/provider-defaults.d.ts.map +1 -1
- package/dist/llms/provider-settings.d.ts +45 -2
- package/dist/llms/provider-settings.d.ts.map +1 -1
- package/dist/llms/runtime-registry.d.ts.map +1 -1
- package/dist/runtime/agent-config-adapter.d.ts +148 -0
- package/dist/runtime/agent-config-adapter.d.ts.map +1 -0
- package/dist/runtime/agent-runtime-config-builder.d.ts +96 -0
- package/dist/runtime/agent-runtime-config-builder.d.ts.map +1 -0
- package/dist/runtime/history.d.ts +6 -0
- package/dist/runtime/history.d.ts.map +1 -1
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/loop-detection.d.ts +59 -0
- package/dist/runtime/loop-detection.d.ts.map +1 -0
- package/dist/runtime/mistake-tracker.d.ts +69 -0
- package/dist/runtime/mistake-tracker.d.ts.map +1 -0
- package/dist/runtime/runtime-builder.d.ts.map +1 -1
- package/dist/runtime/runtime-event-adapter.d.ts +102 -0
- package/dist/runtime/runtime-event-adapter.d.ts.map +1 -0
- package/dist/runtime/runtime-host.d.ts +28 -3
- package/dist/runtime/runtime-host.d.ts.map +1 -1
- package/dist/runtime/session-runtime-orchestrator.d.ts +261 -0
- package/dist/runtime/session-runtime-orchestrator.d.ts.map +1 -0
- package/dist/runtime/session-runtime.d.ts +16 -3
- package/dist/runtime/session-runtime.d.ts.map +1 -1
- package/dist/runtime/user-input-builder.d.ts +24 -0
- package/dist/runtime/user-input-builder.d.ts.map +1 -0
- package/dist/services/index.js +28 -0
- package/dist/services/local-runtime-bootstrap.d.ts.map +1 -1
- package/dist/services/plugin-tools.d.ts.map +1 -1
- package/dist/services/providers/local-provider-registry.d.ts +197 -21
- package/dist/services/providers/local-provider-registry.d.ts.map +1 -1
- package/dist/services/providers/local-provider-service.d.ts +3 -1
- package/dist/services/providers/local-provider-service.d.ts.map +1 -1
- package/dist/services/session-data.d.ts.map +1 -1
- package/dist/services/session-telemetry.d.ts +7 -2
- package/dist/services/session-telemetry.d.ts.map +1 -1
- package/dist/services/storage/file-team-store.d.ts.map +1 -1
- package/dist/services/storage/provider-settings-legacy-migration.d.ts.map +1 -1
- package/dist/services/storage/provider-settings-manager.d.ts +1 -0
- package/dist/services/storage/provider-settings-manager.d.ts.map +1 -1
- package/dist/services/storage/sqlite-team-store.d.ts.map +1 -1
- package/dist/session/conversation-store.d.ts +30 -0
- package/dist/session/conversation-store.d.ts.map +1 -0
- package/dist/session/message-builder.d.ts +65 -0
- package/dist/session/message-builder.d.ts.map +1 -0
- package/dist/session/session-manifest.d.ts +1 -1
- package/dist/transports/hub.d.ts +14 -3
- package/dist/transports/hub.d.ts.map +1 -1
- package/dist/transports/local.d.ts +14 -4
- package/dist/transports/local.d.ts.map +1 -1
- package/dist/transports/remote.d.ts.map +1 -1
- package/dist/types/chat-schema.d.ts +5 -5
- package/dist/types/config.d.ts +9 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/events.d.ts +7 -6
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/provider-settings.d.ts +2 -2
- package/dist/types/provider-settings.d.ts.map +1 -1
- package/dist/types/session.d.ts +5 -2
- package/dist/types/session.d.ts.map +1 -1
- package/dist/types.d.ts +4 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/ClineCore.ts +691 -6
- package/src/account/cline-account-service.ts +44 -6
- package/src/cron/cron-event-ingress.ts +357 -0
- package/src/cron/cron-materializer.ts +97 -0
- package/src/cron/cron-reconciler.ts +241 -0
- package/src/cron/cron-report-writer.ts +153 -0
- package/src/cron/cron-runner.ts +495 -0
- package/src/cron/cron-schema.ts +127 -0
- package/src/cron/cron-service.ts +163 -0
- package/src/cron/cron-spec-parser.ts +489 -0
- package/src/cron/cron-watcher.ts +102 -0
- package/src/cron/index.ts +10 -0
- package/src/cron/scheduler.ts +141 -6
- package/src/cron/sqlite-cron-store.ts +1286 -0
- package/src/extensions/plugin/plugin-config-loader.ts +21 -1
- package/src/extensions/plugin/plugin-loader.ts +25 -9
- package/src/extensions/plugin/plugin-sandbox-bootstrap.ts +151 -1
- package/src/extensions/plugin/plugin-sandbox.ts +131 -7
- package/src/extensions/tools/constants.ts +2 -0
- package/src/extensions/tools/definitions.ts +31 -22
- package/src/extensions/tools/executors/editor.ts +4 -3
- package/src/extensions/tools/helpers.ts +24 -0
- package/src/extensions/tools/index.ts +1 -2
- package/src/extensions/tools/presets.ts +1 -1
- package/src/extensions/tools/schemas.ts +13 -18
- package/src/extensions/tools/team/delegated-agent.ts +8 -3
- package/src/extensions/tools/team/multi-agent.ts +135 -19
- package/src/extensions/tools/team/team-tools.ts +151 -91
- package/src/extensions/tools/types.ts +0 -6
- package/src/hooks/hook-bridge.ts +489 -0
- package/src/hooks/hook-file-hooks.ts +58 -3
- package/src/hooks/hook-registry.ts +257 -0
- package/src/hub/browser-websocket.ts +26 -4
- package/src/hub/client.ts +72 -13
- package/src/hub/daemon-entry.ts +35 -0
- package/src/hub/daemon.ts +117 -14
- package/src/hub/defaults.ts +39 -12
- package/src/hub/runtime-handlers.ts +4 -3
- package/src/hub/server.ts +506 -77
- package/src/hub/session-client.ts +43 -1
- package/src/hub/start-shared-server.ts +3 -0
- package/src/hub/ui-client.ts +4 -0
- package/src/index.ts +46 -1
- package/src/llms/cline-recommended-models.ts +167 -0
- package/src/llms/handler-factory.ts +56 -0
- package/src/llms/provider-defaults.ts +17 -1
- package/src/llms/provider-settings.ts +48 -1
- package/src/llms/runtime-registry.ts +1 -0
- package/src/runtime/agent-config-adapter.ts +636 -0
- package/src/runtime/agent-runtime-config-builder.ts +205 -0
- package/src/runtime/error-feedback.ts +142 -0
- package/src/runtime/history.ts +137 -0
- package/src/runtime/host.ts +22 -0
- package/src/runtime/loop-detection.ts +162 -0
- package/src/runtime/mistake-tracker.ts +221 -0
- package/src/runtime/runtime-builder.ts +61 -5
- package/src/runtime/runtime-event-adapter.ts +412 -0
- package/src/runtime/runtime-host.ts +45 -1
- package/src/runtime/session-runtime-orchestrator.ts +1253 -0
- package/src/runtime/session-runtime.ts +16 -2
- package/src/runtime/user-input-builder.ts +167 -0
- package/src/services/local-runtime-bootstrap.ts +128 -22
- package/src/services/plugin-tools.ts +1 -0
- package/src/services/providers/local-provider-registry.ts +273 -57
- package/src/services/providers/local-provider-service.ts +67 -7
- package/src/services/session-data.ts +16 -14
- package/src/services/session-telemetry.ts +6 -15
- package/src/services/storage/file-team-store.ts +1 -5
- package/src/services/storage/provider-settings-legacy-migration.ts +8 -47
- package/src/services/storage/provider-settings-manager.ts +16 -1
- package/src/services/storage/sqlite-team-store.ts +1 -5
- package/src/session/conversation-store.ts +77 -0
- package/src/session/message-builder.ts +941 -0
- package/src/transports/hub.ts +458 -33
- package/src/transports/local.ts +296 -65
- package/src/transports/remote.ts +1 -0
- package/src/types/config.ts +9 -0
- package/src/types/events.ts +8 -6
- package/src/types/index.ts +3 -0
- package/src/types/provider-settings.ts +8 -1
- package/src/types/session.ts +5 -2
- package/src/types.ts +15 -1
- package/dist/cron/index.d.ts +0 -6
- package/dist/cron/index.d.ts.map +0 -1
- package/dist/services/telemetry/index.js +0 -28
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import{createRequire as tS}from"node:module";var nS=Object.create;var{getPrototypeOf:mS,defineProperty:c9,getOwnPropertyNames:gS}=Object;var pS=Object.prototype.hasOwnProperty;function iS(Z){return this[Z]}var aS,oS,u=(Z,X,z)=>{var q=Z!=null&&typeof Z==="object";if(q){var G=X?aS??=new WeakMap:oS??=new WeakMap,W=G.get(Z);if(W)return W}z=Z!=null?nS(mS(Z)):{};let Q=X||!Z||!Z.__esModule?c9(z,"default",{value:Z,enumerable:!0}):z;for(let J of gS(Z))if(!pS.call(Q,J))c9(Q,J,{get:iS.bind(Z,J),enumerable:!0});if(q)G.set(Z,Q);return Q};var V=(Z,X)=>()=>(X||Z((X={exports:{}}).exports,X),X.exports);var h=tS(import.meta.url);var l7=V((n9)=>{Object.defineProperty(n9,"__esModule",{value:!0});n9.VERSION=void 0;n9.VERSION="1.9.1"});var o9=V((i9)=>{Object.defineProperty(i9,"__esModule",{value:!0});i9.isCompatible=i9._makeCompatibilityCheck=void 0;var sS=l7(),g9=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function p9(Z){let X=new Set([Z]),z=new Set,q=Z.match(g9);if(!q)return()=>!1;let G={major:+q[1],minor:+q[2],patch:+q[3],prerelease:q[4]};if(G.prerelease!=null)return function(Y){return Y===Z};function W(J){return z.add(J),!1}function Q(J){return X.add(J),!0}return function(Y){if(X.has(Y))return!0;if(z.has(Y))return!1;let K=Y.match(g9);if(!K)return W(Y);let F={major:+K[1],minor:+K[2],patch:+K[3],prerelease:K[4]};if(F.prerelease!=null)return W(Y);if(G.major!==F.major)return W(Y);if(G.major===0){if(G.minor===F.minor&&G.patch<=F.patch)return Q(Y);return W(Y)}if(G.minor<=F.minor)return Q(Y);return W(Y)}}i9._makeCompatibilityCheck=p9;i9.isCompatible=p9(sS.VERSION)});var K1=V((t9)=>{Object.defineProperty(t9,"__esModule",{value:!0});t9.unregisterGlobal=t9.getGlobal=t9.registerGlobal=void 0;var t1=l7(),Z_=o9(),J_=t1.VERSION.split(".")[0],jZ=Symbol.for(`opentelemetry.js.api.${J_}`),xZ=typeof globalThis==="object"?globalThis:typeof self==="object"?self:typeof window==="object"?window:typeof global==="object"?global:{};function Q_(Z,X,z,q=!1){var G;let W=xZ[jZ]=(G=xZ[jZ])!==null&&G!==void 0?G:{version:t1.VERSION};if(!q&&W[Z]){let Q=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${Z}`);return z.error(Q.stack||Q.message),!1}if(W.version!==t1.VERSION){let Q=Error(`@opentelemetry/api: Registration of version v${W.version} for ${Z} does not match previously registered API v${t1.VERSION}`);return z.error(Q.stack||Q.message),!1}return W[Z]=X,z.debug(`@opentelemetry/api: Registered a global for ${Z} v${t1.VERSION}.`),!0}t9.registerGlobal=Q_;function X_(Z){var X,z;let q=(X=xZ[jZ])===null||X===void 0?void 0:X.version;if(!q||!(0,Z_.isCompatible)(q))return;return(z=xZ[jZ])===null||z===void 0?void 0:z[Z]}t9.getGlobal=X_;function Y_(Z,X){X.debug(`@opentelemetry/api: Unregistering a global for ${Z} v${t1.VERSION}.`);let z=xZ[jZ];if(z)delete z[Z]}t9.unregisterGlobal=Y_});var J5=V((e9)=>{Object.defineProperty(e9,"__esModule",{value:!0});e9.DiagComponentLogger=void 0;var q_=K1();class s9{constructor(Z){this._namespace=Z.namespace||"DiagComponentLogger"}debug(...Z){return bZ("debug",this._namespace,Z)}error(...Z){return bZ("error",this._namespace,Z)}info(...Z){return bZ("info",this._namespace,Z)}warn(...Z){return bZ("warn",this._namespace,Z)}verbose(...Z){return bZ("verbose",this._namespace,Z)}}e9.DiagComponentLogger=s9;function bZ(Z,X,z){let q=(0,q_.getGlobal)("diag");if(!q)return;return q[Z](X,...z)}});var n6=V((Q5)=>{Object.defineProperty(Q5,"__esModule",{value:!0});Q5.DiagLogLevel=void 0;var W_;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.ERROR=30]="ERROR",Z[Z.WARN=50]="WARN",Z[Z.INFO=60]="INFO",Z[Z.DEBUG=70]="DEBUG",Z[Z.VERBOSE=80]="VERBOSE",Z[Z.ALL=9999]="ALL"})(W_=Q5.DiagLogLevel||(Q5.DiagLogLevel={}))});var z5=V((X5)=>{Object.defineProperty(X5,"__esModule",{value:!0});X5.createLogLevelDiagLogger=void 0;var j0=n6();function K_(Z,X){if(Z<j0.DiagLogLevel.NONE)Z=j0.DiagLogLevel.NONE;else if(Z>j0.DiagLogLevel.ALL)Z=j0.DiagLogLevel.ALL;X=X||{};function z(q,G){let W=X[q];if(typeof W==="function"&&Z>=G)return W.bind(X);return function(){}}return{error:z("error",j0.DiagLogLevel.ERROR),warn:z("warn",j0.DiagLogLevel.WARN),info:z("info",j0.DiagLogLevel.INFO),debug:z("debug",j0.DiagLogLevel.DEBUG),verbose:z("verbose",j0.DiagLogLevel.VERBOSE)}}X5.createLogLevelDiagLogger=K_});var F1=V((q5)=>{Object.defineProperty(q5,"__esModule",{value:!0});q5.DiagAPI=void 0;var F_=J5(),H_=z5(),G5=n6(),m6=K1(),B_="diag";class n7{static instance(){if(!this._instance)this._instance=new n7;return this._instance}constructor(){function Z(q){return function(...G){let W=(0,m6.getGlobal)("diag");if(!W)return;return W[q](...G)}}let X=this,z=(q,G={logLevel:G5.DiagLogLevel.INFO})=>{var W,Q,J;if(q===X){let F=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return X.error((W=F.stack)!==null&&W!==void 0?W:F.message),!1}if(typeof G==="number")G={logLevel:G};let Y=(0,m6.getGlobal)("diag"),K=(0,H_.createLogLevelDiagLogger)((Q=G.logLevel)!==null&&Q!==void 0?Q:G5.DiagLogLevel.INFO,q);if(Y&&!G.suppressOverrideMessage){let F=(J=Error().stack)!==null&&J!==void 0?J:"<failed to generate stacktrace>";Y.warn(`Current logger will be overwritten from ${F}`),K.warn(`Current logger will overwrite one already registered from ${F}`)}return(0,m6.registerGlobal)("diag",K,X,!0)};X.setLogger=z,X.disable=()=>{(0,m6.unregisterGlobal)(B_,X)},X.createComponentLogger=(q)=>{return new F_.DiagComponentLogger(q)},X.verbose=Z("verbose"),X.debug=Z("debug"),X.info=Z("info"),X.warn=Z("warn"),X.error=Z("error")}}q5.DiagAPI=n7});var H5=V((K5)=>{Object.defineProperty(K5,"__esModule",{value:!0});K5.BaggageImpl=void 0;class r1{constructor(Z){this._entries=Z?new Map(Z):new Map}getEntry(Z){let X=this._entries.get(Z);if(!X)return;return Object.assign({},X)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(Z,X){let z=new r1(this._entries);return z._entries.set(Z,X),z}removeEntry(Z){let X=new r1(this._entries);return X._entries.delete(Z),X}removeEntries(...Z){let X=new r1(this._entries);for(let z of Z)X._entries.delete(z);return X}clear(){return new r1}}K5.BaggageImpl=r1});var V5=V((B5)=>{Object.defineProperty(B5,"__esModule",{value:!0});B5.baggageEntryMetadataSymbol=void 0;B5.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")});var m7=V((N5)=>{Object.defineProperty(N5,"__esModule",{value:!0});N5.baggageEntryMetadataFromString=N5.createBaggage=void 0;var O_=F1(),V_=H5(),N_=V5(),C_=O_.DiagAPI.instance();function U_(Z={}){return new V_.BaggageImpl(new Map(Object.entries(Z)))}N5.createBaggage=U_;function I_(Z){if(typeof Z!=="string")C_.error(`Cannot create baggage metadata from unknown type: ${typeof Z}`),Z="";return{__TYPE__:N_.baggageEntryMetadataSymbol,toString(){return Z}}}N5.baggageEntryMetadataFromString=I_});var dZ=V((U5)=>{Object.defineProperty(U5,"__esModule",{value:!0});U5.ROOT_CONTEXT=U5.createContextKey=void 0;function E_(Z){return Symbol.for(Z)}U5.createContextKey=E_;class g6{constructor(Z){let X=this;X._currentContext=Z?new Map(Z):new Map,X.getValue=(z)=>X._currentContext.get(z),X.setValue=(z,q)=>{let G=new g6(X._currentContext);return G._currentContext.set(z,q),G},X.deleteValue=(z)=>{let q=new g6(X._currentContext);return q._currentContext.delete(z),q}}}U5.ROOT_CONTEXT=new g6});var L5=V((E5)=>{Object.defineProperty(E5,"__esModule",{value:!0});E5.DiagConsoleLogger=E5._originalConsoleMethods=void 0;var g7=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];E5._originalConsoleMethods={};if(typeof console<"u"){let Z=["error","warn","info","debug","trace","log"];for(let X of Z)if(typeof console[X]==="function")E5._originalConsoleMethods[X]=console[X]}class D5{constructor(){function Z(X){return function(...z){let q=E5._originalConsoleMethods[X];if(typeof q!=="function")q=E5._originalConsoleMethods.log;if(typeof q!=="function"&&console){if(q=console[X],typeof q!=="function")q=console.log}if(typeof q==="function")return q.apply(console,z)}}for(let X=0;X<g7.length;X++)this[g7[X].n]=Z(g7[X].c)}}E5.DiagConsoleLogger=D5});var ZQ=V((T5)=>{Object.defineProperty(T5,"__esModule",{value:!0});T5.createNoopMeter=T5.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=T5.NOOP_OBSERVABLE_GAUGE_METRIC=T5.NOOP_OBSERVABLE_COUNTER_METRIC=T5.NOOP_UP_DOWN_COUNTER_METRIC=T5.NOOP_HISTOGRAM_METRIC=T5.NOOP_GAUGE_METRIC=T5.NOOP_COUNTER_METRIC=T5.NOOP_METER=T5.NoopObservableUpDownCounterMetric=T5.NoopObservableGaugeMetric=T5.NoopObservableCounterMetric=T5.NoopObservableMetric=T5.NoopHistogramMetric=T5.NoopGaugeMetric=T5.NoopUpDownCounterMetric=T5.NoopCounterMetric=T5.NoopMetric=T5.NoopMeter=void 0;class p7{constructor(){}createGauge(Z,X){return T5.NOOP_GAUGE_METRIC}createHistogram(Z,X){return T5.NOOP_HISTOGRAM_METRIC}createCounter(Z,X){return T5.NOOP_COUNTER_METRIC}createUpDownCounter(Z,X){return T5.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(Z,X){return T5.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(Z,X){return T5.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(Z,X){return T5.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(Z,X){}removeBatchObservableCallback(Z){}}T5.NoopMeter=p7;class s1{}T5.NoopMetric=s1;class i7 extends s1{add(Z,X){}}T5.NoopCounterMetric=i7;class a7 extends s1{add(Z,X){}}T5.NoopUpDownCounterMetric=a7;class o7 extends s1{record(Z,X){}}T5.NoopGaugeMetric=o7;class t7 extends s1{record(Z,X){}}T5.NoopHistogramMetric=t7;class uZ{addCallback(Z){}removeCallback(Z){}}T5.NoopObservableMetric=uZ;class r7 extends uZ{}T5.NoopObservableCounterMetric=r7;class s7 extends uZ{}T5.NoopObservableGaugeMetric=s7;class e7 extends uZ{}T5.NoopObservableUpDownCounterMetric=e7;T5.NOOP_METER=new p7;T5.NOOP_COUNTER_METRIC=new i7;T5.NOOP_GAUGE_METRIC=new o7;T5.NOOP_HISTOGRAM_METRIC=new t7;T5.NOOP_UP_DOWN_COUNTER_METRIC=new a7;T5.NOOP_OBSERVABLE_COUNTER_METRIC=new r7;T5.NOOP_OBSERVABLE_GAUGE_METRIC=new s7;T5.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new e7;function L_(){return T5.NOOP_METER}T5.createNoopMeter=L_});var y5=V((_5)=>{Object.defineProperty(_5,"__esModule",{value:!0});_5.ValueType=void 0;var __;(function(Z){Z[Z.INT=0]="INT",Z[Z.DOUBLE=1]="DOUBLE"})(__=_5.ValueType||(_5.ValueType={}))});var QQ=V((v5)=>{Object.defineProperty(v5,"__esModule",{value:!0});v5.defaultTextMapSetter=v5.defaultTextMapGetter=void 0;v5.defaultTextMapGetter={get(Z,X){if(Z==null)return;return Z[X]},keys(Z){if(Z==null)return[];return Object.keys(Z)}};v5.defaultTextMapSetter={set(Z,X,z){if(Z==null)return;Z[X]=z}}});var u5=V((b5)=>{Object.defineProperty(b5,"__esModule",{value:!0});b5.NoopContextManager=void 0;var v_=dZ();class x5{active(){return v_.ROOT_CONTEXT}with(Z,X,z,...q){return X.call(z,...q)}bind(Z,X){return X}enable(){return this}disable(){return this}}b5.NoopContextManager=x5});var lZ=V((c5)=>{Object.defineProperty(c5,"__esModule",{value:!0});c5.ContextAPI=void 0;var j_=u5(),XQ=K1(),l5=F1(),YQ="context",x_=new j_.NoopContextManager;class zQ{constructor(){}static getInstance(){if(!this._instance)this._instance=new zQ;return this._instance}setGlobalContextManager(Z){return(0,XQ.registerGlobal)(YQ,Z,l5.DiagAPI.instance())}active(){return this._getContextManager().active()}with(Z,X,z,...q){return this._getContextManager().with(Z,X,z,...q)}bind(Z,X){return this._getContextManager().bind(Z,X)}_getContextManager(){return(0,XQ.getGlobal)(YQ)||x_}disable(){this._getContextManager().disable(),(0,XQ.unregisterGlobal)(YQ,l5.DiagAPI.instance())}}c5.ContextAPI=zQ});var qQ=V((m5)=>{Object.defineProperty(m5,"__esModule",{value:!0});m5.TraceFlags=void 0;var b_;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.SAMPLED=1]="SAMPLED"})(b_=m5.TraceFlags||(m5.TraceFlags={}))});var i6=V((g5)=>{Object.defineProperty(g5,"__esModule",{value:!0});g5.INVALID_SPAN_CONTEXT=g5.INVALID_TRACEID=g5.INVALID_SPANID=void 0;var d_=qQ();g5.INVALID_SPANID="0000000000000000";g5.INVALID_TRACEID="00000000000000000000000000000000";g5.INVALID_SPAN_CONTEXT={traceId:g5.INVALID_TRACEID,spanId:g5.INVALID_SPANID,traceFlags:d_.TraceFlags.NONE}});var a6=V((t5)=>{Object.defineProperty(t5,"__esModule",{value:!0});t5.NonRecordingSpan=void 0;var u_=i6();class o5{constructor(Z=u_.INVALID_SPAN_CONTEXT){this._spanContext=Z}spanContext(){return this._spanContext}setAttribute(Z,X){return this}setAttributes(Z){return this}addEvent(Z,X){return this}addLink(Z){return this}addLinks(Z){return this}setStatus(Z){return this}updateName(Z){return this}end(Z){}isRecording(){return!1}recordException(Z,X){}}t5.NonRecordingSpan=o5});var FQ=V((e5)=>{Object.defineProperty(e5,"__esModule",{value:!0});e5.getSpanContext=e5.setSpanContext=e5.deleteSpan=e5.setSpan=e5.getActiveSpan=e5.getSpan=void 0;var l_=dZ(),c_=a6(),n_=lZ(),WQ=(0,l_.createContextKey)("OpenTelemetry Context Key SPAN");function KQ(Z){return Z.getValue(WQ)||void 0}e5.getSpan=KQ;function m_(){return KQ(n_.ContextAPI.getInstance().active())}e5.getActiveSpan=m_;function s5(Z,X){return Z.setValue(WQ,X)}e5.setSpan=s5;function g_(Z){return Z.deleteValue(WQ)}e5.deleteSpan=g_;function p_(Z,X){return s5(Z,new c_.NonRecordingSpan(X))}e5.setSpanContext=p_;function i_(Z){var X;return(X=KQ(Z))===null||X===void 0?void 0:X.spanContext()}e5.getSpanContext=i_});var t6=V((zX)=>{Object.defineProperty(zX,"__esModule",{value:!0});zX.wrapSpanContext=zX.isSpanContextValid=zX.isValidSpanId=zX.isValidTraceId=void 0;var JX=i6(),e_=a6(),o6=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function QX(Z,X){if(typeof Z!=="string"||Z.length!==X)return!1;let z=0;for(let q=0;q<Z.length;q+=4)z+=(o6[Z.charCodeAt(q)]|0)+(o6[Z.charCodeAt(q+1)]|0)+(o6[Z.charCodeAt(q+2)]|0)+(o6[Z.charCodeAt(q+3)]|0);return z===X}function XX(Z){return QX(Z,32)&&Z!==JX.INVALID_TRACEID}zX.isValidTraceId=XX;function YX(Z){return QX(Z,16)&&Z!==JX.INVALID_SPANID}zX.isValidSpanId=YX;function Zy(Z){return XX(Z.traceId)&&YX(Z.spanId)}zX.isSpanContextValid=Zy;function Jy(Z){return new e_.NonRecordingSpan(Z)}zX.wrapSpanContext=Jy});var OQ=V((KX)=>{Object.defineProperty(KX,"__esModule",{value:!0});KX.NoopTracer=void 0;var zy=lZ(),qX=FQ(),HQ=a6(),Gy=t6(),BQ=zy.ContextAPI.getInstance();class WX{startSpan(Z,X,z=BQ.active()){if(Boolean(X===null||X===void 0?void 0:X.root))return new HQ.NonRecordingSpan;let G=z&&(0,qX.getSpanContext)(z);if(qy(G)&&(0,Gy.isSpanContextValid)(G))return new HQ.NonRecordingSpan(G);else return new HQ.NonRecordingSpan}startActiveSpan(Z,X,z,q){let G,W,Q;if(arguments.length<2)return;else if(arguments.length===2)Q=X;else if(arguments.length===3)G=X,Q=z;else G=X,W=z,Q=q;let J=W!==null&&W!==void 0?W:BQ.active(),Y=this.startSpan(Z,G,J),K=(0,qX.setSpan)(J,Y);return BQ.with(K,Q,void 0,Y)}}KX.NoopTracer=WX;function qy(Z){return Z!==null&&typeof Z==="object"&&"spanId"in Z&&typeof Z.spanId==="string"&&"traceId"in Z&&typeof Z.traceId==="string"&&"traceFlags"in Z&&typeof Z.traceFlags==="number"}});var VQ=V((BX)=>{Object.defineProperty(BX,"__esModule",{value:!0});BX.ProxyTracer=void 0;var Wy=OQ(),Ky=new Wy.NoopTracer;class HX{constructor(Z,X,z,q){this._provider=Z,this.name=X,this.version=z,this.options=q}startSpan(Z,X,z){return this._getTracer().startSpan(Z,X,z)}startActiveSpan(Z,X,z,q){let G=this._getTracer();return Reflect.apply(G.startActiveSpan,G,arguments)}_getTracer(){if(this._delegate)return this._delegate;let Z=this._provider.getDelegateTracer(this.name,this.version,this.options);if(!Z)return Ky;return this._delegate=Z,this._delegate}}BX.ProxyTracer=HX});var UX=V((NX)=>{Object.defineProperty(NX,"__esModule",{value:!0});NX.NoopTracerProvider=void 0;var Fy=OQ();class VX{getTracer(Z,X,z){return new Fy.NoopTracer}}NX.NoopTracerProvider=VX});var NQ=V((DX)=>{Object.defineProperty(DX,"__esModule",{value:!0});DX.ProxyTracerProvider=void 0;var Hy=VQ(),By=UX(),Oy=new By.NoopTracerProvider;class IX{getTracer(Z,X,z){var q;return(q=this.getDelegateTracer(Z,X,z))!==null&&q!==void 0?q:new Hy.ProxyTracer(this,Z,X,z)}getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:Oy}setDelegate(Z){this._delegate=Z}getDelegateTracer(Z,X,z){var q;return(q=this._delegate)===null||q===void 0?void 0:q.getTracer(Z,X,z)}}DX.ProxyTracerProvider=IX});var LX=V((AX)=>{Object.defineProperty(AX,"__esModule",{value:!0});AX.SamplingDecision=void 0;var Vy;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Vy=AX.SamplingDecision||(AX.SamplingDecision={}))});var $X=V((TX)=>{Object.defineProperty(TX,"__esModule",{value:!0});TX.SpanKind=void 0;var Ny;(function(Z){Z[Z.INTERNAL=0]="INTERNAL",Z[Z.SERVER=1]="SERVER",Z[Z.CLIENT=2]="CLIENT",Z[Z.PRODUCER=3]="PRODUCER",Z[Z.CONSUMER=4]="CONSUMER"})(Ny=TX.SpanKind||(TX.SpanKind={}))});var PX=V((wX)=>{Object.defineProperty(wX,"__esModule",{value:!0});wX.SpanStatusCode=void 0;var Cy;(function(Z){Z[Z.UNSET=0]="UNSET",Z[Z.OK=1]="OK",Z[Z.ERROR=2]="ERROR"})(Cy=wX.SpanStatusCode||(wX.SpanStatusCode={}))});var hX=V((MX)=>{Object.defineProperty(MX,"__esModule",{value:!0});MX.validateValue=MX.validateKey=void 0;var DQ="[_0-9a-z-*/]",Uy=`[a-z]${DQ}{0,255}`,Iy=`[a-z0-9]${DQ}{0,240}@[a-z]${DQ}{0,13}`,Dy=new RegExp(`^(?:${Uy}|${Iy})$`),Ey=/^[ -~]{0,255}[!-~]$/,Ay=/,|=/;function Ly(Z){return Dy.test(Z)}MX.validateKey=Ly;function Ty(Z){return Ey.test(Z)&&!Ay.test(Z)}MX.validateValue=Ty});var jX=V((yX)=>{Object.defineProperty(yX,"__esModule",{value:!0});yX.TraceStateImpl=void 0;var kX=hX(),fX=32,wy=512,SX=",",_X="=";class EQ{constructor(Z){if(this._internalState=new Map,Z)this._parse(Z)}set(Z,X){let z=this._clone();if(z._internalState.has(Z))z._internalState.delete(Z);return z._internalState.set(Z,X),z}unset(Z){let X=this._clone();return X._internalState.delete(Z),X}get(Z){return this._internalState.get(Z)}serialize(){return Array.from(this._internalState.keys()).reduceRight((Z,X)=>{return Z.push(X+_X+this.get(X)),Z},[]).join(SX)}_parse(Z){if(Z.length>wy)return;if(this._internalState=Z.split(SX).reduceRight((X,z)=>{let q=z.trim(),G=q.indexOf(_X);if(G!==-1){let W=q.slice(0,G),Q=q.slice(G+1,z.length);if((0,kX.validateKey)(W)&&(0,kX.validateValue)(Q))X.set(W,Q)}return X},new Map),this._internalState.size>fX)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,fX))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new EQ;return Z._internalState=new Map(this._internalState),Z}}yX.TraceStateImpl=EQ});var dX=V((xX)=>{Object.defineProperty(xX,"__esModule",{value:!0});xX.createTraceState=void 0;var Py=jX();function My(Z){return new Py.TraceStateImpl(Z)}xX.createTraceState=My});var cX=V((uX)=>{Object.defineProperty(uX,"__esModule",{value:!0});uX.context=void 0;var Ry=lZ();uX.context=Ry.ContextAPI.getInstance()});var gX=V((nX)=>{Object.defineProperty(nX,"__esModule",{value:!0});nX.diag=void 0;var hy=F1();nX.diag=hy.DiagAPI.instance()});var aX=V((pX)=>{Object.defineProperty(pX,"__esModule",{value:!0});pX.NOOP_METER_PROVIDER=pX.NoopMeterProvider=void 0;var ky=ZQ();class AQ{getMeter(Z,X,z){return ky.NOOP_METER}}pX.NoopMeterProvider=AQ;pX.NOOP_METER_PROVIDER=new AQ});var sX=V((tX)=>{Object.defineProperty(tX,"__esModule",{value:!0});tX.MetricsAPI=void 0;var Sy=aX(),LQ=K1(),oX=F1(),TQ="metrics";class $Q{constructor(){}static getInstance(){if(!this._instance)this._instance=new $Q;return this._instance}setGlobalMeterProvider(Z){return(0,LQ.registerGlobal)(TQ,Z,oX.DiagAPI.instance())}getMeterProvider(){return(0,LQ.getGlobal)(TQ)||Sy.NOOP_METER_PROVIDER}getMeter(Z,X,z){return this.getMeterProvider().getMeter(Z,X,z)}disable(){(0,LQ.unregisterGlobal)(TQ,oX.DiagAPI.instance())}}tX.MetricsAPI=$Q});var J3=V((eX)=>{Object.defineProperty(eX,"__esModule",{value:!0});eX.metrics=void 0;var _y=sX();eX.metrics=_y.MetricsAPI.getInstance()});var z3=V((X3)=>{Object.defineProperty(X3,"__esModule",{value:!0});X3.NoopTextMapPropagator=void 0;class Q3{inject(Z,X){}extract(Z,X){return Z}fields(){return[]}}X3.NoopTextMapPropagator=Q3});var K3=V((q3)=>{Object.defineProperty(q3,"__esModule",{value:!0});q3.deleteBaggage=q3.setBaggage=q3.getActiveBaggage=q3.getBaggage=void 0;var yy=lZ(),vy=dZ(),wQ=(0,vy.createContextKey)("OpenTelemetry Baggage Key");function G3(Z){return Z.getValue(wQ)||void 0}q3.getBaggage=G3;function jy(){return G3(yy.ContextAPI.getInstance().active())}q3.getActiveBaggage=jy;function xy(Z,X){return Z.setValue(wQ,X)}q3.setBaggage=xy;function by(Z){return Z.deleteValue(wQ)}q3.deleteBaggage=by});var V3=V((B3)=>{Object.defineProperty(B3,"__esModule",{value:!0});B3.PropagationAPI=void 0;var PQ=K1(),cy=z3(),F3=QQ(),r6=K3(),ny=m7(),H3=F1(),MQ="propagation",my=new cy.NoopTextMapPropagator;class RQ{constructor(){this.createBaggage=ny.createBaggage,this.getBaggage=r6.getBaggage,this.getActiveBaggage=r6.getActiveBaggage,this.setBaggage=r6.setBaggage,this.deleteBaggage=r6.deleteBaggage}static getInstance(){if(!this._instance)this._instance=new RQ;return this._instance}setGlobalPropagator(Z){return(0,PQ.registerGlobal)(MQ,Z,H3.DiagAPI.instance())}inject(Z,X,z=F3.defaultTextMapSetter){return this._getGlobalPropagator().inject(Z,X,z)}extract(Z,X,z=F3.defaultTextMapGetter){return this._getGlobalPropagator().extract(Z,X,z)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,PQ.unregisterGlobal)(MQ,H3.DiagAPI.instance())}_getGlobalPropagator(){return(0,PQ.getGlobal)(MQ)||my}}B3.PropagationAPI=RQ});var U3=V((N3)=>{Object.defineProperty(N3,"__esModule",{value:!0});N3.propagation=void 0;var gy=V3();N3.propagation=gy.PropagationAPI.getInstance()});var T3=V((A3)=>{Object.defineProperty(A3,"__esModule",{value:!0});A3.TraceAPI=void 0;var hQ=K1(),I3=NQ(),D3=t6(),e1=FQ(),E3=F1(),kQ="trace";class fQ{constructor(){this._proxyTracerProvider=new I3.ProxyTracerProvider,this.wrapSpanContext=D3.wrapSpanContext,this.isSpanContextValid=D3.isSpanContextValid,this.deleteSpan=e1.deleteSpan,this.getSpan=e1.getSpan,this.getActiveSpan=e1.getActiveSpan,this.getSpanContext=e1.getSpanContext,this.setSpan=e1.setSpan,this.setSpanContext=e1.setSpanContext}static getInstance(){if(!this._instance)this._instance=new fQ;return this._instance}setGlobalTracerProvider(Z){let X=(0,hQ.registerGlobal)(kQ,this._proxyTracerProvider,E3.DiagAPI.instance());if(X)this._proxyTracerProvider.setDelegate(Z);return X}getTracerProvider(){return(0,hQ.getGlobal)(kQ)||this._proxyTracerProvider}getTracer(Z,X){return this.getTracerProvider().getTracer(Z,X)}disable(){(0,hQ.unregisterGlobal)(kQ,E3.DiagAPI.instance()),this._proxyTracerProvider=new I3.ProxyTracerProvider}}A3.TraceAPI=fQ});var P3=V(($3)=>{Object.defineProperty($3,"__esModule",{value:!0});$3.trace=void 0;var py=T3();$3.trace=py.TraceAPI.getInstance()});var I=V((v)=>{Object.defineProperty(v,"__esModule",{value:!0});v.trace=v.propagation=v.metrics=v.diag=v.context=v.INVALID_SPAN_CONTEXT=v.INVALID_TRACEID=v.INVALID_SPANID=v.isValidSpanId=v.isValidTraceId=v.isSpanContextValid=v.createTraceState=v.TraceFlags=v.SpanStatusCode=v.SpanKind=v.SamplingDecision=v.ProxyTracerProvider=v.ProxyTracer=v.defaultTextMapSetter=v.defaultTextMapGetter=v.ValueType=v.createNoopMeter=v.DiagLogLevel=v.DiagConsoleLogger=v.ROOT_CONTEXT=v.createContextKey=v.baggageEntryMetadataFromString=void 0;var iy=m7();Object.defineProperty(v,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return iy.baggageEntryMetadataFromString}});var M3=dZ();Object.defineProperty(v,"createContextKey",{enumerable:!0,get:function(){return M3.createContextKey}});Object.defineProperty(v,"ROOT_CONTEXT",{enumerable:!0,get:function(){return M3.ROOT_CONTEXT}});var ay=L5();Object.defineProperty(v,"DiagConsoleLogger",{enumerable:!0,get:function(){return ay.DiagConsoleLogger}});var oy=n6();Object.defineProperty(v,"DiagLogLevel",{enumerable:!0,get:function(){return oy.DiagLogLevel}});var ty=ZQ();Object.defineProperty(v,"createNoopMeter",{enumerable:!0,get:function(){return ty.createNoopMeter}});var ry=y5();Object.defineProperty(v,"ValueType",{enumerable:!0,get:function(){return ry.ValueType}});var R3=QQ();Object.defineProperty(v,"defaultTextMapGetter",{enumerable:!0,get:function(){return R3.defaultTextMapGetter}});Object.defineProperty(v,"defaultTextMapSetter",{enumerable:!0,get:function(){return R3.defaultTextMapSetter}});var sy=VQ();Object.defineProperty(v,"ProxyTracer",{enumerable:!0,get:function(){return sy.ProxyTracer}});var ey=NQ();Object.defineProperty(v,"ProxyTracerProvider",{enumerable:!0,get:function(){return ey.ProxyTracerProvider}});var Zv=LX();Object.defineProperty(v,"SamplingDecision",{enumerable:!0,get:function(){return Zv.SamplingDecision}});var Jv=$X();Object.defineProperty(v,"SpanKind",{enumerable:!0,get:function(){return Jv.SpanKind}});var Qv=PX();Object.defineProperty(v,"SpanStatusCode",{enumerable:!0,get:function(){return Qv.SpanStatusCode}});var Xv=qQ();Object.defineProperty(v,"TraceFlags",{enumerable:!0,get:function(){return Xv.TraceFlags}});var Yv=dX();Object.defineProperty(v,"createTraceState",{enumerable:!0,get:function(){return Yv.createTraceState}});var SQ=t6();Object.defineProperty(v,"isSpanContextValid",{enumerable:!0,get:function(){return SQ.isSpanContextValid}});Object.defineProperty(v,"isValidTraceId",{enumerable:!0,get:function(){return SQ.isValidTraceId}});Object.defineProperty(v,"isValidSpanId",{enumerable:!0,get:function(){return SQ.isValidSpanId}});var _Q=i6();Object.defineProperty(v,"INVALID_SPANID",{enumerable:!0,get:function(){return _Q.INVALID_SPANID}});Object.defineProperty(v,"INVALID_TRACEID",{enumerable:!0,get:function(){return _Q.INVALID_TRACEID}});Object.defineProperty(v,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return _Q.INVALID_SPAN_CONTEXT}});var h3=cX();Object.defineProperty(v,"context",{enumerable:!0,get:function(){return h3.context}});var k3=gX();Object.defineProperty(v,"diag",{enumerable:!0,get:function(){return k3.diag}});var f3=J3();Object.defineProperty(v,"metrics",{enumerable:!0,get:function(){return f3.metrics}});var S3=U3();Object.defineProperty(v,"propagation",{enumerable:!0,get:function(){return S3.propagation}});var _3=P3();Object.defineProperty(v,"trace",{enumerable:!0,get:function(){return _3.trace}});v.default={context:h3.context,diag:k3.diag,metrics:f3.metrics,propagation:S3.propagation,trace:_3.trace}});var v3=V((y3)=>{Object.defineProperty(y3,"__esModule",{value:!0});y3.SeverityNumber=void 0;var qv;(function(Z){Z[Z.UNSPECIFIED=0]="UNSPECIFIED",Z[Z.TRACE=1]="TRACE",Z[Z.TRACE2=2]="TRACE2",Z[Z.TRACE3=3]="TRACE3",Z[Z.TRACE4=4]="TRACE4",Z[Z.DEBUG=5]="DEBUG",Z[Z.DEBUG2=6]="DEBUG2",Z[Z.DEBUG3=7]="DEBUG3",Z[Z.DEBUG4=8]="DEBUG4",Z[Z.INFO=9]="INFO",Z[Z.INFO2=10]="INFO2",Z[Z.INFO3=11]="INFO3",Z[Z.INFO4=12]="INFO4",Z[Z.WARN=13]="WARN",Z[Z.WARN2=14]="WARN2",Z[Z.WARN3=15]="WARN3",Z[Z.WARN4=16]="WARN4",Z[Z.ERROR=17]="ERROR",Z[Z.ERROR2=18]="ERROR2",Z[Z.ERROR3=19]="ERROR3",Z[Z.ERROR4=20]="ERROR4",Z[Z.FATAL=21]="FATAL",Z[Z.FATAL2=22]="FATAL2",Z[Z.FATAL3=23]="FATAL3",Z[Z.FATAL4=24]="FATAL4"})(qv=y3.SeverityNumber||(y3.SeverityNumber={}))});var s6=V((j3)=>{Object.defineProperty(j3,"__esModule",{value:!0});j3.NOOP_LOGGER=j3.NoopLogger=void 0;class vQ{emit(Z){}}j3.NoopLogger=vQ;j3.NOOP_LOGGER=new vQ});var u3=V((b3)=>{Object.defineProperty(b3,"__esModule",{value:!0});b3.API_BACKWARDS_COMPATIBILITY_VERSION=b3.makeGetter=b3._global=b3.GLOBAL_LOGS_API_KEY=void 0;b3.GLOBAL_LOGS_API_KEY=Symbol.for("io.opentelemetry.js.api.logs");b3._global=globalThis;function Kv(Z,X,z){return(q)=>q===Z?X:z}b3.makeGetter=Kv;b3.API_BACKWARDS_COMPATIBILITY_VERSION=1});var xQ=V((l3)=>{Object.defineProperty(l3,"__esModule",{value:!0});l3.NOOP_LOGGER_PROVIDER=l3.NoopLoggerProvider=void 0;var Ov=s6();class jQ{getLogger(Z,X,z){return new Ov.NoopLogger}}l3.NoopLoggerProvider=jQ;l3.NOOP_LOGGER_PROVIDER=new jQ});var p3=V((m3)=>{Object.defineProperty(m3,"__esModule",{value:!0});m3.ProxyLogger=void 0;var Nv=s6();class n3{constructor(Z,X,z,q){this._provider=Z,this.name=X,this.version=z,this.options=q}emit(Z){this._getLogger().emit(Z)}_getLogger(){if(this._delegate)return this._delegate;let Z=this._provider._getDelegateLogger(this.name,this.version,this.options);if(!Z)return Nv.NOOP_LOGGER;return this._delegate=Z,this._delegate}}m3.ProxyLogger=n3});var t3=V((a3)=>{Object.defineProperty(a3,"__esModule",{value:!0});a3.ProxyLoggerProvider=void 0;var Cv=xQ(),Uv=p3();class i3{getLogger(Z,X,z){var q;return(q=this._getDelegateLogger(Z,X,z))!==null&&q!==void 0?q:new Uv.ProxyLogger(this,Z,X,z)}_getDelegate(){var Z;return(Z=this._delegate)!==null&&Z!==void 0?Z:Cv.NOOP_LOGGER_PROVIDER}_setDelegate(Z){this._delegate=Z}_getDelegateLogger(Z,X,z){var q;return(q=this._delegate)===null||q===void 0?void 0:q.getLogger(Z,X,z)}}a3.ProxyLoggerProvider=i3});var ZY=V((s3)=>{Object.defineProperty(s3,"__esModule",{value:!0});s3.LogsAPI=void 0;var W0=u3(),Iv=xQ(),r3=t3();class bQ{constructor(){this._proxyLoggerProvider=new r3.ProxyLoggerProvider}static getInstance(){if(!this._instance)this._instance=new bQ;return this._instance}setGlobalLoggerProvider(Z){if(W0._global[W0.GLOBAL_LOGS_API_KEY])return this.getLoggerProvider();return W0._global[W0.GLOBAL_LOGS_API_KEY]=(0,W0.makeGetter)(W0.API_BACKWARDS_COMPATIBILITY_VERSION,Z,Iv.NOOP_LOGGER_PROVIDER),this._proxyLoggerProvider._setDelegate(Z),Z}getLoggerProvider(){var Z,X;return(X=(Z=W0._global[W0.GLOBAL_LOGS_API_KEY])===null||Z===void 0?void 0:Z.call(W0._global,W0.API_BACKWARDS_COMPATIBILITY_VERSION))!==null&&X!==void 0?X:this._proxyLoggerProvider}getLogger(Z,X,z){return this.getLoggerProvider().getLogger(Z,X,z)}disable(){delete W0._global[W0.GLOBAL_LOGS_API_KEY],this._proxyLoggerProvider=new r3.ProxyLoggerProvider}}s3.LogsAPI=bQ});var ZZ=V((cZ)=>{Object.defineProperty(cZ,"__esModule",{value:!0});cZ.logs=cZ.NoopLogger=cZ.NOOP_LOGGER=cZ.SeverityNumber=void 0;var Dv=v3();Object.defineProperty(cZ,"SeverityNumber",{enumerable:!0,get:function(){return Dv.SeverityNumber}});var JY=s6();Object.defineProperty(cZ,"NOOP_LOGGER",{enumerable:!0,get:function(){return JY.NOOP_LOGGER}});Object.defineProperty(cZ,"NoopLogger",{enumerable:!0,get:function(){return JY.NoopLogger}});var Ev=ZY();cZ.logs=Ev.LogsAPI.getInstance()});var GY=V((YY)=>{Object.defineProperty(YY,"__esModule",{value:!0});YY.OTLPExporterBase=void 0;class XY{_delegate;constructor(Z){this._delegate=Z}export(Z,X){this._delegate.export(Z,X)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}YY.OTLPExporterBase=XY});var e6=V((WY)=>{Object.defineProperty(WY,"__esModule",{value:!0});WY.OTLPExporterError=void 0;class qY extends Error{code;name="OTLPExporterError";data;constructor(Z,X,z){super(Z);this.data=z,this.code=X}}WY.OTLPExporterError=qY});var nZ=V((HY)=>{Object.defineProperty(HY,"__esModule",{value:!0});HY.getSharedConfigurationDefaults=HY.mergeOtlpSharedConfigurationWithDefaults=HY.wrapStaticHeadersInFunction=HY.validateTimeoutMillis=void 0;function FY(Z){if(Number.isFinite(Z)&&Z>0)return Z;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${Z}')`)}HY.validateTimeoutMillis=FY;function Av(Z){if(Z==null)return;return async()=>Z}HY.wrapStaticHeadersInFunction=Av;function Lv(Z,X,z){return{timeoutMillis:FY(Z.timeoutMillis??X.timeoutMillis??z.timeoutMillis),concurrencyLimit:Z.concurrencyLimit??X.concurrencyLimit??z.concurrencyLimit,compression:Z.compression??X.compression??z.compression}}HY.mergeOtlpSharedConfigurationWithDefaults=Lv;function Tv(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}HY.getSharedConfigurationDefaults=Tv});var VY=V((OY)=>{Object.defineProperty(OY,"__esModule",{value:!0});OY.CompressionAlgorithm=void 0;var Mv;(function(Z){Z.NONE="none",Z.GZIP="gzip"})(Mv=OY.CompressionAlgorithm||(OY.CompressionAlgorithm={}))});var uQ=V((CY)=>{Object.defineProperty(CY,"__esModule",{value:!0});CY.createBoundedQueueExportPromiseHandler=void 0;class NY{_concurrencyLimit;_sendingPromises=[];constructor(Z){this._concurrencyLimit=Z}pushPromise(Z){if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(Z);let X=()=>{let z=this._sendingPromises.indexOf(Z);this._sendingPromises.splice(z,1)};Z.then(X,X)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Rv(Z){return new NY(Z.concurrencyLimit)}CY.createBoundedQueueExportPromiseHandler=Rv});var mZ=V((IY)=>{Object.defineProperty(IY,"__esModule",{value:!0});IY.isTracingSuppressed=IY.unsuppressTracing=IY.suppressTracing=void 0;var hv=I(),lQ=(0,hv.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function kv(Z){return Z.setValue(lQ,!0)}IY.suppressTracing=kv;function fv(Z){return Z.deleteValue(lQ)}IY.unsuppressTracing=fv;function Sv(Z){return Z.getValue(lQ)===!0}IY.isTracingSuppressed=Sv});var cQ=V((EY)=>{Object.defineProperty(EY,"__esModule",{value:!0});EY.BAGGAGE_MAX_TOTAL_LENGTH=EY.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=EY.BAGGAGE_MAX_NAME_VALUE_PAIRS=EY.BAGGAGE_HEADER=EY.BAGGAGE_ITEMS_SEPARATOR=EY.BAGGAGE_PROPERTIES_SEPARATOR=EY.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;EY.BAGGAGE_KEY_PAIR_SEPARATOR="=";EY.BAGGAGE_PROPERTIES_SEPARATOR=";";EY.BAGGAGE_ITEMS_SEPARATOR=",";EY.BAGGAGE_HEADER="baggage";EY.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;EY.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;EY.BAGGAGE_MAX_TOTAL_LENGTH=8192});var nQ=V((TY)=>{Object.defineProperty(TY,"__esModule",{value:!0});TY.parseKeyPairsIntoRecord=TY.parsePairKeyValue=TY.getKeyPairs=TY.serializeKeyPairs=void 0;var lv=I(),JZ=cQ();function cv(Z){return Z.reduce((X,z)=>{let q=`${X}${X!==""?JZ.BAGGAGE_ITEMS_SEPARATOR:""}${z}`;return q.length>JZ.BAGGAGE_MAX_TOTAL_LENGTH?X:q},"")}TY.serializeKeyPairs=cv;function nv(Z){return Z.getAllEntries().map(([X,z])=>{let q=`${encodeURIComponent(X)}=${encodeURIComponent(z.value)}`;if(z.metadata!==void 0)q+=JZ.BAGGAGE_PROPERTIES_SEPARATOR+z.metadata.toString();return q})}TY.getKeyPairs=nv;function LY(Z){if(!Z)return;let X=Z.indexOf(JZ.BAGGAGE_PROPERTIES_SEPARATOR),z=X===-1?Z:Z.substring(0,X),q=z.indexOf(JZ.BAGGAGE_KEY_PAIR_SEPARATOR);if(q<=0)return;let G=z.substring(0,q).trim(),W=z.substring(q+1).trim();if(!G||!W)return;let Q,J;try{Q=decodeURIComponent(G),J=decodeURIComponent(W)}catch{return}let Y;if(X!==-1&&X<Z.length-1){let K=Z.substring(X+1);Y=(0,lv.baggageEntryMetadataFromString)(K)}return{key:Q,value:J,metadata:Y}}TY.parsePairKeyValue=LY;function mv(Z){let X={};if(typeof Z==="string"&&Z.length>0)Z.split(JZ.BAGGAGE_ITEMS_SEPARATOR).forEach((z)=>{let q=LY(z);if(q!==void 0&&q.value.length>0)X[q.key]=q.value});return X}TY.parseKeyPairsIntoRecord=mv});var RY=V((PY)=>{Object.defineProperty(PY,"__esModule",{value:!0});PY.W3CBaggagePropagator=void 0;var mQ=I(),av=mZ(),H1=cQ(),gQ=nQ();class wY{inject(Z,X,z){let q=mQ.propagation.getBaggage(Z);if(!q||(0,av.isTracingSuppressed)(Z))return;let G=(0,gQ.getKeyPairs)(q).filter((Q)=>{return Q.length<=H1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,H1.BAGGAGE_MAX_NAME_VALUE_PAIRS),W=(0,gQ.serializeKeyPairs)(G);if(W.length>0)z.set(X,H1.BAGGAGE_HEADER,W)}extract(Z,X,z){let q=z.get(X,H1.BAGGAGE_HEADER),G=Array.isArray(q)?q.join(H1.BAGGAGE_ITEMS_SEPARATOR):q;if(!G)return Z;let W={};if(G.length===0)return Z;if(G.split(H1.BAGGAGE_ITEMS_SEPARATOR).forEach((J)=>{let Y=(0,gQ.parsePairKeyValue)(J);if(Y){let K={value:Y.value};if(Y.metadata)K.metadata=Y.metadata;W[Y.key]=K}}),Object.entries(W).length===0)return Z;return mQ.propagation.setBaggage(Z,mQ.propagation.createBaggage(W))}fields(){return[H1.BAGGAGE_HEADER]}}PY.W3CBaggagePropagator=wY});var SY=V((kY)=>{Object.defineProperty(kY,"__esModule",{value:!0});kY.AnchoredClock=void 0;class hY{_monotonicClock;_epochMillis;_performanceMillis;constructor(Z,X){this._monotonicClock=X,this._epochMillis=Z.now(),this._performanceMillis=X.now()}now(){let Z=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+Z}}kY.AnchoredClock=hY});var dY=V((xY)=>{Object.defineProperty(xY,"__esModule",{value:!0});xY.isAttributeValue=xY.isAttributeKey=xY.sanitizeAttributes=void 0;var _Y=I();function ov(Z){let X={};if(typeof Z!=="object"||Z==null)return X;for(let z in Z){if(!Object.prototype.hasOwnProperty.call(Z,z))continue;if(!yY(z)){_Y.diag.warn(`Invalid attribute key: ${z}`);continue}let q=Z[z];if(!vY(q)){_Y.diag.warn(`Invalid attribute value set for key: ${z}`);continue}if(Array.isArray(q))X[z]=q.slice();else X[z]=q}return X}xY.sanitizeAttributes=ov;function yY(Z){return typeof Z==="string"&&Z!==""}xY.isAttributeKey=yY;function vY(Z){if(Z==null)return!0;if(Array.isArray(Z))return tv(Z);return jY(typeof Z)}xY.isAttributeValue=vY;function tv(Z){let X;for(let z of Z){if(z==null)continue;let q=typeof z;if(q===X)continue;if(!X){if(jY(q)){X=q;continue}return!1}return!1}return!0}function jY(Z){switch(Z){case"number":case"boolean":case"string":return!0}return!1}});var pQ=V((uY)=>{Object.defineProperty(uY,"__esModule",{value:!0});uY.loggingErrorHandler=void 0;var ev=I();function Zj(){return(Z)=>{ev.diag.error(Jj(Z))}}uY.loggingErrorHandler=Zj;function Jj(Z){if(typeof Z==="string")return Z;else return JSON.stringify(Qj(Z))}function Qj(Z){let X={},z=Z;while(z!==null)Object.getOwnPropertyNames(z).forEach((q)=>{if(X[q])return;let G=z[q];if(G)X[q]=String(G)}),z=Object.getPrototypeOf(z);return X}});var gY=V((nY)=>{Object.defineProperty(nY,"__esModule",{value:!0});nY.globalErrorHandler=nY.setGlobalErrorHandler=void 0;var Xj=pQ(),cY=(0,Xj.loggingErrorHandler)();function Yj(Z){cY=Z}nY.setGlobalErrorHandler=Yj;function zj(Z){try{cY(Z)}catch{}}nY.globalErrorHandler=zj});var rY=V((oY)=>{Object.defineProperty(oY,"__esModule",{value:!0});oY.getStringListFromEnv=oY.getBooleanFromEnv=oY.getStringFromEnv=oY.getNumberFromEnv=void 0;var pY=I(),iY=h("util");function qj(Z){let X=process.env[Z];if(X==null||X.trim()==="")return;let z=Number(X);if(isNaN(z)){pY.diag.warn(`Unknown value ${(0,iY.inspect)(X)} for ${Z}, expected a number, using defaults`);return}return z}oY.getNumberFromEnv=qj;function aY(Z){let X=process.env[Z];if(X==null||X.trim()==="")return;return X}oY.getStringFromEnv=aY;function Wj(Z){let X=process.env[Z]?.trim().toLowerCase();if(X==null||X==="")return!1;if(X==="true")return!0;else if(X==="false")return!1;else return pY.diag.warn(`Unknown value ${(0,iY.inspect)(X)} for ${Z}, expected 'true' or 'false', falling back to 'false' (default)`),!1}oY.getBooleanFromEnv=Wj;function Kj(Z){return aY(Z)?.split(",").map((X)=>X.trim()).filter((X)=>X!=="")}oY.getStringListFromEnv=Kj});var Zz=V((sY)=>{Object.defineProperty(sY,"__esModule",{value:!0});sY._globalThis=void 0;sY._globalThis=globalThis});var Xz=V((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.VERSION=void 0;Jz.VERSION="2.6.1"});var iQ=V((Yz)=>{Object.defineProperty(Yz,"__esModule",{value:!0});Yz.createConstMap=void 0;function Oj(Z){let X={},z=Z.length;for(let q=0;q<z;q++){let G=Z[q];if(G)X[String(G).toUpperCase().replace(/[-.]/g,"_")]=G}return X}Yz.createConstMap=Oj});var QF=V((oK)=>{Object.defineProperty(oK,"__esModule",{value:!0});oK.SEMATTRS_NET_HOST_CARRIER_ICC=oK.SEMATTRS_NET_HOST_CARRIER_MNC=oK.SEMATTRS_NET_HOST_CARRIER_MCC=oK.SEMATTRS_NET_HOST_CARRIER_NAME=oK.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=oK.SEMATTRS_NET_HOST_CONNECTION_TYPE=oK.SEMATTRS_NET_HOST_NAME=oK.SEMATTRS_NET_HOST_PORT=oK.SEMATTRS_NET_HOST_IP=oK.SEMATTRS_NET_PEER_NAME=oK.SEMATTRS_NET_PEER_PORT=oK.SEMATTRS_NET_PEER_IP=oK.SEMATTRS_NET_TRANSPORT=oK.SEMATTRS_FAAS_INVOKED_REGION=oK.SEMATTRS_FAAS_INVOKED_PROVIDER=oK.SEMATTRS_FAAS_INVOKED_NAME=oK.SEMATTRS_FAAS_COLDSTART=oK.SEMATTRS_FAAS_CRON=oK.SEMATTRS_FAAS_TIME=oK.SEMATTRS_FAAS_DOCUMENT_NAME=oK.SEMATTRS_FAAS_DOCUMENT_TIME=oK.SEMATTRS_FAAS_DOCUMENT_OPERATION=oK.SEMATTRS_FAAS_DOCUMENT_COLLECTION=oK.SEMATTRS_FAAS_EXECUTION=oK.SEMATTRS_FAAS_TRIGGER=oK.SEMATTRS_EXCEPTION_ESCAPED=oK.SEMATTRS_EXCEPTION_STACKTRACE=oK.SEMATTRS_EXCEPTION_MESSAGE=oK.SEMATTRS_EXCEPTION_TYPE=oK.SEMATTRS_DB_SQL_TABLE=oK.SEMATTRS_DB_MONGODB_COLLECTION=oK.SEMATTRS_DB_REDIS_DATABASE_INDEX=oK.SEMATTRS_DB_HBASE_NAMESPACE=oK.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=oK.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=oK.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=oK.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=oK.SEMATTRS_DB_CASSANDRA_TABLE=oK.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=oK.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=oK.SEMATTRS_DB_CASSANDRA_KEYSPACE=oK.SEMATTRS_DB_MSSQL_INSTANCE_NAME=oK.SEMATTRS_DB_OPERATION=oK.SEMATTRS_DB_STATEMENT=oK.SEMATTRS_DB_NAME=oK.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=oK.SEMATTRS_DB_USER=oK.SEMATTRS_DB_CONNECTION_STRING=oK.SEMATTRS_DB_SYSTEM=oK.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=void 0;oK.SEMATTRS_MESSAGING_DESTINATION_KIND=oK.SEMATTRS_MESSAGING_DESTINATION=oK.SEMATTRS_MESSAGING_SYSTEM=oK.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=oK.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=oK.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=oK.SEMATTRS_AWS_DYNAMODB_COUNT=oK.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=oK.SEMATTRS_AWS_DYNAMODB_SEGMENT=oK.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=oK.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=oK.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=oK.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=oK.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=oK.SEMATTRS_AWS_DYNAMODB_SELECT=oK.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=oK.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=oK.SEMATTRS_AWS_DYNAMODB_LIMIT=oK.SEMATTRS_AWS_DYNAMODB_PROJECTION=oK.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=oK.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=oK.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=oK.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=oK.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=oK.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=oK.SEMATTRS_HTTP_CLIENT_IP=oK.SEMATTRS_HTTP_ROUTE=oK.SEMATTRS_HTTP_SERVER_NAME=oK.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=oK.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=oK.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=oK.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=oK.SEMATTRS_HTTP_USER_AGENT=oK.SEMATTRS_HTTP_FLAVOR=oK.SEMATTRS_HTTP_STATUS_CODE=oK.SEMATTRS_HTTP_SCHEME=oK.SEMATTRS_HTTP_HOST=oK.SEMATTRS_HTTP_TARGET=oK.SEMATTRS_HTTP_URL=oK.SEMATTRS_HTTP_METHOD=oK.SEMATTRS_CODE_LINENO=oK.SEMATTRS_CODE_FILEPATH=oK.SEMATTRS_CODE_NAMESPACE=oK.SEMATTRS_CODE_FUNCTION=oK.SEMATTRS_THREAD_NAME=oK.SEMATTRS_THREAD_ID=oK.SEMATTRS_ENDUSER_SCOPE=oK.SEMATTRS_ENDUSER_ROLE=oK.SEMATTRS_ENDUSER_ID=oK.SEMATTRS_PEER_SERVICE=void 0;oK.DBSYSTEMVALUES_FILEMAKER=oK.DBSYSTEMVALUES_DERBY=oK.DBSYSTEMVALUES_FIREBIRD=oK.DBSYSTEMVALUES_ADABAS=oK.DBSYSTEMVALUES_CACHE=oK.DBSYSTEMVALUES_EDB=oK.DBSYSTEMVALUES_FIRSTSQL=oK.DBSYSTEMVALUES_INGRES=oK.DBSYSTEMVALUES_HANADB=oK.DBSYSTEMVALUES_MAXDB=oK.DBSYSTEMVALUES_PROGRESS=oK.DBSYSTEMVALUES_HSQLDB=oK.DBSYSTEMVALUES_CLOUDSCAPE=oK.DBSYSTEMVALUES_HIVE=oK.DBSYSTEMVALUES_REDSHIFT=oK.DBSYSTEMVALUES_POSTGRESQL=oK.DBSYSTEMVALUES_DB2=oK.DBSYSTEMVALUES_ORACLE=oK.DBSYSTEMVALUES_MYSQL=oK.DBSYSTEMVALUES_MSSQL=oK.DBSYSTEMVALUES_OTHER_SQL=oK.SemanticAttributes=oK.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=oK.SEMATTRS_MESSAGE_COMPRESSED_SIZE=oK.SEMATTRS_MESSAGE_ID=oK.SEMATTRS_MESSAGE_TYPE=oK.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=oK.SEMATTRS_RPC_JSONRPC_ERROR_CODE=oK.SEMATTRS_RPC_JSONRPC_REQUEST_ID=oK.SEMATTRS_RPC_JSONRPC_VERSION=oK.SEMATTRS_RPC_GRPC_STATUS_CODE=oK.SEMATTRS_RPC_METHOD=oK.SEMATTRS_RPC_SERVICE=oK.SEMATTRS_RPC_SYSTEM=oK.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=oK.SEMATTRS_MESSAGING_KAFKA_PARTITION=oK.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=oK.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=oK.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=oK.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=oK.SEMATTRS_MESSAGING_CONSUMER_ID=oK.SEMATTRS_MESSAGING_OPERATION=oK.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=oK.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=oK.SEMATTRS_MESSAGING_CONVERSATION_ID=oK.SEMATTRS_MESSAGING_MESSAGE_ID=oK.SEMATTRS_MESSAGING_URL=oK.SEMATTRS_MESSAGING_PROTOCOL_VERSION=oK.SEMATTRS_MESSAGING_PROTOCOL=oK.SEMATTRS_MESSAGING_TEMP_DESTINATION=void 0;oK.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=oK.FaasDocumentOperationValues=oK.FAASDOCUMENTOPERATIONVALUES_DELETE=oK.FAASDOCUMENTOPERATIONVALUES_EDIT=oK.FAASDOCUMENTOPERATIONVALUES_INSERT=oK.FaasTriggerValues=oK.FAASTRIGGERVALUES_OTHER=oK.FAASTRIGGERVALUES_TIMER=oK.FAASTRIGGERVALUES_PUBSUB=oK.FAASTRIGGERVALUES_HTTP=oK.FAASTRIGGERVALUES_DATASOURCE=oK.DbCassandraConsistencyLevelValues=oK.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=oK.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=oK.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=oK.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=oK.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=oK.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=oK.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=oK.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=oK.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=oK.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=oK.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=oK.DbSystemValues=oK.DBSYSTEMVALUES_COCKROACHDB=oK.DBSYSTEMVALUES_MEMCACHED=oK.DBSYSTEMVALUES_ELASTICSEARCH=oK.DBSYSTEMVALUES_GEODE=oK.DBSYSTEMVALUES_NEO4J=oK.DBSYSTEMVALUES_DYNAMODB=oK.DBSYSTEMVALUES_COSMOSDB=oK.DBSYSTEMVALUES_COUCHDB=oK.DBSYSTEMVALUES_COUCHBASE=oK.DBSYSTEMVALUES_REDIS=oK.DBSYSTEMVALUES_MONGODB=oK.DBSYSTEMVALUES_HBASE=oK.DBSYSTEMVALUES_CASSANDRA=oK.DBSYSTEMVALUES_COLDFUSION=oK.DBSYSTEMVALUES_H2=oK.DBSYSTEMVALUES_VERTICA=oK.DBSYSTEMVALUES_TERADATA=oK.DBSYSTEMVALUES_SYBASE=oK.DBSYSTEMVALUES_SQLITE=oK.DBSYSTEMVALUES_POINTBASE=oK.DBSYSTEMVALUES_PERVASIVE=oK.DBSYSTEMVALUES_NETEZZA=oK.DBSYSTEMVALUES_MARIADB=oK.DBSYSTEMVALUES_INTERBASE=oK.DBSYSTEMVALUES_INSTANTDB=oK.DBSYSTEMVALUES_INFORMIX=void 0;oK.MESSAGINGOPERATIONVALUES_RECEIVE=oK.MessagingDestinationKindValues=oK.MESSAGINGDESTINATIONKINDVALUES_TOPIC=oK.MESSAGINGDESTINATIONKINDVALUES_QUEUE=oK.HttpFlavorValues=oK.HTTPFLAVORVALUES_QUIC=oK.HTTPFLAVORVALUES_SPDY=oK.HTTPFLAVORVALUES_HTTP_2_0=oK.HTTPFLAVORVALUES_HTTP_1_1=oK.HTTPFLAVORVALUES_HTTP_1_0=oK.NetHostConnectionSubtypeValues=oK.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=oK.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=oK.NETHOSTCONNECTIONSUBTYPEVALUES_NR=oK.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=oK.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=oK.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=oK.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=oK.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=oK.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=oK.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=oK.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=oK.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=oK.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=oK.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=oK.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=oK.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=oK.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=oK.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=oK.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=oK.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=oK.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=oK.NetHostConnectionTypeValues=oK.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=oK.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=oK.NETHOSTCONNECTIONTYPEVALUES_CELL=oK.NETHOSTCONNECTIONTYPEVALUES_WIRED=oK.NETHOSTCONNECTIONTYPEVALUES_WIFI=oK.NetTransportValues=oK.NETTRANSPORTVALUES_OTHER=oK.NETTRANSPORTVALUES_INPROC=oK.NETTRANSPORTVALUES_PIPE=oK.NETTRANSPORTVALUES_UNIX=oK.NETTRANSPORTVALUES_IP=oK.NETTRANSPORTVALUES_IP_UDP=oK.NETTRANSPORTVALUES_IP_TCP=oK.FaasInvokedProviderValues=oK.FAASINVOKEDPROVIDERVALUES_GCP=oK.FAASINVOKEDPROVIDERVALUES_AZURE=oK.FAASINVOKEDPROVIDERVALUES_AWS=void 0;oK.MessageTypeValues=oK.MESSAGETYPEVALUES_RECEIVED=oK.MESSAGETYPEVALUES_SENT=oK.RpcGrpcStatusCodeValues=oK.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=oK.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=oK.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=oK.RPCGRPCSTATUSCODEVALUES_INTERNAL=oK.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=oK.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=oK.RPCGRPCSTATUSCODEVALUES_ABORTED=oK.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=oK.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=oK.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=oK.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=oK.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=oK.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=oK.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=oK.RPCGRPCSTATUSCODEVALUES_UNKNOWN=oK.RPCGRPCSTATUSCODEVALUES_CANCELLED=oK.RPCGRPCSTATUSCODEVALUES_OK=oK.MessagingOperationValues=oK.MESSAGINGOPERATIONVALUES_PROCESS=void 0;var K0=iQ(),Gz="aws.lambda.invoked_arn",qz="db.system",Wz="db.connection_string",Kz="db.user",Fz="db.jdbc.driver_classname",Hz="db.name",Bz="db.statement",Oz="db.operation",Vz="db.mssql.instance_name",Nz="db.cassandra.keyspace",Cz="db.cassandra.page_size",Uz="db.cassandra.consistency_level",Iz="db.cassandra.table",Dz="db.cassandra.idempotence",Ez="db.cassandra.speculative_execution_count",Az="db.cassandra.coordinator.id",Lz="db.cassandra.coordinator.dc",Tz="db.hbase.namespace",$z="db.redis.database_index",wz="db.mongodb.collection",Pz="db.sql.table",Mz="exception.type",Rz="exception.message",hz="exception.stacktrace",kz="exception.escaped",fz="faas.trigger",Sz="faas.execution",_z="faas.document.collection",yz="faas.document.operation",vz="faas.document.time",jz="faas.document.name",xz="faas.time",bz="faas.cron",dz="faas.coldstart",uz="faas.invoked_name",lz="faas.invoked_provider",cz="faas.invoked_region",nz="net.transport",mz="net.peer.ip",gz="net.peer.port",pz="net.peer.name",iz="net.host.ip",az="net.host.port",oz="net.host.name",tz="net.host.connection.type",rz="net.host.connection.subtype",sz="net.host.carrier.name",ez="net.host.carrier.mcc",ZG="net.host.carrier.mnc",JG="net.host.carrier.icc",QG="peer.service",XG="enduser.id",YG="enduser.role",zG="enduser.scope",GG="thread.id",qG="thread.name",WG="code.function",KG="code.namespace",FG="code.filepath",HG="code.lineno",BG="http.method",OG="http.url",VG="http.target",NG="http.host",CG="http.scheme",UG="http.status_code",IG="http.flavor",DG="http.user_agent",EG="http.request_content_length",AG="http.request_content_length_uncompressed",LG="http.response_content_length",TG="http.response_content_length_uncompressed",$G="http.server_name",wG="http.route",PG="http.client_ip",MG="aws.dynamodb.table_names",RG="aws.dynamodb.consumed_capacity",hG="aws.dynamodb.item_collection_metrics",kG="aws.dynamodb.provisioned_read_capacity",fG="aws.dynamodb.provisioned_write_capacity",SG="aws.dynamodb.consistent_read",_G="aws.dynamodb.projection",yG="aws.dynamodb.limit",vG="aws.dynamodb.attributes_to_get",jG="aws.dynamodb.index_name",xG="aws.dynamodb.select",bG="aws.dynamodb.global_secondary_indexes",dG="aws.dynamodb.local_secondary_indexes",uG="aws.dynamodb.exclusive_start_table",lG="aws.dynamodb.table_count",cG="aws.dynamodb.scan_forward",nG="aws.dynamodb.segment",mG="aws.dynamodb.total_segments",gG="aws.dynamodb.count",pG="aws.dynamodb.scanned_count",iG="aws.dynamodb.attribute_definitions",aG="aws.dynamodb.global_secondary_index_updates",oG="messaging.system",tG="messaging.destination",rG="messaging.destination_kind",sG="messaging.temp_destination",eG="messaging.protocol",Zq="messaging.protocol_version",Jq="messaging.url",Qq="messaging.message_id",Xq="messaging.conversation_id",Yq="messaging.message_payload_size_bytes",zq="messaging.message_payload_compressed_size_bytes",Gq="messaging.operation",qq="messaging.consumer_id",Wq="messaging.rabbitmq.routing_key",Kq="messaging.kafka.message_key",Fq="messaging.kafka.consumer_group",Hq="messaging.kafka.client_id",Bq="messaging.kafka.partition",Oq="messaging.kafka.tombstone",Vq="rpc.system",Nq="rpc.service",Cq="rpc.method",Uq="rpc.grpc.status_code",Iq="rpc.jsonrpc.version",Dq="rpc.jsonrpc.request_id",Eq="rpc.jsonrpc.error_code",Aq="rpc.jsonrpc.error_message",Lq="message.type",Tq="message.id",$q="message.compressed_size",wq="message.uncompressed_size";oK.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=Gz;oK.SEMATTRS_DB_SYSTEM=qz;oK.SEMATTRS_DB_CONNECTION_STRING=Wz;oK.SEMATTRS_DB_USER=Kz;oK.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=Fz;oK.SEMATTRS_DB_NAME=Hz;oK.SEMATTRS_DB_STATEMENT=Bz;oK.SEMATTRS_DB_OPERATION=Oz;oK.SEMATTRS_DB_MSSQL_INSTANCE_NAME=Vz;oK.SEMATTRS_DB_CASSANDRA_KEYSPACE=Nz;oK.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=Cz;oK.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=Uz;oK.SEMATTRS_DB_CASSANDRA_TABLE=Iz;oK.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=Dz;oK.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=Ez;oK.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=Az;oK.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=Lz;oK.SEMATTRS_DB_HBASE_NAMESPACE=Tz;oK.SEMATTRS_DB_REDIS_DATABASE_INDEX=$z;oK.SEMATTRS_DB_MONGODB_COLLECTION=wz;oK.SEMATTRS_DB_SQL_TABLE=Pz;oK.SEMATTRS_EXCEPTION_TYPE=Mz;oK.SEMATTRS_EXCEPTION_MESSAGE=Rz;oK.SEMATTRS_EXCEPTION_STACKTRACE=hz;oK.SEMATTRS_EXCEPTION_ESCAPED=kz;oK.SEMATTRS_FAAS_TRIGGER=fz;oK.SEMATTRS_FAAS_EXECUTION=Sz;oK.SEMATTRS_FAAS_DOCUMENT_COLLECTION=_z;oK.SEMATTRS_FAAS_DOCUMENT_OPERATION=yz;oK.SEMATTRS_FAAS_DOCUMENT_TIME=vz;oK.SEMATTRS_FAAS_DOCUMENT_NAME=jz;oK.SEMATTRS_FAAS_TIME=xz;oK.SEMATTRS_FAAS_CRON=bz;oK.SEMATTRS_FAAS_COLDSTART=dz;oK.SEMATTRS_FAAS_INVOKED_NAME=uz;oK.SEMATTRS_FAAS_INVOKED_PROVIDER=lz;oK.SEMATTRS_FAAS_INVOKED_REGION=cz;oK.SEMATTRS_NET_TRANSPORT=nz;oK.SEMATTRS_NET_PEER_IP=mz;oK.SEMATTRS_NET_PEER_PORT=gz;oK.SEMATTRS_NET_PEER_NAME=pz;oK.SEMATTRS_NET_HOST_IP=iz;oK.SEMATTRS_NET_HOST_PORT=az;oK.SEMATTRS_NET_HOST_NAME=oz;oK.SEMATTRS_NET_HOST_CONNECTION_TYPE=tz;oK.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=rz;oK.SEMATTRS_NET_HOST_CARRIER_NAME=sz;oK.SEMATTRS_NET_HOST_CARRIER_MCC=ez;oK.SEMATTRS_NET_HOST_CARRIER_MNC=ZG;oK.SEMATTRS_NET_HOST_CARRIER_ICC=JG;oK.SEMATTRS_PEER_SERVICE=QG;oK.SEMATTRS_ENDUSER_ID=XG;oK.SEMATTRS_ENDUSER_ROLE=YG;oK.SEMATTRS_ENDUSER_SCOPE=zG;oK.SEMATTRS_THREAD_ID=GG;oK.SEMATTRS_THREAD_NAME=qG;oK.SEMATTRS_CODE_FUNCTION=WG;oK.SEMATTRS_CODE_NAMESPACE=KG;oK.SEMATTRS_CODE_FILEPATH=FG;oK.SEMATTRS_CODE_LINENO=HG;oK.SEMATTRS_HTTP_METHOD=BG;oK.SEMATTRS_HTTP_URL=OG;oK.SEMATTRS_HTTP_TARGET=VG;oK.SEMATTRS_HTTP_HOST=NG;oK.SEMATTRS_HTTP_SCHEME=CG;oK.SEMATTRS_HTTP_STATUS_CODE=UG;oK.SEMATTRS_HTTP_FLAVOR=IG;oK.SEMATTRS_HTTP_USER_AGENT=DG;oK.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=EG;oK.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=AG;oK.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=LG;oK.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=TG;oK.SEMATTRS_HTTP_SERVER_NAME=$G;oK.SEMATTRS_HTTP_ROUTE=wG;oK.SEMATTRS_HTTP_CLIENT_IP=PG;oK.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=MG;oK.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=RG;oK.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=hG;oK.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=kG;oK.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=fG;oK.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=SG;oK.SEMATTRS_AWS_DYNAMODB_PROJECTION=_G;oK.SEMATTRS_AWS_DYNAMODB_LIMIT=yG;oK.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=vG;oK.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=jG;oK.SEMATTRS_AWS_DYNAMODB_SELECT=xG;oK.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=bG;oK.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=dG;oK.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=uG;oK.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=lG;oK.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=cG;oK.SEMATTRS_AWS_DYNAMODB_SEGMENT=nG;oK.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=mG;oK.SEMATTRS_AWS_DYNAMODB_COUNT=gG;oK.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=pG;oK.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=iG;oK.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=aG;oK.SEMATTRS_MESSAGING_SYSTEM=oG;oK.SEMATTRS_MESSAGING_DESTINATION=tG;oK.SEMATTRS_MESSAGING_DESTINATION_KIND=rG;oK.SEMATTRS_MESSAGING_TEMP_DESTINATION=sG;oK.SEMATTRS_MESSAGING_PROTOCOL=eG;oK.SEMATTRS_MESSAGING_PROTOCOL_VERSION=Zq;oK.SEMATTRS_MESSAGING_URL=Jq;oK.SEMATTRS_MESSAGING_MESSAGE_ID=Qq;oK.SEMATTRS_MESSAGING_CONVERSATION_ID=Xq;oK.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=Yq;oK.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=zq;oK.SEMATTRS_MESSAGING_OPERATION=Gq;oK.SEMATTRS_MESSAGING_CONSUMER_ID=qq;oK.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=Wq;oK.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=Kq;oK.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=Fq;oK.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=Hq;oK.SEMATTRS_MESSAGING_KAFKA_PARTITION=Bq;oK.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=Oq;oK.SEMATTRS_RPC_SYSTEM=Vq;oK.SEMATTRS_RPC_SERVICE=Nq;oK.SEMATTRS_RPC_METHOD=Cq;oK.SEMATTRS_RPC_GRPC_STATUS_CODE=Uq;oK.SEMATTRS_RPC_JSONRPC_VERSION=Iq;oK.SEMATTRS_RPC_JSONRPC_REQUEST_ID=Dq;oK.SEMATTRS_RPC_JSONRPC_ERROR_CODE=Eq;oK.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=Aq;oK.SEMATTRS_MESSAGE_TYPE=Lq;oK.SEMATTRS_MESSAGE_ID=Tq;oK.SEMATTRS_MESSAGE_COMPRESSED_SIZE=$q;oK.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=wq;oK.SemanticAttributes=(0,K0.createConstMap)([Gz,qz,Wz,Kz,Fz,Hz,Bz,Oz,Vz,Nz,Cz,Uz,Iz,Dz,Ez,Az,Lz,Tz,$z,wz,Pz,Mz,Rz,hz,kz,fz,Sz,_z,yz,vz,jz,xz,bz,dz,uz,lz,cz,nz,mz,gz,pz,iz,az,oz,tz,rz,sz,ez,ZG,JG,QG,XG,YG,zG,GG,qG,WG,KG,FG,HG,BG,OG,VG,NG,CG,UG,IG,DG,EG,AG,LG,TG,$G,wG,PG,MG,RG,hG,kG,fG,SG,_G,yG,vG,jG,xG,bG,dG,uG,lG,cG,nG,mG,gG,pG,iG,aG,oG,tG,rG,sG,eG,Zq,Jq,Qq,Xq,Yq,zq,Gq,qq,Wq,Kq,Fq,Hq,Bq,Oq,Vq,Nq,Cq,Uq,Iq,Dq,Eq,Aq,Lq,Tq,$q,wq]);var Pq="other_sql",Mq="mssql",Rq="mysql",hq="oracle",kq="db2",fq="postgresql",Sq="redshift",_q="hive",yq="cloudscape",vq="hsqldb",jq="progress",xq="maxdb",bq="hanadb",dq="ingres",uq="firstsql",lq="edb",cq="cache",nq="adabas",mq="firebird",gq="derby",pq="filemaker",iq="informix",aq="instantdb",oq="interbase",tq="mariadb",rq="netezza",sq="pervasive",eq="pointbase",ZW="sqlite",JW="sybase",QW="teradata",XW="vertica",YW="h2",zW="coldfusion",GW="cassandra",qW="hbase",WW="mongodb",KW="redis",FW="couchbase",HW="couchdb",BW="cosmosdb",OW="dynamodb",VW="neo4j",NW="geode",CW="elasticsearch",UW="memcached",IW="cockroachdb";oK.DBSYSTEMVALUES_OTHER_SQL=Pq;oK.DBSYSTEMVALUES_MSSQL=Mq;oK.DBSYSTEMVALUES_MYSQL=Rq;oK.DBSYSTEMVALUES_ORACLE=hq;oK.DBSYSTEMVALUES_DB2=kq;oK.DBSYSTEMVALUES_POSTGRESQL=fq;oK.DBSYSTEMVALUES_REDSHIFT=Sq;oK.DBSYSTEMVALUES_HIVE=_q;oK.DBSYSTEMVALUES_CLOUDSCAPE=yq;oK.DBSYSTEMVALUES_HSQLDB=vq;oK.DBSYSTEMVALUES_PROGRESS=jq;oK.DBSYSTEMVALUES_MAXDB=xq;oK.DBSYSTEMVALUES_HANADB=bq;oK.DBSYSTEMVALUES_INGRES=dq;oK.DBSYSTEMVALUES_FIRSTSQL=uq;oK.DBSYSTEMVALUES_EDB=lq;oK.DBSYSTEMVALUES_CACHE=cq;oK.DBSYSTEMVALUES_ADABAS=nq;oK.DBSYSTEMVALUES_FIREBIRD=mq;oK.DBSYSTEMVALUES_DERBY=gq;oK.DBSYSTEMVALUES_FILEMAKER=pq;oK.DBSYSTEMVALUES_INFORMIX=iq;oK.DBSYSTEMVALUES_INSTANTDB=aq;oK.DBSYSTEMVALUES_INTERBASE=oq;oK.DBSYSTEMVALUES_MARIADB=tq;oK.DBSYSTEMVALUES_NETEZZA=rq;oK.DBSYSTEMVALUES_PERVASIVE=sq;oK.DBSYSTEMVALUES_POINTBASE=eq;oK.DBSYSTEMVALUES_SQLITE=ZW;oK.DBSYSTEMVALUES_SYBASE=JW;oK.DBSYSTEMVALUES_TERADATA=QW;oK.DBSYSTEMVALUES_VERTICA=XW;oK.DBSYSTEMVALUES_H2=YW;oK.DBSYSTEMVALUES_COLDFUSION=zW;oK.DBSYSTEMVALUES_CASSANDRA=GW;oK.DBSYSTEMVALUES_HBASE=qW;oK.DBSYSTEMVALUES_MONGODB=WW;oK.DBSYSTEMVALUES_REDIS=KW;oK.DBSYSTEMVALUES_COUCHBASE=FW;oK.DBSYSTEMVALUES_COUCHDB=HW;oK.DBSYSTEMVALUES_COSMOSDB=BW;oK.DBSYSTEMVALUES_DYNAMODB=OW;oK.DBSYSTEMVALUES_NEO4J=VW;oK.DBSYSTEMVALUES_GEODE=NW;oK.DBSYSTEMVALUES_ELASTICSEARCH=CW;oK.DBSYSTEMVALUES_MEMCACHED=UW;oK.DBSYSTEMVALUES_COCKROACHDB=IW;oK.DbSystemValues=(0,K0.createConstMap)([Pq,Mq,Rq,hq,kq,fq,Sq,_q,yq,vq,jq,xq,bq,dq,uq,lq,cq,nq,mq,gq,pq,iq,aq,oq,tq,rq,sq,eq,ZW,JW,QW,XW,YW,zW,GW,qW,WW,KW,FW,HW,BW,OW,VW,NW,CW,UW,IW]);var DW="all",EW="each_quorum",AW="quorum",LW="local_quorum",TW="one",$W="two",wW="three",PW="local_one",MW="any",RW="serial",hW="local_serial";oK.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=DW;oK.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=EW;oK.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=AW;oK.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=LW;oK.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=TW;oK.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=$W;oK.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=wW;oK.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=PW;oK.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=MW;oK.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=RW;oK.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=hW;oK.DbCassandraConsistencyLevelValues=(0,K0.createConstMap)([DW,EW,AW,LW,TW,$W,wW,PW,MW,RW,hW]);var kW="datasource",fW="http",SW="pubsub",_W="timer",yW="other";oK.FAASTRIGGERVALUES_DATASOURCE=kW;oK.FAASTRIGGERVALUES_HTTP=fW;oK.FAASTRIGGERVALUES_PUBSUB=SW;oK.FAASTRIGGERVALUES_TIMER=_W;oK.FAASTRIGGERVALUES_OTHER=yW;oK.FaasTriggerValues=(0,K0.createConstMap)([kW,fW,SW,_W,yW]);var vW="insert",jW="edit",xW="delete";oK.FAASDOCUMENTOPERATIONVALUES_INSERT=vW;oK.FAASDOCUMENTOPERATIONVALUES_EDIT=jW;oK.FAASDOCUMENTOPERATIONVALUES_DELETE=xW;oK.FaasDocumentOperationValues=(0,K0.createConstMap)([vW,jW,xW]);var bW="alibaba_cloud",dW="aws",uW="azure",lW="gcp";oK.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=bW;oK.FAASINVOKEDPROVIDERVALUES_AWS=dW;oK.FAASINVOKEDPROVIDERVALUES_AZURE=uW;oK.FAASINVOKEDPROVIDERVALUES_GCP=lW;oK.FaasInvokedProviderValues=(0,K0.createConstMap)([bW,dW,uW,lW]);var cW="ip_tcp",nW="ip_udp",mW="ip",gW="unix",pW="pipe",iW="inproc",aW="other";oK.NETTRANSPORTVALUES_IP_TCP=cW;oK.NETTRANSPORTVALUES_IP_UDP=nW;oK.NETTRANSPORTVALUES_IP=mW;oK.NETTRANSPORTVALUES_UNIX=gW;oK.NETTRANSPORTVALUES_PIPE=pW;oK.NETTRANSPORTVALUES_INPROC=iW;oK.NETTRANSPORTVALUES_OTHER=aW;oK.NetTransportValues=(0,K0.createConstMap)([cW,nW,mW,gW,pW,iW,aW]);var oW="wifi",tW="wired",rW="cell",sW="unavailable",eW="unknown";oK.NETHOSTCONNECTIONTYPEVALUES_WIFI=oW;oK.NETHOSTCONNECTIONTYPEVALUES_WIRED=tW;oK.NETHOSTCONNECTIONTYPEVALUES_CELL=rW;oK.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=sW;oK.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=eW;oK.NetHostConnectionTypeValues=(0,K0.createConstMap)([oW,tW,rW,sW,eW]);var ZK="gprs",JK="edge",QK="umts",XK="cdma",YK="evdo_0",zK="evdo_a",GK="cdma2000_1xrtt",qK="hsdpa",WK="hsupa",KK="hspa",FK="iden",HK="evdo_b",BK="lte",OK="ehrpd",VK="hspap",NK="gsm",CK="td_scdma",UK="iwlan",IK="nr",DK="nrnsa",EK="lte_ca";oK.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=ZK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=JK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=QK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=XK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=YK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=zK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=GK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=qK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=WK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=KK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=FK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=HK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=BK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=OK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=VK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=NK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=CK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=UK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_NR=IK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=DK;oK.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=EK;oK.NetHostConnectionSubtypeValues=(0,K0.createConstMap)([ZK,JK,QK,XK,YK,zK,GK,qK,WK,KK,FK,HK,BK,OK,VK,NK,CK,UK,IK,DK,EK]);var AK="1.0",LK="1.1",TK="2.0",$K="SPDY",wK="QUIC";oK.HTTPFLAVORVALUES_HTTP_1_0=AK;oK.HTTPFLAVORVALUES_HTTP_1_1=LK;oK.HTTPFLAVORVALUES_HTTP_2_0=TK;oK.HTTPFLAVORVALUES_SPDY=$K;oK.HTTPFLAVORVALUES_QUIC=wK;oK.HttpFlavorValues={HTTP_1_0:AK,HTTP_1_1:LK,HTTP_2_0:TK,SPDY:$K,QUIC:wK};var PK="queue",MK="topic";oK.MESSAGINGDESTINATIONKINDVALUES_QUEUE=PK;oK.MESSAGINGDESTINATIONKINDVALUES_TOPIC=MK;oK.MessagingDestinationKindValues=(0,K0.createConstMap)([PK,MK]);var RK="receive",hK="process";oK.MESSAGINGOPERATIONVALUES_RECEIVE=RK;oK.MESSAGINGOPERATIONVALUES_PROCESS=hK;oK.MessagingOperationValues=(0,K0.createConstMap)([RK,hK]);var kK=0,fK=1,SK=2,_K=3,yK=4,vK=5,jK=6,xK=7,bK=8,dK=9,uK=10,lK=11,cK=12,nK=13,mK=14,gK=15,pK=16;oK.RPCGRPCSTATUSCODEVALUES_OK=kK;oK.RPCGRPCSTATUSCODEVALUES_CANCELLED=fK;oK.RPCGRPCSTATUSCODEVALUES_UNKNOWN=SK;oK.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=_K;oK.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=yK;oK.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=vK;oK.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=jK;oK.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=xK;oK.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=bK;oK.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=dK;oK.RPCGRPCSTATUSCODEVALUES_ABORTED=uK;oK.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=lK;oK.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=cK;oK.RPCGRPCSTATUSCODEVALUES_INTERNAL=nK;oK.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=mK;oK.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=gK;oK.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=pK;oK.RpcGrpcStatusCodeValues={OK:kK,CANCELLED:fK,UNKNOWN:SK,INVALID_ARGUMENT:_K,DEADLINE_EXCEEDED:yK,NOT_FOUND:vK,ALREADY_EXISTS:jK,PERMISSION_DENIED:xK,RESOURCE_EXHAUSTED:bK,FAILED_PRECONDITION:dK,ABORTED:uK,OUT_OF_RANGE:lK,UNIMPLEMENTED:cK,INTERNAL:nK,UNAVAILABLE:mK,DATA_LOSS:gK,UNAUTHENTICATED:pK};var iK="SENT",aK="RECEIVED";oK.MESSAGETYPEVALUES_SENT=iK;oK.MESSAGETYPEVALUES_RECEIVED=aK;oK.MessageTypeValues=(0,K0.createConstMap)([iK,aK])});var XF=V((B1)=>{var Hl=B1&&B1.__createBinding||(Object.create?function(Z,X,z,q){if(q===void 0)q=z;var G=Object.getOwnPropertyDescriptor(X,z);if(!G||("get"in G?!X.__esModule:G.writable||G.configurable))G={enumerable:!0,get:function(){return X[z]}};Object.defineProperty(Z,q,G)}:function(Z,X,z,q){if(q===void 0)q=z;Z[q]=X[z]}),Bl=B1&&B1.__exportStar||function(Z,X){for(var z in Z)if(z!=="default"&&!Object.prototype.hasOwnProperty.call(X,z))Hl(X,Z,z)};Object.defineProperty(B1,"__esModule",{value:!0});Bl(QF(),B1)});var SB=V((RB)=>{Object.defineProperty(RB,"__esModule",{value:!0});RB.SEMRESATTRS_K8S_STATEFULSET_NAME=RB.SEMRESATTRS_K8S_STATEFULSET_UID=RB.SEMRESATTRS_K8S_DEPLOYMENT_NAME=RB.SEMRESATTRS_K8S_DEPLOYMENT_UID=RB.SEMRESATTRS_K8S_REPLICASET_NAME=RB.SEMRESATTRS_K8S_REPLICASET_UID=RB.SEMRESATTRS_K8S_CONTAINER_NAME=RB.SEMRESATTRS_K8S_POD_NAME=RB.SEMRESATTRS_K8S_POD_UID=RB.SEMRESATTRS_K8S_NAMESPACE_NAME=RB.SEMRESATTRS_K8S_NODE_UID=RB.SEMRESATTRS_K8S_NODE_NAME=RB.SEMRESATTRS_K8S_CLUSTER_NAME=RB.SEMRESATTRS_HOST_IMAGE_VERSION=RB.SEMRESATTRS_HOST_IMAGE_ID=RB.SEMRESATTRS_HOST_IMAGE_NAME=RB.SEMRESATTRS_HOST_ARCH=RB.SEMRESATTRS_HOST_TYPE=RB.SEMRESATTRS_HOST_NAME=RB.SEMRESATTRS_HOST_ID=RB.SEMRESATTRS_FAAS_MAX_MEMORY=RB.SEMRESATTRS_FAAS_INSTANCE=RB.SEMRESATTRS_FAAS_VERSION=RB.SEMRESATTRS_FAAS_ID=RB.SEMRESATTRS_FAAS_NAME=RB.SEMRESATTRS_DEVICE_MODEL_NAME=RB.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=RB.SEMRESATTRS_DEVICE_ID=RB.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=RB.SEMRESATTRS_CONTAINER_IMAGE_TAG=RB.SEMRESATTRS_CONTAINER_IMAGE_NAME=RB.SEMRESATTRS_CONTAINER_RUNTIME=RB.SEMRESATTRS_CONTAINER_ID=RB.SEMRESATTRS_CONTAINER_NAME=RB.SEMRESATTRS_AWS_LOG_STREAM_ARNS=RB.SEMRESATTRS_AWS_LOG_STREAM_NAMES=RB.SEMRESATTRS_AWS_LOG_GROUP_ARNS=RB.SEMRESATTRS_AWS_LOG_GROUP_NAMES=RB.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=RB.SEMRESATTRS_AWS_ECS_TASK_REVISION=RB.SEMRESATTRS_AWS_ECS_TASK_FAMILY=RB.SEMRESATTRS_AWS_ECS_TASK_ARN=RB.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=RB.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=RB.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=RB.SEMRESATTRS_CLOUD_PLATFORM=RB.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=RB.SEMRESATTRS_CLOUD_REGION=RB.SEMRESATTRS_CLOUD_ACCOUNT_ID=RB.SEMRESATTRS_CLOUD_PROVIDER=void 0;RB.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=RB.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=RB.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=RB.CLOUDPLATFORMVALUES_AZURE_AKS=RB.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=RB.CLOUDPLATFORMVALUES_AZURE_VM=RB.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=RB.CLOUDPLATFORMVALUES_AWS_LAMBDA=RB.CLOUDPLATFORMVALUES_AWS_EKS=RB.CLOUDPLATFORMVALUES_AWS_ECS=RB.CLOUDPLATFORMVALUES_AWS_EC2=RB.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=RB.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=RB.CloudProviderValues=RB.CLOUDPROVIDERVALUES_GCP=RB.CLOUDPROVIDERVALUES_AZURE=RB.CLOUDPROVIDERVALUES_AWS=RB.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=RB.SemanticResourceAttributes=RB.SEMRESATTRS_WEBENGINE_DESCRIPTION=RB.SEMRESATTRS_WEBENGINE_VERSION=RB.SEMRESATTRS_WEBENGINE_NAME=RB.SEMRESATTRS_TELEMETRY_AUTO_VERSION=RB.SEMRESATTRS_TELEMETRY_SDK_VERSION=RB.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=RB.SEMRESATTRS_TELEMETRY_SDK_NAME=RB.SEMRESATTRS_SERVICE_VERSION=RB.SEMRESATTRS_SERVICE_INSTANCE_ID=RB.SEMRESATTRS_SERVICE_NAMESPACE=RB.SEMRESATTRS_SERVICE_NAME=RB.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=RB.SEMRESATTRS_PROCESS_RUNTIME_VERSION=RB.SEMRESATTRS_PROCESS_RUNTIME_NAME=RB.SEMRESATTRS_PROCESS_OWNER=RB.SEMRESATTRS_PROCESS_COMMAND_ARGS=RB.SEMRESATTRS_PROCESS_COMMAND_LINE=RB.SEMRESATTRS_PROCESS_COMMAND=RB.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=RB.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=RB.SEMRESATTRS_PROCESS_PID=RB.SEMRESATTRS_OS_VERSION=RB.SEMRESATTRS_OS_NAME=RB.SEMRESATTRS_OS_DESCRIPTION=RB.SEMRESATTRS_OS_TYPE=RB.SEMRESATTRS_K8S_CRONJOB_NAME=RB.SEMRESATTRS_K8S_CRONJOB_UID=RB.SEMRESATTRS_K8S_JOB_NAME=RB.SEMRESATTRS_K8S_JOB_UID=RB.SEMRESATTRS_K8S_DAEMONSET_NAME=RB.SEMRESATTRS_K8S_DAEMONSET_UID=void 0;RB.TelemetrySdkLanguageValues=RB.TELEMETRYSDKLANGUAGEVALUES_WEBJS=RB.TELEMETRYSDKLANGUAGEVALUES_RUBY=RB.TELEMETRYSDKLANGUAGEVALUES_PYTHON=RB.TELEMETRYSDKLANGUAGEVALUES_PHP=RB.TELEMETRYSDKLANGUAGEVALUES_NODEJS=RB.TELEMETRYSDKLANGUAGEVALUES_JAVA=RB.TELEMETRYSDKLANGUAGEVALUES_GO=RB.TELEMETRYSDKLANGUAGEVALUES_ERLANG=RB.TELEMETRYSDKLANGUAGEVALUES_DOTNET=RB.TELEMETRYSDKLANGUAGEVALUES_CPP=RB.OsTypeValues=RB.OSTYPEVALUES_Z_OS=RB.OSTYPEVALUES_SOLARIS=RB.OSTYPEVALUES_AIX=RB.OSTYPEVALUES_HPUX=RB.OSTYPEVALUES_DRAGONFLYBSD=RB.OSTYPEVALUES_OPENBSD=RB.OSTYPEVALUES_NETBSD=RB.OSTYPEVALUES_FREEBSD=RB.OSTYPEVALUES_DARWIN=RB.OSTYPEVALUES_LINUX=RB.OSTYPEVALUES_WINDOWS=RB.HostArchValues=RB.HOSTARCHVALUES_X86=RB.HOSTARCHVALUES_PPC64=RB.HOSTARCHVALUES_PPC32=RB.HOSTARCHVALUES_IA64=RB.HOSTARCHVALUES_ARM64=RB.HOSTARCHVALUES_ARM32=RB.HOSTARCHVALUES_AMD64=RB.AwsEcsLaunchtypeValues=RB.AWSECSLAUNCHTYPEVALUES_FARGATE=RB.AWSECSLAUNCHTYPEVALUES_EC2=RB.CloudPlatformValues=RB.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=RB.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=RB.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=RB.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=void 0;var O1=iQ(),YF="cloud.provider",zF="cloud.account.id",GF="cloud.region",qF="cloud.availability_zone",WF="cloud.platform",KF="aws.ecs.container.arn",FF="aws.ecs.cluster.arn",HF="aws.ecs.launchtype",BF="aws.ecs.task.arn",OF="aws.ecs.task.family",VF="aws.ecs.task.revision",NF="aws.eks.cluster.arn",CF="aws.log.group.names",UF="aws.log.group.arns",IF="aws.log.stream.names",DF="aws.log.stream.arns",EF="container.name",AF="container.id",LF="container.runtime",TF="container.image.name",$F="container.image.tag",wF="deployment.environment",PF="device.id",MF="device.model.identifier",RF="device.model.name",hF="faas.name",kF="faas.id",fF="faas.version",SF="faas.instance",_F="faas.max_memory",yF="host.id",vF="host.name",jF="host.type",xF="host.arch",bF="host.image.name",dF="host.image.id",uF="host.image.version",lF="k8s.cluster.name",cF="k8s.node.name",nF="k8s.node.uid",mF="k8s.namespace.name",gF="k8s.pod.uid",pF="k8s.pod.name",iF="k8s.container.name",aF="k8s.replicaset.uid",oF="k8s.replicaset.name",tF="k8s.deployment.uid",rF="k8s.deployment.name",sF="k8s.statefulset.uid",eF="k8s.statefulset.name",ZH="k8s.daemonset.uid",JH="k8s.daemonset.name",QH="k8s.job.uid",XH="k8s.job.name",YH="k8s.cronjob.uid",zH="k8s.cronjob.name",GH="os.type",qH="os.description",WH="os.name",KH="os.version",FH="process.pid",HH="process.executable.name",BH="process.executable.path",OH="process.command",VH="process.command_line",NH="process.command_args",CH="process.owner",UH="process.runtime.name",IH="process.runtime.version",DH="process.runtime.description",EH="service.name",AH="service.namespace",LH="service.instance.id",TH="service.version",$H="telemetry.sdk.name",wH="telemetry.sdk.language",PH="telemetry.sdk.version",MH="telemetry.auto.version",RH="webengine.name",hH="webengine.version",kH="webengine.description";RB.SEMRESATTRS_CLOUD_PROVIDER=YF;RB.SEMRESATTRS_CLOUD_ACCOUNT_ID=zF;RB.SEMRESATTRS_CLOUD_REGION=GF;RB.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=qF;RB.SEMRESATTRS_CLOUD_PLATFORM=WF;RB.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=KF;RB.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=FF;RB.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=HF;RB.SEMRESATTRS_AWS_ECS_TASK_ARN=BF;RB.SEMRESATTRS_AWS_ECS_TASK_FAMILY=OF;RB.SEMRESATTRS_AWS_ECS_TASK_REVISION=VF;RB.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=NF;RB.SEMRESATTRS_AWS_LOG_GROUP_NAMES=CF;RB.SEMRESATTRS_AWS_LOG_GROUP_ARNS=UF;RB.SEMRESATTRS_AWS_LOG_STREAM_NAMES=IF;RB.SEMRESATTRS_AWS_LOG_STREAM_ARNS=DF;RB.SEMRESATTRS_CONTAINER_NAME=EF;RB.SEMRESATTRS_CONTAINER_ID=AF;RB.SEMRESATTRS_CONTAINER_RUNTIME=LF;RB.SEMRESATTRS_CONTAINER_IMAGE_NAME=TF;RB.SEMRESATTRS_CONTAINER_IMAGE_TAG=$F;RB.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=wF;RB.SEMRESATTRS_DEVICE_ID=PF;RB.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=MF;RB.SEMRESATTRS_DEVICE_MODEL_NAME=RF;RB.SEMRESATTRS_FAAS_NAME=hF;RB.SEMRESATTRS_FAAS_ID=kF;RB.SEMRESATTRS_FAAS_VERSION=fF;RB.SEMRESATTRS_FAAS_INSTANCE=SF;RB.SEMRESATTRS_FAAS_MAX_MEMORY=_F;RB.SEMRESATTRS_HOST_ID=yF;RB.SEMRESATTRS_HOST_NAME=vF;RB.SEMRESATTRS_HOST_TYPE=jF;RB.SEMRESATTRS_HOST_ARCH=xF;RB.SEMRESATTRS_HOST_IMAGE_NAME=bF;RB.SEMRESATTRS_HOST_IMAGE_ID=dF;RB.SEMRESATTRS_HOST_IMAGE_VERSION=uF;RB.SEMRESATTRS_K8S_CLUSTER_NAME=lF;RB.SEMRESATTRS_K8S_NODE_NAME=cF;RB.SEMRESATTRS_K8S_NODE_UID=nF;RB.SEMRESATTRS_K8S_NAMESPACE_NAME=mF;RB.SEMRESATTRS_K8S_POD_UID=gF;RB.SEMRESATTRS_K8S_POD_NAME=pF;RB.SEMRESATTRS_K8S_CONTAINER_NAME=iF;RB.SEMRESATTRS_K8S_REPLICASET_UID=aF;RB.SEMRESATTRS_K8S_REPLICASET_NAME=oF;RB.SEMRESATTRS_K8S_DEPLOYMENT_UID=tF;RB.SEMRESATTRS_K8S_DEPLOYMENT_NAME=rF;RB.SEMRESATTRS_K8S_STATEFULSET_UID=sF;RB.SEMRESATTRS_K8S_STATEFULSET_NAME=eF;RB.SEMRESATTRS_K8S_DAEMONSET_UID=ZH;RB.SEMRESATTRS_K8S_DAEMONSET_NAME=JH;RB.SEMRESATTRS_K8S_JOB_UID=QH;RB.SEMRESATTRS_K8S_JOB_NAME=XH;RB.SEMRESATTRS_K8S_CRONJOB_UID=YH;RB.SEMRESATTRS_K8S_CRONJOB_NAME=zH;RB.SEMRESATTRS_OS_TYPE=GH;RB.SEMRESATTRS_OS_DESCRIPTION=qH;RB.SEMRESATTRS_OS_NAME=WH;RB.SEMRESATTRS_OS_VERSION=KH;RB.SEMRESATTRS_PROCESS_PID=FH;RB.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=HH;RB.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=BH;RB.SEMRESATTRS_PROCESS_COMMAND=OH;RB.SEMRESATTRS_PROCESS_COMMAND_LINE=VH;RB.SEMRESATTRS_PROCESS_COMMAND_ARGS=NH;RB.SEMRESATTRS_PROCESS_OWNER=CH;RB.SEMRESATTRS_PROCESS_RUNTIME_NAME=UH;RB.SEMRESATTRS_PROCESS_RUNTIME_VERSION=IH;RB.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=DH;RB.SEMRESATTRS_SERVICE_NAME=EH;RB.SEMRESATTRS_SERVICE_NAMESPACE=AH;RB.SEMRESATTRS_SERVICE_INSTANCE_ID=LH;RB.SEMRESATTRS_SERVICE_VERSION=TH;RB.SEMRESATTRS_TELEMETRY_SDK_NAME=$H;RB.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=wH;RB.SEMRESATTRS_TELEMETRY_SDK_VERSION=PH;RB.SEMRESATTRS_TELEMETRY_AUTO_VERSION=MH;RB.SEMRESATTRS_WEBENGINE_NAME=RH;RB.SEMRESATTRS_WEBENGINE_VERSION=hH;RB.SEMRESATTRS_WEBENGINE_DESCRIPTION=kH;RB.SemanticResourceAttributes=(0,O1.createConstMap)([YF,zF,GF,qF,WF,KF,FF,HF,BF,OF,VF,NF,CF,UF,IF,DF,EF,AF,LF,TF,$F,wF,PF,MF,RF,hF,kF,fF,SF,_F,yF,vF,jF,xF,bF,dF,uF,lF,cF,nF,mF,gF,pF,iF,aF,oF,tF,rF,sF,eF,ZH,JH,QH,XH,YH,zH,GH,qH,WH,KH,FH,HH,BH,OH,VH,NH,CH,UH,IH,DH,EH,AH,LH,TH,$H,wH,PH,MH,RH,hH,kH]);var fH="alibaba_cloud",SH="aws",_H="azure",yH="gcp";RB.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=fH;RB.CLOUDPROVIDERVALUES_AWS=SH;RB.CLOUDPROVIDERVALUES_AZURE=_H;RB.CLOUDPROVIDERVALUES_GCP=yH;RB.CloudProviderValues=(0,O1.createConstMap)([fH,SH,_H,yH]);var vH="alibaba_cloud_ecs",jH="alibaba_cloud_fc",xH="aws_ec2",bH="aws_ecs",dH="aws_eks",uH="aws_lambda",lH="aws_elastic_beanstalk",cH="azure_vm",nH="azure_container_instances",mH="azure_aks",gH="azure_functions",pH="azure_app_service",iH="gcp_compute_engine",aH="gcp_cloud_run",oH="gcp_kubernetes_engine",tH="gcp_cloud_functions",rH="gcp_app_engine";RB.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=vH;RB.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=jH;RB.CLOUDPLATFORMVALUES_AWS_EC2=xH;RB.CLOUDPLATFORMVALUES_AWS_ECS=bH;RB.CLOUDPLATFORMVALUES_AWS_EKS=dH;RB.CLOUDPLATFORMVALUES_AWS_LAMBDA=uH;RB.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=lH;RB.CLOUDPLATFORMVALUES_AZURE_VM=cH;RB.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=nH;RB.CLOUDPLATFORMVALUES_AZURE_AKS=mH;RB.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=gH;RB.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=pH;RB.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=iH;RB.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=aH;RB.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=oH;RB.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=tH;RB.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=rH;RB.CloudPlatformValues=(0,O1.createConstMap)([vH,jH,xH,bH,dH,uH,lH,cH,nH,mH,gH,pH,iH,aH,oH,tH,rH]);var sH="ec2",eH="fargate";RB.AWSECSLAUNCHTYPEVALUES_EC2=sH;RB.AWSECSLAUNCHTYPEVALUES_FARGATE=eH;RB.AwsEcsLaunchtypeValues=(0,O1.createConstMap)([sH,eH]);var ZB="amd64",JB="arm32",QB="arm64",XB="ia64",YB="ppc32",zB="ppc64",GB="x86";RB.HOSTARCHVALUES_AMD64=ZB;RB.HOSTARCHVALUES_ARM32=JB;RB.HOSTARCHVALUES_ARM64=QB;RB.HOSTARCHVALUES_IA64=XB;RB.HOSTARCHVALUES_PPC32=YB;RB.HOSTARCHVALUES_PPC64=zB;RB.HOSTARCHVALUES_X86=GB;RB.HostArchValues=(0,O1.createConstMap)([ZB,JB,QB,XB,YB,zB,GB]);var qB="windows",WB="linux",KB="darwin",FB="freebsd",HB="netbsd",BB="openbsd",OB="dragonflybsd",VB="hpux",NB="aix",CB="solaris",UB="z_os";RB.OSTYPEVALUES_WINDOWS=qB;RB.OSTYPEVALUES_LINUX=WB;RB.OSTYPEVALUES_DARWIN=KB;RB.OSTYPEVALUES_FREEBSD=FB;RB.OSTYPEVALUES_NETBSD=HB;RB.OSTYPEVALUES_OPENBSD=BB;RB.OSTYPEVALUES_DRAGONFLYBSD=OB;RB.OSTYPEVALUES_HPUX=VB;RB.OSTYPEVALUES_AIX=NB;RB.OSTYPEVALUES_SOLARIS=CB;RB.OSTYPEVALUES_Z_OS=UB;RB.OsTypeValues=(0,O1.createConstMap)([qB,WB,KB,FB,HB,BB,OB,VB,NB,CB,UB]);var IB="cpp",DB="dotnet",EB="erlang",AB="go",LB="java",TB="nodejs",$B="php",wB="python",PB="ruby",MB="webjs";RB.TELEMETRYSDKLANGUAGEVALUES_CPP=IB;RB.TELEMETRYSDKLANGUAGEVALUES_DOTNET=DB;RB.TELEMETRYSDKLANGUAGEVALUES_ERLANG=EB;RB.TELEMETRYSDKLANGUAGEVALUES_GO=AB;RB.TELEMETRYSDKLANGUAGEVALUES_JAVA=LB;RB.TELEMETRYSDKLANGUAGEVALUES_NODEJS=TB;RB.TELEMETRYSDKLANGUAGEVALUES_PHP=$B;RB.TELEMETRYSDKLANGUAGEVALUES_PYTHON=wB;RB.TELEMETRYSDKLANGUAGEVALUES_RUBY=PB;RB.TELEMETRYSDKLANGUAGEVALUES_WEBJS=MB;RB.TelemetrySdkLanguageValues=(0,O1.createConstMap)([IB,DB,EB,AB,LB,TB,$B,wB,PB,MB])});var _B=V((V1)=>{var ln=V1&&V1.__createBinding||(Object.create?function(Z,X,z,q){if(q===void 0)q=z;var G=Object.getOwnPropertyDescriptor(X,z);if(!G||("get"in G?!X.__esModule:G.writable||G.configurable))G={enumerable:!0,get:function(){return X[z]}};Object.defineProperty(Z,q,G)}:function(Z,X,z,q){if(q===void 0)q=z;Z[q]=X[z]}),cn=V1&&V1.__exportStar||function(Z,X){for(var z in Z)if(z!=="default"&&!Object.prototype.hasOwnProperty.call(X,z))ln(X,Z,z)};Object.defineProperty(V1,"__esModule",{value:!0});cn(SB(),V1)});var bB=V((yB)=>{Object.defineProperty(yB,"__esModule",{value:!0});yB.ATTR_EXCEPTION_TYPE=yB.ATTR_EXCEPTION_STACKTRACE=yB.ATTR_EXCEPTION_MESSAGE=yB.ATTR_EXCEPTION_ESCAPED=yB.ERROR_TYPE_VALUE_OTHER=yB.ATTR_ERROR_TYPE=yB.DOTNET_GC_HEAP_GENERATION_VALUE_POH=yB.DOTNET_GC_HEAP_GENERATION_VALUE_LOH=yB.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2=yB.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1=yB.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0=yB.ATTR_DOTNET_GC_HEAP_GENERATION=yB.DB_SYSTEM_NAME_VALUE_POSTGRESQL=yB.DB_SYSTEM_NAME_VALUE_MYSQL=yB.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER=yB.DB_SYSTEM_NAME_VALUE_MARIADB=yB.ATTR_DB_SYSTEM_NAME=yB.ATTR_DB_STORED_PROCEDURE_NAME=yB.ATTR_DB_RESPONSE_STATUS_CODE=yB.ATTR_DB_QUERY_TEXT=yB.ATTR_DB_QUERY_SUMMARY=yB.ATTR_DB_OPERATION_NAME=yB.ATTR_DB_OPERATION_BATCH_SIZE=yB.ATTR_DB_NAMESPACE=yB.ATTR_DB_COLLECTION_NAME=yB.ATTR_CODE_STACKTRACE=yB.ATTR_CODE_LINE_NUMBER=yB.ATTR_CODE_FUNCTION_NAME=yB.ATTR_CODE_FILE_PATH=yB.ATTR_CODE_COLUMN_NUMBER=yB.ATTR_CLIENT_PORT=yB.ATTR_CLIENT_ADDRESS=yB.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED=yB.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS=yB.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE=yB.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS=yB.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK=yB.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED=yB.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED=yB.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER=yB.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER=yB.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED=yB.ATTR_ASPNETCORE_RATE_LIMITING_RESULT=yB.ATTR_ASPNETCORE_RATE_LIMITING_POLICY=yB.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE=yB.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED=yB.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED=yB.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED=yB.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED=yB.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT=void 0;yB.OTEL_STATUS_CODE_VALUE_ERROR=yB.ATTR_OTEL_STATUS_CODE=yB.ATTR_OTEL_SCOPE_VERSION=yB.ATTR_OTEL_SCOPE_NAME=yB.NETWORK_TYPE_VALUE_IPV6=yB.NETWORK_TYPE_VALUE_IPV4=yB.ATTR_NETWORK_TYPE=yB.NETWORK_TRANSPORT_VALUE_UNIX=yB.NETWORK_TRANSPORT_VALUE_UDP=yB.NETWORK_TRANSPORT_VALUE_TCP=yB.NETWORK_TRANSPORT_VALUE_QUIC=yB.NETWORK_TRANSPORT_VALUE_PIPE=yB.ATTR_NETWORK_TRANSPORT=yB.ATTR_NETWORK_PROTOCOL_VERSION=yB.ATTR_NETWORK_PROTOCOL_NAME=yB.ATTR_NETWORK_PEER_PORT=yB.ATTR_NETWORK_PEER_ADDRESS=yB.ATTR_NETWORK_LOCAL_PORT=yB.ATTR_NETWORK_LOCAL_ADDRESS=yB.JVM_THREAD_STATE_VALUE_WAITING=yB.JVM_THREAD_STATE_VALUE_TIMED_WAITING=yB.JVM_THREAD_STATE_VALUE_TERMINATED=yB.JVM_THREAD_STATE_VALUE_RUNNABLE=yB.JVM_THREAD_STATE_VALUE_NEW=yB.JVM_THREAD_STATE_VALUE_BLOCKED=yB.ATTR_JVM_THREAD_STATE=yB.ATTR_JVM_THREAD_DAEMON=yB.JVM_MEMORY_TYPE_VALUE_NON_HEAP=yB.JVM_MEMORY_TYPE_VALUE_HEAP=yB.ATTR_JVM_MEMORY_TYPE=yB.ATTR_JVM_MEMORY_POOL_NAME=yB.ATTR_JVM_GC_NAME=yB.ATTR_JVM_GC_ACTION=yB.ATTR_HTTP_ROUTE=yB.ATTR_HTTP_RESPONSE_STATUS_CODE=yB.ATTR_HTTP_RESPONSE_HEADER=yB.ATTR_HTTP_REQUEST_RESEND_COUNT=yB.ATTR_HTTP_REQUEST_METHOD_ORIGINAL=yB.HTTP_REQUEST_METHOD_VALUE_TRACE=yB.HTTP_REQUEST_METHOD_VALUE_PUT=yB.HTTP_REQUEST_METHOD_VALUE_POST=yB.HTTP_REQUEST_METHOD_VALUE_PATCH=yB.HTTP_REQUEST_METHOD_VALUE_OPTIONS=yB.HTTP_REQUEST_METHOD_VALUE_HEAD=yB.HTTP_REQUEST_METHOD_VALUE_GET=yB.HTTP_REQUEST_METHOD_VALUE_DELETE=yB.HTTP_REQUEST_METHOD_VALUE_CONNECT=yB.HTTP_REQUEST_METHOD_VALUE_OTHER=yB.ATTR_HTTP_REQUEST_METHOD=yB.ATTR_HTTP_REQUEST_HEADER=void 0;yB.ATTR_USER_AGENT_ORIGINAL=yB.ATTR_URL_SCHEME=yB.ATTR_URL_QUERY=yB.ATTR_URL_PATH=yB.ATTR_URL_FULL=yB.ATTR_URL_FRAGMENT=yB.ATTR_TELEMETRY_SDK_VERSION=yB.ATTR_TELEMETRY_SDK_NAME=yB.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS=yB.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT=yB.TELEMETRY_SDK_LANGUAGE_VALUE_RUST=yB.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY=yB.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON=yB.TELEMETRY_SDK_LANGUAGE_VALUE_PHP=yB.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS=yB.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA=yB.TELEMETRY_SDK_LANGUAGE_VALUE_GO=yB.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG=yB.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET=yB.TELEMETRY_SDK_LANGUAGE_VALUE_CPP=yB.ATTR_TELEMETRY_SDK_LANGUAGE=yB.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS=yB.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS=yB.SIGNALR_TRANSPORT_VALUE_LONG_POLLING=yB.ATTR_SIGNALR_TRANSPORT=yB.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT=yB.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE=yB.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN=yB.ATTR_SIGNALR_CONNECTION_STATUS=yB.ATTR_SERVICE_VERSION=yB.ATTR_SERVICE_NAMESPACE=yB.ATTR_SERVICE_NAME=yB.ATTR_SERVICE_INSTANCE_ID=yB.ATTR_SERVER_PORT=yB.ATTR_SERVER_ADDRESS=yB.ATTR_OTEL_STATUS_DESCRIPTION=yB.OTEL_STATUS_CODE_VALUE_OK=void 0;yB.ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT="aspnetcore.diagnostics.exception.result";yB.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED="aborted";yB.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED="handled";yB.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED="skipped";yB.ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED="unhandled";yB.ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE="aspnetcore.diagnostics.handler.type";yB.ATTR_ASPNETCORE_RATE_LIMITING_POLICY="aspnetcore.rate_limiting.policy";yB.ATTR_ASPNETCORE_RATE_LIMITING_RESULT="aspnetcore.rate_limiting.result";yB.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED="acquired";yB.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER="endpoint_limiter";yB.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER="global_limiter";yB.ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED="request_canceled";yB.ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED="aspnetcore.request.is_unhandled";yB.ATTR_ASPNETCORE_ROUTING_IS_FALLBACK="aspnetcore.routing.is_fallback";yB.ATTR_ASPNETCORE_ROUTING_MATCH_STATUS="aspnetcore.routing.match_status";yB.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE="failure";yB.ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS="success";yB.ATTR_ASPNETCORE_USER_IS_AUTHENTICATED="aspnetcore.user.is_authenticated";yB.ATTR_CLIENT_ADDRESS="client.address";yB.ATTR_CLIENT_PORT="client.port";yB.ATTR_CODE_COLUMN_NUMBER="code.column.number";yB.ATTR_CODE_FILE_PATH="code.file.path";yB.ATTR_CODE_FUNCTION_NAME="code.function.name";yB.ATTR_CODE_LINE_NUMBER="code.line.number";yB.ATTR_CODE_STACKTRACE="code.stacktrace";yB.ATTR_DB_COLLECTION_NAME="db.collection.name";yB.ATTR_DB_NAMESPACE="db.namespace";yB.ATTR_DB_OPERATION_BATCH_SIZE="db.operation.batch.size";yB.ATTR_DB_OPERATION_NAME="db.operation.name";yB.ATTR_DB_QUERY_SUMMARY="db.query.summary";yB.ATTR_DB_QUERY_TEXT="db.query.text";yB.ATTR_DB_RESPONSE_STATUS_CODE="db.response.status_code";yB.ATTR_DB_STORED_PROCEDURE_NAME="db.stored_procedure.name";yB.ATTR_DB_SYSTEM_NAME="db.system.name";yB.DB_SYSTEM_NAME_VALUE_MARIADB="mariadb";yB.DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER="microsoft.sql_server";yB.DB_SYSTEM_NAME_VALUE_MYSQL="mysql";yB.DB_SYSTEM_NAME_VALUE_POSTGRESQL="postgresql";yB.ATTR_DOTNET_GC_HEAP_GENERATION="dotnet.gc.heap.generation";yB.DOTNET_GC_HEAP_GENERATION_VALUE_GEN0="gen0";yB.DOTNET_GC_HEAP_GENERATION_VALUE_GEN1="gen1";yB.DOTNET_GC_HEAP_GENERATION_VALUE_GEN2="gen2";yB.DOTNET_GC_HEAP_GENERATION_VALUE_LOH="loh";yB.DOTNET_GC_HEAP_GENERATION_VALUE_POH="poh";yB.ATTR_ERROR_TYPE="error.type";yB.ERROR_TYPE_VALUE_OTHER="_OTHER";yB.ATTR_EXCEPTION_ESCAPED="exception.escaped";yB.ATTR_EXCEPTION_MESSAGE="exception.message";yB.ATTR_EXCEPTION_STACKTRACE="exception.stacktrace";yB.ATTR_EXCEPTION_TYPE="exception.type";var nn=(Z)=>`http.request.header.${Z}`;yB.ATTR_HTTP_REQUEST_HEADER=nn;yB.ATTR_HTTP_REQUEST_METHOD="http.request.method";yB.HTTP_REQUEST_METHOD_VALUE_OTHER="_OTHER";yB.HTTP_REQUEST_METHOD_VALUE_CONNECT="CONNECT";yB.HTTP_REQUEST_METHOD_VALUE_DELETE="DELETE";yB.HTTP_REQUEST_METHOD_VALUE_GET="GET";yB.HTTP_REQUEST_METHOD_VALUE_HEAD="HEAD";yB.HTTP_REQUEST_METHOD_VALUE_OPTIONS="OPTIONS";yB.HTTP_REQUEST_METHOD_VALUE_PATCH="PATCH";yB.HTTP_REQUEST_METHOD_VALUE_POST="POST";yB.HTTP_REQUEST_METHOD_VALUE_PUT="PUT";yB.HTTP_REQUEST_METHOD_VALUE_TRACE="TRACE";yB.ATTR_HTTP_REQUEST_METHOD_ORIGINAL="http.request.method_original";yB.ATTR_HTTP_REQUEST_RESEND_COUNT="http.request.resend_count";var mn=(Z)=>`http.response.header.${Z}`;yB.ATTR_HTTP_RESPONSE_HEADER=mn;yB.ATTR_HTTP_RESPONSE_STATUS_CODE="http.response.status_code";yB.ATTR_HTTP_ROUTE="http.route";yB.ATTR_JVM_GC_ACTION="jvm.gc.action";yB.ATTR_JVM_GC_NAME="jvm.gc.name";yB.ATTR_JVM_MEMORY_POOL_NAME="jvm.memory.pool.name";yB.ATTR_JVM_MEMORY_TYPE="jvm.memory.type";yB.JVM_MEMORY_TYPE_VALUE_HEAP="heap";yB.JVM_MEMORY_TYPE_VALUE_NON_HEAP="non_heap";yB.ATTR_JVM_THREAD_DAEMON="jvm.thread.daemon";yB.ATTR_JVM_THREAD_STATE="jvm.thread.state";yB.JVM_THREAD_STATE_VALUE_BLOCKED="blocked";yB.JVM_THREAD_STATE_VALUE_NEW="new";yB.JVM_THREAD_STATE_VALUE_RUNNABLE="runnable";yB.JVM_THREAD_STATE_VALUE_TERMINATED="terminated";yB.JVM_THREAD_STATE_VALUE_TIMED_WAITING="timed_waiting";yB.JVM_THREAD_STATE_VALUE_WAITING="waiting";yB.ATTR_NETWORK_LOCAL_ADDRESS="network.local.address";yB.ATTR_NETWORK_LOCAL_PORT="network.local.port";yB.ATTR_NETWORK_PEER_ADDRESS="network.peer.address";yB.ATTR_NETWORK_PEER_PORT="network.peer.port";yB.ATTR_NETWORK_PROTOCOL_NAME="network.protocol.name";yB.ATTR_NETWORK_PROTOCOL_VERSION="network.protocol.version";yB.ATTR_NETWORK_TRANSPORT="network.transport";yB.NETWORK_TRANSPORT_VALUE_PIPE="pipe";yB.NETWORK_TRANSPORT_VALUE_QUIC="quic";yB.NETWORK_TRANSPORT_VALUE_TCP="tcp";yB.NETWORK_TRANSPORT_VALUE_UDP="udp";yB.NETWORK_TRANSPORT_VALUE_UNIX="unix";yB.ATTR_NETWORK_TYPE="network.type";yB.NETWORK_TYPE_VALUE_IPV4="ipv4";yB.NETWORK_TYPE_VALUE_IPV6="ipv6";yB.ATTR_OTEL_SCOPE_NAME="otel.scope.name";yB.ATTR_OTEL_SCOPE_VERSION="otel.scope.version";yB.ATTR_OTEL_STATUS_CODE="otel.status_code";yB.OTEL_STATUS_CODE_VALUE_ERROR="ERROR";yB.OTEL_STATUS_CODE_VALUE_OK="OK";yB.ATTR_OTEL_STATUS_DESCRIPTION="otel.status_description";yB.ATTR_SERVER_ADDRESS="server.address";yB.ATTR_SERVER_PORT="server.port";yB.ATTR_SERVICE_INSTANCE_ID="service.instance.id";yB.ATTR_SERVICE_NAME="service.name";yB.ATTR_SERVICE_NAMESPACE="service.namespace";yB.ATTR_SERVICE_VERSION="service.version";yB.ATTR_SIGNALR_CONNECTION_STATUS="signalr.connection.status";yB.SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN="app_shutdown";yB.SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE="normal_closure";yB.SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT="timeout";yB.ATTR_SIGNALR_TRANSPORT="signalr.transport";yB.SIGNALR_TRANSPORT_VALUE_LONG_POLLING="long_polling";yB.SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS="server_sent_events";yB.SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS="web_sockets";yB.ATTR_TELEMETRY_SDK_LANGUAGE="telemetry.sdk.language";yB.TELEMETRY_SDK_LANGUAGE_VALUE_CPP="cpp";yB.TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET="dotnet";yB.TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG="erlang";yB.TELEMETRY_SDK_LANGUAGE_VALUE_GO="go";yB.TELEMETRY_SDK_LANGUAGE_VALUE_JAVA="java";yB.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS="nodejs";yB.TELEMETRY_SDK_LANGUAGE_VALUE_PHP="php";yB.TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON="python";yB.TELEMETRY_SDK_LANGUAGE_VALUE_RUBY="ruby";yB.TELEMETRY_SDK_LANGUAGE_VALUE_RUST="rust";yB.TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT="swift";yB.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS="webjs";yB.ATTR_TELEMETRY_SDK_NAME="telemetry.sdk.name";yB.ATTR_TELEMETRY_SDK_VERSION="telemetry.sdk.version";yB.ATTR_URL_FRAGMENT="url.fragment";yB.ATTR_URL_FULL="url.full";yB.ATTR_URL_PATH="url.path";yB.ATTR_URL_QUERY="url.query";yB.ATTR_URL_SCHEME="url.scheme";yB.ATTR_USER_AGENT_ORIGINAL="user_agent.original"});var cB=V((dB)=>{Object.defineProperty(dB,"__esModule",{value:!0});dB.METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS=dB.METRIC_KESTREL_UPGRADED_CONNECTIONS=dB.METRIC_KESTREL_TLS_HANDSHAKE_DURATION=dB.METRIC_KESTREL_REJECTED_CONNECTIONS=dB.METRIC_KESTREL_QUEUED_REQUESTS=dB.METRIC_KESTREL_QUEUED_CONNECTIONS=dB.METRIC_KESTREL_CONNECTION_DURATION=dB.METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES=dB.METRIC_KESTREL_ACTIVE_CONNECTIONS=dB.METRIC_JVM_THREAD_COUNT=dB.METRIC_JVM_MEMORY_USED_AFTER_LAST_GC=dB.METRIC_JVM_MEMORY_USED=dB.METRIC_JVM_MEMORY_LIMIT=dB.METRIC_JVM_MEMORY_COMMITTED=dB.METRIC_JVM_GC_DURATION=dB.METRIC_JVM_CPU_TIME=dB.METRIC_JVM_CPU_RECENT_UTILIZATION=dB.METRIC_JVM_CPU_COUNT=dB.METRIC_JVM_CLASS_UNLOADED=dB.METRIC_JVM_CLASS_LOADED=dB.METRIC_JVM_CLASS_COUNT=dB.METRIC_HTTP_SERVER_REQUEST_DURATION=dB.METRIC_HTTP_CLIENT_REQUEST_DURATION=dB.METRIC_DOTNET_TIMER_COUNT=dB.METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT=dB.METRIC_DOTNET_THREAD_POOL_THREAD_COUNT=dB.METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH=dB.METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET=dB.METRIC_DOTNET_PROCESS_CPU_TIME=dB.METRIC_DOTNET_PROCESS_CPU_COUNT=dB.METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS=dB.METRIC_DOTNET_JIT_COMPILED_METHODS=dB.METRIC_DOTNET_JIT_COMPILED_IL_SIZE=dB.METRIC_DOTNET_JIT_COMPILATION_TIME=dB.METRIC_DOTNET_GC_PAUSE_TIME=dB.METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE=dB.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE=dB.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE=dB.METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED=dB.METRIC_DOTNET_GC_COLLECTIONS=dB.METRIC_DOTNET_EXCEPTIONS=dB.METRIC_DOTNET_ASSEMBLY_COUNT=dB.METRIC_DB_CLIENT_OPERATION_DURATION=dB.METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS=dB.METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS=dB.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION=dB.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE=dB.METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS=dB.METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES=dB.METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS=void 0;dB.METRIC_SIGNALR_SERVER_CONNECTION_DURATION=void 0;dB.METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS="aspnetcore.diagnostics.exceptions";dB.METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES="aspnetcore.rate_limiting.active_request_leases";dB.METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS="aspnetcore.rate_limiting.queued_requests";dB.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE="aspnetcore.rate_limiting.request.time_in_queue";dB.METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION="aspnetcore.rate_limiting.request_lease.duration";dB.METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS="aspnetcore.rate_limiting.requests";dB.METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS="aspnetcore.routing.match_attempts";dB.METRIC_DB_CLIENT_OPERATION_DURATION="db.client.operation.duration";dB.METRIC_DOTNET_ASSEMBLY_COUNT="dotnet.assembly.count";dB.METRIC_DOTNET_EXCEPTIONS="dotnet.exceptions";dB.METRIC_DOTNET_GC_COLLECTIONS="dotnet.gc.collections";dB.METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED="dotnet.gc.heap.total_allocated";dB.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE="dotnet.gc.last_collection.heap.fragmentation.size";dB.METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE="dotnet.gc.last_collection.heap.size";dB.METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE="dotnet.gc.last_collection.memory.committed_size";dB.METRIC_DOTNET_GC_PAUSE_TIME="dotnet.gc.pause.time";dB.METRIC_DOTNET_JIT_COMPILATION_TIME="dotnet.jit.compilation.time";dB.METRIC_DOTNET_JIT_COMPILED_IL_SIZE="dotnet.jit.compiled_il.size";dB.METRIC_DOTNET_JIT_COMPILED_METHODS="dotnet.jit.compiled_methods";dB.METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS="dotnet.monitor.lock_contentions";dB.METRIC_DOTNET_PROCESS_CPU_COUNT="dotnet.process.cpu.count";dB.METRIC_DOTNET_PROCESS_CPU_TIME="dotnet.process.cpu.time";dB.METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET="dotnet.process.memory.working_set";dB.METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH="dotnet.thread_pool.queue.length";dB.METRIC_DOTNET_THREAD_POOL_THREAD_COUNT="dotnet.thread_pool.thread.count";dB.METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT="dotnet.thread_pool.work_item.count";dB.METRIC_DOTNET_TIMER_COUNT="dotnet.timer.count";dB.METRIC_HTTP_CLIENT_REQUEST_DURATION="http.client.request.duration";dB.METRIC_HTTP_SERVER_REQUEST_DURATION="http.server.request.duration";dB.METRIC_JVM_CLASS_COUNT="jvm.class.count";dB.METRIC_JVM_CLASS_LOADED="jvm.class.loaded";dB.METRIC_JVM_CLASS_UNLOADED="jvm.class.unloaded";dB.METRIC_JVM_CPU_COUNT="jvm.cpu.count";dB.METRIC_JVM_CPU_RECENT_UTILIZATION="jvm.cpu.recent_utilization";dB.METRIC_JVM_CPU_TIME="jvm.cpu.time";dB.METRIC_JVM_GC_DURATION="jvm.gc.duration";dB.METRIC_JVM_MEMORY_COMMITTED="jvm.memory.committed";dB.METRIC_JVM_MEMORY_LIMIT="jvm.memory.limit";dB.METRIC_JVM_MEMORY_USED="jvm.memory.used";dB.METRIC_JVM_MEMORY_USED_AFTER_LAST_GC="jvm.memory.used_after_last_gc";dB.METRIC_JVM_THREAD_COUNT="jvm.thread.count";dB.METRIC_KESTREL_ACTIVE_CONNECTIONS="kestrel.active_connections";dB.METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES="kestrel.active_tls_handshakes";dB.METRIC_KESTREL_CONNECTION_DURATION="kestrel.connection.duration";dB.METRIC_KESTREL_QUEUED_CONNECTIONS="kestrel.queued_connections";dB.METRIC_KESTREL_QUEUED_REQUESTS="kestrel.queued_requests";dB.METRIC_KESTREL_REJECTED_CONNECTIONS="kestrel.rejected_connections";dB.METRIC_KESTREL_TLS_HANDSHAKE_DURATION="kestrel.tls_handshake.duration";dB.METRIC_KESTREL_UPGRADED_CONNECTIONS="kestrel.upgraded_connections";dB.METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS="signalr.server.active_connections";dB.METRIC_SIGNALR_SERVER_CONNECTION_DURATION="signalr.server.connection.duration"});var gB=V((nB)=>{Object.defineProperty(nB,"__esModule",{value:!0});nB.EVENT_EXCEPTION=void 0;nB.EVENT_EXCEPTION="exception"});var w0=V((D0)=>{var Oi=D0&&D0.__createBinding||(Object.create?function(Z,X,z,q){if(q===void 0)q=z;var G=Object.getOwnPropertyDescriptor(X,z);if(!G||("get"in G?!X.__esModule:G.writable||G.configurable))G={enumerable:!0,get:function(){return X[z]}};Object.defineProperty(Z,q,G)}:function(Z,X,z,q){if(q===void 0)q=z;Z[q]=X[z]}),gZ=D0&&D0.__exportStar||function(Z,X){for(var z in Z)if(z!=="default"&&!Object.prototype.hasOwnProperty.call(X,z))Oi(X,Z,z)};Object.defineProperty(D0,"__esModule",{value:!0});gZ(XF(),D0);gZ(_B(),D0);gZ(bB(),D0);gZ(cB(),D0);gZ(gB(),D0)});var aB=V((pB)=>{Object.defineProperty(pB,"__esModule",{value:!0});pB.ATTR_PROCESS_RUNTIME_NAME=void 0;pB.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var rB=V((oB)=>{Object.defineProperty(oB,"__esModule",{value:!0});oB.SDK_INFO=void 0;var Vi=Xz(),ZJ=w0(),Ni=aB();oB.SDK_INFO={[ZJ.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[Ni.ATTR_PROCESS_RUNTIME_NAME]:"node",[ZJ.ATTR_TELEMETRY_SDK_LANGUAGE]:ZJ.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[ZJ.ATTR_TELEMETRY_SDK_VERSION]:Vi.VERSION}});var eB=V((i0)=>{Object.defineProperty(i0,"__esModule",{value:!0});i0.otperformance=i0.SDK_INFO=i0._globalThis=i0.getStringListFromEnv=i0.getNumberFromEnv=i0.getBooleanFromEnv=i0.getStringFromEnv=void 0;var JJ=rY();Object.defineProperty(i0,"getStringFromEnv",{enumerable:!0,get:function(){return JJ.getStringFromEnv}});Object.defineProperty(i0,"getBooleanFromEnv",{enumerable:!0,get:function(){return JJ.getBooleanFromEnv}});Object.defineProperty(i0,"getNumberFromEnv",{enumerable:!0,get:function(){return JJ.getNumberFromEnv}});Object.defineProperty(i0,"getStringListFromEnv",{enumerable:!0,get:function(){return JJ.getStringListFromEnv}});var Ci=Zz();Object.defineProperty(i0,"_globalThis",{enumerable:!0,get:function(){return Ci._globalThis}});var Ui=rB();Object.defineProperty(i0,"SDK_INFO",{enumerable:!0,get:function(){return Ui.SDK_INFO}});i0.otperformance=performance});var aQ=V((x0)=>{Object.defineProperty(x0,"__esModule",{value:!0});x0.getStringListFromEnv=x0.getNumberFromEnv=x0.getStringFromEnv=x0.getBooleanFromEnv=x0.otperformance=x0._globalThis=x0.SDK_INFO=void 0;var N1=eB();Object.defineProperty(x0,"SDK_INFO",{enumerable:!0,get:function(){return N1.SDK_INFO}});Object.defineProperty(x0,"_globalThis",{enumerable:!0,get:function(){return N1._globalThis}});Object.defineProperty(x0,"otperformance",{enumerable:!0,get:function(){return N1.otperformance}});Object.defineProperty(x0,"getBooleanFromEnv",{enumerable:!0,get:function(){return N1.getBooleanFromEnv}});Object.defineProperty(x0,"getStringFromEnv",{enumerable:!0,get:function(){return N1.getStringFromEnv}});Object.defineProperty(x0,"getNumberFromEnv",{enumerable:!0,get:function(){return N1.getNumberFromEnv}});Object.defineProperty(x0,"getStringListFromEnv",{enumerable:!0,get:function(){return N1.getStringListFromEnv}})});var zO=V((XO)=>{Object.defineProperty(XO,"__esModule",{value:!0});XO.addHrTimes=XO.isTimeInput=XO.isTimeInputHrTime=XO.hrTimeToMicroseconds=XO.hrTimeToMilliseconds=XO.hrTimeToNanoseconds=XO.hrTimeToTimeStamp=XO.hrTimeDuration=XO.timeInputToHrTime=XO.hrTime=XO.getTimeOrigin=XO.millisToHrTime=void 0;var QJ=aQ(),ZO=9,Di=6,Ei=Math.pow(10,Di),XJ=Math.pow(10,ZO);function pZ(Z){let X=Z/1000,z=Math.trunc(X),q=Math.round(Z%1000*Ei);return[z,q]}XO.millisToHrTime=pZ;function Ai(){return QJ.otperformance.timeOrigin}XO.getTimeOrigin=Ai;function JO(Z){let X=pZ(QJ.otperformance.timeOrigin),z=pZ(typeof Z==="number"?Z:QJ.otperformance.now());return QO(X,z)}XO.hrTime=JO;function Li(Z){if(oQ(Z))return Z;else if(typeof Z==="number")if(Z<QJ.otperformance.timeOrigin)return JO(Z);else return pZ(Z);else if(Z instanceof Date)return pZ(Z.getTime());else throw TypeError("Invalid input type")}XO.timeInputToHrTime=Li;function Ti(Z,X){let z=X[0]-Z[0],q=X[1]-Z[1];if(q<0)z-=1,q+=XJ;return[z,q]}XO.hrTimeDuration=Ti;function $i(Z){let X=ZO,z=`${"0".repeat(X)}${Z[1]}Z`,q=z.substring(z.length-X-1);return new Date(Z[0]*1000).toISOString().replace("000Z",q)}XO.hrTimeToTimeStamp=$i;function wi(Z){return Z[0]*XJ+Z[1]}XO.hrTimeToNanoseconds=wi;function Pi(Z){return Z[0]*1000+Z[1]/1e6}XO.hrTimeToMilliseconds=Pi;function Mi(Z){return Z[0]*1e6+Z[1]/1000}XO.hrTimeToMicroseconds=Mi;function oQ(Z){return Array.isArray(Z)&&Z.length===2&&typeof Z[0]==="number"&&typeof Z[1]==="number"}XO.isTimeInputHrTime=oQ;function Ri(Z){return oQ(Z)||typeof Z==="number"||Z instanceof Date}XO.isTimeInput=Ri;function QO(Z,X){let z=[Z[0]+X[0],Z[1]+X[1]];if(z[1]>=XJ)z[1]-=XJ,z[0]+=1;return z}XO.addHrTimes=QO});var WO=V((GO)=>{Object.defineProperty(GO,"__esModule",{value:!0});GO.unrefTimer=void 0;function ui(Z){if(typeof Z!=="number")Z.unref()}GO.unrefTimer=ui});var FO=V((KO)=>{Object.defineProperty(KO,"__esModule",{value:!0});KO.ExportResultCode=void 0;var li;(function(Z){Z[Z.SUCCESS=0]="SUCCESS",Z[Z.FAILED=1]="FAILED"})(li=KO.ExportResultCode||(KO.ExportResultCode={}))});var NO=V((OO)=>{Object.defineProperty(OO,"__esModule",{value:!0});OO.CompositePropagator=void 0;var HO=I();class BO{_propagators;_fields;constructor(Z={}){this._propagators=Z.propagators??[],this._fields=Array.from(new Set(this._propagators.map((X)=>typeof X.fields==="function"?X.fields():[]).reduce((X,z)=>X.concat(z),[])))}inject(Z,X,z){for(let q of this._propagators)try{q.inject(Z,X,z)}catch(G){HO.diag.warn(`Failed to inject with ${q.constructor.name}. Err: ${G.message}`)}}extract(Z,X,z){return this._propagators.reduce((q,G)=>{try{return G.extract(q,X,z)}catch(W){HO.diag.warn(`Failed to extract with ${G.constructor.name}. Err: ${W.message}`)}return q},Z)}fields(){return this._fields.slice()}}OO.CompositePropagator=BO});var IO=V((CO)=>{Object.defineProperty(CO,"__esModule",{value:!0});CO.validateValue=CO.validateKey=void 0;var rQ="[_0-9a-z-*/]",ci=`[a-z]${rQ}{0,255}`,ni=`[a-z0-9]${rQ}{0,240}@[a-z]${rQ}{0,13}`,mi=new RegExp(`^(?:${ci}|${ni})$`),gi=/^[ -~]{0,255}[!-~]$/,pi=/,|=/;function ii(Z){return mi.test(Z)}CO.validateKey=ii;function ai(Z){return gi.test(Z)&&!pi.test(Z)}CO.validateValue=ai});var eQ=V((TO)=>{Object.defineProperty(TO,"__esModule",{value:!0});TO.TraceState=void 0;var DO=IO(),EO=32,ti=512,AO=",",LO="=";class sQ{_internalState=new Map;constructor(Z){if(Z)this._parse(Z)}set(Z,X){let z=this._clone();if(z._internalState.has(Z))z._internalState.delete(Z);return z._internalState.set(Z,X),z}unset(Z){let X=this._clone();return X._internalState.delete(Z),X}get(Z){return this._internalState.get(Z)}serialize(){return this._keys().reduce((Z,X)=>{return Z.push(X+LO+this.get(X)),Z},[]).join(AO)}_parse(Z){if(Z.length>ti)return;if(this._internalState=Z.split(AO).reverse().reduce((X,z)=>{let q=z.trim(),G=q.indexOf(LO);if(G!==-1){let W=q.slice(0,G),Q=q.slice(G+1,z.length);if((0,DO.validateKey)(W)&&(0,DO.validateValue)(Q))X.set(W,Q)}return X},new Map),this._internalState.size>EO)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,EO))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new sQ;return Z._internalState=new Map(this._internalState),Z}}TO.TraceState=sQ});var hO=V((MO)=>{Object.defineProperty(MO,"__esModule",{value:!0});MO.W3CTraceContextPropagator=MO.parseTraceParent=MO.TRACE_STATE_HEADER=MO.TRACE_PARENT_HEADER=void 0;var YJ=I(),ri=mZ(),si=eQ();MO.TRACE_PARENT_HEADER="traceparent";MO.TRACE_STATE_HEADER="tracestate";var ei="00",Za="(?!ff)[\\da-f]{2}",Ja="(?![0]{32})[\\da-f]{32}",Qa="(?![0]{16})[\\da-f]{16}",Xa="[\\da-f]{2}",Ya=new RegExp(`^\\s?(${Za})-(${Ja})-(${Qa})-(${Xa})(-.*)?\\s?$`);function wO(Z){let X=Ya.exec(Z);if(!X)return null;if(X[1]==="00"&&X[5])return null;return{traceId:X[2],spanId:X[3],traceFlags:parseInt(X[4],16)}}MO.parseTraceParent=wO;class PO{inject(Z,X,z){let q=YJ.trace.getSpanContext(Z);if(!q||(0,ri.isTracingSuppressed)(Z)||!(0,YJ.isSpanContextValid)(q))return;let G=`${ei}-${q.traceId}-${q.spanId}-0${Number(q.traceFlags||YJ.TraceFlags.NONE).toString(16)}`;if(z.set(X,MO.TRACE_PARENT_HEADER,G),q.traceState)z.set(X,MO.TRACE_STATE_HEADER,q.traceState.serialize())}extract(Z,X,z){let q=z.get(X,MO.TRACE_PARENT_HEADER);if(!q)return Z;let G=Array.isArray(q)?q[0]:q;if(typeof G!=="string")return Z;let W=wO(G);if(!W)return Z;W.isRemote=!0;let Q=z.get(X,MO.TRACE_STATE_HEADER);if(Q){let J=Array.isArray(Q)?Q.join(","):Q;W.traceState=new si.TraceState(typeof J==="string"?J:void 0)}return YJ.trace.setSpanContext(Z,W)}fields(){return[MO.TRACE_PARENT_HEADER,MO.TRACE_STATE_HEADER]}}MO.W3CTraceContextPropagator=PO});var _O=V((fO)=>{Object.defineProperty(fO,"__esModule",{value:!0});fO.getRPCMetadata=fO.deleteRPCMetadata=fO.setRPCMetadata=fO.RPCType=void 0;var Ga=I(),Z4=(0,Ga.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),qa;(function(Z){Z.HTTP="http"})(qa=fO.RPCType||(fO.RPCType={}));function Wa(Z,X){return Z.setValue(Z4,X)}fO.setRPCMetadata=Wa;function Ka(Z){return Z.deleteValue(Z4)}fO.deleteRPCMetadata=Ka;function Fa(Z){return Z.getValue(Z4)}fO.getRPCMetadata=Fa});var uO=V((bO)=>{Object.defineProperty(bO,"__esModule",{value:!0});bO.isPlainObject=void 0;var Oa="[object Object]",Va="[object Null]",Na="[object Undefined]",Ca=Function.prototype,yO=Ca.toString,Ua=yO.call(Object),Ia=Object.getPrototypeOf,vO=Object.prototype,jO=vO.hasOwnProperty,C1=Symbol?Symbol.toStringTag:void 0,xO=vO.toString;function Da(Z){if(!Ea(Z)||Aa(Z)!==Oa)return!1;let X=Ia(Z);if(X===null)return!0;let z=jO.call(X,"constructor")&&X.constructor;return typeof z=="function"&&z instanceof z&&yO.call(z)===Ua}bO.isPlainObject=Da;function Ea(Z){return Z!=null&&typeof Z=="object"}function Aa(Z){if(Z==null)return Z===void 0?Na:Va;return C1&&C1 in Object(Z)?La(Z):Ta(Z)}function La(Z){let X=jO.call(Z,C1),z=Z[C1],q=!1;try{Z[C1]=void 0,q=!0}catch{}let G=xO.call(Z);if(q)if(X)Z[C1]=z;else delete Z[C1];return G}function Ta(Z){return xO.call(Z)}});var iO=V((gO)=>{Object.defineProperty(gO,"__esModule",{value:!0});gO.merge=void 0;var lO=uO(),$a=20;function wa(...Z){let X=Z.shift(),z=new WeakMap;while(Z.length>0)X=nO(X,Z.shift(),0,z);return X}gO.merge=wa;function J4(Z){if(WJ(Z))return Z.slice();return Z}function nO(Z,X,z=0,q){let G;if(z>$a)return;if(z++,qJ(Z)||qJ(X)||mO(X))G=J4(X);else if(WJ(Z)){if(G=Z.slice(),WJ(X))for(let W=0,Q=X.length;W<Q;W++)G.push(J4(X[W]));else if(iZ(X)){let W=Object.keys(X);for(let Q=0,J=W.length;Q<J;Q++){let Y=W[Q];G[Y]=J4(X[Y])}}}else if(iZ(Z))if(iZ(X)){if(!Pa(Z,X))return X;G=Object.assign({},Z);let W=Object.keys(X);for(let Q=0,J=W.length;Q<J;Q++){let Y=W[Q],K=X[Y];if(qJ(K))if(typeof K>"u")delete G[Y];else G[Y]=K;else{let F=G[Y],H=K;if(cO(Z,Y,q)||cO(X,Y,q))delete G[Y];else{if(iZ(F)&&iZ(H)){let N=q.get(F)||[],U=q.get(H)||[];N.push({obj:Z,key:Y}),U.push({obj:X,key:Y}),q.set(F,N),q.set(H,U)}G[Y]=nO(G[Y],K,z,q)}}}}else G=X;return G}function cO(Z,X,z){let q=z.get(Z[X])||[];for(let G=0,W=q.length;G<W;G++){let Q=q[G];if(Q.key===X&&Q.obj===Z)return!0}return!1}function WJ(Z){return Array.isArray(Z)}function mO(Z){return typeof Z==="function"}function iZ(Z){return!qJ(Z)&&!WJ(Z)&&!mO(Z)&&typeof Z==="object"}function qJ(Z){return typeof Z==="string"||typeof Z==="number"||typeof Z==="boolean"||typeof Z>"u"||Z instanceof Date||Z instanceof RegExp||Z===null}function Pa(Z,X){if(!(0,lO.isPlainObject)(Z)||!(0,lO.isPlainObject)(X))return!1;return!0}});var tO=V((aO)=>{Object.defineProperty(aO,"__esModule",{value:!0});aO.callWithTimeout=aO.TimeoutError=void 0;class KJ extends Error{constructor(Z){super(Z);Object.setPrototypeOf(this,KJ.prototype)}}aO.TimeoutError=KJ;function Ma(Z,X){let z,q=new Promise(function(W,Q){z=setTimeout(function(){Q(new KJ("Operation timed out."))},X)});return Promise.race([Z,q]).then((G)=>{return clearTimeout(z),G},(G)=>{throw clearTimeout(z),G})}aO.callWithTimeout=Ma});var ZV=V((sO)=>{Object.defineProperty(sO,"__esModule",{value:!0});sO.isUrlIgnored=sO.urlMatches=void 0;function rO(Z,X){if(typeof X==="string")return Z===X;else return!!Z.match(X)}sO.urlMatches=rO;function ha(Z,X){if(!X)return!1;for(let z of X)if(rO(Z,z))return!0;return!1}sO.isUrlIgnored=ha});var YV=V((QV)=>{Object.defineProperty(QV,"__esModule",{value:!0});QV.Deferred=void 0;class JV{_promise;_resolve;_reject;constructor(){this._promise=new Promise((Z,X)=>{this._resolve=Z,this._reject=X})}get promise(){return this._promise}resolve(Z){this._resolve(Z)}reject(Z){this._reject(Z)}}QV.Deferred=JV});var WV=V((GV)=>{Object.defineProperty(GV,"__esModule",{value:!0});GV.BindOnceFuture=void 0;var fa=YV();class zV{_isCalled=!1;_deferred=new fa.Deferred;_callback;_that;constructor(Z,X){this._callback=Z,this._that=X}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...Z){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...Z)).then((X)=>this._deferred.resolve(X),(X)=>this._deferred.reject(X))}catch(X){this._deferred.reject(X)}}return this._deferred.promise}}GV.BindOnceFuture=zV});var BV=V((FV)=>{Object.defineProperty(FV,"__esModule",{value:!0});FV.diagLogLevelFromString=void 0;var b0=I(),KV={ALL:b0.DiagLogLevel.ALL,VERBOSE:b0.DiagLogLevel.VERBOSE,DEBUG:b0.DiagLogLevel.DEBUG,INFO:b0.DiagLogLevel.INFO,WARN:b0.DiagLogLevel.WARN,ERROR:b0.DiagLogLevel.ERROR,NONE:b0.DiagLogLevel.NONE};function Sa(Z){if(Z==null)return;let X=KV[Z.toUpperCase()];if(X==null)return b0.diag.warn(`Unknown log level "${Z}", expected one of ${Object.keys(KV)}, using default`),b0.DiagLogLevel.INFO;return X}FV.diagLogLevelFromString=Sa});var CV=V((VV)=>{Object.defineProperty(VV,"__esModule",{value:!0});VV._export=void 0;var OV=I(),_a=mZ();function ya(Z,X){return new Promise((z)=>{OV.context.with((0,_a.suppressTracing)(OV.context.active()),()=>{Z.export(X,z)})})}VV._export=ya});var l=V(($)=>{Object.defineProperty($,"__esModule",{value:!0});$.internal=$.diagLogLevelFromString=$.BindOnceFuture=$.urlMatches=$.isUrlIgnored=$.callWithTimeout=$.TimeoutError=$.merge=$.TraceState=$.unsuppressTracing=$.suppressTracing=$.isTracingSuppressed=$.setRPCMetadata=$.getRPCMetadata=$.deleteRPCMetadata=$.RPCType=$.parseTraceParent=$.W3CTraceContextPropagator=$.TRACE_STATE_HEADER=$.TRACE_PARENT_HEADER=$.CompositePropagator=$.otperformance=$.getStringListFromEnv=$.getNumberFromEnv=$.getBooleanFromEnv=$.getStringFromEnv=$._globalThis=$.SDK_INFO=$.parseKeyPairsIntoRecord=$.ExportResultCode=$.unrefTimer=$.timeInputToHrTime=$.millisToHrTime=$.isTimeInputHrTime=$.isTimeInput=$.hrTimeToTimeStamp=$.hrTimeToNanoseconds=$.hrTimeToMilliseconds=$.hrTimeToMicroseconds=$.hrTimeDuration=$.hrTime=$.getTimeOrigin=$.addHrTimes=$.loggingErrorHandler=$.setGlobalErrorHandler=$.globalErrorHandler=$.sanitizeAttributes=$.isAttributeValue=$.AnchoredClock=$.W3CBaggagePropagator=void 0;var va=RY();Object.defineProperty($,"W3CBaggagePropagator",{enumerable:!0,get:function(){return va.W3CBaggagePropagator}});var ja=SY();Object.defineProperty($,"AnchoredClock",{enumerable:!0,get:function(){return ja.AnchoredClock}});var UV=dY();Object.defineProperty($,"isAttributeValue",{enumerable:!0,get:function(){return UV.isAttributeValue}});Object.defineProperty($,"sanitizeAttributes",{enumerable:!0,get:function(){return UV.sanitizeAttributes}});var IV=gY();Object.defineProperty($,"globalErrorHandler",{enumerable:!0,get:function(){return IV.globalErrorHandler}});Object.defineProperty($,"setGlobalErrorHandler",{enumerable:!0,get:function(){return IV.setGlobalErrorHandler}});var xa=pQ();Object.defineProperty($,"loggingErrorHandler",{enumerable:!0,get:function(){return xa.loggingErrorHandler}});var F0=zO();Object.defineProperty($,"addHrTimes",{enumerable:!0,get:function(){return F0.addHrTimes}});Object.defineProperty($,"getTimeOrigin",{enumerable:!0,get:function(){return F0.getTimeOrigin}});Object.defineProperty($,"hrTime",{enumerable:!0,get:function(){return F0.hrTime}});Object.defineProperty($,"hrTimeDuration",{enumerable:!0,get:function(){return F0.hrTimeDuration}});Object.defineProperty($,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return F0.hrTimeToMicroseconds}});Object.defineProperty($,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return F0.hrTimeToMilliseconds}});Object.defineProperty($,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return F0.hrTimeToNanoseconds}});Object.defineProperty($,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return F0.hrTimeToTimeStamp}});Object.defineProperty($,"isTimeInput",{enumerable:!0,get:function(){return F0.isTimeInput}});Object.defineProperty($,"isTimeInputHrTime",{enumerable:!0,get:function(){return F0.isTimeInputHrTime}});Object.defineProperty($,"millisToHrTime",{enumerable:!0,get:function(){return F0.millisToHrTime}});Object.defineProperty($,"timeInputToHrTime",{enumerable:!0,get:function(){return F0.timeInputToHrTime}});var ba=WO();Object.defineProperty($,"unrefTimer",{enumerable:!0,get:function(){return ba.unrefTimer}});var da=FO();Object.defineProperty($,"ExportResultCode",{enumerable:!0,get:function(){return da.ExportResultCode}});var ua=nQ();Object.defineProperty($,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return ua.parseKeyPairsIntoRecord}});var U1=aQ();Object.defineProperty($,"SDK_INFO",{enumerable:!0,get:function(){return U1.SDK_INFO}});Object.defineProperty($,"_globalThis",{enumerable:!0,get:function(){return U1._globalThis}});Object.defineProperty($,"getStringFromEnv",{enumerable:!0,get:function(){return U1.getStringFromEnv}});Object.defineProperty($,"getBooleanFromEnv",{enumerable:!0,get:function(){return U1.getBooleanFromEnv}});Object.defineProperty($,"getNumberFromEnv",{enumerable:!0,get:function(){return U1.getNumberFromEnv}});Object.defineProperty($,"getStringListFromEnv",{enumerable:!0,get:function(){return U1.getStringListFromEnv}});Object.defineProperty($,"otperformance",{enumerable:!0,get:function(){return U1.otperformance}});var la=NO();Object.defineProperty($,"CompositePropagator",{enumerable:!0,get:function(){return la.CompositePropagator}});var FJ=hO();Object.defineProperty($,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return FJ.TRACE_PARENT_HEADER}});Object.defineProperty($,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return FJ.TRACE_STATE_HEADER}});Object.defineProperty($,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return FJ.W3CTraceContextPropagator}});Object.defineProperty($,"parseTraceParent",{enumerable:!0,get:function(){return FJ.parseTraceParent}});var HJ=_O();Object.defineProperty($,"RPCType",{enumerable:!0,get:function(){return HJ.RPCType}});Object.defineProperty($,"deleteRPCMetadata",{enumerable:!0,get:function(){return HJ.deleteRPCMetadata}});Object.defineProperty($,"getRPCMetadata",{enumerable:!0,get:function(){return HJ.getRPCMetadata}});Object.defineProperty($,"setRPCMetadata",{enumerable:!0,get:function(){return HJ.setRPCMetadata}});var Q4=mZ();Object.defineProperty($,"isTracingSuppressed",{enumerable:!0,get:function(){return Q4.isTracingSuppressed}});Object.defineProperty($,"suppressTracing",{enumerable:!0,get:function(){return Q4.suppressTracing}});Object.defineProperty($,"unsuppressTracing",{enumerable:!0,get:function(){return Q4.unsuppressTracing}});var ca=eQ();Object.defineProperty($,"TraceState",{enumerable:!0,get:function(){return ca.TraceState}});var na=iO();Object.defineProperty($,"merge",{enumerable:!0,get:function(){return na.merge}});var DV=tO();Object.defineProperty($,"TimeoutError",{enumerable:!0,get:function(){return DV.TimeoutError}});Object.defineProperty($,"callWithTimeout",{enumerable:!0,get:function(){return DV.callWithTimeout}});var EV=ZV();Object.defineProperty($,"isUrlIgnored",{enumerable:!0,get:function(){return EV.isUrlIgnored}});Object.defineProperty($,"urlMatches",{enumerable:!0,get:function(){return EV.urlMatches}});var ma=WV();Object.defineProperty($,"BindOnceFuture",{enumerable:!0,get:function(){return ma.BindOnceFuture}});var ga=BV();Object.defineProperty($,"diagLogLevelFromString",{enumerable:!0,get:function(){return ga.diagLogLevelFromString}});var pa=CV();$.internal={_export:pa._export}});var $V=V((LV)=>{Object.defineProperty(LV,"__esModule",{value:!0});LV.createLoggingPartialSuccessResponseHandler=void 0;var ia=I();function aa(Z){return Object.prototype.hasOwnProperty.call(Z,"partialSuccess")}function oa(){return{handleResponse(Z){if(Z==null||!aa(Z)||Z.partialSuccess==null||Object.keys(Z.partialSuccess).length===0)return;ia.diag.warn("Received Partial Success response:",JSON.stringify(Z.partialSuccess))}}}LV.createLoggingPartialSuccessResponseHandler=oa});var X4=V((MV)=>{Object.defineProperty(MV,"__esModule",{value:!0});MV.createOtlpExportDelegate=void 0;var I1=l(),wV=e6(),ta=$V(),ra=I();class PV{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(Z,X,z,q,G){this._transport=Z,this._serializer=X,this._responseHandler=z,this._promiseQueue=q,this._timeout=G,this._diagLogger=ra.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}export(Z,X){if(this._diagLogger.debug("items to be sent",Z),this._promiseQueue.hasReachedLimit()){X({code:I1.ExportResultCode.FAILED,error:Error("Concurrent export limit reached")});return}let z=this._serializer.serializeRequest(Z);if(z==null){X({code:I1.ExportResultCode.FAILED,error:Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(z,this._timeout).then((q)=>{if(q.status==="success"){if(q.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(q.data))}catch(G){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",G,q.data)}X({code:I1.ExportResultCode.SUCCESS});return}else if(q.status==="failure"&&q.error){X({code:I1.ExportResultCode.FAILED,error:q.error});return}else if(q.status==="retryable")X({code:I1.ExportResultCode.FAILED,error:q.error??new wV.OTLPExporterError("Export failed with retryable status")});else X({code:I1.ExportResultCode.FAILED,error:new wV.OTLPExporterError("Export failed with unknown error")})},(q)=>X({code:I1.ExportResultCode.FAILED,error:q})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function sa(Z,X){return new PV(Z.transport,Z.serializer,(0,ta.createLoggingPartialSuccessResponseHandler)(),Z.promiseHandler,X.timeout)}MV.createOtlpExportDelegate=sa});var fV=V((hV)=>{Object.defineProperty(hV,"__esModule",{value:!0});hV.createOtlpNetworkExportDelegate=void 0;var ea=uQ(),Zo=X4();function Jo(Z,X,z){return(0,Zo.createOtlpExportDelegate)({transport:z,serializer:X,promiseHandler:(0,ea.createBoundedQueueExportPromiseHandler)(Z)},{timeout:Z.timeoutMillis})}hV.createOtlpNetworkExportDelegate=Jo});var BJ=V((a0)=>{Object.defineProperty(a0,"__esModule",{value:!0});a0.createOtlpNetworkExportDelegate=a0.CompressionAlgorithm=a0.getSharedConfigurationDefaults=a0.mergeOtlpSharedConfigurationWithDefaults=a0.OTLPExporterError=a0.OTLPExporterBase=void 0;var Qo=GY();Object.defineProperty(a0,"OTLPExporterBase",{enumerable:!0,get:function(){return Qo.OTLPExporterBase}});var Xo=e6();Object.defineProperty(a0,"OTLPExporterError",{enumerable:!0,get:function(){return Xo.OTLPExporterError}});var SV=nZ();Object.defineProperty(a0,"mergeOtlpSharedConfigurationWithDefaults",{enumerable:!0,get:function(){return SV.mergeOtlpSharedConfigurationWithDefaults}});Object.defineProperty(a0,"getSharedConfigurationDefaults",{enumerable:!0,get:function(){return SV.getSharedConfigurationDefaults}});var Yo=VY();Object.defineProperty(a0,"CompressionAlgorithm",{enumerable:!0,get:function(){return Yo.CompressionAlgorithm}});var zo=fV();Object.defineProperty(a0,"createOtlpNetworkExportDelegate",{enumerable:!0,get:function(){return zo.createOtlpNetworkExportDelegate}})});var yV=V((cG0,_V)=>{_V.exports=qo;function qo(Z,X){var z=Array(arguments.length-1),q=0,G=2,W=!0;while(G<arguments.length)z[q++]=arguments[G++];return new Promise(function(J,Y){z[q]=function(F){if(W)if(W=!1,F)Y(F);else{var H=Array(arguments.length-1),N=0;while(N<H.length)H[N++]=arguments[N];J.apply(null,H)}};try{Z.apply(X||null,z)}catch(K){if(W)W=!1,Y(K)}})}});var bV=V((xV)=>{var OJ=xV;OJ.length=function(X){var z=X.length;if(!z)return 0;var q=0;while(--z%4>1&&X.charAt(z)==="=")++q;return Math.ceil(X.length*3)/4-q};var QZ=Array(64),jV=Array(123);for(H0=0;H0<64;)jV[QZ[H0]=H0<26?H0+65:H0<52?H0+71:H0<62?H0-4:H0-59|43]=H0++;var H0;OJ.encode=function(X,z,q){var G=null,W=[],Q=0,J=0,Y;while(z<q){var K=X[z++];switch(J){case 0:W[Q++]=QZ[K>>2],Y=(K&3)<<4,J=1;break;case 1:W[Q++]=QZ[Y|K>>4],Y=(K&15)<<2,J=2;break;case 2:W[Q++]=QZ[Y|K>>6],W[Q++]=QZ[K&63],J=0;break}if(Q>8191)(G||(G=[])).push(String.fromCharCode.apply(String,W)),Q=0}if(J){if(W[Q++]=QZ[Y],W[Q++]=61,J===1)W[Q++]=61}if(G){if(Q)G.push(String.fromCharCode.apply(String,W.slice(0,Q)));return G.join("")}return String.fromCharCode.apply(String,W.slice(0,Q))};var vV="invalid encoding";OJ.decode=function(X,z,q){var G=q,W=0,Q;for(var J=0;J<X.length;){var Y=X.charCodeAt(J++);if(Y===61&&W>1)break;if((Y=jV[Y])===void 0)throw Error(vV);switch(W){case 0:Q=Y,W=1;break;case 1:z[q++]=Q<<2|(Y&48)>>4,Q=Y,W=2;break;case 2:z[q++]=(Q&15)<<4|(Y&60)>>2,Q=Y,W=3;break;case 3:z[q++]=(Q&3)<<6|Y,W=0;break}}if(W===1)throw Error(vV);return q-G};OJ.test=function(X){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(X)}});var uV=V((mG0,dV)=>{dV.exports=VJ;function VJ(){this._listeners={}}VJ.prototype.on=function(X,z,q){return(this._listeners[X]||(this._listeners[X]=[])).push({fn:z,ctx:q||this}),this};VJ.prototype.off=function(X,z){if(X===void 0)this._listeners={};else if(z===void 0)this._listeners[X]=[];else{var q=this._listeners[X];for(var G=0;G<q.length;)if(q[G].fn===z)q.splice(G,1);else++G}return this};VJ.prototype.emit=function(X){var z=this._listeners[X];if(z){var q=[],G=1;for(;G<arguments.length;)q.push(arguments[G++]);for(G=0;G<z.length;)z[G].fn.apply(z[G++].ctx,q)}return this}});var iV=V((gG0,pV)=>{pV.exports=lV(lV);function lV(Z){if(typeof Float32Array<"u")(function(){var X=new Float32Array([-0]),z=new Uint8Array(X.buffer),q=z[3]===128;function G(Y,K,F){X[0]=Y,K[F]=z[0],K[F+1]=z[1],K[F+2]=z[2],K[F+3]=z[3]}function W(Y,K,F){X[0]=Y,K[F]=z[3],K[F+1]=z[2],K[F+2]=z[1],K[F+3]=z[0]}Z.writeFloatLE=q?G:W,Z.writeFloatBE=q?W:G;function Q(Y,K){return z[0]=Y[K],z[1]=Y[K+1],z[2]=Y[K+2],z[3]=Y[K+3],X[0]}function J(Y,K){return z[3]=Y[K],z[2]=Y[K+1],z[1]=Y[K+2],z[0]=Y[K+3],X[0]}Z.readFloatLE=q?Q:J,Z.readFloatBE=q?J:Q})();else(function(){function X(q,G,W,Q){var J=G<0?1:0;if(J)G=-G;if(G===0)q(1/G>0?0:2147483648,W,Q);else if(isNaN(G))q(2143289344,W,Q);else if(G>340282346638528860000000000000000000000)q((J<<31|2139095040)>>>0,W,Q);else if(G<0.000000000000000000000000000000000000011754943508222875)q((J<<31|Math.round(G/0.000000000000000000000000000000000000000000001401298464324817))>>>0,W,Q);else{var Y=Math.floor(Math.log(G)/Math.LN2),K=Math.round(G*Math.pow(2,-Y)*8388608)&8388607;q((J<<31|Y+127<<23|K)>>>0,W,Q)}}Z.writeFloatLE=X.bind(null,cV),Z.writeFloatBE=X.bind(null,nV);function z(q,G,W){var Q=q(G,W),J=(Q>>31)*2+1,Y=Q>>>23&255,K=Q&8388607;return Y===255?K?NaN:J*(1/0):Y===0?J*0.000000000000000000000000000000000000000000001401298464324817*K:J*Math.pow(2,Y-150)*(K+8388608)}Z.readFloatLE=z.bind(null,mV),Z.readFloatBE=z.bind(null,gV)})();if(typeof Float64Array<"u")(function(){var X=new Float64Array([-0]),z=new Uint8Array(X.buffer),q=z[7]===128;function G(Y,K,F){X[0]=Y,K[F]=z[0],K[F+1]=z[1],K[F+2]=z[2],K[F+3]=z[3],K[F+4]=z[4],K[F+5]=z[5],K[F+6]=z[6],K[F+7]=z[7]}function W(Y,K,F){X[0]=Y,K[F]=z[7],K[F+1]=z[6],K[F+2]=z[5],K[F+3]=z[4],K[F+4]=z[3],K[F+5]=z[2],K[F+6]=z[1],K[F+7]=z[0]}Z.writeDoubleLE=q?G:W,Z.writeDoubleBE=q?W:G;function Q(Y,K){return z[0]=Y[K],z[1]=Y[K+1],z[2]=Y[K+2],z[3]=Y[K+3],z[4]=Y[K+4],z[5]=Y[K+5],z[6]=Y[K+6],z[7]=Y[K+7],X[0]}function J(Y,K){return z[7]=Y[K],z[6]=Y[K+1],z[5]=Y[K+2],z[4]=Y[K+3],z[3]=Y[K+4],z[2]=Y[K+5],z[1]=Y[K+6],z[0]=Y[K+7],X[0]}Z.readDoubleLE=q?Q:J,Z.readDoubleBE=q?J:Q})();else(function(){function X(q,G,W,Q,J,Y){var K=Q<0?1:0;if(K)Q=-Q;if(Q===0)q(0,J,Y+G),q(1/Q>0?0:2147483648,J,Y+W);else if(isNaN(Q))q(0,J,Y+G),q(2146959360,J,Y+W);else if(Q>179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)q(0,J,Y+G),q((K<<31|2146435072)>>>0,J,Y+W);else{var F;if(Q<0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000022250738585072014)F=Q/0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005,q(F>>>0,J,Y+G),q((K<<31|F/4294967296)>>>0,J,Y+W);else{var H=Math.floor(Math.log(Q)/Math.LN2);if(H===1024)H=1023;F=Q*Math.pow(2,-H),q(F*4503599627370496>>>0,J,Y+G),q((K<<31|H+1023<<20|F*1048576&1048575)>>>0,J,Y+W)}}}Z.writeDoubleLE=X.bind(null,cV,0,4),Z.writeDoubleBE=X.bind(null,nV,4,0);function z(q,G,W,Q,J){var Y=q(Q,J+G),K=q(Q,J+W),F=(K>>31)*2+1,H=K>>>20&2047,N=4294967296*(K&1048575)+Y;return H===2047?N?NaN:F*(1/0):H===0?F*0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005*N:F*Math.pow(2,H-1075)*(N+4503599627370496)}Z.readDoubleLE=z.bind(null,mV,0,4),Z.readDoubleBE=z.bind(null,gV,4,0)})();return Z}function cV(Z,X,z){X[z]=Z&255,X[z+1]=Z>>>8&255,X[z+2]=Z>>>16&255,X[z+3]=Z>>>24}function nV(Z,X,z){X[z]=Z>>>24,X[z+1]=Z>>>16&255,X[z+2]=Z>>>8&255,X[z+3]=Z&255}function mV(Z,X){return(Z[X]|Z[X+1]<<8|Z[X+2]<<16|Z[X+3]<<24)>>>0}function gV(Z,X){return(Z[X]<<24|Z[X+1]<<16|Z[X+2]<<8|Z[X+3])>>>0}});var oV=V((aV,Y4)=>{Y4.exports=Wo;function Wo(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(Z){}return null}});var rV=V((tV)=>{var z4=tV;z4.length=function(X){var z=0,q=0;for(var G=0;G<X.length;++G)if(q=X.charCodeAt(G),q<128)z+=1;else if(q<2048)z+=2;else if((q&64512)===55296&&(X.charCodeAt(G+1)&64512)===56320)++G,z+=4;else z+=3;return z};z4.read=function(X,z,q){var G=q-z;if(G<1)return"";var W=null,Q=[],J=0,Y;while(z<q){if(Y=X[z++],Y<128)Q[J++]=Y;else if(Y>191&&Y<224)Q[J++]=(Y&31)<<6|X[z++]&63;else if(Y>239&&Y<365)Y=((Y&7)<<18|(X[z++]&63)<<12|(X[z++]&63)<<6|X[z++]&63)-65536,Q[J++]=55296+(Y>>10),Q[J++]=56320+(Y&1023);else Q[J++]=(Y&15)<<12|(X[z++]&63)<<6|X[z++]&63;if(J>8191)(W||(W=[])).push(String.fromCharCode.apply(String,Q)),J=0}if(W){if(J)W.push(String.fromCharCode.apply(String,Q.slice(0,J)));return W.join("")}return String.fromCharCode.apply(String,Q.slice(0,J))};z4.write=function(X,z,q){var G=q,W,Q;for(var J=0;J<X.length;++J)if(W=X.charCodeAt(J),W<128)z[q++]=W;else if(W<2048)z[q++]=W>>6|192,z[q++]=W&63|128;else if((W&64512)===55296&&((Q=X.charCodeAt(J+1))&64512)===56320)W=65536+((W&1023)<<10)+(Q&1023),++J,z[q++]=W>>18|240,z[q++]=W>>12&63|128,z[q++]=W>>6&63|128,z[q++]=W&63|128;else z[q++]=W>>12|224,z[q++]=W>>6&63|128,z[q++]=W&63|128;return q-G}});var eV=V((iG0,sV)=>{sV.exports=Ko;function Ko(Z,X,z){var q=z||8192,G=q>>>1,W=null,Q=q;return function(Y){if(Y<1||Y>G)return Z(Y);if(Q+Y>q)W=Z(q),Q=0;var K=X.call(W,Q,Q+=Y);if(Q&7)Q=(Q|7)+1;return K}}});var JN=V((aG0,ZN)=>{ZN.exports=i;var aZ=t0();function i(Z,X){this.lo=Z>>>0,this.hi=X>>>0}var D1=i.zero=new i(0,0);D1.toNumber=function(){return 0};D1.zzEncode=D1.zzDecode=function(){return this};D1.length=function(){return 1};var Fo=i.zeroHash="\x00\x00\x00\x00\x00\x00\x00\x00";i.fromNumber=function(X){if(X===0)return D1;var z=X<0;if(z)X=-X;var q=X>>>0,G=(X-q)/4294967296>>>0;if(z){if(G=~G>>>0,q=~q>>>0,++q>4294967295){if(q=0,++G>4294967295)G=0}}return new i(q,G)};i.from=function(X){if(typeof X==="number")return i.fromNumber(X);if(aZ.isString(X))if(aZ.Long)X=aZ.Long.fromString(X);else return i.fromNumber(parseInt(X,10));return X.low||X.high?new i(X.low>>>0,X.high>>>0):D1};i.prototype.toNumber=function(X){if(!X&&this.hi>>>31){var z=~this.lo+1>>>0,q=~this.hi>>>0;if(!z)q=q+1>>>0;return-(z+q*4294967296)}return this.lo+this.hi*4294967296};i.prototype.toLong=function(X){return aZ.Long?new aZ.Long(this.lo|0,this.hi|0,Boolean(X)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(X)}};var o0=String.prototype.charCodeAt;i.fromHash=function(X){if(X===Fo)return D1;return new i((o0.call(X,0)|o0.call(X,1)<<8|o0.call(X,2)<<16|o0.call(X,3)<<24)>>>0,(o0.call(X,4)|o0.call(X,5)<<8|o0.call(X,6)<<16|o0.call(X,7)<<24)>>>0)};i.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)};i.prototype.zzEncode=function(){var X=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^X)>>>0,this.lo=(this.lo<<1^X)>>>0,this};i.prototype.zzDecode=function(){var X=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^X)>>>0,this.hi=(this.hi>>>1^X)>>>0,this};i.prototype.length=function(){var X=this.lo,z=(this.lo>>>28|this.hi<<4)>>>0,q=this.hi>>>24;return q===0?z===0?X<16384?X<128?1:2:X<2097152?3:4:z<16384?z<128?5:6:z<2097152?7:8:q<128?9:10}});var t0=V((G4)=>{var L=G4;L.asPromise=yV();L.base64=bV();L.EventEmitter=uV();L.float=iV();L.inquire=oV();L.utf8=rV();L.pool=eV();L.LongBits=JN();L.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);L.global=L.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||G4;L.emptyArray=Object.freeze?Object.freeze([]):[];L.emptyObject=Object.freeze?Object.freeze({}):{};L.isInteger=Number.isInteger||function(X){return typeof X==="number"&&isFinite(X)&&Math.floor(X)===X};L.isString=function(X){return typeof X==="string"||X instanceof String};L.isObject=function(X){return X&&typeof X==="object"};L.isset=L.isSet=function(X,z){var q=X[z];if(q!=null&&X.hasOwnProperty(z))return typeof q!=="object"||(Array.isArray(q)?q.length:Object.keys(q).length)>0;return!1};L.Buffer=function(){try{var Z=L.inquire("buffer").Buffer;return Z.prototype.utf8Write?Z:null}catch(X){return null}}();L._Buffer_from=null;L._Buffer_allocUnsafe=null;L.newBuffer=function(X){return typeof X==="number"?L.Buffer?L._Buffer_allocUnsafe(X):new L.Array(X):L.Buffer?L._Buffer_from(X):typeof Uint8Array>"u"?X:new Uint8Array(X)};L.Array=typeof Uint8Array<"u"?Uint8Array:Array;L.Long=L.global.dcodeIO&&L.global.dcodeIO.Long||L.global.Long||L.inquire("long");L.key2Re=/^true|false|0|1$/;L.key32Re=/^-?(?:0|[1-9][0-9]*)$/;L.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;L.longToHash=function(X){return X?L.LongBits.from(X).toHash():L.LongBits.zeroHash};L.longFromHash=function(X,z){var q=L.LongBits.fromHash(X);if(L.Long)return L.Long.fromBits(q.lo,q.hi,z);return q.toNumber(Boolean(z))};function QN(Z,X,z){for(var q=Object.keys(X),G=0;G<q.length;++G)if(Z[q[G]]===void 0||!z)Z[q[G]]=X[q[G]];return Z}L.merge=QN;L.lcFirst=function(X){return X.charAt(0).toLowerCase()+X.substring(1)};function XN(Z){function X(z,q){if(!(this instanceof X))return new X(z,q);if(Object.defineProperty(this,"message",{get:function(){return z}}),Error.captureStackTrace)Error.captureStackTrace(this,X);else Object.defineProperty(this,"stack",{value:Error().stack||""});if(q)QN(this,q)}return X.prototype=Object.create(Error.prototype,{constructor:{value:X,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return Z},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),X}L.newError=XN;L.ProtocolError=XN("ProtocolError");L.oneOfGetter=function(X){var z={};for(var q=0;q<X.length;++q)z[X[q]]=1;return function(){for(var G=Object.keys(this),W=G.length-1;W>-1;--W)if(z[G[W]]===1&&this[G[W]]!==void 0&&this[G[W]]!==null)return G[W]}};L.oneOfSetter=function(X){return function(z){for(var q=0;q<X.length;++q)if(X[q]!==z)delete this[X[q]]}};L.toJSONOptions={longs:String,enums:String,bytes:String,json:!0};L._configure=function(){var Z=L.Buffer;if(!Z){L._Buffer_from=L._Buffer_allocUnsafe=null;return}L._Buffer_from=Z.from!==Uint8Array.from&&Z.from||function(z,q){return new Z(z,q)},L._Buffer_allocUnsafe=Z.allocUnsafe||function(z){return new Z(z)}}});var O4=V((tG0,qN)=>{qN.exports=_;var B0=t0(),q4,NJ=B0.LongBits,YN=B0.base64,zN=B0.utf8;function oZ(Z,X,z){this.fn=Z,this.len=X,this.next=void 0,this.val=z}function K4(){}function Ho(Z){this.head=Z.head,this.tail=Z.tail,this.len=Z.len,this.next=Z.states}function _(){this.len=0,this.head=new oZ(K4,0,0),this.tail=this.head,this.states=null}var GN=function(){return B0.Buffer?function(){return(_.create=function(){return new q4})()}:function(){return new _}};_.create=GN();_.alloc=function(X){return new B0.Array(X)};if(B0.Array!==Array)_.alloc=B0.pool(_.alloc,B0.Array.prototype.subarray);_.prototype._push=function(X,z,q){return this.tail=this.tail.next=new oZ(X,z,q),this.len+=z,this};function F4(Z,X,z){X[z]=Z&255}function Bo(Z,X,z){while(Z>127)X[z++]=Z&127|128,Z>>>=7;X[z]=Z}function H4(Z,X){this.len=Z,this.next=void 0,this.val=X}H4.prototype=Object.create(oZ.prototype);H4.prototype.fn=Bo;_.prototype.uint32=function(X){return this.len+=(this.tail=this.tail.next=new H4((X=X>>>0)<128?1:X<16384?2:X<2097152?3:X<268435456?4:5,X)).len,this};_.prototype.int32=function(X){return X<0?this._push(B4,10,NJ.fromNumber(X)):this.uint32(X)};_.prototype.sint32=function(X){return this.uint32((X<<1^X>>31)>>>0)};function B4(Z,X,z){while(Z.hi)X[z++]=Z.lo&127|128,Z.lo=(Z.lo>>>7|Z.hi<<25)>>>0,Z.hi>>>=7;while(Z.lo>127)X[z++]=Z.lo&127|128,Z.lo=Z.lo>>>7;X[z++]=Z.lo}_.prototype.uint64=function(X){var z=NJ.from(X);return this._push(B4,z.length(),z)};_.prototype.int64=_.prototype.uint64;_.prototype.sint64=function(X){var z=NJ.from(X).zzEncode();return this._push(B4,z.length(),z)};_.prototype.bool=function(X){return this._push(F4,1,X?1:0)};function W4(Z,X,z){X[z]=Z&255,X[z+1]=Z>>>8&255,X[z+2]=Z>>>16&255,X[z+3]=Z>>>24}_.prototype.fixed32=function(X){return this._push(W4,4,X>>>0)};_.prototype.sfixed32=_.prototype.fixed32;_.prototype.fixed64=function(X){var z=NJ.from(X);return this._push(W4,4,z.lo)._push(W4,4,z.hi)};_.prototype.sfixed64=_.prototype.fixed64;_.prototype.float=function(X){return this._push(B0.float.writeFloatLE,4,X)};_.prototype.double=function(X){return this._push(B0.float.writeDoubleLE,8,X)};var Oo=B0.Array.prototype.set?function(X,z,q){z.set(X,q)}:function(X,z,q){for(var G=0;G<X.length;++G)z[q+G]=X[G]};_.prototype.bytes=function(X){var z=X.length>>>0;if(!z)return this._push(F4,1,0);if(B0.isString(X)){var q=_.alloc(z=YN.length(X));YN.decode(X,q,0),X=q}return this.uint32(z)._push(Oo,z,X)};_.prototype.string=function(X){var z=zN.length(X);return z?this.uint32(z)._push(zN.write,z,X):this._push(F4,1,0)};_.prototype.fork=function(){return this.states=new Ho(this),this.head=this.tail=new oZ(K4,0,0),this.len=0,this};_.prototype.reset=function(){if(this.states)this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next;else this.head=this.tail=new oZ(K4,0,0),this.len=0;return this};_.prototype.ldelim=function(){var X=this.head,z=this.tail,q=this.len;if(this.reset().uint32(q),q)this.tail.next=X.next,this.tail=z,this.len+=q;return this};_.prototype.finish=function(){var X=this.head.next,z=this.constructor.alloc(this.len),q=0;while(X)X.fn(X.val,z,q),q+=X.len,X=X.next;return z};_._configure=function(Z){q4=Z,_.create=GN(),q4._configure()}});var FN=V((rG0,KN)=>{KN.exports=P0;var WN=O4();(P0.prototype=Object.create(WN.prototype)).constructor=P0;var r0=t0();function P0(){WN.call(this)}P0._configure=function(){P0.alloc=r0._Buffer_allocUnsafe,P0.writeBytesBuffer=r0.Buffer&&r0.Buffer.prototype instanceof Uint8Array&&r0.Buffer.prototype.set.name==="set"?function(X,z,q){z.set(X,q)}:function(X,z,q){if(X.copy)X.copy(z,q,0,X.length);else for(var G=0;G<X.length;)z[q++]=X[G++]}};P0.prototype.bytes=function(X){if(r0.isString(X))X=r0._Buffer_from(X,"base64");var z=X.length>>>0;if(this.uint32(z),z)this._push(P0.writeBytesBuffer,z,X);return this};function Vo(Z,X,z){if(Z.length<40)r0.utf8.write(Z,X,z);else if(X.utf8Write)X.utf8Write(Z,z);else X.write(Z,z)}P0.prototype.string=function(X){var z=r0.Buffer.byteLength(X);if(this.uint32(z),z)this._push(Vo,z,X);return this};P0._configure()});var C4=V((sG0,NN)=>{NN.exports=c;var E0=t0(),N4,ON=E0.LongBits,No=E0.utf8;function A0(Z,X){return RangeError("index out of range: "+Z.pos+" + "+(X||1)+" > "+Z.len)}function c(Z){this.buf=Z,this.pos=0,this.len=Z.length}var HN=typeof Uint8Array<"u"?function(X){if(X instanceof Uint8Array||Array.isArray(X))return new c(X);throw Error("illegal buffer")}:function(X){if(Array.isArray(X))return new c(X);throw Error("illegal buffer")},VN=function(){return E0.Buffer?function(z){return(c.create=function(G){return E0.Buffer.isBuffer(G)?new N4(G):HN(G)})(z)}:HN};c.create=VN();c.prototype._slice=E0.Array.prototype.subarray||E0.Array.prototype.slice;c.prototype.uint32=function(){var X=4294967295;return function(){if(X=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128)return X;if(X=(X|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)return X;if(X=(X|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)return X;if(X=(X|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)return X;if(X=(X|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128)return X;if((this.pos+=5)>this.len)throw this.pos=this.len,A0(this,10);return X}}();c.prototype.int32=function(){return this.uint32()|0};c.prototype.sint32=function(){var X=this.uint32();return X>>>1^-(X&1)|0};function V4(){var Z=new ON(0,0),X=0;if(this.len-this.pos>4){for(;X<4;++X)if(Z.lo=(Z.lo|(this.buf[this.pos]&127)<<X*7)>>>0,this.buf[this.pos++]<128)return Z;if(Z.lo=(Z.lo|(this.buf[this.pos]&127)<<28)>>>0,Z.hi=(Z.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return Z;X=0}else{for(;X<3;++X){if(this.pos>=this.len)throw A0(this);if(Z.lo=(Z.lo|(this.buf[this.pos]&127)<<X*7)>>>0,this.buf[this.pos++]<128)return Z}return Z.lo=(Z.lo|(this.buf[this.pos++]&127)<<X*7)>>>0,Z}if(this.len-this.pos>4){for(;X<5;++X)if(Z.hi=(Z.hi|(this.buf[this.pos]&127)<<X*7+3)>>>0,this.buf[this.pos++]<128)return Z}else for(;X<5;++X){if(this.pos>=this.len)throw A0(this);if(Z.hi=(Z.hi|(this.buf[this.pos]&127)<<X*7+3)>>>0,this.buf[this.pos++]<128)return Z}throw Error("invalid varint encoding")}c.prototype.bool=function(){return this.uint32()!==0};function CJ(Z,X){return(Z[X-4]|Z[X-3]<<8|Z[X-2]<<16|Z[X-1]<<24)>>>0}c.prototype.fixed32=function(){if(this.pos+4>this.len)throw A0(this,4);return CJ(this.buf,this.pos+=4)};c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw A0(this,4);return CJ(this.buf,this.pos+=4)|0};function BN(){if(this.pos+8>this.len)throw A0(this,8);return new ON(CJ(this.buf,this.pos+=4),CJ(this.buf,this.pos+=4))}c.prototype.float=function(){if(this.pos+4>this.len)throw A0(this,4);var X=E0.float.readFloatLE(this.buf,this.pos);return this.pos+=4,X};c.prototype.double=function(){if(this.pos+8>this.len)throw A0(this,4);var X=E0.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,X};c.prototype.bytes=function(){var X=this.uint32(),z=this.pos,q=this.pos+X;if(q>this.len)throw A0(this,X);if(this.pos+=X,Array.isArray(this.buf))return this.buf.slice(z,q);if(z===q){var G=E0.Buffer;return G?G.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,z,q)};c.prototype.string=function(){var X=this.bytes();return No.read(X,0,X.length)};c.prototype.skip=function(X){if(typeof X==="number"){if(this.pos+X>this.len)throw A0(this,X);this.pos+=X}else do if(this.pos>=this.len)throw A0(this);while(this.buf[this.pos++]&128);return this};c.prototype.skipType=function(Z){switch(Z){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:while((Z=this.uint32()&7)!==4)this.skipType(Z);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+Z+" at offset "+this.pos)}return this};c._configure=function(Z){N4=Z,c.create=VN(),N4._configure();var X=E0.Long?"toLong":"toNumber";E0.merge(c.prototype,{int64:function(){return V4.call(this)[X](!1)},uint64:function(){return V4.call(this)[X](!0)},sint64:function(){return V4.call(this).zzDecode()[X](!1)},fixed64:function(){return BN.call(this)[X](!0)},sfixed64:function(){return BN.call(this)[X](!1)}})}});var DN=V((eG0,IN)=>{IN.exports=E1;var UN=C4();(E1.prototype=Object.create(UN.prototype)).constructor=E1;var CN=t0();function E1(Z){UN.call(this,Z)}E1._configure=function(){if(CN.Buffer)E1.prototype._slice=CN.Buffer.prototype.slice};E1.prototype.string=function(){var X=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+X,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+X,this.len))};E1._configure()});var AN=V((Zq0,EN)=>{EN.exports=tZ;var U4=t0();(tZ.prototype=Object.create(U4.EventEmitter.prototype)).constructor=tZ;function tZ(Z,X,z){if(typeof Z!=="function")throw TypeError("rpcImpl must be a function");U4.EventEmitter.call(this),this.rpcImpl=Z,this.requestDelimited=Boolean(X),this.responseDelimited=Boolean(z)}tZ.prototype.rpcCall=function Z(X,z,q,G,W){if(!G)throw TypeError("request must be specified");var Q=this;if(!W)return U4.asPromise(Z,Q,X,z,q,G);if(!Q.rpcImpl){setTimeout(function(){W(Error("already ended"))},0);return}try{return Q.rpcImpl(X,z[Q.requestDelimited?"encodeDelimited":"encode"](G).finish(),function(Y,K){if(Y)return Q.emit("error",Y,X),W(Y);if(K===null){Q.end(!0);return}if(!(K instanceof q))try{K=q[Q.responseDelimited?"decodeDelimited":"decode"](K)}catch(F){return Q.emit("error",F,X),W(F)}return Q.emit("data",K,X),W(null,K)})}catch(J){Q.emit("error",J,X),setTimeout(function(){W(J)},0);return}};tZ.prototype.end=function(X){if(this.rpcImpl){if(!X)this.rpcImpl(null,null,null);this.rpcImpl=null,this.emit("end").off()}return this}});var TN=V((LN)=>{var Co=LN;Co.Service=AN()});var wN=V((Qq0,$N)=>{$N.exports={}});var RN=V((MN)=>{var X0=MN;X0.build="minimal";X0.Writer=O4();X0.BufferWriter=FN();X0.Reader=C4();X0.BufferReader=DN();X0.util=t0();X0.rpc=TN();X0.roots=wN();X0.configure=PN;function PN(){X0.util._configure(),X0.Writer._configure(X0.BufferWriter),X0.Reader._configure(X0.BufferReader)}PN()});var UJ=V((hN,kN)=>{Object.defineProperty(hN,"__esModule",{value:!0});var T=RN(),C=T.Reader,R=T.Writer,O=T.util,B=T.roots.default||(T.roots.default={});B.opentelemetry=function(){var Z={};return Z.proto=function(){var X={};return X.common=function(){var z={};return z.v1=function(){var q={};return q.AnyValue=function(){function G(Q){if(Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}G.prototype.stringValue=null,G.prototype.boolValue=null,G.prototype.intValue=null,G.prototype.doubleValue=null,G.prototype.arrayValue=null,G.prototype.kvlistValue=null,G.prototype.bytesValue=null;var W;return Object.defineProperty(G.prototype,"value",{get:O.oneOfGetter(W=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:O.oneOfSetter(W)}),G.create=function(J){return new G(J)},G.encode=function(J,Y){if(!Y)Y=R.create();if(J.stringValue!=null&&Object.hasOwnProperty.call(J,"stringValue"))Y.uint32(10).string(J.stringValue);if(J.boolValue!=null&&Object.hasOwnProperty.call(J,"boolValue"))Y.uint32(16).bool(J.boolValue);if(J.intValue!=null&&Object.hasOwnProperty.call(J,"intValue"))Y.uint32(24).int64(J.intValue);if(J.doubleValue!=null&&Object.hasOwnProperty.call(J,"doubleValue"))Y.uint32(33).double(J.doubleValue);if(J.arrayValue!=null&&Object.hasOwnProperty.call(J,"arrayValue"))B.opentelemetry.proto.common.v1.ArrayValue.encode(J.arrayValue,Y.uint32(42).fork()).ldelim();if(J.kvlistValue!=null&&Object.hasOwnProperty.call(J,"kvlistValue"))B.opentelemetry.proto.common.v1.KeyValueList.encode(J.kvlistValue,Y.uint32(50).fork()).ldelim();if(J.bytesValue!=null&&Object.hasOwnProperty.call(J,"bytesValue"))Y.uint32(58).bytes(J.bytesValue);return Y},G.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},G.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.common.v1.AnyValue;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.stringValue=J.string();break}case 2:{H.boolValue=J.bool();break}case 3:{H.intValue=J.int64();break}case 4:{H.doubleValue=J.double();break}case 5:{H.arrayValue=B.opentelemetry.proto.common.v1.ArrayValue.decode(J,J.uint32());break}case 6:{H.kvlistValue=B.opentelemetry.proto.common.v1.KeyValueList.decode(J,J.uint32());break}case 7:{H.bytesValue=J.bytes();break}default:J.skipType(N&7);break}}return H},G.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},G.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";var Y={};if(J.stringValue!=null&&J.hasOwnProperty("stringValue")){if(Y.value=1,!O.isString(J.stringValue))return"stringValue: string expected"}if(J.boolValue!=null&&J.hasOwnProperty("boolValue")){if(Y.value===1)return"value: multiple values";if(Y.value=1,typeof J.boolValue!=="boolean")return"boolValue: boolean expected"}if(J.intValue!=null&&J.hasOwnProperty("intValue")){if(Y.value===1)return"value: multiple values";if(Y.value=1,!O.isInteger(J.intValue)&&!(J.intValue&&O.isInteger(J.intValue.low)&&O.isInteger(J.intValue.high)))return"intValue: integer|Long expected"}if(J.doubleValue!=null&&J.hasOwnProperty("doubleValue")){if(Y.value===1)return"value: multiple values";if(Y.value=1,typeof J.doubleValue!=="number")return"doubleValue: number expected"}if(J.arrayValue!=null&&J.hasOwnProperty("arrayValue")){if(Y.value===1)return"value: multiple values";Y.value=1;{var K=B.opentelemetry.proto.common.v1.ArrayValue.verify(J.arrayValue);if(K)return"arrayValue."+K}}if(J.kvlistValue!=null&&J.hasOwnProperty("kvlistValue")){if(Y.value===1)return"value: multiple values";Y.value=1;{var K=B.opentelemetry.proto.common.v1.KeyValueList.verify(J.kvlistValue);if(K)return"kvlistValue."+K}}if(J.bytesValue!=null&&J.hasOwnProperty("bytesValue")){if(Y.value===1)return"value: multiple values";if(Y.value=1,!(J.bytesValue&&typeof J.bytesValue.length==="number"||O.isString(J.bytesValue)))return"bytesValue: buffer expected"}return null},G.fromObject=function(J){if(J instanceof B.opentelemetry.proto.common.v1.AnyValue)return J;var Y=new B.opentelemetry.proto.common.v1.AnyValue;if(J.stringValue!=null)Y.stringValue=String(J.stringValue);if(J.boolValue!=null)Y.boolValue=Boolean(J.boolValue);if(J.intValue!=null){if(O.Long)(Y.intValue=O.Long.fromValue(J.intValue)).unsigned=!1;else if(typeof J.intValue==="string")Y.intValue=parseInt(J.intValue,10);else if(typeof J.intValue==="number")Y.intValue=J.intValue;else if(typeof J.intValue==="object")Y.intValue=new O.LongBits(J.intValue.low>>>0,J.intValue.high>>>0).toNumber()}if(J.doubleValue!=null)Y.doubleValue=Number(J.doubleValue);if(J.arrayValue!=null){if(typeof J.arrayValue!=="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");Y.arrayValue=B.opentelemetry.proto.common.v1.ArrayValue.fromObject(J.arrayValue)}if(J.kvlistValue!=null){if(typeof J.kvlistValue!=="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");Y.kvlistValue=B.opentelemetry.proto.common.v1.KeyValueList.fromObject(J.kvlistValue)}if(J.bytesValue!=null){if(typeof J.bytesValue==="string")O.base64.decode(J.bytesValue,Y.bytesValue=O.newBuffer(O.base64.length(J.bytesValue)),0);else if(J.bytesValue.length>=0)Y.bytesValue=J.bytesValue}return Y},G.toObject=function(J,Y){if(!Y)Y={};var K={};if(J.stringValue!=null&&J.hasOwnProperty("stringValue")){if(K.stringValue=J.stringValue,Y.oneofs)K.value="stringValue"}if(J.boolValue!=null&&J.hasOwnProperty("boolValue")){if(K.boolValue=J.boolValue,Y.oneofs)K.value="boolValue"}if(J.intValue!=null&&J.hasOwnProperty("intValue")){if(typeof J.intValue==="number")K.intValue=Y.longs===String?String(J.intValue):J.intValue;else K.intValue=Y.longs===String?O.Long.prototype.toString.call(J.intValue):Y.longs===Number?new O.LongBits(J.intValue.low>>>0,J.intValue.high>>>0).toNumber():J.intValue;if(Y.oneofs)K.value="intValue"}if(J.doubleValue!=null&&J.hasOwnProperty("doubleValue")){if(K.doubleValue=Y.json&&!isFinite(J.doubleValue)?String(J.doubleValue):J.doubleValue,Y.oneofs)K.value="doubleValue"}if(J.arrayValue!=null&&J.hasOwnProperty("arrayValue")){if(K.arrayValue=B.opentelemetry.proto.common.v1.ArrayValue.toObject(J.arrayValue,Y),Y.oneofs)K.value="arrayValue"}if(J.kvlistValue!=null&&J.hasOwnProperty("kvlistValue")){if(K.kvlistValue=B.opentelemetry.proto.common.v1.KeyValueList.toObject(J.kvlistValue,Y),Y.oneofs)K.value="kvlistValue"}if(J.bytesValue!=null&&J.hasOwnProperty("bytesValue")){if(K.bytesValue=Y.bytes===String?O.base64.encode(J.bytesValue,0,J.bytesValue.length):Y.bytes===Array?Array.prototype.slice.call(J.bytesValue):J.bytesValue,Y.oneofs)K.value="bytesValue"}return K},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.common.v1.AnyValue"},G}(),q.ArrayValue=function(){function G(W){if(this.values=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.values=O.emptyArray,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.values!=null&&Q.values.length)for(var Y=0;Y<Q.values.length;++Y)B.opentelemetry.proto.common.v1.AnyValue.encode(Q.values[Y],J.uint32(10).fork()).ldelim();return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.common.v1.ArrayValue;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.values&&F.values.length))F.values=[];F.values.push(B.opentelemetry.proto.common.v1.AnyValue.decode(Q,Q.uint32()));break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.values!=null&&Q.hasOwnProperty("values")){if(!Array.isArray(Q.values))return"values: array expected";for(var J=0;J<Q.values.length;++J){var Y=B.opentelemetry.proto.common.v1.AnyValue.verify(Q.values[J]);if(Y)return"values."+Y}}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.common.v1.ArrayValue)return Q;var J=new B.opentelemetry.proto.common.v1.ArrayValue;if(Q.values){if(!Array.isArray(Q.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");J.values=[];for(var Y=0;Y<Q.values.length;++Y){if(typeof Q.values[Y]!=="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");J.values[Y]=B.opentelemetry.proto.common.v1.AnyValue.fromObject(Q.values[Y])}}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.values=[];if(Q.values&&Q.values.length){Y.values=[];for(var K=0;K<Q.values.length;++K)Y.values[K]=B.opentelemetry.proto.common.v1.AnyValue.toObject(Q.values[K],J)}return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.common.v1.ArrayValue"},G}(),q.KeyValueList=function(){function G(W){if(this.values=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.values=O.emptyArray,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.values!=null&&Q.values.length)for(var Y=0;Y<Q.values.length;++Y)B.opentelemetry.proto.common.v1.KeyValue.encode(Q.values[Y],J.uint32(10).fork()).ldelim();return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.common.v1.KeyValueList;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.values&&F.values.length))F.values=[];F.values.push(B.opentelemetry.proto.common.v1.KeyValue.decode(Q,Q.uint32()));break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.values!=null&&Q.hasOwnProperty("values")){if(!Array.isArray(Q.values))return"values: array expected";for(var J=0;J<Q.values.length;++J){var Y=B.opentelemetry.proto.common.v1.KeyValue.verify(Q.values[J]);if(Y)return"values."+Y}}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.common.v1.KeyValueList)return Q;var J=new B.opentelemetry.proto.common.v1.KeyValueList;if(Q.values){if(!Array.isArray(Q.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");J.values=[];for(var Y=0;Y<Q.values.length;++Y){if(typeof Q.values[Y]!=="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");J.values[Y]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(Q.values[Y])}}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.values=[];if(Q.values&&Q.values.length){Y.values=[];for(var K=0;K<Q.values.length;++K)Y.values[K]=B.opentelemetry.proto.common.v1.KeyValue.toObject(Q.values[K],J)}return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.common.v1.KeyValueList"},G}(),q.KeyValue=function(){function G(W){if(W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.key=null,G.prototype.value=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.key!=null&&Object.hasOwnProperty.call(Q,"key"))J.uint32(10).string(Q.key);if(Q.value!=null&&Object.hasOwnProperty.call(Q,"value"))B.opentelemetry.proto.common.v1.AnyValue.encode(Q.value,J.uint32(18).fork()).ldelim();return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.common.v1.KeyValue;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.key=Q.string();break}case 2:{F.value=B.opentelemetry.proto.common.v1.AnyValue.decode(Q,Q.uint32());break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.key!=null&&Q.hasOwnProperty("key")){if(!O.isString(Q.key))return"key: string expected"}if(Q.value!=null&&Q.hasOwnProperty("value")){var J=B.opentelemetry.proto.common.v1.AnyValue.verify(Q.value);if(J)return"value."+J}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.common.v1.KeyValue)return Q;var J=new B.opentelemetry.proto.common.v1.KeyValue;if(Q.key!=null)J.key=String(Q.key);if(Q.value!=null){if(typeof Q.value!=="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");J.value=B.opentelemetry.proto.common.v1.AnyValue.fromObject(Q.value)}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.defaults)Y.key="",Y.value=null;if(Q.key!=null&&Q.hasOwnProperty("key"))Y.key=Q.key;if(Q.value!=null&&Q.hasOwnProperty("value"))Y.value=B.opentelemetry.proto.common.v1.AnyValue.toObject(Q.value,J);return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.common.v1.KeyValue"},G}(),q.InstrumentationScope=function(){function G(W){if(this.attributes=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.name=null,G.prototype.version=null,G.prototype.attributes=O.emptyArray,G.prototype.droppedAttributesCount=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.name!=null&&Object.hasOwnProperty.call(Q,"name"))J.uint32(10).string(Q.name);if(Q.version!=null&&Object.hasOwnProperty.call(Q,"version"))J.uint32(18).string(Q.version);if(Q.attributes!=null&&Q.attributes.length)for(var Y=0;Y<Q.attributes.length;++Y)B.opentelemetry.proto.common.v1.KeyValue.encode(Q.attributes[Y],J.uint32(26).fork()).ldelim();if(Q.droppedAttributesCount!=null&&Object.hasOwnProperty.call(Q,"droppedAttributesCount"))J.uint32(32).uint32(Q.droppedAttributesCount);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.common.v1.InstrumentationScope;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.name=Q.string();break}case 2:{F.version=Q.string();break}case 3:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(Q,Q.uint32()));break}case 4:{F.droppedAttributesCount=Q.uint32();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.name!=null&&Q.hasOwnProperty("name")){if(!O.isString(Q.name))return"name: string expected"}if(Q.version!=null&&Q.hasOwnProperty("version")){if(!O.isString(Q.version))return"version: string expected"}if(Q.attributes!=null&&Q.hasOwnProperty("attributes")){if(!Array.isArray(Q.attributes))return"attributes: array expected";for(var J=0;J<Q.attributes.length;++J){var Y=B.opentelemetry.proto.common.v1.KeyValue.verify(Q.attributes[J]);if(Y)return"attributes."+Y}}if(Q.droppedAttributesCount!=null&&Q.hasOwnProperty("droppedAttributesCount")){if(!O.isInteger(Q.droppedAttributesCount))return"droppedAttributesCount: integer expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.common.v1.InstrumentationScope)return Q;var J=new B.opentelemetry.proto.common.v1.InstrumentationScope;if(Q.name!=null)J.name=String(Q.name);if(Q.version!=null)J.version=String(Q.version);if(Q.attributes){if(!Array.isArray(Q.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");J.attributes=[];for(var Y=0;Y<Q.attributes.length;++Y){if(typeof Q.attributes[Y]!=="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");J.attributes[Y]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(Q.attributes[Y])}}if(Q.droppedAttributesCount!=null)J.droppedAttributesCount=Q.droppedAttributesCount>>>0;return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.attributes=[];if(J.defaults)Y.name="",Y.version="",Y.droppedAttributesCount=0;if(Q.name!=null&&Q.hasOwnProperty("name"))Y.name=Q.name;if(Q.version!=null&&Q.hasOwnProperty("version"))Y.version=Q.version;if(Q.attributes&&Q.attributes.length){Y.attributes=[];for(var K=0;K<Q.attributes.length;++K)Y.attributes[K]=B.opentelemetry.proto.common.v1.KeyValue.toObject(Q.attributes[K],J)}if(Q.droppedAttributesCount!=null&&Q.hasOwnProperty("droppedAttributesCount"))Y.droppedAttributesCount=Q.droppedAttributesCount;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.common.v1.InstrumentationScope"},G}(),q.EntityRef=function(){function G(W){if(this.idKeys=[],this.descriptionKeys=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.schemaUrl=null,G.prototype.type=null,G.prototype.idKeys=O.emptyArray,G.prototype.descriptionKeys=O.emptyArray,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.schemaUrl!=null&&Object.hasOwnProperty.call(Q,"schemaUrl"))J.uint32(10).string(Q.schemaUrl);if(Q.type!=null&&Object.hasOwnProperty.call(Q,"type"))J.uint32(18).string(Q.type);if(Q.idKeys!=null&&Q.idKeys.length)for(var Y=0;Y<Q.idKeys.length;++Y)J.uint32(26).string(Q.idKeys[Y]);if(Q.descriptionKeys!=null&&Q.descriptionKeys.length)for(var Y=0;Y<Q.descriptionKeys.length;++Y)J.uint32(34).string(Q.descriptionKeys[Y]);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.common.v1.EntityRef;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.schemaUrl=Q.string();break}case 2:{F.type=Q.string();break}case 3:{if(!(F.idKeys&&F.idKeys.length))F.idKeys=[];F.idKeys.push(Q.string());break}case 4:{if(!(F.descriptionKeys&&F.descriptionKeys.length))F.descriptionKeys=[];F.descriptionKeys.push(Q.string());break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl")){if(!O.isString(Q.schemaUrl))return"schemaUrl: string expected"}if(Q.type!=null&&Q.hasOwnProperty("type")){if(!O.isString(Q.type))return"type: string expected"}if(Q.idKeys!=null&&Q.hasOwnProperty("idKeys")){if(!Array.isArray(Q.idKeys))return"idKeys: array expected";for(var J=0;J<Q.idKeys.length;++J)if(!O.isString(Q.idKeys[J]))return"idKeys: string[] expected"}if(Q.descriptionKeys!=null&&Q.hasOwnProperty("descriptionKeys")){if(!Array.isArray(Q.descriptionKeys))return"descriptionKeys: array expected";for(var J=0;J<Q.descriptionKeys.length;++J)if(!O.isString(Q.descriptionKeys[J]))return"descriptionKeys: string[] expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.common.v1.EntityRef)return Q;var J=new B.opentelemetry.proto.common.v1.EntityRef;if(Q.schemaUrl!=null)J.schemaUrl=String(Q.schemaUrl);if(Q.type!=null)J.type=String(Q.type);if(Q.idKeys){if(!Array.isArray(Q.idKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.idKeys: array expected");J.idKeys=[];for(var Y=0;Y<Q.idKeys.length;++Y)J.idKeys[Y]=String(Q.idKeys[Y])}if(Q.descriptionKeys){if(!Array.isArray(Q.descriptionKeys))throw TypeError(".opentelemetry.proto.common.v1.EntityRef.descriptionKeys: array expected");J.descriptionKeys=[];for(var Y=0;Y<Q.descriptionKeys.length;++Y)J.descriptionKeys[Y]=String(Q.descriptionKeys[Y])}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.idKeys=[],Y.descriptionKeys=[];if(J.defaults)Y.schemaUrl="",Y.type="";if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl"))Y.schemaUrl=Q.schemaUrl;if(Q.type!=null&&Q.hasOwnProperty("type"))Y.type=Q.type;if(Q.idKeys&&Q.idKeys.length){Y.idKeys=[];for(var K=0;K<Q.idKeys.length;++K)Y.idKeys[K]=Q.idKeys[K]}if(Q.descriptionKeys&&Q.descriptionKeys.length){Y.descriptionKeys=[];for(var K=0;K<Q.descriptionKeys.length;++K)Y.descriptionKeys[K]=Q.descriptionKeys[K]}return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.common.v1.EntityRef"},G}(),q}(),z}(),X.resource=function(){var z={};return z.v1=function(){var q={};return q.Resource=function(){function G(W){if(this.attributes=[],this.entityRefs=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.attributes=O.emptyArray,G.prototype.droppedAttributesCount=null,G.prototype.entityRefs=O.emptyArray,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.attributes!=null&&Q.attributes.length)for(var Y=0;Y<Q.attributes.length;++Y)B.opentelemetry.proto.common.v1.KeyValue.encode(Q.attributes[Y],J.uint32(10).fork()).ldelim();if(Q.droppedAttributesCount!=null&&Object.hasOwnProperty.call(Q,"droppedAttributesCount"))J.uint32(16).uint32(Q.droppedAttributesCount);if(Q.entityRefs!=null&&Q.entityRefs.length)for(var Y=0;Y<Q.entityRefs.length;++Y)B.opentelemetry.proto.common.v1.EntityRef.encode(Q.entityRefs[Y],J.uint32(26).fork()).ldelim();return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.resource.v1.Resource;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(Q,Q.uint32()));break}case 2:{F.droppedAttributesCount=Q.uint32();break}case 3:{if(!(F.entityRefs&&F.entityRefs.length))F.entityRefs=[];F.entityRefs.push(B.opentelemetry.proto.common.v1.EntityRef.decode(Q,Q.uint32()));break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.attributes!=null&&Q.hasOwnProperty("attributes")){if(!Array.isArray(Q.attributes))return"attributes: array expected";for(var J=0;J<Q.attributes.length;++J){var Y=B.opentelemetry.proto.common.v1.KeyValue.verify(Q.attributes[J]);if(Y)return"attributes."+Y}}if(Q.droppedAttributesCount!=null&&Q.hasOwnProperty("droppedAttributesCount")){if(!O.isInteger(Q.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(Q.entityRefs!=null&&Q.hasOwnProperty("entityRefs")){if(!Array.isArray(Q.entityRefs))return"entityRefs: array expected";for(var J=0;J<Q.entityRefs.length;++J){var Y=B.opentelemetry.proto.common.v1.EntityRef.verify(Q.entityRefs[J]);if(Y)return"entityRefs."+Y}}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.resource.v1.Resource)return Q;var J=new B.opentelemetry.proto.resource.v1.Resource;if(Q.attributes){if(!Array.isArray(Q.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");J.attributes=[];for(var Y=0;Y<Q.attributes.length;++Y){if(typeof Q.attributes[Y]!=="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");J.attributes[Y]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(Q.attributes[Y])}}if(Q.droppedAttributesCount!=null)J.droppedAttributesCount=Q.droppedAttributesCount>>>0;if(Q.entityRefs){if(!Array.isArray(Q.entityRefs))throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: array expected");J.entityRefs=[];for(var Y=0;Y<Q.entityRefs.length;++Y){if(typeof Q.entityRefs[Y]!=="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.entityRefs: object expected");J.entityRefs[Y]=B.opentelemetry.proto.common.v1.EntityRef.fromObject(Q.entityRefs[Y])}}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.attributes=[],Y.entityRefs=[];if(J.defaults)Y.droppedAttributesCount=0;if(Q.attributes&&Q.attributes.length){Y.attributes=[];for(var K=0;K<Q.attributes.length;++K)Y.attributes[K]=B.opentelemetry.proto.common.v1.KeyValue.toObject(Q.attributes[K],J)}if(Q.droppedAttributesCount!=null&&Q.hasOwnProperty("droppedAttributesCount"))Y.droppedAttributesCount=Q.droppedAttributesCount;if(Q.entityRefs&&Q.entityRefs.length){Y.entityRefs=[];for(var K=0;K<Q.entityRefs.length;++K)Y.entityRefs[K]=B.opentelemetry.proto.common.v1.EntityRef.toObject(Q.entityRefs[K],J)}return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.resource.v1.Resource"},G}(),q}(),z}(),X.trace=function(){var z={};return z.v1=function(){var q={};return q.TracesData=function(){function G(W){if(this.resourceSpans=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.resourceSpans=O.emptyArray,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.resourceSpans!=null&&Q.resourceSpans.length)for(var Y=0;Y<Q.resourceSpans.length;++Y)B.opentelemetry.proto.trace.v1.ResourceSpans.encode(Q.resourceSpans[Y],J.uint32(10).fork()).ldelim();return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.trace.v1.TracesData;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.resourceSpans&&F.resourceSpans.length))F.resourceSpans=[];F.resourceSpans.push(B.opentelemetry.proto.trace.v1.ResourceSpans.decode(Q,Q.uint32()));break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.resourceSpans!=null&&Q.hasOwnProperty("resourceSpans")){if(!Array.isArray(Q.resourceSpans))return"resourceSpans: array expected";for(var J=0;J<Q.resourceSpans.length;++J){var Y=B.opentelemetry.proto.trace.v1.ResourceSpans.verify(Q.resourceSpans[J]);if(Y)return"resourceSpans."+Y}}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.trace.v1.TracesData)return Q;var J=new B.opentelemetry.proto.trace.v1.TracesData;if(Q.resourceSpans){if(!Array.isArray(Q.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");J.resourceSpans=[];for(var Y=0;Y<Q.resourceSpans.length;++Y){if(typeof Q.resourceSpans[Y]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");J.resourceSpans[Y]=B.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(Q.resourceSpans[Y])}}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.resourceSpans=[];if(Q.resourceSpans&&Q.resourceSpans.length){Y.resourceSpans=[];for(var K=0;K<Q.resourceSpans.length;++K)Y.resourceSpans[K]=B.opentelemetry.proto.trace.v1.ResourceSpans.toObject(Q.resourceSpans[K],J)}return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.trace.v1.TracesData"},G}(),q.ResourceSpans=function(){function G(W){if(this.scopeSpans=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.resource=null,G.prototype.scopeSpans=O.emptyArray,G.prototype.schemaUrl=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.resource!=null&&Object.hasOwnProperty.call(Q,"resource"))B.opentelemetry.proto.resource.v1.Resource.encode(Q.resource,J.uint32(10).fork()).ldelim();if(Q.scopeSpans!=null&&Q.scopeSpans.length)for(var Y=0;Y<Q.scopeSpans.length;++Y)B.opentelemetry.proto.trace.v1.ScopeSpans.encode(Q.scopeSpans[Y],J.uint32(18).fork()).ldelim();if(Q.schemaUrl!=null&&Object.hasOwnProperty.call(Q,"schemaUrl"))J.uint32(26).string(Q.schemaUrl);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.trace.v1.ResourceSpans;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.resource=B.opentelemetry.proto.resource.v1.Resource.decode(Q,Q.uint32());break}case 2:{if(!(F.scopeSpans&&F.scopeSpans.length))F.scopeSpans=[];F.scopeSpans.push(B.opentelemetry.proto.trace.v1.ScopeSpans.decode(Q,Q.uint32()));break}case 3:{F.schemaUrl=Q.string();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.resource!=null&&Q.hasOwnProperty("resource")){var J=B.opentelemetry.proto.resource.v1.Resource.verify(Q.resource);if(J)return"resource."+J}if(Q.scopeSpans!=null&&Q.hasOwnProperty("scopeSpans")){if(!Array.isArray(Q.scopeSpans))return"scopeSpans: array expected";for(var Y=0;Y<Q.scopeSpans.length;++Y){var J=B.opentelemetry.proto.trace.v1.ScopeSpans.verify(Q.scopeSpans[Y]);if(J)return"scopeSpans."+J}}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl")){if(!O.isString(Q.schemaUrl))return"schemaUrl: string expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.trace.v1.ResourceSpans)return Q;var J=new B.opentelemetry.proto.trace.v1.ResourceSpans;if(Q.resource!=null){if(typeof Q.resource!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");J.resource=B.opentelemetry.proto.resource.v1.Resource.fromObject(Q.resource)}if(Q.scopeSpans){if(!Array.isArray(Q.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");J.scopeSpans=[];for(var Y=0;Y<Q.scopeSpans.length;++Y){if(typeof Q.scopeSpans[Y]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");J.scopeSpans[Y]=B.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(Q.scopeSpans[Y])}}if(Q.schemaUrl!=null)J.schemaUrl=String(Q.schemaUrl);return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.scopeSpans=[];if(J.defaults)Y.resource=null,Y.schemaUrl="";if(Q.resource!=null&&Q.hasOwnProperty("resource"))Y.resource=B.opentelemetry.proto.resource.v1.Resource.toObject(Q.resource,J);if(Q.scopeSpans&&Q.scopeSpans.length){Y.scopeSpans=[];for(var K=0;K<Q.scopeSpans.length;++K)Y.scopeSpans[K]=B.opentelemetry.proto.trace.v1.ScopeSpans.toObject(Q.scopeSpans[K],J)}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl"))Y.schemaUrl=Q.schemaUrl;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.trace.v1.ResourceSpans"},G}(),q.ScopeSpans=function(){function G(W){if(this.spans=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.scope=null,G.prototype.spans=O.emptyArray,G.prototype.schemaUrl=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.scope!=null&&Object.hasOwnProperty.call(Q,"scope"))B.opentelemetry.proto.common.v1.InstrumentationScope.encode(Q.scope,J.uint32(10).fork()).ldelim();if(Q.spans!=null&&Q.spans.length)for(var Y=0;Y<Q.spans.length;++Y)B.opentelemetry.proto.trace.v1.Span.encode(Q.spans[Y],J.uint32(18).fork()).ldelim();if(Q.schemaUrl!=null&&Object.hasOwnProperty.call(Q,"schemaUrl"))J.uint32(26).string(Q.schemaUrl);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.trace.v1.ScopeSpans;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.scope=B.opentelemetry.proto.common.v1.InstrumentationScope.decode(Q,Q.uint32());break}case 2:{if(!(F.spans&&F.spans.length))F.spans=[];F.spans.push(B.opentelemetry.proto.trace.v1.Span.decode(Q,Q.uint32()));break}case 3:{F.schemaUrl=Q.string();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.scope!=null&&Q.hasOwnProperty("scope")){var J=B.opentelemetry.proto.common.v1.InstrumentationScope.verify(Q.scope);if(J)return"scope."+J}if(Q.spans!=null&&Q.hasOwnProperty("spans")){if(!Array.isArray(Q.spans))return"spans: array expected";for(var Y=0;Y<Q.spans.length;++Y){var J=B.opentelemetry.proto.trace.v1.Span.verify(Q.spans[Y]);if(J)return"spans."+J}}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl")){if(!O.isString(Q.schemaUrl))return"schemaUrl: string expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.trace.v1.ScopeSpans)return Q;var J=new B.opentelemetry.proto.trace.v1.ScopeSpans;if(Q.scope!=null){if(typeof Q.scope!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");J.scope=B.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(Q.scope)}if(Q.spans){if(!Array.isArray(Q.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");J.spans=[];for(var Y=0;Y<Q.spans.length;++Y){if(typeof Q.spans[Y]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");J.spans[Y]=B.opentelemetry.proto.trace.v1.Span.fromObject(Q.spans[Y])}}if(Q.schemaUrl!=null)J.schemaUrl=String(Q.schemaUrl);return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.spans=[];if(J.defaults)Y.scope=null,Y.schemaUrl="";if(Q.scope!=null&&Q.hasOwnProperty("scope"))Y.scope=B.opentelemetry.proto.common.v1.InstrumentationScope.toObject(Q.scope,J);if(Q.spans&&Q.spans.length){Y.spans=[];for(var K=0;K<Q.spans.length;++K)Y.spans[K]=B.opentelemetry.proto.trace.v1.Span.toObject(Q.spans[K],J)}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl"))Y.schemaUrl=Q.schemaUrl;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.trace.v1.ScopeSpans"},G}(),q.Span=function(){function G(W){if(this.attributes=[],this.events=[],this.links=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.traceId=null,G.prototype.spanId=null,G.prototype.traceState=null,G.prototype.parentSpanId=null,G.prototype.flags=null,G.prototype.name=null,G.prototype.kind=null,G.prototype.startTimeUnixNano=null,G.prototype.endTimeUnixNano=null,G.prototype.attributes=O.emptyArray,G.prototype.droppedAttributesCount=null,G.prototype.events=O.emptyArray,G.prototype.droppedEventsCount=null,G.prototype.links=O.emptyArray,G.prototype.droppedLinksCount=null,G.prototype.status=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.traceId!=null&&Object.hasOwnProperty.call(Q,"traceId"))J.uint32(10).bytes(Q.traceId);if(Q.spanId!=null&&Object.hasOwnProperty.call(Q,"spanId"))J.uint32(18).bytes(Q.spanId);if(Q.traceState!=null&&Object.hasOwnProperty.call(Q,"traceState"))J.uint32(26).string(Q.traceState);if(Q.parentSpanId!=null&&Object.hasOwnProperty.call(Q,"parentSpanId"))J.uint32(34).bytes(Q.parentSpanId);if(Q.name!=null&&Object.hasOwnProperty.call(Q,"name"))J.uint32(42).string(Q.name);if(Q.kind!=null&&Object.hasOwnProperty.call(Q,"kind"))J.uint32(48).int32(Q.kind);if(Q.startTimeUnixNano!=null&&Object.hasOwnProperty.call(Q,"startTimeUnixNano"))J.uint32(57).fixed64(Q.startTimeUnixNano);if(Q.endTimeUnixNano!=null&&Object.hasOwnProperty.call(Q,"endTimeUnixNano"))J.uint32(65).fixed64(Q.endTimeUnixNano);if(Q.attributes!=null&&Q.attributes.length)for(var Y=0;Y<Q.attributes.length;++Y)B.opentelemetry.proto.common.v1.KeyValue.encode(Q.attributes[Y],J.uint32(74).fork()).ldelim();if(Q.droppedAttributesCount!=null&&Object.hasOwnProperty.call(Q,"droppedAttributesCount"))J.uint32(80).uint32(Q.droppedAttributesCount);if(Q.events!=null&&Q.events.length)for(var Y=0;Y<Q.events.length;++Y)B.opentelemetry.proto.trace.v1.Span.Event.encode(Q.events[Y],J.uint32(90).fork()).ldelim();if(Q.droppedEventsCount!=null&&Object.hasOwnProperty.call(Q,"droppedEventsCount"))J.uint32(96).uint32(Q.droppedEventsCount);if(Q.links!=null&&Q.links.length)for(var Y=0;Y<Q.links.length;++Y)B.opentelemetry.proto.trace.v1.Span.Link.encode(Q.links[Y],J.uint32(106).fork()).ldelim();if(Q.droppedLinksCount!=null&&Object.hasOwnProperty.call(Q,"droppedLinksCount"))J.uint32(112).uint32(Q.droppedLinksCount);if(Q.status!=null&&Object.hasOwnProperty.call(Q,"status"))B.opentelemetry.proto.trace.v1.Status.encode(Q.status,J.uint32(122).fork()).ldelim();if(Q.flags!=null&&Object.hasOwnProperty.call(Q,"flags"))J.uint32(133).fixed32(Q.flags);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.trace.v1.Span;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.traceId=Q.bytes();break}case 2:{F.spanId=Q.bytes();break}case 3:{F.traceState=Q.string();break}case 4:{F.parentSpanId=Q.bytes();break}case 16:{F.flags=Q.fixed32();break}case 5:{F.name=Q.string();break}case 6:{F.kind=Q.int32();break}case 7:{F.startTimeUnixNano=Q.fixed64();break}case 8:{F.endTimeUnixNano=Q.fixed64();break}case 9:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(Q,Q.uint32()));break}case 10:{F.droppedAttributesCount=Q.uint32();break}case 11:{if(!(F.events&&F.events.length))F.events=[];F.events.push(B.opentelemetry.proto.trace.v1.Span.Event.decode(Q,Q.uint32()));break}case 12:{F.droppedEventsCount=Q.uint32();break}case 13:{if(!(F.links&&F.links.length))F.links=[];F.links.push(B.opentelemetry.proto.trace.v1.Span.Link.decode(Q,Q.uint32()));break}case 14:{F.droppedLinksCount=Q.uint32();break}case 15:{F.status=B.opentelemetry.proto.trace.v1.Status.decode(Q,Q.uint32());break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.traceId!=null&&Q.hasOwnProperty("traceId")){if(!(Q.traceId&&typeof Q.traceId.length==="number"||O.isString(Q.traceId)))return"traceId: buffer expected"}if(Q.spanId!=null&&Q.hasOwnProperty("spanId")){if(!(Q.spanId&&typeof Q.spanId.length==="number"||O.isString(Q.spanId)))return"spanId: buffer expected"}if(Q.traceState!=null&&Q.hasOwnProperty("traceState")){if(!O.isString(Q.traceState))return"traceState: string expected"}if(Q.parentSpanId!=null&&Q.hasOwnProperty("parentSpanId")){if(!(Q.parentSpanId&&typeof Q.parentSpanId.length==="number"||O.isString(Q.parentSpanId)))return"parentSpanId: buffer expected"}if(Q.flags!=null&&Q.hasOwnProperty("flags")){if(!O.isInteger(Q.flags))return"flags: integer expected"}if(Q.name!=null&&Q.hasOwnProperty("name")){if(!O.isString(Q.name))return"name: string expected"}if(Q.kind!=null&&Q.hasOwnProperty("kind"))switch(Q.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(Q.startTimeUnixNano!=null&&Q.hasOwnProperty("startTimeUnixNano")){if(!O.isInteger(Q.startTimeUnixNano)&&!(Q.startTimeUnixNano&&O.isInteger(Q.startTimeUnixNano.low)&&O.isInteger(Q.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(Q.endTimeUnixNano!=null&&Q.hasOwnProperty("endTimeUnixNano")){if(!O.isInteger(Q.endTimeUnixNano)&&!(Q.endTimeUnixNano&&O.isInteger(Q.endTimeUnixNano.low)&&O.isInteger(Q.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected"}if(Q.attributes!=null&&Q.hasOwnProperty("attributes")){if(!Array.isArray(Q.attributes))return"attributes: array expected";for(var J=0;J<Q.attributes.length;++J){var Y=B.opentelemetry.proto.common.v1.KeyValue.verify(Q.attributes[J]);if(Y)return"attributes."+Y}}if(Q.droppedAttributesCount!=null&&Q.hasOwnProperty("droppedAttributesCount")){if(!O.isInteger(Q.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(Q.events!=null&&Q.hasOwnProperty("events")){if(!Array.isArray(Q.events))return"events: array expected";for(var J=0;J<Q.events.length;++J){var Y=B.opentelemetry.proto.trace.v1.Span.Event.verify(Q.events[J]);if(Y)return"events."+Y}}if(Q.droppedEventsCount!=null&&Q.hasOwnProperty("droppedEventsCount")){if(!O.isInteger(Q.droppedEventsCount))return"droppedEventsCount: integer expected"}if(Q.links!=null&&Q.hasOwnProperty("links")){if(!Array.isArray(Q.links))return"links: array expected";for(var J=0;J<Q.links.length;++J){var Y=B.opentelemetry.proto.trace.v1.Span.Link.verify(Q.links[J]);if(Y)return"links."+Y}}if(Q.droppedLinksCount!=null&&Q.hasOwnProperty("droppedLinksCount")){if(!O.isInteger(Q.droppedLinksCount))return"droppedLinksCount: integer expected"}if(Q.status!=null&&Q.hasOwnProperty("status")){var Y=B.opentelemetry.proto.trace.v1.Status.verify(Q.status);if(Y)return"status."+Y}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.trace.v1.Span)return Q;var J=new B.opentelemetry.proto.trace.v1.Span;if(Q.traceId!=null){if(typeof Q.traceId==="string")O.base64.decode(Q.traceId,J.traceId=O.newBuffer(O.base64.length(Q.traceId)),0);else if(Q.traceId.length>=0)J.traceId=Q.traceId}if(Q.spanId!=null){if(typeof Q.spanId==="string")O.base64.decode(Q.spanId,J.spanId=O.newBuffer(O.base64.length(Q.spanId)),0);else if(Q.spanId.length>=0)J.spanId=Q.spanId}if(Q.traceState!=null)J.traceState=String(Q.traceState);if(Q.parentSpanId!=null){if(typeof Q.parentSpanId==="string")O.base64.decode(Q.parentSpanId,J.parentSpanId=O.newBuffer(O.base64.length(Q.parentSpanId)),0);else if(Q.parentSpanId.length>=0)J.parentSpanId=Q.parentSpanId}if(Q.flags!=null)J.flags=Q.flags>>>0;if(Q.name!=null)J.name=String(Q.name);switch(Q.kind){default:if(typeof Q.kind==="number"){J.kind=Q.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:J.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:J.kind=1;break;case"SPAN_KIND_SERVER":case 2:J.kind=2;break;case"SPAN_KIND_CLIENT":case 3:J.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:J.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:J.kind=5;break}if(Q.startTimeUnixNano!=null){if(O.Long)(J.startTimeUnixNano=O.Long.fromValue(Q.startTimeUnixNano)).unsigned=!1;else if(typeof Q.startTimeUnixNano==="string")J.startTimeUnixNano=parseInt(Q.startTimeUnixNano,10);else if(typeof Q.startTimeUnixNano==="number")J.startTimeUnixNano=Q.startTimeUnixNano;else if(typeof Q.startTimeUnixNano==="object")J.startTimeUnixNano=new O.LongBits(Q.startTimeUnixNano.low>>>0,Q.startTimeUnixNano.high>>>0).toNumber()}if(Q.endTimeUnixNano!=null){if(O.Long)(J.endTimeUnixNano=O.Long.fromValue(Q.endTimeUnixNano)).unsigned=!1;else if(typeof Q.endTimeUnixNano==="string")J.endTimeUnixNano=parseInt(Q.endTimeUnixNano,10);else if(typeof Q.endTimeUnixNano==="number")J.endTimeUnixNano=Q.endTimeUnixNano;else if(typeof Q.endTimeUnixNano==="object")J.endTimeUnixNano=new O.LongBits(Q.endTimeUnixNano.low>>>0,Q.endTimeUnixNano.high>>>0).toNumber()}if(Q.attributes){if(!Array.isArray(Q.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");J.attributes=[];for(var Y=0;Y<Q.attributes.length;++Y){if(typeof Q.attributes[Y]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");J.attributes[Y]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(Q.attributes[Y])}}if(Q.droppedAttributesCount!=null)J.droppedAttributesCount=Q.droppedAttributesCount>>>0;if(Q.events){if(!Array.isArray(Q.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");J.events=[];for(var Y=0;Y<Q.events.length;++Y){if(typeof Q.events[Y]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");J.events[Y]=B.opentelemetry.proto.trace.v1.Span.Event.fromObject(Q.events[Y])}}if(Q.droppedEventsCount!=null)J.droppedEventsCount=Q.droppedEventsCount>>>0;if(Q.links){if(!Array.isArray(Q.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");J.links=[];for(var Y=0;Y<Q.links.length;++Y){if(typeof Q.links[Y]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");J.links[Y]=B.opentelemetry.proto.trace.v1.Span.Link.fromObject(Q.links[Y])}}if(Q.droppedLinksCount!=null)J.droppedLinksCount=Q.droppedLinksCount>>>0;if(Q.status!=null){if(typeof Q.status!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");J.status=B.opentelemetry.proto.trace.v1.Status.fromObject(Q.status)}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.attributes=[],Y.events=[],Y.links=[];if(J.defaults){if(J.bytes===String)Y.traceId="";else if(Y.traceId=[],J.bytes!==Array)Y.traceId=O.newBuffer(Y.traceId);if(J.bytes===String)Y.spanId="";else if(Y.spanId=[],J.bytes!==Array)Y.spanId=O.newBuffer(Y.spanId);if(Y.traceState="",J.bytes===String)Y.parentSpanId="";else if(Y.parentSpanId=[],J.bytes!==Array)Y.parentSpanId=O.newBuffer(Y.parentSpanId);if(Y.name="",Y.kind=J.enums===String?"SPAN_KIND_UNSPECIFIED":0,O.Long){var K=new O.Long(0,0,!1);Y.startTimeUnixNano=J.longs===String?K.toString():J.longs===Number?K.toNumber():K}else Y.startTimeUnixNano=J.longs===String?"0":0;if(O.Long){var K=new O.Long(0,0,!1);Y.endTimeUnixNano=J.longs===String?K.toString():J.longs===Number?K.toNumber():K}else Y.endTimeUnixNano=J.longs===String?"0":0;Y.droppedAttributesCount=0,Y.droppedEventsCount=0,Y.droppedLinksCount=0,Y.status=null,Y.flags=0}if(Q.traceId!=null&&Q.hasOwnProperty("traceId"))Y.traceId=J.bytes===String?O.base64.encode(Q.traceId,0,Q.traceId.length):J.bytes===Array?Array.prototype.slice.call(Q.traceId):Q.traceId;if(Q.spanId!=null&&Q.hasOwnProperty("spanId"))Y.spanId=J.bytes===String?O.base64.encode(Q.spanId,0,Q.spanId.length):J.bytes===Array?Array.prototype.slice.call(Q.spanId):Q.spanId;if(Q.traceState!=null&&Q.hasOwnProperty("traceState"))Y.traceState=Q.traceState;if(Q.parentSpanId!=null&&Q.hasOwnProperty("parentSpanId"))Y.parentSpanId=J.bytes===String?O.base64.encode(Q.parentSpanId,0,Q.parentSpanId.length):J.bytes===Array?Array.prototype.slice.call(Q.parentSpanId):Q.parentSpanId;if(Q.name!=null&&Q.hasOwnProperty("name"))Y.name=Q.name;if(Q.kind!=null&&Q.hasOwnProperty("kind"))Y.kind=J.enums===String?B.opentelemetry.proto.trace.v1.Span.SpanKind[Q.kind]===void 0?Q.kind:B.opentelemetry.proto.trace.v1.Span.SpanKind[Q.kind]:Q.kind;if(Q.startTimeUnixNano!=null&&Q.hasOwnProperty("startTimeUnixNano"))if(typeof Q.startTimeUnixNano==="number")Y.startTimeUnixNano=J.longs===String?String(Q.startTimeUnixNano):Q.startTimeUnixNano;else Y.startTimeUnixNano=J.longs===String?O.Long.prototype.toString.call(Q.startTimeUnixNano):J.longs===Number?new O.LongBits(Q.startTimeUnixNano.low>>>0,Q.startTimeUnixNano.high>>>0).toNumber():Q.startTimeUnixNano;if(Q.endTimeUnixNano!=null&&Q.hasOwnProperty("endTimeUnixNano"))if(typeof Q.endTimeUnixNano==="number")Y.endTimeUnixNano=J.longs===String?String(Q.endTimeUnixNano):Q.endTimeUnixNano;else Y.endTimeUnixNano=J.longs===String?O.Long.prototype.toString.call(Q.endTimeUnixNano):J.longs===Number?new O.LongBits(Q.endTimeUnixNano.low>>>0,Q.endTimeUnixNano.high>>>0).toNumber():Q.endTimeUnixNano;if(Q.attributes&&Q.attributes.length){Y.attributes=[];for(var F=0;F<Q.attributes.length;++F)Y.attributes[F]=B.opentelemetry.proto.common.v1.KeyValue.toObject(Q.attributes[F],J)}if(Q.droppedAttributesCount!=null&&Q.hasOwnProperty("droppedAttributesCount"))Y.droppedAttributesCount=Q.droppedAttributesCount;if(Q.events&&Q.events.length){Y.events=[];for(var F=0;F<Q.events.length;++F)Y.events[F]=B.opentelemetry.proto.trace.v1.Span.Event.toObject(Q.events[F],J)}if(Q.droppedEventsCount!=null&&Q.hasOwnProperty("droppedEventsCount"))Y.droppedEventsCount=Q.droppedEventsCount;if(Q.links&&Q.links.length){Y.links=[];for(var F=0;F<Q.links.length;++F)Y.links[F]=B.opentelemetry.proto.trace.v1.Span.Link.toObject(Q.links[F],J)}if(Q.droppedLinksCount!=null&&Q.hasOwnProperty("droppedLinksCount"))Y.droppedLinksCount=Q.droppedLinksCount;if(Q.status!=null&&Q.hasOwnProperty("status"))Y.status=B.opentelemetry.proto.trace.v1.Status.toObject(Q.status,J);if(Q.flags!=null&&Q.hasOwnProperty("flags"))Y.flags=Q.flags;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.trace.v1.Span"},G.SpanKind=function(){var W={},Q=Object.create(W);return Q[W[0]="SPAN_KIND_UNSPECIFIED"]=0,Q[W[1]="SPAN_KIND_INTERNAL"]=1,Q[W[2]="SPAN_KIND_SERVER"]=2,Q[W[3]="SPAN_KIND_CLIENT"]=3,Q[W[4]="SPAN_KIND_PRODUCER"]=4,Q[W[5]="SPAN_KIND_CONSUMER"]=5,Q}(),G.Event=function(){function W(Q){if(this.attributes=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.timeUnixNano=null,W.prototype.name=null,W.prototype.attributes=O.emptyArray,W.prototype.droppedAttributesCount=null,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.timeUnixNano!=null&&Object.hasOwnProperty.call(J,"timeUnixNano"))Y.uint32(9).fixed64(J.timeUnixNano);if(J.name!=null&&Object.hasOwnProperty.call(J,"name"))Y.uint32(18).string(J.name);if(J.attributes!=null&&J.attributes.length)for(var K=0;K<J.attributes.length;++K)B.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[K],Y.uint32(26).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Y.uint32(32).uint32(J.droppedAttributesCount);return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.trace.v1.Span.Event;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.timeUnixNano=J.fixed64();break}case 2:{H.name=J.string();break}case 3:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 4:{H.droppedAttributesCount=J.uint32();break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano")){if(!O.isInteger(J.timeUnixNano)&&!(J.timeUnixNano&&O.isInteger(J.timeUnixNano.low)&&O.isInteger(J.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(J.name!=null&&J.hasOwnProperty("name")){if(!O.isString(J.name))return"name: string expected"}if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Y=0;Y<J.attributes.length;++Y){var K=B.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Y]);if(K)return"attributes."+K}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!O.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.trace.v1.Span.Event)return J;var Y=new B.opentelemetry.proto.trace.v1.Span.Event;if(J.timeUnixNano!=null){if(O.Long)(Y.timeUnixNano=O.Long.fromValue(J.timeUnixNano)).unsigned=!1;else if(typeof J.timeUnixNano==="string")Y.timeUnixNano=parseInt(J.timeUnixNano,10);else if(typeof J.timeUnixNano==="number")Y.timeUnixNano=J.timeUnixNano;else if(typeof J.timeUnixNano==="object")Y.timeUnixNano=new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber()}if(J.name!=null)Y.name=String(J.name);if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");Y.attributes=[];for(var K=0;K<J.attributes.length;++K){if(typeof J.attributes[K]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");Y.attributes[K]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[K])}}if(J.droppedAttributesCount!=null)Y.droppedAttributesCount=J.droppedAttributesCount>>>0;return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.attributes=[];if(Y.defaults){if(O.Long){var F=new O.Long(0,0,!1);K.timeUnixNano=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.timeUnixNano=Y.longs===String?"0":0;K.name="",K.droppedAttributesCount=0}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano"))if(typeof J.timeUnixNano==="number")K.timeUnixNano=Y.longs===String?String(J.timeUnixNano):J.timeUnixNano;else K.timeUnixNano=Y.longs===String?O.Long.prototype.toString.call(J.timeUnixNano):Y.longs===Number?new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber():J.timeUnixNano;if(J.name!=null&&J.hasOwnProperty("name"))K.name=J.name;if(J.attributes&&J.attributes.length){K.attributes=[];for(var H=0;H<J.attributes.length;++H)K.attributes[H]=B.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[H],Y)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))K.droppedAttributesCount=J.droppedAttributesCount;return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.Span.Event"},W}(),G.Link=function(){function W(Q){if(this.attributes=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.traceId=null,W.prototype.spanId=null,W.prototype.traceState=null,W.prototype.attributes=O.emptyArray,W.prototype.droppedAttributesCount=null,W.prototype.flags=null,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.traceId!=null&&Object.hasOwnProperty.call(J,"traceId"))Y.uint32(10).bytes(J.traceId);if(J.spanId!=null&&Object.hasOwnProperty.call(J,"spanId"))Y.uint32(18).bytes(J.spanId);if(J.traceState!=null&&Object.hasOwnProperty.call(J,"traceState"))Y.uint32(26).string(J.traceState);if(J.attributes!=null&&J.attributes.length)for(var K=0;K<J.attributes.length;++K)B.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[K],Y.uint32(34).fork()).ldelim();if(J.droppedAttributesCount!=null&&Object.hasOwnProperty.call(J,"droppedAttributesCount"))Y.uint32(40).uint32(J.droppedAttributesCount);if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Y.uint32(53).fixed32(J.flags);return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.trace.v1.Span.Link;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.traceId=J.bytes();break}case 2:{H.spanId=J.bytes();break}case 3:{H.traceState=J.string();break}case 4:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 5:{H.droppedAttributesCount=J.uint32();break}case 6:{H.flags=J.fixed32();break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.traceId!=null&&J.hasOwnProperty("traceId")){if(!(J.traceId&&typeof J.traceId.length==="number"||O.isString(J.traceId)))return"traceId: buffer expected"}if(J.spanId!=null&&J.hasOwnProperty("spanId")){if(!(J.spanId&&typeof J.spanId.length==="number"||O.isString(J.spanId)))return"spanId: buffer expected"}if(J.traceState!=null&&J.hasOwnProperty("traceState")){if(!O.isString(J.traceState))return"traceState: string expected"}if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var Y=0;Y<J.attributes.length;++Y){var K=B.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[Y]);if(K)return"attributes."+K}}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount")){if(!O.isInteger(J.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!O.isInteger(J.flags))return"flags: integer expected"}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.trace.v1.Span.Link)return J;var Y=new B.opentelemetry.proto.trace.v1.Span.Link;if(J.traceId!=null){if(typeof J.traceId==="string")O.base64.decode(J.traceId,Y.traceId=O.newBuffer(O.base64.length(J.traceId)),0);else if(J.traceId.length>=0)Y.traceId=J.traceId}if(J.spanId!=null){if(typeof J.spanId==="string")O.base64.decode(J.spanId,Y.spanId=O.newBuffer(O.base64.length(J.spanId)),0);else if(J.spanId.length>=0)Y.spanId=J.spanId}if(J.traceState!=null)Y.traceState=String(J.traceState);if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");Y.attributes=[];for(var K=0;K<J.attributes.length;++K){if(typeof J.attributes[K]!=="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");Y.attributes[K]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[K])}}if(J.droppedAttributesCount!=null)Y.droppedAttributesCount=J.droppedAttributesCount>>>0;if(J.flags!=null)Y.flags=J.flags>>>0;return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.attributes=[];if(Y.defaults){if(Y.bytes===String)K.traceId="";else if(K.traceId=[],Y.bytes!==Array)K.traceId=O.newBuffer(K.traceId);if(Y.bytes===String)K.spanId="";else if(K.spanId=[],Y.bytes!==Array)K.spanId=O.newBuffer(K.spanId);K.traceState="",K.droppedAttributesCount=0,K.flags=0}if(J.traceId!=null&&J.hasOwnProperty("traceId"))K.traceId=Y.bytes===String?O.base64.encode(J.traceId,0,J.traceId.length):Y.bytes===Array?Array.prototype.slice.call(J.traceId):J.traceId;if(J.spanId!=null&&J.hasOwnProperty("spanId"))K.spanId=Y.bytes===String?O.base64.encode(J.spanId,0,J.spanId.length):Y.bytes===Array?Array.prototype.slice.call(J.spanId):J.spanId;if(J.traceState!=null&&J.hasOwnProperty("traceState"))K.traceState=J.traceState;if(J.attributes&&J.attributes.length){K.attributes=[];for(var F=0;F<J.attributes.length;++F)K.attributes[F]=B.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[F],Y)}if(J.droppedAttributesCount!=null&&J.hasOwnProperty("droppedAttributesCount"))K.droppedAttributesCount=J.droppedAttributesCount;if(J.flags!=null&&J.hasOwnProperty("flags"))K.flags=J.flags;return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.trace.v1.Span.Link"},W}(),G}(),q.Status=function(){function G(W){if(W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.message=null,G.prototype.code=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.message!=null&&Object.hasOwnProperty.call(Q,"message"))J.uint32(18).string(Q.message);if(Q.code!=null&&Object.hasOwnProperty.call(Q,"code"))J.uint32(24).int32(Q.code);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.trace.v1.Status;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 2:{F.message=Q.string();break}case 3:{F.code=Q.int32();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.message!=null&&Q.hasOwnProperty("message")){if(!O.isString(Q.message))return"message: string expected"}if(Q.code!=null&&Q.hasOwnProperty("code"))switch(Q.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.trace.v1.Status)return Q;var J=new B.opentelemetry.proto.trace.v1.Status;if(Q.message!=null)J.message=String(Q.message);switch(Q.code){default:if(typeof Q.code==="number"){J.code=Q.code;break}break;case"STATUS_CODE_UNSET":case 0:J.code=0;break;case"STATUS_CODE_OK":case 1:J.code=1;break;case"STATUS_CODE_ERROR":case 2:J.code=2;break}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.defaults)Y.message="",Y.code=J.enums===String?"STATUS_CODE_UNSET":0;if(Q.message!=null&&Q.hasOwnProperty("message"))Y.message=Q.message;if(Q.code!=null&&Q.hasOwnProperty("code"))Y.code=J.enums===String?B.opentelemetry.proto.trace.v1.Status.StatusCode[Q.code]===void 0?Q.code:B.opentelemetry.proto.trace.v1.Status.StatusCode[Q.code]:Q.code;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.trace.v1.Status"},G.StatusCode=function(){var W={},Q=Object.create(W);return Q[W[0]="STATUS_CODE_UNSET"]=0,Q[W[1]="STATUS_CODE_OK"]=1,Q[W[2]="STATUS_CODE_ERROR"]=2,Q}(),G}(),q.SpanFlags=function(){var G={},W=Object.create(G);return W[G[0]="SPAN_FLAGS_DO_NOT_USE"]=0,W[G[255]="SPAN_FLAGS_TRACE_FLAGS_MASK"]=255,W[G[256]="SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK"]=256,W[G[512]="SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK"]=512,W}(),q}(),z}(),X.collector=function(){var z={};return z.trace=function(){var q={};return q.v1=function(){var G={};return G.TraceService=function(){function W(Q,J,Y){T.rpc.Service.call(this,Q,J,Y)}return(W.prototype=Object.create(T.rpc.Service.prototype)).constructor=W,W.create=function(J,Y,K){return new this(J,Y,K)},Object.defineProperty(W.prototype.export=function Q(J,Y){return this.rpcCall(Q,B.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,B.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,J,Y)},"name",{value:"Export"}),W}(),G.ExportTraceServiceRequest=function(){function W(Q){if(this.resourceSpans=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.resourceSpans=O.emptyArray,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.resourceSpans!=null&&J.resourceSpans.length)for(var K=0;K<J.resourceSpans.length;++K)B.opentelemetry.proto.trace.v1.ResourceSpans.encode(J.resourceSpans[K],Y.uint32(10).fork()).ldelim();return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{if(!(H.resourceSpans&&H.resourceSpans.length))H.resourceSpans=[];H.resourceSpans.push(B.opentelemetry.proto.trace.v1.ResourceSpans.decode(J,J.uint32()));break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resourceSpans!=null&&J.hasOwnProperty("resourceSpans")){if(!Array.isArray(J.resourceSpans))return"resourceSpans: array expected";for(var Y=0;Y<J.resourceSpans.length;++Y){var K=B.opentelemetry.proto.trace.v1.ResourceSpans.verify(J.resourceSpans[Y]);if(K)return"resourceSpans."+K}}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return J;var Y=new B.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(J.resourceSpans){if(!Array.isArray(J.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");Y.resourceSpans=[];for(var K=0;K<J.resourceSpans.length;++K){if(typeof J.resourceSpans[K]!=="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");Y.resourceSpans[K]=B.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(J.resourceSpans[K])}}return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.resourceSpans=[];if(J.resourceSpans&&J.resourceSpans.length){K.resourceSpans=[];for(var F=0;F<J.resourceSpans.length;++F)K.resourceSpans[F]=B.opentelemetry.proto.trace.v1.ResourceSpans.toObject(J.resourceSpans[F],Y)}return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},W}(),G.ExportTraceServiceResponse=function(){function W(Q){if(Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.partialSuccess=null,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.partialSuccess!=null&&Object.hasOwnProperty.call(J,"partialSuccess"))B.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(J.partialSuccess,Y.uint32(10).fork()).ldelim();return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.partialSuccess=B.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(J,J.uint32());break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.partialSuccess!=null&&J.hasOwnProperty("partialSuccess")){var Y=B.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(J.partialSuccess);if(Y)return"partialSuccess."+Y}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return J;var Y=new B.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(J.partialSuccess!=null){if(typeof J.partialSuccess!=="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");Y.partialSuccess=B.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(J.partialSuccess)}return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.defaults)K.partialSuccess=null;if(J.partialSuccess!=null&&J.hasOwnProperty("partialSuccess"))K.partialSuccess=B.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(J.partialSuccess,Y);return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},W}(),G.ExportTracePartialSuccess=function(){function W(Q){if(Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.rejectedSpans=null,W.prototype.errorMessage=null,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.rejectedSpans!=null&&Object.hasOwnProperty.call(J,"rejectedSpans"))Y.uint32(8).int64(J.rejectedSpans);if(J.errorMessage!=null&&Object.hasOwnProperty.call(J,"errorMessage"))Y.uint32(18).string(J.errorMessage);return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.rejectedSpans=J.int64();break}case 2:{H.errorMessage=J.string();break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.rejectedSpans!=null&&J.hasOwnProperty("rejectedSpans")){if(!O.isInteger(J.rejectedSpans)&&!(J.rejectedSpans&&O.isInteger(J.rejectedSpans.low)&&O.isInteger(J.rejectedSpans.high)))return"rejectedSpans: integer|Long expected"}if(J.errorMessage!=null&&J.hasOwnProperty("errorMessage")){if(!O.isString(J.errorMessage))return"errorMessage: string expected"}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return J;var Y=new B.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;if(J.rejectedSpans!=null){if(O.Long)(Y.rejectedSpans=O.Long.fromValue(J.rejectedSpans)).unsigned=!1;else if(typeof J.rejectedSpans==="string")Y.rejectedSpans=parseInt(J.rejectedSpans,10);else if(typeof J.rejectedSpans==="number")Y.rejectedSpans=J.rejectedSpans;else if(typeof J.rejectedSpans==="object")Y.rejectedSpans=new O.LongBits(J.rejectedSpans.low>>>0,J.rejectedSpans.high>>>0).toNumber()}if(J.errorMessage!=null)Y.errorMessage=String(J.errorMessage);return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.defaults){if(O.Long){var F=new O.Long(0,0,!1);K.rejectedSpans=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.rejectedSpans=Y.longs===String?"0":0;K.errorMessage=""}if(J.rejectedSpans!=null&&J.hasOwnProperty("rejectedSpans"))if(typeof J.rejectedSpans==="number")K.rejectedSpans=Y.longs===String?String(J.rejectedSpans):J.rejectedSpans;else K.rejectedSpans=Y.longs===String?O.Long.prototype.toString.call(J.rejectedSpans):Y.longs===Number?new O.LongBits(J.rejectedSpans.low>>>0,J.rejectedSpans.high>>>0).toNumber():J.rejectedSpans;if(J.errorMessage!=null&&J.hasOwnProperty("errorMessage"))K.errorMessage=J.errorMessage;return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},W}(),G}(),q}(),z.metrics=function(){var q={};return q.v1=function(){var G={};return G.MetricsService=function(){function W(Q,J,Y){T.rpc.Service.call(this,Q,J,Y)}return(W.prototype=Object.create(T.rpc.Service.prototype)).constructor=W,W.create=function(J,Y,K){return new this(J,Y,K)},Object.defineProperty(W.prototype.export=function Q(J,Y){return this.rpcCall(Q,B.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,B.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,J,Y)},"name",{value:"Export"}),W}(),G.ExportMetricsServiceRequest=function(){function W(Q){if(this.resourceMetrics=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.resourceMetrics=O.emptyArray,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.resourceMetrics!=null&&J.resourceMetrics.length)for(var K=0;K<J.resourceMetrics.length;++K)B.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(J.resourceMetrics[K],Y.uint32(10).fork()).ldelim();return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{if(!(H.resourceMetrics&&H.resourceMetrics.length))H.resourceMetrics=[];H.resourceMetrics.push(B.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(J,J.uint32()));break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resourceMetrics!=null&&J.hasOwnProperty("resourceMetrics")){if(!Array.isArray(J.resourceMetrics))return"resourceMetrics: array expected";for(var Y=0;Y<J.resourceMetrics.length;++Y){var K=B.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(J.resourceMetrics[Y]);if(K)return"resourceMetrics."+K}}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return J;var Y=new B.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(J.resourceMetrics){if(!Array.isArray(J.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");Y.resourceMetrics=[];for(var K=0;K<J.resourceMetrics.length;++K){if(typeof J.resourceMetrics[K]!=="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");Y.resourceMetrics[K]=B.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(J.resourceMetrics[K])}}return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.resourceMetrics=[];if(J.resourceMetrics&&J.resourceMetrics.length){K.resourceMetrics=[];for(var F=0;F<J.resourceMetrics.length;++F)K.resourceMetrics[F]=B.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(J.resourceMetrics[F],Y)}return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},W}(),G.ExportMetricsServiceResponse=function(){function W(Q){if(Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.partialSuccess=null,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.partialSuccess!=null&&Object.hasOwnProperty.call(J,"partialSuccess"))B.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(J.partialSuccess,Y.uint32(10).fork()).ldelim();return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.partialSuccess=B.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(J,J.uint32());break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.partialSuccess!=null&&J.hasOwnProperty("partialSuccess")){var Y=B.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(J.partialSuccess);if(Y)return"partialSuccess."+Y}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return J;var Y=new B.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(J.partialSuccess!=null){if(typeof J.partialSuccess!=="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");Y.partialSuccess=B.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(J.partialSuccess)}return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.defaults)K.partialSuccess=null;if(J.partialSuccess!=null&&J.hasOwnProperty("partialSuccess"))K.partialSuccess=B.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(J.partialSuccess,Y);return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},W}(),G.ExportMetricsPartialSuccess=function(){function W(Q){if(Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.rejectedDataPoints=null,W.prototype.errorMessage=null,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.rejectedDataPoints!=null&&Object.hasOwnProperty.call(J,"rejectedDataPoints"))Y.uint32(8).int64(J.rejectedDataPoints);if(J.errorMessage!=null&&Object.hasOwnProperty.call(J,"errorMessage"))Y.uint32(18).string(J.errorMessage);return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.rejectedDataPoints=J.int64();break}case 2:{H.errorMessage=J.string();break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.rejectedDataPoints!=null&&J.hasOwnProperty("rejectedDataPoints")){if(!O.isInteger(J.rejectedDataPoints)&&!(J.rejectedDataPoints&&O.isInteger(J.rejectedDataPoints.low)&&O.isInteger(J.rejectedDataPoints.high)))return"rejectedDataPoints: integer|Long expected"}if(J.errorMessage!=null&&J.hasOwnProperty("errorMessage")){if(!O.isString(J.errorMessage))return"errorMessage: string expected"}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return J;var Y=new B.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;if(J.rejectedDataPoints!=null){if(O.Long)(Y.rejectedDataPoints=O.Long.fromValue(J.rejectedDataPoints)).unsigned=!1;else if(typeof J.rejectedDataPoints==="string")Y.rejectedDataPoints=parseInt(J.rejectedDataPoints,10);else if(typeof J.rejectedDataPoints==="number")Y.rejectedDataPoints=J.rejectedDataPoints;else if(typeof J.rejectedDataPoints==="object")Y.rejectedDataPoints=new O.LongBits(J.rejectedDataPoints.low>>>0,J.rejectedDataPoints.high>>>0).toNumber()}if(J.errorMessage!=null)Y.errorMessage=String(J.errorMessage);return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.defaults){if(O.Long){var F=new O.Long(0,0,!1);K.rejectedDataPoints=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.rejectedDataPoints=Y.longs===String?"0":0;K.errorMessage=""}if(J.rejectedDataPoints!=null&&J.hasOwnProperty("rejectedDataPoints"))if(typeof J.rejectedDataPoints==="number")K.rejectedDataPoints=Y.longs===String?String(J.rejectedDataPoints):J.rejectedDataPoints;else K.rejectedDataPoints=Y.longs===String?O.Long.prototype.toString.call(J.rejectedDataPoints):Y.longs===Number?new O.LongBits(J.rejectedDataPoints.low>>>0,J.rejectedDataPoints.high>>>0).toNumber():J.rejectedDataPoints;if(J.errorMessage!=null&&J.hasOwnProperty("errorMessage"))K.errorMessage=J.errorMessage;return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},W}(),G}(),q}(),z.logs=function(){var q={};return q.v1=function(){var G={};return G.LogsService=function(){function W(Q,J,Y){T.rpc.Service.call(this,Q,J,Y)}return(W.prototype=Object.create(T.rpc.Service.prototype)).constructor=W,W.create=function(J,Y,K){return new this(J,Y,K)},Object.defineProperty(W.prototype.export=function Q(J,Y){return this.rpcCall(Q,B.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,B.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,J,Y)},"name",{value:"Export"}),W}(),G.ExportLogsServiceRequest=function(){function W(Q){if(this.resourceLogs=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.resourceLogs=O.emptyArray,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.resourceLogs!=null&&J.resourceLogs.length)for(var K=0;K<J.resourceLogs.length;++K)B.opentelemetry.proto.logs.v1.ResourceLogs.encode(J.resourceLogs[K],Y.uint32(10).fork()).ldelim();return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{if(!(H.resourceLogs&&H.resourceLogs.length))H.resourceLogs=[];H.resourceLogs.push(B.opentelemetry.proto.logs.v1.ResourceLogs.decode(J,J.uint32()));break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.resourceLogs!=null&&J.hasOwnProperty("resourceLogs")){if(!Array.isArray(J.resourceLogs))return"resourceLogs: array expected";for(var Y=0;Y<J.resourceLogs.length;++Y){var K=B.opentelemetry.proto.logs.v1.ResourceLogs.verify(J.resourceLogs[Y]);if(K)return"resourceLogs."+K}}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return J;var Y=new B.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(J.resourceLogs){if(!Array.isArray(J.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");Y.resourceLogs=[];for(var K=0;K<J.resourceLogs.length;++K){if(typeof J.resourceLogs[K]!=="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");Y.resourceLogs[K]=B.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(J.resourceLogs[K])}}return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.resourceLogs=[];if(J.resourceLogs&&J.resourceLogs.length){K.resourceLogs=[];for(var F=0;F<J.resourceLogs.length;++F)K.resourceLogs[F]=B.opentelemetry.proto.logs.v1.ResourceLogs.toObject(J.resourceLogs[F],Y)}return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},W}(),G.ExportLogsServiceResponse=function(){function W(Q){if(Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.partialSuccess=null,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.partialSuccess!=null&&Object.hasOwnProperty.call(J,"partialSuccess"))B.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(J.partialSuccess,Y.uint32(10).fork()).ldelim();return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.partialSuccess=B.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(J,J.uint32());break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.partialSuccess!=null&&J.hasOwnProperty("partialSuccess")){var Y=B.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(J.partialSuccess);if(Y)return"partialSuccess."+Y}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return J;var Y=new B.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(J.partialSuccess!=null){if(typeof J.partialSuccess!=="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");Y.partialSuccess=B.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(J.partialSuccess)}return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.defaults)K.partialSuccess=null;if(J.partialSuccess!=null&&J.hasOwnProperty("partialSuccess"))K.partialSuccess=B.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(J.partialSuccess,Y);return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},W}(),G.ExportLogsPartialSuccess=function(){function W(Q){if(Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.rejectedLogRecords=null,W.prototype.errorMessage=null,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.rejectedLogRecords!=null&&Object.hasOwnProperty.call(J,"rejectedLogRecords"))Y.uint32(8).int64(J.rejectedLogRecords);if(J.errorMessage!=null&&Object.hasOwnProperty.call(J,"errorMessage"))Y.uint32(18).string(J.errorMessage);return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.rejectedLogRecords=J.int64();break}case 2:{H.errorMessage=J.string();break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.rejectedLogRecords!=null&&J.hasOwnProperty("rejectedLogRecords")){if(!O.isInteger(J.rejectedLogRecords)&&!(J.rejectedLogRecords&&O.isInteger(J.rejectedLogRecords.low)&&O.isInteger(J.rejectedLogRecords.high)))return"rejectedLogRecords: integer|Long expected"}if(J.errorMessage!=null&&J.hasOwnProperty("errorMessage")){if(!O.isString(J.errorMessage))return"errorMessage: string expected"}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return J;var Y=new B.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;if(J.rejectedLogRecords!=null){if(O.Long)(Y.rejectedLogRecords=O.Long.fromValue(J.rejectedLogRecords)).unsigned=!1;else if(typeof J.rejectedLogRecords==="string")Y.rejectedLogRecords=parseInt(J.rejectedLogRecords,10);else if(typeof J.rejectedLogRecords==="number")Y.rejectedLogRecords=J.rejectedLogRecords;else if(typeof J.rejectedLogRecords==="object")Y.rejectedLogRecords=new O.LongBits(J.rejectedLogRecords.low>>>0,J.rejectedLogRecords.high>>>0).toNumber()}if(J.errorMessage!=null)Y.errorMessage=String(J.errorMessage);return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.defaults){if(O.Long){var F=new O.Long(0,0,!1);K.rejectedLogRecords=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.rejectedLogRecords=Y.longs===String?"0":0;K.errorMessage=""}if(J.rejectedLogRecords!=null&&J.hasOwnProperty("rejectedLogRecords"))if(typeof J.rejectedLogRecords==="number")K.rejectedLogRecords=Y.longs===String?String(J.rejectedLogRecords):J.rejectedLogRecords;else K.rejectedLogRecords=Y.longs===String?O.Long.prototype.toString.call(J.rejectedLogRecords):Y.longs===Number?new O.LongBits(J.rejectedLogRecords.low>>>0,J.rejectedLogRecords.high>>>0).toNumber():J.rejectedLogRecords;if(J.errorMessage!=null&&J.hasOwnProperty("errorMessage"))K.errorMessage=J.errorMessage;return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},W}(),G}(),q}(),z}(),X.metrics=function(){var z={};return z.v1=function(){var q={};return q.MetricsData=function(){function G(W){if(this.resourceMetrics=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.resourceMetrics=O.emptyArray,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.resourceMetrics!=null&&Q.resourceMetrics.length)for(var Y=0;Y<Q.resourceMetrics.length;++Y)B.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(Q.resourceMetrics[Y],J.uint32(10).fork()).ldelim();return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.metrics.v1.MetricsData;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.resourceMetrics&&F.resourceMetrics.length))F.resourceMetrics=[];F.resourceMetrics.push(B.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(Q,Q.uint32()));break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.resourceMetrics!=null&&Q.hasOwnProperty("resourceMetrics")){if(!Array.isArray(Q.resourceMetrics))return"resourceMetrics: array expected";for(var J=0;J<Q.resourceMetrics.length;++J){var Y=B.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(Q.resourceMetrics[J]);if(Y)return"resourceMetrics."+Y}}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.metrics.v1.MetricsData)return Q;var J=new B.opentelemetry.proto.metrics.v1.MetricsData;if(Q.resourceMetrics){if(!Array.isArray(Q.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");J.resourceMetrics=[];for(var Y=0;Y<Q.resourceMetrics.length;++Y){if(typeof Q.resourceMetrics[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");J.resourceMetrics[Y]=B.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(Q.resourceMetrics[Y])}}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.resourceMetrics=[];if(Q.resourceMetrics&&Q.resourceMetrics.length){Y.resourceMetrics=[];for(var K=0;K<Q.resourceMetrics.length;++K)Y.resourceMetrics[K]=B.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(Q.resourceMetrics[K],J)}return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.metrics.v1.MetricsData"},G}(),q.ResourceMetrics=function(){function G(W){if(this.scopeMetrics=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.resource=null,G.prototype.scopeMetrics=O.emptyArray,G.prototype.schemaUrl=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.resource!=null&&Object.hasOwnProperty.call(Q,"resource"))B.opentelemetry.proto.resource.v1.Resource.encode(Q.resource,J.uint32(10).fork()).ldelim();if(Q.scopeMetrics!=null&&Q.scopeMetrics.length)for(var Y=0;Y<Q.scopeMetrics.length;++Y)B.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(Q.scopeMetrics[Y],J.uint32(18).fork()).ldelim();if(Q.schemaUrl!=null&&Object.hasOwnProperty.call(Q,"schemaUrl"))J.uint32(26).string(Q.schemaUrl);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.metrics.v1.ResourceMetrics;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.resource=B.opentelemetry.proto.resource.v1.Resource.decode(Q,Q.uint32());break}case 2:{if(!(F.scopeMetrics&&F.scopeMetrics.length))F.scopeMetrics=[];F.scopeMetrics.push(B.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(Q,Q.uint32()));break}case 3:{F.schemaUrl=Q.string();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.resource!=null&&Q.hasOwnProperty("resource")){var J=B.opentelemetry.proto.resource.v1.Resource.verify(Q.resource);if(J)return"resource."+J}if(Q.scopeMetrics!=null&&Q.hasOwnProperty("scopeMetrics")){if(!Array.isArray(Q.scopeMetrics))return"scopeMetrics: array expected";for(var Y=0;Y<Q.scopeMetrics.length;++Y){var J=B.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(Q.scopeMetrics[Y]);if(J)return"scopeMetrics."+J}}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl")){if(!O.isString(Q.schemaUrl))return"schemaUrl: string expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.metrics.v1.ResourceMetrics)return Q;var J=new B.opentelemetry.proto.metrics.v1.ResourceMetrics;if(Q.resource!=null){if(typeof Q.resource!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");J.resource=B.opentelemetry.proto.resource.v1.Resource.fromObject(Q.resource)}if(Q.scopeMetrics){if(!Array.isArray(Q.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");J.scopeMetrics=[];for(var Y=0;Y<Q.scopeMetrics.length;++Y){if(typeof Q.scopeMetrics[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");J.scopeMetrics[Y]=B.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(Q.scopeMetrics[Y])}}if(Q.schemaUrl!=null)J.schemaUrl=String(Q.schemaUrl);return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.scopeMetrics=[];if(J.defaults)Y.resource=null,Y.schemaUrl="";if(Q.resource!=null&&Q.hasOwnProperty("resource"))Y.resource=B.opentelemetry.proto.resource.v1.Resource.toObject(Q.resource,J);if(Q.scopeMetrics&&Q.scopeMetrics.length){Y.scopeMetrics=[];for(var K=0;K<Q.scopeMetrics.length;++K)Y.scopeMetrics[K]=B.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(Q.scopeMetrics[K],J)}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl"))Y.schemaUrl=Q.schemaUrl;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},G}(),q.ScopeMetrics=function(){function G(W){if(this.metrics=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.scope=null,G.prototype.metrics=O.emptyArray,G.prototype.schemaUrl=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.scope!=null&&Object.hasOwnProperty.call(Q,"scope"))B.opentelemetry.proto.common.v1.InstrumentationScope.encode(Q.scope,J.uint32(10).fork()).ldelim();if(Q.metrics!=null&&Q.metrics.length)for(var Y=0;Y<Q.metrics.length;++Y)B.opentelemetry.proto.metrics.v1.Metric.encode(Q.metrics[Y],J.uint32(18).fork()).ldelim();if(Q.schemaUrl!=null&&Object.hasOwnProperty.call(Q,"schemaUrl"))J.uint32(26).string(Q.schemaUrl);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.metrics.v1.ScopeMetrics;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.scope=B.opentelemetry.proto.common.v1.InstrumentationScope.decode(Q,Q.uint32());break}case 2:{if(!(F.metrics&&F.metrics.length))F.metrics=[];F.metrics.push(B.opentelemetry.proto.metrics.v1.Metric.decode(Q,Q.uint32()));break}case 3:{F.schemaUrl=Q.string();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.scope!=null&&Q.hasOwnProperty("scope")){var J=B.opentelemetry.proto.common.v1.InstrumentationScope.verify(Q.scope);if(J)return"scope."+J}if(Q.metrics!=null&&Q.hasOwnProperty("metrics")){if(!Array.isArray(Q.metrics))return"metrics: array expected";for(var Y=0;Y<Q.metrics.length;++Y){var J=B.opentelemetry.proto.metrics.v1.Metric.verify(Q.metrics[Y]);if(J)return"metrics."+J}}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl")){if(!O.isString(Q.schemaUrl))return"schemaUrl: string expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.metrics.v1.ScopeMetrics)return Q;var J=new B.opentelemetry.proto.metrics.v1.ScopeMetrics;if(Q.scope!=null){if(typeof Q.scope!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");J.scope=B.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(Q.scope)}if(Q.metrics){if(!Array.isArray(Q.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");J.metrics=[];for(var Y=0;Y<Q.metrics.length;++Y){if(typeof Q.metrics[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");J.metrics[Y]=B.opentelemetry.proto.metrics.v1.Metric.fromObject(Q.metrics[Y])}}if(Q.schemaUrl!=null)J.schemaUrl=String(Q.schemaUrl);return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.metrics=[];if(J.defaults)Y.scope=null,Y.schemaUrl="";if(Q.scope!=null&&Q.hasOwnProperty("scope"))Y.scope=B.opentelemetry.proto.common.v1.InstrumentationScope.toObject(Q.scope,J);if(Q.metrics&&Q.metrics.length){Y.metrics=[];for(var K=0;K<Q.metrics.length;++K)Y.metrics[K]=B.opentelemetry.proto.metrics.v1.Metric.toObject(Q.metrics[K],J)}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl"))Y.schemaUrl=Q.schemaUrl;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},G}(),q.Metric=function(){function G(Q){if(this.metadata=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}G.prototype.name=null,G.prototype.description=null,G.prototype.unit=null,G.prototype.gauge=null,G.prototype.sum=null,G.prototype.histogram=null,G.prototype.exponentialHistogram=null,G.prototype.summary=null,G.prototype.metadata=O.emptyArray;var W;return Object.defineProperty(G.prototype,"data",{get:O.oneOfGetter(W=["gauge","sum","histogram","exponentialHistogram","summary"]),set:O.oneOfSetter(W)}),G.create=function(J){return new G(J)},G.encode=function(J,Y){if(!Y)Y=R.create();if(J.name!=null&&Object.hasOwnProperty.call(J,"name"))Y.uint32(10).string(J.name);if(J.description!=null&&Object.hasOwnProperty.call(J,"description"))Y.uint32(18).string(J.description);if(J.unit!=null&&Object.hasOwnProperty.call(J,"unit"))Y.uint32(26).string(J.unit);if(J.gauge!=null&&Object.hasOwnProperty.call(J,"gauge"))B.opentelemetry.proto.metrics.v1.Gauge.encode(J.gauge,Y.uint32(42).fork()).ldelim();if(J.sum!=null&&Object.hasOwnProperty.call(J,"sum"))B.opentelemetry.proto.metrics.v1.Sum.encode(J.sum,Y.uint32(58).fork()).ldelim();if(J.histogram!=null&&Object.hasOwnProperty.call(J,"histogram"))B.opentelemetry.proto.metrics.v1.Histogram.encode(J.histogram,Y.uint32(74).fork()).ldelim();if(J.exponentialHistogram!=null&&Object.hasOwnProperty.call(J,"exponentialHistogram"))B.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(J.exponentialHistogram,Y.uint32(82).fork()).ldelim();if(J.summary!=null&&Object.hasOwnProperty.call(J,"summary"))B.opentelemetry.proto.metrics.v1.Summary.encode(J.summary,Y.uint32(90).fork()).ldelim();if(J.metadata!=null&&J.metadata.length)for(var K=0;K<J.metadata.length;++K)B.opentelemetry.proto.common.v1.KeyValue.encode(J.metadata[K],Y.uint32(98).fork()).ldelim();return Y},G.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},G.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.metrics.v1.Metric;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.name=J.string();break}case 2:{H.description=J.string();break}case 3:{H.unit=J.string();break}case 5:{H.gauge=B.opentelemetry.proto.metrics.v1.Gauge.decode(J,J.uint32());break}case 7:{H.sum=B.opentelemetry.proto.metrics.v1.Sum.decode(J,J.uint32());break}case 9:{H.histogram=B.opentelemetry.proto.metrics.v1.Histogram.decode(J,J.uint32());break}case 10:{H.exponentialHistogram=B.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(J,J.uint32());break}case 11:{H.summary=B.opentelemetry.proto.metrics.v1.Summary.decode(J,J.uint32());break}case 12:{if(!(H.metadata&&H.metadata.length))H.metadata=[];H.metadata.push(B.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}default:J.skipType(N&7);break}}return H},G.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},G.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";var Y={};if(J.name!=null&&J.hasOwnProperty("name")){if(!O.isString(J.name))return"name: string expected"}if(J.description!=null&&J.hasOwnProperty("description")){if(!O.isString(J.description))return"description: string expected"}if(J.unit!=null&&J.hasOwnProperty("unit")){if(!O.isString(J.unit))return"unit: string expected"}if(J.gauge!=null&&J.hasOwnProperty("gauge")){Y.data=1;{var K=B.opentelemetry.proto.metrics.v1.Gauge.verify(J.gauge);if(K)return"gauge."+K}}if(J.sum!=null&&J.hasOwnProperty("sum")){if(Y.data===1)return"data: multiple values";Y.data=1;{var K=B.opentelemetry.proto.metrics.v1.Sum.verify(J.sum);if(K)return"sum."+K}}if(J.histogram!=null&&J.hasOwnProperty("histogram")){if(Y.data===1)return"data: multiple values";Y.data=1;{var K=B.opentelemetry.proto.metrics.v1.Histogram.verify(J.histogram);if(K)return"histogram."+K}}if(J.exponentialHistogram!=null&&J.hasOwnProperty("exponentialHistogram")){if(Y.data===1)return"data: multiple values";Y.data=1;{var K=B.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(J.exponentialHistogram);if(K)return"exponentialHistogram."+K}}if(J.summary!=null&&J.hasOwnProperty("summary")){if(Y.data===1)return"data: multiple values";Y.data=1;{var K=B.opentelemetry.proto.metrics.v1.Summary.verify(J.summary);if(K)return"summary."+K}}if(J.metadata!=null&&J.hasOwnProperty("metadata")){if(!Array.isArray(J.metadata))return"metadata: array expected";for(var F=0;F<J.metadata.length;++F){var K=B.opentelemetry.proto.common.v1.KeyValue.verify(J.metadata[F]);if(K)return"metadata."+K}}return null},G.fromObject=function(J){if(J instanceof B.opentelemetry.proto.metrics.v1.Metric)return J;var Y=new B.opentelemetry.proto.metrics.v1.Metric;if(J.name!=null)Y.name=String(J.name);if(J.description!=null)Y.description=String(J.description);if(J.unit!=null)Y.unit=String(J.unit);if(J.gauge!=null){if(typeof J.gauge!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");Y.gauge=B.opentelemetry.proto.metrics.v1.Gauge.fromObject(J.gauge)}if(J.sum!=null){if(typeof J.sum!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");Y.sum=B.opentelemetry.proto.metrics.v1.Sum.fromObject(J.sum)}if(J.histogram!=null){if(typeof J.histogram!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");Y.histogram=B.opentelemetry.proto.metrics.v1.Histogram.fromObject(J.histogram)}if(J.exponentialHistogram!=null){if(typeof J.exponentialHistogram!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");Y.exponentialHistogram=B.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(J.exponentialHistogram)}if(J.summary!=null){if(typeof J.summary!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");Y.summary=B.opentelemetry.proto.metrics.v1.Summary.fromObject(J.summary)}if(J.metadata){if(!Array.isArray(J.metadata))throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: array expected");Y.metadata=[];for(var K=0;K<J.metadata.length;++K){if(typeof J.metadata[K]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.metadata: object expected");Y.metadata[K]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(J.metadata[K])}}return Y},G.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.metadata=[];if(Y.defaults)K.name="",K.description="",K.unit="";if(J.name!=null&&J.hasOwnProperty("name"))K.name=J.name;if(J.description!=null&&J.hasOwnProperty("description"))K.description=J.description;if(J.unit!=null&&J.hasOwnProperty("unit"))K.unit=J.unit;if(J.gauge!=null&&J.hasOwnProperty("gauge")){if(K.gauge=B.opentelemetry.proto.metrics.v1.Gauge.toObject(J.gauge,Y),Y.oneofs)K.data="gauge"}if(J.sum!=null&&J.hasOwnProperty("sum")){if(K.sum=B.opentelemetry.proto.metrics.v1.Sum.toObject(J.sum,Y),Y.oneofs)K.data="sum"}if(J.histogram!=null&&J.hasOwnProperty("histogram")){if(K.histogram=B.opentelemetry.proto.metrics.v1.Histogram.toObject(J.histogram,Y),Y.oneofs)K.data="histogram"}if(J.exponentialHistogram!=null&&J.hasOwnProperty("exponentialHistogram")){if(K.exponentialHistogram=B.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(J.exponentialHistogram,Y),Y.oneofs)K.data="exponentialHistogram"}if(J.summary!=null&&J.hasOwnProperty("summary")){if(K.summary=B.opentelemetry.proto.metrics.v1.Summary.toObject(J.summary,Y),Y.oneofs)K.data="summary"}if(J.metadata&&J.metadata.length){K.metadata=[];for(var F=0;F<J.metadata.length;++F)K.metadata[F]=B.opentelemetry.proto.common.v1.KeyValue.toObject(J.metadata[F],Y)}return K},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Metric"},G}(),q.Gauge=function(){function G(W){if(this.dataPoints=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.dataPoints=O.emptyArray,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.dataPoints!=null&&Q.dataPoints.length)for(var Y=0;Y<Q.dataPoints.length;++Y)B.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(Q.dataPoints[Y],J.uint32(10).fork()).ldelim();return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.metrics.v1.Gauge;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(B.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(Q,Q.uint32()));break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.dataPoints!=null&&Q.hasOwnProperty("dataPoints")){if(!Array.isArray(Q.dataPoints))return"dataPoints: array expected";for(var J=0;J<Q.dataPoints.length;++J){var Y=B.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(Q.dataPoints[J]);if(Y)return"dataPoints."+Y}}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.metrics.v1.Gauge)return Q;var J=new B.opentelemetry.proto.metrics.v1.Gauge;if(Q.dataPoints){if(!Array.isArray(Q.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");J.dataPoints=[];for(var Y=0;Y<Q.dataPoints.length;++Y){if(typeof Q.dataPoints[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");J.dataPoints[Y]=B.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(Q.dataPoints[Y])}}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.dataPoints=[];if(Q.dataPoints&&Q.dataPoints.length){Y.dataPoints=[];for(var K=0;K<Q.dataPoints.length;++K)Y.dataPoints[K]=B.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(Q.dataPoints[K],J)}return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.metrics.v1.Gauge"},G}(),q.Sum=function(){function G(W){if(this.dataPoints=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.dataPoints=O.emptyArray,G.prototype.aggregationTemporality=null,G.prototype.isMonotonic=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.dataPoints!=null&&Q.dataPoints.length)for(var Y=0;Y<Q.dataPoints.length;++Y)B.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(Q.dataPoints[Y],J.uint32(10).fork()).ldelim();if(Q.aggregationTemporality!=null&&Object.hasOwnProperty.call(Q,"aggregationTemporality"))J.uint32(16).int32(Q.aggregationTemporality);if(Q.isMonotonic!=null&&Object.hasOwnProperty.call(Q,"isMonotonic"))J.uint32(24).bool(Q.isMonotonic);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.metrics.v1.Sum;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(B.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(Q,Q.uint32()));break}case 2:{F.aggregationTemporality=Q.int32();break}case 3:{F.isMonotonic=Q.bool();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.dataPoints!=null&&Q.hasOwnProperty("dataPoints")){if(!Array.isArray(Q.dataPoints))return"dataPoints: array expected";for(var J=0;J<Q.dataPoints.length;++J){var Y=B.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(Q.dataPoints[J]);if(Y)return"dataPoints."+Y}}if(Q.aggregationTemporality!=null&&Q.hasOwnProperty("aggregationTemporality"))switch(Q.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}if(Q.isMonotonic!=null&&Q.hasOwnProperty("isMonotonic")){if(typeof Q.isMonotonic!=="boolean")return"isMonotonic: boolean expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.metrics.v1.Sum)return Q;var J=new B.opentelemetry.proto.metrics.v1.Sum;if(Q.dataPoints){if(!Array.isArray(Q.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");J.dataPoints=[];for(var Y=0;Y<Q.dataPoints.length;++Y){if(typeof Q.dataPoints[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");J.dataPoints[Y]=B.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(Q.dataPoints[Y])}}switch(Q.aggregationTemporality){default:if(typeof Q.aggregationTemporality==="number"){J.aggregationTemporality=Q.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:J.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:J.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:J.aggregationTemporality=2;break}if(Q.isMonotonic!=null)J.isMonotonic=Boolean(Q.isMonotonic);return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.dataPoints=[];if(J.defaults)Y.aggregationTemporality=J.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,Y.isMonotonic=!1;if(Q.dataPoints&&Q.dataPoints.length){Y.dataPoints=[];for(var K=0;K<Q.dataPoints.length;++K)Y.dataPoints[K]=B.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(Q.dataPoints[K],J)}if(Q.aggregationTemporality!=null&&Q.hasOwnProperty("aggregationTemporality"))Y.aggregationTemporality=J.enums===String?B.opentelemetry.proto.metrics.v1.AggregationTemporality[Q.aggregationTemporality]===void 0?Q.aggregationTemporality:B.opentelemetry.proto.metrics.v1.AggregationTemporality[Q.aggregationTemporality]:Q.aggregationTemporality;if(Q.isMonotonic!=null&&Q.hasOwnProperty("isMonotonic"))Y.isMonotonic=Q.isMonotonic;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.metrics.v1.Sum"},G}(),q.Histogram=function(){function G(W){if(this.dataPoints=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.dataPoints=O.emptyArray,G.prototype.aggregationTemporality=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.dataPoints!=null&&Q.dataPoints.length)for(var Y=0;Y<Q.dataPoints.length;++Y)B.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(Q.dataPoints[Y],J.uint32(10).fork()).ldelim();if(Q.aggregationTemporality!=null&&Object.hasOwnProperty.call(Q,"aggregationTemporality"))J.uint32(16).int32(Q.aggregationTemporality);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.metrics.v1.Histogram;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(B.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(Q,Q.uint32()));break}case 2:{F.aggregationTemporality=Q.int32();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.dataPoints!=null&&Q.hasOwnProperty("dataPoints")){if(!Array.isArray(Q.dataPoints))return"dataPoints: array expected";for(var J=0;J<Q.dataPoints.length;++J){var Y=B.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(Q.dataPoints[J]);if(Y)return"dataPoints."+Y}}if(Q.aggregationTemporality!=null&&Q.hasOwnProperty("aggregationTemporality"))switch(Q.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.metrics.v1.Histogram)return Q;var J=new B.opentelemetry.proto.metrics.v1.Histogram;if(Q.dataPoints){if(!Array.isArray(Q.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");J.dataPoints=[];for(var Y=0;Y<Q.dataPoints.length;++Y){if(typeof Q.dataPoints[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");J.dataPoints[Y]=B.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(Q.dataPoints[Y])}}switch(Q.aggregationTemporality){default:if(typeof Q.aggregationTemporality==="number"){J.aggregationTemporality=Q.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:J.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:J.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:J.aggregationTemporality=2;break}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.dataPoints=[];if(J.defaults)Y.aggregationTemporality=J.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0;if(Q.dataPoints&&Q.dataPoints.length){Y.dataPoints=[];for(var K=0;K<Q.dataPoints.length;++K)Y.dataPoints[K]=B.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(Q.dataPoints[K],J)}if(Q.aggregationTemporality!=null&&Q.hasOwnProperty("aggregationTemporality"))Y.aggregationTemporality=J.enums===String?B.opentelemetry.proto.metrics.v1.AggregationTemporality[Q.aggregationTemporality]===void 0?Q.aggregationTemporality:B.opentelemetry.proto.metrics.v1.AggregationTemporality[Q.aggregationTemporality]:Q.aggregationTemporality;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.metrics.v1.Histogram"},G}(),q.ExponentialHistogram=function(){function G(W){if(this.dataPoints=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.dataPoints=O.emptyArray,G.prototype.aggregationTemporality=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.dataPoints!=null&&Q.dataPoints.length)for(var Y=0;Y<Q.dataPoints.length;++Y)B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(Q.dataPoints[Y],J.uint32(10).fork()).ldelim();if(Q.aggregationTemporality!=null&&Object.hasOwnProperty.call(Q,"aggregationTemporality"))J.uint32(16).int32(Q.aggregationTemporality);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.metrics.v1.ExponentialHistogram;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(Q,Q.uint32()));break}case 2:{F.aggregationTemporality=Q.int32();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.dataPoints!=null&&Q.hasOwnProperty("dataPoints")){if(!Array.isArray(Q.dataPoints))return"dataPoints: array expected";for(var J=0;J<Q.dataPoints.length;++J){var Y=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(Q.dataPoints[J]);if(Y)return"dataPoints."+Y}}if(Q.aggregationTemporality!=null&&Q.hasOwnProperty("aggregationTemporality"))switch(Q.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.metrics.v1.ExponentialHistogram)return Q;var J=new B.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(Q.dataPoints){if(!Array.isArray(Q.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");J.dataPoints=[];for(var Y=0;Y<Q.dataPoints.length;++Y){if(typeof Q.dataPoints[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");J.dataPoints[Y]=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(Q.dataPoints[Y])}}switch(Q.aggregationTemporality){default:if(typeof Q.aggregationTemporality==="number"){J.aggregationTemporality=Q.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:J.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:J.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:J.aggregationTemporality=2;break}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.dataPoints=[];if(J.defaults)Y.aggregationTemporality=J.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0;if(Q.dataPoints&&Q.dataPoints.length){Y.dataPoints=[];for(var K=0;K<Q.dataPoints.length;++K)Y.dataPoints[K]=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(Q.dataPoints[K],J)}if(Q.aggregationTemporality!=null&&Q.hasOwnProperty("aggregationTemporality"))Y.aggregationTemporality=J.enums===String?B.opentelemetry.proto.metrics.v1.AggregationTemporality[Q.aggregationTemporality]===void 0?Q.aggregationTemporality:B.opentelemetry.proto.metrics.v1.AggregationTemporality[Q.aggregationTemporality]:Q.aggregationTemporality;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},G}(),q.Summary=function(){function G(W){if(this.dataPoints=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.dataPoints=O.emptyArray,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.dataPoints!=null&&Q.dataPoints.length)for(var Y=0;Y<Q.dataPoints.length;++Y)B.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(Q.dataPoints[Y],J.uint32(10).fork()).ldelim();return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.metrics.v1.Summary;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.dataPoints&&F.dataPoints.length))F.dataPoints=[];F.dataPoints.push(B.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(Q,Q.uint32()));break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.dataPoints!=null&&Q.hasOwnProperty("dataPoints")){if(!Array.isArray(Q.dataPoints))return"dataPoints: array expected";for(var J=0;J<Q.dataPoints.length;++J){var Y=B.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(Q.dataPoints[J]);if(Y)return"dataPoints."+Y}}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.metrics.v1.Summary)return Q;var J=new B.opentelemetry.proto.metrics.v1.Summary;if(Q.dataPoints){if(!Array.isArray(Q.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");J.dataPoints=[];for(var Y=0;Y<Q.dataPoints.length;++Y){if(typeof Q.dataPoints[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");J.dataPoints[Y]=B.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(Q.dataPoints[Y])}}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.dataPoints=[];if(Q.dataPoints&&Q.dataPoints.length){Y.dataPoints=[];for(var K=0;K<Q.dataPoints.length;++K)Y.dataPoints[K]=B.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(Q.dataPoints[K],J)}return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.metrics.v1.Summary"},G}(),q.AggregationTemporality=function(){var G={},W=Object.create(G);return W[G[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,W[G[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,W[G[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,W}(),q.DataPointFlags=function(){var G={},W=Object.create(G);return W[G[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,W[G[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,W}(),q.NumberDataPoint=function(){function G(Q){if(this.attributes=[],this.exemplars=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}G.prototype.attributes=O.emptyArray,G.prototype.startTimeUnixNano=null,G.prototype.timeUnixNano=null,G.prototype.asDouble=null,G.prototype.asInt=null,G.prototype.exemplars=O.emptyArray,G.prototype.flags=null;var W;return Object.defineProperty(G.prototype,"value",{get:O.oneOfGetter(W=["asDouble","asInt"]),set:O.oneOfSetter(W)}),G.create=function(J){return new G(J)},G.encode=function(J,Y){if(!Y)Y=R.create();if(J.startTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"startTimeUnixNano"))Y.uint32(17).fixed64(J.startTimeUnixNano);if(J.timeUnixNano!=null&&Object.hasOwnProperty.call(J,"timeUnixNano"))Y.uint32(25).fixed64(J.timeUnixNano);if(J.asDouble!=null&&Object.hasOwnProperty.call(J,"asDouble"))Y.uint32(33).double(J.asDouble);if(J.exemplars!=null&&J.exemplars.length)for(var K=0;K<J.exemplars.length;++K)B.opentelemetry.proto.metrics.v1.Exemplar.encode(J.exemplars[K],Y.uint32(42).fork()).ldelim();if(J.asInt!=null&&Object.hasOwnProperty.call(J,"asInt"))Y.uint32(49).sfixed64(J.asInt);if(J.attributes!=null&&J.attributes.length)for(var K=0;K<J.attributes.length;++K)B.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[K],Y.uint32(58).fork()).ldelim();if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Y.uint32(64).uint32(J.flags);return Y},G.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},G.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.metrics.v1.NumberDataPoint;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 7:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 2:{H.startTimeUnixNano=J.fixed64();break}case 3:{H.timeUnixNano=J.fixed64();break}case 4:{H.asDouble=J.double();break}case 6:{H.asInt=J.sfixed64();break}case 5:{if(!(H.exemplars&&H.exemplars.length))H.exemplars=[];H.exemplars.push(B.opentelemetry.proto.metrics.v1.Exemplar.decode(J,J.uint32()));break}case 8:{H.flags=J.uint32();break}default:J.skipType(N&7);break}}return H},G.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},G.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";var Y={};if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var K=0;K<J.attributes.length;++K){var F=B.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[K]);if(F)return"attributes."+F}}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano")){if(!O.isInteger(J.startTimeUnixNano)&&!(J.startTimeUnixNano&&O.isInteger(J.startTimeUnixNano.low)&&O.isInteger(J.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano")){if(!O.isInteger(J.timeUnixNano)&&!(J.timeUnixNano&&O.isInteger(J.timeUnixNano.low)&&O.isInteger(J.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(J.asDouble!=null&&J.hasOwnProperty("asDouble")){if(Y.value=1,typeof J.asDouble!=="number")return"asDouble: number expected"}if(J.asInt!=null&&J.hasOwnProperty("asInt")){if(Y.value===1)return"value: multiple values";if(Y.value=1,!O.isInteger(J.asInt)&&!(J.asInt&&O.isInteger(J.asInt.low)&&O.isInteger(J.asInt.high)))return"asInt: integer|Long expected"}if(J.exemplars!=null&&J.hasOwnProperty("exemplars")){if(!Array.isArray(J.exemplars))return"exemplars: array expected";for(var K=0;K<J.exemplars.length;++K){var F=B.opentelemetry.proto.metrics.v1.Exemplar.verify(J.exemplars[K]);if(F)return"exemplars."+F}}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!O.isInteger(J.flags))return"flags: integer expected"}return null},G.fromObject=function(J){if(J instanceof B.opentelemetry.proto.metrics.v1.NumberDataPoint)return J;var Y=new B.opentelemetry.proto.metrics.v1.NumberDataPoint;if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");Y.attributes=[];for(var K=0;K<J.attributes.length;++K){if(typeof J.attributes[K]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");Y.attributes[K]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[K])}}if(J.startTimeUnixNano!=null){if(O.Long)(Y.startTimeUnixNano=O.Long.fromValue(J.startTimeUnixNano)).unsigned=!1;else if(typeof J.startTimeUnixNano==="string")Y.startTimeUnixNano=parseInt(J.startTimeUnixNano,10);else if(typeof J.startTimeUnixNano==="number")Y.startTimeUnixNano=J.startTimeUnixNano;else if(typeof J.startTimeUnixNano==="object")Y.startTimeUnixNano=new O.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber()}if(J.timeUnixNano!=null){if(O.Long)(Y.timeUnixNano=O.Long.fromValue(J.timeUnixNano)).unsigned=!1;else if(typeof J.timeUnixNano==="string")Y.timeUnixNano=parseInt(J.timeUnixNano,10);else if(typeof J.timeUnixNano==="number")Y.timeUnixNano=J.timeUnixNano;else if(typeof J.timeUnixNano==="object")Y.timeUnixNano=new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber()}if(J.asDouble!=null)Y.asDouble=Number(J.asDouble);if(J.asInt!=null){if(O.Long)(Y.asInt=O.Long.fromValue(J.asInt)).unsigned=!1;else if(typeof J.asInt==="string")Y.asInt=parseInt(J.asInt,10);else if(typeof J.asInt==="number")Y.asInt=J.asInt;else if(typeof J.asInt==="object")Y.asInt=new O.LongBits(J.asInt.low>>>0,J.asInt.high>>>0).toNumber()}if(J.exemplars){if(!Array.isArray(J.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");Y.exemplars=[];for(var K=0;K<J.exemplars.length;++K){if(typeof J.exemplars[K]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");Y.exemplars[K]=B.opentelemetry.proto.metrics.v1.Exemplar.fromObject(J.exemplars[K])}}if(J.flags!=null)Y.flags=J.flags>>>0;return Y},G.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.exemplars=[],K.attributes=[];if(Y.defaults){if(O.Long){var F=new O.Long(0,0,!1);K.startTimeUnixNano=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.startTimeUnixNano=Y.longs===String?"0":0;if(O.Long){var F=new O.Long(0,0,!1);K.timeUnixNano=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.timeUnixNano=Y.longs===String?"0":0;K.flags=0}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano"))if(typeof J.startTimeUnixNano==="number")K.startTimeUnixNano=Y.longs===String?String(J.startTimeUnixNano):J.startTimeUnixNano;else K.startTimeUnixNano=Y.longs===String?O.Long.prototype.toString.call(J.startTimeUnixNano):Y.longs===Number?new O.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber():J.startTimeUnixNano;if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano"))if(typeof J.timeUnixNano==="number")K.timeUnixNano=Y.longs===String?String(J.timeUnixNano):J.timeUnixNano;else K.timeUnixNano=Y.longs===String?O.Long.prototype.toString.call(J.timeUnixNano):Y.longs===Number?new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber():J.timeUnixNano;if(J.asDouble!=null&&J.hasOwnProperty("asDouble")){if(K.asDouble=Y.json&&!isFinite(J.asDouble)?String(J.asDouble):J.asDouble,Y.oneofs)K.value="asDouble"}if(J.exemplars&&J.exemplars.length){K.exemplars=[];for(var H=0;H<J.exemplars.length;++H)K.exemplars[H]=B.opentelemetry.proto.metrics.v1.Exemplar.toObject(J.exemplars[H],Y)}if(J.asInt!=null&&J.hasOwnProperty("asInt")){if(typeof J.asInt==="number")K.asInt=Y.longs===String?String(J.asInt):J.asInt;else K.asInt=Y.longs===String?O.Long.prototype.toString.call(J.asInt):Y.longs===Number?new O.LongBits(J.asInt.low>>>0,J.asInt.high>>>0).toNumber():J.asInt;if(Y.oneofs)K.value="asInt"}if(J.attributes&&J.attributes.length){K.attributes=[];for(var H=0;H<J.attributes.length;++H)K.attributes[H]=B.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[H],Y)}if(J.flags!=null&&J.hasOwnProperty("flags"))K.flags=J.flags;return K},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},G}(),q.HistogramDataPoint=function(){function G(Q){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}G.prototype.attributes=O.emptyArray,G.prototype.startTimeUnixNano=null,G.prototype.timeUnixNano=null,G.prototype.count=null,G.prototype.sum=null,G.prototype.bucketCounts=O.emptyArray,G.prototype.explicitBounds=O.emptyArray,G.prototype.exemplars=O.emptyArray,G.prototype.flags=null,G.prototype.min=null,G.prototype.max=null;var W;return Object.defineProperty(G.prototype,"_sum",{get:O.oneOfGetter(W=["sum"]),set:O.oneOfSetter(W)}),Object.defineProperty(G.prototype,"_min",{get:O.oneOfGetter(W=["min"]),set:O.oneOfSetter(W)}),Object.defineProperty(G.prototype,"_max",{get:O.oneOfGetter(W=["max"]),set:O.oneOfSetter(W)}),G.create=function(J){return new G(J)},G.encode=function(J,Y){if(!Y)Y=R.create();if(J.startTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"startTimeUnixNano"))Y.uint32(17).fixed64(J.startTimeUnixNano);if(J.timeUnixNano!=null&&Object.hasOwnProperty.call(J,"timeUnixNano"))Y.uint32(25).fixed64(J.timeUnixNano);if(J.count!=null&&Object.hasOwnProperty.call(J,"count"))Y.uint32(33).fixed64(J.count);if(J.sum!=null&&Object.hasOwnProperty.call(J,"sum"))Y.uint32(41).double(J.sum);if(J.bucketCounts!=null&&J.bucketCounts.length){Y.uint32(50).fork();for(var K=0;K<J.bucketCounts.length;++K)Y.fixed64(J.bucketCounts[K]);Y.ldelim()}if(J.explicitBounds!=null&&J.explicitBounds.length){Y.uint32(58).fork();for(var K=0;K<J.explicitBounds.length;++K)Y.double(J.explicitBounds[K]);Y.ldelim()}if(J.exemplars!=null&&J.exemplars.length)for(var K=0;K<J.exemplars.length;++K)B.opentelemetry.proto.metrics.v1.Exemplar.encode(J.exemplars[K],Y.uint32(66).fork()).ldelim();if(J.attributes!=null&&J.attributes.length)for(var K=0;K<J.attributes.length;++K)B.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[K],Y.uint32(74).fork()).ldelim();if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Y.uint32(80).uint32(J.flags);if(J.min!=null&&Object.hasOwnProperty.call(J,"min"))Y.uint32(89).double(J.min);if(J.max!=null&&Object.hasOwnProperty.call(J,"max"))Y.uint32(97).double(J.max);return Y},G.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},G.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.metrics.v1.HistogramDataPoint;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 9:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 2:{H.startTimeUnixNano=J.fixed64();break}case 3:{H.timeUnixNano=J.fixed64();break}case 4:{H.count=J.fixed64();break}case 5:{H.sum=J.double();break}case 6:{if(!(H.bucketCounts&&H.bucketCounts.length))H.bucketCounts=[];if((N&7)===2){var U=J.uint32()+J.pos;while(J.pos<U)H.bucketCounts.push(J.fixed64())}else H.bucketCounts.push(J.fixed64());break}case 7:{if(!(H.explicitBounds&&H.explicitBounds.length))H.explicitBounds=[];if((N&7)===2){var U=J.uint32()+J.pos;while(J.pos<U)H.explicitBounds.push(J.double())}else H.explicitBounds.push(J.double());break}case 8:{if(!(H.exemplars&&H.exemplars.length))H.exemplars=[];H.exemplars.push(B.opentelemetry.proto.metrics.v1.Exemplar.decode(J,J.uint32()));break}case 10:{H.flags=J.uint32();break}case 11:{H.min=J.double();break}case 12:{H.max=J.double();break}default:J.skipType(N&7);break}}return H},G.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},G.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";var Y={};if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var K=0;K<J.attributes.length;++K){var F=B.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[K]);if(F)return"attributes."+F}}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano")){if(!O.isInteger(J.startTimeUnixNano)&&!(J.startTimeUnixNano&&O.isInteger(J.startTimeUnixNano.low)&&O.isInteger(J.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano")){if(!O.isInteger(J.timeUnixNano)&&!(J.timeUnixNano&&O.isInteger(J.timeUnixNano.low)&&O.isInteger(J.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(J.count!=null&&J.hasOwnProperty("count")){if(!O.isInteger(J.count)&&!(J.count&&O.isInteger(J.count.low)&&O.isInteger(J.count.high)))return"count: integer|Long expected"}if(J.sum!=null&&J.hasOwnProperty("sum")){if(Y._sum=1,typeof J.sum!=="number")return"sum: number expected"}if(J.bucketCounts!=null&&J.hasOwnProperty("bucketCounts")){if(!Array.isArray(J.bucketCounts))return"bucketCounts: array expected";for(var K=0;K<J.bucketCounts.length;++K)if(!O.isInteger(J.bucketCounts[K])&&!(J.bucketCounts[K]&&O.isInteger(J.bucketCounts[K].low)&&O.isInteger(J.bucketCounts[K].high)))return"bucketCounts: integer|Long[] expected"}if(J.explicitBounds!=null&&J.hasOwnProperty("explicitBounds")){if(!Array.isArray(J.explicitBounds))return"explicitBounds: array expected";for(var K=0;K<J.explicitBounds.length;++K)if(typeof J.explicitBounds[K]!=="number")return"explicitBounds: number[] expected"}if(J.exemplars!=null&&J.hasOwnProperty("exemplars")){if(!Array.isArray(J.exemplars))return"exemplars: array expected";for(var K=0;K<J.exemplars.length;++K){var F=B.opentelemetry.proto.metrics.v1.Exemplar.verify(J.exemplars[K]);if(F)return"exemplars."+F}}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!O.isInteger(J.flags))return"flags: integer expected"}if(J.min!=null&&J.hasOwnProperty("min")){if(Y._min=1,typeof J.min!=="number")return"min: number expected"}if(J.max!=null&&J.hasOwnProperty("max")){if(Y._max=1,typeof J.max!=="number")return"max: number expected"}return null},G.fromObject=function(J){if(J instanceof B.opentelemetry.proto.metrics.v1.HistogramDataPoint)return J;var Y=new B.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");Y.attributes=[];for(var K=0;K<J.attributes.length;++K){if(typeof J.attributes[K]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");Y.attributes[K]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[K])}}if(J.startTimeUnixNano!=null){if(O.Long)(Y.startTimeUnixNano=O.Long.fromValue(J.startTimeUnixNano)).unsigned=!1;else if(typeof J.startTimeUnixNano==="string")Y.startTimeUnixNano=parseInt(J.startTimeUnixNano,10);else if(typeof J.startTimeUnixNano==="number")Y.startTimeUnixNano=J.startTimeUnixNano;else if(typeof J.startTimeUnixNano==="object")Y.startTimeUnixNano=new O.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber()}if(J.timeUnixNano!=null){if(O.Long)(Y.timeUnixNano=O.Long.fromValue(J.timeUnixNano)).unsigned=!1;else if(typeof J.timeUnixNano==="string")Y.timeUnixNano=parseInt(J.timeUnixNano,10);else if(typeof J.timeUnixNano==="number")Y.timeUnixNano=J.timeUnixNano;else if(typeof J.timeUnixNano==="object")Y.timeUnixNano=new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber()}if(J.count!=null){if(O.Long)(Y.count=O.Long.fromValue(J.count)).unsigned=!1;else if(typeof J.count==="string")Y.count=parseInt(J.count,10);else if(typeof J.count==="number")Y.count=J.count;else if(typeof J.count==="object")Y.count=new O.LongBits(J.count.low>>>0,J.count.high>>>0).toNumber()}if(J.sum!=null)Y.sum=Number(J.sum);if(J.bucketCounts){if(!Array.isArray(J.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");Y.bucketCounts=[];for(var K=0;K<J.bucketCounts.length;++K)if(O.Long)(Y.bucketCounts[K]=O.Long.fromValue(J.bucketCounts[K])).unsigned=!1;else if(typeof J.bucketCounts[K]==="string")Y.bucketCounts[K]=parseInt(J.bucketCounts[K],10);else if(typeof J.bucketCounts[K]==="number")Y.bucketCounts[K]=J.bucketCounts[K];else if(typeof J.bucketCounts[K]==="object")Y.bucketCounts[K]=new O.LongBits(J.bucketCounts[K].low>>>0,J.bucketCounts[K].high>>>0).toNumber()}if(J.explicitBounds){if(!Array.isArray(J.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");Y.explicitBounds=[];for(var K=0;K<J.explicitBounds.length;++K)Y.explicitBounds[K]=Number(J.explicitBounds[K])}if(J.exemplars){if(!Array.isArray(J.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");Y.exemplars=[];for(var K=0;K<J.exemplars.length;++K){if(typeof J.exemplars[K]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");Y.exemplars[K]=B.opentelemetry.proto.metrics.v1.Exemplar.fromObject(J.exemplars[K])}}if(J.flags!=null)Y.flags=J.flags>>>0;if(J.min!=null)Y.min=Number(J.min);if(J.max!=null)Y.max=Number(J.max);return Y},G.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.bucketCounts=[],K.explicitBounds=[],K.exemplars=[],K.attributes=[];if(Y.defaults){if(O.Long){var F=new O.Long(0,0,!1);K.startTimeUnixNano=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.startTimeUnixNano=Y.longs===String?"0":0;if(O.Long){var F=new O.Long(0,0,!1);K.timeUnixNano=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.timeUnixNano=Y.longs===String?"0":0;if(O.Long){var F=new O.Long(0,0,!1);K.count=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.count=Y.longs===String?"0":0;K.flags=0}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano"))if(typeof J.startTimeUnixNano==="number")K.startTimeUnixNano=Y.longs===String?String(J.startTimeUnixNano):J.startTimeUnixNano;else K.startTimeUnixNano=Y.longs===String?O.Long.prototype.toString.call(J.startTimeUnixNano):Y.longs===Number?new O.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber():J.startTimeUnixNano;if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano"))if(typeof J.timeUnixNano==="number")K.timeUnixNano=Y.longs===String?String(J.timeUnixNano):J.timeUnixNano;else K.timeUnixNano=Y.longs===String?O.Long.prototype.toString.call(J.timeUnixNano):Y.longs===Number?new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber():J.timeUnixNano;if(J.count!=null&&J.hasOwnProperty("count"))if(typeof J.count==="number")K.count=Y.longs===String?String(J.count):J.count;else K.count=Y.longs===String?O.Long.prototype.toString.call(J.count):Y.longs===Number?new O.LongBits(J.count.low>>>0,J.count.high>>>0).toNumber():J.count;if(J.sum!=null&&J.hasOwnProperty("sum")){if(K.sum=Y.json&&!isFinite(J.sum)?String(J.sum):J.sum,Y.oneofs)K._sum="sum"}if(J.bucketCounts&&J.bucketCounts.length){K.bucketCounts=[];for(var H=0;H<J.bucketCounts.length;++H)if(typeof J.bucketCounts[H]==="number")K.bucketCounts[H]=Y.longs===String?String(J.bucketCounts[H]):J.bucketCounts[H];else K.bucketCounts[H]=Y.longs===String?O.Long.prototype.toString.call(J.bucketCounts[H]):Y.longs===Number?new O.LongBits(J.bucketCounts[H].low>>>0,J.bucketCounts[H].high>>>0).toNumber():J.bucketCounts[H]}if(J.explicitBounds&&J.explicitBounds.length){K.explicitBounds=[];for(var H=0;H<J.explicitBounds.length;++H)K.explicitBounds[H]=Y.json&&!isFinite(J.explicitBounds[H])?String(J.explicitBounds[H]):J.explicitBounds[H]}if(J.exemplars&&J.exemplars.length){K.exemplars=[];for(var H=0;H<J.exemplars.length;++H)K.exemplars[H]=B.opentelemetry.proto.metrics.v1.Exemplar.toObject(J.exemplars[H],Y)}if(J.attributes&&J.attributes.length){K.attributes=[];for(var H=0;H<J.attributes.length;++H)K.attributes[H]=B.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[H],Y)}if(J.flags!=null&&J.hasOwnProperty("flags"))K.flags=J.flags;if(J.min!=null&&J.hasOwnProperty("min")){if(K.min=Y.json&&!isFinite(J.min)?String(J.min):J.min,Y.oneofs)K._min="min"}if(J.max!=null&&J.hasOwnProperty("max")){if(K.max=Y.json&&!isFinite(J.max)?String(J.max):J.max,Y.oneofs)K._max="max"}return K},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},G}(),q.ExponentialHistogramDataPoint=function(){function G(Q){if(this.attributes=[],this.exemplars=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}G.prototype.attributes=O.emptyArray,G.prototype.startTimeUnixNano=null,G.prototype.timeUnixNano=null,G.prototype.count=null,G.prototype.sum=null,G.prototype.scale=null,G.prototype.zeroCount=null,G.prototype.positive=null,G.prototype.negative=null,G.prototype.flags=null,G.prototype.exemplars=O.emptyArray,G.prototype.min=null,G.prototype.max=null,G.prototype.zeroThreshold=null;var W;return Object.defineProperty(G.prototype,"_sum",{get:O.oneOfGetter(W=["sum"]),set:O.oneOfSetter(W)}),Object.defineProperty(G.prototype,"_min",{get:O.oneOfGetter(W=["min"]),set:O.oneOfSetter(W)}),Object.defineProperty(G.prototype,"_max",{get:O.oneOfGetter(W=["max"]),set:O.oneOfSetter(W)}),G.create=function(J){return new G(J)},G.encode=function(J,Y){if(!Y)Y=R.create();if(J.attributes!=null&&J.attributes.length)for(var K=0;K<J.attributes.length;++K)B.opentelemetry.proto.common.v1.KeyValue.encode(J.attributes[K],Y.uint32(10).fork()).ldelim();if(J.startTimeUnixNano!=null&&Object.hasOwnProperty.call(J,"startTimeUnixNano"))Y.uint32(17).fixed64(J.startTimeUnixNano);if(J.timeUnixNano!=null&&Object.hasOwnProperty.call(J,"timeUnixNano"))Y.uint32(25).fixed64(J.timeUnixNano);if(J.count!=null&&Object.hasOwnProperty.call(J,"count"))Y.uint32(33).fixed64(J.count);if(J.sum!=null&&Object.hasOwnProperty.call(J,"sum"))Y.uint32(41).double(J.sum);if(J.scale!=null&&Object.hasOwnProperty.call(J,"scale"))Y.uint32(48).sint32(J.scale);if(J.zeroCount!=null&&Object.hasOwnProperty.call(J,"zeroCount"))Y.uint32(57).fixed64(J.zeroCount);if(J.positive!=null&&Object.hasOwnProperty.call(J,"positive"))B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(J.positive,Y.uint32(66).fork()).ldelim();if(J.negative!=null&&Object.hasOwnProperty.call(J,"negative"))B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(J.negative,Y.uint32(74).fork()).ldelim();if(J.flags!=null&&Object.hasOwnProperty.call(J,"flags"))Y.uint32(80).uint32(J.flags);if(J.exemplars!=null&&J.exemplars.length)for(var K=0;K<J.exemplars.length;++K)B.opentelemetry.proto.metrics.v1.Exemplar.encode(J.exemplars[K],Y.uint32(90).fork()).ldelim();if(J.min!=null&&Object.hasOwnProperty.call(J,"min"))Y.uint32(97).double(J.min);if(J.max!=null&&Object.hasOwnProperty.call(J,"max"))Y.uint32(105).double(J.max);if(J.zeroThreshold!=null&&Object.hasOwnProperty.call(J,"zeroThreshold"))Y.uint32(113).double(J.zeroThreshold);return Y},G.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},G.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{if(!(H.attributes&&H.attributes.length))H.attributes=[];H.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 2:{H.startTimeUnixNano=J.fixed64();break}case 3:{H.timeUnixNano=J.fixed64();break}case 4:{H.count=J.fixed64();break}case 5:{H.sum=J.double();break}case 6:{H.scale=J.sint32();break}case 7:{H.zeroCount=J.fixed64();break}case 8:{H.positive=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(J,J.uint32());break}case 9:{H.negative=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(J,J.uint32());break}case 10:{H.flags=J.uint32();break}case 11:{if(!(H.exemplars&&H.exemplars.length))H.exemplars=[];H.exemplars.push(B.opentelemetry.proto.metrics.v1.Exemplar.decode(J,J.uint32()));break}case 12:{H.min=J.double();break}case 13:{H.max=J.double();break}case 14:{H.zeroThreshold=J.double();break}default:J.skipType(N&7);break}}return H},G.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},G.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";var Y={};if(J.attributes!=null&&J.hasOwnProperty("attributes")){if(!Array.isArray(J.attributes))return"attributes: array expected";for(var K=0;K<J.attributes.length;++K){var F=B.opentelemetry.proto.common.v1.KeyValue.verify(J.attributes[K]);if(F)return"attributes."+F}}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano")){if(!O.isInteger(J.startTimeUnixNano)&&!(J.startTimeUnixNano&&O.isInteger(J.startTimeUnixNano.low)&&O.isInteger(J.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano")){if(!O.isInteger(J.timeUnixNano)&&!(J.timeUnixNano&&O.isInteger(J.timeUnixNano.low)&&O.isInteger(J.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(J.count!=null&&J.hasOwnProperty("count")){if(!O.isInteger(J.count)&&!(J.count&&O.isInteger(J.count.low)&&O.isInteger(J.count.high)))return"count: integer|Long expected"}if(J.sum!=null&&J.hasOwnProperty("sum")){if(Y._sum=1,typeof J.sum!=="number")return"sum: number expected"}if(J.scale!=null&&J.hasOwnProperty("scale")){if(!O.isInteger(J.scale))return"scale: integer expected"}if(J.zeroCount!=null&&J.hasOwnProperty("zeroCount")){if(!O.isInteger(J.zeroCount)&&!(J.zeroCount&&O.isInteger(J.zeroCount.low)&&O.isInteger(J.zeroCount.high)))return"zeroCount: integer|Long expected"}if(J.positive!=null&&J.hasOwnProperty("positive")){var F=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(J.positive);if(F)return"positive."+F}if(J.negative!=null&&J.hasOwnProperty("negative")){var F=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(J.negative);if(F)return"negative."+F}if(J.flags!=null&&J.hasOwnProperty("flags")){if(!O.isInteger(J.flags))return"flags: integer expected"}if(J.exemplars!=null&&J.hasOwnProperty("exemplars")){if(!Array.isArray(J.exemplars))return"exemplars: array expected";for(var K=0;K<J.exemplars.length;++K){var F=B.opentelemetry.proto.metrics.v1.Exemplar.verify(J.exemplars[K]);if(F)return"exemplars."+F}}if(J.min!=null&&J.hasOwnProperty("min")){if(Y._min=1,typeof J.min!=="number")return"min: number expected"}if(J.max!=null&&J.hasOwnProperty("max")){if(Y._max=1,typeof J.max!=="number")return"max: number expected"}if(J.zeroThreshold!=null&&J.hasOwnProperty("zeroThreshold")){if(typeof J.zeroThreshold!=="number")return"zeroThreshold: number expected"}return null},G.fromObject=function(J){if(J instanceof B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return J;var Y=new B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(J.attributes){if(!Array.isArray(J.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");Y.attributes=[];for(var K=0;K<J.attributes.length;++K){if(typeof J.attributes[K]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");Y.attributes[K]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(J.attributes[K])}}if(J.startTimeUnixNano!=null){if(O.Long)(Y.startTimeUnixNano=O.Long.fromValue(J.startTimeUnixNano)).unsigned=!1;else if(typeof J.startTimeUnixNano==="string")Y.startTimeUnixNano=parseInt(J.startTimeUnixNano,10);else if(typeof J.startTimeUnixNano==="number")Y.startTimeUnixNano=J.startTimeUnixNano;else if(typeof J.startTimeUnixNano==="object")Y.startTimeUnixNano=new O.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber()}if(J.timeUnixNano!=null){if(O.Long)(Y.timeUnixNano=O.Long.fromValue(J.timeUnixNano)).unsigned=!1;else if(typeof J.timeUnixNano==="string")Y.timeUnixNano=parseInt(J.timeUnixNano,10);else if(typeof J.timeUnixNano==="number")Y.timeUnixNano=J.timeUnixNano;else if(typeof J.timeUnixNano==="object")Y.timeUnixNano=new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber()}if(J.count!=null){if(O.Long)(Y.count=O.Long.fromValue(J.count)).unsigned=!1;else if(typeof J.count==="string")Y.count=parseInt(J.count,10);else if(typeof J.count==="number")Y.count=J.count;else if(typeof J.count==="object")Y.count=new O.LongBits(J.count.low>>>0,J.count.high>>>0).toNumber()}if(J.sum!=null)Y.sum=Number(J.sum);if(J.scale!=null)Y.scale=J.scale|0;if(J.zeroCount!=null){if(O.Long)(Y.zeroCount=O.Long.fromValue(J.zeroCount)).unsigned=!1;else if(typeof J.zeroCount==="string")Y.zeroCount=parseInt(J.zeroCount,10);else if(typeof J.zeroCount==="number")Y.zeroCount=J.zeroCount;else if(typeof J.zeroCount==="object")Y.zeroCount=new O.LongBits(J.zeroCount.low>>>0,J.zeroCount.high>>>0).toNumber()}if(J.positive!=null){if(typeof J.positive!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");Y.positive=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(J.positive)}if(J.negative!=null){if(typeof J.negative!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");Y.negative=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(J.negative)}if(J.flags!=null)Y.flags=J.flags>>>0;if(J.exemplars){if(!Array.isArray(J.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");Y.exemplars=[];for(var K=0;K<J.exemplars.length;++K){if(typeof J.exemplars[K]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");Y.exemplars[K]=B.opentelemetry.proto.metrics.v1.Exemplar.fromObject(J.exemplars[K])}}if(J.min!=null)Y.min=Number(J.min);if(J.max!=null)Y.max=Number(J.max);if(J.zeroThreshold!=null)Y.zeroThreshold=Number(J.zeroThreshold);return Y},G.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.attributes=[],K.exemplars=[];if(Y.defaults){if(O.Long){var F=new O.Long(0,0,!1);K.startTimeUnixNano=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.startTimeUnixNano=Y.longs===String?"0":0;if(O.Long){var F=new O.Long(0,0,!1);K.timeUnixNano=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.timeUnixNano=Y.longs===String?"0":0;if(O.Long){var F=new O.Long(0,0,!1);K.count=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.count=Y.longs===String?"0":0;if(K.scale=0,O.Long){var F=new O.Long(0,0,!1);K.zeroCount=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.zeroCount=Y.longs===String?"0":0;K.positive=null,K.negative=null,K.flags=0,K.zeroThreshold=0}if(J.attributes&&J.attributes.length){K.attributes=[];for(var H=0;H<J.attributes.length;++H)K.attributes[H]=B.opentelemetry.proto.common.v1.KeyValue.toObject(J.attributes[H],Y)}if(J.startTimeUnixNano!=null&&J.hasOwnProperty("startTimeUnixNano"))if(typeof J.startTimeUnixNano==="number")K.startTimeUnixNano=Y.longs===String?String(J.startTimeUnixNano):J.startTimeUnixNano;else K.startTimeUnixNano=Y.longs===String?O.Long.prototype.toString.call(J.startTimeUnixNano):Y.longs===Number?new O.LongBits(J.startTimeUnixNano.low>>>0,J.startTimeUnixNano.high>>>0).toNumber():J.startTimeUnixNano;if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano"))if(typeof J.timeUnixNano==="number")K.timeUnixNano=Y.longs===String?String(J.timeUnixNano):J.timeUnixNano;else K.timeUnixNano=Y.longs===String?O.Long.prototype.toString.call(J.timeUnixNano):Y.longs===Number?new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber():J.timeUnixNano;if(J.count!=null&&J.hasOwnProperty("count"))if(typeof J.count==="number")K.count=Y.longs===String?String(J.count):J.count;else K.count=Y.longs===String?O.Long.prototype.toString.call(J.count):Y.longs===Number?new O.LongBits(J.count.low>>>0,J.count.high>>>0).toNumber():J.count;if(J.sum!=null&&J.hasOwnProperty("sum")){if(K.sum=Y.json&&!isFinite(J.sum)?String(J.sum):J.sum,Y.oneofs)K._sum="sum"}if(J.scale!=null&&J.hasOwnProperty("scale"))K.scale=J.scale;if(J.zeroCount!=null&&J.hasOwnProperty("zeroCount"))if(typeof J.zeroCount==="number")K.zeroCount=Y.longs===String?String(J.zeroCount):J.zeroCount;else K.zeroCount=Y.longs===String?O.Long.prototype.toString.call(J.zeroCount):Y.longs===Number?new O.LongBits(J.zeroCount.low>>>0,J.zeroCount.high>>>0).toNumber():J.zeroCount;if(J.positive!=null&&J.hasOwnProperty("positive"))K.positive=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(J.positive,Y);if(J.negative!=null&&J.hasOwnProperty("negative"))K.negative=B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(J.negative,Y);if(J.flags!=null&&J.hasOwnProperty("flags"))K.flags=J.flags;if(J.exemplars&&J.exemplars.length){K.exemplars=[];for(var H=0;H<J.exemplars.length;++H)K.exemplars[H]=B.opentelemetry.proto.metrics.v1.Exemplar.toObject(J.exemplars[H],Y)}if(J.min!=null&&J.hasOwnProperty("min")){if(K.min=Y.json&&!isFinite(J.min)?String(J.min):J.min,Y.oneofs)K._min="min"}if(J.max!=null&&J.hasOwnProperty("max")){if(K.max=Y.json&&!isFinite(J.max)?String(J.max):J.max,Y.oneofs)K._max="max"}if(J.zeroThreshold!=null&&J.hasOwnProperty("zeroThreshold"))K.zeroThreshold=Y.json&&!isFinite(J.zeroThreshold)?String(J.zeroThreshold):J.zeroThreshold;return K},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},G.Buckets=function(){function Q(J){if(this.bucketCounts=[],J){for(var Y=Object.keys(J),K=0;K<Y.length;++K)if(J[Y[K]]!=null)this[Y[K]]=J[Y[K]]}}return Q.prototype.offset=null,Q.prototype.bucketCounts=O.emptyArray,Q.create=function(Y){return new Q(Y)},Q.encode=function(Y,K){if(!K)K=R.create();if(Y.offset!=null&&Object.hasOwnProperty.call(Y,"offset"))K.uint32(8).sint32(Y.offset);if(Y.bucketCounts!=null&&Y.bucketCounts.length){K.uint32(18).fork();for(var F=0;F<Y.bucketCounts.length;++F)K.uint64(Y.bucketCounts[F]);K.ldelim()}return K},Q.encodeDelimited=function(Y,K){return this.encode(Y,K).ldelim()},Q.decode=function(Y,K,F){if(!(Y instanceof C))Y=C.create(Y);var H=K===void 0?Y.len:Y.pos+K,N=new B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;while(Y.pos<H){var U=Y.uint32();if(U===F)break;switch(U>>>3){case 1:{N.offset=Y.sint32();break}case 2:{if(!(N.bucketCounts&&N.bucketCounts.length))N.bucketCounts=[];if((U&7)===2){var E=Y.uint32()+Y.pos;while(Y.pos<E)N.bucketCounts.push(Y.uint64())}else N.bucketCounts.push(Y.uint64());break}default:Y.skipType(U&7);break}}return N},Q.decodeDelimited=function(Y){if(!(Y instanceof C))Y=new C(Y);return this.decode(Y,Y.uint32())},Q.verify=function(Y){if(typeof Y!=="object"||Y===null)return"object expected";if(Y.offset!=null&&Y.hasOwnProperty("offset")){if(!O.isInteger(Y.offset))return"offset: integer expected"}if(Y.bucketCounts!=null&&Y.hasOwnProperty("bucketCounts")){if(!Array.isArray(Y.bucketCounts))return"bucketCounts: array expected";for(var K=0;K<Y.bucketCounts.length;++K)if(!O.isInteger(Y.bucketCounts[K])&&!(Y.bucketCounts[K]&&O.isInteger(Y.bucketCounts[K].low)&&O.isInteger(Y.bucketCounts[K].high)))return"bucketCounts: integer|Long[] expected"}return null},Q.fromObject=function(Y){if(Y instanceof B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return Y;var K=new B.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(Y.offset!=null)K.offset=Y.offset|0;if(Y.bucketCounts){if(!Array.isArray(Y.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");K.bucketCounts=[];for(var F=0;F<Y.bucketCounts.length;++F)if(O.Long)(K.bucketCounts[F]=O.Long.fromValue(Y.bucketCounts[F])).unsigned=!0;else if(typeof Y.bucketCounts[F]==="string")K.bucketCounts[F]=parseInt(Y.bucketCounts[F],10);else if(typeof Y.bucketCounts[F]==="number")K.bucketCounts[F]=Y.bucketCounts[F];else if(typeof Y.bucketCounts[F]==="object")K.bucketCounts[F]=new O.LongBits(Y.bucketCounts[F].low>>>0,Y.bucketCounts[F].high>>>0).toNumber(!0)}return K},Q.toObject=function(Y,K){if(!K)K={};var F={};if(K.arrays||K.defaults)F.bucketCounts=[];if(K.defaults)F.offset=0;if(Y.offset!=null&&Y.hasOwnProperty("offset"))F.offset=Y.offset;if(Y.bucketCounts&&Y.bucketCounts.length){F.bucketCounts=[];for(var H=0;H<Y.bucketCounts.length;++H)if(typeof Y.bucketCounts[H]==="number")F.bucketCounts[H]=K.longs===String?String(Y.bucketCounts[H]):Y.bucketCounts[H];else F.bucketCounts[H]=K.longs===String?O.Long.prototype.toString.call(Y.bucketCounts[H]):K.longs===Number?new O.LongBits(Y.bucketCounts[H].low>>>0,Y.bucketCounts[H].high>>>0).toNumber(!0):Y.bucketCounts[H]}return F},Q.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},Q.getTypeUrl=function(Y){if(Y===void 0)Y="type.googleapis.com";return Y+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},Q}(),G}(),q.SummaryDataPoint=function(){function G(W){if(this.attributes=[],this.quantileValues=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.attributes=O.emptyArray,G.prototype.startTimeUnixNano=null,G.prototype.timeUnixNano=null,G.prototype.count=null,G.prototype.sum=null,G.prototype.quantileValues=O.emptyArray,G.prototype.flags=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.startTimeUnixNano!=null&&Object.hasOwnProperty.call(Q,"startTimeUnixNano"))J.uint32(17).fixed64(Q.startTimeUnixNano);if(Q.timeUnixNano!=null&&Object.hasOwnProperty.call(Q,"timeUnixNano"))J.uint32(25).fixed64(Q.timeUnixNano);if(Q.count!=null&&Object.hasOwnProperty.call(Q,"count"))J.uint32(33).fixed64(Q.count);if(Q.sum!=null&&Object.hasOwnProperty.call(Q,"sum"))J.uint32(41).double(Q.sum);if(Q.quantileValues!=null&&Q.quantileValues.length)for(var Y=0;Y<Q.quantileValues.length;++Y)B.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(Q.quantileValues[Y],J.uint32(50).fork()).ldelim();if(Q.attributes!=null&&Q.attributes.length)for(var Y=0;Y<Q.attributes.length;++Y)B.opentelemetry.proto.common.v1.KeyValue.encode(Q.attributes[Y],J.uint32(58).fork()).ldelim();if(Q.flags!=null&&Object.hasOwnProperty.call(Q,"flags"))J.uint32(64).uint32(Q.flags);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.metrics.v1.SummaryDataPoint;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 7:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(Q,Q.uint32()));break}case 2:{F.startTimeUnixNano=Q.fixed64();break}case 3:{F.timeUnixNano=Q.fixed64();break}case 4:{F.count=Q.fixed64();break}case 5:{F.sum=Q.double();break}case 6:{if(!(F.quantileValues&&F.quantileValues.length))F.quantileValues=[];F.quantileValues.push(B.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(Q,Q.uint32()));break}case 8:{F.flags=Q.uint32();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.attributes!=null&&Q.hasOwnProperty("attributes")){if(!Array.isArray(Q.attributes))return"attributes: array expected";for(var J=0;J<Q.attributes.length;++J){var Y=B.opentelemetry.proto.common.v1.KeyValue.verify(Q.attributes[J]);if(Y)return"attributes."+Y}}if(Q.startTimeUnixNano!=null&&Q.hasOwnProperty("startTimeUnixNano")){if(!O.isInteger(Q.startTimeUnixNano)&&!(Q.startTimeUnixNano&&O.isInteger(Q.startTimeUnixNano.low)&&O.isInteger(Q.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected"}if(Q.timeUnixNano!=null&&Q.hasOwnProperty("timeUnixNano")){if(!O.isInteger(Q.timeUnixNano)&&!(Q.timeUnixNano&&O.isInteger(Q.timeUnixNano.low)&&O.isInteger(Q.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Q.count!=null&&Q.hasOwnProperty("count")){if(!O.isInteger(Q.count)&&!(Q.count&&O.isInteger(Q.count.low)&&O.isInteger(Q.count.high)))return"count: integer|Long expected"}if(Q.sum!=null&&Q.hasOwnProperty("sum")){if(typeof Q.sum!=="number")return"sum: number expected"}if(Q.quantileValues!=null&&Q.hasOwnProperty("quantileValues")){if(!Array.isArray(Q.quantileValues))return"quantileValues: array expected";for(var J=0;J<Q.quantileValues.length;++J){var Y=B.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(Q.quantileValues[J]);if(Y)return"quantileValues."+Y}}if(Q.flags!=null&&Q.hasOwnProperty("flags")){if(!O.isInteger(Q.flags))return"flags: integer expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.metrics.v1.SummaryDataPoint)return Q;var J=new B.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(Q.attributes){if(!Array.isArray(Q.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");J.attributes=[];for(var Y=0;Y<Q.attributes.length;++Y){if(typeof Q.attributes[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");J.attributes[Y]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(Q.attributes[Y])}}if(Q.startTimeUnixNano!=null){if(O.Long)(J.startTimeUnixNano=O.Long.fromValue(Q.startTimeUnixNano)).unsigned=!1;else if(typeof Q.startTimeUnixNano==="string")J.startTimeUnixNano=parseInt(Q.startTimeUnixNano,10);else if(typeof Q.startTimeUnixNano==="number")J.startTimeUnixNano=Q.startTimeUnixNano;else if(typeof Q.startTimeUnixNano==="object")J.startTimeUnixNano=new O.LongBits(Q.startTimeUnixNano.low>>>0,Q.startTimeUnixNano.high>>>0).toNumber()}if(Q.timeUnixNano!=null){if(O.Long)(J.timeUnixNano=O.Long.fromValue(Q.timeUnixNano)).unsigned=!1;else if(typeof Q.timeUnixNano==="string")J.timeUnixNano=parseInt(Q.timeUnixNano,10);else if(typeof Q.timeUnixNano==="number")J.timeUnixNano=Q.timeUnixNano;else if(typeof Q.timeUnixNano==="object")J.timeUnixNano=new O.LongBits(Q.timeUnixNano.low>>>0,Q.timeUnixNano.high>>>0).toNumber()}if(Q.count!=null){if(O.Long)(J.count=O.Long.fromValue(Q.count)).unsigned=!1;else if(typeof Q.count==="string")J.count=parseInt(Q.count,10);else if(typeof Q.count==="number")J.count=Q.count;else if(typeof Q.count==="object")J.count=new O.LongBits(Q.count.low>>>0,Q.count.high>>>0).toNumber()}if(Q.sum!=null)J.sum=Number(Q.sum);if(Q.quantileValues){if(!Array.isArray(Q.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");J.quantileValues=[];for(var Y=0;Y<Q.quantileValues.length;++Y){if(typeof Q.quantileValues[Y]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");J.quantileValues[Y]=B.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(Q.quantileValues[Y])}}if(Q.flags!=null)J.flags=Q.flags>>>0;return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.quantileValues=[],Y.attributes=[];if(J.defaults){if(O.Long){var K=new O.Long(0,0,!1);Y.startTimeUnixNano=J.longs===String?K.toString():J.longs===Number?K.toNumber():K}else Y.startTimeUnixNano=J.longs===String?"0":0;if(O.Long){var K=new O.Long(0,0,!1);Y.timeUnixNano=J.longs===String?K.toString():J.longs===Number?K.toNumber():K}else Y.timeUnixNano=J.longs===String?"0":0;if(O.Long){var K=new O.Long(0,0,!1);Y.count=J.longs===String?K.toString():J.longs===Number?K.toNumber():K}else Y.count=J.longs===String?"0":0;Y.sum=0,Y.flags=0}if(Q.startTimeUnixNano!=null&&Q.hasOwnProperty("startTimeUnixNano"))if(typeof Q.startTimeUnixNano==="number")Y.startTimeUnixNano=J.longs===String?String(Q.startTimeUnixNano):Q.startTimeUnixNano;else Y.startTimeUnixNano=J.longs===String?O.Long.prototype.toString.call(Q.startTimeUnixNano):J.longs===Number?new O.LongBits(Q.startTimeUnixNano.low>>>0,Q.startTimeUnixNano.high>>>0).toNumber():Q.startTimeUnixNano;if(Q.timeUnixNano!=null&&Q.hasOwnProperty("timeUnixNano"))if(typeof Q.timeUnixNano==="number")Y.timeUnixNano=J.longs===String?String(Q.timeUnixNano):Q.timeUnixNano;else Y.timeUnixNano=J.longs===String?O.Long.prototype.toString.call(Q.timeUnixNano):J.longs===Number?new O.LongBits(Q.timeUnixNano.low>>>0,Q.timeUnixNano.high>>>0).toNumber():Q.timeUnixNano;if(Q.count!=null&&Q.hasOwnProperty("count"))if(typeof Q.count==="number")Y.count=J.longs===String?String(Q.count):Q.count;else Y.count=J.longs===String?O.Long.prototype.toString.call(Q.count):J.longs===Number?new O.LongBits(Q.count.low>>>0,Q.count.high>>>0).toNumber():Q.count;if(Q.sum!=null&&Q.hasOwnProperty("sum"))Y.sum=J.json&&!isFinite(Q.sum)?String(Q.sum):Q.sum;if(Q.quantileValues&&Q.quantileValues.length){Y.quantileValues=[];for(var F=0;F<Q.quantileValues.length;++F)Y.quantileValues[F]=B.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(Q.quantileValues[F],J)}if(Q.attributes&&Q.attributes.length){Y.attributes=[];for(var F=0;F<Q.attributes.length;++F)Y.attributes[F]=B.opentelemetry.proto.common.v1.KeyValue.toObject(Q.attributes[F],J)}if(Q.flags!=null&&Q.hasOwnProperty("flags"))Y.flags=Q.flags;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},G.ValueAtQuantile=function(){function W(Q){if(Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}return W.prototype.quantile=null,W.prototype.value=null,W.create=function(J){return new W(J)},W.encode=function(J,Y){if(!Y)Y=R.create();if(J.quantile!=null&&Object.hasOwnProperty.call(J,"quantile"))Y.uint32(9).double(J.quantile);if(J.value!=null&&Object.hasOwnProperty.call(J,"value"))Y.uint32(17).double(J.value);return Y},W.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},W.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 1:{H.quantile=J.double();break}case 2:{H.value=J.double();break}default:J.skipType(N&7);break}}return H},W.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},W.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";if(J.quantile!=null&&J.hasOwnProperty("quantile")){if(typeof J.quantile!=="number")return"quantile: number expected"}if(J.value!=null&&J.hasOwnProperty("value")){if(typeof J.value!=="number")return"value: number expected"}return null},W.fromObject=function(J){if(J instanceof B.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return J;var Y=new B.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;if(J.quantile!=null)Y.quantile=Number(J.quantile);if(J.value!=null)Y.value=Number(J.value);return Y},W.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.defaults)K.quantile=0,K.value=0;if(J.quantile!=null&&J.hasOwnProperty("quantile"))K.quantile=Y.json&&!isFinite(J.quantile)?String(J.quantile):J.quantile;if(J.value!=null&&J.hasOwnProperty("value"))K.value=Y.json&&!isFinite(J.value)?String(J.value):J.value;return K},W.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},W.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},W}(),G}(),q.Exemplar=function(){function G(Q){if(this.filteredAttributes=[],Q){for(var J=Object.keys(Q),Y=0;Y<J.length;++Y)if(Q[J[Y]]!=null)this[J[Y]]=Q[J[Y]]}}G.prototype.filteredAttributes=O.emptyArray,G.prototype.timeUnixNano=null,G.prototype.asDouble=null,G.prototype.asInt=null,G.prototype.spanId=null,G.prototype.traceId=null;var W;return Object.defineProperty(G.prototype,"value",{get:O.oneOfGetter(W=["asDouble","asInt"]),set:O.oneOfSetter(W)}),G.create=function(J){return new G(J)},G.encode=function(J,Y){if(!Y)Y=R.create();if(J.timeUnixNano!=null&&Object.hasOwnProperty.call(J,"timeUnixNano"))Y.uint32(17).fixed64(J.timeUnixNano);if(J.asDouble!=null&&Object.hasOwnProperty.call(J,"asDouble"))Y.uint32(25).double(J.asDouble);if(J.spanId!=null&&Object.hasOwnProperty.call(J,"spanId"))Y.uint32(34).bytes(J.spanId);if(J.traceId!=null&&Object.hasOwnProperty.call(J,"traceId"))Y.uint32(42).bytes(J.traceId);if(J.asInt!=null&&Object.hasOwnProperty.call(J,"asInt"))Y.uint32(49).sfixed64(J.asInt);if(J.filteredAttributes!=null&&J.filteredAttributes.length)for(var K=0;K<J.filteredAttributes.length;++K)B.opentelemetry.proto.common.v1.KeyValue.encode(J.filteredAttributes[K],Y.uint32(58).fork()).ldelim();return Y},G.encodeDelimited=function(J,Y){return this.encode(J,Y).ldelim()},G.decode=function(J,Y,K){if(!(J instanceof C))J=C.create(J);var F=Y===void 0?J.len:J.pos+Y,H=new B.opentelemetry.proto.metrics.v1.Exemplar;while(J.pos<F){var N=J.uint32();if(N===K)break;switch(N>>>3){case 7:{if(!(H.filteredAttributes&&H.filteredAttributes.length))H.filteredAttributes=[];H.filteredAttributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(J,J.uint32()));break}case 2:{H.timeUnixNano=J.fixed64();break}case 3:{H.asDouble=J.double();break}case 6:{H.asInt=J.sfixed64();break}case 4:{H.spanId=J.bytes();break}case 5:{H.traceId=J.bytes();break}default:J.skipType(N&7);break}}return H},G.decodeDelimited=function(J){if(!(J instanceof C))J=new C(J);return this.decode(J,J.uint32())},G.verify=function(J){if(typeof J!=="object"||J===null)return"object expected";var Y={};if(J.filteredAttributes!=null&&J.hasOwnProperty("filteredAttributes")){if(!Array.isArray(J.filteredAttributes))return"filteredAttributes: array expected";for(var K=0;K<J.filteredAttributes.length;++K){var F=B.opentelemetry.proto.common.v1.KeyValue.verify(J.filteredAttributes[K]);if(F)return"filteredAttributes."+F}}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano")){if(!O.isInteger(J.timeUnixNano)&&!(J.timeUnixNano&&O.isInteger(J.timeUnixNano.low)&&O.isInteger(J.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(J.asDouble!=null&&J.hasOwnProperty("asDouble")){if(Y.value=1,typeof J.asDouble!=="number")return"asDouble: number expected"}if(J.asInt!=null&&J.hasOwnProperty("asInt")){if(Y.value===1)return"value: multiple values";if(Y.value=1,!O.isInteger(J.asInt)&&!(J.asInt&&O.isInteger(J.asInt.low)&&O.isInteger(J.asInt.high)))return"asInt: integer|Long expected"}if(J.spanId!=null&&J.hasOwnProperty("spanId")){if(!(J.spanId&&typeof J.spanId.length==="number"||O.isString(J.spanId)))return"spanId: buffer expected"}if(J.traceId!=null&&J.hasOwnProperty("traceId")){if(!(J.traceId&&typeof J.traceId.length==="number"||O.isString(J.traceId)))return"traceId: buffer expected"}return null},G.fromObject=function(J){if(J instanceof B.opentelemetry.proto.metrics.v1.Exemplar)return J;var Y=new B.opentelemetry.proto.metrics.v1.Exemplar;if(J.filteredAttributes){if(!Array.isArray(J.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");Y.filteredAttributes=[];for(var K=0;K<J.filteredAttributes.length;++K){if(typeof J.filteredAttributes[K]!=="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");Y.filteredAttributes[K]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(J.filteredAttributes[K])}}if(J.timeUnixNano!=null){if(O.Long)(Y.timeUnixNano=O.Long.fromValue(J.timeUnixNano)).unsigned=!1;else if(typeof J.timeUnixNano==="string")Y.timeUnixNano=parseInt(J.timeUnixNano,10);else if(typeof J.timeUnixNano==="number")Y.timeUnixNano=J.timeUnixNano;else if(typeof J.timeUnixNano==="object")Y.timeUnixNano=new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber()}if(J.asDouble!=null)Y.asDouble=Number(J.asDouble);if(J.asInt!=null){if(O.Long)(Y.asInt=O.Long.fromValue(J.asInt)).unsigned=!1;else if(typeof J.asInt==="string")Y.asInt=parseInt(J.asInt,10);else if(typeof J.asInt==="number")Y.asInt=J.asInt;else if(typeof J.asInt==="object")Y.asInt=new O.LongBits(J.asInt.low>>>0,J.asInt.high>>>0).toNumber()}if(J.spanId!=null){if(typeof J.spanId==="string")O.base64.decode(J.spanId,Y.spanId=O.newBuffer(O.base64.length(J.spanId)),0);else if(J.spanId.length>=0)Y.spanId=J.spanId}if(J.traceId!=null){if(typeof J.traceId==="string")O.base64.decode(J.traceId,Y.traceId=O.newBuffer(O.base64.length(J.traceId)),0);else if(J.traceId.length>=0)Y.traceId=J.traceId}return Y},G.toObject=function(J,Y){if(!Y)Y={};var K={};if(Y.arrays||Y.defaults)K.filteredAttributes=[];if(Y.defaults){if(O.Long){var F=new O.Long(0,0,!1);K.timeUnixNano=Y.longs===String?F.toString():Y.longs===Number?F.toNumber():F}else K.timeUnixNano=Y.longs===String?"0":0;if(Y.bytes===String)K.spanId="";else if(K.spanId=[],Y.bytes!==Array)K.spanId=O.newBuffer(K.spanId);if(Y.bytes===String)K.traceId="";else if(K.traceId=[],Y.bytes!==Array)K.traceId=O.newBuffer(K.traceId)}if(J.timeUnixNano!=null&&J.hasOwnProperty("timeUnixNano"))if(typeof J.timeUnixNano==="number")K.timeUnixNano=Y.longs===String?String(J.timeUnixNano):J.timeUnixNano;else K.timeUnixNano=Y.longs===String?O.Long.prototype.toString.call(J.timeUnixNano):Y.longs===Number?new O.LongBits(J.timeUnixNano.low>>>0,J.timeUnixNano.high>>>0).toNumber():J.timeUnixNano;if(J.asDouble!=null&&J.hasOwnProperty("asDouble")){if(K.asDouble=Y.json&&!isFinite(J.asDouble)?String(J.asDouble):J.asDouble,Y.oneofs)K.value="asDouble"}if(J.spanId!=null&&J.hasOwnProperty("spanId"))K.spanId=Y.bytes===String?O.base64.encode(J.spanId,0,J.spanId.length):Y.bytes===Array?Array.prototype.slice.call(J.spanId):J.spanId;if(J.traceId!=null&&J.hasOwnProperty("traceId"))K.traceId=Y.bytes===String?O.base64.encode(J.traceId,0,J.traceId.length):Y.bytes===Array?Array.prototype.slice.call(J.traceId):J.traceId;if(J.asInt!=null&&J.hasOwnProperty("asInt")){if(typeof J.asInt==="number")K.asInt=Y.longs===String?String(J.asInt):J.asInt;else K.asInt=Y.longs===String?O.Long.prototype.toString.call(J.asInt):Y.longs===Number?new O.LongBits(J.asInt.low>>>0,J.asInt.high>>>0).toNumber():J.asInt;if(Y.oneofs)K.value="asInt"}if(J.filteredAttributes&&J.filteredAttributes.length){K.filteredAttributes=[];for(var H=0;H<J.filteredAttributes.length;++H)K.filteredAttributes[H]=B.opentelemetry.proto.common.v1.KeyValue.toObject(J.filteredAttributes[H],Y)}return K},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(J){if(J===void 0)J="type.googleapis.com";return J+"/opentelemetry.proto.metrics.v1.Exemplar"},G}(),q}(),z}(),X.logs=function(){var z={};return z.v1=function(){var q={};return q.LogsData=function(){function G(W){if(this.resourceLogs=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.resourceLogs=O.emptyArray,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.resourceLogs!=null&&Q.resourceLogs.length)for(var Y=0;Y<Q.resourceLogs.length;++Y)B.opentelemetry.proto.logs.v1.ResourceLogs.encode(Q.resourceLogs[Y],J.uint32(10).fork()).ldelim();return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.logs.v1.LogsData;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{if(!(F.resourceLogs&&F.resourceLogs.length))F.resourceLogs=[];F.resourceLogs.push(B.opentelemetry.proto.logs.v1.ResourceLogs.decode(Q,Q.uint32()));break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.resourceLogs!=null&&Q.hasOwnProperty("resourceLogs")){if(!Array.isArray(Q.resourceLogs))return"resourceLogs: array expected";for(var J=0;J<Q.resourceLogs.length;++J){var Y=B.opentelemetry.proto.logs.v1.ResourceLogs.verify(Q.resourceLogs[J]);if(Y)return"resourceLogs."+Y}}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.logs.v1.LogsData)return Q;var J=new B.opentelemetry.proto.logs.v1.LogsData;if(Q.resourceLogs){if(!Array.isArray(Q.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");J.resourceLogs=[];for(var Y=0;Y<Q.resourceLogs.length;++Y){if(typeof Q.resourceLogs[Y]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");J.resourceLogs[Y]=B.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(Q.resourceLogs[Y])}}return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.resourceLogs=[];if(Q.resourceLogs&&Q.resourceLogs.length){Y.resourceLogs=[];for(var K=0;K<Q.resourceLogs.length;++K)Y.resourceLogs[K]=B.opentelemetry.proto.logs.v1.ResourceLogs.toObject(Q.resourceLogs[K],J)}return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.logs.v1.LogsData"},G}(),q.ResourceLogs=function(){function G(W){if(this.scopeLogs=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.resource=null,G.prototype.scopeLogs=O.emptyArray,G.prototype.schemaUrl=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.resource!=null&&Object.hasOwnProperty.call(Q,"resource"))B.opentelemetry.proto.resource.v1.Resource.encode(Q.resource,J.uint32(10).fork()).ldelim();if(Q.scopeLogs!=null&&Q.scopeLogs.length)for(var Y=0;Y<Q.scopeLogs.length;++Y)B.opentelemetry.proto.logs.v1.ScopeLogs.encode(Q.scopeLogs[Y],J.uint32(18).fork()).ldelim();if(Q.schemaUrl!=null&&Object.hasOwnProperty.call(Q,"schemaUrl"))J.uint32(26).string(Q.schemaUrl);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.logs.v1.ResourceLogs;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.resource=B.opentelemetry.proto.resource.v1.Resource.decode(Q,Q.uint32());break}case 2:{if(!(F.scopeLogs&&F.scopeLogs.length))F.scopeLogs=[];F.scopeLogs.push(B.opentelemetry.proto.logs.v1.ScopeLogs.decode(Q,Q.uint32()));break}case 3:{F.schemaUrl=Q.string();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.resource!=null&&Q.hasOwnProperty("resource")){var J=B.opentelemetry.proto.resource.v1.Resource.verify(Q.resource);if(J)return"resource."+J}if(Q.scopeLogs!=null&&Q.hasOwnProperty("scopeLogs")){if(!Array.isArray(Q.scopeLogs))return"scopeLogs: array expected";for(var Y=0;Y<Q.scopeLogs.length;++Y){var J=B.opentelemetry.proto.logs.v1.ScopeLogs.verify(Q.scopeLogs[Y]);if(J)return"scopeLogs."+J}}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl")){if(!O.isString(Q.schemaUrl))return"schemaUrl: string expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.logs.v1.ResourceLogs)return Q;var J=new B.opentelemetry.proto.logs.v1.ResourceLogs;if(Q.resource!=null){if(typeof Q.resource!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");J.resource=B.opentelemetry.proto.resource.v1.Resource.fromObject(Q.resource)}if(Q.scopeLogs){if(!Array.isArray(Q.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");J.scopeLogs=[];for(var Y=0;Y<Q.scopeLogs.length;++Y){if(typeof Q.scopeLogs[Y]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");J.scopeLogs[Y]=B.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(Q.scopeLogs[Y])}}if(Q.schemaUrl!=null)J.schemaUrl=String(Q.schemaUrl);return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.scopeLogs=[];if(J.defaults)Y.resource=null,Y.schemaUrl="";if(Q.resource!=null&&Q.hasOwnProperty("resource"))Y.resource=B.opentelemetry.proto.resource.v1.Resource.toObject(Q.resource,J);if(Q.scopeLogs&&Q.scopeLogs.length){Y.scopeLogs=[];for(var K=0;K<Q.scopeLogs.length;++K)Y.scopeLogs[K]=B.opentelemetry.proto.logs.v1.ScopeLogs.toObject(Q.scopeLogs[K],J)}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl"))Y.schemaUrl=Q.schemaUrl;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.logs.v1.ResourceLogs"},G}(),q.ScopeLogs=function(){function G(W){if(this.logRecords=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.scope=null,G.prototype.logRecords=O.emptyArray,G.prototype.schemaUrl=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.scope!=null&&Object.hasOwnProperty.call(Q,"scope"))B.opentelemetry.proto.common.v1.InstrumentationScope.encode(Q.scope,J.uint32(10).fork()).ldelim();if(Q.logRecords!=null&&Q.logRecords.length)for(var Y=0;Y<Q.logRecords.length;++Y)B.opentelemetry.proto.logs.v1.LogRecord.encode(Q.logRecords[Y],J.uint32(18).fork()).ldelim();if(Q.schemaUrl!=null&&Object.hasOwnProperty.call(Q,"schemaUrl"))J.uint32(26).string(Q.schemaUrl);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.logs.v1.ScopeLogs;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.scope=B.opentelemetry.proto.common.v1.InstrumentationScope.decode(Q,Q.uint32());break}case 2:{if(!(F.logRecords&&F.logRecords.length))F.logRecords=[];F.logRecords.push(B.opentelemetry.proto.logs.v1.LogRecord.decode(Q,Q.uint32()));break}case 3:{F.schemaUrl=Q.string();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.scope!=null&&Q.hasOwnProperty("scope")){var J=B.opentelemetry.proto.common.v1.InstrumentationScope.verify(Q.scope);if(J)return"scope."+J}if(Q.logRecords!=null&&Q.hasOwnProperty("logRecords")){if(!Array.isArray(Q.logRecords))return"logRecords: array expected";for(var Y=0;Y<Q.logRecords.length;++Y){var J=B.opentelemetry.proto.logs.v1.LogRecord.verify(Q.logRecords[Y]);if(J)return"logRecords."+J}}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl")){if(!O.isString(Q.schemaUrl))return"schemaUrl: string expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.logs.v1.ScopeLogs)return Q;var J=new B.opentelemetry.proto.logs.v1.ScopeLogs;if(Q.scope!=null){if(typeof Q.scope!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");J.scope=B.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(Q.scope)}if(Q.logRecords){if(!Array.isArray(Q.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");J.logRecords=[];for(var Y=0;Y<Q.logRecords.length;++Y){if(typeof Q.logRecords[Y]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");J.logRecords[Y]=B.opentelemetry.proto.logs.v1.LogRecord.fromObject(Q.logRecords[Y])}}if(Q.schemaUrl!=null)J.schemaUrl=String(Q.schemaUrl);return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.logRecords=[];if(J.defaults)Y.scope=null,Y.schemaUrl="";if(Q.scope!=null&&Q.hasOwnProperty("scope"))Y.scope=B.opentelemetry.proto.common.v1.InstrumentationScope.toObject(Q.scope,J);if(Q.logRecords&&Q.logRecords.length){Y.logRecords=[];for(var K=0;K<Q.logRecords.length;++K)Y.logRecords[K]=B.opentelemetry.proto.logs.v1.LogRecord.toObject(Q.logRecords[K],J)}if(Q.schemaUrl!=null&&Q.hasOwnProperty("schemaUrl"))Y.schemaUrl=Q.schemaUrl;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.logs.v1.ScopeLogs"},G}(),q.SeverityNumber=function(){var G={},W=Object.create(G);return W[G[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,W[G[1]="SEVERITY_NUMBER_TRACE"]=1,W[G[2]="SEVERITY_NUMBER_TRACE2"]=2,W[G[3]="SEVERITY_NUMBER_TRACE3"]=3,W[G[4]="SEVERITY_NUMBER_TRACE4"]=4,W[G[5]="SEVERITY_NUMBER_DEBUG"]=5,W[G[6]="SEVERITY_NUMBER_DEBUG2"]=6,W[G[7]="SEVERITY_NUMBER_DEBUG3"]=7,W[G[8]="SEVERITY_NUMBER_DEBUG4"]=8,W[G[9]="SEVERITY_NUMBER_INFO"]=9,W[G[10]="SEVERITY_NUMBER_INFO2"]=10,W[G[11]="SEVERITY_NUMBER_INFO3"]=11,W[G[12]="SEVERITY_NUMBER_INFO4"]=12,W[G[13]="SEVERITY_NUMBER_WARN"]=13,W[G[14]="SEVERITY_NUMBER_WARN2"]=14,W[G[15]="SEVERITY_NUMBER_WARN3"]=15,W[G[16]="SEVERITY_NUMBER_WARN4"]=16,W[G[17]="SEVERITY_NUMBER_ERROR"]=17,W[G[18]="SEVERITY_NUMBER_ERROR2"]=18,W[G[19]="SEVERITY_NUMBER_ERROR3"]=19,W[G[20]="SEVERITY_NUMBER_ERROR4"]=20,W[G[21]="SEVERITY_NUMBER_FATAL"]=21,W[G[22]="SEVERITY_NUMBER_FATAL2"]=22,W[G[23]="SEVERITY_NUMBER_FATAL3"]=23,W[G[24]="SEVERITY_NUMBER_FATAL4"]=24,W}(),q.LogRecordFlags=function(){var G={},W=Object.create(G);return W[G[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,W[G[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,W}(),q.LogRecord=function(){function G(W){if(this.attributes=[],W){for(var Q=Object.keys(W),J=0;J<Q.length;++J)if(W[Q[J]]!=null)this[Q[J]]=W[Q[J]]}}return G.prototype.timeUnixNano=null,G.prototype.observedTimeUnixNano=null,G.prototype.severityNumber=null,G.prototype.severityText=null,G.prototype.body=null,G.prototype.attributes=O.emptyArray,G.prototype.droppedAttributesCount=null,G.prototype.flags=null,G.prototype.traceId=null,G.prototype.spanId=null,G.prototype.eventName=null,G.create=function(Q){return new G(Q)},G.encode=function(Q,J){if(!J)J=R.create();if(Q.timeUnixNano!=null&&Object.hasOwnProperty.call(Q,"timeUnixNano"))J.uint32(9).fixed64(Q.timeUnixNano);if(Q.severityNumber!=null&&Object.hasOwnProperty.call(Q,"severityNumber"))J.uint32(16).int32(Q.severityNumber);if(Q.severityText!=null&&Object.hasOwnProperty.call(Q,"severityText"))J.uint32(26).string(Q.severityText);if(Q.body!=null&&Object.hasOwnProperty.call(Q,"body"))B.opentelemetry.proto.common.v1.AnyValue.encode(Q.body,J.uint32(42).fork()).ldelim();if(Q.attributes!=null&&Q.attributes.length)for(var Y=0;Y<Q.attributes.length;++Y)B.opentelemetry.proto.common.v1.KeyValue.encode(Q.attributes[Y],J.uint32(50).fork()).ldelim();if(Q.droppedAttributesCount!=null&&Object.hasOwnProperty.call(Q,"droppedAttributesCount"))J.uint32(56).uint32(Q.droppedAttributesCount);if(Q.flags!=null&&Object.hasOwnProperty.call(Q,"flags"))J.uint32(69).fixed32(Q.flags);if(Q.traceId!=null&&Object.hasOwnProperty.call(Q,"traceId"))J.uint32(74).bytes(Q.traceId);if(Q.spanId!=null&&Object.hasOwnProperty.call(Q,"spanId"))J.uint32(82).bytes(Q.spanId);if(Q.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(Q,"observedTimeUnixNano"))J.uint32(89).fixed64(Q.observedTimeUnixNano);if(Q.eventName!=null&&Object.hasOwnProperty.call(Q,"eventName"))J.uint32(98).string(Q.eventName);return J},G.encodeDelimited=function(Q,J){return this.encode(Q,J).ldelim()},G.decode=function(Q,J,Y){if(!(Q instanceof C))Q=C.create(Q);var K=J===void 0?Q.len:Q.pos+J,F=new B.opentelemetry.proto.logs.v1.LogRecord;while(Q.pos<K){var H=Q.uint32();if(H===Y)break;switch(H>>>3){case 1:{F.timeUnixNano=Q.fixed64();break}case 11:{F.observedTimeUnixNano=Q.fixed64();break}case 2:{F.severityNumber=Q.int32();break}case 3:{F.severityText=Q.string();break}case 5:{F.body=B.opentelemetry.proto.common.v1.AnyValue.decode(Q,Q.uint32());break}case 6:{if(!(F.attributes&&F.attributes.length))F.attributes=[];F.attributes.push(B.opentelemetry.proto.common.v1.KeyValue.decode(Q,Q.uint32()));break}case 7:{F.droppedAttributesCount=Q.uint32();break}case 8:{F.flags=Q.fixed32();break}case 9:{F.traceId=Q.bytes();break}case 10:{F.spanId=Q.bytes();break}case 12:{F.eventName=Q.string();break}default:Q.skipType(H&7);break}}return F},G.decodeDelimited=function(Q){if(!(Q instanceof C))Q=new C(Q);return this.decode(Q,Q.uint32())},G.verify=function(Q){if(typeof Q!=="object"||Q===null)return"object expected";if(Q.timeUnixNano!=null&&Q.hasOwnProperty("timeUnixNano")){if(!O.isInteger(Q.timeUnixNano)&&!(Q.timeUnixNano&&O.isInteger(Q.timeUnixNano.low)&&O.isInteger(Q.timeUnixNano.high)))return"timeUnixNano: integer|Long expected"}if(Q.observedTimeUnixNano!=null&&Q.hasOwnProperty("observedTimeUnixNano")){if(!O.isInteger(Q.observedTimeUnixNano)&&!(Q.observedTimeUnixNano&&O.isInteger(Q.observedTimeUnixNano.low)&&O.isInteger(Q.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected"}if(Q.severityNumber!=null&&Q.hasOwnProperty("severityNumber"))switch(Q.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(Q.severityText!=null&&Q.hasOwnProperty("severityText")){if(!O.isString(Q.severityText))return"severityText: string expected"}if(Q.body!=null&&Q.hasOwnProperty("body")){var J=B.opentelemetry.proto.common.v1.AnyValue.verify(Q.body);if(J)return"body."+J}if(Q.attributes!=null&&Q.hasOwnProperty("attributes")){if(!Array.isArray(Q.attributes))return"attributes: array expected";for(var Y=0;Y<Q.attributes.length;++Y){var J=B.opentelemetry.proto.common.v1.KeyValue.verify(Q.attributes[Y]);if(J)return"attributes."+J}}if(Q.droppedAttributesCount!=null&&Q.hasOwnProperty("droppedAttributesCount")){if(!O.isInteger(Q.droppedAttributesCount))return"droppedAttributesCount: integer expected"}if(Q.flags!=null&&Q.hasOwnProperty("flags")){if(!O.isInteger(Q.flags))return"flags: integer expected"}if(Q.traceId!=null&&Q.hasOwnProperty("traceId")){if(!(Q.traceId&&typeof Q.traceId.length==="number"||O.isString(Q.traceId)))return"traceId: buffer expected"}if(Q.spanId!=null&&Q.hasOwnProperty("spanId")){if(!(Q.spanId&&typeof Q.spanId.length==="number"||O.isString(Q.spanId)))return"spanId: buffer expected"}if(Q.eventName!=null&&Q.hasOwnProperty("eventName")){if(!O.isString(Q.eventName))return"eventName: string expected"}return null},G.fromObject=function(Q){if(Q instanceof B.opentelemetry.proto.logs.v1.LogRecord)return Q;var J=new B.opentelemetry.proto.logs.v1.LogRecord;if(Q.timeUnixNano!=null){if(O.Long)(J.timeUnixNano=O.Long.fromValue(Q.timeUnixNano)).unsigned=!1;else if(typeof Q.timeUnixNano==="string")J.timeUnixNano=parseInt(Q.timeUnixNano,10);else if(typeof Q.timeUnixNano==="number")J.timeUnixNano=Q.timeUnixNano;else if(typeof Q.timeUnixNano==="object")J.timeUnixNano=new O.LongBits(Q.timeUnixNano.low>>>0,Q.timeUnixNano.high>>>0).toNumber()}if(Q.observedTimeUnixNano!=null){if(O.Long)(J.observedTimeUnixNano=O.Long.fromValue(Q.observedTimeUnixNano)).unsigned=!1;else if(typeof Q.observedTimeUnixNano==="string")J.observedTimeUnixNano=parseInt(Q.observedTimeUnixNano,10);else if(typeof Q.observedTimeUnixNano==="number")J.observedTimeUnixNano=Q.observedTimeUnixNano;else if(typeof Q.observedTimeUnixNano==="object")J.observedTimeUnixNano=new O.LongBits(Q.observedTimeUnixNano.low>>>0,Q.observedTimeUnixNano.high>>>0).toNumber()}switch(Q.severityNumber){default:if(typeof Q.severityNumber==="number"){J.severityNumber=Q.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:J.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:J.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:J.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:J.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:J.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:J.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:J.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:J.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:J.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:J.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:J.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:J.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:J.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:J.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:J.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:J.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:J.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:J.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:J.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:J.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:J.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:J.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:J.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:J.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:J.severityNumber=24;break}if(Q.severityText!=null)J.severityText=String(Q.severityText);if(Q.body!=null){if(typeof Q.body!=="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");J.body=B.opentelemetry.proto.common.v1.AnyValue.fromObject(Q.body)}if(Q.attributes){if(!Array.isArray(Q.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");J.attributes=[];for(var Y=0;Y<Q.attributes.length;++Y){if(typeof Q.attributes[Y]!=="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");J.attributes[Y]=B.opentelemetry.proto.common.v1.KeyValue.fromObject(Q.attributes[Y])}}if(Q.droppedAttributesCount!=null)J.droppedAttributesCount=Q.droppedAttributesCount>>>0;if(Q.flags!=null)J.flags=Q.flags>>>0;if(Q.traceId!=null){if(typeof Q.traceId==="string")O.base64.decode(Q.traceId,J.traceId=O.newBuffer(O.base64.length(Q.traceId)),0);else if(Q.traceId.length>=0)J.traceId=Q.traceId}if(Q.spanId!=null){if(typeof Q.spanId==="string")O.base64.decode(Q.spanId,J.spanId=O.newBuffer(O.base64.length(Q.spanId)),0);else if(Q.spanId.length>=0)J.spanId=Q.spanId}if(Q.eventName!=null)J.eventName=String(Q.eventName);return J},G.toObject=function(Q,J){if(!J)J={};var Y={};if(J.arrays||J.defaults)Y.attributes=[];if(J.defaults){if(O.Long){var K=new O.Long(0,0,!1);Y.timeUnixNano=J.longs===String?K.toString():J.longs===Number?K.toNumber():K}else Y.timeUnixNano=J.longs===String?"0":0;if(Y.severityNumber=J.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,Y.severityText="",Y.body=null,Y.droppedAttributesCount=0,Y.flags=0,J.bytes===String)Y.traceId="";else if(Y.traceId=[],J.bytes!==Array)Y.traceId=O.newBuffer(Y.traceId);if(J.bytes===String)Y.spanId="";else if(Y.spanId=[],J.bytes!==Array)Y.spanId=O.newBuffer(Y.spanId);if(O.Long){var K=new O.Long(0,0,!1);Y.observedTimeUnixNano=J.longs===String?K.toString():J.longs===Number?K.toNumber():K}else Y.observedTimeUnixNano=J.longs===String?"0":0;Y.eventName=""}if(Q.timeUnixNano!=null&&Q.hasOwnProperty("timeUnixNano"))if(typeof Q.timeUnixNano==="number")Y.timeUnixNano=J.longs===String?String(Q.timeUnixNano):Q.timeUnixNano;else Y.timeUnixNano=J.longs===String?O.Long.prototype.toString.call(Q.timeUnixNano):J.longs===Number?new O.LongBits(Q.timeUnixNano.low>>>0,Q.timeUnixNano.high>>>0).toNumber():Q.timeUnixNano;if(Q.severityNumber!=null&&Q.hasOwnProperty("severityNumber"))Y.severityNumber=J.enums===String?B.opentelemetry.proto.logs.v1.SeverityNumber[Q.severityNumber]===void 0?Q.severityNumber:B.opentelemetry.proto.logs.v1.SeverityNumber[Q.severityNumber]:Q.severityNumber;if(Q.severityText!=null&&Q.hasOwnProperty("severityText"))Y.severityText=Q.severityText;if(Q.body!=null&&Q.hasOwnProperty("body"))Y.body=B.opentelemetry.proto.common.v1.AnyValue.toObject(Q.body,J);if(Q.attributes&&Q.attributes.length){Y.attributes=[];for(var F=0;F<Q.attributes.length;++F)Y.attributes[F]=B.opentelemetry.proto.common.v1.KeyValue.toObject(Q.attributes[F],J)}if(Q.droppedAttributesCount!=null&&Q.hasOwnProperty("droppedAttributesCount"))Y.droppedAttributesCount=Q.droppedAttributesCount;if(Q.flags!=null&&Q.hasOwnProperty("flags"))Y.flags=Q.flags;if(Q.traceId!=null&&Q.hasOwnProperty("traceId"))Y.traceId=J.bytes===String?O.base64.encode(Q.traceId,0,Q.traceId.length):J.bytes===Array?Array.prototype.slice.call(Q.traceId):Q.traceId;if(Q.spanId!=null&&Q.hasOwnProperty("spanId"))Y.spanId=J.bytes===String?O.base64.encode(Q.spanId,0,Q.spanId.length):J.bytes===Array?Array.prototype.slice.call(Q.spanId):Q.spanId;if(Q.observedTimeUnixNano!=null&&Q.hasOwnProperty("observedTimeUnixNano"))if(typeof Q.observedTimeUnixNano==="number")Y.observedTimeUnixNano=J.longs===String?String(Q.observedTimeUnixNano):Q.observedTimeUnixNano;else Y.observedTimeUnixNano=J.longs===String?O.Long.prototype.toString.call(Q.observedTimeUnixNano):J.longs===Number?new O.LongBits(Q.observedTimeUnixNano.low>>>0,Q.observedTimeUnixNano.high>>>0).toNumber():Q.observedTimeUnixNano;if(Q.eventName!=null&&Q.hasOwnProperty("eventName"))Y.eventName=Q.eventName;return Y},G.prototype.toJSON=function(){return this.constructor.toObject(this,T.util.toJSONOptions)},G.getTypeUrl=function(Q){if(Q===void 0)Q="type.googleapis.com";return Q+"/opentelemetry.proto.logs.v1.LogRecord"},G}(),q}(),z}(),X}(),Z}();kN.exports=B});var DJ=V((_N)=>{Object.defineProperty(_N,"__esModule",{value:!0});_N.toAnyValue=_N.toKeyValue=_N.toAttributes=_N.createInstrumentationScope=_N.createResource=void 0;function Uo(Z,X){let z={attributes:fN(Z.attributes,X),droppedAttributesCount:0},q=Z.schemaUrl;if(q&&q!=="")z.schemaUrl=q;return z}_N.createResource=Uo;function Io(Z){return{name:Z.name,version:Z.version}}_N.createInstrumentationScope=Io;function fN(Z,X){return Object.keys(Z).map((z)=>SN(z,Z[z],X))}_N.toAttributes=fN;function SN(Z,X,z){return{key:Z,value:IJ(X,z)}}_N.toKeyValue=SN;function IJ(Z,X){let z=typeof Z;if(z==="string")return{stringValue:Z};if(z==="number"){if(!Number.isInteger(Z))return{doubleValue:Z};return{intValue:Z}}if(z==="boolean")return{boolValue:Z};if(Z instanceof Uint8Array)return{bytesValue:X.encodeUint8Array(Z)};if(Array.isArray(Z)){let q=Array(Z.length);for(let G=0;G<Z.length;G++)q[G]=IJ(Z[G],X);return{arrayValue:{values:q}}}if(z==="object"&&Z!=null){let q=Object.keys(Z),G=Array(q.length);for(let W=0;W<q.length;W++)G[W]={key:q[W],value:IJ(Z[q[W]],X)};return{kvlistValue:{values:G}}}return{}}_N.toAnyValue=IJ});var I4=V((jN)=>{Object.defineProperty(jN,"__esModule",{value:!0});jN.toLogAttributes=jN.createExportLogsServiceRequest=void 0;var EJ=DJ();function To(Z,X){return{resourceLogs:wo(Z,X)}}jN.createExportLogsServiceRequest=To;function $o(Z){let X=new Map;for(let z of Z){let{resource:q,instrumentationScope:{name:G,version:W="",schemaUrl:Q=""}}=z,J=X.get(q);if(!J)J=new Map,X.set(q,J);let Y=`${G}@${W}:${Q}`,K=J.get(Y);if(!K)K=[],J.set(Y,K);K.push(z)}return X}function wo(Z,X){let z=$o(Z);return Array.from(z,([q,G])=>{let W=(0,EJ.createResource)(q,X);return{resource:W,scopeLogs:Array.from(G,([,Q])=>{return{scope:(0,EJ.createInstrumentationScope)(Q[0].instrumentationScope),logRecords:Q.map((J)=>Po(J,X)),schemaUrl:Q[0].instrumentationScope.schemaUrl}}),schemaUrl:W.schemaUrl}})}function Po(Z,X){return{timeUnixNano:X.encodeHrTime(Z.hrTime),observedTimeUnixNano:X.encodeHrTime(Z.hrTimeObserved),severityNumber:Mo(Z.severityNumber),severityText:Z.severityText,body:(0,EJ.toAnyValue)(Z.body,X),eventName:Z.eventName,attributes:vN(Z.attributes,X),droppedAttributesCount:Z.droppedAttributesCount,flags:Z.spanContext?.traceFlags,traceId:X.encodeOptionalSpanContext(Z.spanContext?.traceId),spanId:X.encodeOptionalSpanContext(Z.spanContext?.spanId)}}function Mo(Z){return Z}function vN(Z,X){return Object.keys(Z).map((z)=>(0,EJ.toKeyValue)(z,Z[z],X))}jN.toLogAttributes=vN});var lN=V((dN)=>{Object.defineProperty(dN,"__esModule",{value:!0});dN.hexToBinary=void 0;function bN(Z){if(Z>=48&&Z<=57)return Z-48;if(Z>=97&&Z<=102)return Z-87;return Z-55}function ho(Z){let X=new Uint8Array(Z.length/2),z=0;for(let q=0;q<Z.length;q+=2){let G=bN(Z.charCodeAt(q)),W=bN(Z.charCodeAt(q+1));X[z++]=G<<4|W}return X}dN.hexToBinary=ho});var A1=V((pN)=>{Object.defineProperty(pN,"__esModule",{value:!0});pN.JSON_ENCODER=pN.PROTOBUF_ENCODER=pN.encodeAsString=pN.encodeAsLongBits=pN.toLongBits=pN.hrTimeToNanos=void 0;var ko=l(),cN=lN();function E4(Z){let X=BigInt(1e9);return BigInt(Math.trunc(Z[0]))*X+BigInt(Math.trunc(Z[1]))}pN.hrTimeToNanos=E4;function nN(Z){let X=Number(BigInt.asUintN(32,Z)),z=Number(BigInt.asUintN(32,Z>>BigInt(32)));return{low:X,high:z}}pN.toLongBits=nN;function mN(Z){let X=E4(Z);return nN(X)}pN.encodeAsLongBits=mN;function gN(Z){return E4(Z).toString()}pN.encodeAsString=gN;var fo=typeof BigInt<"u"?gN:ko.hrTimeToNanoseconds;function D4(Z){return Z}function So(Z){if(Z===void 0)return;return(0,cN.hexToBinary)(Z)}pN.PROTOBUF_ENCODER={encodeHrTime:mN,encodeSpanContext:cN.hexToBinary,encodeOptionalSpanContext:So,encodeUint8Array:D4};pN.JSON_ENCODER={encodeHrTime:fo,encodeSpanContext:D4,encodeOptionalSpanContext:D4,encodeUint8Array:(Z)=>{if(typeof Buffer<"u")return Buffer.from(Z).toString("base64");let X=Array(Z.length);for(let z=0;z<Z.length;z++)X[z]=String.fromCharCode(Z[z]);return btoa(X.join(""))}}});var rN=V((oN)=>{Object.defineProperty(oN,"__esModule",{value:!0});oN.ProtobufLogsSerializer=void 0;var aN=UJ(),bo=I4(),uo=A1(),lo=aN.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,co=aN.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;oN.ProtobufLogsSerializer={serializeRequest:(Z)=>{let X=(0,bo.createExportLogsServiceRequest)(Z,uo.PROTOBUF_ENCODER);return co.encode(X).finish()},deserializeResponse:(Z)=>{return lo.decode(Z)}}});var sN=V((A4)=>{Object.defineProperty(A4,"__esModule",{value:!0});A4.ProtobufLogsSerializer=void 0;var no=rN();Object.defineProperty(A4,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return no.ProtobufLogsSerializer}})});var AJ=V((eN)=>{Object.defineProperty(eN,"__esModule",{value:!0});eN.AggregationTemporality=void 0;var go;(function(Z){Z[Z.DELTA=0]="DELTA",Z[Z.CUMULATIVE=1]="CUMULATIVE"})(go=eN.AggregationTemporality||(eN.AggregationTemporality={}))});var s0=V((JC)=>{Object.defineProperty(JC,"__esModule",{value:!0});JC.DataPointType=JC.InstrumentType=void 0;var po;(function(Z){Z.COUNTER="COUNTER",Z.GAUGE="GAUGE",Z.HISTOGRAM="HISTOGRAM",Z.UP_DOWN_COUNTER="UP_DOWN_COUNTER",Z.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",Z.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",Z.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(po=JC.InstrumentType||(JC.InstrumentType={}));var io;(function(Z){Z[Z.HISTOGRAM=0]="HISTOGRAM",Z[Z.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",Z[Z.GAUGE=2]="GAUGE",Z[Z.SUM=3]="SUM"})(io=JC.DataPointType||(JC.DataPointType={}))});var M0=V((QC)=>{Object.defineProperty(QC,"__esModule",{value:!0});QC.equalsCaseInsensitive=QC.binarySearchUB=QC.setEquals=QC.callWithTimeout=QC.TimeoutError=QC.instrumentationScopeId=QC.hashAttributes=void 0;function ao(Z){let X=Object.keys(Z);if(X.length===0)return"";return X=X.sort(),JSON.stringify(X.map((z)=>[z,Z[z]]))}QC.hashAttributes=ao;function oo(Z){return`${Z.name}:${Z.version??""}:${Z.schemaUrl??""}`}QC.instrumentationScopeId=oo;class LJ extends Error{constructor(Z){super(Z);Object.setPrototypeOf(this,LJ.prototype)}}QC.TimeoutError=LJ;function to(Z,X){let z,q=new Promise(function(W,Q){z=setTimeout(function(){Q(new LJ("Operation timed out."))},X)});return Promise.race([Z,q]).then((G)=>{return clearTimeout(z),G},(G)=>{throw clearTimeout(z),G})}QC.callWithTimeout=to;function ro(Z,X){if(Z.size!==X.size)return!1;for(let z of Z)if(!X.has(z))return!1;return!0}QC.setEquals=ro;function so(Z,X){let z=0,q=Z.length-1,G=Z.length;while(q>=z){let W=z+Math.trunc((q-z)/2);if(Z[W]<X)z=W+1;else G=W,q=W-1}return G}QC.binarySearchUB=so;function eo(Z,X){return Z.toLowerCase()===X.toLowerCase()}QC.equalsCaseInsensitive=eo});var XZ=V((YC)=>{Object.defineProperty(YC,"__esModule",{value:!0});YC.AggregatorKind=void 0;var Gt;(function(Z){Z[Z.DROP=0]="DROP",Z[Z.SUM=1]="SUM",Z[Z.LAST_VALUE=2]="LAST_VALUE",Z[Z.HISTOGRAM=3]="HISTOGRAM",Z[Z.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(Gt=YC.AggregatorKind||(YC.AggregatorKind={}))});var WC=V((GC)=>{Object.defineProperty(GC,"__esModule",{value:!0});GC.DropAggregator=void 0;var qt=XZ();class zC{kind=qt.AggregatorKind.DROP;createAccumulation(){return}merge(Z,X){return}diff(Z,X){return}toMetricData(Z,X,z,q){return}}GC.DropAggregator=zC});var BC=V((FC)=>{Object.defineProperty(FC,"__esModule",{value:!0});FC.HistogramAggregator=FC.HistogramAccumulation=void 0;var Wt=XZ(),rZ=s0(),Kt=M0();function Ft(Z){let X=Z.map(()=>0);return X.push(0),{buckets:{boundaries:Z,counts:X},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}class sZ{startTime;_boundaries;_recordMinMax;_current;constructor(Z,X,z=!0,q=Ft(X)){this.startTime=Z,this._boundaries=X,this._recordMinMax=z,this._current=q}record(Z){if(Number.isNaN(Z))return;if(this._current.count+=1,this._current.sum+=Z,this._recordMinMax)this._current.min=Math.min(Z,this._current.min),this._current.max=Math.max(Z,this._current.max),this._current.hasMinMax=!0;let X=(0,Kt.binarySearchUB)(this._boundaries,Z);this._current.buckets.counts[X]+=1}setStartTime(Z){this.startTime=Z}toPointValue(){return this._current}}FC.HistogramAccumulation=sZ;class KC{kind=Wt.AggregatorKind.HISTOGRAM;_boundaries;_recordMinMax;constructor(Z,X){this._boundaries=Z,this._recordMinMax=X}createAccumulation(Z){return new sZ(Z,this._boundaries,this._recordMinMax)}merge(Z,X){let z=Z.toPointValue(),q=X.toPointValue(),G=z.buckets.counts,W=q.buckets.counts,Q=Array(G.length);for(let K=0;K<G.length;K++)Q[K]=G[K]+W[K];let J=1/0,Y=-1/0;if(this._recordMinMax){if(z.hasMinMax&&q.hasMinMax)J=Math.min(z.min,q.min),Y=Math.max(z.max,q.max);else if(z.hasMinMax)J=z.min,Y=z.max;else if(q.hasMinMax)J=q.min,Y=q.max}return new sZ(Z.startTime,z.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:z.buckets.boundaries,counts:Q},count:z.count+q.count,sum:z.sum+q.sum,hasMinMax:this._recordMinMax&&(z.hasMinMax||q.hasMinMax),min:J,max:Y})}diff(Z,X){let z=Z.toPointValue(),q=X.toPointValue(),G=z.buckets.counts,W=q.buckets.counts,Q=Array(G.length);for(let J=0;J<G.length;J++)Q[J]=W[J]-G[J];return new sZ(X.startTime,z.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:z.buckets.boundaries,counts:Q},count:q.count-z.count,sum:q.sum-z.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(Z,X,z,q){return{descriptor:Z,aggregationTemporality:X,dataPointType:rZ.DataPointType.HISTOGRAM,dataPoints:z.map(([G,W])=>{let Q=W.toPointValue(),J=Z.type===rZ.InstrumentType.GAUGE||Z.type===rZ.InstrumentType.UP_DOWN_COUNTER||Z.type===rZ.InstrumentType.OBSERVABLE_GAUGE||Z.type===rZ.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:G,startTime:W.startTime,endTime:q,value:{min:Q.hasMinMax?Q.min:void 0,max:Q.hasMinMax?Q.max:void 0,sum:!J?Q.sum:void 0,buckets:Q.buckets,count:Q.count}}})}}}FC.HistogramAggregator=KC});var NC=V((OC)=>{Object.defineProperty(OC,"__esModule",{value:!0});OC.Buckets=void 0;class w4{backing;indexBase;indexStart;indexEnd;constructor(Z=new P4,X=0,z=0,q=0){this.backing=Z,this.indexBase=X,this.indexStart=z,this.indexEnd=q}get offset(){return this.indexStart}get length(){if(this.backing.length===0)return 0;if(this.indexEnd===this.indexStart&&this.at(0)===0)return 0;return this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(Z,X)=>this.at(X))}at(Z){let X=this.indexBase-this.indexStart;if(Z<X)Z+=this.backing.length;return Z-=X,this.backing.countAt(Z)}incrementBucket(Z,X){this.backing.increment(Z,X)}decrementBucket(Z,X){this.backing.decrement(Z,X)}trim(){for(let Z=0;Z<this.length;Z++)if(this.at(Z)!==0){this.indexStart+=Z;break}else if(Z===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let Z=this.length-1;Z>=0;Z--)if(this.at(Z)!==0){this.indexEnd-=this.length-Z-1;break}this._rotate()}downscale(Z){this._rotate();let X=1+this.indexEnd-this.indexStart,z=1<<Z,q=0,G=0;for(let W=this.indexStart;W<=this.indexEnd;){let Q=W%z;if(Q<0)Q+=z;for(let J=Q;J<z&&q<X;J++)this._relocateBucket(G,q),q++,W++;G++}this.indexStart>>=Z,this.indexEnd>>=Z,this.indexBase=this.indexStart}clone(){return new w4(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let Z=this.indexBase-this.indexStart;if(Z===0)return;else if(Z>0)this.backing.reverse(0,this.backing.length),this.backing.reverse(0,Z),this.backing.reverse(Z,this.backing.length);else this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+Z);this.indexBase=this.indexStart}_relocateBucket(Z,X){if(Z===X)return;this.incrementBucket(Z,this.backing.emptyBucket(X))}}OC.Buckets=w4;class P4{_counts;constructor(Z=[0]){this._counts=Z}get length(){return this._counts.length}countAt(Z){return this._counts[Z]}growTo(Z,X,z){let q=Array(Z).fill(0);q.splice(z,this._counts.length-X,...this._counts.slice(X)),q.splice(0,X,...this._counts.slice(0,X)),this._counts=q}reverse(Z,X){let z=Math.floor((Z+X)/2)-Z;for(let q=0;q<z;q++){let G=this._counts[Z+q];this._counts[Z+q]=this._counts[X-q-1],this._counts[X-q-1]=G}}emptyBucket(Z){let X=this._counts[Z];return this._counts[Z]=0,X}increment(Z,X){this._counts[Z]+=X}decrement(Z,X){if(this._counts[Z]>=X)this._counts[Z]-=X;else this._counts[Z]=0}clone(){return new P4([...this._counts])}}});var R4=V((CC)=>{Object.defineProperty(CC,"__esModule",{value:!0});CC.getSignificand=CC.getNormalBase2=CC.MIN_VALUE=CC.MAX_NORMAL_EXPONENT=CC.MIN_NORMAL_EXPONENT=CC.SIGNIFICAND_WIDTH=void 0;CC.SIGNIFICAND_WIDTH=52;var Bt=2146435072,Ot=1048575,M4=1023;CC.MIN_NORMAL_EXPONENT=-M4+1;CC.MAX_NORMAL_EXPONENT=M4;CC.MIN_VALUE=Math.pow(2,-1022);function Vt(Z){let X=new DataView(new ArrayBuffer(8));return X.setFloat64(0,Z),((X.getUint32(0)&Bt)>>20)-M4}CC.getNormalBase2=Vt;function Nt(Z){let X=new DataView(new ArrayBuffer(8));X.setFloat64(0,Z);let z=X.getUint32(0),q=X.getUint32(4);return(z&Ot)*Math.pow(2,32)+q}CC.getSignificand=Nt});var TJ=V((IC)=>{Object.defineProperty(IC,"__esModule",{value:!0});IC.nextGreaterSquare=IC.ldexp=void 0;function At(Z,X){if(Z===0||Z===Number.POSITIVE_INFINITY||Z===Number.NEGATIVE_INFINITY||Number.isNaN(Z))return Z;return Z*Math.pow(2,X)}IC.ldexp=At;function Lt(Z){return Z--,Z|=Z>>1,Z|=Z>>2,Z|=Z>>4,Z|=Z>>8,Z|=Z>>16,Z++,Z}IC.nextGreaterSquare=Lt});var $J=V((AC)=>{Object.defineProperty(AC,"__esModule",{value:!0});AC.MappingError=void 0;class EC extends Error{}AC.MappingError=EC});var MC=V((wC)=>{Object.defineProperty(wC,"__esModule",{value:!0});wC.ExponentMapping=void 0;var YZ=R4(),$t=TJ(),TC=$J();class $C{_shift;constructor(Z){this._shift=-Z}mapToIndex(Z){if(Z<YZ.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let X=YZ.getNormalBase2(Z),z=this._rightShift(YZ.getSignificand(Z)-1,YZ.SIGNIFICAND_WIDTH);return X+z>>this._shift}lowerBoundary(Z){let X=this._minNormalLowerBoundaryIndex();if(Z<X)throw new TC.MappingError(`underflow: ${Z} is < minimum lower boundary: ${X}`);let z=this._maxNormalLowerBoundaryIndex();if(Z>z)throw new TC.MappingError(`overflow: ${Z} is > maximum lower boundary: ${z}`);return $t.ldexp(1,Z<<this._shift)}get scale(){if(this._shift===0)return 0;return-this._shift}_minNormalLowerBoundaryIndex(){let Z=YZ.MIN_NORMAL_EXPONENT>>this._shift;if(this._shift<2)Z--;return Z}_maxNormalLowerBoundaryIndex(){return YZ.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(Z,X){return Math.floor(Z*Math.pow(2,-X))}}wC.ExponentMapping=$C});var _C=V((fC)=>{Object.defineProperty(fC,"__esModule",{value:!0});fC.LogarithmMapping=void 0;var zZ=R4(),RC=TJ(),hC=$J();class kC{_scale;_scaleFactor;_inverseFactor;constructor(Z){this._scale=Z,this._scaleFactor=RC.ldexp(Math.LOG2E,Z),this._inverseFactor=RC.ldexp(Math.LN2,-Z)}mapToIndex(Z){if(Z<=zZ.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(zZ.getSignificand(Z)===0)return(zZ.getNormalBase2(Z)<<this._scale)-1;let X=Math.floor(Math.log(Z)*this._scaleFactor),z=this._maxNormalLowerBoundaryIndex();if(X>=z)return z;return X}lowerBoundary(Z){let X=this._maxNormalLowerBoundaryIndex();if(Z>=X){if(Z===X)return 2*Math.exp((Z-(1<<this._scale))/this._scaleFactor);throw new hC.MappingError(`overflow: ${Z} is > maximum lower boundary: ${X}`)}let z=this._minNormalLowerBoundaryIndex();if(Z<=z){if(Z===z)return zZ.MIN_VALUE;else if(Z===z-1)return Math.exp((Z+(1<<this._scale))/this._scaleFactor)/2;throw new hC.MappingError(`overflow: ${Z} is < minimum lower boundary: ${z}`)}return Math.exp(Z*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return zZ.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(zZ.MAX_NORMAL_EXPONENT+1<<this._scale)-1}}fC.LogarithmMapping=kC});var bC=V((jC)=>{Object.defineProperty(jC,"__esModule",{value:!0});jC.getMapping=void 0;var wt=MC(),Pt=_C(),Mt=$J(),yC=-10,vC=20,Rt=Array.from({length:31},(Z,X)=>{if(X>10)return new Pt.LogarithmMapping(X-10);return new wt.ExponentMapping(X-10)});function ht(Z){if(Z>vC||Z<yC)throw new Mt.MappingError(`expected scale >= ${yC} && <= ${vC}, got: ${Z}`);return Rt[Z+10]}jC.getMapping=ht});var mC=V((cC)=>{Object.defineProperty(cC,"__esModule",{value:!0});cC.ExponentialHistogramAggregator=cC.ExponentialHistogramAccumulation=void 0;var kt=XZ(),eZ=s0(),ft=I(),dC=NC(),uC=bC(),St=TJ();class GZ{static combine(Z,X){return new GZ(Math.min(Z.low,X.low),Math.max(Z.high,X.high))}low;high;constructor(Z,X){this.low=Z,this.high=X}}var _t=20,yt=160,h4=2;class wJ{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(Z,X=yt,z=!0,q=0,G=0,W=0,Q=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,Y=new dC.Buckets,K=new dC.Buckets,F=(0,uC.getMapping)(_t)){if(this.startTime=Z,this._maxSize=X,this._recordMinMax=z,this._sum=q,this._count=G,this._zeroCount=W,this._min=Q,this._max=J,this._positive=Y,this._negative=K,this._mapping=F,this._maxSize<h4)ft.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${h4}`),this._maxSize=h4}record(Z){this.updateByIncrement(Z,1)}setStartTime(Z){this.startTime=Z}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(){if(this._count===this._zeroCount)return 0;return this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(Z,X){if(Number.isNaN(Z))return;if(Z>this._max)this._max=Z;if(Z<this._min)this._min=Z;if(this._count+=X,Z===0){this._zeroCount+=X;return}if(this._sum+=Z*X,Z>0)this._updateBuckets(this._positive,Z,X);else this._updateBuckets(this._negative,-Z,X)}merge(Z){if(this._count===0)this._min=Z.min,this._max=Z.max;else if(Z.count!==0){if(Z.min<this.min)this._min=Z.min;if(Z.max>this.max)this._max=Z.max}this.startTime=Z.startTime,this._sum+=Z.sum,this._count+=Z.count,this._zeroCount+=Z.zeroCount;let X=this._minScale(Z);this._downscale(this.scale-X),this._mergeBuckets(this.positive,Z,Z.positive,X),this._mergeBuckets(this.negative,Z,Z.negative,X)}diff(Z){this._min=1/0,this._max=-1/0,this._sum-=Z.sum,this._count-=Z.count,this._zeroCount-=Z.zeroCount;let X=this._minScale(Z);this._downscale(this.scale-X),this._diffBuckets(this.positive,Z,Z.positive,X),this._diffBuckets(this.negative,Z,Z.negative,X)}clone(){return new wJ(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(Z,X,z){let q=this._mapping.mapToIndex(X),G=!1,W=0,Q=0;if(Z.length===0)Z.indexStart=q,Z.indexEnd=Z.indexStart,Z.indexBase=Z.indexStart;else if(q<Z.indexStart&&Z.indexEnd-q>=this._maxSize)G=!0,Q=q,W=Z.indexEnd;else if(q>Z.indexEnd&&q-Z.indexStart>=this._maxSize)G=!0,Q=Z.indexStart,W=q;if(G){let J=this._changeScale(W,Q);this._downscale(J),q=this._mapping.mapToIndex(X)}this._incrementIndexBy(Z,q,z)}_incrementIndexBy(Z,X,z){if(z===0)return;if(Z.length===0)Z.indexStart=Z.indexEnd=Z.indexBase=X;if(X<Z.indexStart){let G=Z.indexEnd-X;if(G>=Z.backing.length)this._grow(Z,G+1);Z.indexStart=X}else if(X>Z.indexEnd){let G=X-Z.indexStart;if(G>=Z.backing.length)this._grow(Z,G+1);Z.indexEnd=X}let q=X-Z.indexBase;if(q<0)q+=Z.backing.length;Z.incrementBucket(q,z)}_grow(Z,X){let z=Z.backing.length,q=Z.indexBase-Z.indexStart,G=z-q,W=(0,St.nextGreaterSquare)(X);if(W>this._maxSize)W=this._maxSize;let Q=W-q;Z.backing.growTo(W,G,Q)}_changeScale(Z,X){let z=0;while(Z-X>=this._maxSize)Z>>=1,X>>=1,z++;return z}_downscale(Z){if(Z===0)return;if(Z<0)throw Error(`impossible change of scale: ${this.scale}`);let X=this._mapping.scale-Z;this._positive.downscale(Z),this._negative.downscale(Z),this._mapping=(0,uC.getMapping)(X)}_minScale(Z){let X=Math.min(this.scale,Z.scale),z=GZ.combine(this._highLowAtScale(this.positive,this.scale,X),this._highLowAtScale(Z.positive,Z.scale,X)),q=GZ.combine(this._highLowAtScale(this.negative,this.scale,X),this._highLowAtScale(Z.negative,Z.scale,X));return Math.min(X-this._changeScale(z.high,z.low),X-this._changeScale(q.high,q.low))}_highLowAtScale(Z,X,z){if(Z.length===0)return new GZ(0,-1);let q=X-z;return new GZ(Z.indexStart>>q,Z.indexEnd>>q)}_mergeBuckets(Z,X,z,q){let G=z.offset,W=X.scale-q;for(let Q=0;Q<z.length;Q++)this._incrementIndexBy(Z,G+Q>>W,z.at(Q))}_diffBuckets(Z,X,z,q){let G=z.offset,W=X.scale-q;for(let Q=0;Q<z.length;Q++){let Y=(G+Q>>W)-Z.indexBase;if(Y<0)Y+=Z.backing.length;Z.decrementBucket(Y,z.at(Q))}Z.trim()}}cC.ExponentialHistogramAccumulation=wJ;class lC{kind=kt.AggregatorKind.EXPONENTIAL_HISTOGRAM;_maxSize;_recordMinMax;constructor(Z,X){this._maxSize=Z,this._recordMinMax=X}createAccumulation(Z){return new wJ(Z,this._maxSize,this._recordMinMax)}merge(Z,X){let z=X.clone();return z.merge(Z),z}diff(Z,X){let z=X.clone();return z.diff(Z),z}toMetricData(Z,X,z,q){return{descriptor:Z,aggregationTemporality:X,dataPointType:eZ.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:z.map(([G,W])=>{let Q=W.toPointValue(),J=Z.type===eZ.InstrumentType.GAUGE||Z.type===eZ.InstrumentType.UP_DOWN_COUNTER||Z.type===eZ.InstrumentType.OBSERVABLE_GAUGE||Z.type===eZ.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:G,startTime:W.startTime,endTime:q,value:{min:Q.hasMinMax?Q.min:void 0,max:Q.hasMinMax?Q.max:void 0,sum:!J?Q.sum:void 0,positive:{offset:Q.positive.offset,bucketCounts:Q.positive.bucketCounts},negative:{offset:Q.negative.offset,bucketCounts:Q.negative.bucketCounts},count:Q.count,scale:Q.scale,zeroCount:Q.zeroCount}}})}}}cC.ExponentialHistogramAggregator=lC});var aC=V((pC)=>{Object.defineProperty(pC,"__esModule",{value:!0});pC.LastValueAggregator=pC.LastValueAccumulation=void 0;var jt=XZ(),Z6=l(),xt=s0();class J6{startTime;_current;sampleTime;constructor(Z,X=0,z=[0,0]){this.startTime=Z,this._current=X,this.sampleTime=z}record(Z){this._current=Z,this.sampleTime=(0,Z6.millisToHrTime)(Date.now())}setStartTime(Z){this.startTime=Z}toPointValue(){return this._current}}pC.LastValueAccumulation=J6;class gC{kind=jt.AggregatorKind.LAST_VALUE;createAccumulation(Z){return new J6(Z)}merge(Z,X){let z=(0,Z6.hrTimeToMicroseconds)(X.sampleTime)>=(0,Z6.hrTimeToMicroseconds)(Z.sampleTime)?X:Z;return new J6(Z.startTime,z.toPointValue(),z.sampleTime)}diff(Z,X){let z=(0,Z6.hrTimeToMicroseconds)(X.sampleTime)>=(0,Z6.hrTimeToMicroseconds)(Z.sampleTime)?X:Z;return new J6(X.startTime,z.toPointValue(),z.sampleTime)}toMetricData(Z,X,z,q){return{descriptor:Z,aggregationTemporality:X,dataPointType:xt.DataPointType.GAUGE,dataPoints:z.map(([G,W])=>{return{attributes:G,startTime:W.startTime,endTime:q,value:W.toPointValue()}})}}}pC.LastValueAggregator=gC});var sC=V((tC)=>{Object.defineProperty(tC,"__esModule",{value:!0});tC.SumAggregator=tC.SumAccumulation=void 0;var dt=XZ(),ut=s0();class L1{startTime;monotonic;_current;reset;constructor(Z,X,z=0,q=!1){this.startTime=Z,this.monotonic=X,this._current=z,this.reset=q}record(Z){if(this.monotonic&&Z<0)return;this._current+=Z}setStartTime(Z){this.startTime=Z}toPointValue(){return this._current}}tC.SumAccumulation=L1;class oC{kind=dt.AggregatorKind.SUM;monotonic;constructor(Z){this.monotonic=Z}createAccumulation(Z){return new L1(Z,this.monotonic)}merge(Z,X){let z=Z.toPointValue(),q=X.toPointValue();if(X.reset)return new L1(X.startTime,this.monotonic,q,X.reset);return new L1(Z.startTime,this.monotonic,z+q)}diff(Z,X){let z=Z.toPointValue(),q=X.toPointValue();if(this.monotonic&&z>q)return new L1(X.startTime,this.monotonic,q,!0);return new L1(X.startTime,this.monotonic,q-z)}toMetricData(Z,X,z,q){return{descriptor:Z,aggregationTemporality:X,dataPointType:ut.DataPointType.SUM,dataPoints:z.map(([G,W])=>{return{attributes:G,startTime:W.startTime,endTime:q,value:W.toPointValue()}}),isMonotonic:this.monotonic}}}tC.SumAggregator=oC});var XU=V((L0)=>{Object.defineProperty(L0,"__esModule",{value:!0});L0.SumAggregator=L0.SumAccumulation=L0.LastValueAggregator=L0.LastValueAccumulation=L0.ExponentialHistogramAggregator=L0.ExponentialHistogramAccumulation=L0.HistogramAggregator=L0.HistogramAccumulation=L0.DropAggregator=void 0;var ct=WC();Object.defineProperty(L0,"DropAggregator",{enumerable:!0,get:function(){return ct.DropAggregator}});var eC=BC();Object.defineProperty(L0,"HistogramAccumulation",{enumerable:!0,get:function(){return eC.HistogramAccumulation}});Object.defineProperty(L0,"HistogramAggregator",{enumerable:!0,get:function(){return eC.HistogramAggregator}});var ZU=mC();Object.defineProperty(L0,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return ZU.ExponentialHistogramAccumulation}});Object.defineProperty(L0,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return ZU.ExponentialHistogramAggregator}});var JU=aC();Object.defineProperty(L0,"LastValueAccumulation",{enumerable:!0,get:function(){return JU.LastValueAccumulation}});Object.defineProperty(L0,"LastValueAggregator",{enumerable:!0,get:function(){return JU.LastValueAggregator}});var QU=sC();Object.defineProperty(L0,"SumAccumulation",{enumerable:!0,get:function(){return QU.SumAccumulation}});Object.defineProperty(L0,"SumAggregator",{enumerable:!0,get:function(){return QU.SumAggregator}})});var FU=V((YU)=>{Object.defineProperty(YU,"__esModule",{value:!0});YU.DEFAULT_AGGREGATION=YU.EXPONENTIAL_HISTOGRAM_AGGREGATION=YU.HISTOGRAM_AGGREGATION=YU.LAST_VALUE_AGGREGATION=YU.SUM_AGGREGATION=YU.DROP_AGGREGATION=YU.DefaultAggregation=YU.ExponentialHistogramAggregation=YU.ExplicitBucketHistogramAggregation=YU.HistogramAggregation=YU.LastValueAggregation=YU.SumAggregation=YU.DropAggregation=void 0;var mt=I(),T1=XU(),R0=s0();class PJ{static DEFAULT_INSTANCE=new T1.DropAggregator;createAggregator(Z){return PJ.DEFAULT_INSTANCE}}YU.DropAggregation=PJ;class Q6{static MONOTONIC_INSTANCE=new T1.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new T1.SumAggregator(!1);createAggregator(Z){switch(Z.type){case R0.InstrumentType.COUNTER:case R0.InstrumentType.OBSERVABLE_COUNTER:case R0.InstrumentType.HISTOGRAM:return Q6.MONOTONIC_INSTANCE;default:return Q6.NON_MONOTONIC_INSTANCE}}}YU.SumAggregation=Q6;class MJ{static DEFAULT_INSTANCE=new T1.LastValueAggregator;createAggregator(Z){return MJ.DEFAULT_INSTANCE}}YU.LastValueAggregation=MJ;class RJ{static DEFAULT_INSTANCE=new T1.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1000,2500,5000,7500,1e4],!0);createAggregator(Z){return RJ.DEFAULT_INSTANCE}}YU.HistogramAggregation=RJ;class k4{_boundaries;_recordMinMax;constructor(Z,X=!0){if(Z==null)throw Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");Z=Z.concat(),Z=Z.sort((G,W)=>G-W);let z=Z.lastIndexOf(-1/0),q=Z.indexOf(1/0);if(q===-1)q=void 0;this._boundaries=Z.slice(z+1,q),this._recordMinMax=X}createAggregator(Z){return new T1.HistogramAggregator(this._boundaries,this._recordMinMax)}}YU.ExplicitBucketHistogramAggregation=k4;class f4{_maxSize;_recordMinMax;constructor(Z=160,X=!0){this._maxSize=Z,this._recordMinMax=X}createAggregator(Z){return new T1.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}}YU.ExponentialHistogramAggregation=f4;class S4{_resolve(Z){switch(Z.type){case R0.InstrumentType.COUNTER:case R0.InstrumentType.UP_DOWN_COUNTER:case R0.InstrumentType.OBSERVABLE_COUNTER:case R0.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return YU.SUM_AGGREGATION;case R0.InstrumentType.GAUGE:case R0.InstrumentType.OBSERVABLE_GAUGE:return YU.LAST_VALUE_AGGREGATION;case R0.InstrumentType.HISTOGRAM:{if(Z.advice.explicitBucketBoundaries)return new k4(Z.advice.explicitBucketBoundaries);return YU.HISTOGRAM_AGGREGATION}}return mt.diag.warn(`Unable to recognize instrument type: ${Z.type}`),YU.DROP_AGGREGATION}createAggregator(Z){return this._resolve(Z).createAggregator(Z)}}YU.DefaultAggregation=S4;YU.DROP_AGGREGATION=new PJ;YU.SUM_AGGREGATION=new Q6;YU.LAST_VALUE_AGGREGATION=new MJ;YU.HISTOGRAM_AGGREGATION=new RJ;YU.EXPONENTIAL_HISTOGRAM_AGGREGATION=new f4;YU.DEFAULT_AGGREGATION=new S4});var X6=V((BU)=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.toAggregation=BU.AggregationType=void 0;var $1=FU(),w1;(function(Z){Z[Z.DEFAULT=0]="DEFAULT",Z[Z.DROP=1]="DROP",Z[Z.SUM=2]="SUM",Z[Z.LAST_VALUE=3]="LAST_VALUE",Z[Z.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",Z[Z.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(w1=BU.AggregationType||(BU.AggregationType={}));function et(Z){switch(Z.type){case w1.DEFAULT:return $1.DEFAULT_AGGREGATION;case w1.DROP:return $1.DROP_AGGREGATION;case w1.SUM:return $1.SUM_AGGREGATION;case w1.LAST_VALUE:return $1.LAST_VALUE_AGGREGATION;case w1.EXPONENTIAL_HISTOGRAM:{let X=Z;return new $1.ExponentialHistogramAggregation(X.options?.maxSize,X.options?.recordMinMax)}case w1.EXPLICIT_BUCKET_HISTOGRAM:{let X=Z;if(X.options==null)return $1.HISTOGRAM_AGGREGATION;else return new $1.ExplicitBucketHistogramAggregation(X.options?.boundaries,X.options?.recordMinMax)}default:throw Error("Unsupported Aggregation")}}BU.toAggregation=et});var _4=V((VU)=>{Object.defineProperty(VU,"__esModule",{value:!0});VU.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=VU.DEFAULT_AGGREGATION_SELECTOR=void 0;var Zr=AJ(),Jr=X6(),Qr=(Z)=>{return{type:Jr.AggregationType.DEFAULT}};VU.DEFAULT_AGGREGATION_SELECTOR=Qr;var Xr=(Z)=>Zr.AggregationTemporality.CUMULATIVE;VU.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=Xr});var y4=V((EU)=>{Object.defineProperty(EU,"__esModule",{value:!0});EU.MetricReader=void 0;var CU=I(),UU=M0(),IU=_4();class DU{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(Z){this._aggregationSelector=Z?.aggregationSelector??IU.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=Z?.aggregationTemporalitySelector??IU.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=Z?.metricProducers??[],this._cardinalitySelector=Z?.cardinalitySelector}setMetricProducer(Z){if(this._sdkMetricProducer)throw Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=Z,this.onInitialized()}selectAggregation(Z){return this._aggregationSelector(Z)}selectAggregationTemporality(Z){return this._aggregationTemporalitySelector(Z)}selectCardinalityLimit(Z){return this._cardinalitySelector?this._cardinalitySelector(Z):2000}onInitialized(){}async collect(Z){if(this._sdkMetricProducer===void 0)throw Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw Error("MetricReader is shutdown");let[X,...z]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:Z?.timeoutMillis}),...this._metricProducers.map((Q)=>Q.collect({timeoutMillis:Z?.timeoutMillis}))]),q=X.errors.concat(z.flatMap((Q)=>Q.errors)),G=X.resourceMetrics.resource,W=X.resourceMetrics.scopeMetrics.concat(z.flatMap((Q)=>Q.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:G,scopeMetrics:W},errors:q}}async shutdown(Z){if(this._shutdown){CU.diag.error("Cannot call shutdown twice.");return}if(Z?.timeoutMillis==null)await this.onShutdown();else await(0,UU.callWithTimeout)(this.onShutdown(),Z.timeoutMillis);this._shutdown=!0}async forceFlush(Z){if(this._shutdown){CU.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(Z?.timeoutMillis==null){await this.onForceFlush();return}await(0,UU.callWithTimeout)(this.onForceFlush(),Z.timeoutMillis)}}EU.MetricReader=DU});var PU=V(($U)=>{Object.defineProperty($U,"__esModule",{value:!0});$U.PeriodicExportingMetricReader=void 0;var hJ=I(),kJ=l(),zr=y4(),LU=M0();class TU extends zr.MetricReader{_interval;_exporter;_exportInterval;_exportTimeout;constructor(Z){let{exporter:X,exportIntervalMillis:z=60000,metricProducers:q}=Z,{exportTimeoutMillis:G=30000}=Z;super({aggregationSelector:X.selectAggregation?.bind(X),aggregationTemporalitySelector:X.selectAggregationTemporality?.bind(X),metricProducers:q});if(z<=0)throw Error("exportIntervalMillis must be greater than 0");if(G<=0)throw Error("exportTimeoutMillis must be greater than 0");if(z<G)if("exportIntervalMillis"in Z&&"exportTimeoutMillis"in Z)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");else hJ.diag.info(`Timeout of ${G} exceeds the interval of ${z}. Clamping timeout to interval duration.`),G=z;this._exportInterval=z,this._exportTimeout=G,this._exporter=X}async _runOnce(){try{await(0,LU.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(Z){if(Z instanceof LU.TimeoutError){hJ.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,kJ.globalErrorHandler)(Z)}}async _doRun(){let{resourceMetrics:Z,errors:X}=await this.collect({timeoutMillis:this._exportTimeout});if(X.length>0)hJ.diag.error("PeriodicExportingMetricReader: metrics collection errors",...X);if(Z.resource.asyncAttributesPending)try{await Z.resource.waitForAsyncAttributes?.()}catch(q){hJ.diag.debug("Error while resolving async portion of resource: ",q),(0,kJ.globalErrorHandler)(q)}if(Z.scopeMetrics.length===0)return;let z=await kJ.internal._export(this._exporter,Z);if(z.code!==kJ.ExportResultCode.SUCCESS)throw Error(`PeriodicExportingMetricReader: metrics export failed (error ${z.error})`)}onInitialized(){if(this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),typeof this._interval!=="number")this._interval.unref()}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){if(this._interval)clearInterval(this._interval);await this.onForceFlush(),await this._exporter.shutdown()}}$U.PeriodicExportingMetricReader=TU});var fU=V((hU)=>{Object.defineProperty(hU,"__esModule",{value:!0});hU.InMemoryMetricExporter=void 0;var MU=l();class RU{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(Z){this._aggregationTemporality=Z}export(Z,X){if(this._shutdown){setTimeout(()=>X({code:MU.ExportResultCode.FAILED}),0);return}this._metrics.push(Z),setTimeout(()=>X({code:MU.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(Z){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}}hU.InMemoryMetricExporter=RU});var vU=V((_U)=>{Object.defineProperty(_U,"__esModule",{value:!0});_U.ConsoleMetricExporter=void 0;var SU=l(),Gr=_4();class v4{_shutdown=!1;_temporalitySelector;constructor(Z){this._temporalitySelector=Z?.temporalitySelector??Gr.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(Z,X){if(this._shutdown){X({code:SU.ExportResultCode.FAILED});return}return v4._sendMetrics(Z,X)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(Z){return this._temporalitySelector(Z)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(Z,X){for(let z of Z.scopeMetrics)for(let q of z.metrics)console.dir({descriptor:q.descriptor,dataPointType:q.dataPointType,dataPoints:q.dataPoints},{depth:null});X({code:SU.ExportResultCode.SUCCESS})}}_U.ConsoleMetricExporter=v4});var j4=V((jU)=>{Object.defineProperty(jU,"__esModule",{value:!0});jU._clearDefaultServiceNameCache=jU.defaultServiceName=void 0;var Y6;function qr(){if(Y6===void 0)try{let Z=globalThis.process.argv0;Y6=Z?`unknown_service:${Z}`:"unknown_service"}catch{Y6="unknown_service"}return Y6}jU.defaultServiceName=qr;function Wr(){Y6=void 0}jU._clearDefaultServiceNameCache=Wr});var uU=V((bU)=>{Object.defineProperty(bU,"__esModule",{value:!0});bU.isPromiseLike=void 0;var Fr=(Z)=>{return Z!==null&&typeof Z==="object"&&typeof Z.then==="function"};bU.isPromiseLike=Fr});var d4=V((cU)=>{Object.defineProperty(cU,"__esModule",{value:!0});cU.defaultResource=cU.emptyResource=cU.resourceFromDetectedResource=cU.resourceFromAttributes=void 0;var G6=I(),x4=l(),P1=w0(),Hr=j4(),z6=uU();class q6{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(Z,X){let z=new q6({},X);return z._rawAttributes=lU(Z),z._asyncAttributesPending=Z.filter(([q,G])=>(0,z6.isPromiseLike)(G)).length>0,z}constructor(Z,X){let z=Z.attributes??{};this._rawAttributes=Object.entries(z).map(([q,G])=>{if((0,z6.isPromiseLike)(G))this._asyncAttributesPending=!0;return[q,G]}),this._rawAttributes=lU(this._rawAttributes),this._schemaUrl=Nr(X?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let Z=0;Z<this._rawAttributes.length;Z++){let[X,z]=this._rawAttributes[Z];this._rawAttributes[Z]=[X,(0,z6.isPromiseLike)(z)?await z:z]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)G6.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let Z={};for(let[X,z]of this._rawAttributes){if((0,z6.isPromiseLike)(z)){G6.diag.debug(`Unsettled resource attribute ${X} skipped`);continue}if(z!=null)Z[X]??=z}if(!this._asyncAttributesPending)this._memoizedAttributes=Z;return Z}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(Z){if(Z==null)return this;let X=Cr(this,Z),z=X?{schemaUrl:X}:void 0;return q6.FromAttributeList([...Z.getRawAttributes(),...this.getRawAttributes()],z)}}function b4(Z,X){return q6.FromAttributeList(Object.entries(Z),X)}cU.resourceFromAttributes=b4;function Br(Z,X){return new q6(Z,X)}cU.resourceFromDetectedResource=Br;function Or(){return b4({})}cU.emptyResource=Or;function Vr(){return b4({[P1.ATTR_SERVICE_NAME]:(0,Hr.defaultServiceName)(),[P1.ATTR_TELEMETRY_SDK_LANGUAGE]:x4.SDK_INFO[P1.ATTR_TELEMETRY_SDK_LANGUAGE],[P1.ATTR_TELEMETRY_SDK_NAME]:x4.SDK_INFO[P1.ATTR_TELEMETRY_SDK_NAME],[P1.ATTR_TELEMETRY_SDK_VERSION]:x4.SDK_INFO[P1.ATTR_TELEMETRY_SDK_VERSION]})}cU.defaultResource=Vr;function lU(Z){return Z.map(([X,z])=>{if((0,z6.isPromiseLike)(z))return[X,z.catch((q)=>{G6.diag.debug("promise rejection for resource attribute: %s - %s",X,q);return})];return[X,z]})}function Nr(Z){if(typeof Z==="string"||Z===void 0)return Z;G6.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",Z);return}function Cr(Z,X){let z=Z?.schemaUrl,q=X?.schemaUrl,G=z===void 0||z==="",W=q===void 0||q==="";if(G)return q;if(W)return z;if(z===q)return z;G6.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',z,q);return}});var iU=V((gU)=>{Object.defineProperty(gU,"__esModule",{value:!0});gU.detectResources=void 0;var mU=I(),u4=d4(),Er=(Z={})=>{return(Z.detectors||[]).map((z)=>{try{let q=(0,u4.resourceFromDetectedResource)(z.detect(Z));return mU.diag.debug(`${z.constructor.name} found resource.`,q),q}catch(q){return mU.diag.debug(`${z.constructor.name} failed: ${q.message}`),(0,u4.emptyResource)()}}).reduce((z,q)=>z.merge(q),(0,u4.emptyResource)())};gU.detectResources=Er});var sU=V((tU)=>{Object.defineProperty(tU,"__esModule",{value:!0});tU.envDetector=void 0;var Ar=I(),Lr=w0(),aU=l();class oU{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(Z){let X={},z=(0,aU.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),q=(0,aU.getStringFromEnv)("OTEL_SERVICE_NAME");if(z)try{let G=this._parseResourceAttributes(z);Object.assign(X,G)}catch(G){Ar.diag.debug(`EnvDetector failed: ${G instanceof Error?G.message:G}`)}if(q)X[Lr.ATTR_SERVICE_NAME]=q;return{attributes:X}}_parseResourceAttributes(Z){if(!Z)return{};let X={},z=Z.split(this._COMMA_SEPARATOR);for(let q of z){let G=q.split(this._LABEL_KEY_VALUE_SPLITTER);if(G.length!==2)throw Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${q}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[W,Q]=G,J=W.trim(),Y=Q.trim();if(J.length===0)throw Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${q}".`);let K,F;try{K=decodeURIComponent(J),F=decodeURIComponent(Y)}catch(H){throw Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${q}": ${H instanceof Error?H.message:H}`)}if(K.length>this._MAX_LENGTH)throw Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${K}".`);if(F.length>this._MAX_LENGTH)throw Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${K}".`);X[K]=F}return X}}tU.envDetector=new oU});var W6=V((eU)=>{Object.defineProperty(eU,"__esModule",{value:!0});eU.ATTR_WEBENGINE_VERSION=eU.ATTR_WEBENGINE_NAME=eU.ATTR_WEBENGINE_DESCRIPTION=eU.ATTR_SERVICE_NAMESPACE=eU.ATTR_SERVICE_INSTANCE_ID=eU.ATTR_PROCESS_RUNTIME_VERSION=eU.ATTR_PROCESS_RUNTIME_NAME=eU.ATTR_PROCESS_RUNTIME_DESCRIPTION=eU.ATTR_PROCESS_PID=eU.ATTR_PROCESS_OWNER=eU.ATTR_PROCESS_EXECUTABLE_PATH=eU.ATTR_PROCESS_EXECUTABLE_NAME=eU.ATTR_PROCESS_COMMAND_ARGS=eU.ATTR_PROCESS_COMMAND=eU.ATTR_OS_VERSION=eU.ATTR_OS_TYPE=eU.ATTR_K8S_POD_NAME=eU.ATTR_K8S_NAMESPACE_NAME=eU.ATTR_K8S_DEPLOYMENT_NAME=eU.ATTR_K8S_CLUSTER_NAME=eU.ATTR_HOST_TYPE=eU.ATTR_HOST_NAME=eU.ATTR_HOST_IMAGE_VERSION=eU.ATTR_HOST_IMAGE_NAME=eU.ATTR_HOST_IMAGE_ID=eU.ATTR_HOST_ID=eU.ATTR_HOST_ARCH=eU.ATTR_CONTAINER_NAME=eU.ATTR_CONTAINER_IMAGE_TAGS=eU.ATTR_CONTAINER_IMAGE_NAME=eU.ATTR_CONTAINER_ID=eU.ATTR_CLOUD_REGION=eU.ATTR_CLOUD_PROVIDER=eU.ATTR_CLOUD_AVAILABILITY_ZONE=eU.ATTR_CLOUD_ACCOUNT_ID=void 0;eU.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";eU.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";eU.ATTR_CLOUD_PROVIDER="cloud.provider";eU.ATTR_CLOUD_REGION="cloud.region";eU.ATTR_CONTAINER_ID="container.id";eU.ATTR_CONTAINER_IMAGE_NAME="container.image.name";eU.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";eU.ATTR_CONTAINER_NAME="container.name";eU.ATTR_HOST_ARCH="host.arch";eU.ATTR_HOST_ID="host.id";eU.ATTR_HOST_IMAGE_ID="host.image.id";eU.ATTR_HOST_IMAGE_NAME="host.image.name";eU.ATTR_HOST_IMAGE_VERSION="host.image.version";eU.ATTR_HOST_NAME="host.name";eU.ATTR_HOST_TYPE="host.type";eU.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";eU.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";eU.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";eU.ATTR_K8S_POD_NAME="k8s.pod.name";eU.ATTR_OS_TYPE="os.type";eU.ATTR_OS_VERSION="os.version";eU.ATTR_PROCESS_COMMAND="process.command";eU.ATTR_PROCESS_COMMAND_ARGS="process.command_args";eU.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";eU.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";eU.ATTR_PROCESS_OWNER="process.owner";eU.ATTR_PROCESS_PID="process.pid";eU.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";eU.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";eU.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";eU.ATTR_SERVICE_INSTANCE_ID="service.instance.id";eU.ATTR_SERVICE_NAMESPACE="service.namespace";eU.ATTR_WEBENGINE_DESCRIPTION="webengine.description";eU.ATTR_WEBENGINE_NAME="webengine.name";eU.ATTR_WEBENGINE_VERSION="webengine.version"});var fJ=V((JI)=>{Object.defineProperty(JI,"__esModule",{value:!0});JI.execAsync=void 0;var Xs=h("child_process"),Ys=h("util");JI.execAsync=Ys.promisify(Xs.exec)});var zI=V((XI)=>{Object.defineProperty(XI,"__esModule",{value:!0});XI.getMachineId=void 0;var zs=fJ(),Gs=I();async function qs(){try{let X=(await(0,zs.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
2
|
+
`).find((q)=>q.includes("IOPlatformUUID"));if(!X)return;let z=X.split('" = "');if(z.length===2)return z[1].slice(0,-1)}catch(Z){Gs.diag.debug(`error reading machine id: ${Z}`)}return}XI.getMachineId=qs});var WI=V((GI)=>{Object.defineProperty(GI,"__esModule",{value:!0});GI.getMachineId=void 0;var Ws=h("fs"),Ks=I();async function Fs(){let Z=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let X of Z)try{return(await Ws.promises.readFile(X,{encoding:"utf8"})).trim()}catch(z){Ks.diag.debug(`error reading machine id: ${z}`)}return}GI.getMachineId=Fs});var BI=V((FI)=>{Object.defineProperty(FI,"__esModule",{value:!0});FI.getMachineId=void 0;var Hs=h("fs"),Bs=fJ(),KI=I();async function Os(){try{return(await Hs.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(Z){KI.diag.debug(`error reading machine id: ${Z}`)}try{return(await(0,Bs.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(Z){KI.diag.debug(`error reading machine id: ${Z}`)}return}FI.getMachineId=Os});var CI=V((VI)=>{Object.defineProperty(VI,"__esModule",{value:!0});VI.getMachineId=void 0;var OI=h("process"),Vs=fJ(),Ns=I();async function Cs(){let X="%windir%\\System32\\REG.exe";if(OI.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in OI.env)X="%windir%\\sysnative\\cmd.exe /c "+X;try{let q=(await(0,Vs.execAsync)(`${X} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split("REG_SZ");if(q.length===2)return q[1].trim()}catch(z){Ns.diag.debug(`error reading machine id: ${z}`)}return}VI.getMachineId=Cs});var DI=V((UI)=>{Object.defineProperty(UI,"__esModule",{value:!0});UI.getMachineId=void 0;var Us=I();async function Is(){Us.diag.debug("could not read machine-id: unsupported platform");return}UI.getMachineId=Is});var LI=V((EI)=>{Object.defineProperty(EI,"__esModule",{value:!0});EI.getMachineId=void 0;var Ds=h("process"),M1;async function Es(){if(!M1)switch(Ds.platform){case"darwin":M1=(await Promise.resolve().then(() => u(zI()))).getMachineId;break;case"linux":M1=(await Promise.resolve().then(() => u(WI()))).getMachineId;break;case"freebsd":M1=(await Promise.resolve().then(() => u(BI()))).getMachineId;break;case"win32":M1=(await Promise.resolve().then(() => u(CI()))).getMachineId;break;default:M1=(await Promise.resolve().then(() => u(DI()))).getMachineId;break}return M1()}EI.getMachineId=Es});var l4=V((TI)=>{Object.defineProperty(TI,"__esModule",{value:!0});TI.normalizeType=TI.normalizeArch=void 0;var As=(Z)=>{switch(Z){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return Z}};TI.normalizeArch=As;var Ls=(Z)=>{switch(Z){case"sunos":return"solaris";case"win32":return"windows";default:return Z}};TI.normalizeType=Ls});var hI=V((MI)=>{Object.defineProperty(MI,"__esModule",{value:!0});MI.hostDetector=void 0;var c4=W6(),wI=h("os"),$s=LI(),ws=l4();class PI{detect(Z){return{attributes:{[c4.ATTR_HOST_NAME]:(0,wI.hostname)(),[c4.ATTR_HOST_ARCH]:(0,ws.normalizeArch)((0,wI.arch)()),[c4.ATTR_HOST_ID]:(0,$s.getMachineId)()}}}}MI.hostDetector=new PI});var vI=V((_I)=>{Object.defineProperty(_I,"__esModule",{value:!0});_I.osDetector=void 0;var kI=W6(),fI=h("os"),Ps=l4();class SI{detect(Z){return{attributes:{[kI.ATTR_OS_TYPE]:(0,Ps.normalizeType)((0,fI.platform)()),[kI.ATTR_OS_VERSION]:(0,fI.release)()}}}}_I.osDetector=new SI});var dI=V((xI)=>{Object.defineProperty(xI,"__esModule",{value:!0});xI.processDetector=void 0;var Ms=I(),d0=W6(),Rs=h("os");class jI{detect(Z){let X={[d0.ATTR_PROCESS_PID]:process.pid,[d0.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[d0.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[d0.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[d0.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[d0.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[d0.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};if(process.argv.length>1)X[d0.ATTR_PROCESS_COMMAND]=process.argv[1];try{let z=Rs.userInfo();X[d0.ATTR_PROCESS_OWNER]=z.username}catch(z){Ms.diag.debug(`error obtaining process owner: ${z}`)}return{attributes:X}}}xI.processDetector=new jI});var nI=V((lI)=>{Object.defineProperty(lI,"__esModule",{value:!0});lI.serviceInstanceIdDetector=void 0;var hs=W6(),ks=h("crypto");class uI{detect(Z){return{attributes:{[hs.ATTR_SERVICE_INSTANCE_ID]:(0,ks.randomUUID)()}}}}lI.serviceInstanceIdDetector=new uI});var mI=V((qZ)=>{Object.defineProperty(qZ,"__esModule",{value:!0});qZ.serviceInstanceIdDetector=qZ.processDetector=qZ.osDetector=qZ.hostDetector=void 0;var fs=hI();Object.defineProperty(qZ,"hostDetector",{enumerable:!0,get:function(){return fs.hostDetector}});var Ss=vI();Object.defineProperty(qZ,"osDetector",{enumerable:!0,get:function(){return Ss.osDetector}});var _s=dI();Object.defineProperty(qZ,"processDetector",{enumerable:!0,get:function(){return _s.processDetector}});var ys=nI();Object.defineProperty(qZ,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return ys.serviceInstanceIdDetector}})});var gI=V((WZ)=>{Object.defineProperty(WZ,"__esModule",{value:!0});WZ.serviceInstanceIdDetector=WZ.processDetector=WZ.osDetector=WZ.hostDetector=void 0;var SJ=mI();Object.defineProperty(WZ,"hostDetector",{enumerable:!0,get:function(){return SJ.hostDetector}});Object.defineProperty(WZ,"osDetector",{enumerable:!0,get:function(){return SJ.osDetector}});Object.defineProperty(WZ,"processDetector",{enumerable:!0,get:function(){return SJ.processDetector}});Object.defineProperty(WZ,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return SJ.serviceInstanceIdDetector}})});var aI=V((pI)=>{Object.defineProperty(pI,"__esModule",{value:!0});pI.noopDetector=pI.NoopDetector=void 0;class n4{detect(){return{attributes:{}}}}pI.NoopDetector=n4;pI.noopDetector=new n4});var oI=V((e0)=>{Object.defineProperty(e0,"__esModule",{value:!0});e0.noopDetector=e0.serviceInstanceIdDetector=e0.processDetector=e0.osDetector=e0.hostDetector=e0.envDetector=void 0;var bs=sU();Object.defineProperty(e0,"envDetector",{enumerable:!0,get:function(){return bs.envDetector}});var _J=gI();Object.defineProperty(e0,"hostDetector",{enumerable:!0,get:function(){return _J.hostDetector}});Object.defineProperty(e0,"osDetector",{enumerable:!0,get:function(){return _J.osDetector}});Object.defineProperty(e0,"processDetector",{enumerable:!0,get:function(){return _J.processDetector}});Object.defineProperty(e0,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return _J.serviceInstanceIdDetector}});var ds=aI();Object.defineProperty(e0,"noopDetector",{enumerable:!0,get:function(){return ds.noopDetector}})});var g4=V((O0)=>{Object.defineProperty(O0,"__esModule",{value:!0});O0.defaultServiceName=O0.emptyResource=O0.defaultResource=O0.resourceFromAttributes=O0.serviceInstanceIdDetector=O0.processDetector=O0.osDetector=O0.hostDetector=O0.envDetector=O0.detectResources=void 0;var ls=iU();Object.defineProperty(O0,"detectResources",{enumerable:!0,get:function(){return ls.detectResources}});var K6=oI();Object.defineProperty(O0,"envDetector",{enumerable:!0,get:function(){return K6.envDetector}});Object.defineProperty(O0,"hostDetector",{enumerable:!0,get:function(){return K6.hostDetector}});Object.defineProperty(O0,"osDetector",{enumerable:!0,get:function(){return K6.osDetector}});Object.defineProperty(O0,"processDetector",{enumerable:!0,get:function(){return K6.processDetector}});Object.defineProperty(O0,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return K6.serviceInstanceIdDetector}});var m4=d4();Object.defineProperty(O0,"resourceFromAttributes",{enumerable:!0,get:function(){return m4.resourceFromAttributes}});Object.defineProperty(O0,"defaultResource",{enumerable:!0,get:function(){return m4.defaultResource}});Object.defineProperty(O0,"emptyResource",{enumerable:!0,get:function(){return m4.emptyResource}});var cs=j4();Object.defineProperty(O0,"defaultServiceName",{enumerable:!0,get:function(){return cs.defaultServiceName}})});var eI=V((rI)=>{Object.defineProperty(rI,"__esModule",{value:!0});rI.ViewRegistry=void 0;class tI{_registeredViews=[];addView(Z){this._registeredViews.push(Z)}findViews(Z,X){return this._registeredViews.filter((q)=>{return this._matchInstrument(q.instrumentSelector,Z)&&this._matchMeter(q.meterSelector,X)})}_matchInstrument(Z,X){return(Z.getType()===void 0||X.type===Z.getType())&&Z.getNameFilter().match(X.name)&&Z.getUnitFilter().match(X.unit)}_matchMeter(Z,X){return Z.getNameFilter().match(X.name)&&(X.version===void 0||Z.getVersionFilter().match(X.version))&&(X.schemaUrl===void 0||Z.getSchemaUrlFilter().match(X.schemaUrl))}}rI.ViewRegistry=tI});var F6=V((QD)=>{Object.defineProperty(QD,"__esModule",{value:!0});QD.isValidName=QD.isDescriptorCompatibleWith=QD.createInstrumentDescriptorWithView=QD.createInstrumentDescriptor=void 0;var ZD=I(),ms=M0();function gs(Z,X,z){if(!JD(Z))ZD.diag.warn(`Invalid metric name: "${Z}". The metric name should be a ASCII string with a length no greater than 255 characters.`);return{name:Z,type:X,description:z?.description??"",unit:z?.unit??"",valueType:z?.valueType??ZD.ValueType.DOUBLE,advice:z?.advice??{}}}QD.createInstrumentDescriptor=gs;function ps(Z,X){return{name:Z.name??X.name,description:Z.description??X.description,type:X.type,unit:X.unit,valueType:X.valueType,advice:X.advice}}QD.createInstrumentDescriptorWithView=ps;function is(Z,X){return(0,ms.equalsCaseInsensitive)(Z.name,X.name)&&Z.unit===X.unit&&Z.type===X.type&&Z.valueType===X.valueType}QD.isDescriptorCompatibleWith=is;var as=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function JD(Z){return as.test(Z)}QD.isValidName=JD});var yJ=V((HD)=>{Object.defineProperty(HD,"__esModule",{value:!0});HD.isObservableInstrument=HD.ObservableUpDownCounterInstrument=HD.ObservableGaugeInstrument=HD.ObservableCounterInstrument=HD.ObservableInstrument=HD.HistogramInstrument=HD.GaugeInstrument=HD.CounterInstrument=HD.UpDownCounterInstrument=HD.SyncInstrument=void 0;var KZ=I(),ss=l();class FZ{_writableMetricStorage;_descriptor;constructor(Z,X){this._writableMetricStorage=Z,this._descriptor=X}_record(Z,X={},z=KZ.context.active()){if(typeof Z!=="number"){KZ.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${Z}`);return}if(this._descriptor.valueType===KZ.ValueType.INT&&!Number.isInteger(Z)){if(KZ.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),Z=Math.trunc(Z),!Number.isInteger(Z))return}this._writableMetricStorage.record(Z,X,z,(0,ss.millisToHrTime)(Date.now()))}}HD.SyncInstrument=FZ;class YD extends FZ{add(Z,X,z){this._record(Z,X,z)}}HD.UpDownCounterInstrument=YD;class zD extends FZ{add(Z,X,z){if(Z<0){KZ.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${Z}`);return}this._record(Z,X,z)}}HD.CounterInstrument=zD;class GD extends FZ{record(Z,X,z){this._record(Z,X,z)}}HD.GaugeInstrument=GD;class qD extends FZ{record(Z,X,z){if(Z<0){KZ.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${Z}`);return}this._record(Z,X,z)}}HD.HistogramInstrument=qD;class HZ{_metricStorages;_descriptor;_observableRegistry;constructor(Z,X,z){this._descriptor=Z,this._metricStorages=X,this._observableRegistry=z}addCallback(Z){this._observableRegistry.addCallback(Z,this)}removeCallback(Z){this._observableRegistry.removeCallback(Z,this)}}HD.ObservableInstrument=HZ;class WD extends HZ{}HD.ObservableCounterInstrument=WD;class KD extends HZ{}HD.ObservableGaugeInstrument=KD;class FD extends HZ{}HD.ObservableUpDownCounterInstrument=FD;function es(Z){return Z instanceof HZ}HD.isObservableInstrument=es});var CD=V((VD)=>{Object.defineProperty(VD,"__esModule",{value:!0});VD.Meter=void 0;var R1=F6(),h1=yJ(),k1=s0();class OD{_meterSharedState;constructor(Z){this._meterSharedState=Z}createGauge(Z,X){let z=(0,R1.createInstrumentDescriptor)(Z,k1.InstrumentType.GAUGE,X),q=this._meterSharedState.registerMetricStorage(z);return new h1.GaugeInstrument(q,z)}createHistogram(Z,X){let z=(0,R1.createInstrumentDescriptor)(Z,k1.InstrumentType.HISTOGRAM,X),q=this._meterSharedState.registerMetricStorage(z);return new h1.HistogramInstrument(q,z)}createCounter(Z,X){let z=(0,R1.createInstrumentDescriptor)(Z,k1.InstrumentType.COUNTER,X),q=this._meterSharedState.registerMetricStorage(z);return new h1.CounterInstrument(q,z)}createUpDownCounter(Z,X){let z=(0,R1.createInstrumentDescriptor)(Z,k1.InstrumentType.UP_DOWN_COUNTER,X),q=this._meterSharedState.registerMetricStorage(z);return new h1.UpDownCounterInstrument(q,z)}createObservableGauge(Z,X){let z=(0,R1.createInstrumentDescriptor)(Z,k1.InstrumentType.OBSERVABLE_GAUGE,X),q=this._meterSharedState.registerAsyncMetricStorage(z);return new h1.ObservableGaugeInstrument(z,q,this._meterSharedState.observableRegistry)}createObservableCounter(Z,X){let z=(0,R1.createInstrumentDescriptor)(Z,k1.InstrumentType.OBSERVABLE_COUNTER,X),q=this._meterSharedState.registerAsyncMetricStorage(z);return new h1.ObservableCounterInstrument(z,q,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(Z,X){let z=(0,R1.createInstrumentDescriptor)(Z,k1.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,X),q=this._meterSharedState.registerAsyncMetricStorage(z);return new h1.ObservableUpDownCounterInstrument(z,q,this._meterSharedState.observableRegistry)}addBatchObservableCallback(Z,X){this._meterSharedState.observableRegistry.addBatchCallback(Z,X)}removeBatchObservableCallback(Z,X){this._meterSharedState.observableRegistry.removeBatchCallback(Z,X)}}VD.Meter=OD});var p4=V((ID)=>{Object.defineProperty(ID,"__esModule",{value:!0});ID.MetricStorage=void 0;var Ke=F6();class UD{_instrumentDescriptor;constructor(Z){this._instrumentDescriptor=Z}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(Z){this._instrumentDescriptor=(0,Ke.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:Z,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}}ID.MetricStorage=UD});var H6=V((AD)=>{Object.defineProperty(AD,"__esModule",{value:!0});AD.AttributeHashMap=AD.HashMap=void 0;var Fe=M0();class i4{_valueMap=new Map;_keyMap=new Map;_hash;constructor(Z){this._hash=Z}get(Z,X){return X??=this._hash(Z),this._valueMap.get(X)}getOrDefault(Z,X){let z=this._hash(Z);if(this._valueMap.has(z))return this._valueMap.get(z);let q=X();if(!this._keyMap.has(z))this._keyMap.set(z,Z);return this._valueMap.set(z,q),q}set(Z,X,z){if(z??=this._hash(Z),!this._keyMap.has(z))this._keyMap.set(z,Z);this._valueMap.set(z,X)}has(Z,X){return X??=this._hash(Z),this._valueMap.has(X)}*keys(){let Z=this._keyMap.entries(),X=Z.next();while(X.done!==!0)yield[X.value[1],X.value[0]],X=Z.next()}*entries(){let Z=this._valueMap.entries(),X=Z.next();while(X.done!==!0)yield[this._keyMap.get(X.value[0]),X.value[1],X.value[0]],X=Z.next()}get size(){return this._valueMap.size}}AD.HashMap=i4;class ED extends i4{constructor(){super(Fe.hashAttributes)}}AD.AttributeHashMap=ED});var o4=V(($D)=>{Object.defineProperty($D,"__esModule",{value:!0});$D.DeltaMetricProcessor=void 0;var Be=M0(),a4=H6();class TD{_activeCollectionStorage=new a4.AttributeHashMap;_cumulativeMemoStorage=new a4.AttributeHashMap;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;_aggregator;constructor(Z,X){this._aggregator=Z,this._cardinalityLimit=(X??2000)-1,this._overflowHashCode=(0,Be.hashAttributes)(this._overflowAttributes)}record(Z,X,z,q){let G=this._activeCollectionStorage.get(X);if(!G){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(q))?.record(Z);return}G=this._aggregator.createAccumulation(q),this._activeCollectionStorage.set(X,G)}G?.record(Z)}batchCumulate(Z,X){Array.from(Z.entries()).forEach(([z,q,G])=>{let W=this._aggregator.createAccumulation(X);W?.record(q);let Q=W;if(this._cumulativeMemoStorage.has(z,G)){let J=this._cumulativeMemoStorage.get(z,G);Q=this._aggregator.diff(J,W)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit){if(z=this._overflowAttributes,G=this._overflowHashCode,this._cumulativeMemoStorage.has(z,G)){let J=this._cumulativeMemoStorage.get(z,G);Q=this._aggregator.diff(J,W)}}if(this._activeCollectionStorage.has(z,G)){let J=this._activeCollectionStorage.get(z,G);Q=this._aggregator.merge(J,Q)}this._cumulativeMemoStorage.set(z,W,G),this._activeCollectionStorage.set(z,Q,G)})}collect(){let Z=this._activeCollectionStorage;return this._activeCollectionStorage=new a4.AttributeHashMap,Z}}$D.DeltaMetricProcessor=TD});var t4=V((PD)=>{Object.defineProperty(PD,"__esModule",{value:!0});PD.TemporalMetricProcessor=void 0;var Oe=AJ(),Ve=H6();class B6{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(Z,X){this._aggregator=Z,X.forEach((z)=>{this._unreportedAccumulations.set(z,[])})}buildMetrics(Z,X,z,q){this._stashAccumulations(z);let G=this._getMergedUnreportedAccumulations(Z),W=G,Q;if(this._reportHistory.has(Z)){let Y=this._reportHistory.get(Z),K=Y.collectionTime;if(Q=Y.aggregationTemporality,Q===Oe.AggregationTemporality.CUMULATIVE)W=B6.merge(Y.accumulations,G,this._aggregator);else W=B6.calibrateStartTime(Y.accumulations,G,K)}else Q=Z.selectAggregationTemporality(X.type);this._reportHistory.set(Z,{accumulations:W,collectionTime:q,aggregationTemporality:Q});let J=Ne(W);if(J.length===0)return;return this._aggregator.toMetricData(X,Q,J,q)}_stashAccumulations(Z){let X=this._unreportedAccumulations.keys();for(let z of X){let q=this._unreportedAccumulations.get(z);if(q===void 0)q=[],this._unreportedAccumulations.set(z,q);q.push(Z)}}_getMergedUnreportedAccumulations(Z){let X=new Ve.AttributeHashMap,z=this._unreportedAccumulations.get(Z);if(this._unreportedAccumulations.set(Z,[]),z===void 0)return X;for(let q of z)X=B6.merge(X,q,this._aggregator);return X}static merge(Z,X,z){let q=Z,G=X.entries(),W=G.next();while(W.done!==!0){let[Q,J,Y]=W.value;if(Z.has(Q,Y)){let K=Z.get(Q,Y),F=z.merge(K,J);q.set(Q,F,Y)}else q.set(Q,J,Y);W=G.next()}return q}static calibrateStartTime(Z,X,z){for(let[q,G]of Z.keys())X.get(q,G)?.setStartTime(z);return X}}PD.TemporalMetricProcessor=B6;function Ne(Z){return Array.from(Z.entries())}});var fD=V((hD)=>{Object.defineProperty(hD,"__esModule",{value:!0});hD.AsyncMetricStorage=void 0;var Ce=p4(),Ue=o4(),Ie=t4(),De=H6();class RD extends Ce.MetricStorage{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(Z,X,z,q,G){super(Z);this._aggregationCardinalityLimit=G,this._deltaMetricStorage=new Ue.DeltaMetricProcessor(X,this._aggregationCardinalityLimit),this._temporalMetricStorage=new Ie.TemporalMetricProcessor(X,q),this._attributesProcessor=z}record(Z,X){let z=new De.AttributeHashMap;Array.from(Z.entries()).forEach(([q,G])=>{z.set(this._attributesProcessor.process(q),G)}),this._deltaMetricStorage.batchCumulate(z,X)}collect(Z,X){let z=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(Z,this._instrumentDescriptor,z,X)}}hD.AsyncMetricStorage=RD});var bD=V((jD)=>{Object.defineProperty(jD,"__esModule",{value:!0});jD.getConflictResolutionRecipe=jD.getDescriptionResolutionRecipe=jD.getTypeConflictResolutionRecipe=jD.getUnitConflictResolutionRecipe=jD.getValueTypeConflictResolutionRecipe=jD.getIncompatibilityDetails=void 0;function Ee(Z,X){let z="";if(Z.unit!==X.unit)z+=` - Unit '${Z.unit}' does not match '${X.unit}'
|
|
3
|
+
`;if(Z.type!==X.type)z+=` - Type '${Z.type}' does not match '${X.type}'
|
|
4
|
+
`;if(Z.valueType!==X.valueType)z+=` - Value Type '${Z.valueType}' does not match '${X.valueType}'
|
|
5
|
+
`;if(Z.description!==X.description)z+=` - Description '${Z.description}' does not match '${X.description}'
|
|
6
|
+
`;return z}jD.getIncompatibilityDetails=Ee;function SD(Z,X){return` - use valueType '${Z.valueType}' on instrument creation or use an instrument name other than '${X.name}'`}jD.getValueTypeConflictResolutionRecipe=SD;function _D(Z,X){return` - use unit '${Z.unit}' on instrument creation or use an instrument name other than '${X.name}'`}jD.getUnitConflictResolutionRecipe=_D;function yD(Z,X){let z={name:X.name,type:X.type,unit:X.unit},q=JSON.stringify(z);return` - create a new view with a name other than '${Z.name}' and InstrumentSelector '${q}'`}jD.getTypeConflictResolutionRecipe=yD;function vD(Z,X){let z={name:X.name,type:X.type,unit:X.unit},q=JSON.stringify(z);return` - create a new view with a name other than '${Z.name}' and InstrumentSelector '${q}'
|
|
7
|
+
- OR - create a new view with the name ${Z.name} and description '${Z.description}' and InstrumentSelector ${q}
|
|
8
|
+
- OR - create a new view with the name ${X.name} and description '${Z.description}' and InstrumentSelector ${q}`}jD.getDescriptionResolutionRecipe=vD;function Ae(Z,X){if(Z.valueType!==X.valueType)return SD(Z,X);if(Z.unit!==X.unit)return _D(Z,X);if(Z.type!==X.type)return yD(Z,X);if(Z.description!==X.description)return vD(Z,X);return""}jD.getConflictResolutionRecipe=Ae});var cD=V((uD)=>{Object.defineProperty(uD,"__esModule",{value:!0});uD.MetricStorageRegistry=void 0;var Me=F6(),dD=I(),vJ=bD();class r4{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new r4}getStorages(Z){let X=[];for(let q of this._sharedRegistry.values())X=X.concat(q);let z=this._perCollectorRegistry.get(Z);if(z!=null)for(let q of z.values())X=X.concat(q);return X}register(Z){this._registerStorage(Z,this._sharedRegistry)}registerForCollector(Z,X){let z=this._perCollectorRegistry.get(Z);if(z==null)z=new Map,this._perCollectorRegistry.set(Z,z);this._registerStorage(X,z)}findOrUpdateCompatibleStorage(Z){let X=this._sharedRegistry.get(Z.name);if(X===void 0)return null;return this._findOrUpdateCompatibleStorage(Z,X)}findOrUpdateCompatibleCollectorStorage(Z,X){let z=this._perCollectorRegistry.get(Z);if(z===void 0)return null;let q=z.get(X.name);if(q===void 0)return null;return this._findOrUpdateCompatibleStorage(X,q)}_registerStorage(Z,X){let z=Z.getInstrumentDescriptor(),q=X.get(z.name);if(q===void 0){X.set(z.name,[Z]);return}q.push(Z)}_findOrUpdateCompatibleStorage(Z,X){let z=null;for(let q of X){let G=q.getInstrumentDescriptor();if((0,Me.isDescriptorCompatibleWith)(G,Z)){if(G.description!==Z.description){if(Z.description.length>G.description.length)q.updateDescription(Z.description);dD.diag.warn("A view or instrument with the name ",Z.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
|
9
|
+
`,`Details:
|
|
10
|
+
`,(0,vJ.getIncompatibilityDetails)(G,Z),`The longer description will be used.
|
|
11
|
+
To resolve the conflict:`,(0,vJ.getConflictResolutionRecipe)(G,Z))}z=q}else dD.diag.warn("A view or instrument with the name ",Z.name,` has already been registered and is incompatible with another registered view.
|
|
12
|
+
`,`Details:
|
|
13
|
+
`,(0,vJ.getIncompatibilityDetails)(G,Z),`To resolve the conflict:
|
|
14
|
+
`,(0,vJ.getConflictResolutionRecipe)(G,Z))}return z}}uD.MetricStorageRegistry=r4});var pD=V((mD)=>{Object.defineProperty(mD,"__esModule",{value:!0});mD.MultiMetricStorage=void 0;class nD{_backingStorages;constructor(Z){this._backingStorages=Z}record(Z,X,z,q){this._backingStorages.forEach((G)=>{G.record(Z,X,z,q)})}}mD.MultiMetricStorage=nD});var sD=V((tD)=>{Object.defineProperty(tD,"__esModule",{value:!0});tD.BatchObservableResultImpl=tD.ObservableResultImpl=void 0;var BZ=I(),iD=H6(),Re=yJ();class aD{_buffer=new iD.AttributeHashMap;_instrumentName;_valueType;constructor(Z,X){this._instrumentName=Z,this._valueType=X}observe(Z,X={}){if(typeof Z!=="number"){BZ.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${Z}`);return}if(this._valueType===BZ.ValueType.INT&&!Number.isInteger(Z)){if(BZ.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),Z=Math.trunc(Z),!Number.isInteger(Z))return}this._buffer.set(X,Z)}}tD.ObservableResultImpl=aD;class oD{_buffer=new Map;observe(Z,X,z={}){if(!(0,Re.isObservableInstrument)(Z))return;let q=this._buffer.get(Z);if(q==null)q=new iD.AttributeHashMap,this._buffer.set(Z,q);if(typeof X!=="number"){BZ.diag.warn(`non-number value provided to metric ${Z._descriptor.name}: ${X}`);return}if(Z._descriptor.valueType===BZ.ValueType.INT&&!Number.isInteger(X)){if(BZ.diag.warn(`INT value type cannot accept a floating-point value for ${Z._descriptor.name}, ignoring the fractional digits.`),X=Math.trunc(X),!Number.isInteger(X))return}q.set(z,X)}}tD.BatchObservableResultImpl=oD});var YE=V((QE)=>{Object.defineProperty(QE,"__esModule",{value:!0});QE.ObservableRegistry=void 0;var ke=I(),eD=yJ(),ZE=sD(),s4=M0();class JE{_callbacks=[];_batchCallbacks=[];addCallback(Z,X){if(this._findCallback(Z,X)>=0)return;this._callbacks.push({callback:Z,instrument:X})}removeCallback(Z,X){let z=this._findCallback(Z,X);if(z<0)return;this._callbacks.splice(z,1)}addBatchCallback(Z,X){let z=new Set(X.filter(eD.isObservableInstrument));if(z.size===0){ke.diag.error("BatchObservableCallback is not associated with valid instruments",X);return}if(this._findBatchCallback(Z,z)>=0)return;this._batchCallbacks.push({callback:Z,instruments:z})}removeBatchCallback(Z,X){let z=new Set(X.filter(eD.isObservableInstrument)),q=this._findBatchCallback(Z,z);if(q<0)return;this._batchCallbacks.splice(q,1)}async observe(Z,X){let z=this._observeCallbacks(Z,X),q=this._observeBatchCallbacks(Z,X);return(await Promise.allSettled([...z,...q])).filter((Q)=>Q.status==="rejected").map((Q)=>Q.reason)}_observeCallbacks(Z,X){return this._callbacks.map(async({callback:z,instrument:q})=>{let G=new ZE.ObservableResultImpl(q._descriptor.name,q._descriptor.valueType),W=Promise.resolve(z(G));if(X!=null)W=(0,s4.callWithTimeout)(W,X);await W,q._metricStorages.forEach((Q)=>{Q.record(G._buffer,Z)})})}_observeBatchCallbacks(Z,X){return this._batchCallbacks.map(async({callback:z,instruments:q})=>{let G=new ZE.BatchObservableResultImpl,W=Promise.resolve(z(G));if(X!=null)W=(0,s4.callWithTimeout)(W,X);await W,q.forEach((Q)=>{let J=G._buffer.get(Q);if(J==null)return;Q._metricStorages.forEach((Y)=>{Y.record(J,Z)})})})}_findCallback(Z,X){return this._callbacks.findIndex((z)=>{return z.callback===Z&&z.instrument===X})}_findBatchCallback(Z,X){return this._batchCallbacks.findIndex((z)=>{return z.callback===Z&&(0,s4.setEquals)(z.instruments,X)})}}QE.ObservableRegistry=JE});var WE=V((GE)=>{Object.defineProperty(GE,"__esModule",{value:!0});GE.SyncMetricStorage=void 0;var fe=p4(),Se=o4(),_e=t4();class zE extends fe.MetricStorage{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(Z,X,z,q,G){super(Z);this._aggregationCardinalityLimit=G,this._deltaMetricStorage=new Se.DeltaMetricProcessor(X,this._aggregationCardinalityLimit),this._temporalMetricStorage=new _e.TemporalMetricProcessor(X,q),this._attributesProcessor=z}record(Z,X,z,q){X=this._attributesProcessor.process(X,z),this._deltaMetricStorage.record(Z,X,z,q)}collect(Z,X){let z=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(Z,this._instrumentDescriptor,z,X)}}GE.SyncMetricStorage=zE});var jJ=V((OE)=>{Object.defineProperty(OE,"__esModule",{value:!0});OE.createDenyListAttributesProcessor=OE.createAllowListAttributesProcessor=OE.createMultiAttributesProcessor=OE.createNoopAttributesProcessor=void 0;class KE{process(Z,X){return Z}}class FE{_processors;constructor(Z){this._processors=Z}process(Z,X){let z=Z;for(let q of this._processors)z=q.process(z,X);return z}}class HE{_allowedAttributeNames;constructor(Z){this._allowedAttributeNames=Z}process(Z,X){let z={};return Object.keys(Z).forEach((q)=>{if(this._allowedAttributeNames.includes(q))z[q]=Z[q]}),z}}class BE{_deniedAttributeNames;constructor(Z){this._deniedAttributeNames=Z}process(Z,X){let z={};return Object.keys(Z).forEach((q)=>{if(!this._deniedAttributeNames.includes(q))z[q]=Z[q]}),z}}function ye(){return be}OE.createNoopAttributesProcessor=ye;function ve(Z){return new FE(Z)}OE.createMultiAttributesProcessor=ve;function je(Z){return new HE(Z)}OE.createAllowListAttributesProcessor=je;function xe(Z){return new BE(Z)}OE.createDenyListAttributesProcessor=xe;var be=new KE});var IE=V((CE)=>{Object.defineProperty(CE,"__esModule",{value:!0});CE.MeterSharedState=void 0;var ce=F6(),ne=CD(),me=fD(),ge=cD(),pe=pD(),ie=YE(),ae=WE(),oe=jJ();class NE{metricStorageRegistry=new ge.MetricStorageRegistry;observableRegistry=new ie.ObservableRegistry;meter;_meterProviderSharedState;_instrumentationScope;constructor(Z,X){this.meter=new ne.Meter(this),this._meterProviderSharedState=Z,this._instrumentationScope=X}registerMetricStorage(Z){let X=this._registerMetricStorage(Z,ae.SyncMetricStorage);if(X.length===1)return X[0];return new pe.MultiMetricStorage(X)}registerAsyncMetricStorage(Z){return this._registerMetricStorage(Z,me.AsyncMetricStorage)}async collect(Z,X,z){let q=await this.observableRegistry.observe(X,z?.timeoutMillis),G=this.metricStorageRegistry.getStorages(Z);if(G.length===0)return null;let W=[];if(G.forEach((Q)=>{let J=Q.collect(Z,X);if(J!=null)W.push(J)}),W.length===0)return{errors:q};return{scopeMetrics:{scope:this._instrumentationScope,metrics:W},errors:q}}_registerMetricStorage(Z,X){let q=this._meterProviderSharedState.viewRegistry.findViews(Z,this._instrumentationScope).map((G)=>{let W=(0,ce.createInstrumentDescriptorWithView)(G,Z),Q=this.metricStorageRegistry.findOrUpdateCompatibleStorage(W);if(Q!=null)return Q;let J=G.aggregation.createAggregator(W),Y=new X(W,J,G.attributesProcessor,this._meterProviderSharedState.metricCollectors,G.aggregationCardinalityLimit);return this.metricStorageRegistry.register(Y),Y});if(q.length===0){let W=this._meterProviderSharedState.selectAggregations(Z.type).map(([Q,J])=>{let Y=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(Q,Z);if(Y!=null)return Y;let K=J.createAggregator(Z),F=Q.selectCardinalityLimit(Z.type),H=new X(Z,K,(0,oe.createNoopAttributesProcessor)(),[Q],F);return this.metricStorageRegistry.registerForCollector(Q,H),H});q=q.concat(W)}return q}}CE.MeterSharedState=NE});var LE=V((EE)=>{Object.defineProperty(EE,"__esModule",{value:!0});EE.MeterProviderSharedState=void 0;var te=M0(),re=eI(),se=IE(),ee=X6();class DE{viewRegistry=new re.ViewRegistry;metricCollectors=[];meterSharedStates=new Map;resource;constructor(Z){this.resource=Z}getMeterSharedState(Z){let X=(0,te.instrumentationScopeId)(Z),z=this.meterSharedStates.get(X);if(z==null)z=new se.MeterSharedState(this,Z),this.meterSharedStates.set(X,z);return z}selectAggregations(Z){let X=[];for(let z of this.metricCollectors)X.push([z,(0,ee.toAggregation)(z.selectAggregation(Z))]);return X}}EE.MeterProviderSharedState=DE});var PE=V(($E)=>{Object.defineProperty($E,"__esModule",{value:!0});$E.MetricCollector=void 0;var Z00=l();class TE{_sharedState;_metricReader;constructor(Z,X){this._sharedState=Z,this._metricReader=X}async collect(Z){let X=(0,Z00.millisToHrTime)(Date.now()),z=[],q=[],G=Array.from(this._sharedState.meterSharedStates.values()).map(async(W)=>{let Q=await W.collect(this,X,Z);if(Q?.scopeMetrics!=null)z.push(Q.scopeMetrics);if(Q?.errors!=null)q.push(...Q.errors)});return await Promise.all(G),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:z},errors:q}}async forceFlush(Z){await this._metricReader.forceFlush(Z)}async shutdown(Z){await this._metricReader.shutdown(Z)}selectAggregationTemporality(Z){return this._metricReader.selectAggregationTemporality(Z)}selectAggregation(Z){return this._metricReader.selectAggregation(Z)}selectCardinalityLimit(Z){return this._metricReader.selectCardinalityLimit?.(Z)??2000}}$E.MetricCollector=TE});var xJ=V((RE)=>{Object.defineProperty(RE,"__esModule",{value:!0});RE.ExactPredicate=RE.PatternPredicate=void 0;var J00=/[\^$\\.+?()[\]{}|]/g;class e4{_matchAll;_regexp;constructor(Z){if(Z==="*")this._matchAll=!0,this._regexp=/.*/;else this._matchAll=!1,this._regexp=new RegExp(e4.escapePattern(Z))}match(Z){if(this._matchAll)return!0;return this._regexp.test(Z)}static escapePattern(Z){return`^${Z.replace(J00,"\\$&").replace("*",".*")}$`}static hasWildcard(Z){return Z.includes("*")}}RE.PatternPredicate=e4;class ME{_matchAll;_pattern;constructor(Z){this._matchAll=Z===void 0,this._pattern=Z}match(Z){if(this._matchAll)return!0;if(Z===this._pattern)return!0;return!1}}RE.ExactPredicate=ME});var yE=V((SE)=>{Object.defineProperty(SE,"__esModule",{value:!0});SE.InstrumentSelector=void 0;var kE=xJ();class fE{_nameFilter;_type;_unitFilter;constructor(Z){this._nameFilter=new kE.PatternPredicate(Z?.name??"*"),this._type=Z?.type,this._unitFilter=new kE.ExactPredicate(Z?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}}SE.InstrumentSelector=fE});var bE=V((jE)=>{Object.defineProperty(jE,"__esModule",{value:!0});jE.MeterSelector=void 0;var Z8=xJ();class vE{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(Z){this._nameFilter=new Z8.ExactPredicate(Z?.name),this._versionFilter=new Z8.ExactPredicate(Z?.version),this._schemaUrlFilter=new Z8.ExactPredicate(Z?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}}jE.MeterSelector=vE});var mE=V((cE)=>{Object.defineProperty(cE,"__esModule",{value:!0});cE.View=void 0;var X00=xJ(),dE=jJ(),Y00=yE(),z00=bE(),uE=X6();function G00(Z){return Z.instrumentName==null&&Z.instrumentType==null&&Z.instrumentUnit==null&&Z.meterName==null&&Z.meterVersion==null&&Z.meterSchemaUrl==null}function q00(Z){if(G00(Z))throw Error("Cannot create view with no selector arguments supplied");if(Z.name!=null&&(Z?.instrumentName==null||X00.PatternPredicate.hasWildcard(Z.instrumentName)))throw Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.")}class lE{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(Z){if(q00(Z),Z.attributesProcessors!=null)this.attributesProcessor=(0,dE.createMultiAttributesProcessor)(Z.attributesProcessors);else this.attributesProcessor=(0,dE.createNoopAttributesProcessor)();this.name=Z.name,this.description=Z.description,this.aggregation=(0,uE.toAggregation)(Z.aggregation??{type:uE.AggregationType.DEFAULT}),this.instrumentSelector=new Y00.InstrumentSelector({name:Z.instrumentName,type:Z.instrumentType,unit:Z.instrumentUnit}),this.meterSelector=new z00.MeterSelector({name:Z.meterName,version:Z.meterVersion,schemaUrl:Z.meterSchemaUrl}),this.aggregationCardinalityLimit=Z.aggregationCardinalityLimit}}cE.View=lE});var aE=V((pE)=>{Object.defineProperty(pE,"__esModule",{value:!0});pE.MeterProvider=void 0;var bJ=I(),W00=g4(),K00=LE(),F00=PE(),H00=mE();class gE{_sharedState;_shutdown=!1;constructor(Z){if(this._sharedState=new K00.MeterProviderSharedState(Z?.resource??(0,W00.defaultResource)()),Z?.views!=null&&Z.views.length>0)for(let X of Z.views)this._sharedState.viewRegistry.addView(new H00.View(X));if(Z?.readers!=null&&Z.readers.length>0)for(let X of Z.readers){let z=new F00.MetricCollector(this._sharedState,X);X.setMetricProducer(z),this._sharedState.metricCollectors.push(z)}}getMeter(Z,X="",z={}){if(this._shutdown)return bJ.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,bJ.createNoopMeter)();return this._sharedState.getMeterSharedState({name:Z,version:X,schemaUrl:z.schemaUrl}).meter}async shutdown(Z){if(this._shutdown){bJ.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map((X)=>{return X.shutdown(Z)}))}async forceFlush(Z){if(this._shutdown){bJ.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map((X)=>{return X.forceFlush(Z)}))}}pE.MeterProvider=gE});var J8=V((Y0)=>{Object.defineProperty(Y0,"__esModule",{value:!0});Y0.TimeoutError=Y0.createDenyListAttributesProcessor=Y0.createAllowListAttributesProcessor=Y0.AggregationType=Y0.MeterProvider=Y0.ConsoleMetricExporter=Y0.InMemoryMetricExporter=Y0.PeriodicExportingMetricReader=Y0.MetricReader=Y0.InstrumentType=Y0.DataPointType=Y0.AggregationTemporality=void 0;var B00=AJ();Object.defineProperty(Y0,"AggregationTemporality",{enumerable:!0,get:function(){return B00.AggregationTemporality}});var oE=s0();Object.defineProperty(Y0,"DataPointType",{enumerable:!0,get:function(){return oE.DataPointType}});Object.defineProperty(Y0,"InstrumentType",{enumerable:!0,get:function(){return oE.InstrumentType}});var O00=y4();Object.defineProperty(Y0,"MetricReader",{enumerable:!0,get:function(){return O00.MetricReader}});var V00=PU();Object.defineProperty(Y0,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return V00.PeriodicExportingMetricReader}});var N00=fU();Object.defineProperty(Y0,"InMemoryMetricExporter",{enumerable:!0,get:function(){return N00.InMemoryMetricExporter}});var C00=vU();Object.defineProperty(Y0,"ConsoleMetricExporter",{enumerable:!0,get:function(){return C00.ConsoleMetricExporter}});var U00=aE();Object.defineProperty(Y0,"MeterProvider",{enumerable:!0,get:function(){return U00.MeterProvider}});var I00=X6();Object.defineProperty(Y0,"AggregationType",{enumerable:!0,get:function(){return I00.AggregationType}});var tE=jJ();Object.defineProperty(Y0,"createAllowListAttributesProcessor",{enumerable:!0,get:function(){return tE.createAllowListAttributesProcessor}});Object.defineProperty(Y0,"createDenyListAttributesProcessor",{enumerable:!0,get:function(){return tE.createDenyListAttributesProcessor}});var D00=M0();Object.defineProperty(Y0,"TimeoutError",{enumerable:!0,get:function(){return D00.TimeoutError}})});var sE=V((rE)=>{Object.defineProperty(rE,"__esModule",{value:!0});rE.EAggregationTemporality=void 0;var A00;(function(Z){Z[Z.AGGREGATION_TEMPORALITY_UNSPECIFIED=0]="AGGREGATION_TEMPORALITY_UNSPECIFIED",Z[Z.AGGREGATION_TEMPORALITY_DELTA=1]="AGGREGATION_TEMPORALITY_DELTA",Z[Z.AGGREGATION_TEMPORALITY_CUMULATIVE=2]="AGGREGATION_TEMPORALITY_CUMULATIVE"})(A00=rE.EAggregationTemporality||(rE.EAggregationTemporality={}))});var X8=V((zA)=>{Object.defineProperty(zA,"__esModule",{value:!0});zA.createExportMetricsServiceRequest=zA.toMetric=zA.toScopeMetrics=zA.toResourceMetrics=void 0;var eE=I(),OZ=J8(),ZA=sE(),O6=DJ();function QA(Z,X){let z=(0,O6.createResource)(Z.resource,X);return{resource:z,schemaUrl:z.schemaUrl,scopeMetrics:XA(Z.scopeMetrics,X)}}zA.toResourceMetrics=QA;function XA(Z,X){return Array.from(Z.map((z)=>({scope:(0,O6.createInstrumentationScope)(z.scope),metrics:z.metrics.map((q)=>YA(q,X)),schemaUrl:z.scope.schemaUrl})))}zA.toScopeMetrics=XA;function YA(Z,X){let z={name:Z.descriptor.name,description:Z.descriptor.description,unit:Z.descriptor.unit},q=w00(Z.aggregationTemporality);switch(Z.dataPointType){case OZ.DataPointType.SUM:z.sum={aggregationTemporality:q,isMonotonic:Z.isMonotonic,dataPoints:JA(Z,X)};break;case OZ.DataPointType.GAUGE:z.gauge={dataPoints:JA(Z,X)};break;case OZ.DataPointType.HISTOGRAM:z.histogram={aggregationTemporality:q,dataPoints:T00(Z,X)};break;case OZ.DataPointType.EXPONENTIAL_HISTOGRAM:z.exponentialHistogram={aggregationTemporality:q,dataPoints:$00(Z,X)};break}return z}zA.toMetric=YA;function L00(Z,X,z){let q={attributes:(0,O6.toAttributes)(Z.attributes,z),startTimeUnixNano:z.encodeHrTime(Z.startTime),timeUnixNano:z.encodeHrTime(Z.endTime)};switch(X){case eE.ValueType.INT:q.asInt=Z.value;break;case eE.ValueType.DOUBLE:q.asDouble=Z.value;break}return q}function JA(Z,X){return Z.dataPoints.map((z)=>{return L00(z,Z.descriptor.valueType,X)})}function T00(Z,X){return Z.dataPoints.map((z)=>{let q=z.value;return{attributes:(0,O6.toAttributes)(z.attributes,X),bucketCounts:q.buckets.counts,explicitBounds:q.buckets.boundaries,count:q.count,sum:q.sum,min:q.min,max:q.max,startTimeUnixNano:X.encodeHrTime(z.startTime),timeUnixNano:X.encodeHrTime(z.endTime)}})}function $00(Z,X){return Z.dataPoints.map((z)=>{let q=z.value;return{attributes:(0,O6.toAttributes)(z.attributes,X),count:q.count,min:q.min,max:q.max,sum:q.sum,positive:{offset:q.positive.offset,bucketCounts:q.positive.bucketCounts},negative:{offset:q.negative.offset,bucketCounts:q.negative.bucketCounts},scale:q.scale,zeroCount:q.zeroCount,startTimeUnixNano:X.encodeHrTime(z.startTime),timeUnixNano:X.encodeHrTime(z.endTime)}})}function w00(Z){switch(Z){case OZ.AggregationTemporality.DELTA:return ZA.EAggregationTemporality.AGGREGATION_TEMPORALITY_DELTA;case OZ.AggregationTemporality.CUMULATIVE:return ZA.EAggregationTemporality.AGGREGATION_TEMPORALITY_CUMULATIVE}}function P00(Z,X){return{resourceMetrics:Z.map((z)=>QA(z,X))}}zA.createExportMetricsServiceRequest=P00});var FA=V((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.ProtobufMetricsSerializer=void 0;var qA=UJ(),k00=X8(),f00=A1(),S00=qA.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,_00=qA.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;WA.ProtobufMetricsSerializer={serializeRequest:(Z)=>{let X=(0,k00.createExportMetricsServiceRequest)([Z],f00.PROTOBUF_ENCODER);return _00.encode(X).finish()},deserializeResponse:(Z)=>{return S00.decode(Z)}}});var HA=V((Y8)=>{Object.defineProperty(Y8,"__esModule",{value:!0});Y8.ProtobufMetricsSerializer=void 0;var y00=FA();Object.defineProperty(Y8,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return y00.ProtobufMetricsSerializer}})});var z8=V((CA)=>{Object.defineProperty(CA,"__esModule",{value:!0});CA.createExportTraceServiceRequest=CA.toOtlpSpanEvent=CA.toOtlpLink=CA.sdkSpanToOtlpSpan=void 0;var V6=DJ(),j00=256,x00=512;function BA(Z,X){let z=Z&255|j00;if(X)z|=x00;return z}function OA(Z,X){let z=Z.spanContext(),q=Z.status,G=Z.parentSpanContext?.spanId?X.encodeSpanContext(Z.parentSpanContext?.spanId):void 0;return{traceId:X.encodeSpanContext(z.traceId),spanId:X.encodeSpanContext(z.spanId),parentSpanId:G,traceState:z.traceState?.serialize(),name:Z.name,kind:Z.kind==null?0:Z.kind+1,startTimeUnixNano:X.encodeHrTime(Z.startTime),endTimeUnixNano:X.encodeHrTime(Z.endTime),attributes:(0,V6.toAttributes)(Z.attributes,X),droppedAttributesCount:Z.droppedAttributesCount,events:Z.events.map((W)=>NA(W,X)),droppedEventsCount:Z.droppedEventsCount,status:{code:q.code,message:q.message},links:Z.links.map((W)=>VA(W,X)),droppedLinksCount:Z.droppedLinksCount,flags:BA(z.traceFlags,Z.parentSpanContext?.isRemote)}}CA.sdkSpanToOtlpSpan=OA;function VA(Z,X){return{attributes:Z.attributes?(0,V6.toAttributes)(Z.attributes,X):[],spanId:X.encodeSpanContext(Z.context.spanId),traceId:X.encodeSpanContext(Z.context.traceId),traceState:Z.context.traceState?.serialize(),droppedAttributesCount:Z.droppedAttributesCount||0,flags:BA(Z.context.traceFlags,Z.context.isRemote)}}CA.toOtlpLink=VA;function NA(Z,X){return{attributes:Z.attributes?(0,V6.toAttributes)(Z.attributes,X):[],name:Z.name,timeUnixNano:X.encodeHrTime(Z.time),droppedAttributesCount:Z.droppedAttributesCount||0}}CA.toOtlpSpanEvent=NA;function b00(Z,X){return{resourceSpans:u00(Z,X)}}CA.createExportTraceServiceRequest=b00;function d00(Z){let X=new Map;for(let z of Z){let q=X.get(z.resource);if(!q)q=new Map,X.set(z.resource,q);let G=`${z.instrumentationScope.name}@${z.instrumentationScope.version||""}:${z.instrumentationScope.schemaUrl||""}`,W=q.get(G);if(!W)W=[],q.set(G,W);W.push(z)}return X}function u00(Z,X){let z=d00(Z),q=[],G=z.entries(),W=G.next();while(!W.done){let[Q,J]=W.value,Y=[],K=J.values(),F=K.next();while(!F.done){let U=F.value;if(U.length>0){let E=U.map((k)=>OA(k,X));Y.push({scope:(0,V6.createInstrumentationScope)(U[0].instrumentationScope),spans:E,schemaUrl:U[0].instrumentationScope.schemaUrl})}F=K.next()}let H=(0,V6.createResource)(Q,X),N={resource:H,scopeSpans:Y,schemaUrl:H.schemaUrl};q.push(N),W=G.next()}return q}});var AA=V((DA)=>{Object.defineProperty(DA,"__esModule",{value:!0});DA.ProtobufTraceSerializer=void 0;var IA=UJ(),m00=z8(),g00=A1(),p00=IA.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,i00=IA.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;DA.ProtobufTraceSerializer={serializeRequest:(Z)=>{let X=(0,m00.createExportTraceServiceRequest)(Z,g00.PROTOBUF_ENCODER);return i00.encode(X).finish()},deserializeResponse:(Z)=>{return p00.decode(Z)}}});var LA=V((G8)=>{Object.defineProperty(G8,"__esModule",{value:!0});G8.ProtobufTraceSerializer=void 0;var a00=AA();Object.defineProperty(G8,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return a00.ProtobufTraceSerializer}})});var wA=V((TA)=>{Object.defineProperty(TA,"__esModule",{value:!0});TA.JsonLogsSerializer=void 0;var t00=I4(),r00=A1();TA.JsonLogsSerializer={serializeRequest:(Z)=>{let X=(0,t00.createExportLogsServiceRequest)(Z,r00.JSON_ENCODER);return new TextEncoder().encode(JSON.stringify(X))},deserializeResponse:(Z)=>{if(Z.length===0)return{};return JSON.parse(new TextDecoder().decode(Z))}}});var PA=V((q8)=>{Object.defineProperty(q8,"__esModule",{value:!0});q8.JsonLogsSerializer=void 0;var s00=wA();Object.defineProperty(q8,"JsonLogsSerializer",{enumerable:!0,get:function(){return s00.JsonLogsSerializer}})});var hA=V((MA)=>{Object.defineProperty(MA,"__esModule",{value:!0});MA.JsonMetricsSerializer=void 0;var Z10=X8(),J10=A1();MA.JsonMetricsSerializer={serializeRequest:(Z)=>{let X=(0,Z10.createExportMetricsServiceRequest)([Z],J10.JSON_ENCODER);return new TextEncoder().encode(JSON.stringify(X))},deserializeResponse:(Z)=>{if(Z.length===0)return{};return JSON.parse(new TextDecoder().decode(Z))}}});var kA=V((W8)=>{Object.defineProperty(W8,"__esModule",{value:!0});W8.JsonMetricsSerializer=void 0;var Q10=hA();Object.defineProperty(W8,"JsonMetricsSerializer",{enumerable:!0,get:function(){return Q10.JsonMetricsSerializer}})});var _A=V((fA)=>{Object.defineProperty(fA,"__esModule",{value:!0});fA.JsonTraceSerializer=void 0;var Y10=z8(),z10=A1();fA.JsonTraceSerializer={serializeRequest:(Z)=>{let X=(0,Y10.createExportTraceServiceRequest)(Z,z10.JSON_ENCODER);return new TextEncoder().encode(JSON.stringify(X))},deserializeResponse:(Z)=>{if(Z.length===0)return{};return JSON.parse(new TextDecoder().decode(Z))}}});var yA=V((K8)=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.JsonTraceSerializer=void 0;var G10=_A();Object.defineProperty(K8,"JsonTraceSerializer",{enumerable:!0,get:function(){return G10.JsonTraceSerializer}})});var dJ=V((Z1)=>{Object.defineProperty(Z1,"__esModule",{value:!0});Z1.JsonTraceSerializer=Z1.JsonMetricsSerializer=Z1.JsonLogsSerializer=Z1.ProtobufTraceSerializer=Z1.ProtobufMetricsSerializer=Z1.ProtobufLogsSerializer=void 0;var W10=sN();Object.defineProperty(Z1,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return W10.ProtobufLogsSerializer}});var K10=HA();Object.defineProperty(Z1,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return K10.ProtobufMetricsSerializer}});var F10=LA();Object.defineProperty(Z1,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return F10.ProtobufTraceSerializer}});var H10=PA();Object.defineProperty(Z1,"JsonLogsSerializer",{enumerable:!0,get:function(){return H10.JsonLogsSerializer}});var B10=kA();Object.defineProperty(Z1,"JsonMetricsSerializer",{enumerable:!0,get:function(){return B10.JsonMetricsSerializer}});var O10=yA();Object.defineProperty(Z1,"JsonTraceSerializer",{enumerable:!0,get:function(){return O10.JsonTraceSerializer}})});var xA=V((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});vA.validateAndNormalizeHeaders=void 0;var N10=I();function C10(Z){let X={};return Object.entries(Z??{}).forEach(([z,q])=>{if(typeof q<"u")X[z]=String(q);else N10.diag.warn(`Header "${z}" has invalid value (${q}) and will be ignored`)}),X}vA.validateAndNormalizeHeaders=C10});var lA=V((dA)=>{Object.defineProperty(dA,"__esModule",{value:!0});dA.getHttpConfigurationDefaults=dA.mergeOtlpHttpConfigurationWithDefaults=void 0;var bA=nZ(),U10=xA();function I10(Z,X,z){return async()=>{let q={...await z()},G={};if(X!=null)Object.assign(G,await X());if(Z!=null)Object.assign(G,(0,U10.validateAndNormalizeHeaders)(await Z()));return Object.assign(G,q)}}function D10(Z){if(Z==null)return;try{let X=globalThis.location?.href;return new URL(Z,X).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${Z}'`)}}function E10(Z,X,z){return{...(0,bA.mergeOtlpSharedConfigurationWithDefaults)(Z,X,z),headers:I10(Z.headers,X.headers,z.headers),url:D10(Z.url)??X.url??z.url}}dA.mergeOtlpHttpConfigurationWithDefaults=E10;function A10(Z,X){return{...(0,bA.getSharedConfigurationDefaults)(),headers:async()=>Z,url:"http://localhost:4318/"+X}}dA.getHttpConfigurationDefaults=A10});var uJ=V((mA)=>{Object.defineProperty(mA,"__esModule",{value:!0});mA.getNodeHttpConfigurationDefaults=mA.mergeOtlpNodeHttpConfigurationWithDefaults=mA.httpAgentFactoryFromOptions=void 0;var cA=lA();function nA(Z){return async(X)=>{let z=X==="http:",q=z?import("http"):import("https"),{Agent:G}=await q;if(z){let{ca:W,cert:Q,key:J,...Y}=Z;return new G(Y)}return new G(Z)}}mA.httpAgentFactoryFromOptions=nA;function T10(Z,X,z){return{...(0,cA.mergeOtlpHttpConfigurationWithDefaults)(Z,X,z),agentFactory:Z.agentFactory??X.agentFactory??z.agentFactory,userAgent:Z.userAgent}}mA.mergeOtlpNodeHttpConfigurationWithDefaults=T10;function $10(Z,X){return{...(0,cA.getHttpConfigurationDefaults)(Z,X),agentFactory:nA({keepAlive:!0})}}mA.getNodeHttpConfigurationDefaults=$10});var aA=V((pA)=>{Object.defineProperty(pA,"__esModule",{value:!0});pA.parseRetryAfterToMills=pA.isExportHTTPErrorRetryable=void 0;function M10(Z){return Z===429||Z===502||Z===503||Z===504}pA.isExportHTTPErrorRetryable=M10;function R10(Z){if(Z==null)return;let X=Number.parseInt(Z,10);if(Number.isInteger(X))return X>0?X*1000:-1;let z=new Date(Z).getTime()-Date.now();if(z>=0)return z;return 0}pA.parseRetryAfterToMills=R10});var rA=V((oA)=>{Object.defineProperty(oA,"__esModule",{value:!0});oA.VERSION=void 0;oA.VERSION="0.214.0"});var QL=V((ZL)=>{Object.defineProperty(ZL,"__esModule",{value:!0});ZL.compressAndSend=ZL.sendWithHttp=void 0;var k10=h("zlib"),f10=h("stream"),lJ=aA(),S10=e6(),_10=rA(),sA=`OTel-OTLP-Exporter-JavaScript/${_10.VERSION}`;function y10(Z,X,z,q,G,W,Q,J){return new Promise((Y)=>{let K=new URL(X);if(G)z["User-Agent"]=`${G} ${sA}`;else z["User-Agent"]=sA;let F={hostname:K.hostname,port:K.port,path:K.pathname,method:"POST",headers:z,agent:W},H=Z(F,(N)=>{let U=[];N.on("data",(E)=>U.push(E)),N.on("end",()=>{if(N.statusCode&&N.statusCode<=299)Y({status:"success",data:Buffer.concat(U)});else if(N.statusCode&&(0,lJ.isExportHTTPErrorRetryable)(N.statusCode))Y({status:"retryable",retryInMillis:(0,lJ.parseRetryAfterToMills)(N.headers["retry-after"])});else{let E=new S10.OTLPExporterError(N.statusMessage,N.statusCode,Buffer.concat(U).toString());Y({status:"failure",error:E})}}),N.on("error",(E)=>{if(N.statusCode&&N.statusCode<=299)Y({status:"success"});else if(N.statusCode&&(0,lJ.isExportHTTPErrorRetryable)(N.statusCode))Y({status:"retryable",error:E,retryInMillis:(0,lJ.parseRetryAfterToMills)(N.headers["retry-after"])});else Y({status:"failure",error:E})})});H.setTimeout(J,()=>{H.destroy(),Y({status:"retryable",error:Error("Request timed out")})}),H.on("error",(N)=>{if(j10(N))Y({status:"retryable",error:N});else Y({status:"failure",error:N})}),eA(H,q,Q,(N)=>{Y({status:"failure",error:N})})})}ZL.sendWithHttp=y10;function eA(Z,X,z,q){let G=v10(z);if(X==="gzip")Z.setHeader("Content-Encoding","gzip"),G=G.on("error",q).pipe(k10.createGzip()).on("error",q);G.pipe(Z).on("error",q)}ZL.compressAndSend=eA;function v10(Z){let X=new f10.Readable;return X.push(Z),X.push(null),X}function j10(Z){let X=new Set(["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","EAI_AGAIN","ENOTFOUND","ENETUNREACH","EHOSTUNREACH"]);if("code"in Z&&typeof Z.code==="string")return X.has(Z.code);return!1}});var GL=V((YL)=>{Object.defineProperty(YL,"__esModule",{value:!0});YL.createHttpExporterTransport=void 0;var b10=QL();class XL{_utils=null;_parameters;constructor(Z){this._parameters=Z}async send(Z,X){let{agent:z,request:q}=await this._loadUtils(),G=await this._parameters.headers();return(0,b10.sendWithHttp)(q,this._parameters.url,G,this._parameters.compression,this._parameters.userAgent,z,Z,X)}shutdown(){}async _loadUtils(){let Z=this._utils;if(Z===null){let X=new URL(this._parameters.url).protocol,[z,q]=await Promise.all([this._parameters.agentFactory(X),d10(X)]);Z=this._utils={agent:z,request:q}}return Z}}async function d10(Z){let X=Z==="http:"?import("http"):import("https"),{request:z}=await X;return z}function u10(Z){return new XL(Z)}YL.createHttpExporterTransport=u10});var HL=V((KL)=>{Object.defineProperty(KL,"__esModule",{value:!0});KL.createRetryingTransport=void 0;var N6=I(),F8=5,l10=1000,c10=5000,n10=1.5,qL=0.2;function m10(){return Math.random()*(2*qL)-qL}class WL{_transport;constructor(Z){this._transport=Z}retry(Z,X,z){return new Promise((q,G)=>{setTimeout(()=>{this._transport.send(Z,X).then(q,G)},z)})}async send(Z,X){let z=F8,q=l10,G=Date.now()+X,W=await this._transport.send(Z,X);while(W.status==="retryable"&&z>0){z--;let Q=Math.max(Math.min(q*(1+m10()),c10),0);q=q*n10;let J=W.retryInMillis??Q,Y=G-Date.now();if(J>Y)return N6.diag.info(`Export retry time ${Math.round(J)}ms exceeds remaining timeout ${Math.round(Y)}ms, not retrying further.`),W;N6.diag.verbose(`Scheduling export retry in ${Math.round(J)}ms`),W=await this.retry(Z,Y,J)}if(W.status==="success")N6.diag.verbose(`Export succeeded after ${F8-z} retry attempts.`);else if(W.status==="retryable")N6.diag.info(`Export failed after maximum retry attempts (${F8}).`);else N6.diag.info(`Export failed with non-retryable error: ${W.error}`);return W}shutdown(){return this._transport.shutdown()}}function g10(Z){return new WL(Z.transport)}KL.createRetryingTransport=g10});var VL=V((BL)=>{Object.defineProperty(BL,"__esModule",{value:!0});BL.createOtlpHttpExportDelegate=void 0;var p10=X4(),i10=GL(),a10=uQ(),o10=HL();function t10(Z,X){return(0,p10.createOtlpExportDelegate)({transport:(0,o10.createRetryingTransport)({transport:(0,i10.createHttpExporterTransport)(Z)}),serializer:X,promiseHandler:(0,a10.createBoundedQueueExportPromiseHandler)(Z)},{timeout:Z.timeoutMillis})}BL.createOtlpHttpExportDelegate=t10});var H8=V((DL)=>{Object.defineProperty(DL,"__esModule",{value:!0});DL.getSharedConfigurationFromEnvironment=void 0;var UL=l(),IL=I();function NL(Z){let X=(0,UL.getNumberFromEnv)(Z);if(X!=null){if(Number.isFinite(X)&&X>0)return X;IL.diag.warn(`Configuration: ${Z} is invalid, expected number greater than 0 (actual: ${X})`)}return}function r10(Z){let X=NL(`OTEL_EXPORTER_OTLP_${Z}_TIMEOUT`),z=NL("OTEL_EXPORTER_OTLP_TIMEOUT");return X??z}function CL(Z){let X=(0,UL.getStringFromEnv)(Z)?.trim();if(X==null||X==="none"||X==="gzip")return X;IL.diag.warn(`Configuration: ${Z} is invalid, expected 'none' or 'gzip' (actual: '${X}')`);return}function s10(Z){let X=CL(`OTEL_EXPORTER_OTLP_${Z}_COMPRESSION`),z=CL("OTEL_EXPORTER_OTLP_COMPRESSION");return X??z}function e10(Z){return{timeoutMillis:r10(Z),compression:s10(Z)}}DL.getSharedConfigurationFromEnvironment=e10});var TL=V((AL)=>{Object.defineProperty(AL,"__esModule",{value:!0});AL.getNodeHttpConfigurationFromEnvironment=void 0;var ZZ0=h("fs"),JZ0=h("path"),h0=l(),cJ=I(),QZ0=H8(),XZ0=nZ(),YZ0=uJ();function zZ0(Z){let X=(0,h0.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${Z}_HEADERS`),z=(0,h0.getStringFromEnv)("OTEL_EXPORTER_OTLP_HEADERS"),q=(0,h0.parseKeyPairsIntoRecord)(X),G=(0,h0.parseKeyPairsIntoRecord)(z);if(Object.keys(q).length===0&&Object.keys(G).length===0)return;return Object.assign({},(0,h0.parseKeyPairsIntoRecord)(z),(0,h0.parseKeyPairsIntoRecord)(X))}function GZ0(Z){try{return new URL(Z).toString()}catch{cJ.diag.warn(`Configuration: Could not parse environment-provided export URL: '${Z}', falling back to undefined`);return}}function qZ0(Z,X){try{new URL(Z)}catch{cJ.diag.warn(`Configuration: Could not parse environment-provided export URL: '${Z}', falling back to undefined`);return}if(!Z.endsWith("/"))Z=Z+"/";Z+=X;try{new URL(Z)}catch{cJ.diag.warn(`Configuration: Provided URL appended with '${X}' is not a valid URL, using 'undefined' instead of '${Z}'`);return}return Z}function WZ0(Z){let X=(0,h0.getStringFromEnv)("OTEL_EXPORTER_OTLP_ENDPOINT");if(X===void 0)return;return qZ0(X,Z)}function KZ0(Z){let X=(0,h0.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${Z}_ENDPOINT`);if(X===void 0)return;return GZ0(X)}function B8(Z,X,z){let q=(0,h0.getStringFromEnv)(Z),G=(0,h0.getStringFromEnv)(X),W=q??G;if(W!=null)try{return ZZ0.readFileSync(JZ0.resolve(process.cwd(),W))}catch{cJ.diag.warn(z);return}else return}function FZ0(Z){return B8(`OTEL_EXPORTER_OTLP_${Z}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function HZ0(Z){return B8(`OTEL_EXPORTER_OTLP_${Z}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function BZ0(Z){return B8(`OTEL_EXPORTER_OTLP_${Z}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function OZ0(Z,X){return{...(0,QZ0.getSharedConfigurationFromEnvironment)(Z),url:KZ0(Z)??WZ0(X),headers:(0,XZ0.wrapStaticHeadersInFunction)(zZ0(Z)),agentFactory:(0,YZ0.httpAgentFactoryFromOptions)({keepAlive:!0,ca:BZ0(Z),cert:FZ0(Z),key:HZ0(Z)})}}AL.getNodeHttpConfigurationFromEnvironment=OZ0});var PL=V(($L)=>{Object.defineProperty($L,"__esModule",{value:!0});$L.convertLegacyHeaders=void 0;var VZ0=nZ();function NZ0(Z){if(typeof Z.headers==="function")return Z.headers;return(0,VZ0.wrapStaticHeadersInFunction)(Z.headers)}$L.convertLegacyHeaders=NZ0});var kL=V((RL)=>{Object.defineProperty(RL,"__esModule",{value:!0});RL.convertLegacyHttpOptions=void 0;var CZ0=I(),ML=uJ(),UZ0=C6(),IZ0=TL(),DZ0=PL();function EZ0(Z){if(typeof Z.httpAgentOptions==="function")return Z.httpAgentOptions;let X=Z.httpAgentOptions;if(Z.keepAlive!=null)X={keepAlive:Z.keepAlive,...X};if(X!=null)return(0,UZ0.httpAgentFactoryFromOptions)(X);else return}function AZ0(Z,X,z,q){if(Z.metadata)CZ0.diag.warn("Metadata cannot be set when using http");return(0,ML.mergeOtlpNodeHttpConfigurationWithDefaults)({url:Z.url,headers:(0,DZ0.convertLegacyHeaders)(Z),concurrencyLimit:Z.concurrencyLimit,timeoutMillis:Z.timeoutMillis,compression:Z.compression,agentFactory:EZ0(Z),userAgent:Z.userAgent},(0,IZ0.getNodeHttpConfigurationFromEnvironment)(X,z),(0,ML.getNodeHttpConfigurationDefaults)(q,z))}RL.convertLegacyHttpOptions=AZ0});var C6=V((VZ)=>{Object.defineProperty(VZ,"__esModule",{value:!0});VZ.convertLegacyHttpOptions=VZ.getSharedConfigurationFromEnvironment=VZ.createOtlpHttpExportDelegate=VZ.httpAgentFactoryFromOptions=void 0;var LZ0=uJ();Object.defineProperty(VZ,"httpAgentFactoryFromOptions",{enumerable:!0,get:function(){return LZ0.httpAgentFactoryFromOptions}});var TZ0=VL();Object.defineProperty(VZ,"createOtlpHttpExportDelegate",{enumerable:!0,get:function(){return TZ0.createOtlpHttpExportDelegate}});var $Z0=H8();Object.defineProperty(VZ,"getSharedConfigurationFromEnvironment",{enumerable:!0,get:function(){return $Z0.getSharedConfigurationFromEnvironment}});var wZ0=kL();Object.defineProperty(VZ,"convertLegacyHttpOptions",{enumerable:!0,get:function(){return wZ0.convertLegacyHttpOptions}})});var vL=V((_L)=>{Object.defineProperty(_L,"__esModule",{value:!0});_L.OTLPLogExporter=void 0;var MZ0=BJ(),RZ0=dJ(),fL=C6();class SL extends MZ0.OTLPExporterBase{constructor(Z={}){super((0,fL.createOtlpHttpExportDelegate)((0,fL.convertLegacyHttpOptions)(Z,"LOGS","v1/logs",{"Content-Type":"application/json"}),RZ0.JsonLogsSerializer))}}_L.OTLPLogExporter=SL});var jL=V((O8)=>{Object.defineProperty(O8,"__esModule",{value:!0});O8.OTLPLogExporter=void 0;var hZ0=vL();Object.defineProperty(O8,"OTLPLogExporter",{enumerable:!0,get:function(){return hZ0.OTLPLogExporter}})});var xL=V((V8)=>{Object.defineProperty(V8,"__esModule",{value:!0});V8.OTLPLogExporter=void 0;var fZ0=jL();Object.defineProperty(V8,"OTLPLogExporter",{enumerable:!0,get:function(){return fZ0.OTLPLogExporter}})});var bL=V((N8)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.OTLPLogExporter=void 0;var _Z0=xL();Object.defineProperty(N8,"OTLPLogExporter",{enumerable:!0,get:function(){return _Z0.OTLPLogExporter}})});var U8=V((dL)=>{Object.defineProperty(dL,"__esModule",{value:!0});dL.AggregationTemporalityPreference=void 0;var vZ0;(function(Z){Z[Z.DELTA=0]="DELTA",Z[Z.CUMULATIVE=1]="CUMULATIVE",Z[Z.LOWMEMORY=2]="LOWMEMORY"})(vZ0=dL.AggregationTemporalityPreference||(dL.AggregationTemporalityPreference={}))});var E8=V((cL)=>{Object.defineProperty(cL,"__esModule",{value:!0});cL.OTLPMetricExporterBase=cL.LowMemoryTemporalitySelector=cL.DeltaTemporalitySelector=cL.CumulativeTemporalitySelector=void 0;var jZ0=l(),p=J8(),uL=U8(),xZ0=BJ(),bZ0=I(),dZ0=()=>p.AggregationTemporality.CUMULATIVE;cL.CumulativeTemporalitySelector=dZ0;var uZ0=(Z)=>{switch(Z){case p.InstrumentType.COUNTER:case p.InstrumentType.OBSERVABLE_COUNTER:case p.InstrumentType.GAUGE:case p.InstrumentType.HISTOGRAM:case p.InstrumentType.OBSERVABLE_GAUGE:return p.AggregationTemporality.DELTA;case p.InstrumentType.UP_DOWN_COUNTER:case p.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return p.AggregationTemporality.CUMULATIVE}};cL.DeltaTemporalitySelector=uZ0;var lZ0=(Z)=>{switch(Z){case p.InstrumentType.COUNTER:case p.InstrumentType.HISTOGRAM:return p.AggregationTemporality.DELTA;case p.InstrumentType.GAUGE:case p.InstrumentType.UP_DOWN_COUNTER:case p.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:case p.InstrumentType.OBSERVABLE_COUNTER:case p.InstrumentType.OBSERVABLE_GAUGE:return p.AggregationTemporality.CUMULATIVE}};cL.LowMemoryTemporalitySelector=lZ0;function cZ0(){let Z=((0,jZ0.getStringFromEnv)("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE")??"cumulative").toLowerCase();if(Z==="cumulative")return cL.CumulativeTemporalitySelector;if(Z==="delta")return cL.DeltaTemporalitySelector;if(Z==="lowmemory")return cL.LowMemoryTemporalitySelector;return bZ0.diag.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${Z}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),cL.CumulativeTemporalitySelector}function nZ0(Z){if(Z!=null){if(Z===uL.AggregationTemporalityPreference.DELTA)return cL.DeltaTemporalitySelector;else if(Z===uL.AggregationTemporalityPreference.LOWMEMORY)return cL.LowMemoryTemporalitySelector;return cL.CumulativeTemporalitySelector}return cZ0()}var mZ0=Object.freeze({type:p.AggregationType.DEFAULT});function gZ0(Z){return Z?.aggregationPreference??(()=>mZ0)}class lL extends xZ0.OTLPExporterBase{_aggregationTemporalitySelector;_aggregationSelector;constructor(Z,X){super(Z);this._aggregationSelector=gZ0(X),this._aggregationTemporalitySelector=nZ0(X?.temporalityPreference)}selectAggregation(Z){return this._aggregationSelector(Z)}selectAggregationTemporality(Z){return this._aggregationTemporalitySelector(Z)}}cL.OTLPMetricExporterBase=lL});var aL=V((pL)=>{Object.defineProperty(pL,"__esModule",{value:!0});pL.OTLPMetricExporter=void 0;var pZ0=E8(),iZ0=dJ(),mL=C6();class gL extends pZ0.OTLPMetricExporterBase{constructor(Z){super((0,mL.createOtlpHttpExportDelegate)((0,mL.convertLegacyHttpOptions)(Z??{},"METRICS","v1/metrics",{"Content-Type":"application/json"}),iZ0.JsonMetricsSerializer),Z)}}pL.OTLPMetricExporter=gL});var oL=V((A8)=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.OTLPMetricExporter=void 0;var aZ0=aL();Object.defineProperty(A8,"OTLPMetricExporter",{enumerable:!0,get:function(){return aZ0.OTLPMetricExporter}})});var tL=V((L8)=>{Object.defineProperty(L8,"__esModule",{value:!0});L8.OTLPMetricExporter=void 0;var tZ0=oL();Object.defineProperty(L8,"OTLPMetricExporter",{enumerable:!0,get:function(){return tZ0.OTLPMetricExporter}})});var rL=V((J1)=>{Object.defineProperty(J1,"__esModule",{value:!0});J1.OTLPMetricExporterBase=J1.LowMemoryTemporalitySelector=J1.DeltaTemporalitySelector=J1.CumulativeTemporalitySelector=J1.AggregationTemporalityPreference=J1.OTLPMetricExporter=void 0;var sZ0=tL();Object.defineProperty(J1,"OTLPMetricExporter",{enumerable:!0,get:function(){return sZ0.OTLPMetricExporter}});var eZ0=U8();Object.defineProperty(J1,"AggregationTemporalityPreference",{enumerable:!0,get:function(){return eZ0.AggregationTemporalityPreference}});var mJ=E8();Object.defineProperty(J1,"CumulativeTemporalitySelector",{enumerable:!0,get:function(){return mJ.CumulativeTemporalitySelector}});Object.defineProperty(J1,"DeltaTemporalitySelector",{enumerable:!0,get:function(){return mJ.DeltaTemporalitySelector}});Object.defineProperty(J1,"LowMemoryTemporalitySelector",{enumerable:!0,get:function(){return mJ.LowMemoryTemporalitySelector}});Object.defineProperty(J1,"OTLPMetricExporterBase",{enumerable:!0,get:function(){return mJ.OTLPMetricExporterBase}})});var QT=V((ZT)=>{Object.defineProperty(ZT,"__esModule",{value:!0});ZT.OTLPTraceExporter=void 0;var J60=BJ(),Q60=dJ(),sL=C6();class eL extends J60.OTLPExporterBase{constructor(Z={}){super((0,sL.createOtlpHttpExportDelegate)((0,sL.convertLegacyHttpOptions)(Z,"TRACES","v1/traces",{"Content-Type":"application/json"}),Q60.JsonTraceSerializer))}}ZT.OTLPTraceExporter=eL});var XT=V((T8)=>{Object.defineProperty(T8,"__esModule",{value:!0});T8.OTLPTraceExporter=void 0;var X60=QT();Object.defineProperty(T8,"OTLPTraceExporter",{enumerable:!0,get:function(){return X60.OTLPTraceExporter}})});var YT=V(($8)=>{Object.defineProperty($8,"__esModule",{value:!0});$8.OTLPTraceExporter=void 0;var z60=XT();Object.defineProperty($8,"OTLPTraceExporter",{enumerable:!0,get:function(){return z60.OTLPTraceExporter}})});var zT=V((w8)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.OTLPTraceExporter=void 0;var q60=YT();Object.defineProperty(w8,"OTLPTraceExporter",{enumerable:!0,get:function(){return q60.OTLPTraceExporter}})});var U6=V((GT)=>{Object.defineProperty(GT,"__esModule",{value:!0});GT.isTracingSuppressed=GT.unsuppressTracing=GT.suppressTracing=void 0;var K60=I(),P8=(0,K60.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function F60(Z){return Z.setValue(P8,!0)}GT.suppressTracing=F60;function H60(Z){return Z.deleteValue(P8)}GT.unsuppressTracing=H60;function B60(Z){return Z.getValue(P8)===!0}GT.isTracingSuppressed=B60});var M8=V((WT)=>{Object.defineProperty(WT,"__esModule",{value:!0});WT.BAGGAGE_MAX_TOTAL_LENGTH=WT.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=WT.BAGGAGE_MAX_NAME_VALUE_PAIRS=WT.BAGGAGE_HEADER=WT.BAGGAGE_ITEMS_SEPARATOR=WT.BAGGAGE_PROPERTIES_SEPARATOR=WT.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;WT.BAGGAGE_KEY_PAIR_SEPARATOR="=";WT.BAGGAGE_PROPERTIES_SEPARATOR=";";WT.BAGGAGE_ITEMS_SEPARATOR=",";WT.BAGGAGE_HEADER="baggage";WT.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;WT.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;WT.BAGGAGE_MAX_TOTAL_LENGTH=8192});var R8=V((HT)=>{Object.defineProperty(HT,"__esModule",{value:!0});HT.parseKeyPairsIntoRecord=HT.parsePairKeyValue=HT.getKeyPairs=HT.serializeKeyPairs=void 0;var A60=I(),NZ=M8();function L60(Z){return Z.reduce((X,z)=>{let q=`${X}${X!==""?NZ.BAGGAGE_ITEMS_SEPARATOR:""}${z}`;return q.length>NZ.BAGGAGE_MAX_TOTAL_LENGTH?X:q},"")}HT.serializeKeyPairs=L60;function T60(Z){return Z.getAllEntries().map(([X,z])=>{let q=`${encodeURIComponent(X)}=${encodeURIComponent(z.value)}`;if(z.metadata!==void 0)q+=NZ.BAGGAGE_PROPERTIES_SEPARATOR+z.metadata.toString();return q})}HT.getKeyPairs=T60;function FT(Z){if(!Z)return;let X=Z.indexOf(NZ.BAGGAGE_PROPERTIES_SEPARATOR),z=X===-1?Z:Z.substring(0,X),q=z.indexOf(NZ.BAGGAGE_KEY_PAIR_SEPARATOR);if(q<=0)return;let G=z.substring(0,q).trim(),W=z.substring(q+1).trim();if(!G||!W)return;let Q,J;try{Q=decodeURIComponent(G),J=decodeURIComponent(W)}catch{return}let Y;if(X!==-1&&X<Z.length-1){let K=Z.substring(X+1);Y=(0,A60.baggageEntryMetadataFromString)(K)}return{key:Q,value:J,metadata:Y}}HT.parsePairKeyValue=FT;function $60(Z){let X={};if(typeof Z==="string"&&Z.length>0)Z.split(NZ.BAGGAGE_ITEMS_SEPARATOR).forEach((z)=>{let q=FT(z);if(q!==void 0&&q.value.length>0)X[q.key]=q.value});return X}HT.parseKeyPairsIntoRecord=$60});var CT=V((VT)=>{Object.defineProperty(VT,"__esModule",{value:!0});VT.W3CBaggagePropagator=void 0;var h8=I(),R60=U6(),f1=M8(),k8=R8();class OT{inject(Z,X,z){let q=h8.propagation.getBaggage(Z);if(!q||(0,R60.isTracingSuppressed)(Z))return;let G=(0,k8.getKeyPairs)(q).filter((Q)=>{return Q.length<=f1.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS}).slice(0,f1.BAGGAGE_MAX_NAME_VALUE_PAIRS),W=(0,k8.serializeKeyPairs)(G);if(W.length>0)z.set(X,f1.BAGGAGE_HEADER,W)}extract(Z,X,z){let q=z.get(X,f1.BAGGAGE_HEADER),G=Array.isArray(q)?q.join(f1.BAGGAGE_ITEMS_SEPARATOR):q;if(!G)return Z;let W={};if(G.length===0)return Z;if(G.split(f1.BAGGAGE_ITEMS_SEPARATOR).forEach((J)=>{let Y=(0,k8.parsePairKeyValue)(J);if(Y){let K={value:Y.value};if(Y.metadata)K.metadata=Y.metadata;W[Y.key]=K}}),Object.entries(W).length===0)return Z;return h8.propagation.setBaggage(Z,h8.propagation.createBaggage(W))}fields(){return[f1.BAGGAGE_HEADER]}}VT.W3CBaggagePropagator=OT});var ET=V((IT)=>{Object.defineProperty(IT,"__esModule",{value:!0});IT.AnchoredClock=void 0;class UT{_monotonicClock;_epochMillis;_performanceMillis;constructor(Z,X){this._monotonicClock=X,this._epochMillis=Z.now(),this._performanceMillis=X.now()}now(){let Z=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+Z}}IT.AnchoredClock=UT});var MT=V((wT)=>{Object.defineProperty(wT,"__esModule",{value:!0});wT.isAttributeValue=wT.isAttributeKey=wT.sanitizeAttributes=void 0;var AT=I();function h60(Z){let X={};if(typeof Z!=="object"||Z==null)return X;for(let z in Z){if(!Object.prototype.hasOwnProperty.call(Z,z))continue;if(!LT(z)){AT.diag.warn(`Invalid attribute key: ${z}`);continue}let q=Z[z];if(!TT(q)){AT.diag.warn(`Invalid attribute value set for key: ${z}`);continue}if(Array.isArray(q))X[z]=q.slice();else X[z]=q}return X}wT.sanitizeAttributes=h60;function LT(Z){return typeof Z==="string"&&Z!==""}wT.isAttributeKey=LT;function TT(Z){if(Z==null)return!0;if(Array.isArray(Z))return k60(Z);return $T(typeof Z)}wT.isAttributeValue=TT;function k60(Z){let X;for(let z of Z){if(z==null)continue;let q=typeof z;if(q===X)continue;if(!X){if($T(q)){X=q;continue}return!1}return!1}return!0}function $T(Z){switch(Z){case"number":case"boolean":case"string":return!0}return!1}});var f8=V((RT)=>{Object.defineProperty(RT,"__esModule",{value:!0});RT.loggingErrorHandler=void 0;var _60=I();function y60(){return(Z)=>{_60.diag.error(v60(Z))}}RT.loggingErrorHandler=y60;function v60(Z){if(typeof Z==="string")return Z;else return JSON.stringify(j60(Z))}function j60(Z){let X={},z=Z;while(z!==null)Object.getOwnPropertyNames(z).forEach((q)=>{if(X[q])return;let G=z[q];if(G)X[q]=String(G)}),z=Object.getPrototypeOf(z);return X}});var _T=V((fT)=>{Object.defineProperty(fT,"__esModule",{value:!0});fT.globalErrorHandler=fT.setGlobalErrorHandler=void 0;var x60=f8(),kT=(0,x60.loggingErrorHandler)();function b60(Z){kT=Z}fT.setGlobalErrorHandler=b60;function d60(Z){try{kT(Z)}catch{}}fT.globalErrorHandler=d60});var dT=V((xT)=>{Object.defineProperty(xT,"__esModule",{value:!0});xT.getStringListFromEnv=xT.getBooleanFromEnv=xT.getStringFromEnv=xT.getNumberFromEnv=void 0;var yT=I(),vT=h("util");function l60(Z){let X=process.env[Z];if(X==null||X.trim()==="")return;let z=Number(X);if(isNaN(z)){yT.diag.warn(`Unknown value ${(0,vT.inspect)(X)} for ${Z}, expected a number, using defaults`);return}return z}xT.getNumberFromEnv=l60;function jT(Z){let X=process.env[Z];if(X==null||X.trim()==="")return;return X}xT.getStringFromEnv=jT;function c60(Z){let X=process.env[Z]?.trim().toLowerCase();if(X==null||X==="")return!1;if(X==="true")return!0;else if(X==="false")return!1;else return yT.diag.warn(`Unknown value ${(0,vT.inspect)(X)} for ${Z}, expected 'true' or 'false', falling back to 'false' (default)`),!1}xT.getBooleanFromEnv=c60;function n60(Z){return jT(Z)?.split(",").map((X)=>X.trim()).filter((X)=>X!=="")}xT.getStringListFromEnv=n60});var cT=V((uT)=>{Object.defineProperty(uT,"__esModule",{value:!0});uT._globalThis=void 0;uT._globalThis=globalThis});var gT=V((nT)=>{Object.defineProperty(nT,"__esModule",{value:!0});nT.VERSION=void 0;nT.VERSION="2.7.0"});var aT=V((pT)=>{Object.defineProperty(pT,"__esModule",{value:!0});pT.ATTR_PROCESS_RUNTIME_NAME=void 0;pT.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name"});var rT=V((oT)=>{Object.defineProperty(oT,"__esModule",{value:!0});oT.SDK_INFO=void 0;var i60=gT(),gJ=w0(),a60=aT();oT.SDK_INFO={[gJ.ATTR_TELEMETRY_SDK_NAME]:"opentelemetry",[a60.ATTR_PROCESS_RUNTIME_NAME]:"node",[gJ.ATTR_TELEMETRY_SDK_LANGUAGE]:gJ.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS,[gJ.ATTR_TELEMETRY_SDK_VERSION]:i60.VERSION}});var eT=V((Q1)=>{Object.defineProperty(Q1,"__esModule",{value:!0});Q1.otperformance=Q1.SDK_INFO=Q1._globalThis=Q1.getStringListFromEnv=Q1.getNumberFromEnv=Q1.getBooleanFromEnv=Q1.getStringFromEnv=void 0;var pJ=dT();Object.defineProperty(Q1,"getStringFromEnv",{enumerable:!0,get:function(){return pJ.getStringFromEnv}});Object.defineProperty(Q1,"getBooleanFromEnv",{enumerable:!0,get:function(){return pJ.getBooleanFromEnv}});Object.defineProperty(Q1,"getNumberFromEnv",{enumerable:!0,get:function(){return pJ.getNumberFromEnv}});Object.defineProperty(Q1,"getStringListFromEnv",{enumerable:!0,get:function(){return pJ.getStringListFromEnv}});var o60=cT();Object.defineProperty(Q1,"_globalThis",{enumerable:!0,get:function(){return o60._globalThis}});var t60=rT();Object.defineProperty(Q1,"SDK_INFO",{enumerable:!0,get:function(){return t60.SDK_INFO}});Q1.otperformance=performance});var S8=V((u0)=>{Object.defineProperty(u0,"__esModule",{value:!0});u0.getStringListFromEnv=u0.getNumberFromEnv=u0.getStringFromEnv=u0.getBooleanFromEnv=u0.otperformance=u0._globalThis=u0.SDK_INFO=void 0;var S1=eT();Object.defineProperty(u0,"SDK_INFO",{enumerable:!0,get:function(){return S1.SDK_INFO}});Object.defineProperty(u0,"_globalThis",{enumerable:!0,get:function(){return S1._globalThis}});Object.defineProperty(u0,"otperformance",{enumerable:!0,get:function(){return S1.otperformance}});Object.defineProperty(u0,"getBooleanFromEnv",{enumerable:!0,get:function(){return S1.getBooleanFromEnv}});Object.defineProperty(u0,"getStringFromEnv",{enumerable:!0,get:function(){return S1.getStringFromEnv}});Object.defineProperty(u0,"getNumberFromEnv",{enumerable:!0,get:function(){return S1.getNumberFromEnv}});Object.defineProperty(u0,"getStringListFromEnv",{enumerable:!0,get:function(){return S1.getStringListFromEnv}})});var z$=V((X$)=>{Object.defineProperty(X$,"__esModule",{value:!0});X$.addHrTimes=X$.isTimeInput=X$.isTimeInputHrTime=X$.hrTimeToMicroseconds=X$.hrTimeToMilliseconds=X$.hrTimeToNanoseconds=X$.hrTimeToTimeStamp=X$.hrTimeDuration=X$.timeInputToHrTime=X$.hrTime=X$.getTimeOrigin=X$.millisToHrTime=void 0;var iJ=S8(),Z$=9,s60=6,e60=Math.pow(10,s60),aJ=Math.pow(10,Z$);function I6(Z){let X=Z/1000,z=Math.trunc(X),q=Math.round(Z%1000*e60);return[z,q]}X$.millisToHrTime=I6;function ZJ0(){return iJ.otperformance.timeOrigin}X$.getTimeOrigin=ZJ0;function J$(Z){let X=I6(iJ.otperformance.timeOrigin),z=I6(typeof Z==="number"?Z:iJ.otperformance.now());return Q$(X,z)}X$.hrTime=J$;function JJ0(Z){if(_8(Z))return Z;else if(typeof Z==="number")if(Z<iJ.otperformance.timeOrigin)return J$(Z);else return I6(Z);else if(Z instanceof Date)return I6(Z.getTime());else throw TypeError("Invalid input type")}X$.timeInputToHrTime=JJ0;function QJ0(Z,X){let z=X[0]-Z[0],q=X[1]-Z[1];if(q<0)z-=1,q+=aJ;return[z,q]}X$.hrTimeDuration=QJ0;function XJ0(Z){let X=Z$,z=`${"0".repeat(X)}${Z[1]}Z`,q=z.substring(z.length-X-1);return new Date(Z[0]*1000).toISOString().replace("000Z",q)}X$.hrTimeToTimeStamp=XJ0;function YJ0(Z){return Z[0]*aJ+Z[1]}X$.hrTimeToNanoseconds=YJ0;function zJ0(Z){return Z[0]*1000+Z[1]/1e6}X$.hrTimeToMilliseconds=zJ0;function GJ0(Z){return Z[0]*1e6+Z[1]/1000}X$.hrTimeToMicroseconds=GJ0;function _8(Z){return Array.isArray(Z)&&Z.length===2&&typeof Z[0]==="number"&&typeof Z[1]==="number"}X$.isTimeInputHrTime=_8;function qJ0(Z){return _8(Z)||typeof Z==="number"||Z instanceof Date}X$.isTimeInput=qJ0;function Q$(Z,X){let z=[Z[0]+X[0],Z[1]+X[1]];if(z[1]>=aJ)z[1]-=aJ,z[0]+=1;return z}X$.addHrTimes=Q$});var W$=V((G$)=>{Object.defineProperty(G$,"__esModule",{value:!0});G$.unrefTimer=void 0;function DJ0(Z){if(typeof Z!=="number")Z.unref()}G$.unrefTimer=DJ0});var F$=V((K$)=>{Object.defineProperty(K$,"__esModule",{value:!0});K$.ExportResultCode=void 0;var EJ0;(function(Z){Z[Z.SUCCESS=0]="SUCCESS",Z[Z.FAILED=1]="FAILED"})(EJ0=K$.ExportResultCode||(K$.ExportResultCode={}))});var N$=V((O$)=>{Object.defineProperty(O$,"__esModule",{value:!0});O$.CompositePropagator=void 0;var H$=I();class B${_propagators;_fields;constructor(Z={}){this._propagators=Z.propagators??[],this._fields=Array.from(new Set(this._propagators.map((X)=>typeof X.fields==="function"?X.fields():[]).reduce((X,z)=>X.concat(z),[])))}inject(Z,X,z){for(let q of this._propagators)try{q.inject(Z,X,z)}catch(G){H$.diag.warn(`Failed to inject with ${q.constructor.name}. Err: ${G.message}`)}}extract(Z,X,z){return this._propagators.reduce((q,G)=>{try{return G.extract(q,X,z)}catch(W){H$.diag.warn(`Failed to extract with ${G.constructor.name}. Err: ${W.message}`)}return q},Z)}fields(){return this._fields.slice()}}O$.CompositePropagator=B$});var I$=V((C$)=>{Object.defineProperty(C$,"__esModule",{value:!0});C$.validateValue=C$.validateKey=void 0;var v8="[_0-9a-z-*/]",AJ0=`[a-z]${v8}{0,255}`,LJ0=`[a-z0-9]${v8}{0,240}@[a-z]${v8}{0,13}`,TJ0=new RegExp(`^(?:${AJ0}|${LJ0})$`),$J0=/^[ -~]{0,255}[!-~]$/,wJ0=/,|=/;function PJ0(Z){return TJ0.test(Z)}C$.validateKey=PJ0;function MJ0(Z){return $J0.test(Z)&&!wJ0.test(Z)}C$.validateValue=MJ0});var x8=V((T$)=>{Object.defineProperty(T$,"__esModule",{value:!0});T$.TraceState=void 0;var D$=I$(),E$=32,hJ0=512,A$=",",L$="=";class j8{_internalState=new Map;constructor(Z){if(Z)this._parse(Z)}set(Z,X){let z=this._clone();if(z._internalState.has(Z))z._internalState.delete(Z);return z._internalState.set(Z,X),z}unset(Z){let X=this._clone();return X._internalState.delete(Z),X}get(Z){return this._internalState.get(Z)}serialize(){return this._keys().reduce((Z,X)=>{return Z.push(X+L$+this.get(X)),Z},[]).join(A$)}_parse(Z){if(Z.length>hJ0)return;if(this._internalState=Z.split(A$).reverse().reduce((X,z)=>{let q=z.trim(),G=q.indexOf(L$);if(G!==-1){let W=q.slice(0,G),Q=q.slice(G+1,z.length);if((0,D$.validateKey)(W)&&(0,D$.validateValue)(Q))X.set(W,Q)}return X},new Map),this._internalState.size>E$)this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,E$))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let Z=new j8;return Z._internalState=new Map(this._internalState),Z}}T$.TraceState=j8});var h$=V((M$)=>{Object.defineProperty(M$,"__esModule",{value:!0});M$.W3CTraceContextPropagator=M$.parseTraceParent=M$.TRACE_STATE_HEADER=M$.TRACE_PARENT_HEADER=void 0;var oJ=I(),kJ0=U6(),fJ0=x8();M$.TRACE_PARENT_HEADER="traceparent";M$.TRACE_STATE_HEADER="tracestate";var SJ0="00",_J0="(?!ff)[\\da-f]{2}",yJ0="(?![0]{32})[\\da-f]{32}",vJ0="(?![0]{16})[\\da-f]{16}",jJ0="[\\da-f]{2}",xJ0=new RegExp(`^\\s?(${_J0})-(${yJ0})-(${vJ0})-(${jJ0})(-.*)?\\s?$`);function w$(Z){let X=xJ0.exec(Z);if(!X)return null;if(X[1]==="00"&&X[5])return null;return{traceId:X[2],spanId:X[3],traceFlags:parseInt(X[4],16)}}M$.parseTraceParent=w$;class P${inject(Z,X,z){let q=oJ.trace.getSpanContext(Z);if(!q||(0,kJ0.isTracingSuppressed)(Z)||!(0,oJ.isSpanContextValid)(q))return;let G=`${SJ0}-${q.traceId}-${q.spanId}-0${Number(q.traceFlags||oJ.TraceFlags.NONE).toString(16)}`;if(z.set(X,M$.TRACE_PARENT_HEADER,G),q.traceState)z.set(X,M$.TRACE_STATE_HEADER,q.traceState.serialize())}extract(Z,X,z){let q=z.get(X,M$.TRACE_PARENT_HEADER);if(!q)return Z;let G=Array.isArray(q)?q[0]:q;if(typeof G!=="string")return Z;let W=w$(G);if(!W)return Z;W.isRemote=!0;let Q=z.get(X,M$.TRACE_STATE_HEADER);if(Q){let J=Array.isArray(Q)?Q.join(","):Q;W.traceState=new fJ0.TraceState(typeof J==="string"?J:void 0)}return oJ.trace.setSpanContext(Z,W)}fields(){return[M$.TRACE_PARENT_HEADER,M$.TRACE_STATE_HEADER]}}M$.W3CTraceContextPropagator=P$});var _$=V((f$)=>{Object.defineProperty(f$,"__esModule",{value:!0});f$.getRPCMetadata=f$.deleteRPCMetadata=f$.setRPCMetadata=f$.RPCType=void 0;var dJ0=I(),b8=(0,dJ0.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),uJ0;(function(Z){Z.HTTP="http"})(uJ0=f$.RPCType||(f$.RPCType={}));function lJ0(Z,X){return Z.setValue(b8,X)}f$.setRPCMetadata=lJ0;function cJ0(Z){return Z.deleteValue(b8)}f$.deleteRPCMetadata=cJ0;function nJ0(Z){return Z.getValue(b8)}f$.getRPCMetadata=nJ0});var u$=V((b$)=>{Object.defineProperty(b$,"__esModule",{value:!0});b$.isPlainObject=void 0;var pJ0="[object Object]",iJ0="[object Null]",aJ0="[object Undefined]",oJ0=Function.prototype,y$=oJ0.toString,tJ0=y$.call(Object),rJ0=Object.getPrototypeOf,v$=Object.prototype,j$=v$.hasOwnProperty,_1=Symbol?Symbol.toStringTag:void 0,x$=v$.toString;function sJ0(Z){if(!eJ0(Z)||Z70(Z)!==pJ0)return!1;let X=rJ0(Z);if(X===null)return!0;let z=j$.call(X,"constructor")&&X.constructor;return typeof z=="function"&&z instanceof z&&y$.call(z)===tJ0}b$.isPlainObject=sJ0;function eJ0(Z){return Z!=null&&typeof Z=="object"}function Z70(Z){if(Z==null)return Z===void 0?aJ0:iJ0;return _1&&_1 in Object(Z)?J70(Z):Q70(Z)}function J70(Z){let X=j$.call(Z,_1),z=Z[_1],q=!1;try{Z[_1]=void 0,q=!0}catch{}let G=x$.call(Z);if(q)if(X)Z[_1]=z;else delete Z[_1];return G}function Q70(Z){return x$.call(Z)}});var i$=V((g$)=>{Object.defineProperty(g$,"__esModule",{value:!0});g$.merge=void 0;var l$=u$(),X70=20;function Y70(...Z){let X=Z.shift(),z=new WeakMap;while(Z.length>0)X=n$(X,Z.shift(),0,z);return X}g$.merge=Y70;function d8(Z){if(eJ(Z))return Z.slice();return Z}function n$(Z,X,z=0,q){let G;if(z>X70)return;if(z++,sJ(Z)||sJ(X)||m$(X))G=d8(X);else if(eJ(Z)){if(G=Z.slice(),eJ(X))for(let W=0,Q=X.length;W<Q;W++)G.push(d8(X[W]));else if(D6(X)){let W=Object.keys(X);for(let Q=0,J=W.length;Q<J;Q++){let Y=W[Q];if(Y==="__proto__"||Y==="constructor"||Y==="prototype")continue;G[Y]=d8(X[Y])}}}else if(D6(Z))if(D6(X)){if(!z70(Z,X))return X;G=Object.assign({},Z);let W=Object.keys(X);for(let Q=0,J=W.length;Q<J;Q++){let Y=W[Q];if(Y==="__proto__"||Y==="constructor"||Y==="prototype")continue;let K=X[Y];if(sJ(K))if(typeof K>"u")delete G[Y];else G[Y]=K;else{let F=G[Y],H=K;if(c$(Z,Y,q)||c$(X,Y,q))delete G[Y];else{if(D6(F)&&D6(H)){let N=q.get(F)||[],U=q.get(H)||[];N.push({obj:Z,key:Y}),U.push({obj:X,key:Y}),q.set(F,N),q.set(H,U)}G[Y]=n$(G[Y],K,z,q)}}}}else G=X;return G}function c$(Z,X,z){let q=z.get(Z[X])||[];for(let G=0,W=q.length;G<W;G++){let Q=q[G];if(Q.key===X&&Q.obj===Z)return!0}return!1}function eJ(Z){return Array.isArray(Z)}function m$(Z){return typeof Z==="function"}function D6(Z){return!sJ(Z)&&!eJ(Z)&&!m$(Z)&&typeof Z==="object"}function sJ(Z){return typeof Z==="string"||typeof Z==="number"||typeof Z==="boolean"||typeof Z>"u"||Z instanceof Date||Z instanceof RegExp||Z===null}function z70(Z,X){if(!(0,l$.isPlainObject)(Z)||!(0,l$.isPlainObject)(X))return!1;return!0}});var t$=V((a$)=>{Object.defineProperty(a$,"__esModule",{value:!0});a$.callWithTimeout=a$.TimeoutError=void 0;class Z7 extends Error{constructor(Z){super(Z);Object.setPrototypeOf(this,Z7.prototype)}}a$.TimeoutError=Z7;function G70(Z,X){let z,q=new Promise(function(W,Q){z=setTimeout(function(){Q(new Z7("Operation timed out."))},X)});return Promise.race([Z,q]).then((G)=>{return clearTimeout(z),G},(G)=>{throw clearTimeout(z),G})}a$.callWithTimeout=G70});var Zw=V((s$)=>{Object.defineProperty(s$,"__esModule",{value:!0});s$.isUrlIgnored=s$.urlMatches=void 0;function r$(Z,X){if(typeof X==="string")return Z===X;else return!!Z.match(X)}s$.urlMatches=r$;function W70(Z,X){if(!X)return!1;for(let z of X)if(r$(Z,z))return!0;return!1}s$.isUrlIgnored=W70});var Yw=V((Qw)=>{Object.defineProperty(Qw,"__esModule",{value:!0});Qw.Deferred=void 0;class Jw{_promise;_resolve;_reject;constructor(){this._promise=new Promise((Z,X)=>{this._resolve=Z,this._reject=X})}get promise(){return this._promise}resolve(Z){this._resolve(Z)}reject(Z){this._reject(Z)}}Qw.Deferred=Jw});var Ww=V((Gw)=>{Object.defineProperty(Gw,"__esModule",{value:!0});Gw.BindOnceFuture=void 0;var F70=Yw();class zw{_isCalled=!1;_deferred=new F70.Deferred;_callback;_that;constructor(Z,X){this._callback=Z,this._that=X}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...Z){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...Z)).then((X)=>this._deferred.resolve(X),(X)=>this._deferred.reject(X))}catch(X){this._deferred.reject(X)}}return this._deferred.promise}}Gw.BindOnceFuture=zw});var Bw=V((Fw)=>{Object.defineProperty(Fw,"__esModule",{value:!0});Fw.diagLogLevelFromString=void 0;var l0=I(),Kw={ALL:l0.DiagLogLevel.ALL,VERBOSE:l0.DiagLogLevel.VERBOSE,DEBUG:l0.DiagLogLevel.DEBUG,INFO:l0.DiagLogLevel.INFO,WARN:l0.DiagLogLevel.WARN,ERROR:l0.DiagLogLevel.ERROR,NONE:l0.DiagLogLevel.NONE};function H70(Z){if(Z==null)return;let X=Kw[Z.toUpperCase()];if(X==null)return l0.diag.warn(`Unknown log level "${Z}", expected one of ${Object.keys(Kw)}, using default`),l0.DiagLogLevel.INFO;return X}Fw.diagLogLevelFromString=H70});var Cw=V((Vw)=>{Object.defineProperty(Vw,"__esModule",{value:!0});Vw._export=void 0;var Ow=I(),B70=U6();function O70(Z,X){return new Promise((z)=>{Ow.context.with((0,B70.suppressTracing)(Ow.context.active()),()=>{Z.export(X,z)})})}Vw._export=O70});var n=V((w)=>{Object.defineProperty(w,"__esModule",{value:!0});w.internal=w.diagLogLevelFromString=w.BindOnceFuture=w.urlMatches=w.isUrlIgnored=w.callWithTimeout=w.TimeoutError=w.merge=w.TraceState=w.unsuppressTracing=w.suppressTracing=w.isTracingSuppressed=w.setRPCMetadata=w.getRPCMetadata=w.deleteRPCMetadata=w.RPCType=w.parseTraceParent=w.W3CTraceContextPropagator=w.TRACE_STATE_HEADER=w.TRACE_PARENT_HEADER=w.CompositePropagator=w.otperformance=w.getStringListFromEnv=w.getNumberFromEnv=w.getBooleanFromEnv=w.getStringFromEnv=w._globalThis=w.SDK_INFO=w.parseKeyPairsIntoRecord=w.ExportResultCode=w.unrefTimer=w.timeInputToHrTime=w.millisToHrTime=w.isTimeInputHrTime=w.isTimeInput=w.hrTimeToTimeStamp=w.hrTimeToNanoseconds=w.hrTimeToMilliseconds=w.hrTimeToMicroseconds=w.hrTimeDuration=w.hrTime=w.getTimeOrigin=w.addHrTimes=w.loggingErrorHandler=w.setGlobalErrorHandler=w.globalErrorHandler=w.sanitizeAttributes=w.isAttributeValue=w.AnchoredClock=w.W3CBaggagePropagator=void 0;var V70=CT();Object.defineProperty(w,"W3CBaggagePropagator",{enumerable:!0,get:function(){return V70.W3CBaggagePropagator}});var N70=ET();Object.defineProperty(w,"AnchoredClock",{enumerable:!0,get:function(){return N70.AnchoredClock}});var Uw=MT();Object.defineProperty(w,"isAttributeValue",{enumerable:!0,get:function(){return Uw.isAttributeValue}});Object.defineProperty(w,"sanitizeAttributes",{enumerable:!0,get:function(){return Uw.sanitizeAttributes}});var Iw=_T();Object.defineProperty(w,"globalErrorHandler",{enumerable:!0,get:function(){return Iw.globalErrorHandler}});Object.defineProperty(w,"setGlobalErrorHandler",{enumerable:!0,get:function(){return Iw.setGlobalErrorHandler}});var C70=f8();Object.defineProperty(w,"loggingErrorHandler",{enumerable:!0,get:function(){return C70.loggingErrorHandler}});var V0=z$();Object.defineProperty(w,"addHrTimes",{enumerable:!0,get:function(){return V0.addHrTimes}});Object.defineProperty(w,"getTimeOrigin",{enumerable:!0,get:function(){return V0.getTimeOrigin}});Object.defineProperty(w,"hrTime",{enumerable:!0,get:function(){return V0.hrTime}});Object.defineProperty(w,"hrTimeDuration",{enumerable:!0,get:function(){return V0.hrTimeDuration}});Object.defineProperty(w,"hrTimeToMicroseconds",{enumerable:!0,get:function(){return V0.hrTimeToMicroseconds}});Object.defineProperty(w,"hrTimeToMilliseconds",{enumerable:!0,get:function(){return V0.hrTimeToMilliseconds}});Object.defineProperty(w,"hrTimeToNanoseconds",{enumerable:!0,get:function(){return V0.hrTimeToNanoseconds}});Object.defineProperty(w,"hrTimeToTimeStamp",{enumerable:!0,get:function(){return V0.hrTimeToTimeStamp}});Object.defineProperty(w,"isTimeInput",{enumerable:!0,get:function(){return V0.isTimeInput}});Object.defineProperty(w,"isTimeInputHrTime",{enumerable:!0,get:function(){return V0.isTimeInputHrTime}});Object.defineProperty(w,"millisToHrTime",{enumerable:!0,get:function(){return V0.millisToHrTime}});Object.defineProperty(w,"timeInputToHrTime",{enumerable:!0,get:function(){return V0.timeInputToHrTime}});var U70=W$();Object.defineProperty(w,"unrefTimer",{enumerable:!0,get:function(){return U70.unrefTimer}});var I70=F$();Object.defineProperty(w,"ExportResultCode",{enumerable:!0,get:function(){return I70.ExportResultCode}});var D70=R8();Object.defineProperty(w,"parseKeyPairsIntoRecord",{enumerable:!0,get:function(){return D70.parseKeyPairsIntoRecord}});var y1=S8();Object.defineProperty(w,"SDK_INFO",{enumerable:!0,get:function(){return y1.SDK_INFO}});Object.defineProperty(w,"_globalThis",{enumerable:!0,get:function(){return y1._globalThis}});Object.defineProperty(w,"getStringFromEnv",{enumerable:!0,get:function(){return y1.getStringFromEnv}});Object.defineProperty(w,"getBooleanFromEnv",{enumerable:!0,get:function(){return y1.getBooleanFromEnv}});Object.defineProperty(w,"getNumberFromEnv",{enumerable:!0,get:function(){return y1.getNumberFromEnv}});Object.defineProperty(w,"getStringListFromEnv",{enumerable:!0,get:function(){return y1.getStringListFromEnv}});Object.defineProperty(w,"otperformance",{enumerable:!0,get:function(){return y1.otperformance}});var E70=N$();Object.defineProperty(w,"CompositePropagator",{enumerable:!0,get:function(){return E70.CompositePropagator}});var J7=h$();Object.defineProperty(w,"TRACE_PARENT_HEADER",{enumerable:!0,get:function(){return J7.TRACE_PARENT_HEADER}});Object.defineProperty(w,"TRACE_STATE_HEADER",{enumerable:!0,get:function(){return J7.TRACE_STATE_HEADER}});Object.defineProperty(w,"W3CTraceContextPropagator",{enumerable:!0,get:function(){return J7.W3CTraceContextPropagator}});Object.defineProperty(w,"parseTraceParent",{enumerable:!0,get:function(){return J7.parseTraceParent}});var Q7=_$();Object.defineProperty(w,"RPCType",{enumerable:!0,get:function(){return Q7.RPCType}});Object.defineProperty(w,"deleteRPCMetadata",{enumerable:!0,get:function(){return Q7.deleteRPCMetadata}});Object.defineProperty(w,"getRPCMetadata",{enumerable:!0,get:function(){return Q7.getRPCMetadata}});Object.defineProperty(w,"setRPCMetadata",{enumerable:!0,get:function(){return Q7.setRPCMetadata}});var u8=U6();Object.defineProperty(w,"isTracingSuppressed",{enumerable:!0,get:function(){return u8.isTracingSuppressed}});Object.defineProperty(w,"suppressTracing",{enumerable:!0,get:function(){return u8.suppressTracing}});Object.defineProperty(w,"unsuppressTracing",{enumerable:!0,get:function(){return u8.unsuppressTracing}});var A70=x8();Object.defineProperty(w,"TraceState",{enumerable:!0,get:function(){return A70.TraceState}});var L70=i$();Object.defineProperty(w,"merge",{enumerable:!0,get:function(){return L70.merge}});var Dw=t$();Object.defineProperty(w,"TimeoutError",{enumerable:!0,get:function(){return Dw.TimeoutError}});Object.defineProperty(w,"callWithTimeout",{enumerable:!0,get:function(){return Dw.callWithTimeout}});var Ew=Zw();Object.defineProperty(w,"isUrlIgnored",{enumerable:!0,get:function(){return Ew.isUrlIgnored}});Object.defineProperty(w,"urlMatches",{enumerable:!0,get:function(){return Ew.urlMatches}});var T70=Ww();Object.defineProperty(w,"BindOnceFuture",{enumerable:!0,get:function(){return T70.BindOnceFuture}});var $70=Bw();Object.defineProperty(w,"diagLogLevelFromString",{enumerable:!0,get:function(){return $70.diagLogLevelFromString}});var w70=Cw();w.internal={_export:w70._export}});var l8=V((Lw)=>{Object.defineProperty(Lw,"__esModule",{value:!0});Lw._clearDefaultServiceNameCache=Lw.defaultServiceName=void 0;var E6;function P70(){if(E6===void 0)try{let Z=globalThis.process.argv0;E6=Z?`unknown_service:${Z}`:"unknown_service"}catch{E6="unknown_service"}return E6}Lw.defaultServiceName=P70;function M70(){E6=void 0}Lw._clearDefaultServiceNameCache=M70});var Pw=V(($w)=>{Object.defineProperty($w,"__esModule",{value:!0});$w.isPromiseLike=void 0;var h70=(Z)=>{return Z!==null&&typeof Z==="object"&&typeof Z.then==="function"};$w.isPromiseLike=h70});var m8=V((Rw)=>{Object.defineProperty(Rw,"__esModule",{value:!0});Rw.defaultResource=Rw.emptyResource=Rw.resourceFromDetectedResource=Rw.resourceFromAttributes=void 0;var L6=I(),c8=n(),v1=w0(),k70=l8(),A6=Pw();class T6{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(Z,X){let z=new T6({},X);return z._rawAttributes=Mw(Z),z._asyncAttributesPending=Z.filter(([q,G])=>(0,A6.isPromiseLike)(G)).length>0,z}constructor(Z,X){let z=Z.attributes??{};this._rawAttributes=Object.entries(z).map(([q,G])=>{if((0,A6.isPromiseLike)(G))this._asyncAttributesPending=!0;return[q,G]}),this._rawAttributes=Mw(this._rawAttributes),this._schemaUrl=y70(X?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(!this.asyncAttributesPending)return;for(let Z=0;Z<this._rawAttributes.length;Z++){let[X,z]=this._rawAttributes[Z];this._rawAttributes[Z]=[X,(0,A6.isPromiseLike)(z)?await z:z]}this._asyncAttributesPending=!1}get attributes(){if(this.asyncAttributesPending)L6.diag.error("Accessing resource attributes before async attributes settled");if(this._memoizedAttributes)return this._memoizedAttributes;let Z={};for(let[X,z]of this._rawAttributes){if((0,A6.isPromiseLike)(z)){L6.diag.debug(`Unsettled resource attribute ${X} skipped`);continue}if(z!=null)Z[X]??=z}if(!this._asyncAttributesPending)this._memoizedAttributes=Z;return Z}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(Z){if(Z==null)return this;let X=v70(this,Z),z=X?{schemaUrl:X}:void 0;return T6.FromAttributeList([...Z.getRawAttributes(),...this.getRawAttributes()],z)}}function n8(Z,X){return T6.FromAttributeList(Object.entries(Z),X)}Rw.resourceFromAttributes=n8;function f70(Z,X){return new T6(Z,X)}Rw.resourceFromDetectedResource=f70;function S70(){return n8({})}Rw.emptyResource=S70;function _70(){return n8({[v1.ATTR_SERVICE_NAME]:(0,k70.defaultServiceName)(),[v1.ATTR_TELEMETRY_SDK_LANGUAGE]:c8.SDK_INFO[v1.ATTR_TELEMETRY_SDK_LANGUAGE],[v1.ATTR_TELEMETRY_SDK_NAME]:c8.SDK_INFO[v1.ATTR_TELEMETRY_SDK_NAME],[v1.ATTR_TELEMETRY_SDK_VERSION]:c8.SDK_INFO[v1.ATTR_TELEMETRY_SDK_VERSION]})}Rw.defaultResource=_70;function Mw(Z){return Z.map(([X,z])=>{if((0,A6.isPromiseLike)(z))return[X,z.catch((q)=>{L6.diag.debug("promise rejection for resource attribute: %s - %s",X,q);return})];return[X,z]})}function y70(Z){if(typeof Z==="string"||Z===void 0)return Z;L6.diag.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",Z);return}function v70(Z,X){let z=Z?.schemaUrl,q=X?.schemaUrl,G=z===void 0||z==="",W=q===void 0||q==="";if(G)return q;if(W)return z;if(z===q)return z;L6.diag.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',z,q);return}});var _w=V((fw)=>{Object.defineProperty(fw,"__esModule",{value:!0});fw.detectResources=void 0;var kw=I(),g8=m8(),d70=(Z={})=>{return(Z.detectors||[]).map((z)=>{try{let q=(0,g8.resourceFromDetectedResource)(z.detect(Z));return kw.diag.debug(`${z.constructor.name} found resource.`,q),q}catch(q){return kw.diag.debug(`${z.constructor.name} failed: ${q.message}`),(0,g8.emptyResource)()}}).reduce((z,q)=>z.merge(q),(0,g8.emptyResource)())};fw.detectResources=d70});var bw=V((jw)=>{Object.defineProperty(jw,"__esModule",{value:!0});jw.envDetector=void 0;var u70=I(),l70=w0(),yw=n();class vw{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(Z){let X={},z=(0,yw.getStringFromEnv)("OTEL_RESOURCE_ATTRIBUTES"),q=(0,yw.getStringFromEnv)("OTEL_SERVICE_NAME");if(z)try{let G=this._parseResourceAttributes(z);Object.assign(X,G)}catch(G){u70.diag.debug(`EnvDetector failed: ${G instanceof Error?G.message:G}`)}if(q)X[l70.ATTR_SERVICE_NAME]=q;return{attributes:X}}_parseResourceAttributes(Z){if(!Z)return{};let X={},z=Z.split(this._COMMA_SEPARATOR).filter((q)=>q.trim()!=="");for(let q of z){let G=q.split(this._LABEL_KEY_VALUE_SPLITTER);if(G.length!==2)throw Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${q}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);let[W,Q]=G,J=W.trim(),Y=Q.trim();if(J.length===0)throw Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${q}".`);let K,F;try{K=decodeURIComponent(J),F=decodeURIComponent(Y)}catch(H){throw Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${q}": ${H instanceof Error?H.message:H}`)}if(K.length>this._MAX_LENGTH)throw Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${K}".`);if(F.length>this._MAX_LENGTH)throw Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${K}".`);X[K]=F}return X}}jw.envDetector=new vw});var $6=V((dw)=>{Object.defineProperty(dw,"__esModule",{value:!0});dw.ATTR_WEBENGINE_VERSION=dw.ATTR_WEBENGINE_NAME=dw.ATTR_WEBENGINE_DESCRIPTION=dw.ATTR_SERVICE_NAMESPACE=dw.ATTR_SERVICE_INSTANCE_ID=dw.ATTR_PROCESS_RUNTIME_VERSION=dw.ATTR_PROCESS_RUNTIME_NAME=dw.ATTR_PROCESS_RUNTIME_DESCRIPTION=dw.ATTR_PROCESS_PID=dw.ATTR_PROCESS_OWNER=dw.ATTR_PROCESS_EXECUTABLE_PATH=dw.ATTR_PROCESS_EXECUTABLE_NAME=dw.ATTR_PROCESS_COMMAND_ARGS=dw.ATTR_PROCESS_COMMAND=dw.ATTR_OS_VERSION=dw.ATTR_OS_TYPE=dw.ATTR_K8S_POD_NAME=dw.ATTR_K8S_NAMESPACE_NAME=dw.ATTR_K8S_DEPLOYMENT_NAME=dw.ATTR_K8S_CLUSTER_NAME=dw.ATTR_HOST_TYPE=dw.ATTR_HOST_NAME=dw.ATTR_HOST_IMAGE_VERSION=dw.ATTR_HOST_IMAGE_NAME=dw.ATTR_HOST_IMAGE_ID=dw.ATTR_HOST_ID=dw.ATTR_HOST_ARCH=dw.ATTR_CONTAINER_NAME=dw.ATTR_CONTAINER_IMAGE_TAGS=dw.ATTR_CONTAINER_IMAGE_NAME=dw.ATTR_CONTAINER_ID=dw.ATTR_CLOUD_REGION=dw.ATTR_CLOUD_PROVIDER=dw.ATTR_CLOUD_AVAILABILITY_ZONE=dw.ATTR_CLOUD_ACCOUNT_ID=void 0;dw.ATTR_CLOUD_ACCOUNT_ID="cloud.account.id";dw.ATTR_CLOUD_AVAILABILITY_ZONE="cloud.availability_zone";dw.ATTR_CLOUD_PROVIDER="cloud.provider";dw.ATTR_CLOUD_REGION="cloud.region";dw.ATTR_CONTAINER_ID="container.id";dw.ATTR_CONTAINER_IMAGE_NAME="container.image.name";dw.ATTR_CONTAINER_IMAGE_TAGS="container.image.tags";dw.ATTR_CONTAINER_NAME="container.name";dw.ATTR_HOST_ARCH="host.arch";dw.ATTR_HOST_ID="host.id";dw.ATTR_HOST_IMAGE_ID="host.image.id";dw.ATTR_HOST_IMAGE_NAME="host.image.name";dw.ATTR_HOST_IMAGE_VERSION="host.image.version";dw.ATTR_HOST_NAME="host.name";dw.ATTR_HOST_TYPE="host.type";dw.ATTR_K8S_CLUSTER_NAME="k8s.cluster.name";dw.ATTR_K8S_DEPLOYMENT_NAME="k8s.deployment.name";dw.ATTR_K8S_NAMESPACE_NAME="k8s.namespace.name";dw.ATTR_K8S_POD_NAME="k8s.pod.name";dw.ATTR_OS_TYPE="os.type";dw.ATTR_OS_VERSION="os.version";dw.ATTR_PROCESS_COMMAND="process.command";dw.ATTR_PROCESS_COMMAND_ARGS="process.command_args";dw.ATTR_PROCESS_EXECUTABLE_NAME="process.executable.name";dw.ATTR_PROCESS_EXECUTABLE_PATH="process.executable.path";dw.ATTR_PROCESS_OWNER="process.owner";dw.ATTR_PROCESS_PID="process.pid";dw.ATTR_PROCESS_RUNTIME_DESCRIPTION="process.runtime.description";dw.ATTR_PROCESS_RUNTIME_NAME="process.runtime.name";dw.ATTR_PROCESS_RUNTIME_VERSION="process.runtime.version";dw.ATTR_SERVICE_INSTANCE_ID="service.instance.id";dw.ATTR_SERVICE_NAMESPACE="service.namespace";dw.ATTR_WEBENGINE_DESCRIPTION="webengine.description";dw.ATTR_WEBENGINE_NAME="webengine.name";dw.ATTR_WEBENGINE_VERSION="webengine.version"});var X7=V((lw)=>{Object.defineProperty(lw,"__esModule",{value:!0});lw.execAsync=void 0;var LQ0=h("child_process"),TQ0=h("util");lw.execAsync=TQ0.promisify(LQ0.exec)});var gw=V((nw)=>{Object.defineProperty(nw,"__esModule",{value:!0});nw.getMachineId=void 0;var $Q0=X7(),wQ0=I();async function PQ0(){try{let X=(await(0,$Q0.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
|
|
15
|
+
`).find((q)=>q.includes("IOPlatformUUID"));if(!X)return;let z=X.split('" = "');if(z.length===2)return z[1].slice(0,-1)}catch(Z){wQ0.diag.debug(`error reading machine id: ${Z}`)}return}nw.getMachineId=PQ0});var aw=V((pw)=>{Object.defineProperty(pw,"__esModule",{value:!0});pw.getMachineId=void 0;var MQ0=h("fs"),RQ0=I();async function hQ0(){let Z=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let X of Z)try{return(await MQ0.promises.readFile(X,{encoding:"utf8"})).trim()}catch(z){RQ0.diag.debug(`error reading machine id: ${z}`)}return}pw.getMachineId=hQ0});var sw=V((tw)=>{Object.defineProperty(tw,"__esModule",{value:!0});tw.getMachineId=void 0;var kQ0=h("fs"),fQ0=X7(),ow=I();async function SQ0(){try{return(await kQ0.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(Z){ow.diag.debug(`error reading machine id: ${Z}`)}try{return(await(0,fQ0.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(Z){ow.diag.debug(`error reading machine id: ${Z}`)}return}tw.getMachineId=SQ0});var QP=V((ZP)=>{Object.defineProperty(ZP,"__esModule",{value:!0});ZP.getMachineId=void 0;var ew=h("process"),_Q0=X7(),yQ0=I();async function vQ0(){let X="%windir%\\System32\\REG.exe";if(ew.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in ew.env)X="%windir%\\sysnative\\cmd.exe /c "+X;try{let q=(await(0,_Q0.execAsync)(`${X} QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid`)).stdout.split("REG_SZ");if(q.length===2)return q[1].trim()}catch(z){yQ0.diag.debug(`error reading machine id: ${z}`)}return}ZP.getMachineId=vQ0});var zP=V((XP)=>{Object.defineProperty(XP,"__esModule",{value:!0});XP.getMachineId=void 0;var jQ0=I();async function xQ0(){jQ0.diag.debug("could not read machine-id: unsupported platform");return}XP.getMachineId=xQ0});var WP=V((GP)=>{Object.defineProperty(GP,"__esModule",{value:!0});GP.getMachineId=void 0;var bQ0=h("process"),j1;async function dQ0(){if(!j1)switch(bQ0.platform){case"darwin":j1=(await Promise.resolve().then(() => u(gw()))).getMachineId;break;case"linux":j1=(await Promise.resolve().then(() => u(aw()))).getMachineId;break;case"freebsd":j1=(await Promise.resolve().then(() => u(sw()))).getMachineId;break;case"win32":j1=(await Promise.resolve().then(() => u(QP()))).getMachineId;break;default:j1=(await Promise.resolve().then(() => u(zP()))).getMachineId;break}return j1()}GP.getMachineId=dQ0});var p8=V((KP)=>{Object.defineProperty(KP,"__esModule",{value:!0});KP.normalizeType=KP.normalizeArch=void 0;var uQ0=(Z)=>{switch(Z){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return Z}};KP.normalizeArch=uQ0;var lQ0=(Z)=>{switch(Z){case"sunos":return"solaris";case"win32":return"windows";default:return Z}};KP.normalizeType=lQ0});var NP=V((OP)=>{Object.defineProperty(OP,"__esModule",{value:!0});OP.hostDetector=void 0;var i8=$6(),HP=h("os"),nQ0=WP(),mQ0=p8();class BP{detect(Z){return{attributes:{[i8.ATTR_HOST_NAME]:(0,HP.hostname)(),[i8.ATTR_HOST_ARCH]:(0,mQ0.normalizeArch)((0,HP.arch)()),[i8.ATTR_HOST_ID]:(0,nQ0.getMachineId)()}}}}OP.hostDetector=new BP});var AP=V((DP)=>{Object.defineProperty(DP,"__esModule",{value:!0});DP.osDetector=void 0;var CP=$6(),UP=h("os"),gQ0=p8();class IP{detect(Z){return{attributes:{[CP.ATTR_OS_TYPE]:(0,gQ0.normalizeType)((0,UP.platform)()),[CP.ATTR_OS_VERSION]:(0,UP.release)()}}}}DP.osDetector=new IP});var wP=V((TP)=>{Object.defineProperty(TP,"__esModule",{value:!0});TP.processDetector=void 0;var pQ0=I(),c0=$6(),iQ0=h("os");class LP{detect(Z){let X={[c0.ATTR_PROCESS_PID]:process.pid,[c0.ATTR_PROCESS_EXECUTABLE_NAME]:process.title,[c0.ATTR_PROCESS_EXECUTABLE_PATH]:process.execPath,[c0.ATTR_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[c0.ATTR_PROCESS_RUNTIME_VERSION]:process.versions.node,[c0.ATTR_PROCESS_RUNTIME_NAME]:"nodejs",[c0.ATTR_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};if(process.argv.length>1)X[c0.ATTR_PROCESS_COMMAND]=process.argv[1];try{let z=iQ0.userInfo();X[c0.ATTR_PROCESS_OWNER]=z.username}catch(z){pQ0.diag.debug(`error obtaining process owner: ${z}`)}return{attributes:X}}}TP.processDetector=new LP});var hP=V((MP)=>{Object.defineProperty(MP,"__esModule",{value:!0});MP.serviceInstanceIdDetector=void 0;var aQ0=$6(),oQ0=h("crypto");class PP{detect(Z){return{attributes:{[aQ0.ATTR_SERVICE_INSTANCE_ID]:(0,oQ0.randomUUID)()}}}}MP.serviceInstanceIdDetector=new PP});var kP=V((CZ)=>{Object.defineProperty(CZ,"__esModule",{value:!0});CZ.serviceInstanceIdDetector=CZ.processDetector=CZ.osDetector=CZ.hostDetector=void 0;var tQ0=NP();Object.defineProperty(CZ,"hostDetector",{enumerable:!0,get:function(){return tQ0.hostDetector}});var rQ0=AP();Object.defineProperty(CZ,"osDetector",{enumerable:!0,get:function(){return rQ0.osDetector}});var sQ0=wP();Object.defineProperty(CZ,"processDetector",{enumerable:!0,get:function(){return sQ0.processDetector}});var eQ0=hP();Object.defineProperty(CZ,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return eQ0.serviceInstanceIdDetector}})});var fP=V((UZ)=>{Object.defineProperty(UZ,"__esModule",{value:!0});UZ.serviceInstanceIdDetector=UZ.processDetector=UZ.osDetector=UZ.hostDetector=void 0;var Y7=kP();Object.defineProperty(UZ,"hostDetector",{enumerable:!0,get:function(){return Y7.hostDetector}});Object.defineProperty(UZ,"osDetector",{enumerable:!0,get:function(){return Y7.osDetector}});Object.defineProperty(UZ,"processDetector",{enumerable:!0,get:function(){return Y7.processDetector}});Object.defineProperty(UZ,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return Y7.serviceInstanceIdDetector}})});var yP=V((SP)=>{Object.defineProperty(SP,"__esModule",{value:!0});SP.noopDetector=SP.NoopDetector=void 0;class a8{detect(){return{attributes:{}}}}SP.NoopDetector=a8;SP.noopDetector=new a8});var vP=V((X1)=>{Object.defineProperty(X1,"__esModule",{value:!0});X1.noopDetector=X1.serviceInstanceIdDetector=X1.processDetector=X1.osDetector=X1.hostDetector=X1.envDetector=void 0;var X40=bw();Object.defineProperty(X1,"envDetector",{enumerable:!0,get:function(){return X40.envDetector}});var z7=fP();Object.defineProperty(X1,"hostDetector",{enumerable:!0,get:function(){return z7.hostDetector}});Object.defineProperty(X1,"osDetector",{enumerable:!0,get:function(){return z7.osDetector}});Object.defineProperty(X1,"processDetector",{enumerable:!0,get:function(){return z7.processDetector}});Object.defineProperty(X1,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return z7.serviceInstanceIdDetector}});var Y40=yP();Object.defineProperty(X1,"noopDetector",{enumerable:!0,get:function(){return Y40.noopDetector}})});var G7=V((N0)=>{Object.defineProperty(N0,"__esModule",{value:!0});N0.defaultServiceName=N0.emptyResource=N0.defaultResource=N0.resourceFromAttributes=N0.serviceInstanceIdDetector=N0.processDetector=N0.osDetector=N0.hostDetector=N0.envDetector=N0.detectResources=void 0;var G40=_w();Object.defineProperty(N0,"detectResources",{enumerable:!0,get:function(){return G40.detectResources}});var w6=vP();Object.defineProperty(N0,"envDetector",{enumerable:!0,get:function(){return w6.envDetector}});Object.defineProperty(N0,"hostDetector",{enumerable:!0,get:function(){return w6.hostDetector}});Object.defineProperty(N0,"osDetector",{enumerable:!0,get:function(){return w6.osDetector}});Object.defineProperty(N0,"processDetector",{enumerable:!0,get:function(){return w6.processDetector}});Object.defineProperty(N0,"serviceInstanceIdDetector",{enumerable:!0,get:function(){return w6.serviceInstanceIdDetector}});var o8=m8();Object.defineProperty(N0,"resourceFromAttributes",{enumerable:!0,get:function(){return o8.resourceFromAttributes}});Object.defineProperty(N0,"defaultResource",{enumerable:!0,get:function(){return o8.defaultResource}});Object.defineProperty(N0,"emptyResource",{enumerable:!0,get:function(){return o8.emptyResource}});var q40=l8();Object.defineProperty(N0,"defaultServiceName",{enumerable:!0,get:function(){return q40.defaultServiceName}})});var bP=V((jP)=>{Object.defineProperty(jP,"__esModule",{value:!0});jP.isLogAttributeValue=void 0;function K40(Z){return t8(Z,new WeakSet)}jP.isLogAttributeValue=K40;function t8(Z,X){if(Z==null)return!0;if(typeof Z==="string"||typeof Z==="number"||typeof Z==="boolean")return!0;if(Z instanceof Uint8Array)return!0;if(typeof Z==="object"){if(X.has(Z))return!1;if(X.add(Z),Array.isArray(Z))return Z.every((q)=>t8(q,X));let z=Z;if(z.constructor!==Object&&z.constructor!==void 0)return!1;return Object.values(z).every((q)=>t8(q,X))}return!1}});var nP=V((lP)=>{Object.defineProperty(lP,"__esModule",{value:!0});lP.LogRecordImpl=void 0;var Y1=I(),dP=l(),k0=w0(),F40=bP();class uP{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;_attributesCount=0;_droppedAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(Z){if(this._isLogRecordReadonly())return;this._severityText=Z}get severityText(){return this._severityText}set severityNumber(Z){if(this._isLogRecordReadonly())return;this._severityNumber=Z}get severityNumber(){return this._severityNumber}set body(Z){if(this._isLogRecordReadonly())return;this._body=Z}get body(){return this._body}get eventName(){return this._eventName}set eventName(Z){if(this._isLogRecordReadonly())return;this._eventName=Z}get droppedAttributesCount(){return this._droppedAttributesCount}constructor(Z,X,z){let{timestamp:q,observedTimestamp:G,eventName:W,severityNumber:Q,severityText:J,body:Y,attributes:K={},exception:F,context:H}=z,N=Date.now();if(this.hrTime=(0,dP.timeInputToHrTime)(q??N),this.hrTimeObserved=(0,dP.timeInputToHrTime)(G??N),H){let U=Y1.trace.getSpanContext(H);if(U&&Y1.isSpanContextValid(U))this.spanContext=U}if(this.severityNumber=Q,this.severityText=J,this.body=Y,this.resource=Z.resource,this.instrumentationScope=X,this._logRecordLimits=Z.logRecordLimits,this._eventName=W,this.setAttributes(K),F!=null)this._setException(F)}setAttribute(Z,X){if(this._isLogRecordReadonly())return this;if(Z.length===0)return Y1.diag.warn(`Invalid attribute key: ${Z}`),this;if(!(0,F40.isLogAttributeValue)(X))return Y1.diag.warn(`Invalid attribute value set for key: ${Z}`),this;let z=!Object.prototype.hasOwnProperty.call(this.attributes,Z);if(z&&this._attributesCount>=this._logRecordLimits.attributeCountLimit){if(this._droppedAttributesCount++,this._droppedAttributesCount===1)Y1.diag.warn("Dropping extra attributes.");return this}if(this.attributes[Z]=this._truncateToSize(X),z)this._attributesCount++;return this}setAttributes(Z){for(let[X,z]of Object.entries(Z))this.setAttribute(X,z);return this}setBody(Z){return this.body=Z,this}setEventName(Z){return this.eventName=Z,this}setSeverityNumber(Z){return this.severityNumber=Z,this}setSeverityText(Z){return this.severityText=Z,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(Z){let X=this._logRecordLimits.attributeValueLengthLimit;if(X<=0)return Y1.diag.warn(`Attribute value limit must be positive, got ${X}`),Z;if(Z==null)return Z;if(typeof Z==="string")return this._truncateToLimitUtil(Z,X);if(Z instanceof Uint8Array)return Z;if(Array.isArray(Z))return Z.map((z)=>this._truncateToSize(z));if(typeof Z==="object"){let z={};for(let[q,G]of Object.entries(Z))z[q]=this._truncateToSize(G);return z}return Z}_setException(Z){let X=!1;if(typeof Z==="string"||typeof Z==="number"){if(!Object.hasOwn(this.attributes,k0.ATTR_EXCEPTION_MESSAGE))this.setAttribute(k0.ATTR_EXCEPTION_MESSAGE,String(Z));X=!0}else if(Z&&typeof Z==="object"){let z=Z;if(z.code){if(!Object.hasOwn(this.attributes,k0.ATTR_EXCEPTION_TYPE))this.setAttribute(k0.ATTR_EXCEPTION_TYPE,z.code.toString());X=!0}else if(z.name){if(!Object.hasOwn(this.attributes,k0.ATTR_EXCEPTION_TYPE))this.setAttribute(k0.ATTR_EXCEPTION_TYPE,z.name);X=!0}if(z.message){if(!Object.hasOwn(this.attributes,k0.ATTR_EXCEPTION_MESSAGE))this.setAttribute(k0.ATTR_EXCEPTION_MESSAGE,z.message);X=!0}if(z.stack){if(!Object.hasOwn(this.attributes,k0.ATTR_EXCEPTION_STACKTRACE))this.setAttribute(k0.ATTR_EXCEPTION_STACKTRACE,z.stack);X=!0}}if(!X)Y1.diag.warn(`Failed to record an exception ${Z}`)}_truncateToLimitUtil(Z,X){if(Z.length<=X)return Z;return Z.substring(0,X)}_isLogRecordReadonly(){if(this._isReadonly)Y1.diag.warn("Can not execute the operation on emitted log record");return this._isReadonly}}lP.LogRecordImpl=uP});var aP=V((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.Logger=void 0;var mP=ZZ(),P6=I(),H40=nP();class gP{instrumentationScope;_sharedState;_loggerConfig;constructor(Z,X){this.instrumentationScope=Z,this._sharedState=X,this._loggerConfig=this._sharedState.getLoggerConfig(this.instrumentationScope)}emit(Z){let X=this._loggerConfig,z=Z.context||P6.context.active(),q=Z.severityNumber??mP.SeverityNumber.UNSPECIFIED;if(q!==mP.SeverityNumber.UNSPECIFIED&&q<X.minimumSeverity)return;if(X.traceBased){let W=P6.trace.getSpanContext(z);if(W&&(0,P6.isSpanContextValid)(W)){if((W.traceFlags&P6.TraceFlags.SAMPLED)!==P6.TraceFlags.SAMPLED)return}}let G=new H40.LogRecordImpl(this._sharedState,this.instrumentationScope,{context:z,...Z});this._sharedState.activeProcessor.onEmit(G,z),G._makeReadonly()}}pP.Logger=gP});var sP=V((tP)=>{Object.defineProperty(tP,"__esModule",{value:!0});tP.NoopLogRecordProcessor=void 0;class oP{forceFlush(){return Promise.resolve()}onEmit(Z,X){}shutdown(){return Promise.resolve()}}tP.NoopLogRecordProcessor=oP});var QM=V((ZM)=>{Object.defineProperty(ZM,"__esModule",{value:!0});ZM.MultiLogRecordProcessor=void 0;var B40=l();class eP{processors;forceFlushTimeoutMillis;constructor(Z,X){this.processors=Z,this.forceFlushTimeoutMillis=X}async forceFlush(){let Z=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map((X)=>(0,B40.callWithTimeout)(X.forceFlush(),Z)))}onEmit(Z,X){this.processors.forEach((z)=>z.onEmit(Z,X))}async shutdown(){await Promise.all(this.processors.map((Z)=>Z.shutdown()))}}ZM.MultiLogRecordProcessor=eP});var zM=V((XM)=>{Object.defineProperty(XM,"__esModule",{value:!0});XM.getInstrumentationScopeKey=void 0;function O40(Z){return`${Z.name}@${Z.version||""}:${Z.schemaUrl||""}`}XM.getInstrumentationScopeKey=O40});var FM=V((qM)=>{Object.defineProperty(qM,"__esModule",{value:!0});qM.LoggerProviderSharedState=qM.DEFAULT_LOGGER_CONFIGURATOR=void 0;var V40=ZZ(),N40=sP(),C40=QM(),U40=zM(),I40={disabled:!1,minimumSeverity:V40.SeverityNumber.UNSPECIFIED,traceBased:!1},D40=()=>({...I40});qM.DEFAULT_LOGGER_CONFIGURATOR=D40;class GM{loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];resource;forceFlushTimeoutMillis;logRecordLimits;processors;_loggerConfigurator;_loggerConfigs=new Map;constructor(Z,X,z,q,G){if(this.resource=Z,this.forceFlushTimeoutMillis=X,this.logRecordLimits=z,this.processors=q,q.length>0)this.registeredLogRecordProcessors=q,this.activeProcessor=new C40.MultiLogRecordProcessor(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis);else this.activeProcessor=new N40.NoopLogRecordProcessor;this._loggerConfigurator=G??qM.DEFAULT_LOGGER_CONFIGURATOR}getLoggerConfig(Z){let X=(0,U40.getInstrumentationScopeKey)(Z),z=this._loggerConfigs.get(X);if(z)return z;return z=this._loggerConfigurator(Z),this._loggerConfigs.set(X,z),z}}qM.LoggerProviderSharedState=GM});var CM=V((OM)=>{Object.defineProperty(OM,"__esModule",{value:!0});OM.LoggerProvider=OM.DEFAULT_LOGGER_NAME=void 0;var q7=I(),E40=ZZ(),A40=g4(),L40=l(),T40=aP(),HM=FM();OM.DEFAULT_LOGGER_NAME="unknown";class BM{_shutdownOnce;_sharedState;constructor(Z={}){let X={resource:Z.resource??(0,A40.defaultResource)(),forceFlushTimeoutMillis:Z.forceFlushTimeoutMillis??30000,logRecordLimits:{attributeCountLimit:Z.logRecordLimits?.attributeCountLimit??128,attributeValueLengthLimit:Z.logRecordLimits?.attributeValueLengthLimit??1/0},loggerConfigurator:Z.loggerConfigurator??HM.DEFAULT_LOGGER_CONFIGURATOR,processors:Z.processors??[]};this._sharedState=new HM.LoggerProviderSharedState(X.resource,X.forceFlushTimeoutMillis,X.logRecordLimits,X.processors,X.loggerConfigurator),this._shutdownOnce=new L40.BindOnceFuture(this._shutdown,this)}getLogger(Z,X,z){if(this._shutdownOnce.isCalled)return q7.diag.warn("A shutdown LoggerProvider cannot provide a Logger"),E40.NOOP_LOGGER;if(!Z)q7.diag.warn("Logger requested without instrumentation scope name.");let q=Z||OM.DEFAULT_LOGGER_NAME,G=`${q}@${X||""}:${z?.schemaUrl||""}`;if(!this._sharedState.loggers.has(G))this._sharedState.loggers.set(G,new T40.Logger({name:q,version:X,schemaUrl:z?.schemaUrl},this._sharedState));return this._sharedState.loggers.get(G)}forceFlush(){if(this._shutdownOnce.isCalled)return q7.diag.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise;return this._sharedState.activeProcessor.forceFlush()}shutdown(){if(this._shutdownOnce.isCalled)return q7.diag.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise;return this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}}OM.LoggerProvider=BM});var AM=V((DM)=>{Object.defineProperty(DM,"__esModule",{value:!0});DM.ConsoleLogRecordExporter=void 0;var UM=l();class IM{export(Z,X){this._sendLogRecords(Z,X)}shutdown(){return Promise.resolve()}_exportInfo(Z){return{resource:{attributes:Z.resource.attributes},instrumentationScope:Z.instrumentationScope,timestamp:(0,UM.hrTimeToMicroseconds)(Z.hrTime),traceId:Z.spanContext?.traceId,spanId:Z.spanContext?.spanId,traceFlags:Z.spanContext?.traceFlags,severityText:Z.severityText,severityNumber:Z.severityNumber,eventName:Z.eventName,body:Z.body,attributes:Z.attributes}}_sendLogRecords(Z,X){for(let z of Z)console.dir(this._exportInfo(z),{depth:3});X?.({code:UM.ExportResultCode.SUCCESS})}}DM.ConsoleLogRecordExporter=IM});var wM=V((TM)=>{Object.defineProperty(TM,"__esModule",{value:!0});TM.SimpleLogRecordProcessor=void 0;var IZ=l();class LM{_exporter;_shutdownOnce;_unresolvedExports;constructor(Z){this._exporter=Z,this._shutdownOnce=new IZ.BindOnceFuture(this._shutdown,this),this._unresolvedExports=new Set}onEmit(Z){if(this._shutdownOnce.isCalled)return;let X=()=>IZ.internal._export(this._exporter,[Z]).then((z)=>{if(z.code!==IZ.ExportResultCode.SUCCESS)(0,IZ.globalErrorHandler)(z.error??Error(`SimpleLogRecordProcessor: log record export failed (status ${z})`))}).catch(IZ.globalErrorHandler);if(Z.resource.asyncAttributesPending){let z=Z.resource.waitForAsyncAttributes?.().then(()=>{return this._unresolvedExports.delete(z),X()},IZ.globalErrorHandler);if(z!=null)this._unresolvedExports.add(z)}else X()}async forceFlush(){await Promise.all(Array.from(this._unresolvedExports))}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}TM.SimpleLogRecordProcessor=LM});var kM=V((RM)=>{Object.defineProperty(RM,"__esModule",{value:!0});RM.InMemoryLogRecordExporter=void 0;var PM=l();class MM{_finishedLogRecords=[];_stopped=!1;export(Z,X){if(this._stopped)return X({code:PM.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedLogRecords.push(...Z),X({code:PM.ExportResultCode.SUCCESS})}shutdown(){return this._stopped=!0,this.reset(),Promise.resolve()}getFinishedLogRecords(){return this._finishedLogRecords}reset(){this._finishedLogRecords=[]}}RM.InMemoryLogRecordExporter=MM});var yM=V((SM)=>{Object.defineProperty(SM,"__esModule",{value:!0});SM.BatchLogRecordProcessorBase=void 0;var $40=I(),z1=l();class fM{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedLogRecords=[];_timer;_shutdownOnce;constructor(Z,X){if(this._exporter=Z,this._maxExportBatchSize=X?.maxExportBatchSize??512,this._maxQueueSize=X?.maxQueueSize??2048,this._scheduledDelayMillis=X?.scheduledDelayMillis??5000,this._exportTimeoutMillis=X?.exportTimeoutMillis??30000,this._shutdownOnce=new z1.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)$40.diag.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize}onEmit(Z){if(this._shutdownOnce.isCalled)return;this._addToBuffer(Z)}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}shutdown(){return this._shutdownOnce.call()}async _shutdown(){this.onShutdown(),await this._flushAll(),await this._exporter.shutdown()}_addToBuffer(Z){if(this._finishedLogRecords.length>=this._maxQueueSize)return;this._finishedLogRecords.push(Z),this._maybeStartTimer()}_flushAll(){return new Promise((Z,X)=>{let z=[],q=Math.ceil(this._finishedLogRecords.length/this._maxExportBatchSize);for(let G=0;G<q;G++)z.push(this._flushOneBatch());Promise.all(z).then(()=>{Z()}).catch(X)})}_flushOneBatch(){if(this._clearTimer(),this._finishedLogRecords.length===0)return Promise.resolve();return(0,z1.callWithTimeout)(this._export(this._finishedLogRecords.splice(0,this._maxExportBatchSize)),this._exportTimeoutMillis)}_maybeStartTimer(){if(this._isExporting)return;let Z=()=>{this._isExporting=!0,this._flushOneBatch().then(()=>{if(this._isExporting=!1,this._finishedLogRecords.length>0)this._clearTimer(),this._maybeStartTimer()}).catch((X)=>{this._isExporting=!1,(0,z1.globalErrorHandler)(X)})};if(this._finishedLogRecords.length>=this._maxExportBatchSize)return Z();if(this._timer!==void 0)return;if(this._timer=setTimeout(()=>Z(),this._scheduledDelayMillis),typeof this._timer!=="number")this._timer.unref()}_clearTimer(){if(this._timer!==void 0)clearTimeout(this._timer),this._timer=void 0}_export(Z){let X=()=>z1.internal._export(this._exporter,Z).then((q)=>{if(q.code!==z1.ExportResultCode.SUCCESS)(0,z1.globalErrorHandler)(q.error??Error(`BatchLogRecordProcessor: log record export failed (status ${q})`))}).catch(z1.globalErrorHandler),z=[];for(let q=0;q<Z.length;q++){let G=Z[q].resource;if(G.asyncAttributesPending&&typeof G.waitForAsyncAttributes==="function")z.push(G.waitForAsyncAttributes())}if(z.length===0)return X();else return Promise.all(z).then(X,z1.globalErrorHandler)}}SM.BatchLogRecordProcessorBase=fM});var bM=V((jM)=>{Object.defineProperty(jM,"__esModule",{value:!0});jM.BatchLogRecordProcessor=void 0;var w40=yM();class vM extends w40.BatchLogRecordProcessorBase{onShutdown(){}}jM.BatchLogRecordProcessor=vM});var dM=V((r8)=>{Object.defineProperty(r8,"__esModule",{value:!0});r8.BatchLogRecordProcessor=void 0;var P40=bM();Object.defineProperty(r8,"BatchLogRecordProcessor",{enumerable:!0,get:function(){return P40.BatchLogRecordProcessor}})});var uM=V((s8)=>{Object.defineProperty(s8,"__esModule",{value:!0});s8.BatchLogRecordProcessor=void 0;var R40=dM();Object.defineProperty(s8,"BatchLogRecordProcessor",{enumerable:!0,get:function(){return R40.BatchLogRecordProcessor}})});var nM=V((lM)=>{Object.defineProperty(lM,"__esModule",{value:!0});lM.createLoggerConfigurator=void 0;var k40=ZZ(),W7={disabled:!1,minimumSeverity:k40.SeverityNumber.UNSPECIFIED,traceBased:!1};function f40(Z){return(X)=>{let z=X.name;for(let{pattern:q,config:G}of Z)if(S40(z,q))return{disabled:G.disabled??W7.disabled,minimumSeverity:G.minimumSeverity??W7.minimumSeverity,traceBased:G.traceBased??W7.traceBased};return{...W7}}}lM.createLoggerConfigurator=f40;function S40(Z,X){if(X===Z)return!0;if(X.includes("*")){let z=X.split("*").map((G)=>G.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join(".*");return new RegExp(`^${z}$`).test(Z)}return!1}});var mM=V((G1)=>{Object.defineProperty(G1,"__esModule",{value:!0});G1.createLoggerConfigurator=G1.BatchLogRecordProcessor=G1.InMemoryLogRecordExporter=G1.SimpleLogRecordProcessor=G1.ConsoleLogRecordExporter=G1.LoggerProvider=void 0;var _40=CM();Object.defineProperty(G1,"LoggerProvider",{enumerable:!0,get:function(){return _40.LoggerProvider}});var y40=AM();Object.defineProperty(G1,"ConsoleLogRecordExporter",{enumerable:!0,get:function(){return y40.ConsoleLogRecordExporter}});var v40=wM();Object.defineProperty(G1,"SimpleLogRecordProcessor",{enumerable:!0,get:function(){return v40.SimpleLogRecordProcessor}});var j40=kM();Object.defineProperty(G1,"InMemoryLogRecordExporter",{enumerable:!0,get:function(){return j40.InMemoryLogRecordExporter}});var x40=uM();Object.defineProperty(G1,"BatchLogRecordProcessor",{enumerable:!0,get:function(){return x40.BatchLogRecordProcessor}});var b40=nM();Object.defineProperty(G1,"createLoggerConfigurator",{enumerable:!0,get:function(){return b40.createLoggerConfigurator}})});var K7=V((gM)=>{Object.defineProperty(gM,"__esModule",{value:!0});gM.AggregationTemporality=void 0;var u40;(function(Z){Z[Z.DELTA=0]="DELTA",Z[Z.CUMULATIVE=1]="CUMULATIVE"})(u40=gM.AggregationTemporality||(gM.AggregationTemporality={}))});var n0=V((iM)=>{Object.defineProperty(iM,"__esModule",{value:!0});iM.DataPointType=iM.InstrumentType=void 0;var l40;(function(Z){Z.COUNTER="COUNTER",Z.GAUGE="GAUGE",Z.HISTOGRAM="HISTOGRAM",Z.UP_DOWN_COUNTER="UP_DOWN_COUNTER",Z.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",Z.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",Z.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(l40=iM.InstrumentType||(iM.InstrumentType={}));var c40;(function(Z){Z[Z.HISTOGRAM=0]="HISTOGRAM",Z[Z.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",Z[Z.GAUGE=2]="GAUGE",Z[Z.SUM=3]="SUM"})(c40=iM.DataPointType||(iM.DataPointType={}))});var f0=V((aM)=>{Object.defineProperty(aM,"__esModule",{value:!0});aM.equalsCaseInsensitive=aM.binarySearchUB=aM.setEquals=aM.callWithTimeout=aM.TimeoutError=aM.instrumentationScopeId=aM.hashAttributes=void 0;function n40(Z){let X=Object.keys(Z);if(X.length===0)return"";return X=X.sort(),JSON.stringify(X.map((z)=>[z,Z[z]]))}aM.hashAttributes=n40;function m40(Z){return`${Z.name}:${Z.version??""}:${Z.schemaUrl??""}`}aM.instrumentationScopeId=m40;class F7 extends Error{constructor(Z){super(Z);Object.setPrototypeOf(this,F7.prototype)}}aM.TimeoutError=F7;function g40(Z,X){let z,q=new Promise(function(W,Q){z=setTimeout(function(){Q(new F7("Operation timed out."))},X)});return Promise.race([Z,q]).then((G)=>{return clearTimeout(z),G},(G)=>{throw clearTimeout(z),G})}aM.callWithTimeout=g40;function p40(Z,X){if(Z.size!==X.size)return!1;for(let z of Z)if(!X.has(z))return!1;return!0}aM.setEquals=p40;function i40(Z,X){let z=0,q=Z.length-1,G=Z.length;while(q>=z){let W=z+Math.trunc((q-z)/2);if(Z[W]<X)z=W+1;else G=W,q=W-1}return G}aM.binarySearchUB=i40;function a40(Z,X){return Z.toLowerCase()===X.toLowerCase()}aM.equalsCaseInsensitive=a40});var DZ=V((tM)=>{Object.defineProperty(tM,"__esModule",{value:!0});tM.AggregatorKind=void 0;var J80;(function(Z){Z[Z.DROP=0]="DROP",Z[Z.SUM=1]="SUM",Z[Z.LAST_VALUE=2]="LAST_VALUE",Z[Z.HISTOGRAM=3]="HISTOGRAM",Z[Z.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(J80=tM.AggregatorKind||(tM.AggregatorKind={}))});var ZR=V((sM)=>{Object.defineProperty(sM,"__esModule",{value:!0});sM.DropAggregator=void 0;var Q80=DZ();class rM{kind=Q80.AggregatorKind.DROP;createAccumulation(){return}merge(Z,X){return}diff(Z,X){return}toMetricData(Z,X,z,q){return}}sM.DropAggregator=rM});var YR=V((QR)=>{Object.defineProperty(QR,"__esModule",{value:!0});QR.HistogramAggregator=QR.HistogramAccumulation=void 0;var X80=DZ(),M6=n0(),Y80=f0();function z80(Z){let X=Z.map(()=>0);return X.push(0),{buckets:{boundaries:Z,counts:X},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}class R6{startTime;_boundaries;_recordMinMax;_current;constructor(Z,X,z=!0,q=z80(X)){this.startTime=Z,this._boundaries=X,this._recordMinMax=z,this._current=q}record(Z){if(Number.isNaN(Z))return;if(this._current.count+=1,this._current.sum+=Z,this._recordMinMax)this._current.min=Math.min(Z,this._current.min),this._current.max=Math.max(Z,this._current.max),this._current.hasMinMax=!0;let X=(0,Y80.binarySearchUB)(this._boundaries,Z);this._current.buckets.counts[X]+=1}setStartTime(Z){this.startTime=Z}toPointValue(){return this._current}}QR.HistogramAccumulation=R6;class JR{kind=X80.AggregatorKind.HISTOGRAM;_boundaries;_recordMinMax;constructor(Z,X){this._boundaries=Z,this._recordMinMax=X}createAccumulation(Z){return new R6(Z,this._boundaries,this._recordMinMax)}merge(Z,X){let z=Z.toPointValue(),q=X.toPointValue(),G=z.buckets.counts,W=q.buckets.counts,Q=Array(G.length);for(let K=0;K<G.length;K++)Q[K]=G[K]+W[K];let J=1/0,Y=-1/0;if(this._recordMinMax){if(z.hasMinMax&&q.hasMinMax)J=Math.min(z.min,q.min),Y=Math.max(z.max,q.max);else if(z.hasMinMax)J=z.min,Y=z.max;else if(q.hasMinMax)J=q.min,Y=q.max}return new R6(Z.startTime,z.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:z.buckets.boundaries,counts:Q},count:z.count+q.count,sum:z.sum+q.sum,hasMinMax:this._recordMinMax&&(z.hasMinMax||q.hasMinMax),min:J,max:Y})}diff(Z,X){let z=Z.toPointValue(),q=X.toPointValue(),G=z.buckets.counts,W=q.buckets.counts,Q=Array(G.length);for(let J=0;J<G.length;J++)Q[J]=W[J]-G[J];return new R6(X.startTime,z.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:z.buckets.boundaries,counts:Q},count:q.count-z.count,sum:q.sum-z.sum,hasMinMax:!1,min:1/0,max:-1/0})}toMetricData(Z,X,z,q){return{descriptor:Z,aggregationTemporality:X,dataPointType:M6.DataPointType.HISTOGRAM,dataPoints:z.map(([G,W])=>{let Q=W.toPointValue(),J=Z.type===M6.InstrumentType.GAUGE||Z.type===M6.InstrumentType.UP_DOWN_COUNTER||Z.type===M6.InstrumentType.OBSERVABLE_GAUGE||Z.type===M6.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:G,startTime:W.startTime,endTime:q,value:{min:Q.hasMinMax?Q.min:void 0,max:Q.hasMinMax?Q.max:void 0,sum:!J?Q.sum:void 0,buckets:Q.buckets,count:Q.count}}})}}}QR.HistogramAggregator=JR});var qR=V((zR)=>{Object.defineProperty(zR,"__esModule",{value:!0});zR.Buckets=void 0;class Q9{backing;indexBase;indexStart;indexEnd;constructor(Z=new X9,X=0,z=0,q=0){this.backing=Z,this.indexBase=X,this.indexStart=z,this.indexEnd=q}get offset(){return this.indexStart}get length(){if(this.backing.length===0)return 0;if(this.indexEnd===this.indexStart&&this.at(0)===0)return 0;return this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(Z,X)=>this.at(X))}at(Z){let X=this.indexBase-this.indexStart;if(Z<X)Z+=this.backing.length;return Z-=X,this.backing.countAt(Z)}incrementBucket(Z,X){this.backing.increment(Z,X)}decrementBucket(Z,X){this.backing.decrement(Z,X)}trim(){for(let Z=0;Z<this.length;Z++)if(this.at(Z)!==0){this.indexStart+=Z;break}else if(Z===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(let Z=this.length-1;Z>=0;Z--)if(this.at(Z)!==0){this.indexEnd-=this.length-Z-1;break}this._rotate()}downscale(Z){this._rotate();let X=1+this.indexEnd-this.indexStart,z=1<<Z,q=0,G=0;for(let W=this.indexStart;W<=this.indexEnd;){let Q=W%z;if(Q<0)Q+=z;for(let J=Q;J<z&&q<X;J++)this._relocateBucket(G,q),q++,W++;G++}this.indexStart>>=Z,this.indexEnd>>=Z,this.indexBase=this.indexStart}clone(){return new Q9(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let Z=this.indexBase-this.indexStart;if(Z===0)return;else if(Z>0)this.backing.reverse(0,this.backing.length),this.backing.reverse(0,Z),this.backing.reverse(Z,this.backing.length);else this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+Z);this.indexBase=this.indexStart}_relocateBucket(Z,X){if(Z===X)return;this.incrementBucket(Z,this.backing.emptyBucket(X))}}zR.Buckets=Q9;class X9{_counts;constructor(Z=[0]){this._counts=Z}get length(){return this._counts.length}countAt(Z){return this._counts[Z]}growTo(Z,X,z){let q=Array(Z).fill(0);q.splice(z,this._counts.length-X,...this._counts.slice(X)),q.splice(0,X,...this._counts.slice(0,X)),this._counts=q}reverse(Z,X){let z=Math.floor((Z+X)/2)-Z;for(let q=0;q<z;q++){let G=this._counts[Z+q];this._counts[Z+q]=this._counts[X-q-1],this._counts[X-q-1]=G}}emptyBucket(Z){let X=this._counts[Z];return this._counts[Z]=0,X}increment(Z,X){this._counts[Z]+=X}decrement(Z,X){if(this._counts[Z]>=X)this._counts[Z]-=X;else this._counts[Z]=0}clone(){return new X9([...this._counts])}}});var z9=V((WR)=>{Object.defineProperty(WR,"__esModule",{value:!0});WR.getSignificand=WR.getNormalBase2=WR.MIN_VALUE=WR.MAX_NORMAL_EXPONENT=WR.MIN_NORMAL_EXPONENT=WR.SIGNIFICAND_WIDTH=void 0;WR.SIGNIFICAND_WIDTH=52;var q80=2146435072,W80=1048575,Y9=1023;WR.MIN_NORMAL_EXPONENT=-Y9+1;WR.MAX_NORMAL_EXPONENT=Y9;WR.MIN_VALUE=Math.pow(2,-1022);function K80(Z){let X=new DataView(new ArrayBuffer(8));return X.setFloat64(0,Z),((X.getUint32(0)&q80)>>20)-Y9}WR.getNormalBase2=K80;function F80(Z){let X=new DataView(new ArrayBuffer(8));X.setFloat64(0,Z);let z=X.getUint32(0),q=X.getUint32(4);return(z&W80)*Math.pow(2,32)+q}WR.getSignificand=F80});var H7=V((FR)=>{Object.defineProperty(FR,"__esModule",{value:!0});FR.nextGreaterSquare=FR.ldexp=void 0;function C80(Z,X){if(Z===0||Z===Number.POSITIVE_INFINITY||Z===Number.NEGATIVE_INFINITY||Number.isNaN(Z))return Z;return Z*Math.pow(2,X)}FR.ldexp=C80;function U80(Z){return Z--,Z|=Z>>1,Z|=Z>>2,Z|=Z>>4,Z|=Z>>8,Z|=Z>>16,Z++,Z}FR.nextGreaterSquare=U80});var B7=V((OR)=>{Object.defineProperty(OR,"__esModule",{value:!0});OR.MappingError=void 0;class BR extends Error{}OR.MappingError=BR});var DR=V((UR)=>{Object.defineProperty(UR,"__esModule",{value:!0});UR.ExponentMapping=void 0;var EZ=z9(),D80=H7(),NR=B7();class CR{_shift;constructor(Z){this._shift=-Z}mapToIndex(Z){if(Z<EZ.MIN_VALUE)return this._minNormalLowerBoundaryIndex();let X=EZ.getNormalBase2(Z),z=this._rightShift(EZ.getSignificand(Z)-1,EZ.SIGNIFICAND_WIDTH);return X+z>>this._shift}lowerBoundary(Z){let X=this._minNormalLowerBoundaryIndex();if(Z<X)throw new NR.MappingError(`underflow: ${Z} is < minimum lower boundary: ${X}`);let z=this._maxNormalLowerBoundaryIndex();if(Z>z)throw new NR.MappingError(`overflow: ${Z} is > maximum lower boundary: ${z}`);return D80.ldexp(1,Z<<this._shift)}get scale(){if(this._shift===0)return 0;return-this._shift}_minNormalLowerBoundaryIndex(){let Z=EZ.MIN_NORMAL_EXPONENT>>this._shift;if(this._shift<2)Z--;return Z}_maxNormalLowerBoundaryIndex(){return EZ.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(Z,X){return Math.floor(Z*Math.pow(2,-X))}}UR.ExponentMapping=CR});var wR=V((TR)=>{Object.defineProperty(TR,"__esModule",{value:!0});TR.LogarithmMapping=void 0;var AZ=z9(),ER=H7(),AR=B7();class LR{_scale;_scaleFactor;_inverseFactor;constructor(Z){this._scale=Z,this._scaleFactor=ER.ldexp(Math.LOG2E,Z),this._inverseFactor=ER.ldexp(Math.LN2,-Z)}mapToIndex(Z){if(Z<=AZ.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(AZ.getSignificand(Z)===0)return(AZ.getNormalBase2(Z)<<this._scale)-1;let X=Math.floor(Math.log(Z)*this._scaleFactor),z=this._maxNormalLowerBoundaryIndex();if(X>=z)return z;return X}lowerBoundary(Z){let X=this._maxNormalLowerBoundaryIndex();if(Z>=X){if(Z===X)return 2*Math.exp((Z-(1<<this._scale))/this._scaleFactor);throw new AR.MappingError(`overflow: ${Z} is > maximum lower boundary: ${X}`)}let z=this._minNormalLowerBoundaryIndex();if(Z<=z){if(Z===z)return AZ.MIN_VALUE;else if(Z===z-1)return Math.exp((Z+(1<<this._scale))/this._scaleFactor)/2;throw new AR.MappingError(`overflow: ${Z} is < minimum lower boundary: ${z}`)}return Math.exp(Z*this._inverseFactor)}get scale(){return this._scale}_minNormalLowerBoundaryIndex(){return AZ.MIN_NORMAL_EXPONENT<<this._scale}_maxNormalLowerBoundaryIndex(){return(AZ.MAX_NORMAL_EXPONENT+1<<this._scale)-1}}TR.LogarithmMapping=LR});var kR=V((RR)=>{Object.defineProperty(RR,"__esModule",{value:!0});RR.getMapping=void 0;var E80=DR(),A80=wR(),L80=B7(),PR=-10,MR=20,T80=Array.from({length:31},(Z,X)=>{if(X>10)return new A80.LogarithmMapping(X-10);return new E80.ExponentMapping(X-10)});function $80(Z){if(Z>MR||Z<PR)throw new L80.MappingError(`expected scale >= ${PR} && <= ${MR}, got: ${Z}`);return T80[Z+10]}RR.getMapping=$80});var jR=V((yR)=>{Object.defineProperty(yR,"__esModule",{value:!0});yR.ExponentialHistogramAggregator=yR.ExponentialHistogramAccumulation=void 0;var w80=DZ(),h6=n0(),P80=I(),fR=qR(),SR=kR(),M80=H7();class LZ{static combine(Z,X){return new LZ(Math.min(Z.low,X.low),Math.max(Z.high,X.high))}low;high;constructor(Z,X){this.low=Z,this.high=X}}var R80=20,h80=160,G9=2;class O7{startTime;_maxSize;_recordMinMax;_sum;_count;_zeroCount;_min;_max;_positive;_negative;_mapping;constructor(Z,X=h80,z=!0,q=0,G=0,W=0,Q=Number.POSITIVE_INFINITY,J=Number.NEGATIVE_INFINITY,Y=new fR.Buckets,K=new fR.Buckets,F=(0,SR.getMapping)(R80)){if(this.startTime=Z,this._maxSize=X,this._recordMinMax=z,this._sum=q,this._count=G,this._zeroCount=W,this._min=Q,this._max=J,this._positive=Y,this._negative=K,this._mapping=F,this._maxSize<G9)P80.diag.warn(`Exponential Histogram Max Size set to ${this._maxSize}, changing to the minimum size of: ${G9}`),this._maxSize=G9}record(Z){this.updateByIncrement(Z,1)}setStartTime(Z){this.startTime=Z}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(){if(this._count===this._zeroCount)return 0;return this._mapping.scale}get positive(){return this._positive}get negative(){return this._negative}updateByIncrement(Z,X){if(Number.isNaN(Z))return;if(Z>this._max)this._max=Z;if(Z<this._min)this._min=Z;if(this._count+=X,Z===0){this._zeroCount+=X;return}if(this._sum+=Z*X,Z>0)this._updateBuckets(this._positive,Z,X);else this._updateBuckets(this._negative,-Z,X)}merge(Z){if(this._count===0)this._min=Z.min,this._max=Z.max;else if(Z.count!==0){if(Z.min<this.min)this._min=Z.min;if(Z.max>this.max)this._max=Z.max}this.startTime=Z.startTime,this._sum+=Z.sum,this._count+=Z.count,this._zeroCount+=Z.zeroCount;let X=this._minScale(Z);this._downscale(this.scale-X),this._mergeBuckets(this.positive,Z,Z.positive,X),this._mergeBuckets(this.negative,Z,Z.negative,X)}diff(Z){this._min=1/0,this._max=-1/0,this._sum-=Z.sum,this._count-=Z.count,this._zeroCount-=Z.zeroCount;let X=this._minScale(Z);this._downscale(this.scale-X),this._diffBuckets(this.positive,Z,Z.positive,X),this._diffBuckets(this.negative,Z,Z.negative,X)}clone(){return new O7(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(Z,X,z){let q=this._mapping.mapToIndex(X),G=!1,W=0,Q=0;if(Z.length===0)Z.indexStart=q,Z.indexEnd=Z.indexStart,Z.indexBase=Z.indexStart;else if(q<Z.indexStart&&Z.indexEnd-q>=this._maxSize)G=!0,Q=q,W=Z.indexEnd;else if(q>Z.indexEnd&&q-Z.indexStart>=this._maxSize)G=!0,Q=Z.indexStart,W=q;if(G){let J=this._changeScale(W,Q);this._downscale(J),q=this._mapping.mapToIndex(X)}this._incrementIndexBy(Z,q,z)}_incrementIndexBy(Z,X,z){if(z===0)return;if(Z.length===0)Z.indexStart=Z.indexEnd=Z.indexBase=X;if(X<Z.indexStart){let G=Z.indexEnd-X;if(G>=Z.backing.length)this._grow(Z,G+1);Z.indexStart=X}else if(X>Z.indexEnd){let G=X-Z.indexStart;if(G>=Z.backing.length)this._grow(Z,G+1);Z.indexEnd=X}let q=X-Z.indexBase;if(q<0)q+=Z.backing.length;Z.incrementBucket(q,z)}_grow(Z,X){let z=Z.backing.length,q=Z.indexBase-Z.indexStart,G=z-q,W=(0,M80.nextGreaterSquare)(X);if(W>this._maxSize)W=this._maxSize;let Q=W-q;Z.backing.growTo(W,G,Q)}_changeScale(Z,X){let z=0;while(Z-X>=this._maxSize)Z>>=1,X>>=1,z++;return z}_downscale(Z){if(Z===0)return;if(Z<0)throw Error(`impossible change of scale: ${this.scale}`);let X=this._mapping.scale-Z;this._positive.downscale(Z),this._negative.downscale(Z),this._mapping=(0,SR.getMapping)(X)}_minScale(Z){let X=Math.min(this.scale,Z.scale),z=LZ.combine(this._highLowAtScale(this.positive,this.scale,X),this._highLowAtScale(Z.positive,Z.scale,X)),q=LZ.combine(this._highLowAtScale(this.negative,this.scale,X),this._highLowAtScale(Z.negative,Z.scale,X));return Math.min(X-this._changeScale(z.high,z.low),X-this._changeScale(q.high,q.low))}_highLowAtScale(Z,X,z){if(Z.length===0)return new LZ(0,-1);let q=X-z;return new LZ(Z.indexStart>>q,Z.indexEnd>>q)}_mergeBuckets(Z,X,z,q){let G=z.offset,W=X.scale-q;for(let Q=0;Q<z.length;Q++)this._incrementIndexBy(Z,G+Q>>W,z.at(Q))}_diffBuckets(Z,X,z,q){let G=z.offset,W=X.scale-q;for(let Q=0;Q<z.length;Q++){let Y=(G+Q>>W)-Z.indexBase;if(Y<0)Y+=Z.backing.length;Z.decrementBucket(Y,z.at(Q))}Z.trim()}}yR.ExponentialHistogramAccumulation=O7;class _R{kind=w80.AggregatorKind.EXPONENTIAL_HISTOGRAM;_maxSize;_recordMinMax;constructor(Z,X){this._maxSize=Z,this._recordMinMax=X}createAccumulation(Z){return new O7(Z,this._maxSize,this._recordMinMax)}merge(Z,X){let z=X.clone();return z.merge(Z),z}diff(Z,X){let z=X.clone();return z.diff(Z),z}toMetricData(Z,X,z,q){return{descriptor:Z,aggregationTemporality:X,dataPointType:h6.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:z.map(([G,W])=>{let Q=W.toPointValue(),J=Z.type===h6.InstrumentType.GAUGE||Z.type===h6.InstrumentType.UP_DOWN_COUNTER||Z.type===h6.InstrumentType.OBSERVABLE_GAUGE||Z.type===h6.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:G,startTime:W.startTime,endTime:q,value:{min:Q.hasMinMax?Q.min:void 0,max:Q.hasMinMax?Q.max:void 0,sum:!J?Q.sum:void 0,positive:{offset:Q.positive.offset,bucketCounts:Q.positive.bucketCounts},negative:{offset:Q.negative.offset,bucketCounts:Q.negative.bucketCounts},count:Q.count,scale:Q.scale,zeroCount:Q.zeroCount}}})}}}yR.ExponentialHistogramAggregator=_R});var uR=V((bR)=>{Object.defineProperty(bR,"__esModule",{value:!0});bR.LastValueAggregator=bR.LastValueAccumulation=void 0;var f80=DZ(),k6=n(),S80=n0();class f6{startTime;_current;sampleTime;constructor(Z,X=0,z=[0,0]){this.startTime=Z,this._current=X,this.sampleTime=z}record(Z){this._current=Z,this.sampleTime=(0,k6.millisToHrTime)(Date.now())}setStartTime(Z){this.startTime=Z}toPointValue(){return this._current}}bR.LastValueAccumulation=f6;class xR{kind=f80.AggregatorKind.LAST_VALUE;createAccumulation(Z){return new f6(Z)}merge(Z,X){let z=(0,k6.hrTimeToMicroseconds)(X.sampleTime)>=(0,k6.hrTimeToMicroseconds)(Z.sampleTime)?X:Z;return new f6(Z.startTime,z.toPointValue(),z.sampleTime)}diff(Z,X){let z=(0,k6.hrTimeToMicroseconds)(X.sampleTime)>=(0,k6.hrTimeToMicroseconds)(Z.sampleTime)?X:Z;return new f6(X.startTime,z.toPointValue(),z.sampleTime)}toMetricData(Z,X,z,q){return{descriptor:Z,aggregationTemporality:X,dataPointType:S80.DataPointType.GAUGE,dataPoints:z.map(([G,W])=>{return{attributes:G,startTime:W.startTime,endTime:q,value:W.toPointValue()}})}}}bR.LastValueAggregator=xR});var mR=V((cR)=>{Object.defineProperty(cR,"__esModule",{value:!0});cR.SumAggregator=cR.SumAccumulation=void 0;var y80=DZ(),v80=n0();class x1{startTime;monotonic;_current;reset;constructor(Z,X,z=0,q=!1){this.startTime=Z,this.monotonic=X,this._current=z,this.reset=q}record(Z){if(this.monotonic&&Z<0)return;this._current+=Z}setStartTime(Z){this.startTime=Z}toPointValue(){return this._current}}cR.SumAccumulation=x1;class lR{kind=y80.AggregatorKind.SUM;monotonic;constructor(Z){this.monotonic=Z}createAccumulation(Z){return new x1(Z,this.monotonic)}merge(Z,X){let z=Z.toPointValue(),q=X.toPointValue();if(X.reset)return new x1(X.startTime,this.monotonic,q,X.reset);return new x1(Z.startTime,this.monotonic,z+q)}diff(Z,X){let z=Z.toPointValue(),q=X.toPointValue();if(this.monotonic&&z>q)return new x1(X.startTime,this.monotonic,q,!0);return new x1(X.startTime,this.monotonic,q-z)}toMetricData(Z,X,z,q){return{descriptor:Z,aggregationTemporality:X,dataPointType:v80.DataPointType.SUM,dataPoints:z.map(([G,W])=>{return{attributes:G,startTime:W.startTime,endTime:q,value:W.toPointValue()}}),isMonotonic:this.monotonic}}}cR.SumAggregator=lR});var oR=V((T0)=>{Object.defineProperty(T0,"__esModule",{value:!0});T0.SumAggregator=T0.SumAccumulation=T0.LastValueAggregator=T0.LastValueAccumulation=T0.ExponentialHistogramAggregator=T0.ExponentialHistogramAccumulation=T0.HistogramAggregator=T0.HistogramAccumulation=T0.DropAggregator=void 0;var x80=ZR();Object.defineProperty(T0,"DropAggregator",{enumerable:!0,get:function(){return x80.DropAggregator}});var gR=YR();Object.defineProperty(T0,"HistogramAccumulation",{enumerable:!0,get:function(){return gR.HistogramAccumulation}});Object.defineProperty(T0,"HistogramAggregator",{enumerable:!0,get:function(){return gR.HistogramAggregator}});var pR=jR();Object.defineProperty(T0,"ExponentialHistogramAccumulation",{enumerable:!0,get:function(){return pR.ExponentialHistogramAccumulation}});Object.defineProperty(T0,"ExponentialHistogramAggregator",{enumerable:!0,get:function(){return pR.ExponentialHistogramAggregator}});var iR=uR();Object.defineProperty(T0,"LastValueAccumulation",{enumerable:!0,get:function(){return iR.LastValueAccumulation}});Object.defineProperty(T0,"LastValueAggregator",{enumerable:!0,get:function(){return iR.LastValueAggregator}});var aR=mR();Object.defineProperty(T0,"SumAccumulation",{enumerable:!0,get:function(){return aR.SumAccumulation}});Object.defineProperty(T0,"SumAggregator",{enumerable:!0,get:function(){return aR.SumAggregator}})});var Q2=V((tR)=>{Object.defineProperty(tR,"__esModule",{value:!0});tR.DEFAULT_AGGREGATION=tR.EXPONENTIAL_HISTOGRAM_AGGREGATION=tR.HISTOGRAM_AGGREGATION=tR.LAST_VALUE_AGGREGATION=tR.SUM_AGGREGATION=tR.DROP_AGGREGATION=tR.DefaultAggregation=tR.ExponentialHistogramAggregation=tR.ExplicitBucketHistogramAggregation=tR.HistogramAggregation=tR.LastValueAggregation=tR.SumAggregation=tR.DropAggregation=void 0;var d80=I(),b1=oR(),S0=n0();class V7{static DEFAULT_INSTANCE=new b1.DropAggregator;createAggregator(Z){return V7.DEFAULT_INSTANCE}}tR.DropAggregation=V7;class S6{static MONOTONIC_INSTANCE=new b1.SumAggregator(!0);static NON_MONOTONIC_INSTANCE=new b1.SumAggregator(!1);createAggregator(Z){switch(Z.type){case S0.InstrumentType.COUNTER:case S0.InstrumentType.OBSERVABLE_COUNTER:case S0.InstrumentType.HISTOGRAM:return S6.MONOTONIC_INSTANCE;default:return S6.NON_MONOTONIC_INSTANCE}}}tR.SumAggregation=S6;class N7{static DEFAULT_INSTANCE=new b1.LastValueAggregator;createAggregator(Z){return N7.DEFAULT_INSTANCE}}tR.LastValueAggregation=N7;class C7{static DEFAULT_INSTANCE=new b1.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1000,2500,5000,7500,1e4],!0);createAggregator(Z){return C7.DEFAULT_INSTANCE}}tR.HistogramAggregation=C7;class q9{_boundaries;_recordMinMax;constructor(Z,X=!0){if(Z==null)throw Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");Z=Z.concat(),Z=Z.sort((G,W)=>G-W);let z=Z.lastIndexOf(-1/0),q=Z.indexOf(1/0);if(q===-1)q=void 0;this._boundaries=Z.slice(z+1,q),this._recordMinMax=X}createAggregator(Z){return new b1.HistogramAggregator(this._boundaries,this._recordMinMax)}}tR.ExplicitBucketHistogramAggregation=q9;class W9{_maxSize;_recordMinMax;constructor(Z=160,X=!0){this._maxSize=Z,this._recordMinMax=X}createAggregator(Z){return new b1.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}}tR.ExponentialHistogramAggregation=W9;class K9{_resolve(Z){switch(Z.type){case S0.InstrumentType.COUNTER:case S0.InstrumentType.UP_DOWN_COUNTER:case S0.InstrumentType.OBSERVABLE_COUNTER:case S0.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return tR.SUM_AGGREGATION;case S0.InstrumentType.GAUGE:case S0.InstrumentType.OBSERVABLE_GAUGE:return tR.LAST_VALUE_AGGREGATION;case S0.InstrumentType.HISTOGRAM:{if(Z.advice.explicitBucketBoundaries)return new q9(Z.advice.explicitBucketBoundaries);return tR.HISTOGRAM_AGGREGATION}}return d80.diag.warn(`Unable to recognize instrument type: ${Z.type}`),tR.DROP_AGGREGATION}createAggregator(Z){return this._resolve(Z).createAggregator(Z)}}tR.DefaultAggregation=K9;tR.DROP_AGGREGATION=new V7;tR.SUM_AGGREGATION=new S6;tR.LAST_VALUE_AGGREGATION=new N7;tR.HISTOGRAM_AGGREGATION=new C7;tR.EXPONENTIAL_HISTOGRAM_AGGREGATION=new W9;tR.DEFAULT_AGGREGATION=new K9});var _6=V((Y2)=>{Object.defineProperty(Y2,"__esModule",{value:!0});Y2.toAggregation=Y2.AggregationType=void 0;var d1=Q2(),u1;(function(Z){Z[Z.DEFAULT=0]="DEFAULT",Z[Z.DROP=1]="DROP",Z[Z.SUM=2]="SUM",Z[Z.LAST_VALUE=3]="LAST_VALUE",Z[Z.EXPLICIT_BUCKET_HISTOGRAM=4]="EXPLICIT_BUCKET_HISTOGRAM",Z[Z.EXPONENTIAL_HISTOGRAM=5]="EXPONENTIAL_HISTOGRAM"})(u1=Y2.AggregationType||(Y2.AggregationType={}));function a80(Z){switch(Z.type){case u1.DEFAULT:return d1.DEFAULT_AGGREGATION;case u1.DROP:return d1.DROP_AGGREGATION;case u1.SUM:return d1.SUM_AGGREGATION;case u1.LAST_VALUE:return d1.LAST_VALUE_AGGREGATION;case u1.EXPONENTIAL_HISTOGRAM:{let X=Z;return new d1.ExponentialHistogramAggregation(X.options?.maxSize,X.options?.recordMinMax)}case u1.EXPLICIT_BUCKET_HISTOGRAM:{let X=Z;if(X.options==null)return d1.HISTOGRAM_AGGREGATION;else return new d1.ExplicitBucketHistogramAggregation(X.options?.boundaries,X.options?.recordMinMax)}default:throw Error("Unsupported Aggregation")}}Y2.toAggregation=a80});var F9=V((G2)=>{Object.defineProperty(G2,"__esModule",{value:!0});G2.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=G2.DEFAULT_AGGREGATION_SELECTOR=void 0;var o80=K7(),t80=_6(),r80=(Z)=>{return{type:t80.AggregationType.DEFAULT}};G2.DEFAULT_AGGREGATION_SELECTOR=r80;var s80=(Z)=>o80.AggregationTemporality.CUMULATIVE;G2.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=s80});var H9=V((B2)=>{Object.defineProperty(B2,"__esModule",{value:!0});B2.MetricReader=void 0;var W2=I(),K2=f0(),F2=F9();class H2{_shutdown=!1;_metricProducers;_sdkMetricProducer;_aggregationTemporalitySelector;_aggregationSelector;_cardinalitySelector;constructor(Z){this._aggregationSelector=Z?.aggregationSelector??F2.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=Z?.aggregationTemporalitySelector??F2.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=Z?.metricProducers??[],this._cardinalitySelector=Z?.cardinalitySelector}setMetricProducer(Z){if(this._sdkMetricProducer)throw Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=Z,this.onInitialized()}selectAggregation(Z){return this._aggregationSelector(Z)}selectAggregationTemporality(Z){return this._aggregationTemporalitySelector(Z)}selectCardinalityLimit(Z){return this._cardinalitySelector?this._cardinalitySelector(Z):2000}onInitialized(){}async collect(Z){if(this._sdkMetricProducer===void 0)throw Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw Error("MetricReader is shutdown");let[X,...z]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:Z?.timeoutMillis}),...this._metricProducers.map((Q)=>Q.collect({timeoutMillis:Z?.timeoutMillis}))]),q=X.errors.concat(z.flatMap((Q)=>Q.errors)),G=X.resourceMetrics.resource,W=X.resourceMetrics.scopeMetrics.concat(z.flatMap((Q)=>Q.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:G,scopeMetrics:W},errors:q}}async shutdown(Z){if(this._shutdown){W2.diag.error("Cannot call shutdown twice.");return}if(Z?.timeoutMillis==null)await this.onShutdown();else await(0,K2.callWithTimeout)(this.onShutdown(),Z.timeoutMillis);this._shutdown=!0}async forceFlush(Z){if(this._shutdown){W2.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(Z?.timeoutMillis==null){await this.onForceFlush();return}await(0,K2.callWithTimeout)(this.onForceFlush(),Z.timeoutMillis)}}B2.MetricReader=H2});var I2=V((C2)=>{Object.defineProperty(C2,"__esModule",{value:!0});C2.PeriodicExportingMetricReader=void 0;var U7=I(),I7=n(),Z90=H9(),V2=f0(),l1=n0();class N2 extends Z90.MetricReader{_interval;_exporter;_exportInterval;_exportTimeout;constructor(Z){let{exporter:X,exportIntervalMillis:z=60000,metricProducers:q,cardinalityLimits:G}=Z,{exportTimeoutMillis:W=30000}=Z;super({aggregationSelector:X.selectAggregation?.bind(X),aggregationTemporalitySelector:X.selectAggregationTemporality?.bind(X),metricProducers:q,cardinalitySelector:(Q)=>{let J={default:2000,...G};switch(Q){case l1.InstrumentType.COUNTER:return J.counter??J.default;case l1.InstrumentType.GAUGE:return J.gauge??J.default;case l1.InstrumentType.HISTOGRAM:return J.histogram??J.default;case l1.InstrumentType.OBSERVABLE_COUNTER:return J.observableCounter??J.default;case l1.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return J.observableUpDownCounter??J.default;case l1.InstrumentType.OBSERVABLE_GAUGE:return J.observableGauge??J.default;case l1.InstrumentType.UP_DOWN_COUNTER:return J.upDownCounter??J.default;default:return J.default}}});if(z<=0)throw Error("exportIntervalMillis must be greater than 0");if(W<=0)throw Error("exportTimeoutMillis must be greater than 0");if(z<W)if("exportIntervalMillis"in Z&&"exportTimeoutMillis"in Z)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");else U7.diag.info(`Timeout of ${W} exceeds the interval of ${z}. Clamping timeout to interval duration.`),W=z;this._exportInterval=z,this._exportTimeout=W,this._exporter=X}async _runOnce(){try{await(0,V2.callWithTimeout)(this._doRun(),this._exportTimeout)}catch(Z){if(Z instanceof V2.TimeoutError){U7.diag.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout);return}(0,I7.globalErrorHandler)(Z)}}async _doRun(){let{resourceMetrics:Z,errors:X}=await this.collect({timeoutMillis:this._exportTimeout});if(X.length>0)U7.diag.error("PeriodicExportingMetricReader: metrics collection errors",...X);if(Z.resource.asyncAttributesPending)try{await Z.resource.waitForAsyncAttributes?.()}catch(q){U7.diag.debug("Error while resolving async portion of resource: ",q),(0,I7.globalErrorHandler)(q)}if(Z.scopeMetrics.length===0)return;let z=await I7.internal._export(this._exporter,Z);if(z.code!==I7.ExportResultCode.SUCCESS)throw Error(`PeriodicExportingMetricReader: metrics export failed (error ${z.error})`)}onInitialized(){if(this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),typeof this._interval!=="number")this._interval.unref()}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){if(this._interval)clearInterval(this._interval);await this.onForceFlush(),await this._exporter.shutdown()}}C2.PeriodicExportingMetricReader=N2});var T2=V((A2)=>{Object.defineProperty(A2,"__esModule",{value:!0});A2.InMemoryMetricExporter=void 0;var D2=n();class E2{_shutdown=!1;_aggregationTemporality;_metrics=[];constructor(Z){this._aggregationTemporality=Z}export(Z,X){if(this._shutdown){setTimeout(()=>X({code:D2.ExportResultCode.FAILED}),0);return}this._metrics.push(Z),setTimeout(()=>X({code:D2.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(Z){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}}A2.InMemoryMetricExporter=E2});var M2=V((w2)=>{Object.defineProperty(w2,"__esModule",{value:!0});w2.ConsoleMetricExporter=void 0;var $2=n(),J90=F9();class B9{_shutdown=!1;_temporalitySelector;constructor(Z){this._temporalitySelector=Z?.temporalitySelector??J90.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(Z,X){if(this._shutdown){X({code:$2.ExportResultCode.FAILED});return}return B9._sendMetrics(Z,X)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(Z){return this._temporalitySelector(Z)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(Z,X){for(let z of Z.scopeMetrics)for(let q of z.metrics)console.dir({descriptor:q.descriptor,dataPointType:q.dataPointType,dataPoints:q.dataPoints},{depth:null});X({code:$2.ExportResultCode.SUCCESS})}}w2.ConsoleMetricExporter=B9});var f2=V((h2)=>{Object.defineProperty(h2,"__esModule",{value:!0});h2.ViewRegistry=void 0;class R2{_registeredViews=[];addView(Z){this._registeredViews.push(Z)}findViews(Z,X){return this._registeredViews.filter((q)=>{return this._matchInstrument(q.instrumentSelector,Z)&&this._matchMeter(q.meterSelector,X)})}_matchInstrument(Z,X){return(Z.getType()===void 0||X.type===Z.getType())&&Z.getNameFilter().match(X.name)&&Z.getUnitFilter().match(X.unit)}_matchMeter(Z,X){return Z.getNameFilter().match(X.name)&&(X.version===void 0||Z.getVersionFilter().match(X.version))&&(X.schemaUrl===void 0||Z.getSchemaUrlFilter().match(X.schemaUrl))}}h2.ViewRegistry=R2});var y6=V((y2)=>{Object.defineProperty(y2,"__esModule",{value:!0});y2.isValidName=y2.isDescriptorCompatibleWith=y2.createInstrumentDescriptorWithView=y2.createInstrumentDescriptor=void 0;var S2=I(),Q90=f0();function X90(Z,X,z){if(!_2(Z))S2.diag.warn(`Invalid metric name: "${Z}". The metric name should be a ASCII string with a length no greater than 255 characters.`);return{name:Z,type:X,description:z?.description??"",unit:z?.unit??"",valueType:z?.valueType??S2.ValueType.DOUBLE,advice:z?.advice??{}}}y2.createInstrumentDescriptor=X90;function Y90(Z,X){return{name:Z.name??X.name,description:Z.description??X.description,type:X.type,unit:X.unit,valueType:X.valueType,advice:X.advice}}y2.createInstrumentDescriptorWithView=Y90;function z90(Z,X){return(0,Q90.equalsCaseInsensitive)(Z.name,X.name)&&Z.unit===X.unit&&Z.type===X.type&&Z.valueType===X.valueType}y2.isDescriptorCompatibleWith=z90;var G90=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function _2(Z){return G90.test(Z)}y2.isValidName=_2});var D7=V((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});n2.isObservableInstrument=n2.ObservableUpDownCounterInstrument=n2.ObservableGaugeInstrument=n2.ObservableCounterInstrument=n2.ObservableInstrument=n2.HistogramInstrument=n2.GaugeInstrument=n2.CounterInstrument=n2.UpDownCounterInstrument=n2.SyncInstrument=void 0;var TZ=I(),F90=n();class $Z{_writableMetricStorage;_descriptor;constructor(Z,X){this._writableMetricStorage=Z,this._descriptor=X}_record(Z,X={},z=TZ.context.active()){if(typeof Z!=="number"){TZ.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${Z}`);return}if(this._descriptor.valueType===TZ.ValueType.INT&&!Number.isInteger(Z)){if(TZ.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),Z=Math.trunc(Z),!Number.isInteger(Z))return}this._writableMetricStorage.record(Z,X,z,(0,F90.millisToHrTime)(Date.now()))}}n2.SyncInstrument=$Z;class j2 extends $Z{add(Z,X,z){this._record(Z,X,z)}}n2.UpDownCounterInstrument=j2;class x2 extends $Z{add(Z,X,z){if(Z<0){TZ.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${Z}`);return}this._record(Z,X,z)}}n2.CounterInstrument=x2;class b2 extends $Z{record(Z,X,z){this._record(Z,X,z)}}n2.GaugeInstrument=b2;class d2 extends $Z{record(Z,X,z){if(Z<0){TZ.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${Z}`);return}this._record(Z,X,z)}}n2.HistogramInstrument=d2;class wZ{_metricStorages;_descriptor;_observableRegistry;constructor(Z,X,z){this._descriptor=Z,this._metricStorages=X,this._observableRegistry=z}addCallback(Z){this._observableRegistry.addCallback(Z,this)}removeCallback(Z){this._observableRegistry.removeCallback(Z,this)}}n2.ObservableInstrument=wZ;class u2 extends wZ{}n2.ObservableCounterInstrument=u2;class l2 extends wZ{}n2.ObservableGaugeInstrument=l2;class c2 extends wZ{}n2.ObservableUpDownCounterInstrument=c2;function H90(Z){return Z instanceof wZ}n2.isObservableInstrument=H90});var a2=V((p2)=>{Object.defineProperty(p2,"__esModule",{value:!0});p2.Meter=void 0;var c1=y6(),n1=D7(),m1=n0();class g2{_meterSharedState;constructor(Z){this._meterSharedState=Z}createGauge(Z,X){let z=(0,c1.createInstrumentDescriptor)(Z,m1.InstrumentType.GAUGE,X),q=this._meterSharedState.registerMetricStorage(z);return new n1.GaugeInstrument(q,z)}createHistogram(Z,X){let z=(0,c1.createInstrumentDescriptor)(Z,m1.InstrumentType.HISTOGRAM,X),q=this._meterSharedState.registerMetricStorage(z);return new n1.HistogramInstrument(q,z)}createCounter(Z,X){let z=(0,c1.createInstrumentDescriptor)(Z,m1.InstrumentType.COUNTER,X),q=this._meterSharedState.registerMetricStorage(z);return new n1.CounterInstrument(q,z)}createUpDownCounter(Z,X){let z=(0,c1.createInstrumentDescriptor)(Z,m1.InstrumentType.UP_DOWN_COUNTER,X),q=this._meterSharedState.registerMetricStorage(z);return new n1.UpDownCounterInstrument(q,z)}createObservableGauge(Z,X){let z=(0,c1.createInstrumentDescriptor)(Z,m1.InstrumentType.OBSERVABLE_GAUGE,X),q=this._meterSharedState.registerAsyncMetricStorage(z);return new n1.ObservableGaugeInstrument(z,q,this._meterSharedState.observableRegistry)}createObservableCounter(Z,X){let z=(0,c1.createInstrumentDescriptor)(Z,m1.InstrumentType.OBSERVABLE_COUNTER,X),q=this._meterSharedState.registerAsyncMetricStorage(z);return new n1.ObservableCounterInstrument(z,q,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(Z,X){let z=(0,c1.createInstrumentDescriptor)(Z,m1.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,X),q=this._meterSharedState.registerAsyncMetricStorage(z);return new n1.ObservableUpDownCounterInstrument(z,q,this._meterSharedState.observableRegistry)}addBatchObservableCallback(Z,X){this._meterSharedState.observableRegistry.addBatchCallback(Z,X)}removeBatchObservableCallback(Z,X){this._meterSharedState.observableRegistry.removeBatchCallback(Z,X)}}p2.Meter=g2});var O9=V((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});t2.MetricStorage=void 0;var A90=y6();class o2{_instrumentDescriptor;constructor(Z){this._instrumentDescriptor=Z}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(Z){this._instrumentDescriptor=(0,A90.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:Z,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}}t2.MetricStorage=o2});var v6=V((e2)=>{Object.defineProperty(e2,"__esModule",{value:!0});e2.AttributeHashMap=e2.HashMap=void 0;var L90=f0();class V9{_valueMap=new Map;_keyMap=new Map;_hash;constructor(Z){this._hash=Z}get(Z,X){return X??=this._hash(Z),this._valueMap.get(X)}getOrDefault(Z,X){let z=this._hash(Z);if(this._valueMap.has(z))return this._valueMap.get(z);let q=X();if(!this._keyMap.has(z))this._keyMap.set(z,Z);return this._valueMap.set(z,q),q}set(Z,X,z){if(z??=this._hash(Z),!this._keyMap.has(z))this._keyMap.set(z,Z);this._valueMap.set(z,X)}has(Z,X){return X??=this._hash(Z),this._valueMap.has(X)}*keys(){let Z=this._keyMap.entries(),X=Z.next();while(X.done!==!0)yield[X.value[1],X.value[0]],X=Z.next()}*entries(){let Z=this._valueMap.entries(),X=Z.next();while(X.done!==!0)yield[this._keyMap.get(X.value[0]),X.value[1],X.value[0]],X=Z.next()}get size(){return this._valueMap.size}}e2.HashMap=V9;class s2 extends V9{constructor(){super(L90.hashAttributes)}}e2.AttributeHashMap=s2});var C9=V((Qh)=>{Object.defineProperty(Qh,"__esModule",{value:!0});Qh.DeltaMetricProcessor=void 0;var $90=f0(),N9=v6();class Jh{_activeCollectionStorage=new N9.AttributeHashMap;_cumulativeMemoStorage=new N9.AttributeHashMap;_cardinalityLimit;_overflowAttributes={"otel.metric.overflow":!0};_overflowHashCode;_aggregator;constructor(Z,X){this._aggregator=Z,this._cardinalityLimit=(X??2000)-1,this._overflowHashCode=(0,$90.hashAttributes)(this._overflowAttributes)}record(Z,X,z,q){let G=this._activeCollectionStorage.get(X);if(!G){if(this._activeCollectionStorage.size>=this._cardinalityLimit){this._activeCollectionStorage.getOrDefault(this._overflowAttributes,()=>this._aggregator.createAccumulation(q))?.record(Z);return}G=this._aggregator.createAccumulation(q),this._activeCollectionStorage.set(X,G)}G?.record(Z)}batchCumulate(Z,X){Array.from(Z.entries()).forEach(([z,q,G])=>{let W=this._aggregator.createAccumulation(X);W?.record(q);let Q=W;if(this._cumulativeMemoStorage.has(z,G)){let J=this._cumulativeMemoStorage.get(z,G);Q=this._aggregator.diff(J,W)}else if(this._cumulativeMemoStorage.size>=this._cardinalityLimit){if(z=this._overflowAttributes,G=this._overflowHashCode,this._cumulativeMemoStorage.has(z,G)){let J=this._cumulativeMemoStorage.get(z,G);Q=this._aggregator.diff(J,W)}}if(this._activeCollectionStorage.has(z,G)){let J=this._activeCollectionStorage.get(z,G);Q=this._aggregator.merge(J,Q)}this._cumulativeMemoStorage.set(z,W,G),this._activeCollectionStorage.set(z,Q,G)})}collect(){let Z=this._activeCollectionStorage;return this._activeCollectionStorage=new N9.AttributeHashMap,Z}}Qh.DeltaMetricProcessor=Jh});var U9=V((Yh)=>{Object.defineProperty(Yh,"__esModule",{value:!0});Yh.TemporalMetricProcessor=void 0;var w90=K7(),P90=v6();class j6{_aggregator;_unreportedAccumulations=new Map;_reportHistory=new Map;constructor(Z,X){this._aggregator=Z,X.forEach((z)=>{this._unreportedAccumulations.set(z,[])})}buildMetrics(Z,X,z,q){this._stashAccumulations(z);let G=this._getMergedUnreportedAccumulations(Z),W=G,Q;if(this._reportHistory.has(Z)){let Y=this._reportHistory.get(Z),K=Y.collectionTime;if(Q=Y.aggregationTemporality,Q===w90.AggregationTemporality.CUMULATIVE)W=j6.merge(Y.accumulations,G,this._aggregator);else W=j6.calibrateStartTime(Y.accumulations,G,K)}else Q=Z.selectAggregationTemporality(X.type);this._reportHistory.set(Z,{accumulations:W,collectionTime:q,aggregationTemporality:Q});let J=M90(W);if(J.length===0)return;return this._aggregator.toMetricData(X,Q,J,q)}_stashAccumulations(Z){let X=this._unreportedAccumulations.keys();for(let z of X){let q=this._unreportedAccumulations.get(z);if(q===void 0)q=[],this._unreportedAccumulations.set(z,q);q.push(Z)}}_getMergedUnreportedAccumulations(Z){let X=new P90.AttributeHashMap,z=this._unreportedAccumulations.get(Z);if(this._unreportedAccumulations.set(Z,[]),z===void 0)return X;for(let q of z)X=j6.merge(X,q,this._aggregator);return X}static merge(Z,X,z){let q=Z,G=X.entries(),W=G.next();while(W.done!==!0){let[Q,J,Y]=W.value;if(Z.has(Q,Y)){let K=Z.get(Q,Y),F=z.merge(K,J);q.set(Q,F,Y)}else q.set(Q,J,Y);W=G.next()}return q}static calibrateStartTime(Z,X,z){for(let[q,G]of Z.keys())X.get(q,G)?.setStartTime(z);return X}}Yh.TemporalMetricProcessor=j6;function M90(Z){return Array.from(Z.entries())}});var Kh=V((qh)=>{Object.defineProperty(qh,"__esModule",{value:!0});qh.AsyncMetricStorage=void 0;var R90=O9(),h90=C9(),k90=U9(),f90=v6();class Gh extends R90.MetricStorage{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(Z,X,z,q,G){super(Z);this._aggregationCardinalityLimit=G,this._deltaMetricStorage=new h90.DeltaMetricProcessor(X,this._aggregationCardinalityLimit),this._temporalMetricStorage=new k90.TemporalMetricProcessor(X,q),this._attributesProcessor=z}record(Z,X){let z=new f90.AttributeHashMap;Array.from(Z.entries()).forEach(([q,G])=>{z.set(this._attributesProcessor.process(q),G)}),this._deltaMetricStorage.batchCumulate(z,X)}collect(Z,X){let z=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(Z,this._instrumentDescriptor,z,X)}}qh.AsyncMetricStorage=Gh});var Ch=V((Vh)=>{Object.defineProperty(Vh,"__esModule",{value:!0});Vh.getConflictResolutionRecipe=Vh.getDescriptionResolutionRecipe=Vh.getTypeConflictResolutionRecipe=Vh.getUnitConflictResolutionRecipe=Vh.getValueTypeConflictResolutionRecipe=Vh.getIncompatibilityDetails=void 0;function S90(Z,X){let z="";if(Z.unit!==X.unit)z+=` - Unit '${Z.unit}' does not match '${X.unit}'
|
|
16
|
+
`;if(Z.type!==X.type)z+=` - Type '${Z.type}' does not match '${X.type}'
|
|
17
|
+
`;if(Z.valueType!==X.valueType)z+=` - Value Type '${Z.valueType}' does not match '${X.valueType}'
|
|
18
|
+
`;if(Z.description!==X.description)z+=` - Description '${Z.description}' does not match '${X.description}'
|
|
19
|
+
`;return z}Vh.getIncompatibilityDetails=S90;function Fh(Z,X){return` - use valueType '${Z.valueType}' on instrument creation or use an instrument name other than '${X.name}'`}Vh.getValueTypeConflictResolutionRecipe=Fh;function Hh(Z,X){return` - use unit '${Z.unit}' on instrument creation or use an instrument name other than '${X.name}'`}Vh.getUnitConflictResolutionRecipe=Hh;function Bh(Z,X){let z={name:X.name,type:X.type,unit:X.unit},q=JSON.stringify(z);return` - create a new view with a name other than '${Z.name}' and InstrumentSelector '${q}'`}Vh.getTypeConflictResolutionRecipe=Bh;function Oh(Z,X){let z={name:X.name,type:X.type,unit:X.unit},q=JSON.stringify(z);return` - create a new view with a name other than '${Z.name}' and InstrumentSelector '${q}'
|
|
20
|
+
- OR - create a new view with the name ${Z.name} and description '${Z.description}' and InstrumentSelector ${q}
|
|
21
|
+
- OR - create a new view with the name ${X.name} and description '${Z.description}' and InstrumentSelector ${q}`}Vh.getDescriptionResolutionRecipe=Oh;function _90(Z,X){if(Z.valueType!==X.valueType)return Fh(Z,X);if(Z.unit!==X.unit)return Hh(Z,X);if(Z.type!==X.type)return Bh(Z,X);if(Z.description!==X.description)return Oh(Z,X);return""}Vh.getConflictResolutionRecipe=_90});var Eh=V((Ih)=>{Object.defineProperty(Ih,"__esModule",{value:!0});Ih.MetricStorageRegistry=void 0;var d90=y6(),Uh=I(),E7=Ch();class I9{_sharedRegistry=new Map;_perCollectorRegistry=new Map;static create(){return new I9}getStorages(Z){let X=[];for(let q of this._sharedRegistry.values())X=X.concat(q);let z=this._perCollectorRegistry.get(Z);if(z!=null)for(let q of z.values())X=X.concat(q);return X}register(Z){this._registerStorage(Z,this._sharedRegistry)}registerForCollector(Z,X){let z=this._perCollectorRegistry.get(Z);if(z==null)z=new Map,this._perCollectorRegistry.set(Z,z);this._registerStorage(X,z)}findOrUpdateCompatibleStorage(Z){let X=this._sharedRegistry.get(Z.name);if(X===void 0)return null;return this._findOrUpdateCompatibleStorage(Z,X)}findOrUpdateCompatibleCollectorStorage(Z,X){let z=this._perCollectorRegistry.get(Z);if(z===void 0)return null;let q=z.get(X.name);if(q===void 0)return null;return this._findOrUpdateCompatibleStorage(X,q)}_registerStorage(Z,X){let z=Z.getInstrumentDescriptor(),q=X.get(z.name);if(q===void 0){X.set(z.name,[Z]);return}q.push(Z)}_findOrUpdateCompatibleStorage(Z,X){let z=null;for(let q of X){let G=q.getInstrumentDescriptor();if((0,d90.isDescriptorCompatibleWith)(G,Z)){if(G.description!==Z.description){if(Z.description.length>G.description.length)q.updateDescription(Z.description);Uh.diag.warn("A view or instrument with the name ",Z.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
|
22
|
+
`,`Details:
|
|
23
|
+
`,(0,E7.getIncompatibilityDetails)(G,Z),`The longer description will be used.
|
|
24
|
+
To resolve the conflict:`,(0,E7.getConflictResolutionRecipe)(G,Z))}z=q}else Uh.diag.warn("A view or instrument with the name ",Z.name,` has already been registered and is incompatible with another registered view.
|
|
25
|
+
`,`Details:
|
|
26
|
+
`,(0,E7.getIncompatibilityDetails)(G,Z),`To resolve the conflict:
|
|
27
|
+
`,(0,E7.getConflictResolutionRecipe)(G,Z))}return z}}Ih.MetricStorageRegistry=I9});var $h=V((Lh)=>{Object.defineProperty(Lh,"__esModule",{value:!0});Lh.MultiMetricStorage=void 0;class Ah{_backingStorages;constructor(Z){this._backingStorages=Z}record(Z,X,z,q){this._backingStorages.forEach((G)=>{G.record(Z,X,z,q)})}}Lh.MultiMetricStorage=Ah});var kh=V((Rh)=>{Object.defineProperty(Rh,"__esModule",{value:!0});Rh.BatchObservableResultImpl=Rh.ObservableResultImpl=void 0;var PZ=I(),wh=v6(),u90=D7();class Ph{_buffer=new wh.AttributeHashMap;_instrumentName;_valueType;constructor(Z,X){this._instrumentName=Z,this._valueType=X}observe(Z,X={}){if(typeof Z!=="number"){PZ.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${Z}`);return}if(this._valueType===PZ.ValueType.INT&&!Number.isInteger(Z)){if(PZ.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),Z=Math.trunc(Z),!Number.isInteger(Z))return}this._buffer.set(X,Z)}}Rh.ObservableResultImpl=Ph;class Mh{_buffer=new Map;observe(Z,X,z={}){if(!(0,u90.isObservableInstrument)(Z))return;let q=this._buffer.get(Z);if(q==null)q=new wh.AttributeHashMap,this._buffer.set(Z,q);if(typeof X!=="number"){PZ.diag.warn(`non-number value provided to metric ${Z._descriptor.name}: ${X}`);return}if(Z._descriptor.valueType===PZ.ValueType.INT&&!Number.isInteger(X)){if(PZ.diag.warn(`INT value type cannot accept a floating-point value for ${Z._descriptor.name}, ignoring the fractional digits.`),X=Math.trunc(X),!Number.isInteger(X))return}q.set(z,X)}}Rh.BatchObservableResultImpl=Mh});var jh=V((yh)=>{Object.defineProperty(yh,"__esModule",{value:!0});yh.ObservableRegistry=void 0;var c90=I(),fh=D7(),Sh=kh(),D9=f0();class _h{_callbacks=[];_batchCallbacks=[];addCallback(Z,X){if(this._findCallback(Z,X)>=0)return;this._callbacks.push({callback:Z,instrument:X})}removeCallback(Z,X){let z=this._findCallback(Z,X);if(z<0)return;this._callbacks.splice(z,1)}addBatchCallback(Z,X){let z=new Set(X.filter(fh.isObservableInstrument));if(z.size===0){c90.diag.error("BatchObservableCallback is not associated with valid instruments",X);return}if(this._findBatchCallback(Z,z)>=0)return;this._batchCallbacks.push({callback:Z,instruments:z})}removeBatchCallback(Z,X){let z=new Set(X.filter(fh.isObservableInstrument)),q=this._findBatchCallback(Z,z);if(q<0)return;this._batchCallbacks.splice(q,1)}async observe(Z,X){let z=this._observeCallbacks(Z,X),q=this._observeBatchCallbacks(Z,X);return(await Promise.allSettled([...z,...q])).filter((Q)=>Q.status==="rejected").map((Q)=>Q.reason)}_observeCallbacks(Z,X){return this._callbacks.map(async({callback:z,instrument:q})=>{let G=new Sh.ObservableResultImpl(q._descriptor.name,q._descriptor.valueType),W=Promise.resolve(z(G));if(X!=null)W=(0,D9.callWithTimeout)(W,X);await W,q._metricStorages.forEach((Q)=>{Q.record(G._buffer,Z)})})}_observeBatchCallbacks(Z,X){return this._batchCallbacks.map(async({callback:z,instruments:q})=>{let G=new Sh.BatchObservableResultImpl,W=Promise.resolve(z(G));if(X!=null)W=(0,D9.callWithTimeout)(W,X);await W,q.forEach((Q)=>{let J=G._buffer.get(Q);if(J==null)return;Q._metricStorages.forEach((Y)=>{Y.record(J,Z)})})})}_findCallback(Z,X){return this._callbacks.findIndex((z)=>{return z.callback===Z&&z.instrument===X})}_findBatchCallback(Z,X){return this._batchCallbacks.findIndex((z)=>{return z.callback===Z&&(0,D9.setEquals)(z.instruments,X)})}}yh.ObservableRegistry=_h});var uh=V((bh)=>{Object.defineProperty(bh,"__esModule",{value:!0});bh.SyncMetricStorage=void 0;var n90=O9(),m90=C9(),g90=U9();class xh extends n90.MetricStorage{_aggregationCardinalityLimit;_deltaMetricStorage;_temporalMetricStorage;_attributesProcessor;constructor(Z,X,z,q,G){super(Z);this._aggregationCardinalityLimit=G,this._deltaMetricStorage=new m90.DeltaMetricProcessor(X,this._aggregationCardinalityLimit),this._temporalMetricStorage=new g90.TemporalMetricProcessor(X,q),this._attributesProcessor=z}record(Z,X,z,q){X=this._attributesProcessor.process(X,z),this._deltaMetricStorage.record(Z,X,z,q)}collect(Z,X){let z=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(Z,this._instrumentDescriptor,z,X)}}bh.SyncMetricStorage=xh});var A7=V((gh)=>{Object.defineProperty(gh,"__esModule",{value:!0});gh.createDenyListAttributesProcessor=gh.createAllowListAttributesProcessor=gh.createMultiAttributesProcessor=gh.createNoopAttributesProcessor=void 0;class lh{process(Z,X){return Z}}class ch{_processors;constructor(Z){this._processors=Z}process(Z,X){let z=Z;for(let q of this._processors)z=q.process(z,X);return z}}class nh{_allowedAttributeNames;constructor(Z){this._allowedAttributeNames=Z}process(Z,X){let z={};return Object.keys(Z).forEach((q)=>{if(this._allowedAttributeNames.includes(q))z[q]=Z[q]}),z}}class mh{_deniedAttributeNames;constructor(Z){this._deniedAttributeNames=Z}process(Z,X){let z={};return Object.keys(Z).forEach((q)=>{if(!this._deniedAttributeNames.includes(q))z[q]=Z[q]}),z}}function p90(){return t90}gh.createNoopAttributesProcessor=p90;function i90(Z){return new ch(Z)}gh.createMultiAttributesProcessor=i90;function a90(Z){return new nh(Z)}gh.createAllowListAttributesProcessor=a90;function o90(Z){return new mh(Z)}gh.createDenyListAttributesProcessor=o90;var t90=new lh});var th=V((ah)=>{Object.defineProperty(ah,"__esModule",{value:!0});ah.MeterSharedState=void 0;var Z50=y6(),J50=a2(),Q50=Kh(),X50=Eh(),Y50=$h(),z50=jh(),G50=uh(),q50=A7();class ih{metricStorageRegistry=new X50.MetricStorageRegistry;observableRegistry=new z50.ObservableRegistry;meter;_meterProviderSharedState;_instrumentationScope;constructor(Z,X){this.meter=new J50.Meter(this),this._meterProviderSharedState=Z,this._instrumentationScope=X}registerMetricStorage(Z){let X=this._registerMetricStorage(Z,G50.SyncMetricStorage);if(X.length===1)return X[0];return new Y50.MultiMetricStorage(X)}registerAsyncMetricStorage(Z){return this._registerMetricStorage(Z,Q50.AsyncMetricStorage)}async collect(Z,X,z){let q=await this.observableRegistry.observe(X,z?.timeoutMillis),G=this.metricStorageRegistry.getStorages(Z);if(G.length===0)return null;let W=[];if(G.forEach((Q)=>{let J=Q.collect(Z,X);if(J!=null)W.push(J)}),W.length===0)return{errors:q};return{scopeMetrics:{scope:this._instrumentationScope,metrics:W},errors:q}}_registerMetricStorage(Z,X){let q=this._meterProviderSharedState.viewRegistry.findViews(Z,this._instrumentationScope).map((G)=>{let W=(0,Z50.createInstrumentDescriptorWithView)(G,Z),Q=this.metricStorageRegistry.findOrUpdateCompatibleStorage(W);if(Q!=null)return Q;let J=G.aggregation.createAggregator(W),Y=new X(W,J,G.attributesProcessor,this._meterProviderSharedState.metricCollectors,G.aggregationCardinalityLimit);return this.metricStorageRegistry.register(Y),Y});if(q.length===0){let W=this._meterProviderSharedState.selectAggregations(Z.type).map(([Q,J])=>{let Y=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(Q,Z);if(Y!=null)return Y;let K=J.createAggregator(Z),F=Q.selectCardinalityLimit(Z.type),H=new X(Z,K,(0,q50.createNoopAttributesProcessor)(),[Q],F);return this.metricStorageRegistry.registerForCollector(Q,H),H});q=q.concat(W)}return q}}ah.MeterSharedState=ih});var Zk=V((sh)=>{Object.defineProperty(sh,"__esModule",{value:!0});sh.MeterProviderSharedState=void 0;var W50=f0(),K50=f2(),F50=th(),H50=_6();class rh{viewRegistry=new K50.ViewRegistry;metricCollectors=[];meterSharedStates=new Map;resource;constructor(Z){this.resource=Z}getMeterSharedState(Z){let X=(0,W50.instrumentationScopeId)(Z),z=this.meterSharedStates.get(X);if(z==null)z=new F50.MeterSharedState(this,Z),this.meterSharedStates.set(X,z);return z}selectAggregations(Z){let X=[];for(let z of this.metricCollectors)X.push([z,(0,H50.toAggregation)(z.selectAggregation(Z))]);return X}}sh.MeterProviderSharedState=rh});var Yk=V((Qk)=>{Object.defineProperty(Qk,"__esModule",{value:!0});Qk.MetricCollector=void 0;var B50=n();class Jk{_sharedState;_metricReader;constructor(Z,X){this._sharedState=Z,this._metricReader=X}async collect(Z){let X=(0,B50.millisToHrTime)(Date.now()),z=[],q=[],G=Array.from(this._sharedState.meterSharedStates.values()).map(async(W)=>{let Q=await W.collect(this,X,Z);if(Q?.scopeMetrics!=null)z.push(Q.scopeMetrics);if(Q?.errors!=null)q.push(...Q.errors)});return await Promise.all(G),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:z},errors:q}}async forceFlush(Z){await this._metricReader.forceFlush(Z)}async shutdown(Z){await this._metricReader.shutdown(Z)}selectAggregationTemporality(Z){return this._metricReader.selectAggregationTemporality(Z)}selectAggregation(Z){return this._metricReader.selectAggregation(Z)}selectCardinalityLimit(Z){return this._metricReader.selectCardinalityLimit?.(Z)??2000}}Qk.MetricCollector=Jk});var L7=V((Gk)=>{Object.defineProperty(Gk,"__esModule",{value:!0});Gk.ExactPredicate=Gk.PatternPredicate=void 0;var O50=/[\^$\\.+?()[\]{}|]/g;class E9{_matchAll;_regexp;constructor(Z){if(Z==="*")this._matchAll=!0,this._regexp=/.*/;else this._matchAll=!1,this._regexp=new RegExp(E9.escapePattern(Z))}match(Z){if(this._matchAll)return!0;return this._regexp.test(Z)}static escapePattern(Z){return`^${Z.replace(O50,"\\$&").replace("*",".*")}$`}static hasWildcard(Z){return Z.includes("*")}}Gk.PatternPredicate=E9;class zk{_matchAll;_pattern;constructor(Z){this._matchAll=Z===void 0,this._pattern=Z}match(Z){if(this._matchAll)return!0;if(Z===this._pattern)return!0;return!1}}Gk.ExactPredicate=zk});var Bk=V((Fk)=>{Object.defineProperty(Fk,"__esModule",{value:!0});Fk.InstrumentSelector=void 0;var Wk=L7();class Kk{_nameFilter;_type;_unitFilter;constructor(Z){this._nameFilter=new Wk.PatternPredicate(Z?.name??"*"),this._type=Z?.type,this._unitFilter=new Wk.ExactPredicate(Z?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}}Fk.InstrumentSelector=Kk});var Ck=V((Vk)=>{Object.defineProperty(Vk,"__esModule",{value:!0});Vk.MeterSelector=void 0;var A9=L7();class Ok{_nameFilter;_versionFilter;_schemaUrlFilter;constructor(Z){this._nameFilter=new A9.ExactPredicate(Z?.name),this._versionFilter=new A9.ExactPredicate(Z?.version),this._schemaUrlFilter=new A9.ExactPredicate(Z?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}}Vk.MeterSelector=Ok});var Lk=V((Ek)=>{Object.defineProperty(Ek,"__esModule",{value:!0});Ek.View=void 0;var N50=L7(),Uk=A7(),C50=Bk(),U50=Ck(),Ik=_6();function I50(Z){return Z.instrumentName==null&&Z.instrumentType==null&&Z.instrumentUnit==null&&Z.meterName==null&&Z.meterVersion==null&&Z.meterSchemaUrl==null}function D50(Z){if(I50(Z))throw Error("Cannot create view with no selector arguments supplied");if(Z.name!=null&&(Z?.instrumentName==null||N50.PatternPredicate.hasWildcard(Z.instrumentName)))throw Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.")}class Dk{name;description;aggregation;attributesProcessor;instrumentSelector;meterSelector;aggregationCardinalityLimit;constructor(Z){if(D50(Z),Z.attributesProcessors!=null)this.attributesProcessor=(0,Uk.createMultiAttributesProcessor)(Z.attributesProcessors);else this.attributesProcessor=(0,Uk.createNoopAttributesProcessor)();this.name=Z.name,this.description=Z.description,this.aggregation=(0,Ik.toAggregation)(Z.aggregation??{type:Ik.AggregationType.DEFAULT}),this.instrumentSelector=new C50.InstrumentSelector({name:Z.instrumentName,type:Z.instrumentType,unit:Z.instrumentUnit}),this.meterSelector=new U50.MeterSelector({name:Z.meterName,version:Z.meterVersion,schemaUrl:Z.meterSchemaUrl}),this.aggregationCardinalityLimit=Z.aggregationCardinalityLimit}}Ek.View=Dk});var Pk=V(($k)=>{Object.defineProperty($k,"__esModule",{value:!0});$k.MeterProvider=void 0;var T7=I(),E50=G7(),A50=Zk(),L50=Yk(),T50=Lk();class Tk{_sharedState;_shutdown=!1;constructor(Z){if(this._sharedState=new A50.MeterProviderSharedState(Z?.resource??(0,E50.defaultResource)()),Z?.views!=null&&Z.views.length>0)for(let X of Z.views)this._sharedState.viewRegistry.addView(new T50.View(X));if(Z?.readers!=null&&Z.readers.length>0)for(let X of Z.readers){let z=new L50.MetricCollector(this._sharedState,X);X.setMetricProducer(z),this._sharedState.metricCollectors.push(z)}}getMeter(Z,X="",z={}){if(this._shutdown)return T7.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,T7.createNoopMeter)();return this._sharedState.getMeterSharedState({name:Z,version:X,schemaUrl:z.schemaUrl}).meter}async shutdown(Z){if(this._shutdown){T7.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map((X)=>{return X.shutdown(Z)}))}async forceFlush(Z){if(this._shutdown){T7.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map((X)=>{return X.forceFlush(Z)}))}}$k.MeterProvider=Tk});var hk=V((z0)=>{Object.defineProperty(z0,"__esModule",{value:!0});z0.TimeoutError=z0.createDenyListAttributesProcessor=z0.createAllowListAttributesProcessor=z0.AggregationType=z0.MeterProvider=z0.ConsoleMetricExporter=z0.InMemoryMetricExporter=z0.PeriodicExportingMetricReader=z0.MetricReader=z0.InstrumentType=z0.DataPointType=z0.AggregationTemporality=void 0;var $50=K7();Object.defineProperty(z0,"AggregationTemporality",{enumerable:!0,get:function(){return $50.AggregationTemporality}});var Mk=n0();Object.defineProperty(z0,"DataPointType",{enumerable:!0,get:function(){return Mk.DataPointType}});Object.defineProperty(z0,"InstrumentType",{enumerable:!0,get:function(){return Mk.InstrumentType}});var w50=H9();Object.defineProperty(z0,"MetricReader",{enumerable:!0,get:function(){return w50.MetricReader}});var P50=I2();Object.defineProperty(z0,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return P50.PeriodicExportingMetricReader}});var M50=T2();Object.defineProperty(z0,"InMemoryMetricExporter",{enumerable:!0,get:function(){return M50.InMemoryMetricExporter}});var R50=M2();Object.defineProperty(z0,"ConsoleMetricExporter",{enumerable:!0,get:function(){return R50.ConsoleMetricExporter}});var h50=Pk();Object.defineProperty(z0,"MeterProvider",{enumerable:!0,get:function(){return h50.MeterProvider}});var k50=_6();Object.defineProperty(z0,"AggregationType",{enumerable:!0,get:function(){return k50.AggregationType}});var Rk=A7();Object.defineProperty(z0,"createAllowListAttributesProcessor",{enumerable:!0,get:function(){return Rk.createAllowListAttributesProcessor}});Object.defineProperty(z0,"createDenyListAttributesProcessor",{enumerable:!0,get:function(){return Rk.createDenyListAttributesProcessor}});var f50=f0();Object.defineProperty(z0,"TimeoutError",{enumerable:!0,get:function(){return f50.TimeoutError}})});var Sk=V((kk)=>{Object.defineProperty(kk,"__esModule",{value:!0});kk.ExceptionEventName=void 0;kk.ExceptionEventName="exception"});var jk=V((yk)=>{Object.defineProperty(yk,"__esModule",{value:!0});yk.SpanImpl=void 0;var t=I(),r=n(),g1=w0(),_50=Sk();class _k{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:t.SpanStatusCode.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(Z){let X=Date.now();if(this._spanContext=Z.spanContext,this._performanceStartTime=r.otperformance.now(),this._performanceOffset=X-(this._performanceStartTime+r.otperformance.timeOrigin),this._startTimeProvided=Z.startTime!=null,this._spanLimits=Z.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=Z.spanProcessor,this.name=Z.name,this.parentSpanContext=Z.parentSpanContext,this.kind=Z.kind,Z.links)for(let z of Z.links)this.addLink(z);if(this.startTime=this._getTime(Z.startTime??X),this.resource=Z.resource,this.instrumentationScope=Z.scope,this._recordEndMetrics=Z.recordEndMetrics,Z.attributes!=null)this.setAttributes(Z.attributes);this._spanProcessor.onStart(this,Z.context)}spanContext(){return this._spanContext}setAttribute(Z,X){if(X==null||this._isSpanEnded())return this;if(Z.length===0)return t.diag.warn(`Invalid attribute key: ${Z}`),this;if(!(0,r.isAttributeValue)(X))return t.diag.warn(`Invalid attribute value set for key: ${Z}`),this;let{attributeCountLimit:z}=this._spanLimits,q=!Object.prototype.hasOwnProperty.call(this.attributes,Z);if(z!==void 0&&this._attributesCount>=z&&q)return this._droppedAttributesCount++,this;if(this.attributes[Z]=this._truncateToSize(X),q)this._attributesCount++;return this}setAttributes(Z){for(let X in Z)if(Object.prototype.hasOwnProperty.call(Z,X))this.setAttribute(X,Z[X]);return this}addEvent(Z,X,z){if(this._isSpanEnded())return this;let{eventCountLimit:q}=this._spanLimits;if(q===0)return t.diag.warn("No events allowed."),this._droppedEventsCount++,this;if(q!==void 0&&this.events.length>=q){if(this._droppedEventsCount===0)t.diag.debug("Dropping extra events.");this.events.shift(),this._droppedEventsCount++}if((0,r.isTimeInput)(X)){if(!(0,r.isTimeInput)(z))z=X;X=void 0}let G=(0,r.sanitizeAttributes)(X),{attributePerEventCountLimit:W}=this._spanLimits,Q={},J=0,Y=0;for(let K in G){if(!Object.prototype.hasOwnProperty.call(G,K))continue;let F=G[K];if(W!==void 0&&Y>=W){J++;continue}Q[K]=this._truncateToSize(F),Y++}return this.events.push({name:Z,attributes:Q,time:this._getTime(z),droppedAttributesCount:J}),this}addLink(Z){if(this._isSpanEnded())return this;let{linkCountLimit:X}=this._spanLimits;if(X===0)return this._droppedLinksCount++,this;if(X!==void 0&&this.links.length>=X){if(this._droppedLinksCount===0)t.diag.debug("Dropping extra links.");this.links.shift(),this._droppedLinksCount++}let{attributePerLinkCountLimit:z}=this._spanLimits,q=(0,r.sanitizeAttributes)(Z.attributes),G={},W=0,Q=0;for(let Y in q){if(!Object.prototype.hasOwnProperty.call(q,Y))continue;let K=q[Y];if(z!==void 0&&Q>=z){W++;continue}G[Y]=this._truncateToSize(K),Q++}let J={context:Z.context};if(Q>0)J.attributes=G;if(W>0)J.droppedAttributesCount=W;return this.links.push(J),this}addLinks(Z){for(let X of Z)this.addLink(X);return this}setStatus(Z){if(this._isSpanEnded())return this;if(Z.code===t.SpanStatusCode.UNSET)return this;if(this.status.code===t.SpanStatusCode.OK)return this;let X={code:Z.code};if(Z.code===t.SpanStatusCode.ERROR){if(typeof Z.message==="string")X.message=Z.message;else if(Z.message!=null)t.diag.warn(`Dropping invalid status.message of type '${typeof Z.message}', expected 'string'`)}return this.status=X,this}updateName(Z){if(this._isSpanEnded())return this;return this.name=Z,this}end(Z){if(this._isSpanEnded()){t.diag.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}if(this.endTime=this._getTime(Z),this._duration=(0,r.hrTimeDuration)(this.startTime,this.endTime),this._duration[0]<0)t.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];if(this._droppedEventsCount>0)t.diag.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`);if(this._droppedLinksCount>0)t.diag.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`);if(this._spanProcessor.onEnding)this._spanProcessor.onEnding(this);this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(Z){if(typeof Z==="number"&&Z<=r.otperformance.now())return(0,r.hrTime)(Z+this._performanceOffset);if(typeof Z==="number")return(0,r.millisToHrTime)(Z);if(Z instanceof Date)return(0,r.millisToHrTime)(Z.getTime());if((0,r.isTimeInputHrTime)(Z))return Z;if(this._startTimeProvided)return(0,r.millisToHrTime)(Date.now());let X=r.otperformance.now()-this._performanceStartTime;return(0,r.addHrTimes)(this.startTime,(0,r.millisToHrTime)(X))}isRecording(){return this._ended===!1}recordException(Z,X){let z={};if(typeof Z==="string")z[g1.ATTR_EXCEPTION_MESSAGE]=Z;else if(Z){if(Z.code)z[g1.ATTR_EXCEPTION_TYPE]=Z.code.toString();else if(Z.name)z[g1.ATTR_EXCEPTION_TYPE]=Z.name;if(Z.message)z[g1.ATTR_EXCEPTION_MESSAGE]=Z.message;if(Z.stack)z[g1.ATTR_EXCEPTION_STACKTRACE]=Z.stack}if(z[g1.ATTR_EXCEPTION_TYPE]||z[g1.ATTR_EXCEPTION_MESSAGE])this.addEvent(_50.ExceptionEventName,z,X);else t.diag.warn(`Failed to record an exception ${Z}`)}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 Z=Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);t.diag.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,Z)}return this._ended}_truncateToLimitUtil(Z,X){if(Z.length<=X)return Z;return Z.substring(0,X)}_truncateToSize(Z){let X=this._attributeValueLengthLimit;if(X<=0)return t.diag.warn(`Attribute value limit must be positive, got ${X}`),Z;if(typeof Z==="string")return this._truncateToLimitUtil(Z,X);if(Array.isArray(Z))return Z.map((z)=>typeof z==="string"?this._truncateToLimitUtil(z,X):z);return Z}}yk.SpanImpl=_k});var MZ=V((xk)=>{Object.defineProperty(xk,"__esModule",{value:!0});xk.SamplingDecision=void 0;var y50;(function(Z){Z[Z.NOT_RECORD=0]="NOT_RECORD",Z[Z.RECORD=1]="RECORD",Z[Z.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(y50=xk.SamplingDecision||(xk.SamplingDecision={}))});var $7=V((dk)=>{Object.defineProperty(dk,"__esModule",{value:!0});dk.AlwaysOffSampler=void 0;var v50=MZ();class bk{shouldSample(){return{decision:v50.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}dk.AlwaysOffSampler=bk});var w7=V((ck)=>{Object.defineProperty(ck,"__esModule",{value:!0});ck.AlwaysOnSampler=void 0;var j50=MZ();class lk{shouldSample(){return{decision:j50.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}ck.AlwaysOnSampler=lk});var $9=V((pk)=>{Object.defineProperty(pk,"__esModule",{value:!0});pk.ParentBasedSampler=void 0;var P7=I(),x50=n(),mk=$7(),T9=w7();class gk{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(Z){if(this._root=Z.root,!this._root)(0,x50.globalErrorHandler)(Error("ParentBasedSampler must have a root sampler configured")),this._root=new T9.AlwaysOnSampler;this._remoteParentSampled=Z.remoteParentSampled??new T9.AlwaysOnSampler,this._remoteParentNotSampled=Z.remoteParentNotSampled??new mk.AlwaysOffSampler,this._localParentSampled=Z.localParentSampled??new T9.AlwaysOnSampler,this._localParentNotSampled=Z.localParentNotSampled??new mk.AlwaysOffSampler}shouldSample(Z,X,z,q,G,W){let Q=P7.trace.getSpanContext(Z);if(!Q||!(0,P7.isSpanContextValid)(Q))return this._root.shouldSample(Z,X,z,q,G,W);if(Q.isRemote){if(Q.traceFlags&P7.TraceFlags.SAMPLED)return this._remoteParentSampled.shouldSample(Z,X,z,q,G,W);return this._remoteParentNotSampled.shouldSample(Z,X,z,q,G,W)}if(Q.traceFlags&P7.TraceFlags.SAMPLED)return this._localParentSampled.shouldSample(Z,X,z,q,G,W);return this._localParentNotSampled.shouldSample(Z,X,z,q,G,W)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}pk.ParentBasedSampler=gk});var w9=V((tk)=>{Object.defineProperty(tk,"__esModule",{value:!0});tk.TraceIdRatioBasedSampler=void 0;var b50=I(),ak=MZ();class ok{_ratio;_upperBound;constructor(Z=0){this._ratio=this._normalize(Z),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(Z,X){return{decision:(0,b50.isValidTraceId)(X)&&this._accumulate(X)<this._upperBound?ak.SamplingDecision.RECORD_AND_SAMPLED:ak.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(Z){if(typeof Z!=="number"||isNaN(Z))return 0;return Z>=1?1:Z<=0?0:Z}_accumulate(Z){let X=0;for(let z=0;z<Z.length/8;z++){let q=z*8,G=parseInt(Z.slice(q,q+8),16);X=(X^G)>>>0}return X}}tk.TraceIdRatioBasedSampler=ok});var R9=V((Qf)=>{Object.defineProperty(Qf,"__esModule",{value:!0});Qf.buildSamplerFromEnv=Qf.loadDefaultConfig=void 0;var M9=I(),_0=n(),sk=$7(),P9=w7(),M7=$9(),ek=w9(),y0;(function(Z){Z.AlwaysOff="always_off",Z.AlwaysOn="always_on",Z.ParentBasedAlwaysOff="parentbased_always_off",Z.ParentBasedAlwaysOn="parentbased_always_on",Z.ParentBasedTraceIdRatio="parentbased_traceidratio",Z.TraceIdRatio="traceidratio"})(y0||(y0={}));var R7=1;function d50(){return{sampler:Jf(),forceFlushTimeoutMillis:30000,generalLimits:{attributeValueLengthLimit:(0,_0.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,_0.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:(0,_0.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,_0.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:(0,_0.getNumberFromEnv)("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:(0,_0.getNumberFromEnv)("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:(0,_0.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:(0,_0.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}Qf.loadDefaultConfig=d50;function Jf(){let Z=(0,_0.getStringFromEnv)("OTEL_TRACES_SAMPLER")??y0.ParentBasedAlwaysOn;switch(Z){case y0.AlwaysOn:return new P9.AlwaysOnSampler;case y0.AlwaysOff:return new sk.AlwaysOffSampler;case y0.ParentBasedAlwaysOn:return new M7.ParentBasedSampler({root:new P9.AlwaysOnSampler});case y0.ParentBasedAlwaysOff:return new M7.ParentBasedSampler({root:new sk.AlwaysOffSampler});case y0.TraceIdRatio:return new ek.TraceIdRatioBasedSampler(Zf());case y0.ParentBasedTraceIdRatio:return new M7.ParentBasedSampler({root:new ek.TraceIdRatioBasedSampler(Zf())});default:return M9.diag.error(`OTEL_TRACES_SAMPLER value "${Z}" invalid, defaulting to "${y0.ParentBasedAlwaysOn}".`),new M7.ParentBasedSampler({root:new P9.AlwaysOnSampler})}}Qf.buildSamplerFromEnv=Jf;function Zf(){let Z=(0,_0.getNumberFromEnv)("OTEL_TRACES_SAMPLER_ARG");if(Z==null)return M9.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${R7}.`),R7;if(Z<0||Z>1)return M9.diag.error(`OTEL_TRACES_SAMPLER_ARG=${Z} was given, but it is out of range ([0..1]), defaulting to ${R7}.`),R7;return Z}});var h9=V((zf)=>{Object.defineProperty(zf,"__esModule",{value:!0});zf.reconfigureLimits=zf.mergeConfig=zf.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=zf.DEFAULT_ATTRIBUTE_COUNT_LIMIT=void 0;var Yf=R9(),h7=n();zf.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;zf.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;function l50(Z){let X={sampler:(0,Yf.buildSamplerFromEnv)()},z=(0,Yf.loadDefaultConfig)(),q=Object.assign({},z,X,Z);return q.generalLimits=Object.assign({},z.generalLimits,Z.generalLimits||{}),q.spanLimits=Object.assign({},z.spanLimits,Z.spanLimits||{}),q}zf.mergeConfig=l50;function c50(Z){let X=Object.assign({},Z.spanLimits);return X.attributeCountLimit=Z.spanLimits?.attributeCountLimit??Z.generalLimits?.attributeCountLimit??(0,h7.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??(0,h7.getNumberFromEnv)("OTEL_ATTRIBUTE_COUNT_LIMIT")??zf.DEFAULT_ATTRIBUTE_COUNT_LIMIT,X.attributeValueLengthLimit=Z.spanLimits?.attributeValueLengthLimit??Z.generalLimits?.attributeValueLengthLimit??(0,h7.getNumberFromEnv)("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,h7.getNumberFromEnv)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??zf.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,Object.assign({},Z,{spanLimits:X})}zf.reconfigureLimits=c50});var Bf=V((Ff)=>{Object.defineProperty(Ff,"__esModule",{value:!0});Ff.BatchSpanProcessorBase=void 0;var RZ=I(),m0=n();class Kf{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(Z,X){if(this._exporter=Z,this._maxExportBatchSize=typeof X?.maxExportBatchSize==="number"?X.maxExportBatchSize:(0,m0.getNumberFromEnv)("OTEL_BSP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=typeof X?.maxQueueSize==="number"?X.maxQueueSize:(0,m0.getNumberFromEnv)("OTEL_BSP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=typeof X?.scheduledDelayMillis==="number"?X.scheduledDelayMillis:(0,m0.getNumberFromEnv)("OTEL_BSP_SCHEDULE_DELAY")??5000,this._exportTimeoutMillis=typeof X?.exportTimeoutMillis==="number"?X.exportTimeoutMillis:(0,m0.getNumberFromEnv)("OTEL_BSP_EXPORT_TIMEOUT")??30000,this._shutdownOnce=new m0.BindOnceFuture(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize)RZ.diag.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize}forceFlush(){if(this._shutdownOnce.isCalled)return this._shutdownOnce.promise;return this._flushAll()}onStart(Z,X){}onEnd(Z){if(this._shutdownOnce.isCalled)return;if((Z.spanContext().traceFlags&RZ.TraceFlags.SAMPLED)===0)return;this._addToBuffer(Z)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>{return this.onShutdown()}).then(()=>{return this._flushAll()}).then(()=>{return this._exporter.shutdown()})}_addToBuffer(Z){if(this._finishedSpans.length>=this._maxQueueSize){if(this._droppedSpansCount===0)RZ.diag.debug("maxQueueSize reached, dropping spans");this._droppedSpansCount++;return}if(this._droppedSpansCount>0)RZ.diag.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0;this._finishedSpans.push(Z),this._maybeStartTimer()}_flushAll(){return new Promise((Z,X)=>{let z=[],q=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let G=0,W=q;G<W;G++)z.push(this._flushOneBatch());Promise.all(z).then(()=>{Z()}).catch(X)})}_flushOneBatch(){if(this._clearTimer(),this._finishedSpans.length===0)return Promise.resolve();return new Promise((Z,X)=>{let z=setTimeout(()=>{X(Error("Timeout"))},this._exportTimeoutMillis);RZ.context.with((0,m0.suppressTracing)(RZ.context.active()),()=>{let q;if(this._finishedSpans.length<=this._maxExportBatchSize)q=this._finishedSpans,this._finishedSpans=[];else q=this._finishedSpans.splice(0,this._maxExportBatchSize);let G=()=>this._exporter.export(q,(Q)=>{if(clearTimeout(z),Q.code===m0.ExportResultCode.SUCCESS)Z();else X(Q.error??Error("BatchSpanProcessor: span export failed"))}),W=null;for(let Q=0,J=q.length;Q<J;Q++){let Y=q[Q];if(Y.resource.asyncAttributesPending&&Y.resource.waitForAsyncAttributes)W??=[],W.push(Y.resource.waitForAsyncAttributes())}if(W===null)G();else Promise.all(W).then(G,(Q)=>{(0,m0.globalErrorHandler)(Q),X(Q)})})})}_maybeStartTimer(){if(this._isExporting)return;let Z=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{if(this._isExporting=!1,this._finishedSpans.length>0)this._clearTimer(),this._maybeStartTimer()}).catch((X)=>{this._isExporting=!1,(0,m0.globalErrorHandler)(X)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return Z();if(this._timer!==void 0)return;if(this._timer=setTimeout(()=>Z(),this._scheduledDelayMillis),typeof this._timer!=="number")this._timer.unref()}_clearTimer(){if(this._timer!==void 0)clearTimeout(this._timer),this._timer=void 0}}Ff.BatchSpanProcessorBase=Kf});var Cf=V((Vf)=>{Object.defineProperty(Vf,"__esModule",{value:!0});Vf.BatchSpanProcessor=void 0;var m50=Bf();class Of extends m50.BatchSpanProcessorBase{onShutdown(){}}Vf.BatchSpanProcessor=Of});var Lf=V((Ef)=>{Object.defineProperty(Ef,"__esModule",{value:!0});Ef.RandomIdGenerator=void 0;var g50=8,If=16;class Df{generateTraceId=Uf(If);generateSpanId=Uf(g50)}Ef.RandomIdGenerator=Df;var k7=Buffer.allocUnsafe(If);function Uf(Z){return function(){for(let z=0;z<Z/4;z++)k7.writeUInt32BE(Math.random()*4294967296>>>0,z*4);for(let z=0;z<Z;z++)if(k7[z]>0)break;else if(z===Z-1)k7[Z-1]=1;return k7.toString("hex",0,Z)}}});var Tf=V((f7)=>{Object.defineProperty(f7,"__esModule",{value:!0});f7.RandomIdGenerator=f7.BatchSpanProcessor=void 0;var p50=Cf();Object.defineProperty(f7,"BatchSpanProcessor",{enumerable:!0,get:function(){return p50.BatchSpanProcessor}});var i50=Lf();Object.defineProperty(f7,"RandomIdGenerator",{enumerable:!0,get:function(){return i50.RandomIdGenerator}})});var k9=V((S7)=>{Object.defineProperty(S7,"__esModule",{value:!0});S7.RandomIdGenerator=S7.BatchSpanProcessor=void 0;var $f=Tf();Object.defineProperty(S7,"BatchSpanProcessor",{enumerable:!0,get:function(){return $f.BatchSpanProcessor}});Object.defineProperty(S7,"RandomIdGenerator",{enumerable:!0,get:function(){return $f.RandomIdGenerator}})});var Mf=V((wf)=>{Object.defineProperty(wf,"__esModule",{value:!0});wf.METRIC_OTEL_SDK_SPAN_STARTED=wf.METRIC_OTEL_SDK_SPAN_LIVE=wf.ATTR_OTEL_SPAN_SAMPLING_RESULT=wf.ATTR_OTEL_SPAN_PARENT_ORIGIN=void 0;wf.ATTR_OTEL_SPAN_PARENT_ORIGIN="otel.span.parent.origin";wf.ATTR_OTEL_SPAN_SAMPLING_RESULT="otel.span.sampling_result";wf.METRIC_OTEL_SDK_SPAN_LIVE="otel.sdk.span.live";wf.METRIC_OTEL_SDK_SPAN_STARTED="otel.sdk.span.started"});var ff=V((hf)=>{Object.defineProperty(hf,"__esModule",{value:!0});hf.TracerMetrics=void 0;var _7=MZ(),x6=Mf();class Rf{startedSpans;liveSpans;constructor(Z){this.startedSpans=Z.createCounter(x6.METRIC_OTEL_SDK_SPAN_STARTED,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=Z.createUpDownCounter(x6.METRIC_OTEL_SDK_SPAN_LIVE,{unit:"{span}",description:"The number of currently live spans."})}startSpan(Z,X){let z=ZX0(X);if(this.startedSpans.add(1,{[x6.ATTR_OTEL_SPAN_PARENT_ORIGIN]:e50(Z),[x6.ATTR_OTEL_SPAN_SAMPLING_RESULT]:z}),X===_7.SamplingDecision.NOT_RECORD)return()=>{};let q={[x6.ATTR_OTEL_SPAN_SAMPLING_RESULT]:z};return this.liveSpans.add(1,q),()=>{this.liveSpans.add(-1,q)}}}hf.TracerMetrics=Rf;function e50(Z){if(!Z)return"none";if(Z.isRemote)return"remote";return"local"}function ZX0(Z){switch(Z){case _7.SamplingDecision.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case _7.SamplingDecision.RECORD:return"RECORD_ONLY";case _7.SamplingDecision.NOT_RECORD:return"DROP"}}});var yf=V((Sf)=>{Object.defineProperty(Sf,"__esModule",{value:!0});Sf.VERSION=void 0;Sf.VERSION="2.7.0"});var bf=V((jf)=>{Object.defineProperty(jf,"__esModule",{value:!0});jf.Tracer=void 0;var a=I(),y7=n(),JX0=jk(),QX0=h9(),XX0=k9(),YX0=ff(),zX0=yf();class vf{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(Z,X,z,q){let G=(0,QX0.mergeConfig)(X);this._sampler=G.sampler,this._generalLimits=G.generalLimits,this._spanLimits=G.spanLimits,this._idGenerator=X.idGenerator||new XX0.RandomIdGenerator,this._resource=z,this._spanProcessor=q,this.instrumentationScope=Z;let W=G.meterProvider?G.meterProvider.getMeter("@opentelemetry/sdk-trace",zX0.VERSION):a.createNoopMeter();this._tracerMetrics=new YX0.TracerMetrics(W)}startSpan(Z,X={},z=a.context.active()){if(X.root)z=a.trace.deleteSpan(z);let q=a.trace.getSpan(z);if((0,y7.isTracingSuppressed)(z))return a.diag.debug("Instrumentation suppressed, returning Noop Span"),a.trace.wrapSpanContext(a.INVALID_SPAN_CONTEXT);let G=q?.spanContext(),W=this._idGenerator.generateSpanId(),Q,J,Y;if(!G||!a.trace.isSpanContextValid(G))J=this._idGenerator.generateTraceId();else J=G.traceId,Y=G.traceState,Q=G;let K=X.kind??a.SpanKind.INTERNAL,F=(X.links??[]).map((S)=>{return{context:S.context,attributes:(0,y7.sanitizeAttributes)(S.attributes)}}),H=(0,y7.sanitizeAttributes)(X.attributes),N=this._sampler.shouldSample(z,J,Z,K,H,F),U=this._tracerMetrics.startSpan(G,N.decision);Y=N.traceState??Y;let E=N.decision===a.SamplingDecision.RECORD_AND_SAMPLED?a.TraceFlags.SAMPLED:a.TraceFlags.NONE,k={traceId:J,spanId:W,traceFlags:E,traceState:Y};if(N.decision===a.SamplingDecision.NOT_RECORD)return a.diag.debug("Recording is off, propagating context in a non-recording span"),a.trace.wrapSpanContext(k);let j=(0,y7.sanitizeAttributes)(Object.assign(H,N.attributes));return new JX0.SpanImpl({resource:this._resource,scope:this.instrumentationScope,context:z,spanContext:k,name:Z,kind:K,links:F,parentSpanContext:Q,attributes:j,startTime:X.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:U})}startActiveSpan(Z,X,z,q){let G,W,Q;if(arguments.length<2)return;else if(arguments.length===2)Q=X;else if(arguments.length===3)G=X,Q=z;else G=X,W=z,Q=q;let J=W??a.context.active(),Y=this.startSpan(Z,G,J),K=a.trace.setSpan(J,Y);return a.context.with(K,Q,void 0,Y)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}jf.Tracer=vf});var cf=V((uf)=>{Object.defineProperty(uf,"__esModule",{value:!0});uf.MultiSpanProcessor=void 0;var GX0=n();class df{_spanProcessors;constructor(Z){this._spanProcessors=Z}forceFlush(){let Z=[];for(let X of this._spanProcessors)Z.push(X.forceFlush());return new Promise((X)=>{Promise.all(Z).then(()=>{X()}).catch((z)=>{(0,GX0.globalErrorHandler)(z||Error("MultiSpanProcessor: forceFlush failed")),X()})})}onStart(Z,X){for(let z of this._spanProcessors)z.onStart(Z,X)}onEnding(Z){for(let X of this._spanProcessors)if(X.onEnding)X.onEnding(Z)}onEnd(Z){for(let X of this._spanProcessors)X.onEnd(Z)}shutdown(){let Z=[];for(let X of this._spanProcessors)Z.push(X.shutdown());return new Promise((X,z)=>{Promise.all(Z).then(()=>{X()},z)})}}uf.MultiSpanProcessor=df});var af=V((gf)=>{Object.defineProperty(gf,"__esModule",{value:!0});gf.BasicTracerProvider=gf.ForceFlushState=void 0;var qX0=n(),WX0=G7(),KX0=bf(),FX0=R9(),HX0=cf(),BX0=h9(),hZ;(function(Z){Z[Z.resolved=0]="resolved",Z[Z.timeout=1]="timeout",Z[Z.error=2]="error",Z[Z.unresolved=3]="unresolved"})(hZ=gf.ForceFlushState||(gf.ForceFlushState={}));class mf{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(Z={}){let X=(0,qX0.merge)({},(0,FX0.loadDefaultConfig)(),(0,BX0.reconfigureLimits)(Z));this._resource=X.resource??(0,WX0.defaultResource)(),this._config=Object.assign({},X,{resource:this._resource});let z=[];if(Z.spanProcessors?.length)z.push(...Z.spanProcessors);this._activeSpanProcessor=new HX0.MultiSpanProcessor(z)}getTracer(Z,X,z){let q=`${Z}@${X||""}:${z?.schemaUrl||""}`;if(!this._tracers.has(q))this._tracers.set(q,new KX0.Tracer({name:Z,version:X,schemaUrl:z?.schemaUrl},this._config,this._resource,this._activeSpanProcessor));return this._tracers.get(q)}forceFlush(){let Z=this._config.forceFlushTimeoutMillis,X=this._activeSpanProcessor._spanProcessors.map((z)=>{return new Promise((q)=>{let G,W=setTimeout(()=>{q(Error(`Span processor did not completed within timeout period of ${Z} ms`)),G=hZ.timeout},Z);z.forceFlush().then(()=>{if(clearTimeout(W),G!==hZ.timeout)G=hZ.resolved,q(G)}).catch((Q)=>{clearTimeout(W),G=hZ.error,q(Q)})})});return new Promise((z,q)=>{Promise.all(X).then((G)=>{let W=G.filter((Q)=>Q!==hZ.resolved);if(W.length>0)q(W);else z()}).catch((G)=>q([G]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}gf.BasicTracerProvider=mf});var sf=V((tf)=>{Object.defineProperty(tf,"__esModule",{value:!0});tf.ConsoleSpanExporter=void 0;var f9=n();class of{export(Z,X){return this._sendSpans(Z,X)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(Z){return{resource:{attributes:Z.resource.attributes},instrumentationScope:Z.instrumentationScope,traceId:Z.spanContext().traceId,parentSpanContext:Z.parentSpanContext,traceState:Z.spanContext().traceState?.serialize(),name:Z.name,id:Z.spanContext().spanId,kind:Z.kind,timestamp:(0,f9.hrTimeToMicroseconds)(Z.startTime),duration:(0,f9.hrTimeToMicroseconds)(Z.duration),attributes:Z.attributes,status:Z.status,events:Z.events,links:Z.links}}_sendSpans(Z,X){for(let z of Z)console.dir(this._exportInfo(z),{depth:3});if(X)return X({code:f9.ExportResultCode.SUCCESS})}}tf.ConsoleSpanExporter=of});var XS=V((JS)=>{Object.defineProperty(JS,"__esModule",{value:!0});JS.InMemorySpanExporter=void 0;var ef=n();class ZS{_finishedSpans=[];_stopped=!1;export(Z,X){if(this._stopped)return X({code:ef.ExportResultCode.FAILED,error:Error("Exporter has been stopped")});this._finishedSpans.push(...Z),setTimeout(()=>X({code:ef.ExportResultCode.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}JS.InMemorySpanExporter=ZS});var qS=V((zS)=>{Object.defineProperty(zS,"__esModule",{value:!0});zS.SimpleSpanProcessor=void 0;var OX0=I(),v7=n();class YS{_exporter;_shutdownOnce;_pendingExports;constructor(Z){this._exporter=Z,this._shutdownOnce=new v7.BindOnceFuture(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){if(await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush)await this._exporter.forceFlush()}onStart(Z,X){}onEnd(Z){if(this._shutdownOnce.isCalled)return;if((Z.spanContext().traceFlags&OX0.TraceFlags.SAMPLED)===0)return;let X=this._doExport(Z).catch((z)=>(0,v7.globalErrorHandler)(z));this._pendingExports.add(X),X.finally(()=>this._pendingExports.delete(X))}async _doExport(Z){if(Z.resource.asyncAttributesPending)await Z.resource.waitForAsyncAttributes?.();let X=await v7.internal._export(this._exporter,[Z]);if(X.code!==v7.ExportResultCode.SUCCESS)throw X.error??Error(`SimpleSpanProcessor: span export failed (status ${X})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}zS.SimpleSpanProcessor=YS});var HS=V((KS)=>{Object.defineProperty(KS,"__esModule",{value:!0});KS.NoopSpanProcessor=void 0;class WS{onStart(Z,X){}onEnd(Z){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}KS.NoopSpanProcessor=WS});var j7=V((G0)=>{Object.defineProperty(G0,"__esModule",{value:!0});G0.SamplingDecision=G0.TraceIdRatioBasedSampler=G0.ParentBasedSampler=G0.AlwaysOnSampler=G0.AlwaysOffSampler=G0.NoopSpanProcessor=G0.SimpleSpanProcessor=G0.InMemorySpanExporter=G0.ConsoleSpanExporter=G0.RandomIdGenerator=G0.BatchSpanProcessor=G0.BasicTracerProvider=void 0;var VX0=af();Object.defineProperty(G0,"BasicTracerProvider",{enumerable:!0,get:function(){return VX0.BasicTracerProvider}});var BS=k9();Object.defineProperty(G0,"BatchSpanProcessor",{enumerable:!0,get:function(){return BS.BatchSpanProcessor}});Object.defineProperty(G0,"RandomIdGenerator",{enumerable:!0,get:function(){return BS.RandomIdGenerator}});var NX0=sf();Object.defineProperty(G0,"ConsoleSpanExporter",{enumerable:!0,get:function(){return NX0.ConsoleSpanExporter}});var CX0=XS();Object.defineProperty(G0,"InMemorySpanExporter",{enumerable:!0,get:function(){return CX0.InMemorySpanExporter}});var UX0=qS();Object.defineProperty(G0,"SimpleSpanProcessor",{enumerable:!0,get:function(){return UX0.SimpleSpanProcessor}});var IX0=HS();Object.defineProperty(G0,"NoopSpanProcessor",{enumerable:!0,get:function(){return IX0.NoopSpanProcessor}});var DX0=$7();Object.defineProperty(G0,"AlwaysOffSampler",{enumerable:!0,get:function(){return DX0.AlwaysOffSampler}});var EX0=w7();Object.defineProperty(G0,"AlwaysOnSampler",{enumerable:!0,get:function(){return EX0.AlwaysOnSampler}});var AX0=$9();Object.defineProperty(G0,"ParentBasedSampler",{enumerable:!0,get:function(){return AX0.ParentBasedSampler}});var LX0=w9();Object.defineProperty(G0,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return LX0.TraceIdRatioBasedSampler}});var TX0=MZ();Object.defineProperty(G0,"SamplingDecision",{enumerable:!0,get:function(){return TX0.SamplingDecision}})});var S9=V((VS)=>{Object.defineProperty(VS,"__esModule",{value:!0});VS.AbstractAsyncHooksContextManager=void 0;var wX0=h("events"),PX0=["addListener","on","once","prependListener","prependOnceListener"];class OS{bind(Z,X){if(X instanceof wX0.EventEmitter)return this._bindEventEmitter(Z,X);if(typeof X==="function")return this._bindFunction(Z,X);return X}_bindFunction(Z,X){let z=this,q=function(...G){return z.with(Z,()=>X.apply(this,G))};return Object.defineProperty(q,"length",{enumerable:!1,configurable:!0,writable:!1,value:X.length}),q}_bindEventEmitter(Z,X){if(this._getPatchMap(X)!==void 0)return X;if(this._createPatchMap(X),PX0.forEach((q)=>{if(X[q]===void 0)return;X[q]=this._patchAddListener(X,X[q],Z)}),typeof X.removeListener==="function")X.removeListener=this._patchRemoveListener(X,X.removeListener);if(typeof X.off==="function")X.off=this._patchRemoveListener(X,X.off);if(typeof X.removeAllListeners==="function")X.removeAllListeners=this._patchRemoveAllListeners(X,X.removeAllListeners);return X}_patchRemoveListener(Z,X){let z=this;return function(q,G){let W=z._getPatchMap(Z)?.[q];if(W===void 0)return X.call(this,q,G);let Q=W.get(G);return X.call(this,q,Q||G)}}_patchRemoveAllListeners(Z,X){let z=this;return function(q){let G=z._getPatchMap(Z);if(G!==void 0){if(arguments.length===0)z._createPatchMap(Z);else if(G[q]!==void 0)delete G[q]}return X.apply(this,arguments)}}_patchAddListener(Z,X,z){let q=this;return function(G,W){if(q._wrapped)return X.call(this,G,W);let Q=q._getPatchMap(Z);if(Q===void 0)Q=q._createPatchMap(Z);let J=Q[G];if(J===void 0)J=new WeakMap,Q[G]=J;let Y=q.bind(z,W);J.set(W,Y),q._wrapped=!0;try{return X.call(this,G,Y)}finally{q._wrapped=!1}}}_createPatchMap(Z){let X=Object.create(null);return Z[this._kOtListeners]=X,X}_getPatchMap(Z){return Z[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1}VS.AbstractAsyncHooksContextManager=OS});var DS=V((US)=>{Object.defineProperty(US,"__esModule",{value:!0});US.AsyncHooksContextManager=void 0;var MX0=I(),RX0=h("async_hooks"),hX0=S9();class CS extends hX0.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super();this._asyncHook=RX0.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]??MX0.ROOT_CONTEXT}with(Z,X,z,...q){this._enterContext(Z);try{return X.call(z,...q)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(Z,X){if(X==="TIMERWRAP")return;let z=this._stack[this._stack.length-1];if(z!==void 0)this._contexts.set(Z,z)}_destroy(Z){this._contexts.delete(Z)}_before(Z){let X=this._contexts.get(Z);if(X!==void 0)this._enterContext(X)}_after(){this._exitContext()}_enterContext(Z){this._stack.push(Z)}_exitContext(){this._stack.pop()}}US.AsyncHooksContextManager=CS});var TS=V((AS)=>{Object.defineProperty(AS,"__esModule",{value:!0});AS.AsyncLocalStorageContextManager=void 0;var kX0=I(),fX0=h("async_hooks"),SX0=S9();class ES extends SX0.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super();this._asyncLocalStorage=new fX0.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??kX0.ROOT_CONTEXT}with(Z,X,z,...q){let G=z==null?X:X.bind(z);return this._asyncLocalStorage.run(Z,G,...q)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}}AS.AsyncLocalStorageContextManager=ES});var $S=V((x7)=>{Object.defineProperty(x7,"__esModule",{value:!0});x7.AsyncLocalStorageContextManager=x7.AsyncHooksContextManager=void 0;var _X0=DS();Object.defineProperty(x7,"AsyncHooksContextManager",{enumerable:!0,get:function(){return _X0.AsyncHooksContextManager}});var yX0=TS();Object.defineProperty(x7,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return yX0.AsyncLocalStorageContextManager}})});var RS=V((PS)=>{Object.defineProperty(PS,"__esModule",{value:!0});PS.NodeTracerProvider=void 0;var jX0=$S(),xX0=j7(),b6=I(),_9=n();function bX0(Z){if(Z===null)return;if(Z===void 0){let X=new jX0.AsyncLocalStorageContextManager;X.enable(),b6.context.setGlobalContextManager(X);return}Z.enable(),b6.context.setGlobalContextManager(Z)}function dX0(Z){if(Z===null)return;if(Z===void 0){b6.propagation.setGlobalPropagator(new _9.CompositePropagator({propagators:[new _9.W3CTraceContextPropagator,new _9.W3CBaggagePropagator]}));return}b6.propagation.setGlobalPropagator(Z)}class wS extends xX0.BasicTracerProvider{constructor(Z={}){super(Z)}register(Z={}){b6.trace.setGlobalTracerProvider(this),bX0(Z.contextManager),dX0(Z.propagator)}}PS.NodeTracerProvider=wS});var hS=V((Z0)=>{Object.defineProperty(Z0,"__esModule",{value:!0});Z0.TraceIdRatioBasedSampler=Z0.SimpleSpanProcessor=Z0.SamplingDecision=Z0.RandomIdGenerator=Z0.ParentBasedSampler=Z0.NoopSpanProcessor=Z0.InMemorySpanExporter=Z0.ConsoleSpanExporter=Z0.BatchSpanProcessor=Z0.BasicTracerProvider=Z0.AlwaysOnSampler=Z0.AlwaysOffSampler=Z0.NodeTracerProvider=void 0;var uX0=RS();Object.defineProperty(Z0,"NodeTracerProvider",{enumerable:!0,get:function(){return uX0.NodeTracerProvider}});var C0=j7();Object.defineProperty(Z0,"AlwaysOffSampler",{enumerable:!0,get:function(){return C0.AlwaysOffSampler}});Object.defineProperty(Z0,"AlwaysOnSampler",{enumerable:!0,get:function(){return C0.AlwaysOnSampler}});Object.defineProperty(Z0,"BasicTracerProvider",{enumerable:!0,get:function(){return C0.BasicTracerProvider}});Object.defineProperty(Z0,"BatchSpanProcessor",{enumerable:!0,get:function(){return C0.BatchSpanProcessor}});Object.defineProperty(Z0,"ConsoleSpanExporter",{enumerable:!0,get:function(){return C0.ConsoleSpanExporter}});Object.defineProperty(Z0,"InMemorySpanExporter",{enumerable:!0,get:function(){return C0.InMemorySpanExporter}});Object.defineProperty(Z0,"NoopSpanProcessor",{enumerable:!0,get:function(){return C0.NoopSpanProcessor}});Object.defineProperty(Z0,"ParentBasedSampler",{enumerable:!0,get:function(){return C0.ParentBasedSampler}});Object.defineProperty(Z0,"RandomIdGenerator",{enumerable:!0,get:function(){return C0.RandomIdGenerator}});Object.defineProperty(Z0,"SamplingDecision",{enumerable:!0,get:function(){return C0.SamplingDecision}});Object.defineProperty(Z0,"SimpleSpanProcessor",{enumerable:!0,get:function(){return C0.SimpleSpanProcessor}});Object.defineProperty(Z0,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return C0.TraceIdRatioBasedSampler}})});var _S=V((d6,j9)=>{(function(Z,X){typeof d6=="object"&&typeof j9=="object"?j9.exports=X(h("child_process"),h("crypto")):typeof define=="function"&&define.amd?define(["child_process","crypto"],X):typeof d6=="object"?d6["electron-machine-id"]=X(h("child_process"),h("crypto")):Z["electron-machine-id"]=X(Z.child_process,Z.crypto)})(d6,function(Z,X){return function(z){function q(W){if(G[W])return G[W].exports;var Q=G[W]={exports:{},id:W,loaded:!1};return z[W].call(Q.exports,Q,Q.exports,q),Q.loaded=!0,Q.exports}var G={};return q.m=z,q.c=G,q.p="",q(0)}([function(z,q,G){z.exports=G(34)},function(z,q,G){var W=G(29)("wks"),Q=G(33),J=G(2).Symbol,Y=typeof J=="function",K=z.exports=function(F){return W[F]||(W[F]=Y&&J[F]||(Y?J:Q)("Symbol."+F))};K.store=W},function(z,q){var G=z.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=G)},function(z,q,G){var W=G(9);z.exports=function(Q){if(!W(Q))throw TypeError(Q+" is not an object!");return Q}},function(z,q,G){z.exports=!G(24)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(z,q,G){var W=G(12),Q=G(17);z.exports=G(4)?function(J,Y,K){return W.f(J,Y,Q(1,K))}:function(J,Y,K){return J[Y]=K,J}},function(z,q){var G=z.exports={version:"2.4.0"};typeof __e=="number"&&(__e=G)},function(z,q,G){var W=G(14);z.exports=function(Q,J,Y){if(W(Q),J===void 0)return Q;switch(Y){case 1:return function(K){return Q.call(J,K)};case 2:return function(K,F){return Q.call(J,K,F)};case 3:return function(K,F,H){return Q.call(J,K,F,H)}}return function(){return Q.apply(J,arguments)}}},function(z,q){var G={}.hasOwnProperty;z.exports=function(W,Q){return G.call(W,Q)}},function(z,q){z.exports=function(G){return typeof G=="object"?G!==null:typeof G=="function"}},function(z,q){z.exports={}},function(z,q){var G={}.toString;z.exports=function(W){return G.call(W).slice(8,-1)}},function(z,q,G){var W=G(3),Q=G(26),J=G(32),Y=Object.defineProperty;q.f=G(4)?Object.defineProperty:function(K,F,H){if(W(K),F=J(F,!0),W(H),Q)try{return Y(K,F,H)}catch(N){}if("get"in H||"set"in H)throw TypeError("Accessors not supported!");return"value"in H&&(K[F]=H.value),K}},function(z,q,G){var W=G(42),Q=G(15);z.exports=function(J){return W(Q(J))}},function(z,q){z.exports=function(G){if(typeof G!="function")throw TypeError(G+" is not a function!");return G}},function(z,q){z.exports=function(G){if(G==null)throw TypeError("Can't call method on "+G);return G}},function(z,q,G){var W=G(9),Q=G(2).document,J=W(Q)&&W(Q.createElement);z.exports=function(Y){return J?Q.createElement(Y):{}}},function(z,q){z.exports=function(G,W){return{enumerable:!(1&G),configurable:!(2&G),writable:!(4&G),value:W}}},function(z,q,G){var W=G(12).f,Q=G(8),J=G(1)("toStringTag");z.exports=function(Y,K,F){Y&&!Q(Y=F?Y:Y.prototype,J)&&W(Y,J,{configurable:!0,value:K})}},function(z,q,G){var W=G(29)("keys"),Q=G(33);z.exports=function(J){return W[J]||(W[J]=Q(J))}},function(z,q){var{ceil:G,floor:W}=Math;z.exports=function(Q){return isNaN(Q=+Q)?0:(Q>0?W:G)(Q)}},function(z,q,G){var W=G(11),Q=G(1)("toStringTag"),J=W(function(){return arguments}())=="Arguments",Y=function(K,F){try{return K[F]}catch(H){}};z.exports=function(K){var F,H,N;return K===void 0?"Undefined":K===null?"Null":typeof(H=Y(F=Object(K),Q))=="string"?H:J?W(F):(N=W(F))=="Object"&&typeof F.callee=="function"?"Arguments":N}},function(z,q){z.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(z,q,G){var W=G(2),Q=G(6),J=G(7),Y=G(5),K="prototype",F=function(H,N,U){var E,k,j,o=H&F.F,S=H&F.G,f=H&F.S,y=H&F.P,m=H&F.B,P=H&F.W,x=S?Q:Q[N]||(Q[N]={}),b=x[K],g=S?W:f?W[N]:(W[N]||{})[K];S&&(U=N);for(E in U)k=!o&&g&&g[E]!==void 0,k&&E in x||(j=k?g[E]:U[E],x[E]=S&&typeof g[E]!="function"?U[E]:m&&k?J(j,W):P&&g[E]==j?function(s){var U0=function(I0,J0,v0){if(this instanceof s){switch(arguments.length){case 0:return new s;case 1:return new s(I0);case 2:return new s(I0,J0)}return new s(I0,J0,v0)}return s.apply(this,arguments)};return U0[K]=s[K],U0}(j):y&&typeof j=="function"?J(Function.call,j):j,y&&((x.virtual||(x.virtual={}))[E]=j,H&F.R&&b&&!b[E]&&Y(b,E,j)))};F.F=1,F.G=2,F.S=4,F.P=8,F.B=16,F.W=32,F.U=64,F.R=128,z.exports=F},function(z,q){z.exports=function(G){try{return!!G()}catch(W){return!0}}},function(z,q,G){z.exports=G(2).document&&document.documentElement},function(z,q,G){z.exports=!G(4)&&!G(24)(function(){return Object.defineProperty(G(16)("div"),"a",{get:function(){return 7}}).a!=7})},function(z,q,G){var W=G(28),Q=G(23),J=G(57),Y=G(5),K=G(8),F=G(10),H=G(45),N=G(18),U=G(52),E=G(1)("iterator"),k=!([].keys&&("next"in[].keys())),j="@@iterator",o="keys",S="values",f=function(){return this};z.exports=function(y,m,P,x,b,g,s){H(P,m,x);var U0,I0,J0,v0=function(A){if(!k&&A in Q0)return Q0[A];switch(A){case o:return function(){return new P(this,A)};case S:return function(){return new P(this,A)}}return function(){return new P(this,A)}},i1=m+" Iterator",q1=b==S,SZ=!1,Q0=y.prototype,g0=Q0[E]||Q0[j]||b&&Q0[b],q0=g0||v0(b),_Z=b?q1?v0("entries"):q0:void 0,D=m=="Array"?Q0.entries||g0:g0;if(D&&(J0=U(D.call(new y)),J0!==Object.prototype&&(N(J0,i1,!0),W||K(J0,E)||Y(J0,E,f))),q1&&g0&&g0.name!==S&&(SZ=!0,q0=function(){return g0.call(this)}),W&&!s||!k&&!SZ&&Q0[E]||Y(Q0,E,q0),F[m]=q0,F[i1]=f,b)if(U0={values:q1?q0:v0(S),keys:g?q0:v0(o),entries:_Z},s)for(I0 in U0)I0 in Q0||J(Q0,I0,U0[I0]);else Q(Q.P+Q.F*(k||SZ),m,U0);return U0}},function(z,q){z.exports=!0},function(z,q,G){var W=G(2),Q="__core-js_shared__",J=W[Q]||(W[Q]={});z.exports=function(Y){return J[Y]||(J[Y]={})}},function(z,q,G){var W,Q,J,Y=G(7),K=G(41),F=G(25),H=G(16),N=G(2),U=N.process,E=N.setImmediate,k=N.clearImmediate,j=N.MessageChannel,o=0,S={},f="onreadystatechange",y=function(){var P=+this;if(S.hasOwnProperty(P)){var x=S[P];delete S[P],x()}},m=function(P){y.call(P.data)};E&&k||(E=function(P){for(var x=[],b=1;arguments.length>b;)x.push(arguments[b++]);return S[++o]=function(){K(typeof P=="function"?P:Function(P),x)},W(o),o},k=function(P){delete S[P]},G(11)(U)=="process"?W=function(P){U.nextTick(Y(y,P,1))}:j?(Q=new j,J=Q.port2,Q.port1.onmessage=m,W=Y(J.postMessage,J,1)):N.addEventListener&&typeof postMessage=="function"&&!N.importScripts?(W=function(P){N.postMessage(P+"","*")},N.addEventListener("message",m,!1)):W=(f in H("script"))?function(P){F.appendChild(H("script"))[f]=function(){F.removeChild(this),y.call(P)}}:function(P){setTimeout(Y(y,P,1),0)}),z.exports={set:E,clear:k}},function(z,q,G){var W=G(20),Q=Math.min;z.exports=function(J){return J>0?Q(W(J),9007199254740991):0}},function(z,q,G){var W=G(9);z.exports=function(Q,J){if(!W(Q))return Q;var Y,K;if(J&&typeof(Y=Q.toString)=="function"&&!W(K=Y.call(Q)))return K;if(typeof(Y=Q.valueOf)=="function"&&!W(K=Y.call(Q)))return K;if(!J&&typeof(Y=Q.toString)=="function"&&!W(K=Y.call(Q)))return K;throw TypeError("Can't convert object to primitive value")}},function(z,q){var G=0,W=Math.random();z.exports=function(Q){return"Symbol(".concat(Q===void 0?"":Q,")_",(++G+W).toString(36))}},function(z,q,G){function W(f){return f&&f.__esModule?f:{default:f}}function Q(){return process.platform!=="win32"?"":process.arch==="ia32"&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"}function J(f){return(0,E.createHash)("sha256").update(f).digest("hex")}function Y(f){switch(j){case"darwin":return f.split("IOPlatformUUID")[1].split(`
|
|
28
|
+
`)[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return f.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":return f.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"freebsd":return f.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw Error("Unsupported platform: "+process.platform)}}function K(f){var y=Y((0,U.execSync)(S[j]).toString());return f?y:J(y)}function F(f){return new N.default(function(y,m){return(0,U.exec)(S[j],{},function(P,x,b){if(P)return m(Error("Error while obtaining machine id: "+P.stack));var g=Y(x.toString());return y(f?g:J(g))})})}Object.defineProperty(q,"__esModule",{value:!0});var H=G(35),N=W(H);q.machineIdSync=K,q.machineId=F;var U=G(70),E=G(71),k=process,j=k.platform,o={native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"},S={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:o[Q()]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(z,q,G){z.exports={default:G(36),__esModule:!0}},function(z,q,G){G(66),G(68),G(69),G(67),z.exports=G(6).Promise},function(z,q){z.exports=function(){}},function(z,q){z.exports=function(G,W,Q,J){if(!(G instanceof W)||J!==void 0&&J in G)throw TypeError(Q+": incorrect invocation!");return G}},function(z,q,G){var W=G(13),Q=G(31),J=G(62);z.exports=function(Y){return function(K,F,H){var N,U=W(K),E=Q(U.length),k=J(H,E);if(Y&&F!=F){for(;E>k;)if(N=U[k++],N!=N)return!0}else for(;E>k;k++)if((Y||(k in U))&&U[k]===F)return Y||k||0;return!Y&&-1}}},function(z,U,G){var W=G(7),Q=G(44),J=G(43),Y=G(3),K=G(31),F=G(64),H={},N={},U=z.exports=function(E,k,j,o,S){var f,y,m,P,x=S?function(){return E}:F(E),b=W(j,o,k?2:1),g=0;if(typeof x!="function")throw TypeError(E+" is not iterable!");if(J(x)){for(f=K(E.length);f>g;g++)if(P=k?b(Y(y=E[g])[0],y[1]):b(E[g]),P===H||P===N)return P}else for(m=x.call(E);!(y=m.next()).done;)if(P=Q(m,b,y.value,k),P===H||P===N)return P};U.BREAK=H,U.RETURN=N},function(z,q){z.exports=function(G,W,Q){var J=Q===void 0;switch(W.length){case 0:return J?G():G.call(Q);case 1:return J?G(W[0]):G.call(Q,W[0]);case 2:return J?G(W[0],W[1]):G.call(Q,W[0],W[1]);case 3:return J?G(W[0],W[1],W[2]):G.call(Q,W[0],W[1],W[2]);case 4:return J?G(W[0],W[1],W[2],W[3]):G.call(Q,W[0],W[1],W[2],W[3])}return G.apply(Q,W)}},function(z,q,G){var W=G(11);z.exports=Object("z").propertyIsEnumerable(0)?Object:function(Q){return W(Q)=="String"?Q.split(""):Object(Q)}},function(z,q,G){var W=G(10),Q=G(1)("iterator"),J=Array.prototype;z.exports=function(Y){return Y!==void 0&&(W.Array===Y||J[Q]===Y)}},function(z,q,G){var W=G(3);z.exports=function(Q,J,Y,K){try{return K?J(W(Y)[0],Y[1]):J(Y)}catch(H){var F=Q.return;throw F!==void 0&&W(F.call(Q)),H}}},function(z,q,G){var W=G(49),Q=G(17),J=G(18),Y={};G(5)(Y,G(1)("iterator"),function(){return this}),z.exports=function(K,F,H){K.prototype=W(Y,{next:Q(1,H)}),J(K,F+" Iterator")}},function(z,q,G){var W=G(1)("iterator"),Q=!1;try{var J=[7][W]();J.return=function(){Q=!0},Array.from(J,function(){throw 2})}catch(Y){}z.exports=function(Y,K){if(!K&&!Q)return!1;var F=!1;try{var H=[7],N=H[W]();N.next=function(){return{done:F=!0}},H[W]=function(){return N},Y(H)}catch(U){}return F}},function(z,q){z.exports=function(G,W){return{value:W,done:!!G}}},function(z,q,G){var W=G(2),Q=G(30).set,J=W.MutationObserver||W.WebKitMutationObserver,Y=W.process,K=W.Promise,F=G(11)(Y)=="process";z.exports=function(){var H,N,U,E=function(){var S,f;for(F&&(S=Y.domain)&&S.exit();H;){f=H.fn,H=H.next;try{f()}catch(y){throw H?U():N=void 0,y}}N=void 0,S&&S.enter()};if(F)U=function(){Y.nextTick(E)};else if(J){var k=!0,j=document.createTextNode("");new J(E).observe(j,{characterData:!0}),U=function(){j.data=k=!k}}else if(K&&K.resolve){var o=K.resolve();U=function(){o.then(E)}}else U=function(){Q.call(W,E)};return function(S){var f={fn:S,next:void 0};N&&(N.next=f),H||(H=f,U()),N=f}}},function(z,q,G){var W=G(3),Q=G(50),J=G(22),Y=G(19)("IE_PROTO"),K=function(){},F="prototype",H=function(){var N,U=G(16)("iframe"),E=J.length,k=">";for(U.style.display="none",G(25).appendChild(U),U.src="javascript:",N=U.contentWindow.document,N.open(),N.write("<script>document.F=Object</script"+k),N.close(),H=N.F;E--;)delete H[F][J[E]];return H()};z.exports=Object.create||function(N,U){var E;return N!==null?(K[F]=W(N),E=new K,K[F]=null,E[Y]=N):E=H(),U===void 0?E:Q(E,U)}},function(z,q,G){var W=G(12),Q=G(3),J=G(54);z.exports=G(4)?Object.defineProperties:function(Y,K){Q(Y);for(var F,H=J(K),N=H.length,U=0;N>U;)W.f(Y,F=H[U++],K[F]);return Y}},function(z,q,G){var W=G(55),Q=G(17),J=G(13),Y=G(32),K=G(8),F=G(26),H=Object.getOwnPropertyDescriptor;q.f=G(4)?H:function(N,U){if(N=J(N),U=Y(U,!0),F)try{return H(N,U)}catch(E){}if(K(N,U))return Q(!W.f.call(N,U),N[U])}},function(z,q,G){var W=G(8),Q=G(63),J=G(19)("IE_PROTO"),Y=Object.prototype;z.exports=Object.getPrototypeOf||function(K){return K=Q(K),W(K,J)?K[J]:typeof K.constructor=="function"&&K instanceof K.constructor?K.constructor.prototype:K instanceof Object?Y:null}},function(z,q,G){var W=G(8),Q=G(13),J=G(39)(!1),Y=G(19)("IE_PROTO");z.exports=function(K,F){var H,N=Q(K),U=0,E=[];for(H in N)H!=Y&&W(N,H)&&E.push(H);for(;F.length>U;)W(N,H=F[U++])&&(~J(E,H)||E.push(H));return E}},function(z,q,G){var W=G(53),Q=G(22);z.exports=Object.keys||function(J){return W(J,Q)}},function(z,q){q.f={}.propertyIsEnumerable},function(z,q,G){var W=G(5);z.exports=function(Q,J,Y){for(var K in J)Y&&Q[K]?Q[K]=J[K]:W(Q,K,J[K]);return Q}},function(z,q,G){z.exports=G(5)},function(z,q,G){var W=G(9),Q=G(3),J=function(Y,K){if(Q(Y),!W(K)&&K!==null)throw TypeError(K+": can't set as prototype!")};z.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(Y,K,F){try{F=G(7)(Function.call,G(51).f(Object.prototype,"__proto__").set,2),F(Y,[]),K=!(Y instanceof Array)}catch(H){K=!0}return function(H,N){return J(H,N),K?H.__proto__=N:F(H,N),H}}({},!1):void 0),check:J}},function(z,q,G){var W=G(2),Q=G(6),J=G(12),Y=G(4),K=G(1)("species");z.exports=function(F){var H=typeof Q[F]=="function"?Q[F]:W[F];Y&&H&&!H[K]&&J.f(H,K,{configurable:!0,get:function(){return this}})}},function(z,q,G){var W=G(3),Q=G(14),J=G(1)("species");z.exports=function(Y,K){var F,H=W(Y).constructor;return H===void 0||(F=W(H)[J])==null?K:Q(F)}},function(z,q,G){var W=G(20),Q=G(15);z.exports=function(J){return function(Y,K){var F,H,N=String(Q(Y)),U=W(K),E=N.length;return U<0||U>=E?J?"":void 0:(F=N.charCodeAt(U),F<55296||F>56319||U+1===E||(H=N.charCodeAt(U+1))<56320||H>57343?J?N.charAt(U):F:J?N.slice(U,U+2):(F-55296<<10)+(H-56320)+65536)}}},function(z,q,G){var W=G(20),Q=Math.max,J=Math.min;z.exports=function(Y,K){return Y=W(Y),Y<0?Q(Y+K,0):J(Y,K)}},function(z,q,G){var W=G(15);z.exports=function(Q){return Object(W(Q))}},function(z,q,G){var W=G(21),Q=G(1)("iterator"),J=G(10);z.exports=G(6).getIteratorMethod=function(Y){if(Y!=null)return Y[Q]||Y["@@iterator"]||J[W(Y)]}},function(z,q,G){var W=G(37),Q=G(47),J=G(10),Y=G(13);z.exports=G(27)(Array,"Array",function(K,F){this._t=Y(K),this._i=0,this._k=F},function(){var K=this._t,F=this._k,H=this._i++;return!K||H>=K.length?(this._t=void 0,Q(1)):F=="keys"?Q(0,H):F=="values"?Q(0,K[H]):Q(0,[H,K[H]])},"values"),J.Arguments=J.Array,W("keys"),W("values"),W("entries")},function(z,q){},function(z,q,G){var W,Q,J,Y=G(28),K=G(2),F=G(7),H=G(21),N=G(23),U=G(9),E=(G(3),G(14)),k=G(38),j=G(40),o=(G(58).set,G(60)),S=G(30).set,f=G(48)(),y="Promise",m=K.TypeError,x=K.process,P=K[y],x=K.process,b=H(x)=="process",g=function(){},s=!!function(){try{var D=P.resolve(1),A=(D.constructor={})[G(1)("species")]=function(M){M(g,g)};return(b||typeof PromiseRejectionEvent=="function")&&D.then(g)instanceof A}catch(M){}}(),U0=function(D,A){return D===A||D===P&&A===J},I0=function(D){var A;return!(!U(D)||typeof(A=D.then)!="function")&&A},J0=function(D){return U0(P,D)?new v0(D):new Q(D)},v0=Q=function(D){var A,M;this.promise=new D(function(d,e){if(A!==void 0||M!==void 0)throw m("Bad Promise constructor");A=d,M=e}),this.resolve=E(A),this.reject=E(M)},i1=function(D){try{D()}catch(A){return{error:A}}},q1=function(D,A){if(!D._n){D._n=!0;var M=D._c;f(function(){for(var d=D._v,e=D._s==1,W1=0,a1=function(p0){var $0,u6,yZ=e?p0.ok:p0.fail,vZ=p0.resolve,o1=p0.reject,l6=p0.domain;try{yZ?(e||(D._h==2&&g0(D),D._h=1),yZ===!0?$0=d:(l6&&l6.enter(),$0=yZ(d),l6&&l6.exit()),$0===p0.promise?o1(m("Promise-chain cycle")):(u6=I0($0))?u6.call($0,vZ,o1):vZ($0)):o1(d)}catch(cS){o1(cS)}};M.length>W1;)a1(M[W1++]);D._c=[],D._n=!1,A&&!D._h&&SZ(D)})}},SZ=function(D){S.call(K,function(){var A,M,d,e=D._v;if(Q0(D)&&(A=i1(function(){b?x.emit("unhandledRejection",e,D):(M=K.onunhandledrejection)?M({promise:D,reason:e}):(d=K.console)&&d.error&&d.error("Unhandled promise rejection",e)}),D._h=b||Q0(D)?2:1),D._a=void 0,A)throw A.error})},Q0=function(D){if(D._h==1)return!1;for(var A,M=D._a||D._c,d=0;M.length>d;)if(A=M[d++],A.fail||!Q0(A.promise))return!1;return!0},g0=function(D){S.call(K,function(){var A;b?x.emit("rejectionHandled",D):(A=K.onrejectionhandled)&&A({promise:D,reason:D._v})})},q0=function(D){var A=this;A._d||(A._d=!0,A=A._w||A,A._v=D,A._s=2,A._a||(A._a=A._c.slice()),q1(A,!0))},_Z=function(D){var A,M=this;if(!M._d){M._d=!0,M=M._w||M;try{if(M===D)throw m("Promise can't be resolved itself");(A=I0(D))?f(function(){var d={_w:M,_d:!1};try{A.call(D,F(_Z,d,1),F(q0,d,1))}catch(e){q0.call(d,e)}}):(M._v=D,M._s=1,q1(M,!1))}catch(d){q0.call({_w:M,_d:!1},d)}}};s||(P=function(D){k(this,P,y,"_h"),E(D),W.call(this);try{D(F(_Z,this,1),F(q0,this,1))}catch(A){q0.call(this,A)}},W=function(D){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},W.prototype=G(56)(P.prototype,{then:function(D,A){var M=J0(o(this,P));return M.ok=typeof D!="function"||D,M.fail=typeof A=="function"&&A,M.domain=b?x.domain:void 0,this._c.push(M),this._a&&this._a.push(M),this._s&&q1(this,!1),M.promise},catch:function(D){return this.then(void 0,D)}}),v0=function(){var D=new W;this.promise=D,this.resolve=F(_Z,D,1),this.reject=F(q0,D,1)}),N(N.G+N.W+N.F*!s,{Promise:P}),G(18)(P,y),G(59)(y),J=G(6)[y],N(N.S+N.F*!s,y,{reject:function(D){var A=J0(this),M=A.reject;return M(D),A.promise}}),N(N.S+N.F*(Y||!s),y,{resolve:function(D){if(D instanceof P&&U0(D.constructor,this))return D;var A=J0(this),M=A.resolve;return M(D),A.promise}}),N(N.S+N.F*!(s&&G(46)(function(D){P.all(D).catch(g)})),y,{all:function(D){var A=this,M=J0(A),d=M.resolve,e=M.reject,W1=i1(function(){var a1=[],p0=0,$0=1;j(D,!1,function(u6){var yZ=p0++,vZ=!1;a1.push(void 0),$0++,A.resolve(u6).then(function(o1){vZ||(vZ=!0,a1[yZ]=o1,--$0||d(a1))},e)}),--$0||d(a1)});return W1&&e(W1.error),M.promise},race:function(D){var A=this,M=J0(A),d=M.reject,e=i1(function(){j(D,!1,function(W1){A.resolve(W1).then(M.resolve,d)})});return e&&d(e.error),M.promise}})},function(z,q,G){var W=G(61)(!0);G(27)(String,"String",function(Q){this._t=String(Q),this._i=0},function(){var Q,J=this._t,Y=this._i;return Y>=J.length?{value:void 0,done:!0}:(Q=W(J,Y),this._i+=Q.length,{value:Q,done:!1})})},function(z,q,G){G(65);for(var W=G(2),Q=G(5),J=G(10),Y=G(1)("toStringTag"),K=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],F=0;F<5;F++){var H=K[F],N=W[H],U=N&&N.prototype;U&&!U[Y]&&Q(U,Y,H),J[H]=J.Array}},function(z,q){z.exports=h("child_process")},function(z,q){z.exports=h("crypto")}])})});class c6{name;metadata;meter;logger;enabled;distinctId;commonProperties;counters=new Map;histograms=new Map;gauges=new Map;gaugeValues=new Map;meterProvider;loggerProvider;constructor(Z){this.name=Z.name??"OpenTelemetryAdapter",this.metadata={...Z.metadata},this.meterProvider=Z.meterProvider,this.loggerProvider=Z.loggerProvider,this.meter=Z.meterProvider?.getMeter("cline")??null,this.logger=Z.loggerProvider?.getLogger("cline")??null,this.enabled=Z.enabled??!0,this.distinctId=Z.distinctId,this.commonProperties=Z.commonProperties?{...Z.commonProperties}:{}}emit(Z,X){if(!this.isEnabled())return;this.emitLog(Z,X,!1)}emitRequired(Z,X){this.emitLog(Z,X,!0)}recordCounter(Z,X,z,q,G=!1){if(!this.meter||!G&&!this.isEnabled())return;let W=this.counters.get(Z);if(!W)W=this.meter.createCounter(Z,q?{description:q}:void 0),this.counters.set(Z,W);W.add(X,this.flattenProperties(this.buildAttributes(z)))}recordHistogram(Z,X,z,q,G=!1){if(!this.meter||!G&&!this.isEnabled())return;let W=this.histograms.get(Z);if(!W)W=this.meter.createHistogram(Z,q?{description:q}:void 0),this.histograms.set(Z,W);W.record(X,this.flattenProperties(this.buildAttributes(z)))}recordGauge(Z,X,z,q,G=!1){if(!this.meter||!G&&!this.isEnabled())return;let W=this.buildAttributes(z),Q=JSON.stringify(W),J=this.gaugeValues.get(Z);if(X===null){if(J){if(J.delete(Q),J.size===0)this.gaugeValues.delete(Z),this.gauges.delete(Z)}return}let Y=J;if(!Y)Y=new Map,this.gaugeValues.set(Z,Y);if(!this.gauges.has(Z)){let K=this.meter.createObservableGauge(Z,q?{description:q}:void 0);K.addCallback((F)=>{for(let H of this.snapshotGaugeSeries(Z))F.observe(H.value,this.flattenProperties(H.attributes))}),this.gauges.set(Z,K)}Y.set(Q,{value:X,attributes:W})}isEnabled(){return typeof this.enabled==="function"?this.enabled():this.enabled}setDistinctId(Z){this.distinctId=Z}setCommonProperties(Z){this.commonProperties={...Z}}updateCommonProperties(Z){this.commonProperties={...this.commonProperties,...Z}}async flush(){await Promise.all([this.meterProvider?.forceFlush?.(),this.loggerProvider?.forceFlush?.()])}async dispose(){await Promise.all([this.meterProvider?.shutdown?.(),this.loggerProvider?.shutdown?.()])}emitLog(Z,X,z){if(!this.logger)return;let q=this.flattenProperties(this.buildAttributes(X,z));this.logger.emit({severityText:"INFO",body:Z,attributes:q})}buildAttributes(Z,X=!1){return{...this.commonProperties,...this.metadata,...Z,...this.distinctId?{distinct_id:this.distinctId}:{},...X?{_required:!0}:{}}}snapshotGaugeSeries(Z){let X=this.gaugeValues.get(Z);if(!X)return[];return Array.from(X.values(),(z)=>({value:z.value,attributes:z.attributes?{...z.attributes}:void 0}))}flattenProperties(Z,X="",z=new WeakSet,q=0){if(!Z)return{};let G={},W=100,Q=10;for(let[J,Y]of Object.entries(Z)){if(J==="__proto__"||J==="constructor"||J==="prototype")continue;let K=X?`${X}.${J}`:J;if(Y===null||Y===void 0){G[K]=String(Y);continue}if(Array.isArray(Y)){let F=Y.length>W?Y.slice(0,W):Y;try{G[K]=JSON.stringify(F)}catch{G[K]="[UnserializableArray]"}if(Y.length>W)G[`${K}_truncated`]=!0,G[`${K}_original_length`]=Y.length;continue}if(typeof Y==="object"){if(Y instanceof Date){G[K]=Y.toISOString();continue}if(Y instanceof Error){G[K]=Y.message;continue}if(z.has(Y)){G[K]="[Circular]";continue}if(q>=Q){G[K]="[MaxDepthExceeded]";continue}z.add(Y),Object.assign(G,this.flattenProperties(Y,K,z,q+1));continue}if(rS(Y)){G[K]=Y;continue}try{G[K]=JSON.stringify(Y)}catch{G[K]=String(Y)}}return G}}function rS(Z){return typeof Z==="string"||typeof Z==="number"||typeof Z==="boolean"}var d7=u(I(),1),vS=u(ZZ(),1),jS=u(bL(),1),xS=u(rL(),1),bS=u(zT(),1),dS=u(G7(),1),kZ=u(mM(),1),p1=u(hk(),1),fZ=u(j7(),1),uS=u(hS(),1),u7=u(w0(),1);import{existsSync as gX0,mkdirSync as pX0,readFileSync as iX0,writeFileSync as aX0}from"node:fs";import{resolve as oX0}from"node:path";import{homedir as cX0}from"node:os";import{dirname as hN0,join as y9,resolve as kN0}from"node:path";function nX0(){let Z=process?.env?.HOME?.trim();if(Z&&Z!=="~")return Z;let X=process?.env?.USERPROFILE?.trim();if(X)return X;let z=process?.env?.HOMEDRIVE?.trim(),q=process?.env?.HOMEPATH?.trim();if(z&&q)return`${z}${q}`;let G=cX0().trim();if(G&&G!=="~")return G;return"~"}var mX0=nX0();var kS;function fS(){if(kS)return kS;let Z=process.env.CLINE_DIR?.trim();if(Z)return Z;return y9(mX0,".cline")}function SS(){let Z=process.env.CLINE_DATA_DIR?.trim();if(Z)return Z;return y9(fS(),"data")}function v9(){let Z=process.env.CLINE_SESSION_DATA_DIR?.trim();if(Z)return Z;return y9(SS(),"sessions")}var yS=u(_S(),1);import{nanoid as tX0}from"nanoid";var rX0="machine-id";function x9(Z){let X=Z?.trim();if(X)return X;let z=sX0();if(z)return z;return eX0()}function sX0(){try{return yS.machineIdSync().trim()||void 0}catch{return}}function eX0(){let Z=v9(),X=oX0(Z,rX0);try{if(gX0(X)){let q=iX0(X,"utf8").trim();if(q.length>0)return q}}catch{}let z=`cl-${tX0()}`;try{pX0(Z,{recursive:!0}),aX0(X,z,"utf8")}catch{}return z}class b9{name;logger;enabled;constructor(Z={}){this.name=Z.name??"TelemetryLoggerSink",this.logger=Z.logger,this.enabled=Z.enabled??!0}emit(Z,X){if(!this.isEnabled())return;this.logger?.log("telemetry.event",{telemetrySink:this.name,event:Z,properties:X})}emitRequired(Z,X){this.logger?.log("telemetry.required_event",{telemetrySink:this.name,severity:"warn",event:Z,properties:X})}recordCounter(Z,X,z,q,G){if(!G&&!this.isEnabled())return;this.logger?.debug("telemetry.metric",{telemetrySink:this.name,instrument:"counter",name:Z,value:X,attributes:z,description:q,required:G===!0})}recordHistogram(Z,X,z,q,G){if(!G&&!this.isEnabled())return;this.logger?.debug("telemetry.metric",{telemetrySink:this.name,instrument:"histogram",name:Z,value:X,attributes:z,description:q,required:G===!0})}recordGauge(Z,X,z,q,G){if(!G&&!this.isEnabled())return;this.logger?.debug("telemetry.metric",{telemetrySink:this.name,instrument:"gauge",name:Z,value:X,attributes:z,description:q,required:G===!0})}isEnabled(){return typeof this.enabled==="function"?this.enabled():this.enabled}async flush(){}async dispose(){}}class b7{adapters;metadata;distinctId;commonProperties;constructor(Z={}){if(this.adapters=[...Z.adapters??[]],Z.logger)this.adapters.push(new b9({logger:Z.logger}));this.metadata={...Z.metadata??{}},this.distinctId=Z.distinctId,this.commonProperties={...Z.commonProperties??{}}}addAdapter(Z){this.adapters.push(Z)}setDistinctId(Z){this.distinctId=Z}setMetadata(Z){this.metadata={...Z}}updateMetadata(Z){this.metadata={...this.metadata,...Z}}setCommonProperties(Z){this.commonProperties={...Z}}updateCommonProperties(Z){this.commonProperties={...this.commonProperties,...Z}}isEnabled(){return this.adapters.some((Z)=>Z.isEnabled())}capture(Z){let X=this.buildAttributes(Z.properties);for(let z of this.adapters)z.emit(Z.event,X)}captureRequired(Z,X){let z=this.buildAttributes(X);for(let q of this.adapters)q.emitRequired(Z,z)}recordCounter(Z,X,z,q,G=!1){let W=this.buildAttributes(z);for(let Q of this.adapters)Q.recordCounter(Z,X,W,q,G)}recordHistogram(Z,X,z,q,G=!1){let W=this.buildAttributes(z);for(let Q of this.adapters)Q.recordHistogram(Z,X,W,q,G)}recordGauge(Z,X,z,q,G=!1){let W=this.buildAttributes(z);for(let Q of this.adapters)Q.recordGauge(Z,X,W,q,G)}async flush(){await Promise.all(this.adapters.map((Z)=>Z.flush()))}async dispose(){await Promise.all(this.adapters.map((Z)=>Z.dispose()))}buildAttributes(Z){return{...this.commonProperties,...Z,...this.metadata,...this.distinctId?{distinct_id:this.distinctId}:{}}}}class u9{meterProvider;loggerProvider;tracerProvider;options;constructor(Z={}){this.options=Z;let X=dS.resourceFromAttributes({[u7.ATTR_SERVICE_NAME]:Z.serviceName??"cline",...Z.serviceVersion?{[u7.ATTR_SERVICE_VERSION]:Z.serviceVersion}:{}});if(this.meterProvider=this.createMeterProvider(X),this.loggerProvider=this.createLoggerProvider(X),this.tracerProvider=this.createTracerProvider(X),this.meterProvider)d7.metrics.setGlobalMeterProvider(this.meterProvider);if(this.loggerProvider)vS.logs.setGlobalLoggerProvider(this.loggerProvider);if(this.tracerProvider)this.tracerProvider.register()}getTracer(Z="cline",X){return d7.trace.getTracer(Z,X??this.options.serviceVersion)}createAdapter(Z){return new c6({...Z,meterProvider:this.meterProvider,loggerProvider:this.loggerProvider})}createTelemetryService(Z){let X=this.createAdapter({name:Z.name,enabled:this.options.enabled,metadata:Z.metadata});return new b7({...Z,adapters:[X],distinctId:x9(Z.distinctId)})}async forceFlush(){await Promise.all([this.meterProvider?.forceFlush?.(),this.loggerProvider?.forceFlush?.(),this.tracerProvider?.forceFlush?.()])}async dispose(){await Promise.all([this.meterProvider?.shutdown?.(),this.loggerProvider?.shutdown?.(),this.tracerProvider?.shutdown?.()])}createMeterProvider(Z){let X=d9(this.options.metricsExporter);if(X.length===0)return null;let z=Math.max(1000,this.options.metricExportIntervalMs??this.options.metricExportInterval??60000),q=Math.min(30000,Math.floor(z*0.8)),G=X.map((W)=>X30(W,{endpoint:this.options.otlpEndpoint,headers:this.options.otlpHeaders,insecure:this.options.otlpInsecure??!1,protocol:"http/json",interval:z,timeout:q})).filter((W)=>W!==null);if(G.length===0)return null;return new p1.MeterProvider({resource:Z,readers:G})}createTracerProvider(Z){let X=d9(this.options.tracesExporter);if(X.length===0)return null;let z=this.options.otlpTracesEndpoint??this.options.otlpEndpoint,q=this.options.otlpTracesHeaders??this.options.otlpHeaders,G=[];for(let W of X){let Q=Q30(W,{endpoint:z,headers:q,insecure:this.options.otlpInsecure??!1,protocol:"http/json"});if(Q)G.push(Q)}if(G.length===0)return null;return new uS.NodeTracerProvider({resource:Z,spanProcessors:G})}createLoggerProvider(Z){let X=d9(this.options.logsExporter);if(X.length===0)return null;let z=X.map((q)=>{let G=J30(q,{endpoint:this.options.otlpEndpoint,headers:this.options.otlpHeaders,insecure:this.options.otlpInsecure??!1,protocol:"http/json"});if(!G)return null;return new kZ.BatchLogRecordProcessor(G,{maxQueueSize:this.options.logMaxQueueSize??2048,maxExportBatchSize:this.options.logBatchSize??512,scheduledDelayMillis:this.options.logBatchTimeoutMs??this.options.logBatchTimeout??5000})}).filter((q)=>q!==null);if(z.length===0)return null;return new kZ.LoggerProvider({resource:Z,processors:z})}}function lS(Z){let X=new u9(Z),z=X.createTelemetryService(Z);return z.captureRequired("telemetry.provider_created",{provider:"opentelemetry",enabled:Z.enabled??!0,logsExporter:Array.isArray(Z.logsExporter)?Z.logsExporter.join(","):Z.logsExporter,metricsExporter:Array.isArray(Z.metricsExporter)?Z.metricsExporter.join(","):Z.metricsExporter,tracesExporter:Array.isArray(Z.tracesExporter)?Z.tracesExporter.join(","):Z.tracesExporter,otlpProtocol:Z.otlpProtocol,hasOtlpEndpoint:Boolean(Z.otlpEndpoint),serviceName:Z.serviceName,serviceVersion:Z.serviceVersion}),{provider:X,telemetry:z}}function Z30(Z){if(Z.enabled!==!0)return{telemetry:new b7({...Z,distinctId:x9(Z.distinctId)})};return lS(Z)}function d9(Z){if(!Z)return[];return(Array.isArray(Z)?Z:Z.split(",")).map((z)=>z.trim()).filter((z)=>z==="console"||z==="otlp")}function J30(Z,X){if(Z==="console")return new kZ.ConsoleLogRecordExporter;if(!X.endpoint)return null;let z=l9(X.endpoint,"/v1/logs");return new jS.OTLPLogExporter({url:z,headers:X.headers})}function Q30(Z,X){if(Z==="console")return new fZ.SimpleSpanProcessor(new fZ.ConsoleSpanExporter);if(!X.endpoint)return null;let z=l9(X.endpoint,"/v1/traces");return new fZ.BatchSpanProcessor(new bS.OTLPTraceExporter({url:z,headers:X.headers}))}function X30(Z,X){if(Z==="console")return new p1.PeriodicExportingMetricReader({exporter:new p1.ConsoleMetricExporter,exportIntervalMillis:X.interval,exportTimeoutMillis:X.timeout});if(!X.endpoint)return null;let z=l9(X.endpoint,"/v1/metrics");return new p1.PeriodicExportingMetricReader({exporter:new xS.OTLPMetricExporter({url:z,headers:X.headers}),exportIntervalMillis:X.interval,exportTimeoutMillis:X.timeout})}function l9(Z,X){let z=new URL(Z),q=z.pathname.endsWith("/")?z.pathname.slice(0,-1):z.pathname;return z.pathname=q.endsWith(X)?q:`${q}${X}`,z.toString()}export{lS as createOpenTelemetryTelemetryService,Z30 as createConfiguredTelemetryService,u9 as OpenTelemetryProvider,c6 as OpenTelemetryAdapter};
|