vendor: 5,366 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6493],{88:e=>{"use strict";e.exports=EvalError},3517:(e,t,r)=>{"use strict";var n=r(20685),i=r(17462),o=r(57121),s=r(33420);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!s&&s(e,t);if(n)n(e,t,{configurable:null===l&&f?f.configurable:!l,enumerable:null===a&&f?f.enumerable:!a,value:r,writable:null===u&&f?f.writable:!u});else if(!c&&(a||u||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},5142:(e,t,r)=>{"use strict";var n=r(27763);e.exports=function(){return n()&&!!Symbol.toStringTag}},5408:(e,t,r)=>{"use strict";var n=r(46284),i=r(36825),o=r(58975),s=r(71033);function a(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=a(Object.prototype.toString),f=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(u)var y=a(BigInt.prototype.valueOf);if(l)var d=a(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"[object Map]"===c(e)}function b(e){return"[object Set]"===c(e)}function v(e){return"[object WeakMap]"===c(e)}function w(e){return"[object WeakSet]"===c(e)}function _(e){return"[object ArrayBuffer]"===c(e)}function A(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function O(e){return"[object DataView]"===c(e)}function S(e){return"undefined"!=typeof DataView&&(O.working?O(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||S(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=A,O.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&O(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=S;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(e){return"[object SharedArrayBuffer]"===c(e)}function P(e){return void 0!==E&&(void 0===x.working&&(x.working=x(new E)),x.working?x(e):e instanceof E)}function T(e){return g(e,f)}function R(e){return g(e,p)}function j(e){return g(e,h)}function L(e){return u&&g(e,y)}function I(e){return l&&g(e,d)}t.isSharedArrayBuffer=P,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=T,t.isStringObject=R,t.isBooleanObject=j,t.isBigIntObject=L,t.isSymbolObject=I,t.isBoxedPrimitive=function(e){return T(e)||R(e)||j(e)||L(e)||I(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(A(e)||P(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},6553:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});
1class n{_promise;_resolve;_reject;constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get promise(){return this._promise}resolve(e){this._resolve(e)}reject(e){this._reject(e)}}class i{_callback;_that;_isCalled=!1;_deferred=new n;constructor(e,t){this._callback=e,this._that=t}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...e){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...e)).then(e=>this._deferred.resolve(e),e=>this._deferred.reject(e))}catch(e){this._deferred.reject(e)}}return this._deferred.promise}}},8067:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},a=function(e){try{if(s(e))return!1;return n.call(e),!0}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(f=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!s(e)&&a(e)}:function(e){if(f(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(l)return a(e);if(s(e))return!1;var t=u.call(e);return("[object Function]"===t||"[object GeneratorFunction]"===t||!!/^\[object HTML/.test(t))&&a(e)}},10134:e=>{"use strict";e.exports=RangeError},12392:(e,t,r)=>{"use strict";var n=r(41822);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},12820:e=>{"use strict";e.exports=Function.prototype.apply},15691:function(e){e.exports=function(){"use strict";function e(e){return Number.isInteger(e)&&e>=0}function t(e){this.name="ArgumentError",this.message=e}return function(r,n){if(n=n||{},"function"!=typeof r)throw new t("fetch must be a function");if("object"!=typeof n)throw new t("defaults must be an object");if(void 0!==n.retries&&!e(n.retries))throw new t("retries must be a positive integer");if(void 0!==n.retryDelay&&!e(n.retryDelay)&&"function"!=typeof n.retryDelay)throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==n.retryOn&&!Array.isArray(n.retryOn)&&"function"!=typeof n.retryOn)throw new t("retryOn property expects an array or function");return n=Object.assign({retries:3,retryDelay:1e3,retryOn:[]},n),function(i,o){var s=n.retries,a=n.retryDelay,u=n.retryOn;if(o&&void 0!==o.retries)if(e(o.retries))s=o.retries;else throw new t("retries must be a positive integer");if(o&&void 0!==o.retryDelay)if(e(o.retryDelay)||"function"==typeof o.retryDelay)a=o.retryDelay;else throw new t("retryDelay must be a positive integer or a function returning a positive integer");if(o&&o.retryOn)if(Array.isArray(o.retryOn)||"function"==typeof o.retryOn)u=o.retryOn;else throw new t("retryOn property expects an array or function");return new Promise(function(e,t){var n=function(n){r("undefined"!=typeof Request&&i instanceof Request?i.clone():i,o).then(function(r){if(Array.isArray(u)&&-1===u.indexOf(r.status))e(r);else if("function"==typeof u)try{return Promise.resolve(u(n,null,r)).then(function(t){t?l(n,null,r):e(r)}).catch(t)}catch(e){t(e)}else n<s?l(n,null,r):e(r)}).catch(function(e){if("function"==typeof u)try{Promise.resolve(u(n,e,null)).then(function(r){r?l(n,e,null):t(e)}).catch(function(e){t(e)})}catch(e){t(e)}else n<s?l(n,e,null):t(e)})};function l(e,t,r){setTimeout(function(){n(++e)},"function"==typeof a?a(e,t,r):a)}n(0)})}}}()},16005:(e,t,r)=>{"use strict";r.d(t,{jJ:()=>b,$b:()=>d,Vy:()=>g});var n=r(48918);let i=e=>"process"in globalThis?globalThis.process.env[e]:void 0,o=i("NEXT_PUBLIC_VERCEL")||i("VERCEL"),s="true"==i("NETLIFY"),a=i("NODE_ENV"),u=i("REGION")||void 0,l="undefined"!=typeof self&&void 0!==globalThis.WorkerGlobalScope&&self instanceof WorkerGlobalScope,c="undefined"!=typeof window||l,f=!!globalThis.EdgeRuntime,p=[e=>(o?(e.vercel={environment:i("VERCEL_ENV")??a,region:i("VERCEL_REGION"),deploymentId:i("VERCEL_DEPLOYMENT_ID"),deploymentUrl:i("NEXT_PUBLIC_VERCEL_URL"),project:i("NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL"),source:e.source},e.git={commit:i("NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA"),repo:i("NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG"),ref:i("NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF")}):s?e.netlify={environment:a,region:f?i("DENO_REGION"):i("AWS_REGION"),siteId:i("SITE_ID"),buildId:i("BUILD_ID"),context:i("CONTEXT"),deploymentUrl:i("DEPLOYMENT_URL"),deploymentId:f?i("DENO_DEPLOYMENT_ID"):i("NETLIFY_DEPLOYMENT_ID"),source:e.source}:e.platform={environment:a,region:u,source:e.source},e)],h=Symbol.for("logging.event"),y={debug:0,info:1,warn:2,error:3,off:100},d={debug:"debug",info:"info",warn:"warn",error:"error",off:"off"};class g{constructor(e){this.initConfig=e,void 0!=this.initConfig.logLevel?this.logLevel=y[this.initConfig.logLevel]:this.logLevel=y.info,this.config={...e},this.config.overrideDefaultFormatters||(this.config.formatters=[...p,...this.config.formatters??[]])}children=[];logLevel=y.debug;config;
1raw(e){this.config.transports.forEach(t=>t.log([e]))}debug=(e,t={})=>{this.log(d.debug,e,t)};info=(e,t={})=>{this.log(d.info,e,t)};warn=(e,t={})=>{this.log(d.warn,e,t)};error=(e,t={})=>{this.log(d.error,e,t)};with=e=>{let{[h]:t,...r}=this.config.args??{},{[h]:n,...i}=e,o={...t??{},...n??{}},s=new g({...this.config,args:{...r,...i,[h]:o}});return this.children.push(s),s};_transformEvent=(e,t,r={})=>{let n={},i=this.config.args??{};if(this.config.args&&h in this.config.args){let{[h]:e,...t}=this.config.args??{};n={...e??{}},i=t}let o={level:d[e].toString(),message:t,_time:new Date(Date.now()).toISOString(),fields:i,"@app":{"axiom-logging-version":"0.1.7"},source:c?"browser-log":"server-log"};if(n&&"object"==typeof n&&Object.assign(o,n),r instanceof Error&&(o.fields={...o.fields,message:r.message,stack:r.stack,name:r.name}),"object"==typeof r&&null!==r){let{[h]:e,...t}=r,n=JSON.parse(JSON.stringify(t,m));e&&"object"==typeof e&&null!==e&&Object.assign(o,e),Object.keys(n).length>0&&(o.fields={...o.fields,...n})}else Array.isArray(r)&&(o.fields={...o.fields,args:r});return this.config.formatters&&this.config.formatters.length>0?this.config.formatters.reduce((e,t)=>t(e),o):o};log=(e,t,r={})=>{this.config.transports.forEach(n=>n.log([this._transformEvent(e,t,r)]))};flush=async()=>{let e=[...this.config.transports.map(e=>e.flush()),...this.children.map(e=>e.flush())];await Promise.allSettled(e)}}function m(e,t){return t instanceof Error?{...t,name:t.name,message:t.message,stack:t.stack}:t}class b{config;promises=[];constructor(e){this.config=e}log(e){let t=e.filter(e=>y[e.level??d.info]>=y[this.config.logLevel??d.info]);0!==t.length&&(this.config.axiom instanceof n.LG?this.config.axiom.ingest(this.config.dataset,t):this.config.axiom instanceof n.$v&&this.promises.push(this.config.axiom.ingest(this.config.dataset,t)))}async flush(){this.config.axiom instanceof n.LG?await this.config.axiom.flush():await Promise.allSettled(this.promises),this.promises=[]}}},17462:e=>{"use strict";e.exports=SyntaxError},20685:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},22e3:(e,t,r)=>{"use strict";r.d(t,{E:()=>h});var n=r(60019),i=r(39721),o=r(6553),s=r(87142);function a(e){try{var t;i.s.error((t=e,"string"==typeof t?t:JSON.stringify(function(e){let t={},r=e;for(;null!==r;)Object.getOwnPropertyNames(r).forEach(e=>{if(t[e])return;let n=r[e];n&&(t[e]=String(n))}),r=Object.getPrototypeOf(r);return t}(t))))}catch{}}var u=r(87947);let l=(0,r(42814).n)("OpenTelemetry SDK Context Key SUPPRESS_TRACING"),c={_export:function(e,t){return new Promise(r=>{u._.with(u._.active().setValue(l,!0),()=>{e.export(t,e=>{r(e)})})})}};var f=r(77842);class p{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_finishedLogRecords=[];_timer;_shutdownOnce;constructor(e,t){this._exporter=e,this._maxExportBatchSize=t?.maxExportBatchSize??(0,n.Jk)("OTEL_BLRP_MAX_EXPORT_BATCH_SIZE")??512,this._maxQueueSize=t?.maxQueueSize??(0,n.Jk)("OTEL_BLRP_MAX_QUEUE_SIZE")??2048,this._scheduledDelayMillis=t?.scheduledDelayMillis??(0,n.Jk)("OTEL_BLRP_SCHEDULE_DELAY")??5e3,this._exportTimeoutMillis=t?.exportTimeoutMillis??(0,n.Jk)("OTEL_BLRP_EXPORT_TIMEOUT")??3e4,this._shutdownOnce=new o.I(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(i.s.warn("BatchLogRecordProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}onEmit(e){this._shutdownOnce.isCalled||this._addToBuffer(e)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}shutdown(){return this._shutdownOnce.call()}async _shutdown(){this.onShutdown(),await this._flushAll(),await this._exporter.shutdown()}_addToBuffer(e){this._finishedLogRecords.length>=this._maxQueueSize||(this._finishedLogRecords.push(e),this._maybeStartTimer())}_flushAll(){return new Promise((e,t)=>{let r=[],n=Math.ceil(this._finishedLogRecords.length/this._maxExportBatchSize);for(let e=0;e<n;e++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{e()}).catch(t)})}_flushOneBatch(){return(this._clearTimer(),0===this._finishedLogRecords.length)?Promise.resolve():new Promise((e,t)=>
1{(0,s.o)(this._export(this._finishedLogRecords.splice(0,this._maxExportBatchSize)),this._exportTimeoutMillis).then(()=>e()).catch(t)})}_maybeStartTimer(){void 0===this._timer&&(this._timer=setTimeout(()=>{this._flushOneBatch().then(()=>{this._finishedLogRecords.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(e=>{a(e)})},this._scheduledDelayMillis),this._timer)}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}_export(e){let t=()=>c._export(this._exporter,e).then(e=>{e.code!==f.V.SUCCESS&&a(e.error??Error(`BatchLogRecordProcessor: log record export failed (status ${e})`))}).catch(a),r=e.map(e=>e.resource).filter(e=>e.asyncAttributesPending);return 0===r.length?t():Promise.all(r.map(e=>e.waitForAsyncAttributes?.())).then(t,a)}}class h extends p{_visibilityChangeListener;_pageHideListener;constructor(e,t){super(e,t),this._onInit(t)}onShutdown(){"undefined"!=typeof document&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}_onInit(e){e?.disableAutoFlushOnDocumentHide!==!0&&"undefined"!=typeof document&&(this._visibilityChangeListener=()=>{"hidden"===document.visibilityState&&this.forceFlush()},this._pageHideListener=()=>{this.forceFlush()},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}}},24218:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},24803:e=>{"use strict";e.exports=Error},26484:(e,t,r)=>{"use strict";r.d(t,{B:()=>x});class n{_delegate;constructor(e){this._delegate=e}export(e,t){this._delegate.export(e,t)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}var i=r(74891);function o(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function s(e){let t=new Uint8Array(e.length/2),r=0;for(let n=0;n<e.length;n+=2){let i=o(e.charCodeAt(n)),s=o(e.charCodeAt(n+1));t[r++]=i<<4|s}return t}function a(e){let t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function u(e){var t=a(e);return{low:Number(BigInt.asUintN(32,t)),high:Number(BigInt.asUintN(32,t>>BigInt(32)))}}let l="undefined"!=typeof BigInt?function(e){return a(e).toString()}:i.u5;function c(e){return e}function f(e){if(void 0!==e)return s(e)}let p={encodeHrTime:u,encodeSpanContext:s,encodeOptionalSpanContext:f};function h(e,t){return{key:e,value:y(t)}}function y(e){let t=typeof e;return"string"===t?{stringValue:e}:"number"===t?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:"boolean"===t?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(y)}}:"object"===t&&null!=e?{kvlistValue:{values:Object.entries(e).map(([e,t])=>h(e,t))}}:{}}
1let d={serializeRequest:e=>{var t,r;let n={resourceLogs:(t=e,r=function(e){if(void 0===e)return p;let t=e.useLongBits??!0,r=e.useHex??!1;return{encodeHrTime:t?u:l,encodeSpanContext:r?c:s,encodeOptionalSpanContext:r?c:f}}({useHex:!0,useLongBits:!1}),Array.from(function(e){let t=new Map;for(let r of e){let{resource:e,instrumentationScope:{name:n,version:i="",schemaUrl:o=""}}=r,s=t.get(e);s||(s=new Map,t.set(e,s));let a=`${n}@${i}:${o}`,u=s.get(a);u||(u=[],s.set(a,u)),u.push(r)}return t}(t),([e,t])=>{var n;return{resource:{attributes:Object.keys(n=e.attributes).map(e=>h(e,n[e])),droppedAttributesCount:0},scopeLogs:Array.from(t,([,e])=>{var t;return{scope:{name:(t=e[0].instrumentationScope).name,version:t.version},logRecords:e.map(e=>{var t,n,i;return t=e,{timeUnixNano:(n=r).encodeHrTime(t.hrTime),observedTimeUnixNano:n.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:y(t.body),eventName:t.eventName,attributes:Object.keys(i=t.attributes).map(e=>h(e,i[e])),droppedAttributesCount:t.droppedAttributesCount,flags:t.spanContext?.traceFlags,traceId:n.encodeOptionalSpanContext(t.spanContext?.traceId),spanId:n.encodeOptionalSpanContext(t.spanContext?.spanId)}}),schemaUrl:e[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}}))};return new TextEncoder().encode(JSON.stringify(n))},deserializeResponse:e=>0===e.length?{}:JSON.parse(new TextDecoder().decode(e))};class g{_transport;constructor(e){this._transport=e}retry(e,t,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(e,t).then(n,i)},r)})}async send(e,t){let r=Date.now()+t,n=await this._transport.send(e,t),i=5,o=1e3;for(;"retryable"===n.status&&i>0;){i--;let t=Math.max(Math.min(o,5e3)+(.4*Math.random()-.2),0);o*=1.5;let s=n.retryInMillis??t,a=r-Date.now();if(s>a)break;n=await this.retry(e,a,s)}return n}shutdown(){return this._transport.shutdown()}}function m(e){return new g(e.transport)}var b=r(39721);class v{_parameters;constructor(e){this._parameters=e}send(e,t){return new Promise(r=>{let n=new XMLHttpRequest;n.timeout=t,n.open("POST",this._parameters.url),Object.entries(this._parameters.headers()).forEach(([e,t])=>{n.setRequestHeader(e,t)}),n.ontimeout=e=>{r({status:"failure",error:Error("XHR request timed out")})},n.onreadystatechange=()=>{n.status>=200&&n.status<=299?(b.s.debug("XHR success"),r({status:"success"})):n.status&&[429,502,503,504].includes(n.status)?r({status:"retryable",retryInMillis:function(e){if(null==e)return;let t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?1e3*t:-1;let r=new Date(e).getTime()-Date.now();return r>=0?r:0}(n.getResponseHeader("Retry-After"))}):0!==n.status&&r({status:"failure",error:Error("XHR request failed with non-retryable status")})},n.onabort=()=>{r({status:"failure",error:Error("XHR request aborted")})},n.onerror=()=>{r({status:"failure",error:Error("XHR request errored")})},n.send(e)})}shutdown(){}}class w{_params;constructor(e){this._params=e}send(e){return new Promise(t=>{navigator.sendBeacon(this._params.url,new Blob([e],{type:this._params.blobType}))?(b.s.debug("SendBeacon success"),t({status:"success"})):t({status:"failure",error:Error("SendBeacon failed")})})}shutdown(){}}class _{_concurrencyLimit;_sendingPromises=[];constructor(e){this._concurrencyLimit=e}pushPromise(e){if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(e);let t=()=>{let t=this._sendingPromises.indexOf(e);this._sendingPromises.splice(t,1)};e.then(t,t)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}var A=r(77842);class O extends Error{code;name="OTLPExporterError";data;constructor(e,t,r){super(e),this.data=r,this.code=t}}class S{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(e,t,r,n,i){this._transport=e,this._serializer=t,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=b.s.createComponentLogger({namespace:"OTLPExportDelegate"})}export(e,t){if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit())return void t({code:A.V.FAILED,error:Error("Concurrent export limit reached")});let r=this._serializer.serializeRequest(e);
1if(null==r)return void t({code:A.V.FAILED,error:Error("Nothing to send")});this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(e=>{if("success"===e.status){if(null!=e.data)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(e.data))}catch(t){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",t,e.data)}t({code:A.V.SUCCESS});return}if("failure"===e.status&&e.error)return void t({code:A.V.FAILED,error:e.error});"retryable"===e.status?t({code:A.V.FAILED,error:new O("Export failed with retryable status")}):t({code:A.V.FAILED,error:new O("Export failed with unknown error")})},e=>t({code:A.V.FAILED,error:e})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function E(e,t,r){var n,i;return n={transport:r,serializer:t,promiseHandler:new _(e.concurrencyLimit)},i={timeout:e.timeoutMillis},new S(n.transport,n.serializer,{handleResponse(e){null!=e&&Object.prototype.hasOwnProperty.call(e,"partialSuccess")&&null!=e.partialSuccess&&0!==Object.keys(e.partialSuccess).length&&b.s.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}},n.promiseHandler,i.timeout)}class x extends n{constructor(e={}){super(function(e,t,r,n){let i=!!e.headers||"function"!=typeof navigator.sendBeacon,o=(s={url:e.url,timeoutMillis:e.timeoutMillis,headers:function(e){if(null!=e)return()=>e}(e.headers),concurrencyLimit:e.concurrencyLimit},{...(a={},u={timeoutMillis:1e4,concurrencyLimit:30,compression:"none",headers:()=>n,url:"http://localhost:4318/"+r,agentOptions:{keepAlive:!0}},{timeoutMillis:function(e){if(Number.isFinite(e)&&e>0)return e;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}(s.timeoutMillis??a.timeoutMillis??u.timeoutMillis),concurrencyLimit:s.concurrencyLimit??a.concurrencyLimit??u.concurrencyLimit,compression:s.compression??a.compression??u.compression}),headers:function(e,t,r){let n={...r()},i={};return()=>(null!=t&&Object.assign(i,t()),null!=e&&Object.assign(i,e()),Object.assign(i,n))}((l=s.headers,()=>{let e={};return Object.entries(l?.()??{}).forEach(([t,r])=>{void 0!==r?e[t]=String(r):b.s.warn(`Header "${t}" has invalid value (${r}) and will be ignored`)}),e}),a.headers,u.headers),url:function(e){if(null!=e)try{return new URL(e),e}
1catch{throw Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}(s.url)??a.url??u.url,agentOptions:s.agentOptions??a.agentOptions??u.agentOptions});if(i){var s,a,u,l;return E(o,t,m({transport:new v(o)}))}return E(o,t,m({transport:new w({url:o.url,blobType:o.headers()["Content-Type"]})}))}(e,d,"v1/logs",{"Content-Type":"application/json"}))}}},27763:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},31260:(e,t,r)=>{"use strict";var n=r(20685),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},31593:(e,t,r)=>{"use strict";r.d(t,{I:()=>el});var n,i=r(39721);class o{emit(e){}}let s=new o;var a=r(42364);let u=Function.prototype.toString,l=u.call(Object),c=Object.getPrototypeOf,f=Object.prototype,p=f.hasOwnProperty,h=Symbol?Symbol.toStringTag:void 0,y=f.toString;function d(e){var t,r,n;if(null==(t=e)||"object"!=typeof t||"[object Object]"!==(null==(r=e)?void 0===r?"[object Undefined]":"[object Null]":h&&h in Object(r)?function(e){let t=p.call(e,h),r=e[h],n=!1;try{e[h]=void 0,n=!0}catch(e){}let i=y.call(e);return n&&(t?e[h]=r:delete e[h]),i}(r):(n=r,y.call(n))))return!1;let i=c(e);if(null===i)return!0;let o=p.call(i,"constructor")&&i.constructor;return"function"==typeof o&&o instanceof o&&u.call(o)===l}function g(e){return b(e)?e.slice():e}function m(e,t,r){let n=r.get(e[t])||[];for(let r=0,i=n.length;r<i;r++){let i=n[r];if(i.key===t&&i.obj===e)return!0}return!1}function b(e){return Array.isArray(e)}function v(e){return"function"==typeof e}
1function w(e){return!_(e)&&!b(e)&&!v(e)&&"object"==typeof e}function _(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}var A=r(6553),O=r(87947),S=r(66844),E=r(88411),x=r(42814);!function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(n||(n={}));let P="0000000000000000",T="00000000000000000000000000000000",R={traceId:T,spanId:P,traceFlags:n.NONE};class j{constructor(e=R){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}addLink(e){return this}addLinks(e){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}let L=(0,x.n)("OpenTelemetry Context Key SPAN");function I(e){return e.getValue(L)||void 0}function C(){return I(E._.getInstance().active())}function N(e,t){return e.setValue(L,t)}function F(e){return e.deleteValue(L)}function B(e,t){return N(e,new j(t))}function M(e){var t;return null==(t=I(e))?void 0:t.spanContext()}let U=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 D(e,t){if("string"!=typeof e||e.length!==t)return!1;let r=0;for(let t=0;t<e.length;t+=4)r+=(0|U[e.charCodeAt(t)])+(0|U[e.charCodeAt(t+1)])+(0|U[e.charCodeAt(t+2)])+(0|U[e.charCodeAt(t+3)]);return r===t}function k(e){var t,r;return D(t=e.traceId,32)&&t!==T&&D(r=e.spanId,16)&&r!==P}function $(e){return new j(e)}let G=E._.getInstance();class z{startSpan(e,t,r=G.active()){var n;if(null==t?void 0:t.root)return new j;let i=r&&M(r);return null!==(n=i)&&"object"==typeof n&&"spanId"in n&&"string"==typeof n.spanId&&"traceId"in n&&"string"==typeof n.traceId&&"traceFlags"in n&&"number"==typeof n.traceFlags&&k(i)?new j(i):new j}startActiveSpan(e,t,r,n){let i,o,s;if(arguments.length<2)return;2==arguments.length?s=t:3==arguments.length?(i=t,s=r):(i=t,o=r,s=n);let a=null!=o?o:G.active(),u=this.startSpan(e,i,a),l=N(a,u);return G.with(l,s,void 0,u)}}let V=new z;class J{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):V}}class W{getTracer(e,t,r){return new z}}let q=new W;class H{getTracer(e,t,r){var n;return null!=(n=this.getDelegateTracer(e,t,r))?n:new J(this,e,t,r)}getDelegate(){var e;return null!=(e=this._delegate)?e:q}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(e,t,r)}}var X=r(45924);let Q="trace";class K{constructor(){this._proxyTracerProvider=new H,this.wrapSpanContext=$,this.isSpanContextValid=k,this.deleteSpan=F,this.getSpan=I,this.getActiveSpan=C,this.getSpanContext=M,this.setSpan=N,this.setSpanContext=B}static getInstance(){return this._instance||(this._instance=new K),this._instance}setGlobalTracerProvider(e){let t=(0,S.$G)(Q,this._proxyTracerProvider,X.K.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,S.mS)(Q)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,S.kv)(Q,X.K.instance()),this._proxyTracerProvider=new H}}let Y=K.getInstance();var Z=r(74891);function ee(e){return null==e||(Array.isArray(e)?function(e){let t;for(let r of e)if(null!=r){if(!t){if(et(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}(e):et(e))}function et(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}class er{hrTime;hrTimeObserved;spanContext;resource;instrumentationScope;attributes={};_severityText;_severityNumber;_body;_eventName;totalAttributesCount=0;_isReadonly=!1;_logRecordLimits;set severityText(e){this._isLogRecordReadonly()||(this._severityText=e)}get severityText(){return this._severityText}set severityNumber(e){this._isLogRecordReadonly()||(this._severityNumber=e)}get severityNumber(){return this._severityNumber}set body(e){this._isLogRecordReadonly()||(this._body=e)}get body(){return this._body}get eventName(){return this._eventName}set eventName(e){this._isLogRecordReadonly()||(this._eventName=e)}get droppedAttributesCount(){return this.totalAttributesCount-Object.keys(this.attributes).length}constructor(e,t,r){let{timestamp:n,observedTimestamp:i,eventName:o,severityNumber:s,severityText:a,body:u,attributes:l={},context:c}=r,f=Date.now();if(this.hrTime=(0,Z.KJ)(n??f),this.hrTimeObserved=(0,Z.KJ)(i??f),c){let e=Y.getSpanContext(c);e&&k(e)&&(this.spanContext=e)}this.severityNumber=s,this.severityText=a,this.body=u,this.resource=e.resource,this.instrumentationScope=t,this._logRecordLimits=e.logRecordLimits,this._eventName=o,this.setAttributes(l)}setAttribute(e,t){return this._isLogRecordReadonly()||null===t||(0===e.length?
1i.s.warn(`Invalid attribute key: ${e}`):ee(t)||"object"==typeof t&&!Array.isArray(t)&&Object.keys(t).length>0?(this.totalAttributesCount+=1,Object.keys(this.attributes).length>=this._logRecordLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e))?1===this.droppedAttributesCount&&i.s.warn("Dropping extra attributes."):ee(t)?this.attributes[e]=this._truncateToSize(t):this.attributes[e]=t:i.s.warn(`Invalid attribute value set for key: ${e}`)),this}setAttributes(e){for(let[t,r]of Object.entries(e))this.setAttribute(t,r);return this}setBody(e){return this.body=e,this}setEventName(e){return this.eventName=e,this}setSeverityNumber(e){return this.severityNumber=e,this}setSeverityText(e){return this.severityText=e,this}_makeReadonly(){this._isReadonly=!0}_truncateToSize(e){let t=this._logRecordLimits.attributeValueLengthLimit;return t<=0?(i.s.warn(`Attribute value limit must be positive, got ${t}`),e):"string"==typeof e?this._truncateToLimitUtil(e,t):Array.isArray(e)?e.map(e=>"string"==typeof e?this._truncateToLimitUtil(e,t):e):e}_truncateToLimitUtil(e,t){return e.length<=t?e:e.substring(0,t)}_isLogRecordReadonly(){return this._isReadonly&&i.s.warn("Can not execute the operation on emitted log record"),this._isReadonly}}class en{instrumentationScope;_sharedState;constructor(e,t){this.instrumentationScope=e,this._sharedState=t}emit(e){let t=e.context||O._.active(),r=new er(this._sharedState,this.instrumentationScope,{context:t,...e});this._sharedState.activeProcessor.onEmit(r,t),r._makeReadonly()}}var ei=r(60019);class eo{forceFlush(){return Promise.resolve()}onEmit(e,t){}shutdown(){return Promise.resolve()}}var es=r(87142);class ea{processors;forceFlushTimeoutMillis;constructor(e,t){this.processors=e,this.forceFlushTimeoutMillis=t}async forceFlush(){let e=this.forceFlushTimeoutMillis;await Promise.all(this.processors.map(t=>(0,es.o)(t.forceFlush(),e)))}onEmit(e,t){this.processors.forEach(r=>r.onEmit(e,t))}async shutdown(){await Promise.all(this.processors.map(e=>e.shutdown()))}}class eu{resource;forceFlushTimeoutMillis;logRecordLimits;processors;loggers=new Map;activeProcessor;registeredLogRecordProcessors=[];constructor(e,t,r,n){this.resource=e,this.forceFlushTimeoutMillis=t,this.logRecordLimits=r,this.processors=n,n.length>0?(this.registeredLogRecordProcessors=n,this.activeProcessor=new ea(this.registeredLogRecordProcessors,this.forceFlushTimeoutMillis)):this.activeProcessor=new eo}}class el{_shutdownOnce;_sharedState;constructor(e={}){let t=function(...e){let t=e.shift(),r=new WeakMap;for(;e.length>0;)t=function e(t,r,n=0,i){let o;if(!(n>20)){if(n++,_(t)||_(r)||v(r))o=g(r);else if(b(t)){if(o=t.slice(),b(r))for(let e=0,t=r.length;e<t;e++)o.push(g(r[e]));else if(w(r)){let e=Object.keys(r);for(let t=0,n=e.length;t<n;t++){let n=e[t];o[n]=g(r[n])}}}else if(w(t))if(w(r)){var s,a;if(s=t,a=r,!(d(s)&&d(a)))return r;o=Object.assign({},t);let u=Object.keys(r);for(let s=0,a=u.length;s<a;s++){let a=u[s],l=r[a];if(_(l))void 0===l?delete o[a]:o[a]=l;else{let s=o[a];if(m(t,a,i)||m(r,a,i))delete o[a];else{if(w(s)&&w(l)){let e=i.get(s)||[],n=i.get(l)||[];e.push({obj:t,key:a}),n.push({obj:r,key:a}),i.set(s,e),i.set(l,n)}o[a]=e(o[a],l,n,i)}}}}else o=r;return o}}(t,e.shift(),0,r);return t}({},{forceFlushTimeoutMillis:3e4,logRecordLimits:{attributeValueLengthLimit:(0,ei.Jk)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:(0,ei.Jk)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??128},includeTraceContext:!0},e),r=e.resource??(0,a.gk)();this._sharedState=new eu(r,t.forceFlushTimeoutMillis,function(e){return{attributeCountLimit:e.attributeCountLimit??(0,ei.Jk)("OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT")??(0,ei.Jk)("OTEL_ATTRIBUTE_COUNT_LIMIT")??128,attributeValueLengthLimit:e.attributeValueLengthLimit??(0,ei.Jk)("OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT")??(0,ei.Jk)("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0}}(t.logRecordLimits),e?.processors??[]),this._shutdownOnce=new A.I(this._shutdown,this)}getLogger(e,t,r){if(this._shutdownOnce.isCalled)return i.s.warn("A shutdown LoggerProvider cannot provide a Logger"),s;e||i.s.warn("Logger requested without instrumentation scope name.");let n=e||"unknown",o=`${n}@${t||""}:${r?.schemaUrl||""}`;return this._sharedState.loggers.has(o)||this._sharedState.loggers.set(o,new en({name:n,version:t,schemaUrl:r?.schemaUrl},this._sharedState)),this._sharedState.loggers.get(o)}forceFlush(){return this._shutdownOnce.isCalled?(i.s.warn("invalid attempt to force flush after LoggerProvider shutdown"),this._shutdownOnce.promise):this._sharedState.activeProcessor.forceFlush()}shutdown(){return this._shutdownOnce.isCalled?(i.s.warn("shutdown may only be called once per LoggerProvider"),this._shutdownOnce.promise):this._shutdownOnce.call()}_shutdown(){return this._sharedState.activeProcessor.shutdown()}}},31967:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},33420:(e,t,r)=>{"use strict";var n=r(63846);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},34207:(e,t,r)=>{"use strict";var n=r(67327),i=r(12820),o=r(93866);e.exports=function(){return o(n,i,arguments)}},34711:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},i=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},o=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var s,a=this;if("function"!=typeof a||"[object Function]"!==t.apply(a))throw TypeError("Function.prototype.bind called on incompatible "+a);
1for(var u=i(arguments,1),l=r(0,a.length-u.length),c=[],f=0;f<l;f++)c[f]="$"+f;if(s=Function("binder","return function ("+o(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var t=a.apply(this,n(u,arguments));return Object(t)===t?t:this}return a.apply(e,n(u,arguments))}),a.prototype){var p=function(){};p.prototype=a.prototype,s.prototype=new p,p.prototype=null}return s}},36017:e=>{"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},36825:(e,t,r)=>{"use strict";var n=r(72886),i=r(66305)(/^\s*(?:function)?\*/),o=r(5142)(),s=r(42363),a=n("Object.prototype.toString"),u=n("Function.prototype.toString"),l=r(97756);e.exports=function(e){if("function"!=typeof e)return!1;if(i(u(e)))return!0;if(!o)return"[object GeneratorFunction]"===a(e);if(!s)return!1;var t=l();return t&&s(e)===t.prototype}},38049:e=>{"use strict";e.exports=URIError},38803:e=>{"use strict";e.exports=Math.round},39721:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=r(45924).K.instance()},40368:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>S});let n=(e=0)=>t=>`\u001B[${t+e}m`,i=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,o=(e=0)=>(t,r,n)=>`\u001B[${38+e};2;${t};${r};${n}m`,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(s.modifier),[...Object.keys(s.color),...Object.keys(s.bgColor)];let a=function(){let e=new Map;for(let[t,r]of Object.entries(s)){for(let[t,n]of Object.entries(r))s[t]={open:`\u001B[${n[0]}m`,close:`\u001B[${n[1]}m`},r[t]=s[t],e.set(n[0],n[1]);Object.defineProperty(s,t,{value:r,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="\x1b[39m",s.bgColor.close="\x1b[49m",s.color.ansi=n(),s.color.ansi256=i(),s.color.ansi16m=o(),s.bgColor.ansi=n(10),s.bgColor.ansi256=i(10),s.bgColor.ansi16m=o(10),Object.defineProperties(s,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;3===r.length&&(r=[...r].map(e=>e+e).join(""));let n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>s.rgbToAnsi256(...s.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){let t,r,n;if(e<8)return 30+e;if(e<16)return 90+(e-8);if(e>=232)r=t=((e-232)*10+8)/255,n=t;else{let i=(e-=16)%36;t=Math.floor(e/36)/5,r=Math.floor(i/6)/5,n=i%6/5}let i=2*Math.max(t,r,n);if(0===i)return 30;let o=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return 2===i&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>s.ansi256ToAnsi(s.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>s.ansi256ToAnsi(s.hexToAnsi256(e)),enumerable:!1}}),s}(),u=(()=>{if(!("navigator"in globalThis))return 0;if(globalThis.navigator.userAgentData){let e=navigator.userAgentData.brands.find(({brand:e})=>"Chromium"===e);if(e&&e.version>93)return 3}return+!!/\b(Chrome|Chromium)\//.test(globalThis.navigator.userAgent)})(),l=0!==u&&{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3},{stdout:c,stderr:f}={stdout:l,stderr:l},p=Symbol("GENERATOR"),h=Symbol("STYLER"),y=Symbol("IS_EMPTY"),d=["ansi","ansi","ansi256","ansi16m"],g=Object.create(null);function m(e){let t=(...e)=>e.join(" ");return((e,t={})=>
1{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let r=c?c.level:0;e.level=void 0===t.level?r:t.level})(t,e),Object.setPrototypeOf(t,m.prototype),t}for(let[e,t]of(Object.setPrototypeOf(m.prototype,Function.prototype),Object.entries(a)))g[e]={get(){let r=_(this,w(t.open,t.close,this[h]),this[y]);return Object.defineProperty(this,e,{value:r}),r}};g.visible={get(){let e=_(this,this[h],!0);return Object.defineProperty(this,"visible",{value:e}),e}};let b=(e,t,r,...n)=>"rgb"===e?"ansi16m"===t?a[r].ansi16m(...n):"ansi256"===t?a[r].ansi256(a.rgbToAnsi256(...n)):a[r].ansi(a.rgbToAnsi(...n)):"hex"===e?b("rgb",t,r,...a.hexToRgb(...n)):a[r][e](...n);for(let e of["rgb","hex","ansi256"])g[e]={get(){let{level:t}=this;return function(...r){return _(this,w(b(e,d[t],"color",...r),a.color.close,this[h]),this[y])}}},g["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(...r){return _(this,w(b(e,d[t],"bgColor",...r),a.bgColor.close,this[h]),this[y])}}};let v=Object.defineProperties(()=>{},{...g,level:{enumerable:!0,get(){return this[p].level},set(e){this[p].level=e}}}),w=(e,t,r)=>{let n,i;return void 0===r?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},_=(e,t,r)=>{let n=(...e)=>A(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,v),n[p]=e,n[h]=t,n[y]=r,n},A=(e,t)=>{if(e.level<=0||!t)return e[y]?"":t;let r=e[h];if(void 0===r)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1b"))for(;void 0!==r;)t=function(e,t,r){let n=e.indexOf(t);if(-1===n)return e;let i=t.length,o=0,s="";do s+=e.slice(o,n)+t+r,o=n+i,n=e.indexOf(t,o);while(-1!==n);return s+e.slice(o)}(t,r.close,r.open),r=r.parent;let o=t.indexOf("\n");return -1!==o&&(t=function(e,t,r,n){let i=0,o="";do{let s="\r"===e[n-1];o+=e.slice(i,s?n-1:n)+t+(s?"\r\n":"\n")+r,i=n+1,n=e.indexOf("\n",i)}while(-1!==n);return o+e.slice(i)}(t,i,n,o)),n+t+i};Object.defineProperties(m.prototype,g);let O=m();m({level:f?f.level:0});let S=O},41822:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},42363:(e,t,r)=>{"use strict";var n=r(76799),i=r(43815),o=r(74453);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},42364:(e,t,r)=>{"use strict";r.d(t,{gk:()=>f,QZ:()=>c});var n=r(39721);let i="telemetry.sdk.language",o="telemetry.sdk.name",s="telemetry.sdk.version",a={[o]:"opentelemetry","process.runtime.name":"browser",[i]:"webjs",[s]:"2.0.1"},u=e=>null!==e&&"object"==typeof e&&"function"==typeof e.then;class l{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(e){let t=new l({});return t._rawAttributes=p(e),t._asyncAttributesPending=e.filter(([e,t])=>u(t)).length>0,t}constructor(e){let t=e.attributes??{};this._rawAttributes=Object.entries(t).map(([e,t])=>(u(t)&&(this._asyncAttributesPending=!0),[e,t])),this._rawAttributes=p(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let e=0;e<this._rawAttributes.length;e++){let[t,r]=this._rawAttributes[e];this._rawAttributes[e]=[t,u(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&n.s.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let e={};for(let[t,r]of this._rawAttributes){if(u(r)){n.s.debug(`Unsettled resource attribute ${t} skipped`);continue}null!=r&&(e[t]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=e),e}getRawAttributes(){return this._rawAttributes}merge(e){return null==e?this:l.FromAttributeList([...e.getRawAttributes(),...this.getRawAttributes()])}}function c(e){return l.FromAttributeList(Object.entries(e))}function f(){return c({"service.name":"unknown_service",[i]:a[i],[o]:a[o],[s]:a[s]})}function p(e){return e.map(([e,t])=>u(t)?[e,t.catch(t=>{n.s.debug("promise rejection for resource attribute: %s - %s",e,t)})]:[e,t])}},42814:(e,t,r)=>{"use strict";function n(e){return Symbol.for(e)}r.d(t,{l:()=>o,n:()=>n});class i{constructor(e){let t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,r)=>{let n=new i(t._currentContext);return n._currentContext.set(e,r),n},t.deleteValue=e=>{let r=new i(t._currentContext);return r._currentContext.delete(e),r}}}let o=new i},42896:(e,t,r)=>{"use strict";var n=r(72283),i=r(3517),o=r(31260)(),s=r(33420),a=r(57121),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||u(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&s){var c=s(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(l=!1)}return(n||l||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},43815:(e,t,r)=>{"use strict";e.exports=r(60670).getPrototypeOf||null},45924:(e,t,r)=>{"use strict";r.d(t,{K:()=>a});var n,i=r(66844);class o{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return s("debug",this._namespace,e)}error(...e){return s("error",this._namespace,e)}info(...e){return s("info",this._namespace,e)}warn(...e){return s("warn",this._namespace,e)}verbose(...e){return s("verbose",this._namespace,e)}}function s(e,t,r){let n=(0,i.mS)("diag");if(n)return n[e](t,...r)}
1!function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}));class a{static instance(){return this._instance||(this._instance=new a),this._instance}constructor(){function e(e){return function(...t){let r=(0,i.mS)("diag");if(r)return r[e](...t)}}let t=this,r=(e,r={logLevel:n.INFO})=>{var o,s,a;if(e===t){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!=(o=e.stack)?o:e.message),!1}"number"==typeof r&&(r={logLevel:r});let u=(0,i.mS)("diag"),l=function(e,t){function r(r,n){let i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<n.NONE?e=n.NONE:e>n.ALL&&(e=n.ALL),t=t||{},{error:r("error",n.ERROR),warn:r("warn",n.WARN),info:r("info",n.INFO),debug:r("debug",n.DEBUG),verbose:r("verbose",n.VERBOSE)}}(null!=(s=r.logLevel)?s:n.INFO,e);if(u&&!r.suppressOverrideMessage){let e=null!=(a=Error().stack)?a:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${e}
1`),l.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,i.$G)("diag",l,t,!0)};t.setLogger=r,t.disable=()=>{(0,i.kv)("diag",t)},t.createComponentLogger=e=>new o(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}}},46284:(e,t,r)=>{"use strict";var n=r(5142)(),i=r(72886)("Object.prototype.toString"),o=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=a?o:s},46519:(e,t,r)=>{"use strict";var n=r(8067),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},u=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};e.exports=function(e,t,r){var o;if(!n(t))throw TypeError("iterator must be a function");(arguments.length>=3&&(o=r),"[object Array]"===i.call(e))?s(e,t,o):"string"==typeof e?a(e,t,o):u(e,t,o)}},46831:(e,t,r)=>{"use strict";var n,i=r(72886),o=r(5142)(),s=r(59717),a=r(33420);if(o){var u=i("RegExp.prototype.exec"),l={},c=function(){throw l},f={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=c),n=function(e){if(!e||"object"!=typeof e)return!1;var t=a(e,"lastIndex");if(!(t&&s(t,"value")))return!1;try{u(e,f)}catch(e){return e===l}}}else{var p=i("Object.prototype.toString");n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"[object RegExp]"===p(e)}}e.exports=n},48401:e=>{"use strict";e.exports=Math.max},48918:(e,t,r)=>{"use strict";r.d(t,{LG:()=>L,$v:()=>j});var n,i,o,s,a,u,l,c,f,p,h,y,d=r(15691);!function(e){e.unknown="unknown",e.user="user",e.organization="organization",e.anonymous="anonymous"}(n||(n={})),function(e){e.api="api",e.query="query",e.ingest="ingest"}(i||(i={}));class g{scope;type;value;remaining;reset;constructor(e=n.unknown,t=i.api,r=0,o=-1,s=new Date){this.scope=e,this.type=t,this.value=r,this.remaining=o,this.reset=s}}function m(e,t,r,i,o){let s=new g,a=e.headers.get(t.toLowerCase())||n.unknown;s.scope=n[a];let u=parseInt(e.headers.get(r.toLowerCase())||"",10);isNaN(u)||(s.value=u);let l=parseInt(e.headers.get(i.toLowerCase())||"",10);isNaN(l)||(s.remaining=l);let c=parseInt(e.headers.get(o.toLowerCase())||"",10);return isNaN(c)||(s.reset=new Date(1e3*c)),s}class b{config;constructor(e){this.config=e}async doReq(e,t,r={},n={},o=this.config.timeout,s=!1){let a=s?e:`${this.config.baseUrl}${e}`,u=this._prepareSearchParams(n);u&&(a+=`?${u.toString()}`);let l={...this.config.headers,...r.headers},c=await d(fetch)(a,{retries:1,retryDelay:function(e,t,r){return 1e3*Math.pow(2,e)},retryOn:[503,502,504,500],headers:l,method:t,body:r.body?r.body:void 0,signal:AbortSignal.timeout(o),cache:"no-store"});if(204===c.status)return c;if(429==c.status){let e;return Promise.reject(new v((c.url?.endsWith("/ingest")?(e=m(c,"","X-IngestLimit-Limit","X-IngestLimit-Remaining","X-IngestLimit-Reset")).type=i.ingest:c.url?.endsWith("/query")||c.url?.endsWith("/_apl")?(e=m(c,"","X-QueryLimit-Limit","X-QueryLimit-Remaining","X-QueryLimit-Reset")).type=i.query:(e=m(c,"X-RateLimit-Scope","X-RateLimit-Limit","X-RateLimit-Remaining","X-RateLimit-Reset")).type=i.api,e)))}return 401===c.status?Promise.reject(Error("forbidden")):c.status>=400?Promise.reject(Error((await c.json()).message)):await c.json()}post(e,t={},r={},n=this.config.timeout,i=!1){return this.doReq(e,"POST",t,r,n,i)}get(e,t={},r={},n=this.config.timeout,i=!1){return this.doReq(e,"GET",t,r,n,i)}put(e,t={},r={},n=this.config.timeout,i=!1){return this.doReq(e,"PUT",t,r,n,i)}delete(e,t={},r={},n=this.config.timeout,i=!1){return this.doReq(e,"DELETE",t,r,n,i)}_prepareSearchParams=e=>{let t=new URLSearchParams,r=!1;return Object.keys(e).forEach(n=>{e[n]&&(t.append(n,e[n]),r=!0)}),r?t:null}}
1class v extends Error{limit;shortcircuit;message="";constructor(e,t=!1){super(),this.limit=e,this.shortcircuit=t,Object.setPrototypeOf(this,v.prototype);let r=v.timeUntilReset(e);this.message=`${e.type} limit exceeded, try again in ${r.minutes}m${r.seconds}s`,e.type==i.api&&(this.message=`${e.scope} `+this.message)}static timeUntilReset(e){let t=e.reset.getTime()-new Date().getTime(),r=Math.floor(t/1e3%60),n=Math.floor(t/1e3/60%60);return{total:t,minutes:n,seconds:r}}}let w="https://api.axiom.co",_="X-Axiom-Client";function A(e,t){try{let r=new URL(e),n=r.pathname;if(""===n||"/"===n)return r.pathname=t,r.toString();return r.pathname=n.replace(/\/+$/,""),r.toString()}catch{let r=e.replace(/\/+$/,"");return`${r}${t}`}}let O={"cloud.us-east-1.aws":"https://us-east-1.aws.edge.axiom.co","cloud.eu-central-1.aws":"https://eu-central-1.aws.edge.axiom.co"};function S(e){if(e&&"null"!==e)return O[e.toLowerCase()]}function E(e,t,r,n){if(t?.edgeUrl)return A(t.edgeUrl,r);if(t?.edge)return`https://${t.edge}${r}`;let i=S(t?.edgeDeployment);if(i)return A(i,r);var o=t?.edgeDeployment;if(!(!o||"null"===o||S(o)))throw Error(`Unsupported edgeDeployment "${o}". Pass edgeUrl or edge to route ${n} to that deployment.`);if(e.edgeUrl)return A(e.edgeUrl,r);if(e.edge)return`https://${e.edge}${r}`;throw Error(`${n} must be routed to an Axiom edge deployment. Set edge, edgeUrl, or edgeDeployment.`)}class x{client;clientOptions;constructor({orgId:e="",token:t,url:r,edge:n,edgeUrl:i,axiomClient:o,onError:s}){t||console.warn("Missing Axiom token"),this.clientOptions={orgId:e,token:t,url:r,edge:n,edgeUrl:i,axiomClient:o,onError:s};let a=r?r.replace(/\/+$/,""):w,u={Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+t,[_]:P("axiom-js/1.8.0",o)};e&&(u["X-Axiom-Org-Id"]=e),this.client=new b({baseUrl:a,headers:u,timeout:2e4})}appendAxiomClient(e){let t=this.client.config.headers;t[_]&&(t[_]=P(t[_],e))}}function P(e,t){let r=t?.trim().split(/\s+/).filter(Boolean)??[];if(0===r.length)return e;let n=e.trim().split(/\s+/).filter(Boolean),i=new Set(n);for(let e of r)i.has(e)||(n.push(e),i.add(e));return n.join(" ")}!function(e){class t extends x{localPath="/v2/annotations";list=e=>this.client.get(this.localPath,{},e);get=e=>this.client.get(this.localPath+"/"+e);create=e=>this.client.post(this.localPath,{body:JSON.stringify(e)});update=(e,t)=>this.client.put(this.localPath+"/"+e,{body:JSON.stringify(t)});delete=e=>this.client.delete(this.localPath+"/"+e)}e.Service=t}(o||(o={})),function(e){class t extends x{localPath="/v2/dashboards";list=e=>this.client.get(this.localPath,{},e);get=e=>this.client.get(`${this.localPath}/uid/${encodeURIComponent(e)}`)}e.Service=t}(s||(s={})),function(e){e.TimestampField="_time";let t=e=>encodeURIComponent(e);class r extends x{localPath="/v2/datasets";list=()=>this.client.get(this.localPath);get=e=>this.client.get(this.datasetPath(e));create=(e,t)=>{let r=new URLSearchParams;t?.referrer&&r.set("referrer",t.referrer);let n=r.toString(),i=n?`${this.localPath}?${n}`:this.localPath;return this.client.post(i,{body:JSON.stringify(e)})};update=(e,t)=>this.client.put(this.datasetPath(e),{body:JSON.stringify(t)});delete=e=>this.client.delete(this.datasetPath(e));trim=(e,t)=>this.client.post(this.datasetPath(e)+"/trim",{body:JSON.stringify({maxDuration:t})});fields=e=>this.client.get(this.datasetPath(e)+"/fields");mapFields=e=>this.client.get(this.datasetPath(e)+"/mapfields");metrics=(e,r)=>this.getMetricsInfo(`datasets/${t(e)}/metrics`,r);metricTags=(e,r,n)=>this.getMetricsInfo(`datasets/${t(e)}/metrics/${t(r)}/tags`,n);metricTagValues=(e,r,n,i)=>this.getMetricsInfo(`datasets/${t(e)}/metrics/${t(r)}/tags/${t(n)}/values`,i);metricDatasetTags=(e,r)=>this.getMetricsInfo(`datasets/${t(e)}/tags`,r);metricDatasetTagValues=(e,r,n)=>this.getMetricsInfo(`datasets/${t(e)}/tags/${t(r)}/values`,n);datasetPath=e=>this.localPath+"/"+t(e);getMetricsInfo=async(e,t)=>{let r=t.accept?{headers:{Accept:t.accept}}:{};return this.client.get(E(this.clientOptions,t,`/v1/query/metrics/info/${e.replace(/^\/+/,"")}`,"metrics metadata requests"),r,{start:t.start,end:t.end},void 0,!0)}}e.Service=r}(a||(a={})),function(e){class t extends x{localPath="/v2/monitors";list=()=>this.client.get(this.localPath);get=e=>this.client.get(this.localPath+"/"+e);create=e=>this.client.post(this.localPath,{body:JSON.stringify(e)});update=(e,t)=>
1this.client.put(this.localPath+"/"+e,{body:JSON.stringify(t)});delete=e=>this.client.delete(this.localPath+"/"+e)}e.Service=t}(u||(u={})),function(e){class t extends x{localPath="/v2/apl-starred-queries";list=e=>this.client.get(this.localPath,{},e);get=e=>this.client.get(`${this.localPath}/${encodeURIComponent(e)}`)}e.Service=t}(l||(l={})),function(e){class t extends x{localPath="/v2/users";current=()=>this.client.get("/v2/user");list=()=>this.client.get(this.localPath);get=e=>this.client.get(`${this.localPath}/${encodeURIComponent(e)}`)}e.Service=t}(c||(c={}));class T{ingestFn;id;options;events=[];state="idle";activeFlush=Promise.resolve();nextFlush;lastFlush=new Date;maxBatchSize;flushIntervalMs;onError;now;constructor(e,t,r,n){this.ingestFn=e,this.id=t,this.options=r,this.maxBatchSize=n?.maxBatchSize??1e3,this.flushIntervalMs=n?.flushIntervalMs??1e3,this.onError=n?.onError,this.now=n?.now??Date.now}ingest=e=>{if(this.enqueue(e),this.shouldFlushNow())return void this.startBackgroundFlush();this.scheduleFlush()};flush=async()=>{let e=this.drainEvents();this.clearScheduledFlush();let t=this.activeFlush,r=(async()=>{if(this.state="flushing",await t.catch(()=>void 0),0===e.length)return void this.finishFlush();try{return await this.ingestFn(this.id,e,this.options)}finally{this.finishFlush()}})();return this.activeFlush=r,await r};enqueue=e=>{if(Array.isArray(e))return void this.events.push(...e);this.events.push(e)};drainEvents=()=>{let e=this.events;return this.events=[],e};shouldFlushNow=()=>this.events.length>=this.maxBatchSize||this.lastFlush.getTime()<this.now()-this.flushIntervalMs;scheduleFlush=()=>{this.clearScheduledFlush(),this.state="scheduled",this.nextFlush=setTimeout(()=>{this.startBackgroundFlush()},this.flushIntervalMs)};startBackgroundFlush=()=>{this.flush().catch(e=>{this.onError?.(e)})};clearScheduledFlush=()=>{this.nextFlush&&(clearTimeout(this.nextFlush),this.nextFlush=void 0)};finishFlush=()=>{this.lastFlush=new Date(this.now()),"scheduled"!==this.state&&(this.state="idle")}}class R extends x{annotations;dashboards;datasets;monitors;savedQueries;users;localPath="/v1";onError=console.error;constructor(e){e.token&&(e.token.startsWith("xapt")||0)&&console.warn("Using a personal token (`xapt-...`) is deprecated for security reasons. Please use an API token (`xaat-...`) instead. Support for personal tokens will be removed in a future release."),super(e),this.annotations=new o.Service(e),this.dashboards=new s.Service(e),this.datasets=new a.Service(e),this.monitors=new u.Service(e),this.savedQueries=new l.Service(e),this.users=new c.Service(e),this.query=this.query.bind(this),this.aplQuery=this.aplQuery.bind(this),e.onError&&(this.onError=e.onError)}appendAxiomClient=e=>{super.appendAxiomClient(e),this.annotations.appendAxiomClient(e),this.dashboards.appendAxiomClient(e),this.datasets.appendAxiomClient(e),this.monitors.appendAxiomClient(e),this.savedQueries.appendAxiomClient(e),this.users.appendAxiomClient(e)};ingestRaw=async(e,t,r=f.JSON,n=p.Auto,i)=>{try{let o=await this.encodeIngestPayload(t,n),s=function(e,t){return e.edgeUrl?function(e,t){try{let r=new URL(e),n=r.pathname;if(""===n||"/"===n)return r.pathname=`/v1/ingest/${t}`,r.toString();return r.pathname=n.replace(/\/+$/,""),r.toString()}catch{let r=e.replace(/\/+$/,"");return`${r}/v1/ingest/${t}`}}(e.edgeUrl,t):e.edge?`https://${e.edge}/v1/ingest/${t}`:e.url?function(e,t){try{let r=new URL(e),n=r.pathname;if(""===n||"/"===n)return r.pathname=`/v1/datasets/${t}/ingest`,r.toString();return r.pathname=n.replace(/\/+$/,""),r.toString()}catch{let r=e.replace(/\/+$/,"");return`${r}/v1/datasets/${t}/ingest`}}(e.url,t):`${w}/v1/datasets/${t}/ingest`}(this.clientOptions,e);return await this.client.post(s,{headers:{"Content-Type":r,"Content-Encoding":o.contentEncoding},body:o.data},{"timestamp-field":i?.timestampField,"timestamp-format":i?.timestampFormat,"csv-delimiter":i?.csvDelimiter},void 0,!0)}catch(e){return this.onError(e),await Promise.resolve({ingested:0,failed:0,processedBytes:0,blocksCreated:0,walLength:0})}};encodeIngestPayload=async(e,t)=>{if(t!==p.Auto)return{data:e,contentEncoding:t};if("undefined"==typeof CompressionStream)return{data:e,contentEncoding:p.Identity};try{let t=this.resolveCompressionSource(e);if(!t)return{data:e,contentEncoding:p.Identity};let r=t.pipeThrough(new CompressionStream("gzip"));return{data:new Uint8Array(await new Response(r).arrayBuffer()),contentEncoding:p.GZIP}}catch(t){return this.onError(t),{data:e,contentEncoding:p.Identity}}};
1resolveCompressionSource=e=>"undefined"!=typeof ReadableStream&&e instanceof ReadableStream?e:this.isAsyncIterable(e)?new ReadableStream({start:async t=>{for await(let r of e)t.enqueue(this.normalizeChunk(r));t.close()}}):"string"==typeof e||e instanceof Uint8Array?new Blob([e]).stream():null;isAsyncIterable=e=>null!==e&&"object"==typeof e&&Symbol.asyncIterator in e&&"function"==typeof e[Symbol.asyncIterator];normalizeChunk=e=>e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):"string"==typeof e?new TextEncoder().encode(e):new TextEncoder().encode(String(e));queryLegacy=(e,t,r)=>this.client.post(this.localPath+"/datasets/"+e+"/query",{body:JSON.stringify(t)},{"streaming-duration":r?.streamingDuration,nocache:r?.noCache},12e4);query(e,t){return t?.type==="mpl"?this.queryMpl(e,t):this.queryApl(e,t)}queryApl=(e,t)=>{let r={apl:e};return t?.startTime&&(r.startTime=t?.startTime),t?.endTime&&(r.endTime=t?.endTime),this.client.post(function(e){return e.edgeUrl?A(e.edgeUrl,"/v1/query/_apl"):e.edge?`https://${e.edge}/v1/query/_apl`:e.url?A(e.url,"/v1/datasets/_apl"):`${w}/v1/datasets/_apl`}(this.clientOptions),{body:JSON.stringify(r)},{"streaming-duration":t?.streamingDuration,nocache:t?.noCache,format:t?.format??"legacy",cursor:t?.cursor},12e4,!0).then(e=>t?.format!=="tabular"?e:{...e,tables:e.tables.map(e=>({...e,events:function*(){let e=0;if(this.columns)for(;e<=this.columns[0].length;){let t=Object.fromEntries(this.fields.map((t,r)=>[t.name,this.columns[r][e]]));if(e>=this.columns[0].length)return t;yield t,e++}}}))})};queryMpl=async(e,t)=>{let r={body:JSON.stringify({mpl:e,startTime:t.startTime,endTime:t.endTime})};return t.accept&&(r.headers={Accept:t.accept}),this.client.post(E(this.clientOptions,t,"/v1/query/_mpl","MPL queries"),r,{format:t.format},12e4,!0)};aplQuery(e,t){return this.query(e,t)}}class j extends R{async ingest(e,t,r){let n=(Array.isArray(t)?t:[t]).map(e=>JSON.stringify(e)).join("\n");return this.ingestRaw(e,n,f.NDJSON,p.Auto,r)}}class L extends R{batch={};ingest=(e,t,r)=>{let n=function(e,t){return`${e}:${t?.timestampField||"-"}:${t?.timestampFormat||"-"}:${t?.csvDelimiter||"-"}`}(e,r);return this.batch[n]||(this.batch[n]=new T((e,t,r)=>{let n=(Array.isArray(t)?t:[t]).map(e=>JSON.stringify(e)).join("\n");return this.ingestRaw(e,n,f.NDJSON,p.Auto,r)},e,r,{onError:this.onError})),this.batch[n].ingest(t)};flush=async()=>{let e=[];for(let t in this.batch)e.push(this.batch[t].flush().catch(this.onError));await Promise.all(e).catch(this.onError)}}BigInt.prototype.toJSON=function(){return this.toString()},function(e){e.JSON="application/json",e.NDJSON="application/x-ndjson",e.CSV="text/csv"}(f||(f={})),function(e){e.Auto="auto",e.Identity="",e.GZIP="gzip"}(p||(p={})),function(e){e.Count="count",e.Distinct="distinct",e.Sum="sum",e.Avg="avg",e.Min="min",e.Max="max",e.Topk="topk",e.Percentiles="percentiles",e.Histogram="histogram",e.Variance="variance",e.Stdev="stdev",e.ArgMin="argmin",e.ArgMax="argmax",e.MakeSet="makeset",e.MakeSetIf="makesetif",e.CountIf="countif",e.CountDistinctIf="distinctif"}(h||(h={})),function(e){e.And="and",e.Or="or",e.Not="not",e.Equal="==",e.NotEqual="!=",e.Exists="exists",e.NotExists="not-exists",e.GreaterThan=">",e.GreaterThanOrEqualTo=">=",e.LessThan="<",e.LessThanOrEqualTo="<=",e.Gt="gt",e.Gte="gte",e.Lt="lt",e.Lte="lte",e.StartsWith="starts-with",e.NotStartsWith="not-starts-with",e.EndsWith="ends-with",e.NotEndsWith="not-ends-with",e.Contains="contains",e.NotContains="not-contains",e.Regexp="regexp",e.NotRegexp="not-regexp"}(y||(y={}))},51569:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(27763);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},57121:e=>{"use strict";e.exports=TypeError},57447:(e,t,r)=>{var n=r(46142),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,s=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),a=n[r];r<i;a=n[++r])m(a)||!A(a)?s+=" "+a:s+=" "+l(a);return s},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var s={},a=/^$/;
1if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;a=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function l(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),p(n,e,n.depth)}function c(e,t){var r=l.styles[t];return r?"\x1b["+l.colors[r][0]+"m"+e+"\x1b["+l.colors[r][1]+"m":e}function f(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&E(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o,s,a,u,l,c=r.inspect(n,e);return v(c)||(c=p(e,c,n)),c}var f=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(v(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return b(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,r);if(f)return f;var A=Object.keys(r),x=(u={},A.forEach(function(e,t){u[e]=!0}),u);if(e.showHidden&&(A=Object.getOwnPropertyNames(r)),S(r)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return h(r);if(0===A.length){if(E(r)){var P=r.name?": "+r.name:"";return e.stylize("[Function"+P+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return h(r)}var T="",j=!1,L=["{","}"];if(d(r)&&(j=!0,L=["[","]"]),E(r)&&(T=" [Function"+(r.name?": "+r.name:"")+"]"),_(r)&&(T=" "+RegExp.prototype.toString.call(r)),O(r)&&(T=" "+Date.prototype.toUTCString.call(r)),S(r)&&(T=" "+h(r)),0===A.length&&(!j||0==r.length))return L[0]+T+L[1];if(n<0)if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),l=j?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)R(t,String(s))?o.push(y(e,t,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(y(e,t,r,n,i,!0))}),o}(e,r,n,x,A):A.map(function(t){return y(e,r,n,x,t,j)}),e.seen.pop(),i=l,o=T,s=L,a=0,i.reduce(function(e,t){return a++,t.indexOf("\n")>=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?s[0]+(""===o?"":o+"\n ")+" "+i.join(",\n ")+" "+s[1]:s[0]+o+" "+i.join(", ")+" "+s[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function y(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),R(n,i)||(s="["+i+"]"),!a&&(0>e.seen.indexOf(u.value)?(a=m(r)?p(e,u.value,null):p(e,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),w(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function m(e){return null===e}function b(e){return"number"==typeof e}function v(e){return"string"==typeof e}function w(e){return void 0===e}function _(e){return A(e)&&"[object RegExp]"===x(e)}function A(e){return"object"==typeof e&&null!==e}function O(e){return A(e)&&"[object Date]"===x(e)}function S(e){return A(e)&&("[object Error]"===x(e)||e instanceof Error)}function E(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!s[e=e.toUpperCase()])if(a.test(e)){var r=n.pid;s[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else s[e]=function(){};return s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5408),t.isArray=d,t.isBoolean=g,t.isNull=m,t.isNullOrUndefined=function(e){return null==e}
1,t.isNumber=b,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=_,t.types.isRegExp=_,t.isObject=A,t.isDate=O,t.types.isDate=O,t.isError=S,t.types.isNativeError=S,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(99271);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[P((e=new Date).getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(24218),t._extend=function(e,t){if(!t||!A(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t=e[j];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=j,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,t).then(function(e){n.nextTick(s.bind(null,null,e))},function(e){n.nextTick(L.bind(null,e,s))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},58975:(e,t,r)=>{"use strict";var n=r(46519),i=r(85967),o=r(94788),s=r(72886),a=r(33420),u=r(42363),l=s("Object.prototype.toString"),c=r(5142)(),f="undefined"==typeof globalThis?r.g:globalThis,p=i(),h=s("String.prototype.slice"),y=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},d={__proto__:null};c&&a&&u?n(p,function(e){var t=new f[e];
1if(Symbol.toStringTag in t&&u){var r=u(t),n=a(r,Symbol.toStringTag);if(!n&&r&&(n=a(u(r),Symbol.toStringTag)),n&&n.get){var i=o(n.get);d["$"+e]=i}}}):n(p,function(e){var t=new f[e],r=t.slice||t.set;if(r){var n=o(r);d["$"+e]=n}});var g=function(e){var t=!1;return n(d,function(r,n){if(!t)try{"$"+r(e)===n&&(t=h(n,1))}catch(e){}}),t},m=function(e){var t=!1;return n(d,function(r,n){if(!t)try{r(e),t=h(n,1)}catch(e){}}),t};e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=h(l(e),8,-1);return y(p,t)>-1?t:"Object"===t&&m(e)}return a?g(e):null}},59404:(e,t,r)=>{"use strict";var n=r(67327),i=r(57121),o=r(64392),s=r(93866);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return s(n,o,e)}},59717:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(67327).call(n,i)},60019:(e,t,r)=>{"use strict";function n(e){}r.d(t,{Jk:()=>n})},60670:e=>{"use strict";e.exports=Object},63846:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},63885:e=>{"use strict";e.exports=Math.pow},64392:e=>{"use strict";e.exports=Function.prototype.call},65233:(e,t,r)=>{"use strict";r.d(t,{e:()=>s});let n=[],i=0,o=0,s=e=>{let t=[],r={get:()=>(r.lc||r.listen(()=>{})(),r.value),lc:0,listen:e=>(r.lc=t.push(e),()=>{for(let t=i+4;t<n.length;)n[t]===e?n.splice(t,4):t+=4;let o=t.indexOf(e);~o&&(t.splice(o,1),--r.lc||r.off())}),notify(e,s){o++;let a=!n.length;for(let i of t)n.push(i,r.value,e,s);if(a){for(i=0;i<n.length;i+=4)n[i](n[i+1],n[i+2],n[i+3]);n.length=0}},off(){},set(e){let t=r.value;t!==e&&(r.value=e,r.notify(t))},subscribe(e){let t=r.listen(e);return e(r.value),t},value:e};return r}},66305:(e,t,r)=>{"use strict";var n=r(72886),i=r(46831),o=n("RegExp.prototype.exec"),s=r(57121);e.exports=function(e){if(!i(e))throw new s("`regex` must be a RegExp");return function(t){return null!==o(e,t)}}},66844:(e,t,r)=>{"use strict";r.d(t,{mS:()=>c,$G:()=>l,kv:()=>f});let n="1.9.1",i=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,o=function(e){let t=new Set([e]),r=new Set,n=e.match(i);if(!n)return()=>!1;let o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease)return function(t){return t===e};function s(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let n=e.match(i);if(!n)return s(e);let a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=a.prerelease||o.major!==a.major)return s(e);if(0===o.major)return o.minor===a.minor&&o.patch<=a.patch?(t.add(e),!0):s(e);return o.minor<=a.minor?(t.add(e),!0):s(e)}}(n),s=n.split(".")[0],a=Symbol.for(`opentelemetry.js.api.${s}`),u="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof r.g?r.g:{};function l(e,t,r,i=!1){var o;let s=u[a]=null!=(o=u[a])?o:{version:n};if(!i&&s[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(s.version!==n){let t=Error(`@opentelemetry/api: Registration of version v${s.version} for ${e} does not match previously registered API v${n}`);return r.error(t.stack||t.message),!1}return s[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${n}.`),!0}function c(e){var t,r;let n=null==(t=u[a])?void 0:t.version;if(n&&o(n))return null==(r=u[a])?void 0:r[e]}function f(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${n}.`);let r=u[a];r&&delete r[e]}},67327:(e,t,r)=>{"use strict";var n=r(34711);e.exports=Function.prototype.bind||n},71033:(e,t,r)=>{"use strict";var n=r(58975);e.exports=function(e){return!!n(e)}},71101:e=>{"use strict";e.exports=Math.floor},72283:(e,t,r)=>{"use strict";var n,i=r(60670),o=r(24803),s=r(88),a=r(10134),u=r(96322),l=r(17462),c=r(57121),f=r(38049),p=r(93759),h=r(71101),y=r(48401),d=r(99335),g=r(63885),m=r(38803),b=r(12392),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},_=r(33420),A=r(20685),O=function(){throw new c},S=_?function(){try{return arguments.callee,O}catch(e){try{return _(arguments,"callee").get}catch(e){return O}}}():O,E=r(51569)(),x=r(42363),P=r(43815),T=r(76799),R=r(12820),j=r(64392),L={},I="undefined"!=typeof Uint8Array&&x?x(Uint8Array):n,C={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":E&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":L,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":E&&x?x(x([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&x?x(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&x?x(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&x?x(""[Symbol.iterator]()):n,"%Symbol%":E?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":S,"%TypedArray%":I,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":R,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":P,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":y,"%Math.min%":d,"%Math.pow%":g,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":T};if(x)try{null.error}catch(e){var N=x(x(e));C["%Error.prototype%"]=N}var F=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&x&&(r=x(i.prototype))}return C[t]=r,r},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=r(67327),U=r(59717),D=M.call(j,Array.prototype.concat),k=M.call(R,Array.prototype.splice),$=M.call(j,Str
1ing.prototype.replace),G=M.call(j,String.prototype.slice),z=M.call(j,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,W=function(e){var t=G(e,0,1),r=G(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return $(e,V,function(e,t,r,i){n[n.length]=r?$(i,J,"$1"):t||e}),n},q=function(e,t){var r,n=e;if(U(B,n)&&(n="%"+(r=B[n])[0]+"%"),U(C,n)){var i=C[n];if(i===L&&(i=F(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===z(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e),n=r.length>0?r[0]:"",i=q("%"+n+"%",t),o=i.name,s=i.value,a=!1,u=i.alias;u&&(n=u[0],k(r,D([0,1],u)));for(var f=1,p=!0;f<r.length;f+=1){var h=r[f],y=G(h,0,1),d=G(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===d||"'"===d||"`"===d)&&y!==d)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&p||(a=!0),n+="."+h,U(C,o="%"+n+"%"))s=C[o];else if(null!=s){if(!(h in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(_&&f+1>=r.length){var g=_(s,h);s=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else p=U(s,h),s=s[h];p&&!a&&(C[o]=s)}}return s}},72886:(e,t,r)=>{"use strict";var n=r(72283),i=r(59404),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},74453:(e,t,r)=>{"use strict";var n,i=r(59404),o=r(33420);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!n&&o&&o(Object.prototype,"__proto__"),a=Object,u=a.getPrototypeOf;e.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof u&&function(e){return u(null==e?e:a(e))}},74891:(e,t,r)=>{"use strict";r.d(t,{u5:()=>a,KJ:()=>s});let n=performance;function i(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function o(){let e=n.timeOrigin;return"number"!=typeof e&&(e=n.timing&&n.timing.fetchStart),e}function s(e){var t;if(Array.isArray(t=e)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1])return e;if("number"==typeof e)if(!(e<o()))return i(e);else{var r=i(o()),s=i("number"==typeof e?e:n.now());let t=[r[0]+s[0],r[1]+s[1]];return t[1]>=1e9&&(t[1]-=1e9,t[0]+=1),t}if(e instanceof Date)return i(e.getTime());throw TypeError("Invalid input type")}function a(e){return 1e9*e[0]+e[1]}},76799:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},77842:(e,t,r)=>{"use strict";var n;r.d(t,{V:()=>n}),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"}(n||(n={}))},85967:(e,t,r)=>{"use strict";var n=r(36017),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},86258:(e,t,r)=>{"use strict";var n;r.d(t,{F:()=>n}),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"}(n||(n={}))},87142:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}function i(e,t){let r;return Promise.race([e,new Promise(function(e,i){r=setTimeout(function(){i(new n("Operation timed out."))},t)})]).then(e=>(clearTimeout(r),e),e=>{throw clearTimeout(r),e})}},87947:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=r(88411)._.getInstance()},88411:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});var n=r(42814);class i{active(){return n.l}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}var o=r(66844),s=r(45924);let a="context",u=new i;class l{constructor(){}static getInstance(){return this._instance||(this._instance=new l),this._instance}setGlobalContextManager(e){return(0,o.$G)(a,e,s.K.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,o.mS)(a)||u}disable(){this._getContextManager().disable(),(0,o.kv)(a,s.K.instance())}}},93759:e=>{"use strict";e.exports=Math.abs},93866:(e,t,r)=>{"use strict";var n=r(67327),i=r(12820),o=r(64392);e.exports=r(31967)||n.call(o,i)},94788:(e,t,r)=>{"use strict";var n=r(42896),i=r(20685),o=r(59404),s=r(34207);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:s}):e.exports.apply=s},96322:e=>{"use strict";e.exports=ReferenceError},97756:e=>{"use strict";let t=(function*(){}).constructor;e.exports=()=>t},99271:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},99335:e=>{"use strict";e.exports=Math.min}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.