@sentio/runtime 2.51.0-rc.2 → 2.51.0-rc.3
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/lib/processor-runner.js +42 -42
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
package/lib/processor-runner.js
CHANGED
@@ -1,62 +1,62 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
3
|
-
import{A as
|
4
|
-
GFS4: `),console.error(t)});ie[me]||(xE=global[me]||[],LE(ie,xE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||ME(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Vi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),ME()}return Object.defineProperty(e,Vi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){vr(ie[me]),L("assert").equal(ie[me].length,0)}));var xE;global[me]||LE(global,ie[me]);Dl.exports=wl(JU(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Dl.exports=wl(ie),ie.__patched=!0);function wl(t){zU(t),t.gracefulify=wl,t.createReadStream=G,t.createWriteStream=F;var e=t.readFile;t.readFile=n;function n(M,B,w){return typeof B=="function"&&(w=B,B=null),W(M,B,w);function W(z,ne,oe,se){return e(z,ne,function(Z){Z&&(Z.code==="EMFILE"||Z.code==="ENFILE")?Wr([W,[z,ne,oe],Z,se||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=a;function a(M,B,w,W){return typeof w=="function"&&(W=w,w=null),z(M,B,w,W);function z(ne,oe,se,Z,ve){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([z,[ne,oe,se,Z],re,ve||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(M,B,w,W){return typeof w=="function"&&(W=w,w=null),z(M,B,w,W);function z(ne,oe,se,Z,ve){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([z,[ne,oe,se,Z],re,ve||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(M,B,w,W){return typeof w=="function"&&(W=w,w=0),z(M,B,w,W);function z(ne,oe,se,Z,ve){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([z,[ne,oe,se,Z],re,ve||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(M,B,w){typeof B=="function"&&(w=B,B=null);var W=c.test(process.version)?function(oe,se,Z,ve){return l(oe,z(oe,se,Z,ve))}:function(oe,se,Z,ve){return l(oe,se,z(oe,se,Z,ve))};return W(M,B,w);function z(ne,oe,se,Z){return function(ve,re){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?Wr([W,[ne,oe,se],ve,Z||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof se=="function"&&se.call(this,ve,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=XU(t);A=_.ReadStream,N=_.WriteStream}var f=t.ReadStream;f&&(A.prototype=Object.create(f.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=D),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(M){A=M},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return N},set:function(M){N=M},enumerable:!0,configurable:!0});var v=A;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(M){v=M},enumerable:!0,configurable:!0});var T=N;Object.defineProperty(t,"FileWriteStream",{get:function(){return T},set:function(M){T=M},enumerable:!0,configurable:!0});function A(M,B){return this instanceof A?(f.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function O(){var M=this;j(M.path,M.flags,M.mode,function(B,w){B?(M.autoClose&&M.destroy(),M.emit("error",B)):(M.fd=w,M.emit("open",w),M.read())})}function N(M,B){return this instanceof N?(S.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function D(){var M=this;j(M.path,M.flags,M.mode,function(B,w){B?(M.destroy(),M.emit("error",B)):(M.fd=w,M.emit("open",w))})}function G(M,B){return new t.ReadStream(M,B)}function F(M,B){return new t.WriteStream(M,B)}var ae=t.open;t.open=j;function j(M,B,w,W){return typeof w=="function"&&(W=w,w=null),z(M,B,w,W);function z(ne,oe,se,Z,ve){return ae(ne,oe,se,function(re,H7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([z,[ne,oe,se,Z],re,ve||Date.now(),Date.now()]):typeof Z=="function"&&Z.apply(this,arguments)})}}return t}function Wr(t){vr("ENQUEUE",t[0].name,t[1]),ie[me].push(t),Ul()}var Di;function ME(){for(var t=Date.now(),e=0;e<ie[me].length;++e)ie[me][e].length>2&&(ie[me][e][3]=t,ie[me][e][4]=t);Ul()}function Ul(){if(clearTimeout(Di),Di=void 0,ie[me].length!==0){var t=ie[me].shift(),e=t[0],n=t[1],i=t[2],a=t[3],s=t[4];if(a===void 0)vr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){vr("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-s,u=Math.max(s-a,1),l=Math.min(u*1.2,100);r>=l?(vr("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[me].push(t)}Di===void 0&&(Di=setTimeout(Ul,0))}}});var Ie=h(Mt=>{"use strict";var IE=Ee().fromCallback,Le=zr(),ZU=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Le[t]=="function");Object.assign(Mt,Le);ZU.forEach(t=>{Mt[t]=IE(Le[t])});Mt.exists=function(t,e){return typeof e=="function"?Le.exists(t,e):new Promise(n=>Le.exists(t,n))};Mt.read=function(t,e,n,i,a,s){return typeof s=="function"?Le.read(t,e,n,i,a,s):new Promise((o,r)=>{Le.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};Mt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.write(t,e,...n):new Promise((i,a)=>{Le.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};Mt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.readv(t,e,...n):new Promise((i,a)=>{Le.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};Mt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.writev(t,e,...n):new Promise((i,a)=>{Le.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof Le.realpath.native=="function"?Mt.realpath.native=IE(Le.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var wE=h((W7,CE)=>{"use strict";var eD=L("path");CE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(eD.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var BE=h((z7,Vl)=>{"use strict";var UE=Ie(),{checkPath:DE}=wE(),VE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Vl.exports.makeDir=async(t,e)=>(DE(t),UE.mkdir(t,{mode:VE(e),recursive:!0}));Vl.exports.makeDirSync=(t,e)=>(DE(t),UE.mkdirSync(t,{mode:VE(e),recursive:!0}))});var at=h((X7,GE)=>{"use strict";var tD=Ee().fromPromise,{makeDir:rD,makeDirSync:Bl}=BE(),Gl=tD(rD);GE.exports={mkdirs:Gl,mkdirsSync:Bl,mkdirp:Gl,mkdirpSync:Bl,ensureDir:Gl,ensureDirSync:Bl}});var Ft=h((J7,HE)=>{"use strict";var nD=Ee().fromPromise,kE=Ie();function oD(t){return kE.access(t).then(()=>!0).catch(()=>!1)}HE.exports={pathExists:nD(oD),pathExistsSync:kE.existsSync}});var kl=h((Q7,FE)=>{"use strict";var Xr=Ie(),iD=Ee().fromPromise;async function aD(t,e,n){let i=await Xr.open(t,"r+"),a=null;try{await Xr.futimes(i,e,n)}finally{try{await Xr.close(i)}catch(s){a=s}}if(a)throw a}function sD(t,e,n){let i=Xr.openSync(t,"r+");return Xr.futimesSync(i,e,n),Xr.closeSync(i)}FE.exports={utimesMillis:iD(aD),utimesMillisSync:sD}});var mr=h((Z7,$E)=>{"use strict";var Jr=Ie(),_e=L("path"),YE=Ee().fromPromise;function uD(t,e,n){let i=n.dereference?a=>Jr.stat(a,{bigint:!0}):a=>Jr.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,s])=>({srcStat:a,destStat:s}))}function lD(t,e,n){let i,a=n.dereference?o=>Jr.statSync(o,{bigint:!0}):o=>Jr.lstatSync(o,{bigint:!0}),s=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:i}}async function cD(t,e,n,i){let{srcStat:a,destStat:s}=await uD(t,e,i);if(s){if(to(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Hl(t,e))throw new Error(Bi(t,e,n));return{srcStat:a,destStat:s}}function fD(t,e,n,i){let{srcStat:a,destStat:s}=lD(t,e,i);if(s){if(to(a,s)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&Hl(t,e))throw new Error(Bi(t,e,n));return{srcStat:a,destStat:s}}async function qE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=await Jr.stat(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(to(e,o))throw new Error(Bi(t,n,i));return qE(t,e,s,i)}function jE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(n));if(s===a||s===_e.parse(s).root)return;let o;try{o=Jr.statSync(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(to(e,o))throw new Error(Bi(t,n,i));return jE(t,e,s,i)}function to(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function Hl(t,e){let n=_e.resolve(t).split(_e.sep).filter(a=>a),i=_e.resolve(e).split(_e.sep).filter(a=>a);return n.every((a,s)=>i[s]===a)}function Bi(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}$E.exports={checkPaths:YE(cD),checkPathsSync:fD,checkParentPaths:YE(qE),checkParentPathsSync:jE,isSrcSubdir:Hl,areIdentical:to}});var JE=h((eQ,XE)=>{"use strict";var be=Ie(),ro=L("path"),{mkdirs:pD}=at(),{pathExists:dD}=Ft(),{utimesMillis:ED}=kl(),no=mr();async function _D(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
3
|
+
import{A as lE,B as Kr,C as cE,D as fE,E as Et,F as Q,G as pE,H as Gt,I as Ii,J as _t,K as dE,L as St,M as EE,N as _E,O as Ye,P as g,Q as Ci,R as at,S as J,T as Pe,U as M,a as L,b as m,c as h,ca as SE,d as Je,e as Fe,f as Y,g as HD,h as nE,j as wl,k as oE,l as iE,q as Sr,r as Dl,s as aE,t as eo,u as uE,v as sE,w as FD,x as YD,y as Ul,z as it}from"./chunk-VE3JEF4W.js";var Ee=h(Vl=>{"use strict";Vl.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((n,i)=>{e.push((a,u)=>a!=null?i(a):n(u)),t.apply(this,e)})},"name",{value:t.name})};Vl.fromPromise=function(t){return Object.defineProperty(function(...e){let n=e[e.length-1];if(typeof n!="function")return t.apply(this,e);e.pop(),t.apply(this,e).then(i=>n(null,i),n)},"name",{value:t.name})}});var TE=h((Q7,hE)=>{"use strict";var kt=L("constants"),qD=process.cwd,wi=null,jD=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return wi||(wi=qD.call(process)),wi};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Bl=process.chdir,process.chdir=function(t){wi=null,Bl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Bl));var Bl;hE.exports=$D;function $D(t){kt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=u(t.chown),t.fchown=u(t.fchown),t.lchown=u(t.lchown),t.chmod=i(t.chmod),t.fchmod=i(t.fchmod),t.lchmod=i(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=a(t.chmodSync),t.fchmodSync=a(t.fchmodSync),t.lchmodSync=a(t.lchmodSync),t.stat=r(t.stat),t.fstat=r(t.fstat),t.lstat=r(t.lstat),t.statSync=s(t.statSync),t.fstatSync=s(t.fstatSync),t.lstatSync=s(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,_){_&&process.nextTick(_)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,_,f){f&&process.nextTick(f)},t.lchownSync=function(){}),jD==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(_,f,S){var v=Date.now(),T=0;c(_,f,function A(O){if(O&&(O.code==="EACCES"||O.code==="EPERM"||O.code==="EBUSY")&&Date.now()-v<6e4){setTimeout(function(){t.stat(f,function(N,U){N&&N.code==="ENOENT"?c(_,f,A):S(O)})},T),T<100&&(T+=10);return}S&&S(O)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(_,f,S,v,T,A){var O;if(A&&typeof A=="function"){var N=0;O=function(U,G,F){if(U&&U.code==="EAGAIN"&&N<10)return N++,c.call(t,_,f,S,v,T,O);A.apply(this,arguments)}}return c.call(t,_,f,S,v,T,O)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,_,f,S,v){for(var T=0;;)try{return c.call(t,p,_,f,S,v)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(t.readSync);function e(c){c.lchmod=function(p,_,f){c.open(p,kt.O_WRONLY|kt.O_SYMLINK,_,function(S,v){if(S){f&&f(S);return}c.fchmod(v,_,function(T){c.close(v,function(A){f&&f(T||A)})})})},c.lchmodSync=function(p,_){var f=c.openSync(p,kt.O_WRONLY|kt.O_SYMLINK,_),S=!0,v;try{v=c.fchmodSync(f,_),S=!1}finally{if(S)try{c.closeSync(f)}catch{}else c.closeSync(f)}return v}}function n(c){kt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,_,f,S){c.open(p,kt.O_SYMLINK,function(v,T){if(v){S&&S(v);return}c.futimes(T,_,f,function(A){c.close(T,function(O){S&&S(A||O)})})})},c.lutimesSync=function(p,_,f){var S=c.openSync(p,kt.O_SYMLINK),v,T=!0;try{v=c.futimesSync(S,_,f),T=!1}finally{if(T)try{c.closeSync(S)}catch{}else c.closeSync(S)}return v}):c.futimes&&(c.lutimes=function(p,_,f,S){S&&process.nextTick(S)},c.lutimesSync=function(){})}function i(c){return c&&function(p,_,f){return c.call(t,p,_,function(S){l(S)&&(S=null),f&&f.apply(this,arguments)})}}function a(c){return c&&function(p,_){try{return c.call(t,p,_)}catch(f){if(!l(f))throw f}}}function u(c){return c&&function(p,_,f,S){return c.call(t,p,_,f,function(v){l(v)&&(v=null),S&&S.apply(this,arguments)})}}function o(c){return c&&function(p,_,f){try{return c.call(t,p,_,f)}catch(S){if(!l(S))throw S}}}function r(c){return c&&function(p,_,f){typeof _=="function"&&(f=_,_=null);function S(v,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),f&&f.apply(this,arguments)}return _?c.call(t,p,_,S):c.call(t,p,S)}}function s(c){return c&&function(p,_){var f=_?c.call(t,p,_):c.call(t,p);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function l(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var yE=h((Z7,mE)=>{"use strict";var vE=L("stream").Stream;mE.exports=KD;function KD(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);vE.call(this);var u=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var o=Object.keys(a),r=0,s=o.length;r<s;r++){var l=o[r];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){u._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){u.emit("error",c),u.readable=!1;return}u.fd=p,u.emit("open",p),u._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);vE.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var u=Object.keys(a),o=0,r=u.length;o<r;o++){var s=u[o];this[s]=a[s]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var OE=h((eQ,AE)=>{"use strict";AE.exports=zD;var WD=Object.getPrototypeOf||function(t){return t.__proto__};function zD(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:WD(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var zr=h((tQ,Hl)=>{"use strict";var ie=L("fs"),XD=TE(),JD=yE(),QD=OE(),Di=L("util"),me,Vi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),Vi=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",Vi="___graceful-fs.previous");function ZD(){}function RE(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var hr=ZD;Di.debuglog?hr=Di.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(hr=function(){var t=Di.format.apply(Di,arguments);t="GFS4: "+t.split(/\n/).join(`
|
4
|
+
GFS4: `),console.error(t)});ie[me]||(gE=global[me]||[],RE(ie,gE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||NE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,Vi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),NE()}return Object.defineProperty(e,Vi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){hr(ie[me]),L("assert").equal(ie[me].length,0)}));var gE;global[me]||RE(global,ie[me]);Hl.exports=Gl(QD(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Hl.exports=Gl(ie),ie.__patched=!0);function Gl(t){XD(t),t.gracefulify=Gl,t.createReadStream=G,t.createWriteStream=F;var e=t.readFile;t.readFile=n;function n(x,B,w){return typeof B=="function"&&(w=B,B=null),z(x,B,w);function z(X,ne,oe,ue){return e(X,ne,function(ee){ee&&(ee.code==="EMFILE"||ee.code==="ENFILE")?Wr([z,[X,ne,oe],ee,ue||Date.now(),Date.now()]):typeof oe=="function"&&oe.apply(this,arguments)})}}var i=t.writeFile;t.writeFile=a;function a(x,B,w,z){return typeof w=="function"&&(z=w,w=null),X(x,B,w,z);function X(ne,oe,ue,ee,ve){return i(ne,oe,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,ue,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var u=t.appendFile;u&&(t.appendFile=o);function o(x,B,w,z){return typeof w=="function"&&(z=w,w=null),X(x,B,w,z);function X(ne,oe,ue,ee,ve){return u(ne,oe,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,ue,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=s);function s(x,B,w,z){return typeof w=="function"&&(z=w,w=0),X(x,B,w,z);function X(ne,oe,ue,ee,ve){return r(ne,oe,ue,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,ue,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var l=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(x,B,w){typeof B=="function"&&(w=B,B=null);var z=c.test(process.version)?function(oe,ue,ee,ve){return l(oe,X(oe,ue,ee,ve))}:function(oe,ue,ee,ve){return l(oe,ue,X(oe,ue,ee,ve))};return z(x,B,w);function X(ne,oe,ue,ee){return function(ve,re){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?Wr([z,[ne,oe,ue],ve,ee||Date.now(),Date.now()]):(re&&re.sort&&re.sort(),typeof ue=="function"&&ue.call(this,ve,re))}}}if(process.version.substr(0,4)==="v0.8"){var _=JD(t);A=_.ReadStream,N=_.WriteStream}var f=t.ReadStream;f&&(A.prototype=Object.create(f.prototype),A.prototype.open=O);var S=t.WriteStream;S&&(N.prototype=Object.create(S.prototype),N.prototype.open=U),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(x){A=x},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return N},set:function(x){N=x},enumerable:!0,configurable:!0});var v=A;Object.defineProperty(t,"FileReadStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});var T=N;Object.defineProperty(t,"FileWriteStream",{get:function(){return T},set:function(x){T=x},enumerable:!0,configurable:!0});function A(x,B){return this instanceof A?(f.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function O(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.autoClose&&x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w),x.read())})}function N(x,B){return this instanceof N?(S.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function U(){var x=this;j(x.path,x.flags,x.mode,function(B,w){B?(x.destroy(),x.emit("error",B)):(x.fd=w,x.emit("open",w))})}function G(x,B){return new t.ReadStream(x,B)}function F(x,B){return new t.WriteStream(x,B)}var ae=t.open;t.open=j;function j(x,B,w,z){return typeof w=="function"&&(z=w,w=null),X(x,B,w,z);function X(ne,oe,ue,ee,ve){return ae(ne,oe,ue,function(re,X7){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,ue,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}return t}function Wr(t){hr("ENQUEUE",t[0].name,t[1]),ie[me].push(t),kl()}var Ui;function NE(){for(var t=Date.now(),e=0;e<ie[me].length;++e)ie[me][e].length>2&&(ie[me][e][3]=t,ie[me][e][4]=t);kl()}function kl(){if(clearTimeout(Ui),Ui=void 0,ie[me].length!==0){var t=ie[me].shift(),e=t[0],n=t[1],i=t[2],a=t[3],u=t[4];if(a===void 0)hr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){hr("TIMEOUT",e.name,n);var o=n.pop();typeof o=="function"&&o.call(null,i)}else{var r=Date.now()-u,s=Math.max(u-a,1),l=Math.min(s*1.2,100);r>=l?(hr("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[me].push(t)}Ui===void 0&&(Ui=setTimeout(kl,0))}}});var Ie=h(xt=>{"use strict";var PE=Ee().fromCallback,Le=zr(),eU=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Le[t]=="function");Object.assign(xt,Le);eU.forEach(t=>{xt[t]=PE(Le[t])});xt.exists=function(t,e){return typeof e=="function"?Le.exists(t,e):new Promise(n=>Le.exists(t,n))};xt.read=function(t,e,n,i,a,u){return typeof u=="function"?Le.read(t,e,n,i,a,u):new Promise((o,r)=>{Le.read(t,e,n,i,a,(s,l,c)=>{if(s)return r(s);o({bytesRead:l,buffer:c})})})};xt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.write(t,e,...n):new Promise((i,a)=>{Le.write(t,e,...n,(u,o,r)=>{if(u)return a(u);i({bytesWritten:o,buffer:r})})})};xt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.readv(t,e,...n):new Promise((i,a)=>{Le.readv(t,e,...n,(u,o,r)=>{if(u)return a(u);i({bytesRead:o,buffers:r})})})};xt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?Le.writev(t,e,...n):new Promise((i,a)=>{Le.writev(t,e,...n,(u,o,r)=>{if(u)return a(u);i({bytesWritten:o,buffers:r})})})};typeof Le.realpath.native=="function"?xt.realpath.native=PE(Le.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var xE=h((nQ,bE)=>{"use strict";var tU=L("path");bE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(tU.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var CE=h((oQ,Fl)=>{"use strict";var ME=Ie(),{checkPath:LE}=xE(),IE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Fl.exports.makeDir=async(t,e)=>(LE(t),ME.mkdir(t,{mode:IE(e),recursive:!0}));Fl.exports.makeDirSync=(t,e)=>(LE(t),ME.mkdirSync(t,{mode:IE(e),recursive:!0}))});var ut=h((iQ,wE)=>{"use strict";var rU=Ee().fromPromise,{makeDir:nU,makeDirSync:Yl}=CE(),ql=rU(nU);wE.exports={mkdirs:ql,mkdirsSync:Yl,mkdirp:ql,mkdirpSync:Yl,ensureDir:ql,ensureDirSync:Yl}});var Ht=h((aQ,UE)=>{"use strict";var oU=Ee().fromPromise,DE=Ie();function iU(t){return DE.access(t).then(()=>!0).catch(()=>!1)}UE.exports={pathExists:oU(iU),pathExistsSync:DE.existsSync}});var jl=h((uQ,VE)=>{"use strict";var Xr=Ie(),aU=Ee().fromPromise;async function uU(t,e,n){let i=await Xr.open(t,"r+"),a=null;try{await Xr.futimes(i,e,n)}finally{try{await Xr.close(i)}catch(u){a=u}}if(a)throw a}function sU(t,e,n){let i=Xr.openSync(t,"r+");return Xr.futimesSync(i,e,n),Xr.closeSync(i)}VE.exports={utimesMillis:aU(uU),utimesMillisSync:sU}});var Tr=h((sQ,HE)=>{"use strict";var Jr=Ie(),_e=L("path"),BE=Ee().fromPromise;function lU(t,e,n){let i=n.dereference?a=>Jr.stat(a,{bigint:!0}):a=>Jr.lstat(a,{bigint:!0});return Promise.all([i(t),i(e).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,u])=>({srcStat:a,destStat:u}))}function cU(t,e,n){let i,a=n.dereference?o=>Jr.statSync(o,{bigint:!0}):o=>Jr.lstatSync(o,{bigint:!0}),u=a(t);try{i=a(e)}catch(o){if(o.code==="ENOENT")return{srcStat:u,destStat:null};throw o}return{srcStat:u,destStat:i}}async function fU(t,e,n,i){let{srcStat:a,destStat:u}=await lU(t,e,i);if(u){if(to(a,u)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&$l(t,e))throw new Error(Bi(t,e,n));return{srcStat:a,destStat:u}}function pU(t,e,n,i){let{srcStat:a,destStat:u}=cU(t,e,i);if(u){if(to(a,u)){let o=_e.basename(t),r=_e.basename(e);if(n==="move"&&o!==r&&o.toLowerCase()===r.toLowerCase())return{srcStat:a,destStat:u,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!u.isDirectory())throw new Error(`Cannot overwrite non-directory '${e}' with directory '${t}'.`);if(!a.isDirectory()&&u.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(a.isDirectory()&&$l(t,e))throw new Error(Bi(t,e,n));return{srcStat:a,destStat:u}}async function GE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),u=_e.resolve(_e.dirname(n));if(u===a||u===_e.parse(u).root)return;let o;try{o=await Jr.stat(u,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(to(e,o))throw new Error(Bi(t,n,i));return GE(t,e,u,i)}function kE(t,e,n,i){let a=_e.resolve(_e.dirname(t)),u=_e.resolve(_e.dirname(n));if(u===a||u===_e.parse(u).root)return;let o;try{o=Jr.statSync(u,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(to(e,o))throw new Error(Bi(t,n,i));return kE(t,e,u,i)}function to(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function $l(t,e){let n=_e.resolve(t).split(_e.sep).filter(a=>a),i=_e.resolve(e).split(_e.sep).filter(a=>a);return n.every((a,u)=>i[u]===a)}function Bi(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}HE.exports={checkPaths:BE(fU),checkPathsSync:pU,checkParentPaths:BE(GE),checkParentPathsSync:kE,isSrcSubdir:$l,areIdentical:to}});var $E=h((lQ,jE)=>{"use strict";var be=Ie(),ro=L("path"),{mkdirs:dU}=ut(),{pathExists:EU}=Ht(),{utimesMillis:_U}=jl(),no=Tr();async function SU(t,e,n={}){typeof n=="function"&&(n={filter:n}),n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
5
5
|
|
6
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await no.checkPaths(t,e,"copy",n);if(await no.checkParentPaths(t,i,e,"copy"),!await
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await no.checkPaths(t,e,"copy",n);if(await no.checkParentPaths(t,i,e,"copy"),!await YE(t,e,n))return;let o=ro.dirname(e);await EU(o)||await dU(o),await qE(a,t,e,n)}async function YE(t,e,n){return n.filter?n.filter(t,e):!0}async function qE(t,e,n,i){let u=await(i.dereference?be.stat:be.lstat)(e);if(u.isDirectory())return mU(u,t,e,n,i);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return hU(u,t,e,n,i);if(u.isSymbolicLink())return yU(t,e,n,i);throw u.isSocket()?new Error(`Cannot copy a socket file: ${e}`):u.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function hU(t,e,n,i,a){if(!e)return FE(t,n,i,a);if(a.overwrite)return await be.unlink(i),FE(t,n,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}async function FE(t,e,n,i){if(await be.copyFile(e,n),i.preserveTimestamps){TU(t.mode)&&await vU(n,t.mode);let a=await be.stat(e);await _U(n,a.atime,a.mtime)}return be.chmod(n,t.mode)}function TU(t){return(t&128)===0}function vU(t,e){return be.chmod(t,e|128)}async function mU(t,e,n,i,a){e||await be.mkdir(i);let u=await be.readdir(n);await Promise.all(u.map(async o=>{let r=ro.join(n,o),s=ro.join(i,o);if(!await YE(r,s,a))return;let{destStat:c}=await no.checkPaths(r,s,"copy",a);return qE(c,r,s,a)})),e||await be.chmod(i,t.mode)}async function yU(t,e,n,i){let a=await be.readlink(e);if(i.dereference&&(a=ro.resolve(process.cwd(),a)),!t)return be.symlink(a,n);let u=null;try{u=await be.readlink(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return be.symlink(a,n);throw o}if(i.dereference&&(u=ro.resolve(process.cwd(),u)),no.isSrcSubdir(a,u))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`);if(no.isSrcSubdir(u,a))throw new Error(`Cannot overwrite '${u}' with '${a}'.`);return await be.unlink(n),be.symlink(a,n)}jE.exports=SU});var JE=h((cQ,XE)=>{"use strict";var Ce=zr(),oo=L("path"),AU=ut().mkdirsSync,OU=jl().utimesMillisSync,io=Tr();function gU(t,e,n){typeof n=="function"&&(n={filter:n}),n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
7
7
|
|
8
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:a}=io.checkPathsSync(t,e,"copy",n);if(io.checkParentPathsSync(t,i,e,"copy"),n.filter&&!n.filter(t,e))return;let
|
9
|
-
`,finalEOL:n=!0,replacer:i=null,spaces:a}={}){let s=n?e:"";return JSON.stringify(t,i,a).replace(/\n/g,e)+s}function f1(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}k_.exports={stringify:c1,stripBom:f1}});var q_=h((pQ,Y_)=>{"use strict";var Qr;try{Qr=zr()}catch{Qr=L("fs")}var Hi=Ee(),{stringify:H_,stripBom:F_}=ki();async function p1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Qr,i="throws"in e?e.throws:!0,a=await Hi.fromCallback(n.readFile)(t,e);a=F_(a);let s;try{s=JSON.parse(a,e?e.reviver:null)}catch(o){if(i)throw o.message=`${t}: ${o.message}`,o;return null}return s}var d1=Hi.fromPromise(p1);function E1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Qr,i="throws"in e?e.throws:!0;try{let a=n.readFileSync(t,e);return a=F_(a),JSON.parse(a,e.reviver)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}}async function _1(t,e,n={}){let i=n.fs||Qr,a=H_(e,n);await Hi.fromCallback(i.writeFile)(t,a,n)}var S1=Hi.fromPromise(_1);function h1(t,e,n={}){let i=n.fs||Qr,a=H_(e,n);return i.writeFileSync(t,a,n)}var T1={readFile:d1,readFileSync:E1,writeFile:S1,writeFileSync:h1};Y_.exports=T1});var $_=h((dQ,j_)=>{"use strict";var Fi=q_();j_.exports={readJson:Fi.readFile,readJsonSync:Fi.readFileSync,writeJson:Fi.writeFile,writeJsonSync:Fi.writeFileSync}});var Yi=h((EQ,z_)=>{"use strict";var v1=Ee().fromPromise,Yl=Ie(),K_=L("path"),W_=at(),m1=Ft().pathExists;async function y1(t,e,n="utf-8"){let i=K_.dirname(t);return await m1(i)||await W_.mkdirs(i),Yl.writeFile(t,e,n)}function A1(t,...e){let n=K_.dirname(t);Yl.existsSync(n)||W_.mkdirsSync(n),Yl.writeFileSync(t,...e)}z_.exports={outputFile:v1(y1),outputFileSync:A1}});var J_=h((_Q,X_)=>{"use strict";var{stringify:O1}=ki(),{outputFile:g1}=Yi();async function N1(t,e,n={}){let i=O1(e,n);await g1(t,i,n)}X_.exports=N1});var Z_=h((SQ,Q_)=>{"use strict";var{stringify:R1}=ki(),{outputFileSync:P1}=Yi();function b1(t,e,n){let i=R1(e,n);P1(t,i,n)}Q_.exports=b1});var tS=h((hQ,eS)=>{"use strict";var x1=Ee().fromPromise,we=$_();we.outputJson=x1(J_());we.outputJsonSync=Z_();we.outputJSON=we.outputJson;we.outputJSONSync=we.outputJsonSync;we.writeJSON=we.writeJson;we.writeJSONSync=we.writeJsonSync;we.readJSON=we.readJson;we.readJSONSync=we.readJsonSync;eS.exports=we});var aS=h((TQ,iS)=>{"use strict";var M1=Ie(),rS=L("path"),{copy:L1}=Gi(),{remove:oS}=ao(),{mkdirp:I1}=at(),{pathExists:C1}=Ft(),nS=mr();async function w1(t,e,n={}){let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=await nS.checkPaths(t,e,"move",n);await nS.checkParentPaths(t,a,e,"move");let o=rS.dirname(e);return rS.parse(o).root!==o&&await I1(o),U1(t,e,i,s)}async function U1(t,e,n,i){if(!i){if(n)await oS(e);else if(await C1(e))throw new Error("dest already exists.")}try{await M1.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await D1(t,e,n)}}async function D1(t,e,n){return await L1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),oS(t)}iS.exports=w1});var fS=h((vQ,cS)=>{"use strict";var uS=zr(),jl=L("path"),V1=Gi().copySync,lS=ao().removeSync,B1=at().mkdirpSync,sS=mr();function G1(t,e,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=sS.checkPathsSync(t,e,"move",n);return sS.checkParentPathsSync(t,a,e,"move"),k1(e)||B1(jl.dirname(e)),H1(t,e,i,s)}function k1(t){let e=jl.dirname(t);return jl.parse(e).root===e}function H1(t,e,n,i){if(i)return ql(t,e,n);if(n)return lS(e),ql(t,e,n);if(uS.existsSync(e))throw new Error("dest already exists.");return ql(t,e,n)}function ql(t,e,n){try{uS.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return F1(t,e,n)}}function F1(t,e,n){return V1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),lS(t)}cS.exports=G1});var dS=h((mQ,pS)=>{"use strict";var Y1=Ee().fromPromise;pS.exports={move:Y1(aS()),moveSync:fS()}});var $l=h((yQ,ES)=>{"use strict";ES.exports={...Ie(),...Gi(),...d_(),...G_(),...tS(),...at(),...dS(),...Yi(),...Ft(),...ao()}});function fe(t){for(var e={},n=t.length,i=0;i<n;i++){var a=t[i];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var tc=m(()=>{"use strict"});var NS,RS,PS,bS,xS,MS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,xh,Mh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,xT,MT,LT,IT,CT,wT,UT,DT,VT,BT,GT,kT,HT,FT,YT,qT,fV,pV,dV,EV,_V,SV,hV,TV,vV,mV,yV,AV,OV,gV,NV,RV,PV,bV,xV,MV,LV,IV,CV,wV,UV,DV,VV,BV,GV,kV,HV,FV,YV,qV,jV,$V,KV,WV,zV,XV,JV,QV,ZV,e2,t2,r2,n2,o2,i2,a2,s2,u2,l2,c2,f2,p2,d2,E2,_2,S2,h2,T2,v2,m2,y2,A2,O2,g2,N2,R2,P2,b2,x2,M2,L2,I2,C2,w2,U2,D2,V2,B2,G2,k2,H2,F2,Y2,q2,j2,$2,K2,W2,z2,X2,J2,Q2,Z2,eB,tB,rB,nB,oB,iB,aB,sB,uB,lB,cB,fB,pB,dB,EB,_B,SB,hB,TB,vB,mB,yB,AB,OB,gB,NB,RB,PB,bB,xB,MB,LB,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv,bv,xv,Mv,Lv,Iv,Cv,wv,Uv,Dv,Vv,IB,CB,wB,UB,DB,VB,BB,GB,kB,HB,FB,YB,qB,jB,$B,KB,WB,zB,XB,JB,QB,ZB,eG,tG,rG,nG,oG,iG,aG,sG,uG,lG,cG,fG,pG,dG,EG,_G,SG,hG,TG,vG,mG,yG,AG,OG,gG,NG,Bv,Gv,kv,Hv,Fv,Yv,qv,jv,$v,Kv,Wv,RG,PG,bG,xG,MG,LG,IG,CG,wG,UG,DG,VG,zv,Xv,Jv,Qv,Zv,BG,GG,kG,HG,FG,YG,em,tm,rm,qG,jG,$G,KG,nm,om,im,am,WG,zG,XG,JG,QG,sm,um,lm,cm,fm,pm,dm,ZG,ek,tk,rk,nk,ok,ik,ak,Em,_m,Sm,hm,Tm,sk,uk,lk,ck,fk,pk,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm,Um,Dm,Vm,Bm,Gm,dk,Ek,_k,Sk,hk,Tk,vk,mk,yk,Ak,Ok,gk,Nk,Rk,Pk,bk,xk,Mk,Lk,Ik,Ck,wk,km,Hm,Fm,Ym,qm,Uk,Dk,Vk,Bk,Gk,kk,jm,$m,Hk,Fk,Yk,Km,Wm,qk,jk,$k,zm,Xm,Jm,Qm,Zm,ey,ty,ry,ny,oy,iy,ay,sy,uy,ly,cy,fy,Kk,Wk,zk,Xk,Jk,Qk,Zk,eH,tH,rH,nH,oH,iH,aH,sH,uH,lH,cH,py,dy,fH,pH,dH,Ey=m(()=>{"use strict";tc();NS="aws.lambda.invoked_arn",RS="db.system",PS="db.connection_string",bS="db.user",xS="db.jdbc.driver_classname",MS="db.name",LS="db.statement",IS="db.operation",CS="db.mssql.instance_name",wS="db.cassandra.keyspace",US="db.cassandra.page_size",DS="db.cassandra.consistency_level",VS="db.cassandra.table",BS="db.cassandra.idempotence",GS="db.cassandra.speculative_execution_count",kS="db.cassandra.coordinator.id",HS="db.cassandra.coordinator.dc",FS="db.hbase.namespace",YS="db.redis.database_index",qS="db.mongodb.collection",jS="db.sql.table",$S="exception.type",KS="exception.message",WS="exception.stacktrace",zS="exception.escaped",XS="faas.trigger",JS="faas.execution",QS="faas.document.collection",ZS="faas.document.operation",eh="faas.document.time",th="faas.document.name",rh="faas.time",nh="faas.cron",oh="faas.coldstart",ih="faas.invoked_name",ah="faas.invoked_provider",sh="faas.invoked_region",uh="net.transport",lh="net.peer.ip",ch="net.peer.port",fh="net.peer.name",ph="net.host.ip",dh="net.host.port",Eh="net.host.name",_h="net.host.connection.type",Sh="net.host.connection.subtype",hh="net.host.carrier.name",Th="net.host.carrier.mcc",vh="net.host.carrier.mnc",mh="net.host.carrier.icc",yh="peer.service",Ah="enduser.id",Oh="enduser.role",gh="enduser.scope",Nh="thread.id",Rh="thread.name",Ph="code.function",bh="code.namespace",xh="code.filepath",Mh="code.lineno",Lh="http.method",Ih="http.url",Ch="http.target",wh="http.host",Uh="http.scheme",Dh="http.status_code",Vh="http.flavor",Bh="http.user_agent",Gh="http.request_content_length",kh="http.request_content_length_uncompressed",Hh="http.response_content_length",Fh="http.response_content_length_uncompressed",Yh="http.server_name",qh="http.route",jh="http.client_ip",$h="aws.dynamodb.table_names",Kh="aws.dynamodb.consumed_capacity",Wh="aws.dynamodb.item_collection_metrics",zh="aws.dynamodb.provisioned_read_capacity",Xh="aws.dynamodb.provisioned_write_capacity",Jh="aws.dynamodb.consistent_read",Qh="aws.dynamodb.projection",Zh="aws.dynamodb.limit",eT="aws.dynamodb.attributes_to_get",tT="aws.dynamodb.index_name",rT="aws.dynamodb.select",nT="aws.dynamodb.global_secondary_indexes",oT="aws.dynamodb.local_secondary_indexes",iT="aws.dynamodb.exclusive_start_table",aT="aws.dynamodb.table_count",sT="aws.dynamodb.scan_forward",uT="aws.dynamodb.segment",lT="aws.dynamodb.total_segments",cT="aws.dynamodb.count",fT="aws.dynamodb.scanned_count",pT="aws.dynamodb.attribute_definitions",dT="aws.dynamodb.global_secondary_index_updates",ET="messaging.system",_T="messaging.destination",ST="messaging.destination_kind",hT="messaging.temp_destination",TT="messaging.protocol",vT="messaging.protocol_version",mT="messaging.url",yT="messaging.message_id",AT="messaging.conversation_id",OT="messaging.message_payload_size_bytes",gT="messaging.message_payload_compressed_size_bytes",NT="messaging.operation",RT="messaging.consumer_id",PT="messaging.rabbitmq.routing_key",bT="messaging.kafka.message_key",xT="messaging.kafka.consumer_group",MT="messaging.kafka.client_id",LT="messaging.kafka.partition",IT="messaging.kafka.tombstone",CT="rpc.system",wT="rpc.service",UT="rpc.method",DT="rpc.grpc.status_code",VT="rpc.jsonrpc.version",BT="rpc.jsonrpc.request_id",GT="rpc.jsonrpc.error_code",kT="rpc.jsonrpc.error_message",HT="message.type",FT="message.id",YT="message.compressed_size",qT="message.uncompressed_size",fV=NS,pV=RS,dV=PS,EV=bS,_V=xS,SV=MS,hV=LS,TV=IS,vV=CS,mV=wS,yV=US,AV=DS,OV=VS,gV=BS,NV=GS,RV=kS,PV=HS,bV=FS,xV=YS,MV=qS,LV=jS,IV=$S,CV=KS,wV=WS,UV=zS,DV=XS,VV=JS,BV=QS,GV=ZS,kV=eh,HV=th,FV=rh,YV=nh,qV=oh,jV=ih,$V=ah,KV=sh,WV=uh,zV=lh,XV=ch,JV=fh,QV=ph,ZV=dh,e2=Eh,t2=_h,r2=Sh,n2=hh,o2=Th,i2=vh,a2=mh,s2=yh,u2=Ah,l2=Oh,c2=gh,f2=Nh,p2=Rh,d2=Ph,E2=bh,_2=xh,S2=Mh,h2=Lh,T2=Ih,v2=Ch,m2=wh,y2=Uh,A2=Dh,O2=Vh,g2=Bh,N2=Gh,R2=kh,P2=Hh,b2=Fh,x2=Yh,M2=qh,L2=jh,I2=$h,C2=Kh,w2=Wh,U2=zh,D2=Xh,V2=Jh,B2=Qh,G2=Zh,k2=eT,H2=tT,F2=rT,Y2=nT,q2=oT,j2=iT,$2=aT,K2=sT,W2=uT,z2=lT,X2=cT,J2=fT,Q2=pT,Z2=dT,eB=ET,tB=_T,rB=ST,nB=hT,oB=TT,iB=vT,aB=mT,sB=yT,uB=AT,lB=OT,cB=gT,fB=NT,pB=RT,dB=PT,EB=bT,_B=xT,SB=MT,hB=LT,TB=IT,vB=CT,mB=wT,yB=UT,AB=DT,OB=VT,gB=BT,NB=GT,RB=kT,PB=HT,bB=FT,xB=YT,MB=qT,LB=fe([NS,RS,PS,bS,xS,MS,LS,IS,CS,wS,US,DS,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,sh,uh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,xh,Mh,Lh,Ih,Ch,wh,Uh,Dh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,sT,uT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,xT,MT,LT,IT,CT,wT,UT,DT,VT,BT,GT,kT,HT,FT,YT,qT]),jT="other_sql",$T="mssql",KT="mysql",WT="oracle",zT="db2",XT="postgresql",JT="redshift",QT="hive",ZT="cloudscape",ev="hsqldb",tv="progress",rv="maxdb",nv="hanadb",ov="ingres",iv="firstsql",av="edb",sv="cache",uv="adabas",lv="firebird",cv="derby",fv="filemaker",pv="informix",dv="instantdb",Ev="interbase",_v="mariadb",Sv="netezza",hv="pervasive",Tv="pointbase",vv="sqlite",mv="sybase",yv="teradata",Av="vertica",Ov="h2",gv="coldfusion",Nv="cassandra",Rv="hbase",Pv="mongodb",bv="redis",xv="couchbase",Mv="couchdb",Lv="cosmosdb",Iv="dynamodb",Cv="neo4j",wv="geode",Uv="elasticsearch",Dv="memcached",Vv="cockroachdb",IB=jT,CB=$T,wB=KT,UB=WT,DB=zT,VB=XT,BB=JT,GB=QT,kB=ZT,HB=ev,FB=tv,YB=rv,qB=nv,jB=ov,$B=iv,KB=av,WB=sv,zB=uv,XB=lv,JB=cv,QB=fv,ZB=pv,eG=dv,tG=Ev,rG=_v,nG=Sv,oG=hv,iG=Tv,aG=vv,sG=mv,uG=yv,lG=Av,cG=Ov,fG=gv,pG=Nv,dG=Rv,EG=Pv,_G=bv,SG=xv,hG=Mv,TG=Lv,vG=Iv,mG=Cv,yG=wv,AG=Uv,OG=Dv,gG=Vv,NG=fe([jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,sv,uv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv,bv,xv,Mv,Lv,Iv,Cv,wv,Uv,Dv,Vv]),Bv="all",Gv="each_quorum",kv="quorum",Hv="local_quorum",Fv="one",Yv="two",qv="three",jv="local_one",$v="any",Kv="serial",Wv="local_serial",RG=Bv,PG=Gv,bG=kv,xG=Hv,MG=Fv,LG=Yv,IG=qv,CG=jv,wG=$v,UG=Kv,DG=Wv,VG=fe([Bv,Gv,kv,Hv,Fv,Yv,qv,jv,$v,Kv,Wv]),zv="datasource",Xv="http",Jv="pubsub",Qv="timer",Zv="other",BG=zv,GG=Xv,kG=Jv,HG=Qv,FG=Zv,YG=fe([zv,Xv,Jv,Qv,Zv]),em="insert",tm="edit",rm="delete",qG=em,jG=tm,$G=rm,KG=fe([em,tm,rm]),nm="alibaba_cloud",om="aws",im="azure",am="gcp",WG=nm,zG=om,XG=im,JG=am,QG=fe([nm,om,im,am]),sm="ip_tcp",um="ip_udp",lm="ip",cm="unix",fm="pipe",pm="inproc",dm="other",ZG=sm,ek=um,tk=lm,rk=cm,nk=fm,ok=pm,ik=dm,ak=fe([sm,um,lm,cm,fm,pm,dm]),Em="wifi",_m="wired",Sm="cell",hm="unavailable",Tm="unknown",sk=Em,uk=_m,lk=Sm,ck=hm,fk=Tm,pk=fe([Em,_m,Sm,hm,Tm]),vm="gprs",mm="edge",ym="umts",Am="cdma",Om="evdo_0",gm="evdo_a",Nm="cdma2000_1xrtt",Rm="hsdpa",Pm="hsupa",bm="hspa",xm="iden",Mm="evdo_b",Lm="lte",Im="ehrpd",Cm="hspap",wm="gsm",Um="td_scdma",Dm="iwlan",Vm="nr",Bm="nrnsa",Gm="lte_ca",dk=vm,Ek=mm,_k=ym,Sk=Am,hk=Om,Tk=gm,vk=Nm,mk=Rm,yk=Pm,Ak=bm,Ok=xm,gk=Mm,Nk=Lm,Rk=Im,Pk=Cm,bk=wm,xk=Um,Mk=Dm,Lk=Vm,Ik=Bm,Ck=Gm,wk=fe([vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm,Um,Dm,Vm,Bm,Gm]),km="1.0",Hm="1.1",Fm="2.0",Ym="SPDY",qm="QUIC",Uk=km,Dk=Hm,Vk=Fm,Bk=Ym,Gk=qm,kk={HTTP_1_0:km,HTTP_1_1:Hm,HTTP_2_0:Fm,SPDY:Ym,QUIC:qm},jm="queue",$m="topic",Hk=jm,Fk=$m,Yk=fe([jm,$m]),Km="receive",Wm="process",qk=Km,jk=Wm,$k=fe([Km,Wm]),zm=0,Xm=1,Jm=2,Qm=3,Zm=4,ey=5,ty=6,ry=7,ny=8,oy=9,iy=10,ay=11,sy=12,uy=13,ly=14,cy=15,fy=16,Kk=zm,Wk=Xm,zk=Jm,Xk=Qm,Jk=Zm,Qk=ey,Zk=ty,eH=ry,tH=ny,rH=oy,nH=iy,oH=ay,iH=sy,aH=uy,sH=ly,uH=cy,lH=fy,cH={OK:zm,CANCELLED:Xm,UNKNOWN:Jm,INVALID_ARGUMENT:Qm,DEADLINE_EXCEEDED:Zm,NOT_FOUND:ey,ALREADY_EXISTS:ty,PERMISSION_DENIED:ry,RESOURCE_EXHAUSTED:ny,FAILED_PRECONDITION:oy,ABORTED:iy,OUT_OF_RANGE:ay,UNIMPLEMENTED:sy,INTERNAL:uy,UNAVAILABLE:ly,DATA_LOSS:cy,UNAUTHENTICATED:fy},py="SENT",dy="RECEIVED",fH=py,pH=dy,dH=fe([py,dy])});var _y=m(()=>{"use strict";Ey()});var Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,xy,My,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,xA,MA,LA,IA,CA,wA,UA,DA,VA,BA,GA,kA,HA,FA,EH,_H,SH,hH,TH,vH,mH,yH,AH,OH,gH,NH,RH,PH,bH,xH,MH,LH,IH,CH,wH,UH,DH,VH,BH,GH,kH,HH,FH,YH,qH,jH,$H,KH,WH,zH,XH,JH,QH,ZH,e3,t3,r3,n3,o3,i3,a3,s3,u3,l3,c3,f3,p3,d3,E3,_3,S3,h3,T3,v3,m3,y3,A3,O3,g3,N3,R3,P3,b3,x3,M3,L3,I3,C3,w3,U3,D3,V3,B3,G3,k3,H3,YA,qA,jA,$A,F3,Y3,q3,j3,$3,KA,WA,zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO,iO,aO,sO,uO,lO,K3,W3,z3,X3,J3,Q3,Z3,eF,tF,rF,nF,oF,iF,aF,sF,uF,lF,cF,cO,fO,fF,pF,dF,pO,dO,EO,_O,SO,hO,TO,EF,_F,SF,hF,TF,vF,mF,yF,vO,mO,yO,AO,OO,gO,NO,RO,PO,bO,xO,AF,OF,gF,NF,RF,PF,bF,xF,MF,LF,IF,CF,MO,LO,IO,CO,wO,UO,DO,VO,BO,GO,wF,UF,DF,VF,BF,GF,kF,HF,FF,YF,qF,kO=m(()=>{"use strict";tc();Sy="cloud.provider",hy="cloud.account.id",Ty="cloud.region",vy="cloud.availability_zone",my="cloud.platform",yy="aws.ecs.container.arn",Ay="aws.ecs.cluster.arn",Oy="aws.ecs.launchtype",gy="aws.ecs.task.arn",Ny="aws.ecs.task.family",Ry="aws.ecs.task.revision",Py="aws.eks.cluster.arn",by="aws.log.group.names",xy="aws.log.group.arns",My="aws.log.stream.names",Ly="aws.log.stream.arns",Iy="container.name",Cy="container.id",wy="container.runtime",Uy="container.image.name",Dy="container.image.tag",Vy="deployment.environment",By="device.id",Gy="device.model.identifier",ky="device.model.name",Hy="faas.name",Fy="faas.id",Yy="faas.version",qy="faas.instance",jy="faas.max_memory",$y="host.id",Ky="host.name",Wy="host.type",zy="host.arch",Xy="host.image.name",Jy="host.image.id",Qy="host.image.version",Zy="k8s.cluster.name",eA="k8s.node.name",tA="k8s.node.uid",rA="k8s.namespace.name",nA="k8s.pod.uid",oA="k8s.pod.name",iA="k8s.container.name",aA="k8s.replicaset.uid",sA="k8s.replicaset.name",uA="k8s.deployment.uid",lA="k8s.deployment.name",cA="k8s.statefulset.uid",fA="k8s.statefulset.name",pA="k8s.daemonset.uid",dA="k8s.daemonset.name",EA="k8s.job.uid",_A="k8s.job.name",SA="k8s.cronjob.uid",hA="k8s.cronjob.name",TA="os.type",vA="os.description",mA="os.name",yA="os.version",AA="process.pid",OA="process.executable.name",gA="process.executable.path",NA="process.command",RA="process.command_line",PA="process.command_args",bA="process.owner",xA="process.runtime.name",MA="process.runtime.version",LA="process.runtime.description",IA="service.name",CA="service.namespace",wA="service.instance.id",UA="service.version",DA="telemetry.sdk.name",VA="telemetry.sdk.language",BA="telemetry.sdk.version",GA="telemetry.auto.version",kA="webengine.name",HA="webengine.version",FA="webengine.description",EH=Sy,_H=hy,SH=Ty,hH=vy,TH=my,vH=yy,mH=Ay,yH=Oy,AH=gy,OH=Ny,gH=Ry,NH=Py,RH=by,PH=xy,bH=My,xH=Ly,MH=Iy,LH=Cy,IH=wy,CH=Uy,wH=Dy,UH=Vy,DH=By,VH=Gy,BH=ky,GH=Hy,kH=Fy,HH=Yy,FH=qy,YH=jy,qH=$y,jH=Ky,$H=Wy,KH=zy,WH=Xy,zH=Jy,XH=Qy,JH=Zy,QH=eA,ZH=tA,e3=rA,t3=nA,r3=oA,n3=iA,o3=aA,i3=sA,a3=uA,s3=lA,u3=cA,l3=fA,c3=pA,f3=dA,p3=EA,d3=_A,E3=SA,_3=hA,S3=TA,h3=vA,T3=mA,v3=yA,m3=AA,y3=OA,A3=gA,O3=NA,g3=RA,N3=PA,R3=bA,P3=xA,b3=MA,x3=LA,M3=IA,L3=CA,I3=wA,C3=UA,w3=DA,U3=VA,D3=BA,V3=GA,B3=kA,G3=HA,k3=FA,H3=fe([Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,xy,My,Ly,Iy,Cy,wy,Uy,Dy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,sA,uA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,xA,MA,LA,IA,CA,wA,UA,DA,VA,BA,GA,kA,HA,FA]),YA="alibaba_cloud",qA="aws",jA="azure",$A="gcp",F3=YA,Y3=qA,q3=jA,j3=$A,$3=fe([YA,qA,jA,$A]),KA="alibaba_cloud_ecs",WA="alibaba_cloud_fc",zA="aws_ec2",XA="aws_ecs",JA="aws_eks",QA="aws_lambda",ZA="aws_elastic_beanstalk",eO="azure_vm",tO="azure_container_instances",rO="azure_aks",nO="azure_functions",oO="azure_app_service",iO="gcp_compute_engine",aO="gcp_cloud_run",sO="gcp_kubernetes_engine",uO="gcp_cloud_functions",lO="gcp_app_engine",K3=KA,W3=WA,z3=zA,X3=XA,J3=JA,Q3=QA,Z3=ZA,eF=eO,tF=tO,rF=rO,nF=nO,oF=oO,iF=iO,aF=aO,sF=sO,uF=uO,lF=lO,cF=fe([KA,WA,zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO,iO,aO,sO,uO,lO]),cO="ec2",fO="fargate",fF=cO,pF=fO,dF=fe([cO,fO]),pO="amd64",dO="arm32",EO="arm64",_O="ia64",SO="ppc32",hO="ppc64",TO="x86",EF=pO,_F=dO,SF=EO,hF=_O,TF=SO,vF=hO,mF=TO,yF=fe([pO,dO,EO,_O,SO,hO,TO]),vO="windows",mO="linux",yO="darwin",AO="freebsd",OO="netbsd",gO="openbsd",NO="dragonflybsd",RO="hpux",PO="aix",bO="solaris",xO="z_os",AF=vO,OF=mO,gF=yO,NF=AO,RF=OO,PF=gO,bF=NO,xF=RO,MF=PO,LF=bO,IF=xO,CF=fe([vO,mO,yO,AO,OO,gO,NO,RO,PO,bO,xO]),MO="cpp",LO="dotnet",IO="erlang",CO="go",wO="java",UO="nodejs",DO="php",VO="python",BO="ruby",GO="webjs",wF=MO,UF=LO,DF=IO,VF=CO,BF=wO,GF=UO,kF=DO,HF=VO,FF=BO,YF=GO,qF=fe([MO,LO,IO,CO,wO,UO,DO,VO,BO,GO])});var HO=m(()=>{"use strict";kO()});var po={};nt(po,{AWSECSLAUNCHTYPEVALUES_EC2:()=>fF,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>pF,AwsEcsLaunchtypeValues:()=>dF,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>K3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>W3,CLOUDPLATFORMVALUES_AWS_EC2:()=>z3,CLOUDPLATFORMVALUES_AWS_ECS:()=>X3,CLOUDPLATFORMVALUES_AWS_EKS:()=>J3,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>Z3,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>Q3,CLOUDPLATFORMVALUES_AZURE_AKS:()=>rF,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>oF,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>tF,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>nF,CLOUDPLATFORMVALUES_AZURE_VM:()=>eF,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>lF,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>uF,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>aF,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>iF,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>sF,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>F3,CLOUDPROVIDERVALUES_AWS:()=>Y3,CLOUDPROVIDERVALUES_AZURE:()=>q3,CLOUDPROVIDERVALUES_GCP:()=>j3,CloudPlatformValues:()=>cF,CloudProviderValues:()=>$3,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>RG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>wG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>PG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>CG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>xG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>DG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>MG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>bG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>UG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>IG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>LG,DBSYSTEMVALUES_ADABAS:()=>zB,DBSYSTEMVALUES_CACHE:()=>WB,DBSYSTEMVALUES_CASSANDRA:()=>pG,DBSYSTEMVALUES_CLOUDSCAPE:()=>kB,DBSYSTEMVALUES_COCKROACHDB:()=>gG,DBSYSTEMVALUES_COLDFUSION:()=>fG,DBSYSTEMVALUES_COSMOSDB:()=>TG,DBSYSTEMVALUES_COUCHBASE:()=>SG,DBSYSTEMVALUES_COUCHDB:()=>hG,DBSYSTEMVALUES_DB2:()=>DB,DBSYSTEMVALUES_DERBY:()=>JB,DBSYSTEMVALUES_DYNAMODB:()=>vG,DBSYSTEMVALUES_EDB:()=>KB,DBSYSTEMVALUES_ELASTICSEARCH:()=>AG,DBSYSTEMVALUES_FILEMAKER:()=>QB,DBSYSTEMVALUES_FIREBIRD:()=>XB,DBSYSTEMVALUES_FIRSTSQL:()=>$B,DBSYSTEMVALUES_GEODE:()=>yG,DBSYSTEMVALUES_H2:()=>cG,DBSYSTEMVALUES_HANADB:()=>qB,DBSYSTEMVALUES_HBASE:()=>dG,DBSYSTEMVALUES_HIVE:()=>GB,DBSYSTEMVALUES_HSQLDB:()=>HB,DBSYSTEMVALUES_INFORMIX:()=>ZB,DBSYSTEMVALUES_INGRES:()=>jB,DBSYSTEMVALUES_INSTANTDB:()=>eG,DBSYSTEMVALUES_INTERBASE:()=>tG,DBSYSTEMVALUES_MARIADB:()=>rG,DBSYSTEMVALUES_MAXDB:()=>YB,DBSYSTEMVALUES_MEMCACHED:()=>OG,DBSYSTEMVALUES_MONGODB:()=>EG,DBSYSTEMVALUES_MSSQL:()=>CB,DBSYSTEMVALUES_MYSQL:()=>wB,DBSYSTEMVALUES_NEO4J:()=>mG,DBSYSTEMVALUES_NETEZZA:()=>nG,DBSYSTEMVALUES_ORACLE:()=>UB,DBSYSTEMVALUES_OTHER_SQL:()=>IB,DBSYSTEMVALUES_PERVASIVE:()=>oG,DBSYSTEMVALUES_POINTBASE:()=>iG,DBSYSTEMVALUES_POSTGRESQL:()=>VB,DBSYSTEMVALUES_PROGRESS:()=>FB,DBSYSTEMVALUES_REDIS:()=>_G,DBSYSTEMVALUES_REDSHIFT:()=>BB,DBSYSTEMVALUES_SQLITE:()=>aG,DBSYSTEMVALUES_SYBASE:()=>sG,DBSYSTEMVALUES_TERADATA:()=>uG,DBSYSTEMVALUES_VERTICA:()=>lG,DbCassandraConsistencyLevelValues:()=>VG,DbSystemValues:()=>NG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>$G,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>jG,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>qG,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>WG,FAASINVOKEDPROVIDERVALUES_AWS:()=>zG,FAASINVOKEDPROVIDERVALUES_AZURE:()=>XG,FAASINVOKEDPROVIDERVALUES_GCP:()=>JG,FAASTRIGGERVALUES_DATASOURCE:()=>BG,FAASTRIGGERVALUES_HTTP:()=>GG,FAASTRIGGERVALUES_OTHER:()=>FG,FAASTRIGGERVALUES_PUBSUB:()=>kG,FAASTRIGGERVALUES_TIMER:()=>HG,FaasDocumentOperationValues:()=>KG,FaasInvokedProviderValues:()=>QG,FaasTriggerValues:()=>YG,HOSTARCHVALUES_AMD64:()=>EF,HOSTARCHVALUES_ARM32:()=>_F,HOSTARCHVALUES_ARM64:()=>SF,HOSTARCHVALUES_IA64:()=>hF,HOSTARCHVALUES_PPC32:()=>TF,HOSTARCHVALUES_PPC64:()=>vF,HOSTARCHVALUES_X86:()=>mF,HTTPFLAVORVALUES_HTTP_1_0:()=>Uk,HTTPFLAVORVALUES_HTTP_1_1:()=>Dk,HTTPFLAVORVALUES_HTTP_2_0:()=>Vk,HTTPFLAVORVALUES_QUIC:()=>Gk,HTTPFLAVORVALUES_SPDY:()=>Bk,HostArchValues:()=>yF,HttpFlavorValues:()=>kk,MESSAGETYPEVALUES_RECEIVED:()=>pH,MESSAGETYPEVALUES_SENT:()=>fH,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>Hk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>Fk,MESSAGINGOPERATIONVALUES_PROCESS:()=>jk,MESSAGINGOPERATIONVALUES_RECEIVE:()=>qk,MessageTypeValues:()=>dH,MessagingDestinationKindValues:()=>Yk,MessagingOperationValues:()=>$k,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>Sk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>vk,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Ek,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Rk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>hk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Tk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>gk,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>dk,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>bk,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>mk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Ak,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Pk,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>yk,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Ok,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Mk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>Nk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Ck,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Lk,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Ik,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>xk,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>_k,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>lk,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>ck,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>fk,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>sk,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>uk,NETTRANSPORTVALUES_INPROC:()=>ok,NETTRANSPORTVALUES_IP:()=>tk,NETTRANSPORTVALUES_IP_TCP:()=>ZG,NETTRANSPORTVALUES_IP_UDP:()=>ek,NETTRANSPORTVALUES_OTHER:()=>ik,NETTRANSPORTVALUES_PIPE:()=>nk,NETTRANSPORTVALUES_UNIX:()=>rk,NetHostConnectionSubtypeValues:()=>wk,NetHostConnectionTypeValues:()=>pk,NetTransportValues:()=>ak,OSTYPEVALUES_AIX:()=>MF,OSTYPEVALUES_DARWIN:()=>gF,OSTYPEVALUES_DRAGONFLYBSD:()=>bF,OSTYPEVALUES_FREEBSD:()=>NF,OSTYPEVALUES_HPUX:()=>xF,OSTYPEVALUES_LINUX:()=>OF,OSTYPEVALUES_NETBSD:()=>RF,OSTYPEVALUES_OPENBSD:()=>PF,OSTYPEVALUES_SOLARIS:()=>LF,OSTYPEVALUES_WINDOWS:()=>AF,OSTYPEVALUES_Z_OS:()=>IF,OsTypeValues:()=>CF,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>nH,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>Zk,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>Wk,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>uH,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Jk,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>rH,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>aH,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>Xk,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Qk,RPCGRPCSTATUSCODEVALUES_OK:()=>Kk,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>oH,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>eH,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>tH,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>lH,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>sH,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>iH,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>zk,RpcGrpcStatusCodeValues:()=>cH,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>k2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Q2,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>V2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>C2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>X2,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>j2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>Y2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>Z2,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>H2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>w2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>G2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>q2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>B2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>U2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>D2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>J2,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>K2,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>W2,SEMATTRS_AWS_DYNAMODB_SELECT:()=>F2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>$2,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>I2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>z2,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>fV,SEMATTRS_CODE_FILEPATH:()=>_2,SEMATTRS_CODE_FUNCTION:()=>d2,SEMATTRS_CODE_LINENO:()=>S2,SEMATTRS_CODE_NAMESPACE:()=>E2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>AV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>PV,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>RV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>gV,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>mV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>yV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>NV,SEMATTRS_DB_CASSANDRA_TABLE:()=>OV,SEMATTRS_DB_CONNECTION_STRING:()=>dV,SEMATTRS_DB_HBASE_NAMESPACE:()=>bV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>_V,SEMATTRS_DB_MONGODB_COLLECTION:()=>MV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>vV,SEMATTRS_DB_NAME:()=>SV,SEMATTRS_DB_OPERATION:()=>TV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>xV,SEMATTRS_DB_SQL_TABLE:()=>LV,SEMATTRS_DB_STATEMENT:()=>hV,SEMATTRS_DB_SYSTEM:()=>pV,SEMATTRS_DB_USER:()=>EV,SEMATTRS_ENDUSER_ID:()=>u2,SEMATTRS_ENDUSER_ROLE:()=>l2,SEMATTRS_ENDUSER_SCOPE:()=>c2,SEMATTRS_EXCEPTION_ESCAPED:()=>UV,SEMATTRS_EXCEPTION_MESSAGE:()=>CV,SEMATTRS_EXCEPTION_STACKTRACE:()=>wV,SEMATTRS_EXCEPTION_TYPE:()=>IV,SEMATTRS_FAAS_COLDSTART:()=>qV,SEMATTRS_FAAS_CRON:()=>YV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>BV,SEMATTRS_FAAS_DOCUMENT_NAME:()=>HV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>GV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>kV,SEMATTRS_FAAS_EXECUTION:()=>VV,SEMATTRS_FAAS_INVOKED_NAME:()=>jV,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>$V,SEMATTRS_FAAS_INVOKED_REGION:()=>KV,SEMATTRS_FAAS_TIME:()=>FV,SEMATTRS_FAAS_TRIGGER:()=>DV,SEMATTRS_HTTP_CLIENT_IP:()=>L2,SEMATTRS_HTTP_FLAVOR:()=>O2,SEMATTRS_HTTP_HOST:()=>m2,SEMATTRS_HTTP_METHOD:()=>h2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>N2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>R2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>P2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>b2,SEMATTRS_HTTP_ROUTE:()=>M2,SEMATTRS_HTTP_SCHEME:()=>y2,SEMATTRS_HTTP_SERVER_NAME:()=>x2,SEMATTRS_HTTP_STATUS_CODE:()=>A2,SEMATTRS_HTTP_TARGET:()=>v2,SEMATTRS_HTTP_URL:()=>T2,SEMATTRS_HTTP_USER_AGENT:()=>g2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>xB,SEMATTRS_MESSAGE_ID:()=>bB,SEMATTRS_MESSAGE_TYPE:()=>PB,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>MB,SEMATTRS_MESSAGING_CONSUMER_ID:()=>pB,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>uB,SEMATTRS_MESSAGING_DESTINATION:()=>tB,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>rB,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>SB,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>_B,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>EB,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>hB,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>TB,SEMATTRS_MESSAGING_MESSAGE_ID:()=>sB,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>cB,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>lB,SEMATTRS_MESSAGING_OPERATION:()=>fB,SEMATTRS_MESSAGING_PROTOCOL:()=>oB,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>iB,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>dB,SEMATTRS_MESSAGING_SYSTEM:()=>eB,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>nB,SEMATTRS_MESSAGING_URL:()=>aB,SEMATTRS_NET_HOST_CARRIER_ICC:()=>a2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>o2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>i2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>n2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>r2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>t2,SEMATTRS_NET_HOST_IP:()=>QV,SEMATTRS_NET_HOST_NAME:()=>e2,SEMATTRS_NET_HOST_PORT:()=>ZV,SEMATTRS_NET_PEER_IP:()=>zV,SEMATTRS_NET_PEER_NAME:()=>JV,SEMATTRS_NET_PEER_PORT:()=>XV,SEMATTRS_NET_TRANSPORT:()=>WV,SEMATTRS_PEER_SERVICE:()=>s2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>AB,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>NB,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>RB,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>gB,SEMATTRS_RPC_JSONRPC_VERSION:()=>OB,SEMATTRS_RPC_METHOD:()=>yB,SEMATTRS_RPC_SERVICE:()=>mB,SEMATTRS_RPC_SYSTEM:()=>vB,SEMATTRS_THREAD_ID:()=>f2,SEMATTRS_THREAD_NAME:()=>p2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>mH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>vH,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>yH,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>AH,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>OH,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>gH,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>NH,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>PH,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>RH,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>xH,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>bH,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>_H,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>hH,SEMRESATTRS_CLOUD_PLATFORM:()=>TH,SEMRESATTRS_CLOUD_PROVIDER:()=>EH,SEMRESATTRS_CLOUD_REGION:()=>SH,SEMRESATTRS_CONTAINER_ID:()=>LH,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>CH,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>wH,SEMRESATTRS_CONTAINER_NAME:()=>MH,SEMRESATTRS_CONTAINER_RUNTIME:()=>IH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>UH,SEMRESATTRS_DEVICE_ID:()=>DH,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>VH,SEMRESATTRS_DEVICE_MODEL_NAME:()=>BH,SEMRESATTRS_FAAS_ID:()=>kH,SEMRESATTRS_FAAS_INSTANCE:()=>FH,SEMRESATTRS_FAAS_MAX_MEMORY:()=>YH,SEMRESATTRS_FAAS_NAME:()=>GH,SEMRESATTRS_FAAS_VERSION:()=>HH,SEMRESATTRS_HOST_ARCH:()=>KH,SEMRESATTRS_HOST_ID:()=>qH,SEMRESATTRS_HOST_IMAGE_ID:()=>zH,SEMRESATTRS_HOST_IMAGE_NAME:()=>WH,SEMRESATTRS_HOST_IMAGE_VERSION:()=>XH,SEMRESATTRS_HOST_NAME:()=>jH,SEMRESATTRS_HOST_TYPE:()=>$H,SEMRESATTRS_K8S_CLUSTER_NAME:()=>JH,SEMRESATTRS_K8S_CONTAINER_NAME:()=>n3,SEMRESATTRS_K8S_CRONJOB_NAME:()=>_3,SEMRESATTRS_K8S_CRONJOB_UID:()=>E3,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>f3,SEMRESATTRS_K8S_DAEMONSET_UID:()=>c3,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>s3,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>a3,SEMRESATTRS_K8S_JOB_NAME:()=>d3,SEMRESATTRS_K8S_JOB_UID:()=>p3,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>e3,SEMRESATTRS_K8S_NODE_NAME:()=>QH,SEMRESATTRS_K8S_NODE_UID:()=>ZH,SEMRESATTRS_K8S_POD_NAME:()=>r3,SEMRESATTRS_K8S_POD_UID:()=>t3,SEMRESATTRS_K8S_REPLICASET_NAME:()=>i3,SEMRESATTRS_K8S_REPLICASET_UID:()=>o3,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>l3,SEMRESATTRS_K8S_STATEFULSET_UID:()=>u3,SEMRESATTRS_OS_DESCRIPTION:()=>h3,SEMRESATTRS_OS_NAME:()=>T3,SEMRESATTRS_OS_TYPE:()=>S3,SEMRESATTRS_OS_VERSION:()=>v3,SEMRESATTRS_PROCESS_COMMAND:()=>O3,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>N3,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>g3,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>y3,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>A3,SEMRESATTRS_PROCESS_OWNER:()=>R3,SEMRESATTRS_PROCESS_PID:()=>m3,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>x3,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>P3,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>b3,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>I3,SEMRESATTRS_SERVICE_NAME:()=>M3,SEMRESATTRS_SERVICE_NAMESPACE:()=>L3,SEMRESATTRS_SERVICE_VERSION:()=>C3,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>V3,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>U3,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>w3,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>D3,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>k3,SEMRESATTRS_WEBENGINE_NAME:()=>B3,SEMRESATTRS_WEBENGINE_VERSION:()=>G3,SemanticAttributes:()=>LB,SemanticResourceAttributes:()=>H3,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>wF,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>UF,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>DF,TELEMETRYSDKLANGUAGEVALUES_GO:()=>VF,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>BF,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>GF,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>kF,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>HF,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>FF,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>YF,TelemetrySdkLanguageValues:()=>qF});var Eo=m(()=>{"use strict";_y();HO()});var YO=h((FO,zi)=>{"use strict";(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},i=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",o="(?:[0-9a-f]+::?)+",r={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${e}\\.${e}\\.${e}\\.${e}(${s})?$`,"i")};function u(f,S){if(f.indexOf("::")!==f.lastIndexOf("::"))return null;let v=0,T=-1,A=(f.match(r.zoneIndex)||[])[0],O,N;for(A&&(A=A.substring(1),f=f.replace(/%.+$/,""));(T=f.indexOf(":",T+1))>=0;)v++;if(f.substr(0,2)==="::"&&v--,f.substr(-2,2)==="::"&&v--,v>S)return null;for(N=S-v,O=":";N--;)O+="0:";return f=f.replace("::",O),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),S=function(){let D=f.split(":"),G=[];for(let F=0;F<D.length;F++)G.push(parseInt(D[F],16));return G}(),{parts:S,zoneId:A}}function l(f,S,v,T){if(f.length!==S.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A=0,O;for(;T>0;){if(O=v-T,O<0&&(O=0),f[A]>>O!==S[A]>>O)return!1;T-=v,A+=1}return!0}function c(f){if(a.test(f))return parseInt(f,16);if(f[0]==="0"&&!isNaN(parseInt(f[1],10))){if(i.test(f))return parseInt(f,8);throw new Error(`ipaddr: cannot parse ${f} as octal`)}return parseInt(f,10)}function p(f,S){for(;f.length<S;)f=`0${f}`;return f}let _={};_.IPv4=function(){function f(S){if(S.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let v,T;for(v=0;v<S.length;v++)if(T=S[v],!(0<=T&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=S}return f.prototype.SpecialRanges={unspecified:[[new f([0,0,0,0]),8]],broadcast:[[new f([255,255,255,255]),32]],multicast:[[new f([224,0,0,0]),4]],linkLocal:[[new f([169,254,0,0]),16]],loopback:[[new f([127,0,0,0]),8]],carrierGradeNat:[[new f([100,64,0,0]),10]],private:[[new f([10,0,0,0]),8],[new f([172,16,0,0]),12],[new f([192,168,0,0]),16]],reserved:[[new f([192,0,0,0]),24],[new f([192,0,2,0]),24],[new f([192,88,99,0]),24],[new f([198,18,0,0]),15],[new f([198,51,100,0]),24],[new f([203,0,113,0]),24],[new f([240,0,0,0]),4]],as112:[[new f([192,175,48,0]),24],[new f([192,31,196,0]),24]],amt:[[new f([192,52,193,0]),24]]},f.prototype.kind=function(){return"ipv4"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,S.octets,8,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},A,O,N;for(A=3;A>=0;A-=1)if(O=this.octets[A],O in T){if(N=T[O],v&&N!==0)return null;N!==8&&(v=!0),S+=N}else return null;return 32-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){return this.octets.slice(0)},f.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},f.prototype.toNormalizedString=function(){return this.toString()},f.prototype.toString=function(){return this.octets.join(".")},f}(),_.IPv4.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<4;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.isIPv4=function(f){return this.parser(f)!==null},_.IPv4.isValid=function(f){try{return new this(this.parser(f)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(f){try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(f){return!!(_.IPv4.isValid(f)&&f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<4;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.parse=function(f){let S=this.parser(f);if(S===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(S)},_.IPv4.parseCIDR=function(f){let S;if(S=f.match(/^(.+)\/(\d+)$/)){let v=parseInt(S[2]);if(v>=0&&v<=32){let T=[this.parse(S[1]),v];return Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(f){let S,v,T;if(S=f.match(n.fourOctet))return function(){let A=S.slice(1,6),O=[];for(let N=0;N<A.length;N++)v=A[N],O.push(c(v));return O}();if(S=f.match(n.longValue)){if(T=c(S[1]),T>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return function(){let A=[],O;for(O=0;O<=24;O+=8)A.push(T>>O&255);return A}().reverse()}else return(S=f.match(n.twoOctet))?function(){let A=S.slice(1,4),O=[];if(T=c(A[1]),T>16777215||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(T>>16&255),O.push(T>>8&255),O.push(T&255),O}():(S=f.match(n.threeOctet))?function(){let A=S.slice(1,5),O=[];if(T=c(A[2]),T>65535||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(c(A[1])),O.push(T>>8&255),O.push(T&255),O}():null},_.IPv4.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");let S=[0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<4&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.IPv6=function(){function f(S,v){let T,A;if(S.length===16)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(S[T]<<8|S[T+1]);else if(S.length===8)this.parts=S;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=0;T<this.parts.length;T++)if(A=this.parts[T],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");v&&(this.zoneId=v)}return f.prototype.SpecialRanges={unspecified:[new f([0,0,0,0,0,0,0,0]),128],linkLocal:[new f([65152,0,0,0,0,0,0,0]),10],multicast:[new f([65280,0,0,0,0,0,0,0]),8],loopback:[new f([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new f([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new f([0,0,0,0,0,65535,0,0]),96],discard:[new f([256,0,0,0,0,0,0,0]),64],rfc6145:[new f([0,0,0,0,65535,0,0,0]),96],rfc6052:[new f([100,65435,0,0,0,0,0,0]),96],"6to4":[new f([8194,0,0,0,0,0,0,0]),16],teredo:[new f([8193,0,0,0,0,0,0,0]),32],benchmarking:[new f([8193,2,0,0,0,0,0,0]),48],amt:[new f([8193,3,0,0,0,0,0,0]),32],as112v6:[[new f([8193,4,274,0,0,0,0,0]),48],[new f([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new f([8193,16,0,0,0,0,0,0]),28],orchid2:[new f([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new f([8193,48,0,0,0,0,0,0]),28],reserved:[[new f([8193,0,0,0,0,0,0,0]),23],[new f([8193,3512,0,0,0,0,0,0]),32]]},f.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},f.prototype.kind=function(){return"ipv6"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,S.parts,16,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},A,O;for(let N=7;N>=0;N-=1)if(A=this.parts[N],A in T){if(O=T[A],v&&O!==0)return null;O!==16&&(v=!0),S+=O}else return null;return 128-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){let S,v=[],T=this.parts;for(let A=0;A<T.length;A++)S=T[A],v.push(S>>8),v.push(S&255);return v},f.prototype.toFixedLengthString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(p(this.parts[A].toString(16),4));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let S=this.parts.slice(-2),v=S[0],T=S[1];return new _.IPv4([v>>8,v&255,T>>8,T&255])},f.prototype.toNormalizedString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(this.parts[A].toString(16));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toRFC5952String=function(){let S=/((^|:)(0(:|$)){2,})/g,v=this.toNormalizedString(),T=0,A=-1,O;for(;O=S.exec(v);)O[0].length>A&&(T=O.index,A=O[0].length);return A<0?v:`${v.substring(0,T)}::${v.substring(T+A)}`},f.prototype.toString=function(){return this.toRFC5952String()},f}(),_.IPv6.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<16;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},_.IPv6.isIPv6=function(f){return this.parser(f)!==null},_.IPv6.isValid=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{let S=this.parser(f);return new this(S.parts,S.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<16;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch(N){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${N})`)}},_.IPv6.parse=function(f){let S=this.parser(f);if(S.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(S.parts,S.zoneId)},_.IPv6.parseCIDR=function(f){let S,v,T;if((v=f.match(/^(.+)\/(\d+)$/))&&(S=parseInt(v[2]),S>=0&&S<=128))return T=[this.parse(v[1]),S],Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(f){let S,v,T,A,O,N;if(T=f.match(r.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(r.native.test(f))return u(f,8);if((T=f.match(r.transitional))&&(N=T[6]||"",S=T[1],T[1].endsWith("::")||(S=S.slice(0,-1)),S=u(S+N,6),S.parts)){for(O=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],v=0;v<O.length;v++)if(A=O[v],!(0<=A&&A<=255))return null;return S.parts.push(O[0]<<8|O[1]),S.parts.push(O[2]<<8|O[3]),{parts:S.parts,zoneId:S.zoneId}}return null},_.IPv6.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>128)throw new Error("ipaddr: invalid IPv6 prefix length");let S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<16&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.fromByteArray=function(f){let S=f.length;if(S===4)return new _.IPv4(f);if(S===16)return new _.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(f){return _.IPv6.isValid(f)||_.IPv4.isValid(f)},_.isValidCIDR=function(f){return _.IPv6.isValidCIDR(f)||_.IPv4.isValidCIDR(f)},_.parse=function(f){if(_.IPv6.isValid(f))return _.IPv6.parse(f);if(_.IPv4.isValid(f))return _.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(f){try{return _.IPv6.parseCIDR(f)}catch{try{return _.IPv4.parseCIDR(f)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(f){let S=this.parse(f);return S.kind()==="ipv6"&&S.isIPv4MappedAddress()?S.toIPv4Address():S},_.subnetMatch=function(f,S,v){let T,A,O,N;v==null&&(v="unicast");for(A in S)if(Object.prototype.hasOwnProperty.call(S,A)){for(O=S[A],O[0]&&!(O[0]instanceof Array)&&(O=[O]),T=0;T<O.length;T++)if(N=O[T],f.kind()===N[0].kind()&&f.match.apply(f,N))return A}return v},typeof zi<"u"&&zi.exports?zi.exports=_:t.ipaddr=_})(FO)});var rc=h(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getPeerAttributes=jt.getStatusAttributes=jt.getMethodAttributes=void 0;var St=(Eo(),Y(po)),jF=YO(),$F=Ml();function KF(t){let[,e,n]=t.split("/");return{[St.SEMATTRS_RPC_SYSTEM]:"grpc",[St.SEMATTRS_RPC_SERVICE]:e,[St.SEMATTRS_RPC_METHOD]:n}}jt.getMethodAttributes=KF;function WF(t){return{[St.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":$F.Status[t]}}jt.getStatusAttributes=WF;function zF(t){let e=t.lastIndexOf(":");if(e===-1)return{[St.SEMATTRS_NET_PEER_NAME]:t};let n=t.slice(0,e),i=+t.slice(e+1);return Number.isNaN(i)?{[St.SEMATTRS_NET_PEER_NAME]:t}:jF.isValid(n)?{[St.SEMATTRS_NET_PEER_IP]:n,[St.SEMATTRS_NET_PEER_PORT]:i}:{[St.SEMATTRS_NET_PEER_NAME]:n,[St.SEMATTRS_NET_PEER_PORT]:i}}jt.getPeerAttributes=zF});var nc=h(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.metadataGetter=en.metadataSetter=void 0;en.metadataSetter={set(t,e,n){t.set(e,n)}};en.metadataGetter={get:(t,e)=>t.get(e),keys:t=>Array.from(t,([e])=>e)}});var qO=h(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.VERSION=void 0;Xi.VERSION="0.1.15"});var oc=h($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.emitSpanEvents=$t.getSpanName=$t.tracer=void 0;var XF=(x(),Y(Pe)),jO=(Eo(),Y(po)),JF=qO();$t.tracer=XF.trace.getTracer("nice-grpc-opentelemetry",JF.VERSION);function QF(t){return t.slice(1)}$t.getSpanName=QF;async function*ZF(t,e,n){let i=1;for await(let a of t)e.addEvent("message",{[jO.SEMATTRS_MESSAGE_TYPE]:n,[jO.SEMATTRS_MESSAGE_ID]:i++}),yield a}$t.emitSpanEvents=ZF});var ac=h(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.bindAsyncGenerator=void 0;var ic=(x(),Y(Pe));function $O(t,e){return{next:ic.context.bind(t,e.next.bind(e)),return:ic.context.bind(t,e.return.bind(e)),throw:ic.context.bind(t,e.throw.bind(e)),[Symbol.asyncIterator](){return $O(t,e[Symbol.asyncIterator]())}}}Ji.bindAsyncGenerator=$O});var WO=h(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.openTelemetryServerMiddleware=void 0;var _o=(x(),Y(Pe)),KO=(Eo(),Y(po)),eY=(dE(),Y(pE)),tn=Ml(),sc=rc(),tY=nc(),Qi=oc(),rY=ac();function nY(){return(t,e)=>Qi.tracer.startActiveSpan((0,Qi.getSpanName)(t.method.path),{kind:_o.SpanKind.SERVER},_o.propagation.extract(_o.ROOT_CONTEXT,e.metadata,tY.metadataGetter),n=>(0,rY.bindAsyncGenerator)(_o.context.active(),oY(n,t,e)))}Zi.openTelemetryServerMiddleware=nY;async function*oY(t,e,n){let i={...(0,sc.getMethodAttributes)(e.method.path),...(0,sc.getPeerAttributes)(n.peer)};t.setAttributes(i);let a=tn.Status.OK,s;try{let o;if(e.requestStream?o=(0,Qi.emitSpanEvents)(e.request,t,KO.MESSAGETYPEVALUES_RECEIVED):o=e.request,e.responseStream){yield*(0,Qi.emitSpanEvents)(e.next(o,n),t,KO.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(o,n)}catch(o){throw o instanceof tn.ServerError?(a=o.code,s=o.details):(0,eY.isAbortError)(o)?(a=tn.Status.CANCELLED,s="The operation was cancelled"):(a=tn.Status.UNKNOWN,s="Unknown server error occurred",t.recordException(o)),o}finally{let o=(0,sc.getStatusAttributes)(a);t.setAttributes(o),a!==tn.Status.OK&&t.setStatus({code:_o.SpanStatusCode.ERROR,message:`${tn.Status[a]}: ${s}`}),t.end()}}});var JO=h(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.openTelemetryClientMiddleware=void 0;var So=(x(),Y(Pe)),zO=(Eo(),Y(po)),iY=(dE(),Y(pE)),Kt=Ml(),XO=rc(),aY=nc(),ea=oc(),sY=ac();function uY(){return(t,e)=>ea.tracer.startActiveSpan((0,ea.getSpanName)(t.method.path),{kind:So.SpanKind.CLIENT},n=>{let i=(0,Kt.Metadata)(e.metadata);return So.propagation.inject(So.context.active(),i,aY.metadataSetter),(0,sY.bindAsyncGenerator)(So.context.active(),lY(n,t,{...e,metadata:i}))})}ta.openTelemetryClientMiddleware=uY;async function*lY(t,e,n){let i=(0,XO.getMethodAttributes)(e.method.path);t.setAttributes(i);let a=!1,s=Kt.Status.OK,o;try{let r;if(e.requestStream?r=(0,ea.emitSpanEvents)(e.request,t,zO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,ea.emitSpanEvents)(e.next(r,n),t,zO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let u=yield*e.next(r,n);return a=!0,u}}catch(r){throw a=!0,r instanceof Kt.ClientError?(s=r.code,o=r.details):(0,iY.isAbortError)(r)?(s=Kt.Status.CANCELLED,o="The operation was cancelled"):(s=Kt.Status.UNKNOWN,o="Unknown server error occurred",t.recordException(r)),r}finally{a||(s=Kt.Status.CANCELLED,o="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,XO.getStatusAttributes)(s);t.setAttributes(r),s!==Kt.Status.OK&&t.setStatus({code:So.SpanStatusCode.ERROR,message:`${Kt.Status[s]}: ${o}`}),t.end()}}});var QO=h(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.openTelemetryClientMiddleware=rn.openTelemetryServerMiddleware=void 0;var cY=WO();Object.defineProperty(rn,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return cY.openTelemetryServerMiddleware}});var fY=JO();Object.defineProperty(rn,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return fY.openTelemetryClientMiddleware}})});var qe=h((wZ,rg)=>{"use strict";var cc=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
8
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:i,destStat:a}=io.checkPathsSync(t,e,"copy",n);if(io.checkParentPathsSync(t,i,e,"copy"),n.filter&&!n.filter(t,e))return;let u=oo.dirname(e);return Ce.existsSync(u)||AU(u),KE(a,t,e,n)}function KE(t,e,n,i){let u=(i.dereference?Ce.statSync:Ce.lstatSync)(e);if(u.isDirectory())return LU(u,t,e,n,i);if(u.isFile()||u.isCharacterDevice()||u.isBlockDevice())return NU(u,t,e,n,i);if(u.isSymbolicLink())return wU(t,e,n,i);throw u.isSocket()?new Error(`Cannot copy a socket file: ${e}`):u.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function NU(t,e,n,i,a){return e?RU(t,n,i,a):WE(t,n,i,a)}function RU(t,e,n,i){if(i.overwrite)return Ce.unlinkSync(n),WE(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}function WE(t,e,n,i){return Ce.copyFileSync(e,n),i.preserveTimestamps&&PU(t.mode,e,n),Kl(n,t.mode)}function PU(t,e,n){return bU(t)&&xU(n,t),MU(e,n)}function bU(t){return(t&128)===0}function xU(t,e){return Kl(t,e|128)}function Kl(t,e){return Ce.chmodSync(t,e)}function MU(t,e){let n=Ce.statSync(t);return OU(e,n.atime,n.mtime)}function LU(t,e,n,i,a){return e?zE(n,i,a):IU(t.mode,n,i,a)}function IU(t,e,n,i){return Ce.mkdirSync(n),zE(e,n,i),Kl(n,t)}function zE(t,e,n){Ce.readdirSync(t).forEach(i=>CU(i,t,e,n))}function CU(t,e,n,i){let a=oo.join(e,t),u=oo.join(n,t);if(i.filter&&!i.filter(a,u))return;let{destStat:o}=io.checkPathsSync(a,u,"copy",i);return KE(o,a,u,i)}function wU(t,e,n,i){let a=Ce.readlinkSync(e);if(i.dereference&&(a=oo.resolve(process.cwd(),a)),t){let u;try{u=Ce.readlinkSync(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return Ce.symlinkSync(a,n);throw o}if(i.dereference&&(u=oo.resolve(process.cwd(),u)),io.isSrcSubdir(a,u))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${u}'.`);if(io.isSrcSubdir(u,a))throw new Error(`Cannot overwrite '${u}' with '${a}'.`);return DU(a,n)}else return Ce.symlinkSync(a,n)}function DU(t,e){return Ce.unlinkSync(e),Ce.symlinkSync(t,e)}XE.exports=gU});var Gi=h((fQ,QE)=>{"use strict";var UU=Ee().fromPromise;QE.exports={copy:UU($E()),copySync:JE()}});var ao=h((pQ,e_)=>{"use strict";var ZE=zr(),VU=Ee().fromCallback;function BU(t,e){ZE.rm(t,{recursive:!0,force:!0},e)}function GU(t){ZE.rmSync(t,{recursive:!0,force:!0})}e_.exports={remove:VU(BU),removeSync:GU}});var s_=h((dQ,u_)=>{"use strict";var kU=Ee().fromPromise,n_=Ie(),o_=L("path"),i_=ut(),a_=ao(),t_=kU(async function(e){let n;try{n=await n_.readdir(e)}catch{return i_.mkdirs(e)}return Promise.all(n.map(i=>a_.remove(o_.join(e,i))))});function r_(t){let e;try{e=n_.readdirSync(t)}catch{return i_.mkdirsSync(t)}e.forEach(n=>{n=o_.join(t,n),a_.removeSync(n)})}u_.exports={emptyDirSync:r_,emptydirSync:r_,emptyDir:t_,emptydir:t_}});var p_=h((EQ,f_)=>{"use strict";var HU=Ee().fromPromise,l_=L("path"),Mt=Ie(),c_=ut();async function FU(t){let e;try{e=await Mt.stat(t)}catch{}if(e&&e.isFile())return;let n=l_.dirname(t),i=null;try{i=await Mt.stat(n)}catch(a){if(a.code==="ENOENT"){await c_.mkdirs(n),await Mt.writeFile(t,"");return}else throw a}i.isDirectory()?await Mt.writeFile(t,""):await Mt.readdir(n)}function YU(t){let e;try{e=Mt.statSync(t)}catch{}if(e&&e.isFile())return;let n=l_.dirname(t);try{Mt.statSync(n).isDirectory()||Mt.readdirSync(n)}catch(i){if(i&&i.code==="ENOENT")c_.mkdirsSync(n);else throw i}Mt.writeFileSync(t,"")}f_.exports={createFile:HU(FU),createFileSync:YU}});var h_=h((_Q,S_)=>{"use strict";var qU=Ee().fromPromise,d_=L("path"),Ft=Ie(),E_=ut(),{pathExists:jU}=Ht(),{areIdentical:__}=Tr();async function $U(t,e){let n;try{n=await Ft.lstat(e)}catch{}let i;try{i=await Ft.lstat(t)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}if(n&&__(i,n))return;let a=d_.dirname(e);await jU(a)||await E_.mkdirs(a),await Ft.link(t,e)}function KU(t,e){let n;try{n=Ft.lstatSync(e)}catch{}try{let u=Ft.lstatSync(t);if(n&&__(u,n))return}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let i=d_.dirname(e);return Ft.existsSync(i)||E_.mkdirsSync(i),Ft.linkSync(t,e)}S_.exports={createLink:qU($U),createLinkSync:KU}});var v_=h((SQ,T_)=>{"use strict";var Yt=L("path"),uo=Ie(),{pathExists:WU}=Ht(),zU=Ee().fromPromise;async function XU(t,e){if(Yt.isAbsolute(t)){try{await uo.lstat(t)}catch(u){throw u.message=u.message.replace("lstat","ensureSymlink"),u}return{toCwd:t,toDst:t}}let n=Yt.dirname(e),i=Yt.join(n,t);if(await WU(i))return{toCwd:i,toDst:t};try{await uo.lstat(t)}catch(u){throw u.message=u.message.replace("lstat","ensureSymlink"),u}return{toCwd:t,toDst:Yt.relative(n,t)}}function JU(t,e){if(Yt.isAbsolute(t)){if(!uo.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}let n=Yt.dirname(e),i=Yt.join(n,t);if(uo.existsSync(i))return{toCwd:i,toDst:t};if(!uo.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:Yt.relative(n,t)}}T_.exports={symlinkPaths:zU(XU),symlinkPathsSync:JU}});var A_=h((hQ,y_)=>{"use strict";var m_=Ie(),QU=Ee().fromPromise;async function ZU(t,e){if(e)return e;let n;try{n=await m_.lstat(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}function e1(t,e){if(e)return e;let n;try{n=m_.lstatSync(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}y_.exports={symlinkType:QU(ZU),symlinkTypeSync:e1}});var R_=h((TQ,N_)=>{"use strict";var t1=Ee().fromPromise,O_=L("path"),ht=Ie(),{mkdirs:r1,mkdirsSync:n1}=ut(),{symlinkPaths:o1,symlinkPathsSync:i1}=v_(),{symlinkType:a1,symlinkTypeSync:u1}=A_(),{pathExists:s1}=Ht(),{areIdentical:g_}=Tr();async function l1(t,e,n){let i;try{i=await ht.lstat(e)}catch{}if(i&&i.isSymbolicLink()){let[r,s]=await Promise.all([ht.stat(t),ht.stat(e)]);if(g_(r,s))return}let a=await o1(t,e);t=a.toDst;let u=await a1(a.toCwd,n),o=O_.dirname(e);return await s1(o)||await r1(o),ht.symlink(t,e,u)}function c1(t,e,n){let i;try{i=ht.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let r=ht.statSync(t),s=ht.statSync(e);if(g_(r,s))return}let a=i1(t,e);t=a.toDst,n=u1(a.toCwd,n);let u=O_.dirname(e);return ht.existsSync(u)||n1(u),ht.symlinkSync(t,e,n)}N_.exports={createSymlink:t1(l1),createSymlinkSync:c1}});var w_=h((vQ,C_)=>{"use strict";var{createFile:P_,createFileSync:b_}=p_(),{createLink:x_,createLinkSync:M_}=h_(),{createSymlink:L_,createSymlinkSync:I_}=R_();C_.exports={createFile:P_,createFileSync:b_,ensureFile:P_,ensureFileSync:b_,createLink:x_,createLinkSync:M_,ensureLink:x_,ensureLinkSync:M_,createSymlink:L_,createSymlinkSync:I_,ensureSymlink:L_,ensureSymlinkSync:I_}});var ki=h((mQ,D_)=>{"use strict";function f1(t,{EOL:e=`
|
9
|
+
`,finalEOL:n=!0,replacer:i=null,spaces:a}={}){let u=n?e:"";return JSON.stringify(t,i,a).replace(/\n/g,e)+u}function p1(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}D_.exports={stringify:f1,stripBom:p1}});var G_=h((yQ,B_)=>{"use strict";var Qr;try{Qr=zr()}catch{Qr=L("fs")}var Hi=Ee(),{stringify:U_,stripBom:V_}=ki();async function d1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Qr,i="throws"in e?e.throws:!0,a=await Hi.fromCallback(n.readFile)(t,e);a=V_(a);let u;try{u=JSON.parse(a,e?e.reviver:null)}catch(o){if(i)throw o.message=`${t}: ${o.message}`,o;return null}return u}var E1=Hi.fromPromise(d1);function _1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Qr,i="throws"in e?e.throws:!0;try{let a=n.readFileSync(t,e);return a=V_(a),JSON.parse(a,e.reviver)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}}async function S1(t,e,n={}){let i=n.fs||Qr,a=U_(e,n);await Hi.fromCallback(i.writeFile)(t,a,n)}var h1=Hi.fromPromise(S1);function T1(t,e,n={}){let i=n.fs||Qr,a=U_(e,n);return i.writeFileSync(t,a,n)}var v1={readFile:E1,readFileSync:_1,writeFile:h1,writeFileSync:T1};B_.exports=v1});var H_=h((AQ,k_)=>{"use strict";var Fi=G_();k_.exports={readJson:Fi.readFile,readJsonSync:Fi.readFileSync,writeJson:Fi.writeFile,writeJsonSync:Fi.writeFileSync}});var Yi=h((OQ,q_)=>{"use strict";var m1=Ee().fromPromise,Wl=Ie(),F_=L("path"),Y_=ut(),y1=Ht().pathExists;async function A1(t,e,n="utf-8"){let i=F_.dirname(t);return await y1(i)||await Y_.mkdirs(i),Wl.writeFile(t,e,n)}function O1(t,...e){let n=F_.dirname(t);Wl.existsSync(n)||Y_.mkdirsSync(n),Wl.writeFileSync(t,...e)}q_.exports={outputFile:m1(A1),outputFileSync:O1}});var $_=h((gQ,j_)=>{"use strict";var{stringify:g1}=ki(),{outputFile:N1}=Yi();async function R1(t,e,n={}){let i=g1(e,n);await N1(t,i,n)}j_.exports=R1});var W_=h((NQ,K_)=>{"use strict";var{stringify:P1}=ki(),{outputFileSync:b1}=Yi();function x1(t,e,n){let i=P1(e,n);b1(t,i,n)}K_.exports=x1});var X_=h((RQ,z_)=>{"use strict";var M1=Ee().fromPromise,we=H_();we.outputJson=M1($_());we.outputJsonSync=W_();we.outputJSON=we.outputJson;we.outputJSONSync=we.outputJsonSync;we.writeJSON=we.writeJson;we.writeJSONSync=we.writeJsonSync;we.readJSON=we.readJson;we.readJSONSync=we.readJsonSync;z_.exports=we});var tS=h((PQ,eS)=>{"use strict";var L1=Ie(),J_=L("path"),{copy:I1}=Gi(),{remove:Z_}=ao(),{mkdirp:C1}=ut(),{pathExists:w1}=Ht(),Q_=Tr();async function D1(t,e,n={}){let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:u=!1}=await Q_.checkPaths(t,e,"move",n);await Q_.checkParentPaths(t,a,e,"move");let o=J_.dirname(e);return J_.parse(o).root!==o&&await C1(o),U1(t,e,i,u)}async function U1(t,e,n,i){if(!i){if(n)await Z_(e);else if(await w1(e))throw new Error("dest already exists.")}try{await L1.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await V1(t,e,n)}}async function V1(t,e,n){return await I1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),Z_(t)}eS.exports=D1});var aS=h((bQ,iS)=>{"use strict";var nS=zr(),Xl=L("path"),B1=Gi().copySync,oS=ao().removeSync,G1=ut().mkdirpSync,rS=Tr();function k1(t,e,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:u=!1}=rS.checkPathsSync(t,e,"move",n);return rS.checkParentPathsSync(t,a,e,"move"),H1(e)||G1(Xl.dirname(e)),F1(t,e,i,u)}function H1(t){let e=Xl.dirname(t);return Xl.parse(e).root===e}function F1(t,e,n,i){if(i)return zl(t,e,n);if(n)return oS(e),zl(t,e,n);if(nS.existsSync(e))throw new Error("dest already exists.");return zl(t,e,n)}function zl(t,e,n){try{nS.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return Y1(t,e,n)}}function Y1(t,e,n){return B1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),oS(t)}iS.exports=k1});var sS=h((xQ,uS)=>{"use strict";var q1=Ee().fromPromise;uS.exports={move:q1(tS()),moveSync:aS()}});var Jl=h((MQ,lS)=>{"use strict";lS.exports={...Ie(),...Gi(),...s_(),...w_(),...X_(),...ut(),...sS(),...Yi(),...Ht(),...ao()}});function fe(t){for(var e={},n=t.length,i=0;i<n;i++){var a=t[i];a&&(e[String(a).toUpperCase().replace(/[-.]/g,"_")]=a)}return e}var ac=m(()=>{"use strict"});var mS,yS,AS,OS,gS,NS,RS,PS,bS,xS,MS,LS,IS,CS,wS,DS,US,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,uh,sh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,xh,Mh,Lh,Ih,Ch,wh,Dh,Uh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,uT,sT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,xT,MT,LT,IT,CT,wT,DT,UT,VT,BT,GT,pV,dV,EV,_V,SV,hV,TV,vV,mV,yV,AV,OV,gV,NV,RV,PV,bV,xV,MV,LV,IV,CV,wV,DV,UV,VV,BV,GV,kV,HV,FV,YV,qV,jV,$V,KV,WV,zV,XV,JV,QV,ZV,e2,t2,r2,n2,o2,i2,a2,u2,s2,l2,c2,f2,p2,d2,E2,_2,S2,h2,T2,v2,m2,y2,A2,O2,g2,N2,R2,P2,b2,x2,M2,L2,I2,C2,w2,D2,U2,V2,B2,G2,k2,H2,F2,Y2,q2,j2,$2,K2,W2,z2,X2,J2,Q2,Z2,eB,tB,rB,nB,oB,iB,aB,uB,sB,lB,cB,fB,pB,dB,EB,_B,SB,hB,TB,vB,mB,yB,AB,OB,gB,NB,RB,PB,bB,xB,MB,LB,IB,kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,uv,sv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv,bv,xv,Mv,Lv,Iv,CB,wB,DB,UB,VB,BB,GB,kB,HB,FB,YB,qB,jB,$B,KB,WB,zB,XB,JB,QB,ZB,eG,tG,rG,nG,oG,iG,aG,uG,sG,lG,cG,fG,pG,dG,EG,_G,SG,hG,TG,vG,mG,yG,AG,OG,gG,NG,RG,Cv,wv,Dv,Uv,Vv,Bv,Gv,kv,Hv,Fv,Yv,PG,bG,xG,MG,LG,IG,CG,wG,DG,UG,VG,BG,qv,jv,$v,Kv,Wv,GG,kG,HG,FG,YG,qG,zv,Xv,Jv,jG,$G,KG,WG,Qv,Zv,em,tm,zG,XG,JG,QG,ZG,rm,nm,om,im,am,um,sm,ek,tk,rk,nk,ok,ik,ak,uk,lm,cm,fm,pm,dm,sk,lk,ck,fk,pk,dk,Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm,Ek,_k,Sk,hk,Tk,vk,mk,yk,Ak,Ok,gk,Nk,Rk,Pk,bk,xk,Mk,Lk,Ik,Ck,wk,Dk,Dm,Um,Vm,Bm,Gm,Uk,Vk,Bk,Gk,kk,Hk,km,Hm,Fk,Yk,qk,Fm,Ym,jk,$k,Kk,qm,jm,$m,Km,Wm,zm,Xm,Jm,Qm,Zm,ey,ty,ry,ny,oy,iy,ay,Wk,zk,Xk,Jk,Qk,Zk,eH,tH,rH,nH,oH,iH,aH,uH,sH,lH,cH,fH,uy,sy,pH,dH,EH,ly=m(()=>{"use strict";ac();mS="aws.lambda.invoked_arn",yS="db.system",AS="db.connection_string",OS="db.user",gS="db.jdbc.driver_classname",NS="db.name",RS="db.statement",PS="db.operation",bS="db.mssql.instance_name",xS="db.cassandra.keyspace",MS="db.cassandra.page_size",LS="db.cassandra.consistency_level",IS="db.cassandra.table",CS="db.cassandra.idempotence",wS="db.cassandra.speculative_execution_count",DS="db.cassandra.coordinator.id",US="db.cassandra.coordinator.dc",VS="db.hbase.namespace",BS="db.redis.database_index",GS="db.mongodb.collection",kS="db.sql.table",HS="exception.type",FS="exception.message",YS="exception.stacktrace",qS="exception.escaped",jS="faas.trigger",$S="faas.execution",KS="faas.document.collection",WS="faas.document.operation",zS="faas.document.time",XS="faas.document.name",JS="faas.time",QS="faas.cron",ZS="faas.coldstart",eh="faas.invoked_name",th="faas.invoked_provider",rh="faas.invoked_region",nh="net.transport",oh="net.peer.ip",ih="net.peer.port",ah="net.peer.name",uh="net.host.ip",sh="net.host.port",lh="net.host.name",ch="net.host.connection.type",fh="net.host.connection.subtype",ph="net.host.carrier.name",dh="net.host.carrier.mcc",Eh="net.host.carrier.mnc",_h="net.host.carrier.icc",Sh="peer.service",hh="enduser.id",Th="enduser.role",vh="enduser.scope",mh="thread.id",yh="thread.name",Ah="code.function",Oh="code.namespace",gh="code.filepath",Nh="code.lineno",Rh="http.method",Ph="http.url",bh="http.target",xh="http.host",Mh="http.scheme",Lh="http.status_code",Ih="http.flavor",Ch="http.user_agent",wh="http.request_content_length",Dh="http.request_content_length_uncompressed",Uh="http.response_content_length",Vh="http.response_content_length_uncompressed",Bh="http.server_name",Gh="http.route",kh="http.client_ip",Hh="aws.dynamodb.table_names",Fh="aws.dynamodb.consumed_capacity",Yh="aws.dynamodb.item_collection_metrics",qh="aws.dynamodb.provisioned_read_capacity",jh="aws.dynamodb.provisioned_write_capacity",$h="aws.dynamodb.consistent_read",Kh="aws.dynamodb.projection",Wh="aws.dynamodb.limit",zh="aws.dynamodb.attributes_to_get",Xh="aws.dynamodb.index_name",Jh="aws.dynamodb.select",Qh="aws.dynamodb.global_secondary_indexes",Zh="aws.dynamodb.local_secondary_indexes",eT="aws.dynamodb.exclusive_start_table",tT="aws.dynamodb.table_count",rT="aws.dynamodb.scan_forward",nT="aws.dynamodb.segment",oT="aws.dynamodb.total_segments",iT="aws.dynamodb.count",aT="aws.dynamodb.scanned_count",uT="aws.dynamodb.attribute_definitions",sT="aws.dynamodb.global_secondary_index_updates",lT="messaging.system",cT="messaging.destination",fT="messaging.destination_kind",pT="messaging.temp_destination",dT="messaging.protocol",ET="messaging.protocol_version",_T="messaging.url",ST="messaging.message_id",hT="messaging.conversation_id",TT="messaging.message_payload_size_bytes",vT="messaging.message_payload_compressed_size_bytes",mT="messaging.operation",yT="messaging.consumer_id",AT="messaging.rabbitmq.routing_key",OT="messaging.kafka.message_key",gT="messaging.kafka.consumer_group",NT="messaging.kafka.client_id",RT="messaging.kafka.partition",PT="messaging.kafka.tombstone",bT="rpc.system",xT="rpc.service",MT="rpc.method",LT="rpc.grpc.status_code",IT="rpc.jsonrpc.version",CT="rpc.jsonrpc.request_id",wT="rpc.jsonrpc.error_code",DT="rpc.jsonrpc.error_message",UT="message.type",VT="message.id",BT="message.compressed_size",GT="message.uncompressed_size",pV=mS,dV=yS,EV=AS,_V=OS,SV=gS,hV=NS,TV=RS,vV=PS,mV=bS,yV=xS,AV=MS,OV=LS,gV=IS,NV=CS,RV=wS,PV=DS,bV=US,xV=VS,MV=BS,LV=GS,IV=kS,CV=HS,wV=FS,DV=YS,UV=qS,VV=jS,BV=$S,GV=KS,kV=WS,HV=zS,FV=XS,YV=JS,qV=QS,jV=ZS,$V=eh,KV=th,WV=rh,zV=nh,XV=oh,JV=ih,QV=ah,ZV=uh,e2=sh,t2=lh,r2=ch,n2=fh,o2=ph,i2=dh,a2=Eh,u2=_h,s2=Sh,l2=hh,c2=Th,f2=vh,p2=mh,d2=yh,E2=Ah,_2=Oh,S2=gh,h2=Nh,T2=Rh,v2=Ph,m2=bh,y2=xh,A2=Mh,O2=Lh,g2=Ih,N2=Ch,R2=wh,P2=Dh,b2=Uh,x2=Vh,M2=Bh,L2=Gh,I2=kh,C2=Hh,w2=Fh,D2=Yh,U2=qh,V2=jh,B2=$h,G2=Kh,k2=Wh,H2=zh,F2=Xh,Y2=Jh,q2=Qh,j2=Zh,$2=eT,K2=tT,W2=rT,z2=nT,X2=oT,J2=iT,Q2=aT,Z2=uT,eB=sT,tB=lT,rB=cT,nB=fT,oB=pT,iB=dT,aB=ET,uB=_T,sB=ST,lB=hT,cB=TT,fB=vT,pB=mT,dB=yT,EB=AT,_B=OT,SB=gT,hB=NT,TB=RT,vB=PT,mB=bT,yB=xT,AB=MT,OB=LT,gB=IT,NB=CT,RB=wT,PB=DT,bB=UT,xB=VT,MB=BT,LB=GT,IB=fe([mS,yS,AS,OS,gS,NS,RS,PS,bS,xS,MS,LS,IS,CS,wS,DS,US,VS,BS,GS,kS,HS,FS,YS,qS,jS,$S,KS,WS,zS,XS,JS,QS,ZS,eh,th,rh,nh,oh,ih,ah,uh,sh,lh,ch,fh,ph,dh,Eh,_h,Sh,hh,Th,vh,mh,yh,Ah,Oh,gh,Nh,Rh,Ph,bh,xh,Mh,Lh,Ih,Ch,wh,Dh,Uh,Vh,Bh,Gh,kh,Hh,Fh,Yh,qh,jh,$h,Kh,Wh,zh,Xh,Jh,Qh,Zh,eT,tT,rT,nT,oT,iT,aT,uT,sT,lT,cT,fT,pT,dT,ET,_T,ST,hT,TT,vT,mT,yT,AT,OT,gT,NT,RT,PT,bT,xT,MT,LT,IT,CT,wT,DT,UT,VT,BT,GT]),kT="other_sql",HT="mssql",FT="mysql",YT="oracle",qT="db2",jT="postgresql",$T="redshift",KT="hive",WT="cloudscape",zT="hsqldb",XT="progress",JT="maxdb",QT="hanadb",ZT="ingres",ev="firstsql",tv="edb",rv="cache",nv="adabas",ov="firebird",iv="derby",av="filemaker",uv="informix",sv="instantdb",lv="interbase",cv="mariadb",fv="netezza",pv="pervasive",dv="pointbase",Ev="sqlite",_v="sybase",Sv="teradata",hv="vertica",Tv="h2",vv="coldfusion",mv="cassandra",yv="hbase",Av="mongodb",Ov="redis",gv="couchbase",Nv="couchdb",Rv="cosmosdb",Pv="dynamodb",bv="neo4j",xv="geode",Mv="elasticsearch",Lv="memcached",Iv="cockroachdb",CB=kT,wB=HT,DB=FT,UB=YT,VB=qT,BB=jT,GB=$T,kB=KT,HB=WT,FB=zT,YB=XT,qB=JT,jB=QT,$B=ZT,KB=ev,WB=tv,zB=rv,XB=nv,JB=ov,QB=iv,ZB=av,eG=uv,tG=sv,rG=lv,nG=cv,oG=fv,iG=pv,aG=dv,uG=Ev,sG=_v,lG=Sv,cG=hv,fG=Tv,pG=vv,dG=mv,EG=yv,_G=Av,SG=Ov,hG=gv,TG=Nv,vG=Rv,mG=Pv,yG=bv,AG=xv,OG=Mv,gG=Lv,NG=Iv,RG=fe([kT,HT,FT,YT,qT,jT,$T,KT,WT,zT,XT,JT,QT,ZT,ev,tv,rv,nv,ov,iv,av,uv,sv,lv,cv,fv,pv,dv,Ev,_v,Sv,hv,Tv,vv,mv,yv,Av,Ov,gv,Nv,Rv,Pv,bv,xv,Mv,Lv,Iv]),Cv="all",wv="each_quorum",Dv="quorum",Uv="local_quorum",Vv="one",Bv="two",Gv="three",kv="local_one",Hv="any",Fv="serial",Yv="local_serial",PG=Cv,bG=wv,xG=Dv,MG=Uv,LG=Vv,IG=Bv,CG=Gv,wG=kv,DG=Hv,UG=Fv,VG=Yv,BG=fe([Cv,wv,Dv,Uv,Vv,Bv,Gv,kv,Hv,Fv,Yv]),qv="datasource",jv="http",$v="pubsub",Kv="timer",Wv="other",GG=qv,kG=jv,HG=$v,FG=Kv,YG=Wv,qG=fe([qv,jv,$v,Kv,Wv]),zv="insert",Xv="edit",Jv="delete",jG=zv,$G=Xv,KG=Jv,WG=fe([zv,Xv,Jv]),Qv="alibaba_cloud",Zv="aws",em="azure",tm="gcp",zG=Qv,XG=Zv,JG=em,QG=tm,ZG=fe([Qv,Zv,em,tm]),rm="ip_tcp",nm="ip_udp",om="ip",im="unix",am="pipe",um="inproc",sm="other",ek=rm,tk=nm,rk=om,nk=im,ok=am,ik=um,ak=sm,uk=fe([rm,nm,om,im,am,um,sm]),lm="wifi",cm="wired",fm="cell",pm="unavailable",dm="unknown",sk=lm,lk=cm,ck=fm,fk=pm,pk=dm,dk=fe([lm,cm,fm,pm,dm]),Em="gprs",_m="edge",Sm="umts",hm="cdma",Tm="evdo_0",vm="evdo_a",mm="cdma2000_1xrtt",ym="hsdpa",Am="hsupa",Om="hspa",gm="iden",Nm="evdo_b",Rm="lte",Pm="ehrpd",bm="hspap",xm="gsm",Mm="td_scdma",Lm="iwlan",Im="nr",Cm="nrnsa",wm="lte_ca",Ek=Em,_k=_m,Sk=Sm,hk=hm,Tk=Tm,vk=vm,mk=mm,yk=ym,Ak=Am,Ok=Om,gk=gm,Nk=Nm,Rk=Rm,Pk=Pm,bk=bm,xk=xm,Mk=Mm,Lk=Lm,Ik=Im,Ck=Cm,wk=wm,Dk=fe([Em,_m,Sm,hm,Tm,vm,mm,ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm]),Dm="1.0",Um="1.1",Vm="2.0",Bm="SPDY",Gm="QUIC",Uk=Dm,Vk=Um,Bk=Vm,Gk=Bm,kk=Gm,Hk={HTTP_1_0:Dm,HTTP_1_1:Um,HTTP_2_0:Vm,SPDY:Bm,QUIC:Gm},km="queue",Hm="topic",Fk=km,Yk=Hm,qk=fe([km,Hm]),Fm="receive",Ym="process",jk=Fm,$k=Ym,Kk=fe([Fm,Ym]),qm=0,jm=1,$m=2,Km=3,Wm=4,zm=5,Xm=6,Jm=7,Qm=8,Zm=9,ey=10,ty=11,ry=12,ny=13,oy=14,iy=15,ay=16,Wk=qm,zk=jm,Xk=$m,Jk=Km,Qk=Wm,Zk=zm,eH=Xm,tH=Jm,rH=Qm,nH=Zm,oH=ey,iH=ty,aH=ry,uH=ny,sH=oy,lH=iy,cH=ay,fH={OK:qm,CANCELLED:jm,UNKNOWN:$m,INVALID_ARGUMENT:Km,DEADLINE_EXCEEDED:Wm,NOT_FOUND:zm,ALREADY_EXISTS:Xm,PERMISSION_DENIED:Jm,RESOURCE_EXHAUSTED:Qm,FAILED_PRECONDITION:Zm,ABORTED:ey,OUT_OF_RANGE:ty,UNIMPLEMENTED:ry,INTERNAL:ny,UNAVAILABLE:oy,DATA_LOSS:iy,UNAUTHENTICATED:ay},uy="SENT",sy="RECEIVED",pH=uy,dH=sy,EH=fe([uy,sy])});var cy=m(()=>{"use strict";ly()});var fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,xy,My,Ly,Iy,Cy,wy,Dy,Uy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,uA,sA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,xA,MA,LA,IA,CA,wA,DA,UA,VA,_H,SH,hH,TH,vH,mH,yH,AH,OH,gH,NH,RH,PH,bH,xH,MH,LH,IH,CH,wH,DH,UH,VH,BH,GH,kH,HH,FH,YH,qH,jH,$H,KH,WH,zH,XH,JH,QH,ZH,eF,tF,rF,nF,oF,iF,aF,uF,sF,lF,cF,fF,pF,dF,EF,_F,SF,hF,TF,vF,mF,yF,AF,OF,gF,NF,RF,PF,bF,xF,MF,LF,IF,CF,wF,DF,UF,VF,BF,GF,kF,HF,FF,BA,GA,kA,HA,YF,qF,jF,$F,KF,FA,YA,qA,jA,$A,KA,WA,zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO,WF,zF,XF,JF,QF,ZF,e3,t3,r3,n3,o3,i3,a3,u3,s3,l3,c3,f3,iO,aO,p3,d3,E3,uO,sO,lO,cO,fO,pO,dO,_3,S3,h3,T3,v3,m3,y3,A3,EO,_O,SO,hO,TO,vO,mO,yO,AO,OO,gO,O3,g3,N3,R3,P3,b3,x3,M3,L3,I3,C3,w3,NO,RO,PO,bO,xO,MO,LO,IO,CO,wO,D3,U3,V3,B3,G3,k3,H3,F3,Y3,q3,j3,DO=m(()=>{"use strict";ac();fy="cloud.provider",py="cloud.account.id",dy="cloud.region",Ey="cloud.availability_zone",_y="cloud.platform",Sy="aws.ecs.container.arn",hy="aws.ecs.cluster.arn",Ty="aws.ecs.launchtype",vy="aws.ecs.task.arn",my="aws.ecs.task.family",yy="aws.ecs.task.revision",Ay="aws.eks.cluster.arn",Oy="aws.log.group.names",gy="aws.log.group.arns",Ny="aws.log.stream.names",Ry="aws.log.stream.arns",Py="container.name",by="container.id",xy="container.runtime",My="container.image.name",Ly="container.image.tag",Iy="deployment.environment",Cy="device.id",wy="device.model.identifier",Dy="device.model.name",Uy="faas.name",Vy="faas.id",By="faas.version",Gy="faas.instance",ky="faas.max_memory",Hy="host.id",Fy="host.name",Yy="host.type",qy="host.arch",jy="host.image.name",$y="host.image.id",Ky="host.image.version",Wy="k8s.cluster.name",zy="k8s.node.name",Xy="k8s.node.uid",Jy="k8s.namespace.name",Qy="k8s.pod.uid",Zy="k8s.pod.name",eA="k8s.container.name",tA="k8s.replicaset.uid",rA="k8s.replicaset.name",nA="k8s.deployment.uid",oA="k8s.deployment.name",iA="k8s.statefulset.uid",aA="k8s.statefulset.name",uA="k8s.daemonset.uid",sA="k8s.daemonset.name",lA="k8s.job.uid",cA="k8s.job.name",fA="k8s.cronjob.uid",pA="k8s.cronjob.name",dA="os.type",EA="os.description",_A="os.name",SA="os.version",hA="process.pid",TA="process.executable.name",vA="process.executable.path",mA="process.command",yA="process.command_line",AA="process.command_args",OA="process.owner",gA="process.runtime.name",NA="process.runtime.version",RA="process.runtime.description",PA="service.name",bA="service.namespace",xA="service.instance.id",MA="service.version",LA="telemetry.sdk.name",IA="telemetry.sdk.language",CA="telemetry.sdk.version",wA="telemetry.auto.version",DA="webengine.name",UA="webengine.version",VA="webengine.description",_H=fy,SH=py,hH=dy,TH=Ey,vH=_y,mH=Sy,yH=hy,AH=Ty,OH=vy,gH=my,NH=yy,RH=Ay,PH=Oy,bH=gy,xH=Ny,MH=Ry,LH=Py,IH=by,CH=xy,wH=My,DH=Ly,UH=Iy,VH=Cy,BH=wy,GH=Dy,kH=Uy,HH=Vy,FH=By,YH=Gy,qH=ky,jH=Hy,$H=Fy,KH=Yy,WH=qy,zH=jy,XH=$y,JH=Ky,QH=Wy,ZH=zy,eF=Xy,tF=Jy,rF=Qy,nF=Zy,oF=eA,iF=tA,aF=rA,uF=nA,sF=oA,lF=iA,cF=aA,fF=uA,pF=sA,dF=lA,EF=cA,_F=fA,SF=pA,hF=dA,TF=EA,vF=_A,mF=SA,yF=hA,AF=TA,OF=vA,gF=mA,NF=yA,RF=AA,PF=OA,bF=gA,xF=NA,MF=RA,LF=PA,IF=bA,CF=xA,wF=MA,DF=LA,UF=IA,VF=CA,BF=wA,GF=DA,kF=UA,HF=VA,FF=fe([fy,py,dy,Ey,_y,Sy,hy,Ty,vy,my,yy,Ay,Oy,gy,Ny,Ry,Py,by,xy,My,Ly,Iy,Cy,wy,Dy,Uy,Vy,By,Gy,ky,Hy,Fy,Yy,qy,jy,$y,Ky,Wy,zy,Xy,Jy,Qy,Zy,eA,tA,rA,nA,oA,iA,aA,uA,sA,lA,cA,fA,pA,dA,EA,_A,SA,hA,TA,vA,mA,yA,AA,OA,gA,NA,RA,PA,bA,xA,MA,LA,IA,CA,wA,DA,UA,VA]),BA="alibaba_cloud",GA="aws",kA="azure",HA="gcp",YF=BA,qF=GA,jF=kA,$F=HA,KF=fe([BA,GA,kA,HA]),FA="alibaba_cloud_ecs",YA="alibaba_cloud_fc",qA="aws_ec2",jA="aws_ecs",$A="aws_eks",KA="aws_lambda",WA="aws_elastic_beanstalk",zA="azure_vm",XA="azure_container_instances",JA="azure_aks",QA="azure_functions",ZA="azure_app_service",eO="gcp_compute_engine",tO="gcp_cloud_run",rO="gcp_kubernetes_engine",nO="gcp_cloud_functions",oO="gcp_app_engine",WF=FA,zF=YA,XF=qA,JF=jA,QF=$A,ZF=KA,e3=WA,t3=zA,r3=XA,n3=JA,o3=QA,i3=ZA,a3=eO,u3=tO,s3=rO,l3=nO,c3=oO,f3=fe([FA,YA,qA,jA,$A,KA,WA,zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO]),iO="ec2",aO="fargate",p3=iO,d3=aO,E3=fe([iO,aO]),uO="amd64",sO="arm32",lO="arm64",cO="ia64",fO="ppc32",pO="ppc64",dO="x86",_3=uO,S3=sO,h3=lO,T3=cO,v3=fO,m3=pO,y3=dO,A3=fe([uO,sO,lO,cO,fO,pO,dO]),EO="windows",_O="linux",SO="darwin",hO="freebsd",TO="netbsd",vO="openbsd",mO="dragonflybsd",yO="hpux",AO="aix",OO="solaris",gO="z_os",O3=EO,g3=_O,N3=SO,R3=hO,P3=TO,b3=vO,x3=mO,M3=yO,L3=AO,I3=OO,C3=gO,w3=fe([EO,_O,SO,hO,TO,vO,mO,yO,AO,OO,gO]),NO="cpp",RO="dotnet",PO="erlang",bO="go",xO="java",MO="nodejs",LO="php",IO="python",CO="ruby",wO="webjs",D3=NO,U3=RO,V3=PO,B3=bO,G3=xO,k3=MO,H3=LO,F3=IO,Y3=CO,q3=wO,j3=fe([NO,RO,PO,bO,xO,MO,LO,IO,CO,wO])});var UO=m(()=>{"use strict";DO()});var po={};Je(po,{AWSECSLAUNCHTYPEVALUES_EC2:()=>p3,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>d3,AwsEcsLaunchtypeValues:()=>E3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>WF,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>zF,CLOUDPLATFORMVALUES_AWS_EC2:()=>XF,CLOUDPLATFORMVALUES_AWS_ECS:()=>JF,CLOUDPLATFORMVALUES_AWS_EKS:()=>QF,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>e3,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>ZF,CLOUDPLATFORMVALUES_AZURE_AKS:()=>n3,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>i3,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>r3,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>o3,CLOUDPLATFORMVALUES_AZURE_VM:()=>t3,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>c3,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>l3,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>u3,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>a3,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>s3,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>YF,CLOUDPROVIDERVALUES_AWS:()=>qF,CLOUDPROVIDERVALUES_AZURE:()=>jF,CLOUDPROVIDERVALUES_GCP:()=>$F,CloudPlatformValues:()=>f3,CloudProviderValues:()=>KF,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>PG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>DG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>bG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>wG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>MG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>VG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>LG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>xG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>UG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>CG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>IG,DBSYSTEMVALUES_ADABAS:()=>XB,DBSYSTEMVALUES_CACHE:()=>zB,DBSYSTEMVALUES_CASSANDRA:()=>dG,DBSYSTEMVALUES_CLOUDSCAPE:()=>HB,DBSYSTEMVALUES_COCKROACHDB:()=>NG,DBSYSTEMVALUES_COLDFUSION:()=>pG,DBSYSTEMVALUES_COSMOSDB:()=>vG,DBSYSTEMVALUES_COUCHBASE:()=>hG,DBSYSTEMVALUES_COUCHDB:()=>TG,DBSYSTEMVALUES_DB2:()=>VB,DBSYSTEMVALUES_DERBY:()=>QB,DBSYSTEMVALUES_DYNAMODB:()=>mG,DBSYSTEMVALUES_EDB:()=>WB,DBSYSTEMVALUES_ELASTICSEARCH:()=>OG,DBSYSTEMVALUES_FILEMAKER:()=>ZB,DBSYSTEMVALUES_FIREBIRD:()=>JB,DBSYSTEMVALUES_FIRSTSQL:()=>KB,DBSYSTEMVALUES_GEODE:()=>AG,DBSYSTEMVALUES_H2:()=>fG,DBSYSTEMVALUES_HANADB:()=>jB,DBSYSTEMVALUES_HBASE:()=>EG,DBSYSTEMVALUES_HIVE:()=>kB,DBSYSTEMVALUES_HSQLDB:()=>FB,DBSYSTEMVALUES_INFORMIX:()=>eG,DBSYSTEMVALUES_INGRES:()=>$B,DBSYSTEMVALUES_INSTANTDB:()=>tG,DBSYSTEMVALUES_INTERBASE:()=>rG,DBSYSTEMVALUES_MARIADB:()=>nG,DBSYSTEMVALUES_MAXDB:()=>qB,DBSYSTEMVALUES_MEMCACHED:()=>gG,DBSYSTEMVALUES_MONGODB:()=>_G,DBSYSTEMVALUES_MSSQL:()=>wB,DBSYSTEMVALUES_MYSQL:()=>DB,DBSYSTEMVALUES_NEO4J:()=>yG,DBSYSTEMVALUES_NETEZZA:()=>oG,DBSYSTEMVALUES_ORACLE:()=>UB,DBSYSTEMVALUES_OTHER_SQL:()=>CB,DBSYSTEMVALUES_PERVASIVE:()=>iG,DBSYSTEMVALUES_POINTBASE:()=>aG,DBSYSTEMVALUES_POSTGRESQL:()=>BB,DBSYSTEMVALUES_PROGRESS:()=>YB,DBSYSTEMVALUES_REDIS:()=>SG,DBSYSTEMVALUES_REDSHIFT:()=>GB,DBSYSTEMVALUES_SQLITE:()=>uG,DBSYSTEMVALUES_SYBASE:()=>sG,DBSYSTEMVALUES_TERADATA:()=>lG,DBSYSTEMVALUES_VERTICA:()=>cG,DbCassandraConsistencyLevelValues:()=>BG,DbSystemValues:()=>RG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>KG,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>$G,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>jG,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>zG,FAASINVOKEDPROVIDERVALUES_AWS:()=>XG,FAASINVOKEDPROVIDERVALUES_AZURE:()=>JG,FAASINVOKEDPROVIDERVALUES_GCP:()=>QG,FAASTRIGGERVALUES_DATASOURCE:()=>GG,FAASTRIGGERVALUES_HTTP:()=>kG,FAASTRIGGERVALUES_OTHER:()=>YG,FAASTRIGGERVALUES_PUBSUB:()=>HG,FAASTRIGGERVALUES_TIMER:()=>FG,FaasDocumentOperationValues:()=>WG,FaasInvokedProviderValues:()=>ZG,FaasTriggerValues:()=>qG,HOSTARCHVALUES_AMD64:()=>_3,HOSTARCHVALUES_ARM32:()=>S3,HOSTARCHVALUES_ARM64:()=>h3,HOSTARCHVALUES_IA64:()=>T3,HOSTARCHVALUES_PPC32:()=>v3,HOSTARCHVALUES_PPC64:()=>m3,HOSTARCHVALUES_X86:()=>y3,HTTPFLAVORVALUES_HTTP_1_0:()=>Uk,HTTPFLAVORVALUES_HTTP_1_1:()=>Vk,HTTPFLAVORVALUES_HTTP_2_0:()=>Bk,HTTPFLAVORVALUES_QUIC:()=>kk,HTTPFLAVORVALUES_SPDY:()=>Gk,HostArchValues:()=>A3,HttpFlavorValues:()=>Hk,MESSAGETYPEVALUES_RECEIVED:()=>dH,MESSAGETYPEVALUES_SENT:()=>pH,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>Fk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>Yk,MESSAGINGOPERATIONVALUES_PROCESS:()=>$k,MESSAGINGOPERATIONVALUES_RECEIVE:()=>jk,MessageTypeValues:()=>EH,MessagingDestinationKindValues:()=>qk,MessagingOperationValues:()=>Kk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>hk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>mk,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>_k,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>Pk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Tk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>vk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Nk,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>Ek,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>xk,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>yk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Ok,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>bk,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>Ak,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>gk,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Lk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>Rk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>wk,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Ik,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>Ck,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Mk,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Sk,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>ck,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>fk,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>pk,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>sk,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>lk,NETTRANSPORTVALUES_INPROC:()=>ik,NETTRANSPORTVALUES_IP:()=>rk,NETTRANSPORTVALUES_IP_TCP:()=>ek,NETTRANSPORTVALUES_IP_UDP:()=>tk,NETTRANSPORTVALUES_OTHER:()=>ak,NETTRANSPORTVALUES_PIPE:()=>ok,NETTRANSPORTVALUES_UNIX:()=>nk,NetHostConnectionSubtypeValues:()=>Dk,NetHostConnectionTypeValues:()=>dk,NetTransportValues:()=>uk,OSTYPEVALUES_AIX:()=>L3,OSTYPEVALUES_DARWIN:()=>N3,OSTYPEVALUES_DRAGONFLYBSD:()=>x3,OSTYPEVALUES_FREEBSD:()=>R3,OSTYPEVALUES_HPUX:()=>M3,OSTYPEVALUES_LINUX:()=>g3,OSTYPEVALUES_NETBSD:()=>P3,OSTYPEVALUES_OPENBSD:()=>b3,OSTYPEVALUES_SOLARIS:()=>I3,OSTYPEVALUES_WINDOWS:()=>O3,OSTYPEVALUES_Z_OS:()=>C3,OsTypeValues:()=>w3,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>oH,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>eH,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>zk,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>lH,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>Qk,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>nH,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>uH,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>Jk,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>Zk,RPCGRPCSTATUSCODEVALUES_OK:()=>Wk,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>iH,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>tH,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>rH,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>cH,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>sH,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>aH,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>Xk,RpcGrpcStatusCodeValues:()=>fH,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>H2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>Z2,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>B2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>w2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>J2,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>$2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>q2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>eB,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>F2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>D2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>k2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>j2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>G2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>U2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>V2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>Q2,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>W2,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>z2,SEMATTRS_AWS_DYNAMODB_SELECT:()=>Y2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>K2,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>C2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>X2,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>pV,SEMATTRS_CODE_FILEPATH:()=>S2,SEMATTRS_CODE_FUNCTION:()=>E2,SEMATTRS_CODE_LINENO:()=>h2,SEMATTRS_CODE_NAMESPACE:()=>_2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>OV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>bV,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>PV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>NV,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>yV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>AV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>RV,SEMATTRS_DB_CASSANDRA_TABLE:()=>gV,SEMATTRS_DB_CONNECTION_STRING:()=>EV,SEMATTRS_DB_HBASE_NAMESPACE:()=>xV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>SV,SEMATTRS_DB_MONGODB_COLLECTION:()=>LV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>mV,SEMATTRS_DB_NAME:()=>hV,SEMATTRS_DB_OPERATION:()=>vV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>MV,SEMATTRS_DB_SQL_TABLE:()=>IV,SEMATTRS_DB_STATEMENT:()=>TV,SEMATTRS_DB_SYSTEM:()=>dV,SEMATTRS_DB_USER:()=>_V,SEMATTRS_ENDUSER_ID:()=>l2,SEMATTRS_ENDUSER_ROLE:()=>c2,SEMATTRS_ENDUSER_SCOPE:()=>f2,SEMATTRS_EXCEPTION_ESCAPED:()=>UV,SEMATTRS_EXCEPTION_MESSAGE:()=>wV,SEMATTRS_EXCEPTION_STACKTRACE:()=>DV,SEMATTRS_EXCEPTION_TYPE:()=>CV,SEMATTRS_FAAS_COLDSTART:()=>jV,SEMATTRS_FAAS_CRON:()=>qV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>GV,SEMATTRS_FAAS_DOCUMENT_NAME:()=>FV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>kV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>HV,SEMATTRS_FAAS_EXECUTION:()=>BV,SEMATTRS_FAAS_INVOKED_NAME:()=>$V,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>KV,SEMATTRS_FAAS_INVOKED_REGION:()=>WV,SEMATTRS_FAAS_TIME:()=>YV,SEMATTRS_FAAS_TRIGGER:()=>VV,SEMATTRS_HTTP_CLIENT_IP:()=>I2,SEMATTRS_HTTP_FLAVOR:()=>g2,SEMATTRS_HTTP_HOST:()=>y2,SEMATTRS_HTTP_METHOD:()=>T2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>R2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>P2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>b2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>x2,SEMATTRS_HTTP_ROUTE:()=>L2,SEMATTRS_HTTP_SCHEME:()=>A2,SEMATTRS_HTTP_SERVER_NAME:()=>M2,SEMATTRS_HTTP_STATUS_CODE:()=>O2,SEMATTRS_HTTP_TARGET:()=>m2,SEMATTRS_HTTP_URL:()=>v2,SEMATTRS_HTTP_USER_AGENT:()=>N2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>MB,SEMATTRS_MESSAGE_ID:()=>xB,SEMATTRS_MESSAGE_TYPE:()=>bB,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>LB,SEMATTRS_MESSAGING_CONSUMER_ID:()=>dB,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>lB,SEMATTRS_MESSAGING_DESTINATION:()=>rB,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>nB,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>hB,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>SB,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>_B,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>TB,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>vB,SEMATTRS_MESSAGING_MESSAGE_ID:()=>sB,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>fB,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>cB,SEMATTRS_MESSAGING_OPERATION:()=>pB,SEMATTRS_MESSAGING_PROTOCOL:()=>iB,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>aB,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>EB,SEMATTRS_MESSAGING_SYSTEM:()=>tB,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>oB,SEMATTRS_MESSAGING_URL:()=>uB,SEMATTRS_NET_HOST_CARRIER_ICC:()=>u2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>i2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>a2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>o2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>n2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>r2,SEMATTRS_NET_HOST_IP:()=>ZV,SEMATTRS_NET_HOST_NAME:()=>t2,SEMATTRS_NET_HOST_PORT:()=>e2,SEMATTRS_NET_PEER_IP:()=>XV,SEMATTRS_NET_PEER_NAME:()=>QV,SEMATTRS_NET_PEER_PORT:()=>JV,SEMATTRS_NET_TRANSPORT:()=>zV,SEMATTRS_PEER_SERVICE:()=>s2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>OB,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>RB,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>PB,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>NB,SEMATTRS_RPC_JSONRPC_VERSION:()=>gB,SEMATTRS_RPC_METHOD:()=>AB,SEMATTRS_RPC_SERVICE:()=>yB,SEMATTRS_RPC_SYSTEM:()=>mB,SEMATTRS_THREAD_ID:()=>p2,SEMATTRS_THREAD_NAME:()=>d2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>yH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>mH,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>AH,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>OH,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>gH,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>NH,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>RH,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>bH,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>PH,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>MH,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>xH,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>SH,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>TH,SEMRESATTRS_CLOUD_PLATFORM:()=>vH,SEMRESATTRS_CLOUD_PROVIDER:()=>_H,SEMRESATTRS_CLOUD_REGION:()=>hH,SEMRESATTRS_CONTAINER_ID:()=>IH,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>wH,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>DH,SEMRESATTRS_CONTAINER_NAME:()=>LH,SEMRESATTRS_CONTAINER_RUNTIME:()=>CH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>UH,SEMRESATTRS_DEVICE_ID:()=>VH,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>BH,SEMRESATTRS_DEVICE_MODEL_NAME:()=>GH,SEMRESATTRS_FAAS_ID:()=>HH,SEMRESATTRS_FAAS_INSTANCE:()=>YH,SEMRESATTRS_FAAS_MAX_MEMORY:()=>qH,SEMRESATTRS_FAAS_NAME:()=>kH,SEMRESATTRS_FAAS_VERSION:()=>FH,SEMRESATTRS_HOST_ARCH:()=>WH,SEMRESATTRS_HOST_ID:()=>jH,SEMRESATTRS_HOST_IMAGE_ID:()=>XH,SEMRESATTRS_HOST_IMAGE_NAME:()=>zH,SEMRESATTRS_HOST_IMAGE_VERSION:()=>JH,SEMRESATTRS_HOST_NAME:()=>$H,SEMRESATTRS_HOST_TYPE:()=>KH,SEMRESATTRS_K8S_CLUSTER_NAME:()=>QH,SEMRESATTRS_K8S_CONTAINER_NAME:()=>oF,SEMRESATTRS_K8S_CRONJOB_NAME:()=>SF,SEMRESATTRS_K8S_CRONJOB_UID:()=>_F,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>pF,SEMRESATTRS_K8S_DAEMONSET_UID:()=>fF,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>sF,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>uF,SEMRESATTRS_K8S_JOB_NAME:()=>EF,SEMRESATTRS_K8S_JOB_UID:()=>dF,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>tF,SEMRESATTRS_K8S_NODE_NAME:()=>ZH,SEMRESATTRS_K8S_NODE_UID:()=>eF,SEMRESATTRS_K8S_POD_NAME:()=>nF,SEMRESATTRS_K8S_POD_UID:()=>rF,SEMRESATTRS_K8S_REPLICASET_NAME:()=>aF,SEMRESATTRS_K8S_REPLICASET_UID:()=>iF,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>cF,SEMRESATTRS_K8S_STATEFULSET_UID:()=>lF,SEMRESATTRS_OS_DESCRIPTION:()=>TF,SEMRESATTRS_OS_NAME:()=>vF,SEMRESATTRS_OS_TYPE:()=>hF,SEMRESATTRS_OS_VERSION:()=>mF,SEMRESATTRS_PROCESS_COMMAND:()=>gF,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>RF,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>NF,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>AF,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>OF,SEMRESATTRS_PROCESS_OWNER:()=>PF,SEMRESATTRS_PROCESS_PID:()=>yF,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>MF,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>bF,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>xF,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>CF,SEMRESATTRS_SERVICE_NAME:()=>LF,SEMRESATTRS_SERVICE_NAMESPACE:()=>IF,SEMRESATTRS_SERVICE_VERSION:()=>wF,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>BF,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>UF,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>DF,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>VF,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>HF,SEMRESATTRS_WEBENGINE_NAME:()=>GF,SEMRESATTRS_WEBENGINE_VERSION:()=>kF,SemanticAttributes:()=>IB,SemanticResourceAttributes:()=>FF,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>D3,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>U3,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>V3,TELEMETRYSDKLANGUAGEVALUES_GO:()=>B3,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>G3,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>k3,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>H3,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>F3,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>Y3,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>q3,TelemetrySdkLanguageValues:()=>j3});var Eo=m(()=>{"use strict";cy();UO()});var BO=h((VO,zi)=>{"use strict";(function(t){"use strict";let e="(0?\\d+|0x[a-f0-9]+)",n={fourOctet:new RegExp(`^${e}\\.${e}\\.${e}\\.${e}$`,"i"),threeOctet:new RegExp(`^${e}\\.${e}\\.${e}$`,"i"),twoOctet:new RegExp(`^${e}\\.${e}$`,"i"),longValue:new RegExp(`^${e}$`,"i")},i=new RegExp("^0[0-7]+$","i"),a=new RegExp("^0x[a-f0-9]+$","i"),u="%[0-9a-z]{1,}",o="(?:[0-9a-f]+::?)+",r={zoneIndex:new RegExp(u,"i"),native:new RegExp(`^(::)?(${o})?([0-9a-f]+)?(::)?(${u})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${e}\\.${e}\\.${e}\\.${e}(${u})?)$`,"i"),transitional:new RegExp(`^((?:${o})|(?:::)(?:${o})?)${e}\\.${e}\\.${e}\\.${e}(${u})?$`,"i")};function s(f,S){if(f.indexOf("::")!==f.lastIndexOf("::"))return null;let v=0,T=-1,A=(f.match(r.zoneIndex)||[])[0],O,N;for(A&&(A=A.substring(1),f=f.replace(/%.+$/,""));(T=f.indexOf(":",T+1))>=0;)v++;if(f.substr(0,2)==="::"&&v--,f.substr(-2,2)==="::"&&v--,v>S)return null;for(N=S-v,O=":";N--;)O+="0:";return f=f.replace("::",O),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),S=function(){let U=f.split(":"),G=[];for(let F=0;F<U.length;F++)G.push(parseInt(U[F],16));return G}(),{parts:S,zoneId:A}}function l(f,S,v,T){if(f.length!==S.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A=0,O;for(;T>0;){if(O=v-T,O<0&&(O=0),f[A]>>O!==S[A]>>O)return!1;T-=v,A+=1}return!0}function c(f){if(a.test(f))return parseInt(f,16);if(f[0]==="0"&&!isNaN(parseInt(f[1],10))){if(i.test(f))return parseInt(f,8);throw new Error(`ipaddr: cannot parse ${f} as octal`)}return parseInt(f,10)}function p(f,S){for(;f.length<S;)f=`0${f}`;return f}let _={};_.IPv4=function(){function f(S){if(S.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let v,T;for(v=0;v<S.length;v++)if(T=S[v],!(0<=T&&T<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=S}return f.prototype.SpecialRanges={unspecified:[[new f([0,0,0,0]),8]],broadcast:[[new f([255,255,255,255]),32]],multicast:[[new f([224,0,0,0]),4]],linkLocal:[[new f([169,254,0,0]),16]],loopback:[[new f([127,0,0,0]),8]],carrierGradeNat:[[new f([100,64,0,0]),10]],private:[[new f([10,0,0,0]),8],[new f([172,16,0,0]),12],[new f([192,168,0,0]),16]],reserved:[[new f([192,0,0,0]),24],[new f([192,0,2,0]),24],[new f([192,88,99,0]),24],[new f([198,18,0,0]),15],[new f([198,51,100,0]),24],[new f([203,0,113,0]),24],[new f([240,0,0,0]),4]],as112:[[new f([192,175,48,0]),24],[new f([192,31,196,0]),24]],amt:[[new f([192,52,193,0]),24]]},f.prototype.kind=function(){return"ipv4"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,S.octets,8,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},A,O,N;for(A=3;A>=0;A-=1)if(O=this.octets[A],O in T){if(N=T[O],v&&N!==0)return null;N!==8&&(v=!0),S+=N}else return null;return 32-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){return this.octets.slice(0)},f.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},f.prototype.toNormalizedString=function(){return this.toString()},f.prototype.toString=function(){return this.octets.join(".")},f}(),_.IPv4.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<4;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.isIPv4=function(f){return this.parser(f)!==null},_.IPv4.isValid=function(f){try{return new this(this.parser(f)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(f){try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(f){return!!(_.IPv4.isValid(f)&&f.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<4;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},_.IPv4.parse=function(f){let S=this.parser(f);if(S===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(S)},_.IPv4.parseCIDR=function(f){let S;if(S=f.match(/^(.+)\/(\d+)$/)){let v=parseInt(S[2]);if(v>=0&&v<=32){let T=[this.parse(S[1]),v];return Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},_.IPv4.parser=function(f){let S,v,T;if(S=f.match(n.fourOctet))return function(){let A=S.slice(1,6),O=[];for(let N=0;N<A.length;N++)v=A[N],O.push(c(v));return O}();if(S=f.match(n.longValue)){if(T=c(S[1]),T>4294967295||T<0)throw new Error("ipaddr: address outside defined range");return function(){let A=[],O;for(O=0;O<=24;O+=8)A.push(T>>O&255);return A}().reverse()}else return(S=f.match(n.twoOctet))?function(){let A=S.slice(1,4),O=[];if(T=c(A[1]),T>16777215||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(T>>16&255),O.push(T>>8&255),O.push(T&255),O}():(S=f.match(n.threeOctet))?function(){let A=S.slice(1,5),O=[];if(T=c(A[2]),T>65535||T<0)throw new Error("ipaddr: address outside defined range");return O.push(c(A[0])),O.push(c(A[1])),O.push(T>>8&255),O.push(T&255),O}():null},_.IPv4.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");let S=[0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<4&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.IPv6=function(){function f(S,v){let T,A;if(S.length===16)for(this.parts=[],T=0;T<=14;T+=2)this.parts.push(S[T]<<8|S[T+1]);else if(S.length===8)this.parts=S;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=0;T<this.parts.length;T++)if(A=this.parts[T],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");v&&(this.zoneId=v)}return f.prototype.SpecialRanges={unspecified:[new f([0,0,0,0,0,0,0,0]),128],linkLocal:[new f([65152,0,0,0,0,0,0,0]),10],multicast:[new f([65280,0,0,0,0,0,0,0]),8],loopback:[new f([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new f([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new f([0,0,0,0,0,65535,0,0]),96],discard:[new f([256,0,0,0,0,0,0,0]),64],rfc6145:[new f([0,0,0,0,65535,0,0,0]),96],rfc6052:[new f([100,65435,0,0,0,0,0,0]),96],"6to4":[new f([8194,0,0,0,0,0,0,0]),16],teredo:[new f([8193,0,0,0,0,0,0,0]),32],benchmarking:[new f([8193,2,0,0,0,0,0,0]),48],amt:[new f([8193,3,0,0,0,0,0,0]),32],as112v6:[[new f([8193,4,274,0,0,0,0,0]),48],[new f([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new f([8193,16,0,0,0,0,0,0]),28],orchid2:[new f([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new f([8193,48,0,0,0,0,0,0]),28],reserved:[[new f([8193,0,0,0,0,0,0,0]),23],[new f([8193,3512,0,0,0,0,0,0]),32]]},f.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},f.prototype.kind=function(){return"ipv6"},f.prototype.match=function(S,v){let T;if(v===void 0&&(T=S,S=T[0],v=T[1]),S.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,S.parts,16,v)},f.prototype.prefixLengthFromSubnetMask=function(){let S=0,v=!1,T={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},A,O;for(let N=7;N>=0;N-=1)if(A=this.parts[N],A in T){if(O=T[A],v&&O!==0)return null;O!==16&&(v=!0),S+=O}else return null;return 128-S},f.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},f.prototype.toByteArray=function(){let S,v=[],T=this.parts;for(let A=0;A<T.length;A++)S=T[A],v.push(S>>8),v.push(S&255);return v},f.prototype.toFixedLengthString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(p(this.parts[A].toString(16),4));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let S=this.parts.slice(-2),v=S[0],T=S[1];return new _.IPv4([v>>8,v&255,T>>8,T&255])},f.prototype.toNormalizedString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(this.parts[A].toString(16));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},f.prototype.toRFC5952String=function(){let S=/((^|:)(0(:|$)){2,})/g,v=this.toNormalizedString(),T=0,A=-1,O;for(;O=S.exec(v);)O[0].length>A&&(T=O.index,A=O[0].length);return A<0?v:`${v.substring(0,T)}::${v.substring(T+A)}`},f.prototype.toString=function(){return this.toRFC5952String()},f}(),_.IPv6.broadcastAddressFromCIDR=function(f){try{let S=this.parseCIDR(f),v=S[0].toByteArray(),T=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],O=0;for(;O<16;)A.push(parseInt(v[O],10)|parseInt(T[O],10)^255),O++;return new this(A)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},_.IPv6.isIPv6=function(f){return this.parser(f)!==null},_.IPv6.isValid=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{let S=this.parser(f);return new this(S.parts,S.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(f){if(typeof f=="string"&&f.indexOf(":")===-1)return!1;try{return this.parseCIDR(f),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(f){let S,v,T,A,O;try{for(S=this.parseCIDR(f),T=S[0].toByteArray(),O=this.subnetMaskFromPrefixLength(S[1]).toByteArray(),A=[],v=0;v<16;)A.push(parseInt(T[v],10)&parseInt(O[v],10)),v++;return new this(A)}catch(N){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${N})`)}},_.IPv6.parse=function(f){let S=this.parser(f);if(S.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(S.parts,S.zoneId)},_.IPv6.parseCIDR=function(f){let S,v,T;if((v=f.match(/^(.+)\/(\d+)$/))&&(S=parseInt(v[2]),S>=0&&S<=128))return T=[this.parse(v[1]),S],Object.defineProperty(T,"toString",{value:function(){return this.join("/")}}),T;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},_.IPv6.parser=function(f){let S,v,T,A,O,N;if(T=f.match(r.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(r.native.test(f))return s(f,8);if((T=f.match(r.transitional))&&(N=T[6]||"",S=T[1],T[1].endsWith("::")||(S=S.slice(0,-1)),S=s(S+N,6),S.parts)){for(O=[parseInt(T[2]),parseInt(T[3]),parseInt(T[4]),parseInt(T[5])],v=0;v<O.length;v++)if(A=O[v],!(0<=A&&A<=255))return null;return S.parts.push(O[0]<<8|O[1]),S.parts.push(O[2]<<8|O[3]),{parts:S.parts,zoneId:S.zoneId}}return null},_.IPv6.subnetMaskFromPrefixLength=function(f){if(f=parseInt(f),f<0||f>128)throw new Error("ipaddr: invalid IPv6 prefix length");let S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v=0,T=Math.floor(f/8);for(;v<T;)S[v]=255,v++;return T<16&&(S[T]=Math.pow(2,f%8)-1<<8-f%8),new this(S)},_.fromByteArray=function(f){let S=f.length;if(S===4)return new _.IPv4(f);if(S===16)return new _.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(f){return _.IPv6.isValid(f)||_.IPv4.isValid(f)},_.isValidCIDR=function(f){return _.IPv6.isValidCIDR(f)||_.IPv4.isValidCIDR(f)},_.parse=function(f){if(_.IPv6.isValid(f))return _.IPv6.parse(f);if(_.IPv4.isValid(f))return _.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(f){try{return _.IPv6.parseCIDR(f)}catch{try{return _.IPv4.parseCIDR(f)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(f){let S=this.parse(f);return S.kind()==="ipv6"&&S.isIPv4MappedAddress()?S.toIPv4Address():S},_.subnetMatch=function(f,S,v){let T,A,O,N;v==null&&(v="unicast");for(A in S)if(Object.prototype.hasOwnProperty.call(S,A)){for(O=S[A],O[0]&&!(O[0]instanceof Array)&&(O=[O]),T=0;T<O.length;T++)if(N=O[T],f.kind()===N[0].kind()&&f.match.apply(f,N))return A}return v},typeof zi<"u"&&zi.exports?zi.exports=_:t.ipaddr=_})(VO)});var uc=h(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getPeerAttributes=qt.getStatusAttributes=qt.getMethodAttributes=void 0;var Tt=(Eo(),Y(po)),$3=BO(),K3=Dl();function W3(t){let[,e,n]=t.split("/");return{[Tt.SEMATTRS_RPC_SYSTEM]:"grpc",[Tt.SEMATTRS_RPC_SERVICE]:e,[Tt.SEMATTRS_RPC_METHOD]:n}}qt.getMethodAttributes=W3;function z3(t){return{[Tt.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":K3.Status[t]}}qt.getStatusAttributes=z3;function X3(t){let e=t.lastIndexOf(":");if(e===-1)return{[Tt.SEMATTRS_NET_PEER_NAME]:t};let n=t.slice(0,e),i=+t.slice(e+1);return Number.isNaN(i)?{[Tt.SEMATTRS_NET_PEER_NAME]:t}:$3.isValid(n)?{[Tt.SEMATTRS_NET_PEER_IP]:n,[Tt.SEMATTRS_NET_PEER_PORT]:i}:{[Tt.SEMATTRS_NET_PEER_NAME]:n,[Tt.SEMATTRS_NET_PEER_PORT]:i}}qt.getPeerAttributes=X3});var sc=h(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.metadataGetter=en.metadataSetter=void 0;en.metadataSetter={set(t,e,n){t.set(e,n)}};en.metadataGetter={get:(t,e)=>t.get(e),keys:t=>Array.from(t,([e])=>e)}});var GO=h(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.VERSION=void 0;Xi.VERSION="0.1.15"});var lc=h(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.emitSpanEvents=jt.getSpanName=jt.tracer=void 0;var J3=(M(),Y(Pe)),kO=(Eo(),Y(po)),Q3=GO();jt.tracer=J3.trace.getTracer("nice-grpc-opentelemetry",Q3.VERSION);function Z3(t){return t.slice(1)}jt.getSpanName=Z3;async function*eY(t,e,n){let i=1;for await(let a of t)e.addEvent("message",{[kO.SEMATTRS_MESSAGE_TYPE]:n,[kO.SEMATTRS_MESSAGE_ID]:i++}),yield a}jt.emitSpanEvents=eY});var fc=h(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.bindAsyncGenerator=void 0;var cc=(M(),Y(Pe));function HO(t,e){return{next:cc.context.bind(t,e.next.bind(e)),return:cc.context.bind(t,e.return.bind(e)),throw:cc.context.bind(t,e.throw.bind(e)),[Symbol.asyncIterator](){return HO(t,e[Symbol.asyncIterator]())}}}Ji.bindAsyncGenerator=HO});var YO=h(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.openTelemetryServerMiddleware=void 0;var _o=(M(),Y(Pe)),FO=(Eo(),Y(po)),tY=(sE(),Y(uE)),tn=Dl(),pc=uc(),rY=sc(),Qi=lc(),nY=fc();function oY(){return(t,e)=>Qi.tracer.startActiveSpan((0,Qi.getSpanName)(t.method.path),{kind:_o.SpanKind.SERVER},_o.propagation.extract(_o.ROOT_CONTEXT,e.metadata,rY.metadataGetter),n=>(0,nY.bindAsyncGenerator)(_o.context.active(),iY(n,t,e)))}Zi.openTelemetryServerMiddleware=oY;async function*iY(t,e,n){let i={...(0,pc.getMethodAttributes)(e.method.path),...(0,pc.getPeerAttributes)(n.peer)};t.setAttributes(i);let a=tn.Status.OK,u;try{let o;if(e.requestStream?o=(0,Qi.emitSpanEvents)(e.request,t,FO.MESSAGETYPEVALUES_RECEIVED):o=e.request,e.responseStream){yield*(0,Qi.emitSpanEvents)(e.next(o,n),t,FO.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(o,n)}catch(o){throw o instanceof tn.ServerError?(a=o.code,u=o.details):(0,tY.isAbortError)(o)?(a=tn.Status.CANCELLED,u="The operation was cancelled"):(a=tn.Status.UNKNOWN,u="Unknown server error occurred",t.recordException(o)),o}finally{let o=(0,pc.getStatusAttributes)(a);t.setAttributes(o),a!==tn.Status.OK&&t.setStatus({code:_o.SpanStatusCode.ERROR,message:`${tn.Status[a]}: ${u}`}),t.end()}}});var $O=h(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.openTelemetryClientMiddleware=void 0;var So=(M(),Y(Pe)),qO=(Eo(),Y(po)),aY=(sE(),Y(uE)),$t=Dl(),jO=uc(),uY=sc(),ea=lc(),sY=fc();function lY(){return(t,e)=>ea.tracer.startActiveSpan((0,ea.getSpanName)(t.method.path),{kind:So.SpanKind.CLIENT},n=>{let i=(0,$t.Metadata)(e.metadata);return So.propagation.inject(So.context.active(),i,uY.metadataSetter),(0,sY.bindAsyncGenerator)(So.context.active(),cY(n,t,{...e,metadata:i}))})}ta.openTelemetryClientMiddleware=lY;async function*cY(t,e,n){let i=(0,jO.getMethodAttributes)(e.method.path);t.setAttributes(i);let a=!1,u=$t.Status.OK,o;try{let r;if(e.requestStream?r=(0,ea.emitSpanEvents)(e.request,t,qO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,ea.emitSpanEvents)(e.next(r,n),t,qO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let s=yield*e.next(r,n);return a=!0,s}}catch(r){throw a=!0,r instanceof $t.ClientError?(u=r.code,o=r.details):(0,aY.isAbortError)(r)?(u=$t.Status.CANCELLED,o="The operation was cancelled"):(u=$t.Status.UNKNOWN,o="Unknown server error occurred",t.recordException(r)),r}finally{a||(u=$t.Status.CANCELLED,o="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,jO.getStatusAttributes)(u);t.setAttributes(r),u!==$t.Status.OK&&t.setStatus({code:So.SpanStatusCode.ERROR,message:`${$t.Status[u]}: ${o}`}),t.end()}}});var KO=h(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.openTelemetryClientMiddleware=rn.openTelemetryServerMiddleware=void 0;var fY=YO();Object.defineProperty(rn,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return fY.openTelemetryServerMiddleware}});var pY=$O();Object.defineProperty(rn,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return pY.openTelemetryClientMiddleware}})});var qe=h((YZ,JO)=>{"use strict";var _c=class t extends Error{constructor(e){super(`Format functions must be synchronous taking a two arguments: (info, opts)
|
10
10
|
Found: ${e.toString().split(`
|
11
11
|
`)[0]}
|
12
|
-
`),Error.captureStackTrace(this,t)}};
|
13
|
-
`)!=-1,i=this._styles,a=i.length;a--;){var
|
14
|
-
`));return!0}
|
15
|
-
${A}`,
|
16
|
-
${A}`);let w=Math.min(O.length,o),
|
17
|
-
${G}`),S.pop(),`[${N}]`}let F=Object.keys(O),ae=F.length;if(ae===0)return"{}";if(
|
18
|
-
${A}`,j=" ");let B=Math.min(ae,o);a&&!
|
12
|
+
`),Error.captureStackTrace(this,t)}};JO.exports=t=>{if(t.length>2)throw new _c(t);function e(i={}){this.options=i}e.prototype.transform=t;function n(i){return new e(i)}return n.Format=e,n}});var tg=h((qZ,eg)=>{"use strict";var ZO={};eg.exports=ZO;var QO={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(QO).forEach(function(t){var e=QO[t],n=ZO[t]=[];n.open="\x1B["+e[0]+"m",n.close="\x1B["+e[1]+"m"})});var ng=h((jZ,rg)=>{"use strict";rg.exports=function(t,e){e=e||process.argv||[];var n=e.indexOf("--"),i=/^-{1,2}/.test(t)?"":"--",a=e.indexOf(i+t);return a!==-1&&(n===-1?!0:a<n)}});var ig=h(($Z,og)=>{"use strict";var SY=L("os"),st=ng(),De=process.env,nn=void 0;st("no-color")||st("no-colors")||st("color=false")?nn=!1:(st("color")||st("colors")||st("color=true")||st("color=always"))&&(nn=!0);"FORCE_COLOR"in De&&(nn=De.FORCE_COLOR.length===0||parseInt(De.FORCE_COLOR,10)!==0);function hY(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function TY(t){if(nn===!1)return 0;if(st("color=16m")||st("color=full")||st("color=truecolor"))return 3;if(st("color=256"))return 2;if(t&&!t.isTTY&&nn!==!0)return 0;var e=nn?1:0;if(process.platform==="win32"){var n=SY.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in De)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in De})||De.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in De)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(De.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in De){var i=parseInt((De.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(De.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(De.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(De.TERM)||"COLORTERM"in De?1:(De.TERM==="dumb",e)}function Sc(t){var e=TY(t);return hY(e)}og.exports={supportsColor:Sc,stdout:Sc(process.stdout),stderr:Sc(process.stderr)}});var ug=h((KZ,ag)=>{"use strict";ag.exports=function(e,n){var i="";e=e||"Run the trap, drop the bass",e=e.split("");var a={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return e.forEach(function(u){u=u.toLowerCase();var o=a[u]||[" "],r=Math.floor(Math.random()*o.length);typeof a[u]<"u"?i+=a[u][r]:i+=u}),i}});var lg=h((WZ,sg)=>{"use strict";sg.exports=function(e,n){e=e||" he is here ";var i={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},a=[].concat(i.up,i.down,i.mid);function u(s){var l=Math.floor(Math.random()*s);return l}function o(s){var l=!1;return a.filter(function(c){l=c===s}),l}function r(s,l){var c="",p,_;l=l||{},l.up=typeof l.up<"u"?l.up:!0,l.mid=typeof l.mid<"u"?l.mid:!0,l.down=typeof l.down<"u"?l.down:!0,l.size=typeof l.size<"u"?l.size:"maxi",s=s.split("");for(_ in s)if(!o(_)){switch(c=c+s[_],p={up:0,down:0,mid:0},l.size){case"mini":p.up=u(8),p.mid=u(2),p.down=u(8);break;case"maxi":p.up=u(16)+3,p.mid=u(4)+1,p.down=u(64)+3;break;default:p.up=u(8)+1,p.mid=u(6)/2,p.down=u(8)+1;break}var f=["up","mid","down"];for(var S in f)for(var v=f[S],T=0;T<=p[v];T++)l[v]&&(c=c+i[v][u(i[v].length)])}return c}return r(e,n)}});var fg=h((zZ,cg)=>{"use strict";cg.exports=function(t){return function(e,n,i){if(e===" ")return e;switch(n%3){case 0:return t.red(e);case 1:return t.white(e);case 2:return t.blue(e)}}}});var dg=h((XZ,pg)=>{"use strict";pg.exports=function(t){return function(e,n,i){return n%2===0?e:t.inverse(e)}}});var _g=h((JZ,Eg)=>{"use strict";Eg.exports=function(t){var e=["red","yellow","green","blue","magenta"];return function(n,i,a){return n===" "?n:t[e[i++%e.length]](n)}}});var hg=h((QZ,Sg)=>{"use strict";Sg.exports=function(t){var e=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(n,i,a){return n===" "?n:t[e[Math.round(Math.random()*(e.length-2))]](n)}}});var Og=h((eee,Ag)=>{"use strict";var H={};Ag.exports=H;H.themes={};var vY=L("util"),mr=H.styles=tg(),vg=Object.defineProperties,mY=new RegExp(/[\r\n]+/g);H.supportsColor=ig().supportsColor;typeof H.enabled>"u"&&(H.enabled=H.supportsColor()!==!1);H.enable=function(){H.enabled=!0};H.disable=function(){H.enabled=!1};H.stripColors=H.strip=function(t){return(""+t).replace(/\x1B\[\d+m/g,"")};var ZZ=H.stylize=function(e,n){if(!H.enabled)return e+"";var i=mr[n];return!i&&n in H?H[n](e):i.open+e+i.close},yY=/[|\\{}()[\]^$+*?.]/g,AY=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(yY,"\\$&")};function mg(t){var e=function n(){return gY.apply(n,arguments)};return e._styles=t,e.__proto__=OY,e}var yg=function(){var t={};return mr.grey=mr.gray,Object.keys(mr).forEach(function(e){mr[e].closeRe=new RegExp(AY(mr[e].close),"g"),t[e]={get:function(){return mg(this._styles.concat(e))}}}),t}(),OY=vg(function(){},yg);function gY(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:vY.inspect(o)}).join(" ");if(!H.enabled||!e)return e;for(var n=e.indexOf(`
|
13
|
+
`)!=-1,i=this._styles,a=i.length;a--;){var u=mr[i[a]];e=u.open+e.replace(u.closeRe,u.open)+u.close,n&&(e=e.replace(mY,function(o){return u.close+o+u.open}))}return e}H.setTheme=function(t){if(typeof t=="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var e in t)(function(n){H[n]=function(i){if(typeof t[n]=="object"){var a=i;for(var u in t[n])a=H[t[n][u]](a);return a}return H[t[n]](i)}})(e)};function NY(){var t={};return Object.keys(yg).forEach(function(e){t[e]={get:function(){return mg([e])}}}),t}var RY=function(e,n){var i=n.split("");return i=i.map(e),i.join("")};H.trap=ug();H.zalgo=lg();H.maps={};H.maps.america=fg()(H);H.maps.zebra=dg()(H);H.maps.rainbow=_g()(H);H.maps.random=hg()(H);for(Tg in H.maps)(function(t){H[t]=function(e){return RY(H.maps[t],e)}})(Tg);var Tg;vg(H,NY())});var hc=h((tee,gg)=>{"use strict";var PY=Og();gg.exports=PY});var Ng=h(Tc=>{"use strict";Tc.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};Tc.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var Rg=h(vc=>{"use strict";vc.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};vc.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var Pg=h(mc=>{"use strict";mc.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};mc.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var bg=h(oa=>{"use strict";Object.defineProperty(oa,"cli",{value:Ng()});Object.defineProperty(oa,"npm",{value:Rg()});Object.defineProperty(oa,"syslog",{value:Pg()})});var pe=h(ho=>{"use strict";Object.defineProperty(ho,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(ho,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(ho,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(ho,"configs",{value:bg()})});var ua=h((uee,aa)=>{"use strict";var Oc=hc(),{LEVEL:yc,MESSAGE:Ac}=pe();Oc.enabled=!0;var xg=/\s+/,ia=class t{constructor(e={}){e.colors&&this.addColors(e.colors),this.options=e}static addColors(e){let n=Object.keys(e).reduce((i,a)=>(i[a]=xg.test(e[a])?e[a].split(xg):e[a],i),{});return t.allColors=Object.assign({},t.allColors||{},n),t.allColors}addColors(e){return t.addColors(e)}colorize(e,n,i){if(typeof i>"u"&&(i=n),!Array.isArray(t.allColors[e]))return Oc[t.allColors[e]](i);for(let a=0,u=t.allColors[e].length;a<u;a++)i=Oc[t.allColors[e][a]](i);return i}transform(e,n){return n.all&&typeof e[Ac]=="string"&&(e[Ac]=this.colorize(e[yc],e.level,e[Ac])),(n.level||n.all||!n.message)&&(e.level=this.colorize(e[yc],e.level)),(n.all||n.message)&&(e.message=this.colorize(e[yc],e.level,e.message)),e}};aa.exports=t=>new ia(t);aa.exports.Colorizer=aa.exports.Format=ia});var Lg=h((see,Mg)=>{"use strict";var{Colorizer:bY}=ua();Mg.exports=t=>(bY.addColors(t.colors||t),t)});var Cg=h((lee,Ig)=>{"use strict";var xY=qe();Ig.exports=xY(t=>(t.message=` ${t.message}`,t))});var Ug=h((cee,Dg)=>{"use strict";var MY=qe(),{LEVEL:wg,MESSAGE:gc}=pe();Dg.exports=MY((t,{stack:e,cause:n})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[wg]:t[wg]||t.level,message:t.message,[gc]:t[gc]||t.message});return e&&(a.stack=t.stack),n&&(a.cause=t.cause),a}if(!(t.message instanceof Error))return t;let i=t.message;return Object.assign(t,i),t.message=i.message,t[gc]=i.message,e&&(t.stack=i.stack),n&&(t.cause=i.cause),t})});var Rc=h((fee,la)=>{"use strict";var{configs:LY,LEVEL:Vg,MESSAGE:Nc}=pe(),sa=class t{constructor(e={levels:LY.npm.levels}){this.paddings=t.paddingForLevels(e.levels,e.filler),this.options=e}static getLongestLevel(e){let n=Object.keys(e).map(i=>i.length);return Math.max(...n)}static paddingForLevel(e,n,i){let a=i+1-e.length,u=Math.floor(a/n.length);return`${n}${n.repeat(u)}`.slice(0,a)}static paddingForLevels(e,n=" "){let i=t.getLongestLevel(e);return Object.keys(e).reduce((a,u)=>(a[u]=t.paddingForLevel(u,n,i),a),{})}transform(e,n){return e.message=`${this.paddings[e[Vg]]}${e.message}`,e[Nc]&&(e[Nc]=`${this.paddings[e[Vg]]}${e[Nc]}`),e}};la.exports=t=>new sa(t);la.exports.Padder=la.exports.Format=sa});var Bg=h((pee,Pc)=>{"use strict";var{Colorizer:IY}=ua(),{Padder:CY}=Rc(),{configs:wY,MESSAGE:DY}=pe(),ca=class{constructor(e={}){e.levels||(e.levels=wY.cli.levels),this.colorizer=new IY(e),this.padder=new CY(e),this.options=e}transform(e,n){return this.colorizer.transform(this.padder.transform(e,n),n),e[DY]=`${e.level}:${e.message}`,e}};Pc.exports=t=>new ca(t);Pc.exports.Format=ca});var kg=h((dee,bc)=>{"use strict";var UY=qe();function Gg(t){if(t.every(VY))return e=>{let n=e;for(let i=0;i<t.length;i++)if(n=t[i].transform(n,t[i].options),!n)return!1;return n}}function VY(t){if(typeof t.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
|
14
|
+
`));return!0}bc.exports=(...t)=>{let e=UY(Gg(t)),n=e();return n.Format=e.Format,n};bc.exports.cascade=Gg});var To=h((Ic,qg)=>{"use strict";var{hasOwnProperty:fa}=Object.prototype,Ar=Lc();Ar.configure=Lc;Ar.stringify=Ar;Ar.default=Ar;Ic.stringify=Ar;Ic.configure=Lc;qg.exports=Ar;var BY=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Kt(t){return t.length<5e3&&!BY.test(t)?`"${t}"`:JSON.stringify(t)}function xc(t){if(t.length>200)return t.sort();for(let e=1;e<t.length;e++){let n=t[e],i=e;for(;i!==0&&t[i-1]>n;)t[i]=t[i-1],i--;t[i]=n}return t}var GY=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Mc(t){return GY.call(t)!==void 0&&t.length!==0}function Hg(t,e,n){t.length<n&&(n=t.length);let i=e===","?"":" ",a=`"0":${i}${t[0]}`;for(let u=1;u<n;u++)a+=`${e}"${u}":${i}${t[u]}`;return a}function kY(t){if(fa.call(t,"circularValue")){let e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Fg(t,e){let n;if(fa.call(t,e)&&(n=t[e],typeof n!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return n===void 0?!0:n}function Yg(t,e){let n;if(fa.call(t,e)){if(n=t[e],typeof n!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(n))throw new TypeError(`The "${e}" argument must be an integer`);if(n<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return n===void 0?1/0:n}function yr(t){return t===1?"1 item":`${t} items`}function HY(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function FY(t){if(fa.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return n=>{let i=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(i+=` (${n.toString()})`),new Error(i)}}}function Lc(t){t={...t};let e=FY(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=kY(t),i=Fg(t,"bigint"),a=Fg(t,"deterministic"),u=Yg(t,"maximumDepth"),o=Yg(t,"maximumBreadth");function r(_,f,S,v,T,A){let O=f[_];switch(typeof O=="object"&&O!==null&&typeof O.toJSON=="function"&&(O=O.toJSON(_)),O=v.call(f,_,O),typeof O){case"string":return Kt(O);case"object":{if(O===null)return"null";if(S.indexOf(O)!==-1)return n;let N="",U=",",G=A;if(Array.isArray(O)){if(O.length===0)return"[]";if(u<S.length+1)return'"[Array]"';S.push(O),T!==""&&(A+=T,N+=`
|
15
|
+
${A}`,U=`,
|
16
|
+
${A}`);let w=Math.min(O.length,o),z=0;for(;z<w-1;z++){let ne=r(String(z),O,S,v,T,A);N+=ne!==void 0?ne:"null",N+=U}let X=r(String(z),O,S,v,T,A);if(N+=X!==void 0?X:"null",O.length-1>o){let ne=O.length-o-1;N+=`${U}"... ${yr(ne)} not stringified"`}return T!==""&&(N+=`
|
17
|
+
${G}`),S.pop(),`[${N}]`}let F=Object.keys(O),ae=F.length;if(ae===0)return"{}";if(u<S.length+1)return'"[Object]"';let j="",x="";T!==""&&(A+=T,U=`,
|
18
|
+
${A}`,j=" ");let B=Math.min(ae,o);a&&!Mc(O)&&(F=xc(F)),S.push(O);for(let w=0;w<B;w++){let z=F[w],X=r(z,O,S,v,T,A);X!==void 0&&(N+=`${x}${Kt(z)}:${j}${X}`,x=U)}if(ae>o){let w=ae-o;N+=`${x}"...":${j}"${yr(w)} not stringified"`,x=U}return T!==""&&x.length>1&&(N=`
|
19
19
|
${A}${N}
|
20
|
-
${G}`),S.pop(),`{${N}}`}case"number":return isFinite(O)?String(O):e?e(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(O);default:return e?e(O):void 0}}function
|
21
|
-
${A}`,
|
22
|
-
${A}`);let ae=Math.min(f.length,o),j=0;for(;j<ae-1;j++){let B=
|
23
|
-
${O}`),S.pop(),`[${N}]`}S.push(f);let G="";T!==""&&(A+=T,
|
24
|
-
${A}`,G=" ");let F="";for(let ae of v){let j=
|
20
|
+
${G}`),S.pop(),`{${N}}`}case"number":return isFinite(O)?String(O):e?e(O):"null";case"boolean":return O===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(O);default:return e?e(O):void 0}}function s(_,f,S,v,T,A){switch(typeof f=="object"&&f!==null&&typeof f.toJSON=="function"&&(f=f.toJSON(_)),typeof f){case"string":return Kt(f);case"object":{if(f===null)return"null";if(S.indexOf(f)!==-1)return n;let O=A,N="",U=",";if(Array.isArray(f)){if(f.length===0)return"[]";if(u<S.length+1)return'"[Array]"';S.push(f),T!==""&&(A+=T,N+=`
|
21
|
+
${A}`,U=`,
|
22
|
+
${A}`);let ae=Math.min(f.length,o),j=0;for(;j<ae-1;j++){let B=s(String(j),f[j],S,v,T,A);N+=B!==void 0?B:"null",N+=U}let x=s(String(j),f[j],S,v,T,A);if(N+=x!==void 0?x:"null",f.length-1>o){let B=f.length-o-1;N+=`${U}"... ${yr(B)} not stringified"`}return T!==""&&(N+=`
|
23
|
+
${O}`),S.pop(),`[${N}]`}S.push(f);let G="";T!==""&&(A+=T,U=`,
|
24
|
+
${A}`,G=" ");let F="";for(let ae of v){let j=s(ae,f[ae],S,v,T,A);j!==void 0&&(N+=`${F}${Kt(ae)}:${G}${j}`,F=U)}return T!==""&&F.length>1&&(N=`
|
25
25
|
${A}${N}
|
26
|
-
${O}`),S.pop(),`{${N}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function l(_,f,S,v,T){switch(typeof f){case"string":return
|
27
|
-
${T}`,
|
28
|
-
${T}`,B=Math.min(f.length,o),w=0;for(;w<B-1;w++){let
|
29
|
-
${A}`,S.pop(),`[${j}]`}let O=Object.keys(f),N=O.length;if(N===0)return"{}";if(
|
30
|
-
${T}`,G="",F="",ae=Math.min(N,o);
|
26
|
+
${O}`),S.pop(),`{${N}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function l(_,f,S,v,T){switch(typeof f){case"string":return Kt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return l(_,f,S,v,T);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let A=T;if(Array.isArray(f)){if(f.length===0)return"[]";if(u<S.length+1)return'"[Array]"';S.push(f),T+=v;let j=`
|
27
|
+
${T}`,x=`,
|
28
|
+
${T}`,B=Math.min(f.length,o),w=0;for(;w<B-1;w++){let X=l(String(w),f[w],S,v,T);j+=X!==void 0?X:"null",j+=x}let z=l(String(w),f[w],S,v,T);if(j+=z!==void 0?z:"null",f.length-1>o){let X=f.length-o-1;j+=`${x}"... ${yr(X)} not stringified"`}return j+=`
|
29
|
+
${A}`,S.pop(),`[${j}]`}let O=Object.keys(f),N=O.length;if(N===0)return"{}";if(u<S.length+1)return'"[Object]"';T+=v;let U=`,
|
30
|
+
${T}`,G="",F="",ae=Math.min(N,o);Mc(f)&&(G+=Hg(f,U,o),O=O.slice(f.length),ae-=f.length,F=U),a&&(O=xc(O)),S.push(f);for(let j=0;j<ae;j++){let x=O[j],B=l(x,f[x],S,v,T);B!==void 0&&(G+=`${F}${Kt(x)}: ${B}`,F=U)}if(N>o){let j=N-o;G+=`${F}"...": "${yr(j)} not stringified"`,F=U}return F!==""&&(G=`
|
31
31
|
${T}${G}
|
32
|
-
${A}`),S.pop(),`{${G}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function c(_,f,S){switch(typeof f){case"string":return Wt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return c(_,f,S);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let v="";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f);let D=Math.min(f.length,o),G=0;for(;G<D-1;G++){let ae=c(String(G),f[G],S);v+=ae!==void 0?ae:"null",v+=","}let F=c(String(G),f[G],S);if(v+=F!==void 0?F:"null",f.length-1>o){let ae=f.length-o-1;v+=`,"... ${Or(ae)} not stringified"`}return S.pop(),`[${v}]`}let T=Object.keys(f),A=T.length;if(A===0)return"{}";if(s<S.length+1)return'"[Object]"';let O="",N=Math.min(A,o);Nc(f)&&(v+=$g(f,",",o),T=T.slice(f.length),N-=f.length,O=","),a&&(T=gc(T)),S.push(f);for(let D=0;D<N;D++){let G=T[D],F=c(G,f[G],S);F!==void 0&&(v+=`${O}${Wt(G)}:${F}`,O=",")}if(A>o){let D=A-o;v+=`${O}"...":"${Or(D)} not stringified"`}return S.pop(),`{${v}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function p(_,f,S){if(arguments.length>1){let v="";if(typeof S=="number"?v=" ".repeat(Math.min(S,10)):typeof S=="string"&&(v=S.slice(0,10)),f!=null){if(typeof f=="function")return r("",{"":_},[],f,v,"");if(Array.isArray(f))return u("",_,[],kY(f),v,"")}if(v.length!==0)return l("",_,[],v,"")}return c("",_,[])}return p}});var bc=h((iee,Xg)=>{"use strict";var FY=qe(),{MESSAGE:YY}=pe(),qY=To();function jY(t,e){return typeof e=="bigint"?e.toString():e}Xg.exports=FY((t,e)=>{let n=qY.configure(e);return t[YY]=n(t,e.replacer||jY,e.space),t})});var Qg=h((aee,Jg)=>{"use strict";var $Y=qe();Jg.exports=$Y((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var eN=h((see,Zg)=>{"use strict";var KY=qe(),{MESSAGE:WY}=pe(),zY=To();Zg.exports=KY(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[WY]=zY(e),t})});var rN=h((uee,tN)=>{"use strict";var XY=qe();function JY(t,e,n){let i=e.reduce((s,o)=>(s[o]=t[o],delete t[o],s),{}),a=Object.keys(t).reduce((s,o)=>(s[o]=t[o],delete t[o],s),{});return Object.assign(t,i,{[n]:a}),t}function QY(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}tN.exports=XY((t,e={})=>{let n="metadata";e.key&&(n=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?JY(t,i,n):e.fillWith?QY(t,e.fillWith,n):t})});var oN=h((lee,nN)=>{"use strict";var on=1e3,an=on*60,sn=an*60,Nr=sn*24,ZY=Nr*7,eq=Nr*365.25;nN.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return tq(t);if(n==="number"&&isFinite(t))return e.long?nq(t):rq(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function tq(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*eq;case"weeks":case"week":case"w":return n*ZY;case"days":case"day":case"d":return n*Nr;case"hours":case"hour":case"hrs":case"hr":case"h":return n*sn;case"minutes":case"minute":case"mins":case"min":case"m":return n*an;case"seconds":case"second":case"secs":case"sec":case"s":return n*on;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function rq(t){var e=Math.abs(t);return e>=Nr?Math.round(t/Nr)+"d":e>=sn?Math.round(t/sn)+"h":e>=an?Math.round(t/an)+"m":e>=on?Math.round(t/on)+"s":t+"ms"}function nq(t){var e=Math.abs(t);return e>=Nr?pa(t,e,Nr,"day"):e>=sn?pa(t,e,sn,"hour"):e>=an?pa(t,e,an,"minute"):e>=on?pa(t,e,on,"second"):t+" ms"}function pa(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var aN=h((vo,iN)=>{"use strict";var oq=qe(),iq=oN();iN.exports=oq(t=>{let e=+new Date;return vo.diff=e-(vo.prevTime||e),vo.prevTime=e,t.ms=`+${iq(vo.diff)}`,t})});var lN=h((cee,uN)=>{"use strict";var aq=L("util").inspect,sq=qe(),{LEVEL:uq,MESSAGE:sN,SPLAT:lq}=pe();uN.exports=sq((t,e={})=>{let n=Object.assign({},t);return delete n[uq],delete n[sN],delete n[lq],t[sN]=aq(n,!1,e.depth||null,e.colorize),t})});var cN=h((fee,Ea)=>{"use strict";var{MESSAGE:cq}=pe(),da=class{constructor(e){this.template=e}transform(e){return e[cq]=this.template(e),e}};Ea.exports=t=>new da(t);Ea.exports.Printf=Ea.exports.Format=da});var dN=h((pee,pN)=>{"use strict";var fq=qe(),{MESSAGE:fN}=pe(),pq=To();pN.exports=fq(t=>{let e=pq(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[fN]=`${t.level}:${n} ${t.message} ${e}`:t[fN]=`${t.level}:${n} ${t.message}`,t})});var SN=h((dee,_N)=>{"use strict";var dq=L("util"),{SPLAT:EN}=pe(),Eq=/%[scdjifoO%]/g,_q=/%%/g,xc=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[EN]||e.splat||[],s=i.match(_q),o=s&&s.length||0,u=n.length-o-a.length,l=u<0?a.splice(u,-1*u):[],c=l.length;if(c)for(let p=0;p<c;p++)Object.assign(e,l[p]);return e.message=dq.format(i,...a),e}transform(e){let n=e.message,i=e[EN]||e.splat;if(!i||!i.length)return e;let a=n&&n.match&&n.match(Eq);if(!a&&(i||i.length)){let s=i.length>1?i.splice(0):i,o=s.length;if(o)for(let r=0;r<o;r++)Object.assign(e,s[r]);return e}return a?this._splat(e,a):e}};_N.exports=t=>new xc(t)});var CN={};nt(CN,{assign:()=>Jt,default:()=>Oq,defaultI18n:()=>Mc,format:()=>LN,parse:()=>IN,setGlobalDateI18n:()=>xN,setGlobalDateMasks:()=>MN});function RN(t,e){for(var n=[],i=0,a=t.length;i<a;i++)n.push(t[i].substr(0,e));return n}function Jt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,a=e;i<a.length;i++){var s=a[i];for(var o in s)t[o]=s[o]}return t}function IN(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=Sa[e]||e,t.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],o=[],r=e.replace(NN,function(D,G){return o.push(TN(G)),"@@@"}),u={},l={};r=TN(r).replace(gN,function(D){var G=yq[D],F=G[0],ae=G[1],j=G[3];if(u[F])throw new Error("Invalid format. "+F+" specified twice in format");return u[F]=!0,j&&(l[j]=!0),s.push(G),"("+ae+")"}),Object.keys(l).forEach(function(D){if(!u[D])throw new Error("Invalid format. "+D+" is required in specified format")}),r=r.replace(/@@@/g,function(){return o.shift()});var c=t.match(new RegExp(r,"i"));if(!c)return null;for(var p=Jt(Jt({},_a),n),_=1;_<c.length;_++){var f=s[_-1],S=f[0],v=f[2],T=v?v(c[_],p):+c[_];if(T==null)return null;a[S]=T}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var A;if(a.timezoneOffset==null){A=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],_=0,N=O.length;_<N;_++)if(u[O[_][0]]&&a[O[_][0]]!==A[O[_][1]]())return null}else if(A=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return A}var gN,Xt,zt,Sq,hq,mo,NN,hN,PN,bN,Tq,vq,Mc,_a,xN,TN,je,mq,vN,mN,yN,AN,ON,yq,Sa,MN,LN,Aq,Oq,wN=m(()=>{"use strict";gN=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Xt="\\d\\d?",zt="\\d\\d",Sq="\\d{3}",hq="\\d{4}",mo="[^\\s]+",NN=/\[([^]*?)\]/gm;hN=function(t){return function(e,n){var i=n[t].map(function(s){return s.toLowerCase()}),a=i.indexOf(e.toLowerCase());return a>-1?a:null}};PN=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],bN=["January","February","March","April","May","June","July","August","September","October","November","December"],Tq=RN(bN,3),vq=RN(PN,3),Mc={dayNamesShort:vq,dayNames:PN,monthNamesShort:Tq,monthNames:bN,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},_a=Jt({},Mc),xN=function(t){return _a=Jt(_a,t)},TN=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},je=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},mq={D:function(t){return String(t.getDate())},DD:function(t){return je(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return je(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return je(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return je(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return je(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return je(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return je(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return je(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return je(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return je(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return je(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+je(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+je(Math.floor(Math.abs(e)/60),2)+":"+je(Math.abs(e)%60,2)}},vN=function(t){return+t-1},mN=[null,Xt],yN=[null,mo],AN=["isPm",mo,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],ON=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],yq={D:["day",Xt],DD:["day",zt],Do:["day",Xt+mo,function(t){return parseInt(t,10)}],M:["month",Xt,vN],MM:["month",zt,vN],YY:["year",zt,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",Xt,void 0,"isPm"],hh:["hour",zt,void 0,"isPm"],H:["hour",Xt],HH:["hour",zt],m:["minute",Xt],mm:["minute",zt],s:["second",Xt],ss:["second",zt],YYYY:["year",hq],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",zt,function(t){return+t*10}],SSS:["millisecond",Sq],d:mN,dd:mN,ddd:yN,dddd:yN,MMM:["month",mo,hN("monthNamesShort")],MMMM:["month",mo,hN("monthNames")],a:AN,A:AN,ZZ:ON,Z:ON},Sa={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},MN=function(t){return Jt(Sa,t)},LN=function(t,e,n){if(e===void 0&&(e=Sa.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=Sa[e]||e;var i=[];e=e.replace(NN,function(s,o){return i.push(o),"@@@"});var a=Jt(Jt({},_a),n);return e=e.replace(gN,function(s){return mq[s](t,a)}),e.replace(/@@@/g,function(){return i.shift()})};Aq={format:LN,parse:IN,defaultI18n:Mc,setGlobalDateI18n:xN,setGlobalDateMasks:MN},Oq=Aq});var DN=h((Eee,UN)=>{"use strict";var gq=(wN(),Y(CN)),Nq=qe();UN.exports=Nq((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():gq.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var BN=h((_ee,VN)=>{"use strict";var Lc=pc(),Rq=qe(),{MESSAGE:Ic}=pe();VN.exports=Rq((t,e)=>(e.level!==!1&&(t.level=Lc.strip(t.level)),e.message!==!1&&(t.message=Lc.strip(String(t.message))),e.raw!==!1&&t[Ic]&&(t[Ic]=Lc.strip(String(t[Ic]))),t))});var wc=h(Cc=>{"use strict";var Pq=Cc.format=qe();Cc.levels=Dg();function ye(t,e){Object.defineProperty(Pq,t,{get(){return e()},configurable:!0})}ye("align",function(){return Bg()});ye("errors",function(){return Hg()});ye("cli",function(){return Yg()});ye("combine",function(){return jg()});ye("colorize",function(){return sa()});ye("json",function(){return bc()});ye("label",function(){return Qg()});ye("logstash",function(){return eN()});ye("metadata",function(){return rN()});ye("ms",function(){return aN()});ye("padLevels",function(){return yc()});ye("prettyPrint",function(){return lN()});ye("printf",function(){return cN()});ye("simple",function(){return dN()});ye("splat",function(){return SN()});ye("timestamp",function(){return DN()});ye("uncolorize",function(){return BN()})});var Uc=h(ha=>{"use strict";var{format:GN}=L("util");ha.warn={deprecated(t){return()=>{throw new Error(GN("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([GN("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
33
|
-
`))}},forFunctions(t,e,n){n.forEach(i=>{t[i]=ha.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=ha.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var kN=h((Tee,bq)=>{bq.exports={name:"winston",description:"A logger for just about everything.",version:"3.13.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var FN=h((vee,HN)=>{"use strict";HN.exports=L("util").deprecate});var Dc=h((mee,YN)=>{"use strict";YN.exports=L("stream")});var Bc=h((yee,jN)=>{"use strict";function xq(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Vc,this,t)):process.nextTick(Vc,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?n._writableState?n._writableState.errorEmitted?process.nextTick(Ta,n):(n._writableState.errorEmitted=!0,process.nextTick(qN,n,s)):process.nextTick(qN,n,s):e?(process.nextTick(Ta,n),e(s)):process.nextTick(Ta,n)}),this)}function qN(t,e){Vc(t,e),Ta(t)}function Ta(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Mq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Vc(t,e){t.emit("error",e)}function Lq(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}jN.exports={destroy:xq,undestroy:Mq,errorOrDestroy:Lq}});var Qt=h((Aee,WN)=>{"use strict";var KN={};function Je(t,e,n){n||(n=Error);function i(s,o,r){return typeof e=="string"?e:e(s,o,r)}class a extends n{constructor(o,r,u){super(i(o,r,u))}}a.prototype.name=n.name,a.prototype.code=t,KN[t]=a}function $N(t,e){if(Array.isArray(t)){let n=t.length;return t=t.map(i=>String(i)),n>2?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:n===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Iq(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function Cq(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function wq(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Je("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Je("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&Iq(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(Cq(t," argument"))a=`The ${t} ${i} ${$N(e,"type")}`;else{let s=wq(t,".")?"property":"argument";a=`The "${t}" ${s} ${i} ${$N(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);Je("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Je("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Je("ERR_STREAM_PREMATURE_CLOSE","Premature close");Je("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Je("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Je("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Je("ERR_STREAM_WRITE_AFTER_END","write after end");Je("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Je("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Je("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");WN.exports.codes=KN});var Gc=h((Oee,zN)=>{"use strict";var Uq=Qt().codes.ERR_INVALID_OPT_VALUE;function Dq(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function Vq(t,e,n,i){var a=Dq(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?n:"highWaterMark";throw new Uq(s,a)}return Math.floor(a)}return t.objectMode?16:16*1024}zN.exports={getHighWaterMark:Vq}});var XN=h((gee,kc)=>{"use strict";typeof Object.create=="function"?kc.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:kc.exports=function(e,n){if(n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}}});var un=h((Nee,Fc)=>{"use strict";try{if(Hc=L("util"),typeof Hc.inherits!="function")throw"";Fc.exports=Hc.inherits}catch{Fc.exports=XN()}var Hc});var rR=h((Ree,tR)=>{"use strict";function JN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function QN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?JN(Object(n),!0).forEach(function(i){Bq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Bq(t,e,n){return e=eR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ZN(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,eR(i.key),i)}}function kq(t,e,n){return e&&ZN(t.prototype,e),n&&ZN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function eR(t){var e=Hq(t,"string");return typeof e=="symbol"?e:String(e)}function Hq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fq=L("buffer"),va=Fq.Buffer,Yq=L("util"),Yc=Yq.inspect,qq=Yc&&Yc.custom||"inspect";function jq(t,e,n){va.prototype.copy.call(t,e,n)}tR.exports=function(){function t(){Gq(this,t),this.head=null,this.tail=null,this.length=0}return kq(t,[{key:"push",value:function(n){var i={data:n,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a}},{key:"concat",value:function(n){if(this.length===0)return va.alloc(0);for(var i=va.allocUnsafe(n>>>0),a=this.head,s=0;a;)jq(a.data,i,s),s+=a.data.length,a=a.next;return i}},{key:"consume",value:function(n,i){var a;return n<this.head.data.length?(a=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?a=this.shift():a=i?this._getString(n):this._getBuffer(n),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var i=this.head,a=1,s=i.data;for(n-=s.length;i=i.next;){var o=i.data,r=n>o.length?o.length:n;if(r===o.length?s+=o:s+=o.slice(0,n),n-=r,n===0){r===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(r));break}++a}return this.length-=a,s}},{key:"_getBuffer",value:function(n){var i=va.allocUnsafe(n),a=this.head,s=1;for(a.data.copy(i),n-=a.data.length;a=a.next;){var o=a.data,r=n>o.length?o.length:n;if(o.copy(i,i.length-n,0,r),n-=r,n===0){r===o.length?(++s,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(r));break}++s}return this.length-=s,i}},{key:qq,value:function(n,i){return Yc(this,QN(QN({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var iR=h((qc,oR)=>{"use strict";var ma=L("buffer"),ht=ma.Buffer;function nR(t,e){for(var n in t)e[n]=t[n]}ht.from&&ht.alloc&&ht.allocUnsafe&&ht.allocUnsafeSlow?oR.exports=ma:(nR(ma,qc),qc.Buffer=Rr);function Rr(t,e,n){return ht(t,e,n)}Rr.prototype=Object.create(ht.prototype);nR(ht,Rr);Rr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return ht(t,e,n)};Rr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=ht(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};Rr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ht(t)};Rr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ma.SlowBuffer(t)}});var Kc=h(sR=>{"use strict";var $c=iR().Buffer,aR=$c.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function $q(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Kq(t){var e=$q(t);if(typeof e!="string"&&($c.isEncoding===aR||!aR(t)))throw new Error("Unknown encoding: "+t);return e||t}sR.StringDecoder=yo;function yo(t){this.encoding=Kq(t);var e;switch(this.encoding){case"utf16le":this.text=Zq,this.end=e5,e=4;break;case"utf8":this.fillLast=Xq,e=4;break;case"base64":this.text=t5,this.end=r5,e=3;break;default:this.write=n5,this.end=o5;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$c.allocUnsafe(e)}yo.prototype.write=function(t){if(t.length===0)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""};yo.prototype.end=Qq;yo.prototype.text=Jq;yo.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function jc(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Wq(t,e,n){var i=e.length-1;if(i<n)return 0;var a=jc(e[i]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--i<n||a===-2?0:(a=jc(e[i]),a>=0?(a>0&&(t.lastNeed=a-2),a):--i<n||a===-2?0:(a=jc(e[i]),a>=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function zq(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Xq(t){var e=this.lastTotal-this.lastNeed,n=zq(this,t,e);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Jq(t,e){var n=Wq(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function Qq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function Zq(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function e5(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function t5(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function r5(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function n5(t){return t.toString(this.encoding)}function o5(t){return t&&t.length?this.write(t):""}});var ya=h((bee,cR)=>{"use strict";var uR=Qt().codes.ERR_STREAM_PREMATURE_CLOSE;function i5(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t.apply(this,i)}}}function a5(){}function s5(t){return t.setHeader&&typeof t.abort=="function"}function lR(t,e,n){if(typeof e=="function")return lR(t,null,e);e||(e={}),n=i5(n||a5);var i=e.readable||e.readable!==!1&&t.readable,a=e.writable||e.writable!==!1&&t.writable,s=function(){t.writable||r()},o=t._writableState&&t._writableState.finished,r=function(){a=!1,o=!0,i||n.call(t)},u=t._readableState&&t._readableState.endEmitted,l=function(){i=!1,u=!0,a||n.call(t)},c=function(S){n.call(t,S)},p=function(){var S;if(i&&!u)return(!t._readableState||!t._readableState.ended)&&(S=new uR),n.call(t,S);if(a&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new uR),n.call(t,S)},_=function(){t.req.on("finish",r)};return s5(t)?(t.on("complete",r),t.on("abort",p),t.req?_():t.on("request",_)):a&&!t._writableState&&(t.on("end",s),t.on("close",s)),t.on("end",l),t.on("finish",r),e.error!==!1&&t.on("error",c),t.on("close",p),function(){t.removeListener("complete",r),t.removeListener("abort",p),t.removeListener("request",_),t.req&&t.req.removeListener("finish",r),t.removeListener("end",s),t.removeListener("close",s),t.removeListener("finish",r),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",p)}}cR.exports=lR});var pR=h((xee,fR)=>{"use strict";var Aa;function Zt(t,e,n){return e=u5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u5(t){var e=l5(t,"string");return typeof e=="symbol"?e:String(e)}function l5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var c5=ya(),er=Symbol("lastResolve"),Pr=Symbol("lastReject"),Ao=Symbol("error"),Oa=Symbol("ended"),br=Symbol("lastPromise"),Wc=Symbol("handlePromise"),xr=Symbol("stream");function tr(t,e){return{value:t,done:e}}function f5(t){var e=t[er];if(e!==null){var n=t[xr].read();n!==null&&(t[br]=null,t[er]=null,t[Pr]=null,e(tr(n,!1)))}}function p5(t){process.nextTick(f5,t)}function d5(t,e){return function(n,i){t.then(function(){if(e[Oa]){n(tr(void 0,!0));return}e[Wc](n,i)},i)}}var E5=Object.getPrototypeOf(function(){}),_5=Object.setPrototypeOf((Aa={get stream(){return this[xr]},next:function(){var e=this,n=this[Ao];if(n!==null)return Promise.reject(n);if(this[Oa])return Promise.resolve(tr(void 0,!0));if(this[xr].destroyed)return new Promise(function(o,r){process.nextTick(function(){e[Ao]?r(e[Ao]):o(tr(void 0,!0))})});var i=this[br],a;if(i)a=new Promise(d5(i,this));else{var s=this[xr].read();if(s!==null)return Promise.resolve(tr(s,!1));a=new Promise(this[Wc])}return this[br]=a,a}},Zt(Aa,Symbol.asyncIterator,function(){return this}),Zt(Aa,"return",function(){var e=this;return new Promise(function(n,i){e[xr].destroy(null,function(a){if(a){i(a);return}n(tr(void 0,!0))})})}),Aa),E5),S5=function(e){var n,i=Object.create(_5,(n={},Zt(n,xr,{value:e,writable:!0}),Zt(n,er,{value:null,writable:!0}),Zt(n,Pr,{value:null,writable:!0}),Zt(n,Ao,{value:null,writable:!0}),Zt(n,Oa,{value:e._readableState.endEmitted,writable:!0}),Zt(n,Wc,{value:function(s,o){var r=i[xr].read();r?(i[br]=null,i[er]=null,i[Pr]=null,s(tr(r,!1))):(i[er]=s,i[Pr]=o)},writable:!0}),n));return i[br]=null,c5(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[Pr];s!==null&&(i[br]=null,i[er]=null,i[Pr]=null,s(a)),i[Ao]=a;return}var o=i[er];o!==null&&(i[br]=null,i[er]=null,i[Pr]=null,o(tr(void 0,!0))),i[Oa]=!0}),e.on("readable",p5.bind(null,i)),i};fR.exports=S5});var SR=h((Mee,_R)=>{"use strict";function dR(t,e,n,i,a,s,o){try{var r=t[s](o),u=r.value}catch(l){n(l);return}r.done?e(u):Promise.resolve(u).then(i,a)}function h5(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var s=t.apply(e,n);function o(u){dR(s,i,a,o,r,"next",u)}function r(u){dR(s,i,a,o,r,"throw",u)}o(void 0)})}}function ER(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function T5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ER(Object(n),!0).forEach(function(i){v5(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ER(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function v5(t,e,n){return e=m5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m5(t){var e=y5(t,"string");return typeof e=="symbol"?e:String(e)}function y5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var A5=Qt().codes.ERR_INVALID_ARG_TYPE;function O5(t,e,n){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new A5("iterable",["Iterable"],e);var a=new t(T5({objectMode:!0},n)),s=!1;a._read=function(){s||(s=!0,o())};function o(){return r.apply(this,arguments)}function r(){return r=h5(function*(){try{var u=yield i.next(),l=u.value,c=u.done;c?a.push(null):a.push(yield l)?o():s=!1}catch(p){a.destroy(p)}}),r.apply(this,arguments)}return a}_R.exports=O5});var of=h((Iee,RR)=>{"use strict";RR.exports=$;var ln;$.ReadableState=mR;var Lee=L("events").EventEmitter,vR=function(e,n){return e.listeners(n).length},go=Dc(),ga=L("buffer").Buffer,g5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function N5(t){return ga.from(t)}function R5(t){return ga.isBuffer(t)||t instanceof g5}var zc=L("util"),k;zc&&zc.debuglog?k=zc.debuglog("stream"):k=function(){};var P5=rR(),rf=Bc(),b5=Gc(),x5=b5.getHighWaterMark,Na=Qt().codes,M5=Na.ERR_INVALID_ARG_TYPE,L5=Na.ERR_STREAM_PUSH_AFTER_EOF,I5=Na.ERR_METHOD_NOT_IMPLEMENTED,C5=Na.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,cn,Xc,Jc;un()($,go);var Oo=rf.errorOrDestroy,Qc=["error","close","destroy","pause","resume"];function w5(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function mR(t,e,n){ln=ln||Mr(),t=t||{},typeof n!="boolean"&&(n=e instanceof ln),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=x5(this,t,"readableHighWaterMark",n),this.buffer=new P5,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(cn||(cn=Kc().StringDecoder),this.decoder=new cn(t.encoding),this.encoding=t.encoding)}function $(t){if(ln=ln||Mr(),!(this instanceof $))return new $(t);var e=this instanceof ln;this._readableState=new mR(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),go.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});$.prototype.destroy=rf.destroy;$.prototype._undestroy=rf.undestroy;$.prototype._destroy=function(t,e){e(t)};$.prototype.push=function(t,e){var n=this._readableState,i;return n.objectMode?i=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=ga.from(t,e),e=""),i=!0),yR(this,t,e,!1,i)};$.prototype.unshift=function(t){return yR(this,t,null,!0,!1)};function yR(t,e,n,i,a){k("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,V5(t,s);else{var o;if(a||(o=U5(s,e)),o)Oo(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==ga.prototype&&(e=N5(e)),i)s.endEmitted?Oo(t,new C5):Zc(t,s,e,!0);else if(s.ended)Oo(t,new L5);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||e.length!==0?Zc(t,s,e,!1):tf(t,s)):Zc(t,s,e,!1)}else i||(s.reading=!1,tf(t,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Zc(t,e,n,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Ra(t)),tf(t,e)}function U5(t,e){var n;return!R5(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new M5("chunk",["string","Buffer","Uint8Array"],e)),n}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){cn||(cn=Kc().StringDecoder);var e=new cn(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";n!==null;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var hR=1073741824;function D5(t){return t>=hR?t=hR:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function TR(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=D5(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}$.prototype.read=function(t){k("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return k("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ef(this):Ra(this),null;if(t=TR(t,e),t===0&&e.ended)return e.length===0&&ef(this),null;var i=e.needReadable;k("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,k("length less than watermark",i)),e.ended||e.reading?(i=!1,k("reading or ended",i)):i&&(k("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=TR(n,e)));var a;return t>0?a=gR(t,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&ef(this)),a!==null&&this.emit("data",a),a};function V5(t,e){if(k("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?Ra(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,AR(t)))}}function Ra(t){var e=t._readableState;k("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(k("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(AR,t))}function AR(t){var e=t._readableState;k("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,nf(t)}function tf(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(B5,t,e))}function B5(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var n=e.length;if(k("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}$.prototype._read=function(t){Oo(this,new I5("_read()"))};$.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,k("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,s=a?r:v;i.endEmitted?process.nextTick(s):n.once("end",s),t.on("unpipe",o);function o(T,A){k("onunpipe"),T===n&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,c())}function r(){k("onend"),t.end()}var u=G5(n);t.on("drain",u);var l=!1;function c(){k("cleanup"),t.removeListener("close",f),t.removeListener("finish",S),t.removeListener("drain",u),t.removeListener("error",_),t.removeListener("unpipe",o),n.removeListener("end",r),n.removeListener("end",v),n.removeListener("data",p),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}n.on("data",p);function p(T){k("ondata");var A=t.write(T);k("dest.write",A),A===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&NR(i.pipes,t)!==-1)&&!l&&(k("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function _(T){k("onerror",T),v(),t.removeListener("error",_),vR(t,"error")===0&&Oo(t,T)}w5(t,"error",_);function f(){t.removeListener("finish",S),v()}t.once("close",f);function S(){k("onfinish"),t.removeListener("close",f),v()}t.once("finish",S);function v(){k("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(k("pipe resume"),n.resume()),t};function G5(t){return function(){var n=t._readableState;k("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&vR(t,"data")&&(n.flowing=!0,nf(t))}}$.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=NR(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};$.prototype.on=function(t,e){var n=go.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,k("on readable",i.length,i.reading),i.length?Ra(this):i.reading||process.nextTick(k5,this)),n};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var n=go.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(OR,this),n};$.prototype.removeAllListeners=function(t){var e=go.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(OR,this),e};function OR(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function k5(t){k("readable nexttick read 0"),t.read(0)}$.prototype.resume=function(){var t=this._readableState;return t.flowing||(k("resume"),t.flowing=!t.readableListening,H5(this,t)),t.paused=!1,this};function H5(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(F5,t,e))}function F5(t,e){k("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),nf(t),e.flowing&&!e.reading&&t.read(0)}$.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function nf(t){var e=t._readableState;for(k("flow",e.flowing);e.flowing&&t.read()!==null;);}$.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(k("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(k("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var r=e.push(o);r||(i=!0,t.pause())}});for(var a in t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=function(r){return function(){return t[r].apply(t,arguments)}}(a));for(var s=0;s<Qc.length;s++)t.on(Qc[s],this.emit.bind(this,Qc[s]));return this._read=function(o){k("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return Xc===void 0&&(Xc=pR()),Xc(this)});Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});$._fromList=gR;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function gR(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function ef(t){var e=t._readableState;k("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(Y5,e,t))}function Y5(t,e){if(k("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}typeof Symbol=="function"&&($.from=function(t,e){return Jc===void 0&&(Jc=SR()),Jc($,t,e)});function NR(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}});var Mr=h((Cee,bR)=>{"use strict";var q5=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};bR.exports=Tt;var PR=of(),sf=xa();un()(Tt,PR);for(af=q5(sf.prototype),Pa=0;Pa<af.length;Pa++)ba=af[Pa],Tt.prototype[ba]||(Tt.prototype[ba]=sf.prototype[ba]);var af,ba,Pa;function Tt(t){if(!(this instanceof Tt))return new Tt(t);PR.call(this,t),sf.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",j5)))}Object.defineProperty(Tt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Tt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Tt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function j5(){this._writableState.ended||process.nextTick($5,this)}function $5(t){t.end()}Object.defineProperty(Tt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var xa=h((wee,wR)=>{"use strict";wR.exports=ue;function MR(t){var e=this;this.next=null,this.entry=null,this.finish=function(){vj(e,t)}}var fn;ue.WritableState=Ro;var K5={deprecate:FN()},LR=Dc(),La=L("buffer").Buffer,W5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function z5(t){return La.from(t)}function X5(t){return La.isBuffer(t)||t instanceof W5}var lf=Bc(),J5=Gc(),Q5=J5.getHighWaterMark,rr=Qt().codes,Z5=rr.ERR_INVALID_ARG_TYPE,ej=rr.ERR_METHOD_NOT_IMPLEMENTED,tj=rr.ERR_MULTIPLE_CALLBACK,rj=rr.ERR_STREAM_CANNOT_PIPE,nj=rr.ERR_STREAM_DESTROYED,oj=rr.ERR_STREAM_NULL_VALUES,ij=rr.ERR_STREAM_WRITE_AFTER_END,aj=rr.ERR_UNKNOWN_ENCODING,pn=lf.errorOrDestroy;un()(ue,LR);function sj(){}function Ro(t,e,n){fn=fn||Mr(),t=t||{},typeof n!="boolean"&&(n=e instanceof fn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Q5(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){Ej(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new MR(this)}Ro.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(Ro.prototype,"buffer",{get:K5.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ma;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ma=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(e){return Ma.call(this,e)?!0:this!==ue?!1:e&&e._writableState instanceof Ro}})):Ma=function(e){return e instanceof this};function ue(t){fn=fn||Mr();var e=this instanceof fn;if(!e&&!Ma.call(ue,this))return new ue(t);this._writableState=new Ro(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),LR.call(this)}ue.prototype.pipe=function(){pn(this,new rj)};function uj(t,e){var n=new ij;pn(t,n),process.nextTick(e,n)}function lj(t,e,n,i){var a;return n===null?a=new oj:typeof n!="string"&&!e.objectMode&&(a=new Z5("chunk",["string","Buffer"],n)),a?(pn(t,a),process.nextTick(i,a),!1):!0}ue.prototype.write=function(t,e,n){var i=this._writableState,a=!1,s=!i.objectMode&&X5(t);return s&&!La.isBuffer(t)&&(t=z5(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=sj),i.ending?uj(this,n):(s||lj(this,i,t,n))&&(i.pendingcb++,a=fj(this,i,s,t,e,n)),a};ue.prototype.cork=function(){this._writableState.corked++};ue.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&IR(this,t))};ue.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new aj(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function cj(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=La.from(e,n)),e}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function fj(t,e,n,i,a,s){if(!n){var o=cj(e,i,a);i!==o&&(n=!0,a="buffer",i=o)}var r=e.objectMode?1:i.length;e.length+=r;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:a,isBuf:n,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else uf(t,e,!1,r,i,a,s);return u}function uf(t,e,n,i,a,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new nj("write")):n?t._writev(a,e.onwrite):t._write(a,s,e.onwrite),e.sync=!1}function pj(t,e,n,i,a){--e.pendingcb,n?(process.nextTick(a,i),process.nextTick(No,t,e),t._writableState.errorEmitted=!0,pn(t,i)):(a(i),t._writableState.errorEmitted=!0,pn(t,i),No(t,e))}function dj(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Ej(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(typeof a!="function")throw new tj;if(dj(n),e)pj(t,n,i,e,a);else{var s=CR(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&IR(t,n),i?process.nextTick(xR,t,n,s,a):xR(t,n,s,a)}}function xR(t,e,n,i){n||_j(t,e),e.pendingcb--,i(),No(t,e)}function _j(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function IR(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,a=new Array(i),s=e.corkedRequestsFree;s.entry=n;for(var o=0,r=!0;n;)a[o]=n,n.isBuf||(r=!1),n=n.next,o+=1;a.allBuffers=r,uf(t,e,!0,e.length,a,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new MR(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,p=e.objectMode?1:u.length;if(uf(t,e,!1,p,u,l,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}ue.prototype._write=function(t,e,n){n(new ej("_write()"))};ue.prototype._writev=null;ue.prototype.end=function(t,e,n){var i=this._writableState;return typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||Tj(this,i,n),this};Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function CR(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function Sj(t,e){t._final(function(n){e.pendingcb--,n&&pn(t,n),e.prefinished=!0,t.emit("prefinish"),No(t,e)})}function hj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(Sj,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function No(t,e){var n=CR(e);if(n&&(hj(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}function Tj(t,e,n){e.ending=!0,No(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function vj(t,e,n){var i=t.entry;for(t.entry=null;i;){var a=i.callback;e.pendingcb--,a(n),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(ue.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});ue.prototype.destroy=lf.destroy;ue.prototype._undestroy=lf.undestroy;ue.prototype._destroy=function(t,e){e(t)}});var cf=h((Uee,VR)=>{"use strict";var mj=L("util"),UR=xa(),{LEVEL:DR}=pe(),Po=VR.exports=function(e={}){UR.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",n=>{this.levels=n.levels,this.parent=n}),this.once("unpipe",n=>{n===this.parent&&(this.parent=null,this.close&&this.close())})};mj.inherits(Po,UR);Po.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[DR]]){if(e&&!this.format)return this.log(e,i);let s,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(r){s=r}if(s||!o){if(i(),s)throw s;return}return this.log(o,i)}return this._writableState.sync=!1,i(null)};Po.prototype._writev=function(e,n){if(this.logv){let i=e.filter(this._accept,this);return i.length?this.logv(i,n):n(null)}for(let i=0;i<e.length;i++){if(!this._accept(e[i]))continue;if(e[i].chunk&&!this.format){this.log(e[i].chunk,e[i].callback);continue}let a,s;try{s=this.format.transform(Object.assign({},e[i].chunk),this.format.options)}catch(o){a=o}if(a||!s){if(e[i].callback(),a)throw n(null),a}else this.log(s,e[i].callback)}return n(null)};Po.prototype._accept=function(e){let n=e.chunk;if(this.silent)return!1;let i=this.level||this.parent&&this.parent.level;return!!((n.exception===!0||!i||this.levels[i]>=this.levels[n[DR]])&&(this.handleExceptions||n.exception!==!0))};Po.prototype._nop=function(){}});var pf=h((Dee,GR)=>{"use strict";var yj=L("util"),{LEVEL:ff}=pe(),BR=cf(),bo=GR.exports=function(e={}){if(BR.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function n(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=n.bind(this),this.transport.on("error",this.transport.__winstonError))};yj.inherits(bo,BR);bo.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[e[ff]])&&this.transport.log(e[ff],e.message,e,this._nop),i(null)};bo.prototype._writev=function(e,n){for(let i=0;i<e.length;i++)this._accept(e[i])&&(this.transport.log(e[i].chunk[ff],e[i].chunk.message,e[i].chunk,this._nop),e[i].callback());return n(null)};bo.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
34
|
-
`))};bo.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var dn=h((Vee,df)=>{"use strict";df.exports=cf();df.exports.LegacyTransportStream=pf()});var FR=h((Gee,HR)=>{"use strict";var Aj=L("os"),{LEVEL:kR,MESSAGE:En}=pe(),Oj=dn();HR.exports=class extends Oj{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:Aj.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[kR]]){console._stderr?console._stderr.write(`${e[En]}${this.eol}`):console.error(e[En]),n&&n();return}else if(this.consoleWarnLevels[e[kR]]){console._stderr?console._stderr.write(`${e[En]}${this.eol}`):console.warn(e[En]),n&&n();return}console._stdout?console._stdout.write(`${e[En]}${this.eol}`):console.log(e[En]),n&&n()}_stringArrayToSet(e,n){if(!e)return{};if(n=n||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(n);return e.reduce((i,a)=>{if(typeof a!="string")throw new Error(n);return i[a]=!0,i},{})}}});var Ca=h((Ia,YR)=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=gj;function gj(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}YR.exports=Ia.default});var jR=h((wa,qR)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};qR.exports=wa.default});var WR=h(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.fallback=$R;nr.wrap=KR;var Nj=nr.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Rj=nr.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Pj=nr.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function $R(t){setTimeout(t,0)}function KR(t){return(e,...n)=>t(()=>e(...n))}var xo;Nj?xo=queueMicrotask:Rj?xo=setImmediate:Pj?xo=process.nextTick:xo=$R;nr.default=KR(xo)});var ZR=h((Ua,QR)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=Cj;var bj=jR(),xj=JR(bj),Mj=WR(),Lj=JR(Mj),Ij=Lr();function JR(t){return t&&t.__esModule?t:{default:t}}function Cj(t){return(0,Ij.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return zR(i,n)}:(0,xj.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return zR(i,n);n(null,i)})}function zR(t,e){return t.then(n=>{XR(e,null,n)},n=>{XR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function XR(t,e,n){try{t(e,n)}catch(i){(0,Lj.default)(a=>{throw a},i)}}QR.exports=Ua.default});var Lr=h(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.isAsyncIterable=wt.isAsyncGenerator=wt.isAsync=void 0;var wj=ZR(),Uj=Dj(wj);function Dj(t){return t&&t.__esModule?t:{default:t}}function eP(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Vj(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Bj(t){return typeof t[Symbol.asyncIterator]=="function"}function Gj(t){if(typeof t!="function")throw new Error("expected a function");return eP(t)?(0,Uj.default)(t):t}wt.default=Gj;wt.isAsync=eP;wt.isAsyncGenerator=Vj;wt.isAsyncIterable=Bj});var _n=h((Da,tP)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=kj;function kj(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((a,s)=>{i[e-1]=(o,...r)=>{if(o)return s(o);a(r.length>1?r:r[0])},t.apply(this,i)})}return n}tP.exports=Da.default});var nP=h((Va,rP)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var Hj=Ca(),Fj=Ef(Hj),Yj=Lr(),qj=Ef(Yj),jj=_n(),$j=Ef(jj);function Ef(t){return t&&t.__esModule?t:{default:t}}Va.default=(0,$j.default)((t,e,n)=>{var i=(0,Fj.default)(e)?[]:{};t(e,(a,s,o)=>{(0,qj.default)(a)((r,...u)=>{u.length<2&&([u]=u),i[s]=u,o(r)})},a=>n(a,i))},3);rP.exports=Va.default});var _f=h((Ba,oP)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=Kj;function Kj(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}oP.exports=Ba.default});var aP=h((Ga,iP)=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};iP.exports=Ga.default});var lP=h((ka,uP)=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.default=t4;var Wj=Ca(),zj=sP(Wj),Xj=aP(),Jj=sP(Xj);function sP(t){return t&&t.__esModule?t:{default:t}}function Qj(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function Zj(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function e4(t){var e=t?Object.keys(t):[],n=-1,i=e.length;return function a(){var s=e[++n];return s==="__proto__"?a():n<i?{value:t[s],key:s}:null}}function t4(t){if((0,zj.default)(t))return Qj(t);var e=(0,Jj.default)(t);return e?Zj(e):e4(t)}uP.exports=ka.default});var Sf=h((Ha,cP)=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=r4;function r4(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}cP.exports=Ha.default});var Ya=h((Fa,fP)=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var n4={};Fa.default=n4;fP.exports=Fa.default});var dP=h((qa,pP)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.default=s4;var o4=Ya(),i4=a4(o4);function a4(t){return t&&t.__esModule?t:{default:t}}function s4(t,e,n,i){let a=!1,s=!1,o=!1,r=0,u=0;function l(){r>=e||o||a||(o=!0,t.next().then(({value:_,done:f})=>{if(!(s||a)){if(o=!1,f){a=!0,r<=0&&i(null);return}r++,n(_,u,c),u++,l()}}).catch(p))}function c(_,f){if(r-=1,!s){if(_)return p(_);if(_===!1){a=!0,s=!0;return}if(f===i4.default||a&&r<=0)return a=!0,i(null);l()}}function p(_){s||(o=!1,a=!0,i(_))}l()}pP.exports=qa.default});var hP=h((ja,SP)=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var u4=_f(),l4=Mo(u4),c4=lP(),f4=Mo(c4),p4=Sf(),d4=Mo(p4),EP=Lr(),E4=dP(),_P=Mo(E4),_4=Ya(),S4=Mo(_4);function Mo(t){return t&&t.__esModule?t:{default:t}}ja.default=t=>(e,n,i)=>{if(i=(0,l4.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,EP.isAsyncGenerator)(e))return(0,_P.default)(e,t,n,i);if((0,EP.isAsyncIterable)(e))return(0,_P.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,f4.default)(e),s=!1,o=!1,r=0,u=!1;function l(p,_){if(!o)if(r-=1,p)s=!0,i(p);else if(p===!1)s=!0,o=!0;else{if(_===S4.default||s&&r<=0)return s=!0,i(null);u||c()}}function c(){for(u=!0;r<t&&!s;){var p=a();if(p===null){s=!0,r<=0&&i(null);return}r+=1,n(p.value,p.key,(0,d4.default)(l))}u=!1}c()};SP.exports=ja.default});var Tf=h(($a,TP)=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var h4=hP(),T4=hf(h4),v4=Lr(),m4=hf(v4),y4=_n(),A4=hf(y4);function hf(t){return t&&t.__esModule?t:{default:t}}function O4(t,e,n,i){return(0,T4.default)(e)(t,(0,m4.default)(n),i)}$a.default=(0,A4.default)(O4,4);TP.exports=$a.default});var yP=h((Ka,mP)=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var g4=Tf(),N4=vP(g4),R4=_n(),P4=vP(R4);function vP(t){return t&&t.__esModule?t:{default:t}}function b4(t,e,n){return(0,N4.default)(t,1,e,n)}Ka.default=(0,P4.default)(b4,3);mP.exports=Ka.default});var gP=h((Wa,OP)=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.default=C4;var x4=nP(),M4=AP(x4),L4=yP(),I4=AP(L4);function AP(t){return t&&t.__esModule?t:{default:t}}function C4(t,e){return(0,M4.default)(I4.default,t,e)}OP.exports=Wa.default});var vf=h((Fee,RP)=>{"use strict";RP.exports=Ut;var za=Qt().codes,w4=za.ERR_METHOD_NOT_IMPLEMENTED,U4=za.ERR_MULTIPLE_CALLBACK,D4=za.ERR_TRANSFORM_ALREADY_TRANSFORMING,V4=za.ERR_TRANSFORM_WITH_LENGTH_0,Xa=Mr();un()(Ut,Xa);function B4(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new U4);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Ut(t){if(!(this instanceof Ut))return new Ut(t);Xa.call(this,t),this._transformState={afterTransform:B4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",G4)}function G4(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,n){NP(t,e,n)}):NP(this,null,null)}Ut.prototype.push=function(t,e){return this._transformState.needTransform=!1,Xa.prototype.push.call(this,t,e)};Ut.prototype._transform=function(t,e,n){n(new w4("_transform()"))};Ut.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Ut.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Ut.prototype._destroy=function(t,e){Xa.prototype._destroy.call(this,t,function(n){e(n)})};function NP(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new V4;if(t._transformState.transforming)throw new D4;return t.push(null)}});var xP=h((Yee,bP)=>{"use strict";bP.exports=Lo;var PP=vf();un()(Lo,PP);function Lo(t){if(!(this instanceof Lo))return new Lo(t);PP.call(this,t)}Lo.prototype._transform=function(t,e,n){n(null,t)}});var wP=h((qee,CP)=>{"use strict";var mf;function k4(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var IP=Qt().codes,H4=IP.ERR_MISSING_ARGS,F4=IP.ERR_STREAM_DESTROYED;function MP(t){if(t)throw t}function Y4(t){return t.setHeader&&typeof t.abort=="function"}function q4(t,e,n,i){i=k4(i);var a=!1;t.on("close",function(){a=!0}),mf===void 0&&(mf=ya()),mf(t,{readable:e,writable:n},function(o){if(o)return i(o);a=!0,i()});var s=!1;return function(o){if(!a&&!s){if(s=!0,Y4(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new F4("pipe"))}}}function LP(t){t()}function j4(t,e){return t.pipe(e)}function $4(t){return!t.length||typeof t[t.length-1]!="function"?MP:t.pop()}function K4(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=$4(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new H4("streams");var a,s=e.map(function(o,r){var u=r<e.length-1,l=r>0;return q4(o,u,l,function(c){a||(a=c),c&&s.forEach(LP),!u&&(s.forEach(LP),i(a))})});return e.reduce(j4)}CP.exports=K4});var Ir=h((Qe,Co)=>{"use strict";var Io=L("stream");process.env.READABLE_STREAM==="disable"&&Io?(Co.exports=Io.Readable,Object.assign(Co.exports,Io),Co.exports.Stream=Io):(Qe=Co.exports=of(),Qe.Stream=Io||Qe,Qe.Readable=Qe,Qe.Writable=xa(),Qe.Duplex=Mr(),Qe.Transform=vf(),Qe.PassThrough=xP(),Qe.finished=ya(),Qe.pipeline=wP())});var Pf=h((jee,DP)=>{"use strict";var Sn=[],wo=[],yf=function(){};function Of(t){return~Sn.indexOf(t)?!1:(Sn.push(t),!0)}function gf(t){yf=t}function W4(t){for(var e=[],n=0;n<Sn.length;n++){if(Sn[n].async){e.push(Sn[n]);continue}if(Sn[n](t))return!0}return e.length?new Promise(function(a){Promise.all(e.map(function(o){return o(t)})).then(function(o){a(o.some(Boolean))})}):!1}function Nf(t){return~wo.indexOf(t)?!1:(wo.push(t),!0)}function Af(){yf.apply(yf,arguments)}function UP(t){for(var e=0;e<wo.length;e++)t=wo[e].apply(wo[e],arguments);return t}function Rf(t,e){var n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&(t[i]=e[i]);return t}function z4(t){return t.enabled=!1,t.modify=Nf,t.set=gf,t.use=Of,Rf(function(){return!1},t)}function X4(t){function e(){var n=Array.prototype.slice.call(arguments,0);return Af.call(Af,t,UP(n,t)),!0}return t.enabled=!0,t.modify=Nf,t.set=gf,t.use=Of,Rf(e,t)}DP.exports=function(e){return e.introduce=Rf,e.enabled=W4,e.process=UP,e.modify=Nf,e.write=Af,e.nope=z4,e.yep=X4,e.set=gf,e.use=Of,e}});var BP=h(($ee,VP)=>{"use strict";var J4=Pf(),Q4=J4(function t(e,n){return n=n||{},n.namespace=e,n.prod=!0,n.dev=!1,n.force||t.force?t.yep(n):t.nope(n)});VP.exports=Q4});var kP=h((Kee,GP)=>{"use strict";GP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var FP=h((Wee,HP)=>{"use strict";HP.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var jP=h((zee,qP)=>{"use strict";var Z4=FP(),e6=Array.prototype.concat,t6=Array.prototype.slice,YP=qP.exports=function(e){for(var n=[],i=0,a=e.length;i<a;i++){var s=e[i];Z4(s)?n=e6.call(n,t6.call(s)):n.push(s)}return n};YP.wrap=function(t){return function(){return t(YP(arguments))}}});var zP=h((Xee,WP)=>{"use strict";var Uo=kP(),Do=jP(),$P=Object.hasOwnProperty,KP=Object.create(null);for(Ja in Uo)$P.call(Uo,Ja)&&(KP[Uo[Ja]]=Ja);var Ja,ze=WP.exports={to:{},get:{}};ze.get=function(t){var e=t.substring(0,3).toLowerCase(),n,i;switch(e){case"hsl":n=ze.get.hsl(t),i="hsl";break;case"hwb":n=ze.get.hwb(t),i="hwb";break;default:n=ze.get.rgb(t),i="rgb";break}return n?{model:i,value:n}:null};ze.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^(\w+)$/,o=[0,0,0,1],r,u,l;if(r=t.match(n)){for(l=r[2],r=r[1],u=0;u<3;u++){var c=u*2;o[u]=parseInt(r.slice(c,c+2),16)}l&&(o[3]=parseInt(l,16)/255)}else if(r=t.match(e)){for(r=r[1],l=r[3],u=0;u<3;u++)o[u]=parseInt(r[u]+r[u],16);l&&(o[3]=parseInt(l+l,16)/255)}else if(r=t.match(i)){for(u=0;u<3;u++)o[u]=parseInt(r[u+1],0);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else if(r=t.match(a)){for(u=0;u<3;u++)o[u]=Math.round(parseFloat(r[u+1])*2.55);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else return(r=t.match(s))?r[1]==="transparent"?[0,0,0,0]:$P.call(Uo,r[1])?(o=Uo[r[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=or(o[u],0,255);return o[3]=or(o[3],0,1),o};ze.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=or(parseFloat(n[2]),0,100),o=or(parseFloat(n[3]),0,100),r=or(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,s=or(parseFloat(n[2]),0,100),o=or(parseFloat(n[3]),0,100),r=or(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.to.hex=function(){var t=Do(arguments);return"#"+Qa(t[0])+Qa(t[1])+Qa(t[2])+(t[3]<1?Qa(Math.round(t[3]*255)):"")};ze.to.rgb=function(){var t=Do(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};ze.to.rgb.percent=function(){var t=Do(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"};ze.to.hsl=function(){var t=Do(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ze.to.hwb=function(){var t=Do(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ze.to.keyword=function(t){return KP[t.slice(0,3)]};function or(t,e,n){return Math.min(Math.max(e,t),n)}function Qa(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var JP=h((Jee,XP)=>{"use strict";XP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var bf=h((Qee,tb)=>{"use strict";var Cr=JP(),eb={};for(Za in Cr)Cr.hasOwnProperty(Za)&&(eb[Cr[Za]]=Za);var Za,b=tb.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(De in b)if(b.hasOwnProperty(De)){if(!("channels"in b[De]))throw new Error("missing channels property: "+De);if(!("labels"in b[De]))throw new Error("missing channel labels property: "+De);if(b[De].labels.length!==b[De].channels)throw new Error("channel and label counts mismatch: "+De);QP=b[De].channels,ZP=b[De].labels,delete b[De].channels,delete b[De].labels,Object.defineProperty(b[De],"channels",{value:QP}),Object.defineProperty(b[De],"labels",{value:ZP})}var QP,ZP,De;b.rgb.hsl=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.min(e,n,i),s=Math.max(e,n,i),o=s-a,r,u,l;return s===a?r=0:e===s?r=(n-i)/o:n===s?r=2+(i-e)/o:i===s&&(r=4+(e-n)/o),r=Math.min(r*60,360),r<0&&(r+=360),l=(a+s)/2,s===a?u=0:l<=.5?u=o/(s+a):u=o/(2-s-a),[r,u*100,l*100]};b.rgb.hsv=function(t){var e,n,i,a,s,o=t[0]/255,r=t[1]/255,u=t[2]/255,l=Math.max(o,r,u),c=l-Math.min(o,r,u),p=function(_){return(l-_)/6/c+1/2};return c===0?a=s=0:(s=c/l,e=p(o),n=p(r),i=p(u),o===l?a=i-n:r===l?a=1/3+e-i:u===l&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[a*360,s*100,l*100]};b.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2],a=b.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[a,s*100,i*100]};b.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a,s,o,r;return r=Math.min(1-e,1-n,1-i),a=(1-e-r)/(1-r)||0,s=(1-n-r)/(1-r)||0,o=(1-i-r)/(1-r)||0,[a*100,s*100,o*100,r*100]};function r6(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}b.rgb.keyword=function(t){var e=eb[t];if(e)return e;var n=1/0,i;for(var a in Cr)if(Cr.hasOwnProperty(a)){var s=Cr[a],o=r6(t,s);o<n&&(n=o,i=a)}return i};b.keyword.rgb=function(t){return Cr[t]};b.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=e*.4124+n*.3576+i*.1805,s=e*.2126+n*.7152+i*.0722,o=e*.0193+n*.1192+i*.9505;return[a*100,s*100,o*100]};b.rgb.lab=function(t){var e=b.rgb.xyz(t),n=e[0],i=e[1],a=e[2],s,o,r;return n/=95.047,i/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,s=116*i-16,o=500*(n-i),r=200*(i-a),[s,o,r]};b.hsl.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a,s,o,r,u;if(n===0)return u=i*255,[u,u,u];i<.5?s=i*(1+n):s=i+n-i*n,a=2*i-s,r=[0,0,0];for(var l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(s-a)*6*o:2*o<1?u=s:3*o<2?u=a+(s-a)*(2/3-o)*6:u=a,r[l]=u*255;return r};b.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,s=Math.max(i,.01),o,r;return i*=2,n*=i<=1?i:2-i,a*=s<=1?s:2-s,r=(i+n)/2,o=i===0?2*a/(s+a):2*n/(i+n),[e,o*100,r*100]};b.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,s=e-Math.floor(e),o=255*i*(1-n),r=255*i*(1-n*s),u=255*i*(1-n*(1-s));switch(i*=255,a){case 0:return[i,u,o];case 1:return[r,i,o];case 2:return[o,i,u];case 3:return[o,r,i];case 4:return[u,o,i];case 5:return[i,o,r]}};b.hsv.hsl=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=Math.max(i,.01),s,o,r;return r=(2-n)*i,s=(2-n)*a,o=n*a,o/=s<=1?s:2-s,o=o||0,r/=2,[e,o*100,r*100]};b.hwb.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a=n+i,s,o,r,u;a>1&&(n/=a,i/=a),s=Math.floor(6*e),o=1-i,r=6*e-s,s&1&&(r=1-r),u=n+r*(o-n);var l,c,p;switch(s){default:case 6:case 0:l=o,c=u,p=n;break;case 1:l=u,c=o,p=n;break;case 2:l=n,c=o,p=u;break;case 3:l=n,c=u,p=o;break;case 4:l=u,c=n,p=o;break;case 5:l=o,c=n,p=u;break}return[l*255,c*255,p*255]};b.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100,s,o,r;return s=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,n*(1-a)+a),r=1-Math.min(1,i*(1-a)+a),[s*255,o*255,r*255]};b.xyz.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a,s,o;return a=e*3.2406+n*-1.5372+i*-.4986,s=e*-.9689+n*1.8758+i*.0415,o=e*.0557+n*-.204+i*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[a*255,s*255,o*255]};b.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return e/=95.047,n/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,s=500*(e-n),o=200*(n-i),[a,s,o]};b.lab.xyz=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;s=(e+16)/116,a=n/500+s,o=s-i/200;var r=Math.pow(s,3),u=Math.pow(a,3),l=Math.pow(o,3);return s=r>.008856?r:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a*=95.047,s*=100,o*=108.883,[a,s,o]};b.lab.lch=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return a=Math.atan2(i,n),s=a*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(n*n+i*i),[e,o,s]};b.lch.lab=function(t){var e=t[0],n=t[1],i=t[2],a,s,o;return o=i/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o),[e,a,s]};b.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],a=1 in arguments?arguments[1]:b.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return a===2&&(s+=60),s};b.hsv.ansi16=function(t){return b.rgb.ansi16(b.hsv.rgb(t),t[2])};b.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];if(e===n&&n===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5);return a};b.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=(~~(t>50)+1)*.5,i=(e&1)*n*255,a=(e>>1&1)*n*255,s=(e>>2&1)*n*255;return[i,a,s]};b.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n,i=Math.floor(t/36)/5*255,a=Math.floor((n=t%36)/6)/5*255,s=n%6/5*255;return[i,a,s]};b.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};b.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];e[0].length===3&&(n=n.split("").map(function(r){return r+r}).join(""));var i=parseInt(n,16),a=i>>16&255,s=i>>8&255,o=i&255;return[a,s,o]};b.rgb.hcg=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.max(Math.max(e,n),i),s=Math.min(Math.min(e,n),i),o=a-s,r,u;return o<1?r=s/(1-o):r=0,o<=0?u=0:a===e?u=(n-i)/o%6:a===n?u=2+(i-e)/o:u=4+(e-n)/o+4,u/=6,u%=1,[u*360,o*100,r*100]};b.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return n<.5?i=2*e*n:i=2*e*(1-n),i<1&&(a=(n-.5*i)/(1-i)),[t[0],i*100,a*100]};b.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],i*100,a*100]};b.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(n===0)return[i*255,i*255,i*255];var a=[0,0,0],s=e%1*6,o=s%1,r=1-o,u=0;switch(Math.floor(s)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=r,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=r,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=r}return u=(1-n)*i,[(n*a[0]+u)*255,(n*a[1]+u)*255,(n*a[2]+u)*255]};b.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e),a=0;return i>0&&(a=e/i),[t[0],a*100,i*100]};b.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,i=n*(1-e)+.5*e,a=0;return i>0&&i<.5?a=e/(2*i):i>=.5&&i<1&&(a=e/(2*(1-i))),[t[0],a*100,i*100]};b.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e);return[t[0],(i-e)*100,(1-i)*100]};b.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1-n,a=i-e,s=0;return a<1&&(s=(i-a)/(1-a)),[t[0],a*100,s*100]};b.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};b.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};b.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};b.gray.hsl=b.gray.hsv=function(t){return[0,0,t[0]]};b.gray.hwb=function(t){return[0,100,t[0]]};b.gray.cmyk=function(t){return[0,0,0,t[0]]};b.gray.lab=function(t){return[t[0],0,0]};b.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,n=(e<<16)+(e<<8)+e,i=n.toString(16).toUpperCase();return"000000".substring(i.length)+i};b.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var nb=h((Zee,rb)=>{"use strict";var es=bf();function n6(){for(var t={},e=Object.keys(es),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function o6(t){var e=n6(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(es[i]),s=a.length,o=0;o<s;o++){var r=a[o],u=e[r];u.distance===-1&&(u.distance=e[i].distance+1,u.parent=i,n.unshift(r))}return e}function i6(t,e){return function(n){return e(t(n))}}function a6(t,e){for(var n=[e[t].parent,t],i=es[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=i6(es[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}rb.exports=function(t){for(var e=o6(t),n={},i=Object.keys(e),a=i.length,s=0;s<a;s++){var o=i[s],r=e[o];r.parent!==null&&(n[o]=a6(o,e))}return n}});var ib=h((ete,ob)=>{"use strict";var xf=bf(),s6=nb(),hn={},u6=Object.keys(xf);function l6(t){var e=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function c6(t){var e=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var i=t(n);if(typeof i=="object")for(var a=i.length,s=0;s<a;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}u6.forEach(function(t){hn[t]={},Object.defineProperty(hn[t],"channels",{value:xf[t].channels}),Object.defineProperty(hn[t],"labels",{value:xf[t].labels});var e=s6(t),n=Object.keys(e);n.forEach(function(i){var a=e[i];hn[t][i]=c6(a),hn[t][i].raw=l6(a)})});ob.exports=hn});var ub=h((tte,sb)=>{"use strict";var Vo=zP(),Xe=ib(),If=[].slice,ab=["keyword","gray","hex"],Mf={};Object.keys(Xe).forEach(function(t){Mf[If.call(Xe[t].labels).sort().join("")]=t});var ts={};function Ae(t,e){if(!(this instanceof Ae))return new Ae(t,e);if(e&&e in ab&&(e=null),e&&!(e in Xe))throw new Error("Unknown model: "+e);var n,i;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Ae)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var a=Vo.get(t);if(a===null)throw new Error("Unable to parse color from string: "+t);this.model=a.model,i=Xe[this.model].channels,this.color=a.value.slice(0,i),this.valpha=typeof a.value[i]=="number"?a.value[i]:1}else if(t.length){this.model=e||"rgb",i=Xe[this.model].channels;var s=If.call(t,0,i);this.color=Lf(s,i),this.valpha=typeof t[i]=="number"?t[i]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var r=o.sort().join("");if(!(r in Mf))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Mf[r];var u=Xe[this.model].labels,l=[];for(n=0;n<u.length;n++)l.push(t[u[n]]);this.color=Lf(l)}if(ts[this.model])for(i=Xe[this.model].channels,n=0;n<i;n++){var c=ts[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Ae.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in Vo.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var n=e.valpha===1?e.color:e.color.concat(this.valpha);return Vo.to[e.model](n)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:e.color.concat(this.valpha);return Vo.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=Xe[this.model].channels,n=Xe[this.model].labels,i=0;i<e;i++)t[n[i]]=this.color[i];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new Ae(this.color.map(p6(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new Ae(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:le("rgb",0,de(255)),green:le("rgb",1,de(255)),blue:le("rgb",2,de(255)),hue:le(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:le("hsl",1,de(100)),lightness:le("hsl",2,de(100)),saturationv:le("hsv",1,de(100)),value:le("hsv",2,de(100)),chroma:le("hcg",1,de(100)),gray:le("hcg",2,de(100)),white:le("hwb",1,de(100)),wblack:le("hwb",2,de(100)),cyan:le("cmyk",0,de(100)),magenta:le("cmyk",1,de(100)),yellow:le("cmyk",2,de(100)),black:le("cmyk",3,de(100)),x:le("xyz",0,de(100)),y:le("xyz",1,de(100)),z:le("xyz",2,de(100)),l:le("lab",0,de(100)),a:le("lab",1),b:le("lab",2),keyword:function(t){return arguments.length?new Ae(t):Xe[this.model].keyword(this.color)},hex:function(t){return arguments.length?new Ae(t):Vo.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return Ae.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),i=this.rgb(),a=e===void 0?.5:e,s=2*a-1,o=n.alpha()-i.alpha(),r=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-r;return Ae.rgb(r*n.red()+u*i.red(),r*n.green()+u*i.green(),r*n.blue()+u*i.blue(),n.alpha()*a+i.alpha()*(1-a))}};Object.keys(Xe).forEach(function(t){if(ab.indexOf(t)===-1){var e=Xe[t].channels;Ae.prototype[t]=function(){if(this.model===t)return new Ae(this);if(arguments.length)return new Ae(arguments,t);var n=typeof arguments[e]=="number"?e:this.valpha;return new Ae(d6(Xe[this.model][t].raw(this.color)).concat(n),t)},Ae[t]=function(n){return typeof n=="number"&&(n=Lf(If.call(arguments),e)),new Ae(n,t)}}});function f6(t,e){return Number(t.toFixed(e))}function p6(t){return function(e){return f6(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(ts[i]||(ts[i]=[]))[e]=n}),t=t[0],function(i){var a;return arguments.length?(n&&(i=n(i)),a=this[t](),a.color[e]=i,a):(a=this[t]().color[e],n&&(a=n(a)),a)}}function de(t){return function(e){return Math.max(0,Math.min(t,e))}}function d6(t){return Array.isArray(t)?t:[t]}function Lf(t,e){for(var n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}sb.exports=Ae});var cb=h((rte,lb)=>{"use strict";lb.exports=function(e){for(var n=0,i=0;n<e.length;i=e.charCodeAt(n++)+((i<<5)-i));var a=Math.floor(Math.abs(Math.sin(i)*1e4%1*16777216)).toString(16);return"#"+Array(6-a.length+1).join("0")+a}});var Eb=h((nte,db)=>{"use strict";var fb=ub(),pb=cb();db.exports=function(e,n){var i=e.split(n||":"),a=pb(i[0]);if(!i.length)return a;for(var s=0,o=i.length-1;s<o;s++)a=fb(a).mix(fb(pb(i[s+1]))).saturate(1).hex();return a}});var Sb=h((ote,_b)=>{"use strict";function ut(t,e){if(e)return new ut(t).style(e);if(!(this instanceof ut))return new ut(t);this.text=t}ut.prototype.prefix="\x1B[";ut.prototype.suffix="m";ut.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var n=e.substring(0,2),i=e.substring(2,4),a=e.substring(4,6);return[parseInt(n,16),parseInt(i,16),parseInt(a,16)]};ut.prototype.rgb=function(e,n,i){var a=e/255*5,s=n/255*5,o=i/255*5;return this.ansi(a,s,o)};ut.prototype.ansi=function(e,n,i){var a=Math.round(e),s=Math.round(n),o=Math.round(i);return 16+a*36+s*6+o};ut.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};ut.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};_b.exports=ut});var Tb=h((ite,hb)=>{"use strict";var E6=Eb(),_6=Sb();hb.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?_6(i+":",E6(i)):i+":";return e[0]=a+" "+e[0],e}});var mb=h((ate,vb)=>{"use strict";vb.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a<i.length;a++){if(n=i[a].replace("*",".*?"),n.charAt(0)==="-"){if(new RegExp("^"+n.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+n+"$").test(e))return!0}return!1}});var Ab=h((ste,yb)=>{"use strict";var S6=mb();yb.exports=function(e){return function(i){try{return S6(i,e())}catch{}return!1}}});var gb=h((ute,Ob)=>{"use strict";var h6=Ab();Ob.exports=h6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var Rb=h((lte,Nb)=>{"use strict";Nb.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var bb=h((cte,Pb)=>{"use strict";var T6=Pf(),v6=L("tty").isatty(1),rs=T6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:v6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});rs.modify(Tb());rs.use(gb());rs.set(Rb());Pb.exports=rs});var Bo=h((fte,Cf)=>{"use strict";process.env.NODE_ENV==="production"?Cf.exports=BP():Cf.exports=bb()});var Mb=h((pte,xb)=>{"use strict";var wf=L("fs"),{StringDecoder:m6}=L("string_decoder"),{Stream:y6}=Ir();function A6(){}xb.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new m6("utf8"),a=new y6,s="",o=0,r=0;return t.start===-1&&delete t.start,a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},wf.open(t.file,"a+","0644",(u,l)=>{if(u){e?e(u):a.emit("error",u),a.destroy();return}(function c(){if(a.destroyed){wf.close(l,A6);return}return wf.read(l,n,0,n.length,o,(p,_)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!_)return s&&((t.start==null||r>t.start)&&(e?e(null,s):a.emit("line",s)),r++,s=""),setTimeout(c,1e3);let f=i.write(n.slice(0,_));e||a.emit("data",f),f=(s+f).split(/\n+/);let S=f.length-1,v=0;for(;v<S;v++)(t.start==null||r>t.start)&&(e?e(null,f[v]):a.emit("line",f[v])),r++;return s=f[S],o+=_,c()})})()}),e?a.destroy:a}});var wb=h((Ete,Cb)=>{"use strict";var $e=L("fs"),he=L("path"),Lb=gP(),O6=L("zlib"),{MESSAGE:g6}=pe(),{Stream:N6,PassThrough:Ib}=Ir(),R6=dn(),lt=Bo()("winston:file"),P6=L("os"),b6=Mb();Cb.exports=class extends R6{constructor(e={}){super(e),this.name=e.name||"file";function n(i,...a){a.slice(1).forEach(s=>{if(e[s])throw new Error(`Cannot set ${s} and ${i} together`)})}if(this._stream=new Ib,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)n("filename or dirname","stream"),this._basename=this.filename=e.filename?he.basename(e.filename):"winston.log",this.dirname=e.dirname||he.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),n("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=he.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:P6.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,n=()=>{}){if(this.silent)return n(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,n)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,n)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,n)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,n)})});return}}let i=`${e[g6]}${this.eol}`,a=Buffer.byteLength(i);function s(){if(this._size+=a,this._pendingSize-=a,lt("logged %s %s",this._size,i),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(i,s.bind(this));return o?n():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,n()})),lt("written",o,this._drain),this.finishIfEnding(),o}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=he.join(this.dirname,this.filename),a="",s=[],o=0,r=$e.createReadStream(i,{encoding:"utf8"});r.on("error",_=>{if(r.readable&&r.destroy(),!!n)return _.code!=="ENOENT"?n(_):n(null,s)}),r.on("data",_=>{_=(a+_).split(/\n+/);let f=_.length-1,S=0;for(;S<f;S++)(!e.start||o>=e.start)&&u(_[S]),o++;a=_[f]}),r.on("close",()=>{a&&u(a,!0),e.order==="desc"&&(s=s.reverse()),n&&n(null,s)});function u(_,f){try{let S=JSON.parse(_);c(S)&&l(S)}catch(S){f||r.emit("error",S)}}function l(_){if(e.rows&&s.length>=e.rows&&e.order!=="desc"){r.readable&&r.destroy();return}e.fields&&(_=e.fields.reduce((f,S)=>(f[S]=_[S],f),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(_)}function c(_){if(!_||typeof _!="object")return;let f=new Date(_.timestamp);if(!(e.from&&f<e.from||e.until&&f>e.until||e.level&&e.level!==_.level))return!0}function p(_){return _=_||{},_.rows=_.rows||_.limit||10,_.start=_.start||0,_.until=_.until||new Date,typeof _.until!="object"&&(_.until=new Date(_.until)),_.from=_.from||_.until-24*60*60*1e3,typeof _.from!="object"&&(_.from=new Date(_.from)),_.order=_.order||"desc",_}}stream(e={}){let n=he.join(this.dirname,this.filename),i=new N6,a={file:n,start:e.start};return i.destroy=b6(a,(s,o)=>{if(s)return i.emit("error",s);try{i.emit("data",o),o=JSON.parse(o),i.emit("log",o)}catch(r){i.emit("error",r)}}),i}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,n)=>{if(e)return this.emit("error",e);lt("stat done: %s { size: %s }",this.filename,n),this._size=n,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let n=this._getFile(),i=he.join(this.dirname,n);$e.stat(i,(a,s)=>{if(a&&a.code==="ENOENT")return lt("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return lt(`err ${a.code} ${i}`),e(a);if(!s||this._needsNewFile(s.size))return this._incFile(()=>this.stat(e));this.filename=n,e(null,s.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let n=he.join(this.dirname,this.filename);lt("create stream start",n,this.options);let i=$e.createWriteStream(n,this.options).on("error",a=>lt(a)).on("close",()=>lt("close",i.path,i.bytesWritten)).on("open",()=>{lt("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new Ib,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return lt("create stream ok",n),i}_incFile(e){lt("_incFile",this.filename);let n=he.extname(this._basename),i=he.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(s){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(he.join(this.dirname,`${i}${o}${n}`),he.join(this.dirname,`${i}${o}${n}.gz`),s)}.bind(this)),a.push(function(s){this.tailable?this._checkMaxFilesTailable(n,i,s):(this._created+=1,this._checkMaxFilesIncrementing(n,i,s))}.bind(this)),Lb(a,e)}_getFile(){let e=he.extname(this._basename),n=he.basename(this._basename,e),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${n}${i}${e}`:`${n}${e}`}_checkMaxFilesIncrementing(e,n,i){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(i);let a=this._created-this.maxFiles,s=a!==0?a:"",o=this.zippedArchive?".gz":"",r=`${n}${s}${e}${o}`,u=he.join(this.dirname,r);$e.unlink(u,i)}_checkMaxFilesTailable(e,n,i){let a=[];if(!this.maxFiles)return;let s=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)a.push(function(r,u){let l=`${n}${r-1}${e}${s}`,c=he.join(this.dirname,l);$e.exists(c,p=>{if(!p)return u(null);l=`${n}${r}${e}${s}`,$e.rename(c,he.join(this.dirname,l),u)})}.bind(this,o));Lb(a,()=>{$e.rename(he.join(this.dirname,`${n}${e}${s}`),he.join(this.dirname,`${n}1${e}${s}`),i)})}_compressFile(e,n,i){$e.access(e,$e.F_OK,a=>{if(a)return i();var s=O6.createGzip(),o=$e.createReadStream(e),r=$e.createWriteStream(n);r.on("finish",()=>{$e.unlink(e,i)}),o.pipe(s).pipe(r)})}_createLogDirIfNotExist(e){$e.existsSync(e)||$e.mkdirSync(e,{recursive:!0})}}});var Db=h((Ste,Ub)=>{"use strict";var x6=L("http"),M6=L("https"),{Stream:L6}=Ir(),I6=dn(),{configure:C6}=To();Ub.exports=class extends I6{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,n){this._request(e,null,null,(i,a)=>{a&&a.statusCode!==200&&(i=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),i?this.emit("warn",i):this.emit("logged",e)}),n&&setImmediate(n)}query(e,n){typeof e=="function"&&(n=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let i=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,i,a,(s,o,r)=>{if(o&&o.statusCode!==200&&(s=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),s)return n(s);if(typeof r=="string")try{r=JSON.parse(r)}catch(u){return n(u)}n(null,r)})}stream(e={}){let n=new L6;e={method:"stream",params:e};let i=e.params.path||null;delete e.params.path;let a=e.params.auth||null;delete e.params.auth;let s="",o=this._request(e,a,i);return n.destroy=()=>o.destroy(),o.on("data",r=>{r=(s+r).split(/\n+/);let u=r.length-1,l=0;for(;l<u;l++)try{n.emit("log",JSON.parse(r[l]))}catch(c){n.emit("error",c)}s=r[u]}),o.on("error",r=>n.emit("error",r)),n}_request(e,n,i,a){e=e||{},n=n||this.auth,i=i||this.path||"",this.batch?this._doBatch(e,a,n,i):this._doRequest(e,a,n,i)}_doBatch(e,n,i,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let s=this;this.batchCallback=n,this.batchTimeoutID=setTimeout(function(){s.batchTimeoutID=-1,s._doBatchRequest(s.batchCallback,i,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,i,a)}_doBatchRequest(e,n,i){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,n,i)}_doRequest(e,n,i,a){let s=Object.assign({},this.headers);i&&i.bearer&&(s.Authorization=`Bearer ${i.bearer}`);let o=(this.ssl?M6:x6).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:s,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});o.on("error",n),o.on("response",u=>u.on("end",()=>n(null,u)).resume());let r=C6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var Uf=h((hte,Vb)=>{"use strict";var vt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";vt.writable=t=>vt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";vt.readable=t=>vt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";vt.duplex=t=>vt.writable(t)&&vt.readable(t);vt.transform=t=>vt.duplex(t)&&typeof t._transform=="function";Vb.exports=vt});var Gb=h((vte,Bb)=>{"use strict";var w6=Uf(),{MESSAGE:U6}=pe(),D6=L("os"),V6=dn();Bb.exports=class extends V6{constructor(e={}){if(super(e),!e.stream||!w6(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:D6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[U6]}${this.eol}`),n&&n()}}});var kb=h(Go=>{"use strict";Object.defineProperty(Go,"Console",{configurable:!0,enumerable:!0,get(){return FR()}});Object.defineProperty(Go,"File",{configurable:!0,enumerable:!0,get(){return wb()}});Object.defineProperty(Go,"Http",{configurable:!0,enumerable:!0,get(){return Db()}});Object.defineProperty(Go,"Stream",{configurable:!0,enumerable:!0,get(){return Gb()}})});var os=h(ko=>{"use strict";var ns=wc(),{configs:Df}=pe();ko.cli=ns.levels(Df.cli);ko.npm=ns.levels(Df.npm);ko.syslog=ns.levels(Df.syslog);ko.addColors=ns.levels});var Fb=h((is,Hb)=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});var B6=Ca(),G6=wr(B6),k6=Ya(),H6=wr(k6),F6=Tf(),Y6=wr(F6),q6=_f(),j6=wr(q6),$6=Sf(),K6=wr($6),W6=Lr(),z6=wr(W6),X6=_n(),J6=wr(X6);function wr(t){return t&&t.__esModule?t:{default:t}}function Q6(t,e,n){n=(0,j6.default)(n);var i=0,a=0,{length:s}=t,o=!1;s===0&&n(null);function r(u,l){u===!1&&(o=!0),o!==!0&&(u?n(u):(++a===s||l===H6.default)&&n(null))}for(;i<s;i++)e(t[i],i,(0,K6.default)(r))}function Z6(t,e,n){return(0,Y6.default)(t,1/0,e,n)}function e$(t,e,n){var i=(0,G6.default)(t)?Q6:Z6;return i(t,(0,z6.default)(e),n)}is.default=(0,J6.default)(e$,3);Hb.exports=is.default});var qb=h((as,Yb)=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.default=t$;function t$(t){return(e,n,i)=>t(e,i)}Yb.exports=as.default});var ls=h((us,jb)=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});var r$=Fb(),n$=ss(r$),o$=qb(),i$=ss(o$),a$=Lr(),s$=ss(a$),u$=_n(),l$=ss(u$);function ss(t){return t&&t.__esModule?t:{default:t}}function c$(t,e,n){return(0,n$.default)(t,(0,i$.default)((0,s$.default)(e)),n)}us.default=(0,l$.default)(c$,3);jb.exports=us.default});var Kb=h((Ate,$b)=>{"use strict";var f$=Object.prototype.toString;$b.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var n=e.toString(),i=f$.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Vf=h((Ote,Wb)=>{"use strict";var p$=Kb();Wb.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=p$(e),a}});var Bf=h(Fo=>{"use strict";Fo.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(s,o){return o},Error.captureStackTrace(n,t||Fo.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};Fo.parse=function(t){if(!t.stack)return[];var e=this,n=t.stack.split(`
|
35
|
-
`).slice(1);return n.map(function(i){if(i.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var
|
36
|
-
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg
|
37
|
-
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:
|
38
|
-
`));S&&this.exceptions.handle(S),v&&this.rejections.handle(v)}isLevelEnabled(e){let n=
|
39
|
-
`))}_onEvent(e,n){function i(a){e==="error"&&!this.transports.includes(n)&&this.add(n),this.emit(e,a,n)}n["__winston"+e]||(n["__winston"+e]=i.bind(this),n.on(e,n["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function qf(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(fs.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});c0.exports=fs});var jf=h((Ute,f0)=>{"use strict";var{LEVEL:I$}=pe(),C$=os(),w$=cs(),U$=Bo()("winston:create-logger");function D$(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}f0.exports=function(t={}){t.levels=t.levels||C$.npm.levels;class e extends w${constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(U$('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[i]=function(...a){let s=this||n;if(a.length===1){let[o]=a,r=o&&o.message&&o||{message:o};return r.level=r[I$]=i,s._addDefaultMeta(r),s.write(r),this||n}return a.length===0?(s.log(i,""),s):s.log(i,...a)},e.prototype[D$(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var d0=h((Vte,p0)=>{"use strict";var V$=jf();p0.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,n){if(!this.loggers.has(e)){n=Object.assign({},n||this.options);let i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];let a=V$(n);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,n){return this.add(e,n)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((n,i)=>this._removeLogger(i))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var _0=h(Q=>{"use strict";var E0=wc(),{warn:Yo}=Uc();Q.version=kN().version;Q.transports=kb();Q.config=os();Q.addColors=E0.levels;Q.format=E0.format;Q.createLogger=jf();Q.Logger=cs();Q.ExceptionHandler=kf();Q.RejectionHandler=Ff();Q.Container=d0();Q.Transport=dn();Q.loggers=new Q.Container;var yt=Q.createLogger();Object.keys(Q.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Q[t]=(...e)=>yt[t](...e));Object.defineProperty(Q,"level",{get(){return yt.level},set(t){yt.level=t}});Object.defineProperty(Q,"exceptions",{get(){return yt.exceptions}});Object.defineProperty(Q,"rejections",{get(){return yt.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Q,t,{get(){return yt[t]},set(e){yt[t]=e}})});Object.defineProperty(Q,"default",{get(){return{exceptionHandlers:yt.exceptionHandlers,rejectionHandlers:yt.rejectionHandlers,transports:yt.transports}}});Yo.deprecated(Q,"setLevels");Yo.forFunctions(Q,"useFormat",["cli"]);Yo.forProperties(Q,"useFormat",["padLevels","stripColors"]);Yo.forFunctions(Q,"deprecated",["addRewriter","addFilter","clone","extend"]);Yo.forProperties(Q,"deprecated",["emitErrs","levelLength"])});var B$,G$,k$,ps,ds,T0,v0=m(()=>{"use strict";B$="exception.type",G$="exception.message",k$="exception.stacktrace",ps=B$,ds=G$,T0=k$});var m0=m(()=>{"use strict";v0()});var H$,F$,Y$,q$,j$,y0,Es,qo,jo,$o,$$,A0,O0=m(()=>{"use strict";H$="process.runtime.name",F$="service.name",Y$="telemetry.sdk.name",q$="telemetry.sdk.language",j$="telemetry.sdk.version",y0=H$,Es=F$,qo=Y$,jo=q$,$o=j$,$$="nodejs",A0=$$});var g0=m(()=>{"use strict";O0()});var N0=m(()=>{"use strict"});var R0=m(()=>{"use strict"});var Ko=m(()=>{"use strict";m0();g0();N0();R0()});function Tn(t){return t.setValue($f,!0)}function P0(t){return t.deleteValue($f)}function xe(t){return t.getValue($f)===!0}var $f,Wo=m(()=>{"use strict";x();$f=Kr("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var b0,_s,vn,Ss,x0,M0,L0,Kf=m(()=>{"use strict";b0="=",_s=";",vn=",",Ss="baggage",x0=180,M0=4096,L0=8192});function hs(t){return t.reduce(function(e,n){var i=""+e+(e!==""?vn:"")+n;return i.length>L0?e:i},"")}function Ts(t){return t.getAllEntries().map(function(e){var n=K$(e,2),i=n[0],a=n[1],s=encodeURIComponent(i)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(s+=_s+a.metadata.toString()),s})}function zo(t){var e=t.split(_s);if(!(e.length<=0)){var n=e.shift();if(n){var i=n.indexOf(b0);if(!(i<=0)){var a=decodeURIComponent(n.substring(0,i).trim()),s=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=EE(e.join(_s))),{key:a,value:s,metadata:o}}}}}function I0(t){return typeof t!="string"||t.length===0?{}:t.split(vn).map(function(e){return zo(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var K$,Wf=m(()=>{"use strict";x();Kf();K$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var vs,C0=m(()=>{"use strict";x();Wo();Kf();Wf();vs=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=it.getBaggage(e);if(!(!a||xe(e))){var s=Ts(a).filter(function(r){return r.length<=M0}).slice(0,x0),o=hs(s);o.length>0&&i.set(n,Ss,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,Ss),s=Array.isArray(a)?a.join(vn):a;if(!s)return e;var o={};if(s.length===0)return e;var r=s.split(vn);return r.forEach(function(u){var l=zo(u);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0?e:it.setBaggage(e,it.createBaggage(o))},t.prototype.fields=function(){return[Ss]},t}()});var w0,U0=m(()=>{"use strict";w0=function(){function t(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}return t.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},t}()});function ir(t){var e,n,i={};if(typeof t!="object"||t==null)return i;try{for(var a=D0(Object.entries(t)),s=a.next();!s.done;s=a.next()){var o=W$(s.value,2),r=o[0],u=o[1];if(!zf(r)){g.warn("Invalid attribute key: "+r);continue}if(!Xo(u)){g.warn("Invalid attribute value set for key: "+r);continue}Array.isArray(u)?i[r]=u.slice():i[r]=u}}catch(l){e={error:l}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function zf(t){return typeof t=="string"&&t.length>0}function Xo(t){return t==null?!0:Array.isArray(t)?z$(t):V0(t)}function z$(t){var e,n,i;try{for(var a=D0(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(o!=null){if(!i){if(V0(o)){i=typeof o;continue}return!1}if(typeof o!==i)return!1}}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}function V0(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var D0,W$,B0=m(()=>{"use strict";x();D0=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},W$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function ms(){return function(t){g.error(X$(t))}}function X$(t){return typeof t=="string"?t:JSON.stringify(J$(t))}function J$(t){for(var e={},n=t;n!==null;)Object.getOwnPropertyNames(n).forEach(function(i){if(!e[i]){var a=n[i];a&&(e[i]=String(a))}}),n=Object.getPrototypeOf(n);return e}var Xf=m(()=>{"use strict";x()});function k0(t){G0=t}function Te(t){try{G0(t)}catch{}}var G0,Jf=m(()=>{"use strict";Xf();G0=ms()});var Ke,Qf=m(()=>{"use strict";(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(Ke||(Ke={}))});function eK(t){return Z$.indexOf(t)>-1}function rK(t){return tK.indexOf(t)>-1}function oK(t){return nK.indexOf(t)>-1}function iK(t,e,n){if(!(typeof n[t]>"u")){var i=String(n[t]);e[t]=i.toLowerCase()==="true"}}function aK(t,e,n,i,a){if(i===void 0&&(i=-1/0),a===void 0&&(a=1/0),typeof n[t]<"u"){var s=Number(n[t]);isNaN(s)||(s<i?e[t]=i:s>a?e[t]=a:e[t]=s)}}function sK(t,e,n,i){i===void 0&&(i=Q$);var a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(function(s){return s.trim()}))}function lK(t,e,n){var i=n[t];if(typeof i=="string"){var a=uK[i.toUpperCase()];a!=null&&(e[t]=a)}}function Qo(t){var e={};for(var n in Jo){var i=n;switch(i){case"OTEL_LOG_LEVEL":lK(i,e,t);break;default:if(eK(i))iK(i,e,t);else if(rK(i))aK(i,e,t);else if(oK(i))sK(i,e,t);else{var a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}var Q$,Z$,tK,nK,Ur,Dr,Zf,ep,Jo,uK,tp=m(()=>{"use strict";x();Qf();Q$=",",Z$=["OTEL_SDK_DISABLED"];tK=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];nK=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];Ur=1/0,Dr=128,Zf=128,ep=128,Jo={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:ot.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ur,OTEL_ATTRIBUTE_COUNT_LIMIT:Dr,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ur,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Dr,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ur,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Dr,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Zf,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:ep,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ke.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};uK={ALL:ot.ALL,VERBOSE:ot.VERBOSE,DEBUG:ot.DEBUG,INFO:ot.INFO,WARN:ot.WARN,ERROR:ot.ERROR,NONE:ot.NONE}});function Oe(){var t=Qo(process.env);return Object.assign({},Jo,t)}function mn(){return Qo(process.env)}var H0=m(()=>{"use strict";tp()});var ys,F0=m(()=>{"use strict";ys=typeof globalThis=="object"?globalThis:global});function Y0(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function ar(t){for(var e=new Uint8Array(t.length/2),n=0,i=0;i<t.length;i+=2){var a=Y0(t.charCodeAt(i)),s=Y0(t.charCodeAt(i+1));e[n++]=a<<4|s}return e}var rp=m(()=>{"use strict"});function As(t){return Buffer.from(ar(t)).toString("base64")}var q0=m(()=>{"use strict";rp()});function j0(t){return function(){for(var n=0;n<t/4;n++)Os.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(Os[n]>0);n++)n===t-1&&(Os[t-1]=1);return Os.toString("hex",0,t)}}var cK,$0,gs,Os,K0=m(()=>{"use strict";cK=8,$0=16,gs=function(){function t(){this.generateTraceId=j0($0),this.generateSpanId=j0(cK)}return t}(),Os=Buffer.allocUnsafe($0)});import{performance as fK}from"perf_hooks";var Ze,W0=m(()=>{"use strict";Ze=fK});var Ns,np=m(()=>{"use strict";Ns="1.28.0"});var yn,sr,z0=m(()=>{"use strict";np();Ko();sr=(yn={},yn[qo]="opentelemetry",yn[y0]="node",yn[jo]=A0,yn[$o]=Ns,yn)});function ur(t){t.unref()}var X0=m(()=>{"use strict"});var J0=m(()=>{"use strict";H0();F0();q0();K0();W0();z0();X0()});var op=m(()=>{"use strict";J0()});function ge(t){var e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*dK);return[n,i]}function An(){var t=Ze.timeOrigin;if(typeof t!="number"){var e=Ze;t=e.timing&&e.timing.fetchStart}return t}function Zo(t){var e=ge(An()),n=ge(typeof t=="number"?t:Ze.now());return ti(e,n)}function Z0(t){if(On(t))return t;if(typeof t=="number")return t<An()?Zo(t):ge(t);if(t instanceof Date)return ge(t.getTime());throw TypeError("Invalid input type")}function Ps(t,e){var n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=Rs),[n,i]}function ex(t){var e=Q0,n=""+"0".repeat(e)+t[1]+"Z",i=n.substr(n.length-e-1),a=new Date(t[0]*1e3).toISOString();return a.replace("000Z",i)}function bs(t){return t[0]*Rs+t[1]}function tx(t){return t[0]*1e3+t[1]/1e6}function Ot(t){return t[0]*1e6+t[1]/1e3}function On(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function ei(t){return On(t)||typeof t=="number"||t instanceof Date}function ti(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Rs&&(n[1]-=Rs,n[0]+=1),n}var Q0,pK,dK,Rs,rx=m(()=>{"use strict";op();Q0=9,pK=6,dK=Math.pow(10,pK),Rs=Math.pow(10,Q0)});var ee,nx=m(()=>{"use strict";(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(ee||(ee={}))});var EK,xs,ox=m(()=>{"use strict";x();EK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xs=function(){function t(e){e===void 0&&(e={});var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(i){return typeof i.fields=="function"?i.fields():[]}).reduce(function(i,a){return i.concat(a)},[])))}return t.prototype.inject=function(e,n,i){var a,s;try{for(var o=EK(this._propagators),r=o.next();!r.done;r=o.next()){var u=r.value;try{u.inject(e,n,i)}catch(l){g.warn("Failed to inject with "+u.constructor.name+". Err: "+l.message)}}}catch(l){a={error:l}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){return this._propagators.reduce(function(a,s){try{return s.extract(a,n,i)}catch(o){g.warn("Failed to extract with "+s.constructor.name+". Err: "+o.message)}return a},e)},t.prototype.fields=function(){return this._fields.slice()},t}()});function ix(t){return hK.test(t)}function ax(t){return TK.test(t)&&!vK.test(t)}var ip,_K,SK,hK,TK,vK,sx=m(()=>{"use strict";ip="[_0-9a-z-*/]",_K="[a-z]"+ip+"{0,255}",SK="[a-z0-9]"+ip+"{0,240}@[a-z]"+ip+"{0,13}",hK=new RegExp("^(?:"+_K+"|"+SK+")$"),TK=/^[ -~]{0,255}[!-~]$/,vK=/,|=/});var ux,mK,lx,cx,Ms,ap=m(()=>{"use strict";sx();ux=32,mK=512,lx=",",cx="=",Ms=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,n){var i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i},t.prototype.unset=function(e){var n=this._clone();return n._internalState.delete(e),n},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(n,i){return n.push(i+cx+e.get(i)),n},[]).join(lx)},t.prototype._parse=function(e){e.length>mK||(this._internalState=e.split(lx).reverse().reduce(function(n,i){var a=i.trim(),s=a.indexOf(cx);if(s!==-1){var o=a.slice(0,s),r=a.slice(s+1,i.length);ix(o)&&ax(r)&&n.set(o,r)}return n},new Map),this._internalState.size>ux&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,ux))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function sp(t){var e=RK.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var ri,ni,yK,AK,OK,gK,NK,RK,Ls,fx=m(()=>{"use strict";x();Wo();ap();ri="traceparent",ni="tracestate",yK="00",AK="(?!ff)[\\da-f]{2}",OK="(?![0]{32})[\\da-f]{32}",gK="(?![0]{16})[\\da-f]{16}",NK="[\\da-f]{2}",RK=new RegExp("^\\s?("+AK+")-("+OK+")-("+gK+")-("+NK+")(-.*)?\\s?$");Ls=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||xe(e)||!dt(a))){var s=yK+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||J.NONE).toString(16);i.set(n,ri,s),a.traceState&&i.set(n,ni,a.traceState.serialize())}},t.prototype.extract=function(e,n,i){var a=i.get(n,ri);if(!a)return e;var s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=sp(s);if(!o)return e;o.isRemote=!0;var r=i.get(n,ni);if(r){var u=Array.isArray(r)?r.join(","):r;o.traceState=new Ms(typeof u=="string"?u:void 0)}return X.setSpanContext(e,o)},t.prototype.fields=function(){return[ri,ni]},t}()});function px(t,e){return t.setValue(up,e)}function dx(t){return t.deleteValue(up)}function Ex(t){return t.getValue(up)}var up,Is,_x=m(()=>{"use strict";x();up=Kr("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(Is||(Is={}))});var oi,lp=m(()=>{"use strict";x();oi=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Et.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var gn,cp=m(()=>{"use strict";x();gn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:Et.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var Sx,hx=m(()=>{"use strict";x();Jf();lp();cp();Sx=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(Te(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new gn),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new gn,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new oi,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new gn,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new oi}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!dt(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var Tx,vx=m(()=>{"use strict";x();Tx=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:kt(n)&&this._accumulate(n)<this._upperBound?Et.RECORD_AND_SAMPLED:Et.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function CK(t,e){return function(n){return t(e(n))}}function fp(t){if(!wK(t)||UK(t)!==PK)return!1;var e=IK(t);if(e===null)return!0;var n=Ax.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&mx.call(n)===LK}function wK(t){return t!=null&&typeof t=="object"}function UK(t){return t==null?t===void 0?xK:bK:Vr&&Vr in Object(t)?DK(t):VK(t)}function DK(t){var e=Ax.call(t,Vr),n=t[Vr],i=!1;try{t[Vr]=void 0,i=!0}catch{}var a=Ox.call(t);return i&&(e?t[Vr]=n:delete t[Vr]),a}function VK(t){return Ox.call(t)}var PK,bK,xK,MK,mx,LK,IK,yx,Ax,Vr,Ox,gx=m(()=>{"use strict";PK="[object Object]",bK="[object Null]",xK="[object Undefined]",MK=Function.prototype,mx=MK.toString,LK=mx.call(Object),IK=CK(Object.getPrototypeOf,Object),yx=Object.prototype,Ax=yx.hasOwnProperty,Vr=Symbol?Symbol.toStringTag:void 0,Ox=yx.toString});function Us(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),i=new WeakMap;t.length>0;)n=Rx(n,t.shift(),0,i);return n}function pp(t){return ws(t)?t.slice():t}function Rx(t,e,n,i){n===void 0&&(n=0);var a;if(!(n>BK)){if(n++,Cs(t)||Cs(e)||Px(e))a=pp(e);else if(ws(t)){if(a=t.slice(),ws(e))for(var s=0,o=e.length;s<o;s++)a.push(pp(e[s]));else if(ii(e))for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s];a[u]=pp(e[u])}}else if(ii(t))if(ii(e)){if(!GK(t,e))return e;a=Object.assign({},t);for(var r=Object.keys(e),s=0,o=r.length;s<o;s++){var u=r[s],l=e[u];if(Cs(l))typeof l>"u"?delete a[u]:a[u]=l;else{var c=a[u],p=l;if(Nx(t,u,i)||Nx(e,u,i))delete a[u];else{if(ii(c)&&ii(p)){var _=i.get(c)||[],f=i.get(p)||[];_.push({obj:t,key:u}),f.push({obj:e,key:u}),i.set(c,_),i.set(p,f)}a[u]=Rx(a[u],l,n,i)}}}}else a=e;return a}}function Nx(t,e,n){for(var i=n.get(t[e])||[],a=0,s=i.length;a<s;a++){var o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function ws(t){return Array.isArray(t)}function Px(t){return typeof t=="function"}function ii(t){return!Cs(t)&&!ws(t)&&!Px(t)&&typeof t=="object"}function Cs(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function GK(t,e){return!(!fp(t)||!fp(e))}var BK,bx=m(()=>{"use strict";gx();BK=20});function xx(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new dp("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}var kK,dp,Mx=m(()=>{"use strict";kK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),dp=function(t){kK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});function Ep(t,e){return typeof e=="string"?t===e:!!t.match(e)}function Lx(t,e){var n,i;if(!e)return!1;try{for(var a=HK(e),s=a.next();!s.done;s=a.next()){var o=s.value;if(Ep(t,o))return!0}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1}var HK,Ix=m(()=>{"use strict";HK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}});function Cx(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var wx=m(()=>{"use strict"});var Ux,Dx=m(()=>{"use strict";Ux=function(){function t(){var e=this;this._promise=new Promise(function(n,i){e._resolve=n,e._reject=i})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(e){this._resolve(e)},t.prototype.reject=function(e){this._reject(e)},t}()});var FK,YK,lr,Vx=m(()=>{"use strict";Dx();FK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},YK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},lr=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new Ux}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var e,n=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,YK([this._that],FK(i),!1))).then(function(s){return n._deferred.resolve(s)},function(s){return n._deferred.reject(s)})}catch(s){this._deferred.reject(s)}}return this._deferred.promise},t}()});function Bx(t,e){return new Promise(function(n){Ye.with(Tn(Ye.active()),function(){t.export(e,function(i){n(i)})})})}var Gx=m(()=>{"use strict";x();Wo()});var Ds={};nt(Ds,{AlwaysOffSampler:()=>oi,AlwaysOnSampler:()=>gn,AnchoredClock:()=>w0,BindOnceFuture:()=>lr,CompositePropagator:()=>xs,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Dr,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Ur,DEFAULT_ENVIRONMENT:()=>Jo,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Zf,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>ep,ExportResultCode:()=>ee,ParentBasedSampler:()=>Sx,RPCType:()=>Is,RandomIdGenerator:()=>gs,SDK_INFO:()=>sr,TRACE_PARENT_HEADER:()=>ri,TRACE_STATE_HEADER:()=>ni,TimeoutError:()=>dp,TraceIdRatioBasedSampler:()=>Tx,TraceState:()=>Ms,TracesSamplerValues:()=>Ke,VERSION:()=>Ns,W3CBaggagePropagator:()=>vs,W3CTraceContextPropagator:()=>Ls,_globalThis:()=>ys,addHrTimes:()=>ti,baggageUtils:()=>Nn,callWithTimeout:()=>xx,deleteRPCMetadata:()=>dx,getEnv:()=>Oe,getEnvWithoutDefaults:()=>mn,getRPCMetadata:()=>Ex,getTimeOrigin:()=>An,globalErrorHandler:()=>Te,hexToBase64:()=>As,hexToBinary:()=>ar,hrTime:()=>Zo,hrTimeDuration:()=>Ps,hrTimeToMicroseconds:()=>Ot,hrTimeToMilliseconds:()=>tx,hrTimeToNanoseconds:()=>bs,hrTimeToTimeStamp:()=>ex,internal:()=>ai,isAttributeKey:()=>zf,isAttributeValue:()=>Xo,isTimeInput:()=>ei,isTimeInputHrTime:()=>On,isTracingSuppressed:()=>xe,isUrlIgnored:()=>Lx,isWrapped:()=>Cx,loggingErrorHandler:()=>ms,merge:()=>Us,millisToHrTime:()=>ge,otperformance:()=>Ze,parseEnvironment:()=>Qo,parseTraceParent:()=>sp,sanitizeAttributes:()=>ir,setGlobalErrorHandler:()=>k0,setRPCMetadata:()=>px,suppressTracing:()=>Tn,timeInputToHrTime:()=>Z0,unrefTimer:()=>ur,unsuppressTracing:()=>P0,urlMatches:()=>Ep});var Nn,ai,K=m(()=>{"use strict";C0();U0();B0();Jf();Xf();rx();rp();nx();Wf();op();ox();fx();_x();lp();cp();hx();vx();Wo();ap();tp();bx();Qf();Mx();Ix();wx();Vx();np();Gx();Nn={getKeyPairs:Ts,serializeKeyPairs:hs,parseKeyPairsIntoRecord:I0,parsePairKeyValue:zo},ai={_export:Bx}});function Vs(){return"unknown_service:"+process.argv0}var kx=m(()=>{"use strict"});var Hx=m(()=>{"use strict";kx()});var Fx=m(()=>{"use strict";Hx()});var cr,qK,jK,$K,Dt,_p=m(()=>{"use strict";x();Ko();K();Fx();cr=function(){return cr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},cr.apply(this,arguments)},qK=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},jK=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},$K=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Dt=function(){function t(e,n){var i=this,a;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=n?.then(function(s){return i._attributes=Object.assign({},i._attributes,s),i.asyncAttributesPending=!1,s},function(s){return g.debug("a resource's async attributes promise rejected: %s",s),i.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t((e={},e[Es]=Vs(),e[jo]=sr[jo],e[qo]=sr[qo],e[$o]=sr[$o],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&g.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return qK(this,void 0,void 0,function(){return jK(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.merge=function(e){var n=this,i;if(!e)return this;var a=cr(cr({},this._syncAttributes),(i=e._syncAttributes)!==null&&i!==void 0?i:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(a);var s=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(o){var r,u=$K(o,2),l=u[0],c=u[1];return cr(cr(cr(cr({},n._syncAttributes),l),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),c)});return new t(a,s)},t.EMPTY=new t({}),t}()});var KK,WK,zK,Sp,Yx=m(()=>{"use strict";x();K();Ko();_p();KK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},WK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},zK=function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(e){var n={},i=Oe(),a=i.OTEL_RESOURCE_ATTRIBUTES,s=i.OTEL_SERVICE_NAME;if(a)try{var o=this._parseResourceAttributes(a);Object.assign(n,o)}catch(r){g.debug("EnvDetector failed: "+r.message)}return s&&(n[Es]=s),new Dt(n)},t.prototype._parseResourceAttributes=function(e){var n,i;if(!e)return{};var a={},s=e.split(this._COMMA_SEPARATOR,-1);try{for(var o=KK(s),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(l.length===2){var c=WK(l,2),p=c[0],_=c[1];if(p=p.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(p))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);a[p]=decodeURIComponent(_)}}}catch(f){n={error:f}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},t.prototype._isBaggageOctetString=function(e){for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<33||i===44||i===59||i===92||i>126)return!1}return!0},t.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},t}(),Sp=new zK});var XK,Bs,qx=m(()=>{"use strict";Yx();XK=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(Sp.detect(e))},t}(),Bs=new XK});var jx=m(()=>{"use strict";qx()});var Gs=m(()=>{"use strict";_p();jx()});var Ne,ks=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(Ne||(Ne={}))});var Re,Rn=m(()=>{"use strict";(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(Re||(Re={}))});function Wx(t){return t!=null}function zx(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function Xx(t){var e,n;return t.name+":"+((e=t.version)!==null&&e!==void 0?e:"")+":"+((n=t.schemaUrl)!==null&&n!==void 0?n:"")}function fr(t,e){var n,i=new Promise(function(s,o){n=setTimeout(function(){o(new si("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function Jx(t){return $x(this,void 0,void 0,function(){var e=this;return Kx(this,function(n){return[2,Promise.all(t.map(function(i){return $x(e,void 0,void 0,function(){var a,s;return Kx(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i];case 1:return a=o.sent(),[2,{status:"fulfilled",value:a}];case 2:return s=o.sent(),[2,{status:"rejected",reason:s}];case 3:return[2]}})})}))]})})}function Qx(t){return t.status==="rejected"}function hp(t,e){var n=[];return t.forEach(function(i){n.push.apply(n,ZK([],QK(e(i)),!1))}),n}function Zx(t,e){var n,i;if(t.size!==e.size)return!1;try{for(var a=e8(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(!e.has(o))return!1}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}function eM(t,e){for(var n=0,i=t.length-1,a=t.length;i>=n;){var s=n+Math.trunc((i-n)/2);t[s]<e?n=s+1:(a=s,i=s-1)}return a}function tM(t,e){return t.toLowerCase()===e.toLowerCase()}var JK,$x,Kx,QK,ZK,e8,si,gt=m(()=>{"use strict";JK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),$x=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Kx=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},QK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},ZK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},e8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};si=function(t){JK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});var et,Pn=m(()=>{"use strict";(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(et||(et={}))});var Tp,rM=m(()=>{"use strict";Pn();Tp=function(){function t(){this.kind=et.DROP}return t.prototype.createAccumulation=function(){},t.prototype.merge=function(e,n){},t.prototype.diff=function(e,n){},t.prototype.toMetricData=function(e,n,i,a){},t}()});function Nt(t,e,n){var i,a,s,o;return r8(t)||g.warn('Invalid metric name: "'+t+'". The metric name should be a ASCII string with a length no greater than 255 characters.'),{name:t,type:e,description:(i=n?.description)!==null&&i!==void 0?i:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(s=n?.valueType)!==null&&s!==void 0?s:pt.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}function nM(t,e){var n,i;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(i=t.description)!==null&&i!==void 0?i:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}function oM(t,e){return tM(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function r8(t){return t.match(t8)!=null}var C,t8,Vt=m(()=>{"use strict";x();gt();(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(C||(C={}));t8=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function o8(t){var e=t.map(function(){return 0});return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var n8,Hs,Fs,iM=m(()=>{"use strict";Pn();Rn();Vt();gt();n8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s};Hs=function(){function t(e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=o8(n)),this.startTime=e,this._boundaries=n,this._recordMinMax=i,this._current=a}return t.prototype.record=function(e){if(!Number.isNaN(e)){this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);var n=eM(this._boundaries,e);this._current.buckets.counts[n]+=1}},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Fs=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=et.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new Hs(e,this._boundaries,this._recordMinMax)},t.prototype.merge=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=s[u]+o[u];var l=1/0,c=-1/0;return this._recordMinMax&&(i.hasMinMax&&a.hasMinMax?(l=Math.min(i.min,a.min),c=Math.max(i.max,a.max)):i.hasMinMax?(l=i.min,c=i.max):a.hasMinMax&&(l=a.min,c=a.max)),new Hs(e.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:i.count+a.count,sum:i.sum+a.sum,hasMinMax:this._recordMinMax&&(i.hasMinMax||a.hasMinMax),min:l,max:c})},t.prototype.diff=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),s=i.buckets.counts,o=a.buckets.counts,r=new Array(s.length),u=0;u<s.length;u++)r[u]=o[u]-s[u];return new Hs(n.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:a.count-i.count,sum:a.sum-i.sum,hasMinMax:!1,min:1/0,max:-1/0})},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.HISTOGRAM,dataPoints:i.map(function(s){var o=n8(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,buckets:l.buckets,count:l.count}}})}},t}()});var vp,mp,yp,i8,aM=m(()=>{"use strict";vp=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},mp=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},yp=function(){function t(e,n,i,a){e===void 0&&(e=new i8),n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),this.backing=e,this.indexBase=n,this.indexStart=i,this.indexEnd=a}return Object.defineProperty(t.prototype,"offset",{get:function(){return this.indexStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1},enumerable:!1,configurable:!0}),t.prototype.counts=function(){var e=this;return Array.from({length:this.length},function(n,i){return e.at(i)})},t.prototype.at=function(e){var n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)},t.prototype.incrementBucket=function(e,n){this.backing.increment(e,n)},t.prototype.decrementBucket=function(e,n){this.backing.decrement(e,n)},t.prototype.trim=function(){for(var e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(var e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()},t.prototype.downscale=function(e){this._rotate();for(var n=1+this.indexEnd-this.indexStart,i=1<<e,a=0,s=0,o=this.indexStart;o<=this.indexEnd;){var r=o%i;r<0&&(r+=i);for(var u=r;u<i&&a<n;u++)this._relocateBucket(s,a),a++,o++;s++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart},t.prototype.clone=function(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)},t.prototype._rotate=function(){var e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)},t.prototype._relocateBucket=function(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))},t}(),i8=function(){function t(e){e===void 0&&(e=[0]),this._counts=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this._counts.length},enumerable:!1,configurable:!0}),t.prototype.countAt=function(e){return this._counts[e]},t.prototype.growTo=function(e,n,i){var a=new Array(e).fill(0);a.splice.apply(a,mp([i,this._counts.length-n],vp(this._counts.slice(n)),!1)),a.splice.apply(a,mp([0,n],vp(this._counts.slice(0,n)),!1)),this._counts=a},t.prototype.reverse=function(e,n){for(var i=Math.floor((e+n)/2)-e,a=0;a<i;a++){var s=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=s}},t.prototype.emptyBucket=function(e){var n=this._counts[e];return this._counts[e]=0,n},t.prototype.increment=function(e,n){this._counts[e]+=n},t.prototype.decrement=function(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0},t.prototype.clone=function(){return new t(mp([],vp(this._counts),!1))},t}()});function js(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=(n&a8)>>20;return i-Ap}function $s(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=e.getUint32(4),a=(n&s8)*Math.pow(2,32);return a+i}var sM,a8,s8,Ap,Ys,qs,ui,Op=m(()=>{"use strict";sM=52,a8=2146435072,s8=1048575,Ap=1023,Ys=-Ap+1,qs=Ap,ui=Math.pow(2,-1022)});function li(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function lM(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var Ks=m(()=>{"use strict"});var u8,pr,Ws=m(()=>{"use strict";u8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),pr=function(t){u8(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var fM,pM=m(()=>{"use strict";Op();Ks();Ws();fM=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<ui)return this._minNormalLowerBoundaryIndex();var n=js(e),i=this._rightShift($s(e)-1,sM);return n+i>>this._shift},t.prototype.lowerBoundary=function(e){var n=this._minNormalLowerBoundaryIndex();if(e<n)throw new pr("underflow: "+e+" is < minimum lower boundary: "+n);var i=this._maxNormalLowerBoundaryIndex();if(e>i)throw new pr("overflow: "+e+" is > maximum lower boundary: "+i);return li(1,e<<this._shift)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._shift===0?0:-this._shift},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){var e=Ys>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return qs>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var dM,EM=m(()=>{"use strict";Op();Ks();Ws();dM=function(){function t(e){this._scale=e,this._scaleFactor=li(Math.LOG2E,e),this._inverseFactor=li(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=ui)return this._minNormalLowerBoundaryIndex()-1;if($s(e)===0){var n=js(e);return(n<<this._scale)-1}var i=Math.floor(Math.log(e)*this._scaleFactor),a=this._maxNormalLowerBoundaryIndex();return i>=a?a:i},t.prototype.lowerBoundary=function(e){var n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new pr("overflow: "+e+" is > maximum lower boundary: "+n)}var i=this._minNormalLowerBoundaryIndex();if(e<=i){if(e===i)return ui;if(e===i-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new pr("overflow: "+e+" is < minimum lower boundary: "+i)}return Math.exp(e*this._inverseFactor)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){return Ys<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(qs+1<<this._scale)-1},t}()});function gp(t){if(t>SM||t<_M)throw new pr("expected scale >= "+_M+" && <= "+SM+", got: "+t);return l8[t+10]}var _M,SM,l8,hM=m(()=>{"use strict";pM();EM();Ws();_M=-10,SM=20,l8=Array.from({length:31},function(t,e){return e>10?new dM(e-10):new fM(e-10)})});var c8,zs,f8,p8,Np,TM,Rp,vM=m(()=>{"use strict";Pn();Rn();x();Vt();aM();hM();Ks();c8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},zs=function(){function t(e,n){this.low=e,this.high=n}return t.combine=function(e,n){return new t(Math.min(e.low,n.low),Math.max(e.high,n.high))},t}(),f8=20,p8=160,Np=2,TM=function(){function t(e,n,i,a,s,o,r,u,l,c,p){e===void 0&&(e=e),n===void 0&&(n=p8),i===void 0&&(i=!0),a===void 0&&(a=0),s===void 0&&(s=0),o===void 0&&(o=0),r===void 0&&(r=Number.POSITIVE_INFINITY),u===void 0&&(u=Number.NEGATIVE_INFINITY),l===void 0&&(l=new yp),c===void 0&&(c=new yp),p===void 0&&(p=gp(f8)),this.startTime=e,this._maxSize=n,this._recordMinMax=i,this._sum=a,this._count=s,this._zeroCount=o,this._min=r,this._max=u,this._positive=l,this._negative=c,this._mapping=p,this._maxSize<Np&&(g.warn("Exponential Histogram Max Size set to "+this._maxSize+", changing to the minimum size of: "+Np),this._maxSize=Np)}return t.prototype.record=function(e){this.updateByIncrement(e,1)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){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}},Object.defineProperty(t.prototype,"sum",{get:function(){return this._sum},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zeroCount",{get:function(){return this._zeroCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._count===this._zeroCount?0:this._mapping.scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"positive",{get:function(){return this._positive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"negative",{get:function(){return this._negative},enumerable:!1,configurable:!0}),t.prototype.updateByIncrement=function(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}},t.prototype.merge=function(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)},t.prototype.diff=function(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)},t.prototype.clone=function(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)},t.prototype._updateBuckets=function(e,n,i){var a=this._mapping.mapToIndex(n),s=!1,o=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(s=!0,r=a,o=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(s=!0,r=e.indexStart,o=a),s){var u=this._changeScale(o,r);this._downscale(u),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,i)},t.prototype._incrementIndexBy=function(e,n,i){if(i!==0){if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){var a=e.indexEnd-n;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=n}else if(n>e.indexEnd){var a=n-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=n}var s=n-e.indexBase;s<0&&(s+=e.backing.length),e.incrementBucket(s,i)}},t.prototype._grow=function(e,n){var i=e.backing.length,a=e.indexBase-e.indexStart,s=i-a,o=lM(n);o>this._maxSize&&(o=this._maxSize);var r=o-a;e.backing.growTo(o,s,r)},t.prototype._changeScale=function(e,n){for(var i=0;e-n>=this._maxSize;)e>>=1,n>>=1,i++;return i},t.prototype._downscale=function(e){if(e!==0){if(e<0)throw new Error("impossible change of scale: "+this.scale);var n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=gp(n)}},t.prototype._minScale=function(e){var n=Math.min(this.scale,e.scale),i=zs.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=zs.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(i.high,i.low),n-this._changeScale(a.high,a.low))},t.prototype._highLowAtScale=function(e,n,i){if(e.length===0)return new zs(0,-1);var a=n-i;return new zs(e.indexStart>>a,e.indexEnd>>a)},t.prototype._mergeBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++)this._incrementIndexBy(e,s+r>>o,i.at(r))},t.prototype._diffBuckets=function(e,n,i,a){for(var s=i.offset,o=n.scale-a,r=0;r<i.length;r++){var u=s+r>>o,l=u-e.indexBase;l<0&&(l+=e.backing.length),e.decrementBucket(l,i.at(r))}e.trim()},t}(),Rp=function(){function t(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=et.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new TM(e,this._maxSize,this._recordMinMax)},t.prototype.merge=function(e,n){var i=n.clone();return i.merge(e),i},t.prototype.diff=function(e,n){var i=n.clone();return i.diff(e),i},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(function(s){var o=c8(s,2),r=o[0],u=o[1],l=u.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:u.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,positive:{offset:l.positive.offset,bucketCounts:l.positive.bucketCounts},negative:{offset:l.negative.offset,bucketCounts:l.negative.bucketCounts},count:l.count,scale:l.scale,zeroCount:l.zeroCount}}})}},t}()});var d8,Xs,Pp,mM=m(()=>{"use strict";Pn();K();Rn();d8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Xs=function(){function t(e,n,i){n===void 0&&(n=0),i===void 0&&(i=[0,0]),this.startTime=e,this._current=n,this.sampleTime=i}return t.prototype.record=function(e){this._current=e,this.sampleTime=ge(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Pp=function(){function t(){this.kind=et.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new Xs(e)},t.prototype.merge=function(e,n){var i=Ot(n.sampleTime)>=Ot(e.sampleTime)?n:e;return new Xs(e.startTime,i.toPointValue(),i.sampleTime)},t.prototype.diff=function(e,n){var i=Ot(n.sampleTime)>=Ot(e.sampleTime)?n:e;return new Xs(n.startTime,i.toPointValue(),i.sampleTime)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.GAUGE,dataPoints:i.map(function(s){var o=d8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}})}},t}()});var E8,bn,Js,yM=m(()=>{"use strict";Pn();Rn();E8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},bn=function(){function t(e,n,i,a){i===void 0&&(i=0),a===void 0&&(a=!1),this.startTime=e,this.monotonic=n,this._current=i,this.reset=a}return t.prototype.record=function(e){this.monotonic&&e<0||(this._current+=e)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Js=function(){function t(e){this.monotonic=e,this.kind=et.SUM}return t.prototype.createAccumulation=function(e){return new bn(e,this.monotonic)},t.prototype.merge=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return n.reset?new bn(n.startTime,this.monotonic,a,n.reset):new bn(e.startTime,this.monotonic,i+a)},t.prototype.diff=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return this.monotonic&&i>a?new bn(n.startTime,this.monotonic,a,!0):new bn(n.startTime,this.monotonic,a-i)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.SUM,dataPoints:i.map(function(s){var o=E8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var AM=m(()=>{"use strict";rM();iM();vM();mM();yM()});var Br,Ve,bp,xp,Mp,Lp,Ip,Cp,wp,OM,gM,NM,RM,_8,S8,Qs=m(()=>{"use strict";x();AM();Vt();Br=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ve=function(){function t(){}return t.Drop=function(){return OM},t.Sum=function(){return gM},t.LastValue=function(){return NM},t.Histogram=function(){return RM},t.ExponentialHistogram=function(){return _8},t.Default=function(){return S8},t}(),bp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Tp,e}(Ve),xp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){switch(n.type){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}},e.MONOTONIC_INSTANCE=new Js(!0),e.NON_MONOTONIC_INSTANCE=new Js(!1),e}(Ve),Mp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Pp,e}(Ve),Lp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Fs([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(Ve),Ip=function(t){Br(e,t);function e(n,i){i===void 0&&(i=!0);var a=t.call(this)||this;if(a._recordMinMax=i,n==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");n=n.concat(),n=n.sort(function(r,u){return r-u});var s=n.lastIndexOf(-1/0),o=n.indexOf(1/0);return o===-1&&(o=void 0),a._boundaries=n.slice(s+1,o),a}return e.prototype.createAggregator=function(n){return new Fs(this._boundaries,this._recordMinMax)},e}(Ve),Cp=function(t){Br(e,t);function e(n,i){n===void 0&&(n=160),i===void 0&&(i=!0);var a=t.call(this)||this;return a._maxSize=n,a._recordMinMax=i,a}return e.prototype.createAggregator=function(n){return new Rp(this._maxSize,this._recordMinMax)},e}(Ve),wp=function(t){Br(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._resolve=function(n){switch(n.type){case C.COUNTER:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return gM;case C.GAUGE:case C.OBSERVABLE_GAUGE:return NM;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new Ip(n.advice.explicitBucketBoundaries):RM}return g.warn("Unable to recognize instrument type: "+n.type),OM},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(Ve),OM=new bp,gM=new xp,NM=new Mp,RM=new Lp,_8=new Cp,S8=new wp});var PM,Zs,Up=m(()=>{"use strict";Qs();ks();PM=function(t){return Ve.Default()},Zs=function(t){return Ne.CUMULATIVE}});var Dp,Vp,bM,h8,eu,Bp=m(()=>{"use strict";x();gt();Up();Dp=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Vp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},bM=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},h8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},eu=function(){function t(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:PM,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:Zs,this._metricProducers=(a=e?.metricProducers)!==null&&a!==void 0?a:[]}return t.prototype.setMetricProducer=function(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t.prototype.onInitialized=function(){},t.prototype.collect=function(e){return Dp(this,void 0,void 0,function(){var n,i,a,s,o,r;return Vp(this,function(u){switch(u.label){case 0:if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");return[4,Promise.all(h8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],bM(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=bM.apply(void 0,[u.sent()]),i=n[0],a=n.slice(1),s=i.errors.concat(hp(a,function(l){return l.errors})),o=i.resourceMetrics.resource,r=i.resourceMetrics.scopeMetrics.concat(hp(a,function(l){return l.resourceMetrics.scopeMetrics})),[2,{resourceMetrics:{resource:o,scopeMetrics:r},errors:s}]}})})},t.prototype.shutdown=function(e){return Dp(this,void 0,void 0,function(){return Vp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.error("Cannot call shutdown twice."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onShutdown()];case 1:return n.sent(),[3,4];case 2:return[4,fr(this.onShutdown(),e.timeoutMillis)];case 3:n.sent(),n.label=4;case 4:return this._shutdown=!0,[2]}})})},t.prototype.forceFlush=function(e){return Dp(this,void 0,void 0,function(){return Vp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("Cannot forceFlush on already shutdown MetricReader."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onForceFlush()];case 1:return n.sent(),[2];case 2:return[4,fr(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var T8,tu,ru,v8,m8,nu,xM=m(()=>{"use strict";x();K();Bp();gt();T8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),tu=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},ru=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},v8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},m8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},nu=function(t){T8(e,t);function e(n){var i,a,s,o,r=t.call(this,{aggregationSelector:(i=n.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(n.exporter),aggregationTemporalitySelector:(a=n.exporter.selectAggregationTemporality)===null||a===void 0?void 0:a.bind(n.exporter),metricProducers:n.metricProducers})||this;if(n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<n.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");return r._exportInterval=(s=n.exportIntervalMillis)!==null&&s!==void 0?s:6e4,r._exportTimeout=(o=n.exportTimeoutMillis)!==null&&o!==void 0?o:3e4,r._exporter=n.exporter,r}return e.prototype._runOnce=function(){return tu(this,void 0,void 0,function(){var n;return ru(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,fr(this._doRun(),this._exportTimeout)];case 1:return i.sent(),[3,3];case 2:return n=i.sent(),n instanceof si?(g.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout),[2]):(Te(n),[3,3]);case 3:return[2]}})})},e.prototype._doRun=function(){var n,i;return tu(this,void 0,void 0,function(){var a,s,o,r,u,l;return ru(this,function(c){switch(c.label){case 0:return[4,this.collect({timeoutMillis:this._exportTimeout})];case 1:if(a=c.sent(),s=a.resourceMetrics,o=a.errors,o.length>0&&(l=g).error.apply(l,m8(["PeriodicExportingMetricReader: metrics collection errors"],v8(o),!1)),!s.resource.asyncAttributesPending)return[3,5];c.label=2;case 2:return c.trys.push([2,4,,5]),[4,(i=(n=s.resource).waitForAsyncAttributes)===null||i===void 0?void 0:i.call(n)];case 3:return c.sent(),[3,5];case 4:return r=c.sent(),g.debug("Error while resolving async portion of resource: ",r),Te(r),[3,5];case 5:return[4,ai._export(this._exporter,s)];case 6:if(u=c.sent(),u.code!==ee.SUCCESS)throw new Error("PeriodicExportingMetricReader: metrics export failed (error "+u.error+")");return[2]}})})},e.prototype.onInitialized=function(){var n=this;this._interval=setInterval(function(){n._runOnce()},this._exportInterval),ur(this._interval)},e.prototype.onForceFlush=function(){return tu(this,void 0,void 0,function(){return ru(this,function(n){switch(n.label){case 0:return[4,this._runOnce()];case 1:return n.sent(),[4,this._exporter.forceFlush()];case 2:return n.sent(),[2]}})})},e.prototype.onShutdown=function(){return tu(this,void 0,void 0,function(){return ru(this,function(n){switch(n.label){case 0:return this._interval&&clearInterval(this._interval),[4,this._exporter.shutdown()];case 1:return n.sent(),[2]}})})},e}(eu)});var MM,LM=m(()=>{"use strict";K();MM=function(){function t(e){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=e}return t.prototype.export=function(e,n){if(this._shutdown){setTimeout(function(){return n({code:ee.FAILED})},0);return}this._metrics.push(e),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.getMetrics=function(){return this._metrics},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._metrics=[]},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporality},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t}()});var IM,CM,wM=m(()=>{"use strict";K();Up();IM=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},CM=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:Zs}return t.prototype.export=function(e,n){if(this._shutdown){setImmediate(n,{code:ee.FAILED});return}return t._sendMetrics(e,n)},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregationTemporality=function(e){return this._temporalitySelector(e)},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t._sendMetrics=function(e,n){var i,a,s,o;try{for(var r=IM(e.scopeMetrics),u=r.next();!u.done;u=r.next()){var l=u.value;try{for(var c=(s=void 0,IM(l.metrics)),p=c.next();!p.done;p=c.next()){var _=p.value;console.dir({descriptor:_.descriptor,dataPointType:_.dataPointType,dataPoints:_.dataPoints},{depth:null})}}catch(f){s={error:f}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}}catch(f){i={error:f}}finally{try{u&&!u.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}n({code:ee.SUCCESS})},t}()});var UM,DM=m(()=>{"use strict";UM=function(){function t(){this._registeredViews=[]}return t.prototype.addView=function(e){this._registeredViews.push(e)},t.prototype.findViews=function(e,n){var i=this,a=this._registeredViews.filter(function(s){return i._matchInstrument(s.instrumentSelector,e)&&i._matchMeter(s.meterSelector,n)});return a},t.prototype._matchInstrument=function(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)},t.prototype._matchMeter=function(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))},t}()});function ci(t){return t instanceof iu}var Gr,ou,VM,BM,GM,kM,iu,HM,FM,YM,au=m(()=>{"use strict";x();K();Gr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ou=function(){function t(e,n){this._writableMetricStorage=e,this._descriptor=n}return t.prototype._record=function(e,n,i){if(n===void 0&&(n={}),i===void 0&&(i=Ye.active()),typeof e!="number"){g.warn("non-number value provided to metric "+this._descriptor.name+": "+e);return}this._descriptor.valueType===pt.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._descriptor.name+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,i,ge(Date.now()))},t}(),VM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){this._record(n,i,a)},e}(ou),BM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){if(n<0){g.warn("negative value provided to counter "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(ou),GM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){this._record(n,i,a)},e}(ou),kM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){if(n<0){g.warn("negative value provided to histogram "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(ou),iu=function(){function t(e,n,i){this._observableRegistry=i,this._descriptor=e,this._metricStorages=n}return t.prototype.addCallback=function(e){this._observableRegistry.addCallback(e,this)},t.prototype.removeCallback=function(e){this._observableRegistry.removeCallback(e,this)},t}(),HM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(iu),FM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(iu),YM=function(t){Gr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(iu)});var qM,jM=m(()=>{"use strict";Vt();au();qM=function(){function t(e){this._meterSharedState=e}return t.prototype.createGauge=function(e,n){var i=Nt(e,C.GAUGE,n),a=this._meterSharedState.registerMetricStorage(i);return new GM(a,i)},t.prototype.createHistogram=function(e,n){var i=Nt(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new kM(a,i)},t.prototype.createCounter=function(e,n){var i=Nt(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new BM(a,i)},t.prototype.createUpDownCounter=function(e,n){var i=Nt(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new VM(a,i)},t.prototype.createObservableGauge=function(e,n){var i=Nt(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new FM(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableCounter=function(e,n){var i=Nt(e,C.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new HM(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableUpDownCounter=function(e,n){var i=Nt(e,C.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new YM(i,a,this._meterSharedState.observableRegistry)},t.prototype.addBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)},t.prototype.removeBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)},t}()});var su,Gp=m(()=>{"use strict";Vt();su=function(){function t(e){this._instrumentDescriptor=e}return t.prototype.getInstrumentDescriptor=function(){return this._instrumentDescriptor},t.prototype.updateDescription=function(e){this._instrumentDescriptor=Nt(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})},t}()});var y8,$M,A8,ct,fi=m(()=>{"use strict";gt();y8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),$M=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},A8=function(){function t(e){this._hash=e,this._valueMap=new Map,this._keyMap=new Map}return t.prototype.get=function(e,n){return n??(n=this._hash(e)),this._valueMap.get(n)},t.prototype.getOrDefault=function(e,n){var i=this._hash(e);if(this._valueMap.has(i))return this._valueMap.get(i);var a=n();return this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,a),a},t.prototype.set=function(e,n,i){i??(i=this._hash(e)),this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,n)},t.prototype.has=function(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)},t.prototype.keys=function(){var e,n;return $M(this,function(i){switch(i.label){case 0:e=this._keyMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},t.prototype.entries=function(){var e,n;return $M(this,function(i){switch(i.label){case 0:e=this._valueMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[this._keyMap.get(n.value[0]),n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},Object.defineProperty(t.prototype,"size",{get:function(){return this._valueMap.size},enumerable:!1,configurable:!0}),t}(),ct=function(t){y8(e,t);function e(){return t.call(this,zx)||this}return e}(A8)});var O8,uu,kp=m(()=>{"use strict";fi();O8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},uu=function(){function t(e){this._aggregator=e,this._activeCollectionStorage=new ct,this._cumulativeMemoStorage=new ct}return t.prototype.record=function(e,n,i,a){var s=this,o=this._activeCollectionStorage.getOrDefault(n,function(){return s._aggregator.createAccumulation(a)});o?.record(e)},t.prototype.batchCumulate=function(e,n){var i=this;Array.from(e.entries()).forEach(function(a){var s=O8(a,3),o=s[0],r=s[1],u=s[2],l=i._aggregator.createAccumulation(n);l?.record(r);var c=l;if(i._cumulativeMemoStorage.has(o,u)){var p=i._cumulativeMemoStorage.get(o,u);c=i._aggregator.diff(p,l)}if(i._activeCollectionStorage.has(o,u)){var _=i._activeCollectionStorage.get(o,u);c=i._aggregator.merge(_,c)}i._cumulativeMemoStorage.set(o,l,u),i._activeCollectionStorage.set(o,c,u)})},t.prototype.collect=function(){var e=this._activeCollectionStorage;return this._activeCollectionStorage=new ct,e},t}()});function g8(t){return Array.from(t.entries())}var Hp,KM,lu,Fp=m(()=>{"use strict";ks();fi();Hp=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},KM=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},lu=function(){function t(e,n){var i=this;this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(function(a){i._unreportedAccumulations.set(a,[])})}return t.prototype.buildMetrics=function(e,n,i,a){this._stashAccumulations(i);var s=this._getMergedUnreportedAccumulations(e),o=s,r;if(this._reportHistory.has(e)){var u=this._reportHistory.get(e),l=u.collectionTime;r=u.aggregationTemporality,r===Ne.CUMULATIVE?o=t.merge(u.accumulations,s,this._aggregator):o=t.calibrateStartTime(u.accumulations,s,l)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:o,collectionTime:a,aggregationTemporality:r});var c=g8(o);if(c.length!==0)return this._aggregator.toMetricData(n,r,c,a)},t.prototype._stashAccumulations=function(e){var n,i,a=this._unreportedAccumulations.keys();try{for(var s=Hp(a),o=s.next();!o.done;o=s.next()){var r=o.value,u=this._unreportedAccumulations.get(r);u===void 0&&(u=[],this._unreportedAccumulations.set(r,u)),u.push(e)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},t.prototype._getMergedUnreportedAccumulations=function(e){var n,i,a=new ct,s=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),s===void 0)return a;try{for(var o=Hp(s),r=o.next();!r.done;r=o.next()){var u=r.value;a=t.merge(a,u,this._aggregator)}}catch(l){n={error:l}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.merge=function(e,n,i){for(var a=e,s=n.entries(),o=s.next();o.done!==!0;){var r=KM(o.value,3),u=r[0],l=r[1],c=r[2];if(e.has(u,c)){var p=e.get(u,c),_=i.merge(p,l);a.set(u,_,c)}else a.set(u,l,c);o=s.next()}return a},t.calibrateStartTime=function(e,n,i){var a,s;try{for(var o=Hp(e.keys()),r=o.next();!r.done;r=o.next()){var u=KM(r.value,2),l=u[0],c=u[1],p=n.get(l,c);p?.setStartTime(i)}}catch(_){a={error:_}}finally{try{r&&!r.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}return n},t}()});var N8,R8,WM,zM=m(()=>{"use strict";Gp();kp();Fp();fi();N8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),R8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},WM=function(t){N8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new uu(i),o._temporalMetricStorage=new lu(i,s),o}return e.prototype.record=function(n,i){var a=this,s=new ct;Array.from(n.entries()).forEach(function(o){var r=R8(o,2),u=r[0],l=r[1];s.set(a._attributesProcessor.process(u),l)}),this._deltaMetricStorage.batchCumulate(s,i)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(su)});function Yp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
32
|
+
${A}`),S.pop(),`{${G}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function c(_,f,S){switch(typeof f){case"string":return Kt(f);case"object":{if(f===null)return"null";if(typeof f.toJSON=="function"){if(f=f.toJSON(_),typeof f!="object")return c(_,f,S);if(f===null)return"null"}if(S.indexOf(f)!==-1)return n;let v="";if(Array.isArray(f)){if(f.length===0)return"[]";if(u<S.length+1)return'"[Array]"';S.push(f);let U=Math.min(f.length,o),G=0;for(;G<U-1;G++){let ae=c(String(G),f[G],S);v+=ae!==void 0?ae:"null",v+=","}let F=c(String(G),f[G],S);if(v+=F!==void 0?F:"null",f.length-1>o){let ae=f.length-o-1;v+=`,"... ${yr(ae)} not stringified"`}return S.pop(),`[${v}]`}let T=Object.keys(f),A=T.length;if(A===0)return"{}";if(u<S.length+1)return'"[Object]"';let O="",N=Math.min(A,o);Mc(f)&&(v+=Hg(f,",",o),T=T.slice(f.length),N-=f.length,O=","),a&&(T=xc(T)),S.push(f);for(let U=0;U<N;U++){let G=T[U],F=c(G,f[G],S);F!==void 0&&(v+=`${O}${Kt(G)}:${F}`,O=",")}if(A>o){let U=A-o;v+=`${O}"...":"${yr(U)} not stringified"`}return S.pop(),`{${v}}`}case"number":return isFinite(f)?String(f):e?e(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return e?e(f):void 0}}function p(_,f,S){if(arguments.length>1){let v="";if(typeof S=="number"?v=" ".repeat(Math.min(S,10)):typeof S=="string"&&(v=S.slice(0,10)),f!=null){if(typeof f=="function")return r("",{"":_},[],f,v,"");if(Array.isArray(f))return s("",_,[],HY(f),v,"")}if(v.length!==0)return l("",_,[],v,"")}return c("",_,[])}return p}});var Cc=h((Eee,jg)=>{"use strict";var YY=qe(),{MESSAGE:qY}=pe(),jY=To();function $Y(t,e){return typeof e=="bigint"?e.toString():e}jg.exports=YY((t,e)=>{let n=jY.configure(e);return t[qY]=n(t,e.replacer||$Y,e.space),t})});var Kg=h((_ee,$g)=>{"use strict";var KY=qe();$g.exports=KY((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var zg=h((See,Wg)=>{"use strict";var WY=qe(),{MESSAGE:zY}=pe(),XY=To();Wg.exports=WY(t=>{let e={};return t.message&&(e["@message"]=t.message,delete t.message),t.timestamp&&(e["@timestamp"]=t.timestamp,delete t.timestamp),e["@fields"]=t,t[zY]=XY(e),t})});var Jg=h((hee,Xg)=>{"use strict";var JY=qe();function QY(t,e,n){let i=e.reduce((u,o)=>(u[o]=t[o],delete t[o],u),{}),a=Object.keys(t).reduce((u,o)=>(u[o]=t[o],delete t[o],u),{});return Object.assign(t,i,{[n]:a}),t}function ZY(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}Xg.exports=JY((t,e={})=>{let n="metadata";e.key&&(n=e.key);let i=[];return!e.fillExcept&&!e.fillWith&&(i.push("level"),i.push("message")),e.fillExcept&&(i=e.fillExcept),i.length>0?QY(t,i,n):e.fillWith?ZY(t,e.fillWith,n):t})});var Zg=h((Tee,Qg)=>{"use strict";var on=1e3,an=on*60,un=an*60,Or=un*24,eq=Or*7,tq=Or*365.25;Qg.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return rq(t);if(n==="number"&&isFinite(t))return e.long?oq(t):nq(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function rq(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),i=(e[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return n*tq;case"weeks":case"week":case"w":return n*eq;case"days":case"day":case"d":return n*Or;case"hours":case"hour":case"hrs":case"hr":case"h":return n*un;case"minutes":case"minute":case"mins":case"min":case"m":return n*an;case"seconds":case"second":case"secs":case"sec":case"s":return n*on;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function nq(t){var e=Math.abs(t);return e>=Or?Math.round(t/Or)+"d":e>=un?Math.round(t/un)+"h":e>=an?Math.round(t/an)+"m":e>=on?Math.round(t/on)+"s":t+"ms"}function oq(t){var e=Math.abs(t);return e>=Or?pa(t,e,Or,"day"):e>=un?pa(t,e,un,"hour"):e>=an?pa(t,e,an,"minute"):e>=on?pa(t,e,on,"second"):t+" ms"}function pa(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var tN=h((vo,eN)=>{"use strict";var iq=qe(),aq=Zg();eN.exports=iq(t=>{let e=+new Date;return vo.diff=e-(vo.prevTime||e),vo.prevTime=e,t.ms=`+${aq(vo.diff)}`,t})});var oN=h((vee,nN)=>{"use strict";var uq=L("util").inspect,sq=qe(),{LEVEL:lq,MESSAGE:rN,SPLAT:cq}=pe();nN.exports=sq((t,e={})=>{let n=Object.assign({},t);return delete n[lq],delete n[rN],delete n[cq],t[rN]=uq(n,!1,e.depth||null,e.colorize),t})});var iN=h((mee,Ea)=>{"use strict";var{MESSAGE:fq}=pe(),da=class{constructor(e){this.template=e}transform(e){return e[fq]=this.template(e),e}};Ea.exports=t=>new da(t);Ea.exports.Printf=Ea.exports.Format=da});var sN=h((yee,uN)=>{"use strict";var pq=qe(),{MESSAGE:aN}=pe(),dq=To();uN.exports=pq(t=>{let e=dq(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[aN]=`${t.level}:${n} ${t.message} ${e}`:t[aN]=`${t.level}:${n} ${t.message}`,t})});var fN=h((Aee,cN)=>{"use strict";var Eq=L("util"),{SPLAT:lN}=pe(),_q=/%[scdjifoO%]/g,Sq=/%%/g,wc=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[lN]||e.splat||[],u=i.match(Sq),o=u&&u.length||0,s=n.length-o-a.length,l=s<0?a.splice(s,-1*s):[],c=l.length;if(c)for(let p=0;p<c;p++)Object.assign(e,l[p]);return e.message=Eq.format(i,...a),e}transform(e){let n=e.message,i=e[lN]||e.splat;if(!i||!i.length)return e;let a=n&&n.match&&n.match(_q);if(!a&&(i||i.length)){let u=i.length>1?i.splice(0):i,o=u.length;if(o)for(let r=0;r<o;r++)Object.assign(e,u[r]);return e}return a?this._splat(e,a):e}};cN.exports=t=>new wc(t)});var bN={};Je(bN,{assign:()=>Xt,default:()=>gq,defaultI18n:()=>Dc,format:()=>RN,parse:()=>PN,setGlobalDateI18n:()=>gN,setGlobalDateMasks:()=>NN});function yN(t,e){for(var n=[],i=0,a=t.length;i<a;i++)n.push(t[i].substr(0,e));return n}function Xt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,a=e;i<a.length;i++){var u=a[i];for(var o in u)t[o]=u[o]}return t}function PN(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=Sa[e]||e,t.length>1e3)return null;var i=new Date,a={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},u=[],o=[],r=e.replace(mN,function(U,G){return o.push(dN(G)),"@@@"}),s={},l={};r=dN(r).replace(vN,function(U){var G=Aq[U],F=G[0],ae=G[1],j=G[3];if(s[F])throw new Error("Invalid format. "+F+" specified twice in format");return s[F]=!0,j&&(l[j]=!0),u.push(G),"("+ae+")"}),Object.keys(l).forEach(function(U){if(!s[U])throw new Error("Invalid format. "+U+" is required in specified format")}),r=r.replace(/@@@/g,function(){return o.shift()});var c=t.match(new RegExp(r,"i"));if(!c)return null;for(var p=Xt(Xt({},_a),n),_=1;_<c.length;_++){var f=u[_-1],S=f[0],v=f[2],T=v?v(c[_],p):+c[_];if(T==null)return null;a[S]=T}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var A;if(a.timezoneOffset==null){A=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],_=0,N=O.length;_<N;_++)if(s[O[_][0]]&&a[O[_][0]]!==A[O[_][1]]())return null}else if(A=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return A}var vN,zt,Wt,hq,Tq,mo,mN,pN,AN,ON,vq,mq,Dc,_a,gN,dN,je,yq,EN,_N,SN,hN,TN,Aq,Sa,NN,RN,Oq,gq,xN=m(()=>{"use strict";vN=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,zt="\\d\\d?",Wt="\\d\\d",hq="\\d{3}",Tq="\\d{4}",mo="[^\\s]+",mN=/\[([^]*?)\]/gm;pN=function(t){return function(e,n){var i=n[t].map(function(u){return u.toLowerCase()}),a=i.indexOf(e.toLowerCase());return a>-1?a:null}};AN=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ON=["January","February","March","April","May","June","July","August","September","October","November","December"],vq=yN(ON,3),mq=yN(AN,3),Dc={dayNamesShort:mq,dayNames:AN,monthNamesShort:vq,monthNames:ON,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},_a=Xt({},Dc),gN=function(t){return _a=Xt(_a,t)},dN=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},je=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},yq={D:function(t){return String(t.getDate())},DD:function(t){return je(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return je(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return je(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return je(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return je(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return je(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return je(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return je(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return je(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return je(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return je(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+je(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+je(Math.floor(Math.abs(e)/60),2)+":"+je(Math.abs(e)%60,2)}},EN=function(t){return+t-1},_N=[null,zt],SN=[null,mo],hN=["isPm",mo,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],TN=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],Aq={D:["day",zt],DD:["day",Wt],Do:["day",zt+mo,function(t){return parseInt(t,10)}],M:["month",zt,EN],MM:["month",Wt,EN],YY:["year",Wt,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",zt,void 0,"isPm"],hh:["hour",Wt,void 0,"isPm"],H:["hour",zt],HH:["hour",Wt],m:["minute",zt],mm:["minute",Wt],s:["second",zt],ss:["second",Wt],YYYY:["year",Tq],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",Wt,function(t){return+t*10}],SSS:["millisecond",hq],d:_N,dd:_N,ddd:SN,dddd:SN,MMM:["month",mo,pN("monthNamesShort")],MMMM:["month",mo,pN("monthNames")],a:hN,A:hN,ZZ:TN,Z:TN},Sa={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},NN=function(t){return Xt(Sa,t)},RN=function(t,e,n){if(e===void 0&&(e=Sa.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=Sa[e]||e;var i=[];e=e.replace(mN,function(u,o){return i.push(o),"@@@"});var a=Xt(Xt({},_a),n);return e=e.replace(vN,function(u){return yq[u](t,a)}),e.replace(/@@@/g,function(){return i.shift()})};Oq={format:RN,parse:PN,defaultI18n:Dc,setGlobalDateI18n:gN,setGlobalDateMasks:NN},gq=Oq});var LN=h((Oee,MN)=>{"use strict";var Nq=(xN(),Y(bN)),Rq=qe();MN.exports=Rq((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():Nq.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var CN=h((gee,IN)=>{"use strict";var Uc=hc(),Pq=qe(),{MESSAGE:Vc}=pe();IN.exports=Pq((t,e)=>(e.level!==!1&&(t.level=Uc.strip(t.level)),e.message!==!1&&(t.message=Uc.strip(String(t.message))),e.raw!==!1&&t[Vc]&&(t[Vc]=Uc.strip(String(t[Vc]))),t))});var Gc=h(Bc=>{"use strict";var bq=Bc.format=qe();Bc.levels=Lg();function ye(t,e){Object.defineProperty(bq,t,{get(){return e()},configurable:!0})}ye("align",function(){return Cg()});ye("errors",function(){return Ug()});ye("cli",function(){return Bg()});ye("combine",function(){return kg()});ye("colorize",function(){return ua()});ye("json",function(){return Cc()});ye("label",function(){return Kg()});ye("logstash",function(){return zg()});ye("metadata",function(){return Jg()});ye("ms",function(){return tN()});ye("padLevels",function(){return Rc()});ye("prettyPrint",function(){return oN()});ye("printf",function(){return iN()});ye("simple",function(){return sN()});ye("splat",function(){return fN()});ye("timestamp",function(){return LN()});ye("uncolorize",function(){return CN()})});var kc=h(ha=>{"use strict";var{format:wN}=L("util");ha.warn={deprecated(t){return()=>{throw new Error(wN("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([wN("{ %s } was removed in winston@3.0.0.",t),"Use a custom winston.format = winston.format(function) instead."].join(`
|
33
|
+
`))}},forFunctions(t,e,n){n.forEach(i=>{t[i]=ha.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=ha.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var DN=h((Pee,xq)=>{xq.exports={name:"winston",description:"A logger for just about everything.",version:"3.13.0",author:"Charlie Robbins <charlie.robbins@gmail.com>",maintainers:["David Hyde <dabh@alumni.stanford.edu>"],repository:{type:"git",url:"https://github.com/winstonjs/winston.git"},keywords:["winston","logger","logging","logs","sysadmin","bunyan","pino","loglevel","tools","json","stream"],dependencies:{"@dabh/diagnostics":"^2.0.2","@colors/colors":"^1.6.0",async:"^3.2.3","is-stream":"^2.0.0",logform:"^2.4.0","one-time":"^1.0.0","readable-stream":"^3.4.0","safe-stable-stringify":"^2.3.1","stack-trace":"0.0.x","triple-beam":"^1.3.0","winston-transport":"^4.7.0"},devDependencies:{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","@dabh/eslint-config-populist":"^5.0.0","@types/node":"^20.11.24","abstract-winston-transport":"^0.5.1",assume:"^2.2.0","cross-spawn-async":"^2.2.5",eslint:"^8.57.0",hock:"^1.4.1",mocha:"^10.3.0",nyc:"^15.1.0",rimraf:"^5.0.5",split2:"^4.1.0","std-mocks":"^2.0.0",through2:"^4.0.2","winston-compat":"^0.1.5"},main:"./lib/winston.js",browser:"./dist/winston",types:"./index.d.ts",scripts:{lint:"eslint lib/*.js lib/winston/*.js lib/winston/**/*.js --resolve-plugins-relative-to ./node_modules/@dabh/eslint-config-populist",test:"rimraf test/fixtures/logs/* && mocha","test:coverage":"nyc npm run test:unit","test:unit":"mocha test/unit","test:integration":"mocha test/integration",build:"rimraf dist && babel lib -d dist",prepublishOnly:"npm run build"},engines:{node:">= 12.0.0"},license:"MIT"}});var VN=h((bee,UN)=>{"use strict";UN.exports=L("util").deprecate});var Hc=h((xee,BN)=>{"use strict";BN.exports=L("stream")});var Yc=h((Mee,kN)=>{"use strict";function Mq(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Fc,this,t)):process.nextTick(Fc,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(u){!e&&u?n._writableState?n._writableState.errorEmitted?process.nextTick(Ta,n):(n._writableState.errorEmitted=!0,process.nextTick(GN,n,u)):process.nextTick(GN,n,u):e?(process.nextTick(Ta,n),e(u)):process.nextTick(Ta,n)}),this)}function GN(t,e){Fc(t,e),Ta(t)}function Ta(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Lq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Fc(t,e){t.emit("error",e)}function Iq(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}kN.exports={destroy:Mq,undestroy:Lq,errorOrDestroy:Iq}});var Jt=h((Lee,YN)=>{"use strict";var FN={};function Qe(t,e,n){n||(n=Error);function i(u,o,r){return typeof e=="string"?e:e(u,o,r)}class a extends n{constructor(o,r,s){super(i(o,r,s))}}a.prototype.name=n.name,a.prototype.code=t,FN[t]=a}function HN(t,e){if(Array.isArray(t)){let n=t.length;return t=t.map(i=>String(i)),n>2?`one of ${e} ${t.slice(0,n-1).join(", ")}, or `+t[n-1]:n===2?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}else return`of ${e} ${String(t)}`}function Cq(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function wq(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function Dq(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}Qe("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Qe("ERR_INVALID_ARG_TYPE",function(t,e,n){let i;typeof e=="string"&&Cq(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(wq(t," argument"))a=`The ${t} ${i} ${HN(e,"type")}`;else{let u=Dq(t,".")?"property":"argument";a=`The "${t}" ${u} ${i} ${HN(e,"type")}`}return a+=`. Received type ${typeof n}`,a},TypeError);Qe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Qe("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Qe("ERR_STREAM_PREMATURE_CLOSE","Premature close");Qe("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Qe("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Qe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Qe("ERR_STREAM_WRITE_AFTER_END","write after end");Qe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Qe("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Qe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");YN.exports.codes=FN});var qc=h((Iee,qN)=>{"use strict";var Uq=Jt().codes.ERR_INVALID_OPT_VALUE;function Vq(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function Bq(t,e,n,i){var a=Vq(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var u=i?n:"highWaterMark";throw new Uq(u,a)}return Math.floor(a)}return t.objectMode?16:16*1024}qN.exports={getHighWaterMark:Bq}});var jN=h((Cee,jc)=>{"use strict";typeof Object.create=="function"?jc.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:jc.exports=function(e,n){if(n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}}});var sn=h((wee,Kc)=>{"use strict";try{if($c=L("util"),typeof $c.inherits!="function")throw"";Kc.exports=$c.inherits}catch{Kc.exports=jN()}var $c});var JN=h((Dee,XN)=>{"use strict";function $N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function KN(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$N(Object(n),!0).forEach(function(i){Gq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Gq(t,e,n){return e=zN(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WN(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,zN(i.key),i)}}function Hq(t,e,n){return e&&WN(t.prototype,e),n&&WN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function zN(t){var e=Fq(t,"string");return typeof e=="symbol"?e:String(e)}function Fq(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Yq=L("buffer"),va=Yq.Buffer,qq=L("util"),Wc=qq.inspect,jq=Wc&&Wc.custom||"inspect";function $q(t,e,n){va.prototype.copy.call(t,e,n)}XN.exports=function(){function t(){kq(this,t),this.head=null,this.tail=null,this.length=0}return Hq(t,[{key:"push",value:function(n){var i={data:n,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(n){var i={data:n,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=n+i.data;return a}},{key:"concat",value:function(n){if(this.length===0)return va.alloc(0);for(var i=va.allocUnsafe(n>>>0),a=this.head,u=0;a;)$q(a.data,i,u),u+=a.data.length,a=a.next;return i}},{key:"consume",value:function(n,i){var a;return n<this.head.data.length?(a=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?a=this.shift():a=i?this._getString(n):this._getBuffer(n),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var i=this.head,a=1,u=i.data;for(n-=u.length;i=i.next;){var o=i.data,r=n>o.length?o.length:n;if(r===o.length?u+=o:u+=o.slice(0,n),n-=r,n===0){r===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(r));break}++a}return this.length-=a,u}},{key:"_getBuffer",value:function(n){var i=va.allocUnsafe(n),a=this.head,u=1;for(a.data.copy(i),n-=a.data.length;a=a.next;){var o=a.data,r=n>o.length?o.length:n;if(o.copy(i,i.length-n,0,r),n-=r,n===0){r===o.length?(++u,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(r));break}++u}return this.length-=u,i}},{key:jq,value:function(n,i){return Wc(this,KN(KN({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var eR=h((zc,ZN)=>{"use strict";var ma=L("buffer"),vt=ma.Buffer;function QN(t,e){for(var n in t)e[n]=t[n]}vt.from&&vt.alloc&&vt.allocUnsafe&&vt.allocUnsafeSlow?ZN.exports=ma:(QN(ma,zc),zc.Buffer=gr);function gr(t,e,n){return vt(t,e,n)}gr.prototype=Object.create(vt.prototype);QN(vt,gr);gr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return vt(t,e,n)};gr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var i=vt(t);return e!==void 0?typeof n=="string"?i.fill(e,n):i.fill(e):i.fill(0),i};gr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return vt(t)};gr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ma.SlowBuffer(t)}});var Qc=h(rR=>{"use strict";var Jc=eR().Buffer,tR=Jc.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Kq(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function Wq(t){var e=Kq(t);if(typeof e!="string"&&(Jc.isEncoding===tR||!tR(t)))throw new Error("Unknown encoding: "+t);return e||t}rR.StringDecoder=yo;function yo(t){this.encoding=Wq(t);var e;switch(this.encoding){case"utf16le":this.text=e5,this.end=t5,e=4;break;case"utf8":this.fillLast=Jq,e=4;break;case"base64":this.text=r5,this.end=n5,e=3;break;default:this.write=o5,this.end=i5;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Jc.allocUnsafe(e)}yo.prototype.write=function(t){if(t.length===0)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""};yo.prototype.end=Zq;yo.prototype.text=Qq;yo.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function Xc(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function zq(t,e,n){var i=e.length-1;if(i<n)return 0;var a=Xc(e[i]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--i<n||a===-2?0:(a=Xc(e[i]),a>=0?(a>0&&(t.lastNeed=a-2),a):--i<n||a===-2?0:(a=Xc(e[i]),a>=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function Xq(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"\uFFFD";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"\uFFFD";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"\uFFFD"}}function Jq(t){var e=this.lastTotal-this.lastNeed,n=Xq(this,t,e);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function Qq(t,e){var n=zq(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)}function Zq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function e5(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function t5(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function r5(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function n5(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function o5(t){return t.toString(this.encoding)}function i5(t){return t&&t.length?this.write(t):""}});var ya=h((Vee,iR)=>{"use strict";var nR=Jt().codes.ERR_STREAM_PREMATURE_CLOSE;function a5(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];t.apply(this,i)}}}function u5(){}function s5(t){return t.setHeader&&typeof t.abort=="function"}function oR(t,e,n){if(typeof e=="function")return oR(t,null,e);e||(e={}),n=a5(n||u5);var i=e.readable||e.readable!==!1&&t.readable,a=e.writable||e.writable!==!1&&t.writable,u=function(){t.writable||r()},o=t._writableState&&t._writableState.finished,r=function(){a=!1,o=!0,i||n.call(t)},s=t._readableState&&t._readableState.endEmitted,l=function(){i=!1,s=!0,a||n.call(t)},c=function(S){n.call(t,S)},p=function(){var S;if(i&&!s)return(!t._readableState||!t._readableState.ended)&&(S=new nR),n.call(t,S);if(a&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new nR),n.call(t,S)},_=function(){t.req.on("finish",r)};return s5(t)?(t.on("complete",r),t.on("abort",p),t.req?_():t.on("request",_)):a&&!t._writableState&&(t.on("end",u),t.on("close",u)),t.on("end",l),t.on("finish",r),e.error!==!1&&t.on("error",c),t.on("close",p),function(){t.removeListener("complete",r),t.removeListener("abort",p),t.removeListener("request",_),t.req&&t.req.removeListener("finish",r),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",r),t.removeListener("end",l),t.removeListener("error",c),t.removeListener("close",p)}}iR.exports=oR});var uR=h((Bee,aR)=>{"use strict";var Aa;function Qt(t,e,n){return e=l5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l5(t){var e=c5(t,"string");return typeof e=="symbol"?e:String(e)}function c5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var f5=ya(),Zt=Symbol("lastResolve"),Nr=Symbol("lastReject"),Ao=Symbol("error"),Oa=Symbol("ended"),Rr=Symbol("lastPromise"),Zc=Symbol("handlePromise"),Pr=Symbol("stream");function er(t,e){return{value:t,done:e}}function p5(t){var e=t[Zt];if(e!==null){var n=t[Pr].read();n!==null&&(t[Rr]=null,t[Zt]=null,t[Nr]=null,e(er(n,!1)))}}function d5(t){process.nextTick(p5,t)}function E5(t,e){return function(n,i){t.then(function(){if(e[Oa]){n(er(void 0,!0));return}e[Zc](n,i)},i)}}var _5=Object.getPrototypeOf(function(){}),S5=Object.setPrototypeOf((Aa={get stream(){return this[Pr]},next:function(){var e=this,n=this[Ao];if(n!==null)return Promise.reject(n);if(this[Oa])return Promise.resolve(er(void 0,!0));if(this[Pr].destroyed)return new Promise(function(o,r){process.nextTick(function(){e[Ao]?r(e[Ao]):o(er(void 0,!0))})});var i=this[Rr],a;if(i)a=new Promise(E5(i,this));else{var u=this[Pr].read();if(u!==null)return Promise.resolve(er(u,!1));a=new Promise(this[Zc])}return this[Rr]=a,a}},Qt(Aa,Symbol.asyncIterator,function(){return this}),Qt(Aa,"return",function(){var e=this;return new Promise(function(n,i){e[Pr].destroy(null,function(a){if(a){i(a);return}n(er(void 0,!0))})})}),Aa),_5),h5=function(e){var n,i=Object.create(S5,(n={},Qt(n,Pr,{value:e,writable:!0}),Qt(n,Zt,{value:null,writable:!0}),Qt(n,Nr,{value:null,writable:!0}),Qt(n,Ao,{value:null,writable:!0}),Qt(n,Oa,{value:e._readableState.endEmitted,writable:!0}),Qt(n,Zc,{value:function(u,o){var r=i[Pr].read();r?(i[Rr]=null,i[Zt]=null,i[Nr]=null,u(er(r,!1))):(i[Zt]=u,i[Nr]=o)},writable:!0}),n));return i[Rr]=null,f5(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var u=i[Nr];u!==null&&(i[Rr]=null,i[Zt]=null,i[Nr]=null,u(a)),i[Ao]=a;return}var o=i[Zt];o!==null&&(i[Rr]=null,i[Zt]=null,i[Nr]=null,o(er(void 0,!0))),i[Oa]=!0}),e.on("readable",d5.bind(null,i)),i};aR.exports=h5});var fR=h((Gee,cR)=>{"use strict";function sR(t,e,n,i,a,u,o){try{var r=t[u](o),s=r.value}catch(l){n(l);return}r.done?e(s):Promise.resolve(s).then(i,a)}function T5(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var u=t.apply(e,n);function o(s){sR(u,i,a,o,r,"next",s)}function r(s){sR(u,i,a,o,r,"throw",s)}o(void 0)})}}function lR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,i)}return n}function v5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lR(Object(n),!0).forEach(function(i){m5(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lR(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function m5(t,e,n){return e=y5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y5(t){var e=A5(t,"string");return typeof e=="symbol"?e:String(e)}function A5(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var O5=Jt().codes.ERR_INVALID_ARG_TYPE;function g5(t,e,n){var i;if(e&&typeof e.next=="function")i=e;else if(e&&e[Symbol.asyncIterator])i=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])i=e[Symbol.iterator]();else throw new O5("iterable",["Iterable"],e);var a=new t(v5({objectMode:!0},n)),u=!1;a._read=function(){u||(u=!0,o())};function o(){return r.apply(this,arguments)}function r(){return r=T5(function*(){try{var s=yield i.next(),l=s.value,c=s.done;c?a.push(null):a.push(yield l)?o():u=!1}catch(p){a.destroy(p)}}),r.apply(this,arguments)}return a}cR.exports=g5});var cf=h((Hee,yR)=>{"use strict";yR.exports=$;var ln;$.ReadableState=_R;var kee=L("events").EventEmitter,ER=function(e,n){return e.listeners(n).length},go=Hc(),ga=L("buffer").Buffer,N5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function R5(t){return ga.from(t)}function P5(t){return ga.isBuffer(t)||t instanceof N5}var ef=L("util"),k;ef&&ef.debuglog?k=ef.debuglog("stream"):k=function(){};var b5=JN(),sf=Yc(),x5=qc(),M5=x5.getHighWaterMark,Na=Jt().codes,L5=Na.ERR_INVALID_ARG_TYPE,I5=Na.ERR_STREAM_PUSH_AFTER_EOF,C5=Na.ERR_METHOD_NOT_IMPLEMENTED,w5=Na.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,cn,tf,rf;sn()($,go);var Oo=sf.errorOrDestroy,nf=["error","close","destroy","pause","resume"];function D5(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function _R(t,e,n){ln=ln||br(),t=t||{},typeof n!="boolean"&&(n=e instanceof ln),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=M5(this,t,"readableHighWaterMark",n),this.buffer=new b5,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(cn||(cn=Qc().StringDecoder),this.decoder=new cn(t.encoding),this.encoding=t.encoding)}function $(t){if(ln=ln||br(),!(this instanceof $))return new $(t);var e=this instanceof ln;this._readableState=new _R(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),go.call(this)}Object.defineProperty($.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});$.prototype.destroy=sf.destroy;$.prototype._undestroy=sf.undestroy;$.prototype._destroy=function(t,e){e(t)};$.prototype.push=function(t,e){var n=this._readableState,i;return n.objectMode?i=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=ga.from(t,e),e=""),i=!0),SR(this,t,e,!1,i)};$.prototype.unshift=function(t){return SR(this,t,null,!0,!1)};function SR(t,e,n,i,a){k("readableAddChunk",e);var u=t._readableState;if(e===null)u.reading=!1,B5(t,u);else{var o;if(a||(o=U5(u,e)),o)Oo(t,o);else if(u.objectMode||e&&e.length>0)if(typeof e!="string"&&!u.objectMode&&Object.getPrototypeOf(e)!==ga.prototype&&(e=R5(e)),i)u.endEmitted?Oo(t,new w5):of(t,u,e,!0);else if(u.ended)Oo(t,new I5);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(e=u.decoder.write(e),u.objectMode||e.length!==0?of(t,u,e,!1):uf(t,u)):of(t,u,e,!1)}else i||(u.reading=!1,uf(t,u))}return!u.ended&&(u.length<u.highWaterMark||u.length===0)}function of(t,e,n,i){e.flowing&&e.length===0&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Ra(t)),uf(t,e)}function U5(t,e){var n;return!P5(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new L5("chunk",["string","Buffer","Uint8Array"],e)),n}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){cn||(cn=Qc().StringDecoder);var e=new cn(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";n!==null;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var pR=1073741824;function V5(t){return t>=pR?t=pR:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function dR(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=V5(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}$.prototype.read=function(t){k("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return k("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?af(this):Ra(this),null;if(t=dR(t,e),t===0&&e.ended)return e.length===0&&af(this),null;var i=e.needReadable;k("need readable",i),(e.length===0||e.length-t<e.highWaterMark)&&(i=!0,k("length less than watermark",i)),e.ended||e.reading?(i=!1,k("reading or ended",i)):i&&(k("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=dR(n,e)));var a;return t>0?a=vR(t,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&af(this)),a!==null&&this.emit("data",a),a};function B5(t,e){if(k("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?Ra(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,hR(t)))}}function Ra(t){var e=t._readableState;k("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(k("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(hR,t))}function hR(t){var e=t._readableState;k("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,lf(t)}function uf(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(G5,t,e))}function G5(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){var n=e.length;if(k("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}$.prototype._read=function(t){Oo(this,new C5("_read()"))};$.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,k("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,u=a?r:v;i.endEmitted?process.nextTick(u):n.once("end",u),t.on("unpipe",o);function o(T,A){k("onunpipe"),T===n&&A&&A.hasUnpiped===!1&&(A.hasUnpiped=!0,c())}function r(){k("onend"),t.end()}var s=k5(n);t.on("drain",s);var l=!1;function c(){k("cleanup"),t.removeListener("close",f),t.removeListener("finish",S),t.removeListener("drain",s),t.removeListener("error",_),t.removeListener("unpipe",o),n.removeListener("end",r),n.removeListener("end",v),n.removeListener("data",p),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&s()}n.on("data",p);function p(T){k("ondata");var A=t.write(T);k("dest.write",A),A===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&mR(i.pipes,t)!==-1)&&!l&&(k("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function _(T){k("onerror",T),v(),t.removeListener("error",_),ER(t,"error")===0&&Oo(t,T)}D5(t,"error",_);function f(){t.removeListener("finish",S),v()}t.once("close",f);function S(){k("onfinish"),t.removeListener("close",f),v()}t.once("finish",S);function v(){k("unpipe"),n.unpipe(t)}return t.emit("pipe",n),i.flowing||(k("pipe resume"),n.resume()),t};function k5(t){return function(){var n=t._readableState;k("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&ER(t,"data")&&(n.flowing=!0,lf(t))}}$.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var i=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var u=0;u<a;u++)i[u].emit("unpipe",this,{hasUnpiped:!1});return this}var o=mR(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};$.prototype.on=function(t,e){var n=go.prototype.on.call(this,t,e),i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,k("on readable",i.length,i.reading),i.length?Ra(this):i.reading||process.nextTick(H5,this)),n};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var n=go.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(TR,this),n};$.prototype.removeAllListeners=function(t){var e=go.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(TR,this),e};function TR(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function H5(t){k("readable nexttick read 0"),t.read(0)}$.prototype.resume=function(){var t=this._readableState;return t.flowing||(k("resume"),t.flowing=!t.readableListening,F5(this,t)),t.paused=!1,this};function F5(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Y5,t,e))}function Y5(t,e){k("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),lf(t),e.flowing&&!e.reading&&t.read(0)}$.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function lf(t){var e=t._readableState;for(k("flow",e.flowing);e.flowing&&t.read()!==null;);}$.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;t.on("end",function(){if(k("wrapped end"),n.decoder&&!n.ended){var o=n.decoder.end();o&&o.length&&e.push(o)}e.push(null)}),t.on("data",function(o){if(k("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!(n.objectMode&&o==null)&&!(!n.objectMode&&(!o||!o.length))){var r=e.push(o);r||(i=!0,t.pause())}});for(var a in t)this[a]===void 0&&typeof t[a]=="function"&&(this[a]=function(r){return function(){return t[r].apply(t,arguments)}}(a));for(var u=0;u<nf.length;u++)t.on(nf[u],this.emit.bind(this,nf[u]));return this._read=function(o){k("wrapped _read",o),i&&(i=!1,t.resume())},this};typeof Symbol=="function"&&($.prototype[Symbol.asyncIterator]=function(){return tf===void 0&&(tf=uR()),tf(this)});Object.defineProperty($.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty($.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty($.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}});$._fromList=vR;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function vR(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function af(t){var e=t._readableState;k("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(q5,e,t))}function q5(t,e){if(k("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}typeof Symbol=="function"&&($.from=function(t,e){return rf===void 0&&(rf=fR()),rf($,t,e)});function mR(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}});var br=h((Fee,OR)=>{"use strict";var j5=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};OR.exports=mt;var AR=cf(),pf=xa();sn()(mt,AR);for(ff=j5(pf.prototype),Pa=0;Pa<ff.length;Pa++)ba=ff[Pa],mt.prototype[ba]||(mt.prototype[ba]=pf.prototype[ba]);var ff,ba,Pa;function mt(t){if(!(this instanceof mt))return new mt(t);AR.call(this,t),pf.call(this,t),this.allowHalfOpen=!0,t&&(t.readable===!1&&(this.readable=!1),t.writable===!1&&(this.writable=!1),t.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",$5)))}Object.defineProperty(mt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(mt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(mt.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function $5(){this._writableState.ended||process.nextTick(K5,this)}function K5(t){t.end()}Object.defineProperty(mt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})});var xa=h((Yee,xR)=>{"use strict";xR.exports=se;function NR(t){var e=this;this.next=null,this.entry=null,this.finish=function(){mj(e,t)}}var fn;se.WritableState=Ro;var W5={deprecate:VN()},RR=Hc(),La=L("buffer").Buffer,z5=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function X5(t){return La.from(t)}function J5(t){return La.isBuffer(t)||t instanceof z5}var Ef=Yc(),Q5=qc(),Z5=Q5.getHighWaterMark,tr=Jt().codes,ej=tr.ERR_INVALID_ARG_TYPE,tj=tr.ERR_METHOD_NOT_IMPLEMENTED,rj=tr.ERR_MULTIPLE_CALLBACK,nj=tr.ERR_STREAM_CANNOT_PIPE,oj=tr.ERR_STREAM_DESTROYED,ij=tr.ERR_STREAM_NULL_VALUES,aj=tr.ERR_STREAM_WRITE_AFTER_END,uj=tr.ERR_UNKNOWN_ENCODING,pn=Ef.errorOrDestroy;sn()(se,RR);function sj(){}function Ro(t,e,n){fn=fn||br(),t=t||{},typeof n!="boolean"&&(n=e instanceof fn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=Z5(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){_j(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=t.emitClose!==!1,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new NR(this)}Ro.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(Ro.prototype,"buffer",{get:W5.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Ma;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Ma=Function.prototype[Symbol.hasInstance],Object.defineProperty(se,Symbol.hasInstance,{value:function(e){return Ma.call(this,e)?!0:this!==se?!1:e&&e._writableState instanceof Ro}})):Ma=function(e){return e instanceof this};function se(t){fn=fn||br();var e=this instanceof fn;if(!e&&!Ma.call(se,this))return new se(t);this._writableState=new Ro(t,this,e),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),RR.call(this)}se.prototype.pipe=function(){pn(this,new nj)};function lj(t,e){var n=new aj;pn(t,n),process.nextTick(e,n)}function cj(t,e,n,i){var a;return n===null?a=new ij:typeof n!="string"&&!e.objectMode&&(a=new ej("chunk",["string","Buffer"],n)),a?(pn(t,a),process.nextTick(i,a),!1):!0}se.prototype.write=function(t,e,n){var i=this._writableState,a=!1,u=!i.objectMode&&J5(t);return u&&!La.isBuffer(t)&&(t=X5(t)),typeof e=="function"&&(n=e,e=null),u?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=sj),i.ending?lj(this,n):(u||cj(this,i,t,n))&&(i.pendingcb++,a=pj(this,i,u,t,e,n)),a};se.prototype.cork=function(){this._writableState.corked++};se.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&PR(this,t))};se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new uj(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(se.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function fj(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=La.from(e,n)),e}Object.defineProperty(se.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function pj(t,e,n,i,a,u){if(!n){var o=fj(e,i,a);i!==o&&(n=!0,a="buffer",i=o)}var r=e.objectMode?1:i.length;e.length+=r;var s=e.length<e.highWaterMark;if(s||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:a,isBuf:n,callback:u,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else df(t,e,!1,r,i,a,u);return s}function df(t,e,n,i,a,u,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new oj("write")):n?t._writev(a,e.onwrite):t._write(a,u,e.onwrite),e.sync=!1}function dj(t,e,n,i,a){--e.pendingcb,n?(process.nextTick(a,i),process.nextTick(No,t,e),t._writableState.errorEmitted=!0,pn(t,i)):(a(i),t._writableState.errorEmitted=!0,pn(t,i),No(t,e))}function Ej(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function _j(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(typeof a!="function")throw new rj;if(Ej(n),e)dj(t,n,i,e,a);else{var u=bR(n)||t.destroyed;!u&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&PR(t,n),i?process.nextTick(gR,t,n,u,a):gR(t,n,u,a)}}function gR(t,e,n,i){n||Sj(t,e),e.pendingcb--,i(),No(t,e)}function Sj(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function PR(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,a=new Array(i),u=e.corkedRequestsFree;u.entry=n;for(var o=0,r=!0;n;)a[o]=n,n.isBuf||(r=!1),n=n.next,o+=1;a.allBuffers=r,df(t,e,!0,e.length,a,"",u.finish),e.pendingcb++,e.lastBufferedRequest=null,u.next?(e.corkedRequestsFree=u.next,u.next=null):e.corkedRequestsFree=new NR(e),e.bufferedRequestCount=0}else{for(;n;){var s=n.chunk,l=n.encoding,c=n.callback,p=e.objectMode?1:s.length;if(df(t,e,!1,p,s,l,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}se.prototype._write=function(t,e,n){n(new tj("_write()"))};se.prototype._writev=null;se.prototype.end=function(t,e,n){var i=this._writableState;return typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||vj(this,i,n),this};Object.defineProperty(se.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function bR(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function hj(t,e){t._final(function(n){e.pendingcb--,n&&pn(t,n),e.prefinished=!0,t.emit("prefinish"),No(t,e)})}function Tj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(hj,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function No(t,e){var n=bR(e);if(n&&(Tj(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}function vj(t,e,n){e.ending=!0,No(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function mj(t,e,n){var i=t.entry;for(t.entry=null;i;){var a=i.callback;e.pendingcb--,a(n),i=i.next}e.corkedRequestsFree.next=t}Object.defineProperty(se.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});se.prototype.destroy=Ef.destroy;se.prototype._undestroy=Ef.undestroy;se.prototype._destroy=function(t,e){e(t)}});var _f=h((qee,IR)=>{"use strict";var yj=L("util"),MR=xa(),{LEVEL:LR}=pe(),Po=IR.exports=function(e={}){MR.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this.format=e.format,this.level=e.level,this.handleExceptions=e.handleExceptions,this.handleRejections=e.handleRejections,this.silent=e.silent,e.log&&(this.log=e.log),e.logv&&(this.logv=e.logv),e.close&&(this.close=e.close),this.once("pipe",n=>{this.levels=n.levels,this.parent=n}),this.once("unpipe",n=>{n===this.parent&&(this.parent=null,this.close&&this.close())})};yj.inherits(Po,MR);Po.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);let a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[e[LR]]){if(e&&!this.format)return this.log(e,i);let u,o;try{o=this.format.transform(Object.assign({},e),this.format.options)}catch(r){u=r}if(u||!o){if(i(),u)throw u;return}return this.log(o,i)}return this._writableState.sync=!1,i(null)};Po.prototype._writev=function(e,n){if(this.logv){let i=e.filter(this._accept,this);return i.length?this.logv(i,n):n(null)}for(let i=0;i<e.length;i++){if(!this._accept(e[i]))continue;if(e[i].chunk&&!this.format){this.log(e[i].chunk,e[i].callback);continue}let a,u;try{u=this.format.transform(Object.assign({},e[i].chunk),this.format.options)}catch(o){a=o}if(a||!u){if(e[i].callback(),a)throw n(null),a}else this.log(u,e[i].callback)}return n(null)};Po.prototype._accept=function(e){let n=e.chunk;if(this.silent)return!1;let i=this.level||this.parent&&this.parent.level;return!!((n.exception===!0||!i||this.levels[i]>=this.levels[n[LR]])&&(this.handleExceptions||n.exception!==!0))};Po.prototype._nop=function(){}});var hf=h((jee,wR)=>{"use strict";var Aj=L("util"),{LEVEL:Sf}=pe(),CR=_f(),bo=wR.exports=function(e={}){if(CR.call(this,e),!e.transport||typeof e.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=e.transport,this.level=this.level||e.transport.level,this.handleExceptions=this.handleExceptions||e.transport.handleExceptions,this._deprecated();function n(i){this.emit("error",i,this.transport)}this.transport.__winstonError||(this.transport.__winstonError=n.bind(this),this.transport.on("error",this.transport.__winstonError))};Aj.inherits(bo,CR);bo.prototype._write=function(e,n,i){if(this.silent||e.exception===!0&&!this.handleExceptions)return i(null);(!this.level||this.levels[this.level]>=this.levels[e[Sf]])&&this.transport.log(e[Sf],e.message,e,this._nop),i(null)};bo.prototype._writev=function(e,n){for(let i=0;i<e.length;i++)this._accept(e[i])&&(this.transport.log(e[i].chunk[Sf],e[i].chunk.message,e[i].chunk,this._nop),e[i].callback());return n(null)};bo.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
|
34
|
+
`))};bo.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var dn=h(($ee,Tf)=>{"use strict";Tf.exports=_f();Tf.exports.LegacyTransportStream=hf()});var VR=h((Wee,UR)=>{"use strict";var Oj=L("os"),{LEVEL:DR,MESSAGE:En}=pe(),gj=dn();UR.exports=class extends gj{constructor(e={}){super(e),this.name=e.name||"console",this.stderrLevels=this._stringArrayToSet(e.stderrLevels),this.consoleWarnLevels=this._stringArrayToSet(e.consoleWarnLevels),this.eol=typeof e.eol=="string"?e.eol:Oj.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[DR]]){console._stderr?console._stderr.write(`${e[En]}${this.eol}`):console.error(e[En]),n&&n();return}else if(this.consoleWarnLevels[e[DR]]){console._stderr?console._stderr.write(`${e[En]}${this.eol}`):console.warn(e[En]),n&&n();return}console._stdout?console._stdout.write(`${e[En]}${this.eol}`):console.log(e[En]),n&&n()}_stringArrayToSet(e,n){if(!e)return{};if(n=n||"Cannot make set from type other than Array of string elements",!Array.isArray(e))throw new Error(n);return e.reduce((i,a)=>{if(typeof a!="string")throw new Error(n);return i[a]=!0,i},{})}}});var Ca=h((Ia,BR)=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=Nj;function Nj(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}BR.exports=Ia.default});var kR=h((wa,GR)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};GR.exports=wa.default});var YR=h(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.fallback=HR;rr.wrap=FR;var Rj=rr.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,Pj=rr.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,bj=rr.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function HR(t){setTimeout(t,0)}function FR(t){return(e,...n)=>t(()=>e(...n))}var xo;Rj?xo=queueMicrotask:Pj?xo=setImmediate:bj?xo=process.nextTick:xo=HR;rr.default=FR(xo)});var WR=h((Da,KR)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=wj;var xj=kR(),Mj=$R(xj),Lj=YR(),Ij=$R(Lj),Cj=xr();function $R(t){return t&&t.__esModule?t:{default:t}}function wj(t){return(0,Cj.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return qR(i,n)}:(0,Mj.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return qR(i,n);n(null,i)})}function qR(t,e){return t.then(n=>{jR(e,null,n)},n=>{jR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function jR(t,e,n){try{t(e,n)}catch(i){(0,Ij.default)(a=>{throw a},i)}}KR.exports=Da.default});var xr=h(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.isAsyncIterable=Ct.isAsyncGenerator=Ct.isAsync=void 0;var Dj=WR(),Uj=Vj(Dj);function Vj(t){return t&&t.__esModule?t:{default:t}}function zR(t){return t[Symbol.toStringTag]==="AsyncFunction"}function Bj(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function Gj(t){return typeof t[Symbol.asyncIterator]=="function"}function kj(t){if(typeof t!="function")throw new Error("expected a function");return zR(t)?(0,Uj.default)(t):t}Ct.default=kj;Ct.isAsync=zR;Ct.isAsyncGenerator=Bj;Ct.isAsyncIterable=Gj});var _n=h((Ua,XR)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=Hj;function Hj(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...i){return typeof i[e-1]=="function"?t.apply(this,i):new Promise((a,u)=>{i[e-1]=(o,...r)=>{if(o)return u(o);a(r.length>1?r:r[0])},t.apply(this,i)})}return n}XR.exports=Ua.default});var QR=h((Va,JR)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var Fj=Ca(),Yj=vf(Fj),qj=xr(),jj=vf(qj),$j=_n(),Kj=vf($j);function vf(t){return t&&t.__esModule?t:{default:t}}Va.default=(0,Kj.default)((t,e,n)=>{var i=(0,Yj.default)(e)?[]:{};t(e,(a,u,o)=>{(0,jj.default)(a)((r,...s)=>{s.length<2&&([s]=s),i[u]=s,o(r)})},a=>n(a,i))},3);JR.exports=Va.default});var mf=h((Ba,ZR)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=Wj;function Wj(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}ZR.exports=Ba.default});var tP=h((Ga,eP)=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};eP.exports=Ga.default});var oP=h((ka,nP)=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.default=r4;var zj=Ca(),Xj=rP(zj),Jj=tP(),Qj=rP(Jj);function rP(t){return t&&t.__esModule?t:{default:t}}function Zj(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function e4(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function t4(t){var e=t?Object.keys(t):[],n=-1,i=e.length;return function a(){var u=e[++n];return u==="__proto__"?a():n<i?{value:t[u],key:u}:null}}function r4(t){if((0,Xj.default)(t))return Zj(t);var e=(0,Qj.default)(t);return e?e4(e):t4(t)}nP.exports=ka.default});var yf=h((Ha,iP)=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=n4;function n4(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}iP.exports=Ha.default});var Ya=h((Fa,aP)=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var o4={};Fa.default=o4;aP.exports=Fa.default});var sP=h((qa,uP)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.default=s4;var i4=Ya(),a4=u4(i4);function u4(t){return t&&t.__esModule?t:{default:t}}function s4(t,e,n,i){let a=!1,u=!1,o=!1,r=0,s=0;function l(){r>=e||o||a||(o=!0,t.next().then(({value:_,done:f})=>{if(!(u||a)){if(o=!1,f){a=!0,r<=0&&i(null);return}r++,n(_,s,c),s++,l()}}).catch(p))}function c(_,f){if(r-=1,!u){if(_)return p(_);if(_===!1){a=!0,u=!0;return}if(f===a4.default||a&&r<=0)return a=!0,i(null);l()}}function p(_){u||(o=!1,a=!0,i(_))}l()}uP.exports=qa.default});var pP=h((ja,fP)=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var l4=mf(),c4=Mo(l4),f4=oP(),p4=Mo(f4),d4=yf(),E4=Mo(d4),lP=xr(),_4=sP(),cP=Mo(_4),S4=Ya(),h4=Mo(S4);function Mo(t){return t&&t.__esModule?t:{default:t}}ja.default=t=>(e,n,i)=>{if(i=(0,c4.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,lP.isAsyncGenerator)(e))return(0,cP.default)(e,t,n,i);if((0,lP.isAsyncIterable)(e))return(0,cP.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,p4.default)(e),u=!1,o=!1,r=0,s=!1;function l(p,_){if(!o)if(r-=1,p)u=!0,i(p);else if(p===!1)u=!0,o=!0;else{if(_===h4.default||u&&r<=0)return u=!0,i(null);s||c()}}function c(){for(s=!0;r<t&&!u;){var p=a();if(p===null){u=!0,r<=0&&i(null);return}r+=1,n(p.value,p.key,(0,E4.default)(l))}s=!1}c()};fP.exports=ja.default});var Of=h(($a,dP)=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var T4=pP(),v4=Af(T4),m4=xr(),y4=Af(m4),A4=_n(),O4=Af(A4);function Af(t){return t&&t.__esModule?t:{default:t}}function g4(t,e,n,i){return(0,v4.default)(e)(t,(0,y4.default)(n),i)}$a.default=(0,O4.default)(g4,4);dP.exports=$a.default});var SP=h((Ka,_P)=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var N4=Of(),R4=EP(N4),P4=_n(),b4=EP(P4);function EP(t){return t&&t.__esModule?t:{default:t}}function x4(t,e,n){return(0,R4.default)(t,1,e,n)}Ka.default=(0,b4.default)(x4,3);_P.exports=Ka.default});var vP=h((Wa,TP)=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.default=w4;var M4=QR(),L4=hP(M4),I4=SP(),C4=hP(I4);function hP(t){return t&&t.__esModule?t:{default:t}}function w4(t,e){return(0,L4.default)(C4.default,t,e)}TP.exports=Wa.default});var gf=h((Jee,yP)=>{"use strict";yP.exports=wt;var za=Jt().codes,D4=za.ERR_METHOD_NOT_IMPLEMENTED,U4=za.ERR_MULTIPLE_CALLBACK,V4=za.ERR_TRANSFORM_ALREADY_TRANSFORMING,B4=za.ERR_TRANSFORM_WITH_LENGTH_0,Xa=br();sn()(wt,Xa);function G4(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new U4);n.writechunk=null,n.writecb=null,e!=null&&this.push(e),i(t);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function wt(t){if(!(this instanceof wt))return new wt(t);Xa.call(this,t),this._transformState={afterTransform:G4.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",k4)}function k4(){var t=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(e,n){mP(t,e,n)}):mP(this,null,null)}wt.prototype.push=function(t,e){return this._transformState.needTransform=!1,Xa.prototype.push.call(this,t,e)};wt.prototype._transform=function(t,e,n){n(new D4("_transform()"))};wt.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};wt.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};wt.prototype._destroy=function(t,e){Xa.prototype._destroy.call(this,t,function(n){e(n)})};function mP(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new B4;if(t._transformState.transforming)throw new V4;return t.push(null)}});var gP=h((Qee,OP)=>{"use strict";OP.exports=Lo;var AP=gf();sn()(Lo,AP);function Lo(t){if(!(this instanceof Lo))return new Lo(t);AP.call(this,t)}Lo.prototype._transform=function(t,e,n){n(null,t)}});var xP=h((Zee,bP)=>{"use strict";var Nf;function H4(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var PP=Jt().codes,F4=PP.ERR_MISSING_ARGS,Y4=PP.ERR_STREAM_DESTROYED;function NP(t){if(t)throw t}function q4(t){return t.setHeader&&typeof t.abort=="function"}function j4(t,e,n,i){i=H4(i);var a=!1;t.on("close",function(){a=!0}),Nf===void 0&&(Nf=ya()),Nf(t,{readable:e,writable:n},function(o){if(o)return i(o);a=!0,i()});var u=!1;return function(o){if(!a&&!u){if(u=!0,q4(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new Y4("pipe"))}}}function RP(t){t()}function $4(t,e){return t.pipe(e)}function K4(t){return!t.length||typeof t[t.length-1]!="function"?NP:t.pop()}function W4(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=K4(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new F4("streams");var a,u=e.map(function(o,r){var s=r<e.length-1,l=r>0;return j4(o,s,l,function(c){a||(a=c),c&&u.forEach(RP),!s&&(u.forEach(RP),i(a))})});return e.reduce($4)}bP.exports=W4});var Mr=h((Ze,Co)=>{"use strict";var Io=L("stream");process.env.READABLE_STREAM==="disable"&&Io?(Co.exports=Io.Readable,Object.assign(Co.exports,Io),Co.exports.Stream=Io):(Ze=Co.exports=cf(),Ze.Stream=Io||Ze,Ze.Readable=Ze,Ze.Writable=xa(),Ze.Duplex=br(),Ze.Transform=gf(),Ze.PassThrough=gP(),Ze.finished=ya(),Ze.pipeline=xP())});var If=h((ete,LP)=>{"use strict";var Sn=[],wo=[],Rf=function(){};function bf(t){return~Sn.indexOf(t)?!1:(Sn.push(t),!0)}function xf(t){Rf=t}function z4(t){for(var e=[],n=0;n<Sn.length;n++){if(Sn[n].async){e.push(Sn[n]);continue}if(Sn[n](t))return!0}return e.length?new Promise(function(a){Promise.all(e.map(function(o){return o(t)})).then(function(o){a(o.some(Boolean))})}):!1}function Mf(t){return~wo.indexOf(t)?!1:(wo.push(t),!0)}function Pf(){Rf.apply(Rf,arguments)}function MP(t){for(var e=0;e<wo.length;e++)t=wo[e].apply(wo[e],arguments);return t}function Lf(t,e){var n=Object.prototype.hasOwnProperty;for(var i in e)n.call(e,i)&&(t[i]=e[i]);return t}function X4(t){return t.enabled=!1,t.modify=Mf,t.set=xf,t.use=bf,Lf(function(){return!1},t)}function J4(t){function e(){var n=Array.prototype.slice.call(arguments,0);return Pf.call(Pf,t,MP(n,t)),!0}return t.enabled=!0,t.modify=Mf,t.set=xf,t.use=bf,Lf(e,t)}LP.exports=function(e){return e.introduce=Lf,e.enabled=z4,e.process=MP,e.modify=Mf,e.write=Pf,e.nope=X4,e.yep=J4,e.set=xf,e.use=bf,e}});var CP=h((tte,IP)=>{"use strict";var Q4=If(),Z4=Q4(function t(e,n){return n=n||{},n.namespace=e,n.prod=!0,n.dev=!1,n.force||t.force?t.yep(n):t.nope(n)});IP.exports=Z4});var DP=h((rte,wP)=>{"use strict";wP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var VP=h((nte,UP)=>{"use strict";UP.exports=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}});var kP=h((ote,GP)=>{"use strict";var e6=VP(),t6=Array.prototype.concat,r6=Array.prototype.slice,BP=GP.exports=function(e){for(var n=[],i=0,a=e.length;i<a;i++){var u=e[i];e6(u)?n=t6.call(n,r6.call(u)):n.push(u)}return n};BP.wrap=function(t){return function(){return t(BP(arguments))}}});var qP=h((ite,YP)=>{"use strict";var Do=DP(),Uo=kP(),HP=Object.hasOwnProperty,FP=Object.create(null);for(Ja in Do)HP.call(Do,Ja)&&(FP[Do[Ja]]=Ja);var Ja,ze=YP.exports={to:{},get:{}};ze.get=function(t){var e=t.substring(0,3).toLowerCase(),n,i;switch(e){case"hsl":n=ze.get.hsl(t),i="hsl";break;case"hwb":n=ze.get.hwb(t),i="hwb";break;default:n=ze.get.rgb(t),i="rgb";break}return n?{model:i,value:n}:null};ze.get.rgb=function(t){if(!t)return null;var e=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,i=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,u=/^(\w+)$/,o=[0,0,0,1],r,s,l;if(r=t.match(n)){for(l=r[2],r=r[1],s=0;s<3;s++){var c=s*2;o[s]=parseInt(r.slice(c,c+2),16)}l&&(o[3]=parseInt(l,16)/255)}else if(r=t.match(e)){for(r=r[1],l=r[3],s=0;s<3;s++)o[s]=parseInt(r[s]+r[s],16);l&&(o[3]=parseInt(l+l,16)/255)}else if(r=t.match(i)){for(s=0;s<3;s++)o[s]=parseInt(r[s+1],0);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else if(r=t.match(a)){for(s=0;s<3;s++)o[s]=Math.round(parseFloat(r[s+1])*2.55);r[4]&&(r[5]?o[3]=parseFloat(r[4])*.01:o[3]=parseFloat(r[4]))}else return(r=t.match(u))?r[1]==="transparent"?[0,0,0,0]:HP.call(Do,r[1])?(o=Do[r[1]],o[3]=1,o):null:null;for(s=0;s<3;s++)o[s]=nr(o[s],0,255);return o[3]=nr(o[3],0,1),o};ze.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,u=nr(parseFloat(n[2]),0,100),o=nr(parseFloat(n[3]),0,100),r=nr(isNaN(i)?1:i,0,1);return[a,u,o,r]}return null};ze.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=t.match(e);if(n){var i=parseFloat(n[4]),a=(parseFloat(n[1])%360+360)%360,u=nr(parseFloat(n[2]),0,100),o=nr(parseFloat(n[3]),0,100),r=nr(isNaN(i)?1:i,0,1);return[a,u,o,r]}return null};ze.to.hex=function(){var t=Uo(arguments);return"#"+Qa(t[0])+Qa(t[1])+Qa(t[2])+(t[3]<1?Qa(Math.round(t[3]*255)):"")};ze.to.rgb=function(){var t=Uo(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};ze.to.rgb.percent=function(){var t=Uo(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"};ze.to.hsl=function(){var t=Uo(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};ze.to.hwb=function(){var t=Uo(arguments),e="";return t.length>=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};ze.to.keyword=function(t){return FP[t.slice(0,3)]};function nr(t,e,n){return Math.min(Math.max(e,t),n)}function Qa(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var $P=h((ate,jP)=>{"use strict";jP.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Cf=h((ute,XP)=>{"use strict";var Lr=$P(),zP={};for(Za in Lr)Lr.hasOwnProperty(Za)&&(zP[Lr[Za]]=Za);var Za,b=XP.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(Ue in b)if(b.hasOwnProperty(Ue)){if(!("channels"in b[Ue]))throw new Error("missing channels property: "+Ue);if(!("labels"in b[Ue]))throw new Error("missing channel labels property: "+Ue);if(b[Ue].labels.length!==b[Ue].channels)throw new Error("channel and label counts mismatch: "+Ue);KP=b[Ue].channels,WP=b[Ue].labels,delete b[Ue].channels,delete b[Ue].labels,Object.defineProperty(b[Ue],"channels",{value:KP}),Object.defineProperty(b[Ue],"labels",{value:WP})}var KP,WP,Ue;b.rgb.hsl=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.min(e,n,i),u=Math.max(e,n,i),o=u-a,r,s,l;return u===a?r=0:e===u?r=(n-i)/o:n===u?r=2+(i-e)/o:i===u&&(r=4+(e-n)/o),r=Math.min(r*60,360),r<0&&(r+=360),l=(a+u)/2,u===a?s=0:l<=.5?s=o/(u+a):s=o/(2-u-a),[r,s*100,l*100]};b.rgb.hsv=function(t){var e,n,i,a,u,o=t[0]/255,r=t[1]/255,s=t[2]/255,l=Math.max(o,r,s),c=l-Math.min(o,r,s),p=function(_){return(l-_)/6/c+1/2};return c===0?a=u=0:(u=c/l,e=p(o),n=p(r),i=p(s),o===l?a=i-n:r===l?a=1/3+e-i:s===l&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[a*360,u*100,l*100]};b.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2],a=b.rgb.hsl(t)[0],u=1/255*Math.min(e,Math.min(n,i));return i=1-1/255*Math.max(e,Math.max(n,i)),[a,u*100,i*100]};b.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a,u,o,r;return r=Math.min(1-e,1-n,1-i),a=(1-e-r)/(1-r)||0,u=(1-n-r)/(1-r)||0,o=(1-i-r)/(1-r)||0,[a*100,u*100,o*100,r*100]};function n6(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}b.rgb.keyword=function(t){var e=zP[t];if(e)return e;var n=1/0,i;for(var a in Lr)if(Lr.hasOwnProperty(a)){var u=Lr[a],o=n6(t,u);o<n&&(n=o,i=a)}return i};b.keyword.rgb=function(t){return Lr[t]};b.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var a=e*.4124+n*.3576+i*.1805,u=e*.2126+n*.7152+i*.0722,o=e*.0193+n*.1192+i*.9505;return[a*100,u*100,o*100]};b.rgb.lab=function(t){var e=b.rgb.xyz(t),n=e[0],i=e[1],a=e[2],u,o,r;return n/=95.047,i/=100,a/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,u=116*i-16,o=500*(n-i),r=200*(i-a),[u,o,r]};b.hsl.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a,u,o,r,s;if(n===0)return s=i*255,[s,s,s];i<.5?u=i*(1+n):u=i+n-i*n,a=2*i-u,r=[0,0,0];for(var l=0;l<3;l++)o=e+1/3*-(l-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(u-a)*6*o:2*o<1?s=u:3*o<2?s=a+(u-a)*(2/3-o)*6:s=a,r[l]=s*255;return r};b.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,u=Math.max(i,.01),o,r;return i*=2,n*=i<=1?i:2-i,a*=u<=1?u:2-u,r=(i+n)/2,o=i===0?2*a/(u+a):2*n/(i+n),[e,o*100,r*100]};b.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,u=e-Math.floor(e),o=255*i*(1-n),r=255*i*(1-n*u),s=255*i*(1-n*(1-u));switch(i*=255,a){case 0:return[i,s,o];case 1:return[r,i,o];case 2:return[o,i,s];case 3:return[o,r,i];case 4:return[s,o,i];case 5:return[i,o,r]}};b.hsv.hsl=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=Math.max(i,.01),u,o,r;return r=(2-n)*i,u=(2-n)*a,o=n*a,o/=u<=1?u:2-u,o=o||0,r/=2,[e,o*100,r*100]};b.hwb.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100,a=n+i,u,o,r,s;a>1&&(n/=a,i/=a),u=Math.floor(6*e),o=1-i,r=6*e-u,u&1&&(r=1-r),s=n+r*(o-n);var l,c,p;switch(u){default:case 6:case 0:l=o,c=s,p=n;break;case 1:l=s,c=o,p=n;break;case 2:l=n,c=o,p=s;break;case 3:l=n,c=s,p=o;break;case 4:l=s,c=n,p=o;break;case 5:l=o,c=n,p=s;break}return[l*255,c*255,p*255]};b.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100,u,o,r;return u=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,n*(1-a)+a),r=1-Math.min(1,i*(1-a)+a),[u*255,o*255,r*255]};b.xyz.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a,u,o;return a=e*3.2406+n*-1.5372+i*-.4986,u=e*-.9689+n*1.8758+i*.0415,o=e*.0557+n*-.204+i*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:u*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),u=Math.min(Math.max(0,u),1),o=Math.min(Math.max(0,o),1),[a*255,u*255,o*255]};b.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2],a,u,o;return e/=95.047,n/=100,i/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,a=116*n-16,u=500*(e-n),o=200*(n-i),[a,u,o]};b.lab.xyz=function(t){var e=t[0],n=t[1],i=t[2],a,u,o;u=(e+16)/116,a=n/500+u,o=u-i/200;var r=Math.pow(u,3),s=Math.pow(a,3),l=Math.pow(o,3);return u=r>.008856?r:(u-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,a*=95.047,u*=100,o*=108.883,[a,u,o]};b.lab.lch=function(t){var e=t[0],n=t[1],i=t[2],a,u,o;return a=Math.atan2(i,n),u=a*360/2/Math.PI,u<0&&(u+=360),o=Math.sqrt(n*n+i*i),[e,o,u]};b.lch.lab=function(t){var e=t[0],n=t[1],i=t[2],a,u,o;return o=i/360*2*Math.PI,a=n*Math.cos(o),u=n*Math.sin(o),[e,a,u]};b.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],a=1 in arguments?arguments[1]:b.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var u=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return a===2&&(u+=60),u};b.hsv.ansi16=function(t){return b.rgb.ansi16(b.hsv.rgb(t),t[2])};b.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];if(e===n&&n===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5);return a};b.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var n=(~~(t>50)+1)*.5,i=(e&1)*n*255,a=(e>>1&1)*n*255,u=(e>>2&1)*n*255;return[i,a,u]};b.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var n,i=Math.floor(t/36)/5*255,a=Math.floor((n=t%36)/6)/5*255,u=n%6/5*255;return[i,a,u]};b.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};b.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];e[0].length===3&&(n=n.split("").map(function(r){return r+r}).join(""));var i=parseInt(n,16),a=i>>16&255,u=i>>8&255,o=i&255;return[a,u,o]};b.rgb.hcg=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255,a=Math.max(Math.max(e,n),i),u=Math.min(Math.min(e,n),i),o=a-u,r,s;return o<1?r=u/(1-o):r=0,o<=0?s=0:a===e?s=(n-i)/o%6:a===n?s=2+(i-e)/o:s=4+(e-n)/o+4,s/=6,s%=1,[s*360,o*100,r*100]};b.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return n<.5?i=2*e*n:i=2*e*(1-n),i<1&&(a=(n-.5*i)/(1-i)),[t[0],i*100,a*100]};b.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],i*100,a*100]};b.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(n===0)return[i*255,i*255,i*255];var a=[0,0,0],u=e%1*6,o=u%1,r=1-o,s=0;switch(Math.floor(u)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=r,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=r,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=r}return s=(1-n)*i,[(n*a[0]+s)*255,(n*a[1]+s)*255,(n*a[2]+s)*255]};b.hcg.hsv=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e),a=0;return i>0&&(a=e/i),[t[0],a*100,i*100]};b.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100,i=n*(1-e)+.5*e,a=0;return i>0&&i<.5?a=e/(2*i):i>=.5&&i<1&&(a=e/(2*(1-i))),[t[0],a*100,i*100]};b.hcg.hwb=function(t){var e=t[1]/100,n=t[2]/100,i=e+n*(1-e);return[t[0],(i-e)*100,(1-i)*100]};b.hwb.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1-n,a=i-e,u=0;return a<1&&(u=(i-a)/(1-a)),[t[0],a*100,u*100]};b.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};b.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};b.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};b.gray.hsl=b.gray.hsv=function(t){return[0,0,t[0]]};b.gray.hwb=function(t){return[0,100,t[0]]};b.gray.cmyk=function(t){return[0,0,0,t[0]]};b.gray.lab=function(t){return[t[0],0,0]};b.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,n=(e<<16)+(e<<8)+e,i=n.toString(16).toUpperCase();return"000000".substring(i.length)+i};b.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var QP=h((ste,JP)=>{"use strict";var eu=Cf();function o6(){for(var t={},e=Object.keys(eu),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function i6(t){var e=o6(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(eu[i]),u=a.length,o=0;o<u;o++){var r=a[o],s=e[r];s.distance===-1&&(s.distance=e[i].distance+1,s.parent=i,n.unshift(r))}return e}function a6(t,e){return function(n){return e(t(n))}}function u6(t,e){for(var n=[e[t].parent,t],i=eu[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=a6(eu[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}JP.exports=function(t){for(var e=i6(t),n={},i=Object.keys(e),a=i.length,u=0;u<a;u++){var o=i[u],r=e[o];r.parent!==null&&(n[o]=u6(o,e))}return n}});var eb=h((lte,ZP)=>{"use strict";var wf=Cf(),s6=QP(),hn={},l6=Object.keys(wf);function c6(t){var e=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function f6(t){var e=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var i=t(n);if(typeof i=="object")for(var a=i.length,u=0;u<a;u++)i[u]=Math.round(i[u]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}l6.forEach(function(t){hn[t]={},Object.defineProperty(hn[t],"channels",{value:wf[t].channels}),Object.defineProperty(hn[t],"labels",{value:wf[t].labels});var e=s6(t),n=Object.keys(e);n.forEach(function(i){var a=e[i];hn[t][i]=f6(a),hn[t][i].raw=c6(a)})});ZP.exports=hn});var nb=h((cte,rb)=>{"use strict";var Vo=qP(),Xe=eb(),Vf=[].slice,tb=["keyword","gray","hex"],Df={};Object.keys(Xe).forEach(function(t){Df[Vf.call(Xe[t].labels).sort().join("")]=t});var tu={};function Ae(t,e){if(!(this instanceof Ae))return new Ae(t,e);if(e&&e in tb&&(e=null),e&&!(e in Xe))throw new Error("Unknown model: "+e);var n,i;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Ae)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var a=Vo.get(t);if(a===null)throw new Error("Unable to parse color from string: "+t);this.model=a.model,i=Xe[this.model].channels,this.color=a.value.slice(0,i),this.valpha=typeof a.value[i]=="number"?a.value[i]:1}else if(t.length){this.model=e||"rgb",i=Xe[this.model].channels;var u=Vf.call(t,0,i);this.color=Uf(u,i),this.valpha=typeof t[i]=="number"?t[i]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var r=o.sort().join("");if(!(r in Df))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=Df[r];var s=Xe[this.model].labels,l=[];for(n=0;n<s.length;n++)l.push(t[s[n]]);this.color=Uf(l)}if(tu[this.model])for(i=Xe[this.model].channels,n=0;n<i;n++){var c=tu[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Ae.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in Vo.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var n=e.valpha===1?e.color:e.color.concat(this.valpha);return Vo.to[e.model](n)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:e.color.concat(this.valpha);return Vo.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=Xe[this.model].channels,n=Xe[this.model].labels,i=0;i<e;i++)t[n[i]]=this.color[i];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new Ae(this.color.map(d6(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new Ae(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:le("rgb",0,de(255)),green:le("rgb",1,de(255)),blue:le("rgb",2,de(255)),hue:le(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:le("hsl",1,de(100)),lightness:le("hsl",2,de(100)),saturationv:le("hsv",1,de(100)),value:le("hsv",2,de(100)),chroma:le("hcg",1,de(100)),gray:le("hcg",2,de(100)),white:le("hwb",1,de(100)),wblack:le("hwb",2,de(100)),cyan:le("cmyk",0,de(100)),magenta:le("cmyk",1,de(100)),yellow:le("cmyk",2,de(100)),black:le("cmyk",3,de(100)),x:le("xyz",0,de(100)),y:le("xyz",1,de(100)),z:le("xyz",2,de(100)),l:le("lab",0,de(100)),a:le("lab",1),b:le("lab",2),keyword:function(t){return arguments.length?new Ae(t):Xe[this.model].keyword(this.color)},hex:function(t){return arguments.length?new Ae(t):Vo.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return Ae.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),i=this.rgb(),a=e===void 0?.5:e,u=2*a-1,o=n.alpha()-i.alpha(),r=((u*o===-1?u:(u+o)/(1+u*o))+1)/2,s=1-r;return Ae.rgb(r*n.red()+s*i.red(),r*n.green()+s*i.green(),r*n.blue()+s*i.blue(),n.alpha()*a+i.alpha()*(1-a))}};Object.keys(Xe).forEach(function(t){if(tb.indexOf(t)===-1){var e=Xe[t].channels;Ae.prototype[t]=function(){if(this.model===t)return new Ae(this);if(arguments.length)return new Ae(arguments,t);var n=typeof arguments[e]=="number"?e:this.valpha;return new Ae(E6(Xe[this.model][t].raw(this.color)).concat(n),t)},Ae[t]=function(n){return typeof n=="number"&&(n=Uf(Vf.call(arguments),e)),new Ae(n,t)}}});function p6(t,e){return Number(t.toFixed(e))}function d6(t){return function(e){return p6(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(tu[i]||(tu[i]=[]))[e]=n}),t=t[0],function(i){var a;return arguments.length?(n&&(i=n(i)),a=this[t](),a.color[e]=i,a):(a=this[t]().color[e],n&&(a=n(a)),a)}}function de(t){return function(e){return Math.max(0,Math.min(t,e))}}function E6(t){return Array.isArray(t)?t:[t]}function Uf(t,e){for(var n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}rb.exports=Ae});var ib=h((fte,ob)=>{"use strict";ob.exports=function(e){for(var n=0,i=0;n<e.length;i=e.charCodeAt(n++)+((i<<5)-i));var a=Math.floor(Math.abs(Math.sin(i)*1e4%1*16777216)).toString(16);return"#"+Array(6-a.length+1).join("0")+a}});var lb=h((pte,sb)=>{"use strict";var ab=nb(),ub=ib();sb.exports=function(e,n){var i=e.split(n||":"),a=ub(i[0]);if(!i.length)return a;for(var u=0,o=i.length-1;u<o;u++)a=ab(a).mix(ab(ub(i[u+1]))).saturate(1).hex();return a}});var fb=h((dte,cb)=>{"use strict";function lt(t,e){if(e)return new lt(t).style(e);if(!(this instanceof lt))return new lt(t);this.text=t}lt.prototype.prefix="\x1B[";lt.prototype.suffix="m";lt.prototype.hex=function(e){e=e[0]==="#"?e.substring(1):e,e.length===3&&(e=e.split(""),e[5]=e[2],e[4]=e[2],e[3]=e[1],e[2]=e[1],e[1]=e[0],e=e.join(""));var n=e.substring(0,2),i=e.substring(2,4),a=e.substring(4,6);return[parseInt(n,16),parseInt(i,16),parseInt(a,16)]};lt.prototype.rgb=function(e,n,i){var a=e/255*5,u=n/255*5,o=i/255*5;return this.ansi(a,u,o)};lt.prototype.ansi=function(e,n,i){var a=Math.round(e),u=Math.round(n),o=Math.round(i);return 16+a*36+u*6+o};lt.prototype.reset=function(){return this.prefix+"39;49"+this.suffix};lt.prototype.style=function(e){return this.prefix+"38;5;"+this.rgb.apply(this,this.hex(e))+this.suffix+this.text+this.reset()};cb.exports=lt});var db=h((Ete,pb)=>{"use strict";var _6=lb(),S6=fb();pb.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?S6(i+":",_6(i)):i+":";return e[0]=a+" "+e[0],e}});var _b=h((_te,Eb)=>{"use strict";Eb.exports=function(e,n){if(!n)return!1;for(var i=n.split(/[\s,]+/),a=0;a<i.length;a++){if(n=i[a].replace("*",".*?"),n.charAt(0)==="-"){if(new RegExp("^"+n.substr(1)+"$").test(e))return!1;continue}if(new RegExp("^"+n+"$").test(e))return!0}return!1}});var hb=h((Ste,Sb)=>{"use strict";var h6=_b();Sb.exports=function(e){return function(i){try{return h6(i,e())}catch{}return!1}}});var vb=h((hte,Tb)=>{"use strict";var T6=hb();Tb.exports=T6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var yb=h((Tte,mb)=>{"use strict";mb.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Ob=h((vte,Ab)=>{"use strict";var v6=If(),m6=L("tty").isatty(1),ru=v6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:m6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});ru.modify(db());ru.use(vb());ru.set(yb());Ab.exports=ru});var Bo=h((mte,Bf)=>{"use strict";process.env.NODE_ENV==="production"?Bf.exports=CP():Bf.exports=Ob()});var Nb=h((yte,gb)=>{"use strict";var Gf=L("fs"),{StringDecoder:y6}=L("string_decoder"),{Stream:A6}=Mr();function O6(){}gb.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new y6("utf8"),a=new A6,u="",o=0,r=0;return t.start===-1&&delete t.start,a.readable=!0,a.destroy=()=>{a.destroyed=!0,a.emit("end"),a.emit("close")},Gf.open(t.file,"a+","0644",(s,l)=>{if(s){e?e(s):a.emit("error",s),a.destroy();return}(function c(){if(a.destroyed){Gf.close(l,O6);return}return Gf.read(l,n,0,n.length,o,(p,_)=>{if(p){e?e(p):a.emit("error",p),a.destroy();return}if(!_)return u&&((t.start==null||r>t.start)&&(e?e(null,u):a.emit("line",u)),r++,u=""),setTimeout(c,1e3);let f=i.write(n.slice(0,_));e||a.emit("data",f),f=(u+f).split(/\n+/);let S=f.length-1,v=0;for(;v<S;v++)(t.start==null||r>t.start)&&(e?e(null,f[v]):a.emit("line",f[v])),r++;return u=f[S],o+=_,c()})})()}),e?a.destroy:a}});var xb=h((Ote,bb)=>{"use strict";var $e=L("fs"),he=L("path"),Rb=vP(),g6=L("zlib"),{MESSAGE:N6}=pe(),{Stream:R6,PassThrough:Pb}=Mr(),P6=dn(),ct=Bo()("winston:file"),b6=L("os"),x6=Nb();bb.exports=class extends P6{constructor(e={}){super(e),this.name=e.name||"file";function n(i,...a){a.slice(1).forEach(u=>{if(e[u])throw new Error(`Cannot set ${u} and ${i} together`)})}if(this._stream=new Pb,this._stream.setMaxListeners(30),this._onError=this._onError.bind(this),e.filename||e.dirname)n("filename or dirname","stream"),this._basename=this.filename=e.filename?he.basename(e.filename):"winston.log",this.dirname=e.dirname||he.dirname(e.filename),this.options=e.options||{flags:"a"};else if(e.stream)console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),n("stream","filename","maxsize"),this._dest=this._stream.pipe(this._setupStream(e.stream)),this.dirname=he.dirname(this._dest.path);else throw new Error("Cannot log to file without filename or stream.");this.maxsize=e.maxsize||null,this.rotationFormat=e.rotationFormat||!1,this.zippedArchive=e.zippedArchive||!1,this.maxFiles=e.maxFiles||null,this.eol=typeof e.eol=="string"?e.eol:b6.EOL,this.tailable=e.tailable||!1,this.lazy=e.lazy||!1,this._size=0,this._pendingSize=0,this._created=0,this._drain=!1,this._opening=!1,this._ending=!1,this._fileExist=!1,this.dirname&&this._createLogDirIfNotExist(this.dirname),this.lazy||this.open()}finishIfEnding(){this._ending&&(this._opening?this.once("open",()=>{this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())}):(this._stream.once("finish",()=>this.emit("finish")),setImmediate(()=>this._stream.end())))}log(e,n=()=>{}){if(this.silent)return n(),!0;if(this._drain){this._stream.once("drain",()=>{this._drain=!1,this.log(e,n)});return}if(this._rotate){this._stream.once("rotate",()=>{this._rotate=!1,this.log(e,n)});return}if(this.lazy){if(!this._fileExist){this._opening||this.open(),this.once("open",()=>{this._fileExist=!0,this.log(e,n)});return}if(this._needsNewFile(this._pendingSize)){this._dest.once("close",()=>{this._opening||this.open(),this.once("open",()=>{this.log(e,n)})});return}}let i=`${e[N6]}${this.eol}`,a=Buffer.byteLength(i);function u(){if(this._size+=a,this._pendingSize-=a,ct("logged %s %s",this._size,i),this.emit("logged",e),!this._rotate&&!this._opening&&this._needsNewFile()){if(this.lazy){this._endStream(()=>{this.emit("fileclosed")});return}this._rotate=!0,this._endStream(()=>this._rotateFile())}}this._pendingSize+=a,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);let o=this._stream.write(i,u.bind(this));return o?n():(this._drain=!0,this._stream.once("drain",()=>{this._drain=!1,n()})),ct("written",o,this._drain),this.finishIfEnding(),o}query(e,n){typeof e=="function"&&(n=e,e={}),e=p(e);let i=he.join(this.dirname,this.filename),a="",u=[],o=0,r=$e.createReadStream(i,{encoding:"utf8"});r.on("error",_=>{if(r.readable&&r.destroy(),!!n)return _.code!=="ENOENT"?n(_):n(null,u)}),r.on("data",_=>{_=(a+_).split(/\n+/);let f=_.length-1,S=0;for(;S<f;S++)(!e.start||o>=e.start)&&s(_[S]),o++;a=_[f]}),r.on("close",()=>{a&&s(a,!0),e.order==="desc"&&(u=u.reverse()),n&&n(null,u)});function s(_,f){try{let S=JSON.parse(_);c(S)&&l(S)}catch(S){f||r.emit("error",S)}}function l(_){if(e.rows&&u.length>=e.rows&&e.order!=="desc"){r.readable&&r.destroy();return}e.fields&&(_=e.fields.reduce((f,S)=>(f[S]=_[S],f),{})),e.order==="desc"&&u.length>=e.rows&&u.shift(),u.push(_)}function c(_){if(!_||typeof _!="object")return;let f=new Date(_.timestamp);if(!(e.from&&f<e.from||e.until&&f>e.until||e.level&&e.level!==_.level))return!0}function p(_){return _=_||{},_.rows=_.rows||_.limit||10,_.start=_.start||0,_.until=_.until||new Date,typeof _.until!="object"&&(_.until=new Date(_.until)),_.from=_.from||_.until-24*60*60*1e3,typeof _.from!="object"&&(_.from=new Date(_.from)),_.order=_.order||"desc",_}}stream(e={}){let n=he.join(this.dirname,this.filename),i=new R6,a={file:n,start:e.start};return i.destroy=x6(a,(u,o)=>{if(u)return i.emit("error",u);try{i.emit("data",o),o=JSON.parse(o),i.emit("log",o)}catch(r){i.emit("error",r)}}),i}open(){this.filename&&(this._opening||(this._opening=!0,this.stat((e,n)=>{if(e)return this.emit("error",e);ct("stat done: %s { size: %s }",this.filename,n),this._size=n,this._dest=this._createStream(this._stream),this._opening=!1,this.once("open",()=>{this._stream.eventNames().includes("rotate")?this._stream.emit("rotate"):this._rotate=!1})})))}stat(e){let n=this._getFile(),i=he.join(this.dirname,n);$e.stat(i,(a,u)=>{if(a&&a.code==="ENOENT")return ct("ENOENT\xA0ok",i),this.filename=n,e(null,0);if(a)return ct(`err ${a.code} ${i}`),e(a);if(!u||this._needsNewFile(u.size))return this._incFile(()=>this.stat(e));this.filename=n,e(null,u.size)})}close(e){this._stream&&this._stream.end(()=>{e&&e(),this.emit("flush"),this.emit("closed")})}_needsNewFile(e){return e=e||this._size,this.maxsize&&e>=this.maxsize}_onError(e){this.emit("error",e)}_setupStream(e){return e.on("error",this._onError),e}_cleanupStream(e){return e.removeListener("error",this._onError),e.destroy(),e}_rotateFile(){this._incFile(()=>this.open())}_endStream(e=()=>{}){this._dest?(this._stream.unpipe(this._dest),this._dest.end(()=>{this._cleanupStream(this._dest),e()})):e()}_createStream(e){let n=he.join(this.dirname,this.filename);ct("create stream start",n,this.options);let i=$e.createWriteStream(n,this.options).on("error",a=>ct(a)).on("close",()=>ct("close",i.path,i.bytesWritten)).on("open",()=>{ct("file open ok",n),this.emit("open",n),e.pipe(i),this.rotatedWhileOpening&&(this._stream=new Pb,this._stream.setMaxListeners(30),this._rotateFile(),this.rotatedWhileOpening=!1,this._cleanupStream(i),e.end())});return ct("create stream ok",n),i}_incFile(e){ct("_incFile",this.filename);let n=he.extname(this._basename),i=he.basename(this._basename,n),a=[];this.zippedArchive&&a.push(function(u){let o=this._created>0&&!this.tailable?this._created:"";this._compressFile(he.join(this.dirname,`${i}${o}${n}`),he.join(this.dirname,`${i}${o}${n}.gz`),u)}.bind(this)),a.push(function(u){this.tailable?this._checkMaxFilesTailable(n,i,u):(this._created+=1,this._checkMaxFilesIncrementing(n,i,u))}.bind(this)),Rb(a,e)}_getFile(){let e=he.extname(this._basename),n=he.basename(this._basename,e),i=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?`${n}${i}${e}`:`${n}${e}`}_checkMaxFilesIncrementing(e,n,i){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(i);let a=this._created-this.maxFiles,u=a!==0?a:"",o=this.zippedArchive?".gz":"",r=`${n}${u}${e}${o}`,s=he.join(this.dirname,r);$e.unlink(s,i)}_checkMaxFilesTailable(e,n,i){let a=[];if(!this.maxFiles)return;let u=this.zippedArchive?".gz":"";for(let o=this.maxFiles-1;o>1;o--)a.push(function(r,s){let l=`${n}${r-1}${e}${u}`,c=he.join(this.dirname,l);$e.exists(c,p=>{if(!p)return s(null);l=`${n}${r}${e}${u}`,$e.rename(c,he.join(this.dirname,l),s)})}.bind(this,o));Rb(a,()=>{$e.rename(he.join(this.dirname,`${n}${e}${u}`),he.join(this.dirname,`${n}1${e}${u}`),i)})}_compressFile(e,n,i){$e.access(e,$e.F_OK,a=>{if(a)return i();var u=g6.createGzip(),o=$e.createReadStream(e),r=$e.createWriteStream(n);r.on("finish",()=>{$e.unlink(e,i)}),o.pipe(u).pipe(r)})}_createLogDirIfNotExist(e){$e.existsSync(e)||$e.mkdirSync(e,{recursive:!0})}}});var Lb=h((Nte,Mb)=>{"use strict";var M6=L("http"),L6=L("https"),{Stream:I6}=Mr(),C6=dn(),{configure:w6}=To();Mb.exports=class extends C6{constructor(e={}){super(e),this.options=e,this.name=e.name||"http",this.ssl=!!e.ssl,this.host=e.host||"localhost",this.port=e.port,this.auth=e.auth,this.path=e.path||"",this.maximumDepth=e.maximumDepth,this.agent=e.agent,this.headers=e.headers||{},this.headers["content-type"]="application/json",this.batch=e.batch||!1,this.batchInterval=e.batchInterval||5e3,this.batchCount=e.batchCount||10,this.batchOptions=[],this.batchTimeoutID=-1,this.batchCallback={},this.port||(this.port=this.ssl?443:80)}log(e,n){this._request(e,null,null,(i,a)=>{a&&a.statusCode!==200&&(i=new Error(`Invalid HTTP Status Code: ${a.statusCode}`)),i?this.emit("warn",i):this.emit("logged",e)}),n&&setImmediate(n)}query(e,n){typeof e=="function"&&(n=e,e={}),e={method:"query",params:this.normalizeQuery(e)};let i=e.params.auth||null;delete e.params.auth;let a=e.params.path||null;delete e.params.path,this._request(e,i,a,(u,o,r)=>{if(o&&o.statusCode!==200&&(u=new Error(`Invalid HTTP Status Code: ${o.statusCode}`)),u)return n(u);if(typeof r=="string")try{r=JSON.parse(r)}catch(s){return n(s)}n(null,r)})}stream(e={}){let n=new I6;e={method:"stream",params:e};let i=e.params.path||null;delete e.params.path;let a=e.params.auth||null;delete e.params.auth;let u="",o=this._request(e,a,i);return n.destroy=()=>o.destroy(),o.on("data",r=>{r=(u+r).split(/\n+/);let s=r.length-1,l=0;for(;l<s;l++)try{n.emit("log",JSON.parse(r[l]))}catch(c){n.emit("error",c)}u=r[s]}),o.on("error",r=>n.emit("error",r)),n}_request(e,n,i,a){e=e||{},n=n||this.auth,i=i||this.path||"",this.batch?this._doBatch(e,a,n,i):this._doRequest(e,a,n,i)}_doBatch(e,n,i,a){if(this.batchOptions.push(e),this.batchOptions.length===1){let u=this;this.batchCallback=n,this.batchTimeoutID=setTimeout(function(){u.batchTimeoutID=-1,u._doBatchRequest(u.batchCallback,i,a)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,i,a)}_doBatchRequest(e,n,i){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);let a=this.batchOptions.slice();this.batchOptions=[],this._doRequest(a,e,n,i)}_doRequest(e,n,i,a){let u=Object.assign({},this.headers);i&&i.bearer&&(u.Authorization=`Bearer ${i.bearer}`);let o=(this.ssl?L6:M6).request({...this.options,method:"POST",host:this.host,port:this.port,path:`/${a.replace(/^\//,"")}`,headers:u,auth:i&&i.username&&i.password?`${i.username}:${i.password}`:"",agent:this.agent});o.on("error",n),o.on("response",s=>s.on("end",()=>n(null,s)).resume());let r=w6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var kf=h((Rte,Ib)=>{"use strict";var yt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";yt.writable=t=>yt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";yt.readable=t=>yt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";yt.duplex=t=>yt.writable(t)&&yt.readable(t);yt.transform=t=>yt.duplex(t)&&typeof t._transform=="function";Ib.exports=yt});var wb=h((bte,Cb)=>{"use strict";var D6=kf(),{MESSAGE:U6}=pe(),V6=L("os"),B6=dn();Cb.exports=class extends B6{constructor(e={}){if(super(e),!e.stream||!D6(e.stream))throw new Error("options.stream is required.");this._stream=e.stream,this._stream.setMaxListeners(1/0),this.isObjectMode=e.stream._writableState.objectMode,this.eol=typeof e.eol=="string"?e.eol:V6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[U6]}${this.eol}`),n&&n()}}});var Db=h(Go=>{"use strict";Object.defineProperty(Go,"Console",{configurable:!0,enumerable:!0,get(){return VR()}});Object.defineProperty(Go,"File",{configurable:!0,enumerable:!0,get(){return xb()}});Object.defineProperty(Go,"Http",{configurable:!0,enumerable:!0,get(){return Lb()}});Object.defineProperty(Go,"Stream",{configurable:!0,enumerable:!0,get(){return wb()}})});var ou=h(ko=>{"use strict";var nu=Gc(),{configs:Hf}=pe();ko.cli=nu.levels(Hf.cli);ko.npm=nu.levels(Hf.npm);ko.syslog=nu.levels(Hf.syslog);ko.addColors=nu.levels});var Vb=h((iu,Ub)=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});var G6=Ca(),k6=Ir(G6),H6=Ya(),F6=Ir(H6),Y6=Of(),q6=Ir(Y6),j6=mf(),$6=Ir(j6),K6=yf(),W6=Ir(K6),z6=xr(),X6=Ir(z6),J6=_n(),Q6=Ir(J6);function Ir(t){return t&&t.__esModule?t:{default:t}}function Z6(t,e,n){n=(0,$6.default)(n);var i=0,a=0,{length:u}=t,o=!1;u===0&&n(null);function r(s,l){s===!1&&(o=!0),o!==!0&&(s?n(s):(++a===u||l===F6.default)&&n(null))}for(;i<u;i++)e(t[i],i,(0,W6.default)(r))}function e$(t,e,n){return(0,q6.default)(t,1/0,e,n)}function t$(t,e,n){var i=(0,k6.default)(t)?Z6:e$;return i(t,(0,X6.default)(e),n)}iu.default=(0,Q6.default)(t$,3);Ub.exports=iu.default});var Gb=h((au,Bb)=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.default=r$;function r$(t){return(e,n,i)=>t(e,i)}Bb.exports=au.default});var lu=h((su,kb)=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});var n$=Vb(),o$=uu(n$),i$=Gb(),a$=uu(i$),u$=xr(),s$=uu(u$),l$=_n(),c$=uu(l$);function uu(t){return t&&t.__esModule?t:{default:t}}function f$(t,e,n){return(0,o$.default)(t,(0,a$.default)((0,s$.default)(e)),n)}su.default=(0,c$.default)(f$,3);kb.exports=su.default});var Fb=h((Lte,Hb)=>{"use strict";var p$=Object.prototype.toString;Hb.exports=function(e){if(typeof e.displayName=="string"&&e.constructor.name)return e.displayName;if(typeof e.name=="string"&&e.name)return e.name;if(typeof e=="object"&&e.constructor&&typeof e.constructor.name=="string")return e.constructor.name;var n=e.toString(),i=p$.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Ff=h((Ite,Yb)=>{"use strict";var d$=Fb();Yb.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=d$(e),a}});var Yf=h(Fo=>{"use strict";Fo.get=function(t){var e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var n={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(u,o){return o},Error.captureStackTrace(n,t||Fo.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};Fo.parse=function(t){if(!t.stack)return[];var e=this,n=t.stack.split(`
|
35
|
+
`).slice(1);return n.map(function(i){if(i.match(/^\s*[-]{4,}$/))return e._createParsedCallSite({fileName:i,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var a=i.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(a){var u=null,o=null,r=null,s=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];var p=r.lastIndexOf(".");if(r[p-1]=="."&&p--,p>0){u=r.substr(0,p),o=r.substr(p+1);var _=u.indexOf(".Module");_>0&&(r=r.substr(_+1),u=u.substr(0,_))}s=null}o&&(s=u,l=o),o==="<anonymous>"&&(l=null,r=null);var f={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:r,typeName:s,methodName:l,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(f)}}).filter(function(i){return!!i})};function Ho(t){for(var e in t)this[e]=t[e]}var E$=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],_$=["topLevel","eval","native","constructor"];E$.forEach(function(t){Ho.prototype[t]=null,Ho.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});_$.forEach(function(t){Ho.prototype[t]=!1,Ho.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});Fo._createParsedCallSite=function(t){return new Ho(t)}});var jb=h((Dte,qb)=>{"use strict";var{Writable:S$}=Mr();qb.exports=class extends S${constructor(e){if(super({objectMode:!0}),!e)throw new Error("ExceptionStream requires a TransportStream instance.");this.handleExceptions=!0,this.transport=e}_write(e,n,i){return e.exception?this.transport.log(e,i):(i(),!0)}}});var jf=h((Vte,Wb)=>{"use strict";var $b=L("os"),h$=lu(),qf=Bo()("winston:exception"),T$=Ff(),Kb=Yf(),v$=jb();Wb.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),process.on("uncaughtException",this.catcher))}unhandle(){this.catcher&&(process.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`uncaughtException: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
36
|
+
`),stack:e&&e.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:$b.loadavg(),uptime:$b.uptime()}}getTrace(e){return(e?Kb.parse(e):Kb.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleExceptions=!0;let n=new v$(e);this.handlers.set(e,n),this.logger.pipe(n)}}_uncaughtException(e){let n=this.getAllInfo(e),i=this._getExceptionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,u;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function o(){qf("doExit",a),qf("process._exiting",process._exiting),a&&!process._exiting&&(u&&clearTimeout(u),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);h$(i,(r,s)=>{let l=T$(s),c=r.transport||r;function p(_){return()=>{qf(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(u=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var Xb=h((Gte,zb)=>{"use strict";var{Writable:m$}=Mr();zb.exports=class extends m${constructor(e){if(super({objectMode:!0}),!e)throw new Error("RejectionStream requires a TransportStream instance.");this.handleRejections=!0,this.transport=e}_write(e,n,i){return e.rejection?this.transport.log(e,i):(i(),!0)}}});var Kf=h((Hte,Zb)=>{"use strict";var Jb=L("os"),y$=lu(),$f=Bo()("winston:rejection"),A$=Ff(),Qb=Yf(),O$=Xb();Zb.exports=class{constructor(e){if(!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map}handle(...e){e.forEach(n=>{if(Array.isArray(n))return n.forEach(i=>this._addHandler(i));this._addHandler(n)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),process.on("unhandledRejection",this.catcher))}unhandle(){this.catcher&&(process.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(e=>this.logger.unpipe(e)))}getAllInfo(e){let n=null;return e&&(n=typeof e=="string"?e:e.message),{error:e,level:"error",message:[`unhandledRejection: ${n||"(no error message)"}`,e&&e.stack||" No stack trace"].join(`
|
37
|
+
`),stack:e&&e.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(e)}}getProcessInfo(){return{pid:process.pid,uid:process.getuid?process.getuid():null,gid:process.getgid?process.getgid():null,cwd:process.cwd(),execPath:process.execPath,version:process.version,argv:process.argv,memoryUsage:process.memoryUsage()}}getOsInfo(){return{loadavg:Jb.loadavg(),uptime:Jb.uptime()}}getTrace(e){return(e?Qb.parse(e):Qb.get()).map(i=>({column:i.getColumnNumber(),file:i.getFileName(),function:i.getFunctionName(),line:i.getLineNumber(),method:i.getMethodName(),native:i.isNative()}))}_addHandler(e){if(!this.handlers.has(e)){e.handleRejections=!0;let n=new O$(e);this.handlers.set(e,n),this.logger.pipe(n)}}_unhandledRejection(e){let n=this.getAllInfo(e),i=this._getRejectionHandlers(),a=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(e):this.logger.exitOnError,u;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function o(){$f("doExit",a),$f("process._exiting",process._exiting),a&&!process._exiting&&(u&&clearTimeout(u),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);y$(i,(r,s)=>{let l=A$(s),c=r.transport||r;function p(_){return()=>{$f(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(u=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var t0=h((Fte,e0)=>{"use strict";var Wf=class{constructor(e){let n=cu();if(typeof e!="object"||Array.isArray(e)||!(e instanceof n))throw new Error("Logger is required for profiling");this.logger=e,this.start=Date.now()}done(...e){typeof e[e.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),e.pop());let n=typeof e[e.length-1]=="object"?e.pop():{};return n.level=n.level||"info",n.durationMs=Date.now()-this.start,this.logger.write(n)}};e0.exports=Wf});var cu=h((Yte,i0)=>{"use strict";var{Stream:g$,Transform:N$}=Mr(),r0=lu(),{LEVEL:At,SPLAT:n0}=pe(),o0=kf(),R$=jf(),P$=Kf(),b$=hf(),x$=t0(),{warn:M$}=kc(),L$=ou(),I$=/%[scdjifoO%]/g,fu=class extends N${constructor(e){super({objectMode:!0}),this.configure(e)}child(e){let n=this;return Object.create(n,{write:{value:function(i){let a=Object.assign({},e,i);i instanceof Error&&(a.stack=i.stack,a.message=i.message),n.write(a)}}})}configure({silent:e,format:n,defaultMeta:i,levels:a,level:u="info",exitOnError:o=!0,transports:r,colors:s,emitErrs:l,formatters:c,padLevels:p,rewriters:_,stripColors:f,exceptionHandlers:S,rejectionHandlers:v}={}){if(this.transports.length&&this.clear(),this.silent=e,this.format=n||this.format||Cc()(),this.defaultMeta=i||null,this.levels=a||this.levels||L$.npm.levels,this.level=u,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new R$(this),this.rejections=new P$(this),this.profilers={},this.exitOnError=o,r&&(r=Array.isArray(r)?r:[r],r.forEach(T=>this.add(T))),s||l||c||p||_||f)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
38
|
+
`));S&&this.exceptions.handle(S),v&&this.rejections.handle(v)}isLevelEnabled(e){let n=zf(this.levels,e);if(n===null)return!1;let i=zf(this.levels,this.level);return i===null?!1:!this.transports||this.transports.length===0?i>=n:this.transports.findIndex(u=>{let o=zf(this.levels,u.level);return o===null&&(o=i),o>=n})!==-1}log(e,n,...i){if(arguments.length===1)return e[At]=e.level,this._addDefaultMeta(e),this.write(e),this;if(arguments.length===2)return n&&typeof n=="object"?(n[At]=n.level=e,this._addDefaultMeta(n),this.write(n),this):(n={[At]:e,level:e,message:n},this._addDefaultMeta(n),this.write(n),this);let[a]=i;if(typeof a=="object"&&a!==null&&!(n&&n.match&&n.match(I$))){let o=Object.assign({},this.defaultMeta,a,{[At]:e,[n0]:i,level:e,message:n});return a.message&&(o.message=`${o.message} ${a.message}`),a.stack&&(o.stack=a.stack),this.write(o),this}return this.write(Object.assign({},this.defaultMeta,{[At]:e,[n0]:i,level:e,message:n})),this}_transform(e,n,i){if(this.silent)return i();e[At]||(e[At]=e.level),!this.levels[e[At]]&&this.levels[e[At]]!==0&&console.error("[winston] Unknown logger level: %s",e[At]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",e);try{this.push(this.format.transform(e,this.format.options))}finally{this._writableState.sync=!1,i()}}_final(e){let n=this.transports.slice();r0(n,(i,a)=>{if(!i||i.finished)return setImmediate(a);i.once("finish",a),i.end()},e)}add(e){let n=!o0(e)||e.log.length>2?new b$({transport:e}):e;if(!n._writableState||!n._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",n),this._onEvent("warn",n),this.pipe(n),e.handleExceptions&&this.exceptions.handle(),e.handleRejections&&this.rejections.handle(),this}remove(e){if(!e)return this;let n=e;return(!o0(e)||e.log.length>2)&&(n=this.transports.filter(i=>i.transport===e)[0]),n&&this.unpipe(n),this}clear(){return this.unpipe(),this}close(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}setLevels(){M$.deprecated("setLevels")}query(e,n){typeof e=="function"&&(n=e,e={}),e=e||{};let i={},a=Object.assign({},e.query||{});function u(r,s){e.query&&typeof r.formatQuery=="function"&&(e.query=r.formatQuery(a)),r.query(e,(l,c)=>{if(l)return s(l);typeof r.formatResults=="function"&&(c=r.formatResults(c,e.format)),s(null,c)})}function o(r,s){u(r,(l,c)=>{s&&(c=l||c,c&&(i[r.name]=c),s()),s=null})}r0(this.transports.filter(r=>!!r.query),o,()=>n(null,i))}stream(e={}){let n=new g$,i=[];return n._streams=i,n.destroy=()=>{let a=i.length;for(;a--;)i[a].destroy()},this.transports.filter(a=>!!a.stream).forEach(a=>{let u=a.stream(e);u&&(i.push(u),u.on("log",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("log",o)}),u.on("error",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("error",o)}))}),n}startTimer(){return new x$(this)}profile(e,...n){let i=Date.now();if(this.profilers[e]){let a=this.profilers[e];delete this.profilers[e],typeof n[n.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),n.pop());let u=typeof n[n.length-1]=="object"?n.pop():{};return u.level=u.level||"info",u.durationMs=i-a,u.message=u.message||e,this.write(u)}return this.profilers[e]=i,this}handleExceptions(...e){console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),this.exceptions.handle(...e)}unhandleExceptions(...e){console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),this.exceptions.unhandle(...e)}cli(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
|
39
|
+
`))}_onEvent(e,n){function i(a){e==="error"&&!this.transports.includes(n)&&this.add(n),this.emit(e,a,n)}n["__winston"+e]||(n["__winston"+e]=i.bind(this),n.on(e,n["__winston"+e]))}_addDefaultMeta(e){this.defaultMeta&&Object.assign(e,this.defaultMeta)}};function zf(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(fu.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});i0.exports=fu});var Xf=h((qte,a0)=>{"use strict";var{LEVEL:C$}=pe(),w$=ou(),D$=cu(),U$=Bo()("winston:create-logger");function V$(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}a0.exports=function(t={}){t.levels=t.levels||w$.npm.levels;class e extends D${constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(U$('Define prototype method for "%s"',i),i==="log"){console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.');return}e.prototype[i]=function(...a){let u=this||n;if(a.length===1){let[o]=a,r=o&&o.message&&o||{message:o};return r.level=r[C$]=i,u._addDefaultMeta(r),u.write(r),this||n}return a.length===0?(u.log(i,""),u):u.log(i,...a)},e.prototype[V$(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var s0=h(($te,u0)=>{"use strict";var B$=Xf();u0.exports=class{constructor(e={}){this.loggers=new Map,this.options=e}add(e,n){if(!this.loggers.has(e)){n=Object.assign({},n||this.options);let i=n.transports||this.options.transports;i?n.transports=Array.isArray(i)?i.slice():[i]:n.transports=[];let a=B$(n);a.on("close",()=>this._delete(e)),this.loggers.set(e,a)}return this.loggers.get(e)}get(e,n){return this.add(e,n)}has(e){return!!this.loggers.has(e)}close(e){if(e)return this._removeLogger(e);this.loggers.forEach((n,i)=>this._removeLogger(i))}_removeLogger(e){if(!this.loggers.has(e))return;this.loggers.get(e).close(),this._delete(e)}_delete(e){this.loggers.delete(e)}}});var c0=h(Z=>{"use strict";var l0=Gc(),{warn:Yo}=kc();Z.version=DN().version;Z.transports=Db();Z.config=ou();Z.addColors=l0.levels;Z.format=l0.format;Z.createLogger=Xf();Z.Logger=cu();Z.ExceptionHandler=jf();Z.RejectionHandler=Kf();Z.Container=s0();Z.Transport=dn();Z.loggers=new Z.Container;var Ot=Z.createLogger();Object.keys(Z.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(t=>Z[t]=(...e)=>Ot[t](...e));Object.defineProperty(Z,"level",{get(){return Ot.level},set(t){Ot.level=t}});Object.defineProperty(Z,"exceptions",{get(){return Ot.exceptions}});Object.defineProperty(Z,"rejections",{get(){return Ot.rejections}});["exitOnError"].forEach(t=>{Object.defineProperty(Z,t,{get(){return Ot[t]},set(e){Ot[t]=e}})});Object.defineProperty(Z,"default",{get(){return{exceptionHandlers:Ot.exceptionHandlers,rejectionHandlers:Ot.rejectionHandlers,transports:Ot.transports}}});Yo.deprecated(Z,"setLevels");Yo.forFunctions(Z,"useFormat",["cli"]);Yo.forProperties(Z,"useFormat",["padLevels","stripColors"]);Yo.forFunctions(Z,"deprecated",["addRewriter","addFilter","clone","extend"]);Yo.forProperties(Z,"deprecated",["emitErrs","levelLength"])});var G$,k$,H$,pu,du,d0,E0=m(()=>{"use strict";G$="exception.type",k$="exception.message",H$="exception.stacktrace",pu=G$,du=k$,d0=H$});var _0=m(()=>{"use strict";E0()});var F$,Y$,q$,j$,$$,S0,Eu,qo,jo,$o,K$,h0,T0=m(()=>{"use strict";F$="process.runtime.name",Y$="service.name",q$="telemetry.sdk.name",j$="telemetry.sdk.language",$$="telemetry.sdk.version",S0=F$,Eu=Y$,qo=q$,jo=j$,$o=$$,K$="nodejs",h0=K$});var v0=m(()=>{"use strict";T0()});var m0=m(()=>{"use strict"});var y0=m(()=>{"use strict"});var Ko=m(()=>{"use strict";_0();v0();m0();y0()});function Tn(t){return t.setValue(Jf,!0)}function A0(t){return t.deleteValue(Jf)}function xe(t){return t.getValue(Jf)===!0}var Jf,Wo=m(()=>{"use strict";M();Jf=Kr("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var O0,_u,vn,Su,g0,N0,R0,Qf=m(()=>{"use strict";O0="=",_u=";",vn=",",Su="baggage",g0=180,N0=4096,R0=8192});function hu(t){return t.reduce(function(e,n){var i=""+e+(e!==""?vn:"")+n;return i.length>R0?e:i},"")}function Tu(t){return t.getAllEntries().map(function(e){var n=W$(e,2),i=n[0],a=n[1],u=encodeURIComponent(i)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(u+=_u+a.metadata.toString()),u})}function zo(t){var e=t.split(_u);if(!(e.length<=0)){var n=e.shift();if(n){var i=n.indexOf(O0);if(!(i<=0)){var a=decodeURIComponent(n.substring(0,i).trim()),u=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=lE(e.join(_u))),{key:a,value:u,metadata:o}}}}}function P0(t){return typeof t!="string"||t.length===0?{}:t.split(vn).map(function(e){return zo(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var W$,Zf=m(()=>{"use strict";M();Qf();W$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}});var vu,b0=m(()=>{"use strict";M();Wo();Qf();Zf();vu=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=at.getBaggage(e);if(!(!a||xe(e))){var u=Tu(a).filter(function(r){return r.length<=N0}).slice(0,g0),o=hu(u);o.length>0&&i.set(n,Su,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,Su),u=Array.isArray(a)?a.join(vn):a;if(!u)return e;var o={};if(u.length===0)return e;var r=u.split(vn);return r.forEach(function(s){var l=zo(s);if(l){var c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0?e:at.setBaggage(e,at.createBaggage(o))},t.prototype.fields=function(){return[Su]},t}()});var x0,M0=m(()=>{"use strict";x0=function(){function t(e,n){this._monotonicClock=n,this._epochMillis=e.now(),this._performanceMillis=n.now()}return t.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},t}()});function or(t){var e,n,i={};if(typeof t!="object"||t==null)return i;try{for(var a=L0(Object.entries(t)),u=a.next();!u.done;u=a.next()){var o=z$(u.value,2),r=o[0],s=o[1];if(!ep(r)){g.warn("Invalid attribute key: "+r);continue}if(!Xo(s)){g.warn("Invalid attribute value set for key: "+r);continue}Array.isArray(s)?i[r]=s.slice():i[r]=s}}catch(l){e={error:l}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function ep(t){return typeof t=="string"&&t.length>0}function Xo(t){return t==null?!0:Array.isArray(t)?X$(t):I0(t)}function X$(t){var e,n,i;try{for(var a=L0(t),u=a.next();!u.done;u=a.next()){var o=u.value;if(o!=null){if(!i){if(I0(o)){i=typeof o;continue}return!1}if(typeof o!==i)return!1}}}catch(r){e={error:r}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!0}function I0(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var L0,z$,C0=m(()=>{"use strict";M();L0=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},z$=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}});function mu(){return function(t){g.error(J$(t))}}function J$(t){return typeof t=="string"?t:JSON.stringify(Q$(t))}function Q$(t){for(var e={},n=t;n!==null;)Object.getOwnPropertyNames(n).forEach(function(i){if(!e[i]){var a=n[i];a&&(e[i]=String(a))}}),n=Object.getPrototypeOf(n);return e}var tp=m(()=>{"use strict";M()});function D0(t){w0=t}function Te(t){try{w0(t)}catch{}}var w0,rp=m(()=>{"use strict";tp();w0=mu()});var Ke,np=m(()=>{"use strict";(function(t){t.AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})(Ke||(Ke={}))});function tK(t){return eK.indexOf(t)>-1}function nK(t){return rK.indexOf(t)>-1}function iK(t){return oK.indexOf(t)>-1}function aK(t,e,n){if(!(typeof n[t]>"u")){var i=String(n[t]);e[t]=i.toLowerCase()==="true"}}function uK(t,e,n,i,a){if(i===void 0&&(i=-1/0),a===void 0&&(a=1/0),typeof n[t]<"u"){var u=Number(n[t]);isNaN(u)||(u<i?e[t]=i:u>a?e[t]=a:e[t]=u)}}function sK(t,e,n,i){i===void 0&&(i=Z$);var a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(function(u){return u.trim()}))}function cK(t,e,n){var i=n[t];if(typeof i=="string"){var a=lK[i.toUpperCase()];a!=null&&(e[t]=a)}}function Qo(t){var e={};for(var n in Jo){var i=n;switch(i){case"OTEL_LOG_LEVEL":cK(i,e,t);break;default:if(tK(i))aK(i,e,t);else if(nK(i))uK(i,e,t);else if(iK(i))sK(i,e,t);else{var a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}var Z$,eK,rK,oK,Cr,wr,op,ip,Jo,lK,ap=m(()=>{"use strict";M();np();Z$=",",eK=["OTEL_SDK_DISABLED"];rK=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];oK=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];Cr=1/0,wr=128,op=128,ip=128,Jo={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:it.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Cr,OTEL_ATTRIBUTE_COUNT_LIMIT:wr,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Cr,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:wr,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Cr,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:wr,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:op,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:ip,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ke.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};lK={ALL:it.ALL,VERBOSE:it.VERBOSE,DEBUG:it.DEBUG,INFO:it.INFO,WARN:it.WARN,ERROR:it.ERROR,NONE:it.NONE}});function Oe(){var t=Qo(process.env);return Object.assign({},Jo,t)}function mn(){return Qo(process.env)}var U0=m(()=>{"use strict";ap()});var yu,V0=m(()=>{"use strict";yu=typeof globalThis=="object"?globalThis:global});function B0(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function ir(t){for(var e=new Uint8Array(t.length/2),n=0,i=0;i<t.length;i+=2){var a=B0(t.charCodeAt(i)),u=B0(t.charCodeAt(i+1));e[n++]=a<<4|u}return e}var up=m(()=>{"use strict"});function Au(t){return Buffer.from(ir(t)).toString("base64")}var G0=m(()=>{"use strict";up()});function k0(t){return function(){for(var n=0;n<t/4;n++)Ou.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(Ou[n]>0);n++)n===t-1&&(Ou[t-1]=1);return Ou.toString("hex",0,t)}}var fK,H0,gu,Ou,F0=m(()=>{"use strict";fK=8,H0=16,gu=function(){function t(){this.generateTraceId=k0(H0),this.generateSpanId=k0(fK)}return t}(),Ou=Buffer.allocUnsafe(H0)});import{performance as pK}from"perf_hooks";var et,Y0=m(()=>{"use strict";et=pK});var Nu,sp=m(()=>{"use strict";Nu="1.29.0"});var yn,ar,q0=m(()=>{"use strict";sp();Ko();ar=(yn={},yn[qo]="opentelemetry",yn[S0]="node",yn[jo]=h0,yn[$o]=Nu,yn)});function ur(t){t.unref()}var j0=m(()=>{"use strict"});var $0=m(()=>{"use strict";U0();V0();G0();F0();Y0();q0();j0()});var lp=m(()=>{"use strict";$0()});function ge(t){var e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*EK);return[n,i]}function An(){var t=et.timeOrigin;if(typeof t!="number"){var e=et;t=e.timing&&e.timing.fetchStart}return t}function Zo(t){var e=ge(An()),n=ge(typeof t=="number"?t:et.now());return ti(e,n)}function W0(t){if(On(t))return t;if(typeof t=="number")return t<An()?Zo(t):ge(t);if(t instanceof Date)return ge(t.getTime());throw TypeError("Invalid input type")}function Pu(t,e){var n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=Ru),[n,i]}function z0(t){var e=K0,n=""+"0".repeat(e)+t[1]+"Z",i=n.substring(n.length-e-1),a=new Date(t[0]*1e3).toISOString();return a.replace("000Z",i)}function bu(t){return t[0]*Ru+t[1]}function X0(t){return t[0]*1e3+t[1]/1e6}function Nt(t){return t[0]*1e6+t[1]/1e3}function On(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function ei(t){return On(t)||typeof t=="number"||t instanceof Date}function ti(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Ru&&(n[1]-=Ru,n[0]+=1),n}var K0,dK,EK,Ru,J0=m(()=>{"use strict";lp();K0=9,dK=6,EK=Math.pow(10,dK),Ru=Math.pow(10,K0)});var W,Q0=m(()=>{"use strict";(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(W||(W={}))});var _K,xu,Z0=m(()=>{"use strict";M();_K=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xu=function(){function t(e){e===void 0&&(e={});var n;this._propagators=(n=e.propagators)!==null&&n!==void 0?n:[],this._fields=Array.from(new Set(this._propagators.map(function(i){return typeof i.fields=="function"?i.fields():[]}).reduce(function(i,a){return i.concat(a)},[])))}return t.prototype.inject=function(e,n,i){var a,u;try{for(var o=_K(this._propagators),r=o.next();!r.done;r=o.next()){var s=r.value;try{s.inject(e,n,i)}catch(l){g.warn("Failed to inject with "+s.constructor.name+". Err: "+l.message)}}}catch(l){a={error:l}}finally{try{r&&!r.done&&(u=o.return)&&u.call(o)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){return this._propagators.reduce(function(a,u){try{return u.extract(a,n,i)}catch(o){g.warn("Failed to extract with "+u.constructor.name+". Err: "+o.message)}return a},e)},t.prototype.fields=function(){return this._fields.slice()},t}()});function ex(t){return TK.test(t)}function tx(t){return vK.test(t)&&!mK.test(t)}var cp,SK,hK,TK,vK,mK,rx=m(()=>{"use strict";cp="[_0-9a-z-*/]",SK="[a-z]"+cp+"{0,255}",hK="[a-z0-9]"+cp+"{0,240}@[a-z]"+cp+"{0,13}",TK=new RegExp("^(?:"+SK+"|"+hK+")$"),vK=/^[ -~]{0,255}[!-~]$/,mK=/,|=/});var nx,yK,ox,ix,Mu,fp=m(()=>{"use strict";rx();nx=32,yK=512,ox=",",ix="=",Mu=function(){function t(e){this._internalState=new Map,e&&this._parse(e)}return t.prototype.set=function(e,n){var i=this._clone();return i._internalState.has(e)&&i._internalState.delete(e),i._internalState.set(e,n),i},t.prototype.unset=function(e){var n=this._clone();return n._internalState.delete(e),n},t.prototype.get=function(e){return this._internalState.get(e)},t.prototype.serialize=function(){var e=this;return this._keys().reduce(function(n,i){return n.push(i+ix+e.get(i)),n},[]).join(ox)},t.prototype._parse=function(e){e.length>yK||(this._internalState=e.split(ox).reverse().reduce(function(n,i){var a=i.trim(),u=a.indexOf(ix);if(u!==-1){var o=a.slice(0,u),r=a.slice(u+1,i.length);ex(o)&&tx(r)&&n.set(o,r)}return n},new Map),this._internalState.size>nx&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,nx))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}()});function pp(t){var e=PK.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var ri,ni,AK,OK,gK,NK,RK,PK,Lu,ax=m(()=>{"use strict";M();Wo();fp();ri="traceparent",ni="tracestate",AK="00",OK="(?!ff)[\\da-f]{2}",gK="(?![0]{32})[\\da-f]{32}",NK="(?![0]{16})[\\da-f]{16}",RK="[\\da-f]{2}",PK=new RegExp("^\\s?("+OK+")-("+gK+")-("+NK+")-("+RK+")(-.*)?\\s?$");Lu=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=J.getSpanContext(e);if(!(!a||xe(e)||!_t(a))){var u=AK+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||Q.NONE).toString(16);i.set(n,ri,u),a.traceState&&i.set(n,ni,a.traceState.serialize())}},t.prototype.extract=function(e,n,i){var a=i.get(n,ri);if(!a)return e;var u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return e;var o=pp(u);if(!o)return e;o.isRemote=!0;var r=i.get(n,ni);if(r){var s=Array.isArray(r)?r.join(","):r;o.traceState=new Mu(typeof s=="string"?s:void 0)}return J.setSpanContext(e,o)},t.prototype.fields=function(){return[ri,ni]},t}()});function ux(t,e){return t.setValue(dp,e)}function sx(t){return t.deleteValue(dp)}function lx(t){return t.getValue(dp)}var dp,Iu,cx=m(()=>{"use strict";M();dp=Kr("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(Iu||(Iu={}))});var oi,Ep=m(()=>{"use strict";M();oi=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var gn,_p=m(()=>{"use strict";M();gn=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var fx,px=m(()=>{"use strict";M();rp();Ep();_p();fx=function(){function t(e){var n,i,a,u;this._root=e.root,this._root||(Te(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new gn),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new gn,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new oi,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new gn,this._localParentNotSampled=(u=e.localParentNotSampled)!==null&&u!==void 0?u:new oi}return t.prototype.shouldSample=function(e,n,i,a,u,o){var r=J.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,u,o):r.isRemote?r.traceFlags&Q.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,u,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,u,o):r.traceFlags&Q.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,u,o):this._localParentNotSampled.shouldSample(e,n,i,a,u,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var dx,Ex=m(()=>{"use strict";M();dx=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Gt(n)&&this._accumulate(n)<this._upperBound?St.RECORD_AND_SAMPLED:St.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,u=parseInt(e.slice(a,a+8),16);n=(n^u)>>>0}return n},t}()});function wK(t,e){return function(n){return t(e(n))}}function Sp(t){if(!DK(t)||UK(t)!==bK)return!1;var e=CK(t);if(e===null)return!0;var n=hx.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&_x.call(n)===IK}function DK(t){return t!=null&&typeof t=="object"}function UK(t){return t==null?t===void 0?MK:xK:Dr&&Dr in Object(t)?VK(t):BK(t)}function VK(t){var e=hx.call(t,Dr),n=t[Dr],i=!1;try{t[Dr]=void 0,i=!0}catch{}var a=Tx.call(t);return i&&(e?t[Dr]=n:delete t[Dr]),a}function BK(t){return Tx.call(t)}var bK,xK,MK,LK,_x,IK,CK,Sx,hx,Dr,Tx,vx=m(()=>{"use strict";bK="[object Object]",xK="[object Null]",MK="[object Undefined]",LK=Function.prototype,_x=LK.toString,IK=_x.call(Object),CK=wK(Object.getPrototypeOf,Object),Sx=Object.prototype,hx=Sx.hasOwnProperty,Dr=Symbol?Symbol.toStringTag:void 0,Tx=Sx.toString});function Du(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.shift(),i=new WeakMap;t.length>0;)n=yx(n,t.shift(),0,i);return n}function hp(t){return wu(t)?t.slice():t}function yx(t,e,n,i){n===void 0&&(n=0);var a;if(!(n>GK)){if(n++,Cu(t)||Cu(e)||Ax(e))a=hp(e);else if(wu(t)){if(a=t.slice(),wu(e))for(var u=0,o=e.length;u<o;u++)a.push(hp(e[u]));else if(ii(e))for(var r=Object.keys(e),u=0,o=r.length;u<o;u++){var s=r[u];a[s]=hp(e[s])}}else if(ii(t))if(ii(e)){if(!kK(t,e))return e;a=Object.assign({},t);for(var r=Object.keys(e),u=0,o=r.length;u<o;u++){var s=r[u],l=e[s];if(Cu(l))typeof l>"u"?delete a[s]:a[s]=l;else{var c=a[s],p=l;if(mx(t,s,i)||mx(e,s,i))delete a[s];else{if(ii(c)&&ii(p)){var _=i.get(c)||[],f=i.get(p)||[];_.push({obj:t,key:s}),f.push({obj:e,key:s}),i.set(c,_),i.set(p,f)}a[s]=yx(a[s],l,n,i)}}}}else a=e;return a}}function mx(t,e,n){for(var i=n.get(t[e])||[],a=0,u=i.length;a<u;a++){var o=i[a];if(o.key===e&&o.obj===t)return!0}return!1}function wu(t){return Array.isArray(t)}function Ax(t){return typeof t=="function"}function ii(t){return!Cu(t)&&!wu(t)&&!Ax(t)&&typeof t=="object"}function Cu(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||t instanceof Date||t instanceof RegExp||t===null}function kK(t,e){return!(!Sp(t)||!Sp(e))}var GK,Ox=m(()=>{"use strict";vx();GK=20});function gx(t,e){var n,i=new Promise(function(u,o){n=setTimeout(function(){o(new Tp("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}var HK,Tp,Nx=m(()=>{"use strict";HK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Tp=function(t){HK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});function vp(t,e){return typeof e=="string"?t===e:!!t.match(e)}function Rx(t,e){var n,i;if(!e)return!1;try{for(var a=FK(e),u=a.next();!u.done;u=a.next()){var o=u.value;if(vp(t,o))return!0}}catch(r){n={error:r}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1}var FK,Px=m(()=>{"use strict";FK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}});function bx(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var xx=m(()=>{"use strict"});var Mx,Lx=m(()=>{"use strict";Mx=function(){function t(){var e=this;this._promise=new Promise(function(n,i){e._resolve=n,e._reject=i})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(e){this._resolve(e)},t.prototype.reject=function(e){this._reject(e)},t}()});var YK,qK,Nn,Ix=m(()=>{"use strict";Lx();YK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},qK=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},Nn=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new Mx}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var e,n=this,i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,qK([this._that],YK(i),!1))).then(function(u){return n._deferred.resolve(u)},function(u){return n._deferred.reject(u)})}catch(u){this._deferred.reject(u)}}return this._deferred.promise},t}()});function Cx(t,e){return new Promise(function(n){Ye.with(Tn(Ye.active()),function(){t.export(e,function(i){n(i)})})})}var wx=m(()=>{"use strict";M();Wo()});var Uu={};Je(Uu,{AlwaysOffSampler:()=>oi,AlwaysOnSampler:()=>gn,AnchoredClock:()=>x0,BindOnceFuture:()=>Nn,CompositePropagator:()=>xu,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>wr,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Cr,DEFAULT_ENVIRONMENT:()=>Jo,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>op,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>ip,ExportResultCode:()=>W,ParentBasedSampler:()=>fx,RPCType:()=>Iu,RandomIdGenerator:()=>gu,SDK_INFO:()=>ar,TRACE_PARENT_HEADER:()=>ri,TRACE_STATE_HEADER:()=>ni,TimeoutError:()=>Tp,TraceIdRatioBasedSampler:()=>dx,TraceState:()=>Mu,TracesSamplerValues:()=>Ke,VERSION:()=>Nu,W3CBaggagePropagator:()=>vu,W3CTraceContextPropagator:()=>Lu,_globalThis:()=>yu,addHrTimes:()=>ti,baggageUtils:()=>Rn,callWithTimeout:()=>gx,deleteRPCMetadata:()=>sx,getEnv:()=>Oe,getEnvWithoutDefaults:()=>mn,getRPCMetadata:()=>lx,getTimeOrigin:()=>An,globalErrorHandler:()=>Te,hexToBase64:()=>Au,hexToBinary:()=>ir,hrTime:()=>Zo,hrTimeDuration:()=>Pu,hrTimeToMicroseconds:()=>Nt,hrTimeToMilliseconds:()=>X0,hrTimeToNanoseconds:()=>bu,hrTimeToTimeStamp:()=>z0,internal:()=>ai,isAttributeKey:()=>ep,isAttributeValue:()=>Xo,isTimeInput:()=>ei,isTimeInputHrTime:()=>On,isTracingSuppressed:()=>xe,isUrlIgnored:()=>Rx,isWrapped:()=>bx,loggingErrorHandler:()=>mu,merge:()=>Du,millisToHrTime:()=>ge,otperformance:()=>et,parseEnvironment:()=>Qo,parseTraceParent:()=>pp,sanitizeAttributes:()=>or,setGlobalErrorHandler:()=>D0,setRPCMetadata:()=>ux,suppressTracing:()=>Tn,timeInputToHrTime:()=>W0,unrefTimer:()=>ur,unsuppressTracing:()=>A0,urlMatches:()=>vp});var Rn,ai,K=m(()=>{"use strict";b0();M0();C0();rp();tp();J0();up();Q0();Zf();lp();Z0();ax();cx();Ep();_p();px();Ex();Wo();fp();ap();Ox();np();Nx();Px();xx();Ix();sp();wx();Rn={getKeyPairs:Tu,serializeKeyPairs:hu,parseKeyPairsIntoRecord:P0,parsePairKeyValue:zo},ai={_export:Cx}});function Vu(){return"unknown_service:"+process.argv0}var Dx=m(()=>{"use strict"});var Ux=m(()=>{"use strict";Dx()});var Vx=m(()=>{"use strict";Ux()});var sr,jK,$K,KK,Dt,mp=m(()=>{"use strict";M();Ko();K();Vx();sr=function(){return sr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},sr.apply(this,arguments)},jK=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},$K=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},KK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},Dt=function(){function t(e,n){var i=this,a;this._attributes=e,this.asyncAttributesPending=n!=null,this._syncAttributes=(a=this._attributes)!==null&&a!==void 0?a:{},this._asyncAttributesPromise=n?.then(function(u){return i._attributes=Object.assign({},i._attributes,u),i.asyncAttributesPending=!1,u},function(u){return g.debug("a resource's async attributes promise rejected: %s",u),i.asyncAttributesPending=!1,{}})}return t.empty=function(){return t.EMPTY},t.default=function(){var e;return new t((e={},e[Eu]=Vu(),e[jo]=ar[jo],e[qo]=ar[qo],e[$o]=ar[$o],e))},Object.defineProperty(t.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&g.error("Accessing resource attributes before async attributes settled"),(e=this._attributes)!==null&&e!==void 0?e:{}},enumerable:!1,configurable:!0}),t.prototype.waitForAsyncAttributes=function(){return jK(this,void 0,void 0,function(){return $K(this,function(e){switch(e.label){case 0:return this.asyncAttributesPending?[4,this._asyncAttributesPromise]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},t.prototype.merge=function(e){var n=this,i;if(!e)return this;var a=sr(sr({},this._syncAttributes),(i=e._syncAttributes)!==null&&i!==void 0?i:e.attributes);if(!this._asyncAttributesPromise&&!e._asyncAttributesPromise)return new t(a);var u=Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(o){var r,s=KK(o,2),l=s[0],c=s[1];return sr(sr(sr(sr({},n._syncAttributes),l),(r=e._syncAttributes)!==null&&r!==void 0?r:e.attributes),c)});return new t(a,u)},t.EMPTY=new t({}),t}()});var WK,zK,XK,yp,Bx=m(()=>{"use strict";M();K();Ko();mp();WK=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},zK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},XK=function(){function t(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return t.prototype.detect=function(e){var n={},i=Oe(),a=i.OTEL_RESOURCE_ATTRIBUTES,u=i.OTEL_SERVICE_NAME;if(a)try{var o=this._parseResourceAttributes(a);Object.assign(n,o)}catch(r){g.debug("EnvDetector failed: "+r.message)}return u&&(n[Eu]=u),new Dt(n)},t.prototype._parseResourceAttributes=function(e){var n,i;if(!e)return{};var a={},u=e.split(this._COMMA_SEPARATOR,-1);try{for(var o=WK(u),r=o.next();!r.done;r=o.next()){var s=r.value,l=s.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(l.length===2){var c=zK(l,2),p=c[0],_=c[1];if(p=p.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(p))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);a[p]=decodeURIComponent(_)}}}catch(f){n={error:f}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},t.prototype._isBaggageOctetString=function(e){for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<33||i===44||i===59||i===92||i>126)return!1}return!0},t.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},t}(),yp=new XK});var JK,Bu,Gx=m(()=>{"use strict";Bx();JK=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(yp.detect(e))},t}(),Bu=new JK});var kx=m(()=>{"use strict";Gx()});var Gu=m(()=>{"use strict";mp();kx()});var Ne,ku=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(Ne||(Ne={}))});var Re,Pn=m(()=>{"use strict";(function(t){t[t.HISTOGRAM=0]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",t[t.GAUGE=2]="GAUGE",t[t.SUM=3]="SUM"})(Re||(Re={}))});function Yx(t){return t!=null}function Hu(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function qx(t){var e,n;return t.name+":"+((e=t.version)!==null&&e!==void 0?e:"")+":"+((n=t.schemaUrl)!==null&&n!==void 0?n:"")}function lr(t,e){var n,i=new Promise(function(u,o){n=setTimeout(function(){o(new ui("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function jx(t){return Hx(this,void 0,void 0,function(){var e=this;return Fx(this,function(n){return[2,Promise.all(t.map(function(i){return Hx(e,void 0,void 0,function(){var a,u;return Fx(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,i];case 1:return a=o.sent(),[2,{status:"fulfilled",value:a}];case 2:return u=o.sent(),[2,{status:"rejected",reason:u}];case 3:return[2]}})})}))]})})}function $x(t){return t.status==="rejected"}function Ap(t,e){var n=[];return t.forEach(function(i){n.push.apply(n,e8([],ZK(e(i)),!1))}),n}function Kx(t,e){var n,i;if(t.size!==e.size)return!1;try{for(var a=t8(t),u=a.next();!u.done;u=a.next()){var o=u.value;if(!e.has(o))return!1}}catch(r){n={error:r}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}function Wx(t,e){for(var n=0,i=t.length-1,a=t.length;i>=n;){var u=n+Math.trunc((i-n)/2);t[u]<e?n=u+1:(a=u,i=u-1)}return a}function zx(t,e){return t.toLowerCase()===e.toLowerCase()}var QK,Hx,Fx,ZK,e8,t8,ui,ft=m(()=>{"use strict";QK=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Hx=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},Fx=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ZK=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},e8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},t8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};ui=function(t){QK(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});var tt,bn=m(()=>{"use strict";(function(t){t[t.DROP=0]="DROP",t[t.SUM=1]="SUM",t[t.LAST_VALUE=2]="LAST_VALUE",t[t.HISTOGRAM=3]="HISTOGRAM",t[t.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(tt||(tt={}))});var Op,Xx=m(()=>{"use strict";bn();Op=function(){function t(){this.kind=tt.DROP}return t.prototype.createAccumulation=function(){},t.prototype.merge=function(e,n){},t.prototype.diff=function(e,n){},t.prototype.toMetricData=function(e,n,i,a){},t}()});function Rt(t,e,n){var i,a,u,o;return n8(t)||g.warn('Invalid metric name: "'+t+'". The metric name should be a ASCII string with a length no greater than 255 characters.'),{name:t,type:e,description:(i=n?.description)!==null&&i!==void 0?i:"",unit:(a=n?.unit)!==null&&a!==void 0?a:"",valueType:(u=n?.valueType)!==null&&u!==void 0?u:Et.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}function Jx(t,e){var n,i;return{name:(n=t.name)!==null&&n!==void 0?n:e.name,description:(i=t.description)!==null&&i!==void 0?i:e.description,type:e.type,unit:e.unit,valueType:e.valueType,advice:e.advice}}function Qx(t,e){return zx(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function n8(t){return t.match(r8)!=null}var C,r8,Ut=m(()=>{"use strict";M();ft();(function(t){t.COUNTER="COUNTER",t.GAUGE="GAUGE",t.HISTOGRAM="HISTOGRAM",t.UP_DOWN_COUNTER="UP_DOWN_COUNTER",t.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",t.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",t.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(C||(C={}));r8=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function i8(t){var e=t.map(function(){return 0});return e.push(0),{buckets:{boundaries:t,counts:e},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var o8,Fu,Yu,Zx=m(()=>{"use strict";bn();Pn();Ut();ft();o8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u};Fu=function(){function t(e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=i8(n)),this.startTime=e,this._boundaries=n,this._recordMinMax=i,this._current=a}return t.prototype.record=function(e){if(!Number.isNaN(e)){this._current.count+=1,this._current.sum+=e,this._recordMinMax&&(this._current.min=Math.min(e,this._current.min),this._current.max=Math.max(e,this._current.max),this._current.hasMinMax=!0);var n=Wx(this._boundaries,e);this._current.buckets.counts[n]+=1}},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Yu=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=tt.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new Fu(e,this._boundaries,this._recordMinMax)},t.prototype.merge=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),u=i.buckets.counts,o=a.buckets.counts,r=new Array(u.length),s=0;s<u.length;s++)r[s]=u[s]+o[s];var l=1/0,c=-1/0;return this._recordMinMax&&(i.hasMinMax&&a.hasMinMax?(l=Math.min(i.min,a.min),c=Math.max(i.max,a.max)):i.hasMinMax?(l=i.min,c=i.max):a.hasMinMax&&(l=a.min,c=a.max)),new Fu(e.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:i.count+a.count,sum:i.sum+a.sum,hasMinMax:this._recordMinMax&&(i.hasMinMax||a.hasMinMax),min:l,max:c})},t.prototype.diff=function(e,n){for(var i=e.toPointValue(),a=n.toPointValue(),u=i.buckets.counts,o=a.buckets.counts,r=new Array(u.length),s=0;s<u.length;s++)r[s]=o[s]-u[s];return new Fu(n.startTime,i.buckets.boundaries,this._recordMinMax,{buckets:{boundaries:i.buckets.boundaries,counts:r},count:a.count-i.count,sum:a.sum-i.sum,hasMinMax:!1,min:1/0,max:-1/0})},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.HISTOGRAM,dataPoints:i.map(function(u){var o=o8(u,2),r=o[0],s=o[1],l=s.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:s.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,buckets:l.buckets,count:l.count}}})}},t}()});var gp,Np,Rp,a8,eM=m(()=>{"use strict";gp=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},Np=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},Rp=function(){function t(e,n,i,a){e===void 0&&(e=new a8),n===void 0&&(n=0),i===void 0&&(i=0),a===void 0&&(a=0),this.backing=e,this.indexBase=n,this.indexStart=i,this.indexEnd=a}return Object.defineProperty(t.prototype,"offset",{get:function(){return this.indexStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1},enumerable:!1,configurable:!0}),t.prototype.counts=function(){var e=this;return Array.from({length:this.length},function(n,i){return e.at(i)})},t.prototype.at=function(e){var n=this.indexBase-this.indexStart;return e<n&&(e+=this.backing.length),e-=n,this.backing.countAt(e)},t.prototype.incrementBucket=function(e,n){this.backing.increment(e,n)},t.prototype.decrementBucket=function(e,n){this.backing.decrement(e,n)},t.prototype.trim=function(){for(var e=0;e<this.length;e++)if(this.at(e)!==0){this.indexStart+=e;break}else if(e===this.length-1){this.indexStart=this.indexEnd=this.indexBase=0;return}for(var e=this.length-1;e>=0;e--)if(this.at(e)!==0){this.indexEnd-=this.length-e-1;break}this._rotate()},t.prototype.downscale=function(e){this._rotate();for(var n=1+this.indexEnd-this.indexStart,i=1<<e,a=0,u=0,o=this.indexStart;o<=this.indexEnd;){var r=o%i;r<0&&(r+=i);for(var s=r;s<i&&a<n;s++)this._relocateBucket(u,a),a++,o++;u++}this.indexStart>>=e,this.indexEnd>>=e,this.indexBase=this.indexStart},t.prototype.clone=function(){return new t(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)},t.prototype._rotate=function(){var e=this.indexBase-this.indexStart;e!==0&&(e>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,e),this.backing.reverse(e,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+e)),this.indexBase=this.indexStart)},t.prototype._relocateBucket=function(e,n){e!==n&&this.incrementBucket(e,this.backing.emptyBucket(n))},t}(),a8=function(){function t(e){e===void 0&&(e=[0]),this._counts=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this._counts.length},enumerable:!1,configurable:!0}),t.prototype.countAt=function(e){return this._counts[e]},t.prototype.growTo=function(e,n,i){var a=new Array(e).fill(0);a.splice.apply(a,Np([i,this._counts.length-n],gp(this._counts.slice(n)),!1)),a.splice.apply(a,Np([0,n],gp(this._counts.slice(0,n)),!1)),this._counts=a},t.prototype.reverse=function(e,n){for(var i=Math.floor((e+n)/2)-e,a=0;a<i;a++){var u=this._counts[e+a];this._counts[e+a]=this._counts[n-a-1],this._counts[n-a-1]=u}},t.prototype.emptyBucket=function(e){var n=this._counts[e];return this._counts[e]=0,n},t.prototype.increment=function(e,n){this._counts[e]+=n},t.prototype.decrement=function(e,n){this._counts[e]>=n?this._counts[e]-=n:this._counts[e]=0},t.prototype.clone=function(){return new t(Np([],gp(this._counts),!1))},t}()});function $u(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=(n&u8)>>20;return i-Pp}function Ku(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=e.getUint32(4),a=(n&s8)*Math.pow(2,32);return a+i}var tM,u8,s8,Pp,qu,ju,si,bp=m(()=>{"use strict";tM=52,u8=2146435072,s8=1048575,Pp=1023,qu=-Pp+1,ju=Pp,si=Math.pow(2,-1022)});function li(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function nM(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var Wu=m(()=>{"use strict"});var l8,cr,zu=m(()=>{"use strict";l8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),cr=function(t){l8(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var iM,aM=m(()=>{"use strict";bp();Wu();zu();iM=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<si)return this._minNormalLowerBoundaryIndex();var n=$u(e),i=this._rightShift(Ku(e)-1,tM);return n+i>>this._shift},t.prototype.lowerBoundary=function(e){var n=this._minNormalLowerBoundaryIndex();if(e<n)throw new cr("underflow: "+e+" is < minimum lower boundary: "+n);var i=this._maxNormalLowerBoundaryIndex();if(e>i)throw new cr("overflow: "+e+" is > maximum lower boundary: "+i);return li(1,e<<this._shift)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._shift===0?0:-this._shift},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){var e=qu>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return ju>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var uM,sM=m(()=>{"use strict";bp();Wu();zu();uM=function(){function t(e){this._scale=e,this._scaleFactor=li(Math.LOG2E,e),this._inverseFactor=li(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=si)return this._minNormalLowerBoundaryIndex()-1;if(Ku(e)===0){var n=$u(e);return(n<<this._scale)-1}var i=Math.floor(Math.log(e)*this._scaleFactor),a=this._maxNormalLowerBoundaryIndex();return i>=a?a:i},t.prototype.lowerBoundary=function(e){var n=this._maxNormalLowerBoundaryIndex();if(e>=n){if(e===n)return 2*Math.exp((e-(1<<this._scale))/this._scaleFactor);throw new cr("overflow: "+e+" is > maximum lower boundary: "+n)}var i=this._minNormalLowerBoundaryIndex();if(e<=i){if(e===i)return si;if(e===i-1)return Math.exp((e+(1<<this._scale))/this._scaleFactor)/2;throw new cr("overflow: "+e+" is < minimum lower boundary: "+i)}return Math.exp(e*this._inverseFactor)},Object.defineProperty(t.prototype,"scale",{get:function(){return this._scale},enumerable:!1,configurable:!0}),t.prototype._minNormalLowerBoundaryIndex=function(){return qu<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(ju+1<<this._scale)-1},t}()});function xp(t){if(t>cM||t<lM)throw new cr("expected scale >= "+lM+" && <= "+cM+", got: "+t);return c8[t+10]}var lM,cM,c8,fM=m(()=>{"use strict";aM();sM();zu();lM=-10,cM=20,c8=Array.from({length:31},function(t,e){return e>10?new uM(e-10):new iM(e-10)})});var f8,Xu,p8,d8,Mp,pM,Lp,dM=m(()=>{"use strict";bn();Pn();M();Ut();eM();fM();Wu();f8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},Xu=function(){function t(e,n){this.low=e,this.high=n}return t.combine=function(e,n){return new t(Math.min(e.low,n.low),Math.max(e.high,n.high))},t}(),p8=20,d8=160,Mp=2,pM=function(){function t(e,n,i,a,u,o,r,s,l,c,p){e===void 0&&(e=e),n===void 0&&(n=d8),i===void 0&&(i=!0),a===void 0&&(a=0),u===void 0&&(u=0),o===void 0&&(o=0),r===void 0&&(r=Number.POSITIVE_INFINITY),s===void 0&&(s=Number.NEGATIVE_INFINITY),l===void 0&&(l=new Rp),c===void 0&&(c=new Rp),p===void 0&&(p=xp(p8)),this.startTime=e,this._maxSize=n,this._recordMinMax=i,this._sum=a,this._count=u,this._zeroCount=o,this._min=r,this._max=s,this._positive=l,this._negative=c,this._mapping=p,this._maxSize<Mp&&(g.warn("Exponential Histogram Max Size set to "+this._maxSize+", changing to the minimum size of: "+Mp),this._maxSize=Mp)}return t.prototype.record=function(e){this.updateByIncrement(e,1)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){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}},Object.defineProperty(t.prototype,"sum",{get:function(){return this._sum},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"zeroCount",{get:function(){return this._zeroCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this._count===this._zeroCount?0:this._mapping.scale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"positive",{get:function(){return this._positive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"negative",{get:function(){return this._negative},enumerable:!1,configurable:!0}),t.prototype.updateByIncrement=function(e,n){if(!Number.isNaN(e)){if(e>this._max&&(this._max=e),e<this._min&&(this._min=e),this._count+=n,e===0){this._zeroCount+=n;return}this._sum+=e*n,e>0?this._updateBuckets(this._positive,e,n):this._updateBuckets(this._negative,-e,n)}},t.prototype.merge=function(e){this._count===0?(this._min=e.min,this._max=e.max):e.count!==0&&(e.min<this.min&&(this._min=e.min),e.max>this.max&&(this._max=e.max)),this.startTime=e.startTime,this._sum+=e.sum,this._count+=e.count,this._zeroCount+=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._mergeBuckets(this.positive,e,e.positive,n),this._mergeBuckets(this.negative,e,e.negative,n)},t.prototype.diff=function(e){this._min=1/0,this._max=-1/0,this._sum-=e.sum,this._count-=e.count,this._zeroCount-=e.zeroCount;var n=this._minScale(e);this._downscale(this.scale-n),this._diffBuckets(this.positive,e,e.positive,n),this._diffBuckets(this.negative,e,e.negative,n)},t.prototype.clone=function(){return new t(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)},t.prototype._updateBuckets=function(e,n,i){var a=this._mapping.mapToIndex(n),u=!1,o=0,r=0;if(e.length===0?(e.indexStart=a,e.indexEnd=e.indexStart,e.indexBase=e.indexStart):a<e.indexStart&&e.indexEnd-a>=this._maxSize?(u=!0,r=a,o=e.indexEnd):a>e.indexEnd&&a-e.indexStart>=this._maxSize&&(u=!0,r=e.indexStart,o=a),u){var s=this._changeScale(o,r);this._downscale(s),a=this._mapping.mapToIndex(n)}this._incrementIndexBy(e,a,i)},t.prototype._incrementIndexBy=function(e,n,i){if(i!==0){if(e.length===0&&(e.indexStart=e.indexEnd=e.indexBase=n),n<e.indexStart){var a=e.indexEnd-n;a>=e.backing.length&&this._grow(e,a+1),e.indexStart=n}else if(n>e.indexEnd){var a=n-e.indexStart;a>=e.backing.length&&this._grow(e,a+1),e.indexEnd=n}var u=n-e.indexBase;u<0&&(u+=e.backing.length),e.incrementBucket(u,i)}},t.prototype._grow=function(e,n){var i=e.backing.length,a=e.indexBase-e.indexStart,u=i-a,o=nM(n);o>this._maxSize&&(o=this._maxSize);var r=o-a;e.backing.growTo(o,u,r)},t.prototype._changeScale=function(e,n){for(var i=0;e-n>=this._maxSize;)e>>=1,n>>=1,i++;return i},t.prototype._downscale=function(e){if(e!==0){if(e<0)throw new Error("impossible change of scale: "+this.scale);var n=this._mapping.scale-e;this._positive.downscale(e),this._negative.downscale(e),this._mapping=xp(n)}},t.prototype._minScale=function(e){var n=Math.min(this.scale,e.scale),i=Xu.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Xu.combine(this._highLowAtScale(this.negative,this.scale,n),this._highLowAtScale(e.negative,e.scale,n));return Math.min(n-this._changeScale(i.high,i.low),n-this._changeScale(a.high,a.low))},t.prototype._highLowAtScale=function(e,n,i){if(e.length===0)return new Xu(0,-1);var a=n-i;return new Xu(e.indexStart>>a,e.indexEnd>>a)},t.prototype._mergeBuckets=function(e,n,i,a){for(var u=i.offset,o=n.scale-a,r=0;r<i.length;r++)this._incrementIndexBy(e,u+r>>o,i.at(r))},t.prototype._diffBuckets=function(e,n,i,a){for(var u=i.offset,o=n.scale-a,r=0;r<i.length;r++){var s=u+r>>o,l=s-e.indexBase;l<0&&(l+=e.backing.length),e.decrementBucket(l,i.at(r))}e.trim()},t}(),Lp=function(){function t(e,n){this._maxSize=e,this._recordMinMax=n,this.kind=tt.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new pM(e,this._maxSize,this._recordMinMax)},t.prototype.merge=function(e,n){var i=n.clone();return i.merge(e),i},t.prototype.diff=function(e,n){var i=n.clone();return i.diff(e),i},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(function(u){var o=f8(u,2),r=o[0],s=o[1],l=s.toPointValue(),c=e.type===C.GAUGE||e.type===C.UP_DOWN_COUNTER||e.type===C.OBSERVABLE_GAUGE||e.type===C.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:r,startTime:s.startTime,endTime:a,value:{min:l.hasMinMax?l.min:void 0,max:l.hasMinMax?l.max:void 0,sum:c?void 0:l.sum,positive:{offset:l.positive.offset,bucketCounts:l.positive.bucketCounts},negative:{offset:l.negative.offset,bucketCounts:l.negative.bucketCounts},count:l.count,scale:l.scale,zeroCount:l.zeroCount}}})}},t}()});var E8,Ju,Ip,EM=m(()=>{"use strict";bn();K();Pn();E8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},Ju=function(){function t(e,n,i){n===void 0&&(n=0),i===void 0&&(i=[0,0]),this.startTime=e,this._current=n,this.sampleTime=i}return t.prototype.record=function(e){this._current=e,this.sampleTime=ge(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Ip=function(){function t(){this.kind=tt.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new Ju(e)},t.prototype.merge=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new Ju(e.startTime,i.toPointValue(),i.sampleTime)},t.prototype.diff=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new Ju(n.startTime,i.toPointValue(),i.sampleTime)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.GAUGE,dataPoints:i.map(function(u){var o=E8(u,2),r=o[0],s=o[1];return{attributes:r,startTime:s.startTime,endTime:a,value:s.toPointValue()}})}},t}()});var _8,xn,Qu,_M=m(()=>{"use strict";bn();Pn();_8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},xn=function(){function t(e,n,i,a){i===void 0&&(i=0),a===void 0&&(a=!1),this.startTime=e,this.monotonic=n,this._current=i,this.reset=a}return t.prototype.record=function(e){this.monotonic&&e<0||(this._current+=e)},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Qu=function(){function t(e){this.monotonic=e,this.kind=tt.SUM}return t.prototype.createAccumulation=function(e){return new xn(e,this.monotonic)},t.prototype.merge=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return n.reset?new xn(n.startTime,this.monotonic,a,n.reset):new xn(e.startTime,this.monotonic,i+a)},t.prototype.diff=function(e,n){var i=e.toPointValue(),a=n.toPointValue();return this.monotonic&&i>a?new xn(n.startTime,this.monotonic,a,!0):new xn(n.startTime,this.monotonic,a-i)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Re.SUM,dataPoints:i.map(function(u){var o=_8(u,2),r=o[0],s=o[1];return{attributes:r,startTime:s.startTime,endTime:a,value:s.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var SM=m(()=>{"use strict";Xx();Zx();dM();EM();_M()});var Ur,Ve,Cp,wp,Dp,Up,Vp,Bp,Gp,hM,TM,vM,mM,S8,h8,Zu=m(()=>{"use strict";M();SM();Ut();Ur=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ve=function(){function t(){}return t.Drop=function(){return hM},t.Sum=function(){return TM},t.LastValue=function(){return vM},t.Histogram=function(){return mM},t.ExponentialHistogram=function(){return S8},t.Default=function(){return h8},t}(),Cp=function(t){Ur(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Op,e}(Ve),wp=function(t){Ur(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){switch(n.type){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.HISTOGRAM:return e.MONOTONIC_INSTANCE;default:return e.NON_MONOTONIC_INSTANCE}},e.MONOTONIC_INSTANCE=new Qu(!0),e.NON_MONOTONIC_INSTANCE=new Qu(!1),e}(Ve),Dp=function(t){Ur(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Ip,e}(Ve),Up=function(t){Ur(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createAggregator=function(n){return e.DEFAULT_INSTANCE},e.DEFAULT_INSTANCE=new Yu([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(Ve),Vp=function(t){Ur(e,t);function e(n,i){i===void 0&&(i=!0);var a=t.call(this)||this;if(a._recordMinMax=i,n==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");n=n.concat(),n=n.sort(function(r,s){return r-s});var u=n.lastIndexOf(-1/0),o=n.indexOf(1/0);return o===-1&&(o=void 0),a._boundaries=n.slice(u+1,o),a}return e.prototype.createAggregator=function(n){return new Yu(this._boundaries,this._recordMinMax)},e}(Ve),Bp=function(t){Ur(e,t);function e(n,i){n===void 0&&(n=160),i===void 0&&(i=!0);var a=t.call(this)||this;return a._maxSize=n,a._recordMinMax=i,a}return e.prototype.createAggregator=function(n){return new Lp(this._maxSize,this._recordMinMax)},e}(Ve),Gp=function(t){Ur(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype._resolve=function(n){switch(n.type){case C.COUNTER:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return TM;case C.GAUGE:case C.OBSERVABLE_GAUGE:return vM;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new Vp(n.advice.explicitBucketBoundaries):mM}return g.warn("Unable to recognize instrument type: "+n.type),hM},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(Ve),hM=new Cp,TM=new wp,vM=new Dp,mM=new Up,S8=new Bp,h8=new Gp});var yM,es,kp=m(()=>{"use strict";Zu();ku();yM=function(t){return Ve.Default()},es=function(t){return Ne.CUMULATIVE}});var Hp,Fp,AM,T8,ts,Yp=m(()=>{"use strict";M();ft();kp();Hp=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},Fp=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},AM=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},T8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},ts=function(){function t(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:yM,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:es,this._metricProducers=(a=e?.metricProducers)!==null&&a!==void 0?a:[],this._cardinalitySelector=e?.cardinalitySelector}return t.prototype.setMetricProducer=function(e){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=e,this.onInitialized()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t.prototype.selectCardinalityLimit=function(e){return this._cardinalitySelector?this._cardinalitySelector(e):2e3},t.prototype.onInitialized=function(){},t.prototype.collect=function(e){return Hp(this,void 0,void 0,function(){var n,i,a,u,o,r;return Fp(this,function(s){switch(s.label){case 0:if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");return[4,Promise.all(T8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],AM(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=AM.apply(void 0,[s.sent()]),i=n[0],a=n.slice(1),u=i.errors.concat(Ap(a,function(l){return l.errors})),o=i.resourceMetrics.resource,r=i.resourceMetrics.scopeMetrics.concat(Ap(a,function(l){return l.resourceMetrics.scopeMetrics})),[2,{resourceMetrics:{resource:o,scopeMetrics:r},errors:u}]}})})},t.prototype.shutdown=function(e){return Hp(this,void 0,void 0,function(){return Fp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.error("Cannot call shutdown twice."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onShutdown()];case 1:return n.sent(),[3,4];case 2:return[4,lr(this.onShutdown(),e.timeoutMillis)];case 3:n.sent(),n.label=4;case 4:return this._shutdown=!0,[2]}})})},t.prototype.forceFlush=function(e){return Hp(this,void 0,void 0,function(){return Fp(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("Cannot forceFlush on already shutdown MetricReader."),[2]):e?.timeoutMillis!=null?[3,2]:[4,this.onForceFlush()];case 1:return n.sent(),[2];case 2:return[4,lr(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var v8,rs,ns,m8,y8,os,OM=m(()=>{"use strict";M();K();Yp();ft();v8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),rs=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},ns=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},m8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},y8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},os=function(t){v8(e,t);function e(n){var i,a,u,o,r=t.call(this,{aggregationSelector:(i=n.exporter.selectAggregation)===null||i===void 0?void 0:i.bind(n.exporter),aggregationTemporalitySelector:(a=n.exporter.selectAggregationTemporality)===null||a===void 0?void 0:a.bind(n.exporter),metricProducers:n.metricProducers})||this;if(n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(n.exportTimeoutMillis!==void 0&&n.exportIntervalMillis!==void 0&&n.exportIntervalMillis<n.exportTimeoutMillis)throw Error("exportIntervalMillis must be greater than or equal to exportTimeoutMillis");return r._exportInterval=(u=n.exportIntervalMillis)!==null&&u!==void 0?u:6e4,r._exportTimeout=(o=n.exportTimeoutMillis)!==null&&o!==void 0?o:3e4,r._exporter=n.exporter,r}return e.prototype._runOnce=function(){return rs(this,void 0,void 0,function(){var n;return ns(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,lr(this._doRun(),this._exportTimeout)];case 1:return i.sent(),[3,3];case 2:return n=i.sent(),n instanceof ui?(g.error("Export took longer than %s milliseconds and timed out.",this._exportTimeout),[2]):(Te(n),[3,3]);case 3:return[2]}})})},e.prototype._doRun=function(){var n,i;return rs(this,void 0,void 0,function(){var a,u,o,r,s,l;return ns(this,function(c){switch(c.label){case 0:return[4,this.collect({timeoutMillis:this._exportTimeout})];case 1:if(a=c.sent(),u=a.resourceMetrics,o=a.errors,o.length>0&&(l=g).error.apply(l,y8(["PeriodicExportingMetricReader: metrics collection errors"],m8(o),!1)),!u.resource.asyncAttributesPending)return[3,5];c.label=2;case 2:return c.trys.push([2,4,,5]),[4,(i=(n=u.resource).waitForAsyncAttributes)===null||i===void 0?void 0:i.call(n)];case 3:return c.sent(),[3,5];case 4:return r=c.sent(),g.debug("Error while resolving async portion of resource: ",r),Te(r),[3,5];case 5:return[4,ai._export(this._exporter,u)];case 6:if(s=c.sent(),s.code!==W.SUCCESS)throw new Error("PeriodicExportingMetricReader: metrics export failed (error "+s.error+")");return[2]}})})},e.prototype.onInitialized=function(){var n=this;this._interval=setInterval(function(){n._runOnce()},this._exportInterval),ur(this._interval)},e.prototype.onForceFlush=function(){return rs(this,void 0,void 0,function(){return ns(this,function(n){switch(n.label){case 0:return[4,this._runOnce()];case 1:return n.sent(),[4,this._exporter.forceFlush()];case 2:return n.sent(),[2]}})})},e.prototype.onShutdown=function(){return rs(this,void 0,void 0,function(){return ns(this,function(n){switch(n.label){case 0:return this._interval&&clearInterval(this._interval),[4,this._exporter.shutdown()];case 1:return n.sent(),[2]}})})},e}(ts)});var gM,NM=m(()=>{"use strict";K();gM=function(){function t(e){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=e}return t.prototype.export=function(e,n){if(this._shutdown){setTimeout(function(){return n({code:W.FAILED})},0);return}this._metrics.push(e),setTimeout(function(){return n({code:W.SUCCESS})},0)},t.prototype.getMetrics=function(){return this._metrics},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._metrics=[]},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporality},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t}()});var RM,PM,bM=m(()=>{"use strict";K();kp();RM=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},PM=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:es}return t.prototype.export=function(e,n){if(this._shutdown){setImmediate(n,{code:W.FAILED});return}return t._sendMetrics(e,n)},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregationTemporality=function(e){return this._temporalitySelector(e)},t.prototype.shutdown=function(){return this._shutdown=!0,Promise.resolve()},t._sendMetrics=function(e,n){var i,a,u,o;try{for(var r=RM(e.scopeMetrics),s=r.next();!s.done;s=r.next()){var l=s.value;try{for(var c=(u=void 0,RM(l.metrics)),p=c.next();!p.done;p=c.next()){var _=p.value;console.dir({descriptor:_.descriptor,dataPointType:_.dataPointType,dataPoints:_.dataPoints},{depth:null})}}catch(f){u={error:f}}finally{try{p&&!p.done&&(o=c.return)&&o.call(c)}finally{if(u)throw u.error}}}}catch(f){i={error:f}}finally{try{s&&!s.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}n({code:W.SUCCESS})},t}()});var xM,MM=m(()=>{"use strict";xM=function(){function t(){this._registeredViews=[]}return t.prototype.addView=function(e){this._registeredViews.push(e)},t.prototype.findViews=function(e,n){var i=this,a=this._registeredViews.filter(function(u){return i._matchInstrument(u.instrumentSelector,e)&&i._matchMeter(u.meterSelector,n)});return a},t.prototype._matchInstrument=function(e,n){return(e.getType()===void 0||n.type===e.getType())&&e.getNameFilter().match(n.name)&&e.getUnitFilter().match(n.unit)},t.prototype._matchMeter=function(e,n){return e.getNameFilter().match(n.name)&&(n.version===void 0||e.getVersionFilter().match(n.version))&&(n.schemaUrl===void 0||e.getSchemaUrlFilter().match(n.schemaUrl))},t}()});function ci(t){return t instanceof as}var Vr,is,LM,IM,CM,wM,as,DM,UM,VM,us=m(()=>{"use strict";M();K();Vr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),is=function(){function t(e,n){this._writableMetricStorage=e,this._descriptor=n}return t.prototype._record=function(e,n,i){if(n===void 0&&(n={}),i===void 0&&(i=Ye.active()),typeof e!="number"){g.warn("non-number value provided to metric "+this._descriptor.name+": "+e);return}this._descriptor.valueType===Et.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._descriptor.name+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._writableMetricStorage.record(e,n,i,ge(Date.now()))},t}(),LM=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){this._record(n,i,a)},e}(is),IM=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.add=function(n,i,a){if(n<0){g.warn("negative value provided to counter "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(is),CM=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){this._record(n,i,a)},e}(is),wM=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.record=function(n,i,a){if(n<0){g.warn("negative value provided to histogram "+this._descriptor.name+": "+n);return}this._record(n,i,a)},e}(is),as=function(){function t(e,n,i){this._observableRegistry=i,this._descriptor=e,this._metricStorages=n}return t.prototype.addCallback=function(e){this._observableRegistry.addCallback(e,this)},t.prototype.removeCallback=function(e){this._observableRegistry.removeCallback(e,this)},t}(),DM=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(as),UM=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(as),VM=function(t){Vr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(as)});var BM,GM=m(()=>{"use strict";Ut();us();BM=function(){function t(e){this._meterSharedState=e}return t.prototype.createGauge=function(e,n){var i=Rt(e,C.GAUGE,n),a=this._meterSharedState.registerMetricStorage(i);return new CM(a,i)},t.prototype.createHistogram=function(e,n){var i=Rt(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new wM(a,i)},t.prototype.createCounter=function(e,n){var i=Rt(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new IM(a,i)},t.prototype.createUpDownCounter=function(e,n){var i=Rt(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new LM(a,i)},t.prototype.createObservableGauge=function(e,n){var i=Rt(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new UM(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableCounter=function(e,n){var i=Rt(e,C.OBSERVABLE_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new DM(i,a,this._meterSharedState.observableRegistry)},t.prototype.createObservableUpDownCounter=function(e,n){var i=Rt(e,C.OBSERVABLE_UP_DOWN_COUNTER,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new VM(i,a,this._meterSharedState.observableRegistry)},t.prototype.addBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.addBatchCallback(e,n)},t.prototype.removeBatchObservableCallback=function(e,n){this._meterSharedState.observableRegistry.removeBatchCallback(e,n)},t}()});var ss,qp=m(()=>{"use strict";Ut();ss=function(){function t(e){this._instrumentDescriptor=e}return t.prototype.getInstrumentDescriptor=function(){return this._instrumentDescriptor},t.prototype.updateDescription=function(e){this._instrumentDescriptor=Rt(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:e,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})},t}()});var A8,kM,O8,pt,fi=m(()=>{"use strict";ft();A8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),kM=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},O8=function(){function t(e){this._hash=e,this._valueMap=new Map,this._keyMap=new Map}return t.prototype.get=function(e,n){return n??(n=this._hash(e)),this._valueMap.get(n)},t.prototype.getOrDefault=function(e,n){var i=this._hash(e);if(this._valueMap.has(i))return this._valueMap.get(i);var a=n();return this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,a),a},t.prototype.set=function(e,n,i){i??(i=this._hash(e)),this._keyMap.has(i)||this._keyMap.set(i,e),this._valueMap.set(i,n)},t.prototype.has=function(e,n){return n??(n=this._hash(e)),this._valueMap.has(n)},t.prototype.keys=function(){var e,n;return kM(this,function(i){switch(i.label){case 0:e=this._keyMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},t.prototype.entries=function(){var e,n;return kM(this,function(i){switch(i.label){case 0:e=this._valueMap.entries(),n=e.next(),i.label=1;case 1:return n.done===!0?[3,3]:[4,[this._keyMap.get(n.value[0]),n.value[1],n.value[0]]];case 2:return i.sent(),n=e.next(),[3,1];case 3:return[2]}})},Object.defineProperty(t.prototype,"size",{get:function(){return this._valueMap.size},enumerable:!1,configurable:!0}),t}(),pt=function(t){A8(e,t);function e(){return t.call(this,Hu)||this}return e}(O8)});var g8,ls,jp=m(()=>{"use strict";ft();fi();g8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},ls=function(){function t(e,n){this._aggregator=e,this._activeCollectionStorage=new pt,this._cumulativeMemoStorage=new pt,this._overflowAttributes={"otel.metric.overflow":!0},this._cardinalityLimit=(n??2e3)-1,this._overflowHashCode=Hu(this._overflowAttributes)}return t.prototype.record=function(e,n,i,a){var u=this,o=this._activeCollectionStorage.get(n);if(!o){if(this._activeCollectionStorage.size>=this._cardinalityLimit){var r=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,function(){return u._aggregator.createAccumulation(a)});r?.record(e);return}o=this._aggregator.createAccumulation(a),this._activeCollectionStorage.set(n,o)}o?.record(e)},t.prototype.batchCumulate=function(e,n){var i=this;Array.from(e.entries()).forEach(function(a){var u=g8(a,3),o=u[0],r=u[1],s=u[2],l=i._aggregator.createAccumulation(n);l?.record(r);var c=l;if(i._cumulativeMemoStorage.has(o,s)){var p=i._cumulativeMemoStorage.get(o,s);c=i._aggregator.diff(p,l)}else if(i._cumulativeMemoStorage.size>=i._cardinalityLimit&&(o=i._overflowAttributes,s=i._overflowHashCode,i._cumulativeMemoStorage.has(o,s))){var p=i._cumulativeMemoStorage.get(o,s);c=i._aggregator.diff(p,l)}if(i._activeCollectionStorage.has(o,s)){var _=i._activeCollectionStorage.get(o,s);c=i._aggregator.merge(_,c)}i._cumulativeMemoStorage.set(o,l,s),i._activeCollectionStorage.set(o,c,s)})},t.prototype.collect=function(){var e=this._activeCollectionStorage;return this._activeCollectionStorage=new pt,e},t}()});function N8(t){return Array.from(t.entries())}var $p,HM,cs,Kp=m(()=>{"use strict";ku();fi();$p=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},HM=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},cs=function(){function t(e,n){var i=this;this._aggregator=e,this._unreportedAccumulations=new Map,this._reportHistory=new Map,n.forEach(function(a){i._unreportedAccumulations.set(a,[])})}return t.prototype.buildMetrics=function(e,n,i,a){this._stashAccumulations(i);var u=this._getMergedUnreportedAccumulations(e),o=u,r;if(this._reportHistory.has(e)){var s=this._reportHistory.get(e),l=s.collectionTime;r=s.aggregationTemporality,r===Ne.CUMULATIVE?o=t.merge(s.accumulations,u,this._aggregator):o=t.calibrateStartTime(s.accumulations,u,l)}else r=e.selectAggregationTemporality(n.type);this._reportHistory.set(e,{accumulations:o,collectionTime:a,aggregationTemporality:r});var c=N8(o);if(c.length!==0)return this._aggregator.toMetricData(n,r,c,a)},t.prototype._stashAccumulations=function(e){var n,i,a=this._unreportedAccumulations.keys();try{for(var u=$p(a),o=u.next();!o.done;o=u.next()){var r=o.value,s=this._unreportedAccumulations.get(r);s===void 0&&(s=[],this._unreportedAccumulations.set(r,s)),s.push(e)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}},t.prototype._getMergedUnreportedAccumulations=function(e){var n,i,a=new pt,u=this._unreportedAccumulations.get(e);if(this._unreportedAccumulations.set(e,[]),u===void 0)return a;try{for(var o=$p(u),r=o.next();!r.done;r=o.next()){var s=r.value;a=t.merge(a,s,this._aggregator)}}catch(l){n={error:l}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return a},t.merge=function(e,n,i){for(var a=e,u=n.entries(),o=u.next();o.done!==!0;){var r=HM(o.value,3),s=r[0],l=r[1],c=r[2];if(e.has(s,c)){var p=e.get(s,c),_=i.merge(p,l);a.set(s,_,c)}else a.set(s,l,c);o=u.next()}return a},t.calibrateStartTime=function(e,n,i){var a,u;try{for(var o=$p(e.keys()),r=o.next();!r.done;r=o.next()){var s=HM(r.value,2),l=s[0],c=s[1],p=n.get(l,c);p?.setStartTime(i)}}catch(_){a={error:_}}finally{try{r&&!r.done&&(u=o.return)&&u.call(o)}finally{if(a)throw a.error}}return n},t}()});var R8,P8,FM,YM=m(()=>{"use strict";qp();jp();Kp();fi();R8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),P8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},FM=function(t){R8(e,t);function e(n,i,a,u,o){var r=t.call(this,n)||this;return r._attributesProcessor=a,r._aggregationCardinalityLimit=o,r._deltaMetricStorage=new ls(i,r._aggregationCardinalityLimit),r._temporalMetricStorage=new cs(i,u),r}return e.prototype.record=function(n,i){var a=this,u=new pt;Array.from(n.entries()).forEach(function(o){var r=P8(o,2),s=r[0],l=r[1];u.set(a._attributesProcessor.process(s),l)}),this._deltaMetricStorage.batchCumulate(u,i)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(ss)});function Wp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
40
40
|
`),t.type!==e.type&&(n+=" - Type '"+t.type+"' does not match '"+e.type+`'
|
41
41
|
`),t.valueType!==e.valueType&&(n+=" - Value Type '"+t.valueType+"' does not match '"+e.valueType+`'
|
42
42
|
`),t.description!==e.description&&(n+=" - Description '"+t.description+"' does not match '"+e.description+`'
|
43
|
-
`),n}function
|
43
|
+
`),n}function b8(t,e){return" - use valueType '"+t.valueType+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function x8(t,e){return" - use unit '"+t.unit+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function M8(t,e){var n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return" - create a new view with a name other than '"+t.name+"' and InstrumentSelector '"+i+"'"}function L8(t,e){var n={name:e.name,type:e.type,unit:e.unit},i=JSON.stringify(n);return" - create a new view with a name other than '"+t.name+"' and InstrumentSelector '"+i+`'
|
44
44
|
- OR - create a new view with the name `+t.name+" and description '"+t.description+"' and InstrumentSelector "+i+`
|
45
|
-
- OR - create a new view with the name `+e.name+" and description '"+t.description+"' and InstrumentSelector "+i}function
|
45
|
+
- OR - create a new view with the name `+e.name+" and description '"+t.description+"' and InstrumentSelector "+i}function zp(t,e){return t.valueType!==e.valueType?b8(t,e):t.unit!==e.unit?x8(t,e):t.type!==e.type?M8(t,e):t.description!==e.description?L8(t,e):""}var qM=m(()=>{"use strict"});var Xp,jM,$M=m(()=>{"use strict";Ut();M();qM();Xp=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},jM=function(){function t(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}return t.create=function(){return new t},t.prototype.getStorages=function(e){var n,i,a,u,o=[];try{for(var r=Xp(this._sharedRegistry.values()),s=r.next();!s.done;s=r.next()){var l=s.value;o=o.concat(l)}}catch(f){n={error:f}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}var c=this._perCollectorRegistry.get(e);if(c!=null)try{for(var p=Xp(c.values()),_=p.next();!_.done;_=p.next()){var l=_.value;o=o.concat(l)}}catch(f){a={error:f}}finally{try{_&&!_.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}return o},t.prototype.register=function(e){this._registerStorage(e,this._sharedRegistry)},t.prototype.registerForCollector=function(e,n){var i=this._perCollectorRegistry.get(e);i==null&&(i=new Map,this._perCollectorRegistry.set(e,i)),this._registerStorage(n,i)},t.prototype.findOrUpdateCompatibleStorage=function(e){var n=this._sharedRegistry.get(e.name);return n===void 0?null:this._findOrUpdateCompatibleStorage(e,n)},t.prototype.findOrUpdateCompatibleCollectorStorage=function(e,n){var i=this._perCollectorRegistry.get(e);if(i===void 0)return null;var a=i.get(n.name);return a===void 0?null:this._findOrUpdateCompatibleStorage(n,a)},t.prototype._registerStorage=function(e,n){var i=e.getInstrumentDescriptor(),a=n.get(i.name);if(a===void 0){n.set(i.name,[e]);return}a.push(e)},t.prototype._findOrUpdateCompatibleStorage=function(e,n){var i,a,u=null;try{for(var o=Xp(n),r=o.next();!r.done;r=o.next()){var s=r.value,l=s.getInstrumentDescriptor();Qx(l,e)?(l.description!==e.description&&(e.description.length>l.description.length&&s.updateDescription(e.description),g.warn("A view or instrument with the name ",e.name,` has already been registered, but has a different description and is incompatible with another registered view.
|
46
46
|
`,`Details:
|
47
|
-
`,
|
48
|
-
To resolve the conflict:`,
|
47
|
+
`,Wp(l,e),`The longer description will be used.
|
48
|
+
To resolve the conflict:`,zp(l,e))),u=s):g.warn("A view or instrument with the name ",e.name,` has already been registered and is incompatible with another registered view.
|
49
49
|
`,`Details:
|
50
|
-
`,
|
51
|
-
`,qp(l,e))}}catch(c){i={error:c}}finally{try{r&&!r.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return s},t}()});var ZM,eL=m(()=>{"use strict";ZM=function(){function t(e){this._backingStorages=e}return t.prototype.record=function(e,n,i,a){this._backingStorages.forEach(function(s){s.record(e,n,i,a)})},t}()});var tL,rL,nL=m(()=>{"use strict";x();fi();au();tL=function(){function t(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new ct}return t.prototype.observe=function(e,n){if(n===void 0&&(n={}),typeof e!="number"){g.warn("non-number value provided to metric "+this._instrumentName+": "+e);return}this._valueType===pt.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._instrumentName+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)},t}(),rL=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,i){if(i===void 0&&(i={}),!!ci(e)){var a=this._buffer.get(e);if(a==null&&(a=new ct,this._buffer.set(e,a)),typeof n!="number"){g.warn("non-number value provided to metric "+e._descriptor.name+": "+n);return}e._descriptor.valueType===pt.INT&&!Number.isInteger(n)&&(g.warn("INT value type cannot accept a floating-point value for "+e._descriptor.name+", ignoring the fractional digits."),n=Math.trunc(n),!Number.isInteger(n))||a.set(i,n)}},t}()});var $p,Kp,oL,iL,aL,sL=m(()=>{"use strict";x();au();nL();gt();$p=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Kp=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},oL=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},iL=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},aL=function(){function t(){this._callbacks=[],this._batchCallbacks=[]}return t.prototype.addCallback=function(e,n){var i=this._findCallback(e,n);i>=0||this._callbacks.push({callback:e,instrument:n})},t.prototype.removeCallback=function(e,n){var i=this._findCallback(e,n);i<0||this._callbacks.splice(i,1)},t.prototype.addBatchCallback=function(e,n){var i=new Set(n.filter(ci));if(i.size===0){g.error("BatchObservableCallback is not associated with valid instruments",n);return}var a=this._findBatchCallback(e,i);a>=0||this._batchCallbacks.push({callback:e,instruments:i})},t.prototype.removeBatchCallback=function(e,n){var i=new Set(n.filter(ci)),a=this._findBatchCallback(e,i);a<0||this._batchCallbacks.splice(a,1)},t.prototype.observe=function(e,n){return $p(this,void 0,void 0,function(){var i,a,s,o;return Kp(this,function(r){switch(r.label){case 0:return i=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n),[4,Jx(iL(iL([],oL(i),!1),oL(a),!1))];case 1:return s=r.sent(),o=s.filter(Qx).map(function(u){return u.reason}),[2,o]}})})},t.prototype._observeCallbacks=function(e,n){var i=this;return this._callbacks.map(function(a){var s=a.callback,o=a.instrument;return $p(i,void 0,void 0,function(){var r,u;return Kp(this,function(l){switch(l.label){case 0:return r=new tL(o._descriptor.name,o._descriptor.valueType),u=Promise.resolve(s(r)),n!=null&&(u=fr(u,n)),[4,u];case 1:return l.sent(),o._metricStorages.forEach(function(c){c.record(r._buffer,e)}),[2]}})})})},t.prototype._observeBatchCallbacks=function(e,n){var i=this;return this._batchCallbacks.map(function(a){var s=a.callback,o=a.instruments;return $p(i,void 0,void 0,function(){var r,u;return Kp(this,function(l){switch(l.label){case 0:return r=new rL,u=Promise.resolve(s(r)),n!=null&&(u=fr(u,n)),[4,u];case 1:return l.sent(),o.forEach(function(c){var p=r._buffer.get(c);p!=null&&c._metricStorages.forEach(function(_){_.record(p,e)})}),[2]}})})})},t.prototype._findCallback=function(e,n){return this._callbacks.findIndex(function(i){return i.callback===e&&i.instrument===n})},t.prototype._findBatchCallback=function(e,n){return this._batchCallbacks.findIndex(function(i){return i.callback===e&&Zx(i.instruments,n)})},t}()});var L8,uL,lL=m(()=>{"use strict";Gp();kp();Fp();L8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),uL=function(t){L8(e,t);function e(n,i,a,s){var o=t.call(this,n)||this;return o._attributesProcessor=a,o._deltaMetricStorage=new uu(i),o._temporalMetricStorage=new lu(i,s),o}return e.prototype.record=function(n,i,a,s){i=this._attributesProcessor.process(i,a),this._deltaMetricStorage.record(n,i,a,s)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(su)});var cL,xn,I8,fL,C8,Wp=m(()=>{"use strict";cL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),xn=function(){function t(){}return t.Noop=function(){return C8},t}(),I8=function(t){cL(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,i){return n},e}(xn),fL=function(t){cL(e,t);function e(n){var i=t.call(this)||this;return i._allowedAttributeNames=n,i}return e.prototype.process=function(n,i){var a=this,s={};return Object.keys(n).filter(function(o){return a._allowedAttributeNames.includes(o)}).forEach(function(o){return s[o]=n[o]}),s},e}(xn),C8=new I8});var w8,U8,D8,pL,dL=m(()=>{"use strict";Vt();jM();gt();zM();QM();eL();sL();lL();Wp();w8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},U8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},D8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},pL=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new JM,this.observableRegistry=new aL,this.meter=new qM(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,uL);return n.length===1?n[0]:new ZM(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,WM);return n},t.prototype.collect=function(e,n,i){return w8(this,void 0,void 0,function(){var a,s,o;return U8(this,function(r){switch(r.label){case 0:return[4,this.observableRegistry.observe(n,i?.timeoutMillis)];case 1:return a=r.sent(),s=this.metricStorageRegistry.getStorages(e),s.length===0?[2,null]:(o=s.map(function(u){return u.collect(e,n)}).filter(Wx),o.length===0?[2,{errors:a}]:[2,{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:a}])}})})},t.prototype._registerMetricStorage=function(e,n){var i=this,a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope),s=a.map(function(u){var l=nM(u,e),c=i.metricStorageRegistry.findOrUpdateCompatibleStorage(l);if(c!=null)return c;var p=u.aggregation.createAggregator(l),_=new n(l,p,u.attributesProcessor,i._meterProviderSharedState.metricCollectors);return i.metricStorageRegistry.register(_),_});if(s.length===0){var o=this._meterProviderSharedState.selectAggregations(e.type),r=o.map(function(u){var l=D8(u,2),c=l[0],p=l[1],_=i.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(c,e);if(_!=null)return _;var f=p.createAggregator(e),S=new n(e,f,xn.Noop(),[c]);return i.metricStorageRegistry.registerForCollector(c,S),S});s=s.concat(r)}return s},t}()});var V8,EL,_L=m(()=>{"use strict";gt();DM();dL();V8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},EL=function(){function t(e){this.resource=e,this.viewRegistry=new UM,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=Xx(e),i=this.meterSharedStates.get(n);return i==null&&(i=new pL(this,e),this.meterSharedStates.set(n,i)),i},t.prototype.selectAggregations=function(e){var n,i,a=[];try{for(var s=V8(this.metricCollectors),o=s.next();!o.done;o=s.next()){var r=o.value;a.push([r,r.selectAggregation(e)])}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},t}()});var cu,fu,B8,G8,SL,hL=m(()=>{"use strict";K();cu=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},fu=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},B8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},G8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},SL=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return cu(this,void 0,void 0,function(){var n,i,a,s,o=this;return fu(this,function(r){switch(r.label){case 0:return n=ge(Date.now()),i=[],a=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(function(u){return cu(o,void 0,void 0,function(){var l;return fu(this,function(c){switch(c.label){case 0:return[4,u.collect(this,n,e)];case 1:return l=c.sent(),l?.scopeMetrics!=null&&i.push(l.scopeMetrics),l?.errors!=null&&a.push.apply(a,G8([],B8(l.errors),!1)),[2]}})})}),[4,Promise.all(s)];case 1:return r.sent(),[2,{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:i},errors:a}]}})})},t.prototype.forceFlush=function(e){return cu(this,void 0,void 0,function(){return fu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.forceFlush(e)];case 1:return n.sent(),[2]}})})},t.prototype.shutdown=function(e){return cu(this,void 0,void 0,function(){return fu(this,function(n){switch(n.label){case 0:return[4,this._metricReader.shutdown(e)];case 1:return n.sent(),[2]}})})},t.prototype.selectAggregationTemporality=function(e){return this._metricReader.selectAggregationTemporality(e)},t.prototype.selectAggregation=function(e){return this._metricReader.selectAggregation(e)},t}()});function k8(t,e){var n=e??Dt.empty();return t?Dt.default().merge(n):n}var TL,vL,mL,pi,yL=m(()=>{"use strict";x();Gs();_L();hL();TL=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},vL=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},mL=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};pi=function(){function t(e){var n,i,a,s,o;if(this._shutdown=!1,this._sharedState=new EL(k8((o=e?.mergeResourceWithDefaults)!==null&&o!==void 0?o:!0,e?.resource)),e?.views!=null&&e.views.length>0)try{for(var r=mL(e.views),u=r.next();!u.done;u=r.next()){var l=u.value;this._sharedState.viewRegistry.addView(l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}if(e?.readers!=null&&e.readers.length>0)try{for(var c=mL(e.readers),p=c.next();!p.done;p=c.next()){var _=p.value;this.addMetricReader(_)}}catch(f){a={error:f}}finally{try{p&&!p.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}}return t.prototype.getMeter=function(e,n,i){return n===void 0&&(n=""),i===void 0&&(i={}),this._shutdown?(g.warn("A shutdown MeterProvider cannot provide a Meter"),SE()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new SL(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return TL(this,void 0,void 0,function(){return vL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("shutdown may only be called once per MeterProvider"),[2]):(this._shutdown=!0,[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.shutdown(e)}))]);case 1:return n.sent(),[2]}})})},t.prototype.forceFlush=function(e){return TL(this,void 0,void 0,function(){return vL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("invalid attempt to force flush after MeterProvider shutdown"),[2]):[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.forceFlush(e)}))];case 1:return n.sent(),[2]}})})},t}()});var H8,pu,Mn,du=m(()=>{"use strict";H8=/[\^$\\.+?()[\]{}|]/g,pu=function(){function t(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(t.escapePattern(e)))}return t.prototype.match=function(e){return this._matchAll?!0:this._regexp.test(e)},t.escapePattern=function(e){return"^"+e.replace(H8,"\\$&").replace("*",".*")+"$"},t.hasWildcard=function(e){return e.includes("*")},t}(),Mn=function(){function t(e){this._matchAll=e===void 0,this._pattern=e}return t.prototype.match=function(e){return!!(this._matchAll||e===this._pattern)},t}()});var AL,OL=m(()=>{"use strict";du();AL=function(){function t(e){var n;this._nameFilter=new pu((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new Mn(e?.unit)}return t.prototype.getType=function(){return this._type},t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getUnitFilter=function(){return this._unitFilter},t}()});var gL,NL=m(()=>{"use strict";du();gL=function(){function t(e){this._nameFilter=new Mn(e?.name),this._versionFilter=new Mn(e?.version),this._schemaUrlFilter=new Mn(e?.schemaUrl)}return t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getVersionFilter=function(){return this._versionFilter},t.prototype.getSchemaUrlFilter=function(){return this._schemaUrlFilter},t}()});function F8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var RL,PL=m(()=>{"use strict";du();Wp();OL();NL();Qs();RL=function(){function t(e){var n;if(F8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||pu.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new fL(e.attributeKeys):this.attributesProcessor=xn.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:Ve.Default(),this.instrumentSelector=new AL({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new gL({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl})}return t}()});var zp={};nt(zp,{Aggregation:()=>Ve,AggregationTemporality:()=>Ne,ConsoleMetricExporter:()=>CM,DataPointType:()=>Re,DefaultAggregation:()=>wp,DropAggregation:()=>bp,ExplicitBucketHistogramAggregation:()=>Ip,ExponentialHistogramAggregation:()=>Cp,HistogramAggregation:()=>Lp,InMemoryMetricExporter:()=>MM,InstrumentType:()=>C,LastValueAggregation:()=>Mp,MeterProvider:()=>pi,MetricReader:()=>eu,PeriodicExportingMetricReader:()=>nu,SumAggregation:()=>xp,TimeoutError:()=>si,View:()=>RL});var Ln=m(()=>{"use strict";ks();Rn();Bp();xM();LM();wM();Vt();yL();Qs();PL();gt()});var In,Xp=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(In||(In={}))});function j8(){var t=Oe(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?Eu:e==="delta"?Jp:e==="lowmemory"?Qp:(g.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '"+t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE+"', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."),Eu)}function $8(t){return t!=null?t===In.DELTA?Jp:t===In.LOWMEMORY?Qp:Eu:j8()}function K8(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return Ve.Default()}}var Y8,q8,Eu,Jp,Qp,Zp,ed=m(()=>{"use strict";K();Ln();Xp();x();Y8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},q8=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Eu=function(){return Ne.CUMULATIVE},Jp=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return Ne.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return Ne.CUMULATIVE}},Qp=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return Ne.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return Ne.CUMULATIVE}};Zp=function(){function t(e,n){this._otlpExporter=e,this._aggregationSelector=K8(n),this._aggregationTemporalitySelector=$8(n?.temporalityPreference)}return t.prototype.export=function(e,n){this._otlpExporter.export([e],n)},t.prototype.shutdown=function(){return Y8(this,void 0,void 0,function(){return q8(this,function(e){switch(e.label){case 0:return[4,this._otlpExporter.shutdown()];case 1:return e.sent(),[2]}})})},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.selectAggregation=function(e){return this._aggregationSelector(e)},t.prototype.selectAggregationTemporality=function(e){return this._aggregationTemporalitySelector(e)},t}()});var Cn,_u=m(()=>{"use strict";x();K();Cn=function(){function t(e){e===void 0&&(e={}),this._sendingPromises=[],this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new lr(this._shutdown,this),this._concurrencyLimit=typeof e.concurrencyLimit=="number"?e.concurrencyLimit:30}return t.prototype.export=function(e,n){if(this._shutdownOnce.isCalled){n({code:ee.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){n({code:ee.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(e).then(function(){n({code:ee.SUCCESS})}).catch(function(i){n({code:ee.FAILED,error:i})})},t.prototype._export=function(e){var n=this;return new Promise(function(i,a){try{g.debug("items to be sent",e),n.send(e,i,a)}catch(s){a(s)}})},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype.forceFlush=function(){return Promise.all(this._sendingPromises).then(function(){})},t.prototype._shutdown=function(){return g.debug("shutdown started"),this.onShutdown(),this.forceFlush()},t}()});function Su(t){var e=[429,502,503,504];return e.includes(t)}function hu(t){if(t!=null){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}}var td=m(()=>{"use strict"});var W8,Rt,di=m(()=>{"use strict";W8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Rt=function(t){W8(e,t);function e(n,i,a){var s=t.call(this,n)||this;return s.name="OTLPExporterError",s.data=a,s.code=i,s}return e}(Error)});var ML={};nt(ML,{compressAndSend:()=>xL,createHttpAgent:()=>Q8,sendWithHttp:()=>X8});import*as Tu from"http";import*as vu from"https";import*as bL from"zlib";import{Readable as z8}from"stream";function X8(t,e,n,i,a){var s=new URL(t.url),o=Number(process.versions.node.split(".")[0]),r={hostname:s.hostname,port:s.port,path:s.pathname,method:"POST",headers:rd({},t.headers),agent:e},u=s.protocol==="http:"?Tu.request:vu.request,l=u(r,function(p){var _=[];p.on("data",function(f){return _.push(f)}),p.on("end",function(){if(p.statusCode&&p.statusCode<299)i({status:"success",data:Buffer.concat(_)});else if(p.statusCode&&Su(p.statusCode))i({status:"retryable",retryInMillis:hu(p.headers["retry-after"])});else{var f=new Rt(p.statusMessage,p.statusCode);i({status:"failure",error:f})}})});l.setTimeout(a,function(){l.destroy(),i({status:"failure",error:new Error("Request Timeout")})}),l.on("error",function(p){i({status:"failure",error:p})});var c=o>=14?"close":"abort";l.on(c,function(){i({status:"failure",error:new Error("Request timed out")})}),xL(l,t.compression,n,function(p){i({status:"failure",error:p})})}function xL(t,e,n,i){var a=J8(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(bL.createGzip()).on("error",i)),a.pipe(t).on("error",i)}function J8(t){var e=new z8;return e.push(t),e.push(null),e}function Q8(t,e){var n=new URL(t),i=n.protocol==="http:"?Tu.Agent:vu.Agent;return new i(e)}var rd,LL=m(()=>{"use strict";td();di();rd=function(){return rd=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},rd.apply(this,arguments)}});function IL(t){return new tW(t)}var Z8,eW,tW,CL=m(()=>{"use strict";Z8=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},eW=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},tW=function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return Z8(this,void 0,void 0,function(){var i,a,s,o=this;return eW(this,function(r){return this._send==null&&(i=(LL(),Y(ML)),a=i.sendWithHttp,s=i.createHttpAgent,this._agent=s(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(u){var l;(l=o._send)===null||l===void 0||l.call(o,o._parameters,o._agent,e,function(c){u(c)},n)})]})})},t.prototype.shutdown=function(){},t}()});function uW(){return Math.random()*(2*wL)-wL}function mu(t){return new lW(t.transport)}var rW,nW,oW,iW,aW,sW,wL,lW,nd=m(()=>{"use strict";rW=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},nW=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},oW=5,iW=1e3,aW=5e3,sW=1.5,wL=.2;lW=function(){function t(e){this._transport=e}return t.prototype.retry=function(e,n,i){var a=this;return new Promise(function(s,o){setTimeout(function(){a._transport.send(e,n).then(s,o)},i)})},t.prototype.send=function(e,n){var i;return rW(this,void 0,void 0,function(){var a,s,o,r,u,l,c;return nW(this,function(p){switch(p.label){case 0:return a=Date.now()+n,[4,this._transport.send(e,n)];case 1:s=p.sent(),o=oW,r=iW,p.label=2;case 2:return s.status==="retryable"&&o>0?(o--,u=Math.max(Math.min(r,aW)+uW(),0),r=r*sW,l=(i=s.retryInMillis)!==null&&i!==void 0?i:u,c=a-Date.now(),l>c?[2,s]:[4,this.retry(e,c,l)]):[3,4];case 3:return s=p.sent(),[3,2];case 4:return[2,s]}})})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}()});function UL(t){var e;return t?.keepAlive!=null&&(t.httpAgentOptions!=null?t.httpAgentOptions.keepAlive==null&&(t.httpAgentOptions.keepAlive=t.keepAlive):t.httpAgentOptions={keepAlive:t.keepAlive}),(e=t.httpAgentOptions)!==null&&e!==void 0?e:{keepAlive:!0}}var DL=m(()=>{"use strict"});function cW(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}function yu(t,e,n){var i,a,s,o,r,u;return{timeoutMillis:cW((a=(i=t.timeoutMillis)!==null&&i!==void 0?i:e.timeoutMillis)!==null&&a!==void 0?a:n.timeoutMillis),concurrencyLimit:(o=(s=t.concurrencyLimit)!==null&&s!==void 0?s:e.concurrencyLimit)!==null&&o!==void 0?o:n.concurrencyLimit,compression:(u=(r=t.compression)!==null&&r!==void 0?r:e.compression)!==null&&u!==void 0?u:n.compression}}function Au(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var od=m(()=>{"use strict"});function Ou(t){t===void 0&&(t={});var e={};return Object.entries(t).forEach(function(n){var i=fW(n,2),a=i[0],s=i[1];typeof s<"u"?e[a]=String(s):g.warn('Header "'+a+'" has invalid value ('+s+") and will be ignored")}),e}var fW,id=m(()=>{"use strict";x();fW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function pW(t,e,n){var i=kr({},n),a={};return e!=null&&Object.assign(a,e),t!=null&&Object.assign(a,t),Object.assign(a,i)}function dW(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function gu(t,e,n){var i,a;return kr(kr({},yu(t,e,n)),{headers:pW(Ou(t.headers),e.headers,n.headers),url:(a=(i=dW(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url})}function Nu(t,e){return kr(kr({},Au()),{headers:t,url:"http://localhost:4318/"+e})}var kr,ad=m(()=>{"use strict";od();id();kr=function(){return kr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},kr.apply(this,arguments)}});function VL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!=null&&n!==""){var i=Number(n);if(!Number.isNaN(i)&&Number.isFinite(i)&&i>0)return i;g.warn("Configuration: "+t+" is invalid, expected number greater than 0 (actual: "+n+")")}}function EW(t){var e=VL("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=VL("OTEL_EXPORTER_OTLP_TIMEOUT");return e??n}function BL(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!==""){if(n==null||n==="none"||n==="gzip")return n;g.warn("Configuration: "+t+" is invalid, expected 'none' or 'gzip' (actual: '"+n+"')")}}function _W(t){var e=BL("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=BL("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function Ru(t){return{timeoutMillis:EW(t),compression:_W(t)}}var sd=m(()=>{"use strict";x()});function SW(t){var e,n,i=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_HEADERS"])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=Nn.parseKeyPairsIntoRecord(i),o=Nn.parseKeyPairsIntoRecord(a);if(!(Object.keys(s).length===0&&Object.keys(o).length===0))return Object.assign({},Nn.parseKeyPairsIntoRecord(a),Nn.parseKeyPairsIntoRecord(i))}function hW(t){try{var e=new URL(t);return e.toString()}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}}function TW(t,e){try{new URL(t)}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}t.endsWith("/")||(t=t+"/"),t+=e;try{new URL(t)}catch{g.warn("Configuration: Provided URL appended with '"+e+"' is not a valid URL, using 'undefined' instead of '"+t+"'");return}return t}function vW(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return TW(n,t)}function mW(t){var e,n=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_ENDPOINT"])===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return hW(n)}function GL(t,e){var n;return Pu(Pu({},Ru(t)),{url:(n=mW(t))!==null&&n!==void 0?n:vW(e),headers:SW(t)})}var Pu,kL=m(()=>{"use strict";K();x();sd();Pu=function(){return Pu=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Pu.apply(this,arguments)}});var yW,Ei,HL=m(()=>{"use strict";_u();x();CL();di();nd();DL();ad();kL();yW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ei=function(t){yW(e,t);function e(n,i,a,s,o){n===void 0&&(n={});var r=t.call(this,n)||this,u=gu({url:n.url,headers:n.headers,concurrencyLimit:n.concurrencyLimit,timeoutMillis:n.timeoutMillis,compression:n.compression},GL(s,o),Nu(a,o));return r._timeoutMillis=u.timeoutMillis,r._concurrencyLimit=u.concurrencyLimit,n.metadata&&g.warn("Metadata cannot be set when using http"),r._serializer=i,r._transport=mu({transport:IL({agentOptions:UL(n),compression:u.compression,headers:u.headers,url:u.url})}),r}return e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new Rt("Export failed with retryable status")):a(new Rt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e.prototype.onShutdown=function(){},e}(Cn)});var _i,FL=m(()=>{"use strict";(function(t){t.NONE="none",t.GZIP="gzip"})(_i||(_i={}))});var YL=m(()=>{"use strict";HL();FL()});function qL(t){return new OW(t)}var AW,OW,jL=m(()=>{"use strict";x();td();AW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},OW=function(){function t(e){this._parameters=e}return t.prototype.send=function(e,n){var i=this;return new Promise(function(a){var s=new XMLHttpRequest;s.timeout=n,s.open("POST",i._parameters.url),Object.entries(i._parameters.headers).forEach(function(o){var r=AW(o,2),u=r[0],l=r[1];s.setRequestHeader(u,l)}),s.ontimeout=function(o){a({status:"failure",error:new Error("XHR request timed out")})},s.onreadystatechange=function(){s.status>=200&&s.status<=299?(g.debug("XHR success"),a({status:"success"})):s.status&&Su(s.status)?a({status:"retryable",retryInMillis:hu(s.getResponseHeader("Retry-After"))}):s.status!==0&&a({status:"failure",error:new Error("XHR request failed with non-retryable status")})},s.onabort=function(){a({status:"failure",error:new Error("XHR request aborted")})},s.onerror=function(){a({status:"failure",error:new Error("XHR request errored")})},s.send(new Blob([e],{type:i._parameters.headers["Content-Type"]}))})},t.prototype.shutdown=function(){},t}()});function $L(t){return new gW(t)}var gW,KL=m(()=>{"use strict";x();gW=function(){function t(e){this._params=e}return t.prototype.send=function(e){var n=this;return new Promise(function(i){navigator.sendBeacon(n._params.url,new Blob([e],{type:n._params.blobType}))?(g.debug("SendBeacon success"),i({status:"success"})):i({status:"failure",error:new Error("SendBeacon failed")})})},t.prototype.shutdown=function(){},t}()});var NW,ud,WL=m(()=>{"use strict";_u();di();x();jL();KL();nd();ad();NW=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ud=function(t){NW(e,t);function e(n,i,a,s){n===void 0&&(n={});var o=t.call(this,n)||this;o._serializer=i;var r=!!n.headers||typeof navigator.sendBeacon!="function",u=gu({url:n.url,timeoutMillis:n.timeoutMillis,headers:n.headers,concurrencyLimit:n.concurrencyLimit},{},Nu(a,s));return o._timeoutMillis=u.timeoutMillis,o._concurrencyLimit=u.concurrencyLimit,r?o._transport=mu({transport:qL({headers:u.headers,url:u.url})}):o._transport=$L({url:u.url,blobType:u.headers["Content-Type"]}),o}return e.prototype.onShutdown=function(){},e.prototype.send=function(n,i,a){var s=this;if(this._shutdownOnce.isCalled){g.debug("Shutdown already started. Cannot send objects");return}var o=this._serializer.serializeRequest(n);if(o==null){a(new Error("Could not serialize message"));return}var r=this._transport.send(o,this._timeoutMillis).then(function(l){l.status==="success"?i():l.status==="failure"&&l.error?a(l.error):l.status==="retryable"?a(new Rt("Export failed with retryable status")):a(new Rt("Export failed with unknown error"))},a);this._sendingPromises.push(r);var u=function(){var l=s._sendingPromises.indexOf(r);s._sendingPromises.splice(l,1)};r.then(u,u)},e}(Cn)});var zL=m(()=>{"use strict";WL()});var XL=m(()=>{"use strict";YL();zL()});var bu={};nt(bu,{CompressionAlgorithm:()=>_i,OTLPExporterBase:()=>Cn,OTLPExporterBrowserBase:()=>ud,OTLPExporterError:()=>Rt,OTLPExporterNodeBase:()=>Ei,getSharedConfigurationDefaults:()=>Au,getSharedConfigurationFromEnvironment:()=>Ru,mergeOtlpSharedConfigurationWithDefaults:()=>yu,validateAndNormalizeHeaders:()=>Ou});var Si=m(()=>{"use strict";XL();_u();di();id();od();sd()});function xu(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function ld(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function Mu(t){var e=xu(t);return ld(e)}function cd(t){var e=xu(t);return e.toString()}function JL(t){return t}function QL(t){if(t!==void 0)return ar(t)}function dr(t){var e,n;if(t===void 0)return PW;var i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?Mu:RW,encodeSpanContext:a?JL:ar,encodeOptionalSpanContext:a?JL:QL}}var RW,PW,hi=m(()=>{"use strict";K();RW=typeof BigInt<"u"?cd:bs;PW={encodeHrTime:Mu,encodeSpanContext:ar,encodeOptionalSpanContext:QL}});var Lu,ZL=m(()=>{"use strict";(function(t){t[t.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",t[t.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",t[t.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",t[t.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",t[t.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",t[t.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(Lu||(Lu={}))});function wn(t){return{name:t.name,version:t.version}}function Pt(t){return Object.keys(t).map(function(e){return Iu(e,t[e])})}function Iu(t,e){return{key:t,value:Cu(e)}}function Cu(t){var e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(Cu)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var i=bW(n,2),a=i[0],s=i[1];return Iu(a,s)})}}:{}}var bW,Un=m(()=>{"use strict";bW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function eI(t,e){var n,i=t.spanContext(),a=t.status;return{traceId:e.encodeSpanContext(i.traceId),spanId:e.encodeSpanContext(i.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:(n=i.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:Pt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(s){return MW(s,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(s){return xW(s,e)}),droppedLinksCount:t.droppedLinksCount}}function xW(t,e){var n;return{attributes:t.attributes?Pt(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function MW(t,e){return{attributes:t.attributes?Pt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var tI=m(()=>{"use strict";Un()});function Dn(t){return{attributes:Pt(t.attributes),droppedAttributesCount:0}}var wu=m(()=>{"use strict";Un()});function Vn(t,e){var n=dr(e);return{resourceSpans:wW(t,n)}}function CW(t){var e,n,i=new Map;try{for(var a=LW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=i.get(o.resource);r||(r=new Map,i.set(o.resource,r));var u=o.instrumentationLibrary.name+"@"+(o.instrumentationLibrary.version||"")+":"+(o.instrumentationLibrary.schemaUrl||""),l=r.get(u);l||(l=[],r.set(u,l)),l.push(o)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function wW(t,e){for(var n=CW(t),i=[],a=n.entries(),s=a.next();!s.done;){for(var o=IW(s.value,2),r=o[0],u=o[1],l=[],c=u.values(),p=c.next();!p.done;){var _=p.value;if(_.length>0){var f=_.map(function(v){return eI(v,e)});l.push({scope:wn(_[0].instrumentationLibrary),spans:f,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}p=c.next()}var S={resource:Dn(r),scopeSpans:l,schemaUrl:void 0};i.push(S),s=a.next()}return i}var LW,IW,Uu=m(()=>{"use strict";tI();hi();Un();wu();LW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},IW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});function nI(t,e){var n=dr(e);return{resource:Dn(t.resource),schemaUrl:void 0,scopeMetrics:UW(t.scopeMetrics,n)}}function UW(t,e){return Array.from(t.map(function(n){return{scope:wn(n.scope),metrics:n.metrics.map(function(i){return DW(i,e)}),schemaUrl:n.scope.schemaUrl}}))}function DW(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=kW(t.aggregationTemporality);switch(t.dataPointType){case Re.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:rI(t,e)};break;case Re.GAUGE:n.gauge={dataPoints:rI(t,e)};break;case Re.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:BW(t,e)};break;case Re.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:GW(t,e)};break}return n}function VW(t,e,n){var i={attributes:Pt(t.attributes),startTimeUnixNano:n.encodeHrTime(t.startTime),timeUnixNano:n.encodeHrTime(t.endTime)};switch(e){case pt.INT:i.asInt=t.value;break;case pt.DOUBLE:i.asDouble=t.value;break}return i}function rI(t,e){return t.dataPoints.map(function(n){return VW(n,t.descriptor.valueType,e)})}function BW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Pt(n.attributes),bucketCounts:i.buckets.counts,explicitBounds:i.buckets.boundaries,count:i.count,sum:i.sum,min:i.min,max:i.max,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function GW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Pt(n.attributes),count:i.count,min:i.min,max:i.max,sum:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},scale:i.scale,zeroCount:i.zeroCount,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function kW(t){switch(t){case Ne.DELTA:return 1;case Ne.CUMULATIVE:return 2}}var oI=m(()=>{"use strict";x();Ln();hi();Un();wu()});function Bn(t,e){return{resourceMetrics:t.map(function(n){return nI(n,e)})}}var Du=m(()=>{"use strict";oI()});function Gn(t,e){var n=dr(e);return{resourceLogs:YW(t,n)}}function FW(t){var e,n,i=new Map;try{for(var a=HW(t),s=a.next();!s.done;s=a.next()){var o=s.value,r=o.resource,u=o.instrumentationScope,l=u.name,c=u.version,p=c===void 0?"":c,_=u.schemaUrl,f=_===void 0?"":_,S=i.get(r);S||(S=new Map,i.set(r,S));var v=l+"@"+p+":"+f,T=S.get(v);T||(T=[],S.set(v,T)),T.push(o)}}catch(A){e={error:A}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function YW(t,e){var n=FW(t);return Array.from(n,function(i){var a=iI(i,2),s=a[0],o=a[1];return{resource:Dn(s),scopeLogs:Array.from(o,function(r){var u=iI(r,2),l=u[1];return{scope:wn(l[0].instrumentationScope),logRecords:l.map(function(c){return qW(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function qW(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:Cu(t.body),attributes:jW(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:(n=t.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:e.encodeOptionalSpanContext((i=t.spanContext)===null||i===void 0?void 0:i.traceId),spanId:e.encodeOptionalSpanContext((a=t.spanContext)===null||a===void 0?void 0:a.spanId)}}function jW(t){return Object.keys(t).map(function(e){return Iu(e,t[e])})}var HW,iI,Vu=m(()=>{"use strict";hi();Un();wu();HW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iI=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}});var sI=h((ele,aI)=>{"use strict";var I=kU(),y=I.Reader,V=I.Writer,E=I.util,d=I.roots.default||(I.roots.default={});d.opentelemetry=function(){var t={};return t.proto=function(){var e={};return e.common=function(){var n={};return n.v1=function(){var i={};return i.AnyValue=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.stringValue=null,a.prototype.boolValue=null,a.prototype.intValue=null,a.prototype.doubleValue=null,a.prototype.arrayValue=null,a.prototype.kvlistValue=null,a.prototype.bytesValue=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.stringValue!=null&&Object.hasOwnProperty.call(r,"stringValue")&&u.uint32(10).string(r.stringValue),r.boolValue!=null&&Object.hasOwnProperty.call(r,"boolValue")&&u.uint32(16).bool(r.boolValue),r.intValue!=null&&Object.hasOwnProperty.call(r,"intValue")&&u.uint32(24).int64(r.intValue),r.doubleValue!=null&&Object.hasOwnProperty.call(r,"doubleValue")&&u.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Object.hasOwnProperty.call(r,"arrayValue")&&d.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,u.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Object.hasOwnProperty.call(r,"kvlistValue")&&d.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,u.uint32(50).fork()).ldelim(),r.bytesValue!=null&&Object.hasOwnProperty.call(r,"bytesValue")&&u.uint32(58).bytes(r.bytesValue),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.common.v1.AnyValue;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.stringValue=r.string();break}case 2:{c.boolValue=r.bool();break}case 3:{c.intValue=r.int64();break}case 4:{c.doubleValue=r.double();break}case 5:{c.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break}case 6:{c.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break}case 7:{c.bytesValue=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(u.value=1,!E.isString(r.stringValue)))return"stringValue: string expected";if(r.boolValue!=null&&r.hasOwnProperty("boolValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.boolValue!="boolean")return"boolValue: boolean expected"}if(r.intValue!=null&&r.hasOwnProperty("intValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.intValue)&&!(r.intValue&&E.isInteger(r.intValue.low)&&E.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(r.doubleValue!=null&&r.hasOwnProperty("doubleValue")){if(u.value===1)return"value: multiple values";if(u.value=1,typeof r.doubleValue!="number")return"doubleValue: number expected"}if(r.arrayValue!=null&&r.hasOwnProperty("arrayValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue);if(l)return"arrayValue."+l}}if(r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")){if(u.value===1)return"value: multiple values";u.value=1;{var l=d.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue);if(l)return"kvlistValue."+l}}if(r.bytesValue!=null&&r.hasOwnProperty("bytesValue")){if(u.value===1)return"value: multiple values";if(u.value=1,!(r.bytesValue&&typeof r.bytesValue.length=="number"||E.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.common.v1.AnyValue)return r;var u=new d.opentelemetry.proto.common.v1.AnyValue;if(r.stringValue!=null&&(u.stringValue=String(r.stringValue)),r.boolValue!=null&&(u.boolValue=!!r.boolValue),r.intValue!=null&&(E.Long?(u.intValue=E.Long.fromValue(r.intValue)).unsigned=!1:typeof r.intValue=="string"?u.intValue=parseInt(r.intValue,10):typeof r.intValue=="number"?u.intValue=r.intValue:typeof r.intValue=="object"&&(u.intValue=new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),r.doubleValue!=null&&(u.doubleValue=Number(r.doubleValue)),r.arrayValue!=null){if(typeof r.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");u.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(r.kvlistValue!=null){if(typeof r.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");u.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return r.bytesValue!=null&&(typeof r.bytesValue=="string"?E.base64.decode(r.bytesValue,u.bytesValue=E.newBuffer(E.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(u.bytesValue=r.bytesValue)),u},a.toObject=function(r,u){u||(u={});var l={};return r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(l.stringValue=r.stringValue,u.oneofs&&(l.value="stringValue")),r.boolValue!=null&&r.hasOwnProperty("boolValue")&&(l.boolValue=r.boolValue,u.oneofs&&(l.value="boolValue")),r.intValue!=null&&r.hasOwnProperty("intValue")&&(typeof r.intValue=="number"?l.intValue=u.longs===String?String(r.intValue):r.intValue:l.intValue=u.longs===String?E.Long.prototype.toString.call(r.intValue):u.longs===Number?new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,u.oneofs&&(l.value="intValue")),r.doubleValue!=null&&r.hasOwnProperty("doubleValue")&&(l.doubleValue=u.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,u.oneofs&&(l.value="doubleValue")),r.arrayValue!=null&&r.hasOwnProperty("arrayValue")&&(l.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,u),u.oneofs&&(l.value="arrayValue")),r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")&&(l.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,u),u.oneofs&&(l.value="kvlistValue")),r.bytesValue!=null&&r.hasOwnProperty("bytesValue")&&(l.bytesValue=u.bytes===String?E.base64.encode(r.bytesValue,0,r.bytesValue.length):u.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,u.oneofs&&(l.value="bytesValue")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},a}(),i.ArrayValue=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.AnyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.ArrayValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.AnyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.ArrayValue)return o;var r=new d.opentelemetry.proto.common.v1.ArrayValue;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),i.KeyValueList=function(){function a(s){if(this.values=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var u=0;u<o.values.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.values[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValueList;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.values[r]);if(u)return"values."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValueList)return o;var r=new d.opentelemetry.proto.common.v1.KeyValueList;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var u=0;u<o.values.length;++u){if(typeof o.values[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.values[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.values=[]),o.values&&o.values.length){u.values=[];for(var l=0;l<o.values.length;++l)u.values[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.values[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),i.KeyValue=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.key!=null&&Object.hasOwnProperty.call(o,"key")&&r.uint32(10).string(o.key),o.value!=null&&Object.hasOwnProperty.call(o,"value")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.value,r.uint32(18).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValue;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.key=o.string();break}case 2:{l.value=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.key!=null&&o.hasOwnProperty("key")&&!E.isString(o.key))return"key: string expected";if(o.value!=null&&o.hasOwnProperty("value")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.value);if(r)return"value."+r}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValue)return o;var r=new d.opentelemetry.proto.common.v1.KeyValue;if(o.key!=null&&(r.key=String(o.key)),o.value!=null){if(typeof o.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.value)}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.key="",u.value=null),o.key!=null&&o.hasOwnProperty("key")&&(u.key=o.key),o.value!=null&&o.hasOwnProperty("value")&&(u.value=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.value,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValue"},a}(),i.InstrumentationScope=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(10).string(o.name),o.version!=null&&Object.hasOwnProperty.call(o,"version")&&r.uint32(18).string(o.version),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(26).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(32).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.InstrumentationScope;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.name=o.string();break}case 2:{l.version=o.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 4:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.version!=null&&o.hasOwnProperty("version")&&!E.isString(o.version))return"version: string expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.InstrumentationScope)return o;var r=new d.opentelemetry.proto.common.v1.InstrumentationScope;if(o.name!=null&&(r.name=String(o.name)),o.version!=null&&(r.version=String(o.version)),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.name="",u.version="",u.droppedAttributesCount=0),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.version!=null&&o.hasOwnProperty("version")&&(u.version=o.version),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),i}(),n}(),e.resource=function(){var n={};return n.v1=function(){var i={};return i.Resource=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(10).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(16).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.resource.v1.Resource;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.resource.v1.Resource)return o;var r=new d.opentelemetry.proto.resource.v1.Resource;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults&&(u.droppedAttributesCount=0),o.attributes&&o.attributes.length){u.attributes=[];for(var l=0;l<o.attributes.length;++l)u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.resource.v1.Resource"},a}(),i}(),n}(),e.trace=function(){var n={};return n.v1=function(){var i={};return i.TracesData=function(){function a(s){if(this.resourceSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceSpans=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceSpans!=null&&o.resourceSpans.length)for(var u=0;u<o.resourceSpans.length;++u)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(o.resourceSpans[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.TracesData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceSpans!=null&&o.hasOwnProperty("resourceSpans")){if(!Array.isArray(o.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<o.resourceSpans.length;++r){var u=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(o.resourceSpans[r]);if(u)return"resourceSpans."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.TracesData)return o;var r=new d.opentelemetry.proto.trace.v1.TracesData;if(o.resourceSpans){if(!Array.isArray(o.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var u=0;u<o.resourceSpans.length;++u){if(typeof o.resourceSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[u]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(o.resourceSpans[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceSpans=[]),o.resourceSpans&&o.resourceSpans.length){u.resourceSpans=[];for(var l=0;l<o.resourceSpans.length;++l)u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(o.resourceSpans[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.TracesData"},a}(),i.ResourceSpans=function(){function a(s){if(this.scopeSpans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeSpans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeSpans!=null&&o.scopeSpans.length)for(var u=0;u<o.scopeSpans.length;++u)d.opentelemetry.proto.trace.v1.ScopeSpans.encode(o.scopeSpans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ResourceSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeSpans&&l.scopeSpans.length||(l.scopeSpans=[]),l.scopeSpans.push(d.opentelemetry.proto.trace.v1.ScopeSpans.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeSpans!=null&&o.hasOwnProperty("scopeSpans")){if(!Array.isArray(o.scopeSpans))return"scopeSpans: array expected";for(var u=0;u<o.scopeSpans.length;++u){var r=d.opentelemetry.proto.trace.v1.ScopeSpans.verify(o.scopeSpans[u]);if(r)return"scopeSpans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ResourceSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ResourceSpans;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeSpans){if(!Array.isArray(o.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var u=0;u<o.scopeSpans.length;++u){if(typeof o.scopeSpans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[u]=d.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(o.scopeSpans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeSpans=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeSpans&&o.scopeSpans.length){u.scopeSpans=[];for(var l=0;l<o.scopeSpans.length;++l)u.scopeSpans[l]=d.opentelemetry.proto.trace.v1.ScopeSpans.toObject(o.scopeSpans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),i.ScopeSpans=function(){function a(s){if(this.spans=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.spans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.spans!=null&&o.spans.length)for(var u=0;u<o.spans.length;++u)d.opentelemetry.proto.trace.v1.Span.encode(o.spans[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ScopeSpans;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.spans&&l.spans.length||(l.spans=[]),l.spans.push(d.opentelemetry.proto.trace.v1.Span.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.spans!=null&&o.hasOwnProperty("spans")){if(!Array.isArray(o.spans))return"spans: array expected";for(var u=0;u<o.spans.length;++u){var r=d.opentelemetry.proto.trace.v1.Span.verify(o.spans[u]);if(r)return"spans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ScopeSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ScopeSpans;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.spans){if(!Array.isArray(o.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var u=0;u<o.spans.length;++u){if(typeof o.spans[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[u]=d.opentelemetry.proto.trace.v1.Span.fromObject(o.spans[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.spans=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.spans&&o.spans.length){u.spans=[];for(var l=0;l<o.spans.length;++l)u.spans[l]=d.opentelemetry.proto.trace.v1.Span.toObject(o.spans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),i.Span=function(){function a(s){if(this.attributes=[],this.events=[],this.links=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.parentSpanId=null,a.prototype.name=null,a.prototype.kind=null,a.prototype.startTimeUnixNano=null,a.prototype.endTimeUnixNano=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=E.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=E.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(10).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(18).bytes(o.spanId),o.traceState!=null&&Object.hasOwnProperty.call(o,"traceState")&&r.uint32(26).string(o.traceState),o.parentSpanId!=null&&Object.hasOwnProperty.call(o,"parentSpanId")&&r.uint32(34).bytes(o.parentSpanId),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(42).string(o.name),o.kind!=null&&Object.hasOwnProperty.call(o,"kind")&&r.uint32(48).int32(o.kind),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(57).fixed64(o.startTimeUnixNano),o.endTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"endTimeUnixNano")&&r.uint32(65).fixed64(o.endTimeUnixNano),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(74).fork()).ldelim();if(o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(80).uint32(o.droppedAttributesCount),o.events!=null&&o.events.length)for(var u=0;u<o.events.length;++u)d.opentelemetry.proto.trace.v1.Span.Event.encode(o.events[u],r.uint32(90).fork()).ldelim();if(o.droppedEventsCount!=null&&Object.hasOwnProperty.call(o,"droppedEventsCount")&&r.uint32(96).uint32(o.droppedEventsCount),o.links!=null&&o.links.length)for(var u=0;u<o.links.length;++u)d.opentelemetry.proto.trace.v1.Span.Link.encode(o.links[u],r.uint32(106).fork()).ldelim();return o.droppedLinksCount!=null&&Object.hasOwnProperty.call(o,"droppedLinksCount")&&r.uint32(112).uint32(o.droppedLinksCount),o.status!=null&&Object.hasOwnProperty.call(o,"status")&&d.opentelemetry.proto.trace.v1.Status.encode(o.status,r.uint32(122).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Span;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.traceId=o.bytes();break}case 2:{l.spanId=o.bytes();break}case 3:{l.traceState=o.string();break}case 4:{l.parentSpanId=o.bytes();break}case 5:{l.name=o.string();break}case 6:{l.kind=o.int32();break}case 7:{l.startTimeUnixNano=o.fixed64();break}case 8:{l.endTimeUnixNano=o.fixed64();break}case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 10:{l.droppedAttributesCount=o.uint32();break}case 11:{l.events&&l.events.length||(l.events=[]),l.events.push(d.opentelemetry.proto.trace.v1.Span.Event.decode(o,o.uint32()));break}case 12:{l.droppedEventsCount=o.uint32();break}case 13:{l.links&&l.links.length||(l.links=[]),l.links.push(d.opentelemetry.proto.trace.v1.Span.Link.decode(o,o.uint32()));break}case 14:{l.droppedLinksCount=o.uint32();break}case 15:{l.status=d.opentelemetry.proto.trace.v1.Status.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId)))return"traceId: buffer expected";if(o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId)))return"spanId: buffer expected";if(o.traceState!=null&&o.hasOwnProperty("traceState")&&!E.isString(o.traceState))return"traceState: string expected";if(o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&!(o.parentSpanId&&typeof o.parentSpanId.length=="number"||E.isString(o.parentSpanId)))return"parentSpanId: buffer expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.kind!=null&&o.hasOwnProperty("kind"))switch(o.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&!E.isInteger(o.endTimeUnixNano)&&!(o.endTimeUnixNano&&E.isInteger(o.endTimeUnixNano.low)&&E.isInteger(o.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(o.events!=null&&o.hasOwnProperty("events")){if(!Array.isArray(o.events))return"events: array expected";for(var r=0;r<o.events.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Event.verify(o.events[r]);if(u)return"events."+u}}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&!E.isInteger(o.droppedEventsCount))return"droppedEventsCount: integer expected";if(o.links!=null&&o.hasOwnProperty("links")){if(!Array.isArray(o.links))return"links: array expected";for(var r=0;r<o.links.length;++r){var u=d.opentelemetry.proto.trace.v1.Span.Link.verify(o.links[r]);if(u)return"links."+u}}if(o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&!E.isInteger(o.droppedLinksCount))return"droppedLinksCount: integer expected";if(o.status!=null&&o.hasOwnProperty("status")){var u=d.opentelemetry.proto.trace.v1.Status.verify(o.status);if(u)return"status."+u}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Span)return o;var r=new d.opentelemetry.proto.trace.v1.Span;switch(o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),o.traceState!=null&&(r.traceState=String(o.traceState)),o.parentSpanId!=null&&(typeof o.parentSpanId=="string"?E.base64.decode(o.parentSpanId,r.parentSpanId=E.newBuffer(E.base64.length(o.parentSpanId)),0):o.parentSpanId.length>=0&&(r.parentSpanId=o.parentSpanId)),o.name!=null&&(r.name=String(o.name)),o.kind){default:if(typeof o.kind=="number"){r.kind=o.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5;break}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.endTimeUnixNano!=null&&(E.Long?(r.endTimeUnixNano=E.Long.fromValue(o.endTimeUnixNano)).unsigned=!1:typeof o.endTimeUnixNano=="string"?r.endTimeUnixNano=parseInt(o.endTimeUnixNano,10):typeof o.endTimeUnixNano=="number"?r.endTimeUnixNano=o.endTimeUnixNano:typeof o.endTimeUnixNano=="object"&&(r.endTimeUnixNano=new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber())),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.events){if(!Array.isArray(o.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");r.events=[];for(var u=0;u<o.events.length;++u){if(typeof o.events[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[u]=d.opentelemetry.proto.trace.v1.Span.Event.fromObject(o.events[u])}}if(o.droppedEventsCount!=null&&(r.droppedEventsCount=o.droppedEventsCount>>>0),o.links){if(!Array.isArray(o.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");r.links=[];for(var u=0;u<o.links.length;++u){if(typeof o.links[u]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[u]=d.opentelemetry.proto.trace.v1.Span.Link.fromObject(o.links[u])}}if(o.droppedLinksCount!=null&&(r.droppedLinksCount=o.droppedLinksCount>>>0),o.status!=null){if(typeof o.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=d.opentelemetry.proto.trace.v1.Status.fromObject(o.status)}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[],u.events=[],u.links=[]),r.defaults){if(r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),u.traceState="",r.bytes===String?u.parentSpanId="":(u.parentSpanId=[],r.bytes!==Array&&(u.parentSpanId=E.newBuffer(u.parentSpanId))),u.name="",u.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.endTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.endTimeUnixNano=r.longs===String?"0":0;u.droppedAttributesCount=0,u.droppedEventsCount=0,u.droppedLinksCount=0,u.status=null}if(o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.traceState!=null&&o.hasOwnProperty("traceState")&&(u.traceState=o.traceState),o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&(u.parentSpanId=r.bytes===String?E.base64.encode(o.parentSpanId,0,o.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(o.parentSpanId):o.parentSpanId),o.name!=null&&o.hasOwnProperty("name")&&(u.name=o.name),o.kind!=null&&o.hasOwnProperty("kind")&&(u.kind=r.enums===String?d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]===void 0?o.kind:d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]:o.kind),o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&(typeof o.endTimeUnixNano=="number"?u.endTimeUnixNano=r.longs===String?String(o.endTimeUnixNano):o.endTimeUnixNano:u.endTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.endTimeUnixNano):r.longs===Number?new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber():o.endTimeUnixNano),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.events&&o.events.length){u.events=[];for(var c=0;c<o.events.length;++c)u.events[c]=d.opentelemetry.proto.trace.v1.Span.Event.toObject(o.events[c],r)}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&(u.droppedEventsCount=o.droppedEventsCount),o.links&&o.links.length){u.links=[];for(var c=0;c<o.links.length;++c)u.links[c]=d.opentelemetry.proto.trace.v1.Span.Link.toObject(o.links[c],r)}return o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&(u.droppedLinksCount=o.droppedLinksCount),o.status!=null&&o.hasOwnProperty("status")&&(u.status=d.opentelemetry.proto.trace.v1.Status.toObject(o.status,r)),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var s={},o=Object.create(s);return o[s[0]="SPAN_KIND_UNSPECIFIED"]=0,o[s[1]="SPAN_KIND_INTERNAL"]=1,o[s[2]="SPAN_KIND_SERVER"]=2,o[s[3]="SPAN_KIND_CLIENT"]=3,o[s[4]="SPAN_KIND_PRODUCER"]=4,o[s[5]="SPAN_KIND_CONSUMER"]=5,o}(),a.Event=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.timeUnixNano=null,s.prototype.name=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(32).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Event;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.timeUnixNano=r.fixed64();break}case 2:{c.name=r.string();break}case 3:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Event)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Event;if(r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.name!=null&&(u.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.name="",l.droppedAttributesCount=0}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},s}(),a.Link=function(){function s(o){if(this.attributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.traceId=null,s.prototype.spanId=null,s.prototype.traceState=null,s.prototype.attributes=E.emptyArray,s.prototype.droppedAttributesCount=null,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(10).bytes(r.traceId),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(18).bytes(r.spanId),r.traceState!=null&&Object.hasOwnProperty.call(r,"traceState")&&u.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&u.uint32(40).uint32(r.droppedAttributesCount),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.trace.v1.Span.Link;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.traceId=r.bytes();break}case 2:{c.spanId=r.bytes();break}case 3:{c.traceState=r.string();break}case 4:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 5:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId)))return"traceId: buffer expected";if(r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId)))return"spanId: buffer expected";if(r.traceState!=null&&r.hasOwnProperty("traceState")&&!E.isString(r.traceState))return"traceState: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var u=0;u<r.attributes.length;++u){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[u]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Link)return r;var u=new d.opentelemetry.proto.trace.v1.Span.Link;if(r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceState!=null&&(u.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(u.droppedAttributesCount=r.droppedAttributesCount>>>0),u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[]),u.defaults&&(u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId))),u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),l.traceState="",l.droppedAttributesCount=0),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceState!=null&&r.hasOwnProperty("traceState")&&(l.traceState=r.traceState),r.attributes&&r.attributes.length){l.attributes=[];for(var c=0;c<r.attributes.length;++c)l.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[c],u)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},s}(),a}(),i.Status=function(){function a(s){if(s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.message!=null&&Object.hasOwnProperty.call(o,"message")&&r.uint32(18).string(o.message),o.code!=null&&Object.hasOwnProperty.call(o,"code")&&r.uint32(24).int32(o.code),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Status;o.pos<u;){var c=o.uint32();switch(c>>>3){case 2:{l.message=o.string();break}case 3:{l.code=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.message!=null&&o.hasOwnProperty("message")&&!E.isString(o.message))return"message: string expected";if(o.code!=null&&o.hasOwnProperty("code"))switch(o.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Status)return o;var r=new d.opentelemetry.proto.trace.v1.Status;switch(o.message!=null&&(r.message=String(o.message)),o.code){default:if(typeof o.code=="number"){r.code=o.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};return r.defaults&&(u.message="",u.code=r.enums===String?"STATUS_CODE_UNSET":0),o.message!=null&&o.hasOwnProperty("message")&&(u.message=o.message),o.code!=null&&o.hasOwnProperty("code")&&(u.code=r.enums===String?d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]===void 0?o.code:d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]:o.code),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var s={},o=Object.create(s);return o[s[0]="STATUS_CODE_UNSET"]=0,o[s[1]="STATUS_CODE_OK"]=1,o[s[2]="STATUS_CODE_ERROR"]=2,o}(),a}(),i}(),n}(),e.collector=function(){var n={};return n.trace=function(){var i={};return i.v1=function(){var a={};return a.TraceService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportTraceServiceRequest=function(){function s(o){if(this.resourceSpans=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceSpans=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var l=0;l<r.resourceSpans.length;++l)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceSpans&&c.resourceSpans.length||(c.resourceSpans=[]),c.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var u=0;u<r.resourceSpans.length;++u){var l=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[u]);if(l)return"resourceSpans."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");u.resourceSpans=[];for(var l=0;l<r.resourceSpans.length;++l){if(typeof r.resourceSpans[l]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");u.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){l.resourceSpans=[];for(var c=0;c<r.resourceSpans.length;++c)l.resourceSpans[c]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},s}(),a.ExportTraceServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},s}(),a.ExportTracePartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedSpans=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedSpans!=null&&Object.hasOwnProperty.call(r,"rejectedSpans")&&u.uint32(8).int64(r.rejectedSpans),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedSpans=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&!E.isInteger(r.rejectedSpans)&&!(r.rejectedSpans&&E.isInteger(r.rejectedSpans.low)&&E.isInteger(r.rejectedSpans.high))?"rejectedSpans: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var u=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return r.rejectedSpans!=null&&(E.Long?(u.rejectedSpans=E.Long.fromValue(r.rejectedSpans)).unsigned=!1:typeof r.rejectedSpans=="string"?u.rejectedSpans=parseInt(r.rejectedSpans,10):typeof r.rejectedSpans=="number"?u.rejectedSpans=r.rejectedSpans:typeof r.rejectedSpans=="object"&&(u.rejectedSpans=new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedSpans=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedSpans=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&(typeof r.rejectedSpans=="number"?l.rejectedSpans=u.longs===String?String(r.rejectedSpans):r.rejectedSpans:l.rejectedSpans=u.longs===String?E.Long.prototype.toString.call(r.rejectedSpans):u.longs===Number?new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},s}(),a}(),i}(),n.metrics=function(){var i={};return i.v1=function(){var a={};return a.MetricsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportMetricsServiceRequest=function(){function s(o){if(this.resourceMetrics=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceMetrics=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceMetrics!=null&&r.resourceMetrics.length)for(var l=0;l<r.resourceMetrics.length;++l)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceMetrics&&c.resourceMetrics.length||(c.resourceMetrics=[]),c.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceMetrics!=null&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var u=0;u<r.resourceMetrics.length;++u){var l=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[u]);if(l)return"resourceMetrics."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");u.resourceMetrics=[];for(var l=0;l<r.resourceMetrics.length;++l){if(typeof r.resourceMetrics[l]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){l.resourceMetrics=[];for(var c=0;c<r.resourceMetrics.length;++c)l.resourceMetrics[c]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},s}(),a.ExportMetricsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},s}(),a.ExportMetricsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedDataPoints=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedDataPoints!=null&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&u.uint32(8).int64(r.rejectedDataPoints),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedDataPoints=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&!E.isInteger(r.rejectedDataPoints)&&!(r.rejectedDataPoints&&E.isInteger(r.rejectedDataPoints.low)&&E.isInteger(r.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return r.rejectedDataPoints!=null&&(E.Long?(u.rejectedDataPoints=E.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:typeof r.rejectedDataPoints=="string"?u.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):typeof r.rejectedDataPoints=="number"?u.rejectedDataPoints=r.rejectedDataPoints:typeof r.rejectedDataPoints=="object"&&(u.rejectedDataPoints=new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedDataPoints=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedDataPoints=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&(typeof r.rejectedDataPoints=="number"?l.rejectedDataPoints=u.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:l.rejectedDataPoints=u.longs===String?E.Long.prototype.toString.call(r.rejectedDataPoints):u.longs===Number?new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},s}(),a}(),i}(),n.logs=function(){var i={};return i.v1=function(){var a={};return a.LogsService=function(){function s(o,r,u){I.rpc.Service.call(this,o,r,u)}return(s.prototype=Object.create(I.rpc.Service.prototype)).constructor=s,s.create=function(r,u,l){return new this(r,u,l)},Object.defineProperty(s.prototype.export=function o(r,u){return this.rpcCall(o,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,u)},"name",{value:"Export"}),s}(),a.ExportLogsServiceRequest=function(){function s(o){if(this.resourceLogs=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.resourceLogs=E.emptyArray,s.create=function(r){return new s(r)},s.encode=function(r,u){if(u||(u=V.create()),r.resourceLogs!=null&&r.resourceLogs.length)for(var l=0;l<r.resourceLogs.length;++l)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[l],u.uint32(10).fork()).ldelim();return u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceLogs&&c.resourceLogs.length||(c.resourceLogs=[]),c.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceLogs!=null&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var u=0;u<r.resourceLogs.length;++u){var l=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[u]);if(l)return"resourceLogs."+l}}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");u.resourceLogs=[];for(var l=0;l<r.resourceLogs.length;++l){if(typeof r.resourceLogs[l]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[l])}}return u},s.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){l.resourceLogs=[];for(var c=0;c<r.resourceLogs.length;++c)l.resourceLogs[c]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[c],u)}return l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},s}(),a.ExportLogsServiceResponse=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.partialSuccess=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,u.uint32(10).fork()).ldelim(),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var u=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(u)return"partialSuccess."+u}return null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");u.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,u)),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},s}(),a.ExportLogsPartialSuccess=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.rejectedLogRecords=null,s.prototype.errorMessage=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.rejectedLogRecords!=null&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&u.uint32(8).int64(r.rejectedLogRecords),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&u.uint32(18).string(r.errorMessage),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedLogRecords=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&!E.isInteger(r.rejectedLogRecords)&&!(r.rejectedLogRecords&&E.isInteger(r.rejectedLogRecords.low)&&E.isInteger(r.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var u=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return r.rejectedLogRecords!=null&&(E.Long?(u.rejectedLogRecords=E.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:typeof r.rejectedLogRecords=="string"?u.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):typeof r.rejectedLogRecords=="number"?u.rejectedLogRecords=r.rejectedLogRecords:typeof r.rejectedLogRecords=="object"&&(u.rejectedLogRecords=new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),r.errorMessage!=null&&(u.errorMessage=String(r.errorMessage)),u},s.toObject=function(r,u){u||(u={});var l={};if(u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedLogRecords=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.rejectedLogRecords=u.longs===String?"0":0;l.errorMessage=""}return r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&(typeof r.rejectedLogRecords=="number"?l.rejectedLogRecords=u.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:l.rejectedLogRecords=u.longs===String?E.Long.prototype.toString.call(r.rejectedLogRecords):u.longs===Number?new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},s}(),a}(),i}(),n}(),e.metrics=function(){var n={};return n.v1=function(){var i={};return i.MetricsData=function(){function a(s){if(this.resourceMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceMetrics=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceMetrics!=null&&o.resourceMetrics.length)for(var u=0;u<o.resourceMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(o.resourceMetrics[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.MetricsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceMetrics!=null&&o.hasOwnProperty("resourceMetrics")){if(!Array.isArray(o.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<o.resourceMetrics.length;++r){var u=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(o.resourceMetrics[r]);if(u)return"resourceMetrics."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.MetricsData)return o;var r=new d.opentelemetry.proto.metrics.v1.MetricsData;if(o.resourceMetrics){if(!Array.isArray(o.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var u=0;u<o.resourceMetrics.length;++u){if(typeof o.resourceMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[u]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(o.resourceMetrics[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceMetrics=[]),o.resourceMetrics&&o.resourceMetrics.length){u.resourceMetrics=[];for(var l=0;l<o.resourceMetrics.length;++l)u.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(o.resourceMetrics[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),i.ResourceMetrics=function(){function a(s){if(this.scopeMetrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeMetrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeMetrics!=null&&o.scopeMetrics.length)for(var u=0;u<o.scopeMetrics.length;++u)d.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(o.scopeMetrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeMetrics&&l.scopeMetrics.length||(l.scopeMetrics=[]),l.scopeMetrics.push(d.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeMetrics!=null&&o.hasOwnProperty("scopeMetrics")){if(!Array.isArray(o.scopeMetrics))return"scopeMetrics: array expected";for(var u=0;u<o.scopeMetrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(o.scopeMetrics[u]);if(r)return"scopeMetrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ResourceMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeMetrics){if(!Array.isArray(o.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var u=0;u<o.scopeMetrics.length;++u){if(typeof o.scopeMetrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[u]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(o.scopeMetrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeMetrics=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeMetrics&&o.scopeMetrics.length){u.scopeMetrics=[];for(var l=0;l<o.scopeMetrics.length;++l)u.scopeMetrics[l]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(o.scopeMetrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),i.ScopeMetrics=function(){function a(s){if(this.metrics=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.metrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.metrics!=null&&o.metrics.length)for(var u=0;u<o.metrics.length;++u)d.opentelemetry.proto.metrics.v1.Metric.encode(o.metrics[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.metrics&&l.metrics.length||(l.metrics=[]),l.metrics.push(d.opentelemetry.proto.metrics.v1.Metric.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.metrics!=null&&o.hasOwnProperty("metrics")){if(!Array.isArray(o.metrics))return"metrics: array expected";for(var u=0;u<o.metrics.length;++u){var r=d.opentelemetry.proto.metrics.v1.Metric.verify(o.metrics[u]);if(r)return"metrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ScopeMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.metrics){if(!Array.isArray(o.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var u=0;u<o.metrics.length;++u){if(typeof o.metrics[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[u]=d.opentelemetry.proto.metrics.v1.Metric.fromObject(o.metrics[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.metrics=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.metrics&&o.metrics.length){u.metrics=[];for(var l=0;l<o.metrics.length;++l)u.metrics[l]=d.opentelemetry.proto.metrics.v1.Metric.toObject(o.metrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),i.Metric=function(){function a(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.name=null,a.prototype.description=null,a.prototype.unit=null,a.prototype.gauge=null,a.prototype.sum=null,a.prototype.histogram=null,a.prototype.exponentialHistogram=null,a.prototype.summary=null;var s;return Object.defineProperty(a.prototype,"data",{get:E.oneOfGetter(s=["gauge","sum","histogram","exponentialHistogram","summary"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){return u||(u=V.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&u.uint32(10).string(r.name),r.description!=null&&Object.hasOwnProperty.call(r,"description")&&u.uint32(18).string(r.description),r.unit!=null&&Object.hasOwnProperty.call(r,"unit")&&u.uint32(26).string(r.unit),r.gauge!=null&&Object.hasOwnProperty.call(r,"gauge")&&d.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,u.uint32(42).fork()).ldelim(),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&d.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,u.uint32(58).fork()).ldelim(),r.histogram!=null&&Object.hasOwnProperty.call(r,"histogram")&&d.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,u.uint32(74).fork()).ldelim(),r.exponentialHistogram!=null&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,u.uint32(82).fork()).ldelim(),r.summary!=null&&Object.hasOwnProperty.call(r,"summary")&&d.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,u.uint32(90).fork()).ldelim(),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Metric;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.name=r.string();break}case 2:{c.description=r.string();break}case 3:{c.unit=r.string();break}case 5:{c.gauge=d.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break}case 7:{c.sum=d.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break}case 9:{c.histogram=d.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break}case 10:{c.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break}case 11:{c.summary=d.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.description!=null&&r.hasOwnProperty("description")&&!E.isString(r.description))return"description: string expected";if(r.unit!=null&&r.hasOwnProperty("unit")&&!E.isString(r.unit))return"unit: string expected";if(r.gauge!=null&&r.hasOwnProperty("gauge")){u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge);if(l)return"gauge."+l}}if(r.sum!=null&&r.hasOwnProperty("sum")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Sum.verify(r.sum);if(l)return"sum."+l}}if(r.histogram!=null&&r.hasOwnProperty("histogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram);if(l)return"histogram."+l}}if(r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram);if(l)return"exponentialHistogram."+l}}if(r.summary!=null&&r.hasOwnProperty("summary")){if(u.data===1)return"data: multiple values";u.data=1;{var l=d.opentelemetry.proto.metrics.v1.Summary.verify(r.summary);if(l)return"summary."+l}}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Metric)return r;var u=new d.opentelemetry.proto.metrics.v1.Metric;if(r.name!=null&&(u.name=String(r.name)),r.description!=null&&(u.description=String(r.description)),r.unit!=null&&(u.unit=String(r.unit)),r.gauge!=null){if(typeof r.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");u.gauge=d.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(r.sum!=null){if(typeof r.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");u.sum=d.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(r.histogram!=null){if(typeof r.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");u.histogram=d.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(r.exponentialHistogram!=null){if(typeof r.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");u.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(r.summary!=null){if(typeof r.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");u.summary=d.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return u},a.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.name="",l.description="",l.unit=""),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.description!=null&&r.hasOwnProperty("description")&&(l.description=r.description),r.unit!=null&&r.hasOwnProperty("unit")&&(l.unit=r.unit),r.gauge!=null&&r.hasOwnProperty("gauge")&&(l.gauge=d.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,u),u.oneofs&&(l.data="gauge")),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=d.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,u),u.oneofs&&(l.data="sum")),r.histogram!=null&&r.hasOwnProperty("histogram")&&(l.histogram=d.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,u),u.oneofs&&(l.data="histogram")),r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")&&(l.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,u),u.oneofs&&(l.data="exponentialHistogram")),r.summary!=null&&r.hasOwnProperty("summary")&&(l.summary=d.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,u),u.oneofs&&(l.data="summary")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},a}(),i.Gauge=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Gauge;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Gauge)return o;var r=new d.opentelemetry.proto.metrics.v1.Gauge;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),i.Sum=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),o.isMonotonic!=null&&Object.hasOwnProperty.call(o,"isMonotonic")&&r.uint32(24).bool(o.isMonotonic),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Sum;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}case 3:{l.isMonotonic=o.bool();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&typeof o.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Sum)return o;var r=new d.opentelemetry.proto.metrics.v1.Sum;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return o.isMonotonic!=null&&(r.isMonotonic=!!o.isMonotonic),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,u.isMonotonic=!1),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&(u.isMonotonic=o.isMonotonic),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Sum"},a}(),i.Histogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Histogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Histogram)return o;var r=new d.opentelemetry.proto.metrics.v1.Histogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),i.ExponentialHistogram=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogram)return o;var r=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(o.dataPoints[u])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),r.defaults&&(u.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(u.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),i.Summary=function(){function a(s){if(this.dataPoints=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var u=0;u<o.dataPoints.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(o.dataPoints[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Summary;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(o.dataPoints[r]);if(u)return"dataPoints."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Summary)return o;var r=new d.opentelemetry.proto.metrics.v1.Summary;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var u=0;u<o.dataPoints.length;++u){if(typeof o.dataPoints[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(o.dataPoints[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.dataPoints=[]),o.dataPoints&&o.dataPoints.length){u.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)u.dataPoints[l]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(o.dataPoints[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Summary"},a}(),i.AggregationTemporality=function(){var a={},s=Object.create(a);return s[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,s[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,s[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,s}(),i.DataPointFlags=function(){var a={},s=Object.create(a);return s[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,s[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,s}(),i.NumberDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(33).double(r.asDouble),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(42).fork()).ldelim();if(r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(58).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(64).uint32(r.flags),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 5:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 8:{c.flags=r.uint32();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),i.HistogramDataPoint=function(){function a(o){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=E.emptyArray,a.prototype.explicitBounds=E.emptyArray,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.bucketCounts!=null&&r.bucketCounts.length){u.uint32(50).fork();for(var l=0;l<r.bucketCounts.length;++l)u.fixed64(r.bucketCounts[l]);u.ldelim()}if(r.explicitBounds!=null&&r.explicitBounds.length){u.uint32(58).fork();for(var l=0;l<r.explicitBounds.length;++l)u.double(r.explicitBounds[l]);u.ldelim()}if(r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(66).fork()).ldelim();if(r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(74).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(89).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(97).double(r.max),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 9:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{if(c.bucketCounts&&c.bucketCounts.length||(c.bucketCounts=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.bucketCounts.push(r.fixed64());else c.bucketCounts.push(r.fixed64());break}case 7:{if(c.explicitBounds&&c.explicitBounds.length||(c.explicitBounds=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.explicitBounds.push(r.double());else c.explicitBounds.push(r.double());break}case 8:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 10:{c.flags=r.uint32();break}case 11:{c.min=r.double();break}case 12:{c.max=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.bucketCounts!=null&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<r.bucketCounts.length;++l)if(!E.isInteger(r.bucketCounts[l])&&!(r.bucketCounts[l]&&E.isInteger(r.bucketCounts[l].low)&&E.isInteger(r.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}if(r.explicitBounds!=null&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(var l=0;l<r.explicitBounds.length;++l)if(typeof r.explicitBounds[l]!="number")return"explicitBounds: number[] expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");u.bucketCounts=[];for(var l=0;l<r.bucketCounts.length;++l)E.Long?(u.bucketCounts[l]=E.Long.fromValue(r.bucketCounts[l])).unsigned=!1:typeof r.bucketCounts[l]=="string"?u.bucketCounts[l]=parseInt(r.bucketCounts[l],10):typeof r.bucketCounts[l]=="number"?u.bucketCounts[l]=r.bucketCounts[l]:typeof r.bucketCounts[l]=="object"&&(u.bucketCounts[l]=new E.LongBits(r.bucketCounts[l].low>>>0,r.bucketCounts[l].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");u.explicitBounds=[];for(var l=0;l<r.explicitBounds.length;++l)u.explicitBounds[l]=Number(r.explicitBounds[l])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(u.flags=r.flags>>>0),r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.bucketCounts=[],l.explicitBounds=[],l.exemplars=[],l.attributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.bucketCounts&&r.bucketCounts.length){l.bucketCounts=[];for(var p=0;p<r.bucketCounts.length;++p)typeof r.bucketCounts[p]=="number"?l.bucketCounts[p]=u.longs===String?String(r.bucketCounts[p]):r.bucketCounts[p]:l.bucketCounts[p]=u.longs===String?E.Long.prototype.toString.call(r.bucketCounts[p]):u.longs===Number?new E.LongBits(r.bucketCounts[p].low>>>0,r.bucketCounts[p].high>>>0).toNumber():r.bucketCounts[p]}if(r.explicitBounds&&r.explicitBounds.length){l.explicitBounds=[];for(var p=0;p<r.explicitBounds.length;++p)l.explicitBounds[p]=u.json&&!isFinite(r.explicitBounds[p])?String(r.explicitBounds[p]):r.explicitBounds[p]}if(r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),i.ExponentialHistogramDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.scale=null,a.prototype.zeroCount=null,a.prototype.positive=null,a.prototype.negative=null,a.prototype.flags=null,a.prototype.exemplars=E.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var s;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(s=["sum"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(s=["min"]),set:E.oneOfSetter(s)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(s=["max"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],u.uint32(10).fork()).ldelim();if(r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&u.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&u.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&u.uint32(41).double(r.sum),r.scale!=null&&Object.hasOwnProperty.call(r,"scale")&&u.uint32(48).sint32(r.scale),r.zeroCount!=null&&Object.hasOwnProperty.call(r,"zeroCount")&&u.uint32(57).fixed64(r.zeroCount),r.positive!=null&&Object.hasOwnProperty.call(r,"positive")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,u.uint32(66).fork()).ldelim(),r.negative!=null&&Object.hasOwnProperty.call(r,"negative")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,u.uint32(74).fork()).ldelim(),r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&u.uint32(80).uint32(r.flags),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],u.uint32(90).fork()).ldelim();return r.min!=null&&Object.hasOwnProperty.call(r,"min")&&u.uint32(97).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&u.uint32(105).double(r.max),r.zeroThreshold!=null&&Object.hasOwnProperty.call(r,"zeroThreshold")&&u.uint32(113).double(r.zeroThreshold),u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{c.scale=r.sint32();break}case 7:{c.zeroCount=r.fixed64();break}case 8:{c.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 9:{c.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 10:{c.flags=r.uint32();break}case 11:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 12:{c.min=r.double();break}case 13:{c.max=r.double();break}case 14:{c.zeroThreshold=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(u._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.scale!=null&&r.hasOwnProperty("scale")&&!E.isInteger(r.scale))return"scale: integer expected";if(r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&!E.isInteger(r.zeroCount)&&!(r.zeroCount&&E.isInteger(r.zeroCount.low)&&E.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(r.positive!=null&&r.hasOwnProperty("positive")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive);if(c)return"positive."+c}if(r.negative!=null&&r.hasOwnProperty("negative")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative);if(c)return"negative."+c}if(r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags))return"flags: integer expected";if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.min!=null&&r.hasOwnProperty("min")&&(u._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(u._max=1,typeof r.max!="number")?"max: number expected":r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&typeof r.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var u=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");u.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");u.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(u.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?u.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?u.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(u.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(u.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?u.count=parseInt(r.count,10):typeof r.count=="number"?u.count=r.count:typeof r.count=="object"&&(u.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(u.sum=Number(r.sum)),r.scale!=null&&(u.scale=r.scale|0),r.zeroCount!=null&&(E.Long?(u.zeroCount=E.Long.fromValue(r.zeroCount)).unsigned=!1:typeof r.zeroCount=="string"?u.zeroCount=parseInt(r.zeroCount,10):typeof r.zeroCount=="number"?u.zeroCount=r.zeroCount:typeof r.zeroCount=="object"&&(u.zeroCount=new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),r.positive!=null){if(typeof r.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");u.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(r.negative!=null){if(typeof r.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");u.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(r.flags!=null&&(u.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");u.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");u.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.min!=null&&(u.min=Number(r.min)),r.max!=null&&(u.max=Number(r.max)),r.zeroThreshold!=null&&(u.zeroThreshold=Number(r.zeroThreshold)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.attributes=[],l.exemplars=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.startTimeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.count=u.longs===String?"0":0;if(l.scale=0,E.Long){var c=new E.Long(0,0,!1);l.zeroCount=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.zeroCount=u.longs===String?"0":0;l.positive=null,l.negative=null,l.flags=0,l.zeroThreshold=0}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],u)}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=u.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):u.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=u.longs===String?String(r.count):r.count:l.count=u.longs===String?E.Long.prototype.toString.call(r.count):u.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=u.json&&!isFinite(r.sum)?String(r.sum):r.sum,u.oneofs&&(l._sum="sum")),r.scale!=null&&r.hasOwnProperty("scale")&&(l.scale=r.scale),r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&(typeof r.zeroCount=="number"?l.zeroCount=u.longs===String?String(r.zeroCount):r.zeroCount:l.zeroCount=u.longs===String?E.Long.prototype.toString.call(r.zeroCount):u.longs===Number?new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),r.positive!=null&&r.hasOwnProperty("positive")&&(l.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,u)),r.negative!=null&&r.hasOwnProperty("negative")&&(l.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,u)),r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],u)}return r.min!=null&&r.hasOwnProperty("min")&&(l.min=u.json&&!isFinite(r.min)?String(r.min):r.min,u.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=u.json&&!isFinite(r.max)?String(r.max):r.max,u.oneofs&&(l._max="max")),r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&(l.zeroThreshold=u.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function o(r){if(this.bucketCounts=[],r)for(var u=Object.keys(r),l=0;l<u.length;++l)r[u[l]]!=null&&(this[u[l]]=r[u[l]])}return o.prototype.offset=null,o.prototype.bucketCounts=E.emptyArray,o.create=function(u){return new o(u)},o.encode=function(u,l){if(l||(l=V.create()),u.offset!=null&&Object.hasOwnProperty.call(u,"offset")&&l.uint32(8).sint32(u.offset),u.bucketCounts!=null&&u.bucketCounts.length){l.uint32(18).fork();for(var c=0;c<u.bucketCounts.length;++c)l.uint64(u.bucketCounts[c]);l.ldelim()}return l},o.encodeDelimited=function(u,l){return this.encode(u,l).ldelim()},o.decode=function(u,l){u instanceof y||(u=y.create(u));for(var c=l===void 0?u.len:u.pos+l,p=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;u.pos<c;){var _=u.uint32();switch(_>>>3){case 1:{p.offset=u.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(_&7)===2)for(var f=u.uint32()+u.pos;u.pos<f;)p.bucketCounts.push(u.uint64());else p.bucketCounts.push(u.uint64());break}default:u.skipType(_&7);break}}return p},o.decodeDelimited=function(u){return u instanceof y||(u=new y(u)),this.decode(u,u.uint32())},o.verify=function(u){if(typeof u!="object"||u===null)return"object expected";if(u.offset!=null&&u.hasOwnProperty("offset")&&!E.isInteger(u.offset))return"offset: integer expected";if(u.bucketCounts!=null&&u.hasOwnProperty("bucketCounts")){if(!Array.isArray(u.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<u.bucketCounts.length;++l)if(!E.isInteger(u.bucketCounts[l])&&!(u.bucketCounts[l]&&E.isInteger(u.bucketCounts[l].low)&&E.isInteger(u.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}return null},o.fromObject=function(u){if(u instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return u;var l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(u.offset!=null&&(l.offset=u.offset|0),u.bucketCounts){if(!Array.isArray(u.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");l.bucketCounts=[];for(var c=0;c<u.bucketCounts.length;++c)E.Long?(l.bucketCounts[c]=E.Long.fromValue(u.bucketCounts[c])).unsigned=!0:typeof u.bucketCounts[c]=="string"?l.bucketCounts[c]=parseInt(u.bucketCounts[c],10):typeof u.bucketCounts[c]=="number"?l.bucketCounts[c]=u.bucketCounts[c]:typeof u.bucketCounts[c]=="object"&&(l.bucketCounts[c]=new E.LongBits(u.bucketCounts[c].low>>>0,u.bucketCounts[c].high>>>0).toNumber(!0))}return l},o.toObject=function(u,l){l||(l={});var c={};if((l.arrays||l.defaults)&&(c.bucketCounts=[]),l.defaults&&(c.offset=0),u.offset!=null&&u.hasOwnProperty("offset")&&(c.offset=u.offset),u.bucketCounts&&u.bucketCounts.length){c.bucketCounts=[];for(var p=0;p<u.bucketCounts.length;++p)typeof u.bucketCounts[p]=="number"?c.bucketCounts[p]=l.longs===String?String(u.bucketCounts[p]):u.bucketCounts[p]:c.bucketCounts[p]=l.longs===String?E.Long.prototype.toString.call(u.bucketCounts[p]):l.longs===Number?new E.LongBits(u.bucketCounts[p].low>>>0,u.bucketCounts[p].high>>>0).toNumber(!0):u.bucketCounts[p]}return c},o.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},o.getTypeUrl=function(u){return u===void 0&&(u="type.googleapis.com"),u+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},o}(),a}(),i.SummaryDataPoint=function(){function a(s){if(this.attributes=[],this.quantileValues=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=E.emptyArray,a.prototype.flags=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(17).fixed64(o.startTimeUnixNano),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(25).fixed64(o.timeUnixNano),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&r.uint32(33).fixed64(o.count),o.sum!=null&&Object.hasOwnProperty.call(o,"sum")&&r.uint32(41).double(o.sum),o.quantileValues!=null&&o.quantileValues.length)for(var u=0;u<o.quantileValues.length;++u)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(o.quantileValues[u],r.uint32(50).fork()).ldelim();if(o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(58).fork()).ldelim();return o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(64).uint32(o.flags),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;o.pos<u;){var c=o.uint32();switch(c>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.startTimeUnixNano=o.fixed64();break}case 3:{l.timeUnixNano=o.fixed64();break}case 4:{l.count=o.fixed64();break}case 5:{l.sum=o.double();break}case 6:{l.quantileValues&&l.quantileValues.length||(l.quantileValues=[]),l.quantileValues.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(o,o.uint32()));break}case 8:{l.flags=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var u=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(u)return"attributes."+u}}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.count!=null&&o.hasOwnProperty("count")&&!E.isInteger(o.count)&&!(o.count&&E.isInteger(o.count.low)&&E.isInteger(o.count.high)))return"count: integer|Long expected";if(o.sum!=null&&o.hasOwnProperty("sum")&&typeof o.sum!="number")return"sum: number expected";if(o.quantileValues!=null&&o.hasOwnProperty("quantileValues")){if(!Array.isArray(o.quantileValues))return"quantileValues: array expected";for(var r=0;r<o.quantileValues.length;++r){var u=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(o.quantileValues[r]);if(u)return"quantileValues."+u}}return o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint)return o;var r=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.count!=null&&(E.Long?(r.count=E.Long.fromValue(o.count)).unsigned=!1:typeof o.count=="string"?r.count=parseInt(o.count,10):typeof o.count=="number"?r.count=o.count:typeof o.count=="object"&&(r.count=new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber())),o.sum!=null&&(r.sum=Number(o.sum)),o.quantileValues){if(!Array.isArray(o.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");r.quantileValues=[];for(var u=0;u<o.quantileValues.length;++u){if(typeof o.quantileValues[u]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[u]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(o.quantileValues[u])}}return o.flags!=null&&(r.flags=o.flags>>>0),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.quantileValues=[],u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);u.count=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.count=r.longs===String?"0":0;u.sum=0,u.flags=0}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?u.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:u.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?u.count=r.longs===String?String(o.count):o.count:u.count=r.longs===String?E.Long.prototype.toString.call(o.count):r.longs===Number?new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber():o.count),o.sum!=null&&o.hasOwnProperty("sum")&&(u.sum=r.json&&!isFinite(o.sum)?String(o.sum):o.sum),o.quantileValues&&o.quantileValues.length){u.quantileValues=[];for(var c=0;c<o.quantileValues.length;++c)u.quantileValues[c]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(o.quantileValues[c],r)}if(o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function s(o){if(o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}return s.prototype.quantile=null,s.prototype.value=null,s.create=function(r){return new s(r)},s.encode=function(r,u){return u||(u=V.create()),r.quantile!=null&&Object.hasOwnProperty.call(r,"quantile")&&u.uint32(9).double(r.quantile),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&u.uint32(17).double(r.value),u},s.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},s.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.quantile=r.double();break}case 2:{c.value=r.double();break}default:r.skipType(p&7);break}}return c},s.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},s.verify=function(r){return typeof r!="object"||r===null?"object expected":r.quantile!=null&&r.hasOwnProperty("quantile")&&typeof r.quantile!="number"?"quantile: number expected":r.value!=null&&r.hasOwnProperty("value")&&typeof r.value!="number"?"value: number expected":null},s.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var u=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return r.quantile!=null&&(u.quantile=Number(r.quantile)),r.value!=null&&(u.value=Number(r.value)),u},s.toObject=function(r,u){u||(u={});var l={};return u.defaults&&(l.quantile=0,l.value=0),r.quantile!=null&&r.hasOwnProperty("quantile")&&(l.quantile=u.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),r.value!=null&&r.hasOwnProperty("value")&&(l.value=u.json&&!isFinite(r.value)?String(r.value):r.value),l},s.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},s.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},s}(),a}(),i.Exemplar=function(){function a(o){if(this.filteredAttributes=[],o)for(var r=Object.keys(o),u=0;u<r.length;++u)o[r[u]]!=null&&(this[r[u]]=o[r[u]])}a.prototype.filteredAttributes=E.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var s;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(s=["asDouble","asInt"]),set:E.oneOfSetter(s)}),a.create=function(r){return new a(r)},a.encode=function(r,u){if(u||(u=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&u.uint32(17).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&u.uint32(25).double(r.asDouble),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&u.uint32(34).bytes(r.spanId),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&u.uint32(42).bytes(r.traceId),r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&u.uint32(49).sfixed64(r.asInt),r.filteredAttributes!=null&&r.filteredAttributes.length)for(var l=0;l<r.filteredAttributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[l],u.uint32(58).fork()).ldelim();return u},a.encodeDelimited=function(r,u){return this.encode(r,u).ldelim()},a.decode=function(r,u){r instanceof y||(r=y.create(r));for(var l=u===void 0?r.len:r.pos+u,c=new d.opentelemetry.proto.metrics.v1.Exemplar;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.filteredAttributes&&c.filteredAttributes.length||(c.filteredAttributes=[]),c.filteredAttributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.timeUnixNano=r.fixed64();break}case 3:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 4:{c.spanId=r.bytes();break}case 5:{c.traceId=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var u={};if(r.filteredAttributes!=null&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var l=0;l<r.filteredAttributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[l]);if(c)return"filteredAttributes."+c}}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(u.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(u.value===1)return"value: multiple values";if(u.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId))?"spanId: buffer expected":r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId))?"traceId: buffer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Exemplar)return r;var u=new d.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");u.filteredAttributes=[];for(var l=0;l<r.filteredAttributes.length;++l){if(typeof r.filteredAttributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");u.filteredAttributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[l])}}return r.timeUnixNano!=null&&(E.Long?(u.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?u.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?u.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(u.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(u.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(u.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?u.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?u.asInt=r.asInt:typeof r.asInt=="object"&&(u.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,u.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(u.spanId=r.spanId)),r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,u.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(u.traceId=r.traceId)),u},a.toObject=function(r,u){u||(u={});var l={};if((u.arrays||u.defaults)&&(l.filteredAttributes=[]),u.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=u.longs===String?c.toString():u.longs===Number?c.toNumber():c}else l.timeUnixNano=u.longs===String?"0":0;u.bytes===String?l.spanId="":(l.spanId=[],u.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),u.bytes===String?l.traceId="":(l.traceId=[],u.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId)))}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=u.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=u.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):u.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=u.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,u.oneofs&&(l.value="asDouble")),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=u.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):u.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=u.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):u.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=u.longs===String?String(r.asInt):r.asInt:l.asInt=u.longs===String?E.Long.prototype.toString.call(r.asInt):u.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,u.oneofs&&(l.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){l.filteredAttributes=[];for(var p=0;p<r.filteredAttributes.length;++p)l.filteredAttributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[p],u)}return l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),i}(),n}(),e.logs=function(){var n={};return n.v1=function(){var i={};return i.LogsData=function(){function a(s){if(this.resourceLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resourceLogs=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceLogs!=null&&o.resourceLogs.length)for(var u=0;u<o.resourceLogs.length;++u)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(o.resourceLogs[u],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogsData;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceLogs!=null&&o.hasOwnProperty("resourceLogs")){if(!Array.isArray(o.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<o.resourceLogs.length;++r){var u=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(o.resourceLogs[r]);if(u)return"resourceLogs."+u}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogsData)return o;var r=new d.opentelemetry.proto.logs.v1.LogsData;if(o.resourceLogs){if(!Array.isArray(o.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var u=0;u<o.resourceLogs.length;++u){if(typeof o.resourceLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[u]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(o.resourceLogs[u])}}return r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.resourceLogs=[]),o.resourceLogs&&o.resourceLogs.length){u.resourceLogs=[];for(var l=0;l<o.resourceLogs.length;++l)u.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(o.resourceLogs[l],r)}return u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogsData"},a}(),i.ResourceLogs=function(){function a(s){if(this.scopeLogs=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.resource=null,a.prototype.scopeLogs=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeLogs!=null&&o.scopeLogs.length)for(var u=0;u<o.scopeLogs.length;++u)d.opentelemetry.proto.logs.v1.ScopeLogs.encode(o.scopeLogs[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ResourceLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeLogs&&l.scopeLogs.length||(l.scopeLogs=[]),l.scopeLogs.push(d.opentelemetry.proto.logs.v1.ScopeLogs.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeLogs!=null&&o.hasOwnProperty("scopeLogs")){if(!Array.isArray(o.scopeLogs))return"scopeLogs: array expected";for(var u=0;u<o.scopeLogs.length;++u){var r=d.opentelemetry.proto.logs.v1.ScopeLogs.verify(o.scopeLogs[u]);if(r)return"scopeLogs."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ResourceLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ResourceLogs;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeLogs){if(!Array.isArray(o.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var u=0;u<o.scopeLogs.length;++u){if(typeof o.scopeLogs[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[u]=d.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(o.scopeLogs[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.scopeLogs=[]),r.defaults&&(u.resource=null,u.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(u.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeLogs&&o.scopeLogs.length){u.scopeLogs=[];for(var l=0;l<o.scopeLogs.length;++l)u.scopeLogs[l]=d.opentelemetry.proto.logs.v1.ScopeLogs.toObject(o.scopeLogs[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),i.ScopeLogs=function(){function a(s){if(this.logRecords=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.scope=null,a.prototype.logRecords=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.logRecords!=null&&o.logRecords.length)for(var u=0;u<o.logRecords.length;++u)d.opentelemetry.proto.logs.v1.LogRecord.encode(o.logRecords[u],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ScopeLogs;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.logRecords&&l.logRecords.length||(l.logRecords=[]),l.logRecords.push(d.opentelemetry.proto.logs.v1.LogRecord.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.logRecords!=null&&o.hasOwnProperty("logRecords")){if(!Array.isArray(o.logRecords))return"logRecords: array expected";for(var u=0;u<o.logRecords.length;++u){var r=d.opentelemetry.proto.logs.v1.LogRecord.verify(o.logRecords[u]);if(r)return"logRecords."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ScopeLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ScopeLogs;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.logRecords){if(!Array.isArray(o.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var u=0;u<o.logRecords.length;++u){if(typeof o.logRecords[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[u]=d.opentelemetry.proto.logs.v1.LogRecord.fromObject(o.logRecords[u])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.logRecords=[]),r.defaults&&(u.scope=null,u.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(u.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.logRecords&&o.logRecords.length){u.logRecords=[];for(var l=0;l<o.logRecords.length;++l)u.logRecords[l]=d.opentelemetry.proto.logs.v1.LogRecord.toObject(o.logRecords[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(u.schemaUrl=o.schemaUrl),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),i.SeverityNumber=function(){var a={},s=Object.create(a);return s[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,s[a[1]="SEVERITY_NUMBER_TRACE"]=1,s[a[2]="SEVERITY_NUMBER_TRACE2"]=2,s[a[3]="SEVERITY_NUMBER_TRACE3"]=3,s[a[4]="SEVERITY_NUMBER_TRACE4"]=4,s[a[5]="SEVERITY_NUMBER_DEBUG"]=5,s[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,s[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,s[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,s[a[9]="SEVERITY_NUMBER_INFO"]=9,s[a[10]="SEVERITY_NUMBER_INFO2"]=10,s[a[11]="SEVERITY_NUMBER_INFO3"]=11,s[a[12]="SEVERITY_NUMBER_INFO4"]=12,s[a[13]="SEVERITY_NUMBER_WARN"]=13,s[a[14]="SEVERITY_NUMBER_WARN2"]=14,s[a[15]="SEVERITY_NUMBER_WARN3"]=15,s[a[16]="SEVERITY_NUMBER_WARN4"]=16,s[a[17]="SEVERITY_NUMBER_ERROR"]=17,s[a[18]="SEVERITY_NUMBER_ERROR2"]=18,s[a[19]="SEVERITY_NUMBER_ERROR3"]=19,s[a[20]="SEVERITY_NUMBER_ERROR4"]=20,s[a[21]="SEVERITY_NUMBER_FATAL"]=21,s[a[22]="SEVERITY_NUMBER_FATAL2"]=22,s[a[23]="SEVERITY_NUMBER_FATAL3"]=23,s[a[24]="SEVERITY_NUMBER_FATAL4"]=24,s}(),i.LogRecordFlags=function(){var a={},s=Object.create(a);return s[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,s[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,s}(),i.LogRecord=function(){function a(s){if(this.attributes=[],s)for(var o=Object.keys(s),r=0;r<o.length;++r)s[o[r]]!=null&&(this[o[r]]=s[o[r]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(9).fixed64(o.timeUnixNano),o.severityNumber!=null&&Object.hasOwnProperty.call(o,"severityNumber")&&r.uint32(16).int32(o.severityNumber),o.severityText!=null&&Object.hasOwnProperty.call(o,"severityText")&&r.uint32(26).string(o.severityText),o.body!=null&&Object.hasOwnProperty.call(o,"body")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.body,r.uint32(42).fork()).ldelim(),o.attributes!=null&&o.attributes.length)for(var u=0;u<o.attributes.length;++u)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[u],r.uint32(50).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(56).uint32(o.droppedAttributesCount),o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(69).fixed32(o.flags),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(74).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(82).bytes(o.spanId),o.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"observedTimeUnixNano")&&r.uint32(89).fixed64(o.observedTimeUnixNano),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var u=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogRecord;o.pos<u;){var c=o.uint32();switch(c>>>3){case 1:{l.timeUnixNano=o.fixed64();break}case 11:{l.observedTimeUnixNano=o.fixed64();break}case 2:{l.severityNumber=o.int32();break}case 3:{l.severityText=o.string();break}case 5:{l.body=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}case 6:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 7:{l.droppedAttributesCount=o.uint32();break}case 8:{l.flags=o.fixed32();break}case 9:{l.traceId=o.bytes();break}case 10:{l.spanId=o.bytes();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&!E.isInteger(o.observedTimeUnixNano)&&!(o.observedTimeUnixNano&&E.isInteger(o.observedTimeUnixNano.low)&&E.isInteger(o.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(o.severityNumber!=null&&o.hasOwnProperty("severityNumber"))switch(o.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(o.severityText!=null&&o.hasOwnProperty("severityText")&&!E.isString(o.severityText))return"severityText: string expected";if(o.body!=null&&o.hasOwnProperty("body")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.body);if(r)return"body."+r}if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var u=0;u<o.attributes.length;++u){var r=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[u]);if(r)return"attributes."+r}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId))?"traceId: buffer expected":o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId))?"spanId: buffer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogRecord)return o;var r=new d.opentelemetry.proto.logs.v1.LogRecord;switch(o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.observedTimeUnixNano!=null&&(E.Long?(r.observedTimeUnixNano=E.Long.fromValue(o.observedTimeUnixNano)).unsigned=!1:typeof o.observedTimeUnixNano=="string"?r.observedTimeUnixNano=parseInt(o.observedTimeUnixNano,10):typeof o.observedTimeUnixNano=="number"?r.observedTimeUnixNano=o.observedTimeUnixNano:typeof o.observedTimeUnixNano=="object"&&(r.observedTimeUnixNano=new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber())),o.severityNumber){default:if(typeof o.severityNumber=="number"){r.severityNumber=o.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24;break}if(o.severityText!=null&&(r.severityText=String(o.severityText)),o.body!=null){if(typeof o.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.body)}if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var u=0;u<o.attributes.length;++u){if(typeof o.attributes[u]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[u]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[u])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.flags!=null&&(r.flags=o.flags>>>0),o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),r},a.toObject=function(o,r){r||(r={});var u={};if((r.arrays||r.defaults)&&(u.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);u.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.timeUnixNano=r.longs===String?"0":0;if(u.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,u.severityText="",u.body=null,u.droppedAttributesCount=0,u.flags=0,r.bytes===String?u.traceId="":(u.traceId=[],r.bytes!==Array&&(u.traceId=E.newBuffer(u.traceId))),r.bytes===String?u.spanId="":(u.spanId=[],r.bytes!==Array&&(u.spanId=E.newBuffer(u.spanId))),E.Long){var l=new E.Long(0,0,!1);u.observedTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else u.observedTimeUnixNano=r.longs===String?"0":0}if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?u.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:u.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.severityNumber!=null&&o.hasOwnProperty("severityNumber")&&(u.severityNumber=r.enums===String?d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]===void 0?o.severityNumber:d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]:o.severityNumber),o.severityText!=null&&o.hasOwnProperty("severityText")&&(u.severityText=o.severityText),o.body!=null&&o.hasOwnProperty("body")&&(u.body=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.body,r)),o.attributes&&o.attributes.length){u.attributes=[];for(var c=0;c<o.attributes.length;++c)u.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(u.droppedAttributesCount=o.droppedAttributesCount),o.flags!=null&&o.hasOwnProperty("flags")&&(u.flags=o.flags),o.traceId!=null&&o.hasOwnProperty("traceId")&&(u.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(u.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&(typeof o.observedTimeUnixNano=="number"?u.observedTimeUnixNano=r.longs===String?String(o.observedTimeUnixNano):o.observedTimeUnixNano:u.observedTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.observedTimeUnixNano):r.longs===Number?new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber():o.observedTimeUnixNano),u},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),i}(),n}(),e}(),t}();aI.exports=d});var Hr,$W,KW,WW,zW,XW,JW,uI,lI,cI,fI=m(()=>{"use strict";Hr=Fe(sI());Uu();Du();Vu();$W=Hr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,KW=Hr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,WW=Hr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,zW=Hr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,XW=Hr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,JW=Hr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,uI={serializeRequest:function(t){var e=Gn(t);return KW.encode(e).finish()},deserializeResponse:function(t){return $W.decode(t)}},lI={serializeRequest:function(t){var e=Bn(t);return zW.encode(e).finish()},deserializeResponse:function(t){return WW.decode(t)}},cI={serializeRequest:function(t){var e=Vn(t);return JW.encode(e).finish()},deserializeResponse:function(t){return XW.decode(t)}}});var pI,Bu,dI,EI=m(()=>{"use strict";Uu();Du();Vu();pI={serializeRequest:function(t){var e=Vn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},Bu={serializeRequest:function(t){var e=Bn(t,{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},dI={serializeRequest:function(t){var e=Gn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}}});var fd={};nt(fd,{ESpanKind:()=>Lu,JsonLogsSerializer:()=>dI,JsonMetricsSerializer:()=>Bu,JsonTraceSerializer:()=>pI,ProtobufLogsSerializer:()=>uI,ProtobufMetricsSerializer:()=>lI,ProtobufTraceSerializer:()=>cI,createExportLogsServiceRequest:()=>Gn,createExportMetricsServiceRequest:()=>Bn,createExportTraceServiceRequest:()=>Vn,encodeAsLongBits:()=>Mu,encodeAsString:()=>cd,getOtlpEncoder:()=>dr,hrTimeToNanos:()=>xu,toLongBits:()=>ld});var Gu=m(()=>{"use strict";hi();ZL();Uu();Du();Vu();fI();EI()});var _I,SI=m(()=>{"use strict";_I="0.55.0"});var hI,ku,QW,ZW,ez,TI=m(()=>{"use strict";ed();Si();Gu();SI();hI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ku=function(){return ku=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},ku.apply(this,arguments)},QW={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+_I},ZW=function(t){hI(e,t);function e(n){return t.call(this,n,Bu,ku(ku({},QW),{"Content-Type":"application/json"}),"METRICS","v1/metrics")||this}return e}(Ei),ez=function(t){hI(e,t);function e(n){return t.call(this,new ZW(n),n)||this}return e}(Zp)});var vI=m(()=>{"use strict";TI()});var mI=m(()=>{"use strict";vI()});var yI={};nt(yI,{AggregationTemporalityPreference:()=>In,CumulativeTemporalitySelector:()=>Eu,DeltaTemporalitySelector:()=>Jp,LowMemoryTemporalitySelector:()=>Qp,OTLPMetricExporter:()=>ez,OTLPMetricExporterBase:()=>Zp});var AI=m(()=>{"use strict";mI();Xp();ed()});var OI=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.createServiceClientConstructor=void 0;var tz=eo();function rz(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:i=>i,requestDeserialize:i=>i,responseSerialize:i=>i,responseDeserialize:i=>i}};return tz.makeGenericClientConstructor(n,e)}Hu.createServiceClientConstructor=rz});var Fu=h(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.GrpcExporterTransport=bt.createEmptyMetadata=bt.createSslCredentials=bt.createInsecureCredentials=void 0;var nz=0,oz=2;function iz(t){return t==="gzip"?oz:nz}function az(){let{credentials:t}=eo();return t.createInsecure()}bt.createInsecureCredentials=az;function sz(t,e,n){let{credentials:i}=eo();return i.createSsl(t,e,n)}bt.createSslCredentials=sz;function uz(){let{Metadata:t}=eo();return new t}bt.createEmptyMetadata=uz;var pd=class{constructor(e){this._parameters=e}shutdown(){var e;(e=this._client)===null||e===void 0||e.close()}send(e,n){let i=Buffer.from(e);if(this._client==null){let{createServiceClientConstructor:a}=OI();try{this._metadata=this._parameters.metadata()}catch(o){return Promise.resolve({status:"failure",error:o})}let s=a(this._parameters.grpcPath,this._parameters.grpcName);try{this._client=new s(this._parameters.address,this._parameters.credentials(),{"grpc.default_compression_algorithm":iz(this._parameters.compression)})}catch(o){return Promise.resolve({status:"failure",error:o})}}return new Promise(a=>{let s=Date.now()+n;if(this._metadata==null)return a({error:new Error("metadata was null"),status:"failure"});this._client.export(i,this._metadata,{deadline:s},(o,r)=>{a(o?{status:"failure",error:o}:{data:r,status:"success"})})})}};bt.GrpcExporterTransport=pd});var gI=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.VERSION=void 0;Yu.VERSION="0.55.0"});var xI=h(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.getOtlpGrpcDefaultConfiguration=Er.mergeOtlpGrpcConfigurationWithDefaults=Er.validateAndNormalizeUrl=void 0;var PI=(Si(),Y(bu)),Ti=Fu(),lz=gI(),cz=L("url"),NI=(x(),Y(Pe));function bI(t){var e;t=t.trim(),t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let i=new cz.URL(t);return i.protocol==="unix:"?t:(i.pathname&&i.pathname!=="/"&&NI.diag.warn("URL path should not be set when using grpc, the path part of the URL will be ignored."),i.protocol!==""&&!(!((e=i.protocol)===null||e===void 0)&&e.match(/^(http)s?:$/))&&NI.diag.warn("URL protocol should be http(s)://. Using http://."),i.host)}Er.validateAndNormalizeUrl=bI;function RI(t,e){for(let[n,i]of Object.entries(e.getMap()))t.get(n).length<1&&t.set(n,i)}function fz(t,e,n){var i,a,s,o,r;let u=(a=(i=t.url)!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url;return Object.assign(Object.assign({},(0,PI.mergeOtlpSharedConfigurationWithDefaults)(t,e,n)),{metadata:()=>{var l,c,p,_;let f=n.metadata();return RI(f,(c=(l=t.metadata)===null||l===void 0?void 0:l.call(t).clone())!==null&&c!==void 0?c:(0,Ti.createEmptyMetadata)()),RI(f,(_=(p=e.metadata)===null||p===void 0?void 0:p.call(e))!==null&&_!==void 0?_:(0,Ti.createEmptyMetadata)()),f},url:bI(u),credentials:(r=(s=t.credentials)!==null&&s!==void 0?s:(o=e.credentials)===null||o===void 0?void 0:o.call(e,u))!==null&&r!==void 0?r:n.credentials(u)})}Er.mergeOtlpGrpcConfigurationWithDefaults=fz;function pz(){return Object.assign(Object.assign({},(0,PI.getSharedConfigurationDefaults)()),{metadata:()=>{let t=(0,Ti.createEmptyMetadata)();return t.set("User-Agent",`OTel-OTLP-Exporter-JavaScript/${lz.VERSION}`),t},url:"http://localhost:4317",credentials:t=>t.startsWith("http://")?()=>(0,Ti.createInsecureCredentials)():()=>(0,Ti.createSslCredentials)()})}Er.getOtlpGrpcDefaultConfiguration=pz});var wI=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getOtlpGrpcConfigurationFromEnv=void 0;var MI=(K(),Y(Ds)),vi=Fu(),dz=(Si(),Y(bu)),Ez=L("fs"),_z=L("path"),II=(x(),Y(Pe));function dd(t,e){if(t!=null&&t!=="")return t;if(e!=null&&e!=="")return e}function Sz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_HEADERS`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),s=MI.baggageUtils.parseKeyPairsIntoRecord(i),o=MI.baggageUtils.parseKeyPairsIntoRecord(a);if(Object.keys(s).length===0&&Object.keys(o).length===0)return;let r=Object.assign({},o,s),u=(0,vi.createEmptyMetadata)();for(let[l,c]of Object.entries(r))u.set(l,c);return u}function hz(t){let e=Sz(t);if(e!=null)return()=>e}function Tz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_ENDPOINT`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||n===void 0?void 0:n.trim();return dd(i,a)}function vz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_INSECURE`])===null||e===void 0?void 0:e.toLowerCase().trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_INSECURE)===null||n===void 0?void 0:n.toLowerCase().trim();return dd(i,a)==="true"}function Ed(t,e,n){var i,a;let s=(i=process.env[t])===null||i===void 0?void 0:i.trim(),o=(a=process.env[e])===null||a===void 0?void 0:a.trim(),r=dd(s,o);if(r!=null)try{return Ez.readFileSync(_z.resolve(process.cwd(),r))}catch{II.diag.warn(n);return}else return}function mz(t){return Ed(`OTEL_EXPORTER_OTLP_${t}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function yz(t){return Ed(`OTEL_EXPORTER_OTLP_${t}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function LI(t){return Ed(`OTEL_EXPORTER_OTLP_${t}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function CI(t){let e=yz(t),n=mz(t),i=LI(t),a=e!=null&&n!=null;return i!=null&&!a?(II.diag.warn("Client key and certificate must both be provided, but one was missing - attempting to create credentials from just the root certificate"),(0,vi.createSslCredentials)(LI(t))):(0,vi.createSslCredentials)(i,e,n)}function Az(t){return vz(t)?(0,vi.createInsecureCredentials)():CI(t)}function Oz(t){return Object.assign(Object.assign({},(0,dz.getSharedConfigurationFromEnvironment)(t)),{metadata:hz(t),url:Tz(t),credentials:e=>e.startsWith("http://")?()=>(0,vi.createInsecureCredentials)():e.startsWith("https://")?()=>CI(t):()=>Az(t)})}qu.getOtlpGrpcConfigurationFromEnv=Oz});var BI=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.OTLPGRPCExporterNodeBase=void 0;var UI=(x(),Y(Pe)),_d=(Si(),Y(bu)),DI=Fu(),VI=xI(),gz=wI(),Sd=class extends _d.OTLPExporterBase{constructor(e={},n,i,a,s){super(e);let o=e.credentials,r=(0,VI.mergeOtlpGrpcConfigurationWithDefaults)({url:e.url,metadata:()=>{var u;return(u=e.metadata)!==null&&u!==void 0?u:(0,DI.createEmptyMetadata)()},compression:e.compression,timeoutMillis:e.timeoutMillis,concurrencyLimit:e.concurrencyLimit,credentials:o!=null?()=>o:void 0},(0,gz.getOtlpGrpcConfigurationFromEnv)(s),(0,VI.getOtlpGrpcDefaultConfiguration)());this._serializer=n,this._timeoutMillis=r.timeoutMillis,this._concurrencyLimit=r.concurrencyLimit,e.headers&&UI.diag.warn("Headers cannot be set when using grpc"),this._transport=new DI.GrpcExporterTransport({address:r.url,compression:r.compression,credentials:r.credentials,grpcName:i,grpcPath:a,metadata:r.metadata})}onShutdown(){this._transport.shutdown()}send(e,n,i){if(this._shutdownOnce.isCalled){UI.diag.debug("Shutdown already started. Cannot send objects");return}let a=this._serializer.serializeRequest(e);if(a==null){i(new Error("Could not serialize message"));return}let s=this._transport.send(a,this._timeoutMillis).then(r=>{r.status==="success"?n():r.status==="failure"&&r.error?i(r.error):r.status==="retryable"?i(new _d.OTLPExporterError("Export failed with retryable status")):i(new _d.OTLPExporterError("Export failed with unknown error"))},i);this._sendingPromises.push(s);let o=()=>{let r=this._sendingPromises.indexOf(s);this._sendingPromises.splice(r,1)};s.then(o,o)}};ju.OTLPGRPCExporterNodeBase=Sd});var hd=h($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.OTLPGRPCExporterNodeBase=void 0;var Nz=BI();Object.defineProperty($u,"OTLPGRPCExporterNodeBase",{enumerable:!0,get:function(){return Nz.OTLPGRPCExporterNodeBase}})});var GI=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.OTLPMetricExporter=void 0;var Rz=(AI(),Y(yI)),Pz=hd(),bz=(Gu(),Y(fd)),Td=class extends Pz.OTLPGRPCExporterNodeBase{constructor(e){super(e,bz.ProtobufMetricsSerializer,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export","METRICS")}},vd=class extends Rz.OTLPMetricExporterBase{constructor(e){super(new Td(e),e)}};Ku.OTLPMetricExporter=vd});var kI=h(Fr=>{"use strict";var xz=Fr&&Fr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Mz=Fr&&Fr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&xz(e,t,n)};Object.defineProperty(Fr,"__esModule",{value:!0});Mz(GI(),Fr)});var Od=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.PrometheusSerializer=void 0;var Lz=(x(),Y(Pe)),Yr=(Ln(),Y(zp)),HI=(K(),Y(Ds));function zu(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function FI(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),zu(t).replace(/"/g,'\\"')}var Iz=/[^a-z0-9_]/gi,Cz=/_{2,}/g;function yd(t){return t.replace(Iz,"_").replace(Cz,"_")}function md(t,e){return!t.endsWith("_total")&&e===Yr.InstrumentType.COUNTER&&(t=t+"_total"),t}function wz(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function Uz(t){switch(t.dataPointType){case Yr.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case Yr.DataPointType.GAUGE:return"gauge";case Yr.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function Wu(t,e,n,i,a){let s=!1,o="";for(let[r,u]of Object.entries(e)){let l=yd(r);s=!0,o+=`${o.length>0?",":""}${l}="${FI(u)}"`}if(a)for(let[r,u]of Object.entries(a)){let l=yd(r);s=!0,o+=`${o.length>0?",":""}${l}="${FI(u)}"`}return s&&(t+=`{${o}}`),`${t} ${wz(n)}${i!==void 0?" "+String(i):""}
|
52
|
-
`}var
|
53
|
-
`;return n}_serializeMetricData(e){let n=
|
54
|
-
# UNIT ${n} ${
|
50
|
+
`,Wp(l,e),`To resolve the conflict:
|
51
|
+
`,zp(l,e))}}catch(c){i={error:c}}finally{try{r&&!r.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}return u},t}()});var KM,WM=m(()=>{"use strict";KM=function(){function t(e){this._backingStorages=e}return t.prototype.record=function(e,n,i,a){this._backingStorages.forEach(function(u){u.record(e,n,i,a)})},t}()});var zM,XM,JM=m(()=>{"use strict";M();fi();us();zM=function(){function t(e,n){this._instrumentName=e,this._valueType=n,this._buffer=new pt}return t.prototype.observe=function(e,n){if(n===void 0&&(n={}),typeof e!="number"){g.warn("non-number value provided to metric "+this._instrumentName+": "+e);return}this._valueType===Et.INT&&!Number.isInteger(e)&&(g.warn("INT value type cannot accept a floating-point value for "+this._instrumentName+", ignoring the fractional digits."),e=Math.trunc(e),!Number.isInteger(e))||this._buffer.set(n,e)},t}(),XM=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,i){if(i===void 0&&(i={}),!!ci(e)){var a=this._buffer.get(e);if(a==null&&(a=new pt,this._buffer.set(e,a)),typeof n!="number"){g.warn("non-number value provided to metric "+e._descriptor.name+": "+n);return}e._descriptor.valueType===Et.INT&&!Number.isInteger(n)&&(g.warn("INT value type cannot accept a floating-point value for "+e._descriptor.name+", ignoring the fractional digits."),n=Math.trunc(n),!Number.isInteger(n))||a.set(i,n)}},t}()});var Jp,Qp,QM,ZM,eL,tL=m(()=>{"use strict";M();us();JM();ft();Jp=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},Qp=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},QM=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},ZM=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},eL=function(){function t(){this._callbacks=[],this._batchCallbacks=[]}return t.prototype.addCallback=function(e,n){var i=this._findCallback(e,n);i>=0||this._callbacks.push({callback:e,instrument:n})},t.prototype.removeCallback=function(e,n){var i=this._findCallback(e,n);i<0||this._callbacks.splice(i,1)},t.prototype.addBatchCallback=function(e,n){var i=new Set(n.filter(ci));if(i.size===0){g.error("BatchObservableCallback is not associated with valid instruments",n);return}var a=this._findBatchCallback(e,i);a>=0||this._batchCallbacks.push({callback:e,instruments:i})},t.prototype.removeBatchCallback=function(e,n){var i=new Set(n.filter(ci)),a=this._findBatchCallback(e,i);a<0||this._batchCallbacks.splice(a,1)},t.prototype.observe=function(e,n){return Jp(this,void 0,void 0,function(){var i,a,u,o;return Qp(this,function(r){switch(r.label){case 0:return i=this._observeCallbacks(e,n),a=this._observeBatchCallbacks(e,n),[4,jx(ZM(ZM([],QM(i),!1),QM(a),!1))];case 1:return u=r.sent(),o=u.filter($x).map(function(s){return s.reason}),[2,o]}})})},t.prototype._observeCallbacks=function(e,n){var i=this;return this._callbacks.map(function(a){var u=a.callback,o=a.instrument;return Jp(i,void 0,void 0,function(){var r,s;return Qp(this,function(l){switch(l.label){case 0:return r=new zM(o._descriptor.name,o._descriptor.valueType),s=Promise.resolve(u(r)),n!=null&&(s=lr(s,n)),[4,s];case 1:return l.sent(),o._metricStorages.forEach(function(c){c.record(r._buffer,e)}),[2]}})})})},t.prototype._observeBatchCallbacks=function(e,n){var i=this;return this._batchCallbacks.map(function(a){var u=a.callback,o=a.instruments;return Jp(i,void 0,void 0,function(){var r,s;return Qp(this,function(l){switch(l.label){case 0:return r=new XM,s=Promise.resolve(u(r)),n!=null&&(s=lr(s,n)),[4,s];case 1:return l.sent(),o.forEach(function(c){var p=r._buffer.get(c);p!=null&&c._metricStorages.forEach(function(_){_.record(p,e)})}),[2]}})})})},t.prototype._findCallback=function(e,n){return this._callbacks.findIndex(function(i){return i.callback===e&&i.instrument===n})},t.prototype._findBatchCallback=function(e,n){return this._batchCallbacks.findIndex(function(i){return i.callback===e&&Kx(i.instruments,n)})},t}()});var I8,rL,nL=m(()=>{"use strict";qp();jp();Kp();I8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),rL=function(t){I8(e,t);function e(n,i,a,u,o){var r=t.call(this,n)||this;return r._attributesProcessor=a,r._aggregationCardinalityLimit=o,r._deltaMetricStorage=new ls(i,r._aggregationCardinalityLimit),r._temporalMetricStorage=new cs(i,u),r}return e.prototype.record=function(n,i,a,u){i=this._attributesProcessor.process(i,a),this._deltaMetricStorage.record(n,i,a,u)},e.prototype.collect=function(n,i){var a=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(n,this._instrumentDescriptor,a,i)},e}(ss)});var oL,Mn,C8,iL,w8,Zp=m(()=>{"use strict";oL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mn=function(){function t(){}return t.Noop=function(){return w8},t}(),C8=function(t){oL(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,i){return n},e}(Mn),iL=function(t){oL(e,t);function e(n){var i=t.call(this)||this;return i._allowedAttributeNames=n,i}return e.prototype.process=function(n,i){var a=this,u={};return Object.keys(n).filter(function(o){return a._allowedAttributeNames.includes(o)}).forEach(function(o){return u[o]=n[o]}),u},e}(Mn),w8=new C8});var D8,U8,V8,aL,uL=m(()=>{"use strict";Ut();GM();ft();YM();$M();WM();tL();nL();Zp();D8=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},U8=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},V8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},aL=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new jM,this.observableRegistry=new eL,this.meter=new BM(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,rL);return n.length===1?n[0]:new KM(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,FM);return n},t.prototype.collect=function(e,n,i){return D8(this,void 0,void 0,function(){var a,u,o;return U8(this,function(r){switch(r.label){case 0:return[4,this.observableRegistry.observe(n,i?.timeoutMillis)];case 1:return a=r.sent(),u=this.metricStorageRegistry.getStorages(e),u.length===0?[2,null]:(o=u.map(function(s){return s.collect(e,n)}).filter(Yx),o.length===0?[2,{errors:a}]:[2,{scopeMetrics:{scope:this._instrumentationScope,metrics:o},errors:a}])}})})},t.prototype._registerMetricStorage=function(e,n){var i=this,a=this._meterProviderSharedState.viewRegistry.findViews(e,this._instrumentationScope),u=a.map(function(s){var l=Jx(s,e),c=i.metricStorageRegistry.findOrUpdateCompatibleStorage(l);if(c!=null)return c;var p=s.aggregation.createAggregator(l),_=new n(l,p,s.attributesProcessor,i._meterProviderSharedState.metricCollectors,s.aggregationCardinalityLimit);return i.metricStorageRegistry.register(_),_});if(u.length===0){var o=this._meterProviderSharedState.selectAggregations(e.type),r=o.map(function(s){var l=V8(s,2),c=l[0],p=l[1],_=i.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(c,e);if(_!=null)return _;var f=p.createAggregator(e),S=c.selectCardinalityLimit(e.type),v=new n(e,f,Mn.Noop(),[c],S);return i.metricStorageRegistry.registerForCollector(c,v),v});u=u.concat(r)}return u},t}()});var B8,sL,lL=m(()=>{"use strict";ft();MM();uL();B8=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},sL=function(){function t(e){this.resource=e,this.viewRegistry=new xM,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=qx(e),i=this.meterSharedStates.get(n);return i==null&&(i=new aL(this,e),this.meterSharedStates.set(n,i)),i},t.prototype.selectAggregations=function(e){var n,i,a=[];try{for(var u=B8(this.metricCollectors),o=u.next();!o.done;o=u.next()){var r=o.value;a.push([r,r.selectAggregation(e)])}}catch(s){n={error:s}}finally{try{o&&!o.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return a},t}()});var fs,ps,G8,k8,cL,fL=m(()=>{"use strict";K();fs=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},ps=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},G8=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},k8=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},cL=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return fs(this,void 0,void 0,function(){var n,i,a,u,o=this;return ps(this,function(r){switch(r.label){case 0:return n=ge(Date.now()),i=[],a=[],u=Array.from(this._sharedState.meterSharedStates.values()).map(function(s){return fs(o,void 0,void 0,function(){var l;return ps(this,function(c){switch(c.label){case 0:return[4,s.collect(this,n,e)];case 1:return l=c.sent(),l?.scopeMetrics!=null&&i.push(l.scopeMetrics),l?.errors!=null&&a.push.apply(a,k8([],G8(l.errors),!1)),[2]}})})}),[4,Promise.all(u)];case 1:return r.sent(),[2,{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:i},errors:a}]}})})},t.prototype.forceFlush=function(e){return fs(this,void 0,void 0,function(){return ps(this,function(n){switch(n.label){case 0:return[4,this._metricReader.forceFlush(e)];case 1:return n.sent(),[2]}})})},t.prototype.shutdown=function(e){return fs(this,void 0,void 0,function(){return ps(this,function(n){switch(n.label){case 0:return[4,this._metricReader.shutdown(e)];case 1:return n.sent(),[2]}})})},t.prototype.selectAggregationTemporality=function(e){return this._metricReader.selectAggregationTemporality(e)},t.prototype.selectAggregation=function(e){return this._metricReader.selectAggregation(e)},t.prototype.selectCardinalityLimit=function(e){var n,i,a;return(a=(i=(n=this._metricReader).selectCardinalityLimit)===null||i===void 0?void 0:i.call(n,e))!==null&&a!==void 0?a:2e3},t}()});function H8(t,e){var n=e??Dt.empty();return t?Dt.default().merge(n):n}var pL,dL,EL,pi,_L=m(()=>{"use strict";M();Gu();lL();fL();pL=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},dL=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},EL=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};pi=function(){function t(e){var n,i,a,u,o;if(this._shutdown=!1,this._sharedState=new sL(H8((o=e?.mergeResourceWithDefaults)!==null&&o!==void 0?o:!0,e?.resource)),e?.views!=null&&e.views.length>0)try{for(var r=EL(e.views),s=r.next();!s.done;s=r.next()){var l=s.value;this._sharedState.viewRegistry.addView(l)}}catch(f){n={error:f}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}if(e?.readers!=null&&e.readers.length>0)try{for(var c=EL(e.readers),p=c.next();!p.done;p=c.next()){var _=p.value;this.addMetricReader(_)}}catch(f){a={error:f}}finally{try{p&&!p.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}}return t.prototype.getMeter=function(e,n,i){return n===void 0&&(n=""),i===void 0&&(i={}),this._shutdown?(g.warn("A shutdown MeterProvider cannot provide a Meter"),fE()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new cL(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return pL(this,void 0,void 0,function(){return dL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("shutdown may only be called once per MeterProvider"),[2]):(this._shutdown=!0,[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.shutdown(e)}))]);case 1:return n.sent(),[2]}})})},t.prototype.forceFlush=function(e){return pL(this,void 0,void 0,function(){return dL(this,function(n){switch(n.label){case 0:return this._shutdown?(g.warn("invalid attempt to force flush after MeterProvider shutdown"),[2]):[4,Promise.all(this._sharedState.metricCollectors.map(function(i){return i.forceFlush(e)}))];case 1:return n.sent(),[2]}})})},t}()});var F8,ds,Ln,Es=m(()=>{"use strict";F8=/[\^$\\.+?()[\]{}|]/g,ds=function(){function t(e){e==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(t.escapePattern(e)))}return t.prototype.match=function(e){return this._matchAll?!0:this._regexp.test(e)},t.escapePattern=function(e){return"^"+e.replace(F8,"\\$&").replace("*",".*")+"$"},t.hasWildcard=function(e){return e.includes("*")},t}(),Ln=function(){function t(e){this._matchAll=e===void 0,this._pattern=e}return t.prototype.match=function(e){return!!(this._matchAll||e===this._pattern)},t}()});var SL,hL=m(()=>{"use strict";Es();SL=function(){function t(e){var n;this._nameFilter=new ds((n=e?.name)!==null&&n!==void 0?n:"*"),this._type=e?.type,this._unitFilter=new Ln(e?.unit)}return t.prototype.getType=function(){return this._type},t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getUnitFilter=function(){return this._unitFilter},t}()});var TL,vL=m(()=>{"use strict";Es();TL=function(){function t(e){this._nameFilter=new Ln(e?.name),this._versionFilter=new Ln(e?.version),this._schemaUrlFilter=new Ln(e?.schemaUrl)}return t.prototype.getNameFilter=function(){return this._nameFilter},t.prototype.getVersionFilter=function(){return this._versionFilter},t.prototype.getSchemaUrlFilter=function(){return this._schemaUrlFilter},t}()});function Y8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var mL,yL=m(()=>{"use strict";Es();Zp();hL();vL();Zu();mL=function(){function t(e){var n;if(Y8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||ds.hasWildcard(e.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");e.attributeKeys!=null?this.attributesProcessor=new iL(e.attributeKeys):this.attributesProcessor=Mn.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:Ve.Default(),this.instrumentSelector=new SL({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new TL({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl}),this.aggregationCardinalityLimit=e.aggregationCardinalityLimit}return t}()});var ed={};Je(ed,{Aggregation:()=>Ve,AggregationTemporality:()=>Ne,ConsoleMetricExporter:()=>PM,DataPointType:()=>Re,DefaultAggregation:()=>Gp,DropAggregation:()=>Cp,ExplicitBucketHistogramAggregation:()=>Vp,ExponentialHistogramAggregation:()=>Bp,HistogramAggregation:()=>Up,InMemoryMetricExporter:()=>gM,InstrumentType:()=>C,LastValueAggregation:()=>Dp,MeterProvider:()=>pi,MetricReader:()=>ts,PeriodicExportingMetricReader:()=>os,SumAggregation:()=>wp,TimeoutError:()=>ui,View:()=>mL});var In=m(()=>{"use strict";ku();Pn();Yp();OM();NM();bM();Ut();_L();Zu();yL();ft()});var Br,td=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(Br||(Br={}))});var _s,AL=m(()=>{"use strict";_s=function(){function t(e){this._delegate=e}return t.prototype.export=function(e,n){this._delegate.export(e,n)},t.prototype.forceFlush=function(){return this._delegate.forceFlush()},t.prototype.shutdown=function(){return this._delegate.shutdown()},t}()});var q8,Gr,Ss=m(()=>{"use strict";q8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Gr=function(t){q8(e,t);function e(n,i,a){var u=t.call(this,n)||this;return u.name="OTLPExporterError",u.data=a,u.code=i,u}return e}(Error)});function j8(t){if(!Number.isNaN(t)&&Number.isFinite(t)&&t>0)return t;throw new Error("Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '"+t+"')")}function hs(t){if(t!=null)return function(){return t}}function Ts(t,e,n){var i,a,u,o,r,s;return{timeoutMillis:j8((a=(i=t.timeoutMillis)!==null&&i!==void 0?i:e.timeoutMillis)!==null&&a!==void 0?a:n.timeoutMillis),concurrencyLimit:(o=(u=t.concurrencyLimit)!==null&&u!==void 0?u:e.concurrencyLimit)!==null&&o!==void 0?o:n.concurrencyLimit,compression:(s=(r=t.compression)!==null&&r!==void 0?r:e.compression)!==null&&s!==void 0?s:n.compression}}function vs(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var di=m(()=>{"use strict"});var ms,OL=m(()=>{"use strict";(function(t){t.NONE="none",t.GZIP="gzip"})(ms||(ms={}))});function ys(t){return new W8(t.concurrencyLimit)}var $8,K8,W8,rd=m(()=>{"use strict";$8=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},K8=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},W8=function(){function t(e){this._sendingPromises=[],this._concurrencyLimit=e}return t.prototype.pushPromise=function(e){var n=this;if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(e);var i=function(){var a=n._sendingPromises.indexOf(e);n._sendingPromises.splice(a,1)};e.then(i,i)},t.prototype.hasReachedLimit=function(){return this._sendingPromises.length>=this._concurrencyLimit},t.prototype.awaitAll=function(){return $8(this,void 0,void 0,function(){return K8(this,function(e){switch(e.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return e.sent(),[2]}})})},t}()});function z8(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function gL(){return{handleResponse:function(t){t==null||!z8(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||g.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}var NL=m(()=>{"use strict";M()});function As(t,e){return new Q8(t.transport,t.serializer,gL(),t.promiseHandler,e.timeout)}var X8,J8,Q8,nd=m(()=>{"use strict";K();Ss();NL();M();X8=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},J8=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Q8=function(){function t(e,n,i,a,u){this._transport=e,this._serializer=n,this._responseHandler=i,this._promiseQueue=a,this._timeout=u,this._diagLogger=g.createComponentLogger({namespace:"OTLPExportDelegate"})}return t.prototype.export=function(e,n){var i=this;if(this._diagLogger.debug("items to be sent",e),this._promiseQueue.hasReachedLimit()){n({code:W.FAILED,error:new Error("Concurrent export limit reached")});return}var a=this._serializer.serializeRequest(e);if(a==null){n({code:W.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(a,this._timeout).then(function(u){if(u.status==="success"){if(u.data!=null)try{i._responseHandler.handleResponse(i._serializer.deserializeResponse(u.data))}catch(o){i._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,u.data)}n({code:W.SUCCESS});return}else if(u.status==="failure"&&u.error){n({code:W.FAILED,error:u.error});return}else u.status==="retryable"?n({code:W.FAILED,error:new Gr("Export failed with retryable status")}):n({code:W.FAILED,error:new Gr("Export failed with unknown error")})},function(u){return n({code:W.FAILED,error:u})}))},t.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},t.prototype.shutdown=function(){return X8(this,void 0,void 0,function(){return J8(this,function(e){switch(e.label){case 0:return this._diagLogger.debug("shutdown started"),[4,this.forceFlush()];case 1:return e.sent(),this._transport.shutdown(),[2]}})})},t}()});function RL(t,e,n){return As({transport:n,serializer:e,promiseHandler:ys(t)},{timeout:t.timeoutMillis})}var PL=m(()=>{"use strict";rd();nd()});var Os={};Je(Os,{CompressionAlgorithm:()=>ms,OTLPExporterBase:()=>_s,OTLPExporterError:()=>Gr,createOtlpNetworkExportDelegate:()=>RL,getSharedConfigurationDefaults:()=>vs,mergeOtlpSharedConfigurationWithDefaults:()=>Ts});var Ei=m(()=>{"use strict";AL();Ss();di();OL();PL()});function eW(){var t=Oe(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?_i:e==="delta"?gs:e==="lowmemory"?Ns:(g.warn("OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '"+t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE+"', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead."),_i)}function tW(t){return t!=null?t===Br.DELTA?gs:t===Br.LOWMEMORY?Ns:_i:eW()}function rW(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return Ve.Default()}}var Z8,_i,gs,Ns,Rs,od=m(()=>{"use strict";K();In();td();Ei();M();Z8=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),_i=function(){return Ne.CUMULATIVE},gs=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return Ne.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return Ne.CUMULATIVE}},Ns=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return Ne.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return Ne.CUMULATIVE}};Rs=function(t){Z8(e,t);function e(n,i){var a=t.call(this,n)||this;return a._aggregationSelector=rW(i),a._aggregationTemporalitySelector=tW(i?.temporalityPreference),a}return e.prototype.selectAggregation=function(n){return this._aggregationSelector(n)},e.prototype.selectAggregationTemporality=function(n){return this._aggregationTemporalitySelector(n)},e}(_s)});function Ps(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function id(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function bs(t){var e=Ps(t);return id(e)}function ad(t){var e=Ps(t);return e.toString()}function bL(t){return t}function xL(t){if(t!==void 0)return ir(t)}function fr(t){var e,n;if(t===void 0)return oW;var i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?bs:nW,encodeSpanContext:a?bL:ir,encodeOptionalSpanContext:a?bL:xL}}var nW,oW,Si=m(()=>{"use strict";K();nW=typeof BigInt<"u"?ad:bu;oW={encodeHrTime:bs,encodeSpanContext:ir,encodeOptionalSpanContext:xL}});var xs,ML=m(()=>{"use strict";(function(t){t[t.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",t[t.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",t[t.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",t[t.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",t[t.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",t[t.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(xs||(xs={}))});function Cn(t){return{name:t.name,version:t.version}}function Pt(t){return Object.keys(t).map(function(e){return Ms(e,t[e])})}function Ms(t,e){return{key:t,value:Ls(e)}}function Ls(t){var e=typeof t;return e==="string"?{stringValue:t}:e==="number"?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:e==="boolean"?{boolValue:t}:t instanceof Uint8Array?{bytesValue:t}:Array.isArray(t)?{arrayValue:{values:t.map(Ls)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var i=iW(n,2),a=i[0],u=i[1];return Ms(a,u)})}}:{}}var iW,wn=m(()=>{"use strict";iW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}});function LL(t,e){var n,i=t.spanContext(),a=t.status;return{traceId:e.encodeSpanContext(i.traceId),spanId:e.encodeSpanContext(i.spanId),parentSpanId:e.encodeOptionalSpanContext(t.parentSpanId),traceState:(n=i.traceState)===null||n===void 0?void 0:n.serialize(),name:t.name,kind:t.kind==null?0:t.kind+1,startTimeUnixNano:e.encodeHrTime(t.startTime),endTimeUnixNano:e.encodeHrTime(t.endTime),attributes:Pt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(u){return uW(u,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(u){return aW(u,e)}),droppedLinksCount:t.droppedLinksCount}}function aW(t,e){var n;return{attributes:t.attributes?Pt(t.attributes):[],spanId:e.encodeSpanContext(t.context.spanId),traceId:e.encodeSpanContext(t.context.traceId),traceState:(n=t.context.traceState)===null||n===void 0?void 0:n.serialize(),droppedAttributesCount:t.droppedAttributesCount||0}}function uW(t,e){return{attributes:t.attributes?Pt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}var IL=m(()=>{"use strict";wn()});function Dn(t){return{attributes:Pt(t.attributes),droppedAttributesCount:0}}var Is=m(()=>{"use strict";wn()});function Un(t,e){var n=fr(e);return{resourceSpans:fW(t,n)}}function cW(t){var e,n,i=new Map;try{for(var a=sW(t),u=a.next();!u.done;u=a.next()){var o=u.value,r=i.get(o.resource);r||(r=new Map,i.set(o.resource,r));var s=o.instrumentationLibrary.name+"@"+(o.instrumentationLibrary.version||"")+":"+(o.instrumentationLibrary.schemaUrl||""),l=r.get(s);l||(l=[],r.set(s,l)),l.push(o)}}catch(c){e={error:c}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function fW(t,e){for(var n=cW(t),i=[],a=n.entries(),u=a.next();!u.done;){for(var o=lW(u.value,2),r=o[0],s=o[1],l=[],c=s.values(),p=c.next();!p.done;){var _=p.value;if(_.length>0){var f=_.map(function(v){return LL(v,e)});l.push({scope:Cn(_[0].instrumentationLibrary),spans:f,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}p=c.next()}var S={resource:Dn(r),scopeSpans:l,schemaUrl:void 0};i.push(S),u=a.next()}return i}var sW,lW,Cs=m(()=>{"use strict";IL();Si();wn();Is();sW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lW=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}});function wL(t,e){var n=fr(e);return{resource:Dn(t.resource),schemaUrl:void 0,scopeMetrics:pW(t.scopeMetrics,n)}}function pW(t,e){return Array.from(t.map(function(n){return{scope:Cn(n.scope),metrics:n.metrics.map(function(i){return dW(i,e)}),schemaUrl:n.scope.schemaUrl}}))}function dW(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=hW(t.aggregationTemporality);switch(t.dataPointType){case Re.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:CL(t,e)};break;case Re.GAUGE:n.gauge={dataPoints:CL(t,e)};break;case Re.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:_W(t,e)};break;case Re.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:SW(t,e)};break}return n}function EW(t,e,n){var i={attributes:Pt(t.attributes),startTimeUnixNano:n.encodeHrTime(t.startTime),timeUnixNano:n.encodeHrTime(t.endTime)};switch(e){case Et.INT:i.asInt=t.value;break;case Et.DOUBLE:i.asDouble=t.value;break}return i}function CL(t,e){return t.dataPoints.map(function(n){return EW(n,t.descriptor.valueType,e)})}function _W(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Pt(n.attributes),bucketCounts:i.buckets.counts,explicitBounds:i.buckets.boundaries,count:i.count,sum:i.sum,min:i.min,max:i.max,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function SW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Pt(n.attributes),count:i.count,min:i.min,max:i.max,sum:i.sum,positive:{offset:i.positive.offset,bucketCounts:i.positive.bucketCounts},negative:{offset:i.negative.offset,bucketCounts:i.negative.bucketCounts},scale:i.scale,zeroCount:i.zeroCount,startTimeUnixNano:e.encodeHrTime(n.startTime),timeUnixNano:e.encodeHrTime(n.endTime)}})}function hW(t){switch(t){case Ne.DELTA:return 1;case Ne.CUMULATIVE:return 2}}var DL=m(()=>{"use strict";M();In();Si();wn();Is()});function Vn(t,e){return{resourceMetrics:t.map(function(n){return wL(n,e)})}}var ws=m(()=>{"use strict";DL()});function Bn(t,e){var n=fr(e);return{resourceLogs:mW(t,n)}}function vW(t){var e,n,i=new Map;try{for(var a=TW(t),u=a.next();!u.done;u=a.next()){var o=u.value,r=o.resource,s=o.instrumentationScope,l=s.name,c=s.version,p=c===void 0?"":c,_=s.schemaUrl,f=_===void 0?"":_,S=i.get(r);S||(S=new Map,i.set(r,S));var v=l+"@"+p+":"+f,T=S.get(v);T||(T=[],S.set(v,T)),T.push(o)}}catch(A){e={error:A}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i}function mW(t,e){var n=vW(t);return Array.from(n,function(i){var a=UL(i,2),u=a[0],o=a[1];return{resource:Dn(u),scopeLogs:Array.from(o,function(r){var s=UL(r,2),l=s[1];return{scope:Cn(l[0].instrumentationScope),logRecords:l.map(function(c){return yW(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function yW(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:Ls(t.body),attributes:AW(t.attributes),droppedAttributesCount:t.droppedAttributesCount,flags:(n=t.spanContext)===null||n===void 0?void 0:n.traceFlags,traceId:e.encodeOptionalSpanContext((i=t.spanContext)===null||i===void 0?void 0:i.traceId),spanId:e.encodeOptionalSpanContext((a=t.spanContext)===null||a===void 0?void 0:a.spanId)}}function AW(t){return Object.keys(t).map(function(e){return Ms(e,t[e])})}var TW,UL,Ds=m(()=>{"use strict";Si();wn();Is();TW=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},UL=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}});var BL=h((Nse,VL)=>{"use strict";var I=HD(),y=I.Reader,V=I.Writer,E=I.util,d=I.roots.default||(I.roots.default={});d.opentelemetry=function(){var t={};return t.proto=function(){var e={};return e.common=function(){var n={};return n.v1=function(){var i={};return i.AnyValue=function(){function a(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.stringValue=null,a.prototype.boolValue=null,a.prototype.intValue=null,a.prototype.doubleValue=null,a.prototype.arrayValue=null,a.prototype.kvlistValue=null,a.prototype.bytesValue=null;var u;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(u=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"]),set:E.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){return s||(s=V.create()),r.stringValue!=null&&Object.hasOwnProperty.call(r,"stringValue")&&s.uint32(10).string(r.stringValue),r.boolValue!=null&&Object.hasOwnProperty.call(r,"boolValue")&&s.uint32(16).bool(r.boolValue),r.intValue!=null&&Object.hasOwnProperty.call(r,"intValue")&&s.uint32(24).int64(r.intValue),r.doubleValue!=null&&Object.hasOwnProperty.call(r,"doubleValue")&&s.uint32(33).double(r.doubleValue),r.arrayValue!=null&&Object.hasOwnProperty.call(r,"arrayValue")&&d.opentelemetry.proto.common.v1.ArrayValue.encode(r.arrayValue,s.uint32(42).fork()).ldelim(),r.kvlistValue!=null&&Object.hasOwnProperty.call(r,"kvlistValue")&&d.opentelemetry.proto.common.v1.KeyValueList.encode(r.kvlistValue,s.uint32(50).fork()).ldelim(),r.bytesValue!=null&&Object.hasOwnProperty.call(r,"bytesValue")&&s.uint32(58).bytes(r.bytesValue),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.common.v1.AnyValue;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.stringValue=r.string();break}case 2:{c.boolValue=r.bool();break}case 3:{c.intValue=r.int64();break}case 4:{c.doubleValue=r.double();break}case 5:{c.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.decode(r,r.uint32());break}case 6:{c.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.decode(r,r.uint32());break}case 7:{c.bytesValue=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(s.value=1,!E.isString(r.stringValue)))return"stringValue: string expected";if(r.boolValue!=null&&r.hasOwnProperty("boolValue")){if(s.value===1)return"value: multiple values";if(s.value=1,typeof r.boolValue!="boolean")return"boolValue: boolean expected"}if(r.intValue!=null&&r.hasOwnProperty("intValue")){if(s.value===1)return"value: multiple values";if(s.value=1,!E.isInteger(r.intValue)&&!(r.intValue&&E.isInteger(r.intValue.low)&&E.isInteger(r.intValue.high)))return"intValue: integer|Long expected"}if(r.doubleValue!=null&&r.hasOwnProperty("doubleValue")){if(s.value===1)return"value: multiple values";if(s.value=1,typeof r.doubleValue!="number")return"doubleValue: number expected"}if(r.arrayValue!=null&&r.hasOwnProperty("arrayValue")){if(s.value===1)return"value: multiple values";s.value=1;{var l=d.opentelemetry.proto.common.v1.ArrayValue.verify(r.arrayValue);if(l)return"arrayValue."+l}}if(r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")){if(s.value===1)return"value: multiple values";s.value=1;{var l=d.opentelemetry.proto.common.v1.KeyValueList.verify(r.kvlistValue);if(l)return"kvlistValue."+l}}if(r.bytesValue!=null&&r.hasOwnProperty("bytesValue")){if(s.value===1)return"value: multiple values";if(s.value=1,!(r.bytesValue&&typeof r.bytesValue.length=="number"||E.isString(r.bytesValue)))return"bytesValue: buffer expected"}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.common.v1.AnyValue)return r;var s=new d.opentelemetry.proto.common.v1.AnyValue;if(r.stringValue!=null&&(s.stringValue=String(r.stringValue)),r.boolValue!=null&&(s.boolValue=!!r.boolValue),r.intValue!=null&&(E.Long?(s.intValue=E.Long.fromValue(r.intValue)).unsigned=!1:typeof r.intValue=="string"?s.intValue=parseInt(r.intValue,10):typeof r.intValue=="number"?s.intValue=r.intValue:typeof r.intValue=="object"&&(s.intValue=new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber())),r.doubleValue!=null&&(s.doubleValue=Number(r.doubleValue)),r.arrayValue!=null){if(typeof r.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");s.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.fromObject(r.arrayValue)}if(r.kvlistValue!=null){if(typeof r.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");s.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.fromObject(r.kvlistValue)}return r.bytesValue!=null&&(typeof r.bytesValue=="string"?E.base64.decode(r.bytesValue,s.bytesValue=E.newBuffer(E.base64.length(r.bytesValue)),0):r.bytesValue.length>=0&&(s.bytesValue=r.bytesValue)),s},a.toObject=function(r,s){s||(s={});var l={};return r.stringValue!=null&&r.hasOwnProperty("stringValue")&&(l.stringValue=r.stringValue,s.oneofs&&(l.value="stringValue")),r.boolValue!=null&&r.hasOwnProperty("boolValue")&&(l.boolValue=r.boolValue,s.oneofs&&(l.value="boolValue")),r.intValue!=null&&r.hasOwnProperty("intValue")&&(typeof r.intValue=="number"?l.intValue=s.longs===String?String(r.intValue):r.intValue:l.intValue=s.longs===String?E.Long.prototype.toString.call(r.intValue):s.longs===Number?new E.LongBits(r.intValue.low>>>0,r.intValue.high>>>0).toNumber():r.intValue,s.oneofs&&(l.value="intValue")),r.doubleValue!=null&&r.hasOwnProperty("doubleValue")&&(l.doubleValue=s.json&&!isFinite(r.doubleValue)?String(r.doubleValue):r.doubleValue,s.oneofs&&(l.value="doubleValue")),r.arrayValue!=null&&r.hasOwnProperty("arrayValue")&&(l.arrayValue=d.opentelemetry.proto.common.v1.ArrayValue.toObject(r.arrayValue,s),s.oneofs&&(l.value="arrayValue")),r.kvlistValue!=null&&r.hasOwnProperty("kvlistValue")&&(l.kvlistValue=d.opentelemetry.proto.common.v1.KeyValueList.toObject(r.kvlistValue,s),s.oneofs&&(l.value="kvlistValue")),r.bytesValue!=null&&r.hasOwnProperty("bytesValue")&&(l.bytesValue=s.bytes===String?E.base64.encode(r.bytesValue,0,r.bytesValue.length):s.bytes===Array?Array.prototype.slice.call(r.bytesValue):r.bytesValue,s.oneofs&&(l.value="bytesValue")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.common.v1.AnyValue"},a}(),i.ArrayValue=function(){function a(u){if(this.values=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var s=0;s<o.values.length;++s)d.opentelemetry.proto.common.v1.AnyValue.encode(o.values[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.ArrayValue;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var s=d.opentelemetry.proto.common.v1.AnyValue.verify(o.values[r]);if(s)return"values."+s}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.ArrayValue)return o;var r=new d.opentelemetry.proto.common.v1.ArrayValue;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: array expected");r.values=[];for(var s=0;s<o.values.length;++s){if(typeof o.values[s]!="object")throw TypeError(".opentelemetry.proto.common.v1.ArrayValue.values: object expected");r.values[s]=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.values[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.values=[]),o.values&&o.values.length){s.values=[];for(var l=0;l<o.values.length;++l)s.values[l]=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.values[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.ArrayValue"},a}(),i.KeyValueList=function(){function a(u){if(this.values=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.values=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.values!=null&&o.values.length)for(var s=0;s<o.values.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(o.values[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValueList;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.values&&l.values.length||(l.values=[]),l.values.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.values!=null&&o.hasOwnProperty("values")){if(!Array.isArray(o.values))return"values: array expected";for(var r=0;r<o.values.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(o.values[r]);if(s)return"values."+s}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValueList)return o;var r=new d.opentelemetry.proto.common.v1.KeyValueList;if(o.values){if(!Array.isArray(o.values))throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: array expected");r.values=[];for(var s=0;s<o.values.length;++s){if(typeof o.values[s]!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValueList.values: object expected");r.values[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.values[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.values=[]),o.values&&o.values.length){s.values=[];for(var l=0;l<o.values.length;++l)s.values[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.values[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValueList"},a}(),i.KeyValue=function(){function a(u){if(u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.key=null,a.prototype.value=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.key!=null&&Object.hasOwnProperty.call(o,"key")&&r.uint32(10).string(o.key),o.value!=null&&Object.hasOwnProperty.call(o,"value")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.value,r.uint32(18).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.KeyValue;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.key=o.string();break}case 2:{l.value=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.key!=null&&o.hasOwnProperty("key")&&!E.isString(o.key))return"key: string expected";if(o.value!=null&&o.hasOwnProperty("value")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.value);if(r)return"value."+r}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.KeyValue)return o;var r=new d.opentelemetry.proto.common.v1.KeyValue;if(o.key!=null&&(r.key=String(o.key)),o.value!=null){if(typeof o.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");r.value=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.value)}return r},a.toObject=function(o,r){r||(r={});var s={};return r.defaults&&(s.key="",s.value=null),o.key!=null&&o.hasOwnProperty("key")&&(s.key=o.key),o.value!=null&&o.hasOwnProperty("value")&&(s.value=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.value,r)),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.KeyValue"},a}(),i.InstrumentationScope=function(){function a(u){if(this.attributes=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.name=null,a.prototype.version=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(10).string(o.name),o.version!=null&&Object.hasOwnProperty.call(o,"version")&&r.uint32(18).string(o.version),o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(26).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(32).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.common.v1.InstrumentationScope;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.name=o.string();break}case 2:{l.version=o.string();break}case 3:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 4:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.version!=null&&o.hasOwnProperty("version")&&!E.isString(o.version))return"version: string expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(s)return"attributes."+s}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.common.v1.InstrumentationScope)return o;var r=new d.opentelemetry.proto.common.v1.InstrumentationScope;if(o.name!=null&&(r.name=String(o.name)),o.version!=null&&(r.version=String(o.version)),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.common.v1.InstrumentationScope.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[]),r.defaults&&(s.name="",s.version="",s.droppedAttributesCount=0),o.name!=null&&o.hasOwnProperty("name")&&(s.name=o.name),o.version!=null&&o.hasOwnProperty("version")&&(s.version=o.version),o.attributes&&o.attributes.length){s.attributes=[];for(var l=0;l<o.attributes.length;++l)s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=o.droppedAttributesCount),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.common.v1.InstrumentationScope"},a}(),i}(),n}(),e.resource=function(){var n={};return n.v1=function(){var i={};return i.Resource=function(){function a(u){if(this.attributes=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(10).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(16).uint32(o.droppedAttributesCount),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.resource.v1.Resource;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.droppedAttributesCount=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(s)return"attributes."+s}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.resource.v1.Resource)return o;var r=new d.opentelemetry.proto.resource.v1.Resource;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.resource.v1.Resource.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[]),r.defaults&&(s.droppedAttributesCount=0),o.attributes&&o.attributes.length){s.attributes=[];for(var l=0;l<o.attributes.length;++l)s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[l],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=o.droppedAttributesCount),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.resource.v1.Resource"},a}(),i}(),n}(),e.trace=function(){var n={};return n.v1=function(){var i={};return i.TracesData=function(){function a(u){if(this.resourceSpans=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.resourceSpans=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceSpans!=null&&o.resourceSpans.length)for(var s=0;s<o.resourceSpans.length;++s)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(o.resourceSpans[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.TracesData;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceSpans&&l.resourceSpans.length||(l.resourceSpans=[]),l.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceSpans!=null&&o.hasOwnProperty("resourceSpans")){if(!Array.isArray(o.resourceSpans))return"resourceSpans: array expected";for(var r=0;r<o.resourceSpans.length;++r){var s=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(o.resourceSpans[r]);if(s)return"resourceSpans."+s}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.TracesData)return o;var r=new d.opentelemetry.proto.trace.v1.TracesData;if(o.resourceSpans){if(!Array.isArray(o.resourceSpans))throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: array expected");r.resourceSpans=[];for(var s=0;s<o.resourceSpans.length;++s){if(typeof o.resourceSpans[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.TracesData.resourceSpans: object expected");r.resourceSpans[s]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(o.resourceSpans[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.resourceSpans=[]),o.resourceSpans&&o.resourceSpans.length){s.resourceSpans=[];for(var l=0;l<o.resourceSpans.length;++l)s.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(o.resourceSpans[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.TracesData"},a}(),i.ResourceSpans=function(){function a(u){if(this.scopeSpans=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.resource=null,a.prototype.scopeSpans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeSpans!=null&&o.scopeSpans.length)for(var s=0;s<o.scopeSpans.length;++s)d.opentelemetry.proto.trace.v1.ScopeSpans.encode(o.scopeSpans[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ResourceSpans;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeSpans&&l.scopeSpans.length||(l.scopeSpans=[]),l.scopeSpans.push(d.opentelemetry.proto.trace.v1.ScopeSpans.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeSpans!=null&&o.hasOwnProperty("scopeSpans")){if(!Array.isArray(o.scopeSpans))return"scopeSpans: array expected";for(var s=0;s<o.scopeSpans.length;++s){var r=d.opentelemetry.proto.trace.v1.ScopeSpans.verify(o.scopeSpans[s]);if(r)return"scopeSpans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ResourceSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ResourceSpans;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeSpans){if(!Array.isArray(o.scopeSpans))throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: array expected");r.scopeSpans=[];for(var s=0;s<o.scopeSpans.length;++s){if(typeof o.scopeSpans[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ResourceSpans.scopeSpans: object expected");r.scopeSpans[s]=d.opentelemetry.proto.trace.v1.ScopeSpans.fromObject(o.scopeSpans[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.scopeSpans=[]),r.defaults&&(s.resource=null,s.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(s.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeSpans&&o.scopeSpans.length){s.scopeSpans=[];for(var l=0;l<o.scopeSpans.length;++l)s.scopeSpans[l]=d.opentelemetry.proto.trace.v1.ScopeSpans.toObject(o.scopeSpans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ResourceSpans"},a}(),i.ScopeSpans=function(){function a(u){if(this.spans=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.scope=null,a.prototype.spans=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.spans!=null&&o.spans.length)for(var s=0;s<o.spans.length;++s)d.opentelemetry.proto.trace.v1.Span.encode(o.spans[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.ScopeSpans;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.spans&&l.spans.length||(l.spans=[]),l.spans.push(d.opentelemetry.proto.trace.v1.Span.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.spans!=null&&o.hasOwnProperty("spans")){if(!Array.isArray(o.spans))return"spans: array expected";for(var s=0;s<o.spans.length;++s){var r=d.opentelemetry.proto.trace.v1.Span.verify(o.spans[s]);if(r)return"spans."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.ScopeSpans)return o;var r=new d.opentelemetry.proto.trace.v1.ScopeSpans;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.spans){if(!Array.isArray(o.spans))throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: array expected");r.spans=[];for(var s=0;s<o.spans.length;++s){if(typeof o.spans[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.ScopeSpans.spans: object expected");r.spans[s]=d.opentelemetry.proto.trace.v1.Span.fromObject(o.spans[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.spans=[]),r.defaults&&(s.scope=null,s.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(s.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.spans&&o.spans.length){s.spans=[];for(var l=0;l<o.spans.length;++l)s.spans[l]=d.opentelemetry.proto.trace.v1.Span.toObject(o.spans[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.ScopeSpans"},a}(),i.Span=function(){function a(u){if(this.attributes=[],this.events=[],this.links=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.traceId=null,a.prototype.spanId=null,a.prototype.traceState=null,a.prototype.parentSpanId=null,a.prototype.name=null,a.prototype.kind=null,a.prototype.startTimeUnixNano=null,a.prototype.endTimeUnixNano=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.events=E.emptyArray,a.prototype.droppedEventsCount=null,a.prototype.links=E.emptyArray,a.prototype.droppedLinksCount=null,a.prototype.status=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(10).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(18).bytes(o.spanId),o.traceState!=null&&Object.hasOwnProperty.call(o,"traceState")&&r.uint32(26).string(o.traceState),o.parentSpanId!=null&&Object.hasOwnProperty.call(o,"parentSpanId")&&r.uint32(34).bytes(o.parentSpanId),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&r.uint32(42).string(o.name),o.kind!=null&&Object.hasOwnProperty.call(o,"kind")&&r.uint32(48).int32(o.kind),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(57).fixed64(o.startTimeUnixNano),o.endTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"endTimeUnixNano")&&r.uint32(65).fixed64(o.endTimeUnixNano),o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(74).fork()).ldelim();if(o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(80).uint32(o.droppedAttributesCount),o.events!=null&&o.events.length)for(var s=0;s<o.events.length;++s)d.opentelemetry.proto.trace.v1.Span.Event.encode(o.events[s],r.uint32(90).fork()).ldelim();if(o.droppedEventsCount!=null&&Object.hasOwnProperty.call(o,"droppedEventsCount")&&r.uint32(96).uint32(o.droppedEventsCount),o.links!=null&&o.links.length)for(var s=0;s<o.links.length;++s)d.opentelemetry.proto.trace.v1.Span.Link.encode(o.links[s],r.uint32(106).fork()).ldelim();return o.droppedLinksCount!=null&&Object.hasOwnProperty.call(o,"droppedLinksCount")&&r.uint32(112).uint32(o.droppedLinksCount),o.status!=null&&Object.hasOwnProperty.call(o,"status")&&d.opentelemetry.proto.trace.v1.Status.encode(o.status,r.uint32(122).fork()).ldelim(),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Span;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.traceId=o.bytes();break}case 2:{l.spanId=o.bytes();break}case 3:{l.traceState=o.string();break}case 4:{l.parentSpanId=o.bytes();break}case 5:{l.name=o.string();break}case 6:{l.kind=o.int32();break}case 7:{l.startTimeUnixNano=o.fixed64();break}case 8:{l.endTimeUnixNano=o.fixed64();break}case 9:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 10:{l.droppedAttributesCount=o.uint32();break}case 11:{l.events&&l.events.length||(l.events=[]),l.events.push(d.opentelemetry.proto.trace.v1.Span.Event.decode(o,o.uint32()));break}case 12:{l.droppedEventsCount=o.uint32();break}case 13:{l.links&&l.links.length||(l.links=[]),l.links.push(d.opentelemetry.proto.trace.v1.Span.Link.decode(o,o.uint32()));break}case 14:{l.droppedLinksCount=o.uint32();break}case 15:{l.status=d.opentelemetry.proto.trace.v1.Status.decode(o,o.uint32());break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId)))return"traceId: buffer expected";if(o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId)))return"spanId: buffer expected";if(o.traceState!=null&&o.hasOwnProperty("traceState")&&!E.isString(o.traceState))return"traceState: string expected";if(o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&!(o.parentSpanId&&typeof o.parentSpanId.length=="number"||E.isString(o.parentSpanId)))return"parentSpanId: buffer expected";if(o.name!=null&&o.hasOwnProperty("name")&&!E.isString(o.name))return"name: string expected";if(o.kind!=null&&o.hasOwnProperty("kind"))switch(o.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&!E.isInteger(o.endTimeUnixNano)&&!(o.endTimeUnixNano&&E.isInteger(o.endTimeUnixNano.low)&&E.isInteger(o.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(s)return"attributes."+s}}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount))return"droppedAttributesCount: integer expected";if(o.events!=null&&o.hasOwnProperty("events")){if(!Array.isArray(o.events))return"events: array expected";for(var r=0;r<o.events.length;++r){var s=d.opentelemetry.proto.trace.v1.Span.Event.verify(o.events[r]);if(s)return"events."+s}}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&!E.isInteger(o.droppedEventsCount))return"droppedEventsCount: integer expected";if(o.links!=null&&o.hasOwnProperty("links")){if(!Array.isArray(o.links))return"links: array expected";for(var r=0;r<o.links.length;++r){var s=d.opentelemetry.proto.trace.v1.Span.Link.verify(o.links[r]);if(s)return"links."+s}}if(o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&!E.isInteger(o.droppedLinksCount))return"droppedLinksCount: integer expected";if(o.status!=null&&o.hasOwnProperty("status")){var s=d.opentelemetry.proto.trace.v1.Status.verify(o.status);if(s)return"status."+s}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Span)return o;var r=new d.opentelemetry.proto.trace.v1.Span;switch(o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),o.traceState!=null&&(r.traceState=String(o.traceState)),o.parentSpanId!=null&&(typeof o.parentSpanId=="string"?E.base64.decode(o.parentSpanId,r.parentSpanId=E.newBuffer(E.base64.length(o.parentSpanId)),0):o.parentSpanId.length>=0&&(r.parentSpanId=o.parentSpanId)),o.name!=null&&(r.name=String(o.name)),o.kind){default:if(typeof o.kind=="number"){r.kind=o.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:r.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:r.kind=1;break;case"SPAN_KIND_SERVER":case 2:r.kind=2;break;case"SPAN_KIND_CLIENT":case 3:r.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:r.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:r.kind=5;break}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.endTimeUnixNano!=null&&(E.Long?(r.endTimeUnixNano=E.Long.fromValue(o.endTimeUnixNano)).unsigned=!1:typeof o.endTimeUnixNano=="string"?r.endTimeUnixNano=parseInt(o.endTimeUnixNano,10):typeof o.endTimeUnixNano=="number"?r.endTimeUnixNano=o.endTimeUnixNano:typeof o.endTimeUnixNano=="object"&&(r.endTimeUnixNano=new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber())),o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}if(o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.events){if(!Array.isArray(o.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");r.events=[];for(var s=0;s<o.events.length;++s){if(typeof o.events[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.events: object expected");r.events[s]=d.opentelemetry.proto.trace.v1.Span.Event.fromObject(o.events[s])}}if(o.droppedEventsCount!=null&&(r.droppedEventsCount=o.droppedEventsCount>>>0),o.links){if(!Array.isArray(o.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");r.links=[];for(var s=0;s<o.links.length;++s){if(typeof o.links[s]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.links: object expected");r.links[s]=d.opentelemetry.proto.trace.v1.Span.Link.fromObject(o.links[s])}}if(o.droppedLinksCount!=null&&(r.droppedLinksCount=o.droppedLinksCount>>>0),o.status!=null){if(typeof o.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");r.status=d.opentelemetry.proto.trace.v1.Status.fromObject(o.status)}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[],s.events=[],s.links=[]),r.defaults){if(r.bytes===String?s.traceId="":(s.traceId=[],r.bytes!==Array&&(s.traceId=E.newBuffer(s.traceId))),r.bytes===String?s.spanId="":(s.spanId=[],r.bytes!==Array&&(s.spanId=E.newBuffer(s.spanId))),s.traceState="",r.bytes===String?s.parentSpanId="":(s.parentSpanId=[],r.bytes!==Array&&(s.parentSpanId=E.newBuffer(s.parentSpanId))),s.name="",s.kind=r.enums===String?"SPAN_KIND_UNSPECIFIED":0,E.Long){var l=new E.Long(0,0,!1);s.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);s.endTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.endTimeUnixNano=r.longs===String?"0":0;s.droppedAttributesCount=0,s.droppedEventsCount=0,s.droppedLinksCount=0,s.status=null}if(o.traceId!=null&&o.hasOwnProperty("traceId")&&(s.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(s.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.traceState!=null&&o.hasOwnProperty("traceState")&&(s.traceState=o.traceState),o.parentSpanId!=null&&o.hasOwnProperty("parentSpanId")&&(s.parentSpanId=r.bytes===String?E.base64.encode(o.parentSpanId,0,o.parentSpanId.length):r.bytes===Array?Array.prototype.slice.call(o.parentSpanId):o.parentSpanId),o.name!=null&&o.hasOwnProperty("name")&&(s.name=o.name),o.kind!=null&&o.hasOwnProperty("kind")&&(s.kind=r.enums===String?d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]===void 0?o.kind:d.opentelemetry.proto.trace.v1.Span.SpanKind[o.kind]:o.kind),o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?s.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:s.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.endTimeUnixNano!=null&&o.hasOwnProperty("endTimeUnixNano")&&(typeof o.endTimeUnixNano=="number"?s.endTimeUnixNano=r.longs===String?String(o.endTimeUnixNano):o.endTimeUnixNano:s.endTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.endTimeUnixNano):r.longs===Number?new E.LongBits(o.endTimeUnixNano.low>>>0,o.endTimeUnixNano.high>>>0).toNumber():o.endTimeUnixNano),o.attributes&&o.attributes.length){s.attributes=[];for(var c=0;c<o.attributes.length;++c)s.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}if(o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=o.droppedAttributesCount),o.events&&o.events.length){s.events=[];for(var c=0;c<o.events.length;++c)s.events[c]=d.opentelemetry.proto.trace.v1.Span.Event.toObject(o.events[c],r)}if(o.droppedEventsCount!=null&&o.hasOwnProperty("droppedEventsCount")&&(s.droppedEventsCount=o.droppedEventsCount),o.links&&o.links.length){s.links=[];for(var c=0;c<o.links.length;++c)s.links[c]=d.opentelemetry.proto.trace.v1.Span.Link.toObject(o.links[c],r)}return o.droppedLinksCount!=null&&o.hasOwnProperty("droppedLinksCount")&&(s.droppedLinksCount=o.droppedLinksCount),o.status!=null&&o.hasOwnProperty("status")&&(s.status=d.opentelemetry.proto.trace.v1.Status.toObject(o.status,r)),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Span"},a.SpanKind=function(){var u={},o=Object.create(u);return o[u[0]="SPAN_KIND_UNSPECIFIED"]=0,o[u[1]="SPAN_KIND_INTERNAL"]=1,o[u[2]="SPAN_KIND_SERVER"]=2,o[u[3]="SPAN_KIND_CLIENT"]=3,o[u[4]="SPAN_KIND_PRODUCER"]=4,o[u[5]="SPAN_KIND_CONSUMER"]=5,o}(),a.Event=function(){function u(o){if(this.attributes=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.timeUnixNano=null,u.prototype.name=null,u.prototype.attributes=E.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(9).fixed64(r.timeUnixNano),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&s.uint32(18).string(r.name),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(26).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&s.uint32(32).uint32(r.droppedAttributesCount),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.trace.v1.Span.Event;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.timeUnixNano=r.fixed64();break}case 2:{c.name=r.string();break}case 3:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 4:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var s=0;s<r.attributes.length;++s){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[s]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Event)return r;var s=new d.opentelemetry.proto.trace.v1.Span.Event;if(r.timeUnixNano!=null&&(E.Long?(s.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.name!=null&&(s.name=String(r.name)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(s.droppedAttributesCount=r.droppedAttributesCount>>>0),s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.attributes=[]),s.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;l.name="",l.droppedAttributesCount=0}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],s)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Event"},u}(),a.Link=function(){function u(o){if(this.attributes=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.traceId=null,u.prototype.spanId=null,u.prototype.traceState=null,u.prototype.attributes=E.emptyArray,u.prototype.droppedAttributesCount=null,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&s.uint32(10).bytes(r.traceId),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&s.uint32(18).bytes(r.spanId),r.traceState!=null&&Object.hasOwnProperty.call(r,"traceState")&&s.uint32(26).string(r.traceState),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(34).fork()).ldelim();return r.droppedAttributesCount!=null&&Object.hasOwnProperty.call(r,"droppedAttributesCount")&&s.uint32(40).uint32(r.droppedAttributesCount),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.trace.v1.Span.Link;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.traceId=r.bytes();break}case 2:{c.spanId=r.bytes();break}case 3:{c.traceState=r.string();break}case 4:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 5:{c.droppedAttributesCount=r.uint32();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId)))return"traceId: buffer expected";if(r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId)))return"spanId: buffer expected";if(r.traceState!=null&&r.hasOwnProperty("traceState")&&!E.isString(r.traceState))return"traceState: string expected";if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var s=0;s<r.attributes.length;++s){var l=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[s]);if(l)return"attributes."+l}}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(r.droppedAttributesCount)?"droppedAttributesCount: integer expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.trace.v1.Span.Link)return r;var s=new d.opentelemetry.proto.trace.v1.Span.Link;if(r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,s.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(s.traceId=r.traceId)),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,s.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(s.spanId=r.spanId)),r.traceState!=null&&(s.traceState=String(r.traceState)),r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}return r.droppedAttributesCount!=null&&(s.droppedAttributesCount=r.droppedAttributesCount>>>0),s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.attributes=[]),s.defaults&&(s.bytes===String?l.traceId="":(l.traceId=[],s.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId))),s.bytes===String?l.spanId="":(l.spanId=[],s.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),l.traceState="",l.droppedAttributesCount=0),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=s.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):s.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=s.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):s.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceState!=null&&r.hasOwnProperty("traceState")&&(l.traceState=r.traceState),r.attributes&&r.attributes.length){l.attributes=[];for(var c=0;c<r.attributes.length;++c)l.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[c],s)}return r.droppedAttributesCount!=null&&r.hasOwnProperty("droppedAttributesCount")&&(l.droppedAttributesCount=r.droppedAttributesCount),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.trace.v1.Span.Link"},u}(),a}(),i.Status=function(){function a(u){if(u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.message=null,a.prototype.code=null,a.create=function(o){return new a(o)},a.encode=function(o,r){return r||(r=V.create()),o.message!=null&&Object.hasOwnProperty.call(o,"message")&&r.uint32(18).string(o.message),o.code!=null&&Object.hasOwnProperty.call(o,"code")&&r.uint32(24).int32(o.code),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.trace.v1.Status;o.pos<s;){var c=o.uint32();switch(c>>>3){case 2:{l.message=o.string();break}case 3:{l.code=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.message!=null&&o.hasOwnProperty("message")&&!E.isString(o.message))return"message: string expected";if(o.code!=null&&o.hasOwnProperty("code"))switch(o.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.trace.v1.Status)return o;var r=new d.opentelemetry.proto.trace.v1.Status;switch(o.message!=null&&(r.message=String(o.message)),o.code){default:if(typeof o.code=="number"){r.code=o.code;break}break;case"STATUS_CODE_UNSET":case 0:r.code=0;break;case"STATUS_CODE_OK":case 1:r.code=1;break;case"STATUS_CODE_ERROR":case 2:r.code=2;break}return r},a.toObject=function(o,r){r||(r={});var s={};return r.defaults&&(s.message="",s.code=r.enums===String?"STATUS_CODE_UNSET":0),o.message!=null&&o.hasOwnProperty("message")&&(s.message=o.message),o.code!=null&&o.hasOwnProperty("code")&&(s.code=r.enums===String?d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]===void 0?o.code:d.opentelemetry.proto.trace.v1.Status.StatusCode[o.code]:o.code),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.trace.v1.Status"},a.StatusCode=function(){var u={},o=Object.create(u);return o[u[0]="STATUS_CODE_UNSET"]=0,o[u[1]="STATUS_CODE_OK"]=1,o[u[2]="STATUS_CODE_ERROR"]=2,o}(),a}(),i}(),n}(),e.collector=function(){var n={};return n.trace=function(){var i={};return i.v1=function(){var a={};return a.TraceService=function(){function u(o,r,s){I.rpc.Service.call(this,o,r,s)}return(u.prototype=Object.create(I.rpc.Service.prototype)).constructor=u,u.create=function(r,s,l){return new this(r,s,l)},Object.defineProperty(u.prototype.export=function o(r,s){return this.rpcCall(o,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,r,s)},"name",{value:"Export"}),u}(),a.ExportTraceServiceRequest=function(){function u(o){if(this.resourceSpans=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.resourceSpans=E.emptyArray,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.resourceSpans!=null&&r.resourceSpans.length)for(var l=0;l<r.resourceSpans.length;++l)d.opentelemetry.proto.trace.v1.ResourceSpans.encode(r.resourceSpans[l],s.uint32(10).fork()).ldelim();return s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceSpans&&c.resourceSpans.length||(c.resourceSpans=[]),c.resourceSpans.push(d.opentelemetry.proto.trace.v1.ResourceSpans.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceSpans!=null&&r.hasOwnProperty("resourceSpans")){if(!Array.isArray(r.resourceSpans))return"resourceSpans: array expected";for(var s=0;s<r.resourceSpans.length;++s){var l=d.opentelemetry.proto.trace.v1.ResourceSpans.verify(r.resourceSpans[s]);if(l)return"resourceSpans."+l}}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest)return r;var s=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;if(r.resourceSpans){if(!Array.isArray(r.resourceSpans))throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: array expected");s.resourceSpans=[];for(var l=0;l<r.resourceSpans.length;++l){if(typeof r.resourceSpans[l]!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest.resourceSpans: object expected");s.resourceSpans[l]=d.opentelemetry.proto.trace.v1.ResourceSpans.fromObject(r.resourceSpans[l])}}return s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.resourceSpans=[]),r.resourceSpans&&r.resourceSpans.length){l.resourceSpans=[];for(var c=0;c<r.resourceSpans.length;++c)l.resourceSpans[c]=d.opentelemetry.proto.trace.v1.ResourceSpans.toObject(r.resourceSpans[c],s)}return l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest"},u}(),a.ExportTraceServiceResponse=function(){function u(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.partialSuccess=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.encode(r.partialSuccess,s.uint32(10).fork()).ldelim(),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var s=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(r.partialSuccess);if(s)return"partialSuccess."+s}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return r;var s=new d.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");s.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(r.partialSuccess)}return s},u.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(r.partialSuccess,s)),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},u}(),a.ExportTracePartialSuccess=function(){function u(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.rejectedSpans=null,u.prototype.errorMessage=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.rejectedSpans!=null&&Object.hasOwnProperty.call(r,"rejectedSpans")&&s.uint32(8).int64(r.rejectedSpans),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&s.uint32(18).string(r.errorMessage),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedSpans=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&!E.isInteger(r.rejectedSpans)&&!(r.rejectedSpans&&E.isInteger(r.rejectedSpans.low)&&E.isInteger(r.rejectedSpans.high))?"rejectedSpans: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return r;var s=new d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return r.rejectedSpans!=null&&(E.Long?(s.rejectedSpans=E.Long.fromValue(r.rejectedSpans)).unsigned=!1:typeof r.rejectedSpans=="string"?s.rejectedSpans=parseInt(r.rejectedSpans,10):typeof r.rejectedSpans=="number"?s.rejectedSpans=r.rejectedSpans:typeof r.rejectedSpans=="object"&&(s.rejectedSpans=new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber())),r.errorMessage!=null&&(s.errorMessage=String(r.errorMessage)),s},u.toObject=function(r,s){s||(s={});var l={};if(s.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedSpans=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.rejectedSpans=s.longs===String?"0":0;l.errorMessage=""}return r.rejectedSpans!=null&&r.hasOwnProperty("rejectedSpans")&&(typeof r.rejectedSpans=="number"?l.rejectedSpans=s.longs===String?String(r.rejectedSpans):r.rejectedSpans:l.rejectedSpans=s.longs===String?E.Long.prototype.toString.call(r.rejectedSpans):s.longs===Number?new E.LongBits(r.rejectedSpans.low>>>0,r.rejectedSpans.high>>>0).toNumber():r.rejectedSpans),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},u}(),a}(),i}(),n.metrics=function(){var i={};return i.v1=function(){var a={};return a.MetricsService=function(){function u(o,r,s){I.rpc.Service.call(this,o,r,s)}return(u.prototype=Object.create(I.rpc.Service.prototype)).constructor=u,u.create=function(r,s,l){return new this(r,s,l)},Object.defineProperty(u.prototype.export=function o(r,s){return this.rpcCall(o,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,r,s)},"name",{value:"Export"}),u}(),a.ExportMetricsServiceRequest=function(){function u(o){if(this.resourceMetrics=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.resourceMetrics=E.emptyArray,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.resourceMetrics!=null&&r.resourceMetrics.length)for(var l=0;l<r.resourceMetrics.length;++l)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(r.resourceMetrics[l],s.uint32(10).fork()).ldelim();return s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceMetrics&&c.resourceMetrics.length||(c.resourceMetrics=[]),c.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceMetrics!=null&&r.hasOwnProperty("resourceMetrics")){if(!Array.isArray(r.resourceMetrics))return"resourceMetrics: array expected";for(var s=0;s<r.resourceMetrics.length;++s){var l=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(r.resourceMetrics[s]);if(l)return"resourceMetrics."+l}}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)return r;var s=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;if(r.resourceMetrics){if(!Array.isArray(r.resourceMetrics))throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: array expected");s.resourceMetrics=[];for(var l=0;l<r.resourceMetrics.length;++l){if(typeof r.resourceMetrics[l]!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.resourceMetrics: object expected");s.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(r.resourceMetrics[l])}}return s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.resourceMetrics=[]),r.resourceMetrics&&r.resourceMetrics.length){l.resourceMetrics=[];for(var c=0;c<r.resourceMetrics.length;++c)l.resourceMetrics[c]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(r.resourceMetrics[c],s)}return l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest"},u}(),a.ExportMetricsServiceResponse=function(){function u(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.partialSuccess=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.encode(r.partialSuccess,s.uint32(10).fork()).ldelim(),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var s=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(r.partialSuccess);if(s)return"partialSuccess."+s}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return r;var s=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");s.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(r.partialSuccess)}return s},u.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(r.partialSuccess,s)),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},u}(),a.ExportMetricsPartialSuccess=function(){function u(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.rejectedDataPoints=null,u.prototype.errorMessage=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.rejectedDataPoints!=null&&Object.hasOwnProperty.call(r,"rejectedDataPoints")&&s.uint32(8).int64(r.rejectedDataPoints),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&s.uint32(18).string(r.errorMessage),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedDataPoints=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&!E.isInteger(r.rejectedDataPoints)&&!(r.rejectedDataPoints&&E.isInteger(r.rejectedDataPoints.low)&&E.isInteger(r.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return r;var s=new d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return r.rejectedDataPoints!=null&&(E.Long?(s.rejectedDataPoints=E.Long.fromValue(r.rejectedDataPoints)).unsigned=!1:typeof r.rejectedDataPoints=="string"?s.rejectedDataPoints=parseInt(r.rejectedDataPoints,10):typeof r.rejectedDataPoints=="number"?s.rejectedDataPoints=r.rejectedDataPoints:typeof r.rejectedDataPoints=="object"&&(s.rejectedDataPoints=new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber())),r.errorMessage!=null&&(s.errorMessage=String(r.errorMessage)),s},u.toObject=function(r,s){s||(s={});var l={};if(s.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedDataPoints=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.rejectedDataPoints=s.longs===String?"0":0;l.errorMessage=""}return r.rejectedDataPoints!=null&&r.hasOwnProperty("rejectedDataPoints")&&(typeof r.rejectedDataPoints=="number"?l.rejectedDataPoints=s.longs===String?String(r.rejectedDataPoints):r.rejectedDataPoints:l.rejectedDataPoints=s.longs===String?E.Long.prototype.toString.call(r.rejectedDataPoints):s.longs===Number?new E.LongBits(r.rejectedDataPoints.low>>>0,r.rejectedDataPoints.high>>>0).toNumber():r.rejectedDataPoints),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},u}(),a}(),i}(),n.logs=function(){var i={};return i.v1=function(){var a={};return a.LogsService=function(){function u(o,r,s){I.rpc.Service.call(this,o,r,s)}return(u.prototype=Object.create(I.rpc.Service.prototype)).constructor=u,u.create=function(r,s,l){return new this(r,s,l)},Object.defineProperty(u.prototype.export=function o(r,s){return this.rpcCall(o,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,r,s)},"name",{value:"Export"}),u}(),a.ExportLogsServiceRequest=function(){function u(o){if(this.resourceLogs=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.resourceLogs=E.emptyArray,u.create=function(r){return new u(r)},u.encode=function(r,s){if(s||(s=V.create()),r.resourceLogs!=null&&r.resourceLogs.length)for(var l=0;l<r.resourceLogs.length;++l)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(r.resourceLogs[l],s.uint32(10).fork()).ldelim();return s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.resourceLogs&&c.resourceLogs.length||(c.resourceLogs=[]),c.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(r,r.uint32()));break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.resourceLogs!=null&&r.hasOwnProperty("resourceLogs")){if(!Array.isArray(r.resourceLogs))return"resourceLogs: array expected";for(var s=0;s<r.resourceLogs.length;++s){var l=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(r.resourceLogs[s]);if(l)return"resourceLogs."+l}}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest)return r;var s=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest;if(r.resourceLogs){if(!Array.isArray(r.resourceLogs))throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: array expected");s.resourceLogs=[];for(var l=0;l<r.resourceLogs.length;++l){if(typeof r.resourceLogs[l]!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest.resourceLogs: object expected");s.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(r.resourceLogs[l])}}return s},u.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.resourceLogs=[]),r.resourceLogs&&r.resourceLogs.length){l.resourceLogs=[];for(var c=0;c<r.resourceLogs.length;++c)l.resourceLogs[c]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(r.resourceLogs[c],s)}return l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest"},u}(),a.ExportLogsServiceResponse=function(){function u(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.partialSuccess=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.partialSuccess!=null&&Object.hasOwnProperty.call(r,"partialSuccess")&&d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.encode(r.partialSuccess,s.uint32(10).fork()).ldelim(),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){if(typeof r!="object"||r===null)return"object expected";if(r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")){var s=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(r.partialSuccess);if(s)return"partialSuccess."+s}return null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return r;var s=new d.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(r.partialSuccess!=null){if(typeof r.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");s.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(r.partialSuccess)}return s},u.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.partialSuccess=null),r.partialSuccess!=null&&r.hasOwnProperty("partialSuccess")&&(l.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(r.partialSuccess,s)),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},u}(),a.ExportLogsPartialSuccess=function(){function u(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.rejectedLogRecords=null,u.prototype.errorMessage=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.rejectedLogRecords!=null&&Object.hasOwnProperty.call(r,"rejectedLogRecords")&&s.uint32(8).int64(r.rejectedLogRecords),r.errorMessage!=null&&Object.hasOwnProperty.call(r,"errorMessage")&&s.uint32(18).string(r.errorMessage),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.rejectedLogRecords=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){return typeof r!="object"||r===null?"object expected":r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&!E.isInteger(r.rejectedLogRecords)&&!(r.rejectedLogRecords&&E.isInteger(r.rejectedLogRecords.low)&&E.isInteger(r.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&!E.isString(r.errorMessage)?"errorMessage: string expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return r;var s=new d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return r.rejectedLogRecords!=null&&(E.Long?(s.rejectedLogRecords=E.Long.fromValue(r.rejectedLogRecords)).unsigned=!1:typeof r.rejectedLogRecords=="string"?s.rejectedLogRecords=parseInt(r.rejectedLogRecords,10):typeof r.rejectedLogRecords=="number"?s.rejectedLogRecords=r.rejectedLogRecords:typeof r.rejectedLogRecords=="object"&&(s.rejectedLogRecords=new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber())),r.errorMessage!=null&&(s.errorMessage=String(r.errorMessage)),s},u.toObject=function(r,s){s||(s={});var l={};if(s.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.rejectedLogRecords=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.rejectedLogRecords=s.longs===String?"0":0;l.errorMessage=""}return r.rejectedLogRecords!=null&&r.hasOwnProperty("rejectedLogRecords")&&(typeof r.rejectedLogRecords=="number"?l.rejectedLogRecords=s.longs===String?String(r.rejectedLogRecords):r.rejectedLogRecords:l.rejectedLogRecords=s.longs===String?E.Long.prototype.toString.call(r.rejectedLogRecords):s.longs===Number?new E.LongBits(r.rejectedLogRecords.low>>>0,r.rejectedLogRecords.high>>>0).toNumber():r.rejectedLogRecords),r.errorMessage!=null&&r.hasOwnProperty("errorMessage")&&(l.errorMessage=r.errorMessage),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},u}(),a}(),i}(),n}(),e.metrics=function(){var n={};return n.v1=function(){var i={};return i.MetricsData=function(){function a(u){if(this.resourceMetrics=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.resourceMetrics=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceMetrics!=null&&o.resourceMetrics.length)for(var s=0;s<o.resourceMetrics.length;++s)d.opentelemetry.proto.metrics.v1.ResourceMetrics.encode(o.resourceMetrics[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.MetricsData;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceMetrics&&l.resourceMetrics.length||(l.resourceMetrics=[]),l.resourceMetrics.push(d.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceMetrics!=null&&o.hasOwnProperty("resourceMetrics")){if(!Array.isArray(o.resourceMetrics))return"resourceMetrics: array expected";for(var r=0;r<o.resourceMetrics.length;++r){var s=d.opentelemetry.proto.metrics.v1.ResourceMetrics.verify(o.resourceMetrics[r]);if(s)return"resourceMetrics."+s}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.MetricsData)return o;var r=new d.opentelemetry.proto.metrics.v1.MetricsData;if(o.resourceMetrics){if(!Array.isArray(o.resourceMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: array expected");r.resourceMetrics=[];for(var s=0;s<o.resourceMetrics.length;++s){if(typeof o.resourceMetrics[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.MetricsData.resourceMetrics: object expected");r.resourceMetrics[s]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.fromObject(o.resourceMetrics[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.resourceMetrics=[]),o.resourceMetrics&&o.resourceMetrics.length){s.resourceMetrics=[];for(var l=0;l<o.resourceMetrics.length;++l)s.resourceMetrics[l]=d.opentelemetry.proto.metrics.v1.ResourceMetrics.toObject(o.resourceMetrics[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.MetricsData"},a}(),i.ResourceMetrics=function(){function a(u){if(this.scopeMetrics=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.resource=null,a.prototype.scopeMetrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeMetrics!=null&&o.scopeMetrics.length)for(var s=0;s<o.scopeMetrics.length;++s)d.opentelemetry.proto.metrics.v1.ScopeMetrics.encode(o.scopeMetrics[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeMetrics&&l.scopeMetrics.length||(l.scopeMetrics=[]),l.scopeMetrics.push(d.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeMetrics!=null&&o.hasOwnProperty("scopeMetrics")){if(!Array.isArray(o.scopeMetrics))return"scopeMetrics: array expected";for(var s=0;s<o.scopeMetrics.length;++s){var r=d.opentelemetry.proto.metrics.v1.ScopeMetrics.verify(o.scopeMetrics[s]);if(r)return"scopeMetrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ResourceMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ResourceMetrics;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeMetrics){if(!Array.isArray(o.scopeMetrics))throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: array expected");r.scopeMetrics=[];for(var s=0;s<o.scopeMetrics.length;++s){if(typeof o.scopeMetrics[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ResourceMetrics.scopeMetrics: object expected");r.scopeMetrics[s]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.fromObject(o.scopeMetrics[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.scopeMetrics=[]),r.defaults&&(s.resource=null,s.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(s.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeMetrics&&o.scopeMetrics.length){s.scopeMetrics=[];for(var l=0;l<o.scopeMetrics.length;++l)s.scopeMetrics[l]=d.opentelemetry.proto.metrics.v1.ScopeMetrics.toObject(o.scopeMetrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ResourceMetrics"},a}(),i.ScopeMetrics=function(){function a(u){if(this.metrics=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.scope=null,a.prototype.metrics=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.metrics!=null&&o.metrics.length)for(var s=0;s<o.metrics.length;++s)d.opentelemetry.proto.metrics.v1.Metric.encode(o.metrics[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.metrics&&l.metrics.length||(l.metrics=[]),l.metrics.push(d.opentelemetry.proto.metrics.v1.Metric.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.metrics!=null&&o.hasOwnProperty("metrics")){if(!Array.isArray(o.metrics))return"metrics: array expected";for(var s=0;s<o.metrics.length;++s){var r=d.opentelemetry.proto.metrics.v1.Metric.verify(o.metrics[s]);if(r)return"metrics."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ScopeMetrics)return o;var r=new d.opentelemetry.proto.metrics.v1.ScopeMetrics;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.metrics){if(!Array.isArray(o.metrics))throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: array expected");r.metrics=[];for(var s=0;s<o.metrics.length;++s){if(typeof o.metrics[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ScopeMetrics.metrics: object expected");r.metrics[s]=d.opentelemetry.proto.metrics.v1.Metric.fromObject(o.metrics[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.metrics=[]),r.defaults&&(s.scope=null,s.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(s.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.metrics&&o.metrics.length){s.metrics=[];for(var l=0;l<o.metrics.length;++l)s.metrics[l]=d.opentelemetry.proto.metrics.v1.Metric.toObject(o.metrics[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ScopeMetrics"},a}(),i.Metric=function(){function a(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.name=null,a.prototype.description=null,a.prototype.unit=null,a.prototype.gauge=null,a.prototype.sum=null,a.prototype.histogram=null,a.prototype.exponentialHistogram=null,a.prototype.summary=null;var u;return Object.defineProperty(a.prototype,"data",{get:E.oneOfGetter(u=["gauge","sum","histogram","exponentialHistogram","summary"]),set:E.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){return s||(s=V.create()),r.name!=null&&Object.hasOwnProperty.call(r,"name")&&s.uint32(10).string(r.name),r.description!=null&&Object.hasOwnProperty.call(r,"description")&&s.uint32(18).string(r.description),r.unit!=null&&Object.hasOwnProperty.call(r,"unit")&&s.uint32(26).string(r.unit),r.gauge!=null&&Object.hasOwnProperty.call(r,"gauge")&&d.opentelemetry.proto.metrics.v1.Gauge.encode(r.gauge,s.uint32(42).fork()).ldelim(),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&d.opentelemetry.proto.metrics.v1.Sum.encode(r.sum,s.uint32(58).fork()).ldelim(),r.histogram!=null&&Object.hasOwnProperty.call(r,"histogram")&&d.opentelemetry.proto.metrics.v1.Histogram.encode(r.histogram,s.uint32(74).fork()).ldelim(),r.exponentialHistogram!=null&&Object.hasOwnProperty.call(r,"exponentialHistogram")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogram.encode(r.exponentialHistogram,s.uint32(82).fork()).ldelim(),r.summary!=null&&Object.hasOwnProperty.call(r,"summary")&&d.opentelemetry.proto.metrics.v1.Summary.encode(r.summary,s.uint32(90).fork()).ldelim(),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.Metric;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.name=r.string();break}case 2:{c.description=r.string();break}case 3:{c.unit=r.string();break}case 5:{c.gauge=d.opentelemetry.proto.metrics.v1.Gauge.decode(r,r.uint32());break}case 7:{c.sum=d.opentelemetry.proto.metrics.v1.Sum.decode(r,r.uint32());break}case 9:{c.histogram=d.opentelemetry.proto.metrics.v1.Histogram.decode(r,r.uint32());break}case 10:{c.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(r,r.uint32());break}case 11:{c.summary=d.opentelemetry.proto.metrics.v1.Summary.decode(r,r.uint32());break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.name!=null&&r.hasOwnProperty("name")&&!E.isString(r.name))return"name: string expected";if(r.description!=null&&r.hasOwnProperty("description")&&!E.isString(r.description))return"description: string expected";if(r.unit!=null&&r.hasOwnProperty("unit")&&!E.isString(r.unit))return"unit: string expected";if(r.gauge!=null&&r.hasOwnProperty("gauge")){s.data=1;{var l=d.opentelemetry.proto.metrics.v1.Gauge.verify(r.gauge);if(l)return"gauge."+l}}if(r.sum!=null&&r.hasOwnProperty("sum")){if(s.data===1)return"data: multiple values";s.data=1;{var l=d.opentelemetry.proto.metrics.v1.Sum.verify(r.sum);if(l)return"sum."+l}}if(r.histogram!=null&&r.hasOwnProperty("histogram")){if(s.data===1)return"data: multiple values";s.data=1;{var l=d.opentelemetry.proto.metrics.v1.Histogram.verify(r.histogram);if(l)return"histogram."+l}}if(r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")){if(s.data===1)return"data: multiple values";s.data=1;{var l=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(r.exponentialHistogram);if(l)return"exponentialHistogram."+l}}if(r.summary!=null&&r.hasOwnProperty("summary")){if(s.data===1)return"data: multiple values";s.data=1;{var l=d.opentelemetry.proto.metrics.v1.Summary.verify(r.summary);if(l)return"summary."+l}}return null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Metric)return r;var s=new d.opentelemetry.proto.metrics.v1.Metric;if(r.name!=null&&(s.name=String(r.name)),r.description!=null&&(s.description=String(r.description)),r.unit!=null&&(s.unit=String(r.unit)),r.gauge!=null){if(typeof r.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");s.gauge=d.opentelemetry.proto.metrics.v1.Gauge.fromObject(r.gauge)}if(r.sum!=null){if(typeof r.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");s.sum=d.opentelemetry.proto.metrics.v1.Sum.fromObject(r.sum)}if(r.histogram!=null){if(typeof r.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");s.histogram=d.opentelemetry.proto.metrics.v1.Histogram.fromObject(r.histogram)}if(r.exponentialHistogram!=null){if(typeof r.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");s.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(r.exponentialHistogram)}if(r.summary!=null){if(typeof r.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");s.summary=d.opentelemetry.proto.metrics.v1.Summary.fromObject(r.summary)}return s},a.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.name="",l.description="",l.unit=""),r.name!=null&&r.hasOwnProperty("name")&&(l.name=r.name),r.description!=null&&r.hasOwnProperty("description")&&(l.description=r.description),r.unit!=null&&r.hasOwnProperty("unit")&&(l.unit=r.unit),r.gauge!=null&&r.hasOwnProperty("gauge")&&(l.gauge=d.opentelemetry.proto.metrics.v1.Gauge.toObject(r.gauge,s),s.oneofs&&(l.data="gauge")),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=d.opentelemetry.proto.metrics.v1.Sum.toObject(r.sum,s),s.oneofs&&(l.data="sum")),r.histogram!=null&&r.hasOwnProperty("histogram")&&(l.histogram=d.opentelemetry.proto.metrics.v1.Histogram.toObject(r.histogram,s),s.oneofs&&(l.data="histogram")),r.exponentialHistogram!=null&&r.hasOwnProperty("exponentialHistogram")&&(l.exponentialHistogram=d.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(r.exponentialHistogram,s),s.oneofs&&(l.data="exponentialHistogram")),r.summary!=null&&r.hasOwnProperty("summary")&&(l.summary=d.opentelemetry.proto.metrics.v1.Summary.toObject(r.summary,s),s.oneofs&&(l.data="summary")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Metric"},a}(),i.Gauge=function(){function a(u){if(this.dataPoints=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Gauge;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Gauge)return o;var r=new d.opentelemetry.proto.metrics.v1.Gauge;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Gauge.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Gauge"},a}(),i.Sum=function(){function a(u){if(this.dataPoints=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.prototype.isMonotonic=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.NumberDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),o.isMonotonic!=null&&Object.hasOwnProperty.call(o,"isMonotonic")&&r.uint32(24).bool(o.isMonotonic),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Sum;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}case 3:{l.isMonotonic=o.bool();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.NumberDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&typeof o.isMonotonic!="boolean"?"isMonotonic: boolean expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Sum)return o;var r=new d.opentelemetry.proto.metrics.v1.Sum;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Sum.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.fromObject(o.dataPoints[s])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return o.isMonotonic!=null&&(r.isMonotonic=!!o.isMonotonic),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),r.defaults&&(s.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0,s.isMonotonic=!1),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.NumberDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(s.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),o.isMonotonic!=null&&o.hasOwnProperty("isMonotonic")&&(s.isMonotonic=o.isMonotonic),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Sum"},a}(),i.Histogram=function(){function a(u){if(this.dataPoints=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.HistogramDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Histogram;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Histogram)return o;var r=new d.opentelemetry.proto.metrics.v1.Histogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Histogram.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.fromObject(o.dataPoints[s])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),r.defaults&&(s.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.HistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(s.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Histogram"},a}(),i.ExponentialHistogram=function(){function a(u){if(this.dataPoints=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.prototype.aggregationTemporality=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return o.aggregationTemporality!=null&&Object.hasOwnProperty.call(o,"aggregationTemporality")&&r.uint32(16).int32(o.aggregationTemporality),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(o,o.uint32()));break}case 2:{l.aggregationTemporality=o.int32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}if(o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality"))switch(o.aggregationTemporality){default:return"aggregationTemporality: enum value expected";case 0:case 1:case 2:break}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogram)return o;var r=new d.opentelemetry.proto.metrics.v1.ExponentialHistogram;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogram.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.fromObject(o.dataPoints[s])}}switch(o.aggregationTemporality){default:if(typeof o.aggregationTemporality=="number"){r.aggregationTemporality=o.aggregationTemporality;break}break;case"AGGREGATION_TEMPORALITY_UNSPECIFIED":case 0:r.aggregationTemporality=0;break;case"AGGREGATION_TEMPORALITY_DELTA":case 1:r.aggregationTemporality=1;break;case"AGGREGATION_TEMPORALITY_CUMULATIVE":case 2:r.aggregationTemporality=2;break}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),r.defaults&&(s.aggregationTemporality=r.enums===String?"AGGREGATION_TEMPORALITY_UNSPECIFIED":0),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.toObject(o.dataPoints[l],r)}return o.aggregationTemporality!=null&&o.hasOwnProperty("aggregationTemporality")&&(s.aggregationTemporality=r.enums===String?d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]===void 0?o.aggregationTemporality:d.opentelemetry.proto.metrics.v1.AggregationTemporality[o.aggregationTemporality]:o.aggregationTemporality),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.ExponentialHistogram"},a}(),i.Summary=function(){function a(u){if(this.dataPoints=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.dataPoints=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.dataPoints!=null&&o.dataPoints.length)for(var s=0;s<o.dataPoints.length;++s)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.encode(o.dataPoints[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.Summary;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.dataPoints&&l.dataPoints.length||(l.dataPoints=[]),l.dataPoints.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.dataPoints!=null&&o.hasOwnProperty("dataPoints")){if(!Array.isArray(o.dataPoints))return"dataPoints: array expected";for(var r=0;r<o.dataPoints.length;++r){var s=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.verify(o.dataPoints[r]);if(s)return"dataPoints."+s}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.Summary)return o;var r=new d.opentelemetry.proto.metrics.v1.Summary;if(o.dataPoints){if(!Array.isArray(o.dataPoints))throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: array expected");r.dataPoints=[];for(var s=0;s<o.dataPoints.length;++s){if(typeof o.dataPoints[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Summary.dataPoints: object expected");r.dataPoints[s]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.fromObject(o.dataPoints[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.dataPoints=[]),o.dataPoints&&o.dataPoints.length){s.dataPoints=[];for(var l=0;l<o.dataPoints.length;++l)s.dataPoints[l]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.toObject(o.dataPoints[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.Summary"},a}(),i.AggregationTemporality=function(){var a={},u=Object.create(a);return u[a[0]="AGGREGATION_TEMPORALITY_UNSPECIFIED"]=0,u[a[1]="AGGREGATION_TEMPORALITY_DELTA"]=1,u[a[2]="AGGREGATION_TEMPORALITY_CUMULATIVE"]=2,u}(),i.DataPointFlags=function(){var a={},u=Object.create(a);return u[a[0]="DATA_POINT_FLAGS_DO_NOT_USE"]=0,u[a[1]="DATA_POINT_FLAGS_NO_RECORDED_VALUE_MASK"]=1,u}(),i.NumberDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null;var u;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(u=["asDouble","asInt"]),set:E.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&s.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(25).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&s.uint32(33).double(r.asDouble),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],s.uint32(42).fork()).ldelim();if(r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&s.uint32(49).sfixed64(r.asInt),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(58).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&s.uint32(64).uint32(r.flags),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 5:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 8:{c.flags=r.uint32();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(s.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(s.value===1)return"value: multiple values";if(s.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.NumberDataPoint)return r;var s=new d.opentelemetry.proto.metrics.v1.NumberDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(s.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?s.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?s.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(s.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(s.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(s.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(s.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?s.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?s.asInt=r.asInt:typeof r.asInt=="object"&&(s.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");s.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: object expected");s.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(s.flags=r.flags>>>0),s},a.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.exemplars=[],l.attributes=[]),s.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.startTimeUnixNano=s.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=s.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=s.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):s.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=s.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,s.oneofs&&(l.value="asDouble")),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],s)}if(r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=s.longs===String?String(r.asInt):r.asInt:l.asInt=s.longs===String?E.Long.prototype.toString.call(r.asInt):s.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,s.oneofs&&(l.value="asInt")),r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],s)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.NumberDataPoint"},a}(),i.HistogramDataPoint=function(){function a(o){if(this.attributes=[],this.bucketCounts=[],this.explicitBounds=[],this.exemplars=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.bucketCounts=E.emptyArray,a.prototype.explicitBounds=E.emptyArray,a.prototype.exemplars=E.emptyArray,a.prototype.flags=null,a.prototype.min=null,a.prototype.max=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(u=["sum"]),set:E.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(u=["min"]),set:E.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(u=["max"]),set:E.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=V.create()),r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&s.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&s.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&s.uint32(41).double(r.sum),r.bucketCounts!=null&&r.bucketCounts.length){s.uint32(50).fork();for(var l=0;l<r.bucketCounts.length;++l)s.fixed64(r.bucketCounts[l]);s.ldelim()}if(r.explicitBounds!=null&&r.explicitBounds.length){s.uint32(58).fork();for(var l=0;l<r.explicitBounds.length;++l)s.double(r.explicitBounds[l]);s.ldelim()}if(r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],s.uint32(66).fork()).ldelim();if(r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(74).fork()).ldelim();return r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&s.uint32(80).uint32(r.flags),r.min!=null&&Object.hasOwnProperty.call(r,"min")&&s.uint32(89).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&s.uint32(97).double(r.max),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 9:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{if(c.bucketCounts&&c.bucketCounts.length||(c.bucketCounts=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.bucketCounts.push(r.fixed64());else c.bucketCounts.push(r.fixed64());break}case 7:{if(c.explicitBounds&&c.explicitBounds.length||(c.explicitBounds=[]),(p&7)===2)for(var _=r.uint32()+r.pos;r.pos<_;)c.explicitBounds.push(r.double());else c.explicitBounds.push(r.double());break}case 8:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 10:{c.flags=r.uint32();break}case 11:{c.min=r.double();break}case 12:{c.max=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(s._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.bucketCounts!=null&&r.hasOwnProperty("bucketCounts")){if(!Array.isArray(r.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<r.bucketCounts.length;++l)if(!E.isInteger(r.bucketCounts[l])&&!(r.bucketCounts[l]&&E.isInteger(r.bucketCounts[l].low)&&E.isInteger(r.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}if(r.explicitBounds!=null&&r.hasOwnProperty("explicitBounds")){if(!Array.isArray(r.explicitBounds))return"explicitBounds: array expected";for(var l=0;l<r.explicitBounds.length;++l)if(typeof r.explicitBounds[l]!="number")return"explicitBounds: number[] expected"}if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags)?"flags: integer expected":r.min!=null&&r.hasOwnProperty("min")&&(s._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(s._max=1,typeof r.max!="number")?"max: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.HistogramDataPoint)return r;var s=new d.opentelemetry.proto.metrics.v1.HistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(s.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?s.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?s.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(s.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(s.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(s.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?s.count=parseInt(r.count,10):typeof r.count=="number"?s.count=r.count:typeof r.count=="object"&&(s.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(s.sum=Number(r.sum)),r.bucketCounts){if(!Array.isArray(r.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");s.bucketCounts=[];for(var l=0;l<r.bucketCounts.length;++l)E.Long?(s.bucketCounts[l]=E.Long.fromValue(r.bucketCounts[l])).unsigned=!1:typeof r.bucketCounts[l]=="string"?s.bucketCounts[l]=parseInt(r.bucketCounts[l],10):typeof r.bucketCounts[l]=="number"?s.bucketCounts[l]=r.bucketCounts[l]:typeof r.bucketCounts[l]=="object"&&(s.bucketCounts[l]=new E.LongBits(r.bucketCounts[l].low>>>0,r.bucketCounts[l].high>>>0).toNumber())}if(r.explicitBounds){if(!Array.isArray(r.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");s.explicitBounds=[];for(var l=0;l<r.explicitBounds.length;++l)s.explicitBounds[l]=Number(r.explicitBounds[l])}if(r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: array expected");s.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.exemplars: object expected");s.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.flags!=null&&(s.flags=r.flags>>>0),r.min!=null&&(s.min=Number(r.min)),r.max!=null&&(s.max=Number(r.max)),s},a.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.bucketCounts=[],l.explicitBounds=[],l.exemplars=[],l.attributes=[]),s.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.startTimeUnixNano=s.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.count=s.longs===String?"0":0;l.flags=0}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=s.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=s.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):s.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=s.longs===String?String(r.count):r.count:l.count=s.longs===String?E.Long.prototype.toString.call(r.count):s.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=s.json&&!isFinite(r.sum)?String(r.sum):r.sum,s.oneofs&&(l._sum="sum")),r.bucketCounts&&r.bucketCounts.length){l.bucketCounts=[];for(var p=0;p<r.bucketCounts.length;++p)typeof r.bucketCounts[p]=="number"?l.bucketCounts[p]=s.longs===String?String(r.bucketCounts[p]):r.bucketCounts[p]:l.bucketCounts[p]=s.longs===String?E.Long.prototype.toString.call(r.bucketCounts[p]):s.longs===Number?new E.LongBits(r.bucketCounts[p].low>>>0,r.bucketCounts[p].high>>>0).toNumber():r.bucketCounts[p]}if(r.explicitBounds&&r.explicitBounds.length){l.explicitBounds=[];for(var p=0;p<r.explicitBounds.length;++p)l.explicitBounds[p]=s.json&&!isFinite(r.explicitBounds[p])?String(r.explicitBounds[p]):r.explicitBounds[p]}if(r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],s)}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],s)}return r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.min!=null&&r.hasOwnProperty("min")&&(l.min=s.json&&!isFinite(r.min)?String(r.min):r.min,s.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=s.json&&!isFinite(r.max)?String(r.max):r.max,s.oneofs&&(l._max="max")),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.HistogramDataPoint"},a}(),i.ExponentialHistogramDataPoint=function(){function a(o){if(this.attributes=[],this.exemplars=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.scale=null,a.prototype.zeroCount=null,a.prototype.positive=null,a.prototype.negative=null,a.prototype.flags=null,a.prototype.exemplars=E.emptyArray,a.prototype.min=null,a.prototype.max=null,a.prototype.zeroThreshold=null;var u;return Object.defineProperty(a.prototype,"_sum",{get:E.oneOfGetter(u=["sum"]),set:E.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_min",{get:E.oneOfGetter(u=["min"]),set:E.oneOfSetter(u)}),Object.defineProperty(a.prototype,"_max",{get:E.oneOfGetter(u=["max"]),set:E.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=V.create()),r.attributes!=null&&r.attributes.length)for(var l=0;l<r.attributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.attributes[l],s.uint32(10).fork()).ldelim();if(r.startTimeUnixNano!=null&&Object.hasOwnProperty.call(r,"startTimeUnixNano")&&s.uint32(17).fixed64(r.startTimeUnixNano),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(25).fixed64(r.timeUnixNano),r.count!=null&&Object.hasOwnProperty.call(r,"count")&&s.uint32(33).fixed64(r.count),r.sum!=null&&Object.hasOwnProperty.call(r,"sum")&&s.uint32(41).double(r.sum),r.scale!=null&&Object.hasOwnProperty.call(r,"scale")&&s.uint32(48).sint32(r.scale),r.zeroCount!=null&&Object.hasOwnProperty.call(r,"zeroCount")&&s.uint32(57).fixed64(r.zeroCount),r.positive!=null&&Object.hasOwnProperty.call(r,"positive")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.positive,s.uint32(66).fork()).ldelim(),r.negative!=null&&Object.hasOwnProperty.call(r,"negative")&&d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.encode(r.negative,s.uint32(74).fork()).ldelim(),r.flags!=null&&Object.hasOwnProperty.call(r,"flags")&&s.uint32(80).uint32(r.flags),r.exemplars!=null&&r.exemplars.length)for(var l=0;l<r.exemplars.length;++l)d.opentelemetry.proto.metrics.v1.Exemplar.encode(r.exemplars[l],s.uint32(90).fork()).ldelim();return r.min!=null&&Object.hasOwnProperty.call(r,"min")&&s.uint32(97).double(r.min),r.max!=null&&Object.hasOwnProperty.call(r,"max")&&s.uint32(105).double(r.max),r.zeroThreshold!=null&&Object.hasOwnProperty.call(r,"zeroThreshold")&&s.uint32(113).double(r.zeroThreshold),s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.attributes&&c.attributes.length||(c.attributes=[]),c.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.startTimeUnixNano=r.fixed64();break}case 3:{c.timeUnixNano=r.fixed64();break}case 4:{c.count=r.fixed64();break}case 5:{c.sum=r.double();break}case 6:{c.scale=r.sint32();break}case 7:{c.zeroCount=r.fixed64();break}case 8:{c.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 9:{c.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(r,r.uint32());break}case 10:{c.flags=r.uint32();break}case 11:{c.exemplars&&c.exemplars.length||(c.exemplars=[]),c.exemplars.push(d.opentelemetry.proto.metrics.v1.Exemplar.decode(r,r.uint32()));break}case 12:{c.min=r.double();break}case 13:{c.max=r.double();break}case 14:{c.zeroThreshold=r.double();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.attributes!=null&&r.hasOwnProperty("attributes")){if(!Array.isArray(r.attributes))return"attributes: array expected";for(var l=0;l<r.attributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.attributes[l]);if(c)return"attributes."+c}}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(r.startTimeUnixNano)&&!(r.startTimeUnixNano&&E.isInteger(r.startTimeUnixNano.low)&&E.isInteger(r.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.count!=null&&r.hasOwnProperty("count")&&!E.isInteger(r.count)&&!(r.count&&E.isInteger(r.count.low)&&E.isInteger(r.count.high)))return"count: integer|Long expected";if(r.sum!=null&&r.hasOwnProperty("sum")&&(s._sum=1,typeof r.sum!="number"))return"sum: number expected";if(r.scale!=null&&r.hasOwnProperty("scale")&&!E.isInteger(r.scale))return"scale: integer expected";if(r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&!E.isInteger(r.zeroCount)&&!(r.zeroCount&&E.isInteger(r.zeroCount.low)&&E.isInteger(r.zeroCount.high)))return"zeroCount: integer|Long expected";if(r.positive!=null&&r.hasOwnProperty("positive")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.positive);if(c)return"positive."+c}if(r.negative!=null&&r.hasOwnProperty("negative")){var c=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.verify(r.negative);if(c)return"negative."+c}if(r.flags!=null&&r.hasOwnProperty("flags")&&!E.isInteger(r.flags))return"flags: integer expected";if(r.exemplars!=null&&r.hasOwnProperty("exemplars")){if(!Array.isArray(r.exemplars))return"exemplars: array expected";for(var l=0;l<r.exemplars.length;++l){var c=d.opentelemetry.proto.metrics.v1.Exemplar.verify(r.exemplars[l]);if(c)return"exemplars."+c}}return r.min!=null&&r.hasOwnProperty("min")&&(s._min=1,typeof r.min!="number")?"min: number expected":r.max!=null&&r.hasOwnProperty("max")&&(s._max=1,typeof r.max!="number")?"max: number expected":r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&typeof r.zeroThreshold!="number"?"zeroThreshold: number expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint)return r;var s=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint;if(r.attributes){if(!Array.isArray(r.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: array expected");s.attributes=[];for(var l=0;l<r.attributes.length;++l){if(typeof r.attributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.attributes: object expected");s.attributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.attributes[l])}}if(r.startTimeUnixNano!=null&&(E.Long?(s.startTimeUnixNano=E.Long.fromValue(r.startTimeUnixNano)).unsigned=!1:typeof r.startTimeUnixNano=="string"?s.startTimeUnixNano=parseInt(r.startTimeUnixNano,10):typeof r.startTimeUnixNano=="number"?s.startTimeUnixNano=r.startTimeUnixNano:typeof r.startTimeUnixNano=="object"&&(s.startTimeUnixNano=new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber())),r.timeUnixNano!=null&&(E.Long?(s.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.count!=null&&(E.Long?(s.count=E.Long.fromValue(r.count)).unsigned=!1:typeof r.count=="string"?s.count=parseInt(r.count,10):typeof r.count=="number"?s.count=r.count:typeof r.count=="object"&&(s.count=new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber())),r.sum!=null&&(s.sum=Number(r.sum)),r.scale!=null&&(s.scale=r.scale|0),r.zeroCount!=null&&(E.Long?(s.zeroCount=E.Long.fromValue(r.zeroCount)).unsigned=!1:typeof r.zeroCount=="string"?s.zeroCount=parseInt(r.zeroCount,10):typeof r.zeroCount=="number"?s.zeroCount=r.zeroCount:typeof r.zeroCount=="object"&&(s.zeroCount=new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber())),r.positive!=null){if(typeof r.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");s.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.positive)}if(r.negative!=null){if(typeof r.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");s.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(r.negative)}if(r.flags!=null&&(s.flags=r.flags>>>0),r.exemplars){if(!Array.isArray(r.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");s.exemplars=[];for(var l=0;l<r.exemplars.length;++l){if(typeof r.exemplars[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: object expected");s.exemplars[l]=d.opentelemetry.proto.metrics.v1.Exemplar.fromObject(r.exemplars[l])}}return r.min!=null&&(s.min=Number(r.min)),r.max!=null&&(s.max=Number(r.max)),r.zeroThreshold!=null&&(s.zeroThreshold=Number(r.zeroThreshold)),s},a.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.attributes=[],l.exemplars=[]),s.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.startTimeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.startTimeUnixNano=s.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;if(E.Long){var c=new E.Long(0,0,!1);l.count=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.count=s.longs===String?"0":0;if(l.scale=0,E.Long){var c=new E.Long(0,0,!1);l.zeroCount=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.zeroCount=s.longs===String?"0":0;l.positive=null,l.negative=null,l.flags=0,l.zeroThreshold=0}if(r.attributes&&r.attributes.length){l.attributes=[];for(var p=0;p<r.attributes.length;++p)l.attributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[p],s)}if(r.startTimeUnixNano!=null&&r.hasOwnProperty("startTimeUnixNano")&&(typeof r.startTimeUnixNano=="number"?l.startTimeUnixNano=s.longs===String?String(r.startTimeUnixNano):r.startTimeUnixNano:l.startTimeUnixNano=s.longs===String?E.Long.prototype.toString.call(r.startTimeUnixNano):s.longs===Number?new E.LongBits(r.startTimeUnixNano.low>>>0,r.startTimeUnixNano.high>>>0).toNumber():r.startTimeUnixNano),r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.count!=null&&r.hasOwnProperty("count")&&(typeof r.count=="number"?l.count=s.longs===String?String(r.count):r.count:l.count=s.longs===String?E.Long.prototype.toString.call(r.count):s.longs===Number?new E.LongBits(r.count.low>>>0,r.count.high>>>0).toNumber():r.count),r.sum!=null&&r.hasOwnProperty("sum")&&(l.sum=s.json&&!isFinite(r.sum)?String(r.sum):r.sum,s.oneofs&&(l._sum="sum")),r.scale!=null&&r.hasOwnProperty("scale")&&(l.scale=r.scale),r.zeroCount!=null&&r.hasOwnProperty("zeroCount")&&(typeof r.zeroCount=="number"?l.zeroCount=s.longs===String?String(r.zeroCount):r.zeroCount:l.zeroCount=s.longs===String?E.Long.prototype.toString.call(r.zeroCount):s.longs===Number?new E.LongBits(r.zeroCount.low>>>0,r.zeroCount.high>>>0).toNumber():r.zeroCount),r.positive!=null&&r.hasOwnProperty("positive")&&(l.positive=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.positive,s)),r.negative!=null&&r.hasOwnProperty("negative")&&(l.negative=d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(r.negative,s)),r.flags!=null&&r.hasOwnProperty("flags")&&(l.flags=r.flags),r.exemplars&&r.exemplars.length){l.exemplars=[];for(var p=0;p<r.exemplars.length;++p)l.exemplars[p]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[p],s)}return r.min!=null&&r.hasOwnProperty("min")&&(l.min=s.json&&!isFinite(r.min)?String(r.min):r.min,s.oneofs&&(l._min="min")),r.max!=null&&r.hasOwnProperty("max")&&(l.max=s.json&&!isFinite(r.max)?String(r.max):r.max,s.oneofs&&(l._max="max")),r.zeroThreshold!=null&&r.hasOwnProperty("zeroThreshold")&&(l.zeroThreshold=s.json&&!isFinite(r.zeroThreshold)?String(r.zeroThreshold):r.zeroThreshold),l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint"},a.Buckets=function(){function o(r){if(this.bucketCounts=[],r)for(var s=Object.keys(r),l=0;l<s.length;++l)r[s[l]]!=null&&(this[s[l]]=r[s[l]])}return o.prototype.offset=null,o.prototype.bucketCounts=E.emptyArray,o.create=function(s){return new o(s)},o.encode=function(s,l){if(l||(l=V.create()),s.offset!=null&&Object.hasOwnProperty.call(s,"offset")&&l.uint32(8).sint32(s.offset),s.bucketCounts!=null&&s.bucketCounts.length){l.uint32(18).fork();for(var c=0;c<s.bucketCounts.length;++c)l.uint64(s.bucketCounts[c]);l.ldelim()}return l},o.encodeDelimited=function(s,l){return this.encode(s,l).ldelim()},o.decode=function(s,l){s instanceof y||(s=y.create(s));for(var c=l===void 0?s.len:s.pos+l,p=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;s.pos<c;){var _=s.uint32();switch(_>>>3){case 1:{p.offset=s.sint32();break}case 2:{if(p.bucketCounts&&p.bucketCounts.length||(p.bucketCounts=[]),(_&7)===2)for(var f=s.uint32()+s.pos;s.pos<f;)p.bucketCounts.push(s.uint64());else p.bucketCounts.push(s.uint64());break}default:s.skipType(_&7);break}}return p},o.decodeDelimited=function(s){return s instanceof y||(s=new y(s)),this.decode(s,s.uint32())},o.verify=function(s){if(typeof s!="object"||s===null)return"object expected";if(s.offset!=null&&s.hasOwnProperty("offset")&&!E.isInteger(s.offset))return"offset: integer expected";if(s.bucketCounts!=null&&s.hasOwnProperty("bucketCounts")){if(!Array.isArray(s.bucketCounts))return"bucketCounts: array expected";for(var l=0;l<s.bucketCounts.length;++l)if(!E.isInteger(s.bucketCounts[l])&&!(s.bucketCounts[l]&&E.isInteger(s.bucketCounts[l].low)&&E.isInteger(s.bucketCounts[l].high)))return"bucketCounts: integer|Long[] expected"}return null},o.fromObject=function(s){if(s instanceof d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets)return s;var l=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;if(s.offset!=null&&(l.offset=s.offset|0),s.bucketCounts){if(!Array.isArray(s.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.bucketCounts: array expected");l.bucketCounts=[];for(var c=0;c<s.bucketCounts.length;++c)E.Long?(l.bucketCounts[c]=E.Long.fromValue(s.bucketCounts[c])).unsigned=!0:typeof s.bucketCounts[c]=="string"?l.bucketCounts[c]=parseInt(s.bucketCounts[c],10):typeof s.bucketCounts[c]=="number"?l.bucketCounts[c]=s.bucketCounts[c]:typeof s.bucketCounts[c]=="object"&&(l.bucketCounts[c]=new E.LongBits(s.bucketCounts[c].low>>>0,s.bucketCounts[c].high>>>0).toNumber(!0))}return l},o.toObject=function(s,l){l||(l={});var c={};if((l.arrays||l.defaults)&&(c.bucketCounts=[]),l.defaults&&(c.offset=0),s.offset!=null&&s.hasOwnProperty("offset")&&(c.offset=s.offset),s.bucketCounts&&s.bucketCounts.length){c.bucketCounts=[];for(var p=0;p<s.bucketCounts.length;++p)typeof s.bucketCounts[p]=="number"?c.bucketCounts[p]=l.longs===String?String(s.bucketCounts[p]):s.bucketCounts[p]:c.bucketCounts[p]=l.longs===String?E.Long.prototype.toString.call(s.bucketCounts[p]):l.longs===Number?new E.LongBits(s.bucketCounts[p].low>>>0,s.bucketCounts[p].high>>>0).toNumber(!0):s.bucketCounts[p]}return c},o.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},o.getTypeUrl=function(s){return s===void 0&&(s="type.googleapis.com"),s+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},o}(),a}(),i.SummaryDataPoint=function(){function a(u){if(this.attributes=[],this.quantileValues=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.attributes=E.emptyArray,a.prototype.startTimeUnixNano=null,a.prototype.timeUnixNano=null,a.prototype.count=null,a.prototype.sum=null,a.prototype.quantileValues=E.emptyArray,a.prototype.flags=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.startTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"startTimeUnixNano")&&r.uint32(17).fixed64(o.startTimeUnixNano),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(25).fixed64(o.timeUnixNano),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&r.uint32(33).fixed64(o.count),o.sum!=null&&Object.hasOwnProperty.call(o,"sum")&&r.uint32(41).double(o.sum),o.quantileValues!=null&&o.quantileValues.length)for(var s=0;s<o.quantileValues.length;++s)d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.encode(o.quantileValues[s],r.uint32(50).fork()).ldelim();if(o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(58).fork()).ldelim();return o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(64).uint32(o.flags),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;o.pos<s;){var c=o.uint32();switch(c>>>3){case 7:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 2:{l.startTimeUnixNano=o.fixed64();break}case 3:{l.timeUnixNano=o.fixed64();break}case 4:{l.count=o.fixed64();break}case 5:{l.sum=o.double();break}case 6:{l.quantileValues&&l.quantileValues.length||(l.quantileValues=[]),l.quantileValues.push(d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(o,o.uint32()));break}case 8:{l.flags=o.uint32();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var r=0;r<o.attributes.length;++r){var s=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[r]);if(s)return"attributes."+s}}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&!E.isInteger(o.startTimeUnixNano)&&!(o.startTimeUnixNano&&E.isInteger(o.startTimeUnixNano.low)&&E.isInteger(o.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.count!=null&&o.hasOwnProperty("count")&&!E.isInteger(o.count)&&!(o.count&&E.isInteger(o.count.low)&&E.isInteger(o.count.high)))return"count: integer|Long expected";if(o.sum!=null&&o.hasOwnProperty("sum")&&typeof o.sum!="number")return"sum: number expected";if(o.quantileValues!=null&&o.hasOwnProperty("quantileValues")){if(!Array.isArray(o.quantileValues))return"quantileValues: array expected";for(var r=0;r<o.quantileValues.length;++r){var s=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.verify(o.quantileValues[r]);if(s)return"quantileValues."+s}}return o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint)return o;var r=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint;if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}if(o.startTimeUnixNano!=null&&(E.Long?(r.startTimeUnixNano=E.Long.fromValue(o.startTimeUnixNano)).unsigned=!1:typeof o.startTimeUnixNano=="string"?r.startTimeUnixNano=parseInt(o.startTimeUnixNano,10):typeof o.startTimeUnixNano=="number"?r.startTimeUnixNano=o.startTimeUnixNano:typeof o.startTimeUnixNano=="object"&&(r.startTimeUnixNano=new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber())),o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.count!=null&&(E.Long?(r.count=E.Long.fromValue(o.count)).unsigned=!1:typeof o.count=="string"?r.count=parseInt(o.count,10):typeof o.count=="number"?r.count=o.count:typeof o.count=="object"&&(r.count=new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber())),o.sum!=null&&(r.sum=Number(o.sum)),o.quantileValues){if(!Array.isArray(o.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");r.quantileValues=[];for(var s=0;s<o.quantileValues.length;++s){if(typeof o.quantileValues[s]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: object expected");r.quantileValues[s]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.fromObject(o.quantileValues[s])}}return o.flags!=null&&(r.flags=o.flags>>>0),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.quantileValues=[],s.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);s.startTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.startTimeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);s.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.timeUnixNano=r.longs===String?"0":0;if(E.Long){var l=new E.Long(0,0,!1);s.count=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.count=r.longs===String?"0":0;s.sum=0,s.flags=0}if(o.startTimeUnixNano!=null&&o.hasOwnProperty("startTimeUnixNano")&&(typeof o.startTimeUnixNano=="number"?s.startTimeUnixNano=r.longs===String?String(o.startTimeUnixNano):o.startTimeUnixNano:s.startTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.startTimeUnixNano):r.longs===Number?new E.LongBits(o.startTimeUnixNano.low>>>0,o.startTimeUnixNano.high>>>0).toNumber():o.startTimeUnixNano),o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?s.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:s.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?s.count=r.longs===String?String(o.count):o.count:s.count=r.longs===String?E.Long.prototype.toString.call(o.count):r.longs===Number?new E.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber():o.count),o.sum!=null&&o.hasOwnProperty("sum")&&(s.sum=r.json&&!isFinite(o.sum)?String(o.sum):o.sum),o.quantileValues&&o.quantileValues.length){s.quantileValues=[];for(var c=0;c<o.quantileValues.length;++c)s.quantileValues[c]=d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.toObject(o.quantileValues[c],r)}if(o.attributes&&o.attributes.length){s.attributes=[];for(var c=0;c<o.attributes.length;++c)s.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.flags!=null&&o.hasOwnProperty("flags")&&(s.flags=o.flags),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.metrics.v1.SummaryDataPoint"},a.ValueAtQuantile=function(){function u(o){if(o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}return u.prototype.quantile=null,u.prototype.value=null,u.create=function(r){return new u(r)},u.encode=function(r,s){return s||(s=V.create()),r.quantile!=null&&Object.hasOwnProperty.call(r,"quantile")&&s.uint32(9).double(r.quantile),r.value!=null&&Object.hasOwnProperty.call(r,"value")&&s.uint32(17).double(r.value),s},u.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},u.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;r.pos<l;){var p=r.uint32();switch(p>>>3){case 1:{c.quantile=r.double();break}case 2:{c.value=r.double();break}default:r.skipType(p&7);break}}return c},u.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},u.verify=function(r){return typeof r!="object"||r===null?"object expected":r.quantile!=null&&r.hasOwnProperty("quantile")&&typeof r.quantile!="number"?"quantile: number expected":r.value!=null&&r.hasOwnProperty("value")&&typeof r.value!="number"?"value: number expected":null},u.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return r;var s=new d.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return r.quantile!=null&&(s.quantile=Number(r.quantile)),r.value!=null&&(s.value=Number(r.value)),s},u.toObject=function(r,s){s||(s={});var l={};return s.defaults&&(l.quantile=0,l.value=0),r.quantile!=null&&r.hasOwnProperty("quantile")&&(l.quantile=s.json&&!isFinite(r.quantile)?String(r.quantile):r.quantile),r.value!=null&&r.hasOwnProperty("value")&&(l.value=s.json&&!isFinite(r.value)?String(r.value):r.value),l},u.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},u.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},u}(),a}(),i.Exemplar=function(){function a(o){if(this.filteredAttributes=[],o)for(var r=Object.keys(o),s=0;s<r.length;++s)o[r[s]]!=null&&(this[r[s]]=o[r[s]])}a.prototype.filteredAttributes=E.emptyArray,a.prototype.timeUnixNano=null,a.prototype.asDouble=null,a.prototype.asInt=null,a.prototype.spanId=null,a.prototype.traceId=null;var u;return Object.defineProperty(a.prototype,"value",{get:E.oneOfGetter(u=["asDouble","asInt"]),set:E.oneOfSetter(u)}),a.create=function(r){return new a(r)},a.encode=function(r,s){if(s||(s=V.create()),r.timeUnixNano!=null&&Object.hasOwnProperty.call(r,"timeUnixNano")&&s.uint32(17).fixed64(r.timeUnixNano),r.asDouble!=null&&Object.hasOwnProperty.call(r,"asDouble")&&s.uint32(25).double(r.asDouble),r.spanId!=null&&Object.hasOwnProperty.call(r,"spanId")&&s.uint32(34).bytes(r.spanId),r.traceId!=null&&Object.hasOwnProperty.call(r,"traceId")&&s.uint32(42).bytes(r.traceId),r.asInt!=null&&Object.hasOwnProperty.call(r,"asInt")&&s.uint32(49).sfixed64(r.asInt),r.filteredAttributes!=null&&r.filteredAttributes.length)for(var l=0;l<r.filteredAttributes.length;++l)d.opentelemetry.proto.common.v1.KeyValue.encode(r.filteredAttributes[l],s.uint32(58).fork()).ldelim();return s},a.encodeDelimited=function(r,s){return this.encode(r,s).ldelim()},a.decode=function(r,s){r instanceof y||(r=y.create(r));for(var l=s===void 0?r.len:r.pos+s,c=new d.opentelemetry.proto.metrics.v1.Exemplar;r.pos<l;){var p=r.uint32();switch(p>>>3){case 7:{c.filteredAttributes&&c.filteredAttributes.length||(c.filteredAttributes=[]),c.filteredAttributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(r,r.uint32()));break}case 2:{c.timeUnixNano=r.fixed64();break}case 3:{c.asDouble=r.double();break}case 6:{c.asInt=r.sfixed64();break}case 4:{c.spanId=r.bytes();break}case 5:{c.traceId=r.bytes();break}default:r.skipType(p&7);break}}return c},a.decodeDelimited=function(r){return r instanceof y||(r=new y(r)),this.decode(r,r.uint32())},a.verify=function(r){if(typeof r!="object"||r===null)return"object expected";var s={};if(r.filteredAttributes!=null&&r.hasOwnProperty("filteredAttributes")){if(!Array.isArray(r.filteredAttributes))return"filteredAttributes: array expected";for(var l=0;l<r.filteredAttributes.length;++l){var c=d.opentelemetry.proto.common.v1.KeyValue.verify(r.filteredAttributes[l]);if(c)return"filteredAttributes."+c}}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&!E.isInteger(r.timeUnixNano)&&!(r.timeUnixNano&&E.isInteger(r.timeUnixNano.low)&&E.isInteger(r.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(s.value=1,typeof r.asDouble!="number"))return"asDouble: number expected";if(r.asInt!=null&&r.hasOwnProperty("asInt")){if(s.value===1)return"value: multiple values";if(s.value=1,!E.isInteger(r.asInt)&&!(r.asInt&&E.isInteger(r.asInt.low)&&E.isInteger(r.asInt.high)))return"asInt: integer|Long expected"}return r.spanId!=null&&r.hasOwnProperty("spanId")&&!(r.spanId&&typeof r.spanId.length=="number"||E.isString(r.spanId))?"spanId: buffer expected":r.traceId!=null&&r.hasOwnProperty("traceId")&&!(r.traceId&&typeof r.traceId.length=="number"||E.isString(r.traceId))?"traceId: buffer expected":null},a.fromObject=function(r){if(r instanceof d.opentelemetry.proto.metrics.v1.Exemplar)return r;var s=new d.opentelemetry.proto.metrics.v1.Exemplar;if(r.filteredAttributes){if(!Array.isArray(r.filteredAttributes))throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: array expected");s.filteredAttributes=[];for(var l=0;l<r.filteredAttributes.length;++l){if(typeof r.filteredAttributes[l]!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Exemplar.filteredAttributes: object expected");s.filteredAttributes[l]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(r.filteredAttributes[l])}}return r.timeUnixNano!=null&&(E.Long?(s.timeUnixNano=E.Long.fromValue(r.timeUnixNano)).unsigned=!1:typeof r.timeUnixNano=="string"?s.timeUnixNano=parseInt(r.timeUnixNano,10):typeof r.timeUnixNano=="number"?s.timeUnixNano=r.timeUnixNano:typeof r.timeUnixNano=="object"&&(s.timeUnixNano=new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber())),r.asDouble!=null&&(s.asDouble=Number(r.asDouble)),r.asInt!=null&&(E.Long?(s.asInt=E.Long.fromValue(r.asInt)).unsigned=!1:typeof r.asInt=="string"?s.asInt=parseInt(r.asInt,10):typeof r.asInt=="number"?s.asInt=r.asInt:typeof r.asInt=="object"&&(s.asInt=new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber())),r.spanId!=null&&(typeof r.spanId=="string"?E.base64.decode(r.spanId,s.spanId=E.newBuffer(E.base64.length(r.spanId)),0):r.spanId.length>=0&&(s.spanId=r.spanId)),r.traceId!=null&&(typeof r.traceId=="string"?E.base64.decode(r.traceId,s.traceId=E.newBuffer(E.base64.length(r.traceId)),0):r.traceId.length>=0&&(s.traceId=r.traceId)),s},a.toObject=function(r,s){s||(s={});var l={};if((s.arrays||s.defaults)&&(l.filteredAttributes=[]),s.defaults){if(E.Long){var c=new E.Long(0,0,!1);l.timeUnixNano=s.longs===String?c.toString():s.longs===Number?c.toNumber():c}else l.timeUnixNano=s.longs===String?"0":0;s.bytes===String?l.spanId="":(l.spanId=[],s.bytes!==Array&&(l.spanId=E.newBuffer(l.spanId))),s.bytes===String?l.traceId="":(l.traceId=[],s.bytes!==Array&&(l.traceId=E.newBuffer(l.traceId)))}if(r.timeUnixNano!=null&&r.hasOwnProperty("timeUnixNano")&&(typeof r.timeUnixNano=="number"?l.timeUnixNano=s.longs===String?String(r.timeUnixNano):r.timeUnixNano:l.timeUnixNano=s.longs===String?E.Long.prototype.toString.call(r.timeUnixNano):s.longs===Number?new E.LongBits(r.timeUnixNano.low>>>0,r.timeUnixNano.high>>>0).toNumber():r.timeUnixNano),r.asDouble!=null&&r.hasOwnProperty("asDouble")&&(l.asDouble=s.json&&!isFinite(r.asDouble)?String(r.asDouble):r.asDouble,s.oneofs&&(l.value="asDouble")),r.spanId!=null&&r.hasOwnProperty("spanId")&&(l.spanId=s.bytes===String?E.base64.encode(r.spanId,0,r.spanId.length):s.bytes===Array?Array.prototype.slice.call(r.spanId):r.spanId),r.traceId!=null&&r.hasOwnProperty("traceId")&&(l.traceId=s.bytes===String?E.base64.encode(r.traceId,0,r.traceId.length):s.bytes===Array?Array.prototype.slice.call(r.traceId):r.traceId),r.asInt!=null&&r.hasOwnProperty("asInt")&&(typeof r.asInt=="number"?l.asInt=s.longs===String?String(r.asInt):r.asInt:l.asInt=s.longs===String?E.Long.prototype.toString.call(r.asInt):s.longs===Number?new E.LongBits(r.asInt.low>>>0,r.asInt.high>>>0).toNumber():r.asInt,s.oneofs&&(l.value="asInt")),r.filteredAttributes&&r.filteredAttributes.length){l.filteredAttributes=[];for(var p=0;p<r.filteredAttributes.length;++p)l.filteredAttributes[p]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[p],s)}return l},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/opentelemetry.proto.metrics.v1.Exemplar"},a}(),i}(),n}(),e.logs=function(){var n={};return n.v1=function(){var i={};return i.LogsData=function(){function a(u){if(this.resourceLogs=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.resourceLogs=E.emptyArray,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resourceLogs!=null&&o.resourceLogs.length)for(var s=0;s<o.resourceLogs.length;++s)d.opentelemetry.proto.logs.v1.ResourceLogs.encode(o.resourceLogs[s],r.uint32(10).fork()).ldelim();return r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogsData;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.resourceLogs&&l.resourceLogs.length||(l.resourceLogs=[]),l.resourceLogs.push(d.opentelemetry.proto.logs.v1.ResourceLogs.decode(o,o.uint32()));break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resourceLogs!=null&&o.hasOwnProperty("resourceLogs")){if(!Array.isArray(o.resourceLogs))return"resourceLogs: array expected";for(var r=0;r<o.resourceLogs.length;++r){var s=d.opentelemetry.proto.logs.v1.ResourceLogs.verify(o.resourceLogs[r]);if(s)return"resourceLogs."+s}}return null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogsData)return o;var r=new d.opentelemetry.proto.logs.v1.LogsData;if(o.resourceLogs){if(!Array.isArray(o.resourceLogs))throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: array expected");r.resourceLogs=[];for(var s=0;s<o.resourceLogs.length;++s){if(typeof o.resourceLogs[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogsData.resourceLogs: object expected");r.resourceLogs[s]=d.opentelemetry.proto.logs.v1.ResourceLogs.fromObject(o.resourceLogs[s])}}return r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.resourceLogs=[]),o.resourceLogs&&o.resourceLogs.length){s.resourceLogs=[];for(var l=0;l<o.resourceLogs.length;++l)s.resourceLogs[l]=d.opentelemetry.proto.logs.v1.ResourceLogs.toObject(o.resourceLogs[l],r)}return s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogsData"},a}(),i.ResourceLogs=function(){function a(u){if(this.scopeLogs=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.resource=null,a.prototype.scopeLogs=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.resource!=null&&Object.hasOwnProperty.call(o,"resource")&&d.opentelemetry.proto.resource.v1.Resource.encode(o.resource,r.uint32(10).fork()).ldelim(),o.scopeLogs!=null&&o.scopeLogs.length)for(var s=0;s<o.scopeLogs.length;++s)d.opentelemetry.proto.logs.v1.ScopeLogs.encode(o.scopeLogs[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ResourceLogs;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.resource=d.opentelemetry.proto.resource.v1.Resource.decode(o,o.uint32());break}case 2:{l.scopeLogs&&l.scopeLogs.length||(l.scopeLogs=[]),l.scopeLogs.push(d.opentelemetry.proto.logs.v1.ScopeLogs.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.resource!=null&&o.hasOwnProperty("resource")){var r=d.opentelemetry.proto.resource.v1.Resource.verify(o.resource);if(r)return"resource."+r}if(o.scopeLogs!=null&&o.hasOwnProperty("scopeLogs")){if(!Array.isArray(o.scopeLogs))return"scopeLogs: array expected";for(var s=0;s<o.scopeLogs.length;++s){var r=d.opentelemetry.proto.logs.v1.ScopeLogs.verify(o.scopeLogs[s]);if(r)return"scopeLogs."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ResourceLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ResourceLogs;if(o.resource!=null){if(typeof o.resource!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.resource: object expected");r.resource=d.opentelemetry.proto.resource.v1.Resource.fromObject(o.resource)}if(o.scopeLogs){if(!Array.isArray(o.scopeLogs))throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: array expected");r.scopeLogs=[];for(var s=0;s<o.scopeLogs.length;++s){if(typeof o.scopeLogs[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ResourceLogs.scopeLogs: object expected");r.scopeLogs[s]=d.opentelemetry.proto.logs.v1.ScopeLogs.fromObject(o.scopeLogs[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.scopeLogs=[]),r.defaults&&(s.resource=null,s.schemaUrl=""),o.resource!=null&&o.hasOwnProperty("resource")&&(s.resource=d.opentelemetry.proto.resource.v1.Resource.toObject(o.resource,r)),o.scopeLogs&&o.scopeLogs.length){s.scopeLogs=[];for(var l=0;l<o.scopeLogs.length;++l)s.scopeLogs[l]=d.opentelemetry.proto.logs.v1.ScopeLogs.toObject(o.scopeLogs[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ResourceLogs"},a}(),i.ScopeLogs=function(){function a(u){if(this.logRecords=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.scope=null,a.prototype.logRecords=E.emptyArray,a.prototype.schemaUrl=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.scope!=null&&Object.hasOwnProperty.call(o,"scope")&&d.opentelemetry.proto.common.v1.InstrumentationScope.encode(o.scope,r.uint32(10).fork()).ldelim(),o.logRecords!=null&&o.logRecords.length)for(var s=0;s<o.logRecords.length;++s)d.opentelemetry.proto.logs.v1.LogRecord.encode(o.logRecords[s],r.uint32(18).fork()).ldelim();return o.schemaUrl!=null&&Object.hasOwnProperty.call(o,"schemaUrl")&&r.uint32(26).string(o.schemaUrl),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.ScopeLogs;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.decode(o,o.uint32());break}case 2:{l.logRecords&&l.logRecords.length||(l.logRecords=[]),l.logRecords.push(d.opentelemetry.proto.logs.v1.LogRecord.decode(o,o.uint32()));break}case 3:{l.schemaUrl=o.string();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.scope!=null&&o.hasOwnProperty("scope")){var r=d.opentelemetry.proto.common.v1.InstrumentationScope.verify(o.scope);if(r)return"scope."+r}if(o.logRecords!=null&&o.hasOwnProperty("logRecords")){if(!Array.isArray(o.logRecords))return"logRecords: array expected";for(var s=0;s<o.logRecords.length;++s){var r=d.opentelemetry.proto.logs.v1.LogRecord.verify(o.logRecords[s]);if(r)return"logRecords."+r}}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&!E.isString(o.schemaUrl)?"schemaUrl: string expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.ScopeLogs)return o;var r=new d.opentelemetry.proto.logs.v1.ScopeLogs;if(o.scope!=null){if(typeof o.scope!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.scope: object expected");r.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.fromObject(o.scope)}if(o.logRecords){if(!Array.isArray(o.logRecords))throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: array expected");r.logRecords=[];for(var s=0;s<o.logRecords.length;++s){if(typeof o.logRecords[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.ScopeLogs.logRecords: object expected");r.logRecords[s]=d.opentelemetry.proto.logs.v1.LogRecord.fromObject(o.logRecords[s])}}return o.schemaUrl!=null&&(r.schemaUrl=String(o.schemaUrl)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.logRecords=[]),r.defaults&&(s.scope=null,s.schemaUrl=""),o.scope!=null&&o.hasOwnProperty("scope")&&(s.scope=d.opentelemetry.proto.common.v1.InstrumentationScope.toObject(o.scope,r)),o.logRecords&&o.logRecords.length){s.logRecords=[];for(var l=0;l<o.logRecords.length;++l)s.logRecords[l]=d.opentelemetry.proto.logs.v1.LogRecord.toObject(o.logRecords[l],r)}return o.schemaUrl!=null&&o.hasOwnProperty("schemaUrl")&&(s.schemaUrl=o.schemaUrl),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.ScopeLogs"},a}(),i.SeverityNumber=function(){var a={},u=Object.create(a);return u[a[0]="SEVERITY_NUMBER_UNSPECIFIED"]=0,u[a[1]="SEVERITY_NUMBER_TRACE"]=1,u[a[2]="SEVERITY_NUMBER_TRACE2"]=2,u[a[3]="SEVERITY_NUMBER_TRACE3"]=3,u[a[4]="SEVERITY_NUMBER_TRACE4"]=4,u[a[5]="SEVERITY_NUMBER_DEBUG"]=5,u[a[6]="SEVERITY_NUMBER_DEBUG2"]=6,u[a[7]="SEVERITY_NUMBER_DEBUG3"]=7,u[a[8]="SEVERITY_NUMBER_DEBUG4"]=8,u[a[9]="SEVERITY_NUMBER_INFO"]=9,u[a[10]="SEVERITY_NUMBER_INFO2"]=10,u[a[11]="SEVERITY_NUMBER_INFO3"]=11,u[a[12]="SEVERITY_NUMBER_INFO4"]=12,u[a[13]="SEVERITY_NUMBER_WARN"]=13,u[a[14]="SEVERITY_NUMBER_WARN2"]=14,u[a[15]="SEVERITY_NUMBER_WARN3"]=15,u[a[16]="SEVERITY_NUMBER_WARN4"]=16,u[a[17]="SEVERITY_NUMBER_ERROR"]=17,u[a[18]="SEVERITY_NUMBER_ERROR2"]=18,u[a[19]="SEVERITY_NUMBER_ERROR3"]=19,u[a[20]="SEVERITY_NUMBER_ERROR4"]=20,u[a[21]="SEVERITY_NUMBER_FATAL"]=21,u[a[22]="SEVERITY_NUMBER_FATAL2"]=22,u[a[23]="SEVERITY_NUMBER_FATAL3"]=23,u[a[24]="SEVERITY_NUMBER_FATAL4"]=24,u}(),i.LogRecordFlags=function(){var a={},u=Object.create(a);return u[a[0]="LOG_RECORD_FLAGS_DO_NOT_USE"]=0,u[a[255]="LOG_RECORD_FLAGS_TRACE_FLAGS_MASK"]=255,u}(),i.LogRecord=function(){function a(u){if(this.attributes=[],u)for(var o=Object.keys(u),r=0;r<o.length;++r)u[o[r]]!=null&&(this[o[r]]=u[o[r]])}return a.prototype.timeUnixNano=null,a.prototype.observedTimeUnixNano=null,a.prototype.severityNumber=null,a.prototype.severityText=null,a.prototype.body=null,a.prototype.attributes=E.emptyArray,a.prototype.droppedAttributesCount=null,a.prototype.flags=null,a.prototype.traceId=null,a.prototype.spanId=null,a.create=function(o){return new a(o)},a.encode=function(o,r){if(r||(r=V.create()),o.timeUnixNano!=null&&Object.hasOwnProperty.call(o,"timeUnixNano")&&r.uint32(9).fixed64(o.timeUnixNano),o.severityNumber!=null&&Object.hasOwnProperty.call(o,"severityNumber")&&r.uint32(16).int32(o.severityNumber),o.severityText!=null&&Object.hasOwnProperty.call(o,"severityText")&&r.uint32(26).string(o.severityText),o.body!=null&&Object.hasOwnProperty.call(o,"body")&&d.opentelemetry.proto.common.v1.AnyValue.encode(o.body,r.uint32(42).fork()).ldelim(),o.attributes!=null&&o.attributes.length)for(var s=0;s<o.attributes.length;++s)d.opentelemetry.proto.common.v1.KeyValue.encode(o.attributes[s],r.uint32(50).fork()).ldelim();return o.droppedAttributesCount!=null&&Object.hasOwnProperty.call(o,"droppedAttributesCount")&&r.uint32(56).uint32(o.droppedAttributesCount),o.flags!=null&&Object.hasOwnProperty.call(o,"flags")&&r.uint32(69).fixed32(o.flags),o.traceId!=null&&Object.hasOwnProperty.call(o,"traceId")&&r.uint32(74).bytes(o.traceId),o.spanId!=null&&Object.hasOwnProperty.call(o,"spanId")&&r.uint32(82).bytes(o.spanId),o.observedTimeUnixNano!=null&&Object.hasOwnProperty.call(o,"observedTimeUnixNano")&&r.uint32(89).fixed64(o.observedTimeUnixNano),r},a.encodeDelimited=function(o,r){return this.encode(o,r).ldelim()},a.decode=function(o,r){o instanceof y||(o=y.create(o));for(var s=r===void 0?o.len:o.pos+r,l=new d.opentelemetry.proto.logs.v1.LogRecord;o.pos<s;){var c=o.uint32();switch(c>>>3){case 1:{l.timeUnixNano=o.fixed64();break}case 11:{l.observedTimeUnixNano=o.fixed64();break}case 2:{l.severityNumber=o.int32();break}case 3:{l.severityText=o.string();break}case 5:{l.body=d.opentelemetry.proto.common.v1.AnyValue.decode(o,o.uint32());break}case 6:{l.attributes&&l.attributes.length||(l.attributes=[]),l.attributes.push(d.opentelemetry.proto.common.v1.KeyValue.decode(o,o.uint32()));break}case 7:{l.droppedAttributesCount=o.uint32();break}case 8:{l.flags=o.fixed32();break}case 9:{l.traceId=o.bytes();break}case 10:{l.spanId=o.bytes();break}default:o.skipType(c&7);break}}return l},a.decodeDelimited=function(o){return o instanceof y||(o=new y(o)),this.decode(o,o.uint32())},a.verify=function(o){if(typeof o!="object"||o===null)return"object expected";if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&!E.isInteger(o.timeUnixNano)&&!(o.timeUnixNano&&E.isInteger(o.timeUnixNano.low)&&E.isInteger(o.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&!E.isInteger(o.observedTimeUnixNano)&&!(o.observedTimeUnixNano&&E.isInteger(o.observedTimeUnixNano.low)&&E.isInteger(o.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(o.severityNumber!=null&&o.hasOwnProperty("severityNumber"))switch(o.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(o.severityText!=null&&o.hasOwnProperty("severityText")&&!E.isString(o.severityText))return"severityText: string expected";if(o.body!=null&&o.hasOwnProperty("body")){var r=d.opentelemetry.proto.common.v1.AnyValue.verify(o.body);if(r)return"body."+r}if(o.attributes!=null&&o.hasOwnProperty("attributes")){if(!Array.isArray(o.attributes))return"attributes: array expected";for(var s=0;s<o.attributes.length;++s){var r=d.opentelemetry.proto.common.v1.KeyValue.verify(o.attributes[s]);if(r)return"attributes."+r}}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&!E.isInteger(o.droppedAttributesCount)?"droppedAttributesCount: integer expected":o.flags!=null&&o.hasOwnProperty("flags")&&!E.isInteger(o.flags)?"flags: integer expected":o.traceId!=null&&o.hasOwnProperty("traceId")&&!(o.traceId&&typeof o.traceId.length=="number"||E.isString(o.traceId))?"traceId: buffer expected":o.spanId!=null&&o.hasOwnProperty("spanId")&&!(o.spanId&&typeof o.spanId.length=="number"||E.isString(o.spanId))?"spanId: buffer expected":null},a.fromObject=function(o){if(o instanceof d.opentelemetry.proto.logs.v1.LogRecord)return o;var r=new d.opentelemetry.proto.logs.v1.LogRecord;switch(o.timeUnixNano!=null&&(E.Long?(r.timeUnixNano=E.Long.fromValue(o.timeUnixNano)).unsigned=!1:typeof o.timeUnixNano=="string"?r.timeUnixNano=parseInt(o.timeUnixNano,10):typeof o.timeUnixNano=="number"?r.timeUnixNano=o.timeUnixNano:typeof o.timeUnixNano=="object"&&(r.timeUnixNano=new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber())),o.observedTimeUnixNano!=null&&(E.Long?(r.observedTimeUnixNano=E.Long.fromValue(o.observedTimeUnixNano)).unsigned=!1:typeof o.observedTimeUnixNano=="string"?r.observedTimeUnixNano=parseInt(o.observedTimeUnixNano,10):typeof o.observedTimeUnixNano=="number"?r.observedTimeUnixNano=o.observedTimeUnixNano:typeof o.observedTimeUnixNano=="object"&&(r.observedTimeUnixNano=new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber())),o.severityNumber){default:if(typeof o.severityNumber=="number"){r.severityNumber=o.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:r.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:r.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:r.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:r.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:r.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:r.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:r.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:r.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:r.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:r.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:r.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:r.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:r.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:r.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:r.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:r.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:r.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:r.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:r.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:r.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:r.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:r.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:r.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:r.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:r.severityNumber=24;break}if(o.severityText!=null&&(r.severityText=String(o.severityText)),o.body!=null){if(typeof o.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");r.body=d.opentelemetry.proto.common.v1.AnyValue.fromObject(o.body)}if(o.attributes){if(!Array.isArray(o.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");r.attributes=[];for(var s=0;s<o.attributes.length;++s){if(typeof o.attributes[s]!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: object expected");r.attributes[s]=d.opentelemetry.proto.common.v1.KeyValue.fromObject(o.attributes[s])}}return o.droppedAttributesCount!=null&&(r.droppedAttributesCount=o.droppedAttributesCount>>>0),o.flags!=null&&(r.flags=o.flags>>>0),o.traceId!=null&&(typeof o.traceId=="string"?E.base64.decode(o.traceId,r.traceId=E.newBuffer(E.base64.length(o.traceId)),0):o.traceId.length>=0&&(r.traceId=o.traceId)),o.spanId!=null&&(typeof o.spanId=="string"?E.base64.decode(o.spanId,r.spanId=E.newBuffer(E.base64.length(o.spanId)),0):o.spanId.length>=0&&(r.spanId=o.spanId)),r},a.toObject=function(o,r){r||(r={});var s={};if((r.arrays||r.defaults)&&(s.attributes=[]),r.defaults){if(E.Long){var l=new E.Long(0,0,!1);s.timeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.timeUnixNano=r.longs===String?"0":0;if(s.severityNumber=r.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,s.severityText="",s.body=null,s.droppedAttributesCount=0,s.flags=0,r.bytes===String?s.traceId="":(s.traceId=[],r.bytes!==Array&&(s.traceId=E.newBuffer(s.traceId))),r.bytes===String?s.spanId="":(s.spanId=[],r.bytes!==Array&&(s.spanId=E.newBuffer(s.spanId))),E.Long){var l=new E.Long(0,0,!1);s.observedTimeUnixNano=r.longs===String?l.toString():r.longs===Number?l.toNumber():l}else s.observedTimeUnixNano=r.longs===String?"0":0}if(o.timeUnixNano!=null&&o.hasOwnProperty("timeUnixNano")&&(typeof o.timeUnixNano=="number"?s.timeUnixNano=r.longs===String?String(o.timeUnixNano):o.timeUnixNano:s.timeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.timeUnixNano):r.longs===Number?new E.LongBits(o.timeUnixNano.low>>>0,o.timeUnixNano.high>>>0).toNumber():o.timeUnixNano),o.severityNumber!=null&&o.hasOwnProperty("severityNumber")&&(s.severityNumber=r.enums===String?d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]===void 0?o.severityNumber:d.opentelemetry.proto.logs.v1.SeverityNumber[o.severityNumber]:o.severityNumber),o.severityText!=null&&o.hasOwnProperty("severityText")&&(s.severityText=o.severityText),o.body!=null&&o.hasOwnProperty("body")&&(s.body=d.opentelemetry.proto.common.v1.AnyValue.toObject(o.body,r)),o.attributes&&o.attributes.length){s.attributes=[];for(var c=0;c<o.attributes.length;++c)s.attributes[c]=d.opentelemetry.proto.common.v1.KeyValue.toObject(o.attributes[c],r)}return o.droppedAttributesCount!=null&&o.hasOwnProperty("droppedAttributesCount")&&(s.droppedAttributesCount=o.droppedAttributesCount),o.flags!=null&&o.hasOwnProperty("flags")&&(s.flags=o.flags),o.traceId!=null&&o.hasOwnProperty("traceId")&&(s.traceId=r.bytes===String?E.base64.encode(o.traceId,0,o.traceId.length):r.bytes===Array?Array.prototype.slice.call(o.traceId):o.traceId),o.spanId!=null&&o.hasOwnProperty("spanId")&&(s.spanId=r.bytes===String?E.base64.encode(o.spanId,0,o.spanId.length):r.bytes===Array?Array.prototype.slice.call(o.spanId):o.spanId),o.observedTimeUnixNano!=null&&o.hasOwnProperty("observedTimeUnixNano")&&(typeof o.observedTimeUnixNano=="number"?s.observedTimeUnixNano=r.longs===String?String(o.observedTimeUnixNano):o.observedTimeUnixNano:s.observedTimeUnixNano=r.longs===String?E.Long.prototype.toString.call(o.observedTimeUnixNano):r.longs===Number?new E.LongBits(o.observedTimeUnixNano.low>>>0,o.observedTimeUnixNano.high>>>0).toNumber():o.observedTimeUnixNano),s},a.prototype.toJSON=function(){return this.constructor.toObject(this,I.util.toJSONOptions)},a.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/opentelemetry.proto.logs.v1.LogRecord"},a}(),i}(),n}(),e}(),t}();VL.exports=d});var kr,OW,gW,NW,RW,PW,bW,GL,kL,HL,FL=m(()=>{"use strict";kr=Fe(BL());Cs();ws();Ds();OW=kr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,gW=kr.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,NW=kr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,RW=kr.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,PW=kr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,bW=kr.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,GL={serializeRequest:function(t){var e=Bn(t);return gW.encode(e).finish()},deserializeResponse:function(t){return OW.decode(t)}},kL={serializeRequest:function(t){var e=Vn([t]);return RW.encode(e).finish()},deserializeResponse:function(t){return NW.decode(t)}},HL={serializeRequest:function(t){var e=Un(t);return bW.encode(e).finish()},deserializeResponse:function(t){return PW.decode(t)}}});var YL,Us,qL,jL=m(()=>{"use strict";Cs();ws();Ds();YL={serializeRequest:function(t){var e=Un(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},Us={serializeRequest:function(t){var e=Vn([t],{useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}},qL={serializeRequest:function(t){var e=Bn(t,{useHex:!0,useLongBits:!1}),n=new TextEncoder;return n.encode(JSON.stringify(e))},deserializeResponse:function(t){var e=new TextDecoder;return JSON.parse(e.decode(t))}}});var ud={};Je(ud,{ESpanKind:()=>xs,JsonLogsSerializer:()=>qL,JsonMetricsSerializer:()=>Us,JsonTraceSerializer:()=>YL,ProtobufLogsSerializer:()=>GL,ProtobufMetricsSerializer:()=>kL,ProtobufTraceSerializer:()=>HL,createExportLogsServiceRequest:()=>Bn,createExportMetricsServiceRequest:()=>Vn,createExportTraceServiceRequest:()=>Un,encodeAsLongBits:()=>bs,encodeAsString:()=>ad,getOtlpEncoder:()=>fr,hrTimeToNanos:()=>Ps,toLongBits:()=>id});var Vs=m(()=>{"use strict";Si();ML();Cs();ws();Ds();FL();jL()});var $L,KL=m(()=>{"use strict";$L="0.56.0"});function WL(t){var e=[429,502,503,504];return e.includes(t)}function zL(t){if(t!=null){var e=Number.parseInt(t,10);if(Number.isInteger(e))return e>0?e*1e3:-1;var n=new Date(t).getTime()-Date.now();return n>=0?n:0}}var XL=m(()=>{"use strict"});var ZL={};Je(ZL,{compressAndSend:()=>QL,createHttpAgent:()=>IW,sendWithHttp:()=>MW});import*as Bs from"http";import*as Gs from"https";import*as JL from"zlib";import{Readable as xW}from"stream";function MW(t,e,n,i,a){var u=new URL(t.url),o=Number(process.versions.node.split(".")[0]),r={hostname:u.hostname,port:u.port,path:u.pathname,method:"POST",headers:sd({},t.headers()),agent:e},s=u.protocol==="http:"?Bs.request:Gs.request,l=s(r,function(p){var _=[];p.on("data",function(f){return _.push(f)}),p.on("end",function(){if(p.statusCode&&p.statusCode<299)i({status:"success",data:Buffer.concat(_)});else if(p.statusCode&&WL(p.statusCode))i({status:"retryable",retryInMillis:zL(p.headers["retry-after"])});else{var f=new Gr(p.statusMessage,p.statusCode,Buffer.concat(_).toString());i({status:"failure",error:f})}})});l.setTimeout(a,function(){l.destroy(),i({status:"failure",error:new Error("Request Timeout")})}),l.on("error",function(p){i({status:"failure",error:p})});var c=o>=14?"close":"abort";l.on(c,function(){i({status:"failure",error:new Error("Request timed out")})}),QL(l,t.compression,n,function(p){i({status:"failure",error:p})})}function QL(t,e,n,i){var a=LW(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(JL.createGzip()).on("error",i)),a.pipe(t).on("error",i)}function LW(t){var e=new xW;return e.push(t),e.push(null),e}function IW(t,e){var n=new URL(t),i=n.protocol==="http:"?Bs.Agent:Gs.Agent;return new i(e)}var sd,eI=m(()=>{"use strict";XL();Ss();sd=function(){return sd=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},sd.apply(this,arguments)}});function tI(t){return new DW(t)}var CW,wW,DW,rI=m(()=>{"use strict";CW=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},wW=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},DW=function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return CW(this,void 0,void 0,function(){var i,a,u,o=this;return wW(this,function(r){return this._send==null&&(i=(eI(),Y(ZL)),a=i.sendWithHttp,u=i.createHttpAgent,this._agent=u(this._parameters.url,this._parameters.agentOptions),this._send=a),[2,new Promise(function(s){var l;(l=o._send)===null||l===void 0||l.call(o,o._parameters,o._agent,e,function(c){s(c)},n)})]})})},t.prototype.shutdown=function(){},t}()});function FW(){return Math.random()*(2*nI)-nI}function oI(t){return new YW(t.transport)}var UW,VW,BW,GW,kW,HW,nI,YW,iI=m(()=>{"use strict";UW=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},VW=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},BW=5,GW=1e3,kW=5e3,HW=1.5,nI=.2;YW=function(){function t(e){this._transport=e}return t.prototype.retry=function(e,n,i){var a=this;return new Promise(function(u,o){setTimeout(function(){a._transport.send(e,n).then(u,o)},i)})},t.prototype.send=function(e,n){var i;return UW(this,void 0,void 0,function(){var a,u,o,r,s,l,c;return VW(this,function(p){switch(p.label){case 0:return a=Date.now()+n,[4,this._transport.send(e,n)];case 1:u=p.sent(),o=BW,r=GW,p.label=2;case 2:return u.status==="retryable"&&o>0?(o--,s=Math.max(Math.min(r,kW)+FW(),0),r=r*HW,l=(i=u.retryInMillis)!==null&&i!==void 0?i:s,c=a-Date.now(),l>c?[2,u]:[4,this.retry(e,c,l)]):[3,4];case 3:return u=p.sent(),[3,2];case 4:return[2,u]}})})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}()});function ks(t,e){return As({transport:oI({transport:tI(t)}),serializer:e,promiseHandler:ys(t)},{timeout:t.timeoutMillis})}var aI=m(()=>{"use strict";nd();rI();rd();iI()});function uI(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!=null&&n!==""){var i=Number(n);if(!Number.isNaN(i)&&Number.isFinite(i)&&i>0)return i;g.warn("Configuration: "+t+" is invalid, expected number greater than 0 (actual: "+n+")")}}function qW(t){var e=uI("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=uI("OTEL_EXPORTER_OTLP_TIMEOUT");return e??n}function sI(t){var e,n=(e=process.env[t])===null||e===void 0?void 0:e.trim();if(n!==""){if(n==null||n==="none"||n==="gzip")return n;g.warn("Configuration: "+t+" is invalid, expected 'none' or 'gzip' (actual: '"+n+"')")}}function jW(t){var e=sI("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=sI("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function Hs(t){return{timeoutMillis:qW(t),compression:jW(t)}}var ld=m(()=>{"use strict";M()});function lI(t){return function(){var e,n={};return Object.entries((e=t?.())!==null&&e!==void 0?e:{}).forEach(function(i){var a=$W(i,2),u=a[0],o=a[1];typeof o<"u"?n[u]=String(o):g.warn('Header "'+u+'" has invalid value ('+o+") and will be ignored")}),n}}var $W,cI=m(()=>{"use strict";M();$W=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}});function KW(t,e,n){var i=Hr({},n()),a={};return function(){return e!=null&&Object.assign(a,e()),t!=null&&Object.assign(a,t()),Object.assign(a,i)}}function WW(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function fI(t,e,n){var i,a,u,o;return Hr(Hr({},Ts(t,e,n)),{headers:KW(lI(t.headers),e.headers,n.headers),url:(a=(i=WW(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url,agentOptions:(o=(u=t.agentOptions)!==null&&u!==void 0?u:e.agentOptions)!==null&&o!==void 0?o:n.agentOptions})}function pI(t,e){return Hr(Hr({},vs()),{headers:function(){return t},url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}})}var Hr,dI=m(()=>{"use strict";di();cI();Hr=function(){return Hr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Hr.apply(this,arguments)}});function zW(t){var e,n,i=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_HEADERS"])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),u=Rn.parseKeyPairsIntoRecord(i),o=Rn.parseKeyPairsIntoRecord(a);if(!(Object.keys(u).length===0&&Object.keys(o).length===0))return Object.assign({},Rn.parseKeyPairsIntoRecord(a),Rn.parseKeyPairsIntoRecord(i))}function XW(t){try{var e=new URL(t);return e.toString()}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}}function JW(t,e){try{new URL(t)}catch{g.warn("Configuration: Could not parse environment-provided export URL: '"+t+"', falling back to undefined");return}t.endsWith("/")||(t=t+"/"),t+=e;try{new URL(t)}catch{g.warn("Configuration: Provided URL appended with '"+e+"' is not a valid URL, using 'undefined' instead of '"+t+"'");return}return t}function QW(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return JW(n,t)}function ZW(t){var e,n=(e=process.env["OTEL_EXPORTER_OTLP_"+t+"_ENDPOINT"])===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return XW(n)}function EI(t,e){var n;return Fs(Fs({},Hs(t)),{url:(n=ZW(t))!==null&&n!==void 0?n:QW(e),headers:hs(zW(t))})}var Fs,_I=m(()=>{"use strict";K();M();ld();di();Fs=function(){return Fs=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Fs.apply(this,arguments)}});function ez(t){return t?.keepAlive!=null&&(t.httpAgentOptions!=null?t.httpAgentOptions.keepAlive==null&&(t.httpAgentOptions.keepAlive=t.keepAlive):t.httpAgentOptions={keepAlive:t.keepAlive}),t.httpAgentOptions}function Ys(t,e,n,i){return t.metadata&&g.warn("Metadata cannot be set when using http"),fI({url:t.url,headers:hs(t.headers),concurrencyLimit:t.concurrencyLimit,timeoutMillis:t.timeoutMillis,compression:t.compression,agentOptions:ez(t)},EI(e,n),pI(i,n))}var SI=m(()=>{"use strict";dI();_I();M();di()});var hI={};Je(hI,{convertLegacyHttpOptions:()=>Ys,createOtlpHttpExportDelegate:()=>ks,getSharedConfigurationFromEnvironment:()=>Hs});var cd=m(()=>{"use strict";aI();ld();SI()});var tz,qs,rz,js,TI=m(()=>{"use strict";od();Vs();KL();cd();tz=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),qs=function(){return qs=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},qs.apply(this,arguments)},rz={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+$L},js=function(t){tz(e,t);function e(n){return t.call(this,ks(Ys(n??{},"METRICS","v1/metrics",qs(qs({},rz),{"Content-Type":"application/json"})),Us),n)||this}return e}(Rs)});var vI=m(()=>{"use strict";TI()});var mI=m(()=>{"use strict";vI()});var yI={};Je(yI,{AggregationTemporalityPreference:()=>Br,CumulativeTemporalitySelector:()=>_i,DeltaTemporalitySelector:()=>gs,LowMemoryTemporalitySelector:()=>Ns,OTLPMetricExporter:()=>js,OTLPMetricExporterBase:()=>Rs});var AI=m(()=>{"use strict";mI();td();od()});var OI=h($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.createServiceClientConstructor=void 0;var nz=eo();function oz(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:i=>i,requestDeserialize:i=>i,responseSerialize:i=>i,responseDeserialize:i=>i}};return nz.makeGenericClientConstructor(n,e)}$s.createServiceClientConstructor=oz});var hi=h(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.createOtlpGrpcExporterTransport=rt.GrpcExporterTransport=rt.createEmptyMetadata=rt.createSslCredentials=rt.createInsecureCredentials=void 0;var iz=0,az=2;function uz(t){return t==="gzip"?az:iz}function sz(){let{credentials:t}=eo();return t.createInsecure()}rt.createInsecureCredentials=sz;function lz(t,e,n){let{credentials:i}=eo();return i.createSsl(t,e,n)}rt.createSslCredentials=lz;function cz(){let{Metadata:t}=eo();return new t}rt.createEmptyMetadata=cz;var Ks=class{constructor(e){this._parameters=e}shutdown(){var e;(e=this._client)===null||e===void 0||e.close()}send(e,n){let i=Buffer.from(e);if(this._client==null){let{createServiceClientConstructor:a}=OI();try{this._metadata=this._parameters.metadata()}catch(o){return Promise.resolve({status:"failure",error:o})}let u=a(this._parameters.grpcPath,this._parameters.grpcName);try{this._client=new u(this._parameters.address,this._parameters.credentials(),{"grpc.default_compression_algorithm":uz(this._parameters.compression)})}catch(o){return Promise.resolve({status:"failure",error:o})}}return new Promise(a=>{let u=Date.now()+n;if(this._metadata==null)return a({error:new Error("metadata was null"),status:"failure"});this._client.export(i,this._metadata,{deadline:u},(o,r)=>{a(o?{status:"failure",error:o}:{data:r,status:"success"})})})}};rt.GrpcExporterTransport=Ks;function fz(t){return new Ks(t)}rt.createOtlpGrpcExporterTransport=fz});var gI=h(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.VERSION=void 0;Ws.VERSION="0.56.0"});var xI=h(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.getOtlpGrpcDefaultConfiguration=pr.mergeOtlpGrpcConfigurationWithDefaults=pr.validateAndNormalizeUrl=void 0;var PI=(Ei(),Y(Os)),Ti=hi(),pz=gI(),dz=L("url"),NI=(M(),Y(Pe));function bI(t){var e;t=t.trim(),t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let i=new dz.URL(t);return i.protocol==="unix:"?t:(i.pathname&&i.pathname!=="/"&&NI.diag.warn("URL path should not be set when using grpc, the path part of the URL will be ignored."),i.protocol!==""&&!(!((e=i.protocol)===null||e===void 0)&&e.match(/^(http)s?:$/))&&NI.diag.warn("URL protocol should be http(s)://. Using http://."),i.host)}pr.validateAndNormalizeUrl=bI;function RI(t,e){for(let[n,i]of Object.entries(e.getMap()))t.get(n).length<1&&t.set(n,i)}function Ez(t,e,n){var i,a,u,o,r;let s=(a=(i=t.url)!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url;return Object.assign(Object.assign({},(0,PI.mergeOtlpSharedConfigurationWithDefaults)(t,e,n)),{metadata:()=>{var l,c,p,_;let f=n.metadata();return RI(f,(c=(l=t.metadata)===null||l===void 0?void 0:l.call(t).clone())!==null&&c!==void 0?c:(0,Ti.createEmptyMetadata)()),RI(f,(_=(p=e.metadata)===null||p===void 0?void 0:p.call(e))!==null&&_!==void 0?_:(0,Ti.createEmptyMetadata)()),f},url:bI(s),credentials:(r=(u=t.credentials)!==null&&u!==void 0?u:(o=e.credentials)===null||o===void 0?void 0:o.call(e,s))!==null&&r!==void 0?r:n.credentials(s)})}pr.mergeOtlpGrpcConfigurationWithDefaults=Ez;function _z(){return Object.assign(Object.assign({},(0,PI.getSharedConfigurationDefaults)()),{metadata:()=>{let t=(0,Ti.createEmptyMetadata)();return t.set("User-Agent",`OTel-OTLP-Exporter-JavaScript/${pz.VERSION}`),t},url:"http://localhost:4317",credentials:t=>t.startsWith("http://")?()=>(0,Ti.createInsecureCredentials)():()=>(0,Ti.createSslCredentials)()})}pr.getOtlpGrpcDefaultConfiguration=_z});var wI=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.getOtlpGrpcConfigurationFromEnv=void 0;var MI=(K(),Y(Uu)),vi=hi(),Sz=(cd(),Y(hI)),hz=L("fs"),Tz=L("path"),II=(M(),Y(Pe));function fd(t,e){if(t!=null&&t!=="")return t;if(e!=null&&e!=="")return e}function vz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_HEADERS`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_HEADERS)===null||n===void 0?void 0:n.trim(),u=MI.baggageUtils.parseKeyPairsIntoRecord(i),o=MI.baggageUtils.parseKeyPairsIntoRecord(a);if(Object.keys(u).length===0&&Object.keys(o).length===0)return;let r=Object.assign({},o,u),s=(0,vi.createEmptyMetadata)();for(let[l,c]of Object.entries(r))s.set(l,c);return s}function mz(t){let e=vz(t);if(e!=null)return()=>e}function yz(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_ENDPOINT`])===null||e===void 0?void 0:e.trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||n===void 0?void 0:n.trim();return fd(i,a)}function Az(t){var e,n;let i=(e=process.env[`OTEL_EXPORTER_OTLP_${t}_INSECURE`])===null||e===void 0?void 0:e.toLowerCase().trim(),a=(n=process.env.OTEL_EXPORTER_OTLP_INSECURE)===null||n===void 0?void 0:n.toLowerCase().trim();return fd(i,a)==="true"}function pd(t,e,n){var i,a;let u=(i=process.env[t])===null||i===void 0?void 0:i.trim(),o=(a=process.env[e])===null||a===void 0?void 0:a.trim(),r=fd(u,o);if(r!=null)try{return hz.readFileSync(Tz.resolve(process.cwd(),r))}catch{II.diag.warn(n);return}else return}function Oz(t){return pd(`OTEL_EXPORTER_OTLP_${t}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function gz(t){return pd(`OTEL_EXPORTER_OTLP_${t}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function LI(t){return pd(`OTEL_EXPORTER_OTLP_${t}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function CI(t){let e=gz(t),n=Oz(t),i=LI(t),a=e!=null&&n!=null;return i!=null&&!a?(II.diag.warn("Client key and certificate must both be provided, but one was missing - attempting to create credentials from just the root certificate"),(0,vi.createSslCredentials)(LI(t))):(0,vi.createSslCredentials)(i,e,n)}function Nz(t){return Az(t)?(0,vi.createInsecureCredentials)():CI(t)}function Rz(t){return Object.assign(Object.assign({},(0,Sz.getSharedConfigurationFromEnvironment)(t)),{metadata:mz(t),url:yz(t),credentials:e=>e.startsWith("http://")?()=>(0,vi.createInsecureCredentials)():e.startsWith("https://")?()=>CI(t):()=>Nz(t)})}zs.getOtlpGrpcConfigurationFromEnv=Rz});var UI=h(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.convertLegacyOtlpGrpcOptions=void 0;var Pz=(M(),Y(Pe)),DI=xI(),bz=hi(),xz=wI();function Mz(t,e){t.headers&&Pz.diag.warn("Headers cannot be set when using grpc");let n=t.credentials;return(0,DI.mergeOtlpGrpcConfigurationWithDefaults)({url:t.url,metadata:()=>{var i;return(i=t.metadata)!==null&&i!==void 0?i:(0,bz.createEmptyMetadata)()},compression:t.compression,timeoutMillis:t.timeoutMillis,concurrencyLimit:t.concurrencyLimit,credentials:n!=null?()=>n:void 0},(0,xz.getOtlpGrpcConfigurationFromEnv)(e),(0,DI.getOtlpGrpcDefaultConfiguration)())}Xs.convertLegacyOtlpGrpcOptions=Mz});var VI=h(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.createOtlpGrpcExportDelegate=void 0;var Lz=(Ei(),Y(Os)),Iz=hi();function Cz(t,e,n,i){return(0,Lz.createOtlpNetworkExportDelegate)(t,e,(0,Iz.createOtlpGrpcExporterTransport)({address:t.url,compression:t.compression,credentials:t.credentials,metadata:t.metadata,grpcName:n,grpcPath:i}))}Js.createOtlpGrpcExportDelegate=Cz});var dd=h(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.createOtlpGrpcExportDelegate=Gn.convertLegacyOtlpGrpcOptions=void 0;var wz=UI();Object.defineProperty(Gn,"convertLegacyOtlpGrpcOptions",{enumerable:!0,get:function(){return wz.convertLegacyOtlpGrpcOptions}});var Dz=VI();Object.defineProperty(Gn,"createOtlpGrpcExportDelegate",{enumerable:!0,get:function(){return Dz.createOtlpGrpcExportDelegate}})});var GI=h(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.OTLPMetricExporter=void 0;var Uz=(AI(),Y(yI)),BI=dd(),Vz=(Vs(),Y(ud)),Ed=class extends Uz.OTLPMetricExporterBase{constructor(e){super((0,BI.createOtlpGrpcExportDelegate)((0,BI.convertLegacyOtlpGrpcOptions)(e??{},"METRICS"),Vz.ProtobufMetricsSerializer,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export"),e)}};Qs.OTLPMetricExporter=Ed});var kI=h(Fr=>{"use strict";var Bz=Fr&&Fr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),Gz=Fr&&Fr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&Bz(e,t,n)};Object.defineProperty(Fr,"__esModule",{value:!0});Gz(GI(),Fr)});var Td=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.PrometheusSerializer=void 0;var kz=(M(),Y(Pe)),Yr=(In(),Y(ed)),HI=(K(),Y(Uu));function el(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function FI(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),el(t).replace(/"/g,'\\"')}var Hz=/[^a-z0-9_]/gi,Fz=/_{2,}/g;function Sd(t){return t.replace(Hz,"_").replace(Fz,"_")}function _d(t,e){return!t.endsWith("_total")&&e===Yr.InstrumentType.COUNTER&&(t=t+"_total"),t}function Yz(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function qz(t){switch(t.dataPointType){case Yr.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case Yr.DataPointType.GAUGE:return"gauge";case Yr.DataPointType.HISTOGRAM:return"histogram";default:return"untyped"}}function Zs(t,e,n,i,a){let u=!1,o="";for(let[r,s]of Object.entries(e)){let l=Sd(r);u=!0,o+=`${o.length>0?",":""}${l}="${FI(s)}"`}if(a)for(let[r,s]of Object.entries(a)){let l=Sd(r);u=!0,o+=`${o.length>0?",":""}${l}="${FI(s)}"`}return u&&(t+=`{${o}}`),`${t} ${Yz(n)}${i!==void 0?" "+String(i):""}
|
52
|
+
`}var jz="# no registered metrics",hd=class{constructor(e,n=!1){e&&(this._prefix=e+"_"),this._appendTimestamp=n}serialize(e){let n="";for(let i of e.scopeMetrics)n+=this._serializeScopeMetrics(i);return n===""&&(n+=jz),this._serializeResource(e.resource)+n}_serializeScopeMetrics(e){let n="";for(let i of e.metrics)n+=this._serializeMetricData(i)+`
|
53
|
+
`;return n}_serializeMetricData(e){let n=Sd(el(e.descriptor.name));this._prefix&&(n=`${this._prefix}${n}`);let i=e.dataPointType;n=_d(n,e.descriptor.type);let a=`# HELP ${n} ${el(e.descriptor.description||"description missing")}`,u=e.descriptor.unit?`
|
54
|
+
# UNIT ${n} ${el(e.descriptor.unit)}`:"",o=`# TYPE ${n} ${qz(e)}`,r="";switch(i){case Yr.DataPointType.SUM:case Yr.DataPointType.GAUGE:{r=e.dataPoints.map(s=>this._serializeSingularDataPoint(n,e.descriptor.type,s)).join("");break}case Yr.DataPointType.HISTOGRAM:{r=e.dataPoints.map(s=>this._serializeHistogramDataPoint(n,e.descriptor.type,s)).join("");break}default:kz.diag.error(`Unrecognizable DataPointType: ${i} for metric "${n}"`)}return`${a}${u}
|
55
55
|
${o}
|
56
|
-
${r}`.trim()}_serializeSingularDataPoint(e,n,i){let a="";e=
|
56
|
+
${r}`.trim()}_serializeSingularDataPoint(e,n,i){let a="";e=_d(e,n);let{value:u,attributes:o}=i,r=(0,HI.hrTimeToMilliseconds)(i.endTime);return a+=Zs(e,o,u,this._appendTimestamp?r:void 0,void 0),a}_serializeHistogramDataPoint(e,n,i){let a="";e=_d(e,n);let u=i.attributes,o=i.value,r=(0,HI.hrTimeToMilliseconds)(i.endTime);for(let p of["count","sum"]){let _=o[p];_!=null&&(a+=Zs(e+"_"+p,u,_,this._appendTimestamp?r:void 0,void 0))}let s=0,l=o.buckets.counts.entries(),c=!1;for(let[p,_]of l){s+=_;let f=o.buckets.boundaries[p];if(f===void 0&&c)break;f===1/0&&(c=!0),a+=Zs(e+"_bucket",u,s,this._appendTimestamp?r:void 0,{le:f===void 0||f===1/0?"+Inf":String(f)})}return a}_serializeResource(e){let n="target_info",i=`# HELP ${n} Target metadata`,a=`# TYPE ${n} gauge`,u=Zs(n,e.attributes,1).trim();return`${i}
|
57
57
|
${a}
|
58
|
-
${
|
59
|
-
`}};Xu.PrometheusSerializer=Ad});var YI=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.PrometheusExporter=void 0;var mi=(x(),Y(Pe)),Vz=(K(),Y(Ds)),gd=(Ln(),Y(zp)),Bz=L("http"),Gz=Od(),kz=L("url"),Ju=class t extends gd.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:i=>gd.Aggregation.Default(),aggregationTemporalitySelector:i=>gd.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(i,a)=>{i.url!=null&&new kz.URL(i.url,this._baseUrl).pathname===this._endpoint?this._exportMetrics(a):this._notFound(a)},this._exportMetrics=i=>{i.statusCode=200,i.setHeader("content-type","text/plain"),this.collect().then(a=>{let{resourceMetrics:s,errors:o}=a;o.length&&mi.diag.error("PrometheusExporter: metrics collection errors",...o),i.end(this._serializer.serialize(s))},a=>{i.end(`# failed to export metrics: ${a}`)})},this._notFound=i=>{i.statusCode=404,i.end()},this._host=e.host||process.env.OTEL_EXPORTER_PROMETHEUS_HOST||t.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||t.DEFAULT_OPTIONS.port,this._prefix=e.prefix||t.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:t.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,Bz.createServer)(this._requestHandler).unref(),this._serializer=new Gz.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||t.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,i=>{mi.diag.error(i),n(i)}):n&&queueMicrotask(n)}async onForceFlush(){}onShutdown(){return this.stopServer()}stopServer(){return this._server?new Promise(e=>{this._server.close(n=>{n?n.code!=="ERR_SERVER_NOT_RUNNING"&&(0,Vz.globalErrorHandler)(n):mi.diag.debug("Prometheus exporter was stopped"),e()})}):(mi.diag.debug("Prometheus stopServer() was called but server was never started."),Promise.resolve())}startServer(){var e;return(e=this._startServerPromise)!==null&&e!==void 0||(this._startServerPromise=new Promise((n,i)=>{this._server.once("error",i),this._server.listen({port:this._port,host:this._host},()=>{mi.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};Qu.PrometheusExporter=Ju;Ju.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var qI=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.PrometheusSerializer=kn.PrometheusExporter=void 0;var Hz=YI();Object.defineProperty(kn,"PrometheusExporter",{enumerable:!0,get:function(){return Hz.PrometheusExporter}});var Fz=Od();Object.defineProperty(kn,"PrometheusSerializer",{enumerable:!0,get:function(){return Fz.PrometheusSerializer}})});var Rd=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.AbstractAsyncHooksContextManager=void 0;var Yz=L("events"),qz=["addListener","on","once","prependListener","prependOnceListener"],Nd=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof Yz.EventEmitter?this._bindEventEmitter(e,n):typeof n=="function"?this._bindFunction(e,n):n}_bindFunction(e,n){let i=this,a=function(...s){return i.with(e,()=>n.apply(this,s))};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),a}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),qz.forEach(a=>{n[a]!==void 0&&(n[a]=this._patchAddListener(n,n[a],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let i=this;return function(a,s){var o;let r=(o=i._getPatchMap(e))===null||o===void 0?void 0:o[a];if(r===void 0)return n.call(this,a,s);let u=r.get(s);return n.call(this,a,u||s)}}_patchRemoveAllListeners(e,n){let i=this;return function(a){let s=i._getPatchMap(e);return s!==void 0&&(arguments.length===0?i._createPatchMap(e):s[a]!==void 0&&delete s[a]),n.apply(this,arguments)}}_patchAddListener(e,n,i){let a=this;return function(s,o){if(a._wrapped)return n.call(this,s,o);let r=a._getPatchMap(e);r===void 0&&(r=a._createPatchMap(e));let u=r[s];u===void 0&&(u=new WeakMap,r[s]=u);let l=a.bind(i,o);u.set(o,l),a._wrapped=!0;try{return n.call(this,s,l)}finally{a._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}};Zu.AbstractAsyncHooksContextManager=Nd});var jI=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.AsyncHooksContextManager=void 0;var jz=(x(),Y(Pe)),$z=L("async_hooks"),Kz=Rd(),Pd=class extends Kz.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=$z.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(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:jz.ROOT_CONTEXT}with(e,n,i,...a){this._enterContext(e);try{return n.call(i,...a)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let i=this._stack[this._stack.length-1];i!==void 0&&this._contexts.set(e,i)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};el.AsyncHooksContextManager=Pd});var $I=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.AsyncLocalStorageContextManager=void 0;var Wz=(x(),Y(Pe)),zz=L("async_hooks"),Xz=Rd(),bd=class extends Xz.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new zz.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:Wz.ROOT_CONTEXT}with(e,n,i,...a){let s=i==null?n:n.bind(i);return this._asyncLocalStorage.run(e,s,...a)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};tl.AsyncLocalStorageContextManager=bd});var KI=h(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.AsyncLocalStorageContextManager=Hn.AsyncHooksContextManager=void 0;var Jz=jI();Object.defineProperty(Hn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return Jz.AsyncHooksContextManager}});var Qz=$I();Object.defineProperty(Hn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return Qz.AsyncLocalStorageContextManager}})});var Fn,xd=m(()=>{"use strict";x();Fn=Kr("OpenTelemetry Context Key B3 Debug Flag")});var _r,Yn,qn,jn,rl,$n,yi=m(()=>{"use strict";_r="b3",Yn="x-b3-traceid",qn="x-b3-spanid",jn="x-b3-sampled",rl="x-b3-parentspanid",$n="x-b3-flags"});function tX(t){return t===J.SAMPLED||t===J.NONE}function rX(t){return Array.isArray(t)?t[0]:t}function nl(t,e,n){var i=e.get(t,n);return rX(i)}function nX(t,e){var n=nl(t,e,Yn);return typeof n=="string"?n.padStart(32,"0"):""}function oX(t,e){var n=nl(t,e,qn);return typeof n=="string"?n:""}function WI(t,e){var n=nl(t,e,$n);return n==="1"?"1":void 0}function iX(t,e){var n=nl(t,e,jn),i=WI(t,e);if(i==="1"||Zz.has(n))return J.SAMPLED;if(n===void 0||eX.has(n))return J.NONE}var Zz,eX,zI,XI=m(()=>{"use strict";x();K();xd();yi();Zz=new Set([!0,"true","True","1",1]),eX=new Set([!1,"false","False","0",0]);zI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!dt(a)||xe(e))){var s=e.getValue(Fn);i.set(n,Yn,a.traceId),i.set(n,qn,a.spanId),s==="1"?i.set(n,$n,s):a.traceFlags!==void 0&&i.set(n,jn,(J.SAMPLED&a.traceFlags)===J.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,i){var a=nX(n,i),s=oX(n,i),o=iX(n,i),r=WI(n,i);return kt(a)&&Ii(s)&&tX(o)?(e=e.setValue(Fn,r),X.setSpanContext(e,{traceId:a,spanId:s,isRemote:!0,traceFlags:o})):e},t.prototype.fields=function(){return[Yn,qn,$n,jn,rl]},t}()});function fX(t){return t.length===32?t:""+uX+t}function pX(t){return t&&lX.has(t)?J.SAMPLED:J.NONE}var aX,sX,uX,lX,cX,JI,QI=m(()=>{"use strict";x();K();xd();yi();aX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},sX=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,uX="0".repeat(16),lX=new Set(["d","1"]),cX="d";JI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=X.getSpanContext(e);if(!(!a||!dt(a)||xe(e))){var s=e.getValue(Fn)||a.traceFlags&1,o=a.traceId+"-"+a.spanId+"-"+s;i.set(n,_r,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,_r),s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=s.match(sX);if(!o)return e;var r=aX(o,4),u=r[1],l=r[2],c=r[3],p=fX(u);if(!kt(p)||!Ii(l))return e;var _=pX(c);return c===cX&&(e=e.setValue(Fn,c)),X.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:_})},t.prototype.fields=function(){return[_r]},t}()});var Kn,Md=m(()=>{"use strict";(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Kn||(Kn={}))});var ZI,eC=m(()=>{"use strict";K();XI();QI();yi();Md();ZI=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new zI,this._b3SinglePropagator=new JI,e.injectEncoding===Kn.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return t.prototype.inject=function(e,n,i){xe(e)||this._inject(e,n,i)},t.prototype.extract=function(e,n,i){var a=i.get(n,_r),s=Array.isArray(a)?a[0]:a;return s?this._b3SinglePropagator.extract(e,n,i):this._b3MultiPropagator.extract(e,n,i)},t.prototype.fields=function(){return this._fields},t}()});var tC={};nt(tC,{B3InjectEncoding:()=>Kn,B3Propagator:()=>ZI,B3_CONTEXT_HEADER:()=>_r,X_B3_FLAGS:()=>$n,X_B3_PARENT_SPAN_ID:()=>rl,X_B3_SAMPLED:()=>jn,X_B3_SPAN_ID:()=>qn,X_B3_TRACE_ID:()=>Yn});var rC=m(()=>{"use strict";eC();yi();Md()});var nC,oC=m(()=>{"use strict";nC="exception"});var Ld,dX,iC,EX,ol,Id=m(()=>{"use strict";x();K();Ko();oC();Ld=function(){return Ld=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Ld.apply(this,arguments)},dX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iC=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},EX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},ol=function(){function t(e,n,i,a,s,o,r,u,l,c){r===void 0&&(r=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:mE.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=a,this.parentSpanId=o,this.kind=s,this.links=r;var p=Date.now();this._performanceStartTime=Ze.now(),this._performanceOffset=p-(this._performanceStartTime+An()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,c!=null&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return n==null||this._isSpanEnded()?this:e.length===0?(g.warn("Invalid attribute key: "+e),this):Xo(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this):(g.warn("Invalid attribute value set for key: "+e),this)},t.prototype.setAttributes=function(e){var n,i;try{for(var a=dX(Object.entries(e)),s=a.next();!s.done;s=a.next()){var o=iC(s.value,2),r=o[0],u=o[1];this.setAttribute(r,u)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.prototype.addEvent=function(e,n,i){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return g.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&g.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ei(n)&&(ei(i)||(i=n),n=void 0);var a=ir(n);return this.events.push({name:e,attributes:a,time:this._getTime(i),droppedAttributesCount:0}),this},t.prototype.addLink=function(e){return this.links.push(e),this},t.prototype.addLinks=function(e){var n;return(n=this.links).push.apply(n,EX([],iC(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=Ld({},e),this.status.message!=null&&typeof e.message!="string"&&(g.warn("Dropping invalid status.message of type '"+typeof e.message+"', expected 'string'"),delete this.status.message),this)},t.prototype.updateName=function(e){return this._isSpanEnded()?this:(this.name=e,this)},t.prototype.end=function(e){if(this._isSpanEnded()){g.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(e),this._duration=Ps(this.startTime,this.endTime),this._duration[0]<0&&(g.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&g.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(e){if(typeof e=="number"&&e<=Ze.now())return Zo(e+this._performanceOffset);if(typeof e=="number")return ge(e);if(e instanceof Date)return ge(e.getTime());if(On(e))return e;if(this._startTimeProvided)return ge(Date.now());var n=Ze.now()-this._performanceStartTime;return ti(this.startTime,ge(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var i={};typeof e=="string"?i[ds]=e:e&&(e.code?i[ps]=e.code.toString():e.name&&(i[ps]=e.name),e.message&&(i[ds]=e.message),e.stack&&(i[T0]=e.stack)),i[ps]||i[ds]?this.addEvent(nC,i,n):g.warn("Failed to record an exception "+e)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&g.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(e,n){return e.length<=n?e:e.substr(0,n)},t.prototype._truncateToSize=function(e){var n=this,i=this._attributeValueLengthLimit;return i<=0?(g.warn("Attribute value limit must be positive, got "+i),e):typeof e=="string"?this._truncateToLimitUtil(e,i):Array.isArray(e)?e.map(function(a){return typeof a=="string"?n._truncateToLimitUtil(a,i):a}):e},t}()});var ft,Ai=m(()=>{"use strict";(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ft||(ft={}))});var Sr,il=m(()=>{"use strict";Ai();Sr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:ft.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var xt,al=m(()=>{"use strict";Ai();xt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:ft.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var Wn,Cd=m(()=>{"use strict";x();K();il();al();Wn=function(){function t(e){var n,i,a,s;this._root=e.root,this._root||(Te(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new xt),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new xt,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new Sr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new xt,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new Sr}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=X.getSpanContext(e);return!r||!dt(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&J.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&J.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,s,o):this._localParentNotSampled.shouldSample(e,n,i,a,s,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var Oi,wd=m(()=>{"use strict";x();Ai();Oi=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:kt(n)&&this._accumulate(n)<this._upperBound?ft.RECORD_AND_SAMPLED:ft.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function sl(){var t=Oe();return{sampler:Ud(_X),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function Ud(t){switch(t===void 0&&(t=Oe()),t.OTEL_TRACES_SAMPLER){case Ke.AlwaysOn:return new xt;case Ke.AlwaysOff:return new Sr;case Ke.ParentBasedAlwaysOn:return new Wn({root:new xt});case Ke.ParentBasedAlwaysOff:return new Wn({root:new Sr});case Ke.TraceIdRatio:return new Oi(aC(t));case Ke.ParentBasedTraceIdRatio:return new Wn({root:new Oi(aC(t))});default:return g.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+SX+'".'),new xt}}function aC(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return g.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+zn+"."),zn;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+zn+"."),zn):e<0||e>1?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+zn+"."),zn):e}var _X,SX,zn,Dd=m(()=>{"use strict";x();K();il();al();Cd();wd();_X=Oe(),SX=Ke.AlwaysOn,zn=1});function sC(t){var e={sampler:Ud()},n=sl(),i=Object.assign({},n,e,t);return i.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),i.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),i}function uC(t){var e,n,i,a,s,o,r,u,l,c,p,_,f=Object.assign({},t.spanLimits),S=mn();return f.attributeCountLimit=(o=(s=(a=(n=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&n!==void 0?n:(i=t.generalLimits)===null||i===void 0?void 0:i.attributeCountLimit)!==null&&a!==void 0?a:S.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&s!==void 0?s:S.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:Dr,f.attributeValueLengthLimit=(_=(p=(c=(u=(r=t.spanLimits)===null||r===void 0?void 0:r.attributeValueLengthLimit)!==null&&u!==void 0?u:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:S.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:Ur,Object.assign({},t,{spanLimits:f})}var Vd=m(()=>{"use strict";Dd();K()});var lC,cC=m(()=>{"use strict";x();K();lC=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var i=Oe();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:i.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:i.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:i.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:i.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new lr(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(g.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&J.SAMPLED&&this._addToBuffer(e)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},t.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&g.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(g.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},t.prototype._flushAll=function(){var e=this;return new Promise(function(n,i){for(var a=[],s=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize),o=0,r=s;o<r;o++)a.push(e._flushOneBatch());Promise.all(a).then(function(){n()}).catch(i)})},t.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,i){var a=setTimeout(function(){i(new Error("Timeout"))},e._exportTimeoutMillis);Ye.with(Tn(Ye.active()),function(){var s;e._finishedSpans.length<=e._maxExportBatchSize?(s=e._finishedSpans,e._finishedSpans=[]):s=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var o=function(){return e._exporter.export(s,function(p){var _;clearTimeout(a),p.code===ee.SUCCESS?n():i((_=p.error)!==null&&_!==void 0?_:new Error("BatchSpanProcessor: span export failed"))})},r=null,u=0,l=s.length;u<l;u++){var c=s[u];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(r??(r=[]),r.push(c.resource.waitForAsyncAttributes()))}r===null?o():Promise.all(r).then(o,function(p){Te(p),i(p)})})})},t.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var n=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(i){e._isExporting=!1,Te(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),ur(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var hX,hr,fC=m(()=>{"use strict";cC();hX=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(i[s]=a[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),hr=function(t){hX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(lC)});function pC(t){return function(){for(var n=0;n<t/4;n++)ul.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(ul[n]>0);n++)n===t-1&&(ul[t-1]=1);return ul.toString("hex",0,t)}}var TX,dC,Xn,ul,EC=m(()=>{"use strict";TX=8,dC=16,Xn=function(){function t(){this.generateTraceId=pC(dC),this.generateSpanId=pC(TX)}return t}(),ul=Buffer.allocUnsafe(dC)});var _C=m(()=>{"use strict";fC();EC()});var ll=m(()=>{"use strict";_C()});var cl,SC=m(()=>{"use strict";x();K();Id();Vd();ll();cl=function(){function t(e,n,i){this._tracerProvider=i;var a=sC(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new Xn,this.resource=i.resource,this.instrumentationLibrary=e}return t.prototype.startSpan=function(e,n,i){var a,s,o;n===void 0&&(n={}),i===void 0&&(i=Ye.active()),n.root&&(i=X.deleteSpan(i));var r=X.getSpan(i);if(xe(i)){g.debug("Instrumentation suppressed, returning Noop Span");var u=X.wrapSpanContext(hE);return u}var l=r?.spanContext(),c=this._idGenerator.generateSpanId(),p,_,f;!l||!X.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,_=l.traceState,f=l.spanId);var S=(a=n.kind)!==null&&a!==void 0?a:vE.INTERNAL,v=((s=n.links)!==null&&s!==void 0?s:[]).map(function(F){return{context:F.context,attributes:ir(F.attributes)}}),T=ir(n.attributes),A=this._sampler.shouldSample(i,p,e,S,T,v);_=(o=A.traceState)!==null&&o!==void 0?o:_;var O=A.decision===Et.RECORD_AND_SAMPLED?J.SAMPLED:J.NONE,N={traceId:p,spanId:c,traceFlags:O,traceState:_};if(A.decision===Et.NOT_RECORD){g.debug("Recording is off, propagating context in a non-recording span");var u=X.wrapSpanContext(N);return u}var D=ir(Object.assign(T,A.attributes)),G=new ol(this,i,e,N,S,f,v,n.startTime,void 0,D);return G},t.prototype.startActiveSpan=function(e,n,i,a){var s,o,r;if(!(arguments.length<2)){arguments.length===2?r=n:arguments.length===3?(s=n,r=i):(s=n,o=i,r=a);var u=o??Ye.active(),l=this.startSpan(e,s,u),c=X.setSpan(u,l);return Ye.with(c,r,void 0,l)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}()});var fl,Bd,hC=m(()=>{"use strict";K();fl=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Bd=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,i=[];try{for(var a=fl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.forceFlush())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r){Promise.all(i).then(function(){r()}).catch(function(u){Te(u||new Error("MultiSpanProcessor: forceFlush failed")),r()})})},t.prototype.onStart=function(e,n){var i,a;try{for(var s=fl(this._spanProcessors),o=s.next();!o.done;o=s.next()){var r=o.value;r.onStart(e,n)}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},t.prototype.onEnd=function(e){var n,i;try{for(var a=fl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;o.onEnd(e)}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},t.prototype.shutdown=function(){var e,n,i=[];try{for(var a=fl(this._spanProcessors),s=a.next();!s.done;s=a.next()){var o=s.value;i.push(o.shutdown())}}catch(r){e={error:r}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r,u){Promise.all(i).then(function(){r()},u)})},t}()});var pl,Gd=m(()=>{"use strict";pl=function(){function t(){}return t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}()});var vX,mX,Bt,TC,vC=m(()=>{"use strict";x();K();Gs();gi();Dd();hC();Gd();ll();Vd();vX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},mX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))};(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Bt||(Bt={}));TC=function(){function t(e){e===void 0&&(e={});var n,i;this._registeredSpanProcessors=[],this._tracers=new Map;var a=Us({},sl(),uC(e));if(this.resource=(n=a.resource)!==null&&n!==void 0?n:Dt.empty(),a.mergeResourceWithDefaults&&(this.resource=Dt.default().merge(this.resource)),this._config=Object.assign({},a,{resource:this.resource}),!((i=e.spanProcessors)===null||i===void 0)&&i.length)this._registeredSpanProcessors=mX([],vX(e.spanProcessors),!1),this.activeSpanProcessor=new Bd(this._registeredSpanProcessors);else{var s=this._buildExporterFromEnv();if(s!==void 0){var o=new hr(s);this.activeSpanProcessor=o}else this.activeSpanProcessor=new pl}}return t.prototype.getTracer=function(e,n,i){var a=e+"@"+(n||"")+":"+(i?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new cl({name:e,version:n,schemaUrl:i?.schemaUrl},this._config,this)),this._tracers.get(a)},t.prototype.addSpanProcessor=function(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return g.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new Bd(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(e){e===void 0&&(e={}),X.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&Ye.setGlobalContextManager(e.contextManager),e.propagator&&it.setGlobalPropagator(e.propagator)},t.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(i){return new Promise(function(a){var s,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),s=Bt.timeout},e);i.forceFlush().then(function(){clearTimeout(o),s!==Bt.timeout&&(s=Bt.resolved,a(s))}).catch(function(r){clearTimeout(o),s=Bt.error,a(r)})})});return new Promise(function(i,a){Promise.all(n).then(function(s){var o=s.filter(function(r){return r!==Bt.resolved});o.length>0?a(o):i()}).catch(function(s){return a([s])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return(n=this.constructor._registeredPropagators.get(e))===null||n===void 0?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return(n=this.constructor._registeredExporters.get(e))===null||n===void 0?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var e=this,n=Array.from(new Set(Oe().OTEL_PROPAGATORS)),i=n.map(function(s){var o=e._getPropagator(s);return o||g.warn('Propagator "'+s+'" requested through environment variable is unavailable.'),o}),a=i.reduce(function(s,o){return o&&s.push(o),s},[]);if(a.length!==0)return n.length===1?a[0]:new xs({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=Oe().OTEL_TRACES_EXPORTER;if(!(e==="none"||e==="")){var n=this._getSpanExporter(e);return n||g.error('Exporter "'+e+'" requested through environment variable is unavailable.'),n}},t._registeredPropagators=new Map([["tracecontext",function(){return new Ls}],["baggage",function(){return new vs}]]),t._registeredExporters=new Map,t}()});var yX,mC,yC=m(()=>{"use strict";K();yX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mC=function(){function t(){}return t.prototype.export=function(e,n){return this._sendSpans(e,n)},t.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype._exportInfo=function(e){var n;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(n=e.spanContext().traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:Ot(e.startTime),duration:Ot(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},t.prototype._sendSpans=function(e,n){var i,a;try{for(var s=yX(e),o=s.next();!o.done;o=s.next()){var r=o.value;console.dir(this._exportInfo(r),{depth:3})}}catch(u){i={error:u}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}if(n)return n({code:ee.SUCCESS})},t}()});var AX,OX,AC,OC=m(()=>{"use strict";K();AX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},OX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,s;i<a;i++)(s||!(i in e))&&(s||(s=Array.prototype.slice.call(e,0,i)),s[i]=e[i]);return t.concat(s||Array.prototype.slice.call(e))},AC=function(){function t(){this._finishedSpans=[],this._stopped=!1}return t.prototype.export=function(e,n){var i;if(this._stopped)return n({code:ee.FAILED,error:new Error("Exporter has been stopped")});(i=this._finishedSpans).push.apply(i,OX([],AX(e),!1)),setTimeout(function(){return n({code:ee.SUCCESS})},0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans},t}()});var gX,NX,gC,NC=m(()=>{"use strict";x();K();gX=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function u(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},NX=function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return u([l,c])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(s=l[0]&2?a.return:l[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,l[1])).done)return s;switch(a=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1],s=l;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(l);break}s[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},gC=function(){function t(e){this._exporter=e,this._shutdownOnce=new lr(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return gX(this,void 0,void 0,function(){return NX(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return e.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){var n=this,i,a;if(!this._shutdownOnce.isCalled&&e.spanContext().traceFlags&J.SAMPLED){var s=function(){return ai._export(n._exporter,[e]).then(function(r){var u;r.code!==ee.SUCCESS&&Te((u=r.error)!==null&&u!==void 0?u:new Error("SimpleSpanProcessor: span export failed (status "+r+")"))}).catch(function(r){Te(r)})};if(e.resource.asyncAttributesPending){var o=(a=(i=e.resource).waitForAsyncAttributes)===null||a===void 0?void 0:a.call(i).then(function(){return o!=null&&n._unresolvedExports.delete(o),s()},function(r){return Te(r)});o!=null&&this._unresolvedExports.add(o)}else s()}},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._exporter.shutdown()},t}()});var kd={};nt(kd,{AlwaysOffSampler:()=>Sr,AlwaysOnSampler:()=>xt,BasicTracerProvider:()=>TC,BatchSpanProcessor:()=>hr,ConsoleSpanExporter:()=>mC,ForceFlushState:()=>Bt,InMemorySpanExporter:()=>AC,NoopSpanProcessor:()=>pl,ParentBasedSampler:()=>Wn,RandomIdGenerator:()=>Xn,SamplingDecision:()=>ft,SimpleSpanProcessor:()=>gC,Span:()=>ol,TraceIdRatioBasedSampler:()=>Oi,Tracer:()=>cl});var gi=m(()=>{"use strict";SC();vC();ll();yC();OC();NC();Gd();il();al();Cd();wd();Ai();Id()});var Ni=h((Bfe,RC)=>{"use strict";var RX="2.0.0",PX=Number.MAX_SAFE_INTEGER||9007199254740991,bX=16,xX=250,MX=["major","premajor","minor","preminor","patch","prepatch","prerelease"];RC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:bX,MAX_SAFE_BUILD_LENGTH:xX,MAX_SAFE_INTEGER:PX,RELEASE_TYPES:MX,SEMVER_SPEC_VERSION:RX,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ri=h((Gfe,PC)=>{"use strict";var LX=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};PC.exports=LX});var Jn=h((Gt,bC)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Hd,MAX_SAFE_BUILD_LENGTH:IX,MAX_LENGTH:CX}=Ni(),wX=Ri();Gt=bC.exports={};var UX=Gt.re=[],DX=Gt.safeRe=[],R=Gt.src=[],P=Gt.t={},VX=0,Fd="[a-zA-Z0-9-]",BX=[["\\s",1],["\\d",CX],[Fd,IX]],GX=t=>{for(let[e,n]of BX)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},U=(t,e,n)=>{let i=GX(e),a=VX++;wX(t,a,e),P[t]=a,R[a]=e,UX[a]=new RegExp(e,n?"g":void 0),DX[a]=new RegExp(i,n?"g":void 0)};U("NUMERICIDENTIFIER","0|[1-9]\\d*");U("NUMERICIDENTIFIERLOOSE","\\d+");U("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Fd}*`);U("MAINVERSION",`(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})`);U("MAINVERSIONLOOSE",`(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})`);U("PRERELEASEIDENTIFIER",`(?:${R[P.NUMERICIDENTIFIER]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASEIDENTIFIERLOOSE",`(?:${R[P.NUMERICIDENTIFIERLOOSE]}|${R[P.NONNUMERICIDENTIFIER]})`);U("PRERELEASE",`(?:-(${R[P.PRERELEASEIDENTIFIER]}(?:\\.${R[P.PRERELEASEIDENTIFIER]})*))`);U("PRERELEASELOOSE",`(?:-?(${R[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[P.PRERELEASEIDENTIFIERLOOSE]})*))`);U("BUILDIDENTIFIER",`${Fd}+`);U("BUILD",`(?:\\+(${R[P.BUILDIDENTIFIER]}(?:\\.${R[P.BUILDIDENTIFIER]})*))`);U("FULLPLAIN",`v?${R[P.MAINVERSION]}${R[P.PRERELEASE]}?${R[P.BUILD]}?`);U("FULL",`^${R[P.FULLPLAIN]}$`);U("LOOSEPLAIN",`[v=\\s]*${R[P.MAINVERSIONLOOSE]}${R[P.PRERELEASELOOSE]}?${R[P.BUILD]}?`);U("LOOSE",`^${R[P.LOOSEPLAIN]}$`);U("GTLT","((?:<|>)?=?)");U("XRANGEIDENTIFIERLOOSE",`${R[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);U("XRANGEIDENTIFIER",`${R[P.NUMERICIDENTIFIER]}|x|X|\\*`);U("XRANGEPLAIN",`[v=\\s]*(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:${R[P.PRERELEASE]})?${R[P.BUILD]}?)?)?`);U("XRANGEPLAINLOOSE",`[v=\\s]*(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:${R[P.PRERELEASELOOSE]})?${R[P.BUILD]}?)?)?`);U("XRANGE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAIN]}$`);U("XRANGELOOSE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAINLOOSE]}$`);U("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Hd}})(?:\\.(\\d{1,${Hd}}))?(?:\\.(\\d{1,${Hd}}))?`);U("COERCE",`${R[P.COERCEPLAIN]}(?:$|[^\\d])`);U("COERCEFULL",R[P.COERCEPLAIN]+`(?:${R[P.PRERELEASE]})?(?:${R[P.BUILD]})?(?:$|[^\\d])`);U("COERCERTL",R[P.COERCE],!0);U("COERCERTLFULL",R[P.COERCEFULL],!0);U("LONETILDE","(?:~>?)");U("TILDETRIM",`(\\s*)${R[P.LONETILDE]}\\s+`,!0);Gt.tildeTrimReplace="$1~";U("TILDE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAIN]}$`);U("TILDELOOSE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAINLOOSE]}$`);U("LONECARET","(?:\\^)");U("CARETTRIM",`(\\s*)${R[P.LONECARET]}\\s+`,!0);Gt.caretTrimReplace="$1^";U("CARET",`^${R[P.LONECARET]}${R[P.XRANGEPLAIN]}$`);U("CARETLOOSE",`^${R[P.LONECARET]}${R[P.XRANGEPLAINLOOSE]}$`);U("COMPARATORLOOSE",`^${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]})$|^$`);U("COMPARATOR",`^${R[P.GTLT]}\\s*(${R[P.FULLPLAIN]})$|^$`);U("COMPARATORTRIM",`(\\s*)${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]}|${R[P.XRANGEPLAIN]})`,!0);Gt.comparatorTrimReplace="$1$2$3";U("HYPHENRANGE",`^\\s*(${R[P.XRANGEPLAIN]})\\s+-\\s+(${R[P.XRANGEPLAIN]})\\s*$`);U("HYPHENRANGELOOSE",`^\\s*(${R[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[P.XRANGEPLAINLOOSE]})\\s*$`);U("STAR","(<|>)?=?\\s*\\*");U("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");U("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var dl=h((kfe,xC)=>{"use strict";var kX=Object.freeze({loose:!0}),HX=Object.freeze({}),FX=t=>t?typeof t!="object"?kX:t:HX;xC.exports=FX});var Yd=h((Hfe,IC)=>{"use strict";var MC=/^[0-9]+$/,LC=(t,e)=>{let n=MC.test(t),i=MC.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1},YX=(t,e)=>LC(e,t);IC.exports={compareIdentifiers:LC,rcompareIdentifiers:YX}});var Me=h((Ffe,DC)=>{"use strict";var El=Ri(),{MAX_LENGTH:CC,MAX_SAFE_INTEGER:_l}=Ni(),{safeRe:wC,t:UC}=Jn(),qX=dl(),{compareIdentifiers:Qn}=Yd(),qd=class t{constructor(e,n){if(n=qX(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>CC)throw new TypeError(`version is longer than ${CC} characters`);El("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=e.trim().match(n.loose?wC[UC.LOOSE]:wC[UC.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>_l||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_l||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_l||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let s=+a;if(s>=0&&s<_l)return s}return a}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(El("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Qn(this.major,e.major)||Qn(this.minor,e.minor)||Qn(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],a=e.prerelease[n];if(El("prerelease compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return Qn(i,a)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{let i=this.build[n],a=e.build[n];if(El("build compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return Qn(i,a)}while(++n)}inc(e,n,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let a=Number(i)?1:0;if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let s=[n,a];i===!1&&(s=[n]),Qn(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};DC.exports=qd});var qr=h((Yfe,BC)=>{"use strict";var VC=Me(),jX=(t,e,n=!1)=>{if(t instanceof VC)return t;try{return new VC(t,e)}catch(i){if(!n)return null;throw i}};BC.exports=jX});var kC=h((qfe,GC)=>{"use strict";var $X=qr(),KX=(t,e)=>{let n=$X(t,e);return n?n.version:null};GC.exports=KX});var FC=h((jfe,HC)=>{"use strict";var WX=qr(),zX=(t,e)=>{let n=WX(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};HC.exports=zX});var jC=h(($fe,qC)=>{"use strict";var YC=Me(),XX=(t,e,n,i,a)=>{typeof n=="string"&&(a=i,i=n,n=void 0);try{return new YC(t instanceof YC?t.version:t,n).inc(e,i,a).version}catch{return null}};qC.exports=XX});var WC=h((Kfe,KC)=>{"use strict";var $C=qr(),JX=(t,e)=>{let n=$C(t,null,!0),i=$C(e,null,!0),a=n.compare(i);if(a===0)return null;let s=a>0,o=s?n:i,r=s?i:n,u=!!o.prerelease.length;if(!!r.prerelease.length&&!u)return!r.patch&&!r.minor?"major":o.patch?"patch":o.minor?"minor":"major";let c=u?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease"};KC.exports=JX});var XC=h((Wfe,zC)=>{"use strict";var QX=Me(),ZX=(t,e)=>new QX(t,e).major;zC.exports=ZX});var QC=h((zfe,JC)=>{"use strict";var eJ=Me(),tJ=(t,e)=>new eJ(t,e).minor;JC.exports=tJ});var ew=h((Xfe,ZC)=>{"use strict";var rJ=Me(),nJ=(t,e)=>new rJ(t,e).patch;ZC.exports=nJ});var rw=h((Jfe,tw)=>{"use strict";var oJ=qr(),iJ=(t,e)=>{let n=oJ(t,e);return n&&n.prerelease.length?n.prerelease:null};tw.exports=iJ});var tt=h((Qfe,ow)=>{"use strict";var nw=Me(),aJ=(t,e,n)=>new nw(t,n).compare(new nw(e,n));ow.exports=aJ});var aw=h((Zfe,iw)=>{"use strict";var sJ=tt(),uJ=(t,e,n)=>sJ(e,t,n);iw.exports=uJ});var uw=h((epe,sw)=>{"use strict";var lJ=tt(),cJ=(t,e)=>lJ(t,e,!0);sw.exports=cJ});var Sl=h((tpe,cw)=>{"use strict";var lw=Me(),fJ=(t,e,n)=>{let i=new lw(t,n),a=new lw(e,n);return i.compare(a)||i.compareBuild(a)};cw.exports=fJ});var pw=h((rpe,fw)=>{"use strict";var pJ=Sl(),dJ=(t,e)=>t.sort((n,i)=>pJ(n,i,e));fw.exports=dJ});var Ew=h((npe,dw)=>{"use strict";var EJ=Sl(),_J=(t,e)=>t.sort((n,i)=>EJ(i,n,e));dw.exports=_J});var Pi=h((ope,_w)=>{"use strict";var SJ=tt(),hJ=(t,e,n)=>SJ(t,e,n)>0;_w.exports=hJ});var hl=h((ipe,Sw)=>{"use strict";var TJ=tt(),vJ=(t,e,n)=>TJ(t,e,n)<0;Sw.exports=vJ});var jd=h((ape,hw)=>{"use strict";var mJ=tt(),yJ=(t,e,n)=>mJ(t,e,n)===0;hw.exports=yJ});var $d=h((spe,Tw)=>{"use strict";var AJ=tt(),OJ=(t,e,n)=>AJ(t,e,n)!==0;Tw.exports=OJ});var Tl=h((upe,vw)=>{"use strict";var gJ=tt(),NJ=(t,e,n)=>gJ(t,e,n)>=0;vw.exports=NJ});var vl=h((lpe,mw)=>{"use strict";var RJ=tt(),PJ=(t,e,n)=>RJ(t,e,n)<=0;mw.exports=PJ});var Kd=h((cpe,yw)=>{"use strict";var bJ=jd(),xJ=$d(),MJ=Pi(),LJ=Tl(),IJ=hl(),CJ=vl(),wJ=(t,e,n,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return bJ(t,n,i);case"!=":return xJ(t,n,i);case">":return MJ(t,n,i);case">=":return LJ(t,n,i);case"<":return IJ(t,n,i);case"<=":return CJ(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};yw.exports=wJ});var Ow=h((fpe,Aw)=>{"use strict";var UJ=Me(),DJ=qr(),{safeRe:ml,t:yl}=Jn(),VJ=(t,e)=>{if(t instanceof UJ)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?ml[yl.COERCEFULL]:ml[yl.COERCE]);else{let u=e.includePrerelease?ml[yl.COERCERTLFULL]:ml[yl.COERCERTL],l;for(;(l=u.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(n===null)return null;let i=n[2],a=n[3]||"0",s=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",r=e.includePrerelease&&n[6]?`+${n[6]}`:"";return DJ(`${i}.${a}.${s}${o}${r}`,e)};Aw.exports=VJ});var Nw=h((ppe,gw)=>{"use strict";var Wd=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let a=this.map.keys().next().value;this.delete(a)}this.map.set(e,n)}return this}};gw.exports=Wd});var rt=h((dpe,xw)=>{"use strict";var BJ=/\s+/g,zd=class t{constructor(e,n){if(n=kJ(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof Xd)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().replace(BJ," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(a=>!Pw(a[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&KJ(a[0])){this.set=[a];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let n=this.set[e];for(let i=0;i<n.length;i++)i>0&&(this.formatted+=" "),this.formatted+=n[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&jJ)|(this.options.loose&&$J))+":"+e,a=Rw.get(i);if(a)return a;let s=this.options.loose,o=s?We[Be.HYPHENRANGELOOSE]:We[Be.HYPHENRANGE];e=e.replace(o,n9(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(We[Be.COMPARATORTRIM],FJ),te("comparator trim",e),e=e.replace(We[Be.TILDETRIM],YJ),te("tilde trim",e),e=e.replace(We[Be.CARETTRIM],qJ),te("caret trim",e);let r=e.split(" ").map(p=>WJ(p,this.options)).join(" ").split(/\s+/).map(p=>r9(p,this.options));s&&(r=r.filter(p=>(te("loose invalid filter",p,this.options),!!p.match(We[Be.COMPARATORLOOSE])))),te("range list",r);let u=new Map,l=r.map(p=>new Xd(p,this.options));for(let p of l){if(Pw(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return Rw.set(i,c),c}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>bw(i,n)&&e.set.some(a=>bw(a,n)&&i.every(s=>a.every(o=>s.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new HJ(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(o9(this.set[n],e,this.options))return!0;return!1}};xw.exports=zd;var GJ=Nw(),Rw=new GJ,kJ=dl(),Xd=bi(),te=Ri(),HJ=Me(),{safeRe:We,t:Be,comparatorTrimReplace:FJ,tildeTrimReplace:YJ,caretTrimReplace:qJ}=Jn(),{FLAG_INCLUDE_PRERELEASE:jJ,FLAG_LOOSE:$J}=Ni(),Pw=t=>t.value==="<0.0.0-0",KJ=t=>t.value==="",bw=(t,e)=>{let n=!0,i=t.slice(),a=i.pop();for(;n&&i.length;)n=i.every(s=>a.intersects(s,e)),a=i.pop();return n},WJ=(t,e)=>(te("comp",t,e),t=JJ(t,e),te("caret",t),t=zJ(t,e),te("tildes",t),t=ZJ(t,e),te("xrange",t),t=t9(t,e),te("stars",t),t),Ge=t=>!t||t.toLowerCase()==="x"||t==="*",zJ=(t,e)=>t.trim().split(/\s+/).map(n=>XJ(n,e)).join(" "),XJ=(t,e)=>{let n=e.loose?We[Be.TILDELOOSE]:We[Be.TILDE];return t.replace(n,(i,a,s,o,r)=>{te("tilde",t,i,a,s,o,r);let u;return Ge(a)?u="":Ge(s)?u=`>=${a}.0.0 <${+a+1}.0.0-0`:Ge(o)?u=`>=${a}.${s}.0 <${a}.${+s+1}.0-0`:r?(te("replaceTilde pr",r),u=`>=${a}.${s}.${o}-${r} <${a}.${+s+1}.0-0`):u=`>=${a}.${s}.${o} <${a}.${+s+1}.0-0`,te("tilde return",u),u})},JJ=(t,e)=>t.trim().split(/\s+/).map(n=>QJ(n,e)).join(" "),QJ=(t,e)=>{te("caret",t,e);let n=e.loose?We[Be.CARETLOOSE]:We[Be.CARET],i=e.includePrerelease?"-0":"";return t.replace(n,(a,s,o,r,u)=>{te("caret",t,a,s,o,r,u);let l;return Ge(s)?l="":Ge(o)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Ge(r)?s==="0"?l=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.0${i} <${+s+1}.0.0-0`:u?(te("replaceCaret pr",u),s==="0"?o==="0"?l=`>=${s}.${o}.${r}-${u} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}-${u} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r}-${u} <${+s+1}.0.0-0`):(te("no pr"),s==="0"?o==="0"?l=`>=${s}.${o}.${r}${i} <${s}.${o}.${+r+1}-0`:l=`>=${s}.${o}.${r}${i} <${s}.${+o+1}.0-0`:l=`>=${s}.${o}.${r} <${+s+1}.0.0-0`),te("caret return",l),l})},ZJ=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>e9(n,e)).join(" ")),e9=(t,e)=>{t=t.trim();let n=e.loose?We[Be.XRANGELOOSE]:We[Be.XRANGE];return t.replace(n,(i,a,s,o,r,u)=>{te("xRange",t,i,a,s,o,r,u);let l=Ge(s),c=l||Ge(o),p=c||Ge(r),_=p;return a==="="&&_&&(a=""),u=e.includePrerelease?"-0":"",l?a===">"||a==="<"?i="<0.0.0-0":i="*":a&&_?(c&&(o=0),r=0,a===">"?(a=">=",c?(s=+s+1,o=0,r=0):(o=+o+1,r=0)):a==="<="&&(a="<",c?s=+s+1:o=+o+1),a==="<"&&(u="-0"),i=`${a+s}.${o}.${r}${u}`):c?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:p&&(i=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),te("xRange return",i),i})},t9=(t,e)=>(te("replaceStars",t,e),t.trim().replace(We[Be.STAR],"")),r9=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(We[e.includePrerelease?Be.GTE0PRE:Be.GTE0],"")),n9=t=>(e,n,i,a,s,o,r,u,l,c,p,_)=>(Ge(i)?n="":Ge(a)?n=`>=${i}.0.0${t?"-0":""}`:Ge(s)?n=`>=${i}.${a}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Ge(l)?u="":Ge(c)?u=`<${+l+1}.0.0-0`:Ge(p)?u=`<${l}.${+c+1}.0-0`:_?u=`<=${l}.${c}.${p}-${_}`:t?u=`<${l}.${c}.${+p+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),o9=(t,e,n)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let i=0;i<t.length;i++)if(te(t[i].semver),t[i].semver!==Xd.ANY&&t[i].semver.prerelease.length>0){let a=t[i].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var bi=h((Epe,Uw)=>{"use strict";var xi=Symbol("SemVer ANY"),Zd=class t{static get ANY(){return xi}constructor(e,n){if(n=Mw(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Qd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===xi?this.value="":this.value=this.operator+this.semver.version,Qd("comp",this)}parse(e){let n=this.options.loose?Lw[Iw.COMPARATORLOOSE]:Lw[Iw.COMPARATOR],i=e.match(n);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Cw(i[2],this.options.loose):this.semver=xi}toString(){return this.value}test(e){if(Qd("Comparator.test",e,this.options.loose),this.semver===xi||e===xi)return!0;if(typeof e=="string")try{e=new Cw(e,this.options)}catch{return!1}return Jd(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ww(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new ww(this.value,n).test(e.semver):(n=Mw(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Jd(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Jd(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Uw.exports=Zd;var Mw=dl(),{safeRe:Lw,t:Iw}=Jn(),Jd=Kd(),Qd=Ri(),Cw=Me(),ww=rt()});var Mi=h((_pe,Dw)=>{"use strict";var i9=rt(),a9=(t,e,n)=>{try{e=new i9(e,n)}catch{return!1}return e.test(t)};Dw.exports=a9});var Bw=h((Spe,Vw)=>{"use strict";var s9=rt(),u9=(t,e)=>new s9(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));Vw.exports=u9});var kw=h((hpe,Gw)=>{"use strict";var l9=Me(),c9=rt(),f9=(t,e,n)=>{let i=null,a=null,s=null;try{s=new c9(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===-1)&&(i=o,a=new l9(i,n))}),i};Gw.exports=f9});var Fw=h((Tpe,Hw)=>{"use strict";var p9=Me(),d9=rt(),E9=(t,e,n)=>{let i=null,a=null,s=null;try{s=new d9(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===1)&&(i=o,a=new p9(i,n))}),i};Hw.exports=E9});var jw=h((vpe,qw)=>{"use strict";var eE=Me(),_9=rt(),Yw=Pi(),S9=(t,e)=>{t=new _9(t,e);let n=new eE("0.0.0");if(t.test(n)||(n=new eE("0.0.0-0"),t.test(n)))return n;n=null;for(let i=0;i<t.set.length;++i){let a=t.set[i],s=null;a.forEach(o=>{let r=new eE(o.semver.version);switch(o.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!s||Yw(r,s))&&(s=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||Yw(n,s))&&(n=s)}return n&&t.test(n)?n:null};qw.exports=S9});var Kw=h((mpe,$w)=>{"use strict";var h9=rt(),T9=(t,e)=>{try{return new h9(t,e).range||"*"}catch{return null}};$w.exports=T9});var Al=h((ype,Jw)=>{"use strict";var v9=Me(),Xw=bi(),{ANY:m9}=Xw,y9=rt(),A9=Mi(),Ww=Pi(),zw=hl(),O9=vl(),g9=Tl(),N9=(t,e,n,i)=>{t=new v9(t,i),e=new y9(e,i);let a,s,o,r,u;switch(n){case">":a=Ww,s=O9,o=zw,r=">",u=">=";break;case"<":a=zw,s=g9,o=Ww,r="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(A9(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],p=null,_=null;if(c.forEach(f=>{f.semver===m9&&(f=new Xw(">=0.0.0")),p=p||f,_=_||f,a(f.semver,p.semver,i)?p=f:o(f.semver,_.semver,i)&&(_=f)}),p.operator===r||p.operator===u||(!_.operator||_.operator===r)&&s(t,_.semver))return!1;if(_.operator===u&&o(t,_.semver))return!1}return!0};Jw.exports=N9});var Zw=h((Ape,Qw)=>{"use strict";var R9=Al(),P9=(t,e,n)=>R9(t,e,">",n);Qw.exports=P9});var tU=h((Ope,eU)=>{"use strict";var b9=Al(),x9=(t,e,n)=>b9(t,e,"<",n);eU.exports=x9});var oU=h((gpe,nU)=>{"use strict";var rU=rt(),M9=(t,e,n)=>(t=new rU(t,n),e=new rU(e,n),t.intersects(e,n));nU.exports=M9});var aU=h((Npe,iU)=>{"use strict";var L9=Mi(),I9=tt();iU.exports=(t,e,n)=>{let i=[],a=null,s=null,o=t.sort((c,p)=>I9(c,p,n));for(let c of o)L9(c,e,n)?(s=c,a||(a=c)):(s&&i.push([a,s]),s=null,a=null);a&&i.push([a,null]);let r=[];for(let[c,p]of i)c===p?r.push(c):!p&&c===o[0]?r.push("*"):p?c===o[0]?r.push(`<=${p}`):r.push(`${c} - ${p}`):r.push(`>=${c}`);let u=r.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var pU=h((Rpe,fU)=>{"use strict";var sU=rt(),rE=bi(),{ANY:tE}=rE,Li=Mi(),nE=tt(),C9=(t,e,n={})=>{if(t===e)return!0;t=new sU(t,n),e=new sU(e,n);let i=!1;e:for(let a of t.set){for(let s of e.set){let o=U9(a,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},w9=[new rE(">=0.0.0-0")],uU=[new rE(">=0.0.0")],U9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===tE){if(e.length===1&&e[0].semver===tE)return!0;n.includePrerelease?t=w9:t=uU}if(e.length===1&&e[0].semver===tE){if(n.includePrerelease)return!0;e=uU}let i=new Set,a,s;for(let f of t)f.operator===">"||f.operator===">="?a=lU(a,f,n):f.operator==="<"||f.operator==="<="?s=cU(s,f,n):i.add(f.semver);if(i.size>1)return null;let o;if(a&&s){if(o=nE(a.semver,s.semver,n),o>0)return null;if(o===0&&(a.operator!==">="||s.operator!=="<="))return null}for(let f of i){if(a&&!Li(f,String(a),n)||s&&!Li(f,String(s),n))return null;for(let S of e)if(!Li(f,String(S),n))return!1;return!0}let r,u,l,c,p=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;p&&p.prerelease.length===1&&s.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",a){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(r=lU(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!Li(a.semver,String(f),n))return!1}if(s){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(u=cU(s,f,n),u===f&&u!==s)return!1}else if(s.operator==="<="&&!Li(s.semver,String(f),n))return!1}if(!f.operator&&(s||a)&&o!==0)return!1}return!(a&&l&&!s&&o!==0||s&&c&&!a&&o!==0||_||p)},lU=(t,e,n)=>{if(!t)return e;let i=nE(t.semver,e.semver,n);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},cU=(t,e,n)=>{if(!t)return e;let i=nE(t.semver,e.semver,n);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};fU.exports=C9});var SU=h((Ppe,_U)=>{"use strict";var oE=Jn(),dU=Ni(),D9=Me(),EU=Yd(),V9=qr(),B9=kC(),G9=FC(),k9=jC(),H9=WC(),F9=XC(),Y9=QC(),q9=ew(),j9=rw(),$9=tt(),K9=aw(),W9=uw(),z9=Sl(),X9=pw(),J9=Ew(),Q9=Pi(),Z9=hl(),e7=jd(),t7=$d(),r7=Tl(),n7=vl(),o7=Kd(),i7=Ow(),a7=bi(),s7=rt(),u7=Mi(),l7=Bw(),c7=kw(),f7=Fw(),p7=jw(),d7=Kw(),E7=Al(),_7=Zw(),S7=tU(),h7=oU(),T7=aU(),v7=pU();_U.exports={parse:V9,valid:B9,clean:G9,inc:k9,diff:H9,major:F9,minor:Y9,patch:q9,prerelease:j9,compare:$9,rcompare:K9,compareLoose:W9,compareBuild:z9,sort:X9,rsort:J9,gt:Q9,lt:Z9,eq:e7,neq:t7,gte:r7,lte:n7,cmp:o7,coerce:i7,Comparator:a7,Range:s7,satisfies:u7,toComparators:l7,maxSatisfying:c7,minSatisfying:f7,minVersion:p7,validRange:d7,outside:E7,gtr:_7,ltr:S7,intersects:h7,simplifyRange:T7,subset:v7,SemVer:D9,re:oE.re,src:oE.src,tokens:oE.t,SEMVER_SPEC_VERSION:dU.SEMVER_SPEC_VERSION,RELEASE_TYPES:dU.RELEASE_TYPES,compareIdentifiers:EU.compareIdentifiers,rcompareIdentifiers:EU.rcompareIdentifiers}});function y7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=TU(e,4),i=n[0],a=n[1],s=n[3],o=i.padStart(32,"0"),r=a.padStart(16,"0"),u=m7.test(s)?parseInt(s,16)&1:1;return{traceId:o,spanId:r,isRemote:!0,traceFlags:u}}var hU,TU,iE,Ol,vU,m7,mU=m(()=>{"use strict";x();K();hU=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},TU=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,s=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},iE="uber-trace-id",Ol="uberctx",vU=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=Ol):(this._jaegerTraceHeader=e?.customTraceHeader||iE,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||Ol)}return t.prototype.inject=function(e,n,i){var a,s,o=X.getSpanContext(e),r=it.getBaggage(e);if(o&&xe(e)===!1){var u="0"+(o.traceFlags||J.NONE).toString(16);i.set(n,this._jaegerTraceHeader,o.traceId+":"+o.spanId+":0:"+u)}if(r)try{for(var l=hU(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=TU(c.value,2),_=p[0],f=p[1];i.set(n,this._jaegerBaggageHeaderPrefix+"-"+_,encodeURIComponent(f.value))}}catch(S){a={error:S}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){var a,s,o=this,r,u=i.get(n,this._jaegerTraceHeader),l=Array.isArray(u)?u[0]:u,c=i.keys(n).filter(function(A){return A.startsWith(o._jaegerBaggageHeaderPrefix+"-")}).map(function(A){var O=i.get(n,A);return{key:A.substring(o._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(O)?O[0]:O}}),p=e;if(typeof l=="string"){var _=y7(l);_&&(p=X.setSpanContext(p,_))}if(c.length===0)return p;var f=(r=it.getBaggage(e))!==null&&r!==void 0?r:it.createBaggage();try{for(var S=hU(c),v=S.next();!v.done;v=S.next()){var T=v.value;T.value!==void 0&&(f=f.setEntry(T.key,{value:decodeURIComponent(T.value)}))}}catch(A){a={error:A}}finally{try{v&&!v.done&&(s=S.return)&&s.call(S)}finally{if(a)throw a.error}}return p=it.setBaggage(p,f),p},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),m7=/^[0-9a-f]{1,2}$/i});var yU={};nt(yU,{JaegerPropagator:()=>vU,UBER_BAGGAGE_HEADER_PREFIX:()=>Ol,UBER_TRACE_ID_HEADER:()=>iE});var AU=m(()=>{"use strict";mU()});var NU=h(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.NodeTracerProvider=void 0;var OU=KI(),gl=(rC(),Y(tC)),gU=(gi(),Y(kd)),A7=SU(),O7=(AU(),Y(yU)),Nl=class extends gU.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=A7.gte(process.version,"14.8.0")?OU.AsyncLocalStorageContextManager:OU.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};Rl.NodeTracerProvider=Nl;Nl._registeredPropagators=new Map([...gU.BasicTracerProvider._registeredPropagators,["b3",()=>new gl.B3Propagator({injectEncoding:gl.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new gl.B3Propagator({injectEncoding:gl.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new O7.JaegerPropagator]])});var RU=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.Tracer=q.TraceIdRatioBasedSampler=q.Span=q.SimpleSpanProcessor=q.SamplingDecision=q.RandomIdGenerator=q.ParentBasedSampler=q.NoopSpanProcessor=q.InMemorySpanExporter=q.ForceFlushState=q.ConsoleSpanExporter=q.BatchSpanProcessor=q.BasicTracerProvider=q.AlwaysOnSampler=q.AlwaysOffSampler=q.NodeTracerProvider=void 0;var g7=NU();Object.defineProperty(q,"NodeTracerProvider",{enumerable:!0,get:function(){return g7.NodeTracerProvider}});var ke=(gi(),Y(kd));Object.defineProperty(q,"AlwaysOffSampler",{enumerable:!0,get:function(){return ke.AlwaysOffSampler}});Object.defineProperty(q,"AlwaysOnSampler",{enumerable:!0,get:function(){return ke.AlwaysOnSampler}});Object.defineProperty(q,"BasicTracerProvider",{enumerable:!0,get:function(){return ke.BasicTracerProvider}});Object.defineProperty(q,"BatchSpanProcessor",{enumerable:!0,get:function(){return ke.BatchSpanProcessor}});Object.defineProperty(q,"ConsoleSpanExporter",{enumerable:!0,get:function(){return ke.ConsoleSpanExporter}});Object.defineProperty(q,"ForceFlushState",{enumerable:!0,get:function(){return ke.ForceFlushState}});Object.defineProperty(q,"InMemorySpanExporter",{enumerable:!0,get:function(){return ke.InMemorySpanExporter}});Object.defineProperty(q,"NoopSpanProcessor",{enumerable:!0,get:function(){return ke.NoopSpanProcessor}});Object.defineProperty(q,"ParentBasedSampler",{enumerable:!0,get:function(){return ke.ParentBasedSampler}});Object.defineProperty(q,"RandomIdGenerator",{enumerable:!0,get:function(){return ke.RandomIdGenerator}});Object.defineProperty(q,"SamplingDecision",{enumerable:!0,get:function(){return ke.SamplingDecision}});Object.defineProperty(q,"SimpleSpanProcessor",{enumerable:!0,get:function(){return ke.SimpleSpanProcessor}});Object.defineProperty(q,"Span",{enumerable:!0,get:function(){return ke.Span}});Object.defineProperty(q,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return ke.TraceIdRatioBasedSampler}});Object.defineProperty(q,"Tracer",{enumerable:!0,get:function(){return ke.Tracer}})});var PU=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.OTLPTraceExporter=void 0;var N7=hd(),R7=(Gu(),Y(fd)),aE=class extends N7.OTLPGRPCExporterNodeBase{constructor(e={}){super(e,R7.ProtobufTraceSerializer,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export","TRACES")}};Pl.OTLPTraceExporter=aE});var bU=h(jr=>{"use strict";var P7=jr&&jr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),b7=jr&&jr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&P7(e,t,n)};Object.defineProperty(jr,"__esModule",{value:!0});b7(PU(),jr)});var wU=Fe($l(),1),UU=Fe(eo(),1);import M7 from"path";function q1(t){return typeof t=="object"&&t!==null}function j1(t){return q1(t)&&typeof t.length=="number"}function $1(t){return Array.isArray(t)?t:t===void 0?[]:j1(t)||t instanceof Set?Array.from(t):[t]}var It=$1;function K1(t,e,...n){let i=[];if(!Array.isArray(t))throw new Error("Input must be an array");for(let[a,s]of t.entries()){let o=[];n.forEach(r=>{typeof r=="function"?o=o.concat(r(s)):o.push(r)}),e(s)&&i.push({index:a,replaceWithValue:o})}for(let a of i.reverse()){let s=[a.index,1].concat(a.replaceWithValue);t.splice.apply(t,s)}return t}var qi=K1;var ce={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},ji=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=It(e);else{e=process.argv.slice(0);let n=process.execArgv.some(X1)?1:2;e.splice(0,n)}e.forEach(n=>this.push(String(n)))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some(e=>ce.optEquals.test(e))){let e=[];this.forEach(n=>{let i=n.match(ce.optEquals);i?e.push(i[1],i[2]):e.push(n)}),this.clear(),this.load(e)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&qi(this,ce.combinedShort,W1)}hasCombinedShortOptions(){return this.some(e=>ce.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function W1(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function $i(t){return ce.optEquals.test(t)}function uo(t){return(ce.short.test(t)||ce.long.test(t))&&!ce.optEquals.test(t)}function z1(t){return ce.long.test(t)&&!$i(t)}function Kl(t){return ce.short.test(t)?t.match(ce.short)[1]:z1(t)?t.match(ce.long)[1]:$i(t)?t.match(ce.optEquals)[1].replace(/^--/,""):null}function _S(t){return!(uo(t)||ce.combinedShort.test(t)||ce.optEquals.test(t))}function X1(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function J1(t){return!isNaN(parseFloat(t))}function Q1(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Z1(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function eV(t){return hS(t)&&typeof t.length=="number"}function hS(t){return typeof t=="object"&&t!==null}function lo(t){return typeof t<"u"}function tV(t){return!lo(t)}function TS(t){return t===null}function rV(t){return lo(t)&&!TS(t)&&!Number.isNaN(t)}function nV(t){return typeof t=="function"?/^class /.test(Function.prototype.toString.call(t)):!1}function oV(t){if(t===null)return!0;switch(typeof t){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function iV(t){if(t){let e=lo(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function aV(t){return t===null||!lo(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}function sV(t){return typeof t=="string"}function uV(t){return typeof t=="function"}function lV(t){return typeof t=="function"&&t.constructor.name==="AsyncFunction"}var Se={isNumber:J1,isFiniteNumber:Q1,isPlainObject:Z1,isArrayLike:eV,isObject:hS,isDefined:lo,isUndefined:tV,isNull:TS,isDefinedValue:rV,isClass:nV,isPrimitive:oV,isPromise:iV,isIterable:aV,isString:sV,isFunction:uV,isAsyncFunction:lV};var Wl=class{constructor(e){this.name=e.name,this.type=e.type||String,this.alias=e.alias,this.multiple=e.multiple,this.lazyMultiple=e.lazyMultiple,this.defaultOption=e.defaultOption,this.defaultValue=e.defaultValue,this.group=e.group;for(let n in e)this[n]||(this[n]=e[n])}isBoolean(){return this.type===Boolean||Se.isFunction(this.type)&&this.type.name==="Boolean"}isMultiple(){return this.multiple||this.lazyMultiple}static create(e){return new this(e)}},co=Wl;var zl=class extends Array{validate(e){this.some(_=>!_.name)&&Ct("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(_=>_.type&&typeof _.type!="function")&&Ct("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)");let a;this.some(_=>(a=_,Se.isDefined(_.alias)&&Se.isNumber(_.alias)))&&Ct("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+a.name+" alias is -"+a.alias+"]"),this.some(_=>(a=_,Se.isDefined(_.alias)&&_.alias.length!==1))&&Ct("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(_=>(a=_,_.alias==="-"))&&Ct("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),mS(this.map(_=>e?_.name.toLowerCase():_.name))&&Ct("INVALID_DEFINITIONS","Two or more option definitions have the same name"),mS(this.map(_=>e&&Se.isDefined(_.alias)?_.alias.toLowerCase():_.alias))&&Ct("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(_=>_.defaultOption===!0).length>1&&Ct("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(_=>(a=_,_.isBoolean()&&_.defaultOption))&&Ct("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(uo(e))if(ce.short.test(e)){let i=Kl(e);if(n){let a=i.toLowerCase();return this.find(s=>Se.isDefined(s.alias)&&s.alias.toLowerCase()===a)}else return this.find(a=>a.alias===i)}else{let i=Kl(e);if(n){let a=i.toLowerCase();return this.find(s=>s.name.toLowerCase()===a)}else return this.find(a=>a.name===i)}else return this.find(i=>i.name===e)}getDefault(){return this.find(e=>e.defaultOption===!0)}isGrouped(){return this.some(e=>e.group)}whereGrouped(){return this.filter(vS)}whereNotGrouped(){return this.filter(e=>!vS(e))}whereDefaultValueSet(){return this.filter(e=>Se.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let i=super.from(It(e),a=>co.create(a));return i.validate(n),i}};function Ct(t,e){let n=new Error(e);throw n.name=t,n}function vS(t){return It(t.group).some(e=>e)}function mS(t){let e={};for(let n=0;n<t.length;n++){let i=t[n];if(e[i])return!0;Se.isDefined(i)&&(e[i]=!0)}}var Zr=zl;var Xl=class{constructor(e,n){this.options=Object.assign({},n),this.definitions=Zr.from(e,this.options.caseInsensitive),this.argv=ji.from(this.options.argv),this.argv.hasCombinedShortOptions()&&qi(this.argv,ce.combinedShort.test.bind(ce.combinedShort),i=>(i=i.slice(1),i.split("").map(a=>({origArg:`-${i}`,arg:"-"+a}))))}*[Symbol.iterator](){let e=this.definitions,n,i,a,s,o=!1,r=!1,u;for(let l of this.argv){if(Se.isPlainObject(l)&&(u=l.origArg,l=l.arg),r&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:l,name:"_unknown",value:void 0};continue}if(uo(l))n=e.get(l,this.options.caseInsensitive),i=void 0,n?(i=n.isBoolean()?!0:null,s="set"):s="unknown_option";else if($i(l)){let p=l.match(ce.optEquals);n=e.get(p[1],this.options.caseInsensitive),n?n.isBoolean()?(yield{event:"unknown_value",arg:l,name:"_unknown",value:i,def:n},s="set",i=!0):(s="set",i=p[2]):s="unknown_option"}else _S(l)&&(n?(i=l,s="set"):(n=this.definitions.getDefault(),n&&!o?(i=l,s="set"):(s="unknown_value",n=void 0)));a=n?n.name:"_unknown";let c={event:s,arg:l,name:a,value:i,def:n};u&&(c.subArg=l,c.arg=u),yield c,a==="_unknown"&&(r=!0),n&&n.defaultOption&&!n.isMultiple()&&s==="set"&&(o=!0),n&&n.isBoolean()&&(n=void 0),n&&!n.multiple&&Se.isDefined(i)&&i!==null&&(n=void 0),i=void 0,s=void 0,a=void 0,u=void 0}}},yS=Xl;var yr=new WeakMap,Ki=class{constructor(e){this.definition=new co(e),this.state=null,this.resetToDefault()}get(){return yr.get(this)}set(e){this._set(e,"set")}_set(e,n){let i=this.definition;if(i.isMultiple()){if(e!=null){let a=this.get();this.state==="default"&&(a.length=0),a.push(i.type(e)),this.state=n}}else if(!i.isMultiple()&&this.state==="set"){let a=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw a.name="ALREADY_SET",a.value=e,a.optionName=i.name,a}else e==null?yr.set(this,e):(yr.set(this,i.type(e)),this.state=n)}resetToDefault(){Se.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?yr.set(this,It(this.definition.defaultValue).slice()):yr.set(this,this.definition.defaultValue):this.definition.isMultiple()?yr.set(this,[]):yr.set(this,null),this.state="default"}static create(e){return e=new co(e),e.isBoolean()?Jl.create(e):new this(e)}},Jl=class extends Ki{set(e){super.set(!0)}static create(e){return new this(e)}},fo=Ki;var AS=Fe(fE(),1),Ql=class extends Map{constructor(e){super(),this.definitions=Zr.from(e),this.set("_unknown",fo.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,fo.create(n))}toObject(e){e=e||{};let n={};for(let i of this){let a=e.camelCase&&i[0]!=="_unknown"?(0,AS.default)(i[0]):i[0],s=i[1];a==="_unknown"&&!s.get().length||(n[a]=s.get())}return e.skipUnknown&&delete n._unknown,n}},Wi=Ql;var Zl=Fe(fE(),1),ec=class extends Wi{toObject(e){let n=super.toObject({skipUnknown:e.skipUnknown}),i=super.toObject(e),a=i._unknown;delete i._unknown;let s={_all:i};return a&&a.length&&(s._unknown=a),this.definitions.whereGrouped().forEach(o=>{let r=e.camelCase?(0,Zl.default)(o.name):o.name,u=n[o.name];for(let l of It(o.group))s[l]=s[l]||{},Se.isDefined(u)&&(s[l][r]=u)}),this.definitions.whereNotGrouped().forEach(o=>{let r=e.camelCase?(0,Zl.default)(o.name):o.name,u=n[o.name];Se.isDefined(u)&&(s._none||(s._none={}),s._none[r]=u)}),s}},OS=ec;function cV(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=Zr.from(t,e.caseInsensitive);let n=new yS(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),i=t.isGrouped()?OS:Wi,a=new i(t);for(let s of n){let o=s.subArg||s.arg;if(!e.partial){if(s.event==="unknown_value"){let u=new Error(`Unknown value: ${o}`);throw u.name="UNKNOWN_VALUE",u.value=o,u}else if(s.event==="unknown_option"){let u=new Error(`Unknown option: ${o}`);throw u.name="UNKNOWN_OPTION",u.optionName=o,u}}let r;a.has(s.name)?r=a.get(s.name):(r=fo.create(s.def),a.set(s.name,r)),s.name==="_unknown"?r.set(o):r.set(s.value)}return a.toObject({skipUnknown:!e.partial,camelCase:e.camelCase})}var gS=cV;var DU=Fe(HU(),1),VU=Fe(FU(),1),BU=Fe(QO(),1);import L7 from"http";import{Session as I7}from"node:inspector/promises";import{createRequire as pY}from"module";var lc=Fe($l(),1);import ra from"path";import uc from"os";var dY=pY(import.meta.url);function ZO(t){let e=dY.resolve(t),n=ra.dirname(e);for(;!lc.default.existsSync(ra.join(n,"package.json"));)n=ra.dirname(n);let i=lc.default.readFileSync(ra.join(n,"package.json"),"utf-8");return JSON.parse(i)}var na=class{constructor(e){this.instance=e;let n=ZO("@sentio/sdk"),i=ZO("@sentio/runtime");console.log("Runtime version:",i.version,"SDK version:",n.version);let a=n.version.split(".");this.sdkMinorVersion=parseInt(a[1])}instance;sdkMinorVersion;async getConfig(e,n){let i=await this.instance.getConfig(e,n);if(i.executionConfig=lE.fromPartial(Ll.execution),i.contractConfigs)for(let a of i.contractConfigs)a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return i}async start(e,n){return await this.instance.start(e,n)}async stop(e,n){return await this.instance.stop(e,n)}async processBindings(e,n){Ll.execution.sequential&&(e.bindings=e.bindings.sort(EY));for(let i of e.bindings)this.adjustDataBinding(i);try{let i=await this.instance.processBindings(e,n);return this.adjustResult(i.result),!i.configUpdated&&i.result?.states?.configUpdated&&(i.configUpdated=i.result?.states?.configUpdated),i}catch(i){throw this.sdkMinorVersion<=16&&(i.code===uc.constants.errno.ECONNRESET||i.code===uc.constants.errno.ECONNREFUSED||i.code===uc.constants.errno.ECONNABORTED)&&process.exit(1),i}}async*adjustBindingsStream(e){for await(let n of e)this.adjustDataBinding(n.binding),yield n}async*processBindingsStream(e,n){yield*this.instance.processBindingsStream(this.adjustBindingsStream(e),n)}async*preprocessBindingsStream(e,n){yield*this.instance.preprocessBindingsStream(this.adjustBindingsStream(e),n)}adjustResult(e){}adjustDataBinding(e){if(e)switch(e.handlerType){case 6:e.data?.aptEvent&&e.data.aptEvent.rawTransaction&&!e.data.aptEvent.transaction&&(e.data.aptEvent.transaction=JSON.parse(e.data.aptEvent.rawTransaction));break;case 7:e.data?.aptCall&&e.data.aptCall.rawTransaction&&!e.data.aptCall.transaction&&(e.data.aptCall.transaction=JSON.parse(e.data.aptCall.rawTransaction));break;case 8:e.data?.aptResource?.resources&&e.data.aptResource.rawResources&&e.data.aptResource.rawResources.length>0&&(e.data.aptResource.resources=e.data.aptResource.rawResources.map(n=>JSON.parse(n)));break;case 0:e.data?.ethBlock&&e.data.raw.length===0&&(e.data.raw=new TextEncoder().encode(JSON.stringify(e.data.ethBlock.block)));break;default:break}}};function EY(t,e){let n=eg(t)||new Date(0),i=eg(e)||new Date(0),a=n.getTime()-i.getTime();return a!==0?a:tg(t)-tg(e)}function eg(t){return t.data?.ethLog?.timestamp||t.data?.ethTransaction?.timestamp||(t.data?.ethBlock?.block?.timestamp?new Date(Number(t.data.ethBlock.block.timestamp)*1e3):void 0)||t.data?.ethTrace?.timestamp||(t.data?.aptCall?.transaction?new Date(Number(t.data.aptCall.transaction.timestamp)/1e3):void 0)||(t.data?.aptEvent?.transaction?new Date(Number(t.data.aptEvent.transaction.timestamp)/1e3):void 0)||(t.data?.aptResource?.timestampMicros?new Date(Number(t.data.aptResource.timestampMicros)/1e3):void 0)||t.data?.fuelCall?.timestamp}function tg(t){return t.data?.ethLog?.log?.logIndex||t.data?.ethTransaction?.transaction?.transactionIndex||t.data?.ethBlock?.block?.number||t.data?.ethTrace?.trace?.transactionPosition}import("node:process").then(t=>t.stdout.write(""));var At=Fe(_0(),1);function S0(t){let e=[],n=JSON.stringify(t,function(i,a){if(typeof a=="object"&&a!==null){if(e.indexOf(a)!==-1)return;e.push(a)}return a});return e=[],n}function h0(t,e){let n={transform:a=>{let s=[];typeof a.message=="object"?s.push(S0(a.message)):s.push(a.message);let o=a[Symbol.for("splat")];if(o)for(let r in o){let u=o[r];typeof u=="object"?s.push(S0(u)):s.push(u)}return a.message=s.join(" "),a}},i=(0,At.createLogger)({format:At.format.combine(At.format.timestamp({format:"YYYY-MM-DDTHH:mm:ss.SSSZ"}),n,At.format.errors({stack:!0}),t?At.format.json():At.format.simple()),level:e?"debug":"info",transports:[new At.transports.Console]});console.log=(...a)=>i.info.call(i,...a),console.info=(...a)=>i.info.call(i,...a),console.warn=(...a)=>i.warn.call(i,...a),console.error=(...a)=>i.error.call(i,...a),console.debug=(...a)=>i.debug.call(i,...a)}import("node:process").then(t=>t.stdout.write(""));Gs();Ln();var xU=Fe(kI(),1),MU=Fe(qI(),1),sE=Fe(RU(),1),LU=Fe(bU(),1);gi();x();async function IU(t){t&&g.setLogger(new _E,ot.DEBUG);let e=await Bs.detect(),n=new pi({resource:e,readers:[new nu({exporter:new xU.OTLPMetricExporter}),new MU.PrometheusExporter({host:"0.0.0.0",port:4041})]}),i=new sE.NodeTracerProvider({resource:e}),a=new LU.OTLPTraceExporter,s=new hr(a);i.addSpanProcessor(s),Ci.setGlobalMeterProvider(n),X.setGlobalTracerProvider(i),["SIGINT","SIGTERM"].forEach(o=>{process.on(o,()=>x7())}),Ci.getMeter("processor").createGauge("up").record(1)}async function x7(){let t=X.getTracerProvider();if(t instanceof TE){let n=t.getDelegate();n instanceof sE.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=Ci.getMeterProvider();e instanceof pi&&e.shutdown().catch(console.error)}import("node:process").then(t=>t.stdout.write(""));var bl=class{constructor(e){this.loader=e}async listen(e){let n=xl.INSTANCE;await this.loader(),await n.configure(uE.create()),console.log("Starting Action Server at:",e),await n.startServer(e)}forceShutdown(){xl.INSTANCE.shutdown()}};import("node:process").then(t=>t.stdout.write(""));var C7=[{name:"target",type:String,defaultOption:!0},{name:"port",alias:"p",type:String,defaultValue:"4000"},{name:"concurrency",type:Number,defaultValue:4},{name:"batch-count",type:Number,defaultValue:1},{name:"chains-config",alias:"c",type:String,defaultValue:"chains-config.json"},{name:"chainquery-server",type:String,defaultValue:""},{name:"pricefeed-server",type:String,defaultValue:""},{name:"log-format",type:String,defaultValue:"console"},{name:"debug",type:Boolean,defaultValue:!1},{name:"start-action-server",type:Boolean,defaultValue:!1}],He=gS(C7,{partial:!0}),w7=process.env.LOG_LEVEL?.toUpperCase();h0(He["log-format"]==="json",w7==="debug"?!0:He.debug);console.debug("Starting with",He.target);await IU(He.debug);Error.stackTraceLimit=20;var U7=M7.resolve(He["chains-config"]),D7=wU.default.readJsonSync(U7),V7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,B7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;Tr.INSTANCE.concurrency=V7??He.concurrency;Tr.INSTANCE.batchCount=B7??He["batch-count"];Tr.INSTANCE.chainQueryAPI=He["chainquery-server"];Tr.INSTANCE.priceFeedAPI=He["pricefeed-server"];for(let[t,e]of Object.entries(D7)){let n=e;if(n.ChainServer)Tr.INSTANCE.chainServer.set(t,n.ChainServer);else{let i=n.Https?.[0];i?Tr.INSTANCE.chainServer.set(t,i):console.error("not valid config for chain",t)}}console.debug("Starting Server",He);var $r,Zn,CU=async()=>{let t=await import(He.target);return console.debug("Module loaded",t),t};if(He["start-action-server"])$r=new bl(CU),$r.listen(He.port);else{$r=(0,DU.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":UU.compressionAlgorithms.gzip}).use((0,BU.openTelemetryServerMiddleware)()).use(VU.errorDetailsServerMiddleware),Zn=new yE(CU,$r.shutdown);let t=new na(Zn);$r.add(cE,t),$r.listen("0.0.0.0:"+He.port),console.log("Processor Server Started at:",He.port)}var GU=4040,G7=L7.createServer(async function(t,e){if(t.url){let n=new URL(t.url,`http://${t.headers.host}`),i=n.searchParams;switch(n.pathname){case"/profile":{try{let a=parseInt(i.get("t")||"1000",10)||1e3,s=new I7;s.connect(),await s.post("Profiler.enable"),await s.post("Profiler.start"),await new Promise(r=>setTimeout(r,a));let{profile:o}=await s.post("Profiler.stop");e.writeHead(200,{"Content-Type":"application/json"}),e.write(JSON.stringify(o)),s.disconnect()}catch{e.writeHead(500)}break}default:e.writeHead(404)}}else e.writeHead(404);e.end()}).listen(GU);console.log("Metric Server Started at:",GU);process.on("SIGINT",function(){k7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Zn&&(Zn.unhandled=t)}).on("unhandledRejection",(t,e)=>{t?.message.startsWith('invalid ENS name (disallowed character: "*"')||(console.error("Unhandled Rejection, please checking if await is properly",t),Zn&&(Zn.unhandled=t))});function k7(t){$r?.forceShutdown(),console.log("RPC server shut down"),G7.close(function(){console.log("Http server shut down"),process.exit(t)})}import("node:process").then(t=>t.stdout.write(""));
|
58
|
+
${u}
|
59
|
+
`}};tl.PrometheusSerializer=hd});var YI=h(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.PrometheusExporter=void 0;var mi=(M(),Y(Pe)),$z=(K(),Y(Uu)),vd=(In(),Y(ed)),Kz=L("http"),Wz=Td(),zz=L("url"),rl=class t extends vd.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:i=>vd.Aggregation.Default(),aggregationTemporalitySelector:i=>vd.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(i,a)=>{i.url!=null&&new zz.URL(i.url,this._baseUrl).pathname===this._endpoint?this._exportMetrics(a):this._notFound(a)},this._exportMetrics=i=>{i.statusCode=200,i.setHeader("content-type","text/plain"),this.collect().then(a=>{let{resourceMetrics:u,errors:o}=a;o.length&&mi.diag.error("PrometheusExporter: metrics collection errors",...o),i.end(this._serializer.serialize(u))},a=>{i.end(`# failed to export metrics: ${a}`)})},this._notFound=i=>{i.statusCode=404,i.end()},this._host=e.host||process.env.OTEL_EXPORTER_PROMETHEUS_HOST||t.DEFAULT_OPTIONS.host,this._port=e.port||Number(process.env.OTEL_EXPORTER_PROMETHEUS_PORT)||t.DEFAULT_OPTIONS.port,this._prefix=e.prefix||t.DEFAULT_OPTIONS.prefix,this._appendTimestamp=typeof e.appendTimestamp=="boolean"?e.appendTimestamp:t.DEFAULT_OPTIONS.appendTimestamp,this._server=(0,Kz.createServer)(this._requestHandler).unref(),this._serializer=new Wz.PrometheusSerializer(this._prefix,this._appendTimestamp),this._baseUrl=`http://${this._host}:${this._port}/`,this._endpoint=(e.endpoint||t.DEFAULT_OPTIONS.endpoint).replace(/^([^/])/,"/$1"),e.preventServerStart!==!0?this.startServer().then(n,i=>{mi.diag.error(i),n(i)}):n&&queueMicrotask(n)}async onForceFlush(){}onShutdown(){return this.stopServer()}stopServer(){return this._server?new Promise(e=>{this._server.close(n=>{n?n.code!=="ERR_SERVER_NOT_RUNNING"&&(0,$z.globalErrorHandler)(n):mi.diag.debug("Prometheus exporter was stopped"),e()})}):(mi.diag.debug("Prometheus stopServer() was called but server was never started."),Promise.resolve())}startServer(){var e;return(e=this._startServerPromise)!==null&&e!==void 0||(this._startServerPromise=new Promise((n,i)=>{this._server.once("error",i),this._server.listen({port:this._port,host:this._host},()=>{mi.diag.debug(`Prometheus exporter server started: ${this._host}:${this._port}/${this._endpoint}`),n()})})),this._startServerPromise}getMetricsRequestHandler(e,n){this._exportMetrics(n)}};nl.PrometheusExporter=rl;rl.DEFAULT_OPTIONS={host:void 0,port:9464,endpoint:"/metrics",prefix:"",appendTimestamp:!1}});var qI=h(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.PrometheusSerializer=kn.PrometheusExporter=void 0;var Xz=YI();Object.defineProperty(kn,"PrometheusExporter",{enumerable:!0,get:function(){return Xz.PrometheusExporter}});var Jz=Td();Object.defineProperty(kn,"PrometheusSerializer",{enumerable:!0,get:function(){return Jz.PrometheusSerializer}})});var yd=h(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.AbstractAsyncHooksContextManager=void 0;var Qz=L("events"),Zz=["addListener","on","once","prependListener","prependOnceListener"],md=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof Qz.EventEmitter?this._bindEventEmitter(e,n):typeof n=="function"?this._bindFunction(e,n):n}_bindFunction(e,n){let i=this,a=function(...u){return i.with(e,()=>n.apply(this,u))};return Object.defineProperty(a,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),a}_bindEventEmitter(e,n){return this._getPatchMap(n)!==void 0||(this._createPatchMap(n),Zz.forEach(a=>{n[a]!==void 0&&(n[a]=this._patchAddListener(n,n[a],e))}),typeof n.removeListener=="function"&&(n.removeListener=this._patchRemoveListener(n,n.removeListener)),typeof n.off=="function"&&(n.off=this._patchRemoveListener(n,n.off)),typeof n.removeAllListeners=="function"&&(n.removeAllListeners=this._patchRemoveAllListeners(n,n.removeAllListeners))),n}_patchRemoveListener(e,n){let i=this;return function(a,u){var o;let r=(o=i._getPatchMap(e))===null||o===void 0?void 0:o[a];if(r===void 0)return n.call(this,a,u);let s=r.get(u);return n.call(this,a,s||u)}}_patchRemoveAllListeners(e,n){let i=this;return function(a){let u=i._getPatchMap(e);return u!==void 0&&(arguments.length===0?i._createPatchMap(e):u[a]!==void 0&&delete u[a]),n.apply(this,arguments)}}_patchAddListener(e,n,i){let a=this;return function(u,o){if(a._wrapped)return n.call(this,u,o);let r=a._getPatchMap(e);r===void 0&&(r=a._createPatchMap(e));let s=r[u];s===void 0&&(s=new WeakMap,r[u]=s);let l=a.bind(i,o);s.set(o,l),a._wrapped=!0;try{return n.call(this,u,l)}finally{a._wrapped=!1}}}_createPatchMap(e){let n=Object.create(null);return e[this._kOtListeners]=n,n}_getPatchMap(e){return e[this._kOtListeners]}};ol.AbstractAsyncHooksContextManager=md});var jI=h(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.AsyncHooksContextManager=void 0;var eX=(M(),Y(Pe)),tX=L("async_hooks"),rX=yd(),Ad=class extends rX.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=tX.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(){var e;return(e=this._stack[this._stack.length-1])!==null&&e!==void 0?e:eX.ROOT_CONTEXT}with(e,n,i,...a){this._enterContext(e);try{return n.call(i,...a)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(e,n){if(n==="TIMERWRAP")return;let i=this._stack[this._stack.length-1];i!==void 0&&this._contexts.set(e,i)}_destroy(e){this._contexts.delete(e)}_before(e){let n=this._contexts.get(e);n!==void 0&&this._enterContext(n)}_after(){this._exitContext()}_enterContext(e){this._stack.push(e)}_exitContext(){this._stack.pop()}};il.AsyncHooksContextManager=Ad});var $I=h(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.AsyncLocalStorageContextManager=void 0;var nX=(M(),Y(Pe)),oX=L("async_hooks"),iX=yd(),Od=class extends iX.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new oX.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:nX.ROOT_CONTEXT}with(e,n,i,...a){let u=i==null?n:n.bind(i);return this._asyncLocalStorage.run(e,u,...a)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}};al.AsyncLocalStorageContextManager=Od});var KI=h(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.AsyncLocalStorageContextManager=Hn.AsyncHooksContextManager=void 0;var aX=jI();Object.defineProperty(Hn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return aX.AsyncHooksContextManager}});var uX=$I();Object.defineProperty(Hn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return uX.AsyncLocalStorageContextManager}})});var Fn,gd=m(()=>{"use strict";M();Fn=Kr("OpenTelemetry Context Key B3 Debug Flag")});var dr,Yn,qn,jn,ul,$n,yi=m(()=>{"use strict";dr="b3",Yn="x-b3-traceid",qn="x-b3-spanid",jn="x-b3-sampled",ul="x-b3-parentspanid",$n="x-b3-flags"});function cX(t){return t===Q.SAMPLED||t===Q.NONE}function fX(t){return Array.isArray(t)?t[0]:t}function sl(t,e,n){var i=e.get(t,n);return fX(i)}function pX(t,e){var n=sl(t,e,Yn);return typeof n=="string"?n.padStart(32,"0"):""}function dX(t,e){var n=sl(t,e,qn);return typeof n=="string"?n:""}function WI(t,e){var n=sl(t,e,$n);return n==="1"?"1":void 0}function EX(t,e){var n=sl(t,e,jn),i=WI(t,e);if(i==="1"||sX.has(n))return Q.SAMPLED;if(n===void 0||lX.has(n))return Q.NONE}var sX,lX,zI,XI=m(()=>{"use strict";M();K();gd();yi();sX=new Set([!0,"true","True","1",1]),lX=new Set([!1,"false","False","0",0]);zI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=J.getSpanContext(e);if(!(!a||!_t(a)||xe(e))){var u=e.getValue(Fn);i.set(n,Yn,a.traceId),i.set(n,qn,a.spanId),u==="1"?i.set(n,$n,u):a.traceFlags!==void 0&&i.set(n,jn,(Q.SAMPLED&a.traceFlags)===Q.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,i){var a=pX(n,i),u=dX(n,i),o=EX(n,i),r=WI(n,i);return Gt(a)&&Ii(u)&&cX(o)?(e=e.setValue(Fn,r),J.setSpanContext(e,{traceId:a,spanId:u,isRemote:!0,traceFlags:o})):e},t.prototype.fields=function(){return[Yn,qn,$n,jn,ul]},t}()});function mX(t){return t.length===32?t:""+hX+t}function yX(t){return t&&TX.has(t)?Q.SAMPLED:Q.NONE}var _X,SX,hX,TX,vX,JI,QI=m(()=>{"use strict";M();K();gd();yi();_X=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},SX=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,hX="0".repeat(16),TX=new Set(["d","1"]),vX="d";JI=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=J.getSpanContext(e);if(!(!a||!_t(a)||xe(e))){var u=e.getValue(Fn)||a.traceFlags&1,o=a.traceId+"-"+a.spanId+"-"+u;i.set(n,dr,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,dr),u=Array.isArray(a)?a[0]:a;if(typeof u!="string")return e;var o=u.match(SX);if(!o)return e;var r=_X(o,4),s=r[1],l=r[2],c=r[3],p=mX(s);if(!Gt(p)||!Ii(l))return e;var _=yX(c);return c===vX&&(e=e.setValue(Fn,c)),J.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:_})},t.prototype.fields=function(){return[dr]},t}()});var Kn,Nd=m(()=>{"use strict";(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Kn||(Kn={}))});var ZI,eC=m(()=>{"use strict";K();XI();QI();yi();Nd();ZI=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new zI,this._b3SinglePropagator=new JI,e.injectEncoding===Kn.MULTI_HEADER?(this._inject=this._b3MultiPropagator.inject,this._fields=this._b3MultiPropagator.fields()):(this._inject=this._b3SinglePropagator.inject,this._fields=this._b3SinglePropagator.fields())}return t.prototype.inject=function(e,n,i){xe(e)||this._inject(e,n,i)},t.prototype.extract=function(e,n,i){var a=i.get(n,dr),u=Array.isArray(a)?a[0]:a;return u?this._b3SinglePropagator.extract(e,n,i):this._b3MultiPropagator.extract(e,n,i)},t.prototype.fields=function(){return this._fields},t}()});var tC={};Je(tC,{B3InjectEncoding:()=>Kn,B3Propagator:()=>ZI,B3_CONTEXT_HEADER:()=>dr,X_B3_FLAGS:()=>$n,X_B3_PARENT_SPAN_ID:()=>ul,X_B3_SAMPLED:()=>jn,X_B3_SPAN_ID:()=>qn,X_B3_TRACE_ID:()=>Yn});var rC=m(()=>{"use strict";eC();yi();Nd()});var nC,oC=m(()=>{"use strict";nC="exception"});var Rd,AX,iC,OX,ll,Pd=m(()=>{"use strict";M();K();Ko();oC();Rd=function(){return Rd=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Rd.apply(this,arguments)},AX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},iC=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},OX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},ll=function(){function t(e,n,i,a,u,o,r,s,l,c){r===void 0&&(r=[]),this.attributes={},this.links=[],this.events=[],this._droppedAttributesCount=0,this._droppedEventsCount=0,this._droppedLinksCount=0,this.status={code:_E.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=a,this.parentSpanId=o,this.kind=u,this.links=r;var p=Date.now();this._performanceStartTime=et.now(),this._performanceOffset=p-(this._performanceStartTime+An()),this._startTimeProvided=s!=null,this.startTime=this._getTime(s??p),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,c!=null&&this.setAttributes(c),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,n)}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(e,n){return n==null||this._isSpanEnded()?this:e.length===0?(g.warn("Invalid attribute key: "+e),this):Xo(n)?Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)?(this._droppedAttributesCount++,this):(this.attributes[e]=this._truncateToSize(n),this):(g.warn("Invalid attribute value set for key: "+e),this)},t.prototype.setAttributes=function(e){var n,i;try{for(var a=AX(Object.entries(e)),u=a.next();!u.done;u=a.next()){var o=iC(u.value,2),r=o[0],s=o[1];this.setAttribute(r,s)}}catch(l){n={error:l}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this},t.prototype.addEvent=function(e,n,i){if(this._isSpanEnded())return this;if(this._spanLimits.eventCountLimit===0)return g.warn("No events allowed."),this._droppedEventsCount++,this;this.events.length>=this._spanLimits.eventCountLimit&&(this._droppedEventsCount===0&&g.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),ei(n)&&(ei(i)||(i=n),n=void 0);var a=or(n);return this.events.push({name:e,attributes:a,time:this._getTime(i),droppedAttributesCount:0}),this},t.prototype.addLink=function(e){return this.links.push(e),this},t.prototype.addLinks=function(e){var n;return(n=this.links).push.apply(n,OX([],iC(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=Rd({},e),this.status.message!=null&&typeof e.message!="string"&&(g.warn("Dropping invalid status.message of type '"+typeof e.message+"', expected 'string'"),delete this.status.message),this)},t.prototype.updateName=function(e){return this._isSpanEnded()?this:(this.name=e,this)},t.prototype.end=function(e){if(this._isSpanEnded()){g.error(this.name+" "+this._spanContext.traceId+"-"+this._spanContext.spanId+" - You can only call end() on a span once.");return}this._ended=!0,this.endTime=this._getTime(e),this._duration=Pu(this.startTime,this.endTime),this._duration[0]<0&&(g.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&g.warn("Dropped "+this._droppedEventsCount+" events because eventCountLimit reached"),this._spanProcessor.onEnd(this)},t.prototype._getTime=function(e){if(typeof e=="number"&&e<=et.now())return Zo(e+this._performanceOffset);if(typeof e=="number")return ge(e);if(e instanceof Date)return ge(e.getTime());if(On(e))return e;if(this._startTimeProvided)return ge(Date.now());var n=et.now()-this._performanceStartTime;return ti(this.startTime,ge(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var i={};typeof e=="string"?i[du]=e:e&&(e.code?i[pu]=e.code.toString():e.name&&(i[pu]=e.name),e.message&&(i[du]=e.message),e.stack&&(i[d0]=e.stack)),i[pu]||i[du]?this.addEvent(nC,i,n):g.warn("Failed to record an exception "+e)},Object.defineProperty(t.prototype,"duration",{get:function(){return this._duration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ended",{get:function(){return this._ended},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedAttributesCount",{get:function(){return this._droppedAttributesCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedEventsCount",{get:function(){return this._droppedEventsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"droppedLinksCount",{get:function(){return this._droppedLinksCount},enumerable:!1,configurable:!0}),t.prototype._isSpanEnded=function(){return this._ended&&g.warn("Can not execute the operation on ended Span {traceId: "+this._spanContext.traceId+", spanId: "+this._spanContext.spanId+"}"),this._ended},t.prototype._truncateToLimitUtil=function(e,n){return e.length<=n?e:e.substring(0,n)},t.prototype._truncateToSize=function(e){var n=this,i=this._attributeValueLengthLimit;return i<=0?(g.warn("Attribute value limit must be positive, got "+i),e):typeof e=="string"?this._truncateToLimitUtil(e,i):Array.isArray(e)?e.map(function(a){return typeof a=="string"?n._truncateToLimitUtil(a,i):a}):e},t}()});var dt,Ai=m(()=>{"use strict";(function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(dt||(dt={}))});var Er,cl=m(()=>{"use strict";Ai();Er=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var bt,fl=m(()=>{"use strict";Ai();bt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var Wn,bd=m(()=>{"use strict";M();K();cl();fl();Wn=function(){function t(e){var n,i,a,u;this._root=e.root,this._root||(Te(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new bt),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new bt,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new Er,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new bt,this._localParentNotSampled=(u=e.localParentNotSampled)!==null&&u!==void 0?u:new Er}return t.prototype.shouldSample=function(e,n,i,a,u,o){var r=J.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,u,o):r.isRemote?r.traceFlags&Q.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,u,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,u,o):r.traceFlags&Q.SAMPLED?this._localParentSampled.shouldSample(e,n,i,a,u,o):this._localParentNotSampled.shouldSample(e,n,i,a,u,o)},t.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},t}()});var Oi,xd=m(()=>{"use strict";M();Ai();Oi=function(){function t(e){e===void 0&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(this._ratio*4294967295)}return t.prototype.shouldSample=function(e,n){return{decision:Gt(n)&&this._accumulate(n)<this._upperBound?dt.RECORD_AND_SAMPLED:dt.NOT_RECORD}},t.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},t.prototype._normalize=function(e){return typeof e!="number"||isNaN(e)?0:e>=1?1:e<=0?0:e},t.prototype._accumulate=function(e){for(var n=0,i=0;i<e.length/8;i++){var a=i*8,u=parseInt(e.slice(a,a+8),16);n=(n^u)>>>0}return n},t}()});function pl(){var t=Oe();return{sampler:Md(gX),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:t.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_ATTRIBUTE_COUNT_LIMIT},spanLimits:{attributeValueLengthLimit:t.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT,attributeCountLimit:t.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:t.OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:t.OTEL_SPAN_EVENT_COUNT_LIMIT,attributePerEventCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,attributePerLinkCountLimit:t.OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT},mergeResourceWithDefaults:!0}}function Md(t){switch(t===void 0&&(t=Oe()),t.OTEL_TRACES_SAMPLER){case Ke.AlwaysOn:return new bt;case Ke.AlwaysOff:return new Er;case Ke.ParentBasedAlwaysOn:return new Wn({root:new bt});case Ke.ParentBasedAlwaysOff:return new Wn({root:new Er});case Ke.TraceIdRatio:return new Oi(aC(t));case Ke.ParentBasedTraceIdRatio:return new Wn({root:new Oi(aC(t))});default:return g.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+NX+'".'),new bt}}function aC(t){if(t.OTEL_TRACES_SAMPLER_ARG===void 0||t.OTEL_TRACES_SAMPLER_ARG==="")return g.error("OTEL_TRACES_SAMPLER_ARG is blank, defaulting to "+zn+"."),zn;var e=Number(t.OTEL_TRACES_SAMPLER_ARG);return isNaN(e)?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is invalid, defaulting to "+zn+"."),zn):e<0||e>1?(g.error("OTEL_TRACES_SAMPLER_ARG="+t.OTEL_TRACES_SAMPLER_ARG+" was given, but it is out of range ([0..1]), defaulting to "+zn+"."),zn):e}var gX,NX,zn,Ld=m(()=>{"use strict";M();K();cl();fl();bd();xd();gX=Oe(),NX=Ke.AlwaysOn,zn=1});function uC(t){var e={sampler:Md()},n=pl(),i=Object.assign({},n,e,t);return i.generalLimits=Object.assign({},n.generalLimits,t.generalLimits||{}),i.spanLimits=Object.assign({},n.spanLimits,t.spanLimits||{}),i}function sC(t){var e,n,i,a,u,o,r,s,l,c,p,_,f=Object.assign({},t.spanLimits),S=mn();return f.attributeCountLimit=(o=(u=(a=(n=(e=t.spanLimits)===null||e===void 0?void 0:e.attributeCountLimit)!==null&&n!==void 0?n:(i=t.generalLimits)===null||i===void 0?void 0:i.attributeCountLimit)!==null&&a!==void 0?a:S.OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT)!==null&&u!==void 0?u:S.OTEL_ATTRIBUTE_COUNT_LIMIT)!==null&&o!==void 0?o:wr,f.attributeValueLengthLimit=(_=(p=(c=(s=(r=t.spanLimits)===null||r===void 0?void 0:r.attributeValueLengthLimit)!==null&&s!==void 0?s:(l=t.generalLimits)===null||l===void 0?void 0:l.attributeValueLengthLimit)!==null&&c!==void 0?c:S.OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&p!==void 0?p:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:Cr,Object.assign({},t,{spanLimits:f})}var Id=m(()=>{"use strict";Ld();K()});var lC,cC=m(()=>{"use strict";M();K();lC=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var i=Oe();this._maxExportBatchSize=typeof n?.maxExportBatchSize=="number"?n.maxExportBatchSize:i.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize=typeof n?.maxQueueSize=="number"?n.maxQueueSize:i.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis=typeof n?.scheduledDelayMillis=="number"?n.scheduledDelayMillis:i.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis=typeof n?.exportTimeoutMillis=="number"?n.exportTimeoutMillis:i.OTEL_BSP_EXPORT_TIMEOUT,this._shutdownOnce=new Nn(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(g.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}return t.prototype.forceFlush=function(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){this._shutdownOnce.isCalled||e.spanContext().traceFlags&Q.SAMPLED&&this._addToBuffer(e)},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){var e=this;return Promise.resolve().then(function(){return e.onShutdown()}).then(function(){return e._flushAll()}).then(function(){return e._exporter.shutdown()})},t.prototype._addToBuffer=function(e){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&g.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(g.warn("Dropped "+this._droppedSpansCount+" spans because maxQueueSize reached"),this._droppedSpansCount=0),this._finishedSpans.push(e),this._maybeStartTimer()},t.prototype._flushAll=function(){var e=this;return new Promise(function(n,i){for(var a=[],u=Math.ceil(e._finishedSpans.length/e._maxExportBatchSize),o=0,r=u;o<r;o++)a.push(e._flushOneBatch());Promise.all(a).then(function(){n()}).catch(i)})},t.prototype._flushOneBatch=function(){var e=this;return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise(function(n,i){var a=setTimeout(function(){i(new Error("Timeout"))},e._exportTimeoutMillis);Ye.with(Tn(Ye.active()),function(){var u;e._finishedSpans.length<=e._maxExportBatchSize?(u=e._finishedSpans,e._finishedSpans=[]):u=e._finishedSpans.splice(0,e._maxExportBatchSize);for(var o=function(){return e._exporter.export(u,function(p){var _;clearTimeout(a),p.code===W.SUCCESS?n():i((_=p.error)!==null&&_!==void 0?_:new Error("BatchSpanProcessor: span export failed"))})},r=null,s=0,l=u.length;s<l;s++){var c=u[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(r??(r=[]),r.push(c.resource.waitForAsyncAttributes()))}r===null?o():Promise.all(r).then(o,function(p){Te(p),i(p)})})})},t.prototype._maybeStartTimer=function(){var e=this;if(!this._isExporting){var n=function(){e._isExporting=!0,e._flushOneBatch().finally(function(){e._isExporting=!1,e._finishedSpans.length>0&&(e._clearTimer(),e._maybeStartTimer())}).catch(function(i){e._isExporting=!1,Te(i)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return n();this._timer===void 0&&(this._timer=setTimeout(function(){return n()},this._scheduledDelayMillis),ur(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var RX,_r,fC=m(()=>{"use strict";cC();RX=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=a[u])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),_r=function(t){RX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(lC)});function pC(t){return function(){for(var n=0;n<t/4;n++)dl.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(dl[n]>0);n++)n===t-1&&(dl[t-1]=1);return dl.toString("hex",0,t)}}var PX,dC,Xn,dl,EC=m(()=>{"use strict";PX=8,dC=16,Xn=function(){function t(){this.generateTraceId=pC(dC),this.generateSpanId=pC(PX)}return t}(),dl=Buffer.allocUnsafe(dC)});var _C=m(()=>{"use strict";fC();EC()});var El=m(()=>{"use strict";_C()});var _l,SC=m(()=>{"use strict";M();K();Pd();Id();El();_l=function(){function t(e,n,i){this._tracerProvider=i;var a=uC(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new Xn,this.resource=i.resource,this.instrumentationLibrary=e}return t.prototype.startSpan=function(e,n,i){var a,u,o;n===void 0&&(n={}),i===void 0&&(i=Ye.active()),n.root&&(i=J.deleteSpan(i));var r=J.getSpan(i);if(xe(i)){g.debug("Instrumentation suppressed, returning Noop Span");var s=J.wrapSpanContext(pE);return s}var l=r?.spanContext(),c=this._idGenerator.generateSpanId(),p,_,f;!l||!J.isSpanContextValid(l)?p=this._idGenerator.generateTraceId():(p=l.traceId,_=l.traceState,f=l.spanId);var S=(a=n.kind)!==null&&a!==void 0?a:EE.INTERNAL,v=((u=n.links)!==null&&u!==void 0?u:[]).map(function(F){return{context:F.context,attributes:or(F.attributes)}}),T=or(n.attributes),A=this._sampler.shouldSample(i,p,e,S,T,v);_=(o=A.traceState)!==null&&o!==void 0?o:_;var O=A.decision===St.RECORD_AND_SAMPLED?Q.SAMPLED:Q.NONE,N={traceId:p,spanId:c,traceFlags:O,traceState:_};if(A.decision===St.NOT_RECORD){g.debug("Recording is off, propagating context in a non-recording span");var s=J.wrapSpanContext(N);return s}var U=or(Object.assign(T,A.attributes)),G=new ll(this,i,e,N,S,f,v,n.startTime,void 0,U);return G},t.prototype.startActiveSpan=function(e,n,i,a){var u,o,r;if(!(arguments.length<2)){arguments.length===2?r=n:arguments.length===3?(u=n,r=i):(u=n,o=i,r=a);var s=o??Ye.active(),l=this.startSpan(e,u,s),c=J.setSpan(s,l);return Ye.with(c,r,void 0,l)}},t.prototype.getGeneralLimits=function(){return this._generalLimits},t.prototype.getSpanLimits=function(){return this._spanLimits},t.prototype.getActiveSpanProcessor=function(){return this._tracerProvider.getActiveSpanProcessor()},t}()});var Sl,Cd,hC=m(()=>{"use strict";K();Sl=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Cd=function(){function t(e){this._spanProcessors=e}return t.prototype.forceFlush=function(){var e,n,i=[];try{for(var a=Sl(this._spanProcessors),u=a.next();!u.done;u=a.next()){var o=u.value;i.push(o.forceFlush())}}catch(r){e={error:r}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r){Promise.all(i).then(function(){r()}).catch(function(s){Te(s||new Error("MultiSpanProcessor: forceFlush failed")),r()})})},t.prototype.onStart=function(e,n){var i,a;try{for(var u=Sl(this._spanProcessors),o=u.next();!o.done;o=u.next()){var r=o.value;r.onStart(e,n)}}catch(s){i={error:s}}finally{try{o&&!o.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},t.prototype.onEnd=function(e){var n,i;try{for(var a=Sl(this._spanProcessors),u=a.next();!u.done;u=a.next()){var o=u.value;o.onEnd(e)}}catch(r){n={error:r}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},t.prototype.shutdown=function(){var e,n,i=[];try{for(var a=Sl(this._spanProcessors),u=a.next();!u.done;u=a.next()){var o=u.value;i.push(o.shutdown())}}catch(r){e={error:r}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return new Promise(function(r,s){Promise.all(i).then(function(){r()},s)})},t}()});var hl,wd=m(()=>{"use strict";hl=function(){function t(){}return t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){},t.prototype.shutdown=function(){return Promise.resolve()},t.prototype.forceFlush=function(){return Promise.resolve()},t}()});var bX,xX,Vt,TC,vC=m(()=>{"use strict";M();K();Gu();gi();Ld();hC();wd();El();Id();bX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},xX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))};(function(t){t[t.resolved=0]="resolved",t[t.timeout=1]="timeout",t[t.error=2]="error",t[t.unresolved=3]="unresolved"})(Vt||(Vt={}));TC=function(){function t(e){e===void 0&&(e={});var n,i;this._registeredSpanProcessors=[],this._tracers=new Map;var a=Du({},pl(),sC(e));if(this.resource=(n=a.resource)!==null&&n!==void 0?n:Dt.empty(),a.mergeResourceWithDefaults&&(this.resource=Dt.default().merge(this.resource)),this._config=Object.assign({},a,{resource:this.resource}),!((i=e.spanProcessors)===null||i===void 0)&&i.length)this._registeredSpanProcessors=xX([],bX(e.spanProcessors),!1),this.activeSpanProcessor=new Cd(this._registeredSpanProcessors);else{var u=this._buildExporterFromEnv();if(u!==void 0){var o=new _r(u);this.activeSpanProcessor=o}else this.activeSpanProcessor=new hl}}return t.prototype.getTracer=function(e,n,i){var a=e+"@"+(n||"")+":"+(i?.schemaUrl||"");return this._tracers.has(a)||this._tracers.set(a,new _l({name:e,version:n,schemaUrl:i?.schemaUrl},this._config,this)),this._tracers.get(a)},t.prototype.addSpanProcessor=function(e){this._registeredSpanProcessors.length===0&&this.activeSpanProcessor.shutdown().catch(function(n){return g.error("Error while trying to shutdown current span processor",n)}),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new Cd(this._registeredSpanProcessors)},t.prototype.getActiveSpanProcessor=function(){return this.activeSpanProcessor},t.prototype.register=function(e){e===void 0&&(e={}),J.setGlobalTracerProvider(this),e.propagator===void 0&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&Ye.setGlobalContextManager(e.contextManager),e.propagator&&at.setGlobalPropagator(e.propagator)},t.prototype.forceFlush=function(){var e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map(function(i){return new Promise(function(a){var u,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),u=Vt.timeout},e);i.forceFlush().then(function(){clearTimeout(o),u!==Vt.timeout&&(u=Vt.resolved,a(u))}).catch(function(r){clearTimeout(o),u=Vt.error,a(r)})})});return new Promise(function(i,a){Promise.all(n).then(function(u){var o=u.filter(function(r){return r!==Vt.resolved});o.length>0?a(o):i()}).catch(function(u){return a([u])})})},t.prototype.shutdown=function(){return this.activeSpanProcessor.shutdown()},t.prototype._getPropagator=function(e){var n;return(n=this.constructor._registeredPropagators.get(e))===null||n===void 0?void 0:n()},t.prototype._getSpanExporter=function(e){var n;return(n=this.constructor._registeredExporters.get(e))===null||n===void 0?void 0:n()},t.prototype._buildPropagatorFromEnv=function(){var e=this,n=Array.from(new Set(Oe().OTEL_PROPAGATORS)),i=n.map(function(u){var o=e._getPropagator(u);return o||g.warn('Propagator "'+u+'" requested through environment variable is unavailable.'),o}),a=i.reduce(function(u,o){return o&&u.push(o),u},[]);if(a.length!==0)return n.length===1?a[0]:new xu({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=Oe().OTEL_TRACES_EXPORTER;if(!(e==="none"||e==="")){var n=this._getSpanExporter(e);return n||g.error('Exporter "'+e+'" requested through environment variable is unavailable.'),n}},t._registeredPropagators=new Map([["tracecontext",function(){return new Lu}],["baggage",function(){return new vu}]]),t._registeredExporters=new Map,t}()});var MX,mC,yC=m(()=>{"use strict";K();MX=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},mC=function(){function t(){}return t.prototype.export=function(e,n){return this._sendSpans(e,n)},t.prototype.shutdown=function(){return this._sendSpans([]),this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype._exportInfo=function(e){var n;return{resource:{attributes:e.resource.attributes},instrumentationScope:e.instrumentationLibrary,traceId:e.spanContext().traceId,parentId:e.parentSpanId,traceState:(n=e.spanContext().traceState)===null||n===void 0?void 0:n.serialize(),name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:Nt(e.startTime),duration:Nt(e.duration),attributes:e.attributes,status:e.status,events:e.events,links:e.links}},t.prototype._sendSpans=function(e,n){var i,a;try{for(var u=MX(e),o=u.next();!o.done;o=u.next()){var r=o.value;console.dir(this._exportInfo(r),{depth:3})}}catch(s){i={error:s}}finally{try{o&&!o.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}if(n)return n({code:W.SUCCESS})},t}()});var LX,IX,AC,OC=m(()=>{"use strict";K();LX=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},IX=function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,u;i<a;i++)(u||!(i in e))&&(u||(u=Array.prototype.slice.call(e,0,i)),u[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},AC=function(){function t(){this._finishedSpans=[],this._stopped=!1}return t.prototype.export=function(e,n){var i;if(this._stopped)return n({code:W.FAILED,error:new Error("Exporter has been stopped")});(i=this._finishedSpans).push.apply(i,IX([],LX(e),!1)),setTimeout(function(){return n({code:W.SUCCESS})},0)},t.prototype.shutdown=function(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()},t.prototype.forceFlush=function(){return Promise.resolve()},t.prototype.reset=function(){this._finishedSpans=[]},t.prototype.getFinishedSpans=function(){return this._finishedSpans},t}()});var CX,wX,gC,NC=m(()=>{"use strict";M();K();CX=function(t,e,n,i){function a(u){return u instanceof n?u:new n(function(o){o(u)})}return new(n||(n=Promise))(function(u,o){function r(c){try{l(i.next(c))}catch(p){o(p)}}function s(c){try{l(i.throw(c))}catch(p){o(p)}}function l(c){c.done?u(c.value):a(c.value).then(r,s)}l((i=i.apply(t,e||[])).next())})},wX=function(t,e){var n={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},i,a,u,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(l){return function(c){return s([l,c])}}function s(l){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,a&&(u=l[0]&2?a.return:l[0]?a.throw||((u=a.return)&&u.call(a),0):a.next)&&!(u=u.call(a,l[1])).done)return u;switch(a=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(u=n.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){n.label=l[1];break}if(l[0]===6&&n.label<u[1]){n.label=u[1],u=l;break}if(u&&n.label<u[2]){n.label=u[2],n.ops.push(l);break}u[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(c){l=[6,c],a=0}finally{i=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},gC=function(){function t(e){this._exporter=e,this._shutdownOnce=new Nn(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return CX(this,void 0,void 0,function(){return wX(this,function(e){switch(e.label){case 0:return[4,Promise.all(Array.from(this._unresolvedExports))];case 1:return e.sent(),this._exporter.forceFlush?[4,this._exporter.forceFlush()]:[3,3];case 2:e.sent(),e.label=3;case 3:return[2]}})})},t.prototype.onStart=function(e,n){},t.prototype.onEnd=function(e){var n=this,i,a;if(!this._shutdownOnce.isCalled&&e.spanContext().traceFlags&Q.SAMPLED){var u=function(){return ai._export(n._exporter,[e]).then(function(r){var s;r.code!==W.SUCCESS&&Te((s=r.error)!==null&&s!==void 0?s:new Error("SimpleSpanProcessor: span export failed (status "+r+")"))}).catch(function(r){Te(r)})};if(e.resource.asyncAttributesPending){var o=(a=(i=e.resource).waitForAsyncAttributes)===null||a===void 0?void 0:a.call(i).then(function(){return o!=null&&n._unresolvedExports.delete(o),u()},function(r){return Te(r)});o!=null&&this._unresolvedExports.add(o)}else u()}},t.prototype.shutdown=function(){return this._shutdownOnce.call()},t.prototype._shutdown=function(){return this._exporter.shutdown()},t}()});var Dd={};Je(Dd,{AlwaysOffSampler:()=>Er,AlwaysOnSampler:()=>bt,BasicTracerProvider:()=>TC,BatchSpanProcessor:()=>_r,ConsoleSpanExporter:()=>mC,ForceFlushState:()=>Vt,InMemorySpanExporter:()=>AC,NoopSpanProcessor:()=>hl,ParentBasedSampler:()=>Wn,RandomIdGenerator:()=>Xn,SamplingDecision:()=>dt,SimpleSpanProcessor:()=>gC,Span:()=>ll,TraceIdRatioBasedSampler:()=>Oi,Tracer:()=>_l});var gi=m(()=>{"use strict";SC();vC();El();yC();OC();NC();wd();cl();fl();bd();xd();Ai();Pd()});var Ni=h((Hfe,RC)=>{"use strict";var DX="2.0.0",UX=Number.MAX_SAFE_INTEGER||9007199254740991,VX=16,BX=250,GX=["major","premajor","minor","preminor","patch","prepatch","prerelease"];RC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:VX,MAX_SAFE_BUILD_LENGTH:BX,MAX_SAFE_INTEGER:UX,RELEASE_TYPES:GX,SEMVER_SPEC_VERSION:DX,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ri=h((Ffe,PC)=>{"use strict";var kX=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};PC.exports=kX});var Jn=h((Bt,bC)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Ud,MAX_SAFE_BUILD_LENGTH:HX,MAX_LENGTH:FX}=Ni(),YX=Ri();Bt=bC.exports={};var qX=Bt.re=[],jX=Bt.safeRe=[],R=Bt.src=[],P=Bt.t={},$X=0,Vd="[a-zA-Z0-9-]",KX=[["\\s",1],["\\d",FX],[Vd,HX]],WX=t=>{for(let[e,n]of KX)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},D=(t,e,n)=>{let i=WX(e),a=$X++;YX(t,a,e),P[t]=a,R[a]=e,qX[a]=new RegExp(e,n?"g":void 0),jX[a]=new RegExp(i,n?"g":void 0)};D("NUMERICIDENTIFIER","0|[1-9]\\d*");D("NUMERICIDENTIFIERLOOSE","\\d+");D("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Vd}*`);D("MAINVERSION",`(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})\\.(${R[P.NUMERICIDENTIFIER]})`);D("MAINVERSIONLOOSE",`(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})\\.(${R[P.NUMERICIDENTIFIERLOOSE]})`);D("PRERELEASEIDENTIFIER",`(?:${R[P.NUMERICIDENTIFIER]}|${R[P.NONNUMERICIDENTIFIER]})`);D("PRERELEASEIDENTIFIERLOOSE",`(?:${R[P.NUMERICIDENTIFIERLOOSE]}|${R[P.NONNUMERICIDENTIFIER]})`);D("PRERELEASE",`(?:-(${R[P.PRERELEASEIDENTIFIER]}(?:\\.${R[P.PRERELEASEIDENTIFIER]})*))`);D("PRERELEASELOOSE",`(?:-?(${R[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[P.PRERELEASEIDENTIFIERLOOSE]})*))`);D("BUILDIDENTIFIER",`${Vd}+`);D("BUILD",`(?:\\+(${R[P.BUILDIDENTIFIER]}(?:\\.${R[P.BUILDIDENTIFIER]})*))`);D("FULLPLAIN",`v?${R[P.MAINVERSION]}${R[P.PRERELEASE]}?${R[P.BUILD]}?`);D("FULL",`^${R[P.FULLPLAIN]}$`);D("LOOSEPLAIN",`[v=\\s]*${R[P.MAINVERSIONLOOSE]}${R[P.PRERELEASELOOSE]}?${R[P.BUILD]}?`);D("LOOSE",`^${R[P.LOOSEPLAIN]}$`);D("GTLT","((?:<|>)?=?)");D("XRANGEIDENTIFIERLOOSE",`${R[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);D("XRANGEIDENTIFIER",`${R[P.NUMERICIDENTIFIER]}|x|X|\\*`);D("XRANGEPLAIN",`[v=\\s]*(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:\\.(${R[P.XRANGEIDENTIFIER]})(?:${R[P.PRERELEASE]})?${R[P.BUILD]}?)?)?`);D("XRANGEPLAINLOOSE",`[v=\\s]*(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[P.XRANGEIDENTIFIERLOOSE]})(?:${R[P.PRERELEASELOOSE]})?${R[P.BUILD]}?)?)?`);D("XRANGE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAIN]}$`);D("XRANGELOOSE",`^${R[P.GTLT]}\\s*${R[P.XRANGEPLAINLOOSE]}$`);D("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Ud}})(?:\\.(\\d{1,${Ud}}))?(?:\\.(\\d{1,${Ud}}))?`);D("COERCE",`${R[P.COERCEPLAIN]}(?:$|[^\\d])`);D("COERCEFULL",R[P.COERCEPLAIN]+`(?:${R[P.PRERELEASE]})?(?:${R[P.BUILD]})?(?:$|[^\\d])`);D("COERCERTL",R[P.COERCE],!0);D("COERCERTLFULL",R[P.COERCEFULL],!0);D("LONETILDE","(?:~>?)");D("TILDETRIM",`(\\s*)${R[P.LONETILDE]}\\s+`,!0);Bt.tildeTrimReplace="$1~";D("TILDE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAIN]}$`);D("TILDELOOSE",`^${R[P.LONETILDE]}${R[P.XRANGEPLAINLOOSE]}$`);D("LONECARET","(?:\\^)");D("CARETTRIM",`(\\s*)${R[P.LONECARET]}\\s+`,!0);Bt.caretTrimReplace="$1^";D("CARET",`^${R[P.LONECARET]}${R[P.XRANGEPLAIN]}$`);D("CARETLOOSE",`^${R[P.LONECARET]}${R[P.XRANGEPLAINLOOSE]}$`);D("COMPARATORLOOSE",`^${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]})$|^$`);D("COMPARATOR",`^${R[P.GTLT]}\\s*(${R[P.FULLPLAIN]})$|^$`);D("COMPARATORTRIM",`(\\s*)${R[P.GTLT]}\\s*(${R[P.LOOSEPLAIN]}|${R[P.XRANGEPLAIN]})`,!0);Bt.comparatorTrimReplace="$1$2$3";D("HYPHENRANGE",`^\\s*(${R[P.XRANGEPLAIN]})\\s+-\\s+(${R[P.XRANGEPLAIN]})\\s*$`);D("HYPHENRANGELOOSE",`^\\s*(${R[P.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[P.XRANGEPLAINLOOSE]})\\s*$`);D("STAR","(<|>)?=?\\s*\\*");D("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");D("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Tl=h((Yfe,xC)=>{"use strict";var zX=Object.freeze({loose:!0}),XX=Object.freeze({}),JX=t=>t?typeof t!="object"?zX:t:XX;xC.exports=JX});var Bd=h((qfe,IC)=>{"use strict";var MC=/^[0-9]+$/,LC=(t,e)=>{let n=MC.test(t),i=MC.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1},QX=(t,e)=>LC(e,t);IC.exports={compareIdentifiers:LC,rcompareIdentifiers:QX}});var Me=h((jfe,UC)=>{"use strict";var vl=Ri(),{MAX_LENGTH:CC,MAX_SAFE_INTEGER:ml}=Ni(),{safeRe:wC,t:DC}=Jn(),ZX=Tl(),{compareIdentifiers:Qn}=Bd(),Gd=class t{constructor(e,n){if(n=ZX(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>CC)throw new TypeError(`version is longer than ${CC} characters`);vl("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=e.trim().match(n.loose?wC[DC.LOOSE]:wC[DC.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>ml||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ml||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ml||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let u=+a;if(u>=0&&u<ml)return u}return a}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(vl("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),Qn(this.major,e.major)||Qn(this.minor,e.minor)||Qn(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],a=e.prerelease[n];if(vl("prerelease compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return Qn(i,a)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{let i=this.build[n],a=e.build[n];if(vl("build compare",n,i,a),i===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(i===void 0)return-1;if(i===a)continue;return Qn(i,a)}while(++n)}inc(e,n,i){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let a=Number(i)?1:0;if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[a];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);if(u===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let u=[n,a];i===!1&&(u=[n]),Qn(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=u):this.prerelease=u}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};UC.exports=Gd});var qr=h(($fe,BC)=>{"use strict";var VC=Me(),eJ=(t,e,n=!1)=>{if(t instanceof VC)return t;try{return new VC(t,e)}catch(i){if(!n)return null;throw i}};BC.exports=eJ});var kC=h((Kfe,GC)=>{"use strict";var tJ=qr(),rJ=(t,e)=>{let n=tJ(t,e);return n?n.version:null};GC.exports=rJ});var FC=h((Wfe,HC)=>{"use strict";var nJ=qr(),oJ=(t,e)=>{let n=nJ(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};HC.exports=oJ});var jC=h((zfe,qC)=>{"use strict";var YC=Me(),iJ=(t,e,n,i,a)=>{typeof n=="string"&&(a=i,i=n,n=void 0);try{return new YC(t instanceof YC?t.version:t,n).inc(e,i,a).version}catch{return null}};qC.exports=iJ});var WC=h((Xfe,KC)=>{"use strict";var $C=qr(),aJ=(t,e)=>{let n=$C(t,null,!0),i=$C(e,null,!0),a=n.compare(i);if(a===0)return null;let u=a>0,o=u?n:i,r=u?i:n,s=!!o.prerelease.length;if(!!r.prerelease.length&&!s)return!r.patch&&!r.minor?"major":o.patch?"patch":o.minor?"minor":"major";let c=s?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease"};KC.exports=aJ});var XC=h((Jfe,zC)=>{"use strict";var uJ=Me(),sJ=(t,e)=>new uJ(t,e).major;zC.exports=sJ});var QC=h((Qfe,JC)=>{"use strict";var lJ=Me(),cJ=(t,e)=>new lJ(t,e).minor;JC.exports=cJ});var ew=h((Zfe,ZC)=>{"use strict";var fJ=Me(),pJ=(t,e)=>new fJ(t,e).patch;ZC.exports=pJ});var rw=h((epe,tw)=>{"use strict";var dJ=qr(),EJ=(t,e)=>{let n=dJ(t,e);return n&&n.prerelease.length?n.prerelease:null};tw.exports=EJ});var nt=h((tpe,ow)=>{"use strict";var nw=Me(),_J=(t,e,n)=>new nw(t,n).compare(new nw(e,n));ow.exports=_J});var aw=h((rpe,iw)=>{"use strict";var SJ=nt(),hJ=(t,e,n)=>SJ(e,t,n);iw.exports=hJ});var sw=h((npe,uw)=>{"use strict";var TJ=nt(),vJ=(t,e)=>TJ(t,e,!0);uw.exports=vJ});var yl=h((ope,cw)=>{"use strict";var lw=Me(),mJ=(t,e,n)=>{let i=new lw(t,n),a=new lw(e,n);return i.compare(a)||i.compareBuild(a)};cw.exports=mJ});var pw=h((ipe,fw)=>{"use strict";var yJ=yl(),AJ=(t,e)=>t.sort((n,i)=>yJ(n,i,e));fw.exports=AJ});var Ew=h((ape,dw)=>{"use strict";var OJ=yl(),gJ=(t,e)=>t.sort((n,i)=>OJ(i,n,e));dw.exports=gJ});var Pi=h((upe,_w)=>{"use strict";var NJ=nt(),RJ=(t,e,n)=>NJ(t,e,n)>0;_w.exports=RJ});var Al=h((spe,Sw)=>{"use strict";var PJ=nt(),bJ=(t,e,n)=>PJ(t,e,n)<0;Sw.exports=bJ});var kd=h((lpe,hw)=>{"use strict";var xJ=nt(),MJ=(t,e,n)=>xJ(t,e,n)===0;hw.exports=MJ});var Hd=h((cpe,Tw)=>{"use strict";var LJ=nt(),IJ=(t,e,n)=>LJ(t,e,n)!==0;Tw.exports=IJ});var Ol=h((fpe,vw)=>{"use strict";var CJ=nt(),wJ=(t,e,n)=>CJ(t,e,n)>=0;vw.exports=wJ});var gl=h((ppe,mw)=>{"use strict";var DJ=nt(),UJ=(t,e,n)=>DJ(t,e,n)<=0;mw.exports=UJ});var Fd=h((dpe,yw)=>{"use strict";var VJ=kd(),BJ=Hd(),GJ=Pi(),kJ=Ol(),HJ=Al(),FJ=gl(),YJ=(t,e,n,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return VJ(t,n,i);case"!=":return BJ(t,n,i);case">":return GJ(t,n,i);case">=":return kJ(t,n,i);case"<":return HJ(t,n,i);case"<=":return FJ(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};yw.exports=YJ});var Ow=h((Epe,Aw)=>{"use strict";var qJ=Me(),jJ=qr(),{safeRe:Nl,t:Rl}=Jn(),$J=(t,e)=>{if(t instanceof qJ)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?Nl[Rl.COERCEFULL]:Nl[Rl.COERCE]);else{let s=e.includePrerelease?Nl[Rl.COERCERTLFULL]:Nl[Rl.COERCERTL],l;for(;(l=s.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),s.lastIndex=l.index+l[1].length+l[2].length;s.lastIndex=-1}if(n===null)return null;let i=n[2],a=n[3]||"0",u=n[4]||"0",o=e.includePrerelease&&n[5]?`-${n[5]}`:"",r=e.includePrerelease&&n[6]?`+${n[6]}`:"";return jJ(`${i}.${a}.${u}${o}${r}`,e)};Aw.exports=$J});var Nw=h((_pe,gw)=>{"use strict";var Yd=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let a=this.map.keys().next().value;this.delete(a)}this.map.set(e,n)}return this}};gw.exports=Yd});var ot=h((Spe,xw)=>{"use strict";var KJ=/\s+/g,qd=class t{constructor(e,n){if(n=zJ(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof jd)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().replace(KJ," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(a=>!Pw(a[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&r9(a[0])){this.set=[a];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let n=this.set[e];for(let i=0;i<n.length;i++)i>0&&(this.formatted+=" "),this.formatted+=n[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let i=((this.options.includePrerelease&&e9)|(this.options.loose&&t9))+":"+e,a=Rw.get(i);if(a)return a;let u=this.options.loose,o=u?We[Be.HYPHENRANGELOOSE]:We[Be.HYPHENRANGE];e=e.replace(o,p9(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(We[Be.COMPARATORTRIM],JJ),te("comparator trim",e),e=e.replace(We[Be.TILDETRIM],QJ),te("tilde trim",e),e=e.replace(We[Be.CARETTRIM],ZJ),te("caret trim",e);let r=e.split(" ").map(p=>n9(p,this.options)).join(" ").split(/\s+/).map(p=>f9(p,this.options));u&&(r=r.filter(p=>(te("loose invalid filter",p,this.options),!!p.match(We[Be.COMPARATORLOOSE])))),te("range list",r);let s=new Map,l=r.map(p=>new jd(p,this.options));for(let p of l){if(Pw(p))return[p];s.set(p.value,p)}s.size>1&&s.has("")&&s.delete("");let c=[...s.values()];return Rw.set(i,c),c}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>bw(i,n)&&e.set.some(a=>bw(a,n)&&i.every(u=>a.every(o=>u.intersects(o,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new XJ(e,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(d9(this.set[n],e,this.options))return!0;return!1}};xw.exports=qd;var WJ=Nw(),Rw=new WJ,zJ=Tl(),jd=bi(),te=Ri(),XJ=Me(),{safeRe:We,t:Be,comparatorTrimReplace:JJ,tildeTrimReplace:QJ,caretTrimReplace:ZJ}=Jn(),{FLAG_INCLUDE_PRERELEASE:e9,FLAG_LOOSE:t9}=Ni(),Pw=t=>t.value==="<0.0.0-0",r9=t=>t.value==="",bw=(t,e)=>{let n=!0,i=t.slice(),a=i.pop();for(;n&&i.length;)n=i.every(u=>a.intersects(u,e)),a=i.pop();return n},n9=(t,e)=>(te("comp",t,e),t=a9(t,e),te("caret",t),t=o9(t,e),te("tildes",t),t=s9(t,e),te("xrange",t),t=c9(t,e),te("stars",t),t),Ge=t=>!t||t.toLowerCase()==="x"||t==="*",o9=(t,e)=>t.trim().split(/\s+/).map(n=>i9(n,e)).join(" "),i9=(t,e)=>{let n=e.loose?We[Be.TILDELOOSE]:We[Be.TILDE];return t.replace(n,(i,a,u,o,r)=>{te("tilde",t,i,a,u,o,r);let s;return Ge(a)?s="":Ge(u)?s=`>=${a}.0.0 <${+a+1}.0.0-0`:Ge(o)?s=`>=${a}.${u}.0 <${a}.${+u+1}.0-0`:r?(te("replaceTilde pr",r),s=`>=${a}.${u}.${o}-${r} <${a}.${+u+1}.0-0`):s=`>=${a}.${u}.${o} <${a}.${+u+1}.0-0`,te("tilde return",s),s})},a9=(t,e)=>t.trim().split(/\s+/).map(n=>u9(n,e)).join(" "),u9=(t,e)=>{te("caret",t,e);let n=e.loose?We[Be.CARETLOOSE]:We[Be.CARET],i=e.includePrerelease?"-0":"";return t.replace(n,(a,u,o,r,s)=>{te("caret",t,a,u,o,r,s);let l;return Ge(u)?l="":Ge(o)?l=`>=${u}.0.0${i} <${+u+1}.0.0-0`:Ge(r)?u==="0"?l=`>=${u}.${o}.0${i} <${u}.${+o+1}.0-0`:l=`>=${u}.${o}.0${i} <${+u+1}.0.0-0`:s?(te("replaceCaret pr",s),u==="0"?o==="0"?l=`>=${u}.${o}.${r}-${s} <${u}.${o}.${+r+1}-0`:l=`>=${u}.${o}.${r}-${s} <${u}.${+o+1}.0-0`:l=`>=${u}.${o}.${r}-${s} <${+u+1}.0.0-0`):(te("no pr"),u==="0"?o==="0"?l=`>=${u}.${o}.${r}${i} <${u}.${o}.${+r+1}-0`:l=`>=${u}.${o}.${r}${i} <${u}.${+o+1}.0-0`:l=`>=${u}.${o}.${r} <${+u+1}.0.0-0`),te("caret return",l),l})},s9=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>l9(n,e)).join(" ")),l9=(t,e)=>{t=t.trim();let n=e.loose?We[Be.XRANGELOOSE]:We[Be.XRANGE];return t.replace(n,(i,a,u,o,r,s)=>{te("xRange",t,i,a,u,o,r,s);let l=Ge(u),c=l||Ge(o),p=c||Ge(r),_=p;return a==="="&&_&&(a=""),s=e.includePrerelease?"-0":"",l?a===">"||a==="<"?i="<0.0.0-0":i="*":a&&_?(c&&(o=0),r=0,a===">"?(a=">=",c?(u=+u+1,o=0,r=0):(o=+o+1,r=0)):a==="<="&&(a="<",c?u=+u+1:o=+o+1),a==="<"&&(s="-0"),i=`${a+u}.${o}.${r}${s}`):c?i=`>=${u}.0.0${s} <${+u+1}.0.0-0`:p&&(i=`>=${u}.${o}.0${s} <${u}.${+o+1}.0-0`),te("xRange return",i),i})},c9=(t,e)=>(te("replaceStars",t,e),t.trim().replace(We[Be.STAR],"")),f9=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(We[e.includePrerelease?Be.GTE0PRE:Be.GTE0],"")),p9=t=>(e,n,i,a,u,o,r,s,l,c,p,_)=>(Ge(i)?n="":Ge(a)?n=`>=${i}.0.0${t?"-0":""}`:Ge(u)?n=`>=${i}.${a}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Ge(l)?s="":Ge(c)?s=`<${+l+1}.0.0-0`:Ge(p)?s=`<${l}.${+c+1}.0-0`:_?s=`<=${l}.${c}.${p}-${_}`:t?s=`<${l}.${c}.${+p+1}-0`:s=`<=${s}`,`${n} ${s}`.trim()),d9=(t,e,n)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!n.includePrerelease){for(let i=0;i<t.length;i++)if(te(t[i].semver),t[i].semver!==jd.ANY&&t[i].semver.prerelease.length>0){let a=t[i].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var bi=h((hpe,Dw)=>{"use strict";var xi=Symbol("SemVer ANY"),Wd=class t{static get ANY(){return xi}constructor(e,n){if(n=Mw(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Kd("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===xi?this.value="":this.value=this.operator+this.semver.version,Kd("comp",this)}parse(e){let n=this.options.loose?Lw[Iw.COMPARATORLOOSE]:Lw[Iw.COMPARATOR],i=e.match(n);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Cw(i[2],this.options.loose):this.semver=xi}toString(){return this.value}test(e){if(Kd("Comparator.test",e,this.options.loose),this.semver===xi||e===xi)return!0;if(typeof e=="string")try{e=new Cw(e,this.options)}catch{return!1}return $d(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new ww(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new ww(this.value,n).test(e.semver):(n=Mw(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||$d(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||$d(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Dw.exports=Wd;var Mw=Tl(),{safeRe:Lw,t:Iw}=Jn(),$d=Fd(),Kd=Ri(),Cw=Me(),ww=ot()});var Mi=h((Tpe,Uw)=>{"use strict";var E9=ot(),_9=(t,e,n)=>{try{e=new E9(e,n)}catch{return!1}return e.test(t)};Uw.exports=_9});var Bw=h((vpe,Vw)=>{"use strict";var S9=ot(),h9=(t,e)=>new S9(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));Vw.exports=h9});var kw=h((mpe,Gw)=>{"use strict";var T9=Me(),v9=ot(),m9=(t,e,n)=>{let i=null,a=null,u=null;try{u=new v9(e,n)}catch{return null}return t.forEach(o=>{u.test(o)&&(!i||a.compare(o)===-1)&&(i=o,a=new T9(i,n))}),i};Gw.exports=m9});var Fw=h((ype,Hw)=>{"use strict";var y9=Me(),A9=ot(),O9=(t,e,n)=>{let i=null,a=null,u=null;try{u=new A9(e,n)}catch{return null}return t.forEach(o=>{u.test(o)&&(!i||a.compare(o)===1)&&(i=o,a=new y9(i,n))}),i};Hw.exports=O9});var jw=h((Ape,qw)=>{"use strict";var zd=Me(),g9=ot(),Yw=Pi(),N9=(t,e)=>{t=new g9(t,e);let n=new zd("0.0.0");if(t.test(n)||(n=new zd("0.0.0-0"),t.test(n)))return n;n=null;for(let i=0;i<t.set.length;++i){let a=t.set[i],u=null;a.forEach(o=>{let r=new zd(o.semver.version);switch(o.operator){case">":r.prerelease.length===0?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":(!u||Yw(r,u))&&(u=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),u&&(!n||Yw(n,u))&&(n=u)}return n&&t.test(n)?n:null};qw.exports=N9});var Kw=h((Ope,$w)=>{"use strict";var R9=ot(),P9=(t,e)=>{try{return new R9(t,e).range||"*"}catch{return null}};$w.exports=P9});var Pl=h((gpe,Jw)=>{"use strict";var b9=Me(),Xw=bi(),{ANY:x9}=Xw,M9=ot(),L9=Mi(),Ww=Pi(),zw=Al(),I9=gl(),C9=Ol(),w9=(t,e,n,i)=>{t=new b9(t,i),e=new M9(e,i);let a,u,o,r,s;switch(n){case">":a=Ww,u=I9,o=zw,r=">",s=">=";break;case"<":a=zw,u=C9,o=Ww,r="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(L9(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],p=null,_=null;if(c.forEach(f=>{f.semver===x9&&(f=new Xw(">=0.0.0")),p=p||f,_=_||f,a(f.semver,p.semver,i)?p=f:o(f.semver,_.semver,i)&&(_=f)}),p.operator===r||p.operator===s||(!_.operator||_.operator===r)&&u(t,_.semver))return!1;if(_.operator===s&&o(t,_.semver))return!1}return!0};Jw.exports=w9});var Zw=h((Npe,Qw)=>{"use strict";var D9=Pl(),U9=(t,e,n)=>D9(t,e,">",n);Qw.exports=U9});var tD=h((Rpe,eD)=>{"use strict";var V9=Pl(),B9=(t,e,n)=>V9(t,e,"<",n);eD.exports=B9});var oD=h((Ppe,nD)=>{"use strict";var rD=ot(),G9=(t,e,n)=>(t=new rD(t,n),e=new rD(e,n),t.intersects(e,n));nD.exports=G9});var aD=h((bpe,iD)=>{"use strict";var k9=Mi(),H9=nt();iD.exports=(t,e,n)=>{let i=[],a=null,u=null,o=t.sort((c,p)=>H9(c,p,n));for(let c of o)k9(c,e,n)?(u=c,a||(a=c)):(u&&i.push([a,u]),u=null,a=null);a&&i.push([a,null]);let r=[];for(let[c,p]of i)c===p?r.push(c):!p&&c===o[0]?r.push("*"):p?c===o[0]?r.push(`<=${p}`):r.push(`${c} - ${p}`):r.push(`>=${c}`);let s=r.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return s.length<l.length?s:e}});var pD=h((xpe,fD)=>{"use strict";var uD=ot(),Jd=bi(),{ANY:Xd}=Jd,Li=Mi(),Qd=nt(),F9=(t,e,n={})=>{if(t===e)return!0;t=new uD(t,n),e=new uD(e,n);let i=!1;e:for(let a of t.set){for(let u of e.set){let o=q9(a,u,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Y9=[new Jd(">=0.0.0-0")],sD=[new Jd(">=0.0.0")],q9=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Xd){if(e.length===1&&e[0].semver===Xd)return!0;n.includePrerelease?t=Y9:t=sD}if(e.length===1&&e[0].semver===Xd){if(n.includePrerelease)return!0;e=sD}let i=new Set,a,u;for(let f of t)f.operator===">"||f.operator===">="?a=lD(a,f,n):f.operator==="<"||f.operator==="<="?u=cD(u,f,n):i.add(f.semver);if(i.size>1)return null;let o;if(a&&u){if(o=Qd(a.semver,u.semver,n),o>0)return null;if(o===0&&(a.operator!==">="||u.operator!=="<="))return null}for(let f of i){if(a&&!Li(f,String(a),n)||u&&!Li(f,String(u),n))return null;for(let S of e)if(!Li(f,String(S),n))return!1;return!0}let r,s,l,c,p=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,_=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;p&&p.prerelease.length===1&&u.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let f of e){if(c=c||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",a){if(_&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===_.major&&f.semver.minor===_.minor&&f.semver.patch===_.patch&&(_=!1),f.operator===">"||f.operator===">="){if(r=lD(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!Li(a.semver,String(f),n))return!1}if(u){if(p&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===p.major&&f.semver.minor===p.minor&&f.semver.patch===p.patch&&(p=!1),f.operator==="<"||f.operator==="<="){if(s=cD(u,f,n),s===f&&s!==u)return!1}else if(u.operator==="<="&&!Li(u.semver,String(f),n))return!1}if(!f.operator&&(u||a)&&o!==0)return!1}return!(a&&l&&!u&&o!==0||u&&c&&!a&&o!==0||_||p)},lD=(t,e,n)=>{if(!t)return e;let i=Qd(t.semver,e.semver,n);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},cD=(t,e,n)=>{if(!t)return e;let i=Qd(t.semver,e.semver,n);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};fD.exports=F9});var SD=h((Mpe,_D)=>{"use strict";var Zd=Jn(),dD=Ni(),j9=Me(),ED=Bd(),$9=qr(),K9=kC(),W9=FC(),z9=jC(),X9=WC(),J9=XC(),Q9=QC(),Z9=ew(),e7=rw(),t7=nt(),r7=aw(),n7=sw(),o7=yl(),i7=pw(),a7=Ew(),u7=Pi(),s7=Al(),l7=kd(),c7=Hd(),f7=Ol(),p7=gl(),d7=Fd(),E7=Ow(),_7=bi(),S7=ot(),h7=Mi(),T7=Bw(),v7=kw(),m7=Fw(),y7=jw(),A7=Kw(),O7=Pl(),g7=Zw(),N7=tD(),R7=oD(),P7=aD(),b7=pD();_D.exports={parse:$9,valid:K9,clean:W9,inc:z9,diff:X9,major:J9,minor:Q9,patch:Z9,prerelease:e7,compare:t7,rcompare:r7,compareLoose:n7,compareBuild:o7,sort:i7,rsort:a7,gt:u7,lt:s7,eq:l7,neq:c7,gte:f7,lte:p7,cmp:d7,coerce:E7,Comparator:_7,Range:S7,satisfies:h7,toComparators:T7,maxSatisfying:v7,minSatisfying:m7,minVersion:y7,validRange:A7,outside:O7,gtr:g7,ltr:N7,intersects:R7,simplifyRange:P7,subset:b7,SemVer:j9,re:Zd.re,src:Zd.src,tokens:Zd.t,SEMVER_SPEC_VERSION:dD.SEMVER_SPEC_VERSION,RELEASE_TYPES:dD.RELEASE_TYPES,compareIdentifiers:ED.compareIdentifiers,rcompareIdentifiers:ED.rcompareIdentifiers}});function M7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=TD(e,4),i=n[0],a=n[1],u=n[3],o=i.padStart(32,"0"),r=a.padStart(16,"0"),s=x7.test(u)?parseInt(u,16)&1:1;return{traceId:o,spanId:r,isRemote:!0,traceFlags:s}}var hD,TD,eE,bl,vD,x7,mD=m(()=>{"use strict";M();K();hD=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},TD=function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var i=n.call(t),a,u=[],o;try{for(;(e===void 0||e-- >0)&&!(a=i.next()).done;)u.push(a.value)}catch(r){o={error:r}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u},eE="uber-trace-id",bl="uberctx",vD=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=bl):(this._jaegerTraceHeader=e?.customTraceHeader||eE,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||bl)}return t.prototype.inject=function(e,n,i){var a,u,o=J.getSpanContext(e),r=at.getBaggage(e);if(o&&xe(e)===!1){var s="0"+(o.traceFlags||Q.NONE).toString(16);i.set(n,this._jaegerTraceHeader,o.traceId+":"+o.spanId+":0:"+s)}if(r)try{for(var l=hD(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=TD(c.value,2),_=p[0],f=p[1];i.set(n,this._jaegerBaggageHeaderPrefix+"-"+_,encodeURIComponent(f.value))}}catch(S){a={error:S}}finally{try{c&&!c.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}},t.prototype.extract=function(e,n,i){var a,u,o=this,r,s=i.get(n,this._jaegerTraceHeader),l=Array.isArray(s)?s[0]:s,c=i.keys(n).filter(function(A){return A.startsWith(o._jaegerBaggageHeaderPrefix+"-")}).map(function(A){var O=i.get(n,A);return{key:A.substring(o._jaegerBaggageHeaderPrefix.length+1),value:Array.isArray(O)?O[0]:O}}),p=e;if(typeof l=="string"){var _=M7(l);_&&(p=J.setSpanContext(p,_))}if(c.length===0)return p;var f=(r=at.getBaggage(e))!==null&&r!==void 0?r:at.createBaggage();try{for(var S=hD(c),v=S.next();!v.done;v=S.next()){var T=v.value;T.value!==void 0&&(f=f.setEntry(T.key,{value:decodeURIComponent(T.value)}))}}catch(A){a={error:A}}finally{try{v&&!v.done&&(u=S.return)&&u.call(S)}finally{if(a)throw a.error}}return p=at.setBaggage(p,f),p},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),x7=/^[0-9a-f]{1,2}$/i});var yD={};Je(yD,{JaegerPropagator:()=>vD,UBER_BAGGAGE_HEADER_PREFIX:()=>bl,UBER_TRACE_ID_HEADER:()=>eE});var AD=m(()=>{"use strict";mD()});var ND=h(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.NodeTracerProvider=void 0;var OD=KI(),xl=(rC(),Y(tC)),gD=(gi(),Y(Dd)),L7=SD(),I7=(AD(),Y(yD)),Ml=class extends gD.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=L7.gte(process.version,"14.8.0")?OD.AsyncLocalStorageContextManager:OD.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};Ll.NodeTracerProvider=Ml;Ml._registeredPropagators=new Map([...gD.BasicTracerProvider._registeredPropagators,["b3",()=>new xl.B3Propagator({injectEncoding:xl.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new xl.B3Propagator({injectEncoding:xl.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new I7.JaegerPropagator]])});var RD=h(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.Tracer=q.TraceIdRatioBasedSampler=q.Span=q.SimpleSpanProcessor=q.SamplingDecision=q.RandomIdGenerator=q.ParentBasedSampler=q.NoopSpanProcessor=q.InMemorySpanExporter=q.ForceFlushState=q.ConsoleSpanExporter=q.BatchSpanProcessor=q.BasicTracerProvider=q.AlwaysOnSampler=q.AlwaysOffSampler=q.NodeTracerProvider=void 0;var C7=ND();Object.defineProperty(q,"NodeTracerProvider",{enumerable:!0,get:function(){return C7.NodeTracerProvider}});var ke=(gi(),Y(Dd));Object.defineProperty(q,"AlwaysOffSampler",{enumerable:!0,get:function(){return ke.AlwaysOffSampler}});Object.defineProperty(q,"AlwaysOnSampler",{enumerable:!0,get:function(){return ke.AlwaysOnSampler}});Object.defineProperty(q,"BasicTracerProvider",{enumerable:!0,get:function(){return ke.BasicTracerProvider}});Object.defineProperty(q,"BatchSpanProcessor",{enumerable:!0,get:function(){return ke.BatchSpanProcessor}});Object.defineProperty(q,"ConsoleSpanExporter",{enumerable:!0,get:function(){return ke.ConsoleSpanExporter}});Object.defineProperty(q,"ForceFlushState",{enumerable:!0,get:function(){return ke.ForceFlushState}});Object.defineProperty(q,"InMemorySpanExporter",{enumerable:!0,get:function(){return ke.InMemorySpanExporter}});Object.defineProperty(q,"NoopSpanProcessor",{enumerable:!0,get:function(){return ke.NoopSpanProcessor}});Object.defineProperty(q,"ParentBasedSampler",{enumerable:!0,get:function(){return ke.ParentBasedSampler}});Object.defineProperty(q,"RandomIdGenerator",{enumerable:!0,get:function(){return ke.RandomIdGenerator}});Object.defineProperty(q,"SamplingDecision",{enumerable:!0,get:function(){return ke.SamplingDecision}});Object.defineProperty(q,"SimpleSpanProcessor",{enumerable:!0,get:function(){return ke.SimpleSpanProcessor}});Object.defineProperty(q,"Span",{enumerable:!0,get:function(){return ke.Span}});Object.defineProperty(q,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return ke.TraceIdRatioBasedSampler}});Object.defineProperty(q,"Tracer",{enumerable:!0,get:function(){return ke.Tracer}})});var bD=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.OTLPTraceExporter=void 0;var PD=dd(),w7=(Vs(),Y(ud)),D7=(Ei(),Y(Os)),tE=class extends D7.OTLPExporterBase{constructor(e={}){super((0,PD.createOtlpGrpcExportDelegate)((0,PD.convertLegacyOtlpGrpcOptions)(e,"TRACES"),w7.ProtobufTraceSerializer,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export"))}};Il.OTLPTraceExporter=tE});var xD=h(jr=>{"use strict";var U7=jr&&jr.__createBinding||(Object.create?function(t,e,n,i){i===void 0&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]}),V7=jr&&jr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&U7(e,t,n)};Object.defineProperty(jr,"__esModule",{value:!0});V7(bD(),jr)});var DD=Fe(Jl(),1),UD=Fe(eo(),1);import G7 from"path";function j1(t){return typeof t=="object"&&t!==null}function $1(t){return j1(t)&&typeof t.length=="number"}function K1(t){return Array.isArray(t)?t:t===void 0?[]:$1(t)||t instanceof Set?Array.from(t):[t]}var Lt=K1;function W1(t,e,...n){let i=[];if(!Array.isArray(t))throw new Error("Input must be an array");for(let[a,u]of t.entries()){let o=[];n.forEach(r=>{typeof r=="function"?o=o.concat(r(u)):o.push(r)}),e(u)&&i.push({index:a,replaceWithValue:o})}for(let a of i.reverse()){let u=[a.index,1].concat(a.replaceWithValue);t.splice.apply(t,u)}return t}var qi=W1;var ce={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},ji=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=Lt(e);else{e=process.argv.slice(0);let n=process.execArgv.some(J1)?1:2;e.splice(0,n)}e.forEach(n=>this.push(String(n)))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some(e=>ce.optEquals.test(e))){let e=[];this.forEach(n=>{let i=n.match(ce.optEquals);i?e.push(i[1],i[2]):e.push(n)}),this.clear(),this.load(e)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&qi(this,ce.combinedShort,z1)}hasCombinedShortOptions(){return this.some(e=>ce.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function z1(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function $i(t){return ce.optEquals.test(t)}function so(t){return(ce.short.test(t)||ce.long.test(t))&&!ce.optEquals.test(t)}function X1(t){return ce.long.test(t)&&!$i(t)}function Ql(t){return ce.short.test(t)?t.match(ce.short)[1]:X1(t)?t.match(ce.long)[1]:$i(t)?t.match(ce.optEquals)[1].replace(/^--/,""):null}function cS(t){return!(so(t)||ce.combinedShort.test(t)||ce.optEquals.test(t))}function J1(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function Q1(t){return!isNaN(parseFloat(t))}function Z1(t){return!isNaN(parseFloat(t))&&isFinite(t)}function eV(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function tV(t){return pS(t)&&typeof t.length=="number"}function pS(t){return typeof t=="object"&&t!==null}function lo(t){return typeof t<"u"}function rV(t){return!lo(t)}function dS(t){return t===null}function nV(t){return lo(t)&&!dS(t)&&!Number.isNaN(t)}function oV(t){return typeof t=="function"?/^class /.test(Function.prototype.toString.call(t)):!1}function iV(t){if(t===null)return!0;switch(typeof t){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function aV(t){if(t){let e=lo(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function uV(t){return t===null||!lo(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}function sV(t){return typeof t=="string"}function lV(t){return typeof t=="function"}function cV(t){return typeof t=="function"&&t.constructor.name==="AsyncFunction"}var Se={isNumber:Q1,isFiniteNumber:Z1,isPlainObject:eV,isArrayLike:tV,isObject:pS,isDefined:lo,isUndefined:rV,isNull:dS,isDefinedValue:nV,isClass:oV,isPrimitive:iV,isPromise:aV,isIterable:uV,isString:sV,isFunction:lV,isAsyncFunction:cV};var Zl=class{constructor(e){this.name=e.name,this.type=e.type||String,this.alias=e.alias,this.multiple=e.multiple,this.lazyMultiple=e.lazyMultiple,this.defaultOption=e.defaultOption,this.defaultValue=e.defaultValue,this.group=e.group;for(let n in e)this[n]||(this[n]=e[n])}isBoolean(){return this.type===Boolean||Se.isFunction(this.type)&&this.type.name==="Boolean"}isMultiple(){return this.multiple||this.lazyMultiple}static create(e){return new this(e)}},co=Zl;var ec=class extends Array{validate(e){this.some(_=>!_.name)&&It("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(_=>_.type&&typeof _.type!="function")&&It("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)");let a;this.some(_=>(a=_,Se.isDefined(_.alias)&&Se.isNumber(_.alias)))&&It("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+a.name+" alias is -"+a.alias+"]"),this.some(_=>(a=_,Se.isDefined(_.alias)&&_.alias.length!==1))&&It("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(_=>(a=_,_.alias==="-"))&&It("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),_S(this.map(_=>e?_.name.toLowerCase():_.name))&&It("INVALID_DEFINITIONS","Two or more option definitions have the same name"),_S(this.map(_=>e&&Se.isDefined(_.alias)?_.alias.toLowerCase():_.alias))&&It("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(_=>_.defaultOption===!0).length>1&&It("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(_=>(a=_,_.isBoolean()&&_.defaultOption))&&It("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(so(e))if(ce.short.test(e)){let i=Ql(e);if(n){let a=i.toLowerCase();return this.find(u=>Se.isDefined(u.alias)&&u.alias.toLowerCase()===a)}else return this.find(a=>a.alias===i)}else{let i=Ql(e);if(n){let a=i.toLowerCase();return this.find(u=>u.name.toLowerCase()===a)}else return this.find(a=>a.name===i)}else return this.find(i=>i.name===e)}getDefault(){return this.find(e=>e.defaultOption===!0)}isGrouped(){return this.some(e=>e.group)}whereGrouped(){return this.filter(ES)}whereNotGrouped(){return this.filter(e=>!ES(e))}whereDefaultValueSet(){return this.filter(e=>Se.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let i=super.from(Lt(e),a=>co.create(a));return i.validate(n),i}};function It(t,e){let n=new Error(e);throw n.name=t,n}function ES(t){return Lt(t.group).some(e=>e)}function _S(t){let e={};for(let n=0;n<t.length;n++){let i=t[n];if(e[i])return!0;Se.isDefined(i)&&(e[i]=!0)}}var Zr=ec;var tc=class{constructor(e,n){this.options=Object.assign({},n),this.definitions=Zr.from(e,this.options.caseInsensitive),this.argv=ji.from(this.options.argv),this.argv.hasCombinedShortOptions()&&qi(this.argv,ce.combinedShort.test.bind(ce.combinedShort),i=>(i=i.slice(1),i.split("").map(a=>({origArg:`-${i}`,arg:"-"+a}))))}*[Symbol.iterator](){let e=this.definitions,n,i,a,u,o=!1,r=!1,s;for(let l of this.argv){if(Se.isPlainObject(l)&&(s=l.origArg,l=l.arg),r&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:l,name:"_unknown",value:void 0};continue}if(so(l))n=e.get(l,this.options.caseInsensitive),i=void 0,n?(i=n.isBoolean()?!0:null,u="set"):u="unknown_option";else if($i(l)){let p=l.match(ce.optEquals);n=e.get(p[1],this.options.caseInsensitive),n?n.isBoolean()?(yield{event:"unknown_value",arg:l,name:"_unknown",value:i,def:n},u="set",i=!0):(u="set",i=p[2]):u="unknown_option"}else cS(l)&&(n?(i=l,u="set"):(n=this.definitions.getDefault(),n&&!o?(i=l,u="set"):(u="unknown_value",n=void 0)));a=n?n.name:"_unknown";let c={event:u,arg:l,name:a,value:i,def:n};s&&(c.subArg=l,c.arg=s),yield c,a==="_unknown"&&(r=!0),n&&n.defaultOption&&!n.isMultiple()&&u==="set"&&(o=!0),n&&n.isBoolean()&&(n=void 0),n&&!n.multiple&&Se.isDefined(i)&&i!==null&&(n=void 0),i=void 0,u=void 0,a=void 0,s=void 0}}},SS=tc;var vr=new WeakMap,Ki=class{constructor(e){this.definition=new co(e),this.state=null,this.resetToDefault()}get(){return vr.get(this)}set(e){this._set(e,"set")}_set(e,n){let i=this.definition;if(i.isMultiple()){if(e!=null){let a=this.get();this.state==="default"&&(a.length=0),a.push(i.type(e)),this.state=n}}else if(!i.isMultiple()&&this.state==="set"){let a=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw a.name="ALREADY_SET",a.value=e,a.optionName=i.name,a}else e==null?vr.set(this,e):(vr.set(this,i.type(e)),this.state=n)}resetToDefault(){Se.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?vr.set(this,Lt(this.definition.defaultValue).slice()):vr.set(this,this.definition.defaultValue):this.definition.isMultiple()?vr.set(this,[]):vr.set(this,null),this.state="default"}static create(e){return e=new co(e),e.isBoolean()?rc.create(e):new this(e)}},rc=class extends Ki{set(e){super.set(!0)}static create(e){return new this(e)}},fo=Ki;var hS=Fe(aE(),1),nc=class extends Map{constructor(e){super(),this.definitions=Zr.from(e),this.set("_unknown",fo.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,fo.create(n))}toObject(e){e=e||{};let n={};for(let i of this){let a=e.camelCase&&i[0]!=="_unknown"?(0,hS.default)(i[0]):i[0],u=i[1];a==="_unknown"&&!u.get().length||(n[a]=u.get())}return e.skipUnknown&&delete n._unknown,n}},Wi=nc;var oc=Fe(aE(),1),ic=class extends Wi{toObject(e){let n=super.toObject({skipUnknown:e.skipUnknown}),i=super.toObject(e),a=i._unknown;delete i._unknown;let u={_all:i};return a&&a.length&&(u._unknown=a),this.definitions.whereGrouped().forEach(o=>{let r=e.camelCase?(0,oc.default)(o.name):o.name,s=n[o.name];for(let l of Lt(o.group))u[l]=u[l]||{},Se.isDefined(s)&&(u[l][r]=s)}),this.definitions.whereNotGrouped().forEach(o=>{let r=e.camelCase?(0,oc.default)(o.name):o.name,s=n[o.name];Se.isDefined(s)&&(u._none||(u._none={}),u._none[r]=s)}),u}},TS=ic;function fV(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=Zr.from(t,e.caseInsensitive);let n=new SS(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),i=t.isGrouped()?TS:Wi,a=new i(t);for(let u of n){let o=u.subArg||u.arg;if(!e.partial){if(u.event==="unknown_value"){let s=new Error(`Unknown value: ${o}`);throw s.name="UNKNOWN_VALUE",s.value=o,s}else if(u.event==="unknown_option"){let s=new Error(`Unknown option: ${o}`);throw s.name="UNKNOWN_OPTION",s.optionName=o,s}}let r;a.has(u.name)?r=a.get(u.name):(r=fo.create(u.def),a.set(u.name,r)),u.name==="_unknown"?r.set(o):r.set(u.value)}return a.toObject({skipUnknown:!e.partial,camelCase:e.camelCase})}var vS=fV;var VD=Fe(FD(),1),BD=Fe(YD(),1),GD=Fe(KO(),1);import k7 from"http";import{Session as H7}from"node:inspector/promises";import{createRequire as dY}from"module";var Ec=Fe(Jl(),1);import ra from"path";import dc from"os";var EY=dY(import.meta.url);function WO(t){let e=EY.resolve(t),n=ra.dirname(e);for(;!Ec.default.existsSync(ra.join(n,"package.json"));)n=ra.dirname(n);let i=Ec.default.readFileSync(ra.join(n,"package.json"),"utf-8");return JSON.parse(i)}var na=class{constructor(e){this.instance=e;let n=WO("@sentio/sdk"),i=WO("@sentio/runtime");console.log("Runtime version:",i.version,"SDK version:",n.version);let a=n.version.split(".");this.sdkMinorVersion=parseInt(a[1])}instance;sdkMinorVersion;async getConfig(e,n){let i=await this.instance.getConfig(e,n);if(i.executionConfig=oE.fromPartial(Ul.execution),i.contractConfigs)for(let a of i.contractConfigs)a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return i}async start(e,n){return await this.instance.start(e,n)}async stop(e,n){return await this.instance.stop(e,n)}async processBindings(e,n){Ul.execution.sequential&&(e.bindings=e.bindings.sort(_Y));for(let i of e.bindings)this.adjustDataBinding(i);try{let i=await this.instance.processBindings(e,n);return this.adjustResult(i.result),!i.configUpdated&&i.result?.states?.configUpdated&&(i.configUpdated=i.result?.states?.configUpdated),i}catch(i){throw this.sdkMinorVersion<=16&&(i.code===dc.constants.errno.ECONNRESET||i.code===dc.constants.errno.ECONNREFUSED||i.code===dc.constants.errno.ECONNABORTED)&&process.exit(1),i}}async*adjustBindingsStream(e){for await(let n of e)this.adjustDataBinding(n.binding),yield n}async*processBindingsStream(e,n){yield*this.instance.processBindingsStream(this.adjustBindingsStream(e),n)}async*preprocessBindingsStream(e,n){yield*this.instance.preprocessBindingsStream(this.adjustBindingsStream(e),n)}adjustResult(e){}adjustDataBinding(e){if(e)switch(e.handlerType){case 6:e.data?.aptEvent&&e.data.aptEvent.rawTransaction&&!e.data.aptEvent.transaction&&(e.data.aptEvent.transaction=JSON.parse(e.data.aptEvent.rawTransaction));break;case 7:e.data?.aptCall&&e.data.aptCall.rawTransaction&&!e.data.aptCall.transaction&&(e.data.aptCall.transaction=JSON.parse(e.data.aptCall.rawTransaction));break;case 8:e.data?.aptResource?.resources&&e.data.aptResource.rawResources&&e.data.aptResource.rawResources.length>0&&(e.data.aptResource.resources=e.data.aptResource.rawResources.map(n=>JSON.parse(n)));break;case 0:e.data?.ethBlock&&e.data.raw.length===0&&(e.data.raw=new TextEncoder().encode(JSON.stringify(e.data.ethBlock.block)));break;default:break}}};function _Y(t,e){let n=zO(t)||new Date(0),i=zO(e)||new Date(0),a=n.getTime()-i.getTime();return a!==0?a:XO(t)-XO(e)}function zO(t){return t.data?.ethLog?.timestamp||t.data?.ethTransaction?.timestamp||(t.data?.ethBlock?.block?.timestamp?new Date(Number(t.data.ethBlock.block.timestamp)*1e3):void 0)||t.data?.ethTrace?.timestamp||(t.data?.aptCall?.transaction?new Date(Number(t.data.aptCall.transaction.timestamp)/1e3):void 0)||(t.data?.aptEvent?.transaction?new Date(Number(t.data.aptEvent.transaction.timestamp)/1e3):void 0)||(t.data?.aptResource?.timestampMicros?new Date(Number(t.data.aptResource.timestampMicros)/1e3):void 0)||t.data?.fuelCall?.timestamp}function XO(t){return t.data?.ethLog?.log?.logIndex||t.data?.ethTransaction?.transaction?.transactionIndex||t.data?.ethBlock?.block?.number||t.data?.ethTrace?.trace?.transactionPosition}import("node:process").then(t=>t.stdout.write(""));var gt=Fe(c0(),1);function f0(t){let e=[],n=JSON.stringify(t,function(i,a){if(typeof a=="object"&&a!==null){if(e.indexOf(a)!==-1)return;e.push(a)}return a});return e=[],n}function p0(t,e){let n={transform:a=>{let u=[];typeof a.message=="object"?u.push(f0(a.message)):u.push(a.message);let o=a[Symbol.for("splat")];if(o)for(let r in o){let s=o[r];typeof s=="object"?u.push(f0(s)):u.push(s)}return a.message=u.join(" "),a}},i=(0,gt.createLogger)({format:gt.format.combine(gt.format.timestamp({format:"YYYY-MM-DDTHH:mm:ss.SSSZ"}),n,gt.format.errors({stack:!0}),t?gt.format.json():gt.format.simple()),level:e?"debug":"info",transports:[new gt.transports.Console]});console.log=(...a)=>i.info.call(i,...a),console.info=(...a)=>i.info.call(i,...a),console.warn=(...a)=>i.warn.call(i,...a),console.error=(...a)=>i.error.call(i,...a),console.debug=(...a)=>i.debug.call(i,...a)}import("node:process").then(t=>t.stdout.write(""));Gu();In();var MD=Fe(kI(),1),LD=Fe(qI(),1),rE=Fe(RD(),1),ID=Fe(xD(),1);gi();M();async function CD(t){t&&g.setLogger(new cE,it.DEBUG);let e=await Bu.detect(),n=new pi({resource:e,readers:[new os({exporter:new MD.OTLPMetricExporter}),new LD.PrometheusExporter({host:"0.0.0.0",port:4041})]}),i=new rE.NodeTracerProvider({resource:e}),a=new ID.OTLPTraceExporter,u=new _r(a);i.addSpanProcessor(u),Ci.setGlobalMeterProvider(n),J.setGlobalTracerProvider(i),["SIGINT","SIGTERM"].forEach(o=>{process.on(o,()=>B7())}),Ci.getMeter("processor").createGauge("up").record(1)}async function B7(){let t=J.getTracerProvider();if(t instanceof dE){let n=t.getDelegate();n instanceof rE.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=Ci.getMeterProvider();e instanceof pi&&e.shutdown().catch(console.error)}import("node:process").then(t=>t.stdout.write(""));var Cl=class{constructor(e){this.loader=e}async listen(e){let n=wl.INSTANCE;await this.loader(),await n.configure(nE.create()),console.log("Starting Action Server at:",e),await n.startServer(e)}forceShutdown(){wl.INSTANCE.shutdown()}};import("node:process").then(t=>t.stdout.write(""));var F7=[{name:"target",type:String,defaultOption:!0},{name:"port",alias:"p",type:String,defaultValue:"4000"},{name:"concurrency",type:Number,defaultValue:4},{name:"batch-count",type:Number,defaultValue:1},{name:"chains-config",alias:"c",type:String,defaultValue:"chains-config.json"},{name:"chainquery-server",type:String,defaultValue:""},{name:"pricefeed-server",type:String,defaultValue:""},{name:"log-format",type:String,defaultValue:"console"},{name:"debug",type:Boolean,defaultValue:!1},{name:"start-action-server",type:Boolean,defaultValue:!1}],He=vS(F7,{partial:!0}),Y7=process.env.LOG_LEVEL?.toUpperCase();p0(He["log-format"]==="json",Y7==="debug"?!0:He.debug);console.debug("Starting with",He.target);await CD(He.debug);Error.stackTraceLimit=20;var q7=G7.resolve(He["chains-config"]),j7=DD.default.readJsonSync(q7),$7=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,K7=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;Sr.INSTANCE.concurrency=$7??He.concurrency;Sr.INSTANCE.batchCount=K7??He["batch-count"];Sr.INSTANCE.chainQueryAPI=He["chainquery-server"];Sr.INSTANCE.priceFeedAPI=He["pricefeed-server"];for(let[t,e]of Object.entries(j7)){let n=e;if(n.ChainServer)Sr.INSTANCE.chainServer.set(t,n.ChainServer);else{let i=n.Https?.[0];i?Sr.INSTANCE.chainServer.set(t,i):console.error("not valid config for chain",t)}}console.debug("Starting Server",He);var $r,Zn,wD=async()=>{let t=await import(He.target);return console.debug("Module loaded",t),t};if(He["start-action-server"])$r=new Cl(wD),$r.listen(He.port);else{$r=(0,VD.createServer)({"grpc.max_send_message_length":384*1024*1024,"grpc.max_receive_message_length":384*1024*1024,"grpc.default_compression_algorithm":UD.compressionAlgorithms.gzip}).use((0,GD.openTelemetryServerMiddleware)()).use(BD.errorDetailsServerMiddleware),Zn=new SE(wD,$r.shutdown);let t=new na(Zn);$r.add(iE,t),$r.listen("0.0.0.0:"+He.port),console.log("Processor Server Started at:",He.port)}var kD=4040,W7=k7.createServer(async function(t,e){if(t.url){let n=new URL(t.url,`http://${t.headers.host}`),i=n.searchParams;switch(n.pathname){case"/profile":{try{let a=parseInt(i.get("t")||"1000",10)||1e3,u=new H7;u.connect(),await u.post("Profiler.enable"),await u.post("Profiler.start"),await new Promise(r=>setTimeout(r,a));let{profile:o}=await u.post("Profiler.stop");e.writeHead(200,{"Content-Type":"application/json"}),e.write(JSON.stringify(o)),u.disconnect()}catch{e.writeHead(500)}break}default:e.writeHead(404)}}else e.writeHead(404);e.end()}).listen(kD);console.log("Metric Server Started at:",kD);process.on("SIGINT",function(){z7(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Zn&&(Zn.unhandled=t)}).on("unhandledRejection",(t,e)=>{t?.message.startsWith('invalid ENS name (disallowed character: "*"')||(console.error("Unhandled Rejection, please checking if await is properly",t),Zn&&(Zn.unhandled=t))});function z7(t){$r?.forceShutdown(),console.log("RPC server shut down"),W7.close(function(){console.log("Http server shut down"),process.exit(t)})}import("node:process").then(t=>t.stdout.write(""));
|
60
60
|
/*! Bundled license information:
|
61
61
|
|
62
62
|
safe-buffer/index.js:
|