@sentio/runtime 2.57.9-rc.9 → 2.57.10-rc.1
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/{chunk-RNU2NHS2.js → chunk-TTE5MQNI.js} +13 -13
- package/lib/{chunk-RNU2NHS2.js.map → chunk-TTE5MQNI.js.map} +1 -1
- package/lib/index.d.ts +11 -0
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +27 -27
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +21 -0
- package/src/gen/processor/protos/processor.ts +157 -1
- package/src/metrics.ts +11 -1
- package/src/service.ts +0 -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 EE,B as it,C as _E,D as
|
4
|
-
GFS4: `),console.error(t)});ie[me]||(LE=global[me]||[],CE(ie,LE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||IE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,wi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),IE()}return Object.defineProperty(e,wi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Sr(ie[me]),L("assert").equal(ie[me].length,0)}));var LE;global[me]||CE(global,ie[me]);Dl.exports=wl(iD(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Dl.exports=wl(ie),ie.__patched=!0);function wl(t){nD(t),t.gracefulify=wl,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,se){return e(X,ne,function(ee){ee&&(ee.code==="EMFILE"||ee.code==="ENFILE")?Kr([z,[X,ne,oe],ee,se||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,se,ee,ve){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var s=t.appendFile;s&&(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,se,ee,ve){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(x,B,w,z){return typeof w=="function"&&(z=w,w=0),X(x,B,w,z);function X(ne,oe,se,ee,ve){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var l=t.readdir;t.readdir=f;var c=/^v[0-5]\./;function f(x,B,w){typeof B=="function"&&(w=B,B=null);var z=c.test(process.version)?function(oe,se,ee,ve){return l(oe,X(oe,se,ee,ve))}:function(oe,se,ee,ve){return l(oe,se,X(oe,se,ee,ve))};return z(x,B,w);function X(ne,oe,se,ee){return function(ve,re){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?Kr([z,[ne,oe,se],ve,ee||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 _=oD(t);A=_.ReadStream,N=_.WriteStream}var p=t.ReadStream;p&&(A.prototype=Object.create(p.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(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?(p.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 D(){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,se,ee,ve){return ae(ne,oe,se,function(re,aQ){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Kr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}return t}function Kr(t){Sr("ENQUEUE",t[0].name,t[1]),ie[me].push(t),Ul()}var Ci;function IE(){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(Ci),Ci=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)Sr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Sr("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?(Sr("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[me].push(t)}Ci===void 0&&(Ci=setTimeout(Ul,0))}}});var Ce=h(bt=>{"use strict";var wE=Ee().fromCallback,Ie=Wr(),sD=["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 Ie[t]=="function");Object.assign(bt,Ie);sD.forEach(t=>{bt[t]=wE(Ie[t])});bt.exists=function(t,e){return typeof e=="function"?Ie.exists(t,e):new Promise(n=>Ie.exists(t,n))};bt.read=function(t,e,n,i,a,s){return typeof s=="function"?Ie.read(t,e,n,i,a,s):new Promise((o,r)=>{Ie.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};bt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?Ie.write(t,e,...n):new Promise((i,a)=>{Ie.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};bt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?Ie.readv(t,e,...n):new Promise((i,a)=>{Ie.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};bt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?Ie.writev(t,e,...n):new Promise((i,a)=>{Ie.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof Ie.realpath.native=="function"?bt.realpath.native=wE(Ie.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var DE=h((dQ,UE)=>{"use strict";var uD=L("path");UE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(uD.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var kE=h((EQ,Vl)=>{"use strict";var VE=Ce(),{checkPath:BE}=DE(),GE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Vl.exports.makeDir=async(t,e)=>(BE(t),VE.mkdir(t,{mode:GE(e),recursive:!0}));Vl.exports.makeDirSync=(t,e)=>(BE(t),VE.mkdirSync(t,{mode:GE(e),recursive:!0}))});var st=h((_Q,HE)=>{"use strict";var lD=Ee().fromPromise,{makeDir:cD,makeDirSync:Bl}=kE(),Gl=lD(cD);HE.exports={mkdirs:Gl,mkdirsSync:Bl,mkdirp:Gl,mkdirpSync:Bl,ensureDir:Gl,ensureDirSync:Bl}});var Ht=h((SQ,YE)=>{"use strict";var fD=Ee().fromPromise,FE=Ce();function pD(t){return FE.access(t).then(()=>!0).catch(()=>!1)}YE.exports={pathExists:fD(pD),pathExistsSync:FE.existsSync}});var kl=h((hQ,qE)=>{"use strict";var zr=Ce(),dD=Ee().fromPromise;async function ED(t,e,n){let i=await zr.open(t,"r+"),a=null;try{await zr.futimes(i,e,n)}finally{try{await zr.close(i)}catch(s){a=s}}if(a)throw a}function _D(t,e,n){let i=zr.openSync(t,"r+");return zr.futimesSync(i,e,n),zr.closeSync(i)}qE.exports={utimesMillis:dD(ED),utimesMillisSync:_D}});var hr=h((TQ,WE)=>{"use strict";var Xr=Ce(),_e=L("path"),jE=Ee().fromPromise;function SD(t,e,n){let i=n.dereference?a=>Xr.stat(a,{bigint:!0}):a=>Xr.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 hD(t,e,n){let i,a=n.dereference?o=>Xr.statSync(o,{bigint:!0}):o=>Xr.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 TD(t,e,n,i){let{srcStat:a,destStat:s}=await SD(t,e,i);if(s){if(Qn(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(Ui(t,e,n));return{srcStat:a,destStat:s}}function vD(t,e,n,i){let{srcStat:a,destStat:s}=hD(t,e,i);if(s){if(Qn(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(Ui(t,e,n));return{srcStat:a,destStat:s}}async function $E(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 Xr.stat(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(Qn(e,o))throw new Error(Ui(t,n,i));return $E(t,e,s,i)}function KE(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=Xr.statSync(s,{bigint:!0})}catch(r){if(r.code==="ENOENT")return;throw r}if(Qn(e,o))throw new Error(Ui(t,n,i));return KE(t,e,s,i)}function Qn(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 Ui(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}WE.exports={checkPaths:jE(TD),checkPathsSync:vD,checkParentPaths:jE($E),checkParentPathsSync:KE,isSrcSubdir:Hl,areIdentical:Qn}});var ZE=h((vQ,QE)=>{"use strict";var be=Ce(),Zn=L("path"),{mkdirs:mD}=st(),{pathExists:yD}=Ht(),{utimesMillis:AD}=kl(),eo=hr();async function OD(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 EE,B as it,C as _E,D as Kr,E as SE,F as hE,G as Et,H as Q,I as TE,J as Gt,K as xi,L as _t,M as vE,N as St,O as mE,P as yE,Q as Ye,R as g,S as Mi,T as at,U as J,V as Pe,W as M,a as L,b as m,ba as AE,c as h,d as Je,e as Re,f as Y,fa as OE,g as WU,h as uE,j as Ml,k as lE,l as cE,q as jr,r as $r,s as _r,t as Ll,u as fE,v as Jn,w as pE,x as dE,y as zU,z as XU}from"./chunk-TTE5MQNI.js";var Ee=h(Il=>{"use strict";Il.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,s)=>a!=null?i(a):n(s)),t.apply(this,e)})},"name",{value:t.name})};Il.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 NE=h((uQ,gE)=>{"use strict";var kt=L("constants"),JU=process.cwd,Li=null,QU=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Li||(Li=JU.call(process)),Li};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Cl=process.chdir,process.chdir=function(t){Li=null,Cl.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Cl));var Cl;gE.exports=ZU;function ZU(t){kt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(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=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(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(){}),QU==="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,D){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(D,G,F){if(D&&D.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 s(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 u(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 bE=h((lQ,PE)=>{"use strict";var RE=L("stream").Stream;PE.exports=eD;function eD(t){return{ReadStream:e,WriteStream:n};function e(i,a){if(!(this instanceof e))return new e(i,a);RE.call(this);var s=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,u=o.length;r<u;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(){s._read()});return}t.open(this.path,this.flags,this.mode,function(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function n(i,a){if(!(this instanceof n))return new n(i,a);RE.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 s=Object.keys(a),o=0,r=s.length;o<r;o++){var u=s[o];this[u]=a[u]}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 ME=h((cQ,xE)=>{"use strict";xE.exports=rD;var tD=Object.getPrototypeOf||function(t){return t.__proto__};function rD(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:tD(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((fQ,Dl)=>{"use strict";var ie=L("fs"),nD=NE(),oD=bE(),iD=ME(),Ii=L("util"),me,wi;typeof Symbol=="function"&&typeof Symbol.for=="function"?(me=Symbol.for("graceful-fs.queue"),wi=Symbol.for("graceful-fs.previous")):(me="___graceful-fs.queue",wi="___graceful-fs.previous");function aD(){}function CE(t,e){Object.defineProperty(t,me,{get:function(){return e}})}var Sr=aD;Ii.debuglog?Sr=Ii.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Sr=function(){var t=Ii.format.apply(Ii,arguments);t="GFS4: "+t.split(/\n/).join(`
|
4
|
+
GFS4: `),console.error(t)});ie[me]||(LE=global[me]||[],CE(ie,LE),ie.close=function(t){function e(n,i){return t.call(ie,n,function(a){a||IE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(e,wi,{value:t}),e}(ie.close),ie.closeSync=function(t){function e(n){t.apply(ie,arguments),IE()}return Object.defineProperty(e,wi,{value:t}),e}(ie.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Sr(ie[me]),L("assert").equal(ie[me].length,0)}));var LE;global[me]||CE(global,ie[me]);Dl.exports=wl(iD(ie));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ie.__patched&&(Dl.exports=wl(ie),ie.__patched=!0);function wl(t){nD(t),t.gracefulify=wl,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,se){return e(X,ne,function(ee){ee&&(ee.code==="EMFILE"||ee.code==="ENFILE")?Wr([z,[X,ne,oe],ee,se||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,se,ee,ve){return i(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var s=t.appendFile;s&&(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,se,ee,ve){return s(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}var r=t.copyFile;r&&(t.copyFile=u);function u(x,B,w,z){return typeof w=="function"&&(z=w,w=0),X(x,B,w,z);function X(ne,oe,se,ee,ve){return r(ne,oe,se,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,se,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,se,ee,ve){return l(oe,X(oe,se,ee,ve))}:function(oe,se,ee,ve){return l(oe,se,X(oe,se,ee,ve))};return z(x,B,w);function X(ne,oe,se,ee){return function(ve,re){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?Wr([z,[ne,oe,se],ve,ee||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 _=oD(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(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 D(){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,se,ee,ve){return ae(ne,oe,se,function(re,aQ){re&&(re.code==="EMFILE"||re.code==="ENFILE")?Wr([X,[ne,oe,se,ee],re,ve||Date.now(),Date.now()]):typeof ee=="function"&&ee.apply(this,arguments)})}}return t}function Wr(t){Sr("ENQUEUE",t[0].name,t[1]),ie[me].push(t),Ul()}var Ci;function IE(){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(Ci),Ci=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)Sr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-a>=6e4){Sr("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?(Sr("RETRY",e.name,n),e.apply(null,n.concat([a]))):ie[me].push(t)}Ci===void 0&&(Ci=setTimeout(Ul,0))}}});var Ce=h(bt=>{"use strict";var wE=Ee().fromCallback,Ie=zr(),sD=["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 Ie[t]=="function");Object.assign(bt,Ie);sD.forEach(t=>{bt[t]=wE(Ie[t])});bt.exists=function(t,e){return typeof e=="function"?Ie.exists(t,e):new Promise(n=>Ie.exists(t,n))};bt.read=function(t,e,n,i,a,s){return typeof s=="function"?Ie.read(t,e,n,i,a,s):new Promise((o,r)=>{Ie.read(t,e,n,i,a,(u,l,c)=>{if(u)return r(u);o({bytesRead:l,buffer:c})})})};bt.write=function(t,e,...n){return typeof n[n.length-1]=="function"?Ie.write(t,e,...n):new Promise((i,a)=>{Ie.write(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffer:r})})})};bt.readv=function(t,e,...n){return typeof n[n.length-1]=="function"?Ie.readv(t,e,...n):new Promise((i,a)=>{Ie.readv(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesRead:o,buffers:r})})})};bt.writev=function(t,e,...n){return typeof n[n.length-1]=="function"?Ie.writev(t,e,...n):new Promise((i,a)=>{Ie.writev(t,e,...n,(s,o,r)=>{if(s)return a(s);i({bytesWritten:o,buffers:r})})})};typeof Ie.realpath.native=="function"?bt.realpath.native=wE(Ie.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var DE=h((dQ,UE)=>{"use strict";var uD=L("path");UE.exports.checkPath=function(e){if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(uD.parse(e).root,""))){let i=new Error(`Path contains invalid characters: ${e}`);throw i.code="EINVAL",i}}});var kE=h((EQ,Vl)=>{"use strict";var VE=Ce(),{checkPath:BE}=DE(),GE=t=>{let e={mode:511};return typeof t=="number"?t:{...e,...t}.mode};Vl.exports.makeDir=async(t,e)=>(BE(t),VE.mkdir(t,{mode:GE(e),recursive:!0}));Vl.exports.makeDirSync=(t,e)=>(BE(t),VE.mkdirSync(t,{mode:GE(e),recursive:!0}))});var st=h((_Q,HE)=>{"use strict";var lD=Ee().fromPromise,{makeDir:cD,makeDirSync:Bl}=kE(),Gl=lD(cD);HE.exports={mkdirs:Gl,mkdirsSync:Bl,mkdirp:Gl,mkdirpSync:Bl,ensureDir:Gl,ensureDirSync:Bl}});var Ht=h((SQ,YE)=>{"use strict";var fD=Ee().fromPromise,FE=Ce();function pD(t){return FE.access(t).then(()=>!0).catch(()=>!1)}YE.exports={pathExists:fD(pD),pathExistsSync:FE.existsSync}});var kl=h((hQ,qE)=>{"use strict";var Xr=Ce(),dD=Ee().fromPromise;async function ED(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 _D(t,e,n){let i=Xr.openSync(t,"r+");return Xr.futimesSync(i,e,n),Xr.closeSync(i)}qE.exports={utimesMillis:dD(ED),utimesMillisSync:_D}});var hr=h((TQ,WE)=>{"use strict";var Jr=Ce(),_e=L("path"),jE=Ee().fromPromise;function SD(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 hD(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 TD(t,e,n,i){let{srcStat:a,destStat:s}=await SD(t,e,i);if(s){if(Qn(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(Ui(t,e,n));return{srcStat:a,destStat:s}}function vD(t,e,n,i){let{srcStat:a,destStat:s}=hD(t,e,i);if(s){if(Qn(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(Ui(t,e,n));return{srcStat:a,destStat:s}}async function $E(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(Qn(e,o))throw new Error(Ui(t,n,i));return $E(t,e,s,i)}function KE(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(Qn(e,o))throw new Error(Ui(t,n,i));return KE(t,e,s,i)}function Qn(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 Ui(t,e,n){return`Cannot ${n} '${t}' to a subdirectory of itself, '${e}'.`}WE.exports={checkPaths:jE(TD),checkPathsSync:vD,checkParentPaths:jE($E),checkParentPathsSync:KE,isSrcSubdir:Hl,areIdentical:Qn}});var ZE=h((vQ,QE)=>{"use strict";var be=Ce(),Zn=L("path"),{mkdirs:mD}=st(),{pathExists:yD}=Ht(),{utimesMillis:AD}=kl(),eo=hr();async function OD(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 eo.checkPaths(t,e,"copy",n);if(await eo.checkParentPaths(t,i,e,"copy"),!await XE(t,e,n))return;let o=Zn.dirname(e);await yD(o)||await mD(o),await JE(a,t,e,n)}async function XE(t,e,n){return n.filter?n.filter(t,e):!0}async function JE(t,e,n,i){let s=await(i.dereference?be.stat:be.lstat)(e);if(s.isDirectory())return PD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return gD(s,t,e,n,i);if(s.isSymbolicLink())return bD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function gD(t,e,n,i,a){if(!e)return zE(t,n,i,a);if(a.overwrite)return await be.unlink(i),zE(t,n,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}async function zE(t,e,n,i){if(await be.copyFile(e,n),i.preserveTimestamps){ND(t.mode)&&await RD(n,t.mode);let a=await be.stat(e);await AD(n,a.atime,a.mtime)}return be.chmod(n,t.mode)}function ND(t){return(t&128)===0}function RD(t,e){return be.chmod(t,e|128)}async function PD(t,e,n,i,a){e||await be.mkdir(i);let s=await be.readdir(n);await Promise.all(s.map(async o=>{let r=Zn.join(n,o),u=Zn.join(i,o);if(!await XE(r,u,a))return;let{destStat:c}=await eo.checkPaths(r,u,"copy",a);return JE(c,r,u,a)})),e||await be.chmod(i,t.mode)}async function bD(t,e,n,i){let a=await be.readlink(e);if(i.dereference&&(a=Zn.resolve(process.cwd(),a)),!t)return be.symlink(a,n);let s=null;try{s=await be.readlink(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return be.symlink(a,n);throw o}if(i.dereference&&(s=Zn.resolve(process.cwd(),s)),eo.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(eo.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return await be.unlink(n),be.symlink(a,n)}QE.exports=OD});var o_=h((mQ,n_)=>{"use strict";var we=
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001");let{srcStat:i,destStat:a}=await eo.checkPaths(t,e,"copy",n);if(await eo.checkParentPaths(t,i,e,"copy"),!await XE(t,e,n))return;let o=Zn.dirname(e);await yD(o)||await mD(o),await JE(a,t,e,n)}async function XE(t,e,n){return n.filter?n.filter(t,e):!0}async function JE(t,e,n,i){let s=await(i.dereference?be.stat:be.lstat)(e);if(s.isDirectory())return PD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return gD(s,t,e,n,i);if(s.isSymbolicLink())return bD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}async function gD(t,e,n,i,a){if(!e)return zE(t,n,i,a);if(a.overwrite)return await be.unlink(i),zE(t,n,i,a);if(a.errorOnExist)throw new Error(`'${i}' already exists`)}async function zE(t,e,n,i){if(await be.copyFile(e,n),i.preserveTimestamps){ND(t.mode)&&await RD(n,t.mode);let a=await be.stat(e);await AD(n,a.atime,a.mtime)}return be.chmod(n,t.mode)}function ND(t){return(t&128)===0}function RD(t,e){return be.chmod(t,e|128)}async function PD(t,e,n,i,a){e||await be.mkdir(i);let s=await be.readdir(n);await Promise.all(s.map(async o=>{let r=Zn.join(n,o),u=Zn.join(i,o);if(!await XE(r,u,a))return;let{destStat:c}=await eo.checkPaths(r,u,"copy",a);return JE(c,r,u,a)})),e||await be.chmod(i,t.mode)}async function bD(t,e,n,i){let a=await be.readlink(e);if(i.dereference&&(a=Zn.resolve(process.cwd(),a)),!t)return be.symlink(a,n);let s=null;try{s=await be.readlink(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return be.symlink(a,n);throw o}if(i.dereference&&(s=Zn.resolve(process.cwd(),s)),eo.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(eo.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return await be.unlink(n),be.symlink(a,n)}QE.exports=OD});var o_=h((mQ,n_)=>{"use strict";var we=zr(),to=L("path"),xD=st().mkdirsSync,MD=kl().utimesMillisSync,ro=hr();function LD(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}=ro.checkPathsSync(t,e,"copy",n);if(ro.checkParentPathsSync(t,i,e,"copy"),n.filter&&!n.filter(t,e))return;let s=to.dirname(e);return we.existsSync(s)||xD(s),e_(a,t,e,n)}function e_(t,e,n,i){let s=(i.dereference?we.statSync:we.lstatSync)(e);if(s.isDirectory())return BD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return ID(s,t,e,n,i);if(s.isSymbolicLink())return HD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function ID(t,e,n,i,a){return e?CD(t,n,i,a):t_(t,n,i,a)}function CD(t,e,n,i){if(i.overwrite)return we.unlinkSync(n),t_(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}function t_(t,e,n,i){return we.copyFileSync(e,n),i.preserveTimestamps&&wD(t.mode,e,n),Fl(n,t.mode)}function wD(t,e,n){return UD(t)&&DD(n,t),VD(e,n)}function UD(t){return(t&128)===0}function DD(t,e){return Fl(t,e|128)}function Fl(t,e){return we.chmodSync(t,e)}function VD(t,e){let n=we.statSync(t);return MD(e,n.atime,n.mtime)}function BD(t,e,n,i,a){return e?r_(n,i,a):GD(t.mode,n,i,a)}function GD(t,e,n,i){return we.mkdirSync(n),r_(e,n,i),Fl(n,t)}function r_(t,e,n){we.readdirSync(t).forEach(i=>kD(i,t,e,n))}function kD(t,e,n,i){let a=to.join(e,t),s=to.join(n,t);if(i.filter&&!i.filter(a,s))return;let{destStat:o}=ro.checkPathsSync(a,s,"copy",i);return e_(o,a,s,i)}function HD(t,e,n,i){let a=we.readlinkSync(e);if(i.dereference&&(a=to.resolve(process.cwd(),a)),t){let s;try{s=we.readlinkSync(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return we.symlinkSync(a,n);throw o}if(i.dereference&&(s=to.resolve(process.cwd(),s)),ro.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(ro.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return FD(a,n)}else return we.symlinkSync(a,n)}function FD(t,e){return we.unlinkSync(e),we.symlinkSync(t,e)}n_.exports=LD});var Di=h((yQ,i_)=>{"use strict";var YD=Ee().fromPromise;i_.exports={copy:YD(ZE()),copySync:o_()}});var no=h((AQ,s_)=>{"use strict";var a_=
|
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 v1(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}F_.exports={stringify:T1,stripBom:v1}});var $_=h((LQ,j_)=>{"use strict";var Jr;try{Jr=Wr()}catch{Jr=L("fs")}var Bi=Ee(),{stringify:Y_,stripBom:q_}=Vi();async function m1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Jr,i="throws"in e?e.throws:!0,a=await Bi.fromCallback(n.readFile)(t,e);a=q_(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 y1=Bi.fromPromise(m1);function A1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Jr,i="throws"in e?e.throws:!0;try{let a=n.readFileSync(t,e);return a=q_(a),JSON.parse(a,e.reviver)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}}async function O1(t,e,n={}){let i=n.fs||Jr,a=Y_(e,n);await Bi.fromCallback(i.writeFile)(t,a,n)}var g1=Bi.fromPromise(O1);function N1(t,e,n={}){let i=n.fs||Jr,a=Y_(e,n);return i.writeFileSync(t,a,n)}var R1={readFile:y1,readFileSync:A1,writeFile:g1,writeFileSync:N1};j_.exports=R1});var W_=h((IQ,K_)=>{"use strict";var Gi=$_();K_.exports={readJson:Gi.readFile,readJsonSync:Gi.readFileSync,writeJson:Gi.writeFile,writeJsonSync:Gi.writeFileSync}});var ki=h((CQ,J_)=>{"use strict";var P1=Ee().fromPromise,Yl=Ce(),z_=L("path"),X_=st(),b1=Ht().pathExists;async function x1(t,e,n="utf-8"){let i=z_.dirname(t);return await b1(i)||await X_.mkdirs(i),Yl.writeFile(t,e,n)}function M1(t,...e){let n=z_.dirname(t);Yl.existsSync(n)||X_.mkdirsSync(n),Yl.writeFileSync(t,...e)}J_.exports={outputFile:P1(x1),outputFileSync:M1}});var Z_=h((wQ,Q_)=>{"use strict";var{stringify:L1}=Vi(),{outputFile:I1}=ki();async function C1(t,e,n={}){let i=L1(e,n);await I1(t,i,n)}Q_.exports=C1});var tS=h((UQ,eS)=>{"use strict";var{stringify:w1}=Vi(),{outputFileSync:U1}=ki();function D1(t,e,n){let i=w1(e,n);U1(t,i,n)}eS.exports=D1});var nS=h((DQ,rS)=>{"use strict";var V1=Ee().fromPromise,Ue=W_();Ue.outputJson=V1(Z_());Ue.outputJsonSync=tS();Ue.outputJSON=Ue.outputJson;Ue.outputJSONSync=Ue.outputJsonSync;Ue.writeJSON=Ue.writeJson;Ue.writeJSONSync=Ue.writeJsonSync;Ue.readJSON=Ue.readJson;Ue.readJSONSync=Ue.readJsonSync;rS.exports=Ue});var uS=h((VQ,sS)=>{"use strict";var B1=Ce(),oS=L("path"),{copy:G1}=Di(),{remove:aS}=no(),{mkdirp:k1}=st(),{pathExists:H1}=Ht(),iS=hr();async function F1(t,e,n={}){let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=await iS.checkPaths(t,e,"move",n);await iS.checkParentPaths(t,a,e,"move");let o=oS.dirname(e);return oS.parse(o).root!==o&&await k1(o),Y1(t,e,i,s)}async function Y1(t,e,n,i){if(!i){if(n)await aS(e);else if(await H1(e))throw new Error("dest already exists.")}try{await B1.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await q1(t,e,n)}}async function q1(t,e,n){return await G1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),aS(t)}sS.exports=F1});var dS=h((BQ,pS)=>{"use strict";var cS=Wr(),jl=L("path"),j1=Di().copySync,fS=no().removeSync,$1=st().mkdirpSync,lS=hr();function K1(t,e,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=lS.checkPathsSync(t,e,"move",n);return lS.checkParentPathsSync(t,a,e,"move"),W1(e)||$1(jl.dirname(e)),z1(t,e,i,s)}function W1(t){let e=jl.dirname(t);return jl.parse(e).root===e}function z1(t,e,n,i){if(i)return ql(t,e,n);if(n)return fS(e),ql(t,e,n);if(cS.existsSync(e))throw new Error("dest already exists.");return ql(t,e,n)}function ql(t,e,n){try{cS.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return X1(t,e,n)}}function X1(t,e,n){return j1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),fS(t)}pS.exports=K1});var _S=h((GQ,ES)=>{"use strict";var J1=Ee().fromPromise;ES.exports={move:J1(uS()),moveSync:dS()}});var $l=h((kQ,SS)=>{"use strict";SS.exports={...Ce(),...Di(),...__(),...H_(),...nS(),...st(),..._S(),...ki(),...Ht(),...no()}});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 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,$T,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,IB,CB,wB,UB,DB,VB,BB,GB,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,Gv,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,RG,PG,bG,xG,MG,LG,IG,CG,kv,Hv,Fv,Yv,qv,jv,$v,Kv,Wv,zv,Xv,wG,UG,DG,VG,BG,GG,kG,HG,FG,YG,qG,jG,Jv,Qv,Zv,em,tm,$G,KG,WG,zG,XG,JG,rm,nm,om,QG,ZG,ek,tk,im,am,sm,um,rk,nk,ok,ik,ak,lm,cm,fm,pm,dm,Em,_m,sk,uk,lk,ck,fk,pk,dk,Ek,Sm,hm,Tm,vm,mm,_k,Sk,hk,Tk,vk,mk,ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm,Um,Dm,Vm,Bm,Gm,km,Hm,yk,Ak,Ok,gk,Nk,Rk,Pk,bk,xk,Mk,Lk,Ik,Ck,wk,Uk,Dk,Vk,Bk,Gk,kk,Hk,Fk,Fm,Ym,qm,jm,$m,Yk,qk,jk,$k,Kk,Wk,Km,Wm,zk,Xk,Jk,zm,Xm,Qk,Zk,eH,Jm,Qm,Zm,ey,ty,ry,ny,oy,iy,ay,sy,uy,ly,cy,fy,py,dy,tH,rH,nH,oH,iH,aH,sH,uH,lH,cH,fH,pH,dH,EH,_H,SH,hH,TH,Ey,_y,vH,mH,yH,Sy=m(()=>{"use strict";tc();PS="aws.lambda.invoked_arn",bS="db.system",xS="db.connection_string",MS="db.user",LS="db.jdbc.driver_classname",IS="db.name",CS="db.statement",wS="db.operation",US="db.mssql.instance_name",DS="db.cassandra.keyspace",VS="db.cassandra.page_size",BS="db.cassandra.consistency_level",GS="db.cassandra.table",kS="db.cassandra.idempotence",HS="db.cassandra.speculative_execution_count",FS="db.cassandra.coordinator.id",YS="db.cassandra.coordinator.dc",qS="db.hbase.namespace",jS="db.redis.database_index",$S="db.mongodb.collection",KS="db.sql.table",WS="exception.type",zS="exception.message",XS="exception.stacktrace",JS="exception.escaped",QS="faas.trigger",ZS="faas.execution",eh="faas.document.collection",th="faas.document.operation",rh="faas.document.time",nh="faas.document.name",oh="faas.time",ih="faas.cron",ah="faas.coldstart",sh="faas.invoked_name",uh="faas.invoked_provider",lh="faas.invoked_region",ch="net.transport",fh="net.peer.ip",ph="net.peer.port",dh="net.peer.name",Eh="net.host.ip",_h="net.host.port",Sh="net.host.name",hh="net.host.connection.type",Th="net.host.connection.subtype",vh="net.host.carrier.name",mh="net.host.carrier.mcc",yh="net.host.carrier.mnc",Ah="net.host.carrier.icc",Oh="peer.service",gh="enduser.id",Nh="enduser.role",Rh="enduser.scope",Ph="thread.id",bh="thread.name",xh="code.function",Mh="code.namespace",Lh="code.filepath",Ih="code.lineno",Ch="http.method",wh="http.url",Uh="http.target",Dh="http.host",Vh="http.scheme",Bh="http.status_code",Gh="http.flavor",kh="http.user_agent",Hh="http.request_content_length",Fh="http.request_content_length_uncompressed",Yh="http.response_content_length",qh="http.response_content_length_uncompressed",jh="http.server_name",$h="http.route",Kh="http.client_ip",Wh="aws.dynamodb.table_names",zh="aws.dynamodb.consumed_capacity",Xh="aws.dynamodb.item_collection_metrics",Jh="aws.dynamodb.provisioned_read_capacity",Qh="aws.dynamodb.provisioned_write_capacity",Zh="aws.dynamodb.consistent_read",eT="aws.dynamodb.projection",tT="aws.dynamodb.limit",rT="aws.dynamodb.attributes_to_get",nT="aws.dynamodb.index_name",oT="aws.dynamodb.select",iT="aws.dynamodb.global_secondary_indexes",aT="aws.dynamodb.local_secondary_indexes",sT="aws.dynamodb.exclusive_start_table",uT="aws.dynamodb.table_count",lT="aws.dynamodb.scan_forward",cT="aws.dynamodb.segment",fT="aws.dynamodb.total_segments",pT="aws.dynamodb.count",dT="aws.dynamodb.scanned_count",ET="aws.dynamodb.attribute_definitions",_T="aws.dynamodb.global_secondary_index_updates",ST="messaging.system",hT="messaging.destination",TT="messaging.destination_kind",vT="messaging.temp_destination",mT="messaging.protocol",yT="messaging.protocol_version",AT="messaging.url",OT="messaging.message_id",gT="messaging.conversation_id",NT="messaging.message_payload_size_bytes",RT="messaging.message_payload_compressed_size_bytes",PT="messaging.operation",bT="messaging.consumer_id",xT="messaging.rabbitmq.routing_key",MT="messaging.kafka.message_key",LT="messaging.kafka.consumer_group",IT="messaging.kafka.client_id",CT="messaging.kafka.partition",wT="messaging.kafka.tombstone",UT="rpc.system",DT="rpc.service",VT="rpc.method",BT="rpc.grpc.status_code",GT="rpc.jsonrpc.version",kT="rpc.jsonrpc.request_id",HT="rpc.jsonrpc.error_code",FT="rpc.jsonrpc.error_message",YT="message.type",qT="message.id",jT="message.compressed_size",$T="message.uncompressed_size",vV=PS,mV=bS,yV=xS,AV=MS,OV=LS,gV=IS,NV=CS,RV=wS,PV=US,bV=DS,xV=VS,MV=BS,LV=GS,IV=kS,CV=HS,wV=FS,UV=YS,DV=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=sh,e2=uh,t2=lh,r2=ch,n2=fh,o2=ph,i2=dh,a2=Eh,s2=_h,u2=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=Uh,b2=Dh,x2=Vh,M2=Bh,L2=Gh,I2=kh,C2=Hh,w2=Fh,U2=Yh,D2=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=sT,eB=uT,tB=lT,rB=cT,nB=fT,oB=pT,iB=dT,aB=ET,sB=_T,uB=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=UT,bB=DT,xB=VT,MB=BT,LB=GT,IB=kT,CB=HT,wB=FT,UB=YT,DB=qT,VB=jT,BB=$T,GB=fe([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,$T]),KT="other_sql",WT="mssql",zT="mysql",XT="oracle",JT="db2",QT="postgresql",ZT="redshift",ev="hive",tv="cloudscape",rv="hsqldb",nv="progress",ov="maxdb",iv="hanadb",av="ingres",sv="firstsql",uv="edb",lv="cache",cv="adabas",fv="firebird",pv="derby",dv="filemaker",Ev="informix",_v="instantdb",Sv="interbase",hv="mariadb",Tv="netezza",vv="pervasive",mv="pointbase",yv="sqlite",Av="sybase",Ov="teradata",gv="vertica",Nv="h2",Rv="coldfusion",Pv="cassandra",bv="hbase",xv="mongodb",Mv="redis",Lv="couchbase",Iv="couchdb",Cv="cosmosdb",wv="dynamodb",Uv="neo4j",Dv="geode",Vv="elasticsearch",Bv="memcached",Gv="cockroachdb",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=sv,tG=uv,rG=lv,nG=cv,oG=fv,iG=pv,aG=dv,sG=Ev,uG=_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=Cv,PG=wv,bG=Uv,xG=Dv,MG=Vv,LG=Bv,IG=Gv,CG=fe([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,Gv]),kv="all",Hv="each_quorum",Fv="quorum",Yv="local_quorum",qv="one",jv="two",$v="three",Kv="local_one",Wv="any",zv="serial",Xv="local_serial",wG=kv,UG=Hv,DG=Fv,VG=Yv,BG=qv,GG=jv,kG=$v,HG=Kv,FG=Wv,YG=zv,qG=Xv,jG=fe([kv,Hv,Fv,Yv,qv,jv,$v,Kv,Wv,zv,Xv]),Jv="datasource",Qv="http",Zv="pubsub",em="timer",tm="other",$G=Jv,KG=Qv,WG=Zv,zG=em,XG=tm,JG=fe([Jv,Qv,Zv,em,tm]),rm="insert",nm="edit",om="delete",QG=rm,ZG=nm,ek=om,tk=fe([rm,nm,om]),im="alibaba_cloud",am="aws",sm="azure",um="gcp",rk=im,nk=am,ok=sm,ik=um,ak=fe([im,am,sm,um]),lm="ip_tcp",cm="ip_udp",fm="ip",pm="unix",dm="pipe",Em="inproc",_m="other",sk=lm,uk=cm,lk=fm,ck=pm,fk=dm,pk=Em,dk=_m,Ek=fe([lm,cm,fm,pm,dm,Em,_m]),Sm="wifi",hm="wired",Tm="cell",vm="unavailable",mm="unknown",_k=Sm,Sk=hm,hk=Tm,Tk=vm,vk=mm,mk=fe([Sm,hm,Tm,vm,mm]),ym="gprs",Am="edge",Om="umts",gm="cdma",Nm="evdo_0",Rm="evdo_a",Pm="cdma2000_1xrtt",bm="hsdpa",xm="hsupa",Mm="hspa",Lm="iden",Im="evdo_b",Cm="lte",wm="ehrpd",Um="hspap",Dm="gsm",Vm="td_scdma",Bm="iwlan",Gm="nr",km="nrnsa",Hm="lte_ca",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,Uk=Um,Dk=Dm,Vk=Vm,Bk=Bm,Gk=Gm,kk=km,Hk=Hm,Fk=fe([ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm,Um,Dm,Vm,Bm,Gm,km,Hm]),Fm="1.0",Ym="1.1",qm="2.0",jm="SPDY",$m="QUIC",Yk=Fm,qk=Ym,jk=qm,$k=jm,Kk=$m,Wk={HTTP_1_0:Fm,HTTP_1_1:Ym,HTTP_2_0:qm,SPDY:jm,QUIC:$m},Km="queue",Wm="topic",zk=Km,Xk=Wm,Jk=fe([Km,Wm]),zm="receive",Xm="process",Qk=zm,Zk=Xm,eH=fe([zm,Xm]),Jm=0,Qm=1,Zm=2,ey=3,ty=4,ry=5,ny=6,oy=7,iy=8,ay=9,sy=10,uy=11,ly=12,cy=13,fy=14,py=15,dy=16,tH=Jm,rH=Qm,nH=Zm,oH=ey,iH=ty,aH=ry,sH=ny,uH=oy,lH=iy,cH=ay,fH=sy,pH=uy,dH=ly,EH=cy,_H=fy,SH=py,hH=dy,TH={OK:Jm,CANCELLED:Qm,UNKNOWN:Zm,INVALID_ARGUMENT:ey,DEADLINE_EXCEEDED:ty,NOT_FOUND:ry,ALREADY_EXISTS:ny,PERMISSION_DENIED:oy,RESOURCE_EXHAUSTED:iy,FAILED_PRECONDITION:ay,ABORTED:sy,OUT_OF_RANGE:uy,UNIMPLEMENTED:ly,INTERNAL:cy,UNAVAILABLE:fy,DATA_LOSS:py,UNAUTHENTICATED:dy},Ey="SENT",_y="RECEIVED",vH=Ey,mH=_y,yH=fe([Ey,_y])});var hy=m(()=>{"use strict";Sy()});var 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,qA,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,eF,tF,rF,nF,oF,iF,aF,sF,uF,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,UF,DF,VF,BF,GF,kF,HF,FF,YF,qF,jF,$F,KF,WF,zF,jA,$A,KA,WA,XF,JF,QF,ZF,e3,zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO,iO,aO,sO,uO,lO,cO,fO,t3,r3,n3,o3,i3,a3,s3,u3,l3,c3,f3,p3,d3,E3,_3,S3,h3,T3,pO,dO,v3,m3,y3,EO,_O,SO,hO,TO,vO,mO,A3,O3,g3,N3,R3,P3,b3,x3,yO,AO,OO,gO,NO,RO,PO,bO,xO,MO,LO,M3,L3,I3,C3,w3,U3,D3,V3,B3,G3,k3,H3,IO,CO,wO,UO,DO,VO,BO,GO,kO,HO,F3,Y3,q3,j3,$3,K3,W3,z3,X3,J3,Q3,FO=m(()=>{"use strict";tc();Ty="cloud.provider",vy="cloud.account.id",my="cloud.region",yy="cloud.availability_zone",Ay="cloud.platform",Oy="aws.ecs.container.arn",gy="aws.ecs.cluster.arn",Ny="aws.ecs.launchtype",Ry="aws.ecs.task.arn",Py="aws.ecs.task.family",by="aws.ecs.task.revision",xy="aws.eks.cluster.arn",My="aws.log.group.names",Ly="aws.log.group.arns",Iy="aws.log.stream.names",Cy="aws.log.stream.arns",wy="container.name",Uy="container.id",Dy="container.runtime",Vy="container.image.name",By="container.image.tag",Gy="deployment.environment",ky="device.id",Hy="device.model.identifier",Fy="device.model.name",Yy="faas.name",qy="faas.id",jy="faas.version",$y="faas.instance",Ky="faas.max_memory",Wy="host.id",zy="host.name",Xy="host.type",Jy="host.arch",Qy="host.image.name",Zy="host.image.id",eA="host.image.version",tA="k8s.cluster.name",rA="k8s.node.name",nA="k8s.node.uid",oA="k8s.namespace.name",iA="k8s.pod.uid",aA="k8s.pod.name",sA="k8s.container.name",uA="k8s.replicaset.uid",lA="k8s.replicaset.name",cA="k8s.deployment.uid",fA="k8s.deployment.name",pA="k8s.statefulset.uid",dA="k8s.statefulset.name",EA="k8s.daemonset.uid",_A="k8s.daemonset.name",SA="k8s.job.uid",hA="k8s.job.name",TA="k8s.cronjob.uid",vA="k8s.cronjob.name",mA="os.type",yA="os.description",AA="os.name",OA="os.version",gA="process.pid",NA="process.executable.name",RA="process.executable.path",PA="process.command",bA="process.command_line",xA="process.command_args",MA="process.owner",LA="process.runtime.name",IA="process.runtime.version",CA="process.runtime.description",wA="service.name",UA="service.namespace",DA="service.instance.id",VA="service.version",BA="telemetry.sdk.name",GA="telemetry.sdk.language",kA="telemetry.sdk.version",HA="telemetry.auto.version",FA="webengine.name",YA="webengine.version",qA="webengine.description",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,UH=Ly,DH=Iy,VH=Cy,BH=wy,GH=Uy,kH=Dy,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,sF=nA,uF=oA,lF=iA,cF=aA,fF=sA,pF=uA,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,UF=LA,DF=IA,VF=CA,BF=wA,GF=UA,kF=DA,HF=VA,FF=BA,YF=GA,qF=kA,jF=HA,$F=FA,KF=YA,WF=qA,zF=fe([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,qA]),jA="alibaba_cloud",$A="aws",KA="azure",WA="gcp",XF=jA,JF=$A,QF=KA,ZF=WA,e3=fe([jA,$A,KA,WA]),zA="alibaba_cloud_ecs",XA="alibaba_cloud_fc",JA="aws_ec2",QA="aws_ecs",ZA="aws_eks",eO="aws_lambda",tO="aws_elastic_beanstalk",rO="azure_vm",nO="azure_container_instances",oO="azure_aks",iO="azure_functions",aO="azure_app_service",sO="gcp_compute_engine",uO="gcp_cloud_run",lO="gcp_kubernetes_engine",cO="gcp_cloud_functions",fO="gcp_app_engine",t3=zA,r3=XA,n3=JA,o3=QA,i3=ZA,a3=eO,s3=tO,u3=rO,l3=nO,c3=oO,f3=iO,p3=aO,d3=sO,E3=uO,_3=lO,S3=cO,h3=fO,T3=fe([zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO,iO,aO,sO,uO,lO,cO,fO]),pO="ec2",dO="fargate",v3=pO,m3=dO,y3=fe([pO,dO]),EO="amd64",_O="arm32",SO="arm64",hO="ia64",TO="ppc32",vO="ppc64",mO="x86",A3=EO,O3=_O,g3=SO,N3=hO,R3=TO,P3=vO,b3=mO,x3=fe([EO,_O,SO,hO,TO,vO,mO]),yO="windows",AO="linux",OO="darwin",gO="freebsd",NO="netbsd",RO="openbsd",PO="dragonflybsd",bO="hpux",xO="aix",MO="solaris",LO="z_os",M3=yO,L3=AO,I3=OO,C3=gO,w3=NO,U3=RO,D3=PO,V3=bO,B3=xO,G3=MO,k3=LO,H3=fe([yO,AO,OO,gO,NO,RO,PO,bO,xO,MO,LO]),IO="cpp",CO="dotnet",wO="erlang",UO="go",DO="java",VO="nodejs",BO="php",GO="python",kO="ruby",HO="webjs",F3=IO,Y3=CO,q3=wO,j3=UO,$3=DO,K3=VO,W3=BO,z3=GO,X3=kO,J3=HO,Q3=fe([IO,CO,wO,UO,DO,VO,BO,GO,kO,HO])});var YO=m(()=>{"use strict";FO()});var lo={};Je(lo,{AWSECSLAUNCHTYPEVALUES_EC2:()=>v3,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>m3,AwsEcsLaunchtypeValues:()=>y3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>t3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>r3,CLOUDPLATFORMVALUES_AWS_EC2:()=>n3,CLOUDPLATFORMVALUES_AWS_ECS:()=>o3,CLOUDPLATFORMVALUES_AWS_EKS:()=>i3,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>s3,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>a3,CLOUDPLATFORMVALUES_AZURE_AKS:()=>c3,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>p3,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>l3,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>f3,CLOUDPLATFORMVALUES_AZURE_VM:()=>u3,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>h3,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>S3,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>E3,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>d3,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>_3,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>XF,CLOUDPROVIDERVALUES_AWS:()=>JF,CLOUDPROVIDERVALUES_AZURE:()=>QF,CLOUDPROVIDERVALUES_GCP:()=>ZF,CloudPlatformValues:()=>T3,CloudProviderValues:()=>e3,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>wG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>FG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>UG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>HG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>VG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>qG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>BG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>DG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>YG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>kG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>GG,DBSYSTEMVALUES_ADABAS:()=>nG,DBSYSTEMVALUES_CACHE:()=>rG,DBSYSTEMVALUES_CASSANDRA:()=>mG,DBSYSTEMVALUES_CLOUDSCAPE:()=>WB,DBSYSTEMVALUES_COCKROACHDB:()=>IG,DBSYSTEMVALUES_COLDFUSION:()=>vG,DBSYSTEMVALUES_COSMOSDB:()=>RG,DBSYSTEMVALUES_COUCHBASE:()=>gG,DBSYSTEMVALUES_COUCHDB:()=>NG,DBSYSTEMVALUES_DB2:()=>qB,DBSYSTEMVALUES_DERBY:()=>iG,DBSYSTEMVALUES_DYNAMODB:()=>PG,DBSYSTEMVALUES_EDB:()=>tG,DBSYSTEMVALUES_ELASTICSEARCH:()=>MG,DBSYSTEMVALUES_FILEMAKER:()=>aG,DBSYSTEMVALUES_FIREBIRD:()=>oG,DBSYSTEMVALUES_FIRSTSQL:()=>eG,DBSYSTEMVALUES_GEODE:()=>xG,DBSYSTEMVALUES_H2:()=>TG,DBSYSTEMVALUES_HANADB:()=>QB,DBSYSTEMVALUES_HBASE:()=>yG,DBSYSTEMVALUES_HIVE:()=>KB,DBSYSTEMVALUES_HSQLDB:()=>zB,DBSYSTEMVALUES_INFORMIX:()=>sG,DBSYSTEMVALUES_INGRES:()=>ZB,DBSYSTEMVALUES_INSTANTDB:()=>uG,DBSYSTEMVALUES_INTERBASE:()=>lG,DBSYSTEMVALUES_MARIADB:()=>cG,DBSYSTEMVALUES_MAXDB:()=>JB,DBSYSTEMVALUES_MEMCACHED:()=>LG,DBSYSTEMVALUES_MONGODB:()=>AG,DBSYSTEMVALUES_MSSQL:()=>HB,DBSYSTEMVALUES_MYSQL:()=>FB,DBSYSTEMVALUES_NEO4J:()=>bG,DBSYSTEMVALUES_NETEZZA:()=>fG,DBSYSTEMVALUES_ORACLE:()=>YB,DBSYSTEMVALUES_OTHER_SQL:()=>kB,DBSYSTEMVALUES_PERVASIVE:()=>pG,DBSYSTEMVALUES_POINTBASE:()=>dG,DBSYSTEMVALUES_POSTGRESQL:()=>jB,DBSYSTEMVALUES_PROGRESS:()=>XB,DBSYSTEMVALUES_REDIS:()=>OG,DBSYSTEMVALUES_REDSHIFT:()=>$B,DBSYSTEMVALUES_SQLITE:()=>EG,DBSYSTEMVALUES_SYBASE:()=>_G,DBSYSTEMVALUES_TERADATA:()=>SG,DBSYSTEMVALUES_VERTICA:()=>hG,DbCassandraConsistencyLevelValues:()=>jG,DbSystemValues:()=>CG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>ek,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>ZG,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>QG,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>rk,FAASINVOKEDPROVIDERVALUES_AWS:()=>nk,FAASINVOKEDPROVIDERVALUES_AZURE:()=>ok,FAASINVOKEDPROVIDERVALUES_GCP:()=>ik,FAASTRIGGERVALUES_DATASOURCE:()=>$G,FAASTRIGGERVALUES_HTTP:()=>KG,FAASTRIGGERVALUES_OTHER:()=>XG,FAASTRIGGERVALUES_PUBSUB:()=>WG,FAASTRIGGERVALUES_TIMER:()=>zG,FaasDocumentOperationValues:()=>tk,FaasInvokedProviderValues:()=>ak,FaasTriggerValues:()=>JG,HOSTARCHVALUES_AMD64:()=>A3,HOSTARCHVALUES_ARM32:()=>O3,HOSTARCHVALUES_ARM64:()=>g3,HOSTARCHVALUES_IA64:()=>N3,HOSTARCHVALUES_PPC32:()=>R3,HOSTARCHVALUES_PPC64:()=>P3,HOSTARCHVALUES_X86:()=>b3,HTTPFLAVORVALUES_HTTP_1_0:()=>Yk,HTTPFLAVORVALUES_HTTP_1_1:()=>qk,HTTPFLAVORVALUES_HTTP_2_0:()=>jk,HTTPFLAVORVALUES_QUIC:()=>Kk,HTTPFLAVORVALUES_SPDY:()=>$k,HostArchValues:()=>x3,HttpFlavorValues:()=>Wk,MESSAGETYPEVALUES_RECEIVED:()=>mH,MESSAGETYPEVALUES_SENT:()=>vH,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>zk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>Xk,MESSAGINGOPERATIONVALUES_PROCESS:()=>Zk,MESSAGINGOPERATIONVALUES_RECEIVE:()=>Qk,MessageTypeValues:()=>yH,MessagingDestinationKindValues:()=>Jk,MessagingOperationValues:()=>eH,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>gk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Pk,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Ak,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>wk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Nk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Rk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Ik,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>yk,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Dk,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>bk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Mk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Uk,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>xk,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Lk,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Bk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>Ck,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Hk,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Gk,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>kk,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Vk,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Ok,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>hk,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Tk,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>vk,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>_k,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Sk,NETTRANSPORTVALUES_INPROC:()=>pk,NETTRANSPORTVALUES_IP:()=>lk,NETTRANSPORTVALUES_IP_TCP:()=>sk,NETTRANSPORTVALUES_IP_UDP:()=>uk,NETTRANSPORTVALUES_OTHER:()=>dk,NETTRANSPORTVALUES_PIPE:()=>fk,NETTRANSPORTVALUES_UNIX:()=>ck,NetHostConnectionSubtypeValues:()=>Fk,NetHostConnectionTypeValues:()=>mk,NetTransportValues:()=>Ek,OSTYPEVALUES_AIX:()=>B3,OSTYPEVALUES_DARWIN:()=>I3,OSTYPEVALUES_DRAGONFLYBSD:()=>D3,OSTYPEVALUES_FREEBSD:()=>C3,OSTYPEVALUES_HPUX:()=>V3,OSTYPEVALUES_LINUX:()=>L3,OSTYPEVALUES_NETBSD:()=>w3,OSTYPEVALUES_OPENBSD:()=>U3,OSTYPEVALUES_SOLARIS:()=>G3,OSTYPEVALUES_WINDOWS:()=>M3,OSTYPEVALUES_Z_OS:()=>k3,OsTypeValues:()=>H3,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>fH,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>sH,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>rH,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>SH,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>iH,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>cH,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>EH,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>oH,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>aH,RPCGRPCSTATUSCODEVALUES_OK:()=>tH,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>pH,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>uH,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>lH,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>hH,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>_H,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>dH,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>nH,RpcGrpcStatusCodeValues:()=>TH,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>W2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>aB,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>j2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>H2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>oB,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Z2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>J2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>sB,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>z2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>F2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>K2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>Q2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>$2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Y2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>q2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>iB,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>tB,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>rB,SEMATTRS_AWS_DYNAMODB_SELECT:()=>X2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>eB,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>k2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>nB,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>vV,SEMATTRS_CODE_FILEPATH:()=>O2,SEMATTRS_CODE_FUNCTION:()=>y2,SEMATTRS_CODE_LINENO:()=>g2,SEMATTRS_CODE_NAMESPACE:()=>A2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>MV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>UV,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>wV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>IV,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>bV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>xV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>CV,SEMATTRS_DB_CASSANDRA_TABLE:()=>LV,SEMATTRS_DB_CONNECTION_STRING:()=>yV,SEMATTRS_DB_HBASE_NAMESPACE:()=>DV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>OV,SEMATTRS_DB_MONGODB_COLLECTION:()=>BV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>PV,SEMATTRS_DB_NAME:()=>gV,SEMATTRS_DB_OPERATION:()=>RV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>VV,SEMATTRS_DB_SQL_TABLE:()=>GV,SEMATTRS_DB_STATEMENT:()=>NV,SEMATTRS_DB_SYSTEM:()=>mV,SEMATTRS_DB_USER:()=>AV,SEMATTRS_ENDUSER_ID:()=>S2,SEMATTRS_ENDUSER_ROLE:()=>h2,SEMATTRS_ENDUSER_SCOPE:()=>T2,SEMATTRS_EXCEPTION_ESCAPED:()=>YV,SEMATTRS_EXCEPTION_MESSAGE:()=>HV,SEMATTRS_EXCEPTION_STACKTRACE:()=>FV,SEMATTRS_EXCEPTION_TYPE:()=>kV,SEMATTRS_FAAS_COLDSTART:()=>QV,SEMATTRS_FAAS_CRON:()=>JV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>$V,SEMATTRS_FAAS_DOCUMENT_NAME:()=>zV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>KV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>WV,SEMATTRS_FAAS_EXECUTION:()=>jV,SEMATTRS_FAAS_INVOKED_NAME:()=>ZV,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>e2,SEMATTRS_FAAS_INVOKED_REGION:()=>t2,SEMATTRS_FAAS_TIME:()=>XV,SEMATTRS_FAAS_TRIGGER:()=>qV,SEMATTRS_HTTP_CLIENT_IP:()=>G2,SEMATTRS_HTTP_FLAVOR:()=>L2,SEMATTRS_HTTP_HOST:()=>b2,SEMATTRS_HTTP_METHOD:()=>N2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>C2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>w2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>U2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>D2,SEMATTRS_HTTP_ROUTE:()=>B2,SEMATTRS_HTTP_SCHEME:()=>x2,SEMATTRS_HTTP_SERVER_NAME:()=>V2,SEMATTRS_HTTP_STATUS_CODE:()=>M2,SEMATTRS_HTTP_TARGET:()=>P2,SEMATTRS_HTTP_URL:()=>R2,SEMATTRS_HTTP_USER_AGENT:()=>I2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>VB,SEMATTRS_MESSAGE_ID:()=>DB,SEMATTRS_MESSAGE_TYPE:()=>UB,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>BB,SEMATTRS_MESSAGING_CONSUMER_ID:()=>mB,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>SB,SEMATTRS_MESSAGING_DESTINATION:()=>lB,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>cB,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>gB,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>OB,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>AB,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>NB,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>RB,SEMATTRS_MESSAGING_MESSAGE_ID:()=>_B,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>TB,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>hB,SEMATTRS_MESSAGING_OPERATION:()=>vB,SEMATTRS_MESSAGING_PROTOCOL:()=>pB,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>dB,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>yB,SEMATTRS_MESSAGING_SYSTEM:()=>uB,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>fB,SEMATTRS_MESSAGING_URL:()=>EB,SEMATTRS_NET_HOST_CARRIER_ICC:()=>E2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>p2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>d2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>f2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>c2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>l2,SEMATTRS_NET_HOST_IP:()=>a2,SEMATTRS_NET_HOST_NAME:()=>u2,SEMATTRS_NET_HOST_PORT:()=>s2,SEMATTRS_NET_PEER_IP:()=>n2,SEMATTRS_NET_PEER_NAME:()=>i2,SEMATTRS_NET_PEER_PORT:()=>o2,SEMATTRS_NET_TRANSPORT:()=>r2,SEMATTRS_PEER_SERVICE:()=>_2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>MB,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>CB,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>wB,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>IB,SEMATTRS_RPC_JSONRPC_VERSION:()=>LB,SEMATTRS_RPC_METHOD:()=>xB,SEMATTRS_RPC_SERVICE:()=>bB,SEMATTRS_RPC_SYSTEM:()=>PB,SEMATTRS_THREAD_ID:()=>v2,SEMATTRS_THREAD_NAME:()=>m2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>bH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>PH,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>xH,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>MH,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>LH,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>IH,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>CH,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>UH,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>wH,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>VH,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>DH,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>OH,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>NH,SEMRESATTRS_CLOUD_PLATFORM:()=>RH,SEMRESATTRS_CLOUD_PROVIDER:()=>AH,SEMRESATTRS_CLOUD_REGION:()=>gH,SEMRESATTRS_CONTAINER_ID:()=>GH,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>HH,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>FH,SEMRESATTRS_CONTAINER_NAME:()=>BH,SEMRESATTRS_CONTAINER_RUNTIME:()=>kH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>YH,SEMRESATTRS_DEVICE_ID:()=>qH,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>jH,SEMRESATTRS_DEVICE_MODEL_NAME:()=>$H,SEMRESATTRS_FAAS_ID:()=>WH,SEMRESATTRS_FAAS_INSTANCE:()=>XH,SEMRESATTRS_FAAS_MAX_MEMORY:()=>JH,SEMRESATTRS_FAAS_NAME:()=>KH,SEMRESATTRS_FAAS_VERSION:()=>zH,SEMRESATTRS_HOST_ARCH:()=>tF,SEMRESATTRS_HOST_ID:()=>QH,SEMRESATTRS_HOST_IMAGE_ID:()=>nF,SEMRESATTRS_HOST_IMAGE_NAME:()=>rF,SEMRESATTRS_HOST_IMAGE_VERSION:()=>oF,SEMRESATTRS_HOST_NAME:()=>ZH,SEMRESATTRS_HOST_TYPE:()=>eF,SEMRESATTRS_K8S_CLUSTER_NAME:()=>iF,SEMRESATTRS_K8S_CONTAINER_NAME:()=>fF,SEMRESATTRS_K8S_CRONJOB_NAME:()=>OF,SEMRESATTRS_K8S_CRONJOB_UID:()=>AF,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>vF,SEMRESATTRS_K8S_DAEMONSET_UID:()=>TF,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>_F,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>EF,SEMRESATTRS_K8S_JOB_NAME:()=>yF,SEMRESATTRS_K8S_JOB_UID:()=>mF,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>uF,SEMRESATTRS_K8S_NODE_NAME:()=>aF,SEMRESATTRS_K8S_NODE_UID:()=>sF,SEMRESATTRS_K8S_POD_NAME:()=>cF,SEMRESATTRS_K8S_POD_UID:()=>lF,SEMRESATTRS_K8S_REPLICASET_NAME:()=>dF,SEMRESATTRS_K8S_REPLICASET_UID:()=>pF,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>hF,SEMRESATTRS_K8S_STATEFULSET_UID:()=>SF,SEMRESATTRS_OS_DESCRIPTION:()=>NF,SEMRESATTRS_OS_NAME:()=>RF,SEMRESATTRS_OS_TYPE:()=>gF,SEMRESATTRS_OS_VERSION:()=>PF,SEMRESATTRS_PROCESS_COMMAND:()=>LF,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>CF,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>IF,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>xF,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>MF,SEMRESATTRS_PROCESS_OWNER:()=>wF,SEMRESATTRS_PROCESS_PID:()=>bF,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>VF,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>UF,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>DF,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>kF,SEMRESATTRS_SERVICE_NAME:()=>BF,SEMRESATTRS_SERVICE_NAMESPACE:()=>GF,SEMRESATTRS_SERVICE_VERSION:()=>HF,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>jF,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>YF,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>FF,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>qF,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>WF,SEMRESATTRS_WEBENGINE_NAME:()=>$F,SEMRESATTRS_WEBENGINE_VERSION:()=>KF,SemanticAttributes:()=>GB,SemanticResourceAttributes:()=>zF,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>F3,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>Y3,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>q3,TELEMETRYSDKLANGUAGEVALUES_GO:()=>j3,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>$3,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>K3,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>W3,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>z3,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>X3,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>J3,TelemetrySdkLanguageValues:()=>Q3});var co=m(()=>{"use strict";hy();YO()});var jO=h((qO,$i)=>{"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(p,S){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let v=0,T=-1,A=(p.match(r.zoneIndex)||[])[0],O,N;for(A&&(A=A.substring(1),p=p.replace(/%.+$/,""));(T=p.indexOf(":",T+1))>=0;)v++;if(p.substr(0,2)==="::"&&v--,p.substr(-2,2)==="::"&&v--,v>S)return null;for(N=S-v,O=":";N--;)O+="0:";return p=p.replace("::",O),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),S=function(){let D=p.split(":"),G=[];for(let F=0;F<D.length;F++)G.push(parseInt(D[F],16));return G}(),{parts:S,zoneId:A}}function l(p,S,v,T){if(p.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),p[A]>>O!==S[A]>>O)return!1;T-=v,A+=1}return!0}function c(p){if(a.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(i.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}function f(p,S){for(;p.length<S;)p=`0${p}`;return p}let _={};_.IPv4=function(){function p(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 p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.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)},p.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},p.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return _.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p}(),_.IPv4.broadcastAddressFromCIDR=function(p){try{let S=this.parseCIDR(p),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(p){return this.parser(p)!==null},_.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},_.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},_.IPv4.isValidFourPartDecimal=function(p){return!!(_.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},_.IPv4.networkAddressFromCIDR=function(p){let S,v,T,A,O;try{for(S=this.parseCIDR(p),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(p){let S=this.parser(p);if(S===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(S)},_.IPv4.parseCIDR=function(p){let S;if(S=p.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(p){let S,v,T;if(S=p.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=p.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=p.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=p.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(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");let S=[0,0,0,0],v=0,T=Math.floor(p/8);for(;v<T;)S[v]=255,v++;return T<4&&(S[T]=Math.pow(2,p%8)-1<<8-p%8),new this(S)},_.IPv6=function(){function p(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 p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.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)},p.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},p.prototype.range=function(){return _.subnetMatch(this,this.SpecialRanges)},p.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},p.prototype.toFixedLengthString=function(){let S=function(){let T=[];for(let A=0;A<this.parts.length;A++)T.push(f(this.parts[A].toString(16),4));return T}.call(this).join(":"),v="";return this.zoneId&&(v=`%${this.zoneId}`),S+v},p.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])},p.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},p.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)}`},p.prototype.toString=function(){return this.toRFC5952String()},p}(),_.IPv6.broadcastAddressFromCIDR=function(p){try{let S=this.parseCIDR(p),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(p){return this.parser(p)!==null},_.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{let S=this.parser(p);return new this(S.parts,S.zoneId),!0}catch{return!1}},_.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},_.IPv6.networkAddressFromCIDR=function(p){let S,v,T,A,O;try{for(S=this.parseCIDR(p),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(p){let S=this.parser(p);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(p){let S,v,T;if((v=p.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(p){let S,v,T,A,O,N;if(T=p.match(r.deprecatedTransitional))return this.parser(`::ffff:${T[1]}`);if(r.native.test(p))return u(p,8);if((T=p.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(p){if(p=parseInt(p),p<0||p>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(p/8);for(;v<T;)S[v]=255,v++;return T<16&&(S[T]=Math.pow(2,p%8)-1<<8-p%8),new this(S)},_.fromByteArray=function(p){let S=p.length;if(S===4)return new _.IPv4(p);if(S===16)return new _.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},_.isValid=function(p){return _.IPv6.isValid(p)||_.IPv4.isValid(p)},_.isValidCIDR=function(p){return _.IPv6.isValidCIDR(p)||_.IPv4.isValidCIDR(p)},_.parse=function(p){if(_.IPv6.isValid(p))return _.IPv6.parse(p);if(_.IPv4.isValid(p))return _.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},_.parseCIDR=function(p){try{return _.IPv6.parseCIDR(p)}catch{try{return _.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},_.process=function(p){let S=this.parse(p);return S.kind()==="ipv6"&&S.isIPv4MappedAddress()?S.toIPv4Address():S},_.subnetMatch=function(p,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],p.kind()===N[0].kind()&&p.match.apply(p,N))return A}return v},typeof $i<"u"&&$i.exports?$i.exports=_:t.ipaddr=_})(qO)});var rc=h(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getPeerAttributes=qt.getStatusAttributes=qt.getMethodAttributes=void 0;var Tt=(co(),Y(lo)),Z3=jO(),eY=Ll();function tY(t){let[,e,n]=t.split("/");return{[Tt.SEMATTRS_RPC_SYSTEM]:"grpc",[Tt.SEMATTRS_RPC_SERVICE]:e,[Tt.SEMATTRS_RPC_METHOD]:n}}qt.getMethodAttributes=tY;function rY(t){return{[Tt.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":eY.Status[t]}}qt.getStatusAttributes=rY;function nY(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}:Z3.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=nY});var nc=h(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.metadataGetter=Zr.metadataSetter=void 0;Zr.metadataSetter={set(t,e,n){t.set(e,n)}};Zr.metadataGetter={get:(t,e)=>t.get(e),keys:t=>Array.from(t,([e])=>e)}});var $O=h(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.VERSION=void 0;Ki.VERSION="0.1.15"});var oc=h(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.emitSpanEvents=jt.getSpanName=jt.tracer=void 0;var oY=(M(),Y(Pe)),KO=(co(),Y(lo)),iY=$O();jt.tracer=oY.trace.getTracer("nice-grpc-opentelemetry",iY.VERSION);function aY(t){return t.slice(1)}jt.getSpanName=aY;async function*sY(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=sY});var ac=h(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.bindAsyncGenerator=void 0;var ic=(M(),Y(Pe));function WO(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 WO(t,e[Symbol.asyncIterator]())}}}Wi.bindAsyncGenerator=WO});var XO=h(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.openTelemetryServerMiddleware=void 0;var fo=(M(),Y(Pe)),zO=(co(),Y(lo)),uY=(dE(),Y(pE)),en=Ll(),sc=rc(),lY=nc(),zi=oc(),cY=ac();function fY(){return(t,e)=>zi.tracer.startActiveSpan((0,zi.getSpanName)(t.method.path),{kind:fo.SpanKind.SERVER},fo.propagation.extract(fo.ROOT_CONTEXT,e.metadata,lY.metadataGetter),n=>(0,cY.bindAsyncGenerator)(fo.context.active(),pY(n,t,e)))}Xi.openTelemetryServerMiddleware=fY;async function*pY(t,e,n){let i={...(0,sc.getMethodAttributes)(e.method.path),...(0,sc.getPeerAttributes)(n.peer)};t.setAttributes(i);let a=en.Status.OK,s;try{let o;if(e.requestStream?o=(0,zi.emitSpanEvents)(e.request,t,zO.MESSAGETYPEVALUES_RECEIVED):o=e.request,e.responseStream){yield*(0,zi.emitSpanEvents)(e.next(o,n),t,zO.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(o,n)}catch(o){throw o instanceof en.ServerError?(a=o.code,s=o.details):(0,uY.isAbortError)(o)?(a=en.Status.CANCELLED,s="The operation was cancelled"):(a=en.Status.UNKNOWN,s="Unknown server error occurred",t.recordException(o)),o}finally{let o=(0,sc.getStatusAttributes)(a);t.setAttributes(o),a!==en.Status.OK&&t.setStatus({code:fo.SpanStatusCode.ERROR,message:`${en.Status[a]}: ${s}`}),t.end()}}});var ZO=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.openTelemetryClientMiddleware=void 0;var po=(M(),Y(Pe)),JO=(co(),Y(lo)),dY=(dE(),Y(pE)),$t=Ll(),QO=rc(),EY=nc(),Ji=oc(),_Y=ac();function SY(){return(t,e)=>Ji.tracer.startActiveSpan((0,Ji.getSpanName)(t.method.path),{kind:po.SpanKind.CLIENT},n=>{let i=(0,$t.Metadata)(e.metadata);return po.propagation.inject(po.context.active(),i,EY.metadataSetter),(0,_Y.bindAsyncGenerator)(po.context.active(),hY(n,t,{...e,metadata:i}))})}Qi.openTelemetryClientMiddleware=SY;async function*hY(t,e,n){let i=(0,QO.getMethodAttributes)(e.method.path);t.setAttributes(i);let a=!1,s=$t.Status.OK,o;try{let r;if(e.requestStream?r=(0,Ji.emitSpanEvents)(e.request,t,JO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,Ji.emitSpanEvents)(e.next(r,n),t,JO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let u=yield*e.next(r,n);return a=!0,u}}catch(r){throw a=!0,r instanceof $t.ClientError?(s=r.code,o=r.details):(0,dY.isAbortError)(r)?(s=$t.Status.CANCELLED,o="The operation was cancelled"):(s=$t.Status.UNKNOWN,o="Unknown server error occurred",t.recordException(r)),r}finally{a||(s=$t.Status.CANCELLED,o="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,QO.getStatusAttributes)(s);t.setAttributes(r),s!==$t.Status.OK&&t.setStatus({code:po.SpanStatusCode.ERROR,message:`${$t.Status[s]}: ${o}`}),t.end()}}});var eg=h(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.openTelemetryClientMiddleware=tn.openTelemetryServerMiddleware=void 0;var TY=XO();Object.defineProperty(tn,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return TY.openTelemetryServerMiddleware}});var vY=ZO();Object.defineProperty(tn,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return vY.openTelemetryClientMiddleware}})});var qe=h((ree,og)=>{"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}=ro.checkPathsSync(t,e,"copy",n);if(ro.checkParentPathsSync(t,i,e,"copy"),n.filter&&!n.filter(t,e))return;let s=to.dirname(e);return we.existsSync(s)||xD(s),e_(a,t,e,n)}function e_(t,e,n,i){let s=(i.dereference?we.statSync:we.lstatSync)(e);if(s.isDirectory())return BD(s,t,e,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return ID(s,t,e,n,i);if(s.isSymbolicLink())return HD(t,e,n,i);throw s.isSocket()?new Error(`Cannot copy a socket file: ${e}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${e}`):new Error(`Unknown file: ${e}`)}function ID(t,e,n,i,a){return e?CD(t,n,i,a):t_(t,n,i,a)}function CD(t,e,n,i){if(i.overwrite)return we.unlinkSync(n),t_(t,e,n,i);if(i.errorOnExist)throw new Error(`'${n}' already exists`)}function t_(t,e,n,i){return we.copyFileSync(e,n),i.preserveTimestamps&&wD(t.mode,e,n),Fl(n,t.mode)}function wD(t,e,n){return UD(t)&&DD(n,t),VD(e,n)}function UD(t){return(t&128)===0}function DD(t,e){return Fl(t,e|128)}function Fl(t,e){return we.chmodSync(t,e)}function VD(t,e){let n=we.statSync(t);return MD(e,n.atime,n.mtime)}function BD(t,e,n,i,a){return e?r_(n,i,a):GD(t.mode,n,i,a)}function GD(t,e,n,i){return we.mkdirSync(n),r_(e,n,i),Fl(n,t)}function r_(t,e,n){we.readdirSync(t).forEach(i=>kD(i,t,e,n))}function kD(t,e,n,i){let a=to.join(e,t),s=to.join(n,t);if(i.filter&&!i.filter(a,s))return;let{destStat:o}=ro.checkPathsSync(a,s,"copy",i);return e_(o,a,s,i)}function HD(t,e,n,i){let a=we.readlinkSync(e);if(i.dereference&&(a=to.resolve(process.cwd(),a)),t){let s;try{s=we.readlinkSync(n)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return we.symlinkSync(a,n);throw o}if(i.dereference&&(s=to.resolve(process.cwd(),s)),ro.isSrcSubdir(a,s))throw new Error(`Cannot copy '${a}' to a subdirectory of itself, '${s}'.`);if(ro.isSrcSubdir(s,a))throw new Error(`Cannot overwrite '${s}' with '${a}'.`);return FD(a,n)}else return we.symlinkSync(a,n)}function FD(t,e){return we.unlinkSync(e),we.symlinkSync(t,e)}n_.exports=LD});var Di=h((yQ,i_)=>{"use strict";var YD=Ee().fromPromise;i_.exports={copy:YD(ZE()),copySync:o_()}});var no=h((AQ,s_)=>{"use strict";var a_=zr(),qD=Ee().fromCallback;function jD(t,e){a_.rm(t,{recursive:!0,force:!0},e)}function $D(t){a_.rmSync(t,{recursive:!0,force:!0})}s_.exports={remove:qD(jD),removeSync:$D}});var __=h((OQ,E_)=>{"use strict";var KD=Ee().fromPromise,c_=Ce(),f_=L("path"),p_=st(),d_=no(),u_=KD(async function(e){let n;try{n=await c_.readdir(e)}catch{return p_.mkdirs(e)}return Promise.all(n.map(i=>d_.remove(f_.join(e,i))))});function l_(t){let e;try{e=c_.readdirSync(t)}catch{return p_.mkdirsSync(t)}e.forEach(n=>{n=f_.join(t,n),d_.removeSync(n)})}E_.exports={emptyDirSync:l_,emptydirSync:l_,emptyDir:u_,emptydir:u_}});var v_=h((gQ,T_)=>{"use strict";var WD=Ee().fromPromise,S_=L("path"),xt=Ce(),h_=st();async function zD(t){let e;try{e=await xt.stat(t)}catch{}if(e&&e.isFile())return;let n=S_.dirname(t),i=null;try{i=await xt.stat(n)}catch(a){if(a.code==="ENOENT"){await h_.mkdirs(n),await xt.writeFile(t,"");return}else throw a}i.isDirectory()?await xt.writeFile(t,""):await xt.readdir(n)}function XD(t){let e;try{e=xt.statSync(t)}catch{}if(e&&e.isFile())return;let n=S_.dirname(t);try{xt.statSync(n).isDirectory()||xt.readdirSync(n)}catch(i){if(i&&i.code==="ENOENT")h_.mkdirsSync(n);else throw i}xt.writeFileSync(t,"")}T_.exports={createFile:WD(zD),createFileSync:XD}});var g_=h((NQ,O_)=>{"use strict";var JD=Ee().fromPromise,m_=L("path"),Ft=Ce(),y_=st(),{pathExists:QD}=Ht(),{areIdentical:A_}=hr();async function ZD(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&&A_(i,n))return;let a=m_.dirname(e);await QD(a)||await y_.mkdirs(a),await Ft.link(t,e)}function e1(t,e){let n;try{n=Ft.lstatSync(e)}catch{}try{let s=Ft.lstatSync(t);if(n&&A_(s,n))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let i=m_.dirname(e);return Ft.existsSync(i)||y_.mkdirsSync(i),Ft.linkSync(t,e)}O_.exports={createLink:JD(ZD),createLinkSync:e1}});var R_=h((RQ,N_)=>{"use strict";var Yt=L("path"),oo=Ce(),{pathExists:t1}=Ht(),r1=Ee().fromPromise;async function n1(t,e){if(Yt.isAbsolute(t)){try{await oo.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:t,toDst:t}}let n=Yt.dirname(e),i=Yt.join(n,t);if(await t1(i))return{toCwd:i,toDst:t};try{await oo.lstat(t)}catch(s){throw s.message=s.message.replace("lstat","ensureSymlink"),s}return{toCwd:t,toDst:Yt.relative(n,t)}}function o1(t,e){if(Yt.isAbsolute(t)){if(!oo.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(oo.existsSync(i))return{toCwd:i,toDst:t};if(!oo.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:Yt.relative(n,t)}}N_.exports={symlinkPaths:r1(n1),symlinkPathsSync:o1}});var x_=h((PQ,b_)=>{"use strict";var P_=Ce(),i1=Ee().fromPromise;async function a1(t,e){if(e)return e;let n;try{n=await P_.lstat(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}function s1(t,e){if(e)return e;let n;try{n=P_.lstatSync(t)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}b_.exports={symlinkType:i1(a1),symlinkTypeSync:s1}});var C_=h((bQ,I_)=>{"use strict";var u1=Ee().fromPromise,M_=L("path"),ht=Ce(),{mkdirs:l1,mkdirsSync:c1}=st(),{symlinkPaths:f1,symlinkPathsSync:p1}=R_(),{symlinkType:d1,symlinkTypeSync:E1}=x_(),{pathExists:_1}=Ht(),{areIdentical:L_}=hr();async function S1(t,e,n){let i;try{i=await ht.lstat(e)}catch{}if(i&&i.isSymbolicLink()){let[r,u]=await Promise.all([ht.stat(t),ht.stat(e)]);if(L_(r,u))return}let a=await f1(t,e);t=a.toDst;let s=await d1(a.toCwd,n),o=M_.dirname(e);return await _1(o)||await l1(o),ht.symlink(t,e,s)}function h1(t,e,n){let i;try{i=ht.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){let r=ht.statSync(t),u=ht.statSync(e);if(L_(r,u))return}let a=p1(t,e);t=a.toDst,n=E1(a.toCwd,n);let s=M_.dirname(e);return ht.existsSync(s)||c1(s),ht.symlinkSync(t,e,n)}I_.exports={createSymlink:u1(S1),createSymlinkSync:h1}});var H_=h((xQ,k_)=>{"use strict";var{createFile:w_,createFileSync:U_}=v_(),{createLink:D_,createLinkSync:V_}=g_(),{createSymlink:B_,createSymlinkSync:G_}=C_();k_.exports={createFile:w_,createFileSync:U_,ensureFile:w_,ensureFileSync:U_,createLink:D_,createLinkSync:V_,ensureLink:D_,ensureLinkSync:V_,createSymlink:B_,createSymlinkSync:G_,ensureSymlink:B_,ensureSymlinkSync:G_}});var Vi=h((MQ,F_)=>{"use strict";function T1(t,{EOL:e=`
|
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 v1(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}F_.exports={stringify:T1,stripBom:v1}});var $_=h((LQ,j_)=>{"use strict";var Qr;try{Qr=zr()}catch{Qr=L("fs")}var Bi=Ee(),{stringify:Y_,stripBom:q_}=Vi();async function m1(t,e={}){typeof e=="string"&&(e={encoding:e});let n=e.fs||Qr,i="throws"in e?e.throws:!0,a=await Bi.fromCallback(n.readFile)(t,e);a=q_(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 y1=Bi.fromPromise(m1);function A1(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=q_(a),JSON.parse(a,e.reviver)}catch(a){if(i)throw a.message=`${t}: ${a.message}`,a;return null}}async function O1(t,e,n={}){let i=n.fs||Qr,a=Y_(e,n);await Bi.fromCallback(i.writeFile)(t,a,n)}var g1=Bi.fromPromise(O1);function N1(t,e,n={}){let i=n.fs||Qr,a=Y_(e,n);return i.writeFileSync(t,a,n)}var R1={readFile:y1,readFileSync:A1,writeFile:g1,writeFileSync:N1};j_.exports=R1});var W_=h((IQ,K_)=>{"use strict";var Gi=$_();K_.exports={readJson:Gi.readFile,readJsonSync:Gi.readFileSync,writeJson:Gi.writeFile,writeJsonSync:Gi.writeFileSync}});var ki=h((CQ,J_)=>{"use strict";var P1=Ee().fromPromise,Yl=Ce(),z_=L("path"),X_=st(),b1=Ht().pathExists;async function x1(t,e,n="utf-8"){let i=z_.dirname(t);return await b1(i)||await X_.mkdirs(i),Yl.writeFile(t,e,n)}function M1(t,...e){let n=z_.dirname(t);Yl.existsSync(n)||X_.mkdirsSync(n),Yl.writeFileSync(t,...e)}J_.exports={outputFile:P1(x1),outputFileSync:M1}});var Z_=h((wQ,Q_)=>{"use strict";var{stringify:L1}=Vi(),{outputFile:I1}=ki();async function C1(t,e,n={}){let i=L1(e,n);await I1(t,i,n)}Q_.exports=C1});var tS=h((UQ,eS)=>{"use strict";var{stringify:w1}=Vi(),{outputFileSync:U1}=ki();function D1(t,e,n){let i=w1(e,n);U1(t,i,n)}eS.exports=D1});var nS=h((DQ,rS)=>{"use strict";var V1=Ee().fromPromise,Ue=W_();Ue.outputJson=V1(Z_());Ue.outputJsonSync=tS();Ue.outputJSON=Ue.outputJson;Ue.outputJSONSync=Ue.outputJsonSync;Ue.writeJSON=Ue.writeJson;Ue.writeJSONSync=Ue.writeJsonSync;Ue.readJSON=Ue.readJson;Ue.readJSONSync=Ue.readJsonSync;rS.exports=Ue});var uS=h((VQ,sS)=>{"use strict";var B1=Ce(),oS=L("path"),{copy:G1}=Di(),{remove:aS}=no(),{mkdirp:k1}=st(),{pathExists:H1}=Ht(),iS=hr();async function F1(t,e,n={}){let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=await iS.checkPaths(t,e,"move",n);await iS.checkParentPaths(t,a,e,"move");let o=oS.dirname(e);return oS.parse(o).root!==o&&await k1(o),Y1(t,e,i,s)}async function Y1(t,e,n,i){if(!i){if(n)await aS(e);else if(await H1(e))throw new Error("dest already exists.")}try{await B1.rename(t,e)}catch(a){if(a.code!=="EXDEV")throw a;await q1(t,e,n)}}async function q1(t,e,n){return await G1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),aS(t)}sS.exports=F1});var dS=h((BQ,pS)=>{"use strict";var cS=zr(),jl=L("path"),j1=Di().copySync,fS=no().removeSync,$1=st().mkdirpSync,lS=hr();function K1(t,e,n){n=n||{};let i=n.overwrite||n.clobber||!1,{srcStat:a,isChangingCase:s=!1}=lS.checkPathsSync(t,e,"move",n);return lS.checkParentPathsSync(t,a,e,"move"),W1(e)||$1(jl.dirname(e)),z1(t,e,i,s)}function W1(t){let e=jl.dirname(t);return jl.parse(e).root===e}function z1(t,e,n,i){if(i)return ql(t,e,n);if(n)return fS(e),ql(t,e,n);if(cS.existsSync(e))throw new Error("dest already exists.");return ql(t,e,n)}function ql(t,e,n){try{cS.renameSync(t,e)}catch(i){if(i.code!=="EXDEV")throw i;return X1(t,e,n)}}function X1(t,e,n){return j1(t,e,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),fS(t)}pS.exports=K1});var _S=h((GQ,ES)=>{"use strict";var J1=Ee().fromPromise;ES.exports={move:J1(uS()),moveSync:dS()}});var $l=h((kQ,SS)=>{"use strict";SS.exports={...Ce(),...Di(),...__(),...H_(),...nS(),...st(),..._S(),...ki(),...Ht(),...no()}});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 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,$T,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,IB,CB,wB,UB,DB,VB,BB,GB,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,Gv,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,RG,PG,bG,xG,MG,LG,IG,CG,kv,Hv,Fv,Yv,qv,jv,$v,Kv,Wv,zv,Xv,wG,UG,DG,VG,BG,GG,kG,HG,FG,YG,qG,jG,Jv,Qv,Zv,em,tm,$G,KG,WG,zG,XG,JG,rm,nm,om,QG,ZG,ek,tk,im,am,sm,um,rk,nk,ok,ik,ak,lm,cm,fm,pm,dm,Em,_m,sk,uk,lk,ck,fk,pk,dk,Ek,Sm,hm,Tm,vm,mm,_k,Sk,hk,Tk,vk,mk,ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm,Um,Dm,Vm,Bm,Gm,km,Hm,yk,Ak,Ok,gk,Nk,Rk,Pk,bk,xk,Mk,Lk,Ik,Ck,wk,Uk,Dk,Vk,Bk,Gk,kk,Hk,Fk,Fm,Ym,qm,jm,$m,Yk,qk,jk,$k,Kk,Wk,Km,Wm,zk,Xk,Jk,zm,Xm,Qk,Zk,eH,Jm,Qm,Zm,ey,ty,ry,ny,oy,iy,ay,sy,uy,ly,cy,fy,py,dy,tH,rH,nH,oH,iH,aH,sH,uH,lH,cH,fH,pH,dH,EH,_H,SH,hH,TH,Ey,_y,vH,mH,yH,Sy=m(()=>{"use strict";tc();PS="aws.lambda.invoked_arn",bS="db.system",xS="db.connection_string",MS="db.user",LS="db.jdbc.driver_classname",IS="db.name",CS="db.statement",wS="db.operation",US="db.mssql.instance_name",DS="db.cassandra.keyspace",VS="db.cassandra.page_size",BS="db.cassandra.consistency_level",GS="db.cassandra.table",kS="db.cassandra.idempotence",HS="db.cassandra.speculative_execution_count",FS="db.cassandra.coordinator.id",YS="db.cassandra.coordinator.dc",qS="db.hbase.namespace",jS="db.redis.database_index",$S="db.mongodb.collection",KS="db.sql.table",WS="exception.type",zS="exception.message",XS="exception.stacktrace",JS="exception.escaped",QS="faas.trigger",ZS="faas.execution",eh="faas.document.collection",th="faas.document.operation",rh="faas.document.time",nh="faas.document.name",oh="faas.time",ih="faas.cron",ah="faas.coldstart",sh="faas.invoked_name",uh="faas.invoked_provider",lh="faas.invoked_region",ch="net.transport",fh="net.peer.ip",ph="net.peer.port",dh="net.peer.name",Eh="net.host.ip",_h="net.host.port",Sh="net.host.name",hh="net.host.connection.type",Th="net.host.connection.subtype",vh="net.host.carrier.name",mh="net.host.carrier.mcc",yh="net.host.carrier.mnc",Ah="net.host.carrier.icc",Oh="peer.service",gh="enduser.id",Nh="enduser.role",Rh="enduser.scope",Ph="thread.id",bh="thread.name",xh="code.function",Mh="code.namespace",Lh="code.filepath",Ih="code.lineno",Ch="http.method",wh="http.url",Uh="http.target",Dh="http.host",Vh="http.scheme",Bh="http.status_code",Gh="http.flavor",kh="http.user_agent",Hh="http.request_content_length",Fh="http.request_content_length_uncompressed",Yh="http.response_content_length",qh="http.response_content_length_uncompressed",jh="http.server_name",$h="http.route",Kh="http.client_ip",Wh="aws.dynamodb.table_names",zh="aws.dynamodb.consumed_capacity",Xh="aws.dynamodb.item_collection_metrics",Jh="aws.dynamodb.provisioned_read_capacity",Qh="aws.dynamodb.provisioned_write_capacity",Zh="aws.dynamodb.consistent_read",eT="aws.dynamodb.projection",tT="aws.dynamodb.limit",rT="aws.dynamodb.attributes_to_get",nT="aws.dynamodb.index_name",oT="aws.dynamodb.select",iT="aws.dynamodb.global_secondary_indexes",aT="aws.dynamodb.local_secondary_indexes",sT="aws.dynamodb.exclusive_start_table",uT="aws.dynamodb.table_count",lT="aws.dynamodb.scan_forward",cT="aws.dynamodb.segment",fT="aws.dynamodb.total_segments",pT="aws.dynamodb.count",dT="aws.dynamodb.scanned_count",ET="aws.dynamodb.attribute_definitions",_T="aws.dynamodb.global_secondary_index_updates",ST="messaging.system",hT="messaging.destination",TT="messaging.destination_kind",vT="messaging.temp_destination",mT="messaging.protocol",yT="messaging.protocol_version",AT="messaging.url",OT="messaging.message_id",gT="messaging.conversation_id",NT="messaging.message_payload_size_bytes",RT="messaging.message_payload_compressed_size_bytes",PT="messaging.operation",bT="messaging.consumer_id",xT="messaging.rabbitmq.routing_key",MT="messaging.kafka.message_key",LT="messaging.kafka.consumer_group",IT="messaging.kafka.client_id",CT="messaging.kafka.partition",wT="messaging.kafka.tombstone",UT="rpc.system",DT="rpc.service",VT="rpc.method",BT="rpc.grpc.status_code",GT="rpc.jsonrpc.version",kT="rpc.jsonrpc.request_id",HT="rpc.jsonrpc.error_code",FT="rpc.jsonrpc.error_message",YT="message.type",qT="message.id",jT="message.compressed_size",$T="message.uncompressed_size",vV=PS,mV=bS,yV=xS,AV=MS,OV=LS,gV=IS,NV=CS,RV=wS,PV=US,bV=DS,xV=VS,MV=BS,LV=GS,IV=kS,CV=HS,wV=FS,UV=YS,DV=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=sh,e2=uh,t2=lh,r2=ch,n2=fh,o2=ph,i2=dh,a2=Eh,s2=_h,u2=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=Uh,b2=Dh,x2=Vh,M2=Bh,L2=Gh,I2=kh,C2=Hh,w2=Fh,U2=Yh,D2=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=sT,eB=uT,tB=lT,rB=cT,nB=fT,oB=pT,iB=dT,aB=ET,sB=_T,uB=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=UT,bB=DT,xB=VT,MB=BT,LB=GT,IB=kT,CB=HT,wB=FT,UB=YT,DB=qT,VB=jT,BB=$T,GB=fe([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,$T]),KT="other_sql",WT="mssql",zT="mysql",XT="oracle",JT="db2",QT="postgresql",ZT="redshift",ev="hive",tv="cloudscape",rv="hsqldb",nv="progress",ov="maxdb",iv="hanadb",av="ingres",sv="firstsql",uv="edb",lv="cache",cv="adabas",fv="firebird",pv="derby",dv="filemaker",Ev="informix",_v="instantdb",Sv="interbase",hv="mariadb",Tv="netezza",vv="pervasive",mv="pointbase",yv="sqlite",Av="sybase",Ov="teradata",gv="vertica",Nv="h2",Rv="coldfusion",Pv="cassandra",bv="hbase",xv="mongodb",Mv="redis",Lv="couchbase",Iv="couchdb",Cv="cosmosdb",wv="dynamodb",Uv="neo4j",Dv="geode",Vv="elasticsearch",Bv="memcached",Gv="cockroachdb",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=sv,tG=uv,rG=lv,nG=cv,oG=fv,iG=pv,aG=dv,sG=Ev,uG=_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=Cv,PG=wv,bG=Uv,xG=Dv,MG=Vv,LG=Bv,IG=Gv,CG=fe([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,Gv]),kv="all",Hv="each_quorum",Fv="quorum",Yv="local_quorum",qv="one",jv="two",$v="three",Kv="local_one",Wv="any",zv="serial",Xv="local_serial",wG=kv,UG=Hv,DG=Fv,VG=Yv,BG=qv,GG=jv,kG=$v,HG=Kv,FG=Wv,YG=zv,qG=Xv,jG=fe([kv,Hv,Fv,Yv,qv,jv,$v,Kv,Wv,zv,Xv]),Jv="datasource",Qv="http",Zv="pubsub",em="timer",tm="other",$G=Jv,KG=Qv,WG=Zv,zG=em,XG=tm,JG=fe([Jv,Qv,Zv,em,tm]),rm="insert",nm="edit",om="delete",QG=rm,ZG=nm,ek=om,tk=fe([rm,nm,om]),im="alibaba_cloud",am="aws",sm="azure",um="gcp",rk=im,nk=am,ok=sm,ik=um,ak=fe([im,am,sm,um]),lm="ip_tcp",cm="ip_udp",fm="ip",pm="unix",dm="pipe",Em="inproc",_m="other",sk=lm,uk=cm,lk=fm,ck=pm,fk=dm,pk=Em,dk=_m,Ek=fe([lm,cm,fm,pm,dm,Em,_m]),Sm="wifi",hm="wired",Tm="cell",vm="unavailable",mm="unknown",_k=Sm,Sk=hm,hk=Tm,Tk=vm,vk=mm,mk=fe([Sm,hm,Tm,vm,mm]),ym="gprs",Am="edge",Om="umts",gm="cdma",Nm="evdo_0",Rm="evdo_a",Pm="cdma2000_1xrtt",bm="hsdpa",xm="hsupa",Mm="hspa",Lm="iden",Im="evdo_b",Cm="lte",wm="ehrpd",Um="hspap",Dm="gsm",Vm="td_scdma",Bm="iwlan",Gm="nr",km="nrnsa",Hm="lte_ca",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,Uk=Um,Dk=Dm,Vk=Vm,Bk=Bm,Gk=Gm,kk=km,Hk=Hm,Fk=fe([ym,Am,Om,gm,Nm,Rm,Pm,bm,xm,Mm,Lm,Im,Cm,wm,Um,Dm,Vm,Bm,Gm,km,Hm]),Fm="1.0",Ym="1.1",qm="2.0",jm="SPDY",$m="QUIC",Yk=Fm,qk=Ym,jk=qm,$k=jm,Kk=$m,Wk={HTTP_1_0:Fm,HTTP_1_1:Ym,HTTP_2_0:qm,SPDY:jm,QUIC:$m},Km="queue",Wm="topic",zk=Km,Xk=Wm,Jk=fe([Km,Wm]),zm="receive",Xm="process",Qk=zm,Zk=Xm,eH=fe([zm,Xm]),Jm=0,Qm=1,Zm=2,ey=3,ty=4,ry=5,ny=6,oy=7,iy=8,ay=9,sy=10,uy=11,ly=12,cy=13,fy=14,py=15,dy=16,tH=Jm,rH=Qm,nH=Zm,oH=ey,iH=ty,aH=ry,sH=ny,uH=oy,lH=iy,cH=ay,fH=sy,pH=uy,dH=ly,EH=cy,_H=fy,SH=py,hH=dy,TH={OK:Jm,CANCELLED:Qm,UNKNOWN:Zm,INVALID_ARGUMENT:ey,DEADLINE_EXCEEDED:ty,NOT_FOUND:ry,ALREADY_EXISTS:ny,PERMISSION_DENIED:oy,RESOURCE_EXHAUSTED:iy,FAILED_PRECONDITION:ay,ABORTED:sy,OUT_OF_RANGE:uy,UNIMPLEMENTED:ly,INTERNAL:cy,UNAVAILABLE:fy,DATA_LOSS:py,UNAUTHENTICATED:dy},Ey="SENT",_y="RECEIVED",vH=Ey,mH=_y,yH=fe([Ey,_y])});var hy=m(()=>{"use strict";Sy()});var 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,qA,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,eF,tF,rF,nF,oF,iF,aF,sF,uF,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,UF,DF,VF,BF,GF,kF,HF,FF,YF,qF,jF,$F,KF,WF,zF,jA,$A,KA,WA,XF,JF,QF,ZF,e3,zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO,iO,aO,sO,uO,lO,cO,fO,t3,r3,n3,o3,i3,a3,s3,u3,l3,c3,f3,p3,d3,E3,_3,S3,h3,T3,pO,dO,v3,m3,y3,EO,_O,SO,hO,TO,vO,mO,A3,O3,g3,N3,R3,P3,b3,x3,yO,AO,OO,gO,NO,RO,PO,bO,xO,MO,LO,M3,L3,I3,C3,w3,U3,D3,V3,B3,G3,k3,H3,IO,CO,wO,UO,DO,VO,BO,GO,kO,HO,F3,Y3,q3,j3,$3,K3,W3,z3,X3,J3,Q3,FO=m(()=>{"use strict";tc();Ty="cloud.provider",vy="cloud.account.id",my="cloud.region",yy="cloud.availability_zone",Ay="cloud.platform",Oy="aws.ecs.container.arn",gy="aws.ecs.cluster.arn",Ny="aws.ecs.launchtype",Ry="aws.ecs.task.arn",Py="aws.ecs.task.family",by="aws.ecs.task.revision",xy="aws.eks.cluster.arn",My="aws.log.group.names",Ly="aws.log.group.arns",Iy="aws.log.stream.names",Cy="aws.log.stream.arns",wy="container.name",Uy="container.id",Dy="container.runtime",Vy="container.image.name",By="container.image.tag",Gy="deployment.environment",ky="device.id",Hy="device.model.identifier",Fy="device.model.name",Yy="faas.name",qy="faas.id",jy="faas.version",$y="faas.instance",Ky="faas.max_memory",Wy="host.id",zy="host.name",Xy="host.type",Jy="host.arch",Qy="host.image.name",Zy="host.image.id",eA="host.image.version",tA="k8s.cluster.name",rA="k8s.node.name",nA="k8s.node.uid",oA="k8s.namespace.name",iA="k8s.pod.uid",aA="k8s.pod.name",sA="k8s.container.name",uA="k8s.replicaset.uid",lA="k8s.replicaset.name",cA="k8s.deployment.uid",fA="k8s.deployment.name",pA="k8s.statefulset.uid",dA="k8s.statefulset.name",EA="k8s.daemonset.uid",_A="k8s.daemonset.name",SA="k8s.job.uid",hA="k8s.job.name",TA="k8s.cronjob.uid",vA="k8s.cronjob.name",mA="os.type",yA="os.description",AA="os.name",OA="os.version",gA="process.pid",NA="process.executable.name",RA="process.executable.path",PA="process.command",bA="process.command_line",xA="process.command_args",MA="process.owner",LA="process.runtime.name",IA="process.runtime.version",CA="process.runtime.description",wA="service.name",UA="service.namespace",DA="service.instance.id",VA="service.version",BA="telemetry.sdk.name",GA="telemetry.sdk.language",kA="telemetry.sdk.version",HA="telemetry.auto.version",FA="webengine.name",YA="webengine.version",qA="webengine.description",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,UH=Ly,DH=Iy,VH=Cy,BH=wy,GH=Uy,kH=Dy,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,sF=nA,uF=oA,lF=iA,cF=aA,fF=sA,pF=uA,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,UF=LA,DF=IA,VF=CA,BF=wA,GF=UA,kF=DA,HF=VA,FF=BA,YF=GA,qF=kA,jF=HA,$F=FA,KF=YA,WF=qA,zF=fe([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,qA]),jA="alibaba_cloud",$A="aws",KA="azure",WA="gcp",XF=jA,JF=$A,QF=KA,ZF=WA,e3=fe([jA,$A,KA,WA]),zA="alibaba_cloud_ecs",XA="alibaba_cloud_fc",JA="aws_ec2",QA="aws_ecs",ZA="aws_eks",eO="aws_lambda",tO="aws_elastic_beanstalk",rO="azure_vm",nO="azure_container_instances",oO="azure_aks",iO="azure_functions",aO="azure_app_service",sO="gcp_compute_engine",uO="gcp_cloud_run",lO="gcp_kubernetes_engine",cO="gcp_cloud_functions",fO="gcp_app_engine",t3=zA,r3=XA,n3=JA,o3=QA,i3=ZA,a3=eO,s3=tO,u3=rO,l3=nO,c3=oO,f3=iO,p3=aO,d3=sO,E3=uO,_3=lO,S3=cO,h3=fO,T3=fe([zA,XA,JA,QA,ZA,eO,tO,rO,nO,oO,iO,aO,sO,uO,lO,cO,fO]),pO="ec2",dO="fargate",v3=pO,m3=dO,y3=fe([pO,dO]),EO="amd64",_O="arm32",SO="arm64",hO="ia64",TO="ppc32",vO="ppc64",mO="x86",A3=EO,O3=_O,g3=SO,N3=hO,R3=TO,P3=vO,b3=mO,x3=fe([EO,_O,SO,hO,TO,vO,mO]),yO="windows",AO="linux",OO="darwin",gO="freebsd",NO="netbsd",RO="openbsd",PO="dragonflybsd",bO="hpux",xO="aix",MO="solaris",LO="z_os",M3=yO,L3=AO,I3=OO,C3=gO,w3=NO,U3=RO,D3=PO,V3=bO,B3=xO,G3=MO,k3=LO,H3=fe([yO,AO,OO,gO,NO,RO,PO,bO,xO,MO,LO]),IO="cpp",CO="dotnet",wO="erlang",UO="go",DO="java",VO="nodejs",BO="php",GO="python",kO="ruby",HO="webjs",F3=IO,Y3=CO,q3=wO,j3=UO,$3=DO,K3=VO,W3=BO,z3=GO,X3=kO,J3=HO,Q3=fe([IO,CO,wO,UO,DO,VO,BO,GO,kO,HO])});var YO=m(()=>{"use strict";FO()});var lo={};Je(lo,{AWSECSLAUNCHTYPEVALUES_EC2:()=>v3,AWSECSLAUNCHTYPEVALUES_FARGATE:()=>m3,AwsEcsLaunchtypeValues:()=>y3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:()=>t3,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:()=>r3,CLOUDPLATFORMVALUES_AWS_EC2:()=>n3,CLOUDPLATFORMVALUES_AWS_ECS:()=>o3,CLOUDPLATFORMVALUES_AWS_EKS:()=>i3,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:()=>s3,CLOUDPLATFORMVALUES_AWS_LAMBDA:()=>a3,CLOUDPLATFORMVALUES_AZURE_AKS:()=>c3,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:()=>p3,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:()=>l3,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:()=>f3,CLOUDPLATFORMVALUES_AZURE_VM:()=>u3,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:()=>h3,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:()=>S3,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:()=>E3,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:()=>d3,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:()=>_3,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:()=>XF,CLOUDPROVIDERVALUES_AWS:()=>JF,CLOUDPROVIDERVALUES_AZURE:()=>QF,CLOUDPROVIDERVALUES_GCP:()=>ZF,CloudPlatformValues:()=>T3,CloudProviderValues:()=>e3,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:()=>wG,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:()=>FG,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:()=>UG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:()=>HG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:()=>VG,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:()=>qG,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:()=>BG,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:()=>DG,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:()=>YG,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:()=>kG,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:()=>GG,DBSYSTEMVALUES_ADABAS:()=>nG,DBSYSTEMVALUES_CACHE:()=>rG,DBSYSTEMVALUES_CASSANDRA:()=>mG,DBSYSTEMVALUES_CLOUDSCAPE:()=>WB,DBSYSTEMVALUES_COCKROACHDB:()=>IG,DBSYSTEMVALUES_COLDFUSION:()=>vG,DBSYSTEMVALUES_COSMOSDB:()=>RG,DBSYSTEMVALUES_COUCHBASE:()=>gG,DBSYSTEMVALUES_COUCHDB:()=>NG,DBSYSTEMVALUES_DB2:()=>qB,DBSYSTEMVALUES_DERBY:()=>iG,DBSYSTEMVALUES_DYNAMODB:()=>PG,DBSYSTEMVALUES_EDB:()=>tG,DBSYSTEMVALUES_ELASTICSEARCH:()=>MG,DBSYSTEMVALUES_FILEMAKER:()=>aG,DBSYSTEMVALUES_FIREBIRD:()=>oG,DBSYSTEMVALUES_FIRSTSQL:()=>eG,DBSYSTEMVALUES_GEODE:()=>xG,DBSYSTEMVALUES_H2:()=>TG,DBSYSTEMVALUES_HANADB:()=>QB,DBSYSTEMVALUES_HBASE:()=>yG,DBSYSTEMVALUES_HIVE:()=>KB,DBSYSTEMVALUES_HSQLDB:()=>zB,DBSYSTEMVALUES_INFORMIX:()=>sG,DBSYSTEMVALUES_INGRES:()=>ZB,DBSYSTEMVALUES_INSTANTDB:()=>uG,DBSYSTEMVALUES_INTERBASE:()=>lG,DBSYSTEMVALUES_MARIADB:()=>cG,DBSYSTEMVALUES_MAXDB:()=>JB,DBSYSTEMVALUES_MEMCACHED:()=>LG,DBSYSTEMVALUES_MONGODB:()=>AG,DBSYSTEMVALUES_MSSQL:()=>HB,DBSYSTEMVALUES_MYSQL:()=>FB,DBSYSTEMVALUES_NEO4J:()=>bG,DBSYSTEMVALUES_NETEZZA:()=>fG,DBSYSTEMVALUES_ORACLE:()=>YB,DBSYSTEMVALUES_OTHER_SQL:()=>kB,DBSYSTEMVALUES_PERVASIVE:()=>pG,DBSYSTEMVALUES_POINTBASE:()=>dG,DBSYSTEMVALUES_POSTGRESQL:()=>jB,DBSYSTEMVALUES_PROGRESS:()=>XB,DBSYSTEMVALUES_REDIS:()=>OG,DBSYSTEMVALUES_REDSHIFT:()=>$B,DBSYSTEMVALUES_SQLITE:()=>EG,DBSYSTEMVALUES_SYBASE:()=>_G,DBSYSTEMVALUES_TERADATA:()=>SG,DBSYSTEMVALUES_VERTICA:()=>hG,DbCassandraConsistencyLevelValues:()=>jG,DbSystemValues:()=>CG,FAASDOCUMENTOPERATIONVALUES_DELETE:()=>ek,FAASDOCUMENTOPERATIONVALUES_EDIT:()=>ZG,FAASDOCUMENTOPERATIONVALUES_INSERT:()=>QG,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:()=>rk,FAASINVOKEDPROVIDERVALUES_AWS:()=>nk,FAASINVOKEDPROVIDERVALUES_AZURE:()=>ok,FAASINVOKEDPROVIDERVALUES_GCP:()=>ik,FAASTRIGGERVALUES_DATASOURCE:()=>$G,FAASTRIGGERVALUES_HTTP:()=>KG,FAASTRIGGERVALUES_OTHER:()=>XG,FAASTRIGGERVALUES_PUBSUB:()=>WG,FAASTRIGGERVALUES_TIMER:()=>zG,FaasDocumentOperationValues:()=>tk,FaasInvokedProviderValues:()=>ak,FaasTriggerValues:()=>JG,HOSTARCHVALUES_AMD64:()=>A3,HOSTARCHVALUES_ARM32:()=>O3,HOSTARCHVALUES_ARM64:()=>g3,HOSTARCHVALUES_IA64:()=>N3,HOSTARCHVALUES_PPC32:()=>R3,HOSTARCHVALUES_PPC64:()=>P3,HOSTARCHVALUES_X86:()=>b3,HTTPFLAVORVALUES_HTTP_1_0:()=>Yk,HTTPFLAVORVALUES_HTTP_1_1:()=>qk,HTTPFLAVORVALUES_HTTP_2_0:()=>jk,HTTPFLAVORVALUES_QUIC:()=>Kk,HTTPFLAVORVALUES_SPDY:()=>$k,HostArchValues:()=>x3,HttpFlavorValues:()=>Wk,MESSAGETYPEVALUES_RECEIVED:()=>mH,MESSAGETYPEVALUES_SENT:()=>vH,MESSAGINGDESTINATIONKINDVALUES_QUEUE:()=>zk,MESSAGINGDESTINATIONKINDVALUES_TOPIC:()=>Xk,MESSAGINGOPERATIONVALUES_PROCESS:()=>Zk,MESSAGINGOPERATIONVALUES_RECEIVE:()=>Qk,MessageTypeValues:()=>yH,MessagingDestinationKindValues:()=>Jk,MessagingOperationValues:()=>eH,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:()=>gk,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:()=>Pk,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:()=>Ak,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:()=>wk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:()=>Nk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:()=>Rk,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:()=>Ik,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:()=>yk,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:()=>Dk,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:()=>bk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:()=>Mk,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:()=>Uk,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:()=>xk,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:()=>Lk,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:()=>Bk,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:()=>Ck,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:()=>Hk,NETHOSTCONNECTIONSUBTYPEVALUES_NR:()=>Gk,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:()=>kk,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:()=>Vk,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:()=>Ok,NETHOSTCONNECTIONTYPEVALUES_CELL:()=>hk,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:()=>Tk,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:()=>vk,NETHOSTCONNECTIONTYPEVALUES_WIFI:()=>_k,NETHOSTCONNECTIONTYPEVALUES_WIRED:()=>Sk,NETTRANSPORTVALUES_INPROC:()=>pk,NETTRANSPORTVALUES_IP:()=>lk,NETTRANSPORTVALUES_IP_TCP:()=>sk,NETTRANSPORTVALUES_IP_UDP:()=>uk,NETTRANSPORTVALUES_OTHER:()=>dk,NETTRANSPORTVALUES_PIPE:()=>fk,NETTRANSPORTVALUES_UNIX:()=>ck,NetHostConnectionSubtypeValues:()=>Fk,NetHostConnectionTypeValues:()=>mk,NetTransportValues:()=>Ek,OSTYPEVALUES_AIX:()=>B3,OSTYPEVALUES_DARWIN:()=>I3,OSTYPEVALUES_DRAGONFLYBSD:()=>D3,OSTYPEVALUES_FREEBSD:()=>C3,OSTYPEVALUES_HPUX:()=>V3,OSTYPEVALUES_LINUX:()=>L3,OSTYPEVALUES_NETBSD:()=>w3,OSTYPEVALUES_OPENBSD:()=>U3,OSTYPEVALUES_SOLARIS:()=>G3,OSTYPEVALUES_WINDOWS:()=>M3,OSTYPEVALUES_Z_OS:()=>k3,OsTypeValues:()=>H3,RPCGRPCSTATUSCODEVALUES_ABORTED:()=>fH,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:()=>sH,RPCGRPCSTATUSCODEVALUES_CANCELLED:()=>rH,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:()=>SH,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:()=>iH,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:()=>cH,RPCGRPCSTATUSCODEVALUES_INTERNAL:()=>EH,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:()=>oH,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:()=>aH,RPCGRPCSTATUSCODEVALUES_OK:()=>tH,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:()=>pH,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:()=>uH,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:()=>lH,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:()=>hH,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:()=>_H,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:()=>dH,RPCGRPCSTATUSCODEVALUES_UNKNOWN:()=>nH,RpcGrpcStatusCodeValues:()=>TH,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:()=>W2,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:()=>aB,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:()=>j2,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:()=>H2,SEMATTRS_AWS_DYNAMODB_COUNT:()=>oB,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:()=>Z2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:()=>J2,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:()=>sB,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:()=>z2,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:()=>F2,SEMATTRS_AWS_DYNAMODB_LIMIT:()=>K2,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:()=>Q2,SEMATTRS_AWS_DYNAMODB_PROJECTION:()=>$2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:()=>Y2,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:()=>q2,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:()=>iB,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:()=>tB,SEMATTRS_AWS_DYNAMODB_SEGMENT:()=>rB,SEMATTRS_AWS_DYNAMODB_SELECT:()=>X2,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:()=>eB,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:()=>k2,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:()=>nB,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:()=>vV,SEMATTRS_CODE_FILEPATH:()=>O2,SEMATTRS_CODE_FUNCTION:()=>y2,SEMATTRS_CODE_LINENO:()=>g2,SEMATTRS_CODE_NAMESPACE:()=>A2,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:()=>MV,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:()=>UV,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:()=>wV,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:()=>IV,SEMATTRS_DB_CASSANDRA_KEYSPACE:()=>bV,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:()=>xV,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:()=>CV,SEMATTRS_DB_CASSANDRA_TABLE:()=>LV,SEMATTRS_DB_CONNECTION_STRING:()=>yV,SEMATTRS_DB_HBASE_NAMESPACE:()=>DV,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:()=>OV,SEMATTRS_DB_MONGODB_COLLECTION:()=>BV,SEMATTRS_DB_MSSQL_INSTANCE_NAME:()=>PV,SEMATTRS_DB_NAME:()=>gV,SEMATTRS_DB_OPERATION:()=>RV,SEMATTRS_DB_REDIS_DATABASE_INDEX:()=>VV,SEMATTRS_DB_SQL_TABLE:()=>GV,SEMATTRS_DB_STATEMENT:()=>NV,SEMATTRS_DB_SYSTEM:()=>mV,SEMATTRS_DB_USER:()=>AV,SEMATTRS_ENDUSER_ID:()=>S2,SEMATTRS_ENDUSER_ROLE:()=>h2,SEMATTRS_ENDUSER_SCOPE:()=>T2,SEMATTRS_EXCEPTION_ESCAPED:()=>YV,SEMATTRS_EXCEPTION_MESSAGE:()=>HV,SEMATTRS_EXCEPTION_STACKTRACE:()=>FV,SEMATTRS_EXCEPTION_TYPE:()=>kV,SEMATTRS_FAAS_COLDSTART:()=>QV,SEMATTRS_FAAS_CRON:()=>JV,SEMATTRS_FAAS_DOCUMENT_COLLECTION:()=>$V,SEMATTRS_FAAS_DOCUMENT_NAME:()=>zV,SEMATTRS_FAAS_DOCUMENT_OPERATION:()=>KV,SEMATTRS_FAAS_DOCUMENT_TIME:()=>WV,SEMATTRS_FAAS_EXECUTION:()=>jV,SEMATTRS_FAAS_INVOKED_NAME:()=>ZV,SEMATTRS_FAAS_INVOKED_PROVIDER:()=>e2,SEMATTRS_FAAS_INVOKED_REGION:()=>t2,SEMATTRS_FAAS_TIME:()=>XV,SEMATTRS_FAAS_TRIGGER:()=>qV,SEMATTRS_HTTP_CLIENT_IP:()=>G2,SEMATTRS_HTTP_FLAVOR:()=>L2,SEMATTRS_HTTP_HOST:()=>b2,SEMATTRS_HTTP_METHOD:()=>N2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:()=>C2,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:()=>w2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:()=>U2,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:()=>D2,SEMATTRS_HTTP_ROUTE:()=>B2,SEMATTRS_HTTP_SCHEME:()=>x2,SEMATTRS_HTTP_SERVER_NAME:()=>V2,SEMATTRS_HTTP_STATUS_CODE:()=>M2,SEMATTRS_HTTP_TARGET:()=>P2,SEMATTRS_HTTP_URL:()=>R2,SEMATTRS_HTTP_USER_AGENT:()=>I2,SEMATTRS_MESSAGE_COMPRESSED_SIZE:()=>VB,SEMATTRS_MESSAGE_ID:()=>DB,SEMATTRS_MESSAGE_TYPE:()=>UB,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:()=>BB,SEMATTRS_MESSAGING_CONSUMER_ID:()=>mB,SEMATTRS_MESSAGING_CONVERSATION_ID:()=>SB,SEMATTRS_MESSAGING_DESTINATION:()=>lB,SEMATTRS_MESSAGING_DESTINATION_KIND:()=>cB,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:()=>gB,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:()=>OB,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:()=>AB,SEMATTRS_MESSAGING_KAFKA_PARTITION:()=>NB,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:()=>RB,SEMATTRS_MESSAGING_MESSAGE_ID:()=>_B,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:()=>TB,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:()=>hB,SEMATTRS_MESSAGING_OPERATION:()=>vB,SEMATTRS_MESSAGING_PROTOCOL:()=>pB,SEMATTRS_MESSAGING_PROTOCOL_VERSION:()=>dB,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:()=>yB,SEMATTRS_MESSAGING_SYSTEM:()=>uB,SEMATTRS_MESSAGING_TEMP_DESTINATION:()=>fB,SEMATTRS_MESSAGING_URL:()=>EB,SEMATTRS_NET_HOST_CARRIER_ICC:()=>E2,SEMATTRS_NET_HOST_CARRIER_MCC:()=>p2,SEMATTRS_NET_HOST_CARRIER_MNC:()=>d2,SEMATTRS_NET_HOST_CARRIER_NAME:()=>f2,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:()=>c2,SEMATTRS_NET_HOST_CONNECTION_TYPE:()=>l2,SEMATTRS_NET_HOST_IP:()=>a2,SEMATTRS_NET_HOST_NAME:()=>u2,SEMATTRS_NET_HOST_PORT:()=>s2,SEMATTRS_NET_PEER_IP:()=>n2,SEMATTRS_NET_PEER_NAME:()=>i2,SEMATTRS_NET_PEER_PORT:()=>o2,SEMATTRS_NET_TRANSPORT:()=>r2,SEMATTRS_PEER_SERVICE:()=>_2,SEMATTRS_RPC_GRPC_STATUS_CODE:()=>MB,SEMATTRS_RPC_JSONRPC_ERROR_CODE:()=>CB,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:()=>wB,SEMATTRS_RPC_JSONRPC_REQUEST_ID:()=>IB,SEMATTRS_RPC_JSONRPC_VERSION:()=>LB,SEMATTRS_RPC_METHOD:()=>xB,SEMATTRS_RPC_SERVICE:()=>bB,SEMATTRS_RPC_SYSTEM:()=>PB,SEMATTRS_THREAD_ID:()=>v2,SEMATTRS_THREAD_NAME:()=>m2,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:()=>bH,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:()=>PH,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:()=>xH,SEMRESATTRS_AWS_ECS_TASK_ARN:()=>MH,SEMRESATTRS_AWS_ECS_TASK_FAMILY:()=>LH,SEMRESATTRS_AWS_ECS_TASK_REVISION:()=>IH,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:()=>CH,SEMRESATTRS_AWS_LOG_GROUP_ARNS:()=>UH,SEMRESATTRS_AWS_LOG_GROUP_NAMES:()=>wH,SEMRESATTRS_AWS_LOG_STREAM_ARNS:()=>VH,SEMRESATTRS_AWS_LOG_STREAM_NAMES:()=>DH,SEMRESATTRS_CLOUD_ACCOUNT_ID:()=>OH,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:()=>NH,SEMRESATTRS_CLOUD_PLATFORM:()=>RH,SEMRESATTRS_CLOUD_PROVIDER:()=>AH,SEMRESATTRS_CLOUD_REGION:()=>gH,SEMRESATTRS_CONTAINER_ID:()=>GH,SEMRESATTRS_CONTAINER_IMAGE_NAME:()=>HH,SEMRESATTRS_CONTAINER_IMAGE_TAG:()=>FH,SEMRESATTRS_CONTAINER_NAME:()=>BH,SEMRESATTRS_CONTAINER_RUNTIME:()=>kH,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:()=>YH,SEMRESATTRS_DEVICE_ID:()=>qH,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:()=>jH,SEMRESATTRS_DEVICE_MODEL_NAME:()=>$H,SEMRESATTRS_FAAS_ID:()=>WH,SEMRESATTRS_FAAS_INSTANCE:()=>XH,SEMRESATTRS_FAAS_MAX_MEMORY:()=>JH,SEMRESATTRS_FAAS_NAME:()=>KH,SEMRESATTRS_FAAS_VERSION:()=>zH,SEMRESATTRS_HOST_ARCH:()=>tF,SEMRESATTRS_HOST_ID:()=>QH,SEMRESATTRS_HOST_IMAGE_ID:()=>nF,SEMRESATTRS_HOST_IMAGE_NAME:()=>rF,SEMRESATTRS_HOST_IMAGE_VERSION:()=>oF,SEMRESATTRS_HOST_NAME:()=>ZH,SEMRESATTRS_HOST_TYPE:()=>eF,SEMRESATTRS_K8S_CLUSTER_NAME:()=>iF,SEMRESATTRS_K8S_CONTAINER_NAME:()=>fF,SEMRESATTRS_K8S_CRONJOB_NAME:()=>OF,SEMRESATTRS_K8S_CRONJOB_UID:()=>AF,SEMRESATTRS_K8S_DAEMONSET_NAME:()=>vF,SEMRESATTRS_K8S_DAEMONSET_UID:()=>TF,SEMRESATTRS_K8S_DEPLOYMENT_NAME:()=>_F,SEMRESATTRS_K8S_DEPLOYMENT_UID:()=>EF,SEMRESATTRS_K8S_JOB_NAME:()=>yF,SEMRESATTRS_K8S_JOB_UID:()=>mF,SEMRESATTRS_K8S_NAMESPACE_NAME:()=>uF,SEMRESATTRS_K8S_NODE_NAME:()=>aF,SEMRESATTRS_K8S_NODE_UID:()=>sF,SEMRESATTRS_K8S_POD_NAME:()=>cF,SEMRESATTRS_K8S_POD_UID:()=>lF,SEMRESATTRS_K8S_REPLICASET_NAME:()=>dF,SEMRESATTRS_K8S_REPLICASET_UID:()=>pF,SEMRESATTRS_K8S_STATEFULSET_NAME:()=>hF,SEMRESATTRS_K8S_STATEFULSET_UID:()=>SF,SEMRESATTRS_OS_DESCRIPTION:()=>NF,SEMRESATTRS_OS_NAME:()=>RF,SEMRESATTRS_OS_TYPE:()=>gF,SEMRESATTRS_OS_VERSION:()=>PF,SEMRESATTRS_PROCESS_COMMAND:()=>LF,SEMRESATTRS_PROCESS_COMMAND_ARGS:()=>CF,SEMRESATTRS_PROCESS_COMMAND_LINE:()=>IF,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:()=>xF,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:()=>MF,SEMRESATTRS_PROCESS_OWNER:()=>wF,SEMRESATTRS_PROCESS_PID:()=>bF,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:()=>VF,SEMRESATTRS_PROCESS_RUNTIME_NAME:()=>UF,SEMRESATTRS_PROCESS_RUNTIME_VERSION:()=>DF,SEMRESATTRS_SERVICE_INSTANCE_ID:()=>kF,SEMRESATTRS_SERVICE_NAME:()=>BF,SEMRESATTRS_SERVICE_NAMESPACE:()=>GF,SEMRESATTRS_SERVICE_VERSION:()=>HF,SEMRESATTRS_TELEMETRY_AUTO_VERSION:()=>jF,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:()=>YF,SEMRESATTRS_TELEMETRY_SDK_NAME:()=>FF,SEMRESATTRS_TELEMETRY_SDK_VERSION:()=>qF,SEMRESATTRS_WEBENGINE_DESCRIPTION:()=>WF,SEMRESATTRS_WEBENGINE_NAME:()=>$F,SEMRESATTRS_WEBENGINE_VERSION:()=>KF,SemanticAttributes:()=>GB,SemanticResourceAttributes:()=>zF,TELEMETRYSDKLANGUAGEVALUES_CPP:()=>F3,TELEMETRYSDKLANGUAGEVALUES_DOTNET:()=>Y3,TELEMETRYSDKLANGUAGEVALUES_ERLANG:()=>q3,TELEMETRYSDKLANGUAGEVALUES_GO:()=>j3,TELEMETRYSDKLANGUAGEVALUES_JAVA:()=>$3,TELEMETRYSDKLANGUAGEVALUES_NODEJS:()=>K3,TELEMETRYSDKLANGUAGEVALUES_PHP:()=>W3,TELEMETRYSDKLANGUAGEVALUES_PYTHON:()=>z3,TELEMETRYSDKLANGUAGEVALUES_RUBY:()=>X3,TELEMETRYSDKLANGUAGEVALUES_WEBJS:()=>J3,TelemetrySdkLanguageValues:()=>Q3});var co=m(()=>{"use strict";hy();YO()});var jO=h((qO,$i)=>{"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 $i<"u"&&$i.exports?$i.exports=_:t.ipaddr=_})(qO)});var rc=h(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getPeerAttributes=qt.getStatusAttributes=qt.getMethodAttributes=void 0;var Tt=(co(),Y(lo)),Z3=jO(),eY=Ll();function tY(t){let[,e,n]=t.split("/");return{[Tt.SEMATTRS_RPC_SYSTEM]:"grpc",[Tt.SEMATTRS_RPC_SERVICE]:e,[Tt.SEMATTRS_RPC_METHOD]:n}}qt.getMethodAttributes=tY;function rY(t){return{[Tt.SEMATTRS_RPC_GRPC_STATUS_CODE]:t,"rpc.grpc.status_text":eY.Status[t]}}qt.getStatusAttributes=rY;function nY(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}:Z3.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=nY});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 $O=h(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.VERSION=void 0;Ki.VERSION="0.1.15"});var oc=h(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.emitSpanEvents=jt.getSpanName=jt.tracer=void 0;var oY=(M(),Y(Pe)),KO=(co(),Y(lo)),iY=$O();jt.tracer=oY.trace.getTracer("nice-grpc-opentelemetry",iY.VERSION);function aY(t){return t.slice(1)}jt.getSpanName=aY;async function*sY(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=sY});var ac=h(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.bindAsyncGenerator=void 0;var ic=(M(),Y(Pe));function WO(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 WO(t,e[Symbol.asyncIterator]())}}}Wi.bindAsyncGenerator=WO});var XO=h(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.openTelemetryServerMiddleware=void 0;var fo=(M(),Y(Pe)),zO=(co(),Y(lo)),uY=(dE(),Y(pE)),tn=Ll(),sc=rc(),lY=nc(),zi=oc(),cY=ac();function fY(){return(t,e)=>zi.tracer.startActiveSpan((0,zi.getSpanName)(t.method.path),{kind:fo.SpanKind.SERVER},fo.propagation.extract(fo.ROOT_CONTEXT,e.metadata,lY.metadataGetter),n=>(0,cY.bindAsyncGenerator)(fo.context.active(),pY(n,t,e)))}Xi.openTelemetryServerMiddleware=fY;async function*pY(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,zi.emitSpanEvents)(e.request,t,zO.MESSAGETYPEVALUES_RECEIVED):o=e.request,e.responseStream){yield*(0,zi.emitSpanEvents)(e.next(o,n),t,zO.MESSAGETYPEVALUES_SENT);return}else return yield*e.next(o,n)}catch(o){throw o instanceof tn.ServerError?(a=o.code,s=o.details):(0,uY.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:fo.SpanStatusCode.ERROR,message:`${tn.Status[a]}: ${s}`}),t.end()}}});var ZO=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.openTelemetryClientMiddleware=void 0;var po=(M(),Y(Pe)),JO=(co(),Y(lo)),dY=(dE(),Y(pE)),$t=Ll(),QO=rc(),EY=nc(),Ji=oc(),_Y=ac();function SY(){return(t,e)=>Ji.tracer.startActiveSpan((0,Ji.getSpanName)(t.method.path),{kind:po.SpanKind.CLIENT},n=>{let i=(0,$t.Metadata)(e.metadata);return po.propagation.inject(po.context.active(),i,EY.metadataSetter),(0,_Y.bindAsyncGenerator)(po.context.active(),hY(n,t,{...e,metadata:i}))})}Qi.openTelemetryClientMiddleware=SY;async function*hY(t,e,n){let i=(0,QO.getMethodAttributes)(e.method.path);t.setAttributes(i);let a=!1,s=$t.Status.OK,o;try{let r;if(e.requestStream?r=(0,Ji.emitSpanEvents)(e.request,t,JO.MESSAGETYPEVALUES_SENT):r=e.request,e.responseStream){yield*(0,Ji.emitSpanEvents)(e.next(r,n),t,JO.MESSAGETYPEVALUES_RECEIVED),a=!0;return}else{let u=yield*e.next(r,n);return a=!0,u}}catch(r){throw a=!0,r instanceof $t.ClientError?(s=r.code,o=r.details):(0,dY.isAbortError)(r)?(s=$t.Status.CANCELLED,o="The operation was cancelled"):(s=$t.Status.UNKNOWN,o="Unknown server error occurred",t.recordException(r)),r}finally{a||(s=$t.Status.CANCELLED,o="Stream iteration was aborted by client, e.g. by breaking from the for .. of loop");let r=(0,QO.getStatusAttributes)(s);t.setAttributes(r),s!==$t.Status.OK&&t.setStatus({code:po.SpanStatusCode.ERROR,message:`${$t.Status[s]}: ${o}`}),t.end()}}});var eg=h(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.openTelemetryClientMiddleware=rn.openTelemetryServerMiddleware=void 0;var TY=XO();Object.defineProperty(rn,"openTelemetryServerMiddleware",{enumerable:!0,get:function(){return TY.openTelemetryServerMiddleware}});var vY=ZO();Object.defineProperty(rn,"openTelemetryClientMiddleware",{enumerable:!0,get:function(){return vY.openTelemetryClientMiddleware}})});var qe=h((nee,og)=>{"use strict";var cc=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)}};og.exports=t=>{if(t.length>2)throw new cc(t);function e(i={}){this.options=i}e.prototype.transform=t;function n(i){return new e(i)}return n.Format=e,n}});var ug=h((
|
13
|
-
`)!=-1,i=this._styles,a=i.length;a--;){var s=vr[i[a]];e=s.open+e.replace(s.closeRe,s.open)+s.close,n&&(e=e.replace(PY,function(o){return s.close+o+s.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 s in t[n])a=H[t[n][s]](a);return a}return H[t[n]](i)}})(e)};function IY(){var t={};return Object.keys(bg).forEach(function(e){t[e]={get:function(){return Pg([e])}}}),t}var CY=function(e,n){var i=n.split("");return i=i.map(e),i.join("")};H.trap=Eg();H.zalgo=Sg();H.maps={};H.maps.america=Tg()(H);H.maps.zebra=mg()(H);H.maps.rainbow=Ag()(H);H.maps.random=gg()(H);for(Ng in H.maps)(function(t){H[t]=function(e){return CY(H.maps[t],e)}})(Ng);var Ng;Rg(H,IY())});var pc=h((
|
14
|
-
`));return!0}Oc.exports=(...t)=>{let e=YY($g(t)),n=e();return n.Format=e.Format,n};Oc.exports.cascade=$g});var So=h((Pc,Jg)=>{"use strict";var{hasOwnProperty:ua}=Object.prototype,yr=Rc();yr.configure=Rc;yr.stringify=yr;yr.default=yr;Pc.stringify=yr;Pc.configure=Rc;Jg.exports=yr;var jY=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Kt(t){return t.length<5e3&&!jY.test(t)?`"${t}"`:JSON.stringify(t)}function gc(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 $Y=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Nc(t){return $Y.call(t)!==void 0&&t.length!==0}function Wg(t,e,n){t.length<n&&(n=t.length);let i=e===","?"":" ",a=`"0":${i}${t[0]}`;for(let s=1;s<n;s++)a+=`${e}"${s}":${i}${t[s]}`;return a}function KY(t){if(ua.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 zg(t,e){let n;if(ua.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 Xg(t,e){let n;if(ua.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 mr(t){return t===1?"1 item":`${t} items`}function WY(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function zY(t){if(ua.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 Rc(t){t={...t};let e=zY(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=KY(t),i=zg(t,"bigint"),a=zg(t,"deterministic"),s=Xg(t,"maximumDepth"),o=Xg(t,"maximumBreadth");function r(_,
|
12
|
+
`),Error.captureStackTrace(this,t)}};og.exports=t=>{if(t.length>2)throw new cc(t);function e(i={}){this.options=i}e.prototype.transform=t;function n(i){return new e(i)}return n.Format=e,n}});var ug=h((oee,sg)=>{"use strict";var ag={};sg.exports=ag;var ig={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(ig).forEach(function(t){var e=ig[t],n=ag[t]=[];n.open="\x1B["+e[0]+"m",n.close="\x1B["+e[1]+"m"})});var cg=h((iee,lg)=>{"use strict";lg.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 pg=h((aee,fg)=>{"use strict";var OY=L("os"),ut=cg(),De=process.env,nn=void 0;ut("no-color")||ut("no-colors")||ut("color=false")?nn=!1:(ut("color")||ut("colors")||ut("color=true")||ut("color=always"))&&(nn=!0);"FORCE_COLOR"in De&&(nn=De.FORCE_COLOR.length===0||parseInt(De.FORCE_COLOR,10)!==0);function gY(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function NY(t){if(nn===!1)return 0;if(ut("color=16m")||ut("color=full")||ut("color=truecolor"))return 3;if(ut("color=256"))return 2;if(t&&!t.isTTY&&nn!==!0)return 0;var e=nn?1:0;if(process.platform==="win32"){var n=OY.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 fc(t){var e=NY(t);return gY(e)}fg.exports={supportsColor:fc,stdout:fc(process.stdout),stderr:fc(process.stderr)}});var Eg=h((see,dg)=>{"use strict";dg.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(s){s=s.toLowerCase();var o=a[s]||[" "],r=Math.floor(Math.random()*o.length);typeof a[s]<"u"?i+=a[s][r]:i+=s}),i}});var Sg=h((uee,_g)=>{"use strict";_g.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 s(u){var l=Math.floor(Math.random()*u);return l}function o(u){var l=!1;return a.filter(function(c){l=c===u}),l}function r(u,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",u=u.split("");for(_ in u)if(!o(_)){switch(c=c+u[_],p={up:0,down:0,mid:0},l.size){case"mini":p.up=s(8),p.mid=s(2),p.down=s(8);break;case"maxi":p.up=s(16)+3,p.mid=s(4)+1,p.down=s(64)+3;break;default:p.up=s(8)+1,p.mid=s(6)/2,p.down=s(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][s(i[v].length)])}return c}return r(e,n)}});var Tg=h((lee,hg)=>{"use strict";hg.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 mg=h((cee,vg)=>{"use strict";vg.exports=function(t){return function(e,n,i){return n%2===0?e:t.inverse(e)}}});var Ag=h((fee,yg)=>{"use strict";yg.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 gg=h((pee,Og)=>{"use strict";Og.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 Mg=h((Eee,xg)=>{"use strict";var H={};xg.exports=H;H.themes={};var RY=L("util"),vr=H.styles=ug(),Rg=Object.defineProperties,PY=new RegExp(/[\r\n]+/g);H.supportsColor=pg().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 dee=H.stylize=function(e,n){if(!H.enabled)return e+"";var i=vr[n];return!i&&n in H?H[n](e):i.open+e+i.close},bY=/[|\\{}()[\]^$+*?.]/g,xY=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(bY,"\\$&")};function Pg(t){var e=function n(){return LY.apply(n,arguments)};return e._styles=t,e.__proto__=MY,e}var bg=function(){var t={};return vr.grey=vr.gray,Object.keys(vr).forEach(function(e){vr[e].closeRe=new RegExp(xY(vr[e].close),"g"),t[e]={get:function(){return Pg(this._styles.concat(e))}}}),t}(),MY=Rg(function(){},bg);function LY(){var t=Array.prototype.slice.call(arguments),e=t.map(function(o){return o!=null&&o.constructor===String?o:RY.inspect(o)}).join(" ");if(!H.enabled||!e)return e;for(var n=e.indexOf(`
|
13
|
+
`)!=-1,i=this._styles,a=i.length;a--;){var s=vr[i[a]];e=s.open+e.replace(s.closeRe,s.open)+s.close,n&&(e=e.replace(PY,function(o){return s.close+o+s.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 s in t[n])a=H[t[n][s]](a);return a}return H[t[n]](i)}})(e)};function IY(){var t={};return Object.keys(bg).forEach(function(e){t[e]={get:function(){return Pg([e])}}}),t}var CY=function(e,n){var i=n.split("");return i=i.map(e),i.join("")};H.trap=Eg();H.zalgo=Sg();H.maps={};H.maps.america=Tg()(H);H.maps.zebra=mg()(H);H.maps.rainbow=Ag()(H);H.maps.random=gg()(H);for(Ng in H.maps)(function(t){H[t]=function(e){return CY(H.maps[t],e)}})(Ng);var Ng;Rg(H,IY())});var pc=h((_ee,Lg)=>{"use strict";var wY=Mg();Lg.exports=wY});var Ig=h(dc=>{"use strict";dc.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9};dc.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}});var Cg=h(Ec=>{"use strict";Ec.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6};Ec.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}});var wg=h(_c=>{"use strict";_c.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7};_c.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}});var Ug=h(ta=>{"use strict";Object.defineProperty(ta,"cli",{value:Ig()});Object.defineProperty(ta,"npm",{value:Cg()});Object.defineProperty(ta,"syslog",{value:wg()})});var pe=h(_o=>{"use strict";Object.defineProperty(_o,"LEVEL",{value:Symbol.for("level")});Object.defineProperty(_o,"MESSAGE",{value:Symbol.for("message")});Object.defineProperty(_o,"SPLAT",{value:Symbol.for("splat")});Object.defineProperty(_o,"configs",{value:Ug()})});var oa=h((yee,na)=>{"use strict";var Tc=pc(),{LEVEL:Sc,MESSAGE:hc}=pe();Tc.enabled=!0;var Dg=/\s+/,ra=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]=Dg.test(e[a])?e[a].split(Dg):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 Tc[t.allColors[e]](i);for(let a=0,s=t.allColors[e].length;a<s;a++)i=Tc[t.allColors[e][a]](i);return i}transform(e,n){return n.all&&typeof e[hc]=="string"&&(e[hc]=this.colorize(e[Sc],e.level,e[hc])),(n.level||n.all||!n.message)&&(e.level=this.colorize(e[Sc],e.level)),(n.all||n.message)&&(e.message=this.colorize(e[Sc],e.level,e.message)),e}};na.exports=t=>new ra(t);na.exports.Colorizer=na.exports.Format=ra});var Bg=h((Aee,Vg)=>{"use strict";var{Colorizer:UY}=oa();Vg.exports=t=>(UY.addColors(t.colors||t),t)});var kg=h((Oee,Gg)=>{"use strict";var DY=qe();Gg.exports=DY(t=>(t.message=` ${t.message}`,t))});var Yg=h((gee,Fg)=>{"use strict";var VY=qe(),{LEVEL:Hg,MESSAGE:vc}=pe();Fg.exports=VY((t,{stack:e,cause:n})=>{if(t instanceof Error){let a=Object.assign({},t,{level:t.level,[Hg]:t[Hg]||t.level,message:t.message,[vc]:t[vc]||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[vc]=i.message,e&&(t.stack=i.stack),n&&(t.cause=i.cause),t})});var yc=h((Nee,aa)=>{"use strict";var{configs:BY,LEVEL:qg,MESSAGE:mc}=pe(),ia=class t{constructor(e={levels:BY.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,s=Math.floor(a/n.length);return`${n}${n.repeat(s)}`.slice(0,a)}static paddingForLevels(e,n=" "){let i=t.getLongestLevel(e);return Object.keys(e).reduce((a,s)=>(a[s]=t.paddingForLevel(s,n,i),a),{})}transform(e,n){return e.message=`${this.paddings[e[qg]]}${e.message}`,e[mc]&&(e[mc]=`${this.paddings[e[qg]]}${e[mc]}`),e}};aa.exports=t=>new ia(t);aa.exports.Padder=aa.exports.Format=ia});var jg=h((Ree,Ac)=>{"use strict";var{Colorizer:GY}=oa(),{Padder:kY}=yc(),{configs:HY,MESSAGE:FY}=pe(),sa=class{constructor(e={}){e.levels||(e.levels=HY.cli.levels),this.colorizer=new GY(e),this.padder=new kY(e),this.options=e}transform(e,n){return this.colorizer.transform(this.padder.transform(e,n),n),e[FY]=`${e.level}:${e.message}`,e}};Ac.exports=t=>new sa(t);Ac.exports.Format=sa});var Kg=h((Pee,Oc)=>{"use strict";var YY=qe();function $g(t){if(t.every(qY))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 qY(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}Oc.exports=(...t)=>{let e=YY($g(t)),n=e();return n.Format=e.Format,n};Oc.exports.cascade=$g});var So=h((Pc,Jg)=>{"use strict";var{hasOwnProperty:ua}=Object.prototype,yr=Rc();yr.configure=Rc;yr.stringify=yr;yr.default=yr;Pc.stringify=yr;Pc.configure=Rc;Jg.exports=yr;var jY=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Kt(t){return t.length<5e3&&!jY.test(t)?`"${t}"`:JSON.stringify(t)}function gc(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 $Y=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Nc(t){return $Y.call(t)!==void 0&&t.length!==0}function Wg(t,e,n){t.length<n&&(n=t.length);let i=e===","?"":" ",a=`"0":${i}${t[0]}`;for(let s=1;s<n;s++)a+=`${e}"${s}":${i}${t[s]}`;return a}function KY(t){if(ua.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 zg(t,e){let n;if(ua.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 Xg(t,e){let n;if(ua.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 mr(t){return t===1?"1 item":`${t} items`}function WY(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function zY(t){if(ua.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 Rc(t){t={...t};let e=zY(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=KY(t),i=zg(t,"bigint"),a=zg(t,"deterministic"),s=Xg(t,"maximumDepth"),o=Xg(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="",D=",",G=A;if(Array.isArray(O)){if(O.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(O),T!==""&&(A+=T,N+=`
|
15
15
|
${A}`,D=`,
|
16
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+=D}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+=`${D}"... ${mr(ne)} not stringified"`}return T!==""&&(N+=`
|
17
17
|
${G}`),S.pop(),`[${N}]`}let F=Object.keys(O),ae=F.length;if(ae===0)return"{}";if(s<S.length+1)return'"[Object]"';let j="",x="";T!==""&&(A+=T,D=`,
|
18
18
|
${A}`,j=" ");let B=Math.min(ae,o);a&&!Nc(O)&&(F=gc(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=D)}if(ae>o){let w=ae-o;N+=`${x}"...":${j}"${mr(w)} not stringified"`,x=D}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 u(_,
|
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 u(_,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="",D=",";if(Array.isArray(f)){if(f.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(f),T!==""&&(A+=T,N+=`
|
21
21
|
${A}`,D=`,
|
22
|
-
${A}`);let ae=Math.min(
|
23
|
-
${O}`),S.pop(),`[${N}]`}S.push(
|
24
|
-
${A}`,G=" ");let F="";for(let ae of v){let j=u(ae,
|
22
|
+
${A}`);let ae=Math.min(f.length,o),j=0;for(;j<ae-1;j++){let B=u(String(j),f[j],S,v,T,A);N+=B!==void 0?B:"null",N+=D}let x=u(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+=`${D}"... ${mr(B)} not stringified"`}return T!==""&&(N+=`
|
23
|
+
${O}`),S.pop(),`[${N}]`}S.push(f);let G="";T!==""&&(A+=T,D=`,
|
24
|
+
${A}`,G=" ");let F="";for(let ae of v){let j=u(ae,f[ae],S,v,T,A);j!==void 0&&(N+=`${F}${Kt(ae)}:${G}${j}`,F=D)}return T!==""&&F.length>1&&(N=`
|
25
25
|
${A}${N}
|
26
|
-
${O}`),S.pop(),`{${N}}`}case"number":return isFinite(
|
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(s<S.length+1)return'"[Array]"';S.push(f),T+=v;let j=`
|
27
27
|
${T}`,x=`,
|
28
|
-
${T}`,B=Math.min(
|
29
|
-
${A}`,S.pop(),`[${j}]`}let O=Object.keys(
|
30
|
-
${T}`,G="",F="",ae=Math.min(N,o);Nc(
|
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}"... ${mr(X)} not stringified"`}return j+=`
|
29
|
+
${A}`,S.pop(),`[${j}]`}let O=Object.keys(f),N=O.length;if(N===0)return"{}";if(s<S.length+1)return'"[Object]"';T+=v;let D=`,
|
30
|
+
${T}`,G="",F="",ae=Math.min(N,o);Nc(f)&&(G+=Wg(f,D,o),O=O.slice(f.length),ae-=f.length,F=D),a&&(O=gc(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=D)}if(N>o){let j=N-o;G+=`${F}"...": "${mr(j)} not stringified"`,F=D}return F!==""&&(G=`
|
31
31
|
${T}${G}
|
32
|
-
${A}`),S.pop(),`{${G}}`}case"number":return isFinite(p)?String(p):e?e(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return e?e(p):void 0}}function c(_,p,S){switch(typeof p){case"string":return Kt(p);case"object":{if(p===null)return"null";if(typeof p.toJSON=="function"){if(p=p.toJSON(_),typeof p!="object")return c(_,p,S);if(p===null)return"null"}if(S.indexOf(p)!==-1)return n;let v="";if(Array.isArray(p)){if(p.length===0)return"[]";if(s<S.length+1)return'"[Array]"';S.push(p);let D=Math.min(p.length,o),G=0;for(;G<D-1;G++){let ae=c(String(G),p[G],S);v+=ae!==void 0?ae:"null",v+=","}let F=c(String(G),p[G],S);if(v+=F!==void 0?F:"null",p.length-1>o){let ae=p.length-o-1;v+=`,"... ${mr(ae)} not stringified"`}return S.pop(),`[${v}]`}let T=Object.keys(p),A=T.length;if(A===0)return"{}";if(s<S.length+1)return'"[Object]"';let O="",N=Math.min(A,o);Nc(p)&&(v+=Wg(p,",",o),T=T.slice(p.length),N-=p.length,O=","),a&&(T=gc(T)),S.push(p);for(let D=0;D<N;D++){let G=T[D],F=c(G,p[G],S);F!==void 0&&(v+=`${O}${Kt(G)}:${F}`,O=",")}if(A>o){let D=A-o;v+=`${O}"...":"${mr(D)} not stringified"`}return S.pop(),`{${v}}`}case"number":return isFinite(p)?String(p):e?e(p):"null";case"boolean":return p===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(p);default:return e?e(p):void 0}}function f(_,p,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)),p!=null){if(typeof p=="function")return r("",{"":_},[],p,v,"");if(Array.isArray(p))return u("",_,[],WY(p),v,"")}if(v.length!==0)return l("",_,[],v,"")}return c("",_,[])}return f}});var bc=h((Pee,Qg)=>{"use strict";var XY=qe(),{MESSAGE:JY}=pe(),QY=So();function ZY(t,e){return typeof e=="bigint"?e.toString():e}Qg.exports=XY((t,e)=>{let n=QY.configure(e);return t[JY]=n(t,e.replacer||ZY,e.space),t})});var eN=h((bee,Zg)=>{"use strict";var e5=qe();Zg.exports=e5((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var rN=h((xee,tN)=>{"use strict";var t5=qe(),{MESSAGE:r5}=pe(),n5=So();tN.exports=t5(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[r5]=n5(e),t})});var oN=h((Mee,nN)=>{"use strict";var o5=qe();function i5(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 a5(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}nN.exports=o5((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?i5(t,i,n):e.fillWith?a5(t,e.fillWith,n):t})});var aN=h((Lee,iN)=>{"use strict";var nn=1e3,on=nn*60,an=on*60,Ar=an*24,s5=Ar*7,u5=Ar*365.25;iN.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return l5(t);if(n==="number"&&isFinite(t))return e.long?f5(t):c5(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function l5(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*u5;case"weeks":case"week":case"w":return n*s5;case"days":case"day":case"d":return n*Ar;case"hours":case"hour":case"hrs":case"hr":case"h":return n*an;case"minutes":case"minute":case"mins":case"min":case"m":return n*on;case"seconds":case"second":case"secs":case"sec":case"s":return n*nn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function c5(t){var e=Math.abs(t);return e>=Ar?Math.round(t/Ar)+"d":e>=an?Math.round(t/an)+"h":e>=on?Math.round(t/on)+"m":e>=nn?Math.round(t/nn)+"s":t+"ms"}function f5(t){var e=Math.abs(t);return e>=Ar?la(t,e,Ar,"day"):e>=an?la(t,e,an,"hour"):e>=on?la(t,e,on,"minute"):e>=nn?la(t,e,nn,"second"):t+" ms"}function la(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var uN=h((ho,sN)=>{"use strict";var p5=qe(),d5=aN();sN.exports=p5(t=>{let e=+new Date;return ho.diff=e-(ho.prevTime||e),ho.prevTime=e,t.ms=`+${d5(ho.diff)}`,t})});var fN=h((Iee,cN)=>{"use strict";var E5=L("util").inspect,_5=qe(),{LEVEL:S5,MESSAGE:lN,SPLAT:h5}=pe();cN.exports=_5((t,e={})=>{let n=Object.assign({},t);return delete n[S5],delete n[lN],delete n[h5],t[lN]=E5(n,!1,e.depth||null,e.colorize),t})});var pN=h((Cee,fa)=>{"use strict";var{MESSAGE:T5}=pe(),ca=class{constructor(e){this.template=e}transform(e){return e[T5]=this.template(e),e}};fa.exports=t=>new ca(t);fa.exports.Printf=fa.exports.Format=ca});var _N=h((wee,EN)=>{"use strict";var v5=qe(),{MESSAGE:dN}=pe(),m5=So();EN.exports=v5(t=>{let e=m5(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[dN]=`${t.level}:${n} ${t.message} ${e}`:t[dN]=`${t.level}:${n} ${t.message}`,t})});var TN=h((Uee,hN)=>{"use strict";var y5=L("util"),{SPLAT:SN}=pe(),A5=/%[scdjifoO%]/g,O5=/%%/g,xc=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[SN]||e.splat||[],s=i.match(O5),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 f=0;f<c;f++)Object.assign(e,l[f]);return e.message=y5.format(i,...a),e}transform(e){let n=e.message,i=e[SN]||e.splat;if(!i||!i.length)return e;let a=n&&n.match&&n.match(A5);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}};hN.exports=t=>new xc(t)});var UN={};Je(UN,{assign:()=>Xt,default:()=>L5,defaultI18n:()=>Mc,format:()=>CN,parse:()=>wN,setGlobalDateI18n:()=>LN,setGlobalDateMasks:()=>IN});function bN(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 s=a[i];for(var o in s)t[o]=s[o]}return t}function wN(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=da[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(PN,function(D,G){return o.push(mN(G)),"@@@"}),u={},l={};r=mN(r).replace(RN,function(D){var G=x5[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 f=Xt(Xt({},pa),n),_=1;_<c.length;_++){var p=s[_-1],S=p[0],v=p[2],T=v?v(c[_],f):+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 RN,zt,Wt,g5,N5,To,PN,vN,xN,MN,R5,P5,Mc,pa,LN,mN,je,b5,yN,AN,ON,gN,NN,x5,da,IN,CN,M5,L5,DN=m(()=>{"use strict";RN=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,zt="\\d\\d?",Wt="\\d\\d",g5="\\d{3}",N5="\\d{4}",To="[^\\s]+",PN=/\[([^]*?)\]/gm;vN=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}};xN=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],MN=["January","February","March","April","May","June","July","August","September","October","November","December"],R5=bN(MN,3),P5=bN(xN,3),Mc={dayNamesShort:P5,dayNames:xN,monthNamesShort:R5,monthNames:MN,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},pa=Xt({},Mc),LN=function(t){return pa=Xt(pa,t)},mN=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},b5={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)}},yN=function(t){return+t-1},AN=[null,zt],ON=[null,To],gN=["isPm",To,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],NN=["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}],x5={D:["day",zt],DD:["day",Wt],Do:["day",zt+To,function(t){return parseInt(t,10)}],M:["month",zt,yN],MM:["month",Wt,yN],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",N5],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",Wt,function(t){return+t*10}],SSS:["millisecond",g5],d:AN,dd:AN,ddd:ON,dddd:ON,MMM:["month",To,vN("monthNamesShort")],MMMM:["month",To,vN("monthNames")],a:gN,A:gN,ZZ:NN,Z:NN},da={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"},IN=function(t){return Xt(da,t)},CN=function(t,e,n){if(e===void 0&&(e=da.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=da[e]||e;var i=[];e=e.replace(PN,function(s,o){return i.push(o),"@@@"});var a=Xt(Xt({},pa),n);return e=e.replace(RN,function(s){return b5[s](t,a)}),e.replace(/@@@/g,function(){return i.shift()})};M5={format:CN,parse:wN,defaultI18n:Mc,setGlobalDateI18n:LN,setGlobalDateMasks:IN},L5=M5});var BN=h((Dee,VN)=>{"use strict";var I5=(DN(),Y(UN)),C5=qe();VN.exports=C5((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():I5.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var kN=h((Vee,GN)=>{"use strict";var Lc=pc(),w5=qe(),{MESSAGE:Ic}=pe();GN.exports=w5((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 U5=Cc.format=qe();Cc.levels=Bg();function ye(t,e){Object.defineProperty(U5,t,{get(){return e()},configurable:!0})}ye("align",function(){return kg()});ye("errors",function(){return Yg()});ye("cli",function(){return jg()});ye("combine",function(){return Kg()});ye("colorize",function(){return oa()});ye("json",function(){return bc()});ye("label",function(){return eN()});ye("logstash",function(){return rN()});ye("metadata",function(){return oN()});ye("ms",function(){return uN()});ye("padLevels",function(){return yc()});ye("prettyPrint",function(){return fN()});ye("printf",function(){return pN()});ye("simple",function(){return _N()});ye("splat",function(){return TN()});ye("timestamp",function(){return BN()});ye("uncolorize",function(){return kN()})});var Uc=h(Ea=>{"use strict";var{format:HN}=L("util");Ea.warn={deprecated(t){return()=>{throw new Error(HN("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([HN("{ %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]=Ea.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=Ea.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var FN=h((kee,D5)=>{D5.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 qN=h((Hee,YN)=>{"use strict";YN.exports=L("util").deprecate});var Dc=h((Fee,jN)=>{"use strict";jN.exports=L("stream")});var Bc=h((Yee,KN)=>{"use strict";function V5(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(_a,n):(n._writableState.errorEmitted=!0,process.nextTick($N,n,s)):process.nextTick($N,n,s):e?(process.nextTick(_a,n),e(s)):process.nextTick(_a,n)}),this)}function $N(t,e){Vc(t,e),_a(t)}function _a(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function B5(){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 G5(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:V5,undestroy:B5,errorOrDestroy:G5}});var Jt=h((qee,XN)=>{"use strict";var zN={};function Qe(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,zN[t]=a}function WN(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 k5(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function H5(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function F5(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"&&k5(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(H5(t," argument"))a=`The ${t} ${i} ${WN(e,"type")}`;else{let s=F5(t,".")?"property":"argument";a=`The "${t}" ${s} ${i} ${WN(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");XN.exports.codes=zN});var Gc=h((jee,JN)=>{"use strict";var Y5=Jt().codes.ERR_INVALID_OPT_VALUE;function q5(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function j5(t,e,n,i){var a=q5(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?n:"highWaterMark";throw new Y5(s,a)}return Math.floor(a)}return t.objectMode?16:16*1024}JN.exports={getHighWaterMark:j5}});var QN=h(($ee,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 sn=h((Kee,Fc)=>{"use strict";try{if(Hc=L("util"),typeof Hc.inherits!="function")throw"";Fc.exports=Hc.inherits}catch{Fc.exports=QN()}var Hc});var oR=h((Wee,nR)=>{"use strict";function ZN(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 eR(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ZN(Object(n),!0).forEach(function(i){$5(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ZN(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function $5(t,e,n){return e=rR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tR(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,rR(i.key),i)}}function W5(t,e,n){return e&&tR(t.prototype,e),n&&tR(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function rR(t){var e=z5(t,"string");return typeof e=="symbol"?e:String(e)}function z5(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 X5=L("buffer"),Sa=X5.Buffer,J5=L("util"),Yc=J5.inspect,Q5=Yc&&Yc.custom||"inspect";function Z5(t,e,n){Sa.prototype.copy.call(t,e,n)}nR.exports=function(){function t(){K5(this,t),this.head=null,this.tail=null,this.length=0}return W5(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 Sa.alloc(0);for(var i=Sa.allocUnsafe(n>>>0),a=this.head,s=0;a;)Z5(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=Sa.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:Q5,value:function(n,i){return Yc(this,eR(eR({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var sR=h((qc,aR)=>{"use strict";var ha=L("buffer"),vt=ha.Buffer;function iR(t,e){for(var n in t)e[n]=t[n]}vt.from&&vt.alloc&&vt.allocUnsafe&&vt.allocUnsafeSlow?aR.exports=ha:(iR(ha,qc),qc.Buffer=Or);function Or(t,e,n){return vt(t,e,n)}Or.prototype=Object.create(vt.prototype);iR(vt,Or);Or.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return vt(t,e,n)};Or.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};Or.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return vt(t)};Or.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ha.SlowBuffer(t)}});var Kc=h(lR=>{"use strict";var $c=sR().Buffer,uR=$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 eq(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 tq(t){var e=eq(t);if(typeof e!="string"&&($c.isEncoding===uR||!uR(t)))throw new Error("Unknown encoding: "+t);return e||t}lR.StringDecoder=vo;function vo(t){this.encoding=tq(t);var e;switch(this.encoding){case"utf16le":this.text=sq,this.end=uq,e=4;break;case"utf8":this.fillLast=oq,e=4;break;case"base64":this.text=lq,this.end=cq,e=3;break;default:this.write=fq,this.end=pq;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$c.allocUnsafe(e)}vo.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||""};vo.prototype.end=aq;vo.prototype.text=iq;vo.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 rq(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 nq(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 oq(t){var e=this.lastTotal-this.lastNeed,n=nq(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 iq(t,e){var n=rq(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 aq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function sq(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 uq(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 lq(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 cq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function fq(t){return t.toString(this.encoding)}function pq(t){return t&&t.length?this.write(t):""}});var Ta=h((Xee,pR)=>{"use strict";var cR=Jt().codes.ERR_STREAM_PREMATURE_CLOSE;function dq(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 Eq(){}function _q(t){return t.setHeader&&typeof t.abort=="function"}function fR(t,e,n){if(typeof e=="function")return fR(t,null,e);e||(e={}),n=dq(n||Eq);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)},f=function(){var S;if(i&&!u)return(!t._readableState||!t._readableState.ended)&&(S=new cR),n.call(t,S);if(a&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new cR),n.call(t,S)},_=function(){t.req.on("finish",r)};return _q(t)?(t.on("complete",r),t.on("abort",f),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",f),function(){t.removeListener("complete",r),t.removeListener("abort",f),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",f)}}pR.exports=fR});var ER=h((Jee,dR)=>{"use strict";var va;function Qt(t,e,n){return e=Sq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sq(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 Tq=Ta(),Zt=Symbol("lastResolve"),gr=Symbol("lastReject"),mo=Symbol("error"),ma=Symbol("ended"),Nr=Symbol("lastPromise"),Wc=Symbol("handlePromise"),Rr=Symbol("stream");function er(t,e){return{value:t,done:e}}function vq(t){var e=t[Zt];if(e!==null){var n=t[Rr].read();n!==null&&(t[Nr]=null,t[Zt]=null,t[gr]=null,e(er(n,!1)))}}function mq(t){process.nextTick(vq,t)}function yq(t,e){return function(n,i){t.then(function(){if(e[ma]){n(er(void 0,!0));return}e[Wc](n,i)},i)}}var Aq=Object.getPrototypeOf(function(){}),Oq=Object.setPrototypeOf((va={get stream(){return this[Rr]},next:function(){var e=this,n=this[mo];if(n!==null)return Promise.reject(n);if(this[ma])return Promise.resolve(er(void 0,!0));if(this[Rr].destroyed)return new Promise(function(o,r){process.nextTick(function(){e[mo]?r(e[mo]):o(er(void 0,!0))})});var i=this[Nr],a;if(i)a=new Promise(yq(i,this));else{var s=this[Rr].read();if(s!==null)return Promise.resolve(er(s,!1));a=new Promise(this[Wc])}return this[Nr]=a,a}},Qt(va,Symbol.asyncIterator,function(){return this}),Qt(va,"return",function(){var e=this;return new Promise(function(n,i){e[Rr].destroy(null,function(a){if(a){i(a);return}n(er(void 0,!0))})})}),va),Aq),gq=function(e){var n,i=Object.create(Oq,(n={},Qt(n,Rr,{value:e,writable:!0}),Qt(n,Zt,{value:null,writable:!0}),Qt(n,gr,{value:null,writable:!0}),Qt(n,mo,{value:null,writable:!0}),Qt(n,ma,{value:e._readableState.endEmitted,writable:!0}),Qt(n,Wc,{value:function(s,o){var r=i[Rr].read();r?(i[Nr]=null,i[Zt]=null,i[gr]=null,s(er(r,!1))):(i[Zt]=s,i[gr]=o)},writable:!0}),n));return i[Nr]=null,Tq(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[gr];s!==null&&(i[Nr]=null,i[Zt]=null,i[gr]=null,s(a)),i[mo]=a;return}var o=i[Zt];o!==null&&(i[Nr]=null,i[Zt]=null,i[gr]=null,o(er(void 0,!0))),i[ma]=!0}),e.on("readable",mq.bind(null,i)),i};dR.exports=gq});var TR=h((Qee,hR)=>{"use strict";function _R(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 Nq(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var s=t.apply(e,n);function o(u){_R(s,i,a,o,r,"next",u)}function r(u){_R(s,i,a,o,r,"throw",u)}o(void 0)})}}function SR(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 Rq(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?SR(Object(n),!0).forEach(function(i){Pq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SR(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Pq(t,e,n){return e=bq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bq(t){var e=xq(t,"string");return typeof e=="symbol"?e:String(e)}function xq(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 Mq=Jt().codes.ERR_INVALID_ARG_TYPE;function Lq(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 Mq("iterable",["Iterable"],e);var a=new t(Rq({objectMode:!0},n)),s=!1;a._read=function(){s||(s=!0,o())};function o(){return r.apply(this,arguments)}function r(){return r=Nq(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(f){a.destroy(f)}}),r.apply(this,arguments)}return a}hR.exports=Lq});var of=h((ete,bR)=>{"use strict";bR.exports=$;var un;$.ReadableState=AR;var Zee=L("events").EventEmitter,yR=function(e,n){return e.listeners(n).length},Ao=Dc(),ya=L("buffer").Buffer,Iq=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Cq(t){return ya.from(t)}function wq(t){return ya.isBuffer(t)||t instanceof Iq}var zc=L("util"),k;zc&&zc.debuglog?k=zc.debuglog("stream"):k=function(){};var Uq=oR(),rf=Bc(),Dq=Gc(),Vq=Dq.getHighWaterMark,Aa=Jt().codes,Bq=Aa.ERR_INVALID_ARG_TYPE,Gq=Aa.ERR_STREAM_PUSH_AFTER_EOF,kq=Aa.ERR_METHOD_NOT_IMPLEMENTED,Hq=Aa.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ln,Xc,Jc;sn()($,Ao);var yo=rf.errorOrDestroy,Qc=["error","close","destroy","pause","resume"];function Fq(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 AR(t,e,n){un=un||Pr(),t=t||{},typeof n!="boolean"&&(n=e instanceof un),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Vq(this,t,"readableHighWaterMark",n),this.buffer=new Uq,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&&(ln||(ln=Kc().StringDecoder),this.decoder=new ln(t.encoding),this.encoding=t.encoding)}function $(t){if(un=un||Pr(),!(this instanceof $))return new $(t);var e=this instanceof un;this._readableState=new AR(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ao.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=ya.from(t,e),e=""),i=!0),OR(this,t,e,!1,i)};$.prototype.unshift=function(t){return OR(this,t,null,!0,!1)};function OR(t,e,n,i,a){k("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,jq(t,s);else{var o;if(a||(o=Yq(s,e)),o)yo(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==ya.prototype&&(e=Cq(e)),i)s.endEmitted?yo(t,new Hq):Zc(t,s,e,!0);else if(s.ended)yo(t,new Gq);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&&Oa(t)),tf(t,e)}function Yq(t,e){var n;return!wq(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new Bq("chunk",["string","Buffer","Uint8Array"],e)),n}$.prototype.isPaused=function(){return this._readableState.flowing===!1};$.prototype.setEncoding=function(t){ln||(ln=Kc().StringDecoder);var e=new ln(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 vR=1073741824;function qq(t){return t>=vR?t=vR:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function mR(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=qq(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):Oa(this),null;if(t=mR(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=mR(n,e)));var a;return t>0?a=RR(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 jq(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?Oa(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,gR(t)))}}function Oa(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(gR,t))}function gR(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($q,t,e))}function $q(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){yo(this,new kq("_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=Kq(n);t.on("drain",u);var l=!1;function c(){k("cleanup"),t.removeListener("close",p),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",f),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u()}n.on("data",f);function f(T){k("ondata");var A=t.write(T);k("dest.write",A),A===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&PR(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",_),yR(t,"error")===0&&yo(t,T)}Fq(t,"error",_);function p(){t.removeListener("finish",S),v()}t.once("close",p);function S(){k("onfinish"),t.removeListener("close",p),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 Kq(t){return function(){var n=t._readableState;k("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&yR(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=PR(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=Ao.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?Oa(this):i.reading||process.nextTick(Wq,this)),n};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var n=Ao.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(NR,this),n};$.prototype.removeAllListeners=function(t){var e=Ao.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(NR,this),e};function NR(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 Wq(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,zq(this,t)),t.paused=!1,this};function zq(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Xq,t,e))}function Xq(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=ER()),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=RR;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function RR(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(Jq,e,t))}function Jq(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=TR()),Jc($,t,e)});function PR(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}});var Pr=h((tte,MR)=>{"use strict";var Qq=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};MR.exports=mt;var xR=of(),sf=Ra();sn()(mt,xR);for(af=Qq(sf.prototype),ga=0;ga<af.length;ga++)Na=af[ga],mt.prototype[Na]||(mt.prototype[Na]=sf.prototype[Na]);var af,Na,ga;function mt(t){if(!(this instanceof mt))return new mt(t);xR.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",Zq)))}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 Zq(){this._writableState.ended||process.nextTick(ej,this)}function ej(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 Ra=h((rte,DR)=>{"use strict";DR.exports=ue;function IR(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Pj(e,t)}}var cn;ue.WritableState=go;var tj={deprecate:qN()},CR=Dc(),ba=L("buffer").Buffer,rj=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function nj(t){return ba.from(t)}function oj(t){return ba.isBuffer(t)||t instanceof rj}var lf=Bc(),ij=Gc(),aj=ij.getHighWaterMark,tr=Jt().codes,sj=tr.ERR_INVALID_ARG_TYPE,uj=tr.ERR_METHOD_NOT_IMPLEMENTED,lj=tr.ERR_MULTIPLE_CALLBACK,cj=tr.ERR_STREAM_CANNOT_PIPE,fj=tr.ERR_STREAM_DESTROYED,pj=tr.ERR_STREAM_NULL_VALUES,dj=tr.ERR_STREAM_WRITE_AFTER_END,Ej=tr.ERR_UNKNOWN_ENCODING,fn=lf.errorOrDestroy;sn()(ue,CR);function _j(){}function go(t,e,n){cn=cn||Pr(),t=t||{},typeof n!="boolean"&&(n=e instanceof cn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=aj(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){Aj(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 IR(this)}go.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(go.prototype,"buffer",{get:tj.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Pa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pa=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(e){return Pa.call(this,e)?!0:this!==ue?!1:e&&e._writableState instanceof go}})):Pa=function(e){return e instanceof this};function ue(t){cn=cn||Pr();var e=this instanceof cn;if(!e&&!Pa.call(ue,this))return new ue(t);this._writableState=new go(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)),CR.call(this)}ue.prototype.pipe=function(){fn(this,new cj)};function Sj(t,e){var n=new dj;fn(t,n),process.nextTick(e,n)}function hj(t,e,n,i){var a;return n===null?a=new pj:typeof n!="string"&&!e.objectMode&&(a=new sj("chunk",["string","Buffer"],n)),a?(fn(t,a),process.nextTick(i,a),!1):!0}ue.prototype.write=function(t,e,n){var i=this._writableState,a=!1,s=!i.objectMode&&oj(t);return s&&!ba.isBuffer(t)&&(t=nj(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=_j),i.ending?Sj(this,n):(s||hj(this,i,t,n))&&(i.pendingcb++,a=vj(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&&wR(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 Ej(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Tj(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ba.from(e,n)),e}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function vj(t,e,n,i,a,s){if(!n){var o=Tj(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 fj("write")):n?t._writev(a,e.onwrite):t._write(a,s,e.onwrite),e.sync=!1}function mj(t,e,n,i,a){--e.pendingcb,n?(process.nextTick(a,i),process.nextTick(Oo,t,e),t._writableState.errorEmitted=!0,fn(t,i)):(a(i),t._writableState.errorEmitted=!0,fn(t,i),Oo(t,e))}function yj(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Aj(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(typeof a!="function")throw new lj;if(yj(n),e)mj(t,n,i,e,a);else{var s=UR(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&wR(t,n),i?process.nextTick(LR,t,n,s,a):LR(t,n,s,a)}}function LR(t,e,n,i){n||Oj(t,e),e.pendingcb--,i(),Oo(t,e)}function Oj(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function wR(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 IR(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,f=e.objectMode?1:u.length;if(uf(t,e,!1,f,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 uj("_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||Rj(this,i,n),this};Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function UR(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function gj(t,e){t._final(function(n){e.pendingcb--,n&&fn(t,n),e.prefinished=!0,t.emit("prefinish"),Oo(t,e)})}function Nj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(gj,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Oo(t,e){var n=UR(e);if(n&&(Nj(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 Rj(t,e,n){e.ending=!0,Oo(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function Pj(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((nte,GR)=>{"use strict";var bj=L("util"),VR=Ra(),{LEVEL:BR}=pe(),No=GR.exports=function(e={}){VR.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())})};bj.inherits(No,VR);No.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[BR]]){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)};No.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)};No.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[BR]])&&(this.handleExceptions||n.exception!==!0))};No.prototype._nop=function(){}});var pf=h((ote,HR)=>{"use strict";var xj=L("util"),{LEVEL:ff}=pe(),kR=cf(),Ro=HR.exports=function(e={}){if(kR.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))};xj.inherits(Ro,kR);Ro.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)};Ro.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)};Ro.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
|
-
`))};Ro.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)}});var pn=h((ite,df)=>{"use strict";df.exports=cf();df.exports.LegacyTransportStream=pf()});var qR=h((ste,YR)=>{"use strict";var Mj=L("os"),{LEVEL:FR,MESSAGE:dn}=pe(),Lj=pn();YR.exports=class extends Lj{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:Mj.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[FR]]){console._stderr?console._stderr.write(`${e[dn]}${this.eol}`):console.error(e[dn]),n&&n();return}else if(this.consoleWarnLevels[e[FR]]){console._stderr?console._stderr.write(`${e[dn]}${this.eol}`):console.warn(e[dn]),n&&n();return}console._stdout?console._stdout.write(`${e[dn]}${this.eol}`):console.log(e[dn]),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 Ma=h((xa,jR)=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.default=Ij;function Ij(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}jR.exports=xa.default});var KR=h((La,$R)=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};$R.exports=La.default});var XR=h(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.fallback=WR;rr.wrap=zR;var Cj=rr.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,wj=rr.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Uj=rr.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function WR(t){setTimeout(t,0)}function zR(t){return(e,...n)=>t(()=>e(...n))}var Po;Cj?Po=queueMicrotask:wj?Po=setImmediate:Uj?Po=process.nextTick:Po=WR;rr.default=zR(Po)});var tP=h((Ia,eP)=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=Hj;var Dj=KR(),Vj=ZR(Dj),Bj=XR(),Gj=ZR(Bj),kj=br();function ZR(t){return t&&t.__esModule?t:{default:t}}function Hj(t){return(0,kj.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return JR(i,n)}:(0,Vj.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return JR(i,n);n(null,i)})}function JR(t,e){return t.then(n=>{QR(e,null,n)},n=>{QR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function QR(t,e,n){try{t(e,n)}catch(i){(0,Gj.default)(a=>{throw a},i)}}eP.exports=Ia.default});var br=h(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isAsyncIterable=It.isAsyncGenerator=It.isAsync=void 0;var Fj=tP(),Yj=qj(Fj);function qj(t){return t&&t.__esModule?t:{default:t}}function rP(t){return t[Symbol.toStringTag]==="AsyncFunction"}function jj(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function $j(t){return typeof t[Symbol.asyncIterator]=="function"}function Kj(t){if(typeof t!="function")throw new Error("expected a function");return rP(t)?(0,Yj.default)(t):t}It.default=Kj;It.isAsync=rP;It.isAsyncGenerator=jj;It.isAsyncIterable=$j});var En=h((Ca,nP)=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=Wj;function Wj(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}nP.exports=Ca.default});var iP=h((wa,oP)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var zj=Ma(),Xj=Ef(zj),Jj=br(),Qj=Ef(Jj),Zj=En(),e4=Ef(Zj);function Ef(t){return t&&t.__esModule?t:{default:t}}wa.default=(0,e4.default)((t,e,n)=>{var i=(0,Xj.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);oP.exports=wa.default});var _f=h((Ua,aP)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=t4;function t4(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}aP.exports=Ua.default});var uP=h((Da,sP)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};sP.exports=Da.default});var fP=h((Va,cP)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=l4;var r4=Ma(),n4=lP(r4),o4=uP(),i4=lP(o4);function lP(t){return t&&t.__esModule?t:{default:t}}function a4(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function s4(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function u4(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 l4(t){if((0,n4.default)(t))return a4(t);var e=(0,i4.default)(t);return e?s4(e):u4(t)}cP.exports=Va.default});var Sf=h((Ba,pP)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=c4;function c4(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}pP.exports=Ba.default});var ka=h((Ga,dP)=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var f4={};Ga.default=f4;dP.exports=Ga.default});var _P=h((Ha,EP)=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=_4;var p4=ka(),d4=E4(p4);function E4(t){return t&&t.__esModule?t:{default:t}}function _4(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:p})=>{if(!(s||a)){if(o=!1,p){a=!0,r<=0&&i(null);return}r++,n(_,u,c),u++,l()}}).catch(f))}function c(_,p){if(r-=1,!s){if(_)return f(_);if(_===!1){a=!0,s=!0;return}if(p===d4.default||a&&r<=0)return a=!0,i(null);l()}}function f(_){s||(o=!1,a=!0,i(_))}l()}EP.exports=Ha.default});var vP=h((Fa,TP)=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var S4=_f(),h4=bo(S4),T4=fP(),v4=bo(T4),m4=Sf(),y4=bo(m4),SP=br(),A4=_P(),hP=bo(A4),O4=ka(),g4=bo(O4);function bo(t){return t&&t.__esModule?t:{default:t}}Fa.default=t=>(e,n,i)=>{if(i=(0,h4.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,SP.isAsyncGenerator)(e))return(0,hP.default)(e,t,n,i);if((0,SP.isAsyncIterable)(e))return(0,hP.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,v4.default)(e),s=!1,o=!1,r=0,u=!1;function l(f,_){if(!o)if(r-=1,f)s=!0,i(f);else if(f===!1)s=!0,o=!0;else{if(_===g4.default||s&&r<=0)return s=!0,i(null);u||c()}}function c(){for(u=!0;r<t&&!s;){var f=a();if(f===null){s=!0,r<=0&&i(null);return}r+=1,n(f.value,f.key,(0,y4.default)(l))}u=!1}c()};TP.exports=Fa.default});var Tf=h((Ya,mP)=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var N4=vP(),R4=hf(N4),P4=br(),b4=hf(P4),x4=En(),M4=hf(x4);function hf(t){return t&&t.__esModule?t:{default:t}}function L4(t,e,n,i){return(0,R4.default)(e)(t,(0,b4.default)(n),i)}Ya.default=(0,M4.default)(L4,4);mP.exports=Ya.default});var OP=h((qa,AP)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var I4=Tf(),C4=yP(I4),w4=En(),U4=yP(w4);function yP(t){return t&&t.__esModule?t:{default:t}}function D4(t,e,n){return(0,C4.default)(t,1,e,n)}qa.default=(0,U4.default)(D4,3);AP.exports=qa.default});var RP=h((ja,NP)=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.default=H4;var V4=iP(),B4=gP(V4),G4=OP(),k4=gP(G4);function gP(t){return t&&t.__esModule?t:{default:t}}function H4(t,e){return(0,B4.default)(k4.default,t,e)}NP.exports=ja.default});var vf=h((cte,bP)=>{"use strict";bP.exports=Ct;var $a=Jt().codes,F4=$a.ERR_METHOD_NOT_IMPLEMENTED,Y4=$a.ERR_MULTIPLE_CALLBACK,q4=$a.ERR_TRANSFORM_ALREADY_TRANSFORMING,j4=$a.ERR_TRANSFORM_WITH_LENGTH_0,Ka=Pr();sn()(Ct,Ka);function $4(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new Y4);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 Ct(t){if(!(this instanceof Ct))return new Ct(t);Ka.call(this,t),this._transformState={afterTransform:$4.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){PP(t,e,n)}):PP(this,null,null)}Ct.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ka.prototype.push.call(this,t,e)};Ct.prototype._transform=function(t,e,n){n(new F4("_transform()"))};Ct.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)}};Ct.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};Ct.prototype._destroy=function(t,e){Ka.prototype._destroy.call(this,t,function(n){e(n)})};function PP(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new j4;if(t._transformState.transforming)throw new q4;return t.push(null)}});var LP=h((fte,MP)=>{"use strict";MP.exports=xo;var xP=vf();sn()(xo,xP);function xo(t){if(!(this instanceof xo))return new xo(t);xP.call(this,t)}xo.prototype._transform=function(t,e,n){n(null,t)}});var DP=h((pte,UP)=>{"use strict";var mf;function W4(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var wP=Jt().codes,z4=wP.ERR_MISSING_ARGS,X4=wP.ERR_STREAM_DESTROYED;function IP(t){if(t)throw t}function J4(t){return t.setHeader&&typeof t.abort=="function"}function Q4(t,e,n,i){i=W4(i);var a=!1;t.on("close",function(){a=!0}),mf===void 0&&(mf=Ta()),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,J4(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new X4("pipe"))}}}function CP(t){t()}function Z4(t,e){return t.pipe(e)}function e6(t){return!t.length||typeof t[t.length-1]!="function"?IP:t.pop()}function t6(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e6(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new z4("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(CP),!u&&(s.forEach(CP),i(a))})});return e.reduce(Z4)}UP.exports=t6});var xr=h((Ze,Lo)=>{"use strict";var Mo=L("stream");process.env.READABLE_STREAM==="disable"&&Mo?(Lo.exports=Mo.Readable,Object.assign(Lo.exports,Mo),Lo.exports.Stream=Mo):(Ze=Lo.exports=of(),Ze.Stream=Mo||Ze,Ze.Readable=Ze,Ze.Writable=Ra(),Ze.Duplex=Pr(),Ze.Transform=vf(),Ze.PassThrough=LP(),Ze.finished=Ta(),Ze.pipeline=DP())});var Pf=h((dte,BP)=>{"use strict";var _n=[],Io=[],yf=function(){};function Of(t){return~_n.indexOf(t)?!1:(_n.push(t),!0)}function gf(t){yf=t}function r6(t){for(var e=[],n=0;n<_n.length;n++){if(_n[n].async){e.push(_n[n]);continue}if(_n[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~Io.indexOf(t)?!1:(Io.push(t),!0)}function Af(){yf.apply(yf,arguments)}function VP(t){for(var e=0;e<Io.length;e++)t=Io[e].apply(Io[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 n6(t){return t.enabled=!1,t.modify=Nf,t.set=gf,t.use=Of,Rf(function(){return!1},t)}function o6(t){function e(){var n=Array.prototype.slice.call(arguments,0);return Af.call(Af,t,VP(n,t)),!0}return t.enabled=!0,t.modify=Nf,t.set=gf,t.use=Of,Rf(e,t)}BP.exports=function(e){return e.introduce=Rf,e.enabled=r6,e.process=VP,e.modify=Nf,e.write=Af,e.nope=n6,e.yep=o6,e.set=gf,e.use=Of,e}});var kP=h((Ete,GP)=>{"use strict";var i6=Pf(),a6=i6(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)});GP.exports=a6});var FP=h((_te,HP)=>{"use strict";HP.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 qP=h((Ste,YP)=>{"use strict";YP.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((hte,$P)=>{"use strict";var s6=qP(),u6=Array.prototype.concat,l6=Array.prototype.slice,jP=$P.exports=function(e){for(var n=[],i=0,a=e.length;i<a;i++){var s=e[i];s6(s)?n=u6.call(n,l6.call(s)):n.push(s)}return n};jP.wrap=function(t){return function(){return t(jP(arguments))}}});var JP=h((Tte,XP)=>{"use strict";var Co=FP(),wo=KP(),WP=Object.hasOwnProperty,zP=Object.create(null);for(Wa in Co)WP.call(Co,Wa)&&(zP[Co[Wa]]=Wa);var Wa,ze=XP.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]:WP.call(Co,r[1])?(o=Co[r[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=nr(o[u],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,s=nr(parseFloat(n[2]),0,100),o=nr(parseFloat(n[3]),0,100),r=nr(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=nr(parseFloat(n[2]),0,100),o=nr(parseFloat(n[3]),0,100),r=nr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.to.hex=function(){var t=wo(arguments);return"#"+za(t[0])+za(t[1])+za(t[2])+(t[3]<1?za(Math.round(t[3]*255)):"")};ze.to.rgb=function(){var t=wo(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=wo(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=wo(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=wo(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 zP[t.slice(0,3)]};function nr(t,e,n){return Math.min(Math.max(e,t),n)}function za(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var ZP=h((vte,QP)=>{"use strict";QP.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((mte,nb)=>{"use strict";var Mr=ZP(),rb={};for(Xa in Mr)Mr.hasOwnProperty(Xa)&&(rb[Mr[Xa]]=Xa);var Xa,b=nb.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(Ve in b)if(b.hasOwnProperty(Ve)){if(!("channels"in b[Ve]))throw new Error("missing channels property: "+Ve);if(!("labels"in b[Ve]))throw new Error("missing channel labels property: "+Ve);if(b[Ve].labels.length!==b[Ve].channels)throw new Error("channel and label counts mismatch: "+Ve);eb=b[Ve].channels,tb=b[Ve].labels,delete b[Ve].channels,delete b[Ve].labels,Object.defineProperty(b[Ve],"channels",{value:eb}),Object.defineProperty(b[Ve],"labels",{value:tb})}var eb,tb,Ve;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),f=function(_){return(l-_)/6/c+1/2};return c===0?a=s=0:(s=c/l,e=f(o),n=f(r),i=f(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 c6(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=rb[t];if(e)return e;var n=1/0,i;for(var a in Mr)if(Mr.hasOwnProperty(a)){var s=Mr[a],o=c6(t,s);o<n&&(n=o,i=a)}return i};b.keyword.rgb=function(t){return Mr[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,f;switch(s){default:case 6:case 0:l=o,c=u,f=n;break;case 1:l=u,c=o,f=n;break;case 2:l=n,c=o,f=u;break;case 3:l=n,c=u,f=o;break;case 4:l=u,c=n,f=o;break;case 5:l=o,c=n,f=u;break}return[l*255,c*255,f*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 ib=h((yte,ob)=>{"use strict";var Ja=bf();function f6(){for(var t={},e=Object.keys(Ja),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function p6(t){var e=f6(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(Ja[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 d6(t,e){return function(n){return e(t(n))}}function E6(t,e){for(var n=[e[t].parent,t],i=Ja[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=d6(Ja[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}ob.exports=function(t){for(var e=p6(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]=E6(o,e))}return n}});var sb=h((Ate,ab)=>{"use strict";var xf=bf(),_6=ib(),Sn={},S6=Object.keys(xf);function h6(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 T6(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}S6.forEach(function(t){Sn[t]={},Object.defineProperty(Sn[t],"channels",{value:xf[t].channels}),Object.defineProperty(Sn[t],"labels",{value:xf[t].labels});var e=_6(t),n=Object.keys(e);n.forEach(function(i){var a=e[i];Sn[t][i]=T6(a),Sn[t][i].raw=h6(a)})});ab.exports=Sn});var cb=h((Ote,lb)=>{"use strict";var Uo=JP(),Xe=sb(),If=[].slice,ub=["keyword","gray","hex"],Mf={};Object.keys(Xe).forEach(function(t){Mf[If.call(Xe[t].labels).sort().join("")]=t});var Qa={};function Ae(t,e){if(!(this instanceof Ae))return new Ae(t,e);if(e&&e in ub&&(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=Uo.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(Qa[this.model])for(i=Xe[this.model].channels,n=0;n<i;n++){var c=Qa[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 Uo.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 Uo.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 Uo.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(m6(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):Uo.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(ub.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(y6(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 v6(t,e){return Number(t.toFixed(e))}function m6(t){return function(e){return v6(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(Qa[i]||(Qa[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 y6(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}lb.exports=Ae});var pb=h((gte,fb)=>{"use strict";fb.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 Sb=h((Nte,_b)=>{"use strict";var db=cb(),Eb=pb();_b.exports=function(e,n){var i=e.split(n||":"),a=Eb(i[0]);if(!i.length)return a;for(var s=0,o=i.length-1;s<o;s++)a=db(a).mix(db(Eb(i[s+1]))).saturate(1).hex();return a}});var Tb=h((Rte,hb)=>{"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,s=n/255*5,o=i/255*5;return this.ansi(a,s,o)};lt.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};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()};hb.exports=lt});var mb=h((Pte,vb)=>{"use strict";var A6=Sb(),O6=Tb();vb.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?O6(i+":",A6(i)):i+":";return e[0]=a+" "+e[0],e}});var Ab=h((bte,yb)=>{"use strict";yb.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 gb=h((xte,Ob)=>{"use strict";var g6=Ab();Ob.exports=function(e){return function(i){try{return g6(i,e())}catch{}return!1}}});var Rb=h((Mte,Nb)=>{"use strict";var N6=gb();Nb.exports=N6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var bb=h((Lte,Pb)=>{"use strict";Pb.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Mb=h((Ite,xb)=>{"use strict";var R6=Pf(),P6=L("tty").isatty(1),Za=R6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:P6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});Za.modify(mb());Za.use(Rb());Za.set(bb());xb.exports=Za});var Do=h((Cte,Cf)=>{"use strict";process.env.NODE_ENV==="production"?Cf.exports=kP():Cf.exports=Mb()});var Ib=h((wte,Lb)=>{"use strict";var wf=L("fs"),{StringDecoder:b6}=L("string_decoder"),{Stream:x6}=xr();function M6(){}Lb.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new b6("utf8"),a=new x6,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,M6);return}return wf.read(l,n,0,n.length,o,(f,_)=>{if(f){e?e(f):a.emit("error",f),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 p=i.write(n.slice(0,_));e||a.emit("data",p),p=(s+p).split(/\n+/);let S=p.length-1,v=0;for(;v<S;v++)(t.start==null||r>t.start)&&(e?e(null,p[v]):a.emit("line",p[v])),r++;return s=p[S],o+=_,c()})})()}),e?a.destroy:a}});var Db=h((Dte,Ub)=>{"use strict";var $e=L("fs"),he=L("path"),Cb=RP(),L6=L("zlib"),{MESSAGE:I6}=pe(),{Stream:C6,PassThrough:wb}=xr(),w6=pn(),ct=Do()("winston:file"),U6=L("os"),D6=Ib();Ub.exports=class extends w6{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 wb,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:U6.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[I6]}${this.eol}`,a=Buffer.byteLength(i);function s(){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,s.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=f(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 p=_.length-1,S=0;for(;S<p;S++)(!e.start||o>=e.start)&&u(_[S]),o++;a=_[p]}),r.on("close",()=>{a&&u(a,!0),e.order==="desc"&&(s=s.reverse()),n&&n(null,s)});function u(_,p){try{let S=JSON.parse(_);c(S)&&l(S)}catch(S){p||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((p,S)=>(p[S]=_[S],p),{})),e.order==="desc"&&s.length>=e.rows&&s.shift(),s.push(_)}function c(_){if(!_||typeof _!="object")return;let p=new Date(_.timestamp);if(!(e.from&&p<e.from||e.until&&p>e.until||e.level&&e.level!==_.level))return!0}function f(_){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 C6,a={file:n,start:e.start};return i.destroy=D6(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);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,s)=>{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(!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);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 wb,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(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)),Cb(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,f=>{if(!f)return u(null);l=`${n}${r}${e}${s}`,$e.rename(c,he.join(this.dirname,l),u)})}.bind(this,o));Cb(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=L6.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 Bb=h((Bte,Vb)=>{"use strict";var V6=L("http"),B6=L("https"),{Stream:G6}=xr(),k6=pn(),{configure:H6}=So();Vb.exports=class extends k6{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 G6;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?B6:V6).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=H6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var Uf=h((Gte,Gb)=>{"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";Gb.exports=yt});var Hb=h((Hte,kb)=>{"use strict";var F6=Uf(),{MESSAGE:Y6}=pe(),q6=L("os"),j6=pn();kb.exports=class extends j6{constructor(e={}){if(super(e),!e.stream||!F6(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:q6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[Y6]}${this.eol}`),n&&n()}}});var Fb=h(Vo=>{"use strict";Object.defineProperty(Vo,"Console",{configurable:!0,enumerable:!0,get(){return qR()}});Object.defineProperty(Vo,"File",{configurable:!0,enumerable:!0,get(){return Db()}});Object.defineProperty(Vo,"Http",{configurable:!0,enumerable:!0,get(){return Bb()}});Object.defineProperty(Vo,"Stream",{configurable:!0,enumerable:!0,get(){return Hb()}})});var ts=h(Bo=>{"use strict";var es=wc(),{configs:Df}=pe();Bo.cli=es.levels(Df.cli);Bo.npm=es.levels(Df.npm);Bo.syslog=es.levels(Df.syslog);Bo.addColors=es.levels});var qb=h((rs,Yb)=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var $6=Ma(),K6=Lr($6),W6=ka(),z6=Lr(W6),X6=Tf(),J6=Lr(X6),Q6=_f(),Z6=Lr(Q6),e$=Sf(),t$=Lr(e$),r$=br(),n$=Lr(r$),o$=En(),i$=Lr(o$);function Lr(t){return t&&t.__esModule?t:{default:t}}function a$(t,e,n){n=(0,Z6.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===z6.default)&&n(null))}for(;i<s;i++)e(t[i],i,(0,t$.default)(r))}function s$(t,e,n){return(0,J6.default)(t,1/0,e,n)}function u$(t,e,n){var i=(0,K6.default)(t)?a$:s$;return i(t,(0,n$.default)(e),n)}rs.default=(0,i$.default)(u$,3);Yb.exports=rs.default});var $b=h((ns,jb)=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.default=l$;function l$(t){return(e,n,i)=>t(e,i)}jb.exports=ns.default});var as=h((is,Kb)=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});var c$=qb(),f$=os(c$),p$=$b(),d$=os(p$),E$=br(),_$=os(E$),S$=En(),h$=os(S$);function os(t){return t&&t.__esModule?t:{default:t}}function T$(t,e,n){return(0,f$.default)(t,(0,d$.default)((0,_$.default)(e)),n)}is.default=(0,h$.default)(T$,3);Kb.exports=is.default});var zb=h((qte,Wb)=>{"use strict";var v$=Object.prototype.toString;Wb.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=v$.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Vf=h((jte,Xb)=>{"use strict";var m$=zb();Xb.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=m$(e),a}});var Bf=h(ko=>{"use strict";ko.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||ko.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};ko.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 s=null,o=null,r=null,u=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];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:Zb.loadavg(),uptime:Zb.uptime()}}getTrace(e){return(e?e0.parse(e):e0.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 R$(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,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function o(){Gf("doExit",a),Gf("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);g$(i,(r,u)=>{let l=N$(u),c=r.transport||r;function
|
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:o0.loadavg(),uptime:o0.uptime()}}getTrace(e){return(e?i0.parse(e):i0.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 M$(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,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function o(){Hf("doExit",a),Hf("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);b$(i,(r,u)=>{let l=x$(u),c=r.transport||r;function
|
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(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+=`,"... ${mr(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+=Wg(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}${Kt(G)}:${F}`,O=",")}if(A>o){let D=A-o;v+=`${O}"...":"${mr(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("",_,[],WY(f),v,"")}if(v.length!==0)return l("",_,[],v,"")}return c("",_,[])}return p}});var bc=h((bee,Qg)=>{"use strict";var XY=qe(),{MESSAGE:JY}=pe(),QY=So();function ZY(t,e){return typeof e=="bigint"?e.toString():e}Qg.exports=XY((t,e)=>{let n=QY.configure(e);return t[JY]=n(t,e.replacer||ZY,e.space),t})});var eN=h((xee,Zg)=>{"use strict";var e5=qe();Zg.exports=e5((t,e)=>e.message?(t.message=`[${e.label}] ${t.message}`,t):(t.label=e.label,t))});var rN=h((Mee,tN)=>{"use strict";var t5=qe(),{MESSAGE:r5}=pe(),n5=So();tN.exports=t5(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[r5]=n5(e),t})});var oN=h((Lee,nN)=>{"use strict";var o5=qe();function i5(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 a5(t,e,n){return t[n]=e.reduce((i,a)=>(i[a]=t[a],delete t[a],i),{}),t}nN.exports=o5((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?i5(t,i,n):e.fillWith?a5(t,e.fillWith,n):t})});var aN=h((Iee,iN)=>{"use strict";var on=1e3,an=on*60,sn=an*60,Ar=sn*24,s5=Ar*7,u5=Ar*365.25;iN.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return l5(t);if(n==="number"&&isFinite(t))return e.long?f5(t):c5(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function l5(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*u5;case"weeks":case"week":case"w":return n*s5;case"days":case"day":case"d":return n*Ar;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 c5(t){var e=Math.abs(t);return e>=Ar?Math.round(t/Ar)+"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 f5(t){var e=Math.abs(t);return e>=Ar?la(t,e,Ar,"day"):e>=sn?la(t,e,sn,"hour"):e>=an?la(t,e,an,"minute"):e>=on?la(t,e,on,"second"):t+" ms"}function la(t,e,n,i){var a=e>=n*1.5;return Math.round(t/n)+" "+i+(a?"s":"")}});var uN=h((ho,sN)=>{"use strict";var p5=qe(),d5=aN();sN.exports=p5(t=>{let e=+new Date;return ho.diff=e-(ho.prevTime||e),ho.prevTime=e,t.ms=`+${d5(ho.diff)}`,t})});var fN=h((Cee,cN)=>{"use strict";var E5=L("util").inspect,_5=qe(),{LEVEL:S5,MESSAGE:lN,SPLAT:h5}=pe();cN.exports=_5((t,e={})=>{let n=Object.assign({},t);return delete n[S5],delete n[lN],delete n[h5],t[lN]=E5(n,!1,e.depth||null,e.colorize),t})});var pN=h((wee,fa)=>{"use strict";var{MESSAGE:T5}=pe(),ca=class{constructor(e){this.template=e}transform(e){return e[T5]=this.template(e),e}};fa.exports=t=>new ca(t);fa.exports.Printf=fa.exports.Format=ca});var _N=h((Uee,EN)=>{"use strict";var v5=qe(),{MESSAGE:dN}=pe(),m5=So();EN.exports=v5(t=>{let e=m5(Object.assign({},t,{level:void 0,message:void 0,splat:void 0})),n=t.padding&&t.padding[t.level]||"";return e!=="{}"?t[dN]=`${t.level}:${n} ${t.message} ${e}`:t[dN]=`${t.level}:${n} ${t.message}`,t})});var TN=h((Dee,hN)=>{"use strict";var y5=L("util"),{SPLAT:SN}=pe(),A5=/%[scdjifoO%]/g,O5=/%%/g,xc=class{constructor(e){this.options=e}_splat(e,n){let i=e.message,a=e[SN]||e.splat||[],s=i.match(O5),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=y5.format(i,...a),e}transform(e){let n=e.message,i=e[SN]||e.splat;if(!i||!i.length)return e;let a=n&&n.match&&n.match(A5);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}};hN.exports=t=>new xc(t)});var UN={};Je(UN,{assign:()=>Xt,default:()=>L5,defaultI18n:()=>Mc,format:()=>CN,parse:()=>wN,setGlobalDateI18n:()=>LN,setGlobalDateMasks:()=>IN});function bN(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 s=a[i];for(var o in s)t[o]=s[o]}return t}function wN(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=da[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(PN,function(D,G){return o.push(mN(G)),"@@@"}),u={},l={};r=mN(r).replace(RN,function(D){var G=x5[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=Xt(Xt({},pa),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 RN,zt,Wt,g5,N5,To,PN,vN,xN,MN,R5,P5,Mc,pa,LN,mN,je,b5,yN,AN,ON,gN,NN,x5,da,IN,CN,M5,L5,DN=m(()=>{"use strict";RN=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,zt="\\d\\d?",Wt="\\d\\d",g5="\\d{3}",N5="\\d{4}",To="[^\\s]+",PN=/\[([^]*?)\]/gm;vN=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}};xN=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],MN=["January","February","March","April","May","June","July","August","September","October","November","December"],R5=bN(MN,3),P5=bN(xN,3),Mc={dayNamesShort:P5,dayNames:xN,monthNamesShort:R5,monthNames:MN,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},pa=Xt({},Mc),LN=function(t){return pa=Xt(pa,t)},mN=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},b5={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)}},yN=function(t){return+t-1},AN=[null,zt],ON=[null,To],gN=["isPm",To,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],NN=["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}],x5={D:["day",zt],DD:["day",Wt],Do:["day",zt+To,function(t){return parseInt(t,10)}],M:["month",zt,yN],MM:["month",Wt,yN],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",N5],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",Wt,function(t){return+t*10}],SSS:["millisecond",g5],d:AN,dd:AN,ddd:ON,dddd:ON,MMM:["month",To,vN("monthNamesShort")],MMMM:["month",To,vN("monthNames")],a:gN,A:gN,ZZ:NN,Z:NN},da={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"},IN=function(t){return Xt(da,t)},CN=function(t,e,n){if(e===void 0&&(e=da.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=da[e]||e;var i=[];e=e.replace(PN,function(s,o){return i.push(o),"@@@"});var a=Xt(Xt({},pa),n);return e=e.replace(RN,function(s){return b5[s](t,a)}),e.replace(/@@@/g,function(){return i.shift()})};M5={format:CN,parse:wN,defaultI18n:Mc,setGlobalDateI18n:LN,setGlobalDateMasks:IN},L5=M5});var BN=h((Vee,VN)=>{"use strict";var I5=(DN(),Y(UN)),C5=qe();VN.exports=C5((t,e={})=>(e.format&&(t.timestamp=typeof e.format=="function"?e.format():I5.format(new Date,e.format)),t.timestamp||(t.timestamp=new Date().toISOString()),e.alias&&(t[e.alias]=t.timestamp),t))});var kN=h((Bee,GN)=>{"use strict";var Lc=pc(),w5=qe(),{MESSAGE:Ic}=pe();GN.exports=w5((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 U5=Cc.format=qe();Cc.levels=Bg();function ye(t,e){Object.defineProperty(U5,t,{get(){return e()},configurable:!0})}ye("align",function(){return kg()});ye("errors",function(){return Yg()});ye("cli",function(){return jg()});ye("combine",function(){return Kg()});ye("colorize",function(){return oa()});ye("json",function(){return bc()});ye("label",function(){return eN()});ye("logstash",function(){return rN()});ye("metadata",function(){return oN()});ye("ms",function(){return uN()});ye("padLevels",function(){return yc()});ye("prettyPrint",function(){return fN()});ye("printf",function(){return pN()});ye("simple",function(){return _N()});ye("splat",function(){return TN()});ye("timestamp",function(){return BN()});ye("uncolorize",function(){return kN()})});var Uc=h(Ea=>{"use strict";var{format:HN}=L("util");Ea.warn={deprecated(t){return()=>{throw new Error(HN("{ %s } was removed in winston@3.0.0.",t))}},useFormat(t){return()=>{throw new Error([HN("{ %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]=Ea.warn[e](i)})},forProperties(t,e,n){n.forEach(i=>{let a=Ea.warn[e](i);Object.defineProperty(t,i,{get:a,set:a})})}}});var FN=h((Hee,D5)=>{D5.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 qN=h((Fee,YN)=>{"use strict";YN.exports=L("util").deprecate});var Dc=h((Yee,jN)=>{"use strict";jN.exports=L("stream")});var Bc=h((qee,KN)=>{"use strict";function V5(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(_a,n):(n._writableState.errorEmitted=!0,process.nextTick($N,n,s)):process.nextTick($N,n,s):e?(process.nextTick(_a,n),e(s)):process.nextTick(_a,n)}),this)}function $N(t,e){Vc(t,e),_a(t)}function _a(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function B5(){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 G5(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:V5,undestroy:B5,errorOrDestroy:G5}});var Jt=h((jee,XN)=>{"use strict";var zN={};function Qe(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,zN[t]=a}function WN(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 k5(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function H5(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function F5(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"&&k5(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be";let a;if(H5(t," argument"))a=`The ${t} ${i} ${WN(e,"type")}`;else{let s=F5(t,".")?"property":"argument";a=`The "${t}" ${s} ${i} ${WN(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");XN.exports.codes=zN});var Gc=h(($ee,JN)=>{"use strict";var Y5=Jt().codes.ERR_INVALID_OPT_VALUE;function q5(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function j5(t,e,n,i){var a=q5(e,i,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=i?n:"highWaterMark";throw new Y5(s,a)}return Math.floor(a)}return t.objectMode?16:16*1024}JN.exports={getHighWaterMark:j5}});var QN=h((Kee,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((Wee,Fc)=>{"use strict";try{if(Hc=L("util"),typeof Hc.inherits!="function")throw"";Fc.exports=Hc.inherits}catch{Fc.exports=QN()}var Hc});var oR=h((zee,nR)=>{"use strict";function ZN(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 eR(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ZN(Object(n),!0).forEach(function(i){$5(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ZN(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function $5(t,e,n){return e=rR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tR(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,rR(i.key),i)}}function W5(t,e,n){return e&&tR(t.prototype,e),n&&tR(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function rR(t){var e=z5(t,"string");return typeof e=="symbol"?e:String(e)}function z5(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 X5=L("buffer"),Sa=X5.Buffer,J5=L("util"),Yc=J5.inspect,Q5=Yc&&Yc.custom||"inspect";function Z5(t,e,n){Sa.prototype.copy.call(t,e,n)}nR.exports=function(){function t(){K5(this,t),this.head=null,this.tail=null,this.length=0}return W5(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 Sa.alloc(0);for(var i=Sa.allocUnsafe(n>>>0),a=this.head,s=0;a;)Z5(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=Sa.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:Q5,value:function(n,i){return Yc(this,eR(eR({},i),{},{depth:0,customInspect:!1}))}}]),t}()});var sR=h((qc,aR)=>{"use strict";var ha=L("buffer"),vt=ha.Buffer;function iR(t,e){for(var n in t)e[n]=t[n]}vt.from&&vt.alloc&&vt.allocUnsafe&&vt.allocUnsafeSlow?aR.exports=ha:(iR(ha,qc),qc.Buffer=Or);function Or(t,e,n){return vt(t,e,n)}Or.prototype=Object.create(vt.prototype);iR(vt,Or);Or.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return vt(t,e,n)};Or.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};Or.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return vt(t)};Or.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return ha.SlowBuffer(t)}});var Kc=h(lR=>{"use strict";var $c=sR().Buffer,uR=$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 eq(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 tq(t){var e=eq(t);if(typeof e!="string"&&($c.isEncoding===uR||!uR(t)))throw new Error("Unknown encoding: "+t);return e||t}lR.StringDecoder=vo;function vo(t){this.encoding=tq(t);var e;switch(this.encoding){case"utf16le":this.text=sq,this.end=uq,e=4;break;case"utf8":this.fillLast=oq,e=4;break;case"base64":this.text=lq,this.end=cq,e=3;break;default:this.write=fq,this.end=pq;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$c.allocUnsafe(e)}vo.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||""};vo.prototype.end=aq;vo.prototype.text=iq;vo.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 rq(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 nq(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 oq(t){var e=this.lastTotal-this.lastNeed,n=nq(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 iq(t,e){var n=rq(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 aq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\uFFFD":e}function sq(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 uq(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 lq(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 cq(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function fq(t){return t.toString(this.encoding)}function pq(t){return t&&t.length?this.write(t):""}});var Ta=h((Jee,pR)=>{"use strict";var cR=Jt().codes.ERR_STREAM_PREMATURE_CLOSE;function dq(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 Eq(){}function _q(t){return t.setHeader&&typeof t.abort=="function"}function fR(t,e,n){if(typeof e=="function")return fR(t,null,e);e||(e={}),n=dq(n||Eq);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 cR),n.call(t,S);if(a&&!o)return(!t._writableState||!t._writableState.ended)&&(S=new cR),n.call(t,S)},_=function(){t.req.on("finish",r)};return _q(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)}}pR.exports=fR});var ER=h((Qee,dR)=>{"use strict";var va;function Qt(t,e,n){return e=Sq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sq(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 Tq=Ta(),Zt=Symbol("lastResolve"),gr=Symbol("lastReject"),mo=Symbol("error"),ma=Symbol("ended"),Nr=Symbol("lastPromise"),Wc=Symbol("handlePromise"),Rr=Symbol("stream");function er(t,e){return{value:t,done:e}}function vq(t){var e=t[Zt];if(e!==null){var n=t[Rr].read();n!==null&&(t[Nr]=null,t[Zt]=null,t[gr]=null,e(er(n,!1)))}}function mq(t){process.nextTick(vq,t)}function yq(t,e){return function(n,i){t.then(function(){if(e[ma]){n(er(void 0,!0));return}e[Wc](n,i)},i)}}var Aq=Object.getPrototypeOf(function(){}),Oq=Object.setPrototypeOf((va={get stream(){return this[Rr]},next:function(){var e=this,n=this[mo];if(n!==null)return Promise.reject(n);if(this[ma])return Promise.resolve(er(void 0,!0));if(this[Rr].destroyed)return new Promise(function(o,r){process.nextTick(function(){e[mo]?r(e[mo]):o(er(void 0,!0))})});var i=this[Nr],a;if(i)a=new Promise(yq(i,this));else{var s=this[Rr].read();if(s!==null)return Promise.resolve(er(s,!1));a=new Promise(this[Wc])}return this[Nr]=a,a}},Qt(va,Symbol.asyncIterator,function(){return this}),Qt(va,"return",function(){var e=this;return new Promise(function(n,i){e[Rr].destroy(null,function(a){if(a){i(a);return}n(er(void 0,!0))})})}),va),Aq),gq=function(e){var n,i=Object.create(Oq,(n={},Qt(n,Rr,{value:e,writable:!0}),Qt(n,Zt,{value:null,writable:!0}),Qt(n,gr,{value:null,writable:!0}),Qt(n,mo,{value:null,writable:!0}),Qt(n,ma,{value:e._readableState.endEmitted,writable:!0}),Qt(n,Wc,{value:function(s,o){var r=i[Rr].read();r?(i[Nr]=null,i[Zt]=null,i[gr]=null,s(er(r,!1))):(i[Zt]=s,i[gr]=o)},writable:!0}),n));return i[Nr]=null,Tq(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=i[gr];s!==null&&(i[Nr]=null,i[Zt]=null,i[gr]=null,s(a)),i[mo]=a;return}var o=i[Zt];o!==null&&(i[Nr]=null,i[Zt]=null,i[gr]=null,o(er(void 0,!0))),i[ma]=!0}),e.on("readable",mq.bind(null,i)),i};dR.exports=gq});var TR=h((Zee,hR)=>{"use strict";function _R(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 Nq(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var s=t.apply(e,n);function o(u){_R(s,i,a,o,r,"next",u)}function r(u){_R(s,i,a,o,r,"throw",u)}o(void 0)})}}function SR(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 Rq(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?SR(Object(n),!0).forEach(function(i){Pq(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SR(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Pq(t,e,n){return e=bq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bq(t){var e=xq(t,"string");return typeof e=="symbol"?e:String(e)}function xq(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 Mq=Jt().codes.ERR_INVALID_ARG_TYPE;function Lq(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 Mq("iterable",["Iterable"],e);var a=new t(Rq({objectMode:!0},n)),s=!1;a._read=function(){s||(s=!0,o())};function o(){return r.apply(this,arguments)}function r(){return r=Nq(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}hR.exports=Lq});var of=h((tte,bR)=>{"use strict";bR.exports=$;var ln;$.ReadableState=AR;var ete=L("events").EventEmitter,yR=function(e,n){return e.listeners(n).length},Ao=Dc(),ya=L("buffer").Buffer,Iq=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Cq(t){return ya.from(t)}function wq(t){return ya.isBuffer(t)||t instanceof Iq}var zc=L("util"),k;zc&&zc.debuglog?k=zc.debuglog("stream"):k=function(){};var Uq=oR(),rf=Bc(),Dq=Gc(),Vq=Dq.getHighWaterMark,Aa=Jt().codes,Bq=Aa.ERR_INVALID_ARG_TYPE,Gq=Aa.ERR_STREAM_PUSH_AFTER_EOF,kq=Aa.ERR_METHOD_NOT_IMPLEMENTED,Hq=Aa.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,cn,Xc,Jc;un()($,Ao);var yo=rf.errorOrDestroy,Qc=["error","close","destroy","pause","resume"];function Fq(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 AR(t,e,n){ln=ln||Pr(),t=t||{},typeof n!="boolean"&&(n=e instanceof ln),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=Vq(this,t,"readableHighWaterMark",n),this.buffer=new Uq,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||Pr(),!(this instanceof $))return new $(t);var e=this instanceof ln;this._readableState=new AR(t,this,e),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ao.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=ya.from(t,e),e=""),i=!0),OR(this,t,e,!1,i)};$.prototype.unshift=function(t){return OR(this,t,null,!0,!1)};function OR(t,e,n,i,a){k("readableAddChunk",e);var s=t._readableState;if(e===null)s.reading=!1,jq(t,s);else{var o;if(a||(o=Yq(s,e)),o)yo(t,o);else if(s.objectMode||e&&e.length>0)if(typeof e!="string"&&!s.objectMode&&Object.getPrototypeOf(e)!==ya.prototype&&(e=Cq(e)),i)s.endEmitted?yo(t,new Hq):Zc(t,s,e,!0);else if(s.ended)yo(t,new Gq);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&&Oa(t)),tf(t,e)}function Yq(t,e){var n;return!wq(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new Bq("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 vR=1073741824;function qq(t){return t>=vR?t=vR:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function mR(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=qq(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):Oa(this),null;if(t=mR(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=mR(n,e)));var a;return t>0?a=RR(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 jq(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?Oa(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,gR(t)))}}function Oa(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(gR,t))}function gR(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($q,t,e))}function $q(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){yo(this,new kq("_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=Kq(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&&PR(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",_),yR(t,"error")===0&&yo(t,T)}Fq(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 Kq(t){return function(){var n=t._readableState;k("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,n.awaitDrain===0&&yR(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=PR(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=Ao.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?Oa(this):i.reading||process.nextTick(Wq,this)),n};$.prototype.addListener=$.prototype.on;$.prototype.removeListener=function(t,e){var n=Ao.prototype.removeListener.call(this,t,e);return t==="readable"&&process.nextTick(NR,this),n};$.prototype.removeAllListeners=function(t){var e=Ao.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&process.nextTick(NR,this),e};function NR(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 Wq(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,zq(this,t)),t.paused=!1,this};function zq(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(Xq,t,e))}function Xq(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=ER()),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=RR;Object.defineProperty($.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function RR(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(Jq,e,t))}function Jq(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=TR()),Jc($,t,e)});function PR(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}});var Pr=h((rte,MR)=>{"use strict";var Qq=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};MR.exports=mt;var xR=of(),sf=Ra();un()(mt,xR);for(af=Qq(sf.prototype),ga=0;ga<af.length;ga++)Na=af[ga],mt.prototype[Na]||(mt.prototype[Na]=sf.prototype[Na]);var af,Na,ga;function mt(t){if(!(this instanceof mt))return new mt(t);xR.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",Zq)))}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 Zq(){this._writableState.ended||process.nextTick(ej,this)}function ej(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 Ra=h((nte,DR)=>{"use strict";DR.exports=ue;function IR(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Pj(e,t)}}var fn;ue.WritableState=go;var tj={deprecate:qN()},CR=Dc(),ba=L("buffer").Buffer,rj=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function nj(t){return ba.from(t)}function oj(t){return ba.isBuffer(t)||t instanceof rj}var lf=Bc(),ij=Gc(),aj=ij.getHighWaterMark,tr=Jt().codes,sj=tr.ERR_INVALID_ARG_TYPE,uj=tr.ERR_METHOD_NOT_IMPLEMENTED,lj=tr.ERR_MULTIPLE_CALLBACK,cj=tr.ERR_STREAM_CANNOT_PIPE,fj=tr.ERR_STREAM_DESTROYED,pj=tr.ERR_STREAM_NULL_VALUES,dj=tr.ERR_STREAM_WRITE_AFTER_END,Ej=tr.ERR_UNKNOWN_ENCODING,pn=lf.errorOrDestroy;un()(ue,CR);function _j(){}function go(t,e,n){fn=fn||Pr(),t=t||{},typeof n!="boolean"&&(n=e instanceof fn),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=aj(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){Aj(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 IR(this)}go.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(go.prototype,"buffer",{get:tj.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Pa;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pa=Function.prototype[Symbol.hasInstance],Object.defineProperty(ue,Symbol.hasInstance,{value:function(e){return Pa.call(this,e)?!0:this!==ue?!1:e&&e._writableState instanceof go}})):Pa=function(e){return e instanceof this};function ue(t){fn=fn||Pr();var e=this instanceof fn;if(!e&&!Pa.call(ue,this))return new ue(t);this._writableState=new go(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)),CR.call(this)}ue.prototype.pipe=function(){pn(this,new cj)};function Sj(t,e){var n=new dj;pn(t,n),process.nextTick(e,n)}function hj(t,e,n,i){var a;return n===null?a=new pj:typeof n!="string"&&!e.objectMode&&(a=new sj("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&&oj(t);return s&&!ba.isBuffer(t)&&(t=nj(t)),typeof e=="function"&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),typeof n!="function"&&(n=_j),i.ending?Sj(this,n):(s||hj(this,i,t,n))&&(i.pendingcb++,a=vj(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&&wR(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 Ej(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ue.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Tj(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=ba.from(e,n)),e}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function vj(t,e,n,i,a,s){if(!n){var o=Tj(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 fj("write")):n?t._writev(a,e.onwrite):t._write(a,s,e.onwrite),e.sync=!1}function mj(t,e,n,i,a){--e.pendingcb,n?(process.nextTick(a,i),process.nextTick(Oo,t,e),t._writableState.errorEmitted=!0,pn(t,i)):(a(i),t._writableState.errorEmitted=!0,pn(t,i),Oo(t,e))}function yj(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Aj(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(typeof a!="function")throw new lj;if(yj(n),e)mj(t,n,i,e,a);else{var s=UR(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&wR(t,n),i?process.nextTick(LR,t,n,s,a):LR(t,n,s,a)}}function LR(t,e,n,i){n||Oj(t,e),e.pendingcb--,i(),Oo(t,e)}function Oj(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function wR(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 IR(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 uj("_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||Rj(this,i,n),this};Object.defineProperty(ue.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function UR(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function gj(t,e){t._final(function(n){e.pendingcb--,n&&pn(t,n),e.prefinished=!0,t.emit("prefinish"),Oo(t,e)})}function Nj(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.pendingcb++,e.finalCalled=!0,process.nextTick(gj,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Oo(t,e){var n=UR(e);if(n&&(Nj(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 Rj(t,e,n){e.ending=!0,Oo(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function Pj(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((ote,GR)=>{"use strict";var bj=L("util"),VR=Ra(),{LEVEL:BR}=pe(),No=GR.exports=function(e={}){VR.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())})};bj.inherits(No,VR);No.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[BR]]){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)};No.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)};No.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[BR]])&&(this.handleExceptions||n.exception!==!0))};No.prototype._nop=function(){}});var pf=h((ite,HR)=>{"use strict";var xj=L("util"),{LEVEL:ff}=pe(),kR=cf(),Ro=HR.exports=function(e={}){if(kR.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))};xj.inherits(Ro,kR);Ro.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)};Ro.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)};Ro.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
|
+
`))};Ro.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((ate,df)=>{"use strict";df.exports=cf();df.exports.LegacyTransportStream=pf()});var qR=h((ute,YR)=>{"use strict";var Mj=L("os"),{LEVEL:FR,MESSAGE:En}=pe(),Lj=dn();YR.exports=class extends Lj{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:Mj.EOL,this.setMaxListeners(30)}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.stderrLevels[e[FR]]){console._stderr?console._stderr.write(`${e[En]}${this.eol}`):console.error(e[En]),n&&n();return}else if(this.consoleWarnLevels[e[FR]]){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 Ma=h((xa,jR)=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.default=Ij;function Ij(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}jR.exports=xa.default});var KR=h((La,$R)=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.default=function(t){return function(...e){var n=e.pop();return t.call(this,e,n)}};$R.exports=La.default});var XR=h(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.fallback=WR;rr.wrap=zR;var Cj=rr.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,wj=rr.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Uj=rr.hasNextTick=typeof process=="object"&&typeof process.nextTick=="function";function WR(t){setTimeout(t,0)}function zR(t){return(e,...n)=>t(()=>e(...n))}var Po;Cj?Po=queueMicrotask:wj?Po=setImmediate:Uj?Po=process.nextTick:Po=WR;rr.default=zR(Po)});var tP=h((Ia,eP)=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.default=Hj;var Dj=KR(),Vj=ZR(Dj),Bj=XR(),Gj=ZR(Bj),kj=br();function ZR(t){return t&&t.__esModule?t:{default:t}}function Hj(t){return(0,kj.isAsync)(t)?function(...e){let n=e.pop(),i=t.apply(this,e);return JR(i,n)}:(0,Vj.default)(function(e,n){var i;try{i=t.apply(this,e)}catch(a){return n(a)}if(i&&typeof i.then=="function")return JR(i,n);n(null,i)})}function JR(t,e){return t.then(n=>{QR(e,null,n)},n=>{QR(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function QR(t,e,n){try{t(e,n)}catch(i){(0,Gj.default)(a=>{throw a},i)}}eP.exports=Ia.default});var br=h(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.isAsyncIterable=It.isAsyncGenerator=It.isAsync=void 0;var Fj=tP(),Yj=qj(Fj);function qj(t){return t&&t.__esModule?t:{default:t}}function rP(t){return t[Symbol.toStringTag]==="AsyncFunction"}function jj(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function $j(t){return typeof t[Symbol.asyncIterator]=="function"}function Kj(t){if(typeof t!="function")throw new Error("expected a function");return rP(t)?(0,Yj.default)(t):t}It.default=Kj;It.isAsync=rP;It.isAsyncGenerator=jj;It.isAsyncIterable=$j});var _n=h((Ca,nP)=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=Wj;function Wj(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}nP.exports=Ca.default});var iP=h((wa,oP)=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var zj=Ma(),Xj=Ef(zj),Jj=br(),Qj=Ef(Jj),Zj=_n(),e4=Ef(Zj);function Ef(t){return t&&t.__esModule?t:{default:t}}wa.default=(0,e4.default)((t,e,n)=>{var i=(0,Xj.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);oP.exports=wa.default});var _f=h((Ua,aP)=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.default=t4;function t4(t){function e(...n){if(t!==null){var i=t;t=null,i.apply(this,n)}}return Object.assign(e,t),e}aP.exports=Ua.default});var uP=h((Da,sP)=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()};sP.exports=Da.default});var fP=h((Va,cP)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.default=l4;var r4=Ma(),n4=lP(r4),o4=uP(),i4=lP(o4);function lP(t){return t&&t.__esModule?t:{default:t}}function a4(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function s4(t){var e=-1;return function(){var i=t.next();return i.done?null:(e++,{value:i.value,key:e})}}function u4(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 l4(t){if((0,n4.default)(t))return a4(t);var e=(0,i4.default)(t);return e?s4(e):u4(t)}cP.exports=Va.default});var Sf=h((Ba,pP)=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.default=c4;function c4(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}pP.exports=Ba.default});var ka=h((Ga,dP)=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var f4={};Ga.default=f4;dP.exports=Ga.default});var _P=h((Ha,EP)=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=_4;var p4=ka(),d4=E4(p4);function E4(t){return t&&t.__esModule?t:{default:t}}function _4(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===d4.default||a&&r<=0)return a=!0,i(null);l()}}function p(_){s||(o=!1,a=!0,i(_))}l()}EP.exports=Ha.default});var vP=h((Fa,TP)=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});var S4=_f(),h4=bo(S4),T4=fP(),v4=bo(T4),m4=Sf(),y4=bo(m4),SP=br(),A4=_P(),hP=bo(A4),O4=ka(),g4=bo(O4);function bo(t){return t&&t.__esModule?t:{default:t}}Fa.default=t=>(e,n,i)=>{if(i=(0,h4.default)(i),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return i(null);if((0,SP.isAsyncGenerator)(e))return(0,hP.default)(e,t,n,i);if((0,SP.isAsyncIterable)(e))return(0,hP.default)(e[Symbol.asyncIterator](),t,n,i);var a=(0,v4.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(_===g4.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,y4.default)(l))}u=!1}c()};TP.exports=Fa.default});var Tf=h((Ya,mP)=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var N4=vP(),R4=hf(N4),P4=br(),b4=hf(P4),x4=_n(),M4=hf(x4);function hf(t){return t&&t.__esModule?t:{default:t}}function L4(t,e,n,i){return(0,R4.default)(e)(t,(0,b4.default)(n),i)}Ya.default=(0,M4.default)(L4,4);mP.exports=Ya.default});var OP=h((qa,AP)=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var I4=Tf(),C4=yP(I4),w4=_n(),U4=yP(w4);function yP(t){return t&&t.__esModule?t:{default:t}}function D4(t,e,n){return(0,C4.default)(t,1,e,n)}qa.default=(0,U4.default)(D4,3);AP.exports=qa.default});var RP=h((ja,NP)=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.default=H4;var V4=iP(),B4=gP(V4),G4=OP(),k4=gP(G4);function gP(t){return t&&t.__esModule?t:{default:t}}function H4(t,e){return(0,B4.default)(k4.default,t,e)}NP.exports=ja.default});var vf=h((fte,bP)=>{"use strict";bP.exports=Ct;var $a=Jt().codes,F4=$a.ERR_METHOD_NOT_IMPLEMENTED,Y4=$a.ERR_MULTIPLE_CALLBACK,q4=$a.ERR_TRANSFORM_ALREADY_TRANSFORMING,j4=$a.ERR_TRANSFORM_WITH_LENGTH_0,Ka=Pr();un()(Ct,Ka);function $4(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(i===null)return this.emit("error",new Y4);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 Ct(t){if(!(this instanceof Ct))return new Ct(t);Ka.call(this,t),this._transformState={afterTransform:$4.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){PP(t,e,n)}):PP(this,null,null)}Ct.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ka.prototype.push.call(this,t,e)};Ct.prototype._transform=function(t,e,n){n(new F4("_transform()"))};Ct.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)}};Ct.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};Ct.prototype._destroy=function(t,e){Ka.prototype._destroy.call(this,t,function(n){e(n)})};function PP(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new j4;if(t._transformState.transforming)throw new q4;return t.push(null)}});var LP=h((pte,MP)=>{"use strict";MP.exports=xo;var xP=vf();un()(xo,xP);function xo(t){if(!(this instanceof xo))return new xo(t);xP.call(this,t)}xo.prototype._transform=function(t,e,n){n(null,t)}});var DP=h((dte,UP)=>{"use strict";var mf;function W4(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var wP=Jt().codes,z4=wP.ERR_MISSING_ARGS,X4=wP.ERR_STREAM_DESTROYED;function IP(t){if(t)throw t}function J4(t){return t.setHeader&&typeof t.abort=="function"}function Q4(t,e,n,i){i=W4(i);var a=!1;t.on("close",function(){a=!0}),mf===void 0&&(mf=Ta()),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,J4(t))return t.abort();if(typeof t.destroy=="function")return t.destroy();i(o||new X4("pipe"))}}}function CP(t){t()}function Z4(t,e){return t.pipe(e)}function e6(t){return!t.length||typeof t[t.length-1]!="function"?IP:t.pop()}function t6(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e6(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new z4("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(CP),!u&&(s.forEach(CP),i(a))})});return e.reduce(Z4)}UP.exports=t6});var xr=h((Ze,Lo)=>{"use strict";var Mo=L("stream");process.env.READABLE_STREAM==="disable"&&Mo?(Lo.exports=Mo.Readable,Object.assign(Lo.exports,Mo),Lo.exports.Stream=Mo):(Ze=Lo.exports=of(),Ze.Stream=Mo||Ze,Ze.Readable=Ze,Ze.Writable=Ra(),Ze.Duplex=Pr(),Ze.Transform=vf(),Ze.PassThrough=LP(),Ze.finished=Ta(),Ze.pipeline=DP())});var Pf=h((Ete,BP)=>{"use strict";var Sn=[],Io=[],yf=function(){};function Of(t){return~Sn.indexOf(t)?!1:(Sn.push(t),!0)}function gf(t){yf=t}function r6(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~Io.indexOf(t)?!1:(Io.push(t),!0)}function Af(){yf.apply(yf,arguments)}function VP(t){for(var e=0;e<Io.length;e++)t=Io[e].apply(Io[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 n6(t){return t.enabled=!1,t.modify=Nf,t.set=gf,t.use=Of,Rf(function(){return!1},t)}function o6(t){function e(){var n=Array.prototype.slice.call(arguments,0);return Af.call(Af,t,VP(n,t)),!0}return t.enabled=!0,t.modify=Nf,t.set=gf,t.use=Of,Rf(e,t)}BP.exports=function(e){return e.introduce=Rf,e.enabled=r6,e.process=VP,e.modify=Nf,e.write=Af,e.nope=n6,e.yep=o6,e.set=gf,e.use=Of,e}});var kP=h((_te,GP)=>{"use strict";var i6=Pf(),a6=i6(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)});GP.exports=a6});var FP=h((Ste,HP)=>{"use strict";HP.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 qP=h((hte,YP)=>{"use strict";YP.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((Tte,$P)=>{"use strict";var s6=qP(),u6=Array.prototype.concat,l6=Array.prototype.slice,jP=$P.exports=function(e){for(var n=[],i=0,a=e.length;i<a;i++){var s=e[i];s6(s)?n=u6.call(n,l6.call(s)):n.push(s)}return n};jP.wrap=function(t){return function(){return t(jP(arguments))}}});var JP=h((vte,XP)=>{"use strict";var Co=FP(),wo=KP(),WP=Object.hasOwnProperty,zP=Object.create(null);for(Wa in Co)WP.call(Co,Wa)&&(zP[Co[Wa]]=Wa);var Wa,ze=XP.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]:WP.call(Co,r[1])?(o=Co[r[1]],o[3]=1,o):null:null;for(u=0;u<3;u++)o[u]=nr(o[u],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,s=nr(parseFloat(n[2]),0,100),o=nr(parseFloat(n[3]),0,100),r=nr(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=nr(parseFloat(n[2]),0,100),o=nr(parseFloat(n[3]),0,100),r=nr(isNaN(i)?1:i,0,1);return[a,s,o,r]}return null};ze.to.hex=function(){var t=wo(arguments);return"#"+za(t[0])+za(t[1])+za(t[2])+(t[3]<1?za(Math.round(t[3]*255)):"")};ze.to.rgb=function(){var t=wo(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=wo(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=wo(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=wo(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 zP[t.slice(0,3)]};function nr(t,e,n){return Math.min(Math.max(e,t),n)}function za(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}});var ZP=h((mte,QP)=>{"use strict";QP.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((yte,nb)=>{"use strict";var Mr=ZP(),rb={};for(Xa in Mr)Mr.hasOwnProperty(Xa)&&(rb[Mr[Xa]]=Xa);var Xa,b=nb.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(Ve in b)if(b.hasOwnProperty(Ve)){if(!("channels"in b[Ve]))throw new Error("missing channels property: "+Ve);if(!("labels"in b[Ve]))throw new Error("missing channel labels property: "+Ve);if(b[Ve].labels.length!==b[Ve].channels)throw new Error("channel and label counts mismatch: "+Ve);eb=b[Ve].channels,tb=b[Ve].labels,delete b[Ve].channels,delete b[Ve].labels,Object.defineProperty(b[Ve],"channels",{value:eb}),Object.defineProperty(b[Ve],"labels",{value:tb})}var eb,tb,Ve;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 c6(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=rb[t];if(e)return e;var n=1/0,i;for(var a in Mr)if(Mr.hasOwnProperty(a)){var s=Mr[a],o=c6(t,s);o<n&&(n=o,i=a)}return i};b.keyword.rgb=function(t){return Mr[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 ib=h((Ate,ob)=>{"use strict";var Ja=bf();function f6(){for(var t={},e=Object.keys(Ja),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function p6(t){var e=f6(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),a=Object.keys(Ja[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 d6(t,e){return function(n){return e(t(n))}}function E6(t,e){for(var n=[e[t].parent,t],i=Ja[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=d6(Ja[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}ob.exports=function(t){for(var e=p6(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]=E6(o,e))}return n}});var sb=h((Ote,ab)=>{"use strict";var xf=bf(),_6=ib(),hn={},S6=Object.keys(xf);function h6(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 T6(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}S6.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=_6(t),n=Object.keys(e);n.forEach(function(i){var a=e[i];hn[t][i]=T6(a),hn[t][i].raw=h6(a)})});ab.exports=hn});var cb=h((gte,lb)=>{"use strict";var Uo=JP(),Xe=sb(),If=[].slice,ub=["keyword","gray","hex"],Mf={};Object.keys(Xe).forEach(function(t){Mf[If.call(Xe[t].labels).sort().join("")]=t});var Qa={};function Ae(t,e){if(!(this instanceof Ae))return new Ae(t,e);if(e&&e in ub&&(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=Uo.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(Qa[this.model])for(i=Xe[this.model].channels,n=0;n<i;n++){var c=Qa[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 Uo.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 Uo.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 Uo.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(m6(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):Uo.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(ub.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(y6(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 v6(t,e){return Number(t.toFixed(e))}function m6(t){return function(e){return v6(e,t)}}function le(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(Qa[i]||(Qa[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 y6(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}lb.exports=Ae});var pb=h((Nte,fb)=>{"use strict";fb.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 Sb=h((Rte,_b)=>{"use strict";var db=cb(),Eb=pb();_b.exports=function(e,n){var i=e.split(n||":"),a=Eb(i[0]);if(!i.length)return a;for(var s=0,o=i.length-1;s<o;s++)a=db(a).mix(db(Eb(i[s+1]))).saturate(1).hex();return a}});var Tb=h((Pte,hb)=>{"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,s=n/255*5,o=i/255*5;return this.ansi(a,s,o)};lt.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};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()};hb.exports=lt});var mb=h((bte,vb)=>{"use strict";var A6=Sb(),O6=Tb();vb.exports=function(e,n){var i=n.namespace,a=n.colors!==!1?O6(i+":",A6(i)):i+":";return e[0]=a+" "+e[0],e}});var Ab=h((xte,yb)=>{"use strict";yb.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 gb=h((Mte,Ob)=>{"use strict";var g6=Ab();Ob.exports=function(e){return function(i){try{return g6(i,e())}catch{}return!1}}});var Rb=h((Lte,Nb)=>{"use strict";var N6=gb();Nb.exports=N6(function(){return process.env.DEBUG||process.env.DIAGNOSTICS})});var bb=h((Ite,Pb)=>{"use strict";Pb.exports=function(t,e){try{Function.prototype.apply.call(console.log,console,e)}catch{}}});var Mb=h((Cte,xb)=>{"use strict";var R6=Pf(),P6=L("tty").isatty(1),Za=R6(function t(e,n){return n=n||{},n.colors="colors"in n?n.colors:P6,n.namespace=e,n.prod=!1,n.dev=!0,!t.enabled(e)&&!(n.force||t.force)?t.nope(n):t.yep(n)});Za.modify(mb());Za.use(Rb());Za.set(bb());xb.exports=Za});var Do=h((wte,Cf)=>{"use strict";process.env.NODE_ENV==="production"?Cf.exports=kP():Cf.exports=Mb()});var Ib=h((Ute,Lb)=>{"use strict";var wf=L("fs"),{StringDecoder:b6}=L("string_decoder"),{Stream:x6}=xr();function M6(){}Lb.exports=(t,e)=>{let n=Buffer.alloc(65536),i=new b6("utf8"),a=new x6,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,M6);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 Db=h((Vte,Ub)=>{"use strict";var $e=L("fs"),he=L("path"),Cb=RP(),L6=L("zlib"),{MESSAGE:I6}=pe(),{Stream:C6,PassThrough:wb}=xr(),w6=dn(),ct=Do()("winston:file"),U6=L("os"),D6=Ib();Ub.exports=class extends w6{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 wb,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:U6.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[I6]}${this.eol}`,a=Buffer.byteLength(i);function s(){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,s.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="",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 C6,a={file:n,start:e.start};return i.destroy=D6(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);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,s)=>{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(!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);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 wb,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(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)),Cb(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));Cb(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=L6.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 Bb=h((Gte,Vb)=>{"use strict";var V6=L("http"),B6=L("https"),{Stream:G6}=xr(),k6=dn(),{configure:H6}=So();Vb.exports=class extends k6{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 G6;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?B6:V6).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=H6({...this.maximumDepth&&{maximumDepth:this.maximumDepth}});o.end(Buffer.from(r(e,this.options.replacer),"utf8"))}}});var Uf=h((kte,Gb)=>{"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";Gb.exports=yt});var Hb=h((Fte,kb)=>{"use strict";var F6=Uf(),{MESSAGE:Y6}=pe(),q6=L("os"),j6=dn();kb.exports=class extends j6{constructor(e={}){if(super(e),!e.stream||!F6(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:q6.EOL}log(e,n){if(setImmediate(()=>this.emit("logged",e)),this.isObjectMode){this._stream.write(e),n&&n();return}this._stream.write(`${e[Y6]}${this.eol}`),n&&n()}}});var Fb=h(Vo=>{"use strict";Object.defineProperty(Vo,"Console",{configurable:!0,enumerable:!0,get(){return qR()}});Object.defineProperty(Vo,"File",{configurable:!0,enumerable:!0,get(){return Db()}});Object.defineProperty(Vo,"Http",{configurable:!0,enumerable:!0,get(){return Bb()}});Object.defineProperty(Vo,"Stream",{configurable:!0,enumerable:!0,get(){return Hb()}})});var ts=h(Bo=>{"use strict";var es=wc(),{configs:Df}=pe();Bo.cli=es.levels(Df.cli);Bo.npm=es.levels(Df.npm);Bo.syslog=es.levels(Df.syslog);Bo.addColors=es.levels});var qb=h((rs,Yb)=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var $6=Ma(),K6=Lr($6),W6=ka(),z6=Lr(W6),X6=Tf(),J6=Lr(X6),Q6=_f(),Z6=Lr(Q6),e$=Sf(),t$=Lr(e$),r$=br(),n$=Lr(r$),o$=_n(),i$=Lr(o$);function Lr(t){return t&&t.__esModule?t:{default:t}}function a$(t,e,n){n=(0,Z6.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===z6.default)&&n(null))}for(;i<s;i++)e(t[i],i,(0,t$.default)(r))}function s$(t,e,n){return(0,J6.default)(t,1/0,e,n)}function u$(t,e,n){var i=(0,K6.default)(t)?a$:s$;return i(t,(0,n$.default)(e),n)}rs.default=(0,i$.default)(u$,3);Yb.exports=rs.default});var $b=h((ns,jb)=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.default=l$;function l$(t){return(e,n,i)=>t(e,i)}jb.exports=ns.default});var as=h((is,Kb)=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});var c$=qb(),f$=os(c$),p$=$b(),d$=os(p$),E$=br(),_$=os(E$),S$=_n(),h$=os(S$);function os(t){return t&&t.__esModule?t:{default:t}}function T$(t,e,n){return(0,f$.default)(t,(0,d$.default)((0,_$.default)(e)),n)}is.default=(0,h$.default)(T$,3);Kb.exports=is.default});var zb=h((jte,Wb)=>{"use strict";var v$=Object.prototype.toString;Wb.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=v$.call(e).slice(8,-1);return i==="Function"?n=n.substring(n.indexOf("(")+1,n.indexOf(")")):n=i,n||"anonymous"}});var Vf=h(($te,Xb)=>{"use strict";var m$=zb();Xb.exports=function(e){var n=0,i;function a(){return n||(n=1,i=e.apply(this,arguments),e=null),i}return a.displayName=m$(e),a}});var Bf=h(ko=>{"use strict";ko.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||ko.get);var a=n.stack;return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a};ko.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 s=null,o=null,r=null,u=null,l=null,c=a[5]==="native";if(a[1]){r=a[1];var p=r.lastIndexOf(".");if(r[p-1]=="."&&p--,p>0){s=r.substr(0,p),o=r.substr(p+1);var _=s.indexOf(".Module");_>0&&(r=r.substr(_+1),s=s.substr(0,_))}u=null}o&&(u=s,l=o),o==="<anonymous>"&&(l=null,r=null);var f={fileName:a[2]||null,lineNumber:parseInt(a[3],10)||null,functionName:r,typeName:u,methodName:l,columnNumber:parseInt(a[4],10)||null,native:c};return e._createParsedCallSite(f)}}).filter(function(i){return!!i})};function Go(t){for(var e in t)this[e]=t[e]}var y$=["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"],A$=["topLevel","eval","native","constructor"];y$.forEach(function(t){Go.prototype[t]=null,Go.prototype["get"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});A$.forEach(function(t){Go.prototype[t]=!1,Go.prototype["is"+t[0].toUpperCase()+t.substr(1)]=function(){return this[t]}});ko._createParsedCallSite=function(t){return new Go(t)}});var Qb=h((zte,Jb)=>{"use strict";var{Writable:O$}=xr();Jb.exports=class extends O${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 kf=h((Jte,t0)=>{"use strict";var Zb=L("os"),g$=as(),Gf=Do()("winston:exception"),N$=Vf(),e0=Bf(),R$=Qb();t0.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:Zb.loadavg(),uptime:Zb.uptime()}}getTrace(e){return(e?e0.parse(e):e0.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 R$(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,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),a=!1);function o(){Gf("doExit",a),Gf("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);g$(i,(r,u)=>{let l=N$(u),c=r.transport||r;function p(_){return()=>{Gf(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(s=setTimeout(o,3e3))}_getExceptionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleExceptions)}}});var n0=h((Zte,r0)=>{"use strict";var{Writable:P$}=xr();r0.exports=class extends P${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 Ff=h((tre,a0)=>{"use strict";var o0=L("os"),b$=as(),Hf=Do()("winston:rejection"),x$=Vf(),i0=Bf(),M$=n0();a0.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:o0.loadavg(),uptime:o0.uptime()}}getTrace(e){return(e?i0.parse(e):i0.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 M$(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,s;!i.length&&a&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),a=!1);function o(){Hf("doExit",a),Hf("process._exiting",process._exiting),a&&!process._exiting&&(s&&clearTimeout(s),process.exit(1))}if(!i||i.length===0)return process.nextTick(o);b$(i,(r,u)=>{let l=x$(u),c=r.transport||r;function p(_){return()=>{Hf(_),l()}}c._ending=!0,c.once("finish",p("finished")),c.once("error",p("error"))},()=>a&&o()),this.logger.log(n),a&&(s=setTimeout(o,3e3))}_getRejectionHandlers(){return this.logger.transports.filter(e=>(e.transport||e).handleRejections)}}});var u0=h((rre,s0)=>{"use strict";var Yf=class{constructor(e){let n=ss();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)}};s0.exports=Yf});var ss=h((nre,p0)=>{"use strict";var{Stream:L$,Transform:I$}=xr(),l0=as(),{LEVEL:At,SPLAT:c0}=pe(),f0=Uf(),C$=kf(),w$=Ff(),U$=pf(),D$=u0(),{warn:V$}=Uc(),B$=ts(),G$=/%[scdjifoO%]/g,us=class extends I${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:s="info",exitOnError:o=!0,transports:r,colors:u,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||bc()(),this.defaultMeta=i||null,this.levels=a||this.levels||B$.npm.levels,this.level=s,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new C$(this),this.rejections=new w$(this),this.profilers={},this.exitOnError=o,r&&(r=Array.isArray(r)?r:[r],r.forEach(T=>this.add(T))),u||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
38
|
`));S&&this.exceptions.handle(S),v&&this.rejections.handle(v)}isLevelEnabled(e){let n=qf(this.levels,e);if(n===null)return!1;let i=qf(this.levels,this.level);return i===null?!1:!this.transports||this.transports.length===0?i>=n:this.transports.findIndex(s=>{let o=qf(this.levels,s.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(G$))){let o=Object.assign({},this.defaultMeta,a,{[At]:e,[c0]: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,[c0]: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();l0(n,(i,a)=>{if(!i||i.finished)return setImmediate(a);i.once("finish",a),i.end()},e)}add(e){let n=!f0(e)||e.log.length>2?new U$({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(!f0(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(){V$.deprecated("setLevels")}query(e,n){typeof e=="function"&&(n=e,e={}),e=e||{};let i={},a=Object.assign({},e.query||{});function s(r,u){e.query&&typeof r.formatQuery=="function"&&(e.query=r.formatQuery(a)),r.query(e,(l,c)=>{if(l)return u(l);typeof r.formatResults=="function"&&(c=r.formatResults(c,e.format)),u(null,c)})}function o(r,u){s(r,(l,c)=>{u&&(c=l||c,c&&(i[r.name]=c),u()),u=null})}l0(this.transports.filter(r=>!!r.query),o,()=>n(null,i))}stream(e={}){let n=new L$,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 s=a.stream(e);s&&(i.push(s),s.on("log",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("log",o)}),s.on("error",o=>{o.transport=o.transport||[],o.transport.push(a.name),n.emit("error",o)}))}),n}startTimer(){return new D$(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 s=typeof n[n.length-1]=="object"?n.pop():{};return s.level=s.level||"info",s.durationMs=i-a,s.message=s.message||e,this.write(s)}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 qf(t,e){let n=t[e];return!n&&n!==0?null:n}Object.defineProperty(us.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});p0.exports=us});var jf=h((nre,d0)=>{"use strict";var{LEVEL:k$}=pe(),H$=ts(),F$=ss(),Y$=Do()("winston:create-logger");function q$(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}d0.exports=function(t={}){t.levels=t.levels||H$.npm.levels;class e extends F${constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(Y$('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[k$]=i,s._addDefaultMeta(r),s.write(r),this||n}return a.length===0?(s.log(i,""),s):s.log(i,...a)},e.prototype[q$(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var _0=h((ire,E0)=>{"use strict";var j$=jf();E0.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=j$(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 h0=h(Z=>{"use strict";var S0=wc(),{warn:Ho}=Uc();Z.version=FN().version;Z.transports=Fb();Z.config=ts();Z.addColors=S0.levels;Z.format=S0.format;Z.createLogger=jf();Z.Logger=ss();Z.ExceptionHandler=kf();Z.RejectionHandler=Ff();Z.Container=_0();Z.Transport=pn();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}}});Ho.deprecated(Z,"setLevels");Ho.forFunctions(Z,"useFormat",["cli"]);Ho.forProperties(Z,"useFormat",["padLevels","stripColors"]);Ho.forFunctions(Z,"deprecated",["addRewriter","addFilter","clone","extend"]);Ho.forProperties(Z,"deprecated",["emitErrs","levelLength"])});var $$,K$,W$,ls,cs,m0,y0=m(()=>{"use strict";$$="exception.type",K$="exception.message",W$="exception.stacktrace",ls=$$,cs=K$,m0=W$});var A0=m(()=>{"use strict";y0()});var z$,X$,J$,Q$,Z$,O0,fs,Fo,Yo,qo,eK,g0,N0=m(()=>{"use strict";z$="process.runtime.name",X$="service.name",J$="telemetry.sdk.name",Q$="telemetry.sdk.language",Z$="telemetry.sdk.version",O0=z$,fs=X$,Fo=J$,Yo=Q$,qo=Z$,eK="nodejs",g0=eK});var R0=m(()=>{"use strict";N0()});var P0=m(()=>{"use strict"});var b0=m(()=>{"use strict"});var jo=m(()=>{"use strict";A0();R0();P0();b0()});function hn(t){return t.setValue($f,!0)}function x0(t){return t.deleteValue($f)}function xe(t){return t.getValue($f)===!0}var $f,$o=m(()=>{"use strict";M();$f=$r("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var M0,ps,Tn,ds,L0,I0,C0,Kf=m(()=>{"use strict";M0="=",ps=";",Tn=",",ds="baggage",L0=180,I0=4096,C0=8192});function Es(t){return t.reduce(function(e,n){var i=""+e+(e!==""?Tn:"")+n;return i.length>C0?e:i},"")}function _s(t){return t.getAllEntries().map(function(e){var n=tK(e,2),i=n[0],a=n[1],s=encodeURIComponent(i)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(s+=ps+a.metadata.toString()),s})}function Ko(t){var e=t.split(ps);if(!(e.length<=0)){var n=e.shift();if(n){var i=n.indexOf(M0);if(!(i<=0)){var a=decodeURIComponent(n.substring(0,i).trim()),s=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=_E(e.join(ps))),{key:a,value:s,metadata:o}}}}}function w0(t){return typeof t!="string"||t.length===0?{}:t.split(Tn).map(function(e){return Ko(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var tK,Wf=m(()=>{"use strict";M();Kf();tK=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 Ss,U0=m(()=>{"use strict";M();$o();Kf();Wf();Ss=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=at.getBaggage(e);if(!(!a||xe(e))){var s=_s(a).filter(function(r){return r.length<=I0}).slice(0,L0),o=Es(s);o.length>0&&i.set(n,ds,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,ds),s=Array.isArray(a)?a.join(Tn):a;if(!s)return e;var o={};if(s.length===0)return e;var r=s.split(Tn);return r.forEach(function(u){var l=Ko(u);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[ds]},t}()});var D0,V0=m(()=>{"use strict";D0=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=B0(Object.entries(t)),s=a.next();!s.done;s=a.next()){var o=rK(s.value,2),r=o[0],u=o[1];if(!zf(r)){g.warn("Invalid attribute key: "+r);continue}if(!Wo(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 Wo(t){return t==null?!0:Array.isArray(t)?nK(t):G0(t)}function nK(t){var e,n,i;try{for(var a=B0(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(o!=null){if(!i){if(G0(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 G0(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var B0,rK,k0=m(()=>{"use strict";M();B0=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.")},rK=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 hs(){return function(t){g.error(oK(t))}}function oK(t){return typeof t=="string"?t:JSON.stringify(iK(t))}function iK(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";M()});function F0(t){H0=t}function Te(t){try{H0(t)}catch{}}var H0,Jf=m(()=>{"use strict";Xf();H0=hs()});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 uK(t){return sK.indexOf(t)>-1}function cK(t){return lK.indexOf(t)>-1}function pK(t){return fK.indexOf(t)>-1}function dK(t,e,n){if(!(typeof n[t]>"u")){var i=String(n[t]);e[t]=i.toLowerCase()==="true"}}function EK(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 _K(t,e,n,i){i===void 0&&(i=aK);var a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(function(s){return s.trim()}))}function hK(t,e,n){var i=n[t];if(typeof i=="string"){var a=SK[i.toUpperCase()];a!=null&&(e[t]=a)}}function Xo(t){var e={};for(var n in zo){var i=n;switch(i){case"OTEL_LOG_LEVEL":hK(i,e,t);break;default:if(uK(i))dK(i,e,t);else if(cK(i))EK(i,e,t);else if(pK(i))_K(i,e,t);else{var a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}var aK,sK,lK,fK,Ir,Cr,Zf,ep,zo,SK,tp=m(()=>{"use strict";M();Qf();aK=",",sK=["OTEL_SDK_DISABLED"];lK=["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"];fK=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];Ir=1/0,Cr=128,Zf=128,ep=128,zo={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:Ir,OTEL_ATTRIBUTE_COUNT_LIMIT:Cr,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ir,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Cr,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ir,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Cr,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:[]};SK={ALL:it.ALL,VERBOSE:it.VERBOSE,DEBUG:it.DEBUG,INFO:it.INFO,WARN:it.WARN,ERROR:it.ERROR,NONE:it.NONE}});function Me(){var t=Xo(process.env);return Object.assign({},zo,t)}function vn(){return Xo(process.env)}var Y0=m(()=>{"use strict";tp()});var Ts,q0=m(()=>{"use strict";Ts=typeof globalThis=="object"?globalThis:global});function j0(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=j0(t.charCodeAt(i)),s=j0(t.charCodeAt(i+1));e[n++]=a<<4|s}return e}var rp=m(()=>{"use strict"});function vs(t){return Buffer.from(ir(t)).toString("base64")}var $0=m(()=>{"use strict";rp()});function K0(t){return function(){for(var n=0;n<t/4;n++)ms.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(ms[n]>0);n++)n===t-1&&(ms[t-1]=1);return ms.toString("hex",0,t)}}var TK,W0,ys,ms,z0=m(()=>{"use strict";TK=8,W0=16,ys=function(){function t(){this.generateTraceId=K0(W0),this.generateSpanId=K0(TK)}return t}(),ms=Buffer.allocUnsafe(W0)});import{performance as vK}from"perf_hooks";var et,X0=m(()=>{"use strict";et=vK});var As,np=m(()=>{"use strict";As="1.30.0"});var mn,ar,J0=m(()=>{"use strict";np();jo();ar=(mn={},mn[Fo]="opentelemetry",mn[O0]="node",mn[Yo]=g0,mn[qo]=As,mn)});function sr(t){t.unref()}var Q0=m(()=>{"use strict"});var Z0=m(()=>{"use strict";Y0();q0();$0();z0();X0();J0();Q0()});var op=m(()=>{"use strict";Z0()});function Oe(t){var e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*yK);return[n,i]}function yn(){var t=et.timeOrigin;if(typeof t!="number"){var e=et;t=e.timing&&e.timing.fetchStart}return t}function Jo(t){var e=Oe(yn()),n=Oe(typeof t=="number"?t:et.now());return Zo(e,n)}function tx(t){if(An(t))return t;if(typeof t=="number")return t<yn()?Jo(t):Oe(t);if(t instanceof Date)return Oe(t.getTime());throw TypeError("Invalid input type")}function gs(t,e){var n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=Os),[n,i]}function rx(t){var e=ex,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 Ns(t){return t[0]*Os+t[1]}function nx(t){return t[0]*1e3+t[1]/1e6}function Nt(t){return t[0]*1e6+t[1]/1e3}function An(t){return Array.isArray(t)&&t.length===2&&typeof t[0]=="number"&&typeof t[1]=="number"}function Qo(t){return An(t)||typeof t=="number"||t instanceof Date}function Zo(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Os&&(n[1]-=Os,n[0]+=1),n}var ex,mK,yK,Os,ox=m(()=>{"use strict";op();ex=9,mK=6,yK=Math.pow(10,mK),Os=Math.pow(10,ex)});var W,ix=m(()=>{"use strict";(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(W||(W={}))});var AK,Rs,ax=m(()=>{"use strict";M();AK=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.")},Rs=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=AK(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 sx(t){return NK.test(t)}function ux(t){return RK.test(t)&&!PK.test(t)}var ip,OK,gK,NK,RK,PK,lx=m(()=>{"use strict";ip="[_0-9a-z-*/]",OK="[a-z]"+ip+"{0,255}",gK="[a-z0-9]"+ip+"{0,240}@[a-z]"+ip+"{0,13}",NK=new RegExp("^(?:"+OK+"|"+gK+")$"),RK=/^[ -~]{0,255}[!-~]$/,PK=/,|=/});var cx,bK,fx,px,Ps,ap=m(()=>{"use strict";lx();cx=32,bK=512,fx=",",px="=",Ps=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+px+e.get(i)),n},[]).join(fx)},t.prototype._parse=function(e){e.length>bK||(this._internalState=e.split(fx).reverse().reduce(function(n,i){var a=i.trim(),s=a.indexOf(px);if(s!==-1){var o=a.slice(0,s),r=a.slice(s+1,i.length);sx(o)&&ux(r)&&n.set(o,r)}return n},new Map),this._internalState.size>cx&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,cx))))},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=wK.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var ei,ti,xK,MK,LK,IK,CK,wK,bs,dx=m(()=>{"use strict";M();$o();ap();ei="traceparent",ti="tracestate",xK="00",MK="(?!ff)[\\da-f]{2}",LK="(?![0]{32})[\\da-f]{32}",IK="(?![0]{16})[\\da-f]{16}",CK="[\\da-f]{2}",wK=new RegExp("^\\s?("+MK+")-("+LK+")-("+IK+")-("+CK+")(-.*)?\\s?$");bs=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=J.getSpanContext(e);if(!(!a||xe(e)||!_t(a))){var s=xK+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||Q.NONE).toString(16);i.set(n,ei,s),a.traceState&&i.set(n,ti,a.traceState.serialize())}},t.prototype.extract=function(e,n,i){var a=i.get(n,ei);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,ti);if(r){var u=Array.isArray(r)?r.join(","):r;o.traceState=new Ps(typeof u=="string"?u:void 0)}return J.setSpanContext(e,o)},t.prototype.fields=function(){return[ei,ti]},t}()});function Ex(t,e){return t.setValue(up,e)}function _x(t){return t.deleteValue(up)}function Sx(t){return t.getValue(up)}var up,xs,hx=m(()=>{"use strict";M();up=$r("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(xs||(xs={}))});var ri,lp=m(()=>{"use strict";M();ri=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var On,cp=m(()=>{"use strict";M();On=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var Tx,vx=m(()=>{"use strict";M();Jf();lp();cp();Tx=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 On),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new On,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new ri,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new On,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new ri}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=J.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&Q.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&Q.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 mx,yx=m(()=>{"use strict";M();mx=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,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function HK(t,e){return function(n){return t(e(n))}}function fp(t){if(!FK(t)||YK(t)!==UK)return!1;var e=kK(t);if(e===null)return!0;var n=gx.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Ax.call(n)===GK}function FK(t){return t!=null&&typeof t=="object"}function YK(t){return t==null?t===void 0?VK:DK:wr&&wr in Object(t)?qK(t):jK(t)}function qK(t){var e=gx.call(t,wr),n=t[wr],i=!1;try{t[wr]=void 0,i=!0}catch{}var a=Nx.call(t);return i&&(e?t[wr]=n:delete t[wr]),a}function jK(t){return Nx.call(t)}var UK,DK,VK,BK,Ax,GK,kK,Ox,gx,wr,Nx,Rx=m(()=>{"use strict";UK="[object Object]",DK="[object Null]",VK="[object Undefined]",BK=Function.prototype,Ax=BK.toString,GK=Ax.call(Object),kK=HK(Object.getPrototypeOf,Object),Ox=Object.prototype,gx=Ox.hasOwnProperty,wr=Symbol?Symbol.toStringTag:void 0,Nx=Ox.toString});function Is(){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=bx(n,t.shift(),0,i);return n}function pp(t){return Ls(t)?t.slice():t}function bx(t,e,n,i){n===void 0&&(n=0);var a;if(!(n>$K)){if(n++,Ms(t)||Ms(e)||xx(e))a=pp(e);else if(Ls(t)){if(a=t.slice(),Ls(e))for(var s=0,o=e.length;s<o;s++)a.push(pp(e[s]));else if(ni(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(ni(t))if(ni(e)){if(!KK(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(Ms(l))typeof l>"u"?delete a[u]:a[u]=l;else{var c=a[u],f=l;if(Px(t,u,i)||Px(e,u,i))delete a[u];else{if(ni(c)&&ni(f)){var _=i.get(c)||[],p=i.get(f)||[];_.push({obj:t,key:u}),p.push({obj:e,key:u}),i.set(c,_),i.set(f,p)}a[u]=bx(a[u],l,n,i)}}}}else a=e;return a}}function Px(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 Ls(t){return Array.isArray(t)}function xx(t){return typeof t=="function"}function ni(t){return!Ms(t)&&!Ls(t)&&!xx(t)&&typeof t=="object"}function Ms(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!(!fp(t)||!fp(e))}var $K,Mx=m(()=>{"use strict";Rx();$K=20});function Lx(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 WK,dp,Ix=m(()=>{"use strict";WK=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){WK(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 Cx(t,e){var n,i;if(!e)return!1;try{for(var a=zK(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 zK,wx=m(()=>{"use strict";zK=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 Ux(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var Dx=m(()=>{"use strict"});var Vx,Bx=m(()=>{"use strict";Vx=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 XK,JK,gn,Gx=m(()=>{"use strict";Bx();XK=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},JK=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))},gn=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new Vx}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,JK([this._that],XK(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 kx(t,e){return new Promise(function(n){Ye.with(hn(Ye.active()),function(){t.export(e,function(i){n(i)})})})}var Hx=m(()=>{"use strict";M();$o()});var Cs={};Je(Cs,{AlwaysOffSampler:()=>ri,AlwaysOnSampler:()=>On,AnchoredClock:()=>D0,BindOnceFuture:()=>gn,CompositePropagator:()=>Rs,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Cr,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Ir,DEFAULT_ENVIRONMENT:()=>zo,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Zf,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>ep,ExportResultCode:()=>W,ParentBasedSampler:()=>Tx,RPCType:()=>xs,RandomIdGenerator:()=>ys,SDK_INFO:()=>ar,TRACE_PARENT_HEADER:()=>ei,TRACE_STATE_HEADER:()=>ti,TimeoutError:()=>dp,TraceIdRatioBasedSampler:()=>mx,TraceState:()=>Ps,TracesSamplerValues:()=>Ke,VERSION:()=>As,W3CBaggagePropagator:()=>Ss,W3CTraceContextPropagator:()=>bs,_globalThis:()=>Ts,addHrTimes:()=>Zo,baggageUtils:()=>Nn,callWithTimeout:()=>Lx,deleteRPCMetadata:()=>_x,getEnv:()=>Me,getEnvWithoutDefaults:()=>vn,getRPCMetadata:()=>Sx,getTimeOrigin:()=>yn,globalErrorHandler:()=>Te,hexToBase64:()=>vs,hexToBinary:()=>ir,hrTime:()=>Jo,hrTimeDuration:()=>gs,hrTimeToMicroseconds:()=>Nt,hrTimeToMilliseconds:()=>nx,hrTimeToNanoseconds:()=>Ns,hrTimeToTimeStamp:()=>rx,internal:()=>oi,isAttributeKey:()=>zf,isAttributeValue:()=>Wo,isTimeInput:()=>Qo,isTimeInputHrTime:()=>An,isTracingSuppressed:()=>xe,isUrlIgnored:()=>Cx,isWrapped:()=>Ux,loggingErrorHandler:()=>hs,merge:()=>Is,millisToHrTime:()=>Oe,otperformance:()=>et,parseEnvironment:()=>Xo,parseTraceParent:()=>sp,sanitizeAttributes:()=>or,setGlobalErrorHandler:()=>F0,setRPCMetadata:()=>Ex,suppressTracing:()=>hn,timeInputToHrTime:()=>tx,unrefTimer:()=>sr,unsuppressTracing:()=>x0,urlMatches:()=>Ep});var Nn,oi,K=m(()=>{"use strict";U0();V0();k0();Jf();Xf();ox();rp();ix();Wf();op();ax();dx();hx();lp();cp();vx();yx();$o();ap();tp();Mx();Qf();Ix();wx();Dx();Gx();np();Hx();Nn={getKeyPairs:_s,serializeKeyPairs:Es,parseKeyPairsIntoRecord:w0,parsePairKeyValue:Ko},oi={_export:kx}});function ws(){return"unknown_service:"+process.argv0}var Fx=m(()=>{"use strict"});var Yx=m(()=>{"use strict";Fx()});var qx=m(()=>{"use strict";Yx()});var ur,QK,ZK,e8,wt,_p=m(()=>{"use strict";M();jo();K();qx();ur=function(){return ur=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},ur.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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},ZK=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}}},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},wt=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[fs]=ws(),e[Yo]=ar[Yo],e[Fo]=ar[Fo],e[qo]=ar[qo],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 ZK(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=ur(ur({},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=e8(o,2),l=u[0],c=u[1];return ur(ur(ur(ur({},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 t8,r8,n8,Sp,jx=m(()=>{"use strict";M();K();jo();_p();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.")},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},n8=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=Me(),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[fs]=s),new wt(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=t8(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=r8(l,2),f=c[0],_=c[1];if(f=f.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(f))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);a[f]=decodeURIComponent(_)}}}catch(p){n={error:p}}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 n8});var o8,Us,$x=m(()=>{"use strict";jx();o8=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(Sp.detect(e))},t}(),Us=new o8});var Kx=m(()=>{"use strict";$x()});var Ds=m(()=>{"use strict";_p();Kx()});var ge,Vs=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(ge||(ge={}))});var Ne,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"})(Ne||(Ne={}))});function Xx(t){return t!=null}function Bs(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function Jx(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(s,o){n=setTimeout(function(){o(new ii("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function Qx(t){return Wx(this,void 0,void 0,function(){var e=this;return zx(this,function(n){return[2,Promise.all(t.map(function(i){return Wx(e,void 0,void 0,function(){var a,s;return zx(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 Zx(t){return t.status==="rejected"}function hp(t,e){var n=[];return t.forEach(function(i){n.push.apply(n,s8([],a8(e(i)),!1))}),n}function eM(t,e){var n,i;if(t.size!==e.size)return!1;try{for(var a=u8(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 tM(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 rM(t,e){return t.toLowerCase()===e.toLowerCase()}var i8,Wx,zx,a8,s8,u8,ii,ft=m(()=>{"use strict";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 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)}}(),Wx=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},zx=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(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},s8=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))},u8=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){i8(e,t);function e(n){var i=t.call(this,n)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error)});var tt,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"})(tt||(tt={}))});var Tp,nM=m(()=>{"use strict";Pn();Tp=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,s,o;return c8(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:Et.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}function oM(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 iM(t,e){return rM(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function c8(t){return t.match(l8)!=null}var C,l8,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={}));l8=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function p8(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 f8,Gs,ks,aM=m(()=>{"use strict";Pn();Rn();Ut();ft();f8=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};Gs=function(){function t(e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=p8(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=tM(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}(),ks=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=tt.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new Gs(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 Gs(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 Gs(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:Ne.HISTOGRAM,dataPoints:i.map(function(s){var o=f8(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,d8,sM=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 d8),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}(),d8=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 Ys(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=(n&E8)>>20;return i-Ap}function qs(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=e.getUint32(4),a=(n&_8)*Math.pow(2,32);return a+i}var uM,E8,_8,Ap,Hs,Fs,ai,Op=m(()=>{"use strict";uM=52,E8=2146435072,_8=1048575,Ap=1023,Hs=-Ap+1,Fs=Ap,ai=Math.pow(2,-1022)});function si(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function cM(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var js=m(()=>{"use strict"});var S8,cr,$s=m(()=>{"use strict";S8=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)}}(),cr=function(t){S8(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var pM,dM=m(()=>{"use strict";Op();js();$s();pM=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<ai)return this._minNormalLowerBoundaryIndex();var n=Ys(e),i=this._rightShift(qs(e)-1,uM);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 si(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=Hs>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return Fs>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var EM,_M=m(()=>{"use strict";Op();js();$s();EM=function(){function t(e){this._scale=e,this._scaleFactor=si(Math.LOG2E,e),this._inverseFactor=si(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=ai)return this._minNormalLowerBoundaryIndex()-1;if(qs(e)===0){var n=Ys(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 ai;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 Hs<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(Fs+1<<this._scale)-1},t}()});function gp(t){if(t>hM||t<SM)throw new cr("expected scale >= "+SM+" && <= "+hM+", got: "+t);return h8[t+10]}var SM,hM,h8,TM=m(()=>{"use strict";dM();_M();$s();SM=-10,hM=20,h8=Array.from({length:31},function(t,e){return e>10?new EM(e-10):new pM(e-10)})});var T8,Ks,v8,m8,Np,vM,Rp,mM=m(()=>{"use strict";Pn();Rn();M();Ut();sM();TM();js();T8=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},Ks=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}(),v8=20,m8=160,Np=2,vM=function(){function t(e,n,i,a,s,o,r,u,l,c,f){e===void 0&&(e=e),n===void 0&&(n=m8),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),f===void 0&&(f=gp(v8)),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=f,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=cM(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=Ks.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Ks.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 Ks(0,-1);var a=n-i;return new Ks(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=tt.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new vM(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:Ne.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(function(s){var o=T8(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 y8,Ws,Pp,yM=m(()=>{"use strict";Pn();K();Rn();y8=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},Ws=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=Oe(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Pp=function(){function t(){this.kind=tt.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new Ws(e)},t.prototype.merge=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new Ws(e.startTime,i.toPointValue(),i.sampleTime)},t.prototype.diff=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new Ws(n.startTime,i.toPointValue(),i.sampleTime)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.GAUGE,dataPoints:i.map(function(s){var o=y8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}})}},t}()});var A8,bn,zs,AM=m(()=>{"use strict";Pn();Rn();A8=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}(),zs=function(){function t(e){this.monotonic=e,this.kind=tt.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:Ne.SUM,dataPoints:i.map(function(s){var o=A8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var OM=m(()=>{"use strict";nM();aM();mM();yM();AM()});var Ur,Be,bp,xp,Mp,Lp,Ip,Cp,wp,gM,NM,RM,PM,O8,g8,Xs=m(()=>{"use strict";M();OM();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 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)}}(),Be=function(){function t(){}return t.Drop=function(){return gM},t.Sum=function(){return NM},t.LastValue=function(){return RM},t.Histogram=function(){return PM},t.ExponentialHistogram=function(){return O8},t.Default=function(){return g8},t}(),bp=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 Tp,e}(Be),xp=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 zs(!0),e.NON_MONOTONIC_INSTANCE=new zs(!1),e}(Be),Mp=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 Pp,e}(Be),Lp=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 ks([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(Be),Ip=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,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 ks(this._boundaries,this._recordMinMax)},e}(Be),Cp=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 Rp(this._maxSize,this._recordMinMax)},e}(Be),wp=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 NM;case C.GAUGE:case C.OBSERVABLE_GAUGE:return RM;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new Ip(n.advice.explicitBucketBoundaries):PM}return g.warn("Unable to recognize instrument type: "+n.type),gM},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(Be),gM=new bp,NM=new xp,RM=new Mp,PM=new Lp,O8=new Cp,g8=new wp});var bM,Js,Up=m(()=>{"use strict";Xs();Vs();bM=function(t){return Be.Default()},Js=function(t){return ge.CUMULATIVE}});var Dp,Vp,xM,N8,Qs,Bp=m(()=>{"use strict";M();ft();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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}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}}},xM=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},N8=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))},Qs=function(){function t(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:bM,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:Js,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 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(N8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],xM(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=xM.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,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 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,lr(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var R8,Zs,eu,P8,b8,tu,MM=m(()=>{"use strict";M();K();Bp();ft();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 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)}}(),Zs=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},eu=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}}},P8=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},b8=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))},tu=function(t){R8(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 Zs(this,void 0,void 0,function(){var n;return eu(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 ii?(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 Zs(this,void 0,void 0,function(){var a,s,o,r,u,l;return eu(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,b8(["PeriodicExportingMetricReader: metrics collection errors"],P8(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,oi._export(this._exporter,s)];case 6:if(u=c.sent(),u.code!==W.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),sr(this._interval)},e.prototype.onForceFlush=function(){return Zs(this,void 0,void 0,function(){return eu(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 Zs(this,void 0,void 0,function(){return eu(this,function(n){switch(n.label){case 0:return this._interval&&clearInterval(this._interval),[4,this.onForceFlush()];case 1:return n.sent(),[4,this._exporter.shutdown()];case 2:return n.sent(),[2]}})})},e}(Qs)});var LM,IM=m(()=>{"use strict";K();LM=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 CM,wM,UM=m(()=>{"use strict";K();Up();CM=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.")},wM=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:Js}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,s,o;try{for(var r=CM(e.scopeMetrics),u=r.next();!u.done;u=r.next()){var l=u.value;try{for(var c=(s=void 0,CM(l.metrics)),f=c.next();!f.done;f=c.next()){var _=f.value;console.dir({descriptor:_.descriptor,dataPointType:_.dataPointType,dataPoints:_.dataPoints},{depth:null})}}catch(p){s={error:p}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(s)throw s.error}}}}catch(p){i={error:p}}finally{try{u&&!u.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}n({code:W.SUCCESS})},t}()});var DM,VM=m(()=>{"use strict";DM=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 ui(t){return t instanceof nu}var Dr,ru,BM,GM,kM,HM,nu,FM,YM,qM,ou=m(()=>{"use strict";M();K();Dr=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)}}(),ru=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,Oe(Date.now()))},t}(),BM=function(t){Dr(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}(ru),GM=function(t){Dr(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}(ru),kM=function(t){Dr(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}(ru),HM=function(t){Dr(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}(ru),nu=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}(),FM=function(t){Dr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(nu),YM=function(t){Dr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(nu),qM=function(t){Dr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(nu)});var jM,$M=m(()=>{"use strict";Ut();ou();jM=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 kM(a,i)},t.prototype.createHistogram=function(e,n){var i=Rt(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new HM(a,i)},t.prototype.createCounter=function(e,n){var i=Rt(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new GM(a,i)},t.prototype.createUpDownCounter=function(e,n){var i=Rt(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new BM(a,i)},t.prototype.createObservableGauge=function(e,n){var i=Rt(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new YM(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 FM(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 qM(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 iu,Gp=m(()=>{"use strict";Ut();iu=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 x8,KM,M8,pt,li=m(()=>{"use strict";ft();x8=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)}}(),KM=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}}},M8=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){x8(e,t);function e(){return t.call(this,Bs)||this}return e}(M8)});var L8,au,kp=m(()=>{"use strict";ft();li();L8=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},au=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=Bs(this._overflowAttributes)}return t.prototype.record=function(e,n,i,a){var s=this,o=this._activeCollectionStorage.get(n);if(!o){if(this._activeCollectionStorage.size>=this._cardinalityLimit){var r=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,function(){return s._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 s=L8(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 f=i._cumulativeMemoStorage.get(o,u);c=i._aggregator.diff(f,l)}else if(i._cumulativeMemoStorage.size>=i._cardinalityLimit&&(o=i._overflowAttributes,u=i._overflowHashCode,i._cumulativeMemoStorage.has(o,u))){var f=i._cumulativeMemoStorage.get(o,u);c=i._aggregator.diff(f,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 pt,e},t}()});function I8(t){return Array.from(t.entries())}var Hp,WM,su,Fp=m(()=>{"use strict";Vs();li();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.")},WM=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},su=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===ge.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=I8(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 pt,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=WM(o.value,3),u=r[0],l=r[1],c=r[2];if(e.has(u,c)){var f=e.get(u,c),_=i.merge(f,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=WM(r.value,2),l=u[0],c=u[1],f=n.get(l,c);f?.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 C8,w8,zM,XM=m(()=>{"use strict";Gp();kp();Fp();li();C8=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)}}(),w8=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},zM=function(t){C8(e,t);function e(n,i,a,s,o){var r=t.call(this,n)||this;return r._attributesProcessor=a,r._aggregationCardinalityLimit=o,r._deltaMetricStorage=new au(i,r._aggregationCardinalityLimit),r._temporalMetricStorage=new su(i,s),r}return e.prototype.record=function(n,i){var a=this,s=new pt;Array.from(n.entries()).forEach(function(o){var r=w8(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}(iu)});function Yp(t,e){var n="";return t.unit!==e.unit&&(n+=" - Unit '"+t.unit+"' does not match '"+e.unit+`'
|
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(us.prototype,"transports",{configurable:!1,enumerable:!0,get(){let{pipes:t}=this._readableState;return Array.isArray(t)?t:[t].filter(Boolean)}});p0.exports=us});var jf=h((ore,d0)=>{"use strict";var{LEVEL:k$}=pe(),H$=ts(),F$=ss(),Y$=Do()("winston:create-logger");function q$(t){return"is"+t.charAt(0).toUpperCase()+t.slice(1)+"Enabled"}d0.exports=function(t={}){t.levels=t.levels||H$.npm.levels;class e extends F${constructor(a){super(a)}}let n=new e(t);return Object.keys(t.levels).forEach(function(i){if(Y$('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[k$]=i,s._addDefaultMeta(r),s.write(r),this||n}return a.length===0?(s.log(i,""),s):s.log(i,...a)},e.prototype[q$(i)]=function(){return(this||n).isLevelEnabled(i)}}),n}});var _0=h((are,E0)=>{"use strict";var j$=jf();E0.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=j$(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 h0=h(Z=>{"use strict";var S0=wc(),{warn:Ho}=Uc();Z.version=FN().version;Z.transports=Fb();Z.config=ts();Z.addColors=S0.levels;Z.format=S0.format;Z.createLogger=jf();Z.Logger=ss();Z.ExceptionHandler=kf();Z.RejectionHandler=Ff();Z.Container=_0();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}}});Ho.deprecated(Z,"setLevels");Ho.forFunctions(Z,"useFormat",["cli"]);Ho.forProperties(Z,"useFormat",["padLevels","stripColors"]);Ho.forFunctions(Z,"deprecated",["addRewriter","addFilter","clone","extend"]);Ho.forProperties(Z,"deprecated",["emitErrs","levelLength"])});var $$,K$,W$,ls,cs,m0,y0=m(()=>{"use strict";$$="exception.type",K$="exception.message",W$="exception.stacktrace",ls=$$,cs=K$,m0=W$});var A0=m(()=>{"use strict";y0()});var z$,X$,J$,Q$,Z$,O0,fs,Fo,Yo,qo,eK,g0,N0=m(()=>{"use strict";z$="process.runtime.name",X$="service.name",J$="telemetry.sdk.name",Q$="telemetry.sdk.language",Z$="telemetry.sdk.version",O0=z$,fs=X$,Fo=J$,Yo=Q$,qo=Z$,eK="nodejs",g0=eK});var R0=m(()=>{"use strict";N0()});var P0=m(()=>{"use strict"});var b0=m(()=>{"use strict"});var jo=m(()=>{"use strict";A0();R0();P0();b0()});function Tn(t){return t.setValue($f,!0)}function x0(t){return t.deleteValue($f)}function xe(t){return t.getValue($f)===!0}var $f,$o=m(()=>{"use strict";M();$f=Kr("OpenTelemetry SDK Context Key SUPPRESS_TRACING")});var M0,ps,vn,ds,L0,I0,C0,Kf=m(()=>{"use strict";M0="=",ps=";",vn=",",ds="baggage",L0=180,I0=4096,C0=8192});function Es(t){return t.reduce(function(e,n){var i=""+e+(e!==""?vn:"")+n;return i.length>C0?e:i},"")}function _s(t){return t.getAllEntries().map(function(e){var n=tK(e,2),i=n[0],a=n[1],s=encodeURIComponent(i)+"="+encodeURIComponent(a.value);return a.metadata!==void 0&&(s+=ps+a.metadata.toString()),s})}function Ko(t){var e=t.split(ps);if(!(e.length<=0)){var n=e.shift();if(n){var i=n.indexOf(M0);if(!(i<=0)){var a=decodeURIComponent(n.substring(0,i).trim()),s=decodeURIComponent(n.substring(i+1).trim()),o;return e.length>0&&(o=_E(e.join(ps))),{key:a,value:s,metadata:o}}}}}function w0(t){return typeof t!="string"||t.length===0?{}:t.split(vn).map(function(e){return Ko(e)}).filter(function(e){return e!==void 0&&e.value.length>0}).reduce(function(e,n){return e[n.key]=n.value,e},{})}var tK,Wf=m(()=>{"use strict";M();Kf();tK=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 Ss,U0=m(()=>{"use strict";M();$o();Kf();Wf();Ss=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=at.getBaggage(e);if(!(!a||xe(e))){var s=_s(a).filter(function(r){return r.length<=I0}).slice(0,L0),o=Es(s);o.length>0&&i.set(n,ds,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,ds),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=Ko(u);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[ds]},t}()});var D0,V0=m(()=>{"use strict";D0=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=B0(Object.entries(t)),s=a.next();!s.done;s=a.next()){var o=rK(s.value,2),r=o[0],u=o[1];if(!zf(r)){g.warn("Invalid attribute key: "+r);continue}if(!Wo(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 Wo(t){return t==null?!0:Array.isArray(t)?nK(t):G0(t)}function nK(t){var e,n,i;try{for(var a=B0(t),s=a.next();!s.done;s=a.next()){var o=s.value;if(o!=null){if(!i){if(G0(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 G0(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}var B0,rK,k0=m(()=>{"use strict";M();B0=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.")},rK=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 hs(){return function(t){g.error(oK(t))}}function oK(t){return typeof t=="string"?t:JSON.stringify(iK(t))}function iK(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";M()});function F0(t){H0=t}function Te(t){try{H0(t)}catch{}}var H0,Jf=m(()=>{"use strict";Xf();H0=hs()});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 uK(t){return sK.indexOf(t)>-1}function cK(t){return lK.indexOf(t)>-1}function pK(t){return fK.indexOf(t)>-1}function dK(t,e,n){if(!(typeof n[t]>"u")){var i=String(n[t]);e[t]=i.toLowerCase()==="true"}}function EK(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 _K(t,e,n,i){i===void 0&&(i=aK);var a=n[t];typeof a=="string"&&(e[t]=a.split(i).map(function(s){return s.trim()}))}function hK(t,e,n){var i=n[t];if(typeof i=="string"){var a=SK[i.toUpperCase()];a!=null&&(e[t]=a)}}function Xo(t){var e={};for(var n in zo){var i=n;switch(i){case"OTEL_LOG_LEVEL":hK(i,e,t);break;default:if(uK(i))dK(i,e,t);else if(cK(i))EK(i,e,t);else if(pK(i))_K(i,e,t);else{var a=t[i];typeof a<"u"&&a!==null&&(e[i]=String(a))}}}return e}var aK,sK,lK,fK,Ir,Cr,Zf,ep,zo,SK,tp=m(()=>{"use strict";M();Qf();aK=",",sK=["OTEL_SDK_DISABLED"];lK=["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"];fK=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];Ir=1/0,Cr=128,Zf=128,ep=128,zo={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:Ir,OTEL_ATTRIBUTE_COUNT_LIMIT:Cr,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ir,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Cr,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Ir,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Cr,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:[]};SK={ALL:it.ALL,VERBOSE:it.VERBOSE,DEBUG:it.DEBUG,INFO:it.INFO,WARN:it.WARN,ERROR:it.ERROR,NONE:it.NONE}});function Me(){var t=Xo(process.env);return Object.assign({},zo,t)}function mn(){return Xo(process.env)}var Y0=m(()=>{"use strict";tp()});var Ts,q0=m(()=>{"use strict";Ts=typeof globalThis=="object"?globalThis:global});function j0(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=j0(t.charCodeAt(i)),s=j0(t.charCodeAt(i+1));e[n++]=a<<4|s}return e}var rp=m(()=>{"use strict"});function vs(t){return Buffer.from(ir(t)).toString("base64")}var $0=m(()=>{"use strict";rp()});function K0(t){return function(){for(var n=0;n<t/4;n++)ms.writeUInt32BE(Math.random()*Math.pow(2,32)>>>0,n*4);for(var n=0;n<t&&!(ms[n]>0);n++)n===t-1&&(ms[t-1]=1);return ms.toString("hex",0,t)}}var TK,W0,ys,ms,z0=m(()=>{"use strict";TK=8,W0=16,ys=function(){function t(){this.generateTraceId=K0(W0),this.generateSpanId=K0(TK)}return t}(),ms=Buffer.allocUnsafe(W0)});import{performance as vK}from"perf_hooks";var et,X0=m(()=>{"use strict";et=vK});var As,np=m(()=>{"use strict";As="1.30.0"});var yn,ar,J0=m(()=>{"use strict";np();jo();ar=(yn={},yn[Fo]="opentelemetry",yn[O0]="node",yn[Yo]=g0,yn[qo]=As,yn)});function sr(t){t.unref()}var Q0=m(()=>{"use strict"});var Z0=m(()=>{"use strict";Y0();q0();$0();z0();X0();J0();Q0()});var op=m(()=>{"use strict";Z0()});function Oe(t){var e=t/1e3,n=Math.trunc(e),i=Math.round(t%1e3*yK);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 Jo(t){var e=Oe(An()),n=Oe(typeof t=="number"?t:et.now());return Zo(e,n)}function tx(t){if(On(t))return t;if(typeof t=="number")return t<An()?Jo(t):Oe(t);if(t instanceof Date)return Oe(t.getTime());throw TypeError("Invalid input type")}function gs(t,e){var n=e[0]-t[0],i=e[1]-t[1];return i<0&&(n-=1,i+=Os),[n,i]}function rx(t){var e=ex,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 Ns(t){return t[0]*Os+t[1]}function nx(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 Qo(t){return On(t)||typeof t=="number"||t instanceof Date}function Zo(t,e){var n=[t[0]+e[0],t[1]+e[1]];return n[1]>=Os&&(n[1]-=Os,n[0]+=1),n}var ex,mK,yK,Os,ox=m(()=>{"use strict";op();ex=9,mK=6,yK=Math.pow(10,mK),Os=Math.pow(10,ex)});var W,ix=m(()=>{"use strict";(function(t){t[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})(W||(W={}))});var AK,Rs,ax=m(()=>{"use strict";M();AK=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.")},Rs=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=AK(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 sx(t){return NK.test(t)}function ux(t){return RK.test(t)&&!PK.test(t)}var ip,OK,gK,NK,RK,PK,lx=m(()=>{"use strict";ip="[_0-9a-z-*/]",OK="[a-z]"+ip+"{0,255}",gK="[a-z0-9]"+ip+"{0,240}@[a-z]"+ip+"{0,13}",NK=new RegExp("^(?:"+OK+"|"+gK+")$"),RK=/^[ -~]{0,255}[!-~]$/,PK=/,|=/});var cx,bK,fx,px,Ps,ap=m(()=>{"use strict";lx();cx=32,bK=512,fx=",",px="=",Ps=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+px+e.get(i)),n},[]).join(fx)},t.prototype._parse=function(e){e.length>bK||(this._internalState=e.split(fx).reverse().reduce(function(n,i){var a=i.trim(),s=a.indexOf(px);if(s!==-1){var o=a.slice(0,s),r=a.slice(s+1,i.length);sx(o)&&ux(r)&&n.set(o,r)}return n},new Map),this._internalState.size>cx&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,cx))))},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=wK.exec(t);return!e||e[1]==="00"&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var ei,ti,xK,MK,LK,IK,CK,wK,bs,dx=m(()=>{"use strict";M();$o();ap();ei="traceparent",ti="tracestate",xK="00",MK="(?!ff)[\\da-f]{2}",LK="(?![0]{32})[\\da-f]{32}",IK="(?![0]{16})[\\da-f]{16}",CK="[\\da-f]{2}",wK=new RegExp("^\\s?("+MK+")-("+LK+")-("+IK+")-("+CK+")(-.*)?\\s?$");bs=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=J.getSpanContext(e);if(!(!a||xe(e)||!_t(a))){var s=xK+"-"+a.traceId+"-"+a.spanId+"-0"+Number(a.traceFlags||Q.NONE).toString(16);i.set(n,ei,s),a.traceState&&i.set(n,ti,a.traceState.serialize())}},t.prototype.extract=function(e,n,i){var a=i.get(n,ei);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,ti);if(r){var u=Array.isArray(r)?r.join(","):r;o.traceState=new Ps(typeof u=="string"?u:void 0)}return J.setSpanContext(e,o)},t.prototype.fields=function(){return[ei,ti]},t}()});function Ex(t,e){return t.setValue(up,e)}function _x(t){return t.deleteValue(up)}function Sx(t){return t.getValue(up)}var up,xs,hx=m(()=>{"use strict";M();up=Kr("OpenTelemetry SDK Context Key RPC_METADATA");(function(t){t.HTTP="http"})(xs||(xs={}))});var ri,lp=m(()=>{"use strict";M();ri=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:St.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var gn,cp=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 Tx,vx=m(()=>{"use strict";M();Jf();lp();cp();Tx=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 ri,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new gn,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new ri}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=J.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&Q.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&Q.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 mx,yx=m(()=>{"use strict";M();mx=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,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function HK(t,e){return function(n){return t(e(n))}}function fp(t){if(!FK(t)||YK(t)!==UK)return!1;var e=kK(t);if(e===null)return!0;var n=gx.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Ax.call(n)===GK}function FK(t){return t!=null&&typeof t=="object"}function YK(t){return t==null?t===void 0?VK:DK:wr&&wr in Object(t)?qK(t):jK(t)}function qK(t){var e=gx.call(t,wr),n=t[wr],i=!1;try{t[wr]=void 0,i=!0}catch{}var a=Nx.call(t);return i&&(e?t[wr]=n:delete t[wr]),a}function jK(t){return Nx.call(t)}var UK,DK,VK,BK,Ax,GK,kK,Ox,gx,wr,Nx,Rx=m(()=>{"use strict";UK="[object Object]",DK="[object Null]",VK="[object Undefined]",BK=Function.prototype,Ax=BK.toString,GK=Ax.call(Object),kK=HK(Object.getPrototypeOf,Object),Ox=Object.prototype,gx=Ox.hasOwnProperty,wr=Symbol?Symbol.toStringTag:void 0,Nx=Ox.toString});function Is(){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=bx(n,t.shift(),0,i);return n}function pp(t){return Ls(t)?t.slice():t}function bx(t,e,n,i){n===void 0&&(n=0);var a;if(!(n>$K)){if(n++,Ms(t)||Ms(e)||xx(e))a=pp(e);else if(Ls(t)){if(a=t.slice(),Ls(e))for(var s=0,o=e.length;s<o;s++)a.push(pp(e[s]));else if(ni(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(ni(t))if(ni(e)){if(!KK(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(Ms(l))typeof l>"u"?delete a[u]:a[u]=l;else{var c=a[u],p=l;if(Px(t,u,i)||Px(e,u,i))delete a[u];else{if(ni(c)&&ni(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]=bx(a[u],l,n,i)}}}}else a=e;return a}}function Px(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 Ls(t){return Array.isArray(t)}function xx(t){return typeof t=="function"}function ni(t){return!Ms(t)&&!Ls(t)&&!xx(t)&&typeof t=="object"}function Ms(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!(!fp(t)||!fp(e))}var $K,Mx=m(()=>{"use strict";Rx();$K=20});function Lx(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 WK,dp,Ix=m(()=>{"use strict";WK=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){WK(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 Cx(t,e){var n,i;if(!e)return!1;try{for(var a=zK(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 zK,wx=m(()=>{"use strict";zK=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 Ux(t){return typeof t=="function"&&typeof t.__original=="function"&&typeof t.__unwrap=="function"&&t.__wrapped===!0}var Dx=m(()=>{"use strict"});var Vx,Bx=m(()=>{"use strict";Vx=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 XK,JK,Nn,Gx=m(()=>{"use strict";Bx();XK=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},JK=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))},Nn=function(){function t(e,n){this._callback=e,this._that=n,this._isCalled=!1,this._deferred=new Vx}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,JK([this._that],XK(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 kx(t,e){return new Promise(function(n){Ye.with(Tn(Ye.active()),function(){t.export(e,function(i){n(i)})})})}var Hx=m(()=>{"use strict";M();$o()});var Cs={};Je(Cs,{AlwaysOffSampler:()=>ri,AlwaysOnSampler:()=>gn,AnchoredClock:()=>D0,BindOnceFuture:()=>Nn,CompositePropagator:()=>Rs,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Cr,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Ir,DEFAULT_ENVIRONMENT:()=>zo,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Zf,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>ep,ExportResultCode:()=>W,ParentBasedSampler:()=>Tx,RPCType:()=>xs,RandomIdGenerator:()=>ys,SDK_INFO:()=>ar,TRACE_PARENT_HEADER:()=>ei,TRACE_STATE_HEADER:()=>ti,TimeoutError:()=>dp,TraceIdRatioBasedSampler:()=>mx,TraceState:()=>Ps,TracesSamplerValues:()=>Ke,VERSION:()=>As,W3CBaggagePropagator:()=>Ss,W3CTraceContextPropagator:()=>bs,_globalThis:()=>Ts,addHrTimes:()=>Zo,baggageUtils:()=>Rn,callWithTimeout:()=>Lx,deleteRPCMetadata:()=>_x,getEnv:()=>Me,getEnvWithoutDefaults:()=>mn,getRPCMetadata:()=>Sx,getTimeOrigin:()=>An,globalErrorHandler:()=>Te,hexToBase64:()=>vs,hexToBinary:()=>ir,hrTime:()=>Jo,hrTimeDuration:()=>gs,hrTimeToMicroseconds:()=>Nt,hrTimeToMilliseconds:()=>nx,hrTimeToNanoseconds:()=>Ns,hrTimeToTimeStamp:()=>rx,internal:()=>oi,isAttributeKey:()=>zf,isAttributeValue:()=>Wo,isTimeInput:()=>Qo,isTimeInputHrTime:()=>On,isTracingSuppressed:()=>xe,isUrlIgnored:()=>Cx,isWrapped:()=>Ux,loggingErrorHandler:()=>hs,merge:()=>Is,millisToHrTime:()=>Oe,otperformance:()=>et,parseEnvironment:()=>Xo,parseTraceParent:()=>sp,sanitizeAttributes:()=>or,setGlobalErrorHandler:()=>F0,setRPCMetadata:()=>Ex,suppressTracing:()=>Tn,timeInputToHrTime:()=>tx,unrefTimer:()=>sr,unsuppressTracing:()=>x0,urlMatches:()=>Ep});var Rn,oi,K=m(()=>{"use strict";U0();V0();k0();Jf();Xf();ox();rp();ix();Wf();op();ax();dx();hx();lp();cp();vx();yx();$o();ap();tp();Mx();Qf();Ix();wx();Dx();Gx();np();Hx();Rn={getKeyPairs:_s,serializeKeyPairs:Es,parseKeyPairsIntoRecord:w0,parsePairKeyValue:Ko},oi={_export:kx}});function ws(){return"unknown_service:"+process.argv0}var Fx=m(()=>{"use strict"});var Yx=m(()=>{"use strict";Fx()});var qx=m(()=>{"use strict";Yx()});var ur,QK,ZK,e8,wt,_p=m(()=>{"use strict";M();jo();K();qx();ur=function(){return ur=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},ur.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())})},ZK=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}}},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},wt=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[fs]=ws(),e[Yo]=ar[Yo],e[Fo]=ar[Fo],e[qo]=ar[qo],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 ZK(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=ur(ur({},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=e8(o,2),l=u[0],c=u[1];return ur(ur(ur(ur({},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 t8,r8,n8,Sp,jx=m(()=>{"use strict";M();K();jo();_p();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.")},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},n8=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=Me(),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[fs]=s),new wt(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=t8(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=r8(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 n8});var o8,Us,$x=m(()=>{"use strict";jx();o8=function(){function t(){}return t.prototype.detect=function(e){return Promise.resolve(Sp.detect(e))},t}(),Us=new o8});var Kx=m(()=>{"use strict";$x()});var Ds=m(()=>{"use strict";_p();Kx()});var ge,Vs=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE"})(ge||(ge={}))});var Ne,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"})(Ne||(Ne={}))});function Xx(t){return t!=null}function Bs(t){var e=Object.keys(t);return e.length===0?"":(e=e.sort(),JSON.stringify(e.map(function(n){return[n,t[n]]})))}function Jx(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(s,o){n=setTimeout(function(){o(new ii("Operation timed out."))},e)});return Promise.race([t,i]).then(function(a){return clearTimeout(n),a},function(a){throw clearTimeout(n),a})}function Qx(t){return Wx(this,void 0,void 0,function(){var e=this;return zx(this,function(n){return[2,Promise.all(t.map(function(i){return Wx(e,void 0,void 0,function(){var a,s;return zx(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 Zx(t){return t.status==="rejected"}function hp(t,e){var n=[];return t.forEach(function(i){n.push.apply(n,s8([],a8(e(i)),!1))}),n}function eM(t,e){var n,i;if(t.size!==e.size)return!1;try{for(var a=u8(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 tM(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 rM(t,e){return t.toLowerCase()===e.toLowerCase()}var i8,Wx,zx,a8,s8,u8,ii,ft=m(()=>{"use strict";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 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)}}(),Wx=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())})},zx=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(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},s8=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))},u8=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){i8(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 Tp,nM=m(()=>{"use strict";bn();Tp=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,s,o;return c8(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:Et.DOUBLE,advice:(o=n?.advice)!==null&&o!==void 0?o:{}}}function oM(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 iM(t,e){return rM(t.name,e.name)&&t.unit===e.unit&&t.type===e.type&&t.valueType===e.valueType}function c8(t){return t.match(l8)!=null}var C,l8,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={}));l8=/^[a-z][a-z0-9_.\-/]{0,254}$/i});function p8(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 f8,Gs,ks,aM=m(()=>{"use strict";bn();Pn();Ut();ft();f8=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};Gs=function(){function t(e,n,i,a){i===void 0&&(i=!0),a===void 0&&(a=p8(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=tM(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}(),ks=function(){function t(e,n){this._boundaries=e,this._recordMinMax=n,this.kind=tt.HISTOGRAM}return t.prototype.createAccumulation=function(e){return new Gs(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 Gs(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 Gs(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:Ne.HISTOGRAM,dataPoints:i.map(function(s){var o=f8(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,d8,sM=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 d8),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}(),d8=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 Ys(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=(n&E8)>>20;return i-Ap}function qs(t){var e=new DataView(new ArrayBuffer(8));e.setFloat64(0,t);var n=e.getUint32(0),i=e.getUint32(4),a=(n&_8)*Math.pow(2,32);return a+i}var uM,E8,_8,Ap,Hs,Fs,ai,Op=m(()=>{"use strict";uM=52,E8=2146435072,_8=1048575,Ap=1023,Hs=-Ap+1,Fs=Ap,ai=Math.pow(2,-1022)});function si(t,e){return t===0||t===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY||Number.isNaN(t)?t:t*Math.pow(2,e)}function cM(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,t++,t}var js=m(()=>{"use strict"});var S8,cr,$s=m(()=>{"use strict";S8=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)}}(),cr=function(t){S8(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Error)});var pM,dM=m(()=>{"use strict";Op();js();$s();pM=function(){function t(e){this._shift=-e}return t.prototype.mapToIndex=function(e){if(e<ai)return this._minNormalLowerBoundaryIndex();var n=Ys(e),i=this._rightShift(qs(e)-1,uM);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 si(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=Hs>>this._shift;return this._shift<2&&e--,e},t.prototype._maxNormalLowerBoundaryIndex=function(){return Fs>>this._shift},t.prototype._rightShift=function(e,n){return Math.floor(e*Math.pow(2,-n))},t}()});var EM,_M=m(()=>{"use strict";Op();js();$s();EM=function(){function t(e){this._scale=e,this._scaleFactor=si(Math.LOG2E,e),this._inverseFactor=si(Math.LN2,-e)}return t.prototype.mapToIndex=function(e){if(e<=ai)return this._minNormalLowerBoundaryIndex()-1;if(qs(e)===0){var n=Ys(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 ai;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 Hs<<this._scale},t.prototype._maxNormalLowerBoundaryIndex=function(){return(Fs+1<<this._scale)-1},t}()});function gp(t){if(t>hM||t<SM)throw new cr("expected scale >= "+SM+" && <= "+hM+", got: "+t);return h8[t+10]}var SM,hM,h8,TM=m(()=>{"use strict";dM();_M();$s();SM=-10,hM=20,h8=Array.from({length:31},function(t,e){return e>10?new EM(e-10):new pM(e-10)})});var T8,Ks,v8,m8,Np,vM,Rp,mM=m(()=>{"use strict";bn();Pn();M();Ut();sM();TM();js();T8=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},Ks=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}(),v8=20,m8=160,Np=2,vM=function(){function t(e,n,i,a,s,o,r,u,l,c,p){e===void 0&&(e=e),n===void 0&&(n=m8),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(v8)),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=cM(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=Ks.combine(this._highLowAtScale(this.positive,this.scale,n),this._highLowAtScale(e.positive,e.scale,n)),a=Ks.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 Ks(0,-1);var a=n-i;return new Ks(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=tt.EXPONENTIAL_HISTOGRAM}return t.prototype.createAccumulation=function(e){return new vM(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:Ne.EXPONENTIAL_HISTOGRAM,dataPoints:i.map(function(s){var o=T8(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 y8,Ws,Pp,yM=m(()=>{"use strict";bn();K();Pn();y8=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},Ws=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=Oe(Date.now())},t.prototype.setStartTime=function(e){this.startTime=e},t.prototype.toPointValue=function(){return this._current},t}(),Pp=function(){function t(){this.kind=tt.LAST_VALUE}return t.prototype.createAccumulation=function(e){return new Ws(e)},t.prototype.merge=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new Ws(e.startTime,i.toPointValue(),i.sampleTime)},t.prototype.diff=function(e,n){var i=Nt(n.sampleTime)>=Nt(e.sampleTime)?n:e;return new Ws(n.startTime,i.toPointValue(),i.sampleTime)},t.prototype.toMetricData=function(e,n,i,a){return{descriptor:e,aggregationTemporality:n,dataPointType:Ne.GAUGE,dataPoints:i.map(function(s){var o=y8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}})}},t}()});var A8,xn,zs,AM=m(()=>{"use strict";bn();Pn();A8=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},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}(),zs=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:Ne.SUM,dataPoints:i.map(function(s){var o=A8(s,2),r=o[0],u=o[1];return{attributes:r,startTime:u.startTime,endTime:a,value:u.toPointValue()}}),isMonotonic:this.monotonic}},t}()});var OM=m(()=>{"use strict";nM();aM();mM();yM();AM()});var Ur,Be,bp,xp,Mp,Lp,Ip,Cp,wp,gM,NM,RM,PM,O8,g8,Xs=m(()=>{"use strict";M();OM();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 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)}}(),Be=function(){function t(){}return t.Drop=function(){return gM},t.Sum=function(){return NM},t.LastValue=function(){return RM},t.Histogram=function(){return PM},t.ExponentialHistogram=function(){return O8},t.Default=function(){return g8},t}(),bp=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 Tp,e}(Be),xp=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 zs(!0),e.NON_MONOTONIC_INSTANCE=new zs(!1),e}(Be),Mp=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 Pp,e}(Be),Lp=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 ks([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0),e}(Be),Ip=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,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 ks(this._boundaries,this._recordMinMax)},e}(Be),Cp=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 Rp(this._maxSize,this._recordMinMax)},e}(Be),wp=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 NM;case C.GAUGE:case C.OBSERVABLE_GAUGE:return RM;case C.HISTOGRAM:return n.advice.explicitBucketBoundaries?new Ip(n.advice.explicitBucketBoundaries):PM}return g.warn("Unable to recognize instrument type: "+n.type),gM},e.prototype.createAggregator=function(n){return this._resolve(n).createAggregator(n)},e}(Be),gM=new bp,NM=new xp,RM=new Mp,PM=new Lp,O8=new Cp,g8=new wp});var bM,Js,Up=m(()=>{"use strict";Xs();Vs();bM=function(t){return Be.Default()},Js=function(t){return ge.CUMULATIVE}});var Dp,Vp,xM,N8,Qs,Bp=m(()=>{"use strict";M();ft();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}}},xM=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},N8=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))},Qs=function(){function t(e){var n,i,a;this._shutdown=!1,this._aggregationSelector=(n=e?.aggregationSelector)!==null&&n!==void 0?n:bM,this._aggregationTemporalitySelector=(i=e?.aggregationTemporalitySelector)!==null&&i!==void 0?i:Js,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 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(N8([this._sdkMetricProducer.collect({timeoutMillis:e?.timeoutMillis})],xM(this._metricProducers.map(function(l){return l.collect({timeoutMillis:e?.timeoutMillis})})),!1))];case 1:return n=xM.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,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 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,lr(this.onForceFlush(),e.timeoutMillis)];case 3:return n.sent(),[2]}})})},t}()});var R8,Zs,eu,P8,b8,tu,MM=m(()=>{"use strict";M();K();Bp();ft();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 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)}}(),Zs=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())})},eu=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}}},P8=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},b8=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))},tu=function(t){R8(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 Zs(this,void 0,void 0,function(){var n;return eu(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 ii?(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 Zs(this,void 0,void 0,function(){var a,s,o,r,u,l;return eu(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,b8(["PeriodicExportingMetricReader: metrics collection errors"],P8(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,oi._export(this._exporter,s)];case 6:if(u=c.sent(),u.code!==W.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),sr(this._interval)},e.prototype.onForceFlush=function(){return Zs(this,void 0,void 0,function(){return eu(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 Zs(this,void 0,void 0,function(){return eu(this,function(n){switch(n.label){case 0:return this._interval&&clearInterval(this._interval),[4,this.onForceFlush()];case 1:return n.sent(),[4,this._exporter.shutdown()];case 2:return n.sent(),[2]}})})},e}(Qs)});var LM,IM=m(()=>{"use strict";K();LM=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 CM,wM,UM=m(()=>{"use strict";K();Up();CM=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.")},wM=function(){function t(e){var n;this._shutdown=!1,this._temporalitySelector=(n=e?.temporalitySelector)!==null&&n!==void 0?n:Js}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,s,o;try{for(var r=CM(e.scopeMetrics),u=r.next();!u.done;u=r.next()){var l=u.value;try{for(var c=(s=void 0,CM(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:W.SUCCESS})},t}()});var DM,VM=m(()=>{"use strict";DM=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 ui(t){return t instanceof nu}var Dr,ru,BM,GM,kM,HM,nu,FM,YM,qM,ou=m(()=>{"use strict";M();K();Dr=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)}}(),ru=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,Oe(Date.now()))},t}(),BM=function(t){Dr(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}(ru),GM=function(t){Dr(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}(ru),kM=function(t){Dr(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}(ru),HM=function(t){Dr(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}(ru),nu=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}(),FM=function(t){Dr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(nu),YM=function(t){Dr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(nu),qM=function(t){Dr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(nu)});var jM,$M=m(()=>{"use strict";Ut();ou();jM=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 kM(a,i)},t.prototype.createHistogram=function(e,n){var i=Rt(e,C.HISTOGRAM,n),a=this._meterSharedState.registerMetricStorage(i);return new HM(a,i)},t.prototype.createCounter=function(e,n){var i=Rt(e,C.COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new GM(a,i)},t.prototype.createUpDownCounter=function(e,n){var i=Rt(e,C.UP_DOWN_COUNTER,n),a=this._meterSharedState.registerMetricStorage(i);return new BM(a,i)},t.prototype.createObservableGauge=function(e,n){var i=Rt(e,C.OBSERVABLE_GAUGE,n),a=this._meterSharedState.registerAsyncMetricStorage(i);return new YM(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 FM(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 qM(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 iu,Gp=m(()=>{"use strict";Ut();iu=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 x8,KM,M8,pt,li=m(()=>{"use strict";ft();x8=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)}}(),KM=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}}},M8=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){x8(e,t);function e(){return t.call(this,Bs)||this}return e}(M8)});var L8,au,kp=m(()=>{"use strict";ft();li();L8=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},au=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=Bs(this._overflowAttributes)}return t.prototype.record=function(e,n,i,a){var s=this,o=this._activeCollectionStorage.get(n);if(!o){if(this._activeCollectionStorage.size>=this._cardinalityLimit){var r=this._activeCollectionStorage.getOrDefault(this._overflowAttributes,function(){return s._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 s=L8(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)}else if(i._cumulativeMemoStorage.size>=i._cardinalityLimit&&(o=i._overflowAttributes,u=i._overflowHashCode,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 pt,e},t}()});function I8(t){return Array.from(t.entries())}var Hp,WM,su,Fp=m(()=>{"use strict";Vs();li();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.")},WM=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},su=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===ge.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=I8(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 pt,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=WM(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=WM(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 C8,w8,zM,XM=m(()=>{"use strict";Gp();kp();Fp();li();C8=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)}}(),w8=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},zM=function(t){C8(e,t);function e(n,i,a,s,o){var r=t.call(this,n)||this;return r._attributesProcessor=a,r._aggregationCardinalityLimit=o,r._deltaMetricStorage=new au(i,r._aggregationCardinalityLimit),r._temporalMetricStorage=new su(i,s),r}return e.prototype.record=function(n,i){var a=this,s=new pt;Array.from(n.entries()).forEach(function(o){var r=w8(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}(iu)});function Yp(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
43
|
`),n}function U8(t,e){return" - use valueType '"+t.valueType+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function D8(t,e){return" - use unit '"+t.unit+"' on instrument creation or use an instrument name other than '"+e.name+"'"}function V8(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 B8(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 qp(t,e){return t.valueType!==e.valueType?U8(t,e):t.unit!==e.unit?D8(t,e):t.type!==e.type?V8(t,e):t.description!==e.description?B8(t,e):""}var JM=m(()=>{"use strict"});var jp,QM,ZM=m(()=>{"use strict";Ut();M();JM();jp=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.")},QM=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,s,o=[];try{for(var r=jp(this._sharedRegistry.values()),u=r.next();!u.done;u=r.next()){var l=u.value;o=o.concat(l)}}catch(
|
45
|
+
- OR - create a new view with the name `+e.name+" and description '"+t.description+"' and InstrumentSelector "+i}function qp(t,e){return t.valueType!==e.valueType?U8(t,e):t.unit!==e.unit?D8(t,e):t.type!==e.type?V8(t,e):t.description!==e.description?B8(t,e):""}var JM=m(()=>{"use strict"});var jp,QM,ZM=m(()=>{"use strict";Ut();M();JM();jp=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.")},QM=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,s,o=[];try{for(var r=jp(this._sharedRegistry.values()),u=r.next();!u.done;u=r.next()){var l=u.value;o=o.concat(l)}}catch(f){n={error:f}}finally{try{u&&!u.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=jp(c.values()),_=p.next();!_.done;_=p.next()){var l=_.value;o=o.concat(l)}}catch(f){a={error:f}}finally{try{_&&!_.done&&(s=p.return)&&s.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,s=null;try{for(var o=jp(n),r=o.next();!r.done;r=o.next()){var u=r.value,l=u.getInstrumentDescriptor();iM(l,e)?(l.description!==e.description&&(e.description.length>l.description.length&&u.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
47
|
`,Yp(l,e),`The longer description will be used.
|
48
48
|
To resolve the conflict:`,qp(l,e))),s=u):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
50
|
`,Yp(l,e),`To resolve the conflict:
|
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 eL,tL=m(()=>{"use strict";eL=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 rL,nL,oL=m(()=>{"use strict";M();li();ou();rL=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}(),nL=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,i){if(i===void 0&&(i={}),!!ui(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 $p,Kp,iL,aL,sL,uL=m(()=>{"use strict";M();ou();oL();ft();$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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}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}}},iL=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},aL=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(){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(ui));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(ui)),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,Qx(aL(aL([],iL(i),!1),iL(a),!1))];case 1:return s=r.sent(),o=s.filter(Zx).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 rL(o._descriptor.name,o._descriptor.valueType),u=Promise.resolve(s(r)),n!=null&&(u=lr(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 nL,u=Promise.resolve(s(r)),n!=null&&(u=lr(u,n)),[4,u];case 1:return l.sent(),o.forEach(function(c){var f=r._buffer.get(c);f!=null&&c._metricStorages.forEach(function(_){_.record(f,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&&eM(i.instruments,n)})},t}()});var G8,lL,cL=m(()=>{"use strict";Gp();kp();Fp();G8=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)}}(),lL=function(t){G8(e,t);function e(n,i,a,s,o){var r=t.call(this,n)||this;return r._attributesProcessor=a,r._aggregationCardinalityLimit=o,r._deltaMetricStorage=new au(i,r._aggregationCardinalityLimit),r._temporalMetricStorage=new su(i,s),r}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}(iu)});var fL,xn,k8,pL,H8,Wp=m(()=>{"use strict";fL=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 H8},t}(),k8=function(t){fL(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,i){return n},e}(xn),pL=function(t){fL(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),H8=new k8});var F8,Y8,q8,dL,EL=m(()=>{"use strict";Ut();$M();ft();XM();ZM();tL();uL();cL();Wp();F8=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},Y8=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}}},q8=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},dL=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new QM,this.observableRegistry=new sL,this.meter=new jM(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,lL);return n.length===1?n[0]:new eL(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,zM);return n},t.prototype.collect=function(e,n,i){return F8(this,void 0,void 0,function(){var a,s,o;return Y8(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(Xx),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=oM(u,e),c=i.metricStorageRegistry.findOrUpdateCompatibleStorage(l);if(c!=null)return c;var f=u.aggregation.createAggregator(l),_=new n(l,f,u.attributesProcessor,i._meterProviderSharedState.metricCollectors,u.aggregationCardinalityLimit);return i.metricStorageRegistry.register(_),_});if(s.length===0){var o=this._meterProviderSharedState.selectAggregations(e.type),r=o.map(function(u){var l=q8(u,2),c=l[0],f=l[1],_=i.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(c,e);if(_!=null)return _;var p=f.createAggregator(e),S=c.selectCardinalityLimit(e.type),v=new n(e,p,xn.Noop(),[c],S);return i.metricStorageRegistry.registerForCollector(c,v),v});s=s.concat(r)}return s},t}()});var j8,_L,SL=m(()=>{"use strict";ft();VM();EL();j8=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.")},_L=function(){function t(e){this.resource=e,this.viewRegistry=new DM,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=Jx(e),i=this.meterSharedStates.get(n);return i==null&&(i=new dL(this,e),this.meterSharedStates.set(n,i)),i},t.prototype.selectAggregations=function(e){var n,i,a=[];try{for(var s=j8(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 uu,lu,$8,K8,hL,TL=m(()=>{"use strict";K();uu=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},lu=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}}},$8=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},K8=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))},hL=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return uu(this,void 0,void 0,function(){var n,i,a,s,o=this;return lu(this,function(r){switch(r.label){case 0:return n=Oe(Date.now()),i=[],a=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(function(u){return uu(o,void 0,void 0,function(){var l;return lu(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,K8([],$8(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 uu(this,void 0,void 0,function(){return lu(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 uu(this,void 0,void 0,function(){return lu(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 W8(t,e){var n=e??wt.empty();return t?wt.default().merge(n):n}var vL,mL,yL,ci,AL=m(()=>{"use strict";M();Ds();SL();TL();vL=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},mL=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}}},yL=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.")};ci=function(){function t(e){var n,i,a,s,o;if(this._shutdown=!1,this._sharedState=new _L(W8((o=e?.mergeResourceWithDefaults)!==null&&o!==void 0?o:!0,e?.resource)),e?.views!=null&&e.views.length>0)try{for(var r=yL(e.views),u=r.next();!u.done;u=r.next()){var l=u.value;this._sharedState.viewRegistry.addView(l)}}catch(p){n={error:p}}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=yL(e.readers),f=c.next();!f.done;f=c.next()){var _=f.value;this.addMetricReader(_)}}catch(p){a={error:p}}finally{try{f&&!f.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"),hE()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new hL(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return vL(this,void 0,void 0,function(){return mL(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 vL(this,void 0,void 0,function(){return mL(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 z8,cu,Mn,fu=m(()=>{"use strict";z8=/[\^$\\.+?()[\]{}|]/g,cu=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(z8,"\\$&").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 OL,gL=m(()=>{"use strict";fu();OL=function(){function t(e){var n;this._nameFilter=new cu((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 NL,RL=m(()=>{"use strict";fu();NL=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 X8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var PL,bL=m(()=>{"use strict";fu();Wp();gL();RL();Xs();PL=function(){function t(e){var n;if(X8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||cu.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 pL(e.attributeKeys):this.attributesProcessor=xn.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:Be.Default(),this.instrumentSelector=new OL({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new NL({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl}),this.aggregationCardinalityLimit=e.aggregationCardinalityLimit}return t}()});var zp={};Je(zp,{Aggregation:()=>Be,AggregationTemporality:()=>ge,ConsoleMetricExporter:()=>wM,DataPointType:()=>Ne,DefaultAggregation:()=>wp,DropAggregation:()=>bp,ExplicitBucketHistogramAggregation:()=>Ip,ExponentialHistogramAggregation:()=>Cp,HistogramAggregation:()=>Lp,InMemoryMetricExporter:()=>LM,InstrumentType:()=>C,LastValueAggregation:()=>Mp,MeterProvider:()=>ci,MetricReader:()=>Qs,PeriodicExportingMetricReader:()=>tu,SumAggregation:()=>xp,TimeoutError:()=>ii,View:()=>PL});var Ln=m(()=>{"use strict";Vs();Rn();Bp();MM();IM();UM();Ut();AL();Xs();bL();ft()});var Vr,Xp=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(Vr||(Vr={}))});var pu,xL=m(()=>{"use strict";pu=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 J8,Br,du=m(()=>{"use strict";J8=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)}}(),Br=function(t){J8(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)});function Q8(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 Eu(t){if(t!=null)return function(){return t}}function _u(t,e,n){var i,a,s,o,r,u;return{timeoutMillis:Q8((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 Su(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var fi=m(()=>{"use strict"});var hu,ML=m(()=>{"use strict";(function(t){t.NONE="none",t.GZIP="gzip"})(hu||(hu={}))});function Tu(t){return new tW(t.concurrencyLimit)}var Z8,eW,tW,Jp=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}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._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 Z8(this,void 0,void 0,function(){return eW(this,function(e){switch(e.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return e.sent(),[2]}})})},t}()});function rW(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function LL(){return{handleResponse:function(t){t==null||!rW(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||g.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}var IL=m(()=>{"use strict";M()});function vu(t,e){return new iW(t.transport,t.serializer,LL(),t.promiseHandler,e.timeout)}var nW,oW,iW,Qp=m(()=>{"use strict";K();du();IL();M();nW=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},oW=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}}},iW=function(){function t(e,n,i,a,s){this._transport=e,this._serializer=n,this._responseHandler=i,this._promiseQueue=a,this._timeout=s,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(s){if(s.status==="success"){if(s.data!=null)try{i._responseHandler.handleResponse(i._serializer.deserializeResponse(s.data))}catch(o){i._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,s.data)}n({code:W.SUCCESS});return}else if(s.status==="failure"&&s.error){n({code:W.FAILED,error:s.error});return}else s.status==="retryable"?n({code:W.FAILED,error:new Br("Export failed with retryable status")}):n({code:W.FAILED,error:new Br("Export failed with unknown error")})},function(s){return n({code:W.FAILED,error:s})}))},t.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},t.prototype.shutdown=function(){return nW(this,void 0,void 0,function(){return oW(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 CL(t,e,n){return vu({transport:n,serializer:e,promiseHandler:Tu(t)},{timeout:t.timeoutMillis})}var wL=m(()=>{"use strict";Jp();Qp()});var mu={};Je(mu,{CompressionAlgorithm:()=>hu,OTLPExporterBase:()=>pu,OTLPExporterError:()=>Br,createOtlpNetworkExportDelegate:()=>CL,getSharedConfigurationDefaults:()=>Su,mergeOtlpSharedConfigurationWithDefaults:()=>_u});var pi=m(()=>{"use strict";xL();du();fi();ML();wL()});function sW(){var t=Me(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?di:e==="delta"?yu:e==="lowmemory"?Au:(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."),di)}function uW(t){return t!=null?t===Vr.DELTA?yu:t===Vr.LOWMEMORY?Au:di:sW()}function lW(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return Be.Default()}}var aW,di,yu,Au,Ou,Zp=m(()=>{"use strict";K();Ln();Xp();pi();M();aW=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)}}(),di=function(){return ge.CUMULATIVE},yu=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return ge.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return ge.CUMULATIVE}},Au=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return ge.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return ge.CUMULATIVE}};Ou=function(t){aW(e,t);function e(n,i){var a=t.call(this,n)||this;return a._aggregationSelector=lW(i),a._aggregationTemporalitySelector=uW(i?.temporalityPreference),a}return e.prototype.selectAggregation=function(n){return this._aggregationSelector(n)},e.prototype.selectAggregationTemporality=function(n){return this._aggregationTemporalitySelector(n)},e}(pu)});var gu=h((due,UL)=>{"use strict";var I=WU(),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 f=r.uint32();switch(f>>>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(f&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 f=r.uint32();switch(f>>>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(f&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 f=0;f<r.attributes.length;++f)l.attributes[f]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[f],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 f=r.uint32();switch(f>>>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(f&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 f=r.uint32();switch(f>>>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(f&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 f=r.uint32();switch(f>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(r,r.uint32());break}default:r.skipType(f&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 f=r.uint32();switch(f>>>3){case 1:{c.rejectedSpans=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(f&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 f=r.uint32();switch(f>>>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(f&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 f=r.uint32();switch(f>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(f&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 f=r.uint32();switch(f>>>3){case 1:{c.rejectedDataPoints=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(f&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 f=r.uint32();switch(f>>>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(f&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 f=r.uint32();switch(f>>>3){case 1:{c.partialSuccess=d.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(r,r.uint32());break}default:r.skipType(f&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 f=r.uint32();switch(f>>>3){case 1:{c.rejectedLogRecords=r.int64();break}case 2:{c.errorMessage=r.string();break}default:r.skipType(f&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 f=r.uint32();switch(f>>>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(f&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 f=r.uint32();switch(f>>>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(f&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 f=0;f<r.exemplars.length;++f)l.exemplars[f]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[f],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 f=0;f<r.attributes.length;++f)l.attributes[f]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[f],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 f=r.uint32();switch(f>>>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=[]),(f&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=[]),(f&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(f&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 f=0;f<r.bucketCounts.length;++f)typeof r.bucketCounts[f]=="number"?l.bucketCounts[f]=u.longs===String?String(r.bucketCounts[f]):r.bucketCounts[f]:l.bucketCounts[f]=u.longs===String?E.Long.prototype.toString.call(r.bucketCounts[f]):u.longs===Number?new E.LongBits(r.bucketCounts[f].low>>>0,r.bucketCounts[f].high>>>0).toNumber():r.bucketCounts[f]}if(r.explicitBounds&&r.explicitBounds.length){l.explicitBounds=[];for(var f=0;f<r.explicitBounds.length;++f)l.explicitBounds[f]=u.json&&!isFinite(r.explicitBounds[f])?String(r.explicitBounds[f]):r.explicitBounds[f]}if(r.exemplars&&r.exemplars.length){l.exemplars=[];for(var f=0;f<r.exemplars.length;++f)l.exemplars[f]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[f],u)}if(r.attributes&&r.attributes.length){l.attributes=[];for(var f=0;f<r.attributes.length;++f)l.attributes[f]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[f],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 f=r.uint32();switch(f>>>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(f&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 f=0;f<r.attributes.length;++f)l.attributes[f]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.attributes[f],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 f=0;f<r.exemplars.length;++f)l.exemplars[f]=d.opentelemetry.proto.metrics.v1.Exemplar.toObject(r.exemplars[f],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,f=new d.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets;u.pos<c;){var _=u.uint32();switch(_>>>3){case 1:{f.offset=u.sint32();break}case 2:{if(f.bucketCounts&&f.bucketCounts.length||(f.bucketCounts=[]),(_&7)===2)for(var p=u.uint32()+u.pos;u.pos<p;)f.bucketCounts.push(u.uint64());else f.bucketCounts.push(u.uint64());break}default:u.skipType(_&7);break}}return f},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 f=0;f<u.bucketCounts.length;++f)typeof u.bucketCounts[f]=="number"?c.bucketCounts[f]=l.longs===String?String(u.bucketCounts[f]):u.bucketCounts[f]:c.bucketCounts[f]=l.longs===String?E.Long.prototype.toString.call(u.bucketCounts[f]):l.longs===Number?new E.LongBits(u.bucketCounts[f].low>>>0,u.bucketCounts[f].high>>>0).toNumber(!0):u.bucketCounts[f]}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 f=r.uint32();switch(f>>>3){case 1:{c.quantile=r.double();break}case 2:{c.value=r.double();break}default:r.skipType(f&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 f=r.uint32();switch(f>>>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(f&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 f=0;f<r.filteredAttributes.length;++f)l.filteredAttributes[f]=d.opentelemetry.proto.common.v1.KeyValue.toObject(r.filteredAttributes[f],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}();UL.exports=d});function VL(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function cW(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function BL(t){var e=VL(t);return cW(e)}function fW(t){var e=VL(t);return e.toString()}function DL(t){return t}function GL(t){if(t!==void 0)return ir(t)}function In(t){var e,n;if(t===void 0)return dW;var i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?BL:pW,encodeSpanContext:a?DL:ir,encodeOptionalSpanContext:a?DL:GL}}var pW,dW,Nu=m(()=>{"use strict";K();pW=typeof BigInt<"u"?fW:Ns;dW={encodeHrTime:BL,encodeSpanContext:ir,encodeOptionalSpanContext:GL}});function Cn(t){return{attributes:Dt(t.attributes),droppedAttributesCount:0}}function wn(t){return{name:t.name,version:t.version}}function Dt(t){return Object.keys(t).map(function(e){return Ru(e,t[e])})}function Ru(t,e){return{key:t,value:Pu(e)}}function Pu(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(Pu)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var i=EW(n,2),a=i[0],s=i[1];return Ru(a,s)})}}:{}}var EW,bu=m(()=>{"use strict";EW=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 xu(t,e){var n=In(e);return{resourceLogs:hW(t,n)}}function SW(t){var e,n,i=new Map;try{for(var a=_W(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,f=c===void 0?"":c,_=u.schemaUrl,p=_===void 0?"":_,S=i.get(r);S||(S=new Map,i.set(r,S));var v=l+"@"+f+":"+p,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 hW(t,e){var n=SW(t);return Array.from(n,function(i){var a=kL(i,2),s=a[0],o=a[1];return{resource:Cn(s),scopeLogs:Array.from(o,function(r){var u=kL(r,2),l=u[1];return{scope:wn(l[0].instrumentationScope),logRecords:l.map(function(c){return TW(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function TW(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:Pu(t.body),attributes:vW(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 vW(t){return Object.keys(t).map(function(e){return Ru(e,t[e])})}var _W,kL,ed=m(()=>{"use strict";Nu();bu();_W=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.")},kL=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 td,mW,yW,rd,HL=m(()=>{"use strict";td=Re(gu());ed();mW=td.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,yW=td.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,rd={serializeRequest:function(t){var e=xu(t);return yW.encode(e).finish()},deserializeResponse:function(t){return mW.decode(t)}}});var FL=m(()=>{"use strict";HL()});function AW(t,e){var n=In(e);return{resource:Cn(t.resource),schemaUrl:void 0,scopeMetrics:OW(t.scopeMetrics,n)}}function OW(t,e){return Array.from(t.map(function(n){return{scope:wn(n.scope),metrics:n.metrics.map(function(i){return gW(i,e)}),schemaUrl:n.scope.schemaUrl}}))}function gW(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=bW(t.aggregationTemporality);switch(t.dataPointType){case Ne.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:YL(t,e)};break;case Ne.GAUGE:n.gauge={dataPoints:YL(t,e)};break;case Ne.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:RW(t,e)};break;case Ne.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:PW(t,e)};break}return n}function NW(t,e,n){var i={attributes:Dt(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 YL(t,e){return t.dataPoints.map(function(n){return NW(n,t.descriptor.valueType,e)})}function RW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Dt(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 PW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Dt(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 bW(t){switch(t){case ge.DELTA:return 1;case ge.CUMULATIVE:return 2}}function Mu(t,e){return{resourceMetrics:t.map(function(n){return AW(n,e)})}}var nd=m(()=>{"use strict";M();Ln();Nu();bu()});var od,xW,MW,id,qL=m(()=>{"use strict";od=Re(gu());nd();xW=od.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,MW=od.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,id={serializeRequest:function(t){var e=Mu([t]);return MW.encode(e).finish()},deserializeResponse:function(t){return xW.decode(t)}}});var jL=m(()=>{"use strict";qL()});function CW(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:Dt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(s){return UW(s,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(s){return wW(s,e)}),droppedLinksCount:t.droppedLinksCount}}function wW(t,e){var n;return{attributes:t.attributes?Dt(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?Dt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Lu(t,e){var n=In(e);return{resourceSpans:VW(t,n)}}function DW(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 VW(t,e){for(var n=DW(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(),f=c.next();!f.done;){var _=f.value;if(_.length>0){var p=_.map(function(v){return CW(v,e)});l.push({scope:wn(_[0].instrumentationLibrary),spans:p,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}f=c.next()}var S={resource:Cn(r),scopeSpans:l,schemaUrl:void 0};i.push(S),s=a.next()}return i}var LW,IW,ad=m(()=>{"use strict";bu();Nu();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}});var sd,BW,GW,ud,$L=m(()=>{"use strict";sd=Re(gu());ad();BW=sd.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,GW=sd.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,ud={serializeRequest:function(t){var e=Lu(t);return GW.encode(e).finish()},deserializeResponse:function(t){return BW.decode(t)}}});var KL=m(()=>{"use strict";$L()});var ld,WL=m(()=>{"use strict";ed();ld={serializeRequest:function(t){var e=xu(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 zL=m(()=>{"use strict";WL()});var Ei,XL=m(()=>{"use strict";nd();Ei={serializeRequest:function(t){var e=Mu([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))}}});var JL=m(()=>{"use strict";XL()});var cd,QL=m(()=>{"use strict";ad();cd={serializeRequest:function(t){var e=Lu(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 ZL=m(()=>{"use strict";QL()});var fd={};Je(fd,{JsonLogsSerializer:()=>ld,JsonMetricsSerializer:()=>Ei,JsonTraceSerializer:()=>cd,ProtobufLogsSerializer:()=>rd,ProtobufMetricsSerializer:()=>id,ProtobufTraceSerializer:()=>ud});var Iu=m(()=>{"use strict";FL();jL();KL();zL();JL();ZL()});var eI,tI=m(()=>{"use strict";eI="0.57.0"});function rI(t){var e=[429,502,503,504];return e.includes(t)}function nI(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 oI=m(()=>{"use strict"});var sI={};Je(sI,{compressAndSend:()=>aI,createHttpAgent:()=>YW,sendWithHttp:()=>HW});import*as Cu from"http";import*as wu from"https";import*as iI from"zlib";import{Readable as kW}from"stream";function HW(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:pd({},t.headers()),agent:e},u=s.protocol==="http:"?Cu.request:wu.request,l=u(r,function(f){var _=[];f.on("data",function(p){return _.push(p)}),f.on("end",function(){if(f.statusCode&&f.statusCode<299)i({status:"success",data:Buffer.concat(_)});else if(f.statusCode&&rI(f.statusCode))i({status:"retryable",retryInMillis:nI(f.headers["retry-after"])});else{var p=new Br(f.statusMessage,f.statusCode,Buffer.concat(_).toString());i({status:"failure",error:p})}})});l.setTimeout(a,function(){l.destroy(),i({status:"failure",error:new Error("Request Timeout")})}),l.on("error",function(f){i({status:"failure",error:f})});var c=o>=14?"close":"abort";l.on(c,function(){i({status:"failure",error:new Error("Request timed out")})}),aI(l,t.compression,n,function(f){i({status:"failure",error:f})})}function aI(t,e,n,i){var a=FW(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(iI.createGzip()).on("error",i)),a.pipe(t).on("error",i)}function FW(t){var e=new kW;return e.push(t),e.push(null),e}function YW(t,e){var n=new URL(t),i=n.protocol==="http:"?Cu.Agent:wu.Agent;return new i(e)}var pd,uI=m(()=>{"use strict";oI();du();pd=function(){return pd=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},pd.apply(this,arguments)}});function lI(t){return new $W(t)}var qW,jW,$W,cI=m(()=>{"use strict";qW=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},jW=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}}},$W=function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return qW(this,void 0,void 0,function(){var i,a,s,o=this;return jW(this,function(r){return this._send==null&&(i=(uI(),Y(sI)),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 ZW(){return Math.random()*(2*fI)-fI}function pI(t){return new ez(t.transport)}var KW,WW,zW,XW,JW,QW,fI,ez,dI=m(()=>{"use strict";KW=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},WW=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}}},zW=5,XW=1e3,JW=5e3,QW=1.5,fI=.2;ez=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 KW(this,void 0,void 0,function(){var a,s,o,r,u,l,c;return WW(this,function(f){switch(f.label){case 0:return a=Date.now()+n,[4,this._transport.send(e,n)];case 1:s=f.sent(),o=zW,r=XW,f.label=2;case 2:return s.status==="retryable"&&o>0?(o--,u=Math.max(Math.min(r,JW)+ZW(),0),r=r*QW,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=f.sent(),[3,2];case 4:return[2,s]}})})},t.prototype.shutdown=function(){return this._transport.shutdown()},t}()});function Uu(t,e){return vu({transport:pI({transport:lI(t)}),serializer:e,promiseHandler:Tu(t)},{timeout:t.timeoutMillis})}var EI=m(()=>{"use strict";Qp();cI();Jp();dI()});function _I(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 tz(t){var e=_I("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=_I("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 rz(t){var e=SI("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=SI("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function Du(t){return{timeoutMillis:tz(t),compression:rz(t)}}var dd=m(()=>{"use strict";M()});function hI(t){return function(){var e,n={};return Object.entries((e=t?.())!==null&&e!==void 0?e:{}).forEach(function(i){var a=nz(i,2),s=a[0],o=a[1];typeof o<"u"?n[s]=String(o):g.warn('Header "'+s+'" has invalid value ('+o+") and will be ignored")}),n}}var nz,TI=m(()=>{"use strict";M();nz=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 oz(t,e,n){var i=Gr({},n()),a={};return function(){return e!=null&&Object.assign(a,e()),t!=null&&Object.assign(a,t()),Object.assign(a,i)}}function iz(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function vI(t,e,n){var i,a,s,o;return Gr(Gr({},_u(t,e,n)),{headers:oz(hI(t.headers),e.headers,n.headers),url:(a=(i=iz(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url,agentOptions:(o=(s=t.agentOptions)!==null&&s!==void 0?s:e.agentOptions)!==null&&o!==void 0?o:n.agentOptions})}function mI(t,e){return Gr(Gr({},Su()),{headers:function(){return t},url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}})}var Gr,yI=m(()=>{"use strict";fi();TI();Gr=function(){return Gr=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},Gr.apply(this,arguments)}});function az(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 sz(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 uz(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 lz(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return uz(n,t)}function cz(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 sz(n)}function AI(t,e){var n;return Vu(Vu({},Du(t)),{url:(n=cz(t))!==null&&n!==void 0?n:lz(e),headers:Eu(az(t))})}var Vu,OI=m(()=>{"use strict";K();M();dd();fi();Vu=function(){return Vu=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},Vu.apply(this,arguments)}});function fz(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 Bu(t,e,n,i){return t.metadata&&g.warn("Metadata cannot be set when using http"),vI({url:t.url,headers:Eu(t.headers),concurrencyLimit:t.concurrencyLimit,timeoutMillis:t.timeoutMillis,compression:t.compression,agentOptions:fz(t)},AI(e,n),mI(i,n))}var gI=m(()=>{"use strict";yI();OI();M();fi()});var NI={};Je(NI,{convertLegacyHttpOptions:()=>Bu,createOtlpHttpExportDelegate:()=>Uu,getSharedConfigurationFromEnvironment:()=>Du});var Ed=m(()=>{"use strict";EI();dd();gI()});var pz,Gu,dz,ku,RI=m(()=>{"use strict";Zp();Iu();tI();Ed();pz=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)}}(),Gu=function(){return Gu=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},Gu.apply(this,arguments)},dz={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+eI},ku=function(t){pz(e,t);function e(n){return t.call(this,Uu(Bu(n??{},"METRICS","v1/metrics",Gu(Gu({},dz),{"Content-Type":"application/json"})),Ei),n)||this}return e}(Ou)});var PI=m(()=>{"use strict";RI()});var bI=m(()=>{"use strict";PI()});var xI={};Je(xI,{AggregationTemporalityPreference:()=>Vr,CumulativeTemporalitySelector:()=>di,DeltaTemporalitySelector:()=>yu,LowMemoryTemporalitySelector:()=>Au,OTLPMetricExporter:()=>ku,OTLPMetricExporterBase:()=>Ou});var MI=m(()=>{"use strict";bI();Xp();Zp()});var LI=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.createServiceClientConstructor=void 0;var Ez=Jn();function _z(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:i=>i,requestDeserialize:i=>i,responseSerialize:i=>i,responseDeserialize:i=>i}};return Ez.makeGenericClientConstructor(n,e)}Hu.createServiceClientConstructor=_z});var _i=h(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.createOtlpGrpcExporterTransport=rt.GrpcExporterTransport=rt.createEmptyMetadata=rt.createSslCredentials=rt.createInsecureCredentials=void 0;var Sz=0,hz=2;function Tz(t){return t==="gzip"?hz:Sz}function vz(){let{credentials:t}=Jn();return t.createInsecure()}rt.createInsecureCredentials=vz;function mz(t,e,n){let{credentials:i}=Jn();return i.createSsl(t,e,n)}rt.createSslCredentials=mz;function yz(){let{Metadata:t}=Jn();return new t}rt.createEmptyMetadata=yz;var Fu=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}=LI();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":Tz(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"})})})}};rt.GrpcExporterTransport=Fu;function Az(t){return new Fu(t)}rt.createOtlpGrpcExporterTransport=Az});var II=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.VERSION=void 0;Yu.VERSION="0.57.0"});var VI=h(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.getOtlpGrpcDefaultConfiguration=fr.mergeOtlpGrpcConfigurationWithDefaults=fr.validateAndNormalizeUrl=void 0;var UI=(pi(),Y(mu)),Si=_i(),Oz=II(),gz=L("url"),CI=(M(),Y(Pe));function DI(t){var e;t=t.trim(),t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let i=new gz.URL(t);return i.protocol==="unix:"?t:(i.pathname&&i.pathname!=="/"&&CI.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?:$/))&&CI.diag.warn("URL protocol should be http(s)://. Using http://."),i.host)}fr.validateAndNormalizeUrl=DI;function wI(t,e){for(let[n,i]of Object.entries(e.getMap()))t.get(n).length<1&&t.set(n,i)}function Nz(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,UI.mergeOtlpSharedConfigurationWithDefaults)(t,e,n)),{metadata:()=>{var l,c,f,_;let p=n.metadata();return wI(p,(c=(l=t.metadata)===null||l===void 0?void 0:l.call(t).clone())!==null&&c!==void 0?c:(0,Si.createEmptyMetadata)()),wI(p,(_=(f=e.metadata)===null||f===void 0?void 0:f.call(e))!==null&&_!==void 0?_:(0,Si.createEmptyMetadata)()),p},url:DI(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)})}fr.mergeOtlpGrpcConfigurationWithDefaults=Nz;function Rz(){return Object.assign(Object.assign({},(0,UI.getSharedConfigurationDefaults)()),{metadata:()=>{let t=(0,Si.createEmptyMetadata)();return t.set("User-Agent",`OTel-OTLP-Exporter-JavaScript/${Oz.VERSION}`),t},url:"http://localhost:4317",credentials:t=>t.startsWith("http://")?()=>(0,Si.createInsecureCredentials)():()=>(0,Si.createSslCredentials)()})}fr.getOtlpGrpcDefaultConfiguration=Rz});var FI=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getOtlpGrpcConfigurationFromEnv=void 0;var BI=(K(),Y(Cs)),hi=_i(),Pz=(Ed(),Y(NI)),bz=L("fs"),xz=L("path"),kI=(M(),Y(Pe));function _d(t,e){if(t!=null&&t!=="")return t;if(e!=null&&e!=="")return e}function Mz(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=BI.baggageUtils.parseKeyPairsIntoRecord(i),o=BI.baggageUtils.parseKeyPairsIntoRecord(a);if(Object.keys(s).length===0&&Object.keys(o).length===0)return;let r=Object.assign({},o,s),u=(0,hi.createEmptyMetadata)();for(let[l,c]of Object.entries(r))u.set(l,c);return u}function Lz(t){let e=Mz(t);if(e!=null)return()=>e}function Iz(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 _d(i,a)}function Cz(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 _d(i,a)==="true"}function Sd(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=_d(s,o);if(r!=null)try{return bz.readFileSync(xz.resolve(process.cwd(),r))}catch{kI.diag.warn(n);return}else return}function wz(t){return Sd(`OTEL_EXPORTER_OTLP_${t}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function Uz(t){return Sd(`OTEL_EXPORTER_OTLP_${t}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function GI(t){return Sd(`OTEL_EXPORTER_OTLP_${t}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function HI(t){let e=Uz(t),n=wz(t),i=GI(t),a=e!=null&&n!=null;return i!=null&&!a?(kI.diag.warn("Client key and certificate must both be provided, but one was missing - attempting to create credentials from just the root certificate"),(0,hi.createSslCredentials)(GI(t))):(0,hi.createSslCredentials)(i,e,n)}function Dz(t){return Cz(t)?(0,hi.createInsecureCredentials)():HI(t)}function Vz(t){return Object.assign(Object.assign({},(0,Pz.getSharedConfigurationFromEnvironment)(t)),{metadata:Lz(t),url:Iz(t),credentials:e=>e.startsWith("http://")?()=>(0,hi.createInsecureCredentials)():e.startsWith("https://")?()=>HI(t):()=>Dz(t)})}qu.getOtlpGrpcConfigurationFromEnv=Vz});var qI=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.convertLegacyOtlpGrpcOptions=void 0;var Bz=(M(),Y(Pe)),YI=VI(),Gz=_i(),kz=FI();function Hz(t,e){t.headers&&Bz.diag.warn("Headers cannot be set when using grpc");let n=t.credentials;return(0,YI.mergeOtlpGrpcConfigurationWithDefaults)({url:t.url,metadata:()=>{var i;return(i=t.metadata)!==null&&i!==void 0?i:(0,Gz.createEmptyMetadata)()},compression:t.compression,timeoutMillis:t.timeoutMillis,concurrencyLimit:t.concurrencyLimit,credentials:n!=null?()=>n:void 0},(0,kz.getOtlpGrpcConfigurationFromEnv)(e),(0,YI.getOtlpGrpcDefaultConfiguration)())}ju.convertLegacyOtlpGrpcOptions=Hz});var jI=h($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.createOtlpGrpcExportDelegate=void 0;var Fz=(pi(),Y(mu)),Yz=_i();function qz(t,e,n,i){return(0,Fz.createOtlpNetworkExportDelegate)(t,e,(0,Yz.createOtlpGrpcExporterTransport)({address:t.url,compression:t.compression,credentials:t.credentials,metadata:t.metadata,grpcName:n,grpcPath:i}))}$u.createOtlpGrpcExportDelegate=qz});var hd=h(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.createOtlpGrpcExportDelegate=Un.convertLegacyOtlpGrpcOptions=void 0;var jz=qI();Object.defineProperty(Un,"convertLegacyOtlpGrpcOptions",{enumerable:!0,get:function(){return jz.convertLegacyOtlpGrpcOptions}});var $z=jI();Object.defineProperty(Un,"createOtlpGrpcExportDelegate",{enumerable:!0,get:function(){return $z.createOtlpGrpcExportDelegate}})});var KI=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.OTLPMetricExporter=void 0;var Kz=(MI(),Y(xI)),$I=hd(),Wz=(Iu(),Y(fd)),Td=class extends Kz.OTLPMetricExporterBase{constructor(e){super((0,$I.createOtlpGrpcExportDelegate)((0,$I.convertLegacyOtlpGrpcOptions)(e??{},"METRICS"),Wz.ProtobufMetricsSerializer,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export"),e)}};Ku.OTLPMetricExporter=Td});var WI=h(kr=>{"use strict";var zz=kr&&kr.__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]}),Xz=kr&&kr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&zz(e,t,n)};Object.defineProperty(kr,"__esModule",{value:!0});Xz(KI(),kr)});var Ad=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.PrometheusSerializer=void 0;var Jz=(M(),Y(Pe)),Hr=(Ln(),Y(zp)),zI=(K(),Y(Cs));function zu(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function XI(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),zu(t).replace(/"/g,'\\"')}var Qz=/[^a-z0-9_]/gi,Zz=/_{2,}/g;function md(t){return t.replace(Qz,"_").replace(Zz,"_")}function vd(t,e){return!t.endsWith("_total")&&e===Hr.InstrumentType.COUNTER&&(t=t+"_total"),t}function eX(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function tX(t){switch(t.dataPointType){case Hr.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case Hr.DataPointType.GAUGE:return"gauge";case Hr.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=md(r);s=!0,o+=`${o.length>0?",":""}${l}="${XI(u)}"`}if(a)for(let[r,u]of Object.entries(a)){let l=md(r);s=!0,o+=`${o.length>0?",":""}${l}="${XI(u)}"`}return s&&(t+=`{${o}}`),`${t} ${eX(n)}${i!==void 0?" "+String(i):""}
|
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 eL,tL=m(()=>{"use strict";eL=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 rL,nL,oL=m(()=>{"use strict";M();li();ou();rL=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}(),nL=function(){function t(){this._buffer=new Map}return t.prototype.observe=function(e,n,i){if(i===void 0&&(i={}),!!ui(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 $p,Kp,iL,aL,sL,uL=m(()=>{"use strict";M();ou();oL();ft();$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}}},iL=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},aL=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(){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(ui));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(ui)),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,Qx(aL(aL([],iL(i),!1),iL(a),!1))];case 1:return s=r.sent(),o=s.filter(Zx).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 rL(o._descriptor.name,o._descriptor.valueType),u=Promise.resolve(s(r)),n!=null&&(u=lr(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 nL,u=Promise.resolve(s(r)),n!=null&&(u=lr(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&&eM(i.instruments,n)})},t}()});var G8,lL,cL=m(()=>{"use strict";Gp();kp();Fp();G8=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)}}(),lL=function(t){G8(e,t);function e(n,i,a,s,o){var r=t.call(this,n)||this;return r._attributesProcessor=a,r._aggregationCardinalityLimit=o,r._deltaMetricStorage=new au(i,r._aggregationCardinalityLimit),r._temporalMetricStorage=new su(i,s),r}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}(iu)});var fL,Mn,k8,pL,H8,Wp=m(()=>{"use strict";fL=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)}}(),Mn=function(){function t(){}return t.Noop=function(){return H8},t}(),k8=function(t){fL(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.process=function(n,i){return n},e}(Mn),pL=function(t){fL(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}(Mn),H8=new k8});var F8,Y8,q8,dL,EL=m(()=>{"use strict";Ut();$M();ft();XM();ZM();tL();uL();cL();Wp();F8=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())})},Y8=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}}},q8=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},dL=function(){function t(e,n){this._meterProviderSharedState=e,this._instrumentationScope=n,this.metricStorageRegistry=new QM,this.observableRegistry=new sL,this.meter=new jM(this)}return t.prototype.registerMetricStorage=function(e){var n=this._registerMetricStorage(e,lL);return n.length===1?n[0]:new eL(n)},t.prototype.registerAsyncMetricStorage=function(e){var n=this._registerMetricStorage(e,zM);return n},t.prototype.collect=function(e,n,i){return F8(this,void 0,void 0,function(){var a,s,o;return Y8(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(Xx),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=oM(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,u.aggregationCardinalityLimit);return i.metricStorageRegistry.register(_),_});if(s.length===0){var o=this._meterProviderSharedState.selectAggregations(e.type),r=o.map(function(u){var l=q8(u,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});s=s.concat(r)}return s},t}()});var j8,_L,SL=m(()=>{"use strict";ft();VM();EL();j8=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.")},_L=function(){function t(e){this.resource=e,this.viewRegistry=new DM,this.metricCollectors=[],this.meterSharedStates=new Map}return t.prototype.getMeterSharedState=function(e){var n=Jx(e),i=this.meterSharedStates.get(n);return i==null&&(i=new dL(this,e),this.meterSharedStates.set(n,i)),i},t.prototype.selectAggregations=function(e){var n,i,a=[];try{for(var s=j8(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 uu,lu,$8,K8,hL,TL=m(()=>{"use strict";K();uu=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())})},lu=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}}},$8=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},K8=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))},hL=function(){function t(e,n){this._sharedState=e,this._metricReader=n}return t.prototype.collect=function(e){return uu(this,void 0,void 0,function(){var n,i,a,s,o=this;return lu(this,function(r){switch(r.label){case 0:return n=Oe(Date.now()),i=[],a=[],s=Array.from(this._sharedState.meterSharedStates.values()).map(function(u){return uu(o,void 0,void 0,function(){var l;return lu(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,K8([],$8(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 uu(this,void 0,void 0,function(){return lu(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 uu(this,void 0,void 0,function(){return lu(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 W8(t,e){var n=e??wt.empty();return t?wt.default().merge(n):n}var vL,mL,yL,ci,AL=m(()=>{"use strict";M();Ds();SL();TL();vL=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())})},mL=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}}},yL=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.")};ci=function(){function t(e){var n,i,a,s,o;if(this._shutdown=!1,this._sharedState=new _L(W8((o=e?.mergeResourceWithDefaults)!==null&&o!==void 0?o:!0,e?.resource)),e?.views!=null&&e.views.length>0)try{for(var r=yL(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=yL(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"),hE()):this._sharedState.getMeterSharedState({name:e,version:n,schemaUrl:i.schemaUrl}).meter},t.prototype.addMetricReader=function(e){var n=new hL(this._sharedState,e);e.setMetricProducer(n),this._sharedState.metricCollectors.push(n)},t.prototype.shutdown=function(e){return vL(this,void 0,void 0,function(){return mL(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 vL(this,void 0,void 0,function(){return mL(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 z8,cu,Ln,fu=m(()=>{"use strict";z8=/[\^$\\.+?()[\]{}|]/g,cu=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(z8,"\\$&").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 OL,gL=m(()=>{"use strict";fu();OL=function(){function t(e){var n;this._nameFilter=new cu((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 NL,RL=m(()=>{"use strict";fu();NL=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 X8(t){return t.instrumentName==null&&t.instrumentType==null&&t.instrumentUnit==null&&t.meterName==null&&t.meterVersion==null&&t.meterSchemaUrl==null}var PL,bL=m(()=>{"use strict";fu();Wp();gL();RL();Xs();PL=function(){function t(e){var n;if(X8(e))throw new Error("Cannot create view with no selector arguments supplied");if(e.name!=null&&(e?.instrumentName==null||cu.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 pL(e.attributeKeys):this.attributesProcessor=Mn.Noop(),this.name=e.name,this.description=e.description,this.aggregation=(n=e.aggregation)!==null&&n!==void 0?n:Be.Default(),this.instrumentSelector=new OL({name:e.instrumentName,type:e.instrumentType,unit:e.instrumentUnit}),this.meterSelector=new NL({name:e.meterName,version:e.meterVersion,schemaUrl:e.meterSchemaUrl}),this.aggregationCardinalityLimit=e.aggregationCardinalityLimit}return t}()});var zp={};Je(zp,{Aggregation:()=>Be,AggregationTemporality:()=>ge,ConsoleMetricExporter:()=>wM,DataPointType:()=>Ne,DefaultAggregation:()=>wp,DropAggregation:()=>bp,ExplicitBucketHistogramAggregation:()=>Ip,ExponentialHistogramAggregation:()=>Cp,HistogramAggregation:()=>Lp,InMemoryMetricExporter:()=>LM,InstrumentType:()=>C,LastValueAggregation:()=>Mp,MeterProvider:()=>ci,MetricReader:()=>Qs,PeriodicExportingMetricReader:()=>tu,SumAggregation:()=>xp,TimeoutError:()=>ii,View:()=>PL});var In=m(()=>{"use strict";Vs();Pn();Bp();MM();IM();UM();Ut();AL();Xs();bL();ft()});var Vr,Xp=m(()=>{"use strict";(function(t){t[t.DELTA=0]="DELTA",t[t.CUMULATIVE=1]="CUMULATIVE",t[t.LOWMEMORY=2]="LOWMEMORY"})(Vr||(Vr={}))});var pu,xL=m(()=>{"use strict";pu=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 J8,Br,du=m(()=>{"use strict";J8=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)}}(),Br=function(t){J8(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)});function Q8(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 Eu(t){if(t!=null)return function(){return t}}function _u(t,e,n){var i,a,s,o,r,u;return{timeoutMillis:Q8((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 Su(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}var fi=m(()=>{"use strict"});var hu,ML=m(()=>{"use strict";(function(t){t.NONE="none",t.GZIP="gzip"})(hu||(hu={}))});function Tu(t){return new tW(t.concurrencyLimit)}var Z8,eW,tW,Jp=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._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 Z8(this,void 0,void 0,function(){return eW(this,function(e){switch(e.label){case 0:return[4,Promise.all(this._sendingPromises)];case 1:return e.sent(),[2]}})})},t}()});function rW(t){return Object.prototype.hasOwnProperty.call(t,"partialSuccess")}function LL(){return{handleResponse:function(t){t==null||!rW(t)||t.partialSuccess==null||Object.keys(t.partialSuccess).length===0||g.warn("Received Partial Success response:",JSON.stringify(t.partialSuccess))}}}var IL=m(()=>{"use strict";M()});function vu(t,e){return new iW(t.transport,t.serializer,LL(),t.promiseHandler,e.timeout)}var nW,oW,iW,Qp=m(()=>{"use strict";K();du();IL();M();nW=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())})},oW=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}}},iW=function(){function t(e,n,i,a,s){this._transport=e,this._serializer=n,this._responseHandler=i,this._promiseQueue=a,this._timeout=s,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(s){if(s.status==="success"){if(s.data!=null)try{i._responseHandler.handleResponse(i._serializer.deserializeResponse(s.data))}catch(o){i._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",o,s.data)}n({code:W.SUCCESS});return}else if(s.status==="failure"&&s.error){n({code:W.FAILED,error:s.error});return}else s.status==="retryable"?n({code:W.FAILED,error:new Br("Export failed with retryable status")}):n({code:W.FAILED,error:new Br("Export failed with unknown error")})},function(s){return n({code:W.FAILED,error:s})}))},t.prototype.forceFlush=function(){return this._promiseQueue.awaitAll()},t.prototype.shutdown=function(){return nW(this,void 0,void 0,function(){return oW(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 CL(t,e,n){return vu({transport:n,serializer:e,promiseHandler:Tu(t)},{timeout:t.timeoutMillis})}var wL=m(()=>{"use strict";Jp();Qp()});var mu={};Je(mu,{CompressionAlgorithm:()=>hu,OTLPExporterBase:()=>pu,OTLPExporterError:()=>Br,createOtlpNetworkExportDelegate:()=>CL,getSharedConfigurationDefaults:()=>Su,mergeOtlpSharedConfigurationWithDefaults:()=>_u});var pi=m(()=>{"use strict";xL();du();fi();ML();wL()});function sW(){var t=Me(),e=t.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return e==="cumulative"?di:e==="delta"?yu:e==="lowmemory"?Au:(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."),di)}function uW(t){return t!=null?t===Vr.DELTA?yu:t===Vr.LOWMEMORY?Au:di:sW()}function lW(t){return t?.aggregationPreference?t.aggregationPreference:function(e){return Be.Default()}}var aW,di,yu,Au,Ou,Zp=m(()=>{"use strict";K();In();Xp();pi();M();aW=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)}}(),di=function(){return ge.CUMULATIVE},yu=function(t){switch(t){case C.COUNTER:case C.OBSERVABLE_COUNTER:case C.GAUGE:case C.HISTOGRAM:case C.OBSERVABLE_GAUGE:return ge.DELTA;case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:return ge.CUMULATIVE}},Au=function(t){switch(t){case C.COUNTER:case C.HISTOGRAM:return ge.DELTA;case C.GAUGE:case C.UP_DOWN_COUNTER:case C.OBSERVABLE_UP_DOWN_COUNTER:case C.OBSERVABLE_COUNTER:case C.OBSERVABLE_GAUGE:return ge.CUMULATIVE}};Ou=function(t){aW(e,t);function e(n,i){var a=t.call(this,n)||this;return a._aggregationSelector=lW(i),a._aggregationTemporalitySelector=uW(i?.temporalityPreference),a}return e.prototype.selectAggregation=function(n){return this._aggregationSelector(n)},e.prototype.selectAggregationTemporality=function(n){return this._aggregationTemporalitySelector(n)},e}(pu)});var gu=h((Eue,UL)=>{"use strict";var I=WU(),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}();UL.exports=d});function VL(t){var e=BigInt(1e9);return BigInt(t[0])*e+BigInt(t[1])}function cW(t){var e=Number(BigInt.asUintN(32,t)),n=Number(BigInt.asUintN(32,t>>BigInt(32)));return{low:e,high:n}}function BL(t){var e=VL(t);return cW(e)}function fW(t){var e=VL(t);return e.toString()}function DL(t){return t}function GL(t){if(t!==void 0)return ir(t)}function Cn(t){var e,n;if(t===void 0)return dW;var i=(e=t.useLongBits)!==null&&e!==void 0?e:!0,a=(n=t.useHex)!==null&&n!==void 0?n:!1;return{encodeHrTime:i?BL:pW,encodeSpanContext:a?DL:ir,encodeOptionalSpanContext:a?DL:GL}}var pW,dW,Nu=m(()=>{"use strict";K();pW=typeof BigInt<"u"?fW:Ns;dW={encodeHrTime:BL,encodeSpanContext:ir,encodeOptionalSpanContext:GL}});function wn(t){return{attributes:Dt(t.attributes),droppedAttributesCount:0}}function Un(t){return{name:t.name,version:t.version}}function Dt(t){return Object.keys(t).map(function(e){return Ru(e,t[e])})}function Ru(t,e){return{key:t,value:Pu(e)}}function Pu(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(Pu)}}:e==="object"&&t!=null?{kvlistValue:{values:Object.entries(t).map(function(n){var i=EW(n,2),a=i[0],s=i[1];return Ru(a,s)})}}:{}}var EW,bu=m(()=>{"use strict";EW=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 xu(t,e){var n=Cn(e);return{resourceLogs:hW(t,n)}}function SW(t){var e,n,i=new Map;try{for(var a=_W(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 hW(t,e){var n=SW(t);return Array.from(n,function(i){var a=kL(i,2),s=a[0],o=a[1];return{resource:wn(s),scopeLogs:Array.from(o,function(r){var u=kL(r,2),l=u[1];return{scope:Un(l[0].instrumentationScope),logRecords:l.map(function(c){return TW(c,e)}),schemaUrl:l[0].instrumentationScope.schemaUrl}}),schemaUrl:void 0}})}function TW(t,e){var n,i,a;return{timeUnixNano:e.encodeHrTime(t.hrTime),observedTimeUnixNano:e.encodeHrTime(t.hrTimeObserved),severityNumber:t.severityNumber,severityText:t.severityText,body:Pu(t.body),attributes:vW(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 vW(t){return Object.keys(t).map(function(e){return Ru(e,t[e])})}var _W,kL,ed=m(()=>{"use strict";Nu();bu();_W=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.")},kL=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 td,mW,yW,rd,HL=m(()=>{"use strict";td=Re(gu());ed();mW=td.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,yW=td.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,rd={serializeRequest:function(t){var e=xu(t);return yW.encode(e).finish()},deserializeResponse:function(t){return mW.decode(t)}}});var FL=m(()=>{"use strict";HL()});function AW(t,e){var n=Cn(e);return{resource:wn(t.resource),schemaUrl:void 0,scopeMetrics:OW(t.scopeMetrics,n)}}function OW(t,e){return Array.from(t.map(function(n){return{scope:Un(n.scope),metrics:n.metrics.map(function(i){return gW(i,e)}),schemaUrl:n.scope.schemaUrl}}))}function gW(t,e){var n={name:t.descriptor.name,description:t.descriptor.description,unit:t.descriptor.unit},i=bW(t.aggregationTemporality);switch(t.dataPointType){case Ne.SUM:n.sum={aggregationTemporality:i,isMonotonic:t.isMonotonic,dataPoints:YL(t,e)};break;case Ne.GAUGE:n.gauge={dataPoints:YL(t,e)};break;case Ne.HISTOGRAM:n.histogram={aggregationTemporality:i,dataPoints:RW(t,e)};break;case Ne.EXPONENTIAL_HISTOGRAM:n.exponentialHistogram={aggregationTemporality:i,dataPoints:PW(t,e)};break}return n}function NW(t,e,n){var i={attributes:Dt(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 YL(t,e){return t.dataPoints.map(function(n){return NW(n,t.descriptor.valueType,e)})}function RW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Dt(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 PW(t,e){return t.dataPoints.map(function(n){var i=n.value;return{attributes:Dt(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 bW(t){switch(t){case ge.DELTA:return 1;case ge.CUMULATIVE:return 2}}function Mu(t,e){return{resourceMetrics:t.map(function(n){return AW(n,e)})}}var nd=m(()=>{"use strict";M();In();Nu();bu()});var od,xW,MW,id,qL=m(()=>{"use strict";od=Re(gu());nd();xW=od.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,MW=od.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,id={serializeRequest:function(t){var e=Mu([t]);return MW.encode(e).finish()},deserializeResponse:function(t){return xW.decode(t)}}});var jL=m(()=>{"use strict";qL()});function CW(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:Dt(t.attributes),droppedAttributesCount:t.droppedAttributesCount,events:t.events.map(function(s){return UW(s,e)}),droppedEventsCount:t.droppedEventsCount,status:{code:a.code,message:a.message},links:t.links.map(function(s){return wW(s,e)}),droppedLinksCount:t.droppedLinksCount}}function wW(t,e){var n;return{attributes:t.attributes?Dt(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?Dt(t.attributes):[],name:t.name,timeUnixNano:e.encodeHrTime(t.time),droppedAttributesCount:t.droppedAttributesCount||0}}function Lu(t,e){var n=Cn(e);return{resourceSpans:VW(t,n)}}function DW(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 VW(t,e){for(var n=DW(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 CW(v,e)});l.push({scope:Un(_[0].instrumentationLibrary),spans:f,schemaUrl:_[0].instrumentationLibrary.schemaUrl})}p=c.next()}var S={resource:wn(r),scopeSpans:l,schemaUrl:void 0};i.push(S),s=a.next()}return i}var LW,IW,ad=m(()=>{"use strict";bu();Nu();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}});var sd,BW,GW,ud,$L=m(()=>{"use strict";sd=Re(gu());ad();BW=sd.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,GW=sd.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,ud={serializeRequest:function(t){var e=Lu(t);return GW.encode(e).finish()},deserializeResponse:function(t){return BW.decode(t)}}});var KL=m(()=>{"use strict";$L()});var ld,WL=m(()=>{"use strict";ed();ld={serializeRequest:function(t){var e=xu(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 zL=m(()=>{"use strict";WL()});var Ei,XL=m(()=>{"use strict";nd();Ei={serializeRequest:function(t){var e=Mu([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))}}});var JL=m(()=>{"use strict";XL()});var cd,QL=m(()=>{"use strict";ad();cd={serializeRequest:function(t){var e=Lu(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 ZL=m(()=>{"use strict";QL()});var fd={};Je(fd,{JsonLogsSerializer:()=>ld,JsonMetricsSerializer:()=>Ei,JsonTraceSerializer:()=>cd,ProtobufLogsSerializer:()=>rd,ProtobufMetricsSerializer:()=>id,ProtobufTraceSerializer:()=>ud});var Iu=m(()=>{"use strict";FL();jL();KL();zL();JL();ZL()});var eI,tI=m(()=>{"use strict";eI="0.57.0"});function rI(t){var e=[429,502,503,504];return e.includes(t)}function nI(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 oI=m(()=>{"use strict"});var sI={};Je(sI,{compressAndSend:()=>aI,createHttpAgent:()=>YW,sendWithHttp:()=>HW});import*as Cu from"http";import*as wu from"https";import*as iI from"zlib";import{Readable as kW}from"stream";function HW(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:pd({},t.headers()),agent:e},u=s.protocol==="http:"?Cu.request:wu.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&&rI(p.statusCode))i({status:"retryable",retryInMillis:nI(p.headers["retry-after"])});else{var f=new Br(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")})}),aI(l,t.compression,n,function(p){i({status:"failure",error:p})})}function aI(t,e,n,i){var a=FW(n);e==="gzip"&&(t.setHeader("Content-Encoding","gzip"),a=a.on("error",i).pipe(iI.createGzip()).on("error",i)),a.pipe(t).on("error",i)}function FW(t){var e=new kW;return e.push(t),e.push(null),e}function YW(t,e){var n=new URL(t),i=n.protocol==="http:"?Cu.Agent:wu.Agent;return new i(e)}var pd,uI=m(()=>{"use strict";oI();du();pd=function(){return pd=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},pd.apply(this,arguments)}});function lI(t){return new $W(t)}var qW,jW,$W,cI=m(()=>{"use strict";qW=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())})},jW=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}}},$W=function(){function t(e){this._parameters=e,this._send=null,this._agent=null}return t.prototype.send=function(e,n){return qW(this,void 0,void 0,function(){var i,a,s,o=this;return jW(this,function(r){return this._send==null&&(i=(uI(),Y(sI)),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 ZW(){return Math.random()*(2*fI)-fI}function pI(t){return new ez(t.transport)}var KW,WW,zW,XW,JW,QW,fI,ez,dI=m(()=>{"use strict";KW=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())})},WW=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}}},zW=5,XW=1e3,JW=5e3,QW=1.5,fI=.2;ez=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 KW(this,void 0,void 0,function(){var a,s,o,r,u,l,c;return WW(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=zW,r=XW,p.label=2;case 2:return s.status==="retryable"&&o>0?(o--,u=Math.max(Math.min(r,JW)+ZW(),0),r=r*QW,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 Uu(t,e){return vu({transport:pI({transport:lI(t)}),serializer:e,promiseHandler:Tu(t)},{timeout:t.timeoutMillis})}var EI=m(()=>{"use strict";Qp();cI();Jp();dI()});function _I(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 tz(t){var e=_I("OTEL_EXPORTER_OTLP_"+t+"_TIMEOUT"),n=_I("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 rz(t){var e=SI("OTEL_EXPORTER_OTLP_"+t+"_COMPRESSION"),n=SI("OTEL_EXPORTER_OTLP_COMPRESSION");return e??n}function Du(t){return{timeoutMillis:tz(t),compression:rz(t)}}var dd=m(()=>{"use strict";M()});function hI(t){return function(){var e,n={};return Object.entries((e=t?.())!==null&&e!==void 0?e:{}).forEach(function(i){var a=nz(i,2),s=a[0],o=a[1];typeof o<"u"?n[s]=String(o):g.warn('Header "'+s+'" has invalid value ('+o+") and will be ignored")}),n}}var nz,TI=m(()=>{"use strict";M();nz=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 oz(t,e,n){var i=Gr({},n()),a={};return function(){return e!=null&&Object.assign(a,e()),t!=null&&Object.assign(a,t()),Object.assign(a,i)}}function iz(t){if(t!=null)try{return new URL(t),t}catch{throw new Error("Configuration: Could not parse user-provided export URL: '"+t+"'")}}function vI(t,e,n){var i,a,s,o;return Gr(Gr({},_u(t,e,n)),{headers:oz(hI(t.headers),e.headers,n.headers),url:(a=(i=iz(t.url))!==null&&i!==void 0?i:e.url)!==null&&a!==void 0?a:n.url,agentOptions:(o=(s=t.agentOptions)!==null&&s!==void 0?s:e.agentOptions)!==null&&o!==void 0?o:n.agentOptions})}function mI(t,e){return Gr(Gr({},Su()),{headers:function(){return t},url:"http://localhost:4318/"+e,agentOptions:{keepAlive:!0}})}var Gr,yI=m(()=>{"use strict";fi();TI();Gr=function(){return Gr=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},Gr.apply(this,arguments)}});function az(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=Rn.parseKeyPairsIntoRecord(i),o=Rn.parseKeyPairsIntoRecord(a);if(!(Object.keys(s).length===0&&Object.keys(o).length===0))return Object.assign({},Rn.parseKeyPairsIntoRecord(a),Rn.parseKeyPairsIntoRecord(i))}function sz(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 uz(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 lz(t){var e,n=(e=process.env.OTEL_EXPORTER_OTLP_ENDPOINT)===null||e===void 0?void 0:e.trim();if(!(n==null||n===""))return uz(n,t)}function cz(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 sz(n)}function AI(t,e){var n;return Vu(Vu({},Du(t)),{url:(n=cz(t))!==null&&n!==void 0?n:lz(e),headers:Eu(az(t))})}var Vu,OI=m(()=>{"use strict";K();M();dd();fi();Vu=function(){return Vu=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},Vu.apply(this,arguments)}});function fz(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 Bu(t,e,n,i){return t.metadata&&g.warn("Metadata cannot be set when using http"),vI({url:t.url,headers:Eu(t.headers),concurrencyLimit:t.concurrencyLimit,timeoutMillis:t.timeoutMillis,compression:t.compression,agentOptions:fz(t)},AI(e,n),mI(i,n))}var gI=m(()=>{"use strict";yI();OI();M();fi()});var NI={};Je(NI,{convertLegacyHttpOptions:()=>Bu,createOtlpHttpExportDelegate:()=>Uu,getSharedConfigurationFromEnvironment:()=>Du});var Ed=m(()=>{"use strict";EI();dd();gI()});var pz,Gu,dz,ku,RI=m(()=>{"use strict";Zp();Iu();tI();Ed();pz=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)}}(),Gu=function(){return Gu=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},Gu.apply(this,arguments)},dz={"User-Agent":"OTel-OTLP-Exporter-JavaScript/"+eI},ku=function(t){pz(e,t);function e(n){return t.call(this,Uu(Bu(n??{},"METRICS","v1/metrics",Gu(Gu({},dz),{"Content-Type":"application/json"})),Ei),n)||this}return e}(Ou)});var PI=m(()=>{"use strict";RI()});var bI=m(()=>{"use strict";PI()});var xI={};Je(xI,{AggregationTemporalityPreference:()=>Vr,CumulativeTemporalitySelector:()=>di,DeltaTemporalitySelector:()=>yu,LowMemoryTemporalitySelector:()=>Au,OTLPMetricExporter:()=>ku,OTLPMetricExporterBase:()=>Ou});var MI=m(()=>{"use strict";bI();Xp();Zp()});var LI=h(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.createServiceClientConstructor=void 0;var Ez=Jn();function _z(t,e){let n={export:{path:t,requestStream:!1,responseStream:!1,requestSerialize:i=>i,requestDeserialize:i=>i,responseSerialize:i=>i,responseDeserialize:i=>i}};return Ez.makeGenericClientConstructor(n,e)}Hu.createServiceClientConstructor=_z});var _i=h(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.createOtlpGrpcExporterTransport=rt.GrpcExporterTransport=rt.createEmptyMetadata=rt.createSslCredentials=rt.createInsecureCredentials=void 0;var Sz=0,hz=2;function Tz(t){return t==="gzip"?hz:Sz}function vz(){let{credentials:t}=Jn();return t.createInsecure()}rt.createInsecureCredentials=vz;function mz(t,e,n){let{credentials:i}=Jn();return i.createSsl(t,e,n)}rt.createSslCredentials=mz;function yz(){let{Metadata:t}=Jn();return new t}rt.createEmptyMetadata=yz;var Fu=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}=LI();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":Tz(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"})})})}};rt.GrpcExporterTransport=Fu;function Az(t){return new Fu(t)}rt.createOtlpGrpcExporterTransport=Az});var II=h(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.VERSION=void 0;Yu.VERSION="0.57.0"});var VI=h(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.getOtlpGrpcDefaultConfiguration=fr.mergeOtlpGrpcConfigurationWithDefaults=fr.validateAndNormalizeUrl=void 0;var UI=(pi(),Y(mu)),Si=_i(),Oz=II(),gz=L("url"),CI=(M(),Y(Pe));function DI(t){var e;t=t.trim(),t.match(/^([\w]{1,8}):\/\//)||(t=`https://${t}`);let i=new gz.URL(t);return i.protocol==="unix:"?t:(i.pathname&&i.pathname!=="/"&&CI.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?:$/))&&CI.diag.warn("URL protocol should be http(s)://. Using http://."),i.host)}fr.validateAndNormalizeUrl=DI;function wI(t,e){for(let[n,i]of Object.entries(e.getMap()))t.get(n).length<1&&t.set(n,i)}function Nz(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,UI.mergeOtlpSharedConfigurationWithDefaults)(t,e,n)),{metadata:()=>{var l,c,p,_;let f=n.metadata();return wI(f,(c=(l=t.metadata)===null||l===void 0?void 0:l.call(t).clone())!==null&&c!==void 0?c:(0,Si.createEmptyMetadata)()),wI(f,(_=(p=e.metadata)===null||p===void 0?void 0:p.call(e))!==null&&_!==void 0?_:(0,Si.createEmptyMetadata)()),f},url:DI(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)})}fr.mergeOtlpGrpcConfigurationWithDefaults=Nz;function Rz(){return Object.assign(Object.assign({},(0,UI.getSharedConfigurationDefaults)()),{metadata:()=>{let t=(0,Si.createEmptyMetadata)();return t.set("User-Agent",`OTel-OTLP-Exporter-JavaScript/${Oz.VERSION}`),t},url:"http://localhost:4317",credentials:t=>t.startsWith("http://")?()=>(0,Si.createInsecureCredentials)():()=>(0,Si.createSslCredentials)()})}fr.getOtlpGrpcDefaultConfiguration=Rz});var FI=h(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.getOtlpGrpcConfigurationFromEnv=void 0;var BI=(K(),Y(Cs)),hi=_i(),Pz=(Ed(),Y(NI)),bz=L("fs"),xz=L("path"),kI=(M(),Y(Pe));function _d(t,e){if(t!=null&&t!=="")return t;if(e!=null&&e!=="")return e}function Mz(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=BI.baggageUtils.parseKeyPairsIntoRecord(i),o=BI.baggageUtils.parseKeyPairsIntoRecord(a);if(Object.keys(s).length===0&&Object.keys(o).length===0)return;let r=Object.assign({},o,s),u=(0,hi.createEmptyMetadata)();for(let[l,c]of Object.entries(r))u.set(l,c);return u}function Lz(t){let e=Mz(t);if(e!=null)return()=>e}function Iz(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 _d(i,a)}function Cz(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 _d(i,a)==="true"}function Sd(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=_d(s,o);if(r!=null)try{return bz.readFileSync(xz.resolve(process.cwd(),r))}catch{kI.diag.warn(n);return}else return}function wz(t){return Sd(`OTEL_EXPORTER_OTLP_${t}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function Uz(t){return Sd(`OTEL_EXPORTER_OTLP_${t}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function GI(t){return Sd(`OTEL_EXPORTER_OTLP_${t}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function HI(t){let e=Uz(t),n=wz(t),i=GI(t),a=e!=null&&n!=null;return i!=null&&!a?(kI.diag.warn("Client key and certificate must both be provided, but one was missing - attempting to create credentials from just the root certificate"),(0,hi.createSslCredentials)(GI(t))):(0,hi.createSslCredentials)(i,e,n)}function Dz(t){return Cz(t)?(0,hi.createInsecureCredentials)():HI(t)}function Vz(t){return Object.assign(Object.assign({},(0,Pz.getSharedConfigurationFromEnvironment)(t)),{metadata:Lz(t),url:Iz(t),credentials:e=>e.startsWith("http://")?()=>(0,hi.createInsecureCredentials)():e.startsWith("https://")?()=>HI(t):()=>Dz(t)})}qu.getOtlpGrpcConfigurationFromEnv=Vz});var qI=h(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.convertLegacyOtlpGrpcOptions=void 0;var Bz=(M(),Y(Pe)),YI=VI(),Gz=_i(),kz=FI();function Hz(t,e){t.headers&&Bz.diag.warn("Headers cannot be set when using grpc");let n=t.credentials;return(0,YI.mergeOtlpGrpcConfigurationWithDefaults)({url:t.url,metadata:()=>{var i;return(i=t.metadata)!==null&&i!==void 0?i:(0,Gz.createEmptyMetadata)()},compression:t.compression,timeoutMillis:t.timeoutMillis,concurrencyLimit:t.concurrencyLimit,credentials:n!=null?()=>n:void 0},(0,kz.getOtlpGrpcConfigurationFromEnv)(e),(0,YI.getOtlpGrpcDefaultConfiguration)())}ju.convertLegacyOtlpGrpcOptions=Hz});var jI=h($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.createOtlpGrpcExportDelegate=void 0;var Fz=(pi(),Y(mu)),Yz=_i();function qz(t,e,n,i){return(0,Fz.createOtlpNetworkExportDelegate)(t,e,(0,Yz.createOtlpGrpcExporterTransport)({address:t.url,compression:t.compression,credentials:t.credentials,metadata:t.metadata,grpcName:n,grpcPath:i}))}$u.createOtlpGrpcExportDelegate=qz});var hd=h(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.createOtlpGrpcExportDelegate=Dn.convertLegacyOtlpGrpcOptions=void 0;var jz=qI();Object.defineProperty(Dn,"convertLegacyOtlpGrpcOptions",{enumerable:!0,get:function(){return jz.convertLegacyOtlpGrpcOptions}});var $z=jI();Object.defineProperty(Dn,"createOtlpGrpcExportDelegate",{enumerable:!0,get:function(){return $z.createOtlpGrpcExportDelegate}})});var KI=h(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.OTLPMetricExporter=void 0;var Kz=(MI(),Y(xI)),$I=hd(),Wz=(Iu(),Y(fd)),Td=class extends Kz.OTLPMetricExporterBase{constructor(e){super((0,$I.createOtlpGrpcExportDelegate)((0,$I.convertLegacyOtlpGrpcOptions)(e??{},"METRICS"),Wz.ProtobufMetricsSerializer,"MetricsExportService","/opentelemetry.proto.collector.metrics.v1.MetricsService/Export"),e)}};Ku.OTLPMetricExporter=Td});var WI=h(kr=>{"use strict";var zz=kr&&kr.__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]}),Xz=kr&&kr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&zz(e,t,n)};Object.defineProperty(kr,"__esModule",{value:!0});Xz(KI(),kr)});var Ad=h(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.PrometheusSerializer=void 0;var Jz=(M(),Y(Pe)),Hr=(In(),Y(zp)),zI=(K(),Y(Cs));function zu(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n")}function XI(t=""){return typeof t!="string"&&(t=JSON.stringify(t)),zu(t).replace(/"/g,'\\"')}var Qz=/[^a-z0-9_]/gi,Zz=/_{2,}/g;function md(t){return t.replace(Qz,"_").replace(Zz,"_")}function vd(t,e){return!t.endsWith("_total")&&e===Hr.InstrumentType.COUNTER&&(t=t+"_total"),t}function eX(t){return Number.isNaN(t)?"NaN":Number.isFinite(t)?`${t}`:t<0?"-Inf":"+Inf"}function tX(t){switch(t.dataPointType){case Hr.DataPointType.SUM:return t.isMonotonic?"counter":"gauge";case Hr.DataPointType.GAUGE:return"gauge";case Hr.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=md(r);s=!0,o+=`${o.length>0?",":""}${l}="${XI(u)}"`}if(a)for(let[r,u]of Object.entries(a)){let l=md(r);s=!0,o+=`${o.length>0?",":""}${l}="${XI(u)}"`}return s&&(t+=`{${o}}`),`${t} ${eX(n)}${i!==void 0?" "+String(i):""}
|
52
52
|
`}var rX="# no registered metrics",yd=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+=rX),this._serializeResource(e.resource)+n}_serializeScopeMetrics(e){let n="";for(let i of e.metrics)n+=this._serializeMetricData(i)+`
|
53
53
|
`;return n}_serializeMetricData(e){let n=md(zu(e.descriptor.name));this._prefix&&(n=`${this._prefix}${n}`);let i=e.dataPointType;n=vd(n,e.descriptor.type);let a=`# HELP ${n} ${zu(e.descriptor.description||"description missing")}`,s=e.descriptor.unit?`
|
54
54
|
# UNIT ${n} ${zu(e.descriptor.unit)}`:"",o=`# TYPE ${n} ${tX(e)}`,r="";switch(i){case Hr.DataPointType.SUM:case Hr.DataPointType.GAUGE:{r=e.dataPoints.map(u=>this._serializeSingularDataPoint(n,e.descriptor.type,u)).join("");break}case Hr.DataPointType.HISTOGRAM:{r=e.dataPoints.map(u=>this._serializeHistogramDataPoint(n,e.descriptor.type,u)).join("");break}default:Jz.diag.error(`Unrecognizable DataPointType: ${i} for metric "${n}"`)}return`${a}${s}
|
55
55
|
${o}
|
56
|
-
${r}`.trim()}_serializeSingularDataPoint(e,n,i){let a="";e=vd(e,n);let{value:s,attributes:o}=i,r=(0,zI.hrTimeToMilliseconds)(i.endTime);return a+=Wu(e,o,s,this._appendTimestamp?r:void 0,void 0),a}_serializeHistogramDataPoint(e,n,i){let a="";e=vd(e,n);let s=i.attributes,o=i.value,r=(0,zI.hrTimeToMilliseconds)(i.endTime);for(let
|
56
|
+
${r}`.trim()}_serializeSingularDataPoint(e,n,i){let a="";e=vd(e,n);let{value:s,attributes:o}=i,r=(0,zI.hrTimeToMilliseconds)(i.endTime);return a+=Wu(e,o,s,this._appendTimestamp?r:void 0,void 0),a}_serializeHistogramDataPoint(e,n,i){let a="";e=vd(e,n);let s=i.attributes,o=i.value,r=(0,zI.hrTimeToMilliseconds)(i.endTime);for(let p of["count","sum"]){let _=o[p];_!=null&&(a+=Wu(e+"_"+p,s,_,this._appendTimestamp?r:void 0,void 0))}let u=0,l=o.buckets.counts.entries(),c=!1;for(let[p,_]of l){u+=_;let f=o.buckets.boundaries[p];if(f===void 0&&c)break;f===1/0&&(c=!0),a+=Wu(e+"_bucket",s,u,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`,s=Wu(n,e.attributes,1).trim();return`${i}
|
57
57
|
${a}
|
58
58
|
${s}
|
59
|
-
`}};Xu.PrometheusSerializer=yd});var JI=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.PrometheusExporter=void 0;var Ti=(M(),Y(Pe)),nX=(K(),Y(Cs)),Od=(Ln(),Y(zp)),oX=L("http"),iX=Ad(),aX=L("url"),Ju=class t extends Od.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:i=>Od.Aggregation.Default(),aggregationTemporalitySelector:i=>Od.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(i,a)=>{i.url!=null&&new aX.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&&Ti.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,oX.createServer)(this._requestHandler).unref(),this._serializer=new iX.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=>{Ti.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,nX.globalErrorHandler)(n):Ti.diag.debug("Prometheus exporter was stopped"),e()})}):(Ti.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},()=>{Ti.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(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.PrometheusSerializer=Dn.PrometheusExporter=void 0;var sX=JI();Object.defineProperty(Dn,"PrometheusExporter",{enumerable:!0,get:function(){return sX.PrometheusExporter}});var uX=Ad();Object.defineProperty(Dn,"PrometheusSerializer",{enumerable:!0,get:function(){return uX.PrometheusSerializer}})});var Nd=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.AbstractAsyncHooksContextManager=void 0;var lX=L("events"),cX=["addListener","on","once","prependListener","prependOnceListener"],gd=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof lX.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),cX.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=gd});var ZI=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.AsyncHooksContextManager=void 0;var fX=(M(),Y(Pe)),pX=L("async_hooks"),dX=Nd(),Rd=class extends dX.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=pX.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:fX.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=Rd});var eC=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.AsyncLocalStorageContextManager=void 0;var EX=(M(),Y(Pe)),_X=L("async_hooks"),SX=Nd(),Pd=class extends SX.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new _X.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:EX.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=Pd});var tC=h(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.AsyncLocalStorageContextManager=Vn.AsyncHooksContextManager=void 0;var hX=ZI();Object.defineProperty(Vn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return hX.AsyncHooksContextManager}});var TX=eC();Object.defineProperty(Vn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return TX.AsyncLocalStorageContextManager}})});var Bn,bd=m(()=>{"use strict";M();Bn=$r("OpenTelemetry Context Key B3 Debug Flag")});var pr,Gn,kn,Hn,rl,Fn,vi=m(()=>{"use strict";pr="b3",Gn="x-b3-traceid",kn="x-b3-spanid",Hn="x-b3-sampled",rl="x-b3-parentspanid",Fn="x-b3-flags"});function yX(t){return t===Q.SAMPLED||t===Q.NONE}function AX(t){return Array.isArray(t)?t[0]:t}function nl(t,e,n){var i=e.get(t,n);return AX(i)}function OX(t,e){var n=nl(t,e,Gn);return typeof n=="string"?n.padStart(32,"0"):""}function gX(t,e){var n=nl(t,e,kn);return typeof n=="string"?n:""}function rC(t,e){var n=nl(t,e,Fn);return n==="1"?"1":void 0}function NX(t,e){var n=nl(t,e,Hn),i=rC(t,e);if(i==="1"||vX.has(n))return Q.SAMPLED;if(n===void 0||mX.has(n))return Q.NONE}var vX,mX,nC,oC=m(()=>{"use strict";M();K();bd();vi();vX=new Set([!0,"true","True","1",1]),mX=new Set([!1,"false","False","0",0]);nC=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=J.getSpanContext(e);if(!(!a||!_t(a)||xe(e))){var s=e.getValue(Bn);i.set(n,Gn,a.traceId),i.set(n,kn,a.spanId),s==="1"?i.set(n,Fn,s):a.traceFlags!==void 0&&i.set(n,Hn,(Q.SAMPLED&a.traceFlags)===Q.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,i){var a=OX(n,i),s=gX(n,i),o=NX(n,i),r=rC(n,i);return Gt(a)&&xi(s)&&yX(o)?(e=e.setValue(Bn,r),J.setSpanContext(e,{traceId:a,spanId:s,isRemote:!0,traceFlags:o})):e},t.prototype.fields=function(){return[Gn,kn,Fn,Hn,rl]},t}()});function LX(t){return t.length===32?t:""+bX+t}function IX(t){return t&&xX.has(t)?Q.SAMPLED:Q.NONE}var RX,PX,bX,xX,MX,iC,aC=m(()=>{"use strict";M();K();bd();vi();RX=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},PX=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,bX="0".repeat(16),xX=new Set(["d","1"]),MX="d";iC=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=J.getSpanContext(e);if(!(!a||!_t(a)||xe(e))){var s=e.getValue(Bn)||a.traceFlags&1,o=a.traceId+"-"+a.spanId+"-"+s;i.set(n,pr,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,pr),s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=s.match(PX);if(!o)return e;var r=RX(o,4),u=r[1],l=r[2],c=r[3],f=LX(u);if(!Gt(f)||!xi(l))return e;var _=IX(c);return c===MX&&(e=e.setValue(Bn,c)),J.setSpanContext(e,{traceId:f,spanId:l,isRemote:!0,traceFlags:_})},t.prototype.fields=function(){return[pr]},t}()});var Yn,xd=m(()=>{"use strict";(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(Yn||(Yn={}))});var sC,uC=m(()=>{"use strict";K();oC();aC();vi();xd();sC=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new nC,this._b3SinglePropagator=new iC,e.injectEncoding===Yn.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,pr),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 lC={};Je(lC,{B3InjectEncoding:()=>Yn,B3Propagator:()=>sC,B3_CONTEXT_HEADER:()=>pr,X_B3_FLAGS:()=>Fn,X_B3_PARENT_SPAN_ID:()=>rl,X_B3_SAMPLED:()=>Hn,X_B3_SPAN_ID:()=>kn,X_B3_TRACE_ID:()=>Gn});var cC=m(()=>{"use strict";uC();vi();xd()});var fC,pC=m(()=>{"use strict";fC="exception"});var Md,CX,dC,wX,ol,Ld=m(()=>{"use strict";M();K();jo();pC();Md=function(){return Md=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},Md.apply(this,arguments)},CX=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.")},dC=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},wX=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:yE.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 f=Date.now();this._performanceStartTime=et.now(),this._performanceOffset=f-(this._performanceStartTime+yn()),this._startTimeProvided=u!=null,this.startTime=this._getTime(u??f),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):Wo(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=CX(Object.entries(e)),s=a.next();!s.done;s=a.next()){var o=dC(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++),Qo(n)&&(Qo(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,wX([],dC(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=Md({},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=gs(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 Jo(e+this._performanceOffset);if(typeof e=="number")return Oe(e);if(e instanceof Date)return Oe(e.getTime());if(An(e))return e;if(this._startTimeProvided)return Oe(Date.now());var n=et.now()-this._performanceStartTime;return Zo(this.startTime,Oe(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var i={};typeof e=="string"?i[cs]=e:e&&(e.code?i[ls]=e.code.toString():e.name&&(i[ls]=e.name),e.message&&(i[cs]=e.message),e.stack&&(i[m0]=e.stack)),i[ls]||i[cs]?this.addEvent(fC,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,mi=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 dr,il=m(()=>{"use strict";mi();dr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var Pt,al=m(()=>{"use strict";mi();Pt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var qn,Id=m(()=>{"use strict";M();K();il();al();qn=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 Pt),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Pt,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new dr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Pt,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new dr}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=J.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&Q.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&Q.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 yi,Cd=m(()=>{"use strict";M();mi();yi=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,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function sl(){var t=Me();return{sampler:wd(t),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 wd(t){switch(t===void 0&&(t=Me()),t.OTEL_TRACES_SAMPLER){case Ke.AlwaysOn:return new Pt;case Ke.AlwaysOff:return new dr;case Ke.ParentBasedAlwaysOn:return new qn({root:new Pt});case Ke.ParentBasedAlwaysOff:return new qn({root:new dr});case Ke.TraceIdRatio:return new yi(EC(t));case Ke.ParentBasedTraceIdRatio:return new qn({root:new yi(EC(t))});default:return g.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+UX+'".'),new Pt}}function EC(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 "+jn+"."),jn;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 "+jn+"."),jn):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 "+jn+"."),jn):e}var UX,jn,Ud=m(()=>{"use strict";M();K();il();al();Id();Cd();UX=Ke.AlwaysOn,jn=1});function _C(t){var e={sampler:wd()},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 SC(t){var e,n,i,a,s,o,r,u,l,c,f,_,p=Object.assign({},t.spanLimits),S=vn();return p.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:Cr,p.attributeValueLengthLimit=(_=(f=(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&&f!==void 0?f:S.OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT)!==null&&_!==void 0?_:Ir,Object.assign({},t,{spanLimits:p})}var Dd=m(()=>{"use strict";Ud();K()});var hC,TC=m(()=>{"use strict";M();K();hC=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var i=Me();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 gn(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=[],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(hn(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(f){var _;clearTimeout(a),f.code===W.SUCCESS?n():i((_=f.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(f){Te(f),i(f)})})})},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),sr(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var DX,Er,vC=m(()=>{"use strict";TC();DX=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)}}(),Er=function(t){DX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(hC)});function mC(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 VX,yC,$n,ul,AC=m(()=>{"use strict";VX=8,yC=16,$n=function(){function t(){this.generateTraceId=mC(yC),this.generateSpanId=mC(VX)}return t}(),ul=Buffer.allocUnsafe(yC)});var OC=m(()=>{"use strict";vC();AC()});var ll=m(()=>{"use strict";OC()});var cl,Vd=m(()=>{"use strict";M();K();Ld();Dd();ll();cl=function(){function t(e,n,i){this._tracerProvider=i;var a=_C(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new $n,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=J.deleteSpan(i));var r=J.getSpan(i);if(xe(i)){g.debug("Instrumentation suppressed, returning Noop Span");var u=J.wrapSpanContext(TE);return u}var l=r?.spanContext(),c=this._idGenerator.generateSpanId(),f,_,p;!l||!J.isSpanContextValid(l)?f=this._idGenerator.generateTraceId():(f=l.traceId,_=l.traceState,p=l.spanId);var S=(a=n.kind)!==null&&a!==void 0?a:mE.INTERNAL,v=((s=n.links)!==null&&s!==void 0?s:[]).map(function(F){return{context:F.context,attributes:or(F.attributes)}}),T=or(n.attributes),A=this._sampler.shouldSample(i,f,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:f,spanId:c,traceFlags:O,traceState:_};if(A.decision===St.NOT_RECORD){g.debug("Recording is off, propagating context in a non-recording span");var u=J.wrapSpanContext(N);return u}var D=or(Object.assign(T,A.attributes)),G=new ol(this,i,e,N,S,p,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=J.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,gC=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 BX,GX,Vt,NC,RC=m(()=>{"use strict";M();K();Ds();Vd();Ud();gC();Gd();ll();Dd();BX=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},GX=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"})(Vt||(Vt={}));NC=function(){function t(e){e===void 0&&(e={});var n,i;this._registeredSpanProcessors=[],this._tracers=new Map;var a=Is({},sl(),SC(e));if(this.resource=(n=a.resource)!==null&&n!==void 0?n:wt.empty(),a.mergeResourceWithDefaults&&(this.resource=wt.default().merge(this.resource)),this._config=Object.assign({},a,{resource:this.resource}),!((i=e.spanProcessors)===null||i===void 0)&&i.length)this._registeredSpanProcessors=GX([],BX(e.spanProcessors),!1),this.activeSpanProcessor=new Bd(this._registeredSpanProcessors);else{var s=this._buildExporterFromEnv();if(s!==void 0){var o=new Er(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={}),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 s,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),s=Vt.timeout},e);i.forceFlush().then(function(){clearTimeout(o),s!==Vt.timeout&&(s=Vt.resolved,a(s))}).catch(function(r){clearTimeout(o),s=Vt.error,a(r)})})});return new Promise(function(i,a){Promise.all(n).then(function(s){var o=s.filter(function(r){return r!==Vt.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(Me().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 Rs({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=Me().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 bs}],["baggage",function(){return new Ss}]]),t._registeredExporters=new Map,t}()});var kX,PC,bC=m(()=>{"use strict";K();kX=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.")},PC=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 s=kX(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:W.SUCCESS})},t}()});var HX,FX,xC,MC=m(()=>{"use strict";K();HX=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},FX=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))},xC=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,FX([],HX(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 YX,qX,LC,IC=m(()=>{"use strict";M();K();YX=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(f){o(f)}}function u(c){try{l(i.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):a(c.value).then(r,u)}l((i=i.apply(t,e||[])).next())})},qX=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}}},LC=function(){function t(e){this._exporter=e,this._shutdownOnce=new gn(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return YX(this,void 0,void 0,function(){return qX(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 s=function(){return oi._export(n._exporter,[e]).then(function(r){var u;r.code!==W.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={};Je(kd,{AlwaysOffSampler:()=>dr,AlwaysOnSampler:()=>Pt,BasicTracerProvider:()=>NC,BatchSpanProcessor:()=>Er,ConsoleSpanExporter:()=>PC,ForceFlushState:()=>Vt,InMemorySpanExporter:()=>xC,NoopSpanProcessor:()=>pl,ParentBasedSampler:()=>qn,RandomIdGenerator:()=>$n,SamplingDecision:()=>dt,SimpleSpanProcessor:()=>LC,Span:()=>ol,TraceIdRatioBasedSampler:()=>yi,Tracer:()=>cl});var dl=m(()=>{"use strict";Vd();RC();ll();bC();MC();IC();Gd();il();al();Id();Cd();mi();Ld()});var Ai=h((ope,CC)=>{"use strict";var jX="2.0.0",$X=Number.MAX_SAFE_INTEGER||9007199254740991,KX=16,WX=250,zX=["major","premajor","minor","preminor","patch","prepatch","prerelease"];CC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:KX,MAX_SAFE_BUILD_LENGTH:WX,MAX_SAFE_INTEGER:$X,RELEASE_TYPES:zX,SEMVER_SPEC_VERSION:jX,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Oi=h((ipe,wC)=>{"use strict";var XX=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};wC.exports=XX});var Kn=h((Bt,UC)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Hd,MAX_SAFE_BUILD_LENGTH:JX,MAX_LENGTH:QX}=Ai(),ZX=Oi();Bt=UC.exports={};var eJ=Bt.re=[],tJ=Bt.safeRe=[],R=Bt.src=[],P=Bt.t={},rJ=0,Fd="[a-zA-Z0-9-]",nJ=[["\\s",1],["\\d",QX],[Fd,JX]],oJ=t=>{for(let[e,n]of nJ)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},U=(t,e,n)=>{let i=oJ(e),a=rJ++;ZX(t,a,e),P[t]=a,R[a]=e,eJ[a]=new RegExp(e,n?"g":void 0),tJ[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);Bt.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);Bt.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);Bt.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 El=h((ape,DC)=>{"use strict";var iJ=Object.freeze({loose:!0}),aJ=Object.freeze({}),sJ=t=>t?typeof t!="object"?iJ:t:aJ;DC.exports=sJ});var Yd=h((spe,GC)=>{"use strict";var VC=/^[0-9]+$/,BC=(t,e)=>{let n=VC.test(t),i=VC.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1},uJ=(t,e)=>BC(e,t);GC.exports={compareIdentifiers:BC,rcompareIdentifiers:uJ}});var Le=h((upe,YC)=>{"use strict";var _l=Oi(),{MAX_LENGTH:kC,MAX_SAFE_INTEGER:Sl}=Ai(),{safeRe:HC,t:FC}=Kn(),lJ=El(),{compareIdentifiers:Wn}=Yd(),qd=class t{constructor(e,n){if(n=lJ(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>kC)throw new TypeError(`version is longer than ${kC} characters`);_l("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=e.trim().match(n.loose?HC[FC.LOOSE]:HC[FC.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>Sl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Sl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Sl||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<Sl)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(_l("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)),Wn(this.major,e.major)||Wn(this.minor,e.minor)||Wn(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(_l("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 Wn(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(_l("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 Wn(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]),Wn(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}};YC.exports=qd});var Fr=h((lpe,jC)=>{"use strict";var qC=Le(),cJ=(t,e,n=!1)=>{if(t instanceof qC)return t;try{return new qC(t,e)}catch(i){if(!n)return null;throw i}};jC.exports=cJ});var KC=h((cpe,$C)=>{"use strict";var fJ=Fr(),pJ=(t,e)=>{let n=fJ(t,e);return n?n.version:null};$C.exports=pJ});var zC=h((fpe,WC)=>{"use strict";var dJ=Fr(),EJ=(t,e)=>{let n=dJ(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};WC.exports=EJ});var QC=h((ppe,JC)=>{"use strict";var XC=Le(),_J=(t,e,n,i,a)=>{typeof n=="string"&&(a=i,i=n,n=void 0);try{return new XC(t instanceof XC?t.version:t,n).inc(e,i,a).version}catch{return null}};JC.exports=_J});var tw=h((dpe,ew)=>{"use strict";var ZC=Fr(),SJ=(t,e)=>{let n=ZC(t,null,!0),i=ZC(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"};ew.exports=SJ});var nw=h((Epe,rw)=>{"use strict";var hJ=Le(),TJ=(t,e)=>new hJ(t,e).major;rw.exports=TJ});var iw=h((_pe,ow)=>{"use strict";var vJ=Le(),mJ=(t,e)=>new vJ(t,e).minor;ow.exports=mJ});var sw=h((Spe,aw)=>{"use strict";var yJ=Le(),AJ=(t,e)=>new yJ(t,e).patch;aw.exports=AJ});var lw=h((hpe,uw)=>{"use strict";var OJ=Fr(),gJ=(t,e)=>{let n=OJ(t,e);return n&&n.prerelease.length?n.prerelease:null};uw.exports=gJ});var nt=h((Tpe,fw)=>{"use strict";var cw=Le(),NJ=(t,e,n)=>new cw(t,n).compare(new cw(e,n));fw.exports=NJ});var dw=h((vpe,pw)=>{"use strict";var RJ=nt(),PJ=(t,e,n)=>RJ(e,t,n);pw.exports=PJ});var _w=h((mpe,Ew)=>{"use strict";var bJ=nt(),xJ=(t,e)=>bJ(t,e,!0);Ew.exports=xJ});var hl=h((ype,hw)=>{"use strict";var Sw=Le(),MJ=(t,e,n)=>{let i=new Sw(t,n),a=new Sw(e,n);return i.compare(a)||i.compareBuild(a)};hw.exports=MJ});var vw=h((Ape,Tw)=>{"use strict";var LJ=hl(),IJ=(t,e)=>t.sort((n,i)=>LJ(n,i,e));Tw.exports=IJ});var yw=h((Ope,mw)=>{"use strict";var CJ=hl(),wJ=(t,e)=>t.sort((n,i)=>CJ(i,n,e));mw.exports=wJ});var gi=h((gpe,Aw)=>{"use strict";var UJ=nt(),DJ=(t,e,n)=>UJ(t,e,n)>0;Aw.exports=DJ});var Tl=h((Npe,Ow)=>{"use strict";var VJ=nt(),BJ=(t,e,n)=>VJ(t,e,n)<0;Ow.exports=BJ});var jd=h((Rpe,gw)=>{"use strict";var GJ=nt(),kJ=(t,e,n)=>GJ(t,e,n)===0;gw.exports=kJ});var $d=h((Ppe,Nw)=>{"use strict";var HJ=nt(),FJ=(t,e,n)=>HJ(t,e,n)!==0;Nw.exports=FJ});var vl=h((bpe,Rw)=>{"use strict";var YJ=nt(),qJ=(t,e,n)=>YJ(t,e,n)>=0;Rw.exports=qJ});var ml=h((xpe,Pw)=>{"use strict";var jJ=nt(),$J=(t,e,n)=>jJ(t,e,n)<=0;Pw.exports=$J});var Kd=h((Mpe,bw)=>{"use strict";var KJ=jd(),WJ=$d(),zJ=gi(),XJ=vl(),JJ=Tl(),QJ=ml(),ZJ=(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 KJ(t,n,i);case"!=":return WJ(t,n,i);case">":return zJ(t,n,i);case">=":return XJ(t,n,i);case"<":return JJ(t,n,i);case"<=":return QJ(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};bw.exports=ZJ});var Mw=h((Lpe,xw)=>{"use strict";var e9=Le(),t9=Fr(),{safeRe:yl,t:Al}=Kn(),r9=(t,e)=>{if(t instanceof e9)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?yl[Al.COERCEFULL]:yl[Al.COERCE]);else{let u=e.includePrerelease?yl[Al.COERCERTLFULL]:yl[Al.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 t9(`${i}.${a}.${s}${o}${r}`,e)};xw.exports=r9});var Iw=h((Ipe,Lw)=>{"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}};Lw.exports=Wd});var ot=h((Cpe,Dw)=>{"use strict";var n9=/\s+/g,zd=class t{constructor(e,n){if(n=i9(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(n9," "),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=>!ww(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&&p9(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&&c9)|(this.options.loose&&f9))+":"+e,a=Cw.get(i);if(a)return a;let s=this.options.loose,o=s?We[Ge.HYPHENRANGELOOSE]:We[Ge.HYPHENRANGE];e=e.replace(o,A9(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(We[Ge.COMPARATORTRIM],s9),te("comparator trim",e),e=e.replace(We[Ge.TILDETRIM],u9),te("tilde trim",e),e=e.replace(We[Ge.CARETTRIM],l9),te("caret trim",e);let r=e.split(" ").map(f=>d9(f,this.options)).join(" ").split(/\s+/).map(f=>y9(f,this.options));s&&(r=r.filter(f=>(te("loose invalid filter",f,this.options),!!f.match(We[Ge.COMPARATORLOOSE])))),te("range list",r);let u=new Map,l=r.map(f=>new Xd(f,this.options));for(let f of l){if(ww(f))return[f];u.set(f.value,f)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return Cw.set(i,c),c}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>Uw(i,n)&&e.set.some(a=>Uw(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 a9(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}};Dw.exports=zd;var o9=Iw(),Cw=new o9,i9=El(),Xd=Ni(),te=Oi(),a9=Le(),{safeRe:We,t:Ge,comparatorTrimReplace:s9,tildeTrimReplace:u9,caretTrimReplace:l9}=Kn(),{FLAG_INCLUDE_PRERELEASE:c9,FLAG_LOOSE:f9}=Ai(),ww=t=>t.value==="<0.0.0-0",p9=t=>t.value==="",Uw=(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},d9=(t,e)=>(te("comp",t,e),t=S9(t,e),te("caret",t),t=E9(t,e),te("tildes",t),t=T9(t,e),te("xrange",t),t=m9(t,e),te("stars",t),t),ke=t=>!t||t.toLowerCase()==="x"||t==="*",E9=(t,e)=>t.trim().split(/\s+/).map(n=>_9(n,e)).join(" "),_9=(t,e)=>{let n=e.loose?We[Ge.TILDELOOSE]:We[Ge.TILDE];return t.replace(n,(i,a,s,o,r)=>{te("tilde",t,i,a,s,o,r);let u;return ke(a)?u="":ke(s)?u=`>=${a}.0.0 <${+a+1}.0.0-0`:ke(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})},S9=(t,e)=>t.trim().split(/\s+/).map(n=>h9(n,e)).join(" "),h9=(t,e)=>{te("caret",t,e);let n=e.loose?We[Ge.CARETLOOSE]:We[Ge.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 ke(s)?l="":ke(o)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:ke(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})},T9=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>v9(n,e)).join(" ")),v9=(t,e)=>{t=t.trim();let n=e.loose?We[Ge.XRANGELOOSE]:We[Ge.XRANGE];return t.replace(n,(i,a,s,o,r,u)=>{te("xRange",t,i,a,s,o,r,u);let l=ke(s),c=l||ke(o),f=c||ke(r),_=f;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`:f&&(i=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),te("xRange return",i),i})},m9=(t,e)=>(te("replaceStars",t,e),t.trim().replace(We[Ge.STAR],"")),y9=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(We[e.includePrerelease?Ge.GTE0PRE:Ge.GTE0],"")),A9=t=>(e,n,i,a,s,o,r,u,l,c,f,_)=>(ke(i)?n="":ke(a)?n=`>=${i}.0.0${t?"-0":""}`:ke(s)?n=`>=${i}.${a}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,ke(l)?u="":ke(c)?u=`<${+l+1}.0.0-0`:ke(f)?u=`<${l}.${+c+1}.0-0`:_?u=`<=${l}.${c}.${f}-${_}`:t?u=`<${l}.${c}.${+f+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 Ni=h((wpe,Fw)=>{"use strict";var Ri=Symbol("SemVer ANY"),Zd=class t{static get ANY(){return Ri}constructor(e,n){if(n=Vw(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===Ri?this.value="":this.value=this.operator+this.semver.version,Qd("comp",this)}parse(e){let n=this.options.loose?Bw[Gw.COMPARATORLOOSE]:Bw[Gw.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 kw(i[2],this.options.loose):this.semver=Ri}toString(){return this.value}test(e){if(Qd("Comparator.test",e,this.options.loose),this.semver===Ri||e===Ri)return!0;if(typeof e=="string")try{e=new kw(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 Hw(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Hw(this.value,n).test(e.semver):(n=Vw(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(">")))}};Fw.exports=Zd;var Vw=El(),{safeRe:Bw,t:Gw}=Kn(),Jd=Kd(),Qd=Oi(),kw=Le(),Hw=ot()});var Pi=h((Upe,Yw)=>{"use strict";var g9=ot(),N9=(t,e,n)=>{try{e=new g9(e,n)}catch{return!1}return e.test(t)};Yw.exports=N9});var jw=h((Dpe,qw)=>{"use strict";var R9=ot(),P9=(t,e)=>new R9(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));qw.exports=P9});var Kw=h((Vpe,$w)=>{"use strict";var b9=Le(),x9=ot(),M9=(t,e,n)=>{let i=null,a=null,s=null;try{s=new x9(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===-1)&&(i=o,a=new b9(i,n))}),i};$w.exports=M9});var zw=h((Bpe,Ww)=>{"use strict";var L9=Le(),I9=ot(),C9=(t,e,n)=>{let i=null,a=null,s=null;try{s=new I9(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};Ww.exports=C9});var Qw=h((Gpe,Jw)=>{"use strict";var eE=Le(),w9=ot(),Xw=gi(),U9=(t,e)=>{t=new w9(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||Xw(r,s))&&(s=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||Xw(n,s))&&(n=s)}return n&&t.test(n)?n:null};Jw.exports=U9});var eU=h((kpe,Zw)=>{"use strict";var D9=ot(),V9=(t,e)=>{try{return new D9(t,e).range||"*"}catch{return null}};Zw.exports=V9});var Ol=h((Hpe,oU)=>{"use strict";var B9=Le(),nU=Ni(),{ANY:G9}=nU,k9=ot(),H9=Pi(),tU=gi(),rU=Tl(),F9=ml(),Y9=vl(),q9=(t,e,n,i)=>{t=new B9(t,i),e=new k9(e,i);let a,s,o,r,u;switch(n){case">":a=tU,s=F9,o=rU,r=">",u=">=";break;case"<":a=rU,s=Y9,o=tU,r="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(H9(t,e,i))return!1;for(let l=0;l<e.set.length;++l){let c=e.set[l],f=null,_=null;if(c.forEach(p=>{p.semver===G9&&(p=new nU(">=0.0.0")),f=f||p,_=_||p,a(p.semver,f.semver,i)?f=p:o(p.semver,_.semver,i)&&(_=p)}),f.operator===r||f.operator===u||(!_.operator||_.operator===r)&&s(t,_.semver))return!1;if(_.operator===u&&o(t,_.semver))return!1}return!0};oU.exports=q9});var aU=h((Fpe,iU)=>{"use strict";var j9=Ol(),$9=(t,e,n)=>j9(t,e,">",n);iU.exports=$9});var uU=h((Ype,sU)=>{"use strict";var K9=Ol(),W9=(t,e,n)=>K9(t,e,"<",n);sU.exports=W9});var fU=h((qpe,cU)=>{"use strict";var lU=ot(),z9=(t,e,n)=>(t=new lU(t,n),e=new lU(e,n),t.intersects(e,n));cU.exports=z9});var dU=h((jpe,pU)=>{"use strict";var X9=Pi(),J9=nt();pU.exports=(t,e,n)=>{let i=[],a=null,s=null,o=t.sort((c,f)=>J9(c,f,n));for(let c of o)X9(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,f]of i)c===f?r.push(c):!f&&c===o[0]?r.push("*"):f?c===o[0]?r.push(`<=${f}`):r.push(`${c} - ${f}`):r.push(`>=${c}`);let u=r.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return u.length<l.length?u:e}});var vU=h(($pe,TU)=>{"use strict";var EU=ot(),rE=Ni(),{ANY:tE}=rE,bi=Pi(),nE=nt(),Q9=(t,e,n={})=>{if(t===e)return!0;t=new EU(t,n),e=new EU(e,n);let i=!1;e:for(let a of t.set){for(let s of e.set){let o=e7(a,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Z9=[new rE(">=0.0.0-0")],_U=[new rE(">=0.0.0")],e7=(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=Z9:t=_U}if(e.length===1&&e[0].semver===tE){if(n.includePrerelease)return!0;e=_U}let i=new Set,a,s;for(let p of t)p.operator===">"||p.operator===">="?a=SU(a,p,n):p.operator==="<"||p.operator==="<="?s=hU(s,p,n):i.add(p.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 p of i){if(a&&!bi(p,String(a),n)||s&&!bi(p,String(s),n))return null;for(let S of e)if(!bi(p,String(S),n))return!1;return!0}let r,u,l,c,f=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,_=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let p of e){if(c=c||p.operator===">"||p.operator===">=",l=l||p.operator==="<"||p.operator==="<=",a){if(_&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===_.major&&p.semver.minor===_.minor&&p.semver.patch===_.patch&&(_=!1),p.operator===">"||p.operator===">="){if(r=SU(a,p,n),r===p&&r!==a)return!1}else if(a.operator===">="&&!bi(a.semver,String(p),n))return!1}if(s){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator==="<"||p.operator==="<="){if(u=hU(s,p,n),u===p&&u!==s)return!1}else if(s.operator==="<="&&!bi(s.semver,String(p),n))return!1}if(!p.operator&&(s||a)&&o!==0)return!1}return!(a&&l&&!s&&o!==0||s&&c&&!a&&o!==0||_||f)},SU=(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},hU=(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};TU.exports=Q9});var OU=h((Kpe,AU)=>{"use strict";var oE=Kn(),mU=Ai(),t7=Le(),yU=Yd(),r7=Fr(),n7=KC(),o7=zC(),i7=QC(),a7=tw(),s7=nw(),u7=iw(),l7=sw(),c7=lw(),f7=nt(),p7=dw(),d7=_w(),E7=hl(),_7=vw(),S7=yw(),h7=gi(),T7=Tl(),v7=jd(),m7=$d(),y7=vl(),A7=ml(),O7=Kd(),g7=Mw(),N7=Ni(),R7=ot(),P7=Pi(),b7=jw(),x7=Kw(),M7=zw(),L7=Qw(),I7=eU(),C7=Ol(),w7=aU(),U7=uU(),D7=fU(),V7=dU(),B7=vU();AU.exports={parse:r7,valid:n7,clean:o7,inc:i7,diff:a7,major:s7,minor:u7,patch:l7,prerelease:c7,compare:f7,rcompare:p7,compareLoose:d7,compareBuild:E7,sort:_7,rsort:S7,gt:h7,lt:T7,eq:v7,neq:m7,gte:y7,lte:A7,cmp:O7,coerce:g7,Comparator:N7,Range:R7,satisfies:P7,toComparators:b7,maxSatisfying:x7,minSatisfying:M7,minVersion:L7,validRange:I7,outside:C7,gtr:w7,ltr:U7,intersects:D7,simplifyRange:V7,subset:B7,SemVer:t7,re:oE.re,src:oE.src,tokens:oE.t,SEMVER_SPEC_VERSION:mU.SEMVER_SPEC_VERSION,RELEASE_TYPES:mU.RELEASE_TYPES,compareIdentifiers:yU.compareIdentifiers,rcompareIdentifiers:yU.rcompareIdentifiers}});function k7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=NU(e,4),i=n[0],a=n[1],s=n[3],o=i.padStart(32,"0"),r=a.padStart(16,"0"),u=G7.test(s)?parseInt(s,16)&1:1;return{traceId:o,spanId:r,isRemote:!0,traceFlags:u}}var gU,NU,iE,gl,RU,G7,PU=m(()=>{"use strict";M();K();gU=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.")},NU=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",gl="uberctx",RU=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=gl):(this._jaegerTraceHeader=e?.customTraceHeader||iE,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||gl)}return t.prototype.inject=function(e,n,i){var a,s,o=J.getSpanContext(e),r=at.getBaggage(e);if(o&&xe(e)===!1){var u="0"+(o.traceFlags||Q.NONE).toString(16);i.set(n,this._jaegerTraceHeader,o.traceId+":"+o.spanId+":0:"+u)}if(r)try{for(var l=gU(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var f=NU(c.value,2),_=f[0],p=f[1];i.set(n,this._jaegerBaggageHeaderPrefix+"-"+_,encodeURIComponent(p.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}}),f=e;if(typeof l=="string"){var _=k7(l);_&&(f=J.setSpanContext(f,_))}if(c.length===0)return f;var p=(r=at.getBaggage(e))!==null&&r!==void 0?r:at.createBaggage();try{for(var S=gU(c),v=S.next();!v.done;v=S.next()){var T=v.value;T.value!==void 0&&(p=p.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 f=at.setBaggage(f,p),f},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),G7=/^[0-9a-f]{1,2}$/i});var bU={};Je(bU,{JaegerPropagator:()=>RU,UBER_BAGGAGE_HEADER_PREFIX:()=>gl,UBER_TRACE_ID_HEADER:()=>iE});var xU=m(()=>{"use strict";PU()});var IU=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.NodeTracerProvider=void 0;var MU=tC(),Nl=(cC(),Y(lC)),LU=(dl(),Y(kd)),H7=OU(),F7=(xU(),Y(bU)),Rl=class extends LU.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=H7.gte(process.version,"14.8.0")?MU.AsyncLocalStorageContextManager:MU.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};Pl.NodeTracerProvider=Rl;Rl._registeredPropagators=new Map([...LU.BasicTracerProvider._registeredPropagators,["b3",()=>new Nl.B3Propagator({injectEncoding:Nl.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new Nl.B3Propagator({injectEncoding:Nl.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new F7.JaegerPropagator]])});var CU=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 Y7=IU();Object.defineProperty(q,"NodeTracerProvider",{enumerable:!0,get:function(){return Y7.NodeTracerProvider}});var He=(dl(),Y(kd));Object.defineProperty(q,"AlwaysOffSampler",{enumerable:!0,get:function(){return He.AlwaysOffSampler}});Object.defineProperty(q,"AlwaysOnSampler",{enumerable:!0,get:function(){return He.AlwaysOnSampler}});Object.defineProperty(q,"BasicTracerProvider",{enumerable:!0,get:function(){return He.BasicTracerProvider}});Object.defineProperty(q,"BatchSpanProcessor",{enumerable:!0,get:function(){return He.BatchSpanProcessor}});Object.defineProperty(q,"ConsoleSpanExporter",{enumerable:!0,get:function(){return He.ConsoleSpanExporter}});Object.defineProperty(q,"ForceFlushState",{enumerable:!0,get:function(){return He.ForceFlushState}});Object.defineProperty(q,"InMemorySpanExporter",{enumerable:!0,get:function(){return He.InMemorySpanExporter}});Object.defineProperty(q,"NoopSpanProcessor",{enumerable:!0,get:function(){return He.NoopSpanProcessor}});Object.defineProperty(q,"ParentBasedSampler",{enumerable:!0,get:function(){return He.ParentBasedSampler}});Object.defineProperty(q,"RandomIdGenerator",{enumerable:!0,get:function(){return He.RandomIdGenerator}});Object.defineProperty(q,"SamplingDecision",{enumerable:!0,get:function(){return He.SamplingDecision}});Object.defineProperty(q,"SimpleSpanProcessor",{enumerable:!0,get:function(){return He.SimpleSpanProcessor}});Object.defineProperty(q,"Span",{enumerable:!0,get:function(){return He.Span}});Object.defineProperty(q,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return He.TraceIdRatioBasedSampler}});Object.defineProperty(q,"Tracer",{enumerable:!0,get:function(){return He.Tracer}})});var UU=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.OTLPTraceExporter=void 0;var wU=hd(),q7=(Iu(),Y(fd)),j7=(pi(),Y(mu)),aE=class extends j7.OTLPExporterBase{constructor(e={}){super((0,wU.createOtlpGrpcExportDelegate)((0,wU.convertLegacyOtlpGrpcOptions)(e,"TRACES"),q7.ProtobufTraceSerializer,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export"))}};bl.OTLPTraceExporter=aE});var DU=h(Yr=>{"use strict";var $7=Yr&&Yr.__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]}),K7=Yr&&Yr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&$7(e,t,n)};Object.defineProperty(Yr,"__esModule",{value:!0});K7(UU(),Yr)});var FU=Re($l(),1),YU=Re(Jn(),1);import z7 from"path";function Q1(t){return typeof t=="object"&&t!==null}function Z1(t){return Q1(t)&&typeof t.length=="number"}function eV(t){return Array.isArray(t)?t:t===void 0?[]:Z1(t)||t instanceof Set?Array.from(t):[t]}var Mt=eV;function tV(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 Hi=tV;var ce={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},Fi=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=Mt(e);else{e=process.argv.slice(0);let n=process.execArgv.some(oV)?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()&&Hi(this,ce.combinedShort,rV)}hasCombinedShortOptions(){return this.some(e=>ce.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function rV(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function Yi(t){return ce.optEquals.test(t)}function io(t){return(ce.short.test(t)||ce.long.test(t))&&!ce.optEquals.test(t)}function nV(t){return ce.long.test(t)&&!Yi(t)}function Kl(t){return ce.short.test(t)?t.match(ce.short)[1]:nV(t)?t.match(ce.long)[1]:Yi(t)?t.match(ce.optEquals)[1].replace(/^--/,""):null}function hS(t){return!(io(t)||ce.combinedShort.test(t)||ce.optEquals.test(t))}function oV(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function iV(t){return!isNaN(parseFloat(t))}function aV(t){return!isNaN(parseFloat(t))&&isFinite(t)}function sV(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function uV(t){return vS(t)&&typeof t.length=="number"}function vS(t){return typeof t=="object"&&t!==null}function ao(t){return typeof t<"u"}function lV(t){return!ao(t)}function mS(t){return t===null}function cV(t){return ao(t)&&!mS(t)&&!Number.isNaN(t)}function fV(t){return typeof t=="function"?/^class /.test(Function.prototype.toString.call(t)):!1}function pV(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 dV(t){if(t){let e=ao(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function EV(t){return t===null||!ao(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}function _V(t){return typeof t=="string"}function SV(t){return typeof t=="function"}function hV(t){return typeof t=="function"&&t.constructor.name==="AsyncFunction"}var Se={isNumber:iV,isFiniteNumber:aV,isPlainObject:sV,isArrayLike:uV,isObject:vS,isDefined:ao,isUndefined:lV,isNull:mS,isDefinedValue:cV,isClass:fV,isPrimitive:pV,isPromise:dV,isIterable:EV,isString:_V,isFunction:SV,isAsyncFunction:hV};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)}},so=Wl;var zl=class extends Array{validate(e){this.some(_=>!_.name)&&Lt("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(_=>_.type&&typeof _.type!="function")&&Lt("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)))&&Lt("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))&&Lt("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(_=>(a=_,_.alias==="-"))&&Lt("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),AS(this.map(_=>e?_.name.toLowerCase():_.name))&&Lt("INVALID_DEFINITIONS","Two or more option definitions have the same name"),AS(this.map(_=>e&&Se.isDefined(_.alias)?_.alias.toLowerCase():_.alias))&&Lt("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(_=>_.defaultOption===!0).length>1&&Lt("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(_=>(a=_,_.isBoolean()&&_.defaultOption))&&Lt("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(io(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(yS)}whereNotGrouped(){return this.filter(e=>!yS(e))}whereDefaultValueSet(){return this.filter(e=>Se.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let i=super.from(Mt(e),a=>so.create(a));return i.validate(n),i}};function Lt(t,e){let n=new Error(e);throw n.name=t,n}function yS(t){return Mt(t.group).some(e=>e)}function AS(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 Qr=zl;var Xl=class{constructor(e,n){this.options=Object.assign({},n),this.definitions=Qr.from(e,this.options.caseInsensitive),this.argv=Fi.from(this.options.argv),this.argv.hasCombinedShortOptions()&&Hi(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(io(l))n=e.get(l,this.options.caseInsensitive),i=void 0,n?(i=n.isBoolean()?!0:null,s="set"):s="unknown_option";else if(Yi(l)){let f=l.match(ce.optEquals);n=e.get(f[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=f[2]):s="unknown_option"}else hS(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}}},OS=Xl;var Tr=new WeakMap,qi=class{constructor(e){this.definition=new so(e),this.state=null,this.resetToDefault()}get(){return Tr.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?Tr.set(this,e):(Tr.set(this,i.type(e)),this.state=n)}resetToDefault(){Se.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?Tr.set(this,Mt(this.definition.defaultValue).slice()):Tr.set(this,this.definition.defaultValue):this.definition.isMultiple()?Tr.set(this,[]):Tr.set(this,null),this.state="default"}static create(e){return e=new so(e),e.isBoolean()?Jl.create(e):new this(e)}},Jl=class extends qi{set(e){super.set(!0)}static create(e){return new this(e)}},uo=qi;var gS=Re(fE(),1),Ql=class extends Map{constructor(e){super(),this.definitions=Qr.from(e),this.set("_unknown",uo.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,uo.create(n))}toObject(e){e=e||{};let n={};for(let i of this){let a=e.camelCase&&i[0]!=="_unknown"?(0,gS.default)(i[0]):i[0],s=i[1];a==="_unknown"&&!s.get().length||(n[a]=s.get())}return e.skipUnknown&&delete n._unknown,n}},ji=Ql;var Zl=Re(fE(),1),ec=class extends ji{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 Mt(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}},NS=ec;function TV(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=Qr.from(t,e.caseInsensitive);let n=new OS(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),i=t.isGrouped()?NS:ji,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=uo.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 RS=TV;var qU=Re(zU(),1),jU=Re(XU(),1),$U=Re(eg(),1);import X7 from"http";import{Session as J7}from"node:inspector/promises";import{createRequire as mY}from"module";var lc=Re($l(),1);import Zi from"path";import uc from"os";var yY=mY(import.meta.url),tg=Xn("2.54.0-rc.7"),AY=Xn("2.55.0-rc.1"),rg=Xn("2.55.0-rc.1"),Eo=new AE({max:1e4});function ng(t){let e=yY.resolve(t),n=Zi.dirname(e);for(;!lc.default.existsSync(Zi.join(n,"package.json"));)n=Zi.dirname(n);let i=lc.default.readFileSync(Zi.join(n,"package.json"),"utf-8");return JSON.parse(i)}var ea=class{constructor(e){this.instance=e;let n=ng("@sentio/sdk"),i=ng("@sentio/runtime");console.log("Runtime version:",i.version,"SDK version:",n.version),this.sdkVersion=Xn(n.version)}instance;sdkVersion;async getConfig(e,n){let i=await this.instance.getConfig(e,n);if(i.executionConfig=lE.fromPartial(EE.execution),i.contractConfigs)for(let a of i.contractConfigs)jr(this.sdkVersion,AY)<0&&a.fuelCallConfigs&&(a.fuelTransactionConfigs=a.fuelCallConfigs,a.fuelCallConfigs=void 0),a.fuelLogConfigs&&(a.fuelReceiptConfigs=a.fuelLogConfigs.map(s=>({handlerId:s.handlerId,handlerName:s.handlerName,log:{logIds:s.logIds}}))),a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return jr(this.sdkVersion,rg)<0&&Eo.clear(),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){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.sdkVersion.minor<=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){let n=jr(this.sdkVersion,rg)<0;if(e)switch(e.handlerType){case 20:jr(this.sdkVersion,tg)<0&&(e.handlerType=13,e.data&&(e.data.fuelCall=e.data?.fuelTransaction));break;case 19:jr(this.sdkVersion,tg)<0&&(e.handlerType=13,e.data&&(e.data.fuelCall=e.data?.fuelLog));break;case 6:let i=e.data?.aptEvent;if(i&&n&&i.rawTransaction){let c=JSON.parse(i.rawTransaction),f=`${c.hash}-${e.handlerIds[0]}`;if(Eo.has(f)){console.debug("skip binding",f),e.handlerType=0;return}Eo.set(f,!0),i.transaction=c,c.events?.length||(c.events=[JSON.parse(i.rawEvent)])}break;case 7:let a=e.data?.aptCall;a&&n&&a.rawTransaction&&(a.transaction=JSON.parse(a.rawTransaction));break;case 8:let s=e.data?.aptResource;s&&n&&s.rawResources&&(s.resources=s.rawResources.map(c=>JSON.parse(c)));break;case 3:let o=e.data?.suiEvent;if(o&&n&&o.rawTransaction){let c=JSON.parse(o.rawTransaction),f=`${c.digest}-${e.handlerIds[0]}`;if(Eo.has(f)){console.debug("skip binding",f),e.handlerType=0;return}Eo.set(f,!0),o.transaction=c,c.events?.length||(c.events=[JSON.parse(o.rawEvent)])}break;case 9:let r=e.data?.suiCall;r&&n&&r.rawTransaction&&(r.transaction=JSON.parse(r.rawTransaction));break;case 10:let u=e.data?.suiObject;u&&n&&(u.rawSelf||u.rawObjects)&&(u.rawSelf&&(u.self=JSON.parse(u.rawSelf)),u.objects=u.rawObjects.map(c=>JSON.parse(c)));break;case 12:let l=e.data?.suiObjectChange;l&&n&&l.rawChanges&&(l.changes=l.rawChanges.map(c=>JSON.parse(c)));break;case 0:break;default:break}}};import("node:process").then(t=>t.stdout.write(""));var gt=Re(h0(),1);function T0(t){let e=new WeakSet;return JSON.stringify(t,function(n,i){if(typeof i=="object"&&i!==null){if(e.has(i))return"[Circular]";e.add(i)}return i})}function v0(t,e){let n={transform:a=>{let s=[];typeof a.message=="object"?s.push(T0(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(T0(u)):s.push(u)}return a.message=s.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(""));Ds();Ln();var VU=Re(WI(),1),BU=Re(QI(),1),sE=Re(CU(),1),GU=Re(DU(),1);dl();M();async function kU(t){t&&g.setLogger(new SE,it.DEBUG);let e=await Us.detect(),n=new ci({resource:e,readers:[new tu({exporter:new VU.OTLPMetricExporter}),new BU.PrometheusExporter({host:"0.0.0.0",port:4041})]}),i=new sE.NodeTracerProvider({resource:e}),a=new GU.OTLPTraceExporter,s=new Er(a);i.addSpanProcessor(s),Mi.setGlobalMeterProvider(n),J.setGlobalTracerProvider(i),["SIGINT","SIGTERM"].forEach(o=>{process.on(o,()=>W7())}),Mi.getMeter("processor").createGauge("up").record(1)}async function W7(){let t=J.getTracerProvider();if(t instanceof vE){let n=t.getDelegate();n instanceof sE.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=Mi.getMeterProvider();e instanceof ci&&e.shutdown().catch(console.error)}import("node:process").then(t=>t.stdout.write(""));var xl=class{constructor(e){this.loader=e}async listen(e){let n=Ml.INSTANCE;await this.loader(),await n.configure(uE.create()),console.log("Starting Action Server at:",e),await n.startServer(e)}forceShutdown(){Ml.INSTANCE.shutdown()}};import("node:process").then(t=>t.stdout.write(""));var Q7=[{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:"otlp-debug",type:Boolean,defaultValue:!1},{name:"start-action-server",type:Boolean,defaultValue:!1}],Fe=RS(Q7,{partial:!0}),Z7=process.env.LOG_LEVEL?.toUpperCase();v0(Fe["log-format"]==="json",Z7==="debug"?!0:Fe.debug);console.debug("Starting with",Fe.target);await kU(Fe["otlp-debug"]);Error.stackTraceLimit=20;var eQ=z7.resolve(Fe["chains-config"]),tQ=FU.default.readJsonSync(eQ),rQ=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,nQ=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;_r.INSTANCE.concurrency=rQ??Fe.concurrency;_r.INSTANCE.batchCount=nQ??Fe["batch-count"];_r.INSTANCE.chainQueryAPI=Fe["chainquery-server"];_r.INSTANCE.priceFeedAPI=Fe["pricefeed-server"];for(let[t,e]of Object.entries(tQ)){let n=e;if(n.ChainServer)_r.INSTANCE.chainServer.set(t,n.ChainServer);else{let i=n.Https?.[0];i?_r.INSTANCE.chainServer.set(t,i):console.error("not valid config for chain",t)}}console.debug("Starting Server",Fe);var qr,zn,HU=async()=>{let t=await import(Fe.target);return console.debug("Module loaded",t),t};if(Fe["start-action-server"])qr=new xl(HU),qr.listen(Fe.port);else{qr=(0,qU.createServer)({"grpc.max_send_message_length":768*1024*1024,"grpc.max_receive_message_length":768*1024*1024,"grpc.default_compression_algorithm":YU.compressionAlgorithms.gzip}).use((0,$U.openTelemetryServerMiddleware)()).use(jU.errorDetailsServerMiddleware),zn=new OE(HU,qr.shutdown);let t=new ea(zn);qr.add(cE,t),qr.listen("0.0.0.0:"+Fe.port),console.log("Processor Server Started at:",Fe.port)}var KU=4040,oQ=X7.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 J7;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(KU);console.log("Metric Server Started at:",KU);process.on("SIGINT",function(){iQ(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 iQ(t){qr?.forceShutdown(),console.log("RPC server shut down"),oQ.close(function(){console.log("Http server shut down"),process.exit(t)})}import("node:process").then(t=>t.stdout.write(""));
|
59
|
+
`}};Xu.PrometheusSerializer=yd});var JI=h(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.PrometheusExporter=void 0;var Ti=(M(),Y(Pe)),nX=(K(),Y(Cs)),Od=(In(),Y(zp)),oX=L("http"),iX=Ad(),aX=L("url"),Ju=class t extends Od.MetricReader{constructor(e={},n=()=>{}){super({aggregationSelector:i=>Od.Aggregation.Default(),aggregationTemporalitySelector:i=>Od.AggregationTemporality.CUMULATIVE,metricProducers:e.metricProducers}),this._requestHandler=(i,a)=>{i.url!=null&&new aX.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&&Ti.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,oX.createServer)(this._requestHandler).unref(),this._serializer=new iX.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=>{Ti.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,nX.globalErrorHandler)(n):Ti.diag.debug("Prometheus exporter was stopped"),e()})}):(Ti.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},()=>{Ti.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(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.PrometheusSerializer=Vn.PrometheusExporter=void 0;var sX=JI();Object.defineProperty(Vn,"PrometheusExporter",{enumerable:!0,get:function(){return sX.PrometheusExporter}});var uX=Ad();Object.defineProperty(Vn,"PrometheusSerializer",{enumerable:!0,get:function(){return uX.PrometheusSerializer}})});var Nd=h(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.AbstractAsyncHooksContextManager=void 0;var lX=L("events"),cX=["addListener","on","once","prependListener","prependOnceListener"],gd=class{constructor(){this._kOtListeners=Symbol("OtListeners"),this._wrapped=!1}bind(e,n){return n instanceof lX.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),cX.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=gd});var ZI=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.AsyncHooksContextManager=void 0;var fX=(M(),Y(Pe)),pX=L("async_hooks"),dX=Nd(),Rd=class extends dX.AbstractAsyncHooksContextManager{constructor(){super(),this._contexts=new Map,this._stack=[],this._asyncHook=pX.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:fX.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=Rd});var eC=h(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.AsyncLocalStorageContextManager=void 0;var EX=(M(),Y(Pe)),_X=L("async_hooks"),SX=Nd(),Pd=class extends SX.AbstractAsyncHooksContextManager{constructor(){super(),this._asyncLocalStorage=new _X.AsyncLocalStorage}active(){var e;return(e=this._asyncLocalStorage.getStore())!==null&&e!==void 0?e:EX.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=Pd});var tC=h(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.AsyncLocalStorageContextManager=Bn.AsyncHooksContextManager=void 0;var hX=ZI();Object.defineProperty(Bn,"AsyncHooksContextManager",{enumerable:!0,get:function(){return hX.AsyncHooksContextManager}});var TX=eC();Object.defineProperty(Bn,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return TX.AsyncLocalStorageContextManager}})});var Gn,bd=m(()=>{"use strict";M();Gn=Kr("OpenTelemetry Context Key B3 Debug Flag")});var pr,kn,Hn,Fn,rl,Yn,vi=m(()=>{"use strict";pr="b3",kn="x-b3-traceid",Hn="x-b3-spanid",Fn="x-b3-sampled",rl="x-b3-parentspanid",Yn="x-b3-flags"});function yX(t){return t===Q.SAMPLED||t===Q.NONE}function AX(t){return Array.isArray(t)?t[0]:t}function nl(t,e,n){var i=e.get(t,n);return AX(i)}function OX(t,e){var n=nl(t,e,kn);return typeof n=="string"?n.padStart(32,"0"):""}function gX(t,e){var n=nl(t,e,Hn);return typeof n=="string"?n:""}function rC(t,e){var n=nl(t,e,Yn);return n==="1"?"1":void 0}function NX(t,e){var n=nl(t,e,Fn),i=rC(t,e);if(i==="1"||vX.has(n))return Q.SAMPLED;if(n===void 0||mX.has(n))return Q.NONE}var vX,mX,nC,oC=m(()=>{"use strict";M();K();bd();vi();vX=new Set([!0,"true","True","1",1]),mX=new Set([!1,"false","False","0",0]);nC=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=J.getSpanContext(e);if(!(!a||!_t(a)||xe(e))){var s=e.getValue(Gn);i.set(n,kn,a.traceId),i.set(n,Hn,a.spanId),s==="1"?i.set(n,Yn,s):a.traceFlags!==void 0&&i.set(n,Fn,(Q.SAMPLED&a.traceFlags)===Q.SAMPLED?"1":"0")}},t.prototype.extract=function(e,n,i){var a=OX(n,i),s=gX(n,i),o=NX(n,i),r=rC(n,i);return Gt(a)&&xi(s)&&yX(o)?(e=e.setValue(Gn,r),J.setSpanContext(e,{traceId:a,spanId:s,isRemote:!0,traceFlags:o})):e},t.prototype.fields=function(){return[kn,Hn,Yn,Fn,rl]},t}()});function LX(t){return t.length===32?t:""+bX+t}function IX(t){return t&&xX.has(t)?Q.SAMPLED:Q.NONE}var RX,PX,bX,xX,MX,iC,aC=m(()=>{"use strict";M();K();bd();vi();RX=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},PX=/((?:[0-9a-f]{16}){1,2})-([0-9a-f]{16})(?:-([01d](?![0-9a-f])))?(?:-([0-9a-f]{16}))?/,bX="0".repeat(16),xX=new Set(["d","1"]),MX="d";iC=function(){function t(){}return t.prototype.inject=function(e,n,i){var a=J.getSpanContext(e);if(!(!a||!_t(a)||xe(e))){var s=e.getValue(Gn)||a.traceFlags&1,o=a.traceId+"-"+a.spanId+"-"+s;i.set(n,pr,o)}},t.prototype.extract=function(e,n,i){var a=i.get(n,pr),s=Array.isArray(a)?a[0]:a;if(typeof s!="string")return e;var o=s.match(PX);if(!o)return e;var r=RX(o,4),u=r[1],l=r[2],c=r[3],p=LX(u);if(!Gt(p)||!xi(l))return e;var _=IX(c);return c===MX&&(e=e.setValue(Gn,c)),J.setSpanContext(e,{traceId:p,spanId:l,isRemote:!0,traceFlags:_})},t.prototype.fields=function(){return[pr]},t}()});var qn,xd=m(()=>{"use strict";(function(t){t[t.SINGLE_HEADER=0]="SINGLE_HEADER",t[t.MULTI_HEADER=1]="MULTI_HEADER"})(qn||(qn={}))});var sC,uC=m(()=>{"use strict";K();oC();aC();vi();xd();sC=function(){function t(e){e===void 0&&(e={}),this._b3MultiPropagator=new nC,this._b3SinglePropagator=new iC,e.injectEncoding===qn.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,pr),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 lC={};Je(lC,{B3InjectEncoding:()=>qn,B3Propagator:()=>sC,B3_CONTEXT_HEADER:()=>pr,X_B3_FLAGS:()=>Yn,X_B3_PARENT_SPAN_ID:()=>rl,X_B3_SAMPLED:()=>Fn,X_B3_SPAN_ID:()=>Hn,X_B3_TRACE_ID:()=>kn});var cC=m(()=>{"use strict";uC();vi();xd()});var fC,pC=m(()=>{"use strict";fC="exception"});var Md,CX,dC,wX,ol,Ld=m(()=>{"use strict";M();K();jo();pC();Md=function(){return Md=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},Md.apply(this,arguments)},CX=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.")},dC=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},wX=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:yE.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=et.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):Wo(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=CX(Object.entries(e)),s=a.next();!s.done;s=a.next()){var o=dC(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++),Qo(n)&&(Qo(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,wX([],dC(e),!1)),this},t.prototype.setStatus=function(e){return this._isSpanEnded()?this:(this.status=Md({},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=gs(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 Jo(e+this._performanceOffset);if(typeof e=="number")return Oe(e);if(e instanceof Date)return Oe(e.getTime());if(On(e))return e;if(this._startTimeProvided)return Oe(Date.now());var n=et.now()-this._performanceStartTime;return Zo(this.startTime,Oe(n))},t.prototype.isRecording=function(){return this._ended===!1},t.prototype.recordException=function(e,n){var i={};typeof e=="string"?i[cs]=e:e&&(e.code?i[ls]=e.code.toString():e.name&&(i[ls]=e.name),e.message&&(i[cs]=e.message),e.stack&&(i[m0]=e.stack)),i[ls]||i[cs]?this.addEvent(fC,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,mi=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 dr,il=m(()=>{"use strict";mi();dr=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}()});var Pt,al=m(()=>{"use strict";mi();Pt=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:dt.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}()});var jn,Id=m(()=>{"use strict";M();K();il();al();jn=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 Pt),this._remoteParentSampled=(n=e.remoteParentSampled)!==null&&n!==void 0?n:new Pt,this._remoteParentNotSampled=(i=e.remoteParentNotSampled)!==null&&i!==void 0?i:new dr,this._localParentSampled=(a=e.localParentSampled)!==null&&a!==void 0?a:new Pt,this._localParentNotSampled=(s=e.localParentNotSampled)!==null&&s!==void 0?s:new dr}return t.prototype.shouldSample=function(e,n,i,a,s,o){var r=J.getSpanContext(e);return!r||!_t(r)?this._root.shouldSample(e,n,i,a,s,o):r.isRemote?r.traceFlags&Q.SAMPLED?this._remoteParentSampled.shouldSample(e,n,i,a,s,o):this._remoteParentNotSampled.shouldSample(e,n,i,a,s,o):r.traceFlags&Q.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 yi,Cd=m(()=>{"use strict";M();mi();yi=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,s=parseInt(e.slice(a,a+8),16);n=(n^s)>>>0}return n},t}()});function sl(){var t=Me();return{sampler:wd(t),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 wd(t){switch(t===void 0&&(t=Me()),t.OTEL_TRACES_SAMPLER){case Ke.AlwaysOn:return new Pt;case Ke.AlwaysOff:return new dr;case Ke.ParentBasedAlwaysOn:return new jn({root:new Pt});case Ke.ParentBasedAlwaysOff:return new jn({root:new dr});case Ke.TraceIdRatio:return new yi(EC(t));case Ke.ParentBasedTraceIdRatio:return new jn({root:new yi(EC(t))});default:return g.error('OTEL_TRACES_SAMPLER value "'+t.OTEL_TRACES_SAMPLER+" invalid, defaulting to "+UX+'".'),new Pt}}function EC(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 "+$n+"."),$n;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 "+$n+"."),$n):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 "+$n+"."),$n):e}var UX,$n,Ud=m(()=>{"use strict";M();K();il();al();Id();Cd();UX=Ke.AlwaysOn,$n=1});function _C(t){var e={sampler:wd()},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 SC(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:Cr,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?_:Ir,Object.assign({},t,{spanLimits:f})}var Dd=m(()=>{"use strict";Ud();K()});var hC,TC=m(()=>{"use strict";M();K();hC=function(){function t(e,n){this._exporter=e,this._isExporting=!1,this._finishedSpans=[],this._droppedSpansCount=0;var i=Me();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=[],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===W.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),sr(this._timer))}},t.prototype._clearTimer=function(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)},t}()});var DX,Er,vC=m(()=>{"use strict";TC();DX=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)}}(),Er=function(t){DX(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onShutdown=function(){},e}(hC)});function mC(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 VX,yC,Kn,ul,AC=m(()=>{"use strict";VX=8,yC=16,Kn=function(){function t(){this.generateTraceId=mC(yC),this.generateSpanId=mC(VX)}return t}(),ul=Buffer.allocUnsafe(yC)});var OC=m(()=>{"use strict";vC();AC()});var ll=m(()=>{"use strict";OC()});var cl,Vd=m(()=>{"use strict";M();K();Ld();Dd();ll();cl=function(){function t(e,n,i){this._tracerProvider=i;var a=_C(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new Kn,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=J.deleteSpan(i));var r=J.getSpan(i);if(xe(i)){g.debug("Instrumentation suppressed, returning Noop Span");var u=J.wrapSpanContext(TE);return u}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:mE.INTERNAL,v=((s=n.links)!==null&&s!==void 0?s:[]).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 u=J.wrapSpanContext(N);return u}var D=or(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=J.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,gC=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 BX,GX,Vt,NC,RC=m(()=>{"use strict";M();K();Ds();Vd();Ud();gC();Gd();ll();Dd();BX=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},GX=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"})(Vt||(Vt={}));NC=function(){function t(e){e===void 0&&(e={});var n,i;this._registeredSpanProcessors=[],this._tracers=new Map;var a=Is({},sl(),SC(e));if(this.resource=(n=a.resource)!==null&&n!==void 0?n:wt.empty(),a.mergeResourceWithDefaults&&(this.resource=wt.default().merge(this.resource)),this._config=Object.assign({},a,{resource:this.resource}),!((i=e.spanProcessors)===null||i===void 0)&&i.length)this._registeredSpanProcessors=GX([],BX(e.spanProcessors),!1),this.activeSpanProcessor=new Bd(this._registeredSpanProcessors);else{var s=this._buildExporterFromEnv();if(s!==void 0){var o=new Er(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={}),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 s,o=setTimeout(function(){a(new Error("Span processor did not completed within timeout period of "+e+" ms")),s=Vt.timeout},e);i.forceFlush().then(function(){clearTimeout(o),s!==Vt.timeout&&(s=Vt.resolved,a(s))}).catch(function(r){clearTimeout(o),s=Vt.error,a(r)})})});return new Promise(function(i,a){Promise.all(n).then(function(s){var o=s.filter(function(r){return r!==Vt.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(Me().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 Rs({propagators:a})},t.prototype._buildExporterFromEnv=function(){var e=Me().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 bs}],["baggage",function(){return new Ss}]]),t._registeredExporters=new Map,t}()});var kX,PC,bC=m(()=>{"use strict";K();kX=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.")},PC=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 s=kX(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:W.SUCCESS})},t}()});var HX,FX,xC,MC=m(()=>{"use strict";K();HX=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},FX=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))},xC=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,FX([],HX(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 YX,qX,LC,IC=m(()=>{"use strict";M();K();YX=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())})},qX=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}}},LC=function(){function t(e){this._exporter=e,this._shutdownOnce=new Nn(this._shutdown,this),this._unresolvedExports=new Set}return t.prototype.forceFlush=function(){return YX(this,void 0,void 0,function(){return qX(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 s=function(){return oi._export(n._exporter,[e]).then(function(r){var u;r.code!==W.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={};Je(kd,{AlwaysOffSampler:()=>dr,AlwaysOnSampler:()=>Pt,BasicTracerProvider:()=>NC,BatchSpanProcessor:()=>Er,ConsoleSpanExporter:()=>PC,ForceFlushState:()=>Vt,InMemorySpanExporter:()=>xC,NoopSpanProcessor:()=>pl,ParentBasedSampler:()=>jn,RandomIdGenerator:()=>Kn,SamplingDecision:()=>dt,SimpleSpanProcessor:()=>LC,Span:()=>ol,TraceIdRatioBasedSampler:()=>yi,Tracer:()=>cl});var dl=m(()=>{"use strict";Vd();RC();ll();bC();MC();IC();Gd();il();al();Id();Cd();mi();Ld()});var Ai=h((ipe,CC)=>{"use strict";var jX="2.0.0",$X=Number.MAX_SAFE_INTEGER||9007199254740991,KX=16,WX=250,zX=["major","premajor","minor","preminor","patch","prepatch","prerelease"];CC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:KX,MAX_SAFE_BUILD_LENGTH:WX,MAX_SAFE_INTEGER:$X,RELEASE_TYPES:zX,SEMVER_SPEC_VERSION:jX,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Oi=h((ape,wC)=>{"use strict";var XX=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};wC.exports=XX});var Wn=h((Bt,UC)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Hd,MAX_SAFE_BUILD_LENGTH:JX,MAX_LENGTH:QX}=Ai(),ZX=Oi();Bt=UC.exports={};var eJ=Bt.re=[],tJ=Bt.safeRe=[],R=Bt.src=[],P=Bt.t={},rJ=0,Fd="[a-zA-Z0-9-]",nJ=[["\\s",1],["\\d",QX],[Fd,JX]],oJ=t=>{for(let[e,n]of nJ)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},U=(t,e,n)=>{let i=oJ(e),a=rJ++;ZX(t,a,e),P[t]=a,R[a]=e,eJ[a]=new RegExp(e,n?"g":void 0),tJ[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);Bt.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);Bt.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);Bt.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 El=h((spe,DC)=>{"use strict";var iJ=Object.freeze({loose:!0}),aJ=Object.freeze({}),sJ=t=>t?typeof t!="object"?iJ:t:aJ;DC.exports=sJ});var Yd=h((upe,GC)=>{"use strict";var VC=/^[0-9]+$/,BC=(t,e)=>{let n=VC.test(t),i=VC.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1},uJ=(t,e)=>BC(e,t);GC.exports={compareIdentifiers:BC,rcompareIdentifiers:uJ}});var Le=h((lpe,YC)=>{"use strict";var _l=Oi(),{MAX_LENGTH:kC,MAX_SAFE_INTEGER:Sl}=Ai(),{safeRe:HC,t:FC}=Wn(),lJ=El(),{compareIdentifiers:zn}=Yd(),qd=class t{constructor(e,n){if(n=lJ(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>kC)throw new TypeError(`version is longer than ${kC} characters`);_l("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=e.trim().match(n.loose?HC[FC.LOOSE]:HC[FC.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>Sl||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Sl||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Sl||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<Sl)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(_l("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)),zn(this.major,e.major)||zn(this.minor,e.minor)||zn(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(_l("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 zn(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(_l("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 zn(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]),zn(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}};YC.exports=qd});var Fr=h((cpe,jC)=>{"use strict";var qC=Le(),cJ=(t,e,n=!1)=>{if(t instanceof qC)return t;try{return new qC(t,e)}catch(i){if(!n)return null;throw i}};jC.exports=cJ});var KC=h((fpe,$C)=>{"use strict";var fJ=Fr(),pJ=(t,e)=>{let n=fJ(t,e);return n?n.version:null};$C.exports=pJ});var zC=h((ppe,WC)=>{"use strict";var dJ=Fr(),EJ=(t,e)=>{let n=dJ(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};WC.exports=EJ});var QC=h((dpe,JC)=>{"use strict";var XC=Le(),_J=(t,e,n,i,a)=>{typeof n=="string"&&(a=i,i=n,n=void 0);try{return new XC(t instanceof XC?t.version:t,n).inc(e,i,a).version}catch{return null}};JC.exports=_J});var tw=h((Epe,ew)=>{"use strict";var ZC=Fr(),SJ=(t,e)=>{let n=ZC(t,null,!0),i=ZC(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"};ew.exports=SJ});var nw=h((_pe,rw)=>{"use strict";var hJ=Le(),TJ=(t,e)=>new hJ(t,e).major;rw.exports=TJ});var iw=h((Spe,ow)=>{"use strict";var vJ=Le(),mJ=(t,e)=>new vJ(t,e).minor;ow.exports=mJ});var sw=h((hpe,aw)=>{"use strict";var yJ=Le(),AJ=(t,e)=>new yJ(t,e).patch;aw.exports=AJ});var lw=h((Tpe,uw)=>{"use strict";var OJ=Fr(),gJ=(t,e)=>{let n=OJ(t,e);return n&&n.prerelease.length?n.prerelease:null};uw.exports=gJ});var nt=h((vpe,fw)=>{"use strict";var cw=Le(),NJ=(t,e,n)=>new cw(t,n).compare(new cw(e,n));fw.exports=NJ});var dw=h((mpe,pw)=>{"use strict";var RJ=nt(),PJ=(t,e,n)=>RJ(e,t,n);pw.exports=PJ});var _w=h((ype,Ew)=>{"use strict";var bJ=nt(),xJ=(t,e)=>bJ(t,e,!0);Ew.exports=xJ});var hl=h((Ape,hw)=>{"use strict";var Sw=Le(),MJ=(t,e,n)=>{let i=new Sw(t,n),a=new Sw(e,n);return i.compare(a)||i.compareBuild(a)};hw.exports=MJ});var vw=h((Ope,Tw)=>{"use strict";var LJ=hl(),IJ=(t,e)=>t.sort((n,i)=>LJ(n,i,e));Tw.exports=IJ});var yw=h((gpe,mw)=>{"use strict";var CJ=hl(),wJ=(t,e)=>t.sort((n,i)=>CJ(i,n,e));mw.exports=wJ});var gi=h((Npe,Aw)=>{"use strict";var UJ=nt(),DJ=(t,e,n)=>UJ(t,e,n)>0;Aw.exports=DJ});var Tl=h((Rpe,Ow)=>{"use strict";var VJ=nt(),BJ=(t,e,n)=>VJ(t,e,n)<0;Ow.exports=BJ});var jd=h((Ppe,gw)=>{"use strict";var GJ=nt(),kJ=(t,e,n)=>GJ(t,e,n)===0;gw.exports=kJ});var $d=h((bpe,Nw)=>{"use strict";var HJ=nt(),FJ=(t,e,n)=>HJ(t,e,n)!==0;Nw.exports=FJ});var vl=h((xpe,Rw)=>{"use strict";var YJ=nt(),qJ=(t,e,n)=>YJ(t,e,n)>=0;Rw.exports=qJ});var ml=h((Mpe,Pw)=>{"use strict";var jJ=nt(),$J=(t,e,n)=>jJ(t,e,n)<=0;Pw.exports=$J});var Kd=h((Lpe,bw)=>{"use strict";var KJ=jd(),WJ=$d(),zJ=gi(),XJ=vl(),JJ=Tl(),QJ=ml(),ZJ=(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 KJ(t,n,i);case"!=":return WJ(t,n,i);case">":return zJ(t,n,i);case">=":return XJ(t,n,i);case"<":return JJ(t,n,i);case"<=":return QJ(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};bw.exports=ZJ});var Mw=h((Ipe,xw)=>{"use strict";var e9=Le(),t9=Fr(),{safeRe:yl,t:Al}=Wn(),r9=(t,e)=>{if(t instanceof e9)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?yl[Al.COERCEFULL]:yl[Al.COERCE]);else{let u=e.includePrerelease?yl[Al.COERCERTLFULL]:yl[Al.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 t9(`${i}.${a}.${s}${o}${r}`,e)};xw.exports=r9});var Iw=h((Cpe,Lw)=>{"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}};Lw.exports=Wd});var ot=h((wpe,Dw)=>{"use strict";var n9=/\s+/g,zd=class t{constructor(e,n){if(n=i9(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(n9," "),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=>!ww(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&&p9(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&&c9)|(this.options.loose&&f9))+":"+e,a=Cw.get(i);if(a)return a;let s=this.options.loose,o=s?We[Ge.HYPHENRANGELOOSE]:We[Ge.HYPHENRANGE];e=e.replace(o,A9(this.options.includePrerelease)),te("hyphen replace",e),e=e.replace(We[Ge.COMPARATORTRIM],s9),te("comparator trim",e),e=e.replace(We[Ge.TILDETRIM],u9),te("tilde trim",e),e=e.replace(We[Ge.CARETTRIM],l9),te("caret trim",e);let r=e.split(" ").map(p=>d9(p,this.options)).join(" ").split(/\s+/).map(p=>y9(p,this.options));s&&(r=r.filter(p=>(te("loose invalid filter",p,this.options),!!p.match(We[Ge.COMPARATORLOOSE])))),te("range list",r);let u=new Map,l=r.map(p=>new Xd(p,this.options));for(let p of l){if(ww(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let c=[...u.values()];return Cw.set(i,c),c}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(i=>Uw(i,n)&&e.set.some(a=>Uw(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 a9(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}};Dw.exports=zd;var o9=Iw(),Cw=new o9,i9=El(),Xd=Ni(),te=Oi(),a9=Le(),{safeRe:We,t:Ge,comparatorTrimReplace:s9,tildeTrimReplace:u9,caretTrimReplace:l9}=Wn(),{FLAG_INCLUDE_PRERELEASE:c9,FLAG_LOOSE:f9}=Ai(),ww=t=>t.value==="<0.0.0-0",p9=t=>t.value==="",Uw=(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},d9=(t,e)=>(te("comp",t,e),t=S9(t,e),te("caret",t),t=E9(t,e),te("tildes",t),t=T9(t,e),te("xrange",t),t=m9(t,e),te("stars",t),t),ke=t=>!t||t.toLowerCase()==="x"||t==="*",E9=(t,e)=>t.trim().split(/\s+/).map(n=>_9(n,e)).join(" "),_9=(t,e)=>{let n=e.loose?We[Ge.TILDELOOSE]:We[Ge.TILDE];return t.replace(n,(i,a,s,o,r)=>{te("tilde",t,i,a,s,o,r);let u;return ke(a)?u="":ke(s)?u=`>=${a}.0.0 <${+a+1}.0.0-0`:ke(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})},S9=(t,e)=>t.trim().split(/\s+/).map(n=>h9(n,e)).join(" "),h9=(t,e)=>{te("caret",t,e);let n=e.loose?We[Ge.CARETLOOSE]:We[Ge.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 ke(s)?l="":ke(o)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:ke(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})},T9=(t,e)=>(te("replaceXRanges",t,e),t.split(/\s+/).map(n=>v9(n,e)).join(" ")),v9=(t,e)=>{t=t.trim();let n=e.loose?We[Ge.XRANGELOOSE]:We[Ge.XRANGE];return t.replace(n,(i,a,s,o,r,u)=>{te("xRange",t,i,a,s,o,r,u);let l=ke(s),c=l||ke(o),p=c||ke(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})},m9=(t,e)=>(te("replaceStars",t,e),t.trim().replace(We[Ge.STAR],"")),y9=(t,e)=>(te("replaceGTE0",t,e),t.trim().replace(We[e.includePrerelease?Ge.GTE0PRE:Ge.GTE0],"")),A9=t=>(e,n,i,a,s,o,r,u,l,c,p,_)=>(ke(i)?n="":ke(a)?n=`>=${i}.0.0${t?"-0":""}`:ke(s)?n=`>=${i}.${a}.0${t?"-0":""}`:o?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,ke(l)?u="":ke(c)?u=`<${+l+1}.0.0-0`:ke(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 Ni=h((Upe,Fw)=>{"use strict";var Ri=Symbol("SemVer ANY"),Zd=class t{static get ANY(){return Ri}constructor(e,n){if(n=Vw(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===Ri?this.value="":this.value=this.operator+this.semver.version,Qd("comp",this)}parse(e){let n=this.options.loose?Bw[Gw.COMPARATORLOOSE]:Bw[Gw.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 kw(i[2],this.options.loose):this.semver=Ri}toString(){return this.value}test(e){if(Qd("Comparator.test",e,this.options.loose),this.semver===Ri||e===Ri)return!0;if(typeof e=="string")try{e=new kw(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 Hw(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Hw(this.value,n).test(e.semver):(n=Vw(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(">")))}};Fw.exports=Zd;var Vw=El(),{safeRe:Bw,t:Gw}=Wn(),Jd=Kd(),Qd=Oi(),kw=Le(),Hw=ot()});var Pi=h((Dpe,Yw)=>{"use strict";var g9=ot(),N9=(t,e,n)=>{try{e=new g9(e,n)}catch{return!1}return e.test(t)};Yw.exports=N9});var jw=h((Vpe,qw)=>{"use strict";var R9=ot(),P9=(t,e)=>new R9(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));qw.exports=P9});var Kw=h((Bpe,$w)=>{"use strict";var b9=Le(),x9=ot(),M9=(t,e,n)=>{let i=null,a=null,s=null;try{s=new x9(e,n)}catch{return null}return t.forEach(o=>{s.test(o)&&(!i||a.compare(o)===-1)&&(i=o,a=new b9(i,n))}),i};$w.exports=M9});var zw=h((Gpe,Ww)=>{"use strict";var L9=Le(),I9=ot(),C9=(t,e,n)=>{let i=null,a=null,s=null;try{s=new I9(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};Ww.exports=C9});var Qw=h((kpe,Jw)=>{"use strict";var eE=Le(),w9=ot(),Xw=gi(),U9=(t,e)=>{t=new w9(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||Xw(r,s))&&(s=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!n||Xw(n,s))&&(n=s)}return n&&t.test(n)?n:null};Jw.exports=U9});var eU=h((Hpe,Zw)=>{"use strict";var D9=ot(),V9=(t,e)=>{try{return new D9(t,e).range||"*"}catch{return null}};Zw.exports=V9});var Ol=h((Fpe,oU)=>{"use strict";var B9=Le(),nU=Ni(),{ANY:G9}=nU,k9=ot(),H9=Pi(),tU=gi(),rU=Tl(),F9=ml(),Y9=vl(),q9=(t,e,n,i)=>{t=new B9(t,i),e=new k9(e,i);let a,s,o,r,u;switch(n){case">":a=tU,s=F9,o=rU,r=">",u=">=";break;case"<":a=rU,s=Y9,o=tU,r="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(H9(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===G9&&(f=new nU(">=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};oU.exports=q9});var aU=h((Ype,iU)=>{"use strict";var j9=Ol(),$9=(t,e,n)=>j9(t,e,">",n);iU.exports=$9});var uU=h((qpe,sU)=>{"use strict";var K9=Ol(),W9=(t,e,n)=>K9(t,e,"<",n);sU.exports=W9});var fU=h((jpe,cU)=>{"use strict";var lU=ot(),z9=(t,e,n)=>(t=new lU(t,n),e=new lU(e,n),t.intersects(e,n));cU.exports=z9});var dU=h(($pe,pU)=>{"use strict";var X9=Pi(),J9=nt();pU.exports=(t,e,n)=>{let i=[],a=null,s=null,o=t.sort((c,p)=>J9(c,p,n));for(let c of o)X9(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 vU=h((Kpe,TU)=>{"use strict";var EU=ot(),rE=Ni(),{ANY:tE}=rE,bi=Pi(),nE=nt(),Q9=(t,e,n={})=>{if(t===e)return!0;t=new EU(t,n),e=new EU(e,n);let i=!1;e:for(let a of t.set){for(let s of e.set){let o=e7(a,s,n);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},Z9=[new rE(">=0.0.0-0")],_U=[new rE(">=0.0.0")],e7=(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=Z9:t=_U}if(e.length===1&&e[0].semver===tE){if(n.includePrerelease)return!0;e=_U}let i=new Set,a,s;for(let f of t)f.operator===">"||f.operator===">="?a=SU(a,f,n):f.operator==="<"||f.operator==="<="?s=hU(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&&!bi(f,String(a),n)||s&&!bi(f,String(s),n))return null;for(let S of e)if(!bi(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=SU(a,f,n),r===f&&r!==a)return!1}else if(a.operator===">="&&!bi(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=hU(s,f,n),u===f&&u!==s)return!1}else if(s.operator==="<="&&!bi(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)},SU=(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},hU=(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};TU.exports=Q9});var OU=h((Wpe,AU)=>{"use strict";var oE=Wn(),mU=Ai(),t7=Le(),yU=Yd(),r7=Fr(),n7=KC(),o7=zC(),i7=QC(),a7=tw(),s7=nw(),u7=iw(),l7=sw(),c7=lw(),f7=nt(),p7=dw(),d7=_w(),E7=hl(),_7=vw(),S7=yw(),h7=gi(),T7=Tl(),v7=jd(),m7=$d(),y7=vl(),A7=ml(),O7=Kd(),g7=Mw(),N7=Ni(),R7=ot(),P7=Pi(),b7=jw(),x7=Kw(),M7=zw(),L7=Qw(),I7=eU(),C7=Ol(),w7=aU(),U7=uU(),D7=fU(),V7=dU(),B7=vU();AU.exports={parse:r7,valid:n7,clean:o7,inc:i7,diff:a7,major:s7,minor:u7,patch:l7,prerelease:c7,compare:f7,rcompare:p7,compareLoose:d7,compareBuild:E7,sort:_7,rsort:S7,gt:h7,lt:T7,eq:v7,neq:m7,gte:y7,lte:A7,cmp:O7,coerce:g7,Comparator:N7,Range:R7,satisfies:P7,toComparators:b7,maxSatisfying:x7,minSatisfying:M7,minVersion:L7,validRange:I7,outside:C7,gtr:w7,ltr:U7,intersects:D7,simplifyRange:V7,subset:B7,SemVer:t7,re:oE.re,src:oE.src,tokens:oE.t,SEMVER_SPEC_VERSION:mU.SEMVER_SPEC_VERSION,RELEASE_TYPES:mU.RELEASE_TYPES,compareIdentifiers:yU.compareIdentifiers,rcompareIdentifiers:yU.rcompareIdentifiers}});function k7(t){var e=decodeURIComponent(t).split(":");if(e.length!==4)return null;var n=NU(e,4),i=n[0],a=n[1],s=n[3],o=i.padStart(32,"0"),r=a.padStart(16,"0"),u=G7.test(s)?parseInt(s,16)&1:1;return{traceId:o,spanId:r,isRemote:!0,traceFlags:u}}var gU,NU,iE,gl,RU,G7,PU=m(()=>{"use strict";M();K();gU=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.")},NU=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",gl="uberctx",RU=function(){function t(e){typeof e=="string"?(this._jaegerTraceHeader=e,this._jaegerBaggageHeaderPrefix=gl):(this._jaegerTraceHeader=e?.customTraceHeader||iE,this._jaegerBaggageHeaderPrefix=e?.customBaggageHeaderPrefix||gl)}return t.prototype.inject=function(e,n,i){var a,s,o=J.getSpanContext(e),r=at.getBaggage(e);if(o&&xe(e)===!1){var u="0"+(o.traceFlags||Q.NONE).toString(16);i.set(n,this._jaegerTraceHeader,o.traceId+":"+o.spanId+":0:"+u)}if(r)try{for(var l=gU(r.getAllEntries()),c=l.next();!c.done;c=l.next()){var p=NU(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 _=k7(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=gU(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=at.setBaggage(p,f),p},t.prototype.fields=function(){return[this._jaegerTraceHeader]},t}(),G7=/^[0-9a-f]{1,2}$/i});var bU={};Je(bU,{JaegerPropagator:()=>RU,UBER_BAGGAGE_HEADER_PREFIX:()=>gl,UBER_TRACE_ID_HEADER:()=>iE});var xU=m(()=>{"use strict";PU()});var IU=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.NodeTracerProvider=void 0;var MU=tC(),Nl=(cC(),Y(lC)),LU=(dl(),Y(kd)),H7=OU(),F7=(xU(),Y(bU)),Rl=class extends LU.BasicTracerProvider{constructor(e={}){super(e)}register(e={}){if(e.contextManager===void 0){let n=H7.gte(process.version,"14.8.0")?MU.AsyncLocalStorageContextManager:MU.AsyncHooksContextManager;e.contextManager=new n,e.contextManager.enable()}super.register(e)}};Pl.NodeTracerProvider=Rl;Rl._registeredPropagators=new Map([...LU.BasicTracerProvider._registeredPropagators,["b3",()=>new Nl.B3Propagator({injectEncoding:Nl.B3InjectEncoding.SINGLE_HEADER})],["b3multi",()=>new Nl.B3Propagator({injectEncoding:Nl.B3InjectEncoding.MULTI_HEADER})],["jaeger",()=>new F7.JaegerPropagator]])});var CU=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 Y7=IU();Object.defineProperty(q,"NodeTracerProvider",{enumerable:!0,get:function(){return Y7.NodeTracerProvider}});var He=(dl(),Y(kd));Object.defineProperty(q,"AlwaysOffSampler",{enumerable:!0,get:function(){return He.AlwaysOffSampler}});Object.defineProperty(q,"AlwaysOnSampler",{enumerable:!0,get:function(){return He.AlwaysOnSampler}});Object.defineProperty(q,"BasicTracerProvider",{enumerable:!0,get:function(){return He.BasicTracerProvider}});Object.defineProperty(q,"BatchSpanProcessor",{enumerable:!0,get:function(){return He.BatchSpanProcessor}});Object.defineProperty(q,"ConsoleSpanExporter",{enumerable:!0,get:function(){return He.ConsoleSpanExporter}});Object.defineProperty(q,"ForceFlushState",{enumerable:!0,get:function(){return He.ForceFlushState}});Object.defineProperty(q,"InMemorySpanExporter",{enumerable:!0,get:function(){return He.InMemorySpanExporter}});Object.defineProperty(q,"NoopSpanProcessor",{enumerable:!0,get:function(){return He.NoopSpanProcessor}});Object.defineProperty(q,"ParentBasedSampler",{enumerable:!0,get:function(){return He.ParentBasedSampler}});Object.defineProperty(q,"RandomIdGenerator",{enumerable:!0,get:function(){return He.RandomIdGenerator}});Object.defineProperty(q,"SamplingDecision",{enumerable:!0,get:function(){return He.SamplingDecision}});Object.defineProperty(q,"SimpleSpanProcessor",{enumerable:!0,get:function(){return He.SimpleSpanProcessor}});Object.defineProperty(q,"Span",{enumerable:!0,get:function(){return He.Span}});Object.defineProperty(q,"TraceIdRatioBasedSampler",{enumerable:!0,get:function(){return He.TraceIdRatioBasedSampler}});Object.defineProperty(q,"Tracer",{enumerable:!0,get:function(){return He.Tracer}})});var UU=h(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.OTLPTraceExporter=void 0;var wU=hd(),q7=(Iu(),Y(fd)),j7=(pi(),Y(mu)),aE=class extends j7.OTLPExporterBase{constructor(e={}){super((0,wU.createOtlpGrpcExportDelegate)((0,wU.convertLegacyOtlpGrpcOptions)(e,"TRACES"),q7.ProtobufTraceSerializer,"TraceExportService","/opentelemetry.proto.collector.trace.v1.TraceService/Export"))}};bl.OTLPTraceExporter=aE});var DU=h(Yr=>{"use strict";var $7=Yr&&Yr.__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]}),K7=Yr&&Yr.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&$7(e,t,n)};Object.defineProperty(Yr,"__esModule",{value:!0});K7(UU(),Yr)});var FU=Re($l(),1),YU=Re(Jn(),1);import z7 from"path";function Q1(t){return typeof t=="object"&&t!==null}function Z1(t){return Q1(t)&&typeof t.length=="number"}function eV(t){return Array.isArray(t)?t:t===void 0?[]:Z1(t)||t instanceof Set?Array.from(t):[t]}var Mt=eV;function tV(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 Hi=tV;var ce={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/},Fi=class extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=Mt(e);else{e=process.argv.slice(0);let n=process.execArgv.some(oV)?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()&&Hi(this,ce.combinedShort,rV)}hasCombinedShortOptions(){return this.some(e=>ce.combinedShort.test(e))}static from(e){let n=new this;return n.load(e),n}};function rV(t){return t=t.slice(1),t.split("").map(e=>"-"+e)}function Yi(t){return ce.optEquals.test(t)}function io(t){return(ce.short.test(t)||ce.long.test(t))&&!ce.optEquals.test(t)}function nV(t){return ce.long.test(t)&&!Yi(t)}function Kl(t){return ce.short.test(t)?t.match(ce.short)[1]:nV(t)?t.match(ce.long)[1]:Yi(t)?t.match(ce.optEquals)[1].replace(/^--/,""):null}function hS(t){return!(io(t)||ce.combinedShort.test(t)||ce.optEquals.test(t))}function oV(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function iV(t){return!isNaN(parseFloat(t))}function aV(t){return!isNaN(parseFloat(t))&&isFinite(t)}function sV(t){return t!==null&&typeof t=="object"&&t.constructor===Object}function uV(t){return vS(t)&&typeof t.length=="number"}function vS(t){return typeof t=="object"&&t!==null}function ao(t){return typeof t<"u"}function lV(t){return!ao(t)}function mS(t){return t===null}function cV(t){return ao(t)&&!mS(t)&&!Number.isNaN(t)}function fV(t){return typeof t=="function"?/^class /.test(Function.prototype.toString.call(t)):!1}function pV(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 dV(t){if(t){let e=ao(Promise)&&t instanceof Promise,n=t.then&&typeof t.then=="function";return!!(e||n)}else return!1}function EV(t){return t===null||!ao(t)?!1:typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function"}function _V(t){return typeof t=="string"}function SV(t){return typeof t=="function"}function hV(t){return typeof t=="function"&&t.constructor.name==="AsyncFunction"}var Se={isNumber:iV,isFiniteNumber:aV,isPlainObject:sV,isArrayLike:uV,isObject:vS,isDefined:ao,isUndefined:lV,isNull:mS,isDefinedValue:cV,isClass:fV,isPrimitive:pV,isPromise:dV,isIterable:EV,isString:_V,isFunction:SV,isAsyncFunction:hV};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)}},so=Wl;var zl=class extends Array{validate(e){this.some(_=>!_.name)&&Lt("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some(_=>_.type&&typeof _.type!="function")&&Lt("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)))&&Lt("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))&&Lt("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some(_=>(a=_,_.alias==="-"))&&Lt("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),AS(this.map(_=>e?_.name.toLowerCase():_.name))&&Lt("INVALID_DEFINITIONS","Two or more option definitions have the same name"),AS(this.map(_=>e&&Se.isDefined(_.alias)?_.alias.toLowerCase():_.alias))&&Lt("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),this.filter(_=>_.defaultOption===!0).length>1&&Lt("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some(_=>(a=_,_.isBoolean()&&_.defaultOption))&&Lt("INVALID_DEFINITIONS",`A boolean option ["${a.name}"] can not also be the defaultOption.`)}get(e,n){if(io(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(yS)}whereNotGrouped(){return this.filter(e=>!yS(e))}whereDefaultValueSet(){return this.filter(e=>Se.isDefined(e.defaultValue))}static from(e,n){if(e instanceof this)return e;let i=super.from(Mt(e),a=>so.create(a));return i.validate(n),i}};function Lt(t,e){let n=new Error(e);throw n.name=t,n}function yS(t){return Mt(t.group).some(e=>e)}function AS(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=Fi.from(this.options.argv),this.argv.hasCombinedShortOptions()&&Hi(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(io(l))n=e.get(l,this.options.caseInsensitive),i=void 0,n?(i=n.isBoolean()?!0:null,s="set"):s="unknown_option";else if(Yi(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 hS(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}}},OS=Xl;var Tr=new WeakMap,qi=class{constructor(e){this.definition=new so(e),this.state=null,this.resetToDefault()}get(){return Tr.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?Tr.set(this,e):(Tr.set(this,i.type(e)),this.state=n)}resetToDefault(){Se.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?Tr.set(this,Mt(this.definition.defaultValue).slice()):Tr.set(this,this.definition.defaultValue):this.definition.isMultiple()?Tr.set(this,[]):Tr.set(this,null),this.state="default"}static create(e){return e=new so(e),e.isBoolean()?Jl.create(e):new this(e)}},Jl=class extends qi{set(e){super.set(!0)}static create(e){return new this(e)}},uo=qi;var gS=Re(fE(),1),Ql=class extends Map{constructor(e){super(),this.definitions=Zr.from(e),this.set("_unknown",uo.create({name:"_unknown",multiple:!0}));for(let n of this.definitions.whereDefaultValueSet())this.set(n.name,uo.create(n))}toObject(e){e=e||{};let n={};for(let i of this){let a=e.camelCase&&i[0]!=="_unknown"?(0,gS.default)(i[0]):i[0],s=i[1];a==="_unknown"&&!s.get().length||(n[a]=s.get())}return e.skipUnknown&&delete n._unknown,n}},ji=Ql;var Zl=Re(fE(),1),ec=class extends ji{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 Mt(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}},NS=ec;function TV(t,e){e=e||{},e.stopAtFirstUnknown&&(e.partial=!0),t=Zr.from(t,e.caseInsensitive);let n=new OS(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown,caseInsensitive:e.caseInsensitive}),i=t.isGrouped()?NS:ji,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=uo.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 RS=TV;var qU=Re(zU(),1),jU=Re(XU(),1),$U=Re(eg(),1);import X7 from"http";import{Session as J7}from"node:inspector/promises";import{createRequire as mY}from"module";var lc=Re($l(),1);import Zi from"path";import uc from"os";var yY=mY(import.meta.url),tg=jr("2.54.0-rc.7"),AY=jr("2.55.0-rc.1"),rg=jr("2.55.0-rc.1"),tee=jr("2.57.9-rc.12"),Eo=new AE({max:1e4});function ng(t){let e=yY.resolve(t),n=Zi.dirname(e);for(;!lc.default.existsSync(Zi.join(n,"package.json"));)n=Zi.dirname(n);let i=lc.default.readFileSync(Zi.join(n,"package.json"),"utf-8");return JSON.parse(i)}var ea=class{constructor(e){this.instance=e;let n=ng("@sentio/sdk"),i=ng("@sentio/runtime");console.log("Runtime version:",i.version,"SDK version:",n.version),this.sdkVersion=jr(n.version)}instance;sdkVersion;async getConfig(e,n){let i=await this.instance.getConfig(e,n);if(i.executionConfig=lE.fromPartial(EE.execution),i.contractConfigs)for(let a of i.contractConfigs)$r(this.sdkVersion,AY)<0&&a.fuelCallConfigs&&(a.fuelTransactionConfigs=a.fuelCallConfigs,a.fuelCallConfigs=void 0),a.fuelLogConfigs&&(a.fuelReceiptConfigs=a.fuelLogConfigs.map(s=>({handlerId:s.handlerId,handlerName:s.handlerName,log:{logIds:s.logIds}}))),a.aptosCallConfigs&&(a.moveCallConfigs=a.aptosCallConfigs),a.aptosEventConfigs&&(a.moveEventConfigs=a.aptosEventConfigs);return $r(this.sdkVersion,rg)<0&&Eo.clear(),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){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.sdkVersion.minor<=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){let n=$r(this.sdkVersion,rg)<0;if(e)switch(e.handlerType){case 1:let i=e.data?.ethLog;i?.log==null&&i?.rawLog&&(i.log=JSON.parse(i.rawLog),i.transaction=i.rawTransaction?JSON.parse(i.rawTransaction):void 0,i.block=i.rawBlock?JSON.parse(i.rawBlock):void 0,i.transactionReceipt=i.rawTransactionReceipt?JSON.parse(i.rawTransactionReceipt):void 0);break;case 11:let a=e.data?.ethTransaction;a?.transaction==null&&a?.rawTransaction&&(a.transaction=JSON.parse(a.rawTransaction),a.block=a.rawBlock?JSON.parse(a.rawBlock):void 0,a.transactionReceipt=a.rawTransactionReceipt?JSON.parse(a.rawTransactionReceipt):void 0);break;case 20:$r(this.sdkVersion,tg)<0&&(e.handlerType=13,e.data&&(e.data.fuelCall=e.data?.fuelTransaction));break;case 19:$r(this.sdkVersion,tg)<0&&(e.handlerType=13,e.data&&(e.data.fuelCall=e.data?.fuelLog));break;case 6:let s=e.data?.aptEvent;if(s&&n&&s.rawTransaction){let _=JSON.parse(s.rawTransaction),f=`${_.hash}-${e.handlerIds[0]}`;if(Eo.has(f)){console.debug("skip binding",f),e.handlerType=0;return}Eo.set(f,!0),s.transaction=_,_.events?.length||(_.events=[JSON.parse(s.rawEvent)])}break;case 7:let o=e.data?.aptCall;o&&n&&o.rawTransaction&&(o.transaction=JSON.parse(o.rawTransaction));break;case 8:let r=e.data?.aptResource;r&&n&&r.rawResources&&(r.resources=r.rawResources.map(_=>JSON.parse(_)));break;case 3:let u=e.data?.suiEvent;if(u&&n&&u.rawTransaction){let _=JSON.parse(u.rawTransaction),f=`${_.digest}-${e.handlerIds[0]}`;if(Eo.has(f)){console.debug("skip binding",f),e.handlerType=0;return}Eo.set(f,!0),u.transaction=_,_.events?.length||(_.events=[JSON.parse(u.rawEvent)])}break;case 9:let l=e.data?.suiCall;l&&n&&l.rawTransaction&&(l.transaction=JSON.parse(l.rawTransaction));break;case 10:let c=e.data?.suiObject;c&&n&&(c.rawSelf||c.rawObjects)&&(c.rawSelf&&(c.self=JSON.parse(c.rawSelf)),c.objects=c.rawObjects.map(_=>JSON.parse(_)));break;case 12:let p=e.data?.suiObjectChange;p&&n&&p.rawChanges&&(p.changes=p.rawChanges.map(_=>JSON.parse(_)));break;case 0:break;default:break}}};import("node:process").then(t=>t.stdout.write(""));var gt=Re(h0(),1);function T0(t){let e=new WeakSet;return JSON.stringify(t,function(n,i){if(typeof i=="object"&&i!==null){if(e.has(i))return"[Circular]";e.add(i)}return i})}function v0(t,e){let n={transform:a=>{let s=[];typeof a.message=="object"?s.push(T0(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(T0(u)):s.push(u)}return a.message=s.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(""));Ds();In();var VU=Re(WI(),1),BU=Re(QI(),1),sE=Re(CU(),1),GU=Re(DU(),1);dl();M();async function kU(t){t&&g.setLogger(new SE,it.DEBUG);let e=await Us.detect(),n=new ci({resource:e,readers:[new tu({exporter:new VU.OTLPMetricExporter}),new BU.PrometheusExporter({host:"0.0.0.0",port:4041})]}),i=new sE.NodeTracerProvider({resource:e}),a=new GU.OTLPTraceExporter,s=new Er(a);i.addSpanProcessor(s),Mi.setGlobalMeterProvider(n),J.setGlobalTracerProvider(i),["SIGINT","SIGTERM"].forEach(o=>{process.on(o,()=>W7())}),Mi.getMeter("processor").createGauge("up").record(1)}async function W7(){let t=J.getTracerProvider();if(t instanceof vE){let n=t.getDelegate();n instanceof sE.NodeTracerProvider&&n.shutdown().catch(console.error)}let e=Mi.getMeterProvider();e instanceof ci&&e.shutdown().catch(console.error)}import("node:process").then(t=>t.stdout.write(""));var xl=class{constructor(e){this.loader=e}async listen(e){let n=Ml.INSTANCE;await this.loader(),await n.configure(uE.create()),console.log("Starting Action Server at:",e),await n.startServer(e)}forceShutdown(){Ml.INSTANCE.shutdown()}};import("node:process").then(t=>t.stdout.write(""));var Q7=[{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:"otlp-debug",type:Boolean,defaultValue:!1},{name:"start-action-server",type:Boolean,defaultValue:!1}],Fe=RS(Q7,{partial:!0}),Z7=process.env.LOG_LEVEL?.toUpperCase();v0(Fe["log-format"]==="json",Z7==="debug"?!0:Fe.debug);console.debug("Starting with",Fe.target);await kU(Fe["otlp-debug"]);Error.stackTraceLimit=20;var eQ=z7.resolve(Fe["chains-config"]),tQ=FU.default.readJsonSync(eQ),rQ=process.env.OVERRIDE_CONCURRENCY?parseInt(process.env.OVERRIDE_CONCURRENCY):void 0,nQ=process.env.OVERRIDE_BATCH_COUNT?parseInt(process.env.OVERRIDE_BATCH_COUNT):void 0;_r.INSTANCE.concurrency=rQ??Fe.concurrency;_r.INSTANCE.batchCount=nQ??Fe["batch-count"];_r.INSTANCE.chainQueryAPI=Fe["chainquery-server"];_r.INSTANCE.priceFeedAPI=Fe["pricefeed-server"];for(let[t,e]of Object.entries(tQ)){let n=e;if(n.ChainServer)_r.INSTANCE.chainServer.set(t,n.ChainServer);else{let i=n.Https?.[0];i?_r.INSTANCE.chainServer.set(t,i):console.error("not valid config for chain",t)}}console.debug("Starting Server",Fe);var qr,Xn,HU=async()=>{let t=await import(Fe.target);return console.debug("Module loaded",t),t};if(Fe["start-action-server"])qr=new xl(HU),qr.listen(Fe.port);else{qr=(0,qU.createServer)({"grpc.max_send_message_length":768*1024*1024,"grpc.max_receive_message_length":768*1024*1024,"grpc.default_compression_algorithm":YU.compressionAlgorithms.gzip}).use((0,$U.openTelemetryServerMiddleware)()).use(jU.errorDetailsServerMiddleware),Xn=new OE(HU,qr.shutdown);let t=new ea(Xn);qr.add(cE,t),qr.listen("0.0.0.0:"+Fe.port),console.log("Processor Server Started at:",Fe.port)}var KU=4040,oQ=X7.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 J7;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(KU);console.log("Metric Server Started at:",KU);process.on("SIGINT",function(){iQ(0)}).on("uncaughtException",t=>{console.error("Uncaught Exception, please checking if await is properly used",t),Xn&&(Xn.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),Xn&&(Xn.unhandled=t))});function iQ(t){qr?.forceShutdown(),console.log("RPC server shut down"),oQ.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:
|